/*! For license information please see main.d7b8bc15.js.LICENSE.txt */ !function(){var e={26031:function(e){function t(e){return Promise.resolve().then((function(){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}))}t.keys=function(){return[]},t.resolve=t,t.id=26031,e.exports=t},76327:function(e,t,n){"use strict";n.r(t),n.d(t,{blue:function(){return x},cyan:function(){return C},geekblue:function(){return A},generate:function(){return f},gold:function(){return y},green:function(){return _},grey:function(){return Z},lime:function(){return w},magenta:function(){return S},orange:function(){return b},presetDarkPalettes:function(){return v},presetPalettes:function(){return h},presetPrimaryColors:function(){return p},purple:function(){return E},red:function(){return m},volcano:function(){return g},yellow:function(){return k}});var r=n(73669),i=n(47763),o=[{index:7,opacity:.15},{index:6,opacity:.25},{index:5,opacity:.3},{index:5,opacity:.45},{index:5,opacity:.65},{index:5,opacity:.85},{index:4,opacity:.9},{index:3,opacity:.95},{index:2,opacity:.97},{index:1,opacity:.98}];function a(e){var t=e.r,n=e.g,i=e.b,o=(0,r.py)(t,n,i);return{h:360*o.h,s:o.s,v:o.v}}function s(e){var t=e.r,n=e.g,i=e.b;return"#".concat((0,r.vq)(t,n,i,!1))}function l(e,t,n){var r=n/100;return{r:(t.r-e.r)*r+e.r,g:(t.g-e.g)*r+e.g,b:(t.b-e.b)*r+e.b}}function u(e,t,n){var r;return(r=Math.round(e.h)>=60&&Math.round(e.h)<=240?n?Math.round(e.h)-2*t:Math.round(e.h)+2*t:n?Math.round(e.h)+2*t:Math.round(e.h)-2*t)<0?r+=360:r>=360&&(r-=360),r}function c(e,t,n){return 0===e.h&&0===e.s?e.s:((r=n?e.s-.16*t:4===t?e.s+.16:e.s+.05*t)>1&&(r=1),n&&5===t&&r>.1&&(r=.1),r<.06&&(r=.06),Number(r.toFixed(2)));var r}function d(e,t,n){var r;return(r=n?e.v+.05*t:e.v-.15*t)>1&&(r=1),Number(r.toFixed(2))}function f(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[],r=(0,i.uA)(e),f=5;f>0;f-=1){var p=a(r),h=s((0,i.uA)({h:u(p,f,!0),s:c(p,f,!0),v:d(p,f,!0)}));n.push(h)}n.push(s(r));for(var v=1;v<=4;v+=1){var m=a(r),g=s((0,i.uA)({h:u(m,v),s:c(m,v),v:d(m,v)}));n.push(g)}return"dark"===t.theme?o.map((function(e){var r=e.index,o=e.opacity;return s(l((0,i.uA)(t.backgroundColor||"#141414"),(0,i.uA)(n[r]),100*o))})):n}var p={red:"#F5222D",volcano:"#FA541C",orange:"#FA8C16",gold:"#FAAD14",yellow:"#FADB14",lime:"#A0D911",green:"#52C41A",cyan:"#13C2C2",blue:"#1890FF",geekblue:"#2F54EB",purple:"#722ED1",magenta:"#EB2F96",grey:"#666666"},h={},v={};Object.keys(p).forEach((function(e){h[e]=f(p[e]),h[e].primary=h[e][5],v[e]=f(p[e],{theme:"dark",backgroundColor:"#141414"}),v[e].primary=v[e][5]}));var m=h.red,g=h.volcano,y=h.gold,b=h.orange,k=h.yellow,w=h.lime,_=h.green,C=h.cyan,x=h.blue,A=h.geekblue,E=h.purple,S=h.magenta,Z=h.grey},18605:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm193.5 301.7l-210.6 292a31.8 31.8 0 01-51.7 0L318.5 484.9c-3.8-5.3 0-12.7 6.5-12.7h46.9c10.2 0 19.9 4.9 25.9 13.3l71.2 98.8 157.2-218c6-8.3 15.6-13.3 25.9-13.3H699c6.5 0 10.3 7.4 6.5 12.7z"}}]},name:"check-circle",theme:"filled"}},38765:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M699 353h-46.9c-10.2 0-19.9 4.9-25.9 13.3L469 584.3l-71.2-98.8c-6-8.3-15.6-13.3-25.9-13.3H325c-6.5 0-10.3 7.4-6.5 12.7l124.6 172.8a31.8 31.8 0 0051.7 0l210.6-292c3.9-5.3.1-12.7-6.4-12.7z"}},{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"check-circle",theme:"outlined"}},82288:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm165.4 618.2l-66-.3L512 563.4l-99.3 118.4-66.1.3c-4.4 0-8-3.5-8-8 0-1.9.7-3.7 1.9-5.2l130.1-155L340.5 359a8.32 8.32 0 01-1.9-5.2c0-4.4 3.6-8 8-8l66.1.3L512 464.6l99.3-118.4 66-.3c4.4 0 8 3.5 8 8 0 1.9-.7 3.7-1.9 5.2L553.5 514l130 155c1.2 1.5 1.9 3.3 1.9 5.2 0 4.4-3.6 8-8 8z"}}]},name:"close-circle",theme:"filled"}},51609:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M685.4 354.8c0-4.4-3.6-8-8-8l-66 .3L512 465.6l-99.3-118.4-66.1-.3c-4.4 0-8 3.5-8 8 0 1.9.7 3.7 1.9 5.2l130.1 155L340.5 670a8.32 8.32 0 00-1.9 5.2c0 4.4 3.6 8 8 8l66.1-.3L512 564.4l99.3 118.4 66 .3c4.4 0 8-3.5 8-8 0-1.9-.7-3.7-1.9-5.2L553.5 515l130.1-155c1.2-1.4 1.8-3.3 1.8-5.2z"}},{tag:"path",attrs:{d:"M512 65C264.6 65 64 265.6 64 513s200.6 448 448 448 448-200.6 448-448S759.4 65 512 65zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}}]},name:"close-circle",theme:"outlined"}},95702:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M563.8 512l262.5-312.9c4.4-5.2.7-13.1-6.1-13.1h-79.8c-4.7 0-9.2 2.1-12.3 5.7L511.6 449.8 295.1 191.7c-3-3.6-7.5-5.7-12.3-5.7H203c-6.8 0-10.5 7.9-6.1 13.1L459.4 512 196.9 824.9A7.95 7.95 0 00203 838h79.8c4.7 0 9.2-2.1 12.3-5.7l216.5-258.1 216.5 258.1c3 3.6 7.5 5.7 12.3 5.7h79.8c6.8 0 10.5-7.9 6.1-13.1L563.8 512z"}}]},name:"close",theme:"outlined"}},52003:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm-32 232c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V296zm32 440a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"exclamation-circle",theme:"filled"}},89097:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 688a48 48 0 1096 0 48 48 0 10-96 0zm24-112h48c4.4 0 8-3.6 8-8V296c0-4.4-3.6-8-8-8h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8z"}}]},name:"exclamation-circle",theme:"outlined"}},71815:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm32 664c0 4.4-3.6 8-8 8h-48c-4.4 0-8-3.6-8-8V456c0-4.4 3.6-8 8-8h48c4.4 0 8 3.6 8 8v272zm-32-344a48.01 48.01 0 010-96 48.01 48.01 0 010 96z"}}]},name:"info-circle",theme:"filled"}},72426:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M512 64C264.6 64 64 264.6 64 512s200.6 448 448 448 448-200.6 448-448S759.4 64 512 64zm0 820c-205.4 0-372-166.6-372-372s166.6-372 372-372 372 166.6 372 372-166.6 372-372 372z"}},{tag:"path",attrs:{d:"M464 336a48 48 0 1096 0 48 48 0 10-96 0zm72 112h-48c-4.4 0-8 3.6-8 8v272c0 4.4 3.6 8 8 8h48c4.4 0 8-3.6 8-8V456c0-4.4-3.6-8-8-8z"}}]},name:"info-circle",theme:"outlined"}},94156:function(e,t){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default={icon:{tag:"svg",attrs:{viewBox:"0 0 1024 1024",focusable:"false"},children:[{tag:"path",attrs:{d:"M988 548c-19.9 0-36-16.1-36-36 0-59.4-11.6-117-34.6-171.3a440.45 440.45 0 00-94.3-139.9 437.71 437.71 0 00-139.9-94.3C629 83.6 571.4 72 512 72c-19.9 0-36-16.1-36-36s16.1-36 36-36c69.1 0 136.2 13.5 199.3 40.3C772.3 66 827 103 874 150c47 47 83.9 101.8 109.7 162.7 26.7 63.1 40.2 130.2 40.2 199.3.1 19.9-16 36-35.9 36z"}}]},name:"loading",theme:"outlined"}},46152:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(28525))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},31827:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(46955))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},79175:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(51100))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},70824:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(91096))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},59242:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(3369))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},85746:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(77751))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},91412:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(17070))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},60359:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(71719))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},54340:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(74671))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},78600:function(e,t,n){"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=(r=n(26618))&&r.__esModule?r:{default:r};t.default=i,e.exports=i},32225:function(e,t,n){"use strict";var r=n(64836),i=n(75263);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=r(n(42122)),a=r(n(27424)),s=r(n(38416)),l=r(n(70215)),u=i(n(72791)),c=r(n(81694)),d=r(n(24451)),f=r(n(80344)),p=n(63106),h=n(71673),v=["className","icon","spin","rotate","tabIndex","onClick","twoToneColor"];(0,p.setTwoToneColor)("#1890ff");var m=u.forwardRef((function(e,t){var n,r=e.className,i=e.icon,p=e.spin,m=e.rotate,g=e.tabIndex,y=e.onClick,b=e.twoToneColor,k=(0,l.default)(e,v),w=u.useContext(d.default).prefixCls,_=void 0===w?"anticon":w,C=(0,c.default)(_,(n={},(0,s.default)(n,"".concat(_,"-").concat(i.name),!!i.name),(0,s.default)(n,"".concat(_,"-spin"),!!p||"loading"===i.name),n),r),x=g;void 0===x&&y&&(x=-1);var A=m?{msTransform:"rotate(".concat(m,"deg)"),transform:"rotate(".concat(m,"deg)")}:void 0,E=(0,h.normalizeTwoToneColors)(b),S=(0,a.default)(E,2),Z=S[0],M=S[1];return u.createElement("span",(0,o.default)((0,o.default)({role:"img","aria-label":i.name},k),{},{ref:t,tabIndex:x,onClick:y,className:C}),u.createElement(f.default,{icon:i,primaryColor:Z,secondaryColor:M,style:A}))}));m.displayName="AntdIcon",m.getTwoToneColor=p.getTwoToneColor,m.setTwoToneColor=p.setTwoToneColor;var g=m;t.default=g},24451:function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=(0,n(72791).createContext)({});t.default=r},80344:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var i=r(n(70215)),o=r(n(42122)),a=n(71673),s=["icon","className","onClick","style","primaryColor","secondaryColor"],l={primaryColor:"#333",secondaryColor:"#E6E6E6",calculated:!1};var u=function(e){var t=e.icon,n=e.className,r=e.onClick,u=e.style,c=e.primaryColor,d=e.secondaryColor,f=(0,i.default)(e,s),p=l;if(c&&(p={primaryColor:c,secondaryColor:d||(0,a.getSecondaryColor)(c)}),(0,a.useInsertStyles)(),(0,a.warning)((0,a.isIconDefinition)(t),"icon should be icon definiton, but got ".concat(t)),!(0,a.isIconDefinition)(t))return null;var h=t;return h&&"function"===typeof h.icon&&(h=(0,o.default)((0,o.default)({},h),{},{icon:h.icon(p.primaryColor,p.secondaryColor)})),(0,a.generate)(h.icon,"svg-".concat(h.name),(0,o.default)({className:n,onClick:r,style:u,"data-icon":h.name,width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true"},f))};u.displayName="IconReact",u.getTwoToneColors=function(){return(0,o.default)({},l)},u.setTwoToneColors=function(e){var t=e.primaryColor,n=e.secondaryColor;l.primaryColor=t,l.secondaryColor=n||(0,a.getSecondaryColor)(t),l.calculated=!!n};var c=u;t.default=c},63106:function(e,t,n){"use strict";var r=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.setTwoToneColor=function(e){var t=(0,a.normalizeTwoToneColors)(e),n=(0,i.default)(t,2),r=n[0],s=n[1];return o.default.setTwoToneColors({primaryColor:r,secondaryColor:s})},t.getTwoToneColor=function(){var e=o.default.getTwoToneColors();if(!e.calculated)return e.primaryColor;return[e.primaryColor,e.secondaryColor]};var i=r(n(27424)),o=r(n(80344)),a=n(71673)},28525:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(18605)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CheckCircleFilled";var c=a.forwardRef(u);t.default=c},46955:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(38765)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CheckCircleOutlined";var c=a.forwardRef(u);t.default=c},51100:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(82288)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CloseCircleFilled";var c=a.forwardRef(u);t.default=c},91096:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(51609)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CloseCircleOutlined";var c=a.forwardRef(u);t.default=c},3369:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(95702)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="CloseOutlined";var c=a.forwardRef(u);t.default=c},77751:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(52003)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="ExclamationCircleFilled";var c=a.forwardRef(u);t.default=c},17070:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(89097)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="ExclamationCircleOutlined";var c=a.forwardRef(u);t.default=c},71719:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(71815)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="InfoCircleFilled";var c=a.forwardRef(u);t.default=c},74671:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(72426)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="InfoCircleOutlined";var c=a.forwardRef(u);t.default=c},26618:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var o=i(n(42122)),a=r(n(72791)),s=i(n(94156)),l=i(n(32225)),u=function(e,t){return a.createElement(l.default,(0,o.default)((0,o.default)({},e),{},{ref:t,icon:s.default}))};u.displayName="LoadingOutlined";var c=a.forwardRef(u);t.default=c},71673:function(e,t,n){"use strict";var r=n(75263),i=n(64836);Object.defineProperty(t,"__esModule",{value:!0}),t.warning=function(e,t){(0,u.default)(e,"[@ant-design/icons] ".concat(t))},t.isIconDefinition=function(e){return"object"===(0,a.default)(e)&&"string"===typeof e.name&&"string"===typeof e.theme&&("object"===(0,a.default)(e.icon)||"function"===typeof e.icon)},t.normalizeAttrs=f,t.generate=function e(t,n,r){if(!r)return l.default.createElement(t.tag,(0,o.default)({key:n},f(t.attrs)),(t.children||[]).map((function(r,i){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(i))})));return l.default.createElement(t.tag,(0,o.default)((0,o.default)({key:n},f(t.attrs)),r),(t.children||[]).map((function(r,i){return e(r,"".concat(n,"-").concat(t.tag,"-").concat(i))})))},t.getSecondaryColor=function(e){return(0,s.generate)(e)[0]},t.normalizeTwoToneColors=function(e){if(!e)return[];return Array.isArray(e)?e:[e]},t.useInsertStyles=t.iconStyles=t.svgBaseProps=void 0;var o=i(n(42122)),a=i(n(18698)),s=n(76327),l=r(n(72791)),u=i(n(37973)),c=n(90343),d=i(n(24451));function f(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Object.keys(e).reduce((function(t,n){var r=e[n];if("class"===n)t.className=r,delete t.class;else t[n]=r;return t}),{})}t.svgBaseProps={width:"1em",height:"1em",fill:"currentColor","aria-hidden":"true",focusable:"false"};var p="\n.anticon {\n display: inline-block;\n color: inherit;\n font-style: normal;\n line-height: 0;\n text-align: center;\n text-transform: none;\n vertical-align: -0.125em;\n text-rendering: optimizeLegibility;\n -webkit-font-smoothing: antialiased;\n -moz-osx-font-smoothing: grayscale;\n}\n\n.anticon > * {\n line-height: 1;\n}\n\n.anticon svg {\n display: inline-block;\n}\n\n.anticon::before {\n display: none;\n}\n\n.anticon .anticon-icon {\n display: block;\n}\n\n.anticon[tabindex] {\n cursor: pointer;\n}\n\n.anticon-spin::before,\n.anticon-spin {\n display: inline-block;\n -webkit-animation: loadingCircle 1s infinite linear;\n animation: loadingCircle 1s infinite linear;\n}\n\n@-webkit-keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n\n@keyframes loadingCircle {\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n";t.iconStyles=p;t.useInsertStyles=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:p,t=(0,l.useContext)(d.default),n=t.csp;(0,l.useEffect)((function(){(0,c.updateCSS)(e,"@ant-design-icons",{prepend:!0,csp:n})}),[])}},52443:function(e,t,n){e=n.nmd(e);var r=n(13344).default,i=n(17156).default,o=n(38416).default,a=n(42122).default,s=n(41588).default,l=n(73808).default,u=n(3515).default,c=n(94993).default,d=n(66115).default,f=n(17061).default,p=n(27424).default,h=n(74704).default,v=n(861).default,m=n(61655).default,g=n(26389).default,y=n(33496).default,b=n(89728).default,k=n(56690).default;!function(e){var t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"%0 of %1":"%0 of %1",Aquamarine:"Aquamarine",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold","Break text":"Break text","Bulleted List":"Bulleted List",Cancel:"Cancel","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","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",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.","Decrease indent":"Decrease indent","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Downloadable:"Downloadable","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","Full size image":"Full size image",Green:"Green",Grey:"Grey","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","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent","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 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",Italic:"Italic","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link URL":"Link URL","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","Numbered List":"Numbered List","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",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Rich Text Editor":"Rich Text Editor","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","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically","Table toolbar":"Table toolbar","Text alternative":"Text alternative","The URL must not be empty.":"The URL must not be empty.","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.","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on",Turquoise:"Turquoise",Undo:"Undo",Unlink:"Unlink","Upload failed":"Upload failed","Upload in progress":"Upload in progress",White:"White","Widget toolbar":"Widget toolbar","Wrap text":"Wrap text",Yellow:"Yellow"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),self,e.exports=function(){"use strict";var w={3062:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},903:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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}: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}',"",{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,CCzBF,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,CA2DF,kEACC,gGACD,CAKA,gDACC,OAAS,CACT,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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 * Copyright (c) 2003-2022, 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-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(var(--ck-clipboard-drop-target-dot-height) * -.5);\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// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\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: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\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\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\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'],sourceRoot:""}]);var s=a},3143:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},4717:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},9315:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},8733:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},3508:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;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-inline.ck-widget_selected,.ck.ck-editor__editable .image.ck-widget_selected{z-index:1}.ck.ck-editor__editable .image-inline.ck-widget_selected ::selection{display:none}.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,iBAuBD,CAbC,uBAEC,aAAc,CAGd,aAAc,CAGd,cAAe,CAGf,cACD,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,CAWA,2GACC,SAUD,CAHC,qEACC,YACD,CAOA,0FACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, 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\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\n\t/*\n\t * Make sure the selected inline image always stays on top of its siblings.\n\t * See https://github.com/ckeditor/ckeditor5/issues/9108.\n\t */\n\t& .image.ck-widget_selected {\n\t\tz-index: 1;\n\t}\n\n\t& .image-inline.ck-widget_selected {\n\t\tz-index: 1;\n\n\t\t/*\n\t\t * Make sure the native browser selection style is not displayed.\n\t\t * Inline image widgets have their own styles for the selected state and\n\t\t * leaving this up to the browser is asking for a visual collision.\n\t\t */\n\t\t& ::selection {\n\t\t\tdisplay: none;\n\t\t}\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:""}]);var s=a},2640:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},5083:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},4036:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},3773:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},3689:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},1905:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},9773:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},2347:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},7754:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},4652:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},7442:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},9292:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},1613:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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{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,qCACC,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-2022, 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-2022, 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\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:""}]);var s=a},6306:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},3881:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.id,":root{--ck-color-table-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-table-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,6DACD,CAKE,8QAGC,wDAAyD,CAKzD,iBAAkB,CAClB,8CAA+C,CAC/C,mBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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-table-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-table-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:""}]);var s=a},6945:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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:""}]);var s=a},4906:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},5332:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},6781:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-table__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,4DACC,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-2022, 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-2022, 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-table__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:""}]);var s=a},5485:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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}","",{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,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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-2022, 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\t\t\t\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',"/*\n * Copyright (c) 2003-2022, 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-2022, 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-2022, 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:""}]);var s=a},3949:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},7686:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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_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}[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,CASA,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCC7EA,eDuFA,CAVA,qHCzEC,qCDmFD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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-2022, 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/* 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@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-2022, 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:""}]);var s=a},7339:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},9688:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-base-foreground)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_s]:after{border-top-color:var(--ck-color-base-foreground)}","",{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,mDACD,CAIA,gEACC,gDACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, 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-base-foreground);\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-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, 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-2022, 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-2022, 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:""}]);var s=a},8847:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.id,".ck.ck-form__header{align-items:center;display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}: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,6BACD,CCNA,MACC,4BACD,CAEA,oBAIC,mDAAoD,CAFpD,mCAAoC,CACpC,wCAAyC,CAFzC,uDAQD,CAHC,4CACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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","/*\n * Copyright (c) 2003-2022, 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:""}]);var s=a},6574:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},4879:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},3662:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},2577:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},1046:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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.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,uBAGC,sCAAuC,CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, 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-2022, 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-2022, 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.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, 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:""}]);var s=a},8793:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},4650:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},7676:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},5868:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},6764:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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:""}]);var s=a},9695:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},5542:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-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,eDoGD,CAvGA,qECOE,qCDgGF,CAvGA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAmGD,CAhGC,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,CAjGF,qCAqGE,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-2022, 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-2022, 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-2022, 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@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-2022, 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:""}]);var s=a},3332:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-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{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,8DAA+D,CAE/D,kCAAmC,CDPnC,mBAAoB,CAEpB,qCACD,CCMC,kDAGC,kCAAmC,CAFnC,cAAe,CACf,eAED,CAbD,gCAgBC,eAMD,CAHC,uCACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, 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-2022, 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-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/* 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:""}]);var s=a},4793:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-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-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,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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},3488:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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-2022, 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-2022, 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:""}]);var s=a},8506:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},4921:function(e,t,n){n.d(t,{Z:function(){return s}});var r=n(1799),i=n.n(r),o=n(2609),a=n.n(o)()(i());a.push([e.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-2022, 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-2022, 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:""}]);var s=a},2609:function(e){e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=e(t);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,r){"string"==typeof e&&(e=[[null,e,""]]);var i={};if(r)for(var o=0;oe.length)&&(t=e.length);for(var n=0,r=new Array(t);n>>0,t=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,r=4294967296*Math.random()>>>0;return"e"+Z[e>>0&255]+Z[e>>8&255]+Z[e>>16&255]+Z[e>>24&255]+Z[t>>0&255]+Z[t>>8&255]+Z[t>>16&255]+Z[t>>24&255]+Z[n>>0&255]+Z[n>>8&255]+Z[n>>16&255]+Z[n>>24&255]+Z[r>>0&255]+Z[r>>8&255]+Z[r>>16&255]+Z[r>>24&255]}var T={get:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";return"number"!=typeof e?this[e]||this.normal:e},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function I(e,t){for(var n=T.get(t.priority),r=0;r1?n-1:0),a=1;a3&&void 0!==arguments[3]?arguments[3]:{};this[F]||(this[F]={});var a=this[F];q(e)||H(e);var s=q(e);(r=a[s])||(r=a[s]={emitter:e,callbacks:{}}),(i=r.callbacks[t])||(i=r.callbacks[t]=[]),i.push(n),function(e,t,n,r,i){t._addEventListener?t._addEventListener(n,r,i):e._addEventListener.call(t,n,r,i)}(this,e,t,n,o)}},{key:"stopListening",value:function(e,t,n){var r=this[F],i=e&&q(e),o=r&&i?r[i]:void 0,a=o&&t?o.callbacks[t]:void 0;if(!(!r||e&&!o||t&&!a))if(n)Y(this,e,t,n),-1!==a.indexOf(n)&&(1===a.length?delete o.callbacks[t]:Y(this,e,t,n));else if(a){for(;n=a.pop();)Y(this,e,t,n);delete o.callbacks[t]}else if(o){for(t in o.callbacks)this.stopListening(e,t);delete r[i]}else{for(i in r)this.stopListening(r[i].emitter);delete this[F]}}},{key:"fire",value:function(e){try{for(var t=e instanceof S?e:new S(this,e),n=t.name,r=$(this,n),i=arguments.length,o=new Array(i>1?i-1:0),a=1;a-1?$(e,t.substr(0,t.lastIndexOf(":"))):null}function K(e,t,n){var r,i=h(e);try{for(i.s();!(r=i.n()).done;){var o=p(r.value,2),a=o[0],s=o[1];s?"function"==typeof s&&(s=s(t.name)):s=t.name;var l=new S(t.source,s);l.path=v(t.path),a.fire.apply(a,[l].concat(v(n)))}}catch(u){i.e(u)}finally{i.f()}}function Y(e,t,n,r){t._removeEventListener?t._removeEventListener(n,r):e._removeEventListener.call(t,n,r)}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(e){V[e]=U.prototype[e]}));var J=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},Q=Symbol("observableProperties"),X=Symbol("boundObservables"),ee=Symbol("boundProperties"),te=Symbol("decoratedMethods"),ne=Symbol("decoratedOriginal");function re(e){return function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"set",value:function(e,t){var n=this;if(J(e))Object.keys(e).forEach((function(t){n.set(t,e[t])}),this);else{oe(this);var r=this[Q];if(e in this&&!r.has(e))throw new P("observable-set-cannot-override",this);Object.defineProperty(this,e,{enumerable:!0,configurable:!0,get:function(){return r.get(e)},set:function(t){var n=r.get(e),i=this.fire("set:".concat(e),e,t,n);void 0===i&&(i=t),n===i&&r.has(e)||(r.set(e,i),this.fire("change:".concat(e),e,i,n))}}),this[e]=t}}},{key:"bind",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;r1)throw new P("observable-bind-to-no-callback",this);if(i>1&&n.callback)throw new P("observable-bind-to-extra-callback",this);n.to.forEach((function(e){if(e.properties.length&&e.properties.length!==i)throw new P("observable-bind-to-properties-length",t);e.properties.length||(e.properties=t._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(r[0]).callback=n.callback),e=this._observable,this._to.forEach((function(t){var n,r=e[X];r.get(t.observable)||e.listenTo(t.observable,"change",(function(i,o){(n=r.get(t.observable)[o])&&n.forEach((function(t){ue(e,t.property)}))}))})),function(e){var t;e._bindings.forEach((function(n,r){e._to.forEach((function(i){t=i.properties[n.callback?0:e._bindProperties.indexOf(r)],n.to.push([i.observable,t]),function(e,t,n,r){var i=e[X],o=i.get(n),a=o||{};a[r]||(a[r]=new Set),a[r].add(t),o||i.set(n,a)}(e._observable,n,i.observable,t)}))}))}(this),this._bindProperties.forEach((function(e){ue(t._observable,e)}))}function se(e,t,n){if(this._bindings.size>1)throw new P("observable-bind-to-many-not-one-binding",this);this.to.apply(this,v(function(e,t){var n=e.map((function(e){return[e,t]}));return Array.prototype.concat.apply([],n)}(e,t)).concat([n]))}function le(e){return e.every((function(e){return"string"==typeof e}))}function ue(e,t){var n,r=e[ee].get(t);n=r.callback?r.callback.apply(e,r.to.map((function(e){return e[0][e[1]]}))):(n=r.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(e,t)?e[t]=n:e.set(t,n)}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(e){re[e]=ie.prototype[e]}));var ce=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).editor=e,r.set("isEnabled",!0),r._disableStack=new Set,r}return b(n,[{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",de,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",de),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),n}(ie);function de(e){e.return=!1,e.stop()}var fe=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).editor=e,r.set("value",void 0),r.set("isEnabled",!1),r._affectsData=!0,r._disableStack=new Set,r.decorate("execute"),r.listenTo(r.editor.model.document,"change",(function(){r.refresh()})),r.on("execute",(function(e){r.isEnabled||e.stop()}),{priority:"high"}),r.listenTo(e,"change:isReadOnly",(function(e,t,n){n&&r.affectsData?r.forceDisabled("readOnlyMode"):r.clearForceDisabled("readOnlyMode")})),r}return b(n,[{key:"affectsData",get:function(){return this._affectsData},set:function(e){this._affectsData=e}},{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(e){this._disableStack.add(e),1==this._disableStack.size&&(this.on("set:isEnabled",pe,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(e){this._disableStack.delete(e),0==this._disableStack.size&&(this.off("set:isEnabled",pe),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),n}(ie);function pe(e){e.return=!1,e.stop()}var he=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._childCommandsDefinitions=[],r}return b(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var e=this._getFirstEnabledCommand(),t=arguments.length,n=new Array(t),r=0;r1&&void 0!==arguments[1]?arguments[1]:{};I(this._childCommandsDefinitions,{command:e,priority:n.priority||"normal"}),e.on("change:isEnabled",(function(){return t._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){var e=this._childCommandsDefinitions.find((function(e){return e.command.isEnabled}));return e&&e.command}}]),n}(fe),ve="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,me="object"==typeof self&&self&&self.Object===Object&&self,ge=ve||me||Function("return this")(),ye=ge.Symbol,be=Object.prototype,ke=be.hasOwnProperty,we=be.toString,_e=ye?ye.toStringTag:void 0,Ce=function(e){var t=ke.call(e,_e),n=e[_e];try{e[_e]=void 0;var r=!0}catch(e){}var i=we.call(e);return r&&(t?e[_e]=n:delete e[_e]),i},xe=Object.prototype.toString,Ae=function(e){return xe.call(e)},Ee=ye?ye.toStringTag:void 0,Se=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":Ee&&Ee in Object(e)?Ce(e):Ae(e)},Ze=function(e,t){return function(n){return e(t(n))}},Me=Ze(Object.getPrototypeOf,Object),Te=function(e){return null!=e&&"object"==typeof e},Ie=Function.prototype,Pe=Object.prototype,De=Ie.toString,Oe=Pe.hasOwnProperty,Ne=De.call(Object),Re=function(e){if(!Te(e)||"[object Object]"!=Se(e))return!1;var t=Me(e);if(null===t)return!0;var n=Oe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&De.call(n)==Ne},je=function(){this.__data__=[],this.size=0},Le=function(e,t){return e===t||e!=e&&t!=t},Fe=function(e,t){for(var n=e.length;n--;)if(Le(e[n][0],t))return n;return-1},ze=Array.prototype.splice,Be=function(e){var t=this.__data__,n=Fe(t,e);return!(n<0)&&(n==t.length-1?t.pop():ze.call(t,n,1),--this.size,!0)},Ve=function(e){var t=this.__data__,n=Fe(t,e);return n<0?void 0:t[n][1]},Ue=function(e){return Fe(this.__data__,e)>-1},He=function(e,t){var n=this.__data__,r=Fe(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this};function qe(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e-1&&e%1==0&&e<=9007199254740991},nn={};nn["[object Float32Array]"]=nn["[object Float64Array]"]=nn["[object Int8Array]"]=nn["[object Int16Array]"]=nn["[object Int32Array]"]=nn["[object Uint8Array]"]=nn["[object Uint8ClampedArray]"]=nn["[object Uint16Array]"]=nn["[object Uint32Array]"]=!0,nn["[object Arguments]"]=nn["[object Array]"]=nn["[object ArrayBuffer]"]=nn["[object Boolean]"]=nn["[object DataView]"]=nn["[object Date]"]=nn["[object Error]"]=nn["[object Function]"]=nn["[object Map]"]=nn["[object Number]"]=nn["[object Object]"]=nn["[object RegExp]"]=nn["[object Set]"]=nn["[object String]"]=nn["[object WeakMap]"]=!1;var rn=function(e){return Te(e)&&tn(e.length)&&!!nn[Se(e)]},on=function(e){return function(t){return e(t)}},an=t&&!t.nodeType&&t,sn=an&&e&&!e.nodeType&&e,ln=sn&&sn.exports===an&&ve.process,un=function(){try{return sn&&sn.require&&sn.require("util").types||ln&&ln.binding&&ln.binding("util")}catch(E){}}(),cn=un&&un.isTypedArray,dn=cn?on(cn):rn,fn=Object.prototype.hasOwnProperty,pn=function(e,t){var n=Gt(e),r=!n&&Wt(e),i=!n&&!r&&Qt(e),o=!n&&!r&&!i&&dn(e),a=n||r||i||o,s=a?Bt(e.length,String):[],l=s.length;for(var u in e)!t&&!fn.call(e,u)||a&&("length"==u||i&&("offset"==u||"parent"==u)||o&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||en(u,l))||s.push(u);return s},hn=Object.prototype,vn=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||hn)},mn=Ze(Object.keys,Object),gn=Object.prototype.hasOwnProperty,yn=function(e){if(!vn(e))return mn(e);var t=[];for(var n in Object(e))gn.call(e,n)&&"constructor"!=n&&t.push(n);return t},bn=function(e){return null!=e&&tn(e.length)&&!Je(e)},kn=function(e){return bn(e)?pn(e):yn(e)},wn=function(e,t){return e&&zt(t,kn(t),e)},_n=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t},Cn=Object.prototype.hasOwnProperty,xn=function(e){if(!J(e))return _n(e);var t=vn(e),n=[];for(var r in e)("constructor"!=r||!t&&Cn.call(e,r))&&n.push(r);return n},An=function(e){return bn(e)?pn(e,!0):xn(e)},En=function(e,t){return e&&zt(t,An(t),e)},Sn=t&&!t.nodeType&&t,Zn=Sn&&e&&!e.nodeType&&e,Mn=Zn&&Zn.exports===Sn?ge.Buffer:void 0,Tn=Mn?Mn.allocUnsafe:void 0,In=function(e,t){if(t)return e.slice();var n=e.length,r=Tn?Tn(n):new e.constructor(n);return e.copy(r),r},Pn=function(e,t){var n=-1,r=e.length;for(t||(t=Array(r));++n3&&void 0!==arguments[3]&&arguments[3];if(Re(t))this._setObjectToTarget(e,t,r);else{var i=t.split(".");t=i.pop();var o,a=h(i);try{for(a.s();!(o=a.n()).done;){var s=o.value;Re(e[s])||(e[s]={}),e=e[s]}}catch(l){a.e(l)}finally{a.f()}if(Re(n))return Re(e[t])||(e[t]={}),e=e[t],void this._setObjectToTarget(e,n,r);r&&void 0!==e[t]||(e[t]=n)}}},{key:"_getFromSource",value:function(e,t){var n=t.split(".");t=n.pop();var r,i=h(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;if(!Re(e[o])){e=null;break}e=e[o]}}catch(a){i.e(a)}finally{i.f()}return e?Rr(e[t]):void 0}},{key:"_setObjectToTarget",value:function(e,t,n){var r=this;Object.keys(t).forEach((function(i){r._setToTarget(e,i,t[i],n)}))}}]),e}();function Rr(e){return Dr(e,jr)}function jr(e){return Or(e)?e:void 0}function Lr(e){return!(!e||!e[Symbol.iterator])}var Fr,zr=function(e,t){m(r,e);var n=g(r);function r(){var e,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,r),e=n.call(this);var o=Lr(t);if(o||(i=t),e._items=[],e._itemMap=new Map,e._idProperty=i.idProperty||"id",e._bindToExternalToInternalMap=new WeakMap,e._bindToInternalToExternalMap=new WeakMap,e._skippedIndexesFromExternal=[],o){var a,s=h(t);try{for(s.s();!(a=s.n()).done;){var l=a.value;e._items.push(l),e._itemMap.set(e._getItemIdBeforeAdding(l),l)}}catch(u){s.e(u)}finally{s.f()}}return e}return b(r,[{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}},{key:"add",value:function(e,t){return this.addMany([e],t)}},{key:"addMany",value:function(e,t){if(void 0===t)t=this._items.length;else if(t>this._items.length||t<0)throw new P("collection-add-item-invalid-index",this);var n,r=0,i=h(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=this._getItemIdBeforeAdding(o),s=t+r;this._items.splice(s,0,o),this._itemMap.set(a,o),this.fire("add",o,s),r++}}catch(l){i.e(l)}finally{i.f()}return this.fire("change",{added:e,removed:[],index:t}),this}},{key:"get",value:function(e){var t;if("string"==typeof e)t=this._itemMap.get(e);else{if("number"!=typeof e)throw new P("collection-get-invalid-arg",this);t=this._items[e]}return t||null}},{key:"has",value:function(e){if("string"==typeof e)return this._itemMap.has(e);var t=e[this._idProperty];return t&&this._itemMap.has(t)}},{key:"getIndex",value:function(e){var t;return(t="string"==typeof e?this._itemMap.get(e):e)?this._items.indexOf(t):-1}},{key:"remove",value:function(e){var t=this._remove(e),n=p(t,2),r=n[0],i=n[1];return this.fire("change",{added:[],removed:[r],index:i}),r}},{key:"map",value:function(e,t){return this._items.map(e,t)}},{key:"find",value:function(e,t){return this._items.find(e,t)}},{key:"filter",value:function(e,t){return this._items.filter(e,t)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var e=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:e,index:0})}},{key:"bindTo",value:function(e){var t=this;if(this._bindToCollection)throw new P("collection-bind-to-rebind",this);return this._bindToCollection=e,{as:function(e){t._setUpBindToBinding((function(t){return new e(t)}))},using:function(e){"function"==typeof e?t._setUpBindToBinding(e):t._setUpBindToBinding((function(t){return t[e]}))}}}},{key:"_setUpBindToBinding",value:function(e){var t,n=this,r=this._bindToCollection,i=function(t,i,o){var a=r._bindToCollection==n,s=r._bindToInternalToExternalMap.get(i);if(a&&s)n._bindToExternalToInternalMap.set(i,s),n._bindToInternalToExternalMap.set(s,i);else{var l=e(i);if(!l)return void n._skippedIndexesFromExternal.push(o);var u,c=o,d=h(n._skippedIndexesFromExternal);try{for(d.s();!(u=d.n()).done;)o>u.value&&c--}catch(m){d.e(m)}finally{d.f()}var f,p=h(r._skippedIndexesFromExternal);try{for(p.s();!(f=p.n()).done;)c>=f.value&&c++}catch(m){p.e(m)}finally{p.f()}n._bindToExternalToInternalMap.set(i,l),n._bindToInternalToExternalMap.set(l,i),n.add(l,c);for(var v=0;vt&&e.push(t),e}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(e){var t,n=this._idProperty;if(n in e){if("string"!=typeof(t=e[n]))throw new P("collection-add-invalid-id",this);if(this.get(t))throw new P("collection-add-item-already-exists",this)}else e[n]=t=M();return t}},{key:"_remove",value:function(e){var t,n,r,i=!1,o=this._idProperty;if("string"==typeof e?(n=e,i=!(r=this._itemMap.get(n)),r&&(t=this._items.indexOf(r))):"number"==typeof e?(t=e,i=!(r=this._items[t]),r&&(n=r[o])):(n=(r=e)[o],i=-1==(t=this._items.indexOf(r))||!this._itemMap.get(n)),i)throw new P("collection-remove-404",this);this._items.splice(t,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(r);return this._bindToInternalToExternalMap.delete(r),this._bindToExternalToInternalMap.delete(a),this.fire("remove",r,t),[r,t]}},{key:t,value:function(){return this._items[Symbol.iterator]()}}]),r}(U,Symbol.iterator),Br=function(e,t){m(r,e);var n=g(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];k(this,r),(t=n.call(this))._context=e,t._plugins=new Map,t._availablePlugins=new Map;var a,s=h(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;l.pluginName&&t._availablePlugins.set(l.pluginName,l)}}catch(m){s.e(m)}finally{s.f()}t._contextPlugins=new Map;var u,c=h(o);try{for(c.s();!(u=c.n()).done;){var d=p(u.value,2),f=d[0],v=d[1];t._contextPlugins.set(f,v),t._contextPlugins.set(v,f),f.pluginName&&t._availablePlugins.set(f.pluginName,f)}}catch(m){c.e(m)}finally{c.f()}return t}return b(r,[{key:t,value:f().mark((function e(){var t,n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h(this._plugins),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=11;break}if(r=n.value,e.t0="function"==typeof r[0],!e.t0){e.next=9;break}return e.next=9,r;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),t.e(e.t1);case 16:return e.prev=16,t.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"get",value:function(e){var t=this._plugins.get(e);if(!t){var n=e;throw"function"==typeof e&&(n=e.pluginName||e.name),new P("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return t}},{key:"has",value:function(e){return this._plugins.has(e)}},{key:"init",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],r=this,i=this._context;!function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;t.forEach((function(t){s(t)&&(n.has(t)||(n.add(t),t.pluginName&&!r._availablePlugins.has(t.pluginName)&&r._availablePlugins.set(t.pluginName,t),t.requires&&e(t.requires,n)))}))}(e),d(e);var o=v(function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return t.map((function(e){return s(e)?e:r._availablePlugins.get(e)})).reduce((function(t,r){return n.has(r)?t:(n.add(r),r.requires&&(d(r.requires,r),e(r.requires,n).forEach((function(e){return t.add(e)}))),t.add(r))}),new Set)}(e.filter((function(e){return!u(e,t)}))));!function(e,t){var n,i=h(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if("function"!=typeof o)throw new P("plugincollection-replace-plugin-invalid-type",null,{pluginItem:o});var a=o.pluginName;if(!a)throw new P("plugincollection-replace-plugin-missing-name",null,{pluginItem:o});if(o.requires&&o.requires.length)throw new P("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:a});var s=r._availablePlugins.get(a);if(!s)throw new P("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:a});var l=e.indexOf(s);if(-1===l){if(r._contextPlugins.has(s))return;throw new P("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:a})}if(s.requires&&s.requires.length)throw new P("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:a});e.splice(l,1,o),r._availablePlugins.set(a,o)}}catch(u){i.e(u)}finally{i.f()}}(o,n);var a=function(e){return e.map((function(e){var t=r._contextPlugins.get(e);return t=t||new e(i),r._add(e,t),t}))}(o);return f(a,"init").then((function(){return f(a,"afterInit")})).then((function(){return a}));function s(e){return"function"==typeof e}function l(e){return s(e)&&e.isContextPlugin}function u(e,t){return t.some((function(t){return t===e||c(e)===t||c(t)===e}))}function c(e){return s(e)?e.pluginName||e.name:e}function d(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;e.map((function(e){return s(e)?e:r._availablePlugins.get(e)||e})).forEach((function(e){!function(e,t){if(!s(e)){if(t)throw new P("plugincollection-soft-required",i,{missingPlugin:e,requiredBy:c(t)});throw new P("plugincollection-plugin-not-found",i,{plugin:e})}}(e,n),function(e,t){if(l(t)&&!l(e))throw new P("plugincollection-context-required",i,{plugin:c(e),requiredBy:c(t)})}(e,n),function(e,n){if(n&&u(e,t))throw new P("plugincollection-required",i,{plugin:c(e),requiredBy:c(n)})}(e,n)}))}function f(e,t){return e.reduce((function(e,n){return n[t]?r._contextPlugins.has(n)?e:e.then(n[t].bind(n)):e}),Promise.resolve())}}},{key:"destroy",value:function(){var e,t=[],n=h(this);try{for(n.s();!(e=n.n()).done;){var r=p(e.value,2)[1];"function"!=typeof r.destroy||this._contextPlugins.has(r)||t.push(r.destroy())}}catch(i){n.e(i)}finally{n.f()}return Promise.all(t)}},{key:"_add",value:function(e,t){this._plugins.set(e,t);var n=e.pluginName;if(n){if(this._plugins.has(n))throw new P("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:e});this._plugins.set(n,t)}}}]),r}(U,Symbol.iterator);function Vr(e){return Array.isArray(e)?e:[e]}try{Fr={window:window,document:document}}catch(E){Fr={window:{},document:{}}}var Ur=Fr;function Hr(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new P("translation-service-quantity-not-a-number",null,{quantity:n});var r=Object.keys(Ur.window.CKEDITOR_TRANSLATIONS).length;1===r&&(e=Object.keys(Ur.window.CKEDITOR_TRANSLATIONS)[0]);var i=t.id||t.string;if(0===r||!function(e,t){return!!Ur.window.CKEDITOR_TRANSLATIONS[e]&&!!Ur.window.CKEDITOR_TRANSLATIONS[e].dictionary[t]}(e,i))return 1!==n?t.plural:t.string;var o=Ur.window.CKEDITOR_TRANSLATIONS[e].dictionary,a=Ur.window.CKEDITOR_TRANSLATIONS[e].getPluralForm||function(e){return 1===e?0:1},s=o[i];return"string"==typeof s?s:s[Number(a(n))]}Ur.window.CKEDITOR_TRANSLATIONS||(Ur.window.CKEDITOR_TRANSLATIONS={});var qr=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function Wr(e){return qr.includes(e)?"rtl":"ltr"}var Gr=function(){function e(){var t=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this,e),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=Wr(this.uiLanguage),this.contentLanguageDirection=Wr(this.contentLanguage),this.t=function(e,n){return t._t(e,n)}}return b(e,[{key:"language",get:function(){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}},{key:"_t",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];t=Vr(t),"string"==typeof e&&(e={string:e});var n=e.plural?t[0]:1;return function(e,t){return e.replace(/%(\d+)/g,(function(e,n){return n0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=Jr(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]e.data.length)throw new P("view-textproxy-wrong-offsetintext",d(o));if(i<0||r+i>e.data.length)throw new P("view-textproxy-wrong-length",d(o));return o.data=e.data.substring(r,r+i),o.offsetInText=r,c(o)}return b(n,[{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=e.includeSelf?this.textNode:this.parent;null!==n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}}]),n}(Yr);function ni(e){return Lr(e)?new Map(e):function(e){var t=new Map;for(var n in e)t.set(n,e[n]);return t}(e)}ti.prototype.is=function(e){return"$textProxy"===e||"view:$textProxy"===e||"textProxy"===e||"view:textProxy"===e};var ri=function(){function e(){k(this,e),this._patterns=[],this.add.apply(this,arguments)}return b(e,[{key:"add",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0?e:null}},{key:"getElementName",value:function(){if(1!==this._patterns.length)return null;var e=this._patterns[0],t=e.name;return"function"==typeof e||!t||t instanceof RegExp?null:t}}]),e}();function ii(e,t){if("function"==typeof t)return t(e);var n={};return t.name&&(n.name=function(e,t){return e instanceof RegExp?!!t.match(e):e===t}(t.name,e.name),!n.name)||t.attributes&&(n.attributes=function(e,t){var n=new Set(t.getAttributeKeys());return Re(e)?(void 0!==e.style&&D("matcher-pattern-deprecated-attributes-style-key",e),void 0!==e.class&&D("matcher-pattern-deprecated-attributes-class-key",e)):(n.delete("style"),n.delete("class")),oi(e,n,(function(e){return t.getAttribute(e)}))}(t.attributes,e),!n.attributes)||t.classes&&(n.classes=function(e,t){return oi(e,t.getClassNames(),(function(){}))}(t.classes,e),!n.classes)||t.styles&&(n.styles=function(e,t){return oi(e,t.getStyleNames(!0),(function(e){return t.getStyle(e)}))}(t.styles,e),!n.styles)?null:n}function oi(e,t,n){var r=function(e){return Array.isArray(e)?e.map((function(e){return Re(e)?(void 0!==e.key&&void 0!==e.value||D("matcher-pattern-missing-key-or-value",e),[e.key,e.value]):[e,!0]})):Re(e)?Object.entries(e):[[e,!0]]}(e),i=Array.from(t),o=[];if(r.forEach((function(e){var t=p(e,2),r=t[0],a=t[1];i.forEach((function(e){(function(e,t){return!0===e||e===t||e instanceof RegExp&&t.match(e)})(r,e)&&function(e,t,n){if(!0===e)return!0;var r=n(t);return e===r||e instanceof RegExp&&!!String(r).match(e)}(a,e,n)&&o.push(e)}))})),r.length&&!(o.lengthi?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(i);++r0){if(++t>=800)return arguments[0]}else t=0;return e.apply(void 0,arguments)}},qi=Hi(Vi),Wi=function(e,t){return qi(zi(e,t,ji),e+"")},Gi=function(e,t,n){if(!J(n))return!1;var r=typeof t;return!!("number"==r?bn(n)&&en(t,n.length):"string"==r&&t in n)&&Le(n[t],e)},$i=function(e){return Wi((function(t,n){var r=-1,i=n.length,o=i>1?n[i-1]:void 0,a=i>2?n[2]:void 0;for(o=e.length>3&&"function"==typeof o?(i--,o):void 0,a&&Gi(n[0],n[1],a)&&(o=i<3?void 0:o,i=1),t=Object(t);++r0&&void 0!==arguments[0]&&arguments[0];return this.isEmpty?[]:e?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((function(e){return p(e,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var e=[],t=0,n=Object.keys(this._styles);t1){var n=t.splice(0,t.length-1).join("."),r=Mi(this._styles,n);r&&!Array.from(Object.keys(r)).length&&this.remove(n)}}}]),e}(),Xi=function(){function e(){k(this,e),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return b(e,[{key:"toNormalizedForm",value:function(e,t,n){if(J(t))to(n,eo(e),t);else if(this._normalizers.has(e)){var r=this._normalizers.get(e)(t);to(n,r.path,r.value)}else to(n,e,t)}},{key:"getNormalized",value:function(e,t){if(!e)return Ki({},t);if(void 0!==t[e])return t[e];if(this._extractors.has(e)){var n=this._extractors.get(e);if("string"==typeof n)return Mi(t,n);var r=n(e,t);if(r)return r}return Mi(t,eo(e))}},{key:"getReducedForm",value:function(e,t){var n=this.getNormalized(e,t);return void 0===n?[]:this._reducers.has(e)?this._reducers.get(e)(n):[[e,n]]}},{key:"getStyleNames",value:function(e){var t=this,n=Array.from(this._consumables.keys()).filter((function(n){var r=t.getNormalized(n,e);return r&&"object"==typeof r?Object.keys(r).length:r})),r=new Set([].concat(v(n),v(Object.keys(e))));return Array.from(r.values())}},{key:"getRelatedStyles",value:function(e){return this._consumables.get(e)||[]}},{key:"setNormalizer",value:function(e,t){this._normalizers.set(e,t)}},{key:"setExtractor",value:function(e,t){this._extractors.set(e,t)}},{key:"setReducer",value:function(e,t){this._reducers.set(e,t)}},{key:"setStyleRelation",value:function(e,t){this._mapStyleNames(e,t);var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._mapStyleNames(i,[e])}}catch(o){r.e(o)}finally{r.f()}}},{key:"_mapStyleNames",value:function(e,t){var n;this._consumables.has(e)||this._consumables.set(e,[]),(n=this._consumables.get(e)).push.apply(n,v(t))}}]),e}();function eo(e){return e.replace("-",".")}function to(e,t,n){var r=n;J(n)&&(r=Ki({},Mi(e,t),n)),Ji(e,t,r)}var no=function(e){m(n,e);var t=g(n);function n(e,r,i,o){var a;if(k(this,n),(a=t.call(this,e)).name=r,a._attrs=function(e){var t,n=ni(e),r=h(n);try{for(r.s();!(t=r.n()).done;){var i=p(t.value,2),o=i[0],a=i[1];null===a?n.delete(o):"string"!=typeof a&&n.set(o,String(a))}}catch(s){r.e(s)}finally{r.f()}return n}(i),a._children=[],o&&a._insertChild(0,o),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");ro(a._classes,s),a._attrs.delete("class")}return a._styles=new Qi(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,a._unsafeAttributesToRender=[],c(a)}return b(n,[{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(e.t0=this._classes.size>0,!e.t0){e.next=4;break}return e.next=4,"class";case 4:if(e.t1=this._styles.isEmpty,e.t1){e.next=8;break}return e.next=8,"style";case 8:return e.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttributes",value:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._attrs.entries(),"t0",1);case 1:if(e.t1=this._classes.size>0,!e.t1){e.next=5;break}return e.next=5,["class",this.getAttribute("class")];case 5:if(e.t2=this._styles.isEmpty,e.t2){e.next=9;break}return e.next=9,["style",this.getAttribute("style")];case 9:case"end":return e.stop()}}),e,this)}))},{key:"getAttribute",value:function(e){if("class"==e)return this._classes.size>0?v(this._classes).join(" "):void 0;if("style"==e){var t=this._styles.toString();return""==t?void 0:t}return this._attrs.get(e)}},{key:"hasAttribute",value:function(e){return"class"==e?this._classes.size>0:"style"==e?!this._styles.isEmpty:this._attrs.has(e)}},{key:"isSimilar",value:function(e){if(!(e instanceof n))return!1;if(this===e)return!0;if(this.name!=e.name)return!1;if(this._attrs.size!==e._attrs.size||this._classes.size!==e._classes.size||this._styles.size!==e._styles.size)return!1;var t,r=h(this._attrs);try{for(r.s();!(t=r.n()).done;){var i=p(t.value,2),o=i[0],a=i[1];if(!e._attrs.has(o)||e._attrs.get(o)!==a)return!1}}catch(v){r.e(v)}finally{r.f()}var s,l=h(this._classes);try{for(l.s();!(s=l.n()).done;){var u=s.value;if(!e._classes.has(u))return!1}}catch(v){l.e(v)}finally{l.f()}var c,d=h(this._styles.getStyleNames());try{for(d.s();!(c=d.n()).done;){var f=c.value;if(!e._styles.has(f)||e._styles.getAsString(f)!==this._styles.getAsString(f))return!1}}catch(v){d.e(v)}finally{d.f()}return!0}},{key:"hasClass",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]&&arguments[0],t=[];if(e){var n,r=h(this.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.push(i._clone(e))}}catch(a){r.e(a)}finally{r.f()}}var o=new this.constructor(this.document,this.name,this._attrs,t);return o._classes=new Set(this._classes),o._styles.set(this._styles.getNormalized()),o._customProperties=new Map(this._customProperties),o.getFillerOffset=this.getFillerOffset,o._unsafeAttributesToRender=this._unsafeAttributesToRender,o}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=function(e,t){return"string"==typeof t?[new ei(e,t)]:(Lr(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ei(e,t):t instanceof ti?new ei(e,t.data):t})))}(this.document,t),o=h(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(e,0,a),e++,r++}}catch(s){o.e(s)}finally{o.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n0&&(this._classes.clear(),!0):"style"==e?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(e)}},{key:"_addClass",value:function(e){this._fireChange("attributes",this);var t,n=h(Vr(e));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._classes.add(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"_removeClass",value:function(e){this._fireChange("attributes",this);var t,n=h(Vr(e));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._classes.delete(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"_setStyle",value:function(e,t){this._fireChange("attributes",this),Re(e)?this._styles.set(e):this._styles.set(e,t)}},{key:"_removeStyle",value:function(e){this._fireChange("attributes",this);var t,n=h(Vr(e));try{for(n.s();!(t=n.n()).done;){var r=t.value;this._styles.remove(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"_setCustomProperty",value:function(e,t){this._customProperties.set(e,t)}},{key:"_removeCustomProperty",value:function(e){return this._customProperties.delete(e)}}]),n}(Xr);function ro(e,t){var n=t.split(/\s+/);e.clear(),n.forEach((function(t){return e.add(t)}))}no.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"view:element"===e):"element"===e||"view:element"===e||"node"===e||"view:node"===e};var io=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]?arguments[0]:{};if(k(this,t),!e.boundaries&&!e.startPosition)throw new P("view-tree-walker-no-start-position",null);if(e.direction&&"forward"!=e.direction&&"backward"!=e.direction)throw new P("view-tree-walker-unknown-direction",e.startPosition,{direction:e.direction});this.boundaries=e.boundaries||null,e.startPosition?this.position=co._createAt(e.startPosition):this.position=co._createAt(e.boundaries["backward"==e.direction?"end":"start"]),this.direction=e.direction||"forward",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}return b(t,[{key:e,value:function(){return this}},{key:"skip",value:function(e){var t,n,r;do{var i;r=this.position,t=(i=this.next()).done,n=i.value}while(!t&&e(n));t||(this.position=r)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&t.offset===r.childCount)return{done:!0,value:void 0};if(r===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};if(r instanceof ei){if(t.isAtEnd)return this.position=co._createAfter(r),this._next();e=r.data[t.offset]}else e=r.getChild(t.offset);if(e instanceof no)return this.shallow?t.offset++:t=new co(e,0),this.position=t,this._formatReturnValue("elementStart",e,n,t,1);if(e instanceof ei){if(this.singleCharacters)return t=new co(e,0),this.position=t,this._next();var i,o=e.data.length;return e==this._boundaryEndParent?(o=this.boundaries.end.offset,i=new ti(e,0,o),t=co._createAfter(i)):(i=new ti(e,0,e.data.length),t.offset++),this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var a;a=this.singleCharacters?1:(r===this._boundaryEndParent?this.boundaries.end.offset:r.data.length)-t.offset;var s=new ti(r,t.offset,a);return t.offset+=a,this.position=t,this._formatReturnValue("text",s,n,t,a)}return t=co._createAfter(r),this.position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",r,n,t)}},{key:"_previous",value:function(){var e,t=this.position.clone(),n=this.position,r=t.parent;if(null===r.parent&&0===t.offset)return{done:!0,value:void 0};if(r==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};if(r instanceof ei){if(t.isAtStart)return this.position=co._createBefore(r),this._previous();e=r.data[t.offset-1]}else e=r.getChild(t.offset-1);if(e instanceof no)return this.shallow?(t.offset--,this.position=t,this._formatReturnValue("elementStart",e,n,t,1)):(t=new co(e,e.childCount),this.position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",e,n,t));if(e instanceof ei){if(this.singleCharacters)return t=new co(e,e.data.length),this.position=t,this._previous();var i,o=e.data.length;if(e==this._boundaryStartParent){var a=this.boundaries.start.offset;o=(i=new ti(e,a,e.data.length-a)).data.length,t=co._createBefore(i)}else i=new ti(e,0,e.data.length),t.offset--;return this.position=t,this._formatReturnValue("text",i,n,t,o)}if("string"==typeof e){var s;if(this.singleCharacters)s=1;else{var l=r===this._boundaryStartParent?this.boundaries.start.offset:0;s=t.offset-l}t.offset-=s;var u=new ti(r,t.offset,s);return this.position=t,this._formatReturnValue("text",u,n,t,s)}return t=co._createBefore(r),this.position=t,this._formatReturnValue("elementStart",r,n,t,1)}},{key:"_formatReturnValue",value:function(e,t,n,r,i){return t instanceof ti&&(t.offsetInText+t.data.length==t.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=co._createAfter(t.textNode):(r=co._createAfter(t.textNode),this.position=r)),0===t.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=co._createBefore(t.textNode):(r=co._createBefore(t.textNode),this.position=r))),{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}}]),t}(Symbol.iterator),co=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this)).parent=e,i.offset=r,i}return b(n,[{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var e=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===e}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var e=this.parent;!(e instanceof ao);){if(!e.parent)return null;e=e.parent}return e}},{key:"getShiftedBy",value:function(e){var t=n._createAt(this),r=t.offset+e;return t.offset=r<0?0:r,t}},{key:"getLastMatchingPosition",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new uo(t);return n.skip(e),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"isEqual",value:function(e){return this.parent==e.parent&&this.offset==e.offset}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"compareWith",value:function(e){if(this.root!==e.root)return"different";if(this.isEqual(e))return"same";var t=this.parent.is("node")?this.parent.getPath():[],n=e.parent.is("node")?e.parent.getPath():[];t.push(this.offset),n.push(e.offset);var r=Jr(t,n);switch(r){case"prefix":return"before";case"extension":return"after";default:return t[r]0&&void 0!==arguments[0]?arguments[0]:{};return e.startPosition=this,new uo(e)}},{key:"clone",value:function(){return new n(this.parent,this.offset)}}],[{key:"_createAt",value:function(e,t){if(e instanceof n)return new this(e.parent,e.offset);var r=e;if("end"==t)t=r.is("$text")?r.data.length:r.childCount;else{if("before"==t)return this._createBefore(r);if("after"==t)return this._createAfter(r);if(0!==t&&!t)throw new P("view-createpositionat-offset-required",r)}return new n(r,t)}},{key:"_createAfter",value:function(e){if(e.is("$textProxy"))return new n(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new P("view-position-after-root",e,{root:e});return new n(e.parent,e.index+1)}},{key:"_createBefore",value:function(e){if(e.is("$textProxy"))return new n(e.textNode,e.offsetInText);if(!e.parent)throw new P("view-position-before-root",e,{root:e});return new n(e.parent,e.index)}}]),n}(Yr);co.prototype.is=function(e){return"position"===e||"view:position"===e};var fo=function(e,t){m(r,e);var n=g(r);function r(e){var t,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return k(this,r),(t=n.call(this)).start=e.clone(),t.end=i?i.clone():e.clone(),t}return b(r,[{key:t,value:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(new uo({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}},{key:"getEnlarged",value:function(){var e=this.start.getLastMatchingPosition(po,{direction:"backward"}),t=this.end.getLastMatchingPosition(po);return e.parent.is("$text")&&e.isAtStart&&(e=co._createBefore(e.parent)),t.parent.is("$text")&&t.isAtEnd&&(t=co._createAfter(t.parent)),new r(e,t)}},{key:"getTrimmed",value:function(){var e=this.start.getLastMatchingPosition(po);if(e.isAfter(this.end)||e.isEqual(this.end))return new r(e,e);var t=this.end.getLastMatchingPosition(po,{direction:"backward"}),n=e.nodeAfter,i=t.nodeBefore;return n&&n.is("$text")&&(e=new co(n,0)),i&&i.is("$text")&&(t=new co(i,i.data.length)),new r(e,t)}},{key:"isEqual",value:function(e){return this==e||this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"containsPosition",value:function(e){return e.isAfter(this.start)&&e.isBefore(this.end)}},{key:"containsRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"getDifference",value:function(e){var t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new r(this.start,e.start)),this.containsPosition(e.end)&&t.push(new r(e.end,this.end))):t.push(this.clone()),t}},{key:"getIntersection",value:function(e){if(this.isIntersecting(e)){var t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new r(t,n)}return null}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new uo(e)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){if(this.isCollapsed)return null;var e=this.start.nodeAfter,t=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(e=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(t=this.end.parent.previousSibling),e&&e.is("element")&&e===t?e:null}},{key:"clone",value:function(){return new r(this.start,this.end)}},{key:"getItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f().mark((function n(){var r,i,o,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.boundaries=e,t.ignoreElementEnd=!0,r=new uo(t),i=h(r),n.prev=3,i.s();case 5:if((o=i.n()).done){n.next=11;break}return a=o.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f().mark((function n(){var r,i,o,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.boundaries=e,r=new uo(t),n.next=4,r.position;case 4:i=h(r),n.prev=5,i.s();case 7:if((o=i.n()).done){n.next=13;break}return a=o.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),i.e(n.t0);case 18:return n.prev=18,i.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}}],[{key:"_createFromParentsAndOffsets",value:function(e,t,n,r){return new this(new co(e,t),new co(n,r))}},{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return this._createFromParentsAndOffsets(e,0,e,e.childCount)}},{key:"_createOn",value:function(e){var t=e.is("$textProxy")?e.offsetSize:1;return this._createFromPositionAndShift(co._createBefore(e),t)}}]),r}(Yr,Symbol.iterator);function po(e){return!(!e.item.is("attributeElement")&&!e.item.is("uiElement"))}function ho(e){var t,n=0,r=h(e);try{for(r.s();!(t=r.n()).done;)t.value,n++}catch(i){r.e(i)}finally{r.f()}return n}fo.prototype.is=function(e){return"range"===e||"view:range"===e};var vo=function(e){m(n,e);var t=g(n);function n(){var e,r;return k(this,n),(r=t.call(this))._ranges=[],r._lastRangeBackward=!1,r._isFake=!1,r._fakeSelectionLabel="",arguments.length&&(e=r).setTo.apply(e,arguments),r}return b(n,[{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.end:e.start).clone()}},{key:"focus",get:function(){if(!this._ranges.length)return null;var e=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?e.start:e.end).clone()}},{key:"isCollapsed",get:function(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}},{key:"getRanges",value:f().mark((function e(){var t,n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,r.clone();case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=h(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(i){n.e(i)}finally{n.f()}return t?t.clone():null}},{key:"getLastRange",value:function(){var e,t=null,n=h(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(i){n.e(i)}finally{n.f()}return t?t.clone():null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"isEqual",value:function(e){if(this.isFake!=e.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=e.fakeSelectionLabel)return!1;if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=h(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=h(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(l){a.e(l)}finally{a.f()}if(!o)return!1}}catch(l){n.e(l)}finally{n.f()}return!0}},{key:"isSimilar",value:function(e){if(this.isBackward!=e.isBackward)return!1;var t=ho(this.getRanges());if(t!=ho(e.getRanges()))return!1;if(0==t)return!0;var n,r=h(this.getRanges());try{for(r.s();!(n=r.n()).done;){var i=n.value;i=i.getTrimmed();var o,a=!1,s=h(e.getRanges());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l=l.getTrimmed(),i.start.isEqual(l.start)&&i.end.isEqual(l.end)){a=!0;break}}}catch(u){s.e(u)}finally{s.f()}if(!a)return!1}}catch(u){r.e(u)}finally{r.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]&&arguments[1];e=Array.from(e),this._ranges=[];var n,r=h(e);try{for(r.s();!(n=r.n()).done;){var i=n.value;this._addRange(i)}}catch(o){r.e(o)}finally{r.f()}this._lastRangeBackward=!!t}},{key:"_setFakeOptions",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!e.fake,this._fakeSelectionLabel=e.fake&&e.label||""}},{key:"_addRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(e instanceof fo))throw new P("view-selection-add-range-not-range",this);this._pushRange(e),this._lastRangeBackward=!!t}},{key:"_pushRange",value:function(e){var t,n=h(this._ranges);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(e.isIntersecting(r))throw new P("view-selection-range-intersects",this,{addedRange:e,intersectingRange:r})}}catch(i){n.e(i)}finally{n.f()}this._ranges.push(new fo(e.start,e.end))}}]),n}(V(Yr));vo.prototype.is=function(e){return"selection"===e||"view:selection"===e};var mo=function(e){m(n,e);var t=g(n);function n(){var e,r;return k(this,n),(r=t.call(this))._selection=new vo,r._selection.delegate("change").to(d(r)),arguments.length&&(e=r._selection).setTo.apply(e,arguments),r}return b(n,[{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(e){return this._selection.isEqual(e)}},{key:"isSimilar",value:function(e){return this._selection.isSimilar(e)}},{key:"_setTo",value:function(){var e;(e=this._selection).setTo.apply(e,arguments)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}}]),n}(V(Yr));mo.prototype.is=function(e){return"selection"===e||"documentSelection"==e||"view:selection"==e||"view:documentSelection"==e};var go=function(e){m(n,e);var t=g(n);function n(e,r,i){var o;return k(this,n),(o=t.call(this,e,r)).startRange=i,o._eventPhase="none",o._currentTarget=null,o}return b(n,[{key:"eventPhase",get:function(){return this._eventPhase}},{key:"currentTarget",get:function(){return this._currentTarget}}]),n}(S),yo=Symbol("bubbling contexts");function bo(e){return function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"fire",value:function(e){try{var t=e instanceof S?e:new S(this,e),n=xo(this);if(!n.size)return;for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;oi.length?t:n}(a);if(wo(t,"atTarget",u),!l){if(_o.apply(void 0,[n,"$text",t].concat(i)))return t.return;wo(t,"bubbling",u)}for(;u;){if(u.is("rootElement")){if(_o.apply(void 0,[n,"$root",t].concat(i)))return t.return}else if(u.is("element")&&_o.apply(void 0,[n,u.name,t].concat(i)))return t.return;if(_o.apply(void 0,[n,u,t].concat(i)))return t.return;wo(t,"bubbling",u=u.parent)}return wo(t,"bubbling",this),_o.apply(void 0,[n,"$document",t].concat(i)),t.return}catch(e){P.rethrowUnexpectedError(e,this)}}},{key:"_addEventListener",value:function(e,t,n){var r,i=Vr(n.context||"$document"),o=xo(this),a=h(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=o.get(s);l||(l=new U,o.set(s,l)),this.listenTo(l,e,t,n)}}catch(u){a.e(u)}finally{a.f()}}},{key:"_removeEventListener",value:function(e,t){var n,r=xo(this),i=h(r.values());try{for(i.s();!(n=i.n()).done;){var o=n.value;this.stopListening(o,e,t)}}catch(a){i.e(a)}finally{i.f()}}}]),n}(e)}var ko=bo(Object);function wo(e,t,n){e instanceof go&&(e._eventPhase=t,e._currentTarget=n)}function _o(e,t,n){for(var r="string"==typeof t?e.get(t):Co(e,t),i=arguments.length,o=new Array(i>3?i-3:0),a=3;a0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"destroy",value:function(){this.roots.map((function(e){return e.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=h(this._postFixers);try{for(r.s();!(n=r.n()).done&&!(t=(0,n.value)(e)););}catch(i){r.e(i)}finally{r.f()}}while(t)}}]),n}(bo(ie)),Eo=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0&&void 0!==arguments[0]&&arguments[0],t=s(l(n.prototype),"_clone",this).call(this,e);return t._priority=this._priority,t._id=this._id,t}}]),n}(no);function So(){if(Zo(this))return null;for(var e=this.parent;e&&e.is("attributeElement");){if(Zo(e)>1)return null;e=e.parent}return!e||Zo(e)>1?null:this.childCount}function Zo(e){return Array.from(e.getChildren()).filter((function(e){return!e.is("uiElement")})).length}Eo.DEFAULT_PRIORITY=10,Eo.prototype.is=function(e,t){return t?t===this.name&&("attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e):"attributeElement"===e||"view:attributeElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};var Mo=function(e){m(n,e);var t=g(n);function n(e,r,i,o){var a;return k(this,n),(a=t.call(this,e,r,i,o)).getFillerOffset=To,a}return b(n,[{key:"_insertChild",value:function(e,t){if(t&&(t instanceof Xr||Array.from(t).length>0))throw new P("view-emptyelement-cannot-add",[this,t]);return 0}}]),n}(no);function To(){return null}Mo.prototype.is=function(e,t){return t?t===this.name&&("emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e):"emptyElement"===e||"view:emptyElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};var Io=function(){try{return navigator.userAgent.toLowerCase()}catch(E){return""}}(),Po={isMac:Oo(Io),isWindows:function(e){return e.indexOf("windows")>-1}(Io),isGecko:function(e){return!!e.match(/gecko\/\d+/)}(Io),isSafari:function(e){return e.indexOf(" applewebkit/")>-1&&-1===e.indexOf("chrome")}(Io),isiOS:function(e){return!!e.match(/iphone|ipad/i)||Oo(e)&&navigator.maxTouchPoints>0}(Io),isAndroid:function(e){return e.indexOf("android")>-1}(Io),isBlink:function(e){return e.indexOf("chrome/")>-1&&e.indexOf("edge/")<0}(Io),features:{isRegExpUnicodePropertySupported:function(){var e=!1;try{e=0==="\u0107".search(new RegExp("[\\p{L}]","u"))}catch(e){}return e}()}},Do=Po;function Oo(e){return e.indexOf("macintosh")>-1}var No={ctrl:"\u2303",cmd:"\u2318",alt:"\u2325",shift:"\u21e7"},Ro={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},jo=function(){for(var e={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},t=65;t<=90;t++)e[String.fromCharCode(t).toLowerCase()]=t;for(var n=48;n<=57;n++)e[n-48]=n;for(var r=112;r<=123;r++)e["f"+(r-111)]=r;var i,o=h("`-=[];',./\\");try{for(o.s();!(i=o.n()).done;){var a=i.value;e[a]=a.charCodeAt(0)}}catch(s){o.e(s)}finally{o.f()}return e}(),Lo=Object.fromEntries(Object.entries(jo).map((function(e){var t=p(e,2),n=t[0];return[t[1],n.charAt(0).toUpperCase()+n.slice(1)]})));function Fo(e){var t;if("string"==typeof e){if(!(t=jo[e.toLowerCase()]))throw new P("keyboard-unknown-key",null,{key:e})}else t=e.keyCode+(e.altKey?jo.alt:0)+(e.ctrlKey?jo.ctrl:0)+(e.shiftKey?jo.shift:0)+(e.metaKey?jo.cmd:0);return t}function zo(e){return"string"==typeof e&&(e=function(e){return e.split("+").map((function(e){return e.trim()}))}(e)),e.map((function(e){return"string"==typeof e?function(e){if(e.endsWith("!"))return Fo(e.slice(0,-1));var t=Fo(e);return Do.isMac&&t==jo.ctrl?jo.cmd:t}(e):e})).reduce((function(e,t){return t+e}),0)}function Bo(e){var t=zo(e);return Object.entries(Do.isMac?No:Ro).reduce((function(e,n){var r=p(n,2),i=r[0],o=r[1];return 0!=(t&jo[i])&&(t&=~jo[i],e+=o),e}),"")+(t?Lo[t]:"")}function Vo(e,t){var n="ltr"===t;switch(e){case jo.arrowleft:return n?"left":"right";case jo.arrowright:return n?"right":"left";case jo.arrowup:return"up";case jo.arrowdown:return"down"}}var Uo=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0))throw new P("view-uielement-cannot-add",[this,t]);return 0}},{key:"render",value:function(e,t){return this.toDomElement(e)}},{key:"toDomElement",value:function(e){var t,n=e.createElement(this.name),r=h(this.getAttributeKeys());try{for(r.s();!(t=r.n()).done;){var i=t.value;n.setAttribute(i,this.getAttribute(i))}}catch(o){r.e(o)}finally{r.f()}return n}}]),n}(no);function Ho(e){e.document.on("arrowKey",(function(t,n){return function(e,t,n){if(t.keyCode==jo.arrowright){var r=t.domTarget.ownerDocument.defaultView.getSelection(),i=1==r.rangeCount&&r.getRangeAt(0).collapsed;if(i||t.shiftKey){var o=r.focusNode,a=r.focusOffset,s=n.domPositionToView(o,a);if(null===s)return;var l=!1,u=s.getLastMatchingPosition((function(e){return e.item.is("uiElement")&&(l=!0),!(!e.item.is("uiElement")&&!e.item.is("attributeElement"))}));if(l){var c=n.viewPositionToDom(u);i?r.collapse(c.parent,c.offset):r.extend(c.parent,c.offset)}}}}(0,n,e.domConverter)}),{priority:"low"})}function qo(){return null}Uo.prototype.is=function(e,t){return t?t===this.name&&("uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e):"uiElement"===e||"view:uiElement"===e||"element"===e||"view:element"===e||"node"===e||"view:node"===e};var Wo=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n);for(var r=arguments.length,i=new Array(r),o=0;o0))throw new P("view-rawelement-cannot-add",[this,t]);return 0}},{key:"render",value:function(){}}]),n}(no);function Go(){return null}Wo.prototype.is=function(e,t){return t?t===this.name&&("rawElement"===e||"view:rawElement"===e||"element"===e||"view:element"===e):"rawElement"===e||"view:rawElement"===e||e===this.name||e==="view:"+this.name||"element"===e||"view:element"===e||"node"===e||"view:node"===e};var $o=function(e,t){m(r,e);var n=g(r);function r(e,t){var i;return k(this,r),(i=n.call(this)).document=e,i._children=[],t&&i._insertChild(0,t),i}return b(r,[{key:t,value:function(){return this._children[Symbol.iterator]()}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"_appendChild",value:function(e){return this._insertChild(this.childCount,e)}},{key:"getChild",value:function(e){return this._children[e]}},{key:"getChildIndex",value:function(e){return this._children.indexOf(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(e,t){this._fireChange("children",this);var n,r=0,i=function(e,t){return"string"==typeof t?[new ei(e,t)]:(Lr(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new ei(e,t):t instanceof ti?new ei(e,t.data):t})))}(this.document,t),o=h(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(e,0,a),e++,r++}}catch(s){o.e(s)}finally{o.f()}return r}},{key:"_removeChildren",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=e;n2&&void 0!==arguments[2]?arguments[2]:{},i=new Eo(this.document,e,t);return"number"==typeof r.priority&&(i._priority=r.priority),r.id&&(i._id=r.id),r.renderUnsafeAttributes&&(n=i._unsafeAttributesToRender).push.apply(n,v(r.renderUnsafeAttributes)),i}},{key:"createContainerElement",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=null;Re(r)?i=r:o=r;var a=new io(this.document,e,t,o);return i.renderUnsafeAttributes&&(n=a._unsafeAttributesToRender).push.apply(n,v(i.renderUnsafeAttributes)),a}},{key:"createEditableElement",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new ao(this.document,e,t);return r.renderUnsafeAttributes&&(n=i._unsafeAttributesToRender).push.apply(n,v(r.renderUnsafeAttributes)),i}},{key:"createEmptyElement",value:function(e,t){var n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=new Mo(this.document,e,t);return r.renderUnsafeAttributes&&(n=i._unsafeAttributesToRender).push.apply(n,v(r.renderUnsafeAttributes)),i}},{key:"createUIElement",value:function(e,t,n){var r=new Uo(this.document,e,t);return n&&(r.render=n),r}},{key:"createRawElement",value:function(e,t,n){var r,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new Wo(this.document,e,t);return n&&(o.render=n),i.renderUnsafeAttributes&&(r=o._unsafeAttributesToRender).push.apply(r,v(i.renderUnsafeAttributes)),o}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){Re(e)&&void 0===n?t._setStyle(e):n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"breakAttributes",value:function(e){return e instanceof co?this._breakAttributes(e):this._breakAttributesRange(e)}},{key:"breakContainer",value:function(e){var t=e.parent;if(!t.is("containerElement"))throw new P("view-writer-break-non-container-element",this.document);if(!t.parent)throw new P("view-writer-break-root",this.document);if(e.isAtStart)return co._createBefore(t);if(!e.isAtEnd){var n=t._clone(!1);this.insert(co._createAfter(t),n);var r=new fo(e,co._createAt(t,"end")),i=new co(n,0);this.move(r,i)}return co._createAfter(t)}},{key:"mergeAttributes",value:function(e){var t=e.offset,n=e.parent;if(n.is("$text"))return e;if(n.is("attributeElement")&&0===n.childCount){var r=n.parent,i=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new co(r,i))}var o=n.getChild(t-1),a=n.getChild(t);if(!o||!a)return e;if(o.is("$text")&&a.is("$text"))return ea(o,a);if(o.is("attributeElement")&&a.is("attributeElement")&&o.isSimilar(a)){var s=o.childCount;return o._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new co(o,s))}return e}},{key:"mergeContainers",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;if(!(t&&n&&t.is("containerElement")&&n.is("containerElement")))throw new P("view-writer-merge-containers-invalid-position",this.document);var r=t.getChild(t.childCount-1),i=r instanceof ei?co._createAt(r,"end"):co._createAt(t,"end");return this.move(fo._createIn(n),co._createAt(t,"end")),this.remove(fo._createOn(n)),i}},{key:"insert",value:function(e,t){na(t=Lr(t)?v(t):[t],this.document);var n,r=t.reduce((function(e,t){var n=e[e.length-1],r=!t.is("uiElement");return n&&n.breakAttributes==r?n.nodes.push(t):e.push({breakAttributes:r,nodes:[t]}),e}),[]),i=null,o=e,a=h(r);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.nodes,u=s.breakAttributes,c=this._insertNodes(o,l,u);i||(i=c.start),o=c.end}}catch(d){a.e(d)}finally{a.f()}return i?new fo(i,o):new fo(e)}},{key:"remove",value:function(e){var t=e instanceof fo?e:fo._createOn(e);if(ia(t,this.document),t.isCollapsed)return new $o(this.document);var n,r=this._breakAttributesRange(t,!0),i=r.start,o=r.end,a=i.parent,s=o.offset-i.offset,l=a._removeChildren(i.offset,s),u=h(l);try{for(u.s();!(n=u.n()).done;){var c=n.value;this._removeFromClonedElementsGroup(c)}}catch(f){u.e(f)}finally{u.f()}var d=this.mergeAttributes(i);return t.start=d,t.end=d.clone(),new $o(this.document,l)}},{key:"clear",value:function(e,t){ia(e,this.document);var n,r=e.getWalker({direction:"backward",ignoreElementEnd:!0}),i=h(r);try{for(i.s();!(n=i.n()).done;){var o=n.value,a=o.item,s=void 0;if(a.is("element")&&t.isSimilar(a))s=fo._createOn(a);else if(!o.nextPosition.isAfter(e.start)&&a.is("$textProxy")){var l=a.getAncestors().find((function(e){return e.is("element")&&t.isSimilar(e)}));l&&(s=fo._createIn(l))}s&&(s.end.isAfter(e.end)&&(s.end=e.end),s.start.isBefore(e.start)&&(s.start=e.start),this.remove(s))}}catch(u){i.e(u)}finally{i.f()}}},{key:"move",value:function(e,t){var n;if(t.isAfter(e.end)){var r=(t=this._breakAttributes(t,!0)).parent,i=r.childCount;e=this._breakAttributesRange(e,!0),n=this.remove(e),t.offset+=r.childCount-i}else n=this.remove(e);return this.insert(t,n)}},{key:"wrap",value:function(e,t){if(!(t instanceof Eo))throw new P("view-writer-wrap-invalid-attribute",this.document);if(ia(e,this.document),e.isCollapsed){var n=e.start;n.parent.is("element")&&(i=n.parent,!Array.from(i.getChildren()).some((function(e){return!e.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))),n=this._wrapPosition(n,t);var r=this.document.selection;return r.isCollapsed&&r.getFirstPosition().isEqual(e.start)&&this.setSelection(n),new fo(n)}return this._wrapRange(e,t);var i}},{key:"unwrap",value:function(e,t){if(!(t instanceof Eo))throw new P("view-writer-unwrap-invalid-attribute",this.document);if(ia(e,this.document),e.isCollapsed)return e;var n=this._breakAttributesRange(e,!0),r=n.start,i=n.end,o=r.parent,a=this._unwrapChildren(o,r.offset,i.offset,t),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new fo(s,l)}},{key:"rename",value:function(e,t){var n=new io(this.document,e,t.getAttributes());return this.insert(co._createAfter(t),n),this.move(fo._createIn(t),co._createAt(n,0)),this.remove(fo._createOn(t)),n}},{key:"clearClonedElementsGroup",value:function(e){this._cloneGroups.delete(e)}},{key:"createPositionAt",value:function(e,t){return co._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return co._createAfter(e)}},{key:"createPositionBefore",value:function(e){return co._createBefore(e)}},{key:"createRange",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n1&&void 0!==arguments[1]&&arguments[1],n=e.start,r=e.end;if(ia(e,this.document),e.isCollapsed){var i=this._breakAttributes(e.start,t);return new fo(i,i)}var o=this._breakAttributes(r,t),a=o.parent.childCount,s=this._breakAttributes(n,t);return o.offset+=o.parent.childCount-a,new fo(s,o)}},{key:"_breakAttributes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.offset,r=e.parent;if(e.parent.is("emptyElement"))throw new P("view-writer-cannot-break-empty-element",this.document);if(e.parent.is("uiElement"))throw new P("view-writer-cannot-break-ui-element",this.document);if(e.parent.is("rawElement"))throw new P("view-writer-cannot-break-raw-element",this.document);if(!t&&r.is("$text")&&ra(r.parent))return e.clone();if(ra(r))return e.clone();if(r.is("$text"))return this._breakAttributes(Xo(e),t);if(n==r.childCount){var i=new co(r.parent,r.index+1);return this._breakAttributes(i,t)}if(0===n){var o=new co(r.parent,r.index);return this._breakAttributes(o,t)}var a=r.index+1,s=r._clone();r.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var l=r.childCount-n,u=r._removeChildren(n,l);s._appendChild(u);var c=new co(r.parent,a);return this._breakAttributes(c,t)}},{key:"_addToClonedElementsGroup",value:function(e){if(e.root.is("rootElement")){if(e.is("element")){var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._addToClonedElementsGroup(r)}}catch(a){n.e(a)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o||(o=new Set,this._cloneGroups.set(i,o)),o.add(e),e._clonesGroup=o}}}},{key:"_removeFromClonedElementsGroup",value:function(e){if(e.is("element")){var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeFromClonedElementsGroup(r)}}catch(a){n.e(a)}finally{n.f()}}var i=e.id;if(i){var o=this._cloneGroups.get(i);o&&o.delete(e)}}}]),e}();function Yo(e){for(var t=e.parent;!ra(t);){if(!t)return;t=t.parent}return t}function Jo(e,t){return e.priorityt.priority)&&e.getIdentity()3&&void 0!==arguments[3]&&arguments[3];n=n||function(e,t){return e===t};var i=Array.isArray(e)?e:Array.prototype.slice.call(e),o=Array.isArray(t)?t:Array.prototype.slice.call(t),a=function(e,t,n){var r=ma(e,t,n);if(-1===r)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=ma(ga(e,r),ga(t,r),n);return{firstIndex:r,lastIndexOld:e.length-i,lastIndexNew:t.length-i}}(i,o,n);return r?function(e,t){var n=e.firstIndex,r=e.lastIndexOld,i=e.lastIndexNew;if(-1===n)return Array(t).fill("equal");var o=[];return n>0&&(o=o.concat(Array(n).fill("equal"))),i-n>0&&(o=o.concat(Array(i-n).fill("insert"))),r-n>0&&(o=o.concat(Array(r-n).fill("delete"))),i0&&n.push({index:r,type:"insert",values:e.slice(r,o)}),i-r>0&&n.push({index:r+(o-r),type:"delete",howMany:i-r}),n}(o,a)}function ma(e,t,n){for(var r=0;r200||a>200||o+a>300)return ya.fastDiff(e,t,n,!0);if(as?-1:1;d[o+c]&&(d[o]=d[o+c].slice(0)),d[o]||(d[o]=[]),d[o].push(a>s?r:i);for(var p=Math.max(a,s),h=p-o;hc;h--)f[h]=p(h);f[c]=p(c),v++}while(f[c]!==u);return d[c].slice(1)}function ba(e,t,n){e.insertBefore(n,e.childNodes[t]||null)}function ka(e){var t=e.parentNode;t&&t.removeChild(e)}function wa(e){return e&&e.nodeType===Node.COMMENT_NODE}function _a(e){if(e){if(e.defaultView)return e instanceof e.defaultView.Document;if(e.ownerDocument&&e.ownerDocument.defaultView)return e instanceof e.ownerDocument.defaultView.Node}return!1}ya.fastDiff=va;var Ca=C(6062),xa=C.n(Ca),Aa=C(9315),Ea={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Aa.Z,Ea),Aa.Z.locals;var Sa=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this)).domDocuments=new Set,i.domConverter=e,i.markedAttributes=new Set,i.markedChildren=new Set,i.markedTexts=new Set,i.selection=r,i.set("isFocused",!1),i.set("isSelecting",!1),Do.isBlink&&!Do.isAndroid&&i.on("change:isSelecting",(function(){i.isSelecting||i.render()})),i.set("isComposing",!1),i.on("change:isComposing",(function(){i.isComposing||i.render()})),i._inlineFiller=null,i._fakeSelectionContainer=null,i}return b(n,[{key:"markToSync",value:function(e,t){if("text"===e)this.domConverter.mapViewToDom(t.parent)&&this.markedTexts.add(t);else{if(!this.domConverter.mapViewToDom(t))return;if("attributes"===e)this.markedAttributes.add(t);else{if("children"!==e)throw new P("view-renderer-unknown-type",this);this.markedChildren.add(t)}}}},{key:"render",value:function(){if(!this.isComposing||Do.isAndroid){var e,t=null,n=!(Do.isBlink&&!Do.isAndroid)||!this.isSelecting,r=h(this.markedChildren);try{for(r.s();!(e=r.n()).done;){var i=e.value;this._updateChildrenMappings(i)}}catch(g){r.e(g)}finally{r.f()}n?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller))&&t.parent.is("$text")&&(t=co._createBefore(t.parent));var o,a=h(this.markedAttributes);try{for(a.s();!(o=a.n()).done;){var s=o.value;this._updateAttrs(s)}}catch(g){a.e(g)}finally{a.f()}var l,u=h(this.markedChildren);try{for(u.s();!(l=u.n()).done;){var c=l.value;this._updateChildren(c,{inlineFillerPosition:t})}}catch(g){u.e(g)}finally{u.f()}var d,f=h(this.markedTexts);try{for(f.s();!(d=f.n()).done;){var p=d.value;!this.markedChildren.has(p.parent)&&this.domConverter.mapViewToDom(p.parent)&&this._updateText(p,{inlineFillerPosition:t})}}catch(g){f.e(g)}finally{f.f()}if(n)if(t){var v=this.domConverter.viewPositionToDom(t),m=v.parent.ownerDocument;da(v.parent)?this._inlineFiller=v.parent:this._inlineFiller=Za(m,v.parent,v.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}}},{key:"_updateChildrenMappings",value:function(e){if(this.domConverter.mapViewToDom(e)){var t=Array.from(this.domConverter.mapViewToDom(e).childNodes),n=Array.from(this.domConverter.viewChildrenToDom(e,{withChildren:!1})),r=this._diffNodeLists(t,n),i=this._findReplaceActions(r,t,n);if(-1!==i.indexOf("replace")){var o,a={equal:0,insert:0,delete:0},s=h(i);try{for(s.s();!(o=s.n()).done;){var l=o.value;if("replace"===l){var u=a.equal+a.insert,c=a.equal+a.delete,d=e.getChild(u);!d||d.is("uiElement")||d.is("rawElement")||this._updateElementMappings(d,t[c]),ka(n[u]),a.equal++}else a[l]++}}catch(f){s.e(f)}finally{s.f()}}}}},{key:"_updateElementMappings",value:function(e,t){this.domConverter.unbindDomElement(t),this.domConverter.bindElements(t,e),this.markedChildren.add(e),this.markedAttributes.add(e)}},{key:"_getInlineFillerPosition",value:function(){var e=this.selection.getFirstPosition();return e.parent.is("$text")?co._createBefore(e.parent):e}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=this.domConverter.viewPositionToDom(e);return!!(t&&aa(t.parent)&&da(t.parent))}},{key:"_removeInlineFiller",value:function(){var e=this._inlineFiller;if(!da(e))throw new P("view-renderer-filler-was-lost",this);fa(e)?e.remove():e.data=e.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var e=this.selection.getFirstPosition(),t=e.parent,n=e.offset;if(!this.domConverter.mapViewToDom(t.root))return!1;if(!t.is("element"))return!1;if(!function(e){if("false"==e.getAttribute("contenteditable"))return!1;var t=e.findAncestor((function(e){return e.hasAttribute("contenteditable")}));return!t||"true"==t.getAttribute("contenteditable")}(t))return!1;if(n===t.getFillerOffset())return!1;var r=e.nodeBefore,i=e.nodeAfter;return!(r instanceof ei||i instanceof ei)&&(!Do.isAndroid||!r&&!i)}},{key:"_updateText",value:function(e,t){var n=this.domConverter.findCorrespondingDomText(e),r=this.domConverter.viewToDom(e).data,i=t.inlineFillerPosition;i&&i.parent==e.parent&&i.offset==e.index&&(r=ca+r),Pa(n,r)}},{key:"_updateAttrs",value:function(e){var t=this.domConverter.mapViewToDom(e);if(t){var n,r=Array.from(t.attributes).map((function(e){return e.name})),i=e.getAttributeKeys(),o=h(i);try{for(o.s();!(n=o.n()).done;){var a=n.value;this.domConverter.setDomElementAttribute(t,a,e.getAttribute(a),e)}}catch(c){o.e(c)}finally{o.f()}var s,l=h(r);try{for(l.s();!(s=l.n()).done;){var u=s.value;e.hasAttribute(u)||this.domConverter.removeDomElementAttribute(t,u)}}catch(c){l.e(c)}finally{l.f()}}}},{key:"_updateChildren",value:function(e,t){var n=this.domConverter.mapViewToDom(e);if(n){if(Do.isAndroid)for(var r=null,i=0,o=Array.from(n.childNodes);i3&&void 0!==arguments[3]?arguments[3]:{};if(-1===e.indexOf("insert")||-1===e.indexOf("delete"))return e;var i,o=[],a=[],s=[],l={equal:0,insert:0,delete:0},u=h(e);try{for(u.s();!(i=u.n()).done;){var c=i.value;"insert"===c?s.push(n[l.equal+l.insert]):"delete"===c?a.push(t[l.equal+l.delete]):(o=o.concat(ya(a,s,r.replaceText?Ta:Ma).map((function(e){return"equal"===e?"replace":e}))),o.push("equal"),a=[],s=[]),l[c]++}}catch(d){u.e(d)}finally{u.f()}return o.concat(ya(a,s,r.replaceText?Ta:Ma).map((function(e){return"equal"===e?"replace":e})))}},{key:"_markDescendantTextToSync",value:function(e){if(e)if(e.is("$text"))this.markedTexts.add(e);else if(e.is("element")){var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;this._markDescendantTextToSync(r)}}catch(i){n.e(i)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(!Do.isBlink||Do.isAndroid||!this.isSelecting||this.markedChildren.size){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var e=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&e&&(this.selection.isFake?this._updateFakeSelection(e):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(e)):this.isComposing&&Do.isAndroid||this._updateDomSelection(e))}}},{key:"_updateFakeSelection",value:function(e){var t=e.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(e){var t=e.createElement("div");return t.className="ck-fake-selection-container",Object.assign(t.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),t.textContent="\xa0",t}(t));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),this._fakeSelectionNeedsUpdate(e)){n.parentElement&&n.parentElement==e||e.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||"\xa0";var r=t.getSelection(),i=t.createRange();r.removeAllRanges(),i.selectNodeContents(n),r.addRange(i)}}},{key:"_updateDomSelection",value:function(e){var t=e.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(t)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),r=this.domConverter.viewPositionToDom(this.selection.focus);t.collapse(n.parent,n.offset),t.extend(r.parent,r.offset),Do.isGecko&&function(e,t){var n=e.parent;if(n.nodeType==Node.ELEMENT_NODE&&e.offset==n.childNodes.length-1){var r=n.childNodes[e.offset];r&&"BR"==r.tagName&&t.addRange(t.getRangeAt(0))}}(r,t)}}},{key:"_domSelectionNeedsUpdate",value:function(e){if(!this.domConverter.isDomSelectionCorrect(e))return!0;var t=e&&this.domConverter.domSelectionToView(e);return(!t||!this.selection.isEqual(t))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(t))}},{key:"_fakeSelectionNeedsUpdate",value:function(e){var t=this._fakeSelectionContainer,n=e.ownerDocument.getSelection();return!t||t.parentElement!==e||n.anchorNode!==t&&!t.contains(n.anchorNode)||t.textContent!==this.selection.fakeSelectionLabel}},{key:"_removeDomSelection",value:function(){var e,t=h(this.domDocuments);try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n.getSelection();if(r.rangeCount){var i=n.activeElement,o=this.domConverter.mapDomToView(i);i&&o&&r.removeAllRanges()}}}catch(a){t.e(a)}finally{t.f()}}},{key:"_removeFakeSelection",value:function(){var e=this._fakeSelectionContainer;e&&e.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var e=this.selection.editableElement;e&&this.domConverter.focus(e)}}}]),n}(ie);function Za(e,t,n){var r=t instanceof Array?t:t.childNodes,i=r[n];if(aa(i))return i.data=ca+i.data,i;var o=e.createTextNode(ca);return Array.isArray(t)?r.splice(n,0,o):ba(t,n,o),o}function Ma(e,t){return _a(e)&&_a(t)&&!aa(e)&&!aa(t)&&!wa(e)&&!wa(t)&&e.tagName.toLowerCase()===t.tagName.toLowerCase()}function Ta(e,t){return _a(e)&&_a(t)&&aa(e)&&aa(t)}function Ia(e,t,n){return t===n||(aa(t)&&aa(n)?t.data===n.data:!(!e.isBlockFiller(t)||!e.isBlockFiller(n)))}function Pa(e,t){var n=e.data;if(n!=t){var r,i=va(n,t),o=h(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;"insert"===a.type?e.insertData(a.index,a.values.join("")):e.deleteData(a.index,a.howMany)}}catch(s){o.e(s)}finally{o.f()}}}function Da(e){for(var t=0;e.previousSibling;)e=e.previousSibling,t++;return t}function Oa(e){for(var t=[],n=e;n&&n.nodeType!=Node.DOCUMENT_NODE;)t.unshift(n),n=n.parentNode;return t}var Na=ua(Ur.document),Ra=sa(Ur.document),ja=la(Ur.document),La="data-ck-unsafe-attribute-",Fa="data-ck-unsafe-element",za=function(){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};k(this,e),this.document=t,this.renderingMode=n.renderingMode||"editing",this.blockFillerMode=n.blockFillerMode||("editing"===this.renderingMode?"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?Ur.document:Ur.document.implementation.createHTMLDocument(""),this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new ri,this._encounteredRawContentDomNodes=new WeakSet}return b(e,[{key:"bindFakeSelection",value:function(e,t){this._fakeSelectionMapping.set(e,new vo(t))}},{key:"fakeSelectionToView",value:function(e){return this._fakeSelectionMapping.get(e)}},{key:"bindElements",value:function(e,t){this._domToViewMapping.set(e,t),this._viewToDomMapping.set(t,e)}},{key:"unbindDomElement",value:function(e){var t=this._domToViewMapping.get(e);if(t){this._domToViewMapping.delete(e),this._viewToDomMapping.delete(t);for(var n=0,r=Array.from(e.children);n0;)r.appendChild(i[0]);for(var o,a=n.createTreeWalker(r,NodeFilter.SHOW_ELEMENT),s=[];o=a.nextNode();)s.push(o);for(var l=0,u=s;l1&&void 0!==arguments[1]?arguments[1]:{};if(e.is("$text")){var r=this._processDataFromViewText(e);return this._domDocument.createTextNode(r)}if(this.mapViewToDom(e))return this.mapViewToDom(e);if(e.is("documentFragment"))t=this._domDocument.createDocumentFragment(),n.bind&&this.bindDocumentFragments(t,e);else{if(e.is("uiElement"))return t="$comment"===e.name?this._domDocument.createComment(e.getCustomProperty("$rawContent")):e.render(this._domDocument,this),n.bind&&this.bindElements(t,e),t;this._shouldRenameElement(e.name)?(Ua(e.name),t=this._createReplacementDomElement(e.name)):t=e.hasAttribute("xmlns")?this._domDocument.createElementNS(e.getAttribute("xmlns"),e.name):this._domDocument.createElement(e.name),e.is("rawElement")&&e.render(t,this),n.bind&&this.bindElements(t,e);var i,o=h(e.getAttributeKeys());try{for(o.s();!(i=o.n()).done;){var a=i.value;this.setDomElementAttribute(t,a,e.getAttribute(a),e)}}catch(c){o.e(c)}finally{o.f()}}if(!1!==n.withChildren){var s,l=h(this.viewChildrenToDom(e,n));try{for(l.s();!(s=l.n()).done;){var u=s.value;t.appendChild(u)}}catch(c){l.e(c)}finally{l.f()}}return t}},{key:"setDomElementAttribute",value:function(e,t,n,r){var i=this.shouldRenderAttribute(t,n,e.tagName.toLowerCase())||r&&r.shouldRenderUnsafeAttribute(t);i||D("domconverter-unsafe-attribute-detected",{domElement:e,key:t,value:n}),e.hasAttribute(t)&&!i?e.removeAttribute(t):e.hasAttribute(La+t)&&i&&e.removeAttribute(La+t),e.setAttribute(i?t:La+t,n)}},{key:"removeDomElementAttribute",value:function(e,t){t!=Fa&&(e.removeAttribute(t),e.removeAttribute(La+t))}},{key:"viewChildrenToDom",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return f().mark((function r(){var i,o,a,s,l,u;return f().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:i=e.getFillerOffset&&e.getFillerOffset(),o=0,a=h(e.getChildren()),r.prev=3,a.s();case 5:if((s=a.n()).done){r.next=22;break}if(l=s.value,r.t0=i===o,!r.t0){r.next=11;break}return r.next=11,t._getBlockFiller();case 11:if(!(u=l.is("element")&&l.getCustomProperty("dataPipeline:transparentRendering"))||"data"!=t.renderingMode){r.next=16;break}return r.delegateYield(t.viewChildrenToDom(l,n),"t1",14);case 14:r.next=19;break;case 16:return u&&D("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:l}),r.next=19,t.viewToDom(l,n);case 19:o++;case 20:r.next=5;break;case 22:r.next=27;break;case 24:r.prev=24,r.t2=r.catch(3),a.e(r.t2);case 27:return r.prev=27,a.f(),r.finish(27);case 30:if(r.t3=i===o,!r.t3){r.next=34;break}return r.next=34,t._getBlockFiller();case 34:case"end":return r.stop()}}),r,null,[[3,24,27,30]])}))()}},{key:"viewRangeToDom",value:function(e){var t=this.viewPositionToDom(e.start),n=this.viewPositionToDom(e.end),r=this._domDocument.createRange();return r.setStart(t.parent,t.offset),r.setEnd(n.parent,n.offset),r}},{key:"viewPositionToDom",value:function(e){var t,n,r,i=e.parent;if(i.is("$text")){var o=this.findCorrespondingDomText(i);if(!o)return null;var a=e.offset;return da(o)&&(a+=7),{parent:o,offset:a}}if(0===e.offset){if(!(t=this.mapViewToDom(i)))return null;r=t.childNodes[0]}else{var s=e.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(s)))return null;t=n.parentNode,r=n.nextSibling}return aa(r)&&da(r)?{parent:r,offset:7}:{parent:t,offset:n?Da(n)+1:0}}},{key:"domToView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(e))return null;var n,r=this.getHostViewElement(e);if(r)return r;if(wa(e)&&t.skipComments)return null;if(aa(e)){if(fa(e))return null;var i=this._processDataFromDomText(e);return""===i?null:new ei(this.document,i)}if(this.mapDomToView(e))return this.mapDomToView(e);if(this.isDocumentFragment(e))n=new $o(this.document),t.bind&&this.bindDocumentFragments(e,n);else{n=this._createViewElement(e,t),t.bind&&this.bindElements(e,n);var o=e.attributes;if(o)for(var a=o.length,s=0;s1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(e))return this.domPositionToView(e.parentNode,Da(e));var n=this.mapDomToView(e);if(n&&(n.is("uiElement")||n.is("rawElement")))return co._createBefore(n);if(aa(e)){if(fa(e))return this.domPositionToView(e.parentNode,Da(e));var r=this.findCorrespondingViewText(e),i=t;return r?(da(e)&&(i=(i-=7)<0?0:i),new co(r,i)):null}if(0===t){var o=this.mapDomToView(e);if(o)return new co(o,0)}else{var a=e.childNodes[t-1];if(aa(a)&&fa(a))return this.domPositionToView(a.parentNode,Da(a));var s=aa(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new co(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(e){return this.getHostViewElement(e)||this._domToViewMapping.get(e)}},{key:"findCorrespondingViewText",value:function(e){if(fa(e))return null;var t=this.getHostViewElement(e);if(t)return t;var n=e.previousSibling;if(n){if(!this.isElement(n))return null;var r=this.mapDomToView(n);if(r){var i=r.nextSibling;return i instanceof ei?i:null}}else{var o=this.mapDomToView(e.parentNode);if(o){var a=o.getChild(0);return a instanceof ei?a:null}}return null}},{key:"mapViewToDom",value:function(e){return this._viewToDomMapping.get(e)}},{key:"findCorrespondingDomText",value:function(e){var t=e.previousSibling;return t&&this.mapViewToDom(t)?this.mapViewToDom(t).nextSibling:!t&&e.parent&&this.mapViewToDom(e.parent)?this.mapViewToDom(e.parent).childNodes[0]:null}},{key:"focus",value:function(e){var t=this.mapViewToDom(e);if(t&&t.ownerDocument.activeElement!==t){var n=Ur.window,r=n.scrollX,i=n.scrollY,o=[];Ba(t,(function(e){var t=e.scrollLeft,n=e.scrollTop;o.push([t,n])})),t.focus(),Ba(t,(function(e){var t=o.shift(),n=p(t,2),r=n[0],i=n[1];e.scrollLeft=r,e.scrollTop=i})),Ur.window.scrollTo(r,i)}}},{key:"isElement",value:function(e){return e&&e.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(e){return e&&e.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isBlockFiller",value:function(e){return"br"==this.blockFillerMode?e.isEqualNode(Na):!("BR"!==e.tagName||!Va(e,this.blockElements)||1!==e.parentNode.childNodes.length)||e.isEqualNode(ja)||function(e,t){return e.isEqualNode(Ra)&&Va(e,t)&&1===e.parentNode.childNodes.length}(e,this.blockElements)}},{key:"isDomSelectionBackward",value:function(e){if(e.isCollapsed)return!1;var t=this._domDocument.createRange();try{t.setStart(e.anchorNode,e.anchorOffset),t.setEnd(e.focusNode,e.focusOffset)}catch(e){return!1}var n=t.collapsed;return t.detach(),n}},{key:"getHostViewElement",value:function(e){var t=Oa(e);for(t.pop();t.length;){var n=t.pop(),r=this._domToViewMapping.get(n);if(r&&(r.is("uiElement")||r.is("rawElement")))return r}return null}},{key:"isDomSelectionCorrect",value:function(e){return this._isDomSelectionPositionCorrect(e.anchorNode,e.anchorOffset)&&this._isDomSelectionPositionCorrect(e.focusNode,e.focusOffset)}},{key:"registerRawContentMatcher",value:function(e){this._rawContentElementMatcher.add(e)}},{key:"_getBlockFiller",value:function(){switch(this.blockFillerMode){case"nbsp":return sa(this._domDocument);case"markedNbsp":return la(this._domDocument);case"br":return ua(this._domDocument)}}},{key:"_isDomSelectionPositionCorrect",value:function(e,t){if(aa(e)&&da(e)&&t<7)return!1;if(this.isElement(e)&&da(e.childNodes[t]))return!1;var n=this.mapDomToView(e);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(e){var t=this,n=e.data;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return n;if(" "==n.charAt(0)){var r=this._getTouchingInlineViewNode(e,!1);!(r&&r.is("$textProxy")&&this._nodeEndsWithSpace(r))&&r||(n="\xa0"+n.substr(1))}if(" "==n.charAt(n.length-1)){var i=this._getTouchingInlineViewNode(e,!0),o=i&&i.is("$textProxy")&&" "==i.data.charAt(0);" "!=n.charAt(n.length-2)&&i&&!o||(n=n.substr(0,n.length-1)+"\xa0")}return n.replace(/ {2}/g," \xa0")}},{key:"_nodeEndsWithSpace",value:function(e){var t=this;if(e.getAncestors().some((function(e){return t.preElements.includes(e.name)})))return!1;var n=this._processDataFromViewText(e);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(e){var t=e.data;if(function(e,t){return Oa(e).some((function(e){return e.tagName&&t.includes(e.tagName.toLowerCase())}))}(e,this.preElements))return pa(e);t=t.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(e,!1),r=this._getTouchingInlineDomNode(e,!0),i=this._checkShouldLeftTrimDomText(e,n),o=this._checkShouldRightTrimDomText(e,r);i&&(t=t.replace(/^ /,"")),o&&(t=t.replace(/ $/,"")),t=(t=pa(new Text(t))).replace(/ \u00A0/g," ");var a=r&&this.isElement(r)&&"BR"!=r.tagName,s=r&&aa(r)&&" "==r.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(t)||!r||a||s)&&(t=t.replace(/\u00A0$/," ")),(i||n&&this.isElement(n)&&"BR"!=n.tagName)&&(t=t.replace(/^\u00A0/," ")),t}},{key:"_checkShouldLeftTrimDomText",value:function(e,t){return!t||(this.isElement(t)?"BR"===t.tagName:!this._encounteredRawContentDomNodes.has(e.previousSibling)&&/[^\S\u00A0]/.test(t.data.charAt(t.data.length-1)))}},{key:"_checkShouldRightTrimDomText",value:function(e,t){return!t&&!da(e)}},{key:"_getTouchingInlineViewNode",value:function(e,t){var n,r=new uo({startPosition:t?co._createAfter(e):co._createBefore(e),direction:t?"forward":"backward"}),i=h(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("element")&&this.inlineObjectElements.includes(o.item.name))return o.item;if(o.item.is("containerElement"))return null;if(o.item.is("element","br"))return null;if(o.item.is("$textProxy"))return o.item}}catch(a){i.e(a)}finally{i.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(e,t){if(!e.parentNode)return null;var n=t?"firstChild":"lastChild",r=t?"nextSibling":"previousSibling",i=!0,o=e;do{if(!i&&o[n]?o=o[n]:o[r]?(o=o[r],i=!1):(o=o.parentNode,i=!0),!o||this._isBlockElement(o))return null}while(!aa(o)&&"BR"!=o.tagName&&!this._isInlineObjectElement(o));return o}},{key:"_isBlockElement",value:function(e){return this.isElement(e)&&this.blockElements.includes(e.tagName.toLowerCase())}},{key:"_isInlineObjectElement",value:function(e){return this.isElement(e)&&this.inlineObjectElements.includes(e.tagName.toLowerCase())}},{key:"_createViewElement",value:function(e,t){if(wa(e))return new Uo(this.document,"$comment");var n=t.keepOriginalCase?e.tagName:e.tagName.toLowerCase();return new no(this.document,n)}},{key:"_isViewElementWithRawContent",value:function(e,t){return!1!==t.withChildren&&!!this._rawContentElementMatcher.match(e)}},{key:"_shouldRenameElement",value:function(e){var t=e.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(t)}},{key:"_createReplacementDomElement",value:function(e,t){var n=this._domDocument.createElement("span");if(n.setAttribute(Fa,e),t){for(;t.firstChild;)n.appendChild(t.firstChild);var r,i=h(t.getAttributeNames());try{for(i.s();!(r=i.n()).done;){var o=r.value;n.setAttribute(o,t.getAttribute(o))}}catch(a){i.e(a)}finally{i.f()}}return n}}]),e}();function Ba(e,t){for(var n=e;n;)t(n),n=n.parentElement}function Va(e,t){var n=e.parentNode;return!!n&&!!n.tagName&&t.includes(n.tagName.toLowerCase())}function Ua(e){"script"===e&&D("domconverter-unsafe-script-element-detected"),"style"===e&&D("domconverter-unsafe-style-element-detected")}function Ha(e){var t=Object.prototype.toString.apply(e);return"[object Window]"==t||"[object global]"==t}function qa(e){return function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"listenTo",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(_a(e)||Ha(e)){var i={capture:!!r.useCapture,passive:!!r.usePassive},o=this._getProxyEmitter(e,i)||new Ga(e,i);this.listenTo(o,t,n,r)}else U.prototype.listenTo.call(this,e,t,n,r)}},{key:"stopListening",value:function(e,t,n){if(_a(e)||Ha(e)){var r,i=this._getAllProxyEmitters(e),o=h(i);try{for(o.s();!(r=o.n()).done;){var a=r.value;this.stopListening(a,t,n)}}catch(s){o.e(s)}finally{o.f()}}else U.prototype.stopListening.call(this,e,t,n)}},{key:"_getProxyEmitter",value:function(e,t){return function(e,t){var n=e[F];return n&&n[t]?n[t].emitter:null}(this,$a(e,t))}},{key:"_getAllProxyEmitters",value:function(e){var t=this;return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((function(n){return t._getProxyEmitter(e,n)})).filter((function(e){return!!e}))}}]),n}(e)}var Wa=qa(U);["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach((function(e){qa[e]=Wa.prototype[e]}));var Ga=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),i=t.call(this),H(d(i),$a(e,r)),i._domNode=e,i._options=r,i}return b(n,[{key:"attach",value:function(e){if(!this._domListeners||!this._domListeners[e]){var t=this._createDomListener(e);this._domNode.addEventListener(e,t,this._options),this._domListeners||(this._domListeners={}),this._domListeners[e]=t}}},{key:"detach",value:function(e){var t;!this._domListeners[e]||(t=this._events[e])&&t.callbacks.length||this._domListeners[e].removeListener()}},{key:"_addEventListener",value:function(e,t,n){this.attach(e),U.prototype._addEventListener.call(this,e,t,n)}},{key:"_removeEventListener",value:function(e,t){U.prototype._removeEventListener.call(this,e,t),this.detach(e)}},{key:"_createDomListener",value:function(e){var t=this,n=function(n){t.fire(e,n)};return n.removeListener=function(){t._domNode.removeEventListener(e,n,t._options),delete t._domListeners[e]},n}}]),n}(U);function $a(e,t){var n,r=function(e){return e["data-ck-expando"]||(e["data-ck-expando"]=M())}(e),i=h(Object.keys(t).sort());try{for(i.s();!(n=i.n()).done;){var o=n.value;t[o]&&(r+="-"+o)}}catch(a){i.e(a)}finally{i.f()}return r}var Ka=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).view=e,r.document=e.document,r.isEnabled=!1,r}return b(n,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(e){return e&&3===e.nodeType&&(e=e.parentNode),!(!e||1!==e.nodeType)&&e.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),n}(Wa),Ya=$i((function(e,t){zt(t,An(t),e)})),Ja=function(){function e(t,n,r){k(this,e),this.view=t,this.document=t.document,this.domEvent=n,this.domTarget=n.target,Ya(this,r)}return b(e,[{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}},{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}}]),e}(),Qa=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).useCapture=!1,r}return b(n,[{key:"observe",value:function(e){var t=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){t.listenTo(e,n,(function(e,n){t.isEnabled&&!t.checkShouldIgnoreEventFromTarget(n.target)&&t.onDomEvent(n)}),{useCapture:t.useCapture})}))}},{key:"fire",value:function(e,t,n){this.isEnabled&&this.document.fire(e,new Ja(this.view,t,n))}}]),n}(Ka),Xa=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).domEventType=["keydown","keyup"],r}return b(n,[{key:"onDomEvent",value:function(e){var t={keyCode:e.keyCode,altKey:e.altKey,ctrlKey:e.ctrlKey,shiftKey:e.shiftKey,metaKey:e.metaKey,get keystroke(){return Fo(this)}};this.fire(e.type,e,t)}}]),n}(Qa),es=function(){return ge.Date.now()},ts=/\s/,ns=function(e){for(var t=e.length;t--&&ts.test(e.charAt(t)););return t},rs=/^\s+/,is=function(e){return e?e.slice(0,ns(e)+1).replace(rs,""):e},os=/^[-+]0x[0-9a-f]+$/i,as=/^0b[01]+$/i,ss=/^0o[0-7]+$/i,ls=parseInt,us=function(e){if("number"==typeof e)return e;if(ai(e))return NaN;if(J(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=J(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=is(e);var n=as.test(e);return n||ss.test(e)?ls(e.slice(2),n?2:8):os.test(e)?NaN:+e},cs=Math.max,ds=Math.min,fs=function(e,t,n){var r,i,o,a,s,l,u=0,c=!1,d=!1,f=!0;if("function"!=typeof e)throw new TypeError("Expected a function");function p(t){var n=r,o=i;return r=i=void 0,u=t,a=e.apply(o,n)}function h(e){return u=e,s=setTimeout(m,t),c?p(e):a}function v(e){var n=e-l;return void 0===l||n>=t||n<0||d&&e-u>=o}function m(){var e=es();if(v(e))return g(e);s=setTimeout(m,function(e){var n=t-(e-l);return d?ds(n,o-(e-u)):n}(e))}function g(e){return s=void 0,f&&r?p(e):(r=i=void 0,a)}function y(){var e=es(),n=v(e);if(r=arguments,i=this,l=e,n){if(void 0===s)return h(l);if(d)return clearTimeout(s),s=setTimeout(m,t),p(l)}return void 0===s&&(s=setTimeout(m,t)),a}return t=us(t)||0,J(n)&&(c=!!n.leading,o=(d="maxWait"in n)?cs(us(n.maxWait)||0,t):o,f="trailing"in n?!!n.trailing:f),y.cancel=function(){void 0!==s&&clearTimeout(s),u=0,r=l=i=s=void 0},y.flush=function(){return void 0===s?a:g(es())},y},ps=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._fireSelectionChangeDoneDebounced=fs((function(e){r.document.fire("selectionChangeDone",e)}),200),r}return b(n,[{key:"observe",value:function(){var e=this,t=this.document;t.on("arrowKey",(function(n,r){t.selection.isFake&&e.isEnabled&&r.preventDefault()}),{context:"$capture"}),t.on("arrowKey",(function(n,r){t.selection.isFake&&e.isEnabled&&e._handleSelectionMove(r.keyCode)}),{priority:"lowest"})}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(e){var t=this.document.selection,n=new vo(t.getRanges(),{backward:t.isBackward,fake:!1});e!=jo.arrowleft&&e!=jo.arrowup||n.setTo(n.getFirstPosition()),e!=jo.arrowright&&e!=jo.arrowdown||n.setTo(n.getLastPosition());var r={oldSelection:t,newSelection:n,domSelection:null};this.document.fire("selectionChange",r),this._fireSelectionChangeDoneDebounced(r)}}]),n}(Ka),hs=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this},vs=function(e){return this.__data__.has(e)};function ms(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new It;++ts))return!1;var u=o.get(e),c=o.get(t);if(u&&c)return u==t&&c==e;var d=-1,f=!0,p=2&n?new gs:void 0;for(o.set(e,t),o.set(t,e);++d60))if(this.selection.isSimilar(r))this.view.forceRender();else{var i={oldSelection:this.selection,newSelection:r,domSelection:n};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Ka),Ls=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),(r=t.call(this,e)).domEventType=["focus","blur"],r.useCapture=!0;var i=r.document;return i.on("focus",(function(){i.isFocused=!0,r._renderTimeoutId=setTimeout((function(){return e.change((function(){}))}),50)})),i.on("blur",(function(t,n){var r=i.selection.editableElement;null!==r&&r!==n.target||(i.isFocused=!1,e.change((function(){})))})),r}return b(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),s(l(n.prototype),"destroy",this).call(this)}}]),n}(Qa),Fs=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),(r=t.call(this,e)).domEventType=["compositionstart","compositionupdate","compositionend"];var i=r.document;return i.on("compositionstart",(function(){i.isComposing=!0}),{priority:"low"}),i.on("compositionend",(function(){i.isComposing=!1}),{priority:"low"}),r}return b(n,[{key:"onDomEvent",value:function(e){this.fire(e.type,e,{data:e.data})}}]),n}(Qa),zs=function(){function e(t){k(this,e),this.files=function(e){var t=Array.from(e.files||[]),n=Array.from(e.items||[]);return t.length?t:n.filter((function(e){return"file"===e.kind})).map((function(e){return e.getAsFile()}))}(t),this._native=t}return b(e,[{key:"types",get:function(){return this._native.types}},{key:"getData",value:function(e){return this._native.getData(e)}},{key:"setData",value:function(e,t){this._native.setData(e,t)}},{key:"effectAllowed",get:function(){return this._native.effectAllowed},set:function(e){this._native.effectAllowed=e}},{key:"dropEffect",get:function(){return this._native.dropEffect},set:function(e){this._native.dropEffect=e}},{key:"isCanceled",get:function(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}]),e}(),Bs=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).domEventType=["beforeinput"],r}return b(n,[{key:"onDomEvent",value:function(e){var t=e.getTargetRanges(),n=this.view,r=n.document,i=null,o=null,a=[];if(e.dataTransfer&&(i=new zs(e.dataTransfer)),null!==e.data?o=e.data:i&&(o=i.getData("text/plain")),r.selection.isFake)a=Array.from(r.selection.getRanges());else if(t.length)a=t.map((function(e){return n.domConverter.domRangeToView(e)}));else if(Do.isAndroid){var s=e.target.ownerDocument.defaultView.getSelection();a=Array.from(n.domConverter.domSelectionToView(s).getRanges())}if(Do.isAndroid&&"insertCompositionText"==e.inputType&&o&&o.endsWith("\n"))this.fire(e.type,e,{inputType:"insertParagraph",targetRanges:[n.createRange(a[0].end)]});else if("insertText"==e.inputType&&o&&o.includes("\n"))for(var l=o.split(/\n{1,2}/g),u=a,c=0;c1?t-1:0),r=1;r2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],i=n&&n.xmlns,o=i?e.createElementNS(i,t):e.createElement(t);for(var a in n)o.setAttribute(a,n[a]);!Hs(r)&&Lr(r)||(r=[r]);var s,l=h(r);try{for(l.s();!(s=l.n()).done;){var u=s.value;Hs(u)&&(u=e.createTextNode(u)),o.appendChild(u)}}catch(c){l.e(c)}finally{l.f()}return o}var Ws=function(){function e(t,n){k(this,e),e._observerInstance||e._createObserver(),this._element=t,this._callback=n,e._addElementCallback(t,n),e._observerInstance.observe(t)}return b(e,[{key:"destroy",value:function(){e._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(t,n){e._elementCallbacks||(e._elementCallbacks=new Map);var r=e._elementCallbacks.get(t);r||(r=new Set,e._elementCallbacks.set(t,r)),r.add(n)}},{key:"_deleteElementCallback",value:function(t,n){var r=e._getElementCallbacks(t);r&&(r.delete(n),r.size||(e._elementCallbacks.delete(t),e._observerInstance.unobserve(t))),e._elementCallbacks&&!e._elementCallbacks.size&&(e._observerInstance=null,e._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(t){return e._elementCallbacks?e._elementCallbacks.get(t):null}},{key:"_createObserver",value:function(){e._observerInstance=new Ur.window.ResizeObserver((function(t){var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=e._getElementCallbacks(i.target);if(o){var a,s=h(o);try{for(s.s();!(a=s.n()).done;)(0,a.value)(i)}catch(l){s.e(l)}finally{s.f()}}}}catch(l){r.e(l)}finally{r.f()}}))}}]),e}();function Gs(e){return!!(e&&e.getClientRects&&e.getClientRects().length)}function $s(e){var t=e.next();return t.done?null:t.value}Ws._observerInstance=null,Ws._elementCallbacks=null;var Ks=function(e){m(n,e);var t=g(n);function n(){var e;return k(this,n),(e=t.call(this)).set("isFocused",!1),e.set("focusedElement",null),e._elements=new Set,e._nextEventLoopTimeout=null,e}return b(n,[{key:"add",value:function(e){var t=this;if(this._elements.has(e))throw new P("focustracker-add-element-already-exist",this);this.listenTo(e,"focus",(function(){return t._focus(e)}),{useCapture:!0}),this.listenTo(e,"blur",(function(){return t._blur()}),{useCapture:!0}),this._elements.add(e)}},{key:"remove",value:function(e){e===this.focusedElement&&this._blur(),this._elements.has(e)&&(this.stopListening(e),this._elements.delete(e))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(e){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=e,this.isFocused=!0}},{key:"_blur",value:function(){var e=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){e.focusedElement=null,e.isFocused=!1}),0)}}]),n}(qa(ie)),Ys=function(){function e(){k(this,e),this._listener=new Wa}return b(e,[{key:"listenTo",value:function(e){var t=this;this._listener.listenTo(e,"keydown",(function(e,n){t._listener.fire("_keydown:"+Fo(n),n)}))}},{key:"set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=zo(e),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+r,(function(e,n){t(n,(function(){n.preventDefault(),n.stopPropagation(),e.stop()})),e.return=!0}),{priority:i})}},{key:"press",value:function(e){return!!this._listener.fire("_keydown:"+Fo(e),e)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),e}(),Js=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).document.on("keydown",(function(e,t){if(r.isEnabled&&((i=t.keyCode)==jo.arrowright||i==jo.arrowleft||i==jo.arrowup||i==jo.arrowdown)){var n=new go(r.document,"arrowKey",r.document.selection.getFirstRange());r.document.fire(n,t),n.stop.called&&e.stop()}var i})),r}return b(n,[{key:"observe",value:function(){}}]),n}(Ka),Qs=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).document;return i.on("keydown",(function(e,t){if(r.isEnabled&&t.keyCode==jo.tab&&!t.ctrlKey){var n=new go(i,"tab",i.selection.getFirstRange());i.fire(n,t),n.stop.called&&e.stop()}})),r}return b(n,[{key:"observe",value:function(){}}]),n}(Ka);function Xs(e){return"[object Range]"==Object.prototype.toString.apply(e)}function el(e){var t=e.ownerDocument.defaultView.getComputedStyle(e);return{top:parseInt(t.borderTopWidth,10),right:parseInt(t.borderRightWidth,10),bottom:parseInt(t.borderBottomWidth,10),left:parseInt(t.borderLeftWidth,10)}}var tl=["top","right","bottom","left","width","height"],nl=function(){function e(t){k(this,e);var n=Xs(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),ol(t)||n)if(n){var r=e.getDomRangeRects(t);rl(this,e.getBoundingRect(r))}else rl(this,t.getBoundingClientRect());else if(Ha(t)){var i=t.innerWidth,o=t.innerHeight;rl(this,{top:0,right:i,bottom:o,left:0,width:i,height:o})}else rl(this,t)}return b(e,[{key:"clone",value:function(){return new e(this)}},{key:"moveTo",value:function(e,t){return this.top=t,this.right=e+this.width,this.bottom=t+this.height,this.left=e,this}},{key:"moveBy",value:function(e,t){return this.top+=t,this.right+=e,this.left+=e,this.bottom+=t,this}},{key:"getIntersection",value:function(t){var n={top:Math.max(this.top,t.top),right:Math.min(this.right,t.right),bottom:Math.min(this.bottom,t.bottom),left:Math.max(this.left,t.left),width:0,height:0};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new e(n)}},{key:"getIntersectionArea",value:function(e){var t=this.getIntersection(e);return t?t.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var t=this._source,n=this.clone();if(!il(t))for(var r=t.parentNode||t.commonAncestorContainer;r&&!il(r);){var i=new e(r),o=n.getIntersection(i);if(!o)return null;o.getArea()t.bottom}function ul(e,t){return e.topt.right}function fl(e){return Xs(e)?e.startContainer.ownerDocument.defaultView:e.ownerDocument.defaultView}function pl(e){if(Xs(e)){var t=e.commonAncestorContainer;return aa(t)&&(t=t.parentNode),t}return e.parentNode}function hl(e,t){var n=fl(e),r=new nl(e);if(n===t)return r;for(var i=n;i!=t;){var o=i.frameElement,a=new nl(o).excludeScrollbarsAndBorders();r.moveBy(a.left,a.top),i=i.parent}return r}var vl=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).document=new Ao(e),r.domConverter=new za(r.document),r.domRoots=new Map,r.set("isRenderingInProgress",!1),r.set("hasDomSelection",!1),r._renderer=new Sa(r.domConverter,r.document.selection),r._renderer.bind("isFocused","isSelecting","isComposing").to(r.document,"isFocused","isSelecting","isComposing"),r._initialDomRootAttributes=new WeakMap,r._observers=new Map,r._ongoingChange=!1,r._postFixersInProgress=!1,r._renderingDisabled=!1,r._hasChangedSinceTheLastRendering=!1,r._writer=new Ko(r.document),r.addObserver(Ns),r.addObserver(js),r.addObserver(Ls),r.addObserver(Xa),r.addObserver(ps),r.addObserver(Fs),r.addObserver(Js),r.addObserver(Bs),r.addObserver(Qs),r.document.on("arrowKey",ha,{priority:"low"}),Ho(d(r)),r.on("render",(function(){r._render(),r.document.fire("layoutChanged"),r._hasChangedSinceTheLastRendering=!1})),r.listenTo(r.document.selection,"change",(function(){r._hasChangedSinceTheLastRendering=!0})),r.listenTo(r.document,"change:isFocused",(function(){r._hasChangedSinceTheLastRendering=!0})),r}return b(n,[{key:"attachDomRoot",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",r=this.document.getRoot(n);r._name=e.tagName.toLowerCase();for(var i={},o=0,a=Array.from(e.attributes);o0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(e)}},{key:"addObserver",value:function(e){var t=this._observers.get(e);if(t)return t;t=new e(this),this._observers.set(e,t);var n,r=h(this.domRoots);try{for(r.s();!(n=r.n()).done;){var i=p(n.value,2),o=i[0],a=i[1];t.observe(a,o)}}catch(s){r.e(s)}finally{r.f()}return t.enable(),t}},{key:"getObserver",value:function(e){return this._observers.get(e)}},{key:"disableObservers",value:function(){var e,t=h(this._observers.values());try{for(t.s();!(e=t.n()).done;)e.value.disable()}catch(n){t.e(n)}finally{t.f()}}},{key:"enableObservers",value:function(){var e,t=h(this._observers.values());try{for(t.s();!(e=t.n()).done;)e.value.enable()}catch(n){t.e(n)}finally{t.f()}}},{key:"scrollToTheSelection",value:function(){var e=this.document.selection.getFirstRange();e&&function(e){for(var t=e.target,n=e.viewportOffset,r=void 0===n?0:n,i=fl(t),o=i,a=null;o;){sl(pl(o==i?t:a),(function(){return hl(t,o)}));var s=hl(t,o);if(al(o,s,r),o.parent!=o){if(a=o.frameElement,o=o.parent,!a)return}else o=null}}({target:this.domConverter.viewRangeToDom(e),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var e=this.document.selection.editableElement;e&&(this.domConverter.focus(e),this.forceRender())}}},{key:"change",value:function(e){if(this.isRenderingInProgress||this._postFixersInProgress)throw new P("cannot-change-view-tree",this);try{if(this._ongoingChange)return e(this._writer);this._ongoingChange=!0;var t=e(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),t}catch(e){P.rethrowUnexpectedError(e,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var e,t=h(this._observers.values());try{for(t.s();!(e=t.n()).done;)e.value.destroy()}catch(n){t.e(n)}finally{t.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(e,t){return co._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return co._createAfter(e)}},{key:"createPositionBefore",value:function(e){return co._createBefore(e)}},{key:"createRange",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"getCommonAncestor",value:function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(t),r=e.getAncestors(t),i=0;n[i]==r[i]&&n[i];)i++;return 0===i?null:n[i-1]}},{key:"isBefore",value:function(e){if(this==e)return!1;if(this.root!==e.root)return!1;var t=this.getPath(),n=e.getPath(),r=Jr(t,n);switch(r){case"prefix":return!0;case"extension":return!1;default:return t[r]=n&&e1e4)return e.slice(0,n).concat(t).concat(e.slice(n+r,e.length));var i=Array.from(e);return i.splice.apply(i,[n,r].concat(v(t))),i}(this._nodes,Array.from(t),e,0)}},{key:"_removeNodes",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(e,t)}},{key:"toJSON",value:function(){return this._nodes.map((function(e){return e.toJSON()}))}}]),t}(Symbol.iterator),bl=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,r))._data=e||"",i}return b(n,[{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}},{key:"toJSON",value:function(){var e=s(l(n.prototype),"toJSON",this).call(this);return e.data=this.data,e}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}}],[{key:"fromJSON",value:function(e){return new n(e.data,e.attributes)}}]),n}(gl);bl.prototype.is=function(e){return"$text"===e||"model:$text"===e||"text"===e||"model:text"===e||"node"===e||"model:node"===e};var kl=function(e){m(n,e);var t=g(n);function n(e,r,i){var o;if(k(this,n),(o=t.call(this)).textNode=e,r<0||r>e.offsetSize)throw new P("model-textproxy-wrong-offsetintext",d(o));if(i<0||r+i>e.offsetSize)throw new P("model-textproxy-wrong-length",d(o));return o.data=e.data.substring(r,r+i),o.offsetInText=r,c(o)}return b(n,[{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"getPath",value:function(){var e=this.textNode.getPath();return e.length>0&&(e[e.length-1]+=this.offsetInText),e}},{key:"getAncestors",value:function(){for(var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=[],n=e.includeSelf?this:this.parent;n;)t[e.parentFirst?"push":"unshift"](n),n=n.parent;return t}},{key:"hasAttribute",value:function(e){return this.textNode.hasAttribute(e)}},{key:"getAttribute",value:function(e){return this.textNode.getAttribute(e)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}}]),n}(ml);kl.prototype.is=function(e){return"$textProxy"===e||"model:$textProxy"===e||"textProxy"===e||"model:textProxy"===e};var wl=function(e){m(n,e);var t=g(n);function n(e,r,i){var o;return k(this,n),(o=t.call(this,r)).name=e,o._children=new yl,i&&o._insertChild(0,i),o}return b(n,[{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"getChild",value:function(e){return this._children.getNode(e)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(e){return this._children.getNodeIndex(e)}},{key:"getChildStartOffset",value:function(e){return this._children.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(e){return this._children.offsetToIndex(e)}},{key:"getNodeByPath",value:function(e){var t,n=this,r=h(e);try{for(r.s();!(t=r.n()).done;){var i=t.value;n=n.getChild(n.offsetToIndex(i))}}catch(o){r.e(o)}finally{r.f()}return n}},{key:"findAncestor",value:function(e){for(var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).includeSelf?this:this.parent;t;){if(t.name===e)return t;t=t.parent}return null}},{key:"toJSON",value:function(){var e=s(l(n.prototype),"toJSON",this).call(this);if(e.name=this.name,this._children.length>0){e.children=[];var t,r=h(this._children);try{for(r.s();!(t=r.n()).done;){var i=t.value;e.children.push(i.toJSON())}}catch(o){r.e(o)}finally{r.f()}}return e}},{key:"_clone",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((function(e){return e._clone(!0)})):void 0;return new n(this.name,this.getAttributes(),e)}},{key:"_appendChild",value:function(e){this._insertChild(this.childCount,e)}},{key:"_insertChild",value:function(e,t){var n,r=function(e){return"string"==typeof e?[new bl(e)]:(Lr(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new bl(e):e instanceof kl?new bl(e.data,e.getAttributes()):e})))}(t),i=h(r);try{for(i.s();!(n=i.n()).done;){var o=n.value;null!==o.parent&&o._remove(),o.parent=this}}catch(a){i.e(a)}finally{i.f()}this._children._insertNodes(e,r)}},{key:"_removeChildren",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=h(r);try{for(i.s();!(t=i.n()).done;)t.value.parent=null}catch(o){i.e(o)}finally{i.f()}return r}}],[{key:"fromJSON",value:function(e){var t;if(e.children){t=[];var r,i=h(e.children);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.name?t.push(n.fromJSON(o)):t.push(bl.fromJSON(o))}}catch(a){i.e(a)}finally{i.f()}}return new n(e.name,e.attributes,t)}}]),n}(gl);wl.prototype.is=function(e,t){return t?t===this.name&&("element"===e||"model:element"===e):"element"===e||"model:element"===e||"node"===e||"model:node"===e};var _l=function(e){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(k(this,t),!e.boundaries&&!e.startPosition)throw new P("model-tree-walker-no-start-position",null);var n=e.direction||"forward";if("forward"!=n&&"backward"!=n)throw new P("model-tree-walker-unknown-direction",e,{direction:n});this.direction=n,this.boundaries=e.boundaries||null,e.startPosition?this.position=e.startPosition.clone():this.position=xl._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!e.singleCharacters,this.shallow=!!e.shallow,this.ignoreElementEnd=!!e.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}return b(t,[{key:e,value:function(){return this}},{key:"skip",value:function(e){var t,n,r,i;do{var o;r=this.position,i=this._visitedParent,t=(o=this.next()).done,n=o.value}while(!t&&e(n));t||(this.position=r,this._visitedParent=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var e=this.position,t=this.position.clone(),n=this._visitedParent;if(null===n.parent&&t.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};var r=Al(t,n),i=r||El(t,n,r);if(i instanceof wl)return this.shallow?t.offset++:(t.path.push(0),this._visitedParent=i),this.position=t,Cl("elementStart",i,e,t,1);if(i instanceof bl){var o;if(this.singleCharacters)o=1;else{var a=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offsets&&(s=this.boundaries.start.offset),a=t.offset-s}var l=t.offset-o.startOffset,u=new kl(o,l-a,a);return t.offset-=a,this.position=t,Cl("text",u,e,t,a)}return t.path.pop(),this.position=t,this._visitedParent=n.parent,Cl("elementStart",n,e,t,1)}}]),t}(Symbol.iterator);function Cl(e,t,n,r,i){return{done:!1,value:{type:e,item:t,previousPosition:n,nextPosition:r,length:i}}}var xl=function(e){m(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(k(this,n),i=t.call(this),!e.is("element")&&!e.is("documentFragment"))throw new P("model-position-root-invalid",e);if(!(r instanceof Array)||0===r.length)throw new P("model-position-path-incorrect-format",e,{path:r});return e.is("rootElement")?r=r.slice():(r=[].concat(v(e.getPath()),v(r)),e=e.root),i.root=e,i.path=r,i.stickiness=o,c(i)}return b(n,[{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(e){this.path[this.path.length-1]=e}},{key:"parent",get:function(){for(var e=this.root,t=0;t1&&void 0!==arguments[1]?arguments[1]:{};t.startPosition=this;var n=new _l(t);return n.skip(e),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var e=this.parent;return e.is("documentFragment")?[e]:e.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(e){var t=this.parent;return t.is("element")?t.findAncestor(e,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(e){if(this.root!=e.root)return[];var t=Jr(this.path,e.path),n="string"==typeof t?Math.min(this.path.length,e.path.length):t;return this.path.slice(0,n)}},{key:"getCommonAncestor",value:function(e){for(var t=this.getAncestors(),n=e.getAncestors(),r=0;t[r]==n[r]&&t[r];)r++;return 0===r?null:t[r-1]}},{key:"getShiftedBy",value:function(e){var t=this.clone(),n=t.offset+e;return t.offset=n<0?0:n,t}},{key:"isAfter",value:function(e){return"after"==this.compareWith(e)}},{key:"isBefore",value:function(e){return"before"==this.compareWith(e)}},{key:"isEqual",value:function(e){return"same"==this.compareWith(e)}},{key:"isTouching",value:function(e){if(this.root!==e.root)return!1;for(var t=Math.min(this.path.length,e.path.length),n=0;n1)return!1;if(1===r)return Zl(e,this,n);if(-1===r)return Zl(this,e,n)}return this.path.length===e.path.length||(this.path.length>e.path.length?Ml(this.path,t):Ml(e.path,t))}},{key:"hasSameParentAs",value:function(e){return this.root===e.root&&"same"==Jr(this.getParentPath(),e.getParentPath())}},{key:"getTransformedByOperation",value:function(e){var t;switch(e.type){case"insert":t=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":t=this._getTransformedByMoveOperation(e);break;case"split":t=this._getTransformedBySplitOperation(e);break;case"merge":t=this._getTransformedByMergeOperation(e);break;default:t=n._createAt(this)}return t}},{key:"_getTransformedByInsertOperation",value:function(e){return this._getTransformedByInsertion(e.position,e.howMany)}},{key:"_getTransformedByMoveOperation",value:function(e){return this._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=e.movedRange;return t.containsPosition(this)||t.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(e.splitPosition,e.moveTargetPosition):e.graveyardPosition?this._getTransformedByMove(e.graveyardPosition,e.insertionPosition,1):this._getTransformedByInsertion(e.insertionPosition,1)}},{key:"_getTransformedByMergeOperation",value:function(e){var t,r=e.movedRange;return r.containsPosition(this)||r.start.isEqual(this)?(t=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(t=t._getTransformedByDeletion(e.deletionPosition,1))):t=this.isEqual(e.deletionPosition)?n._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),t}},{key:"_getTransformedByDeletion",value:function(e,t){var r=n._createAt(this);if(this.root!=e.root)return r;if("same"==Jr(e.getParentPath(),this.getParentPath())){if(e.offsetthis.offset)return null;r.offset-=t}}else if("prefix"==Jr(e.getParentPath(),this.getParentPath())){var i=e.path.length-1;if(e.offset<=this.path[i]){if(e.offset+t>this.path[i])return null;r.path[i]-=t}}return r}},{key:"_getTransformedByInsertion",value:function(e,t){var r=n._createAt(this);if(this.root!=e.root)return r;if("same"==Jr(e.getParentPath(),this.getParentPath()))(e.offset2&&void 0!==arguments[2]?arguments[2]:"toNone";if(e instanceof n)return new n(e.root,e.path,e.stickiness);var i=e;if("end"==t)t=i.maxOffset;else{if("before"==t)return this._createBefore(i,r);if("after"==t)return this._createAfter(i,r);if(0!==t&&!t)throw new P("model-createpositionat-offset-required",[this,e])}if(!i.is("element")&&!i.is("documentFragment"))throw new P("model-position-parent-incorrect",[this,e]);var o=i.getPath();return o.push(t),new this(i.root,o,r)}},{key:"_createAfter",value:function(e,t){if(!e.parent)throw new P("model-position-after-root",[this,e],{root:e});return this._createAt(e.parent,e.endOffset,t)}},{key:"_createBefore",value:function(e,t){if(!e.parent)throw new P("model-position-before-root",e,{root:e});return this._createAt(e.parent,e.startOffset,t)}},{key:"fromJSON",value:function(e,t){if("$graveyard"===e.root){var r=new n(t.graveyard,e.path);return r.stickiness=e.stickiness,r}if(!t.getRoot(e.root))throw new P("model-position-fromjson-no-root",t,{rootName:e.root});return new n(t.getRoot(e.root),e.path,e.stickiness)}}]),n}(ml);function Al(e,t){var n=t.getChild(t.offsetToIndex(e.offset));return n&&n.is("$text")&&n.startOffset=t;){if(e.path[r]+i!==n.maxOffset)return!1;i=1,r--,n=n.parent}return!0}(e,n+1)}function Ml(e,t){for(;t1&&void 0!==arguments[1]&&arguments[1];e.isCollapsed&&(t=!1);var n=this.containsPosition(e.start)||t&&this.start.isEqual(e.start),r=this.containsPosition(e.end)||t&&this.end.isEqual(e.end);return n&&r}},{key:"containsItem",value:function(e){var t=xl._createBefore(e);return this.containsPosition(t)||this.start.isEqual(t)}},{key:"isEqual",value:function(e){return this.start.isEqual(e.start)&&this.end.isEqual(e.end)}},{key:"isIntersecting",value:function(e){return this.start.isBefore(e.end)&&this.end.isAfter(e.start)}},{key:"getDifference",value:function(e){var t=[];return this.isIntersecting(e)?(this.containsPosition(e.start)&&t.push(new r(this.start,e.start)),this.containsPosition(e.end)&&t.push(new r(e.end,this.end))):t.push(new r(this.start,this.end)),t}},{key:"getIntersection",value:function(e){if(this.isIntersecting(e)){var t=this.start,n=this.end;return this.containsPosition(e.start)&&(t=e.start),this.containsPosition(e.end)&&(n=e.end),new r(t,n)}return null}},{key:"getJoined",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=this.isIntersecting(e);if(n||(n=this.start.isBefore(e.start)?t?this.end.isTouching(e.start):this.end.isEqual(e.start):t?e.end.isTouching(this.start):e.end.isEqual(this.start)),!n)return null;var i=this.start,o=this.end;return e.start.isBefore(i)&&(i=e.start),e.end.isAfter(o)&&(o=e.end),new r(i,o)}},{key:"getMinimalFlatRanges",value:function(){for(var e=[],t=this.start.getCommonPath(this.end).length,n=xl._createAt(this.start),i=n.parent;n.path.length>t+1;){var o=i.maxOffset-n.offset;0!==o&&e.push(new r(n,n.getShiftedBy(o))),n.path=n.path.slice(0,-1),n.offset++,i=i.parent}for(;n.path.length<=this.end.path.length;){var a=this.end.path[n.path.length-1],s=a-n.offset;0!==s&&e.push(new r(n,n.getShiftedBy(s))),n.offset=a,n.path.push(0)}return e}},{key:"getWalker",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return e.boundaries=this,new _l(e)}},{key:"getItems",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f().mark((function n(){var r,i,o,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:t.boundaries=e,t.ignoreElementEnd=!0,r=new _l(t),i=h(r),n.prev=3,i.s();case 5:if((o=i.n()).done){n.next=11;break}return a=o.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),i.e(n.t0);case 16:return n.prev=16,i.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return f().mark((function n(){var r,i,o,a;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return t.boundaries=e,r=new _l(t),n.next=4,r.position;case 4:i=h(r),n.prev=5,i.s();case 7:if((o=i.n()).done){n.next=13;break}return a=o.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),i.e(n.t0);case 18:return n.prev=18,i.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"getTransformedByOperation",value:function(e){switch(e.type){case"insert":return this._getTransformedByInsertOperation(e);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(e);case"split":return[this._getTransformedBySplitOperation(e)];case"merge":return[this._getTransformedByMergeOperation(e)]}return[new r(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(e){var t,n=[new r(this.start,this.end)],i=h(e);try{for(i.s();!(t=i.n()).done;)for(var o=t.value,a=0;a1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(e.position,e.howMany,t)}},{key:"_getTransformedByMoveOperation",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=e.sourcePosition,r=e.howMany,i=e.targetPosition;return this._getTransformedByMove(n,i,r,t)}},{key:"_getTransformedBySplitOperation",value:function(e){var t=this.start._getTransformedBySplitOperation(e),n=this.end._getTransformedBySplitOperation(e);return this.end.isEqual(e.insertionPosition)&&(n=this.end.getShiftedBy(1)),t.root!=n.root&&(n=this.end.getShiftedBy(-1)),new r(t,n)}},{key:"_getTransformedByMergeOperation",value:function(e){if(this.start.isEqual(e.targetPosition)&&this.end.isEqual(e.deletionPosition))return new r(this.start);var t=this.start._getTransformedByMergeOperation(e),n=this.end._getTransformedByMergeOperation(e);return t.root!=n.root&&(n=this.end.getShiftedBy(-1)),t.isAfter(n)?(e.sourcePosition.isBefore(e.targetPosition)?(t=xl._createAt(n)).offset=0:(e.deletionPosition.isEqual(t)||(n=e.deletionPosition),t=e.targetPosition),new r(t,n)):new r(t,n)}},{key:"_getTransformedByInsertion",value:function(e,t){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(e))return[new r(this.start,e),new r(e.getShiftedBy(t),this.end._getTransformedByInsertion(e,t))];var n=new r(this.start,this.end);return n.start=n.start._getTransformedByInsertion(e,t),n.end=n.end._getTransformedByInsertion(e,t),[n]}},{key:"_getTransformedByMove",value:function(e,t,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed)return[new r(this.start._getTransformedByMove(e,t,n))];var o,a=r._createFromPositionAndShift(e,n),s=t._getTransformedByDeletion(e,n);if(this.containsPosition(t)&&!i&&(a.containsPosition(this.start)||a.containsPosition(this.end)))return[new r(this.start._getTransformedByMove(e,t,n),this.end._getTransformedByMove(e,t,n))];var l=this.getDifference(a),u=null,c=this.getIntersection(a);if(1==l.length?u=new r(l[0].start._getTransformedByDeletion(e,n),l[0].end._getTransformedByDeletion(e,n)):2==l.length&&(u=new r(this.start,this.end._getTransformedByDeletion(e,n))),o=u?u._getTransformedByInsertion(s,n,null!==c||i):[],c){var d=new r(c.start._getCombined(a.start,s),c.end._getCombined(a.start,s));2==o.length?o.splice(1,0,d):o.push(d)}return o}},{key:"_getTransformedByDeletion",value:function(e,t){var n=this.start._getTransformedByDeletion(e,t),i=this.end._getTransformedByDeletion(e,t);return null==n&&null==i?null:(null==n&&(n=e),null==i&&(i=e),new r(n,i))}}],[{key:"_createFromPositionAndShift",value:function(e,t){var n=e,r=e.getShiftedBy(t);return t>0?new this(n,r):new this(r,n)}},{key:"_createIn",value:function(e){return new this(xl._createAt(e,0),xl._createAt(e,e.maxOffset))}},{key:"_createOn",value:function(e){return this._createFromPositionAndShift(xl._createBefore(e),e.offsetSize)}},{key:"_createFromRanges",value:function(e){if(0===e.length)throw new P("range-create-from-ranges-empty-array",null);if(1==e.length)return e[0].clone();var t=e[0];e.sort((function(e,t){return e.start.isAfter(t.start)?1:-1}));var n=e.indexOf(t),r=new this(t.start,t.end);if(n>0)for(var i=n-1;e[i].end.isEqual(r.start);i++)r.start=xl._createAt(e[i].start);for(var o=n+1;o1&&void 0!==arguments[1]?arguments[1]:{},n=this.toModelElement(e);if(this._elementToMarkerNames.has(e)){var r,i=h(this._elementToMarkerNames.get(e));try{for(i.s();!(r=i.n()).done;){var o=r.value;this._unboundMarkerNames.add(o)}}catch(a){i.e(a)}finally{i.f()}}t.defer?this._deferredBindingRemovals.set(e,e.root):(this._viewToModelMapping.delete(e),this._modelToViewMapping.get(n)==e&&this._modelToViewMapping.delete(n))}},{key:"unbindModelElement",value:function(e){var t=this.toViewElement(e);this._modelToViewMapping.delete(e),this._viewToModelMapping.get(t)==e&&this._viewToModelMapping.delete(t)}},{key:"bindElementToMarker",value:function(e,t){var n=this._markerNameToElements.get(t)||new Set;n.add(e);var r=this._elementToMarkerNames.get(e)||new Set;r.add(t),this._markerNameToElements.set(t,n),this._elementToMarkerNames.set(e,r)}},{key:"unbindElementFromMarkerName",value:function(e,t){var n=this._markerNameToElements.get(t);n&&(n.delete(e),0==n.size&&this._markerNameToElements.delete(t));var r=this._elementToMarkerNames.get(e);r&&(r.delete(t),0==r.size&&this._elementToMarkerNames.delete(e))}},{key:"flushUnboundMarkerNames",value:function(){var e=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),e}},{key:"flushDeferredBindings",value:function(){var e,t=h(this._deferredBindingRemovals);try{for(t.s();!(e=t.n()).done;){var n=p(e.value,2),r=n[0],i=n[1];r.root==i&&this.unbindViewElement(r)}}catch(o){t.e(o)}finally{t.f()}this._deferredBindingRemovals=new Map}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}},{key:"toModelElement",value:function(e){return this._viewToModelMapping.get(e)}},{key:"toViewElement",value:function(e){return this._modelToViewMapping.get(e)}},{key:"toModelRange",value:function(e){return new Tl(this.toModelPosition(e.start),this.toModelPosition(e.end))}},{key:"toViewRange",value:function(e){return new fo(this.toViewPosition(e.start),this.toViewPosition(e.end))}},{key:"toModelPosition",value:function(e){var t={viewPosition:e,mapper:this};return this.fire("viewToModelPosition",t),t.modelPosition}},{key:"toViewPosition",value:function(e){var t={modelPosition:e,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).isPhantom};return this.fire("modelToViewPosition",t),t.viewPosition}},{key:"markerNameToElements",value:function(e){var t=this._markerNameToElements.get(e);if(!t)return null;var n,r=new Set,i=h(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("attributeElement")){var a,s=h(o.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var l=a.value;r.add(l)}}catch(u){s.e(u)}finally{s.f()}}else r.add(o)}}catch(u){i.e(u)}finally{i.f()}return r}},{key:"registerViewToModelLength",value:function(e,t){this._viewToModelLengthCallbacks.set(e,t)}},{key:"findMappedViewAncestor",value:function(e){for(var t=e.parent;!this._viewToModelMapping.has(t);)t=t.parent;return t}},{key:"_toModelOffset",value:function(e,t,n){if(n!=e)return this._toModelOffset(e.parent,e.index,n)+this._toModelOffset(e,t,e);if(e.is("$text"))return t;for(var r=0,i=0;i1?t[0]+":"+t[1]:t[0]}var Ol=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this))._conversionApi=a({dispatcher:d(r)},e),r._firedEventsMap=new WeakMap,r}return b(n,[{key:"convertChanges",value:function(e,t,n){var r,i=this._createConversionApi(n,e.getRefreshedItems()),o=h(e.getMarkersToRemove());try{for(o.s();!(r=o.n()).done;){var a=r.value;this._convertMarkerRemove(a.name,a.range,i)}}catch(b){o.e(b)}finally{o.f()}var s,l=this._reduceChanges(e.getChanges()),u=h(l);try{for(u.s();!(s=u.n()).done;){var c=s.value;"insert"===c.type?this._convertInsert(Tl._createFromPositionAndShift(c.position,c.length),i):"reinsert"===c.type?this._convertReinsert(Tl._createFromPositionAndShift(c.position,c.length),i):"remove"===c.type?this._convertRemove(c.position,c.length,c.name,i):this._convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,i)}}catch(b){u.e(b)}finally{u.f()}var d,f=h(i.mapper.flushUnboundMarkerNames());try{for(f.s();!(d=f.n()).done;){var p=d.value,v=t.get(p).getRange();this._convertMarkerRemove(p,v,i),this._convertMarkerAdd(p,v,i)}}catch(b){f.e(b)}finally{f.f()}var m,g=h(e.getMarkersToAdd());try{for(g.s();!(m=g.n()).done;){var y=m.value;this._convertMarkerAdd(y.name,y.range,i)}}catch(b){g.e(b)}finally{g.f()}i.mapper.flushDeferredBindings(),i.consumable.verifyAllConsumed("insert")}},{key:"convert",value:function(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=this._createConversionApi(n,void 0,r);this._convertInsert(e,i);var o,a=h(t);try{for(a.s();!(o=a.n()).done;){var s=p(o.value,2),l=s[0],u=s[1];this._convertMarkerAdd(l,u,i)}}catch(c){a.e(c)}finally{a.f()}i.consumable.verifyAllConsumed("insert")}},{key:"convertSelection",value:function(e,t,n){var r=Array.from(t.getMarkersAtPosition(e.getFirstPosition())),i=this._createConversionApi(n);if(this._addConsumablesForSelection(i.consumable,e,r),this.fire("selection",{selection:e},i),e.isCollapsed){var o,a=h(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getRange();if(Nl(e.getFirstPosition(),s,i.mapper)){var u={item:e,markerName:s.name,markerRange:l};i.consumable.test(e,"addMarker:"+s.name)&&this.fire("addMarker:".concat(s.name),u,i)}}}catch(v){a.e(v)}finally{a.f()}var c,d=h(e.getAttributeKeys());try{for(d.s();!(c=d.n()).done;){var f=c.value,p={item:e,range:e.getFirstRange(),attributeKey:f,attributeOldValue:null,attributeNewValue:e.getAttribute(f)};i.consumable.test(e,"attribute:"+p.attributeKey)&&this.fire("attribute:".concat(p.attributeKey,":$text"),p,i)}}catch(v){d.e(v)}finally{d.f()}}}},{key:"_convertInsert",value:function(e,t){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).doNotAddConsumables||this._addConsumablesForInsert(t.consumable,Array.from(e));var n,r=h(Array.from(e.getWalker({shallow:!0})).map(Rl));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._testAndFire("insert",i,t)}}catch(o){r.e(o)}finally{r.f()}}},{key:"_convertRemove",value:function(e,t,n,r){this.fire("remove:".concat(n),{position:e,length:t},r)}},{key:"_convertAttribute",value:function(e,t,n,r,i){this._addConsumablesForRange(i.consumable,e,"attribute:".concat(t));var o,a=h(e);try{for(a.s();!(o=a.n()).done;){var s=o.value,l={item:s.item,range:Tl._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:t,attributeOldValue:n,attributeNewValue:r};this._testAndFire("attribute:".concat(t),l,i)}}catch(u){a.e(u)}finally{a.f()}}},{key:"_convertReinsert",value:function(e,t){var n=Array.from(e.getWalker({shallow:!0}));this._addConsumablesForInsert(t.consumable,n);var r,i=h(n.map(Rl));try{for(i.s();!(r=i.n()).done;){var o=r.value;this._testAndFire("insert",a(a({},o),{},{reconversion:!0}),t)}}catch(s){i.e(s)}finally{i.f()}}},{key:"_convertMarkerAdd",value:function(e,t,n){if("$graveyard"!=t.root.rootName){var r="addMarker:".concat(e);if(n.consumable.add(t,r),this.fire(r,{markerName:e,markerRange:t},n),n.consumable.consume(t,r)){this._addConsumablesForRange(n.consumable,t,r);var i,o=h(t.getItems());try{for(o.s();!(i=o.n()).done;){var a=i.value;if(n.consumable.test(a,r)){var s={item:a,range:Tl._createOn(a),markerName:e,markerRange:t};this.fire(r,s,n)}}}catch(l){o.e(l)}finally{o.f()}}}}},{key:"_convertMarkerRemove",value:function(e,t,n){"$graveyard"!=t.root.rootName&&this.fire("removeMarker:".concat(e),{markerName:e,markerRange:t},n)}},{key:"_reduceChanges",value:function(e){var t={changes:e};return this.fire("reduceChanges",t),t.changes}},{key:"_addConsumablesForInsert",value:function(e,t){var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var i=n.value.item;if(null===e.test(i,"insert")){e.add(i,"insert");var o,a=h(i.getAttributeKeys());try{for(a.s();!(o=a.n()).done;){var s=o.value;e.add(i,"attribute:"+s)}}catch(l){a.e(l)}finally{a.f()}}}}catch(l){r.e(l)}finally{r.f()}return e}},{key:"_addConsumablesForRange",value:function(e,t,n){var r,i=h(t.getItems());try{for(i.s();!(r=i.n()).done;){var o=r.value;e.add(o,n)}}catch(a){i.e(a)}finally{i.f()}return e}},{key:"_addConsumablesForSelection",value:function(e,t,n){e.add(t,"selection");var r,i=h(n);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.add(t,"addMarker:"+o.name)}}catch(u){i.e(u)}finally{i.f()}var a,s=h(t.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;e.add(t,"attribute:"+l)}}catch(u){s.e(u)}finally{s.f()}return e}},{key:"_testAndFire",value:function(e,t,n){var r=function(e,t){var n=t.item.is("element")?t.item.name:"$text";return"".concat(e,":").concat(n)}(e,t),i=t.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(t.item):t.item,o=this._firedEventsMap.get(n),a=o.get(i);if(a){if(a.has(r))return;a.add(r)}else o.set(i,new Set([r]));this.fire(r,t,n)}},{key:"_testAndFireAddAttributes",value:function(e,t){var n,r={item:e,range:Tl._createOn(e)},i=h(r.item.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;r.attributeKey=o,r.attributeOldValue=null,r.attributeNewValue=r.item.getAttribute(o),this._testAndFire("attribute:".concat(o),r,t)}}catch(a){i.e(a)}finally{i.f()}}},{key:"_createConversionApi",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=a(a({},this._conversionApi),{},{consumable:new Pl,writer:e,options:r,convertItem:function(e){return t._convertInsert(Tl._createOn(e),i)},convertChildren:function(e){return t._convertInsert(Tl._createIn(e),i,{doNotAddConsumables:!0})},convertAttributes:function(e){return t._testAndFireAddAttributes(e,i)},canReuseView:function(e){return!n.has(i.mapper.toModelElement(e))}});return this._firedEventsMap.set(i,new Map),i}}]),n}(U);function Nl(e,t,n){var r=t.getRange(),i=Array.from(e.getAncestors());return i.shift(),i.reverse(),!i.some((function(e){if(r.containsItem(e))return!!n.toViewElement(e).getCustomProperty("addHighlight")}))}function Rl(e){return{item:e.item,range:Tl._createFromPositionAndShift(e.previousPosition,e.length)}}var jl=function(e){m(n,e);var t=g(n);function n(){var e,r;return k(this,n),(r=t.call(this))._lastRangeBackward=!1,r._ranges=[],r._attrs=new Map,arguments.length&&(e=r).setTo.apply(e,arguments),r}return b(n,[{key:"anchor",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.end:e.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var e=this._ranges[this._ranges.length-1];return this._lastRangeBackward?e.start:e.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"isEqual",value:function(e){if(this.rangeCount!=e.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(e.anchor)||!this.focus.isEqual(e.focus))return!1;var t,n=h(this._ranges);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=!1,a=h(e._ranges);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(i.isEqual(s)){o=!0;break}}}catch(l){a.e(l)}finally{a.f()}if(!o)return!1}}catch(l){n.e(l)}finally{n.f()}return!0}},{key:"getRanges",value:f().mark((function e(){var t,n,r;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=h(this._ranges),e.prev=1,t.s();case 3:if((n=t.n()).done){e.next=9;break}return r=n.value,e.next=7,new Tl(r.start,r.end);case 7:e.next=3;break;case 9:e.next=14;break;case 11:e.prev=11,e.t0=e.catch(1),t.e(e.t0);case 14:return e.prev=14,t.f(),e.finish(14);case 17:case"end":return e.stop()}}),e,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var e,t=null,n=h(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.start.isBefore(t.start)||(t=r)}}catch(i){n.e(i)}finally{n.f()}return t?new Tl(t.start,t.end):null}},{key:"getLastRange",value:function(){var e,t=null,n=h(this._ranges);try{for(n.s();!(e=n.n()).done;){var r=e.value;t&&!r.end.isAfter(t.end)||(t=r)}}catch(i){n.e(i)}finally{n.f()}return t?new Tl(t.start,t.end):null}},{key:"getFirstPosition",value:function(){var e=this.getFirstRange();return e?e.start.clone():null}},{key:"getLastPosition",value:function(){var e=this.getLastRange();return e?e.end.clone():null}},{key:"setTo",value:function(){for(var e=arguments.length,t=new Array(e),r=0;r1&&void 0!==arguments[1]&&arguments[1],r=Array.from(e),i=r.some((function(n){if(!(n instanceof Tl))throw new P("model-selection-set-ranges-not-range",[t,e]);return t._ranges.every((function(e){return!e.isEqual(n)}))}));(r.length!==this._ranges.length||i)&&(this._replaceAllRanges(r),this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0}))}},{key:"setFocus",value:function(e,t){if(null===this.anchor)throw new P("model-selection-setfocus-no-ranges",[this,e]);var n=xl._createAt(e,t);if("same"!=n.compareWith(this.focus)){var r=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(r)?(this._pushRange(new Tl(n,r)),this._lastRangeBackward=!0):(this._pushRange(new Tl(r,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(e){return this._attrs.get(e)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(e){return this._attrs.has(e)}},{key:"removeAttribute",value:function(e){this.hasAttribute(e)&&(this._attrs.delete(e),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"setAttribute",value:function(e,t){this.getAttribute(e)!==t&&(this._attrs.set(e,t),this.fire("change:attribute",{attributeKeys:[e],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"getSelectedBlocks",value:f().mark((function e(){var t,n,r,i,o,a,s,l,u,c;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:t=new WeakSet,n=h(this.getRanges()),e.prev=2,n.s();case 4:if((r=n.n()).done){e.next=38;break}if(i=r.value,o=zl(i.start,t),e.t0=o&&Bl(o,i),!e.t0){e.next=11;break}return e.next=11,o;case 11:a=h(i.getWalker()),e.prev=12,a.s();case 14:if((s=a.n()).done){e.next=23;break}if(l=s.value,u=l.item,e.t1="elementEnd"==l.type&&Fl(u,t,i),!e.t1){e.next=21;break}return e.next=21,u;case 21:e.next=14;break;case 23:e.next=28;break;case 25:e.prev=25,e.t2=e.catch(12),a.e(e.t2);case 28:return e.prev=28,a.f(),e.finish(28);case 31:if(c=zl(i.end,t),e.t3=c&&!i.end.isTouching(xl._createAt(c,0))&&Bl(c,i),!e.t3){e.next=36;break}return e.next=36,c;case 36:e.next=4;break;case 38:e.next=43;break;case 40:e.prev=40,e.t4=e.catch(2),n.e(e.t4);case 43:return e.prev=43,n.f(),e.finish(43);case 46:case"end":return e.stop()}}),e,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,t=xl._createAt(e,0),n=xl._createAt(e,"end");return t.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(e){this._checkRange(e),this._ranges.push(new Tl(e.start,e.end))}},{key:"_checkRange",value:function(e){for(var t=0;t0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}}]),n}(V(ml));function Ll(e,t){return!t.has(e)&&(t.add(e),e.root.document.model.schema.isBlock(e)&&!!e.parent)}function Fl(e,t,n){return Ll(e,t)&&Bl(e,n)}function zl(e,t){var n=e.parent.root.document.model.schema,r=e.parent.getAncestors({parentFirst:!0,includeSelf:!0}),i=!1,o=r.find((function(e){return!i&&!(i=n.isLimit(e))&&Ll(e,t)}));return r.forEach((function(e){return t.add(e)})),o}function Bl(e,t){var n=function(e){for(var t=e.root.document.model.schema,n=e.parent;n;){if(t.isBlock(n))return n;n=n.parent}}(e);return!n||!t.containsRange(Tl._createOn(n),!0)}jl.prototype.is=function(e){return"selection"===e||"model:selection"===e};var Vl=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),i=t.call(this,e,r),Ul.call(d(i)),i}return b(n,[{key:"detach",value:function(){this.stopListening()}},{key:"toRange",value:function(){return new Tl(this.start,this.end)}}],[{key:"fromRange",value:function(e){return new n(e.start,e.end)}}]),n}(V(Tl));function Ul(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&Hl.call(e,r)}),{priority:"low"})}function Hl(e){var t=this.getTransformedByOperation(e),n=Tl._createFromRanges(t),r=!n.isEqual(this),i=function(e,t){switch(t.type){case"insert":return e.containsPosition(t.position);case"move":case"remove":case"reinsert":case"merge":return e.containsPosition(t.sourcePosition)||e.start.isEqual(t.sourcePosition)||e.containsPosition(t.targetPosition);case"split":return e.containsPosition(t.splitPosition)||e.containsPosition(t.insertionPosition)}return!1}(this,e),o=null;if(r){"$graveyard"==n.root.rootName&&(o="remove"==e.type?e.sourcePosition:e.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:o})}else i&&this.fire("change:content",this.toRange(),{deletionPosition:o})}Vl.prototype.is=function(e){return"liveRange"===e||"model:liveRange"===e||"range"==e||"model:range"===e};var ql="selection:",Wl=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this))._selection=new Gl(e),r._selection.delegate("change:range").to(d(r)),r._selection.delegate("change:attribute").to(d(r)),r._selection.delegate("change:marker").to(d(r)),r}return b(n,[{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(e){return this._selection.containsEntireContent(e)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(e){return this._selection.getAttribute(e)}},{key:"hasAttribute",value:function(e){return this._selection.hasAttribute(e)}},{key:"refresh",value:function(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}},{key:"observeMarkers",value:function(e){this._selection.observeMarkers(e)}},{key:"_setFocus",value:function(e,t){this._selection.setFocus(e,t)}},{key:"_setTo",value:function(){var e;(e=this._selection).setTo.apply(e,arguments)}},{key:"_setAttribute",value:function(e,t){this._selection.setAttribute(e,t)}},{key:"_removeAttribute",value:function(e){this._selection.removeAttribute(e)}},{key:"_getStoredAttributes",value:function(){return this._selection.getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(e){this._selection.restoreGravity(e)}}],[{key:"_getStoreAttributeKey",value:function(e){return ql+e}},{key:"_isStoreAttributeKey",value:function(e){return e.startsWith(ql)}}]),n}(V(ml));Wl.prototype.is=function(e){return"selection"===e||"model:selection"==e||"documentSelection"==e||"model:documentSelection"==e};var Gl=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).markers=new zr({idProperty:"name"}),r._model=e.model,r._document=e,r._attributePriority=new Map,r._selectionRestorePosition=null,r._hasChangedRange=!1,r._overriddenGravityRegister=new Set,r._observedMarkers=new Set,r.listenTo(r._model,"applyOperation",(function(e,t){var n=t[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==r._ranges.length&&r._selectionRestorePosition&&r._fixGraveyardSelection(r._selectionRestorePosition),r._selectionRestorePosition=null,r._hasChangedRange&&(r._hasChangedRange=!1,r.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),r.on("change:range",(function(){r._validateSelectionRanges(r.getRanges())})),r.listenTo(r._model.markers,"update",(function(e,t,n,i){r._updateMarker(t,i)})),r.listenTo(r._document,"change",(function(e,t){!function(e,t){var n,r=e.document.differ,i=h(r.getChanges());try{var o=function(){var r=n.value;if("insert"!=r.type)return"continue";var i=r.position.parent;r.length===i.maxOffset&&e.enqueueChange(t,(function(e){var t,n=Array.from(i.getAttributeKeys()).filter((function(e){return e.startsWith(ql)})),r=h(n);try{for(r.s();!(t=r.n()).done;){var o=t.value;e.removeAttribute(o,i)}}catch(a){r.e(a)}finally{r.f()}}))};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}}(r._model,t)})),r}return b(n,[{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:s(l(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return s(l(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return s(l(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}},{key:"destroy",value:function(){for(var e=0;e0&&this.fire("change:attribute",{attributeKeys:l,directChange:!1})}},{key:"_setAttribute",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&!arguments[2]?"low":"normal";return("low"!=r||"normal"!=this._attributePriority.get(e))&&s(l(n.prototype),"getAttribute",this).call(this,e)!==t&&(this._attrs.set(e,t),this._attributePriority.set(e,r),!0)}},{key:"_removeAttribute",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&!arguments[1]?"low":"normal";return("low"!=t||"normal"!=this._attributePriority.get(e))&&(this._attributePriority.set(e,t),!!s(l(n.prototype),"hasAttribute",this).call(this,e)&&(this._attrs.delete(e),!0))}},{key:"_setAttributesTo",value:function(e){var t,n=new Set,r=h(this.getAttributes());try{for(r.s();!(t=r.n()).done;){var i=p(t.value,2),o=i[0],a=i[1];e.get(o)!==a&&this._removeAttribute(o,!1)}}catch(f){r.e(f)}finally{r.f()}var s,l=h(e);try{for(l.s();!(s=l.n()).done;){var u=p(s.value,2),c=u[0],d=u[1];this._setAttribute(c,d,!1)&&n.add(c)}}catch(f){l.e(f)}finally{l.f()}return n}},{key:"getStoredAttributes",value:f().mark((function e(){var t,n,r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.getFirstPosition().parent,!this.isCollapsed||!t.isEmpty){e.next=21;break}n=h(t.getAttributeKeys()),e.prev=3,n.s();case 5:if((r=n.n()).done){e.next=13;break}if(!(i=r.value).startsWith(ql)){e.next=11;break}return o=i.substr(ql.length),e.next=11,[o,t.getAttribute(i)];case 11:e.next=5;break;case 13:e.next=18;break;case 15:e.prev=15,e.t0=e.catch(3),n.e(e.t0);case 18:return e.prev=18,n.f(),e.finish(18);case 21:case"end":return e.stop()}}),e,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var e=this.getFirstPosition(),t=this._model.schema,n=null;if(this.isCollapsed){var r=e.textNode?e.textNode:e.nodeBefore,i=e.textNode?e.textNode:e.nodeAfter;if(this.isGravityOverridden||(n=$l(r)),n||(n=$l(i)),!this.isGravityOverridden&&!n)for(var o=r;o&&!t.isInline(o)&&!n;)n=$l(o=o.previousSibling);if(!n)for(var a=i;a&&!t.isInline(a)&&!n;)n=$l(a=a.nextSibling);n||(n=this.getStoredAttributes())}else{var s,l=this.getFirstRange(),u=h(l);try{for(u.s();!(s=u.n()).done;){var c=s.value;if(c.item.is("element")&&t.isObject(c.item))break;if("text"==c.type){n=c.item.getAttributes();break}}}catch(d){u.e(d)}finally{u.f()}}return n}},{key:"_fixGraveyardSelection",value:function(e){var t=this._model.schema.getNearestSelectionRange(e);t&&this._pushRange(t)}}]),n}(jl);function $l(e){return e instanceof kl||e instanceof bl?e.getAttributes():null}var Kl=function(){function e(t){k(this,e),this._dispatchers=t}return b(e,[{key:"add",value:function(e){var t,n=h(this._dispatchers);try{for(n.s();!(t=n.n()).done;)e(t.value)}catch(r){n.e(r)}finally{n.f()}return this}}]),e}(),Yl=function(e){return Pr(e,5)},Jl=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"elementToElement",value:function(e){return this.add(function(e){var t=eu(e.model),n=tu(e.view,"container");return t.attributes.length&&(t.children=!0),function(r){r.on("insert:".concat(t.name),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:uu;return function(n,r,i){if(t(r.item,i.consumable,{preflight:!0})){var o=e(r.item,i,r);if(o){t(r.item,i.consumable);var a=i.mapper.toViewPosition(r.range.start);i.mapper.bindElements(r.item,o),i.writer.insert(a,o),i.convertAttributes(r.item),su(o,r.item.getChildren(),i,{reconversion:r.reconversion})}}}}(n,au(t)),{priority:e.converterPriority||"normal"}),(t.children||t.attributes.length)&&r.on("reduceChanges",ou(t),{priority:"low"})}}(e))}},{key:"elementToStructure",value:function(e){return this.add(function(e){var t=eu(e.model),n=tu(e.view,"container");return t.children=!0,function(r){if(r._conversionApi.schema.checkChild(t.name,"$text"))throw new P("conversion-element-to-structure-disallowed-text",r,{elementName:t.name});var i,o;r.on("insert:".concat(t.name),(i=n,o=au(t),function(e,t,n){if(o(t.item,n.consumable,{preflight:!0})){var r=new Map;n.writer._registerSlotFactory(function(e,t,n){return function(r){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",o=r.createContainerElement("$slot"),a=null;if("children"===i)a=Array.from(e.getChildren());else{if("function"!=typeof i)throw new P("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:i});a=Array.from(e.getChildren()).filter((function(e){return i(e)}))}return t.set(o,a),o}}(t.item,r,n));var a=i(t.item,n,t);if(n.writer._clearSlotFactory(),a){!function(e,t,n){var r=Array.from(t.values()).flat(),i=new Set(r);if(i.size!=r.length)throw new P("conversion-slot-filter-overlap",n.dispatcher,{element:e});if(i.size!=e.childCount)throw new P("conversion-slot-filter-incomplete",n.dispatcher,{element:e})}(t.item,r,n),o(t.item,n.consumable);var s=n.mapper.toViewPosition(t.range.start);n.mapper.bindElements(t.item,a),n.writer.insert(s,a),n.convertAttributes(t.item),function(e,t,n,r){n.mapper.on("modelToViewPosition",u,{priority:"highest"});var i,o=null,a=null,s=h(t);try{for(s.s();!(i=s.n()).done;){var l=p(i.value,2);o=l[0],su(e,a=l[1],n,r),n.writer.move(n.writer.createRangeIn(o),n.writer.createPositionBefore(o)),n.writer.remove(o)}}catch(c){s.e(c)}finally{s.f()}function u(e,t){var n=t.modelPosition.nodeAfter,r=a.indexOf(n);r<0||(t.viewPosition=t.mapper.findPositionIn(o,r))}n.mapper.off("modelToViewPosition",u)}(a,r,n,{reconversion:t.reconversion})}}}),{priority:e.converterPriority||"normal"}),r.on("reduceChanges",ou(t),{priority:"low"})}}(e))}},{key:"attributeToElement",value:function(e){return this.add(function(e){var t=(e=Yl(e)).model;"string"==typeof t&&(t={key:t});var n="attribute:".concat(t.key);if(t.name&&(n+=":"+t.name),t.values){var r,i=h(t.values);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.view[o]=tu(e.view[o],"attribute")}}catch(s){i.e(s)}finally{i.f()}}else e.view=tu(e.view,"attribute");var a=nu(e);return function(t){t.on(n,function(e){return function(t,n,r){if(r.consumable.test(n.item,t.name)){var i=e(n.attributeOldValue,r,n),o=e(n.attributeNewValue,r,n);if(i||o){r.consumable.consume(n.item,t.name);var a=r.writer,s=a.document.selection;if(n.item instanceof jl||n.item instanceof Wl)a.wrap(s.getFirstRange(),o);else{var l=r.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(l=a.unwrap(l,i)),null!==n.attributeNewValue&&o&&a.wrap(l,o)}}}}}(a),{priority:e.converterPriority||"normal"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t=(e=Yl(e)).model;"string"==typeof t&&(t={key:t});var n="attribute:".concat(t.key);if(t.name&&(n+=":"+t.name),t.values){var r,i=h(t.values);try{for(i.s();!(r=i.n()).done;){var o=r.value;e.view[o]=ru(e.view[o])}}catch(s){i.e(s)}finally{i.f()}}else e.view=ru(e.view);var a=nu(e);return function(t){var r;t.on(n,(r=a,function(e,t,n){if(n.consumable.test(t.item,e.name)){var i=r(t.attributeOldValue,n,t),o=r(t.attributeNewValue,n,t);if(i||o){n.consumable.consume(t.item,e.name);var a=n.mapper.toViewElement(t.item),l=n.writer;if(!a)throw new P("conversion-attribute-to-attribute-on-text",n.dispatcher,t);if(null!==t.attributeOldValue&&i)if("class"==i.key){var u,c=Vr(i.value),d=h(c);try{for(d.s();!(u=d.n()).done;){var f=u.value;l.removeClass(f,a)}}catch(s){d.e(s)}finally{d.f()}}else if("style"==i.key)for(var p=0,v=Object.keys(i.value);p2&&void 0!==arguments[2]?arguments[2]:{},o=["insert"],a=h(e.attributes);try{for(a.s();!(r=a.n()).done;){var s=r.value;t.hasAttribute(s)&&o.push("attribute:".concat(s))}}catch(l){a.e(l)}finally{a.f()}return!!o.every((function(e){return n.test(t,e)}))&&(i.preflight||o.forEach((function(e){return n.consume(t,e)})),!0)}}function su(e,t,n,r){var i,o=h(t);try{for(o.s();!(i=o.n()).done;){var a=i.value;lu(e.root,a,n,r)||n.convertItem(a)}}catch(s){o.e(s)}finally{o.f()}}function lu(e,t,n,r){var i=n.writer,o=n.mapper;if(!r.reconversion)return!1;var a=o.toViewElement(t);return!(!a||a.root==e)&&!!n.canReuseView(a)&&(i.move(i.createRangeOn(a),o.toViewPosition(xl._createBefore(t))),!0)}function uu(e,t){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).preflight?t.test(e,"insert"):t.consume(e,"insert")}function cu(e){var t,n=e.model,r=n.schema,i=n.document,o=h(i.getRootNames());try{for(o.s();!(t=o.n()).done;){var a=t.value,s=i.getRoot(a);if(s.isEmpty&&!r.checkChild(s,"$text")&&r.checkChild(s,"paragraph"))return e.insertElement("paragraph",s),!0}}catch(l){o.e(l)}finally{o.f()}return!1}function du(e,t,n){var r=n.createContext(e);return!!n.checkChild(r,"paragraph")&&!!n.checkChild(r.push("paragraph"),t)}function fu(e,t){var n=t.createElement("paragraph");return t.insert(n,e),t.createPositionAt(n,0)}var pu=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"elementToElement",value:function(e){return this.add(hu(e))}},{key:"elementToAttribute",value:function(e){return this.add(function(e){gu(e=Yl(e));var t=yu(e,!1),n=vu(e.view),r=n?"element:".concat(n):"element";return function(n){n.on(r,t,{priority:e.converterPriority||"low"})}}(e))}},{key:"attributeToAttribute",value:function(e){return this.add(function(e){var t=null;("string"==typeof(e=Yl(e)).view||e.view.key)&&(t=function(e){"string"==typeof e.view&&(e.view={key:e.view});var t,n=e.view.key;return t="class"==n||"style"==n?o({},"class"==n?"classes":"styles",e.view.value):{attributes:o({},n,void 0===e.view.value?/[\s\S]*/:e.view.value)},e.view.name&&(t.name=e.view.name),e.view=t,n}(e)),gu(e,t);var n=yu(e,!0);return function(t){t.on("element",n,{priority:e.converterPriority||"low"})}}(e))}},{key:"elementToMarker",value:function(e){return this.add(function(e){var t=function(e){return function(t,n){var r="string"==typeof e?e:e(t,n);return n.writer.createElement("$marker",{"data-name":r})}}(e.model);return hu(a(a({},e),{},{model:t}))}(e))}},{key:"dataToMarker",value:function(e){return this.add(function(e){(e=Yl(e)).model||(e.model=function(t){return t?e.view+":"+t:e.view});var t={view:e.view,model:e.model},n=mu(bu(t,"start")),r=mu(bu(t,"end"));return function(i){i.on("element:".concat(e.view,"-start"),n,{priority:e.converterPriority||"normal"}),i.on("element:".concat(e.view,"-end"),r,{priority:e.converterPriority||"normal"});var o=T.get("low"),a=T.get("highest"),s=T.get(e.converterPriority)/a;i.on("element",function(e){return function(t,n,r){var i="data-".concat(e.view);function o(t,i){var o,a=h(i);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=e.model(s,r),u=r.writer.createElement("$marker",{"data-name":l});r.writer.insert(u,t),n.modelCursor.isEqual(t)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(t,1),n.modelRange=n.modelRange._getTransformedByInsertion(t,1)[0]}}catch(c){a.e(c)}finally{a.f()}}(r.consumable.test(n.viewItem,{attributes:i+"-end-after"})||r.consumable.test(n.viewItem,{attributes:i+"-start-after"})||r.consumable.test(n.viewItem,{attributes:i+"-end-before"})||r.consumable.test(n.viewItem,{attributes:i+"-start-before"}))&&(n.modelRange||Object.assign(n,r.convertChildren(n.viewItem,n.modelCursor)),r.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&o(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),r.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&o(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(",")))}}(t),{priority:o+s})}}(e))}}]),n}(Kl);function hu(e){var t=mu(e=Yl(e)),n=vu(e.view),r=n?"element:".concat(n):"element";return function(n){n.on(r,t,{priority:e.converterPriority||"normal"})}}function vu(e){return"string"==typeof e?e:"object"==typeof e&&"string"==typeof e.name?e.name:null}function mu(e){var t=new ri(e.view);return function(n,r,i){var o=t.match(r.viewItem);if(o){var a=o.match;if(a.name=!0,i.consumable.test(r.viewItem,a)){var s=function(e,t,n){return e instanceof Function?e(t,n):n.writer.createElement(e)}(e.model,r.viewItem,i);s&&i.safeInsert(s,r.modelCursor)&&(i.consumable.consume(r.viewItem,a),i.convertChildren(r.viewItem,s),i.updateConversionResult(s,r))}}}}function gu(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===t||function(e){return e.getAttribute(t)},r="object"!=typeof e.model?e.model:e.model.key,i="object"!=typeof e.model||void 0===e.model.value?n:e.model.value;e.model={key:r,value:i}}function yu(e,t){var n=new ri(e.view);return function(r,i,o){if(i.modelRange||!t){var a=n.match(i.viewItem);if(a&&(function(e,t){var n="function"==typeof e?e(t):e;return!("object"==typeof n&&!vu(n))&&!n.classes&&!n.attributes&&!n.styles}(e.view,i.viewItem)?a.match.name=!0:delete a.match.name,o.consumable.test(i.viewItem,a.match))){var s=e.model.key,l="function"==typeof e.model.value?e.model.value(i.viewItem,o):e.model.value;if(null!==l){i.modelRange||Object.assign(i,o.convertChildren(i.viewItem,i.modelCursor));var u=function(e,t,n,r){for(var i=!1,o=0,a=Array.from(e.getItems({shallow:n}));o1?n-1:0),i=1;i1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(e,"$text"))return new Tl(e);var o=e.getAncestors().reverse().find((function(e){return r.isLimit(e)}))||e.root;"both"!=i&&"backward"!=i||(t=new _l({boundaries:Tl._createIn(o),startPosition:e,direction:"backward"})),"both"!=i&&"forward"!=i||(n=new _l({boundaries:Tl._createIn(o),startPosition:e}));var a,s=h(f().mark((function e(t,n){var r,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=!1;case 1:if(r){e.next=18;break}if(r=!0,!t){e.next=9;break}if(i=t.next(),e.t0=i.done,e.t0){e.next=9;break}return r=!1,e.next=9,{walker:t,value:i.value};case 9:if(!n){e.next=16;break}if(o=n.next(),e.t1=o.done,e.t1){e.next=16;break}return r=!1,e.next=16,{walker:n,value:o.value};case 16:e.next=1;break;case 18:case"end":return e.stop()}}),e)}))(t,n));try{for(s.s();!(a=s.n()).done;){var l=a.value,u=l.walker==t?"elementEnd":"elementStart",c=l.value;if(c.type==u&&this.isObject(c.item))return Tl._createOn(c.item);if(this.checkChild(c.nextPosition,"$text"))return new Tl(c.nextPosition)}}catch(d){s.e(d)}finally{s.f()}return null}},{key:"findAllowedParent",value:function(e,t){for(var n=e.parent;n;){if(this.checkChild(n,t))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"setAllowedAttributes",value:function(e,t,n){for(var r=n.model,i=0,o=Object.entries(t);i2&&void 0!==arguments[2]?arguments[2]:t.length-1,r=t.getItem(n);if(e.allowIn.includes(r.name)){if(0==n)return!0;var i=this.getDefinition(r);return this._checkContextMatch(i,t,n-1)}return!1}},{key:"_getValidRangesForRange",value:f().mark((function e(t,n){var r,i,o,a,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:r=t.start,i=t.start,o=h(t.getItems({shallow:!0})),e.prev=2,o.s();case 4:if((a=o.n()).done){e.next=19;break}if(s=a.value,e.t0=s.is("element"),!e.t0){e.next=9;break}return e.delegateYield(this._getValidRangesForRange(Tl._createIn(s),n),"t1",9);case 9:if(e.t2=this.checkAttribute(s,n),e.t2){e.next=16;break}if(e.t3=r.isEqual(i),e.t3){e.next=15;break}return e.next=15,new Tl(r,i);case 15:r=xl._createAfter(s);case 16:i=xl._createAfter(s);case 17:e.next=4;break;case 19:e.next=24;break;case 21:e.prev=21,e.t4=e.catch(2),o.e(e.t4);case 24:return e.prev=24,o.f(),e.finish(24);case 27:if(e.t5=r.isEqual(i),e.t5){e.next=31;break}return e.next=31,new Tl(r,i);case 31:case"end":return e.stop()}}),e,this,[[2,21,24,27]])}))}]),n}(ie),Eu=function(e){function t(e){if(k(this,t),e instanceof t)return e;var n;n="string"==typeof e?[e]:Array.isArray(e)?e:e.getAncestors({includeSelf:!0}),this._items=n.map(Lu)}return b(t,[{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}},{key:e,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(e){var n=new t([e]);return n._items=[].concat(v(this._items),v(n._items)),n}},{key:"getItem",value:function(e){return this._items[e]}},{key:"getNames",value:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(this._items.map((function(e){return e.name})),"t0",1);case 1:case"end":return e.stop()}}),e,this)}))},{key:"endsWith",value:function(e){return Array.from(this.getNames()).join(" ").endsWith(e)}},{key:"startsWith",value:function(e){return Array.from(this.getNames()).join(" ").startsWith(e)}}]),t}(Symbol.iterator);function Su(e,t){var n={name:t,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(e,t){var n,r=h(e);try{for(r.s();!(n=r.n()).done;){var i,o=n.value,a=Object.keys(o).filter((function(e){return e.startsWith("is")})),s=h(a);try{for(s.s();!(i=s.n()).done;){var l=i.value;t[l]=!!o[l]}}catch(u){s.e(u)}finally{s.f()}}}catch(u){r.e(u)}finally{r.f()}}(e,n),Ru(e,n,"allowIn"),Ru(e,n,"allowContentOf"),Ru(e,n,"allowWhere"),Ru(e,n,"allowAttributes"),Ru(e,n,"allowAttributesOf"),Ru(e,n,"allowChildren"),Ru(e,n,"inheritTypesFrom"),function(e,t){var n,r=h(e);try{for(r.s();!(n=r.n()).done;){var i=n.value.inheritAllFrom;i&&(t.allowContentOf.push(i),t.allowWhere.push(i),t.allowAttributesOf.push(i),t.inheritTypesFrom.push(i))}}catch(o){r.e(o)}finally{r.f()}}(e,n),n}function Zu(e,t){var n,r=e[t],i=h(r.allowChildren);try{for(i.s();!(n=i.n()).done;){var o=e[n.value];o&&o.allowIn.push(t)}}catch(a){i.e(a)}finally{i.f()}r.allowChildren.length=0}function Mu(e,t){var n,r=h(e[t].allowContentOf);try{for(r.s();!(n=r.n()).done;){var i=n.value;e[i]&&ju(e,i).forEach((function(e){e.allowIn.push(t)}))}}catch(o){r.e(o)}finally{r.f()}delete e[t].allowContentOf}function Tu(e,t){var n,r=h(e[t].allowWhere);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowIn;(o=e[t].allowIn).push.apply(o,v(a))}}}catch(s){r.e(s)}finally{r.f()}delete e[t].allowWhere}function Iu(e,t){var n,r=h(e[t].allowAttributesOf);try{for(r.s();!(n=r.n()).done;){var i=e[n.value];if(i){var o,a=i.allowAttributes;(o=e[t].allowAttributes).push.apply(o,v(a))}}}catch(s){r.e(s)}finally{r.f()}delete e[t].allowAttributesOf}function Pu(e,t){var n,r=e[t],i=h(r.inheritTypesFrom);try{for(i.s();!(n=i.n()).done;){var o=e[n.value];if(o){var a,s=Object.keys(o).filter((function(e){return e.startsWith("is")})),l=h(s);try{for(l.s();!(a=l.n()).done;){var u=a.value;u in r||(r[u]=o[u])}}catch(c){l.e(c)}finally{l.f()}}}}catch(c){i.e(c)}finally{i.f()}delete r.inheritTypesFrom}function Du(e,t){var n=e[t],r=n.allowIn.filter((function(t){return e[t]}));n.allowIn=Array.from(new Set(r))}function Ou(e,t){var n,r=e[t],i=h(r.allowIn);try{for(i.s();!(n=i.n()).done;)e[n.value].allowChildren.push(t)}catch(o){i.e(o)}finally{i.f()}}function Nu(e,t){var n=e[t];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function Ru(e,t,n){var r,i=h(e);try{for(i.s();!(r=i.n()).done;){var o,a=r.value[n];"string"==typeof a?t[n].push(a):Array.isArray(a)&&(o=t[n]).push.apply(o,v(a))}}catch(s){i.e(s)}finally{i.f()}}function ju(e,t){var n,r=e[t];return(n=e,Object.keys(n).map((function(e){return n[e]}))).filter((function(e){return e.allowIn.includes(r.name)}))}function Lu(e){return"string"==typeof e||e.is("documentFragment")?{name:"string"==typeof e?e:"$documentFragment",getAttributeKeys:f().mark((function e(){return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:case"end":return e.stop()}}),e)})),getAttribute:function(){}}:{name:e.is("element")?e.name:"$text",getAttributeKeys:f().mark((function t(){return f().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(e.getAttributeKeys(),"t0",1);case 1:case"end":return t.stop()}}),t)})),getAttribute:function(t){return e.getAttribute(t)}}}function Fu(e,t,n){var r,i=h(t.getAttributeKeys());try{for(i.s();!(r=i.n()).done;){var o=r.value;e.checkAttribute(t,o)||n.removeAttribute(o,t)}}catch(a){i.e(a)}finally{i.f()}}var zu=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this))._splitParts=new Map,r._cursorParents=new Map,r._modelCursor=null,r._emptyElementsToKeep=new Set,r.conversionApi=a(a({},e),{},{consumable:null,writer:null,store:null,convertItem:function(e,t){return r._convertItem(e,t)},convertChildren:function(e,t){return r._convertChildren(e,t)},safeInsert:function(e,t){return r._safeInsert(e,t)},updateConversionResult:function(e,t){return r._updateConversionResult(e,t)},splitToAllowedParent:function(e,t){return r._splitToAllowedParent(e,t)},getSplitParts:function(e){return r._getSplitParts(e)},keepEmptyElement:function(e){return r._keepEmptyElement(e)}}),r}return b(n,[{key:"convert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",e),this._modelCursor=function(e,t){var n,r,i=h(new Eu(e));try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s={},l=h(a.getAttributeKeys());try{for(l.s();!(o=l.n()).done;){var u=o.value;s[u]=a.getAttribute(u)}}catch(d){l.e(d)}finally{l.f()}var c=t.createElement(a.name,s);n&&t.insert(c,n),n=xl._createAt(c,0)}}catch(d){i.e(d)}finally{i.f()}return n}(n,t),this.conversionApi.writer=t,this.conversionApi.consumable=_u.createFrom(e),this.conversionApi.store={};var r=this._convertItem(e,this._modelCursor).modelRange,i=t.createDocumentFragment();if(r){this._removeEmptyElements();for(var o=0,a=Array.from(this._modelCursor.parent.getChildren());o]*)?>/i)||(e="".concat(e,""));for(var t=this.domParser.parseFromString(e,"text/html"),n=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)n.appendChild(r[0]);return n}}]),e}(),Uu=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this)).model=e,i.mapper=new Il,i.downcastDispatcher=new Ol({mapper:i.mapper,schema:e.schema}),i.downcastDispatcher.on("insert:$text",(function(e,t,n){if(n.consumable.consume(t.item,e.name)){var r=n.writer,i=n.mapper.toViewPosition(t.range.start),o=r.createText(t.item.data);r.insert(i,o)}}),{priority:"lowest"}),i.downcastDispatcher.on("insert",(function(e,t,n){n.convertAttributes(t.item),t.reconversion||!t.item.is("element")||t.item.isEmpty||n.convertChildren(t.item)}),{priority:"lowest"}),i.upcastDispatcher=new zu({schema:e.schema}),i.viewDocument=new Ao(r),i.stylesProcessor=r,i.htmlProcessor=new Vu(i.viewDocument),i.processor=i.htmlProcessor,i._viewWriter=new Ko(i.viewDocument),i.upcastDispatcher.on("text",(function(e,t,n){var r=n.schema,i=n.consumable,o=n.writer,a=t.modelCursor;if(i.test(t.viewItem)){if(!r.checkChild(a,"$text")){if(!du(a,"$text",r))return;if(0==t.viewItem.data.trim().length)return;a=fu(a,o)}i.consume(t.viewItem);var s=o.createText(t.viewItem.data);o.insert(s,a),t.modelRange=o.createRange(a,a.getShiftedBy(s.offsetSize)),t.modelCursor=t.modelRange.end}}),{priority:"lowest"}),i.upcastDispatcher.on("element",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),i.upcastDispatcher.on("documentFragment",(function(e,t,n){if(!t.modelRange&&n.consumable.consume(t.viewItem,{name:!0})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o}}),{priority:"lowest"}),ie.prototype.decorate.call(d(i),"init"),ie.prototype.decorate.call(d(i),"set"),ie.prototype.decorate.call(d(i),"get"),i.on("init",(function(){i.fire("ready")}),{priority:"lowest"}),i.on("ready",(function(){i.model.enqueueChange({isUndoable:!1},cu)}),{priority:"lowest"}),i}return b(n,[{key:"get",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.rootName,n=void 0===t?"main":t,r=e.trim,i=void 0===r?"empty":r;if(!this._checkIfRootsExists([n]))throw new P("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(n);return"empty"!==i||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,e):""}},{key:"stringify",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toView(e,t);return this.processor.toData(n)}},{key:"toView",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.viewDocument,r=this._viewWriter;this.mapper.clearBindings();var i=Tl._createIn(e),o=new $o(n);this.mapper.bindElements(e,o);var a=e.is("documentFragment")?e.markers:function(e){var t=[],n=e.root.document;if(!n)return new Map;var r,i=Tl._createIn(e),o=h(n.model.markers);try{for(o.s();!(r=o.n()).done;){var a=r.value,s=a.getRange(),l=s.isCollapsed,u=s.start.isEqual(i.start)||s.end.isEqual(i.end);if(l&&u)t.push([a.name,s]);else{var c=i.getIntersection(s);c&&t.push([a.name,c])}}}catch(d){o.e(d)}finally{o.f()}return t.sort((function(e,t){var n=p(e,2),r=n[0],i=n[1],o=p(t,2),a=o[0],s=o[1];if("after"!==i.end.compareWith(s.start))return 1;if("before"!==i.start.compareWith(s.end))return-1;switch(i.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(i.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return a.localeCompare(r)}}})),new Map(t)}(e);return this.downcastDispatcher.convert(i,a,r,t),o}},{key:"init",value:function(e){var t=this;if(this.model.document.version)throw new P("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof e?n.main=e:n=e,!this._checkIfRootsExists(Object.keys(n)))throw new P("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(function(e){for(var r=0,i=Object.keys(n);r1&&void 0!==arguments[1]?arguments[1]:{},r={};if("string"==typeof e?r.main=e:r=e,!this._checkIfRootsExists(Object.keys(r)))throw new P("datacontroller-set-non-existent-root",this);this.model.enqueueChange(n.batchType||{},(function(e){e.setSelection(null),e.removeSelectionAttribute(t.model.document.selection.getAttributeKeys());for(var n=0,i=Object.keys(r);n1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(e);return this.toModel(n,t)}},{key:"toModel",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(r){return t.upcastDispatcher.convert(e,r,n)}))}},{key:"addStyleProcessorRules",value:function(e){e(this.stylesProcessor)}},{key:"registerRawContentMatcher",value:function(e){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(e),this.htmlProcessor.registerRawContentMatcher(e)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(e){var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;if(!this.model.document.getRootNames().includes(r))return!1}}catch(i){n.e(i)}finally{n.f()}return!0}}]),n}(U),Hu=function(){function e(t,n){k(this,e),this._helpers=new Map,this._downcast=Vr(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Vr(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}return b(e,[{key:"addAlias",value:function(e,t){var n=this._downcast.includes(t);if(!this._upcast.includes(t)&&!n)throw new P("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:e,dispatchers:[t],isDowncast:n})}},{key:"for",value:function(e){if(!this._helpers.has(e))throw new P("conversion-for-unknown-group",this);return this._helpers.get(e)}},{key:"elementToElement",value:function(e){this.for("downcast").elementToElement(e);var t,n=h(qu(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToElement({model:i,view:o,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToElement",value:function(e){this.for("downcast").attributeToElement(e);var t,n=h(qu(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").elementToAttribute({view:o,model:i,converterPriority:e.converterPriority})}}catch(a){n.e(a)}finally{n.f()}}},{key:"attributeToAttribute",value:function(e){this.for("downcast").attributeToAttribute(e);var t,n=h(qu(e));try{for(n.s();!(t=n.n()).done;){var r=t.value,i=r.model,o=r.view;this.for("upcast").attributeToAttribute({view:o,model:i})}}catch(a){n.e(a)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(e){var t=e.name,n=e.dispatchers,r=e.isDowncast;if(this._helpers.has(t))throw new P("conversion-group-exists",this);var i=r?new Jl(n):new pu(n);this._helpers.set(t,i)}}]),e}();function qu(e){var t,n,r,i,o,a;return f().wrap((function(s){for(;;)switch(s.prev=s.next){case 0:if(!e.model.values){s.next=20;break}t=h(e.model.values),s.prev=2,t.s();case 4:if((n=t.n()).done){s.next=10;break}return r=n.value,i={key:e.model.key,value:r},o=e.view[r],a=e.upcastAlso?e.upcastAlso[r]:void 0,s.delegateYield(Wu(i,o,a),"t0",8);case 8:s.next=4;break;case 10:s.next=15;break;case 12:s.prev=12,s.t1=s.catch(2),t.e(s.t1);case 15:return s.prev=15,t.f(),s.finish(15);case 18:s.next=21;break;case 20:return s.delegateYield(Wu(e.model,e.view,e.upcastAlso),"t2",21);case 21:case"end":return s.stop()}}),w,null,[[2,12,15,18]])}function Wu(e,t,n){var r,i,o;return f().wrap((function(a){for(;;)switch(a.prev=a.next){case 0:return a.next=2,{model:e,view:t};case 2:if(!n){a.next=20;break}r=h(Vr(n)),a.prev=4,r.s();case 6:if((i=r.n()).done){a.next=12;break}return o=i.value,a.next=10,{model:e,view:o};case 10:a.next=6;break;case 12:a.next=17;break;case 14:a.prev=14,a.t0=a.catch(4),r.e(a.t0);case 17:return a.prev=17,r.f(),a.finish(17);case 20:case"end":return a.stop()}}),_,null,[[4,14,17,20]])}var Gu=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this,e),"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},D("batch-constructor-deprecated-string-type"));var n=t,r=n.isUndoable,i=void 0===r||r,o=n.isLocal,a=void 0===o||o,s=n.isUndo,l=void 0!==s&&s,u=n.isTyping,c=void 0!==u&&u;this.operations=[],this.isUndoable=i,this.isLocal=a,this.isUndo=l,this.isTyping=c}return b(e,[{key:"type",get:function(){return D("batch-type-deprecated"),"default"}},{key:"baseVersion",get:function(){var e,t=h(this.operations);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(null!==n.baseVersion)return n.baseVersion}}catch(r){t.e(r)}finally{t.f()}return null}},{key:"addOperation",value:function(e){return e.batch=this,this.operations.push(e),e}}]),e}(),$u=function(){function e(t){k(this,e),this._markerCollection=t,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}return b(e,[{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}},{key:"bufferOperation",value:function(e){var t=e;switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var n,r=h(t.range.getItems({shallow:!0}));try{for(r.s();!(n=r.n()).done;){var i=n.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(g){r.e(g)}finally{r.f()}break;case"remove":case"move":case"reinsert":if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;var o=this._isInInsertedElement(t.sourcePosition.parent),a=this._isInInsertedElement(t.targetPosition.parent);o||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),a||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break;case"rename":if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);var s,l=Tl._createFromPositionAndShift(t.position,1),u=h(this._markerCollection.getMarkersIntersectingRange(l));try{for(u.s();!(s=u.n()).done;){var c=s.value,d=c.getData();this.bufferMarkerChange(c.name,d,d)}}catch(g){u.e(g)}finally{u.f()}break;case"split":var f=t.splitPosition.parent;this._isInInsertedElement(f)||this._markRemove(f,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break;case"merge":var p=t.sourcePosition.parent;this._isInInsertedElement(p.parent)||this._markRemove(p.parent,p.startOffset,1);var v=t.graveyardPosition.parent;this._markInsert(v,t.graveyardPosition.offset,1);var m=t.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,t.targetPosition.offset,p.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(e,t,n){var r=this._changedMarkers.get(e);r?(r.newMarkerData=n,null==r.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(e)):this._changedMarkers.set(e,{newMarkerData:n,oldMarkerData:t})}},{key:"getMarkersToRemove",value:function(){var e,t=[],n=h(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=p(e.value,2),i=r[0],o=r[1];null!=o.oldMarkerData.range&&t.push({name:i,range:o.oldMarkerData.range})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getMarkersToAdd",value:function(){var e,t=[],n=h(this._changedMarkers);try{for(n.s();!(e=n.n()).done;){var r=p(e.value,2),i=r[0],o=r[1];null!=o.newMarkerData.range&&t.push({name:i,range:o.newMarkerData.range})}}catch(a){n.e(a)}finally{n.f()}return t}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(e){var t=p(e,2),n=t[0],r=t[1];return{name:n,data:{oldRange:r.oldMarkerData.range,newRange:r.newMarkerData.range}}}))}},{key:"hasDataChanges",value:function(){if(this._changesInElement.size>0)return!0;var e,t=h(this._changedMarkers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value,r=n.newMarkerData,i=n.oldMarkerData;if(r.affectsData!==i.affectsData)return!0;if(r.affectsData){var o=r.range&&!i.range,a=!r.range&&i.range,s=r.range&&i.range&&!r.range.isEqual(i.range);if(o||a||s)return!0}}}catch(l){t.e(l)}finally{t.f()}return!1}},{key:"getChanges",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(this._cachedChanges)return e.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var t,n=[],r=h(this._changesInElement.keys());try{for(r.s();!(t=r.n()).done;){var i,o=t.value,a=this._changesInElement.get(o).sort((function(e,t){return e.offset===t.offset?e.type!=t.type?"remove"==e.type?-1:1:0:e.offseti.offset){if(o>a){var p={type:"attribute",offset:a,howMany:o-a,count:this._changeCount++};this._handleChange(p,t),t.push(p)}e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}else e.offset>=i.offset&&e.offseta?(e.nodesToHandle=o-a,e.offset=a):e.nodesToHandle=0);if("remove"==i.type&&e.offseti.offset){var v={type:"attribute",offset:i.offset,howMany:o-i.offset,count:this._changeCount++};this._handleChange(v,t),t.push(v),e.nodesToHandle=i.offset-e.offset,e.howMany=e.nodesToHandle}"attribute"==i.type&&(e.offset>=i.offset&&o<=a?(e.nodesToHandle=0,e.howMany=0,e.offset=0):e.offset<=i.offset&&o>=a&&(i.howMany=0))}}}catch(m){r.e(m)}finally{r.f()}e.howMany=e.nodesToHandle,delete e.nodesToHandle}},{key:"_getInsertDiff",value:function(e,t,n){return{type:"insert",position:xl._createAt(e,t),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(e,t,n){return{type:"remove",position:xl._createAt(e,t),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(e,t,n){var r=[];n=new Map(n);var i,o=h(t);try{for(o.s();!(i=o.n()).done;){var a=p(i.value,2),s=a[0],l=a[1],u=n.has(s)?n.get(s):null;u!==l&&r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:s,attributeOldValue:l,attributeNewValue:u,changeCount:this._changeCount++}),n.delete(s)}}catch(g){o.e(g)}finally{o.f()}var c,d=h(n);try{for(d.s();!(c=d.n()).done;){var f=p(c.value,2),v=f[0],m=f[1];r.push({type:"attribute",position:e.start,range:e.clone(),length:1,attributeKey:v,attributeOldValue:null,attributeNewValue:m,changeCount:this._changeCount++})}}catch(g){d.e(g)}finally{d.f()}return r}},{key:"_isInInsertedElement",value:function(e){var t=e.parent;if(!t)return!1;var n=this._changesInElement.get(t),r=e.startOffset;if(n){var i,o=h(n);try{for(o.s();!(i=o.n()).done;){var a=i.value;if("insert"==a.type&&r>=a.offset&&ri){for(var l=0;lthis._version+1&&this._gaps.set(this._version,e),this._version=e}},{key:"lastOperation",get:function(){return this._operations[this._operations.length-1]}},{key:"addOperation",value:function(e){if(e.baseVersion!==this.version)throw new P("model-document-history-addoperation-incorrect-version",this,{operation:e,historyVersion:this.version});this._operations.push(e),this._version++,this._baseVersionToOperationIndex.set(e.baseVersion,this._operations.length-1)}},{key:"getOperations",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.version;if(!this._operations.length)return[];var n=this._operations[0];void 0===e&&(e=n.baseVersion);var r,i=t-1,o=h(this._gaps);try{for(o.s();!(r=o.n()).done;){var a=p(r.value,2),s=a[0],l=a[1];e>s&&es&&ithis.lastOperation.baseVersion)return[];var u=this._baseVersionToOperationIndex.get(e);void 0===u&&(u=0);var c=this._baseVersionToOperationIndex.get(i);return void 0===c&&(c=this._operations.length-1),this._operations.slice(u,c+1)}},{key:"getOperation",value:function(e){var t=this._baseVersionToOperationIndex.get(e);if(void 0!==t)return this._operations[t]}},{key:"setOperationAsUndone",value:function(e,t){this._undoPairs.set(t,e),this._undoneOperations.add(e)}},{key:"isUndoingOperation",value:function(e){return this._undoPairs.has(e)}},{key:"isUndoneOperation",value:function(e){return this._undoneOperations.has(e)}},{key:"getUndoneOperation",value:function(e){return this._undoPairs.get(e)}},{key:"reset",value:function(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}]),e}(),Xu=function(e){m(n,e);var t=g(n);function n(e,r){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return k(this,n),(i=t.call(this,r))._document=e,i.rootName=o,i}return b(n,[{key:"document",get:function(){return this._document}},{key:"toJSON",value:function(){return this.rootName}}]),n}(wl);function ec(e,t){return!!(n=e.charAt(t-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(e){return!!e&&1==e.length&&/[\udc00-\udfff]/.test(e)}(e.charAt(t));var n}function tc(e,t){return!!(n=e.charAt(t))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n}Xu.prototype.is=function(e,t){return t?t===this.name&&("rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e):"rootElement"===e||"model:rootElement"===e||"element"===e||"model:element"===e||"node"===e||"model:node"===e};var nc=function(){var e=/(?:\uD83C[\uDDE6-\uDDFF]){2}/.source,t="(?:"+[/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])(?:\uDB40[\uDC20-\uDC7E])+(?:\uDB40\uDC7F)/,/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])\uFE0F?\u20E3/,/(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])\uFE0F/,/(?=(?:[\xA6\xA9\xAE\xB0\u0482\u058D\u058E\u060E\u060F\u06DE\u06E9\u06FD\u06FE\u07F6\u09FA\u0B70\u0BF3-\u0BF8\u0BFA\u0C7F\u0D4F\u0D79\u0F01-\u0F03\u0F13\u0F15-\u0F17\u0F1A-\u0F1F\u0F34\u0F36\u0F38\u0FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u214A\u214C\u214D\u214F\u218A\u218B\u2195-\u2199\u219C-\u219F\u21A1\u21A2\u21A4\u21A5\u21A7-\u21AD\u21AF-\u21CD\u21D0\u21D1\u21D3\u21D5-\u21F3\u2300-\u2307\u230C-\u231F\u2322-\u2328\u232B-\u237B\u237D-\u239A\u23B4-\u23DB\u23E2-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u25B6\u25B8-\u25C0\u25C2-\u25F7\u2600-\u266E\u2670-\u2767\u2794-\u27BF\u2800-\u28FF\u2B00-\u2B2F\u2B45\u2B46\u2B4D-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA828-\uA82B\uA836\uA837\uA839\uAA77-\uAA79\uFD40-\uFD4F\uFDCF\uFDFD-\uFDFF\uFFE4\uFFE8\uFFED\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFDC\uDFE1-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838\uDD4F|\uD83B[\uDCAC\uDD2E]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFA]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]))(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])(?:\uD83C[\uDFFB-\uDFFF])*/].map((function(e){return e.source})).join("|")+")";return new RegExp("".concat(e,"|").concat(t,"(?:\u200d").concat(t,")*"),"ug")}();function rc(e,t){var n=String(e).matchAll(nc);return Array.from(n).some((function(e){return e.index0&&void 0!==arguments[0]?arguments[0]:"$root",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(t))throw new P("model-document-createroot-name-exists",this,{name:t});var n=new Xu(this,e,t);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(e)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(e){return e.rootName})).filter((function(e){return e!=ic}))}},{key:"registerPostFixer",value:function(e){this._postFixers.add(e)}},{key:"toJSON",value:function(){var e=Qr(this);return e.selection="[engine.model.DocumentSelection]",e.model="[engine.model.Model]",e}},{key:"_handleChangeBlock",value:function(e){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(e),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",e.batch):this.fire("change",e.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var e,t=h(this.roots);try{for(t.s();!(e=t.n()).done;){var n=e.value;if(n!==this.graveyard)return n}}catch(r){t.e(r)}finally{t.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var e=this._getDefaultRoot(),t=this.model,n=t.schema,r=t.createPositionFromPath(e,[0]);return n.getNearestSelectionRange(r)||t.createRange(r)}},{key:"_validateSelectionRange",value:function(e){return ac(e.start)&&ac(e.end)}},{key:"_callPostFixers",value:function(e){var t=!1;do{var n,r=h(this._postFixers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(this.selection.refresh(),t=i(e))break}}catch(o){r.e(o)}finally{r.f()}}while(t)}}]),n}(U);function ac(e){var t=e.textNode;if(t){var n=t.data,r=e.offset-t.startOffset;return!ec(n,r)&&!tc(n,r)}return!0}var sc=function(e,t){m(r,e);var n=g(r);function r(){var e;return k(this,r),(e=n.call(this))._markers=new Map,e}return b(r,[{key:t,value:function(){return this._markers.values()}},{key:"has",value:function(e){var t=e instanceof lc?e.name:e;return this._markers.has(t)}},{key:"get",value:function(e){return this._markers.get(e)||null}},{key:"_set",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],r=arguments.length>3&&void 0!==arguments[3]&&arguments[3],i=e instanceof lc?e.name:e;if(i.includes(","))throw new P("markercollection-incorrect-marker-name",this);var o=this._markers.get(i);if(o){var s=o.getData(),l=o.getRange(),u=!1;return l.isEqual(t)||(o._attachLiveRange(Vl.fromRange(t)),u=!0),n!=o.managedUsingOperations&&(o._managedUsingOperations=n,u=!0),"boolean"==typeof r&&r!=o.affectsData&&(o._affectsData=r,u=!0),u&&this.fire("update:".concat(i),o,l,t,s),o}var c=Vl.fromRange(t),d=new lc(i,c,n,r);return this._markers.set(i,d),this.fire("update:".concat(i),d,null,t,a(a({},d.getData()),{},{range:null})),d}},{key:"_remove",value:function(e){var t=e instanceof lc?e.name:e,n=this._markers.get(t);return!!n&&(this._markers.delete(t),this.fire("update:".concat(t),n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(e){var t=e instanceof lc?e.name:e,n=this._markers.get(t);if(!n)throw new P("markercollection-refresh-marker-not-exists",this);var r=n.getRange();this.fire("update:".concat(t),n,r,r,n.getData())}},{key:"getMarkersAtPosition",value:f().mark((function e(t){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=h(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.getRange().containsPosition(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:f().mark((function e(t){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=h(this),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=null!==i.getRange().getIntersection(t),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var e,t=h(this._markers.values());try{for(t.s();!(e=t.n()).done;){var n=e.value;this._destroyMarker(n)}}catch(r){t.e(r)}finally{t.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:f().mark((function e(t){var n,r,i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:n=h(this._markers.values()),e.prev=1,n.s();case 3:if((r=n.n()).done){e.next=11;break}if(i=r.value,e.t0=i.name.startsWith(t+":"),!e.t0){e.next=9;break}return e.next=9,i;case 9:e.next=3;break;case 11:e.next=16;break;case 13:e.prev=13,e.t1=e.catch(1),n.e(e.t1);case 16:return e.prev=16,n.f(),e.finish(16);case 19:case"end":return e.stop()}}),e,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(e){e.stopListening(),e._detachLiveRange()}}]),r}(U,Symbol.iterator),lc=function(e){m(n,e);var t=g(n);function n(e,r,i,o){var a;return k(this,n),(a=t.call(this)).name=e,a._liveRange=a._attachLiveRange(r),a._managedUsingOperations=i,a._affectsData=o,a}return b(n,[{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new P("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new P("marker-destroyed",this);return this._affectsData}},{key:"getData",value:function(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}},{key:"getStart",value:function(){if(!this._liveRange)throw new P("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new P("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new P("marker-destroyed",this);return this._liveRange.toRange()}},{key:"_attachLiveRange",value:function(e){return this._liveRange&&this._detachLiveRange(),e.delegate("change:range").to(this),e.delegate("change:content").to(this),this._liveRange=e,e}},{key:"_detachLiveRange",value:function(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}]),n}(V(ml));lc.prototype.is=function(e){return"marker"===e||"model:marker"===e};var uc=function(){function e(t){k(this,e),this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return b(e,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var e=Object.assign({},this);return e.__className=this.constructor.className,delete e.batch,delete e.isDocumentOperation,e}}],[{key:"className",get:function(){return"Operation"}},{key:"fromJSON",value:function(e,t){return new this(e.baseVersion)}}]),e}();function cc(e,t){var n=pc(t),r=n.reduce((function(e,t){return e+t.offsetSize}),0),i=e.parent;vc(e);var o=e.index;return i._insertChild(o,n),hc(i,o+n.length),hc(i,o),new Tl(e,e.getShiftedBy(r))}function dc(e){if(!e.isFlat)throw new P("operation-utils-remove-range-not-flat",this);var t=e.start.parent;vc(e.start),vc(e.end);var n=t._removeChildren(e.start.index,e.end.index-e.start.index);return hc(t,e.start.index),n}function fc(e,t){if(!e.isFlat)throw new P("operation-utils-move-range-not-flat",this);var n=dc(e);return cc(t=t._getTransformedByDeletion(e.start,e.end.offset-e.start.offset),n)}function pc(e){var t=[];!function e(n){if("string"==typeof n)t.push(new bl(n));else if(n instanceof kl)t.push(new bl(n.data,n.getAttributes()));else if(n instanceof gl)t.push(n);else if(Lr(n)){var r,i=h(n);try{for(i.s();!(r=i.n()).done;)e(r.value)}catch(o){i.e(o)}finally{i.f()}}}(e);for(var n=1;ne.maxOffset)throw new P("move-operation-nodes-do-not-exist",this);if(e===t&&n=n&&this.targetPosition.path[i]1&&void 0!==arguments[1]?arguments[1]:1,r=this._children._removeNodes(e,n),i=h(r);try{for(i.s();!(t=i.n()).done;)t.value.parent=null}catch(o){i.e(o)}finally{i.f()}return r}}],[{key:"fromJSON",value:function(e){var t,n=[],i=h(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.name?n.push(wl.fromJSON(o)):n.push(bl.fromJSON(o))}}catch(a){i.e(a)}finally{i.f()}return new r(n)}}]),r}(ml,Symbol.iterator);Tc.prototype.is=function(e){return"documentFragment"===e||"model:documentFragment"===e};var Ic=function(){function e(t,n){k(this,e),this.model=t,this.batch=n}return b(e,[{key:"createText",value:function(e,t){return new bl(e,t)}},{key:"createElement",value:function(e,t){return new wl(e,t)}},{key:"createDocumentFragment",value:function(){return new Tc}},{key:"cloneElement",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e._clone(t)}},{key:"insert",value:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(e instanceof bl&&""==e.data)){var r=xl._createAt(t,n);if(e.parent){if(Rc(e.root,r.root))return void this.move(Tl._createOn(e),r);if(e.root.document)throw new P("model-writer-insert-forbidden-move",this);this.remove(e)}var i=r.root.document?r.root.document.version:null,o=new kc(r,e,i);if(e instanceof bl&&(o.shouldReceiveAttributes=!0),this.batch.addOperation(o),this.model.applyOperation(o),e instanceof Tc){var a,s=h(e.markers);try{for(s.s();!(a=s.n()).done;){var l=p(a.value,2),u=l[0],c=l[1],d=xl._createAt(c.root,0),f={range:new Tl(c.start._getCombined(d,r),c.end._getCombined(d,r)),usingOperation:!0,affectsData:!0};this.model.markers.has(u)?this.updateMarker(u,f):this.addMarker(u,f)}}catch(v){s.e(v)}finally{s.f()}}}}},{key:"insertText",value:function(e,t,n,r){t instanceof Tc||t instanceof wl||t instanceof xl?this.insert(this.createText(e),t,n):this.insert(this.createText(e,t),n,r)}},{key:"insertElement",value:function(e,t,n,r){t instanceof Tc||t instanceof wl||t instanceof xl?this.insert(this.createElement(e),t,n):this.insert(this.createElement(e,t),n,r)}},{key:"append",value:function(e,t){this.insert(e,t,"end")}},{key:"appendText",value:function(e,t,n){t instanceof Tc||t instanceof wl?this.insert(this.createText(e),t,"end"):this.insert(this.createText(e,t),n,"end")}},{key:"appendElement",value:function(e,t,n){t instanceof Tc||t instanceof wl?this.insert(this.createElement(e),t,"end"):this.insert(this.createElement(e,t),n,"end")}},{key:"setAttribute",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),n instanceof Tl){var r,i=n.getMinimalFlatRanges(),o=h(i);try{for(o.s();!(r=o.n()).done;)Pc(this,e,t,r.value)}catch(a){o.e(a)}finally{o.f()}}else Dc(this,e,t,n)}},{key:"setAttributes",value:function(e,t){var n,r=h(ni(e));try{for(r.s();!(n=r.n()).done;){var i=p(n.value,2),o=i[0],a=i[1];this.setAttribute(o,a,t)}}catch(s){r.e(s)}finally{r.f()}}},{key:"removeAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),t instanceof Tl){var n,r=t.getMinimalFlatRanges(),i=h(r);try{for(i.s();!(n=i.n()).done;)Pc(this,e,null,n.value)}catch(o){i.e(o)}finally{i.f()}}else Dc(this,e,null,t)}},{key:"clearAttributes",value:function(e){var t=this;this._assertWriterUsedCorrectly();var n=function(e){var n,r=h(e.getAttributeKeys());try{for(r.s();!(n=r.n()).done;){var i=n.value;t.removeAttribute(i,e)}}catch(o){r.e(o)}finally{r.f()}};if(e instanceof Tl){var r,i=h(e.getItems());try{for(i.s();!(r=i.n()).done;)n(r.value)}catch(o){i.e(o)}finally{i.f()}}else n(e)}},{key:"move",value:function(e,t,n){if(this._assertWriterUsedCorrectly(),!(e instanceof Tl))throw new P("writer-move-invalid-range",this);if(!e.isFlat)throw new P("writer-move-range-not-flat",this);var r=xl._createAt(t,n);if(!r.isEqual(e.start)){if(this._addOperationForAffectedMarkers("move",e),!Rc(e.root,r.root))throw new P("writer-move-different-document",this);var i=e.root.document?e.root.document.version:null,o=new bc(e.start,e.end.offset-e.start.offset,r,i);this.batch.addOperation(o),this.model.applyOperation(o)}}},{key:"remove",value:function(e){this._assertWriterUsedCorrectly();var t,n=(e instanceof Tl?e:Tl._createOn(e)).getMinimalFlatRanges().reverse(),r=h(n);try{for(r.s();!(t=r.n()).done;){var i=t.value;this._addOperationForAffectedMarkers("move",i),Nc(i.start,i.end.offset-i.start.offset,this.batch,this.model)}}catch(o){r.e(o)}finally{r.f()}}},{key:"merge",value:function(e){this._assertWriterUsedCorrectly();var t=e.nodeBefore,n=e.nodeAfter;if(this._addOperationForAffectedMarkers("merge",e),!(t instanceof wl))throw new P("writer-merge-no-element-before",this);if(!(n instanceof wl))throw new P("writer-merge-no-element-after",this);e.root.document?this._merge(e):this._mergeDetached(e)}},{key:"createPositionFromPath",value:function(e,t,n){return this.model.createPositionFromPath(e,t,n)}},{key:"createPositionAt",value:function(e,t){return this.model.createPositionAt(e,t)}},{key:"createPositionAfter",value:function(e){return this.model.createPositionAfter(e)}},{key:"createPositionBefore",value:function(e){return this.model.createPositionBefore(e)}},{key:"createRange",value:function(e,t){return this.model.createRange(e,t)}},{key:"createRangeIn",value:function(e){return this.model.createRangeIn(e)}},{key:"createRangeOn",value:function(e){return this.model.createRangeOn(e)}},{key:"createSelection",value:function(){var e;return(e=this.model).createSelection.apply(e,arguments)}},{key:"_mergeDetached",value:function(e){var t=e.nodeBefore,n=e.nodeAfter;this.move(Tl._createIn(n),xl._createAt(t,"end")),this.remove(n)}},{key:"_merge",value:function(e){var t=xl._createAt(e.nodeBefore,"end"),n=xl._createAt(e.nodeAfter,0),r=e.root.document.graveyard,i=new xl(r,[0]),o=e.root.document.version,a=new Ac(n,e.nodeAfter.maxOffset,t,i,o);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(e,t){if(this._assertWriterUsedCorrectly(),!(e instanceof wl))throw new P("writer-rename-not-element-instance",this);var n=e.root.document?e.root.document.version:null,r=new Cc(xl._createBefore(e),e.name,t,n);this.batch.addOperation(r),this.model.applyOperation(r)}},{key:"split",value:function(e,t){this._assertWriterUsedCorrectly();var n,r,i=e.parent;if(!i.parent)throw new P("writer-split-element-no-parent",this);if(t||(t=i.parent),!e.parent.getAncestors({includeSelf:!0}).includes(t))throw new P("writer-split-invalid-limit-element",this);do{var o=i.root.document?i.root.document.version:null,a=i.maxOffset-e.offset,s=Ec.getInsertionPosition(e),l=new Ec(e,a,s,null,o);this.batch.addOperation(l),this.model.applyOperation(l),n||r||(n=i,r=e.parent.nextSibling),i=(e=this.createPositionAfter(e.parent)).parent}while(i!==t);return{position:e,range:new Tl(xl._createAt(n,"end"),xl._createAt(r,0))}}},{key:"wrap",value:function(e,t){if(this._assertWriterUsedCorrectly(),!e.isFlat)throw new P("writer-wrap-range-not-flat",this);var n=t instanceof wl?t:new wl(t);if(n.childCount>0)throw new P("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new P("writer-wrap-element-attached",this);this.insert(n,e.start);var r=new Tl(e.start.getShiftedBy(1),e.end.getShiftedBy(1));this.move(r,xl._createAt(n,0))}},{key:"unwrap",value:function(e){if(this._assertWriterUsedCorrectly(),null===e.parent)throw new P("writer-unwrap-element-no-parent",this);this.move(Tl._createIn(e),this.createPositionAfter(e)),this.remove(e)}},{key:"addMarker",value:function(e,t){if(this._assertWriterUsedCorrectly(),!t||"boolean"!=typeof t.usingOperation)throw new P("writer-addmarker-no-usingoperation",this);var n=t.usingOperation,r=t.range,i=void 0!==t.affectsData&&t.affectsData;if(this.model.markers.has(e))throw new P("writer-addmarker-marker-exists",this);if(!r)throw new P("writer-addmarker-no-range",this);return n?(Oc(this,e,null,r,i),this.model.markers.get(e)):this.model.markers._set(e,r,n,i)}},{key:"updateMarker",value:function(e,t){this._assertWriterUsedCorrectly();var n="string"==typeof e?e:e.name,r=this.model.markers.get(n);if(!r)throw new P("writer-updatemarker-marker-not-exists",this);if(!t)return D("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(r);var i="boolean"==typeof t.usingOperation,o="boolean"==typeof t.affectsData,a=o?t.affectsData:r.affectsData;if(!i&&!t.range&&!o)throw new P("writer-updatemarker-wrong-options",this);var s=r.getRange(),l=t.range?t.range:s;i&&t.usingOperation!==r.managedUsingOperations?t.usingOperation?Oc(this,n,null,l,a):(Oc(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):r.managedUsingOperations?Oc(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}},{key:"removeMarker",value:function(e){this._assertWriterUsedCorrectly();var t="string"==typeof e?e:e.name;if(!this.model.markers.has(t))throw new P("writer-removemarker-no-marker",this);var n=this.model.markers.get(t);n.managedUsingOperations?Oc(this,t,n.getRange(),null,n.affectsData):this.model.markers._remove(t)}},{key:"setSelection",value:function(){var e;this._assertWriterUsedCorrectly(),(e=this.model.document.selection)._setTo.apply(e,arguments)}},{key:"setSelectionFocus",value:function(e,t){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(e,t)}},{key:"setSelectionAttribute",value:function(e,t){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._setSelectionAttribute(e,t);else{var n,r=h(ni(e));try{for(r.s();!(n=r.n()).done;){var i=p(n.value,2),o=i[0],a=i[1];this._setSelectionAttribute(o,a)}}catch(s){r.e(s)}finally{r.f()}}}},{key:"removeSelectionAttribute",value:function(e){if(this._assertWriterUsedCorrectly(),"string"==typeof e)this._removeSelectionAttribute(e);else{var t,n=h(e);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._removeSelectionAttribute(r)}}catch(i){n.e(i)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(e){this.model.document.selection._restoreGravity(e)}},{key:"_setSelectionAttribute",value:function(e,t){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var r=Wl._getStoreAttributeKey(e);this.setAttribute(r,t,n.anchor.parent)}n._setAttribute(e,t)}},{key:"_removeSelectionAttribute",value:function(e){var t=this.model.document.selection;if(t.isCollapsed&&t.anchor.parent.isEmpty){var n=Wl._getStoreAttributeKey(e);this.removeAttribute(n,t.anchor.parent)}t._removeAttribute(e)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new P("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(e,t){var n,r=h(this.model.markers);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.managedUsingOperations){var o=i.getRange(),a=!1;if("move"===e){var s=t;a=s.containsPosition(o.start)||s.start.isEqual(o.start)||s.containsPosition(o.end)||s.end.isEqual(o.end)}else{var l=t,u=l.nodeBefore,c=l.nodeAfter,d=o.start.parent==u&&o.start.isAtEnd,f=o.end.parent==c&&0==o.end.offset,p=o.end.nodeAfter==c,v=o.start.nodeAfter==c;a=d||f||p||v}a&&this.updateMarker(i.name,{range:o})}}}catch(m){r.e(m)}finally{r.f()}}}]),e}();function Pc(e,t,n,r){var i,o,a,s,l=e.model,u=l.document,c=r.start,d=h(r.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var f=s.value;a=f.item.getAttribute(t),i&&o!=a&&(o!=n&&p(),c=i),i=f.nextPosition,o=a}}catch(v){d.e(v)}finally{d.f()}function p(){var r=new Tl(c,i),a=r.root.document?u.version:null,s=new yc(r,t,o,n,a);e.batch.addOperation(s),l.applyOperation(s)}i instanceof xl&&i!=c&&o!=n&&p()}function Dc(e,t,n,r){var i,o,a=e.model,s=a.document,l=r.getAttribute(t);if(l!=n){if(r.root===r){var u=r.document?s.version:null;o=new xc(r,t,l,n,u)}else{var c=(i=new Tl(xl._createBefore(r),e.createPositionAfter(r))).root.document?s.version:null;o=new yc(i,t,l,n,c)}e.batch.addOperation(o),a.applyOperation(o)}}function Oc(e,t,n,r,i){var o=e.model,a=o.document,s=new wc(t,n,r,o.markers,!!i,a.version);e.batch.addOperation(s),o.applyOperation(s)}function Nc(e,t,n,r){var i;if(e.root.document){var o=r.document,a=new xl(o.graveyard,[0]);i=new bc(e,t,a,o.version)}else i=new Mc(e,t);n.addOperation(i),r.applyOperation(i)}function Rc(e,t){return e===t||e instanceof Xu&&t instanceof Xu}function jc(e){e.document.registerPostFixer((function(t){return function(e,t){var n,r=t.document.selection,i=t.schema,o=[],a=!1,s=h(r.getRanges());try{for(s.s();!(n=s.n()).done;){var l=n.value,u=Lc(l,i);u&&!u.isEqual(l)?(o.push(u),a=!0):o.push(l)}}catch(c){s.e(c)}finally{s.f()}return a&&e.setSelection(function(e){for(var t=v(e),n=new Set,r=1;r2&&void 0!==arguments[2]?arguments[2]:"toNone";if(k(this,n),!(i=t.call(this,e,r,o)).root.is("rootElement"))throw new P("model-liveposition-root-not-rootelement",e);return Vc.call(d(i)),c(i)}return b(n,[{key:"detach",value:function(){this.stopListening()}},{key:"toPosition",value:function(){return new xl(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(e,t){return new this(e.root,e.path.slice(),t||e.stickiness)}}]),n}(V(xl));function Vc(){var e=this;this.listenTo(this.root.document.model,"applyOperation",(function(t,n){var r=n[0];r.isDocumentOperation&&Uc.call(e,r)}),{priority:"low"})}function Uc(e){var t=this.getTransformedByOperation(e);if(!this.isEqual(t)){var n=this.toPosition();this.path=t.path,this.root=t.root,this.fire("change",n)}}function Hc(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.isCollapsed){var r=t.getFirstRange();if("$graveyard"!=r.root.rootName){var i=e.schema;e.change((function(e){if(n.doNotResetEntireContent||!function(e,t){var n=e.getLimitElement(t);if(!t.containsEntireContent(n))return!1;var r=t.getFirstRange();return r.start.parent!=r.end.parent&&e.checkChild(n,"paragraph")}(i,t)){var o={};if(!n.doNotAutoparagraph){var a=t.getSelectedElement();a&&Object.assign(o,i.getAttributesWithProperty(a,"copyOnReplace",!0))}var s=function(e){var t=e.root.document.model,n=e.start,r=e.end;if(t.hasContent(e,{ignoreMarkers:!0})){var i=function(e){var t,n=e.parent,r=n.root.document.model.schema,i=n.getAncestors({parentFirst:!0,includeSelf:!0}),o=h(i);try{for(o.s();!(t=o.n()).done;){var a=t.value;if(r.isLimit(a))return null;if(r.isBlock(a))return a}}catch(s){o.e(s)}finally{o.f()}}(r);if(i&&r.isTouching(t.createPositionAt(i,0))){var o=t.createSelection(e);t.modifySelection(o,{direction:"backward"});var a=o.getLastPosition(),s=t.createRange(a,r);t.hasContent(s,{ignoreMarkers:!0})||(r=a)}}return[Bc.fromPosition(n,"toPrevious"),Bc.fromPosition(r,"toNext")]}(r),l=p(s,2),u=l[0],c=l[1];u.isTouching(c)||e.remove(e.createRange(u,c)),n.leaveUnmerged||(function(e,t,n){var r=e.model;if(Gc(e.model.schema,t,n)){var i=function(e,t){for(var n=e.getAncestors(),r=t.getAncestors(),i=0;n[i]&&n[i]==r[i];)i++;return[n[i],r[i]]}(t,n),o=p(i,2),a=o[0],s=o[1];a&&s&&(!r.hasContent(a,{ignoreMarkers:!0})&&r.hasContent(s,{ignoreMarkers:!0})?Wc(e,t,n,a.parent):qc(e,t,n,a.parent))}}(e,u,c),i.removeDisallowedAttributes(u.parent.getChildren(),e)),Kc(e,t,u),!n.doNotAutoparagraph&&function(e,t){var n=e.checkChild(t,"$text"),r=e.checkChild(t,"paragraph");return!n&&r}(i,u)&&$c(e,u,t,o),u.detach(),c.detach()}else!function(e,t){var n=e.model.schema.getLimitElement(t);e.remove(e.createRangeIn(n)),$c(e,e.createPositionAt(n,0),t)}(e,t)}))}}}function qc(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(o,t),e.merge(t);n.parent.isEmpty;){var a=n.parent;n=e.createPositionBefore(a),e.remove(a)}Gc(e.model.schema,t,n)&&qc(e,t,n,r)}}function Wc(e,t,n,r){var i=t.parent,o=n.parent;if(i!=r&&o!=r){for(t=e.createPositionAfter(i),(n=e.createPositionBefore(o)).isEqual(t)||e.insert(i,n);t.parent.isEmpty;){var a=t.parent;t=e.createPositionBefore(a),e.remove(a)}n=e.createPositionBefore(o),function(e,t){var n=t.nodeBefore,r=t.nodeAfter;n.name!=r.name&&e.rename(n,r.name),e.clearAttributes(n),e.setAttributes(Object.fromEntries(r.getAttributes()),n),e.merge(t)}(e,n),Gc(e.model.schema,t,n)&&Wc(e,t,n,r)}}function Gc(e,t,n){var r=t.parent,i=n.parent;return r!=i&&!e.isLimit(r)&&!e.isLimit(i)&&function(e,t,n){var r,i=new Tl(e,t),o=h(i.getWalker());try{for(o.s();!(r=o.n()).done;){var a=r.value;if(n.isLimit(a.item))return!1}}catch(s){o.e(s)}finally{o.f()}return!0}(t,n,e)}function $c(e,t,n){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},i=e.createElement("paragraph");e.model.schema.setAllowedAttributes(i,r,e),e.insert(i,t),Kc(e,n,e.createPositionAt(i,0))}function Kc(e,t,n){t instanceof Wl?e.setSelection(n):t.setTo(n)}function Yc(e,t){var n=[];Array.from(e.getItems({direction:"backward"})).map((function(e){return t.createRangeOn(e)})).filter((function(t){return(t.start.isAfter(e.start)||t.start.isEqual(e.start))&&(t.end.isBefore(e.end)||t.end.isEqual(e.end))})).forEach((function(e){n.push(e.start.parent),t.remove(e)})),n.forEach((function(e){for(var n=e;n.parent&&n.isEmpty;){var r=t.createRangeOn(n);n=n.parent,t.remove(r)}}))}Bc.prototype.is=function(e){return"livePosition"===e||"model:livePosition"===e||"position"==e||"model:position"===e};var Jc=C(4717),Qc={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Jc.Z,Qc),Jc.Z.locals;var Xc=new WeakMap;function ed(e){var t=e.view,n=e.element,r=e.text,i=e.isDirectHost,o=void 0===i||i,a=e.keepOnFocus,s=void 0!==a&&a,l=t.document;Xc.has(l)||(Xc.set(l,new Map),l.registerPostFixer((function(e){return nd(l,e)})),l.on("change:isComposing",(function(){t.change((function(e){return nd(l,e)}))}),{priority:"high"})),Xc.get(l).set(n,{text:r,isDirectHost:o,keepOnFocus:s,hostElement:o?n:null}),t.change((function(e){return nd(l,e)}))}function td(e,t){return!!t.hasClass("ck-placeholder")&&(e.removeClass("ck-placeholder",t),!0)}function nd(e,t){var n,r=Xc.get(e),i=[],o=!1,a=h(r);try{for(a.s();!(n=a.n()).done;){var s=p(n.value,2),l=s[0],u=s[1];u.isDirectHost&&(i.push(l),rd(t,l,u)&&(o=!0))}}catch(y){a.e(y)}finally{a.f()}var c,d=h(r);try{for(d.s();!(c=d.n()).done;){var f=p(c.value,2),v=f[0],m=f[1];if(!m.isDirectHost){var g=id(v);g&&(i.includes(g)||(m.hostElement=g,rd(t,v,m)&&(o=!0)))}}}catch(y){d.e(y)}finally{d.f()}return o}function rd(e,t,n){var r=n.text,i=n.isDirectHost,o=n.hostElement,a=!1;return o.getAttribute("data-placeholder")!==r&&(e.setAttribute("data-placeholder",r,o),a=!0),(i||1==t.childCount)&&function(e,t){if(!e.isAttached())return!1;var n=Array.from(e.getChildren()).some((function(e){return!e.is("uiElement")}));if(n)return!1;var r=e.document,i=r.selection.anchor;return!(r.isComposing&&i&&i.parent===e||!t&&r.isFocused&&(!i||i.parent===e))}(o,n.keepOnFocus)?function(e,t){return!t.hasClass("ck-placeholder")&&(e.addClass("ck-placeholder",t),!0)}(e,o)&&(a=!0):td(e,o)&&(a=!0),a}function id(e){if(e.childCount){var t=e.getChild(0);if(t.is("element")&&!t.is("uiElement")&&!t.is("attributeElement"))return t}return null}var od=new Map;function ad(e,t,n){var r=od.get(e);r||(r=new Map,od.set(e,r)),r.set(t,n)}function sd(e){return[e]}function ld(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=function(e,t){var n=od.get(e);return n&&n.has(t)?n.get(t):sd}(e.constructor,t.constructor);try{return r(e=e.clone(),t,n)}catch(e){throw e}}function ud(e,t,n){e=e.slice(),t=t.slice();var r=new cd(n.document,n.useRelations,n.forceWeakRemove);r.setOriginalOperations(e),r.setOriginalOperations(t);var i=r.originalOperations;if(0==e.length||0==t.length)return{operationsA:e,operationsB:t,originalOperations:i};var o,a=new WeakMap,s=h(e);try{for(s.s();!(o=s.n()).done;){var l=o.value;a.set(l,0)}}catch(A){s.e(A)}finally{s.f()}for(var u={nextBaseVersionA:e[e.length-1].baseVersion+1,nextBaseVersionB:t[t.length-1].baseVersion+1,originalOperationsACount:e.length,originalOperationsBCount:t.length},c=0;c2&&void 0!==arguments[2]&&arguments[2];k(this,e),this.originalOperations=new Map,this._history=t.history,this._useRelations=n,this._forceWeakRemove=!!r,this._relations=new Map}return b(e,[{key:"setOriginalOperations",value:function(e){var t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,r=n?this.originalOperations.get(n):null,i=h(e);try{for(i.s();!(t=i.n()).done;){var o=t.value;this.originalOperations.set(o,r||o)}}catch(a){i.e(a)}finally{i.f()}}},{key:"updateRelation",value:function(e,t){if(e instanceof bc)t instanceof Ac?e.targetPosition.isEqual(t.sourcePosition)||t.movedRange.containsPosition(e.targetPosition)?this._setRelation(e,t,"insertAtSource"):e.targetPosition.isEqual(t.deletionPosition)?this._setRelation(e,t,"insertBetween"):e.targetPosition.isAfter(t.sourcePosition)&&this._setRelation(e,t,"moveTargetAfter"):t instanceof bc&&(e.targetPosition.isEqual(t.sourcePosition)||e.targetPosition.isBefore(t.sourcePosition)?this._setRelation(e,t,"insertBefore"):this._setRelation(e,t,"insertAfter"));else if(e instanceof Ec){if(t instanceof Ac)e.splitPosition.isBefore(t.sourcePosition)&&this._setRelation(e,t,"splitBefore");else if(t instanceof bc)if(e.splitPosition.isEqual(t.sourcePosition)||e.splitPosition.isBefore(t.sourcePosition))this._setRelation(e,t,"splitBefore");else{var n=Tl._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.splitPosition.hasSameParentAs(t.sourcePosition)&&n.containsPosition(e.splitPosition)){var r=n.end.offset-e.splitPosition.offset,i=e.splitPosition.offset-n.start.offset;this._setRelation(e,t,{howMany:r,offset:i})}}}else if(e instanceof Ac)t instanceof Ac?(e.targetPosition.isEqual(t.sourcePosition)||this._setRelation(e,t,"mergeTargetNotMoved"),e.sourcePosition.isEqual(t.targetPosition)&&this._setRelation(e,t,"mergeSourceNotMoved"),e.sourcePosition.isEqual(t.sourcePosition)&&this._setRelation(e,t,"mergeSameElement")):t instanceof Ec&&e.sourcePosition.isEqual(t.splitPosition)&&this._setRelation(e,t,"splitAtSource");else if(e instanceof wc){var o=e.newRange;if(!o)return;if(t instanceof bc){var a=Tl._createFromPositionAndShift(t.sourcePosition,t.howMany),s=a.containsPosition(o.start)||a.start.isEqual(o.start),l=a.containsPosition(o.end)||a.end.isEqual(o.end);!s&&!l||a.containsRange(o)||this._setRelation(e,t,{side:s?"left":"right",path:s?o.start.path.slice():o.end.path.slice()})}else if(t instanceof Ac){var u=o.start.isEqual(t.targetPosition),c=o.start.isEqual(t.deletionPosition),d=o.end.isEqual(t.deletionPosition),f=o.end.isEqual(t.sourcePosition);(u||c||d||f)&&this._setRelation(e,t,{wasInLeftElement:u,wasStartBeforeMergedElement:c,wasEndBeforeMergedElement:d,wasInRightElement:f})}}}},{key:"getContext",value:function(e,t,n){return{aIsStrong:n,aWasUndone:this._wasUndone(e),bWasUndone:this._wasUndone(t),abRelation:this._useRelations?this._getRelation(e,t):null,baRelation:this._useRelations?this._getRelation(t,e):null,forceWeakRemove:this._forceWeakRemove}}},{key:"_wasUndone",value:function(e){var t=this.originalOperations.get(e);return t.wasUndone||this._history.isUndoneOperation(t)}},{key:"_getRelation",value:function(e,t){var n=this.originalOperations.get(t),r=this._history.getUndoneOperation(n);if(!r)return null;var i=this.originalOperations.get(e),o=this._relations.get(i);return o&&o.get(r)||null}},{key:"_setRelation",value:function(e,t,n){var r=this.originalOperations.get(e),i=this.originalOperations.get(t),o=this._relations.get(r);o||(o=new Map,this._relations.set(r,o)),o.set(i,n)}}]),e}();function dd(e,t){var n,r=h(e);try{for(r.s();!(n=r.n()).done;)n.value.baseVersion=t++}catch(i){r.e(i)}finally{r.f()}}function fd(e,t){for(var n=0;n0)return e.sourcePosition=t.moveTargetPosition.clone(),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]}return e.sourcePosition.hasSameParentAs(t.splitPosition)&&(e.howMany=t.splitPosition.offset),e.sourcePosition=e.sourcePosition._getTransformedBySplitOperation(t),e.targetPosition=e.targetPosition._getTransformedBySplitOperation(t),[e]})),ad(bc,kc,(function(e,t){var n=Tl._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByInsertOperation(t,!1)[0];return e.sourcePosition=n.start,e.howMany=n.end.offset-n.start.offset,e.targetPosition.isEqual(t.position)||(e.targetPosition=e.targetPosition._getTransformedByInsertOperation(t)),[e]})),ad(bc,bc,(function(e,t,n){var r,i=Tl._createFromPositionAndShift(e.sourcePosition,e.howMany),o=Tl._createFromPositionAndShift(t.sourcePosition,t.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),r=e.targetPosition.isEqual(t.targetPosition)&&s?e.targetPosition._getTransformedByDeletion(t.sourcePosition,t.howMany):e.targetPosition._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),hd(e,t)&&hd(t,e))return[t.getReversed()];if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),vd([i],r);if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return i.start=i.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),i.end=i.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),vd([i],r);var l=Jr(e.sourcePosition.getParentPath(),t.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return i.start=i.start._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),i.end=i.end._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany),vd([i],r);"remove"!=e.type||"remove"==t.type||n.aWasUndone||n.forceWeakRemove?"remove"==e.type||"remove"!=t.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var u,c=[],d=i.getDifference(o),f=h(d);try{for(f.s();!(u=f.n()).done;){var p=u.value;p.start=p.start._getTransformedByDeletion(t.sourcePosition,t.howMany),p.end=p.end._getTransformedByDeletion(t.sourcePosition,t.howMany);var m="same"==Jr(p.start.getParentPath(),t.getMovedRangeStart().getParentPath()),g=p._getTransformedByInsertion(t.getMovedRangeStart(),t.howMany,m);c.push.apply(c,v(g))}}catch(b){f.e(b)}finally{f.f()}var y=i.getIntersection(o);return null!==y&&a&&(y.start=y.start._getCombined(t.sourcePosition,t.getMovedRangeStart()),y.end=y.end._getCombined(t.sourcePosition,t.getMovedRangeStart()),0===c.length?c.push(y):1==c.length?o.start.isBefore(i.start)||o.start.isEqual(i.start)?c.unshift(y):c.push(y):c.splice(1,0,y)),0===c.length?[new _c(e.baseVersion)]:vd(c,r)})),ad(bc,Ec,(function(e,t,n){var r=e.targetPosition.clone();e.targetPosition.isEqual(t.insertionPosition)&&t.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(r=e.targetPosition._getTransformedBySplitOperation(t));var i=Tl._createFromPositionAndShift(e.sourcePosition,e.howMany);if(i.end.isEqual(t.insertionPosition))return t.graveyardPosition||e.howMany++,e.targetPosition=r,[e];if(i.start.hasSameParentAs(t.splitPosition)&&i.containsPosition(t.splitPosition)){var o=new Tl(t.splitPosition,i.end);return o=o._getTransformedBySplitOperation(t),vd([new Tl(i.start,t.splitPosition),o],r)}e.targetPosition.isEqual(t.splitPosition)&&"insertAtSource"==n.abRelation&&(r=t.moveTargetPosition),e.targetPosition.isEqual(t.insertionPosition)&&"insertBetween"==n.abRelation&&(r=e.targetPosition);var a=[i._getTransformedBySplitOperation(t)];if(t.graveyardPosition){var s=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);e.howMany>1&&s&&!n.aWasUndone&&a.push(Tl._createFromPositionAndShift(t.insertionPosition,1))}return vd(a,r)})),ad(bc,Ac,(function(e,t,n){var r=Tl._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.deletionPosition.hasSameParentAs(e.sourcePosition)&&r.containsPosition(t.sourcePosition))if("remove"!=e.type||n.forceWeakRemove){if(1==e.howMany)return n.bWasUndone?(e.sourcePosition=t.graveyardPosition.clone(),e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]):[new _c(0)]}else if(!n.aWasUndone){var i=[],o=t.graveyardPosition.clone(),a=t.targetPosition._getTransformedByMergeOperation(t);e.howMany>1&&(i.push(new bc(e.sourcePosition,e.howMany-1,e.targetPosition,0)),o=o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1),a=a._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany-1));var s=t.deletionPosition._getCombined(e.sourcePosition,e.targetPosition),l=new bc(o,1,s,0),u=l.getMovedRangeStart().path.slice();u.push(0);var c=new xl(l.targetPosition.root,u);a=a._getTransformedByMove(o,s,1);var d=new bc(a,t.howMany,c,0);return i.push(l),i.push(d),i}var f=Tl._createFromPositionAndShift(e.sourcePosition,e.howMany)._getTransformedByMergeOperation(t);return e.sourcePosition=f.start,e.howMany=f.end.offset-f.start.offset,e.targetPosition=e.targetPosition._getTransformedByMergeOperation(t),[e]})),ad(Cc,kc,(function(e,t){return e.position=e.position._getTransformedByInsertOperation(t),[e]})),ad(Cc,Ac,(function(e,t){return e.position.isEqual(t.deletionPosition)?(e.position=t.graveyardPosition.clone(),e.position.stickiness="toNext",[e]):(e.position=e.position._getTransformedByMergeOperation(t),[e])})),ad(Cc,bc,(function(e,t){return e.position=e.position._getTransformedByMoveOperation(t),[e]})),ad(Cc,Cc,(function(e,t,n){if(e.position.isEqual(t.position)){if(!n.aIsStrong)return[new _c(0)];e.oldName=t.newName}return[e]})),ad(Cc,Ec,(function(e,t){if("same"==Jr(e.position.path,t.splitPosition.getParentPath())&&!t.graveyardPosition){var n=new Cc(e.position.getShiftedBy(1),e.oldName,e.newName,0);return[e,n]}return e.position=e.position._getTransformedBySplitOperation(t),[e]})),ad(xc,xc,(function(e,t,n){if(e.root===t.root&&e.key===t.key){if(!n.aIsStrong||e.newValue===t.newValue)return[new _c(0)];e.oldValue=t.newValue}return[e]})),ad(Ec,kc,(function(e,t){return e.splitPosition.hasSameParentAs(t.position)&&e.splitPosition.offset1&&void 0!==arguments[1]&&arguments[1];return e._clone(t)}},{key:"appendChild",value:function(e,t){return t._appendChild(e)}},{key:"insertChild",value:function(e,t,n){return n._insertChild(e,t)}},{key:"removeChildren",value:function(e,t,n){return n._removeChildren(e,t)}},{key:"remove",value:function(e){var t=e.parent;return t?this.removeChildren(t.getChildIndex(e),1,t):[]}},{key:"replace",value:function(e,t){var n=e.parent;if(n){var r=n.getChildIndex(e);return this.removeChildren(r,1,n),this.insertChild(r,t,n),!0}return!1}},{key:"unwrapElement",value:function(e){var t=e.parent;if(t){var n=t.getChildIndex(e);this.remove(e),this.insertChild(n,e.getChildren(),t)}}},{key:"rename",value:function(e,t){var n=new no(this.document,e,t.getAttributes(),t.getChildren());return this.replace(t,n)?n:null}},{key:"setAttribute",value:function(e,t,n){n._setAttribute(e,t)}},{key:"removeAttribute",value:function(e,t){t._removeAttribute(e)}},{key:"addClass",value:function(e,t){t._addClass(e)}},{key:"removeClass",value:function(e,t){t._removeClass(e)}},{key:"setStyle",value:function(e,t,n){Re(e)&&void 0===n?t._setStyle(e):n._setStyle(e,t)}},{key:"removeStyle",value:function(e,t){t._removeStyle(e)}},{key:"setCustomProperty",value:function(e,t,n){n._setCustomProperty(e,t)}},{key:"removeCustomProperty",value:function(e,t){return t._removeCustomProperty(e)}},{key:"createPositionAt",value:function(e,t){return co._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return co._createAfter(e)}},{key:"createPositionBefore",value:function(e){return co._createBefore(e)}},{key:"createRange",value:function(e,t){return new fo(e,t)}},{key:"createRangeOn",value:function(e){return fo._createOn(e)}},{key:"createRangeIn",value:function(e){return fo._createIn(e)}},{key:"createSelection",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:"auto",r=e.getSelectedElement();if(r&&t.schema.isObject(r)&&!t.schema.isInline(r))return"before"==n||"after"==n?t.createRange(t.createPositionAt(r,n)):t.createRangeOn(r);var i=$s(e.getSelectedBlocks());if(!i)return t.createRange(e.focus);if(i.isEmpty)return t.createRange(t.createPositionAt(i,0));var o=t.createPositionAfter(i);return e.focus.isTouching(o)?t.createRange(o):t.createRange(t.createPositionBefore(i))}function wd(e,t,n,r){var i,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:{};if(!e.schema.isObject(t))throw new P("insertobject-element-not-an-object",e,{object:t});var a=i=n?n instanceof jl||n instanceof Wl?n:e.createSelection(n,r):e.document.selection;o.findOptimalPosition&&e.schema.isBlock(t)&&(a=e.createSelection(kd(i,e,o.findOptimalPosition)));var s=$s(i.getSelectedBlocks()),l={};return s&&Object.assign(l,e.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),e.change((function(n){a.isCollapsed||e.deleteContent(a,{doNotAutoparagraph:!0});var r=t,i=a.anchor.parent;!e.schema.checkChild(i,t)&&e.schema.checkChild(i,"paragraph")&&e.schema.checkChild("paragraph",t)&&(r=n.createElement("paragraph"),n.insert(t,r)),e.schema.setAllowedAttributes(r,l,n);var s=e.insertContent(r,a);return s.isCollapsed||o.setSelection&&function(e,t,n,r){var i=e.model;if("after"==n){var o=t.nextSibling;!(o&&i.schema.checkChild(o,"$text"))&&i.schema.checkChild(t.parent,"paragraph")&&(o=e.createElement("paragraph"),i.schema.setAllowedAttributes(o,r,e),i.insertContent(o,e.createPositionAfter(t))),o&&e.setSelection(o,0)}else{if("on"!=n)throw new P("insertobject-invalid-place-parameter-value",i);e.setSelection(t,"on")}}(n,t,o.setSelection,l),s}))}function _d(e,t){var n=e.isForward,r=e.walker,i=e.unit,o=e.schema,a=e.treatEmojiAsSingleUnit,s=t.type,l=t.item,u=t.nextPosition;if("text"==s)return"word"===e.unit?function(e,t){var n=e.position.textNode;for(n||(n=t?e.position.nodeAfter:e.position.nodeBefore);n&&n.is("$text");){var r=e.position.offset-n.startOffset;if(Ad(n,r,t))n=t?e.position.nodeAfter:e.position.nodeBefore;else{if(xd(n.data,r,t))break;e.next()}}return e.position}(r,n):function(e,t,n){var r=e.position.textNode;if(r)for(var i=r.data,o=e.position.offset-r.startOffset;ec(i,o)||"character"==t&&tc(i,o)||n&&rc(i,o);)e.next(),o=e.position.offset-r.startOffset;return e.position}(r,i,a);if(s==(n?"elementStart":"elementEnd")){if(o.isSelectable(l))return xl._createAt(l,n?"after":"before");if(o.checkChild(u,"$text"))return u}else{if(o.isLimit(l))return void r.skip((function(){return!0}));if(o.checkChild(u,"$text"))return u}}function Cd(e,t){var n=e.root,r=xl._createAt(n,t?"end":0);return t?new Tl(e,r):new Tl(r,e)}function xd(e,t,n){var r=t+(n?0:-1);return' ,.?!:;"-()'.includes(e.charAt(r))}function Ad(e,t,n){return t===(n?e.offsetSize:0)}var Ed=function(e){m(n,e);var t=g(n);function n(){var e;return k(this,n),(e=t.call(this)).markers=new sc,e.document=new oc(d(e)),e.schema=new Au,e._pendingChanges=[],e._currentWriter=null,["insertContent","insertObject","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(t){return e.decorate(t)})),e.on("applyOperation",(function(e,t){t[0]._validate()}),{priority:"highest"}),e.schema.register("$root",{isLimit:!0}),e.schema.register("$container",{allowIn:["$root","$container"]}),e.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),e.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),e.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),e.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),e.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),e.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),e.schema.register("$marker"),e.schema.addChildCheck((function(e,t){if("$marker"===t.name)return!0})),jc(d(e)),e.document.registerPostFixer(cu),e}return b(n,[{key:"change",value:function(e){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Gu,callback:e}),this._runPendingChanges()[0]):e(this._currentWriter)}catch(e){P.rethrowUnexpectedError(e,this)}}},{key:"enqueueChange",value:function(e,t){try{e?"function"==typeof e?(t=e,e=new Gu):e instanceof Gu||(e=new Gu(e)):e=new Gu,this._pendingChanges.push({batch:e,callback:t}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(e){P.rethrowUnexpectedError(e,this)}}},{key:"applyOperation",value:function(e){e._execute()}},{key:"insertContent",value:function(e,t,n){return function(e,t,n,r){return e.change((function(i){var o;(o=n?n instanceof jl||n instanceof Wl?n:i.createSelection(n,r):e.document.selection).isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0});var a,s=new bd(e,i,o.anchor),l=[];if(t.is("documentFragment")){if(t.markers.size){var u,c=[],d=h(t.markers);try{for(d.s();!(u=d.n()).done;){var f=p(u.value,2),v=f[0],m=f[1],g=m.start,y=m.end,b=g.isEqual(y);c.push({position:g,name:v,isCollapsed:b},{position:y,name:v,isCollapsed:b})}}catch(K){d.e(K)}finally{d.f()}c.sort((function(e,t){var n=e.position,r=t.position;return n.isBefore(r)?1:-1}));for(var k=0,w=c;k=0;D--){var O=l[D],N=O.name,R=O.element,j=O.collapsed,L=!P[N];if(L&&(P[N]=[]),R){var F=i.createPositionAt(R,"before");P[N].push(F),i.remove(R)}else{var z=s.getAffectedRange();if(!z){j&&P[N].push(s.position);continue}j?P[N].push(z[j]):P[N].push(L?z.start:z.end)}}for(var B=0,V=Object.entries(P);B2&&void 0!==arguments[2]?arguments[2]:{},i=e.schema,o="backward"!=r.direction,a=r.unit?r.unit:"character",s=!!r.treatEmojiAsSingleUnit,l=t.focus,u=new _l({boundaries:Cd(l,o),singleCharacters:!0,direction:o?"forward":"backward"}),c={walker:u,schema:i,isForward:o,unit:a,treatEmojiAsSingleUnit:s},d=function(){if(n.done)return{v:void 0};var r=_d(c,n.value);return r?{v:void(t instanceof Wl?e.change((function(e){e.setSelectionFocus(r)})):t.setFocus(r))}:void 0};n=u.next();){var f=d();if("object"===typeof f)return f.v}}(this,e,t)}},{key:"getSelectedContent",value:function(e){return function(e,t){return e.change((function(e){var n=e.createDocumentFragment(),r=t.getFirstRange();if(!r||r.isCollapsed)return n;var i,o,a=r.start.root,s=r.start.getCommonPath(r.end),l=a.getNodeByPath(s),u=(i=r.start.parent==r.end.parent?r:e.createRange(e.createPositionAt(l,r.start.path[s.length]),e.createPositionAt(l,r.end.path[s.length]+1))).end.offset-i.start.offset,c=h(i.getItems({shallow:!0}));try{for(c.s();!(o=c.n()).done;){var d=o.value;d.is("$textProxy")?e.appendText(d.data,d.getAttributes(),n):e.append(e.cloneElement(d,!0),n)}}catch(v){c.e(v)}finally{c.f()}if(i!=r){var f=r._getTransformedByMove(i.start,e.createPositionAt(n,0),u)[0],p=e.createRange(e.createPositionAt(n,0),f.start);Yc(e.createRange(f.end,e.createPositionAt(n,"end")),e),Yc(p,e)}return n}))}(this,e)}},{key:"hasContent",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=e instanceof Tl?e:Tl._createIn(e);if(n.isCollapsed)return!1;var r=t.ignoreWhitespaces,i=void 0!==r&&r,o=t.ignoreMarkers;if(void 0===o||!o){var a,s=h(this.markers.getMarkersIntersectingRange(n));try{for(s.s();!(a=s.n()).done;)if(a.value.affectsData)return!0}catch(d){s.e(d)}finally{s.f()}}var l,u=h(n.getItems());try{for(u.s();!(l=u.n()).done;){var c=l.value;if(this.schema.isContent(c)){if(!c.is("$textProxy"))return!0;if(!i)return!0;if(-1!==c.data.search(/\S/))return!0}}}catch(d){u.e(d)}finally{u.f()}return!1}},{key:"createPositionFromPath",value:function(e,t,n){return new xl(e,t,n)}},{key:"createPositionAt",value:function(e,t){return xl._createAt(e,t)}},{key:"createPositionAfter",value:function(e){return xl._createAfter(e)}},{key:"createPositionBefore",value:function(e){return xl._createBefore(e)}},{key:"createRange",value:function(e,t){return new Tl(e,t)}},{key:"createRangeIn",value:function(e){return Tl._createIn(e)}},{key:"createRangeOn",value:function(e){return Tl._createOn(e)}},{key:"createSelection",value:function(){for(var e=arguments.length,t=new Array(e),n=0;n2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof t){var o=t;t=function(e,t){r.editor.execute(o),t()}}s(l(n.prototype),"set",this).call(this,e,t,i)}}]),n}(Ys),Zd=function(e){m(n,e);var t=g(n);function n(){var e,r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};k(this,n);var i=(e=t.call(this)).constructor,o=r.language||i.defaultConfig&&i.defaultConfig.language;e._context=r.context||new $r({language:o}),e._context._addEditor(d(e),!r.context);var a=Array.from(i.builtinPlugins||[]);e.config=new Nr(r,i.defaultConfig),e.config.define("plugins",a),e.config.define(e._context._getEditorConfig()),e.plugins=new Br(d(e),a,e._context.plugins),e.locale=e._context.locale,e.t=e.locale.t,e._readOnlyLocks=new Set,e.commands=new wu,e.set("state","initializing"),e.once("ready",(function(){return e.state="ready"}),{priority:"high"}),e.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),e.model=new Ed;var s=new Xi;return e.data=new Uu(e.model,s),e.editing=new ku(e.model,s),e.editing.view.document.bind("isReadOnly").to(d(e)),e.conversion=new Hu([e.editing.downcastDispatcher,e.data.downcastDispatcher],e.data.upcastDispatcher),e.conversion.addAlias("dataDowncast",e.data.downcastDispatcher),e.conversion.addAlias("editingDowncast",e.editing.downcastDispatcher),e.keystrokes=new Sd(d(e)),e.keystrokes.listenTo(e.editing.view.document),e}return b(n,[{key:"isReadOnly",get:function(){return this._readOnlyLocks.size>0},set:function(e){throw new P("editor-isreadonly-has-no-setter")}},{key:"enableReadOnlyMode",value:function(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new P("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)||(this._readOnlyLocks.add(e),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1))}},{key:"disableReadOnlyMode",value:function(e){if("string"!=typeof e&&"symbol"!=typeof e)throw new P("editor-read-only-lock-id-invalid",null,{lockId:e});this._readOnlyLocks.has(e)&&(this._readOnlyLocks.delete(e),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0))}},{key:"initPlugins",value:function(){var e=this.config,t=e.get("plugins"),n=e.get("removePlugins")||[],r=e.get("extraPlugins")||[],i=e.get("substitutePlugins")||[];return this.plugins.init(t.concat(r),n,i)}},{key:"destroy",value:function(){var e=this,t=Promise.resolve();return"initializing"==this.state&&(t=new Promise((function(t){return e.once("ready",t)}))),t.then((function(){e.fire("destroy"),e.stopListening(),e.commands.destroy()})).then((function(){return e.plugins.destroy()})).then((function(){e.model.destroy(),e.data.destroy(),e.editing.destroy(),e.keystrokes.destroy()})).then((function(){return e._context._removeEditor(e)}))}},{key:"execute",value:function(e){try{for(var t,n=arguments.length,r=new Array(n>1?n-1:0),i=1;i0&&void 0!==arguments[0]?arguments[0]:[];return k(this,n),(e=t.call(this,r,{idProperty:"viewUid"})).on("add",(function(t,n,r){e._renderViewIntoCollectionParent(n,r)})),e.on("remove",(function(t,n){n.element&&e._parentElement&&n.element.remove()})),e._parentElement=null,e}return b(n,[{key:"destroy",value:function(){this.map((function(e){return e.destroy()}))}},{key:"setParent",value:function(e){this._parentElement=e;var t,n=h(this);try{for(n.s();!(t=n.n()).done;){var r=t.value;this._renderViewIntoCollectionParent(r)}}catch(i){n.e(i)}finally{n.f()}}},{key:"delegate",value:function(){for(var e=this,t=arguments.length,n=new Array(t),r=0;ro&&(o=d,a=l)}}catch(f){s.e(f)}finally{s.f()}return a}(r,f)||new of(r[0],f)}else s=new of(r[0],f);return s}function rf(e){var t=Ur.window,n=t.scrollX,r=t.scrollY;return e.clone().moveBy(n,r)}var of=function(){function e(t,n){k(this,e);var r=t(n.targetRect,n.elementRect,n.viewportRect);if(r){var i=r.left,o=r.top,a=r.name,s=r.config;this.name=a,this.config=s,this._positioningFunctionCorrdinates={left:i,top:o},this._options=n}}return b(e,[{key:"left",get:function(){return this._absoluteRect.left}},{key:"top",get:function(){return this._absoluteRect.top}},{key:"limiterIntersectionArea",get:function(){var e=this._options.limiterRect;if(e){var t=this._options.viewportRect;if(!t)return e.getIntersectionArea(this._rect);var n=e.getIntersection(t);if(n)return n.getIntersectionArea(this._rect)}return 0}},{key:"viewportIntersectionArea",get:function(){var e=this._options.viewportRect;return e?e.getIntersectionArea(this._rect):0}},{key:"_rect",get:function(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}},{key:"_absoluteRect",get:function(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=rf(this._rect),this._options.positionedElementAncestor&&function(e,t){var n=rf(new nl(t)),r=el(t),i=0,o=0;i-=n.left,o-=n.top,i+=t.scrollLeft,o+=t.scrollTop,i-=r.left,o-=r.top,e.moveBy(i,o)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}]),e}();function af(e){return function(t){return t+e}}var sf=C(8793),lf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(sf.Z,lf),sf.Z.locals;var uf=af("px"),cf=Ur.document.body,df=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("top",0),r.set("left",0),r.set("position","arrow_nw"),r.set("isVisible",!1),r.set("withArrow",!0),r.set("class",void 0),r._pinWhenIsVisibleCallback=null,r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",i.to("position",(function(e){return"ck-balloon-panel_".concat(e)})),i.if("isVisible","ck-balloon-panel_visible"),i.if("withArrow","ck-balloon-panel_with-arrow"),i.to("class")],style:{top:i.to("top",uf),left:i.to("left",uf)}},children:r.content}),r}return b(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(e){this.show();var t=n.defaultPositions,r=Object.assign({},{element:this.element,positions:[t.southArrowNorth,t.southArrowNorthMiddleWest,t.southArrowNorthMiddleEast,t.southArrowNorthWest,t.southArrowNorthEast,t.northArrowSouth,t.northArrowSouthMiddleWest,t.northArrowSouthMiddleEast,t.northArrowSouthWest,t.northArrowSouthEast,t.viewportStickyNorth],limiter:cf,fitInViewport:!0},e),i=n._getOptimalPosition(r),o=parseInt(i.left),a=parseInt(i.top),s=i.name,l=(i.config||{}).withArrow,u=void 0===l||l;this.top=a,this.left=o,this.position=s,this.withArrow=u}},{key:"pin",value:function(e){var t=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){t.isVisible?t._startPinning(e):t._stopPinning()},this._startPinning(e),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(e){var t=this;this.attachTo(e);var n=ff(e.target),r=e.limiter?ff(e.limiter):cf;this.listenTo(Ur.document,"scroll",(function(i,o){var a=o.target,s=n&&a.contains(n),l=r&&a.contains(r);!s&&!l&&n&&r||t.attachTo(e)}),{useCapture:!0}),this.listenTo(Ur.window,"resize",(function(){t.attachTo(e)}))}},{key:"_stopPinning",value:function(){this.stopListening(Ur.document,"scroll"),this.stopListening(Ur.window,"resize")}}]),n}(tf);function ff(e){return Or(e)?e:Xs(e)?e.commonAncestorContainer:"function"==typeof e?ff(e()):null}function pf(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.sideOffset,n=void 0===t?df.arrowSideOffset:t,r=e.heightOffset,i=void 0===r?df.arrowHeightOffset:r,o=e.stickyVerticalOffset,s=void 0===o?df.stickyVerticalOffset:o,l=e.config;return{northWestArrowSouthWest:function(e,t){return a({top:u(e,t),left:e.left-n,name:"arrow_sw"},l&&{config:l})},northWestArrowSouthMiddleWest:function(e,t){return a({top:u(e,t),left:e.left-.25*t.width-n,name:"arrow_smw"},l&&{config:l})},northWestArrowSouth:function(e,t){return a({top:u(e,t),left:e.left-t.width/2,name:"arrow_s"},l&&{config:l})},northWestArrowSouthMiddleEast:function(e,t){return a({top:u(e,t),left:e.left-.75*t.width+n,name:"arrow_sme"},l&&{config:l})},northWestArrowSouthEast:function(e,t){return a({top:u(e,t),left:e.left-t.width+n,name:"arrow_se"},l&&{config:l})},northArrowSouthWest:function(e,t){return a({top:u(e,t),left:e.left+e.width/2-n,name:"arrow_sw"},l&&{config:l})},northArrowSouthMiddleWest:function(e,t){return a({top:u(e,t),left:e.left+e.width/2-.25*t.width-n,name:"arrow_smw"},l&&{config:l})},northArrowSouth:function(e,t){return a({top:u(e,t),left:e.left+e.width/2-t.width/2,name:"arrow_s"},l&&{config:l})},northArrowSouthMiddleEast:function(e,t){return a({top:u(e,t),left:e.left+e.width/2-.75*t.width+n,name:"arrow_sme"},l&&{config:l})},northArrowSouthEast:function(e,t){return a({top:u(e,t),left:e.left+e.width/2-t.width+n,name:"arrow_se"},l&&{config:l})},northEastArrowSouthWest:function(e,t){return a({top:u(e,t),left:e.right-n,name:"arrow_sw"},l&&{config:l})},northEastArrowSouthMiddleWest:function(e,t){return a({top:u(e,t),left:e.right-.25*t.width-n,name:"arrow_smw"},l&&{config:l})},northEastArrowSouth:function(e,t){return a({top:u(e,t),left:e.right-t.width/2,name:"arrow_s"},l&&{config:l})},northEastArrowSouthMiddleEast:function(e,t){return a({top:u(e,t),left:e.right-.75*t.width+n,name:"arrow_sme"},l&&{config:l})},northEastArrowSouthEast:function(e,t){return a({top:u(e,t),left:e.right-t.width+n,name:"arrow_se"},l&&{config:l})},southWestArrowNorthWest:function(e){return a({top:c(e),left:e.left-n,name:"arrow_nw"},l&&{config:l})},southWestArrowNorthMiddleWest:function(e,t){return a({top:c(e),left:e.left-.25*t.width-n,name:"arrow_nmw"},l&&{config:l})},southWestArrowNorth:function(e,t){return a({top:c(e),left:e.left-t.width/2,name:"arrow_n"},l&&{config:l})},southWestArrowNorthMiddleEast:function(e,t){return a({top:c(e),left:e.left-.75*t.width+n,name:"arrow_nme"},l&&{config:l})},southWestArrowNorthEast:function(e,t){return a({top:c(e),left:e.left-t.width+n,name:"arrow_ne"},l&&{config:l})},southArrowNorthWest:function(e){return a({top:c(e),left:e.left+e.width/2-n,name:"arrow_nw"},l&&{config:l})},southArrowNorthMiddleWest:function(e,t){return a({top:c(e),left:e.left+e.width/2-.25*t.width-n,name:"arrow_nmw"},l&&{config:l})},southArrowNorth:function(e,t){return a({top:c(e),left:e.left+e.width/2-t.width/2,name:"arrow_n"},l&&{config:l})},southArrowNorthMiddleEast:function(e,t){return a({top:c(e),left:e.left+e.width/2-.75*t.width+n,name:"arrow_nme"},l&&{config:l})},southArrowNorthEast:function(e,t){return a({top:c(e),left:e.left+e.width/2-t.width+n,name:"arrow_ne"},l&&{config:l})},southEastArrowNorthWest:function(e){return a({top:c(e),left:e.right-n,name:"arrow_nw"},l&&{config:l})},southEastArrowNorthMiddleWest:function(e,t){return a({top:c(e),left:e.right-.25*t.width-n,name:"arrow_nmw"},l&&{config:l})},southEastArrowNorth:function(e,t){return a({top:c(e),left:e.right-t.width/2,name:"arrow_n"},l&&{config:l})},southEastArrowNorthMiddleEast:function(e,t){return a({top:c(e),left:e.right-.75*t.width+n,name:"arrow_nme"},l&&{config:l})},southEastArrowNorthEast:function(e,t){return a({top:c(e),left:e.right-t.width+n,name:"arrow_ne"},l&&{config:l})},westArrowEast:function(e,t){return a({top:e.top+e.height/2-t.height/2,left:e.left-t.width-i,name:"arrow_e"},l&&{config:l})},eastArrowWest:function(e,t){return a({top:e.top+e.height/2-t.height/2,left:e.right+i,name:"arrow_w"},l&&{config:l})},viewportStickyNorth:function(e,t,n){return e.getIntersection(n)?{top:n.top+s,left:e.left+e.width/2-t.width/2,name:"arrowless",config:a({withArrow:!1},l)}:null}};function u(e,t){return e.top-t.height-i}function c(e){return e.bottom+i}}df.arrowSideOffset=25,df.arrowHeightOffset=10,df.stickyVerticalOffset=20,df._getOptimalPosition=nf,df.defaultPositions=pf();var hf=C(3332),vf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(hf.Z,vf),hf.Z.locals;var mf="ck-tooltip",gf=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),r=t.call(this),n._editors.add(e),n._instance?c(r,n._instance):(n._instance=d(r),r.tooltipTextView=new tf(e.locale),r.tooltipTextView.set("text",""),r.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:r.tooltipTextView.bindTemplate.to("text")}]}),r.balloonPanelView=new df(e.locale),r.balloonPanelView.class=mf,r.balloonPanelView.content.add(r.tooltipTextView),r._resizeObserver=null,r._currentElementWithTooltip=null,r._currentTooltipPosition=null,r._pinTooltipDebounced=fs(r._pinTooltip,600),r.listenTo(Ur.document,"mouseenter",r._onEnterOrFocus.bind(d(r)),{useCapture:!0}),r.listenTo(Ur.document,"mouseleave",r._onLeaveOrBlur.bind(d(r)),{useCapture:!0}),r.listenTo(Ur.document,"focus",r._onEnterOrFocus.bind(d(r)),{useCapture:!0}),r.listenTo(Ur.document,"blur",r._onLeaveOrBlur.bind(d(r)),{useCapture:!0}),r.listenTo(Ur.document,"scroll",r._onScroll.bind(d(r)),{useCapture:!0}),r._watchdogExcluded=!0,c(r))}return b(n,[{key:"destroy",value:function(e){var t=e.ui.view&&e.ui.view.body;n._editors.delete(e),this.stopListening(e.ui),t&&t.has(this.balloonPanelView)&&t.remove(this.balloonPanelView),n._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),n._instance=null)}},{key:"_onEnterOrFocus",value:function(e,t){var n,r=yf(t.target);r&&r!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(r,{text:(n=r).dataset.ckeTooltipText,position:n.dataset.ckeTooltipPosition||"s",cssClass:n.dataset.ckeTooltipClass||""}))}},{key:"_onLeaveOrBlur",value:function(e,t){var n=t.target,r=t.relatedTarget;if("mouseleave"===e.name){if(!Or(n))return;if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;var i=yf(n),o=yf(r);i&&i!==o&&this._unpinTooltip()}else{if(this._currentElementWithTooltip&&n!==this._currentElementWithTooltip)return;this._unpinTooltip()}}},{key:"_onScroll",value:function(e,t){var n=t.target;this._currentElementWithTooltip&&(n.contains(this.balloonPanelView.element)&&n.contains(this._currentElementWithTooltip)||this._unpinTooltip())}},{key:"_pinTooltip",value:function(e,t){var r=this,i=t.text,o=t.position,a=t.cssClass,s=$s(n._editors.values()).ui.view.body;s.has(this.balloonPanelView)||s.add(this.balloonPanelView),this.tooltipTextView.text=i,this.balloonPanelView.pin({target:e,positions:n.getPositioningFunctions(o)}),this._resizeObserver=new Ws(e,(function(){Gs(e)||r._unpinTooltip()})),this.balloonPanelView.class=[mf,a].filter((function(e){return e})).join(" ");var l,u=h(n._editors);try{for(u.s();!(l=u.n()).done;){var c=l.value;this.listenTo(c.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"})}}catch(d){u.e(d)}finally{u.f()}this._currentElementWithTooltip=e,this._currentTooltipPosition=o}},{key:"_unpinTooltip",value:function(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();var e,t=h(n._editors);try{for(t.s();!(e=t.n()).done;){var r=e.value;this.stopListening(r.ui,"update")}}catch(i){t.e(i)}finally{t.f()}this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy()}},{key:"_updateTooltipPosition",value:function(){Gs(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:n.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip()}}],[{key:"getPositioningFunctions",value:function(e){var t=n.defaultBalloonPositions;return{s:[t.southArrowNorth,t.southArrowNorthEast,t.southArrowNorthWest],n:[t.northArrowSouth],e:[t.eastArrowWest],w:[t.westArrowEast],sw:[t.southArrowNorthEast],se:[t.southArrowNorthWest]}[e]}}]),n}(Wa);function yf(e){return Or(e)?e.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null}gf.defaultBalloonPositions=pf({heightOffset:5,sideOffset:13}),gf._editors=new Set,gf._instance=null;var bf=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this)).editor=e,r.componentFactory=new Md(e),r.focusTracker=new Ks,r.tooltipManager=new gf(e),r.set("viewportOffset",r._readViewportOffsetFromConfig()),r.isReady=!1,r.once("ready",(function(){r.isReady=!0})),r._editableElementsMap=new Map,r._focusableToolbarDefinitions=[],r.listenTo(e.editing.view.document,"layoutChanged",(function(){return r.update()})),r._initFocusTracking(),r}return b(n,[{key:"element",get:function(){return null}},{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);var e,t=h(this._editableElementsMap.values());try{for(t.s();!(e=t.n()).done;)e.value.ckeditorInstance=null}catch(n){t.e(n)}finally{t.f()}this._editableElementsMap=new Map,this._focusableToolbarDefinitions=[]}},{key:"setEditableElement",value:function(e,t){var n=this;this._editableElementsMap.set(e,t),t.ckeditorInstance||(t.ckeditorInstance=this.editor),this.focusTracker.add(t);var r=function(){n.editor.editing.view.getDomRoot(e)||n.editor.keystrokes.listenTo(t)};this.isReady?r():this.once("ready",r)}},{key:"getEditableElement",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(e)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"addToolbar",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.isRendered?(this.focusTracker.add(e.element),this.editor.keystrokes.listenTo(e.element)):e.once("render",(function(){t.focusTracker.add(e.element),t.editor.keystrokes.listenTo(e.element)})),this._focusableToolbarDefinitions.push({toolbarView:e,options:n})}},{key:"_editableElements",get:function(){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}},{key:"_readViewportOffsetFromConfig",value:function(){var e=this.editor,t=e.config.get("ui.viewportOffset");if(t)return t;var n=e.config.get("toolbar.viewportTopOffset");return n?(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:n}):{top:0}}},{key:"_initFocusTracking",value:function(){var e,t,n=this,r=this.editor,i=r.editing.view;r.keystrokes.set("Alt+F10",(function(r,o){var a=n.focusTracker.focusedElement;Array.from(n._editableElementsMap.values()).includes(a)&&!Array.from(i.domRoots.values()).includes(a)&&(e=a);var s=n._getCurrentFocusedToolbarDefinition();s&&t||(t=n._getFocusableCandidateToolbarDefinitions());for(var l=0;l0&&void 0!==arguments[0]?arguments[0]:this.data.get();if(!this.sourceElement)throw new P("editor-missing-sourceelement",this);var t=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;Cf(this.sourceElement,t||n?e:"")}}]),n}(e)}wf.setData=_f.prototype.setData,wf.getData=_f.prototype.getData,xf.updateSourceElement=xf(Object).prototype.updateSourceElement;var Af=function(e,t){m(r,e);var n=g(r);function r(){return k(this,r),n.apply(this,arguments)}return b(r,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new zr({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(e){if("string"!=typeof e)throw new P("pendingactions-add-invalid-message",this);var t=new ie;return t.set("message",e),this._actions.add(t),this.hasAny=!0,t}},{key:"remove",value:function(e){this._actions.remove(e),this.hasAny=!!this._actions.length}},{key:"first",get:function(){return this._actions.get(0)}},{key:t,value:function(){return this._actions[Symbol.iterator]()}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),r}(Kr,Symbol.iterator),Ef={bold:'',cancel:'',caption:'',check:'',cog:'',eraser:'',image:'',lowVision:'',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:''};function Sf(e){var t=e.emitter,n=e.activator,r=e.callback,i=e.contextElements;t.listenTo(document,"mousedown",(function(e,t){if(n()){var o,a="function"==typeof t.composedPath?t.composedPath():[],s=h(i);try{for(s.s();!(o=s.n()).done;){var l=o.value;if(l.contains(t.target)||a.includes(l))return}}catch(u){s.e(u)}finally{s.f()}r()}}))}function Zf(e){var t=e;t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=function(){t._isCssTransitionsDisabled=!0},t.enableCssTransitions=function(){t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function Mf(e){var t=e.view;t.listenTo(t.element,"submit",(function(e,n){n.preventDefault(),t.fire("submit")}),{useCapture:!0})}var Tf=function(e){m(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return k(this,n),(r=t.call(this,i)).locale=e,r}return b(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new Pd({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var e=document.querySelector(".ck-body-wrapper");e||(e=qs(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(e)),e.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){s(l(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var e=document.querySelector(".ck-body-wrapper");e&&0==e.childElementCount&&e.remove()}}]),n}(Id),If=C(6574),Pf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(If.Z,Pf),If.Z.locals;var Df=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n);var r=(e=t.call(this)).bindTemplate;return e.set("content",""),e.set("viewBox","0 0 20 20"),e.set("fillColor",""),e.set("isColorInherited",!0),e.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",r.if("isColorInherited","ck-icon_inherit-color")],viewBox:r.to("viewBox")}}),e}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){e._updateXMLContent(),e._colorFillPaths()})),this.on("change:fillColor",(function(){e._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var e=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),t=e.getAttribute("viewBox");t&&(this.viewBox=t);for(var r=0,i=Array.from(e.attributes);r0;)this.element.appendChild(e.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var e=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(t){t.style.fill=e.fillColor}))}}]),n}(tf);Df.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"];var Of=C(4906),Nf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Of.Z,Nf),Of.Z.locals;var Rf=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).bindTemplate,o=M();r.set("class",void 0),r.set("labelStyle",void 0),r.set("icon",void 0),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isVisible",!0),r.set("isToggleable",!1),r.set("keystroke",void 0),r.set("label",void 0),r.set("tabindex",-1),r.set("tooltip",!1),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.set("withKeystroke",!1),r.children=r.createCollection(),r.labelView=r._createLabelView(o),r.iconView=new Df,r.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),r.keystrokeView=r._createKeystrokeView(),r.bind("_tooltipString").to(d(r),"tooltip",d(r),"label",d(r),"keystroke",r._getTooltipString.bind(d(r)));var a={tag:"button",attributes:{class:["ck","ck-button",i.to("class"),i.if("isEnabled","ck-disabled",(function(e){return!e})),i.if("isVisible","ck-hidden",(function(e){return!e})),i.to("isOn",(function(e){return e?"ck-on":"ck-off"})),i.if("withText","ck-button_with-text"),i.if("withKeystroke","ck-button_with-keystroke")],type:i.to("type",(function(e){return e||"button"})),tabindex:i.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_".concat(o),"aria-disabled":i.if("isEnabled",!0,(function(e){return!e})),"aria-pressed":i.to("isOn",(function(e){return!!r.isToggleable&&String(!!e)})),"data-cke-tooltip-text":i.to("_tooltipString"),"data-cke-tooltip-position":i.to("tooltipPosition")},children:r.children,on:{click:i.to((function(e){r.isEnabled?r.fire("execute"):e.preventDefault()}))}};return Do.isSafari&&(a.on.mousedown=i.to((function(e){r.focus(),e.preventDefault()}))),r.setTemplate(a),r}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),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)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createLabelView",value:function(e){var t=new tf,n=this.bindTemplate;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_".concat(e)},children:[{text:this.bindTemplate.to("label")}]}),t}},{key:"_createKeystrokeView",value:function(){var e=new tf;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(e){return Bo(e)}))}]}),e}},{key:"_getTooltipString",value:function(e,t,n){return e?"string"==typeof e?e:(n&&(n=Bo(n)),e instanceof Function?e(t,n):"".concat(t).concat(n?" (".concat(n,")"):"")):""}}]),n}(tf),jf=C(5332),Lf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(jf.Z,Lf),jf.Z.locals;var Ff=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).isToggleable=!0,r.toggleSwitchView=r._createToggleView(),r.extendTemplate({attributes:{class:"ck-switchbutton"}}),r}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var e=new tf;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),e}}]),n}(Rf),zf=C(6781),Bf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(zf.Z,Bf),zf.Z.locals;var Vf='',Uf=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).arrowView=r._createArrowView(),r.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":r.bindTemplate.to("isOn",(function(e){return String(e)}))}}),r.delegate("execute").to(d(r),"open"),r}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var e=new Df;return e.content=Vf,e.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),e}}]),n}(Rf),Hf=C(7686),qf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Hf.Z,qf),Hf.Z.locals;var Wf=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("class",void 0),r.set("labelStyle",void 0),r.set("icon",void 0),r.set("isEnabled",!0),r.set("isOn",!1),r.set("isToggleable",!1),r.set("isVisible",!0),r.set("keystroke",void 0),r.set("withKeystroke",!1),r.set("label",void 0),r.set("tabindex",-1),r.set("tooltip",!1),r.set("tooltipPosition","s"),r.set("type","button"),r.set("withText",!1),r.children=r.createCollection(),r.actionView=r._createActionView(),r.arrowView=r._createArrowView(),r.keystrokes=new Ys,r.focusTracker=new Ks,r.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",i.to("class"),i.if("isVisible","ck-hidden",(function(e){return!e})),r.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:r.children}),r}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),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",(function(t,n){e.focusTracker.focusedElement===e.actionView.element&&(e.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(t,n){e.focusTracker.focusedElement===e.arrowView.element&&(e.actionView.focus(),n())}))}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var e=new Rf;return e.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),e.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),e.delegate("execute").to(this),e}},{key:"_createArrowView",value:function(){var e=new Rf,t=e.bindTemplate;return e.icon=Vf,e.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":t.to("isOn"),"aria-haspopup":!0,"aria-expanded":t.to("isOn",(function(e){return String(e)}))}}),e.bind("isEnabled").to(this),e.bind("label").to(this),e.bind("tooltip").to(this),e.delegate("execute").to(this,"open"),e}}]),n}(tf),Gf=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isVisible",!1),r.set("position","se"),r.children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",i.to("position",(function(e){return"ck-dropdown__panel_".concat(e)})),i.if("isVisible","ck-dropdown__panel-visible")]},children:r.children,on:{selectstart:i.to((function(e){return e.preventDefault()}))}}),r}return b(n,[{key:"focus",value:function(){if(this.children.length){var e=this.children.first;"function"==typeof e.focus?e.focus():D("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this})}}},{key:"focusLast",value:function(){if(this.children.length){var e=this.children.last;"function"==typeof e.focusLast?e.focusLast():e.focus()}}}]),n}(tf),$f=C(5485),Kf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()($f.Z,Kf),$f.Z.locals;var Yf=function(e){m(n,e);var t=g(n);function n(e,r,i){var o;k(this,n);var a=(o=t.call(this,e)).bindTemplate;return o.buttonView=r,o.panelView=i,o.set("isOpen",!1),o.set("isEnabled",!0),o.set("class",void 0),o.set("id",void 0),o.set("panelPosition","auto"),o.keystrokes=new Ys,o.focusTracker=new Ks,o.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(e){return!e}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[r,i]}),r.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":a.to("isOpen")}}),o}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",(function(){e.isOpen=!e.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(t,r,i){i&&("auto"===e.panelPosition?e.panelView.position=n._getOptimalPosition({element:e.panelView.element,target:e.buttonView.element,fitInViewport:!0,positions:e._panelPositions}).name:e.panelView.position=e.panelPosition)})),this.keystrokes.listenTo(this.element);var t=function(t,n){e.isOpen&&(e.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(t,n){e.buttonView.isEnabled&&!e.isOpen&&(e.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(t,n){e.isOpen&&n()})),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var e=n.defaultPanelPositions,t=e.south,r=e.north,i=e.southEast,o=e.southWest,a=e.northEast,s=e.northWest,l=e.southMiddleEast,u=e.southMiddleWest,c=e.northMiddleEast,d=e.northMiddleWest;return"rtl"!==this.locale.uiLanguageDirection?[i,o,l,u,t,a,s,c,d,r]:[o,i,u,l,t,s,a,d,c,r]}}]),n}(tf);Yf.defaultPanelPositions={south:function(e,t){return{top:e.bottom,left:e.left-(t.width-e.width)/2,name:"s"}},southEast:function(e){return{top:e.bottom,left:e.left,name:"se"}},southWest:function(e,t){return{top:e.bottom,left:e.left-t.width+e.width,name:"sw"}},southMiddleEast:function(e,t){return{top:e.bottom,left:e.left-(t.width-e.width)/4,name:"sme"}},southMiddleWest:function(e,t){return{top:e.bottom,left:e.left-3*(t.width-e.width)/4,name:"smw"}},north:function(e,t){return{top:e.top-t.height,left:e.left-(t.width-e.width)/2,name:"n"}},northEast:function(e,t){return{top:e.top-t.height,left:e.left,name:"ne"}},northWest:function(e,t){return{top:e.top-t.height,left:e.left-t.width+e.width,name:"nw"}},northMiddleEast:function(e,t){return{top:e.top-t.height,left:e.left-(t.width-e.width)/4,name:"nme"}},northMiddleWest:function(e,t){return{top:e.top-t.height,left:e.left-3*(t.width-e.width)/4,name:"nmw"}}},Yf._getOptimalPosition=nf;var Jf=function(){function e(t){var n=this;if(k(this,e),this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler){var r=function(e){var r=t.actions[e];"string"==typeof r&&(r=[r]);var i,o=h(r);try{for(o.s();!(i=o.n()).done;){var a=i.value;t.keystrokeHandler.set(a,(function(t,r){n[e](),r()}))}}catch(s){o.e(s)}finally{o.f()}};for(var i in t.actions)r(i)}}return b(e,[{key:"first",get:function(){return this.focusables.find(Qf)||null}},{key:"last",get:function(){return this.focusables.filter(Qf).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var e=this,t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,r){var i=n.element===e.focusTracker.focusedElement;return i&&(t=r),i})),t)}},{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(e){e&&e.focus()}},{key:"_getFocusableItem",value:function(e){var t=this.current,n=this.focusables.length;if(!n)return null;if(null===t)return this[1===e?"first":"last"];var r=(t+n+e)%n;do{var i=this.focusables.get(r);if(Qf(i))return i;r=(r+n+e)%n}while(r!==t);return null}}]),e}();function Qf(e){return!(!e.focus||!Gs(e.element))}var Xf=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),r}return b(n)}(tf),ep=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}}),r}return b(n)}(tf);function tp(e){return Array.isArray(e)?{items:e,removeItems:[]}:e?Object.assign({items:[],removeItems:[]},e):{items:[],removeItems:[]}}var np=C(5542),rp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(np.Z,rp),np.Z.locals;var ip=Ef.threeVerticalDots,op={alignLeft:Ef.alignLeft,bold:Ef.bold,importExport:Ef.importExport,paragraph:Ef.paragraph,plus:Ef.plus,text:Ef.text,threeVerticalDots:Ef.threeVerticalDots},ap=function(e){m(n,e);var t=g(n);function n(e,r){var i;k(this,n);var o=(i=t.call(this,e)).bindTemplate,a=i.t;i.options=r||{},i.set("ariaLabel",a("Editor toolbar")),i.set("maxWidth","auto"),i.items=i.createCollection(),i.focusTracker=new Ks,i.keystrokes=new Ys,i.set("class",void 0),i.set("isCompact",!1),i.itemsView=new sp(e),i.children=i.createCollection(),i.children.add(i.itemsView),i.focusables=i.createCollection();var s="rtl"===e.uiLanguageDirection;i._focusCycler=new Jf({focusables:i.focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:[s?"arrowright":"arrowleft","arrowup"],focusNext:[s?"arrowleft":"arrowright","arrowdown"]}});var l,u=["ck","ck-toolbar",o.to("class"),o.if("isCompact","ck-toolbar_compact")];return i.options.shouldGroupWhenFull&&i.options.isFloating&&u.push("ck-toolbar_floating"),i.setTemplate({tag:"div",attributes:{class:u,role:"toolbar","aria-label":o.to("ariaLabel"),style:{maxWidth:o.to("maxWidth")}},children:i.children,on:{mousedown:(l=d(i),l.bindTemplate.to((function(e){e.target===l.element&&e.preventDefault()})))}}),i._behavior=i.options.shouldGroupWhenFull?new up(d(i)):new lp(d(i)),i}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this);var t,r=h(this.items);try{for(r.s();!(t=r.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(o){r.e(o)}finally{r.f()}this.items.on("add",(function(t,n){e.focusTracker.add(n.element)})),this.items.on("remove",(function(t,n){e.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),s(l(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(e,t,n){var r=this,i=tp(e),o=n||i.removeItems,a=this._cleanItemsConfiguration(i.items,t,o).map((function(e){return J(e)?r._createNestedToolbarDropdown(e,t,o):"|"===e?new Xf:"-"===e?new ep:t.create(e)})).filter((function(e){return!!e}));this.items.addMany(a)}},{key:"_cleanItemsConfiguration",value:function(e,t,n){var r=this,i=e.filter((function(e,i,o){return"|"===e||-1===n.indexOf(e)&&("-"===e?!r.options.shouldGroupWhenFull||(D("toolbarview-line-break-ignored-when-grouping-items",o),!1):!(!J(e)&&!t.has(e))||(D("toolbarview-item-unavailable",{item:e}),!1))}));return this._cleanSeparatorsAndLineBreaks(i)}},{key:"_cleanSeparatorsAndLineBreaks",value:function(e){var t=function(e){return"-"!==e&&"|"!==e},n=e.length,r=e.findIndex(t);if(-1===r)return[];var i=n-e.slice().reverse().findIndex(t);return e.slice(r,i).filter((function(e,n,r){return!!t(e)||!(n>0&&r[n-1]===e)}))}},{key:"_createNestedToolbarDropdown",value:function(e,t,n){var r=e.label,i=e.icon,o=e.items,a=e.tooltip,s=void 0===a||a,l=e.withText,u=void 0!==l&&l;if(!(o=this._cleanItemsConfiguration(o,t,n)).length)return null;var c=bp(this.locale);return r||D("toolbarview-nested-toolbar-dropdown-missing-label",e),c.class="ck-toolbar__nested-toolbar-dropdown",c.buttonView.set({label:r,tooltip:s,withText:!!u}),!1!==i?c.buttonView.icon=op[i]||i||ip:c.buttonView.withText=!0,kp(c,[]),c.toolbarView.fillFromConfig(o,t,n),c}}]),n}(tf),sp=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).children=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:r.children}),r}return b(n)}(tf),lp=function(){function e(t){k(this,e);var n=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using((function(e){return e})),t.focusables.bindTo(t.items).using((function(e){return e})),t.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}return b(e,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),e}(),up=function(){function e(t){var n=this;k(this,e),this.view=t,this.viewChildren=t.children,this.viewFocusables=t.focusables,this.viewItemsView=t.itemsView,this.viewFocusTracker=t.focusTracker,this.viewLocale=t.locale,this.ungroupedItems=t.createCollection(),this.groupedItems=t.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,t.itemsView.children.bindTo(this.ungroupedItems).using((function(e){return e})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),t.children.on("add",this._updateFocusCycleableItems.bind(this)),t.children.on("remove",this._updateFocusCycleableItems.bind(this)),t.items.on("change",(function(e,t){var r,i=t.index,o=Array.from(t.added),a=h(t.removed);try{for(a.s();!(r=a.n()).done;){var s=r.value;i>=n.ungroupedItems.length?n.groupedItems.remove(s):n.ungroupedItems.remove(s)}}catch(c){a.e(c)}finally{a.f()}for(var l=i;ln.ungroupedItems.length?n.groupedItems.add(u,l-n.ungroupedItems.length):n.ungroupedItems.add(u,l)}n._updateGrouping()})),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return b(e,[{key:"render",value:function(e){this.viewElement=e.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(e)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(Gs(this.viewElement)){for(var e,t=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),e=!0;if(!e&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==t&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var e=this.viewElement,t=this.viewLocale.uiLanguageDirection,n=new nl(e.lastChild),r=new nl(e);if(!this.cachedPadding){var i=Ur.window.getComputedStyle(e),o="ltr"===t?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(i[o])}return"ltr"===t?n.right>r.right-this.cachedPadding:n.left1&&void 0!==arguments[1]?arguments[1]:Uf)(e),n=new Gf(e),r=new Yf(e,t,n);return t.bind("isEnabled").to(r),t instanceof Wf?t.arrowView.bind("isOn").to(r,"isOpen"):t.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",(function(){Sf({emitter:e,activator:function(){return e.isOpen},callback:function(){e.isOpen=!1},contextElements:[e.element]})}))})(e),function(e){e.on("execute",(function(t){t.source instanceof Ff||(e.isOpen=!1)}))}(e),function(e){e.focusTracker.on("change:isFocused",(function(t,n,r){e.isOpen&&!r&&(e.isOpen=!1)}))}(e),function(e){e.keystrokes.set("arrowdown",(function(t,n){e.isOpen&&(e.panelView.focus(),n())})),e.keystrokes.set("arrowup",(function(t,n){e.isOpen&&(e.panelView.focusLast(),n())}))}(e),function(e){e.on("change:isOpen",(function(t,n,r){r||e.panelView.element.contains(Ur.document.activeElement)&&e.buttonView.focus()}))}(e),function(e){e.on("change:isOpen",(function(t,n,r){r&&e.panelView.focus()}),{priority:"low"})}(e)}(r),r}function kp(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=e.locale,i=r.t,o=e.toolbarView=new ap(r);o.set("ariaLabel",i("Dropdown toolbar")),e.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.map((function(e){return o.items.add(e)})),n.enableActiveItemFocusOnDropdownOpen&&_p(e,(function(){return o.items.find((function(e){return e.isOn}))})),e.panelView.children.add(o),o.items.delegate("execute").to(e)}function wp(e,t){var n=e.locale,r=e.listView=new fp(n);r.items.bindTo(t).using((function(e){if("separator"===e.type)return new hp(n);if("button"===e.type||"switchbutton"===e.type){var t,r,i=new pp(n);return(t=r="button"===e.type?new Rf(n):new Ff(n)).bind.apply(t,v(Object.keys(e.model))).to(e.model),r.delegate("execute").to(i),i.children.add(r),i}return null})),e.panelView.children.add(r),r.items.delegate("execute").to(e),_p(e,(function(){return r.items.find((function(e){return e instanceof pp&&e.children.first.isOn}))}))}function _p(e,t){e.on("change:isOpen",(function(){if(e.isOpen){var n=t();n&&("function"==typeof n.focus?n.focus():D("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}))}}),{priority:T.low-10})}xa()(gp.Z,yp),gp.Z.locals;var Cp=C(9688),xp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Cp.Z,xp),Cp.Z.locals;var Ap=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).body=new Tf(e),r}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),s(l(n.prototype),"destroy",this).call(this)}}]),n}(tf),Ep=C(3662),Sp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Ep.Z,Sp),Ep.Z.locals;var Zp=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),(r=t.call(this,e)).set("text",void 0),r.set("for",void 0),r.id="ck-editor__label_".concat(M());var i=r.bindTemplate;return r.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:r.id,for:i.to("for")},children:[{text:i.to("text")}]}),r}return b(n)}(tf),Mp=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).top=r.createCollection(),r.main=r.createCollection(),r._voiceLabelView=r._createVoiceLabel(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:e.uiLanguageDirection,lang:e.uiLanguage,"aria-labelledby":r._voiceLabelView.id},children:[r._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:r.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:r.main}]}),r}return b(n,[{key:"_createVoiceLabel",value:function(){var e=this.t,t=new Zp;return t.text=e("Rich Text Editor"),t.extendTemplate({attributes:{class:"ck-voice-label"}}),t}}]),n}(Ap),Tp=function(e){m(n,e);var t=g(n);function n(e,r,i){var o;return k(this,n),(o=t.call(this,e)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:e.contentLanguage,dir:e.contentLanguageDirection}}),o.name=null,o.set("isFocused",!1),o._editableElement=i,o._hasExternalElement=!!o._editableElement,o._editingView=r,o}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return e._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),s(l(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var e=this._editingView;function t(t){e.change((function(n){var r=e.document.getRoot(t.name);n.addClass(t.isFocused?"ck-focused":"ck-blurred",r),n.removeClass(t.isFocused?"ck-blurred":"ck-focused",r)}))}e.isRenderingInProgress?function n(r){e.once("change:isRenderingInProgress",(function(e,i,o){o?n(r):t(r)}))}(this):t(this)}}]),n}(tf),Ip=function(e){m(n,e);var t=g(n);function n(e,r,i){var o,a=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};k(this,n),o=t.call(this,e,r,i);var s=e.t;return o.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),o._generateLabel=a.label||function(){return s("Editor editing area: %0",o.name)},o}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this);var t=this._editingView;t.change((function(n){var r=t.document.getRoot(e.name);n.setAttribute("aria-label",e._generateLabel(e),r)}))}}]),n}(Tp),Pp=C(8847),Dp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Pp.Z,Dp),Pp.Z.locals;var Op=C(4879),Np={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Op.Z,Np),Op.Z.locals;var Rp=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),(r=t.call(this,e)).set("value",void 0),r.set("id",void 0),r.set("placeholder",void 0),r.set("isReadOnly",!1),r.set("hasError",!1),r.set("ariaDescribedById",void 0),r.focusTracker=new Ks,r.bind("isFocused").to(r.focusTracker),r.set("isEmpty",!0),r.set("inputMode","text");var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck","ck-input",i.if("isFocused","ck-input_focused"),i.if("isEmpty","ck-input-text_empty"),i.if("hasError","ck-error")],id:i.to("id"),placeholder:i.to("placeholder"),readonly:i.to("isReadOnly"),inputmode:i.to("inputMode"),"aria-invalid":i.if("hasError",!0),"aria-describedby":i.to("ariaDescribedById")},on:{input:i.to((function(){for(var e,t=arguments.length,n=new Array(t),i=0;i1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"success",namespace:t.namespace,title:t.title})}},{key:"showInfo",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"info",namespace:t.namespace,title:t.title})}},{key:"showWarning",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:e,type:"warning",namespace:t.namespace,title:t.title})}},{key:"_showNotification",value:function(e){var t=e.namespace?"show:".concat(e.type,":").concat(e.namespace):"show:".concat(e.type);this.fire(t,{message:e.message,type:e.type,title:e.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(Kr),Up=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),i=t.call(this),r&&Ya(d(i),r),e&&i.set(e),i}return b(n)}(ie),Hp=C(4650),qp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Hp.Z,qp),Hp.Z.locals;var Wp=C(7676),Gp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Wp.Z,Gp),Wp.Z.locals;var $p=af("px"),Kp=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).positionLimiter=function(){var e=r.editor.editing.view,t=e.document.selection.editableElement;return t?e.domConverter.mapViewToDom(t.root):null},r.set("visibleView",null),r.view=new df(e.locale),e.ui.view.body.add(r.view),e.ui.focusTracker.add(r.view.element),r._viewToStack=new Map,r._idToStack=new Map,r.set("_numberOfStacks",0),r.set("_singleViewMode",!1),r._rotatorView=r._createRotatorView(),r._fakePanelsView=r._createFakePanelsView(),r}return b(n,[{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}},{key:"hasView",value:function(e){return Array.from(this._viewToStack.keys()).includes(e)}},{key:"add",value:function(e){if(this.hasView(e.view))throw new P("contextualballoon-add-view-exist",[this,e]);var t=e.stackId||"main";if(!this._idToStack.has(t))return this._idToStack.set(t,new Map([[e.view,e]])),this._viewToStack.set(e.view,this._idToStack.get(t)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!e.singleViewMode||this.showStack(t));var n=this._idToStack.get(t);e.singleViewMode&&this.showStack(t),n.set(e.view,e),this._viewToStack.set(e.view,n),n===this._visibleStack&&this._showView(e)}},{key:"remove",value:function(e){if(!this.hasView(e))throw new P("contextualballoon-remove-view-not-exist",[this,e]);var t=this._viewToStack.get(e);this._singleViewMode&&this.visibleView===e&&(this._singleViewMode=!1),this.visibleView===e&&(1===t.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(t.values())[t.size-2])),1===t.size?(this._idToStack.delete(this._getStackId(t)),this._numberOfStacks=this._idToStack.size):t.delete(e),this._viewToStack.delete(e)}},{key:"updatePosition",value:function(e){e&&(this._visibleStack.get(this.visibleView).position=e),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(e){this.visibleStack=e;var t=this._idToStack.get(e);if(!t)throw new P("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==t&&this._showView(Array.from(t.values()).pop())}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}},{key:"_getStackId",value:function(e){return Array.from(this._idToStack.entries()).find((function(t){return t[1]===e}))[0]}},{key:"_showNextStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)+1;e[t]||(t=0),this.showStack(this._getStackId(e[t]))}},{key:"_showPrevStack",value:function(){var e=Array.from(this._idToStack.values()),t=e.indexOf(this._visibleStack)-1;e[t]||(t=e.length-1),this.showStack(this._getStackId(e[t]))}},{key:"_createRotatorView",value:function(){var e=this,t=new Yp(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>1})),t.on("change:isNavigationVisible",(function(){return e.updatePosition()}),{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(t,r){if(r<2)return"";var i=Array.from(e._idToStack.values()).indexOf(e._visibleStack)+1;return n("%0 of %1",[i,r])})),t.buttonNextView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showNextStack()})),t.buttonPrevView.on("execute",(function(){t.focusTracker.isFocused&&e.editor.editing.view.focus(),e._showPrevStack()})),t}},{key:"_createFakePanelsView",value:function(){var e=new Jp(this.editor.locale,this.view);return e.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",(function(e,t){return!t&&e>=2?Math.min(e-1,2):0})),e.listenTo(this.view,"change:top",(function(){return e.updatePosition()})),e.listenTo(this.view,"change:left",(function(){return e.updatePosition()})),this.editor.ui.view.body.add(e),e}},{key:"_showView",value:function(e){var t=e.view,n=e.balloonClassName,r=void 0===n?"":n,i=e.withArrow,o=void 0===i||i,a=e.singleViewMode,s=void 0!==a&&a;this.view.class=r,this.view.withArrow=o,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){var e=Array.from(this._visibleStack.values()).pop().position;return e&&(e.limiter||(e=Object.assign({},e,{limiter:this.positionLimiter})),e=Object.assign({},e,{viewportOffsetConfig:this.editor.ui.viewportOffset})),e}}],[{key:"pluginName",get:function(){return"ContextualBalloon"}}]),n}(ce),Yp=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),r=t.call(this,e);var i=e.t,o=r.bindTemplate;return r.set("isNavigationVisible",!0),r.focusTracker=new Ks,r.buttonPrevView=r._createButtonView(i("Previous"),''),r.buttonNextView=r._createButtonView(i("Next"),''),r.content=r.createCollection(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",o.to("isNavigationVisible",(function(e){return e?"":"ck-hidden"}))]},children:[r.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:o.to("counter")}]},r.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:r.content}]}),r}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.focusTracker.destroy()}},{key:"showView",value:function(e){this.hideView(),this.content.add(e)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(e,t){var n=new Rf(this.locale);return n.set({label:e,icon:t,tooltip:!0}),n}}]),n}(tf),Jp=function(e){m(n,e);var t=g(n);function n(e,r){var i;k(this,n);var o=(i=t.call(this,e)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("height",0),i.set("width",0),i.set("numberOfPanels",0),i.content=i.createCollection(),i._balloonPanelView=r,i.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",o.to("numberOfPanels",(function(e){return e?"":"ck-hidden"}))],style:{top:o.to("top",$p),left:o.to("left",$p),width:o.to("width",$p),height:o.to("height",$p)}},children:i.content}),i.on("change:numberOfPanels",(function(e,t,n,r){n>r?i._addPanels(n-r):i._removePanels(r-n),i.updatePosition()})),i}return b(n,[{key:"_addPanels",value:function(e){for(;e--;){var t=new tf;t.setTemplate({tag:"div"}),this.content.add(t),this.registerChild(t)}}},{key:"_removePanels",value:function(e){for(;e--;){var t=this.content.last;this.content.remove(t),this.deregisterChild(t),t.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var e=this._balloonPanelView,t=e.top,n=e.left,r=new nl(this._balloonPanelView.element),i=r.width,o=r.height;Object.assign(this,{top:t,left:n,width:i,height:o})}}}]),n}(tf),Qp=C(5868),Xp={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Qp.Z,Xp),Qp.Z.locals;var eh=af("px"),th=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).bindTemplate;return r.set("isActive",!1),r.set("isSticky",!1),r.set("limiterElement",null),r.set("limiterBottomOffset",50),r.set("viewportTopOffset",0),r.set("_marginLeft",null),r.set("_isStickyToTheLimiter",!1),r.set("_hasViewportTopOffset",!1),r.content=r.createCollection(),r._contentPanelPlaceholder=new Pd({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:i.to("isSticky",(function(e){return e?"block":"none"})),height:i.to("isSticky",(function(e){return e?eh(r._panelRect.height):null}))}}}).render(),r._contentPanel=new Pd({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",i.if("isSticky","ck-sticky-panel__content_sticky"),i.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:i.to("isSticky",(function(e){return e?eh(r._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:i.to("_hasViewportTopOffset",(function(e){return e?eh(r.viewportTopOffset):null})),bottom:i.to("_isStickyToTheLimiter",(function(e){return e?eh(r.limiterBottomOffset):null})),marginLeft:i.to("_marginLeft")}},children:r.content}).render(),r.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[r._contentPanelPlaceholder,r._contentPanel]}),r}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Ur.window,"scroll",(function(){e._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){e._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var e,t=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top2&&void 0!==arguments[2]?arguments[2]:{};return k(this,n),(i=t.call(this,e)).stickyPanel=new th(e),i.toolbar=new ap(e,{shouldGroupWhenFull:o.shouldToolbarGroupWhenFull}),i.editable=new Ip(e,r),i}return b(n,[{key:"render",value:function(){s(l(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(Mp),lh=function(e){m(n,e);var t=g(n);function n(e){var r,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(k(this,n),!Or(e)&&void 0!==i.initialData)throw new P("editor-create-initial-data",null);void 0===(r=t.call(this,i)).config.get("initialData")&&r.config.set("initialData",function(e){return Or(e)?(t=e)instanceof HTMLTextAreaElement?t.value:t.innerHTML:e;var t}(e)),Or(e)&&(r.sourceElement=e),r.model.document.createRoot();var o=!r.config.get("toolbar.shouldNotGroupWhenFull"),a=new sh(r.locale,r.editing.view,{shouldToolbarGroupWhenFull:o});return r.ui=new ih(d(r),a),function(e){if(!Je(e.updateSourceElement))throw new P("attachtoform-missing-elementapi-interface",e);var t=e.sourceElement;if(function(e){return!!e&&"textarea"===e.tagName.toLowerCase()}(t)&&t.form){var n,r=t.form,i=function(){return e.updateSourceElement()};Je(r.submit)&&(n=r.submit,r.submit=function(){i(),n.apply(r)}),r.addEventListener("submit",i),e.on("destroy",(function(){r.removeEventListener("submit",i),n&&(r.submit=n)}))}}(d(r)),r}return b(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),s(l(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(r){var i=new t(e,n);r(i.initPlugins().then((function(){return i.ui.init(Or(e)?e:null)})).then((function(){return i.data.init(i.config.get("initialData"))})).then((function(){return i.fire("ready")})).then((function(){return i})))}))}}]),n}(Zd);Vs(lh,wf),Vs(lh,xf);var uh=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).document;function o(e){return function(t,n){n.preventDefault();var r=n.dropRange?[n.dropRange]:null,o=new S(i,e);i.fire(o,{dataTransfer:n.dataTransfer,method:t.name,targetRanges:r,target:n.target}),o.stop.called&&n.stopPropagation()}}return r.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],r.listenTo(i,"paste",o("clipboardInput"),{priority:"low"}),r.listenTo(i,"drop",o("clipboardInput"),{priority:"low"}),r.listenTo(i,"dragover",o("dragging"),{priority:"low"}),r}return b(n,[{key:"onDomEvent",value:function(e){var t={dataTransfer:new zs("clipboardData"in e?e.clipboardData:e.dataTransfer)};"drop"!=e.type&&"dragover"!=e.type||(t.dropRange=function(e,t){var n,r=t.target.ownerDocument,i=t.clientX,o=t.clientY;return r.caretRangeFromPoint&&r.caretRangeFromPoint(i,o)?n=r.caretRangeFromPoint(i,o):t.rangeParent&&((n=r.createRange()).setStart(t.rangeParent,t.rangeOffset),n.collapse(!0)),n?e.domConverter.domRangeToView(n):null}(this.view,e)),this.fire(e.type,e,t)}}]),n}(Qa),ch=["figcaption","li"];function dh(e){var t="";if(e.is("$text")||e.is("$textProxy"))t=e.data;else if(e.is("element","img")&&e.hasAttribute("alt"))t=e.getAttribute("alt");else if(e.is("element","br"))t="\n";else{var n,r=null,i=h(e.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value,a=dh(o);r&&(r.is("containerElement")||o.is("containerElement"))&&(ch.includes(r.name)||ch.includes(o.name)?t+="\n":t+="\n\n"),t+=a,r=o}}catch(s){i.e(s)}finally{i.f()}}return t}var fh=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(uh),this._setupPasteDrop(),this._setupCopyCut()}},{key:"_setupPasteDrop",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=r.document;this.listenTo(i,"clipboardInput",(function(e){t.isReadOnly&&e.stop()}),{priority:"highest"}),this.listenTo(i,"clipboardInput",(function(t,n){var i,o,a=n.dataTransfer;if(n.content)i=n.content;else{var s="";a.getData("text/html")?s=function(e){return e.replace(/(\s+)<\/span>/g,(function(e,t){return 1==t.length?" ":t})).replace(//g,"")}(a.getData("text/html")):a.getData("text/plain")&&(((o=(o=a.getData("text/plain")).replace(//g,">").replace(/\r?\n\r?\n/g,"

").replace(/\r?\n/g,"
").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g,"  ")).includes("

")||o.includes("
"))&&(o="

".concat(o,"

")),s=o),i=e.editor.data.htmlProcessor.toView(s)}var l=new S(e,"inputTransformation");e.fire(l,{content:i,dataTransfer:a,targetRanges:n.targetRanges,method:n.method}),l.stop.called&&t.stop(),r.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(t,r){if(!r.content.isEmpty){var i=e.editor.data.toModel(r.content,"$clipboardHolder");0!=i.childCount&&(t.stop(),n.change((function(){e.fire("contentInsertion",{content:i,method:r.method,dataTransfer:r.dataTransfer,targetRanges:r.targetRanges})})))}}),{priority:"low"}),this.listenTo(this,"contentInsertion",(function(e,t){t.resultRange=n.insertContent(t.content)}),{priority:"low"})}},{key:"_setupCopyCut",value:function(){var e=this,t=this.editor,n=t.model.document,r=t.editing.view.document,i=function(e,i){var o=i.dataTransfer;i.preventDefault();var a=t.data.toView(t.model.getSelectedContent(n.selection));r.fire("clipboardOutput",{dataTransfer:o,content:a,method:e.name})};this.listenTo(r,"copy",i,{priority:"low"}),this.listenTo(r,"cut",(function(e,n){t.isReadOnly?n.preventDefault():i(e,n)}),{priority:"low"}),this.listenTo(r,"clipboardOutput",(function(r,i){i.content.isEmpty||(i.dataTransfer.setData("text/html",e.editor.data.htmlProcessor.toData(i.content)),i.dataTransfer.setData("text/plain",dh(i.content))),"cut"==i.method&&t.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ClipboardPipeline"}}]),n}(ce);function ph(e,t){var n,r,i;return f().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:n=h(t),o.prev=1,n.s();case 3:if((r=n.n()).done){o.next=11;break}if(i=r.value,o.t0=i&&e.getAttributeProperties(i[0]).copyOnEnter,!o.t0){o.next=9;break}return o.next=9,i;case 9:o.next=3;break;case 11:o.next=16;break;case 13:o.prev=13,o.t1=o.catch(1),n.e(o.t1);case 16:return o.prev=16,n.f(),o.finish(16);case 19:case"end":return o.stop()}}),A,null,[[1,13,16,19]])}var hh=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n,r){var i=n.isCollapsed,o=n.getFirstRange(),a=o.start.parent,s=o.end.parent;if(r.isLimit(a)||r.isLimit(s))i||a!=s||e.deleteContent(n);else if(i){var l=ph(t.model.schema,n.getAttributes());vh(t,o.start),t.setSelectionAttribute(l)}else{var u=!(o.start.isAtStart&&o.end.isAtEnd),c=a==s;e.deleteContent(n,{leaveUnmerged:u}),u&&(c?vh(t,n.focus):t.setSelection(s,0))}}(e.editor.model,r,n.selection,t.schema),e.fire("afterExecute",{writer:r})}))}}]),n}(fe);function vh(e,t){e.split(t),e.setSelection(t.parent.nextSibling,0)}var mh={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}},gh=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).document;return i.on("beforeinput",(function(t,n){if(r.isEnabled){var o=n.domEvent,a=mh[n.inputType];if(a){var s=new go(i,"enter",n.targetRanges[0]);i.fire(s,new Ja(e,o,{isSoft:a.isSoft})),s.stop.called&&t.stop()}}})),r}return b(n,[{key:"observe",value:function(){}}]),n}(Ka),yh=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view,n=t.document;t.addObserver(gh),e.commands.add("enter",new hh(e)),this.listenTo(n,"enter",(function(r,i){n.isComposing||i.preventDefault(),i.isSoft||(e.execute("enter"),t.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(ce),bh=function(){function e(t){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;k(this,e),this._batch=null,this.model=t,this._size=0,this.limit=r,this._isLocked=!1,this._changeCallback=function(e,t){t.isLocal&&t.isUndoable&&t!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._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)}return b(e,[{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}},{key:"size",get:function(){return this._size}},{key:"input",value:function(e){this._size+=e,this._size>=this.limit&&this._reset(!0)}},{key:"isLocked",get:function(){return this._isLocked}},{key:"lock",value:function(){this._isLocked=!0}},{key:"unlock",value:function(){this._isLocked=!1}},{key:"destroy",value:function(){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)}},{key:"_reset",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this.isLocked&&!e||(this._batch=null,this._size=0)}}]),e}(),kh=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e)).direction=r,i._buffer=new bh(e.model,e.config.get("typing.undoStep")),i}return b(n,[{key:"buffer",get:function(){return this._buffer}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document;n.enqueueChange(this._buffer.batch,(function(i){e._buffer.lock();var o=i.createSelection(t.selection||r.selection),a=t.sequence||1,s=o.isCollapsed;if(o.isCollapsed&&n.modifySelection(o,{direction:e.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),e._shouldEntireContentBeReplacedWithParagraph(a))e._replaceEntireContentWithParagraph(i);else if(e._shouldReplaceFirstBlockWithParagraph(o,a))e.editor.execute("paragraph",{selection:o});else if(!o.isCollapsed){var l=0;o.getFirstRange().getMinimalFlatRanges().forEach((function(e){l+=ho(e.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(o,{doNotResetEntireContent:s,direction:e.direction}),e._buffer.input(l),i.setSelection(o),e._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(e){if(e>1)return!1;var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(r))return!1;if(!t.schema.checkChild(r,"paragraph"))return!1;var i=r.getChild(0);return!i||!i.is("element","paragraph")}},{key:"_replaceEntireContentWithParagraph",value:function(e){var t=this.editor.model,n=t.document.selection,r=t.schema.getLimitElement(n),i=e.createElement("paragraph");e.remove(e.createRangeIn(r)),e.insert(i,r),e.setSelection(i,0)}},{key:"_shouldReplaceFirstBlockWithParagraph",value:function(e,t){var n=this.editor.model;if(t>1||"backward"!=this.direction)return!1;if(!e.isCollapsed)return!1;var r=e.getFirstPosition(),i=n.schema.getLimitElement(r),o=i.getChild(0);return r.parent==o&&!!e.containsEntireContent(o)&&!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=o.name}}]),n}(fe),wh="word",_h="selection",Ch="backward",xh="forward",Ah={deleteContent:{unit:_h,direction:Ch},deleteContentBackward:{unit:"codePoint",direction:Ch},deleteWordBackward:{unit:wh,direction:Ch},deleteHardLineBackward:{unit:_h,direction:Ch},deleteSoftLineBackward:{unit:_h,direction:Ch},deleteContentForward:{unit:"character",direction:xh},deleteWordForward:{unit:wh,direction:xh},deleteHardLineForward:{unit:_h,direction:xh},deleteSoftLineForward:{unit:_h,direction:xh}},Eh=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),r=t.call(this,e);var i=e.document,o=0;return i.on("keydown",(function(){o++})),i.on("keyup",(function(){o=0})),i.on("beforeinput",(function(t,n){if(r.isEnabled){var a=n.targetRanges,s=n.domEvent,l=n.inputType,u=Ah[l];if(u){var c={direction:u.direction,unit:u.unit,sequence:o};c.unit==_h&&(c.selectionToRemove=e.createSelection(a[0])),Do.isAndroid&&"deleteContentBackward"===l&&(c.sequence=1,1!=a.length||a[0].start.parent==a[0].end.parent&&a[0].start.offset+1==a[0].end.offset||(c.unit=_h,c.selectionToRemove=e.createSelection(a)));var d=new go(i,"delete",a[0]);i.fire(d,new Ja(e,s,c)),d.stop.called&&t.stop()}}})),Do.isBlink&&function(e){var t=e.view,n=t.document,r=null,i=!1;function o(e){return e==jo.backspace||e==jo.delete}function a(e){return e==jo.backspace?Ch:xh}n.on("keydown",(function(e,t){var n=t.keyCode;r=n,i=!1})),n.on("keyup",(function(s,l){var u=l.keyCode,c=l.domEvent,d=n.selection,f=e.isEnabled&&u==r&&o(u)&&!d.isCollapsed&&!i;if(r=null,f){var p=d.getFirstRange(),h=new go(n,"delete",p),v={unit:_h,direction:a(u),selectionToRemove:d};n.fire(h,new Ja(t,c,v))}})),n.on("beforeinput",(function(e,t){var n=t.inputType,s=Ah[n];o(r)&&s&&s.direction==a(r)&&(i=!0)})),n.on("beforeinput",(function(e,t){var n=t.inputType,i=t.data;r==jo.delete&&"insertText"==n&&"\x7f"==i&&e.stop()}),{priority:"high"})}(d(r)),r}return b(n,[{key:"observe",value:function(){}}]),n}(Ka),Sh=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=n.document,i=t.model.document;n.addObserver(Eh),this._undoOnBackspace=!1;var o=new kh(t,"forward");t.commands.add("deleteForward",o),t.commands.add("forwardDelete",o),t.commands.add("delete",new kh(t,"backward")),this.listenTo(r,"delete",(function(e,i){r.isComposing||i.preventDefault();var o=i.direction,a=i.sequence,s=i.selectionToRemove,l=i.unit,u="forward"===o?"deleteForward":"delete",c={sequence:a};if("selection"==l){var d=Array.from(s.getRanges()).map((function(e){return t.editing.mapper.toModelRange(e)}));c.selection=t.model.createSelection(d)}else c.unit=l;t.execute(u,c),n.scrollToTheSelection()}),{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(r,"delete",(function(n,r){e._undoOnBackspace&&"backward"==r.direction&&1==r.sequence&&"codePoint"==r.unit&&(e._undoOnBackspace=!1,t.execute("undo"),r.preventDefault(),n.stop())}),{context:"$capture"}),this.listenTo(i,"change",(function(){e._undoOnBackspace=!1})))}},{key:"requestUndoOnBackspace",value:function(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(ce),Zh=function(e){m(n,e);var t=g(n);function n(){var e;return k(this,n),(e=t.call(this))._stack=[],e}return b(n,[{key:"add",value:function(e,t){var n=this._stack,r=n[0];this._insertDescriptor(e);var i=n[0];r===i||Mh(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"remove",value:function(e,t){var n=this._stack,r=n[0];this._removeDescriptor(e);var i=n[0];r===i||Mh(r,i)||this.fire("change:top",{oldDescriptor:r,newDescriptor:i,writer:t})}},{key:"_insertDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e.id}));if(!Mh(e,t[n])){n>-1&&t.splice(n,1);for(var r=0;t[r]&&Th(t[r],e);)r++;t.splice(r,0,e)}}},{key:"_removeDescriptor",value:function(e){var t=this._stack,n=t.findIndex((function(t){return t.id===e}));n>-1&&t.splice(n,1)}}]),n}(U);function Mh(e,t){return e&&t&&e.priority==t.priority&&Ih(e.classes)==Ih(t.classes)}function Th(e,t){return e.priority>t.priority||!(e.priorityIh(t.classes)}function Ih(e){return Array.isArray(e)?e.sort().join(","):e}var Ph='',Dh="ck-widget_selected";function Oh(e){return!!e.is("element")&&!!e.getCustomProperty("widget")}function Nh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.is("containerElement"))throw new P("widget-to-widget-wrong-element-type",null,{element:e});return t.setAttribute("contenteditable","false",e),t.addClass("ck-widget",e),t.setCustomProperty("widget",!0,e),e.getFillerOffset=Vh,n.label&&function(e,t,n){n.setCustomProperty("widgetLabel",t,e)}(e,n.label,t),n.hasSelectionHandle&&function(e,t){var n=t.createUIElement("div",{class:"ck ck-widget__selection-handle"},(function(e){var t=this.toDomElement(e),n=new Df;return n.set("content",Ph),n.render(),t.appendChild(n.element),t}));t.insert(t.createPositionAt(e,0),n),t.addClass(["ck-widget_with-selection-handle"],e)}(e,t),Lh(e,t),e}function Rh(e,t,n){if(t.classes&&n.addClass(Vr(t.classes),e),t.attributes)for(var r in t.attributes)n.setAttribute(r,t.attributes[r],e)}function jh(e,t,n){if(t.classes&&n.removeClass(Vr(t.classes),e),t.attributes)for(var r in t.attributes)n.removeAttribute(r,e)}function Lh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Rh,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:jh,i=new Zh;i.on("change:top",(function(t,i){i.oldDescriptor&&r(e,i.oldDescriptor,i.writer),i.newDescriptor&&n(e,i.newDescriptor,i.writer)})),t.setCustomProperty("addHighlight",(function(e,t,n){return i.add(t,n)}),e),t.setCustomProperty("removeHighlight",(function(e,t,n){return i.remove(t,n)}),e)}function Fh(e){var t=e.getCustomProperty("widgetLabel");return t?"function"==typeof t?t():t:""}function zh(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t.addClass(["ck-editor__editable","ck-editor__nested-editable"],e),t.setAttribute("role","textbox",e),n.label&&t.setAttribute("aria-label",n.label,e),t.setAttribute("contenteditable",e.isReadOnly?"false":"true",e),e.on("change:isReadOnly",(function(n,r,i){t.setAttribute("contenteditable",i?"false":"true",e)})),e.on("change:isFocused",(function(n,r,i){i?t.addClass("ck-editor__nested-editable_focused",e):t.removeClass("ck-editor__nested-editable_focused",e)})),Lh(e,t),e}function Bh(e,t){var n=e.getSelectedElement();if(n){var r=qh(e);if(r)return t.createRange(t.createPositionAt(n,r))}return kd(e,t)}function Vh(){return null}var Uh="widget-type-around";function Hh(e,t,n){return!!e&&Oh(e)&&!n.isInline(t)}function qh(e){return e.getAttribute(Uh)}var Wh=C(4921),Gh={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Wh.Z,Gh),Wh.Z.locals;var $h=["before","after"],Kh=(new DOMParser).parseFromString('',"image/svg+xml").firstChild,Yh="ck-widget__type-around_disabled",Jh=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._currentFakeCaretModelElement=null,r}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view;this.on("change:isEnabled",(function(n,r,i){t.change((function(e){var n,r=h(t.document.roots);try{for(r.s();!(n=r.n()).done;){var o=n.value;i?e.removeClass(Yh,o):e.addClass(Yh,o)}}catch(a){r.e(a)}finally{r.f()}})),i||e.model.change((function(e){e.removeSelectionAttribute(Uh)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration()}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(e,t){var n=this.editor,r=n.editing.view,i=n.model.schema.getAttributesWithProperty(e,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(e,t),attributes:i}),r.focus(),r.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(e,t,n,r){var i=this;this.listenTo(e,t,(function(){i.isEnabled&&n.apply(void 0,arguments)}),r)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var e=this.editor.model.document.selection,t=qh(e);if(!t)return!1;var n=e.getSelectedElement();return this._insertParagraph(n,t),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var e=this.editor,t=e.model.schema,n=e.locale.t,r={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};e.editing.downcastDispatcher.on("insert",(function(e,n,i){var o=i.mapper.toViewElement(n.item);Hh(o,n.item,t)&&function(e,t,n){var r=e.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},(function(e){var n=this.toDomElement(e);return function(e,t){var n,r=h($h);try{for(r.s();!(n=r.n()).done;){var i=n.value,o=new Pd({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_".concat(i)],title:t[i]},children:[e.ownerDocument.importNode(Kh,!0)]});e.appendChild(o.render())}}catch(a){r.e(a)}finally{r.f()}}(n,t),function(e){var t=new Pd({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});e.appendChild(t.render())}(n),n}));e.insert(e.createPositionAt(n,"end"),r)}(i.writer,r,o)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var e=this,t=this.editor,n=t.model,r=n.document.selection,i=n.schema,o=t.editing.view;function a(e){return"ck-widget_type-around_show-fake-caret_".concat(e)}this._listenToIfEnabled(o.document,"arrowKey",(function(t,n){e._handleArrowKeyPress(t,n)}),{context:[Oh,"$text"],priority:"high"}),this._listenToIfEnabled(r,"change:range",(function(e,n){n.directChange&&t.model.change((function(e){e.removeSelectionAttribute(Uh)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var e=r.getSelectedElement();e&&Hh(t.editing.mapper.toViewElement(e),e,i)||t.model.change((function(e){e.removeSelectionAttribute(Uh)}))})),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",(function(t,n,r){var o=r.writer;if(e._currentFakeCaretModelElement){var s=r.mapper.toViewElement(e._currentFakeCaretModelElement);s&&(o.removeClass($h.map(a),s),e._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var u=r.mapper.toViewElement(l);if(Hh(u,l,i)){var c=qh(n.selection);c&&(o.addClass(a(c),u),e._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",(function(e,n,r){r||t.model.change((function(e){e.removeSelectionAttribute(Uh)}))}))}},{key:"_handleArrowKeyPress",value:function(e,t){var n,r=this.editor,i=r.model,o=i.document.selection,a=i.schema,s=r.editing.view,l=function(e,t){var n=Vo(e,t);return"down"===n||"right"===n}(t.keyCode,r.locale.contentLanguageDirection),u=s.document.selection.getSelectedElement();Hh(u,r.editing.mapper.toModelElement(u),a)?n=this._handleArrowKeyPressOnSelectedWidget(l):o.isCollapsed?n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):t.shiftKey||(n=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),n&&(t.preventDefault(),e.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(e){var t=this.editor.model,n=qh(t.document.selection);return t.change((function(t){return n?n!==(e?"after":"before")&&(t.removeSelectionAttribute(Uh),!0):(t.setSelectionAttribute(Uh,e?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.plugins.get("Widget"),o=i._getObjectElementNextToSelection(e);return!!Hh(t.editing.mapper.toViewElement(o),o,r)&&(n.change((function(t){i._setSelectionOverElement(o),t.setSelectionAttribute(Uh,e?"before":"after")})),!0)}},{key:"_handleArrowKeyPressWhenNonCollapsedSelection",value:function(e){var t=this.editor,n=t.model,r=n.schema,i=t.editing.mapper,o=n.document.selection,a=e?o.getLastPosition().nodeBefore:o.getFirstPosition().nodeAfter;return!!Hh(i.toViewElement(a),a,r)&&(n.change((function(t){t.setSelection(a,"on"),t.setSelectionAttribute(Uh,e?"after":"before")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var e=this,t=this.editor,n=t.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(r,i){var o=i.domTarget.closest(".ck-widget__type-around__button");if(o){var a=function(e){return e.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(o),s=function(e,t){var n=e.closest(".ck-widget");return t.mapDomToView(n)}(o,n.domConverter),l=t.editing.mapper.toModelElement(s);e._insertParagraph(l,a),i.preventDefault(),r.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var e=this,t=this.editor,n=t.model.document.selection,r=t.editing.view;this._listenToIfEnabled(r.document,"enter",(function(r,i){if("atTarget"==r.eventPhase){var o,a=n.getSelectedElement(),s=t.editing.mapper.toViewElement(a),l=t.model.schema;e._insertParagraphAccordingToFakeCaretPosition()?o=!0:Hh(s,a,l)&&(e._insertParagraph(a,i.isSoft?"before":"after"),o=!0),o&&(i.preventDefault(),r.stop())}}),{context:Oh})}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var e=this,t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",(function(n,r){e._insertParagraphAccordingToFakeCaretPosition()&&(r.selection=t.selection)}),{priority:"high"}),Do.isAndroid?this._listenToIfEnabled(t,"keydown",(function(t,n){229==n.keyCode&&e._insertParagraphAccordingToFakeCaretPosition()})):this._listenToIfEnabled(t,"compositionstart",(function(){e._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}},{key:"_enableDeleteIntegration",value:function(){var e=this.editor,t=e.editing.view,n=e.model,r=n.schema;this._listenToIfEnabled(t.document,"delete",(function(t,i){if("atTarget"==t.eventPhase){var o=qh(n.document.selection);if(o){var a=i.direction,s=n.document.selection.getSelectedElement(),l="forward"==a;if("before"===o===l)e.execute("delete",{selection:n.createSelection(s,"on")});else{var u=r.getNearestSelectionRange(n.createPositionAt(s,o),a);if(u)if(u.isCollapsed){var c=n.createSelection(u.start);if(n.modifySelection(c,{direction:a}),c.focus.isEqual(u.start)){var d=function(e,t){var n,r=t,i=h(t.getAncestors({parentFirst:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.childCount>1||e.isLimit(o))break;r=o}}catch(a){i.e(a)}finally{i.f()}return r}(r,u.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(t){t.setSelection(u),e.execute(l?"deleteForward":"delete")}))}else n.change((function(t){t.setSelection(u),e.execute(l?"deleteForward":"delete")}))}i.preventDefault(),t.stop()}}}),{context:Oh})}},{key:"_enableInsertContentIntegration",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection;this._listenToIfEnabled(e.model,"insertContent",(function(e,r){var i=p(r,2),o=i[0],a=i[1];if(!a||a.is("documentSelection")){var s=qh(n);return s?(e.stop(),t.change((function(e){var r=n.getSelectedElement(),i=t.createPositionAt(r,s),a=e.createSelection(i),l=t.insertContent(o,a);return e.setSelection(a),l}))):void 0}}),{priority:"high"})}},{key:"_enableInsertObjectIntegration",value:function(){var e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"insertObject",(function(e,n){var r=p(n,4),i=r[1],o=r[3],a=void 0===o?{}:o;if(!i||i.is("documentSelection")){var s=qh(t);s&&(a.findOptimalPosition=s,n[3]=a)}}),{priority:"high"})}},{key:"_enableDeleteContentIntegration",value:function(){var e=this.editor,t=this.editor.model.document.selection;this._listenToIfEnabled(e.model,"deleteContent",(function(e,n){var r=p(n,1)[0];r&&!r.is("documentSelection")||qh(t)&&e.stop()}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"WidgetTypeAround"}},{key:"requires",get:function(){return[yh,Sh]}}]),n}(ce);function Qh(e){var t=e.model;return function(n,r){var i=r.keyCode==jo.arrowup,o=r.keyCode==jo.arrowdown,a=r.shiftKey,s=t.document.selection;if(i||o){var l=o;if(!a||!function(e,t){return!e.isCollapsed&&e.isBackward==t}(s,l)){var u=function(e,t,n){var r=e.model;if(n){var i=t.isCollapsed?t.focus:t.getLastPosition(),o=Xh(r,i,"forward");if(!o)return null;var a=r.createRange(i,o),s=ev(r.schema,a,"backward");return s?r.createRange(i,s):null}var l=t.isCollapsed?t.focus:t.getFirstPosition(),u=Xh(r,l,"backward");if(!u)return null;var c=r.createRange(u,l),d=ev(r.schema,c,"forward");return d?r.createRange(d,l):null}(e,s,l);if(u){if(u.isCollapsed){if(s.isCollapsed)return;if(a)return}(u.isCollapsed||function(e,t,n){var r=e.model,i=e.view.domConverter;if(n){var o=r.createSelection(t.start);r.modifySelection(o),o.focus.isAtEnd||t.start.isEqual(o.focus)||(t=r.createRange(o.focus,t.end))}var a,s,l=e.mapper.toViewRange(t),u=i.viewRangeToDom(l),c=nl.getDomRangeRects(u),d=h(c);try{for(d.s();!(s=d.n()).done;){var f=s.value;if(void 0!==a){if(Math.round(f.top)>=a)return!1;a=Math.max(a,Math.round(f.bottom))}else a=Math.round(f.bottom)}}catch(p){d.e(p)}finally{d.f()}return!0}(e,u,l))&&(t.change((function(e){var n=l?u.end:u.start;if(a){var r=t.createSelection(s.anchor);r.setFocus(n),e.setSelection(r)}else e.setSelection(n)})),n.stop(),r.preventDefault(),r.stopPropagation())}}}}}function Xh(e,t,n){var r,i=e.schema,o=e.createRangeIn(t.root),a="forward"==n?"elementStart":"elementEnd",s=h(o.getWalker({startPosition:t,direction:n}));try{for(s.s();!(r=s.n()).done;){var l=r.value,u=l.previousPosition,c=l.item,d=l.type;if(i.isLimit(c)&&!i.isInline(c))return u;if(d==a&&i.isBlock(c))return null}}catch(f){s.e(f)}finally{s.f()}return null}function ev(e,t,n){var r="backward"==n?t.end:t.start;if(e.checkChild(r,"$text"))return r;var i,o=h(t.getWalker({direction:n}));try{for(o.s();!(i=o.n()).done;){var a=i.value.nextPosition;if(e.checkChild(a,"$text"))return a}}catch(s){o.e(s)}finally{o.f()}return null}var tv=C(3488),nv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(tv.Z,nv),tv.Z.locals;var rv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(e,n,r){var i=r.writer,o=n.selection;if(!o.isCollapsed){var a=o.getSelectedElement();if(a){var s=t.editing.mapper.toViewElement(a);Oh(s)&&r.consumable.consume(o,"selection")&&i.setSelection(i.createRangeOn(s),{fake:!0,label:Fh(s)})}}})),this.editor.editing.downcastDispatcher.on("selection",(function(t,n,r){e._clearPreviouslySelectedWidgets(r.writer);var i,o=r.writer,a=o.document.selection,s=null,l=h(a.getRanges());try{for(l.s();!(i=l.n()).done;){var u,c=i.value,d=h(c);try{for(d.s();!(u=d.n()).done;){var f=u.value.item;Oh(f)&&!iv(f,s)&&(o.addClass(Dh,f),e._previouslySelected.add(f),s=f)}}catch(p){d.e(p)}finally{d.f()}}}catch(p){l.e(p)}finally{l.f()}}),{priority:"low"}),n.addObserver(gd),this.listenTo(r,"mousedown",(function(){return e._onMousedown.apply(e,arguments)})),this.listenTo(r,"arrowKey",(function(){e._handleSelectionChangeOnArrowKeyPress.apply(e,arguments)}),{context:[Oh,"$text"]}),this.listenTo(r,"arrowKey",(function(){e._preventDefaultOnArrowKeyPress.apply(e,arguments)}),{context:"$root"}),this.listenTo(r,"arrowKey",Qh(this.editor.editing),{context:"$text"}),this.listenTo(r,"delete",(function(t,n){e._handleDelete("forward"==n.direction)&&(n.preventDefault(),t.stop())}),{context:"$root"})}},{key:"_onMousedown",value:function(e,t){var n=this.editor,r=n.editing.view,i=r.document,o=t.target;if(function(e){for(var t=e;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Oh(t))return!1;t=t.parent}return!1}(o)){if((Do.isSafari||Do.isGecko)&&t.domEvent.detail>=3){var a=n.editing.mapper,s=o.is("attributeElement")?o.findAncestor((function(e){return!e.is("attributeElement")})):o,l=a.toModelElement(s);t.preventDefault(),this.editor.model.change((function(e){e.setSelection(l,"in")}))}}else if(Oh(o)||(o=o.findAncestor(Oh))){Do.isAndroid&&t.preventDefault(),i.isFocused||r.focus();var u=n.editing.mapper.toModelElement(o);this._setSelectionOverElement(u)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(e,t){var n=t.keyCode,r=this.editor.model,i=r.schema,o=r.document.selection,a=o.getSelectedElement(),s=Vo(n,this.editor.locale.contentLanguageDirection),l="down"==s||"right"==s,u="up"==s||"down"==s;if(a&&i.isObject(a)){var c=l?o.getLastPosition():o.getFirstPosition(),d=i.getNearestSelectionRange(c,l?"forward":"backward");d&&(r.change((function(e){e.setSelection(d)})),t.preventDefault(),e.stop())}else if(o.isCollapsed||t.shiftKey){if(o.isCollapsed){var f=this._getObjectElementNextToSelection(l);if(f&&i.isObject(f)){if(i.isInline(f)&&u)return;this._setSelectionOverElement(f),t.preventDefault(),e.stop()}}}else{var p=o.getFirstPosition(),h=o.getLastPosition(),v=p.nodeAfter,m=h.nodeBefore;(v&&i.isObject(v)||m&&i.isObject(m))&&(r.change((function(e){e.setSelection(l?h:p)})),t.preventDefault(),e.stop())}}},{key:"_preventDefaultOnArrowKeyPress",value:function(e,t){var n=this.editor.model,r=n.schema,i=n.document.selection.getSelectedElement();i&&r.isObject(i)&&(t.preventDefault(),e.stop())}},{key:"_handleDelete",value:function(e){var t=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var r=this._getObjectElementNextToSelection(e);return r?(this.editor.model.change((function(e){for(var i=n.anchor.parent;i.isEmpty;){var o=i;i=o.parent,e.remove(o)}t._setSelectionOverElement(r)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(e){this.editor.model.change((function(t){t.setSelection(t.createRangeOn(e))}))}},{key:"_getObjectElementNextToSelection",value:function(e){var t=this.editor.model,n=t.schema,r=t.document.selection,i=t.createSelection(r);if(t.modifySelection(i,{direction:e?"forward":"backward"}),i.isEqual(r))return null;var o=e?i.focus.nodeBefore:i.focus.nodeAfter;return o&&n.isObject(o)?o:null}},{key:"_clearPreviouslySelectedWidgets",value:function(e){var t,n=h(this._previouslySelected);try{for(n.s();!(t=n.n()).done;){var r=t.value;e.removeClass(Dh,r)}}catch(i){n.e(i)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Jh,Sh]}}]),n}(ce);function iv(e,t){return!!t&&Array.from(e.getAncestors()).includes(t)}var ov=function(e,t,n){var r=!0,i=!0;if("function"!=typeof e)throw new TypeError("Expected a function");return J(n)&&(r="leading"in n?!!n.leading:r,i="trailing"in n?!!n.trailing:i),fs(e,t,{leading:r,maxWait:t,trailing:i})},av=C(903),sv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(av.Z,sv),av.Z.locals;var lv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=ov((function(t){return e._updateDropMarker(t)}),40),this._removeDropMarkerDelayed=dv((function(){return e._removeDropMarker()}),40),this._clearDraggableAttributesDelayed=dv((function(){return e._clearDraggableAttributes()}),40),n.addObserver(uh),n.addObserver(gd),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",(function(t,n,r){r?e.forceDisabled("readOnlyMode"):e.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",(function(t,n,r){r||e._finalizeDragging(!1)})),Do.isAndroid&&this.forceDisabled("noAndroidSupport")}},{key:"destroy",value:function(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),s(l(n.prototype),"destroy",this).call(this)}},{key:"_setupDragging",value:function(){var e=this,t=this.editor,n=t.model,r=n.document,i=t.editing.view,o=i.document;this.listenTo(o,"dragstart",(function(i,a){var s=r.selection;if(a.target&&a.target.is("editableElement"))a.preventDefault();else{var l=a.target?fv(a.target):null;if(l){var u=t.editing.mapper.toModelElement(l);e._draggedRange=Vl.fromRange(n.createRangeOn(u)),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!o.selection.isCollapsed){var c=o.selection.getSelectedElement();c&&Oh(c)||(e._draggedRange=Vl.fromRange(s.getFirstRange()))}if(e._draggedRange){e._draggingUid=M(),a.dataTransfer.effectAllowed=e.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",e._draggingUid);var d=n.createSelection(e._draggedRange.toRange()),f=t.data.toView(n.getSelectedContent(d));o.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:f,method:"dragstart"}),e.isEnabled||(e._draggedRange.detach(),e._draggedRange=null,e._draggingUid="")}else a.preventDefault()}}),{priority:"low"}),this.listenTo(o,"dragend",(function(t,n){e._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(o,"dragenter",(function(){e.isEnabled&&i.focus()})),this.listenTo(o,"dragleave",(function(){e._removeDropMarkerDelayed()})),this.listenTo(o,"dragging",(function(n,r){if(e.isEnabled){e._removeDropMarkerDelayed.cancel();var i=uv(t,r.targetRanges,r.target);e._draggedRange||(r.dataTransfer.dropEffect="copy"),Do.isGecko||("copy"==r.dataTransfer.effectAllowed?r.dataTransfer.dropEffect="copy":["all","copyMove"].includes(r.dataTransfer.effectAllowed)&&(r.dataTransfer.dropEffect="move")),i&&e._updateDropMarkerThrottled(i)}else r.dataTransfer.dropEffect="none"}),{priority:"low"})}},{key:"_setupClipboardInputIntegration",value:function(){var e=this,t=this.editor,n=t.editing.view.document;this.listenTo(n,"clipboardInput",(function(n,r){if("drop"==r.method){var i=uv(t,r.targetRanges,r.target);if(e._removeDropMarker(),!i)return e._finalizeDragging(!1),void n.stop();if(e._draggedRange&&e._draggingUid!=r.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(e._draggedRange.detach(),e._draggedRange=null,e._draggingUid=""),"move"==cv(r.dataTransfer)&&e._draggedRange&&e._draggedRange.containsRange(i,!0))return e._finalizeDragging(!1),void n.stop();r.targetRanges=[t.editing.mapper.toViewRange(i)]}}),{priority:"high"})}},{key:"_setupContentInsertionIntegration",value:function(){var e=this,t=this.editor.plugins.get(fh);t.on("contentInsertion",(function(t,n){if(e.isEnabled&&"drop"===n.method){var r=n.targetRanges.map((function(t){return e.editor.editing.mapper.toModelRange(t)}));e.editor.model.change((function(e){return e.setSelection(r)}))}}),{priority:"high"}),t.on("contentInsertion",(function(t,n){if(e.isEnabled&&"drop"===n.method){var r="move"==cv(n.dataTransfer),i=!n.resultRange||!n.resultRange.isCollapsed;e._finalizeDragging(i&&r)}}),{priority:"lowest"})}},{key:"_setupDraggableAttributeHandling",value:function(){var e=this,t=this.editor,n=t.editing.view,r=n.document;this.listenTo(r,"mousedown",(function(i,o){if(!Do.isAndroid&&o){e._clearDraggableAttributesDelayed.cancel();var a=fv(o.target);if(Do.isBlink&&!t.isReadOnly&&!a&&!r.selection.isCollapsed){var s=r.selection.getSelectedElement();s&&Oh(s)||(a=r.selection.editableElement)}a&&(n.change((function(e){e.setAttribute("draggable","true",a)})),e._draggableElement=t.editing.mapper.toModelElement(a))}})),this.listenTo(r,"mouseup",(function(){Do.isAndroid||e._clearDraggableAttributesDelayed()}))}},{key:"_clearDraggableAttributes",value:function(){var e=this,t=this.editor.editing;t.view.change((function(n){e._draggableElement&&"$graveyard"!=e._draggableElement.root.rootName&&n.removeAttribute("draggable",t.mapper.toViewElement(e._draggableElement)),e._draggableElement=null}))}},{key:"_setupDropMarker",value:function(){var e=this.editor;e.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),e.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:function(t,n){var r=n.writer;if(e.model.schema.checkChild(t.markerRange.start,"$text"))return r.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(e){var t=this.toDomElement(e);return t.append("\u2060",e.createElement("span"),"\u2060"),t}))}})}},{key:"_updateDropMarker",value:function(e){var t=this.editor,n=t.model.markers;t.model.change((function(t){n.has("drop-target")?n.get("drop-target").getRange().isEqual(e)||t.updateMarker("drop-target",{range:e}):t.addMarker("drop-target",{range:e,usingOperation:!1,affectsData:!1})}))}},{key:"_removeDropMarker",value:function(){var e=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),e.markers.has("drop-target")&&e.change((function(e){e.removeMarker("drop-target")}))}},{key:"_finalizeDragging",value:function(e){var t=this.editor,n=t.model;this._removeDropMarker(),this._clearDraggableAttributes(),t.plugins.has("WidgetToolbarRepository")&&t.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop"),this._draggingUid="",this._draggedRange&&(e&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null)}}],[{key:"pluginName",get:function(){return"DragDrop"}},{key:"requires",get:function(){return[fh,rv]}}]),n}(ce);function uv(e,t,n){var r=e.model,i=e.editing.mapper,o=null,a=t?t[0].start:null;if(n.is("uiElement")&&(n=n.parent),o=function(e,t){var n=e.model,r=e.editing.mapper;if(Oh(t))return n.createRangeOn(r.toModelElement(t));if(!t.is("editableElement")){var i=t.findAncestor((function(e){return Oh(e)||e.is("editableElement")}));if(Oh(i))return n.createRangeOn(r.toModelElement(i))}return null}(e,n),o)return o;var s=function(e,t){var n=e.editing.mapper,r=e.editing.view,i=n.toModelElement(t);if(i)return i;var o=r.createPositionBefore(t),a=n.findMappedViewAncestor(o);return n.toModelElement(a)}(e,n),l=a?i.toModelPosition(a):null;return l?(o=function(e,t,n){var r=e.model;if(!r.schema.checkChild(n,"$block"))return null;var i=r.createPositionAt(n,0),o=t.path.slice(0,i.path.length),a=r.createPositionFromPath(t.root,o).nodeAfter;return a&&r.schema.isObject(a)?r.createRangeOn(a):null}(e,l,s),o||(o=r.schema.getNearestSelectionRange(l,Do.isGecko?"forward":"backward"))||function(e,t){for(var n=e.model,r=t;r;){if(n.schema.isObject(r))return n.createRangeOn(r);r=r.parent}return null}(e,l.parent)):function(e,t){var n=e.model,r=n.schema,i=n.createPositionAt(t,0);return r.getNearestSelectionRange(i,"forward")}(e,s)}function cv(e){return Do.isGecko?e.dropEffect:["all","copyMove"].includes(e.effectAllowed)?"move":"copy"}function dv(e,t){var n;function r(){for(var i=arguments.length,o=new Array(i),a=0;a1)return!1;var n=e.getChild(0);return!t.isObject(n)&&0==Array.from(n.getAttributeKeys()).length}(n.content,t.schema))&&t.change((function(e){var r=Array.from(i.getAttributes()).filter((function(e){var n=p(e,1)[0];return t.schema.getAttributeProperties(n).isFormatting}));i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0}),r.push.apply(r,v(i.getAttributes()));var o,a=e.createRangeIn(n.content),s=h(a.getItems());try{for(s.s();!(o=s.n()).done;){var l=o.value;l.is("$textProxy")&&e.setAttributes(r,l)}}catch(u){s.e(u)}finally{s.f()}}))}))}}],[{key:"pluginName",get:function(){return"PastePlainText"}},{key:"requires",get:function(){return[fh]}}]),n}(ce),hv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[fh,lv,pv]}}]),n}(ce),vv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document;t.change((function(r){!function(e,t,n){var r=n.isCollapsed,i=n.getFirstRange(),o=i.start.parent,a=i.end.parent,s=o==a;if(r){var l=ph(e.schema,n.getAttributes());mv(e,t,i.end),t.removeSelectionAttribute(n.getAttributeKeys()),t.setSelectionAttribute(l)}else{var u=!(i.start.isAtStart&&i.end.isAtEnd);e.deleteContent(n,{leaveUnmerged:u}),s?mv(e,t,n.focus):u&&t.setSelection(a,0)}}(t,r,n.selection),e.fire("afterExecute",{writer:r})}))}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.isEnabled=function(e,t){if(t.rangeCount>1)return!1;var n=t.anchor;if(!n||!e.checkChild(n,"softBreak"))return!1;var r=t.getFirstRange(),i=r.start.parent,o=r.end.parent;return!gv(i,e)&&!gv(o,e)||i===o}(e.schema,t.selection)}}]),n}(fe);function mv(e,t,n){var r=t.createElement("softBreak");e.insertContent(r,n),t.setSelection(r,"after")}function gv(e,t){return!e.is("rootElement")&&(t.isLimit(e)||gv(e.parent,t))}var yv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.conversion,r=e.editing.view,i=r.document;t.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(e,t){return t.writer.createEmptyElement("br")}}),r.addObserver(gh),e.commands.add("shiftEnter",new vv(e)),this.listenTo(i,"enter",(function(t,n){i.isComposing||n.preventDefault(),n.isSoft&&(e.execute("shiftEnter"),r.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(ce),bv=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).affectsData=!1,r}return b(n,[{key:"execute",value:function(){var e=this.editor.model,t=e.document.selection,n=e.schema.getLimitElement(t);if(t.containsEntireContent(n)||!kv(e.schema,n))do{if(!(n=n.parent))return}while(!kv(e.schema,n));e.change((function(e){e.setSelection(n,"in")}))}}]),n}(fe);function kv(e,t){return e.isLimit(t)&&(e.checkChild(t,"$text")||e.checkChild(t,"paragraph"))}var wv=zo("Ctrl+A"),_v=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.editing.view.document;e.commands.add("selectAll",new bv(e)),this.listenTo(t,"keydown",(function(t,n){Fo(n)===wv&&(e.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(ce),Cv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor;t.ui.componentFactory.add("selectAll",(function(n){var r=t.commands.get("selectAll"),i=new Rf(n),o=n.t;return i.set({label:o("Select all"),icon:'',keystroke:"Ctrl+A",tooltip:!0}),i.bind("isEnabled").to(r,"isEnabled"),e.listenTo(i,"execute",(function(){t.execute("selectAll"),t.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(ce),xv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[_v,Cv]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(ce),Av=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e))._buffer=new bh(e.model,r),i}return b(n,[{key:"buffer",get:function(){return this._buffer}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=t.text||"",o=i.length,a=r.selection;t.selection?a=t.selection:t.range&&(a=n.createSelection(t.range));var s=t.resultRange;n.enqueueChange(this._buffer.batch,(function(t){e._buffer.lock(),n.deleteContent(a),i&&n.insertContent(t.createText(i,r.selection.getAttributes()),a),s?t.setSelection(s):a.is("documentSelection")||t.setSelection(a),e._buffer.unlock(),e._buffer.input(o)}))}}]),n}(fe),Ev=["insertText","insertReplacementText"],Sv=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),r=t.call(this,e),Do.isAndroid&&Ev.push("insertCompositionText");var i=e.document;return i.on("beforeinput",(function(t,n){if(r.isEnabled){var o=n.data,a=n.targetRanges,s=n.inputType,l=n.domEvent;if(Ev.includes(s)){var u=new S(i,"insertText");i.fire(u,new Ja(e,l,{text:o,selection:e.createSelection(a)})),u.stop.called&&t.stop()}}})),i.on("compositionend",(function(t,n){var o=n.data,a=n.domEvent;r.isEnabled&&!Do.isAndroid&&o&&i.fire("insertText",new Ja(e,a,{text:o,selection:i.selection}))}),{priority:"lowest"}),r}return b(n,[{key:"observe",value:function(){}}]),n}(Ka),Zv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model,n=e.editing.view,r=t.document.selection;n.addObserver(Sv);var i=new Av(e,e.config.get("typing.undoStep")||20);e.commands.add("insertText",i),e.commands.add("input",i),this.listenTo(n.document,"insertText",(function(r,i){n.document.isComposing||i.preventDefault();var o=i.text,a=i.selection,s=i.resultRange,l=Array.from(a.getRanges()).map((function(t){return e.editing.mapper.toModelRange(t)})),u=o;if(Do.isAndroid){var c=Array.from(l[0].getItems()).reduce((function(e,t){return e+(t.is("$textProxy")?t.data:"")}),"");c&&(c.length<=u.length?u.startsWith(c)&&(u=u.substring(c.length),l[0].start=l[0].start.getShiftedBy(c.length)):c.startsWith(u)&&(l[0].start=l[0].start.getShiftedBy(u.length),u=""))}var d={text:u,selection:t.createSelection(l)};s&&(d.resultRange=e.editing.mapper.toModelRange(s)),e.execute("insertText",d)})),Do.isAndroid?this.listenTo(n.document,"keydown",(function(e,o){!r.isCollapsed&&229==o.keyCode&&n.document.isComposing&&Mv(t,i)})):this.listenTo(n.document,"compositionstart",(function(){r.isCollapsed||Mv(t,i)}))}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(ce);function Mv(e,t){if(t.isEnabled){var n=t.buffer;n.lock(),e.enqueueChange(n.batch,(function(){e.deleteContent(e.document.selection)})),n.unlock()}}var Tv=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[Zv,Sh]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(ce);function Iv(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return r.is("$text")||r.is("$textProxy")?e+r.data:(n=t.createPositionAfter(r),"")}),""),range:t.createRange(n,e.end)}}var Pv=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this)).model=e,i.testCallback=r,i._hasMatch=!1,i.set("isEnabled",!0),i.on("change:isEnabled",(function(){i.isEnabled?i._startListening():(i.stopListening(e.document.selection),i.stopListening(e.document))})),i._startListening(),i}return b(n,[{key:"hasMatch",get:function(){return this._hasMatch}},{key:"_startListening",value:function(){var e=this,t=this.model.document;this.listenTo(t.selection,"change:range",(function(n,r){r.directChange&&(t.selection.isCollapsed?e._evaluateTextBeforeSelection("selection"):e.hasMatch&&(e.fire("unmatched"),e._hasMatch=!1))})),this.listenTo(t,"change:data",(function(t,n){!n.isUndo&&n.isLocal&&e._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,r=n.document.selection,i=Iv(n.createRange(n.createPositionAt(r.focus.parent,0),r.focus),n),o=i.text,a=i.range,s=this.testCallback(o);if(!s&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!s,s){var l=Object.assign(t,{text:o,range:a});"object"==typeof s&&Object.assign(l,s),this.fire("matched:".concat(e),l)}}}]),n}(ie),Dv=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).attributes=new Set,r._overrideUid=null,r}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model,r=t.editing.view,i=t.locale,o=n.document.selection;this.listenTo(r.document,"arrowKey",(function(t,n){if(o.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var r=n.keyCode==jo.arrowright,a=n.keyCode==jo.arrowleft;if(r||a){var s=i.contentLanguageDirection;!0===("ltr"===s&&r||"rtl"===s&&a?e._handleForwardMovement(n):e._handleBackwardMovement(n))&&t.stop()}}}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(o,"change:range",(function(t,n){e._isNextGravityRestorationSkipped?e._isNextGravityRestorationSkipped=!1:e._isGravityOverridden&&(!n.directChange&&jv(o.getFirstPosition(),e.attributes)||e._restoreGravity())}))}},{key:"registerAttribute",value:function(e){this.attributes.add(e)}},{key:"_handleForwardMovement",value:function(e){var t=this.attributes,n=this.editor.model.document.selection,r=n.getFirstPosition();return!this._isGravityOverridden&&(!r.isAtStart||!Ov(n,t))&&!!jv(r,t)&&(Rv(e),this._overrideGravity(),!0)}},{key:"_handleBackwardMovement",value:function(e){var t=this.attributes,n=this.editor.model,r=n.document.selection,i=r.getFirstPosition();return this._isGravityOverridden?(Rv(e),this._restoreGravity(),Nv(n,t,i),!0):i.isAtStart?!!Ov(r,t)&&(Rv(e),Nv(n,t,i),!0):!!function(e,t){return jv(e.getShiftedBy(-1),t)}(i,t)&&(i.isAtEnd&&!Ov(r,t)&&jv(i,t)?(Rv(e),Nv(n,t,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1))}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(e){return e.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var e=this;this.editor.model.change((function(t){t.restoreSelectionGravity(e._overrideUid),e._overrideUid=null}))}}],[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),n}(ce);function Ov(e,t){var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(e.hasAttribute(i))return!0}}catch(o){r.e(o)}finally{r.f()}return!1}function Nv(e,t,n){var r=n.nodeBefore;e.change((function(e){r?e.setSelectionAttribute(r.getAttributes()):e.removeSelectionAttribute(t)}))}function Rv(e){e.preventDefault()}function jv(e,t){var n,r=e.nodeBefore,i=e.nodeAfter,o=h(t);try{for(o.s();!(n=o.n()).done;){var a=n.value,s=r?r.getAttribute(a):void 0;if((i?i.getAttribute(a):void 0)!==s)return!0}}catch(l){o.e(l)}finally{o.f()}return!1}var Lv=/[\\^$.*+?()[\]{}|]/g,Fv=RegExp(Lv.source),zv=function(e){return(e=ki(e))&&Fv.test(e)?e.replace(Lv,"\\$&"):e},Bv={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:Gv('"'),to:[null,"\u201c",null,"\u201d"]},quotesSecondary:{from:Gv("'"),to:[null,"\u2018",null,"\u2019"]},quotesPrimaryEnGb:{from:Gv("'"),to:[null,"\u2018",null,"\u2019"]},quotesSecondaryEnGb:{from:Gv('"'),to:[null,"\u201c",null,"\u201d"]},quotesPrimaryPl:{from:Gv('"'),to:[null,"\u201e",null,"\u201d"]},quotesSecondaryPl:{from:Gv("'"),to:[null,"\u201a",null,"\u2019"]}},Vv={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},Uv=["symbols","mathematical","typography","quotes"];function Hv(e){return"string"==typeof e?new RegExp("(".concat(zv(e),")$")):e}function qv(e){return"string"==typeof e?function(){return[e]}:e instanceof Array?function(){return e}:e}function Wv(e){return(e.textNode?e.textNode:e.nodeAfter).getAttributes()}function Gv(e){return new RegExp("(^|\\s)(".concat(e,")([^").concat(e,"]*)(").concat(e,")$"))}function $v(e,t,n,r){return r.createRange(Kv(e,t,n,!0,r),Kv(e,t,n,!1,r))}function Kv(e,t,n,r,i){for(var o=e.textNode||(r?e.nodeBefore:e.nodeAfter),a=null;o&&o.getAttribute(t)==n;)a=o,o=r?o.previousSibling:o.nextSibling;return a?i.createPositionAt(a,r?"before":"after"):e}var Yv=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._stack=[],r._createdBatches=new WeakSet,r.refresh(),r.listenTo(e.data,"set",(function(e,t){t[1]=a({},t[1]);var n=t[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),r.listenTo(e.data,"set",(function(e,t){t[1].batchType.isUndoable||r.clearStack()})),r}return b(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(e){var t=this.editor.model.document.selection,n={ranges:t.hasOwnRange?Array.from(t.getRanges()):[],isBackward:t.isBackward};this._stack.push({batch:e,selection:n}),this.refresh()}},{key:"clearStack",value:function(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(e,t,n){var r,i=this.editor.model,o=i.document,a=[],s=e.map((function(e){return e.getTransformedByOperations(n)})),l=s.flat(),u=h(s);try{for(u.s();!(r=u.n()).done;){var c=r.value.filter((function(e){return e.root!=o.graveyard})).filter((function(e){return!Qv(e,l)}));c.length&&(Jv(c),a.push(c[0]))}}catch(d){u.e(d)}finally{u.f()}a.length&&i.change((function(e){e.setSelection(a,{backward:t})}))}},{key:"_undo",value:function(e,t){var n=this.editor.model,r=n.document;this._createdBatches.add(t);var i=e.operations.slice().filter((function(e){return e.isDocumentOperation}));i.reverse();var o,a=h(i);try{for(a.s();!(o=a.n()).done;){var s,l=o.value,u=l.baseVersion+1,c=Array.from(r.history.getOperations(u)),d=ud([l.getReversed()],c,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA,f=h(d);try{for(f.s();!(s=f.n()).done;){var p=s.value;t.addOperation(p),n.applyOperation(p),r.history.setOperationAsUndone(l,p)}}catch(v){f.e(v)}finally{f.f()}}}catch(v){a.e(v)}finally{a.f()}}}]),n}(fe);function Jv(e){e.sort((function(e,t){return e.start.isBefore(t.start)?-1:1}));for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:null,n=t?this._stack.findIndex((function(e){return e.batch==t})):this._stack.length-1,r=this._stack.splice(n,1)[0],i=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(i,(function(){e._undo(r.batch,i);var t=e.editor.model.document.history.getOperations(r.batch.baseVersion);e._restoreSelection(r.selection.ranges,r.selection.isBackward,t),e.fire("revert",r.batch,i)})),this.refresh()}}]),n}(Yv),em=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"execute",value:function(){var e=this,t=this._stack.pop(),n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,(function(){var r=t.batch.operations[t.batch.operations.length-1].baseVersion+1,i=e.editor.model.document.history.getOperations(r);e._restoreSelection(t.selection.ranges,t.selection.isBackward,i),e._undo(t.batch,n)})),this.refresh()}}]),n}(Yv),tm=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._batchRegistry=new WeakSet,r}return b(n,[{key:"init",value:function(){var e=this,t=this.editor;this._undoCommand=new Xv(t),this._redoCommand=new em(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",(function(t,n){var r=n[0];if(r.isDocumentOperation){var i=r.batch,o=e._redoCommand._createdBatches.has(i),a=e._undoCommand._createdBatches.has(i);e._batchRegistry.has(i)||(e._batchRegistry.add(i),i.isUndoable&&(o?e._undoCommand.addBatch(i):a||(e._undoCommand.addBatch(i),e._redoCommand.clearStack())))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(t,n,r){e._redoCommand.addBatch(r)})),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo")}}],[{key:"pluginName",get:function(){return"UndoEditing"}}]),n}(ce),nm='',rm='',im=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.locale,n=e.t,r="ltr"==t.uiLanguageDirection?nm:rm,i="ltr"==t.uiLanguageDirection?rm:nm;this._addButton("undo",n("Undo"),"CTRL+Z",r),this._addButton("redo",n("Redo"),"CTRL+Y",i)}},{key:"_addButton",value:function(e,t,n,r){var i=this,o=this.editor;o.ui.componentFactory.add(e,(function(a){var s=o.commands.get(e),l=new Rf(a);return l.set({label:t,icon:r,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),i.listenTo(l,"execute",(function(){o.execute(e),o.editing.view.focus()})),l}))}}],[{key:"pluginName",get:function(){return"UndoUI"}}]),n}(ce),om=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[tm,im]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(ce),am=function(e){m(n,e);var t=g(n);function n(){var e;k(this,n),e=t.call(this);var r=new window.FileReader;return e._reader=r,e._data=void 0,e.set("loaded",0),r.onprogress=function(t){e.loaded=t.loaded},e}return b(n,[{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}},{key:"read",value:function(e){var t=this,n=this._reader;return this.total=e.size,new Promise((function(r,i){n.onload=function(){var e=n.result;t._data=e,r(e)},n.onerror=function(){i("error")},n.onabort=function(){i("aborted")},t._reader.readAsDataURL(e)}))}},{key:"abort",value:function(){this._reader.abort()}}]),n}(ie),sm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this;this.loaders=new zr,this.loaders.on("change",(function(){return e._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(e,t){return t?e/t*100:0}))}},{key:"getLoader",value:function(e){return this._loadersMap.get(e)||null}},{key:"createLoader",value:function(e){var t=this;if(!this.createUploadAdapter)return D("filerepository-no-upload-adapter"),null;var n=new lm(Promise.resolve(e),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(e,n),e instanceof Promise&&n.file.then((function(e){t._loadersMap.set(e,n)})).catch((function(){})),n.on("change:uploaded",(function(){var e,n=0,r=h(t.loaders);try{for(r.s();!(e=r.n()).done;)n+=e.value.uploaded}catch(i){r.e(i)}finally{r.f()}t.uploaded=n})),n.on("change:uploadTotal",(function(){var e,n=0,r=h(t.loaders);try{for(r.s();!(e=r.n()).done;){var i=e.value;i.uploadTotal&&(n+=i.uploadTotal)}}catch(o){r.e(o)}finally{r.f()}t.uploadTotal=n})),n}},{key:"destroyLoader",value:function(e){var t=this,n=e instanceof lm?e:this.getLoader(e);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(e,r){e===n&&t._loadersMap.delete(r)}))}},{key:"_updatePendingAction",value:function(){var e=this.editor.plugins.get(Af);if(this.loaders.length){if(!this._pendingAction){var t=this.editor.t,n=function(e){return"".concat(t("Upload in progress")," ").concat(parseInt(e),"%.")};this._pendingAction=e.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else e.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Af]}}]),n}(ce),lm=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this)).id=M(),i._filePromiseWrapper=i._createFilePromiseWrapper(e),i._adapter=r(d(i)),i._reader=new am,i.set("status","idle"),i.set("uploaded",0),i.set("uploadTotal",null),i.bind("uploadedPercent").to(d(i),"uploaded",d(i),"uploadTotal",(function(e,t){return t?e/t*100:0})),i.set("uploadResponse",null),i}return b(n,[{key:"file",get:function(){var e=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(t){return e._filePromiseWrapper?t:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}},{key:"read",value:function(){var e=this;if("idle"!=this.status)throw new P("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(t){return e._reader.read(t)})).then((function(t){if("reading"!==e.status)throw e.status;return e.status="idle",t})).catch((function(t){if("aborted"===t)throw e.status="aborted","aborted";throw e.status="error",e._reader.error?e._reader.error:t}))}},{key:"upload",value:function(){var e=this;if("idle"!=this.status)throw new P("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return e._adapter.upload()})).then((function(t){return e.uploadResponse=t,e.status="idle",t})).catch((function(t){if("aborted"===e.status)throw"aborted";throw e.status="error",t}))}},{key:"abort",value:function(){var e=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==e?this._reader.abort():"uploading"==e&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch((function(){})),this._filePromiseWrapper.rejecter("aborted")),this._destroy()}},{key:"_destroy",value:function(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(e){var t={};return t.promise=new Promise((function(n,r){t.rejecter=r,t.isFulfilled=!1,e.then((function(e){t.isFulfilled=!0,n(e)})).catch((function(e){t.isFulfilled=!0,r(e)}))})),t}}]),n}(ie),um=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).buttonView=new Rf(e),r._fileInputView=new cm(e),r._fileInputView.bind("acceptedType").to(d(r)),r._fileInputView.bind("allowMultipleFiles").to(d(r)),r._fileInputView.delegate("done").to(d(r)),r.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[r.buttonView,r._fileInputView]}),r.buttonView.on("execute",(function(){r._fileInputView.open()})),r}return b(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(tf),cm=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),(r=t.call(this,e)).set("acceptedType",void 0),r.set("allowMultipleFiles",!1);var i=r.bindTemplate;return r.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:i.to("acceptedType"),multiple:i.to("allowMultipleFiles")},on:{change:i.to((function(){r.element&&r.element.files&&r.element.files.length&&r.fire("done",r.element.files),r.element.value=""}))}}),r}return b(n,[{key:"open",value:function(){this.element.click()}}]),n}(tf),dm="ckCsrfToken",fm="abcdefghijklmnopqrstuvwxyz0123456789";function pm(){var e,t,n=function(e){e=e.toLowerCase();var t,n=document.cookie.split(";"),r=h(n);try{for(r.s();!(t=r.n()).done;){var i=t.value.split("=");if(decodeURIComponent(i[0].trim().toLowerCase())===e)return decodeURIComponent(i[1])}}catch(o){r.e(o)}finally{r.f()}return null}(dm);return n&&40==n.length||(n=function(e){var t="",n=new Uint8Array(40);window.crypto.getRandomValues(n);for(var r=0;r.5?i.toUpperCase():i}return t}(),e=dm,t=n,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(t)+";path=/"),n}var hm=function(){function e(t,n,r){k(this,e),this.loader=t,this.url=n,this.t=r}return b(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return new Promise((function(n,r){e._initRequest(),e._initListeners(n,r,t),e._sendRequest(t)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var e=this.xhr=new XMLHttpRequest;e.open("POST",this.url,!0),e.responseType="json"}},{key:"_initListeners",value:function(e,t,n){var r=this.xhr,i=this.loader,o=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");r.addEventListener("error",(function(){return t(o)})),r.addEventListener("abort",(function(){return t()})),r.addEventListener("load",(function(){var n=r.response;if(!n||!n.uploaded)return t(n&&n.error&&n.error.message?n.error.message:o);e({default:n.url})})),r.upload&&r.upload.addEventListener("progress",(function(e){e.lengthComputable&&(i.uploadTotal=e.total,i.uploaded=e.loaded)}))}},{key:"_sendRequest",value:function(e){var t=new FormData;t.append("upload",e),t.append("ckCsrfToken",pm()),this.xhr.send(t)}}]),e}();function vm(e,t,n,r){var i,o=null;"function"==typeof r?i=r:(o=e.commands.get(r),i=function(){e.execute(r)}),e.model.document.on("change:data",(function(a,s){if((!o||o.isEnabled)&&t.isEnabled){var l=$s(e.model.document.selection.getRanges());if(l.isCollapsed&&!s.isUndo&&s.isLocal){var u=Array.from(e.model.document.differ.getChanges()),c=u[0];if(1==u.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var d=c.position.parent;if(!d.is("element","codeBlock")&&(!d.is("element","listItem")||"function"==typeof r||["numberedList","bulletedList","todoList"].includes(r))&&(!o||!0!==o.value)){var f=d.getChild(0),p=e.model.createRangeOn(f);if(p.containsRange(l)||l.end.isEqual(p.end)){var h=n.exec(f.data.substr(0,l.end.offset));h&&e.model.enqueueChange((function(t){var n=t.createPositionAt(d,0),r=t.createPositionAt(d,h[0].length),o=new Vl(n,r);if(!1!==i({match:h})){t.remove(o);var a=e.model.document.selection.getFirstRange(),s=t.createRangeIn(d);!d.isEmpty||s.isEqual(a)||s.containsRange(a,!0)||t.remove(d)}o.detach(),e.model.enqueueChange((function(){e.plugins.get("Delete").requestUndoOnBackspace()}))}))}}}}}}))}function mm(e,t,n,r){var i,o;n instanceof RegExp?i=n:o=n,o=o||function(e){for(var t,n=[],r=[];null!==(t=i.exec(e))&&!(t&&t.length<4);){var o=t,a=o.index,s=o[1],l=o[2],u=o[3],c=s+l+u,d=[a+=t[0].length-c.length,a+s.length],f=[a+s.length+l.length,a+s.length+l.length+u.length];n.push(d),n.push(f),r.push([a+s.length,a+s.length+l.length])}return{remove:n,format:r}},e.model.document.on("change:data",(function(n,i){if(!i.isUndo&&i.isLocal&&t.isEnabled){var a=e.model,s=a.document.selection;if(s.isCollapsed){var l=Array.from(a.document.differ.getChanges()),u=l[0];if(1==l.length&&"insert"===u.type&&"$text"==u.name&&1==u.length){var c=s.focus,d=c.parent,f=function(e,t){var n=e.start;return{text:Array.from(e.getItems()).reduce((function(e,r){return!r.is("$text")&&!r.is("$textProxy")||r.getAttribute("code")?(n=t.createPositionAfter(r),""):e+r.data}),""),range:t.createRange(n,e.end)}}(a.createRange(a.createPositionAt(d,0),c),a),p=f.text,v=f.range,m=o(p),g=gm(v.start,m.format,a),y=gm(v.start,m.remove,a);g.length&&y.length&&a.enqueueChange((function(t){if(!1!==r(t,g)){var n,i=h(y.reverse());try{for(i.s();!(n=i.n()).done;){var o=n.value;t.remove(o)}}catch(s){i.e(s)}finally{i.f()}a.enqueueChange((function(){e.plugins.get("Delete").requestUndoOnBackspace()}))}}))}}}}))}function gm(e,t,n){return t.filter((function(e){return void 0!==e[0]&&void 0!==e[1]})).map((function(t){return n.createRange(e.getShiftedBy(t[0]),e.getShiftedBy(t[1]))}))}function ym(e,t){return function(n,r){if(!e.commands.get(t).isEnabled)return!1;var i,o=e.model.schema.getValidRanges(r,t),a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;n.setAttribute(t,!0,s)}}catch(l){a.e(l)}finally{a.f()}n.removeSelectionAttribute(t)}}var bm=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e)).attributeKey=r,i}return b(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=e.schema.checkAttributeInSelection(t.selection,this.attributeKey)}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document.selection,i=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(r.isCollapsed)i?t.setSelectionAttribute(e.attributeKey,!0):t.removeSelectionAttribute(e.attributeKey);else{var o,a=n.schema.getValidRanges(r.getRanges(),e.attributeKey),s=h(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;i?t.setAttribute(e.attributeKey,i,l):t.removeAttribute(e.attributeKey,l)}}catch(u){s.e(u)}finally{s.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var e=this.editor.model,t=e.schema,n=e.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var r,i=h(n.getRanges());try{for(i.s();!(r=i.n()).done;){var o,a=r.value,s=h(a.getItems());try{for(s.s();!(o=s.n()).done;){var l=o.value;if(t.checkAttribute(l,this.attributeKey))return l.hasAttribute(this.attributeKey)}}catch(u){s.e(u)}finally{s.f()}}}catch(u){i.e(u)}finally{i.f()}return!1}}]),n}(fe),km="bold",wm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:km}),e.model.schema.setAttributeProperties(km,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:km,view:"strong",upcastAlso:["b",function(e){var t=e.getStyle("font-weight");return t?"bold"==t||Number(t)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),e.commands.add(km,new bm(e,km)),e.keystrokes.set("CTRL+B",km)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(ce),_m="bold",Cm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(_m,(function(r){var i=t.commands.get(_m),o=new Rf(r);return o.set({label:n("Bold"),icon:Ef.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(_m),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"BoldUI"}}]),n}(ce),xm="italic",Am=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:xm}),e.model.schema.setAttributeProperties(xm,{isFormatting:!0,copyOnEnter:!0}),e.conversion.attributeToElement({model:xm,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),e.commands.add(xm,new bm(e,xm)),e.keystrokes.set("CTRL+I",xm)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(ce),Em="italic",Sm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add(Em,(function(r){var i=t.commands.get(Em),o=new Rf(r);return o.set({label:n("Italic"),icon:'',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),o.bind("isOn","isEnabled").to(i,"value","isEnabled"),e.listenTo(o,"execute",(function(){t.execute(Em),t.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"ItalicUI"}}]),n}(ce),Zm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.schema,i=n.document.selection,o=Array.from(i.getSelectedBlocks()),a=void 0===t.forceValue?!this.value:t.forceValue;n.change((function(t){if(a){var n=o.filter((function(e){return Mm(e)||Im(r,e)}));e._applyQuote(t,n)}else e._removeQuote(t,o.filter(Mm))}))}},{key:"_getValue",value:function(){var e=$s(this.editor.model.document.selection.getSelectedBlocks());return!(!e||!Mm(e))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var e=this.editor.model.document.selection,t=this.editor.model.schema,n=$s(e.getSelectedBlocks());return!!n&&Im(t,n)}},{key:"_removeQuote",value:function(e,t){Tm(e,t).reverse().forEach((function(t){if(t.start.isAtStart&&t.end.isAtEnd)e.unwrap(t.start.parent);else if(t.start.isAtStart){var n=e.createPositionBefore(t.start.parent);e.move(t,n)}else{t.end.isAtEnd||e.split(t.end);var r=e.createPositionAfter(t.end.parent);e.move(t,r)}}))}},{key:"_applyQuote",value:function(e,t){var n=[];Tm(e,t).reverse().forEach((function(t){var r=Mm(t.start);r||(r=e.createElement("blockQuote"),e.wrap(t,r)),n.push(r)})),n.reverse().reduce((function(t,n){return t.nextSibling==n?(e.merge(e.createPositionAfter(t)),t):n}))}}]),n}(fe);function Mm(e){return"blockQuote"==e.parent.name?e.parent:null}function Tm(e,t){for(var n,r=0,i=[];r',tooltip:!0}),i.bind("isOn","isEnabled").to(r,"value","isEnabled"),i.on("execute",(function(){e.execute("ckbox")})),i}))}}}],[{key:"pluginName",get:function(){return"CKBoxUI"}}]),n}(ce);function jm(e){var t=e.token,n=e.id,r=e.origin,i=e.width,o=e.extension,a=Lm(t),s=function(e){for(var t=[10*e/100,80],n=Math.floor(Math.max.apply(Math,t)),r=[Math.min(e,4e3)],i=r[0];i-n>=n;)i-=n,r.unshift(i);return r}(i),l=function(e){return"bmp"===e||"tiff"===e||"jpg"===e?"jpeg":e}(o);return{imageFallbackUrl:Fm({environmentId:a,id:n,origin:r,width:i,extension:l}),imageSources:[{srcset:s.map((function(e){return"".concat(Fm({environmentId:a,id:n,origin:r,width:e,extension:"webp"})," ").concat(e,"w")})).join(","),sizes:"(max-width: ".concat(i,"px) 100vw, ").concat(i,"px"),type:"image/webp"}]}}function Lm(e){var t=e.value.split("."),n=p(t,2)[1];return JSON.parse(atob(n)).aud}function Fm(e){var t=e.environmentId,n=e.id,r=e.origin,i=e.width,o=e.extension;return new URL("".concat(t,"/assets/").concat(n,"/images/").concat(i,".").concat(o),r).toString()}var zm=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._chosenAssets=new Set,r._wrapper=null,r._initListeners(),r}return b(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){this.fire("ckbox:open")}},{key:"_getValue",value:function(){return null!==this._wrapper}},{key:"_checkEnabled",value:function(){var e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");return!(!e.isEnabled&&!t.isEnabled)}},{key:"_prepareOptions",value:function(){var e=this,t=this.editor.config.get("ckbox");return{theme:t.theme,language:t.language,tokenUrl:t.tokenUrl,serviceOrigin:t.serviceOrigin,assetsOrigin:t.assetsOrigin,dialog:{onClose:function(){return e.fire("ckbox:close")}},assets:{onChoose:function(t){return e.fire("ckbox:choose",t)}}}}},{key:"_initListeners",value:function(){var e=this,t=this.editor,n=t.model,r=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",(function(){e.refresh()}),{priority:"low"}),this.on("ckbox:open",(function(){e.isEnabled&&!e.value&&(e._wrapper=qs(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(e._wrapper),window.CKBox.mount(e._wrapper,e._prepareOptions()))})),this.on("ckbox:close",(function(){e.value&&(e._wrapper.remove(),e._wrapper=null)})),this.on("ckbox:choose",(function(i,o){if(e.isEnabled){var a=t.commands.get("insertImage"),s=t.commands.get("link"),l=t.plugins.get("CKBoxEditing"),u=function(e){var t=e.assets,n=e.origin,r=e.token,i=e.isImageAllowed,o=e.isLinkAllowed;return t.map((function(e){return{id:e.data.id,type:Vm(e)?"image":"link",attributes:Bm(e,r,n)}})).filter((function(e){return"image"===e.type?i:o}))}({assets:o,origin:t.config.get("ckbox.assetsOrigin"),token:l.getToken(),isImageAllowed:a.isEnabled,isLinkAllowed:s.isEnabled});0!==u.length&&n.change((function(t){var n,i=h(u);try{var o=function(){var i=n.value,o=i===u[u.length-1];e._insertAsset(i,o,t),r&&(setTimeout((function(){return e._chosenAssets.delete(i)}),1e3),e._chosenAssets.add(i))};for(i.s();!(n=i.n()).done;)o()}catch(a){i.e(a)}finally{i.f()}}))}})),this.listenTo(t,"destroy",(function(){e.fire("ckbox:close"),e._chosenAssets.clear()}))}},{key:"_insertAsset",value:function(e,t,n){var r=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===e.type?this._insertImage(e):this._insertLink(e,n),t||n.setSelection(r.getLastPosition())}},{key:"_insertImage",value:function(e){var t=this.editor,n=e.attributes,r=n.imageFallbackUrl,i=n.imageSources,o=n.imageTextAlternative;t.execute("insertImage",{source:{src:r,sources:i,alt:o}})}},{key:"_insertLink",value:function(e,t){var n=this.editor,r=n.model,i=r.document.selection,o=e.attributes,a=o.linkName,s=o.linkHref;if(i.isCollapsed){var l=ni(i.getAttributes()),u=t.createText(a,l),c=r.insertContent(u);t.setSelection(c)}n.execute("link",s)}}]),n}(fe);function Bm(e,t,n){if(Vm(e)){var r=jm({token:t,origin:n,id:e.data.id,width:e.data.metadata.width,extension:e.data.extension});return{imageFallbackUrl:r.imageFallbackUrl,imageSources:r.imageSources,imageTextAlternative:e.data.metadata.description||""}}return{linkName:e.data.name,linkHref:Um(e,t,n)}}function Vm(e){var t=e.data.metadata;return!!t&&t.width&&t.height}function Um(e,t,n){var r=Lm(t),i=new URL("".concat(r,"/assets/").concat(e.data.id,"/file"),n);return i.searchParams.set("download","true"),i.toString()}var Hm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"afterInit",value:function(){var e=i(f().mark((function e(){var t,n,r,i,o,a,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.editor,n=!!t.config.get("ckbox"),r=!!window.CKBox,n||r){e.next=3;break}return e.abrupt("return");case 3:i=t.plugins.get(sm),o=t.plugins.get(Gm),i.createUploadAdapter=function(e){return new qm(e,o.getToken(),t)},a=!t.config.get("ckbox.ignoreDataId"),s=t.plugins.get("ImageUploadEditing"),a&&s.on("uploadComplete",(function(e,n){var r=n.imageElement,i=n.data;t.model.change((function(e){e.setAttribute("ckboxImageId",i.ckboxImageId,r)}))}));case 7:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()}],[{key:"requires",get:function(){return["ImageUploadEditing","ImageUploadProgress",sm,Gm]}},{key:"pluginName",get:function(){return"CKBoxUploadAdapter"}}]),n}(ce),qm=function(){function e(t,n,r){k(this,e),this.loader=t,this.token=n,this.editor=r,this.controller=new AbortController,this.serviceOrigin=r.config.get("ckbox.serviceOrigin"),this.assetsOrigin=r.config.get("ckbox.assetsOrigin")}return b(e,[{key:"getAvailableCategories",value:function(){var e=i(f().mark((function e(){var t,n,r=this,o=arguments;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=o.length>0&&void 0!==o[0]?o[0]:0,n=new URL("categories",this.serviceOrigin),e.abrupt("return",(n.searchParams.set("limit",50..toString()),n.searchParams.set("offset",t.toString()),this._sendHttpRequest({url:n}).then(function(){var e=i(f().mark((function e(n){var i;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n.totalCount-(t+50)>0)){e.next=5;break}return e.next=3,r.getAvailableCategories(t+50);case 3:return i=e.sent,e.abrupt("return",[].concat(v(n.items),v(i)));case 5:return e.abrupt("return",n.items);case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){r.controller.signal.throwIfAborted(),O("ckbox-fetch-category-http-error")}))));case 3:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getCategoryIdForFile",value:function(){var e=i(f().mark((function e(t){var n,r,i,o,a,s;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return n=Wm(t.name),e.next=3,this.getAvailableCategories();case 3:if(r=e.sent){e.next=6;break}return e.abrupt("return",null);case 6:if(!(i=this.editor.config.get("ckbox.defaultUploadCategories"))){e.next=12;break}if(o=Object.keys(i).find((function(e){return i[e].includes(n)})),!o){e.next=12;break}return a=r.find((function(e){return e.id===o||e.name===o})),e.abrupt("return",a?a.id:null);case 12:return s=r.find((function(e){return e.extensions.includes(n)})),e.abrupt("return",s?s.id:null);case 14:case"end":return e.stop()}}),e,this)})));function t(t){return e.apply(this,arguments)}return t}()},{key:"upload",value:function(){var e=i(f().mark((function e(){var t,n,r,o,a,s,l,u=this;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return t=this.editor.t,n=t("Cannot determine a category for the uploaded file."),e.next=4,this.loader.file;case 4:return r=e.sent,e.next=7,this.getCategoryIdForFile(r);case 7:if(o=e.sent){e.next=10;break}return e.abrupt("return",Promise.reject(n));case 10:return a=new URL("assets",this.serviceOrigin),(s=new FormData).append("categoryId",o),s.append("file",r),l={method:"POST",url:a,data:s,onUploadProgress:function(e){e.lengthComputable&&(u.loader.uploadTotal=e.total,u.loader.uploaded=e.loaded)}},e.abrupt("return",this._sendHttpRequest(l).then(function(){var e=i(f().mark((function e(t){var n,i,o;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,u._getImageWidth();case 2:return n=e.sent,i=Wm(r.name),o=jm({token:u.token,id:t.id,origin:u.assetsOrigin,width:n,extension:i}),e.abrupt("return",{ckboxImageId:t.id,default:o.imageFallbackUrl,sources:o.imageSources});case 6:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}()).catch((function(){var e=t("Cannot upload file:")+" ".concat(r.name,".");return Promise.reject(e)})));case 14:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"abort",value:function(){this.controller.abort()}},{key:"_sendHttpRequest",value:function(e){var t=e.url,n=e.data,r=e.onUploadProgress,o=e.method||"GET",a=this.controller.signal,s=new XMLHttpRequest;s.open(o,t.toString(),!0),s.setRequestHeader("Authorization",this.token.value),s.setRequestHeader("CKBox-Version","CKEditor 5"),s.responseType="json";var l=function(){s.abort()};return new Promise((function(e,t){a.addEventListener("abort",l),s.addEventListener("loadstart",(function(){a.addEventListener("abort",l)})),s.addEventListener("loadend",(function(){a.removeEventListener("abort",l)})),s.addEventListener("error",(function(){t()})),s.addEventListener("abort",(function(){t()})),s.addEventListener("load",i(f().mark((function n(){var r;return f().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return r=s.response,n.abrupt("return",!r||r.statusCode>=400?t(r&&r.message):e(r));case 2:case"end":return n.stop()}}),n)})))),r&&s.upload.addEventListener("progress",(function(e){r(e)})),s.send(n)}))}},{key:"_getImageWidth",value:function(){var e=this;return new Promise((function(t){var n=new Image;n.onload=function(){URL.revokeObjectURL(n.src),t(n.width)},n.src=e.loader.data}))}}]),e}();function Wm(e){return e.match(r(/\.([^.]+)$/,{ext:1})).groups.ext}var Gm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=i(f().mark((function e(){var t,n,r,i,o,a;return f().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(t=this.editor,n=!!t.config.get("ckbox"),r=!!window.CKBox,n||r){e.next=3;break}return e.abrupt("return");case 3:if(this._initConfig(),i=t.plugins.get("CloudServicesCore"),o=t.config.get("ckbox.tokenUrl"),a=t.config.get("cloudServices.tokenUrl"),o!==a){e.next=9;break}e.t0=t.plugins.get("CloudServices").token,e.next=12;break;case 9:return e.next=11,i.createToken(o).init();case 11:e.t0=e.sent;case 12:this._token=e.t0,t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),r&&t.commands.add("ckbox",new zm(t));case 15:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"getToken",value:function(){return this._token}},{key:"_initConfig",value:function(){var e=this.editor;if(e.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:e.locale.uiLanguage,theme:"default",tokenUrl:e.config.get("cloudServices.tokenUrl")}),!e.config.get("ckbox.tokenUrl"))throw new P("ckbox-plugin-missing-token-url",this);e.plugins.has("ImageBlockEditing")||e.plugins.has("ImageInlineEditing")||O("ckbox-plugin-image-feature-missing",e)}},{key:"_initSchema",value:function(){var e=this.editor.model.schema;e.extend("$text",{allowAttributes:"ckboxLinkId"}),e.isRegistered("imageBlock")&&e.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.isRegistered("imageInline")&&e.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),e.addAttributeCheck((function(e,t){if(!e.last.getAttribute("linkHref")&&"ckboxLinkId"===t)return!1}))}},{key:"_initConversion",value:function(){var e=this.editor;e.conversion.for("downcast").add((function(e){e.on("attribute:ckboxLinkId:imageBlock",(function(e,t,n){var r=n.writer,i=n.mapper;if(n.consumable.consume(t.item,e.name)){var o=v(i.toViewElement(t.item).getChildren()).find((function(e){return"a"===e.name}));o&&(t.item.hasAttribute("ckboxLinkId")?r.setAttribute("data-ckbox-resource-id",t.item.getAttribute("ckboxLinkId"),o):r.removeAttribute("data-ckbox-resource-id",o))}}),{priority:"low"}),e.on("attribute:ckboxLinkId",(function(e,t,n){var r=n.writer,i=n.mapper;if(n.consumable.consume(t.item,e.name)){if(t.attributeOldValue){var o=Km(r,t.attributeOldValue);r.unwrap(i.toViewRange(t.range),o)}if(t.attributeNewValue){var a=Km(r,t.attributeNewValue);if(t.item.is("selection")){var s=r.document.selection;r.wrap(s.getFirstRange(),a)}else r.wrap(i.toViewRange(t.range),a)}}}),{priority:"low"})})),e.conversion.for("upcast").add((function(e){e.on("element:a",(function(e,t,n){var r=n.writer,i=n.consumable;if(t.viewItem.getAttribute("href")&&i.consume(t.viewItem,{attributes:["data-ckbox-resource-id"]})){var o=t.viewItem.getAttribute("data-ckbox-resource-id");if(o)if(t.modelRange){var a,s=h(t.modelRange.getItems());try{for(s.s();!(a=s.n()).done;){var l=a.value;l.is("$textProxy")&&(l=l.textNode),Ym(l)&&r.setAttribute("ckboxLinkId",o,l)}}catch(c){s.e(c)}finally{s.f()}}else{var u=t.modelCursor.nodeBefore||t.modelCursor.parent;r.setAttribute("ckboxLinkId",o,u)}}}),{priority:"low"})})),e.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),e.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:function(e){return e.getAttribute("data-ckbox-resource-id")}},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}})}},{key:"_initFixers",value:function(){var e=this.editor,t=e.model,n=t.document.selection;t.document.registerPostFixer(function(e){return function(t){var n=!1,r=e.model,i=e.commands.get("ckbox");if(!i)return n;var o,a=h(r.document.differ.getChanges());try{for(a.s();!(o=a.n()).done;){var s=o.value;if("insert"===s.type||"attribute"===s.type){var l,u="insert"===s.type?new Tl(s.position,s.position.getShiftedBy(s.length)):s.range,c="attribute"===s.type&&"linkHref"===s.attributeKey&&null===s.attributeNewValue,d=h(u.getItems());try{for(d.s();!(l=d.n()).done;){var f=l.value;if(c&&f.hasAttribute("ckboxLinkId"))t.removeAttribute("ckboxLinkId",f),n=!0;else{var p,v=$m(f,i._chosenAssets),m=h(v);try{for(m.s();!(p=m.n()).done;){var g=p.value,y="image"===g.type?"ckboxImageId":"ckboxLinkId";g.id!==f.getAttribute(y)&&(t.setAttribute(y,g.id,f),n=!0)}}catch(b){m.e(b)}finally{m.f()}}}}catch(b){d.e(b)}finally{d.f()}}}}catch(b){a.e(b)}finally{a.f()}return n}}(e)),t.document.registerPostFixer(function(e){return function(t){!e.hasAttribute("linkHref")&&e.hasAttribute("ckboxLinkId")&&t.removeSelectionAttribute("ckboxLinkId")}}(n))}}],[{key:"pluginName",get:function(){return"CKBoxEditing"}},{key:"requires",get:function(){return["CloudServices","LinkEditing","PictureEditing",Hm]}}]),n}(ce);function $m(e,t){var n=e.is("element","imageInline")||e.is("element","imageBlock"),r=e.hasAttribute("linkHref");return v(t).filter((function(t){return"image"===t.type&&n?t.attributes.imageFallbackUrl===e.getAttribute("src"):"link"===t.type&&r?t.attributes.linkHref===e.getAttribute("linkHref"):void 0}))}function Km(e,t){var n=e.createAttributeElement("a",{"data-ckbox-resource-id":t},{priority:5});return e.setCustomProperty("link",!0,n),n}function Ym(e){return!!e.is("$text")||!(!e.is("element","imageInline")&&!e.is("element","imageBlock"))}var Jm=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.ui.componentFactory,n=e.t;t.add("ckfinder",(function(t){var r=e.commands.get("ckfinder"),i=new Rf(t);return i.set({label:n("Insert image or file"),icon:'',tooltip:!0}),i.bind("isEnabled").to(r),i.on("execute",(function(){e.execute("ckfinder"),e.editing.view.focus()})),i}))}}],[{key:"pluginName",get:function(){return"CKFinderUI"}}]),n}(ce),Qm=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).stopListening(r.editor.model.document,"change"),r.listenTo(r.editor.model.document,"change",(function(){return r.refresh()}),{priority:"low"}),r}return b(n,[{key:"refresh",value:function(){var e=this.editor.commands.get("insertImage"),t=this.editor.commands.get("link");this.isEnabled=e.isEnabled||t.isEnabled}},{key:"execute",value:function(){var e=this.editor,t=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=t&&"modal"!=t)throw new P("ckfinder-unknown-openermethod",e);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var r=n.onInit;n.language||(n.language=e.locale.uiLanguage),n.onInit=function(t){r&&r(t),t.on("files:choose",(function(n){var r,i=n.data.files.toArray(),o=i.filter((function(e){return!e.isImage()})),a=i.filter((function(e){return e.isImage()})),s=h(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;e.execute("link",l.getUrl())}}catch(v){s.e(v)}finally{s.f()}var u,c=[],d=h(a);try{for(d.s();!(u=d.n()).done;){var f=u.value,p=f.getUrl();c.push(p||t.request("file:getProxyUrl",{file:f}))}}catch(v){d.e(v)}finally{d.f()}c.length&&Xm(e,c)})),t.on("file:choose:resizedImage",(function(t){var n=t.data.resizedUrl;if(n)Xm(e,[n]);else{var r=e.plugins.get("Notification"),i=e.locale.t;r.showWarning(i("Could not obtain resized image URL."),{title:i("Selecting resized image failed"),namespace:"ckfinder"})}}))},window.CKFinder[t](n)}}]),n}(fe);function Xm(e,t){if(e.commands.get("insertImage").isEnabled)e.execute("insertImage",{source:t});else{var n=e.plugins.get("Notification"),r=e.locale.t;n.showWarning(r("Could not insert image at the current position."),{title:r("Inserting image failed"),namespace:"ckfinder"})}}var eg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor;if(!e.plugins.has("ImageBlockEditing")&&!e.plugins.has("ImageInlineEditing"))throw new P("ckfinder-missing-image-plugin",e);e.commands.add("ckfinder",new Qm(e))}}],[{key:"pluginName",get:function(){return"CKFinderEditing"}},{key:"requires",get:function(){return[Vp,"LinkEditing"]}}]),n}(ce),tg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.plugins.get("CloudServices"),r=n.token,i=n.uploadUrl;r&&(this._uploadGateway=t.plugins.get("CloudServicesCore").createUploadGateway(r,i),t.plugins.get(sm).createUploadAdapter=function(t){return new ng(e._uploadGateway,t)})}}],[{key:"pluginName",get:function(){return"CloudServicesUploadAdapter"}},{key:"requires",get:function(){return["CloudServices",sm]}}]),n}(ce),ng=function(){function e(t,n){k(this,e),this.uploadGateway=t,this.loader=n}return b(e,[{key:"upload",value:function(){var e=this;return this.loader.file.then((function(t){return e.fileUploader=e.uploadGateway.upload(t),e.fileUploader.on("progress",(function(t,n){e.loader.uploadTotal=n.total,e.loader.uploaded=n.uploaded})),e.fileUploader.send()}))}},{key:"abort",value:function(){this.fileUploader.abort()}}]),e}(),rg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){var e=this.editor.model,t=$s(e.document.selection.getSelectedBlocks());this.value=!!t&&t.is("element","paragraph"),this.isEnabled=!!t&&ig(t,e.schema)}},{key:"execute",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=this.editor.model,n=t.document;t.change((function(r){var i,o=(e.selection||n.selection).getSelectedBlocks(),a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;!s.is("element","paragraph")&&ig(s,t.schema)&&r.rename(s,"paragraph")}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(fe);function ig(e,t){return t.checkChild(e.parent,"paragraph")&&!t.isObject(e)}var og=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"execute",value:function(e){var t=this.editor.model,n=e.attributes,r=e.position;t.change((function(e){var i=e.createElement("paragraph");if(n&&t.schema.setAllowedAttributes(i,n,e),!t.schema.checkChild(r.parent,i)){var o=t.schema.findAllowedParent(r,i);if(!o)return;r=e.split(r,o).position}t.insertContent(i,r),e.setSelection(i,"in")}))}}]),n}(fe),ag=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model;e.commands.add("paragraph",new rg(e)),e.commands.add("insertParagraph",new og(e)),t.schema.register("paragraph",{inheritAllFrom:"$block"}),e.conversion.elementToElement({model:"paragraph",view:"p"}),e.conversion.for("upcast").elementToElement({model:function(e,t){var r=t.writer;return n.paragraphLikeElements.has(e.name)?e.isEmpty?null:r.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(ce);ag.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var sg=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e)).modelElements=r,i}return b(n,[{key:"refresh",value:function(){var e=this,t=$s(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some((function(n){return lg(t,n,e.editor.model.schema)}))}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document,r=e.value;t.change((function(e){var i,o=Array.from(n.selection.getSelectedBlocks()).filter((function(e){return lg(e,r,t.schema)})),a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;s.is("element",r)||e.rename(s,r)}}catch(l){a.e(l)}finally{a.f()}}))}}]),n}(fe);function lg(e,t,n){return n.checkChild(e.parent,t)&&!n.isObject(e)}var ug="paragraph",cg=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),r=t.call(this,e),e.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"}]}),r}return b(n,[{key:"init",value:function(){var e,t=this.editor,n=t.config.get("heading.options"),r=[],i=h(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;o.model!==ug&&(t.model.schema.register(o.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(o),r.push(o.model))}}catch(a){i.e(a)}finally{i.f()}this._addDefaultH1Conversion(t),t.commands.add("heading",new sg(t,r))}},{key:"afterInit",value:function(){var e=this.editor,t=e.commands.get("enter"),n=e.config.get("heading.options");t&&this.listenTo(t,"afterExecute",(function(t,r){var i=e.model.document.selection.getFirstPosition().parent;n.some((function(e){return i.is("element",e.model)}))&&!i.is("element",ug)&&0===i.childCount&&r.writer.rename(i,ug)}))}},{key:"_addDefaultH1Conversion",value:function(e){e.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:T.get("low")+1})}}],[{key:"pluginName",get:function(){return"HeadingEditing"}},{key:"requires",get:function(){return[ag]}}]),n}(ce),dg=C(8733),fg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(dg.Z,fg),dg.Z.locals;var pg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.t,r=function(e){var t=e.t,n={Paragraph:t("Paragraph"),"Heading 1":t("Heading 1"),"Heading 2":t("Heading 2"),"Heading 3":t("Heading 3"),"Heading 4":t("Heading 4"),"Heading 5":t("Heading 5"),"Heading 6":t("Heading 6")};return e.config.get("heading.options").map((function(e){var t=n[e.title];return t&&t!=e.title&&(e.title=t),e}))}(t),i=n("Choose heading"),o=n("Heading");t.ui.componentFactory.add("heading",(function(n){var a,s={},l=new zr,u=t.commands.get("heading"),c=t.commands.get("paragraph"),d=[u],f=h(r);try{var p=function(){var e=a.value,t={type:"button",model:new Up({label:e.title,class:e.class,withText:!0})};"paragraph"===e.model?(t.model.bind("isOn").to(c,"value"),t.model.set("commandName","paragraph"),d.push(c)):(t.model.bind("isOn").to(u,"value",(function(t){return t===e.model})),t.model.set({commandName:"heading",commandValue:e.model})),l.add(t),s[e.model]=e.title};for(f.s();!(a=f.n()).done;)p()}catch(m){f.e(m)}finally{f.f()}var v=bp(n);return wp(v,l),v.buttonView.set({isOn:!1,withText:!0,tooltip:o}),v.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),v.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var e=arguments.length,t=new Array(e),n=0;nt&&(t=s,n=a,r=o)}else this._isToolbarVisible(o)&&this._hideToolbar(o);else this._isToolbarInBalloon(o)&&this._hideToolbar(o)}}catch(l){i.e(l)}finally{i.f()}r&&this._showToolbar(r,n)}},{key:"_hideToolbar",value:function(e){this._balloon.remove(e.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(e,t){var n=this;this._isToolbarVisible(e)?vg(this.editor,t):this._isToolbarInBalloon(e)||(this._balloon.add({view:e.view,position:mg(this.editor,t),balloonClassName:e.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var e,t=h(n._toolbarDefinitions.values());try{for(t.s();!(e=t.n()).done;){var r=e.value;if(n._isToolbarVisible(r)){var i=r.getRelatedElement(n.editor.editing.view.document.selection);vg(n.editor,i)}}}catch(o){t.e(o)}finally{t.f()}})))}},{key:"_isToolbarVisible",value:function(e){return this._balloon.visibleView===e.view}},{key:"_isToolbarInBalloon",value:function(e){return this._balloon.hasView(e.view)}}],[{key:"requires",get:function(){return[Kp]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(ce);function vg(e,t){var n=e.plugins.get("ContextualBalloon"),r=mg(e,t);n.updatePosition(r)}function mg(e,t){var n=e.editing.view,r=df.defaultPositions;return{target:n.domConverter.mapViewToDom(t),positions:[r.northArrowSouth,r.northArrowSouthWest,r.northArrowSouthEast,r.southArrowNorth,r.southArrowNorthWest,r.southArrowNorthEast,r.viewportStickyNorth]}}var gg=C(8506),yg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(gg.Z,yg),gg.Z.locals;var bg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){var e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled&&e.hasAttribute("alt")?this.value=e.getAttribute("alt"):this.value=!1}},{key:"execute",value:function(e){var t=this.editor,n=t.plugins.get("ImageUtils"),r=t.model,i=n.getClosestSelectedImageElement(r.document.selection);r.change((function(t){t.setAttribute("alt",e.newValue,i)}))}}]),n}(fe);function kg(e){return e.createContainerElement("figure",{class:"image"},[e.createEmptyElement("img"),e.createSlot()])}function wg(e,t){var n=e.plugins.get("ImageUtils"),r=e.plugins.has("ImageInlineEditing")&&e.plugins.has("ImageBlockEditing");return function(e){return n.isInlineImageView(e)?r&&(e.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==t?null:i(e):null};function i(e){var t={name:!0};return e.hasAttribute("src")&&(t.attributes=["src"]),t}}function _g(e,t){var n=$s(t.getSelectedBlocks());return!n||e.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}var Cg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"isImage",value:function(e){return this.isInlineImage(e)||this.isBlockImage(e)}},{key:"isInlineImageView",value:function(e){return!!e&&e.is("element","img")}},{key:"isBlockImageView",value:function(e){return!!e&&e.is("element","figure")&&e.hasClass("image")}},{key:"insertImage",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=this.editor,i=r.model,o=i.document.selection;for(var s in n=xg(r,t||o,n),e=a(a({},Object.fromEntries(o.getAttributes())),e))i.schema.checkAttribute(n,s)||delete e[s];return i.change((function(r){var o=r.createElement(n,e);return i.insertObject(o,t,null,{setSelection:"on",findOptimalPosition:!t&&"imageInline"!=n}),o.parent?o:null}))}},{key:"getClosestSelectedImageWidget",value:function(e){var t=e.getFirstPosition();if(!t)return null;var n=e.getSelectedElement();if(n&&this.isImageWidget(n))return n;for(var r=t.parent;r;){if(r.is("element")&&this.isImageWidget(r))return r;r=r.parent}return null}},{key:"getClosestSelectedImageElement",value:function(e){var t=e.getSelectedElement();return this.isImage(t)?t:e.getFirstPosition().findAncestor("imageBlock")}},{key:"isImageAllowed",value:function(){var e=this.editor.model.document.selection;return function(e,t){if("imageBlock"==xg(e,t)){var n=function(e,t){var n=Bh(e,t).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,e.model);if(e.model.schema.checkChild(n,"imageBlock"))return!0}else if(e.model.schema.checkChild(t.focus,"imageInline"))return!0;return!1}(this.editor,e)&&function(e){return v(e.focus.getAncestors()).every((function(e){return!e.is("element","imageBlock")}))}(e)}},{key:"toImageWidget",value:function(e,t,n){var r=this;return t.setCustomProperty("image",!0,e),Nh(e,t,{label:function(){var t=r.findViewImgElement(e).getAttribute("alt");return t?"".concat(t," ").concat(n):n}})}},{key:"isImageWidget",value:function(e){return!!e.getCustomProperty("image")&&Oh(e)}},{key:"isBlockImage",value:function(e){return!!e&&e.is("element","imageBlock")}},{key:"isInlineImage",value:function(e){return!!e&&e.is("element","imageInline")}},{key:"findViewImgElement",value:function(e){if(this.isInlineImageView(e))return e;var t,n=this.editor.editing.view,r=h(n.createRangeIn(e));try{for(r.s();!(t=r.n()).done;){var i=t.value.item;if(this.isInlineImageView(i))return i}}catch(o){r.e(o)}finally{r.f()}}}],[{key:"pluginName",get:function(){return"ImageUtils"}}]),n}(ce);function xg(e,t,n){var r=e.model.schema,i=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")?e.plugins.has("ImageInlineEditing")?n||("inline"===i?"imageInline":"block"===i?"imageBlock":t.is("selection")?_g(r,t):r.checkChild(t,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}var Ag=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new bg(this.editor))}}],[{key:"requires",get:function(){return[Cg]}},{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(ce),Eg=C(1905),Sg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Eg.Z,Sg),Eg.Z.locals;var Zg=C(6764),Mg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Zg.Z,Mg),Zg.Z.locals;var Tg=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n);var i=(r=t.call(this,e)).locale.t;return r.focusTracker=new Ks,r.keystrokes=new Ys,r.labeledInput=r._createLabeledInputView(),r.saveButtonView=r._createButton(i("Save"),Ef.check,"ck-button-save"),r.saveButtonView.type="submit",r.cancelButtonView=r._createButton(i("Cancel"),Ef.cancel,"ck-button-cancel","cancel"),r._focusables=new Id,r._focusCycler=new Jf({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[r.labeledInput,r.saveButtonView,r.cancelButtonView]}),Zf(d(r)),r}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),Mf({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)}))}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"_createButton",value:function(e,t,n,r){var i=new Rf(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}},{key:"_createLabeledInputView",value:function(){var e=this.locale.t,t=new zp(this.locale,Bp);return t.label=e("Text alternative"),t}}]),n}(tf);function Ig(e){var t=e.editing.view,n=df.defaultPositions,r=e.plugins.get("ImageUtils");return{target:t.domConverter.mapViewToDom(r.getClosestSelectedImageWidget(t.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var Pg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var e=this,t=this.editor,n=t.t;t.ui.componentFactory.add("imageTextAlternative",(function(r){var i=t.commands.get("imageTextAlternative"),o=new Rf(r);return o.set({label:n("Change image text alternative"),icon:Ef.lowVision,tooltip:!0}),o.bind("isEnabled").to(i,"isEnabled"),o.bind("isOn").to(i,"value",(function(e){return!!e})),e.listenTo(o,"execute",(function(){e._showForm()})),o}))}},{key:"_createForm",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=t.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new Tg(t.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){t.execute("imageTextAlternative",{newValue:e._form.labeledInput.fieldView.element.value}),e._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){e._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(t,n){e._hideForm(!0),n()})),this.listenTo(t.ui,"update",(function(){r.getClosestSelectedImageWidget(n.selection)?e._isVisible&&function(e){var t=e.plugins.get("ContextualBalloon");if(e.plugins.get("ImageUtils").getClosestSelectedImageWidget(e.editing.view.document.selection)){var n=Ig(e);t.updatePosition(n)}}(t):e._hideForm(!0)})),Sf({emitter:this._form,activator:function(){return e._isVisible},contextElements:[this._balloon.view.element],callback:function(){return e._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){var e=this.editor,t=e.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Ig(e)}),n.fieldView.value=n.fieldView.element.value=t.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}}},{key:"_hideForm",value:function(e){this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),e&&this.editor.editing.view.focus())}},{key:"_isVisible",get:function(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[Kp]}},{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(ce),Dg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[Ag,Pg]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(ce);function Og(e,t){return function(e){e.on("attribute:srcset:".concat(t),n)};function n(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=r.writer,o=r.mapper.toViewElement(n.item),a=e.findViewImgElement(o);if(null===n.attributeNewValue){var s=n.attributeOldValue;s.data&&(i.removeAttribute("srcset",a),i.removeAttribute("sizes",a),s.width&&i.removeAttribute("width",a))}else{var l=n.attributeNewValue;l.data&&(i.setAttribute("srcset",l.data,a),i.setAttribute("sizes","100vw",a),l.width&&i.setAttribute("width",l.width,a))}}}}function Ng(e,t,n){return function(e){e.on("attribute:".concat(n,":").concat(t),r)};function r(t,n,r){if(r.consumable.consume(n.item,t.name)){var i=r.writer,o=r.mapper.toViewElement(n.item),a=e.findViewImgElement(o);i.setAttribute(n.attributeKey,n.attributeNewValue||"",a)}}}var Rg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"observe",value:function(e){var t=this;this.listenTo(e,"load",(function(e,n){var r=n.target;t.checkShouldIgnoreEventFromTarget(r)||"IMG"==r.tagName&&t._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(e){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",e))}}]),n}(Ka),jg=function(e){m(n,e);var t=g(n);function n(e){var r;k(this,n),r=t.call(this,e);var i=e.config.get("image.insert.type");return e.plugins.has("ImageBlockEditing")||"block"===i&&D("image-block-plugin-required"),e.plugins.has("ImageInlineEditing")||"inline"===i&&D("image-inline-plugin-required"),r}return b(n,[{key:"refresh",value:function(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}},{key:"execute",value:function(e){var t=this,n=Vr(e.source),r=this.editor.model.document.selection,i=this.editor.plugins.get("ImageUtils"),o=Object.fromEntries(r.getAttributes());n.forEach((function(e,n){var s=r.getSelectedElement();if("string"==typeof e&&(e={src:e}),n&&s&&i.isImage(s)){var l=t.editor.model.createPositionAfter(s);i.insertImage(a(a({},e),o),l)}else i.insertImage(a(a({},e),o))}))}}]),n}(fe),Lg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.conversion;e.editing.view.addObserver(Rg),t.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(e){var t={data:e.getAttribute("srcset")};return e.hasAttribute("width")&&(t.width=e.getAttribute("width")),t}}});var n=new jg(e);e.commands.add("insertImage",n),e.commands.add("imageInsert",n)}}],[{key:"requires",get:function(){return[Cg]}},{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(ce),Fg=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e))._modelElementName=r,i}return b(n,[{key:"refresh",value:function(){var e=this.editor.plugins.get("ImageUtils"),t=e.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=e.isInlineImage(t):this.isEnabled=e.isBlockImage(t)}},{key:"execute",value:function(){var e=this,t=this.editor,n=this.editor.model,r=t.plugins.get("ImageUtils"),i=r.getClosestSelectedImageElement(n.document.selection),o=Object.fromEntries(i.getAttributes());return o.src||o.uploadId?n.change((function(t){var a=Array.from(n.markers).filter((function(e){return e.getRange().containsItem(i)})),s=r.insertImage(o,n.createSelection(i,"on"),e._modelElementName);if(!s)return null;var l,u=t.createRangeOn(s),c=h(a);try{for(c.s();!(l=c.n()).done;){var d=l.value,f=d.getRange(),p="$graveyard"!=f.root.rootName?f.getJoined(u,!0):u;t.updateMarker(d,{range:p})}}catch(v){c.e(v)}finally{c.f()}return{oldElement:i,newElement:s}})):null}}]),n}(fe),zg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),e.plugins.has("ImageInlineEditing")&&(e.commands.add("imageTypeBlock",new Fg(this.editor,"imageBlock")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var e=this.editor,t=e.t,n=e.conversion,r=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:function(e,t){return kg(t.writer)}}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:function(e,n){var i=n.writer;return r.toImageWidget(kg(i),i,t("image widget"))}}),n.for("downcast").add(Ng(r,"imageBlock","src")).add(Ng(r,"imageBlock","alt")).add(Og(r,"imageBlock")),n.for("upcast").elementToElement({view:wg(e,"imageBlock"),model:function(e,t){return t.writer.createElement("imageBlock",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)}}).add(function(e){return function(e){e.on("element:figure",t)};function t(t,n,r){if(r.consumable.test(n.viewItem,{name:!0,classes:"image"})){var i=e.findViewImgElement(n.viewItem);if(i&&r.consumable.test(i,{name:!0})){r.consumable.consume(n.viewItem,{name:!0,classes:"image"});var o=$s(r.convertItem(i,n.modelCursor).modelRange.getItems());o?(r.convertChildren(n.viewItem,o),r.updateConversionResult(o,n)):r.consumable.revert(n.viewItem,{name:!0,classes:"image"})}}}}(r))}},{key:"_setupClipboardIntegration",value:function(){var e=this.editor,t=e.model,n=e.editing.view,r=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(i,o){var a,s=Array.from(o.content.getChildren());if(s.every(r.isInlineImageView)){a=o.targetRanges?e.editing.mapper.toModelRange(o.targetRanges[0]):t.document.selection.getFirstRange();var l=t.createSelection(a);if("imageBlock"===_g(t.schema,l)){var u=new yd(n.document),c=s.map((function(e){return u.createElement("figure",{class:"image"},e)}));o.content=u.createDocumentFragment(c)}}}))}}],[{key:"requires",get:function(){return[Lg,Cg,fh]}},{key:"pluginName",get:function(){return"ImageBlockEditing"}}]),n}(ce),Bg=C(3508),Vg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Bg.Z,Vg),Bg.Z.locals;var Ug=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[zg,rv,Dg]}},{key:"pluginName",get:function(){return"ImageBlock"}}]),n}(ce),Hg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;t.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),t.addChildCheck((function(e,t){if(e.endsWith("caption")&&"imageInline"===t.name)return!1})),this._setupConversion(),e.plugins.has("ImageBlockEditing")&&(e.commands.add("imageTypeInline",new Fg(this.editor,"imageInline")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var e=this.editor,t=e.t,n=e.conversion,r=e.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:function(e,t){return t.writer.createEmptyElement("img")}}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:function(e,n){var i=n.writer;return r.toImageWidget(function(e){return e.createContainerElement("span",{class:"image-inline"},e.createEmptyElement("img"))}(i),i,t("image widget"))}}),n.for("downcast").add(Ng(r,"imageInline","src")).add(Ng(r,"imageInline","alt")).add(Og(r,"imageInline")),n.for("upcast").elementToElement({view:wg(e,"imageInline"),model:function(e,t){return t.writer.createElement("imageInline",e.hasAttribute("src")?{src:e.getAttribute("src")}:null)}})}},{key:"_setupClipboardIntegration",value:function(){var e=this.editor,t=e.model,n=e.editing.view,r=e.plugins.get("ImageUtils");this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(i,o){var a,s=Array.from(o.content.getChildren());if(s.every(r.isBlockImageView)){a=o.targetRanges?e.editing.mapper.toModelRange(o.targetRanges[0]):t.document.selection.getFirstRange();var l=t.createSelection(a);if("imageInline"===_g(t.schema,l)){var u=new yd(n.document),c=s.map((function(e){return 1===e.childCount?(Array.from(e.getAttributes()).forEach((function(t){return u.setAttribute.apply(u,v(t).concat([r.findViewImgElement(e)]))})),e.getChild(0)):e}));o.content=u.createDocumentFragment(c)}}}))}}],[{key:"requires",get:function(){return[Lg,Cg,fh]}},{key:"pluginName",get:function(){return"ImageInlineEditing"}}]),n}(ce),qg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,null,[{key:"requires",get:function(){return[Hg,rv,Dg]}},{key:"pluginName",get:function(){return"ImageInline"}}]),n}(ce),Wg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){var e=this.editor,t=e.plugins.get("ImageCaptionUtils");if(!e.plugins.has(zg))return this.isEnabled=!1,void(this.value=!1);var n=e.model.document.selection,r=n.getSelectedElement();if(!r){var i=t.getCaptionFromModelSelection(n);return this.isEnabled=!!i,void(this.value=!!i)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(r),this.isEnabled?this.value=!!t.getCaptionFromImageModelElement(r):this.value=!1}},{key:"execute",value:function(){var e=this,t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusCaptionOnShow;this.editor.model.change((function(n){e.value?e._hideImageCaption(n):e._showImageCaption(n,t)}))}},{key:"_showImageCaption",value:function(e,t){var n=this.editor.model.document.selection,r=this.editor.plugins.get("ImageCaptionEditing"),i=n.getSelectedElement(),o=r._getSavedCaption(i);this.editor.plugins.get("ImageUtils").isInlineImage(i)&&(this.editor.execute("imageTypeBlock"),i=n.getSelectedElement());var a=o||e.createElement("caption");e.append(a,i),t&&e.setSelection(a,"in")}},{key:"_hideImageCaption",value:function(e){var t,n=this.editor,r=n.model.document.selection,i=n.plugins.get("ImageCaptionEditing"),o=n.plugins.get("ImageCaptionUtils"),a=r.getSelectedElement();a?t=o.getCaptionFromImageModelElement(a):a=(t=o.getCaptionFromModelSelection(r)).parent,i._saveCaption(a,t),e.setSelection(a,"on"),e.remove(t)}}]),n}(fe),Gg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"getCaptionFromImageModelElement",value:function(e){var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r&&r.is("element","caption"))return r}}catch(i){n.e(i)}finally{n.f()}return null}},{key:"getCaptionFromModelSelection",value:function(e){var t=this.editor.plugins.get("ImageUtils"),n=e.getFirstPosition().findAncestor("caption");return n&&t.isBlockImage(n.parent)?n:null}},{key:"matchImageCaptionViewElement",value:function(e){var t=this.editor.plugins.get("ImageUtils");return"figcaption"==e.name&&t.isBlockImageView(e.parent)?{name:!0}:null}}],[{key:"pluginName",get:function(){return"ImageCaptionUtils"}},{key:"requires",get:function(){return[Cg]}}]),n}(ce),$g=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._savedCaptionsMap=new WeakMap,r}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema;t.isRegistered("caption")?t.extend("caption",{allowIn:"imageBlock"}):t.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),e.commands.add("toggleImageCaption",new Wg(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion()}},{key:"_setupConversion",value:function(){var e=this.editor,t=e.editing.view,n=e.plugins.get("ImageUtils"),r=e.plugins.get("ImageCaptionUtils"),i=e.t;e.conversion.for("upcast").elementToElement({view:function(e){return r.matchImageCaptionViewElement(e)},model:"caption"}),e.conversion.for("dataDowncast").elementToElement({model:"caption",view:function(e,t){var r=t.writer;return n.isBlockImage(e.parent)?r.createContainerElement("figcaption"):null}}),e.conversion.for("editingDowncast").elementToElement({model:"caption",view:function(e,r){var o=r.writer;if(!n.isBlockImage(e.parent))return null;var a=o.createEditableElement("figcaption");o.setCustomProperty("imageCaption",!0,a),ed({view:t,element:a,text:i("Enter image caption"),keepOnFocus:!0});var s=e.parent.getAttribute("alt");return zh(a,o,{label:s?i("Caption for image: %0",[s]):i("Caption for the image")})}})}},{key:"_setupImageTypeCommandsIntegration",value:function(){var e=this,t=this.editor,n=t.plugins.get("ImageUtils"),r=t.plugins.get("ImageCaptionUtils"),i=t.commands.get("imageTypeInline"),o=t.commands.get("imageTypeBlock"),a=function(t){if(t.return){var i=t.return,o=i.oldElement,a=i.newElement;if(o){if(n.isBlockImage(o)){var s=r.getCaptionFromImageModelElement(o);if(s)return void e._saveCaption(a,s)}var l=e._getSavedCaption(o);l&&e._saveCaption(a,l)}}};i&&this.listenTo(i,"execute",a,{priority:"low"}),o&&this.listenTo(o,"execute",a,{priority:"low"})}},{key:"_getSavedCaption",value:function(e){var t=this._savedCaptionsMap.get(e);return t?wl.fromJSON(t):null}},{key:"_saveCaption",value:function(e,t){this._savedCaptionsMap.set(e,t.toJSON())}},{key:"_registerCaptionReconversion",value:function(){var e=this.editor,t=e.model,n=e.plugins.get("ImageUtils"),r=e.plugins.get("ImageCaptionUtils");t.document.on("change:data",(function(){var i,o=t.document.differ.getChanges(),a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;if("alt"===s.attributeKey){var l=s.range.start.nodeAfter;if(n.isBlockImage(l)){var u=r.getCaptionFromImageModelElement(l);if(!u)return;e.editing.reconvertItem(u)}}}}catch(c){a.e(c)}finally{a.f()}}))}}],[{key:"requires",get:function(){return[Cg,Gg]}},{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(ce),Kg=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.editing.view,r=t.plugins.get("ImageCaptionUtils"),i=t.t;t.ui.componentFactory.add("toggleImageCaption",(function(o){var a=t.commands.get("toggleImageCaption"),s=new Rf(o);return s.set({icon:Ef.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),s.bind("label").to(a,"value",(function(e){return i(e?"Toggle caption off":"Toggle caption on")})),e.listenTo(s,"execute",(function(){t.execute("toggleImageCaption",{focusCaptionOnShow:!0});var e=r.getCaptionFromModelSelection(t.model.document.selection);if(e){var i=t.editing.mapper.toViewElement(e);n.scrollToTheSelection(),n.change((function(e){e.addClass("image__caption_highlighted",i)}))}t.editing.view.focus()})),s}))}}],[{key:"requires",get:function(){return[Gg]}},{key:"pluginName",get:function(){return"ImageCaptionUI"}}]),n}(ce),Yg=C(2640),Jg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Yg.Z,Jg),Yg.Z.locals;var Qg=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e))._defaultStyles={imageBlock:!1,imageInline:!1},i._styles=new Map(r.map((function(e){if(e.isDefault){var t,n=h(e.modelElements);try{for(n.s();!(t=n.n()).done;){var r=t.value;i._defaultStyles[r]=e.name}}catch(o){n.e(o)}finally{n.f()}}return[e.name,e]}))),i}return b(n,[{key:"refresh",value:function(){var e=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!e,this.isEnabled?e.hasAttribute("imageStyle")?this.value=e.getAttribute("imageStyle"):this.value=this._defaultStyles[e.name]:this.value=!1}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,r=n.model,i=n.plugins.get("ImageUtils");r.change((function(n){var o=t.value,a=i.getClosestSelectedImageElement(r.document.selection);o&&e.shouldConvertImageType(o,a)&&(e.editor.execute(i.isBlockImage(a)?"imageTypeInline":"imageTypeBlock"),a=i.getClosestSelectedImageElement(r.document.selection)),!o||e._styles.get(o).isDefault?n.removeAttribute("imageStyle",a):n.setAttribute("imageStyle",o,a)}))}},{key:"shouldConvertImageType",value:function(e,t){return!this._styles.get(e).modelElements.includes(t.name)}}]),n}(fe),Xg=Ef.objectFullWidth,ey=Ef.objectInline,ty=Ef.objectLeft,ny=Ef.objectRight,ry=Ef.objectCenter,iy=Ef.objectBlockLeft,oy=Ef.objectBlockRight,ay={get inline(){return{name:"inline",title:"In line",icon:ey,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:ty,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:iy,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:ry,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:ny,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:oy,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:ry,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:ny,modelElements:["imageBlock"],className:"image-style-side"}}},sy={full:Xg,left:iy,right:oy,center:ry,inlineLeft:ty,inlineRight:ny,inline:ey},ly=[{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 uy(e){D("image-style-configuration-definition-invalid",e)}var cy={normalizeStyles:function(e){return(e.configuredStyles.options||[]).map((function(e){return function(e){return e="string"==typeof e?ay[e]?a({},ay[e]):{name:e}:function(e,t){var n=a({},t);for(var r in e)Object.prototype.hasOwnProperty.call(t,r)||(n[r]=e[r]);return n}(ay[e.name],e),"string"==typeof e.icon&&(e.icon=sy[e.icon]||e.icon),e}(e)})).filter((function(t){return function(e,t){var n=t.isBlockPluginLoaded,r=t.isInlinePluginLoaded,i=e.modelElements,o=e.name;if(!(i&&i.length&&o))return uy({style:e}),!1;var a=[n?"imageBlock":null,r?"imageInline":null];return!!i.some((function(e){return a.includes(e)}))||(D("image-style-missing-dependency",{style:e,missingPlugins:i.map((function(e){return"imageBlock"===e?"ImageBlockEditing":"ImageInlineEditing"}))}),!1)}(t,e)}))},getDefaultStylesConfiguration:function(e,t){return e&&t?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:e?{options:["block","side"]}:t?{options:["inline","alignLeft","alignRight"]}:{}},getDefaultDropdownDefinitions:function(e){return e.has("ImageBlockEditing")&&e.has("ImageInlineEditing")?[].concat(ly):[]},warnInvalidStyle:uy,DEFAULT_OPTIONS:ay,DEFAULT_ICONS:sy,DEFAULT_DROPDOWN_DEFINITIONS:ly};function dy(e,t){var n,r=h(t);try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.name===e)return i}}catch(o){r.e(o)}finally{r.f()}}var fy=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=cy.normalizeStyles,t=cy.getDefaultStylesConfiguration,n=this.editor,r=n.plugins.has("ImageBlockEditing"),i=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",t(r,i)),this.normalizedStyles=e({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:r,isInlinePluginLoaded:i}),this._setupConversion(r,i),this._setupPostFixer(),n.commands.add("imageStyle",new Qg(n,this.normalizedStyles))}},{key:"_setupConversion",value:function(e,t){var n,r=this.editor,i=r.model.schema,o=(n=this.normalizedStyles,function(e,t,r){if(r.consumable.consume(t.item,e.name)){var i=dy(t.attributeNewValue,n),o=dy(t.attributeOldValue,n),a=r.mapper.toViewElement(t.item),s=r.writer;o&&s.removeClass(o.className,a),i&&s.addClass(i.className,a)}}),a=function(e){var t={imageInline:e.filter((function(e){return!e.isDefault&&e.modelElements.includes("imageInline")})),imageBlock:e.filter((function(e){return!e.isDefault&&e.modelElements.includes("imageBlock")}))};return function(e,n,r){if(n.modelRange){var i=n.viewItem,o=$s(n.modelRange.getItems());if(o&&r.schema.checkAttribute(o,"imageStyle")){var a,s=h(t[o.name]);try{for(s.s();!(a=s.n()).done;){var l=a.value;r.consumable.consume(i,{classes:l.className})&&r.writer.setAttribute("imageStyle",l.name,o)}}catch(u){s.e(u)}finally{s.f()}}}}}(this.normalizedStyles);r.editing.downcastDispatcher.on("attribute:imageStyle",o),r.data.downcastDispatcher.on("attribute:imageStyle",o),e&&(i.extend("imageBlock",{allowAttributes:"imageStyle"}),r.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),t&&(i.extend("imageInline",{allowAttributes:"imageStyle"}),r.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}},{key:"_setupPostFixer",value:function(){var e=this.editor,t=e.model.document,n=e.plugins.get(Cg),r=new Map(this.normalizedStyles.map((function(e){return[e.name,e]})));t.registerPostFixer((function(e){var i,o=!1,a=h(t.differ.getChanges());try{for(a.s();!(i=a.n()).done;){var s=i.value;if("insert"==s.type||"attribute"==s.type&&"imageStyle"==s.attributeKey){var l="insert"==s.type?s.position.nodeAfter:s.range.start.nodeAfter;if(l&&l.is("element","paragraph")&&l.childCount>0&&(l=l.getChild(0)),!n.isImage(l))continue;var u=l.getAttribute("imageStyle");if(!u)continue;var c=r.get(u);c&&c.modelElements.includes(l.name)||(e.removeAttribute("imageStyle",l),o=!0)}}}catch(d){a.e(d)}finally{a.f()}return o}))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}},{key:"requires",get:function(){return[Cg]}}]),n}(ce),py=C(5083),hy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(py.Z,hy),py.Z.locals;var vy=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"localizedDefaultStylesTitles",get:function(){var e=this.editor.t;return{"Wrap text":e("Wrap text"),"Break text":e("Break text"),"In line":e("In line"),"Full size image":e("Full size image"),"Side image":e("Side image"),"Left aligned image":e("Left aligned image"),"Centered image":e("Centered image"),"Right aligned image":e("Right aligned image")}}},{key:"init",value:function(){var e,t=this.editor.plugins,n=this.editor.config.get("image.toolbar")||[],r=my(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles),i=h(r);try{for(i.s();!(e=i.n()).done;){var o=e.value;this._createButton(o)}}catch(c){i.e(c)}finally{i.f()}var a,s=my([].concat(v(n.filter(J)),v(cy.getDefaultDropdownDefinitions(t))),this.localizedDefaultStylesTitles),l=h(s);try{for(l.s();!(a=l.n()).done;){var u=a.value;this._createDropdown(u,r)}}catch(c){l.e(c)}finally{l.f()}}},{key:"_createDropdown",value:function(e,t){var n=this,r=this.editor.ui.componentFactory;r.add(e.name,(function(i){var o,a=e.defaultItem,s=e.items,l=e.title,u=s.filter((function(e){return t.find((function(t){return gy(t.name)===e}))})).map((function(e){var t=r.create(e);return e===a&&(o=t),t}));s.length!==u.length&&cy.warnInvalidStyle({dropdown:e});var c=bp(i,Wf),d=c.buttonView,f=d.arrowView;return kp(c,u,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:yy(l,o.label),class:null,tooltip:!0}),f.unbind("label"),f.set({label:l}),d.bind("icon").toMany(u,"isOn",(function(){for(var e=arguments.length,t=new Array(e),n=0;n=r?e:Ai(e,t,n)},Hy=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),qy=function(e){return Hy.test(e)},Wy=function(e){return e.split("")},Gy="[\\ud800-\\udfff]",$y="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Ky="\\ud83c[\\udffb-\\udfff]",Yy="[^\\ud800-\\udfff]",Jy="(?:\\ud83c[\\udde6-\\uddff]){2}",Qy="[\\ud800-\\udbff][\\udc00-\\udfff]",Xy="(?:"+$y+"|"+Ky+")?",eb="[\\ufe0e\\ufe0f]?",tb=eb+Xy+"(?:\\u200d(?:"+[Yy,Jy,Qy].join("|")+")"+eb+Xy+")*",nb="(?:"+[Yy+$y+"?",$y,Jy,Qy,Gy].join("|")+")",rb=RegExp(Ky+"(?="+Ky+")|"+nb+tb,"g"),ib=function(e){return e.match(rb)||[]},ob=function(e){return qy(e)?ib(e):Wy(e)},ab=function(e){return function(t){t=ki(t);var n=qy(t)?ob(t):void 0,r=n?n[0]:t.charAt(0),i=n?Uy(n,1).join(""):t.slice(1);return r[e]()+i}}("toUpperCase"),sb=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,lb=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,ub=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,cb=/^((\w+:(\/{2,})?)|(\W))/i,db="Ctrl+K";function fb(e,t){var n=t.writer,r=n.createAttributeElement("a",{href:e},{priority:5});return n.setCustomProperty("link",!0,r),r}function pb(e){return function(e){return e.replace(sb,"").match(lb)}(e=String(e))?e:"#"}function hb(e,t){return!!e&&t.checkAttribute(e.name,"linkHref")}function vb(e,t){var n,r=(n=e,ub.test(n)?"mailto:":t),i=!!r&&!mb(e);return e&&i?r+e:e}function mb(e){return cb.test(e)}function gb(e){window.open(e,"_blank","noopener")}var yb=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e)).manualDecorators=new zr,r.automaticDecorators=new Vy,r}return b(n,[{key:"restoreManualDecoratorStates",value:function(){var e,t=h(this.manualDecorators);try{for(t.s();!(e=t.n()).done;){var n=e.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(r){t.e(r)}finally{t.f()}}},{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=t.getSelectedElement()||$s(t.getSelectedBlocks());hb(n,e.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttribute(n,"linkHref")):(this.value=t.getAttribute("linkHref"),this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref"));var r,i=h(this.manualDecorators);try{for(i.s();!(r=i.n()).done;){var o=r.value;o.value=this._getDecoratorStateFromModel(o.id)}}catch(a){i.e(a)}finally{i.f()}}},{key:"execute",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=this.editor.model,i=r.document.selection,o=[],a=[];for(var s in n)n[s]?o.push(s):a.push(s);r.change((function(n){if(i.isCollapsed){var s=i.getFirstPosition();if(i.hasAttribute("linkHref")){var l=$v(s,"linkHref",i.getAttribute("linkHref"),r);n.setAttribute("linkHref",e,l),o.forEach((function(e){n.setAttribute(e,!0,l)})),a.forEach((function(e){n.removeAttribute(e,l)})),n.setSelection(n.createPositionAfter(l.end.nodeBefore))}else if(""!==e){var u=ni(i.getAttributes());u.set("linkHref",e),o.forEach((function(e){u.set(e,!0)}));var c=r.insertContent(n.createText(e,u),s).end;n.setSelection(c)}["linkHref"].concat(o,a).forEach((function(e){n.removeSelectionAttribute(e)}))}else{var d,f=r.schema.getValidRanges(i.getRanges(),"linkHref"),p=[],v=h(i.getSelectedBlocks());try{for(v.s();!(d=v.n()).done;){var m=d.value;r.schema.checkAttribute(m,"linkHref")&&p.push(n.createRangeOn(m))}}catch(x){v.e(x)}finally{v.f()}var g,y=p.slice(),b=h(f);try{for(b.s();!(g=b.n()).done;){var k=g.value;t._isRangeToUpdate(k,p)&&y.push(k)}}catch(x){b.e(x)}finally{b.f()}var w,_=h(y);try{var C=function(){var t=w.value;n.setAttribute("linkHref",e,t),o.forEach((function(e){n.setAttribute(e,!0,t)})),a.forEach((function(e){n.removeAttribute(e,t)}))};for(_.s();!(w=_.n()).done;)C()}catch(x){_.e(x)}finally{_.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(e){var t=this.editor.model,n=t.document.selection,r=n.getSelectedElement();return hb(r,t.schema)?r.getAttribute(e):n.getAttribute(e)}},{key:"_isRangeToUpdate",value:function(e,t){var n,r=h(t);try{for(r.s();!(n=r.n()).done;)if(n.value.containsRange(e))return!1}catch(i){r.e(i)}finally{r.f()}return!0}}]),n}(fe),bb=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=t.getSelectedElement();hb(n,e.schema)?this.isEnabled=e.schema.checkAttribute(n,"linkHref"):this.isEnabled=e.schema.checkAttributeInSelection(t,"linkHref")}},{key:"execute",value:function(){var e=this.editor,t=this.editor.model,n=t.document.selection,r=e.commands.get("link");t.change((function(e){var i,o=n.isCollapsed?[$v(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),t)]:t.schema.getValidRanges(n.getRanges(),"linkHref"),a=h(o);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(e.removeAttribute("linkHref",s),r){var l,u=h(r.manualDecorators);try{for(u.s();!(l=u.n()).done;){var c=l.value;e.removeAttribute(c.id,s)}}catch(d){u.e(d)}finally{u.f()}}}}catch(d){a.e(d)}finally{a.f()}}))}}]),n}(fe),kb=function(){function e(t){var n=t.id,r=t.label,i=t.attributes,o=t.classes,a=t.styles,s=t.defaultValue;k(this,e),this.id=n,this.set("value"),this.defaultValue=s,this.label=r,this.attributes=i,this.classes=o,this.styles=a}return b(e,[{key:"_createPattern",value:function(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}]),e}();Vs(kb,re);var wb=C(9773),_b={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(wb.Z,_b),wb.Z.locals;var Cb="automatic",xb=/^(https?:)?\/\//,Ab=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),r=t.call(this,e),e.config.define("link",{addTargetToExternalLinks:!1}),r}return b(n,[{key:"init",value:function(){var e=this.editor;e.model.schema.extend("$text",{allowAttributes:"linkHref"}),e.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:fb}),e.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(e,t){return fb(pb(e),t)}}),e.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(e){return e.getAttribute("href")}}}),e.commands.add("link",new yb(e)),e.commands.add("unlink",new bb(e));var t=function(e,t){var n={"Open in a new tab":e("Open in a new tab"),Downloadable:e("Downloadable")};return t.forEach((function(e){return e.label&&n[e.label]&&(e.label=n[e.label]),e})),t}(e.t,function(e){var t=[];if(e)for(var n=0,r=Object.entries(e);n',"unlink"),r.editButtonView=r._createButton(i("Edit link"),Ef.pencil,"edit"),r.set("href"),r._focusables=new Id,r._focusCycler=new Jf({focusables:r._focusables,focusTracker:r.focusTracker,keystrokeHandler:r.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[r.previewButtonView,r.editButtonView,r.unlinkButtonView]}),r}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(e,t,n){var r=new Rf(this.locale);return r.set({label:e,icon:t,tooltip:!0}),r.delegate("execute").to(this,n),r}},{key:"_createPreviewButton",value:function(){var e=new Rf(this.locale),t=this.bindTemplate,n=this.t;return e.set({withText:!0,tooltip:n("Open link in new tab")}),e.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:t.to("href",(function(e){return e&&pb(e)})),target:"_blank",rel:"noopener noreferrer"}}),e.bind("label").to(this,"href",(function(e){return e||n("This link has no URL")})),e.bind("isEnabled").to(this,"href",(function(e){return!!e})),e.template.tag="a",e.template.eventListeners={},e}}]),n}(tf),Nb="link-ui",Rb=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor;e.editing.view.addObserver(md),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=e.plugins.get(Kp),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),e.conversion.for("editingDowncast").markerToHighlight({model:Nb,view:{classes:["ck-fake-link-selection"]}}),e.conversion.for("editingDowncast").markerToElement({model:Nb,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var e=this,t=this.editor,n=new Ob(t.locale),r=t.commands.get("link"),i=t.commands.get("unlink");return n.bind("href").to(r,"value"),n.editButtonView.bind("isEnabled").to(r),n.unlinkButtonView.bind("isEnabled").to(i),this.listenTo(n,"edit",(function(){e._addFormView()})),this.listenTo(n,"unlink",(function(){t.execute("unlink"),e._hideUI()})),n.keystrokes.set("Esc",(function(t,n){e._hideUI(),n()})),n.keystrokes.set(db,(function(t,n){e._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.config.get("link.defaultProtocol"),i=new Ib(t.locale,n);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e})),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",(function(){var n=vb(i.urlInputView.fieldView.element.value,r);t.execute("link",n,i.getDecoratorSwitchesState()),e._closeFormView()})),this.listenTo(i,"cancel",(function(){e._closeFormView()})),i.keystrokes.set("Esc",(function(t,n){e._closeFormView(),n()})),i}},{key:"_createToolbarLinkButton",value:function(){var e=this,t=this.editor,n=t.commands.get("link"),r=t.t;t.keystrokes.set(db,(function(t,r){r(),n.isEnabled&&e._showUI(!0)})),t.ui.componentFactory.add("link",(function(t){var i=new Rf(t);return i.isEnabled=!0,i.label=r("Link"),i.icon='',i.keystroke=db,i.tooltip=!0,i.isToggleable=!0,i.bind("isEnabled").to(n,"isEnabled"),i.bind("isOn").to(n,"value",(function(e){return!!e})),e.listenTo(i,"execute",(function(){return e._showUI(!0)})),i}))}},{key:"_enableUserBalloonInteractions",value:function(){var e=this,t=this.editor.editing.view.document;this.listenTo(t,"click",(function(){e._getSelectedLinkElement()&&e._showUI()})),this.editor.keystrokes.set("Tab",(function(t,n){e._areActionsVisible&&!e.actionsView.focusTracker.isFocused&&(e.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(t,n){e._isUIVisible&&(e._hideUI(),n())})),Sf({emitter:this.formView,activator:function(){return e._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return e._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){var e=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=e.value||""}}},{key:"_closeFormView",value:function(){var e=this.editor.commands.get("link");e.restoreManualDecoratorStates(),void 0!==e.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),e&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),e&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){var e=this.editor;this.stopListening(e.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),e.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection()}}},{key:"_startUpdatingUI",value:function(){var e=this,t=this.editor,n=t.editing.view.document,r=this._getSelectedLinkElement(),i=a(),o=function(){var t=e._getSelectedLinkElement(),n=a();r&&!t||!r&&n!==i?e._hideUI():e._isUIVisible&&e._balloon.updatePosition(e._getBalloonPositionData()),r=t,i=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(e){return e.is("element")}))}this.listenTo(t.ui,"update",o),this.listenTo(this._balloon,"change:visibleView",o)}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}},{key:"_getBalloonPositionData",value:function(){var e=this,t=this.editor.editing.view,n=this.editor.model,r=t.document,i=null;if(n.markers.has(Nb)){var o=Array.from(this.editor.editing.mapper.markerNameToElements(Nb)),a=t.createRange(t.createPositionBefore(o[0]),t.createPositionAfter(o[o.length-1]));i=t.domConverter.viewRangeToDom(a)}else i=function(){var n=e._getSelectedLinkElement();return n?t.domConverter.mapViewToDom(n):t.domConverter.viewRangeToDom(r.selection.getFirstRange())};return{target:i}}},{key:"_getSelectedLinkElement",value:function(){var e=this.editor.editing.view,t=e.document.selection,n=t.getSelectedElement();if(t.isCollapsed||n&&Oh(n))return jb(t.getFirstPosition());var r=t.getFirstRange().getTrimmed(),i=jb(r.start),o=jb(r.end);return i&&i==o&&e.createRangeIn(i).getTrimmed().isEqual(r)?i:null}},{key:"_showFakeVisualSelection",value:function(){var e=this.editor.model;e.change((function(t){var n=e.document.selection.getFirstRange();if(e.markers.has(Nb))t.updateMarker(Nb,{range:n});else if(n.start.isAtEnd){var r=n.start.getLastMatchingPosition((function(t){var n=t.item;return!e.schema.isContent(n)}),{boundaries:n});t.addMarker(Nb,{usingOperation:!1,affectsData:!1,range:t.createRange(r,n.end)})}else t.addMarker(Nb,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var e=this.editor.model;e.markers.has(Nb)&&e.change((function(e){e.removeMarker(Nb)}))}}],[{key:"requires",get:function(){return[Kp]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(ce);function jb(e){return e.getAncestors().find((function(e){return(t=e).is("attributeElement")&&!!t.getCustomProperty("link");var t}))}var Lb=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"),Fb=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor.model.document.selection;t.on("change:range",(function(){e.isEnabled=!t.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var e=this,t=this.editor,n=new Pv(t.model,(function(e){if(function(e){return e.length>4&&" "===e[e.length-1]&&" "!==e[e.length-2]}(e)){var t=zb(e.substr(0,e.length-1));return t?{url:t}:void 0}}));n.on("matched:data",(function(n,r){var i=r.batch,o=r.range,a=r.url;if(i.isTyping){var s=o.end.getShiftedBy(-1),l=s.getShiftedBy(-a.length),u=t.model.createRange(l,s);e._applyAutoLink(a,u)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("enter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition();if(t.parent.previousSibling){var r=n.createRangeIn(t.parent.previousSibling);e._checkAndApplyAutoLinkOnRange(r)}}))}},{key:"_enableShiftEnterHandling",value:function(){var e=this,t=this.editor,n=t.model,r=t.commands.get("shiftEnter");r&&r.on("execute",(function(){var t=n.document.selection.getFirstPosition(),r=n.createRange(n.createPositionAt(t.parent,0),t.getShiftedBy(-1));e._checkAndApplyAutoLinkOnRange(r)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(e){var t=this.editor.model,n=Iv(e,t),r=n.text,i=n.range,o=zb(r);if(o){var a=t.createRange(i.end.getShiftedBy(-o.length),i.end);this._applyAutoLink(o,a)}}},{key:"_applyAutoLink",value:function(e,t){var n=this.editor.model,r=vb(e,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(e,t){return t.schema.checkAttributeInSelection(t.createSelection(e),"linkHref")}(t,n)&&mb(r)&&!function(e){var t=e.start.nodeAfter;return t&&t.hasAttribute("linkHref")}(t)&&this._persistAutoLink(r,t)}},{key:"_persistAutoLink",value:function(e,t){var n=this.editor.model,r=this.editor.plugins.get("Delete");n.enqueueChange((function(i){i.setAttribute("linkHref",e,t),n.enqueueChange((function(){r.requestUndoOnBackspace()}))}))}}],[{key:"requires",get:function(){return[Sh]}},{key:"pluginName",get:function(){return"AutoLink"}}]),n}(ce);function zb(e){var t=Lb.exec(e);return t?t[2]:null}var Bb=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e)).type=r,i}return b(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,r=n.document,i=Array.from(r.selection.getSelectedBlocks()).filter((function(e){return Ub(e,n.schema)})),o=void 0!==t.forceValue?!t.forceValue:this.value;n.change((function(t){if(o){for(var n=i[i.length-1].nextSibling,r=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s=n;)o>i.getAttribute("listIndent")&&(o=i.getAttribute("listIndent")),i.getAttribute("listIndent")==o&&e[t?"unshift":"push"](i),i=i[t?"previousSibling":"nextSibling"]}function Ub(e,t){return t.checkChild(e.parent,"listItem")&&!t.isObject(e)}var Hb=function(e){m(n,e);var t=g(n);function n(e,r){var i;return k(this,n),(i=t.call(this,e))._indentBy="forward"==r?1:-1,i}return b(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var e=this,t=this.editor.model,n=t.document,r=Array.from(n.selection.getSelectedBlocks());t.change((function(t){for(var n=r[r.length-1],i=n.nextSibling;i&&"listItem"==i.name&&i.getAttribute("listIndent")>n.getAttribute("listIndent");)r.push(i),i=i.nextSibling;e._indentBy<0&&(r=r.reverse());var o,a=h(r);try{for(a.s();!(o=a.n()).done;){var s=o.value,l=s.getAttribute("listIndent")+e._indentBy;l<0?t.rename(s,"paragraph"):t.setAttribute("listIndent",l,s)}}catch(u){a.e(u)}finally{a.f()}e.fire("_executeCleanup",r)}))}},{key:"_checkEnabled",value:function(){var e=$s(this.editor.model.document.selection.getSelectedBlocks());if(!e||!e.is("element","listItem"))return!1;if(this._indentBy>0){for(var t=e.getAttribute("listIndent"),n=e.getAttribute("listType"),r=e.previousSibling;r&&r.is("element","listItem")&&r.getAttribute("listIndent")>=t;){if(r.getAttribute("listIndent")==t)return r.getAttribute("listType")==n;r=r.previousSibling}return!1}return!0}}]),n}(fe);function qb(e,t){var n=t.mapper,r=t.writer,i="numbered"==e.getAttribute("listType")?"ol":"ul",o=function(e){var t=e.createContainerElement("li");return t.getFillerOffset=Jb,t}(r),a=r.createContainerElement(i,null);return r.insert(r.createPositionAt(a,0),o),n.bindElements(e,o),o}function Wb(e,t,n,r){var i=t.parent,o=n.mapper,a=n.writer,s=o.toViewPosition(r.createPositionBefore(e)),l=Kb(e.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:e.getAttribute("listIndent")}),u=e.previousSibling;if(l&&l.getAttribute("listIndent")==e.getAttribute("listIndent")){var c=o.toViewElement(l);s=a.breakContainer(a.createPositionAfter(c))}else if(u&&"listItem"==u.name){s=o.toViewPosition(r.createPositionAt(u,"end"));var d=o.findMappedViewAncestor(s),f=function(e){var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if("ul"==r.name||"ol"==r.name)return r}}catch(i){n.e(i)}finally{n.f()}return null}(d);s=f?a.createPositionBefore(f):a.createPositionAt(d,"end")}else s=o.toViewPosition(r.createPositionBefore(e));if(s=$b(s),a.insert(s,i),u&&"listItem"==u.name){var p,v=o.toViewElement(u),m=a.createRange(a.createPositionAt(v,0),s).getWalker({ignoreElementEnd:!0}),g=h(m);try{for(g.s();!(p=g.n()).done;){var y=p.value;if(y.item.is("element","li")){var b=a.breakContainer(a.createPositionBefore(y.item)),k=y.item.parent,w=a.createPositionAt(t,"end");Gb(a,w.nodeBefore,w.nodeAfter),a.move(a.createRangeOn(k),w),m.position=b}}}catch(Z){g.e(Z)}finally{g.f()}}else{var _=i.nextSibling;if(_&&(_.is("element","ul")||_.is("element","ol"))){var C,x=null,A=h(_.getChildren());try{for(A.s();!(C=A.n()).done;){var E=C.value,S=o.toModelElement(E);if(!(S&&S.getAttribute("listIndent")>e.getAttribute("listIndent")))break;x=E}}catch(Z){A.e(Z)}finally{A.f()}x&&(a.breakContainer(a.createPositionAfter(x)),a.move(a.createRangeOn(x.parent),a.createPositionAt(t,"end")))}}Gb(a,i,i.nextSibling),Gb(a,i.previousSibling,i)}function Gb(e,t,n){return!t||!n||"ul"!=t.name&&"ol"!=t.name||t.name!=n.name||t.getAttribute("class")!==n.getAttribute("class")?null:e.mergeContainers(e.createPositionAfter(t))}function $b(e){return e.getLastMatchingPosition((function(e){return e.item.is("uiElement")}))}function Kb(e,t){for(var n=!!t.sameIndent,r=!!t.smallerIndent,i=t.listIndent,o=e;o&&"listItem"==o.name;){var a=o.getAttribute("listIndent");if(n&&i==a||r&&i>a)return o;o="forward"===t.direction?o.nextSibling:o.previousSibling}return null}function Yb(e,t,n,r){e.ui.componentFactory.add(t,(function(i){var o=e.commands.get(t),a=new Rf(i);return a.set({label:n,icon:r,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(o,"value","isEnabled"),a.on("execute",(function(){e.execute(t),e.editing.view.focus()})),a}))}function Jb(){var e=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||e?0:oo.call(this)}function Qb(e){return function(t,n,r){var i=r.consumable;if(i.test(n.item,"insert")&&i.test(n.item,"attribute:listType")&&i.test(n.item,"attribute:listIndent")){i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var o=n.item;Wb(o,qb(o,r),r,e)}}}function Xb(e,t,n){if(n.consumable.test(t.item,e.name)){var r=n.mapper.toViewElement(t.item),i=n.writer;i.breakContainer(i.createPositionBefore(r)),i.breakContainer(i.createPositionAfter(r));var o=r.parent,a="numbered"==t.attributeNewValue?"ol":"ul";i.rename(a,o)}}function ek(e,t,n){n.consumable.consume(t.item,e.name);var r=n.mapper.toViewElement(t.item).parent,i=n.writer;Gb(i,r,r.nextSibling),Gb(i,r.previousSibling,r)}function tk(e,t,n){if(n.consumable.test(t.item,e.name)&&"listItem"!=t.item.name){for(var r=n.mapper.toViewPosition(t.range.start),i=n.writer,o=[];("ul"==r.parent.name||"ol"==r.parent.name)&&"li"==(r=i.breakContainer(r)).parent.name;){var a=r,s=i.createPositionAt(r.parent,"end");if(!a.isEqual(s)){var l=i.remove(i.createRange(a,s));o.push(l)}r=i.createPositionAfter(r.parent)}if(o.length>0){for(var u=0;u0){var d=Gb(i,c,c.nextSibling);d&&d.parent==c&&r.offset--}}Gb(i,r.nodeBefore,r.nodeAfter)}}}function nk(e,t,n){var r=n.mapper.toViewPosition(t.position),i=r.nodeBefore,o=r.nodeAfter;Gb(n.writer,i,o)}function rk(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0})){var r=n.writer,i=r.createElement("listItem"),o=function(e){for(var t=0,n=e.parent;n;){if(n.is("element","li"))t++;else{var r=n.previousSibling;r&&r.is("element","li")&&t++}n=n.parent}return t}(t.viewItem);r.setAttribute("listIndent",o,i);var a=t.viewItem.parent&&"ol"==t.viewItem.parent.name?"numbered":"bulleted";if(r.setAttribute("listType",a,i),!n.safeInsert(i,t.modelCursor))return;var s=function(e,t,n){var r,i=n.writer,o=n.schema,a=i.createPositionAfter(e),s=h(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;if("ul"==l.name||"ol"==l.name)a=n.convertItem(l,a).modelCursor;else{var u=n.convertItem(l,i.createPositionAt(e,"end")),c=u.modelRange.start.nodeAfter;c&&c.is("element")&&!o.checkChild(e,c.name)&&(e=u.modelCursor.parent.is("element","listItem")?u.modelCursor.parent:lk(u.modelCursor),a=i.createPositionAfter(e))}}}catch(d){s.e(d)}finally{s.f()}return a}(i,t.viewItem.getChildren(),n);t.modelRange=r.createRange(t.modelCursor,s),n.updateConversionResult(i,t)}}function ik(e,t,n){if(n.consumable.test(t.viewItem,{name:!0}))for(var r=0,i=Array.from(t.viewItem.getChildren());r0)for(;s&&s.is("element","listItem");)s._setAttribute("listIndent",s.getAttribute("listIndent")+c),s=s.nextSibling}}}function lk(e){var t,n=new _l({startPosition:e});do{t=n.next()}while(!t.value.item.is("element","listItem"));return t.value.item}function uk(e,t,n,r,i,o){var a,s=Kb(t.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:e,foo:"b"}),l=i.mapper,u=i.writer,c=s?s.getAttribute("listIndent"):null;if(s)if(c==e){var d=l.toViewElement(s).parent;a=u.createPositionAfter(d)}else{var f=o.createPositionAt(s,"end");a=l.toViewPosition(f)}else a=n;a=$b(a);for(var p=0,h=v(r.getChildren());pn){var a=void 0;null===r?(r=i-n,a=n):(r>i&&(r=i),a=i-r),t.setAttribute("listIndent",a,e),o=!0}else r=null,n=e.getAttribute("listIndent")+1;e=e.nextSibling}}function g(e){for(var n=[],r=null;e&&e.is("element","listItem");){var i=e.getAttribute("listIndent");if(r&&r.getAttribute("listIndent")>i&&(n=n.slice(0,i+1)),0!=i)if(n[i]){var a=n[i];e.getAttribute("listType")!=a&&(t.setAttribute("listType",a,e),o=!0)}else n[i]=e.getAttribute("listType");r=e,e=e.nextSibling}}}(t.model,e)})),i.mapper.registerViewToModelLength("li",fk),r.mapper.registerViewToModelLength("li",fk),i.mapper.on("modelToViewPosition",ak(i.view)),i.mapper.on("viewToModelPosition",(n=t.model,function(e,t){var r=t.viewPosition,i=r.parent,o=t.mapper;if("ul"==i.name||"ol"==i.name){if(r.isAtEnd){var a=o.toModelElement(r.nodeBefore),s=o.getModelLength(r.nodeBefore);t.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var l=o.toModelElement(r.nodeAfter);t.modelPosition=n.createPositionBefore(l)}e.stop()}else if("li"==i.name&&r.nodeBefore&&("ul"==r.nodeBefore.name||"ol"==r.nodeBefore.name)){for(var u=o.toModelElement(i),c=1,d=r.nodeBefore;d&&ck(d);)c+=o.getModelLength(d),d=d.previousSibling;t.modelPosition=n.createPositionBefore(u).getShiftedBy(c),e.stop()}})),r.mapper.on("modelToViewPosition",ak(i.view)),t.conversion.for("editingDowncast").add((function(e){e.on("insert",tk,{priority:"high"}),e.on("insert:listItem",Qb(t.model)),e.on("attribute:listType:listItem",Xb,{priority:"high"}),e.on("attribute:listType:listItem",ek,{priority:"low"}),e.on("attribute:listIndent:listItem",function(e){return function(t,n,r){if(r.consumable.consume(n.item,"attribute:listIndent")){var i=r.mapper.toViewElement(n.item),o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,l=o.createRangeOn(a);o.remove(l),s&&s.nextSibling&&Gb(o,s,s.nextSibling),uk(n.attributeOldValue+1,n.range.start,l.start,i,r,e),Wb(n.item,i,r,e);var u,c=h(n.item.getChildren());try{for(c.s();!(u=c.n()).done;){var d=u.value;r.consumable.consume(d,"insert")}}catch(f){c.e(f)}finally{c.f()}}}}(t.model)),e.on("remove:listItem",function(e){return function(t,n,r){var i=r.mapper.toViewPosition(n.position).getLastMatchingPosition((function(e){return!e.item.is("element","li")})).nodeAfter,o=r.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var a=i.parent,s=a.previousSibling,l=o.createRangeOn(a),u=o.remove(l);s&&s.nextSibling&&Gb(o,s,s.nextSibling),uk(r.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,l.start,i,r,e);var c,d=h(o.createRangeIn(u).getItems());try{for(d.s();!(c=d.n()).done;){var f=c.value;r.mapper.unbindViewElement(f)}}catch(p){d.e(p)}finally{d.f()}t.stop()}}(t.model)),e.on("remove",nk,{priority:"low"})})),t.conversion.for("dataDowncast").add((function(e){e.on("insert",tk,{priority:"high"}),e.on("insert:listItem",Qb(t.model))})),t.conversion.for("upcast").add((function(e){e.on("element:ul",ik,{priority:"high"}),e.on("element:ol",ik,{priority:"high"}),e.on("element:li",ok,{priority:"high"}),e.on("element:li",rk)})),t.model.on("insertContent",sk,{priority:"high"}),t.commands.add("numberedList",new Bb(t,"numbered")),t.commands.add("bulletedList",new Bb(t,"bulleted")),t.commands.add("indentList",new Hb(t,"forward")),t.commands.add("outdentList",new Hb(t,"backward"));var o=i.view.document;this.listenTo(o,"enter",(function(t,n){var r=e.editor.model.document,i=r.selection.getLastPosition().parent;r.selection.isCollapsed&&"listItem"==i.name&&i.isEmpty&&(e.editor.execute("outdentList"),n.preventDefault(),t.stop())}),{context:"li"}),this.listenTo(o,"delete",(function(t,n){if("backward"===n.direction){var r=e.editor.model.document.selection;if(r.isCollapsed){var i=r.getFirstPosition();if(i.isAtStart){var o=i.parent;"listItem"===o.name&&(o.previousSibling&&"listItem"===o.previousSibling.name||(e.editor.execute("outdentList"),n.preventDefault(),t.stop()))}}}}),{context:"li"}),this.listenTo(t.editing.view.document,"tab",(function(n,r){var i=r.shiftKey?"outdentList":"indentList";e.editor.commands.get(i).isEnabled&&(t.execute(i),r.stopPropagation(),r.preventDefault(),n.stop())}),{context:"li"})}},{key:"afterInit",value:function(){var e=this.editor.commands,t=e.get("indent"),n=e.get("outdent");t&&t.registerChildCommand(e.get("indentList")),n&&n.registerChildCommand(e.get("outdentList"))}}],[{key:"pluginName",get:function(){return"ListEditing"}},{key:"requires",get:function(){return[yh,Sh]}}]),n}(ce);function fk(e){var t,n=1,r=h(e.getChildren());try{for(r.s();!(t=r.n()).done;){var i=t.value;if("ul"==i.name||"ol"==i.name){var o,a=h(i.getChildren());try{for(a.s();!(o=a.n()).done;)n+=fk(o.value)}catch(s){a.e(s)}finally{a.f()}}}}catch(s){r.e(s)}finally{r.f()}return n}var pk=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this.editor.t;Yb(this.editor,"numberedList",e("Numbered List"),''),Yb(this.editor,"bulletedList",e("Bulleted List"),'')}}],[{key:"pluginName",get:function(){return"ListUI"}}]),n}(ce);function hk(e,t){return function(e){e.on("attribute:url:media",n)};function n(n,r,i){if(i.consumable.consume(r.item,n.name)){var o=r.attributeNewValue,a=i.writer,s=i.mapper.toViewElement(r.item),l=v(s.getChildren()).find((function(e){return e.getCustomProperty("media-content")}));a.remove(l);var u=e.getMediaViewElement(a,o,t);a.insert(a.createPositionAt(s,0),u)}}}function vk(e,t,n,r){return e.createContainerElement("figure",{class:"media"},[t.getMediaViewElement(e,n,r),e.createSlot()])}function mk(e){var t=e.getSelectedElement();return t&&t.is("element","media")?t:null}function gk(e,t,n,r){e.change((function(i){var o=i.createElement("media",{url:t});e.insertObject(o,n,null,{setSelection:"on",findOptimalPosition:r})}))}var yk=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"refresh",value:function(){var e=this.editor.model,t=e.document.selection,n=mk(t);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(e){var t=e.getSelectedElement();return!!t&&"media"===t.name}(t)||function(e,t){var n=Bh(e,t).start.parent;return n.isEmpty&&!t.schema.isLimit(n)&&(n=n.parent),t.schema.checkChild(n,"media")}(t,e)}},{key:"execute",value:function(e){var t=this.editor.model,n=t.document.selection,r=mk(n);r?t.change((function(t){t.setAttribute("url",e,r)})):gk(t,e,n,!0)}}]),n}(fe),bk=function(){function e(t,n){k(this,e);var r=n.providers,i=n.extraProviders||[],o=new Set(n.removeProviders),a=r.concat(i).filter((function(e){var t=e.name;return t?!o.has(t):(D("media-embed-no-provider-name",{provider:e}),!1)}));this.locale=t,this.providerDefinitions=a}return b(e,[{key:"hasMedia",value:function(e){return!!this._getMedia(e)}},{key:"getMediaViewElement",value:function(e,t,n){return this._getMedia(t).getViewElement(e,n)}},{key:"_getMedia",value:function(e){if(!e)return new kk(this.locale);e=e.trim();var t,n=h(this.providerDefinitions);try{for(n.s();!(t=n.n()).done;){var r,i=t.value,o=i.html,a=Vr(i.url),s=h(a);try{for(s.s();!(r=s.n()).done;){var l=r.value,u=this._getUrlMatches(e,l);if(u)return new kk(this.locale,e,u,o)}}catch(c){s.e(c)}finally{s.f()}}}catch(c){n.e(c)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(e,t){var n=e.match(t);if(n)return n;var r=e.replace(/^https?:\/\//,"");return(n=r.match(t))||(n=(r=r.replace(/^www\./,"")).match(t))||null}}]),e}(),kk=function(){function e(t,n,r,i){k(this,e),this.url=this._getValidUrl(n),this._locale=t,this._match=r,this._previewRenderer=i}return b(e,[{key:"getViewElement",value:function(e,t){var n,r={};if(t.renderForEditingView||t.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(r["data-oembed-url"]=this.url),t.renderForEditingView&&(r.class="ck-media__wrapper");var i=this._getPreviewHtml(t);n=e.createRawElement("div",r,(function(e,t){t.setContentOf(e,i)}))}else this.url&&(r.url=this.url),n=e.createEmptyElement(t.elementName,r);return e.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(e){return this._previewRenderer?this._previewRenderer(this._match):this.url&&e.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var e=new Df,t=this._locale.t;return e.content='',e.viewBox="0 0 64 42",new Pd({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":t("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(e){return e?e.match(/^https?/)?e:"https://"+e:null}}]),e}(),wk=C(7442),_k={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(wk.Z,_k),wk.Z.locals;var Ck=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),r=t.call(this,e),e.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(e){return'
')}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function(e){return'
')}},{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:function(e){var t=e[1],n=e[2];return'
')}},{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:function(e){return'
')}},{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/}]}),r.registry=new bk(e.locale,e.config.get("mediaEmbed")),r}return b(n,[{key:"init",value:function(){var e=this.editor,t=e.model.schema,n=e.t,r=e.conversion,i=e.config.get("mediaEmbed.previewsInData"),o=e.config.get("mediaEmbed.elementName"),a=this.registry;e.commands.add("mediaEmbed",new yk(e)),t.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),r.for("dataDowncast").elementToStructure({model:"media",view:function(e,t){var n=t.writer,r=e.getAttribute("url");return vk(n,a,r,{elementName:o,renderMediaPreview:r&&i})}}),r.for("dataDowncast").add(hk(a,{elementName:o,renderMediaPreview:i})),r.for("editingDowncast").elementToStructure({model:"media",view:function(e,t){var r=t.writer,i=e.getAttribute("url");return function(e,t,n){return t.setCustomProperty("media",!0,e),Nh(e,t,{label:n})}(vk(r,a,i,{elementName:o,renderForEditingView:!0}),r,n("media widget"))}}),r.for("editingDowncast").add(hk(a,{elementName:o,renderForEditingView:!0})),r.for("upcast").elementToElement({view:function(e){return["oembed",o].includes(e.name)&&e.getAttribute("url")?{name:!0}:null},model:function(e,t){var n=t.writer,r=e.getAttribute("url");if(a.hasMedia(r))return n.createElement("media",{url:r})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(e,t){var n=t.writer,r=e.getAttribute("data-oembed-url");if(a.hasMedia(r))return n.createElement("media",{url:r})}}).add((function(e){e.on("element:figure",(function(e,t,n){if(n.consumable.consume(t.viewItem,{name:!0,classes:"media"})){var r=n.convertChildren(t.viewItem,t.modelCursor),i=r.modelRange,o=r.modelCursor;t.modelRange=i,t.modelCursor=o,$s(i.getItems())||n.consumable.revert(t.viewItem,{name:!0,classes:"media"})}}))}))}}],[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),n}(ce),xk=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/,Ak=function(e){m(n,e);var t=g(n);function n(e){var r;return k(this,n),(r=t.call(this,e))._timeoutId=null,r._positionToInsert=null,r}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.model.document;this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(){var t=n.selection.getFirstRange(),r=Bc.fromPosition(t.start);r.stickiness="toPrevious";var i=Bc.fromPosition(t.end);i.stickiness="toNext",n.once("change:data",(function(){e._embedMediaBetweenPositions(r,i),r.detach(),i.detach()}),{priority:"high"})})),t.commands.get("undo").on("execute",(function(){e._timeoutId&&(Ur.window.clearTimeout(e._timeoutId),e._positionToInsert.detach(),e._timeoutId=null,e._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(e,t){var n,r=this,i=this.editor,o=i.plugins.get(Ck).registry,a=new Vl(e,t),s=a.getWalker({ignoreElementEnd:!0}),l="",u=h(s);try{for(u.s();!(n=u.n()).done;){var c=n.value;c.item.is("$textProxy")&&(l+=c.item.data)}}catch(d){u.e(d)}finally{u.f()}(l=l.trim()).match(xk)&&o.hasMedia(l)&&i.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Bc.fromPosition(e),this._timeoutId=Ur.window.setTimeout((function(){i.model.change((function(e){var t;r._timeoutId=null,e.remove(a),a.detach(),"$graveyard"!==r._positionToInsert.root.rootName&&(t=r._positionToInsert),gk(i.model,l,t,!1),r._positionToInsert.detach(),r._positionToInsert=null})),i.plugins.get("Delete").requestUndoOnBackspace()}),100)):a.detach()}}],[{key:"requires",get:function(){return[hv,Sh,om]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),n}(ce),Ek=C(9292),Sk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};xa()(Ek.Z,Sk),Ek.Z.locals;var Zk=function(e){m(n,e);var t=g(n);function n(e,r){var i;k(this,n),i=t.call(this,r);var o=r.t;return i.focusTracker=new Ks,i.keystrokes=new Ys,i.set("mediaURLInputValue",""),i.urlInputView=i._createUrlInput(),i.saveButtonView=i._createButton(o("Save"),Ef.check,"ck-button-save"),i.saveButtonView.type="submit",i.saveButtonView.bind("isEnabled").to(d(i),"mediaURLInputValue",(function(e){return!!e})),i.cancelButtonView=i._createButton(o("Cancel"),Ef.cancel,"ck-button-cancel","cancel"),i._focusables=new Id,i._focusCycler=new Jf({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i._validators=e,i.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[i.urlInputView,i.saveButtonView,i.cancelButtonView]}),Zf(d(i)),i}return b(n,[{key:"render",value:function(){var e=this;s(l(n.prototype),"render",this).call(this),Mf({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach((function(t){e._focusables.add(t),e.focusTracker.add(t.element)})),this.keystrokes.listenTo(this.element);var t=function(e){return e.stopPropagation()};this.keystrokes.set("arrowright",t),this.keystrokes.set("arrowleft",t),this.keystrokes.set("arrowup",t),this.keystrokes.set("arrowdown",t),this.listenTo(this.urlInputView.element,"selectstart",(function(e,t){t.stopPropagation()}),{priority:"high"})}},{key:"destroy",value:function(){s(l(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(e){this.urlInputView.fieldView.element.value=e.trim()}},{key:"isValid",value:function(){this.resetFormStatus();var e,t=h(this._validators);try{for(t.s();!(e=t.n()).done;){var n=(0,e.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(r){t.e(r)}finally{t.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var e=this,t=this.locale.t,n=new zp(this.locale,Bp),r=n.fieldView;return this._urlInputViewInfoDefault=t("Paste the media URL in the input."),this._urlInputViewInfoTip=t("Tip: Paste the URL into the content to embed faster."),n.label=t("Media URL"),n.infoText=this._urlInputViewInfoDefault,r.on("input",(function(){n.infoText=r.element.value?e._urlInputViewInfoTip:e._urlInputViewInfoDefault,e.mediaURLInputValue=r.element.value.trim()})),n}},{key:"_createButton",value:function(e,t,n,r){var i=new Rf(this.locale);return i.set({label:e,icon:t,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),r&&i.delegate("execute").to(this,r),i}}]),n}(tf),Mk=function(e){m(n,e);var t=g(n);function n(){return k(this,n),t.apply(this,arguments)}return b(n,[{key:"init",value:function(){var e=this,t=this.editor,n=t.commands.get("mediaEmbed"),r=t.plugins.get(Ck).registry;t.ui.componentFactory.add("mediaEmbed",(function(i){var o=bp(i),a=new Zk(function(e,t){return[function(t){if(!t.url.length)return e("The URL must not be empty.")},function(n){if(!t.hasMedia(n.url))return e("This media URL is not supported.")}]}(t.t,r),t.locale);return e._setUpDropdown(o,a,n,t),e._setUpForm(o,a,n),o}))}},{key:"_setUpDropdown",value:function(e,t,n){var r=this.editor,i=r.t,o=e.buttonView;e.bind("isEnabled").to(n),e.panelView.children.add(t),o.set({label:i("Insert media"),icon:'',tooltip:!0}),o.on("open",(function(){t.disableCssTransitions(),t.url=n.value||"",t.urlInputView.fieldView.select(),t.enableCssTransitions()}),{priority:"low"}),e.on("submit",(function(){t.isValid()&&(r.execute("mediaEmbed",t.url),r.editing.view.focus())})),e.on("change:isOpen",(function(){return t.resetFormStatus()})),e.on("cancel",(function(){r.editing.view.focus()}))}},{key:"_setUpForm",value:function(e,t,n){t.delegate("submit","cancel").to(e),t.urlInputView.bind("value").to(n,"value"),t.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(e){return!e}))}}],[{key:"requires",get:function(){return[Ck]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(ce),Tk=C(4652),Ik={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};function Pk(e,t,n,r){var i=r.blockElements,o=r.inlineObjectElements,a=n.createPositionAt(e,"forward"==t?"after":"before");return a=a.getLastMatchingPosition((function(e){var t=e.item;return t.is("element")&&!i.includes(t.name)&&!o.includes(t.name)}),{direction:t}),"forward"==t?a.nodeAfter:a.nodeBefore}function Dk(e,t){return!!e&&e.is("element")&&t.includes(e.name)}function Ok(e,t){if(e.childCount){var n=new yd(e.document),r=function(e,t){var n,r=t.createRangeIn(e),i=new ri({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),o=[],a=h(r);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&i.match(s.item)){var l=jk(s.item);o.push({element:s.item,id:l.id,order:l.order,indent:l.indent})}}}catch(u){a.e(u)}finally{a.f()}return o}(e,n);if(r.length){var i=null,o=1;r.forEach((function(e,a){var s,l,u=function(e,t){if(!e)return!0;if(e.id!==t.id)return t.indent-e.indent!=1;var n,r=t.element.previousSibling;return!r||!((n=r).is("element","ol")||n.is("element","ul"))}(r[a-1],e),c=(l=e,(s=u?null:r[a-1])?l.indent-s.indent:l.indent-1);if(u&&(i=null,o=1),!i||0!==c){var d=function(e,t){var n=/mso-level-number-format:([^;]{0,100});/gi,r=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,i=new RegExp("@list l".concat(e.id,":level").concat(e.indent,"\\s*({[^}]*)"),"gi").exec(t),o="decimal",a="ol",s=null;if(i&&i[1]){var l=n.exec(i[1]);if(l&&l[1]&&(a="bullet"!==(o=l[1].trim())&&"image"!==o?"ol":"ul"),"bullet"===o){var u=function(e){var t=function(e){if(e.getChild(0).is("$text"))return null;var t,n=h(e.getChildren());try{for(n.s();!(t=n.n()).done;){var r=t.value;if(r.is("element","span")){var i=r.getChild(0);return i.is("$text")?i:i.getChild(0)}}}catch(o){n.e(o)}finally{n.f()}}(e);if(!t)return null;var n=t._data;return"o"===n?"circle":"\xb7"===n?"disc":"\xa7"===n?"square":null}(e.element);u&&(o=u)}else{var c=r.exec(i[1]);c&&c[1]&&(s=parseInt(c[1]))}}return{type:a,startIndex:s,style:Nk(o)}}(e,t);if(i){if(e.indent>o){var f=i.getChild(i.childCount-1),p=f.getChild(f.childCount-1);i=Rk(d,p,n),o+=1}else if(e.indent1&&n.setAttribute("start",e.startIndex,i),i}function jk(e){var t={},n=e.getStyle("mso-list");if(n){var r=n.match(/(^|\s{1,100})l(\d+)/i),i=n.match(/\s{0,100}lfo(\d+)/i),o=n.match(/\s{0,100}level(\d+)/i);r&&i&&o&&(t.id=r[2],t.order=i[1],t.indent=o[1])}return t}xa()(Tk.Z,Ik),Tk.Z.locals;var Lk=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Fk=function(){function e(t){k(this,e),this.document=t}return b(e,[{key:"isActive",value:function(e){return Lk.test(e)}},{key:"execute",value:function(e){var t=new yd(this.document),n=e._parsedData.body;!function(e,t){var n,r=h(e.getChildren());try{for(r.s();!(n=r.n()).done;){var i=n.value;if(i.is("element","b")&&"normal"===i.getStyle("font-weight")){var o=e.getChildIndex(i);t.remove(i),t.insertChild(o,i.getChildren(),e)}}}catch(a){r.e(a)}finally{r.f()}}(n,t),function(e,t){var n,r=h(t.createRangeIn(e));try{for(r.s();!(n=r.n()).done;){var i=n.value.item;if(i.is("element","li")){var o=i.getChild(0);o&&o.is("element","p")&&t.unwrapElement(o)}}}catch(a){r.e(a)}finally{r.f()}}(n,t),function(e,t){var n,r=new Ao(t.document.stylesProcessor),i=new za(r,{renderingMode:"data"}),o=i.blockElements,a=i.inlineObjectElements,s=[],l=h(t.createRangeIn(e));try{for(l.s();!(n=l.n()).done;){var u=n.value.item;if(u.is("element","br")){var c=Pk(u,"forward",t,{blockElements:o,inlineObjectElements:a}),d=Pk(u,"backward",t,{blockElements:o,inlineObjectElements:a}),f=Dk(c,o);(Dk(d,o)||f)&&s.push(u)}}}catch(g){l.e(g)}finally{l.f()}for(var p=0,v=s;p-1}))?a.push(u):u.getAttribute("src")||a.push(u)}}}catch(v){s.e(v)}finally{s.f()}for(var d=0,f=a;d/i,Uk=/xmlns:o="urn:schemas-microsoft-com/i,Hk=function(){function e(t){k(this,e),this.document=t}return b(e,[{key:"isActive",value:function(e){return Vk.test(e)||Uk.test(e)}},{key:"execute",value:function(e){var t=e._parsedData,n=t.body;Ok(n,t.stylesString),zk(n,e.dataTransfer.getData("text/rtf")),e.content=n}}]),e}();function qk(e){return e.replace(/(\s+)<\/span>/g,(function(e,t){return 1===t.length?" ":Array(t.length+1).join("\xa0 ").substr(0,t.length)}))}function Wk(e,t){var n=new DOMParser,r=function(e){return qk(qk(e)).replace(/([^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<\/span>/g,"").replace(/ <\//g,"\xa0<\/o:p>/g,"\xa0").replace(/( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)<")}(function(e){var t="",n="",r=e.indexOf(t);if(r<0)return e;var i=e.indexOf(n,r+t.length);return e.substring(0,r+t.length)+(i>=0?e.substring(i):"")}(e=e.replace(/