From c0e25ddb9764ffb2436577c1486aff56f2c24cb7 Mon Sep 17 00:00:00 2001
From: adamsaghy
Date: Thu, 28 Nov 2024 12:53:15 +0000
Subject: [PATCH] =?UTF-8?q?Deploying=20to=20gh-pages=20from=20@=20openMF/w?=
=?UTF-8?q?eb-app@43c8fdbe66c6c9858fcc4b225e2cdbf7fa09e452=20=F0=9F=9A=80?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
main.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/main.js b/main.js
index 7da1a0bdd..7aeb66b0c 100644
--- a/main.js
+++ b/main.js
@@ -1 +1 @@
-(self.webpackChunkmifosx_web_app=self.webpackChunkmifosx_web_app||[]).push([["main"],{96170:(ot,et,b)=>{ot=b.nmd(ot),function(d){const p=d.en=d.en||{};p.dictionary=Object.assign(p.dictionary||{},{"%0 of %1":"%0 of %1",Accept:"Accept","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot access default workspace.":"Cannot access default workspace.","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Clear:"Clear","Click to edit block":"Click to edit block",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc",Dotted:"Dotted",Double:"Double",Downloadable:"Downloadable","Drag to move":"Drag to move","Dropdown toolbar":"Dropdown toolbar","Edit block":"Edit block","Edit link":"Edit link","Editor block content toolbar":"Editor block content toolbar","Editor contextual toolbar":"Editor contextual toolbar","Editor editing area: %0":"Editor editing area: %0","Editor toolbar":"Editor toolbar","Enter image caption":"Enter image caption","Enter table caption":"Enter table caption","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height",HEX:"HEX","Horizontal text alignment toolbar":"Horizontal text alignment toolbar","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower\u2013roman":"Lower\u2013roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next","No results found":"No results found","No searchable items":"No searchable items",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower\u2013latin list style":"Toggle the lower\u2013latin list style","Toggle the lower\u2013roman list style":"Toggle the lower\u2013roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper\u2013latin list style":"Toggle the upper\u2013latin list style","Toggle the upper\u2013roman list style":"Toggle the upper\u2013roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,ot.exports=(()=>(()=>{var d={4959:(t,A,C)=>{const U=C(1103),k={};for(const P of Object.keys(U))k[U[P]]=P;const D={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};t.exports=D;for(const P of Object.keys(D)){if(!("channels"in D[P]))throw new Error("missing channels property: "+P);if(!("labels"in D[P]))throw new Error("missing channel labels property: "+P);if(D[P].labels.length!==D[P].channels)throw new Error("channel and label counts mismatch: "+P);const{channels:I,labels:z}=D[P];delete D[P].channels,delete D[P].labels,Object.defineProperty(D[P],"channels",{value:I}),Object.defineProperty(D[P],"labels",{value:z})}D.rgb.hsl=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,K=Math.min(I,z,G),at=Math.max(I,z,G),lt=at-K;let bt,Pt;at===K?bt=0:I===at?bt=(z-G)/lt:z===at?bt=2+(G-I)/lt:G===at&&(bt=4+(I-z)/lt),bt=Math.min(60*bt,360),bt<0&&(bt+=360);const Dt=(K+at)/2;return Pt=at===K?0:Dt<=.5?lt/(at+K):lt/(2-at-K),[bt,100*Pt,100*Dt]},D.rgb.hsv=function(P){let I,z,G,K,at;const lt=P[0]/255,bt=P[1]/255,Pt=P[2]/255,Dt=Math.max(lt,bt,Pt),zt=Dt-Math.min(lt,bt,Pt),Vt=function(nt){return(Dt-nt)/6/zt+.5};return 0===zt?(K=0,at=0):(at=zt/Dt,I=Vt(lt),z=Vt(bt),G=Vt(Pt),lt===Dt?K=G-z:bt===Dt?K=.3333333333333333+I-G:Pt===Dt&&(K=.6666666666666666+z-I),K<0?K+=1:K>1&&(K-=1)),[360*K,100*at,100*Dt]},D.rgb.hwb=function(P){const I=P[0],z=P[1];let G=P[2];const K=D.rgb.hsl(P)[0],at=1/255*Math.min(I,Math.min(z,G));return G=1-.00392156862745098*Math.max(I,Math.max(z,G)),[K,100*at,100*G]},D.rgb.cmyk=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,K=Math.min(1-I,1-z,1-G);return[100*((1-I-K)/(1-K)||0),100*((1-z-K)/(1-K)||0),100*((1-G-K)/(1-K)||0),100*K]},D.rgb.keyword=function(P){const I=k[P];if(I)return I;let z,G=1/0;for(const lt of Object.keys(U)){const Pt=((K=P)[0]-(at=U[lt])[0])**2+(K[1]-at[1])**2+(K[2]-at[2])**2;Pt.04045?((I+.055)/1.055)**2.4:I/12.92,z=z>.04045?((z+.055)/1.055)**2.4:z/12.92,G=G>.04045?((G+.055)/1.055)**2.4:G/12.92,[100*(.4124*I+.3576*z+.1805*G),100*(.2126*I+.7152*z+.0722*G),100*(.0193*I+.1192*z+.9505*G)]},D.rgb.lab=function(P){const I=D.rgb.xyz(P);let z=I[0],G=I[1],K=I[2];return z/=95.047,G/=100,K/=108.883,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,K=K>.008856?K**.3333333333333333:7.787*K+.13793103448275862,[116*G-16,500*(z-G),200*(G-K)]},D.hsl.rgb=function(P){const I=P[0]/360,z=P[1]/100,G=P[2]/100;let K,at,lt;if(0===z)return lt=255*G,[lt,lt,lt];K=G<.5?G*(1+z):G+z-G*z;const bt=2*G-K,Pt=[0,0,0];for(let Dt=0;Dt<3;Dt++)at=I+.3333333333333333*-(Dt-1),at<0&&at++,at>1&&at--,lt=6*at<1?bt+6*(K-bt)*at:2*at<1?K:3*at<2?bt+(K-bt)*(.6666666666666666-at)*6:bt,Pt[Dt]=255*lt;return Pt},D.hsl.hsv=function(P){const I=P[0];let z=P[1]/100,G=P[2]/100,K=z;const at=Math.max(G,.01);return G*=2,z*=G<=1?G:2-G,K*=at<=1?at:2-at,[I,100*(0===G?2*K/(at+K):2*z/(G+z)),(G+z)/2*100]},D.hsv.rgb=function(P){const I=P[0]/60,z=P[1]/100;let G=P[2]/100;const K=Math.floor(I)%6,at=I-Math.floor(I),lt=255*G*(1-z),bt=255*G*(1-z*at),Pt=255*G*(1-z*(1-at));switch(G*=255,K){case 0:return[G,Pt,lt];case 1:return[bt,G,lt];case 2:return[lt,G,Pt];case 3:return[lt,bt,G];case 4:return[Pt,lt,G];case 5:return[G,lt,bt]}},D.hsv.hsl=function(P){const I=P[0],z=P[1]/100,G=P[2]/100,K=Math.max(G,.01);let at,lt;lt=(2-z)*G;const bt=(2-z)*K;return at=z*K,at/=bt<=1?bt:2-bt,at=at||0,lt/=2,[I,100*at,100*lt]},D.hwb.rgb=function(P){const I=P[0]/360;let z=P[1]/100,G=P[2]/100;const K=z+G;let at;K>1&&(z/=K,G/=K);const lt=Math.floor(6*I),bt=1-G;at=6*I-lt,0!=(1<)&&(at=1-at);const Pt=z+at*(bt-z);let Dt,zt,Vt;switch(lt){default:case 6:case 0:Dt=bt,zt=Pt,Vt=z;break;case 1:Dt=Pt,zt=bt,Vt=z;break;case 2:Dt=z,zt=bt,Vt=Pt;break;case 3:Dt=z,zt=Pt,Vt=bt;break;case 4:Dt=Pt,zt=z,Vt=bt;break;case 5:Dt=bt,zt=z,Vt=Pt}return[255*Dt,255*zt,255*Vt]},D.cmyk.rgb=function(P){const z=P[1]/100,G=P[2]/100,K=P[3]/100;return[255*(1-Math.min(1,P[0]/100*(1-K)+K)),255*(1-Math.min(1,z*(1-K)+K)),255*(1-Math.min(1,G*(1-K)+K))]},D.xyz.rgb=function(P){const I=P[0]/100,z=P[1]/100,G=P[2]/100;let K,at,lt;return K=3.2406*I+-1.5372*z+-.4986*G,at=-.9689*I+1.8758*z+.0415*G,lt=.0557*I+-.204*z+1.057*G,K=K>.0031308?1.055*K**.4166666666666667-.055:12.92*K,at=at>.0031308?1.055*at**.4166666666666667-.055:12.92*at,lt=lt>.0031308?1.055*lt**.4166666666666667-.055:12.92*lt,K=Math.min(Math.max(0,K),1),at=Math.min(Math.max(0,at),1),lt=Math.min(Math.max(0,lt),1),[255*K,255*at,255*lt]},D.xyz.lab=function(P){let I=P[0],z=P[1],G=P[2];return I/=95.047,z/=100,G/=108.883,I=I>.008856?I**.3333333333333333:7.787*I+.13793103448275862,z=z>.008856?z**.3333333333333333:7.787*z+.13793103448275862,G=G>.008856?G**.3333333333333333:7.787*G+.13793103448275862,[116*z-16,500*(I-z),200*(z-G)]},D.lab.xyz=function(P){let I,z,G;z=(P[0]+16)/116,I=P[1]/500+z,G=z-P[2]/200;const K=z**3,at=I**3,lt=G**3;return z=K>.008856?K:(z-.13793103448275862)/7.787,I=at>.008856?at:(I-.13793103448275862)/7.787,G=lt>.008856?lt:(G-.13793103448275862)/7.787,I*=95.047,z*=100,G*=108.883,[I,z,G]},D.lab.lch=function(P){const I=P[0],z=P[1],G=P[2];let K;return K=360*Math.atan2(G,z)/2/Math.PI,K<0&&(K+=360),[I,Math.sqrt(z*z+G*G),K]},D.lch.lab=function(P){const z=P[1],G=P[2]/360*2*Math.PI;return[P[0],z*Math.cos(G),z*Math.sin(G)]},D.rgb.ansi16=function(P,I=null){const[z,G,K]=P;let at=null===I?D.rgb.hsv(P)[2]:I;if(at=Math.round(at/50),0===at)return 30;let lt=30+(Math.round(K/255)<<2|Math.round(G/255)<<1|Math.round(z/255));return 2===at&&(lt+=60),lt},D.hsv.ansi16=function(P){return D.rgb.ansi16(D.hsv.rgb(P),P[2])},D.rgb.ansi256=function(P){const I=P[0],z=P[1],G=P[2];return I===z&&z===G?I<8?16:I>248?231:Math.round((I-8)/247*24)+232:16+36*Math.round(I/255*5)+6*Math.round(z/255*5)+Math.round(G/255*5)},D.ansi16.rgb=function(P){let I=P%10;if(0===I||7===I)return P>50&&(I+=3.5),I=I/10.5*255,[I,I,I];const z=.5*(1+~~(P>50));return[(1&I)*z*255,(I>>1&1)*z*255,(I>>2&1)*z*255]},D.ansi256.rgb=function(P){if(P>=232){const z=10*(P-232)+8;return[z,z,z]}let I;return P-=16,[Math.floor(P/36)/5*255,Math.floor((I=P%36)/6)/5*255,I%6/5*255]},D.rgb.hex=function(P){const I=(((255&Math.round(P[0]))<<16)+((255&Math.round(P[1]))<<8)+(255&Math.round(P[2]))).toString(16).toUpperCase();return"000000".substring(I.length)+I},D.hex.rgb=function(P){const I=P.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!I)return[0,0,0];let z=I[0];3===I[0].length&&(z=z.split("").map(K=>K+K).join(""));const G=parseInt(z,16);return[G>>16&255,G>>8&255,255&G]},D.rgb.hcg=function(P){const I=P[0]/255,z=P[1]/255,G=P[2]/255,K=Math.max(Math.max(I,z),G),at=Math.min(Math.min(I,z),G),lt=K-at;let bt,Pt;return bt=lt<1?at/(1-lt):0,Pt=lt<=0?0:K===I?(z-G)/lt%6:K===z?2+(G-I)/lt:4+(I-z)/lt,Pt/=6,Pt%=1,[360*Pt,100*lt,100*bt]},D.hsl.hcg=function(P){const I=P[1]/100,z=P[2]/100,G=z<.5?2*I*z:2*I*(1-z);let K=0;return G<1&&(K=(z-.5*G)/(1-G)),[P[0],100*G,100*K]},D.hsv.hcg=function(P){const z=P[2]/100,G=P[1]/100*z;let K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},D.hcg.rgb=function(P){const z=P[1]/100,G=P[2]/100;if(0===z)return[255*G,255*G,255*G];const K=[0,0,0],at=P[0]/360%1*6,lt=at%1,bt=1-lt;let Pt=0;switch(Math.floor(at)){case 0:K[0]=1,K[1]=lt,K[2]=0;break;case 1:K[0]=bt,K[1]=1,K[2]=0;break;case 2:K[0]=0,K[1]=1,K[2]=lt;break;case 3:K[0]=0,K[1]=bt,K[2]=1;break;case 4:K[0]=lt,K[1]=0,K[2]=1;break;default:K[0]=1,K[1]=0,K[2]=bt}return Pt=(1-z)*G,[255*(z*K[0]+Pt),255*(z*K[1]+Pt),255*(z*K[2]+Pt)]},D.hcg.hsv=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);let G=0;return z>0&&(G=I/z),[P[0],100*G,100*z]},D.hcg.hsl=function(P){const I=P[1]/100,z=P[2]/100*(1-I)+.5*I;let G=0;return z>0&&z<.5?G=I/(2*z):z>=.5&&z<1&&(G=I/(2*(1-z))),[P[0],100*G,100*z]},D.hcg.hwb=function(P){const I=P[1]/100,z=I+P[2]/100*(1-I);return[P[0],100*(z-I),100*(1-z)]},D.hwb.hcg=function(P){const z=1-P[2]/100,G=z-P[1]/100;let K=0;return G<1&&(K=(z-G)/(1-G)),[P[0],100*G,100*K]},D.apple.rgb=function(P){return[P[0]/65535*255,P[1]/65535*255,P[2]/65535*255]},D.rgb.apple=function(P){return[P[0]/255*65535,P[1]/255*65535,P[2]/255*65535]},D.gray.rgb=function(P){return[P[0]/100*255,P[0]/100*255,P[0]/100*255]},D.gray.hsl=function(P){return[0,0,P[0]]},D.gray.hsv=D.gray.hsl,D.gray.hwb=function(P){return[0,100,P[0]]},D.gray.cmyk=function(P){return[0,0,0,P[0]]},D.gray.lab=function(P){return[P[0],0,0]},D.gray.hex=function(P){const I=255&Math.round(P[0]/100*255),z=((I<<16)+(I<<8)+I).toString(16).toUpperCase();return"000000".substring(z.length)+z},D.rgb.gray=function(P){return[(P[0]+P[1]+P[2])/3/255*100]}},841:(t,A,C)=>{const U=C(4959),k=C(9325),D={};Object.keys(U).forEach(P=>{D[P]={},Object.defineProperty(D[P],"channels",{value:U[P].channels}),Object.defineProperty(D[P],"labels",{value:U[P].labels});const I=k(P);Object.keys(I).forEach(z=>{const G=I[z];D[P][z]=function(K){const at=function(...lt){const bt=lt[0];if(null==bt)return bt;bt.length>1&&(lt=bt);const Pt=K(lt);if("object"==typeof Pt)for(let Dt=Pt.length,zt=0;zt1&&(lt=bt),K(lt))};return"conversion"in K&&(at.conversion=K.conversion),at}(G)})}),t.exports=D},9325:(t,A,C)=>{const U=C(4959);function D(I,z){return function(G){return z(I(G))}}function P(I,z){const G=[z[I].parent,I];let K=U[z[I].parent][I],at=z[I].parent;for(;z[at].parent;)G.unshift(z[at].parent),K=D(U[z[at].parent][at],K),at=z[at].parent;return K.conversion=G,K}t.exports=function(I){const z=function k(I){const z=function(){const K={},at=Object.keys(U);for(let lt=at.length,bt=0;bt{"use strict";t.exports={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]}},8603:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);const I=P},3062:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./../ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);const I=P},903:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}.ck.ck-clipboard-drop-target-line{pointer-events:none;position:absolute}:root{--ck-clipboard-drop-target-dot-width:12px;--ck-clipboard-drop-target-dot-height:8px;--ck-clipboard-drop-target-color:var(--ck-color-focus-border)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);bottom:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);margin-left:-1px;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5)}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span:after{border-color:var(--ck-clipboard-drop-target-color) transparent transparent transparent;border-style:solid;border-width:calc(var(--ck-clipboard-drop-target-dot-height)) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5);content:"";display:block;height:0;left:50%;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-height)*-.5);transform:translateX(-50%);width:0}.ck.ck-editor__editable .ck-widget.ck-clipboard-drop-target-range{outline:var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color)!important}.ck.ck-editor__editable .ck-widget:-webkit-drag{zoom:.6;outline:none!important}.ck.ck-clipboard-drop-target-line{background:var(--ck-clipboard-drop-target-color);border:1px solid var(--ck-clipboard-drop-target-color);height:0;margin-top:-1px}.ck.ck-clipboard-drop-target-line:before{border-style:solid;content:"";height:0;position:absolute;top:calc(var(--ck-clipboard-drop-target-dot-width)*-.5);width:0}[dir=ltr] .ck.ck-clipboard-drop-target-line:before{border-color:transparent transparent transparent var(--ck-clipboard-drop-target-color);border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0 calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height);left:-1px}[dir=rtl] .ck.ck-clipboard-drop-target-line:before{border-color:transparent var(--ck-clipboard-drop-target-color) transparent transparent;border-width:calc(var(--ck-clipboard-drop-target-dot-width)*.5) var(--ck-clipboard-drop-target-dot-height) calc(var(--ck-clipboard-drop-target-dot-width)*.5) 0;right:-1px}',"",{version:3,sources:["webpack://./../ckeditor5-clipboard/theme/clipboard.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-clipboard/clipboard.css"],names:[],mappings:"AASC,8DACC,cAAe,CAEf,mBAAoB,CADpB,iBAOD,CAJC,mEACC,iBAAkB,CAClB,OACD,CAWA,qJACC,YACD,CAIF,kCAEC,mBAAoB,CADpB,iBAED,CC9BA,MACC,yCAA0C,CAC1C,yCAA0C,CAC1C,6DACD,CAOE,mEAIC,gDAAiD,CADjD,sDAAuD,CAFvD,2DAA8D,CAI9D,gBAAiB,CAHjB,wDAqBD,CAfC,yEAWC,sFAAuF,CAEvF,kBAAmB,CADnB,qKAA0K,CAX1K,UAAW,CAIX,aAAc,CAFd,QAAS,CAIT,QAAS,CADT,iBAAkB,CAElB,wDAA2D,CAE3D,0BAA2B,CAR3B,OAYD,CAOF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD,CAGD,kCAGC,gDAAiD,CADjD,sDAAuD,CADvD,QAAS,CAGT,eAwBD,CAtBC,yCAMC,kBAAmB,CALnB,UAAW,CAIX,QAAS,CAHT,iBAAkB,CAClB,uDAA0D,CAC1D,OAiBD,CArBA,mDAYE,sFAAuF,CADvF,+JAAoK,CAFpK,SAYF,CArBA,mDAmBE,sFAAuF,CADvF,+JAAmK,CAFnK,UAKF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\tposition: absolute;\n\tpointer-events: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"@ckeditor/ckeditor5-ui/theme/mixins/_dir.css\";\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n\n.ck.ck-clipboard-drop-target-line {\n\theight: 0;\n\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\tbackground: var(--ck-clipboard-drop-target-color);\n\tmargin-top: -1px;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: absolute;\n\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\twidth: 0;\n\t\theight: 0;\n\t\tborder-style: solid;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tleft: -1px;\n\n\t\t\tborder-width: calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height);\n\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tright: -1px;\n\n\t\t\tborder-width:calc(.5 * var(--ck-clipboard-drop-target-dot-width)) var(--ck-clipboard-drop-target-dot-height) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0;\n\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},3143:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./../ckeditor5-editor-classic/theme/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the , etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4717:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/placeholder.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);const I=P},9315:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./../ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);const I=P},8733:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./../ckeditor5-heading/theme/heading.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3508:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;height:auto;margin:0 auto;max-width:100%;min-width:100%}.ck-content .image-inline{align-items:flex-start;display:inline-flex;max-width:100%}.ck-content .image-inline picture{display:flex}.ck-content .image-inline img,.ck-content .image-inline picture{flex-grow:1;flex-shrink:1;max-width:100%}.ck.ck-editor__editable .image>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}.ck.ck-editor__editable .image{z-index:1}.ck.ck-editor__editable .image.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected{z-index:2}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.ck.ck-editor__editable .image-inline img{height:auto}.ck.ck-editor__editable td .image-inline img,.ck.ck-editor__editable th .image-inline img{max-width:none}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/image.css"],names:[],mappings:"AAMC,mBAEC,UAAW,CADX,aAAc,CAOd,gBAAkB,CAGlB,cAAe,CARf,iBA2BD,CAjBC,uBAEC,aAAc,CAad,WAAY,CAVZ,aAAc,CAGd,cAAe,CAGf,cAKD,CAGD,0BAYC,sBAAuB,CANvB,mBAAoB,CAGpB,cAoBD,CAdC,kCACC,YACD,CAGA,gEAGC,WAAY,CACZ,aAAc,CAGd,cACD,CAUD,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAKA,+BACC,SASD,CAHC,kDACC,SACD,CAMD,sCACC,SAkBD,CAZC,yDACC,SAUD,CAHC,qEACC,YACD,CAMF,0CACC,WACD,CAMC,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%;\n\n\t\t\t/* Keep proportions of the block image if the height is set and the image is wider than the editor width.\n\t\t\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t\t\theight: auto;\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the in case the integration overrides `text-align: center`\n\t * of `.image` (e.g. to the left/right). This ensures the placeholder stays at the padding just like the native\n\t * caret does, and not at the edge of .\n\t */\n\t& .image > figcaption.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the image caption placeholder doesn\'t overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\t\t}\n\t}\n\n\t/*\n\t * See https://github.com/ckeditor/ckeditor5/issues/15115.\n\t */\n\t& .image-inline {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the selected inline image always stays on top of its siblings.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t\t */\n\t\t&.ck-widget_selected {\n\t\t\tz-index: 2;\n\n\t\t\t/*\n\t\t\t * Make sure the native browser selection style is not displayed.\n\t\t\t * Inline image widgets have their own styles for the selected state and\n\t\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t\t */\n\t\t\t& ::selection {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Keep proportions of the inline image if the height is set and the image is wider than the editor width.\n\tSee https://github.com/ckeditor/ckeditor5/issues/14542. */\n\t& .image-inline img {\n\t\theight: auto;\n\t}\n\n\t/* The inline image nested in the table should have its original size if not resized.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline img {\n\t\t\tmax-width: none;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},2640:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},3535:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);const I=P},1568:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6270:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content img.image_resized{height:auto}.ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAMA,8BACC,WACD,CAEA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Preserve aspect ratio of the resized image after introducing image height attribute. */\n.ck-content img.image_resized {\n\theight: auto;\n}\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `` element uses `display:block`, so `` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);const I=P},5083:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4036:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadicon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);const I=P},3773:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadloader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);const I=P},3689:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/imageuploadprogress.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);const I=P},1905:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-image/theme/textalternativeform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},9773:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);const I=P},2347:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkactions.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},7754:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},111:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./../ckeditor5-link/theme/linkimage.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},4721:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/collapsible.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},5730:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);const I=P},4564:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6082:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},2417:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./../ckeditor5-list/theme/liststyles.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1199:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px;position:relative}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}.ck-editor__editable.ck-content .todo-list .todo-list__label>input,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{cursor:pointer}.ck-editor__editable.ck-content .todo-list .todo-list__label>input:hover:before,.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-editor__editable.ck-content[dir=rtl] .todo-list .todo-list__label>span[contenteditable=false]>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out;width:100%}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-editor__editable.ck-content .todo-list .todo-list__label>span[contenteditable=false]>input[checked]:after{border-color:#fff}.ck-editor__editable.ck-content .todo-list .todo-list__label.todo-list__label_without-description input[type=checkbox]{position:absolute}',"",{version:3,sources:["webpack://./../ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAwEA,uBACC,eAwBD,CAtBC,0BAEC,iBAAkB,CADlB,iBAMD,CAHC,qCACC,cACD,CAIA,+CAlFD,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAiFC,CAFA,wDAhEA,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAgEA,CA5DD,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAwBA,wEACC,qBACD,CAEA,mGACC,iBACD,CAYD,kKAEC,cAKD,CAHC,4LACC,mCACD,CAMD,+FApHA,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAmHA,CAFA,wGAlGC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAkGD,CA9FA,sGAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,sCAAwC,CAJxC,UAKD,CAEA,qGAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+GACC,kBAA8B,CAC9B,oBACD,CAEA,8GACC,iBACD,CA2DA,uHACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n@define-mixin todo-list-checkbox {\n\t-webkit-appearance: none;\n\tdisplay: inline-block;\n\tposition: relative;\n\twidth: var(--ck-todo-list-checkmark-size);\n\theight: var(--ck-todo-list-checkmark-size);\n\tvertical-align: middle;\n\n\t/* Needed on iOS */\n\tborder: 0;\n\n\t/* LTR styles */\n\tleft: -25px;\n\tmargin-right: -15px;\n\tright: 0;\n\tmargin-left: 0;\n\n\t/* RTL styles */\n\t@nest [dir=rtl]& {\n\t\tleft: 0;\n\t\tmargin-right: 0;\n\t\tright: -25px;\n\t\tmargin-left: -15px;\n\t}\n\n\t&::before {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: border-box;\n\t\tcontent: '';\n\t\twidth: 100%;\n\t\theight: 100%;\n\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\tborder-radius: 2px;\n\t\ttransition: 250ms ease-in-out box-shadow;\n\t}\n\n\t&::after {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\tbox-sizing: content-box;\n\t\tpointer-events: none;\n\t\tcontent: '';\n\n\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\tborder-style: solid;\n\t\tborder-color: transparent;\n\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\ttransform: rotate(45deg);\n\t}\n\n\t&[checked] {\n\t\t&::before {\n\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t}\n\t}\n}\n\n/*\n * To-do list content styles.\n */\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tposition: relative;\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t@mixin todo-list-checkbox;\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\n\t\t&.todo-list__label_without-description input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n/*\n * To-do list editing view styles.\n */\n.ck-editor__editable.ck-content .todo-list .todo-list__label {\n\t/*\n\t * To-do list should be interactive only during the editing\n\t * (https://github.com/ckeditor/ckeditor5/issues/2090).\n\t */\n\t& > input,\n\t& > span[contenteditable=false] > input {\n\t\tcursor: pointer;\n\n\t\t&:hover::before {\n\t\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t\t}\n\t}\n\n\t/*\n\t * Document Lists - editing view has an additional span around checkbox.\n\t */\n\t& > span[contenteditable=false] > input {\n\t\t@mixin todo-list-checkbox;\n\t}\n\n\t&.todo-list__label_without-description {\n\t\t& input[type=checkbox] {\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4652:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);const I=P},7442:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read\u2013only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},9292:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./../ckeditor5-media-embed/theme/mediaform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7368:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},4070:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},9247:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/formrow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},1613:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/inserttable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},6306:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent . Make sure the table inside stretches\n\t\tto the full dimensions of the container (https://github.com/ckeditor/ckeditor5/issues/6186). */\n\t\twidth: 100%;\n\t\theight: 100%;\n\n\t\t/* The outer border of the table should be slightly darker than the inner lines.\n\t\tAlso see https://github.com/ckeditor/ckeditor5-table/issues/50. */\n\t\tborder: 1px double hsl(0, 0%, 70%);\n\n\t\t& td,\n\t\t& th {\n\t\t\tmin-width: 2em;\n\t\t\tpadding: .4em;\n\n\t\t\t/* The border is inherited from .ck-editor__nested-editable styles, so theoretically it\'s not necessary here.\n\t\t\tHowever, the border is a content style, so it should use .ck-content (so it works outside the editor).\n\t\t\tHence, the duplication. See https://github.com/ckeditor/ckeditor5/issues/6314 */\n\t\t\tborder: 1px solid hsl(0, 0%, 75%);\n\t\t}\n\n\t\t& th {\n\t\t\tfont-weight: bold;\n\t\t\tbackground: hsla(0, 0%, 0%, 5%);\n\t\t}\n\t}\n}\n\n/* Text alignment of the table header should match the editor settings and override the native browser styling,\nwhen content is available outside the editor. See https://github.com/ckeditor/ckeditor5/issues/6638 */\n.ck-content[dir="rtl"] .table th {\n\ttext-align: right;\n}\n\n.ck-content[dir="ltr"] .table th {\n\ttext-align: left;\n}\n\n.ck-editor__editable .ck-table-bogus-paragraph {\n\t/*\n\t * Use display:inline-block to force Chrome/Safari to limit text mutations to this element.\n\t * See https://github.com/ckeditor/ckeditor5/issues/6062.\n\t */\n\tdisplay: inline-block;\n\n\t/*\n\t * Inline HTML elements nested in the span should always be dimensioned in relation to the whole cell width.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9117.\n\t */\n\twidth: 100%;\n}\n'],sourceRoot:""}]);const I=P},2128:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-selector-caption-background:#f7f7f7;--ck-color-selector-caption-text:#333;--ck-color-selector-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-selector-caption-background);caption-side:top;color:var(--ck-color-selector-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-selector-caption-highlighted-background)}to{background-color:var(--ck-color-selector-caption-background)}}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,8CAAuD,CACvD,qCAAiD,CACjD,uDACD,CAGA,8BAMC,4DAA6D,CAJ7D,gBAAiB,CAGjB,2CAA4C,CAJ5C,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,wEACD,CAEA,GACC,4DACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-selector-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-selector-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-selector-caption-text);\n\tbackground-color: var(--ck-color-selector-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-selector-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-selector-caption-background);\n\t}\n}\n"],sourceRoot:""}]);const I=P},5087:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecellproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},4101:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-selector-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{overflow-wrap:break-word;position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:0;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:0;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-selector-column-resizer-hover);bottom:-999999px;opacity:.25;top:-999999px}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,oEAAqE,CACrE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAIC,wBAAyB,CACzB,iBACD,CAEA,wDAGC,QAAS,CAGT,iBAAkB,CALlB,iBAAkB,CAGlB,oDAAqD,CAFrD,KAAM,CAKN,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,8DAA+D,CAO/D,gBAAiB,CANjB,WAAa,CAKb,aAED,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\t/* To prevent text overflowing beyond its cell when columns are resized by resize handler\n\t(https://github.com/ckeditor/ckeditor5/pull/14379#issuecomment-1589460978). */\n\toverflow-wrap: break-word;\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\ttop: 0;\n\tbottom: 0;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-selector-column-resizer-hover);\n\topacity: 0.25;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);const I=P},3881:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-selector-focused-cell-background:rgba(158,201,250,.3)}.ck-widget.table td.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table td.ck-editor__nested-editable:focus,.ck-widget.table th.ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck-widget.table th.ck-editor__nested-editable:focus{background:var(--ck-color-selector-focused-cell-background);border-style:none;outline:1px solid var(--ck-color-focus-border);outline-offset:-1px}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableediting.css"],names:[],mappings:"AAKA,MACC,gEACD,CAKE,8QAGC,2DAA4D,CAK5D,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-selector-focused-cell-background: hsla(212, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-selector-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6237:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableform.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7341:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./../ckeditor5-table/theme/tableproperties.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},6945:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);const I=P},8157:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-autocomplete{position:relative}.ck.ck-autocomplete>.ck-search__results{position:absolute;z-index:var(--ck-z-modal)}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{bottom:100%}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{bottom:auto;top:100%}.ck.ck-autocomplete>.ck-search__results{border-radius:0}.ck-rounded-corners .ck.ck-autocomplete>.ck-search__results,.ck.ck-autocomplete>.ck-search__results.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-autocomplete>.ck-search__results{background:var(--ck-color-base-background);border:1px solid var(--ck-color-dropdown-panel-border);box-shadow:var(--ck-drop-shadow),0 0;max-height:200px;min-width:auto;overflow-y:auto}.ck.ck-autocomplete>.ck-search__results.ck-search__results_n{border-bottom-left-radius:0;border-bottom-right-radius:0;margin-bottom:-1px}.ck.ck-autocomplete>.ck-search__results.ck-search__results_s{border-top-left-radius:0;border-top-right-radius:0;margin-top:-1px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/autocomplete/autocomplete.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,oBACC,iBAeD,CAbC,wCACC,iBAAkB,CAClB,yBAUD,CARC,6DACC,WACD,CAEA,6DAEC,WAAY,CADZ,QAED,CCVD,wCCEA,eDuBA,CAzBA,uHCMC,qCDmBD,CAzBA,wCAMC,0CAA2C,CAC3C,sDAAuD,CEPxD,oCAA8B,CFI7B,gBAAiB,CAIjB,cAAe,CAHf,eAoBD,CAfC,6DACC,2BAA4B,CAC5B,4BAA6B,CAG7B,kBACD,CAEA,6DACC,wBAAyB,CACzB,yBAA0B,CAG1B,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-autocomplete {\n\tposition: relative;\n\n\t& > .ck-search__results {\n\t\tposition: absolute;\n\t\tz-index: var(--ck-z-modal);\n\n\t\t&.ck-search__results_n {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css";\n\n.ck.ck-autocomplete {\n\t& > .ck-search__results {\n\t\t@mixin ck-rounded-corners;\n\t\t@mixin ck-drop-shadow;\n\n\t\tmax-height: 200px;\n\t\toverflow-y: auto;\n\t\tbackground: var(--ck-color-base-background);\n\t\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\t\tmin-width: auto;\n\n\t\t&.ck-search__results_n {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-bottom: -1px;\n\t\t}\n\n\t\t&.ck-search__results_s {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-top-right-radius: 0;\n\n\t\t\t/* Prevent duplicated borders between the input and the results pane. */\n\t\t\tmargin-top: -1px;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4906:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/button.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},5332:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating\u2013point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);const I=P},6781:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-selector__color-tile_bordered{box-shadow:0 0 0 1px var(--ck-color-base-border)}.ck.ck-color-grid__tile .ck.ck-icon{color:var(--ck-color-color-grid-check-icon);display:none}.ck.ck-color-grid__tile.ck-on{box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-base-text)}.ck.ck-color-grid__tile.ck-on .ck.ck-icon{display:block}.ck.ck-color-grid__tile.ck-on,.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){border:0}.ck.ck-color-grid__tile:focus:not(.ck-disabled),.ck.ck-color-grid__tile:hover:not(.ck-disabled){box-shadow:inset 0 0 0 1px var(--ck-color-base-background),0 0 0 2px var(--ck-color-focus-border)}.ck.ck-color-grid__label{padding:0 var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorgrid/colorgrid.css"],names:[],mappings:"AAKA,kBACC,YACD,CCAA,MACC,8BAA+B,CAK/B,wCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,+DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-selector__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);const I=P},3398:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".color-picker-hex-input{width:max-content}.color-picker-hex-input .ck.ck-input{min-width:unset}.ck.ck-color-picker__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between;margin:var(--ck-spacing-large) 0 0;width:unset}.ck.ck-color-picker__row .ck.ck-labeled-field-view{padding-top:unset}.ck.ck-color-picker__row .ck.ck-input-text{width:unset}.ck.ck-color-picker__row .ck-color-picker__hash-view{padding-right:var(--ck-spacing-medium);padding-top:var(--ck-spacing-tiny)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorpicker/colorpicker.css"],names:[],mappings:"AAKA,wBACC,iBAKD,CAHC,qCACC,eACD,CAGD,yBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAA8B,CAC9B,kCAAmC,CACnC,WAcD,CAZC,mDACC,iBACD,CAEA,2CACC,WACD,CAEA,qDAEC,sCAAuC,CADvC,kCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.color-picker-hex-input {\n\twidth: max-content;\n\n\t& .ck.ck-input {\n\t\tmin-width: unset;\n\t}\n}\n\n.ck.ck-color-picker__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\tmargin: var(--ck-spacing-large) 0 0;\n\twidth: unset;\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: unset;\n\t}\n\n\t& .ck.ck-input-text {\n\t\twidth: unset;\n\t}\n\n\t& .ck-color-picker__hash-view {\n\t\tpadding-top: var(--ck-spacing-tiny);\n\t\tpadding-right: var(--ck-spacing-medium);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4157:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{align-items:center;display:flex}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{justify-content:flex-start}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{display:flex;flex-direction:row;justify-content:space-around}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-cancel,.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar .ck-button-save{flex:1}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker,.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__remove-color{width:100%}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-color-selector .ck-color-grids-fragment .ck-button.ck-color-selector__color-picker .ck.ck-icon{margin-left:var(--ck-spacing-standard)}.ck.ck-color-selector .ck-color-grids-fragment label.ck.ck-color-grid__label{font-weight:unset}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker{padding:8px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker{height:100px;min-width:180px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation){border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue){border-radius:0 0 var(--ck-border-radius) var(--ck-border-radius)}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(hue-pointer),.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-picker .hex-color-picker::part(saturation-pointer){height:15px;width:15px}.ck.ck-color-selector .ck-color-picker-fragment .ck.ck-color-selector_action-bar{padding:0 8px 8px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/colorselector/colorselector.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/colorselector/colorselector.css"],names:[],mappings:"AAUE,oLAGC,kBAAmB,CADnB,YAMD,CARA,wMAME,0BAEF,CAKA,iFACC,YAAa,CACb,kBAAmB,CACnB,4BAMD,CAJC,oMAEC,MACD,CCrBD,oLAEC,UACD,CAEA,0FAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,sGACC,gDACD,CAEA,gHAEE,uCAMF,CARA,gHAME,sCAEF,CAGD,6EACC,iBACD,CAKA,oEACC,WAoBD,CAlBC,sFACC,YAAa,CACb,eAeD,CAbC,wGACC,iEACD,CAEA,iGACC,iEACD,CAEA,yNAGC,WAAY,CADZ,UAED,CAIF,iFACC,iBACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tjustify-content: flex-start;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tdisplay: flex;\n\t\t\tflex-direction: row;\n\t\t\tjustify-content: space-around;\n\n\t\t\t& .ck-button-save,\n\t\t\t& .ck-button-cancel {\n\t\t\t\tflex: 1\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-color-selector {\n\t/* View fragment with color grids. */\n\t& .ck-color-grids-fragment {\n\t\t& .ck-button.ck-color-selector__remove-color,\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t& .ck-button.ck-color-selector__color-picker {\n\t\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck.ck-icon {\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& label.ck.ck-color-grid__label {\n\t\t\tfont-weight: unset;\n\t\t}\n\t}\n\n\t/* View fragment with a color picker. */\n\t& .ck-color-picker-fragment {\n\t\t& .ck.ck-color-picker {\n\t\t\tpadding: 8px;\n\n\t\t\t& .hex-color-picker {\n\t\t\t\theight: 100px;\n\t\t\t\tmin-width: 180px;\n\n\t\t\t\t&::part(saturation) {\n\t\t\t\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\t\t\t\t}\n\n\t\t\t\t&::part(hue) {\n\t\t\t\t\tborder-radius: 0 0 var(--ck-border-radius) var(--ck-border-radius);\n\t\t\t\t}\n\n\t\t\t\t&::part(saturation-pointer),\n\t\t\t\t&::part(hue-pointer) {\n\t\t\t\t\twidth: 15px;\n\t\t\t\t\theight: 15px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .ck.ck-color-selector_action-bar {\n\t\t\tpadding: 0 8px 8px;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},5485:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}.ck.ck-dropdown__panel:focus{outline:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBA2ED,CAzEC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UACD,CAEA,oCACC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,oHAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CCpFA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eHkHD,CAhCA,qFG9EE,qCH8GF,CAhCA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAuBD,CAnBC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD,CAEA,6BACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3949:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7686:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7339:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);const I=P},9688:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-panel-background)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-panel-background)}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAWA,MACC,0CACD,CAEA,yDCJC,eDWD,CAPA,yJCAE,qCDOF,CAJC,oEEPA,2BAA2B,CCF3B,qCAA8B,CDC9B,YFWA,CAGD,+BAGC,4BAA6B,CAF7B,aAAc,CACd,oCA6BD,CA1BC,wCACC,eACD,CAEA,wCACC,gBACD,CAGA,4CACC,kCACD,CAGA,2CAKC,qCACD,CAGA,sDACC,kDACD,CAKA,gEACC,oDACD,CAIA,gEACC,iDACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-panel-background);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-panel-background);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8847:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__header .ck-icon{margin-right:var(--ck-spacing-medium)}.ck.ck-form__header h2.ck-form__header__label{flex-grow:1}:root{--ck-form-header-height:38px}.ck.ck-form__header{border-bottom:1px solid var(--ck-color-base-border);height:var(--ck-form-header-height);line-height:var(--ck-form-header-height);padding:var(--ck-spacing-small) var(--ck-spacing-large)}.ck.ck-form__header .ck-form__header__label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/formheader/formheader.css"],names:[],mappings:"AAKA,oBAIC,kBAAmB,CAHnB,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CAEjB,6BASD,CAPC,6BACC,qCACD,CAEA,8CACC,WACD,CCbD,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n\n\t& .ck-icon {\n\t\tmargin-right: var(--ck-spacing-medium);\n\t}\n\n\t& h2.ck-form__header__label {\n\t\tflex-grow: 1;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8960:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-highlighted-text mark{background:var(--ck-color-highlight-background);font-size:inherit;font-weight:inherit;line-height:inherit;vertical-align:initial}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/highlightedtext/highlightedtext.css"],names:[],mappings:"AAKA,6BACC,+CAAgD,CAIhD,iBAAkB,CAFlB,mBAAoB,CACpB,mBAAoB,CAFpB,sBAID",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-highlighted-text mark {\n\tbackground: var(--ck-color-highlight-background);\n\tvertical-align: initial;\n\tfont-weight: inherit;\n\tline-height: inherit;\n\tfont-size: inherit;\n}\n"],sourceRoot:""}]);const I=P},6574:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/icon/icon.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},4879:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},3662:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/label/label.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);const I=P},2577:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},1046:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck-list .ck-list__group{padding-top:var(--ck-spacing-medium);:not(.ck-hidden)~&{border-top:1px solid var(--ck-color-base-border)}}.ck-list .ck-list__group>span{font-size:11px;font-weight:700;padding:var(--ck-spacing-medium)}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/list/list.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,YAGC,YAAa,CACb,qBAAsB,CCFtB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDaD,CAZC,2DAEC,aACD,CAKA,kCACC,iBAAkB,CAClB,2BACD,CEfD,YCEC,eDGD,CALA,+DCME,qCDDF,CALA,YAIC,0CAA2C,CAD3C,oBAED,CAEA,kBACC,cAAe,CACf,cA2DD,CAzDC,6BAIC,eAAgB,CAHhB,gBAAiB,CAQjB,iIAEiE,CARjE,eAAgB,CADhB,UAwCD,CA7BC,+CAEC,yEACD,CAEA,oCACC,eACD,CAEA,mCACC,oDAAqD,CACrD,yCAaD,CAXC,0CACC,eACD,CAEA,2DACC,0DACD,CAEA,iFACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,yBACC,oCAAqC,CAGrC,mBACC,gDACD,CAOD,CALC,8BACC,cAAe,CACf,eAAiB,CACjB,gCACD,CAGD,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-list .ck-list__group {\n\tpadding-top: var(--ck-spacing-medium);\n\n\t/* The group should have a border when it\'s not the first item. */\n\t*:not(.ck-hidden) ~ & {\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& > span {\n\t\tfont-size: 11px;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium);\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},8793:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},4650:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);const I=P},7676:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},5868:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},6764:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./../ckeditor5-ui/theme/mixins/_rwd.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);const I=P},6770:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{position:absolute;top:50%;transform:translateY(-50%)}[dir=ltr] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{left:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view>.ck-labeled-field-view__input-wrapper>.ck-icon{right:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view .ck-search__reset{position:absolute;top:50%;transform:translateY(-50%)}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{display:block}.ck.ck-search>.ck-search__results>.ck-search__info:not(.ck-hidden)~*{display:none}:root{--ck-search-field-view-horizontal-spacing:calc(var(--ck-icon-size) + var(--ck-spacing-medium))}.ck.ck-search>.ck-labeled-field-view .ck-input{width:100%}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon{--ck-labeled-field-label-default-position-x:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon>.ck-labeled-field-view__input-wrapper>.ck-icon{opacity:.5;pointer-events:none}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input,[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-icon .ck-input:not(.ck-input-text_empty){padding-left:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset{--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset.ck-labeled-field-view_empty{--ck-labeled-field-empty-unfocused-max-width:100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{background:none;min-height:auto;min-width:auto;opacity:.5;padding:0}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{right:var(--ck-spacing-medium)}[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset{left:var(--ck-spacing-medium)}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-search__reset:hover{opacity:1}.ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{width:100%}[dir=ltr] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input:not(.ck-input-text_empty),[dir=rtl] .ck.ck-search>.ck-labeled-field-view.ck-search__query_with-reset .ck-input{padding-right:var(--ck-search-field-view-horizontal-spacing)}.ck.ck-search>.ck-search__results{min-width:100%}.ck.ck-search>.ck-search__results>.ck-search__info{padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-search>.ck-search__results>.ck-search__info *{white-space:normal}.ck.ck-search>.ck-search__results>.ck-search__info>span:first-child{font-weight:700}.ck.ck-search>.ck-search__results>.ck-search__info>span:last-child{margin-top:var(--ck-spacing-medium)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/search/search.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/search/search.css"],names:[],mappings:"AASE,oFACC,iBAAkB,CAClB,OAAQ,CACR,0BASD,CAZA,8FAME,6BAMF,CAZA,8FAUE,8BAEF,CAEA,uDACC,iBAAkB,CAClB,OAAQ,CACR,0BACD,CAKC,oEACC,aACD,CAGA,qEACC,YACD,CChCH,MACC,8FACD,CAIE,+CACC,UACD,CAEA,gEACC,0FAoBD,CAlBC,+GACC,UAAW,CACX,mBACD,CAEA,0EACC,UAWD,CAJE,kMACC,2DACD,CAKH,iEACC,sGAwCD,CAtCC,6FACC,6HACD,CAEA,mFAIC,eAAgB,CAFhB,eAAgB,CADhB,cAAe,CAIf,UAAW,CACX,SAaD,CAnBA,6FASE,8BAUF,CAnBA,6FAaE,6BAMF,CAHC,yFACC,SACD,CAGD,2EACC,UAWD,CAZA,oMAUE,4DAEF,CAIF,kCACC,cAkBD,CAhBC,mDAEC,wDAAyD,CADzD,UAcD,CAXC,qDACC,kBACD,CAEA,oEACC,eACD,CAEA,mEACC,mCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\n\t\t& .ck-search__reset {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\t& > .ck-search__info {\n\t\t\t& > span:first-child {\n\t\t\t\tdisplay: block;\n\t\t\t}\n\n\t\t\t/* Hide the filtered view when nothing was found */\n\t\t\t&:not(.ck-hidden) ~ * {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-search-field-view-horizontal-spacing: calc(var(--ck-icon-size) + var(--ck-spacing-medium));\n}\n\n.ck.ck-search {\n\t& > .ck-labeled-field-view {\n\t\t& .ck-input {\n\t\t\twidth: 100%;\n\t\t}\n\n\t\t&.ck-search__query_with-icon {\n\t\t\t--ck-labeled-field-label-default-position-x: var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t& > .ck-labeled-field-view__input-wrapper > .ck-icon {\n\t\t\t\topacity: .5;\n\t\t\t\tpointer-events: none;\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-left: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-search__query_with-reset {\n\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-search-field-view-horizontal-spacing);\n\n\t\t\t&.ck-labeled-field-view_empty {\n\t\t\t\t--ck-labeled-field-empty-unfocused-max-width: 100% - var(--ck-search-field-view-horizontal-spacing) - var(--ck-spacing-medium);\n\t\t\t}\n\n\t\t\t& .ck-search__reset {\n\t\t\t\tmin-width: auto;\n\t\t\t\tmin-height: auto;\n\n\t\t\t\tbackground: none;\n\t\t\t\topacity: .5;\n\t\t\t\tpadding: 0;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\tright: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tleft: var(--ck-spacing-medium);\n\t\t\t\t}\n\n\t\t\t\t&:hover {\n\t\t\t\t\topacity: 1;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-input {\n\t\t\t\twidth: 100%;\n\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\t&:not(.ck-input-text_empty) {\n\t\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t\t}\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\tpadding-right: var(--ck-search-field-view-horizontal-spacing);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-search__results {\n\t\tmin-width: 100%;\n\n\t\t& > .ck-search__info {\n\t\t\twidth: 100%;\n\t\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\n\t\t\t& * {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\n\t\t\t& > span:first-child {\n\t\t\t\tfont-weight: bold;\n\t\t\t}\n\n\t\t\t& > span:last-child {\n\t\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t\t}\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);const I=P},498:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-spinner-container{display:block;position:relative}.ck.ck-spinner{left:0;margin:0 auto;position:absolute;right:0;top:50%;transform:translateY(-50%);z-index:1}:root{--ck-toolbar-spinner-size:18px}.ck.ck-spinner-container{animation:rotate 1.5s linear infinite}.ck.ck-spinner,.ck.ck-spinner-container{height:var(--ck-toolbar-spinner-size);width:var(--ck-toolbar-spinner-size)}.ck.ck-spinner{border:2px solid var(--ck-color-text);border-radius:50%;border-top:2px solid transparent}@keyframes rotate{to{transform:rotate(1turn)}}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/spinner/spinner.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/spinner/spinner.css"],names:[],mappings:"AASA,yBACC,aAAc,CACd,iBACD,CAEA,eAGC,MAAO,CAEP,aAAc,CAJd,iBAAkB,CAGlB,OAAQ,CAFR,OAAQ,CAIR,0BAA2B,CAC3B,SACD,CCjBA,MACC,8BACD,CAEA,yBAGC,qCACD,CAEA,wCAJC,qCAAsC,CADtC,oCAWD,CANA,eAKC,qCAA6B,CAF7B,iBAAkB,CAElB,gCACD,CAEA,kBACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\tdisplay: block;\n\tposition: relative;\n}\n\n.ck.ck-spinner {\n\tposition: absolute;\n\ttop: 50%;\n\tleft: 0;\n\tright: 0;\n\tmargin: 0 auto;\n\ttransform: translateY(-50%);\n\tz-index: 1;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-spinner-size: 18px;\n}\n\n.ck.ck-spinner-container {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tanimation: 1.5s infinite rotate linear;\n}\n\n.ck.ck-spinner {\n\twidth: var(--ck-toolbar-spinner-size);\n\theight: var(--ck-toolbar-spinner-size);\n\tborder-radius: 50%;\n\tborder: 2px solid var(--ck-color-text);\n\tborder-top-color: transparent;\n}\n\n@keyframes rotate {\n\tto {\n\t\ttransform: rotate(360deg)\n\t}\n}\n\n"],sourceRoot:""}]);const I=P},8182:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-textarea{overflow-x:hidden}","",{version:3,sources:["webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/textarea/textarea.css"],names:[],mappings:"AASA,aACC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/*\n * This fixes a problem in Firefox when the initial height of the complement does not match the number of rows.\n * This bug is especially visible when rows=1.\n */\n.ck-textarea {\n\toverflow-x: hidden\n}\n"],sourceRoot:""}]);const I=P},9695:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);const I=P},5542:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck.ck-toolbar:focus{outline:none}.ck-toolbar-container .ck.ck-toolbar{border:0}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck{margin-right:0}.ck.ck-toolbar[dir=rtl]:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck,[dir=rtl] .ck.ck-toolbar:not(.ck-toolbar_compact)>.ck-toolbar__items>.ck{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-left:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:first-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=rtl]>.ck-toolbar__items>.ck:last-child,[dir=rtl] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=rtl]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar>.ck-toolbar__items>.ck:last-child{margin-right:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:first-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:first-child{border-bottom-right-radius:0;border-top-right-radius:0}.ck.ck-toolbar.ck-toolbar_compact[dir=ltr]>.ck-toolbar__items>.ck:last-child,[dir=ltr] .ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>.ck:last-child{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-toolbar.ck-toolbar_grouping[dir=ltr]>.ck-toolbar__items:not(:empty):not(:only-child),.ck.ck-toolbar[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./../ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,eAKC,kBAAmB,CAFnB,YAAa,CACb,oBAAqB,CCFrB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6CD,CA3CC,kCAGC,kBAAmB,CAFnB,YAAa,CACb,kBAAmB,CAEnB,WAED,CAEA,yCACC,oBAWD,CAJC,yGAEC,YACD,CAGD,uCACC,eACD,CAEA,sDACC,gBACD,CAEA,sDACC,qBACD,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eDwGD,CA3GA,qECOE,qCDoGF,CA3GA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAuGD,CApGC,yCACC,kBAAmB,CAGnB,yCAA0C,CAO1C,qCAAsC,CADtC,kCAAmC,CAPnC,aAAc,CADd,SAUD,CAEA,uCACC,QACD,CAGC,gEAEC,oCACD,CAIA,kEACC,YACD,CAGD,gHAIC,qCAAsC,CADtC,kCAED,CAEA,mCAEC,SAaD,CAVC,0DAQC,eAAgB,CAHhB,QAAS,CAHT,UAOD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAMA,wEACC,cACD,CAEA,iFACC,aAAc,CACd,UACD,CAGD,qBACC,YACD,CAtGD,qCAyGE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CASD,8RACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CASD,8RACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t&:focus {\n\t\toutline: none;\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);const I=P},3332:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-tooltip-text-padding:4px;--ck-color-panel-background:var(--ck-color-tooltip-background);padding:0 var(--ck-spacing-medium);pointer-events:none;z-index:calc(var(--ck-z-modal) + 100)}.ck.ck-balloon-panel.ck-tooltip .ck-tooltip__text{color:var(--ck-color-tooltip-text);font-size:.9em;line-height:1.5}.ck.ck-balloon-panel.ck-tooltip.ck-tooltip_multi-line .ck-tooltip__text{display:inline-block;padding:var(--ck-tooltip-text-padding) 0;white-space:break-spaces}.ck.ck-balloon-panel.ck-tooltip{box-shadow:none}.ck.ck-balloon-panel.ck-tooltip:before{display:none}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/components/tooltip/tooltip.css"],names:[],mappings:"AAKA,gCCGC,6BAA8B,CAC9B,6BAA8B,CAC9B,iCAAkC,CAClC,6BAA8B,CAC9B,6BAA8B,CAC9B,8DAA+D,CAE/D,kCAAmC,CDRnC,mBAAoB,CAEpB,qCACD,CCOC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAEA,wEAEC,oBAAqB,CACrB,wCAAyC,CAFzC,wBAGD,CApBD,gCAuBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-tooltip-text-padding: 4px;\n\t--ck-color-panel-background: var(--ck-color-tooltip-background);\n\n\tpadding: 0 var(--ck-spacing-medium);\n\n\t& .ck-tooltip__text {\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t}\n\n\t&.ck-tooltip_multi-line .ck-tooltip__text {\n\t\twhite-space: break-spaces;\n\t\tdisplay: inline-block;\n\t\tpadding: var(--ck-tooltip-text-padding) 0;\n\t}\n\n\t/* Reset balloon panel styles */\n\tbox-shadow: none;\n\n\t/* Hide the default shadow of the .ck-balloon-panel tip */\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n'],sourceRoot:""}]);const I=P},4793:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-powered-by-line-height:10px;--ck-powered-by-padding-vertical:2px;--ck-powered-by-padding-horizontal:4px;--ck-powered-by-text-color:#4f4f4f;--ck-powered-by-border-radius:var(--ck-border-radius);--ck-powered-by-background:#fff;--ck-powered-by-border-color:var(--ck-color-focus-border)}.ck.ck-balloon-panel.ck-powered-by-balloon{--ck-border-radius:var(--ck-powered-by-border-radius);background:var(--ck-powered-by-background);box-shadow:none;min-height:unset;z-index:calc(var(--ck-z-modal) - 1)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by{line-height:var(--ck-powered-by-line-height)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by a{align-items:center;cursor:pointer;display:flex;filter:grayscale(80%);line-height:var(--ck-powered-by-line-height);opacity:.66;padding:var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal)}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-powered-by__label{color:var(--ck-powered-by-text-color);cursor:pointer;font-size:7.5px;font-weight:700;letter-spacing:-.2px;line-height:normal;margin-right:4px;padding-left:2px;text-transform:uppercase}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by .ck-icon{cursor:pointer;display:block}.ck.ck-balloon-panel.ck-powered-by-balloon .ck.ck-powered-by:hover a{filter:grayscale(0);opacity:1}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_inside]{border-color:transparent}.ck.ck-balloon-panel.ck-powered-by-balloon[class*=position_border]{border:var(--ck-focus-ring);border-color:var(--ck-powered-by-border-color)}:root{--ck-color-base-foreground:#fafafa;--ck-color-base-background:#fff;--ck-color-base-border:#ccced1;--ck-color-base-action:#53a336;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#2977ff;--ck-color-base-active-focus:#0d65ff;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:218,81.8%,56.9%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#cae1fc;--ck-color-focus-disabled-shadow:rgba(119,186,248,.3);--ck-color-focus-error-shadow:rgba(255,64,31,.3);--ck-color-text:var(--ck-color-base-text);--ck-color-shadow-drop:rgba(0,0,0,.15);--ck-color-shadow-drop-active:rgba(0,0,0,.2);--ck-color-shadow-inner:rgba(0,0,0,.1);--ck-color-button-default-background:transparent;--ck-color-button-default-hover-background:#f0f0f0;--ck-color-button-default-active-background:#f0f0f0;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#f0f7ff;--ck-color-button-on-hover-background:#dbecff;--ck-color-button-on-active-background:#dbecff;--ck-color-button-on-disabled-background:#f0f2f4;--ck-color-button-on-color:#2977ff;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#4d9d30;--ck-color-button-action-active-background:#4d9d30;--ck-color-button-action-disabled-background:#7ec365;--ck-color-button-action-text:var(--ck-color-base-background);--ck-color-button-save:#008a00;--ck-color-button-cancel:#db3700;--ck-color-switch-button-off-background:#939393;--ck-color-switch-button-off-hover-background:#7d7d7d;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#4d9d30;--ck-color-switch-button-inner-background:var(--ck-color-base-background);--ck-color-switch-button-inner-shadow:rgba(0,0,0,.1);--ck-color-dropdown-panel-background:var(--ck-color-base-background);--ck-color-dropdown-panel-border:var(--ck-color-base-border);--ck-color-input-background:var(--ck-color-base-background);--ck-color-input-border:var(--ck-color-base-border);--ck-color-input-error-border:var(--ck-color-base-error);--ck-color-input-text:var(--ck-color-base-text);--ck-color-input-disabled-background:#f2f2f2;--ck-color-input-disabled-border:var(--ck-color-base-border);--ck-color-input-disabled-text:#757575;--ck-color-list-background:var(--ck-color-base-background);--ck-color-list-button-hover-background:var(--ck-color-button-default-hover-background);--ck-color-list-button-on-background:var(--ck-color-button-on-color);--ck-color-list-button-on-background-focus:var(--ck-color-button-on-color);--ck-color-list-button-on-text:var(--ck-color-base-background);--ck-color-panel-background:var(--ck-color-base-background);--ck-color-panel-border:var(--ck-color-base-border);--ck-color-toolbar-background:var(--ck-color-base-background);--ck-color-toolbar-border:var(--ck-color-base-border);--ck-color-tooltip-background:var(--ck-color-base-text);--ck-color-tooltip-text:var(--ck-color-base-background);--ck-color-engine-placeholder-text:#707070;--ck-color-upload-bar-background:#6cb5f9;--ck-color-link-default:#0000f0;--ck-color-link-selected-background:rgba(31,176,255,.1);--ck-color-link-fake-selection:rgba(31,176,255,.3);--ck-color-highlight-background:#ff0;--ck-disabled-opacity:.5;--ck-focus-outer-shadow-geometry:0 0 0 3px;--ck-focus-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);--ck-focus-disabled-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);--ck-focus-error-outer-shadow:var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);--ck-focus-ring:1px solid var(--ck-color-focus-border);--ck-font-size-base:13px;--ck-line-height-base:1.84615;--ck-font-face:Helvetica,Arial,Tahoma,Verdana,Sans-Serif;--ck-font-size-tiny:0.7em;--ck-font-size-small:0.75em;--ck-font-size-normal:1em;--ck-font-size-big:1.4em;--ck-font-size-large:1.8em;--ck-ui-component-min-height:2.3em}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{word-wrap:break-word;background:transparent;border:0;margin:0;padding:0;text-decoration:none;transition:none;vertical-align:middle}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset_all{border-collapse:collapse;color:var(--ck-color-text);cursor:auto;float:none;font:normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);text-align:left;white-space:nowrap}.ck-reset_all .ck-rtl :not(.ck-reset_all-excluded *){text-align:right}.ck-reset_all iframe:not(.ck-reset_all-excluded *){vertical-align:inherit}.ck-reset_all textarea:not(.ck-reset_all-excluded *){white-space:pre-wrap}.ck-reset_all input[type=password]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text]:not(.ck-reset_all-excluded *),.ck-reset_all textarea:not(.ck-reset_all-excluded *){cursor:text}.ck-reset_all input[type=password][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all input[type=text][disabled]:not(.ck-reset_all-excluded *),.ck-reset_all textarea[disabled]:not(.ck-reset_all-excluded *){cursor:default}.ck-reset_all fieldset:not(.ck-reset_all-excluded *){border:2px groove #dfdee3;padding:10px}.ck-reset_all button:not(.ck-reset_all-excluded *)::-moz-focus-inner{border:0;padding:0}.ck[dir=rtl],.ck[dir=rtl] .ck{text-align:right}:root{--ck-border-radius:2px;--ck-inner-shadow:2px 2px 3px var(--ck-color-shadow-inner) inset;--ck-drop-shadow:0 1px 2px 1px var(--ck-color-shadow-drop);--ck-drop-shadow-active:0 3px 6px 1px var(--ck-color-shadow-drop-active);--ck-spacing-unit:0.6em;--ck-spacing-large:calc(var(--ck-spacing-unit)*1.5);--ck-spacing-standard:var(--ck-spacing-unit);--ck-spacing-medium:calc(var(--ck-spacing-unit)*0.8);--ck-spacing-small:calc(var(--ck-spacing-unit)*0.5);--ck-spacing-tiny:calc(var(--ck-spacing-unit)*0.3);--ck-spacing-extra-tiny:calc(var(--ck-spacing-unit)*0.16)}","",{version:3,sources:["webpack://./../ckeditor5-ui/theme/globals/_hidden.css","webpack://./../ckeditor5-ui/theme/globals/_reset.css","webpack://./../ckeditor5-ui/theme/globals/_zindex.css","webpack://./../ckeditor5-ui/theme/globals/_transition.css","webpack://./../ckeditor5-ui/theme/globals/_poweredby.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_spacing.css"],names:[],mappings:"AAQA,WAGC,sBACD,CCPA,2EAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,gCAAiC,CACjC,oCAAqC,CACrC,sCAAuC,CACvC,kCAA2C,CAC3C,qDAAsD,CACtD,+BAA4C,CAC5C,yDACD,CAEA,2CACC,qDAAsD,CAGtD,0CAA2C,CAD3C,eAAgB,CAEhB,gBAAiB,CACjB,mCAiDD,CA/CC,6DACC,4CAoCD,CAlCC,+DAGC,kBAAmB,CAFnB,cAAe,CACf,YAAa,CAGb,qBAAsB,CACtB,4CAA6C,CAF7C,WAAY,CAGZ,qFACD,CAEA,mFASC,qCAAsC,CAFtC,cAAe,CANf,eAAgB,CAIhB,eAAiB,CAHjB,oBAAqB,CAMrB,kBAAmB,CAFnB,gBAAiB,CAHjB,gBAAiB,CACjB,wBAOD,CAEA,sEAEC,cAAe,CADf,aAED,CAGC,qEACC,mBAAqB,CACrB,SACD,CAIF,mEACC,wBACD,CAEA,mEACC,2BAA4B,CAC5B,8CACD,CChED,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAkD,CAClD,8BAAuD,CACvD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAsD,CACtD,oCAA4D,CAC5D,6BAAkD,CAIlD,mDAA4D,CAC5D,qEAA+E,CAC/E,qCAA4D,CAC5D,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAAiE,CACjE,mDAAkE,CAClE,yDAA8D,CAE9D,uCAA6D,CAC7D,6CAAoE,CACpE,8CAAoE,CACpE,gDAAiE,CACjE,kCAAyD,CAGzD,+DAAsE,CACtE,iDAAsE,CACtE,kDAAsE,CACtE,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA8D,CAC9D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAuE,CACvE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,mDAA6D,CAC7D,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,4DAAoE,CACpE,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,oEAA2E,CAC3E,0EAA+E,CAC/E,8DAAsE,CAItE,2DAAoE,CACpE,mDAA6D,CAI7D,6DAAsE,CACtE,qDAA+D,CAI/D,uDAAgE,CAChE,uDAAiE,CAIjE,0CAAyD,CAIzD,wCAA2D,CAI3D,+BAAoD,CACpD,uDAAmE,CACnE,kDAAgE,CAIhE,oCAAwD,CCvGxD,wBAAyB,CCAzB,0CAA2C,CAK3C,gGAAiG,CAKjG,4GAA6G,CAK7G,sGAAuG,CAKvG,sDAAuD,CCvBvD,wBAAyB,CACzB,6BAA8B,CAC9B,wDAA6D,CAE7D,yBAA0B,CAC1B,2BAA4B,CAC5B,yBAA0B,CAC1B,wBAAyB,CACzB,0BAA2B,CCJ3B,kCJuGD,CIjGA,2EAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,8DAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,qDACC,gBACD,CAEA,mDAEC,sBACD,CAEA,qDACC,oBACD,CAEA,mLAGC,WACD,CAEA,iNAGC,cACD,CAEA,qDAEC,yBAAoC,CADpC,YAED,CAEA,qEAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-powered-by-line-height: 10px;\n\t--ck-powered-by-padding-vertical: 2px;\n\t--ck-powered-by-padding-horizontal: 4px;\n\t--ck-powered-by-text-color: hsl(0, 0%, 31%);\n\t--ck-powered-by-border-radius: var(--ck-border-radius);\n\t--ck-powered-by-background: hsl(0, 0%, 100%);\n\t--ck-powered-by-border-color: var(--ck-color-focus-border);\n}\n\n.ck.ck-balloon-panel.ck-powered-by-balloon {\n\t--ck-border-radius: var(--ck-powered-by-border-radius);\n\n\tbox-shadow: none;\n\tbackground: var(--ck-powered-by-background);\n\tmin-height: unset;\n\tz-index: calc( var(--ck-z-modal) - 1 );\n\n\t& .ck.ck-powered-by {\n\t\tline-height: var(--ck-powered-by-line-height);\n\n\t\t& a {\n\t\t\tcursor: pointer;\n\t\t\tdisplay: flex;\n\t\t\talign-items: center;\n\t\t\topacity: .66;\n\t\t\tfilter: grayscale(80%);\n\t\t\tline-height: var(--ck-powered-by-line-height);\n\t\t\tpadding: var(--ck-powered-by-padding-vertical) var(--ck-powered-by-padding-horizontal);\n\t\t}\n\n\t\t& .ck-powered-by__label {\n\t\t\tfont-size: 7.5px;\n\t\t\tletter-spacing: -.2px;\n\t\t\tpadding-left: 2px;\n\t\t\ttext-transform: uppercase;\n\t\t\tfont-weight: bold;\n\t\t\tmargin-right: 4px;\n\t\t\tcursor: pointer;\n\t\t\tline-height: normal;\n\t\t\tcolor: var(--ck-powered-by-text-color);\n\n\t\t}\n\n\t\t& .ck-icon {\n\t\t\tdisplay: block;\n\t\t\tcursor: pointer;\n\t\t}\n\n\t\t&:hover {\n\t\t\t& a {\n\t\t\t\tfilter: grayscale(0%);\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[class*="position_inside"] {\n\t\tborder-color: transparent;\n\t}\n\n\t&[class*="position_border"] {\n\t\tborder: var(--ck-focus-ring);\n\t\tborder-color: var(--ck-powered-by-border-color);\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);const I=P},3488:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widget.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./../ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);const I=P},8506:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgetresize.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);const I=P},4921:(t,A,C)=>{"use strict";C.d(A,{Z:()=>I});var U=C(1799),k=C.n(U),D=C(2609),P=C.n(D)()(k());P.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./../ckeditor5-widget/theme/widgettypearound.css","webpack://./../ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);const I=P},2609:t=>{"use strict";t.exports=function(A){var C=[];return C.toString=function(){return this.map(function(U){var k=A(U);return U[2]?"@media ".concat(U[2]," {").concat(k,"}"):k}).join("")},C.i=function(U,k,D){"string"==typeof U&&(U=[[null,U,""]]);var P={};if(D)for(var I=0;I{"use strict";function C(U,k){(null==k||k>U.length)&&(k=U.length);for(var D=0,P=new Array(k);D{"use strict";var U,Vt,D=(Vt={},function(nt){if(void 0===Vt[nt]){var Tt=document.querySelector(nt);if(window.HTMLIFrameElement&&Tt instanceof window.HTMLIFrameElement)try{Tt=Tt.contentDocument.head}catch{Tt=null}Vt[nt]=Tt}return Vt[nt]}),P=[];function I(Vt){for(var nt=-1,Tt=0;Tt{var A=t&&t.__esModule?()=>t.default:()=>t;return v.d(A,{a:A}),A},v.d=(t,A)=>{for(var C in A)v.o(A,C)&&!v.o(t,C)&&Object.defineProperty(t,C,{enumerable:!0,get:A[C]})},v.o=(t,A)=>Object.prototype.hasOwnProperty.call(t,A),v.nc=void 0;var T={};return(()=>{"use strict";function t({emitter:m,activator:r,callback:c,contextElements:u}){m.listenTo(document,"mousedown",(_,x)=>{if(!r())return;const M="function"==typeof x.composedPath?x.composedPath():[],E="function"==typeof u?u():u;for(const F of E)if(F.contains(x.target)||M.includes(F))return;c()})}function A(m){return class extends m{disableCssTransitions(){this._isCssTransitionsDisabled=!0}enableCssTransitions(){this._isCssTransitionsDisabled=!1}constructor(...r){super(...r),this.set("_isCssTransitionsDisabled",!1),this.initializeCssTransitionDisablerMixin()}initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}}}function C({view:m}){m.listenTo(m.element,"submit",(r,c)=>{c.preventDefault(),m.fire("submit")},{useCapture:!0})}v.d(T,{default:()=>m7});const U=function(){try{return navigator.userAgent.toLowerCase()}catch{return""}}(),D_isMac=P(U),D_isGecko=(U.indexOf("windows"),!!U.match(/gecko\/\d+/)),D_isSafari=(m=U).indexOf(" applewebkit/")>-1&&-1===m.indexOf("chrome"),D_isiOS=function(m){return!!m.match(/iphone|ipad/i)||P(m)&&navigator.maxTouchPoints>0}(U),D_isAndroid=function(m){return m.indexOf("android")>-1}(U),D_isBlink=function(m){return m.indexOf("chrome/")>-1&&m.indexOf("edge/")<0}(U);var m;function P(m){return m.indexOf("macintosh")>-1}function I(m,r,c,u){c=c||function(F,V){return F===V};const _=Array.isArray(m)?m:Array.prototype.slice.call(m),x=Array.isArray(r)?r:Array.prototype.slice.call(r),M=function(F,V,W){const dt=z(F,V,W);if(-1===dt)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};const Ae=z(G(F,dt),G(V,dt),W);return{firstIndex:dt,lastIndexOld:F.length-Ae,lastIndexNew:V.length-Ae}}(_,x,c);return u?function(F,V){const{firstIndex:W,lastIndexOld:dt,lastIndexNew:Zt}=F;if(-1===W)return Array(V).fill("equal");let ue=[];return W>0&&(ue=ue.concat(Array(W).fill("equal"))),Zt-W>0&&(ue=ue.concat(Array(Zt-W).fill("insert"))),dt-W>0&&(ue=ue.concat(Array(dt-W).fill("delete"))),Zt0&&W.push({index:dt,type:"insert",values:F.slice(dt,ue)}),Zt-dt>0&&W.push({index:dt+(ue-dt),type:"delete",howMany:Zt-dt}),W}(x,M)}function z(m,r,c){for(let u=0;u200||_>200||u+_>300)return K.fastDiff(m,r,c,!0);let x,M;if(_Dn?-1:1;W[Ie+di]&&(W[Ie]=W[Ie+di].slice(0)),W[Ie]||(W[Ie]=[]),W[Ie].push(ln>Dn?x:M);let Ri=Math.max(ln,Dn),Go=Ri-Ie;for(;GoV;ue--)dt[ue]=Zt(ue);dt[V]=Zt(V),Ae++}while(dt[V]!==F);return W[V].slice(1)}!function(){let m=!1;try{m=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch{}}(),K.fastDiff=I;class lt{constructor(r,c){this.source=r,this.name=c,this.path=[],this.stop=function m(){m.called=!0},this.off=function m(){m.called=!0}}}const bt=new Array(256).fill("").map((m,r)=>("0"+r.toString(16)).slice(-2));function Pt(){const m=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0,c=4294967296*Math.random()>>>0,u=4294967296*Math.random()>>>0;return"e"+bt[m>>0&255]+bt[m>>8&255]+bt[m>>16&255]+bt[m>>24&255]+bt[r>>0&255]+bt[r>>8&255]+bt[r>>16&255]+bt[r>>24&255]+bt[c>>0&255]+bt[c>>8&255]+bt[c>>16&255]+bt[c>>24&255]+bt[u>>0&255]+bt[u>>8&255]+bt[u>>16&255]+bt[u>>24&255]}const Dt={get(m="normal"){return"number"!=typeof m?this[m]||this.normal:m},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function zt(m,r){const c=Dt.get(r.priority);for(let u=0;u{if("object"==typeof dt&&null!==dt){if(M.has(dt))return`[object ${dt.constructor.name}]`;M.add(dt)}return dt})}`:"")+ft(_)}(r,u)),this.name="CKEditorError",this.context=c,this.data=u}is(r){return"CKEditorError"===r}static rethrowUnexpectedError(r,c){if(r.is&&r.is("CKEditorError"))throw r;const u=new nt(r.message,c);throw u.stack=r.stack,u}}function Tt(m,r){console.warn(...Et(m,r))}function At(m,r){console.error(...Et(m,r))}function ft(m){return`\nRead more: https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html#error-${m}`}function Et(m,r){const c=ft(m);return r?[m,r,c]:[m,c]}const It=new Date(2023,9,4);if(globalThis.CKEDITOR_VERSION)throw new nt("ckeditor-duplicated-modules",null);globalThis.CKEDITOR_VERSION="40.0.0";const se=Symbol("listeningTo"),Jt=Symbol("emitterId"),ve=Symbol("delegations"),xe=Oe(Object);function Oe(m){return m?class extends m{on(r,c,u){this.listenTo(this,r,c,u)}once(r,c,u){let _=!1;this.listenTo(this,r,(x,...M)=>{_||(_=!0,x.off(),c.call(this,x,...M))},u)}off(r,c){this.stopListening(this,r,c)}listenTo(r,c,u,_={}){let x,M;this[se]||(this[se]={});const E=this[se];$e(r)||qe(r);const F=$e(r);var W,dt,Zt,ue;(x=E[F])||(x=E[F]={emitter:r,callbacks:{}}),(M=x.callbacks[c])||(M=x.callbacks[c]=[]),M.push(u),dt=c,Zt=u,ue=_,(W=r)._addEventListener?W._addEventListener(dt,Zt,ue):this._addEventListener.call(W,dt,Zt,ue)}stopListening(r,c,u){const _=this[se];let x=r&&$e(r);const M=_&&x?_[x]:void 0,E=M&&c?M.callbacks[c]:void 0;if(!(!_||r&&!M||c&&!E))if(u)de(this,r,c,u),-1!==E.indexOf(u)&&(1===E.length?delete M.callbacks[c]:de(this,r,c,u));else if(E){for(;u=E.pop();)de(this,r,c,u);delete M.callbacks[c]}else if(M){for(c in M.callbacks)this.stopListening(r,c);delete _[x]}else{for(x in _)this.stopListening(_[x].emitter);delete this[se]}}fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=u.name;let x=ae(this,_);if(u.path.push(this),x){const E=[u,...c];x=Array.from(x);for(let F=0;F{this[ve]||(this[ve]=new Map),r.forEach(_=>{const x=this[ve].get(_);x?x.set(c,u):this[ve].set(_,new Map([[c,u]]))})}}}stopDelegating(r,c){if(this[ve])if(r)if(c){const u=this[ve].get(r);u&&u.delete(c)}else this[ve].delete(r);else this[ve].clear()}_addEventListener(r,c,u){!function(M,E){const F=Xt(M);if(F[E])return;let V=E,W=null;const dt=[];for(;""!==V&&!F[V];)F[V]={callbacks:[],childEvents:[]},dt.push(F[V]),W&&F[V].childEvents.push(W),W=V,V=V.substr(0,V.lastIndexOf(":"));if(""!==V){for(const Zt of dt)Zt.callbacks=F[V].callbacks.slice();F[V].childEvents.push(W)}}(this,r);const _=we(this,r),x={callback:c,priority:Dt.get(u.priority)};for(const M of _)zt(M,x)}_removeEventListener(r,c){const u=we(this,r);for(const _ of u)for(let x=0;x<_.length;x++)_[x].callback==c&&(_.splice(x,1),x--)}}:xe}function qe(m,r){m[Jt]||(m[Jt]=r||Pt())}function $e(m){return m[Jt]}function Xt(m){return m._events||Object.defineProperty(m,"_events",{value:{}}),m._events}function we(m,r){const c=Xt(m)[r];if(!c)return[];let u=[c.callbacks];for(let _=0;_-1?ae(m,r.substr(0,r.lastIndexOf(":"))):null}function Kt(m,r,c){for(let[u,_]of m){_?"function"==typeof _&&(_=_(r.name)):_=r.name;const x=new lt(r.source,_);x.path=[...r.path],u.fire(x,...c)}}function de(m,r,c,u){r._removeEventListener?r._removeEventListener(c,u):m._removeEventListener.call(r,c,u)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Oe[m]=xe.prototype[m]});const Wt=function(m){var r=typeof m;return null!=m&&("object"==r||"function"==r)},re=Symbol("observableProperties"),Pe=Symbol("boundObservables"),on=Symbol("boundProperties"),_n=Symbol("decoratedMethods"),ye=Symbol("decoratedOriginal"),gn=Ue(Oe());function Ue(m){return m?class extends m{set(r,c){if(Wt(r))return void Object.keys(r).forEach(_=>{this.set(_,r[_])},this);un(this);const u=this[re];if(r in this&&!u.has(r))throw new nt("observable-set-cannot-override",this);Object.defineProperty(this,r,{enumerable:!0,configurable:!0,get:()=>u.get(r),set(_){const x=u.get(r);let M=this.fire(`set:${r}`,r,_,x);void 0===M&&(M=_),x===M&&u.has(r)||(u.set(r,M),this.fire(`change:${r}`,r,M,x))}}),this[r]=c}bind(...r){if(!r.length||!bi(r))throw new nt("observable-bind-wrong-properties",this);if(new Set(r).size!==r.length)throw new nt("observable-bind-duplicate-properties",this);un(this);const c=this[on];r.forEach(_=>{if(c.has(_))throw new nt("observable-bind-rebind",this)});const u=new Map;return r.forEach(_=>{const x={property:_,to:[]};c.set(_,x),u.set(_,x)}),{to:Mn,toMany:oi,_observable:this,_bindProperties:r,_to:[],_bindings:u}}unbind(...r){if(!this[re])return;const c=this[on],u=this[Pe];if(r.length){if(!bi(r))throw new nt("observable-unbind-wrong-properties",this);r.forEach(_=>{const x=c.get(_);x&&(x.to.forEach(([M,E])=>{const F=u.get(M),V=F[E];V.delete(x),V.size||delete F[E],Object.keys(F).length||(u.delete(M),this.stopListening(M,"change"))}),c.delete(_))})}else u.forEach((_,x)=>{this.stopListening(x,"change")}),u.clear(),c.clear()}decorate(r){un(this);const c=this[r];if(!c)throw new nt("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:r});this.on(r,(u,_)=>{u.return=c.apply(this,_)}),this[r]=function(...u){return this.fire(r,u)},this[r][ye]=c,this[_n]||(this[_n]=[]),this[_n].push(r)}stopListening(r,c,u){if(!r&&this[_n]){for(const _ of this[_n])this[_]=this[_][ye];delete this[_n]}super.stopListening(r,c,u)}}:gn}function un(m){m[re]||(Object.defineProperty(m,re,{value:new Map}),Object.defineProperty(m,Pe,{value:new Map}),Object.defineProperty(m,on,{value:new Map}))}function Mn(...m){const r=function(...x){if(!x.length)throw new nt("observable-bind-to-parse-error",null);const M={to:[]};let E;return"function"==typeof x[x.length-1]&&(M.callback=x.pop()),x.forEach(F=>{if("string"==typeof F)E.properties.push(F);else{if("object"!=typeof F)throw new nt("observable-bind-to-parse-error",null);E={observable:F,properties:[]},M.to.push(E)}}),M}(...m),c=Array.from(this._bindings.keys()),u=c.length;if(!r.callback&&r.to.length>1)throw new nt("observable-bind-to-no-callback",this);if(u>1&&r.callback)throw new nt("observable-bind-to-extra-callback",this);var _;r.to.forEach(x=>{if(x.properties.length&&x.properties.length!==u)throw new nt("observable-bind-to-properties-length",this);x.properties.length||(x.properties=this._bindProperties)}),this._to=r.to,r.callback&&(this._bindings.get(c[0]).callback=r.callback),_=this._observable,this._to.forEach(x=>{const M=_[Pe];let E;M.get(x.observable)||_.listenTo(x.observable,"change",(F,V)=>{E=M.get(x.observable)[V],E&&E.forEach(W=>{ri(_,W.property)})})}),function(x){let M;x._bindings.forEach((E,F)=>{x._to.forEach(V=>{M=V.properties[E.callback?0:x._bindProperties.indexOf(F)],E.to.push([V.observable,M]),function(W,dt,Zt,ue){const Ae=W[Pe],Ie=Ae.get(Zt),ln=Ie||{};ln[ue]||(ln[ue]=new Set),ln[ue].add(dt),Ie||Ae.set(Zt,ln)}(x._observable,E,V.observable,M)})})}(this),this._bindProperties.forEach(x=>{ri(this._observable,x)})}function oi(m,r,c){if(this._bindings.size>1)throw new nt("observable-bind-to-many-not-one-binding",this);this.to(...function(u,_){const x=u.map(M=>[M,_]);return Array.prototype.concat.apply([],x)}(m,r),c)}function bi(m){return m.every(r=>"string"==typeof r)}function ri(m,r){const c=m[on].get(r);let u;c.callback?u=c.callback.apply(m,c.to.map(_=>_[0][_[1]])):(u=c.to[0],u=u[0][u[1]]),Object.prototype.hasOwnProperty.call(m,r)?m[r]=u:m.set(r,u)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Ue[m]=gn.prototype[m]});class Ke{constructor(){this._replacedElements=[]}replace(r,c){this._replacedElements.push({element:r,newElement:c}),r.style.display="none",c&&r.parentNode.insertBefore(c,r.nextSibling)}restore(){this._replacedElements.forEach(({element:r,newElement:c})=>{r.style.display="",c&&c.remove()}),this._replacedElements=[]}}function ne(m){let r=0;for(const c of m)r++;return r}function ct(m,r){const c=Math.min(m.length,r.length);for(let u=0;u-1},mn.prototype.set=function(m,r){var c=this.__data__,u=he(c,m);return u<0?(++this.size,c.push([m,r])):c[u][1]=r,this};const An=mn,Fo=function(m){if(!Wt(m))return!1;var r=jn(m);return"[object Function]"==r||"[object GeneratorFunction]"==r||"[object AsyncFunction]"==r||"[object Proxy]"==r},ca=oe["__core-js_shared__"];var Ia=function(){var m=/[^.]+$/.exec(ca&&ca.keys&&ca.keys.IE_PROTO||"");return m?"Symbol(src)_1."+m:""}(),Ge=Function.prototype.toString;const In=function(m){if(null!=m){try{return Ge.call(m)}catch{}try{return m+""}catch{}}return""};var He=/^\[object .+?Constructor\]$/,Q=RegExp("^"+Function.prototype.toString.call(Object.prototype.hasOwnProperty).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rn=function(m,r){var c=function(m,r){return m?.[r]}(m,r);return function(m){return!(!Wt(m)||function(m){return!!Ia&&Ia in m}(m))&&(Fo(m)?Q:He).test(In(m))}(c)?c:void 0},Gi=Rn(oe,"Map"),Co=Rn(Object,"create");var ls=Object.prototype.hasOwnProperty,Er=Object.prototype.hasOwnProperty;function Br(m){var r=-1,c=null==m?0:m.length;for(this.clear();++r-1&&m%1==0&&m-1&&m%1==0&&m<=9007199254740991};var qo={};qo["[object Float32Array]"]=qo["[object Float64Array]"]=qo["[object Int8Array]"]=qo["[object Int16Array]"]=qo["[object Int32Array]"]=qo["[object Uint8Array]"]=qo["[object Uint8ClampedArray]"]=qo["[object Uint16Array]"]=qo["[object Uint32Array]"]=!0,qo["[object Arguments]"]=qo["[object Array]"]=qo["[object ArrayBuffer]"]=qo["[object Boolean]"]=qo["[object DataView]"]=qo["[object Date]"]=qo["[object Error]"]=qo["[object Function]"]=qo["[object Map]"]=qo["[object Number]"]=qo["[object Object]"]=qo["[object RegExp]"]=qo["[object Set]"]=qo["[object String]"]=qo["[object WeakMap]"]=!1;const cc=function(m){return function(r){return m(r)}};var qu=et&&!et.nodeType&&et,Yl=qu&&ot&&!ot.nodeType&&ot,xc=Yl&&Yl.exports===qu&&kt.process;const wl=function(){try{return Yl&&Yl.require&&Yl.require("util").types||xc&&xc.binding&&xc.binding("util")}catch{}}();var Ds=wl&&wl.isTypedArray;const Jc=Ds?cc(Ds):function(m){return fn(m)&&zl(m.length)&&!!qo[jn(m)]};var bu=Object.prototype.hasOwnProperty;const Dr=function(m,r){var c=Ye(m),u=!c&&Rl(m),_=!c&&!u&&ks(m),x=!c&&!u&&!_&&Jc(m),M=c||u||_||x,E=M?function(m,r){for(var c=-1,u=Array(m);++c{this._setToTarget(r,_,c[_],u)})}}function hn(m){return So(m,Ve)}function Ve(m){return la(m)?m:void 0}function ge(m){if(m){if(m.defaultView)return m instanceof m.defaultView.Document;if(m.ownerDocument&&m.ownerDocument.defaultView)return m instanceof m.ownerDocument.defaultView.Node}return!1}function Au(m){const r=Object.prototype.toString.apply(m);return"[object Window]"==r||"[object global]"==r}const Ks=Xi(Oe());function Xi(m){return m?class extends m{listenTo(r,c,u,_={}){if(ge(r)||Au(r)){const x={capture:!!_.useCapture,passive:!!_.usePassive},M=this._getProxyEmitter(r,x)||new fd(r,x);this.listenTo(M,c,u,_)}else super.listenTo(r,c,u,_)}stopListening(r,c,u){if(ge(r)||Au(r)){const _=this._getAllProxyEmitters(r);for(const x of _)this.stopListening(x,c,u)}else super.stopListening(r,c,u)}_getProxyEmitter(r,c){return function(u,_){const x=u[se];return x&&x[_]?x[_].emitter:null}(this,ts(r,c))}_getAllProxyEmitters(r){return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(c=>this._getProxyEmitter(r,c)).filter(c=>!!c)}}:Ks}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(m=>{Xi[m]=Ks.prototype[m]});class fd extends(Oe()){constructor(r,c){super(),qe(this,ts(r,c)),this._domNode=r,this._options=c}attach(r){if(this._domListeners&&this._domListeners[r])return;const c=this._createDomListener(r);this._domNode.addEventListener(r,c,this._options),this._domListeners||(this._domListeners={}),this._domListeners[r]=c}detach(r){let c;!this._domListeners[r]||(c=this._events[r])&&c.callbacks.length||this._domListeners[r].removeListener()}_addEventListener(r,c,u){this.attach(r),Oe().prototype._addEventListener.call(this,r,c,u)}_removeEventListener(r,c){Oe().prototype._removeEventListener.call(this,r,c),this.detach(r)}_createDomListener(r){const c=u=>{this.fire(r,u)};return c.removeListener=()=>{this._domNode.removeEventListener(r,c,this._options),delete this._domListeners[r]},c}}function ts(m,r){let c=(u=m)["data-ck-expando"]||(u["data-ck-expando"]=Pt());var u;for(const u of Object.keys(r).sort())r[u]&&(c+="-"+u);return c}let zu;try{zu={window,document}}catch{zu={window:{},document:{}}}const Mt=zu;function me(m){return"[object Text]"==Object.prototype.toString.call(m)}function jt(m){return"[object Range]"==Object.prototype.toString.apply(m)}function Qe(m){const r=m.ownerDocument.defaultView.getComputedStyle(m);return{top:parseInt(r.borderTopWidth,10),right:parseInt(r.borderRightWidth,10),bottom:parseInt(r.borderBottomWidth,10),left:parseInt(r.borderLeftWidth,10)}}function On(m){return m&&m.parentNode?m.offsetParent===Mt.document.body?null:m.offsetParent:null}const Nt=["top","right","bottom","left","width","height"];class ce{constructor(r){const c=jt(r);if(Object.defineProperty(this,"_source",{value:r._source||r,writable:!0,enumerable:!1}),vn(r)||c)if(c){const u=ce.getDomRangeRects(r);Me(this,ce.getBoundingRect(u))}else Me(this,r.getBoundingClientRect());else if(Au(r)){const{innerWidth:u,innerHeight:_}=r;Me(this,{top:0,right:u,bottom:_,left:0,width:u,height:_})}else Me(this,r)}clone(){return new ce(this)}moveTo(r,c){return this.top=c,this.right=r+this.width,this.bottom=c+this.height,this.left=r,this}moveBy(r,c){return this.top+=c,this.right+=r,this.left+=r,this.bottom+=c,this}getIntersection(r){const c={top:Math.max(this.top,r.top),right:Math.min(this.right,r.right),bottom:Math.min(this.bottom,r.bottom),left:Math.max(this.left,r.left),width:0,height:0};if(c.width=c.right-c.left,c.height=c.bottom-c.top,c.width<0||c.height<0)return null;{const u=new ce(c);return u._source=this._source,u}}getIntersectionArea(r){const c=this.getIntersection(r);return c?c.getArea():0}getArea(){return this.width*this.height}getVisible(){const r=this._source;let c=this.clone();if(tn(r))return c;let u,_=r,x=r.parentNode||r.commonAncestorContainer;for(;x&&!tn(x);){const E="visible"===((M=x)instanceof HTMLElement?M.ownerDocument.defaultView.getComputedStyle(M).overflow:"visible");_ instanceof HTMLElement&&"absolute"===Gn(_)&&(u=_);const F=Gn(x);if(E||u&&("relative"===F&&E||"relative"!==F)){_=x,x=x.parentNode;continue}const V=new ce(x),W=c.getIntersection(V);if(!W)return null;W.getArea(){for(const r of m){const c=Qn._getElementCallbacks(r.target);if(c)for(const u of c)u(r)}})}};let yi=Qn;function bo(m){return r=>r+m}function xo(m){let r=0;for(;m.previousSibling;)m=m.previousSibling,r++;return r}function yo(m,r,c){m.insertBefore(c,m.childNodes[r]||null)}function ga(m){return m&&m.nodeType===Node.COMMENT_NODE}function ra(m){return!!(m&&m.getClientRects&&m.getClientRects().length)}yi._observerInstance=null,yi._elementCallbacks=null;var fa=Math.pow;function es({element:m,target:r,positions:c,limiter:u,fitInViewport:_,viewportOffsetConfig:x}){Fo(r)&&(r=r()),Fo(u)&&(u=u());const M=On(m),E=function(Zt){Zt=Object.assign({top:0,bottom:0,left:0,right:0},Zt);const ue=new ce(Mt.window);return ue.top+=Zt.top,ue.height-=Zt.top,ue.bottom-=Zt.bottom,ue.height-=Zt.bottom,ue}(x),F=new ce(m),V=Hs(r,E);let W;if(!V||!E.getIntersection(V))return null;const dt={targetRect:V,elementRect:F,positionedElementAncestor:M,viewportRect:E};if(u||_){if(u){const Zt=Hs(u,E);Zt&&(dt.limiterRect=Zt)}W=function(Zt,ue){const{elementRect:Ae}=ue,Ie=Ae.getArea(),ln=Zt.map(Ri=>new ns(Ri,ue)).filter(Ri=>!!Ri.name);let Dn=0,di=null;for(const Ri of ln){const{limiterIntersectionArea:Go,viewportIntersectionArea:Da}=Ri;if(Go===Ie)return Ri;const ws=fa(Da,2)+fa(Go,2);ws>Dn&&(Dn=ws,di=Ri)}return di}(c,dt)}else W=new ns(c[0],dt);return W}function Hs(m,r){const c=new ce(m).getVisible();return c?c.getIntersection(r):null}class ns{constructor(r,c){const u=r(c.targetRect,c.elementRect,c.viewportRect,c.limiterRect);if(!u)return;const{left:_,top:x,name:M,config:E}=u;this.name=M,this.config=E,this._positioningFunctionCoordinates={left:_,top:x},this._options=c}get left(){return this._absoluteRect.left}get top(){return this._absoluteRect.top}get limiterIntersectionArea(){const r=this._options.limiterRect;return r?r.getIntersectionArea(this._rect):0}get viewportIntersectionArea(){return this._options.viewportRect.getIntersectionArea(this._rect)}get _rect(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCoordinates.left,this._positioningFunctionCoordinates.top)),this._cachedRect}get _absoluteRect(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=this._rect.toAbsoluteRect()),this._cachedAbsoluteRect}}function is(m){const r=m.parentNode;r&&r.removeChild(m)}function ds({window:m,rect:r,alignToTop:c,forceScroll:u,viewportOffset:_}){const x=r.clone().moveBy(0,_.bottom),M=r.clone().moveBy(0,-_.top),E=new ce(m).excludeScrollbarsAndBorders(),F=c&&u,V=[M,x].every(Ae=>E.contains(Ae));let{scrollX:W,scrollY:dt}=m;const Zt=W,ue=dt;F?dt-=E.top-r.top+_.top:V||(Nc(M,E)?dt-=E.top-r.top+_.top:Xs(x,E)&&(dt+=c?r.top-E.top-_.top:r.bottom-E.bottom+_.bottom)),V||(os(r,E)?W-=E.left-r.left+_.left:Rd(r,E)&&(W+=r.right-E.right+_.right)),W==Zt&&dt===ue||m.scrollTo(W,dt)}function Hr({parent:m,getRect:r,alignToTop:c,forceScroll:u,ancestorOffset:_=0,limiterElement:x}){const M=cr(m),E=c&&u;let F,V,W;const dt=x||M.document.body;for(;m!=dt;)V=r(),F=new ce(m).excludeScrollbarsAndBorders(),W=F.contains(V),E?m.scrollTop-=F.top-V.top+_:W||(Nc(V,F)?m.scrollTop-=F.top-V.top+_:Xs(V,F)&&(m.scrollTop+=c?V.top-F.top-_:V.bottom-F.bottom+_)),W||(os(V,F)?m.scrollLeft-=F.left-V.left+_:Rd(V,F)&&(m.scrollLeft+=V.right-F.right+_)),m=m.parentNode}function Xs(m,r){return m.bottom>r.bottom}function Nc(m,r){return m.topr.right}function cr(m){return jt(m)?m.startContainer.ownerDocument.defaultView:m.ownerDocument.defaultView}function lr(m){if(jt(m)){let r=m.commonAncestorContainer;return me(r)&&(r=r.parentNode),r}return m.parentNode}function As(m,r){const c=cr(m),u=new ce(m);if(c===r)return u;{let _=c;for(;_!=r;){const M=new ce(_.frameElement).excludeScrollbarsAndBorders();u.moveBy(M.left,M.top),_=_.parent}}return u}const b_={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},jp={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Ka=function(){const m={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(let r=65;r<=90;r++)m[String.fromCharCode(r).toLowerCase()]=r;for(let r=48;r<=57;r++)m[r-48]=r;for(let r=112;r<=123;r++)m["f"+(r-111)]=r;for(const r of"`-=[];',./\\")m[r]=r.charCodeAt(0);return m}(),cu=Object.fromEntries(Object.entries(Ka).map(([m,r])=>[r,m.charAt(0).toUpperCase()+m.slice(1)]));function Tc(m){let r;if("string"==typeof m){if(r=Ka[m.toLowerCase()],!r)throw new nt("keyboard-unknown-key",null,{key:m})}else r=m.keyCode+(m.altKey?Ka.alt:0)+(m.ctrlKey?Ka.ctrl:0)+(m.shiftKey?Ka.shift:0)+(m.metaKey?Ka.cmd:0);return r}function tc(m){return"string"==typeof m&&(m=m.split("+").map(c=>c.trim())),m.map(r=>"string"==typeof r?function(c){if(c.endsWith("!"))return Tc(c.slice(0,-1));const u=Tc(c);return(D_isMac||D_isiOS)&&u==Ka.ctrl?Ka.cmd:u}(r):r).reduce((r,c)=>c+r,0)}function yu(m){let r=tc(m);return Object.entries(D_isMac||D_isiOS?b_:jp).reduce((c,[u,_])=>(0!=(r&Ka[u])&&(r&=~Ka[u],c+=_),c),"")+(r?cu[r]:"")}function b1(m,r){const c="ltr"===r;switch(m){case Ka.arrowleft:return c?"left":"right";case Ka.arrowright:return c?"right":"left";case Ka.arrowup:return"up";case Ka.arrowdown:return"down"}}function Ss(m){return Array.isArray(m)?m:[m]}Mt.window.CKEDITOR_TRANSLATIONS||(Mt.window.CKEDITOR_TRANSLATIONS={});const jl=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Yu(m){return jl.includes(m)?"rtl":"ltr"}class Tu{constructor({uiLanguage:r="en",contentLanguage:c}={}){this.uiLanguage=r,this.contentLanguage=c||this.uiLanguage,this.uiLanguageDirection=Yu(this.uiLanguage),this.contentLanguageDirection=Yu(this.contentLanguage),this.t=(u,_)=>this._t(u,_)}get language(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}_t(r,c=[]){return c=Ss(c),"string"==typeof r&&(r={string:r}),_=function Hd(m,r,c=1){if("number"!=typeof c)throw new nt("translation-service-quantity-not-a-number",null,{quantity:c});const u=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS).length;1===u&&(m=Object.keys(Mt.window.CKEDITOR_TRANSLATIONS)[0]);const _=r.id||r.string;if(0===u||(!Mt.window.CKEDITOR_TRANSLATIONS[F=m]||!Mt.window.CKEDITOR_TRANSLATIONS[F].dictionary[_]))return 1!==c?r.plural:r.string;var F;const M=Mt.window.CKEDITOR_TRANSLATIONS[m].getPluralForm||(F=>1===F?0:1),E=Mt.window.CKEDITOR_TRANSLATIONS[m].dictionary[_];return"string"==typeof E?E:E[Number(M(c))]}(this.uiLanguage,r,r.plural?c[0]:1),x=c,_.replace(/%(\d+)/g,(M,E)=>Ethis._items.length||c<0)throw new nt("collection-add-item-invalid-index",this);let u=0;for(const _ of r){const x=this._getItemIdBeforeAdding(_),M=c+u;this._items.splice(M,0,_),this._itemMap.set(x,_),this.fire("add",_,M),u++}return this.fire("change",{added:r,removed:[],index:c}),this}get(r){let c;if("string"==typeof r)c=this._itemMap.get(r);else{if("number"!=typeof r)throw new nt("collection-get-invalid-arg",this);c=this._items[r]}return c||null}has(r){if("string"==typeof r)return this._itemMap.has(r);{const c=r[this._idProperty];return c&&this._itemMap.has(c)}}getIndex(r){let c;return c="string"==typeof r?this._itemMap.get(r):r,c?this._items.indexOf(c):-1}remove(r){const[c,u]=this._remove(r);return this.fire("change",{added:[],removed:[c],index:u}),c}map(r,c){return this._items.map(r,c)}find(r,c){return this._items.find(r,c)}filter(r,c){return this._items.filter(r,c)}clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);const r=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:r,index:0})}bindTo(r){if(this._bindToCollection)throw new nt("collection-bind-to-rebind",this);return this._bindToCollection=r,{as:c=>{this._setUpBindToBinding(u=>new c(u))},using:c=>{this._setUpBindToBinding("function"==typeof c?c:u=>u[c])}}}_setUpBindToBinding(r){const c=this._bindToCollection,u=(_,x,M)=>{const E=c._bindToCollection==this,F=c._bindToInternalToExternalMap.get(x);if(E&&F)this._bindToExternalToInternalMap.set(x,F),this._bindToInternalToExternalMap.set(F,x);else{const V=r(x);if(!V)return void this._skippedIndexesFromExternal.push(M);let W=M;for(const dt of this._skippedIndexesFromExternal)M>dt&&W--;for(const dt of c._skippedIndexesFromExternal)W>=dt&&W++;this._bindToExternalToInternalMap.set(x,V),this._bindToInternalToExternalMap.set(V,x),this.add(V,W);for(let dt=0;dt{const E=this._bindToExternalToInternalMap.get(x);E&&this.remove(E),this._skippedIndexesFromExternal=this._skippedIndexesFromExternal.reduce((F,V)=>(MV&&F.push(V),F),[])})}_getItemIdBeforeAdding(r){const c=this._idProperty;let u;if(c in r){if(u=r[c],"string"!=typeof u)throw new nt("collection-add-invalid-id",this);if(this.get(u))throw new nt("collection-add-item-already-exists",this)}else r[c]=u=Pt();return u}_remove(r){let c,u,_,x=!1;const M=this._idProperty;if("string"==typeof r?(u=r,_=this._itemMap.get(u),x=!_,_&&(c=this._items.indexOf(_))):"number"==typeof r?(c=r,_=this._items[c],x=!_,_&&(u=_[M])):(_=r,u=_[M],c=this._items.indexOf(_),x=-1==c||!this._itemMap.get(u)),x)throw new nt("collection-remove-404",this);this._items.splice(c,1),this._itemMap.delete(u);const E=this._bindToInternalToExternalMap.get(_);return this._bindToInternalToExternalMap.delete(_),this._bindToExternalToInternalMap.delete(E),this.fire("remove",_,c),[_,c]}[Symbol.iterator](){return this._items[Symbol.iterator]()}}function as(m){const r=m.next();return r.done?null:r.value}class rs extends(Xi(Ue())){constructor(){super(),this._elements=new Set,this._nextEventLoopTimeout=null,this.set("isFocused",!1),this.set("focusedElement",null)}add(r){if(this._elements.has(r))throw new nt("focustracker-add-element-already-exist",this);this.listenTo(r,"focus",()=>this._focus(r),{useCapture:!0}),this.listenTo(r,"blur",()=>this._blur(),{useCapture:!0}),this._elements.add(r)}remove(r){r===this.focusedElement&&this._blur(),this._elements.has(r)&&(this.stopListening(r),this._elements.delete(r))}destroy(){this.stopListening()}_focus(r){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=r,this.isFocused=!0}_blur(){clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}class $c{constructor(){this._listener=new(Xi())}listenTo(r){this._listener.listenTo(r,"keydown",(c,u)=>{this._listener.fire("_keydown:"+Tc(u),u)})}set(r,c,u={}){const _=tc(r);this._listener.listenTo(this._listener,"_keydown:"+_,(M,E)=>{c(E,()=>{E.preventDefault(),E.stopPropagation(),M.stop()}),M.return=!0},{priority:u.priority})}press(r){return!!this._listener.fire("_keydown:"+Tc(r),r)}stopListening(r){this._listener.stopListening(r)}destroy(){this.stopListening()}}function Kc(m){return it(m)?new Map(m):function(r){const c=new Map;for(const u in r)c.set(u,r[u]);return c}(m)}function wr(m,r){let c;function u(..._){u.cancel(),c=setTimeout(()=>m(..._),r)}return u.cancel=()=>{clearTimeout(c)},u}function cn(m,r){return!!(c=m.charAt(r-1))&&1==c.length&&/[\ud800-\udbff]/.test(c)&&!!(u=m.charAt(r))&&1==u.length&&/[\udc00-\udfff]/.test(u);var u,c}function hd(m,r){return!!(c=m.charAt(r))&&1==c.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(c);var c}const v1=function(){const m=[new RegExp("\\p{Emoji}[\\u{E0020}-\\u{E007E}]+\\u{E007F}","u"),new RegExp("\\p{Emoji}\\u{FE0F}?\\u{20E3}","u"),new RegExp("\\p{Emoji}\\u{FE0F}","u"),new RegExp("(?=\\p{General_Category=Other_Symbol})\\p{Emoji}\\p{Emoji_Modifier}*","u")],r=new RegExp("\\p{Regional_Indicator}{2}","u").source,c="(?:"+m.map(u=>u.source).join("|")+")";return new RegExp(`${r}|${c}(?:\u200d${c})*`,"ug")}();function kl(m,r){const c=String(m).matchAll(v1);return Array.from(c).some(u=>u.index{this._renderViewIntoCollectionParent(u,_)}),this.on("remove",(c,u)=>{u.element&&this._parentElement&&u.element.remove()}),this._parentElement=null}destroy(){this.map(r=>r.destroy())}setParent(r){this._parentElement=r;for(const c of this)this._renderViewIntoCollectionParent(c)}delegate(...r){if(!r.length||!r.every(c=>"string"==typeof c))throw new nt("ui-viewcollection-delegate-wrong-events",this);return{to:c=>{for(const u of this)for(const _ of r)u.delegate(_).to(c);this.on("add",(u,_)=>{for(const x of r)_.delegate(x).to(c)}),this.on("remove",(u,_)=>{for(const x of r)_.stopDelegating(x,c)})}}}_renderViewIntoCollectionParent(r,c){r.isRendered||r.render(),r.element&&this._parentElement&&this._parentElement.insertBefore(r.element,this._parentElement.children[c])}remove(r){return super.remove(r)}}var E1=v(6062),No=v.n(E1),gd=v(4793);No()(gd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class oa extends(Xi(Ue())){constructor(r){super(),this.element=null,this.isRendered=!1,this.locale=r,this.t=r&&r.t,this._viewCollections=new ec,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(c,u)=>{u.locale=r,u.t=r&&r.t}),this.decorate("render")}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Ur.bind(this,this)}createCollection(r){const c=new Na(r);return this._viewCollections.add(c),c}registerChild(r){it(r)||(r=[r]);for(const c of r)this._unboundChildren.add(c)}deregisterChild(r){it(r)||(r=[r]);for(const c of r)this._unboundChildren.remove(c)}setTemplate(r){this.template=new Ur(r)}extendTemplate(r){Ur.extend(this.template,r)}render(){if(this.isRendered)throw new nt("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0}destroy(){this.stopListening(),this._viewCollections.map(r=>r.destroy()),this.template&&this.template._revertData&&this.template.revert(this.element)}}class Ur extends(Oe()){constructor(r){super(),Object.assign(this,Oa(zd(r))),this._isRendered=!1,this._revertData=null}render(){const r=this._renderNode({intoFragment:!0});return this._isRendered=!0,r}apply(r){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:r,intoFragment:!1,isApplying:!0,revertData:this._revertData}),r}revert(r){if(!this._revertData)throw new nt("ui-template-revert-not-applied",[this,r]);this._revertTemplateFromNode(r,this._revertData)}*getViews(){yield*function*r(c){if(c.children)for(const u of c.children)ie(u)?yield u:De(u)&&(yield*r(u))}(this)}static bind(r,c){return{to:(u,_)=>new wo({eventNameOrFunction:u,attribute:u,observable:r,emitter:c,callback:_}),if:(u,_,x)=>new v_({observable:r,emitter:c,attribute:u,valueIfTrue:_,callback:x})}}static extend(r,c){if(r._isRendered)throw new nt("template-extend-render",[this,r]);pt(r,Oa(zd(c)))}_renderNode(r){let c;if(c=r.node?this.tag&&this.text:this.tag?this.text:!this.text,c)throw new nt("ui-template-wrong-syntax",this);return this.text?this._renderText(r):this._renderElement(r)}_renderElement(r){let c=r.node;return c||(c=r.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(r),this._renderElementChildren(r),this._setUpListeners(r),c}_renderText(r){let c=r.node;return c?r.revertData.text=c.textContent:c=r.node=document.createTextNode(""),B(this.text)?this._bindToObservable({schema:this.text,updater:bd(c),data:r}):c.textContent=this.text.join(""),c}_renderAttributes(r){if(!this.attributes)return;const c=r.node,u=r.revertData;for(const _ in this.attributes){const x=c.getAttribute(_),M=this.attributes[_];u&&(u.attributes[_]=x);const E=Nn(M)?M[0].ns:null;if(B(M)){const F=Nn(M)?M[0].value:M;u&&Ii(_)&&F.unshift(x),this._bindToObservable({schema:F,updater:x_(c,_,E),data:r})}else if("style"==_&&"string"!=typeof M[0])this._renderStyleAttribute(M[0],r);else{u&&x&&Ii(_)&&M.unshift(x);const F=M.map(V=>V&&V.value||V).reduce((V,W)=>V.concat(W),[]).reduce(vt,"");Yt(F)||c.setAttributeNS(E,_,F)}}}_renderStyleAttribute(r,c){const u=c.node;for(const _ in r){const x=r[_];B(x)?this._bindToObservable({schema:[x],updater:pp(u,_),data:c}):u.style[_]=x}}_renderElementChildren(r){const c=r.node,u=r.intoFragment?document.createDocumentFragment():c,_=r.isApplying;let x=0;for(const M of this.children)if(Un(M)){if(!_){M.setParent(c);for(const E of M)u.appendChild(E.element)}}else if(ie(M))_||(M.isRendered||M.render(),u.appendChild(M.element));else if(ge(M))u.appendChild(M);else if(_){const E={children:[],bindings:[],attributes:{}};r.revertData.children.push(E),M._renderNode({intoFragment:!1,node:u.childNodes[x++],isApplying:!0,revertData:E})}else u.appendChild(M.render());r.intoFragment&&c.appendChild(u)}_setUpListeners(r){if(this.eventListeners)for(const c in this.eventListeners){const u=this.eventListeners[c].map(_=>{const[x,M]=c.split("@");return _.activateDomEventListener(x,M,r)});r.revertData&&r.revertData.bindings.push(u)}}_bindToObservable({schema:r,updater:c,data:u}){const _=u.revertData;Jo(r,c,u);const x=r.filter(M=>!Yt(M)).filter(M=>M.observable).map(M=>M.activateAttributeListener(r,c,u));_&&_.bindings.push(x)}_revertTemplateFromNode(r,c){for(const _ of c.bindings)for(const x of _)x();if(c.text)return void(r.textContent=c.text);const u=r;for(const _ in c.attributes){const x=c.attributes[_];null===x?u.removeAttribute(_):u.setAttribute(_,x)}for(let _=0;_Jo(r,c,u);return this.emitter.listenTo(this.observable,`change:${this.attribute}`,_),()=>{this.emitter.stopListening(this.observable,`change:${this.attribute}`,_)}}}class wo extends Bu{constructor(r){super(r),this.eventNameOrFunction=r.eventNameOrFunction}activateDomEventListener(r,c,u){const _=(x,M)=>{c&&!M.target.matches(c)||("function"==typeof this.eventNameOrFunction?this.eventNameOrFunction(M):this.observable.fire(this.eventNameOrFunction,M))};return this.emitter.listenTo(u.node,r,_),()=>{this.emitter.stopListening(u.node,r,_)}}}class v_ extends Bu{constructor(r){super(r),this.valueIfTrue=r.valueIfTrue}getValue(r){return!Yt(super.getValue(r))&&(this.valueIfTrue||!0)}}function B(m){return!!m&&(m.value&&(m=m.value),Array.isArray(m)?m.some(B):m instanceof Bu)}function Jo(m,r,{node:c}){const u=(M=c,m.map(E=>E instanceof Bu?E.getValue(M):E));var M;let _;_=1==m.length&&m[0]instanceof v_?u[0]:u.reduce(vt,""),Yt(_)?r.remove():r.set(_)}function bd(m){return{set(r){m.textContent=r},remove(){m.textContent=""}}}function x_(m,r,c){return{set(u){m.setAttributeNS(c,r,u)},remove(){m.removeAttributeNS(c,r)}}}function pp(m,r){return{set(c){m.style[r]=c},remove(){m.style[r]=null}}}function zd(m){return So(m,r=>{if(r&&(r instanceof Bu||De(r)||ie(r)||Un(r)))return r})}function Oa(m){if("string"==typeof m?m={text:[m]}:m.text&&((r=m).text=Ss(r.text)),m.on&&(m.eventListeners=function(r){for(const c in r)Jp(r,c);return r}(m.on),delete m.on),!m.text){m.attributes&&function(c){for(const u in c)c[u].value&&(c[u].value=Ss(c[u].value)),Jp(c,u)}(m.attributes);const r=[];if(m.children)if(Un(m.children))r.push(m.children);else for(const c of m.children)De(c)||ie(c)||ge(c)?r.push(c):r.push(new Ur(c));m.children=r}var r;return m}function Jp(m,r){m[r]=Ss(m[r])}function vt(m,r){return Yt(r)?m:Yt(m)?r:`${m} ${r}`}function yt(m,r){for(const c in r)m[c]?m[c].push(...r[c]):m[c]=r[c]}function pt(m,r){if(r.attributes&&(m.attributes||(m.attributes={}),yt(m.attributes,r.attributes)),r.eventListeners&&(m.eventListeners||(m.eventListeners={}),yt(m.eventListeners,r.eventListeners)),r.text&&m.text.push(...r.text),r.children&&r.children.length){if(m.children.length!=r.children.length)throw new nt("ui-template-extend-children-mismatch",m);let c=0;for(const u of r.children)pt(m.children[c++],u)}}function Yt(m){return!m&&0!==m}function ie(m){return m instanceof oa}function De(m){return m instanceof Ur}function Un(m){return m instanceof Na}function Nn(m){return Wt(m[0])&&m[0].ns}function Ii(m){return"class"==m||"style"==m}class Qi extends Na{constructor(r,c=[]){super(c),this.locale=r}get bodyCollectionContainer(){return this._bodyCollectionContainer}attachToDom(){this._bodyCollectionContainer=new Ur({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();let r=document.querySelector(".ck-body-wrapper");r||(r=We(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(r)),r.appendChild(this._bodyCollectionContainer)}detachFromDom(){super.destroy(),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();const r=document.querySelector(".ck-body-wrapper");r&&0==r.childElementCount&&r.remove()}}var Fa=v(6574);No()(Fa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const xr=class extends oa{constructor(){super();const m=this.bindTemplate;this.set("content",""),this.set("viewBox","0 0 20 20"),this.set("fillColor",""),this.set("isColorInherited",!0),this.set("isVisible",!0),this.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon",m.if("isVisible","ck-hidden",r=>!r),"ck-reset_all-excluded",m.if("isColorInherited","ck-icon_inherit-color")],viewBox:m.to("viewBox")}})}render(){super.render(),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",()=>{this._updateXMLContent(),this._colorFillPaths()}),this.on("change:fillColor",()=>{this._colorFillPaths()})}_updateXMLContent(){if(this.content){const m=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),r=m.getAttribute("viewBox");r&&(this.viewBox=r);for(const{name:c,value:u}of Array.from(m.attributes))xr.presentationalAttributeNames.includes(c)&&this.element.setAttribute(c,u);for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;m.childNodes.length>0;)this.element.appendChild(m.childNodes[0])}}_colorFillPaths(){this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(m=>{m.style.fill=this.fillColor})}};let zs=xr;zs.presentationalAttributeNames=["alignment-baseline","baseline-shift","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-rendering","cursor","direction","display","dominant-baseline","fill","fill-opacity","fill-rule","filter","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","image-rendering","letter-spacing","lighting-color","marker-end","marker-mid","marker-start","mask","opacity","overflow","paint-order","pointer-events","shape-rendering","stop-color","stop-opacity","stroke","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke-width","text-anchor","text-decoration","text-overflow","text-rendering","transform","unicode-bidi","vector-effect","visibility","white-space","word-spacing","writing-mode"];class Vu extends oa{constructor(){super(),this.set({style:void 0,text:void 0,id:void 0});const r=this.bindTemplate;this.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:r.to("style"),id:r.to("id")},children:[{text:r.to("text")}]})}}var va=v(4906);No()(va.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class $o extends oa{constructor(r,c=new Vu){super(r),this._focusDelayed=null;const u=this.bindTemplate,_=Pt();this.set("ariaChecked",void 0),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",`ck-editor__aria-label_${_}`),this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isVisible",!0),this.set("isToggleable",!1),this.set("keystroke",void 0),this.set("label",void 0),this.set("role",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.set("withKeystroke",!1),this.children=this.createCollection(),this.labelView=this._setupLabelView(c),this.iconView=new zs,this.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),this.keystrokeView=this._createKeystrokeView(),this.bind("_tooltipString").to(this,"tooltip",this,"label",this,"keystroke",this._getTooltipString.bind(this));const x={tag:"button",attributes:{class:["ck","ck-button",u.to("class"),u.if("isEnabled","ck-disabled",M=>!M),u.if("isVisible","ck-hidden",M=>!M),u.to("isOn",M=>M?"ck-on":"ck-off"),u.if("withText","ck-button_with-text"),u.if("withKeystroke","ck-button_with-keystroke")],role:u.to("role"),type:u.to("type",M=>M||"button"),tabindex:u.to("tabindex"),"aria-label":u.to("ariaLabel"),"aria-labelledby":u.to("ariaLabelledBy"),"aria-disabled":u.if("isEnabled",!0,M=>!M),"aria-checked":u.to("isOn"),"aria-pressed":u.to("isOn",M=>!!this.isToggleable&&String(!!M)),"data-cke-tooltip-text":u.to("_tooltipString"),"data-cke-tooltip-position":u.to("tooltipPosition")},children:this.children,on:{click:u.to(M=>{this.isEnabled?this.fire("execute"):M.preventDefault()})}};D_isSafari&&(this._focusDelayed||(this._focusDelayed=wr(()=>this.focus(),0)),x.on.mousedown=u.to(()=>{this._focusDelayed()}),x.on.mouseup=u.to(()=>{this._focusDelayed.cancel()})),this.setTemplate(x)}render(){super.render(),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}focus(){this.element.focus()}destroy(){this._focusDelayed&&this._focusDelayed.cancel(),super.destroy()}_setupLabelView(r){return r.bind("text","style","id").to(this,"label","labelStyle","ariaLabelledBy"),r}_createKeystrokeView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",c=>yu(c))}]}),r}_getTooltipString(r,c,u){return r?"string"==typeof r?r:(u&&(u=yu(u)),r instanceof Function?r(c,u):`${c}${u?` (${u})`:""}`):""}}var Zn=v(5332);No()(Zn.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ys extends $o{constructor(r){super(r),this.isToggleable=!0,this.toggleSwitchView=this._createToggleView(),this.extendTemplate({attributes:{class:"ck-switchbutton"}})}render(){super.render(),this.children.add(this.toggleSwitchView)}_createToggleView(){const r=new oa;return r.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),r}}var ha=v(6781);No()(ha.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),v(1103),v(841);var vd=v(3662);No()(vd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wu extends oa{constructor(r){super(r),this.set("text",void 0),this.set("for",void 0),this.id=`ck-editor__label_${Pt()}`;const c=this.bindTemplate;this.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:this.id,for:c.to("for")},children:[{text:c.to("text")}]})}}var wc=v(2577);No()(wc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Sr extends oa{constructor(r,c){super(r);const u=`ck-labeled-field-view-${Pt()}`,_=`ck-labeled-field-view-status-${Pt()}`;this.fieldView=c(this,u,_),this.set("label",void 0),this.set("isEnabled",!0),this.set("isEmpty",!0),this.set("isFocused",!1),this.set("errorText",null),this.set("infoText",null),this.set("class",void 0),this.set("placeholder",void 0),this.labelView=this._createLabelView(u),this.statusView=this._createStatusView(_),this.fieldWrapperChildren=this.createCollection([this.fieldView,this.labelView]),this.bind("_statusText").to(this,"errorText",this,"infoText",(M,E)=>M||E);const x=this.bindTemplate;this.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",x.to("class"),x.if("isEnabled","ck-disabled",M=>!M),x.if("isEmpty","ck-labeled-field-view_empty"),x.if("isFocused","ck-labeled-field-view_focused"),x.if("placeholder","ck-labeled-field-view_placeholder"),x.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:this.fieldWrapperChildren},this.statusView]})}_createLabelView(r){const c=new wu(this.locale);return c.for=r,c.bind("text").to(this,"label"),c}_createStatusView(r){const c=new oa(this.locale),u=this.bindTemplate;return c.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",u.if("errorText","ck-labeled-field-view__status_error"),u.if("_statusText","ck-hidden",_=>!_)],id:r,role:u.if("errorText","alert")},children:[{text:u.to("_statusText")}]}),c}focus(r){this.fieldView.focus(r)}}class A_ extends oa{constructor(r){super(r),this.set("value",void 0),this.set("id",void 0),this.set("placeholder",void 0),this.set("isReadOnly",!1),this.set("hasError",!1),this.set("ariaDescribedById",void 0),this.focusTracker=new rs,this.bind("isFocused").to(this.focusTracker),this.set("isEmpty",!0);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck","ck-input",c.if("isFocused","ck-input_focused"),c.if("isEmpty","ck-input-text_empty"),c.if("hasError","ck-error")],id:c.to("id"),placeholder:c.to("placeholder"),readonly:c.to("isReadOnly"),"aria-invalid":c.if("hasError",!0),"aria-describedby":c.to("ariaDescribedById")},on:{input:c.to((...u)=>{this.fire("input",...u),this._updateIsEmpty()}),change:c.to(this._updateIsEmpty.bind(this))}})}render(){super.render(),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(r,c,u)=>{this._setDomElementValue(u),this._updateIsEmpty()})}destroy(){super.destroy(),this.focusTracker.destroy()}select(){this.element.select()}focus(){this.element.focus()}reset(){this.value=this.element.value="",this._updateIsEmpty()}_updateIsEmpty(){this.isEmpty=!this.element.value}_setDomElementValue(r){this.element.value=r||0===r?r:""}}var mp=v(4879);No()(mp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gp extends A_{constructor(r){super(r),this.set("inputMode","text"),this.extendTemplate({attributes:{inputmode:this.bindTemplate.to("inputMode")}})}}class vg extends Gp{constructor(r){super(r),this.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}})}}var I1=v(8182);No()(I1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class y_ extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!1),this.set("position","se"),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",c.to("position",u=>`ck-dropdown__panel_${u}`),c.if("isVisible","ck-dropdown__panel-visible")],tabindex:"-1"},children:this.children,on:{selectstart:c.to(u=>{"input"!==u.target.tagName.toLocaleLowerCase()&&u.preventDefault()})}})}focus(){if(this.children.length){const r=this.children.first;"function"==typeof r.focus?r.focus():Tt("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}focusLast(){if(this.children.length){const r=this.children.last;"function"==typeof r.focusLast?r.focusLast():r.focus()}}}var nc=v(5485);No()(nc.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const N1=class extends oa{constructor(m,r,c){super(m);const u=this.bindTemplate;this.buttonView=r,this.panelView=c,this.set("isOpen",!1),this.set("isEnabled",!0),this.set("class",void 0),this.set("id",void 0),this.set("panelPosition","auto"),this.keystrokes=new $c,this.focusTracker=new rs,this.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",u.to("class"),u.if("isEnabled","ck-disabled",_=>!_)],id:u.to("id"),"aria-describedby":u.to("ariaDescribedById")},children:[r,c]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":u.to("isOpen")}})}render(){super.render(),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",()=>{this.isOpen=!this.isOpen}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(r,c,u)=>{if(u)if("auto"===this.panelPosition){const _=N1._getOptimalPosition({element:this.panelView.element,target:this.buttonView.element,fitInViewport:!0,positions:this._panelPositions});this.panelView.position=_?_.name:this._panelPositions[0].name}else this.panelView.position=this.panelPosition}),this.keystrokes.listenTo(this.element);const m=(r,c)=>{this.isOpen&&(this.isOpen=!1,c())};this.keystrokes.set("arrowdown",(r,c)=>{this.buttonView.isEnabled&&!this.isOpen&&(this.isOpen=!0,c())}),this.keystrokes.set("arrowright",(r,c)=>{this.isOpen&&c()}),this.keystrokes.set("arrowleft",m),this.keystrokes.set("esc",m)}focus(){this.buttonView.focus()}get _panelPositions(){const{south:m,north:r,southEast:c,southWest:u,northEast:_,northWest:x,southMiddleEast:M,southMiddleWest:E,northMiddleEast:F,northMiddleWest:V}=N1.defaultPanelPositions;return"rtl"!==this.locale.uiLanguageDirection?[c,u,M,E,m,_,x,F,V,r]:[u,c,E,M,m,x,_,V,F,r]}};let Uu=N1;Uu.defaultPanelPositions={south:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/2,name:"s"}),southEast:m=>({top:m.bottom,left:m.left,name:"se"}),southWest:(m,r)=>({top:m.bottom,left:m.left-r.width+m.width,name:"sw"}),southMiddleEast:(m,r)=>({top:m.bottom,left:m.left-(r.width-m.width)/4,name:"sme"}),southMiddleWest:(m,r)=>({top:m.bottom,left:m.left-3*(r.width-m.width)/4,name:"smw"}),north:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/2,name:"n"}),northEast:(m,r)=>({top:m.top-r.height,left:m.left,name:"ne"}),northWest:(m,r)=>({top:m.top-r.height,left:m.left-r.width+m.width,name:"nw"}),northMiddleEast:(m,r)=>({top:m.top-r.height,left:m.left-(r.width-m.width)/4,name:"nme"}),northMiddleWest:(m,r)=>({top:m.top-r.height,left:m.left-3*(r.width-m.width)/4,name:"nmw"})},Uu._getOptimalPosition=es;const xd=' ';class x1 extends $o{constructor(r){super(r),this.arrowView=this._createArrowView(),this.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":this.bindTemplate.to("isOn",c=>String(c))}}),this.delegate("execute").to(this,"open")}render(){super.render(),this.children.add(this.arrowView)}_createArrowView(){const r=new zs;return r.content=xd,r.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),r}}class ul extends(Oe()){constructor(r){if(super(),this.focusables=r.focusables,this.focusTracker=r.focusTracker,this.keystrokeHandler=r.keystrokeHandler,this.actions=r.actions,r.actions&&r.keystrokeHandler)for(const c in r.actions){let u=r.actions[c];"string"==typeof u&&(u=[u]);for(const _ of u)r.keystrokeHandler.set(_,(x,M)=>{this[c](),M()})}this.on("forwardCycle",()=>this.focusFirst(),{priority:"low"}),this.on("backwardCycle",()=>this.focusLast(),{priority:"low"})}get first(){return this.focusables.find(Im)||null}get last(){return this.focusables.filter(Im).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let r=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((c,u)=>{const _=c.element===this.focusTracker.focusedElement;return _&&(r=u),_}),r)}focusFirst(){this._focus(this.first,1)}focusLast(){this._focus(this.last,-1)}focusNext(){const r=this.next;r&&this.focusables.getIndex(r)===this.current||(r===this.first?this.fire("forwardCycle"):this._focus(r,1))}focusPrevious(){const r=this.previous;r&&this.focusables.getIndex(r)===this.current||(r===this.last?this.fire("backwardCycle"):this._focus(r,-1))}_focus(r,c){r&&r.focus(c)}_getFocusableItem(r){const c=this.current,u=this.focusables.length;if(!u)return null;if(null===c)return this[1===r?"first":"last"];let _=(c+u+r)%u;do{const x=this.focusables.get(_);if(Im(x))return x;_=(_+u+r)%u}while(_!==c);return null}}function Im(m){return!(!("focus"in m)||!ra(m.element))}class dl extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}})}}class Z2 extends oa{constructor(r){super(r),this.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}})}}function _p(m){return Array.isArray(m)?{items:m,removeItems:[]}:m?Object.assign({items:[],removeItems:[]},m):{items:[],removeItems:[]}}class lo extends(Ue()){constructor(r){super(),this._disableStack=new Set,this.editor=r,this.set("isEnabled",!0)}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",fp,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",fp),this.isEnabled=!0)}destroy(){this.stopListening()}static get isContextPlugin(){return!1}}function fp(m){m.return=!1,m.stop()}class Za extends(Ue()){constructor(r){super(),this.editor=r,this.set("value",void 0),this.set("isEnabled",!1),this._affectsData=!0,this._isEnabledBasedOnSelection=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",()=>{this.refresh()}),this.listenTo(r,"change:isReadOnly",()=>{this.refresh()}),this.on("set:isEnabled",c=>{if(!this.affectsData)return;const u=r.model.document.selection,_="$graveyard"!=u.getFirstPosition().root.rootName&&r.model.canEditAt(u);(r.isReadOnly||this._isEnabledBasedOnSelection&&!_)&&(c.return=!1,c.stop())},{priority:"highest"}),this.on("execute",c=>{this.isEnabled||c.stop()},{priority:"high"})}get affectsData(){return this._affectsData}set affectsData(r){this._affectsData=r}refresh(){this.isEnabled=!0}forceDisabled(r){this._disableStack.add(r),1==this._disableStack.size&&(this.on("set:isEnabled",F1,{priority:"highest"}),this.isEnabled=!1)}clearForceDisabled(r){this._disableStack.delete(r),0==this._disableStack.size&&(this.off("set:isEnabled",F1),this.refresh())}execute(...r){}destroy(){this.stopListening()}}function F1(m){m.return=!1,m.stop()}class Qp extends Za{constructor(){super(...arguments),this._childCommandsDefinitions=[]}refresh(){}execute(...r){const c=this._getFirstEnabledCommand();return!!c&&c.execute(r)}registerChildCommand(r,c={}){zt(this._childCommandsDefinitions,{command:r,priority:c.priority||"normal"}),r.on("change:isEnabled",()=>this._checkEnabled()),this._checkEnabled()}_checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand()}_getFirstEnabledCommand(){const r=this._childCommandsDefinitions.find(({command:c})=>c.isEnabled);return r&&r.command}}class Ef extends(Oe()){constructor(r,c=[],u=[]){super(),this._plugins=new Map,this._context=r,this._availablePlugins=new Map;for(const _ of c)_.pluginName&&this._availablePlugins.set(_.pluginName,_);this._contextPlugins=new Map;for(const[_,x]of u)this._contextPlugins.set(_,x),this._contextPlugins.set(x,_),_.pluginName&&this._availablePlugins.set(_.pluginName,_)}*[Symbol.iterator](){for(const r of this._plugins)"function"==typeof r[0]&&(yield r)}get(r){const c=this._plugins.get(r);if(!c){let u=r;throw"function"==typeof r&&(u=r.pluginName||r.name),new nt("plugincollection-plugin-not-loaded",this._context,{plugin:u})}return c}has(r){return this._plugins.has(r)}init(r,c=[],u=[]){const _=this,x=this._context;(function Ae(Ie,ln=new Set){Ie.forEach(Dn=>{F(Dn)&&(ln.has(Dn)||(ln.add(Dn),Dn.pluginName&&!_._availablePlugins.has(Dn.pluginName)&&_._availablePlugins.set(Dn.pluginName,Dn),Dn.requires&&Ae(Dn.requires,ln)))})})(r),Zt(r);const M=[...function Ae(Ie,ln=new Set){return Ie.map(Dn=>F(Dn)?Dn:_._availablePlugins.get(Dn)).reduce((Dn,di)=>ln.has(di)?Dn:(ln.add(di),di.requires&&(Zt(di.requires,di),Ae(di.requires,ln).forEach(Ri=>Dn.add(Ri))),Dn.add(di)),new Set)}(r.filter(Ae=>!W(Ae,c)))];!function(Ae,Ie){for(const ln of Ie){if("function"!=typeof ln)throw new nt("plugincollection-replace-plugin-invalid-type",null,{pluginItem:ln});const Dn=ln.pluginName;if(!Dn)throw new nt("plugincollection-replace-plugin-missing-name",null,{pluginItem:ln});if(ln.requires&&ln.requires.length)throw new nt("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:Dn});const di=_._availablePlugins.get(Dn);if(!di)throw new nt("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:Dn});const Ri=Ae.indexOf(di);if(-1===Ri){if(_._contextPlugins.has(di))return;throw new nt("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:Dn})}if(di.requires&&di.requires.length)throw new nt("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:Dn});Ae.splice(Ri,1,ln),_._availablePlugins.set(Dn,ln)}}(M,u);const E=M.map(Ae=>{let Ie=_._contextPlugins.get(Ae);return Ie=Ie||new Ae(x),_._add(Ae,Ie),Ie});return ue(E,"init").then(()=>ue(E,"afterInit")).then(()=>E);function F(Ae){return"function"==typeof Ae}function V(Ae){return F(Ae)&&!!Ae.isContextPlugin}function W(Ae,Ie){return Ie.some(ln=>ln===Ae||dt(Ae)===ln||dt(ln)===Ae)}function dt(Ae){return F(Ae)?Ae.pluginName||Ae.name:Ae}function Zt(Ae,Ie=null){Ae.map(ln=>F(ln)?ln:_._availablePlugins.get(ln)||ln).forEach(ln=>{(function(Dn,di){if(!F(Dn))throw di?new nt("plugincollection-soft-required",x,{missingPlugin:Dn,requiredBy:dt(di)}):new nt("plugincollection-plugin-not-found",x,{plugin:Dn})})(ln,Ie),function(Dn,di){if(V(di)&&!V(Dn))throw new nt("plugincollection-context-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie),function(Dn,di){if(di&&W(Dn,c))throw new nt("plugincollection-required",x,{plugin:dt(Dn),requiredBy:dt(di)})}(ln,Ie)})}function ue(Ae,Ie){return Ae.reduce((ln,Dn)=>Dn[Ie]?_._contextPlugins.has(Dn)?ln:ln.then(Dn[Ie].bind(Dn)):ln,Promise.resolve())}}destroy(){const r=[];for(const[,c]of this)"function"!=typeof c.destroy||this._contextPlugins.has(c)||r.push(c.destroy());return Promise.all(r)}_add(r,c){this._plugins.set(r,c);const u=r.pluginName;if(u){if(this._plugins.has(u))throw new nt("plugincollection-plugin-name-conflict",null,{pluginName:u,plugin1:this._plugins.get(u).constructor,plugin2:r});this._plugins.set(u,c)}}}class M2{constructor(r){this._contextOwner=null,this.config=new nr(r,this.constructor.defaultConfig);const c=this.constructor.builtinPlugins;this.config.define("plugins",c),this.plugins=new Ef(this,c);const u=this.config.get("language")||{};this.locale=new Tu({uiLanguage:"string"==typeof u?u:u.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new ec}initPlugins(){const r=this.config.get("plugins")||[],c=this.config.get("substitutePlugins")||[];for(const u of r.concat(c)){if("function"!=typeof u)throw new nt("context-initplugins-constructor-only",null,{Plugin:u});if(!0!==u.isContextPlugin)throw new nt("context-initplugins-invalid-plugin",null,{Plugin:u})}return this.plugins.init(r,[],c)}destroy(){return Promise.all(Array.from(this.editors,r=>r.destroy())).then(()=>this.plugins.destroy())}_addEditor(r,c){if(this._contextOwner)throw new nt("context-addeditor-private-context");this.editors.add(r),c&&(this._contextOwner=r)}_removeEditor(r){return this.editors.has(r)&&this.editors.remove(r),this._contextOwner===r?this.destroy():Promise.resolve()}_getEditorConfig(){const r={};for(const c of this.config.names())["plugins","removePlugins","extraPlugins"].includes(c)||(r[c]=this.config.get(c));return r}static create(r){return new Promise(c=>{const u=new this(r);c(u.initPlugins().then(()=>u))})}}class w_ extends(Ue()){constructor(r){super(),this.context=r}destroy(){this.stopListening()}static get isContextPlugin(){return!0}}class Wp extends $c{constructor(r){super(),this.editor=r}set(r,c,u={}){if("string"==typeof c){const _=c;c=(x,M)=>{this.editor.execute(_),M()}}super.set(r,c,u)}}var hp=v(4717);No()(hp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Z=new WeakMap;let Ct=!1;function Y({view:m,element:r,text:c,isDirectHost:u=!0,keepOnFocus:_=!1}){const x=m.document;function M(E){Z.get(x).set(r,{text:E,isDirectHost:u,keepOnFocus:_,hostElement:u?r:null}),m.change(F=>$t(x,F))}Z.has(x)||(Z.set(x,new Map),x.registerPostFixer(E=>$t(x,E)),x.on("change:isComposing",()=>{m.change(E=>$t(x,E))},{priority:"high"})),r.is("editableElement")&&r.on("change:placeholder",(E,F,V)=>{M(V)}),r.placeholder?M(r.placeholder):c&&M(c),c&&(Ct||Tt("enableplaceholder-deprecated-text-option"),Ct=!0)}function $t(m,r){const c=Z.get(m),u=[];let _=!1;for(const[x,M]of c)M.isDirectHost&&(u.push(x),fe(r,x,M)&&(_=!0));for(const[x,M]of c){if(M.isDirectHost)continue;const E=nn(x);E&&(u.includes(E)||(M.hostElement=E,fe(r,x,M)&&(_=!0)))}return _}function fe(m,r,c){const{text:u,isDirectHost:_,hostElement:x}=c;let M=!1;return x.getAttribute("data-placeholder")!==u&&(m.setAttribute("data-placeholder",u,x),M=!0),(_||1==r.childCount)&&function(E,F){if(!E.isAttached()||Array.from(E.getChildren()).some(dt=>!dt.is("uiElement")))return!1;const V=E.document,W=V.selection.anchor;return!(V.isComposing&&W&&W.parent===E||!F&&V.isFocused&&(!W||W.parent===E))}(x,c.keepOnFocus)?(E=m,!(F=x).hasClass("ck-placeholder")&&(E.addClass("ck-placeholder",F),!0)&&(M=!0)):function ht(m,r){return!!r.hasClass("ck-placeholder")&&(m.removeClass("ck-placeholder",r),!0)}(m,x)&&(M=!0),M;var E,F}function nn(m){if(m.childCount){const r=m.getChild(0);if(r.is("element")&&!r.is("uiElement")&&!r.is("attributeElement"))return r}return null}class ni{is(){throw new Error("is() method is abstract")}}const Mi=function(m){return Pi(m,4)};class Ro extends(Oe(ni)){constructor(r){super(),this.document=r,this.parent=null}get index(){let r;if(!this.parent)return null;if(-1==(r=this.parent.getChildIndex(this)))throw new nt("view-node-not-found-in-parent",this);return r}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return this.root.is("rootElement")}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.index),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_]r.data.length)throw new nt("view-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.data.length)throw new nt("view-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get offsetSize(){return this.data.length}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}getAncestors(r={}){const c=[];let u=r.includeSelf?this.textNode:this.parent;for(;null!==u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}}Ha.prototype.is=function(m){return"$textProxy"===m||"view:$textProxy"===m||"textProxy"===m||"view:textProxy"===m};class ps{constructor(...r){this._patterns=[],this.add(...r)}add(...r){for(let c of r)("string"==typeof c||c instanceof RegExp)&&(c={name:c}),this._patterns.push(c)}match(...r){for(const c of r)for(const u of this._patterns){const _=Bd(c,u);if(_)return{element:c,pattern:u,match:_}}return null}matchAll(...r){const c=[];for(const u of r)for(const _ of this._patterns){const x=Bd(u,_);x&&c.push({element:u,pattern:_,match:x})}return c.length>0?c:null}getElementName(){if(1!==this._patterns.length)return null;const r=this._patterns[0],c=r.name;return"function"==typeof r||!c||c instanceof RegExp?null:c}}function Bd(m,r){if("function"==typeof r)return r(m);const c={};return r.name&&(c.name=(_=m.name,(u=r.name)instanceof RegExp?!!_.match(u):u===_),!c.name)||r.attributes&&(c.attributes=function(u,_){const x=new Set(_.getAttributeKeys());return Xe(u)?(void 0!==u.style&&Tt("matcher-pattern-deprecated-attributes-style-key",u),void 0!==u.class&&Tt("matcher-pattern-deprecated-attributes-class-key",u)):(x.delete("style"),x.delete("class")),Vd(u,x,M=>_.getAttribute(M))}(r.attributes,m),!c.attributes)||r.classes&&(c.classes=function(u,_){return Vd(u,_.getClassNames(),()=>{})}(r.classes,m),!c.classes)||r.styles&&(c.styles=function(u,_){return Vd(u,_.getStyleNames(!0),x=>_.getStyle(x))}(r.styles,m),!c.styles)?null:c;var u,_}function Vd(m,r,c){const u=(M=m,Array.isArray(M)?M.map(E=>Xe(E)?(void 0!==E.key&&void 0!==E.value||Tt("matcher-pattern-missing-key-or-value",E),[E.key,E.value]):[E,!0]):Xe(M)?Object.entries(M):[[M,!0]]),_=Array.from(r),x=[];var M;if(u.forEach(([M,E])=>{_.forEach(F=>{var V,W;W=F,(!0===(V=M)||V===W||V instanceof RegExp&&W.match(V))&&function(V,W,dt){if(!0===V)return!0;const Zt=dt(W);return V===Zt||V instanceof RegExp&&!!String(Zt).match(V)}(E,F,c)&&x.push(F)})}),u.length&&!(x.length_?0:_+r),(c=c>_?_:c)<0&&(c+=_),_=r>c?0:c-r>>>0,r>>>=0;for(var x=Array(_);++u<_;)x[u]=m[u+r];return x},q1=function(m,r,c){var u=null==m?void 0:pl(m,r);return void 0===u?c:u},P2=function(m,r,c){(void 0!==c&&!Tn(m[r],c)||void 0===c&&!(r in m))&&Cl(m,r,c)},M_=function(m,r){if(("constructor"!==r||"function"!=typeof m[r])&&"__proto__"!=r)return m[r]},Zg=function m(r,c,u,_,x){r!==c&&function(r,c,u){for(var _=-1,x=Object(r),M=u(r),E=M.length;E--;){var F=M[++_];if(!1===c(x[F],F,x))break}}(c,function(M,E){if(x||(x=new iu),Wt(M))!function(m,r,c,u,_,x,M){var E=M_(m,c),F=M_(r,c),V=M.get(F);if(V)P2(m,c,V);else{var W=x?x(E,F,c+"",m,r,M):void 0,dt=void 0===W;if(dt){var Zt=Ye(F),ue=!Zt&&ks(F),Ae=!Zt&&!ue&&Jc(F);W=F,Zt||ue||Ae?Ye(E)?W=E:function(m){return fn(m)&&Ac(m)}(E)?W=uc(E):ue?(dt=!1,W=aa(F,!0)):Ae?(dt=!1,W=_t(F,!0)):W=[]:Xe(F)||Rl(F)?(W=E,Rl(E)?W=function(m){return Vs(m,us(m))}(E):Wt(E)&&!Fo(E)||(W=ll(F))):dt=!1}dt&&(M.set(F,W),_(W,F,u,x,M),M.delete(F)),P2(m,c,W)}}(r,c,E,u,m,_,x);else{var F=_?_(M_(r,E),M,E+"",r,c,x):void 0;void 0===F&&(F=M),P2(r,E,F)}},us)},ku=function(m){return m},E3=function(m,r,c){switch(c.length){case 0:return m.call(r);case 1:return m.call(r,c[0]);case 2:return m.call(r,c[0],c[1]);case 3:return m.call(r,c[0],c[1],c[2])}return m.apply(r,c)};var bp=Math.max;const Ff=function(m){return function(){return m}},Mg=vc?function(m,r){return vc(m,"toString",{configurable:!0,enumerable:!1,value:Ff(r),writable:!0})}:ku;var kg=Date.now;const k_=function(m){var r=0,c=0;return function(){var u=kg(),_=16-(u-c);if(c=u,_>0){if(++r>=800)return arguments[0]}else r=0;return m.apply(void 0,arguments)}}(Mg),qf=function(m){return function(m,r){return k_(function(m,r,c){return r=bp(void 0===r?m.length-1:r,0),function(){for(var u=arguments,_=-1,x=bp(u.length-r,0),M=Array(x);++_1?c[_-1]:void 0,M=_>2?c[2]:void 0;for(x=m.length>3&&"function"==typeof x?(_--,x):void 0,M&&function(m,r,c){if(!Wt(c))return!1;var u=typeof r;return!!("number"==u?Ac(c)&&ou(r,c.length):"string"==u&&r in c)&&Tn(c[r],m)}(c[0],c[1],M)&&(x=_<3?void 0:x,_=1),r=Object(r);++u<_;){var E=c[u];E&&m(r,E,u,x)}return r})},L2=qf(function(m,r,c){Zg(m,r,c)});class Du{constructor(r){this._styles={},this._styleProcessor=r}get isEmpty(){const r=Object.entries(this._styles);return!Array.from(r).length}get size(){return this.isEmpty?0:this.getStyleNames().length}setTo(r){this.clear();const c=Array.from(function(u){let _=null,x=0,M=0,E=null;const F=new Map;if(""===u)return F;";"!=u.charAt(u.length-1)&&(u+=";");for(let V=0;Vu===r);return Array.isArray(c)}set(r,c){if(Wt(r))for(const[u,_]of Object.entries(r))this._styleProcessor.toNormalizedForm(u,_,this._styles);else this._styleProcessor.toNormalizedForm(r,c,this._styles)}remove(r){const c=Rf(r);(function(m,r){null==m||function(m,r){null==(m=function(m,r){return r.length<2?m:pl(m,D2(r,0,-1))}(m,r=Zu(r,m)))||delete m[U_(function(m){var r=null==m?0:m.length;return r?m[r-1]:void 0}(r))]}(m,r)})(this._styles,c),delete this._styles[r],this._cleanEmptyObjectsOnPath(c)}getNormalized(r){return this._styleProcessor.getNormalized(r,this._styles)}toString(){return this.isEmpty?"":this._getStylesEntries().map(r=>r.join(":")).sort().join(";")+";"}getAsString(r){if(this.isEmpty)return;if(this._styles[r]&&!Wt(this._styles[r]))return this._styles[r];const c=this._styleProcessor.getReducedForm(r,this._styles).find(([u])=>u===r);return Array.isArray(c)?c[1]:void 0}getStyleNames(r=!1){return this.isEmpty?[]:r?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map(([c])=>c)}clear(){this._styles={}}_getStylesEntries(){const r=[],c=Object.keys(this._styles);for(const u of c)r.push(...this._styleProcessor.getReducedForm(u,this._styles));return r}_cleanEmptyObjectsOnPath(r){const c=r.split(".");if(!(c.length>1))return;const u=c.splice(0,c.length-1).join("."),_=q1(this._styles,u);!_||!Array.from(Object.keys(_)).length&&this.remove(u)}}class Lg{constructor(){this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}toNormalizedForm(r,c,u){if(Wt(c))D_(u,Rf(r),c);else if(this._normalizers.has(r)){const _=this._normalizers.get(r),{path:x,value:M}=_(c);D_(u,x,M)}else D_(u,r,c)}getNormalized(r,c){if(!r)return L2({},c);if(void 0!==c[r])return c[r];if(this._extractors.has(r)){const u=this._extractors.get(r);if("string"==typeof u)return q1(c,u);const _=u(r,c);if(_)return _}return q1(c,Rf(r))}getReducedForm(r,c){const u=this.getNormalized(r,c);return void 0===u?[]:this._reducers.has(r)?this._reducers.get(r)(u):[[r,u]]}getStyleNames(r){const c=Array.from(this._consumables.keys()).filter(_=>{const x=this.getNormalized(_,r);return x&&"object"==typeof x?Object.keys(x).length:x}),u=new Set([...c,...Object.keys(r)]);return Array.from(u.values())}getRelatedStyles(r){return this._consumables.get(r)||[]}setNormalizer(r,c){this._normalizers.set(r,c)}setExtractor(r,c){this._extractors.set(r,c)}setReducer(r,c){this._reducers.set(r,c)}setStyleRelation(r,c){this._mapStyleNames(r,c);for(const u of c)this._mapStyleNames(u,[r])}_mapStyleNames(r,c){this._consumables.has(r)||this._consumables.set(r,[]),this._consumables.get(r).push(...c)}}function Rf(m){return m.replace("-",".")}function D_(m,r,c){let u=c;Wt(c)&&(u=L2({},q1(m,r),c)),function(m,r,c){null==m||function(m,r,c,u){if(!Wt(m))return m;for(var _=-1,x=(r=Zu(r,m)).length,M=x-1,E=m;null!=E&&++_0&&(yield"class"),this._styles.isEmpty||(yield"style"),yield*this._attrs.keys()}*getAttributes(){yield*this._attrs.entries(),this._classes.size>0&&(yield["class",this.getAttribute("class")]),this._styles.isEmpty||(yield["style",this.getAttribute("style")])}getAttribute(r){if("class"==r)return this._classes.size>0?[...this._classes].join(" "):void 0;if("style"==r){const c=this._styles.toString();return""==c?void 0:c}return this._attrs.get(r)}hasAttribute(r){return"class"==r?this._classes.size>0:"style"==r?!this._styles.isEmpty:this._attrs.has(r)}isSimilar(r){if(!(r instanceof Xc))return!1;if(this===r)return!0;if(this.name!=r.name||this._attrs.size!==r._attrs.size||this._classes.size!==r._classes.size||this._styles.size!==r._styles.size)return!1;for(const[c,u]of this._attrs)if(!r._attrs.has(c)||r._attrs.get(c)!==u)return!1;for(const c of this._classes)if(!r._classes.has(c))return!1;for(const c of this._styles.getStyleNames())if(!r._styles.has(c)||r._styles.getAsString(c)!==this._styles.getAsString(c))return!1;return!0}hasClass(...r){for(const c of r)if(!this._classes.has(c))return!1;return!0}getClassNames(){return this._classes.keys()}getStyle(r){return this._styles.getAsString(r)}getNormalizedStyle(r){return this._styles.getNormalized(r)}getStyleNames(r){return this._styles.getStyleNames(r)}hasStyle(...r){for(const c of r)if(!this._styles.has(c))return!1;return!0}findAncestor(...r){const c=new ps(...r);let u=this.parent;for(;u&&!u.is("documentFragment");){if(c.match(u))return u;u=u.parent}return null}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}getIdentity(){const r=Array.from(this._classes).sort().join(","),c=this._styles.toString(),u=Array.from(this._attrs).map(_=>`${_[0]}="${_[1]}"`).sort().join(" ");return this.name+(""==r?"":` class="${r}"`)+(c?` style="${c}"`:"")+(""==u?"":` ${u}`)}shouldRenderUnsafeAttribute(r){return this._unsafeAttributesToRender.includes(r)}_clone(r=!1){const c=[];if(r)for(const _ of this.getChildren())c.push(_._clone(r));const u=new this.constructor(this.document,this.name,this._attrs,c);return u._classes=new Set(this._classes),u._styles.set(this._styles.getNormalized()),u._customProperties=new Map(this._customProperties),u.getFillerOffset=this.getFillerOffset,u._unsafeAttributesToRender=this._unsafeAttributesToRender,u}_appendChild(r){return this._insertChild(this.childCount,r)}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,x.document=this.document,this._children.splice(r,0,x),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u0&&(this._classes.clear(),!0):"style"==r?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(r)}_addClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.add(c)}_removeClass(r){this._fireChange("attributes",this);for(const c of Ss(r))this._classes.delete(c)}_setStyle(r,c){this._fireChange("attributes",this),"string"!=typeof r?this._styles.set(r):this._styles.set(r,c)}_removeStyle(r){this._fireChange("attributes",this);for(const c of Ss(r))this._styles.remove(c)}_setCustomProperty(r,c){this._customProperties.set(r,c)}_removeCustomProperty(r){return this._customProperties.delete(r)}}function Hf(m,r){const c=r.split(/\s+/);m.clear(),c.forEach(u=>m.add(u))}Xc.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"view:element"===m):"element"===m||"view:element"===m||"node"===m||"view:node"===m};class vp extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=zf}}function zf(){const m=[...this.getChildren()],r=m[this.childCount-1];if(r&&r.is("element","br"))return this.childCount;for(const c of m)if(!c.is("uiElement"))return null;return this.childCount}vp.prototype.is=function(m,r){return r?r===this.name&&("containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Nm extends(Ue(vp)){constructor(r,c,u,_){super(r,c,u,_),this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("placeholder",void 0),this.bind("isReadOnly").to(r),this.bind("isFocused").to(r,"isFocused",x=>x&&r.selection.editableElement==this),this.listenTo(r.selection,"change",()=>{this.isFocused=r.isFocused&&r.selection.editableElement==this})}destroy(){this.stopListening()}}Nm.prototype.is=function(m,r){return r?r===this.name&&("editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};const Fm=Symbol("rootName");class qm extends Nm{constructor(r,c){super(r,c),this.rootName="main"}get rootName(){return this.getCustomProperty(Fm)}set rootName(r){this._setCustomProperty(Fm,r)}set _name(r){this.name=r}}qm.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m):"rootElement"===m||"view:rootElement"===m||"editableElement"===m||"view:editableElement"===m||"containerElement"===m||"view:containerElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Kp{constructor(r={}){if(!r.boundaries&&!r.startPosition)throw new nt("view-tree-walker-no-start-position",null);if(r.direction&&"forward"!=r.direction&&"backward"!=r.direction)throw new nt("view-tree-walker-unknown-direction",r.startPosition,{direction:r.direction});this.boundaries=r.boundaries||null,this._position=Uo._createAt(r.startPosition?r.startPosition:r.boundaries["backward"==r.direction?"end":"start"]),this.direction=r.direction||"forward",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u;do{u=this.position,c=this.next()}while(!c.done&&r(c.value));c.done||(this._position=u)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&r.offset===u.childCount)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&r.offset==this.boundaries.end.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtEnd)return this._position=Uo._createAfter(u),this._next();_=u.data[r.offset]}else _=u.getChild(r.offset);if(_ instanceof Xc){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(r))return{done:!0,value:void 0};r.offset++}else r=new Uo(_,0);return this._position=r,this._formatReturnValue("elementStart",_,c,r,1)}if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,0),this._position=r,this._next();let x,M=_.data.length;return _==this._boundaryEndParent?(M=this.boundaries.end.offset,x=new Ha(_,0,M),r=Uo._createAfter(x)):(x=new Ha(_,0,_.data.length),r.offset++),this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:(u===this._boundaryEndParent?this.boundaries.end.offset:u.data.length)-r.offset;const M=new Ha(u,r.offset,x);return r.offset+=x,this._position=r,this._formatReturnValue("text",M,c,r,x)}return r=Uo._createAfter(u),this._position=r,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",u,c,r)}_previous(){let r=this.position.clone();const c=this.position,u=r.parent;if(null===u.parent&&0===r.offset)return{done:!0,value:void 0};if(u==this._boundaryStartParent&&r.offset==this.boundaries.start.offset)return{done:!0,value:void 0};let _;if(u instanceof Eo){if(r.isAtStart)return this._position=Uo._createBefore(u),this._previous();_=u.data[r.offset-1]}else _=u.getChild(r.offset-1);if(_ instanceof Xc)return this.shallow?(r.offset--,this._position=r,this._formatReturnValue("elementStart",_,c,r,1)):(r=new Uo(_,_.childCount),this._position=r,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",_,c,r));if(_ instanceof Eo){if(this.singleCharacters)return r=new Uo(_,_.data.length),this._position=r,this._previous();let x,M=_.data.length;if(_==this._boundaryStartParent){const E=this.boundaries.start.offset;x=new Ha(_,E,_.data.length-E),M=x.data.length,r=Uo._createBefore(x)}else x=new Ha(_,0,_.data.length),r.offset--;return this._position=r,this._formatReturnValue("text",x,c,r,M)}if("string"==typeof _){let x;x=this.singleCharacters?1:r.offset-(u===this._boundaryStartParent?this.boundaries.start.offset:0),r.offset-=x;const M=new Ha(u,r.offset,x);return this._position=r,this._formatReturnValue("text",M,c,r,x)}return r=Uo._createBefore(u),this._position=r,this._formatReturnValue("elementStart",u,c,r,1)}_formatReturnValue(r,c,u,_,x){return c instanceof Ha&&(c.offsetInText+c.data.length==c.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?u=Uo._createAfter(c.textNode):(_=Uo._createAfter(c.textNode),this._position=_)),0===c.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?u=Uo._createBefore(c.textNode):(_=Uo._createBefore(c.textNode),this._position=_))),{done:!1,value:{type:r,item:c,previousPosition:u,nextPosition:_,length:x}}}}class Uo extends ni{constructor(r,c){super(),this.parent=r,this.offset=c}get nodeAfter(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const r=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===r}get root(){return this.parent.root}get editableElement(){let r=this.parent;for(;!(r instanceof Nm);){if(!r.parent)return null;r=r.parent}return r}getShiftedBy(r){const c=Uo._createAt(this),u=c.offset+r;return c.offset=u<0?0:u,c}getLastMatchingPosition(r,c={}){c.startPosition=this;const u=new Kp(c);return u.skip(r),u.position}getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}getCommonAncestor(r){const c=this.getAncestors(),u=r.getAncestors();let _=0;for(;c[_]==u[_]&&c[_];)_++;return 0===_?null:c[_-1]}isEqual(r){return this.parent==r.parent&&this.offset==r.offset}isBefore(r){return"before"==this.compareWith(r)}isAfter(r){return"after"==this.compareWith(r)}compareWith(r){if(this.root!==r.root)return"different";if(this.isEqual(r))return"same";const c=this.parent.is("node")?this.parent.getPath():[],u=r.parent.is("node")?r.parent.getPath():[];c.push(this.offset),u.push(r.offset);const _=ct(c,u);switch(_){case"prefix":return"before";case"extension":return"after";default:return c[_]0?new this(u,_):new this(_,u)}static _createIn(r){return this._createFromParentsAndOffsets(r,0,r,r.childCount)}static _createOn(r){const c=r.is("$textProxy")?r.offsetSize:1;return this._createFromPositionAndShift(Uo._createBefore(r),c)}}function Zs(m){return!(!m.item.is("attributeElement")&&!m.item.is("uiElement"))}Ma.prototype.is=function(m){return"range"===m||"view:range"===m};class ju extends(Oe(ni)){constructor(...r){super(),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",r.length&&this.setTo(...r)}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.end:r.start).clone()}get focus(){if(!this._ranges.length)return null;const r=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?r.start:r.end).clone()}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}*getRanges(){for(const r of this._ranges)yield r.clone()}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?r.clone():null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?r.clone():null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}isEqual(r){if(this.isFake!=r.isFake||this.isFake&&this.fakeSelectionLabel!=r.fakeSelectionLabel||this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}isSimilar(r){if(this.isBackward!=r.isBackward)return!1;const c=ne(this.getRanges());if(c!=ne(r.getRanges()))return!1;if(0==c)return!0;for(let u of this.getRanges()){u=u.getTrimmed();let _=!1;for(let x of r.getRanges())if(x=x.getTrimmed(),u.start.isEqual(x.start)&&u.end.isEqual(x.end)){_=!0;break}if(!_)return!1}return!0}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]),this._setFakeOptions(_);else if(c instanceof ju||c instanceof P_)this._setRanges(c.getRanges(),c.isBackward),this._setFakeOptions({fake:c.isFake,label:c.fakeSelectionLabel});else if(c instanceof Ma)this._setRanges([c],_&&_.backward),this._setFakeOptions(_);else if(c instanceof Uo)this._setRanges([new Ma(c)]),this._setFakeOptions(_);else if(c instanceof Ro){const x=!!_&&!!_.backward;let M;if(void 0===u)throw new nt("view-selection-setto-required-second-parameter",this);M="in"==u?Ma._createIn(c):"on"==u?Ma._createOn(c):new Ma(Uo._createAt(c,u)),this._setRanges([M],x),this._setFakeOptions(_)}else{if(!it(c))throw new nt("view-selection-setto-not-selectable",this);this._setRanges(c,_&&_.backward),this._setFakeOptions(_)}this.fire("change")}setFocus(r,c){if(null===this.anchor)throw new nt("view-selection-setfocus-no-ranges",this);const u=Uo._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.pop(),"before"==u.compareWith(_)?this._addRange(new Ma(u,_),!0):this._addRange(new Ma(_,u)),this.fire("change")}_setRanges(r,c=!1){r=Array.from(r),this._ranges=[];for(const u of r)this._addRange(u);this._lastRangeBackward=!!c}_setFakeOptions(r={}){this._isFake=!!r.fake,this._fakeSelectionLabel=r.fake&&r.label||""}_addRange(r,c=!1){if(!(r instanceof Ma))throw new nt("view-selection-add-range-not-range",this);this._pushRange(r),this._lastRangeBackward=!!c}_pushRange(r){for(const c of this._ranges)if(r.isIntersecting(c))throw new nt("view-selection-range-intersects",this,{addedRange:r,intersectingRange:c});this._ranges.push(new Ma(r.start,r.end))}}ju.prototype.is=function(m){return"selection"===m||"view:selection"===m};class P_ extends(Oe(ni)){constructor(...r){super(),this._selection=new ju,this._selection.delegate("change").to(this),r.length&&this._selection.setTo(...r)}get isFake(){return this._selection.isFake}get fakeSelectionLabel(){return this._selection.fakeSelectionLabel}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get isCollapsed(){return this._selection.isCollapsed}get rangeCount(){return this._selection.rangeCount}get isBackward(){return this._selection.isBackward}get editableElement(){return this._selection.editableElement}get _ranges(){return this._selection._ranges}*getRanges(){yield*this._selection.getRanges()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getSelectedElement(){return this._selection.getSelectedElement()}isEqual(r){return this._selection.isEqual(r)}isSimilar(r){return this._selection.isSimilar(r)}_setTo(...r){this._selection.setTo(...r)}_setFocus(r,c){this._selection.setFocus(r,c)}}P_.prototype.is=function(m){return"selection"===m||"documentSelection"==m||"view:selection"==m||"view:documentSelection"==m};class xp extends lt{constructor(r,c,u){super(r,c),this.startRange=u,this._eventPhase="none",this._currentTarget=null}get eventPhase(){return this._eventPhase}get currentTarget(){return this._currentTarget}}const Rm=Symbol("bubbling contexts");function Ad(m){return class extends m{fire(r,...c){try{const u=r instanceof lt?r:new lt(this,r),_=Yf(this);if(!_.size)return;if(ms(u,"capturing",this),te(_,"$capture",u,...c))return u.return;const x=u.startRange||this.selection.getFirstRange(),M=x?x.getContainedElement():null,E=!!M&&Boolean(Og(_,M));let F=M||function(V){if(!V)return null;const W=V.start.parent,dt=V.end.parent,Zt=W.getPath(),ue=dt.getPath();return Zt.length>ue.length?W:dt}(x);if(ms(u,"atTarget",F),!E){if(te(_,"$text",u,...c))return u.return;ms(u,"bubbling",F)}for(;F;){if(F.is("rootElement")){if(te(_,"$root",u,...c))return u.return}else if(F.is("element")&&te(_,F.name,u,...c))return u.return;if(te(_,F,u,...c))return u.return;F=F.parent,ms(u,"bubbling",F)}return ms(u,"bubbling",this),te(_,"$document",u,...c),u.return}catch(u){nt.rethrowUnexpectedError(u,this)}}_addEventListener(r,c,u){const _=Ss(u.context||"$document"),x=Yf(this);for(const M of _){let E=x.get(M);E||(E=new(Oe()),x.set(M,E)),this.listenTo(E,r,c,u)}}_removeEventListener(r,c){const u=Yf(this);for(const _ of u.values())this.stopListening(_,r,c)}}}{const m=Ad(Object);["fire","_addEventListener","_removeEventListener"].forEach(r=>{Ad[r]=m.prototype[r]})}function ms(m,r,c){m instanceof xp&&(m._eventPhase=r,m._currentTarget=c)}function te(m,r,c,...u){const _="string"==typeof r?m.get(r):Og(m,r);return!!_&&(_.fire(c,...u),c.stop.called)}function Og(m,r){for(const[c,u]of m)if("function"==typeof c&&c(r))return u;return null}function Yf(m){return m[Rm]||(m[Rm]=new Map),m[Rm]}class Xp extends(Ad(Ue())){constructor(r){super(),this._postFixers=new Set,this.selection=new P_,this.roots=new ec({idProperty:"rootName"}),this.stylesProcessor=r,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1)}getRoot(r="main"){return this.roots.get(r)}registerPostFixer(r){this._postFixers.add(r)}destroy(){this.roots.map(r=>r.destroy()),this.stopListening()}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(c=u(r),c)break}while(c)}}class tm extends Xc{constructor(r,c,u,_){super(r,c,u,_),this._priority=10,this._id=null,this._clonesGroup=null,this.getFillerOffset=A1}get priority(){return this._priority}get id(){return this._id}getElementsWithSameId(){if(null===this.id)throw new nt("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}isSimilar(r){return null!==this.id||null!==r.id?this.id===r.id:super.isSimilar(r)&&this.priority==r.priority}_clone(r=!1){const c=super._clone(r);return c._priority=this._priority,c._id=this._id,c}}function A1(){if(O2(this))return null;let m=this.parent;for(;m&&m.is("attributeElement");){if(O2(m)>1)return null;m=m.parent}return!m||O2(m)>1?null:this.childCount}function O2(m){return Array.from(m.getChildren()).filter(r=>!r.is("uiElement")).length}tm.DEFAULT_PRIORITY=10,tm.prototype.is=function(m,r){return r?r===this.name&&("attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m):"attributeElement"===m||"view:attributeElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class E2 extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=Eg}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new nt("view-emptyelement-cannot-add",[this,c]);return 0}}function Eg(){return null}E2.prototype.is=function(m,r){return r?r===this.name&&("emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m):"emptyElement"===m||"view:emptyElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class S_ extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=jr}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new nt("view-uielement-cannot-add",[this,c]);return 0}render(r,c){return this.toDomElement(r)}toDomElement(r){const c=r.createElement(this.name);for(const u of this.getAttributeKeys())c.setAttribute(u,this.getAttribute(u));return c}}function jr(){return null}S_.prototype.is=function(m,r){return r?r===this.name&&("uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m):"uiElement"===m||"view:uiElement"===m||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class yd extends Xc{constructor(r,c,u,_){super(r,c,u,_),this.getFillerOffset=L_}_insertChild(r,c){if(c&&(c instanceof Ro||Array.from(c).length>0))throw new nt("view-rawelement-cannot-add",[this,c]);return 0}render(r,c){}}function L_(){return null}yd.prototype.is=function(m,r){return r?r===this.name&&("rawElement"===m||"view:rawElement"===m||"element"===m||"view:element"===m):"rawElement"===m||"view:rawElement"===m||m===this.name||m==="view:"+this.name||"element"===m||"view:element"===m||"node"===m||"view:node"===m};class Td extends(Oe(ni)){constructor(r,c){super(),this._children=[],this._customProperties=new Map,this.document=r,c&&this._insertChild(0,c)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}get name(){}getCustomProperty(r){return this._customProperties.get(r)}*getCustomProperties(){yield*this._customProperties.entries()}_appendChild(r){return this._insertChild(this.childCount,r)}getChild(r){return this._children[r]}getChildIndex(r){return this._children.indexOf(r)}getChildren(){return this._children[Symbol.iterator]()}_insertChild(r,c){this._fireChange("children",this);let u=0;const _=(x=this.document,"string"==typeof(M=c)?[new Eo(x,M)]:(it(M)||(M=[M]),Array.from(M).map(E=>"string"==typeof E?new Eo(x,E):E instanceof Ha?new Eo(x,E.data):E)));var x,M;for(const x of _)null!==x.parent&&x._remove(),x.parent=this,this._children.splice(r,0,x),r++,u++;return u}_removeChildren(r,c=1){this._fireChange("children",this);for(let u=r;u{const F=M[M.length-1],V=!E.is("uiElement");return F&&F.breakAttributes==V?F.nodes.push(E):M.push({breakAttributes:V,nodes:[E]}),M},[]);let _=null,x=r;for(const{nodes:M,breakAttributes:E}of u){const F=this._insertNodes(x,M,E);_||(_=F.start),x=F.end}return _?new Ma(_,x):new Ma(r)}remove(r){const c=r instanceof Ma?r:Ma._createOn(r);if(Cp(c,this.document),c.isCollapsed)return new Td(this.document);const{start:u,end:_}=this._breakAttributesRange(c,!0),E=u.parent._removeChildren(u.offset,_.offset-u.offset);for(const V of E)this._removeFromClonedElementsGroup(V);const F=this.mergeAttributes(u);return c.start=F,c.end=F.clone(),new Td(this.document,E)}clear(r,c){Cp(r,this.document);const u=r.getWalker({direction:"backward",ignoreElementEnd:!0});for(const _ of u){const x=_.item;let M;if(x.is("element")&&c.isSimilar(x))M=Ma._createOn(x);else if(!_.nextPosition.isAfter(r.start)&&x.is("$textProxy")){const E=x.getAncestors().find(F=>F.is("element")&&c.isSimilar(F));E&&(M=Ma._createIn(E))}M&&(M.end.isAfter(r.end)&&(M.end=r.end),M.start.isBefore(r.start)&&(M.start=r.start),this.remove(M))}}move(r,c){let u;if(c.isAfter(r.end)){const _=(c=this._breakAttributes(c,!0)).parent,x=_.childCount;r=this._breakAttributesRange(r,!0),u=this.remove(r),c.offset+=_.childCount-x}else u=this.remove(r);return this.insert(c,u)}wrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-wrap-invalid-attribute",this.document);if(Cp(r,this.document),r.isCollapsed){let _=r.start;_.parent.is("element")&&!Array.from(_.parent.getChildren()).some(M=>!M.is("uiElement"))&&(_=_.getLastMatchingPosition(M=>M.item.is("uiElement"))),_=this._wrapPosition(_,c);const x=this.document.selection;return x.isCollapsed&&x.getFirstPosition().isEqual(r.start)&&this.setSelection(_),new Ma(_)}return this._wrapRange(r,c)}unwrap(r,c){if(!(c instanceof tm))throw new nt("view-writer-unwrap-invalid-attribute",this.document);if(Cp(r,this.document),r.isCollapsed)return r;const{start:u,end:_}=this._breakAttributesRange(r,!0),M=this._unwrapChildren(u.parent,u.offset,_.offset,c),E=this.mergeAttributes(M.start);E.isEqual(M.start)||M.end.offset--;const F=this.mergeAttributes(M.end);return new Ma(E,F)}rename(r,c){const u=new vp(this.document,r,c.getAttributes());return this.insert(Uo._createAfter(c),u),this.move(Ma._createIn(c),Uo._createAt(u,0)),this.remove(Ma._createOn(c)),u}clearClonedElementsGroup(r){this._cloneGroups.delete(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}createSlot(r="children"){if(!this._slotFactory)throw new nt("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,r)}_registerSlotFactory(r){this._slotFactory=r}_clearSlotFactory(){this._slotFactory=null}_insertNodes(r,c,u){let _,x;if(_=u?_s(r):r.parent.is("$text")?r.parent.parent:r.parent,!_)throw new nt("view-writer-invalid-position-container",this.document);x=u?this._breakAttributes(r,!0):r.parent.is("$text")?Zc(r):r;const M=_._insertChild(x.offset,c);for(const W of c)this._addToClonedElementsGroup(W);const E=x.getShiftedBy(M),F=this.mergeAttributes(x);F.isEqual(x)||E.offset--;const V=this.mergeAttributes(E);return new Ma(F,V)}_wrapChildren(r,c,u,_){let x=c;const M=[];for(;x!1,r.parent._insertChild(r.offset,u);const _=new Ma(r,r.getShiftedBy(1));this.wrap(_,c);const x=new Uo(u.parent,u.index);u._remove();const M=x.nodeBefore,E=x.nodeAfter;return M instanceof Eo&&E instanceof Eo?Cr(M,E):Xo(x)}_wrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&c.hasAttribute(u)&&c.getAttribute(u)!==r.getAttribute(u))return!1;for(const u of r.getStyleNames())if(c.hasStyle(u)&&c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&(c.hasAttribute(u)||this.setAttribute(u,r.getAttribute(u),c));for(const u of r.getStyleNames())c.hasStyle(u)||this.setStyle(u,r.getStyle(u),c);for(const u of r.getClassNames())c.hasClass(u)||this.addClass(u,c);return!0}_unwrapAttributeElement(r,c){if(!dc(r,c)||r.name!==c.name||r.priority!==c.priority)return!1;for(const u of r.getAttributeKeys())if("class"!==u&&"style"!==u&&(!c.hasAttribute(u)||c.getAttribute(u)!==r.getAttribute(u)))return!1;if(!c.hasClass(...r.getClassNames()))return!1;for(const u of r.getStyleNames())if(!c.hasStyle(u)||c.getStyle(u)!==r.getStyle(u))return!1;for(const u of r.getAttributeKeys())"class"!==u&&"style"!==u&&this.removeAttribute(u,c);return this.removeClass(Array.from(r.getClassNames()),c),this.removeStyle(Array.from(r.getStyleNames()),c),!0}_breakAttributesRange(r,c=!1){const u=r.start,_=r.end;if(Cp(r,this.document),r.isCollapsed){const F=this._breakAttributes(r.start,c);return new Ma(F,F)}const x=this._breakAttributes(_,c),M=x.parent.childCount,E=this._breakAttributes(u,c);return x.offset+=x.parent.childCount-M,new Ma(E,x)}_breakAttributes(r,c=!1){const u=r.offset,_=r.parent;if(r.parent.is("emptyElement"))throw new nt("view-writer-cannot-break-empty-element",this.document);if(r.parent.is("uiElement"))throw new nt("view-writer-cannot-break-ui-element",this.document);if(r.parent.is("rawElement"))throw new nt("view-writer-cannot-break-raw-element",this.document);if(!c&&_.is("$text")&&jd(_.parent)||jd(_))return r.clone();if(_.is("$text"))return this._breakAttributes(Zc(r),c);if(u==_.childCount){const x=new Uo(_.parent,_.index+1);return this._breakAttributes(x,c)}if(0===u){const x=new Uo(_.parent,_.index);return this._breakAttributes(x,c)}{const x=_.index+1,M=_._clone();_.parent._insertChild(x,M),this._addToClonedElementsGroup(M);const F=_._removeChildren(u,_.childCount-u);M._appendChild(F);const V=new Uo(_.parent,x);return this._breakAttributes(V,c)}}_addToClonedElementsGroup(r){if(!r.root.is("rootElement"))return;if(r.is("element"))for(const _ of r.getChildren())this._addToClonedElementsGroup(_);const c=r.id;if(!c)return;let u=this._cloneGroups.get(c);u||(u=new Set,this._cloneGroups.set(c,u)),u.add(r),r._clonesGroup=u}_removeFromClonedElementsGroup(r){if(r.is("element"))for(const _ of r.getChildren())this._removeFromClonedElementsGroup(_);const c=r.id;if(!c)return;const u=this._cloneGroups.get(c);u&&u.delete(r)}}function _s(m){let r=m.parent;for(;!jd(r);){if(!r)return;r=r.parent}return r}function Ys(m,r){return m.priorityr.priority)&&m.getIdentity()c instanceof u))throw new nt("view-writer-insert-invalid-node-type",r);c.is("$text")||tl(c.getChildren(),r)}}function jd(m){return m&&(m.is("containerElement")||m.is("documentFragment"))}function Cp(m,r){const c=_s(m.start),u=_s(m.end);if(!c||!u||c!==u)throw new nt("view-writer-invalid-range-container",r)}function dc(m,r){return null===m.id&&null===r.id}const R1=m=>m.createTextNode("\xa0"),Ig=m=>{const r=m.createElement("span");return r.dataset.ckeFiller="true",r.innerText="\xa0",r},O_=m=>{const r=m.createElement("br");return r.dataset.ckeFiller="true",r},H1="\u2060".repeat(7);function Pu(m){return"string"==typeof m?m.substr(0,7)===H1:me(m)&&m.data.substr(0,7)===H1}function zm(m){return 7==m.data.length&&Pu(m)}function I2(m){const r="string"==typeof m?m:m.data;return Pu(m)?r.slice(7):r}function Pl(m,r){if(r.keyCode==Ka.arrowleft){const c=r.domTarget.ownerDocument.defaultView.getSelection();if(1==c.rangeCount&&c.getRangeAt(0).collapsed){const u=c.getRangeAt(0).startContainer,_=c.getRangeAt(0).startOffset;Pu(u)&&_<=7&&c.collapse(u,0)}}}var Jl=v(9315);No()(Jl.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class F2 extends(Ue()){constructor(r,c){super(),this.domDocuments=new Set,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this._inlineFiller=null,this._fakeSelectionContainer=null,this.domConverter=r,this.selection=c,this.set("isFocused",!1),this.set("isSelecting",!1),D_isBlink&&!D_isAndroid&&this.on("change:isSelecting",()=>{this.isSelecting||this.render()}),this.set("isComposing",!1),this.on("change:isComposing",()=>{this.isComposing||this.render()})}markToSync(r,c){if("text"===r)this.domConverter.mapViewToDom(c.parent)&&this.markedTexts.add(c);else{if(!this.domConverter.mapViewToDom(c))return;if("attributes"===r)this.markedAttributes.add(c);else{if("children"!==r)throw new nt("view-renderer-unknown-type",this);this.markedChildren.add(c)}}}render(){if(this.isComposing&&!D_isAndroid)return;let r=null;const c=!(D_isBlink&&!D_isAndroid&&this.isSelecting);for(const u of this.markedChildren)this._updateChildrenMappings(u);c?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?r=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(r=this.selection.getFirstPosition(),this.markedChildren.add(r.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(r=this.domConverter.domPositionToView(this._inlineFiller),r&&r.parent.is("$text")&&(r=Uo._createBefore(r.parent)));for(const u of this.markedAttributes)this._updateAttrs(u);for(const u of this.markedChildren)this._updateChildren(u,{inlineFillerPosition:r});for(const u of this.markedTexts)!this.markedChildren.has(u.parent)&&this.domConverter.mapViewToDom(u.parent)&&this._updateText(u,{inlineFillerPosition:r});if(c)if(r){const u=this.domConverter.viewPositionToDom(r),_=u.parent.ownerDocument;this._inlineFiller=Pu(u.parent)?u.parent:Gu(_,u.parent,u.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}_updateChildrenMappings(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.childNodes),_=Array.from(this.domConverter.viewChildrenToDom(r,{withChildren:!1})),x=this._diffNodeLists(u,_),M=this._findUpdateActions(x,u,_,I3);if(-1!==M.indexOf("update")){const E={equal:0,insert:0,delete:0};for(const F of M)if("update"===F){const V=E.equal+E.insert,W=E.equal+E.delete,dt=r.getChild(V);!dt||dt.is("uiElement")||dt.is("rawElement")||this._updateElementMappings(dt,u[W]),is(_[V]),E.equal++}else E[F]++}}_updateElementMappings(r,c){this.domConverter.unbindDomElement(c),this.domConverter.bindElements(c,r),this.markedChildren.add(r),this.markedAttributes.add(r)}_getInlineFillerPosition(){const r=this.selection.getFirstPosition();return r.parent.is("$text")?Uo._createBefore(r.parent):r}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=this.domConverter.viewPositionToDom(r);return!!(c&&me(c.parent)&&Pu(c.parent))}_removeInlineFiller(){const r=this._inlineFiller;if(!Pu(r))throw new nt("view-renderer-filler-was-lost",this);zm(r)?r.remove():r.data=r.data.substr(7),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const r=this.selection.getFirstPosition(),c=r.parent,u=r.offset;if(!this.domConverter.mapViewToDom(c.root)||!c.is("element")||!function(M){if("false"==M.getAttribute("contenteditable"))return!1;const E=M.findAncestor(F=>F.hasAttribute("contenteditable"));return!E||"true"==E.getAttribute("contenteditable")}(c)||u===c.getFillerOffset())return!1;const _=r.nodeBefore,x=r.nodeAfter;return!(_ instanceof Eo||x instanceof Eo||D_isAndroid&&(_||x))}_updateText(r,c){const u=this.domConverter.findCorrespondingDomText(r);let _=this.domConverter.viewToDom(r).data;const x=c.inlineFillerPosition;x&&x.parent==r.parent&&x.offset==r.index&&(_=H1+_),Ap(u,_)}_updateAttrs(r){const c=this.domConverter.mapViewToDom(r);if(!c)return;const u=Array.from(c.attributes).map(x=>x.name),_=r.getAttributeKeys();for(const x of _)this.domConverter.setDomElementAttribute(c,x,r.getAttribute(x),r);for(const x of u)r.hasAttribute(x)||this.domConverter.removeDomElementAttribute(c,x)}_updateChildren(r,c){const u=this.domConverter.mapViewToDom(r);if(!u)return;if(D_isAndroid){let dt=null;for(const Zt of Array.from(u.childNodes)){if(dt&&me(dt)&&me(Zt)){u.normalize();break}dt=Zt}}const _=c.inlineFillerPosition,x=u.childNodes,M=Array.from(this.domConverter.viewChildrenToDom(r,{bind:!0}));_&&_.parent===r&&Gu(u.ownerDocument,M,_.offset);const E=this._diffNodeLists(x,M),F=this._findUpdateActions(E,x,M,E_);let V=0;const W=new Set;for(const dt of F)"delete"===dt?(W.add(x[V]),is(x[V])):"equal"!==dt&&"update"!==dt||V++;V=0;for(const dt of F)"insert"===dt?(yo(u,V,M[V]),V++):"update"===dt?(Ap(x[V],M[V].data),V++):"equal"===dt&&(this._markDescendantTextToSync(this.domConverter.domToView(M[V])),V++);for(const dt of W)dt.parentNode||this.domConverter.unbindDomElement(dt)}_diffNodeLists(r,c){return K(r=function(u,_){const x=Array.from(u);return 0==x.length||!_||x[x.length-1]==_&&x.pop(),x}(r,this._fakeSelectionContainer),c,I_.bind(null,this.domConverter))}_findUpdateActions(r,c,u,_){if(-1===r.indexOf("insert")||-1===r.indexOf("delete"))return r;let x=[],M=[],E=[];const F={equal:0,insert:0,delete:0};for(const V of r)"insert"===V?E.push(u[F.equal+F.insert]):"delete"===V?M.push(c[F.equal+F.delete]):(x=x.concat(K(M,E,_).map(W=>"equal"===W?"update":W)),x.push("equal"),M=[],E=[]),F[V]++;return x.concat(K(M,E,_).map(V=>"equal"===V?"update":V))}_markDescendantTextToSync(r){if(r)if(r.is("$text"))this.markedTexts.add(r);else if(r.is("element"))for(const c of r.getChildren())this._markDescendantTextToSync(c)}_updateSelection(){if(D_isBlink&&!D_isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const r=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&r&&(this.selection.isFake?this._updateFakeSelection(r):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(r)):this.isComposing&&D_isAndroid||this._updateDomSelection(r))}_updateFakeSelection(r){const c=r.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(M){const E=M.createElement("div");return E.className="ck-fake-selection-container",Object.assign(E.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),E.textContent="\xa0",E}(c));const u=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(u,this.selection),!this._fakeSelectionNeedsUpdate(r))return;u.parentElement&&u.parentElement==r||r.appendChild(u),u.textContent=this.selection.fakeSelectionLabel||"\xa0";const _=c.getSelection(),x=c.createRange();_.removeAllRanges(),x.selectNodeContents(u),_.addRange(x)}_updateDomSelection(r){const c=r.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(c))return;const u=this.domConverter.viewPositionToDom(this.selection.anchor),_=this.domConverter.viewPositionToDom(this.selection.focus);c.setBaseAndExtent(u.parent,u.offset,_.parent,_.offset),D_isGecko&&function(x,M){const E=x.parent;if(E.nodeType!=Node.ELEMENT_NODE||x.offset!=E.childNodes.length-1)return;const F=E.childNodes[x.offset];F&&"BR"==F.tagName&&M.addRange(M.getRangeAt(0))}(_,c)}_domSelectionNeedsUpdate(r){if(!this.domConverter.isDomSelectionCorrect(r))return!0;const c=r&&this.domConverter.domSelectionToView(r);return!(c&&this.selection.isEqual(c)||!this.selection.isCollapsed&&this.selection.isSimilar(c))}_fakeSelectionNeedsUpdate(r){const c=this._fakeSelectionContainer,u=r.ownerDocument.getSelection();return!c||c.parentElement!==r||u.anchorNode!==c&&!c.contains(u.anchorNode)||c.textContent!==this.selection.fakeSelectionLabel}_removeDomSelection(){for(const r of this.domDocuments){const c=r.getSelection();if(c.rangeCount){const u=r.activeElement,_=this.domConverter.mapDomToView(u);u&&_&&c.removeAllRanges()}}}_removeFakeSelection(){const r=this._fakeSelectionContainer;r&&r.remove()}_updateFocus(){if(this.isFocused){const r=this.selection.editableElement;r&&this.domConverter.focus(r)}}}function Gu(m,r,c){const u=r instanceof Array?r:r.childNodes,_=u[c];if(me(_))return _.data=H1+_.data,_;{const x=m.createTextNode(H1);return Array.isArray(r)?u.splice(c,0,x):yo(r,c,x),x}}function I3(m,r){return ge(m)&&ge(r)&&!me(m)&&!me(r)&&!ga(m)&&!ga(r)&&m.tagName.toLowerCase()===r.tagName.toLowerCase()}function E_(m,r){return ge(m)&&ge(r)&&me(m)&&me(r)}function I_(m,r,c){return r===c||(me(r)&&me(c)?r.data===c.data:!(!m.isBlockFiller(r)||!m.isBlockFiller(c)))}function Ap(m,r){const c=m.data;if(c==r)return;const u=I(c,r);for(const _ of u)"insert"===_.type?m.insertData(_.index,_.values.join("")):m.deleteData(_.index,_.howMany)}const N3=O_(Mt.document),y1=R1(Mt.document),Jd=Ig(Mt.document),N_="data-ck-unsafe-attribute-",Bf="data-ck-unsafe-element";class F_{constructor(r,{blockFillerMode:c,renderingMode:u="editing"}={}){this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ps,this._inlineObjectElementMatcher=new ps,this.document=r,this.renderingMode=u,this.blockFillerMode=c||("editing"===u?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this.unsafeElements=["script","style"],this._domDocument="editing"===this.renderingMode?Mt.document:Mt.document.implementation.createHTMLDocument("")}bindFakeSelection(r,c){this._fakeSelectionMapping.set(r,new ju(c))}fakeSelectionToView(r){return this._fakeSelectionMapping.get(r)}bindElements(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}unbindDomElement(r){const c=this._domToViewMapping.get(r);if(c){this._domToViewMapping.delete(r),this._viewToDomMapping.delete(c);for(const u of Array.from(r.children))this.unbindDomElement(u)}}bindDocumentFragments(r,c){this._domToViewMapping.set(r,c),this._viewToDomMapping.set(c,r)}shouldRenderAttribute(r,c,u){return"data"===this.renderingMode||!(r=r.toLowerCase()).startsWith("on")&&("srcdoc"!==r||!c.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===u&&("src"===r||"srcset"===r)||"source"===u&&"srcset"===r||!c.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i))}setContentOf(r,c){if("data"===this.renderingMode)return void(r.innerHTML=c);const u=(new DOMParser).parseFromString(c,"text/html"),_=u.createDocumentFragment(),x=u.body.childNodes;for(;x.length>0;)_.appendChild(x[0]);const M=u.createTreeWalker(_,NodeFilter.SHOW_ELEMENT),E=[];let F;for(;F=M.nextNode();)E.push(F);for(const V of E){for(const dt of V.getAttributeNames())this.setDomElementAttribute(V,dt,V.getAttribute(dt));const W=V.tagName.toLowerCase();this._shouldRenameElement(W)&&(yp(W),V.replaceWith(this._createReplacementDomElement(W,V)))}for(;r.firstChild;)r.firstChild.remove();r.append(_)}viewToDom(r,c={}){if(r.is("$text")){const u=this._processDataFromViewText(r);return this._domDocument.createTextNode(u)}{if(this.mapViewToDom(r))return this.mapViewToDom(r);let u;if(r.is("documentFragment"))u=this._domDocument.createDocumentFragment(),c.bind&&this.bindDocumentFragments(u,r);else{if(r.is("uiElement"))return u="$comment"===r.name?this._domDocument.createComment(r.getCustomProperty("$rawContent")):r.render(this._domDocument,this),c.bind&&this.bindElements(u,r),u;this._shouldRenameElement(r.name)?(yp(r.name),u=this._createReplacementDomElement(r.name)):u=r.hasAttribute("xmlns")?this._domDocument.createElementNS(r.getAttribute("xmlns"),r.name):this._domDocument.createElement(r.name),r.is("rawElement")&&r.render(u,this),c.bind&&this.bindElements(u,r);for(const _ of r.getAttributeKeys())this.setDomElementAttribute(u,_,r.getAttribute(_),r)}if(!1!==c.withChildren)for(const _ of this.viewChildrenToDom(r,c))u.appendChild(_);return u}}setDomElementAttribute(r,c,u,_){const x=this.shouldRenderAttribute(c,u,r.tagName.toLowerCase())||_&&_.shouldRenderUnsafeAttribute(c);x||Tt("domconverter-unsafe-attribute-detected",{domElement:r,key:c,value:u}),function(M){try{Mt.document.createAttribute(M)}catch{return!1}return!0}(c)?(r.hasAttribute(c)&&!x?r.removeAttribute(c):r.hasAttribute(N_+c)&&x&&r.removeAttribute(N_+c),r.setAttribute(x?c:N_+c,u)):Tt("domconverter-invalid-attribute-detected",{domElement:r,key:c,value:u})}removeDomElementAttribute(r,c){c!=Bf&&(r.removeAttribute(c),r.removeAttribute(N_+c))}*viewChildrenToDom(r,c={}){const u=r.getFillerOffset&&r.getFillerOffset();let _=0;for(const x of r.getChildren()){u===_&&(yield this._getBlockFiller());const M=x.is("element")&&!!x.getCustomProperty("dataPipeline:transparentRendering")&&!as(x.getAttributes());M&&"data"==this.renderingMode?yield*this.viewChildrenToDom(x,c):(M&&Tt("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:x}),yield this.viewToDom(x,c)),_++}u===_&&(yield this._getBlockFiller())}viewRangeToDom(r){const c=this.viewPositionToDom(r.start),u=this.viewPositionToDom(r.end),_=this._domDocument.createRange();return _.setStart(c.parent,c.offset),_.setEnd(u.parent,u.offset),_}viewPositionToDom(r){const c=r.parent;if(c.is("$text")){const u=this.findCorrespondingDomText(c);if(!u)return null;let _=r.offset;return Pu(u)&&(_+=7),{parent:u,offset:_}}{let u,_,x;if(0===r.offset){if(u=this.mapViewToDom(c),!u)return null;x=u.childNodes[0]}else{const M=r.nodeBefore;if(_=M.is("$text")?this.findCorrespondingDomText(M):this.mapViewToDom(M),!_)return null;u=_.parentNode,x=_.nextSibling}return me(x)&&Pu(x)?{parent:x,offset:7}:{parent:u,offset:_?xo(_)+1:0}}}domToView(r,c={}){const u=[],_=this._domToView(r,c,u),x=_.next().value;return x?(_.next(),this._processDomInlineNodes(null,u,c),x.is("$text")&&0==x.data.length?null:x):null}*domChildrenToView(r,c={},u=[]){for(let _=0;_{const{scrollLeft:E,scrollTop:F}=M;x.push([E,F])}),c.focus(),F3(c,M=>{const[E,F]=x.shift();M.scrollLeft=E,M.scrollTop=F}),Mt.window.scrollTo(u,_)}}_clearDomSelection(){const r=this.mapViewToDom(this.document.selection.editableElement);if(!r)return;const c=r.ownerDocument.defaultView.getSelection(),u=this.domSelectionToView(c);u&&u.rangeCount>0&&c.removeAllRanges()}isElement(r){return r&&r.nodeType==Node.ELEMENT_NODE}isDocumentFragment(r){return r&&r.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isBlockFiller(r){return"br"==this.blockFillerMode?r.isEqualNode(N3):!("BR"!==r.tagName||!z1(r,this.blockElements)||1!==r.parentNode.childNodes.length)||r.isEqualNode(Jd)||(u=this.blockElements,(c=r).isEqualNode(y1)&&z1(c,u)&&1===c.parentNode.childNodes.length);var c,u}isDomSelectionBackward(r){if(r.isCollapsed)return!1;const c=this._domDocument.createRange();try{c.setStart(r.anchorNode,r.anchorOffset),c.setEnd(r.focusNode,r.focusOffset)}catch{return!1}const u=c.collapsed;return c.detach(),u}getHostViewElement(r){const c=function(u){const _=[];let x=u;for(;x&&x.nodeType!=Node.DOCUMENT_NODE;)_.unshift(x),x=x.parentNode;return _}(r);for(c.pop();c.length;){const u=c.pop(),_=this._domToViewMapping.get(u);if(_&&(_.is("uiElement")||_.is("rawElement")))return _}return null}isDomSelectionCorrect(r){return this._isDomSelectionPositionCorrect(r.anchorNode,r.anchorOffset)&&this._isDomSelectionPositionCorrect(r.focusNode,r.focusOffset)}registerRawContentMatcher(r){this._rawContentElementMatcher.add(r)}registerInlineObjectMatcher(r){this._inlineObjectElementMatcher.add(r)}_getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return R1(this._domDocument);case"markedNbsp":return Ig(this._domDocument);case"br":return O_(this._domDocument)}}_isDomSelectionPositionCorrect(r,c){if(me(r)&&Pu(r)&&c<7||this.isElement(r)&&Pu(r.childNodes[c]))return!1;const u=this.mapDomToView(r);return!u||!u.is("uiElement")&&!u.is("rawElement")}*_domToView(r,c,u){if(this.isBlockFiller(r))return null;const _=this.getHostViewElement(r);if(_)return _;if(ga(r)&&c.skipComments)return null;if(me(r)){if(zm(r))return null;{const x=r.data;if(""===x)return null;const M=new Eo(this.document,x);return u.push(M),M}}{let x=this.mapDomToView(r);if(x)return this._isInlineObjectElement(x)&&u.push(x),x;if(this.isDocumentFragment(r))x=new Td(this.document),c.bind&&this.bindDocumentFragments(r,x);else{x=this._createViewElement(r,c),c.bind&&this.bindElements(r,x);const E=r.attributes;if(E)for(let F=E.length,V=0;V0?c[x-1]:null,W=x+1this.preElements.includes(u.name)))return c;if(" "==c.charAt(0)){const u=this._getTouchingInlineViewNode(r,!1);!(u&&u.is("$textProxy")&&this._nodeEndsWithSpace(u))&&u||(c="\xa0"+c.substr(1))}if(" "==c.charAt(c.length-1)){const u=this._getTouchingInlineViewNode(r,!0),_=u&&u.is("$textProxy")&&" "==u.data.charAt(0);" "!=c.charAt(c.length-2)&&u&&!_||(c=c.substr(0,c.length-1)+"\xa0")}return c.replace(/ {2}/g," \xa0")}_nodeEndsWithSpace(r){if(r.getAncestors().some(u=>this.preElements.includes(u.name)))return!1;const c=this._processDataFromViewText(r);return" "==c.charAt(c.length-1)}_getTouchingInlineViewNode(r,c){const u=new Kp({startPosition:c?Uo._createAfter(r):Uo._createBefore(r),direction:c?"forward":"backward"});for(const _ of u){if(_.item.is("element","br"))return null;if(this._isInlineObjectElement(_.item))return _.item;if(_.item.is("containerElement"))return null;if(_.item.is("$textProxy"))return _.item}return null}_isBlockDomElement(r){return this.isElement(r)&&this.blockElements.includes(r.tagName.toLowerCase())}_isBlockViewElement(r){return r.is("element")&&this.blockElements.includes(r.name)}_isInlineObjectElement(r){return!!r.is("element")&&("br"==r.name||this.inlineObjectElements.includes(r.name)||!!this._inlineObjectElementMatcher.match(r))}_createViewElement(r,c){if(ga(r))return new S_(this.document,"$comment");const u=c.keepOriginalCase?r.tagName:r.tagName.toLowerCase();return new Xc(this.document,u)}_isViewElementWithRawContent(r,c){return!1!==c.withChildren&&r.is("element")&&!!this._rawContentElementMatcher.match(r)}_shouldRenameElement(r){const c=r.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(c)}_createReplacementDomElement(r,c){const u=this._domDocument.createElement("span");if(u.setAttribute(Bf,r),c){for(;c.firstChild;)u.appendChild(c.firstChild);for(const _ of c.getAttributeNames())u.setAttribute(_,c.getAttribute(_))}return u}}function Vf(m,r){return m.getAncestors().some(c=>c.is("element")&&r.includes(c.name))}function F3(m,r){let c=m;for(;c;)r(c),c=c.parentElement}function z1(m,r){const c=m.parentNode;return!!c&&!!c.tagName&&r.includes(c.tagName.toLowerCase())}function yp(m){"script"===m&&Tt("domconverter-unsafe-script-element-detected"),"style"===m&&Tt("domconverter-unsafe-style-element-detected")}class Qu extends(Xi()){constructor(r){super(),this._isEnabled=!1,this.view=r,this.document=r.document}get isEnabled(){return this._isEnabled}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}destroy(){this.disable(),this.stopListening()}checkShouldIgnoreEventFromTarget(r){return r&&3===r.nodeType&&(r=r.parentNode),!(!r||1!==r.nodeType)&&r.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}const q2=qf(function(m,r){Vs(r,us(r),m)});class pc{constructor(r,c,u){this.view=r,this.document=r.document,this.domEvent=c,this.domTarget=c.target,q2(this,u)}get target(){return this.view.domConverter.mapDomToView(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}class Wu extends Qu{constructor(){super(...arguments),this.useCapture=!1}observe(r){("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(c=>{this.listenTo(r,c,(u,_)=>{this.isEnabled&&!this.checkShouldIgnoreEventFromTarget(_.target)&&this.onDomEvent(_)},{useCapture:this.useCapture})})}stopObserving(r){this.stopListening(r)}fire(r,c,u){this.isEnabled&&this.document.fire(r,new pc(this.view,c,u))}}class T1 extends Wu{constructor(){super(...arguments),this.domEventType=["keydown","keyup"]}onDomEvent(r){this.fire(r.type,r,{keyCode:r.keyCode,altKey:r.altKey,ctrlKey:r.ctrlKey,shiftKey:r.shiftKey,metaKey:r.metaKey,get keystroke(){return Tc(this)}})}}const wd=function(){return oe.Date.now()};var uu=/\s/,nm=/^\s+/;var q3=/^[-+]0x[0-9a-f]+$/i,z6=/^0b[01]+$/i,Av=/^0o[0-7]+$/i,jf=parseInt;const Lu=function(m){if("number"==typeof m)return m;if(Wn(m))return NaN;if(Wt(m)){var r="function"==typeof m.valueOf?m.valueOf():m;m=Wt(r)?r+"":r}if("string"!=typeof m)return 0===m?m:+m;m=function(m){return m&&m.slice(0,function(m){for(var r=m.length;r--&&uu.test(m.charAt(r)););return r}(m)+1).replace(nm,"")}(m);var c=z6.test(m);return c||Av.test(m)?jf(m.slice(2),c?2:8):q3.test(m)?NaN:+m};var R3=Math.max,Y6=Math.min;const R_=function(m,r,c){var u,_,x,M,E,F,V=0,W=!1,dt=!1,Zt=!0;if("function"!=typeof m)throw new TypeError("Expected a function");function ue(di){var Ri=u,Go=_;return u=_=void 0,V=di,M=m.apply(Go,Ri)}function Ae(di){var Ri=di-F;return void 0===F||Ri>=r||Ri<0||dt&&di-V>=x}function Ie(){var Ri,Go,di=wd();if(Ae(di))return ln(di);E=setTimeout(Ie,(Go=r-((Ri=di)-F),dt?Y6(Go,x-(Ri-V)):Go))}function ln(di){return E=void 0,Zt&&u?ue(di):(u=_=void 0,M)}function Dn(){var Go,di=wd(),Ri=Ae(di);if(u=arguments,_=this,F=di,Ri){if(void 0===E)return V=Go=F,E=setTimeout(Ie,r),W?ue(Go):M;if(dt)return clearTimeout(E),E=setTimeout(Ie,r),ue(F)}return void 0===E&&(E=setTimeout(Ie,r)),M}return r=Lu(r)||0,Wt(c)&&(W=!!c.leading,x=(dt="maxWait"in c)?R3(Lu(c.maxWait)||0,r):x,Zt="trailing"in c?!!c.trailing:Zt),Dn.cancel=function(){void 0!==E&&clearTimeout(E),V=0,u=F=_=E=void 0},Dn.flush=function(){return void 0===E?M:ln(wd())},Dn};class B6 extends Qu{constructor(r){super(r),this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200)}observe(){const r=this.document;r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&u.preventDefault()},{context:"$capture"}),r.on("arrowKey",(c,u)=>{r.selection.isFake&&this.isEnabled&&this._handleSelectionMove(u.keyCode)},{priority:"lowest"})}stopObserving(){}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(r){const c=this.document.selection,u=new ju(c.getRanges(),{backward:c.isBackward,fake:!1});r!=Ka.arrowleft&&r!=Ka.arrowup||u.setTo(u.getFirstPosition()),r!=Ka.arrowright&&r!=Ka.arrowdown||u.setTo(u.getLastPosition());const _={oldSelection:c,newSelection:u,domSelection:null};this.document.fire("selectionChange",_),this._fireSelectionChangeDoneDebounced(_)}}function Tp(m){var r=-1,c=null==m?0:m.length;for(this.__data__=new Fs;++rE))return!1;var V=x.get(m),W=x.get(r);if(V&&W)return V==r&&W==m;var dt=-1,Zt=!0,ue=2&c?new Fg:void 0;for(x.set(m,r),x.set(r,m);++dt{this._isFocusChanging=!0,this._renderTimeoutId=setTimeout(()=>{this.flush(),r.change(()=>{})},50)}),c.on("blur",(u,_)=>{const x=c.selection.editableElement;null!==x&&x!==_.target||(c.isFocused=!1,this._isFocusChanging=!1,r.change(()=>{}))})}flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0)}onDomEvent(r){this.fire(r.type,r)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}class w1 extends Qu{constructor(r){super(r),this.mutationObserver=r.getObserver(ia),this.focusObserver=r.getObserver(z_),this.selection=this.document.selection,this.domConverter=r.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=R_(c=>{this.document.fire("selectionChangeDone",c)},200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._documentIsSelectingInactivityTimeoutDebounced=R_(()=>this.document.isSelecting=!1,5e3),this._loopbackCounter=0}observe(r){const c=r.ownerDocument,u=()=>{this.document.isSelecting&&(this._handleSelectionChange(null,c),this.document.isSelecting=!1,this._documentIsSelectingInactivityTimeoutDebounced.cancel())};this.listenTo(r,"selectstart",()=>{this.document.isSelecting=!0,this._documentIsSelectingInactivityTimeoutDebounced()},{priority:"highest"}),this.listenTo(r,"keydown",u,{priority:"highest",useCapture:!0}),this.listenTo(r,"keyup",u,{priority:"highest",useCapture:!0}),this._documents.has(c)||(this.listenTo(c,"mouseup",u,{priority:"highest",useCapture:!0}),this.listenTo(c,"selectionchange",(_,x)=>{this.document.isComposing&&!D_isAndroid||(this._handleSelectionChange(x,c),this._documentIsSelectingInactivityTimeoutDebounced())}),this._documents.add(c))}stopObserving(r){this.stopListening(r)}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}_reportInfiniteLoop(){}_handleSelectionChange(r,c){if(!this.isEnabled)return;const u=c.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(u.anchorNode))return;this.mutationObserver.flush();const _=this.domConverter.domSelectionToView(u);if(0!=_.rangeCount){if(this.view.hasDomSelection=!0,this.focusObserver.flush(),!this.selection.isEqual(_)||!this.domConverter.isDomSelectionCorrect(u))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.selection.isSimilar(_))this.view.forceRender();else{const x={oldSelection:this.selection,newSelection:_,domSelection:u};this.document.fire("selectionChange",x),this._fireSelectionChangeDoneDebounced(x)}}else this.view.hasDomSelection=!1}_clearInfiniteLoop(){this._loopbackCounter=0}}class wp extends Wu{constructor(r){super(r),this.domEventType=["compositionstart","compositionupdate","compositionend"];const c=this.document;c.on("compositionstart",()=>{c.isComposing=!0},{priority:"low"}),c.on("compositionend",()=>{c.isComposing=!1},{priority:"low"})}onDomEvent(r){this.fire(r.type,r,{data:r.data})}}class mc{constructor(r,c={}){this._files=c.cacheFiles?Yg(r):null,this._native=r}get files(){return this._files||(this._files=Yg(this._native)),this._files}get types(){return this._native.types}getData(r){return this._native.getData(r)}setData(r,c){this._native.setData(r,c)}set effectAllowed(r){this._native.effectAllowed=r}get effectAllowed(){return this._native.effectAllowed}set dropEffect(r){this._native.dropEffect=r}get dropEffect(){return this._native.dropEffect}setDragImage(r,c,u){this._native.setDragImage(r,c,u)}get isCanceled(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}function Yg(m){const r=Array.from(m.files||[]),c=Array.from(m.items||[]);return r.length?r:c.filter(u=>"file"===u.kind).map(u=>u.getAsFile())}class Bg extends Wu{constructor(){super(...arguments),this.domEventType="beforeinput"}onDomEvent(r){const c=r.getTargetRanges(),u=this.view,_=u.document;let x=null,M=null,E=[];if(r.dataTransfer&&(x=new mc(r.dataTransfer)),null!==r.data?M=r.data:x&&(M=x.getData("text/plain")),_.selection.isFake)E=Array.from(_.selection.getRanges());else if(c.length)E=c.map(F=>{const V=u.domConverter.domPositionToView(F.startContainer,F.startOffset),W=u.domConverter.domPositionToView(F.endContainer,F.endOffset);return V?u.createRange(V,W):W?u.createRange(W):void 0}).filter(F=>!!F);else if(D_isAndroid){const F=r.target.ownerDocument.defaultView.getSelection();E=Array.from(u.domConverter.domSelectionToView(F).getRanges())}if(D_isAndroid&&"insertCompositionText"==r.inputType&&M&&M.endsWith("\n"))this.fire(r.type,r,{inputType:"insertParagraph",targetRanges:[u.createRange(E[0].end)]});else if("insertText"==r.inputType&&M&&M.includes("\n")){const F=M.split(/\n{1,2}/g);let V=E;for(let W=0;W{if(this.isEnabled&&((_=u.keyCode)==Ka.arrowright||_==Ka.arrowleft||_==Ka.arrowup||_==Ka.arrowdown)){const x=new xp(this.document,"arrowKey",this.document.selection.getFirstRange());this.document.fire(x,u),x.stop.called&&c.stop()}var _})}observe(){}stopObserving(){}}class Qf extends Qu{constructor(r){super(r);const c=this.document;c.on("keydown",(u,_)=>{if(!this.isEnabled||_.keyCode!=Ka.tab||_.ctrlKey)return;const x=new xp(c,"tab",c.selection.getFirstRange());c.fire(x,_),x.stop.called&&u.stop()})}observe(){}stopObserving(){}}const U1=function(m){return Pi(m,5)};class Vg extends(Ue()){constructor(r){super(),this.domRoots=new Map,this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this.document=new Xp(r),this.domConverter=new F_(this.document),this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new F2(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting","isComposing").to(this.document,"isFocused","isSelecting","isComposing"),this._writer=new Hm(this.document),this.addObserver(ia),this.addObserver(z_),this.addObserver(w1),this.addObserver(T1),this.addObserver(B6),this.addObserver(wp),this.addObserver(Tv),this.addObserver(Bg),this.addObserver(Qf),this.document.on("arrowKey",Pl,{priority:"low"}),function Uc(m){m.document.on("arrowKey",(r,c)=>function(u,_,x){if(_.keyCode==Ka.arrowright){const M=_.domTarget.ownerDocument.defaultView.getSelection(),E=1==M.rangeCount&&M.getRangeAt(0).collapsed;if(E||_.shiftKey){const W=x.domPositionToView(M.focusNode,M.focusOffset);if(null===W)return;let dt=!1;const Zt=W.getLastMatchingPosition(ue=>(ue.item.is("uiElement")&&(dt=!0),!(!ue.item.is("uiElement")&&!ue.item.is("attributeElement"))));if(dt){const ue=x.viewPositionToDom(Zt);E?M.collapse(ue.parent,ue.offset):M.extend(ue.parent,ue.offset)}}}}(0,c,m.domConverter),{priority:"low"})}(this),this.on("render",()=>{this._render(),this.document.fire("layoutChanged"),this._hasChangedSinceTheLastRendering=!1}),this.listenTo(this.document.selection,"change",()=>{this._hasChangedSinceTheLastRendering=!0}),this.listenTo(this.document,"change:isFocused",()=>{this._hasChangedSinceTheLastRendering=!0}),D_isiOS&&this.listenTo(this.document,"blur",(c,u)=>{this.domConverter.mapDomToView(u.domEvent.relatedTarget)||this.domConverter._clearDomSelection()})}attachDomRoot(r,c="main"){const u=this.document.getRoot(c);u._name=r.tagName.toLowerCase();const _={};for(const{name:M,value:E}of Array.from(r.attributes))_[M]=E,"class"===M?this._writer.addClass(E.split(" "),u):this._writer.setAttribute(M,E,u);this._initialDomRootAttributes.set(r,_);const x=()=>{this._writer.setAttribute("contenteditable",(!u.isReadOnly).toString(),u),u.isReadOnly?this._writer.addClass("ck-read-only",u):this._writer.removeClass("ck-read-only",u)};x(),this.domRoots.set(c,r),this.domConverter.bindElements(r,u),this._renderer.markToSync("children",u),this._renderer.markToSync("attributes",u),this._renderer.domDocuments.add(r.ownerDocument),u.on("change:children",(M,E)=>this._renderer.markToSync("children",E)),u.on("change:attributes",(M,E)=>this._renderer.markToSync("attributes",E)),u.on("change:text",(M,E)=>this._renderer.markToSync("text",E)),u.on("change:isReadOnly",()=>this.change(x)),u.on("change",()=>{this._hasChangedSinceTheLastRendering=!0});for(const M of this._observers.values())M.observe(r,c)}detachDomRoot(r){const c=this.domRoots.get(r);Array.from(c.attributes).forEach(({name:_})=>c.removeAttribute(_));const u=this._initialDomRootAttributes.get(c);for(const _ in u)c.setAttribute(_,u[_]);this.domRoots.delete(r),this.domConverter.unbindDomElement(c);for(const _ of this._observers.values())_.stopObserving(c)}getDomRoot(r="main"){return this.domRoots.get(r)}addObserver(r){let c=this._observers.get(r);if(c)return c;c=new r(this),this._observers.set(r,c);for(const[u,_]of this.domRoots)c.observe(_,u);return c.enable(),c}getObserver(r){return this._observers.get(r)}disableObservers(){for(const r of this._observers.values())r.disable()}enableObservers(){for(const r of this._observers.values())r.enable()}scrollToTheSelection({alignToTop:r,forceScroll:c,viewportOffset:u=20,ancestorOffset:_=20}={}){const x=this.document.selection.getFirstRange();if(!x)return;const M=U1({alignToTop:r,forceScroll:c,viewportOffset:u,ancestorOffset:_});"number"==typeof u&&(u={top:u,bottom:u,left:u,right:u});const E={target:this.domConverter.viewRangeToDom(x),viewportOffset:u,ancestorOffset:_,alignToTop:r,forceScroll:c};this.fire("scrollToTheSelection",E,M),function({target:F,viewportOffset:V=0,ancestorOffset:W=0,alignToTop:dt,forceScroll:Zt}){const ue=cr(F);let Ae=ue,Ie=null;for(V="number"==typeof(ln=V)?{top:ln,bottom:ln,left:ln,right:ln}:ln;Ae;){let ln;ln=lr(Ae==ue?F:Ie),Hr({parent:ln,getRect:()=>As(F,Ae),alignToTop:dt,ancestorOffset:W,forceScroll:Zt});const Dn=As(F,Ae);if(ds({window:Ae,rect:Dn,viewportOffset:V,alignToTop:dt,forceScroll:Zt}),Ae.parent!=Ae){if(Ie=Ae.frameElement,Ae=Ae.parent,!Ie)return}else Ae=null}var ln}(E)}focus(){if(!this.document.isFocused){const r=this.document.selection.editableElement;r&&(this.domConverter.focus(r),this.forceRender())}}change(r){if(this.isRenderingInProgress||this._postFixersInProgress)throw new nt("cannot-change-view-tree",this);try{if(this._ongoingChange)return r(this._writer);this._ongoingChange=!0;const c=r(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),c}catch(c){nt.rethrowUnexpectedError(c,this)}}forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(z_).flush(),this.change(()=>{})}destroy(){for(const r of this._observers.values())r.destroy();this.document.destroy(),this.stopListening()}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}_disableRendering(r){this._renderingDisabled=r,0==r&&this.change(()=>{})}_render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}class Up{is(){throw new Error("is() method is abstract")}}class oc extends Up{constructor(r){super(),this.parent=null,this._attrs=Kc(r)}get document(){return null}get index(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildIndex(this)))throw new nt("model-node-not-found-in-parent",this);return r}get startOffset(){let r;if(!this.parent)return null;if(null===(r=this.parent.getChildStartOffset(this)))throw new nt("model-node-not-found-in-parent",this);return r}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const r=this.index;return null!==r&&this.parent.getChild(r+1)||null}get previousSibling(){const r=this.index;return null!==r&&this.parent.getChild(r-1)||null}get root(){let r=this;for(;r.parent;)r=r.parent;return r}isAttached(){return null!==this.parent&&this.root.isAttached()}getPath(){const r=[];let c=this;for(;c.parent;)r.unshift(c.startOffset),c=c.parent;return r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}getCommonAncestor(r,c={}){const u=this.getAncestors(c),_=r.getAncestors(c);let x=0;for(;u[x]==_[x]&&u[x];)x++;return 0===x?null:u[x-1]}isBefore(r){if(this==r||this.root!==r.root)return!1;const c=this.getPath(),u=r.getPath(),_=ct(c,u);switch(_){case"prefix":return!0;case"extension":return!1;default:return c[_](c[u[0]]=u[1],c),{})),r}_clone(r){return new this.constructor(this._attrs)}_remove(){this.parent._removeChildren(this.index)}_setAttribute(r,c){this._attrs.set(r,c)}_setAttributesTo(r){this._attrs=Kc(r)}_removeAttribute(r){return this._attrs.delete(r)}_clearAttributes(){this._attrs.clear()}}oc.prototype.is=function(m){return"node"===m||"model:node"===m};class am{constructor(r){this._nodes=[],r&&this._insertNodes(0,r)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((r,c)=>r+c.offsetSize,0)}getNode(r){return this._nodes[r]||null}getNodeIndex(r){const c=this._nodes.indexOf(r);return-1==c?null:c}getNodeStartOffset(r){const c=this.getNodeIndex(r);return null===c?null:this._nodes.slice(0,c).reduce((u,_)=>u+_.offsetSize,0)}indexToOffset(r){if(r==this._nodes.length)return this.maxOffset;const c=this._nodes[r];if(!c)throw new nt("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(c)}offsetToIndex(r){let c=0;for(const u of this._nodes){if(r>=c&&r1e4)return u.slice(0,x).concat(_).concat(u.slice(x+0,u.length));{const E=Array.from(u);return E.splice(x,0,..._),E}}(this._nodes,Array.from(c),r)}_removeNodes(r,c=1){return this._nodes.splice(r,c)}toJSON(){return this._nodes.map(r=>r.toJSON())}}class ss extends oc{constructor(r,c){super(c),this._data=r||""}get offsetSize(){return this.data.length}get data(){return this._data}toJSON(){const r=super.toJSON();return r.data=this.data,r}_clone(){return new ss(this.data,this.getAttributes())}static fromJSON(r){return new ss(r.data,r.attributes)}}ss.prototype.is=function(m){return"$text"===m||"model:$text"===m||"text"===m||"model:text"===m||"node"===m||"model:node"===m};class Ku extends Up{constructor(r,c,u){if(super(),this.textNode=r,c<0||c>r.offsetSize)throw new nt("model-textproxy-wrong-offsetintext",this);if(u<0||c+u>r.offsetSize)throw new nt("model-textproxy-wrong-length",this);this.data=r.data.substring(c,c+u),this.offsetInText=c}get startOffset(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}get offsetSize(){return this.data.length}get endOffset(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}getPath(){const r=this.textNode.getPath();return r.length>0&&(r[r.length-1]+=this.offsetInText),r}getAncestors(r={}){const c=[];let u=r.includeSelf?this:this.parent;for(;u;)c[r.parentFirst?"push":"unshift"](u),u=u.parent;return c}hasAttribute(r){return this.textNode.hasAttribute(r)}getAttribute(r){return this.textNode.getAttribute(r)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}Ku.prototype.is=function(m){return"$textProxy"===m||"model:$textProxy"===m||"textProxy"===m||"model:textProxy"===m};class Jr extends oc{constructor(r,c,u){super(c),this._children=new am,this.name=r,u&&this._insertChild(0,u)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}offsetToIndex(r){return this._children.offsetToIndex(r)}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}findAncestor(r,c={}){let u=c.includeSelf?this:this.parent;for(;u;){if(u.name===r)return u;u=u.parent}return null}toJSON(){const r=super.toJSON();if(r.name=this.name,this._children.length>0){r.children=[];for(const c of this._children)r.children.push(c.toJSON())}return r}_clone(r=!1){const c=r?Array.from(this._children).map(u=>u._clone(!0)):void 0;return new Jr(this.name,this.getAttributes(),c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}static fromJSON(r){let c;if(r.children){c=[];for(const u of r.children)c.push(u.name?Jr.fromJSON(u):ss.fromJSON(u))}return new Jr(r.name,r.attributes,c)}}Jr.prototype.is=function(m,r){return r?r===this.name&&("element"===m||"model:element"===m):"element"===m||"model:element"===m||"node"===m||"model:node"===m};class Gd{constructor(r){if(!r||!r.boundaries&&!r.startPosition)throw new nt("model-tree-walker-no-start-position",null);const c=r.direction||"forward";if("forward"!=c&&"backward"!=c)throw new nt("model-tree-walker-unknown-direction",r,{direction:c});this.direction=c,this.boundaries=r.boundaries||null,this._position=r.startPosition?r.startPosition.clone():to._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!r.singleCharacters,this.shallow=!!r.shallow,this.ignoreElementEnd=!!r.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}get position(){return this._position}skip(r){let c,u,_,x;do{_=this.position,x=this._visitedParent,({done:c,value:u}=this.next())}while(!c&&r(u));c||(this._position=_,this._visitedParent=x)}next(){return"forward"==this.direction?this._next():this._previous()}_next(){const r=this.position,c=this.position.clone(),u=this._visitedParent;if(null===u.parent&&c.offset===u.maxOffset)return{done:!0,value:void 0};if(u===this._boundaryEndParent&&c.offset==this.boundaries.end.offset)return{done:!0,value:void 0};const _=B1(c,u),x=_||Bm(c,u,_);if(x instanceof Jr){if(this.shallow){if(this.boundaries&&this.boundaries.end.isBefore(c))return{done:!0,value:void 0};c.offset++}else c.path.push(0),this._visitedParent=x;return this._position=c,Y1("elementStart",x,r,c,1)}if(x instanceof ss){let M;if(this.singleCharacters)M=1;else{let V=x.endOffset;this._boundaryEndParent==u&&this.boundaries.end.offsetW&&(W=this.boundaries.start.offset),E=c.offset-W}const V=new Ku(M,c.offset-M.startOffset-E,E);return c.offset-=E,this._position=c,Y1("text",V,r,c,E)}return c.path.pop(),this._position=c,this._visitedParent=u.parent,Y1("elementStart",u,r,c,1)}}function Y1(m,r,c,u,_){return{done:!1,value:{type:m,item:r,previousPosition:c,nextPosition:u,length:_}}}class to extends Up{constructor(r,c,u="toNone"){if(super(),!r.is("element")&&!r.is("documentFragment"))throw new nt("model-position-root-invalid",r);if(!(c instanceof Array)||0===c.length)throw new nt("model-position-path-incorrect-format",r,{path:c});r.is("rootElement")?c=c.slice():(c=[...r.getPath(),...c],r=r.root),this.root=r,this.path=c,this.stickiness=u}get offset(){return this.path[this.path.length-1]}set offset(r){this.path[this.path.length-1]=r}get parent(){let r=this.root;for(let c=0;c1)return!1;if(1===_)return rm(r,this,u);if(-1===_)return rm(this,r,u)}return this.path.length===r.path.length||Vm(this.path.length>r.path.length?this.path:r.path,c)}hasSameParentAs(r){return this.root===r.root&&"same"==ct(this.getParentPath(),r.getParentPath())}getTransformedByOperation(r){let c;switch(r.type){case"insert":c=this._getTransformedByInsertOperation(r);break;case"move":case"remove":case"reinsert":c=this._getTransformedByMoveOperation(r);break;case"split":c=this._getTransformedBySplitOperation(r);break;case"merge":c=this._getTransformedByMergeOperation(r);break;default:c=to._createAt(this)}return c}_getTransformedByInsertOperation(r){return this._getTransformedByInsertion(r.position,r.howMany)}_getTransformedByMoveOperation(r){return this._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}_getTransformedBySplitOperation(r){const c=r.movedRange;return c.containsPosition(this)||c.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(r.splitPosition,r.moveTargetPosition):r.graveyardPosition?this._getTransformedByMove(r.graveyardPosition,r.insertionPosition,1):this._getTransformedByInsertion(r.insertionPosition,1)}_getTransformedByMergeOperation(r){const c=r.movedRange;let u;return c.containsPosition(this)||c.start.isEqual(this)?(u=this._getCombined(r.sourcePosition,r.targetPosition),r.sourcePosition.isBefore(r.targetPosition)&&(u=u._getTransformedByDeletion(r.deletionPosition,1))):u=this.isEqual(r.deletionPosition)?to._createAt(r.deletionPosition):this._getTransformedByMove(r.deletionPosition,r.graveyardPosition,1),u}_getTransformedByDeletion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==ct(r.getParentPath(),this.getParentPath())){if(r.offsetthis.offset)return null;u.offset-=c}}else if("prefix"==ct(r.getParentPath(),this.getParentPath())){const _=r.path.length-1;if(r.offset<=this.path[_]){if(r.offset+c>this.path[_])return null;u.path[_]-=c}}return u}_getTransformedByInsertion(r,c){const u=to._createAt(this);if(this.root!=r.root)return u;if("same"==ct(r.getParentPath(),this.getParentPath()))(r.offset=_;){if(u.path[M]+E!==x.maxOffset)return!1;E=1,M--,x=x.parent}return!0}(m,c+1)}function Vm(m,r){for(;rc+1;){const x=_.maxOffset-u.offset;0!==x&&r.push(new Si(u,u.getShiftedBy(x))),u.path=u.path.slice(0,-1),u.offset++,_=_.parent}for(;u.path.length<=this.end.path.length;){const x=this.end.path[u.path.length-1],M=x-u.offset;0!==M&&r.push(new Si(u,u.getShiftedBy(M))),u.offset=x,u.path.push(0)}return r}getWalker(r={}){return r.boundaries=this,new Gd(r)}*getItems(r={}){r.boundaries=this,r.ignoreElementEnd=!0;const c=new Gd(r);for(const u of c)yield u.item}*getPositions(r={}){r.boundaries=this;const c=new Gd(r);yield c.position;for(const u of c)yield u.nextPosition}getTransformedByOperation(r){switch(r.type){case"insert":return this._getTransformedByInsertOperation(r);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(r);case"split":return[this._getTransformedBySplitOperation(r)];case"merge":return[this._getTransformedByMergeOperation(r)]}return[new Si(this.start,this.end)]}getTransformedByOperations(r){const c=[new Si(this.start,this.end)];for(const u of r)for(let _=0;_0?new this(u,_):new this(_,u)}static _createIn(r){return new this(to._createAt(r,0),to._createAt(r,r.maxOffset))}static _createOn(r){return this._createFromPositionAndShift(to._createBefore(r),r.offsetSize)}static _createFromRanges(r){if(0===r.length)throw new nt("range-create-from-ranges-empty-array",null);if(1==r.length)return r[0].clone();const c=r[0];r.sort((x,M)=>x.start.isAfter(M.start)?1:-1);const u=r.indexOf(c),_=new this(c.start,c.end);if(u>0)for(let x=u-1;r[x].end.isEqual(_.start);x++)_.start=to._createAt(r[x].start);for(let x=u+1;x{if(c.viewPosition)return;const u=this._modelToViewMapping.get(c.modelPosition.parent);if(!u)throw new nt("mapping-model-position-view-parent-not-found",this,{modelPosition:c.modelPosition});c.viewPosition=this.findPositionIn(u,c.modelPosition.offset)},{priority:"low"}),this.on("viewToModelPosition",(r,c)=>{if(c.modelPosition)return;const u=this.findMappedViewAncestor(c.viewPosition),_=this._viewToModelMapping.get(u),x=this._toModelOffset(c.viewPosition.parent,c.viewPosition.offset,u);c.modelPosition=to._createAt(_,x)},{priority:"low"})}bindElements(r,c){this._modelToViewMapping.set(r,c),this._viewToModelMapping.set(c,r)}unbindViewElement(r,c={}){const u=this.toModelElement(r);if(this._elementToMarkerNames.has(r))for(const _ of this._elementToMarkerNames.get(r))this._unboundMarkerNames.add(_);c.defer?this._deferredBindingRemovals.set(r,r.root):(this._viewToModelMapping.delete(r),this._modelToViewMapping.get(u)==r&&this._modelToViewMapping.delete(u))}unbindModelElement(r){const c=this.toViewElement(r);this._modelToViewMapping.delete(r),this._viewToModelMapping.get(c)==r&&this._viewToModelMapping.delete(c)}bindElementToMarker(r,c){const u=this._markerNameToElements.get(c)||new Set;u.add(r);const _=this._elementToMarkerNames.get(r)||new Set;_.add(c),this._markerNameToElements.set(c,u),this._elementToMarkerNames.set(r,_)}unbindElementFromMarkerName(r,c){const u=this._markerNameToElements.get(c);u&&(u.delete(r),0==u.size&&this._markerNameToElements.delete(c));const _=this._elementToMarkerNames.get(r);_&&(_.delete(c),0==_.size&&this._elementToMarkerNames.delete(r))}flushUnboundMarkerNames(){const r=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),r}flushDeferredBindings(){for(const[r,c]of this._deferredBindingRemovals)r.root==c&&this.unbindViewElement(r);this._deferredBindingRemovals=new Map}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}toModelElement(r){return this._viewToModelMapping.get(r)}toViewElement(r){return this._modelToViewMapping.get(r)}toModelRange(r){return new Si(this.toModelPosition(r.start),this.toModelPosition(r.end))}toViewRange(r){return new Ma(this.toViewPosition(r.start),this.toViewPosition(r.end))}toModelPosition(r){const c={viewPosition:r,mapper:this};return this.fire("viewToModelPosition",c),c.modelPosition}toViewPosition(r,c={}){const u={modelPosition:r,mapper:this,isPhantom:c.isPhantom};return this.fire("modelToViewPosition",u),u.viewPosition}markerNameToElements(r){const c=this._markerNameToElements.get(r);if(!c)return null;const u=new Set;for(const _ of c)if(_.is("attributeElement"))for(const x of _.getElementsWithSameId())u.add(x);else u.add(_);return u}registerViewToModelLength(r,c){this._viewToModelLengthCallbacks.set(r,c)}findMappedViewAncestor(r){let c=r.parent;for(;!this._viewToModelMapping.has(c);)c=c.parent;return c}_toModelOffset(r,c,u){if(u!=r)return this._toModelOffset(r.parent,r.index,u)+this._toModelOffset(r,c,r);if(r.is("$text"))return c;let _=0;for(let x=0;x1?r[0]+":"+r[1]:r[0]}var $f=Object.defineProperty,Kf=Object.defineProperties,V6=Object.getOwnPropertyDescriptors,jg=Object.getOwnPropertySymbols,Y2=Object.prototype.hasOwnProperty,Xf=Object.prototype.propertyIsEnumerable,B_=(m,r,c)=>r in m?$f(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Jg=(m,r)=>{for(var c in r||(r={}))Y2.call(r,c)&&B_(m,c,r[c]);if(jg)for(var c of jg(r))Xf.call(r,c)&&B_(m,c,r[c]);return m},V_=(m,r)=>Kf(m,V6(r));class Gg extends(Oe()){constructor(r){super(),this._conversionApi=Jg({dispatcher:this},r),this._firedEventsMap=new WeakMap}convertChanges(r,c,u){const _=this._createConversionApi(u,r.getRefreshedItems());for(const M of r.getMarkersToRemove())this._convertMarkerRemove(M.name,M.range,_);const x=this._reduceChanges(r.getChanges());for(const M of x)"insert"===M.type?this._convertInsert(Si._createFromPositionAndShift(M.position,M.length),_):"reinsert"===M.type?this._convertReinsert(Si._createFromPositionAndShift(M.position,M.length),_):"remove"===M.type?this._convertRemove(M.position,M.length,M.name,_):this._convertAttribute(M.range,M.attributeKey,M.attributeOldValue,M.attributeNewValue,_);for(const M of _.mapper.flushUnboundMarkerNames()){const E=c.get(M).getRange();this._convertMarkerRemove(M,E,_),this._convertMarkerAdd(M,E,_)}for(const M of r.getMarkersToAdd())this._convertMarkerAdd(M.name,M.range,_);_.mapper.flushDeferredBindings(),_.consumable.verifyAllConsumed("insert")}convert(r,c,u,_={}){const x=this._createConversionApi(u,void 0,_);this._convertInsert(r,x);for(const[M,E]of c)this._convertMarkerAdd(M,E,x);x.consumable.verifyAllConsumed("insert")}convertSelection(r,c,u){const _=this._createConversionApi(u);this.fire("cleanSelection",{selection:r},_);const x=r.getFirstPosition().root;if(!_.mapper.toViewElement(x))return;const M=Array.from(c.getMarkersAtPosition(r.getFirstPosition()));if(this._addConsumablesForSelection(_.consumable,r,M),this.fire("selection",{selection:r},_),r.isCollapsed){for(const E of M)if(_.consumable.test(r,"addMarker:"+E.name)){const F=E.getRange();if(!jm(r.getFirstPosition(),E,_.mapper))continue;this.fire(`addMarker:${E.name}`,{item:r,markerName:E.name,markerRange:F},_)}for(const E of r.getAttributeKeys())if(_.consumable.test(r,"attribute:"+E)){const F={item:r,range:r.getFirstRange(),attributeKey:E,attributeOldValue:null,attributeNewValue:r.getAttribute(E)};this.fire(`attribute:${E}:$text`,F,_)}}}_convertInsert(r,c,u={}){u.doNotAddConsumables||this._addConsumablesForInsert(c.consumable,Array.from(r));for(const _ of Array.from(r.getWalker({shallow:!0})).map(j_))this._testAndFire("insert",_,c)}_convertRemove(r,c,u,_){this.fire(`remove:${u}`,{position:r,length:c},_)}_convertAttribute(r,c,u,_,x){this._addConsumablesForRange(x.consumable,r,`attribute:${c}`);for(const M of r){const E={item:M.item,range:Si._createFromPositionAndShift(M.previousPosition,M.length),attributeKey:c,attributeOldValue:u,attributeNewValue:_};this._testAndFire(`attribute:${c}`,E,x)}}_convertReinsert(r,c){const u=Array.from(r.getWalker({shallow:!0}));this._addConsumablesForInsert(c.consumable,u);for(const _ of u.map(j_))this._testAndFire("insert",V_(Jg({},_),{reconversion:!0}),c)}_convertMarkerAdd(r,c,u){if("$graveyard"==c.root.rootName)return;const _=`addMarker:${r}`;if(u.consumable.add(c,_),this.fire(_,{markerName:r,markerRange:c},u),u.consumable.consume(c,_)){this._addConsumablesForRange(u.consumable,c,_);for(const x of c.getItems()){if(!u.consumable.test(x,_))continue;const M={item:x,range:Si._createOn(x),markerName:r,markerRange:c};this.fire(_,M,u)}}}_convertMarkerRemove(r,c,u){"$graveyard"!=c.root.rootName&&this.fire(`removeMarker:${r}`,{markerName:r,markerRange:c},u)}_reduceChanges(r){const c={changes:r};return this.fire("reduceChanges",c),c.changes}_addConsumablesForInsert(r,c){for(const u of c){const _=u.item;if(null===r.test(_,"insert")){r.add(_,"insert");for(const x of _.getAttributeKeys())r.add(_,"attribute:"+x)}}return r}_addConsumablesForRange(r,c,u){for(const _ of c.getItems())r.add(_,u);return r}_addConsumablesForSelection(r,c,u){r.add(c,"selection");for(const _ of u)r.add(c,"addMarker:"+_.name);for(const _ of c.getAttributeKeys())r.add(c,"attribute:"+_);return r}_testAndFire(r,c,u){const _=`${r}:${(V=c).item.is("element")?V.item.name:"$text"}`,x=c.item.is("$textProxy")?u.consumable._getSymbolForTextProxy(c.item):c.item,M=this._firedEventsMap.get(u),E=M.get(x);var V;if(E){if(E.has(_))return;E.add(_)}else M.set(x,new Set([_]));this.fire(_,c,u)}_testAndFireAddAttributes(r,c){const u={item:r,range:Si._createOn(r)};for(const _ of u.item.getAttributeKeys())u.attributeKey=_,u.attributeOldValue=null,u.attributeNewValue=u.item.getAttribute(_),this._testAndFire(`attribute:${_}`,u,c)}_createConversionApi(r,c=new Set,u={}){const _=V_(Jg({},this._conversionApi),{consumable:new V3,writer:r,options:u,convertItem:x=>this._convertInsert(Si._createOn(x),_),convertChildren:x=>this._convertInsert(Si._createIn(x),_,{doNotAddConsumables:!0}),convertAttributes:x=>this._testAndFireAddAttributes(x,_),canReuseView:x=>!c.has(_.mapper.toModelElement(x))});return this._firedEventsMap.set(_,new Map),_}}function jm(m,r,c){const u=r.getRange(),_=Array.from(m.getAncestors());return _.shift(),_.reverse(),!_.some(x=>{if(u.containsItem(x))return!!c.toViewElement(x).getCustomProperty("addHighlight")})}function j_(m){return{item:m.item,range:Si._createFromPositionAndShift(m.previousPosition,m.length)}}class Ud extends(Oe(Up)){constructor(...r){super(),this._lastRangeBackward=!1,this._attrs=new Map,this._ranges=[],r.length&&this.setTo(...r)}get anchor(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.end:r.start}return null}get focus(){if(this._ranges.length>0){const r=this._ranges[this._ranges.length-1];return this._lastRangeBackward?r.start:r.end}return null}get isCollapsed(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(r){if(this.rangeCount!=r.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(r.anchor)||!this.focus.isEqual(r.focus))return!1;for(const c of this._ranges){let u=!1;for(const _ of r._ranges)if(c.isEqual(_)){u=!0;break}if(!u)return!1}return!0}*getRanges(){for(const r of this._ranges)yield new Si(r.start,r.end)}getFirstRange(){let r=null;for(const c of this._ranges)r&&!c.start.isBefore(r.start)||(r=c);return r?new Si(r.start,r.end):null}getLastRange(){let r=null;for(const c of this._ranges)r&&!c.end.isAfter(r.end)||(r=c);return r?new Si(r.start,r.end):null}getFirstPosition(){const r=this.getFirstRange();return r?r.start.clone():null}getLastPosition(){const r=this.getLastRange();return r?r.end.clone():null}setTo(...r){let[c,u,_]=r;if("object"==typeof u&&(_=u,u=void 0),null===c)this._setRanges([]);else if(c instanceof Ud)this._setRanges(c.getRanges(),c.isBackward);else if(c&&"function"==typeof c.getRanges)this._setRanges(c.getRanges(),c.isBackward);else if(c instanceof Si)this._setRanges([c],!!_&&!!_.backward);else if(c instanceof to)this._setRanges([new Si(c)]);else if(c instanceof oc){const x=!!_&&!!_.backward;let M;if("in"==u)M=Si._createIn(c);else if("on"==u)M=Si._createOn(c);else{if(void 0===u)throw new nt("model-selection-setto-required-second-parameter",[this,c]);M=new Si(to._createAt(c,u))}this._setRanges([M],x)}else{if(!it(c))throw new nt("model-selection-setto-not-selectable",[this,c]);this._setRanges(c,_&&!!_.backward)}}_setRanges(r,c=!1){const u=Array.from(r),_=u.some(x=>{if(!(x instanceof Si))throw new nt("model-selection-set-ranges-not-range",[this,r]);return this._ranges.every(M=>!M.isEqual(x))});(u.length!==this._ranges.length||_)&&(this._replaceAllRanges(u),this._lastRangeBackward=!!c,this.fire("change:range",{directChange:!0}))}setFocus(r,c){if(null===this.anchor)throw new nt("model-selection-setfocus-no-ranges",[this,r]);const u=to._createAt(r,c);if("same"==u.compareWith(this.focus))return;const _=this.anchor;this._ranges.length&&this._popRange(),"before"==u.compareWith(_)?(this._pushRange(new Si(u,_)),this._lastRangeBackward=!0):(this._pushRange(new Si(_,u)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}getAttribute(r){return this._attrs.get(r)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(r){return this._attrs.has(r)}removeAttribute(r){this.hasAttribute(r)&&(this._attrs.delete(r),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}setAttribute(r,c){this.getAttribute(r)!==c&&(this._attrs.set(r,c),this.fire("change:attribute",{attributeKeys:[r],directChange:!0}))}getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}*getSelectedBlocks(){const r=new WeakSet;for(const c of this.getRanges()){const u=Wg(c.start,r);B2(u,c)&&(yield u);for(const x of c.getWalker()){const M=x.item;"elementEnd"==x.type&&j3(M,r,c)&&(yield M)}const _=Wg(c.end,r);Kg(_,c)&&(yield _)}}containsEntireContent(r=this.anchor.root){const c=to._createAt(r,0),u=to._createAt(r,"end");return c.isTouching(this.getFirstPosition())&&u.isTouching(this.getLastPosition())}_pushRange(r){this._checkRange(r),this._ranges.push(new Si(r.start,r.end))}_checkRange(r){for(let c=0;c0;)this._popRange()}_popRange(){this._ranges.pop()}}function Qg(m,r){return!r.has(m)&&(r.add(m),m.root.document.model.schema.isBlock(m)&&!!m.parent)}function j3(m,r,c){return Qg(m,r)&&$g(m,c)}function Wg(m,r){const c=m.parent.root.document.model.schema,u=m.parent.getAncestors({parentFirst:!0,includeSelf:!0});let _=!1;const x=u.find(M=>!_&&(_=c.isLimit(M),!_&&Qg(M,r)));return u.forEach(M=>r.add(M)),x}function $g(m,r){const c=function(u){const _=u.root.document.model.schema;let x=u.parent;for(;x;){if(_.isBlock(x))return x;x=x.parent}}(m);return!c||!r.containsRange(Si._createOn(c),!0)}function B2(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.start.isTouching(to._createAt(m,m.maxOffset))&&$g(m,r))}function Kg(m,r){return!!m&&(!(!r.isCollapsed&&!m.isEmpty)||!r.end.isTouching(to._createAt(m,0))&&$g(m,r))}Ud.prototype.is=function(m){return"selection"===m||"model:selection"===m};class Xu extends(Oe(Si)){constructor(r,c){super(r,c),th.call(this)}detach(){this.stopListening()}toRange(){return new Si(this.start,this.end)}static fromRange(r){return new Xu(r.start,r.end)}}function th(){this.listenTo(this.root.document.model,"applyOperation",(m,r)=>{const c=r[0];c.isDocumentOperation&&J_.call(this,c)},{priority:"low"})}function J_(m){const r=this.getTransformedByOperation(m),c=Si._createFromRanges(r),u=!c.isEqual(this),_=function(M,E){switch(E.type){case"insert":return M.containsPosition(E.position);case"move":case"remove":case"reinsert":case"merge":return M.containsPosition(E.sourcePosition)||M.start.isEqual(E.sourcePosition)||M.containsPosition(E.targetPosition);case"split":return M.containsPosition(E.splitPosition)||M.containsPosition(E.insertionPosition)}return!1}(this,m);let x=null;if(u){"$graveyard"==c.root.rootName&&(x="remove"==m.type?m.sourcePosition:m.deletionPosition);const M=this.toRange();this.start=c.start,this.end=c.end,this.fire("change:range",M,{deletionPosition:x})}else _&&this.fire("change:content",this.toRange(),{deletionPosition:x})}Xu.prototype.is=function(m){return"liveRange"===m||"model:liveRange"===m||"range"==m||"model:range"===m};const V2="selection:";class Ou extends(Oe(Up)){constructor(r){super(),this._selection=new sm(r),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(r){return this._selection.containsEntireContent(r)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(r){return this._selection.getAttribute(r)}hasAttribute(r){return this._selection.hasAttribute(r)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(r){this._selection.observeMarkers(r)}_setFocus(r,c){this._selection.setFocus(r,c)}_setTo(...r){this._selection.setTo(...r)}_setAttribute(r,c){this._selection.setAttribute(r,c)}_removeAttribute(r){this._selection.removeAttribute(r)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(r){this._selection.restoreGravity(r)}static _getStoreAttributeKey(r){return V2+r}static _isStoreAttributeKey(r){return r.startsWith(V2)}}Ou.prototype.is=function(m){return"selection"===m||"model:selection"==m||"documentSelection"==m||"model:documentSelection"==m};class sm extends Ud{constructor(r){super(),this.markers=new ec({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=r.model,this._document=r,this.listenTo(this._model,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&"marker"!=_.type&&"rename"!=_.type&&"noop"!=_.type&&(0==this._ranges.length&&this._selectionRestorePosition&&this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&&(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=>{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(c,u,_,x)=>{this._updateMarker(u,x)}),this.listenTo(this._document,"change",(c,u)=>{!function(_,x){const M=_.document.differ;for(const E of M.getChanges()){if("insert"!=E.type)continue;const F=E.position.parent;E.length===F.maxOffset&&_.enqueueChange(x,V=>{const W=Array.from(F.getAttributeKeys()).filter(dt=>dt.startsWith(V2));for(const dt of W)V.removeAttribute(dt,F)})}}(this._model,u)})}get isCollapsed(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length>0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let r=0;r{if(this._hasChangedRange=!0,c.root==this._document.graveyard){this._selectionRestorePosition=x.deletionPosition;const M=this._ranges.indexOf(c);this._ranges.splice(M,1),c.detach()}}),c}updateMarkers(){if(!this._observedMarkers.size)return;const r=[];let c=!1;for(const _ of this._model.markers){const x=_.name.split(":",1)[0];if(!this._observedMarkers.has(x))continue;const M=_.getRange();for(const E of this.getRanges())M.containsRange(E,!E.isCollapsed)&&r.push(_)}const u=Array.from(this.markers);for(const _ of r)this.markers.has(_)||(this.markers.add(_),c=!0);for(const _ of Array.from(this.markers))r.includes(_)||(this.markers.remove(_),c=!0);c&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}_updateMarker(r,c){const u=r.name.split(":",1)[0];if(!this._observedMarkers.has(u))return;let _=!1;const x=Array.from(this.markers),M=this.markers.has(r);if(c){let E=!1;for(const F of this.getRanges())if(c.containsRange(F,!F.isCollapsed)){E=!0;break}E&&!M?(this.markers.add(r),_=!0):!E&&M&&(this.markers.remove(r),_=!0)}else M&&(this.markers.remove(r),_=!0);_&&this.fire("change:marker",{oldMarkers:x,directChange:!1})}_updateAttributes(r){const c=Kc(this._getSurroundingAttributes()),u=Kc(this.getAttributes());if(r)this._attributePriority=new Map,this._attrs=new Map;else for(const[x,M]of this._attributePriority)"low"==M&&(this._attrs.delete(x),this._attributePriority.delete(x));this._setAttributesTo(c);const _=[];for(const[x,M]of this.getAttributes())u.has(x)&&u.get(x)===M||_.push(x);for(const[x]of u)this.hasAttribute(x)||_.push(x);_.length>0&&this.fire("change:attribute",{attributeKeys:_,directChange:!1})}_setAttribute(r,c,u=!0){const _=u?"normal":"low";return("low"!=_||"normal"!=this._attributePriority.get(r))&&super.getAttribute(r)!==c&&(this._attrs.set(r,c),this._attributePriority.set(r,_),!0)}_removeAttribute(r,c=!0){const u=c?"normal":"low";return!("low"==u&&"normal"==this._attributePriority.get(r)||(this._attributePriority.set(r,u),!super.hasAttribute(r)||(this._attrs.delete(r),0)))}_setAttributesTo(r){const c=new Set;for(const[u,_]of this.getAttributes())r.get(u)!==_&&this._removeAttribute(u,!1);for(const[u,_]of r)this._setAttribute(u,_,!1)&&c.add(u);return c}*getStoredAttributes(){const r=this.getFirstPosition().parent;if(this.isCollapsed&&r.isEmpty)for(const c of r.getAttributeKeys())c.startsWith(V2)&&(yield[c.substr(10),r.getAttribute(c)])}_getSurroundingAttributes(){const r=this.getFirstPosition(),c=this._model.schema;if("$graveyard"==r.root.rootName)return null;let u=null;if(this.isCollapsed){const _=r.textNode?r.textNode:r.nodeBefore,x=r.textNode?r.textNode:r.nodeAfter;if(this.isGravityOverridden||(u=j2(_,c)),u||(u=j2(x,c)),!this.isGravityOverridden&&!u){let M=_;for(;M&&!u;)M=M.previousSibling,u=j2(M,c)}if(!u){let M=x;for(;M&&!u;)M=M.nextSibling,u=j2(M,c)}u||(u=this.getStoredAttributes())}else{const _=this.getFirstRange();for(const x of _){if(x.item.is("element")&&c.isObject(x.item)){u=j2(x.item,c);break}if("text"==x.type){u=x.item.getAttributes();break}}}return u}_fixGraveyardSelection(r){const c=this._model.schema.getNearestSelectionRange(r);c&&this._pushRange(c)}}function j2(m,r){if(!m)return null;if(m instanceof Ku||m instanceof ss)return m.getAttributes();if(!r.isInline(m))return null;if(!r.isObject(m))return[];const c=[];for(const[u,_]of m.getAttributes())r.checkAttribute("$text",u)&&!1!==r.getAttributeProperties(u).copyFromObject&&c.push([u,_]);return c}class no{constructor(r){this._dispatchers=r}add(r){for(const c of this._dispatchers)r(c);return this}}class j6 extends no{elementToElement(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.attributes.length&&(u.children=!0),x=>{x.on(`insert:${u.name}`,function(M,E=G6){return(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=M(V.item,W,V);if(!dt)return;E(V.item,W.consumable);const Zt=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,dt),W.writer.insert(Zt,dt),W.convertAttributes(V.item),t0(dt,V.item.getChildren(),W,{reconversion:V.reconversion})}}(_,J6(u)),{priority:c.converterPriority||"normal"}),(u.children||u.attributes.length)&&x.on("reduceChanges",J3(u),{priority:"low"})}}(r))}elementToStructure(r){return this.add(function(c){const u=J2(c.model),_=G2(c.view,"container");return u.children=!0,x=>{if(x._conversionApi.schema.checkChild(u.name,"$text"))throw new nt("conversion-element-to-structure-disallowed-text",x,{elementName:u.name});var M,E;x.on(`insert:${u.name}`,(M=_,E=J6(u),(F,V,W)=>{if(!E(V.item,W.consumable,{preflight:!0}))return;const dt=new Map;var Ae,Ie,ln;W.writer._registerSlotFactory((Ae=V.item,Ie=dt,ln=W,(Dn,di)=>{const Ri=Dn.createContainerElement("$slot");let Go=null;if("children"===di)Go=Array.from(Ae.getChildren());else{if("function"!=typeof di)throw new nt("conversion-slot-mode-unknown",ln.dispatcher,{modeOrFilter:di});Go=Array.from(Ae.getChildren()).filter(Da=>di(Da))}return Ie.set(Ri,Go),Ri}));const Zt=M(V.item,W,V);if(W.writer._clearSlotFactory(),!Zt)return;(function(Ae,Ie,ln){const Dn=Array.from(Ie.values()).flat(),di=new Set(Dn);if(di.size!=Dn.length)throw new nt("conversion-slot-filter-overlap",ln.dispatcher,{element:Ae});if(di.size!=Ae.childCount)throw new nt("conversion-slot-filter-incomplete",ln.dispatcher,{element:Ae})})(V.item,dt,W),E(V.item,W.consumable);const ue=W.mapper.toViewPosition(V.range.start);W.mapper.bindElements(V.item,Zt),W.writer.insert(ue,Zt),W.convertAttributes(V.item),function(Ae,Ie,ln,Dn){ln.mapper.on("modelToViewPosition",Go,{priority:"highest"});let di=null,Ri=null;for([di,Ri]of Ie)t0(Ae,Ri,ln,Dn),ln.writer.move(ln.writer.createRangeIn(di),ln.writer.createPositionBefore(di)),ln.writer.remove(di);function Go(Da,ws){const Il=Ri.indexOf(ws.modelPosition.nodeAfter);Il<0||(ws.viewPosition=ws.mapper.findPositionIn(di,Il))}ln.mapper.off("modelToViewPosition",Go)}(Zt,dt,W,{reconversion:V.reconversion})}),{priority:c.converterPriority||"normal"}),x.on("reduceChanges",J3(u),{priority:"low"})}}(r))}attributeToElement(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=G2(c.view[M],"attribute");else c.view=G2(c.view,"attribute");const x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.writer;if(V.item instanceof Ud||V.item instanceof Ou)ue.wrap(ue.document.selection.getFirstRange(),Zt);else{let Ie=W.mapper.toViewRange(V.range);null!==V.attributeOldValue&&dt&&(Ie=ue.unwrap(Ie,dt)),null!==V.attributeNewValue&&Zt&&ue.wrap(Ie,Zt)}}),{priority:c.converterPriority||"normal"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=(c=U1(c)).model;"string"==typeof u&&(u={key:u});let _=`attribute:${u.key}`;if(u.name&&(_+=":"+u.name),u.values)for(const M of u.values)c.view[M]=V1(c.view[M]);else c.view=V1(c.view);const x=Zp(c);return M=>{var E;M.on(_,(E=x,(F,V,W)=>{if(!W.consumable.test(V.item,F.name))return;const dt=E(V.attributeOldValue,W,V),Zt=E(V.attributeNewValue,W,V);if(!dt&&!Zt)return;W.consumable.consume(V.item,F.name);const ue=W.mapper.toViewElement(V.item),Ae=W.writer;if(!ue)throw new nt("conversion-attribute-to-attribute-on-text",W.dispatcher,V);if(null!==V.attributeOldValue&&dt)if("class"==dt.key){const Ie=Ss(dt.value);for(const ln of Ie)Ae.removeClass(ln,ue)}else if("style"==dt.key){const Ie=Object.keys(dt.value);for(const ln of Ie)Ae.removeStyle(ln,ue)}else Ae.removeAttribute(dt.key,ue);if(null!==V.attributeNewValue&&Zt)if("class"==Zt.key){const Ie=Ss(Zt.value);for(const ln of Ie)Ae.addClass(ln,ue)}else if("style"==Zt.key){const Ie=Object.keys(Zt.value);for(const ln of Ie)Ae.setStyle(ln,Zt.value[ln],ue)}else Ae.setAttribute(Zt.key,Zt.value,ue)}),{priority:c.converterPriority||"normal"})}}(r))}markerToElement(r){return this.add(function(c){const u=G2(c.view,"ui");return _=>{var x;_.on(`addMarker:${c.model}`,(x=u,(M,E,F)=>{E.isOpening=!0;const V=x(E,F);E.isOpening=!1;const W=x(E,F);if(!V||!W)return;const dt=E.markerRange;if(dt.isCollapsed&&!F.consumable.consume(dt,M.name))return;for(const Ae of dt)if(!F.consumable.consume(Ae.item,M.name))return;const Zt=F.mapper,ue=F.writer;ue.insert(Zt.toViewPosition(dt.start),V),F.mapper.bindElementToMarker(V,E.markerName),dt.isCollapsed||(ue.insert(Zt.toViewPosition(dt.end),W),F.mapper.bindElementToMarker(W,E.markerName)),M.stop()}),{priority:c.converterPriority||"normal"}),_.on(`removeMarker:${c.model}`,(M,E,F)=>{const V=F.mapper.markerNameToElements(E.markerName);if(V){for(const W of V)F.mapper.unbindElementFromMarkerName(W,E.markerName),F.writer.clear(F.writer.createRangeOn(W),W);F.writer.clearClonedElementsGroup(E.markerName),M.stop()}},{priority:c.converterPriority||"normal"})}}(r))}markerToHighlight(r){return this.add((c=r,u=>{var _,x;u.on(`addMarker:${c.model}`,(_=c.view,(x,M,E)=>{if(!M.item||!(M.item instanceof Ud||M.item instanceof Ou||M.item.is("$textProxy")))return;const F=Q2(_,M,E);if(!F||!E.consumable.consume(M.item,x.name))return;const V=E.writer,W=Xg(V,F);if(M.item instanceof Ud||M.item instanceof Ou)V.wrap(V.document.selection.getFirstRange(),W);else{const Zt=E.mapper.toViewRange(M.range),ue=V.wrap(Zt,W);for(const Ae of ue.getItems())if(Ae.is("attributeElement")&&Ae.isSimilar(W)){E.mapper.bindElementToMarker(Ae,M.markerName);break}}}),{priority:c.converterPriority||"normal"}),u.on(`addMarker:${c.model}`,(x=c.view,(M,E,F)=>{if(!(E.item&&E.item instanceof Jr))return;const V=Q2(x,E,F);if(!V||!F.consumable.test(E.item,M.name))return;const W=F.mapper.toViewElement(E.item);if(W&&W.getCustomProperty("addHighlight")){F.consumable.consume(E.item,M.name);for(const dt of Si._createIn(E.item))F.consumable.consume(dt.item,M.name);W.getCustomProperty("addHighlight")(W,V,F.writer),F.mapper.bindElementToMarker(W,E.markerName)}}),{priority:c.converterPriority||"normal"}),u.on(`removeMarker:${c.model}`,function(x){return(M,E,F)=>{if(E.markerRange.isCollapsed)return;const V=Q2(x,E,F);if(!V)return;const W=Xg(F.writer,V),dt=F.mapper.markerNameToElements(E.markerName);if(dt){for(const Zt of dt)F.mapper.unbindElementFromMarkerName(Zt,E.markerName),Zt.is("attributeElement")?F.writer.unwrap(F.writer.createRangeOn(Zt),W):Zt.getCustomProperty("removeHighlight")(Zt,V.id,F.writer);F.writer.clearClonedElementsGroup(E.markerName),M.stop()}}}(c.view),{priority:c.converterPriority||"normal"})}));var c}markerToData(r){return this.add(function(c){const u=(c=U1(c)).model;let _=c.view;return _||(_=x=>({group:u,name:x.substr(c.model.length+1)})),x=>{var M,E;x.on(`addMarker:${u}`,(M=_,(E,F,V)=>{const W=M(F.markerName,V);if(!W)return;const dt=F.markerRange;V.consumable.consume(dt,E.name)&&(Eu(dt,!1,V,F,W),Eu(dt,!0,V,F,W),E.stop())}),{priority:c.converterPriority||"normal"}),x.on(`removeMarker:${u}`,(E=_,(F,V,W)=>{const dt=E(V.markerName,W);if(!dt)return;const Zt=W.mapper.markerNameToElements(V.markerName);if(Zt){for(const Ae of Zt)W.mapper.unbindElementFromMarkerName(Ae,V.markerName),Ae.is("containerElement")?(ue(`data-${dt.group}-start-before`,Ae),ue(`data-${dt.group}-start-after`,Ae),ue(`data-${dt.group}-end-before`,Ae),ue(`data-${dt.group}-end-after`,Ae)):W.writer.clear(W.writer.createRangeOn(Ae),Ae);W.writer.clearClonedElementsGroup(V.markerName),F.stop()}function ue(Ae,Ie){if(Ie.hasAttribute(Ae)){const ln=new Set(Ie.getAttribute(Ae).split(","));ln.delete(dt.name),0==ln.size?W.writer.removeAttribute(Ae,Ie):W.writer.setAttribute(Ae,Array.from(ln).join(","),Ie)}}}),{priority:c.converterPriority||"normal"})}}(r))}}function Xg(m,r){const c=m.createAttributeElement("span",r.attributes);return r.classes&&c._addClass(r.classes),"number"==typeof r.priority&&(c._priority=r.priority),c._id=r.id,c}function Eu(m,r,c,u,_){const x=r?m.start:m.end,M=x.nodeAfter&&x.nodeAfter.is("element")?x.nodeAfter:null,E=x.nodeBefore&&x.nodeBefore.is("element")?x.nodeBefore:null;if(M||E){let F,V;r&&M||!r&&!E?(F=M,V=!0):(F=E,V=!1);const W=c.mapper.toViewElement(F);if(W)return void function(dt,Zt,ue,Ae,Ie,ln){const Dn=`data-${ln.group}-${Zt?"start":"end"}-${ue?"before":"after"}`,di=dt.hasAttribute(Dn)?dt.getAttribute(Dn).split(","):[];di.unshift(ln.name),Ae.writer.setAttribute(Dn,di.join(","),dt),Ae.mapper.bindElementToMarker(dt,Ie.markerName)}(W,r,V,c,u,_)}!function(F,V,W,dt,Zt){const Ie=W.writer.createUIElement(`${Zt.group}-${V?"start":"end"}`,Zt.name?{name:Zt.name}:null);W.writer.insert(F,Ie),W.mapper.bindElementToMarker(Ie,dt.markerName)}(c.mapper.toViewPosition(x),r,c,u,_)}function J2(m){return"string"==typeof m&&(m={name:m}),m.attributes?Array.isArray(m.attributes)||(m.attributes=[m.attributes]):m.attributes=[],m.children=!!m.children,m}function G2(m,r){return"function"==typeof m?m:(c,u)=>function(_,x,M){let E;"string"==typeof _&&(_={name:_});const F=x.writer,V=Object.assign({},_.attributes);if(E="container"==M?F.createContainerElement(_.name,V):"attribute"==M?F.createAttributeElement(_.name,V,{priority:_.priority||tm.DEFAULT_PRIORITY}):F.createUIElement(_.name,V),_.styles){const W=Object.keys(_.styles);for(const dt of W)F.setStyle(dt,_.styles[dt],E)}if(_.classes){const W=_.classes;if("string"==typeof W)F.addClass(W,E);else for(const dt of W)F.addClass(dt,E)}return E}(m,u,r)}function Zp(m){return m.model.values?(r,c,u)=>{const _=m.view[r];return _?_(r,c,u):null}:m.view}function V1(m){return"string"==typeof m?r=>({key:m,value:r}):"object"==typeof m?m.value?()=>m:r=>({key:m.key,value:r}):m}function Q2(m,r,c){const u="function"==typeof m?m(r,c):m;return u?(u.priority||(u.priority=10),u.id||(u.id=r.markerName),u):null}function J3(m){const r=(c=m,(u,_)=>{if(!u.is("element",c.name))return!1;if("attribute"==_.type){if(c.attributes.includes(_.attributeKey))return!0}else if(c.children)return!0;return!1});var c;return(c,u)=>{const _=[];u.reconvertedElements||(u.reconvertedElements=new Set);for(const x of u.changes){const M="attribute"==x.type?x.range.start.nodeAfter:x.position.parent;if(M&&r(M,x)){if(!u.reconvertedElements.has(M)){u.reconvertedElements.add(M);const E=to._createBefore(M);let F=_.length;for(let V=_.length-1;V>=0;V--){const W=_[V],dt=("attribute"==W.type?W.range.start:W.position).compareWith(E);if("before"==dt||"remove"==W.type&&"same"==dt)break;F=V}_.splice(F,0,{type:"remove",name:M.name,position:E,length:1},{type:"reinsert",name:M.name,position:E,length:1})}}else _.push(x)}u.changes=_}}function J6(m){return(r,c,u={})=>{const _=["insert"];for(const x of m.attributes)r.hasAttribute(x)&&_.push(`attribute:${x}`);return!!_.every(x=>c.test(r,x))&&(u.preflight||_.forEach(x=>c.consume(r,x)),!0)}}function t0(m,r,c,u){for(const _ of r)cm(m.root,_,c,u)||c.convertItem(_)}function cm(m,r,c,u){const{writer:_,mapper:x}=c;if(!u.reconversion)return!1;const M=x.toViewElement(r);return!(!M||M.root==m||!c.canReuseView(M)||(_.move(_.createRangeOn(M),x.toViewPosition(to._createBefore(r))),0))}function G6(m,r,{preflight:c}={}){return c?r.test(m,"insert"):r.consume(m,"insert")}function eh(m){const{schema:r,document:c}=m.model;for(const u of c.getRoots())if(u.isEmpty&&!r.checkChild(u,"$text")&&r.checkChild(u,"paragraph"))return m.insertElement("paragraph",u),!0;return!1}function W2(m,r,c){const u=c.createContext(m);return!!c.checkChild(u,"paragraph")&&!!c.checkChild(u.push("paragraph"),r)}function e0(m,r){const c=r.createElement("paragraph");return r.insert(c,m),r.createPositionAt(c,0)}var G3=Object.defineProperty,$2=Object.defineProperties,nh=Object.getOwnPropertyDescriptors,ih=Object.getOwnPropertySymbols,Qd=Object.prototype.hasOwnProperty,n0=Object.prototype.propertyIsEnumerable,G_=(m,r,c)=>r in m?G3(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Q6 extends no{elementToElement(r){return this.add(Q3(r))}elementToAttribute(r){return this.add(function(c){Sl(c=U1(c));const u=Wd(c,!1),_=oh(c.view),x=_?`element:${_}`:"element";return M=>{M.on(x,u,{priority:c.converterPriority||"low"})}}(r))}attributeToAttribute(r){return this.add(function(c){let u=null;("string"==typeof(c=U1(c)).view||c.view.key)&&(u=function(x){"string"==typeof x.view&&(x.view={key:x.view});const M=x.view.key;let E;return E="class"==M||"style"==M?{["class"==M?"classes":"styles"]:x.view.value}:{attributes:{[M]:void 0===x.view.value?/[\s\S]*/:x.view.value}},x.view.name&&(E.name=x.view.name),x.view=E,M}(c)),Sl(c,u);const _=Wd(c,!0);return x=>{x.on("element",_,{priority:c.converterPriority||"low"})}}(r))}elementToMarker(r){return this.add(function(c){const u=(M=c.model,(E,F)=>{const V="string"==typeof M?M:M(E,F);return F.writer.createElement("$marker",{"data-name":V})});var M,_;return Q3((_=((M,E)=>{for(var F in E||(E={}))Qd.call(E,F)&&G_(M,F,E[F]);if(ih)for(var F of ih(E))n0.call(E,F)&&G_(M,F,E[F]);return M})({},c),$2(_,nh({model:u}))))}(r))}dataToMarker(r){return this.add(function(c){(c=U1(c)).model||(c.model=M=>M?c.view+":"+M:c.view);const u={view:c.view,model:c.model},_=lm(Mp(u,"start")),x=lm(Mp(u,"end"));return M=>{M.on(`element:${c.view}-start`,_,{priority:c.converterPriority||"normal"}),M.on(`element:${c.view}-end`,x,{priority:c.converterPriority||"normal"});const E=Dt.low,F=Dt.highest,V=Dt.get(c.converterPriority)/F;var W;M.on("element",(W=u,(dt,Zt,ue)=>{const Ae=`data-${W.view}`;function Ie(ln,Dn){for(const di of Dn){const Ri=W.model(di,ue),Go=ue.writer.createElement("$marker",{"data-name":Ri});ue.writer.insert(Go,ln),Zt.modelCursor=Zt.modelCursor.isEqual(ln)?Zt.modelCursor.getShiftedBy(1):Zt.modelCursor._getTransformedByInsertion(ln,1),Zt.modelRange=Zt.modelRange._getTransformedByInsertion(ln,1)[0]}}(ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-after"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-end-before"})||ue.consumable.test(Zt.viewItem,{attributes:Ae+"-start-before"}))&&(Zt.modelRange||Object.assign(Zt,ue.convertChildren(Zt.viewItem,Zt.modelCursor)),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-end-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-after"})&&Ie(Zt.modelRange.end,Zt.viewItem.getAttribute(Ae+"-start-after").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-end-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-end-before").split(",")),ue.consumable.consume(Zt.viewItem,{attributes:Ae+"-start-before"})&&Ie(Zt.modelRange.start,Zt.viewItem.getAttribute(Ae+"-start-before").split(",")))}),{priority:E+V})}}(r))}}function Q3(m){const r=lm(m=U1(m)),c=oh(m.view),u=c?`element:${c}`:"element";return _=>{_.on(u,r,{priority:m.converterPriority||"normal"})}}function oh(m){return"string"==typeof m?m:"object"==typeof m&&"string"==typeof m.name?m.name:null}function lm(m){const r=new ps(m.view);return(c,u,_)=>{const x=r.match(u.viewItem);if(!x)return;const M=x.match;if(M.name=!0,!_.consumable.test(u.viewItem,M))return;const E=(W=_,(F=m.model)instanceof Function?F(u.viewItem,W):W.writer.createElement(F));var F,W;E&&_.safeInsert(E,u.modelCursor)&&(_.consumable.consume(u.viewItem,M),_.convertChildren(u.viewItem,E),_.updateConversionResult(E,u))}}function Sl(m,r=null){m.model={key:"object"!=typeof m.model?m.model:m.model.key,value:"object"!=typeof m.model||void 0===m.model.value?null===r||(x=>x.getAttribute(r)):m.model.value}}function Wd(m,r){const c=new ps(m.view);return(u,_,x)=>{if(!_.modelRange&&r)return;const M=c.match(_.viewItem);if(!M||(function(W,dt){const Zt="function"==typeof W?W(dt):W;return!("object"==typeof Zt&&!oh(Zt)||Zt.classes||Zt.attributes||Zt.styles)}(m.view,_.viewItem)?M.match.name=!0:delete M.match.name,!x.consumable.test(_.viewItem,M.match)))return;const E=m.model.key,F="function"==typeof m.model.value?m.model.value(_.viewItem,x):m.model.value;null!==F&&(_.modelRange||Object.assign(_,x.convertChildren(_.viewItem,_.modelCursor)),function(W,dt,Zt,ue){let Ae=!1;for(const Ie of Array.from(W.getItems({shallow:Zt})))ue.schema.checkAttribute(Ie,dt.key)&&(Ae=!0,Ie.hasAttribute(dt.key)||ue.writer.setAttribute(dt.key,dt.value,Ie));return Ae}(_.modelRange,{key:E,value:F},r,x)&&(x.consumable.test(_.viewItem,{name:!0})&&(M.match.name=!0),x.consumable.consume(_.viewItem,M.match)))}}function Mp(m,r){return{view:`${m.view}-${r}`,model:(c,u)=>{const _=c.getAttribute("name"),x=m.model(_,u);return u.writer.createElement("$marker",{"data-name":x})}}}function Ga(m,r){return m.isCollapsed?function(c,u){const _=c.start,x=u.getNearestSelectionRange(_);if(!x){const E=_.getAncestors().reverse().find(F=>u.isObject(F));return E?Si._createOn(E):null}if(!x.isCollapsed)return x;const M=x.start;return _.isEqual(M)?null:new Si(M)}(m,r):function(c,u){const{start:_,end:x}=c,M=u.checkChild(_,"$text"),E=u.checkChild(x,"$text"),F=u.getLimitElement(_),V=u.getLimitElement(x);if(F===V){if(M&&E)return null;if(function(Zt,ue,Ae){const Ie=Zt.nodeAfter&&!Ae.isLimit(Zt.nodeAfter)||Ae.checkChild(Zt,"$text"),ln=ue.nodeBefore&&!Ae.isLimit(ue.nodeBefore)||Ae.checkChild(ue,"$text");return Ie||ln}(_,x,u)){const Zt=_.nodeAfter&&u.isSelectable(_.nodeAfter)?null:u.getNearestSelectionRange(_,"forward"),ue=x.nodeBefore&&u.isSelectable(x.nodeBefore)?null:u.getNearestSelectionRange(x,"backward");return new Si(Zt?Zt.start:_,ue?ue.end:x)}}const W=F&&!F.is("rootElement"),dt=V&&!V.is("rootElement");if(W||dt){const Zt=_.nodeAfter&&x.nodeBefore&&_.nodeAfter.parent===x.nodeBefore.parent,ue=W&&(!Zt||!Q_(_.nodeAfter,u)),Ae=dt&&(!Zt||!Q_(x.nodeBefore,u));let Ie=_,ln=x;return ue&&(Ie=to._createBefore(rh(F,u))),Ae&&(ln=to._createAfter(rh(V,u))),new Si(Ie,ln)}return null}(m,r)}function rh(m,r){let c=m,u=c;for(;r.isLimit(u)&&u.parent;)c=u,u=u.parent;return c}function Q_(m,r){return m&&r.isSelectable(m)}class um extends(Ue()){constructor(r,c){super(),this.model=r,this.view=new Vg(c),this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema});const u=this.model.document,_=u.selection,x=this.model.markers;var M,E,F,V,W;this.listenTo(this.model,"_beforeChanges",()=>{this.view._disableRendering(!0)},{priority:"highest"}),this.listenTo(this.model,"_afterChanges",()=>{this.view._disableRendering(!1)},{priority:"lowest"}),this.listenTo(u,"change",()=>{this.view.change(V=>{this.downcastDispatcher.convertChanges(u.differ,x,V),this.downcastDispatcher.convertSelection(_,x,V)})},{priority:"low"}),this.listenTo(this.view.document,"selectionChange",(V=this.model,W=this.mapper,(dt,Zt)=>{const ue=Zt.newSelection,Ae=[];for(const ln of ue.getRanges())Ae.push(W.toModelRange(ln));const Ie=V.createSelection(Ae,{backward:ue.isBackward});Ie.isEqual(V.document.selection)||V.change(ln=>{ln.setSelection(Ie)})})),this.listenTo(this.view.document,"beforeinput",(M=this.mapper,E=this.model.schema,F=this.view,(V,W)=>{if(!F.document.isComposing||D_isAndroid)for(let dt=0;dt{if(!dt.consumable.consume(W.item,V.name))return;const Zt=dt.writer,ue=dt.mapper.toViewPosition(W.range.start),Ae=Zt.createText(W.item.data);Zt.insert(ue,Ae)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(V,W,dt)=>{dt.convertAttributes(W.item),W.reconversion||!W.item.is("element")||W.item.isEmpty||dt.convertChildren(W.item)},{priority:"lowest"}),this.downcastDispatcher.on("remove",(V,W,dt)=>{const Zt=dt.mapper.toViewPosition(W.position),ue=W.position.getShiftedBy(W.length),Ae=dt.mapper.toViewPosition(ue,{isPhantom:!0}),Ie=dt.writer.createRange(Zt,Ae),ln=dt.writer.remove(Ie.getTrimmed());for(const Dn of dt.writer.createRangeIn(ln).getItems())dt.mapper.unbindViewElement(Dn,{defer:!0})},{priority:"low"}),this.downcastDispatcher.on("cleanSelection",(V,W,dt)=>{const Zt=dt.writer,ue=Zt.document.selection;for(const Ae of ue.getRanges())Ae.isCollapsed&&Ae.end.parent.isAttached()&&dt.writer.mergeAttributes(Ae.start);Zt.setSelection(null)}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=[];for(const Ae of Zt.getRanges())ue.push(dt.mapper.toViewRange(Ae));dt.writer.setSelection(ue,{backward:Zt.isBackward})},{priority:"low"}),this.downcastDispatcher.on("selection",(V,W,dt)=>{const Zt=W.selection;if(!Zt.isCollapsed||!dt.consumable.consume(Zt,"selection"))return;const ue=dt.writer,Ae=Zt.getFirstPosition(),Ie=dt.mapper.toViewPosition(Ae),ln=ue.breakAttributes(Ie);ue.setSelection(ln)},{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using(V=>{if("$graveyard"==V.rootName)return null;const W=new qm(this.view.document,V.name);return W.rootName=V.rootName,this.mapper.bindElements(V,W),W})}destroy(){this.view.destroy(),this.stopListening()}reconvertMarker(r){const c="string"==typeof r?r:r.name,u=this.model.markers.get(c);if(!u)throw new nt("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:c});this.model.change(()=>{this.model.markers._refresh(u)})}reconvertItem(r){this.model.change(()=>{this.model.document.differ._refreshItem(r)})}}class W_{constructor(){this._consumables=new Map}add(r,c){let u;r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):(this._consumables.has(r)?u=this._consumables.get(r):(u=new ch(r),this._consumables.set(r,u)),u.add(c))}test(r,c){const u=this._consumables.get(r);return void 0===u?null:r.is("$text")||r.is("documentFragment")?u:u.test(c)}consume(r,c){return!!this.test(r,c)&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!1):this._consumables.get(r).consume(c),!0)}revert(r,c){const u=this._consumables.get(r);void 0!==u&&(r.is("$text")||r.is("documentFragment")?this._consumables.set(r,!0):u.revert(c))}static consumablesFromElement(r){const c={element:r,name:!0,attributes:[],classes:[],styles:[]},u=r.getAttributeKeys();for(const M of u)"style"!=M&&"class"!=M&&c.attributes.push(M);const _=r.getClassNames();for(const M of _)c.classes.push(M);const x=r.getStyleNames();for(const M of x)c.styles.push(M);return c}static createFrom(r,c){if(c||(c=new W_),r.is("$text"))return c.add(r),c;r.is("element")&&c.add(r,W_.consumablesFromElement(r)),r.is("documentFragment")&&c.add(r);for(const u of r.getChildren())c=W_.createFrom(u,c);return c}}const sh=["attributes","classes","styles"];class ch{constructor(r){this.element=r,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}add(r){r.name&&(this._canConsumeName=!0);for(const c of sh)c in r&&this._add(c,r[c])}test(r){if(r.name&&!this._canConsumeName)return this._canConsumeName;for(const c of sh)if(c in r){const u=this._test(c,r[c]);if(!0!==u)return u}return!0}consume(r){r.name&&(this._canConsumeName=!1);for(const c of sh)c in r&&this._consume(c,r[c])}revert(r){r.name&&(this._canConsumeName=!0);for(const c of sh)c in r&&this._revert(c,r[c])}_add(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u){if("attributes"===r&&("class"===x||"style"===x))throw new nt("viewconsumable-invalid-attribute",this);if(_.set(x,!0),"styles"===r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!0)}}_test(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){const M=_.get(x);if(void 0===M)return null;if(!M)return!1}else{const M="class"==x?"classes":"styles",E=this._test(M,[...this._consumables[M].keys()]);if(!0!==E)return E}return!0}_consume(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x){if(_.set(x,!1),"styles"==r)for(const M of this.element.document.stylesProcessor.getRelatedStyles(x))_.set(M,!1)}else{const M="class"==x?"classes":"styles";this._consume(M,[...this._consumables[M].keys()])}}_revert(r,c){const u=Ye(c)?c:[c],_=this._consumables[r];for(const x of u)if("attributes"!==r||"class"!==x&&"style"!==x)!1===_.get(x)&&_.set(x,!0);else{const M="class"==x?"classes":"styles";this._revert(M,[...this._consumables[M].keys()])}}}class W3 extends(Ue()){constructor(){super(),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(r,c)=>{c[0]=new dm(c[0])},{priority:"highest"}),this.on("checkChild",(r,c)=>{c[0]=new dm(c[0]),c[1]=this.getDefinition(c[1])},{priority:"highest"})}register(r,c){if(this._sourceDefinitions[r])throw new nt("schema-cannot-register-item-twice",this,{itemName:r});this._sourceDefinitions[r]=[Object.assign({},c)],this._clearCache()}extend(r,c){if(!this._sourceDefinitions[r])throw new nt("schema-cannot-extend-missing-item",this,{itemName:r});this._sourceDefinitions[r].push(Object.assign({},c)),this._clearCache()}getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}getDefinition(r){let c;return c="string"==typeof r?r:"is"in r&&(r.is("$text")||r.is("$textProxy"))?"$text":r.name,this.getDefinitions()[c]}isRegistered(r){return!!this.getDefinition(r)}isBlock(r){const c=this.getDefinition(r);return!(!c||!c.isBlock)}isLimit(r){const c=this.getDefinition(r);return!(!c||!c.isLimit&&!c.isObject)}isObject(r){const c=this.getDefinition(r);return!!c&&!!(c.isObject||c.isLimit&&c.isSelectable&&c.isContent)}isInline(r){const c=this.getDefinition(r);return!(!c||!c.isInline)}isSelectable(r){const c=this.getDefinition(r);return!(!c||!c.isSelectable&&!c.isObject)}isContent(r){const c=this.getDefinition(r);return!(!c||!c.isContent&&!c.isObject)}checkChild(r,c){return!!c&&this._checkContextMatch(c,r)}checkAttribute(r,c){const u=this.getDefinition(r.last);return!!u&&u.allowAttributes.includes(c)}checkMerge(r,c){if(r instanceof to){const u=r.nodeBefore,_=r.nodeAfter;if(!(u instanceof Jr))throw new nt("schema-check-merge-no-element-before",this);if(!(_ instanceof Jr))throw new nt("schema-check-merge-no-element-after",this);return this.checkMerge(u,_)}for(const u of c.getChildren())if(!this.checkChild(r,u))return!1;return!0}addChildCheck(r){this.on("checkChild",(c,[u,_])=>{if(!_)return;const x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{priority:"high"})}addAttributeCheck(r){this.on("checkAttribute",(c,[u,_])=>{const x=r(u,_);"boolean"==typeof x&&(c.stop(),c.return=x)},{priority:"high"})}setAttributeProperties(r,c){this._attributeProperties[r]=Object.assign(this.getAttributeProperties(r),c)}getAttributeProperties(r){return this._attributeProperties[r]||{}}getLimitElement(r){let c;for(c=r instanceof to?r.parent:(r instanceof Si?[r]:Array.from(r.getRanges())).reduce((u,_)=>{const x=_.getCommonAncestor();return u?u.getCommonAncestor(x,{includeSelf:!0}):x},null);!this.isLimit(c)&&c.parent;)c=c.parent;return c}checkAttributeInSelection(r,c){if(r.isCollapsed){const u=[...r.getFirstPosition().getAncestors(),new ss("",r.getAttributes())];return this.checkAttribute(u,c)}{const u=r.getRanges();for(const _ of u)for(const x of _)if(this.checkAttribute(x.item,c))return!0}return!1}*getValidRanges(r,c){r=function*(u){for(const _ of u)yield*_.getMinimalFlatRanges()}(r);for(const u of r)yield*this._getValidRangesForRange(u,c)}getNearestSelectionRange(r,c="both"){if("$graveyard"==r.root.rootName)return null;if(this.checkChild(r,"$text"))return new Si(r);let u,_;const x=r.getAncestors().reverse().find(M=>this.isLimit(M))||r.root;"both"!=c&&"backward"!=c||(u=new Gd({boundaries:Si._createIn(x),startPosition:r,direction:"backward"})),"both"!=c&&"forward"!=c||(_=new Gd({boundaries:Si._createIn(x),startPosition:r}));for(const M of function*(E,F){let V=!1;for(;!V;){if(V=!0,E){const W=E.next();W.done||(V=!1,yield{walker:E,value:W.value})}if(F){const W=F.next();W.done||(V=!1,yield{walker:F,value:W.value})}}}(u,_)){const F=M.value;if(F.type==(M.walker==u?"elementEnd":"elementStart")&&this.isObject(F.item))return Si._createOn(F.item);if(this.checkChild(F.nextPosition,"$text"))return new Si(F.nextPosition)}return null}findAllowedParent(r,c){let u=r.parent;for(;u;){if(this.checkChild(u,c))return u;if(this.isLimit(u))return null;u=u.parent}return null}setAllowedAttributes(r,c,u){const _=u.model;for(const[x,M]of Object.entries(c))_.schema.checkAttribute(r,x)&&u.setAttribute(x,M,r)}removeDisallowedAttributes(r,c){for(const u of r)if(u.is("$text"))lh(this,u,c);else{const _=Si._createIn(u).getPositions();for(const x of _)lh(this,x.nodeBefore||x.parent,c)}}getAttributesWithProperty(r,c,u){const _={};for(const[x,M]of r.getAttributes()){const E=this.getAttributeProperties(x);void 0!==E[c]&&(void 0!==u&&u!==E[c]||(_[x]=M))}return _}createContext(r){return new dm(r)}_clearCache(){this._compiledDefinitions=null}_compile(){const r={},c=this._sourceDefinitions,u=Object.keys(c);for(const _ of u)r[_]=o0(c[_],_);for(const _ of u)$3(r,_);for(const _ of u)W6(r,_);for(const _ of u)K3(r,_);for(const _ of u)Zd(r,_),pm(r,_);for(const _ of u)$6(r,_),kp(r,_),Qa(r,_);this._compiledDefinitions=r}_checkContextMatch(r,c,u=c.length-1){const _=c.getItem(u);if(r.allowIn.includes(_.name)){if(0==u)return!0;{const x=this.getDefinition(_);return this._checkContextMatch(x,c,u-1)}}return!1}*_getValidRangesForRange(r,c){let u=r.start,_=r.start;for(const x of r.getItems({shallow:!0}))x.is("element")&&(yield*this._getValidRangesForRange(Si._createIn(x),c)),this.checkAttribute(x,c)||(u.isEqual(_)||(yield new Si(u,_)),u=to._createAfter(x)),_=to._createAfter(x);u.isEqual(_)||(yield new Si(u,_))}}class dm{constructor(r){if(r instanceof dm)return r;let c;c="string"==typeof r?[r]:Array.isArray(r)?r:r.getAncestors({includeSelf:!0}),this._items=c.map(Fc)}get length(){return this._items.length}get last(){return this._items[this._items.length-1]}[Symbol.iterator](){return this._items[Symbol.iterator]()}push(r){const c=new dm([r]);return c._items=[...this._items,...c._items],c}getItem(r){return this._items[r]}*getNames(){yield*this._items.map(r=>r.name)}endsWith(r){return Array.from(this.getNames()).join(" ").endsWith(r)}startsWith(r){return Array.from(this.getNames()).join(" ").startsWith(r)}}function o0(m,r){const c={name:r,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(u,_){for(const x of u){const M=Object.keys(x).filter(E=>E.startsWith("is"));for(const E of M)_[E]=!!x[E]}}(m,c),Jm(m,c,"allowIn"),Jm(m,c,"allowContentOf"),Jm(m,c,"allowWhere"),Jm(m,c,"allowAttributes"),Jm(m,c,"allowAttributesOf"),Jm(m,c,"allowChildren"),Jm(m,c,"inheritTypesFrom"),function(u,_){for(const x of u){const M=x.inheritAllFrom;M&&(_.allowContentOf.push(M),_.allowWhere.push(M),_.allowAttributesOf.push(M),_.inheritTypesFrom.push(M))}}(m,c),c}function $3(m,r){const c=m[r];for(const u of c.allowChildren){const _=m[u];_&&_.allowIn.push(r)}c.allowChildren.length=0}function W6(m,r){for(const c of m[r].allowContentOf)m[c]&&td(m,c).forEach(u=>{u.allowIn.push(r)});delete m[r].allowContentOf}function K3(m,r){for(const c of m[r].allowWhere){const u=m[c];u&&m[r].allowIn.push(...u.allowIn)}delete m[r].allowWhere}function Zd(m,r){for(const c of m[r].allowAttributesOf){const u=m[c];u&&m[r].allowAttributes.push(...u.allowAttributes)}delete m[r].allowAttributesOf}function pm(m,r){const c=m[r];for(const u of c.inheritTypesFrom){const _=m[u];if(_){const x=Object.keys(_).filter(M=>M.startsWith("is"));for(const M of x)M in c||(c[M]=_[M])}}delete c.inheritTypesFrom}function $6(m,r){const c=m[r],u=c.allowIn.filter(_=>m[_]);c.allowIn=Array.from(new Set(u))}function kp(m,r){const c=m[r];for(const u of c.allowIn)m[u].allowChildren.push(r)}function Qa(m,r){const c=m[r];c.allowAttributes=Array.from(new Set(c.allowAttributes))}function Jm(m,r,c){for(const u of m){const _=u[c];"string"==typeof _?r[c].push(_):Array.isArray(_)&&r[c].push(..._)}}function td(m,r){const c=m[r];return(u=m,Object.keys(u).map(_=>u[_])).filter(_=>_.allowIn.includes(c.name));var u}function Fc(m){return"string"==typeof m||m.is("documentFragment")?{name:"string"==typeof m?m:"$documentFragment",*getAttributeKeys(){},getAttribute(){}}:{name:m.is("element")?m.name:"$text",*getAttributeKeys(){yield*m.getAttributeKeys()},getAttribute:r=>m.getAttribute(r)}}function lh(m,r,c){for(const u of r.getAttributeKeys())m.checkAttribute(r,u)||c.removeAttribute(u,r)}var Md=Object.defineProperty,a0=Object.defineProperties,uh=Object.getOwnPropertyDescriptors,r0=Object.getOwnPropertySymbols,Gm=Object.prototype.hasOwnProperty,K2=Object.prototype.propertyIsEnumerable,X2=(m,r,c)=>r in m?Md(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Qm extends(Oe()){constructor(r){var c;super(),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this._emptyElementsToKeep=new Set,this.conversionApi=(c=((u,_)=>{for(var x in _||(_={}))Gm.call(_,x)&&X2(u,x,_[x]);if(r0)for(var x of r0(_))K2.call(_,x)&&X2(u,x,_[x]);return u})({},r),a0(c,uh({consumable:null,writer:null,store:null,convertItem:(u,_)=>this._convertItem(u,_),convertChildren:(u,_)=>this._convertChildren(u,_),safeInsert:(u,_)=>this._safeInsert(u,_),updateConversionResult:(u,_)=>this._updateConversionResult(u,_),splitToAllowedParent:(u,_)=>this._splitToAllowedParent(u,_),getSplitParts:u=>this._getSplitParts(u),keepEmptyElement:u=>this._keepEmptyElement(u)})))}convert(r,c,u=["$root"]){this.fire("viewCleanup",r),this._modelCursor=function(M,E){let F;for(const V of new dm(M)){const W={};for(const Zt of V.getAttributeKeys())W[Zt]=V.getAttribute(Zt);const dt=E.createElement(V.name,W);F&&E.insert(dt,F),F=to._createAt(dt,0)}return F}(u,c),this.conversionApi.writer=c,this.conversionApi.consumable=W_.createFrom(r),this.conversionApi.store={};const{modelRange:_}=this._convertItem(r,this._modelCursor),x=c.createDocumentFragment();if(_){this._removeEmptyElements();for(const M of Array.from(this._modelCursor.parent.getChildren()))c.append(M,x);x.markers=function(M,E){const F=new Set,V=new Map,W=Si._createIn(M).getItems();for(const dt of W)dt.is("element","$marker")&&F.add(dt);for(const dt of F){const Zt=dt.getAttribute("data-name"),ue=E.createPositionBefore(dt);V.has(Zt)?V.get(Zt).end=ue.clone():V.set(Zt,new Si(ue.clone())),E.remove(dt)}return V}(x,c)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,x}_convertItem(r,c){const u={viewItem:r,modelCursor:c,modelRange:null};if(r.is("element")?this.fire(`element:${r.name}`,u,this.conversionApi):r.is("$text")?this.fire("text",u,this.conversionApi):this.fire("documentFragment",u,this.conversionApi),u.modelRange&&!(u.modelRange instanceof Si))throw new nt("view-conversion-dispatcher-incorrect-result",this);return{modelRange:u.modelRange,modelCursor:u.modelCursor}}_convertChildren(r,c){let u=c.is("position")?c:to._createAt(c,0);const _=new Si(u);for(const x of Array.from(r.getChildren())){const M=this._convertItem(x,u);M.modelRange instanceof Si&&(_.end=M.modelRange.end,u=M.modelCursor)}return{modelRange:_,modelCursor:u}}_safeInsert(r,c){const u=this._splitToAllowedParent(r,c);return!!u&&(this.conversionApi.writer.insert(r,u.position),!0)}_updateConversionResult(r,c){const u=this._getSplitParts(r),_=this.conversionApi.writer;c.modelRange||(c.modelRange=_.createRange(_.createPositionBefore(r),_.createPositionAfter(u[u.length-1])));const x=this._cursorParents.get(r);c.modelCursor=x?_.createPositionAt(x,0):c.modelRange.end}_splitToAllowedParent(r,c){const{schema:u,writer:_}=this.conversionApi;let x=u.findAllowedParent(c,r);if(x){if(x===c.parent)return{position:c};this._modelCursor.parent.getAncestors().includes(x)&&(x=null)}if(!x)return W2(c,r,u)?{position:e0(c,_)}:null;const M=this.conversionApi.writer.split(c,x),E=[];for(const V of M.range.getWalker())if("elementEnd"==V.type)E.push(V.item);else{const W=E.pop();this._registerSplitPair(W,V.item)}const F=M.range.end.parent;return this._cursorParents.set(r,F),{position:M.position,cursorParent:F}}_registerSplitPair(r,c){this._splitParts.has(r)||this._splitParts.set(r,[r]);const u=this._splitParts.get(r);this._splitParts.set(c,u),u.push(c)}_getSplitParts(r){let c;return c=this._splitParts.has(r)?this._splitParts.get(r):[r],c}_keepEmptyElement(r){this._emptyElementsToKeep.add(r)}_removeEmptyElements(){let r=!1;for(const c of this._splitParts.keys())c.isEmpty&&!this._emptyElementsToKeep.has(c)&&(this.conversionApi.writer.remove(c),this._splitParts.delete(c),r=!0);r&&this._removeEmptyElements()}}class j1{getHtml(r){const c=document.implementation.createHTMLDocument("").createElement("div");return c.appendChild(r),c.innerHTML}}class s0{constructor(r){this.skipComments=!0,this.domParser=new DOMParser,this.domConverter=new F_(r,{renderingMode:"data"}),this.htmlWriter=new j1}toData(r){const c=this.domConverter.viewToDom(r);return this.htmlWriter.getHtml(c)}toView(r){const c=this._toDom(r);return this.domConverter.domToView(c,{skipComments:this.skipComments})}registerRawContentMatcher(r){this.domConverter.registerRawContentMatcher(r)}useFillerType(r){this.domConverter.blockFillerMode="marked"==r?"markedNbsp":"nbsp"}_toDom(r){r.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(r=`${r}`);const c=this.domParser.parseFromString(r,"text/html"),u=c.createDocumentFragment(),_=c.body.childNodes;for(;_.length>0;)u.appendChild(_[0]);return u}}class $_ extends(Oe()){constructor(r,c){super(),this.model=r,this.mapper=new B3,this.downcastDispatcher=new Gg({mapper:this.mapper,schema:r.schema}),this.downcastDispatcher.on("insert:$text",(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewPosition(_.range.start),F=M.createText(_.item.data);M.insert(E,F)},{priority:"lowest"}),this.downcastDispatcher.on("insert",(u,_,x)=>{x.convertAttributes(_.item),_.reconversion||!_.item.is("element")||_.item.isEmpty||x.convertChildren(_.item)},{priority:"lowest"}),this.upcastDispatcher=new Qm({schema:r.schema}),this.viewDocument=new Xp(c),this.stylesProcessor=c,this.htmlProcessor=new s0(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Hm(this.viewDocument),this.upcastDispatcher.on("text",(u,_,{schema:x,consumable:M,writer:E})=>{let F=_.modelCursor;if(!M.test(_.viewItem))return;if(!x.checkChild(F,"$text")){if(!W2(F,"$text",x)||0==_.viewItem.data.trim().length)return;const W=F.nodeBefore;F=e0(F,E),W&&W.is("element","$marker")&&(E.move(E.createRangeOn(W),F),F=E.createPositionAfter(W))}M.consume(_.viewItem);const V=E.createText(_.viewItem.data);E.insert(V,F),_.modelRange=E.createRange(F,F.getShiftedBy(V.offsetSize)),_.modelCursor=_.modelRange.end},{priority:"lowest"}),this.upcastDispatcher.on("element",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(u,_,x)=>{if(!_.modelRange&&x.consumable.consume(_.viewItem,{name:!0})){const{modelRange:M,modelCursor:E}=x.convertChildren(_.viewItem,_.modelCursor);_.modelRange=M,_.modelCursor=E}},{priority:"lowest"}),Ue().prototype.decorate.call(this,"init"),Ue().prototype.decorate.call(this,"set"),Ue().prototype.decorate.call(this,"get"),Ue().prototype.decorate.call(this,"toView"),Ue().prototype.decorate.call(this,"toModel"),this.on("init",()=>{this.fire("ready")},{priority:"lowest"}),this.on("ready",()=>{this.model.enqueueChange({isUndoable:!1},eh)},{priority:"lowest"})}get(r={}){const{rootName:c="main",trim:u="empty"}=r;if(!this._checkIfRootsExists([c]))throw new nt("datacontroller-get-non-existent-root",this);const _=this.model.document.getRoot(c);return _.isAttached()||Tt("datacontroller-get-detached-root",this),"empty"!==u||this.model.hasContent(_,{ignoreWhitespaces:!0})?this.stringify(_,r):""}stringify(r,c={}){const u=this.toView(r,c);return this.processor.toData(u)}toView(r,c={}){const u=this.viewDocument,_=this._viewWriter;this.mapper.clearBindings();const x=Si._createIn(r),M=new Td(u);this.mapper.bindElements(r,M);const E=r.is("documentFragment")?r.markers:function(F){const V=[],W=F.root.document;if(!W)return new Map;const dt=Si._createIn(F);for(const Zt of W.model.markers){const ue=Zt.getRange(),Ae=ue.isCollapsed,Ie=ue.start.isEqual(dt.start)||ue.end.isEqual(dt.end);if(Ae&&Ie)V.push([Zt.name,ue]);else{const ln=dt.getIntersection(ue);ln&&V.push([Zt.name,ln])}}return V.sort(([Zt,ue],[Ae,Ie])=>{if("after"!==ue.end.compareWith(Ie.start))return 1;if("before"!==ue.start.compareWith(Ie.end))return-1;switch(ue.start.compareWith(Ie.start)){case"before":return 1;case"after":return-1;default:switch(ue.end.compareWith(Ie.end)){case"before":return 1;case"after":return-1;default:return Ae.localeCompare(Zt)}}}),new Map(V)}(r);return this.downcastDispatcher.convert(x,E,_,c),M}init(r){if(this.model.document.version)throw new nt("datacontroller-init-document-not-empty",this);let c={};if("string"==typeof r?c.main=r:c=r,!this._checkIfRootsExists(Object.keys(c)))throw new nt("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},u=>{for(const _ of Object.keys(c)){const x=this.model.document.getRoot(_);u.insert(this.parse(c[_],x),x,0)}}),Promise.resolve()}set(r,c={}){let u={};if("string"==typeof r?u.main=r:u=r,!this._checkIfRootsExists(Object.keys(u)))throw new nt("datacontroller-set-non-existent-root",this);this.model.enqueueChange(c.batchType||{},_=>{_.setSelection(null),_.removeSelectionAttribute(this.model.document.selection.getAttributeKeys());for(const x of Object.keys(u)){const M=this.model.document.getRoot(x);_.remove(_.createRangeIn(M)),_.insert(this.parse(u[x],M),M,0)}})}parse(r,c="$root"){const u=this.processor.toView(r);return this.toModel(u,c)}toModel(r,c="$root"){return this.model.change(u=>this.upcastDispatcher.convert(r,u,c))}addStyleProcessorRules(r){r(this.stylesProcessor)}registerRawContentMatcher(r){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(r),this.htmlProcessor.registerRawContentMatcher(r)}destroy(){this.stopListening()}_checkIfRootsExists(r){for(const c of r)if(!this.model.document.getRoot(c))return!1;return!0}}class Os{constructor(r,c){this._helpers=new Map,this._downcast=Ss(r),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ss(c),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}addAlias(r,c){const u=this._downcast.includes(c);if(!this._upcast.includes(c)&&!u)throw new nt("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:r,dispatchers:[c],isDowncast:u})}for(r){if(!this._helpers.has(r))throw new nt("conversion-for-unknown-group",this);return this._helpers.get(r)}elementToElement(r){this.for("downcast").elementToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToElement({model:c,view:u,converterPriority:r.converterPriority})}attributeToElement(r){this.for("downcast").attributeToElement(r);for(const{model:c,view:u}of ac(r))this.for("upcast").elementToAttribute({view:u,model:c,converterPriority:r.converterPriority})}attributeToAttribute(r){this.for("downcast").attributeToAttribute(r);for(const{model:c,view:u}of ac(r))this.for("upcast").attributeToAttribute({view:u,model:c})}_createConversionHelpers({name:r,dispatchers:c,isDowncast:u}){if(this._helpers.has(r))throw new nt("conversion-group-exists",this);const _=u?new j6(c):new Q6(c);this._helpers.set(r,_)}}function*ac(m){if(m.model.values)for(const r of m.model.values){const c={key:m.model.key,value:r},u=m.view[r],_=m.upcastAlso?m.upcastAlso[r]:void 0;yield*c0(c,u,_)}else yield*c0(m.model,m.view,m.upcastAlso)}function*c0(m,r,c){if(yield{model:m,view:r},c)for(const u of Ss(c))yield{model:m,view:u}}class ed{constructor(r){this.baseVersion=r,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}_validate(){}toJSON(){const r=Object.assign({},this);return r.__className=this.constructor.className,delete r.batch,delete r.isDocumentOperation,r}static get className(){return"Operation"}static fromJSON(r,c){return new this(r.baseVersion)}}function dh(m,r){const c=mh(r),u=c.reduce((M,E)=>M+E.offsetSize,0),_=m.parent;$m(m);const x=m.index;return _._insertChild(x,c),J1(_,x+c.length),J1(_,x),new Si(m,m.getShiftedBy(u))}function ph(m){if(!m.isFlat)throw new nt("operation-utils-remove-range-not-flat",this);const r=m.start.parent;$m(m.start),$m(m.end);const c=r._removeChildren(m.start.index,m.end.index-m.start.index);return J1(r,m.start.index),c}function Wm(m,r){if(!m.isFlat)throw new nt("operation-utils-move-range-not-flat",this);const c=ph(m);return dh(r=r._getTransformedByDeletion(m.start,m.end.offset-m.start.offset),c)}function mh(m){const r=[];!function c(u){if("string"==typeof u)r.push(new ss(u));else if(u instanceof Ku)r.push(new ss(u.data,u.getAttributes()));else if(u instanceof oc)r.push(u);else if(it(u))for(const _ of u)c(_)}(m);for(let c=1;cr.maxOffset)throw new nt("move-operation-nodes-do-not-exist",this);if(r===c&&u<_&&_=u&&this.targetPosition.path[x]u._clone(!0))),c=new _c(this.position,r,this.baseVersion);return c.shouldReceiveAttributes=this.shouldReceiveAttributes,c}getReversed(){const c=new to(this.position.root.document.graveyard,[0]);return new ir(this.position,this.nodes.maxOffset,c,this.baseVersion+1)}_validate(){const r=this.position.parent;if(!r||r.maxOffsetc._clone(!0))),dh(this.position,r)}toJSON(){const r=super.toJSON();return r.position=this.position.toJSON(),r.nodes=this.nodes.toJSON(),r}static get className(){return"InsertOperation"}static fromJSON(r,c){const u=[];for(const x of r.nodes)u.push(x.name?Jr.fromJSON(x):ss.fromJSON(x));const _=new _c(to.fromJSON(r.position,c),u,r.baseVersion);return _.shouldReceiveAttributes=r.shouldReceiveAttributes,_}}class Ar extends ed{constructor(r,c,u,_,x){super(x),this.splitPosition=r.clone(),this.splitPosition.stickiness="toNext",this.howMany=c,this.insertionPosition=u,this.graveyardPosition=_?_.clone():null,this.graveyardPosition&&(this.graveyardPosition.stickiness="toNext")}get type(){return"split"}get moveTargetPosition(){const r=this.insertionPosition.path.slice();return r.push(0),new to(this.insertionPosition.root,r)}get movedRange(){const r=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Si(this.splitPosition,r)}get affectedSelectable(){const r=[Si._createFromPositionAndShift(this.splitPosition,0),Si._createFromPositionAndShift(this.insertionPosition,0)];return this.graveyardPosition&&r.push(Si._createFromPositionAndShift(this.graveyardPosition,0)),r}clone(){return new Ar(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}getReversed(){const c=new to(this.splitPosition.root.document.graveyard,[0]);return new fs(this.moveTargetPosition,this.howMany,this.splitPosition,c,this.baseVersion+1)}_validate(){const r=this.splitPosition.parent;if(!r||r.maxOffset{if(m.key===r.key&&m.range.start.hasSameParentAs(r.range.start)){const u=m.range.getDifference(r.range).map(x=>new Wr(x,m.key,m.oldValue,m.newValue,0)),_=m.range.getIntersection(r.range);return _&&c.aIsStrong&&u.push(new Wr(_,r.key,r.newValue,m.newValue,0)),0==u.length?[new fc(0)]:u}return[m]}),Zr(Wr,_c,(m,r)=>{if(m.range.start.hasSameParentAs(r.position)&&m.range.containsPosition(r.position)){const c=m.range._getTransformedByInsertion(r.position,r.howMany,!r.shouldReceiveAttributes).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion));if(r.shouldReceiveAttributes){const u=Km(r,m.key,m.oldValue);u&&c.unshift(u)}return c}return m.range=m.range._getTransformedByInsertion(r.position,r.howMany,!1)[0],[m]}),Zr(Wr,fs,(m,r)=>{const c=[];m.range.start.hasSameParentAs(r.deletionPosition)&&(m.range.containsPosition(r.deletionPosition)||m.range.start.isEqual(r.deletionPosition))&&c.push(Si._createFromPositionAndShift(r.graveyardPosition,1));const u=m.range._getTransformedByMergeOperation(r);return u.isCollapsed||c.push(u),c.map(_=>new Wr(_,m.key,m.oldValue,m.newValue,m.baseVersion))}),Zr(Wr,ir,(m,r)=>function(u,_){const x=Si._createFromPositionAndShift(_.sourcePosition,_.howMany);let M=null,E=[];x.containsRange(u,!0)?M=u:u.start.hasSameParentAs(x.start)?(E=u.getDifference(x),M=u.getIntersection(x)):E=[u];const F=[];for(let V of E){V=V._getTransformedByDeletion(_.sourcePosition,_.howMany);const W=_.getMovedRangeStart(),dt=V.start.hasSameParentAs(W),Zt=V._getTransformedByInsertion(W,_.howMany,dt);F.push(...Zt)}return M&&F.push(M._getTransformedByMove(_.sourcePosition,_.targetPosition,_.howMany,!1)[0]),F}(m.range,r).map(u=>new Wr(u,m.key,m.oldValue,m.newValue,m.baseVersion))),Zr(Wr,Ar,(m,r)=>{if(m.range.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.range.end.offset++,[m];if(m.range.start.hasSameParentAs(r.splitPosition)&&m.range.containsPosition(r.splitPosition)){const c=m.clone();return c.range=new Si(r.moveTargetPosition.clone(),m.range.end._getCombined(r.splitPosition,r.moveTargetPosition)),m.range.end=r.splitPosition.clone(),m.range.end.stickiness="toPrevious",[m,c]}return m.range=m.range._getTransformedBySplitOperation(r),[m]}),Zr(_c,Wr,(m,r)=>{const c=[m];if(m.shouldReceiveAttributes&&m.position.hasSameParentAs(r.range.start)&&r.range.containsPosition(m.position)){const u=Km(m,r.key,r.newValue);u&&c.push(u)}return c}),Zr(_c,_c,(m,r,c)=>(m.position.isEqual(r.position)&&c.aIsStrong||(m.position=m.position._getTransformedByInsertOperation(r)),[m])),Zr(_c,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(_c,Ar,(m,r)=>(m.position=m.position._getTransformedBySplitOperation(r),[m])),Zr(_c,fs,(m,r)=>(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ts,_c,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByInsertOperation(r)[0]),m.newRange&&(m.newRange=m.newRange._getTransformedByInsertOperation(r)[0]),[m])),Zr(Ts,Ts,(m,r,c)=>{if(m.name==r.name){if(!c.aIsStrong)return[new fc(0)];m.oldRange=r.newRange?r.newRange.clone():null}return[m]}),Zr(Ts,fs,(m,r)=>(m.oldRange&&(m.oldRange=m.oldRange._getTransformedByMergeOperation(r)),m.newRange&&(m.newRange=m.newRange._getTransformedByMergeOperation(r)),[m])),Zr(Ts,ir,(m,r,c)=>{if(m.oldRange&&(m.oldRange=Si._createFromRanges(m.oldRange._getTransformedByMoveOperation(r))),m.newRange){if(c.abRelation){const u=Si._createFromRanges(m.newRange._getTransformedByMoveOperation(r));if("left"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.start))return m.newRange.end=u.end,m.newRange.start.path=c.abRelation.path,[m];if("right"==c.abRelation.side&&r.targetPosition.isEqual(m.newRange.end))return m.newRange.start=u.start,m.newRange.end.path=c.abRelation.path,[m]}m.newRange=Si._createFromRanges(m.newRange._getTransformedByMoveOperation(r))}return[m]}),Zr(Ts,Ar,(m,r,c)=>{if(m.oldRange&&(m.oldRange=m.oldRange._getTransformedBySplitOperation(r)),m.newRange){if(c.abRelation){const u=m.newRange._getTransformedBySplitOperation(r);return m.newRange.start.isEqual(r.splitPosition)&&c.abRelation.wasStartBeforeMergedElement?m.newRange.start=to._createAt(r.insertionPosition):m.newRange.start.isEqual(r.splitPosition)&&!c.abRelation.wasInLeftElement&&(m.newRange.start=to._createAt(r.moveTargetPosition)),m.newRange.end=m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasInRightElement?to._createAt(r.moveTargetPosition):m.newRange.end.isEqual(r.splitPosition)&&c.abRelation.wasEndBeforeMergedElement?to._createAt(r.insertionPosition):u.end,[m]}m.newRange=m.newRange._getTransformedBySplitOperation(r)}return[m]}),Zr(fs,_c,(m,r)=>(m.sourcePosition.hasSameParentAs(r.position)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByInsertOperation(r),m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r),[m])),Zr(fs,fs,(m,r,c)=>{if(m.sourcePosition.isEqual(r.sourcePosition)&&m.targetPosition.isEqual(r.targetPosition)){if(c.bWasUndone){const u=r.graveyardPosition.path.slice();return u.push(0),m.sourcePosition=new to(r.graveyardPosition.root,u),m.howMany=0,[m]}return[new fc(0)]}if(m.sourcePosition.isEqual(r.sourcePosition)&&!m.targetPosition.isEqual(r.targetPosition)&&!c.bWasUndone&&"splitAtSource"!=c.abRelation){const u="$graveyard"==m.targetPosition.root.rootName,_="$graveyard"==r.targetPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const x=r.targetPosition._getTransformedByMergeOperation(r),M=m.targetPosition._getTransformedByMergeOperation(r);return[new ir(x,m.howMany,M,0)]}return[new fc(0)]}return m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMergeOperation(r),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),m.graveyardPosition.isEqual(r.graveyardPosition)&&c.aIsStrong||(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(fs,ir,(m,r,c)=>{const u=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);return"remove"==r.type&&!c.bWasUndone&&!c.forceWeakRemove&&m.deletionPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.sourcePosition)?[new fc(0)]:(m.sourcePosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.sourcePosition.hasSameParentAs(r.sourcePosition)&&(m.howMany-=r.howMany),m.sourcePosition=m.sourcePosition._getTransformedByMoveOperation(r),m.targetPosition=m.targetPosition._getTransformedByMoveOperation(r),m.graveyardPosition.isEqual(r.targetPosition)||(m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)),[m])}),Zr(fs,Ar,(m,r,c)=>{if(r.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByDeletion(r.graveyardPosition,1),m.deletionPosition.isEqual(r.graveyardPosition)&&(m.howMany=r.howMany)),m.targetPosition.isEqual(r.splitPosition)){const u=0!=r.howMany,_=r.graveyardPosition&&m.deletionPosition.isEqual(r.graveyardPosition);if(u||_||"mergeTargetNotMoved"==c.abRelation)return m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),[m]}if(m.sourcePosition.isEqual(r.splitPosition)){if("mergeSourceNotMoved"==c.abRelation)return m.howMany=0,m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m];if("mergeSameElement"==c.abRelation||m.sourcePosition.offset>0)return m.sourcePosition=r.moveTargetPosition.clone(),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}return m.sourcePosition.hasSameParentAs(r.splitPosition)&&(m.howMany=r.splitPosition.offset),m.sourcePosition=m.sourcePosition._getTransformedBySplitOperation(r),m.targetPosition=m.targetPosition._getTransformedBySplitOperation(r),[m]}),Zr(ir,_c,(m,r)=>{const c=Si._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByInsertOperation(r,!1)[0];return m.sourcePosition=c.start,m.howMany=c.end.offset-c.start.offset,m.targetPosition.isEqual(r.position)||(m.targetPosition=m.targetPosition._getTransformedByInsertOperation(r)),[m]}),Zr(ir,ir,(m,r,c)=>{const u=Si._createFromPositionAndShift(m.sourcePosition,m.howMany),_=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);let x,M=c.aIsStrong,E=!c.aIsStrong;if("insertBefore"==c.abRelation||"insertAfter"==c.baRelation?E=!0:"insertAfter"!=c.abRelation&&"insertBefore"!=c.baRelation||(E=!1),x=m.targetPosition.isEqual(r.targetPosition)&&E?m.targetPosition._getTransformedByDeletion(r.sourcePosition,r.howMany):m.targetPosition._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),tf(m,r)&&tf(r,m))return[r.getReversed()];if(u.containsPosition(r.targetPosition)&&u.containsRange(_,!0))return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],x);if(_.containsPosition(m.targetPosition)&&_.containsRange(u,!0))return u.start=u.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),u.end=u.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),mm([u],x);const F=ct(m.sourcePosition.getParentPath(),r.sourcePosition.getParentPath());if("prefix"==F||"extension"==F)return u.start=u.start._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),u.end=u.end._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany),mm([u],x);"remove"!=m.type||"remove"==r.type||c.aWasUndone||c.forceWeakRemove?"remove"==m.type||"remove"!=r.type||c.bWasUndone||c.forceWeakRemove||(M=!1):M=!0;const V=[],W=u.getDifference(_);for(const Zt of W){Zt.start=Zt.start._getTransformedByDeletion(r.sourcePosition,r.howMany),Zt.end=Zt.end._getTransformedByDeletion(r.sourcePosition,r.howMany);const ue="same"==ct(Zt.start.getParentPath(),r.getMovedRangeStart().getParentPath()),Ae=Zt._getTransformedByInsertion(r.getMovedRangeStart(),r.howMany,ue);V.push(...Ae)}const dt=u.getIntersection(_);return null!==dt&&M&&(dt.start=dt.start._getCombined(r.sourcePosition,r.getMovedRangeStart()),dt.end=dt.end._getCombined(r.sourcePosition,r.getMovedRangeStart()),0===V.length?V.push(dt):1==V.length?_.start.isBefore(u.start)||_.start.isEqual(u.start)?V.unshift(dt):V.push(dt):V.splice(1,0,dt)),0===V.length?[new fc(m.baseVersion)]:mm(V,x)}),Zr(ir,Ar,(m,r,c)=>{let u=m.targetPosition.clone();m.targetPosition.isEqual(r.insertionPosition)&&r.graveyardPosition&&"moveTargetAfter"!=c.abRelation||(u=m.targetPosition._getTransformedBySplitOperation(r));const _=Si._createFromPositionAndShift(m.sourcePosition,m.howMany);if(_.end.isEqual(r.insertionPosition))return r.graveyardPosition||m.howMany++,m.targetPosition=u,[m];if(_.start.hasSameParentAs(r.splitPosition)&&_.containsPosition(r.splitPosition)){let M=new Si(r.splitPosition,_.end);return M=M._getTransformedBySplitOperation(r),mm([new Si(_.start,r.splitPosition),M],u)}m.targetPosition.isEqual(r.splitPosition)&&"insertAtSource"==c.abRelation&&(u=r.moveTargetPosition),m.targetPosition.isEqual(r.insertionPosition)&&"insertBetween"==c.abRelation&&(u=m.targetPosition);const x=[_._getTransformedBySplitOperation(r)];if(r.graveyardPosition){const M=_.start.isEqual(r.graveyardPosition)||_.containsPosition(r.graveyardPosition);m.howMany>1&&M&&!c.aWasUndone&&x.push(Si._createFromPositionAndShift(r.insertionPosition,1))}return mm(x,u)}),Zr(ir,fs,(m,r,c)=>{const u=Si._createFromPositionAndShift(m.sourcePosition,m.howMany);if(r.deletionPosition.hasSameParentAs(m.sourcePosition)&&u.containsPosition(r.sourcePosition))if("remove"!=m.type||c.forceWeakRemove){if(1==m.howMany)return c.bWasUndone?(m.sourcePosition=r.graveyardPosition.clone(),m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]):[new fc(0)]}else if(!c.aWasUndone){const x=[];let M=r.graveyardPosition.clone(),E=r.targetPosition._getTransformedByMergeOperation(r);m.howMany>1&&(x.push(new ir(m.sourcePosition,m.howMany-1,m.targetPosition,0)),M=M._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1),E=E._getTransformedByMove(m.sourcePosition,m.targetPosition,m.howMany-1));const F=r.deletionPosition._getCombined(m.sourcePosition,m.targetPosition),V=new ir(M,1,F,0),W=V.getMovedRangeStart().path.slice();W.push(0);const dt=new to(V.targetPosition.root,W);E=E._getTransformedByMove(M,F,1);const Zt=new ir(E,r.howMany,dt,0);return x.push(V),x.push(Zt),x}const _=Si._createFromPositionAndShift(m.sourcePosition,m.howMany)._getTransformedByMergeOperation(r);return m.sourcePosition=_.start,m.howMany=_.end.offset-_.start.offset,m.targetPosition=m.targetPosition._getTransformedByMergeOperation(r),[m]}),Zr(Ll,_c,(m,r)=>(m.position=m.position._getTransformedByInsertOperation(r),[m])),Zr(Ll,fs,(m,r)=>m.position.isEqual(r.deletionPosition)?(m.position=r.graveyardPosition.clone(),m.position.stickiness="toNext",[m]):(m.position=m.position._getTransformedByMergeOperation(r),[m])),Zr(Ll,ir,(m,r)=>(m.position=m.position._getTransformedByMoveOperation(r),[m])),Zr(Ll,Ll,(m,r,c)=>{if(m.position.isEqual(r.position)){if(!c.aIsStrong)return[new fc(0)];m.oldName=r.newName}return[m]}),Zr(Ll,Ar,(m,r)=>{if("same"==ct(m.position.path,r.splitPosition.getParentPath())&&!r.graveyardPosition){const c=new Ll(m.position.getShiftedBy(1),m.oldName,m.newName,0);return[m,c]}return m.position=m.position._getTransformedBySplitOperation(r),[m]}),Zr($d,$d,(m,r,c)=>{if(m.root===r.root&&m.key===r.key){if(!c.aIsStrong||m.newValue===r.newValue)return[new fc(0)];m.oldValue=r.newValue}return[m]}),Zr(ml,ml,(m,r)=>m.rootName===r.rootName&&m.isAdd===r.isAdd?[new fc(0)]:[m]),Zr(Ar,_c,(m,r)=>(m.splitPosition.hasSameParentAs(r.position)&&m.splitPosition.offset{if(!m.graveyardPosition&&!c.bWasUndone&&m.splitPosition.hasSameParentAs(r.sourcePosition)){const u=r.graveyardPosition.path.slice();u.push(0);const _=new to(r.graveyardPosition.root,u),x=Ar.getInsertionPosition(new to(r.graveyardPosition.root,u)),M=new Ar(_,0,x,null,0);return m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition=M.insertionPosition.clone(),m.graveyardPosition.stickiness="toNext",[M,m]}return m.splitPosition.hasSameParentAs(r.deletionPosition)&&!m.splitPosition.isAfter(r.deletionPosition)&&m.howMany--,m.splitPosition.hasSameParentAs(r.targetPosition)&&(m.howMany+=r.howMany),m.splitPosition=m.splitPosition._getTransformedByMergeOperation(r),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedByMergeOperation(r)),[m]}),Zr(Ar,ir,(m,r,c)=>{const u=Si._createFromPositionAndShift(r.sourcePosition,r.howMany);if(m.graveyardPosition){const x=u.start.isEqual(m.graveyardPosition)||u.containsPosition(m.graveyardPosition);if(!c.bWasUndone&&x){const M=m.splitPosition._getTransformedByMoveOperation(r),E=m.graveyardPosition._getTransformedByMoveOperation(r),F=E.path.slice();F.push(0);const V=new to(E.root,F);return[new ir(M,m.howMany,V,0)]}m.graveyardPosition=m.graveyardPosition._getTransformedByMoveOperation(r)}const _=m.splitPosition.isEqual(r.targetPosition);if(_&&("insertAtSource"==c.baRelation||"splitBefore"==c.abRelation))return m.howMany+=r.howMany,m.splitPosition=m.splitPosition._getTransformedByDeletion(r.sourcePosition,r.howMany),m.insertionPosition=Ar.getInsertionPosition(m.splitPosition),[m];if(_&&c.abRelation&&c.abRelation.howMany){const{howMany:x,offset:M}=c.abRelation;return m.howMany+=x,m.splitPosition=m.splitPosition.getShiftedBy(M),[m]}return m.splitPosition.hasSameParentAs(r.sourcePosition)&&u.containsPosition(m.splitPosition)?(m.howMany-=r.howMany-(m.splitPosition.offset-r.sourcePosition.offset),m.splitPosition.hasSameParentAs(r.targetPosition)&&m.splitPosition.offset{if(m.splitPosition.isEqual(r.splitPosition)){if(!m.graveyardPosition&&!r.graveyardPosition)return[new fc(0)];if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition))return[new fc(0)];if("splitBefore"==c.abRelation)return m.howMany=0,m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r),[m]}if(m.graveyardPosition&&r.graveyardPosition&&m.graveyardPosition.isEqual(r.graveyardPosition)){const u="$graveyard"==m.splitPosition.root.rootName,_="$graveyard"==r.splitPosition.root.rootName;if(_&&!u||(!u||_)&&c.aIsStrong){const x=[];return r.howMany&&x.push(new ir(r.moveTargetPosition,r.howMany,r.splitPosition,0)),m.howMany&&x.push(new ir(m.splitPosition,m.howMany,m.moveTargetPosition,0)),x}return[new fc(0)]}if(m.graveyardPosition&&(m.graveyardPosition=m.graveyardPosition._getTransformedBySplitOperation(r)),m.splitPosition.isEqual(r.insertionPosition)&&"splitBefore"==c.abRelation)return m.howMany++,[m];if(r.splitPosition.isEqual(m.insertionPosition)&&"splitBefore"==c.baRelation){const u=r.insertionPosition.path.slice();u.push(0);const _=new to(r.insertionPosition.root,u);return[m,new ir(m.insertionPosition,1,_,0)]}return m.splitPosition.hasSameParentAs(r.splitPosition)&&m.splitPosition.offset{const c=r[0];c.isDocumentOperation&&K6.call(this,c)},{priority:"low"})}function K6(m){const r=this.getTransformedByOperation(m);if(!this.isEqual(r)){const c=this.toPosition();this.path=r.path,this.root=r.root,this.fire("change",c)}}el.prototype.is=function(m){return"livePosition"===m||"model:livePosition"===m||"position"==m||"model:position"===m};class _m{constructor(r={}){"string"==typeof r&&(r="transparent"===r?{isUndoable:!1}:{},Tt("batch-constructor-deprecated-string-type"));const{isUndoable:c=!0,isLocal:u=!0,isUndo:_=!1,isTyping:x=!1}=r;this.operations=[],this.isUndoable=c,this.isLocal=u,this.isUndo=_,this.isTyping=x}get type(){return Tt("batch-type-deprecated"),"default"}get baseVersion(){for(const r of this.operations)if(null!==r.baseVersion)return r.baseVersion;return null}addOperation(r){return r.batch=this,this.operations.push(r),r}}var X6=Object.defineProperty,t4=Object.defineProperties,wv=Object.getOwnPropertyDescriptors,fh=Object.getOwnPropertySymbols,ef=Object.prototype.hasOwnProperty,e4=Object.prototype.propertyIsEnumerable,Gl=(m,r,c)=>r in m?X6(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,nf=(m,r)=>{for(var c in r||(r={}))ef.call(r,c)&&Gl(m,c,r[c]);if(fh)for(var c of fh(r))e4.call(r,c)&&Gl(m,c,r[c]);return m};class n4{constructor(r){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=r}get isEmpty(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size}bufferOperation(r){const c=r;switch(c.type){case"insert":if(this._isInInsertedElement(c.position.parent))return;this._markInsert(c.position.parent,c.position.offset,c.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const u of c.range.getItems({shallow:!0}))this._isInInsertedElement(u.parent)||this._markAttribute(u);break;case"remove":case"move":case"reinsert":{if(c.sourcePosition.isEqual(c.targetPosition)||c.sourcePosition.getShiftedBy(c.howMany).isEqual(c.targetPosition))return;const u=this._isInInsertedElement(c.sourcePosition.parent),_=this._isInInsertedElement(c.targetPosition.parent);u||this._markRemove(c.sourcePosition.parent,c.sourcePosition.offset,c.howMany),_||this._markInsert(c.targetPosition.parent,c.getMovedRangeStart().offset,c.howMany);break}case"rename":{if(this._isInInsertedElement(c.position.parent))return;this._markRemove(c.position.parent,c.position.offset,1),this._markInsert(c.position.parent,c.position.offset,1);const u=Si._createFromPositionAndShift(c.position,1);for(const _ of this._markerCollection.getMarkersIntersectingRange(u)){const x=_.getData();this.bufferMarkerChange(_.name,x,x)}break}case"split":{const u=c.splitPosition.parent;this._isInInsertedElement(u)||this._markRemove(u,c.splitPosition.offset,c.howMany),this._isInInsertedElement(c.insertionPosition.parent)||this._markInsert(c.insertionPosition.parent,c.insertionPosition.offset,1),c.graveyardPosition&&this._markRemove(c.graveyardPosition.parent,c.graveyardPosition.offset,1);break}case"merge":{const u=c.sourcePosition.parent;this._isInInsertedElement(u.parent)||this._markRemove(u.parent,u.startOffset,1),this._markInsert(c.graveyardPosition.parent,c.graveyardPosition.offset,1);const x=c.targetPosition.parent;this._isInInsertedElement(x)||this._markInsert(x,c.targetPosition.offset,u.maxOffset);break}case"detachRoot":case"addRoot":{const u=c.affectedSelectable;if(!u._isLoaded||u.isAttached()==c.isAdd)return;this._bufferRootStateChange(c.rootName,c.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":if(!c.root._isLoaded)return;this._bufferRootAttributeChange(c.root.rootName,c.key,c.oldValue,c.newValue)}this._cachedChanges=null}bufferMarkerChange(r,c,u){c.range&&c.range.root.is("rootElement")&&!c.range.root._isLoaded&&(c.range=null),u.range&&u.range.root.is("rootElement")&&!u.range.root._isLoaded&&(u.range=null);let _=this._changedMarkers.get(r);_?_.newMarkerData=u:(_={newMarkerData:u,oldMarkerData:c},this._changedMarkers.set(r,_)),null==_.oldMarkerData.range&&null==u.range&&this._changedMarkers.delete(r)}getMarkersToRemove(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.oldMarkerData.range&&r.push({name:c,range:u.oldMarkerData.range});return r}getMarkersToAdd(){const r=[];for(const[c,u]of this._changedMarkers)null!=u.newMarkerData.range&&r.push({name:c,range:u.newMarkerData.range});return r}getChangedMarkers(){return Array.from(this._changedMarkers).map(([r,c])=>({name:r,data:{oldRange:c.oldMarkerData.range,newRange:c.newMarkerData.range}}))}hasDataChanges(){if(this._changesInElement.size>0||this._changedRoots.size>0)return!0;for(const{newMarkerData:r,oldMarkerData:c}of this._changedMarkers.values()){if(r.affectsData!==c.affectsData)return!0;if(r.affectsData){const u=r.range&&!c.range,_=!r.range&&c.range,x=r.range&&c.range&&!r.range.isEqual(c.range);if(u||_||x)return!0}}return!1}getChanges(r={}){if(this._cachedChanges)return r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let c=[];for(const u of this._changesInElement.keys()){const _=this._changesInElement.get(u).sort((W,dt)=>W.offset===dt.offset?W.type!=dt.type?"remove"==W.type?-1:1:0:W.offsetu.position.root!=_.position.root?u.position.root.rootName<_.position.root.rootName?-1:1:u.position.isEqual(_.position)?u.changeCount-_.changeCount:u.position.isBefore(_.position)?-1:1);for(let u=1,_=0;uu);for(const u of c)delete u.changeCount,"attribute"==u.type&&(delete u.position,delete u.length);return this._changeCount=0,this._cachedChangesWithGraveyard=c,this._cachedChanges=c.filter(d0),r.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(r=>{const c=nf({},r);return void 0!==c.state&&delete c.attributes,c})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(r,c){if(!this._changedRoots.has(r))return void this._changedRoots.set(r,{name:r,state:c?"attached":"detached"});const u=this._changedRoots.get(r);void 0!==u.state?(delete u.state,void 0===u.attributes&&this._changedRoots.delete(r)):u.state=c?"attached":"detached"}_bufferRootAttributeChange(r,c,u,_){const x=this._changedRoots.get(r)||{name:r},M=x.attributes||{};if(M[c]){const E=M[c];_===E.oldValue?delete M[c]:E.newValue=_}else M[c]={oldValue:u,newValue:_};0===Object.entries(M).length?(delete x.attributes,void 0===x.state&&this._changedRoots.delete(r)):(x.attributes=M,this._changedRoots.set(r,x))}_refreshItem(r){if(this._isInInsertedElement(r.parent))return;this._markRemove(r.parent,r.startOffset,r.offsetSize),this._markInsert(r.parent,r.startOffset,r.offsetSize),this._refreshedItems.add(r);const c=Si._createOn(r);for(const u of this._markerCollection.getMarkersIntersectingRange(c)){const _=u.getData();this.bufferMarkerChange(u.name,_,_)}this._cachedChanges=null}_bufferRootLoad(r){if(r.isAttached()){this._bufferRootStateChange(r.rootName,!0),this._markInsert(r,0,r.maxOffset);for(const u of r.getAttributeKeys())this._bufferRootAttributeChange(r.rootName,u,null,r.getAttribute(u));for(const u of this._markerCollection)if(u.getRange().root==r){const _=u.getData();this.bufferMarkerChange(u.name,(c=nf({},_),t4(c,wv({range:null}))),_)}var c}}_markInsert(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"insert",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_)}_markRemove(r,c,u){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const _={type:"remove",offset:c,howMany:u,count:this._changeCount++};this._markChange(r,_),this._removeAllNestedChanges(r,c,u)}_markAttribute(r){if(r.root.is("rootElement")&&!r.root._isLoaded)return;const c={type:"attribute",offset:r.startOffset,howMany:r.offsetSize,count:this._changeCount++};this._markChange(r.parent,c)}_markChange(r,c){this._makeSnapshot(r);const u=this._getChangesForElement(r);this._handleChange(c,u),u.push(c);for(let _=0;_u.offset){if(_>x){const M={type:"attribute",offset:x,howMany:_-x,count:this._changeCount++};this._handleChange(M,c),c.push(M)}r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}else r.offset>=u.offset&&r.offsetx?(r.nodesToHandle=_-x,r.offset=x):r.nodesToHandle=0);if("remove"==u.type&&r.offsetu.offset){const M={type:"attribute",offset:u.offset,howMany:_-u.offset,count:this._changeCount++};this._handleChange(M,c),c.push(M),r.nodesToHandle=u.offset-r.offset,r.howMany=r.nodesToHandle}"attribute"==u.type&&(r.offset>=u.offset&&_<=x?(r.nodesToHandle=0,r.howMany=0,r.offset=0):r.offset<=u.offset&&_>=x&&(u.howMany=0))}}r.howMany=r.nodesToHandle,delete r.nodesToHandle}_getInsertDiff(r,c,u){return{type:"insert",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getRemoveDiff(r,c,u){return{type:"remove",position:to._createAt(r,c),name:u.name,attributes:new Map(u.attributes),length:1,changeCount:this._changeCount++}}_getAttributesDiff(r,c,u){const _=[];u=new Map(u);for(const[x,M]of c){const E=u.has(x)?u.get(x):null;E!==M&&_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,attributeOldValue:M,attributeNewValue:E,changeCount:this._changeCount++}),u.delete(x)}for(const[x,M]of u)_.push({type:"attribute",position:r.start,range:r.clone(),length:1,attributeKey:x,attributeOldValue:null,attributeNewValue:M,changeCount:this._changeCount++});return _}_isInInsertedElement(r){const c=r.parent;if(!c)return!1;const u=this._changesInElement.get(c),_=r.startOffset;if(u)for(const x of u)if("insert"==x.type&&_>=x.offset&&_u){for(let M=0;Mthis._version+1&&this._gaps.set(this._version,r),this._version=r}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(r){if(r.baseVersion!==this.version)throw new nt("model-document-history-addoperation-incorrect-version",this,{operation:r,historyVersion:this.version});this._operations.push(r),this._version++,this._baseVersionToOperationIndex.set(r.baseVersion,this._operations.length-1)}getOperations(r,c=this.version){if(!this._operations.length)return[];const u=this._operations[0];void 0===r&&(r=u.baseVersion);let _=c-1;for(const[E,F]of this._gaps)r>E&&rE&&_this.lastOperation.baseVersion)return[];let x=this._baseVersionToOperationIndex.get(r);void 0===x&&(x=0);let M=this._baseVersionToOperationIndex.get(_);return void 0===M&&(M=this._operations.length-1),this._operations.slice(x,M+1)}getOperation(r){const c=this._baseVersionToOperationIndex.get(r);if(void 0!==c)return this._operations[c]}setOperationAsUndone(r,c){this._undoPairs.set(c,r),this._undoneOperations.add(r)}isUndoingOperation(r){return this._undoPairs.has(r)}isUndoneOperation(r){return this._undoneOperations.has(r)}getUndoneOperation(r){return this._undoPairs.get(r)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}class nl extends Jr{constructor(r,c,u="main"){super(c),this._isAttached=!0,this._isLoaded=!0,this._document=r,this.rootName=u}get document(){return this._document}isAttached(){return this._isAttached}toJSON(){return this.rootName}}nl.prototype.is=function(m,r){return r?r===this.name&&("rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m):"rootElement"===m||"model:rootElement"===m||"element"===m||"model:element"===m||"node"===m||"model:node"===m};var kd=Object.defineProperty,e5=Object.defineProperties,Uv=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,gh=Object.prototype.hasOwnProperty,bh=Object.prototype.propertyIsEnumerable,fm=(m,r,c)=>r in m?kd(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,X_=(m,r)=>{for(var c in r||(r={}))gh.call(r,c)&&fm(m,c,r[c]);if(Dp)for(var c of Dp(r))bh.call(r,c)&&fm(m,c,r[c]);return m},Xm=(m,r)=>e5(m,Uv(r));const af="$graveyard";class n5 extends(Oe()){constructor(r){super(),this.model=r,this.history=new t5,this.selection=new Ou(this),this.roots=new ec({idProperty:"rootName"}),this.differ=new n4(r.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",af),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.differ.bufferOperation(_)},{priority:"high"}),this.listenTo(r,"applyOperation",(c,u)=>{const _=u[0];_.isDocumentOperation&&this.history.addOperation(_)},{priority:"low"}),this.listenTo(this.selection,"change",()=>{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(r.markers,"update",(c,u,_,x,M)=>{const E=Xm(X_({},u.getData()),{range:x});this.differ.bufferMarkerChange(u.name,M,E),null===_&&u.on("change",(F,V)=>{const W=u.getData();this.differ.bufferMarkerChange(u.name,Xm(X_({},W),{range:V}),W)})}),this.registerPostFixer(c=>{let u=!1;for(const _ of this.roots)_.isAttached()||_.isEmpty||(c.remove(c.createRangeIn(_)),u=!0);for(const _ of this.model.markers)_.getRange().root.isAttached()||(c.removeMarker(_),u=!0);return u})}get version(){return this.history.version}set version(r){this.history.version=r}get graveyard(){return this.getRoot(af)}createRoot(r="$root",c="main"){if(this.roots.get(c))throw new nt("model-document-createroot-name-exists",this,{name:c});const u=new nl(this,r,c);return this.roots.add(u),u}destroy(){this.selection.destroy(),this.stopListening()}getRoot(r="main"){return this.roots.get(r)}getRootNames(r=!1){return this.getRoots(r).map(c=>c.rootName)}getRoots(r=!1){return Array.from(this.roots).filter(c=>c!=this.graveyard&&(r||c.isAttached())&&c._isLoaded)}registerPostFixer(r){this._postFixers.add(r)}toJSON(){const r=Mi(this);return r.selection="[engine.model.DocumentSelection]",r.model="[engine.model.Model]",r}_handleChangeBlock(r){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(r),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",r.batch):this.fire("change",r.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const r=this.getRoots();return r.length?r[0]:this.graveyard}_getDefaultRange(){const r=this._getDefaultRoot(),c=this.model,u=c.schema,_=c.createPositionFromPath(r,[0]);return u.getNearestSelectionRange(_)||c.createRange(_)}_validateSelectionRange(r){return G1(r.start)&&G1(r.end)}_callPostFixers(r){let c=!1;do{for(const u of this._postFixers)if(this.selection.refresh(),c=u(r),c)break}while(c)}}function G1(m){const r=m.textNode;if(r){const c=r.data,u=m.offset-r.startOffset;return!cn(c,u)&&!hd(c,u)}return!0}var vh=Object.defineProperty,p0=Object.defineProperties,o5=Object.getOwnPropertyDescriptors,m0=Object.getOwnPropertySymbols,a5=Object.prototype.hasOwnProperty,xh=Object.prototype.propertyIsEnumerable,Q1=(m,r,c)=>r in m?vh(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class t2 extends(Oe()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(r){return this._markers.has(r instanceof hm?r.name:r)}get(r){return this._markers.get(r)||null}_set(r,c,u=!1,_=!1){const x=r instanceof hm?r.name:r;if(x.includes(","))throw new nt("markercollection-incorrect-marker-name",this);const M=this._markers.get(x);if(M){const W=M.getData(),dt=M.getRange();let Zt=!1;return dt.isEqual(c)||(M._attachLiveRange(Xu.fromRange(c)),Zt=!0),u!=M.managedUsingOperations&&(M._managedUsingOperations=u,Zt=!0),"boolean"==typeof _&&_!=M.affectsData&&(M._affectsData=_,Zt=!0),Zt&&this.fire(`update:${x}`,M,dt,c,W),M}const E=Xu.fromRange(c),F=new hm(x,E,u,_);var V;return this._markers.set(x,F),this.fire(`update:${x}`,F,null,c,(V=((W,dt)=>{for(var Zt in dt||(dt={}))a5.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);if(m0)for(var Zt of m0(dt))xh.call(dt,Zt)&&Q1(W,Zt,dt[Zt]);return W})({},F.getData()),p0(V,o5({range:null})))),F}_remove(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);return!!u&&(this._markers.delete(c),this.fire(`update:${c}`,u,u.getRange(),null,u.getData()),this._destroyMarker(u),!0)}_refresh(r){const c=r instanceof hm?r.name:r,u=this._markers.get(c);if(!u)throw new nt("markercollection-refresh-marker-not-exists",this);const _=u.getRange();this.fire(`update:${c}`,u,_,_,u.getData())}*getMarkersAtPosition(r){for(const c of this)c.getRange().containsPosition(r)&&(yield c)}*getMarkersIntersectingRange(r){for(const c of this)null!==c.getRange().getIntersection(r)&&(yield c)}destroy(){for(const r of this._markers.values())this._destroyMarker(r);this._markers=null,this.stopListening()}*getMarkersGroup(r){for(const c of this._markers.values())c.name.startsWith(r+":")&&(yield c)}_destroyMarker(r){r.stopListening(),r._detachLiveRange()}}class hm extends(Oe(Up)){constructor(r,c,u,_){super(),this.name=r,this._liveRange=this._attachLiveRange(c),this._managedUsingOperations=u,this._affectsData=_}get managedUsingOperations(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new nt("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(r){return this._liveRange&&this._detachLiveRange(),r.delegate("change:range").to(this),r.delegate("change:content").to(this),this._liveRange=r,r}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}hm.prototype.is=function(m){return"marker"===m||"model:marker"===m};class gm extends ed{constructor(r,c){super(null),this.sourcePosition=r.clone(),this.howMany=c}get type(){return"detach"}get affectedSelectable(){return null}toJSON(){const r=super.toJSON();return r.sourcePosition=this.sourcePosition.toJSON(),r}_validate(){if(this.sourcePosition.root.document)throw new nt("detach-operation-on-document-node",this)}_execute(){ph(Si._createFromPositionAndShift(this.sourcePosition,this.howMany))}static get className(){return"DetachOperation"}}class Xd extends Up{constructor(r){super(),this.markers=new Map,this._children=new am,r&&this._insertChild(0,r)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(r){return this._children.getNode(r)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(r){return this._children.getNodeIndex(r)}getChildStartOffset(r){return this._children.getNodeStartOffset(r)}getPath(){return[]}getNodeByPath(r){let c=this;for(const u of r)c=c.getChild(c.offsetToIndex(u));return c}offsetToIndex(r){return this._children.offsetToIndex(r)}toJSON(){const r=[];for(const c of this._children)r.push(c.toJSON());return r}static fromJSON(r){const c=[];for(const u of r)c.push(u.name?Jr.fromJSON(u):ss.fromJSON(u));return new Xd(c)}_appendChild(r){this._insertChild(this.childCount,r)}_insertChild(r,c){const u="string"==typeof(_=c)?[new ss(_)]:(it(_)||(_=[_]),Array.from(_).map(x=>"string"==typeof x?new ss(x):x instanceof Ku?new ss(x.data,x.getAttributes()):x));var _;for(const _ of u)null!==_.parent&&_._remove(),_.parent=this;this._children._insertNodes(r,u)}_removeChildren(r,c=1){const u=this._children._removeNodes(r,c);for(const _ of u)_.parent=null;return u}}Xd.prototype.is=function(m){return"documentFragment"===m||"model:documentFragment"===m};class rf{constructor(r,c){this.model=r,this.batch=c}createText(r,c){return new ss(r,c)}createElement(r,c){return new Jr(r,c)}createDocumentFragment(){return new Xd}cloneElement(r,c=!0){return r._clone(c)}insert(r,c,u=0){if(this._assertWriterUsedCorrectly(),r instanceof ss&&""==r.data)return;const _=to._createAt(c,u);if(r.parent){if(f0(r.root,_.root))return void this.move(Si._createOn(r),_);if(r.root.document)throw new nt("model-writer-insert-forbidden-move",this);this.remove(r)}const M=new _c(_,r,_.root.document?_.root.document.version:null);if(r instanceof ss&&(M.shouldReceiveAttributes=!0),this.batch.addOperation(M),this.model.applyOperation(M),r instanceof Xd)for(const[E,F]of r.markers){const V=to._createAt(F.root,0),W={range:new Si(F.start._getCombined(V,_),F.end._getCombined(V,_)),usingOperation:!0,affectsData:!0};this.model.markers.has(E)?this.updateMarker(E,W):this.addMarker(E,W)}}insertText(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createText(r),c,u):this.insert(this.createText(r,c),u,_)}insertElement(r,c,u,_){c instanceof Xd||c instanceof Jr||c instanceof to?this.insert(this.createElement(r),c,u):this.insert(this.createElement(r,c),u,_)}append(r,c){this.insert(r,c,"end")}appendText(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createText(r),c,"end"):this.insert(this.createText(r,c),u,"end")}appendElement(r,c,u){c instanceof Xd||c instanceof Jr?this.insert(this.createElement(r),c,"end"):this.insert(this.createElement(r,c),u,"end")}setAttribute(r,c,u){if(this._assertWriterUsedCorrectly(),u instanceof Si){const _=u.getMinimalFlatRanges();for(const x of _)t_(this,r,c,x)}else Ch(this,r,c,u)}setAttributes(r,c){for(const[u,_]of Kc(r))this.setAttribute(u,_,c)}removeAttribute(r,c){if(this._assertWriterUsedCorrectly(),c instanceof Si){const u=c.getMinimalFlatRanges();for(const _ of u)t_(this,r,null,_)}else Ch(this,r,null,c)}clearAttributes(r){this._assertWriterUsedCorrectly();const c=u=>{for(const _ of u.getAttributeKeys())this.removeAttribute(_,u)};if(r instanceof Si)for(const u of r.getItems())c(u);else c(r)}move(r,c,u){if(this._assertWriterUsedCorrectly(),!(r instanceof Si))throw new nt("writer-move-invalid-range",this);if(!r.isFlat)throw new nt("writer-move-range-not-flat",this);const _=to._createAt(c,u);if(_.isEqual(r.start))return;if(this._addOperationForAffectedMarkers("move",r),!f0(r.root,_.root))throw new nt("writer-move-different-document",this);const M=new ir(r.start,r.end.offset-r.start.offset,_,r.root.document?r.root.document.version:null);this.batch.addOperation(M),this.model.applyOperation(M)}remove(r){this._assertWriterUsedCorrectly();const c=(r instanceof Si?r:Si._createOn(r)).getMinimalFlatRanges().reverse();for(const u of c)this._addOperationForAffectedMarkers("move",u),_0(u.start,u.end.offset-u.start.offset,this.batch,this.model)}merge(r){this._assertWriterUsedCorrectly();const c=r.nodeBefore,u=r.nodeAfter;if(this._addOperationForAffectedMarkers("merge",r),!(c instanceof Jr))throw new nt("writer-merge-no-element-before",this);if(!(u instanceof Jr))throw new nt("writer-merge-no-element-after",this);r.root.document?this._merge(r):this._mergeDetached(r)}createPositionFromPath(r,c,u){return this.model.createPositionFromPath(r,c,u)}createPositionAt(r,c){return this.model.createPositionAt(r,c)}createPositionAfter(r){return this.model.createPositionAfter(r)}createPositionBefore(r){return this.model.createPositionBefore(r)}createRange(r,c){return this.model.createRange(r,c)}createRangeIn(r){return this.model.createRangeIn(r)}createRangeOn(r){return this.model.createRangeOn(r)}createSelection(...r){return this.model.createSelection(...r)}_mergeDetached(r){const c=r.nodeBefore,u=r.nodeAfter;this.move(Si._createIn(u),to._createAt(c,"end")),this.remove(u)}_merge(r){const c=to._createAt(r.nodeBefore,"end"),u=to._createAt(r.nodeAfter,0),x=new to(r.root.document.graveyard,[0]),E=new fs(u,r.nodeAfter.maxOffset,c,x,r.root.document.version);this.batch.addOperation(E),this.model.applyOperation(E)}rename(r,c){if(this._assertWriterUsedCorrectly(),!(r instanceof Jr))throw new nt("writer-rename-not-element-instance",this);const u=r.root.document?r.root.document.version:null,_=new Ll(to._createBefore(r),r.name,c,u);this.batch.addOperation(_),this.model.applyOperation(_)}split(r,c){this._assertWriterUsedCorrectly();let u,_,x=r.parent;if(!x.parent)throw new nt("writer-split-element-no-parent",this);if(c||(c=x.parent),!r.parent.getAncestors({includeSelf:!0}).includes(c))throw new nt("writer-split-invalid-limit-element",this);do{const M=x.root.document?x.root.document.version:null,E=x.maxOffset-r.offset,F=Ar.getInsertionPosition(r),V=new Ar(r,E,F,null,M);this.batch.addOperation(V),this.model.applyOperation(V),u||_||(u=x,_=r.parent.nextSibling),x=(r=this.createPositionAfter(r.parent)).parent}while(x!==c);return{position:r,range:new Si(to._createAt(u,"end"),to._createAt(_,0))}}wrap(r,c){if(this._assertWriterUsedCorrectly(),!r.isFlat)throw new nt("writer-wrap-range-not-flat",this);const u=c instanceof Jr?c:new Jr(c);if(u.childCount>0)throw new nt("writer-wrap-element-not-empty",this);if(null!==u.parent)throw new nt("writer-wrap-element-attached",this);this.insert(u,r.start);const _=new Si(r.start.getShiftedBy(1),r.end.getShiftedBy(1));this.move(_,to._createAt(u,0))}unwrap(r){if(this._assertWriterUsedCorrectly(),null===r.parent)throw new nt("writer-unwrap-element-no-parent",this);this.move(Si._createIn(r),this.createPositionAfter(r)),this.remove(r)}addMarker(r,c){if(this._assertWriterUsedCorrectly(),!c||"boolean"!=typeof c.usingOperation)throw new nt("writer-addmarker-no-usingoperation",this);const u=c.usingOperation,_=c.range,x=void 0!==c.affectsData&&c.affectsData;if(this.model.markers.has(r))throw new nt("writer-addmarker-marker-exists",this);if(!_)throw new nt("writer-addmarker-no-range",this);return u?(Pp(this,r,null,_,x),this.model.markers.get(r)):this.model.markers._set(r,_,u,x)}updateMarker(r,c){this._assertWriterUsedCorrectly();const u="string"==typeof r?r:r.name,_=this.model.markers.get(u);if(!_)throw new nt("writer-updatemarker-marker-not-exists",this);if(!c)return Tt("writer-updatemarker-reconvert-using-editingcontroller",{markerName:u}),void this.model.markers._refresh(_);const x="boolean"==typeof c.usingOperation,M="boolean"==typeof c.affectsData,E=M?c.affectsData:_.affectsData;if(!x&&!c.range&&!M)throw new nt("writer-updatemarker-wrong-options",this);const F=_.getRange(),V=c.range?c.range:F;x&&c.usingOperation!==_.managedUsingOperations?c.usingOperation?Pp(this,u,null,V,E):(Pp(this,u,F,null,E),this.model.markers._set(u,V,void 0,E)):_.managedUsingOperations?Pp(this,u,F,V,E):this.model.markers._set(u,V,void 0,E)}removeMarker(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?r:r.name;if(!this.model.markers.has(c))throw new nt("writer-removemarker-no-marker",this);const u=this.model.markers.get(c);u.managedUsingOperations?Pp(this,c,u.getRange(),null,u.affectsData):this.model.markers._remove(c)}addRoot(r,c="$root"){this._assertWriterUsedCorrectly();const u=this.model.document.getRoot(r);if(u&&u.isAttached())throw new nt("writer-addroot-root-exists",this);const _=this.model.document,x=new ml(r,c,!0,_,_.version);return this.batch.addOperation(x),this.model.applyOperation(x),this.model.document.getRoot(r)}detachRoot(r){this._assertWriterUsedCorrectly();const c="string"==typeof r?this.model.document.getRoot(r):r;if(!c||!c.isAttached())throw new nt("writer-detachroot-no-root",this);for(const x of this.model.markers)x.getRange().root===c&&this.removeMarker(x);for(const x of c.getAttributeKeys())this.removeAttribute(x,c);this.remove(this.createRangeIn(c));const u=this.model.document,_=new ml(c.rootName,c.name,!1,u,u.version);this.batch.addOperation(_),this.model.applyOperation(_)}setSelection(...r){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(...r)}setSelectionFocus(r,c){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(r,c)}setSelectionAttribute(r,c){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._setSelectionAttribute(r,c);else for(const[u,_]of Kc(r))this._setSelectionAttribute(u,_)}removeSelectionAttribute(r){if(this._assertWriterUsedCorrectly(),"string"==typeof r)this._removeSelectionAttribute(r);else for(const c of r)this._removeSelectionAttribute(c)}overrideSelectionGravity(){return this.model.document.selection._overrideGravity()}restoreSelectionGravity(r){this.model.document.selection._restoreGravity(r)}_setSelectionAttribute(r,c){const u=this.model.document.selection;if(u.isCollapsed&&u.anchor.parent.isEmpty){const _=Ou._getStoreAttributeKey(r);this.setAttribute(_,c,u.anchor.parent)}u._setAttribute(r,c)}_removeSelectionAttribute(r){const c=this.model.document.selection;if(c.isCollapsed&&c.anchor.parent.isEmpty){const u=Ou._getStoreAttributeKey(r);this.removeAttribute(u,c.anchor.parent)}c._removeAttribute(r)}_assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new nt("writer-incorrect-use",this)}_addOperationForAffectedMarkers(r,c){for(const u of this.model.markers){if(!u.managedUsingOperations)continue;const _=u.getRange();let x=!1;if("move"===r){const M=c;x=M.containsPosition(_.start)||M.start.isEqual(_.start)||M.containsPosition(_.end)||M.end.isEqual(_.end)}else{const F=c.nodeAfter,W=_.end.parent==F&&0==_.end.offset,dt=_.end.nodeAfter==F,Zt=_.start.nodeAfter==F;x=_.start.parent==c.nodeBefore&&_.start.isAtEnd||W||dt||Zt}x&&this.updateMarker(u.name,{range:_})}}}function t_(m,r,c,u){const _=m.model,x=_.document;let M,E,F,V=u.start;for(const dt of u.getWalker({shallow:!0}))F=dt.item.getAttribute(r),M&&E!=F&&(E!=c&&W(),V=M),M=dt.nextPosition,E=F;function W(){const dt=new Si(V,M),ue=new Wr(dt,r,E,c,dt.root.document?x.version:null);m.batch.addOperation(ue),_.applyOperation(ue)}M instanceof to&&M!=V&&E!=c&&W()}function Ch(m,r,c,u){const _=m.model,x=_.document,M=u.getAttribute(r);let E,F;M!=c&&(u.root===u?F=new $d(u,r,M,c,u.document?x.version:null):(E=new Si(to._createBefore(u),m.createPositionAfter(u)),F=new Wr(E,r,M,c,E.root.document?x.version:null)),m.batch.addOperation(F),_.applyOperation(F))}function Pp(m,r,c,u,_){const x=m.model,E=new Ts(r,c,u,x.markers,!!_,x.document.version);m.batch.addOperation(E),x.applyOperation(E)}function _0(m,r,c,u){let _;if(m.root.document){const x=u.document,M=new to(x.graveyard,[0]);_=new ir(m,r,M,x.version)}else _=new gm(m,r);c.addOperation(_),u.applyOperation(_)}function f0(m,r){return m===r||m instanceof nl&&r instanceof nl}function Ah(m,r,c={}){if(r.isCollapsed)return;const u=r.getFirstRange();if("$graveyard"==u.root.rootName)return;const _=m.schema;m.change(x=>{if(!c.doNotResetEntireContent&&function(V,W){const dt=V.getLimitElement(W);if(!W.containsEntireContent(dt))return!1;const Zt=W.getFirstRange();return Zt.start.parent!=Zt.end.parent&&V.checkChild(dt,"paragraph")}(_,r))return void function(V,W){const dt=V.model.schema.getLimitElement(W);V.remove(V.createRangeIn(dt)),g0(V,V.createPositionAt(dt,0),W)}(x,r);const M={};if(!c.doNotAutoparagraph){const V=r.getSelectedElement();V&&Object.assign(M,_.getAttributesWithProperty(V,"copyOnReplace",!0))}const[E,F]=function(V){const W=V.root.document.model,dt=V.start;let Zt=V.end;if(W.hasContent(V,{ignoreMarkers:!0})){const ue=function(Ae){const Ie=Ae.parent,ln=Ie.root.document.model.schema,Dn=Ie.getAncestors({parentFirst:!0,includeSelf:!0});for(const di of Dn){if(ln.isLimit(di))return null;if(ln.isBlock(di))return di}}(Zt);if(ue&&Zt.isTouching(W.createPositionAt(ue,0))){const Ae=W.createSelection(V);W.modifySelection(Ae,{direction:"backward"});const Ie=Ae.getLastPosition(),ln=W.createRange(Ie,Zt);W.hasContent(ln,{ignoreMarkers:!0})||(Zt=Ie)}}return[el.fromPosition(dt,"toPrevious"),el.fromPosition(Zt,"toNext")]}(u);E.isTouching(F)||x.remove(x.createRange(E,F)),c.leaveUnmerged||(function(V,W,dt){const Zt=V.model;if(!h0(V.model.schema,W,dt))return;const[ue,Ae]=function(Ie,ln){const Dn=Ie.getAncestors(),di=ln.getAncestors();let Ri=0;for(;Dn[Ri]&&Dn[Ri]==di[Ri];)Ri++;return[Dn[Ri],di[Ri]]}(W,dt);!ue||!Ae||(!Zt.hasContent(ue,{ignoreMarkers:!0})&&Zt.hasContent(Ae,{ignoreMarkers:!0})?r5(V,W,dt,ue.parent):i4(V,W,dt,ue.parent))}(x,E,F),_.removeDisallowedAttributes(E.parent.getChildren(),x)),b0(x,r,E),!c.doNotAutoparagraph&&function(V,W){const dt=V.checkChild(W,"$text"),Zt=V.checkChild(W,"paragraph");return!dt&&Zt}(_,E)&&g0(x,E,r,M),E.detach(),F.detach()})}function i4(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(x,r),m.merge(r);c.parent.isEmpty;){const M=c.parent;c=m.createPositionBefore(M),m.remove(M)}h0(m.model.schema,r,c)&&i4(m,r,c,u)}}function r5(m,r,c,u){const _=r.parent,x=c.parent;if(_!=u&&x!=u){for(r=m.createPositionAfter(_),(c=m.createPositionBefore(x)).isEqual(r)||m.insert(_,c);r.parent.isEmpty;){const M=r.parent;r=m.createPositionBefore(M),m.remove(M)}c=m.createPositionBefore(x),function(M,E){const F=E.nodeBefore,V=E.nodeAfter;F.name!=V.name&&M.rename(F,V.name),M.clearAttributes(F),M.setAttributes(Object.fromEntries(V.getAttributes()),F),M.merge(E)}(m,c),h0(m.model.schema,r,c)&&r5(m,r,c,u)}}function h0(m,r,c){const u=r.parent,_=c.parent;return u!=_&&!m.isLimit(u)&&!m.isLimit(_)&&function(x,M,E){const F=new Si(x,M);for(const V of F.getWalker())if(E.isLimit(V.item))return!1;return!0}(r,c,m)}function g0(m,r,c,u={}){const _=m.createElement("paragraph");m.model.schema.setAllowedAttributes(_,u,m),m.insert(_,r),b0(m,c,m.createPositionAt(_,0))}function b0(m,r,c){r instanceof Ou?m.setSelection(c):r.setTo(c)}function sf(m,r){const c=[];Array.from(m.getItems({direction:"backward"})).map(u=>r.createRangeOn(u)).filter(u=>(u.start.isAfter(m.start)||u.start.isEqual(m.start))&&(u.end.isBefore(m.end)||u.end.isEqual(m.end))).forEach(u=>{c.push(u.start.parent),r.remove(u)}),c.forEach(u=>{let _=u;for(;_.parent&&_.isEmpty;){const x=r.createRangeOn(_);_=_.parent,r.remove(x)}})}class o4{constructor(r,c,u){this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=r,this.writer=c,this.position=u,this.canMergeWith=new Set([this.position.parent]),this.schema=r.schema,this._documentFragment=c.createDocumentFragment(),this._documentFragmentPosition=c.createPositionAt(this._documentFragment,0)}handleNodes(r){for(const c of Array.from(r))this._handleNode(c);this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}_updateLastNodeFromAutoParagraph(r){const c=this.writer.createPositionAfter(this._lastNode),u=this.writer.createPositionAfter(r);if(u.isAfter(c)){if(this._lastNode=r,this.position.parent!=r||!this.position.isAtEnd)throw new nt("insertcontent-invalid-insertion-position",this);this.position=u,this._setAffectedBoundaries(this.position)}}getSelectionRange(){return this._nodeToSelect?Si._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}getAffectedRange(){return this._affectedStart?new Si(this._affectedStart,this._affectedEnd):null}destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}_handleNode(r){if(this.schema.isObject(r))return void this._handleObject(r);let c=this._checkAndAutoParagraphToAllowedPosition(r);c||(c=this._checkAndSplitToAllowedPosition(r),c)?(this._appendToFragment(r),this._firstNode||(this._firstNode=r),this._lastNode=r):this._handleDisallowedNode(r)}_insertPartialFragment(){if(this._documentFragment.isEmpty)return;const r=el.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=r.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=r.toPosition(),r.detach()}_handleObject(r){this._checkAndSplitToAllowedPosition(r)?this._appendToFragment(r):this._tryAutoparagraphing(r)}_handleDisallowedNode(r){r.is("element")?this.handleNodes(r.getChildren()):this._tryAutoparagraphing(r)}_appendToFragment(r){if(!this.schema.checkChild(this.position,r))throw new nt("insertcontent-wrong-position",this,{node:r,position:this.position});this.writer.insert(r,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(r.offsetSize),this._nodeToSelect=this.schema.isObject(r)&&!this.schema.checkChild(this.position,"$text")?r:null,this._filterAttributesOf.push(r)}_setAffectedBoundaries(r){this._affectedStart||(this._affectedStart=el.fromPosition(r,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(r)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=el.fromPosition(r,"toNext"))}_mergeOnLeft(){const r=this._firstNode;if(!(r instanceof Jr&&this._canMergeLeft(r)))return;const c=el._createBefore(r);c.stickiness="toNext";const u=el.fromPosition(this.position,"toNext");this._affectedStart.isEqual(c)&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_mergeOnRight(){const r=this._lastNode;if(!(r instanceof Jr&&this._canMergeRight(r)))return;const c=el._createAfter(r);if(c.stickiness="toNext",!this.position.isEqual(c))throw new nt("insertcontent-invalid-insertion-position",this);this.position=to._createAt(c.nodeBefore,"end");const u=el.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(c)&&(this._affectedEnd.detach(),this._affectedEnd=el._createAt(c.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=c.nodeBefore,this._lastNode=c.nodeBefore),this.writer.merge(c),c.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=el._createAt(c.nodeBefore,0,"toPrevious")),this.position=u.toPosition(),u.detach(),this._filterAttributesOf.push(this.position.parent),c.detach()}_canMergeLeft(r){const c=r.previousSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(c,r)}_canMergeRight(r){const c=r.nextSibling;return c instanceof Jr&&this.canMergeWith.has(c)&&this.model.schema.checkMerge(r,c)}_tryAutoparagraphing(r){const c=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,c)&&this.schema.checkChild(c,r)&&(c._appendChild(r),this._handleNode(c))}_checkAndAutoParagraphToAllowedPosition(r){if(this.schema.checkChild(this.position.parent,r))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",r))return!1;this._insertPartialFragment();const c=this.writer.createElement("paragraph");return this.writer.insert(c,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=c,this.position=this.writer.createPositionAt(c,0),!0}_checkAndSplitToAllowedPosition(r){const c=this._getAllowedIn(this.position.parent,r);if(!c)return!1;for(c!=this.position.parent&&this._insertPartialFragment();c!=this.position.parent;)if(this.position.isAtStart){const u=this.position.parent;this.position=this.writer.createPositionBefore(u),u.isEmpty&&u.parent===c&&this.writer.remove(u)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{const u=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=u,this.canMergeWith.add(this.position.nodeAfter)}return!0}_getAllowedIn(r,c){return this.schema.checkChild(r,c)?r:this.schema.isLimit(r)?null:this._getAllowedIn(r.parent,c)}}function v0(m,r,c="auto"){const u=m.getSelectedElement();if(u&&r.schema.isObject(u)&&!r.schema.isInline(u))return"before"==c||"after"==c?r.createRange(r.createPositionAt(u,c)):r.createRangeOn(u);const _=as(m.getSelectedBlocks());if(!_)return r.createRange(m.focus);if(_.isEmpty)return r.createRange(r.createPositionAt(_,0));const x=r.createPositionAfter(_);return m.focus.isTouching(x)?r.createRange(x):r.createRange(r.createPositionBefore(_))}function a4(m,r){const{isForward:c,walker:u,unit:_,schema:x,treatEmojiAsSingleUnit:M}=m,{type:E,item:F,nextPosition:V}=r;if("text"==E)return"word"===m.unit?function(W,dt){let Zt=W.position.textNode;for(Zt||(Zt=dt?W.position.nodeAfter:W.position.nodeBefore);Zt&&Zt.is("$text");){const ue=W.position.offset-Zt.startOffset;if(x0(Zt,ue,dt))Zt=dt?W.position.nodeAfter:W.position.nodeBefore;else{if(s5(Zt.data,ue,dt))break;W.next()}}return W.position}(u,c):function(W,dt,Zt){const ue=W.position.textNode;if(ue){const Ae=ue.data;let Ie=W.position.offset-ue.startOffset;for(;cn(Ae,Ie)||"character"==dt&&hd(Ae,Ie)||Zt&&kl(Ae,Ie);)W.next(),Ie=W.position.offset-ue.startOffset}return W.position}(u,_,M);if(E==(c?"elementStart":"elementEnd")){if(x.isSelectable(F))return to._createAt(F,c?"after":"before");if(x.checkChild(V,"$text"))return V}else{if(x.isLimit(F))return void u.skip(()=>!0);if(x.checkChild(V,"$text"))return V}}function r4(m,r){const u=to._createAt(m.root,r?"end":0);return r?new Si(m,u):new Si(u,m)}function s5(m,r,c){return' ,.?!:;"-()'.includes(m.charAt(r+(c?0:-1)))}function x0(m,r,c){return r===(c?m.offsetSize:0)}class hs extends(Ue()){constructor(){super(),this.markers=new t2,this.document=new n5(this),this.schema=new W3,this._pendingChanges=[],this._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(r=>this.decorate(r)),this.on("applyOperation",(r,c)=>{c[0]._validate()},{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$container",{allowIn:["$root","$container"]}),this.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),this.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),this.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((r,c)=>{if("$marker"===c.name)return!0}),function ah(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.selection,x=u.schema,M=[];let E=!1;for(const F of _.getRanges()){const V=Ga(F,x);V&&!V.isEqual(F)?(M.push(V),E=!0):M.push(F)}return E&&c.setSelection(function(F){const V=[...F],W=new Set;let dt=1;for(;dt!W.has(ue))}(M),{backward:_.isBackward}),!1}(r,m))}(this),this.document.registerPostFixer(eh),this.on("insertContent",(r,[c,u])=>{var _,x,M;r.return=(x=c,M=u,(_=this).change(E=>{const F=M||_.document.selection;F.isCollapsed||_.deleteContent(F,{doNotAutoparagraph:!0});const V=new o4(_,E,F.anchor),W=[];let dt;if(x.is("documentFragment")){if(x.markers.size){const Ae=[];for(const[Ie,ln]of x.markers){const{start:Dn,end:di}=ln,Ri=Dn.isEqual(di);Ae.push({position:Dn,name:Ie,isCollapsed:Ri},{position:di,name:Ie,isCollapsed:Ri})}Ae.sort(({position:Ie},{position:ln})=>Ie.isBefore(ln)?1:-1);for(const{position:Ie,name:ln,isCollapsed:Dn}of Ae){let di=null,Ri=null;const Go=Ie.parent===x&&Ie.isAtStart,Da=Ie.parent===x&&Ie.isAtEnd;Go||Da?Dn&&(Ri=Go?"start":"end"):(di=E.createElement("$marker"),E.insert(di,Ie)),W.push({name:ln,element:di,collapsed:Ri})}}dt=x.getChildren()}else dt=[x];V.handleNodes(dt);let Zt=V.getSelectionRange();if(x.is("documentFragment")&&W.length){const Ae=Zt?Xu.fromRange(Zt):null,Ie={};for(let ln=W.length-1;ln>=0;ln--){const{name:Dn,element:di,collapsed:Ri}=W[ln],Go=!Ie[Dn];if(Go&&(Ie[Dn]=[]),di){const Da=E.createPositionAt(di,"before");Ie[Dn].push(Da),E.remove(di)}else{const Da=V.getAffectedRange();if(!Da){Ri&&Ie[Dn].push(V.position);continue}Ie[Dn].push(Ri?Da[Ri]:Go?Da.start:Da.end)}}for(const[ln,[Dn,di]]of Object.entries(Ie))Dn&&di&&Dn.root===di.root&&E.addMarker(ln,{usingOperation:!0,affectsData:!0,range:new Si(Dn,di)});Ae&&(Zt=Ae.toRange(),Ae.detach())}Zt&&(F instanceof Ou?E.setSelection(Zt):F.setTo(Zt));const ue=V.getAffectedRange()||_.createRange(F.anchor);return V.destroy(),ue}))}),this.on("insertObject",(r,[c,u,_])=>{r.return=function mu(m,r,c,u={}){if(!m.schema.isObject(r))throw new nt("insertobject-element-not-an-object",m,{object:r});const _=c||m.document.selection;let x=_;u.findOptimalPosition&&m.schema.isBlock(r)&&(x=m.createSelection(v0(_,m,u.findOptimalPosition)));const M=as(_.getSelectedBlocks()),E={};return M&&Object.assign(E,m.schema.getAttributesWithProperty(M,"copyOnReplace",!0)),m.change(F=>{x.isCollapsed||m.deleteContent(x,{doNotAutoparagraph:!0});let V=r;const W=x.anchor.parent;!m.schema.checkChild(W,r)&&m.schema.checkChild(W,"paragraph")&&m.schema.checkChild("paragraph",r)&&(V=F.createElement("paragraph"),F.insert(r,V)),m.schema.setAllowedAttributes(V,E,F);const dt=m.insertContent(V,x);return dt.isCollapsed||u.setSelection&&function(Zt,ue,Ae,Ie){const ln=Zt.model;if("on"==Ae)return void Zt.setSelection(ue,"on");if("after"!=Ae)throw new nt("insertobject-invalid-place-parameter-value",ln);let Dn=ue.nextSibling;ln.schema.isInline(ue)?Zt.setSelection(ue,"after"):(!(Dn&&ln.schema.checkChild(Dn,"$text"))&&ln.schema.checkChild(ue.parent,"paragraph")&&(Dn=Zt.createElement("paragraph"),ln.schema.setAllowedAttributes(Dn,Ie,Zt),ln.insertContent(Dn,Zt.createPositionAfter(ue))),Dn&&Zt.setSelection(Dn,0))}(F,r,u.setSelection,E),dt})}(this,c,u,_)}),this.on("canEditAt",r=>{const c=!this.document.isReadOnly;r.return=c,c||r.stop()})}change(r){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new _m,callback:r}),this._runPendingChanges()[0]):r(this._currentWriter)}catch(c){nt.rethrowUnexpectedError(c,this)}}enqueueChange(r,c){try{r?"function"==typeof r?(c=r,r=new _m):r instanceof _m||(r=new _m(r)):r=new _m,this._pendingChanges.push({batch:r,callback:c}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(u){nt.rethrowUnexpectedError(u,this)}}applyOperation(r){r._execute()}insertContent(r,c,u,..._){const x=e2(c,u);return this.fire("insertContent",[r,x,u,..._])}insertObject(r,c,u,_,...x){const M=e2(c,u);return this.fire("insertObject",[r,M,_,_,...x])}deleteContent(r,c){Ah(this,r,c)}modifySelection(r,c){!function(u,_,x={}){const M=u.schema,E="backward"!=x.direction,F=x.unit?x.unit:"character",V=!!x.treatEmojiAsSingleUnit,dt=new Gd({boundaries:r4(_.focus,E),singleCharacters:!0,direction:E?"forward":"backward"}),Zt={walker:dt,schema:M,isForward:E,unit:F,treatEmojiAsSingleUnit:V};let ue;for(;ue=dt.next();){if(ue.done)return;const Ae=a4(Zt,ue.value);if(Ae)return void(_ instanceof Ou?u.change(Ie=>{Ie.setSelectionFocus(Ae)}):_.setFocus(Ae))}}(this,r,c)}getSelectedContent(r){return u=r,this.change(_=>{const x=_.createDocumentFragment(),M=u.getFirstRange();if(!M||M.isCollapsed)return x;const E=M.start.root,F=M.start.getCommonPath(M.end),V=E.getNodeByPath(F);let W;W=M.start.parent==M.end.parent?M:_.createRange(_.createPositionAt(V,M.start.path[F.length]),_.createPositionAt(V,M.end.path[F.length]+1));const dt=W.end.offset-W.start.offset;for(const Zt of W.getItems({shallow:!0}))Zt.is("$textProxy")?_.appendText(Zt.data,Zt.getAttributes(),x):_.append(_.cloneElement(Zt,!0),x);if(W!=M){const Zt=M._getTransformedByMove(W.start,_.createPositionAt(x,0),dt)[0],ue=_.createRange(_.createPositionAt(x,0),Zt.start);sf(_.createRange(Zt.end,_.createPositionAt(x,"end")),_),sf(ue,_)}return x});var u}hasContent(r,c={}){const u=r instanceof Si?r:Si._createIn(r);if(u.isCollapsed)return!1;const{ignoreWhitespaces:_=!1,ignoreMarkers:x=!1}=c;if(!x)for(const M of this.markers.getMarkersIntersectingRange(u))if(M.affectsData)return!0;for(const M of u.getItems())if(this.schema.isContent(M)&&(!M.is("$textProxy")||!_||-1!==M.data.search(/\S/)))return!0;return!1}canEditAt(r){const c=e2(r);return this.fire("canEditAt",[c])}createPositionFromPath(r,c,u){return new to(r,c,u)}createPositionAt(r,c){return to._createAt(r,c)}createPositionAfter(r){return to._createAfter(r)}createPositionBefore(r){return to._createBefore(r)}createRange(r,c){return new Si(r,c)}createRangeIn(r){return Si._createIn(r)}createRangeOn(r){return Si._createOn(r)}createSelection(...r){return new Ud(...r)}createBatch(r){return new _m(r)}createOperationFromJSON(r){return class Z1{static fromJSON(r,c){return pu[r.__className].fromJSON(r,c)}}.fromJSON(r,this.document)}destroy(){this.document.destroy(),this.stopListening()}_runPendingChanges(){const r=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){this._currentWriter=new rf(this,this._pendingChanges[0].batch);const u=this._pendingChanges[0].callback(this._currentWriter);r.push(u),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges")}return r}}function e2(m,r){if(m)return m instanceof Ud||m instanceof Ou?m:m instanceof oc?r||0===r?new Ud(m,r):m.is("rootElement")?new Ud(m,"in"):new Ud(m,"on"):new Ud(m)}class s4 extends Wu{constructor(){super(...arguments),this.domEventType="click"}onDomEvent(r){this.fire(r.type,r)}}class C0 extends Wu{constructor(){super(...arguments),this.domEventType=["mousedown","mouseup","mouseover","mouseout"]}onDomEvent(r){this.fire(r.type,r)}}class W1{constructor(r){this.document=r}createDocumentFragment(r){return new Td(this.document,r)}createElement(r,c,u){return new Xc(this.document,r,c,u)}createText(r){return new Eo(this.document,r)}clone(r,c=!1){return r._clone(c)}appendChild(r,c){return c._appendChild(r)}insertChild(r,c,u){return u._insertChild(r,c)}removeChildren(r,c,u){return u._removeChildren(r,c)}remove(r){const c=r.parent;return c?this.removeChildren(c.getChildIndex(r),1,c):[]}replace(r,c){const u=r.parent;if(u){const _=u.getChildIndex(r);return this.removeChildren(_,1,u),this.insertChild(_,c,u),!0}return!1}unwrapElement(r){const c=r.parent;if(c){const u=c.getChildIndex(r);this.remove(r),this.insertChild(u,r.getChildren(),c)}}rename(r,c){const u=new Xc(this.document,r,c.getAttributes(),c.getChildren());return this.replace(c,u)?u:null}setAttribute(r,c,u){u._setAttribute(r,c)}removeAttribute(r,c){c._removeAttribute(r)}addClass(r,c){c._addClass(r)}removeClass(r,c){c._removeClass(r)}setStyle(r,c,u){Xe(r)&&void 0===u?c._setStyle(r):u._setStyle(r,c)}removeStyle(r,c){c._removeStyle(r)}setCustomProperty(r,c,u){u._setCustomProperty(r,c)}removeCustomProperty(r,c){return c._removeCustomProperty(r)}createPositionAt(r,c){return Uo._createAt(r,c)}createPositionAfter(r){return Uo._createAfter(r)}createPositionBefore(r){return Uo._createBefore(r)}createRange(r,c){return new Ma(r,c)}createRangeOn(r){return Ma._createOn(r)}createRangeIn(r){return Ma._createIn(r)}createSelection(...r){return new ju(...r)}}class c4{constructor(){this._commands=new Map}add(r,c){this._commands.set(r,c)}get(r){return this._commands.get(r)}execute(r,...c){const u=this.get(r);if(!u)throw new nt("commandcollection-command-not-found",this,{commandName:r});return u.execute(...c)}*names(){yield*this._commands.keys()}*commands(){yield*this._commands.values()}[Symbol.iterator](){return this._commands[Symbol.iterator]()}destroy(){for(const r of this.commands())r.destroy()}}class l4 extends(Ue()){constructor(r={}){super();const c=this.constructor;this._context=r.context||new M2({language:r.language||c.defaultConfig&&c.defaultConfig.language}),this._context._addEditor(this,!r.context);const _=Array.from(c.builtinPlugins||[]);this.config=new nr(r,c.defaultConfig),this.config.define("plugins",_),this.config.define(this._context._getEditorConfig()),this.plugins=new Ef(this,_,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this._readOnlyLocks=new Set,this.commands=new c4,this.set("state","initializing"),this.once("ready",()=>this.state="ready",{priority:"high"}),this.once("destroy",()=>this.state="destroyed",{priority:"high"}),this.model=new hs,this.on("change:isReadOnly",()=>{this.model.document.isReadOnly=this.isReadOnly});const x=new Lg;this.data=new $_(this.model,x),this.editing=new um(this.model,x),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new Os([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Wp(this),this.keystrokes.listenTo(this.editing.view.document)}get isReadOnly(){return this._readOnlyLocks.size>0}set isReadOnly(r){throw new nt("editor-isreadonly-has-no-setter")}enableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new nt("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)||(this._readOnlyLocks.add(r),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}disableReadOnlyMode(r){if("string"!=typeof r&&"symbol"!=typeof r)throw new nt("editor-read-only-lock-id-invalid",null,{lockId:r});this._readOnlyLocks.has(r)&&(this._readOnlyLocks.delete(r),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}initPlugins(){const r=this.config,c=r.get("plugins"),u=r.get("removePlugins")||[],_=r.get("extraPlugins")||[],x=r.get("substitutePlugins")||[];return this.plugins.init(c.concat(_),u,x)}destroy(){let r=Promise.resolve();return"initializing"==this.state&&(r=new Promise(c=>this.once("ready",c))),r.then(()=>{this.fire("destroy"),this.stopListening(),this.commands.destroy()}).then(()=>this.plugins.destroy()).then(()=>{this.model.destroy(),this.data.destroy(),this.editing.destroy(),this.keystrokes.destroy()}).then(()=>this._context._removeEditor(this))}execute(r,...c){try{return this.commands.execute(r,...c)}catch(u){nt.rethrowUnexpectedError(u,this)}}focus(){this.editing.view.focus()}static create(...r){throw new Error("This is an abstract method.")}}function n2(m){return class extends m{setData(r){this.data.set(r)}getData(r){return this.data.get(r)}}}{const m=n2(Object);n2.setData=m.prototype.setData,n2.getData=m.prototype.getData}function cf(m){return class extends m{updateSourceElement(r=this.data.get()){if(!this.sourceElement)throw new nt("editor-missing-sourceelement",this);const c=this.config.get("updateSourceElementOnDestroy"),u=this.sourceElement instanceof HTMLTextAreaElement;!function Ti(m,r){m instanceof HTMLTextAreaElement&&(m.value=r),m.innerHTML=r}(this.sourceElement,c||u?r:"")}}}cf.updateSourceElement=cf(Object).prototype.updateSourceElement;class Th extends w_{static get pluginName(){return"PendingActions"}init(){this.set("hasAny",!1),this._actions=new ec({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}add(r){if("string"!=typeof r)throw new nt("pendingactions-add-invalid-message",this);const c=new(Ue());return c.set("message",r),this._actions.add(c),this.hasAny=!0,c}remove(r){this._actions.remove(r),this.hasAny=!!this._actions.length}get first(){return this._actions.get(0)}[Symbol.iterator](){return this._actions[Symbol.iterator]()}}const gs={bold:' ',cancel:' ',caption:' ',check:' ',cog:' ',eraser:' ',history:' ',image:' ',lowVision:' ',loupe:' ',importExport:' ',paragraph:' ',plus:' ',text:' ',alignBottom:' ',alignMiddle:' ',alignTop:' ',alignLeft:' ',alignCenter:' ',alignRight:' ',alignJustify:' ',objectLeft:' ',objectCenter:' ',objectRight:' ',objectFullWidth:' ',objectInline:' ',objectBlockLeft:' ',objectBlockRight:' ',objectSizeFull:' ',objectSizeLarge:' ',objectSizeSmall:' ',objectSizeMedium:' ',pencil:' ',pilcrow:' ',quote:' ',threeVerticalDots:' ',dragIndicator:' '};var A0=v(5542);No()(A0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const{threeVerticalDots:o2}=gs,y0={alignLeft:gs.alignLeft,bold:gs.bold,importExport:gs.importExport,paragraph:gs.paragraph,plus:gs.plus,text:gs.text,threeVerticalDots:gs.threeVerticalDots,pilcrow:gs.pilcrow,dragIndicator:gs.dragIndicator};class T0 extends oa{constructor(r,c){super(r);const u=this.bindTemplate,_=this.t;this.options=c||{},this.set("ariaLabel",_("Editor toolbar")),this.set("maxWidth","auto"),this.items=this.createCollection(),this.focusTracker=new rs,this.keystrokes=new $c,this.set("class",void 0),this.set("isCompact",!1),this.itemsView=new Bs(r),this.children=this.createCollection(),this.children.add(this.itemsView),this.focusables=this.createCollection();const x="rtl"===r.uiLanguageDirection;this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:[x?"arrowright":"arrowleft","arrowup"],focusNext:[x?"arrowleft":"arrowright","arrowdown"]}});const M=["ck","ck-toolbar",u.to("class"),u.if("isCompact","ck-toolbar_compact")];var E;this.options.shouldGroupWhenFull&&this.options.isFloating&&M.push("ck-toolbar_floating"),this.setTemplate({tag:"div",attributes:{class:M,role:"toolbar","aria-label":u.to("ariaLabel"),style:{maxWidth:u.to("maxWidth")},tabindex:-1},children:this.children,on:{mousedown:(E=this,E.bindTemplate.to(F=>{F.target===E.element&&F.preventDefault()}))}}),this._behavior=this.options.shouldGroupWhenFull?new u4(this):new qc(this)}render(){super.render(),this.focusTracker.add(this.element);for(const r of this.items)this.focusTracker.add(r.element);this.items.on("add",(r,c)=>{this.focusTracker.add(c.element)}),this.items.on("remove",(r,c)=>{this.focusTracker.remove(c.element)}),this.keystrokes.listenTo(this.element),this._behavior.render(this)}destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),super.destroy()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}fillFromConfig(r,c,u){this.items.addMany(this._buildItemsFromConfig(r,c,u))}_buildItemsFromConfig(r,c,u){const _=_p(r),x=u||_.removeItems;return this._cleanItemsConfiguration(_.items,c,x).map(M=>Wt(M)?this._createNestedToolbarDropdown(M,c,x):"|"===M?new dl:"-"===M?new Z2:c.create(M)).filter(M=>!!M)}_cleanItemsConfiguration(r,c,u){const _=r.filter((x,M,E)=>"|"===x||-1===u.indexOf(x)&&("-"===x?!this.options.shouldGroupWhenFull||(Tt("toolbarview-line-break-ignored-when-grouping-items",E),!1):!(!Wt(x)&&!c.has(x)&&(Tt("toolbarview-item-unavailable",{item:x}),1))));return this._cleanSeparatorsAndLineBreaks(_)}_cleanSeparatorsAndLineBreaks(r){const c=M=>"-"!==M&&"|"!==M,u=r.length,_=r.findIndex(c);if(-1===_)return[];const x=u-r.slice().reverse().findIndex(c);return r.slice(_,x).filter((M,E,F)=>!!c(M)||!(E>0&&F[E-1]===M))}_createNestedToolbarDropdown(r,c,u){let{label:_,icon:x,items:M,tooltip:E=!0,withText:F=!1}=r;if(M=this._cleanItemsConfiguration(M,c,u),!M.length)return null;const V=Lp(this.locale);return _||Tt("toolbarview-nested-toolbar-dropdown-missing-label",r),V.class="ck-toolbar__nested-toolbar-dropdown",V.buttonView.set({label:_,tooltip:E,withText:!!F}),!1!==x?V.buttonView.icon=y0[x]||x||o2:V.buttonView.withText=!0,e_(V,()=>V.toolbarView._buildItemsFromConfig(M,c,u)),V}}class Bs extends oa{constructor(r){super(r),this.children=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:this.children})}}class qc{constructor(r){const c=r.bindTemplate;r.set("isVertical",!1),r.itemsView.children.bindTo(r.items).using(u=>u),r.focusables.bindTo(r.items).using(u=>u),r.extendTemplate({attributes:{class:[c.if("isVertical","ck-toolbar_vertical")]}})}render(){}destroy(){}}class u4{constructor(r){this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,this.view=r,this.viewChildren=r.children,this.viewFocusables=r.focusables,this.viewItemsView=r.itemsView,this.viewFocusTracker=r.focusTracker,this.viewLocale=r.locale,this.ungroupedItems=r.createCollection(),this.groupedItems=r.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),r.itemsView.children.bindTo(this.ungroupedItems).using(c=>c),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),r.children.on("change",this._updateFocusCycleableItems.bind(this)),r.items.on("change",(c,u)=>{const _=u.index,x=Array.from(u.added);for(const M of u.removed)_>=this.ungroupedItems.length?this.groupedItems.remove(M):this.ungroupedItems.remove(M);for(let M=_;M<_+x.length;M++){const E=x[M-_];M>this.ungroupedItems.length?this.groupedItems.add(E,M-this.ungroupedItems.length):this.ungroupedItems.add(E,M)}this._updateGrouping()}),r.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}render(r){this.viewElement=r.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(r)}destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}_updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!ra(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);const r=this.groupedItems.length;let c;for(;this._areItemsOverflowing;)this._groupLastItem(),c=!0;if(!c&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==r&&this.view.fire("groupedItemsUpdate")}get _areItemsOverflowing(){if(!this.ungroupedItems.length)return!1;const r=this.viewElement,c=this.viewLocale.uiLanguageDirection,u=new ce(r.lastChild),_=new ce(r);if(!this.cachedPadding){const x=Mt.window.getComputedStyle(r);this.cachedPadding=Number.parseInt(x["ltr"===c?"paddingRight":"paddingLeft"])}return"ltr"===c?u.right>_.right-this.cachedPadding:u.left<_.left+this.cachedPadding}_enableGroupingOnResize(){let r;this.resizeObserver=new yi(this.viewElement,c=>{r&&r===c.contentRect.width&&!this.shouldUpdateGroupingOnNextResize||(this.shouldUpdateGroupingOnNextResize=!1,this._updateGrouping(),r=c.contentRect.width)}),this._updateGrouping()}_enableGroupingOnMaxWidthChange(r){r.on("change:maxWidth",()=>{this._updateGrouping()})}_groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new dl),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0)}_ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element))}_createGroupedItemsDropdown(){const r=this.viewLocale,c=r.t,u=Lp(r);return u.class="ck-toolbar__grouped-dropdown",u.panelPosition="ltr"===r.uiLanguageDirection?"sw":"se",e_(u,this.groupedItems),u.buttonView.set({label:c("Show more items"),tooltip:!0,tooltipPosition:"rtl"===r.uiLanguageDirection?"se":"sw",icon:o2}),u}_updateFocusCycleableItems(){this.viewFocusables.clear(),this.ungroupedItems.map(r=>{this.viewFocusables.add(r)}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}class a2 extends oa{constructor(r){super(r);const c=this.bindTemplate,u=`ck-editor__label_${Pt()}`,_=new d4(r);this.children=this.createCollection(),this.children.addMany([this._createLabel(u),_]),this.set({label:"",isVisible:!0}),_.set({role:"group",ariaLabelledBy:u}),_.focusTracker.destroy(),_.keystrokes.destroy(),this.items=_.items,this.setTemplate({tag:"li",attributes:{role:"presentation",class:["ck","ck-list__group",c.if("isVisible","ck-hidden",x=>!x)]},children:this.children})}_createLabel(r){const c=new oa(this.locale);return c.setTemplate({tag:"span",attributes:{id:r},children:[{text:this.bindTemplate.to("label")}]}),c}focus(){this.items.first&&this.items.first.focus()}}var r2=v(1046);No()(r2.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class d4 extends oa{constructor(r){super(r),this._listItemGroupToChangeListeners=new WeakMap;const c=this.bindTemplate;this.focusables=new Na,this.items=this.createCollection(),this.focusTracker=new rs,this.keystrokes=new $c,this._focusCycler=new ul({focusables:this.focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),this.set("ariaLabel",void 0),this.set("ariaLabelledBy",void 0),this.set("role",void 0),this.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],role:c.to("role"),"aria-label":c.to("ariaLabel"),"aria-labelledby":c.to("ariaLabelledBy")},children:this.items})}render(){super.render();for(const r of this.items)r instanceof a2?this._registerFocusableItemsGroup(r):this._registerFocusableListItem(r);this.items.on("change",(r,c)=>{for(const u of c.removed)u instanceof a2?this._deregisterFocusableItemsGroup(u):this._deregisterFocusableListItem(u);for(const u of Array.from(c.added).reverse())u instanceof a2?this._registerFocusableItemsGroup(u,c.index):this._registerFocusableListItem(u,c.index)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}_registerFocusableListItem(r,c){this.focusTracker.add(r.element),this.focusables.add(r,c)}_deregisterFocusableListItem(r){this.focusTracker.remove(r.element),this.focusables.remove(r)}_getOnGroupItemsChangeCallback(r){return(c,u)=>{for(const _ of u.removed)this._deregisterFocusableListItem(_);for(const _ of Array.from(u.added).reverse())this._registerFocusableListItem(_,this.items.getIndex(r)+u.index)}}_registerFocusableItemsGroup(r,c){Array.from(r.items).forEach((_,x)=>{this._registerFocusableListItem(_,void 0!==c?c+x:void 0)});const u=this._getOnGroupItemsChangeCallback(r);this._listItemGroupToChangeListeners.set(r,u),r.items.on("change",u)}_deregisterFocusableItemsGroup(r){for(const c of r.items)this._deregisterFocusableListItem(c);r.items.off("change",this._listItemGroupToChangeListeners.get(r)),this._listItemGroupToChangeListeners.delete(r)}}class Uh extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isVisible",!0),this.children=this.createCollection(),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",c.if("isVisible","ck-hidden",u=>!u)],role:"presentation"},children:this.children})}focus(){this.children.first&&this.children.first.focus()}}class Sp extends oa{constructor(r){super(r),this.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}})}}var bm=v(7686);No()(bm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class p4 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("class",void 0),this.set("labelStyle",void 0),this.set("icon",void 0),this.set("isEnabled",!0),this.set("isOn",!1),this.set("isToggleable",!1),this.set("isVisible",!0),this.set("keystroke",void 0),this.set("withKeystroke",!1),this.set("label",void 0),this.set("tabindex",-1),this.set("tooltip",!1),this.set("tooltipPosition","s"),this.set("type","button"),this.set("withText",!1),this.children=this.createCollection(),this.actionView=this._createActionView(),this.arrowView=this._createArrowView(),this.keystrokes=new $c,this.focusTracker=new rs,this.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",c.to("class"),c.if("isVisible","ck-hidden",u=>!u),this.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:this.children})}render(){super.render(),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(r,c)=>{this.focusTracker.focusedElement===this.actionView.element&&(this.arrowView.focus(),c())}),this.keystrokes.set("arrowleft",(r,c)=>{this.focusTracker.focusedElement===this.arrowView.element&&(this.actionView.focus(),c())})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this.actionView.focus()}_createActionView(){const r=new $o;return r.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),r.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),r.delegate("execute").to(this),r}_createArrowView(){const r=new $o,c=r.bindTemplate;return r.icon=xd,r.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":c.to("isOn"),"aria-haspopup":!0,"aria-expanded":c.to("isOn",u=>String(u))}}),r.bind("isEnabled").to(this),r.bind("label").to(this),r.bind("tooltip").to(this),r.delegate("execute").to(this,"open"),r}}var Mh=v(7339);No()(Mh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vm=v(3949);function Lp(m,r=x1){const c=new r(m),u=new y_(m),_=new Uu(m,c,u);return c.bind("isEnabled").to(_),c instanceof p4?c.arrowView.bind("isOn").to(_,"isOpen"):c.bind("isOn").to(_,"isOpen"),(M=x=_).on("render",()=>{t({emitter:M,activator:()=>M.isOpen,callback:()=>{M.isOpen=!1},contextElements:()=>[M.element,...M.focusTracker._elements]})}),function(M){M.on("execute",E=>{E.source instanceof ys||(M.isOpen=!1)})}(x),function(M){M.focusTracker.on("change:isFocused",(E,F,V)=>{M.isOpen&&!V&&(M.isOpen=!1)})}(x),function(M){M.keystrokes.set("arrowdown",(E,F)=>{M.isOpen&&(M.panelView.focus(),F())}),M.keystrokes.set("arrowup",(E,F)=>{M.isOpen&&(M.panelView.focusLast(),F())})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{if(V)return;const W=M.panelView.element;W&&W.contains(Mt.document.activeElement)&&M.buttonView.focus()})}(x),function(M){M.on("change:isOpen",(E,F,V)=>{V&&M.panelView.focus()},{priority:"low"})}(x),_;var x,M}function e_(m,r,c={}){m.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),m.isOpen?n_(m,r,c):m.once("change:isOpen",()=>n_(m,r,c),{priority:"highest"}),c.enableActiveItemFocusOnDropdownOpen&&s2(m,()=>m.toolbarView.items.find(u=>u.isOn))}function n_(m,r,c){const u=m.locale,_=u.t,x=m.toolbarView=new T0(u),M="function"==typeof r?r():r;x.ariaLabel=c.ariaLabel||_("Dropdown toolbar"),c.maxWidth&&(x.maxWidth=c.maxWidth),c.class&&(x.class=c.class),c.isCompact&&(x.isCompact=c.isCompact),c.isVertical&&(x.isVertical=!0),M instanceof Na?x.items.bindTo(M).using(E=>E):x.items.addMany(M),m.panelView.children.add(x),x.items.delegate("execute").to(m)}function t1(m,r,c={}){m.isOpen?Cm(m,r,c):m.once("change:isOpen",()=>Cm(m,r,c),{priority:"highest"}),s2(m,()=>m.listView.items.find(u=>u instanceof Uh&&u.children.first.isOn))}function Cm(m,r,c){const u=m.locale,_=m.listView=new d4(u),x="function"==typeof r?r():r;_.ariaLabel=c.ariaLabel,_.role=c.role,Am(m,_.items,x,u),m.panelView.children.add(_),_.items.delegate("execute").to(m)}function s2(m,r){m.on("change:isOpen",()=>{if(!m.isOpen)return;const c=r();c&&("function"==typeof c.focus?c.focus():Tt("ui-dropdown-focus-child-on-open-child-missing-focus",{view:c}))},{priority:Dt.low-10})}function Am(m,r,c,u){r.bindTo(c).using(_=>{if("separator"===_.type)return new Sp(u);if("group"===_.type){const x=new a2(u);return x.set({label:_.label}),Am(m,x.items,_.items,u),x.items.delegate("execute").to(m),x}if("button"===_.type||"switchbutton"===_.type){const x=new Uh(u);let M;return M="button"===_.type?new $o(u):new ys(u),M.bind(...Object.keys(_.model)).to(_.model),M.delegate("execute").to(x),x.children.add(M),x}return null})}No()(vm.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const lf=(m,r,c)=>{const u=new vg(m.locale);return u.set({id:r,ariaDescribedById:c}),u.bind("isReadOnly").to(m,"isEnabled",_=>!_),u.bind("hasError").to(m,"errorText",_=>!!_),u.on("input",()=>{m.errorText=null}),m.bind("isEmpty","isFocused","placeholder").to(u),u},K1=(m,r=0,c=1)=>m>c?c:mMath.round(c*m)/c,w0=m=>("#"===m[0]&&(m=m.substring(1)),m.length<6?{r:parseInt(m[0]+m[0],16),g:parseInt(m[1]+m[1],16),b:parseInt(m[2]+m[2],16),a:4===m.length?Ol(parseInt(m[3]+m[3],16)/255,2):1}:{r:parseInt(m.substring(0,2),16),g:parseInt(m.substring(2,4),16),b:parseInt(m.substring(4,6),16),a:8===m.length?Ol(parseInt(m.substring(6,8),16)/255,2):1}),X1=m=>{const{h:r,s:c,l:u}=(({h:m,s:r,v:c,a:u})=>{const _=(200-r)*c/100;return{h:Ol(m),s:Ol(_>0&&_<200?r*c/100/(_<=100?_:200-_)*100:0),l:Ol(_/2),a:Ol(u,2)}})(m);return`hsl(${r}, ${c}%, ${u}%)`},kh=m=>{const r=m.toString(16);return r.length<2?"0"+r:r},_4=(m,r)=>{if(m===r)return!0;for(const c in m)if(m[c]!==r[c])return!1;return!0},k0={},D0=m=>{let r=k0[m];return r||(r=document.createElement("template"),r.innerHTML=m,k0[m]=r),r},Dh=(m,r,c)=>{m.dispatchEvent(new CustomEvent(r,{bubbles:!0,detail:c}))};let ym=!1;const P0=m=>"touches"in m,uf=(m,r)=>{const c=P0(r)?r.touches[0]:r,u=m.el.getBoundingClientRect();Dh(m.el,"move",m.getMove({x:K1((c.pageX-(u.left+window.pageXOffset))/u.width),y:K1((c.pageY-(u.top+window.pageYOffset))/u.height)}))};class f4{constructor(r,c,u,_){const x=D0(``);r.appendChild(x.content.cloneNode(!0));const M=r.querySelector(`[part=${c}]`);M.addEventListener("mousedown",this),M.addEventListener("touchstart",this),M.addEventListener("keydown",this),this.el=M,this.xy=_,this.nodes=[M.firstChild,M]}set dragging(r){const c=r?document.addEventListener:document.removeEventListener;c(ym?"touchmove":"mousemove",this),c(ym?"touchend":"mouseup",this)}handleEvent(r){switch(r.type){case"mousedown":case"touchstart":if(r.preventDefault(),c=r,ym&&!P0(c)||(ym||(ym=P0(c)),0)||!ym&&0!=r.button)return;this.el.focus(),uf(this,r),this.dragging=!0;break;case"mousemove":case"touchmove":r.preventDefault(),uf(this,r);break;case"mouseup":case"touchend":this.dragging=!1;break;case"keydown":((c,u)=>{const _=u.keyCode;_>40||c.xy&&_<37||_<33||(u.preventDefault(),Dh(c.el,"move",c.getMove({x:39===_?.01:37===_?-.01:34===_?.05:33===_?-.05:35===_?1:36===_?-1:0,y:40===_?.01:38===_?-.01:0},!0)))})(this,r)}var c}style(r){r.forEach((c,u)=>{for(const _ in c)this.nodes[u].style.setProperty(_,c[_])})}}class L extends f4{constructor(r){super(r,"hue",'aria-label="Hue" aria-valuemin="0" aria-valuemax="360"',!1)}update({h:r}){this.h=r,this.style([{left:r/360*100+"%",color:X1({h:r,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuenow",`${Ol(r)}`)}getMove(r,c){return{h:c?K1(this.h+360*r.x,0,360):360*r.x}}}class R extends f4{constructor(r){super(r,"saturation",'aria-label="Color"',!0)}update(r){this.hsva=r,this.style([{top:100-r.v+"%",left:`${r.s}%`,color:X1(r)},{"background-color":X1({h:r.h,s:100,v:100,a:1})}]),this.el.setAttribute("aria-valuetext",`Saturation ${Ol(r.s)}%, Brightness ${Ol(r.v)}%`)}getMove(r,c){return{s:c?K1(this.hsva.s+100*r.x,0,100):100*r.x,v:c?K1(this.hsva.v-100*r.y,0,100):Math.round(100-100*r.y)}}}const st=Symbol("same"),Qt=Symbol("color"),Ne=Symbol("hsva"),pn=Symbol("update"),zn=Symbol("parts"),si=Symbol("css"),_i=Symbol("sliders");class Wi extends HTMLElement{static get observedAttributes(){return["color"]}get[si](){return[':host{display:flex;flex-direction:column;position:relative;width:200px;height:200px;user-select:none;-webkit-user-select:none;cursor:default}:host([hidden]){display:none!important}[role=slider]{position:relative;touch-action:none;user-select:none;-webkit-user-select:none;outline:0}[role=slider]:last-child{border-radius:0 0 8px 8px}[part$=pointer]{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;display:flex;place-content:center center;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}[part$=pointer]::after{content:"";width:100%;height:100%;border-radius:inherit;background-color:currentColor}[role=slider]:focus [part$=pointer]{transform:translate(-50%,-50%) scale(1.1)}',"[part=hue]{flex:0 0 24px;background:linear-gradient(to right,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red 100%)}[part=hue-pointer]{top:50%;z-index:2}","[part=saturation]{flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(to top,#000,transparent),linear-gradient(to right,#fff,rgba(255,255,255,0));box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}[part=saturation-pointer]{z-index:3}"]}get[_i](){return[R,L]}get color(){return this[Qt]}set color(r){if(!this[st](r)){const c=this.colorModel.toHsva(r);this[pn](c),this[Qt]=r}}constructor(){super();const r=D0(``),c=this.attachShadow({mode:"open"});c.appendChild(r.content.cloneNode(!0)),c.addEventListener("move",this),this[zn]=this[_i].map(u=>new u(c))}connectedCallback(){if(this.hasOwnProperty("color")){const r=this.color;delete this.color,this.color=r}else this.color||(this.color=this.colorModel.defaultColor)}attributeChangedCallback(r,c,u){const _=this.colorModel.fromAttr(u);this[st](_)||(this.color=_)}handleEvent(r){const c=this[Ne],u={...c,...r.detail};let _;this[pn](u),_4(u,c)||this[st](_=this.colorModel.fromHsva(u))||(this[Qt]=_,Dh(this,"color-changed",{value:_}))}[st](r){return this.color&&this.colorModel.equal(r,this.color)}[pn](r){this[Ne]=r,this[zn].forEach(c=>c.update(r))}}const $i={defaultColor:"#000",toHsva:m=>(({r:m,g:r,b:c,a:u})=>{const _=Math.max(m,r,c),x=_-Math.min(m,r,c),M=x?_===m?(r-c)/x:_===r?2+(c-m)/x:4+(m-r)/x:0;return{h:Ol(60*(M<0?M+6:M)),s:Ol(_?x/_*100:0),v:Ol(_/255*100),a:u}})(w0(m)),fromHsva:({h:m,s:r,v:c})=>(({r:m,g:r,b:c,a:u})=>{const _=u<1?kh(Ol(255*u)):"";return"#"+kh(m)+kh(r)+kh(c)+_})((({h:m,s:r,v:c,a:u})=>{m=m/360*6,r/=100,c/=100;const _=Math.floor(m),x=c*(1-r),M=c*(1-(m-_)*r),E=c*(1-(1-m+_)*r),F=_%6;return{r:Ol(255*[c,M,x,x,E,c][F]),g:Ol(255*[E,c,c,M,x,x][F]),b:Ol(255*[x,x,E,c,c,M][F]),a:Ol(u,2)}})({h:m,s:r,v:c,a:1})),equal:(m,r)=>m.toLowerCase()===r.toLowerCase()||_4(w0(m),w0(r)),fromAttr:m=>m};class co extends Wi{get colorModel(){return $i}}customElements.define("hex-color-picker",class extends co{});var Lo=v(3398);No()(Lo.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ue(ec);var xa=v(4157);No()(xa.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class ba{constructor(r){this._components=new Map,this.editor=r}*names(){for(const r of this._components.values())yield r.originalName}add(r,c){this._components.set(Xa(r),{callback:c,originalName:r})}create(r){if(!this.has(r))throw new nt("componentfactory-item-missing",this,{name:r});return this._components.get(Xa(r)).callback(this.editor.locale)}has(r){return this._components.has(Xa(r))}}function Xa(m){return String(m).toLowerCase()}var za=v(8793);No()(za.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var hc=Object.defineProperty,_l=Object.getOwnPropertySymbols,Es=Object.prototype.hasOwnProperty,Ql=Object.prototype.propertyIsEnumerable,_u=(m,r,c)=>r in m?hc(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,_r=(m,r)=>{for(var c in r||(r={}))Es.call(r,c)&&_u(m,c,r[c]);if(_l)for(var c of _l(r))Ql.call(r,c)&&_u(m,c,r[c]);return m};const i_=bo("px"),c2=Mt.document.body,Ph={top:-99999,left:-99999,name:"arrowless",config:{withArrow:!1}},h4=class extends oa{constructor(m){super(m);const r=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("position","arrow_nw"),this.set("isVisible",!1),this.set("withArrow",!0),this.set("class",void 0),this._pinWhenIsVisibleCallback=null,this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",r.to("position",c=>`ck-balloon-panel_${c}`),r.if("isVisible","ck-balloon-panel_visible"),r.if("withArrow","ck-balloon-panel_with-arrow"),r.to("class")],style:{top:r.to("top",i_),left:r.to("left",i_)}},children:this.content})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(m){this.show();const r=h4.defaultPositions,c=Object.assign({},{element:this.element,positions:[r.southArrowNorth,r.southArrowNorthMiddleWest,r.southArrowNorthMiddleEast,r.southArrowNorthWest,r.southArrowNorthEast,r.northArrowSouth,r.northArrowSouthMiddleWest,r.northArrowSouthMiddleEast,r.northArrowSouthWest,r.northArrowSouthEast,r.viewportStickyNorth],limiter:c2,fitInViewport:!0},m),u=h4._getOptimalPosition(c)||Ph,_=parseInt(u.left),x=parseInt(u.top),M=u.name,E=u.config||{},{withArrow:F=!0}=E;this.top=x,this.left=_,this.position=M,this.withArrow=F}pin(m){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(m):this._stopPinning()},this._startPinning(m),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(m){this.attachTo(m);const r=g4(m.target),c=m.limiter?g4(m.limiter):c2;this.listenTo(Mt.document,"scroll",(u,_)=>{const x=_.target,M=r&&x.contains(r),E=c&&x.contains(c);!M&&!E&&r&&c||this.attachTo(m)},{useCapture:!0}),this.listenTo(Mt.window,"resize",()=>{this.attachTo(m)})}_stopPinning(){this.stopListening(Mt.document,"scroll"),this.stopListening(Mt.window,"resize")}};let id=h4;function g4(m){return la(m)?m:jt(m)?m.commonAncestorContainer:"function"==typeof m?g4(m()):null}function b4(m={}){const{sideOffset:r=id.arrowSideOffset,heightOffset:c=id.arrowHeightOffset,stickyVerticalOffset:u=id.stickyVerticalOffset,config:_}=m;return{northWestArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left-r,name:"arrow_sw"},_&&{config:_}),northWestArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northWestArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left-F.width/2,name:"arrow_s"},_&&{config:_}),northWestArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northWestArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left-F.width+r,name:"arrow_se"},_&&{config:_}),northArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-r,name:"arrow_sw"},_&&{config:_}),northArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northArrowSouth:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width/2,name:"arrow_s"},_&&{config:_}),northArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.left+E.width/2-F.width+r,name:"arrow_se"},_&&{config:_}),northEastArrowSouthWest:(E,F)=>_r({top:x(E,F),left:E.right-r,name:"arrow_sw"},_&&{config:_}),northEastArrowSouthMiddleWest:(E,F)=>_r({top:x(E,F),left:E.right-.25*F.width-r,name:"arrow_smw"},_&&{config:_}),northEastArrowSouth:(E,F)=>_r({top:x(E,F),left:E.right-F.width/2,name:"arrow_s"},_&&{config:_}),northEastArrowSouthMiddleEast:(E,F)=>_r({top:x(E,F),left:E.right-.75*F.width+r,name:"arrow_sme"},_&&{config:_}),northEastArrowSouthEast:(E,F)=>_r({top:x(E,F),left:E.right-F.width+r,name:"arrow_se"},_&&{config:_}),southWestArrowNorthWest:E=>_r({top:M(E),left:E.left-r,name:"arrow_nw"},_&&{config:_}),southWestArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.left-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southWestArrowNorth:(E,F)=>_r({top:M(E),left:E.left-F.width/2,name:"arrow_n"},_&&{config:_}),southWestArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southWestArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left-F.width+r,name:"arrow_ne"},_&&{config:_}),southArrowNorthWest:E=>_r({top:M(E),left:E.left+E.width/2-r,name:"arrow_nw"},_&&{config:_}),southArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.left+E.width/2-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southArrowNorth:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width/2,name:"arrow_n"},_&&{config:_}),southArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southArrowNorthEast:(E,F)=>_r({top:M(E),left:E.left+E.width/2-F.width+r,name:"arrow_ne"},_&&{config:_}),southEastArrowNorthWest:E=>_r({top:M(E),left:E.right-r,name:"arrow_nw"},_&&{config:_}),southEastArrowNorthMiddleWest:(E,F)=>_r({top:M(E),left:E.right-.25*F.width-r,name:"arrow_nmw"},_&&{config:_}),southEastArrowNorth:(E,F)=>_r({top:M(E),left:E.right-F.width/2,name:"arrow_n"},_&&{config:_}),southEastArrowNorthMiddleEast:(E,F)=>_r({top:M(E),left:E.right-.75*F.width+r,name:"arrow_nme"},_&&{config:_}),southEastArrowNorthEast:(E,F)=>_r({top:M(E),left:E.right-F.width+r,name:"arrow_ne"},_&&{config:_}),westArrowEast:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.left-F.width-c,name:"arrow_e"},_&&{config:_}),eastArrowWest:(E,F)=>_r({top:E.top+E.height/2-F.height/2,left:E.right+c,name:"arrow_w"},_&&{config:_}),viewportStickyNorth:(E,F,V,W)=>{const dt=W||V;return E.getIntersection(dt)?dt.height-E.height>u?null:{top:dt.top+u,left:E.left+E.width/2-F.width/2,name:"arrowless",config:_r({withArrow:!1},_)}:null}};function x(E,F){return E.top-F.height-c}function M(E){return E.bottom+c}}id.arrowSideOffset=25,id.arrowHeightOffset=10,id.stickyVerticalOffset=20,id._getOptimalPosition=es,id.defaultPositions=b4();var l5=v(3332);No()(l5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const u5="ck-tooltip",od=class extends(Xi()){constructor(m){if(super(),this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver=null,od._editors.add(m),od._instance)return od._instance;od._instance=this,this.tooltipTextView=new oa(m.locale),this.tooltipTextView.set("text",""),this.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:this.tooltipTextView.bindTemplate.to("text")}]}),this.balloonPanelView=new id(m.locale),this.balloonPanelView.class=u5,this.balloonPanelView.content.add(this.tooltipTextView),this._pinTooltipDebounced=R_(this._pinTooltip,600),this.listenTo(Mt.document,"mouseenter",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"mouseleave",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"focus",this._onEnterOrFocus.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"blur",this._onLeaveOrBlur.bind(this),{useCapture:!0}),this.listenTo(Mt.document,"scroll",this._onScroll.bind(this),{useCapture:!0}),this._watchdogExcluded=!0}destroy(m){const r=m.ui.view&&m.ui.view.body;od._editors.delete(m),this.stopListening(m.ui),r&&r.has(this.balloonPanelView)&&r.remove(this.balloonPanelView),od._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),od._instance=null)}static getPositioningFunctions(m){const r=od.defaultBalloonPositions;return{s:[r.southArrowNorth,r.southArrowNorthEast,r.southArrowNorthWest],n:[r.northArrowSouth],e:[r.eastArrowWest],w:[r.westArrowEast],sw:[r.southArrowNorthEast],se:[r.southArrowNorthWest]}[m]}_onEnterOrFocus(m,{target:r}){const c=v4(r);var u;c&&c!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(c,{text:(u=c).dataset.ckeTooltipText,position:u.dataset.ckeTooltipPosition||"s",cssClass:u.dataset.ckeTooltipClass||""}))}_onLeaveOrBlur(m,{target:r,relatedTarget:c}){if("mouseleave"===m.name){if(!la(r)||this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;const u=v4(r),_=v4(c);u&&u!==_&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&r!==this._currentElementWithTooltip)return;this._unpinTooltip()}}_onScroll(m,{target:r}){this._currentElementWithTooltip&&(r.contains(this.balloonPanelView.element)&&r.contains(this._currentElementWithTooltip)||this._unpinTooltip())}_pinTooltip(m,{text:r,position:c,cssClass:u}){const _=as(od._editors.values()).ui.view.body;_.has(this.balloonPanelView)||_.add(this.balloonPanelView),this.tooltipTextView.text=r,this.balloonPanelView.pin({target:m,positions:od.getPositioningFunctions(c)}),this._resizeObserver=new yi(m,()=>{ra(m)||this._unpinTooltip()}),this.balloonPanelView.class=[u5,u].filter(x=>x).join(" ");for(const x of od._editors)this.listenTo(x.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});this._currentElementWithTooltip=m,this._currentTooltipPosition=c}_unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();for(const m of od._editors)this.stopListening(m.ui,"update");this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}_updateTooltipPosition(){ra(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:od.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}};let S0=od;function v4(m){return la(m)?m.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}S0.defaultBalloonPositions=b4({heightOffset:5,sideOffset:13}),S0._editors=new Set,S0._instance=null;const Sh=function(m,r,c){var u=!0,_=!0;if("function"!=typeof m)throw new TypeError("Expected a function");return Wt(c)&&(u="leading"in c?!!c.leading:u,_="trailing"in c?!!c.trailing:_),R_(m,r,{leading:u,maxWait:r,trailing:_})};var x4=Object.defineProperty,Mv=Object.getOwnPropertySymbols,d5=Object.prototype.hasOwnProperty,C4=Object.prototype.propertyIsEnumerable,L0=(m,r,c)=>r in m?x4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Dv extends(Xi()){constructor(r){super(),this.editor=r,this._balloonView=null,this._lastFocusedEditableElement=null,this._showBalloonThrottled=Sh(this._showBalloon.bind(this),50,{leading:!0}),r.on("ready",this._handleEditorReady.bind(this))}destroy(){const r=this._balloonView;r&&(r.unpin(),this._balloonView=null),this._showBalloonThrottled.cancel(),this.stopListening()}_handleEditorReady(){const r=this.editor;(r.config.get("ui.poweredBy.forceVisible")||"VALID"!==function(c){function u(ue){return ue.length>=40&&ue.length<=255?"VALID":"INVALID"}if(!c)return"INVALID";let _="";try{_=atob(c)}catch{return"INVALID"}const x=_.split("-"),M=x[0],E=x[1];if(!E)return u(c);try{atob(E)}catch{try{if(atob(M),!atob(M).length)return u(c)}catch{return u(c)}}if(M.length<40||M.length>255)return"INVALID";let F="";try{atob(M),F=atob(E)}catch{return"INVALID"}if(8!==F.length)return"INVALID";const V=Number(F.substring(0,4)),W=Number(F.substring(4,6))-1,dt=Number(F.substring(6,8)),Zt=new Date(V,W,dt);return Zt{this._updateLastFocusedEditableElement(),_?this._showBalloon():this._hideBalloon()}),r.ui.focusTracker.on("change:focusedElement",(c,u,_)=>{this._updateLastFocusedEditableElement(),_&&this._showBalloon()}),r.ui.on("update",()=>{this._showBalloonThrottled()}))}_createBalloonView(){const r=this.editor,c=this._balloonView=new id,u=l2(r),_=new y4(r.locale,u.label);c.content.add(_),c.set({class:"ck-powered-by-balloon"}),r.ui.view.body.add(c),r.ui.focusTracker.add(c.element),this._balloonView=c}_showBalloon(){if(!this._lastFocusedEditableElement)return;const r=function(c,u){const _=l2(c);var E;return{target:u,positions:["right"===_.side?Oh(u,E=_,(F,V)=>F.left+F.width-V.width-E.horizontalOffset):function(M,E){return Oh(M,E,F=>F.left+E.horizontalOffset)}(u,_)]}}(this.editor,this._lastFocusedEditableElement);r&&(this._balloonView||this._createBalloonView(),this._balloonView.pin(r))}_hideBalloon(){this._balloonView&&this._balloonView.unpin()}_updateLastFocusedEditableElement(){const r=this.editor,u=r.ui.focusTracker.focusedElement;if(!r.ui.focusTracker.isFocused||!u)return void(this._lastFocusedEditableElement=null);const _=Array.from(r.ui.getEditableElementsNames()).map(x=>r.ui.getEditableElement(x));this._lastFocusedEditableElement=_.includes(u)?u:_[0]}}class y4 extends oa{constructor(r,c){super(r);const u=new zs,_=this.bindTemplate;u.set({content:' \n',isColorInherited:!1}),u.extendTemplate({attributes:{style:{width:"53px",height:"10px"}}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-powered-by"],"aria-hidden":!0},children:[{tag:"a",attributes:{href:"https://ckeditor.com/?utm_source=ckeditor&utm_medium=referral&utm_campaign=701Dn000000hVgmIAE_powered_by_ckeditor_logo",target:"_blank",tabindex:"-1"},children:[...c?[{tag:"span",attributes:{class:["ck","ck-powered-by__label"]},children:[c]}]:[],u],on:{dragstart:_.to(x=>x.preventDefault())}}]})}}function Oh(m,r,c){return(u,_)=>{const x=new ce(m);if(x.width<350||x.height<50)return null;let M;M="inside"===r.position?x.bottom-_.height:x.bottom-_.height/2,M-=r.verticalOffset;const E=c(x,_),F=u.clone().moveTo(E,M).getIntersection(_.clone().moveTo(E,M)).getVisible();return!F||F.getArea()<_.getArea()?null:{top:M,left:E,name:`position_${r.position}-side_${r.side}`,config:{withArrow:!1}}}}function l2(m){const r=m.config.get("ui.poweredBy"),c=r&&r.position||"border";return((m,r)=>{for(var c in r||(r={}))d5.call(r,c)&&L0(m,c,r[c]);if(Mv)for(var c of Mv(r))C4.call(r,c)&&L0(m,c,r[c]);return m})({position:c,label:"Powered by",verticalOffset:"inside"===c?5:0,horizontalOffset:5,side:"ltr"===m.locale.contentLanguageDirection?"right":"left"},r)}var Pv=Object.defineProperty,e1=Object.getOwnPropertySymbols,T4=Object.prototype.hasOwnProperty,E0=Object.prototype.propertyIsEnumerable,M1=(m,r,c)=>r in m?Pv(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Op extends(Ue()){constructor(r){super(),this.isReady=!1,this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[];const c=r.editing.view;this.editor=r,this.componentFactory=new ba(r),this.focusTracker=new rs,this.tooltipManager=new S0(r),this.poweredBy=new Dv(r),this.set("viewportOffset",this._readViewportOffsetFromConfig()),this.once("ready",()=>{this.isReady=!0}),this.listenTo(c.document,"layoutChanged",this.update.bind(this)),this.listenTo(c,"scrollToTheSelection",this._handleScrollToTheSelection.bind(this)),this._initFocusTracking()}get element(){return null}update(){this.fire("update")}destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor),this.poweredBy.destroy();for(const r of this._editableElementsMap.values())r.ckeditorInstance=null,this.editor.keystrokes.stopListening(r);this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}setEditableElement(r,c){this._editableElementsMap.set(r,c),c.ckeditorInstance||(c.ckeditorInstance=this.editor),this.focusTracker.add(c);const u=()=>{this.editor.editing.view.getDomRoot(r)||this.editor.keystrokes.listenTo(c)};this.isReady?u():this.once("ready",u)}removeEditableElement(r){const c=this._editableElementsMap.get(r);c&&(this._editableElementsMap.delete(r),this.editor.keystrokes.stopListening(c),this.focusTracker.remove(c),c.ckeditorInstance=null)}getEditableElement(r="main"){return this._editableElementsMap.get(r)}getEditableElementsNames(){return this._editableElementsMap.keys()}addToolbar(r,c={}){r.isRendered?(this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)):r.once("render",()=>{this.focusTracker.add(r.element),this.editor.keystrokes.listenTo(r.element)}),this._focusableToolbarDefinitions.push({toolbarView:r,options:c})}get _editableElements(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}_readViewportOffsetFromConfig(){const r=this.editor,c=r.config.get("ui.viewportOffset");if(c)return c;const u=r.config.get("toolbar.viewportTopOffset");return u?(console.warn("editor-ui-deprecated-viewport-offset-config: The `toolbar.vieportTopOffset` configuration option is deprecated. It will be removed from future CKEditor versions. Use `ui.viewportOffset.top` instead."),{top:u}):{top:0}}_initFocusTracking(){const r=this.editor,c=r.editing.view;let u,_;r.keystrokes.set("Alt+F10",(x,M)=>{const E=this.focusTracker.focusedElement;Array.from(this._editableElementsMap.values()).includes(E)&&!Array.from(c.domRoots.values()).includes(E)&&(u=E);const F=this._getCurrentFocusedToolbarDefinition();F&&_||(_=this._getFocusableCandidateToolbarDefinitions());for(let V=0;V<_.length;V++){const W=_.shift();if(_.push(W),W!==F&&this._focusFocusableCandidateToolbar(W)){F&&F.options.afterBlur&&F.options.afterBlur();break}}M()}),r.keystrokes.set("Esc",(x,M)=>{const E=this._getCurrentFocusedToolbarDefinition();E&&(u?(u.focus(),u=null):r.editing.view.focus(),E.options.afterBlur&&E.options.afterBlur(),M())})}_getFocusableCandidateToolbarDefinitions(){const r=[];for(const c of this._focusableToolbarDefinitions){const{toolbarView:u,options:_}=c;(ra(u.element)||_.beforeFocus)&&r.push(c)}return r.sort((c,u)=>Sv(c)-Sv(u)),r}_getCurrentFocusedToolbarDefinition(){for(const r of this._focusableToolbarDefinitions)if(r.toolbarView.element&&r.toolbarView.element.contains(this.focusTracker.focusedElement))return r;return null}_focusFocusableCandidateToolbar(r){const{toolbarView:c,options:{beforeFocus:u}}=r;return u&&u(),!!ra(c.element)&&(c.focus(),!0)}_handleScrollToTheSelection(r,c){const u=((_,x)=>{for(var M in x||(x={}))T4.call(x,M)&&M1(_,M,x[M]);if(e1)for(var M of e1(x))E0.call(x,M)&&M1(_,M,x[M]);return _})({top:0,bottom:0,left:0,right:0},this.viewportOffset);c.viewportOffset.top+=u.top,c.viewportOffset.bottom+=u.bottom,c.viewportOffset.left+=u.left,c.viewportOffset.right+=u.right}}function Sv(m){const{toolbarView:r,options:c}=m;let u=10;return ra(r.element)&&u--,c.isContextual&&u--,u}var w4=v(9688);No()(w4.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class m5 extends oa{constructor(r){super(r),this.body=new Qi(r)}render(){super.render(),this.body.attachToDom()}destroy(){return this.body.detachFromDom(),super.destroy()}}class Lv extends m5{constructor(r){super(r),this.top=this.createCollection(),this.main=this.createCollection(),this._voiceLabelView=this._createVoiceLabel(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:r.uiLanguageDirection,lang:r.uiLanguage,"aria-labelledby":this._voiceLabelView.id},children:[this._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:this.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:this.main}]})}_createVoiceLabel(){const r=this.t,c=new wu;return c.text=r("Rich Text Editor"),c.extendTemplate({attributes:{class:"ck-voice-label"}}),c}}class M8 extends oa{constructor(r,c,u){super(r),this.name=null,this.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:r.contentLanguage,dir:r.contentLanguageDirection}}),this.set("isFocused",!1),this._editableElement=u,this._hasExternalElement=!!this._editableElement,this._editingView=c}render(){super.render(),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",()=>this._updateIsFocusedClasses()),this._updateIsFocusedClasses()}destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),super.destroy()}get hasExternalElement(){return this._hasExternalElement}_updateIsFocusedClasses(){const r=this._editingView;function c(u){r.change(_=>{const x=r.document.getRoot(u.name);_.addClass(u.isFocused?"ck-focused":"ck-blurred",x),_.removeClass(u.isFocused?"ck-blurred":"ck-focused",x)})}r.isRenderingInProgress?function u(_){r.once("change:isRenderingInProgress",(x,M,E)=>{E?u(_):c(_)})}(this):c(this)}}class U4 extends M8{constructor(r,c,u,_={}){super(r,c,u);const x=r.t;this.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),this._generateLabel=_.label||(()=>x("Editor editing area: %0",this.name))}render(){super.render();const r=this._editingView;r.change(c=>{const u=r.document.getRoot(this.name);c.setAttribute("aria-label",this._generateLabel(this),u)})}}var Eh=v(8847);No()(Eh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class u2 extends w_{static get pluginName(){return"Notification"}init(){this.on("show:warning",(r,c)=>{window.alert(c.message)},{priority:"lowest"})}showSuccess(r,c={}){this._showNotification({message:r,type:"success",namespace:c.namespace,title:c.title})}showInfo(r,c={}){this._showNotification({message:r,type:"info",namespace:c.namespace,title:c.title})}showWarning(r,c={}){this._showNotification({message:r,type:"warning",namespace:c.namespace,title:c.title})}_showNotification(r){this.fire(r.namespace?`show:${r.type}:${r.namespace}`:`show:${r.type}`,{message:r.message,type:r.type,title:r.title||""})}}class Z4 extends(Ue()){constructor(r,c){super(),c&&q2(this,c),r&&this.set(r)}}var N0=v(4650);No()(N0.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var df=v(7676);No()(df.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Ih=bo("px");class F0 extends lo{constructor(r){super(r),this._viewToStack=new Map,this._idToStack=new Map,this._view=null,this._rotatorView=null,this._fakePanelsView=null,this.positionLimiter=()=>{const c=this.editor.editing.view,u=c.document.selection.editableElement;return u?c.domConverter.mapViewToDom(u.root):null},this.set("visibleView",null),this.set("_numberOfStacks",0),this.set("_singleViewMode",!1)}static get pluginName(){return"ContextualBalloon"}destroy(){super.destroy(),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy()}get view(){return this._view||this._createPanelView(),this._view}hasView(r){return Array.from(this._viewToStack.keys()).includes(r)}add(r){if(this._view||this._createPanelView(),this.hasView(r.view))throw new nt("contextualballoon-add-view-exist",[this,r]);const c=r.stackId||"main";if(!this._idToStack.has(c))return this._idToStack.set(c,new Map([[r.view,r]])),this._viewToStack.set(r.view,this._idToStack.get(c)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!r.singleViewMode||this.showStack(c));const u=this._idToStack.get(c);r.singleViewMode&&this.showStack(c),u.set(r.view,r),this._viewToStack.set(r.view,u),u===this._visibleStack&&this._showView(r)}remove(r){if(!this.hasView(r))throw new nt("contextualballoon-remove-view-not-exist",[this,r]);const c=this._viewToStack.get(r);this._singleViewMode&&this.visibleView===r&&(this._singleViewMode=!1),this.visibleView===r&&(1===c.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(c.values())[c.size-2])),1===c.size?(this._idToStack.delete(this._getStackId(c)),this._numberOfStacks=this._idToStack.size):c.delete(r),this._viewToStack.delete(r)}updatePosition(r){r&&(this._visibleStack.get(this.visibleView).position=r),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}showStack(r){this.visibleStack=r;const c=this._idToStack.get(r);if(!c)throw new nt("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==c&&this._showView(Array.from(c.values()).pop())}_createPanelView(){this._view=new id(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView()}get _visibleStack(){return this._viewToStack.get(this.visibleView)}_getStackId(r){return Array.from(this._idToStack.entries()).find(c=>c[1]===r)[0]}_showNextStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)+1;r[c]||(c=0),this.showStack(this._getStackId(r[c]))}_showPrevStack(){const r=Array.from(this._idToStack.values());let c=r.indexOf(this._visibleStack)-1;r[c]||(c=r.length-1),this.showStack(this._getStackId(r[c]))}_createRotatorView(){const r=new Ov(this.editor.locale),c=this.editor.locale.t;return this.view.content.add(r),r.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(u,_)=>!_&&u>1),r.on("change:isNavigationVisible",()=>this.updatePosition(),{priority:"low"}),r.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(u,_)=>{if(_<2)return"";const x=Array.from(this._idToStack.values()).indexOf(this._visibleStack)+1;return c("%0 of %1",[x,_])}),r.buttonNextView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showNextStack()}),r.buttonPrevView.on("execute",()=>{r.focusTracker.isFocused&&this.editor.editing.view.focus(),this._showPrevStack()}),r}_createFakePanelsView(){const r=new k8(this.editor.locale,this.view);return r.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(c,u)=>!u&&c>=2?Math.min(c-1,2):0),r.listenTo(this.view,"change:top",()=>r.updatePosition()),r.listenTo(this.view,"change:left",()=>r.updatePosition()),this.editor.ui.view.body.add(r),r}_showView({view:r,balloonClassName:c="",withArrow:u=!0,singleViewMode:_=!1}){this.view.class=c,this.view.withArrow=u,this._rotatorView.showView(r),this.visibleView=r,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),_&&(this._singleViewMode=!0)}_getBalloonPosition(){let r=Array.from(this._visibleStack.values()).pop().position;return r&&(r.limiter||(r=Object.assign({},r,{limiter:this.positionLimiter})),r=Object.assign({},r,{viewportOffsetConfig:this.editor.ui.viewportOffset})),r}}class Ov extends oa{constructor(r){super(r);const c=r.t,u=this.bindTemplate;this.set("isNavigationVisible",!0),this.focusTracker=new rs,this.buttonPrevView=this._createButtonView(c("Previous"),' '),this.buttonNextView=this._createButtonView(c("Next"),' '),this.content=this.createCollection(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",u.to("isNavigationVisible",_=>_?"":"ck-hidden")]},children:[this.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:u.to("counter")}]},this.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:this.content}]})}render(){super.render(),this.focusTracker.add(this.element)}destroy(){super.destroy(),this.focusTracker.destroy()}showView(r){this.hideView(),this.content.add(r)}hideView(){this.content.clear()}_createButtonView(r,c){const u=new $o(this.locale);return u.set({label:r,icon:c,tooltip:!0}),u}}class k8 extends oa{constructor(r,c){super(r);const u=this.bindTemplate;this.set("top",0),this.set("left",0),this.set("height",0),this.set("width",0),this.set("numberOfPanels",0),this.content=this.createCollection(),this._balloonPanelView=c,this.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",u.to("numberOfPanels",_=>_?"":"ck-hidden")],style:{top:u.to("top",Ih),left:u.to("left",Ih),width:u.to("width",Ih),height:u.to("height",Ih)}},children:this.content}),this.on("change:numberOfPanels",(_,x,M,E)=>{M>E?this._addPanels(M-E):this._removePanels(E-M),this.updatePosition()})}_addPanels(r){for(;r--;){const c=new oa;c.setTemplate({tag:"div"}),this.content.add(c),this.registerChild(c)}}_removePanels(r){for(;r--;){const c=this.content.last;this.content.remove(c),this.deregisterChild(c),c.destroy()}}updatePosition(){if(this.numberOfPanels){const{top:r,left:c}=this._balloonPanelView,{width:u,height:_}=new ce(this._balloonPanelView.element);Object.assign(this,{top:r,left:c,width:u,height:_})}}}var Ev=v(5868);No()(Ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const pf=bo("px");class Nv extends oa{constructor(r){super(r);const c=this.bindTemplate;this.set("isActive",!1),this.set("isSticky",!1),this.set("limiterElement",null),this.set("limiterBottomOffset",50),this.set("viewportTopOffset",0),this.set("_marginLeft",null),this.set("_isStickyToTheBottomOfLimiter",!1),this.set("_stickyTopOffset",null),this.set("_stickyBottomOffset",null),this.content=this.createCollection(),this._contentPanelPlaceholder=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:c.to("isSticky",u=>u?"block":"none"),height:c.to("isSticky",u=>u?pf(this._contentPanelRect.height):null)}}}).render(),this._contentPanel=new Ur({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",c.if("isSticky","ck-sticky-panel__content_sticky"),c.if("_isStickyToTheBottomOfLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:c.to("isSticky",u=>u?pf(this._contentPanelPlaceholder.getBoundingClientRect().width):null),top:c.to("_stickyTopOffset",u=>u&&pf(u)),bottom:c.to("_stickyBottomOffset",u=>u&&pf(u)),marginLeft:c.to("_marginLeft")}},children:this.content}).render(),this.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[this._contentPanelPlaceholder,this._contentPanel]})}render(){super.render(),this.checkIfShouldBeSticky(),this.listenTo(Mt.document,"scroll",()=>{this.checkIfShouldBeSticky()},{useCapture:!0}),this.listenTo(this,"change:isActive",()=>{this.checkIfShouldBeSticky()})}checkIfShouldBeSticky(){if(!this.limiterElement||!this.isActive)return void this._unstick();const r=new ce(this.limiterElement);let c=r.getVisible();if(c){const u=new ce(Mt.window);u.top+=this.viewportTopOffset,u.height-=this.viewportTopOffset,c=c.getIntersection(u)}if(c&&r.topc.bottom){const _=Math.max(r.bottom-c.bottom,0)+this.limiterBottomOffset;r.bottom-_>r.top+this._contentPanelRect.height?this._stickToBottomOfLimiter(_):this._unstick()}else this._contentPanelRect.height+this.limiterBottomOffset{this.reset(),this.focus(),this.fire("reset")}),this.resetButtonView.bind("isVisible").to(this.fieldView,"isEmpty",x=>!x),this.fieldWrapperChildren.add(this.resetButtonView),this.extendTemplate({attributes:{class:"ck-search__query_with-reset"}}))}reset(){this.fieldView.reset(),this._viewConfig.showResetButton&&(this.resetButtonView.isVisible=!1)}}class o_ extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,primaryText:"",secondaryText:""}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__info",r.if("isVisible","ck-hidden",c=>!c)],tabindex:-1},children:[{tag:"span",children:[{text:[r.to("primaryText")]}]},{tag:"span",children:[{text:[r.to("secondaryText")]}]}]})}focus(){this.element.focus()}}class D8 extends oa{constructor(r){super(r),this.children=this.createCollection(),this.focusTracker=new rs,this.setTemplate({tag:"div",attributes:{class:["ck","ck-search__results"],tabindex:-1},children:this.children}),this._focusCycler=new ul({focusables:this.children,focusTracker:this.focusTracker})}render(){super.render();for(const r of this.children)this.focusTracker.add(r.element)}focus(){this._focusCycler.focusFirst()}focusFirst(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}var Fv=/[\\^$.*+?()[\]{}|]/g,qv=RegExp(Fv.source);const f5=function(m){return(m=wg(m))&&qv.test(m)?m.replace(Fv,"\\$&"):m};var h5=v(6770);No()(h5.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var fu=Object.defineProperty,g5=Object.getOwnPropertySymbols,P8=Object.prototype.hasOwnProperty,n1=Object.prototype.propertyIsEnumerable,b5=(m,r,c)=>r in m?fu(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class v5 extends oa{constructor(r,c){super(r),this._config=c,this.filteredView=c.filteredView,this.queryView=this._createSearchTextQueryView(),this.focusTracker=new rs,this.keystrokes=new $c,this.resultsView=new D8(r),this.children=this.createCollection(),this.focusableChildren=this.createCollection([this.queryView,this.resultsView]),this.set("isEnabled",!0),this.set("resultsCount",0),this.set("totalItemsCount",0),c.infoView&&c.infoView.instance?this.infoView=c.infoView.instance:(this.infoView=new o_,this._enableDefaultInfoViewBehavior(),this.on("render",()=>{this.search("")})),this.resultsView.children.addMany([this.infoView,this.filteredView]),this.focusCycler=new ul({focusables:this.focusableChildren,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.on("search",(u,{resultsCount:_,totalItemsCount:x})=>{this.resultsCount=_,this.totalItemsCount=x}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-search",c.class||null],tabindex:"-1"},children:this.children})}render(){super.render(),this.children.addMany([this.queryView,this.resultsView]);const r=c=>c.stopPropagation();for(const c of this.focusableChildren)this.focusTracker.add(c.element);this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}focus(){this.queryView.focus()}reset(){this.queryView.reset(),this.search("")}search(r){const c=r?new RegExp(f5(r),"ig"):null,u=this.filteredView.filter(c);this.fire("search",((_,x)=>{for(var M in x||(x={}))P8.call(x,M)&&b5(_,M,x[M]);if(g5)for(var M of g5(x))n1.call(x,M)&&b5(_,M,x[M]);return _})({query:r},u))}_createSearchTextQueryView(){const r=new Wl(this.locale,this._config.queryView);return this.listenTo(r.fieldView,"input",()=>{this.search(r.fieldView.element.value)}),r.on("reset",()=>this.reset()),r.bind("isEnabled").to(this),r}_enableDefaultInfoViewBehavior(){const r=this.locale.t,c=this.infoView;function u(_,{query:x,resultsCount:M,totalItemsCount:E}){return"function"==typeof _?_(x,M,E):_}this.on("search",(_,x)=>{if(x.resultsCount)c.set({isVisible:!1});else{const M=this._config.infoView&&this._config.infoView.text;let E,F;x.totalItemsCount?M&&M.notFound?(E=M.notFound.primary,F=M.notFound.secondary):(E=r("No results found"),F=""):M&&M.noSearchableItems?(E=M.noSearchableItems.primary,F=M.noSearchableItems.secondary):(E=r("No searchable items"),F=""),c.set({primaryText:u(E,x),secondaryText:u(F,x),isVisible:!0})}})}}var S8=v(8157);No()(S8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const q0=class extends v5{constructor(m,r){super(m,r),this._config=r;const c=bo("px");this.extendTemplate({attributes:{class:["ck-autocomplete"]}});const u=this.resultsView.bindTemplate;this.resultsView.set("isVisible",!1),this.resultsView.set("_position","s"),this.resultsView.set("_width",0),this.resultsView.extendTemplate({attributes:{class:[u.if("isVisible","ck-hidden",_=>!_),u.to("_position",_=>`ck-search__results_${_}`)],style:{width:u.to("_width",c)}}}),this.focusTracker.on("change:isFocused",(_,x,M)=>{this._updateResultsVisibility(),M?this.resultsView.element.scrollTop=0:r.resetOnBlur&&this.queryView.reset()}),this.on("search",()=>{this._updateResultsVisibility(),this._updateResultsViewWidthAndPosition()}),this.keystrokes.set("esc",(_,x)=>{this.resultsView.isVisible=!1,x()}),this.listenTo(Mt.document,"scroll",()=>{this._updateResultsViewWidthAndPosition()}),this.on("change:isEnabled",()=>{this._updateResultsVisibility()}),this.filteredView.on("execute",(_,{value:x})=>{this.focus(),this.reset(),this.queryView.fieldView.value=this.queryView.fieldView.element.value=x,this.resultsView.isVisible=!1}),this.resultsView.on("change:isVisible",()=>{this._updateResultsViewWidthAndPosition()})}_updateResultsViewWidthAndPosition(){if(!this.resultsView.isVisible)return;this.resultsView._width=new ce(this.queryView.fieldView.element).width;const m=q0._getOptimalPosition({element:this.resultsView.element,target:this.queryView.element,fitInViewport:!0,positions:q0.defaultResultsPositions});this.resultsView._position=m?m.name:"s"}_updateResultsVisibility(){this.resultsView.isVisible=this.focusTracker.isFocused&&this.isEnabled&&this.queryView.fieldView.element.value.length>=(void 0===this._config.queryMinChars?0:this._config.queryMinChars)}};let Ep=q0;Ep.defaultResultsPositions=[m=>({top:m.bottom,left:m.left,name:"s"}),(m,r)=>({top:m.top-r.height,left:m.left,name:"n"})],Ep._getOptimalPosition=es;var Rv=v(8960);No()(Rv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var o1=v(498);No()(o1.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px");var tp=v(9695);No()(tp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bo("px"),bo("px");class zv extends Op{constructor(r,c){super(r),this.view=c,this._toolbarConfig=_p(r.config.get("toolbar")),this._elementReplacer=new Ke,this.listenTo(r.editing.view,"scrollToTheSelection",this._handleScrollToTheSelectionWithStickyPanel.bind(this))}get element(){return this.view.element}init(r){const u=this.view,_=this.editor.editing.view,x=u.editable,M=_.document.getRoot();x.name=M.rootName,u.render();const E=x.element;this.setEditableElement(x.name,E),u.editable.bind("isFocused").to(this.focusTracker),_.attachDomRoot(E),r&&this._elementReplacer.replace(r,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}destroy(){super.destroy();const r=this.view,c=this.editor.editing.view;this._elementReplacer.restore(),c.detachDomRoot(r.editable.name),r.destroy()}_initToolbar(){const r=this.view;r.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),r.stickyPanel.limiterElement=r.element,r.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",({top:c})=>c||0),r.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(r.toolbar)}_initPlaceholder(){const r=this.editor,c=r.editing.view,u=c.document.getRoot(),_=r.sourceElement;let x;const M=r.config.get("placeholder");M&&(x="string"==typeof M?M:M[this.view.editable.name]),!x&&_&&"textarea"===_.tagName.toLowerCase()&&(x=_.getAttribute("placeholder")),x&&(u.placeholder=x),Y({view:c,element:u,isDirectHost:!1,keepOnFocus:!0})}_handleScrollToTheSelectionWithStickyPanel(r,c,u){const _=this.view.stickyPanel;if(_.isSticky){const x=new ce(_.element).height;c.viewportOffset.top+=x}else{const x=()=>{this.editor.editing.view.scrollToTheSelection(u)};this.listenTo(_,"change:isSticky",x),setTimeout(()=>{this.stopListening(_,"change:isSticky",x)},20)}}}var Yv=v(3143);No()(Yv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class O8 extends Lv{constructor(r,c,u={}){super(r),this.stickyPanel=new Nv(r),this.toolbar=new T0(r,{shouldGroupWhenFull:u.shouldToolbarGroupWhenFull}),this.editable=new U4(r,c)}render(){super.render(),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}class C5{constructor(r){if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof r.crashNumberLimit?r.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof r.minimumNonErrorTimePeriod?r.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=c=>{const u="error"in c?c.error:c.reason;u instanceof Error&&this._handleError(u,c)},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.")}destroy(){this._stopErrorHandling(),this._listeners={}}on(r,c){this._listeners[r]||(this._listeners[r]=[]),this._listeners[r].push(c)}off(r,c){this._listeners[r]=this._listeners[r].filter(u=>u!==c)}_fire(r,...c){const u=this._listeners[r]||[];for(const _ of u)_.apply(this,[null,...c])}_startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler)}_stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler)}_handleError(r,c){if(this._shouldReactToError(r)){this.crashes.push({message:r.message,stack:r.stack,filename:c instanceof ErrorEvent?c.filename:void 0,lineno:c instanceof ErrorEvent?c.lineno:void 0,colno:c instanceof ErrorEvent?c.colno:void 0,date:this._now()});const u=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:r,causesRestart:u}),u?this._restart():(this.state="crashedPermanently",this._fire("stateChange"))}}_shouldReactToError(r){return r.is&&r.is("CKEditorError")&&null!=r.context&&"ready"===this.state&&this._isErrorComingFromThisItem(r)}_shouldRestart(){return this.crashes.length<=this._crashNumberLimit||(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod}}function d2(m,r=new Set){const c=[m],u=new Set;let _=0;for(;c.length>_;){const x=c[_++];if(!u.has(x)&&R0(x)&&!r.has(x))if(u.add(x),Symbol.iterator in x)try{for(const M of x)c.push(M)}catch{}else for(const M in x)"defaultValue"!==M&&c.push(x[M])}return u}function R0(m){const r=Object.prototype.toString.call(m),c=typeof m;return!("number"===c||"boolean"===c||"string"===c||"symbol"===c||"function"===c||"[object Date]"===r||"[object RegExp]"===r||"[object Module]"===r||null==m||m._watchdogExcluded||m instanceof EventTarget||m instanceof Event)}function Bv(m,r,c=new Set){if(m===r&&"object"==typeof(u=m)&&null!==u)return!0;var u;const _=d2(m,c),x=d2(r,c);for(const M of _)if(x.has(M))return!0;return!1}var A5=Object.defineProperty,E8=Object.defineProperties,y5=Object.getOwnPropertyDescriptors,H0=Object.getOwnPropertySymbols,Nh=Object.prototype.hasOwnProperty,Vv=Object.prototype.propertyIsEnumerable,k4=(m,r,c)=>r in m?A5(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,D4=(m,r)=>{for(var c in r||(r={}))Nh.call(r,c)&&k4(m,c,r[c]);if(H0)for(var c of H0(r))Vv.call(r,c)&&k4(m,c,r[c]);return m};class P4 extends C5{constructor(r,c={}){super(c),this._editor=null,this._initUsingData=!0,this._editables={},this._throttledSave=Sh(this._save.bind(this),"number"==typeof c.saveInterval?c.saveInterval:5e3),r&&(this._creator=(u,_)=>r.create(u,_)),this._destructor=u=>u.destroy()}get editor(){return this._editor}get _item(){return this._editor}setCreator(r){this._creator=r}setDestructor(r){this._destructor=r}_restart(){return Promise.resolve().then(()=>(this.state="initializing",this._fire("stateChange"),this._destroy())).catch(r=>{console.error("An error happened during the editor destroying.",r)}).then(()=>{const r={},c=[],u=this._config.rootsAttributes||{},_={};for(const[F,V]of Object.entries(this._data.roots))V.isLoaded?(r[F]="",_[F]=u[F]||{}):c.push(F);const x=(M=D4({},this._config),E8(M,y5({extraPlugins:this._config.extraPlugins||[],lazyRoots:c,rootsAttributes:_,_watchdogInitialData:this._data})));var M;return delete x.initialData,x.extraPlugins.push(rc),this._initUsingData?this.create(r,x,x.context):la(this._elementOrData)?this.create(this._elementOrData,x,x.context):this.create(this._editables,x,x.context)}).then(()=>{this._fire("restart")})}create(r=this._elementOrData,c=this._config,u){return Promise.resolve().then(()=>(super._startErrorHandling(),this._elementOrData=r,this._initUsingData="string"==typeof r||Object.keys(r).length>0&&"string"==typeof Object.values(r)[0],this._config=this._cloneEditorConfiguration(c)||{},this._config.context=u,this._creator(r,this._config))).then(_=>{this._editor=_,_.model.document.on("change:data",this._throttledSave),this._lastDocumentVersion=_.model.document.version,this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this.state="ready",this._fire("stateChange")})}destroy(){return Promise.resolve().then(()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling(),this._throttledSave.cancel();const r=this._editor;return this._editor=null,r.model.document.off("change:data",this._throttledSave),this._destructor(r)})}_save(){const r=this._editor.model.document.version;try{this._data=this._getData(),this._initUsingData||(this._editables=this._getEditables()),this._lastDocumentVersion=r}catch(c){console.error(c,"An error happened during restoring editor data. Editor will be restored from the previously saved data.")}}_setExcludedProperties(r){this._excludedProps=r}_getData(){const r=this._editor,c=r.model.document.roots.filter(E=>E.isAttached()&&"$graveyard"!=E.rootName),{plugins:u}=r,_=u.has("CommentsRepository")&&u.get("CommentsRepository"),x=u.has("TrackChanges")&&u.get("TrackChanges"),M={roots:{},markers:{},commentThreads:JSON.stringify([]),suggestions:JSON.stringify([])};c.forEach(E=>{M.roots[E.rootName]={content:JSON.stringify(Array.from(E.getChildren())),attributes:JSON.stringify(Array.from(E.getAttributes())),isLoaded:E._isLoaded}});for(const E of r.model.markers)E._affectsData&&(M.markers[E.name]={rangeJSON:E.getRange().toJSON(),usingOperation:E._managedUsingOperations,affectsData:E._affectsData});return _&&(M.commentThreads=JSON.stringify(_.getCommentThreads({toJSON:!0,skipNotAttached:!0}))),x&&(M.suggestions=JSON.stringify(x.getSuggestions({toJSON:!0,skipNotAttached:!0}))),M}_getEditables(){const r={};for(const c of this.editor.model.document.getRootNames()){const u=this.editor.ui.getEditableElement(c);u&&(r[c]=u)}return r}_isErrorComingFromThisItem(r){return Bv(this._editor,r.context,this._excludedProps)}_cloneEditorConfiguration(r){return So(r,(c,u)=>la(c)||"context"===u?c:void 0)}}class rc{constructor(r){this.editor=r,this._data=r.config.get("_watchdogInitialData")}init(){this.editor.data.on("init",r=>{r.stop(),this.editor.model.enqueueChange({isUndoable:!1},c=>{this._restoreCollaborationData(),this._restoreEditorData(c)}),this.editor.data.fire("ready")},{priority:999})}_createNode(r,c){if("name"in c){const u=r.createElement(c.name,c.attributes);if(c.children)for(const _ of c.children)u._appendChild(this._createNode(r,_));return u}return r.createText(c.data,c.attributes)}_restoreEditorData(r){const c=this.editor;Object.entries(this._data.roots).forEach(([u,{content:_,attributes:x}])=>{const M=JSON.parse(_),E=JSON.parse(x),F=c.model.document.getRoot(u);for(const[V,W]of E)r.setAttribute(V,W,F);for(const V of M){const W=this._createNode(r,V);r.insert(W,F,"end")}}),Object.entries(this._data.markers).forEach(([u,_])=>{const{document:x}=c.model,M=_,{rangeJSON:{start:E,end:F}}=M,V=((Ae,Ie)=>{var ln={};for(var Dn in Ae)Nh.call(Ae,Dn)&&Ie.indexOf(Dn)<0&&(ln[Dn]=Ae[Dn]);if(null!=Ae&&H0)for(var Dn of H0(Ae))Ie.indexOf(Dn)<0&&Vv.call(Ae,Dn)&&(ln[Dn]=Ae[Dn]);return ln})(M,["rangeJSON"]),W=x.getRoot(E.root),dt=r.createPositionFromPath(W,E.path,E.stickiness),Zt=r.createPositionFromPath(W,F.path,F.stickiness),ue=r.createRange(dt,Zt);r.addMarker(u,D4({range:ue},V))})}_restoreCollaborationData(){const r=JSON.parse(this._data.commentThreads),c=JSON.parse(this._data.suggestions);r.forEach(u=>{const _=this.editor.config.get("collaboration.channelId"),x=this.editor.plugins.get("CommentsRepository");x.hasCommentThread(u.threadId)&&x.getCommentThread(u.threadId).remove(),x.addCommentThread(D4({channelId:_},u))}),c.forEach(u=>{const _=this.editor.plugins.get("TrackChangesEditing");_.hasSuggestion(u.id)?_.getSuggestion(u.id).attributes=u.attributes:_.addSuggestionData(u)})}}const mf=Symbol("MainQueueId");class T5{constructor(){this._onEmptyCallbacks=[],this._queues=new Map,this._activeActions=0}onEmpty(r){this._onEmptyCallbacks.push(r)}enqueue(r,c){const u=r===mf;this._activeActions++,this._queues.get(r)||this._queues.set(r,Promise.resolve());const _=Promise.all(u?this._queues.values():[this._queues.get(mf),this._queues.get(r)]).then(c),x=_.catch(()=>{});return this._queues.set(r,x),_.finally(()=>{this._activeActions--,this._queues.get(r)===x&&0===this._activeActions&&this._onEmptyCallbacks.forEach(M=>M())})}}function z0(m){return Array.isArray(m)?m:[m]}class Y0 extends(n2(cf(l4))){constructor(r,c={}){if(!Fh(r)&&void 0!==c.initialData)throw new nt("editor-create-initial-data",null);var x,M;super(c),void 0===this.config.get("initialData")&&this.config.set("initialData",Fh(x=r)?(M=x)instanceof HTMLTextAreaElement?M.value:M.innerHTML:x),Fh(r)&&(this.sourceElement=r),this.model.document.createRoot();const u=!this.config.get("toolbar.shouldNotGroupWhenFull"),_=new O8(this.locale,this.editing.view,{shouldToolbarGroupWhenFull:u});this.ui=new zv(this,_),function(x){if(!Fo(x.updateSourceElement))throw new nt("attachtoform-missing-elementapi-interface",x);const M=x.sourceElement;if((E=M)&&"textarea"===E.tagName.toLowerCase()&&M.form){let E;const F=M.form,V=()=>x.updateSourceElement();Fo(F.submit)&&(E=F.submit,F.submit=()=>{V(),E.apply(F)}),F.addEventListener("submit",V),x.on("destroy",()=>{F.removeEventListener("submit",V),E&&(F.submit=E)})}var E}(this)}destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),super.destroy()}static create(r,c={}){return new Promise(u=>{const _=new this(r,c);u(_.initPlugins().then(()=>_.ui.init(Fh(r)?r:null)).then(()=>_.data.init(_.config.get("initialData"))).then(()=>_.fire("ready")).then(()=>_))})}}function Fh(m){return la(m)}Y0.Context=M2,Y0.EditorWatchdog=P4,Y0.ContextWatchdog=class extends C5{constructor(m,r={}){super(r),this._watchdogs=new Map,this._context=null,this._contextProps=new Set,this._actionQueues=new T5,this._watchdogConfig=r,this._creator=c=>m.create(c),this._destructor=c=>c.destroy(),this._actionQueues.onEmpty(()=>{"initializing"===this.state&&(this.state="ready",this._fire("stateChange"))})}setCreator(m){this._creator=m}setDestructor(m){this._destructor=m}get context(){return this._context}create(m={}){return this._actionQueues.enqueue(mf,()=>(this._contextConfig=m,this._create()))}getItem(m){return this._getWatchdog(m)._item}getItemState(m){return this._getWatchdog(m).state}add(m){const r=z0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c.id,()=>{if("destroyed"===this.state)throw new Error("Cannot add items to destroyed watchdog.");if(!this._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");let u;if(this._watchdogs.has(c.id))throw new Error(`Item with the given id is already added: '${c.id}'.`);if("editor"===c.type)return u=new P4(null,this._watchdogConfig),u.setCreator(c.creator),u._setExcludedProperties(this._contextProps),c.destructor&&u.setDestructor(c.destructor),this._watchdogs.set(c.id,u),u.on("error",(_,{error:x,causesRestart:M})=>{this._fire("itemError",{itemId:c.id,error:x}),M&&this._actionQueues.enqueue(c.id,()=>new Promise(E=>{const F=()=>{u.off("restart",F),this._fire("itemRestart",{itemId:c.id}),E()};u.on("restart",F)}))}),u.create(c.sourceElementOrData,c.config,this._context);throw new Error(`Not supported item type: '${c.type}'.`)})))}remove(m){const r=z0(m);return Promise.all(r.map(c=>this._actionQueues.enqueue(c,()=>{const u=this._getWatchdog(c);return this._watchdogs.delete(c),u.destroy()})))}destroy(){return this._actionQueues.enqueue(mf,()=>(this.state="destroyed",this._fire("stateChange"),super.destroy(),this._destroy()))}_restart(){return this._actionQueues.enqueue(mf,()=>(this.state="initializing",this._fire("stateChange"),this._destroy().catch(m=>{console.error("An error happened during destroying the context or items.",m)}).then(()=>this._create()).then(()=>this._fire("restart"))))}_create(){return Promise.resolve().then(()=>(this._startErrorHandling(),this._creator(this._contextConfig))).then(m=>(this._context=m,this._contextProps=d2(this._context),Promise.all(Array.from(this._watchdogs.values()).map(r=>(r._setExcludedProperties(this._contextProps),r.create(void 0,void 0,this._context))))))}_destroy(){return Promise.resolve().then(()=>{this._stopErrorHandling();const m=this._context;return this._context=null,this._contextProps=new Set,Promise.all(Array.from(this._watchdogs.values()).map(r=>r.destroy())).then(()=>this._destructor(m))})}_getWatchdog(m){const r=this._watchdogs.get(m);if(!r)throw new Error(`Item with the given id was not registered: ${m}.`);return r}_isErrorComingFromThisItem(m){for(const r of this._watchdogs.values())if(r._isErrorComingFromThisItem(m))return!1;return Bv(this._context,m.context)}};class qh extends Wu{constructor(r){super(r),this.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];const c=this.document;function u(_){return(x,M)=>{M.preventDefault();const E=M.dropRange?[M.dropRange]:null,F=new lt(c,_);c.fire(F,{dataTransfer:M.dataTransfer,method:x.name,targetRanges:E,target:M.target,domEvent:M.domEvent}),F.stop.called&&M.stopPropagation()}}this.listenTo(c,"paste",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"drop",u("clipboardInput"),{priority:"low"}),this.listenTo(c,"dragover",u("dragging"),{priority:"low"})}onDomEvent(r){const _={dataTransfer:new mc("clipboardData"in r?r.clipboardData:r.dataTransfer,{cacheFiles:"drop"==r.type||"paste"==r.type})};"drop"!=r.type&&"dragover"!=r.type||(_.dropRange=function(x,M){const E=M.target.ownerDocument,F=M.clientX,V=M.clientY;let W;return E.caretRangeFromPoint&&E.caretRangeFromPoint(F,V)?W=E.caretRangeFromPoint(F,V):M.rangeParent&&(W=E.createRange(),W.setStart(M.rangeParent,M.rangeOffset),W.collapse(!0)),W?x.domConverter.domRangeToView(W):null}(this.view,r)),this.fire(r.type,r,_)}}const w5=["figcaption","li"];function U5(m){let r="";if(m.is("$text")||m.is("$textProxy"))r=m.data;else if(m.is("element","img")&&m.hasAttribute("alt"))r=m.getAttribute("alt");else if(m.is("element","br"))r="\n";else{let c=null;for(const u of m.getChildren()){const _=U5(u);c&&(c.is("containerElement")||u.is("containerElement"))&&(w5.includes(c.name)||w5.includes(u.name)?r+="\n":r+="\n\n"),r+=_,c=u}}return r}class Np extends lo{static get pluginName(){return"ClipboardPipeline"}init(){this.editor.editing.view.addObserver(qh),this._setupPasteDrop(),this._setupCopyCut()}_fireOutputTransformationEvent(r,c,u){const _=this.editor.model.getSelectedContent(c);this.fire("outputTransformation",{dataTransfer:r,content:_,method:u})}_setupPasteDrop(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document;this.listenTo(_,"clipboardInput",(x,M)=>{"paste"!=M.method||r.model.canEditAt(r.model.document.selection)||x.stop()},{priority:"highest"}),this.listenTo(_,"clipboardInput",(x,M)=>{const E=M.dataTransfer;let F;if(M.content)F=M.content;else{let dt="";E.getData("text/html")?dt=E.getData("text/html").replace(/(\s+)<\/span>/g,(ue,Ae)=>1==Ae.length?" ":Ae).replace(//g,""):E.getData("text/plain")&&(((V=(V=E.getData("text/plain")).replace(/ /g,">").replace(/\r?\n\r?\n/g,"
").replace(/\r?\n/g," ").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("
")||V.includes(" "))&&(V=`
${V}
`),dt=V),F=this.editor.data.htmlProcessor.toView(dt)}var V;const W=new lt(this,"inputTransformation");this.fire(W,{content:F,dataTransfer:E,targetRanges:M.targetRanges,method:M.method}),W.stop.called&&x.stop(),u.scrollToTheSelection()},{priority:"low"}),this.listenTo(this,"inputTransformation",(x,M)=>{if(M.content.isEmpty)return;const E=this.editor.data.toModel(M.content,"$clipboardHolder");0!=E.childCount&&(x.stop(),c.change(()=>{this.fire("contentInsertion",{content:E,method:M.method,dataTransfer:M.dataTransfer,targetRanges:M.targetRanges})}))},{priority:"low"}),this.listenTo(this,"contentInsertion",(x,M)=>{M.resultRange=c.insertContent(M.content)},{priority:"low"})}_setupCopyCut(){const r=this.editor,c=r.model.document,u=r.editing.view.document,_=(x,M)=>{const E=M.dataTransfer;M.preventDefault(),this._fireOutputTransformationEvent(E,c.selection,x.name)};this.listenTo(u,"copy",_,{priority:"low"}),this.listenTo(u,"cut",(x,M)=>{r.model.canEditAt(r.model.document.selection)?_(x,M):M.preventDefault()},{priority:"low"}),this.listenTo(this,"outputTransformation",(x,M)=>{const E=r.data.toView(M.content);u.fire("clipboardOutput",{dataTransfer:M.dataTransfer,content:E,method:M.method})},{priority:"low"}),this.listenTo(u,"clipboardOutput",(x,M)=>{M.content.isEmpty||(M.dataTransfer.setData("text/html",this.editor.data.htmlProcessor.toData(M.content)),M.dataTransfer.setData("text/plain",U5(M.content))),"cut"==M.method&&r.model.deleteContent(c.selection)},{priority:"low"})}}class Z5{constructor(r,c=20){this._batch=null,this.model=r,this._size=0,this.limit=c,this._isLocked=!1,this._changeCallback=(u,_)=>{_.isLocal&&_.isUndoable&&_!==this._batch&&this._reset(!0)},this._selectionChangeCallback=()=>{this._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}get size(){return this._size}input(r){this._size+=r,this._size>=this.limit&&this._reset(!0)}get isLocked(){return this._isLocked}lock(){this._isLocked=!0}unlock(){this._isLocked=!1}destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}_reset(r=!1){this.isLocked&&!r||(this._batch=null,this._size=0)}}class I8 extends Za{constructor(r,c){super(r),this._buffer=new Z5(r.model,c),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}destroy(){super.destroy(),this._buffer.destroy()}execute(r={}){const c=this.editor.model,u=c.document,_=r.text||"",x=_.length;let M=u.selection;if(r.selection?M=r.selection:r.range&&(M=c.createSelection(r.range)),!c.canEditAt(M))return;const E=r.resultRange;c.enqueueChange(this._buffer.batch,F=>{this._buffer.lock(),c.deleteContent(M),_&&c.insertContent(F.createText(_,u.selection.getAttributes()),M),E?F.setSelection(E):M.is("documentSelection")||F.setSelection(M),this._buffer.unlock(),this._buffer.input(x)})}}const jv=["insertText","insertReplacementText"];class Jv extends Qu{constructor(r){super(r),this.focusObserver=r.getObserver(z_),D_isAndroid&&jv.push("insertCompositionText");const c=r.document;c.on("beforeinput",(u,_)=>{if(!this.isEnabled)return;const{data:x,targetRanges:M,inputType:E,domEvent:F}=_;if(!jv.includes(E))return;this.focusObserver.flush();const V=new lt(c,"insertText");c.fire(V,new pc(r,F,{text:x,selection:r.createSelection(M)})),V.stop.called&&u.stop()}),c.on("compositionend",(u,{data:_,domEvent:x})=>{this.isEnabled&&!D_isAndroid&&_&&c.fire("insertText",new pc(r,x,{text:_,selection:c.selection}))},{priority:"lowest"})}observe(){}stopObserving(){}}class Gv extends lo{static get pluginName(){return"Input"}init(){const r=this.editor,c=r.model,u=r.editing.view,_=c.document.selection;u.addObserver(Jv);const x=new I8(r,r.config.get("typing.undoStep")||20);r.commands.add("insertText",x),r.commands.add("input",x),this.listenTo(u.document,"insertText",(M,E)=>{u.document.isComposing||E.preventDefault();const{text:F,selection:V,resultRange:W}=E,dt=Array.from(V.getRanges()).map(Ae=>r.editing.mapper.toModelRange(Ae));let Zt=F;if(D_isAndroid){const Ae=Array.from(dt[0].getItems()).reduce((Ie,ln)=>Ie+(ln.is("$textProxy")?ln.data:""),"");Ae&&(Ae.length<=Zt.length?Zt.startsWith(Ae)&&(Zt=Zt.substring(Ae.length),dt[0].start=dt[0].start.getShiftedBy(Ae.length)):Ae.startsWith(Zt)&&(dt[0].start=dt[0].start.getShiftedBy(Zt.length),Zt=""))}const ue={text:Zt,selection:c.createSelection(dt)};W&&(ue.resultRange=r.editing.mapper.toModelRange(W)),r.execute("insertText",ue),u.scrollToTheSelection()}),D_isAndroid?this.listenTo(u.document,"keydown",(M,E)=>{!_.isCollapsed&&229==E.keyCode&&u.document.isComposing&&M5(c,x)}):this.listenTo(u.document,"compositionstart",()=>{_.isCollapsed||M5(c,x)})}}function M5(m,r){if(!r.isEnabled)return;const c=r.buffer;c.lock(),m.enqueueChange(c.batch,()=>{m.deleteContent(m.document.selection)}),c.unlock()}class Qv extends Za{constructor(r,c){super(r),this.direction=c,this._buffer=new Z5(r.model,r.config.get("typing.undoStep")),this._isEnabledBasedOnSelection=!1}get buffer(){return this._buffer}execute(r={}){const c=this.editor.model,u=c.document;c.enqueueChange(this._buffer.batch,_=>{this._buffer.lock();const x=_.createSelection(r.selection||u.selection);if(!c.canEditAt(x))return;const M=r.sequence||1,E=x.isCollapsed;if(x.isCollapsed&&c.modifySelection(x,{direction:this.direction,unit:r.unit,treatEmojiAsSingleUnit:!0}),this._shouldEntireContentBeReplacedWithParagraph(M))return void this._replaceEntireContentWithParagraph(_);if(this._shouldReplaceFirstBlockWithParagraph(x,M))return void this.editor.execute("paragraph",{selection:x});if(x.isCollapsed)return;let F=0;x.getFirstRange().getMinimalFlatRanges().forEach(V=>{F+=ne(V.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),c.deleteContent(x,{doNotResetEntireContent:E,direction:this.direction}),this._buffer.input(F),_.setSelection(x),this._buffer.unlock()})}_shouldEntireContentBeReplacedWithParagraph(r){if(r>1)return!1;const c=this.editor.model,u=c.document.selection,_=c.schema.getLimitElement(u);if(!u.isCollapsed||!u.containsEntireContent(_)||!c.schema.checkChild(_,"paragraph"))return!1;const x=_.getChild(0);return!x||!x.is("element","paragraph")}_replaceEntireContentWithParagraph(r){const c=this.editor.model,_=c.schema.getLimitElement(c.document.selection),x=r.createElement("paragraph");r.remove(r.createRangeIn(_)),r.insert(x,_),r.setSelection(x,0)}_shouldReplaceFirstBlockWithParagraph(r,c){const u=this.editor.model;if(c>1||"backward"!=this.direction||!r.isCollapsed)return!1;const _=r.getFirstPosition(),x=u.schema.getLimitElement(_),M=x.getChild(0);return _.parent==M&&!!r.containsEntireContent(M)&&!!u.schema.checkChild(x,"paragraph")&&"paragraph"!=M.name}}const p2="selection",Rh="backward",a_="forward",$v={deleteContent:{unit:p2,direction:Rh},deleteContentBackward:{unit:"codePoint",direction:Rh},deleteWordBackward:{unit:"word",direction:Rh},deleteHardLineBackward:{unit:p2,direction:Rh},deleteSoftLineBackward:{unit:p2,direction:Rh},deleteContentForward:{unit:"character",direction:a_},deleteWordForward:{unit:"word",direction:a_},deleteHardLineForward:{unit:p2,direction:a_},deleteSoftLineForward:{unit:p2,direction:a_}};class Kv extends Qu{constructor(r){super(r);const c=r.document;let u=0;c.on("keydown",()=>{u++}),c.on("keyup",()=>{u=0}),c.on("beforeinput",(_,x)=>{if(!this.isEnabled)return;const{targetRanges:M,domEvent:E,inputType:F}=x,V=$v[F];if(!V)return;const W={direction:V.direction,unit:V.unit,sequence:u};W.unit==p2&&(W.selectionToRemove=r.createSelection(M[0])),"deleteContentBackward"===F&&(D_isAndroid&&(W.sequence=1),function(Zt){if(1!=Zt.length||Zt[0].isCollapsed)return!1;const ue=Zt[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});let Ae=0;for(const{nextPosition:Ie}of ue){if(Ie.parent.is("$text")){const ln=Ie.parent.data,Dn=Ie.offset;if(cn(ln,Dn)||hd(ln,Dn)||kl(ln,Dn))continue;Ae++}else Ae++;if(Ae>1)return!0}return!1}(M)&&(W.unit=p2,W.selectionToRemove=r.createSelection(M)));const dt=new xp(c,"delete",M[0]);c.fire(dt,new pc(r,E,W)),dt.stop.called&&_.stop()}),D_isBlink&&function(_){const x=_.view,M=x.document;let E=null,F=!1;function V(dt){return dt==Ka.backspace||dt==Ka.delete}function W(dt){return dt==Ka.backspace?Rh:a_}M.on("keydown",(dt,{keyCode:Zt})=>{E=Zt,F=!1}),M.on("keyup",(dt,{keyCode:Zt,domEvent:ue})=>{const Ae=M.selection,Ie=_.isEnabled&&Zt==E&&V(Zt)&&!Ae.isCollapsed&&!F;if(E=null,Ie){const ln=Ae.getFirstRange(),Dn=new xp(M,"delete",ln),di={unit:p2,direction:W(Zt),selectionToRemove:Ae};M.fire(Dn,new pc(x,ue,di))}}),M.on("beforeinput",(dt,{inputType:Zt})=>{const ue=$v[Zt];V(E)&&ue&&ue.direction==W(E)&&(F=!0)},{priority:"high"}),M.on("beforeinput",(dt,{inputType:Zt,data:ue})=>{E==Ka.delete&&"insertText"==Zt&&"\x7f"==ue&&dt.stop()},{priority:"high"})}(this)}observe(){}stopObserving(){}}class r_ extends lo{static get pluginName(){return"Delete"}init(){const r=this.editor,c=r.editing.view,u=c.document,_=r.model.document;c.addObserver(Kv),this._undoOnBackspace=!1;const x=new Qv(r,"forward");r.commands.add("deleteForward",x),r.commands.add("forwardDelete",x),r.commands.add("delete",new Qv(r,"backward")),this.listenTo(u,"delete",(M,E)=>{u.isComposing||E.preventDefault();const{direction:F,sequence:V,selectionToRemove:W,unit:dt}=E,Zt="forward"===F?"deleteForward":"delete",ue={sequence:V};if("selection"==dt){const Ae=Array.from(W.getRanges()).map(Ie=>r.editing.mapper.toModelRange(Ie));ue.selection=r.model.createSelection(Ae)}else ue.unit=dt;r.execute(Zt,ue),c.scrollToTheSelection()},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(u,"delete",(M,E)=>{this._undoOnBackspace&&"backward"==E.direction&&1==E.sequence&&"codePoint"==E.unit&&(this._undoOnBackspace=!1,r.execute("undo"),E.preventDefault(),M.stop())},{context:"$capture"}),this.listenTo(_,"change",()=>{this._undoOnBackspace=!1}))}requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}class Ya extends lo{static get requires(){return[Gv,r_]}static get pluginName(){return"Typing"}}function S4(m,r){let c=m.start;return{text:Array.from(m.getWalker({ignoreElementEnd:!1})).reduce((u,{item:_})=>_.is("$text")||_.is("$textProxy")?u+_.data:(c=r.createPositionAfter(_),""),""),range:r.createRange(c,m.end)}}class Xv extends(Ue()){constructor(r,c){super(),this.model=r,this.testCallback=c,this._hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",()=>{this.isEnabled?this._startListening():(this.stopListening(r.document.selection),this.stopListening(r.document))}),this._startListening()}get hasMatch(){return this._hasMatch}_startListening(){const r=this.model.document;this.listenTo(r.selection,"change:range",(c,{directChange:u})=>{u&&(r.selection.isCollapsed?this._evaluateTextBeforeSelection("selection"):this.hasMatch&&(this.fire("unmatched"),this._hasMatch=!1))}),this.listenTo(r,"change:data",(c,u)=>{!u.isUndo&&u.isLocal&&this._evaluateTextBeforeSelection("data",{batch:u})})}_evaluateTextBeforeSelection(r,c={}){const u=this.model,_=u.document.selection,x=u.createRange(u.createPositionAt(_.focus.parent,0),_.focus),{text:M,range:E}=S4(x,u),F=this.testCallback(M);if(!F&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!F,F){const V=Object.assign(c,{text:M,range:E});"object"==typeof F&&Object.assign(V,F),this.fire(`matched:${r}`,V)}}}class k5 extends lo{constructor(r){super(r),this.attributes=new Set,this._overrideUid=null}static get pluginName(){return"TwoStepCaretMovement"}init(){const r=this.editor,_=r.locale,x=r.model.document.selection;this.listenTo(r.editing.view.document,"arrowKey",(M,E)=>{if(!x.isCollapsed||E.shiftKey||E.altKey||E.ctrlKey)return;const F=E.keyCode==Ka.arrowright,V=E.keyCode==Ka.arrowleft;if(!F&&!V)return;const W=_.contentLanguageDirection;let dt=!1;dt="ltr"===W&&F||"rtl"===W&&V?this._handleForwardMovement(E):this._handleBackwardMovement(E),!0===dt&&M.stop()},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(x,"change:range",(M,E)=>{this._isNextGravityRestorationSkipped?this._isNextGravityRestorationSkipped=!1:this._isGravityOverridden&&(!E.directChange&&B0(x.getFirstPosition(),this.attributes)||this._restoreGravity())})}registerAttribute(r){this.attributes.add(r)}_handleForwardMovement(r){const c=this.attributes,u=this.editor.model.document.selection,_=u.getFirstPosition();return!(this._isGravityOverridden||_.isAtStart&&L4(u,c)||!B0(_,c)||(Hh(r),this._overrideGravity(),0))}_handleBackwardMovement(r){const c=this.attributes,u=this.editor.model,_=u.document.selection,x=_.getFirstPosition();return this._isGravityOverridden?(Hh(r),this._restoreGravity(),O4(u,c,x),!0):x.isAtStart?!!L4(_,c)&&(Hh(r),O4(u,c,x),!0):(E=c,!(!B0(x.getShiftedBy(-1),E)||(x.isAtEnd&&!L4(_,c)&&B0(x,c)?(Hh(r),O4(u,c,x),0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),1))));var E}get _isGravityOverridden(){return!!this._overrideUid}_overrideGravity(){this._overrideUid=this.editor.model.change(r=>r.overrideSelectionGravity())}_restoreGravity(){this.editor.model.change(r=>{r.restoreSelectionGravity(this._overrideUid),this._overrideUid=null})}}function L4(m,r){for(const c of r)if(m.hasAttribute(c))return!0;return!1}function O4(m,r,c){const u=c.nodeBefore;m.change(_=>{if(u){const x=[],M=m.schema.isObject(u)&&m.schema.isInline(u);for(const[E,F]of u.getAttributes())!m.schema.checkAttribute("$text",E)||M&&!1===m.schema.getAttributeProperties(E).copyFromObject||x.push([E,F]);_.setSelectionAttribute(x)}else _.removeSelectionAttribute(r)})}function Hh(m){m.preventDefault()}function B0(m,r){const{nodeBefore:c,nodeAfter:u}=m;for(const _ of r){const x=c?c.getAttribute(_):void 0;if((u?u.getAttribute(_):void 0)!==x)return!0}return!1}const D5={copyright:{from:"(c)",to:"\xa9"},registeredTrademark:{from:"(r)",to:"\xae"},trademark:{from:"(tm)",to:"\u2122"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"\xbd",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"\u2153",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"\u2154",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"\xbc",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"\xbe",null]},lessThanOrEqual:{from:"<=",to:"\u2264"},greaterThanOrEqual:{from:">=",to:"\u2265"},notEqual:{from:"!=",to:"\u2260"},arrowLeft:{from:"<-",to:"\u2190"},arrowRight:{from:"->",to:"\u2192"},horizontalEllipsis:{from:"...",to:"\u2026"},enDash:{from:/(^| )(--)( )$/,to:[null,"\u2013",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"\u2014",null]},quotesPrimary:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:a1("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:a1('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:a1('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:a1("'"),to:[null,"\u201a",null,"\u2019"]}},Dd={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},ua=["symbols","mathematical","typography","quotes"];function tx(m){return"string"==typeof m?new RegExp(`(${f5(m)})$`):m}function E4(m){return"string"==typeof m?()=>[m]:m instanceof Array?()=>m:m}function P5(m){return(m.textNode?m.textNode:m.nodeAfter).getAttributes()}function a1(m){return new RegExp(`(^|\\s)(${m})([^${m}]*)(${m})$`)}function gc(m,r,c,u){return u.createRange(ex(m,r,c,!0,u),ex(m,r,c,!1,u))}function ex(m,r,c,u,_){let x=m.textNode||(u?m.nodeBefore:m.nodeAfter),M=null;for(;x&&x.getAttribute(r)==c;)M=x,x=u?x.previousSibling:x.nextSibling;return M?_.createPositionAt(M,u?"before":"after"):m}function*m2(m,r){for(const c of r)c&&m.getAttributeProperties(c[0]).copyOnEnter&&(yield c)}class nx extends Za{execute(){this.editor.model.change(r=>{this.enterBlock(r),this.fire("afterExecute",{writer:r})})}enterBlock(r){const c=this.editor.model,u=c.document.selection,_=c.schema,x=u.isCollapsed,M=u.getFirstRange(),E=M.start.parent,F=M.end.parent;if(_.isLimit(E)||_.isLimit(F))return x||E!=F||c.deleteContent(u),!1;if(x){const V=m2(r.model.schema,u.getAttributes());return wi(r,M.start),r.setSelectionAttribute(V),!0}{const V=!(M.start.isAtStart&&M.end.isAtEnd),W=E==F;if(c.deleteContent(u,{leaveUnmerged:V}),V){if(W)return wi(r,u.focus),!0;r.setSelection(F,0)}}return!1}}function wi(m,r){m.split(r),m.setSelection(r.parent.nextSibling,0)}const Bn={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};class H extends Qu{constructor(r){super(r);const c=this.document;let u=!1;c.on("keydown",(_,x)=>{u=x.shiftKey}),c.on("beforeinput",(_,x)=>{if(!this.isEnabled)return;let M=x.inputType;D_isSafari&&u&&"insertParagraph"==M&&(M="insertLineBreak");const E=x.domEvent,F=Bn[M];if(!F)return;const V=new xp(c,"enter",x.targetRanges[0]);c.fire(V,new pc(r,E,{isSoft:F.isSoft})),V.stop.called&&_.stop()})}observe(){}stopObserving(){}}class Tm extends lo{static get pluginName(){return"Enter"}init(){const r=this.editor,c=r.editing.view,u=c.document;c.addObserver(H),r.commands.add("enter",new nx(r)),this.listenTo(u,"enter",(_,x)=>{u.isComposing||x.preventDefault(),x.isSoft||(r.execute("enter"),c.scrollToTheSelection())},{priority:"low"})}}class hu extends Za{execute(){const r=this.editor.model,c=r.document;r.change(u=>{(function(_,x,M){const E=M.isCollapsed,F=M.getFirstRange(),W=F.end.parent,dt=F.start.parent==W;if(E){const Zt=m2(_.schema,M.getAttributes());ka(_,x,F.end),x.removeSelectionAttribute(M.getAttributeKeys()),x.setSelectionAttribute(Zt)}else{const Zt=!(F.start.isAtStart&&F.end.isAtEnd);_.deleteContent(M,{leaveUnmerged:Zt}),dt?ka(_,x,M.focus):Zt&&x.setSelection(W,0)}})(r,u,c.selection),this.fire("afterExecute",{writer:u})})}refresh(){const r=this.editor.model;this.isEnabled=function(u,_){if(_.rangeCount>1)return!1;const x=_.anchor;if(!x||!u.checkChild(x,"softBreak"))return!1;const M=_.getFirstRange(),E=M.start.parent,F=M.end.parent;return!((I4(E,u)||I4(F,u))&&E!==F)}(r.schema,r.document.selection)}}function ka(m,r,c){const u=r.createElement("softBreak");m.insertContent(u,c),r.setSelection(u,"after")}function I4(m,r){return!m.is("rootElement")&&(r.isLimit(m)||I4(m.parent,r))}class N8 extends lo{static get pluginName(){return"ShiftEnter"}init(){const r=this.editor,u=r.conversion,_=r.editing.view,x=_.document;r.model.schema.register("softBreak",{allowWhere:"$text",isInline:!0}),u.for("upcast").elementToElement({model:"softBreak",view:"br"}),u.for("downcast").elementToElement({model:"softBreak",view:(M,{writer:E})=>E.createEmptyElement("br")}),_.addObserver(H),r.commands.add("shiftEnter",new hu(r)),this.listenTo(x,"enter",(M,E)=>{x.isComposing||E.preventDefault(),E.isSoft&&(r.execute("shiftEnter"),_.scrollToTheSelection())},{priority:"low"})}}class ix extends(Oe()){constructor(){super(...arguments),this._stack=[]}add(r,c){const u=this._stack,_=u[0];this._insertDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}remove(r,c){const u=this._stack,_=u[0];this._removeDescriptor(r);const x=u[0];_===x||s_(_,x)||this.fire("change:top",{oldDescriptor:_,newDescriptor:x,writer:c})}_insertDescriptor(r){const c=this._stack,u=c.findIndex(x=>x.id===r.id);if(s_(r,c[u]))return;u>-1&&c.splice(u,1);let _=0;for(;c[_]&&F8(c[_],r);)_++;c.splice(_,0,r)}_removeDescriptor(r){const c=this._stack,u=c.findIndex(_=>_.id===r);u>-1&&c.splice(u,1)}}function s_(m,r){return m&&r&&m.priority==r.priority&&_f(m.classes)==_f(r.classes)}function F8(m,r){return m.priority>r.priority||!(m.priority_f(r.classes)}function _f(m){return Array.isArray(m)?m.sort().join(","):m}const ox="ck-widget_selected";function El(m){return!!m.is("element")&&!!m.getCustomProperty("widget")}function ep(m,r,c={}){if(!m.is("containerElement"))throw new nt("widget-to-widget-wrong-element-type",null,{element:m});return r.setAttribute("contenteditable","false",m),r.addClass("ck-widget",m),r.setCustomProperty("widget",!0,m),m.getFillerOffset=R8,r.setCustomProperty("widgetLabel",[],m),c.label&&(_=c.label,m.getCustomProperty("widgetLabel").push(_)),c.hasSelectionHandle&&function(u,_){const x=_.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(M){const E=this.toDomElement(M),F=new zs;return F.set("content",' '),F.render(),E.appendChild(F.element),E});_.insert(_.createPositionAt(u,0),x),_.addClass(["ck-widget_with-selection-handle"],u)}(m,r),S5(m,r),m;var _}function q8(m,r,c){if(r.classes&&c.addClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.setAttribute(u,r.attributes[u],m)}function ax(m,r,c){if(r.classes&&c.removeClass(Ss(r.classes),m),r.attributes)for(const u in r.attributes)c.removeAttribute(u,m)}function S5(m,r,c=q8,u=ax){const _=new ix;_.on("change:top",(x,M)=>{M.oldDescriptor&&u(m,M.oldDescriptor,M.writer),M.newDescriptor&&c(m,M.newDescriptor,M.writer)}),r.setCustomProperty("addHighlight",(x,M,E)=>_.add(M,E),m),r.setCustomProperty("removeHighlight",(x,M,E)=>_.remove(M,E),m)}function L5(m,r,c={}){return r.addClass(["ck-editor__editable","ck-editor__nested-editable"],m),r.setAttribute("role","textbox",m),c.label&&r.setAttribute("aria-label",c.label,m),r.setAttribute("contenteditable",m.isReadOnly?"false":"true",m),m.on("change:isReadOnly",(u,_,x)=>{r.setAttribute("contenteditable",x?"false":"true",m)}),m.on("change:isFocused",(u,_,x)=>{x?r.addClass("ck-editor__nested-editable_focused",m):r.removeClass("ck-editor__nested-editable_focused",m)}),S5(m,r),m}function F4(m,r){const c=m.getSelectedElement();if(c){const u=np(m);if(u)return r.createRange(r.createPositionAt(c,u))}return v0(m,r)}function R8(){return null}const c_="widget-type-around";function ff(m,r,c){return!!m&&El(m)&&!c.isInline(r)}function np(m){return m.getAttribute(c_)}var rx=v(4921);No()(rx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const hf=["before","after"],_2=(new DOMParser).parseFromString(' ',"image/svg+xml").firstChild,q4="ck-widget__type-around_disabled";class cx extends lo{constructor(){super(...arguments),this._currentFakeCaretModelElement=null}static get pluginName(){return"WidgetTypeAround"}static get requires(){return[Tm,r_]}init(){const r=this.editor,c=r.editing.view;this.on("change:isEnabled",(u,_,x)=>{c.change(M=>{for(const E of c.document.roots)x?M.removeClass(q4,E):M.addClass(q4,E)}),x||r.model.change(M=>{M.removeSelectionAttribute(c_)})}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}destroy(){super.destroy(),this._currentFakeCaretModelElement=null}_insertParagraph(r,c){const u=this.editor,_=u.editing.view,x=u.model.schema.getAttributesWithProperty(r,"copyOnReplace",!0);u.execute("insertParagraph",{position:u.model.createPositionAt(r,c),attributes:x}),_.focus(),_.scrollToTheSelection()}_listenToIfEnabled(r,c,u,_){this.listenTo(r,c,(...x)=>{this.isEnabled&&u(...x)},_)}_insertParagraphAccordingToFakeCaretPosition(){const r=this.editor.model.document.selection,c=np(r);if(!c)return!1;const u=r.getSelectedElement();return this._insertParagraph(u,c),!0}_enableTypeAroundUIInjection(){const r=this.editor,c=r.model.schema,u=r.locale.t,_={before:u("Insert paragraph before block"),after:u("Insert paragraph after block")};r.editing.downcastDispatcher.on("insert",(x,M,E)=>{const F=E.mapper.toViewElement(M.item);F&&ff(F,M.item,c)&&(function(V,W,dt){const Zt=V.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(ue){const Ae=this.toDomElement(ue);return function(Ie,ln){for(const Dn of hf){const di=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__button",`ck-widget__type-around__button_${Dn}`],title:ln[Dn],"aria-hidden":"true"},children:[Ie.ownerDocument.importNode(_2,!0)]});Ie.appendChild(di.render())}}(Ae,W),function(Ie){const ln=new Ur({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});Ie.appendChild(ln.render())}(Ae),Ae});V.insert(V.createPositionAt(dt,"end"),Zt)}(E.writer,_,F),F.getCustomProperty("widgetLabel").push(()=>this.isEnabled?u("Press Enter to type after or press Shift + Enter to type before the widget"):""))},{priority:"low"})}_enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){const r=this.editor,c=r.model,u=c.document.selection,_=c.schema;function M(E){return`ck-widget_type-around_show-fake-caret_${E}`}this._listenToIfEnabled(r.editing.view.document,"arrowKey",(E,F)=>{this._handleArrowKeyPress(E,F)},{context:[El,"$text"],priority:"high"}),this._listenToIfEnabled(u,"change:range",(E,F)=>{F.directChange&&r.model.change(V=>{V.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(c.document,"change:data",()=>{const E=u.getSelectedElement();E&&ff(r.editing.mapper.toViewElement(E),E,_)||r.model.change(F=>{F.removeSelectionAttribute(c_)})}),this._listenToIfEnabled(r.editing.downcastDispatcher,"selection",(E,F,V)=>{const W=V.writer;if(this._currentFakeCaretModelElement){const Ae=V.mapper.toViewElement(this._currentFakeCaretModelElement);Ae&&(W.removeClass(hf.map(M),Ae),this._currentFakeCaretModelElement=null)}const dt=F.selection.getSelectedElement();if(!dt)return;const Zt=V.mapper.toViewElement(dt);if(!ff(Zt,dt,_))return;const ue=np(F.selection);ue&&(W.addClass(M(ue),Zt),this._currentFakeCaretModelElement=dt)}),this._listenToIfEnabled(r.ui.focusTracker,"change:isFocused",(E,F,V)=>{V||r.model.change(W=>{W.removeSelectionAttribute(c_)})})}_handleArrowKeyPress(r,c){const u=this.editor,_=u.model,x=_.document.selection,M=_.schema,E=u.editing.view,F=function(dt,Zt){const ue=b1(dt,Zt);return"down"===ue||"right"===ue}(c.keyCode,u.locale.contentLanguageDirection),V=E.document.selection.getSelectedElement();let W;ff(V,u.editing.mapper.toModelElement(V),M)?W=this._handleArrowKeyPressOnSelectedWidget(F):x.isCollapsed?W=this._handleArrowKeyPressWhenSelectionNextToAWidget(F):c.shiftKey||(W=this._handleArrowKeyPressWhenNonCollapsedSelection(F)),W&&(c.preventDefault(),r.stop())}_handleArrowKeyPressOnSelectedWidget(r){const c=this.editor.model,u=np(c.document.selection);return c.change(_=>u?u!==(r?"after":"before")&&(_.removeSelectionAttribute(c_),!0):(_.setSelectionAttribute(c_,r?"after":"before"),!0))}_handleArrowKeyPressWhenSelectionNextToAWidget(r){const c=this.editor,u=c.model,_=u.schema,x=c.plugins.get("Widget"),M=x._getObjectElementNextToSelection(r);return!!ff(c.editing.mapper.toViewElement(M),M,_)&&(u.change(E=>{x._setSelectionOverElement(M),E.setSelectionAttribute(c_,r?"before":"after")}),!0)}_handleArrowKeyPressWhenNonCollapsedSelection(r){const c=this.editor,u=c.model,_=u.schema,x=c.editing.mapper,M=u.document.selection,E=r?M.getLastPosition().nodeBefore:M.getFirstPosition().nodeAfter;return!!ff(x.toViewElement(E),E,_)&&(u.change(F=>{F.setSelection(E,"on"),F.setSelectionAttribute(c_,r?"after":"before")}),!0)}_enableInsertingParagraphsOnButtonClick(){const r=this.editor,c=r.editing.view;this._listenToIfEnabled(c.document,"mousedown",(u,_)=>{const x=_.domTarget.closest(".ck-widget__type-around__button");if(!x)return;const M=x.classList.contains("ck-widget__type-around__button_before")?"before":"after",E=function(V,W){const dt=V.closest(".ck-widget");return W.mapDomToView(dt)}(x,c.domConverter),F=r.editing.mapper.toModelElement(E);this._insertParagraph(F,M),_.preventDefault(),u.stop()})}_enableInsertingParagraphsOnEnterKeypress(){const r=this.editor,c=r.model.document.selection;this._listenToIfEnabled(r.editing.view.document,"enter",(_,x)=>{if("atTarget"!=_.eventPhase)return;const M=c.getSelectedElement(),E=r.editing.mapper.toViewElement(M),F=r.model.schema;let V;this._insertParagraphAccordingToFakeCaretPosition()?V=!0:ff(E,M,F)&&(this._insertParagraph(M,x.isSoft?"before":"after"),V=!0),V&&(x.preventDefault(),_.stop())},{context:El})}_enableInsertingParagraphsOnTypingKeystroke(){const r=this.editor.editing.view.document;this._listenToIfEnabled(r,"insertText",(c,u)=>{this._insertParagraphAccordingToFakeCaretPosition()&&(u.selection=r.selection)},{priority:"high"}),D_isAndroid?this._listenToIfEnabled(r,"keydown",(c,u)=>{229==u.keyCode&&this._insertParagraphAccordingToFakeCaretPosition()}):this._listenToIfEnabled(r,"compositionstart",()=>{this._insertParagraphAccordingToFakeCaretPosition()},{priority:"high"})}_enableDeleteIntegration(){const r=this.editor,u=r.model,_=u.schema;this._listenToIfEnabled(r.editing.view.document,"delete",(x,M)=>{if("atTarget"!=x.eventPhase)return;const E=np(u.document.selection);if(!E)return;const F=M.direction,V=u.document.selection.getSelectedElement(),W="forward"==F;if("before"===E===W)r.execute("delete",{selection:u.createSelection(V,"on")});else{const dt=_.getNearestSelectionRange(u.createPositionAt(V,E),F);if(dt)if(dt.isCollapsed){const Zt=u.createSelection(dt.start);if(u.modifySelection(Zt,{direction:F}),Zt.focus.isEqual(dt.start)){const ue=function(Ae,Ie){let ln=Ie;for(const Dn of Ie.getAncestors({parentFirst:!0})){if(Dn.childCount>1||Ae.isLimit(Dn))break;ln=Dn}return ln}(_,dt.start.parent);u.deleteContent(u.createSelection(ue,"on"),{doNotAutoparagraph:!0})}else u.change(ue=>{ue.setSelection(dt),r.execute(W?"deleteForward":"delete")})}else u.change(Zt=>{Zt.setSelection(dt),r.execute(W?"deleteForward":"delete")})}M.preventDefault(),x.stop()},{context:El})}_enableInsertContentIntegration(){const c=this.editor.model,u=c.document.selection;this._listenToIfEnabled(this.editor.model,"insertContent",(_,[x,M])=>{if(M&&!M.is("documentSelection"))return;const E=np(u);return E?(_.stop(),c.change(F=>{const V=u.getSelectedElement(),W=c.createPositionAt(V,E),dt=F.createSelection(W),Zt=c.insertContent(x,dt);return F.setSelection(dt),Zt})):void 0},{priority:"high"})}_enableInsertObjectIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"insertObject",(u,_)=>{const[,x,M={}]=_;if(x&&!x.is("documentSelection"))return;const E=np(c);E&&(M.findOptimalPosition=E,_[3]=M)},{priority:"high"})}_enableDeleteContentIntegration(){const c=this.editor.model.document.selection;this._listenToIfEnabled(this.editor.model,"deleteContent",(u,[_])=>{_&&!_.is("documentSelection")||np(c)&&u.stop()},{priority:"high"})}}function ux(m,r,c){const u=m.schema,_=m.createRangeIn(r.root),x="forward"==c?"elementStart":"elementEnd";for(const{previousPosition:M,item:E,type:F}of _.getWalker({startPosition:r,direction:c})){if(u.isLimit(E)&&!u.isInline(E))return M;if(F==x&&u.isBlock(E))return null}return null}function gf(m,r,c){const u="backward"==c?r.end:r.start;if(m.checkChild(u,"$text"))return u;for(const{nextPosition:_}of r.getWalker({direction:c}))if(m.checkChild(_,"$text"))return _;return null}var zh=v(3488);No()(zh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class V0 extends lo{constructor(){super(...arguments),this._previouslySelected=new Set}static get pluginName(){return"Widget"}static get requires(){return[cx,r_]}init(){const r=this.editor,c=r.editing.view,u=c.document;this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{const E=M.writer,F=x.selection;if(F.isCollapsed)return;const V=F.getSelectedElement();if(!V)return;const W=r.editing.mapper.toViewElement(V);var dt;El(W)&&M.consumable.consume(F,"selection")&&E.setSelection(E.createRangeOn(W),{fake:!0,label:(dt=W,dt.getCustomProperty("widgetLabel").reduce((Zt,ue)=>"function"==typeof ue?Zt?Zt+". "+ue():ue():Zt?Zt+". "+ue:ue,""))})}),this.editor.editing.downcastDispatcher.on("selection",(_,x,M)=>{this._clearPreviouslySelectedWidgets(M.writer);const E=M.writer,F=E.document.selection;let V=null;for(const W of F.getRanges())for(const dt of W){const Zt=dt.item;El(Zt)&&!H8(Zt,V)&&(E.addClass(ox,Zt),this._previouslySelected.add(Zt),V=Zt)}},{priority:"low"}),c.addObserver(C0),this.listenTo(u,"mousedown",(..._)=>this._onMousedown(..._)),this.listenTo(u,"arrowKey",(..._)=>{this._handleSelectionChangeOnArrowKeyPress(..._)},{context:[El,"$text"]}),this.listenTo(u,"arrowKey",(..._)=>{this._preventDefaultOnArrowKeyPress(..._)},{context:"$root"}),this.listenTo(u,"arrowKey",function lx(m){const r=m.model;return(c,u)=>{const x=u.keyCode==Ka.arrowdown,M=u.shiftKey,E=r.document.selection;if(u.keyCode!=Ka.arrowup&&!x)return;const F=x;if(M&&!(W=E).isCollapsed&&W.isBackward==F)return;var W;const V=function(W,dt,Zt){const ue=W.model;if(Zt){const Ae=dt.isCollapsed?dt.focus:dt.getLastPosition(),Ie=ux(ue,Ae,"forward");if(!Ie)return null;const ln=ue.createRange(Ae,Ie),Dn=gf(ue.schema,ln,"backward");return Dn?ue.createRange(Ae,Dn):null}{const Ae=dt.isCollapsed?dt.focus:dt.getFirstPosition(),Ie=ux(ue,Ae,"backward");if(!Ie)return null;const ln=ue.createRange(Ie,Ae),Dn=gf(ue.schema,ln,"forward");return Dn?ue.createRange(Dn,Ae):null}}(m,E,F);if(V){if(V.isCollapsed&&(E.isCollapsed||M))return;(V.isCollapsed||function(W,dt,Zt){const ue=W.model,Ae=W.view.domConverter;if(Zt){const Ri=ue.createSelection(dt.start);ue.modifySelection(Ri),Ri.focus.isAtEnd||dt.start.isEqual(Ri.focus)||(dt=ue.createRange(Ri.focus,dt.end))}const Ie=W.mapper.toViewRange(dt),ln=Ae.viewRangeToDom(Ie),Dn=ce.getDomRangeRects(ln);let di;for(const Ri of Dn)if(void 0!==di){if(Math.round(Ri.top)>=di)return!1;di=Math.max(di,Math.round(Ri.bottom))}else di=Math.round(Ri.bottom);return!0}(m,V,F))&&(r.change(W=>{const dt=F?V.end:V.start;if(M){const Zt=r.createSelection(E.anchor);Zt.setFocus(dt),W.setSelection(Zt)}else W.setSelection(dt)}),c.stop(),u.preventDefault(),u.stopPropagation())}}}(this.editor.editing),{context:"$text"}),this.listenTo(u,"delete",(_,x)=>{this._handleDelete("forward"==x.direction)&&(x.preventDefault(),_.stop())},{context:"$root"})}_onMousedown(r,c){const u=this.editor,_=u.editing.view,x=_.document;let M=c.target;if(function(F){let V=F;for(;V;){if(V.is("editableElement")&&!V.is("rootElement"))return!0;if(El(V))return!1;V=V.parent}return!1}(M)){if((D_isSafari||D_isGecko)&&c.domEvent.detail>=3){const F=u.editing.mapper,V=M.is("attributeElement")?M.findAncestor(dt=>!dt.is("attributeElement")):M,W=F.toModelElement(V);c.preventDefault(),this.editor.model.change(dt=>{dt.setSelection(W,"in")})}return}if(!El(M)&&(M=M.findAncestor(El),!M))return;D_isAndroid&&c.preventDefault(),x.isFocused||_.focus();const E=u.editing.mapper.toModelElement(M);this._setSelectionOverElement(E)}_handleSelectionChangeOnArrowKeyPress(r,c){const u=c.keyCode,_=this.editor.model,x=_.schema,M=_.document.selection,E=M.getSelectedElement(),F=b1(u,this.editor.locale.contentLanguageDirection),V="down"==F||"right"==F,W="up"==F||"down"==F;if(E&&x.isObject(E)){const Zt=V?M.getLastPosition():M.getFirstPosition(),ue=x.getNearestSelectionRange(Zt,V?"forward":"backward");return void(ue&&(_.change(Ae=>{Ae.setSelection(ue)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed&&!c.shiftKey){const Zt=M.getFirstPosition(),ue=M.getLastPosition(),Ae=Zt.nodeAfter,Ie=ue.nodeBefore;return void((Ae&&x.isObject(Ae)||Ie&&x.isObject(Ie))&&(_.change(ln=>{ln.setSelection(V?ue:Zt)}),c.preventDefault(),r.stop()))}if(!M.isCollapsed)return;const dt=this._getObjectElementNextToSelection(V);if(dt&&x.isObject(dt)){if(x.isInline(dt)&&W)return;this._setSelectionOverElement(dt),c.preventDefault(),r.stop()}}_preventDefaultOnArrowKeyPress(r,c){const u=this.editor.model,_=u.schema,x=u.document.selection.getSelectedElement();x&&_.isObject(x)&&(c.preventDefault(),r.stop())}_handleDelete(r){const c=this.editor.model.document.selection;if(!this.editor.model.canEditAt(c)||!c.isCollapsed)return;const u=this._getObjectElementNextToSelection(r);return u?(this.editor.model.change(_=>{let x=c.anchor.parent;for(;x.isEmpty;){const M=x;x=M.parent,_.remove(M)}this._setSelectionOverElement(u)}),!0):void 0}_setSelectionOverElement(r){this.editor.model.change(c=>{c.setSelection(c.createRangeOn(r))})}_getObjectElementNextToSelection(r){const c=this.editor.model,u=c.schema,_=c.document.selection,x=c.createSelection(_);if(c.modifySelection(x,{direction:r?"forward":"backward"}),x.isEqual(_))return null;const M=r?x.focus.nodeBefore:x.focus.nodeAfter;return M&&u.isObject(M)?M:null}_clearPreviouslySelectedWidgets(r){for(const c of this._previouslySelected)r.removeClass(ox,c);this._previouslySelected.clear()}}function H8(m,r){return!!r&&Array.from(m.getAncestors()).includes(r)}class j0 extends lo{constructor(){super(...arguments),this._toolbarDefinitions=new Map}static get requires(){return[F0]}static get pluginName(){return"WidgetToolbarRepository"}init(){const r=this.editor;if(r.plugins.has("BalloonToolbar")){const c=r.plugins.get("BalloonToolbar");this.listenTo(c,"show",u=>{(function(_){const x=_.getSelectedElement();return!(!x||!El(x))})(r.editing.view.document.selection)&&u.stop()},{priority:"high"})}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui,"update",()=>{this._updateToolbarsVisibility()}),this.listenTo(r.ui.focusTracker,"change:isFocused",()=>{this._updateToolbarsVisibility()},{priority:"low"})}destroy(){super.destroy();for(const r of this._toolbarDefinitions.values())r.view.destroy()}register(r,{ariaLabel:c,items:u,getRelatedElement:_,balloonClassName:x="ck-toolbar-container"}){if(!u.length)return void Tt("widget-toolbar-no-items",{toolbarId:r});const M=this.editor,E=M.t,F=new T0(M.locale);if(F.ariaLabel=c||E("Widget toolbar"),this._toolbarDefinitions.has(r))throw new nt("widget-toolbar-duplicated",this,{toolbarId:r});const V={view:F,getRelatedElement:_,balloonClassName:x,itemsConfig:u,initialized:!1};M.ui.addToolbar(F,{isContextual:!0,beforeFocus:()=>{const W=_(M.editing.view.document.selection);W&&this._showToolbar(V,W)},afterBlur:()=>{this._hideToolbar(V)}}),this._toolbarDefinitions.set(r,V)}_updateToolbarsVisibility(){let r=0,c=null,u=null;for(const _ of this._toolbarDefinitions.values()){const x=_.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&x)if(this.editor.ui.focusTracker.isFocused){const M=x.getAncestors().length;M>r&&(r=M,c=x,u=_)}else this._isToolbarVisible(_)&&this._hideToolbar(_);else this._isToolbarInBalloon(_)&&this._hideToolbar(_)}u&&this._showToolbar(u,c)}_hideToolbar(r){this._balloon.remove(r.view),this.stopListening(this._balloon,"change:visibleView")}_showToolbar(r,c){this._isToolbarVisible(r)?O5(this.editor,c):this._isToolbarInBalloon(r)||(r.initialized||(r.initialized=!0,r.view.fillFromConfig(r.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:r.view,position:E5(this.editor,c),balloonClassName:r.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",()=>{for(const u of this._toolbarDefinitions.values())if(this._isToolbarVisible(u)){const _=u.getRelatedElement(this.editor.editing.view.document.selection);O5(this.editor,_)}}))}_isToolbarVisible(r){return this._balloon.visibleView===r.view}_isToolbarInBalloon(r){return this._balloon.hasView(r.view)}}function O5(m,r){const c=m.plugins.get("ContextualBalloon"),u=E5(m,r);c.updatePosition(u)}function E5(m,r){const u=id.defaultPositions;return{target:m.editing.view.domConverter.mapViewToDom(r),positions:[u.northArrowSouth,u.northArrowSouthWest,u.northArrowSouthEast,u.southArrowNorth,u.southArrowNorthWest,u.southArrowNorthEast,u.viewportStickyNorth]}}Ue(),Ue();var px=v(8506);No()(px.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const I5=bo("px");class z8 extends oa{constructor(){super();const r=this.bindTemplate;this.set({isVisible:!1,left:null,top:null,width:null}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-clipboard-drop-target-line",r.if("isVisible","ck-hidden",c=>!c)],style:{left:r.to("left",c=>I5(c)),top:r.to("top",c=>I5(c)),width:r.to("width",c=>I5(c))}}})}}class N5 extends lo{constructor(){super(...arguments),this.removeDropMarkerDelayed=wr(()=>this.removeDropMarker(),40),this._updateDropMarkerThrottled=Sh(r=>this._updateDropMarker(r),40),this._reconvertMarkerThrottled=Sh(()=>{this.editor.model.markers.has("drop-target")&&this.editor.editing.reconvertMarker("drop-target")},0),this._dropTargetLineView=new z8,this._domEmitter=new(Xi()),this._scrollables=new Map}static get pluginName(){return"DragDropTarget"}init(){this._setupDropMarker()}destroy(){this._domEmitter.stopListening();for(const{resizeObserver:r}of this._scrollables.values())r.destroy();return this._updateDropMarkerThrottled.cancel(),this.removeDropMarkerDelayed.cancel(),this._reconvertMarkerThrottled.cancel(),super.destroy()}updateDropMarker(r,c,u,_,x){this.removeDropMarkerDelayed.cancel();const M=F5(this.editor,r,c,u,_,x);M&&this._updateDropMarkerThrottled(M)}getFinalDropRange(r,c,u,_,x){const M=F5(this.editor,r,c,u,_,x);return this.removeDropMarker(),M}removeDropMarker(){const r=this.editor.model;this.removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),this._dropTargetLineView.isVisible=!1,r.markers.has("drop-target")&&r.change(c=>{c.removeMarker("drop-target")})}_setupDropMarker(){const r=this.editor;r.ui.view.body.add(this._dropTargetLineView),r.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),r.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:(c,{writer:u})=>{if(r.model.schema.checkChild(c.markerRange.start,"$text"))return this._dropTargetLineView.isVisible=!1,this._createDropTargetPosition(u);c.markerRange.isCollapsed?this._updateDropTargetLine(c.markerRange):this._dropTargetLineView.isVisible=!1}})}_updateDropMarker(r){const c=this.editor,u=c.model.markers;c.model.change(_=>{u.has("drop-target")?u.get("drop-target").getRange().isEqual(r)||_.updateMarker("drop-target",{range:r}):_.addMarker("drop-target",{range:r,usingOperation:!1,affectsData:!1})})}_createDropTargetPosition(r){return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(c){const u=this.toDomElement(c);return u.append("\u2060",c.createElement("span"),"\u2060"),u})}_updateDropTargetLine(r){const c=this.editor.editing,u=r.start.nodeBefore,_=r.start.nodeAfter,x=r.start.parent,M=u?c.mapper.toViewElement(u):null,E=M?c.view.domConverter.mapViewToDom(M):null,F=_?c.mapper.toViewElement(_):null,V=F?c.view.domConverter.mapViewToDom(F):null,W=c.mapper.toViewElement(x),dt=c.view.domConverter.mapViewToDom(W),Zt=this._getScrollableRect(W),{scrollX:ue,scrollY:Ae}=Mt.window,Ie=E?new ce(E):null,ln=V?new ce(V):null,Dn=new ce(dt).excludeScrollbarsAndBorders(),di=Ie?Ie.bottom:Dn.top,Ri=ln?ln.top:Dn.bottom,Go=Mt.window.getComputedStyle(dt),Da=di<=Ri?(di+Ri)/2:Ri;if(Zt.topZt.is("element")&&!ny(m,Zt));let W=0,dt=V.length;if(0==dt)return M.createRange(M.createPositionAt(F,"end"));for(;Wr in m?Y8(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class V8 extends lo{constructor(){super(...arguments),this._isBlockDragging=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDropBlockToolbar"}init(){const r=this.editor;if(this.listenTo(r,"change:isReadOnly",(c,u,_)=>{_?(this.forceDisabled("readOnlyMode"),this._isBlockDragging=!1):this.clearForceDisabled("readOnlyMode")}),D_isAndroid&&this.forceDisabled("noAndroidSupport"),r.plugins.has("BlockToolbar")){const c=r.plugins.get("BlockToolbar").buttonView.element;this._domEmitter.listenTo(c,"dragstart",(u,_)=>this._handleBlockDragStart(_)),this._domEmitter.listenTo(Mt.document,"dragover",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"drop",(u,_)=>this._handleBlockDragging(_)),this._domEmitter.listenTo(Mt.document,"dragend",()=>this._handleBlockDragEnd(),{useCapture:!0}),this.isEnabled&&c.setAttribute("draggable","true"),this.on("change:isEnabled",(u,_,x)=>{c.setAttribute("draggable",x?"true":"false")})}}destroy(){return this._domEmitter.stopListening(),super.destroy()}_handleBlockDragStart(r){if(!this.isEnabled)return;const c=this.editor.model,_=this.editor.editing.view,x=Array.from(c.document.selection.getSelectedBlocks()),M=c.createRange(c.createPositionBefore(x[0]),c.createPositionAfter(x[x.length-1]));c.change(E=>E.setSelection(M)),this._isBlockDragging=!0,_.focus(),_.getObserver(qh).onDomEvent(r)}_handleBlockDragging(r){if(!this.isEnabled||!this._isBlockDragging)return;const c=r.clientX+("ltr"==this.editor.locale.contentLanguageDirection?100:-100),u=r.clientY,_=document.elementFromPoint(c,u),x=this.editor.editing.view;var M;_&&_.closest(".ck-editor__editable")&&x.getObserver(qh).onDomEvent((M=((F,V)=>{for(var W in V||(V={}))fx.call(V,W)&&hx(F,W,V[W]);if(bf)for(var W of bf(V))q5.call(V,W)&&hx(F,W,V[W]);return F})({},r),B8(M,_x({type:r.type,dataTransfer:r.dataTransfer,target:_,clientX:c,clientY:u,preventDefault:()=>r.preventDefault(),stopPropagation:()=>r.stopPropagation()}))))}_handleBlockDragEnd(){this._isBlockDragging=!1}}var gx=v(903);No()(gx.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class vx extends lo{constructor(){super(...arguments),this._clearDraggableAttributesDelayed=wr(()=>this._clearDraggableAttributes(),40),this._blockMode=!1,this._domEmitter=new(Xi())}static get pluginName(){return"DragDrop"}static get requires(){return[Np,V0,N5,V8]}init(){const r=this.editor,c=r.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,c.addObserver(qh),c.addObserver(C0),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDraggableAttributeHandling(),this.listenTo(r,"change:isReadOnly",(u,_,x)=>{x?this.forceDisabled("readOnlyMode"):this.clearForceDisabled("readOnlyMode")}),this.on("change:isEnabled",(u,_,x)=>{x||this._finalizeDragging(!1)}),D_isAndroid&&this.forceDisabled("noAndroidSupport")}destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._previewContainer&&this._previewContainer.remove(),this._domEmitter.stopListening(),this._clearDraggableAttributesDelayed.cancel(),super.destroy()}_setupDragging(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,x=r.plugins.get(N5);this.listenTo(_,"dragstart",(M,E)=>{if(E.target&&E.target.is("editableElement")||(this._prepareDraggedRange(E.target),!this._draggedRange))return void E.preventDefault();this._draggingUid=Pt(),E.dataTransfer.effectAllowed=this.isEnabled?"copyMove":"copy",E.dataTransfer.setData("application/ckeditor5-dragging-uid",this._draggingUid);const F=c.createSelection(this._draggedRange.toRange());this.editor.plugins.get("ClipboardPipeline")._fireOutputTransformationEvent(E.dataTransfer,F,"dragstart");const{dataTransfer:V,domTarget:W,domEvent:dt}=E,{clientX:Zt}=dt;this._updatePreview({dataTransfer:V,domTarget:W,clientX:Zt}),E.stopPropagation(),this.isEnabled||(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid="")},{priority:"low"}),this.listenTo(_,"dragend",(M,E)=>{this._finalizeDragging(!E.dataTransfer.isCanceled&&"move"==E.dataTransfer.dropEffect)},{priority:"low"}),this._domEmitter.listenTo(Mt.document,"dragend",()=>{this._blockMode=!1},{useCapture:!0}),this.listenTo(_,"dragenter",()=>{this.isEnabled&&u.focus()}),this.listenTo(_,"dragleave",()=>{x.removeDropMarkerDelayed()}),this.listenTo(_,"dragging",(M,E)=>{if(!this.isEnabled)return void(E.dataTransfer.dropEffect="none");const{clientX:F,clientY:V}=E.domEvent;x.updateDropMarker(E.target,E.targetRanges,F,V,this._blockMode),this._draggedRange||(E.dataTransfer.dropEffect="copy"),D_isGecko||("copy"==E.dataTransfer.effectAllowed?E.dataTransfer.dropEffect="copy":["all","copyMove"].includes(E.dataTransfer.effectAllowed)&&(E.dataTransfer.dropEffect="move")),M.stop()},{priority:"low"})}_setupClipboardInputIntegration(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get(N5);this.listenTo(c,"clipboardInput",(_,x)=>{if("drop"!=x.method)return;const{clientX:M,clientY:E}=x.domEvent,F=u.getFinalDropRange(x.target,x.targetRanges,M,E,this._blockMode);return F?(this._draggedRange&&this._draggingUid!=x.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(this._draggedRange.detach(),this._draggedRange=null,this._draggingUid=""),"move"==xx(x.dataTransfer)&&this._draggedRange&&this._draggedRange.containsRange(F,!0)?(this._finalizeDragging(!1),void _.stop()):void(x.targetRanges=[r.editing.mapper.toViewRange(F)])):(this._finalizeDragging(!1),void _.stop())},{priority:"high"})}_setupContentInsertionIntegration(){const r=this.editor.plugins.get(Np);r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _=u.targetRanges.map(x=>this.editor.editing.mapper.toModelRange(x));this.editor.model.change(x=>x.setSelection(_))},{priority:"high"}),r.on("contentInsertion",(c,u)=>{if(!this.isEnabled||"drop"!==u.method)return;const _="move"==xx(u.dataTransfer);this._finalizeDragging((!u.resultRange||!u.resultRange.isCollapsed)&&_)},{priority:"lowest"})}_setupDraggableAttributeHandling(){const r=this.editor,c=r.editing.view,u=c.document;this.listenTo(u,"mousedown",(_,x)=>{if(D_isAndroid||!x)return;this._clearDraggableAttributesDelayed.cancel();let M=Yh(x.target);if(D_isBlink&&!r.isReadOnly&&!M&&!u.selection.isCollapsed){const E=u.selection.getSelectedElement();E&&El(E)||(M=u.selection.editableElement)}M&&(c.change(E=>{E.setAttribute("draggable","true",M)}),this._draggableElement=r.editing.mapper.toModelElement(M))}),this.listenTo(u,"mouseup",()=>{D_isAndroid||this._clearDraggableAttributesDelayed()})}_clearDraggableAttributes(){const r=this.editor.editing;r.view.change(c=>{this._draggableElement&&"$graveyard"!=this._draggableElement.root.rootName&&c.removeAttribute("draggable",r.mapper.toViewElement(this._draggableElement)),this._draggableElement=null})}_finalizeDragging(r){const c=this.editor,u=c.model;c.plugins.get(N5).removeDropMarker(),this._clearDraggableAttributes(),c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._previewContainer&&(this._previewContainer.remove(),this._previewContainer=void 0),this._draggedRange&&(r&&this.isEnabled&&u.change(_=>{const x=u.createSelection(this._draggedRange);u.deleteContent(x,{doNotAutoparagraph:!0});const M=x.getFirstPosition().parent;M.isEmpty&&!u.schema.checkChild(M,"$text")&&u.schema.checkChild(M,"paragraph")&&_.insertElement("paragraph",M,0)}),this._draggedRange.detach(),this._draggedRange=null)}_prepareDraggedRange(r){const c=this.editor,u=c.model,_=u.document.selection,x=r?Yh(r):null;if(x){const V=c.editing.mapper.toModelElement(x);return this._draggedRange=Xu.fromRange(u.createRangeOn(V)),this._blockMode=u.schema.isBlock(V),void(c.plugins.has("WidgetToolbarRepository")&&c.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop"))}if(_.isCollapsed&&!_.getFirstPosition().parent.isEmpty)return;const M=Array.from(_.getSelectedBlocks()),E=_.getFirstRange();if(0==M.length)return void(this._draggedRange=Xu.fromRange(E));const F=Cx(u,M);if(M.length>1)this._draggedRange=Xu.fromRange(F),this._blockMode=!0;else if(1==M.length){const V=E.start.isTouching(F.start)&&E.end.isTouching(F.end);this._draggedRange=Xu.fromRange(V?F:E),this._blockMode=V}u.change(V=>V.setSelection(this._draggedRange.toRange()))}_updatePreview({dataTransfer:r,domTarget:c,clientX:u}){const _=this.editor.editing.view,M=_.domConverter.mapViewToDom(_.document.selection.editableElement),E=Mt.window.getComputedStyle(M);this._previewContainer?this._previewContainer.firstElementChild&&this._previewContainer.removeChild(this._previewContainer.firstElementChild):(this._previewContainer=We(Mt.document,"div",{style:"position: fixed; left: -999999px;"}),Mt.document.body.appendChild(this._previewContainer));const F=new ce(M);if(M.contains(c))return;const V=parseFloat(E.paddingLeft),W=We(Mt.document,"div");W.className="ck ck-content",W.style.width=E.width,W.style.paddingLeft=`${F.left-u+V}px`,D_isiOS&&(W.style.backgroundColor="white"),W.innerHTML=r.getData("text/html"),r.setDragImage(W,0,0),this._previewContainer.appendChild(W)}}function xx(m){return D_isGecko?m.dropEffect:["all","copyMove"].includes(m.effectAllowed)?"move":"copy"}function Yh(m){if(m.is("editableElement"))return null;if(m.hasClass("ck-widget__selection-handle"))return m.findAncestor(El);if(El(m))return m;const r=m.findAncestor(c=>El(c)||c.is("editableElement"));return El(r)?r:null}function Cx(m,r){const c=r[0],u=r[r.length-1],_=c.getCommonAncestor(u),x=m.createPositionBefore(c),M=m.createPositionAfter(u);if(_&&_.is("element")&&!m.schema.isLimit(_)){const E=m.createRangeOn(_),F=x.isTouching(E.start),V=M.isTouching(E.end);if(F&&V)return Cx(m,[_])}return m.createRange(x,M)}class Ax extends lo{static get pluginName(){return"PastePlainText"}static get requires(){return[Np]}init(){const r=this.editor,c=r.model,u=r.editing.view,_=u.document,x=c.document.selection;let M=!1;u.addObserver(qh),this.listenTo(_,"keydown",(E,F)=>{M=F.shiftKey}),r.plugins.get(Np).on("contentInsertion",(E,F)=>{(M||function(V,W){if(V.childCount>1)return!1;const dt=V.getChild(0);return!W.isObject(dt)&&0==Array.from(dt.getAttributeKeys()).length}(F.content,c.schema))&&c.change(V=>{const W=Array.from(x.getAttributes()).filter(([Zt])=>c.schema.getAttributeProperties(Zt).isFormatting);x.isCollapsed||c.deleteContent(x,{doNotAutoparagraph:!0}),W.push(...x.getAttributes());const dt=V.createRangeIn(F.content);for(const Zt of dt.getItems())Zt.is("$textProxy")&&V.setAttributes(W,Zt)})})}}class yx extends lo{static get pluginName(){return"Clipboard"}static get requires(){return[Np,vx,Ax]}}class H4 extends Za{constructor(r){super(r),this.affectsData=!1}execute(){const r=this.editor.model,c=r.document.selection;let u=r.schema.getLimitElement(c);if(c.containsEntireContent(u)||!Tx(r.schema,u))do{if(u=u.parent,!u)return}while(!Tx(r.schema,u));r.change(_=>{_.setSelection(u,"in")})}}function Tx(m,r){return m.isLimit(r)&&(m.checkChild(r,"$text")||m.checkChild(r,"paragraph"))}const wx=tc("Ctrl+A");class j8 extends lo{static get pluginName(){return"SelectAllEditing"}init(){const r=this.editor,c=r.editing.view.document;r.commands.add("selectAll",new H4(r)),this.listenTo(c,"keydown",(u,_)=>{Tc(_)===wx&&(r.execute("selectAll"),_.preventDefault())})}}class R5 extends lo{static get pluginName(){return"SelectAllUI"}init(){const r=this.editor;r.ui.componentFactory.add("selectAll",c=>{const u=r.commands.get("selectAll"),_=new $o(c);return _.set({label:(0,c.t)("Select all"),icon:' ',keystroke:"Ctrl+A",tooltip:!0}),_.bind("isEnabled").to(u,"isEnabled"),this.listenTo(_,"execute",()=>{r.execute("selectAll"),r.editing.view.focus()}),_})}}class J8 extends lo{static get requires(){return[j8,R5]}static get pluginName(){return"SelectAll"}}var Ux=Object.defineProperty,H5=Object.getOwnPropertySymbols,Zx=Object.prototype.hasOwnProperty,Mx=Object.prototype.propertyIsEnumerable,kx=(m,r,c)=>r in m?Ux(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class Bh extends Za{constructor(r){super(r),this._stack=[],this._createdBatches=new WeakSet,this.refresh(),this._isEnabledBasedOnSelection=!1,this.listenTo(r.data,"set",(c,u)=>{u[1]=((x,M)=>{for(var E in M||(M={}))Zx.call(M,E)&&kx(x,E,M[E]);if(H5)for(var E of H5(M))Mx.call(M,E)&&kx(x,E,M[E]);return x})({},u[1]);const _=u[1];_.batchType||(_.batchType={isUndoable:!1})},{priority:"high"}),this.listenTo(r.data,"set",(c,u)=>{u[1].batchType.isUndoable||this.clearStack()})}refresh(){this.isEnabled=this._stack.length>0}get createdBatches(){return this._createdBatches}addBatch(r){const c=this.editor.model.document.selection,u={ranges:c.hasOwnRange?Array.from(c.getRanges()):[],isBackward:c.isBackward};this._stack.push({batch:r,selection:u}),this.refresh()}clearStack(){this._stack=[],this.refresh()}_restoreSelection(r,c,u){const _=this.editor.model,x=_.document,M=[],E=r.map(V=>V.getTransformedByOperations(u)),F=E.flat();for(const V of E){const W=V.filter(dt=>dt.root!=x.graveyard).filter(dt=>!Dx(dt,F));W.length&&(G8(W),M.push(W[0]))}M.length&&_.change(V=>{V.setSelection(M,{backward:c})})}_undo(r,c){const u=this.editor.model,_=u.document;this._createdBatches.add(c);const x=r.operations.slice().filter(M=>M.isDocumentOperation);x.reverse();for(const M of x){const F=Array.from(_.history.getOperations(M.baseVersion+1)),V=_h([M.getReversed()],F,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;for(let W of V){const dt=W.affectedSelectable;dt&&!u.canEditAt(dt)&&(W=new fc(W.baseVersion)),c.addOperation(W),u.applyOperation(W),_.history.setOperationAsUndone(M,W)}}}}function G8(m){m.sort((r,c)=>r.start.isBefore(c.start)?-1:1);for(let r=1;rc!==m&&c.containsRange(m,!0))}class Px extends Bh{execute(r=null){const c=r?this._stack.findIndex(x=>x.batch==r):this._stack.length-1,u=this._stack.splice(c,1)[0],_=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(_,()=>{this._undo(u.batch,_);const x=this.editor.model.document.history.getOperations(u.batch.baseVersion);this._restoreSelection(u.selection.ranges,u.selection.isBackward,x)}),this.fire("revert",u.batch,_),this.refresh()}}class Q8 extends Bh{execute(){const r=this._stack.pop(),c=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(c,()=>{const _=this.editor.model.document.history.getOperations(r.batch.operations[r.batch.operations.length-1].baseVersion+1);this._restoreSelection(r.selection.ranges,r.selection.isBackward,_),this._undo(r.batch,c)}),this.refresh()}}class W8 extends lo{constructor(){super(...arguments),this._batchRegistry=new WeakSet}static get pluginName(){return"UndoEditing"}init(){const r=this.editor;this._undoCommand=new Px(r),this._redoCommand=new Q8(r),r.commands.add("undo",this._undoCommand),r.commands.add("redo",this._redoCommand),this.listenTo(r.model,"applyOperation",(c,u)=>{const _=u[0];if(!_.isDocumentOperation)return;const x=_.batch,M=this._redoCommand.createdBatches.has(x),E=this._undoCommand.createdBatches.has(x);this._batchRegistry.has(x)||(this._batchRegistry.add(x),x.isUndoable&&(M?this._undoCommand.addBatch(x):E||(this._undoCommand.addBatch(x),this._redoCommand.clearStack())))},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(c,u,_)=>{this._redoCommand.addBatch(_)}),r.keystrokes.set("CTRL+Z","undo"),r.keystrokes.set("CTRL+Y","redo"),r.keystrokes.set("CTRL+SHIFT+Z","redo")}}const z5=' ',Sx=' ';class $8 extends lo{static get pluginName(){return"UndoUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?z5:Sx,x="ltr"==c.uiLanguageDirection?Sx:z5;this._addButton("undo",u("Undo"),"CTRL+Z",_),this._addButton("redo",u("Redo"),"CTRL+Y",x)}_addButton(r,c,u,_){const x=this.editor;x.ui.componentFactory.add(r,M=>{const E=x.commands.get(r),F=new $o(M);return F.set({label:c,icon:_,keystroke:u,tooltip:!0}),F.bind("isEnabled").to(E,"isEnabled"),this.listenTo(F,"execute",()=>{x.execute(r),x.editing.view.focus()}),F})}}class Lx extends lo{static get requires(){return[W8,$8]}static get pluginName(){return"Undo"}}class Ox extends(Ue()){constructor(){super();const r=new window.FileReader;this._reader=r,this._data=void 0,this.set("loaded",0),r.onprogress=c=>{this.loaded=c.loaded}}get error(){return this._reader.error}get data(){return this._data}read(r){const c=this._reader;return this.total=r.size,new Promise((u,_)=>{c.onload=()=>{const x=c.result;this._data=x,u(x)},c.onerror=()=>{_("error")},c.onabort=()=>{_("aborted")},this._reader.readAsDataURL(r)})}abort(){this._reader.abort()}}class ip extends lo{constructor(){super(...arguments),this.loaders=new ec,this._loadersMap=new Map,this._pendingAction=null}static get pluginName(){return"FileRepository"}static get requires(){return[Th]}init(){this.loaders.on("change",()=>this._updatePendingAction()),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(r,c)=>c?r/c*100:0)}getLoader(r){return this._loadersMap.get(r)||null}createLoader(r){if(!this.createUploadAdapter)return Tt("filerepository-no-upload-adapter"),null;const c=new Y5(Promise.resolve(r),this.createUploadAdapter);return this.loaders.add(c),this._loadersMap.set(r,c),r instanceof Promise&&c.file.then(u=>{this._loadersMap.set(u,c)}).catch(()=>{}),c.on("change:uploaded",()=>{let u=0;for(const _ of this.loaders)u+=_.uploaded;this.uploaded=u}),c.on("change:uploadTotal",()=>{let u=0;for(const _ of this.loaders)_.uploadTotal&&(u+=_.uploadTotal);this.uploadTotal=u}),c}destroyLoader(r){const c=r instanceof Y5?r:this.getLoader(r);c._destroy(),this.loaders.remove(c),this._loadersMap.forEach((u,_)=>{u===c&&this._loadersMap.delete(_)})}_updatePendingAction(){const r=this.editor.plugins.get(Th);if(this.loaders.length){if(!this._pendingAction){const c=this.editor.t,u=_=>`${c("Upload in progress")} ${parseInt(_)}%.`;this._pendingAction=r.add(u(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",u)}}else r.remove(this._pendingAction),this._pendingAction=null}}class Y5 extends(Ue()){constructor(r,c){super(),this.id=Pt(),this._filePromiseWrapper=this._createFilePromiseWrapper(r),this._adapter=c(this),this._reader=new Ox,this.set("status","idle"),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(u,_)=>_?u/_*100:0),this.set("uploadResponse",null)}get file(){return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(r=>this._filePromiseWrapper?r:null):Promise.resolve(null)}get data(){return this._reader.data}read(){if("idle"!=this.status)throw new nt("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(r=>this._reader.read(r)).then(r=>{if("reading"!==this.status)throw this.status;return this.status="idle",r}).catch(r=>{throw"aborted"===r?(this.status="aborted","aborted"):(this.status="error",this._reader.error?this._reader.error:r)})}upload(){if("idle"!=this.status)throw new nt("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(()=>this._adapter.upload()).then(r=>(this.uploadResponse=r,this.status="idle",r)).catch(r=>{throw"aborted"===this.status?"aborted":(this.status="error",r)})}abort(){const r=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==r?this._reader.abort():"uploading"==r&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(()=>{}),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}_destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}_createFilePromiseWrapper(r){const c={};return c.promise=new Promise((u,_)=>{c.rejecter=_,c.isFulfilled=!1,r.then(x=>{c.isFulfilled=!0,u(x)}).catch(x=>{c.isFulfilled=!0,_(x)})}),c}}class Ex extends oa{constructor(r){super(r),this.buttonView=new $o(r),this._fileInputView=new K8(r),this._fileInputView.bind("acceptedType").to(this),this._fileInputView.bind("allowMultipleFiles").to(this),this._fileInputView.delegate("done").to(this),this.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[this.buttonView,this._fileInputView]}),this.buttonView.on("execute",()=>{this._fileInputView.open()})}focus(){this.buttonView.focus()}}class K8 extends oa{constructor(r){super(r),this.set("acceptedType",void 0),this.set("allowMultipleFiles",!1);const c=this.bindTemplate;this.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:c.to("acceptedType"),multiple:c.to("allowMultipleFiles")},on:{change:c.to(()=>{this.element&&this.element.files&&this.element.files.length&&this.fire("done",this.element.files),this.element.value=""})}})}open(){this.element.click()}}const B5="abcdefghijklmnopqrstuvwxyz0123456789";class X8{constructor(r,c,u){this.loader=r,this.url=c,this.t=u}upload(){return this.loader.file.then(r=>new Promise((c,u)=>{this._initRequest(),this._initListeners(c,u,r),this._sendRequest(r)}))}abort(){this.xhr&&this.xhr.abort()}_initRequest(){const r=this.xhr=new XMLHttpRequest;r.open("POST",this.url,!0),r.responseType="json"}_initListeners(r,c,u){const _=this.xhr,x=this.loader,M=(0,this.t)("Cannot upload file:")+` ${u.name}.`;_.addEventListener("error",()=>c(M)),_.addEventListener("abort",()=>c()),_.addEventListener("load",()=>{const E=_.response;if(!E||!E.uploaded)return c(E&&E.error&&E.error.message?E.error.message:M);r({default:E.url})}),_.upload&&_.upload.addEventListener("progress",E=>{E.lengthComputable&&(x.uploadTotal=E.total,x.uploaded=E.loaded)})}_sendRequest(r){const c=new FormData;c.append("upload",r),c.append("ckCsrfToken",function V5(){let m=function(u){u=u.toLowerCase();const _=document.cookie.split(";");for(const x of _){const M=x.split("=");if(decodeURIComponent(M[0].trim().toLowerCase())===u)return decodeURIComponent(M[1])}return null}("ckCsrfToken");var c;return m&&40==m.length||(m=function(u){let _="";const x=new Uint8Array(40);window.crypto.getRandomValues(x);for(let M=0;M.5?E.toUpperCase():E}return _}(),c=m,document.cookie=encodeURIComponent("ckCsrfToken")+"="+encodeURIComponent(c)+";path=/"),m}()),this.xhr.send(c)}}function Fp(m,r,c,u){let _,x=null;"function"==typeof u?_=u:(x=m.commands.get(u),_=()=>{m.execute(u)}),m.model.document.on("change:data",(M,E)=>{if(x&&!x.isEnabled||!r.isEnabled)return;const F=as(m.model.document.selection.getRanges());if(!F.isCollapsed||E.isUndo||!E.isLocal)return;const V=Array.from(m.model.document.differ.getChanges()),W=V[0];if(1!=V.length||"insert"!==W.type||"$text"!=W.name||1!=W.length)return;const dt=W.position.parent;if(dt.is("element","codeBlock")||dt.is("element","listItem")&&"function"!=typeof u&&!["numberedList","bulletedList","todoList"].includes(u)||x&&!0===x.value)return;const Zt=dt.getChild(0),ue=m.model.createRangeOn(Zt);if(!ue.containsRange(F)&&!F.end.isEqual(ue.end))return;const Ae=c.exec(Zt.data.substr(0,F.end.offset));Ae&&m.model.enqueueChange(Ie=>{const ln=Ie.createPositionAt(dt,0),Dn=Ie.createPositionAt(dt,Ae[0].length),di=new Xu(ln,Dn);if(!1!==_({match:Ae})){Ie.remove(di);const Ri=m.model.document.selection.getFirstRange(),Go=Ie.createRangeIn(dt);!dt.isEmpty||Go.isEqual(Ri)||Go.containsRange(Ri,!0)||Ie.remove(dt)}di.detach(),m.model.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})})})}function f2(m,r,c,u){let _,x;c instanceof RegExp?_=c:x=c,x=x||(M=>{let E;const F=[],V=[];for(;null!==(E=_.exec(M))&&!(E&&E.length<4);){let{index:W,1:dt,2:Zt,3:ue}=E;W+=E[0].length-(dt+Zt+ue).length;const ln=[W+dt.length+Zt.length,W+dt.length+Zt.length+ue.length];F.push([W,W+dt.length]),F.push(ln),V.push([W+dt.length,W+dt.length+Zt.length])}return{remove:F,format:V}}),m.model.document.on("change:data",(M,E)=>{if(E.isUndo||!E.isLocal||!r.isEnabled)return;const F=m.model,V=F.document.selection;if(!V.isCollapsed)return;const W=Array.from(F.document.differ.getChanges()),dt=W[0];if(1!=W.length||"insert"!==dt.type||"$text"!=dt.name||1!=dt.length)return;const Zt=V.focus,ue=Zt.parent,{text:Ae,range:Ie}=function(Ri,Go){let Da=Ri.start;return{text:Array.from(Ri.getItems()).reduce((Kr,Il)=>!Il.is("$text")&&!Il.is("$textProxy")||Il.getAttribute("code")?(Da=Go.createPositionAfter(Il),""):Kr+Il.data,""),range:Go.createRange(Da,Ri.end)}}(F.createRange(F.createPositionAt(ue,0),Zt),F),ln=x(Ae),Dn=j5(Ie.start,ln.format,F),di=j5(Ie.start,ln.remove,F);Dn.length&&di.length&&F.enqueueChange(Ri=>{if(!1!==u(Ri,Dn)){for(const Go of di.reverse())Ri.remove(Go);F.enqueueChange(()=>{m.plugins.get("Delete").requestUndoOnBackspace()})}})})}function j5(m,r,c){return r.filter(u=>void 0!==u[0]&&void 0!==u[1]).map(u=>c.createRange(m.getShiftedBy(u[0]),m.getShiftedBy(u[1])))}function Vh(m,r){return(c,u)=>{if(!m.commands.get(r).isEnabled)return!1;const _=m.model.schema.getValidRanges(u,r);for(const x of _)c.setAttribute(r,!0,x);c.removeSelectionAttribute(r)}}class Ix extends Za{constructor(r,c){super(r),this.attributeKey=c}refresh(){const r=this.editor.model,c=r.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=r.schema.checkAttributeInSelection(c.selection,this.attributeKey)}execute(r={}){const c=this.editor.model,u=c.document.selection,_=void 0===r.forceValue?!this.value:r.forceValue;c.change(x=>{if(u.isCollapsed)_?x.setSelectionAttribute(this.attributeKey,!0):x.removeSelectionAttribute(this.attributeKey);else{const M=c.schema.getValidRanges(u.getRanges(),this.attributeKey);for(const E of M)_?x.setAttribute(this.attributeKey,_,E):x.removeAttribute(this.attributeKey,E)}})}_getValueFromFirstAllowedNode(){const r=this.editor.model,c=r.schema,u=r.document.selection;if(u.isCollapsed)return u.hasAttribute(this.attributeKey);for(const _ of u.getRanges())for(const x of _.getItems())if(c.checkAttribute(x,this.attributeKey))return x.hasAttribute(this.attributeKey);return!1}}const jh="bold";class J5 extends lo{static get pluginName(){return"BoldEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:jh}),r.model.schema.setAttributeProperties(jh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:jh,view:"strong",upcastAlso:["b",c=>{const u=c.getStyle("font-weight");return u&&("bold"==u||Number(u)>=600)?{name:!0,styles:["font-weight"]}:null}]}),r.commands.add(jh,new Ix(r,jh)),r.keystrokes.set("CTRL+B",jh)}}const G5="bold";class Q5 extends lo{static get pluginName(){return"BoldUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(G5,u=>{const _=r.commands.get(G5),x=new $o(u);return x.set({label:c("Bold"),icon:gs.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(G5),r.editing.view.focus()}),x})}}var vf=v(8603);No()(vf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Jh="italic";class iy extends lo{static get pluginName(){return"ItalicEditing"}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:Jh}),r.model.schema.setAttributeProperties(Jh,{isFormatting:!0,copyOnEnter:!0}),r.conversion.attributeToElement({model:Jh,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),r.commands.add(Jh,new Ix(r,Jh)),r.keystrokes.set("CTRL+I",Jh)}}const Q0="italic";class B4 extends lo{static get pluginName(){return"ItalicUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add(Q0,u=>{const _=r.commands.get(Q0),x=new $o(u);return x.set({label:c("Italic"),icon:' ',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute(Q0),r.editing.view.focus()}),x})}}class tA extends Za{refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,u=c.schema,x=Array.from(c.document.selection.getSelectedBlocks()),M=void 0===r.forceValue?!this.value:r.forceValue;c.change(E=>{if(M){const F=x.filter(V=>xf(V)||W5(u,V));this._applyQuote(E,F)}else this._removeQuote(E,x.filter(xf))})}_getValue(){const r=as(this.editor.model.document.selection.getSelectedBlocks());return!(!r||!xf(r))}_checkEnabled(){if(this.value)return!0;const c=this.editor.model.schema,u=as(this.editor.model.document.selection.getSelectedBlocks());return!!u&&W5(c,u)}_removeQuote(r,c){Nx(r,c).reverse().forEach(u=>{if(u.start.isAtStart&&u.end.isAtEnd)return void r.unwrap(u.start.parent);if(u.start.isAtStart){const x=r.createPositionBefore(u.start.parent);return void r.move(u,x)}u.end.isAtEnd||r.split(u.end);const _=r.createPositionAfter(u.end.parent);r.move(u,_)})}_applyQuote(r,c){const u=[];Nx(r,c).reverse().forEach(_=>{let x=xf(_.start);x||(x=r.createElement("blockQuote"),r.wrap(_,x)),u.push(x)}),u.reverse().reduce((_,x)=>_.nextSibling==x?(r.merge(r.createPositionAfter(_)),_):x)}}function xf(m){return"blockQuote"==m.parent.name?m.parent:null}function Nx(m,r){let c,u=0;const _=[];for(;u{const E=r.model.document.differ.getChanges();for(const F of E)if("insert"==F.type){const V=F.position.nodeAfter;if(!V)continue;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0;if(V.is("element","blockQuote")&&!c.checkChild(F.position,V))return M.unwrap(V),!0;if(V.is("element")){const W=M.createRangeIn(V);for(const dt of W.getItems())if(dt.is("element","blockQuote")&&!c.checkChild(M.createPositionBefore(dt),dt))return M.unwrap(dt),!0}}else if("remove"==F.type){const V=F.position.parent;if(V.is("element","blockQuote")&&V.isEmpty)return M.remove(V),!0}return!1});const u=this.editor.editing.view.document,_=r.model.document.selection,x=r.commands.get("blockQuote");this.listenTo(u,"enter",(M,E)=>{!_.isCollapsed||!x.value||_.getLastPosition().parent.isEmpty&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"}),this.listenTo(u,"delete",(M,E)=>{if("backward"!=E.direction||!_.isCollapsed||!x.value)return;const F=_.getLastPosition().parent;F.isEmpty&&!F.previousSibling&&(r.execute("blockQuote"),r.editing.view.scrollToTheSelection(),E.preventDefault(),M.stop())},{context:"blockquote"})}}var _a=v(3062);No()(_a.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Fx extends lo{static get pluginName(){return"BlockQuoteUI"}init(){const r=this.editor,c=r.t;r.ui.componentFactory.add("blockQuote",u=>{const _=r.commands.get("blockQuote"),x=new $o(u);return x.set({label:c("Block quote"),icon:gs.quote,tooltip:!0,isToggleable:!0}),x.bind("isOn","isEnabled").to(_,"value","isEnabled"),this.listenTo(x,"execute",()=>{r.execute("blockQuote"),r.editing.view.focus()}),x})}}class qx extends lo{static get pluginName(){return"CKBoxUI"}afterInit(){const r=this.editor,c=r.commands.get("ckbox");if(!c)return;const u=r.t;r.ui.componentFactory.add("ckbox",_=>{const x=new $o(_);return x.set({label:u("Open file manager"),icon:' ',tooltip:!0}),x.bind("isOn","isEnabled").to(c,"value","isEnabled"),x.on("execute",()=>{r.execute("ckbox")}),x})}}function Rx(m){const r=[];let c=0;for(const _ in m){const x=parseInt(_,10);isNaN(x)||(x>c&&(c=x),r.push(`${m[_]} ${_}w`))}const u=[{srcset:r.join(","),sizes:`(max-width: ${c}px) 100vw, ${c}px`,type:"image/webp"}];return{imageFallbackUrl:m.default,imageSources:u}}class eA extends Za{constructor(r){super(r),this._chosenAssets=new Set,this._wrapper=null,this._initListeners()}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(){this.fire("ckbox:open")}_getValue(){return null!==this._wrapper}_checkEnabled(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");return!(!r.isEnabled&&!c.isEnabled)}_prepareOptions(){const r=this.editor.config.get("ckbox");return{theme:r.theme,language:r.language,tokenUrl:r.tokenUrl,serviceOrigin:r.serviceOrigin,dialog:{onClose:()=>this.fire("ckbox:close")},assets:{onChoose:c=>this.fire("ckbox:choose",c)}}}_initListeners(){const r=this.editor,c=r.model,u=!r.config.get("ckbox.ignoreDataId");this.on("ckbox",()=>{this.refresh()},{priority:"low"}),this.on("ckbox:open",()=>{this.isEnabled&&!this.value&&(this._wrapper=We(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(this._wrapper),window.CKBox.mount(this._wrapper,this._prepareOptions()))}),this.on("ckbox:close",()=>{this.value&&(this._wrapper.remove(),this._wrapper=null)}),this.on("ckbox:choose",(_,x)=>{if(!this.isEnabled)return;const M=r.commands.get("insertImage"),E=r.commands.get("link"),F=function({assets:V,isImageAllowed:W,isLinkAllowed:dt}){return V.map(Zt=>function(ue){const Ae=ue.data.metadata;return!!Ae&&Ae.width&&Ae.height}(Zt)?{id:Zt.data.id,type:"image",attributes:nA(Zt)}:{id:Zt.data.id,type:"link",attributes:iA(Zt)}).filter(Zt=>"image"===Zt.type?W:dt)}({assets:x,isImageAllowed:M.isEnabled,isLinkAllowed:E.isEnabled});0!==F.length&&c.change(V=>{for(const W of F)this._insertAsset(W,W===F[F.length-1],V),u&&(setTimeout(()=>this._chosenAssets.delete(W),1e3),this._chosenAssets.add(W))})}),this.listenTo(r,"destroy",()=>{this.fire("ckbox:close"),this._chosenAssets.clear()})}_insertAsset(r,c,u){const _=this.editor.model.document.selection;u.removeSelectionAttribute("linkHref"),"image"===r.type?this._insertImage(r):this._insertLink(r,u),c||u.setSelection(_.getLastPosition())}_insertImage(r){const c=this.editor,{imageFallbackUrl:u,imageSources:_,imageTextAlternative:x}=r.attributes;c.execute("insertImage",{source:{src:u,sources:_,alt:x}})}_insertLink(r,c){const u=this.editor,_=u.model,x=_.document.selection,{linkName:M,linkHref:E}=r.attributes;if(x.isCollapsed){const F=Kc(x.getAttributes()),V=c.createText(M,F),W=_.insertContent(V);c.setSelection(W)}u.execute("link",E)}}function nA(m){const{imageFallbackUrl:r,imageSources:c}=Rx(m.data.imageUrls);return{imageFallbackUrl:r,imageSources:c,imageTextAlternative:m.data.metadata.description||""}}function iA(m){return{linkName:m.data.name,linkHref:K5(m)}}function K5(m){const r=new URL(m.data.url);return r.searchParams.set("download","true"),r.toString()}var Gh=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class Hx extends lo{static get requires(){return["ImageUploadEditing","ImageUploadProgress",ip,X5]}static get pluginName(){return"CKBoxUploadAdapter"}afterInit(){return Gh(this,null,function*(){const r=this.editor,c=!!r.config.get("ckbox"),u=!!window.CKBox;if(!c&&!u)return;const _=r.plugins.get(ip),x=r.plugins.get(X5);_.createUploadAdapter=F=>new zx(F,x.getToken(),r);const M=!r.config.get("ckbox.ignoreDataId"),E=r.plugins.get("ImageUploadEditing");M&&E.on("uploadComplete",(F,{imageElement:V,data:W})=>{r.model.change(dt=>{dt.setAttribute("ckboxImageId",W.ckboxImageId,V)})})})}}class zx{constructor(r,c,u){this.loader=r,this.token=c,this.editor=u,this.controller=new AbortController,this.serviceOrigin=u.config.get("ckbox.serviceOrigin")}getWorkspaceId(){const r=(0,this.editor.t)("Cannot access default workspace."),c=this.editor.config.get("ckbox.defaultUploadWorkspaceId"),u=function(_,x){const[,M]=_.value.split("."),E=JSON.parse(atob(M)),F=E.auth&&E.auth.ckbox&&E.auth.ckbox.workspaces||[E.aud];return x?"superadmin"==(E.auth&&E.auth.ckbox&&E.auth.ckbox.role)||F.includes(x)?x:null:F[0]}(this.token,c);if(null==u)throw At("ckbox-access-default-workspace-error"),r;return u}getAvailableCategories(r=0){return Gh(this,null,function*(){const c=new URL("categories",this.serviceOrigin);return c.searchParams.set("limit",50..toString()),c.searchParams.set("offset",r.toString()),c.searchParams.set("workspaceId",this.getWorkspaceId()),this._sendHttpRequest({url:c}).then(u=>Gh(this,null,function*(){if(u.totalCount-(r+50)>0){const _=yield this.getAvailableCategories(r+50);return[...u.items,..._]}return u.items})).catch(()=>{this.controller.signal.throwIfAborted(),At("ckbox-fetch-category-http-error")})})}getCategoryIdForFile(r){return Gh(this,null,function*(){const c=function(M){const E=new RegExp("\\.(?[^.]+)$");return M.match(E).groups.ext.toLowerCase()}(r.name),u=yield this.getAvailableCategories();if(!u)return null;const _=this.editor.config.get("ckbox.defaultUploadCategories");if(_){const M=Object.keys(_).find(E=>_[E].find(F=>F.toLowerCase()==c));if(M){const E=u.find(F=>F.id===M||F.name===M);return E?E.id:null}}const x=u.find(M=>M.extensions.find(E=>E.toLowerCase()==c));return x?x.id:null})}upload(){return Gh(this,null,function*(){const r=this.editor.t,c=r("Cannot determine a category for the uploaded file."),u=yield this.loader.file,_=yield this.getCategoryIdForFile(u);if(!_)return Promise.reject(c);const x=new URL("assets",this.serviceOrigin),M=new FormData;return x.searchParams.set("workspaceId",this.getWorkspaceId()),M.append("categoryId",_),M.append("file",u),this._sendHttpRequest({method:"POST",url:x,data:M,onUploadProgress:F=>{F.lengthComputable&&(this.loader.uploadTotal=F.total,this.loader.uploaded=F.loaded)}}).then(F=>Gh(this,null,function*(){const V=Rx(F.imageUrls);return{ckboxImageId:F.id,default:V.imageFallbackUrl,sources:V.imageSources}})).catch(()=>{const F=r("Cannot upload file:")+` ${u.name}.`;return Promise.reject(F)})})}abort(){this.controller.abort()}_sendHttpRequest({url:r,method:c="GET",data:u,onUploadProgress:_}){const x=this.controller.signal,M=new XMLHttpRequest;M.open(c,r.toString(),!0),M.setRequestHeader("Authorization",this.token.value),M.setRequestHeader("CKBox-Version","CKEditor 5"),M.responseType="json";const E=()=>{M.abort()};return new Promise((F,V)=>{x.addEventListener("abort",E),M.addEventListener("loadstart",()=>{x.addEventListener("abort",E)}),M.addEventListener("loadend",()=>{x.removeEventListener("abort",E)}),M.addEventListener("error",()=>{V()}),M.addEventListener("abort",()=>{V()}),M.addEventListener("load",()=>Gh(this,null,function*(){const W=M.response;return!W||W.statusCode>=400?V(W&&W.message):F(W)})),_&&M.upload.addEventListener("progress",W=>{_(W)}),M.send(u)})}}class X5 extends lo{static get pluginName(){return"CKBoxEditing"}static get requires(){return["CloudServices","LinkEditing","PictureEditing",Hx]}init(){return r=this,u=function*(){const _=this.editor,x=!!_.config.get("ckbox"),M=!!window.CKBox;if(!x&&!M)return;this._initConfig();const E=_.plugins.get("CloudServicesCore"),F=_.config.get("ckbox.tokenUrl");if(F===_.config.get("cloudServices.tokenUrl")){const V=_.plugins.get("CloudServices");this._token=V.token}else this._token=yield E.createToken(F).init();_.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),M&&_.commands.add("ckbox",new eA(_))},new Promise((_,x)=>{var M=V=>{try{F(u.next(V))}catch(W){x(W)}},E=V=>{try{F(u.throw(V))}catch(W){x(W)}},F=V=>V.done?_(V.value):Promise.resolve(V.value).then(M,E);F((u=u.apply(r,null)).next())});var r,u}getToken(){return this._token}_initConfig(){const r=this.editor;if(r.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",defaultUploadCategories:null,ignoreDataId:!1,language:r.locale.uiLanguage,theme:"default",tokenUrl:r.config.get("cloudServices.tokenUrl")}),!r.config.get("ckbox.tokenUrl"))throw new nt("ckbox-plugin-missing-token-url",this);r.plugins.has("ImageBlockEditing")||r.plugins.has("ImageInlineEditing")||At("ckbox-plugin-image-feature-missing",r)}_initSchema(){const r=this.editor.model.schema;r.extend("$text",{allowAttributes:"ckboxLinkId"}),r.isRegistered("imageBlock")&&r.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.isRegistered("imageInline")&&r.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),r.addAttributeCheck((c,u)=>{if(!c.last.getAttribute("linkHref")&&"ckboxLinkId"===u)return!1})}_initConversion(){const r=this.editor;r.conversion.for("downcast").add(c=>{c.on("attribute:ckboxLinkId:imageBlock",(u,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(!F.consume(_.item,u.name))return;const V=[...E.toViewElement(_.item).getChildren()].find(W=>"a"===W.name);V&&(_.item.hasAttribute("ckboxLinkId")?M.setAttribute("data-ckbox-resource-id",_.item.getAttribute("ckboxLinkId"),V):M.removeAttribute("data-ckbox-resource-id",V))},{priority:"low"}),c.on("attribute:ckboxLinkId",(u,_,x)=>{const{writer:M,mapper:E,consumable:F}=x;if(F.consume(_.item,u.name)){if(_.attributeOldValue){const V=aA(M,_.attributeOldValue);M.unwrap(E.toViewRange(_.range),V)}if(_.attributeNewValue){const V=aA(M,_.attributeNewValue);_.item.is("selection")?M.wrap(M.document.selection.getFirstRange(),V):M.wrap(E.toViewRange(_.range),V)}}},{priority:"low"})}),r.conversion.for("upcast").add(c=>{c.on("element:a",(u,_,x)=>{const{writer:M,consumable:E}=x;if(!_.viewItem.getAttribute("href")||!E.consume(_.viewItem,{attributes:["data-ckbox-resource-id"]}))return;const F=_.viewItem.getAttribute("data-ckbox-resource-id");if(F)if(_.modelRange)for(let V of _.modelRange.getItems())V.is("$textProxy")&&(V=V.textNode),rA(V)&&M.setAttribute("ckboxLinkId",F,V);else M.setAttribute("ckboxLinkId",F,_.modelCursor.nodeBefore||_.modelCursor.parent)},{priority:"low"})}),r.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),r.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:c=>c.getAttribute("data-ckbox-resource-id")},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}_initFixers(){const r=this.editor,c=r.model,u=c.document.selection;var _;c.document.registerPostFixer((_=r,x=>{let M=!1;const E=_.model,F=_.commands.get("ckbox");if(!F)return M;for(const V of E.document.differ.getChanges()){if("insert"!==V.type&&"attribute"!==V.type)continue;const W="insert"===V.type?new Si(V.position,V.position.getShiftedBy(V.length)):V.range,dt="attribute"===V.type&&"linkHref"===V.attributeKey&&null===V.attributeNewValue;for(const Zt of W.getItems()){if(dt&&Zt.hasAttribute("ckboxLinkId")){x.removeAttribute("ckboxLinkId",Zt),M=!0;continue}const ue=oA(Zt,F._chosenAssets);for(const Ae of ue){const Ie="image"===Ae.type?"ckboxImageId":"ckboxLinkId";Ae.id!==Zt.getAttribute(Ie)&&(x.setAttribute(Ie,Ae.id,Zt),M=!0)}}}return M})),c.document.registerPostFixer(function(_){return x=>!(_.hasAttribute("linkHref")||!_.hasAttribute("ckboxLinkId")||(x.removeSelectionAttribute("ckboxLinkId"),0))}(u))}}function oA(m,r){const c=m.is("element","imageInline")||m.is("element","imageBlock"),u=m.hasAttribute("linkHref");return[...r].filter(_=>"image"===_.type&&c?_.attributes.imageFallbackUrl===m.getAttribute("src"):"link"===_.type&&u?_.attributes.linkHref===m.getAttribute("linkHref"):void 0)}function aA(m,r){const c=m.createAttributeElement("a",{"data-ckbox-resource-id":r},{priority:5});return m.setCustomProperty("link",!0,c),c}function rA(m){return!!m.is("$text")||!(!m.is("element","imageInline")&&!m.is("element","imageBlock"))}class Yx extends lo{static get pluginName(){return"CKFinderUI"}init(){const r=this.editor,u=r.t;r.ui.componentFactory.add("ckfinder",_=>{const x=r.commands.get("ckfinder"),M=new $o(_);return M.set({label:u("Insert image or file"),icon:' ',tooltip:!0}),M.bind("isEnabled").to(x),M.on("execute",()=>{r.execute("ckfinder"),r.editing.view.focus()}),M})}}class Bx extends Za{constructor(r){super(r),this.affectsData=!1,this.stopListening(this.editor.model.document,"change"),this.listenTo(this.editor.model.document,"change",()=>this.refresh(),{priority:"low"})}refresh(){const r=this.editor.commands.get("insertImage"),c=this.editor.commands.get("link");this.isEnabled=r.isEnabled||c.isEnabled}execute(){const r=this.editor,c=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=c&&"modal"!=c)throw new nt("ckfinder-unknown-openermethod",r);const u=this.editor.config.get("ckfinder.options")||{};u.chooseFiles=!0;const _=u.onInit;u.language||(u.language=r.locale.uiLanguage),u.onInit=x=>{_&&_(x),x.on("files:choose",M=>{const E=M.data.files.toArray(),F=E.filter(dt=>!dt.isImage()),V=E.filter(dt=>dt.isImage());for(const dt of F)r.execute("link",dt.getUrl());const W=[];for(const dt of V){const Zt=dt.getUrl();W.push(Zt||x.request("file:getProxyUrl",{file:dt}))}W.length&&tb(r,W)}),x.on("file:choose:resizedImage",M=>{const E=M.data.resizedUrl;if(E)tb(r,[E]);else{const F=r.plugins.get("Notification"),V=r.locale.t;F.showWarning(V("Could not obtain resized image URL."),{title:V("Selecting resized image failed"),namespace:"ckfinder"})}})},window.CKFinder[c](u)}}function tb(m,r){if(m.commands.get("insertImage").isEnabled)m.execute("insertImage",{source:r});else{const c=m.plugins.get("Notification"),u=m.locale.t;c.showWarning(u("Could not insert image at the current position."),{title:u("Inserting image failed"),namespace:"ckfinder"})}}class Vx extends lo{static get pluginName(){return"CKFinderEditing"}static get requires(){return[u2,"LinkEditing"]}init(){const r=this.editor;if(!r.plugins.has("ImageBlockEditing")&&!r.plugins.has("ImageInlineEditing"))throw new nt("ckfinder-missing-image-plugin",r);r.commands.add("ckfinder",new Bx(r))}}class sA extends lo{static get pluginName(){return"CloudServicesUploadAdapter"}static get requires(){return["CloudServices",ip]}init(){const r=this.editor,c=r.plugins.get("CloudServices"),u=c.token,_=c.uploadUrl;if(!u)return;const x=r.plugins.get("CloudServicesCore");this._uploadGateway=x.createUploadGateway(u,_),r.plugins.get(ip).createUploadAdapter=M=>new cA(this._uploadGateway,M)}}class cA{constructor(r,c){this.uploadGateway=r,this.loader=c}upload(){return this.loader.file.then(r=>(this.fileUploader=this.uploadGateway.upload(r),this.fileUploader.on("progress",(c,u)=>{this.loader.uploadTotal=u.total,this.loader.uploaded=u.uploaded}),this.fileUploader.send()))}abort(){this.fileUploader.abort()}}class eb extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}refresh(){const r=this.editor.model,c=as(r.document.selection.getSelectedBlocks());this.value=!!c&&c.is("element","paragraph"),this.isEnabled=!!c&&jx(c,r.schema)}execute(r={}){const c=this.editor.model,_=r.selection||c.document.selection;c.canEditAt(_)&&c.change(x=>{const M=_.getSelectedBlocks();for(const E of M)!E.is("element","paragraph")&&jx(E,c.schema)&&x.rename(E,"paragraph")})}}function jx(m,r){return r.checkChild(m.parent,"paragraph")&&!r.isObject(m)}class lA extends Za{constructor(r){super(r),this._isEnabledBasedOnSelection=!1}execute(r){const c=this.editor.model,u=r.attributes;let _=r.position;c.canEditAt(_)&&c.change(x=>{if(_=this._findPositionToInsertParagraph(_,x),!_)return;const M=x.createElement("paragraph");u&&c.schema.setAllowedAttributes(M,u,x),c.insertContent(M,_),x.setSelection(M,"in")})}_findPositionToInsertParagraph(r,c){const u=this.editor.model;if(u.schema.checkChild(r,"paragraph"))return r;const _=u.schema.findAllowedParent(r,"paragraph");if(!_)return null;const x=r.parent,M=u.schema.checkChild(x,"$text");return x.isEmpty||M&&r.isAtEnd?u.createPositionAfter(x):!x.isEmpty&&M&&r.isAtStart?u.createPositionBefore(x):c.split(r,_).position}}const nb=class extends lo{static get pluginName(){return"Paragraph"}init(){const m=this.editor,r=m.model;m.commands.add("paragraph",new eb(m)),m.commands.add("insertParagraph",new lA(m)),r.schema.register("paragraph",{inheritAllFrom:"$block"}),m.conversion.elementToElement({model:"paragraph",view:"p"}),m.conversion.for("upcast").elementToElement({model:(c,{writer:u})=>nb.paragraphLikeElements.has(c.name)?c.isEmpty?null:u.createElement("paragraph"):null,view:/.+/,converterPriority:"low"})}};let ib=nb;ib.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);class W0 extends Za{constructor(r,c){super(r),this.modelElements=c}refresh(){const r=as(this.editor.model.document.selection.getSelectedBlocks());this.value=!!r&&this.modelElements.includes(r.name)&&r.name,this.isEnabled=!!r&&this.modelElements.some(c=>V4(r,c,this.editor.model.schema))}execute(r){const c=this.editor.model,u=c.document,_=r.value;c.change(x=>{const M=Array.from(u.selection.getSelectedBlocks()).filter(E=>V4(E,_,c.schema));for(const E of M)E.is("element",_)||x.rename(E,_)})}}function V4(m,r,c){return c.checkChild(m.parent,r)&&!c.isObject(m)}const ob="paragraph";class ab extends lo{static get pluginName(){return"HeadingEditing"}constructor(r){super(r),r.config.define("heading",{options:[{model:"paragraph",title:"Paragraph",class:"ck-heading_paragraph"},{model:"heading1",view:"h2",title:"Heading 1",class:"ck-heading_heading1"},{model:"heading2",view:"h3",title:"Heading 2",class:"ck-heading_heading2"},{model:"heading3",view:"h4",title:"Heading 3",class:"ck-heading_heading3"}]})}static get requires(){return[ib]}init(){const r=this.editor,c=r.config.get("heading.options"),u=[];for(const _ of c)"paragraph"!==_.model&&(r.model.schema.register(_.model,{inheritAllFrom:"$block"}),r.conversion.elementToElement(_),u.push(_.model));this._addDefaultH1Conversion(r),r.commands.add("heading",new W0(r,u))}afterInit(){const r=this.editor,c=r.commands.get("enter"),u=r.config.get("heading.options");c&&this.listenTo(c,"afterExecute",(_,x)=>{const M=r.model.document.selection.getFirstPosition().parent;u.some(E=>M.is("element",E.model))&&!M.is("element",ob)&&0===M.childCount&&x.writer.rename(M,ob)})}_addDefaultH1Conversion(r){r.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:Dt.low+1})}}var rb=v(8733);No()(rb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gx extends lo{static get pluginName(){return"HeadingUI"}init(){const r=this.editor,c=r.t,u=function(M){const E=M.t,F={Paragraph:E("Paragraph"),"Heading 1":E("Heading 1"),"Heading 2":E("Heading 2"),"Heading 3":E("Heading 3"),"Heading 4":E("Heading 4"),"Heading 5":E("Heading 5"),"Heading 6":E("Heading 6")};return M.config.get("heading.options").map(V=>{const W=F[V.title];return W&&W!=V.title&&(V.title=W),V})}(r),_=c("Choose heading"),x=c("Heading");r.ui.componentFactory.add("heading",M=>{const E={},F=new ec,V=r.commands.get("heading"),W=r.commands.get("paragraph"),dt=[V];for(const ue of u){const Ae={type:"button",model:new Z4({label:ue.title,class:ue.class,role:"menuitemradio",withText:!0})};"paragraph"===ue.model?(Ae.model.bind("isOn").to(W,"value"),Ae.model.set("commandName","paragraph"),dt.push(W)):(Ae.model.bind("isOn").to(V,"value",Ie=>Ie===ue.model),Ae.model.set({commandName:"heading",commandValue:ue.model})),F.add(Ae),E[ue.model]=ue.title}const Zt=Lp(M);return t1(Zt,F,{ariaLabel:x,role:"menu"}),Zt.buttonView.set({ariaLabel:x,ariaLabelledBy:void 0,isOn:!1,withText:!0,tooltip:x}),Zt.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),Zt.bind("isEnabled").toMany(dt,"isEnabled",(...ue)=>ue.some(Ae=>Ae)),Zt.buttonView.bind("label").to(V,"value",W,"value",(ue,Ae)=>{const Ie=ue||Ae&&"paragraph";return"boolean"==typeof Ie?_:E[Ie]?E[Ie]:_}),this.listenTo(Zt,"execute",ue=>{const{commandName:Ae,commandValue:Ie}=ue.source;r.execute(Ae,Ie?{value:Ie}:void 0),r.editing.view.focus()}),Zt})}}function Qx(m){return m.createContainerElement("figure",{class:"image"},[m.createEmptyElement("img"),m.createSlot("children")])}function uA(m,r){const c=m.plugins.get("ImageUtils"),u=m.plugins.has("ImageInlineEditing")&&m.plugins.has("ImageBlockEditing");return x=>c.isInlineImageView(x)?u&&("block"==x.getStyle("display")||x.findAncestor(c.isBlockImageView)?"imageBlock":"imageInline")!==r?null:function _(x){const M={name:!0};return x.hasAttribute("src")&&(M.attributes=["src"]),M}(x):null}function j4(m,r){const c=as(r.getSelectedBlocks());return!c||m.isObject(c)||c.isEmpty&&"listItem"!=c.name?"imageBlock":"imageInline"}function $0(m){return m&&m.endsWith("px")?parseInt(m):null}function sb(m){const r=$0(m.getStyle("width")),c=$0(m.getStyle("height"));return!(!r||!c)}var J4=Object.defineProperty,da=Object.getOwnPropertySymbols,K0=Object.prototype.hasOwnProperty,dA=Object.prototype.propertyIsEnumerable,G4=(m,r,c)=>r in m?J4(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Pd=(m,r)=>{for(var c in r||(r={}))K0.call(r,c)&&G4(m,c,r[c]);if(da)for(var c of da(r))dA.call(r,c)&&G4(m,c,r[c]);return m};const pA=/^(image|image-inline)$/;class Sd extends lo{constructor(){super(...arguments),this._domEmitter=new(Xi())}static get pluginName(){return"ImageUtils"}isImage(r){return this.isInlineImage(r)||this.isBlockImage(r)}isInlineImageView(r){return!!r&&r.is("element","img")}isBlockImageView(r){return!!r&&r.is("element","figure")&&r.hasClass("image")}insertImage(r={},c=null,u=null,_={}){const x=this.editor,M=x.model,E=M.document.selection;u=Qh(x,c||E,u),r=Pd(Pd({},Object.fromEntries(E.getAttributes())),r);for(const F in r)M.schema.checkAttribute(u,F)||delete r[F];return M.change(F=>{const{setImageSizes:V=!0}=_,W=F.createElement(u,r);return M.insertObject(W,c,null,{setSelection:"on",findOptimalPosition:c||"imageInline"==u?void 0:"auto"}),W.parent?(V&&this.setImageNaturalSizeAttributes(W),W):null})}setImageNaturalSizeAttributes(r){const c=r.getAttribute("src");c&&(r.getAttribute("width")||r.getAttribute("height")||this.editor.model.change(u=>{const _=new Mt.window.Image;this._domEmitter.listenTo(_,"load",()=>{r.getAttribute("width")||r.getAttribute("height")||this.editor.model.enqueueChange(u.batch,x=>{x.setAttribute("width",_.naturalWidth,r),x.setAttribute("height",_.naturalHeight,r)}),this._domEmitter.stopListening(_,"load")}),_.src=c}))}getClosestSelectedImageWidget(r){const c=r.getFirstPosition();if(!c)return null;const u=r.getSelectedElement();if(u&&this.isImageWidget(u))return u;let _=c.parent;for(;_;){if(_.is("element")&&this.isImageWidget(_))return _;_=_.parent}return null}getClosestSelectedImageElement(r){const c=r.getSelectedElement();return this.isImage(c)?c:r.getFirstPosition().findAncestor("imageBlock")}getImageWidgetFromImageView(r){return r.findAncestor({classes:pA})}isImageAllowed(){const r=this.editor.model.document.selection;return function(c,u){if("imageBlock"==Qh(c,u,null)){const x=function(M,E){const V=F4(M,E).start.parent;return V.isEmpty&&!V.is("element","$root")?V.parent:V}(u,c.model);if(c.model.schema.checkChild(x,"imageBlock"))return!0}else if(c.model.schema.checkChild(u.focus,"imageInline"))return!0;return!1}(this.editor,r)&&[...r.focus.getAncestors()].every(u=>!u.is("element","imageBlock"))}toImageWidget(r,c,u){return c.setCustomProperty("image",!0,r),ep(r,c,{label:()=>{const _=this.findViewImgElement(r).getAttribute("alt");return _?`${_} ${u}`:u}})}isImageWidget(r){return!!r.getCustomProperty("image")&&El(r)}isBlockImage(r){return!!r&&r.is("element","imageBlock")}isInlineImage(r){return!!r&&r.is("element","imageInline")}findViewImgElement(r){if(this.isInlineImageView(r))return r;const c=this.editor.editing.view;for(const{item:u}of c.createRangeIn(r))if(this.isInlineImageView(u))return u}destroy(){return this._domEmitter.stopListening(),super.destroy()}}function Qh(m,r,c){const u=m.model.schema,_=m.config.get("image.insert.type");return m.plugins.has("ImageBlockEditing")?m.plugins.has("ImageInlineEditing")?c||("inline"===_?"imageInline":"block"===_?"imageBlock":r.is("selection")?j4(u,r):u.checkChild(r,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));class Q4 extends Za{refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!(!this.isEnabled||!r.hasAttribute("alt"))&&r.getAttribute("alt")}execute(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_=c.model,x=u.getClosestSelectedImageElement(_.document.selection);_.change(M=>{M.setAttribute("alt",r.newValue,x)})}}class Wx extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageTextAlternativeEditing"}init(){this.editor.commands.add("imageTextAlternative",new Q4(this.editor))}}var $x=v(1905);No()($x.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var t3=v(6764);No()(t3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Kx extends oa{constructor(r){super(r);const c=this.locale.t;this.focusTracker=new rs,this.keystrokes=new $c,this.labeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(c("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(c("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[this.labeledInput,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),this.keystrokes.listenTo(this.element),C({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)})}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}_createButton(r,c,u,_){const x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createLabeledInputView(){const r=this.locale.t,c=new Sr(this.locale,lf);return c.label=r("Text alternative"),c}}function cb(m){const r=m.editing.view,c=id.defaultPositions,u=m.plugins.get("ImageUtils");return{target:r.domConverter.mapViewToDom(u.getClosestSelectedImageWidget(r.document.selection)),positions:[c.northArrowSouth,c.northArrowSouthWest,c.northArrowSouthEast,c.southArrowNorth,c.southArrowNorthWest,c.southArrowNorthEast,c.viewportStickyNorth]}}class Xx extends lo{static get requires(){return[F0]}static get pluginName(){return"ImageTextAlternativeUI"}init(){this._createButton()}destroy(){super.destroy(),this._form&&this._form.destroy()}_createButton(){const r=this.editor,c=r.t;r.ui.componentFactory.add("imageTextAlternative",u=>{const _=r.commands.get("imageTextAlternative"),x=new $o(u);return x.set({label:c("Change image text alternative"),icon:gs.lowVision,tooltip:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>!!M),this.listenTo(x,"execute",()=>{this._showForm()}),x})}_createForm(){const r=this.editor,c=r.editing.view.document,u=r.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(A(Kx))(r.locale),this._form.render(),this.listenTo(this._form,"submit",()=>{r.execute("imageTextAlternative",{newValue:this._form.labeledInput.fieldView.element.value}),this._hideForm(!0)}),this.listenTo(this._form,"cancel",()=>{this._hideForm(!0)}),this._form.keystrokes.set("Esc",(_,x)=>{this._hideForm(!0),x()}),this.listenTo(r.ui,"update",()=>{u.getClosestSelectedImageWidget(c.selection)?this._isVisible&&function(_){const x=_.plugins.get("ContextualBalloon");if(_.plugins.get("ImageUtils").getClosestSelectedImageWidget(_.editing.view.document.selection)){const M=cb(_);x.updatePosition(M)}}(r):this._hideForm(!0)}),t({emitter:this._form,activator:()=>this._isVisible,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideForm()})}_showForm(){if(this._isVisible)return;this._form||this._createForm();const r=this.editor,c=r.commands.get("imageTextAlternative"),u=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:cb(r)}),u.fieldView.value=u.fieldView.element.value=c.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}_hideForm(r=!1){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),r&&this.editor.editing.view.focus())}get _isVisible(){return!!this._balloon&&this._balloon.visibleView===this._form}get _isInBalloon(){return!!this._balloon&&this._balloon.hasView(this._form)}}class W4 extends lo{static get requires(){return[Wx,Xx]}static get pluginName(){return"ImageTextAlternative"}}function $4(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=x.writer,E=x.mapper.toViewElement(_.item),F=m.findViewImgElement(E);null===_.attributeNewValue?(M.removeAttribute("srcset",F),M.removeAttribute("sizes",F)):_.attributeNewValue&&(M.setAttribute("srcset",_.attributeNewValue,F),M.setAttribute("sizes","100vw",F))};return u=>{u.on(`attribute:srcset:${r}`,c)}}function K4(m,r,c){const u=(_,x,M)=>{if(!M.consumable.consume(x.item,_.name))return;const E=M.writer,F=M.mapper.toViewElement(x.item),V=m.findViewImgElement(F);E.setAttribute(x.attributeKey,x.attributeNewValue||"",V)};return _=>{_.on(`attribute:${c}:${r}`,u)}}class _A extends Qu{observe(r){this.listenTo(r,"load",(c,u)=>{const _=u.target;this.checkShouldIgnoreEventFromTarget(_)||"IMG"==_.tagName&&this._fireEvents(u)},{useCapture:!0})}stopObserving(r){this.stopListening(r)}_fireEvents(r){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",r))}}var oy=Object.defineProperty,e3=Object.getOwnPropertySymbols,lb=Object.prototype.hasOwnProperty,ub=Object.prototype.propertyIsEnumerable,X4=(m,r,c)=>r in m?oy(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Wh=(m,r)=>{for(var c in r||(r={}))lb.call(r,c)&&X4(m,c,r[c]);if(e3)for(var c of e3(r))ub.call(r,c)&&X4(m,c,r[c]);return m};class db extends Za{constructor(r){super(r);const c=r.config.get("image.insert.type");r.plugins.has("ImageBlockEditing")||"block"===c&&Tt("image-block-plugin-required"),r.plugins.has("ImageInlineEditing")||"inline"===c&&Tt("image-inline-plugin-required")}refresh(){const r=this.editor.plugins.get("ImageUtils");this.isEnabled=r.isImageAllowed()}execute(r){const c=Ss(r.source),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if("string"==typeof M&&(M={src:M}),E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);_.insertImage(Wh(Wh({},M),x),V)}else _.insertImage(Wh(Wh({},M),x))})}}class fA extends Za{refresh(){const r=this.editor.plugins.get("ImageUtils"),c=this.editor.model.document.selection.getSelectedElement();this.isEnabled=r.isImage(c),this.value=this.isEnabled?c.getAttribute("src"):null}execute(r){const c=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(u=>{u.setAttribute("src",r.source,c),u.removeAttribute("srcset",c),u.removeAttribute("sizes",c)})}}class pb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageEditing"}init(){const r=this.editor,c=r.conversion;r.editing.view.addObserver(_A),c.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:"srcset"});const u=new db(r),_=new fA(r);r.commands.add("insertImage",u),r.commands.add("replaceImageSource",_),r.commands.add("imageInsert",u)}}class mb extends lo{static get requires(){return[Sd]}static get pluginName(){return"ImageSizeAttributes"}afterInit(){this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline")}_registerSchema(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:["width","height"]}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:["width","height"]})}_registerConverters(r){const c=this.editor,u=c.plugins.get("ImageUtils"),_="imageBlock"===r?"figure":"img";function x(M,E,F,V){M.on(`attribute:${E}:${r}`,(W,dt,Zt)=>{if(!Zt.consumable.consume(dt.item,W.name))return;const ue=Zt.writer,Ae=Zt.mapper.toViewElement(dt.item),Ie=u.findViewImgElement(Ae);if(null!==dt.attributeNewValue?ue.setAttribute(F,dt.attributeNewValue,Ie):ue.removeAttribute(F,Ie),dt.item.hasAttribute("sources"))return;const ln=dt.item.hasAttribute("resizedWidth");if("imageInline"===r&&!ln&&!V)return;const Dn=dt.item.getAttribute("width"),di=dt.item.getAttribute("height"),Ri=Ie.getStyle("aspect-ratio");Dn&&di&&!Ri&&ue.setStyle("aspect-ratio",`${Dn}/${di}`,Ie)})}c.conversion.for("upcast").attributeToAttribute({view:{name:_,styles:{width:/.+/}},model:{key:"width",value:M=>sb(M)?$0(M.getStyle("width")):null}}).attributeToAttribute({view:{name:_,key:"width"},model:"width"}).attributeToAttribute({view:{name:_,styles:{height:/.+/}},model:{key:"height",value:M=>sb(M)?$0(M.getStyle("height")):null}}).attributeToAttribute({view:{name:_,key:"height"},model:"height"}),c.conversion.for("editingDowncast").add(M=>{x(M,"width","width",!0),x(M,"height","height",!0)}),c.conversion.for("dataDowncast").add(M=>{x(M,"width","width",!1),x(M,"height","height",!1)})}}class _b extends Za{constructor(r,c){super(r),this._modelElementName=c}refresh(){const r=this.editor.plugins.get("ImageUtils"),c=r.getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled="imageBlock"===this._modelElementName?r.isInlineImage(c):r.isBlockImage(c)}execute(r={}){const u=this.editor.model,_=this.editor.plugins.get("ImageUtils"),x=_.getClosestSelectedImageElement(u.document.selection),M=Object.fromEntries(x.getAttributes());return M.src||M.uploadId?u.change(E=>{const{setImageSizes:F=!0}=r,V=Array.from(u.markers).filter(Zt=>Zt.getRange().containsItem(x)),W=_.insertImage(M,u.createSelection(x,"on"),this._modelElementName,{setImageSizes:F});if(!W)return null;const dt=E.createRangeOn(W);for(const Zt of V){const ue=Zt.getRange(),Ae="$graveyard"!=ue.root.rootName?ue.getJoined(dt,!0):dt;E.updateMarker(Zt,{range:Ae})}return{oldElement:x,newElement:W}}):null}}class n3 extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageBlockEditing"}init(){const r=this.editor;r.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),r.plugins.has("ImageInlineEditing")&&(r.commands.add("imageTypeBlock",new _b(this.editor,"imageBlock")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToStructure({model:"imageBlock",view:(x,{writer:M})=>Qx(M)}),u.for("editingDowncast").elementToStructure({model:"imageBlock",view:(x,{writer:M})=>_.toImageWidget(Qx(M),M,c("image widget"))}),u.for("downcast").add(K4(_,"imageBlock","src")).add(K4(_,"imageBlock","alt")).add($4(_,"imageBlock")),u.for("upcast").elementToElement({view:uA(r,"imageBlock"),model:(x,{writer:M})=>M.createElement("imageBlock",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)}).add(function(x){const M=(E,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"image"}))return;const W=x.findViewImgElement(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"image"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,dt),V.updateConversionResult(dt,F)):V.consumable.revert(F.viewItem,{name:!0,classes:"image"})};return E=>{E.on("element:figure",M)}}(_))}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isInlineImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageBlock"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>dt.createElement("figure",{class:"image"},ue));E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageBlock")&&_.setImageNaturalSizeAttributes(W)})})}}var t6=v(3508);No()(t6.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class tC extends lo{static get requires(){return[n3,V0,W4]}static get pluginName(){return"ImageBlock"}}class eC extends lo{static get requires(){return[pb,mb,Sd,Np]}static get pluginName(){return"ImageInlineEditing"}init(){const r=this.editor,c=r.model.schema;c.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),c.addChildCheck((u,_)=>{if(u.endsWith("caption")&&"imageInline"===_.name)return!1}),this._setupConversion(),r.plugins.has("ImageBlockEditing")&&(r.commands.add("imageTypeInline",new _b(this.editor,"imageInline")),this._setupClipboardIntegration())}_setupConversion(){const r=this.editor,c=r.t,u=r.conversion,_=r.plugins.get("ImageUtils");u.for("dataDowncast").elementToElement({model:"imageInline",view:(x,{writer:M})=>M.createEmptyElement("img")}),u.for("editingDowncast").elementToStructure({model:"imageInline",view:(x,{writer:M})=>{return _.toImageWidget((E=M).createContainerElement("span",{class:"image-inline"},E.createEmptyElement("img")),M,c("image widget"));var E}}),u.for("downcast").add(K4(_,"imageInline","src")).add(K4(_,"imageInline","alt")).add($4(_,"imageInline")),u.for("upcast").elementToElement({view:uA(r,"imageInline"),model:(x,{writer:M})=>M.createElement("imageInline",x.hasAttribute("src")?{src:x.getAttribute("src")}:void 0)})}_setupClipboardIntegration(){const r=this.editor,c=r.model,u=r.editing.view,_=r.plugins.get("ImageUtils"),x=r.plugins.get("ClipboardPipeline");this.listenTo(x,"inputTransformation",(M,E)=>{const F=Array.from(E.content.getChildren());let V;if(!F.every(_.isBlockImageView))return;V=E.targetRanges?r.editing.mapper.toModelRange(E.targetRanges[0]):c.document.selection.getFirstRange();const W=c.createSelection(V);if("imageInline"===j4(c.schema,W)){const dt=new W1(u.document),Zt=F.map(ue=>1===ue.childCount?(Array.from(ue.getAttributes()).forEach(Ae=>dt.setAttribute(...Ae,_.findViewImgElement(ue))),ue.getChild(0)):ue);E.content=dt.createDocumentFragment(Zt)}}),this.listenTo(x,"contentInsertion",(M,E)=>{"paste"===E.method&&c.change(F=>{const V=F.createRangeIn(E.content);for(const W of V.getItems())W.is("element","imageInline")&&_.setImageNaturalSizeAttributes(W)})})}}class hA extends lo{static get requires(){return[eC,V0,W4]}static get pluginName(){return"ImageInline"}}class i3 extends lo{static get pluginName(){return"ImageCaptionUtils"}static get requires(){return[Sd]}getCaptionFromImageModelElement(r){for(const c of r.getChildren())if(c&&c.is("element","caption"))return c;return null}getCaptionFromModelSelection(r){const c=this.editor.plugins.get("ImageUtils"),u=r.getFirstPosition().findAncestor("caption");return u&&c.isBlockImage(u.parent)?u:null}matchImageCaptionViewElement(r){const c=this.editor.plugins.get("ImageUtils");return"figcaption"==r.name&&c.isBlockImageView(r.parent)?{name:!0}:null}}class nC extends Za{refresh(){const r=this.editor,c=r.plugins.get("ImageCaptionUtils"),u=r.plugins.get("ImageUtils");if(!r.plugins.has(n3))return this.isEnabled=!1,void(this.value=!1);const _=r.model.document.selection,x=_.getSelectedElement();if(!x){const M=c.getCaptionFromModelSelection(_);return this.isEnabled=!!M,void(this.value=!!M)}this.isEnabled=u.isImage(x),this.value=!!this.isEnabled&&!!c.getCaptionFromImageModelElement(x)}execute(r={}){const{focusCaptionOnShow:c}=r;this.editor.model.change(u=>{this.value?this._hideImageCaption(u):this._showImageCaption(u,c)})}_showImageCaption(r,c){const u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageCaptionEditing"),x=this.editor.plugins.get("ImageUtils");let M=u.getSelectedElement();const E=_._getSavedCaption(M);x.isInlineImage(M)&&(this.editor.execute("imageTypeBlock"),M=u.getSelectedElement());const F=E||r.createElement("caption");r.append(F,M),c&&r.setSelection(F,"in")}_hideImageCaption(r){const c=this.editor,u=c.model.document.selection,_=c.plugins.get("ImageCaptionEditing"),x=c.plugins.get("ImageCaptionUtils");let M,E=u.getSelectedElement();E?M=x.getCaptionFromImageModelElement(E):(M=x.getCaptionFromModelSelection(u),E=M.parent),_._saveCaption(E,M),r.setSelection(E,"on"),r.remove(M)}}class gA extends lo{constructor(r){super(r),this._savedCaptionsMap=new WeakMap}static get requires(){return[Sd,i3]}static get pluginName(){return"ImageCaptionEditing"}init(){const r=this.editor,c=r.model.schema;c.isRegistered("caption")?c.extend("caption",{allowIn:"imageBlock"}):c.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),r.commands.add("toggleImageCaption",new nC(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}_setupConversion(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils"),x=r.t;r.conversion.for("upcast").elementToElement({view:M=>_.matchImageCaptionViewElement(M),model:"caption"}),r.conversion.for("dataDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>u.isBlockImage(M.parent)?E.createContainerElement("figcaption"):null}),r.conversion.for("editingDowncast").elementToElement({model:"caption",view:(M,{writer:E})=>{if(!u.isBlockImage(M.parent))return null;const F=E.createEditableElement("figcaption");E.setCustomProperty("imageCaption",!0,F),F.placeholder=x("Enter image caption"),Y({view:c,element:F,keepOnFocus:!0});const V=M.parent.getAttribute("alt");return L5(F,E,{label:V?x("Caption for image: %0",[V]):x("Caption for the image")})}})}_setupImageTypeCommandsIntegration(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.plugins.get("ImageCaptionUtils"),_=r.commands.get("imageTypeInline"),x=r.commands.get("imageTypeBlock"),M=E=>{if(!E.return)return;const{oldElement:F,newElement:V}=E.return;if(!F)return;if(c.isBlockImage(F)){const dt=u.getCaptionFromImageModelElement(F);if(dt)return void this._saveCaption(V,dt)}const W=this._getSavedCaption(F);W&&this._saveCaption(V,W)};_&&this.listenTo(_,"execute",M,{priority:"low"}),x&&this.listenTo(x,"execute",M,{priority:"low"})}_getSavedCaption(r){const c=this._savedCaptionsMap.get(r);return c?Jr.fromJSON(c):null}_saveCaption(r,c){this._savedCaptionsMap.set(r,c.toJSON())}_registerCaptionReconversion(){const r=this.editor,c=r.model,u=r.plugins.get("ImageUtils"),_=r.plugins.get("ImageCaptionUtils");c.document.on("change:data",()=>{const x=c.document.differ.getChanges();for(const M of x){if("alt"!==M.attributeKey)continue;const E=M.range.start.nodeAfter;if(u.isBlockImage(E)){const F=_.getCaptionFromImageModelElement(E);if(!F)return;r.editing.reconvertItem(F)}}})}}class hb extends lo{static get requires(){return[i3]}static get pluginName(){return"ImageCaptionUI"}init(){const r=this.editor,c=r.editing.view,u=r.plugins.get("ImageCaptionUtils"),_=r.t;r.ui.componentFactory.add("toggleImageCaption",x=>{const M=r.commands.get("toggleImageCaption"),E=new $o(x);return E.set({icon:gs.caption,tooltip:!0,isToggleable:!0}),E.bind("isOn","isEnabled").to(M,"value","isEnabled"),E.bind("label").to(M,"value",F=>_(F?"Toggle caption off":"Toggle caption on")),this.listenTo(E,"execute",()=>{r.execute("toggleImageCaption",{focusCaptionOnShow:!0});const F=u.getCaptionFromModelSelection(r.model.document.selection);if(F){const V=r.editing.mapper.toViewElement(F);c.scrollToTheSelection(),c.change(W=>{W.addClass("image__caption_highlighted",V)})}r.editing.view.focus()}),E})}}var gb=v(2640);function Cf(m){const r=m.map(c=>c.replace("+","\\+"));return new RegExp(`^image\\/(${r.join("|")})$`)}function bA(m){return new Promise((r,c)=>{const u=m.getAttribute("src");fetch(u).then(_=>_.blob()).then(_=>{const x=iC(_,u),M=x.replace("image/",""),E=new File([_],`image.${M}`,{type:x});r(E)}).catch(_=>{return _&&"TypeError"===_.name?(x=u,(M=x,new Promise((E,F)=>{const V=Mt.document.createElement("img");V.addEventListener("load",()=>{const W=Mt.document.createElement("canvas");W.width=V.width,W.height=V.height,W.getContext("2d").drawImage(V,0,0),W.toBlob(dt=>dt?E(dt):F())}),V.addEventListener("error",()=>F()),V.src=M})).then(M=>{const E=iC(M,x),F=E.replace("image/","");return new File([M],`image.${F}`,{type:E})})).then(r).catch(c):c(_);var x,M})})}function iC(m,r){return m.type?m.type:r.match(/data:(image\/\w+);base64/)?r.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}No()(gb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class bb extends lo{static get pluginName(){return"ImageUploadUI"}init(){const r=this.editor,c=r.t,u=_=>{const x=new Ex(_),M=r.commands.get("uploadImage"),E=r.config.get("image.upload.types"),F=Cf(E);return x.set({acceptedType:E.map(V=>`image/${V}`).join(","),allowMultipleFiles:!0}),x.buttonView.set({label:c("Insert image"),icon:gs.image,tooltip:!0}),x.buttonView.bind("isEnabled").to(M),x.on("done",(V,W)=>{const dt=Array.from(W).filter(Zt=>F.test(Zt.type));dt.length&&(r.execute("uploadImage",{file:dt}),r.editing.view.focus())}),x};r.ui.componentFactory.add("uploadImage",u),r.ui.componentFactory.add("imageUpload",u)}}var vA=v(3689);No()(vA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var vb=v(4036);No()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var xb=v(3773);No()(xb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class xA extends lo{constructor(r){super(r),this.uploadStatusChange=(c,u,_)=>{const x=this.editor,M=u.item,E=M.getAttribute("uploadId");if(!_.consumable.consume(u.item,c.name))return;const F=x.plugins.get("ImageUtils"),V=x.plugins.get(ip),W=E?u.attributeNewValue:null,dt=this.placeholder,Zt=x.editing.mapper.toViewElement(M),ue=_.writer;if("reading"==W)return Cb(Zt,ue),void aC(F,dt,Zt,ue);if("uploading"==W){const Ae=V.loaders.get(E);return Cb(Zt,ue),void(Ae?(rC(Zt,ue),function(Ie,ln,Dn,di){const Ri=function(Go){const Da=Go.createUIElement("div",{class:"ck-progress-bar"});return Go.setCustomProperty("progressBar",!0,Da),Da}(ln);ln.insert(ln.createPositionAt(Ie,"end"),Ri),Dn.on("change:uploadedPercent",(Go,Da,ws)=>{di.change(Kr=>{Kr.setStyle("width",ws+"%",Ri)})})}(Zt,ue,Ae,x.editing.view),function(Ie,ln,Dn,di){if(di.data){const Ri=Ie.findViewImgElement(ln);Dn.setAttribute("src",di.data,Ri)}}(F,Zt,ue,Ae)):aC(F,dt,Zt,ue))}"complete"==W&&V.loaders.get(E)&&function(Ae,Ie,ln){const Dn=Ie.createUIElement("div",{class:"ck-image-upload-complete-icon"});Ie.insert(Ie.createPositionAt(Ae,"end"),Dn),setTimeout(()=>{ln.change(di=>di.remove(di.createRangeOn(Dn)))},3e3)}(Zt,ue,x.editing.view),o3(Zt,ue,"progressBar"),rC(Zt,ue),ue.removeClass("ck-appear",Zt)},this.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw=="}static get pluginName(){return"ImageUploadProgress"}init(){const r=this.editor;r.plugins.has("ImageBlockEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),r.plugins.has("ImageInlineEditing")&&r.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange)}}function Cb(m,r){m.hasClass("ck-appear")||r.addClass("ck-appear",m)}function aC(m,r,c,u){c.hasClass("ck-image-upload-placeholder")||u.addClass("ck-image-upload-placeholder",c);const _=m.findViewImgElement(c);_.getAttribute("src")!==r&&u.setAttribute("src",r,_),sC(c,"placeholder")||u.insert(u.createPositionAfter(_),function(x){const M=x.createUIElement("div",{class:"ck-upload-placeholder-loader"});return x.setCustomProperty("placeholder",!0,M),M}(u))}function rC(m,r){m.hasClass("ck-image-upload-placeholder")&&r.removeClass("ck-image-upload-placeholder",m),o3(m,r,"placeholder")}function sC(m,r){for(const c of m.getChildren())if(c.getCustomProperty(r))return c}function o3(m,r,c){const u=sC(m,c);u&&r.remove(r.createRangeOn(u))}var cC=Object.defineProperty,lC=Object.defineProperties,n6=Object.getOwnPropertyDescriptors,i6=Object.getOwnPropertySymbols,ay=Object.prototype.hasOwnProperty,Ab=Object.prototype.propertyIsEnumerable,uC=(m,r,c)=>r in m?cC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c;class dC extends Za{refresh(){const r=this.editor,c=r.plugins.get("ImageUtils"),u=r.model.document.selection.getSelectedElement();this.isEnabled=c.isImageAllowed()||c.isImage(u)}execute(r){const c=Ss(r.file),u=this.editor.model.document.selection,_=this.editor.plugins.get("ImageUtils"),x=Object.fromEntries(u.getAttributes());c.forEach((M,E)=>{const F=u.getSelectedElement();if(E&&F&&_.isImage(F)){const V=this.editor.model.createPositionAfter(F);this._uploadImage(M,x,V)}else this._uploadImage(M,x)})}_uploadImage(r,c,u){const _=this.editor,x=_.plugins.get(ip).createLoader(r),M=_.plugins.get("ImageUtils");var E;x&&M.insertImage((E=((V,W)=>{for(var dt in W||(W={}))ay.call(W,dt)&&uC(V,dt,W[dt]);if(i6)for(var dt of i6(W))Ab.call(W,dt)&&uC(V,dt,W[dt]);return V})({},c),lC(E,n6({uploadId:x.id}))),u)}}class Af extends lo{constructor(r){super(r),r.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),this._uploadImageElements=new Map}static get requires(){return[ip,u2,Np,Sd]}static get pluginName(){return"ImageUploadEditing"}init(){const r=this.editor,c=r.model.document,u=r.conversion,_=r.plugins.get(ip),x=r.plugins.get("ImageUtils"),M=r.plugins.get("ClipboardPipeline"),E=Cf(r.config.get("image.upload.types")),F=new dC(r);r.commands.add("uploadImage",F),r.commands.add("imageUpload",F),u.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(r.editing.view.document,"clipboardInput",(V,W)=>{if(dt=W.dataTransfer,Array.from(dt.types).includes("text/html")&&""!==dt.getData("text/html"))return;var dt;const Zt=Array.from(W.dataTransfer.files).filter(ue=>!!ue&&E.test(ue.type));Zt.length&&(V.stop(),r.model.change(ue=>{W.targetRanges&&ue.setSelection(W.targetRanges.map(Ae=>r.editing.mapper.toModelRange(Ae))),r.execute("uploadImage",{file:Zt})}))}),this.listenTo(M,"inputTransformation",(V,W)=>{const dt=Array.from(r.editing.view.createRangeIn(W.content)).map(ue=>ue.item).filter(ue=>{return!(!x.isInlineImageView(Ie=ue)||!Ie.getAttribute("src")||!Ie.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!Ie.getAttribute("src").match(/^blob:/g)||ue.getAttribute("uploadProcessed"));var Ie}).map(ue=>({promise:bA(ue),imageElement:ue}));if(!dt.length)return;const Zt=new W1(r.editing.view.document);for(const ue of dt){Zt.setAttribute("uploadProcessed",!0,ue.imageElement);const Ae=_.createLoader(ue.promise);Ae&&(Zt.setAttribute("src","",ue.imageElement),Zt.setAttribute("uploadId",Ae.id,ue.imageElement))}}),r.editing.view.document.on("dragover",(V,W)=>{W.preventDefault()}),c.on("change",()=>{const V=c.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),W=new Set;for(const dt of V)if("insert"==dt.type&&"$text"!=dt.name){const Zt=dt.position.nodeAfter,ue="$graveyard"==dt.position.root.rootName;for(const Ae of CA(r,Zt)){const Ie=Ae.getAttribute("uploadId");if(!Ie)continue;const ln=_.loaders.get(Ie);ln&&(ue?W.has(Ie)||ln.abort():(W.add(Ie),this._uploadImageElements.set(Ie,Ae),"idle"==ln.status&&this._readAndUpload(ln)))}}}),this.on("uploadComplete",(V,{imageElement:W,data:dt})=>{const Zt=dt.urls?dt.urls:dt;this.editor.model.change(ue=>{ue.setAttribute("src",Zt.default,W),this._parseAndSetSrcsetAttributeOnImage(Zt,W,ue),x.setImageNaturalSizeAttributes(W)})},{priority:"low"})}afterInit(){const r=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&r.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&r.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]})}_readAndUpload(r){const c=this.editor,u=c.model,_=c.locale.t,x=c.plugins.get(ip),M=c.plugins.get(u2),E=c.plugins.get("ImageUtils"),F=this._uploadImageElements;return u.enqueueChange({isUndoable:!1},W=>{W.setAttribute("uploadStatus","reading",F.get(r.id))}),r.read().then(()=>{const W=r.upload(),dt=F.get(r.id);if(D_isSafari){const Zt=c.editing.mapper.toViewElement(dt),ue=E.findViewImgElement(Zt);c.editing.view.once("render",()=>{if(!ue.parent)return;const Ae=c.editing.view.domConverter.mapViewToDom(ue.parent);if(!Ae)return;const Ie=Ae.style.display;Ae.style.display="none",Ae._ckHack=Ae.offsetHeight,Ae.style.display=Ie})}return u.enqueueChange({isUndoable:!1},Zt=>{Zt.setAttribute("uploadStatus","uploading",dt)}),W}).then(W=>{u.enqueueChange({isUndoable:!1},dt=>{const Zt=F.get(r.id);dt.setAttribute("uploadStatus","complete",Zt),this.fire("uploadComplete",{data:W,imageElement:Zt})}),V()}).catch(W=>{if("error"!==r.status&&"aborted"!==r.status)throw W;"error"==r.status&&W&&M.showWarning(W,{title:_("Upload failed"),namespace:"upload"}),u.enqueueChange({isUndoable:!1},dt=>{dt.remove(F.get(r.id))}),V()});function V(){u.enqueueChange({isUndoable:!1},W=>{const dt=F.get(r.id);W.removeAttribute("uploadId",dt),W.removeAttribute("uploadStatus",dt),F.delete(r.id)}),x.destroyLoader(r)}}_parseAndSetSrcsetAttributeOnImage(r,c,u){let _=0;const x=Object.keys(r).filter(M=>{const E=parseInt(M,10);if(!isNaN(E))return _=Math.max(_,E),!0}).map(M=>`${r[M]} ${M}w`).join(", ");if(""!=x){const M={srcset:x};c.hasAttribute("width")||c.hasAttribute("height")||(M.width=_),u.setAttributes(M,c)}}}function CA(m,r){const c=m.plugins.get("ImageUtils");return Array.from(m.model.createRangeOn(r)).filter(u=>c.isImage(u.item)).map(u=>u.item)}var $r=v(1568);No()($r.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var pC=v(3535);No()(pC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var yA=v(6270);No()(yA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class wA extends Za{constructor(r,c){super(r),this._defaultStyles={imageBlock:!1,imageInline:!1},this._styles=new Map(c.map(u=>{if(u.isDefault)for(const _ of u.modelElements)this._defaultStyles[_]=u.name;return[u.name,u]}))}refresh(){const r=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!r,this.value=!!this.isEnabled&&(r.hasAttribute("imageStyle")?r.getAttribute("imageStyle"):this._defaultStyles[r.name])}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("ImageUtils");u.change(x=>{const M=r.value,{setImageSizes:E=!0}=r;let F=_.getClosestSelectedImageElement(u.document.selection);M&&this.shouldConvertImageType(M,F)&&(this.editor.execute(_.isBlockImage(F)?"imageTypeInline":"imageTypeBlock",{setImageSizes:E}),F=_.getClosestSelectedImageElement(u.document.selection)),!M||this._styles.get(M).isDefault?x.removeAttribute("imageStyle",F):x.setAttribute("imageStyle",M,F),E&&_.setImageNaturalSizeAttributes(F)})}shouldConvertImageType(r,c){return!this._styles.get(r).modelElements.includes(c.name)}}var UA=Object.defineProperty,Tb=Object.getOwnPropertySymbols,wb=Object.prototype.hasOwnProperty,ZA=Object.prototype.propertyIsEnumerable,o6=(m,r,c)=>r in m?UA(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Ub=(m,r)=>{for(var c in r||(r={}))wb.call(r,c)&&o6(m,c,r[c]);if(Tb)for(var c of Tb(r))ZA.call(r,c)&&o6(m,c,r[c]);return m};const{objectFullWidth:a6,objectInline:mC,objectLeft:Zb,objectRight:Mb,objectCenter:a3,objectBlockLeft:kb,objectBlockRight:Db}=gs,Kh={get inline(){return{name:"inline",title:"In line",icon:mC,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Zb,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:kb,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:a3,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Mb,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Db,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:a3,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Mb,modelElements:["imageBlock"],className:"image-style-side"}}},Pb={full:a6,left:kb,right:Db,center:a3,inlineLeft:Zb,inlineRight:Mb,inline:mC},_C=[{name:"imageStyle:wrapText",title:"Wrap text",defaultItem:"imageStyle:alignLeft",items:["imageStyle:alignLeft","imageStyle:alignRight"]},{name:"imageStyle:breakText",title:"Break text",defaultItem:"imageStyle:block",items:["imageStyle:alignBlockLeft","imageStyle:block","imageStyle:alignBlockRight"]}];function MA(m){Tt("image-style-configuration-definition-invalid",m)}const r3={normalizeStyles:function(m){return(m.configuredStyles.options||[]).map(r=>{return"string"==typeof(c="string"==typeof(c=r)?Kh[c]?Ub({},Kh[c]):{name:c}:function(u,_){const x=Ub({},_);for(const M in u)Object.prototype.hasOwnProperty.call(_,M)||(x[M]=u[M]);return x}(Kh[c.name],c)).icon&&(c.icon=Pb[c.icon]||c.icon),c;var c}).filter(r=>function(c,{isBlockPluginLoaded:u,isInlinePluginLoaded:_}){const{modelElements:x,name:M}=c;if(!(x&&x.length&&M))return MA({style:c}),!1;{const E=[u?"imageBlock":null,_?"imageInline":null];if(!x.some(F=>E.includes(F)))return Tt("image-style-missing-dependency",{style:c,missingPlugins:x.map(F=>"imageBlock"===F?"ImageBlockEditing":"ImageInlineEditing")}),!1}return!0}(r,m))},getDefaultStylesConfiguration:function(m,r){return m&&r?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:m?{options:["block","side"]}:r?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(m){return m.has("ImageBlockEditing")&&m.has("ImageInlineEditing")?[..._C]:[]},warnInvalidStyle:MA,DEFAULT_OPTIONS:Kh,DEFAULT_ICONS:Pb,DEFAULT_DROPDOWN_DEFINITIONS:_C};function kA(m,r){for(const c of r)if(c.name===m)return c}class fC extends lo{static get pluginName(){return"ImageStyleEditing"}static get requires(){return[Sd]}init(){const{normalizeStyles:r,getDefaultStylesConfiguration:c}=r3,u=this.editor,_=u.plugins.has("ImageBlockEditing"),x=u.plugins.has("ImageInlineEditing");u.config.define("image.styles",c(_,x)),this.normalizedStyles=r({configuredStyles:u.config.get("image.styles"),isBlockPluginLoaded:_,isInlinePluginLoaded:x}),this._setupConversion(_,x),this._setupPostFixer(),u.commands.add("imageStyle",new wA(u,this.normalizedStyles))}_setupConversion(r,c){const u=this.editor,_=u.model.schema,x=(M=this.normalizedStyles,(F,V,W)=>{if(!W.consumable.consume(V.item,F.name))return;const dt=kA(V.attributeNewValue,M),Zt=kA(V.attributeOldValue,M),ue=W.mapper.toViewElement(V.item),Ae=W.writer;Zt&&Ae.removeClass(Zt.className,ue),dt&&Ae.addClass(dt.className,ue)});var M;const E=function(F){const V={imageInline:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageInline")),imageBlock:F.filter(W=>!W.isDefault&&W.modelElements.includes("imageBlock"))};return(W,dt,Zt)=>{if(!dt.modelRange)return;const ue=dt.viewItem,Ae=as(dt.modelRange.getItems());if(Ae&&Zt.schema.checkAttribute(Ae,"imageStyle"))for(const Ie of V[Ae.name])Zt.consumable.consume(ue,{classes:Ie.className})&&Zt.writer.setAttribute("imageStyle",Ie.name,Ae)}}(this.normalizedStyles);u.editing.downcastDispatcher.on("attribute:imageStyle",x),u.data.downcastDispatcher.on("attribute:imageStyle",x),r&&(_.extend("imageBlock",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:figure",E,{priority:"low"})),c&&(_.extend("imageInline",{allowAttributes:"imageStyle"}),u.data.upcastDispatcher.on("element:img",E,{priority:"low"}))}_setupPostFixer(){const r=this.editor,c=r.model.document,u=r.plugins.get(Sd),_=new Map(this.normalizedStyles.map(x=>[x.name,x]));c.registerPostFixer(x=>{let M=!1;for(const E of c.differ.getChanges())if("insert"==E.type||"attribute"==E.type&&"imageStyle"==E.attributeKey){let F="insert"==E.type?E.position.nodeAfter:E.range.start.nodeAfter;if(F&&F.is("element","paragraph")&&F.childCount>0&&(F=F.getChild(0)),!u.isImage(F))continue;const V=F.getAttribute("imageStyle");if(!V)continue;const W=_.get(V);W&&W.modelElements.includes(F.name)||(x.removeAttribute("imageStyle",F),M=!0)}return M})}}var DA=v(5083);No()(DA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class sy extends lo{static get requires(){return[fC]}static get pluginName(){return"ImageStyleUI"}get localizedDefaultStylesTitles(){const r=this.editor.t;return{"Wrap text":r("Wrap text"),"Break text":r("Break text"),"In line":r("In line"),"Full size image":r("Full size image"),"Side image":r("Side image"),"Left aligned image":r("Left aligned image"),"Centered image":r("Centered image"),"Right aligned image":r("Right aligned image")}}init(){const r=this.editor.plugins,c=this.editor.config.get("image.toolbar")||[],u=PA(r.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);for(const x of u)this._createButton(x);const _=PA([...c.filter(Wt),...r3.getDefaultDropdownDefinitions(r)],this.localizedDefaultStylesTitles);for(const x of _)this._createDropdown(x,u)}_createDropdown(r,c){const u=this.editor.ui.componentFactory;u.add(r.name,_=>{let x;const{defaultItem:M,items:E,title:F}=r,V=E.filter(ue=>c.find(({name:Ae})=>SA(Ae)===ue)).map(ue=>{const Ae=u.create(ue);return ue===M&&(x=Ae),Ae});E.length!==V.length&&r3.warnInvalidStyle({dropdown:r});const W=Lp(_,p4),dt=W.buttonView,Zt=dt.arrowView;return e_(W,V,{enableActiveItemFocusOnDropdownOpen:!0}),dt.set({label:LA(F,x.label),class:null,tooltip:!0}),Zt.unbind("label"),Zt.set({label:F}),dt.bind("icon").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return Ae<0?x.icon:V[Ae].icon}),dt.bind("label").toMany(V,"isOn",(...ue)=>{const Ae=ue.findIndex(ku);return LA(F,Ae<0?x.label:V[Ae].label)}),dt.bind("isOn").toMany(V,"isOn",(...ue)=>ue.some(ku)),dt.bind("class").toMany(V,"isOn",(...ue)=>ue.some(ku)?"ck-splitbutton_flatten":void 0),dt.on("execute",()=>{V.some(({isOn:ue})=>ue)?W.isOpen=!W.isOpen:x.fire("execute")}),W.bind("isEnabled").toMany(V,"isEnabled",(...ue)=>ue.some(ku)),this.listenTo(W,"execute",()=>{this.editor.editing.view.focus()}),W})}_createButton(r){const c=r.name;this.editor.ui.componentFactory.add(SA(c),u=>{const _=this.editor.commands.get("imageStyle"),x=new $o(u);return x.set({label:r.title,icon:r.icon,tooltip:!0,isToggleable:!0}),x.bind("isEnabled").to(_,"isEnabled"),x.bind("isOn").to(_,"value",M=>M===c),x.on("execute",this._executeCommand.bind(this,c)),x})}_executeCommand(r){this.editor.execute("imageStyle",{value:r}),this.editor.editing.view.focus()}}function PA(m,r){for(const c of m)r[c.title]&&(c.title=r[c.title]);return m}function SA(m){return`imageStyle:${m}`}function LA(m,r){return(m?m+": ":"")+r}class r6 extends lo{static get pluginName(){return"IndentEditing"}init(){const r=this.editor;r.commands.add("indent",new Qp(r)),r.commands.add("outdent",new Qp(r))}}const OA=' ',Sb=' ';class s3 extends lo{static get pluginName(){return"IndentUI"}init(){const r=this.editor,c=r.locale,u=r.t,_="ltr"==c.uiLanguageDirection?OA:Sb,x="ltr"==c.uiLanguageDirection?Sb:OA;this._defineButton("indent",u("Increase indent"),_),this._defineButton("outdent",u("Decrease indent"),x)}_defineButton(r,c,u){const _=this.editor;_.ui.componentFactory.add(r,x=>{const M=_.commands.get(r),E=new $o(x);return E.set({label:c,icon:u,tooltip:!0}),E.bind("isEnabled").to(M,"isEnabled"),this.listenTo(E,"execute",()=>{_.execute(r),_.editing.view.focus()}),E})}}class hC{constructor(){this._definitions=new Set}get length(){return this._definitions.size}add(r){Array.isArray(r)?r.forEach(c=>this._definitions.add(c)):this._definitions.add(r)}getDispatcher(){return r=>{r.on("attribute:linkHref",(c,u,_)=>{if(!_.consumable.test(u.item,"attribute:linkHref")||!u.item.is("selection")&&!_.schema.isInline(u.item))return;const x=_.writer,M=x.document.selection;for(const E of this._definitions){const F=x.createAttributeElement("a",E.attributes,{priority:5});E.classes&&x.addClass(E.classes,F);for(const V in E.styles)x.setStyle(V,E.styles[V],F);x.setCustomProperty("link",!0,F),E.callback(u.attributeNewValue)?u.item.is("selection")?x.wrap(M.getFirstRange(),F):x.wrap(_.mapper.toViewRange(u.range),F):x.unwrap(_.mapper.toViewRange(u.range),F)}},{priority:"high"})}}getDispatcherForLinkedImage(){return r=>{r.on("attribute:linkHref:imageBlock",(c,u,{writer:_,mapper:x})=>{const M=x.toViewElement(u.item),E=Array.from(M.getChildren()).find(F=>F.is("element","a"));for(const F of this._definitions){const V=Kc(F.attributes);if(F.callback(u.attributeNewValue)){for(const[W,dt]of V)"class"===W?_.addClass(dt,E):_.setAttribute(W,dt,E);F.classes&&_.addClass(F.classes,E);for(const W in F.styles)_.setStyle(W,F.styles[W],E)}else{for(const[W,dt]of V)"class"===W?_.removeClass(dt,E):_.removeAttribute(W,E);F.classes&&_.removeClass(F.classes,E);for(const W in F.styles)_.removeStyle(W,E)}}})}}}var cy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");const c3=function(m){return cy.test(m)};var vC="\\ud800-\\udfff",xC="["+vC+"]",Lb="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ob="\\ud83c[\\udffb-\\udfff]",CC="[^"+vC+"]",AC="(?:\\ud83c[\\udde6-\\uddff]){2}",Xh="[\\ud800-\\udbff][\\udc00-\\udfff]",yC="(?:"+Lb+"|"+Ob+")?",TC="[\\ufe0e\\ufe0f]?",ly=TC+yC+"(?:\\u200d(?:"+[CC,AC,Xh].join("|")+")"+TC+yC+")*",uy="(?:"+[CC+Lb+"?",Lb,AC,Xh,xC].join("|")+")",EA=RegExp(Ob+"(?="+Ob+")|"+uy+ly,"g");const dy=function(r){r=wg(r);var c=c3(r)?function(m){return c3(m)?function(m){return m.match(EA)||[]}(m):function(m){return m.split("")}(m)}(r):void 0,u=c?c[0]:r.charAt(0),_=c?function(m,r,c){var u=m.length;return D2(m,1,c=void 0===c?u:c)}(c).join(""):r.slice(1);return u.toUpperCase()+_},UC=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,ZC=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,MC=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,py=/^((\w+:(\/{2,})?)|(\W))/i,k1="Ctrl+K";function kC(m,{writer:r}){const c=r.createAttributeElement("a",{href:m},{priority:5});return r.setCustomProperty("link",!0,c),c}function l3(m){const r=String(m);return r.replace(UC,"").match(ZC)?r:"#"}function s6(m,r){return!!m&&r.checkAttribute(m.name,"linkHref")}function r1(m,r){const c=MC.test(m)?"mailto:":r,_=!!c&&!Eb(m);return m&&_?c+m:m}function Eb(m){return py.test(m)}function c6(m){window.open(m,"_blank","noopener")}class Ib extends Za{constructor(){super(...arguments),this.manualDecorators=new ec,this.automaticDecorators=new hC}restoreManualDecoratorStates(){for(const r of this.manualDecorators)r.value=this._getDecoratorStateFromModel(r.id)}refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement()||as(c.getSelectedBlocks());s6(u,r.schema)?(this.value=u.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttribute(u,"linkHref")):(this.value=c.getAttribute("linkHref"),this.isEnabled=r.schema.checkAttributeInSelection(c,"linkHref"));for(const _ of this.manualDecorators)_.value=this._getDecoratorStateFromModel(_.id)}execute(r,c={}){const u=this.editor.model,_=u.document.selection,x=[],M=[];for(const E in c)c[E]?x.push(E):M.push(E);u.change(E=>{if(_.isCollapsed){const F=_.getFirstPosition();if(_.hasAttribute("linkHref")){const V=DC(_);let W=gc(F,"linkHref",_.getAttribute("linkHref"),u);_.getAttribute("linkHref")===V&&(W=this._updateLinkContent(u,E,W,r)),E.setAttribute("linkHref",r,W),x.forEach(dt=>{E.setAttribute(dt,!0,W)}),M.forEach(dt=>{E.removeAttribute(dt,W)}),E.setSelection(E.createPositionAfter(W.end.nodeBefore))}else if(""!==r){const V=Kc(_.getAttributes());V.set("linkHref",r),x.forEach(dt=>{V.set(dt,!0)});const{end:W}=u.insertContent(E.createText(r,V),F);E.setSelection(W)}["linkHref",...x,...M].forEach(V=>{E.removeSelectionAttribute(V)})}else{const F=u.schema.getValidRanges(_.getRanges(),"linkHref"),V=[];for(const dt of _.getSelectedBlocks())u.schema.checkAttribute(dt,"linkHref")&&V.push(E.createRangeOn(dt));const W=V.slice();for(const dt of F)this._isRangeToUpdate(dt,V)&&W.push(dt);for(const dt of W){let Zt=dt;if(1===W.length){const ue=DC(_);_.getAttribute("linkHref")===ue&&(Zt=this._updateLinkContent(u,E,dt,r),E.setSelection(E.createSelection(Zt)))}E.setAttribute("linkHref",r,Zt),x.forEach(ue=>{E.setAttribute(ue,!0,Zt)}),M.forEach(ue=>{E.removeAttribute(ue,Zt)})}}})}_getDecoratorStateFromModel(r){const c=this.editor.model,u=c.document.selection,_=u.getSelectedElement();return s6(_,c.schema)?_.getAttribute(r):u.getAttribute(r)}_isRangeToUpdate(r,c){for(const u of c)if(u.containsRange(r))return!1;return!0}_updateLinkContent(r,c,u,_){const x=c.createText(_,{linkHref:_});return r.insertContent(x,u)}}function DC(m){if(m.isCollapsed){const r=m.getFirstPosition();return r.textNode&&r.textNode.data}{const r=Array.from(m.getFirstRange().getItems());if(r.length>1)return null;const c=r[0];return c.is("$text")||c.is("$textProxy")?c.data:null}}class Nb extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=c.getSelectedElement();this.isEnabled=s6(u,r.schema)?r.schema.checkAttribute(u,"linkHref"):r.schema.checkAttributeInSelection(c,"linkHref")}execute(){const c=this.editor.model,u=c.document.selection,_=this.editor.commands.get("link");c.change(x=>{const M=u.isCollapsed?[gc(u.getFirstPosition(),"linkHref",u.getAttribute("linkHref"),c)]:c.schema.getValidRanges(u.getRanges(),"linkHref");for(const E of M)if(x.removeAttribute("linkHref",E),_)for(const F of _.manualDecorators)x.removeAttribute(F.id,E)})}}class PC extends(Ue()){constructor({id:r,label:c,attributes:u,classes:_,styles:x,defaultValue:M}){super(),this.id=r,this.set("value",void 0),this.defaultValue=M,this.label=c,this.attributes=u,this.classes=_,this.styles=x}_createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}var Fb=v(9773);No()(Fb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var SC=Object.defineProperty,Rb=Object.getOwnPropertySymbols,LC=Object.prototype.hasOwnProperty,OC=Object.prototype.propertyIsEnumerable,EC=(m,r,c)=>r in m?SC(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,l6=(m,r)=>{for(var c in r||(r={}))LC.call(r,c)&&EC(m,c,r[c]);if(Rb)for(var c of Rb(r))OC.call(r,c)&&EC(m,c,r[c]);return m};const l_="automatic",Hb=/^(https?:)?\/\//;class zb extends lo{static get pluginName(){return"LinkEditing"}static get requires(){return[k5,Gv,Np]}constructor(r){super(r),r.config.define("link",{addTargetToExternalLinks:!1})}init(){const r=this.editor;r.model.schema.extend("$text",{allowAttributes:"linkHref"}),r.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:kC}),r.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:(u,_)=>kC(l3(u),_)}),r.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:u=>u.getAttribute("href")}}),r.commands.add("link",new Ib(r)),r.commands.add("unlink",new Nb(r));const c=function(u,_){const x={"Open in a new tab":u("Open in a new tab"),Downloadable:u("Downloadable")};return _.forEach(M=>("label"in M&&x[M.label]&&(M.label=x[M.label]),M)),_}(r.t,function(u){const _=[];if(u)for(const[x,M]of Object.entries(u)){const E=Object.assign({},M,{id:`link${dy(x)}`});_.push(E)}return _}(r.config.get("link.decorators")));this._enableAutomaticDecorators(c.filter(u=>u.mode===l_)),this._enableManualDecorators(c.filter(u=>"manual"===u.mode)),r.plugins.get(k5).registerAttribute("linkHref"),function(u,_,x,M){const E=u.editing.view,F=new Set;E.document.registerPostFixer(V=>{const W=u.model.document.selection;let dt=!1;if(W.hasAttribute(_)){const Zt=gc(W.getFirstPosition(),_,W.getAttribute(_),u.model),ue=u.editing.mapper.toViewRange(Zt);for(const Ae of ue.getItems())Ae.is("element","a")&&!Ae.hasClass(M)&&(V.addClass(M,Ae),F.add(Ae),dt=!0)}return dt}),u.conversion.for("editingDowncast").add(V=>{function W(){E.change(dt=>{for(const Zt of F.values())dt.removeClass(M,Zt),F.delete(Zt)})}V.on("insert",W,{priority:"highest"}),V.on("remove",W,{priority:"highest"}),V.on("attribute",W,{priority:"highest"}),V.on("selection",W,{priority:"highest"})})}(r,"linkHref",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration()}_enableAutomaticDecorators(r){const c=this.editor,u=c.commands.get("link").automaticDecorators;c.config.get("link.addTargetToExternalLinks")&&u.add({id:"linkIsExternal",mode:l_,callback:_=>!!_&&Hb.test(_),attributes:{target:"_blank",rel:"noopener noreferrer"}}),u.add(r),u.length&&c.conversion.for("downcast").add(u.getDispatcher())}_enableManualDecorators(r){if(!r.length)return;const c=this.editor,u=c.commands.get("link").manualDecorators;r.forEach(_=>{c.model.schema.extend("$text",{allowAttributes:_.id});const x=new PC(_);u.add(x),c.conversion.for("downcast").attributeToElement({model:x.id,view:(M,{writer:E,schema:F},{item:V})=>{if((V.is("selection")||F.isInline(V))&&M){const W=E.createAttributeElement("a",x.attributes,{priority:5});x.classes&&E.addClass(x.classes,W);for(const dt in x.styles)E.setStyle(dt,x.styles[dt],W);return E.setCustomProperty("link",!0,W),W}}}),c.conversion.for("upcast").elementToAttribute({view:l6({name:"a"},x._createPattern()),model:{key:x.id}})})}_enableLinkOpen(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"click",(u,_)=>{if(!(D_isMac?_.domEvent.metaKey:_.domEvent.ctrlKey))return;let x=_.domTarget;if("a"!=x.tagName.toLowerCase()&&(x=x.closest("a")),!x)return;const M=x.getAttribute("href");M&&(u.stop(),_.preventDefault(),c6(M))},{context:"$capture"}),this.listenTo(c,"keydown",(u,_)=>{const x=r.commands.get("link").value;x&&_.keyCode===Ka.enter&&_.altKey&&(u.stop(),c6(x))})}_enableInsertContentSelectionAttributesFixer(){const r=this.editor.model,c=r.document.selection;this.listenTo(r,"insertContent",()=>{const u=c.anchor.nodeBefore,_=c.anchor.nodeAfter;c.hasAttribute("linkHref")&&u&&u.hasAttribute("linkHref")&&(_&&_.hasAttribute("linkHref")||r.change(x=>{op(x,NC(r.schema))}))},{priority:"low"})}_enableClickingAfterLink(){const r=this.editor,c=r.model;r.editing.view.addObserver(C0);let u=!1;this.listenTo(r.editing.view.document,"mousedown",()=>{u=!0}),this.listenTo(r.editing.view.document,"selectionChange",()=>{if(!u)return;u=!1;const _=c.document.selection;if(!_.isCollapsed||!_.hasAttribute("linkHref"))return;const x=_.getFirstPosition(),M=gc(x,"linkHref",_.getAttribute("linkHref"),c);(x.isTouching(M.start)||x.isTouching(M.end))&&c.change(E=>{op(E,NC(c.schema))})})}_enableTypingOverLink(){const r=this.editor;let u=null,_=!1;this.listenTo(r.editing.view.document,"delete",()=>{_=!0},{priority:"high"}),this.listenTo(r.model,"deleteContent",()=>{const x=r.model.document.selection;x.isCollapsed||(_?_=!1:IC(r)&&function(M){const E=M.document.selection,F=E.getFirstPosition(),V=E.getLastPosition(),W=F.nodeAfter;return!!(W&&W.is("$text")&&W.hasAttribute("linkHref"))&&(W===(V.textNode||V.nodeBefore)||gc(F,"linkHref",W.getAttribute("linkHref"),M).containsRange(M.createRange(F,V),!0))}(r.model)&&(u=x.getAttributes()))},{priority:"high"}),this.listenTo(r.model,"insertContent",(x,[M])=>{_=!1,IC(r)&&u&&(r.model.change(E=>{for(const[F,V]of u)E.setAttribute(F,V,M)}),u=null)},{priority:"high"})}_handleDeleteContentAfterLink(){const r=this.editor,c=r.model,u=c.document.selection;let x=!1,M=!1;this.listenTo(r.editing.view.document,"delete",(E,F)=>{M="backward"===F.direction},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{x=!1;const E=u.getFirstPosition(),F=u.getAttribute("linkHref");if(!F)return;const V=gc(E,"linkHref",F,c);x=V.containsPosition(E)||V.end.isEqual(E)},{priority:"high"}),this.listenTo(c,"deleteContent",()=>{M&&(M=!1,x||r.model.enqueueChange(E=>{op(E,NC(c.schema))}))},{priority:"low"})}_enableClipboardIntegration(){const r=this.editor,c=r.model,u=this.editor.config.get("link.defaultProtocol");u&&this.listenTo(r.plugins.get("ClipboardPipeline"),"contentInsertion",(_,x)=>{c.change(M=>{const E=M.createRangeIn(x.content);for(const F of E.getItems())if(F.hasAttribute("linkHref")){const V=r1(F.getAttribute("linkHref"),u);M.setAttribute("linkHref",V,F)}})})}}function op(m,r){m.removeSelectionAttribute("linkHref");for(const c of r)m.removeSelectionAttribute(c)}function IC(m){return m.model.change(r=>r.batch).isTyping}function NC(m){return m.getDefinition("$text").allowAttributes.filter(r=>r.startsWith("link"))}var u3=v(7754);No()(u3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class NA extends oa{constructor(r,c){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const u=r.t;this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._manualDecoratorSwitches=this._createManualDecoratorSwitches(c),this.children=this._createFormChildren(c.manualDecorators),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});const _=["ck","ck-link-form","ck-responsive-form"];c.manualDecorators.length&&_.push("ck-link-form_layout-vertical","ck-vertical-form"),this.setTemplate({tag:"form",attributes:{class:_,tabindex:"-1"},children:this.children})}getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce((r,c)=>(r[c.name]=c.isOn,r),{})}render(){super.render(),C({view:this}),[this.urlInputView,...this._manualDecoratorSwitches,this.saveButtonView,this.cancelButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,lf);return c.label=r("Link URL"),c}_createButton(r,c,u,_){const x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}_createManualDecoratorSwitches(r){const c=this.createCollection();for(const u of r.manualDecorators){const _=new ys(this.locale);_.set({name:u.id,label:u.label,withText:!0}),_.bind("isOn").toMany([u,r],"value",(x,M)=>void 0===M&&void 0===x?!!u.defaultValue:!!x),_.on("execute",()=>{u.set("value",!_.isOn)}),c.add(_)}return c}_createFormChildren(r){const c=this.createCollection();if(c.add(this.urlInputView),r.length){const u=new oa;u.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(_=>({tag:"li",children:[_],attributes:{class:["ck","ck-list__item"]}})),attributes:{class:["ck","ck-reset","ck-list"]}}),c.add(u)}return c.add(this.saveButtonView),c.add(this.cancelButtonView),c}}var Yb=v(2347);No()(Yb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class my extends oa{constructor(r){super(r),this.focusTracker=new rs,this.keystrokes=new $c,this._focusables=new Na;const c=r.t;this.previewButtonView=this._createPreviewButton(),this.unlinkButtonView=this._createButton(c("Unlink"),' ',"unlink"),this.editButtonView=this._createButton(c("Edit link"),gs.pencil,"edit"),this.set("href",void 0),this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[this.previewButtonView,this.editButtonView,this.unlinkButtonView]})}render(){super.render(),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(r=>{this._focusables.add(r),this.focusTracker.add(r.element)}),this.keystrokes.listenTo(this.element)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}_createButton(r,c,u){const _=new $o(this.locale);return _.set({label:r,icon:c,tooltip:!0}),_.delegate("execute").to(this,u),_}_createPreviewButton(){const r=new $o(this.locale),c=this.bindTemplate,u=this.t;return r.set({withText:!0,tooltip:u("Open link in new tab")}),r.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:c.to("href",_=>_&&l3(_)),target:"_blank",rel:"noopener noreferrer"}}),r.bind("label").to(this,"href",_=>_||u("This link has no URL")),r.bind("isEnabled").to(this,"href",_=>!!_),r.template.tag="a",r.template.eventListeners={},r}}const qp="link-ui";class FA extends lo{constructor(){super(...arguments),this.actionsView=null,this.formView=null}static get requires(){return[F0]}static get pluginName(){return"LinkUI"}init(){const r=this.editor;r.editing.view.addObserver(s4),this._balloon=r.plugins.get(F0),this._createToolbarLinkButton(),this._enableBalloonActivators(),r.conversion.for("editingDowncast").markerToHighlight({model:qp,view:{classes:["ck-fake-link-selection"]}}),r.conversion.for("editingDowncast").markerToElement({model:qp,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}destroy(){super.destroy(),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy()}_createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions()}_createActionsView(){const r=this.editor,c=new my(r.locale),u=r.commands.get("link"),_=r.commands.get("unlink");return c.bind("href").to(u,"value"),c.editButtonView.bind("isEnabled").to(u),c.unlinkButtonView.bind("isEnabled").to(_),this.listenTo(c,"edit",()=>{this._addFormView()}),this.listenTo(c,"unlink",()=>{r.execute("unlink"),this._hideUI()}),c.keystrokes.set("Esc",(x,M)=>{this._hideUI(),M()}),c.keystrokes.set(k1,(x,M)=>{this._addFormView(),M()}),c}_createFormView(){const r=this.editor,c=r.commands.get("link"),u=r.config.get("link.defaultProtocol"),_=new(A(NA))(r.locale,c);return _.urlInputView.fieldView.bind("value").to(c,"value"),_.urlInputView.bind("isEnabled").to(c,"isEnabled"),_.saveButtonView.bind("isEnabled").to(c),this.listenTo(_,"submit",()=>{const{value:x}=_.urlInputView.fieldView.element,M=r1(x,u);r.execute("link",M,_.getDecoratorSwitchesState()),this._closeFormView()}),this.listenTo(_,"cancel",()=>{this._closeFormView()}),_.keystrokes.set("Esc",(x,M)=>{this._closeFormView(),M()}),_}_createToolbarLinkButton(){const r=this.editor,c=r.commands.get("link"),u=r.t;r.ui.componentFactory.add("link",_=>{const x=new $o(_);return x.isEnabled=!0,x.label=u("Link"),x.icon=' ',x.keystroke=k1,x.tooltip=!0,x.isToggleable=!0,x.bind("isEnabled").to(c,"isEnabled"),x.bind("isOn").to(c,"value",M=>!!M),this.listenTo(x,"execute",()=>this._showUI(!0)),x})}_enableBalloonActivators(){const r=this.editor;this.listenTo(r.editing.view.document,"click",()=>{this._getSelectedLinkElement()&&this._showUI()}),r.keystrokes.set(k1,(u,_)=>{_(),r.commands.get("link").isEnabled&&this._showUI(!0)})}_enableUserBalloonInteractions(){this.editor.keystrokes.set("Tab",(r,c)=>{this._areActionsVisible&&!this.actionsView.focusTracker.isFocused&&(this.actionsView.focus(),c())},{priority:"high"}),this.editor.keystrokes.set("Esc",(r,c)=>{this._isUIVisible&&(this._hideUI(),c())}),t({emitter:this.formView,activator:()=>this._isUIInPanel,contextElements:()=>[this._balloon.view.element],callback:()=>this._hideUI()})}_addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}_addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;const r=this.editor.commands.get("link");this.formView.disableCssTransitions(),this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}),this._balloon.visibleView===this.formView&&this.formView.urlInputView.fieldView.select(),this.formView.enableCssTransitions(),this.formView.urlInputView.fieldView.element.value=r.value||""}_closeFormView(){const r=this.editor.commands.get("link");r.restoreManualDecoratorStates(),void 0!==r.value?this._removeFormView():this._hideUI()}_removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}_showUI(r=!1){this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),r&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),r&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}_hideUI(){if(!this._isUIInPanel)return;const r=this.editor;this.stopListening(r.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),r.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}_startUpdatingUI(){const r=this.editor,c=r.editing.view.document;let u=this._getSelectedLinkElement(),_=M();const x=()=>{const E=this._getSelectedLinkElement(),F=M();u&&!E||!u&&F!==_?this._hideUI():this._isUIVisible&&this._balloon.updatePosition(this._getBalloonPositionData()),u=E,_=F};function M(){return c.selection.focus.getAncestors().reverse().find(E=>E.is("element"))}this.listenTo(r.ui,"update",x),this.listenTo(this._balloon,"change:visibleView",x)}get _isFormInPanel(){return!!this.formView&&this._balloon.hasView(this.formView)}get _areActionsInPanel(){return!!this.actionsView&&this._balloon.hasView(this.actionsView)}get _areActionsVisible(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView}get _isUIInPanel(){return this._isFormInPanel||this._areActionsInPanel}get _isUIVisible(){return!!this.formView&&this._balloon.visibleView==this.formView||this._areActionsVisible}_getBalloonPositionData(){const r=this.editor.editing.view,u=r.document;let _;if(this.editor.model.markers.has(qp)){const x=Array.from(this.editor.editing.mapper.markerNameToElements(qp)),M=r.createRange(r.createPositionBefore(x[0]),r.createPositionAfter(x[x.length-1]));_=r.domConverter.viewRangeToDom(M)}else _=()=>{const x=this._getSelectedLinkElement();return x?r.domConverter.mapViewToDom(x):r.domConverter.viewRangeToDom(u.selection.getFirstRange())};return{target:_}}_getSelectedLinkElement(){const r=this.editor.editing.view,c=r.document.selection,u=c.getSelectedElement();if(c.isCollapsed||u&&El(u))return u6(c.getFirstPosition());{const _=c.getFirstRange().getTrimmed(),x=u6(_.start),M=u6(_.end);return x&&x==M&&r.createRangeIn(x).getTrimmed().isEqual(_)?x:null}}_showFakeVisualSelection(){const r=this.editor.model;r.change(c=>{const u=r.document.selection.getFirstRange();if(r.markers.has(qp))c.updateMarker(qp,{range:u});else if(u.start.isAtEnd){const _=u.start.getLastMatchingPosition(({item:x})=>!r.schema.isContent(x),{boundaries:u});c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:c.createRange(_,u.end)})}else c.addMarker(qp,{usingOperation:!1,affectsData:!1,range:u})})}_hideFakeVisualSelection(){const r=this.editor.model;r.markers.has(qp)&&r.change(c=>{c.removeMarker(qp)})}}function u6(m){return m.getAncestors().find(r=>{return(c=r).is("attributeElement")&&!!c.getCustomProperty("link");var c})||null}const _y=new RegExp("(^|\\s)(((?:(?:(?:https?|ftp):)?\\/\\/)(?:\\S+(?::\\S*)?@)?(?:(?:[1-9]\\d?|1\\d\\d|2[01]\\d|22[0-3])(?:\\.(?:1?\\d{1,2}|2[0-4]\\d|25[0-5])){2}(?:\\.(?:[1-9]\\d?|1\\d\\d|2[0-4]\\d|25[0-4]))|(((?!www\\.)|(www\\.))(?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.)+(?:[a-z\\u00a1-\\uffff]{2,63})))(?::\\d{2,5})?(?:[/?#]\\S*)?)|((www.|(\\S+@))((?![-_])(?:[-_a-z0-9\\u00a1-\\uffff]{1,63}\\.))+(?:[a-z\\u00a1-\\uffff]{2,63})))$","i");class d6 extends lo{static get requires(){return[r_]}static get pluginName(){return"AutoLink"}init(){const r=this.editor.model.document.selection;r.on("change:range",()=>{this.isEnabled=!r.anchor.parent.is("element","codeBlock")}),this._enableTypingHandling()}afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling()}_enableTypingHandling(){const r=this.editor,c=new Xv(r.model,u=>{if(!((x=u).length>4&&" "===x[x.length-1]&&" "!==x[x.length-2]))return;var x;const _=p6(u.substr(0,u.length-1));return _?{url:_}:void 0});c.on("matched:data",(u,_)=>{const{batch:x,range:M,url:E}=_;if(!x.isTyping)return;const F=M.end.getShiftedBy(-1),V=F.getShiftedBy(-E.length),W=r.model.createRange(V,F);this._applyAutoLink(E,W)}),c.bind("isEnabled").to(this)}_enableEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("enter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition();if(!_.parent.previousSibling)return;const x=c.createRangeIn(_.parent.previousSibling);this._checkAndApplyAutoLinkOnRange(x)})}_enableShiftEnterHandling(){const r=this.editor,c=r.model,u=r.commands.get("shiftEnter");u&&u.on("execute",()=>{const _=c.document.selection.getFirstPosition(),x=c.createRange(c.createPositionAt(_.parent,0),_.getShiftedBy(-1));this._checkAndApplyAutoLinkOnRange(x)})}_checkAndApplyAutoLinkOnRange(r){const c=this.editor.model,{text:u,range:_}=S4(r,c),x=p6(u);if(x){const M=c.createRange(_.end.getShiftedBy(-x.length),_.end);this._applyAutoLink(x,M)}}_applyAutoLink(r,c){const u=this.editor.model,_=r1(r,this.editor.config.get("link.defaultProtocol"));var M;this.isEnabled&&(M=u).schema.checkAttributeInSelection(M.createSelection(c),"linkHref")&&Eb(_)&&!function(x){const M=x.start.nodeAfter;return!!M&&M.hasAttribute("linkHref")}(c)&&this._persistAutoLink(_,c)}_persistAutoLink(r,c){const u=this.editor.model,_=this.editor.plugins.get("Delete");u.enqueueChange(x=>{x.setAttribute("linkHref",r,c),u.enqueueChange(()=>{_.requestUndoOnBackspace()})})}}function p6(m){const r=_y.exec(m);return r?r[2]:null}var p3=v(111);No()(p3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Bb=v(5730);No()(Bb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var m3=v(4564);function zC(m,r,c,u){const _=r.parent,x=c.mapper,M=c.writer;let E=x.toViewPosition(u.createPositionBefore(m));const F=YC(m.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:m.getAttribute("listIndent")}),V=m.previousSibling;if(F&&F.getAttribute("listIndent")==m.getAttribute("listIndent")){const W=x.toViewElement(F);E=M.breakContainer(M.createPositionAfter(W))}else if(V&&"listItem"==V.name){E=x.toViewPosition(u.createPositionAt(V,"end"));const W=x.findMappedViewAncestor(E),dt=function(Zt){for(const ue of Zt.getChildren())if("ul"==ue.name||"ol"==ue.name)return ue;return null}(W);E=dt?M.createPositionBefore(dt):M.createPositionAt(W,"end")}else E=x.toViewPosition(u.createPositionBefore(m));if(E=jb(E),M.insert(E,_),V&&"listItem"==V.name){const W=x.toViewElement(V),dt=M.createRange(M.createPositionAt(W,0),E).getWalker({ignoreElementEnd:!0});for(const Zt of dt)if(Zt.item.is("element","li")){const ue=M.breakContainer(M.createPositionBefore(Zt.item)),Ae=Zt.item.parent,Ie=M.createPositionAt(r,"end");D1(M,Ie.nodeBefore,Ie.nodeAfter),M.move(M.createRangeOn(Ae),Ie),dt._position=ue}}else{const W=_.nextSibling;if(W&&(W.is("element","ul")||W.is("element","ol"))){let dt=null;for(const Zt of W.getChildren()){const ue=x.toModelElement(Zt);if(!(ue&&ue.getAttribute("listIndent")>m.getAttribute("listIndent")))break;dt=Zt}dt&&(M.breakContainer(M.createPositionAfter(dt)),M.move(M.createRangeOn(dt.parent),M.createPositionAt(r,"end")))}}D1(M,_,_.nextSibling),D1(M,_.previousSibling,_)}function D1(m,r,c){return!r||!c||"ul"!=r.name&&"ol"!=r.name||r.name!=c.name||r.getAttribute("class")!==c.getAttribute("class")?null:m.mergeContainers(m.createPositionAfter(r))}function jb(m){return m.getLastMatchingPosition(r=>r.item.is("uiElement"))}function YC(m,r){const c=!!r.sameIndent,u=!!r.smallerIndent,_=r.listIndent;let x=m;for(;x&&"listItem"==x.name;){const M=x.getAttribute("listIndent");if(c&&_==M||u&&_>M)return x;x="forward"===r.direction?x.nextSibling:x.previousSibling}return null}function BC(m,r,c,u){m.ui.componentFactory.add(r,_=>{const x=m.commands.get(r),M=new $o(_);return M.set({label:c,icon:u,tooltip:!0,isToggleable:!0}),M.bind("isOn","isEnabled").to(x,"value","isEnabled"),M.on("execute",()=>{m.execute(r),m.editing.view.focus()}),M})}function VC(m,r){const c=[],u=m.parent,_={ignoreElementEnd:!1,startPosition:m,shallow:!0,direction:r},x=u.getAttribute("listIndent"),M=[...new Gd(_)].filter(E=>E.item.is("element")).map(E=>E.item);for(const E of M){if(!E.is("element","listItem")||E.getAttribute("listIndent")x)){if(E.getAttribute("listType")!==u.getAttribute("listType")||E.getAttribute("listStyle")!==u.getAttribute("listStyle")||E.getAttribute("listReversed")!==u.getAttribute("listReversed")||E.getAttribute("listStart")!==u.getAttribute("listStart"))break;"backward"===r?c.unshift(E):c.push(E)}}return c}No()(m3.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const qA=["disc","circle","square"],jC=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function JC(){const m=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||m?0:zf.call(this)}class RA extends lo{static get pluginName(){return"ListUI"}init(){const r=this.editor.t;BC(this.editor,"numberedList",r("Numbered List"),' '),BC(this.editor,"bulletedList",r("Bulleted List"),' ')}}const GC={},fy={},hy={},HA=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(const{listStyle:m,typeAttribute:r,listType:c}of HA)GC[m]=c,fy[m]=r,r&&(hy[r]=m);var zA=v(4721);No()(zA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var QC=v(6082);No()(QC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var WC=v(2417);No()(WC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Gb extends Za{constructor(r,c){super(r),this._indentBy="forward"==c?1:-1}refresh(){this.isEnabled=this._checkEnabled()}execute(){const r=this.editor.model;let u=Array.from(r.document.selection.getSelectedBlocks());r.change(_=>{const x=u[u.length-1];let M=x.nextSibling;for(;M&&"listItem"==M.name&&M.getAttribute("listIndent")>x.getAttribute("listIndent");)u.push(M),M=M.nextSibling;this._indentBy<0&&(u=u.reverse());for(const E of u){const F=E.getAttribute("listIndent")+this._indentBy;F<0?_.rename(E,"paragraph"):_.setAttribute("listIndent",F,E)}this.fire("_executeCleanup",u)})}_checkEnabled(){const r=as(this.editor.model.document.selection.getSelectedBlocks());if(!r||!r.is("element","listItem"))return!1;if(this._indentBy>0){const c=r.getAttribute("listIndent"),u=r.getAttribute("listType");let _=r.previousSibling;for(;_&&_.is("element","listItem")&&_.getAttribute("listIndent")>=c;){if(_.getAttribute("listIndent")==c)return _.getAttribute("listType")==u;_=_.previousSibling}return!1}return!0}}class h2 extends Za{constructor(r,c){super(r),this.type=c}refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}execute(r={}){const c=this.editor.model,_=Array.from(c.document.selection.getSelectedBlocks()).filter(M=>_6(M,c.schema)),x=void 0!==r.forceValue?!r.forceValue:this.value;c.change(M=>{if(x){let E=_[_.length-1].nextSibling,F=Number.POSITIVE_INFINITY,V=[];for(;E&&"listItem"==E.name&&0!==E.getAttribute("listIndent");){const W=E.getAttribute("listIndent");W=c;)x>_.getAttribute("listIndent")&&(x=_.getAttribute("listIndent")),_.getAttribute("listIndent")==x&&m[r?"unshift":"push"](_),_=_[r?"previousSibling":"nextSibling"]}}function _6(m,r){return r.checkChild(m.parent,"listItem")&&!r.isObject(m)}class Wb extends lo{static get pluginName(){return"ListUtils"}getListTypeFromListStyleType(r){return qA.includes(c=r)?"bulleted":jC.includes(c)?"numbered":null;var c}getSelectedListItems(r){return function(c){let u=[...c.document.selection.getSelectedBlocks()].filter(_=>_.is("element","listItem")).map(_=>{const x=c.change(M=>M.createPositionAt(_,0));return[...VC(x,"backward"),...VC(x,"forward")]}).flat();return u=[...new Set(u)],u}(r)}getSiblingNodes(r,c){return VC(r,c)}}function $C(m){return(r,c,u)=>{const _=u.consumable;if(!_.test(c.item,"insert")||!_.test(c.item,"attribute:listType")||!_.test(c.item,"attribute:listIndent"))return;_.consume(c.item,"insert"),_.consume(c.item,"attribute:listType"),_.consume(c.item,"attribute:listIndent");const x=c.item;zC(x,function HC(m,r){const c=r.mapper,u=r.writer,_="numbered"==m.getAttribute("listType")?"ol":"ul",x=function(E){const F=E.createContainerElement("li");return F.getFillerOffset=JC,F}(u),M=u.createContainerElement(_,null);return u.insert(u.createPositionAt(M,0),x),c.bindElements(m,x),x}(x,u),u,m)}}const $b=(m,r,c)=>{if(!c.consumable.test(r.item,m.name))return;const u=c.mapper.toViewElement(r.item),_=c.writer;_.breakContainer(_.createPositionBefore(u)),_.breakContainer(_.createPositionAfter(u)),_.rename("numbered"==r.attributeNewValue?"ol":"ul",u.parent)},yf=(m,r,c)=>{c.consumable.consume(r.item,m.name);const u=c.mapper.toViewElement(r.item).parent,_=c.writer;D1(_,u,u.nextSibling),D1(_,u.previousSibling,u)},f3=(m,r,c)=>{if(c.consumable.test(r.item,m.name)&&"listItem"!=r.item.name){let u=c.mapper.toViewPosition(r.range.start);const _=c.writer,x=[];for(;("ul"==u.parent.name||"ol"==u.parent.name)&&(u=_.breakContainer(u),"li"==u.parent.name);){const M=u,E=_.createPositionAt(u.parent,"end");if(!M.isEqual(E)){const F=_.remove(_.createRange(M,E));x.push(F)}u=_.createPositionAfter(u.parent)}if(x.length>0){for(let M=0;M0){const F=D1(_,E,E.nextSibling);F&&F.parent==E&&u.offset--}}D1(_,u.nodeBefore,u.nodeAfter)}}},gy=(m,r,c)=>{const u=c.mapper.toViewPosition(r.position);D1(c.writer,u.nodeBefore,u.nodeAfter)},by=(m,r,c)=>{if(c.consumable.consume(r.viewItem,{name:!0})){const u=c.writer,_=u.createElement("listItem"),x=function(F){let V=0,W=F.parent;for(;W;){if(W.is("element","li"))V++;else{const dt=W.previousSibling;dt&&dt.is("element","li")&&V++}W=W.parent}return V}(r.viewItem);if(u.setAttribute("listIndent",x,_),u.setAttribute("listType",r.viewItem.parent&&"ol"==r.viewItem.parent.name?"numbered":"bulleted",_),!c.safeInsert(_,r.modelCursor))return;const E=function(F,V,W){const{writer:dt,schema:Zt}=W;let ue=dt.createPositionAfter(F);for(const Ae of V)if("ul"==Ae.name||"ol"==Ae.name)ue=W.convertItem(Ae,ue).modelCursor;else{const Ie=W.convertItem(Ae,dt.createPositionAt(F,"end")),ln=Ie.modelRange.start.nodeAfter;ln&&ln.is("element")&&!Zt.checkChild(F,ln.name)&&(F=Ie.modelCursor.parent.is("element","listItem")?Ie.modelCursor.parent:jA(Ie.modelCursor),ue=dt.createPositionAfter(F))}return ue}(_,r.viewItem.getChildren(),c);r.modelRange=u.createRange(r.modelCursor,E),c.updateConversionResult(_,r)}},BA=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){const u=Array.from(r.viewItem.getChildren());for(const _ of u)!_.is("element","li")&&!tg(_)&&_._remove()}},Kb=(m,r,c)=>{if(c.consumable.test(r.viewItem,{name:!0})){if(0===r.viewItem.childCount)return;const u=[...r.viewItem.getChildren()];let _=!1;for(const x of u)_&&!tg(x)&&x._remove(),tg(x)&&(_=!0)}};function Xb(m){return(r,c)=>{if(c.isPhantom)return;const u=c.modelPosition.nodeBefore;if(u&&u.is("element","listItem")){const _=c.mapper.toViewElement(u),x=_.getAncestors().find(tg),M=m.createPositionAt(_,0).getWalker();for(const E of M){if("elementStart"==E.type&&E.item.is("element","li")){c.viewPosition=E.previousPosition;break}if("elementEnd"==E.type&&E.item==x){c.viewPosition=E.nextPosition;break}}}}}const VA=function(m,[r,c]){let _,x=r.is("documentFragment")?r.getChild(0):r;if(_=c?this.createSelection(c):this.document.selection,x&&x.is("element","listItem")){const M=_.getFirstPosition();let E=null;if(M.parent.is("element","listItem")?E=M.parent:M.nodeBefore&&M.nodeBefore.is("element","listItem")&&(E=M.nodeBefore),E){const F=E.getAttribute("listIndent");if(F>0)for(;x&&x.is("element","listItem");)x._setAttribute("listIndent",x.getAttribute("listIndent")+F),x=x.nextSibling}}};function jA(m){const r=new Gd({startPosition:m});let c;do{c=r.next()}while(!c.value.item.is("element","listItem"));return c.value.item}function KC(m,r,c,u,_,x){const M=YC(r.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:m}),E=_.mapper,F=_.writer,V=M?M.getAttribute("listIndent"):null;let W;if(M)if(V==m){const dt=E.toViewElement(M).parent;W=F.createPositionAfter(dt)}else{const dt=x.createPositionAt(M,"end");W=E.toViewPosition(dt)}else W=c;W=jb(W);for(const dt of[...u.getChildren()])tg(dt)&&(W=F.move(F.createRangeOn(dt),W).end,D1(F,dt,dt.nextSibling),D1(F,dt.previousSibling,dt))}function tg(m){return m.is("element","ol")||m.is("element","ul")}class tv extends lo{static get pluginName(){return"ListEditing"}static get requires(){return[Tm,r_,Wb]}init(){const r=this.editor;r.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});const c=r.data,u=r.editing;var _;r.model.document.registerPostFixer(M=>function(E,F){const V=E.document.differ.getChanges(),W=new Map;let dt=!1;for(const Ie of V)if("insert"==Ie.type&&"listItem"==Ie.name)Zt(Ie.position);else if("insert"==Ie.type&&"listItem"!=Ie.name){if("$text"!=Ie.name){const ln=Ie.position.nodeAfter;ln.hasAttribute("listIndent")&&(F.removeAttribute("listIndent",ln),dt=!0),ln.hasAttribute("listType")&&(F.removeAttribute("listType",ln),dt=!0),ln.hasAttribute("listStyle")&&(F.removeAttribute("listStyle",ln),dt=!0),ln.hasAttribute("listReversed")&&(F.removeAttribute("listReversed",ln),dt=!0),ln.hasAttribute("listStart")&&(F.removeAttribute("listStart",ln),dt=!0);for(const Dn of Array.from(E.createRangeIn(ln)).filter(di=>di.item.is("element","listItem")))Zt(Dn.previousPosition)}Zt(Ie.position.getShiftedBy(Ie.length))}else"remove"==Ie.type&&"listItem"==Ie.name?Zt(Ie.position):("attribute"==Ie.type&&"listIndent"==Ie.attributeKey||"attribute"==Ie.type&&"listType"==Ie.attributeKey)&&Zt(Ie.range.start);for(const Ie of W.values())ue(Ie),Ae(Ie);return dt;function Zt(Ie){const ln=Ie.nodeBefore;if(ln&&ln.is("element","listItem")){let Dn=ln;if(W.has(Dn))return;for(let di=Dn.previousSibling;di&&di.is("element","listItem");di=Dn.previousSibling)if(Dn=di,W.has(Dn))return;W.set(ln,Dn)}else{const Dn=Ie.nodeAfter;Dn&&Dn.is("element","listItem")&&W.set(Dn,Dn)}}function ue(Ie){let ln=0,Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(di>ln){let Ri;null===Dn?(Dn=di-ln,Ri=ln):(Dn>di&&(Dn=di),Ri=di-Dn),F.setAttribute("listIndent",Ri,Ie),dt=!0}else Dn=null,ln=Ie.getAttribute("listIndent")+1;Ie=Ie.nextSibling}}function Ae(Ie){let ln=[],Dn=null;for(;Ie&&Ie.is("element","listItem");){const di=Ie.getAttribute("listIndent");if(Dn&&Dn.getAttribute("listIndent")>di&&(ln=ln.slice(0,di+1)),0!=di)if(ln[di]){const Ri=ln[di];Ie.getAttribute("listType")!=Ri&&(F.setAttribute("listType",Ri,Ie),dt=!0)}else ln[di]=Ie.getAttribute("listType");Dn=Ie,Ie=Ie.nextSibling}}}(r.model,M)),u.mapper.registerViewToModelLength("li",f6),c.mapper.registerViewToModelLength("li",f6),u.mapper.on("modelToViewPosition",Xb(u.view)),u.mapper.on("viewToModelPosition",(_=r.model,(M,E)=>{const F=E.viewPosition,V=F.parent,W=E.mapper;if("ul"==V.name||"ol"==V.name){if(F.isAtEnd){const dt=W.toModelElement(F.nodeBefore),Zt=W.getModelLength(F.nodeBefore);E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt)}else{const dt=W.toModelElement(F.nodeAfter);E.modelPosition=_.createPositionBefore(dt)}M.stop()}else if("li"==V.name&&F.nodeBefore&&("ul"==F.nodeBefore.name||"ol"==F.nodeBefore.name)){const dt=W.toModelElement(V);let Zt=1,ue=F.nodeBefore;for(;ue&&tg(ue);)Zt+=W.getModelLength(ue),ue=ue.previousSibling;E.modelPosition=_.createPositionBefore(dt).getShiftedBy(Zt),M.stop()}})),c.mapper.on("modelToViewPosition",Xb(u.view)),r.conversion.for("editingDowncast").add(M=>{var E;M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model)),M.on("attribute:listType:listItem",$b,{priority:"high"}),M.on("attribute:listType:listItem",yf,{priority:"low"}),M.on("attribute:listIndent:listItem",(E=r.model,(F,V,W)=>{if(!W.consumable.consume(V.item,"attribute:listIndent"))return;const dt=W.mapper.toViewElement(V.item),Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue);Zt.remove(Ie),Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(V.attributeOldValue+1,V.range.start,Ie.start,dt,W,E),zC(V.item,dt,W,E);for(const ln of V.item.getChildren())W.consumable.consume(ln,"insert")})),M.on("remove:listItem",function(E){return(F,V,W)=>{const dt=W.mapper.toViewPosition(V.position).getLastMatchingPosition(Dn=>!Dn.item.is("element","li")).nodeAfter,Zt=W.writer;Zt.breakContainer(Zt.createPositionBefore(dt)),Zt.breakContainer(Zt.createPositionAfter(dt));const ue=dt.parent,Ae=ue.previousSibling,Ie=Zt.createRangeOn(ue),ln=Zt.remove(Ie);Ae&&Ae.nextSibling&&D1(Zt,Ae,Ae.nextSibling),KC(W.mapper.toModelElement(dt).getAttribute("listIndent")+1,V.position,Ie.start,dt,W,E);for(const Dn of Zt.createRangeIn(ln).getItems())W.mapper.unbindViewElement(Dn);F.stop()}}(r.model)),M.on("remove",gy,{priority:"low"})}),r.conversion.for("dataDowncast").add(M=>{M.on("insert",f3,{priority:"high"}),M.on("insert:listItem",$C(r.model))}),r.conversion.for("upcast").add(M=>{M.on("element:ul",BA,{priority:"high"}),M.on("element:ol",BA,{priority:"high"}),M.on("element:li",Kb,{priority:"high"}),M.on("element:li",by)}),r.model.on("insertContent",VA,{priority:"high"}),r.commands.add("numberedList",new h2(r,"numbered")),r.commands.add("bulletedList",new h2(r,"bulleted")),r.commands.add("indentList",new Gb(r,"forward")),r.commands.add("outdentList",new Gb(r,"backward"));const x=u.view.document;this.listenTo(x,"enter",(M,E)=>{const F=this.editor.model.document,V=F.selection.getLastPosition().parent;F.selection.isCollapsed&&"listItem"==V.name&&V.isEmpty&&(this.editor.execute("outdentList"),E.preventDefault(),M.stop())},{context:"li"}),this.listenTo(x,"delete",(M,E)=>{if("backward"!==E.direction)return;const F=this.editor.model.document.selection;if(!F.isCollapsed)return;const V=F.getFirstPosition();if(!V.isAtStart)return;const W=V.parent;"listItem"===W.name&&(W.previousSibling&&"listItem"===W.previousSibling.name||(this.editor.execute("outdentList"),E.preventDefault(),M.stop()))},{context:"li"}),this.listenTo(r.editing.view.document,"tab",(M,E)=>{const F=E.shiftKey?"outdentList":"indentList";this.editor.commands.get(F).isEnabled&&(r.execute(F),E.stopPropagation(),E.preventDefault(),M.stop())},{context:"li"})}afterInit(){const r=this.editor.commands,c=r.get("indent"),u=r.get("outdent");c&&c.registerChildCommand(r.get("indentList")),u&&u.registerChildCommand(r.get("outdentList"))}}function f6(m){let r=1;for(const c of m.getChildren())if("ul"==c.name||"ol"==c.name)for(const u of c.getChildren())r+=f6(u);return r}tc("Ctrl+Enter");var ev=v(1199);function XC(m,r){const c=(u,_,x)=>{if(!x.consumable.consume(_.item,u.name))return;const M=_.attributeNewValue,E=x.writer,F=x.mapper.toViewElement(_.item),V=[...F.getChildren()].find(dt=>dt.getCustomProperty("media-content"));E.remove(V);const W=m.getMediaViewElement(E,M,r);E.insert(E.createPositionAt(F,0),W)};return u=>{u.on("attribute:url:media",c)}}function h6(m,r,c,u){return m.createContainerElement("figure",{class:"media"},[r.getMediaViewElement(m,c,u),m.createSlot()])}function h3(m){const r=m.getSelectedElement();return r&&r.is("element","media")?r:null}function GA(m,r,c,u){m.change(_=>{const x=_.createElement("media",{url:r});m.insertObject(x,c,null,{setSelection:"on",findOptimalPosition:u?"auto":void 0})})}No()(ev.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tc("Ctrl+Enter");class t8 extends Za{refresh(){const r=this.editor.model,c=r.document.selection,u=h3(c);this.value=u?u.getAttribute("url"):void 0,this.isEnabled=function(_){const x=_.getSelectedElement();return!!x&&"media"===x.name}(c)||function(_,x){let E=F4(_,x).start.parent;return E.isEmpty&&!x.schema.isLimit(E)&&(E=E.parent),x.schema.checkChild(E,"media")}(c,r)}execute(r){const c=this.editor.model,u=c.document.selection,_=h3(u);_?c.change(x=>{x.setAttribute("url",r,_)}):GA(c,r,u,!0)}}class g3{constructor(r,c){const u=c.providers,_=c.extraProviders||[],x=new Set(c.removeProviders),M=u.concat(_).filter(E=>{const F=E.name;return F?!x.has(F):(Tt("media-embed-no-provider-name",{provider:E}),!1)});this.locale=r,this.providerDefinitions=M}hasMedia(r){return!!this._getMedia(r)}getMediaViewElement(r,c,u){return this._getMedia(c).getViewElement(r,u)}_getMedia(r){if(!r)return new e8(this.locale);r=r.trim();for(const c of this.providerDefinitions){const u=c.html,_=Ss(c.url);for(const x of _){const M=this._getUrlMatches(r,x);if(M)return new e8(this.locale,r,M,u)}}return null}_getUrlMatches(r,c){let u=r.match(c);if(u)return u;let _=r.replace(/^https?:\/\//,"");return u=_.match(c),u||(_=_.replace(/^www\./,""),u=_.match(c),u||null)}}class e8{constructor(r,c,u,_){this.url=this._getValidUrl(c),this._locale=r,this._match=u,this._previewRenderer=_}getViewElement(r,c){const u={};let _;if(c.renderForEditingView||c.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(u["data-oembed-url"]=this.url),c.renderForEditingView&&(u.class="ck-media__wrapper");const x=this._getPreviewHtml(c);_=r.createRawElement("div",u,(M,E)=>{E.setContentOf(M,x)})}else this.url&&(u.url=this.url),_=r.createEmptyElement(c.elementName,u);return r.setCustomProperty("media-content",!0,_),_}_getPreviewHtml(r){return this._previewRenderer?this._previewRenderer(this._match):this.url&&r.renderForEditingView?this._getPlaceholderHtml():""}_getPlaceholderHtml(){const r=new zs,c=this._locale.t;return r.content=' ',r.viewBox="0 0 64 42",new Ur({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[r]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":c("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}_getValidUrl(r){return r?r.match(/^https?/)?r:"https://"+r:null}}var n8=v(7442);No()(n8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class nv extends lo{constructor(r){super(r),r.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:c=>`
`},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:c=>`
`},{name:"youtube",url:[/^(?:m\.)?youtube\.com\/watch\?v=([\w-]+)(?:&t=(\d+))?/,/^(?:m\.)?youtube\.com\/v\/([\w-]+)(?:\?t=(\d+))?/,/^youtube\.com\/embed\/([\w-]+)(?:\?start=(\d+))?/,/^youtu\.be\/([\w-]+)(?:\?t=(\d+))?/],html:c=>{const _=c[2];return`VIDEO
`}},{name:"vimeo",url:[/^vimeo\.com\/(\d+)/,/^vimeo\.com\/[^/]+\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/album\/[^/]+\/video\/(\d+)/,/^vimeo\.com\/channels\/[^/]+\/(\d+)/,/^vimeo\.com\/groups\/[^/]+\/videos\/(\d+)/,/^vimeo\.com\/ondemand\/[^/]+\/(\d+)/,/^player\.vimeo\.com\/video\/(\d+)/],html:c=>`
`},{name:"instagram",url:/^instagram\.com\/p\/(\w+)/},{name:"twitter",url:/^twitter\.com/},{name:"googleMaps",url:[/^google\.com\/maps/,/^goo\.gl\/maps/,/^maps\.google\.com/,/^maps\.app\.goo\.gl/]},{name:"flickr",url:/^flickr\.com/},{name:"facebook",url:/^facebook\.com/}]}),this.registry=new g3(r.locale,r.config.get("mediaEmbed"))}static get pluginName(){return"MediaEmbedEditing"}init(){const r=this.editor,c=r.model.schema,u=r.t,_=r.conversion,x=r.config.get("mediaEmbed.previewsInData"),M=r.config.get("mediaEmbed.elementName"),E=this.registry;r.commands.add("mediaEmbed",new t8(r)),c.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),_.for("dataDowncast").elementToStructure({model:"media",view:(F,{writer:V})=>{const W=F.getAttribute("url");return h6(V,E,W,{elementName:M,renderMediaPreview:!!W&&x})}}),_.for("dataDowncast").add(XC(E,{elementName:M,renderMediaPreview:x})),_.for("editingDowncast").elementToStructure({model:"media",view:(F,{writer:V})=>{const W=F.getAttribute("url");return dt=h6(V,E,W,{elementName:M,renderForEditingView:!0}),Zt=V,ue=u("media widget"),Zt.setCustomProperty("media",!0,dt),ep(dt,Zt,{label:ue});var dt,Zt,ue}}),_.for("editingDowncast").add(XC(E,{elementName:M,renderForEditingView:!0})),_.for("upcast").elementToElement({view:F=>["oembed",M].includes(F.name)&&F.getAttribute("url")?{name:!0}:null,model:(F,{writer:V})=>{const W=F.getAttribute("url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:(F,{writer:V})=>{const W=F.getAttribute("data-oembed-url");return E.hasMedia(W)?V.createElement("media",{url:W}):null}}).add(F=>{F.on("element:figure",(V,W,dt)=>{if(!dt.consumable.consume(W.viewItem,{name:!0,classes:"media"}))return;const{modelRange:Zt,modelCursor:ue}=dt.convertChildren(W.viewItem,W.modelCursor);W.modelRange=Zt,W.modelCursor=ue,as(Zt.getItems())||dt.consumable.revert(W.viewItem,{name:!0,classes:"media"})})})}}const QA=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;class WA extends lo{constructor(r){super(r),this._timeoutId=null,this._positionToInsert=null}static get requires(){return[yx,r_,Lx]}static get pluginName(){return"AutoMediaEmbed"}init(){const r=this.editor,c=r.model.document,u=r.plugins.get("ClipboardPipeline");this.listenTo(u,"inputTransformation",()=>{const _=c.selection.getFirstRange(),x=el.fromPosition(_.start);x.stickiness="toPrevious";const M=el.fromPosition(_.end);M.stickiness="toNext",c.once("change:data",()=>{this._embedMediaBetweenPositions(x,M),x.detach(),M.detach()},{priority:"high"})}),r.commands.get("undo").on("execute",()=>{this._timeoutId&&(Mt.window.clearTimeout(this._timeoutId),this._positionToInsert.detach(),this._timeoutId=null,this._positionToInsert=null)},{priority:"high"})}_embedMediaBetweenPositions(r,c){const u=this.editor,_=u.plugins.get(nv).registry,x=new Xu(r,c),M=x.getWalker({ignoreElementEnd:!0});let E="";for(const F of M)F.item.is("$textProxy")&&(E+=F.item.data);E=E.trim(),E.match(QA)&&_.hasMedia(E)&&u.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=el.fromPosition(r),this._timeoutId=Mt.window.setTimeout(()=>{u.model.change(F=>{this._timeoutId=null,F.remove(x),x.detach();let V=null;"$graveyard"!==this._positionToInsert.root.rootName&&(V=this._positionToInsert),GA(u.model,E,V,!1),this._positionToInsert.detach(),this._positionToInsert=null}),u.plugins.get(r_).requestUndoOnBackspace()},100)):x.detach()}}var i8=v(9292);No()(i8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Cy extends oa{constructor(r,c){super(c);const u=c.t;this.focusTracker=new rs,this.keystrokes=new $c,this.set("mediaURLInputValue",""),this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(u("Save"),gs.check,"ck-button-save"),this.saveButtonView.type="submit",this.saveButtonView.bind("isEnabled").to(this,"mediaURLInputValue",_=>!!_),this.cancelButtonView=this._createButton(u("Cancel"),gs.cancel,"ck-button-cancel","cancel"),this._focusables=new Na,this._focusCycler=new ul({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),this._validators=r,this.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[this.urlInputView,this.saveButtonView,this.cancelButtonView]})}render(){super.render(),C({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(c=>{this._focusables.add(c),this.focusTracker.add(c.element)}),this.keystrokes.listenTo(this.element);const r=c=>c.stopPropagation();this.keystrokes.set("arrowright",r),this.keystrokes.set("arrowleft",r),this.keystrokes.set("arrowup",r),this.keystrokes.set("arrowdown",r)}destroy(){super.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy()}focus(){this._focusCycler.focusFirst()}get url(){return this.urlInputView.fieldView.element.value.trim()}set url(r){this.urlInputView.fieldView.element.value=r.trim()}isValid(){this.resetFormStatus();for(const r of this._validators){const c=r(this);if(c)return this.urlInputView.errorText=c,!1}return!0}resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}_createUrlInput(){const r=this.locale.t,c=new Sr(this.locale,lf),u=c.fieldView;return this._urlInputViewInfoDefault=r("Paste the media URL in the input."),this._urlInputViewInfoTip=r("Tip: Paste the URL into the content to embed faster."),c.label=r("Media URL"),c.infoText=this._urlInputViewInfoDefault,u.on("input",()=>{c.infoText=u.element.value?this._urlInputViewInfoTip:this._urlInputViewInfoDefault,this.mediaURLInputValue=u.element.value.trim()}),c}_createButton(r,c,u,_){const x=new $o(this.locale);return x.set({label:r,icon:c,tooltip:!0}),x.extendTemplate({attributes:{class:u}}),_&&x.delegate("execute").to(this,_),x}}class $A extends lo{static get requires(){return[nv]}static get pluginName(){return"MediaEmbedUI"}init(){const r=this.editor,c=r.commands.get("mediaEmbed");r.ui.componentFactory.add("mediaEmbed",u=>{const _=Lp(u);return this._setUpDropdown(_,c),_})}_setUpDropdown(r,c){const u=this.editor,_=u.t,x=r.buttonView,M=u.plugins.get(nv).registry;r.once("change:isOpen",()=>{const E=new(A(Cy))((F=u.t,V=M,[W=>{if(!W.url.length)return F("The URL must not be empty.")},W=>{if(!V.hasMedia(W.url))return F("This media URL is not supported.")}]),u.locale);var F,V;r.panelView.children.add(E),x.on("open",()=>{E.disableCssTransitions(),E.url=c.value||"",E.urlInputView.fieldView.select(),E.enableCssTransitions()},{priority:"low"}),r.on("submit",()=>{E.isValid()&&(u.execute("mediaEmbed",E.url),u.editing.view.focus())}),r.on("change:isOpen",()=>E.resetFormStatus()),r.on("cancel",()=>{u.editing.view.focus()}),E.delegate("submit","cancel").to(r),E.urlInputView.fieldView.bind("value").to(c,"value"),E.urlInputView.bind("isEnabled").to(c,"isEnabled")}),r.bind("isEnabled").to(c),x.set({label:_("Insert media"),icon:' ',tooltip:!0})}}var KA=v(4652);function yy(m){if(m.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(m){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return m;default:return null}}function XA(m,r,c){const u=r.parent,_=c.createElement(m.type),x=u.getChildIndex(r)+1;return c.insertChild(x,_,u),m.style&&c.setStyle("list-style-type",m.style,_),m.startIndex&&m.startIndex>1&&c.setAttribute("start",m.startIndex,_),_}function t7(m){const r={},c=m.getStyle("mso-list");if(c){const u=c.match(/(^|\s{1,100})l(\d+)/i),_=c.match(/\s{0,100}lfo(\d+)/i),x=c.match(/\s{0,100}level(\d+)/i);u&&_&&x&&(r.id=u[2],r.order=_[1],r.indent=parseInt(x[1]))}return r}function wy(m){return btoa(m.match(/\w{2}/g).map(r=>String.fromCharCode(parseInt(r,16))).join(""))}No()(KA.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});const Uy=/ /i,h=/xmlns:o="urn:schemas-microsoft-com/i;class g{constructor(r){this.document=r}isActive(r){return Uy.test(r)||h.test(r)}execute(r){const{body:c,stylesString:u}=r._parsedData;(function o8(m,r){if(!m.childCount)return;const c=new W1(m.document),u=function(M,E){const F=E.createRangeIn(M),V=new ps({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),W=[];for(const dt of F)if("elementStart"===dt.type&&V.match(dt.item)){const Zt=t7(dt.item);W.push({element:dt.item,id:Zt.id,order:Zt.order,indent:Zt.indent})}return W}(m,c);if(!u.length)return;let _=null,x=1;u.forEach((M,E)=>{const F=function(Ae,Ie){if(!Ae)return!0;if(Ae.id!==Ie.id)return Ie.indent-Ae.indent!=1;const ln=Ie.element.previousSibling;return!ln||!((Dn=ln).is("element","ol")||Dn.is("element","ul"));var Dn}(u[E-1],M),W=(Zt=M,(dt=F?null:u[E-1])?Zt.indent-dt.indent:Zt.indent-1);var dt,Zt;if(F&&(_=null,x=1),!_||0!==W){const Ae=function(Ie,ln){const di=/mso-level-number-format:([^;]{0,100});/gi,Ri=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,Go=new RegExp(`@list l${Ie.id}:level${Ie.indent}\\s*({[^}]*)`,"gi").exec(ln);let Da="decimal",ws="ol",Kr=null;if(Go&&Go[1]){const Il=di.exec(Go[1]);if(Il&&Il[1]&&(Da=Il[1].trim(),ws="bullet"!==Da&&"image"!==Da?"ol":"ul"),"bullet"===Da){const fl=function(w6){const b2=function(wf){if(wf.getChild(0).is("$text"))return null;for(const v2 of wf.getChildren()){if(!v2.is("element","span"))continue;const C3=v2.getChild(0);if(C3)return C3.is("$text")?C3:C3.getChild(0)}return null}(w6);if(!b2)return null;const Rp=b2._data;return"o"===Rp?"circle":"\xb7"===Rp?"disc":"\xa7"===Rp?"square":null}(Ie.element);fl&&(Da=fl)}else{const fl=Ri.exec(Go[1]);fl&&fl[1]&&(Kr=parseInt(fl[1]))}}return{type:ws,startIndex:Kr,style:yy(Da)}}(M,r);if(_)if(M.indent>x){const Ie=_.getChild(_.childCount-1),ln=Ie.getChild(Ie.childCount-1);_=XA(Ae,ln,c),x+=1}else M.indentx.indexOf(Ae)>-1)?W.push(Zt):Zt.getAttribute("src")||W.push(Zt)}for(const dt of W)E.remove(dt)})(u,m,c),function(x,M,E){const F=E.createRangeIn(M),V=[];for(const Zt of F)if("elementStart"==Zt.type&&Zt.item.is("element","v:shape")){const ue=Zt.item.getAttribute("id");if(x.includes(ue))continue;W(Zt.item.parent.getChildren(),ue)||V.push(Zt.item)}for(const Zt of V){const ue={src:dt(Zt)};Zt.hasAttribute("alt")&&(ue.alt=Zt.getAttribute("alt"));const Ae=E.createElement("img",ue);E.insertChild(Zt.index+1,Ae,Zt.parent)}function W(Zt,ue){for(const Ae of Zt)if(Ae.is("element")&&("img"==Ae.name&&Ae.getAttribute("v:shapes")==ue||W(Ae.getChildren(),ue)))return!0;return!1}function dt(Zt){for(const ue of Zt.getChildren())if(ue.is("element")&&ue.getAttribute("src"))return ue.getAttribute("src")}}(u,m,c),function(x,M){const E=M.createRangeIn(x),F=new ps({name:/v:(.+)/}),V=[];for(const W of E)"elementStart"==W.type&&F.match(W.item)&&V.push(W.item);for(const W of V)M.remove(W)}(m,c);const _=function(x,M){const E=M.createRangeIn(x),F=new ps({name:"img"}),V=[];for(const W of E)W.item.is("element")&&F.match(W.item)&&W.item.getAttribute("src").startsWith("file://")&&V.push(W.item);return V}(m,c);_.length&&function(x,M,E){if(x.length===M.length)for(let F=0;FM.is("element")&&!u.includes(M.name)&&!_.includes(M.name),{direction:r}),"forward"==r?x.nodeAfter:x.nodeBefore}function O(m,r){return!!m&&m.is("element")&&r.includes(m.name)}const q=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;class j{constructor(r){this.document=r}isActive(r){return q.test(r)}execute(r){const c=new W1(this.document),{body:u}=r._parsedData;(function(_,x){for(const M of _.getChildren())if(M.is("element","b")&&"normal"===M.getStyle("font-weight")){const E=_.getChildIndex(M);x.remove(M),x.insertChild(E,M.getChildren(),_)}})(u,c),function(_,x){for(const M of x.createRangeIn(_)){const E=M.item;if(E.is("element","li")){const F=E.getChild(0);F&&F.is("element","p")&&x.unwrapElement(F)}}}(u,c),function(_,x){const M=new Xp(x.document.stylesProcessor),E=new F_(M,{renderingMode:"data"}),F=E.blockElements,V=E.inlineObjectElements,W=[];for(const dt of x.createRangeIn(_)){const Zt=dt.item;if(Zt.is("element","br")){const ue=w(Zt,"forward",x,{blockElements:F,inlineObjectElements:V}),Ae=w(Zt,"backward",x,{blockElements:F,inlineObjectElements:V}),Ie=O(ue,F);(O(Ae,F)||Ie)&&W.push(Zt)}}for(const dt of W)dt.hasClass("Apple-interchange-newline")?x.remove(dt):x.replace(dt,x.createElement("p"))}(u,c),r.content=u}}const ut=/(\s+)<\/span>/g,(r,c)=>1===c.length?" ":Array(c.length+1).join("\xa0 ").substr(0,c.length))}function je(m,r,c,u,_=1){null!=r&&null!=_&&r>_?u.setAttribute(m,r,c):u.removeAttribute(m,c)}function xn(m,r,c={}){const u=m.createElement("tableCell",c);return m.insertElement("paragraph",u),m.insert(u,r),u}function ai(m,r){const u=parseInt(r.parent.parent.getAttribute("headingColumns")||"0"),{column:_}=m.getCellLocation(r);return!!u&&_{r.on(`element:${m}`,(c,u,{writer:_})=>{if(!u.modelRange)return;const x=u.modelRange.start.nodeAfter,M=_.createPositionAt(x,0);if(u.viewItem.isEmpty)return void _.insertElement("paragraph",M);const E=Array.from(x.getChildren());if(E.every(F=>F.is("element","$marker"))){const F=_.createElement("paragraph");_.insert(F,_.createPositionAt(x,0));for(const V of E)_.move(_.createRangeOn(V),_.createPositionAt(F,"end"))}},{priority:"low"})}}function Ao(m){let r=0,c=0;const u=Array.from(m.getChildren()).filter(_=>"th"===_.name||"td"===_.name);for(;c1||M>1)&&this._recordSpans(_,M,x),this._shouldSkipSlot()||(c=this._formatOutValue(_)),this._nextCellAtColumn=this._column+x}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,c||this.next()}skipRow(r){this._skipRows.add(r)}_advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}_isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow}_isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn}_formatOutValue(r,c=this._row,u=this._column){return{done:!1,value:new pa(this,r,c,u)}}_shouldSkipSlot(){return this._skipRows.has(this._row)||this._rowthis._endColumn}_getSpanned(){const r=this._spannedCells.get(this._row);return r&&r.get(this._column)||null}_recordSpans(r,c,u){const _={cell:r,row:this._row,column:this._column};for(let x=this._row;x0&&!this._jumpedToStartRow}_jumpToNonSpannedRowClosestToStartRow(){const r=this._getRowLength(0);for(let c=this._startRow;!this._jumpedToStartRow;c--)r===this._getRowLength(c)&&(this._row=c,this._rowIndex=c,this._jumpedToStartRow=!0)}_getRowLength(r){return[...this._table.getChild(r).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}}class pa{constructor(r,c,u,_){this.cell=c,this.row=r._row,this.column=r._column,this.cellAnchorRow=u,this.cellAnchorColumn=_,this._cellIndex=r._cellIndex,this._rowIndex=r._rowIndex,this._table=r._table}get isAnchor(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}get cellWidth(){return parseInt(this.cell.getAttribute("colspan")||"1")}get cellHeight(){return parseInt(this.cell.getAttribute("rowspan")||"1")}get rowIndex(){return this._rowIndex}getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}function Ta(m,r){return(c,{writer:u})=>{const _=c.getAttribute("headingRows")||0,x=u.createContainerElement("table",null,[]),M=u.createContainerElement("figure",{class:"table"},x);_>0&&u.insert(u.createPositionAt(x,"end"),u.createContainerElement("thead",null,u.createSlot(E=>E.is("element","tableRow")&&E.index<_))),_E.is("element","tableRow")&&E.index>=_)));for(const{positionOffset:E,filter:F}of r.additionalSlots)u.insert(u.createPositionAt(x,E),u.createSlot(F));return u.insert(u.createPositionAt(x,"after"),u.createSlot(E=>!E.is("element","tableRow")&&!r.additionalSlots.some(({filter:F})=>F(E)))),r.asWidget?((F=u).setCustomProperty("table",!0,E=M),ep(E,F,{hasSelectionHandle:!0})):M;var E,F}}function oo(m={}){return(r,{writer:c})=>{const u=r.parent,_=u.parent,x=_.getChildIndex(u),M=new ro(_,{row:x}),E=_.getAttribute("headingRows")||0,F=_.getAttribute("headingColumns")||0;let V=null;for(const W of M)if(W.cell==r){const dt=W.row{if(!r.parent.is("element","tableCell")||!zr(r))return null;if(m.asWidget)return c.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{const u=c.createContainerElement("p");return c.setCustomProperty("dataPipeline:transparentRendering",!0,u),u}}}function zr(m){return 1==m.parent.childCount&&!!m.getAttributeKeys().next().done}class Mc extends Za{refresh(){const r=this.editor.model;this.isEnabled=function(_,x){const M=_.getFirstPosition().parent;return x.checkChild(M===M.root?M:M.parent,"table")}(r.document.selection,r.schema)}execute(r={}){const c=this.editor,u=c.model,_=c.plugins.get("TableUtils"),x=c.config.get("table.defaultHeadings.rows"),M=c.config.get("table.defaultHeadings.columns");void 0===r.headingRows&&x&&(r.headingRows=x),void 0===r.headingColumns&&M&&(r.headingColumns=M),u.change(E=>{const F=_.createTable(E,r);u.insertObject(F,null,null,{findOptimalPosition:"auto"}),E.setSelection(E.createPositionAt(F.getNodeByPath([0,0,0]),0))})}}class g2 extends Za{constructor(r,c={}){super(r),this.order=c.order||"below"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="above"===this.order,x=u.getSelectionAffectedTableCells(c),M=u.getRowIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertRows(F,{at:_?E:E+1,copyStructureFromAbove:!_})}}class g6 extends Za{constructor(r,c={}){super(r),this.order=c.order||"right"}refresh(){const r=this.editor.model.document.selection,c=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(r).length;this.isEnabled=c}execute(){const r=this.editor,c=r.model.document.selection,u=r.plugins.get("TableUtils"),_="left"===this.order,x=u.getSelectionAffectedTableCells(c),M=u.getColumnIndexes(x),E=_?M.first:M.last,F=x[0].findAncestor("table");u.insertColumns(F,{columns:1,at:_?E:E+1})}}class b3 extends Za{constructor(r,c={}){super(r),this.direction=c.direction||"horizontally"}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===r.length}execute(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?r.splitCellHorizontally(c,2):r.splitCellVertically(c,2)}}function b6(m,r,c){const{startRow:u,startColumn:_,endRow:x,endColumn:M}=r,E=c.createElement("table"),F=x-u+1;for(let W=0;W0&&je("headingRows",Ie-Zt,W,Ae,0);const ln=parseInt(dt.getAttribute("headingColumns")||"0");ln>0&&je("headingColumns",ln-ue,W,Ae,0)}(E,m,u,_,c),E}function v6(m,r,c=0){const u=[],_=new ro(m,{startRow:c,endRow:r-1});for(const x of _){const{row:M,cellHeight:E}=x;M1&&(E.rowspan=F);const V=parseInt(m.getAttribute("colspan")||"1");V>1&&(E.colspan=V);const W=x+M,dt=[...new ro(_,{startRow:x,endRow:W,includeAllSlots:!0})];let Zt,ue=null;for(const Ae of dt){const{row:Ie,column:ln,cell:Dn}=Ae;Dn===m&&void 0===Zt&&(Zt=ln),void 0!==Zt&&Zt===ln&&Ie===W&&(ue=xn(c,Ae.getPositionBefore(),E))}return je("rowspan",M,m,c),ue}function C6(m,r){const c=[],u=new ro(m);for(const _ of u){const{column:x,cellWidth:M}=_;x1&&(x.colspan=M);const E=parseInt(m.getAttribute("rowspan")||"1");E>1&&(x.rowspan=E);const F=xn(u,u.createPositionAfter(m),x);return je("colspan",_,m,u),F}function v3(m,r,c,u,_,x){const M=parseInt(m.getAttribute("colspan")||"1"),E=parseInt(m.getAttribute("rowspan")||"1");c+M-1>_&&je("colspan",_-c+1,m,x,1),r+E-1>u&&je("rowspan",u-r+1,m,x,1)}function x3(m,r){const c=r.getColumns(m),u=new Array(c).fill(0);for(const{column:x}of new ro(m))u[x]++;const _=u.reduce((x,M,E)=>M?x:[...x,E],[]);return _.length>0&&(r.removeColumns(m,{at:_[_.length-1]}),!0)}function a8(m,r){const c=[],u=r.getRows(m);for(let _=0;_0&&(r.removeRows(m,{at:c[c.length-1]}),!0)}function e7(m,r){x3(m,r)||a8(m,r)}function n7(m,r){const c=Array.from(new ro(m,{startColumn:r.firstColumn,endColumn:r.lastColumn,row:r.lastRow}));return c.every(({cellHeight:_})=>1===_)?r.lastRow:r.lastRow+(c[0].cellHeight-1)}function Zy(m,r){const c=Array.from(new ro(m,{startRow:r.firstRow,endRow:r.lastRow,column:r.lastColumn}));return c.every(({cellWidth:_})=>1===_)?r.lastColumn:r.lastColumn+(c[0].cellWidth-1)}class iv extends Za{constructor(r,c){super(r),this.direction=c.direction,this.isHorizontal="right"==this.direction||"left"==this.direction}refresh(){const r=this._getMergeableCell();this.value=r,this.isEnabled=!!r}execute(){const r=this.editor.model,c=r.document,u=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(c.selection)[0],_=this.value,x=this.direction;r.change(M=>{const E="right"==x||"down"==x,F=E?u:_,V=E?_:u,W=V.parent;var Ie,ln,Dn;ln=F,Dn=M,My(Ie=V)||(My(ln)&&Dn.remove(Dn.createRangeIn(ln)),Dn.move(Dn.createRangeIn(Ie),Dn.createPositionAt(ln,"end"))),Dn.remove(Ie);const dt=this.isHorizontal?"colspan":"rowspan",Zt=parseInt(u.getAttribute(dt)||"1"),ue=parseInt(_.getAttribute(dt)||"1");M.setAttribute(dt,Zt+ue,F),M.setSelection(M.createRangeIn(F));const Ae=this.editor.plugins.get("TableUtils");e7(W.findAncestor("table"),Ae)})}_getMergeableCell(){const r=this.editor.model.document,c=this.editor.plugins.get("TableUtils"),u=c.getTableCellsContainingSelection(r.selection)[0];if(!u)return;const _=this.isHorizontal?function(E,F,V){const Zt="right"==F?E.nextSibling:E.previousSibling,ue=(E.parent.parent.getAttribute("headingColumns")||0)>0;if(!Zt)return;const Ae="right"==F?E:Zt,Ie="right"==F?Zt:E,{column:ln}=V.getCellLocation(Ae),{column:Dn}=V.getCellLocation(Ie),di=parseInt(Ae.getAttribute("colspan")||"1"),Ri=ai(V,Ae),Go=ai(V,Ie);return ue&&Ri!=Go?void 0:ln+di===Dn?Zt:void 0}(u,this.direction,c):function(E,F,V){const W=E.parent,dt=W.parent,Zt=dt.getChildIndex(W);if("down"==F&&Zt===V.getRows(dt)-1||"up"==F&&0===Zt)return null;const ue=parseInt(E.getAttribute("rowspan")||"1"),Ae=dt.getAttribute("headingRows")||0;if(Ae&&("down"==F&&Zt+ue===Ae||"up"==F&&Zt===Ae))return null;const Dn=parseInt(E.getAttribute("rowspan")||"1"),di="down"==F?Zt+Dn:Zt,Ri=[...new ro(dt,{endRow:di})],Da=Ri.find(Kr=>Kr.cell===E).column,ws=Ri.find(({row:Kr,cellHeight:Il,column:fl})=>fl===Da&&("down"==F?Kr===di:di===Kr+Il));return ws&&ws.cell?ws.cell:null}(u,this.direction,c);if(!_)return;const x=this.isHorizontal?"rowspan":"colspan",M=parseInt(u.getAttribute(x)||"1");return parseInt(_.getAttribute(x)||"1")===M?_:void 0}}function My(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}class ky extends Za{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),x=r.getRows(_)-1,M=r.getRowIndexes(c);this.isEnabled=!(0===M.first&&M.last===x)}else this.isEnabled=!1}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),x=u[0],M=x.findAncestor("table"),E=c.getCellLocation(x).column;r.change(F=>{c.removeRows(M,{at:_.first,rows:_.last-_.first+1});const W=function(dt,Zt,ue,Ae){const Ie=dt.getChild(Math.min(Zt,Ae-1));let ln=Ie.getChild(0),Dn=0;for(const di of Ie.getChildren()){if(Dn>ue)return ln;ln=di,Dn+=parseInt(di.getAttribute("colspan")||"1")}return ln}(M,_.first,E,c.getRows(M));F.setSelection(F.createPositionAt(W,0))})}}class Dy extends Za{refresh(){const r=this.editor.plugins.get("TableUtils"),c=r.getSelectionAffectedTableCells(this.editor.model.document.selection),u=c[0];if(u){const _=u.findAncestor("table"),x=r.getColumns(_),{first:M,last:E}=r.getColumnIndexes(c);this.isEnabled=E-MF.cell===c).column,last:x.find(F=>F.cell===u).column},E=(F=x,V=c,W=u,dt=M,parseInt(W.getAttribute("colspan")||"1")>1?W:V.previousSibling||W.nextSibling?W.nextSibling||V.previousSibling:dt.first?F.reverse().find(({column:ue})=>ueue>dt.last).cell);var F,V,W,dt;this.editor.model.change(F=>{r.removeColumns(_,{at:M.first,columns:M.last-M.first+1}),F.setSelection(F.createPositionAt(E,0))})}}class JT extends Za{refresh(){const u=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection),_=u.length>0;this.isEnabled=_,this.value=_&&u.every(x=>this._isInHeading(x,x.parent.parent))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),x=_[0].findAncestor("table"),{first:M,last:E}=c.getRowIndexes(_),F=this.value?M:E+1,V=x.getAttribute("headingRows")||0;u.change(W=>{if(F){const dt=v6(x,F,F>V?V:0);for(const{cell:Zt}of dt)x6(Zt,F,W)}je("headingRows",F,x,W,0)})}_isInHeading(r,c){const u=parseInt(c.getAttribute("headingRows")||"0");return!!u&&r.parent.index0;this.isEnabled=_,this.value=_&&u.every(x=>ai(c,x))}execute(r={}){if(r.forceValue===this.value)return;const c=this.editor.plugins.get("TableUtils"),u=this.editor.model,_=c.getSelectionAffectedTableCells(u.document.selection),x=_[0].findAncestor("table"),{first:M,last:E}=c.getColumnIndexes(_),F=this.value?M:E+1;u.change(V=>{if(F){const W=C6(x,F);for(const{cell:dt,column:Zt}of W)A6(dt,Zt,F,V)}je("headingColumns",F,x,V,0)})}}class s1 extends lo{static get pluginName(){return"TableUtils"}init(){this.decorate("insertColumns"),this.decorate("insertRows")}getCellLocation(r){const c=r.parent,u=c.parent,_=u.getChildIndex(c),x=new ro(u,{row:_});for(const{cell:M,row:E,column:F}of x)if(M===r)return{row:E,column:F}}createTable(r,c){const u=r.createElement("table"),_=c.rows||2,x=c.columns||2;return i7(r,u,0,_,x),c.headingRows&&je("headingRows",Math.min(c.headingRows,_),u,r,0),c.headingColumns&&je("headingColumns",Math.min(c.headingColumns,x),u,r,0),u}insertRows(r,c={}){const u=this.editor.model,_=c.at||0,x=c.rows||1,M=void 0!==c.copyStructureFromAbove,E=c.copyStructureFromAbove?_-1:_,F=this.getRows(r),V=this.getColumns(r);if(_>F)throw new nt("tableutils-insertrows-insert-out-of-range",this,{options:c});u.change(W=>{const dt=r.getAttribute("headingRows")||0;if(dt>_&&je("headingRows",dt+x,r,W,0),!M&&(0===_||_===F))return void i7(W,r,_,x,V);const Zt=M?Math.max(_,E):_,ue=new ro(r,{endRow:Zt}),Ae=new Array(V).fill(1);for(const{row:Ie,column:ln,cellHeight:Dn,cellWidth:di,cell:Ri}of ue){const Go=Ie+Dn-1,Da=Ie<=E&&E<=Go;Ie<_&&_<=Go?(W.setAttribute("rowspan",Dn+x,Ri),Ae[ln]=-di):M&&Da&&(Ae[ln]=di)}for(let Ie=0;Ie0&&xn(W,Ri,di>1?{colspan:di}:void 0),Dn+=Math.abs(di)-1}}})}insertColumns(r,c={}){const _=c.at||0,x=c.columns||1;this.editor.model.change(M=>{const E=r.getAttribute("headingColumns");_x-1)throw new nt("tableutils-removerows-row-index-out-of-range",this,{table:r,options:c});u.change(F=>{const V={first:M,last:E},{cellsToMove:W,cellsToTrim:dt}=function(Zt,{first:ue,last:Ae}){const Ie=new Map,ln=[];for(const{row:Dn,column:di,cellHeight:Ri,cell:Go}of new ro(Zt,{endRow:Ae})){const Da=Dn+Ri-1;if(Dn>=ue&&Dn<=Ae&&Da>Ae&&Ie.set(di,{cell:Go,rowspan:Ri-(Ae-Dn+1)}),Dn=ue){let ws;ws=Da>=Ae?Ae-ue+1:Da-ue+1,ln.push({cell:Go,rowspan:Ri-ws})}}return{cellsToMove:Ie,cellsToTrim:ln}}(r,V);W.size&&function(Zt,ue,Ae,Ie){const Dn=[...new ro(Zt,{includeAllSlots:!0,row:ue})],di=Zt.getChild(ue);let Ri;for(const{column:Go,cell:Da,isAnchor:ws}of Dn)if(Ae.has(Go)){const{cell:Kr,rowspan:Il}=Ae.get(Go),fl=Ri?Ie.createPositionAfter(Ri):Ie.createPositionAt(di,0);Ie.move(Ie.createRangeOn(Kr),fl),je("rowspan",Il,Kr,Ie),Ri=Kr}else ws&&(Ri=Da)}(r,E+1,W,F);for(let Zt=E;Zt>=M;Zt--)F.remove(r.getChild(Zt));for(const{rowspan:Zt,cell:ue}of dt)je("rowspan",Zt,ue,F);(function(Zt,{first:ue,last:Ae},Ie){const ln=Zt.getAttribute("headingRows")||0;ue{!function(V,W,dt){const Zt=V.getAttribute("headingColumns")||0;if(Zt&&W.firstc.is("element","tableColumnGroup"))}(m);return r?Array.from(r.getChildren()):[]}(r);for(let V=M;V>=_;V--){for(const{cell:W,column:dt,cellWidth:Zt}of[...new ro(r)])dt<=V&&Zt>1&&dt+Zt>V?je("colspan",Zt-1,W,E):dt===V&&E.remove(W);if(F[V]){const W=0===V?F[1]:F[V-1],dt=parseFloat(F[V].getAttribute("columnWidth")),Zt=parseFloat(W.getAttribute("columnWidth"));E.remove(F[V]),E.setAttribute("columnWidth",dt+Zt+"%",W)}}a8(r,this)||x3(r,this)})}splitCellVertically(r,c=2){const u=this.editor.model,_=r.parent.parent,x=parseInt(r.getAttribute("rowspan")||"1"),M=parseInt(r.getAttribute("colspan")||"1");u.change(E=>{if(M>1){const{newCellsSpan:F,updatedSpan:V}=Py(M,c);je("colspan",V,r,E);const W={};F>1&&(W.colspan=F),x>1&&(W.rowspan=x),y6(M>c?c-1:M-1,E,E.createPositionAfter(r),W)}if(MAe===r),dt=V.filter(({cell:Ae,cellWidth:Ie,column:ln})=>Ae!==r&&ln===W||lnW);for(const{cell:Ae,cellWidth:Ie}of dt)E.setAttribute("colspan",Ie+F,Ae);const Zt={};x>1&&(Zt.rowspan=x),y6(F,E,E.createPositionAfter(r),Zt);const ue=_.getAttribute("headingColumns")||0;ue>W&&je("headingColumns",ue+F,_,E)}})}splitCellHorizontally(r,c=2){const u=this.editor.model,_=r.parent,x=_.parent,M=x.getChildIndex(_),E=parseInt(r.getAttribute("rowspan")||"1"),F=parseInt(r.getAttribute("colspan")||"1");u.change(V=>{if(E>1){const W=[...new ro(x,{startRow:M,endRow:M+E-1,includeAllSlots:!0})],{newCellsSpan:dt,updatedSpan:Zt}=Py(E,c);je("rowspan",Zt,r,V);const{column:ue}=W.find(({cell:Ie})=>Ie===r),Ae={};dt>1&&(Ae.rowspan=dt),F>1&&(Ae.colspan=F);for(const Ie of W){const{column:ln,row:Dn}=Ie;Dn>=M+Zt&&ln===ue&&(Dn+M+Zt)%dt==0&&y6(1,V,Ie.getPositionBefore(),Ae)}}if(EM&&V.setAttribute("rowspan",Ie+W,Ae);const Zt={};F>1&&(Zt.colspan=F),i7(V,x,M+1,W,1,Zt);const ue=x.getAttribute("headingRows")||0;ue>M&&je("headingRows",ue+W,x,V)}})}getColumns(r){return[...r.getChild(0).getChildren()].reduce((c,u)=>c+parseInt(u.getAttribute("colspan")||"1"),0)}getRows(r){return Array.from(r.getChildren()).reduce((c,u)=>u.is("element","tableRow")?c+1:c,0)}createTableWalker(r,c={}){return new ro(r,c)}getSelectedTableCells(r){const c=[];for(const u of this.sortRanges(r.getRanges())){const _=u.getContainedElement();_&&_.is("element","tableCell")&&c.push(_)}return c}getTableCellsContainingSelection(r){const c=[];for(const u of r.getRanges()){const _=u.start.findAncestor("tableCell");_&&c.push(_)}return c}getSelectionAffectedTableCells(r){const c=this.getSelectedTableCells(r);return c.length?c:this.getTableCellsContainingSelection(r)}getRowIndexes(r){const c=r.map(u=>u.parent.index);return this._getFirstLastIndexesObject(c)}getColumnIndexes(r){const c=r[0].findAncestor("table"),u=[...new ro(c)].filter(_=>r.includes(_.cell)).map(_=>_.column);return this._getFirstLastIndexesObject(u)}isSelectionRectangular(r){if(r.length<2||!this._areCellInTheSameTableSection(r))return!1;const c=new Set,u=new Set;let _=0;for(const M of r){const{row:E,column:F}=this.getCellLocation(M),V=parseInt(M.getAttribute("rowspan"))||1,W=parseInt(M.getAttribute("colspan"))||1;c.add(E),u.add(F),V>1&&c.add(E+V-1),W>1&&u.add(F+W-1),_+=V*W}return function(M,E){const F=Array.from(M.values()),V=Array.from(E.values());return(Math.max(...F)-Math.min(...F)+1)*(Math.max(...V)-Math.min(...V)+1)}(c,u)==_}sortRanges(r){return Array.from(r).sort(Sy)}_getFirstLastIndexesObject(r){const c=r.sort((u,_)=>u-_);return{first:c[0],last:c[c.length-1]}}_areCellInTheSameTableSection(r){const c=r[0].findAncestor("table"),u=this.getRowIndexes(r),_=parseInt(c.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(u,_))return!1;const x=this.getColumnIndexes(r),M=parseInt(c.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(x,M)}_areIndexesInSameSection({first:r,last:c},u){return r{const _=c.getSelectedTableCells(r.document.selection),x=_.shift(),{mergeWidth:M,mergeHeight:E}=function(F,V,W){let dt=0,Zt=0;for(const Dn of V){const{row:di,column:Ri}=W.getCellLocation(Dn);dt=Ly(Dn,Ri,dt,"colspan"),Zt=Ly(Dn,di,Zt,"rowspan")}const{row:ue,column:Ae}=W.getCellLocation(F);return{mergeWidth:dt-Ae,mergeHeight:Zt-ue}}(x,_,c);je("colspan",M,x,u),je("rowspan",E,x,u);for(const F of _)Kn(F,x,u);e7(x.findAncestor("table"),c),u.setSelection(x,"in")})}}function Kn(m,r,c){Ba(m)||(Ba(r)&&c.remove(c.createRangeIn(r)),c.move(c.createRangeIn(m),c.createPositionAt(r,"end"))),c.remove(m)}function Ba(m){const r=m.getChild(0);return 1==m.childCount&&r.is("element","paragraph")&&r.isEmpty}function Ly(m,r,c,u){const _=parseInt(m.getAttribute(u)||"1");return Math.max(c,r+_)}class o7 extends Za{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.model,c=this.editor.plugins.get("TableUtils"),u=c.getSelectionAffectedTableCells(r.document.selection),_=c.getRowIndexes(u),x=u[0].findAncestor("table"),M=[];for(let E=_.first;E<=_.last;E++)for(const F of x.getChild(E).getChildren())M.push(r.createRangeOn(F));r.change(E=>{E.setSelection(M)})}}class Oy extends Za{constructor(r){super(r),this.affectsData=!1}refresh(){const r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=r.length>0}execute(){const r=this.editor.plugins.get("TableUtils"),c=this.editor.model,u=r.getSelectionAffectedTableCells(c.document.selection),_=u[0],x=u.pop(),M=_.findAncestor("table"),E=r.getCellLocation(_),F=r.getCellLocation(x),V=Math.min(E.column,F.column),W=Math.max(E.column,F.column),dt=[];for(const Zt of new ro(M,{startColumn:V,endColumn:W}))dt.push(c.createRangeOn(Zt.cell));c.change(Zt=>{Zt.setSelection(dt)})}}function KT(m,r){let c=!1;const u=function(_){const x=parseInt(_.getAttribute("headingRows")||"0"),M=Array.from(_.getChildren()).reduce((F,V)=>V.is("element","tableRow")?F+1:F,0),E=[];for(const{row:F,cell:V,cellHeight:W}of new ro(_)){if(W<2)continue;const dt=Fdt&&E.push({cell:V,rowspan:dt-F})}return E}(m);if(u.length){c=!0;for(const _ of u)je("rowspan",_.rowspan,_.cell,r,1)}return c}function a7(m,r){let c=!1;const u=function(E){const F=new Array(E.childCount).fill(0);for(const{rowIndex:V}of new ro(E,{includeAllSlots:!0}))F[V]++;return F}(m),_=[];for(const[E,F]of u.entries())!F&&m.getChild(E).is("element","tableRow")&&_.push(E);if(_.length){c=!0;for(const E of _.reverse())r.remove(m.getChild(E)),u.splice(E,1)}const x=u.filter((E,F)=>m.getChild(F).is("element","tableRow")),M=x[0];if(!x.every(E=>E===M)){const E=x.reduce((F,V)=>V>F?V:F,0);for(const[F,V]of x.entries()){const W=E-V;if(W){for(let dt=0;dtu.is("$text"));for(const u of c)r.wrap(r.createRangeOn(u),"paragraph");return!!c.length}function n9(m){return!!m.position.parent.is("element","tableCell")&&("insert"==m.type&&"$text"==m.name||"remove"==m.type)}function i9(m,r){if(!m.is("element","paragraph"))return!1;const c=r.toViewElement(m);return!!c&&zr(m)!==c.is("element","span")}var Iy=v(3881);No()(Iy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ny extends lo{constructor(r){super(r),this._additionalSlots=[]}static get pluginName(){return"TableEditing"}static get requires(){return[s1]}init(){const r=this.editor,c=r.model,u=c.schema,_=r.conversion,x=r.plugins.get(s1);u.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),u.register("tableRow",{allowIn:"table",isLimit:!0}),u.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),_.for("upcast").add(M=>{M.on("element:figure",(E,F,V)=>{if(!V.consumable.test(F.viewItem,{name:!0,classes:"table"}))return;const W=function(Zt){for(const ue of Zt.getChildren())if(ue.is("element","table"))return ue}(F.viewItem);if(!W||!V.consumable.test(W,{name:!0}))return;V.consumable.consume(F.viewItem,{name:!0,classes:"table"});const dt=as(V.convertItem(W,F.modelCursor).modelRange.getItems());dt?(V.convertChildren(F.viewItem,V.writer.createPositionAt(dt,"end")),V.updateConversionResult(dt,F)):V.consumable.revert(F.viewItem,{name:!0,classes:"table"})})}),_.for("upcast").add(function Ai(){return m=>{m.on("element:table",(r,c,u)=>{const _=c.viewItem;if(!u.consumable.test(_,{name:!0}))return;const{rows:x,headingRows:M,headingColumns:E}=function(W){let dt,Zt=0;const ue=[],Ae=[];let Ie;for(const ln of Array.from(W.getChildren())){if("tbody"!==ln.name&&"thead"!==ln.name&&"tfoot"!==ln.name)continue;"thead"!==ln.name||Ie||(Ie=ln);const Dn=Array.from(ln.getChildren()).filter(di=>di.is("element","tr"));for(const di of Dn)if(Ie&&ln===Ie||"tbody"===ln.name&&Array.from(di.getChildren()).length&&Array.from(di.getChildren()).every(Ri=>Ri.is("element","th")))Zt++,ue.push(di);else{Ae.push(di);const Ri=Ao(di);(!dt||Riu.convertItem(W,u.writer.createPositionAt(V,"end"))),u.convertChildren(_,u.writer.createPositionAt(V,"end")),V.isEmpty){const W=u.writer.createElement("tableRow");u.writer.insert(W,u.writer.createPositionAt(V,"end")),xn(u.writer,u.writer.createPositionAt(W,"end"))}u.updateConversionResult(V,c)}})}}()),_.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{asWidget:!0,additionalSlots:this._additionalSlots})}),_.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:Ta(x,{additionalSlots:this._additionalSlots})}),_.for("upcast").elementToElement({model:"tableRow",view:"tr"}),_.for("upcast").add(M=>{M.on("element:tr",(E,F)=>{F.viewItem.isEmpty&&0==F.modelCursor.index&&E.stop()},{priority:"high"})}),_.for("downcast").elementToElement({model:"tableRow",view:(M,{writer:E})=>M.isEmpty?E.createEmptyElement("tr"):E.createContainerElement("tr")}),_.for("upcast").elementToElement({model:"tableCell",view:"td"}),_.for("upcast").elementToElement({model:"tableCell",view:"th"}),_.for("upcast").add(Vi("td")),_.for("upcast").add(Vi("th")),_.for("editingDowncast").elementToElement({model:"tableCell",view:oo({asWidget:!0})}),_.for("dataDowncast").elementToElement({model:"tableCell",view:oo()}),_.for("editingDowncast").elementToElement({model:"paragraph",view:Ea({asWidget:!0}),converterPriority:"high"}),_.for("dataDowncast").elementToElement({model:"paragraph",view:Ea(),converterPriority:"high"}),_.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),_.for("upcast").attributeToAttribute({model:{key:"colspan",value:Fy("colspan")},view:"colspan"}),_.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),_.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Fy("rowspan")},view:"rowspan"}),r.config.define("table.defaultHeadings.rows",0),r.config.define("table.defaultHeadings.columns",0),r.commands.add("insertTable",new Mc(r)),r.commands.add("insertTableRowAbove",new g2(r,{order:"above"})),r.commands.add("insertTableRowBelow",new g2(r,{order:"below"})),r.commands.add("insertTableColumnLeft",new g6(r,{order:"left"})),r.commands.add("insertTableColumnRight",new g6(r,{order:"right"})),r.commands.add("removeTableRow",new ky(r)),r.commands.add("removeTableColumn",new Dy(r)),r.commands.add("splitTableCellVertically",new b3(r,{direction:"vertically"})),r.commands.add("splitTableCellHorizontally",new b3(r,{direction:"horizontally"})),r.commands.add("mergeTableCells",new WT(r)),r.commands.add("mergeTableCellRight",new iv(r,{direction:"right"})),r.commands.add("mergeTableCellLeft",new iv(r,{direction:"left"})),r.commands.add("mergeTableCellDown",new iv(r,{direction:"down"})),r.commands.add("mergeTableCellUp",new iv(r,{direction:"up"})),r.commands.add("setTableColumnHeader",new GT(r)),r.commands.add("setTableRowHeader",new JT(r)),r.commands.add("selectTableRow",new o7(r)),r.commands.add("selectTableColumn",new Oy(r)),function $T(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;const M=new Set;for(const E of _){let F=null;"insert"==E.type&&"table"==E.name&&(F=E.position.nodeAfter),"insert"!=E.type&&"remove"!=E.type||"tableRow"!=E.name&&"tableCell"!=E.name||(F=E.position.findAncestor("table")),XT(E)&&(F=E.range.start.findAncestor("table")),F&&!M.has(F)&&(x=KT(F,c)||x,x=a7(F,c)||x,M.add(F))}return x}(r,m))}(c),function t9(m){m.document.registerPostFixer(r=>function(c,u){const _=u.document.differ.getChanges();let x=!1;for(const M of _)"insert"==M.type&&"table"==M.name&&(x=e9(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableRow"==M.name&&(x=Ey(M.position.nodeAfter,c)||x),"insert"==M.type&&"tableCell"==M.name&&(x=ov(M.position.nodeAfter,c)||x),"remove"!=M.type&&"insert"!=M.type||!n9(M)||(x=ov(M.position.parent,c)||x);return x}(r,m))}(c),this.listenTo(c.document,"change:data",()=>{(function(M,E){const F=M.document.differ;for(const V of F.getChanges()){let W,dt=!1;if("attribute"==V.type){const Ie=V.range.start.nodeAfter;if(!Ie||!Ie.is("element","table")||"headingRows"!=V.attributeKey&&"headingColumns"!=V.attributeKey)continue;W=Ie,dt="headingRows"==V.attributeKey}else"tableRow"!=V.name&&"tableCell"!=V.name||(W=V.position.findAncestor("table"),dt="tableRow"==V.name);if(!W)continue;const Zt=W.getAttribute("headingRows")||0,ue=W.getAttribute("headingColumns")||0,Ae=new ro(W);for(const Ie of Ae){const ln=Ie.rowi9(Zt,E.mapper));for(const Zt of dt)E.reconvertItem(Zt)}}(c,r.editing)})}registerAdditionalSlot(r){this._additionalSlots.push(r)}}function Fy(m){return r=>{const c=parseInt(r.getAttribute(m));return Number.isNaN(c)||c<=0?null:c}}var qy=v(1613);No()(qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class r9 extends oa{constructor(r){super(r);const c=this.bindTemplate;this.items=this._createGridCollection(),this.keystrokes=new $c,this.focusTracker=new rs,this.set("rows",0),this.set("columns",0),this.bind("label").to(this,"columns",this,"rows",(u,_)=>`${_} \xd7 ${u}`),this.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":c.to("boxover")},children:this.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:c.to("label")}]}],on:{mousedown:c.to(u=>{u.preventDefault()}),click:c.to(()=>{this.fire("execute")})}}),this.on("boxover",(u,_)=>{const{row:x,column:M}=_.target.dataset;this.items.get(10*(parseInt(x,10)-1)+(parseInt(M,10)-1)).focus()}),this.focusTracker.on("change:focusedElement",(u,_,x)=>{if(!x)return;const{row:M,column:E}=x.dataset;this.set({rows:parseInt(M),columns:parseInt(E)})}),this.on("change:columns",()=>this._highlightGridBoxes()),this.on("change:rows",()=>this._highlightGridBoxes())}render(){super.render(),function({keystrokeHandler:r,focusTracker:c,gridItems:u,numberOfColumns:_,uiLanguageDirection:x}){const M="number"==typeof _?()=>_:_;function E(W){return dt=>{const Zt=u.find(Ie=>Ie.element===c.focusedElement),ue=u.getIndex(Zt),Ae=W(ue,u);u.get(Ae).focus(),dt.stopPropagation(),dt.preventDefault()}}function F(W,dt){return W===dt-1?0:W+1}function V(W,dt){return 0===W?dt-1:W-1}r.set("arrowright",E((W,dt)=>"rtl"===x?V(W,dt.length):F(W,dt.length))),r.set("arrowleft",E((W,dt)=>"rtl"===x?F(W,dt.length):V(W,dt.length))),r.set("arrowup",E((W,dt)=>{let Zt=W-M();return Zt<0&&(Zt=W+M()*Math.floor(dt.length/M()),Zt>dt.length-1&&(Zt-=M())),Zt})),r.set("arrowdown",E((W,dt)=>{let Zt=W+M();return Zt>dt.length-1&&(Zt=W%M()),Zt}))}({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});for(const r of this.items)this.focusTracker.add(r.element);this.keystrokes.listenTo(this.element)}focus(){this.items.get(0).focus()}focusLast(){this.items.get(0).focus()}_highlightGridBoxes(){const r=this.rows,c=this.columns;this.items.map((u,_)=>{const x=Math.floor(_/10){const x=r.commands.get("insertTable"),M=Lp(_);let E;return M.bind("isEnabled").to(x),M.buttonView.set({icon:' ',label:c("Insert table"),tooltip:!0}),M.on("change:isOpen",()=>{E||(E=new r9(_),M.panelView.children.add(E),E.delegate("execute").to(M),M.on("execute",()=>{r.execute("insertTable",{rows:E.rows,columns:E.columns}),r.editing.view.focus()}))}),M}),r.ui.componentFactory.add("tableColumn",_=>{const x=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:c("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:u?"insertTableColumnLeft":"insertTableColumnRight",label:c("Insert column left")}},{type:"button",model:{commandName:u?"insertTableColumnRight":"insertTableColumnLeft",label:c("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:c("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:c("Select column")}}];return this._prepareDropdown(c("Column"),' ',x,_)}),r.ui.componentFactory.add("tableRow",_=>{const x=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:c("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:c("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:c("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:c("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:c("Select row")}}];return this._prepareDropdown(c("Row"),' ',x,_)}),r.ui.componentFactory.add("mergeTableCells",_=>{const x=[{type:"button",model:{commandName:"mergeTableCellUp",label:c("Merge cell up")}},{type:"button",model:{commandName:u?"mergeTableCellRight":"mergeTableCellLeft",label:c("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:c("Merge cell down")}},{type:"button",model:{commandName:u?"mergeTableCellLeft":"mergeTableCellRight",label:c("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:c("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:c("Split cell horizontally")}}];return this._prepareMergeSplitButtonDropdown(c("Merge cells"),' ',x,_)})}_prepareDropdown(r,c,u,_){const x=this.editor,M=Lp(_),E=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0}),M.bind("isEnabled").toMany(E,"isEnabled",(...F)=>F.some(V=>V)),this.listenTo(M,"execute",F=>{x.execute(F.source.commandName),F.source instanceof ys||x.editing.view.focus()}),M}_prepareMergeSplitButtonDropdown(r,c,u,_){const x=this.editor,M=Lp(_,p4),E="mergeTableCells",F=x.commands.get(E),V=this._fillDropdownWithListOptions(M,u);return M.buttonView.set({label:r,icon:c,tooltip:!0,isEnabled:!0}),M.bind("isEnabled").toMany([F,...V],"isEnabled",(...W)=>W.some(dt=>dt)),this.listenTo(M.buttonView,"execute",()=>{x.execute(E),x.editing.view.focus()}),this.listenTo(M,"execute",W=>{x.execute(W.source.commandName),x.editing.view.focus()}),M}_fillDropdownWithListOptions(r,c){const u=this.editor,_=[],x=new ec;for(const M of c)c9(M,u,_,x);return t1(r,x),_}}function c9(m,r,c,u){if("button"===m.type||"switchbutton"===m.type){const _=m.model=new Z4(m.model),{commandName:x,bindIsOn:M}=m.model,E=r.commands.get(x);c.push(E),_.set({commandName:x}),_.bind("isEnabled").to(E),M&&_.bind("isOn").to(E,"value"),_.set({withText:!0})}u.add(m)}var r7=v(6945);No()(r7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});class Ua extends lo{static get pluginName(){return"TableSelection"}static get requires(){return[s1,s1]}init(){const r=this.editor,u=r.editing.view;this.listenTo(r.model,"deleteContent",(_,x)=>this._handleDeleteContent(_,x),{priority:"high"}),this.listenTo(u.document,"insertText",(_,x)=>this._handleInsertTextEvent(_,x),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}getSelectedTableCells(){const u=this.editor.plugins.get(s1).getSelectedTableCells(this.editor.model.document.selection);return 0==u.length?null:u}getSelectionAsFragment(){const r=this.editor.plugins.get(s1),c=this.getSelectedTableCells();return c?this.editor.model.change(u=>{const _=u.createDocumentFragment(),{first:x,last:M}=r.getColumnIndexes(c),{first:E,last:F}=r.getRowIndexes(c),V=c[0].findAncestor("table");let W=F,dt=M;if(r.isSelectionRectangular(c)){const ue={firstColumn:x,lastColumn:M,firstRow:E,lastRow:F};W=n7(V,ue),dt=Zy(V,ue)}const Zt=b6(V,{startRow:E,startColumn:x,endRow:W,endColumn:dt},u);return u.insert(Zt,_,0),_}):null}setCellSelection(r,c){const u=this._getCellsToSelect(r,c);this.editor.model.change(_=>{_.setSelection(u.cells.map(x=>_.createRangeOn(x)),{backward:u.backward})})}getFocusCell(){const r=[...this.editor.model.document.selection.getRanges()].pop().getContainedElement();return r&&r.is("element","tableCell")?r:null}getAnchorCell(){const r=as(this.editor.model.document.selection.getRanges()).getContainedElement();return r&&r.is("element","tableCell")?r:null}_defineSelectionConverter(){const r=this.editor,c=new Set;r.conversion.for("editingDowncast").add(u=>u.on("selection",(_,x,M)=>{const E=M.writer;!function(W){for(const dt of c)W.removeClass("ck-editor__editable_selected",dt);c.clear()}(E);const F=this.getSelectedTableCells();if(!F)return;for(const W of F){const dt=M.mapper.toViewElement(W);E.addClass("ck-editor__editable_selected",dt),c.add(dt)}const V=M.mapper.toViewElement(F[F.length-1]);E.setSelection(V,0)},{priority:"lowest"}))}_enablePluginDisabling(){const r=this.editor;this.on("change:isEnabled",()=>{if(!this.isEnabled){const c=this.getSelectedTableCells();if(!c)return;r.model.change(u=>{const _=u.createPositionAt(c[0],0),x=r.model.schema.getNearestSelectionRange(_);u.setSelection(x)})}})}_handleDeleteContent(r,c){const u=this.editor.plugins.get(s1),_=c[0],x=c[1],M=this.editor.model,E=!x||"backward"==x.direction,F=u.getSelectedTableCells(_);F.length&&(r.stop(),M.change(V=>{const W=F[E?F.length-1:0];M.change(Zt=>{for(const ue of F)M.deleteContent(Zt.createSelection(ue,"in"))});const dt=M.schema.getNearestSelectionRange(V.createPositionAt(W,0));_.is("documentSelection")?V.setSelection(dt):_.setTo(dt)}))}_handleInsertTextEvent(r,c){const u=this.editor,_=this.getSelectedTableCells();if(!_)return;const x=u.editing.view,M=u.editing.mapper,E=_.map(F=>x.createRangeOn(M.toViewElement(F)));c.selection=x.createSelection(E)}_getCellsToSelect(r,c){const u=this.editor.plugins.get("TableUtils"),_=u.getCellLocation(r),x=u.getCellLocation(c),M=Math.min(_.row,x.row),E=Math.max(_.row,x.row),F=Math.min(_.column,x.column),V=Math.max(_.column,x.column),W=new Array(E-M+1).fill(null).map(()=>[]),dt={startRow:M,endRow:E,startColumn:F,endColumn:V};for(const{row:Ae,cell:Ie}of new ro(r.findAncestor("table"),dt))W[Ae-M].push(Ie);const Zt=x.row<_.row,ue=x.column<_.column;return Zt&&W.reverse(),ue&&W.forEach(Ae=>Ae.reverse()),{cells:W.flat(),backward:Zt||ue}}}class ya extends lo{static get pluginName(){return"TableClipboard"}static get requires(){return[Ua,s1]}init(){const r=this.editor,c=r.editing.view.document;this.listenTo(c,"copy",(u,_)=>this._onCopyCut(u,_)),this.listenTo(c,"cut",(u,_)=>this._onCopyCut(u,_)),this.listenTo(r.model,"insertContent",(u,[_,x])=>this._onInsertContent(u,_,x),{priority:"high"}),this.decorate("_replaceTableSlotCell")}_onCopyCut(r,c){const u=this.editor.plugins.get(Ua);if(!u.getSelectedTableCells()||"cut"==r.name&&!this.editor.model.canEditAt(this.editor.model.document.selection))return;c.preventDefault(),r.stop();const x=this.editor.editing.view.document,M=this.editor.data.toView(u.getSelectionAsFragment());x.fire("clipboardOutput",{dataTransfer:c.dataTransfer,content:M,method:r.name})}_onInsertContent(r,c,u){if(u&&!u.is("documentSelection"))return;const _=this.editor.model,x=this.editor.plugins.get(s1);let M=this.getTableIfOnlyTableInContent(c,_);if(!M)return;const E=x.getSelectionAffectedTableCells(_.document.selection);E.length?(r.stop(),_.change(F=>{const V={width:x.getColumns(M),height:x.getRows(M)},W=function(ln,Dn,di,Ri){const Go=ln[0].findAncestor("table"),Da=Ri.getColumnIndexes(ln),ws=Ri.getRowIndexes(ln),Kr={firstColumn:Da.first,lastColumn:Da.last,firstRow:ws.first,lastRow:ws.last},Il=1===ln.length;return Il&&(Kr.lastRow+=Dn.height-1,Kr.lastColumn+=Dn.width-1,function(fl,w6,b2,Rp){const wf=Rp.getColumns(fl),v2=Rp.getRows(fl);b2>wf&&Rp.insertColumns(fl,{at:wf,columns:b2-wf}),w6>v2&&Rp.insertRows(fl,{at:v2,rows:w6-v2})}(Go,Kr.lastRow+1,Kr.lastColumn+1,Ri)),Il||!Ri.isSelectionRectangular(ln)?function(fl,w6,b2){const{firstRow:Rp,lastRow:wf,firstColumn:v2,lastColumn:C3}=w6,nT={first:Rp,last:wf},_7={first:v2,last:C3};s7(fl,v2,nT,b2),s7(fl,C3+1,nT,b2),or(fl,Rp,_7,b2),or(fl,wf+1,_7,b2,Rp)}(Go,Kr,di):(Kr.lastRow=n7(Go,Kr),Kr.lastColumn=Zy(Go,Kr)),Kr}(E,V,F,x),Zt=W.lastColumn-W.firstColumn+1,ue={startRow:0,startColumn:0,endRow:Math.min(W.lastRow-W.firstRow+1,V.height)-1,endColumn:Math.min(Zt,V.width)-1};M=b6(M,ue,F);const Ae=E[0].findAncestor("table"),Ie=this._replaceSelectedCellsWithPasted(M,V,Ae,W,F);if(this.editor.plugins.get("TableSelection").isEnabled){const ln=x.sortRanges(Ie.map(Dn=>F.createRangeOn(Dn)));F.setSelection(ln)}else F.setSelection(Ie[0],0)})):e7(M,x)}_replaceSelectedCellsWithPasted(r,c,u,_,x){const{width:M,height:E}=c,F=function(ln,Dn,di){const Ri=new Array(di).fill(null).map(()=>new Array(Dn).fill(null));for(const{column:Go,row:Da,cell:ws}of new ro(ln))Ri[Da][Go]=ws;return Ri}(r,M,E),V=[...new ro(u,{startRow:_.firstRow,endRow:_.lastRow,startColumn:_.firstColumn,endColumn:_.lastColumn,includeAllSlots:!0})],W=[];let dt;for(const ln of V){const{row:Dn,column:di}=ln;di===_.firstColumn&&(dt=ln.getPositionBefore());const Da=F[(Dn-_.firstRow)%E][(di-_.firstColumn)%M],ws=Da?x.cloneElement(Da):null,Kr=this._replaceTableSlotCell(ln,ws,dt,x);Kr&&(v3(Kr,Dn,di,_.lastRow,_.lastColumn,x),W.push(Kr),dt=x.createPositionAfter(Kr))}const Zt=parseInt(u.getAttribute("headingRows")||"0"),ue=parseInt(u.getAttribute("headingColumns")||"0"),Ie=_.firstColumns8(x,M,c)).map(({cell:x})=>x6(x,r,u))}function s7(m,r,c,u){if(!(r<1))return C6(m,r).filter(({row:_,cellHeight:x})=>s8(_,x,c)).map(({cell:_,column:x})=>A6(_,x,r,u))}function s8(m,r,c){const u=m+r-1,{first:_,last:x}=c;return m>=_&&m<=x||m<_&&u>=_}class u9 extends lo{static get pluginName(){return"TableKeyboard"}static get requires(){return[Ua,s1]}init(){const r=this.editor.editing.view.document;this.listenTo(r,"arrowKey",(...c)=>this._onArrowKey(...c),{context:"table"}),this.listenTo(r,"tab",(...c)=>this._handleTabOnSelectedTable(...c),{context:"figure"}),this.listenTo(r,"tab",(...c)=>this._handleTab(...c),{context:["th","td"]})}_handleTabOnSelectedTable(r,c){const u=this.editor,_=u.model.document.selection.getSelectedElement();_&&_.is("element","table")&&(c.preventDefault(),c.stopPropagation(),r.stop(),u.model.change(x=>{x.setSelection(x.createRangeIn(_.getChild(0).getChild(0)))}))}_handleTab(r,c){const u=this.editor,_=this.editor.plugins.get(s1),x=this.editor.plugins.get("TableSelection"),E=!c.shiftKey;let F=_.getTableCellsContainingSelection(u.model.document.selection)[0];if(F||(F=x.getFocusCell()),!F)return;c.preventDefault(),c.stopPropagation(),r.stop();const V=F.parent,W=V.parent,dt=W.getChildIndex(V),Zt=V.getChildIndex(F),ue=0===Zt;if(!E&&ue&&0===dt)return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});const Ae=Zt===V.childCount-1,Ie=dt===_.getRows(W)-1;if(E&&Ie&&Ae&&(u.execute("insertTableRowBelow"),dt===_.getRows(W)-1))return void u.model.change(Dn=>{Dn.setSelection(Dn.createRangeOn(W))});let ln;if(E&&Ae)ln=W.getChild(dt+1).getChild(0);else if(!E&&ue){const Dn=W.getChild(dt-1);ln=Dn.getChild(Dn.childCount-1)}else ln=V.getChild(Zt+(E?1:-1));u.model.change(Dn=>{Dn.setSelection(Dn.createRangeIn(ln))})}_onArrowKey(r,c){const _=b1(c.keyCode,this.editor.locale.contentLanguageDirection);this._handleArrowKeys(_,c.shiftKey)&&(c.preventDefault(),c.stopPropagation(),r.stop())}_handleArrowKeys(r,c){const u=this.editor.plugins.get(s1),_=this.editor.plugins.get("TableSelection"),x=this.editor.model,M=x.document.selection,E=["right","down"].includes(r),F=u.getSelectedTableCells(M);if(F.length){let W;return W=c?_.getFocusCell():E?F[F.length-1]:F[0],this._navigateFromCellInDirection(W,r,c),!0}const V=M.focus.findAncestor("tableCell");if(!V)return!1;if(!M.isCollapsed)if(c){if(M.isBackward==E&&!M.containsEntireContent(V))return!1}else{const W=M.getSelectedElement();if(!W||!x.schema.isObject(W))return!1}return!!this._isSelectionAtCellEdge(M,V,E)&&(this._navigateFromCellInDirection(V,r,c),!0)}_isSelectionAtCellEdge(r,c,u){const _=this.editor.model,x=this.editor.model.schema,M=u?r.getLastPosition():r.getFirstPosition();if(!x.getLimitElement(M).is("element","tableCell"))return _.createPositionAt(c,u?"end":0).isTouching(M);const E=_.createSelection(M);return _.modifySelection(E,{direction:u?"forward":"backward"}),M.isEqual(E.focus)}_navigateFromCellInDirection(r,c,u=!1){const _=this.editor.model,x=r.findAncestor("table"),M=[...new ro(x,{includeAllSlots:!0})],{row:E,column:F}=M[M.length-1],V=M.find(({cell:Ie})=>Ie==r);let{row:W,column:dt}=V;switch(c){case"left":dt--;break;case"up":W--;break;case"right":dt+=V.cellWidth;break;case"down":W+=V.cellHeight}if(W<0||W>E||dt<0&&W<=0||dt>F&&W>=E)return void _.change(Ie=>{Ie.setSelection(Ie.createRangeOn(x))});dt<0?(dt=u?0:F,W--):dt>F&&(dt=u?F:0,W++);const Zt=M.find(Ie=>Ie.row==W&&Ie.column==dt).cell,ue=["right","down"].includes(c),Ae=this.editor.plugins.get("TableSelection");if(u&&Ae.isEnabled){const Ie=Ae.getAnchorCell()||r;Ae.setCellSelection(Ie,Zt)}else{const Ie=_.createPositionAt(Zt,ue?0:"end");_.change(ln=>{ln.setSelection(Ie)})}}}class Ry extends Wu{constructor(){super(...arguments),this.domEventType=["mousemove","mouseleave"]}onDomEvent(r){this.fire(r.type,r)}}class d9 extends lo{static get pluginName(){return"TableMouse"}static get requires(){return[Ua,s1]}init(){this.editor.editing.view.addObserver(Ry),this._enableShiftClickSelection(),this._enableMouseDragSelection()}_enableShiftClickSelection(){const r=this.editor,c=r.plugins.get(s1);let u=!1;const _=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(x,M)=>{const E=r.model.document.selection;if(!this.isEnabled||!_.isEnabled||!M.domEvent.shiftKey)return;const F=_.getAnchorCell()||c.getTableCellsContainingSelection(E)[0];if(!F)return;const V=this._getModelTableCellFromDomEvent(M);V&&Hy(F,V)&&(u=!0,_.setCellSelection(F,V),M.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{u=!1}),this.listenTo(r.editing.view.document,"selectionChange",x=>{u&&x.stop()},{priority:"highest"})}_enableMouseDragSelection(){const r=this.editor;let c,u,_=!1,x=!1;const M=r.plugins.get(Ua);this.listenTo(r.editing.view.document,"mousedown",(E,F)=>{this.isEnabled&&M.isEnabled&&(F.domEvent.shiftKey||F.domEvent.ctrlKey||F.domEvent.altKey||(c=this._getModelTableCellFromDomEvent(F)))}),this.listenTo(r.editing.view.document,"mousemove",(E,F)=>{if(!F.domEvent.buttons||!c)return;const V=this._getModelTableCellFromDomEvent(F);V&&Hy(c,V)&&(u=V,_||u==c||(_=!0)),_&&(x=!0,M.setCellSelection(c,u),F.preventDefault())}),this.listenTo(r.editing.view.document,"mouseup",()=>{_=!1,x=!1,c=null,u=null}),this.listenTo(r.editing.view.document,"selectionChange",E=>{x&&E.stop()},{priority:"highest"})}_getModelTableCellFromDomEvent(r){const u=this.editor.editing.view.createPositionAt(r.target,0);return this.editor.editing.mapper.toModelPosition(u).parent.findAncestor("tableCell",{includeSelf:!0})}}function Hy(m,r){return m.parent.parent==r.parent.parent}var c7=v(6306);function m9(m){const r=m.getSelectedElement();return r&&l7(r)?r:null}function zy(m){const r=m.getFirstPosition();if(!r)return null;let c=r.parent;for(;c;){if(c.is("element")&&l7(c))return c;c=c.parent}return null}function l7(m){return!!m.getCustomProperty("table")&&El(m)}No()(c7.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var c8=v(7368);No()(c8.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Yy=v(9247);No()(Yy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Vy=v(4070);No()(Vy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Jy=v(6237);No()(Jy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Gy=v(5087);No()(Gy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Qy=v(7341);No()(Qy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var av=v(2128);No()(av.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var $y=v(4101);No()($y.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0});var Tf=Object.defineProperty,u7=Object.getOwnPropertySymbols,T6=Object.prototype.hasOwnProperty,v9=Object.prototype.propertyIsEnumerable,Ky=(m,r,c)=>r in m?Tf(m,r,{enumerable:!0,configurable:!0,writable:!0,value:c}):m[r]=c,Xy=(m,r)=>{for(var c in r||(r={}))T6.call(r,c)&&Ky(m,c,r[c]);if(u7)for(var c of u7(r))v9.call(r,c)&&Ky(m,c,r[c]);return m};const x9={autoRefresh:!0};class d7 extends(Ue()){constructor(r,c={}){if(super(),!r)throw new nt("token-missing-token-url",this);c.initValue&&this._validateTokenValue(c.initValue),this.set("value",c.initValue),this._refresh="function"==typeof r?r:()=>{return u=r,new Promise((_,x)=>{const M=new XMLHttpRequest;M.open("GET",u),M.addEventListener("load",()=>{const E=M.status,F=M.response;return E<200||E>299?x(new nt("token-cannot-download-new-token",null)):_(F)}),M.addEventListener("error",()=>x(new Error("Network Error"))),M.addEventListener("abort",()=>x(new Error("Abort"))),M.send()});var u},this._options=Xy(Xy({},x9),c)}init(){return new Promise((r,c)=>{this.value?(this._options.autoRefresh&&this._registerRefreshTokenTimeout(),r(this)):this.refreshToken().then(r).catch(c)})}refreshToken(){return this._refresh().then(r=>(this._validateTokenValue(r),this.set("value",r),this._options.autoRefresh&&this._registerRefreshTokenTimeout(),this))}destroy(){clearTimeout(this._tokenRefreshTimeout)}_validateTokenValue(r){const c="string"==typeof r,u=!/^".*"$/.test(r),_=c&&3===r.split(".").length;if(!u||!_)throw new nt("token-not-in-jwt-format",this)}_registerRefreshTokenTimeout(){const r=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(()=>{this.refreshToken()},r)}_getTokenRefreshTimeoutTime(){try{const[,r]=this.value.split("."),{exp:c}=JSON.parse(atob(r));return c?Math.floor((1e3*c-Date.now())/2):36e5}catch{return 36e5}}static create(r,c={}){return new d7(r,c).init()}}const p7=/^data:(\S*?);base64,/;class C9 extends(Oe()){constructor(r,c,u){if(super(),!r)throw new nt("fileuploader-missing-file",null);if(!c)throw new nt("fileuploader-missing-token",null);if(!u)throw new nt("fileuploader-missing-api-address",null);this.file=function(_){if("string"!=typeof _)return!1;const x=_.match(p7);return!(!x||!x.length)}(r)?function(_,x=512){try{const M=_.match(p7)[1],E=atob(_.replace(p7,"")),F=[];for(let V=0;Vr(u)),this}onError(r){return this.once("error",(c,u)=>r(u)),this}abort(){this.xhr.abort()}send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest()}_prepareRequest(){const r=new XMLHttpRequest;r.open("POST",this._apiAddress),r.setRequestHeader("Authorization",this._token.value),r.responseType="json",this.xhr=r}_attachXHRListeners(){const r=this.xhr,c=u=>()=>this.fire("error",u);r.addEventListener("error",c("Network Error")),r.addEventListener("abort",c("Abort")),r.upload&&r.upload.addEventListener("progress",u=>{u.lengthComputable&&this.fire("progress",{total:u.total,uploaded:u.loaded})}),r.addEventListener("load",()=>{const u=r.status,_=r.response;if(u<200||u>299)return this.fire("error",_.message||_.error)})}_sendRequest(){const r=new FormData,c=this.xhr;return r.append("file",this.file),new Promise((u,_)=>{c.addEventListener("load",()=>{const x=c.status,M=c.response;return x<200||x>299?_(M.message?new nt("fileuploader-uploading-data-failed",this,{message:M.message}):M.error):u(M)}),c.addEventListener("error",()=>_(new Error("Network Error"))),c.addEventListener("abort",()=>_(new Error("Abort"))),c.send(r)})}}class tT{constructor(r,c){if(!r)throw new nt("uploadgateway-missing-token",null);if(!c)throw new nt("uploadgateway-missing-api-address",null);this._token=r,this._apiAddress=c}upload(r){return new C9(r,this._token,this._apiAddress)}}class A9 extends w_{static get pluginName(){return"CloudServicesCore"}createToken(r,c){return new d7(r,c)}createUploadGateway(r,c){return new tT(r,c)}}var eT=(m,r,c)=>new Promise((u,_)=>{var x=F=>{try{E(c.next(F))}catch(V){_(V)}},M=F=>{try{E(c.throw(F))}catch(V){_(V)}},E=F=>F.done?u(F.value):Promise.resolve(F.value).then(x,M);E((c=c.apply(m,r)).next())});class m7 extends Y0{}m7.builtinPlugins=[class extends lo{static get requires(){return[yx,Tm,J8,N8,Ya,Lx]}static get pluginName(){return"Essentials"}},class extends lo{static get requires(){return[ip]}static get pluginName(){return"CKFinderUploadAdapter"}init(){const m=this.editor.config.get("ckfinder.uploadUrl");m&&(this.editor.plugins.get(ip).createUploadAdapter=r=>new X8(r,m,this.editor.t))}},class extends lo{static get requires(){return[r_]}static get pluginName(){return"Autoformat"}afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}_addListAutoformats(){const m=this.editor.commands;m.get("bulletedList")&&Fp(this.editor,this,/^[*-]\s$/,"bulletedList"),m.get("numberedList")&&Fp(this.editor,this,/^1[.|)]\s$/,"numberedList"),m.get("todoList")&&Fp(this.editor,this,/^\[\s?\]\s$/,"todoList"),m.get("checkTodoList")&&Fp(this.editor,this,/^\[\s?x\s?\]\s$/,()=>{this.editor.execute("todoList"),this.editor.execute("checkTodoList")})}_addBasicStylesAutoformats(){const m=this.editor.commands;if(m.get("bold")){const r=Vh(this.editor,"bold");f2(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,r),f2(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,r)}if(m.get("italic")){const r=Vh(this.editor,"italic");f2(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,r),f2(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,r)}if(m.get("code")){const r=Vh(this.editor,"code");f2(this.editor,this,/(`)([^`]+)(`)$/g,r)}if(m.get("strikethrough")){const r=Vh(this.editor,"strikethrough");f2(this.editor,this,/(~~)([^~]+)(~~)$/g,r)}}_addHeadingAutoformats(){const m=this.editor.commands.get("heading");m&&m.modelElements.filter(r=>r.match(/^heading[1-6]$/)).forEach(r=>{const u=new RegExp(`^(#{${r[7]}})\\s$`);Fp(this.editor,this,u,()=>{if(!m.isEnabled||m.value===r)return!1;this.editor.execute("heading",{value:r})})})}_addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&Fp(this.editor,this,/^>\s$/,"blockQuote")}_addCodeBlockAutoformats(){const m=this.editor,r=m.model.document.selection;m.commands.get("codeBlock")&&Fp(m,this,/^```$/,()=>{if(r.getFirstPosition().parent.is("element","listItem"))return!1;this.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})})}_addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&Fp(this.editor,this,/^---$/,"horizontalLine")}},class extends lo{static get requires(){return[J5,Q5]}static get pluginName(){return"Bold"}},class extends lo{static get requires(){return[iy,B4]}static get pluginName(){return"Italic"}},class extends lo{static get requires(){return[$5,Fx]}static get pluginName(){return"BlockQuote"}},class extends lo{static get pluginName(){return"CKBox"}static get requires(){return[X5,qx]}},class extends lo{static get pluginName(){return"CKFinder"}static get requires(){return["Link","CKFinderUploadAdapter",Vx,Yx]}},class extends w_{constructor(){super(...arguments),this.token=null,this._tokens=new Map}static get pluginName(){return"CloudServices"}static get requires(){return[A9]}init(){return eT(this,null,function*(){const m=this.context.config.get("cloudServices")||{};for(const[c,u]of Object.entries(m))this[c]=u;if(!this.tokenUrl)return void(this.token=null);const r=this.context.plugins.get("CloudServicesCore");this.token=yield r.createToken(this.tokenUrl).init(),this._tokens.set(this.tokenUrl,this.token)})}registerTokenUrl(m){return eT(this,null,function*(){if(this._tokens.has(m))return this.getTokenFor(m);const r=this.context.plugins.get("CloudServicesCore"),c=yield r.createToken(m).init();return this._tokens.set(m,c),c})}getTokenFor(m){const r=this._tokens.get(m);if(!r)throw new nt("cloudservices-token-not-registered",this);return r}destroy(){super.destroy();for(const m of this._tokens.values())m.destroy()}},class extends lo{static get pluginName(){return"EasyImage"}static get requires(){return[sA,"ImageUpload"]}init(){const m=this.editor;m.plugins.has("ImageBlockEditing")||m.plugins.has("ImageInlineEditing")||Tt("easy-image-image-feature-missing",m)}},class extends lo{static get requires(){return[ab,Gx]}static get pluginName(){return"Heading"}},class extends lo{static get requires(){return[tC,hA]}static get pluginName(){return"Image"}},class extends lo{static get requires(){return[gA,hb]}static get pluginName(){return"ImageCaption"}},class extends lo{static get requires(){return[fC,sy]}static get pluginName(){return"ImageStyle"}},class extends lo{static get requires(){return[j0,Sd]}static get pluginName(){return"ImageToolbar"}afterInit(){const m=this.editor,r=m.t,c=m.plugins.get(j0),u=m.plugins.get("ImageUtils");var _;c.register("image",{ariaLabel:r("Image toolbar"),items:(_=m.config.get("image.toolbar")||[],_.map(x=>Wt(x)?x.name:x)),getRelatedElement:x=>u.getClosestSelectedImageWidget(x)})}},class extends lo{static get pluginName(){return"ImageUpload"}static get requires(){return[Af,bb,xA]}},class extends lo{static get pluginName(){return"Indent"}static get requires(){return[r6,s3]}},class extends lo{static get requires(){return[zb,FA,d6]}static get pluginName(){return"Link"}},class extends lo{static get requires(){return[tv,RA]}static get pluginName(){return"List"}},class extends lo{static get requires(){return[nv,$A,WA,V0]}static get pluginName(){return"MediaEmbed"}},ib,class extends lo{static get pluginName(){return"PasteFromOffice"}static get requires(){return[Np]}init(){const m=this.editor,r=m.plugins.get("ClipboardPipeline"),c=m.editing.view.document,u=[];u.push(new g(c)),u.push(new j(c)),u.push(new Ut(c)),r.on("inputTransformation",(_,x)=>{if(x._isTransformedWithPasteFromOffice||m.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;const M=x.dataTransfer.getData("text/html"),E=u.find(F=>F.isActive(M));E&&(x._parsedData||(x._parsedData=function be(m,r){const c=new DOMParser,u=Ht(Ht(function(F){const V="",dt=F.indexOf(V);if(dt<0)return F;const Zt=F.indexOf("