@vtx/modals2 5.0.12 → 5.0.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/_components/vm-card-statistics/index.less +27 -27
- package/lib/_components/vm-extra-tab/index.js +8 -0
- package/lib/_components/vm-extra-tab/style/index.less +1 -0
- package/lib/_components/vm-factor-list/index.less +11 -11
- package/lib/_components/vm-table/index.js +4 -4
- package/lib/_util/http.js +6 -0
- package/lib/index.js +2 -1
- package/lib/vtx-base-modal/Header/index.less +98 -98
- package/lib/vtx-base-modal/Tabs/index.less +31 -31
- package/lib/vtx-car-modal/components/Info/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/OilConsumption/index.less +6 -6
- package/lib/vtx-car-modal/content/Common/WaterConsumption/index.less +6 -6
- package/lib/vtx-cc-unit-modal/components/BaseInfo/index.less +6 -6
- package/lib/vtx-cp-modal/components/ExeceptionInfo/AlarmRecord.js +5 -5
- package/lib/vtx-cp-modal/components/SyInfo/index.js +3 -0
- package/lib/vtx-device-modal/components/DataAnalysis/index.less +66 -66
- package/lib/vtx-restaurant-modal/components/Basic/index.less +16 -16
- package/lib/vtx-restaurant-modal/config.js +52 -52
- package/lib/vtx-road-modal/components/BaseInfo/index.less +34 -31
- package/lib/vtx-road-modal/components/Statistical/index.less +32 -32
- package/lib/vtx-wr-modal/components/Base/Ptss.js +0 -6
- package/lib/vtx-wr-modal/components/Base/Sjjg.js +2 -5
- package/lib/vtx-wr-modal/components/Base/index.less +5 -10
- package/lib/vtx-wr-modal/components/Build/index.js +3 -2
- package/lib/vtx-wr-modal/components/Score/index.js +4 -4
- package/lib/vtx-wr-modal/index.js +15 -2
- package/lib/vtx-zf-modal/components/Base/index.js +244 -0
- package/lib/vtx-zf-modal/components/Base/index.less +105 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.d.ts +109 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js +5 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/ckeditor.js.map +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/af.js +33 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ar.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ast.js +109 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/az.js +221 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bg.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/bs.js +80 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ca.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/cs.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/da.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de-ch.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/de.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/el.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-au.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en-gb.js +215 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/en.js +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eo.js +120 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es-co.js +36 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/es.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/et.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/eu.js +121 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fa.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/fr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/gu.js +22 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/he.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/hu.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/id.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/it.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ja.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/jv.js +106 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kk.js +13 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/km.js +127 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/kn.js +121 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ko.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ku.js +219 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lt.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/lv.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ms.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nb.js +199 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ne.js +215 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/nl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/no.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/oc.js +21 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pl.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt-br.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/pt.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ro.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ru.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/si.js +76 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sk.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sl.js +78 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sq.js +208 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr-latn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/sv.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/th.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tk.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tr.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/tt.js +170 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ug.js +205 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uk.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/ur.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/uz.js +220 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/vi.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh-cn.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/ckeditor/translations/zh.js +222 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/Event.js +42 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/context.js +98 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/index.js +3 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/context/useContextComponent.js +16 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.js +294 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/index.less +133 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/utils/util.js +67 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/view.js +216 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/CKModal.js +77 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/OpenPanelCommand.js +31 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/config.js +146 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/FormView.js +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.js +341 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/editableDiv/index.less +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/date.js +334 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.js +330 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/input/index.less +36 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/FormView.js +93 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/checkbox.js +335 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.js +335 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/radio/index.less +35 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.js +338 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/sign/index.less +1 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/style.less +92 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/FormView.js +94 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.js +328 -0
- package/lib/vtx-zf-modal/components/CkEditorCustom/widgets/textarea/index.less +1 -0
- package/lib/vtx-zf-modal/components/Document/index.js +84 -0
- package/lib/vtx-zf-modal/components/Document/index.less +47 -0
- package/lib/vtx-zf-modal/components/File/index.js +192 -0
- package/lib/vtx-zf-modal/components/File/index.less +43 -0
- package/lib/vtx-zf-modal/components/Process/index.js +196 -0
- package/lib/vtx-zf-modal/components/Process/index.less +107 -0
- package/lib/vtx-zf-modal/components/Record/index.js +108 -0
- package/lib/vtx-zf-modal/components/Record/index.less +34 -0
- package/lib/vtx-zf-modal/components/Right/index.js +45 -0
- package/lib/vtx-zf-modal/components/index.js +6 -0
- package/lib/vtx-zf-modal/index.js +125 -0
- package/lib/vtx-zf-modal/style/index.js +7 -0
- package/lib/vtx-zf-modal/style/index.less +1 -0
- package/package.json +2 -1
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
function _wrapRegExp(){_wrapRegExp=function _wrapRegExp(e,r){return new BabelRegExp(e,void 0,r);};var e=RegExp.prototype,r=new WeakMap();function BabelRegExp(e,t,p){var o=new RegExp(e,t);return r.set(o,p||r.get(e)),_setPrototypeOf(o,BabelRegExp.prototype);}function buildGroups(e,t){var p=r.get(t);return Object.keys(p).reduce(function(r,t){var o=p[t];if("number"==typeof o)r[t]=e[o];else{for(var i=0;void 0===e[o[i]]&&i+1<o.length;)i++;r[t]=e[o[i]];}return r;},Object.create(null));}return _inherits(BabelRegExp,RegExp),BabelRegExp.prototype.exec=function(r){var t=e.exec.call(this,r);if(t){t.groups=buildGroups(t,this);var p=t.indices;p&&(p.groups=buildGroups(p,this));}return t;},BabelRegExp.prototype[Symbol.replace]=function(t,p){if("string"==typeof p){var o=r.get(this);return e[Symbol.replace].call(this,t,p.replace(/\$<([^>]+)>/g,function(e,r){var t=o[r];return"$"+(Array.isArray(t)?t.join("$"):t);}));}if("function"==typeof p){var i=this;return e[Symbol.replace].call(this,t,function(){var e=arguments;return"object"!=_typeof(e[e.length-1])&&(e=[].slice.call(e)).push(buildGroups(e,i)),p.apply(this,e);});}return e[Symbol.replace].call(this,t,p);},_wrapRegExp.apply(this,arguments);}function asyncGeneratorStep(gen,resolve,reject,_next,_throw,key,arg){try{var info=gen[key](arg);var value=info.value;}catch(error){reject(error);return;}if(info.done){resolve(value);}else{Promise.resolve(value).then(_next,_throw);}}function _asyncToGenerator(fn){return function(){var self=this,args=arguments;return new Promise(function(resolve,reject){var gen=fn.apply(self,args);function _next(value){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"next",value);}function _throw(err){asyncGeneratorStep(gen,resolve,reject,_next,_throw,"throw",err);}_next(undefined);});};}function ownKeys(e,r){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);r&&(o=o.filter(function(r){return Object.getOwnPropertyDescriptor(e,r).enumerable;})),t.push.apply(t,o);}return t;}function _objectSpread(e){for(var r=1;r<arguments.length;r++){var t=null!=arguments[r]?arguments[r]:{};r%2?ownKeys(Object(t),!0).forEach(function(r){_defineProperty(e,r,t[r]);}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):ownKeys(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r));});}return e;}function _defineProperty(obj,key,value){key=_toPropertyKey(key);if(key in obj){Object.defineProperty(obj,key,{value:value,enumerable:true,configurable:true,writable:true});}else{obj[key]=value;}return obj;}function _regeneratorRuntime(){"use strict";/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */_regeneratorRuntime=function _regeneratorRuntime(){return e;};var t,e={},r=Object.prototype,n=r.hasOwnProperty,o=Object.defineProperty||function(t,e,r){t[e]=r.value;},i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",c=i.asyncIterator||"@@asyncIterator",u=i.toStringTag||"@@toStringTag";function define(t,e,r){return Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}),t[e];}try{define({},"");}catch(t){define=function define(t,e,r){return t[e]=r;};}function wrap(t,e,r,n){var i=e&&e.prototype instanceof Generator?e:Generator,a=Object.create(i.prototype),c=new Context(n||[]);return o(a,"_invoke",{value:makeInvokeMethod(t,r,c)}),a;}function tryCatch(t,e,r){try{return{type:"normal",arg:t.call(e,r)};}catch(t){return{type:"throw",arg:t};}}e.wrap=wrap;var h="suspendedStart",l="suspendedYield",f="executing",s="completed",y={};function Generator(){}function GeneratorFunction(){}function GeneratorFunctionPrototype(){}var p={};define(p,a,function(){return this;});var d=Object.getPrototypeOf,v=d&&d(d(values([])));v&&v!==r&&n.call(v,a)&&(p=v);var g=GeneratorFunctionPrototype.prototype=Generator.prototype=Object.create(p);function defineIteratorMethods(t){["next","throw","return"].forEach(function(e){define(t,e,function(t){return this._invoke(e,t);});});}function AsyncIterator(t,e){function invoke(r,o,i,a){var c=tryCatch(t[r],t,o);if("throw"!==c.type){var u=c.arg,h=u.value;return h&&"object"==_typeof(h)&&n.call(h,"__await")?e.resolve(h.__await).then(function(t){invoke("next",t,i,a);},function(t){invoke("throw",t,i,a);}):e.resolve(h).then(function(t){u.value=t,i(u);},function(t){return invoke("throw",t,i,a);});}a(c.arg);}var r;o(this,"_invoke",{value:function value(t,n){function callInvokeWithMethodAndArg(){return new e(function(e,r){invoke(t,n,e,r);});}return r=r?r.then(callInvokeWithMethodAndArg,callInvokeWithMethodAndArg):callInvokeWithMethodAndArg();}});}function makeInvokeMethod(e,r,n){var o=h;return function(i,a){if(o===f)throw new Error("Generator is already running");if(o===s){if("throw"===i)throw a;return{value:t,done:!0};}for(n.method=i,n.arg=a;;){var c=n.delegate;if(c){var u=maybeInvokeDelegate(c,n);if(u){if(u===y)continue;return u;}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===h)throw o=s,n.arg;n.dispatchException(n.arg);}else"return"===n.method&&n.abrupt("return",n.arg);o=f;var p=tryCatch(e,r,n);if("normal"===p.type){if(o=n.done?s:l,p.arg===y)continue;return{value:p.arg,done:n.done};}"throw"===p.type&&(o=s,n.method="throw",n.arg=p.arg);}};}function maybeInvokeDelegate(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,maybeInvokeDelegate(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),y;var i=tryCatch(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,y;var a=i.arg;return a?a.done?(r[e.resultName]=a.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,y):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,y);}function pushTryEntry(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e);}function resetTryEntry(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e;}function Context(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(pushTryEntry,this),this.reset(!0);}function values(e){if(e||""===e){var r=e[a];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function next(){for(;++o<e.length;)if(n.call(e,o))return next.value=e[o],next.done=!1,next;return next.value=t,next.done=!0,next;};return i.next=i;}}throw new TypeError(_typeof(e)+" is not iterable");}return GeneratorFunction.prototype=GeneratorFunctionPrototype,o(g,"constructor",{value:GeneratorFunctionPrototype,configurable:!0}),o(GeneratorFunctionPrototype,"constructor",{value:GeneratorFunction,configurable:!0}),GeneratorFunction.displayName=define(GeneratorFunctionPrototype,u,"GeneratorFunction"),e.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===GeneratorFunction||"GeneratorFunction"===(e.displayName||e.name));},e.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,GeneratorFunctionPrototype):(t.__proto__=GeneratorFunctionPrototype,define(t,u,"GeneratorFunction")),t.prototype=Object.create(g),t;},e.awrap=function(t){return{__await:t};},defineIteratorMethods(AsyncIterator.prototype),define(AsyncIterator.prototype,c,function(){return this;}),e.AsyncIterator=AsyncIterator,e.async=function(t,r,n,o,i){void 0===i&&(i=Promise);var a=new AsyncIterator(wrap(t,r,n,o),i);return e.isGeneratorFunction(r)?a:a.next().then(function(t){return t.done?t.value:a.next();});},defineIteratorMethods(g),define(g,u,"Generator"),define(g,a,function(){return this;}),define(g,"toString",function(){return"[object Generator]";}),e.keys=function(t){var e=Object(t),r=[];for(var n in e)r.push(n);return r.reverse(),function next(){for(;r.length;){var t=r.pop();if(t in e)return next.value=t,next.done=!1,next;}return next.done=!0,next;};},e.values=values,Context.prototype={constructor:Context,reset:function reset(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(resetTryEntry),!e)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t);},stop:function stop(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval;},dispatchException:function dispatchException(e){if(this.done)throw e;var r=this;function handle(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o;}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return handle("end");if(i.tryLoc<=this.prev){var c=n.call(i,"catchLoc"),u=n.call(i,"finallyLoc");if(c&&u){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}else if(c){if(this.prev<i.catchLoc)return handle(i.catchLoc,!0);}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return handle(i.finallyLoc);}}}},abrupt:function abrupt(t,e){for(var r=this.tryEntries.length-1;r>=0;--r){var o=this.tryEntries[r];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var i=o;break;}}i&&("break"===t||"continue"===t)&&i.tryLoc<=e&&e<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=t,a.arg=e,i?(this.method="next",this.next=i.finallyLoc,y):this.complete(a);},complete:function complete(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),y;},finish:function finish(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.finallyLoc===t)return this.complete(r.completion,r.afterLoc),resetTryEntry(r),y;}},catch:function _catch(t){for(var e=this.tryEntries.length-1;e>=0;--e){var r=this.tryEntries[e];if(r.tryLoc===t){var n=r.completion;if("throw"===n.type){var o=n.arg;resetTryEntry(r);}return o;}}throw new Error("illegal catch attempt");},delegateYield:function delegateYield(e,r,n){return this.delegate={iterator:values(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),y;}},e;}function _get(){if(typeof Reflect!=="undefined"&&Reflect.get){_get=Reflect.get.bind();}else{_get=function _get(target,property,receiver){var base=_superPropBase(target,property);if(!base)return;var desc=Object.getOwnPropertyDescriptor(base,property);if(desc.get){return desc.get.call(arguments.length<3?target:receiver);}return desc.value;};}return _get.apply(this,arguments);}function _superPropBase(object,property){while(!Object.prototype.hasOwnProperty.call(object,property)){object=_getPrototypeOf(object);if(object===null)break;}return object;}function _slicedToArray(arr,i){return _arrayWithHoles(arr)||_iterableToArrayLimit(arr,i)||_unsupportedIterableToArray(arr,i)||_nonIterableRest();}function _nonIterableRest(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArrayLimit(r,l){var t=null==r?null:"undefined"!=typeof Symbol&&r[Symbol.iterator]||r["@@iterator"];if(null!=t){var e,n,i,u,a=[],f=!0,o=!1;try{if(i=(t=t.call(r)).next,0===l){if(Object(t)!==t)return;f=!1;}else for(;!(f=(e=i.call(t)).done)&&(a.push(e.value),a.length!==l);f=!0);}catch(r){o=!0,n=r;}finally{try{if(!f&&null!=t.return&&(u=t.return(),Object(u)!==u))return;}finally{if(o)throw n;}}return a;}}function _arrayWithHoles(arr){if(Array.isArray(arr))return arr;}function _toConsumableArray(arr){return _arrayWithoutHoles(arr)||_iterableToArray(arr)||_unsupportedIterableToArray(arr)||_nonIterableSpread();}function _nonIterableSpread(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}function _iterableToArray(iter){if(typeof Symbol!=="undefined"&&iter[Symbol.iterator]!=null||iter["@@iterator"]!=null)return Array.from(iter);}function _arrayWithoutHoles(arr){if(Array.isArray(arr))return _arrayLikeToArray(arr);}function _wrapNativeSuper(Class){var _cache=typeof Map==="function"?new Map():undefined;_wrapNativeSuper=function _wrapNativeSuper(Class){if(Class===null||!_isNativeFunction(Class))return Class;if(typeof Class!=="function"){throw new TypeError("Super expression must either be null or a function");}if(typeof _cache!=="undefined"){if(_cache.has(Class))return _cache.get(Class);_cache.set(Class,Wrapper);}function Wrapper(){return _construct(Class,arguments,_getPrototypeOf(this).constructor);}Wrapper.prototype=Object.create(Class.prototype,{constructor:{value:Wrapper,enumerable:false,writable:true,configurable:true}});return _setPrototypeOf(Wrapper,Class);};return _wrapNativeSuper(Class);}function _construct(Parent,args,Class){if(_isNativeReflectConstruct()){_construct=Reflect.construct.bind();}else{_construct=function _construct(Parent,args,Class){var a=[null];a.push.apply(a,args);var Constructor=Function.bind.apply(Parent,a);var instance=new Constructor();if(Class)_setPrototypeOf(instance,Class.prototype);return instance;};}return _construct.apply(null,arguments);}function _isNativeFunction(fn){try{return Function.toString.call(fn).indexOf("[native code]")!==-1;}catch(e){return typeof fn==="function";}}function _classCallCheck(instance,Constructor){if(!(instance instanceof Constructor)){throw new TypeError("Cannot call a class as a function");}}function _defineProperties(target,props){for(var i=0;i<props.length;i++){var descriptor=props[i];descriptor.enumerable=descriptor.enumerable||false;descriptor.configurable=true;if("value"in descriptor)descriptor.writable=true;Object.defineProperty(target,_toPropertyKey(descriptor.key),descriptor);}}function _createClass(Constructor,protoProps,staticProps){if(protoProps)_defineProperties(Constructor.prototype,protoProps);if(staticProps)_defineProperties(Constructor,staticProps);Object.defineProperty(Constructor,"prototype",{writable:false});return Constructor;}function _toPropertyKey(t){var i=_toPrimitive(t,"string");return"symbol"==_typeof(i)?i:String(i);}function _toPrimitive(t,r){if("object"!=_typeof(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,r||"default");if("object"!=_typeof(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.");}return("string"===r?String:Number)(t);}function _inherits(subClass,superClass){if(typeof superClass!=="function"&&superClass!==null){throw new TypeError("Super expression must either be null or a function");}subClass.prototype=Object.create(superClass&&superClass.prototype,{constructor:{value:subClass,writable:true,configurable:true}});Object.defineProperty(subClass,"prototype",{writable:false});if(superClass)_setPrototypeOf(subClass,superClass);}function _setPrototypeOf(o,p){_setPrototypeOf=Object.setPrototypeOf?Object.setPrototypeOf.bind():function _setPrototypeOf(o,p){o.__proto__=p;return o;};return _setPrototypeOf(o,p);}function _createSuper(Derived){var hasNativeReflectConstruct=_isNativeReflectConstruct();return function _createSuperInternal(){var Super=_getPrototypeOf(Derived),result;if(hasNativeReflectConstruct){var NewTarget=_getPrototypeOf(this).constructor;result=Reflect.construct(Super,arguments,NewTarget);}else{result=Super.apply(this,arguments);}return _possibleConstructorReturn(this,result);};}function _possibleConstructorReturn(self,call){if(call&&(_typeof(call)==="object"||typeof call==="function")){return call;}else if(call!==void 0){throw new TypeError("Derived constructors may only return object or undefined");}return _assertThisInitialized(self);}function _assertThisInitialized(self){if(self===void 0){throw new ReferenceError("this hasn't been initialised - super() hasn't been called");}return self;}function _isNativeReflectConstruct(){if(typeof Reflect==="undefined"||!Reflect.construct)return false;if(Reflect.construct.sham)return false;if(typeof Proxy==="function")return true;try{Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}));return true;}catch(e){return false;}}function _getPrototypeOf(o){_getPrototypeOf=Object.setPrototypeOf?Object.getPrototypeOf.bind():function _getPrototypeOf(o){return o.__proto__||Object.getPrototypeOf(o);};return _getPrototypeOf(o);}function _createForOfIteratorHelper(o,allowArrayLike){var it=typeof Symbol!=="undefined"&&o[Symbol.iterator]||o["@@iterator"];if(!it){if(Array.isArray(o)||(it=_unsupportedIterableToArray(o))||allowArrayLike&&o&&typeof o.length==="number"){if(it)o=it;var i=0;var F=function F(){};return{s:F,n:function n(){if(i>=o.length)return{done:true};return{done:false,value:o[i++]};},e:function e(_e373){throw _e373;},f:F};}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}var normalCompletion=true,didErr=false,err;return{s:function s(){it=it.call(o);},n:function n(){var step=it.next();normalCompletion=step.done;return step;},e:function e(_e374){didErr=true;err=_e374;},f:function f(){try{if(!normalCompletion&&it.return!=null)it.return();}finally{if(didErr)throw err;}}};}function _unsupportedIterableToArray(o,minLen){if(!o)return;if(typeof o==="string")return _arrayLikeToArray(o,minLen);var n=Object.prototype.toString.call(o).slice(8,-1);if(n==="Object"&&o.constructor)n=o.constructor.name;if(n==="Map"||n==="Set")return Array.from(o);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _arrayLikeToArray(o,minLen);}function _arrayLikeToArray(arr,len){if(len==null||len>arr.length)len=arr.length;for(var i=0,arr2=new Array(len);i<len;i++)arr2[i]=arr[i];return arr2;}function _typeof(o){"@babel/helpers - typeof";return _typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(o){return typeof o;}:function(o){return o&&"function"==typeof Symbol&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o;},_typeof(o);}!function(t){var e=t.en=t.en||{};e.dictionary=Object.assign(e.dictionary||{},{"%0 of %1":"%0 of %1","Align cell text to the bottom":"Align cell text to the bottom","Align cell text to the center":"Align cell text to the center","Align cell text to the left":"Align cell text to the left","Align cell text to the middle":"Align cell text to the middle","Align cell text to the right":"Align cell text to the right","Align cell text to the top":"Align cell text to the top","Align center":"Align center","Align left":"Align left","Align right":"Align right","Align table to the left":"Align table to the left","Align table to the right":"Align table to the right",Alignment:"Alignment",Aquamarine:"Aquamarine",Background:"Background",Big:"Big",Black:"Black","Block quote":"Block quote",Blue:"Blue",Bold:"Bold",Border:"Border","Break text":"Break text","Bulleted List":"Bulleted List","Bulleted list styles toolbar":"Bulleted list styles toolbar",Cancel:"Cancel","Cannot determine a category for the uploaded file.":"Cannot determine a category for the uploaded file.","Cannot upload file:":"Cannot upload file:","Caption for image: %0":"Caption for image: %0","Caption for the image":"Caption for the image","Cell properties":"Cell properties","Center table":"Center table","Centered image":"Centered image","Change image text alternative":"Change image text alternative","Choose heading":"Choose heading",Circle:"Circle",Code:"Code",Color:"Color","Color picker":"Color picker",Column:"Column","Could not insert image at the current position.":"Could not insert image at the current position.","Could not obtain resized image URL.":"Could not obtain resized image URL.",Dashed:"Dashed",Decimal:"Decimal","Decimal with leading zero":"Decimal with leading zero","Decrease indent":"Decrease indent",Default:"Default","Delete column":"Delete column","Delete row":"Delete row","Dim grey":"Dim grey",Dimensions:"Dimensions",Disc:"Disc","Document colors":"Document colors",Dotted:"Dotted",Double:"Double",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","Enter table caption":"Enter table caption","Font Background Color":"Font Background Color","Font Color":"Font Color","Font Family":"Font Family","Font Size":"Font Size","Full size image":"Full size image",Green:"Green",Grey:"Grey",Groove:"Groove","Header column":"Header column","Header row":"Header row",Heading:"Heading","Heading 1":"Heading 1","Heading 2":"Heading 2","Heading 3":"Heading 3","Heading 4":"Heading 4","Heading 5":"Heading 5","Heading 6":"Heading 6",Height:"Height","Horizontal text alignment toolbar":"Horizontal text alignment toolbar",Huge:"Huge","Image resize list":"Image resize list","Image toolbar":"Image toolbar","image widget":"image widget","In line":"In line","Increase indent":"Increase indent",Insert:"Insert","Insert column left":"Insert column left","Insert column right":"Insert column right","Insert image":"Insert image","Insert image or file":"Insert image or file","Insert image via URL":"Insert image via URL","Insert media":"Insert media","Insert paragraph after block":"Insert paragraph after block","Insert paragraph before block":"Insert paragraph before block","Insert row above":"Insert row above","Insert row below":"Insert row below","Insert table":"Insert table","Inserting image failed":"Inserting image failed",Inset:"Inset",Italic:"Italic",Justify:"Justify","Justify cell text":"Justify cell text","Left aligned image":"Left aligned image","Light blue":"Light blue","Light green":"Light green","Light grey":"Light grey",Link:"Link","Link image":"Link image","Link URL":"Link URL","List properties":"List properties","Lower-latin":"Lower-latin","Lower–roman":"Lower–roman","Media toolbar":"Media toolbar","Media URL":"Media URL","media widget":"media widget","Merge cell down":"Merge cell down","Merge cell left":"Merge cell left","Merge cell right":"Merge cell right","Merge cell up":"Merge cell up","Merge cells":"Merge cells",Next:"Next",None:"None","Numbered List":"Numbered List","Numbered list styles toolbar":"Numbered list styles toolbar","Open file manager":"Open file manager","Open in a new tab":"Open in a new tab","Open link in new tab":"Open link in new tab","Open media in new tab":"Open media in new tab",Orange:"Orange",Original:"Original",Outset:"Outset",Padding:"Padding",Paragraph:"Paragraph","Paste the media URL in the input.":"Paste the media URL in the input.","Press Enter to type after or press Shift + Enter to type before the widget":"Press Enter to type after or press Shift + Enter to type before the widget",Previous:"Previous",Purple:"Purple",Red:"Red",Redo:"Redo","Remove color":"Remove color","Resize image":"Resize image","Resize image to %0":"Resize image to %0","Resize image to the original size":"Resize image to the original size","Restore default":"Restore default","Reversed order":"Reversed order","Rich Text Editor":"Rich Text Editor",Ridge:"Ridge","Right aligned image":"Right aligned image",Row:"Row",Save:"Save","Select all":"Select all","Select column":"Select column","Select row":"Select row","Selecting resized image failed":"Selecting resized image failed","Show more items":"Show more items","Side image":"Side image",Small:"Small",Solid:"Solid","Split cell horizontally":"Split cell horizontally","Split cell vertically":"Split cell vertically",Square:"Square","Start at":"Start at","Start index must be greater than 0.":"Start index must be greater than 0.",Strikethrough:"Strikethrough",Style:"Style",Subscript:"Subscript",Superscript:"Superscript","Table alignment toolbar":"Table alignment toolbar","Table cell text alignment":"Table cell text alignment","Table properties":"Table properties","Table toolbar":"Table toolbar","Text alignment":"Text alignment","Text alignment toolbar":"Text alignment toolbar","Text alternative":"Text alternative",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".',"The URL must not be empty.":"The URL must not be empty.",'The value is invalid. Try "10px" or "2em" or simply "2".':'The value is invalid. Try "10px" or "2em" or simply "2".',"This link has no URL":"This link has no URL","This media URL is not supported.":"This media URL is not supported.",Tiny:"Tiny","Tip: Paste the URL into the content to embed faster.":"Tip: Paste the URL into the content to embed faster.","To-do List":"To-do List","Toggle caption off":"Toggle caption off","Toggle caption on":"Toggle caption on","Toggle the circle list style":"Toggle the circle list style","Toggle the decimal list style":"Toggle the decimal list style","Toggle the decimal with leading zero list style":"Toggle the decimal with leading zero list style","Toggle the disc list style":"Toggle the disc list style","Toggle the lower–latin list style":"Toggle the lower–latin list style","Toggle the lower–roman list style":"Toggle the lower–roman list style","Toggle the square list style":"Toggle the square list style","Toggle the upper–latin list style":"Toggle the upper–latin list style","Toggle the upper–roman list style":"Toggle the upper–roman list style",Turquoise:"Turquoise","Type or paste your content here.":"Type or paste your content here.","Type your title":"Type your title",Underline:"Underline",Undo:"Undo",Unlink:"Unlink",Update:"Update","Update image URL":"Update image URL","Upload failed":"Upload failed","Upload in progress":"Upload in progress","Upper-latin":"Upper-latin","Upper-roman":"Upper-roman","Vertical text alignment toolbar":"Vertical text alignment toolbar",White:"White","Widget toolbar":"Widget toolbar",Width:"Width","Wrap text":"Wrap text",Yellow:"Yellow"});}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),/*!
|
|
2
|
+
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
3
|
+
* For licensing, see LICENSE.md.
|
|
4
|
+
*/function(t,e){"object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==(typeof exports==="undefined"?"undefined":_typeof(exports))?exports.ClassicEditor=e():t.ClassicEditor=e();}(self,function(){return function(){"use strict";var t={8180:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content code{background-color:hsla(0,0%,78%,.3);border-radius:2px;padding:.15em}.ck.ck-editor__editable .ck-code_selected{background-color:hsla(0,0%,78%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-basic-styles/theme/code.css"],names:[],mappings:"AAKA,iBACC,kCAAuC,CAEvC,iBAAkB,CADlB,aAED,CAEA,0CACC,kCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content code {\n\tbackground-color: hsla(0, 0%, 78%, 0.3);\n\tpadding: .15em;\n\tborder-radius: 2px;\n}\n\n.ck.ck-editor__editable .ck-code_selected {\n\tbackground-color: hsla(0, 0%, 78%, 0.5);\n}\n"],sourceRoot:""}]);var a=s;},636:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content blockquote{border-left:5px solid #ccc;font-style:italic;margin-left:0;margin-right:0;overflow:hidden;padding-left:1.5em;padding-right:1.5em}.ck-content[dir=rtl] blockquote{border-left:0;border-right:5px solid #ccc}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-block-quote/theme/blockquote.css"],names:[],mappings:"AAKA,uBAWC,0BAAsC,CADtC,iBAAkB,CAFlB,aAAc,CACd,cAAe,CAPf,eAAgB,CAIhB,kBAAmB,CADnB,mBAOD,CAEA,gCACC,aAAc,CACd,2BACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);var a=s;},390:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{display:inline;pointer-events:none;position:relative}.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position span{position:absolute;width:0}.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__selection-handle,.ck.ck-editor__editable .ck-widget:-webkit-drag>.ck-widget__type-around{display:none}: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://./node_modules/@ckeditor/ckeditor5-clipboard/theme/clipboard.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-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 a=s;},3638:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor{position:relative}.ck.ck-editor .ck-editor__top .ck-sticky-panel .ck-toolbar{z-index:var(--ck-z-modal)}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-editor__top .ck-sticky-panel .ck-toolbar{border-bottom-width:0}.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar{border-bottom-width:1px;border-radius:0}.ck-rounded-corners .ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar,.ck.ck-editor__top .ck-sticky-panel .ck-sticky-panel__content_sticky .ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:0}.ck.ck-editor__main>.ck-editor__editable{background:var(--ck-color-base-background);border-radius:0}.ck-rounded-corners .ck.ck-editor__main>.ck-editor__editable,.ck.ck-editor__main>.ck-editor__editable.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}.ck.ck-editor__main>.ck-editor__editable:not(.ck-focused){border-color:var(--ck-color-base-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-editor-classic/theme/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-editor-classic/classiceditor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,cAIC,iBAMD,CAJC,2DAEC,yBACD,CCLC,gDCED,eDKC,CAPA,uICMA,qCAAsC,CDJpC,2BAA4B,CAC5B,4BAIF,CAPA,gDAMC,qBACD,CAEA,iFACC,uBAAwB,CCR1B,eDaC,CANA,yMCHA,qCAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <body>, etc.,\n\t it must land outside of the `.ck-editor` in DOM. */\n\tposition: relative;\n\n\t& .ck-editor__top .ck-sticky-panel .ck-toolbar {\n\t\t/* https://github.com/ckeditor/ckeditor5-editor-classic/issues/62 */\n\t\tz-index: var(--ck-z-modal);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},8894:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-placeholder,.ck.ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{content:attr(data-placeholder);left:0;pointer-events:none;position:absolute;right:0}.ck.ck-read-only .ck-placeholder:before{display:none}.ck.ck-reset_all .ck-placeholder{position:relative}.ck .ck-placeholder:before,.ck.ck-placeholder:before{color:var(--ck-color-engine-placeholder-text);cursor:text}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/placeholder.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-engine/placeholder.css"],names:[],mappings:"AAMA,uCAEC,iBAWD,CATC,qDAIC,8BAA+B,CAF/B,MAAO,CAKP,mBAAoB,CANpB,iBAAkB,CAElB,OAKD,CAKA,wCACC,YACD,CAQD,iCACC,iBACD,CC5BC,qDAEC,6CAA8C,CAD9C,WAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);var a=s;},4401:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable span[data-ck-unsafe-element]{display:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-engine/theme/renderer.css"],names:[],mappings:"AAMA,qDACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);var a=s;},2585:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-button.ck-color-table__remove-color{align-items:center;display:flex;width:100%}label.ck.ck-color-grid__label{font-weight:unset}.ck .ck-button.ck-color-table__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard)}.ck .ck-button.ck-color-table__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-base-border)}[dir=ltr] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck .ck-button.ck-color-table__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontcolor.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-font/fontcolor.css"],names:[],mappings:"AAKA,4CAEC,kBAAmB,CADnB,YAAa,CAEb,UACD,CAEA,8BACC,iBACD,CCNA,4CAEC,2BAA4B,CAC5B,4BAA6B,CAF7B,qEAiBD,CAbC,wDACC,mDACD,CAEA,kEAEE,uCAMF,CARA,kEAME,sCAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-color-table__remove-color {\n\tdisplay: flex;\n\talign-items: center;\n\twidth: 100%;\n}\n\nlabel.ck.ck-color-grid__label {\n\tfont-weight: unset;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck .ck-button.ck-color-table__remove-color {\n\tpadding: calc(var(--ck-spacing-standard) / 2 ) var(--ck-spacing-standard);\n\tborder-bottom-left-radius: 0;\n\tborder-bottom-right-radius: 0;\n\n\t&:not(:focus) {\n\t\tborder-bottom: 1px solid var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);var a=s;},6203:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .text-tiny{font-size:.7em}.ck-content .text-small{font-size:.85em}.ck-content .text-big{font-size:1.4em}.ck-content .text-huge{font-size:1.8em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-font/theme/fontsize.css"],names:[],mappings:"AAUC,uBACC,cACD,CAEA,wBACC,eACD,CAEA,sBACC,eACD,CAEA,uBACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* The values should be synchronized with the "FONT_SIZE_PRESET_UNITS" object in the "/src/fontsize/utils.js" file. */\n\n/* Styles should be prefixed with the `.ck-content` class.\nSee https://github.com/ckeditor/ckeditor5/issues/6636 */\n.ck-content {\n\t& .text-tiny {\n\t\tfont-size: .7em;\n\t}\n\n\t& .text-small {\n\t\tfont-size: .85em;\n\t}\n\n\t& .text-big {\n\t\tfont-size: 1.4em;\n\t}\n\n\t& .text-huge {\n\t\tfont-size: 1.8em;\n\t}\n}\n'],sourceRoot:""}]);var a=s;},3230:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-heading_heading1{font-size:20px}.ck.ck-heading_heading2{font-size:17px}.ck.ck-heading_heading3{font-size:14px}.ck[class*=ck-heading_heading]{font-weight:700}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}.ck.ck-dropdown.ck-heading-dropdown .ck-dropdown__panel .ck-list__item{min-width:18em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-heading/theme/heading.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-heading/heading.css"],names:[],mappings:"AAKA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,wBACC,cACD,CAEA,+BACC,eACD,CCZC,2EACC,SACD,CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9048:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .image{clear:both;display:table;margin:.9em auto;min-width:50px;text-align:center}.ck-content .image img{display:block;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://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\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 <figcaption> 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 <figcaption>.\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 a=s;},8662:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-image-caption-background:#f7f7f7;--ck-color-image-caption-text:#333;--ck-color-image-caption-highligted-background:#fd0}.ck-content .image>figcaption{background-color:var(--ck-color-image-caption-background);caption-side:bottom;color:var(--ck-color-image-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;word-break:break-word}.ck.ck-editor__editable .image>figcaption.image__caption_highlighted{animation:ck-image-caption-highlight .6s ease-out}@keyframes ck-image-caption-highlight{0%{background-color:var(--ck-color-image-caption-highligted-background)}to{background-color:var(--ck-color-image-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,mDACD,CAGA,8BAKC,yDAA0D,CAH1D,mBAAoB,CAEpB,wCAAyC,CAHzC,qBAAsB,CAMtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,qBAMD,CAGA,qEACC,iDACD,CAEA,sCACC,GACC,oEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9292:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-image-insert__panel{padding:var(--ck-spacing-large)}.ck.ck-image-insert__ck-finder-button{border:1px solid #ccc;border-radius:var(--ck-border-radius);display:block;margin:var(--ck-spacing-standard) auto;width:100%}.ck.ck-splitbutton>.ck-file-dialog-button.ck-button{border:none;margin:0;padding:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsert.css"],names:[],mappings:"AAKA,2BACC,+BACD,CAEA,sCAIC,qBAAiC,CACjC,qCAAsC,CAJtC,aAAc,CAEd,sCAAuC,CADvC,UAID,CAGA,oDAGC,WAAY,CADZ,QAAS,CADT,SAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert__panel {\n\tpadding: var(--ck-spacing-large);\n}\n\n.ck.ck-image-insert__ck-finder-button {\n\tdisplay: block;\n\twidth: 100%;\n\tmargin: var(--ck-spacing-standard) auto;\n\tborder: 1px solid hsl(0, 0%, 80%);\n\tborder-radius: var(--ck-border-radius);\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/7986 */\n.ck.ck-splitbutton > .ck-file-dialog-button.ck-button {\n\tpadding: 0;\n\tmargin: 0;\n\tborder: none;\n}\n"],sourceRoot:""}]);var a=s;},5150:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-image-insert-form:focus{outline:none}.ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-image-insert-form__action-row{margin-top:var(--ck-spacing-standard)}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-image-insert-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row.ck-image-insert-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageinsertformrowview.css"],names:[],mappings:"AAMC,+BAEC,YACD,CAGD,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAmBD,CAhBC,iCACC,WACD,CAEA,kDACC,qCAUD,CARC,sIAEC,sBACD,CAEA,+EACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-image-insert-form {\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n}\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-image-insert-form__action-row {\n\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},1043:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .image.image_resized{box-sizing:border-box;display:block;max-width:100%}.ck-content .image.image_resized img{width:100%}.ck-content .image.image_resized>figcaption{display:block}.ck.ck-editor__editable td .image-inline.image_resized img,.ck.ck-editor__editable th .image-inline.image_resized img{max-width:100%}[dir=ltr] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon{margin-left:var(--ck-spacing-standard)}.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label{width:4em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageresize.css"],names:[],mappings:"AAKA,iCAQC,qBAAsB,CADtB,aAAc,CANd,cAkBD,CATC,qCAEC,UACD,CAEA,4CAEC,aACD,CAQC,sHACC,cACD,CAIF,oFACC,uCACD,CAEA,oFACC,sCACD,CAEA,oEACC,SACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .image.image_resized {\n\tmax-width: 100%;\n\t/*\n\tThe `<figure>` element for resized images must not use `display:table` as browsers do not support `max-width` for it well.\n\tSee https://stackoverflow.com/questions/4019604/chrome-safari-ignoring-max-width-in-table/14420691#14420691 for more.\n\tFortunately, since we control the width, there is no risk that the image will look bad.\n\t*/\n\tdisplay: block;\n\tbox-sizing: border-box;\n\n\t& img {\n\t\t/* For resized images it is the `<figure>` element that determines the image width. */\n\t\twidth: 100%;\n\t}\n\n\t& > figcaption {\n\t\t/* The `<figure>` element uses `display:block`, so `<figcaption>` also has to. */\n\t\tdisplay: block;\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/* The resized inline image nested in the table should respect its parent size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9117. */\n\t& td,\n\t& th {\n\t\t& .image-inline.image_resized img {\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n[dir="ltr"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-right: var(--ck-spacing-standard);\n}\n\n[dir="rtl"] .ck.ck-button.ck-button_with-text.ck-resize-image-button .ck-button__icon {\n\tmargin-left: var(--ck-spacing-standard);\n}\n\n.ck.ck-dropdown .ck-button.ck-resize-image-button .ck-button__label {\n\twidth: 4em;\n}\n'],sourceRoot:""}]);var a=s;},4622:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-image-style-spacing:1.5em;--ck-inline-image-style-spacing:calc(var(--ck-image-style-spacing)/2)}.ck-content .image-style-block-align-left,.ck-content .image-style-block-align-right{max-width:calc(100% - var(--ck-image-style-spacing))}.ck-content .image-style-align-left,.ck-content .image-style-align-right{clear:none}.ck-content .image-style-side{float:right;margin-left:var(--ck-image-style-spacing);max-width:50%}.ck-content .image-style-align-left{float:left;margin-right:var(--ck-image-style-spacing)}.ck-content .image-style-align-center{margin-left:auto;margin-right:auto}.ck-content .image-style-align-right{float:right;margin-left:var(--ck-image-style-spacing)}.ck-content .image-style-block-align-right{margin-left:auto;margin-right:0}.ck-content .image-style-block-align-left{margin-left:0;margin-right:auto}.ck-content p+.image-style-align-left,.ck-content p+.image-style-align-right,.ck-content p+.image-style-side{margin-top:0}.ck-content .image-inline.image-style-align-left,.ck-content .image-inline.image-style-align-right{margin-bottom:var(--ck-inline-image-style-spacing);margin-top:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-left{margin-right:var(--ck-inline-image-style-spacing)}.ck-content .image-inline.image-style-align-right{margin-left:var(--ck-inline-image-style-spacing)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-background)}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__action:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton.ck-splitbutton_flatten:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover):after{display:none}.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__action:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled),.ck.ck-splitbutton.ck-splitbutton_flatten.ck-splitbutton_open:hover>.ck-splitbutton__arrow:not(.ck-disabled):not(:hover){background-color:var(--ck-color-button-on-hover-background)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imagestyle.css"],names:[],mappings:"AAKA,MACC,8BAA+B,CAC/B,qEACD,CAMC,qFAEC,oDACD,CAIA,yEAEC,UACD,CAEA,8BACC,WAAY,CACZ,yCAA0C,CAC1C,aACD,CAEA,oCACC,UAAW,CACX,0CACD,CAEA,sCACC,gBAAiB,CACjB,iBACD,CAEA,qCACC,WAAY,CACZ,yCACD,CAEA,2CAEC,gBAAiB,CADjB,cAED,CAEA,0CACC,aAAc,CACd,iBACD,CAGA,6GAGC,YACD,CAGC,mGAGC,kDAAmD,CADnD,+CAED,CAEA,iDACC,iDACD,CAEA,kDACC,gDACD,CAUC,0lBAGC,qDAKD,CAHC,8nBACC,YACD,CAKD,oVAGC,2DACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9899:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-image-upload-complete-icon{border-radius:50%;display:block;position:absolute;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);z-index:1}.ck-image-upload-complete-icon:after{content:"";position:absolute}:root{--ck-color-image-upload-icon:#fff;--ck-color-image-upload-icon-background:#008a00;--ck-image-upload-icon-size:20;--ck-image-upload-icon-width:2px;--ck-image-upload-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck-image-upload-complete-icon{animation-delay:0ms,3s;animation-duration:.5s,.5s;animation-fill-mode:forwards,forwards;animation-name:ck-upload-complete-icon-show,ck-upload-complete-icon-hide;background:var(--ck-color-image-upload-icon-background);font-size:calc(1px*var(--ck-image-upload-icon-size));height:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size));opacity:0;overflow:hidden;width:calc(var(--ck-image-upload-icon-is-visible)*var(--ck-image-upload-icon-size))}.ck-image-upload-complete-icon:after{animation-delay:.5s;animation-duration:.5s;animation-fill-mode:forwards;animation-name:ck-upload-complete-icon-check;border-right:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);border-top:var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);box-sizing:border-box;height:0;left:25%;opacity:0;top:50%;transform:scaleX(-1) rotate(135deg);transform-origin:left top;width:0}@keyframes ck-upload-complete-icon-show{0%{opacity:0}to{opacity:1}}@keyframes ck-upload-complete-icon-hide{0%{opacity:1}to{opacity:0}}@keyframes ck-upload-complete-icon-check{0%{height:0;opacity:1;width:0}33%{height:0;width:.3em}to{height:.45em;opacity:1;width:.3em}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadicon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadicon.css"],names:[],mappings:"AAKA,+BAUC,iBAAkB,CATlB,aAAc,CACd,iBAAkB,CAOlB,sCAAwC,CADxC,oCAAsC,CAGtC,SAMD,CAJC,qCACC,UAAW,CACX,iBACD,CChBD,MACC,iCAA8C,CAC9C,+CAA4D,CAG5D,8BAA+B,CAC/B,gCAAiC,CACjC,4DACD,CAEA,+BAWC,sBAA4B,CAN5B,0BAAgC,CADhC,qCAAuC,CADvC,wEAA0E,CAD1E,uDAAwD,CAMxD,oDAAuD,CAWvD,oFAAuF,CAlBvF,SAAU,CAgBV,eAAgB,CAChB,mFA0BD,CAtBC,qCAgBC,mBAAsB,CADtB,sBAAyB,CAEzB,4BAA6B,CAH7B,4CAA6C,CAF7C,sFAAuF,CADvF,oFAAqF,CASrF,qBAAsB,CAdtB,QAAS,CAJT,QAAS,CAGT,SAAU,CADV,OAAQ,CAKR,mCAAoC,CACpC,yBAA0B,CAH1B,OAcD,CAGD,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,wCACC,GACC,SACD,CAEA,GACC,SACD,CACD,CAEA,yCACC,GAGC,QAAS,CAFT,SAAU,CACV,OAED,CACA,IAEC,QAAS,CADT,UAED,CACA,GAGC,YAAc,CAFd,SAAU,CACV,UAED,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);var a=s;},9825:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck .ck-upload-placeholder-loader{align-items:center;display:flex;justify-content:center;left:0;position:absolute;top:0}.ck .ck-upload-placeholder-loader:before{content:"";position:relative}:root{--ck-color-upload-placeholder-loader:#b3b3b3;--ck-upload-placeholder-loader-size:32px;--ck-upload-placeholder-image-aspect-ratio:2.8}.ck .ck-image-upload-placeholder{margin:0;width:100%}.ck .ck-image-upload-placeholder.image-inline{width:calc(var(--ck-upload-placeholder-loader-size)*2*var(--ck-upload-placeholder-image-aspect-ratio))}.ck .ck-image-upload-placeholder img{aspect-ratio:var(--ck-upload-placeholder-image-aspect-ratio)}.ck .ck-upload-placeholder-loader{height:100%;width:100%}.ck .ck-upload-placeholder-loader:before{animation:ck-upload-placeholder-loader 1s linear infinite;border-radius:50%;border-right:2px solid transparent;border-top:3px solid var(--ck-color-upload-placeholder-loader);height:var(--ck-upload-placeholder-loader-size);width:var(--ck-upload-placeholder-loader-size)}@keyframes ck-upload-placeholder-loader{to{transform:rotate(1turn)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadloader.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadloader.css"],names:[],mappings:"AAKA,kCAGC,kBAAmB,CADnB,YAAa,CAEb,sBAAuB,CAEvB,MAAO,CALP,iBAAkB,CAIlB,KAOD,CAJC,yCACC,UAAW,CACX,iBACD,CCXD,MACC,4CAAqD,CACrD,wCAAyC,CACzC,8CACD,CAEA,iCAGC,QAAS,CADT,UAgBD,CAbC,8CACC,sGACD,CAEA,qCAOC,4DACD,CAGD,kCAEC,WAAY,CADZ,UAWD,CARC,yCAMC,yDAA0D,CAH1D,iBAAkB,CAElB,kCAAmC,CADnC,8DAA+D,CAF/D,+CAAgD,CADhD,8CAMD,CAGD,wCACC,GACC,uBACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5870:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-editor__editable .image,.ck.ck-editor__editable .image-inline{position:relative}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{left:0;position:absolute;top:0}.ck.ck-editor__editable .image-inline.ck-appear,.ck.ck-editor__editable .image.ck-appear{animation:fadeIn .7s}.ck.ck-editor__editable .image .ck-progress-bar,.ck.ck-editor__editable .image-inline .ck-progress-bar{background:var(--ck-color-upload-bar-background);height:2px;transition:width .1s;width:0}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/imageuploadprogress.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-image/imageuploadprogress.css"],names:[],mappings:"AAMC,qEAEC,iBACD,CAGA,uGAIC,MAAO,CAFP,iBAAkB,CAClB,KAED,CCRC,yFACC,oBACD,CAID,uGAIC,gDAAiD,CAFjD,UAAW,CAGX,oBAAuB,CAFvB,OAGD,CAGD,kBACC,GAAO,SAAY,CACnB,GAAO,SAAY,CACpB",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto { opacity: 1; }\n}\n"],sourceRoot:""}]);var a=s;},6831:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-text-alternative-form{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-text-alternative-form .ck-labeled-field-view{display:inline-block}.ck.ck-text-alternative-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-text-alternative-form{flex-wrap:wrap}.ck.ck-text-alternative-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-text-alternative-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-image/theme/textalternativeform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,6BACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,oDACC,oBACD,CAEA,uCACC,YACD,CCZA,oCDCD,6BAcE,cAUF,CARE,oDACC,eACD,CAEA,wCACC,cACD,CCrBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},399:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-link_selected{background:var(--ck-color-link-selected-background)}.ck .ck-link_selected span.image-inline{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background)}.ck .ck-fake-link-selection{background:var(--ck-color-link-fake-selection)}.ck .ck-fake-link-selection_collapsed{border-right:1px solid var(--ck-color-base-text);height:100%;margin-right:-1px;outline:1px solid hsla(0,0%,100%,.5)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/link.css"],names:[],mappings:"AAMA,sBACC,mDAMD,CAHC,wCACC,yFACD,CAOD,4BACC,8CACD,CAGA,sCAEC,gDAAiD,CADjD,WAAY,CAEZ,iBAAkB,CAClB,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);var a=s;},9465:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-actions{display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-link-actions .ck-link-actions__preview{display:inline-block}.ck.ck-link-actions .ck-link-actions__preview .ck-button__label{overflow:hidden}@media screen and (max-width:600px){.ck.ck-link-actions{flex-wrap:wrap}.ck.ck-link-actions .ck-link-actions__preview{flex-basis:100%}.ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){flex-basis:50%}}.ck.ck-link-actions .ck-button.ck-link-actions__preview{padding-left:0;padding-right:0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{color:var(--ck-color-link-default);cursor:pointer;max-width:var(--ck-input-width);min-width:3em;padding:0 var(--ck-spacing-medium);text-align:center;text-overflow:ellipsis}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label:hover{text-decoration:underline}.ck.ck-link-actions .ck-button.ck-link-actions__preview,.ck.ck-link-actions .ck-button.ck-link-actions__preview:active,.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus,.ck.ck-link-actions .ck-button.ck-link-actions__preview:hover{background:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:active{box-shadow:none}.ck.ck-link-actions .ck-button.ck-link-actions__preview:focus .ck-button__label{text-decoration:underline}[dir=ltr] .ck.ck-link-actions .ck-button:not(:first-child),[dir=rtl] .ck.ck-link-actions .ck-button:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-link-actions .ck-button.ck-link-actions__preview{margin:var(--ck-spacing-standard) var(--ck-spacing-standard) 0}.ck.ck-link-actions .ck-button.ck-link-actions__preview .ck-button__label{max-width:100%;min-width:0}[dir=ltr] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview),[dir=rtl] .ck.ck-link-actions .ck-button:not(.ck-link-actions__preview){margin-left:0}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkactions.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkactions.css"],names:[],mappings:"AAOA,oBACC,YAAa,CACb,kBAAmB,CACnB,gBAqBD,CAnBC,8CACC,oBAKD,CAHC,gEACC,eACD,CCXD,oCDCD,oBAcE,cAUF,CARE,8CACC,eACD,CAEA,8DACC,cACD,CCrBD,CCIA,wDACC,cAAe,CACf,eAmCD,CAjCC,0EAEC,kCAAmC,CAEnC,cAAe,CAIf,+BAAgC,CAChC,aAAc,CARd,kCAAmC,CASnC,iBAAkB,CAPlB,sBAYD,CAHC,gFACC,yBACD,CAGD,mPAIC,eACD,CAEA,+DACC,eACD,CAGC,gFACC,yBACD,CAWD,qHACC,sCACD,CDtDD,oCC0DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CDzED",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},4827:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-link-form{display:flex}.ck.ck-link-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-link-form{flex-wrap:wrap}.ck.ck-link-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-link-form .ck-button{flex-basis:50%}}.ck.ck-link-form_layout-vertical{display:block}.ck.ck-link-form_layout-vertical .ck-button.ck-button-cancel,.ck.ck-link-form_layout-vertical .ck-button.ck-button-save{margin-top:var(--ck-spacing-medium)}.ck.ck-link-form_layout-vertical{min-width:var(--ck-input-width);padding:0}.ck.ck-link-form_layout-vertical .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small)}.ck.ck-link-form_layout-vertical .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-link-form_layout-vertical>.ck-button{border-radius:0;margin:0;padding:var(--ck-spacing-standard);width:50%}.ck.ck-link-form_layout-vertical>.ck-button:not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-link-form_layout-vertical>.ck-button,[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button{margin-left:0}[dir=rtl] .ck.ck-link-form_layout-vertical>.ck-button:last-of-type{border-right:1px solid var(--ck-color-base-border)}.ck.ck-link-form_layout-vertical .ck.ck-list{margin:var(--ck-spacing-standard) var(--ck-spacing-large)}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton{padding:0;width:100%}.ck.ck-link-form_layout-vertical .ck.ck-list .ck-button.ck-switchbutton:hover{background:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkform.css"],names:[],mappings:"AAOA,iBACC,YAiBD,CAfC,2BACC,YACD,CCNA,oCDCD,iBAQE,cAUF,CARE,wCACC,eACD,CAEA,4BACC,cACD,CCfD,CDuBD,iCACC,aAYD,CALE,wHAEC,mCACD,CE/BF,iCAEC,+BAAgC,CADhC,SAgDD,CA7CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,eAAgB,CAFhB,QAAS,CADT,kCAAmC,CAEnC,SAkBD,CAfC,wDACC,gDACD,CARD,4GAeE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAUD,CARC,wEACC,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& > .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\twidth: 50%;\n\t\tborder-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-left: 0;\n\n\t\t\t&:last-of-type {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Using additional `.ck` class for stronger CSS specificity than `.ck.ck-link-form > :not(:first-child)`. */\n\t& .ck.ck-list {\n\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-large);\n\n\t\t& .ck-button.ck-switchbutton {\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},3858:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{display:block;position:absolute}:root{--ck-link-image-indicator-icon-size:20;--ck-link-image-indicator-icon-is-visible:clamp(0px,100% - 50px,1px)}.ck.ck-editor__editable a span.image-inline:after,.ck.ck-editor__editable figure.image>a:after{background-color:rgba(0,0,0,.4);background-image:url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");background-position:50%;background-repeat:no-repeat;background-size:14px;border-radius:100%;content:"";height:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size));overflow:hidden;right:min(var(--ck-spacing-medium),6%);top:min(var(--ck-spacing-medium),6%);width:calc(var(--ck-link-image-indicator-icon-is-visible)*var(--ck-link-image-indicator-icon-size))}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-link/theme/linkimage.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-link/linkimage.css"],names:[],mappings:"AASE,+FACC,aAAc,CACd,iBACD,CCPF,MAEC,sCAAuC,CACvC,oEACD,CAME,+FAUC,+BAAqC,CACrC,83BAA+3B,CAG/3B,uBAA2B,CAD3B,2BAA4B,CAD5B,oBAAqB,CAGrB,kBAAmB,CAdnB,UAAW,CAsBX,oGAAuG,CAFvG,eAAgB,CAbhB,sCAAwC,CADxC,oCAAsC,CAetC,mGAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t}\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Match the icon size with the upload indicator brought by the image upload feature. */\n\t--ck-link-image-indicator-icon-size: 20;\n\t--ck-link-image-indicator-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck.ck-editor__editable {\n\t/* Linked image indicator */\n\t& figure.image > a,\n\t& a span.image-inline {\n\t\t&::after {\n\t\t\tcontent: "";\n\n\t\t\t/*\n\t\t\t * Smaller images should have the icon closer to the border.\n\t\t\t * Match the icon position with the upload indicator brought by the image upload feature.\n\t\t\t */\n\t\t\ttop: min(var(--ck-spacing-medium), 6%);\n\t\t\tright: min(var(--ck-spacing-medium), 6%);\n\n\t\t\tbackground-color: hsla(0, 0%, 0%, .4);\n\t\t\tbackground-image: url("data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjAgMjAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PHBhdGggZmlsbD0iI2ZmZiIgZD0ibTExLjA3NyAxNSAuOTkxLTEuNDE2YS43NS43NSAwIDEgMSAxLjIyOS44NmwtMS4xNDggMS42NGEuNzQ4Ljc0OCAwIDAgMS0uMjE3LjIwNiA1LjI1MSA1LjI1MSAwIDAgMS04LjUwMy01Ljk1NS43NDEuNzQxIDAgMCAxIC4xMi0uMjc0bDEuMTQ3LTEuNjM5YS43NS43NSAwIDEgMSAxLjIyOC44Nkw0LjkzMyAxMC43bC4wMDYuMDAzYTMuNzUgMy43NSAwIDAgMCA2LjEzMiA0LjI5NGwuMDA2LjAwNHptNS40OTQtNS4zMzVhLjc0OC43NDggMCAwIDEtLjEyLjI3NGwtMS4xNDcgMS42MzlhLjc1Ljc1IDAgMSAxLTEuMjI4LS44NmwuODYtMS4yM2EzLjc1IDMuNzUgMCAwIDAtNi4xNDQtNC4zMDFsLS44NiAxLjIyOWEuNzUuNzUgMCAwIDEtMS4yMjktLjg2bDEuMTQ4LTEuNjRhLjc0OC43NDggMCAwIDEgLjIxNy0uMjA2IDUuMjUxIDUuMjUxIDAgMCAxIDguNTAzIDUuOTU1em0tNC41NjMtMi41MzJhLjc1Ljc1IDAgMCAxIC4xODQgMS4wNDVsLTMuMTU1IDQuNTA1YS43NS43NSAwIDEgMS0xLjIyOS0uODZsMy4xNTUtNC41MDZhLjc1Ljc1IDAgMCAxIDEuMDQ1LS4xODR6Ii8+PC9zdmc+");\n\t\t\tbackground-size: 14px;\n\t\t\tbackground-repeat: no-repeat;\n\t\t\tbackground-position: center;\n\t\t\tborder-radius: 100%;\n\n\t\t\t/*\n\t\t\t* Use CSS math to simulate container queries.\n\t\t\t* https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t\t\t*/\n\t\t\toverflow: hidden;\n\t\t\twidth: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t\theight: calc(var(--ck-link-image-indicator-icon-is-visible) * var(--ck-link-image-indicator-icon-size));\n\t\t}\n\t}\n}\n\n'],sourceRoot:""}]);var a=s;},3195:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-collapsible.ck-collapsible_collapsed>.ck-collapsible__children{display:none}:root{--ck-collapsible-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-collapsible>.ck.ck-button{border-radius:0;color:inherit;font-weight:700;padding:var(--ck-spacing-medium) var(--ck-spacing-large);width:100%}.ck.ck-collapsible>.ck.ck-button:focus{background:transparent}.ck.ck-collapsible>.ck.ck-button:active,.ck.ck-collapsible>.ck.ck-button:hover:not(:focus),.ck.ck-collapsible>.ck.ck-button:not(:focus){background:transparent;border-color:transparent;box-shadow:none}.ck.ck-collapsible>.ck.ck-button>.ck-icon{margin-right:var(--ck-spacing-medium);width:var(--ck-collapsible-arrow-size)}.ck.ck-collapsible>.ck-collapsible__children{padding:0 var(--ck-spacing-large) var(--ck-spacing-large)}.ck.ck-collapsible.ck-collapsible_collapsed>.ck.ck-button .ck-icon{transform:rotate(-90deg)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/collapsible.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/collapsible.css"],names:[],mappings:"AAMC,sEACC,YACD,CCHD,MACC,yDACD,CAGC,iCAIC,eAAgB,CAChB,aAAc,CAHd,eAAiB,CACjB,wDAAyD,CAFzD,UAoBD,CAdC,uCACC,sBACD,CAEA,wIACC,sBAAuB,CACvB,wBAAyB,CACzB,eACD,CAEA,0CACC,qCAAsC,CACtC,sCACD,CAGD,6CACC,yDACD,CAGC,mEACC,wBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-collapsible-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-collapsible {\n\t& > .ck.ck-button {\n\t\twidth: 100%;\n\t\tfont-weight: bold;\n\t\tpadding: var(--ck-spacing-medium) var(--ck-spacing-large);\n\t\tborder-radius: 0;\n\t\tcolor: inherit;\n\n\t\t&:focus {\n\t\t\tbackground: transparent;\n\t\t}\n\n\t\t&:active, &:not(:focus), &:hover:not(:focus) {\n\t\t\tbackground: transparent;\n\t\t\tborder-color: transparent;\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t& > .ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-medium);\n\t\t\twidth: var(--ck-collapsible-arrow-size);\n\t\t}\n\t}\n\n\t& > .ck-collapsible__children {\n\t\tpadding: 0 var(--ck-spacing-large) var(--ck-spacing-large);\n\t}\n\n\t&.ck-collapsible_collapsed {\n\t\t& > .ck.ck-button .ck-icon {\n\t\t\ttransform: rotate(-90deg);\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},8676:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-editor__editable .ck-list-bogus-paragraph{display:block}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/documentlist.css"],names:[],mappings:"AAKA,8CACC,aACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-editor__editable .ck-list-bogus-paragraph {\n\tdisplay: block;\n}\n"],sourceRoot:""}]);var a=s;},9989:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content ol{list-style-type:decimal}.ck-content ol ol{list-style-type:lower-latin}.ck-content ol ol ol{list-style-type:lower-roman}.ck-content ol ol ol ol{list-style-type:upper-latin}.ck-content ol ol ol ol ol{list-style-type:upper-roman}.ck-content ul{list-style-type:disc}.ck-content ul ul{list-style-type:circle}.ck-content ul ul ul,.ck-content ul ul ul ul{list-style-type:square}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/list.css"],names:[],mappings:"AAKA,eACC,uBAiBD,CAfC,kBACC,2BAaD,CAXC,qBACC,2BASD,CAPC,wBACC,2BAKD,CAHC,2BACC,2BACD,CAMJ,eACC,oBAaD,CAXC,kBACC,sBASD,CAJE,6CACC,sBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content ol {\n\tlist-style-type: decimal;\n\n\t& ol {\n\t\tlist-style-type: lower-latin;\n\n\t\t& ol {\n\t\t\tlist-style-type: lower-roman;\n\n\t\t\t& ol {\n\t\t\t\tlist-style-type: upper-latin;\n\n\t\t\t\t& ol {\n\t\t\t\t\tlist-style-type: upper-roman;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck-content ul {\n\tlist-style-type: disc;\n\n\t& ul {\n\t\tlist-style-type: circle;\n\n\t\t& ul {\n\t\t\tlist-style-type: square;\n\n\t\t\t& ul {\n\t\t\t\tlist-style-type: square;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},7133:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-properties.ck-list-properties_without-styles{padding:var(--ck-spacing-large)}.ck.ck-list-properties.ck-list-properties_without-styles>*{min-width:14em}.ck.ck-list-properties.ck-list-properties_without-styles>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-list-styles-list{grid-template-columns:repeat(4,auto)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible{border-top:1px solid var(--ck-color-base-border)}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*{width:100%}.ck.ck-list-properties.ck-list-properties_with-numbered-properties>.ck-collapsible>.ck-collapsible__children>*+*{margin-top:var(--ck-spacing-standard)}.ck.ck-list-properties .ck.ck-numbered-list-properties__start-index .ck-input{min-width:auto;width:100%}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order{background:transparent;margin-bottom:calc(var(--ck-spacing-tiny)*-1);padding-left:0;padding-right:0}.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:active,.ck.ck-list-properties .ck.ck-numbered-list-properties__reversed-order:hover{background:none;border-color:transparent;box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/listproperties.css"],names:[],mappings:"AAOC,yDACC,+BASD,CAPC,2DACC,cAKD,CAHC,6DACC,qCACD,CASD,wFACC,oCACD,CAGA,mFACC,gDAWD,CARE,+GACC,UAKD,CAHC,iHACC,qCACD,CAMJ,8EACC,cAAe,CACf,UACD,CAEA,uEACC,sBAAuB,CAGvB,6CAAgD,CAFhD,cAAe,CACf,eAQD,CALC,2JAGC,eAAgB,CADhB,wBAAyB,CADzB,eAGD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-properties {\n\t/* When there are no list styles and there is no collapsible. */\n\t&.ck-list-properties_without-styles {\n\t\tpadding: var(--ck-spacing-large);\n\n\t\t& > * {\n\t\t\tmin-width: 14em;\n\n\t\t\t& + * {\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * When the numbered list property fields (start at, reversed) should be displayed,\n\t * more horizontal space is needed. Reconfigure the style grid to create that space.\n\t */\n\t&.ck-list-properties_with-numbered-properties {\n\t\t& > .ck-list-styles-list {\n\t\t\tgrid-template-columns: repeat( 4, auto );\n\t\t}\n\n\t\t/* When list styles are rendered and property fields are in a collapsible. */\n\t\t& > .ck-collapsible {\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\n\t\t\t& > .ck-collapsible__children {\n\t\t\t\t& > * {\n\t\t\t\t\twidth: 100%;\n\n\t\t\t\t\t& + * {\n\t\t\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t\t\t}\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-numbered-list-properties__start-index .ck-input {\n\t\tmin-width: auto;\n\t\twidth: 100%;\n\t}\n\n\t& .ck.ck-numbered-list-properties__reversed-order {\n\t\tbackground: transparent;\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\t\tmargin-bottom: calc(-1 * var(--ck-spacing-tiny));\n\n\t\t&:active, &:hover {\n\t\t\tbox-shadow: none;\n\t\t\tborder-color: transparent;\n\t\t\tbackground: none;\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},4553:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list-styles-list{display:grid}:root{--ck-list-style-button-size:44px}.ck.ck-list-styles-list{column-gap:var(--ck-spacing-medium);grid-template-columns:repeat(3,auto);padding:var(--ck-spacing-large);row-gap:var(--ck-spacing-medium)}.ck.ck-list-styles-list .ck-button{box-sizing:content-box;margin:0;padding:0}.ck.ck-list-styles-list .ck-button,.ck.ck-list-styles-list .ck-button .ck-icon{height:var(--ck-list-style-button-size);width:var(--ck-list-style-button-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/liststyles.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-list/liststyles.css"],names:[],mappings:"AAKA,wBACC,YACD,CCFA,MACC,gCACD,CAEA,wBAGC,mCAAoC,CAFpC,oCAAwC,CAGxC,+BAAgC,CAFhC,gCA4BD,CAxBC,mCAiBC,sBAAuB,CAPvB,QAAS,CANT,SAmBD,CAJC,+EAhBA,uCAAwC,CADxC,sCAoBA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-list-style-button-size: 44px;\n}\n\n.ck.ck-list-styles-list {\n\tgrid-template-columns: repeat( 3, auto );\n\trow-gap: var(--ck-spacing-medium);\n\tcolumn-gap: var(--ck-spacing-medium);\n\tpadding: var(--ck-spacing-large);\n\n\t& .ck-button {\n\t\t/* Make the button look like a thumbnail (the icon "takes it all"). */\n\t\twidth: var(--ck-list-style-button-size);\n\t\theight: var(--ck-list-style-button-size);\n\t\tpadding: 0;\n\n\t\t/*\n\t\t * Buttons are aligned by the grid so disable default button margins to not collide with the\n\t\t * gaps in the grid.\n\t\t */\n\t\tmargin: 0;\n\n\t\t/*\n\t\t * Make sure the button border (which is displayed on focus, BTW) does not steal pixels\n\t\t * from the button dimensions and, as a result, decrease the size of the icon\n\t\t * (which becomes blurry as it scales down).\n\t\t */\n\t\tbox-sizing: content-box;\n\n\t\t& .ck-icon {\n\t\t\twidth: var(--ck-list-style-button-size);\n\t\t\theight: var(--ck-list-style-button-size);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},1588:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,':root{--ck-todo-list-checkmark-size:16px}.ck-content .todo-list{list-style:none}.ck-content .todo-list li{margin-bottom:5px}.ck-content .todo-list li .todo-list{margin-top:5px}.ck-content .todo-list .todo-list__label>input{-webkit-appearance:none;border:0;display:inline-block;height:var(--ck-todo-list-checkmark-size);left:-25px;margin-left:0;margin-right:-15px;position:relative;right:0;vertical-align:middle;width:var(--ck-todo-list-checkmark-size)}.ck-content .todo-list .todo-list__label>input:before{border:1px solid #333;border-radius:2px;box-sizing:border-box;content:"";display:block;height:100%;position:absolute;transition:box-shadow .25s ease-in-out,background .25s ease-in-out,border .25s ease-in-out;width:100%}.ck-content .todo-list .todo-list__label>input:after{border-color:transparent;border-style:solid;border-width:0 calc(var(--ck-todo-list-checkmark-size)/8) calc(var(--ck-todo-list-checkmark-size)/8) 0;box-sizing:content-box;content:"";display:block;height:calc(var(--ck-todo-list-checkmark-size)/2.6);left:calc(var(--ck-todo-list-checkmark-size)/3);pointer-events:none;position:absolute;top:calc(var(--ck-todo-list-checkmark-size)/5.3);transform:rotate(45deg);width:calc(var(--ck-todo-list-checkmark-size)/5.3)}.ck-content .todo-list .todo-list__label>input[checked]:before{background:#26ab33;border-color:#26ab33}.ck-content .todo-list .todo-list__label>input[checked]:after{border-color:#fff}.ck-content .todo-list .todo-list__label .todo-list__label__description{vertical-align:middle}[dir=rtl] .todo-list .todo-list__label>input{left:0;margin-left:-15px;margin-right:0;right:-25px}.ck-editor__editable .todo-list .todo-list__label>input{cursor:pointer}.ck-editor__editable .todo-list .todo-list__label>input:hover:before{box-shadow:0 0 0 5px rgba(0,0,0,.1)}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-list/theme/todolist.css"],names:[],mappings:"AAKA,MACC,kCACD,CAEA,uBACC,eA0ED,CAxEC,0BACC,iBAKD,CAHC,qCACC,cACD,CAIA,+CACC,uBAAwB,CAQxB,QAAS,CAPT,oBAAqB,CAGrB,yCAA0C,CAO1C,UAAW,CAGX,aAAc,CAFd,kBAAmB,CAVnB,iBAAkB,CAWlB,OAAQ,CARR,qBAAsB,CAFtB,wCAqDD,CAxCC,sDAOC,qBAAiC,CACjC,iBAAkB,CALlB,qBAAsB,CACtB,UAAW,CAHX,aAAc,CAKd,WAAY,CAJZ,iBAAkB,CAOlB,0FAAgG,CAJhG,UAKD,CAEA,qDAaC,wBAAyB,CADzB,kBAAmB,CAEnB,sGAA+G,CAX/G,sBAAuB,CAEvB,UAAW,CAJX,aAAc,CAUd,mDAAwD,CAHxD,+CAAoD,CAJpD,mBAAoB,CAFpB,iBAAkB,CAOlB,gDAAqD,CAMrD,uBAAwB,CALxB,kDAMD,CAGC,+DACC,kBAA8B,CAC9B,oBACD,CAEA,8DACC,iBACD,CAIF,wEACC,qBACD,CAKF,6CACC,MAAO,CAGP,iBAAkB,CAFlB,cAAe,CACf,WAED,CAMA,wDACC,cAKD,CAHC,qEACC,mCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-todo-list-checkmark-size: 16px;\n}\n\n.ck-content .todo-list {\n\tlist-style: none;\n\n\t& li {\n\t\tmargin-bottom: 5px;\n\n\t\t& .todo-list {\n\t\t\tmargin-top: 5px;\n\t\t}\n\t}\n\n\t& .todo-list__label {\n\t\t& > input {\n\t\t\t-webkit-appearance: none;\n\t\t\tdisplay: inline-block;\n\t\t\tposition: relative;\n\t\t\twidth: var(--ck-todo-list-checkmark-size);\n\t\t\theight: var(--ck-todo-list-checkmark-size);\n\t\t\tvertical-align: middle;\n\n\t\t\t/* Needed on iOS */\n\t\t\tborder: 0;\n\n\t\t\t/* LTR styles */\n\t\t\tleft: -25px;\n\t\t\tmargin-right: -15px;\n\t\t\tright: 0;\n\t\t\tmargin-left: 0;\n\n\t\t\t&::before {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: border-box;\n\t\t\t\tcontent: '';\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t\tborder: 1px solid hsl(0, 0%, 20%);\n\t\t\t\tborder-radius: 2px;\n\t\t\t\ttransition: 250ms ease-in-out box-shadow, 250ms ease-in-out background, 250ms ease-in-out border;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tbox-sizing: content-box;\n\t\t\t\tpointer-events: none;\n\t\t\t\tcontent: '';\n\n\t\t\t\t/* Calculate tick position, size and border-width proportional to the checkmark size. */\n\t\t\t\tleft: calc( var(--ck-todo-list-checkmark-size) / 3 );\n\t\t\t\ttop: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\t\t\twidth: calc( var(--ck-todo-list-checkmark-size) / 5.3 );\n\t\t\t\theight: calc( var(--ck-todo-list-checkmark-size) / 2.6 );\n\t\t\t\tborder-style: solid;\n\t\t\t\tborder-color: transparent;\n\t\t\t\tborder-width: 0 calc( var(--ck-todo-list-checkmark-size) / 8 ) calc( var(--ck-todo-list-checkmark-size) / 8 ) 0;\n\t\t\t\ttransform: rotate(45deg);\n\t\t\t}\n\n\t\t\t&[checked] {\n\t\t\t\t&::before {\n\t\t\t\t\tbackground: hsl(126, 64%, 41%);\n\t\t\t\t\tborder-color: hsl(126, 64%, 41%);\n\t\t\t\t}\n\n\t\t\t\t&::after {\n\t\t\t\t\tborder-color: hsl(0, 0%, 100%);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t& .todo-list__label__description {\n\t\t\tvertical-align: middle;\n\t\t}\n\t}\n}\n\n/* RTL styles */\n[dir=\"rtl\"] .todo-list .todo-list__label > input {\n\tleft: 0;\n\tmargin-right: 0;\n\tright: -25px;\n\tmargin-left: -15px;\n}\n\n/*\n * To-do list should be interactive only during the editing\n * (https://github.com/ckeditor/ckeditor5/issues/2090).\n */\n.ck-editor__editable .todo-list .todo-list__label > input {\n\tcursor: pointer;\n\n\t&:hover::before {\n\t\tbox-shadow: 0 0 0 5px hsla(0, 0%, 0%, 0.1);\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5777:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .media{clear:both;display:block;margin:.9em 0;min-width:15em}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembed.css"],names:[],mappings:"AAKA,mBAGC,UAAW,CASX,aAAc,CAJd,aAAe,CAQf,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight spaces, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);var a=s;},952:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-media__wrapper .ck-media__placeholder{align-items:center;display:flex;flex-direction:column}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url{max-width:100%;position:relative}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-media__placeholder__url__text{display:block;overflow:hidden}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon *,.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck-media__placeholder__icon *{display:none}.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper>:not(.ck-media__placeholder),.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder{pointer-events:none}:root{--ck-media-embed-placeholder-icon-size:3em;--ck-color-media-embed-placeholder-url-text:#757575;--ck-color-media-embed-placeholder-url-text-hover:var(--ck-color-base-text)}.ck-media__wrapper{margin:0 auto}.ck-media__wrapper .ck-media__placeholder{background:var(--ck-color-base-foreground);padding:calc(var(--ck-spacing-standard)*3)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon{background-position:50%;background-size:cover;height:var(--ck-media-embed-placeholder-icon-size);margin-bottom:var(--ck-spacing-large);min-width:var(--ck-media-embed-placeholder-icon-size)}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__icon .ck-icon{height:100%;width:100%}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text{color:var(--ck-color-media-embed-placeholder-url-text);font-style:italic;text-align:center;text-overflow:ellipsis;white-space:nowrap}.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:var(--ck-color-media-embed-placeholder-url-text-hover);cursor:pointer;text-decoration:underline}.ck-media__wrapper[data-oembed-url*="open.spotify.com"]{max-height:380px;max-width:300px}.ck-media__wrapper[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon,.ck-media__wrapper[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PGVsbGlwc2Ugcnk9IjUuNTY0IiByeD0iNS44MjgiIGN5PSIyMzkuMDAyIiBjeD0iMjI2Ljc0MiIgZmlsbD0iIzgwMmQyNyIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMTkwLjMwMSAyMzcuMjgzYy00LjY3IDAtOC40NTcgMy44NTMtOC40NTcgOC42MDZzMy43ODYgOC42MDcgOC40NTcgOC42MDdjMy4wNDMgMCA0LjgwNi0uOTU4IDYuMzM3LTIuNTE2IDEuNTMtMS41NTcgMi4wODctMy45MTMgMi4wODctNi4yOSAwLS4zNjItLjAyMy0uNzIyLS4wNjQtMS4wNzloLTguMjU3djMuMDQzaDQuODVjLS4xOTcuNzU5LS41MzEgMS40NS0xLjA1OCAxLjk4Ni0uOTQyLjk1OC0yLjAyOCAxLjU0OC0zLjkwMSAxLjU0OC0yLjg3NiAwLTUuMjA4LTIuMzcyLTUuMjA4LTUuMjk5IDAtMi45MjYgMi4zMzItNS4yOTkgNS4yMDgtNS4yOTkgMS4zOTkgMCAyLjYxOC40MDcgMy41ODQgMS4yOTNsMi4zODEtMi4zOGMwLS4wMDItLjAwMy0uMDA0LS4wMDQtLjAwNS0xLjU4OC0xLjUyNC0zLjYyLTIuMjE1LTUuOTU1LTIuMjE1em00LjQzIDUuNjYuMDAzLjAwNnYtLjAwM3oiIGZpbGw9IiNmZmYiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0ibTIxNS4xODQgMjUxLjkyOS03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVhNS4yMzMgNS4yMzMgMCAwIDAgLjQ0OS0yLjEyM3YtMzEuMTY1Yy0uNDY5LjY3NS0uOTM0IDEuMzQ5LTEuMzgyIDIuMDA1LS43OTIgMS4yNzUtMS42ODIgMi42NC0yLjQ2NSAzLjk5LTIuMzQ3IDQuMDY1LTMuOTgyIDguMDM4LTQuNTg1IDEzLjc5NC0uMTYyLjQ4NS0uNTI3Ljc5OC0uOTMuNzk5LS4zNjMtLjAwMS0uNjk3LS4yNTUtLjg3OS0uNjY3di0uMDEyYy0uNTkzLTUuODIyLTIuMjM3LTkuODItNC42LTEzLjkxNC0uNzgzLTEuMzUtMS42NzMtMi43MTUtMi40NjYtMy45OS0xLjEzNy0xLjY2Ni0yLjMyNy0zLjQtMy42MzctNS4xNjlsLS4wMDItLjAwM3oiIGZpbGw9IiNjM2MzYzMiLz48cGF0aCBkPSJtMjEyLjk4MyAyNDguNDk1LTM2Ljk1MiAzNi45NTN2LjgxMmE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOCA1LjIzOGgxLjAxNWwzNS42NjYtMzUuNjY2YTEzNi4yNzUgMTM2LjI3NSAwIDAgMC0yLjc2NC0zLjkgMzcuNTc1IDM3LjU3NSAwIDAgMC0uOTg5LTEuNDQgMzUuMTI3IDM1LjEyNyAwIDAgMC0uOTUtMS41MDhjLS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJtMjExLjk5OCAyNjEuMDgzLTYuMTUyIDYuMTUxIDI0LjI2NCAyNC4yNjRoLjc4MWE1LjIyNyA1LjIyNyAwIDAgMCA1LjIzOS01LjIzOHYtMS4wNDV6IiBmaWxsPSIjZmZmIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjwvZz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder{background:#4268b3}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAyNCIgaGVpZ2h0PSIxMDI0IiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPjxwYXRoIGQ9Ik05NjcuNDg0IDBINTYuNTE3QzI1LjMwNCAwIDAgMjUuMzA0IDAgNTYuNTE3djkxMC45NjZDMCA5OTguNjk0IDI1LjI5NyAxMDI0IDU2LjUyMiAxMDI0SDU0N1Y2MjhINDE0VjQ3M2gxMzNWMzU5LjAyOWMwLTEzMi4yNjIgODAuNzczLTIwNC4yODIgMTk4Ljc1Ni0yMDQuMjgyIDU2LjUxMyAwIDEwNS4wODYgNC4yMDggMTE5LjI0NCA2LjA4OVYyOTlsLTgxLjYxNi4wMzdjLTYzLjk5MyAwLTc2LjM4NCAzMC40OTItNzYuMzg0IDc1LjIzNlY0NzNoMTUzLjQ4N2wtMTkuOTg2IDE1NUg3MDd2Mzk2aDI2MC40ODRjMzEuMjEzIDAgNTYuNTE2LTI1LjMwMyA1Ni41MTYtNTYuNTE2VjU2LjUxNUMxMDI0IDI1LjMwMyA5OTguNjk3IDAgOTY3LjQ4NCAwIiBmaWxsPSIjRkZGRkZFIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#cdf}.ck-media__wrapper[data-oembed-url*="facebook.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder{background:linear-gradient(-135deg,#1400c7,#b800b1,#f50000)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTA0IiBoZWlnaHQ9IjUwNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+PGRlZnM+PHBhdGggaWQ9ImEiIGQ9Ik0wIC4xNTloNTAzLjg0MVY1MDMuOTRIMHoiLz48L2RlZnM+PGcgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj48bWFzayBpZD0iYiIgZmlsbD0iI2ZmZiI+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuNDg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+PC9nPjwvc3ZnPg==)}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text{color:#ffe0fe}.ck-media__wrapper[data-oembed-url*="instagram.com"] .ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder{background:linear-gradient(90deg,#71c6f4,#0d70a5)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__icon{background-image:url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45IDIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text{color:#b8e6ff}.ck-media__wrapper[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder .ck-media__placeholder__url__text:hover{color:#fff}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaembedediting.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAMC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAcD,CAXC,sEAEC,cAAe,CAEf,iBAMD,CAJC,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CC1CA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-media__wrapper {\n\t& .ck-media__placeholder {\n\t\tdisplay: flex;\n\t\tflex-direction: column;\n\t\talign-items: center;\n\n\t\t& .ck-media__placeholder__url {\n\t\t\t/* Otherwise the URL will overflow when the content is very narrow. */\n\t\t\tmax-width: 100%;\n\n\t\t\tposition: relative;\n\n\t\t\t& .ck-media__placeholder__url__text {\n\t\t\t\toverflow: hidden;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"],\n\t&[data-oembed-url*="google.com/maps"],\n\t&[data-oembed-url*="goo.gl/maps"],\n\t&[data-oembed-url*="maps.google.com"],\n\t&[data-oembed-url*="maps.app.goo.gl"],\n\t&[data-oembed-url*="facebook.com"],\n\t&[data-oembed-url*="instagram.com"] {\n\t\t& .ck-media__placeholder__icon * {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/* Disable all mouse interaction as long as the editor is not read–only.\n https://github.com/ckeditor/ckeditor5-media-embed/issues/58 */\n.ck-editor__editable:not(.ck-read-only) .ck-media__wrapper > *:not(.ck-media__placeholder) {\n\tpointer-events: none;\n}\n\n/* Disable all mouse interaction when the widget is not selected (e.g. to avoid opening links by accident).\n https://github.com/ckeditor/ckeditor5-media-embed/issues/18 */\n.ck-editor__editable:not(.ck-read-only) .ck-widget:not(.ck-widget_selected) .ck-media__placeholder {\n\tpointer-events: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-media-embed-placeholder-icon-size: 3em;\n\n\t--ck-color-media-embed-placeholder-url-text: hsl(0, 0%, 46%);\n\t--ck-color-media-embed-placeholder-url-text-hover: var(--ck-color-base-text);\n}\n\n.ck-media__wrapper {\n\tmargin: 0 auto;\n\n\t& .ck-media__placeholder {\n\t\tpadding: calc( 3 * var(--ck-spacing-standard) );\n\t\tbackground: var(--ck-color-base-foreground);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tmin-width: var(--ck-media-embed-placeholder-icon-size);\n\t\t\theight: var(--ck-media-embed-placeholder-icon-size);\n\t\t\tmargin-bottom: var(--ck-spacing-large);\n\t\t\tbackground-position: center;\n\t\t\tbackground-size: cover;\n\n\t\t\t& .ck-icon {\n\t\t\t\twidth: 100%;\n\t\t\t\theight: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text);\n\t\t\twhite-space: nowrap;\n\t\t\ttext-align: center;\n\t\t\tfont-style: italic;\n\t\t\ttext-overflow: ellipsis;\n\n\t\t\t&:hover {\n\t\t\t\tcolor: var(--ck-color-media-embed-placeholder-url-text-hover);\n\t\t\t\tcursor: pointer;\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="open.spotify.com"] {\n\t\tmax-width: 300px;\n\t\tmax-height: 380px;\n\t}\n\n\t&[data-oembed-url*="google.com/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="goo.gl/maps"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.google.com"] .ck-media__placeholder__icon,\n\t&[data-oembed-url*="maps.app.goo.gl"] .ck-media__placeholder__icon {\n\t\tbackground-image: url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNTAuMzc4IiBoZWlnaHQ9IjI1NC4xNjciIHZpZXdCb3g9IjAgMCA2Ni4yNDYgNjcuMjQ4Ij48ZyB0cmFuc2Zvcm09InRyYW5zbGF0ZSgtMTcyLjUzMSAtMjE4LjQ1NSkgc2NhbGUoLjk4MDEyKSI+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Ik0yMDYuNDc3IDI2MC45bC0yOC45ODcgMjguOTg3YTUuMjE4IDUuMjE4IDAgMCAwIDMuNzggMS42MWg0OS42MjFjMS42OTQgMCAzLjE5LS43OTggNC4xNDYtMi4wMzd6IiBmaWxsPSIjNWM4OGM1Ii8+PHBhdGggZD0iTTIyNi43NDIgMjIyLjk4OGMtOS4yNjYgMC0xNi43NzcgNy4xNy0xNi43NzcgMTYuMDE0LjAwNyAyLjc2Mi42NjMgNS40NzQgMi4wOTMgNy44NzUuNDMuNzAzLjgzIDEuNDA4IDEuMTkgMi4xMDcuMzMzLjUwMi42NSAxLjAwNS45NSAxLjUwOC4zNDMuNDc3LjY3My45NTcuOTg4IDEuNDQgMS4zMSAxLjc2OSAyLjUgMy41MDIgMy42MzcgNS4xNjguNzkzIDEuMjc1IDEuNjgzIDIuNjQgMi40NjYgMy45OSAyLjM2MyA0LjA5NCA0LjAwNyA4LjA5MiA0LjYgMTMuOTE0di4wMTJjLjE4Mi40MTIuNTE2LjY2Ni44NzkuNjY3LjQwMy0uMDAxLjc2OC0uMzE0LjkzLS43OTkuNjAzLTUuNzU2IDIuMjM4LTkuNzI5IDQuNTg1LTEzLjc5NC43ODItMS4zNSAxLjY3My0yLjcxNSAyLjQ2NS0zLjk5IDEuMTM3LTEuNjY2IDIuMzI4LTMuNCAzLjYzOC01LjE2OS4zMTUtLjQ4Mi42NDUtLjk2Mi45ODgtMS40MzkuMy0uNTAzLjYxNy0xLjAwNi45NS0xLjUwOC4zNTktLjcuNzYtMS40MDQgMS4xOS0yLjEwNyAxLjQyNi0yLjQwMiAyLTUuMTE0IDIuMDA0LTcuODc1IDAtOC44NDQtNy41MTEtMTYuMDE0LTE2Ljc3Ni0xNi4wMTR6IiBmaWxsPSIjZGQ0YjNlIiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxlbGxpcHNlIHJ5PSI1LjU2NCIgcng9IjUuODI4IiBjeT0iMjM5LjAwMiIgY3g9IjIyNi43NDIiIGZpbGw9IiM4MDJkMjciIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+PHBhdGggZD0iTTE5MC4zMDEgMjM3LjI4M2MtNC42NyAwLTguNDU3IDMuODUzLTguNDU3IDguNjA2czMuNzg2IDguNjA3IDguNDU3IDguNjA3YzMuMDQzIDAgNC44MDYtLjk1OCA2LjMzNy0yLjUxNiAxLjUzLTEuNTU3IDIuMDg3LTMuOTEzIDIuMDg3LTYuMjkgMC0uMzYyLS4wMjMtLjcyMi0uMDY0LTEuMDc5aC04LjI1N3YzLjA0M2g0Ljg1Yy0uMTk3Ljc1OS0uNTMxIDEuNDUtMS4wNTggMS45ODYtLjk0Mi45NTgtMi4wMjggMS41NDgtMy45MDEgMS41NDgtMi44NzYgMC01LjIwOC0yLjM3Mi01LjIwOC01LjI5OSAwLTIuOTI2IDIuMzMyLTUuMjk5IDUuMjA4LTUuMjk5IDEuMzk5IDAgMi42MTguNDA3IDMuNTg0IDEuMjkzbDIuMzgxLTIuMzhjMC0uMDAyLS4wMDMtLjAwNC0uMDA0LS4wMDUtMS41ODgtMS41MjQtMy42Mi0yLjIxNS01Ljk1NS0yLjIxNXptNC40MyA1LjY2bC4wMDMuMDA2di0uMDAzeiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjE1LjE4NCAyNTEuOTI5bC03Ljk4IDcuOTc5IDI4LjQ3NyAyOC40NzVjLjI4Ny0uNjQ5LjQ0OS0xLjM2Ni40NDktMi4xMjN2LTMxLjE2NWMtLjQ2OS42NzUtLjkzNCAxLjM0OS0xLjM4MiAyLjAwNS0uNzkyIDEuMjc1LTEuNjgyIDIuNjQtMi40NjUgMy45OS0yLjM0NyA0LjA2NS0zLjk4MiA4LjAzOC00LjU4NSAxMy43OTQtLjE2Mi40ODUtLjUyNy43OTgtLjkzLjc5OS0uMzYzLS4wMDEtLjY5Ny0uMjU1LS44NzktLjY2N3YtLjAxMmMtLjU5My01LjgyMi0yLjIzNy05LjgyLTQuNi0xMy45MTQtLjc4My0xLjM1LTEuNjczLTIuNzE1LTIuNDY2LTMuOTktMS4xMzctMS42NjYtMi4zMjctMy40LTMuNjM3LTUuMTY5bC0uMDAyLS4wMDN6IiBmaWxsPSIjYzNjM2MzIi8+PHBhdGggZD0iTTIxMi45ODMgMjQ4LjQ5NWwtMzYuOTUyIDM2Ljk1M3YuODEyYTUuMjI3IDUuMjI3IDAgMCAwIDUuMjM4IDUuMjM4aDEuMDE1bDM1LjY2Ni0zNS42NjZhMTM2LjI3NSAxMzYuMjc1IDAgMCAwLTIuNzY0LTMuOSAzNy41NzUgMzcuNTc1IDAgMCAwLS45ODktMS40NGMtLjI5OS0uNTAzLS42MTYtMS4wMDYtLjk1LTEuNTA4LS4wODMtLjE2Mi0uMTc2LS4zMjYtLjI2NC0uNDg5eiIgZmlsbD0iI2ZkZGM0ZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48cGF0aCBkPSJNMjExLjk5OCAyNjEuMDgzbC02LjE1MiA2LjE1MSAyNC4yNjQgMjQuMjY0aC43ODFhNS4yMjcgNS4yMjcgMCAwIDAgNS4yMzktNS4yMzh2LTEuMDQ1eiIgZmlsbD0iI2ZmZiIgcGFpbnQtb3JkZXI9Im1hcmtlcnMgc3Ryb2tlIGZpbGwiLz48L2c+PC9zdmc+);\n\t}\n\n\t&[data-oembed-url*="facebook.com"] .ck-media__placeholder {\n\t\tbackground: hsl(220, 46%, 48%);\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSIxMDI0cHgiIGhlaWdodD0iMTAyNHB4IiB2aWV3Qm94PSIwIDAgMTAyNCAxMDI0IiB2ZXJzaW9uPSIxLjEiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiPiAgICAgICAgPHRpdGxlPkZpbGwgMTwvdGl0bGU+ICAgIDxkZXNjPkNyZWF0ZWQgd2l0aCBTa2V0Y2guPC9kZXNjPiAgICA8ZGVmcz48L2RlZnM+ICAgIDxnIGlkPSJQYWdlLTEiIHN0cm9rZT0ibm9uZSIgc3Ryb2tlLXdpZHRoPSIxIiBmaWxsPSJub25lIiBmaWxsLXJ1bGU9ImV2ZW5vZGQiPiAgICAgICAgPGcgaWQ9ImZMb2dvX1doaXRlIiBmaWxsPSIjRkZGRkZFIj4gICAgICAgICAgICA8cGF0aCBkPSJNOTY3LjQ4NCwwIEw1Ni41MTcsMCBDMjUuMzA0LDAgMCwyNS4zMDQgMCw1Ni41MTcgTDAsOTY3LjQ4MyBDMCw5OTguNjk0IDI1LjI5NywxMDI0IDU2LjUyMiwxMDI0IEw1NDcsMTAyNCBMNTQ3LDYyOCBMNDE0LDYyOCBMNDE0LDQ3MyBMNTQ3LDQ3MyBMNTQ3LDM1OS4wMjkgQzU0NywyMjYuNzY3IDYyNy43NzMsMTU0Ljc0NyA3NDUuNzU2LDE1NC43NDcgQzgwMi4yNjksMTU0Ljc0NyA4NTAuODQyLDE1OC45NTUgODY1LDE2MC44MzYgTDg2NSwyOTkgTDc4My4zODQsMjk5LjAzNyBDNzE5LjM5MSwyOTkuMDM3IDcwNywzMjkuNTI5IDcwNywzNzQuMjczIEw3MDcsNDczIEw4NjAuNDg3LDQ3MyBMODQwLjUwMSw2MjggTDcwNyw2MjggTDcwNywxMDI0IEw5NjcuNDg0LDEwMjQgQzk5OC42OTcsMTAyNCAxMDI0LDk5OC42OTcgMTAyNCw5NjcuNDg0IEwxMDI0LDU2LjUxNSBDMTAyNCwyNS4zMDMgOTk4LjY5NywwIDk2Ny40ODQsMCIgaWQ9IkZpbGwtMSI+PC9wYXRoPiAgICAgICAgPC9nPiAgICA8L2c+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(220, 100%, 90%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="instagram.com"] .ck-media__placeholder {\n\t\tbackground: linear-gradient(-135deg,hsl(246, 100%, 39%),hsl(302, 100%, 36%),hsl(0, 100%, 48%));\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0iVVRGLTgiPz48c3ZnIHdpZHRoPSI1MDRweCIgaGVpZ2h0PSI1MDRweCIgdmlld0JveD0iMCAwIDUwNCA1MDQiIHZlcnNpb249IjEuMSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayI+ICAgICAgICA8dGl0bGU+Z2x5cGgtbG9nb19NYXkyMDE2PC90aXRsZT4gICAgPGRlc2M+Q3JlYXRlZCB3aXRoIFNrZXRjaC48L2Rlc2M+ICAgIDxkZWZzPiAgICAgICAgPHBvbHlnb24gaWQ9InBhdGgtMSIgcG9pbnRzPSIwIDAuMTU5IDUwMy44NDEgMC4xNTkgNTAzLjg0MSA1MDMuOTQgMCA1MDMuOTQiPjwvcG9seWdvbj4gICAgPC9kZWZzPiAgICA8ZyBpZD0iZ2x5cGgtbG9nb19NYXkyMDE2IiBzdHJva2U9Im5vbmUiIHN0cm9rZS13aWR0aD0iMSIgZmlsbD0ibm9uZSIgZmlsbC1ydWxlPSJldmVub2RkIj4gICAgICAgIDxnIGlkPSJHcm91cC0zIj4gICAgICAgICAgICA8bWFzayBpZD0ibWFzay0yIiBmaWxsPSJ3aGl0ZSI+ICAgICAgICAgICAgICAgIDx1c2UgeGxpbms6aHJlZj0iI3BhdGgtMSI+PC91c2U+ICAgICAgICAgICAgPC9tYXNrPiAgICAgICAgICAgIDxnIGlkPSJDbGlwLTIiPjwvZz4gICAgICAgICAgICA8cGF0aCBkPSJNMjUxLjkyMSwwLjE1OSBDMTgzLjUwMywwLjE1OSAxNzQuOTI0LDAuNDQ5IDE0OC4wNTQsMS42NzUgQzEyMS4yNCwyLjg5OCAxMDIuOTI3LDcuMTU3IDg2LjkwMywxMy4zODUgQzcwLjMzNywxOS44MjIgNTYuMjg4LDI4LjQzNiA0Mi4yODIsNDIuNDQxIEMyOC4yNzcsNTYuNDQ3IDE5LjY2Myw3MC40OTYgMTMuMjI2LDg3LjA2MiBDNi45OTgsMTAzLjA4NiAyLjczOSwxMjEuMzk5IDEuNTE2LDE0OC4yMTMgQzAuMjksMTc1LjA4MyAwLDE4My42NjIgMCwyNTIuMDggQzAsMzIwLjQ5NyAwLjI5LDMyOS4wNzYgMS41MTYsMzU1Ljk0NiBDMi43MzksMzgyLjc2IDYuOTk4LDQwMS4wNzMgMTMuMjI2LDQxNy4wOTcgQzE5LjY2Myw0MzMuNjYzIDI4LjI3Nyw0NDcuNzEyIDQyLjI4Miw0NjEuNzE4IEM1Ni4yODgsNDc1LjcyMyA3MC4zMzcsNDg0LjMzNyA4Ni45MDMsNDkwLjc3NSBDMTAyLjkyNyw0OTcuMDAyIDEyMS4yNCw1MDEuMjYxIDE0OC4wNTQsNTAyLjQ4NCBDMTc0LjkyNCw1MDMuNzEgMTgzLjUwMyw1MDQgMjUxLjkyMSw1MDQgQzMyMC4zMzgsNTA0IDMyOC45MTcsNTAzLjcxIDM1NS43ODcsNTAyLjQ4NCBDMzgyLjYwMSw1MDEuMjYxIDQwMC45MTQsNDk3LjAwMiA0MTYuOTM4LDQ5MC43NzUgQzQzMy41MDQsNDg0LjMzNyA0NDcuNTUzLDQ3NS43MjMgNDYxLjU1OSw0NjEuNzE4IEM0NzUuNTY0LDQ0Ny43MTIgNDg0LjE3OCw0MzMuNjYzIDQ5MC42MTYsNDE3LjA5NyBDNDk2Ljg0Myw0MDEuMDczIDUwMS4xMDIsMzgyLjc2IDUwMi4zMjUsMzU1Ljk0NiBDNTAzLjU1MSwzMjkuMDc2IDUwMy44NDEsMzIwLjQ5NyA1MDMuODQxLDI1Mi4wOCBDNTAzLjg0MSwxODMuNjYyIDUwMy41NTEsMTc1LjA4MyA1MDIuMzI1LDE0OC4yMTMgQzUwMS4xMDIsMTIxLjM5OSA0OTYuODQzLDEwMy4wODYgNDkwLjYxNiw4Ny4wNjIgQzQ4NC4xNzgsNzAuNDk2IDQ3NS41NjQsNTYuNDQ3IDQ2MS41NTksNDIuNDQxIEM0NDcuNTUzLDI4LjQzNiA0MzMuNTA0LDE5LjgyMiA0MTYuOTM4LDEzLjM4NSBDNDAwLjkxNCw3LjE1NyAzODIuNjAxLDIuODk4IDM1NS43ODcsMS42NzUgQzMyOC45MTcsMC40NDkgMzIwLjMzOCwwLjE1OSAyNTEuOTIxLDAuMTU5IFogTTI1MS45MjEsNDUuNTUgQzMxOS4xODYsNDUuNTUgMzI3LjE1NCw0NS44MDcgMzUzLjcxOCw0Ny4wMTkgQzM3OC4yOCw0OC4xMzkgMzkxLjYxOSw1Mi4yNDMgNDAwLjQ5Niw1NS42OTMgQzQxMi4yNTUsNjAuMjYzIDQyMC42NDcsNjUuNzIyIDQyOS40NjIsNzQuNTM4IEM0MzguMjc4LDgzLjM1MyA0NDMuNzM3LDkxLjc0NSA0NDguMzA3LDEwMy41MDQgQzQ1MS43NTcsMTEyLjM4MSA0NTUuODYxLDEyNS43MiA0NTYuOTgxLDE1MC4yODIgQzQ1OC4xOTMsMTc2Ljg0NiA0NTguNDUsMTg0LjgxNCA0NTguNDUsMjUyLjA4IEM0NTguNDUsMzE5LjM0NSA0NTguMTkzLDMyNy4zMTMgNDU2Ljk4MSwzNTMuODc3IEM0NTUuODYxLDM3OC40MzkgNDUxLjc1NywzOTEuNzc4IDQ0OC4zMDcsNDAwLjY1NSBDNDQzLjczNyw0MTIuNDE0IDQzOC4yNzgsNDIwLjgwNiA0MjkuNDYyLDQyOS42MjEgQzQyMC42NDcsNDM4LjQzNyA0MTIuMjU1LDQ0My44OTYgNDAwLjQ5Niw0NDguNDY2IEMzOTEuNjE5LDQ1MS45MTYgMzc4LjI4LDQ1Ni4wMiAzNTMuNzE4LDQ1Ny4xNCBDMzI3LjE1OCw0NTguMzUyIDMxOS4xOTEsNDU4LjYwOSAyNTEuOTIxLDQ1OC42MDkgQzE4NC42NSw0NTguNjA5IDE3Ni42ODQsNDU4LjM1MiAxNTAuMTIzLDQ1Ny4xNCBDMTI1LjU2MSw0NTYuMDIgMTEyLjIyMiw0NTEuOTE2IDEwMy4zNDUsNDQ4LjQ2NiBDOTEuNTg2LDQ0My44OTYgODMuMTk0LDQzOC40MzcgNzQuMzc5LDQyOS42MjEgQzY1LjU2NCw0MjAuODA2IDYwLjEwNCw0MTIuNDE0IDU1LjUzNCw0MDAuNjU1IEM1Mi4wODQsMzkxLjc3OCA0Ny45OCwzNzguNDM5IDQ2Ljg2LDM1My44NzcgQzQ1LjY0OCwzMjcuMzEzIDQ1LjM5MSwzMTkuMzQ1IDQ1LjM5MSwyNTIuMDggQzQ1LjM5MSwxODQuODE0IDQ1LjY0OCwxNzYuODQ2IDQ2Ljg2LDE1MC4yODIgQzQ3Ljk4LDEyNS43MiA1Mi4wODQsMTEyLjM4MSA1NS41MzQsMTAzLjUwNCBDNjAuMTA0LDkxLjc0NSA2NS41NjMsODMuMzUzIDc0LjM3OSw3NC41MzggQzgzLjE5NCw2NS43MjIgOTEuNTg2LDYwLjI2MyAxMDMuMzQ1LDU1LjY5MyBDMTEyLjIyMiw1Mi4yNDMgMTI1LjU2MSw0OC4xMzkgMTUwLjEyMyw0Ny4wMTkgQzE3Ni42ODcsNDUuODA3IDE4NC42NTUsNDUuNTUgMjUxLjkyMSw0NS41NSBaIiBpZD0iRmlsbC0xIiBmaWxsPSIjRkZGRkZGIiBtYXNrPSJ1cmwoI21hc2stMikiPjwvcGF0aD4gICAgICAgIDwvZz4gICAgICAgIDxwYXRoIGQ9Ik0yNTEuOTIxLDMzNi4wNTMgQzIwNS41NDMsMzM2LjA1MyAxNjcuOTQ3LDI5OC40NTcgMTY3Ljk0NywyNTIuMDggQzE2Ny45NDcsMjA1LjcwMiAyMDUuNTQzLDE2OC4xMDYgMjUxLjkyMSwxNjguMTA2IEMyOTguMjk4LDE2OC4xMDYgMzM1Ljg5NCwyMDUuNzAyIDMzNS44OTQsMjUyLjA4IEMzMzUuODk0LDI5OC40NTcgMjk4LjI5OCwzMzYuMDUzIDI1MS45MjEsMzM2LjA1MyBaIE0yNTEuOTIxLDEyMi43MTUgQzE4MC40NzQsMTIyLjcxNSAxMjIuNTU2LDE4MC42MzMgMTIyLjU1NiwyNTIuMDggQzEyMi41NTYsMzIzLjUyNiAxODAuNDc0LDM4MS40NDQgMjUxLjkyMSwzODEuNDQ0IEMzMjMuMzY3LDM4MS40NDQgMzgxLjI4NSwzMjMuNTI2IDM4MS4yODUsMjUyLjA4IEMzODEuMjg1LDE4MC42MzMgMzIzLjM2NywxMjIuNzE1IDI1MS45MjEsMTIyLjcxNSBaIiBpZD0iRmlsbC00IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgICAgICA8cGF0aCBkPSJNNDE2LjYyNywxMTcuNjA0IEM0MTYuNjI3LDEzNC4zIDQwMy4wOTIsMTQ3LjgzNCAzODYuMzk2LDE0Ny44MzQgQzM2OS43MDEsMTQ3LjgzNCAzNTYuMTY2LDEzNC4zIDM1Ni4xNjYsMTE3LjYwNCBDMzU2LjE2NiwxMDAuOTA4IDM2OS43MDEsODcuMzczIDM4Ni4zOTYsODcuMzczIEM0MDMuMDkyLDg3LjM3MyA0MTYuNjI3LDEwMC45MDggNDE2LjYyNywxMTcuNjA0IiBpZD0iRmlsbC01IiBmaWxsPSIjRkZGRkZGIj48L3BhdGg+ICAgIDwvZz48L3N2Zz4=);\n\t\t}\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(302, 100%, 94%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n\n\t&[data-oembed-url*="twitter.com"] .ck.ck-media__placeholder {\n\t\t/* Use gradient to contrast with focused widget (ckeditor/ckeditor5-media-embed#22). */\n\t\tbackground: linear-gradient( to right, hsl(201, 85%, 70%), hsl(201, 85%, 35%) );\n\n\t\t& .ck-media__placeholder__icon {\n\t\t\tbackground-image: url(data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz48c3ZnIHZlcnNpb249IjEuMSIgaWQ9IldoaXRlIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB4PSIwcHgiIHk9IjBweCIgdmlld0JveD0iMCAwIDQwMCA0MDAiIHN0eWxlPSJlbmFibGUtYmFja2dyb3VuZDpuZXcgMCAwIDQwMCA0MDA7IiB4bWw6c3BhY2U9InByZXNlcnZlIj48c3R5bGUgdHlwZT0idGV4dC9jc3MiPi5zdDB7ZmlsbDojRkZGRkZGO308L3N0eWxlPjxwYXRoIGNsYXNzPSJzdDAiIGQ9Ik00MDAsMjAwYzAsMTEwLjUtODkuNSwyMDAtMjAwLDIwMFMwLDMxMC41LDAsMjAwUzg5LjUsMCwyMDAsMFM0MDAsODkuNSw0MDAsMjAweiBNMTYzLjQsMzA1LjVjODguNywwLDEzNy4yLTczLjUsMTM3LjItMTM3LjJjMC0yLjEsMC00LjItMC4xLTYuMmM5LjQtNi44LDE3LjYtMTUuMywyNC4xLTI1Yy04LjYsMy44LTE3LjksNi40LTI3LjcsNy42YzEwLTYsMTcuNi0xNS40LDIxLjItMjYuN2MtOS4zLDUuNS0xOS42LDkuNS0zMC42LDExLjdjLTguOC05LjQtMjEuMy0xNS4yLTM1LjItMTUuMmMtMjYuNiwwLTQ4LjIsMjEuNi00OC4yLDQ4LjJjMCwzLjgsMC40LDcuNSwxLjMsMTFjLTQwLjEtMi03NS42LTIxLjItOTkuNC01MC40Yy00LjEsNy4xLTYuNSwxNS40LTYuNSwyNC4yYzAsMTYuNyw4LjUsMzEuNSwyMS41LDQwLjFjLTcuOS0wLjItMTUuMy0yLjQtMjEuOC02YzAsMC4yLDAsMC40LDAsMC42YzAsMjMuNCwxNi42LDQyLjgsMzguNyw0Ny4zYy00LDEuMS04LjMsMS43LTEyLjcsMS43Yy0zLjEsMC02LjEtMC4zLTkuMS0wLjljNi4xLDE5LjIsMjMuOSwzMy4xLDQ1LDMzLjVjLTE2LjUsMTIuOS0zNy4zLDIwLjYtNTkuOSwyMC42Yy0zLjksMC03LjctMC4yLTExLjUtMC43QzExMC44LDI5Ny41LDEzNi4yLDMwNS41LDE2My40LDMwNS41Ii8+PC9zdmc+);\n\t\t}\n\n\t\t& .ck-media__placeholder__url__text {\n\t\t\tcolor: hsl(201, 100%, 86%);\n\n\t\t\t&:hover {\n\t\t\t\tcolor: hsl(0, 0%, 100%);\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},3525:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-media-form{align-items:flex-start;display:flex;flex-direction:row;flex-wrap:nowrap}.ck.ck-media-form .ck-labeled-field-view{display:inline-block}.ck.ck-media-form .ck-label{display:none}@media screen and (max-width:600px){.ck.ck-media-form{flex-wrap:wrap}.ck.ck-media-form .ck-labeled-field-view{flex-basis:100%}.ck.ck-media-form .ck-button{flex-basis:50%}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-media-embed/theme/mediaform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css"],names:[],mappings:"AAOA,kBAEC,sBAAuB,CADvB,YAAa,CAEb,kBAAmB,CACnB,gBAqBD,CAnBC,yCACC,oBACD,CAEA,4BACC,YACD,CCbA,oCDCD,kBAeE,cAUF,CARE,yCACC,eACD,CAEA,6BACC,cACD,CCtBD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},4082:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-input-color{display:flex;flex-direction:row-reverse;width:100%}.ck.ck-input-color>input.ck.ck-input-text{flex-grow:1;min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown{min-width:auto}.ck.ck-input-color>div.ck.ck-dropdown>.ck-input-color__button .ck-dropdown__arrow{display:none}.ck.ck-input-color .ck.ck-input-color__button{display:flex}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview{overflow:hidden;position:relative}.ck.ck-input-color .ck.ck-input-color__button .ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{display:block;position:absolute}[dir=ltr] .ck.ck-input-color>.ck.ck-input-text{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-input-text{border-bottom-left-radius:0;border-top-left-radius:0}.ck.ck-input-color>.ck.ck-input-text:focus{z-index:0}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{padding:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-left-radius:0;border-top-left-radius:0}[dir=ltr] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-left:1px solid transparent}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-top-right-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button:not(:focus){border-right:1px solid transparent}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button.ck-disabled{background:var(--ck-color-input-disabled-background)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border-radius:0}.ck-rounded-corners .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview,.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview{border:1px solid var(--ck-color-input-border);height:20px;width:20px}.ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button>.ck.ck-input-color__button__preview>.ck.ck-input-color__button__preview__no-color-indicator{background:red;border-radius:2px;height:150%;left:50%;top:-30%;transform:rotate(45deg);transform-origin:50%;width:8%}.ck.ck-input-color .ck.ck-input-color__remove-color{border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}.ck.ck-input-color .ck.ck-input-color__remove-color:not(:focus){border-bottom:1px solid var(--ck-color-input-border)}[dir=ltr] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-right-radius:0}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color{border-top-left-radius:0}.ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-input-color .ck.ck-input-color__remove-color .ck.ck-icon{margin-left:var(--ck-spacing-standard);margin-right:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/colorinput.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,YAAa,CACb,0BAA2B,CAF3B,UAgCD,CA5BC,0CAEC,WAAY,CADZ,cAED,CAEA,sCACC,cAMD,CAHC,kFACC,YACD,CAGD,8CAEC,YAWD,CATC,kFAEC,eAAgB,CADhB,iBAOD,CAJC,0IAEC,aAAc,CADd,iBAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAcF,CAhBA,+CAQE,2BAA4B,CAD5B,wBASF,CAHC,2CACC,SACD,CAIA,wEACC,SA0CD,CA3CA,kFAKE,2BAA4B,CAD5B,wBAuCF,CApCE,8FACC,iCACD,CATF,kFAcE,4BAA6B,CAD7B,yBA8BF,CA3BE,8FACC,kCACD,CAGD,oFACC,oDACD,CAEA,4GC1CF,eD2DE,CAjBA,+PCtCD,qCDuDC,CAjBA,4GAKC,6CAA8C,CAD9C,WAAY,CADZ,UAcD,CAVC,oKAKC,cAA6B,CAC7B,iBAAkB,CAHlB,WAAY,CADZ,QAAS,CADT,QAAS,CAMT,uBAAwB,CACxB,oBAAqB,CAJrB,QAKD,CAKH,oDAIC,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CADxE,UA0BD,CApBC,gEACC,oDACD,CATD,8DAYE,yBAeF,CA3BA,8DAgBE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-input-color {\n\twidth: 100%;\n\tdisplay: flex;\n\tflex-direction: row-reverse;\n\n\t& > input.ck.ck-input-text {\n\t\tmin-width: auto;\n\t\tflex-grow: 1;\n\t}\n\n\t& > div.ck.ck-dropdown {\n\t\tmin-width: auto;\n\n\t\t/* This dropdown has no arrow but a color preview instead. */\n\t\t& > .ck-input-color__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__button {\n\t\t/* Resolving issue with misaligned buttons on Safari (see #10589) */\n\t\tdisplay: flex;\n\n\t\t& .ck.ck-input-color__button__preview {\n\t\t\tposition: relative;\n\t\t\toverflow: hidden;\n\n\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\tposition: absolute;\n\t\t\t\tdisplay: block;\n\t\t\t}\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.ck.ck-input-color {\n\t& > .ck.ck-input-text {\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* Make sure the focused input is always on top of the dropdown button so its\n\t\t outline and border are never cropped (also when the input is read-only). */\n\t\t&:focus {\n\t\t\tz-index: 0;\n\t\t}\n\t}\n\n\t& > .ck.ck-dropdown {\n\t\t& > .ck.ck-button.ck-input-color__button {\n\t\t\tpadding: 0;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-left: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\n\t\t\t\t&:not(:focus) {\n\t\t\t\t\tborder-right: 1px solid transparent;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t&.ck-disabled {\n\t\t\t\tbackground: var(--ck-color-input-disabled-background);\n\t\t\t}\n\n\t\t\t& > .ck.ck-input-color__button__preview {\n\t\t\t\t@mixin ck-rounded-corners;\n\n\t\t\t\twidth: 20px;\n\t\t\t\theight: 20px;\n\t\t\t\tborder: 1px solid var(--ck-color-input-border);\n\n\t\t\t\t& > .ck.ck-input-color__button__preview__no-color-indicator {\n\t\t\t\t\ttop: -30%;\n\t\t\t\t\tleft: 50%;\n\t\t\t\t\theight: 150%;\n\t\t\t\t\twidth: 8%;\n\t\t\t\t\tbackground: hsl(0, 100%, 50%);\n\t\t\t\t\tborder-radius: 2px;\n\t\t\t\t\ttransform: rotate(45deg);\n\t\t\t\t\ttransform-origin: 50%;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-input-color__remove-color {\n\t\twidth: 100%;\n\t\tpadding: calc(var(--ck-spacing-standard) / 2) var(--ck-spacing-standard);\n\n\t\tborder-bottom-left-radius: 0;\n\t\tborder-bottom-right-radius: 0;\n\n\t\t&:not(:focus) {\n\t\t\tborder-bottom: 1px solid var(--ck-color-input-border);\n\t\t}\n\n\t\t@mixin ck-dir ltr {\n\t\t\tborder-top-right-radius: 0;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tborder-top-left-radius: 0;\n\t\t}\n\n\t\t& .ck.ck-icon {\n\t\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: 0;\n\t\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},4880:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-form{padding:0 0 var(--ck-spacing-large)}.ck.ck-form:focus{outline:none}.ck.ck-form .ck.ck-input-text{min-width:100%;width:0}.ck.ck-form .ck.ck-dropdown{min-width:100%}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button:not(:focus){border:1px solid var(--ck-color-base-border)}.ck.ck-form .ck.ck-dropdown .ck-dropdown__button .ck-button__label{width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/form.css"],names:[],mappings:"AAKA,YACC,mCAyBD,CAvBC,kBAEC,YACD,CAEA,8BACC,cAAe,CACf,OACD,CAEA,4BACC,cAWD,CARE,6DACC,4CACD,CAEA,mEACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\n\tpadding: 0 0 var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t& .ck.ck-input-text {\n\t\tmin-width: 100%;\n\t\twidth: 0;\n\t}\n\n\t& .ck.ck-dropdown {\n\t\tmin-width: 100%;\n\n\t\t& .ck-dropdown__button {\n\t\t\t&:not(:focus) {\n\t\t\t\tborder: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t& .ck-button__label {\n\t\t\t\twidth: 100%;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9865:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-form__row{display:flex;flex-direction:row;flex-wrap:nowrap;justify-content:space-between}.ck.ck-form__row>:not(.ck-label){flex-grow:1}.ck.ck-form__row.ck-table-form__action-row .ck-button-cancel,.ck.ck-form__row.ck-table-form__action-row .ck-button-save{justify-content:center}.ck.ck-form__row{padding:var(--ck-spacing-standard) var(--ck-spacing-large) 0}[dir=ltr] .ck.ck-form__row>:not(.ck-label)+*{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-form__row>:not(.ck-label)+*{margin-right:var(--ck-spacing-large)}.ck.ck-form__row>.ck-label{min-width:100%;width:100%}.ck.ck-form__row.ck-table-form__action-row{margin-top:var(--ck-spacing-large)}.ck.ck-form__row.ck-table-form__action-row .ck-button .ck-button__label{color:var(--ck-color-text)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/formrow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/formrow.css"],names:[],mappings:"AAKA,iBACC,YAAa,CACb,kBAAmB,CACnB,gBAAiB,CACjB,6BAaD,CAVC,iCACC,WACD,CAGC,wHAEC,sBACD,CCbF,iBACC,4DA2BD,CAvBE,6CAEE,mCAMF,CARA,6CAME,oCAEF,CAGD,2BAEC,cAAe,CADf,UAED,CAEA,2CACC,kCAKD,CAHC,wEACC,0BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__row {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\tjustify-content: space-between;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\tflex-grow: 1;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\t& .ck-button-save,\n\t\t& .ck-button-cancel {\n\t\t\tjustify-content: center;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-form__row {\n\tpadding: var(--ck-spacing-standard) var(--ck-spacing-large) 0;\n\n\t/* Ignore labels that work as fieldset legends */\n\t& > *:not(.ck-label) {\n\t\t& + * {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck-label {\n\t\twidth: 100%;\n\t\tmin-width: 100%;\n\t}\n\n\t&.ck-table-form__action-row {\n\t\tmargin-top: var(--ck-spacing-large);\n\n\t\t& .ck-button .ck-button__label {\n\t\t\tcolor: var(--ck-color-text);\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},8085:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-insert-table-dropdown__grid{display:flex;flex-direction:row;flex-wrap:wrap}:root{--ck-insert-table-dropdown-padding:10px;--ck-insert-table-dropdown-box-height:11px;--ck-insert-table-dropdown-box-width:12px;--ck-insert-table-dropdown-box-margin:1px}.ck .ck-insert-table-dropdown__grid{padding:var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;width:calc(var(--ck-insert-table-dropdown-box-width)*10 + var(--ck-insert-table-dropdown-box-margin)*20 + var(--ck-insert-table-dropdown-padding)*2)}.ck .ck-insert-table-dropdown__label,.ck[dir=rtl] .ck-insert-table-dropdown__label{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;margin:var(--ck-insert-table-dropdown-box-margin);min-height:var(--ck-insert-table-dropdown-box-height);min-width:var(--ck-insert-table-dropdown-box-width);outline:none;transition:none}.ck .ck-insert-table-dropdown-grid-box:focus{box-shadow:none}.ck .ck-insert-table-dropdown-grid-box.ck-on{background:var(--ck-color-focus-outer-shadow);border-color:var(--ck-color-focus-border)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/inserttable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/inserttable.css"],names:[],mappings:"AAKA,oCACC,YAAa,CACb,kBAAmB,CACnB,cACD,CCJA,MACC,uCAAwC,CACxC,0CAA2C,CAC3C,yCAA0C,CAC1C,yCACD,CAEA,oCAGC,yFAA0F,CAD1F,oJAED,CAEA,mFAEC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAFlB,iDAAkD,CADlD,qDAAsD,CADtD,mDAAoD,CAKpD,YAAa,CACb,eAUD,CARC,6CACC,eACD,CAEA,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label,\n.ck[dir=rtl] .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\tmin-width: var(--ck-insert-table-dropdown-box-width);\n\tmin-height: var(--ck-insert-table-dropdown-box-height);\n\tmargin: var(--ck-insert-table-dropdown-box-margin);\n\tborder: 1px solid var(--ck-color-base-border);\n\tborder-radius: 1px;\n\toutline: none;\n\ttransition: none;\n\n\t&:focus {\n\t\tbox-shadow: none;\n\t}\n\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);var a=s;},4104:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-content .table{display:table;margin:.9em auto}.ck-content .table table{border:1px double #b3b3b3;border-collapse:collapse;border-spacing:0;height:100%;width:100%}.ck-content .table table td,.ck-content .table table th{border:1px solid #bfbfbf;min-width:2em;padding:.4em}.ck-content .table table th{background:rgba(0,0,0,.05);font-weight:700}.ck-content[dir=rtl] .table th{text-align:right}.ck-content[dir=ltr] .table th{text-align:left}.ck-editor__editable .ck-table-bogus-paragraph{display:inline-block;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/table.css"],names:[],mappings:"AAKA,mBAKC,aAAc,CADd,gBAiCD,CA9BC,yBAYC,yBAAkC,CAVlC,wBAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <figure>. 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 a=s;},9888:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-table-caption-background:#f7f7f7;--ck-color-table-caption-text:#333;--ck-color-table-caption-highlighted-background:#fd0}.ck-content .table>figcaption{background-color:var(--ck-color-table-caption-background);caption-side:top;color:var(--ck-color-table-caption-text);display:table-caption;font-size:.75em;outline-offset:-1px;padding:.6em;text-align:center;word-break:break-word}.ck.ck-editor__editable .table>figcaption.table__caption_highlighted{animation:ck-table-caption-highlight .6s ease-out}.ck.ck-editor__editable .table>figcaption.ck-placeholder:before{overflow:hidden;padding-left:inherit;padding-right:inherit;text-overflow:ellipsis;white-space:nowrap}@keyframes ck-table-caption-highlight{0%{background-color:var(--ck-color-table-caption-highlighted-background)}to{background-color:var(--ck-color-table-caption-background)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecaption.css"],names:[],mappings:"AAKA,MACC,2CAAoD,CACpD,kCAA8C,CAC9C,oDACD,CAGA,8BAMC,yDAA0D,CAJ1D,gBAAiB,CAGjB,wCAAyC,CAJzC,qBAAsB,CAOtB,eAAgB,CAChB,mBAAoB,CAFpB,YAAa,CAHb,iBAAkB,CADlB,qBAOD,CAIC,qEACC,iDACD,CAEA,gEASC,eAAgB,CARhB,oBAAqB,CACrB,qBAAsB,CAQtB,sBAAuB,CAFvB,kBAGD,CAGD,sCACC,GACC,qEACD,CAEA,GACC,yDACD,CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-table-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-table-caption-highlighted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .table > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: top;\n\tword-break: break-word;\n\ttext-align: center;\n\tcolor: var(--ck-color-table-caption-text);\n\tbackground-color: var(--ck-color-table-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .table > figcaption {\n\t&.table__caption_highlighted {\n\t\tanimation: ck-table-caption-highlight .6s ease-out;\n\t}\n\n\t&.ck-placeholder::before {\n\t\tpadding-left: inherit;\n\t\tpadding-right: inherit;\n\n\t\t/*\n\t\t * Make sure the table caption placeholder doesn't overflow the placeholder area.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9162.\n\t\t */\n\t\twhite-space: nowrap;\n\t\toverflow: hidden;\n\t\ttext-overflow: ellipsis;\n\t}\n}\n\n@keyframes ck-table-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-table-caption-highlighted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-table-caption-background);\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5737:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row{flex-wrap:wrap}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:first-of-type{flex-grow:0.57}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar:last-of-type{flex-grow:0.43}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar .ck-button{flex-grow:1}.ck.ck-table-cell-properties-form{width:320px}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__padding-row{align-self:flex-end;padding:0;width:25%}.ck.ck-table-cell-properties-form .ck-form__row.ck-table-cell-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecellproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tablecellproperties.css"],names:[],mappings:"AAOE,6FACC,cAiBD,CAdE,0HAEC,cACD,CAEA,yHAEC,cACD,CAEA,uHACC,WACD,CClBJ,kCACC,WAkBD,CAfE,2FACC,mBAAoB,CACpB,SAAU,CACV,SACD,CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\t&:first-of-type {\n\t\t\t\t\t/* 4 buttons out of 7 (h-alignment + v-alignment) = 0.57 */\n\t\t\t\t\tflex-grow: 0.57;\n\t\t\t\t}\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\t/* 3 buttons out of 7 (h-alignment + v-alignment) = 0.43 */\n\t\t\t\t\tflex-grow: 0.43;\n\t\t\t\t}\n\n\t\t\t\t& .ck-button {\n\t\t\t\t\tflex-grow: 1;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-cell-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-cell-properties-form__padding-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\t\t\twidth: 25%;\n\t\t}\n\n\t\t&.ck-table-cell-properties-form__alignment-row {\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},728:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-table-column-resizer-hover:var(--ck-color-base-active);--ck-table-column-resizer-width:7px;--ck-table-column-resizer-position-offset:calc(var(--ck-table-column-resizer-width)*-0.5 - 0.5px)}.ck-content .table .ck-table-resized{table-layout:fixed}.ck-content .table table{overflow:hidden}.ck-content .table td,.ck-content .table th{position:relative}.ck.ck-editor__editable .table .ck-table-column-resizer{bottom:-999999px;cursor:col-resize;position:absolute;right:var(--ck-table-column-resizer-position-offset);top:-999999px;user-select:none;width:var(--ck-table-column-resizer-width);z-index:var(--ck-z-default)}.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer,.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer{display:none}.ck.ck-editor__editable .table .ck-table-column-resizer:hover,.ck.ck-editor__editable .table .ck-table-column-resizer__active{background-color:var(--ck-color-table-column-resizer-hover);opacity:.25}.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer{left:var(--ck-table-column-resizer-position-offset);right:unset}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tablecolumnresize.css"],names:[],mappings:"AAKA,MACC,iEAAkE,CAClE,mCAAoC,CAIpC,iGACD,CAEA,qCACC,kBACD,CAEA,yBACC,eACD,CAEA,4CAEC,iBACD,CAEA,wDAOC,gBAAiB,CAGjB,iBAAkB,CATlB,iBAAkB,CAOlB,oDAAqD,CAFrD,aAAc,CAKd,gBAAiB,CAFjB,0CAA2C,CAG3C,2BACD,CAQA,qJACC,YACD,CAEA,8HAEC,2DAA4D,CAC5D,WACD,CAEA,iEACC,mDAAoD,CACpD,WACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-column-resizer-hover: var(--ck-color-base-active);\n\t--ck-table-column-resizer-width: 7px;\n\n\t/* The offset used for absolute positioning of the resizer element, so that it is placed exactly above the cell border.\n\t The value is: minus half the width of the resizer decreased additionaly by the half the width of the border (0.5px). */\n\t--ck-table-column-resizer-position-offset: calc(var(--ck-table-column-resizer-width) * -0.5 - 0.5px);\n}\n\n.ck-content .table .ck-table-resized {\n\ttable-layout: fixed;\n}\n\n.ck-content .table table {\n\toverflow: hidden;\n}\n\n.ck-content .table td,\n.ck-content .table th {\n\tposition: relative;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer {\n\tposition: absolute;\n\t/* The resizer element resides in each cell so to occupy the entire height of the table, which is unknown from a CSS point of view,\n\t it is extended to an extremely high height. Even for screens with a very high pixel density, the resizer will fulfill its role as\n\t it should, i.e. for a screen of 476 ppi the total height of the resizer will take over 350 sheets of A4 format, which is totally\n\t unrealistic height for a single table. */\n\ttop: -999999px;\n\tbottom: -999999px;\n\tright: var(--ck-table-column-resizer-position-offset);\n\twidth: var(--ck-table-column-resizer-width);\n\tcursor: col-resize;\n\tuser-select: none;\n\tz-index: var(--ck-z-default);\n}\n\n.ck.ck-editor__editable.ck-column-resize_disabled .table .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n/* The resizer elements, which are extended to an extremely high height, break the drag & drop feature in Chrome. To make it work again,\n all resizers must be hidden while the table is dragged. */\n.ck.ck-editor__editable .table[draggable] .ck-table-column-resizer {\n\tdisplay: none;\n}\n\n.ck.ck-editor__editable .table .ck-table-column-resizer:hover,\n.ck.ck-editor__editable .table .ck-table-column-resizer__active {\n\tbackground-color: var(--ck-color-table-column-resizer-hover);\n\topacity: 0.25;\n}\n\n.ck.ck-editor__editable[dir=rtl] .table .ck-table-column-resizer {\n\tleft: var(--ck-table-column-resizer-position-offset);\n\tright: unset;\n}\n"],sourceRoot:""}]);var a=s;},4777:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.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://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-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 a=s;},198:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-table-form .ck-form__row.ck-table-form__background-row,.ck.ck-table-form .ck-form__row.ck-table-form__border-row{flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{align-items:center;flex-wrap:wrap}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view{align-items:center;display:flex;flex-direction:column-reverse}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-labeled-field-view .ck.ck-dropdown,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{flex-grow:0}.ck.ck-table-form .ck.ck-labeled-field-view{position:relative}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{bottom:calc(var(--ck-table-properties-error-arrow-size)*-1);left:50%;position:absolute;transform:translate(-50%,100%);z-index:1}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{content:"";left:50%;position:absolute;top:calc(var(--ck-table-properties-error-arrow-size)*-1);transform:translateX(-50%)}:root{--ck-table-properties-error-arrow-size:6px;--ck-table-properties-min-error-width:150px}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-labeled-field-view>.ck-label{font-size:var(--ck-font-size-tiny);text-align:center}.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-style,.ck.ck-table-form .ck-form__row.ck-table-form__border-row .ck-table-form__border-width{max-width:80px;min-width:80px;width:80px}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row{padding:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__height,.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimensions-row__width{margin:0}.ck.ck-table-form .ck-form__row.ck-table-form__dimensions-row .ck-table-form__dimension-operator{align-self:flex-end;display:inline-block;height:var(--ck-ui-component-min-height);line-height:var(--ck-ui-component-min-height);margin:0 var(--ck-spacing-small)}.ck.ck-table-form .ck.ck-labeled-field-view{padding-top:var(--ck-spacing-standard)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{border-radius:0}.ck-rounded-corners .ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status,.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{background:var(--ck-color-base-error);color:var(--ck-color-base-background);min-width:var(--ck-table-properties-min-error-width);padding:var(--ck-spacing-small) var(--ck-spacing-medium);text-align:center}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status:after{border-color:transparent transparent var(--ck-color-base-error) transparent;border-style:solid;border-width:0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size)}.ck.ck-table-form .ck.ck-labeled-field-view .ck.ck-labeled-field-view__status{animation:ck-table-form-labeled-view-status-appear .15s ease both}.ck.ck-table-form .ck.ck-labeled-field-view .ck-input.ck-error:not(:focus)+.ck.ck-labeled-field-view__status{display:none}@keyframes ck-table-form-labeled-view-status-appear{0%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableform.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAWE,wHACC,cACD,CAEA,8DAEC,kBAAmB,CADnB,cAgBD,CAbC,qFAGC,kBAAmB,CAFnB,YAAa,CACb,6BAMD,CAEA,sMACC,WACD,CAIF,4CAEC,iBAoBD,CAlBC,8EAGC,2DAAgE,CADhE,QAAS,CADT,iBAAkB,CAGlB,8BAA+B,CAG/B,SAUD,CAPC,oFACC,UAAW,CAGX,QAAS,CAFT,iBAAkB,CAClB,wDAA6D,CAE7D,0BACD,CChDH,MACC,0CAA2C,CAC3C,2CACD,CAMI,2FACC,kCAAmC,CACnC,iBACD,CAGD,8KAIC,cAAe,CADf,cAAe,CADf,UAGD,CAGD,8DACC,SAcD,CAZC,yMAEC,QACD,CAEA,iGACC,mBAAoB,CACpB,oBAAqB,CACrB,wCAAyC,CACzC,6CAA8C,CAC9C,gCACD,CAIF,4CACC,sCAyBD,CAvBC,8ECxCD,eDyDC,CAjBA,mMCpCA,qCDqDA,CAjBA,8EAGC,qCAAsC,CACtC,qCAAsC,CAEtC,oDAAqD,CADrD,wDAAyD,CAEzD,iBAUD,CAPC,oFACC,2EAA4E,CAE5E,kBAAmB,CADnB,kJAED,CAdD,8EAgBC,iEACD,CAGA,6GACC,YACD,CAIF,oDACC,GACC,SACD,CAEA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__background-row {\n\t\t\tflex-wrap: wrap;\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tflex-wrap: wrap;\n\t\t\talign-items: center;\n\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\tdisplay: flex;\n\t\t\t\tflex-direction: column-reverse;\n\t\t\t\talign-items: center;\n\n\t\t\t\t& .ck.ck-dropdown {\n\t\t\t\t\tflex-grow: 0;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\tflex-grow: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\t/* Allow absolute positioning of the status (error) balloons. */\n\t\tposition: relative;\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\tposition: absolute;\n\t\t\tleft: 50%;\n\t\t\tbottom: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\ttransform: translate(-50%,100%);\n\n\t\t\t/* Make sure the balloon status stays on top of other form elements. */\n\t\t\tz-index: 1;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\tposition: absolute;\n\t\t\t\ttop: calc( -1 * var(--ck-table-properties-error-arrow-size) );\n\t\t\t\tleft: 50%;\n\t\t\t\ttransform: translateX( -50% );\n\t\t\t}\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-table-properties-error-arrow-size: 6px;\n\t--ck-table-properties-min-error-width: 150px;\n}\n\n.ck.ck-table-form {\n\t& .ck-form__row {\n\t\t&.ck-table-form__border-row {\n\t\t\t& .ck-labeled-field-view {\n\t\t\t\t& > .ck-label {\n\t\t\t\t\tfont-size: var(--ck-font-size-tiny);\n\t\t\t\t\ttext-align: center;\n\t\t\t\t}\n\t\t\t}\n\n\t\t\t& .ck-table-form__border-style,\n\t\t\t& .ck-table-form__border-width {\n\t\t\t\twidth: 80px;\n\t\t\t\tmin-width: 80px;\n\t\t\t\tmax-width: 80px;\n\t\t\t}\n\t\t}\n\n\t\t&.ck-table-form__dimensions-row {\n\t\t\tpadding: 0;\n\n\t\t\t& .ck-table-form__dimensions-row__width,\n\t\t\t& .ck-table-form__dimensions-row__height {\n\t\t\t\tmargin: 0\n\t\t\t}\n\n\t\t\t& .ck-table-form__dimension-operator {\n\t\t\t\talign-self: flex-end;\n\t\t\t\tdisplay: inline-block;\n\t\t\t\theight: var(--ck-ui-component-min-height);\n\t\t\t\tline-height: var(--ck-ui-component-min-height);\n\t\t\t\tmargin: 0 var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t& .ck.ck-labeled-field-view {\n\t\tpadding-top: var(--ck-spacing-standard);\n\n\t\t& .ck.ck-labeled-field-view__status {\n\t\t\t@mixin ck-rounded-corners;\n\n\t\t\tbackground: var(--ck-color-base-error);\n\t\t\tcolor: var(--ck-color-base-background);\n\t\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\t\tmin-width: var(--ck-table-properties-min-error-width);\n\t\t\ttext-align: center;\n\n\t\t\t/* The arrow pointing towards the field. */\n\t\t\t&::after {\n\t\t\t\tborder-color: transparent transparent var(--ck-color-base-error) transparent;\n\t\t\t\tborder-width: 0 var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size) var(--ck-table-properties-error-arrow-size);\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\tanimation: ck-table-form-labeled-view-status-appear .15s ease both;\n\t\t}\n\n\t\t/* Hide the error balloon when the field is blurred. Makes the experience much more clear. */\n\t\t& .ck-input.ck-error:not(:focus) + .ck.ck-labeled-field-view__status {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n@keyframes ck-table-form-labeled-view-status-appear {\n\t0% {\n\t\topacity: 0;\n\t}\n\n\t100% {\n\t\topacity: 1;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9221:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-content:baseline;flex-basis:0;flex-wrap:wrap}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items{flex-wrap:nowrap}.ck.ck-table-properties-form{width:320px}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row{align-self:flex-end;padding:0}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar{background:none;margin-top:var(--ck-spacing-standard)}.ck.ck-table-properties-form .ck-form__row.ck-table-properties-form__alignment-row .ck.ck-toolbar .ck-toolbar__items>*{width:40px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-table/theme/tableproperties.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableproperties.css"],names:[],mappings:"AAOE,mFAGC,sBAAuB,CADvB,YAAa,CADb,cAOD,CAHC,qHACC,gBACD,CCTH,6BACC,WAmBD,CAhBE,mFACC,mBAAoB,CACpB,SAYD,CAVC,kGACC,eAAgB,CAGhB,qCAKD,CAHC,uHACC,UACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\tflex-wrap: wrap;\n\t\t\tflex-basis: 0;\n\t\t\talign-content: baseline;\n\n\t\t\t& .ck.ck-toolbar .ck-toolbar__items {\n\t\t\t\tflex-wrap: nowrap;\n\t\t\t}\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-table-properties-form {\n\twidth: 320px;\n\n\t& .ck-form__row {\n\t\t&.ck-table-properties-form__alignment-row {\n\t\t\talign-self: flex-end;\n\t\t\tpadding: 0;\n\n\t\t\t& .ck.ck-toolbar {\n\t\t\t\tbackground: none;\n\n\t\t\t\t/* Compensate for missing input label that would push the margin (toolbar has no inputs). */\n\t\t\t\tmargin-top: var(--ck-spacing-standard);\n\n\t\t\t\t& .ck-toolbar__items > * {\n\t\t\t\t\twidth: 40px;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5593:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,':root{--ck-table-selected-cell-background:rgba(158,207,250,.3)}.ck.ck-editor__editable .table table td.ck-editor__editable_selected,.ck.ck-editor__editable .table table th.ck-editor__editable_selected{box-shadow:unset;caret-color:transparent;outline:unset;position:relative}.ck.ck-editor__editable .table table td.ck-editor__editable_selected:after,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:after{background-color:var(--ck-table-selected-cell-background);bottom:0;content:"";left:0;pointer-events:none;position:absolute;right:0;top:0}.ck.ck-editor__editable .table table td.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table td.ck-editor__editable_selected:focus,.ck.ck-editor__editable .table table th.ck-editor__editable_selected ::selection,.ck.ck-editor__editable .table table th.ck-editor__editable_selected:focus{background-color:transparent}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget{outline:unset}.ck.ck-editor__editable .table table td.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle,.ck.ck-editor__editable .table table th.ck-editor__editable_selected .ck-widget>.ck-widget__selection-handle{display:none}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-table/tableselection.css"],names:[],mappings:"AAKA,MACC,wDACD,CAGC,0IAKC,gBAAiB,CAFjB,uBAAwB,CACxB,aAAc,CAFd,iBAiCD,CA3BC,sJAGC,yDAA0D,CAK1D,QAAS,CAPT,UAAW,CAKX,MAAO,CAJP,mBAAoB,CAEpB,iBAAkB,CAGlB,OAAQ,CAFR,KAID,CAEA,wTAEC,4BACD,CAMA,gKACC,aAKD,CAHC,0NACC,YACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var a=s;},4499:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{display:none}.ck.ck-button.ck-button_with-text .ck-button__label,a.ck.ck-button.ck-button_with-text .ck-button__label{display:inline-block}.ck.ck-button:not(.ck-button_with-text),a.ck.ck-button:not(.ck-button_with-text){justify-content:center}.ck.ck-button,a.ck.ck-button{background:var(--ck-color-button-default-background)}.ck.ck-button:not(.ck-disabled):hover,a.ck.ck-button:not(.ck-disabled):hover{background:var(--ck-color-button-default-hover-background)}.ck.ck-button:not(.ck-disabled):active,a.ck.ck-button:not(.ck-disabled):active{background:var(--ck-color-button-default-active-background)}.ck.ck-button.ck-disabled,a.ck.ck-button.ck-disabled{background:var(--ck-color-button-default-disabled-background)}.ck.ck-button,a.ck.ck-button{border-radius:0}.ck-rounded-corners .ck.ck-button,.ck-rounded-corners a.ck.ck-button,.ck.ck-button.ck-rounded-corners,a.ck.ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-button,a.ck.ck-button{-webkit-appearance:none;border:1px solid transparent;cursor:default;font-size:inherit;line-height:1;min-height:var(--ck-ui-component-min-height);min-width:var(--ck-ui-component-min-height);padding:var(--ck-spacing-tiny);text-align:center;transition:box-shadow .2s ease-in-out,border .2s ease-in-out;vertical-align:middle;white-space:nowrap}.ck.ck-button:active,.ck.ck-button:focus,a.ck.ck-button:active,a.ck.ck-button:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-button .ck-button__icon use,.ck.ck-button .ck-button__icon use *,a.ck.ck-button .ck-button__icon use,a.ck.ck-button .ck-button__icon use *{color:inherit}.ck.ck-button .ck-button__label,a.ck.ck-button .ck-button__label{color:inherit;cursor:inherit;font-size:inherit;font-weight:inherit;vertical-align:middle}[dir=ltr] .ck.ck-button .ck-button__label,[dir=ltr] a.ck.ck-button .ck-button__label{text-align:left}[dir=rtl] .ck.ck-button .ck-button__label,[dir=rtl] a.ck.ck-button .ck-button__label{text-align:right}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{color:inherit}[dir=ltr] .ck.ck-button .ck-button__keystroke,[dir=ltr] a.ck.ck-button .ck-button__keystroke{margin-left:var(--ck-spacing-large)}[dir=rtl] .ck.ck-button .ck-button__keystroke,[dir=rtl] a.ck.ck-button .ck-button__keystroke{margin-right:var(--ck-spacing-large)}.ck.ck-button .ck-button__keystroke,a.ck.ck-button .ck-button__keystroke{font-weight:700;opacity:.7}.ck.ck-button.ck-disabled:active,.ck.ck-button.ck-disabled:focus,a.ck.ck-button.ck-disabled:active,a.ck.ck-button.ck-disabled:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-button.ck-disabled .ck-button__icon,.ck.ck-button.ck-disabled .ck-button__label,a.ck.ck-button.ck-disabled .ck-button__icon,a.ck.ck-button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__keystroke,a.ck.ck-button.ck-disabled .ck-button__keystroke{opacity:.3}.ck.ck-button.ck-button_with-text,a.ck.ck-button.ck-button_with-text{padding:var(--ck-spacing-tiny) var(--ck-spacing-standard)}[dir=ltr] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=ltr] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:calc(var(--ck-spacing-small)*-1);margin-right:var(--ck-spacing-small)}[dir=rtl] .ck.ck-button.ck-button_with-text .ck-button__icon,[dir=rtl] a.ck.ck-button.ck-button_with-text .ck-button__icon{margin-left:var(--ck-spacing-small);margin-right:calc(var(--ck-spacing-small)*-1)}.ck.ck-button.ck-button_with-keystroke .ck-button__label,a.ck.ck-button.ck-button_with-keystroke .ck-button__label{flex-grow:1}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{background:var(--ck-color-button-on-background)}.ck.ck-button.ck-on:not(.ck-disabled):hover,a.ck.ck-button.ck-on:not(.ck-disabled):hover{background:var(--ck-color-button-on-hover-background)}.ck.ck-button.ck-on:not(.ck-disabled):active,a.ck.ck-button.ck-on:not(.ck-disabled):active{background:var(--ck-color-button-on-active-background)}.ck.ck-button.ck-on.ck-disabled,a.ck.ck-button.ck-on.ck-disabled{background:var(--ck-color-button-on-disabled-background)}.ck.ck-button.ck-on,a.ck.ck-button.ck-on{color:var(--ck-color-button-on-color)}.ck.ck-button.ck-button-save,a.ck.ck-button.ck-button-save{color:var(--ck-color-button-save)}.ck.ck-button.ck-button-cancel,a.ck.ck-button.ck-button-cancel{color:var(--ck-color-button-cancel)}.ck.ck-button-action,a.ck.ck-button-action{background:var(--ck-color-button-action-background)}.ck.ck-button-action:not(.ck-disabled):hover,a.ck.ck-button-action:not(.ck-disabled):hover{background:var(--ck-color-button-action-hover-background)}.ck.ck-button-action:not(.ck-disabled):active,a.ck.ck-button-action:not(.ck-disabled):active{background:var(--ck-color-button-action-active-background)}.ck.ck-button-action.ck-disabled,a.ck.ck-button-action.ck-disabled{background:var(--ck-color-button-action-disabled-background)}.ck.ck-button-action,a.ck.ck-button-action{color:var(--ck-color-button-action-text)}.ck.ck-button-bold,a.ck.ck-button-bold{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/mixins/_button.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AAOA,6BAMC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBAAkB,CCFlB,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBDkBD,CAdC,iEACC,YACD,CAGC,yGACC,oBACD,CAID,iFACC,sBACD,CEjBD,6BCAC,oDD4ID,CCzIE,6EACC,0DACD,CAEA,+EACC,2DACD,CAID,qDACC,6DACD,CDfD,6BEDC,eF6ID,CA5IA,wIEGE,qCFyIF,CA5IA,6BA6BC,uBAAwB,CANxB,4BAA6B,CAjB7B,cAAe,CAcf,iBAAkB,CAHlB,aAAc,CAJd,4CAA6C,CAD7C,2CAA4C,CAJ5C,8BAA+B,CAC/B,iBAAkB,CAiBlB,4DAA8D,CAnB9D,qBAAsB,CAFtB,kBAuID,CA7GC,oFGhCA,2BAA2B,CCF3B,2CAA8B,CDC9B,YHqCA,CAIC,kJAEC,aACD,CAGD,iEAIC,aAAc,CACd,cAAe,CAHf,iBAAkB,CAClB,mBAAoB,CAMpB,qBASD,CAlBA,qFAYE,eAMF,CAlBA,qFAgBE,gBAEF,CAEA,yEACC,aAYD,CAbA,6FAIE,mCASF,CAbA,6FAQE,oCAKF,CAbA,yEAWC,eAAiB,CACjB,UACD,CAIC,oIIrFD,oDJyFC,CAOA,gLKhGD,kCLkGC,CAEA,iGACC,UACD,CAGD,qEACC,yDAcD,CAXC,2HAEE,4CAA+C,CAC/C,oCAOF,CAVA,2HAQE,mCAAoC,CADpC,6CAGF,CAKA,mHACC,WACD,CAID,yCC/HA,+CDmIA,CChIC,yFACC,qDACD,CAEA,2FACC,sDACD,CAID,iEACC,wDACD,CDgHA,yCAGC,qCACD,CAEA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC/IC,mDDoJD,CCjJE,2FACC,yDACD,CAEA,6FACC,0DACD,CAID,mEACC,4DACD,CDgID,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\n\tposition: relative;\n\tdisplay: inline-flex;\n\talign-items: center;\n\tjustify-content: left;\n\n\t& .ck-button__label {\n\t\tdisplay: none;\n\t}\n\n\t&.ck-button_with-text {\n\t\t& .ck-button__label {\n\t\t\tdisplay: inline-block;\n\t\t}\n\t}\n\n\t/* Center the icon horizontally in a button without text. */\n\t&:not(.ck-button_with-text) {\n\t\tjustify-content: center;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../mixins/_button.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-button-colors --ck-color-button-default;\n\t@mixin ck-rounded-corners;\n\n\twhite-space: nowrap;\n\tcursor: default;\n\tvertical-align: middle;\n\tpadding: var(--ck-spacing-tiny);\n\ttext-align: center;\n\n\t/* A very important piece of styling. Go to variable declaration to learn more. */\n\tmin-width: var(--ck-ui-component-min-height);\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Normalize the height of the line. Removing this will break consistent height\n\tamong text and text-less buttons (with icons). */\n\tline-height: 1;\n\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t/* Avoid flickering when the foucs border shows up. */\n\tborder: 1px solid transparent;\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .2s ease-in-out, border .2s ease-in-out;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/189 */\n\t-webkit-appearance: none;\n\n\t&:active,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t/* Allow icon coloring using the text "color" property. */\n\t& .ck-button__icon {\n\t\t& use,\n\t\t& use * {\n\t\t\tcolor: inherit;\n\t\t}\n\t}\n\n\t& .ck-button__label {\n\t\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\t\tfont-size: inherit;\n\t\tfont-weight: inherit;\n\t\tcolor: inherit;\n\t\tcursor: inherit;\n\n\t\t/* Must be consistent with .ck-icon\'s vertical align. Otherwise, buttons with and\n\t\twithout labels (but with icons) have different sizes in Chrome */\n\t\tvertical-align: middle;\n\n\t\t@mixin ck-dir ltr {\n\t\t\ttext-align: left;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttext-align: right;\n\t\t}\n\t}\n\n\t& .ck-button__keystroke {\n\t\tcolor: inherit;\n\n\t\t@mixin ck-dir ltr {\n\t\t\tmargin-left: var(--ck-spacing-large);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\tmargin-right: var(--ck-spacing-large);\n\t\t}\n\n\t\tfont-weight: bold;\n\t\topacity: .7;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t&.ck-disabled {\n\t\t&:active,\n\t\t&:focus {\n\t\t\t/* The disabled button should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t\t& .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t& .ck-button__keystroke {\n\t\t\topacity: .3;\n\t\t}\n\t}\n\n\t&.ck-button_with-text {\n\t\tpadding: var(--ck-spacing-tiny) var(--ck-spacing-standard);\n\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__icon {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-right: calc(-1 * var(--ck-spacing-small));\n\t\t\t\tmargin-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-button_with-keystroke {\n\t\t/* stylelint-disable-next-line no-descending-specificity */\n\t\t& .ck-button__label {\n\t\t\tflex-grow: 1;\n\t\t}\n\t}\n\n\t/* A style of the button which is currently on, e.g. its feature is active. */\n\t&.ck-on {\n\t\t@mixin ck-button-colors --ck-color-button-on;\n\n\t\tcolor: var(--ck-color-button-on-color);\n\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var a=s;},9681:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{display:block}:root{--ck-switch-button-toggle-width:2.6153846154em;--ck-switch-button-toggle-inner-size:calc(1.07692em + 1px);--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - 2px);--ck-switch-button-inner-hover-shadow:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton,.ck.ck-button.ck-switchbutton.ck-on:active,.ck.ck-button.ck-switchbutton.ck-on:focus,.ck.ck-button.ck-switchbutton.ck-on:hover,.ck.ck-button.ck-switchbutton:active,.ck.ck-button.ck-switchbutton:focus,.ck.ck-button.ck-switchbutton:hover{background:transparent;color:inherit}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__label{margin-right:calc(var(--ck-spacing-large)*2)}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__label{margin-left:calc(var(--ck-spacing-large)*2)}.ck.ck-button.ck-switchbutton .ck-button__toggle{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle,.ck.ck-button.ck-switchbutton .ck-button__toggle.ck-rounded-corners{border-radius:var(--ck-border-radius)}[dir=ltr] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-left:auto}[dir=rtl] .ck.ck-button.ck-switchbutton .ck-button__toggle{margin-right:auto}.ck.ck-button.ck-switchbutton .ck-button__toggle{background:var(--ck-color-switch-button-off-background);border:1px solid transparent;transition:background .4s ease,box-shadow .2s ease-in-out,outline .2s ease-in-out;width:var(--ck-switch-button-toggle-width)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{border-radius:0}.ck-rounded-corners .ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner,.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner.ck-rounded-corners{border-radius:var(--ck-border-radius);border-radius:calc(var(--ck-border-radius)*.5)}.ck.ck-button.ck-switchbutton .ck-button__toggle .ck-button__toggle__inner{background:var(--ck-color-switch-button-inner-background);height:var(--ck-switch-button-toggle-inner-size);transition:all .3s ease;width:var(--ck-switch-button-toggle-inner-size)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover{background:var(--ck-color-switch-button-off-hover-background)}.ck.ck-button.ck-switchbutton .ck-button__toggle:hover .ck-button__toggle__inner{box-shadow:var(--ck-switch-button-inner-hover-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-switchbutton:focus{border-color:transparent;box-shadow:none;outline:none}.ck.ck-button.ck-switchbutton:focus .ck-button__toggle{box-shadow:0 0 0 1px var(--ck-color-base-background),0 0 0 5px var(--ck-color-focus-outer-shadow);outline:var(--ck-focus-ring);outline-offset:1px}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle{background:var(--ck-color-switch-button-on-background)}.ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle:hover{background:var(--ck-color-switch-button-on-hover-background)}[dir=ltr] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(var( --ck-switch-button-translation ))}[dir=rtl] .ck.ck-button.ck-switchbutton.ck-on .ck-button__toggle .ck-button__toggle__inner{transform:translateX(calc(var( --ck-switch-button-translation )*-1))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/button/switchbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css"],names:[],mappings:"AASE,4HACC,aACD,CCCF,MAEC,8CAA+C,CAE/C,0DAAgE,CAChE,2HAIC,CACD,0FACD,CAOC,0QAEC,sBAAuB,CADvB,aAED,CAEA,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDCpCA,eD4EA,CAxCA,yIChCC,qCDwED,CAxCA,2DAKE,gBAmCF,CAxCA,2DAUE,iBA8BF,CAxCA,iDAkBC,uDAAwD,CAFxD,4BAA6B,CAD7B,iFAAsF,CAEtF,0CAuBD,CApBC,2ECxDD,eDmEC,CAXA,6LCpDA,qCAAsC,CDsDpC,8CASF,CAXA,2EAOC,yDAA0D,CAD1D,gDAAiD,CAIjD,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,qDACD,CAIF,6DEhFA,kCFkFA,CAGA,oCACC,wBAAyB,CAEzB,eAAgB,CADhB,YAQD,CALC,uDACC,iGAAmG,CAEnG,4BAA6B,CAD7B,kBAED,CAKA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–point numbers have been used which, for the default font size\n(see: --ck-font-size-base), will generate simple integers. */\n:root {\n\t/* 34px at 13px font-size */\n\t--ck-switch-button-toggle-width: 2.6153846154em;\n\t/* 14px at 13px font-size */\n\t--ck-switch-button-toggle-inner-size: calc(1.0769230769em + 1px);\n\t--ck-switch-button-translation: calc(\n\t\tvar(--ck-switch-button-toggle-width) -\n\t\tvar(--ck-switch-button-toggle-inner-size) -\n\t\t2px /* Border */\n\t);\n\t--ck-switch-button-inner-hover-shadow: 0 0 0 5px var(--ck-color-switch-button-inner-shadow);\n}\n\n.ck.ck-button.ck-switchbutton {\n\t/* Unlike a regular button, the switch button text color and background should never change.\n\t * Changing toggle switch (background, outline) is enough to carry the information about the\n\t * state of the entire component (https://github.com/ckeditor/ckeditor5/issues/12519)\n\t */\n\t&, &:hover, &:focus, &:active, &.ck-on:hover, &.ck-on:focus, &.ck-on:active {\n\t\tcolor: inherit;\n\t\tbackground: transparent;\n\t}\n\n\t& .ck-button__label {\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-right: calc(2 * var(--ck-spacing-large));\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Separate the label from the switch */\n\t\t\tmargin-left: calc(2 * var(--ck-spacing-large));\n\t\t}\n\t}\n\n\t& .ck-button__toggle {\n\t\t@mixin ck-rounded-corners;\n\n\t\t@mixin ck-dir ltr {\n\t\t\t/* Make sure the toggle is always to the right as far as possible. */\n\t\t\tmargin-left: auto;\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t/* Make sure the toggle is always to the left as far as possible. */\n\t\t\tmargin-right: auto;\n\t\t}\n\n\t\t/* Apply some smooth transition to the box-shadow and border. */\n\t\t/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease, box-shadow .2s ease-in-out, outline .2s ease-in-out;\n\t\tborder: 1px solid transparent;\n\t\twidth: var(--ck-switch-button-toggle-width);\n\t\tbackground: var(--ck-color-switch-button-off-background);\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: calc(.5 * var(--ck-border-radius));\n\t\t\t}\n\n\t\t\twidth: var(--ck-switch-button-toggle-inner-size);\n\t\t\theight: var(--ck-switch-button-toggle-inner-size);\n\t\t\tbackground: var(--ck-color-switch-button-inner-background);\n\n\t\t\t/* Gently animate the inner part of the toggle switch */\n\t\t\ttransition: all 300ms ease;\n\t\t}\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-off-hover-background);\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\tbox-shadow: var(--ck-switch-button-inner-hover-shadow);\n\t\t\t}\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-button__toggle {\n\t\t@mixin ck-disabled;\n\t}\n\n\t/* Overriding default .ck-button:focus styles + an outline around the toogle */\n\t&:focus {\n\t\tborder-color: transparent;\n\t\toutline: none;\n\t\tbox-shadow: none;\n\n\t\t& .ck-button__toggle {\n\t\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-background), 0 0 0 5px var(--ck-color-focus-outer-shadow);\n\t\t\toutline-offset: 1px;\n\t\t\toutline: var(--ck-focus-ring);\n\t\t}\n\t}\n\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-on {\n\t\t& .ck-button__toggle {\n\t\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t\t&:hover {\n\t\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t\t}\n\n\t\t\t& .ck-button__toggle__inner {\n\t\t\t\t/*\n\t\t\t\t* Move the toggle switch to the right. It will be animated.\n\t\t\t\t*/\n\t\t\t\t@mixin ck-dir ltr {\n\t\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t\t}\n\n\t\t\t\t@mixin ck-dir rtl {\n\t\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var a=s;},4923:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#166fd4}.ck.ck-color-grid{grid-gap:5px;padding:8px}.ck.ck-color-grid__tile{border:0;height:var(--ck-color-grid-tile-size);min-height:var(--ck-color-grid-tile-size);min-width:var(--ck-color-grid-tile-size);padding:0;transition:box-shadow .2s ease;width:var(--ck-color-grid-tile-size)}.ck.ck-color-grid__tile.ck-disabled{cursor:unset;transition:unset}.ck.ck-color-grid__tile.ck-color-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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/colorgrid/colorgrid.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(212, 81%, 46%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-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 a=s;},3488:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-dropdown-max-width:75vw}.ck.ck-dropdown{display:inline-block;position:relative}.ck.ck-dropdown .ck-dropdown__arrow{pointer-events:none;z-index:var(--ck-z-default)}.ck.ck-dropdown .ck-button.ck-dropdown__button{width:100%}.ck.ck-dropdown .ck-dropdown__panel{display:none;max-width:var(--ck-dropdown-max-width);position:absolute;z-index:var(--ck-z-modal)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel-visible{display:inline-block}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw{bottom:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{bottom:auto;top:100%}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_ne,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_se{left:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sw{right:0}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_n,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_s{left:50%;transform:translateX(-50%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nmw,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_smw{left:75%;transform:translateX(-75%)}.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_nme,.ck.ck-dropdown .ck-dropdown__panel.ck-dropdown__panel_sme{left:25%;transform:translateX(-25%)}.ck.ck-toolbar .ck-dropdown__panel{z-index:calc(var(--ck-z-modal) + 1)}:root{--ck-dropdown-arrow-size:calc(var(--ck-icon-size)*0.5)}.ck.ck-dropdown{font-size:inherit}.ck.ck-dropdown .ck-dropdown__arrow{width:var(--ck-dropdown-arrow-size)}[dir=ltr] .ck.ck-dropdown .ck-dropdown__arrow{margin-left:var(--ck-spacing-standard);right:var(--ck-spacing-standard)}[dir=rtl] .ck.ck-dropdown .ck-dropdown__arrow{left:var(--ck-spacing-standard);margin-right:var(--ck-spacing-small)}.ck.ck-dropdown.ck-disabled .ck-dropdown__arrow{opacity:var(--ck-disabled-opacity)}[dir=ltr] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-left:var(--ck-spacing-small)}[dir=rtl] .ck.ck-dropdown .ck-button.ck-dropdown__button:not(.ck-button_with-text){padding-right:var(--ck-spacing-small)}.ck.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{overflow:hidden;text-overflow:ellipsis;width:7em}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-disabled .ck-button__label{opacity:var(--ck-disabled-opacity)}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on{border-bottom-left-radius:0;border-bottom-right-radius:0}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-dropdown__button_label-width_auto .ck-button__label{width:auto}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active{box-shadow:none}.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-off:active:focus,.ck.ck-dropdown .ck-button.ck-dropdown__button.ck-on:active:focus{box-shadow:var(--ck-focus-outer-shadow),0 0}.ck.ck-dropdown__panel{border-radius:0}.ck-rounded-corners .ck.ck-dropdown__panel,.ck.ck-dropdown__panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-dropdown__panel{background:var(--ck-color-dropdown-panel-background);border:1px solid var(--ck-color-dropdown-panel-border);bottom:0;box-shadow:var(--ck-drop-shadow),0 0;min-width:100%}.ck.ck-dropdown__panel.ck-dropdown__panel_se{border-top-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_sw{border-top-right-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_ne{border-bottom-left-radius:0}.ck.ck-dropdown__panel.ck-dropdown__panel_nw{border-bottom-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/dropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-dropdown-max-width: 75vw;\n}\n\n.ck.ck-dropdown {\n\tdisplay: inline-block;\n\tposition: relative;\n\n\t& .ck-dropdown__arrow {\n\t\tpointer-events: none;\n\t\tz-index: var(--ck-z-default);\n\t}\n\n\t/* Dropdown button should span horizontally, e.g. in vertical toolbars */\n\t& .ck-button.ck-dropdown__button {\n\t\twidth: 100%;\n\t}\n\n\t& .ck-dropdown__panel {\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n:root {\n\t--ck-dropdown-arrow-size: calc(0.5 * var(--ck-icon-size));\n}\n\n.ck.ck-dropdown {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-dropdown__arrow {\n\t\twidth: var(--ck-dropdown-arrow-size);\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-dropdown__arrow {\n\t\t\tright: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-dropdown__arrow {\n\t\t\tleft: var(--ck-spacing-standard);\n\n\t\t\t/* A space to accommodate the triangle. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\t}\n\n\t&.ck-disabled .ck-dropdown__arrow {\n\t\t@mixin ck-disabled;\n\t}\n\n\t& .ck-button.ck-dropdown__button {\n\t\t@mixin ck-dir ltr {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},6875:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-dropdown .ck-dropdown__panel .ck-list{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list,.ck.ck-dropdown .ck-dropdown__panel .ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:first-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:0}.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button{border-radius:0}.ck-rounded-corners .ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button,.ck.ck-dropdown .ck-dropdown__panel .ck-list .ck-list__item:last-child .ck-button.ck-rounded-corners{border-radius:var(--ck-border-radius);border-top-left-radius:0;border-top-right-radius:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/listdropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAOA,6CCIC,eDqBD,CAzBA,iICQE,qCAAsC,CDJtC,wBAqBF,CAfE,mFCND,eDYC,CANA,6MCFA,qCAAsC,CDKpC,2BAA4B,CAC5B,4BAA6B,CAF7B,wBAIF,CAEA,kFCdD,eDmBC,CALA,2MCVA,qCAAsC,CDYpC,wBAAyB,CACzB,yBAEF",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},66:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton>.ck-splitbutton__arrow:not(:focus){border-bottom-width:0;border-top-width:0}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:focus:after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:focus:after{--ck-color-split-button-hover-border:var(--ck-color-focus-border)}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,mBAEC,iBAKD,CAHC,iDACC,qCACD,CCJD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CAKD,sDAEC,qBAAwB,CADxB,kBAED,CAQC,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGA,sIACC,iEACD,CAGC,kLACC,SACD,CAIA,kLACC,UACD,CAMF,uCCzFA,eDmGA,CAVA,qHCrFC,qCD+FD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-splitbutton {\n\t/* Enable font size inheritance, which allows fluid UI scaling. */\n\tfont-size: inherit;\n\n\t& .ck-splitbutton__action:focus {\n\t\tz-index: calc(var(--ck-z-default) + 1);\n\t}\n}\n\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* Make sure the divider stretches 100% height of the button\n\thttps://github.com/ckeditor/ckeditor5/issues/10936 */\n\t& > .ck-splitbutton__arrow:not(:focus) {\n\t\tborder-top-width: 0px;\n\t\tborder-bottom-width: 0px;\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t/* Make sure the divider between the buttons looks fine when the button is focused */\n\t\t& > .ck-splitbutton__arrow:focus::after {\n\t\t\t--ck-color-split-button-hover-border: var(--ck-color-focus-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5075:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-toolbar-dropdown-max-width:60vw}.ck.ck-toolbar-dropdown>.ck-dropdown__panel{max-width:var(--ck-toolbar-dropdown-max-width);width:max-content}.ck.ck-toolbar-dropdown>.ck-dropdown__panel .ck-button:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-toolbar-dropdown .ck-toolbar{border:0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/toolbardropdown.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/dropdown/toolbardropdown.css"],names:[],mappings:"AAKA,MACC,oCACD,CAEA,4CAGC,8CAA+C,CAD/C,iBAQD,CAJE,6DACC,qCACD,CCZF,oCACC,QACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);var a=s;},4547:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-editable-blur-selection:#d9d9d9}.ck.ck-editor__editable:not(.ck-editor__nested-editable){border-radius:0}.ck-rounded-corners .ck.ck-editor__editable:not(.ck-editor__nested-editable),.ck.ck-editor__editable.ck-rounded-corners:not(.ck-editor__nested-editable){border-radius:var(--ck-border-radius)}.ck.ck-editor__editable.ck-focused:not(.ck-editor__nested-editable){border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck.ck-editor__editable_inline{border:1px solid transparent;overflow:auto;padding:0 var(--ck-spacing-standard)}.ck.ck-editor__editable_inline[dir=ltr]{text-align:left}.ck.ck-editor__editable_inline[dir=rtl]{text-align:right}.ck.ck-editor__editable_inline>:first-child{margin-top:var(--ck-spacing-large)}.ck.ck-editor__editable_inline>:last-child{margin-bottom:var(--ck-spacing-large)}.ck.ck-editor__editable_inline.ck-blurred ::selection{background:var(--ck-color-editable-blur-selection)}.ck.ck-balloon-panel.ck-toolbar-container[class*=arrow_n]:after{border-bottom-color:var(--ck-color-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://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/editorui/editorui.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},5523:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/formheader/formheader.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},1174:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-icon{vertical-align:middle}:root{--ck-icon-size:calc(var(--ck-line-height-base)*var(--ck-font-size-normal))}.ck.ck-icon{font-size:.8333350694em;height:var(--ck-icon-size);width:var(--ck-icon-size);will-change:transform}.ck.ck-icon,.ck.ck-icon *{cursor:inherit}.ck.ck-icon.ck-icon_inherit-color,.ck.ck-icon.ck-icon_inherit-color *{color:inherit}.ck.ck-icon.ck-icon_inherit-color :not([fill]){fill:currentColor}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/icon/icon.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/icon/icon.css"],names:[],mappings:"AAKA,YACC,qBACD,CCFA,MACC,0EACD,CAEA,YAKC,uBAAwB,CAHxB,0BAA2B,CAD3B,yBAA0B,CAU1B,qBAoBD,CAlBC,0BALA,cAQA,CAMC,sEACC,aAMD,CAJC,+CAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\t/* Inherit cursor style (#5). */\n\tcursor: inherit;\n\n\t/* This will prevent blurry icons on Firefox. See #340. */\n\twill-change: transform;\n\n\t& * {\n\t\t/* Inherit cursor style (#5). */\n\t\tcursor: inherit;\n\t}\n\n\t/* Allows dynamic coloring of an icon by inheriting its color from the parent. */\n\t&.ck-icon_inherit-color {\n\t\tcolor: inherit;\n\n\t\t& * {\n\t\t\tcolor: inherit;\n\n\t\t\t&:not([fill]) {\n\t\t\t\t/* Needed by FF. */\n\t\t\t\tfill: currentColor;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},6985:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-input-width:18em;--ck-input-text-width:var(--ck-input-width)}.ck.ck-input{border-radius:0}.ck-rounded-corners .ck.ck-input,.ck.ck-input.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-input{background:var(--ck-color-input-background);border:1px solid var(--ck-color-input-border);min-height:var(--ck-ui-component-min-height);min-width:var(--ck-input-width);padding:var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);transition:box-shadow .1s ease-in-out,border .1s ease-in-out}.ck.ck-input:focus{border:var(--ck-focus-ring);box-shadow:var(--ck-focus-outer-shadow),0 0;outline:none}.ck.ck-input[readonly]{background:var(--ck-color-input-disabled-background);border:1px solid var(--ck-color-input-disabled-border);color:var(--ck-color-input-disabled-text)}.ck.ck-input[readonly]:focus{box-shadow:var(--ck-focus-disabled-outer-shadow),0 0}.ck.ck-input.ck-error{animation:ck-input-shake .3s ease both;border-color:var(--ck-color-input-error-border)}.ck.ck-input.ck-error:focus{box-shadow:var(--ck-focus-error-outer-shadow),0 0}@keyframes ck-input-shake{20%{transform:translateX(-2px)}40%{transform:translateX(2px)}60%{transform:translateX(-1px)}80%{transform:translateX(1px)}}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/input/input.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AASA,MACC,qBAAsB,CAGtB,2CACD,CAEA,aCLC,eD2CD,CAtCA,iECDE,qCDuCF,CAtCA,aAGC,2CAA4C,CAC5C,6CAA8C,CAK9C,4CAA6C,CAH7C,+BAAgC,CADhC,6DAA8D,CAO9D,4DA0BD,CAxBC,mBEnBA,2BAA2B,CCF3B,2CAA8B,CDC9B,YFuBA,CAEA,uBAEC,oDAAqD,CADrD,sDAAuD,CAEvD,yCAMD,CAJC,6BG/BD,oDHkCC,CAGD,sBAEC,sCAAuC,CADvC,+CAMD,CAHC,4BGzCD,iDH2CC,CAIF,0BACC,IACC,0BACD,CAEA,IACC,yBACD,CAEA,IACC,0BACD,CAEA,IACC,yBACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},2751:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-label{display:block}.ck.ck-voice-label{display:none}.ck.ck-label{font-weight:700}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/label/label.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/label/label.css"],names:[],mappings:"AAKA,aACC,aACD,CAEA,mBACC,YACD,CCNA,aACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);var a=s;},8111:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{display:flex;position:relative}.ck.ck-labeled-field-view .ck.ck-label{display:block;position:absolute}:root{--ck-labeled-field-view-transition:.1s cubic-bezier(0,0,0.24,0.95);--ck-labeled-field-empty-unfocused-max-width:100% - 2 * var(--ck-spacing-medium);--ck-labeled-field-label-default-position-x:var(--ck-spacing-medium);--ck-labeled-field-label-default-position-y:calc(var(--ck-font-size-base)*0.6);--ck-color-labeled-field-label-background:var(--ck-color-base-background)}.ck.ck-labeled-field-view{border-radius:0}.ck-rounded-corners .ck.ck-labeled-field-view,.ck.ck-labeled-field-view.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper{width:100%}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{top:0}[dir=ltr] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{left:0}[dir=rtl] .ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{right:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:var(--ck-color-labeled-field-label-background);font-weight:400;line-height:normal;max-width:100%;overflow:hidden;padding:0 calc(var(--ck-font-size-tiny)*.5);pointer-events:none;text-overflow:ellipsis;transform:translate(var(--ck-spacing-medium),-6px) scale(.75);transform-origin:0 0;transition:transform var(--ck-labeled-field-view-transition),padding var(--ck-labeled-field-view-transition),background var(--ck-labeled-field-view-transition)}.ck.ck-labeled-field-view.ck-error .ck-input:not([readonly])+.ck.ck-label,.ck.ck-labeled-field-view.ck-error>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view .ck-labeled-field-view__status{font-size:var(--ck-font-size-small);margin-top:var(--ck-spacing-small);white-space:normal}.ck.ck-labeled-field-view .ck-labeled-field-view__status.ck-labeled-field-view__status_error{color:var(--ck-color-base-error)}.ck.ck-labeled-field-view.ck-disabled>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{color:var(--ck-color-input-disabled-text)}[dir=ltr] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=ltr] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(var(--ck-labeled-field-label-default-position-x),var(--ck-labeled-field-label-default-position-y)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,[dir=rtl] .ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{transform:translate(calc(var(--ck-labeled-field-label-default-position-x)*-1),var(--ck-labeled-field-label-default-position-y)) scale(1)}.ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label,.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck.ck-label{background:transparent;max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width));padding:0}.ck.ck-labeled-field-view>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck.ck-button{background:transparent}.ck.ck-labeled-field-view.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown>.ck-button>.ck-button__label{opacity:0}.ck.ck-labeled-field-view.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder)>.ck.ck-labeled-field-view__input-wrapper>.ck-dropdown+.ck-label{max-width:calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/labeledfield/labeledfieldview.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAMC,mEACC,YAAa,CACb,iBACD,CAEA,uCACC,aAAc,CACd,iBACD,CCND,MACC,kEAAsE,CACtE,gFAAiF,CACjF,oEAAqE,CACrE,8EAAiF,CACjF,yEACD,CAEA,0BCLC,eD8GD,CAzGA,2FCDE,qCD0GF,CAtGC,mEACC,UAmCD,CAjCC,gFACC,KA+BD,CAhCA,0FAIE,MA4BF,CAhCA,0FAQE,OAwBF,CAhCA,gFAiBC,yDAA0D,CAG1D,eAAmB,CADnB,kBAAoB,CAOpB,cAAe,CAFf,eAAgB,CANhB,2CAA8C,CAP9C,mBAAoB,CAYpB,sBAAuB,CARvB,6DAA+D,CAH/D,oBAAqB,CAgBrB,+JAID,CAQA,mKACC,gCACD,CAGD,yDACC,mCAAoC,CACpC,kCAAmC,CAInC,kBAKD,CAHC,6FACC,gCACD,CAID,4OAEC,yCACD,CAIA,oUAGE,+HAYF,CAfA,oUAOE,wIAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-x: var(--ck-spacing-medium);\n\t--ck-labeled-field-label-default-position-y: calc(0.6 * var(--ck-font-size-base));\n\t--ck-color-labeled-field-label-background: var(--ck-color-base-background);\n}\n\n.ck.ck-labeled-field-view {\n\t@mixin ck-rounded-corners;\n\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\twidth: 100%;\n\n\t\t& > .ck.ck-label {\n\t\t\ttop: 0px;\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tleft: 0px;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tright: 0px;\n\t\t\t}\n\n\t\t\tpointer-events: none;\n\t\t\ttransform-origin: 0 0;\n\n\t\t\t/* By default, display the label scaled down above the field. */\n\t\t\ttransform: translate(var(--ck-spacing-medium), -6px) scale(.75);\n\n\t\t\tbackground: var(--ck-color-labeled-field-label-background);\n\t\t\tpadding: 0 calc(.5 * var(--ck-font-size-tiny));\n\t\t\tline-height: initial;\n\t\t\tfont-weight: normal;\n\n\t\t\t/* Prevent overflow when the label is longer than the input */\n\t\t\ttext-overflow: ellipsis;\n\t\t\toverflow: hidden;\n\n\t\t\tmax-width: 100%;\n\n\t\t\ttransition:\n\t\t\t\ttransform var(--ck-labeled-field-view-transition),\n\t\t\t\tpadding var(--ck-labeled-field-view-transition),\n\t\t\t\tbackground var(--ck-labeled-field-view-transition);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\t& > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\n\t\t& .ck-input:not([readonly]) + .ck.ck-label {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t& .ck-labeled-field-view__status {\n\t\tfont-size: var(--ck-font-size-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\n\t\t/* Let the info wrap to the next line to avoid stretching the layout horizontally.\n\t\tThe status could be very long. */\n\t\twhite-space: normal;\n\n\t\t&.ck-labeled-field-view__status_error {\n\t\t\tcolor: var(--ck-color-base-error);\n\t\t}\n\t}\n\n\t/* Disabled fields and fields that have no focus should fade out. */\n\t&.ck-disabled > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\tcolor: var(--ck-color-input-disabled-text);\n\t}\n\n\t/* Fields that are disabled or not focused and without a placeholder should have full-sized labels. */\n\t/* stylelint-disable-next-line no-descending-specificity */\n\t&.ck-disabled.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label,\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck.ck-label {\n\t\t@mixin ck-dir ltr {\n\t\t\ttransform: translate(var(--ck-labeled-field-label-default-position-x), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-labeled-field-label-default-position-x)), var(--ck-labeled-field-label-default-position-y)) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},1162:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-list{display:flex;flex-direction:column;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-list .ck-list__item,.ck.ck-list .ck-list__separator{display:block}.ck.ck-list .ck-list__item>:focus{position:relative;z-index:var(--ck-z-default)}.ck.ck-list{border-radius:0}.ck-rounded-corners .ck.ck-list,.ck.ck-list.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-list{background:var(--ck-color-list-background);list-style-type:none}.ck.ck-list__item{cursor:default;min-width:12em}.ck.ck-list__item .ck-button{border-radius:0;min-height:unset;padding:calc(var(--ck-line-height-base)*.2*var(--ck-font-size-base)) calc(var(--ck-line-height-base)*.4*var(--ck-font-size-base));text-align:left;width:100%}.ck.ck-list__item .ck-button .ck-button__label{line-height:calc(var(--ck-line-height-base)*1.2*var(--ck-font-size-base))}.ck.ck-list__item .ck-button:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on{background:var(--ck-color-list-button-on-background);color:var(--ck-color-list-button-on-text)}.ck.ck-list__item .ck-button.ck-on:active{box-shadow:none}.ck.ck-list__item .ck-button.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-on-background-focus)}.ck.ck-list__item .ck-button.ck-on:focus:not(.ck-switchbutton):not(.ck-disabled){border-color:var(--ck-color-base-background)}.ck.ck-list__item .ck-button:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background)}.ck.ck-list__item .ck-switchbutton.ck-on{background:var(--ck-color-list-background);color:inherit}.ck.ck-list__item .ck-switchbutton.ck-on:hover:not(.ck-disabled){background:var(--ck-color-list-button-hover-background);color:inherit}.ck.ck-list__separator{background:var(--ck-color-base-border);height:1px;width:100%}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/list/list.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/list/list.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t because e.g. different heading styles may have different height\n\t\t https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-switchbutton):not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},8245:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,':root{--ck-balloon-panel-arrow-z-index:calc(var(--ck-z-default) - 3)}.ck.ck-balloon-panel{display:none;position:absolute;z-index:var(--ck-z-modal)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_n]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_n]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel[class*=arrow_s]:before{z-index:var(--ck-balloon-panel-arrow-z-index)}.ck.ck-balloon-panel[class*=arrow_s]:after{z-index:calc(var(--ck-balloon-panel-arrow-z-index) + 1)}.ck.ck-balloon-panel.ck-balloon-panel_visible{display:block}:root{--ck-balloon-border-width:1px;--ck-balloon-arrow-offset:2px;--ck-balloon-arrow-height:10px;--ck-balloon-arrow-half-width:8px;--ck-balloon-arrow-drop-shadow:0 2px 2px var(--ck-color-shadow-drop)}.ck.ck-balloon-panel{border-radius:0}.ck-rounded-corners .ck.ck-balloon-panel,.ck.ck-balloon-panel.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-balloon-panel{background:var(--ck-color-panel-background);border:var(--ck-balloon-border-width) solid var(--ck-color-panel-border);box-shadow:var(--ck-drop-shadow),0 0;min-height:15px}.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck.ck-balloon-panel.ck-balloon-panel_with-arrow:before{border-style:solid;height:0;width:0}.ck.ck-balloon-panel[class*=arrow_n]:after,.ck.ck-balloon-panel[class*=arrow_n]:before{border-width:0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_n]:before{border-color:transparent transparent var(--ck-color-panel-border) transparent;margin-top:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_s]:after,.ck.ck-balloon-panel[class*=arrow_s]:before{border-width:var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width)}.ck.ck-balloon-panel[class*=arrow_s]:before{border-color:var(--ck-color-panel-border) transparent transparent;filter:drop-shadow(var(--ck-balloon-arrow-drop-shadow));margin-bottom:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_e]:after,.ck.ck-balloon-panel[class*=arrow_e]:before{border-width:var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height)}.ck.ck-balloon-panel[class*=arrow_e]:before{border-color:transparent transparent transparent var(--ck-color-panel-border);margin-right:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_e]:after{border-color:transparent transparent transparent var(--ck-color-panel-background);margin-right:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel[class*=arrow_w]:after,.ck.ck-balloon-panel[class*=arrow_w]:before{border-width:var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0}.ck.ck-balloon-panel[class*=arrow_w]:before{border-color:transparent var(--ck-color-panel-border) transparent transparent;margin-left:calc(var(--ck-balloon-border-width)*-1)}.ck.ck-balloon-panel[class*=arrow_w]:after{border-color:transparent var(--ck-color-panel-background) transparent transparent;margin-left:calc(var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width))}.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{right:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_s:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:50%;margin-left:calc(var(--ck-balloon-arrow-half-width)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_se:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);right:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_sme:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_smw:before{bottom:calc(var(--ck-balloon-arrow-height)*-1);left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nme:before{margin-right:calc(var(--ck-balloon-arrow-half-width)*2);right:25%;top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_nmw:before{left:25%;margin-left:calc(var(--ck-balloon-arrow-half-width)*2);top:calc(var(--ck-balloon-arrow-height)*-1)}.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_e:before{margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);right:calc(var(--ck-balloon-arrow-height)*-1);top:50%}.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:after,.ck.ck-balloon-panel.ck-balloon-panel_arrow_w:before{left:calc(var(--ck-balloon-arrow-height)*-1);margin-top:calc(var(--ck-balloon-arrow-half-width)*-1);top:50%}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonpanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MAEC,8DACD,CAEA,qBACC,YAAa,CACb,iBAAkB,CAElB,yBAyCD,CAtCE,+GAEC,UAAW,CACX,iBACD,CAEA,wDACC,6CACD,CAEA,uDACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAIA,4CACC,6CACD,CAEA,2CACC,uDACD,CAGD,8CACC,aACD,CC9CD,MACC,6BAA8B,CAC9B,6BAA8B,CAC9B,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCLC,eDmMD,CA9LA,iFCDE,qCD+LF,CA9LA,qBAMC,2CAA4C,CAC5C,wEAAyE,CEdzE,oCAA8B,CFW9B,eA0LD,CApLE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,kDACD,CAEA,2CACC,iFAAkF,CAClF,gFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDAAwD,CACxD,qDACD,CAEA,2CACC,iFAAkF,CAClF,mFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,oDACD,CAEA,2CACC,iFAAkF,CAClF,kFACD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EAA8E,CAC9E,mDACD,CAEA,2CACC,iFAAkF,CAClF,iFACD,CAIA,yGAEC,QAAS,CACT,uDAA0D,CAC1D,2CACD,CAIA,2GAEC,+CAAkD,CAClD,2CACD,CAIA,2GAEC,gDAAmD,CACnD,2CACD,CAIA,yGAIC,8CAAiD,CAFjD,QAAS,CACT,uDAED,CAIA,2GAGC,8CAAiD,CADjD,+CAED,CAIA,2GAGC,8CAAiD,CADjD,gDAED,CAIA,6GAIC,8CAAiD,CADjD,uDAA0D,CAD1D,SAGD,CAIA,6GAIC,8CAAiD,CAFjD,QAAS,CACT,sDAED,CAIA,6GAGC,uDAA0D,CAD1D,SAAU,CAEV,2CACD,CAIA,6GAEC,QAAS,CACT,sDAAyD,CACzD,2CACD,CAIA,yGAGC,sDAAyD,CADzD,6CAAgD,CAEhD,OACD,CAIA,yGAEC,4CAA+C,CAC/C,sDAAyD,CACzD,OACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-border-width: 1px;\n\t--ck-balloon-arrow-offset: 2px;\n\t--ck-balloon-arrow-height: 10px;\n\t--ck-balloon-arrow-half-width: 8px;\n\t--ck-balloon-arrow-drop-shadow: 0 2px 2px var(--ck-color-shadow-drop);\n}\n\n.ck.ck-balloon-panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: var(--ck-balloon-border-width) solid var(--ck-color-panel-border);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t\tborder-style: solid;\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-border) transparent;\n\t\t\tmargin-top: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: var(--ck-color-panel-border) transparent transparent;\n\t\t\tfilter: drop-shadow(var(--ck-balloon-arrow-drop-shadow));\n\t\t\tmargin-bottom: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_e"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) 0 var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height);\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-border);\n\t\t\tmargin-right: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent transparent var(--ck-color-panel-background);\n\t\t\tmargin-right: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&[class*="arrow_w"] {\n\t\t&::before,\n\t\t&::after {\n\t\t\tborder-width: var(--ck-balloon-arrow-half-width) var(--ck-balloon-arrow-height) var(--ck-balloon-arrow-half-width) 0;\n\t\t}\n\n\t\t&::before {\n\t\t\tborder-color: transparent var(--ck-color-panel-border) transparent transparent;\n\t\t\tmargin-left: calc( -1 * var(--ck-balloon-border-width) );\n\t\t}\n\n\t\t&::after {\n\t\t\tborder-color: transparent var(--ck-color-panel-background) transparent transparent;\n\t\t\tmargin-left: calc( var(--ck-balloon-arrow-offset) - var(--ck-balloon-border-width) );\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_n {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_ne {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_s {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 50%;\n\t\t\tmargin-left: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_se {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_sme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_smw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\tbottom: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nme {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: 25%;\n\t\t\tmargin-right: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_nmw {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: 25%;\n\t\t\tmargin-left: calc(2 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_e {\n\t\t&::before,\n\t\t&::after {\n\t\t\tright: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_arrow_w {\n\t\t&::before,\n\t\t&::after {\n\t\t\tleft: calc(-1 * var(--ck-balloon-arrow-height));\n\t\t\tmargin-top: calc(-1 * var(--ck-balloon-arrow-half-width));\n\t\t\ttop: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},1757:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-balloon-rotator__navigation{align-items:center;display:flex;justify-content:center}.ck .ck-balloon-rotator__content .ck-toolbar{justify-content:center}.ck .ck-balloon-rotator__navigation{background:var(--ck-color-toolbar-background);border-bottom:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation>*{margin-bottom:var(--ck-spacing-small);margin-right:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck .ck-balloon-rotator__navigation .ck-balloon-rotator__counter{margin-left:var(--ck-spacing-small);margin-right:var(--ck-spacing-standard)}.ck .ck-balloon-rotator__content .ck.ck-annotation-wrapper{box-shadow:none}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/balloonrotator.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/balloonrotator.css"],names:[],mappings:"AAKA,oCAEC,kBAAmB,CADnB,YAAa,CAEb,sBACD,CAKA,6CACC,sBACD,CCXA,oCACC,6CAA8C,CAC9C,sDAAuD,CACvD,iCAgBD,CAbC,sCAGC,qCAAsC,CAFtC,oCAAqC,CACrC,kCAED,CAGA,iEAIC,mCAAoC,CAHpC,uCAID,CAMA,2DACC,eACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},3553:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-fake-panel{position:absolute;z-index:calc(var(--ck-z-modal) - 1)}.ck .ck-fake-panel div{position:absolute}.ck .ck-fake-panel div:first-child{z-index:2}.ck .ck-fake-panel div:nth-child(2){z-index:1}:root{--ck-balloon-fake-panel-offset-horizontal:6px;--ck-balloon-fake-panel-offset-vertical:6px}.ck .ck-fake-panel div{background:var(--ck-color-panel-background);border:1px solid var(--ck-color-panel-border);border-radius:var(--ck-border-radius);box-shadow:var(--ck-drop-shadow),0 0;height:100%;min-height:15px;width:100%}.ck .ck-fake-panel div:first-child{margin-left:var(--ck-balloon-fake-panel-offset-horizontal);margin-top:var(--ck-balloon-fake-panel-offset-vertical)}.ck .ck-fake-panel div:nth-child(2){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*2);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*2)}.ck .ck-fake-panel div:nth-child(3){margin-left:calc(var(--ck-balloon-fake-panel-offset-horizontal)*3);margin-top:calc(var(--ck-balloon-fake-panel-offset-vertical)*3)}.ck .ck-balloon-panel_arrow_s+.ck-fake-panel,.ck .ck-balloon-panel_arrow_se+.ck-fake-panel,.ck .ck-balloon-panel_arrow_sw+.ck-fake-panel{--ck-balloon-fake-panel-offset-vertical:-6px}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/fakepanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,mBACC,iBAAkB,CAGlB,mCACD,CAEA,uBACC,iBACD,CAEA,mCACC,SACD,CAEA,oCACC,SACD,CCfA,MACC,6CAA8C,CAC9C,2CACD,CAGA,uBAKC,2CAA4C,CAC5C,6CAA8C,CAC9C,qCAAsC,CCXtC,oCAA8B,CDc9B,WAAY,CAPZ,eAAgB,CAMhB,UAED,CAEA,mCACC,0DAA2D,CAC3D,uDACD,CAEA,oCACC,kEAAqE,CACrE,+DACD,CACA,oCACC,kEAAqE,CACrE,+DACD,CAGA,yIAGC,4CACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},3609:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-sticky-panel .ck-sticky-panel__content_sticky{position:fixed;top:0;z-index:var(--ck-z-modal)}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky_bottom-limit{position:absolute;top:auto}.ck.ck-sticky-panel .ck-sticky-panel__content_sticky{border-top-left-radius:0;border-top-right-radius:0;border-width:0 1px 1px;box-shadow:var(--ck-drop-shadow),0 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/panel/stickypanel.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAMC,qDAEC,cAAe,CACf,KAAM,CAFN,yBAGD,CAEA,kEAEC,iBAAkB,CADlB,QAED,CCPA,qDAIC,wBAAyB,CACzB,yBAA0B,CAF1B,sBAAuB,CCFxB,oCDKA",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},1590:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck-vertical-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck-vertical-form .ck-button:focus:after{display:none}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:-1px;content:"";position:absolute;right:-1px;top:-1px;width:0;z-index:1}.ck.ck-responsive-form .ck-button:focus:after{display:none}}.ck-vertical-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form{padding:var(--ck-spacing-large)}.ck.ck-responsive-form:focus{outline:none}[dir=ltr] .ck.ck-responsive-form>:not(:first-child),[dir=rtl] .ck.ck-responsive-form>:not(:last-child){margin-left:var(--ck-spacing-standard)}@media screen and (max-width:600px){.ck.ck-responsive-form{padding:0;width:calc(var(--ck-input-width)*.8)}.ck.ck-responsive-form .ck-labeled-field-view{margin:var(--ck-spacing-large) var(--ck-spacing-large) 0}.ck.ck-responsive-form .ck-labeled-field-view .ck-input-text{min-width:0;width:100%}.ck.ck-responsive-form .ck-labeled-field-view .ck-labeled-field-view__error{white-space:normal}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after{border-right:1px solid var(--ck-color-base-border)}.ck.ck-responsive-form>.ck-button:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border-radius:0;margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}.ck.ck-responsive-form>.ck-button:last-child:not(:focus),.ck.ck-responsive-form>.ck-button:nth-last-child(2):not(:focus){border-top:1px solid var(--ck-color-base-border)}[dir=ltr] .ck.ck-responsive-form>.ck-button:last-child,[dir=ltr] .ck.ck-responsive-form>.ck-button:nth-last-child(2),[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2){margin-left:0}[dir=rtl] .ck.ck-responsive-form>.ck-button:last-child:last-of-type,[dir=rtl] .ck.ck-responsive-form>.ck-button:nth-last-child(2):last-of-type{border-right:1px solid var(--ck-color-base-border)}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/responsive-form/responsiveform.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/responsive-form/responsiveform.css"],names:[],mappings:"AAQC,mCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,yCACC,YACD,CCdA,oCDoBE,wCAMC,WAAY,CALZ,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,QAAS,CAHT,OAAQ,CAKR,SACD,CAEA,8CACC,YACD,CC9BF,CCAD,qDACC,kDACD,CAEA,uBACC,+BAmED,CAjEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA8CF,CA5CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAKA,0DACC,kDACD,CAGD,iGAIC,eAAgB,CADhB,kCAAmC,CADnC,kCAmBD,CAfC,yHACC,gDACD,CARD,0OAeE,aAMF,CAJE,+IACC,kDACD,CDpEH",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button {\n\t&::after {\n\t\tcontent: "";\n\t\twidth: 0;\n\t\tposition: absolute;\n\t\tright: -1px;\n\t\ttop: -1px;\n\t\tbottom: -1px;\n\t\tz-index: 1;\n\t}\n\n\t&:focus::after {\n\t\tdisplay: none;\n\t}\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button {\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: -1px;\n\t\t\t\ttop: -1px;\n\t\t\t\tbottom: -1px;\n\t\t\t\tz-index: 1;\n\t\t\t}\n\n\t\t\t&:focus::after {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\t&::after {\n\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\t\t}\n\n\t\t& > .ck-button:nth-last-child(1),\n\t\t& > .ck-button:nth-last-child(2) {\n\t\t\tpadding: var(--ck-spacing-standard);\n\t\t\tmargin-top: var(--ck-spacing-large);\n\t\t\tborder-radius: 0;\n\n\t\t\t&:not(:focus) {\n\t\t\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\t\t}\n\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\n\t\t\t\t&:last-of-type {\n\t\t\t\t\tborder-right: 1px solid var(--ck-color-base-border);\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var a=s;},6706:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-block-toolbar-button{position:absolute;z-index:var(--ck-z-default)}:root{--ck-color-block-toolbar-button:var(--ck-color-text);--ck-block-toolbar-button-size:var(--ck-font-size-normal)}.ck.ck-block-toolbar-button{color:var(--ck-color-block-toolbar-button);font-size:var(--ck-block-toolbar-size)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/blocktoolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/blocktoolbar.css"],names:[],mappings:"AAKA,4BACC,iBAAkB,CAClB,2BACD,CCHA,MACC,oDAAqD,CACrD,yDACD,CAEA,4BACC,0CAA2C,CAC3C,sCACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);var a=s;},5571:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-toolbar{align-items:center;display:flex;flex-flow:row nowrap;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-toolbar>.ck-toolbar__items{align-items:center;display:flex;flex-flow:row wrap;flex-grow:1}.ck.ck-toolbar .ck.ck-toolbar__separator{display:inline-block}.ck.ck-toolbar .ck.ck-toolbar__separator:first-child,.ck.ck-toolbar .ck.ck-toolbar__separator:last-child{display:none}.ck.ck-toolbar .ck-toolbar__line-break{flex-basis:100%}.ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items{flex-direction:column}.ck.ck-toolbar.ck-toolbar_floating>.ck-toolbar__items{flex-wrap:nowrap}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck-dropdown__button .ck-dropdown__arrow{display:none}.ck.ck-toolbar{border-radius:0}.ck-rounded-corners .ck.ck-toolbar,.ck.ck-toolbar.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-toolbar{background:var(--ck-color-toolbar-background);border:1px solid var(--ck-color-toolbar-border);padding:0 var(--ck-spacing-small)}.ck.ck-toolbar .ck.ck-toolbar__separator{align-self:stretch;background:var(--ck-color-toolbar-border);margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small);min-width:1px;width:1px}.ck.ck-toolbar .ck-toolbar__line-break{height:0}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break){margin-right:var(--ck-spacing-small)}.ck.ck-toolbar>.ck-toolbar__items:empty+.ck.ck-toolbar__separator{display:none}.ck.ck-toolbar>.ck-toolbar__items>:not(.ck-toolbar__line-break),.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown{margin-bottom:var(--ck-spacing-small);margin-top:var(--ck-spacing-small)}.ck.ck-toolbar.ck-toolbar_vertical{padding:0}.ck.ck-toolbar.ck-toolbar_vertical>.ck-toolbar__items>.ck{border-radius:0;margin:0;width:100%}.ck.ck-toolbar.ck-toolbar_compact{padding:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>*{margin:0}.ck.ck-toolbar.ck-toolbar_compact>.ck-toolbar__items>:not(:first-child):not(:last-child){border-radius:0}.ck.ck-toolbar>.ck.ck-toolbar__grouped-dropdown>.ck.ck-button.ck-dropdown__button{padding-left:var(--ck-spacing-tiny)}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-dropdown__panel{min-width:auto}.ck.ck-toolbar .ck-toolbar__nested-toolbar-dropdown>.ck-button>.ck-button__label{max-width:7em;width:auto}.ck-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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/components/toolbar/toolbar.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\t\t}\n\t}\n\n\t&.ck-toolbar_compact {\n\t\t/* No spacing around items. */\n\t\tpadding: 0;\n\n\t\t& > .ck-toolbar__items > * {\n\t\t\t/* Compact toolbar items have no spacing between them. */\n\t\t\tmargin: 0;\n\n\t\t\t/* "Middle" children should have no rounded corners. */\n\t\t\t&:not(:first-child):not(:last-child) {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/*\n\t\t * Dropdown button has asymmetric padding to fit the arrow.\n\t\t * This button has no arrow so let\'s revert that padding back to normal.\n\t\t */\n\t\t& > .ck.ck-button.ck-dropdown__button {\n\t\t\tpadding-left: var(--ck-spacing-tiny);\n\t\t}\n\t}\n\n\t/* A drop-down containing the nested toolbar with configured items. */\n\t& .ck-toolbar__nested-toolbar-dropdown {\n\t\t/* Prevent empty space in the panel when the dropdown label is visible and long but the toolbar has few items. */\n\t\t& > .ck-dropdown__panel {\n\t\t\tmin-width: auto;\n\t\t}\n\n\t\t& > .ck-button > .ck-button__label {\n\t\t\tmax-width: 7em;\n\t\t\twidth: auto;\n\t\t}\n\t}\n\n\t@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var a=s;},9948:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck.ck-balloon-panel.ck-tooltip{--ck-balloon-border-width:0px;--ck-balloon-arrow-offset:0px;--ck-balloon-arrow-half-width:4px;--ck-balloon-arrow-height:4px;--ck-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://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/tooltip.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t/* Keep tooltips transparent for any interactions. */\n\tpointer-events: none;\n\n\tz-index: calc( var(--ck-z-modal) + 100 );\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-balloon-panel.ck-tooltip {\n\t--ck-balloon-border-width: 0px;\n\t--ck-balloon-arrow-offset: 0px;\n\t--ck-balloon-arrow-half-width: 4px;\n\t--ck-balloon-arrow-height: 4px;\n\t--ck-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 a=s;},6150:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck-hidden{display:none!important}.ck-reset_all :not(.ck-reset_all-excluded *),.ck.ck-reset,.ck.ck-reset_all{box-sizing:border-box;height:auto;position:static;width:auto}:root{--ck-z-default:1;--ck-z-modal:calc(var(--ck-z-default) + 999)}.ck-transitions-disabled,.ck-transitions-disabled *{transition:none!important}:root{--ck-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://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_hidden.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_zindex.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/globals/_transition.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_colors.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_disabled.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_fonts.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_reset.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_rounded.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-ui/globals/_shadow.css","webpack://./node_modules/@ckeditor/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-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(220, 6%, 81%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 50.2%, 42.5%);\n\t--ck-color-base-focus: \t\t\t\t\t\t\t\t\t\thsl(209, 92%, 70%);\n\t--ck-color-base-text: \t\t\t\t\t\t\t\t\t\thsl(0, 0%, 20%);\n\t--ck-color-base-active: \t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(218.2, 100%, 52.5%);\n\t--ck-color-base-error:\t\t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t/* -- Generic colors ------------------------------------------------------------------------ */\n\n\t--ck-color-focus-border-coordinates: \t\t\t\t\t\t218, 81.8%, 56.9%;\n\t--ck-color-focus-border: \t\t\t\t\t\t\t\t\thsl(var(--ck-color-focus-border-coordinates));\n\t--ck-color-focus-outer-shadow:\t\t\t\t\t\t\t\thsl(212.4, 89.3%, 89%);\n\t--ck-color-focus-disabled-shadow:\t\t\t\t\t\t\thsla(209, 90%, 72%,.3);\n\t--ck-color-focus-error-shadow:\t\t\t\t\t\t\t\thsla(9,100%,56%,.3);\n\t--ck-color-text: \t\t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-shadow-drop: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.15);\n\t--ck-color-shadow-drop-active:\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.2);\n\t--ck-color-shadow-inner: \t\t\t\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Buttons ------------------------------------------------------------------------------- */\n\n\t--ck-color-button-default-background: \t\t\t\t\t\ttransparent;\n\t--ck-color-button-default-hover-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 94.1%);\n\t--ck-color-button-default-disabled-background: \t\t\t\ttransparent;\n\n\t--ck-color-button-on-background: \t\t\t\t\t\t\thsl(212, 100%, 97.1%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(211.7, 100%, 92.9%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(211, 15%, 95%);\n\t--ck-color-button-on-color:\t\t\t\t\t\t\t\t\thsl(218.1, 100%, 58%);\n\n\n\t--ck-color-button-action-background: \t\t\t\t\t\tvar(--ck-color-base-action);\n\t--ck-color-button-action-hover-background: \t\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-button-action-disabled-background: \t\t\t\thsl(104, 44%, 58%);\n\t--ck-color-button-action-text: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t--ck-color-button-save: \t\t\t\t\t\t\t\t\thsl(120, 100%, 27%);\n\t--ck-color-button-cancel: \t\t\t\t\t\t\t\t\thsl(15, 100%, 43%);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 57.6%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 49%);\n\t--ck-color-switch-button-on-background:\t\t\t\t\t\tvar(--ck-color-button-action-background);\n\t--ck-color-switch-button-on-hover-background:\t\t\t\thsl(104, 53.2%, 40.2%);\n\t--ck-color-switch-button-inner-background:\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-switch-button-inner-shadow:\t\t\t\t\t\thsla(0, 0%, 0%, 0.1);\n\n\t/* -- Dropdown ------------------------------------------------------------------------------ */\n\n\t--ck-color-dropdown-panel-background: \t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-dropdown-panel-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Input --------------------------------------------------------------------------------- */\n\n\t--ck-color-input-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-input-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-error-border:\t\t\t\t\t\t\t\tvar(--ck-color-base-error);\n\t--ck-color-input-text: \t\t\t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-input-disabled-background: \t\t\t\t\t\thsl(0, 0%, 95%);\n\t--ck-color-input-disabled-border: \t\t\t\t\t\t\tvar(--ck-color-base-border);\n\t--ck-color-input-disabled-text: \t\t\t\t\t\t\thsl(0, 0%, 46%);\n\n\t/* -- List ---------------------------------------------------------------------------------- */\n\n\t--ck-color-list-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-list-button-hover-background: \t\t\t\t\tvar(--ck-color-button-default-hover-background);\n\t--ck-color-list-button-on-background: \t\t\t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-button-on-color);\n\t--ck-color-list-button-on-text:\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Panel --------------------------------------------------------------------------------- */\n\n\t--ck-color-panel-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-panel-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Toolbar ------------------------------------------------------------------------------- */\n\n\t--ck-color-toolbar-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\t--ck-color-toolbar-border: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-border);\n\n\t/* -- Tooltip ------------------------------------------------------------------------------- */\n\n\t--ck-color-tooltip-background: \t\t\t\t\t\t\t\tvar(--ck-color-base-text);\n\t--ck-color-tooltip-text: \t\t\t\t\t\t\t\t\tvar(--ck-color-base-background);\n\n\t/* -- Engine -------------------------------------------------------------------------------- */\n\n\t--ck-color-engine-placeholder-text: \t\t\t\t\t\thsl(0, 0%, 44%);\n\n\t/* -- Upload -------------------------------------------------------------------------------- */\n\n\t--ck-color-upload-bar-background:\t\t \t\t\t\t\thsl(209, 92%, 70%);\n\n\t/* -- Link -------------------------------------------------------------------------------- */\n\n\t--ck-color-link-default:\t\t\t\t\t\t\t\t\thsl(240, 100%, 47%);\n\t--ck-color-link-selected-background:\t\t\t\t\t\thsla(201, 100%, 56%, 0.1);\n\t--ck-color-link-fake-selection:\t\t\t\t\t\t\t\thsla(201, 100%, 56%, 0.3);\n\n\t/* -- Search result highlight ---------------------------------------------------------------- */\n\n\t--ck-color-highlight-background:\t\t\t\t\t\t\thsl(60, 100%, 50%)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* Do not include inheritable rules here. */\n\tmargin: 0;\n\tpadding: 0;\n\tborder: 0;\n\tbackground: transparent;\n\ttext-decoration: none;\n\tvertical-align: middle;\n\ttransition: none;\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/105 */\n\tword-wrap: break-word;\n}\n\n/**\n * Resets an element AND its children.\n */\n.ck.ck-reset_all,\n.ck-reset_all *:not(.ck-reset_all-excluded *) {\n\t/* These are rule inherited by all children elements. */\n\tborder-collapse: collapse;\n\tfont: normal normal normal var(--ck-font-size-base)/var(--ck-line-height-base) var(--ck-font-face);\n\tcolor: var(--ck-color-text);\n\ttext-align: left;\n\twhite-space: nowrap;\n\tcursor: auto;\n\tfloat: none;\n}\n\n.ck-reset_all {\n\t& .ck-rtl *:not(.ck-reset_all-excluded *) {\n\t\ttext-align: right;\n\t}\n\n\t& iframe:not(.ck-reset_all-excluded *) {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *) {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea:not(.ck-reset_all-excluded *),\n\t& input[type="text"]:not(.ck-reset_all-excluded *),\n\t& input[type="password"]:not(.ck-reset_all-excluded *) {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="text"][disabled]:not(.ck-reset_all-excluded *),\n\t& input[type="password"][disabled]:not(.ck-reset_all-excluded *) {\n\t\tcursor: default;\n\t}\n\n\t& fieldset:not(.ck-reset_all-excluded *) {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button:not(.ck-reset_all-excluded *)::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);var a=s;},6507:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,":root{--ck-color-resizer:var(--ck-color-focus-border);--ck-color-resizer-tooltip-background:#262626;--ck-color-resizer-tooltip-text:#f2f2f2;--ck-resizer-border-radius:var(--ck-border-radius);--ck-resizer-tooltip-offset:10px;--ck-resizer-tooltip-height:calc(var(--ck-spacing-small)*2 + 10px)}.ck .ck-widget,.ck .ck-widget.ck-widget_with-selection-handle{position:relative}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{position:absolute}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{display:block}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{visibility:visible}.ck .ck-size-view{background:var(--ck-color-resizer-tooltip-background);border:1px solid var(--ck-color-resizer-tooltip-text);border-radius:var(--ck-resizer-border-radius);color:var(--ck-color-resizer-tooltip-text);display:block;font-size:var(--ck-font-size-tiny);height:var(--ck-resizer-tooltip-height);line-height:var(--ck-resizer-tooltip-height);padding:0 var(--ck-spacing-small)}.ck .ck-size-view.ck-orientation-above-center,.ck .ck-size-view.ck-orientation-bottom-left,.ck .ck-size-view.ck-orientation-bottom-right,.ck .ck-size-view.ck-orientation-top-left,.ck .ck-size-view.ck-orientation-top-right{position:absolute}.ck .ck-size-view.ck-orientation-top-left{left:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-top-right{right:var(--ck-resizer-tooltip-offset);top:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-right{bottom:var(--ck-resizer-tooltip-offset);right:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-bottom-left{bottom:var(--ck-resizer-tooltip-offset);left:var(--ck-resizer-tooltip-offset)}.ck .ck-size-view.ck-orientation-above-center{left:50%;top:calc(var(--ck-resizer-tooltip-height)*-1);transform:translate(-50%)}:root{--ck-widget-outline-thickness:3px;--ck-widget-handler-icon-size:16px;--ck-widget-handler-animation-duration:200ms;--ck-widget-handler-animation-curve:ease;--ck-color-widget-blurred-border:#dedede;--ck-color-widget-hover-border:#ffc83d;--ck-color-widget-editable-focus-background:var(--ck-color-base-background);--ck-color-widget-drag-handler-icon-color:var(--ck-color-base-background)}.ck .ck-widget{outline-color:transparent;outline-style:solid;outline-width:var(--ck-widget-outline-thickness);transition:outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_selected,.ck .ck-widget.ck-widget_selected:hover{outline:var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border)}.ck .ck-widget:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-editor__nested-editable{border:1px solid transparent}.ck .ck-editor__nested-editable.ck-editor__nested-editable_focused,.ck .ck-editor__nested-editable:focus{background-color:var(--ck-color-widget-editable-focus-background);border:var(--ck-focus-ring);box-shadow:var(--ck-inner-shadow),0 0;outline:none}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{background-color:transparent;border-radius:var(--ck-border-radius) var(--ck-border-radius) 0 0;box-sizing:border-box;left:calc(0px - var(--ck-widget-outline-thickness));opacity:0;padding:4px;top:0;transform:translateY(-100%);transition:background-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),visibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon{color:var(--ck-color-widget-drag-handler-icon-color);height:var(--ck-widget-handler-icon-size);width:var(--ck-widget-handler-icon-size)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:0;transition:opacity .3s var(--ck-widget-handler-animation-curve)}.ck .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover .ck-icon .ck-icon__selected-indicator{opacity:1}.ck .ck-widget.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle{background-color:var(--ck-color-widget-hover-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{background-color:var(--ck-color-focus-border);opacity:1}.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator,.ck .ck-widget.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle .ck-icon .ck-icon__selected-indicator{opacity:1}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle{left:auto;right:calc(0px - var(--ck-widget-outline-thickness))}.ck.ck-editor__editable.ck-read-only .ck-widget{transition:none}.ck.ck-editor__editable.ck-read-only .ck-widget:not(.ck-widget_selected){--ck-widget-outline-thickness:0px}.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle,.ck.ck-editor__editable.ck-read-only .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover{outline-color:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle:hover>.ck-widget__selection-handle:hover,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected.ck-widget_with-selection-handle>.ck-widget__selection-handle:hover{background:var(--ck-color-widget-blurred-border)}.ck.ck-editor__editable blockquote>.ck-widget.ck-widget_with-selection-handle:first-child,.ck.ck-editor__editable>.ck-widget.ck-widget_with-selection-handle:first-child{margin-top:calc(1em + var(--ck-widget-handler-icon-size))}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widget.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_focus.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_shadow.css"],names:[],mappings:"AAKA,MACC,+CAAgD,CAChD,6CAAsD,CACtD,uCAAgD,CAEhD,kDAAmD,CACnD,gCAAiC,CACjC,kEACD,CAOA,8DAEC,iBAqBD,CAnBC,4EACC,iBAOD,CALC,qFAGC,aACD,CASD,iLACC,kBACD,CAGD,kBACC,qDAAsD,CAEtD,qDAAsD,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n\n:root {\n\t--ck-widget-outline-thickness: 3px;\n\t--ck-widget-handler-icon-size: 16px;\n\t--ck-widget-handler-animation-duration: 200ms;\n\t--ck-widget-handler-animation-curve: ease;\n\n\t--ck-color-widget-blurred-border: hsl(0, 0%, 87%);\n\t--ck-color-widget-hover-border: hsl(43, 100%, 62%);\n\t--ck-color-widget-editable-focus-background: var(--ck-color-base-background);\n\t--ck-color-widget-drag-handler-icon-color: var(--ck-color-base-background);\n}\n\n.ck .ck-widget {\n\toutline-width: var(--ck-widget-outline-thickness);\n\toutline-style: solid;\n\toutline-color: transparent;\n\ttransition: outline-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-focus-border);\n\t}\n\n\t&:hover {\n\t\toutline-color: var(--ck-color-widget-hover-border);\n\t}\n}\n\n.ck .ck-editor__nested-editable {\n\tborder: 1px solid transparent;\n\n\t/* The :focus style is applied before .ck-editor__nested-editable_focused class is rendered in the view.\n\tThese styles show a different border for a blink of an eye, so `:focus` need to have same styles applied. */\n\t&.ck-editor__nested-editable_focused,\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\n\t\tbackground-color: var(--ck-color-widget-editable-focus-background);\n\t}\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t& .ck-widget__selection-handle {\n\t\tpadding: 4px;\n\t\tbox-sizing: border-box;\n\n\t\t/* Background and opacity will be animated as the handler shows up or the widget gets selected. */\n\t\tbackground-color: transparent;\n\t\topacity: 0;\n\n\t\t/* Transition:\n\t\t * background-color for the .ck-widget_selected state change,\n\t\t * visibility for hiding the handler,\n\t\t * opacity for the proper look of the icon when the handler disappears. */\n\t\ttransition:\n\t\t\tbackground-color var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\tvisibility var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),\n\t\t\topacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t/* Make only top corners round. */\n\t\tborder-radius: var(--ck-border-radius) var(--ck-border-radius) 0 0;\n\n\t\t/* Place the drag handler outside the widget wrapper. */\n\t\ttransform: translateY(-100%);\n\t\tleft: calc(0px - var(--ck-widget-outline-thickness));\n\t\ttop: 0;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the dimensions of the icon are independent of the fon-size of the content. */\n\t\t\twidth: var(--ck-widget-handler-icon-size);\n\t\t\theight: var(--ck-widget-handler-icon-size);\n\t\t\tcolor: var(--ck-color-widget-drag-handler-icon-color);\n\n\t\t\t/* The "selected" part of the icon is invisible by default */\n\t\t\t& .ck-icon__selected-indicator {\n\t\t\t\topacity: 0;\n\n\t\t\t\t/* Note: The animation is longer on purpose. Simply feels better. */\n\t\t\t\ttransition: opacity 300ms var(--ck-widget-handler-animation-curve);\n\t\t\t}\n\t\t}\n\n\t\t/* Advertise using the look of the icon that once clicked the handler, the widget will be selected. */\n\t\t&:hover .ck-icon .ck-icon__selected-indicator {\n\t\t\topacity: 1;\n\t\t}\n\t}\n\n\t/* Show the selection handler on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\topacity: 1;\n\t\tbackground-color: var(--ck-color-widget-hover-border);\n\t}\n\n\t/* Show the selection handler when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\t& > .ck-widget__selection-handle {\n\t\t\topacity: 1;\n\t\t\tbackground-color: var(--ck-color-focus-border);\n\n\t\t\t/* When the widget is selected, notify the user using the proper look of the icon. */\n\t\t\t& .ck-icon .ck-icon__selected-indicator {\n\t\t\t\topacity: 1;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* In a RTL environment, align the selection handler to the right side of the widget */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__selection-handle {\n\tleft: auto;\n\tright: calc(0px - var(--ck-widget-outline-thickness));\n}\n\n/* https://github.com/ckeditor/ckeditor5/issues/6415 */\n.ck.ck-editor__editable.ck-read-only .ck-widget {\n\t/* Prevent the :hover outline from showing up because of the used outline-color transition. */\n\ttransition: none;\n\n\t&:not(.ck-widget_selected) {\n\t\t/* Disable visual effects of hover/active widget when CKEditor is in readOnly mode.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/1261\n\t\t *\n\t\t * Leave the unit because this custom property is used in calc() by other features.\n\t\t * See: https://github.com/ckeditor/ckeditor5/issues/6775\n\t\t */\n\t\t--ck-widget-outline-thickness: 0px;\n\t}\n\n\t&.ck-widget_with-selection-handle {\n\t\t& .ck-widget__selection-handle,\n\t\t& .ck-widget__selection-handle:hover {\n\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t}\n\t}\n}\n\n/* Style the widget when it\'s selected but the editable it belongs to lost focus. */\n/* stylelint-disable-next-line no-descending-specificity */\n.ck.ck-editor__editable.ck-blurred .ck-widget {\n\t&.ck-widget_selected,\n\t&.ck-widget_selected:hover {\n\t\toutline-color: var(--ck-color-widget-blurred-border);\n\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t& > .ck-widget__selection-handle,\n\t\t\t& > .ck-widget__selection-handle:hover {\n\t\t\t\tbackground: var(--ck-color-widget-blurred-border);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable > .ck-widget.ck-widget_with-selection-handle:first-child,\n.ck.ck-editor__editable blockquote > .ck-widget.ck-widget_with-selection-handle:first-child {\n\t/* Do not crop selection handler if a widget is a first-child in the blockquote or in the root editable.\n\tIn fact, anything with overflow: hidden.\n\thttps://github.com/ckeditor/ckeditor5-block-quote/issues/28\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/44\n\thttps://github.com/ckeditor/ckeditor5-widget/issues/66 */\n\tmargin-top: calc(1em + var(--ck-widget-handler-icon-size));\n}\n',"/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var a=s;},2263:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,".ck .ck-widget_with-resizer{position:relative}.ck .ck-widget__resizer{display:none;left:0;pointer-events:none;position:absolute;top:0}.ck-focused .ck-widget_with-resizer.ck-widget_selected>.ck-widget__resizer{display:block}.ck .ck-widget__resizer__handle{pointer-events:all;position:absolute}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{cursor:nwse-resize}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left,.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{cursor:nesw-resize}:root{--ck-resizer-size:10px;--ck-resizer-offset:calc(var(--ck-resizer-size)/-2 - 2px);--ck-resizer-border-width:1px}.ck .ck-widget__resizer{outline:1px solid var(--ck-color-resizer)}.ck .ck-widget__resizer__handle{background:var(--ck-color-focus-border);border:var(--ck-resizer-border-width) solid #fff;border-radius:var(--ck-resizer-border-radius);height:var(--ck-resizer-size);width:var(--ck-resizer-size)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-left{left:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-top-right{right:var(--ck-resizer-offset);top:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-right{bottom:var(--ck-resizer-offset);right:var(--ck-resizer-offset)}.ck .ck-widget__resizer__handle.ck-widget__resizer__handle-bottom-left{bottom:var(--ck-resizer-offset);left:var(--ck-resizer-offset)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgetresize.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgetresize.css"],names:[],mappings:"AAKA,4BAEC,iBACD,CAEA,wBACC,YAAa,CAMb,MAAO,CAFP,mBAAoB,CAHpB,iBAAkB,CAMlB,KACD,CAGC,2EACC,aACD,CAGD,gCAIC,kBAAmB,CAHnB,iBAcD,CATC,4IAEC,kBACD,CAEA,4IAEC,kBACD,CCpCD,MACC,sBAAuB,CAGvB,yDAAiE,CACjE,6BACD,CAEA,wBACC,yCACD,CAEA,gCAGC,uCAAwC,CACxC,gDAA6D,CAC7D,6CAA8C,CAH9C,6BAA8B,CAD9B,4BAyBD,CAnBC,oEAEC,6BAA8B,CAD9B,4BAED,CAEA,qEAEC,8BAA+B,CAD/B,4BAED,CAEA,wEACC,+BAAgC,CAChC,8BACD,CAEA,uEACC,+BAAgC,CAChC,6BACD",sourcesContent:["/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);var a=s;},5137:function _(t,e,n){n.d(e,{Z:function Z(){return a;}});var o=n(4015),i=n.n(o),r=n(3645),s=n.n(r)()(i());s.push([t.id,'.ck .ck-widget .ck-widget__type-around__button{display:block;overflow:hidden;position:absolute;z-index:var(--ck-z-default)}.ck .ck-widget .ck-widget__type-around__button svg{left:50%;position:absolute;top:50%;z-index:calc(var(--ck-z-default) + 2)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_before{left:min(10%,30px);top:calc(var(--ck-widget-outline-thickness)*-.5);transform:translateY(-50%)}.ck .ck-widget .ck-widget__type-around__button.ck-widget__type-around__button_after{bottom:calc(var(--ck-widget-outline-thickness)*-.5);right:min(10%,30px);transform:translateY(50%)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{content:"";display:block;left:1px;position:absolute;top:1px;z-index:calc(var(--ck-z-default) + 1)}.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:none;left:0;position:absolute;right:0}.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__fake-caret{left:calc(var(--ck-widget-outline-thickness)*-1);right:calc(var(--ck-widget-outline-thickness)*-1)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__fake-caret{display:block;top:calc(var(--ck-widget-outline-thickness)*-1 - 1px)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__fake-caret{bottom:calc(var(--ck-widget-outline-thickness)*-1 - 1px);display:block}.ck.ck-editor__editable.ck-read-only .ck-widget__type-around,.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around,.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around{display:none}:root{--ck-widget-type-around-button-size:20px;--ck-color-widget-type-around-button-active:var(--ck-color-focus-border);--ck-color-widget-type-around-button-hover:var(--ck-color-widget-hover-border);--ck-color-widget-type-around-button-blurred-editable:var(--ck-color-widget-blurred-border);--ck-color-widget-type-around-button-radar-start-alpha:0;--ck-color-widget-type-around-button-radar-end-alpha:.3;--ck-color-widget-type-around-button-icon:var(--ck-color-base-background)}.ck .ck-widget .ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button);border-radius:100px;height:var(--ck-widget-type-around-button-size);opacity:0;pointer-events:none;transition:opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve),background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);width:var(--ck-widget-type-around-button-size)}.ck .ck-widget .ck-widget__type-around__button svg{height:8px;margin-top:1px;transform:translate(-50%,-50%);transition:transform .5s ease;width:10px}.ck .ck-widget .ck-widget__type-around__button svg *{stroke-dasharray:10;stroke-dashoffset:0;fill:none;stroke:var(--ck-color-widget-type-around-button-icon);stroke-width:1.5px;stroke-linecap:round;stroke-linejoin:round}.ck .ck-widget .ck-widget__type-around__button svg line{stroke-dasharray:7}.ck .ck-widget .ck-widget__type-around__button:hover{animation:ck-widget-type-around-button-sonar 1s ease infinite}.ck .ck-widget .ck-widget__type-around__button:hover svg polyline{animation:ck-widget-type-around-arrow-dash 2s linear}.ck .ck-widget .ck-widget__type-around__button:hover svg line{animation:ck-widget-type-around-arrow-tip-dash 2s linear}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:1;pointer-events:auto}.ck .ck-widget:not(.ck-widget_selected)>.ck-widget__type-around>.ck-widget__type-around__button{background:var(--ck-color-widget-type-around-button-hover)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover{background:var(--ck-color-widget-type-around-button-active)}.ck .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:after,.ck .ck-widget>.ck-widget__type-around>.ck-widget__type-around__button:hover:after{background:linear-gradient(135deg,hsla(0,0%,100%,0),hsla(0,0%,100%,.3));border-radius:100px;height:calc(var(--ck-widget-type-around-button-size) - 2px);width:calc(var(--ck-widget-type-around-button-size) - 2px)}.ck .ck-widget.ck-widget_with-selection-handle>.ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:20px}.ck .ck-widget .ck-widget__type-around__fake-caret{animation:ck-widget-type-around-fake-caret-pulse 1s linear infinite normal forwards;background:var(--ck-color-base-text);height:1px;outline:1px solid hsla(0,0%,100%,.5);pointer-events:none}.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_after,.ck .ck-widget.ck-widget_selected.ck-widget_type-around_show-fake-caret_before{outline-color:transparent}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected:hover,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected:hover{outline-color:var(--ck-color-widget-hover-border)}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after>.ck-widget__type-around>.ck-widget__type-around__button,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_after.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected:hover>.ck-widget__selection-handle,.ck .ck-widget.ck-widget_type-around_show-fake-caret_before.ck-widget_with-selection-handle.ck-widget_selected>.ck-widget__selection-handle{opacity:0}.ck[dir=rtl] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around>.ck-widget__type-around__button_before{margin-left:0;margin-right:20px}.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button,.ck-editor__nested-editable.ck-editor__editable_selected .ck-widget:hover>.ck-widget__type-around>.ck-widget__type-around__button{opacity:0;pointer-events:none}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover){background:var(--ck-color-widget-type-around-button-blurred-editable)}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected>.ck-widget__type-around>.ck-widget__type-around__button:not(:hover) svg *{stroke:#999}@keyframes ck-widget-type-around-arrow-dash{0%{stroke-dashoffset:10}20%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-arrow-tip-dash{0%,20%{stroke-dashoffset:7}40%,to{stroke-dashoffset:0}}@keyframes ck-widget-type-around-button-sonar{0%{box-shadow:0 0 0 0 hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}50%{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-end-alpha))}to{box-shadow:0 0 0 5px hsla(var(--ck-color-focus-border-coordinates),var(--ck-color-widget-type-around-button-radar-start-alpha))}}@keyframes ck-widget-type-around-fake-caret-pulse{0%{opacity:1}49%{opacity:1}50%{opacity:0}99%{opacity:0}to{opacity:1}}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-widget/theme/widgettypearound.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-widget/widgettypearound.css"],names:[],mappings:"AASC,+CACC,aAAc,CAEd,eAAgB,CADhB,iBAAkB,CAElB,2BAwBD,CAtBC,mDAGC,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAEA,qFAGC,kBAAoB,CADpB,gDAAoD,CAGpD,0BACD,CAEA,oFAEC,mDAAuD,CACvD,mBAAqB,CAErB,yBACD,CAUA,mLACC,UAAW,CACX,aAAc,CAGd,QAAS,CAFT,iBAAkB,CAClB,OAAQ,CAER,qCACD,CAMD,2EACC,YAAa,CAEb,MAAO,CADP,iBAAkB,CAElB,OACD,CAOA,iFACC,gDAAqD,CACrD,iDACD,CAKA,wHAEC,aAAc,CADd,qDAED,CAKA,uHACC,wDAA6D,CAC7D,aACD,CAoBD,mOACC,YACD,CC3GA,MACC,wCAAyC,CACzC,wEAAyE,CACzE,8EAA+E,CAC/E,2FAA4F,CAC5F,wDAAyD,CACzD,uDAAwD,CACxD,yEACD,CAgBC,+CAGC,oDAAqD,CACrD,mBAAoB,CAFpB,+CAAgD,CAVjD,SAAU,CACV,mBAAoB,CAYnB,uMAAyM,CAJzM,8CAkDD,CA1CC,mDAEC,UAAW,CAGX,cAAe,CAFf,8BAA+B,CAC/B,6BAA8B,CAH9B,UAoBD,CAdC,qDACC,mBAAoB,CACpB,mBAAoB,CAEpB,SAAU,CACV,qDAAsD,CACtD,kBAAmB,CACnB,oBAAqB,CACrB,qBACD,CAEA,wDACC,kBACD,CAGD,qDAIC,6DAcD,CARE,kEACC,oDACD,CAEA,8DACC,wDACD,CAUF,uKAvED,SAAU,CACV,mBAwEC,CAOD,gGACC,0DACD,CAOA,uKAEC,2DAQD,CANC,mLAIC,uEAAkF,CADlF,mBAAoB,CADpB,2DAA4D,CAD5D,0DAID,CAOD,8GACC,gBACD,CAKA,mDAGC,mFAAoF,CAOpF,oCAAqC,CARrC,UAAW,CAOX,oCAAwC,CARxC,mBAUD,CAOC,6JAEC,yBACD,CAUA,yKACC,iDACD,CAMA,uOAlJD,SAAU,CACV,mBAmJC,CAoBA,6yBACC,SACD,CASF,uHACC,aAAc,CACd,iBACD,CAYG,iRAlMF,SAAU,CACV,mBAmME,CAQH,kIACC,qEAKD,CAHC,wIACC,WACD,CAGD,4CACC,GACC,oBACD,CACA,OACC,mBACD,CACD,CAEA,gDACC,OACC,mBACD,CACA,OACC,mBACD,CACD,CAEA,8CACC,GACC,6HACD,CACA,IACC,6HACD,CACA,GACC,+HACD,CACD,CAEA,kDACC,GACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);var a=s;},3645:function _(t){t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n=t(e);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n;}).join("");},e.i=function(t,n,o){"string"==typeof t&&(t=[[null,t,""]]);var i={};if(o)for(var r=0;r<this.length;r++){var s=this[r][0];null!=s&&(i[s]=!0);}for(var a=0;a<t.length;a++){var l=[].concat(t[a]);o&&i[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l));}},e;};},4015:function _(t){function e(t,e){return function(t){if(Array.isArray(t))return t;}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var o,i,r=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(o=n.next()).done)&&(r.push(o.value),!e||r.length!==e);s=!0);}catch(t){a=!0,i=t;}finally{try{s||null==n.return||n.return();}finally{if(a)throw i;}}return r;}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return n(t,e);var o=Object.prototype.toString.call(t).slice(8,-1);"Object"===o&&t.constructor&&(o=t.constructor.name);if("Map"===o||"Set"===o)return Array.from(t);if("Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o))return n(t,e);}(t,e)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");}();}function n(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=t[n];return o;}t.exports=function(t){var n=e(t,4),o=n[1],i=n[3];if(!i)return o;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(i)))),s="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),a="/*# ".concat(s," */"),l=i.sources.map(function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */");});return[o].concat(l).concat([a]).join("\n");}return[o].join("\n");};},3379:function _(t,e,n){var o,i=function i(){return void 0===o&&(o=Boolean(window&&document&&document.all&&!window.atob)),o;},r=function(){var t={};return function(e){if(void 0===t[e]){var n=document.querySelector(e);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head;}catch(t){n=null;}t[e]=n;}return t[e];};}(),s=[];function a(t){for(var e=-1,n=0;n<s.length;n++)if(s[n].identifier===t){e=n;break;}return e;}function l(t,e){for(var n={},o=[],i=0;i<t.length;i++){var r=t[i],l=e.base?r[0]+e.base:r[0],c=n[l]||0,d="".concat(l," ").concat(c);n[l]=c+1;var u=a(d),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==u?(s[u].references++,s[u].updater(h)):s.push({identifier:d,updater:f(h,e),references:1}),o.push(d);}return o;}function c(t){var e=document.createElement("style"),o=t.attributes||{};if(void 0===o.nonce){var i=n.nc;i&&(o.nonce=i);}if(Object.keys(o).forEach(function(t){e.setAttribute(t,o[t]);}),"function"==typeof t.insert)t.insert(e);else{var s=r(t.insert||"head");if(!s)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");s.appendChild(e);}return e;}var d,u=(d=[],function(t,e){return d[t]=e,d.filter(Boolean).join("\n");});function h(t,e,n,o){var i=n?"":o.media?"@media ".concat(o.media," {").concat(o.css,"}"):o.css;if(t.styleSheet)t.styleSheet.cssText=u(e,i);else{var r=document.createTextNode(i),s=t.childNodes;s[e]&&t.removeChild(s[e]),s.length?t.insertBefore(r,s[e]):t.appendChild(r);}}function g(t,e,n){var o=n.css,i=n.media,r=n.sourceMap;if(i?t.setAttribute("media",i):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(o+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=o;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(o));}}var m=null,p=0;function f(t,e){var n,o,i;if(e.singleton){var r=p++;n=m||(m=c(e)),o=h.bind(null,n,r,!1),i=h.bind(null,n,r,!0);}else n=c(e),o=g.bind(null,n,e),i=function i(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t);}(n);};return o(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;o(t=e);}else i();};}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=i());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var o=0;o<n.length;o++){var i=a(n[o]);s[i].references--;}for(var r=l(t,e),c=0;c<n.length;c++){var d=a(n[c]);0===s[d].references&&(s[d].updater(),s.splice(d,1));}n=r;}};};}},e={};function n(o){var i=e[o];if(void 0!==i)return i.exports;var r=e[o]={id:o,exports:{}};return t[o](r,r.exports,n),r.exports;}n.n=function(t){var e=t&&t.__esModule?function(){return t.default;}:function(){return t;};return n.d(e,{a:e}),e;},n.d=function(t,e){for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]});},n.g=function(){if("object"==(typeof globalThis==="undefined"?"undefined":_typeof(globalThis)))return globalThis;try{return this||new Function("return this")();}catch(t){if("object"==(typeof window==="undefined"?"undefined":_typeof(window)))return window;}}(),n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e);},n.nc=void 0;var o={};return function(){var _marked=/*#__PURE__*/_regeneratorRuntime().mark(Jd),_marked2=/*#__PURE__*/_regeneratorRuntime().mark(Xd),_marked3=/*#__PURE__*/_regeneratorRuntime().mark(Mp);function t(_ref){var t=_ref.emitter,e=_ref.activator,n=_ref.callback,o=_ref.contextElements;t.listenTo(document,"mousedown",function(t,i){if(!e())return;var r="function"==typeof i.composedPath?i.composedPath():[],s="function"==typeof o?o():o;var _iterator=_createForOfIteratorHelper(s),_step;try{for(_iterator.s();!(_step=_iterator.n()).done;){var _t2=_step.value;if(_t2.contains(i.target)||r.includes(_t2))return;}}catch(err){_iterator.e(err);}finally{_iterator.f();}n();});}function e(t){return/*#__PURE__*/function(_t3){_inherits(_class,_t3);var _super=_createSuper(_class);function _class(){var _this;_classCallCheck(this,_class);for(var _len=arguments.length,t=new Array(_len),_key=0;_key<_len;_key++){t[_key]=arguments[_key];}_this=_super.call.apply(_super,[this].concat(t)),_this.set("_isCssTransitionsDisabled",!1),_this.initializeCssTransitionDisablerMixin();return _this;}_createClass(_class,[{key:"disableCssTransitions",value:function disableCssTransitions(){this._isCssTransitionsDisabled=!0;}},{key:"enableCssTransitions",value:function enableCssTransitions(){this._isCssTransitionsDisabled=!1;}},{key:"initializeCssTransitionDisablerMixin",value:function initializeCssTransitionDisablerMixin(){this.extendTemplate({attributes:{class:[this.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}});}}]);return _class;}(t);}function i(_ref2){var t=_ref2.view;t.listenTo(t.element,"submit",function(e,n){n.preventDefault(),t.fire("submit");},{useCapture:!0});}function r(_ref3){var t=_ref3.keystrokeHandler,e=_ref3.focusTracker,n=_ref3.gridItems,o=_ref3.numberOfColumns,i=_ref3.uiLanguageDirection;var r="number"==typeof o?function(){return o;}:o;function s(t){return function(o){var i=n.find(function(t){return t.element===e.focusedElement;}),r=n.getIndex(i),s=t(r,n);n.get(s).focus(),o.stopPropagation(),o.preventDefault();};}function a(t,e){return t===e-1?0:t+1;}function l(t,e){return 0===t?e-1:t-1;}t.set("arrowright",s(function(t,e){return"rtl"===i?l(t,e.length):a(t,e.length);})),t.set("arrowleft",s(function(t,e){return"rtl"===i?a(t,e.length):l(t,e.length);})),t.set("arrowup",s(function(t,e){var n=t-r();return n<0&&(n=t+r()*Math.floor(e.length/r()),n>e.length-1&&(n-=r())),n;})),t.set("arrowdown",s(function(t,e){var n=t+r();return n>e.length-1&&(n=t%r()),n;}));}n.d(o,{default:function _default(){return $E;}});var s=function(){try{return navigator.userAgent.toLowerCase();}catch(t){return"";}}(),a={isMac:c(s),isWindows:function(t){return t.indexOf("windows")>-1;}(s),isGecko:function(t){return!!t.match(/gecko\/\d+/);}(s),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome");}(s),isiOS:function(t){return!!t.match(/iphone|ipad/i)||c(t)&&navigator.maxTouchPoints>0;}(s),isAndroid:function(t){return t.indexOf("android")>-1;}(s),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0;}(s),features:{isRegExpUnicodePropertySupported:function(){var t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"));}catch(t){}return t;}()}},l=a;function c(t){return t.indexOf("macintosh")>-1;}function d(t,e,n,o){n=n||function(t,e){return t===e;};var i=Array.isArray(t)?t:Array.prototype.slice.call(t),r=Array.isArray(e)?e:Array.prototype.slice.call(e),s=function(t,e,n){var o=u(t,e,n);if(-1===o)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var i=h(t,o),r=h(e,o),s=u(i,r,n),a=t.length-s,l=e.length-s;return{firstIndex:o,lastIndexOld:a,lastIndexNew:l};}(i,r,n),a=o?function(t,e){var n=t.firstIndex,o=t.lastIndexOld,i=t.lastIndexNew;if(-1===n)return Array(e).fill("equal");var r=[];n>0&&(r=r.concat(Array(n).fill("equal")));i-n>0&&(r=r.concat(Array(i-n).fill("insert")));o-n>0&&(r=r.concat(Array(o-n).fill("delete")));i<e&&(r=r.concat(Array(e-i).fill("equal")));return r;}(s,r.length):function(t,e){var n=[],o=e.firstIndex,i=e.lastIndexOld,r=e.lastIndexNew;r-o>0&&n.push({index:o,type:"insert",values:t.slice(o,r)});i-o>0&&n.push({index:o+(r-o),type:"delete",howMany:i-o});return n;}(r,s);return a;}function u(t,e,n){for(var _o2=0;_o2<Math.max(t.length,e.length);_o2++)if(void 0===t[_o2]||void 0===e[_o2]||!n(t[_o2],e[_o2]))return _o2;return-1;}function h(t,e){return t.slice(e).reverse();}function g(t,e,n){n=n||function(t,e){return t===e;};var o=t.length,i=e.length;if(o>200||i>200||o+i>300)return g.fastDiff(t,e,n,!0);var r,s;if(i<o){var _n2=t;t=e,e=_n2,r="delete",s="insert";}else r="insert",s="delete";var a=t.length,l=e.length,c=l-a,d={},u={};function h(o){var i=(void 0!==u[o-1]?u[o-1]:-1)+1,c=void 0!==u[o+1]?u[o+1]:-1,h=i>c?-1:1;d[o+h]&&(d[o]=d[o+h].slice(0)),d[o]||(d[o]=[]),d[o].push(i>c?r:s);var g=Math.max(i,c),m=g-o;for(;m<a&&g<l&&n(t[m],e[g]);)m++,g++,d[o].push("equal");return g;}var m,p=0;do{for(m=-p;m<c;m++)u[m]=h(m);for(m=c+p;m>c;m--)u[m]=h(m);u[c]=h(c),p++;}while(u[c]!==l);return d[c].slice(1);}g.fastDiff=d;var m=function m(){return function t(){t.called=!0;};};var p=/*#__PURE__*/_createClass(function p(t,e){_classCallCheck(this,p);this.source=t,this.name=e,this.path=[],this.stop=m(),this.off=m();});var f=new Array(256).fill("").map(function(t,e){return("0"+e.toString(16)).slice(-2);});function k(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,o=4294967296*Math.random()>>>0;return"e"+f[t>>0&255]+f[t>>8&255]+f[t>>16&255]+f[t>>24&255]+f[e>>0&255]+f[e>>8&255]+f[e>>16&255]+f[e>>24&255]+f[n>>0&255]+f[n>>8&255]+f[n>>16&255]+f[n>>24&255]+f[o>>0&255]+f[o>>8&255]+f[o>>16&255]+f[o>>24&255];}var b={get:function get(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"normal";return"number"!=typeof t?this[t]||this.normal:t;},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};function w(t,e){var n=b.get(e.priority);for(var _o3=0;_o3<t.length;_o3++)if(b.get(t[_o3].priority)<n)return void t.splice(_o3,0,e);t.push(e);}var A="https://ckeditor.com/docs/ckeditor5/latest/support/error-codes.html";var _=/*#__PURE__*/function(_Error){_inherits(_,_Error);var _super2=_createSuper(_);function _(t,e,n){var _this2;_classCallCheck(this,_);_this2=_super2.call(this,function(t,e){var n=new WeakSet(),o=function o(t,e){if("object"==_typeof(e)&&null!==e){if(n.has(e))return"[object ".concat(e.constructor.name,"]");n.add(e);}return e;},i=e?" ".concat(JSON.stringify(e,o)):"",r=y(t);return t+i+r;}(t,n)),_this2.name="CKEditorError",_this2.context=e,_this2.data=n;return _this2;}_createClass(_,[{key:"is",value:function is(t){return"CKEditorError"===t;}}],[{key:"rethrowUnexpectedError",value:function rethrowUnexpectedError(t,e){if(t.is&&t.is("CKEditorError"))throw t;var n=new _(t.message,e);throw n.stack=t.stack,n;}}]);return _;}(/*#__PURE__*/_wrapNativeSuper(Error));function C(t,e){var _console;(_console=console).warn.apply(_console,_toConsumableArray(x(t,e)));}function v(t,e){var _console2;(_console2=console).error.apply(_console2,_toConsumableArray(x(t,e)));}function y(t){return"\nRead more: ".concat(A,"#error-").concat(t);}function x(t,e){var n=y(t);return e?[t,e,n]:[t,n];}var E="37.1.0",D="object"==(typeof window==="undefined"?"undefined":_typeof(window))?window:n.g;if(D.CKEDITOR_VERSION)throw new _("ckeditor-duplicated-modules",null);D.CKEDITOR_VERSION=E;var T=Symbol("listeningTo"),S=Symbol("emitterId"),I=Symbol("delegations"),M=B(Object);function B(t){if(!t)return M;return/*#__PURE__*/function(_t4){_inherits(_class2,_t4);var _super3=_createSuper(_class2);function _class2(){_classCallCheck(this,_class2);return _super3.apply(this,arguments);}_createClass(_class2,[{key:"on",value:function on(t,e,n){this.listenTo(this,t,e,n);}},{key:"once",value:function once(t,e,n){var _this3=this;var o=!1;this.listenTo(this,t,function(t){for(var _len2=arguments.length,n=new Array(_len2>1?_len2-1:0),_key2=1;_key2<_len2;_key2++){n[_key2-1]=arguments[_key2];}o||(o=!0,t.off(),e.call.apply(e,[_this3,t].concat(n)));},n);}},{key:"off",value:function off(t,e){this.stopListening(this,t,e);}},{key:"listenTo",value:function listenTo(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i,r;this[T]||(this[T]={});var s=this[T];z(t)||N(t);var a=z(t);(i=s[a])||(i=s[a]={emitter:t,callbacks:{}}),(r=i.callbacks[e])||(r=i.callbacks[e]=[]),r.push(n),function(t,e,n,o,i){e._addEventListener?e._addEventListener(n,o,i):t._addEventListener.call(e,n,o,i);}(this,t,e,n,o);}},{key:"stopListening",value:function stopListening(t,e,n){var o=this[T];var i=t&&z(t);var r=o&&i?o[i]:void 0,s=r&&e?r.callbacks[e]:void 0;if(!(!o||t&&!r||e&&!s))if(n){j(this,t,e,n);-1!==s.indexOf(n)&&(1===s.length?delete r.callbacks[e]:j(this,t,e,n));}else if(s){for(;n=s.pop();)j(this,t,e,n);delete r.callbacks[e];}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete o[i];}else{for(i in o)this.stopListening(o[i].emitter);delete this[T];}}},{key:"fire",value:function fire(t){try{var _n3=t instanceof p?t:new p(this,t),_o4=_n3.name;var _i2=O(this,_o4);for(var _len3=arguments.length,e=new Array(_len3>1?_len3-1:0),_key3=1;_key3<_len3;_key3++){e[_key3-1]=arguments[_key3];}if(_n3.path.push(this),_i2){var _t5=[_n3].concat(e);_i2=Array.from(_i2);for(var _e2=0;_e2<_i2.length&&(_i2[_e2].callback.apply(this,_t5),_n3.off.called&&(delete _n3.off.called,this._removeEventListener(_o4,_i2[_e2].callback)),!_n3.stop.called);_e2++);}var _r2=this[I];if(_r2){var _t6=_r2.get(_o4),_i3=_r2.get("*");_t6&&R(_t6,_n3,e),_i3&&R(_i3,_n3,e);}return _n3.return;}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"delegate",value:function delegate(){var _this4=this;for(var _len4=arguments.length,t=new Array(_len4),_key4=0;_key4<_len4;_key4++){t[_key4]=arguments[_key4];}return{to:function to(e,n){_this4[I]||(_this4[I]=new Map()),t.forEach(function(t){var o=_this4[I].get(t);o?o.set(e,n):_this4[I].set(t,new Map([[e,n]]));});}};}},{key:"stopDelegating",value:function stopDelegating(t,e){if(this[I])if(t){if(e){var _n4=this[I].get(t);_n4&&_n4.delete(e);}else this[I].delete(t);}else this[I].clear();}},{key:"_addEventListener",value:function _addEventListener(t,e,n){!function(t,e){var n=P(t);if(n[e])return;var o=e,i=null;var r=[];for(;""!==o&&!n[o];)n[o]={callbacks:[],childEvents:[]},r.push(n[o]),i&&n[o].childEvents.push(i),i=o,o=o.substr(0,o.lastIndexOf(":"));if(""!==o){var _iterator2=_createForOfIteratorHelper(r),_step2;try{for(_iterator2.s();!(_step2=_iterator2.n()).done;){var _t7=_step2.value;_t7.callbacks=n[o].callbacks.slice();}}catch(err){_iterator2.e(err);}finally{_iterator2.f();}n[o].childEvents.push(i);}}(this,t);var o=L(this,t),i={callback:e,priority:b.get(n.priority)};var _iterator3=_createForOfIteratorHelper(o),_step3;try{for(_iterator3.s();!(_step3=_iterator3.n()).done;){var _t8=_step3.value;w(_t8,i);}}catch(err){_iterator3.e(err);}finally{_iterator3.f();}}},{key:"_removeEventListener",value:function _removeEventListener(t,e){var n=L(this,t);var _iterator4=_createForOfIteratorHelper(n),_step4;try{for(_iterator4.s();!(_step4=_iterator4.n()).done;){var _t9=_step4.value;for(var _n5=0;_n5<_t9.length;_n5++)_t9[_n5].callback==e&&(_t9.splice(_n5,1),_n5--);}}catch(err){_iterator4.e(err);}finally{_iterator4.f();}}}]);return _class2;}(t);}function N(t,e){t[S]||(t[S]=e||k());}function z(t){return t[S];}function P(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events;}function L(t,e){var n=P(t)[e];if(!n)return[];var o=[n.callbacks];for(var _e3=0;_e3<n.childEvents.length;_e3++){var _i4=L(t,n.childEvents[_e3]);o=o.concat(_i4);}return o;}function O(t,e){var n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?O(t,e.substr(0,e.lastIndexOf(":"))):null;}function R(t,e,n){var _iterator5=_createForOfIteratorHelper(t),_step5;try{for(_iterator5.s();!(_step5=_iterator5.n()).done;){var _step5$value=_slicedToArray(_step5.value,2),_o5=_step5$value[0],_i5=_step5$value[1];_i5?"function"==typeof _i5&&(_i5=_i5(e.name)):_i5=e.name;var _t10=new p(e.source,_i5);_t10.path=_toConsumableArray(e.path),_o5.fire.apply(_o5,[_t10].concat(_toConsumableArray(n)));}}catch(err){_iterator5.e(err);}finally{_iterator5.f();}}function j(t,e,n,o){e._removeEventListener?e._removeEventListener(n,o):t._removeEventListener.call(e,n,o);}["on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(function(t){B[t]=M.prototype[t];});var F=function F(t){var e=_typeof(t);return null!=t&&("object"==e||"function"==e);},V=Symbol("observableProperties"),H=Symbol("boundObservables"),U=Symbol("boundProperties"),W=Symbol("decoratedMethods"),G=Symbol("decoratedOriginal"),q=$(B());function $(t){if(!t)return q;return/*#__PURE__*/function(_t11){_inherits(_class3,_t11);var _super4=_createSuper(_class3);function _class3(){_classCallCheck(this,_class3);return _super4.apply(this,arguments);}_createClass(_class3,[{key:"set",value:function set(t,e){var _this5=this;if(F(t))return void Object.keys(t).forEach(function(e){_this5.set(e,t[e]);},this);K(this);var n=this[V];if(t in this&&!n.has(t))throw new _("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function get(){return n.get(t);},set:function set(e){var o=n.get(t);var i=this.fire("set:".concat(t),t,e,o);void 0===i&&(i=e),o===i&&n.has(t)||(n.set(t,i),this.fire("change:".concat(t),t,i,o));}}),this[t]=e;}},{key:"bind",value:function bind(){var _this6=this;for(var _len5=arguments.length,t=new Array(_len5),_key5=0;_key5<_len5;_key5++){t[_key5]=arguments[_key5];}if(!t.length||!Z(t))throw new _("observable-bind-wrong-properties",this);if(new Set(t).size!==t.length)throw new _("observable-bind-duplicate-properties",this);K(this);var e=this[U];t.forEach(function(t){if(e.has(t))throw new _("observable-bind-rebind",_this6);});var n=new Map();return t.forEach(function(t){var o={property:t,to:[]};e.set(t,o),n.set(t,o);}),{to:Y,toMany:Q,_observable:this,_bindProperties:t,_to:[],_bindings:n};}},{key:"unbind",value:function unbind(){var _this7=this;if(!this[V])return;var e=this[U],n=this[H];for(var _len6=arguments.length,t=new Array(_len6),_key6=0;_key6<_len6;_key6++){t[_key6]=arguments[_key6];}if(t.length){if(!Z(t))throw new _("observable-unbind-wrong-properties",this);t.forEach(function(t){var o=e.get(t);o&&(o.to.forEach(function(_ref4){var _ref5=_slicedToArray(_ref4,2),t=_ref5[0],e=_ref5[1];var i=n.get(t),r=i[e];r.delete(o),r.size||delete i[e],Object.keys(i).length||(n.delete(t),_this7.stopListening(t,"change"));}),e.delete(t));});}else n.forEach(function(t,e){_this7.stopListening(e,"change");}),n.clear(),e.clear();}},{key:"decorate",value:function decorate(t){var _this8=this;K(this);var e=this[t];if(!e)throw new _("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,function(t,n){t.return=e.apply(_this8,n);}),this[t]=function(){for(var _len7=arguments.length,e=new Array(_len7),_key7=0;_key7<_len7;_key7++){e[_key7]=arguments[_key7];}return this.fire(t,e);},this[t][G]=e,this[W]||(this[W]=[]),this[W].push(t);}},{key:"stopListening",value:function stopListening(t,e,n){if(!t&&this[W]){var _iterator6=_createForOfIteratorHelper(this[W]),_step6;try{for(_iterator6.s();!(_step6=_iterator6.n()).done;){var _t12=_step6.value;this[_t12]=this[_t12][G];}}catch(err){_iterator6.e(err);}finally{_iterator6.f();}delete this[W];}_get(_getPrototypeOf(_class3.prototype),"stopListening",this).call(this,t,e,n);}}]);return _class3;}(t);}function K(t){t[V]||(Object.defineProperty(t,V,{value:new Map()}),Object.defineProperty(t,H,{value:new Map()}),Object.defineProperty(t,U,{value:new Map()}));}function Y(){var _this9=this;var e=function(){for(var _len8=arguments.length,t=new Array(_len8),_key8=0;_key8<_len8;_key8++){t[_key8]=arguments[_key8];}if(!t.length)throw new _("observable-bind-to-parse-error",null);var e={to:[]};var n;"function"==typeof t[t.length-1]&&(e.callback=t.pop());return t.forEach(function(t){if("string"==typeof t)n.properties.push(t);else{if("object"!=_typeof(t))throw new _("observable-bind-to-parse-error",null);n={observable:t,properties:[]},e.to.push(n);}}),e;}.apply(void 0,arguments),n=Array.from(this._bindings.keys()),o=n.length;if(!e.callback&&e.to.length>1)throw new _("observable-bind-to-no-callback",this);if(o>1&&e.callback)throw new _("observable-bind-to-extra-callback",this);var i;e.to.forEach(function(t){if(t.properties.length&&t.properties.length!==o)throw new _("observable-bind-to-properties-length",_this9);t.properties.length||(t.properties=_this9._bindProperties);}),this._to=e.to,e.callback&&(this._bindings.get(n[0]).callback=e.callback),i=this._observable,this._to.forEach(function(t){var e=i[H];var n;e.get(t.observable)||i.listenTo(t.observable,"change",function(o,r){n=e.get(t.observable)[r],n&&n.forEach(function(t){J(i,t.property);});});}),function(t){var e;t._bindings.forEach(function(n,o){t._to.forEach(function(i){e=i.properties[n.callback?0:t._bindProperties.indexOf(o)],n.to.push([i.observable,e]),function(t,e,n,o){var i=t[H],r=i.get(n),s=r||{};s[o]||(s[o]=new Set());s[o].add(e),r||i.set(n,s);}(t._observable,n,i.observable,e);});});}(this),this._bindProperties.forEach(function(t){J(_this9._observable,t);});}function Q(t,e,n){if(this._bindings.size>1)throw new _("observable-bind-to-many-not-one-binding",this);this.to.apply(this,_toConsumableArray(function(t,e){var n=t.map(function(t){return[t,e];});return Array.prototype.concat.apply([],n);}(t,e)).concat([n]));}function Z(t){return t.every(function(t){return"string"==typeof t;});}function J(t,e){var n=t[U].get(e);var o;n.callback?o=n.callback.apply(t,n.to.map(function(t){return t[0][t[1]];})):(o=n.to[0],o=o[0][o[1]]),Object.prototype.hasOwnProperty.call(t,e)?t[e]=o:t.set(e,o);}["set","bind","unbind","decorate","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(function(t){$[t]=q.prototype[t];});var X=/*#__PURE__*/function(){function X(){_classCallCheck(this,X);this._replacedElements=[];}_createClass(X,[{key:"replace",value:function replace(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling);}},{key:"restore",value:function restore(){this._replacedElements.forEach(function(_ref6){var t=_ref6.element,e=_ref6.newElement;t.style.display="",e&&e.remove();}),this._replacedElements=[];}}]);return X;}();function tt(t){var e=0;var _iterator7=_createForOfIteratorHelper(t),_step7;try{for(_iterator7.s();!(_step7=_iterator7.n()).done;){var _n6=_step7.value;e++;}}catch(err){_iterator7.e(err);}finally{_iterator7.f();}return e;}function et(t,e){var n=Math.min(t.length,e.length);for(var _o6=0;_o6<n;_o6++)if(t[_o6]!=e[_o6])return _o6;return t.length==e.length?"same":t.length<e.length?"prefix":"extension";}function nt(t){return!(!t||!t[Symbol.iterator]);}var ot="object"==(typeof global==="undefined"?"undefined":_typeof(global))&&global&&global.Object===Object&&global;var it="object"==(typeof self==="undefined"?"undefined":_typeof(self))&&self&&self.Object===Object&&self;var rt=ot||it||Function("return this")();var st=rt.Symbol;var at=Object.prototype,lt=at.hasOwnProperty,ct=at.toString,dt=st?st.toStringTag:void 0;var ut=function ut(t){var e=lt.call(t,dt),n=t[dt];try{t[dt]=void 0;var o=!0;}catch(t){}var i=ct.call(t);return o&&(e?t[dt]=n:delete t[dt]),i;};var ht=Object.prototype.toString;var gt=function gt(t){return ht.call(t);};var mt=st?st.toStringTag:void 0;var pt=function pt(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":mt&&mt in Object(t)?ut(t):gt(t);};var ft=Array.isArray;var kt=function kt(t){return null!=t&&"object"==_typeof(t);};var bt=function bt(t){return"string"==typeof t||!ft(t)&&kt(t)&&"[object String]"==pt(t);};function wt(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:[];var i=n&&n.xmlns,r=i?t.createElementNS(i,e):t.createElement(e);for(var _t13 in n)r.setAttribute(_t13,n[_t13]);!bt(o)&&nt(o)||(o=[o]);var _iterator8=_createForOfIteratorHelper(o),_step8;try{for(_iterator8.s();!(_step8=_iterator8.n()).done;){var _e4=_step8.value;bt(_e4)&&(_e4=t.createTextNode(_e4)),r.appendChild(_e4);}}catch(err){_iterator8.e(err);}finally{_iterator8.f();}return r;}var At=function At(t,e){return function(n){return t(e(n));};};var _t=At(Object.getPrototypeOf,Object);var Ct=Function.prototype,vt=Object.prototype,yt=Ct.toString,xt=vt.hasOwnProperty,Et=yt.call(Object);var Dt=function Dt(t){if(!kt(t)||"[object Object]"!=pt(t))return!1;var e=_t(t);if(null===e)return!0;var n=xt.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&yt.call(n)==Et;};var Tt=function Tt(){this.__data__=[],this.size=0;};var St=function St(t,e){return t===e||t!=t&&e!=e;};var It=function It(t,e){for(var n=t.length;n--;)if(St(t[n][0],e))return n;return-1;};var Mt=Array.prototype.splice;var Bt=function Bt(t){var e=this.__data__,n=It(e,t);return!(n<0)&&(n==e.length-1?e.pop():Mt.call(e,n,1),--this.size,!0);};var Nt=function Nt(t){var e=this.__data__,n=It(e,t);return n<0?void 0:e[n][1];};var zt=function zt(t){return It(this.__data__,t)>-1;};var Pt=function Pt(t,e){var n=this.__data__,o=It(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this;};function Lt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1]);}}Lt.prototype.clear=Tt,Lt.prototype.delete=Bt,Lt.prototype.get=Nt,Lt.prototype.has=zt,Lt.prototype.set=Pt;var Ot=Lt;var Rt=function Rt(){this.__data__=new Ot(),this.size=0;};var jt=function jt(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n;};var Ft=function Ft(t){return this.__data__.get(t);};var Vt=function Vt(t){return this.__data__.has(t);};var Ht=function Ht(t){if(!F(t))return!1;var e=pt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e;};var Ut=rt["__core-js_shared__"];var Wt=function(){var t=/[^.]+$/.exec(Ut&&Ut.keys&&Ut.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:"";}();var Gt=function Gt(t){return!!Wt&&Wt in t;};var qt=Function.prototype.toString;var $t=function $t(t){if(null!=t){try{return qt.call(t);}catch(t){}try{return t+"";}catch(t){}}return"";};var Kt=/^\[object .+?Constructor\]$/,Yt=Function.prototype,Qt=Object.prototype,Zt=Yt.toString,Jt=Qt.hasOwnProperty,Xt=RegExp("^"+Zt.call(Jt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var te=function te(t){return!(!F(t)||Gt(t))&&(Ht(t)?Xt:Kt).test($t(t));};var ee=function ee(t,e){return null==t?void 0:t[e];};var ne=function ne(t,e){var n=ee(t,e);return te(n)?n:void 0;};var oe=ne(rt,"Map");var ie=ne(Object,"create");var re=function re(){this.__data__=ie?ie(null):{},this.size=0;};var se=function se(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e;};var ae=Object.prototype.hasOwnProperty;var le=function le(t){var e=this.__data__;if(ie){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n;}return ae.call(e,t)?e[t]:void 0;};var ce=Object.prototype.hasOwnProperty;var de=function de(t){var e=this.__data__;return ie?void 0!==e[t]:ce.call(e,t);};var ue=function ue(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=ie&&void 0===e?"__lodash_hash_undefined__":e,this;};function he(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1]);}}he.prototype.clear=re,he.prototype.delete=se,he.prototype.get=le,he.prototype.has=de,he.prototype.set=ue;var ge=he;var me=function me(){this.size=0,this.__data__={hash:new ge(),map:new(oe||Ot)(),string:new ge()};};var pe=function pe(t){var e=_typeof(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t;};var fe=function fe(t,e){var n=t.__data__;return pe(e)?n["string"==typeof e?"string":"hash"]:n.map;};var ke=function ke(t){var e=fe(this,t).delete(t);return this.size-=e?1:0,e;};var be=function be(t){return fe(this,t).get(t);};var we=function we(t){return fe(this,t).has(t);};var Ae=function Ae(t,e){var n=fe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this;};function _e(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1]);}}_e.prototype.clear=me,_e.prototype.delete=ke,_e.prototype.get=be,_e.prototype.has=we,_e.prototype.set=Ae;var Ce=_e;var ve=function ve(t,e){var n=this.__data__;if(n instanceof Ot){var o=n.__data__;if(!oe||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ce(o);}return n.set(t,e),this.size=n.size,this;};function ye(t){var e=this.__data__=new Ot(t);this.size=e.size;}ye.prototype.clear=Rt,ye.prototype.delete=jt,ye.prototype.get=Ft,ye.prototype.has=Vt,ye.prototype.set=ve;var xe=ye;var Ee=function Ee(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t;};var De=function(){try{var t=ne(Object,"defineProperty");return t({},"",{}),t;}catch(t){}}();var Te=function Te(t,e,n){"__proto__"==e&&De?De(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n;};var Se=Object.prototype.hasOwnProperty;var Ie=function Ie(t,e,n){var o=t[e];Se.call(t,e)&&St(o,n)&&(void 0!==n||e in t)||Te(t,e,n);};var Me=function Me(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?Te(n,a,l):Ie(n,a,l);}return n;};var Be=function Be(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o;};var Ne=function Ne(t){return kt(t)&&"[object Arguments]"==pt(t);};var ze=Object.prototype,Pe=ze.hasOwnProperty,Le=ze.propertyIsEnumerable;var Oe=Ne(function(){return arguments;}())?Ne:function(t){return kt(t)&&Pe.call(t,"callee")&&!Le.call(t,"callee");};var Re=function Re(){return!1;};var je="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,Fe=je&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,Ve=Fe&&Fe.exports===je?rt.Buffer:void 0;var He=(Ve?Ve.isBuffer:void 0)||Re;var Ue=/^(?:0|[1-9]\d*)$/;var We=function We(t,e){var n=_typeof(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ue.test(t))&&t>-1&&t%1==0&&t<e;};var Ge=function Ge(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991;};var qe={};qe["[object Float32Array]"]=qe["[object Float64Array]"]=qe["[object Int8Array]"]=qe["[object Int16Array]"]=qe["[object Int32Array]"]=qe["[object Uint8Array]"]=qe["[object Uint8ClampedArray]"]=qe["[object Uint16Array]"]=qe["[object Uint32Array]"]=!0,qe["[object Arguments]"]=qe["[object Array]"]=qe["[object ArrayBuffer]"]=qe["[object Boolean]"]=qe["[object DataView]"]=qe["[object Date]"]=qe["[object Error]"]=qe["[object Function]"]=qe["[object Map]"]=qe["[object Number]"]=qe["[object Object]"]=qe["[object RegExp]"]=qe["[object Set]"]=qe["[object String]"]=qe["[object WeakMap]"]=!1;var $e=function $e(t){return kt(t)&&Ge(t.length)&&!!qe[pt(t)];};var Ke=function Ke(t){return function(e){return t(e);};};var Ye="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,Qe=Ye&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,Ze=Qe&&Qe.exports===Ye&&ot.process;var Je=function(){try{var t=Qe&&Qe.require&&Qe.require("util").types;return t||Ze&&Ze.binding&&Ze.binding("util");}catch(t){}}();var Xe=Je&&Je.isTypedArray;var tn=Xe?Ke(Xe):$e;var en=Object.prototype.hasOwnProperty;var nn=function nn(t,e){var n=ft(t),o=!n&&Oe(t),i=!n&&!o&&He(t),r=!n&&!o&&!i&&tn(t),s=n||o||i||r,a=s?Be(t.length,String):[],l=a.length;for(var c in t)!e&&!en.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||We(c,l))||a.push(c);return a;};var on=Object.prototype;var rn=function rn(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||on);};var sn=At(Object.keys,Object);var an=Object.prototype.hasOwnProperty;var ln=function ln(t){if(!rn(t))return sn(t);var e=[];for(var n in Object(t))an.call(t,n)&&"constructor"!=n&&e.push(n);return e;};var cn=function cn(t){return null!=t&&Ge(t.length)&&!Ht(t);};var dn=function dn(t){return cn(t)?nn(t):ln(t);};var un=function un(t,e){return t&&Me(e,dn(e),t);};var hn=function hn(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e;};var gn=Object.prototype.hasOwnProperty;var mn=function mn(t){if(!F(t))return hn(t);var e=rn(t),n=[];for(var o in t)("constructor"!=o||!e&&gn.call(t,o))&&n.push(o);return n;};var pn=function pn(t){return cn(t)?nn(t,!0):mn(t);};var fn=function fn(t,e){return t&&Me(e,pn(e),t);};var kn="object"==(typeof exports==="undefined"?"undefined":_typeof(exports))&&exports&&!exports.nodeType&&exports,bn=kn&&"object"==(typeof module==="undefined"?"undefined":_typeof(module))&&module&&!module.nodeType&&module,wn=bn&&bn.exports===kn?rt.Buffer:void 0,An=wn?wn.allocUnsafe:void 0;var _n=function _n(t,e){if(e)return t.slice();var n=t.length,o=An?An(n):new t.constructor(n);return t.copy(o),o;};var Cn=function Cn(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e;};var vn=function vn(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s);}return r;};var yn=function yn(){return[];};var xn=Object.prototype.propertyIsEnumerable,En=Object.getOwnPropertySymbols;var Dn=En?function(t){return null==t?[]:(t=Object(t),vn(En(t),function(e){return xn.call(t,e);}));}:yn;var Tn=function Tn(t,e){return Me(t,Dn(t),e);};var Sn=function Sn(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t;};var In=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)Sn(e,Dn(t)),t=_t(t);return e;}:yn;var Mn=function Mn(t,e){return Me(t,In(t),e);};var Bn=function Bn(t,e,n){var o=e(t);return ft(t)?o:Sn(o,n(t));};var Nn=function Nn(t){return Bn(t,dn,Dn);};var zn=function zn(t){return Bn(t,pn,In);};var Pn=ne(rt,"DataView");var Ln=ne(rt,"Promise");var On=ne(rt,"Set");var Rn=ne(rt,"WeakMap");var jn="[object Map]",Fn="[object Promise]",Vn="[object Set]",Hn="[object WeakMap]",Un="[object DataView]",Wn=$t(Pn),Gn=$t(oe),qn=$t(Ln),$n=$t(On),Kn=$t(Rn),Yn=pt;(Pn&&Yn(new Pn(new ArrayBuffer(1)))!=Un||oe&&Yn(new oe())!=jn||Ln&&Yn(Ln.resolve())!=Fn||On&&Yn(new On())!=Vn||Rn&&Yn(new Rn())!=Hn)&&(Yn=function Yn(t){var e=pt(t),n="[object Object]"==e?t.constructor:void 0,o=n?$t(n):"";if(o)switch(o){case Wn:return Un;case Gn:return jn;case qn:return Fn;case $n:return Vn;case Kn:return Hn;}return e;});var Qn=Yn;var Zn=Object.prototype.hasOwnProperty;var Jn=function Jn(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Zn.call(t,"index")&&(n.index=t.index,n.input=t.input),n;};var Xn=rt.Uint8Array;var to=function to(t){var e=new t.constructor(t.byteLength);return new Xn(e).set(new Xn(t)),e;};var eo=function eo(t,e){var n=e?to(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength);};var no=/\w*$/;var oo=function oo(t){var e=new t.constructor(t.source,no.exec(t));return e.lastIndex=t.lastIndex,e;};var io=st?st.prototype:void 0,ro=io?io.valueOf:void 0;var so=function so(t){return ro?Object(ro.call(t)):{};};var ao=function ao(t,e){var n=e?to(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length);};var lo=function lo(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return to(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return eo(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return ao(t,n);case"[object Map]":case"[object Set]":return new o();case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return oo(t);case"[object Symbol]":return so(t);}};var co=Object.create;var uo=function(){function t(){}return function(e){if(!F(e))return{};if(co)return co(e);t.prototype=e;var n=new t();return t.prototype=void 0,n;};}();var ho=function ho(t){return"function"!=typeof t.constructor||rn(t)?{}:uo(_t(t));};var go=function go(t){return kt(t)&&"[object Map]"==Qn(t);};var mo=Je&&Je.isMap;var po=mo?Ke(mo):go;var fo=function fo(t){return kt(t)&&"[object Set]"==Qn(t);};var ko=Je&&Je.isSet;var bo=ko?Ke(ko):fo;var wo="[object Arguments]",Ao="[object Function]",_o="[object Object]",Co={};Co[wo]=Co["[object Array]"]=Co["[object ArrayBuffer]"]=Co["[object DataView]"]=Co["[object Boolean]"]=Co["[object Date]"]=Co["[object Float32Array]"]=Co["[object Float64Array]"]=Co["[object Int8Array]"]=Co["[object Int16Array]"]=Co["[object Int32Array]"]=Co["[object Map]"]=Co["[object Number]"]=Co[_o]=Co["[object RegExp]"]=Co["[object Set]"]=Co["[object String]"]=Co["[object Symbol]"]=Co["[object Uint8Array]"]=Co["[object Uint8ClampedArray]"]=Co["[object Uint16Array]"]=Co["[object Uint32Array]"]=!0,Co["[object Error]"]=Co[Ao]=Co["[object WeakMap]"]=!1;var vo=function t(e,n,o,i,r,s){var a,l=1&n,c=2&n,d=4&n;if(o&&(a=r?o(e,i,r,s):o(e)),void 0!==a)return a;if(!F(e))return e;var u=ft(e);if(u){if(a=Jn(e),!l)return Cn(e,a);}else{var h=Qn(e),g=h==Ao||"[object GeneratorFunction]"==h;if(He(e))return _n(e,l);if(h==_o||h==wo||g&&!r){if(a=c||g?{}:ho(e),!l)return c?Mn(e,fn(a,e)):Tn(e,un(a,e));}else{if(!Co[h])return r?e:{};a=lo(e,h,l);}}s||(s=new xe());var m=s.get(e);if(m)return m;s.set(e,a),bo(e)?e.forEach(function(i){a.add(t(i,n,o,i,e,s));}):po(e)&&e.forEach(function(i,r){a.set(r,t(i,n,o,r,e,s));});var p=u?void 0:(d?c?zn:Nn:c?pn:dn)(e);return Ee(p||e,function(i,r){p&&(i=e[r=i]),Ie(a,r,t(i,n,o,r,e,s));}),a;};var yo=function yo(t,e){return vo(t,5,e="function"==typeof e?e:void 0);};var xo=function xo(t){return kt(t)&&1===t.nodeType&&!Dt(t);};var Eo=/*#__PURE__*/function(){function Eo(t,e){_classCallCheck(this,Eo);this._config={},e&&this.define(Do(e)),t&&this._setObjectToTarget(this._config,t);}_createClass(Eo,[{key:"set",value:function set(t,e){this._setToTarget(this._config,t,e);}},{key:"define",value:function define(t,e){this._setToTarget(this._config,t,e,!0);}},{key:"get",value:function get(t){return this._getFromSource(this._config,t);}},{key:"names",value:/*#__PURE__*/_regeneratorRuntime().mark(function names(){var _i6,_Object$keys,_t14;return _regeneratorRuntime().wrap(function names$(_context){while(1)switch(_context.prev=_context.next){case 0:_i6=0,_Object$keys=Object.keys(this._config);case 1:if(!(_i6<_Object$keys.length)){_context.next=8;break;}_t14=_Object$keys[_i6];_context.next=5;return _t14;case 5:_i6++;_context.next=1;break;case 8:case"end":return _context.stop();}},names,this);})},{key:"_setToTarget",value:function _setToTarget(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!1;if(Dt(e))return void this._setObjectToTarget(t,e,o);var i=e.split(".");e=i.pop();var _iterator9=_createForOfIteratorHelper(i),_step9;try{for(_iterator9.s();!(_step9=_iterator9.n()).done;){var _e5=_step9.value;Dt(t[_e5])||(t[_e5]={}),t=t[_e5];}}catch(err){_iterator9.e(err);}finally{_iterator9.f();}if(Dt(n))return Dt(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,o);o&&void 0!==t[e]||(t[e]=n);}},{key:"_getFromSource",value:function _getFromSource(t,e){var n=e.split(".");e=n.pop();var _iterator10=_createForOfIteratorHelper(n),_step10;try{for(_iterator10.s();!(_step10=_iterator10.n()).done;){var _e6=_step10.value;if(!Dt(t[_e6])){t=null;break;}t=t[_e6];}}catch(err){_iterator10.e(err);}finally{_iterator10.f();}return t?Do(t[e]):void 0;}},{key:"_setObjectToTarget",value:function _setObjectToTarget(t,e,n){var _this10=this;Object.keys(e).forEach(function(o){_this10._setToTarget(t,o,e[o],n);});}}]);return Eo;}();function Do(t){return yo(t,To);}function To(t){return xo(t)?t:void 0;}function So(t){if(t){if(t.defaultView)return t instanceof t.defaultView.Document;if(t.ownerDocument&&t.ownerDocument.defaultView)return t instanceof t.ownerDocument.defaultView.Node;}return!1;}function Io(t){var e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e;}var Mo=Bo(B());function Bo(t){if(!t)return Mo;return/*#__PURE__*/function(_t15){_inherits(_class4,_t15);var _super5=_createSuper(_class4);function _class4(){_classCallCheck(this,_class4);return _super5.apply(this,arguments);}_createClass(_class4,[{key:"listenTo",value:function listenTo(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(So(t)||Io(t)){var _i7={capture:!!o.useCapture,passive:!!o.usePassive},_r3=this._getProxyEmitter(t,_i7)||new No(t,_i7);this.listenTo(_r3,e,n,o);}else _get(_getPrototypeOf(_class4.prototype),"listenTo",this).call(this,t,e,n,o);}},{key:"stopListening",value:function stopListening(t,e,n){if(So(t)||Io(t)){var _o7=this._getAllProxyEmitters(t);var _iterator11=_createForOfIteratorHelper(_o7),_step11;try{for(_iterator11.s();!(_step11=_iterator11.n()).done;){var _t16=_step11.value;this.stopListening(_t16,e,n);}}catch(err){_iterator11.e(err);}finally{_iterator11.f();}}else _get(_getPrototypeOf(_class4.prototype),"stopListening",this).call(this,t,e,n);}},{key:"_getProxyEmitter",value:function _getProxyEmitter(t,e){return function(t,e){var n=t[T];return n&&n[e]?n[e].emitter:null;}(this,zo(t,e));}},{key:"_getAllProxyEmitters",value:function _getAllProxyEmitters(t){var _this11=this;return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map(function(e){return _this11._getProxyEmitter(t,e);}).filter(function(t){return!!t;});}}]);return _class4;}(t);}["_getProxyEmitter","_getAllProxyEmitters","on","once","off","listenTo","stopListening","fire","delegate","stopDelegating","_addEventListener","_removeEventListener"].forEach(function(t){Bo[t]=Mo.prototype[t];});var No=/*#__PURE__*/function(_B){_inherits(No,_B);var _super6=_createSuper(No);function No(t,e){var _this12;_classCallCheck(this,No);_this12=_super6.call(this),N(_assertThisInitialized(_this12),zo(t,e)),_this12._domNode=t,_this12._options=e;return _this12;}_createClass(No,[{key:"attach",value:function attach(t){if(this._domListeners&&this._domListeners[t])return;var e=this._createDomListener(t);this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e;}},{key:"detach",value:function detach(t){var e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener();}},{key:"_addEventListener",value:function _addEventListener(t,e,n){this.attach(t),B().prototype._addEventListener.call(this,t,e,n);}},{key:"_removeEventListener",value:function _removeEventListener(t,e){B().prototype._removeEventListener.call(this,t,e),this.detach(t);}},{key:"_createDomListener",value:function _createDomListener(t){var _this13=this;var e=function e(_e7){_this13.fire(t,_e7);};return e.removeListener=function(){_this13._domNode.removeEventListener(t,e,_this13._options),delete _this13._domListeners[t];},e;}}]);return No;}(B());function zo(t,e){var n=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=k());}(t);var _iterator12=_createForOfIteratorHelper(Object.keys(e).sort()),_step12;try{for(_iterator12.s();!(_step12=_iterator12.n()).done;){var _t17=_step12.value;e[_t17]&&(n+="-"+_t17);}}catch(err){_iterator12.e(err);}finally{_iterator12.f();}return n;}var Po;try{Po={window:window,document:document};}catch(t){Po={window:{},document:{}};}var Lo=Po;function Oo(t){var e=[];var n=t;for(;n&&n.nodeType!=Node.DOCUMENT_NODE;)e.unshift(n),n=n.parentNode;return e;}function Ro(t){return"[object Text]"==Object.prototype.toString.call(t);}function jo(t){return"[object Range]"==Object.prototype.toString.apply(t);}function Fo(t){var e=t.ownerDocument.defaultView.getComputedStyle(t);return{top:parseInt(e.borderTopWidth,10),right:parseInt(e.borderRightWidth,10),bottom:parseInt(e.borderBottomWidth,10),left:parseInt(e.borderLeftWidth,10)};}var Vo=["top","right","bottom","left","width","height"];var Ho=/*#__PURE__*/function(){function Ho(t){_classCallCheck(this,Ho);var e=jo(t);if(Object.defineProperty(this,"_source",{value:t._source||t,writable:!0,enumerable:!1}),Go(t)||e){if(e){var _e8=Ho.getDomRangeRects(t);Uo(this,Ho.getBoundingRect(_e8));}else Uo(this,t.getBoundingClientRect());}else if(Io(t)){var _e9=t.innerWidth,_n7=t.innerHeight;Uo(this,{top:0,right:_e9,bottom:_n7,left:0,width:_e9,height:_n7});}else Uo(this,t);}_createClass(Ho,[{key:"clone",value:function clone(){return new Ho(this);}},{key:"moveTo",value:function moveTo(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this;}},{key:"moveBy",value:function moveBy(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this;}},{key:"getIntersection",value:function getIntersection(t){var e={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 e.width=e.right-e.left,e.height=e.bottom-e.top,e.width<0||e.height<0?null:new Ho(e);}},{key:"getIntersectionArea",value:function getIntersectionArea(t){var e=this.getIntersection(t);return e?e.getArea():0;}},{key:"getArea",value:function getArea(){return this.width*this.height;}},{key:"getVisible",value:function getVisible(){var t=this._source;var e=this.clone();if(!Wo(t)){var _n8=t.parentNode||t.commonAncestorContainer;for(;_n8&&!Wo(_n8);){var _t18=new Ho(_n8),_o8=e.getIntersection(_t18);if(!_o8)return null;_o8.getArea()<e.getArea()&&(e=_o8),_n8=_n8.parentNode;}}return e;}},{key:"isEqual",value:function isEqual(t){for(var _i8=0,_Vo=Vo;_i8<_Vo.length;_i8++){var _e10=_Vo[_i8];if(this[_e10]!==t[_e10])return!1;}return!0;}},{key:"contains",value:function contains(t){var e=this.getIntersection(t);return!(!e||!e.isEqual(t));}},{key:"excludeScrollbarsAndBorders",value:function excludeScrollbarsAndBorders(){var t=this._source;var e,n,o;if(Io(t))e=t.innerWidth-t.document.documentElement.clientWidth,n=t.innerHeight-t.document.documentElement.clientHeight,o=t.getComputedStyle(t.document.documentElement).direction;else{var _i9=Fo(t);e=t.offsetWidth-t.clientWidth-_i9.left-_i9.right,n=t.offsetHeight-t.clientHeight-_i9.top-_i9.bottom,o=t.ownerDocument.defaultView.getComputedStyle(t).direction,this.left+=_i9.left,this.top+=_i9.top,this.right-=_i9.right,this.bottom-=_i9.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top;}return this.width-=e,"ltr"===o?this.right-=e:this.left+=e,this.height-=n,this.bottom-=n,this;}}],[{key:"getDomRangeRects",value:function getDomRangeRects(t){var e=[],n=Array.from(t.getClientRects());if(n.length){var _iterator13=_createForOfIteratorHelper(n),_step13;try{for(_iterator13.s();!(_step13=_iterator13.n()).done;){var _t19=_step13.value;e.push(new Ho(_t19));}}catch(err){_iterator13.e(err);}finally{_iterator13.f();}}else{var _n9=t.startContainer;Ro(_n9)&&(_n9=_n9.parentNode);var _o9=new Ho(_n9.getBoundingClientRect());_o9.right=_o9.left,_o9.width=0,e.push(_o9);}return e;}},{key:"getBoundingRect",value:function getBoundingRect(t){var e={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY,width:0,height:0};var n=0;var _iterator14=_createForOfIteratorHelper(t),_step14;try{for(_iterator14.s();!(_step14=_iterator14.n()).done;){var _o10=_step14.value;n++,e.left=Math.min(e.left,_o10.left),e.top=Math.min(e.top,_o10.top),e.right=Math.max(e.right,_o10.right),e.bottom=Math.max(e.bottom,_o10.bottom);}}catch(err){_iterator14.e(err);}finally{_iterator14.f();}return 0==n?null:(e.width=e.right-e.left,e.height=e.bottom-e.top,new Ho(e));}}]);return Ho;}();function Uo(t,e){var _iterator15=_createForOfIteratorHelper(Vo),_step15;try{for(_iterator15.s();!(_step15=_iterator15.n()).done;){var _n10=_step15.value;t[_n10]=e[_n10];}}catch(err){_iterator15.e(err);}finally{_iterator15.f();}}function Wo(t){return!!Go(t)&&t===t.ownerDocument.body;}function Go(t){return null!==t&&"object"==_typeof(t)&&1===t.nodeType&&"function"==typeof t.getBoundingClientRect;}var qo=/*#__PURE__*/function(){function qo(t,e){_classCallCheck(this,qo);qo._observerInstance||qo._createObserver(),this._element=t,this._callback=e,qo._addElementCallback(t,e),qo._observerInstance.observe(t);}_createClass(qo,[{key:"destroy",value:function destroy(){qo._deleteElementCallback(this._element,this._callback);}}],[{key:"_addElementCallback",value:function _addElementCallback(t,e){qo._elementCallbacks||(qo._elementCallbacks=new Map());var n=qo._elementCallbacks.get(t);n||(n=new Set(),qo._elementCallbacks.set(t,n)),n.add(e);}},{key:"_deleteElementCallback",value:function _deleteElementCallback(t,e){var n=qo._getElementCallbacks(t);n&&(n.delete(e),n.size||(qo._elementCallbacks.delete(t),qo._observerInstance.unobserve(t))),qo._elementCallbacks&&!qo._elementCallbacks.size&&(qo._observerInstance=null,qo._elementCallbacks=null);}},{key:"_getElementCallbacks",value:function _getElementCallbacks(t){return qo._elementCallbacks?qo._elementCallbacks.get(t):null;}},{key:"_createObserver",value:function _createObserver(){qo._observerInstance=new Lo.window.ResizeObserver(function(t){var _iterator16=_createForOfIteratorHelper(t),_step16;try{for(_iterator16.s();!(_step16=_iterator16.n()).done;){var _e11=_step16.value;var _t20=qo._getElementCallbacks(_e11.target);if(_t20){var _iterator17=_createForOfIteratorHelper(_t20),_step17;try{for(_iterator17.s();!(_step17=_iterator17.n()).done;){var _n11=_step17.value;_n11(_e11);}}catch(err){_iterator17.e(err);}finally{_iterator17.f();}}}}catch(err){_iterator16.e(err);}finally{_iterator16.f();}});}}]);return qo;}();function $o(t,e){t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e;}function Ko(t){return function(e){return e+t;};}function Yo(t){var e=0;for(;t.previousSibling;)t=t.previousSibling,e++;return e;}function Qo(t,e,n){t.insertBefore(n,t.childNodes[e]||null);}function Zo(t){return t&&t.nodeType===Node.COMMENT_NODE;}function Jo(t){return!!(t&&t.getClientRects&&t.getClientRects().length);}function Xo(_ref7){var t=_ref7.element,e=_ref7.target,n=_ref7.positions,o=_ref7.limiter,i=_ref7.fitInViewport,r=_ref7.viewportOffsetConfig;Ht(e)&&(e=e()),Ht(o)&&(o=o());var s=function(t){return t&&t.parentNode?t.offsetParent===Lo.document.body?null:t.offsetParent:null;}(t),a=new Ho(t),l=new Ho(e);var c;var d=i&&function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);var e=new Ho(Lo.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e;}(r)||null,u={targetRect:l,elementRect:a,positionedElementAncestor:s,viewportRect:d};if(o||i){var _t21=o&&new Ho(o).getVisible();Object.assign(u,{limiterRect:_t21,viewportRect:d}),c=function(t,e){var n=e.elementRect,o=n.getArea(),i=t.map(function(t){return new ei(t,e);}).filter(function(t){return!!t.name;});var r=0,s=null;var _iterator18=_createForOfIteratorHelper(i),_step18;try{for(_iterator18.s();!(_step18=_iterator18.n()).done;){var _t22=_step18.value;var _e12=_t22.limiterIntersectionArea,_n12=_t22.viewportIntersectionArea;if(_e12===o)return _t22;var _i10=Math.pow(_n12,2)+Math.pow(_e12,2);_i10>r&&(r=_i10,s=_t22);}}catch(err){_iterator18.e(err);}finally{_iterator18.f();}return s;}(n,u)||new ei(n[0],u);}else c=new ei(n[0],u);return c;}function ti(t){var _Lo$window=Lo.window,e=_Lo$window.scrollX,n=_Lo$window.scrollY;return t.clone().moveBy(e,n);}qo._observerInstance=null,qo._elementCallbacks=null;var ei=/*#__PURE__*/function(){function ei(t,e){_classCallCheck(this,ei);var n=t(e.targetRect,e.elementRect,e.viewportRect);if(!n)return;var o=n.left,i=n.top,r=n.name,s=n.config;this.name=r,this.config=s,this._positioningFunctionCorrdinates={left:o,top:i},this._options=e;}_createClass(ei,[{key:"left",get:function get(){return this._absoluteRect.left;}},{key:"top",get:function get(){return this._absoluteRect.top;}},{key:"limiterIntersectionArea",get:function get(){var t=this._options.limiterRect;if(t){var _e13=this._options.viewportRect;if(!_e13)return t.getIntersectionArea(this._rect);{var _n13=t.getIntersection(_e13);if(_n13)return _n13.getIntersectionArea(this._rect);}}return 0;}},{key:"viewportIntersectionArea",get:function get(){var t=this._options.viewportRect;return t?t.getIntersectionArea(this._rect):0;}},{key:"_rect",get:function get(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect;}},{key:"_absoluteRect",get:function get(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=ti(this._rect),this._options.positionedElementAncestor&&function(t,e){var n=ti(new Ho(e)),o=Fo(e);var i=0,r=0;i-=n.left,r-=n.top,i+=e.scrollLeft,r+=e.scrollTop,i-=o.left,r-=o.top,t.moveBy(i,r);}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect;}}]);return ei;}();function ni(t){var e=t.parentNode;e&&e.removeChild(t);}function oi(_ref8){var t=_ref8.window,e=_ref8.rect,n=_ref8.alignToTop,o=_ref8.forceScroll,i=_ref8.viewportOffset;var r=e.clone().moveBy(0,i),s=e.clone().moveBy(0,-i),a=new Ho(t).excludeScrollbarsAndBorders(),l=n&&o,c=[s,r].every(function(t){return a.contains(t);});var d=t.scrollX,u=t.scrollY;var h=d,g=u;l?u-=a.top-e.top+i:c||(si(s,a)?u-=a.top-e.top+i:ri(r,a)&&(u+=n?e.top-a.top-i:e.bottom-a.bottom+i)),c||(ai(e,a)?d-=a.left-e.left+i:li(e,a)&&(d+=e.right-a.right+i)),d==h&&u===g||t.scrollTo(d,u);}function ii(_ref9){var t=_ref9.parent,e=_ref9.getRect,n=_ref9.alignToTop,o=_ref9.forceScroll,_ref9$ancestorOffset=_ref9.ancestorOffset,i=_ref9$ancestorOffset===void 0?0:_ref9$ancestorOffset;var r=ci(t),s=n&&o;var a,l,c;for(;t!=r.document.body;)l=e(),a=new Ho(t).excludeScrollbarsAndBorders(),c=a.contains(l),s?t.scrollTop-=a.top-l.top+i:c||(si(l,a)?t.scrollTop-=a.top-l.top+i:ri(l,a)&&(t.scrollTop+=n?l.top-a.top-i:l.bottom-a.bottom+i)),c||(ai(l,a)?t.scrollLeft-=a.left-l.left+i:li(l,a)&&(t.scrollLeft+=l.right-a.right+i)),t=t.parentNode;}function ri(t,e){return t.bottom>e.bottom;}function si(t,e){return t.top<e.top;}function ai(t,e){return t.left<e.left;}function li(t,e){return t.right>e.right;}function ci(t){return jo(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView;}function di(t){if(jo(t)){var _e14=t.commonAncestorContainer;return Ro(_e14)&&(_e14=_e14.parentNode),_e14;}return t.parentNode;}function ui(t,e){var n=ci(t),o=new Ho(t);if(n===e)return o;{var _t23=n;for(;_t23!=e;){var _e15=_t23.frameElement,_n14=new Ho(_e15).excludeScrollbarsAndBorders();o.moveBy(_n14.left,_n14.top),_t23=_t23.parent;}}return o;}var hi={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},gi={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},mi=function(){var t={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,space:32,esc:27,tab:9,ctrl:1114112,shift:2228224,alt:4456448,cmd:8912896};for(var _e16=65;_e16<=90;_e16++){t[String.fromCharCode(_e16).toLowerCase()]=_e16;}for(var _e17=48;_e17<=57;_e17++)t[_e17-48]=_e17;for(var _e18=112;_e18<=123;_e18++)t["f"+(_e18-111)]=_e18;var _iterator19=_createForOfIteratorHelper("`-=[];',./\\"),_step19;try{for(_iterator19.s();!(_step19=_iterator19.n()).done;){var _e19=_step19.value;t[_e19]=_e19.charCodeAt(0);}}catch(err){_iterator19.e(err);}finally{_iterator19.f();}return t;}(),pi=Object.fromEntries(Object.entries(mi).map(function(_ref10){var _ref11=_slicedToArray(_ref10,2),t=_ref11[0],e=_ref11[1];return[e,t.charAt(0).toUpperCase()+t.slice(1)];}));function fi(t){var e;if("string"==typeof t){if(e=mi[t.toLowerCase()],!e)throw new _("keyboard-unknown-key",null,{key:t});}else e=t.keyCode+(t.altKey?mi.alt:0)+(t.ctrlKey?mi.ctrl:0)+(t.shiftKey?mi.shift:0)+(t.metaKey?mi.cmd:0);return e;}function ki(t){return"string"==typeof t&&(t=function(t){return t.split("+").map(function(t){return t.trim();});}(t)),t.map(function(t){return"string"==typeof t?function(t){if(t.endsWith("!"))return fi(t.slice(0,-1));var e=fi(t);return l.isMac&&e==mi.ctrl?mi.cmd:e;}(t):t;}).reduce(function(t,e){return e+t;},0);}function bi(t){var e=ki(t);return Object.entries(l.isMac?hi:gi).reduce(function(t,_ref12){var _ref13=_slicedToArray(_ref12,2),n=_ref13[0],o=_ref13[1];return 0!=(e&mi[n])&&(e&=~mi[n],t+=o),t;},"")+(e?pi[e]:"");}function wi(t,e){var n="ltr"===e;switch(t){case mi.arrowleft:return n?"left":"right";case mi.arrowright:return n?"right":"left";case mi.arrowup:return"up";case mi.arrowdown:return"down";}}function Ai(t){return Array.isArray(t)?t:[t];}function _i(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:1;if("number"!=typeof n)throw new _("translation-service-quantity-not-a-number",null,{quantity:n});var o=Object.keys(Lo.window.CKEDITOR_TRANSLATIONS).length;1===o&&(t=Object.keys(Lo.window.CKEDITOR_TRANSLATIONS)[0]);var i=e.id||e.string;if(0===o||!function(t,e){return!!Lo.window.CKEDITOR_TRANSLATIONS[t]&&!!Lo.window.CKEDITOR_TRANSLATIONS[t].dictionary[e];}(t,i))return 1!==n?e.plural:e.string;var r=Lo.window.CKEDITOR_TRANSLATIONS[t].dictionary,s=Lo.window.CKEDITOR_TRANSLATIONS[t].getPluralForm||function(t){return 1===t?0:1;},a=r[i];if("string"==typeof a)return a;return a[Number(s(n))];}Lo.window.CKEDITOR_TRANSLATIONS||(Lo.window.CKEDITOR_TRANSLATIONS={});var Ci=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function vi(t){return Ci.includes(t)?"rtl":"ltr";}var yi=/*#__PURE__*/function(){function yi(){var _this14=this;var _ref14=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref14$uiLanguage=_ref14.uiLanguage,t=_ref14$uiLanguage===void 0?"en":_ref14$uiLanguage,e=_ref14.contentLanguage;_classCallCheck(this,yi);this.uiLanguage=t,this.contentLanguage=e||this.uiLanguage,this.uiLanguageDirection=vi(this.uiLanguage),this.contentLanguageDirection=vi(this.contentLanguage),this.t=function(t,e){return _this14._t(t,e);};}_createClass(yi,[{key:"language",get:function get(){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 _t(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];e=Ai(e),"string"==typeof t&&(t={string:t});var n=!!t.plural?e[0]:1;return function(t,e){return t.replace(/%(\d+)/g,function(t,n){return n<e.length?e[n]:t;});}(_i(this.uiLanguage,t,n),e);}}]);return yi;}();var xi=/*#__PURE__*/function(_B2,_Symbol$iterator){_inherits(xi,_B2);var _super7=_createSuper(xi);function xi(){var _this15;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,xi);_this15=_super7.call(this);var n=nt(t);if(n||(e=t),_this15._items=[],_this15._itemMap=new Map(),_this15._idProperty=e.idProperty||"id",_this15._bindToExternalToInternalMap=new WeakMap(),_this15._bindToInternalToExternalMap=new WeakMap(),_this15._skippedIndexesFromExternal=[],n){var _iterator20=_createForOfIteratorHelper(t),_step20;try{for(_iterator20.s();!(_step20=_iterator20.n()).done;){var _e20=_step20.value;_this15._items.push(_e20),_this15._itemMap.set(_this15._getItemIdBeforeAdding(_e20),_e20);}}catch(err){_iterator20.e(err);}finally{_iterator20.f();}}return _this15;}_createClass(xi,[{key:"length",get:function get(){return this._items.length;}},{key:"first",get:function get(){return this._items[0]||null;}},{key:"last",get:function get(){return this._items[this.length-1]||null;}},{key:"add",value:function add(t,e){return this.addMany([t],e);}},{key:"addMany",value:function addMany(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new _("collection-add-item-invalid-index",this);var n=0;var _iterator21=_createForOfIteratorHelper(t),_step21;try{for(_iterator21.s();!(_step21=_iterator21.n()).done;){var _o11=_step21.value;var _t24=this._getItemIdBeforeAdding(_o11),_i11=e+n;this._items.splice(_i11,0,_o11),this._itemMap.set(_t24,_o11),this.fire("add",_o11,_i11),n++;}}catch(err){_iterator21.e(err);}finally{_iterator21.f();}return this.fire("change",{added:t,removed:[],index:e}),this;}},{key:"get",value:function get(t){var e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new _("collection-get-invalid-arg",this);e=this._items[t];}return e||null;}},{key:"has",value:function has(t){if("string"==typeof t)return this._itemMap.has(t);{var _e21=t[this._idProperty];return _e21&&this._itemMap.has(_e21);}}},{key:"getIndex",value:function getIndex(t){var e;return e="string"==typeof t?this._itemMap.get(t):t,e?this._items.indexOf(e):-1;}},{key:"remove",value:function remove(t){var _this$_remove=this._remove(t),_this$_remove2=_slicedToArray(_this$_remove,2),e=_this$_remove2[0],n=_this$_remove2[1];return this.fire("change",{added:[],removed:[e],index:n}),e;}},{key:"map",value:function map(t,e){return this._items.map(t,e);}},{key:"find",value:function find(t,e){return this._items.find(t,e);}},{key:"filter",value:function filter(t,e){return this._items.filter(t,e);}},{key:"clear",value:function clear(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);var t=Array.from(this._items);for(;this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0});}},{key:"bindTo",value:function bindTo(t){var _this16=this;if(this._bindToCollection)throw new _("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:function as(t){_this16._setUpBindToBinding(function(e){return new t(e);});},using:function using(t){"function"==typeof t?_this16._setUpBindToBinding(t):_this16._setUpBindToBinding(function(e){return e[t];});}};}},{key:"_setUpBindToBinding",value:function _setUpBindToBinding(t){var _this17=this;var e=this._bindToCollection,n=function n(_n16,o,i){var r=e._bindToCollection==_this17,s=e._bindToInternalToExternalMap.get(o);if(r&&s)_this17._bindToExternalToInternalMap.set(o,s),_this17._bindToInternalToExternalMap.set(s,o);else{var _n15=t(o);if(!_n15)return void _this17._skippedIndexesFromExternal.push(i);var _r4=i;var _iterator22=_createForOfIteratorHelper(_this17._skippedIndexesFromExternal),_step22;try{for(_iterator22.s();!(_step22=_iterator22.n()).done;){var _t26=_step22.value;i>_t26&&_r4--;}}catch(err){_iterator22.e(err);}finally{_iterator22.f();}var _iterator23=_createForOfIteratorHelper(e._skippedIndexesFromExternal),_step23;try{for(_iterator23.s();!(_step23=_iterator23.n()).done;){var _t27=_step23.value;_r4>=_t27&&_r4++;}}catch(err){_iterator23.e(err);}finally{_iterator23.f();}_this17._bindToExternalToInternalMap.set(o,_n15),_this17._bindToInternalToExternalMap.set(_n15,o),_this17.add(_n15,_r4);for(var _t25=0;_t25<e._skippedIndexesFromExternal.length;_t25++)_r4<=e._skippedIndexesFromExternal[_t25]&&e._skippedIndexesFromExternal[_t25]++;}};var _iterator24=_createForOfIteratorHelper(e),_step24;try{for(_iterator24.s();!(_step24=_iterator24.n()).done;){var _t28=_step24.value;n(0,_t28,e.getIndex(_t28));}}catch(err){_iterator24.e(err);}finally{_iterator24.f();}this.listenTo(e,"add",n),this.listenTo(e,"remove",function(t,e,n){var o=_this17._bindToExternalToInternalMap.get(e);o&&_this17.remove(o),_this17._skippedIndexesFromExternal=_this17._skippedIndexesFromExternal.reduce(function(t,e){return n<e&&t.push(e-1),n>e&&t.push(e),t;},[]);});}},{key:"_getItemIdBeforeAdding",value:function _getItemIdBeforeAdding(t){var e=this._idProperty;var n;if(e in t){if(n=t[e],"string"!=typeof n)throw new _("collection-add-invalid-id",this);if(this.get(n))throw new _("collection-add-item-already-exists",this);}else t[e]=n=k();return n;}},{key:"_remove",value:function _remove(t){var e,n,o,i=!1;var r=this._idProperty;if("string"==typeof t?(n=t,o=this._itemMap.get(n),i=!o,o&&(e=this._items.indexOf(o))):"number"==typeof t?(e=t,o=this._items[e],i=!o,o&&(n=o[r])):(o=t,n=o[r],e=this._items.indexOf(o),i=-1==e||!this._itemMap.get(n)),i)throw new _("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);var s=this._bindToInternalToExternalMap.get(o);return this._bindToInternalToExternalMap.delete(o),this._bindToExternalToInternalMap.delete(s),this.fire("remove",o,e),[o,e];}},{key:_Symbol$iterator,value:function value(){return this._items[Symbol.iterator]();}}]);return xi;}(B(),Symbol.iterator);function Ei(t){var e=t.next();return e.done?null:e.value;}var Di=/*#__PURE__*/function(_Bo){_inherits(Di,_Bo);var _super8=_createSuper(Di);function Di(){var _this18;_classCallCheck(this,Di);_this18=_super8.call(this),_this18._elements=new Set(),_this18._nextEventLoopTimeout=null,_this18.set("isFocused",!1),_this18.set("focusedElement",null);return _this18;}_createClass(Di,[{key:"add",value:function add(t){var _this19=this;if(this._elements.has(t))throw new _("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",function(){return _this19._focus(t);},{useCapture:!0}),this.listenTo(t,"blur",function(){return _this19._blur();},{useCapture:!0}),this._elements.add(t);}},{key:"remove",value:function remove(t){t===this.focusedElement&&this._blur(),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t));}},{key:"destroy",value:function destroy(){this.stopListening();}},{key:"_focus",value:function _focus(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0;}},{key:"_blur",value:function _blur(){var _this20=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout(function(){_this20.focusedElement=null,_this20.isFocused=!1;},0);}}]);return Di;}(Bo($()));var Ti=/*#__PURE__*/function(){function Ti(){_classCallCheck(this,Ti);this._listener=new(Bo())();}_createClass(Ti,[{key:"listenTo",value:function listenTo(t){var _this21=this;this._listener.listenTo(t,"keydown",function(t,e){_this21._listener.fire("_keydown:"+fi(e),e);});}},{key:"set",value:function set(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=ki(t),i=n.priority;this._listener.listenTo(this._listener,"_keydown:"+o,function(t,n){e(n,function(){n.preventDefault(),n.stopPropagation(),t.stop();}),t.return=!0;},{priority:i});}},{key:"press",value:function press(t){return!!this._listener.fire("_keydown:"+fi(t),t);}},{key:"stopListening",value:function stopListening(t){this._listener.stopListening(t);}},{key:"destroy",value:function destroy(){this.stopListening();}}]);return Ti;}();function Si(t){return nt(t)?new Map(t):function(t){var e=new Map();for(var _n17 in t)e.set(_n17,t[_n17]);return e;}(t);}function Ii(t,e){return!!(n=t.charAt(e-1))&&1==n.length&&/[\ud800-\udbff]/.test(n)&&function(t){return!!t&&1==t.length&&/[\udc00-\udfff]/.test(t);}(t.charAt(e));var n;}function Mi(t,e){return!!(n=t.charAt(e))&&1==n.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(n);var n;}var Bi=function(){var t=/(?:\uD83C[\uDDE6-\uDDFF]){2}/.source,e="(?:"+[/(?:[#\*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-\u2FFF\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u31EF\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(t){return t.source;}).join("|")+")";return new RegExp("".concat(t,"|").concat(e,"(?:\u200D").concat(e,")*"),"ug");}();function Ni(t,e){var n=String(t).matchAll(Bi);return Array.from(n).some(function(t){return t.index<e&&e<t.index+t[0].length;});}var zi=/*#__PURE__*/function(_xi){_inherits(zi,_xi);var _super9=_createSuper(zi);function zi(){var _this22;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:[];_classCallCheck(this,zi);_this22=_super9.call(this,t,{idProperty:"viewUid"}),_this22.on("add",function(t,e,n){_this22._renderViewIntoCollectionParent(e,n);}),_this22.on("remove",function(t,e){e.element&&_this22._parentElement&&e.element.remove();}),_this22._parentElement=null;return _this22;}_createClass(zi,[{key:"destroy",value:function destroy(){this.map(function(t){return t.destroy();});}},{key:"setParent",value:function setParent(t){this._parentElement=t;var _iterator25=_createForOfIteratorHelper(this),_step25;try{for(_iterator25.s();!(_step25=_iterator25.n()).done;){var _t29=_step25.value;this._renderViewIntoCollectionParent(_t29);}}catch(err){_iterator25.e(err);}finally{_iterator25.f();}}},{key:"delegate",value:function delegate(){var _this23=this;for(var _len9=arguments.length,t=new Array(_len9),_key9=0;_key9<_len9;_key9++){t[_key9]=arguments[_key9];}if(!t.length||!t.every(function(t){return"string"==typeof t;}))throw new _("ui-viewcollection-delegate-wrong-events",this);return{to:function to(e){var _iterator26=_createForOfIteratorHelper(_this23),_step26;try{for(_iterator26.s();!(_step26=_iterator26.n()).done;){var _n20=_step26.value;for(var _i14=0,_t32=t;_i14<_t32.length;_i14++){var _o12=_t32[_i14];_n20.delegate(_o12).to(e);}}}catch(err){_iterator26.e(err);}finally{_iterator26.f();}_this23.on("add",function(n,o){for(var _i12=0,_t30=t;_i12<_t30.length;_i12++){var _n18=_t30[_i12];o.delegate(_n18).to(e);}}),_this23.on("remove",function(n,o){for(var _i13=0,_t31=t;_i13<_t31.length;_i13++){var _n19=_t31[_i13];o.stopDelegating(_n19,e);}});}};}},{key:"_renderViewIntoCollectionParent",value:function _renderViewIntoCollectionParent(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e]);}},{key:"remove",value:function remove(t){return _get(_getPrototypeOf(zi.prototype),"remove",this).call(this,t);}}]);return zi;}(xi);var Pi=n(3379),Li=n.n(Pi),Oi=n(6150),Ri={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Oi.Z,Ri);Oi.Z.locals;var ji=/*#__PURE__*/function(_Bo2){_inherits(ji,_Bo2);var _super10=_createSuper(ji);function ji(t){var _this24;_classCallCheck(this,ji);_this24=_super10.call(this),_this24.element=null,_this24.isRendered=!1,_this24.locale=t,_this24.t=t&&t.t,_this24._viewCollections=new xi(),_this24._unboundChildren=_this24.createCollection(),_this24._viewCollections.on("add",function(e,n){n.locale=t,n.t=t&&t.t;}),_this24.decorate("render");return _this24;}_createClass(ji,[{key:"bindTemplate",get:function get(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=Fi.bind(this,this);}},{key:"createCollection",value:function createCollection(t){var e=new zi(t);return this._viewCollections.add(e),e;}},{key:"registerChild",value:function registerChild(t){nt(t)||(t=[t]);var _iterator27=_createForOfIteratorHelper(t),_step27;try{for(_iterator27.s();!(_step27=_iterator27.n()).done;){var _e22=_step27.value;this._unboundChildren.add(_e22);}}catch(err){_iterator27.e(err);}finally{_iterator27.f();}}},{key:"deregisterChild",value:function deregisterChild(t){nt(t)||(t=[t]);var _iterator28=_createForOfIteratorHelper(t),_step28;try{for(_iterator28.s();!(_step28=_iterator28.n()).done;){var _e23=_step28.value;this._unboundChildren.remove(_e23);}}catch(err){_iterator28.e(err);}finally{_iterator28.f();}}},{key:"setTemplate",value:function setTemplate(t){this.template=new Fi(t);}},{key:"extendTemplate",value:function extendTemplate(t){Fi.extend(this.template,t);}},{key:"render",value:function render(){if(this.isRendered)throw new _("ui-view-render-already-rendered",this);this.template&&(this.element=this.template.render(),this.registerChild(this.template.getViews())),this.isRendered=!0;}},{key:"destroy",value:function destroy(){this.stopListening(),this._viewCollections.map(function(t){return t.destroy();}),this.template&&this.template._revertData&&this.template.revert(this.element);}}]);return ji;}(Bo($()));var Fi=/*#__PURE__*/function(_B3){_inherits(Fi,_B3);var _super11=_createSuper(Fi);function Fi(t){var _this25;_classCallCheck(this,Fi);_this25=_super11.call(this),Object.assign(_assertThisInitialized(_this25),Qi(Yi(t))),_this25._isRendered=!1,_this25._revertData=null;return _this25;}_createClass(Fi,[{key:"render",value:function render(){var t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t;}},{key:"apply",value:function apply(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,intoFragment:!1,isApplying:!0,revertData:this._revertData}),t;}},{key:"revert",value:function revert(t){if(!this._revertData)throw new _("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData);}},{key:"getViews",value:/*#__PURE__*/_regeneratorRuntime().mark(function getViews(){return _regeneratorRuntime().wrap(function getViews$(_context3){while(1)switch(_context3.prev=_context3.next){case 0:return _context3.delegateYield(/*#__PURE__*/_regeneratorRuntime().mark(function t(e){var _iterator29,_step29,_n21;return _regeneratorRuntime().wrap(function t$(_context2){while(1)switch(_context2.prev=_context2.next){case 0:if(!e.children){_context2.next=24;break;}_iterator29=_createForOfIteratorHelper(e.children);_context2.prev=2;_iterator29.s();case 4:if((_step29=_iterator29.n()).done){_context2.next=16;break;}_n21=_step29.value;if(!nr(_n21)){_context2.next=11;break;}_context2.next=9;return _n21;case 9:_context2.next=14;break;case 11:_context2.t0=or(_n21);if(!_context2.t0){_context2.next=14;break;}return _context2.delegateYield(t(_n21),"t1",14);case 14:_context2.next=4;break;case 16:_context2.next=21;break;case 18:_context2.prev=18;_context2.t2=_context2["catch"](2);_iterator29.e(_context2.t2);case 21:_context2.prev=21;_iterator29.f();return _context2.finish(21);case 24:case"end":return _context2.stop();}},t,null,[[2,18,21,24]]);})(this),"t0",1);case 1:case"end":return _context3.stop();}},getViews,this);})},{key:"_renderNode",value:function _renderNode(t){var e;if(e=t.node?this.tag&&this.text:this.tag?this.text:!this.text,e)throw new _("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t);}},{key:"_renderElement",value:function _renderElement(t){var e=t.node;return e||(e=t.node=document.createElementNS(this.ns||"http://www.w3.org/1999/xhtml",this.tag)),this._renderAttributes(t),this._renderElementChildren(t),this._setUpListeners(t),e;}},{key:"_renderText",value:function _renderText(t){var e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),Wi(this.text)?this._bindToObservable({schema:this.text,updater:qi(e),data:t}):e.textContent=this.text.join(""),e;}},{key:"_renderAttributes",value:function _renderAttributes(t){if(!this.attributes)return;var e=t.node,n=t.revertData;for(var _o13 in this.attributes){var _i15=e.getAttribute(_o13),_r5=this.attributes[_o13];n&&(n.attributes[_o13]=_i15);var _s2=rr(_r5)?_r5[0].ns:null;if(Wi(_r5)){var _a2=rr(_r5)?_r5[0].value:_r5;n&&sr(_o13)&&_a2.unshift(_i15),this._bindToObservable({schema:_a2,updater:$i(e,_o13,_s2),data:t});}else if("style"==_o13&&"string"!=typeof _r5[0])this._renderStyleAttribute(_r5[0],t);else{n&&_i15&&sr(_o13)&&_r5.unshift(_i15);var _t33=_r5.map(function(t){return t&&t.value||t;}).reduce(function(t,e){return t.concat(e);},[]).reduce(Ji,"");er(_t33)||e.setAttributeNS(_s2,_o13,_t33);}}}},{key:"_renderStyleAttribute",value:function _renderStyleAttribute(t,e){var n=e.node;for(var _o14 in t){var _i16=t[_o14];Wi(_i16)?this._bindToObservable({schema:[_i16],updater:Ki(n,_o14),data:e}):n.style[_o14]=_i16;}}},{key:"_renderElementChildren",value:function _renderElementChildren(t){var e=t.node,n=t.intoFragment?document.createDocumentFragment():e,o=t.isApplying;var i=0;var _iterator30=_createForOfIteratorHelper(this.children),_step30;try{for(_iterator30.s();!(_step30=_iterator30.n()).done;){var _r6=_step30.value;if(ir(_r6)){if(!o){_r6.setParent(e);var _iterator31=_createForOfIteratorHelper(_r6),_step31;try{for(_iterator31.s();!(_step31=_iterator31.n()).done;){var _t34=_step31.value;n.appendChild(_t34.element);}}catch(err){_iterator31.e(err);}finally{_iterator31.f();}}}else if(nr(_r6))o||(_r6.isRendered||_r6.render(),n.appendChild(_r6.element));else if(So(_r6))n.appendChild(_r6);else if(o){var _e24={children:[],bindings:[],attributes:{}};t.revertData.children.push(_e24),_r6._renderNode({intoFragment:!1,node:n.childNodes[i++],isApplying:!0,revertData:_e24});}else n.appendChild(_r6.render());}}catch(err){_iterator30.e(err);}finally{_iterator30.f();}t.intoFragment&&e.appendChild(n);}},{key:"_setUpListeners",value:function _setUpListeners(t){var _this26=this;if(this.eventListeners){var _loop=function _loop(_e25){var n=_this26.eventListeners[_e25].map(function(n){var _e25$split=_e25.split("@"),_e25$split2=_slicedToArray(_e25$split,2),o=_e25$split2[0],i=_e25$split2[1];return n.activateDomEventListener(o,i,t);});t.revertData&&t.revertData.bindings.push(n);};for(var _e25 in this.eventListeners){_loop(_e25);}}}},{key:"_bindToObservable",value:function _bindToObservable(_ref15){var t=_ref15.schema,e=_ref15.updater,n=_ref15.data;var o=n.revertData;Gi(t,e,n);var i=t.filter(function(t){return!er(t);}).filter(function(t){return t.observable;}).map(function(o){return o.activateAttributeListener(t,e,n);});o&&o.bindings.push(i);}},{key:"_revertTemplateFromNode",value:function _revertTemplateFromNode(t,e){var _iterator32=_createForOfIteratorHelper(e.bindings),_step32;try{for(_iterator32.s();!(_step32=_iterator32.n()).done;){var _t37=_step32.value;var _iterator33=_createForOfIteratorHelper(_t37),_step33;try{for(_iterator33.s();!(_step33=_iterator33.n()).done;){var _e26=_step33.value;_e26();}}catch(err){_iterator33.e(err);}finally{_iterator33.f();}}}catch(err){_iterator32.e(err);}finally{_iterator32.f();}if(e.text)return void(t.textContent=e.text);var n=t;for(var _t35 in e.attributes){var _o15=e.attributes[_t35];null===_o15?n.removeAttribute(_t35):n.setAttribute(_t35,_o15);}for(var _t36=0;_t36<e.children.length;++_t36)this._revertTemplateFromNode(n.childNodes[_t36],e.children[_t36]);}}],[{key:"bind",value:function bind(t,e){return{to:function to(n,o){return new Hi({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:o});},if:function _if(n,o,i){return new Ui({observable:t,emitter:e,attribute:n,valueIfTrue:o,callback:i});}};}},{key:"extend",value:function extend(t,e){if(t._isRendered)throw new _("template-extend-render",[this,t]);tr(t,Qi(Yi(e)));}}]);return Fi;}(B());var Vi=/*#__PURE__*/function(){function Vi(t){_classCallCheck(this,Vi);this.attribute=t.attribute,this.observable=t.observable,this.emitter=t.emitter,this.callback=t.callback;}_createClass(Vi,[{key:"getValue",value:function getValue(t){var e=this.observable[this.attribute];return this.callback?this.callback(e,t):e;}},{key:"activateAttributeListener",value:function activateAttributeListener(t,e,n){var _this27=this;var o=function o(){return Gi(t,e,n);};return this.emitter.listenTo(this.observable,"change:".concat(this.attribute),o),function(){_this27.emitter.stopListening(_this27.observable,"change:".concat(_this27.attribute),o);};}}]);return Vi;}();var Hi=/*#__PURE__*/function(_Vi){_inherits(Hi,_Vi);var _super12=_createSuper(Hi);function Hi(t){var _this28;_classCallCheck(this,Hi);_this28=_super12.call(this,t),_this28.eventNameOrFunction=t.eventNameOrFunction;return _this28;}_createClass(Hi,[{key:"activateDomEventListener",value:function activateDomEventListener(t,e,n){var _this29=this;var o=function o(t,n){e&&!n.target.matches(e)||("function"==typeof _this29.eventNameOrFunction?_this29.eventNameOrFunction(n):_this29.observable.fire(_this29.eventNameOrFunction,n));};return this.emitter.listenTo(n.node,t,o),function(){_this29.emitter.stopListening(n.node,t,o);};}}]);return Hi;}(Vi);var Ui=/*#__PURE__*/function(_Vi2){_inherits(Ui,_Vi2);var _super13=_createSuper(Ui);function Ui(t){var _this30;_classCallCheck(this,Ui);_this30=_super13.call(this,t),_this30.valueIfTrue=t.valueIfTrue;return _this30;}_createClass(Ui,[{key:"getValue",value:function getValue(t){return!er(_get(_getPrototypeOf(Ui.prototype),"getValue",this).call(this,t))&&(this.valueIfTrue||!0);}}]);return Ui;}(Vi);function Wi(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(Wi):t instanceof Vi);}function Gi(t,e,_ref16){var n=_ref16.node;var o=function(t,e){return t.map(function(t){return t instanceof Vi?t.getValue(e):t;});}(t,n);var i;i=1==t.length&&t[0]instanceof Ui?o[0]:o.reduce(Ji,""),er(i)?e.remove():e.set(i);}function qi(t){return{set:function set(e){t.textContent=e;},remove:function remove(){t.textContent="";}};}function $i(t,e,n){return{set:function set(o){t.setAttributeNS(n,e,o);},remove:function remove(){t.removeAttributeNS(n,e);}};}function Ki(t,e){return{set:function set(n){t.style[e]=n;},remove:function remove(){t.style[e]=null;}};}function Yi(t){return yo(t,function(t){if(t&&(t instanceof Vi||or(t)||nr(t)||ir(t)))return t;});}function Qi(t){if("string"==typeof t?t=function(t){return{text:[t]};}(t):t.text&&function(t){t.text=Ai(t.text);}(t),t.on&&(t.eventListeners=function(t){for(var _e27 in t)Zi(t,_e27);return t;}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(var _e28 in t)t[_e28].value&&(t[_e28].value=Ai(t[_e28].value)),Zi(t,_e28);}(t.attributes);var _e29=[];if(t.children)if(ir(t.children))_e29.push(t.children);else{var _iterator34=_createForOfIteratorHelper(t.children),_step34;try{for(_iterator34.s();!(_step34=_iterator34.n()).done;){var _n22=_step34.value;or(_n22)||nr(_n22)||So(_n22)?_e29.push(_n22):_e29.push(new Fi(_n22));}}catch(err){_iterator34.e(err);}finally{_iterator34.f();}}t.children=_e29;}return t;}function Zi(t,e){t[e]=Ai(t[e]);}function Ji(t,e){return er(e)?t:er(t)?e:"".concat(t," ").concat(e);}function Xi(t,e){for(var _n23 in e){var _t$_n;t[_n23]?(_t$_n=t[_n23]).push.apply(_t$_n,_toConsumableArray(e[_n23])):t[_n23]=e[_n23];}}function tr(t,e){var _t$text;if(e.attributes&&(t.attributes||(t.attributes={}),Xi(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Xi(t.eventListeners,e.eventListeners)),e.text&&(_t$text=t.text).push.apply(_t$text,_toConsumableArray(e.text)),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new _("ui-template-extend-children-mismatch",t);var _n24=0;var _iterator35=_createForOfIteratorHelper(e.children),_step35;try{for(_iterator35.s();!(_step35=_iterator35.n()).done;){var _o16=_step35.value;tr(t.children[_n24++],_o16);}}catch(err){_iterator35.e(err);}finally{_iterator35.f();}}}function er(t){return!t&&0!==t;}function nr(t){return t instanceof ji;}function or(t){return t instanceof Fi;}function ir(t){return t instanceof zi;}function rr(t){return F(t[0])&&t[0].ns;}function sr(t){return"class"==t||"style"==t;}var ar=/*#__PURE__*/function(_zi){_inherits(ar,_zi);var _super14=_createSuper(ar);function ar(t){var _this31;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];_classCallCheck(this,ar);_this31=_super14.call(this,e),_this31.locale=t;return _this31;}_createClass(ar,[{key:"attachToDom",value:function attachToDom(){this._bodyCollectionContainer=new Fi({tag:"div",attributes:{class:["ck","ck-reset_all","ck-body","ck-rounded-corners"],dir:this.locale.uiLanguageDirection},children:this}).render();var t=document.querySelector(".ck-body-wrapper");t||(t=wt(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer);}},{key:"detachFromDom",value:function detachFromDom(){_get(_getPrototypeOf(ar.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove();}}]);return ar;}(zi);var lr=n(1174),cr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(lr.Z,cr);lr.Z.locals;var dr=/*#__PURE__*/function(_ji){_inherits(dr,_ji);var _super15=_createSuper(dr);function dr(){var _this32;_classCallCheck(this,dr);_this32=_super15.call(this);var t=_this32.bindTemplate;_this32.set("content",""),_this32.set("viewBox","0 0 20 20"),_this32.set("fillColor",""),_this32.set("isColorInherited",!0),_this32.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon","ck-reset_all-excluded",t.if("isColorInherited","ck-icon_inherit-color")],viewBox:t.to("viewBox")}});return _this32;}_createClass(dr,[{key:"render",value:function render(){var _this33=this;_get(_getPrototypeOf(dr.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",function(){_this33._updateXMLContent(),_this33._colorFillPaths();}),this.on("change:fillColor",function(){_this33._colorFillPaths();});}},{key:"_updateXMLContent",value:function _updateXMLContent(){if(this.content){var _t38=new DOMParser().parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),_e30=_t38.getAttribute("viewBox");_e30&&(this.viewBox=_e30);for(var _i17=0,_Array$from=Array.from(_t38.attributes);_i17<_Array$from.length;_i17++){var _Array$from$_i=_Array$from[_i17],_e31=_Array$from$_i.name,_n25=_Array$from$_i.value;dr.presentationalAttributeNames.includes(_e31)&&this.element.setAttribute(_e31,_n25);}for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild);for(;_t38.childNodes.length>0;)this.element.appendChild(_t38.childNodes[0]);}}},{key:"_colorFillPaths",value:function _colorFillPaths(){var _this34=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach(function(t){t.style.fill=_this34.fillColor;});}}]);return dr;}(ji);dr.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 ur=n(4499),hr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(ur.Z,hr);ur.Z.locals;var gr=/*#__PURE__*/function(_ji2){_inherits(gr,_ji2);var _super16=_createSuper(gr);function gr(t){var _this35;_classCallCheck(this,gr);_this35=_super16.call(this,t);var e=_this35.bindTemplate,n=k();_this35.set("class",void 0),_this35.set("labelStyle",void 0),_this35.set("icon",void 0),_this35.set("isEnabled",!0),_this35.set("isOn",!1),_this35.set("isVisible",!0),_this35.set("isToggleable",!1),_this35.set("keystroke",void 0),_this35.set("label",void 0),_this35.set("tabindex",-1),_this35.set("tooltip",!1),_this35.set("tooltipPosition","s"),_this35.set("type","button"),_this35.set("withText",!1),_this35.set("withKeystroke",!1),_this35.children=_this35.createCollection(),_this35.labelView=_this35._createLabelView(n),_this35.iconView=new dr(),_this35.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),_this35.keystrokeView=_this35._createKeystrokeView(),_this35.bind("_tooltipString").to(_assertThisInitialized(_this35),"tooltip",_assertThisInitialized(_this35),"label",_assertThisInitialized(_this35),"keystroke",_this35._getTooltipString.bind(_assertThisInitialized(_this35)));var o={tag:"button",attributes:{class:["ck","ck-button",e.to("class"),e.if("isEnabled","ck-disabled",function(t){return!t;}),e.if("isVisible","ck-hidden",function(t){return!t;}),e.to("isOn",function(t){return t?"ck-on":"ck-off";}),e.if("withText","ck-button_with-text"),e.if("withKeystroke","ck-button_with-keystroke")],type:e.to("type",function(t){return t||"button";}),tabindex:e.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_".concat(n),"aria-disabled":e.if("isEnabled",!0,function(t){return!t;}),"aria-pressed":e.to("isOn",function(t){return!!_this35.isToggleable&&String(!!t);}),"data-cke-tooltip-text":e.to("_tooltipString"),"data-cke-tooltip-position":e.to("tooltipPosition")},children:_this35.children,on:{click:e.to(function(t){_this35.isEnabled?_this35.fire("execute"):t.preventDefault();})}};l.isSafari&&(o.on.mousedown=e.to(function(t){_this35.focus(),t.preventDefault();})),_this35.setTemplate(o);return _this35;}_createClass(gr,[{key:"render",value:function render(){_get(_getPrototypeOf(gr.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 focus(){this.element.focus();}},{key:"_createLabelView",value:function _createLabelView(t){var e=new ji(),n=this.bindTemplate;return e.setTemplate({tag:"span",attributes:{class:["ck","ck-button__label"],style:n.to("labelStyle"),id:"ck-editor__aria-label_".concat(t)},children:[{text:n.to("label")}]}),e;}},{key:"_createKeystrokeView",value:function _createKeystrokeView(){var t=new ji();return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",function(t){return bi(t);})}]}),t;}},{key:"_getTooltipString",value:function _getTooltipString(t,e,n){return t?"string"==typeof t?t:(n&&(n=bi(n)),t instanceof Function?t(e,n):"".concat(e).concat(n?" (".concat(n,")"):"")):"";}}]);return gr;}(ji);var mr=n(9681),pr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(mr.Z,pr);mr.Z.locals;var fr=/*#__PURE__*/function(_gr){_inherits(fr,_gr);var _super17=_createSuper(fr);function fr(t){var _this36;_classCallCheck(this,fr);_this36=_super17.call(this,t),_this36.isToggleable=!0,_this36.toggleSwitchView=_this36._createToggleView(),_this36.extendTemplate({attributes:{class:"ck-switchbutton"}});return _this36;}_createClass(fr,[{key:"render",value:function render(){_get(_getPrototypeOf(fr.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView);}},{key:"_createToggleView",value:function _createToggleView(){var t=new ji();return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t;}}]);return fr;}(gr);function kr(t,e){var n=t.t,o={Black:n("Black"),"Dim grey":n("Dim grey"),Grey:n("Grey"),"Light grey":n("Light grey"),White:n("White"),Red:n("Red"),Orange:n("Orange"),Yellow:n("Yellow"),"Light green":n("Light green"),Green:n("Green"),Aquamarine:n("Aquamarine"),Turquoise:n("Turquoise"),"Light blue":n("Light blue"),Blue:n("Blue"),Purple:n("Purple")};return e.map(function(t){var e=o[t.label];return e&&e!=t.label&&(t.label=e),t;});}function br(t){return t.map(wr).filter(function(t){return!!t;});}function wr(t){return"string"==typeof t?{model:t,label:t,hasBorder:!1,view:{name:"span",styles:{color:t}}}:{model:t.color,label:t.label||t.color,hasBorder:void 0!==t.hasBorder&&t.hasBorder,view:{name:"span",styles:{color:"".concat(t.color)}}};}var Ar=/*#__PURE__*/function(_gr2){_inherits(Ar,_gr2);var _super18=_createSuper(Ar);function Ar(t){var _this37;_classCallCheck(this,Ar);_this37=_super18.call(this,t);var e=_this37.bindTemplate;_this37.set("color",void 0),_this37.set("hasBorder",!1),_this37.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M16.935 5.328a2 2 0 0 1 0 2.829l-7.778 7.778a2 2 0 0 1-2.829 0L3.5 13.107a1.999 1.999 0 1 1 2.828-2.829l.707.707a1 1 0 0 0 1.414 0l5.658-5.657a2 2 0 0 1 2.828 0z"/><path d="M14.814 6.035 8.448 12.4a1 1 0 0 1-1.414 0l-1.413-1.415A1 1 0 1 0 4.207 12.4l2.829 2.829a1 1 0 0 0 1.414 0l7.778-7.778a1 1 0 1 0-1.414-1.415z"/></svg>',_this37.extendTemplate({attributes:{style:{backgroundColor:e.to("color")},class:["ck","ck-color-grid__tile",e.if("hasBorder","ck-color-table__color-tile_bordered")]}});return _this37;}_createClass(Ar,[{key:"render",value:function render(){_get(_getPrototypeOf(Ar.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)";}}]);return Ar;}(gr);var _r=n(4923),Cr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(_r.Z,Cr);_r.Z.locals;var vr=/*#__PURE__*/function(_ji3){_inherits(vr,_ji3);var _super19=_createSuper(vr);function vr(t,e){var _this38;_classCallCheck(this,vr);_this38=_super19.call(this,t);var n=e&&e.colorDefinitions?e.colorDefinitions:[];_this38.columns=e&&e.columns?e.columns:5;var o={gridTemplateColumns:"repeat( ".concat(_this38.columns,", 1fr)")};_this38.set("selectedColor",void 0),_this38.items=_this38.createCollection(),_this38.focusTracker=new Di(),_this38.keystrokes=new Ti(),_this38.items.on("add",function(t,e){e.isOn=e.color===_this38.selectedColor;}),n.forEach(function(t){var e=new Ar();e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",function(){_this38.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label});}),_this38.items.add(e);}),_this38.setTemplate({tag:"div",children:_this38.items,attributes:{class:["ck","ck-color-grid"],style:o}}),_this38.on("change:selectedColor",function(t,e,n){var _iterator36=_createForOfIteratorHelper(_this38.items),_step36;try{for(_iterator36.s();!(_step36=_iterator36.n()).done;){var _t39=_step36.value;_t39.isOn=_t39.color===n;}}catch(err){_iterator36.e(err);}finally{_iterator36.f();}});return _this38;}_createClass(vr,[{key:"focus",value:function focus(){this.items.length&&this.items.first.focus();}},{key:"focusLast",value:function focusLast(){this.items.length&&this.items.last.focus();}},{key:"render",value:function render(){var _this39=this;_get(_getPrototypeOf(vr.prototype),"render",this).call(this);var _iterator37=_createForOfIteratorHelper(this.items),_step37;try{for(_iterator37.s();!(_step37=_iterator37.n()).done;){var _t40=_step37.value;this.focusTracker.add(_t40.element);}}catch(err){_iterator37.e(err);}finally{_iterator37.f();}this.items.on("add",function(t,e){_this39.focusTracker.add(e.element);}),this.items.on("remove",function(t,e){_this39.focusTracker.remove(e.element);}),this.keystrokes.listenTo(this.element),r({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:this.columns,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(vr.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}}]);return vr;}(ji);var yr=/*#__PURE__*/function(){function yr(t){_classCallCheck(this,yr);this._components=new Map(),this.editor=t;}_createClass(yr,[{key:"names",value:/*#__PURE__*/_regeneratorRuntime().mark(function names(){var _iterator38,_step38,_t41;return _regeneratorRuntime().wrap(function names$(_context4){while(1)switch(_context4.prev=_context4.next){case 0:_iterator38=_createForOfIteratorHelper(this._components.values());_context4.prev=1;_iterator38.s();case 3:if((_step38=_iterator38.n()).done){_context4.next=9;break;}_t41=_step38.value;_context4.next=7;return _t41.originalName;case 7:_context4.next=3;break;case 9:_context4.next=14;break;case 11:_context4.prev=11;_context4.t0=_context4["catch"](1);_iterator38.e(_context4.t0);case 14:_context4.prev=14;_iterator38.f();return _context4.finish(14);case 17:case"end":return _context4.stop();}},names,this,[[1,11,14,17]]);})},{key:"add",value:function add(t,e){this._components.set(xr(t),{callback:e,originalName:t});}},{key:"create",value:function create(t){if(!this.has(t))throw new _("componentfactory-item-missing",this,{name:t});return this._components.get(xr(t)).callback(this.editor.locale);}},{key:"has",value:function has(t){return this._components.has(xr(t));}}]);return yr;}();function xr(t){return String(t).toLowerCase();}var Er=n(3488),Dr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Er.Z,Dr);Er.Z.locals;var Tr=/*#__PURE__*/function(_ji4){_inherits(Tr,_ji4);var _super20=_createSuper(Tr);function Tr(t,e,n){var _this40;_classCallCheck(this,Tr);_this40=_super20.call(this,t);var o=_this40.bindTemplate;_this40.buttonView=e,_this40.panelView=n,_this40.set("isOpen",!1),_this40.set("isEnabled",!0),_this40.set("class",void 0),_this40.set("id",void 0),_this40.set("panelPosition","auto"),_this40.keystrokes=new Ti(),_this40.focusTracker=new Di(),_this40.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",o.to("class"),o.if("isEnabled","ck-disabled",function(t){return!t;})],id:o.to("id"),"aria-describedby":o.to("ariaDescribedById")},children:[e,n]}),e.extendTemplate({attributes:{class:["ck-dropdown__button"],"data-cke-tooltip-disabled":o.to("isOpen")}});return _this40;}_createClass(Tr,[{key:"render",value:function render(){var _this41=this;_get(_getPrototypeOf(Tr.prototype),"render",this).call(this),this.focusTracker.add(this.buttonView.element),this.focusTracker.add(this.panelView.element),this.listenTo(this.buttonView,"open",function(){_this41.isOpen=!_this41.isOpen;}),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",function(t,e,n){n&&("auto"===_this41.panelPosition?_this41.panelView.position=Tr._getOptimalPosition({element:_this41.panelView.element,target:_this41.buttonView.element,fitInViewport:!0,positions:_this41._panelPositions}).name:_this41.panelView.position=_this41.panelPosition);}),this.keystrokes.listenTo(this.element);var t=function t(_t42,e){_this41.isOpen&&(_this41.isOpen=!1,e());};this.keystrokes.set("arrowdown",function(t,e){_this41.buttonView.isEnabled&&!_this41.isOpen&&(_this41.isOpen=!0,e());}),this.keystrokes.set("arrowright",function(t,e){_this41.isOpen&&e();}),this.keystrokes.set("arrowleft",t),this.keystrokes.set("esc",t);}},{key:"focus",value:function focus(){this.buttonView.focus();}},{key:"_panelPositions",get:function get(){var _Tr$defaultPanelPosit=Tr.defaultPanelPositions,t=_Tr$defaultPanelPosit.south,e=_Tr$defaultPanelPosit.north,n=_Tr$defaultPanelPosit.southEast,o=_Tr$defaultPanelPosit.southWest,i=_Tr$defaultPanelPosit.northEast,r=_Tr$defaultPanelPosit.northWest,s=_Tr$defaultPanelPosit.southMiddleEast,a=_Tr$defaultPanelPosit.southMiddleWest,l=_Tr$defaultPanelPosit.northMiddleEast,c=_Tr$defaultPanelPosit.northMiddleWest;return"rtl"!==this.locale.uiLanguageDirection?[n,o,s,a,t,i,r,l,c,e]:[o,n,a,s,t,r,i,c,l,e];}}]);return Tr;}(ji);Tr.defaultPanelPositions={south:function south(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"};},southEast:function southEast(t){return{top:t.bottom,left:t.left,name:"se"};},southWest:function southWest(t,e){return{top:t.bottom,left:t.left-e.width+t.width,name:"sw"};},southMiddleEast:function southMiddleEast(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"};},southMiddleWest:function southMiddleWest(t,e){return{top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"};},north:function north(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"};},northEast:function northEast(t,e){return{top:t.top-e.height,left:t.left,name:"ne"};},northWest:function northWest(t,e){return{top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"};},northMiddleEast:function northMiddleEast(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"};},northMiddleWest:function northMiddleWest(t,e){return{top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"};}},Tr._getOptimalPosition=Xo;var Sr=/*#__PURE__*/function(_ji5){_inherits(Sr,_ji5);var _super21=_createSuper(Sr);function Sr(t){var _this42;_classCallCheck(this,Sr);_this42=_super21.call(this,t);var e=_this42.bindTemplate;_this42.set("isVisible",!1),_this42.set("position","se"),_this42.children=_this42.createCollection(),_this42.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",e.to("position",function(t){return"ck-dropdown__panel_".concat(t);}),e.if("isVisible","ck-dropdown__panel-visible")]},children:_this42.children,on:{selectstart:e.to(function(t){return t.preventDefault();})}});return _this42;}_createClass(Sr,[{key:"focus",value:function focus(){if(this.children.length){var _t43=this.children.first;"function"==typeof _t43.focus?_t43.focus():C("ui-dropdown-panel-focus-child-missing-focus",{childView:this.children.first,dropdownPanel:this});}}},{key:"focusLast",value:function focusLast(){if(this.children.length){var _t44=this.children.last;"function"==typeof _t44.focusLast?_t44.focusLast():_t44.focus();}}}]);return Sr;}(ji);var Ir='<svg viewBox="0 0 10 10" xmlns="http://www.w3.org/2000/svg"><path d="M.941 4.523a.75.75 0 1 1 1.06-1.06l3.006 3.005 3.005-3.005a.75.75 0 1 1 1.06 1.06l-3.549 3.55a.75.75 0 0 1-1.168-.136L.941 4.523z"/></svg>';var Mr=/*#__PURE__*/function(_gr3){_inherits(Mr,_gr3);var _super22=_createSuper(Mr);function Mr(t){var _this43;_classCallCheck(this,Mr);_this43=_super22.call(this,t),_this43.arrowView=_this43._createArrowView(),_this43.extendTemplate({attributes:{"aria-haspopup":!0,"aria-expanded":_this43.bindTemplate.to("isOn",function(t){return String(t);})}}),_this43.delegate("execute").to(_assertThisInitialized(_this43),"open");return _this43;}_createClass(Mr,[{key:"render",value:function render(){_get(_getPrototypeOf(Mr.prototype),"render",this).call(this),this.children.add(this.arrowView);}},{key:"_createArrowView",value:function _createArrowView(){var t=new dr();return t.content=Ir,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t;}}]);return Mr;}(gr);var Br=n(66),Nr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Br.Z,Nr);Br.Z.locals;var zr=/*#__PURE__*/function(_ji6){_inherits(zr,_ji6);var _super23=_createSuper(zr);function zr(t){var _this44;_classCallCheck(this,zr);_this44=_super23.call(this,t);var e=_this44.bindTemplate;_this44.set("class",void 0),_this44.set("labelStyle",void 0),_this44.set("icon",void 0),_this44.set("isEnabled",!0),_this44.set("isOn",!1),_this44.set("isToggleable",!1),_this44.set("isVisible",!0),_this44.set("keystroke",void 0),_this44.set("withKeystroke",!1),_this44.set("label",void 0),_this44.set("tabindex",-1),_this44.set("tooltip",!1),_this44.set("tooltipPosition","s"),_this44.set("type","button"),_this44.set("withText",!1),_this44.children=_this44.createCollection(),_this44.actionView=_this44._createActionView(),_this44.arrowView=_this44._createArrowView(),_this44.keystrokes=new Ti(),_this44.focusTracker=new Di(),_this44.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",e.to("class"),e.if("isVisible","ck-hidden",function(t){return!t;}),_this44.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:_this44.children});return _this44;}_createClass(zr,[{key:"render",value:function render(){var _this45=this;_get(_getPrototypeOf(zr.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,e){_this45.focusTracker.focusedElement===_this45.actionView.element&&(_this45.arrowView.focus(),e());}),this.keystrokes.set("arrowleft",function(t,e){_this45.focusTracker.focusedElement===_this45.arrowView.element&&(_this45.actionView.focus(),e());});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(zr.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this.actionView.focus();}},{key:"_createActionView",value:function _createActionView(){var t=new gr();return t.bind("icon","isEnabled","isOn","isToggleable","keystroke","label","tabindex","tooltip","tooltipPosition","type","withText").to(this),t.extendTemplate({attributes:{class:"ck-splitbutton__action"}}),t.delegate("execute").to(this),t;}},{key:"_createArrowView",value:function _createArrowView(){var t=new gr(),e=t.bindTemplate;return t.icon=Ir,t.extendTemplate({attributes:{class:["ck-splitbutton__arrow"],"data-cke-tooltip-disabled":e.to("isOn"),"aria-haspopup":!0,"aria-expanded":e.to("isOn",function(t){return String(t);})}}),t.bind("isEnabled").to(this),t.bind("label").to(this),t.bind("tooltip").to(this),t.delegate("execute").to(this,"open"),t;}}]);return zr;}(ji);var Pr=/*#__PURE__*/function(){function Pr(t){var _this46=this;_classCallCheck(this,Pr);if(this.focusables=t.focusables,this.focusTracker=t.focusTracker,this.keystrokeHandler=t.keystrokeHandler,this.actions=t.actions,t.actions&&t.keystrokeHandler){var _loop2=function _loop2(_e32){var n=t.actions[_e32];"string"==typeof n&&(n=[n]);var _iterator39=_createForOfIteratorHelper(n),_step39;try{for(_iterator39.s();!(_step39=_iterator39.n()).done;){var _o17=_step39.value;t.keystrokeHandler.set(_o17,function(t,n){_this46[_e32](),n();});}}catch(err){_iterator39.e(err);}finally{_iterator39.f();}};for(var _e32 in t.actions){_loop2(_e32);}}}_createClass(Pr,[{key:"first",get:function get(){return this.focusables.find(Lr)||null;}},{key:"last",get:function get(){return this.focusables.filter(Lr).slice(-1)[0]||null;}},{key:"next",get:function get(){return this._getFocusableItem(1);}},{key:"previous",get:function get(){return this._getFocusableItem(-1);}},{key:"current",get:function get(){var _this47=this;var t=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find(function(e,n){var o=e.element===_this47.focusTracker.focusedElement;return o&&(t=n),o;}),t);}},{key:"focusFirst",value:function focusFirst(){this._focus(this.first);}},{key:"focusLast",value:function focusLast(){this._focus(this.last);}},{key:"focusNext",value:function focusNext(){this._focus(this.next);}},{key:"focusPrevious",value:function focusPrevious(){this._focus(this.previous);}},{key:"_focus",value:function _focus(t){t&&t.focus();}},{key:"_getFocusableItem",value:function _getFocusableItem(t){var e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];var o=(e+n+t)%n;do{var _e33=this.focusables.get(o);if(Lr(_e33))return _e33;o=(o+n+t)%n;}while(o!==e);return null;}}]);return Pr;}();function Lr(t){return!(!t.focus||!Jo(t.element));}var Or=/*#__PURE__*/function(_ji7){_inherits(Or,_ji7);var _super24=_createSuper(Or);function Or(t){var _this48;_classCallCheck(this,Or);_this48=_super24.call(this,t),_this48.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}});return _this48;}return _createClass(Or);}(ji);var Rr=/*#__PURE__*/function(_ji8){_inherits(Rr,_ji8);var _super25=_createSuper(Rr);function Rr(t){var _this49;_classCallCheck(this,Rr);_this49=_super25.call(this,t),_this49.setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}});return _this49;}return _createClass(Rr);}(ji);function jr(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]};}var Fr=/*#__PURE__*/function(_$){_inherits(Fr,_$);var _super26=_createSuper(Fr);function Fr(t){var _this50;_classCallCheck(this,Fr);_this50=_super26.call(this),_this50._disableStack=new Set(),_this50.editor=t,_this50.set("isEnabled",!0);return _this50;}_createClass(Fr,[{key:"forceDisabled",value:function forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Vr,{priority:"highest"}),this.isEnabled=!1);}},{key:"clearForceDisabled",value:function clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Vr),this.isEnabled=!0);}},{key:"destroy",value:function destroy(){this.stopListening();}}],[{key:"isContextPlugin",get:function get(){return!1;}}]);return Fr;}($());function Vr(t){t.return=!1,t.stop();}var Hr=/*#__PURE__*/function(_$2){_inherits(Hr,_$2);var _super27=_createSuper(Hr);function Hr(t){var _this51;_classCallCheck(this,Hr);_this51=_super27.call(this),_this51.editor=t,_this51.set("value",void 0),_this51.set("isEnabled",!1),_this51._affectsData=!0,_this51._disableStack=new Set(),_this51.decorate("execute"),_this51.listenTo(_this51.editor.model.document,"change",function(){_this51.refresh();}),_this51.on("execute",function(t){_this51.isEnabled||t.stop();},{priority:"high"}),_this51.listenTo(t,"change:isReadOnly",function(t,e,n){n&&_this51.affectsData?_this51.forceDisabled("readOnlyMode"):_this51.clearForceDisabled("readOnlyMode");});return _this51;}_createClass(Hr,[{key:"affectsData",get:function get(){return this._affectsData;},set:function set(t){this._affectsData=t;}},{key:"refresh",value:function refresh(){this.isEnabled=!0;}},{key:"forceDisabled",value:function forceDisabled(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",Ur,{priority:"highest"}),this.isEnabled=!1);}},{key:"clearForceDisabled",value:function clearForceDisabled(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",Ur),this.refresh());}},{key:"execute",value:function execute(){}},{key:"destroy",value:function destroy(){this.stopListening();}}]);return Hr;}($());function Ur(t){t.return=!1,t.stop();}var Wr=/*#__PURE__*/function(_Hr){_inherits(Wr,_Hr);var _super28=_createSuper(Wr);function Wr(){var _this52;_classCallCheck(this,Wr);_this52=_super28.apply(this,arguments),_this52._childCommandsDefinitions=[];return _this52;}_createClass(Wr,[{key:"refresh",value:function refresh(){}},{key:"execute",value:function execute(){var e=this._getFirstEnabledCommand();for(var _len10=arguments.length,t=new Array(_len10),_key10=0;_key10<_len10;_key10++){t[_key10]=arguments[_key10];}return!!e&&e.execute(t);}},{key:"registerChildCommand",value:function registerChildCommand(t){var _this53=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};w(this._childCommandsDefinitions,{command:t,priority:e.priority||"normal"}),t.on("change:isEnabled",function(){return _this53._checkEnabled();}),this._checkEnabled();}},{key:"_checkEnabled",value:function _checkEnabled(){this.isEnabled=!!this._getFirstEnabledCommand();}},{key:"_getFirstEnabledCommand",value:function _getFirstEnabledCommand(){var t=this._childCommandsDefinitions.find(function(_ref17){var t=_ref17.command;return t.isEnabled;});return t&&t.command;}}]);return Wr;}(Hr);var Gr=/*#__PURE__*/function(_B4,_Symbol$iterator2){_inherits(Gr,_B4);var _super29=_createSuper(Gr);function Gr(t){var _this54;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];_classCallCheck(this,Gr);_this54=_super29.call(this),_this54._plugins=new Map(),_this54._context=t,_this54._availablePlugins=new Map();var _iterator40=_createForOfIteratorHelper(e),_step40;try{for(_iterator40.s();!(_step40=_iterator40.n()).done;){var _t45=_step40.value;_t45.pluginName&&_this54._availablePlugins.set(_t45.pluginName,_t45);}}catch(err){_iterator40.e(err);}finally{_iterator40.f();}_this54._contextPlugins=new Map();var _iterator41=_createForOfIteratorHelper(n),_step41;try{for(_iterator41.s();!(_step41=_iterator41.n()).done;){var _step41$value=_slicedToArray(_step41.value,2),_t46=_step41$value[0],_e34=_step41$value[1];_this54._contextPlugins.set(_t46,_e34),_this54._contextPlugins.set(_e34,_t46),_t46.pluginName&&_this54._availablePlugins.set(_t46.pluginName,_t46);}}catch(err){_iterator41.e(err);}finally{_iterator41.f();}return _this54;}_createClass(Gr,[{key:_Symbol$iterator2,value:/*#__PURE__*/_regeneratorRuntime().mark(function value(){var _iterator42,_step42,_t47;return _regeneratorRuntime().wrap(function value$(_context5){while(1)switch(_context5.prev=_context5.next){case 0:_iterator42=_createForOfIteratorHelper(this._plugins);_context5.prev=1;_iterator42.s();case 3:if((_step42=_iterator42.n()).done){_context5.next=11;break;}_t47=_step42.value;_context5.t0="function"==typeof _t47[0];if(!_context5.t0){_context5.next=9;break;}_context5.next=9;return _t47;case 9:_context5.next=3;break;case 11:_context5.next=16;break;case 13:_context5.prev=13;_context5.t1=_context5["catch"](1);_iterator42.e(_context5.t1);case 16:_context5.prev=16;_iterator42.f();return _context5.finish(16);case 19:case"end":return _context5.stop();}},value,this,[[1,13,16,19]]);})},{key:"get",value:function get(t){var e=this._plugins.get(t);if(!e){var _e35=t;throw"function"==typeof t&&(_e35=t.pluginName||t.name),new _("plugincollection-plugin-not-loaded",this._context,{plugin:_e35});}return e;}},{key:"has",value:function has(t){return this._plugins.has(t);}},{key:"init",value:function init(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:[];var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:[];var o=this,i=this._context;!function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set();e.forEach(function(e){a(e)&&(n.has(e)||(n.add(e),e.pluginName&&!o._availablePlugins.has(e.pluginName)&&o._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)));});}(t),u(t);var r=_toConsumableArray(function t(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set();return e.map(function(t){return a(t)?t:o._availablePlugins.get(t);}).reduce(function(e,o){return n.has(o)?e:(n.add(o),o.requires&&(u(o.requires,o),t(o.requires,n).forEach(function(t){return e.add(t);})),e.add(o));},new Set());}(t.filter(function(t){return!c(t,e);})));!function(t,e){var _iterator43=_createForOfIteratorHelper(e),_step43;try{for(_iterator43.s();!(_step43=_iterator43.n()).done;){var _n26=_step43.value;if("function"!=typeof _n26)throw new _("plugincollection-replace-plugin-invalid-type",null,{pluginItem:_n26});var _e36=_n26.pluginName;if(!_e36)throw new _("plugincollection-replace-plugin-missing-name",null,{pluginItem:_n26});if(_n26.requires&&_n26.requires.length)throw new _("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:_e36});var _i18=o._availablePlugins.get(_e36);if(!_i18)throw new _("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:_e36});var _r7=t.indexOf(_i18);if(-1===_r7){if(o._contextPlugins.has(_i18))return;throw new _("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:_e36});}if(_i18.requires&&_i18.requires.length)throw new _("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:_e36});t.splice(_r7,1,_n26),o._availablePlugins.set(_e36,_n26);}}catch(err){_iterator43.e(err);}finally{_iterator43.f();}}(r,n);var s=function(t){return t.map(function(t){var e=o._contextPlugins.get(t);return e=e||new t(i),o._add(t,e),e;});}(r);return h(s,"init").then(function(){return h(s,"afterInit");}).then(function(){return s;});function a(t){return"function"==typeof t;}function l(t){return a(t)&&!!t.isContextPlugin;}function c(t,e){return e.some(function(e){return e===t||d(t)===e||d(e)===t;});}function d(t){return a(t)?t.pluginName||t.name:t;}function u(t){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;t.map(function(t){return a(t)?t:o._availablePlugins.get(t)||t;}).forEach(function(t){!function(t,e){if(a(t))return;if(e)throw new _("plugincollection-soft-required",i,{missingPlugin:t,requiredBy:d(e)});throw new _("plugincollection-plugin-not-found",i,{plugin:t});}(t,n),function(t,e){if(!l(e))return;if(l(t))return;throw new _("plugincollection-context-required",i,{plugin:d(t),requiredBy:d(e)});}(t,n),function(t,n){if(!n)return;if(!c(t,e))return;throw new _("plugincollection-required",i,{plugin:d(t),requiredBy:d(n)});}(t,n);});}function h(t,e){return t.reduce(function(t,n){return n[e]?o._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t;},Promise.resolve());}}},{key:"destroy",value:function destroy(){var t=[];var _iterator44=_createForOfIteratorHelper(this),_step44;try{for(_iterator44.s();!(_step44=_iterator44.n()).done;){var _step44$value=_slicedToArray(_step44.value,2),_e37=_step44$value[1];"function"!=typeof _e37.destroy||this._contextPlugins.has(_e37)||t.push(_e37.destroy());}}catch(err){_iterator44.e(err);}finally{_iterator44.f();}return Promise.all(t);}},{key:"_add",value:function _add(t,e){this._plugins.set(t,e);var n=t.pluginName;if(n){if(this._plugins.has(n))throw new _("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e);}}}]);return Gr;}(B(),Symbol.iterator);var qr=/*#__PURE__*/function(){function qr(t){_classCallCheck(this,qr);this._contextOwner=null,this.config=new Eo(t,this.constructor.defaultConfig);var e=this.constructor.builtinPlugins;this.config.define("plugins",e),this.plugins=new Gr(this,e);var n=this.config.get("language")||{};this.locale=new yi({uiLanguage:"string"==typeof n?n:n.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new xi();}_createClass(qr,[{key:"initPlugins",value:function initPlugins(){var t=this.config.get("plugins")||[],e=this.config.get("substitutePlugins")||[];var _iterator45=_createForOfIteratorHelper(t.concat(e)),_step45;try{for(_iterator45.s();!(_step45=_iterator45.n()).done;){var _n27=_step45.value;if("function"!=typeof _n27)throw new _("context-initplugins-constructor-only",null,{Plugin:_n27});if(!0!==_n27.isContextPlugin)throw new _("context-initplugins-invalid-plugin",null,{Plugin:_n27});}}catch(err){_iterator45.e(err);}finally{_iterator45.f();}return this.plugins.init(t,[],e);}},{key:"destroy",value:function destroy(){var _this55=this;return Promise.all(Array.from(this.editors,function(t){return t.destroy();})).then(function(){return _this55.plugins.destroy();});}},{key:"_addEditor",value:function _addEditor(t,e){if(this._contextOwner)throw new _("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t);}},{key:"_removeEditor",value:function _removeEditor(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve();}},{key:"_getEditorConfig",value:function _getEditorConfig(){var t={};var _iterator46=_createForOfIteratorHelper(this.config.names()),_step46;try{for(_iterator46.s();!(_step46=_iterator46.n()).done;){var _e38=_step46.value;["plugins","removePlugins","extraPlugins"].includes(_e38)||(t[_e38]=this.config.get(_e38));}}catch(err){_iterator46.e(err);}finally{_iterator46.f();}return t;}}],[{key:"create",value:function create(t){var _this56=this;return new Promise(function(e){var n=new _this56(t);e(n.initPlugins().then(function(){return n;}));});}}]);return qr;}();var $r=/*#__PURE__*/function(_$3){_inherits($r,_$3);var _super30=_createSuper($r);function $r(t){var _this57;_classCallCheck(this,$r);_this57=_super30.call(this),_this57.context=t;return _this57;}_createClass($r,[{key:"destroy",value:function destroy(){this.stopListening();}}],[{key:"isContextPlugin",get:function get(){return!0;}}]);return $r;}($());var Kr=n(8894),Yr={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Kr.Z,Yr);Kr.Z.locals;var Qr=new WeakMap();function Zr(_ref18){var t=_ref18.view,e=_ref18.element,n=_ref18.text,_ref18$isDirectHost=_ref18.isDirectHost,o=_ref18$isDirectHost===void 0?!0:_ref18$isDirectHost,_ref18$keepOnFocus=_ref18.keepOnFocus,i=_ref18$keepOnFocus===void 0?!1:_ref18$keepOnFocus;var r=t.document;Qr.has(r)||(Qr.set(r,new Map()),r.registerPostFixer(function(t){return Xr(r,t);}),r.on("change:isComposing",function(){t.change(function(t){return Xr(r,t);});},{priority:"high"})),Qr.get(r).set(e,{text:n,isDirectHost:o,keepOnFocus:i,hostElement:o?e:null}),t.change(function(t){return Xr(r,t);});}function Jr(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0);}function Xr(t,e){var n=Qr.get(t),o=[];var i=!1;var _iterator47=_createForOfIteratorHelper(n),_step47;try{for(_iterator47.s();!(_step47=_iterator47.n()).done;){var _step47$value=_slicedToArray(_step47.value,2),_t48=_step47$value[0],_r8=_step47$value[1];_r8.isDirectHost&&(o.push(_t48),ts(e,_t48,_r8)&&(i=!0));}}catch(err){_iterator47.e(err);}finally{_iterator47.f();}var _iterator48=_createForOfIteratorHelper(n),_step48;try{for(_iterator48.s();!(_step48=_iterator48.n()).done;){var _step48$value=_slicedToArray(_step48.value,2),_t49=_step48$value[0],_r9=_step48$value[1];if(_r9.isDirectHost)continue;var _n28=es(_t49);_n28&&(o.includes(_n28)||(_r9.hostElement=_n28,ts(e,_t49,_r9)&&(i=!0)));}}catch(err){_iterator48.e(err);}finally{_iterator48.f();}return i;}function ts(t,e,n){var o=n.text,i=n.isDirectHost,r=n.hostElement;var s=!1;r.getAttribute("data-placeholder")!==o&&(t.setAttribute("data-placeholder",o,r),s=!0);return(i||1==e.childCount)&&function(t,e){if(!t.isAttached())return!1;var n=Array.from(t.getChildren()).some(function(t){return!t.is("uiElement");});if(n)return!1;var o=t.document,i=o.selection.anchor;return!(o.isComposing&&i&&i.parent===t||!e&&o.isFocused&&(!i||i.parent===t));}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0);}(t,r)&&(s=!0):Jr(t,r)&&(s=!0),s;}function es(t){if(t.childCount){var _e39=t.getChild(0);if(_e39.is("element")&&!_e39.is("uiElement")&&!_e39.is("attributeElement"))return _e39;}return null;}var ns=/*#__PURE__*/function(){function ns(){_classCallCheck(this,ns);}_createClass(ns,[{key:"is",value:function is(){throw new Error("is() method is abstract");}}]);return ns;}();var os=function os(t){return vo(t,4);};var is=/*#__PURE__*/function(_B5){_inherits(is,_B5);var _super31=_createSuper(is);function is(t){var _this58;_classCallCheck(this,is);_this58=_super31.call(this),_this58.document=t,_this58.parent=null;return _this58;}_createClass(is,[{key:"index",get:function get(){var t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new _("view-node-not-found-in-parent",this);return t;}},{key:"nextSibling",get:function get(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null;}},{key:"previousSibling",get:function get(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null;}},{key:"root",get:function get(){var t=this;for(;t.parent;)t=t.parent;return t;}},{key:"isAttached",value:function isAttached(){return this.root.is("rootElement");}},{key:"getPath",value:function getPath(){var t=[];var e=this;for(;e.parent;)t.unshift(e.index),e=e.parent;return t;}},{key:"getAncestors",value:function getAncestors(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=[];var n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e;}},{key:"getCommonAncestor",value:function getCommonAncestor(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.getAncestors(e),o=t.getAncestors(e);var i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1];}},{key:"isBefore",value:function isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),o=et(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o]<n[o];}}},{key:"isAfter",value:function isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t);}},{key:"_remove",value:function _remove(){this.parent._removeChildren(this.index);}},{key:"_fireChange",value:function _fireChange(t,e){this.fire("change:".concat(t),e),this.parent&&this.parent._fireChange(t,e);}},{key:"toJSON",value:function toJSON(){var t=os(this);return delete t.parent,t;}}]);return is;}(B(ns));is.prototype.is=function(t){return"node"===t||"view:node"===t;};var rs=/*#__PURE__*/function(_is){_inherits(rs,_is);var _super32=_createSuper(rs);function rs(t,e){var _this59;_classCallCheck(this,rs);_this59=_super32.call(this,t),_this59._textData=e;return _this59;}_createClass(rs,[{key:"data",get:function get(){return this._textData;}},{key:"_data",get:function get(){return this.data;},set:function set(t){this._fireChange("text",this),this._textData=t;}},{key:"isSimilar",value:function isSimilar(t){return t instanceof rs&&(this===t||this.data===t.data);}},{key:"_clone",value:function _clone(){return new rs(this.document,this.data);}}]);return rs;}(is);rs.prototype.is=function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t;};var ss=/*#__PURE__*/function(_ns){_inherits(ss,_ns);var _super33=_createSuper(ss);function ss(t,e,n){var _this60;_classCallCheck(this,ss);if(_this60=_super33.call(this),_this60.textNode=t,e<0||e>t.data.length)throw new _("view-textproxy-wrong-offsetintext",_assertThisInitialized(_this60));if(n<0||e+n>t.data.length)throw new _("view-textproxy-wrong-length",_assertThisInitialized(_this60));_this60.data=t.data.substring(e,e+n),_this60.offsetInText=e;return _possibleConstructorReturn(_this60);}_createClass(ss,[{key:"offsetSize",get:function get(){return this.data.length;}},{key:"isPartial",get:function get(){return this.data.length!==this.textNode.data.length;}},{key:"parent",get:function get(){return this.textNode.parent;}},{key:"root",get:function get(){return this.textNode.root;}},{key:"document",get:function get(){return this.textNode.document;}},{key:"getAncestors",value:function getAncestors(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=[];var n=t.includeSelf?this.textNode:this.parent;for(;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e;}}]);return ss;}(ns);ss.prototype.is=function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t;};var as=/*#__PURE__*/function(){function as(){_classCallCheck(this,as);this._patterns=[],this.add.apply(this,arguments);}_createClass(as,[{key:"add",value:function add(){for(var _len11=arguments.length,t=new Array(_len11),_key11=0;_key11<_len11;_key11++){t[_key11]=arguments[_key11];}for(var _i19=0,_t50=t;_i19<_t50.length;_i19++){var _e40=_t50[_i19];("string"==typeof _e40||_e40 instanceof RegExp)&&(_e40={name:_e40}),this._patterns.push(_e40);}}},{key:"match",value:function match(){for(var _len12=arguments.length,t=new Array(_len12),_key12=0;_key12<_len12;_key12++){t[_key12]=arguments[_key12];}for(var _i20=0,_t51=t;_i20<_t51.length;_i20++){var _e41=_t51[_i20];var _iterator49=_createForOfIteratorHelper(this._patterns),_step49;try{for(_iterator49.s();!(_step49=_iterator49.n()).done;){var _t52=_step49.value;var _n29=ls(_e41,_t52);if(_n29)return{element:_e41,pattern:_t52,match:_n29};}}catch(err){_iterator49.e(err);}finally{_iterator49.f();}}return null;}},{key:"matchAll",value:function matchAll(){var e=[];for(var _len13=arguments.length,t=new Array(_len13),_key13=0;_key13<_len13;_key13++){t[_key13]=arguments[_key13];}for(var _i21=0,_t53=t;_i21<_t53.length;_i21++){var _n30=_t53[_i21];var _iterator50=_createForOfIteratorHelper(this._patterns),_step50;try{for(_iterator50.s();!(_step50=_iterator50.n()).done;){var _t54=_step50.value;var _o18=ls(_n30,_t54);_o18&&e.push({element:_n30,pattern:_t54,match:_o18});}}catch(err){_iterator50.e(err);}finally{_iterator50.f();}}return e.length>0?e:null;}},{key:"getElementName",value:function getElementName(){if(1!==this._patterns.length)return null;var t=this._patterns[0],e=t.name;return"function"==typeof t||!e||e instanceof RegExp?null:e;}}]);return as;}();function ls(t,e){if("function"==typeof e)return e(t);var n={};return e.name&&(n.name=function(t,e){if(t instanceof RegExp)return!!e.match(t);return t===e;}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){var n=new Set(e.getAttributeKeys());Dt(t)?(void 0!==t.style&&C("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&C("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class"));return cs(t,n,function(t){return e.getAttribute(t);});}(e.attributes,t),!n.attributes)||e.classes&&(n.classes=function(t,e){return cs(t,e.getClassNames(),function(){});}(e.classes,t),!n.classes)||e.styles&&(n.styles=function(t,e){return cs(t,e.getStyleNames(!0),function(t){return e.getStyle(t);});}(e.styles,t),!n.styles)?null:n;}function cs(t,e,n){var o=function(t){if(Array.isArray(t))return t.map(function(t){return Dt(t)?(void 0!==t.key&&void 0!==t.value||C("matcher-pattern-missing-key-or-value",t),[t.key,t.value]):[t,!0];});if(Dt(t))return Object.entries(t);return[[t,!0]];}(t),i=Array.from(e),r=[];if(o.forEach(function(_ref19){var _ref20=_slicedToArray(_ref19,2),t=_ref20[0],e=_ref20[1];i.forEach(function(o){(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t);})(t,o)&&function(t,e,n){if(!0===t)return!0;var o=n(e);return t===o||t instanceof RegExp&&!!String(o).match(t);}(e,o,n)&&r.push(o);});}),o.length&&!(r.length<o.length))return r;}var ds=function ds(t){return"symbol"==_typeof(t)||kt(t)&&"[object Symbol]"==pt(t);};var us=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,hs=/^\w*$/;var gs=function gs(t,e){if(ft(t))return!1;var n=_typeof(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!ds(t))||hs.test(t)||!us.test(t)||null!=e&&t in Object(e);};function ms(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s;};return n.cache=new(ms.Cache||Ce)(),n;}ms.Cache=Ce;var ps=ms;var fs=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ks=/\\(\\)?/g,bs=function(t){var e=ps(t,function(t){return 500===n.size&&n.clear(),t;}),n=e.cache;return e;}(function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(fs,function(t,n,o,i){e.push(o?i.replace(ks,"$1"):n||t);}),e;});var ws=bs;var As=function As(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i;};var _s=st?st.prototype:void 0,Cs=_s?_s.toString:void 0;var vs=function t(e){if("string"==typeof e)return e;if(ft(e))return As(e,t)+"";if(ds(e))return Cs?Cs.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n;};var ys=function ys(t){return null==t?"":vs(t);};var xs=function xs(t,e){return ft(t)?t:gs(t,e)?[t]:ws(ys(t));};var Es=function Es(t){var e=null==t?0:t.length;return e?t[e-1]:void 0;};var Ds=function Ds(t){if("string"==typeof t||ds(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e;};var Ts=function Ts(t,e){for(var n=0,o=(e=xs(e,t)).length;null!=t&&n<o;)t=t[Ds(e[n++])];return n&&n==o?t:void 0;};var Ss=function Ss(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r;};var Is=function Is(t,e){return e.length<2?t:Ts(t,Ss(e,0,-1));};var Ms=function Ms(t,e){return e=xs(e,t),null==(t=Is(t,e))||delete t[Ds(Es(e))];};var Bs=function Bs(t,e){return null==t||Ms(t,e);};var Ns=function Ns(t,e,n){var o=null==t?void 0:Ts(t,e);return void 0===o?n:o;};var zs=function zs(t,e,n){(void 0!==n&&!St(t[e],n)||void 0===n&&!(e in t))&&Te(t,e,n);};var Ps=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break;}return e;};}();var Ls=function Ls(t){return kt(t)&&cn(t);};var Os=function Os(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e];};var Rs=function Rs(t){return Me(t,pn(t));};var js=function js(t,e,n,o,i,r,s){var a=Os(t,n),l=Os(e,n),c=s.get(l);if(c)zs(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,u=void 0===d;if(u){var h=ft(l),g=!h&&He(l),m=!h&&!g&&tn(l);d=l,h||g||m?ft(a)?d=a:Ls(a)?d=Cn(a):g?(u=!1,d=_n(l,!0)):m?(u=!1,d=ao(l,!0)):d=[]:Dt(l)||Oe(l)?(d=a,Oe(a)?d=Rs(a):F(a)&&!Ht(a)||(d=ho(l))):u=!1;}u&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),zs(t,n,d);}};var Fs=function t(e,n,o,i,r){e!==n&&Ps(n,function(s,a){if(r||(r=new xe()),F(s))js(e,n,a,o,t,i,r);else{var l=i?i(Os(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),zs(e,a,l);}},pn);};var Vs=function Vs(t){return t;};var Hs=function Hs(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2]);}return t.apply(e,n);};var Us=Math.max;var Ws=function Ws(t,e,n){return e=Us(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=Us(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),Hs(t,this,a);};};var Gs=function Gs(t){return function(){return t;};};var qs=De?function(t,e){return De(t,"toString",{configurable:!0,enumerable:!1,value:Gs(e),writable:!0});}:Vs;var $s=Date.now;var Ks=function Ks(t){var e=0,n=0;return function(){var o=$s(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0];}else e=0;return t.apply(void 0,arguments);};};var Ys=Ks(qs);var Qs=function Qs(t,e){return Ys(Ws(t,e,Vs),t+"");};var Zs=function Zs(t,e,n){if(!F(n))return!1;var o=_typeof(e);return!!("number"==o?cn(n)&&We(e,n.length):"string"==o&&e in n)&&St(n[e],t);};var Js=function Js(t){return Qs(function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Zs(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r);}return e;});};var Xs=Js(function(t,e,n){Fs(t,e,n);});var ta=function ta(t,e,n,o){if(!F(t))return t;for(var i=-1,r=(e=xs(e,t)).length,s=r-1,a=t;null!=a&&++i<r;){var l=Ds(e[i]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(i!=s){var d=a[l];void 0===(c=o?o(d,l,a):void 0)&&(c=F(d)?d:We(e[i+1])?[]:{});}Ie(a,l,c),a=a[l];}return t;};var ea=function ea(t,e,n){return null==t?t:ta(t,e,n);};var na=/*#__PURE__*/function(){function na(t){_classCallCheck(this,na);this._styles={},this._styleProcessor=t;}_createClass(na,[{key:"isEmpty",get:function get(){var t=Object.entries(this._styles);return!Array.from(t).length;}},{key:"size",get:function get(){return this.isEmpty?0:this.getStyleNames().length;}},{key:"setTo",value:function setTo(t){this.clear();var e=Array.from(function(t){var e=null,n=0,o=0,i=null;var r=new Map();if(""===t)return r;";"!=t.charAt(t.length-1)&&(t+=";");for(var _s3=0;_s3<t.length;_s3++){var _a3=t.charAt(_s3);if(null===e)switch(_a3){case":":i||(i=t.substr(n,_s3-n),o=_s3+1);break;case'"':case"'":e=_a3;break;case";":{var _e42=t.substr(o,_s3-o);i&&r.set(i.trim(),_e42.trim()),i=null,n=_s3+1;break;}}else _a3===e&&(e=null);}return r;}(t).entries());for(var _i22=0,_e43=e;_i22<_e43.length;_i22++){var _e43$_i=_slicedToArray(_e43[_i22],2),_t55=_e43$_i[0],_n31=_e43$_i[1];this._styleProcessor.toNormalizedForm(_t55,_n31,this._styles);}}},{key:"has",value:function has(t){if(this.isEmpty)return!1;var e=this._styleProcessor.getReducedForm(t,this._styles).find(function(_ref21){var _ref22=_slicedToArray(_ref21,1),e=_ref22[0];return e===t;});return Array.isArray(e);}},{key:"set",value:function set(t,e){if(F(t))for(var _i23=0,_Object$entries=Object.entries(t);_i23<_Object$entries.length;_i23++){var _Object$entries$_i=_slicedToArray(_Object$entries[_i23],2),_e44=_Object$entries$_i[0],_n32=_Object$entries$_i[1];this._styleProcessor.toNormalizedForm(_e44,_n32,this._styles);}else this._styleProcessor.toNormalizedForm(t,e,this._styles);}},{key:"remove",value:function remove(t){var e=ia(t);Bs(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e);}},{key:"getNormalized",value:function getNormalized(t){return this._styleProcessor.getNormalized(t,this._styles);}},{key:"toString",value:function toString(){return this.isEmpty?"":this._getStylesEntries().map(function(t){return t.join(":");}).sort().join(";")+";";}},{key:"getAsString",value:function getAsString(t){if(this.isEmpty)return;if(this._styles[t]&&!F(this._styles[t]))return this._styles[t];var e=this._styleProcessor.getReducedForm(t,this._styles).find(function(_ref23){var _ref24=_slicedToArray(_ref23,1),e=_ref24[0];return e===t;});return Array.isArray(e)?e[1]:void 0;}},{key:"getStyleNames",value:function getStyleNames(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;if(this.isEmpty)return[];if(t)return this._styleProcessor.getStyleNames(this._styles);return this._getStylesEntries().map(function(_ref25){var _ref26=_slicedToArray(_ref25,1),t=_ref26[0];return t;});}},{key:"clear",value:function clear(){this._styles={};}},{key:"_getStylesEntries",value:function _getStylesEntries(){var t=[],e=Object.keys(this._styles);for(var _i24=0,_e45=e;_i24<_e45.length;_i24++){var _n33=_e45[_i24];t.push.apply(t,_toConsumableArray(this._styleProcessor.getReducedForm(_n33,this._styles)));}return t;}},{key:"_cleanEmptyObjectsOnPath",value:function _cleanEmptyObjectsOnPath(t){var e=t.split(".");if(!(e.length>1))return;var n=e.splice(0,e.length-1).join("."),o=Ns(this._styles,n);if(!o)return;!Array.from(Object.keys(o)).length&&this.remove(n);}}]);return na;}();var oa=/*#__PURE__*/function(){function oa(){_classCallCheck(this,oa);this._normalizers=new Map(),this._extractors=new Map(),this._reducers=new Map(),this._consumables=new Map();}_createClass(oa,[{key:"toNormalizedForm",value:function toNormalizedForm(t,e,n){if(F(e))ra(n,ia(t),e);else if(this._normalizers.has(t)){var _o20=this._normalizers.get(t),_o19=_o20(e),_i25=_o19.path,_r10=_o19.value;ra(n,_i25,_r10);}else ra(n,t,e);}},{key:"getNormalized",value:function getNormalized(t,e){if(!t)return Xs({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){var _n34=this._extractors.get(t);if("string"==typeof _n34)return Ns(e,_n34);var _o21=_n34(t,e);if(_o21)return _o21;}return Ns(e,ia(t));}},{key:"getReducedForm",value:function getReducedForm(t,e){var n=this.getNormalized(t,e);if(void 0===n)return[];if(this._reducers.has(t)){return this._reducers.get(t)(n);}return[[t,n]];}},{key:"getStyleNames",value:function getStyleNames(t){var _this61=this;var e=Array.from(this._consumables.keys()).filter(function(e){var n=_this61.getNormalized(e,t);return n&&"object"==_typeof(n)?Object.keys(n).length:n;}),n=new Set([].concat(_toConsumableArray(e),_toConsumableArray(Object.keys(t))));return Array.from(n.values());}},{key:"getRelatedStyles",value:function getRelatedStyles(t){return this._consumables.get(t)||[];}},{key:"setNormalizer",value:function setNormalizer(t,e){this._normalizers.set(t,e);}},{key:"setExtractor",value:function setExtractor(t,e){this._extractors.set(t,e);}},{key:"setReducer",value:function setReducer(t,e){this._reducers.set(t,e);}},{key:"setStyleRelation",value:function setStyleRelation(t,e){this._mapStyleNames(t,e);var _iterator51=_createForOfIteratorHelper(e),_step51;try{for(_iterator51.s();!(_step51=_iterator51.n()).done;){var _n35=_step51.value;this._mapStyleNames(_n35,[t]);}}catch(err){_iterator51.e(err);}finally{_iterator51.f();}}},{key:"_mapStyleNames",value:function _mapStyleNames(t,e){var _this$_consumables$ge;this._consumables.has(t)||this._consumables.set(t,[]),(_this$_consumables$ge=this._consumables.get(t)).push.apply(_this$_consumables$ge,_toConsumableArray(e));}}]);return oa;}();function ia(t){return t.replace("-",".");}function ra(t,e,n){var o=n;F(n)&&(o=Xs({},Ns(t,e),n)),ea(t,e,o);}var sa=/*#__PURE__*/function(_is2){_inherits(sa,_is2);var _super34=_createSuper(sa);function sa(t,e,n,o){var _this62;_classCallCheck(this,sa);if(_this62=_super34.call(this,t),_this62._unsafeAttributesToRender=[],_this62._customProperties=new Map(),_this62.name=e,_this62._attrs=function(t){var e=Si(t);var _iterator52=_createForOfIteratorHelper(e),_step52;try{for(_iterator52.s();!(_step52=_iterator52.n()).done;){var _step52$value=_slicedToArray(_step52.value,2),_t56=_step52$value[0],_n36=_step52$value[1];null===_n36?e.delete(_t56):"string"!=typeof _n36&&e.set(_t56,String(_n36));}}catch(err){_iterator52.e(err);}finally{_iterator52.f();}return e;}(n),_this62._children=[],o&&_this62._insertChild(0,o),_this62._classes=new Set(),_this62._attrs.has("class")){var _t57=_this62._attrs.get("class");aa(_this62._classes,_t57),_this62._attrs.delete("class");}_this62._styles=new na(_this62.document.stylesProcessor),_this62._attrs.has("style")&&(_this62._styles.setTo(_this62._attrs.get("style")),_this62._attrs.delete("style"));return _possibleConstructorReturn(_this62);}_createClass(sa,[{key:"childCount",get:function get(){return this._children.length;}},{key:"isEmpty",get:function get(){return 0===this._children.length;}},{key:"getChild",value:function getChild(t){return this._children[t];}},{key:"getChildIndex",value:function getChildIndex(t){return this._children.indexOf(t);}},{key:"getChildren",value:function getChildren(){return this._children[Symbol.iterator]();}},{key:"getAttributeKeys",value:/*#__PURE__*/_regeneratorRuntime().mark(function getAttributeKeys(){return _regeneratorRuntime().wrap(function getAttributeKeys$(_context6){while(1)switch(_context6.prev=_context6.next){case 0:_context6.t0=this._classes.size>0;if(!_context6.t0){_context6.next=4;break;}_context6.next=4;return"class";case 4:_context6.t1=this._styles.isEmpty;if(_context6.t1){_context6.next=8;break;}_context6.next=8;return"style";case 8:return _context6.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return _context6.stop();}},getAttributeKeys,this);})},{key:"getAttributes",value:/*#__PURE__*/_regeneratorRuntime().mark(function getAttributes(){return _regeneratorRuntime().wrap(function getAttributes$(_context7){while(1)switch(_context7.prev=_context7.next){case 0:return _context7.delegateYield(this._attrs.entries(),"t0",1);case 1:_context7.t1=this._classes.size>0;if(!_context7.t1){_context7.next=5;break;}_context7.next=5;return["class",this.getAttribute("class")];case 5:_context7.t2=this._styles.isEmpty;if(_context7.t2){_context7.next=9;break;}_context7.next=9;return["style",this.getAttribute("style")];case 9:case"end":return _context7.stop();}},getAttributes,this);})},{key:"getAttribute",value:function getAttribute(t){if("class"==t)return this._classes.size>0?_toConsumableArray(this._classes).join(" "):void 0;if("style"==t){var _t58=this._styles.toString();return""==_t58?void 0:_t58;}return this._attrs.get(t);}},{key:"hasAttribute",value:function hasAttribute(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t);}},{key:"isSimilar",value:function isSimilar(t){if(!(t instanceof sa))return!1;if(this===t)return!0;if(this.name!=t.name)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;var _iterator53=_createForOfIteratorHelper(this._attrs),_step53;try{for(_iterator53.s();!(_step53=_iterator53.n()).done;){var _step53$value=_slicedToArray(_step53.value,2),_e46=_step53$value[0],_n37=_step53$value[1];if(!t._attrs.has(_e46)||t._attrs.get(_e46)!==_n37)return!1;}}catch(err){_iterator53.e(err);}finally{_iterator53.f();}var _iterator54=_createForOfIteratorHelper(this._classes),_step54;try{for(_iterator54.s();!(_step54=_iterator54.n()).done;){var _e47=_step54.value;if(!t._classes.has(_e47))return!1;}}catch(err){_iterator54.e(err);}finally{_iterator54.f();}var _iterator55=_createForOfIteratorHelper(this._styles.getStyleNames()),_step55;try{for(_iterator55.s();!(_step55=_iterator55.n()).done;){var _e48=_step55.value;if(!t._styles.has(_e48)||t._styles.getAsString(_e48)!==this._styles.getAsString(_e48))return!1;}}catch(err){_iterator55.e(err);}finally{_iterator55.f();}return!0;}},{key:"hasClass",value:function hasClass(){for(var _len14=arguments.length,t=new Array(_len14),_key14=0;_key14<_len14;_key14++){t[_key14]=arguments[_key14];}for(var _i26=0,_t59=t;_i26<_t59.length;_i26++){var _e49=_t59[_i26];if(!this._classes.has(_e49))return!1;}return!0;}},{key:"getClassNames",value:function getClassNames(){return this._classes.keys();}},{key:"getStyle",value:function getStyle(t){return this._styles.getAsString(t);}},{key:"getNormalizedStyle",value:function getNormalizedStyle(t){return this._styles.getNormalized(t);}},{key:"getStyleNames",value:function getStyleNames(t){return this._styles.getStyleNames(t);}},{key:"hasStyle",value:function hasStyle(){for(var _len15=arguments.length,t=new Array(_len15),_key15=0;_key15<_len15;_key15++){t[_key15]=arguments[_key15];}for(var _i27=0,_t60=t;_i27<_t60.length;_i27++){var _e50=_t60[_i27];if(!this._styles.has(_e50))return!1;}return!0;}},{key:"findAncestor",value:function findAncestor(){for(var _len16=arguments.length,t=new Array(_len16),_key16=0;_key16<_len16;_key16++){t[_key16]=arguments[_key16];}var e=_construct(as,t);var n=this.parent;for(;n&&!n.is("documentFragment");){if(e.match(n))return n;n=n.parent;}return null;}},{key:"getCustomProperty",value:function getCustomProperty(t){return this._customProperties.get(t);}},{key:"getCustomProperties",value:/*#__PURE__*/_regeneratorRuntime().mark(function getCustomProperties(){return _regeneratorRuntime().wrap(function getCustomProperties$(_context8){while(1)switch(_context8.prev=_context8.next){case 0:return _context8.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return _context8.stop();}},getCustomProperties,this);})},{key:"getIdentity",value:function getIdentity(){var t=Array.from(this._classes).sort().join(","),e=this._styles.toString(),n=Array.from(this._attrs).map(function(t){return"".concat(t[0],"=\"").concat(t[1],"\"");}).sort().join(" ");return this.name+(""==t?"":" class=\"".concat(t,"\""))+(e?" style=\"".concat(e,"\""):"")+(""==n?"":" ".concat(n));}},{key:"shouldRenderUnsafeAttribute",value:function shouldRenderUnsafeAttribute(t){return this._unsafeAttributesToRender.includes(t);}},{key:"_clone",value:function _clone(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var e=[];if(t){var _iterator56=_createForOfIteratorHelper(this.getChildren()),_step56;try{for(_iterator56.s();!(_step56=_iterator56.n()).done;){var _n38=_step56.value;e.push(_n38._clone(t));}}catch(err){_iterator56.e(err);}finally{_iterator56.f();}}var n=new this.constructor(this.document,this.name,this._attrs,e);return n._classes=new Set(this._classes),n._styles.set(this._styles.getNormalized()),n._customProperties=new Map(this._customProperties),n.getFillerOffset=this.getFillerOffset,n._unsafeAttributesToRender=this._unsafeAttributesToRender,n;}},{key:"_appendChild",value:function _appendChild(t){return this._insertChild(this.childCount,t);}},{key:"_insertChild",value:function _insertChild(t,e){this._fireChange("children",this);var n=0;var o=function(t,e){if("string"==typeof e)return[new rs(t,e)];nt(e)||(e=[e]);return Array.from(e).map(function(e){return"string"==typeof e?new rs(t,e):e instanceof ss?new rs(t,e.data):e;});}(this.document,e);var _iterator57=_createForOfIteratorHelper(o),_step57;try{for(_iterator57.s();!(_step57=_iterator57.n()).done;){var _e51=_step57.value;null!==_e51.parent&&_e51._remove(),_e51.parent=this,_e51.document=this.document,this._children.splice(t,0,_e51),t++,n++;}}catch(err){_iterator57.e(err);}finally{_iterator57.f();}return n;}},{key:"_removeChildren",value:function _removeChildren(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;this._fireChange("children",this);for(var _n39=t;_n39<t+e;_n39++)this._children[_n39].parent=null;return this._children.splice(t,e);}},{key:"_setAttribute",value:function _setAttribute(t,e){var n=String(e);this._fireChange("attributes",this),"class"==t?aa(this._classes,n):"style"==t?this._styles.setTo(n):this._attrs.set(t,n);}},{key:"_removeAttribute",value:function _removeAttribute(t){return this._fireChange("attributes",this),"class"==t?this._classes.size>0&&(this._classes.clear(),!0):"style"==t?!this._styles.isEmpty&&(this._styles.clear(),!0):this._attrs.delete(t);}},{key:"_addClass",value:function _addClass(t){this._fireChange("attributes",this);var _iterator58=_createForOfIteratorHelper(Ai(t)),_step58;try{for(_iterator58.s();!(_step58=_iterator58.n()).done;){var _e52=_step58.value;this._classes.add(_e52);}}catch(err){_iterator58.e(err);}finally{_iterator58.f();}}},{key:"_removeClass",value:function _removeClass(t){this._fireChange("attributes",this);var _iterator59=_createForOfIteratorHelper(Ai(t)),_step59;try{for(_iterator59.s();!(_step59=_iterator59.n()).done;){var _e53=_step59.value;this._classes.delete(_e53);}}catch(err){_iterator59.e(err);}finally{_iterator59.f();}}},{key:"_setStyle",value:function _setStyle(t,e){this._fireChange("attributes",this),"string"!=typeof t?this._styles.set(t):this._styles.set(t,e);}},{key:"_removeStyle",value:function _removeStyle(t){this._fireChange("attributes",this);var _iterator60=_createForOfIteratorHelper(Ai(t)),_step60;try{for(_iterator60.s();!(_step60=_iterator60.n()).done;){var _e54=_step60.value;this._styles.remove(_e54);}}catch(err){_iterator60.e(err);}finally{_iterator60.f();}}},{key:"_setCustomProperty",value:function _setCustomProperty(t,e){this._customProperties.set(t,e);}},{key:"_removeCustomProperty",value:function _removeCustomProperty(t){return this._customProperties.delete(t);}}]);return sa;}(is);function aa(t,e){var n=e.split(/\s+/);t.clear(),n.forEach(function(e){return t.add(e);});}sa.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var la=/*#__PURE__*/function(_sa){_inherits(la,_sa);var _super35=_createSuper(la);function la(t,e,n,o){var _this63;_classCallCheck(this,la);_this63=_super35.call(this,t,e,n,o),_this63.getFillerOffset=ca;return _this63;}return _createClass(la);}(sa);function ca(){var t=_toConsumableArray(this.getChildren()),e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;var _iterator61=_createForOfIteratorHelper(t),_step61;try{for(_iterator61.s();!(_step61=_iterator61.n()).done;){var _e55=_step61.value;if(!_e55.is("uiElement"))return null;}}catch(err){_iterator61.e(err);}finally{_iterator61.f();}return this.childCount;}la.prototype.is=function(t,e){return e?e===this.name&&("containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var da=/*#__PURE__*/function(_$4){_inherits(da,_$4);var _super36=_createSuper(da);function da(t,e,n,o){var _this64;_classCallCheck(this,da);_this64=_super36.call(this,t,e,n,o),_this64.set("isReadOnly",!1),_this64.set("isFocused",!1),_this64.bind("isReadOnly").to(t),_this64.bind("isFocused").to(t,"isFocused",function(e){return e&&t.selection.editableElement==_assertThisInitialized(_this64);}),_this64.listenTo(t.selection,"change",function(){_this64.isFocused=t.isFocused&&t.selection.editableElement==_assertThisInitialized(_this64);});return _this64;}_createClass(da,[{key:"destroy",value:function destroy(){this.stopListening();}}]);return da;}($(la));da.prototype.is=function(t,e){return e?e===this.name&&("editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var ua=Symbol("rootName");var ha=/*#__PURE__*/function(_da){_inherits(ha,_da);var _super37=_createSuper(ha);function ha(t,e){var _this65;_classCallCheck(this,ha);_this65=_super37.call(this,t,e),_this65.rootName="main";return _this65;}_createClass(ha,[{key:"rootName",get:function get(){return this.getCustomProperty(ua);},set:function set(t){this._setCustomProperty(ua,t);}},{key:"_name",set:function set(t){this.name=t;}}]);return ha;}(da);ha.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t):"rootElement"===t||"view:rootElement"===t||"editableElement"===t||"view:editableElement"===t||"containerElement"===t||"view:containerElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var ga=/*#__PURE__*/function(_Symbol$iterator3){function ga(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,ga);if(!t.boundaries&&!t.startPosition)throw new _("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new _("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this._position=ma._createAt(t.startPosition):this._position=ma._createAt(t.boundaries["backward"==t.direction?"end":"start"]),this.direction=t.direction||"forward",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null;}_createClass(ga,[{key:_Symbol$iterator3,value:function value(){return this;}},{key:"position",get:function get(){return this._position;}},{key:"skip",value:function skip(t){var e,n;do{n=this.position,e=this.next();}while(!e.done&&t(e.value));e.done||(this._position=n);}},{key:"next",value:function next(){return"forward"==this.direction?this._next():this._previous();}},{key:"_next",value:function _next(){var t=this.position.clone();var e=this.position,n=t.parent;if(null===n.parent&&t.offset===n.childCount)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&t.offset==this.boundaries.end.offset)return{done:!0,value:void 0};var o;if(n instanceof rs){if(t.isAtEnd)return this._position=ma._createAfter(n),this._next();o=n.data[t.offset];}else o=n.getChild(t.offset);if(o instanceof sa)return this.shallow?t.offset++:t=new ma(o,0),this._position=t,this._formatReturnValue("elementStart",o,e,t,1);if(o instanceof rs){if(this.singleCharacters)return t=new ma(o,0),this._position=t,this._next();{var _n40,_i28=o.data.length;return o==this._boundaryEndParent?(_i28=this.boundaries.end.offset,_n40=new ss(o,0,_i28),t=ma._createAfter(_n40)):(_n40=new ss(o,0,o.data.length),t.offset++),this._position=t,this._formatReturnValue("text",_n40,e,t,_i28);}}if("string"==typeof o){var _o22;if(this.singleCharacters)_o22=1;else{_o22=(n===this._boundaryEndParent?this.boundaries.end.offset:n.data.length)-t.offset;}var _i29=new ss(n,t.offset,_o22);return t.offset+=_o22,this._position=t,this._formatReturnValue("text",_i29,e,t,_o22);}return t=ma._createAfter(n),this._position=t,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",n,e,t);}},{key:"_previous",value:function _previous(){var t=this.position.clone();var e=this.position,n=t.parent;if(null===n.parent&&0===t.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&t.offset==this.boundaries.start.offset)return{done:!0,value:void 0};var o;if(n instanceof rs){if(t.isAtStart)return this._position=ma._createBefore(n),this._previous();o=n.data[t.offset-1];}else o=n.getChild(t.offset-1);if(o instanceof sa)return this.shallow?(t.offset--,this._position=t,this._formatReturnValue("elementStart",o,e,t,1)):(t=new ma(o,o.childCount),this._position=t,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",o,e,t));if(o instanceof rs){if(this.singleCharacters)return t=new ma(o,o.data.length),this._position=t,this._previous();{var _n41,_i30=o.data.length;if(o==this._boundaryStartParent){var _e56=this.boundaries.start.offset;_n41=new ss(o,_e56,o.data.length-_e56),_i30=_n41.data.length,t=ma._createBefore(_n41);}else _n41=new ss(o,0,o.data.length),t.offset--;return this._position=t,this._formatReturnValue("text",_n41,e,t,_i30);}}if("string"==typeof o){var _o23;if(this.singleCharacters)_o23=1;else{var _e57=n===this._boundaryStartParent?this.boundaries.start.offset:0;_o23=t.offset-_e57;}t.offset-=_o23;var _i31=new ss(n,t.offset,_o23);return this._position=t,this._formatReturnValue("text",_i31,e,t,_o23);}return t=ma._createBefore(n),this._position=t,this._formatReturnValue("elementStart",n,e,t,1);}},{key:"_formatReturnValue",value:function _formatReturnValue(t,e,n,o,i){return e instanceof ss&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=ma._createAfter(e.textNode):(o=ma._createAfter(e.textNode),this._position=o)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=ma._createBefore(e.textNode):(o=ma._createBefore(e.textNode),this._position=o))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}};}}]);return ga;}(Symbol.iterator);var ma=/*#__PURE__*/function(_ns2){_inherits(ma,_ns2);var _super38=_createSuper(ma);function ma(t,e){var _this66;_classCallCheck(this,ma);_this66=_super38.call(this),_this66.parent=t,_this66.offset=e;return _this66;}_createClass(ma,[{key:"nodeAfter",get:function get(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null;}},{key:"nodeBefore",get:function get(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null;}},{key:"isAtStart",get:function get(){return 0===this.offset;}},{key:"isAtEnd",get:function get(){var t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t;}},{key:"root",get:function get(){return this.parent.root;}},{key:"editableElement",get:function get(){var t=this.parent;for(;!(t instanceof da);){if(!t.parent)return null;t=t.parent;}return t;}},{key:"getShiftedBy",value:function getShiftedBy(t){var e=ma._createAt(this),n=e.offset+t;return e.offset=n<0?0:n,e;}},{key:"getLastMatchingPosition",value:function getLastMatchingPosition(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e.startPosition=this;var n=new ga(e);return n.skip(t),n.position;}},{key:"getAncestors",value:function getAncestors(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0});}},{key:"getCommonAncestor",value:function getCommonAncestor(t){var e=this.getAncestors(),n=t.getAncestors();var o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1];}},{key:"isEqual",value:function isEqual(t){return this.parent==t.parent&&this.offset==t.offset;}},{key:"isBefore",value:function isBefore(t){return"before"==this.compareWith(t);}},{key:"isAfter",value:function isAfter(t){return"after"==this.compareWith(t);}},{key:"compareWith",value:function compareWith(t){if(this.root!==t.root)return"different";if(this.isEqual(t))return"same";var e=this.parent.is("node")?this.parent.getPath():[],n=t.parent.is("node")?t.parent.getPath():[];e.push(this.offset),n.push(t.offset);var o=et(e,n);switch(o){case"prefix":return"before";case"extension":return"after";default:return e[o]<n[o]?"before":"after";}}},{key:"getWalker",value:function getWalker(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return t.startPosition=this,new ga(t);}},{key:"clone",value:function clone(){return new ma(this.parent,this.offset);}}],[{key:"_createAt",value:function _createAt(t,e){if(t instanceof ma)return new this(t.parent,t.offset);{var _n42=t;if("end"==e)e=_n42.is("$text")?_n42.data.length:_n42.childCount;else{if("before"==e)return this._createBefore(_n42);if("after"==e)return this._createAfter(_n42);if(0!==e&&!e)throw new _("view-createpositionat-offset-required",_n42);}return new ma(_n42,e);}}},{key:"_createAfter",value:function _createAfter(t){if(t.is("$textProxy"))return new ma(t.textNode,t.offsetInText+t.data.length);if(!t.parent)throw new _("view-position-after-root",t,{root:t});return new ma(t.parent,t.index+1);}},{key:"_createBefore",value:function _createBefore(t){if(t.is("$textProxy"))return new ma(t.textNode,t.offsetInText);if(!t.parent)throw new _("view-position-before-root",t,{root:t});return new ma(t.parent,t.index);}}]);return ma;}(ns);ma.prototype.is=function(t){return"position"===t||"view:position"===t;};var pa=/*#__PURE__*/function(_ns3,_Symbol$iterator4){_inherits(pa,_ns3);var _super39=_createSuper(pa);function pa(t){var _this67;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;_classCallCheck(this,pa);_this67=_super39.call(this),_this67.start=t.clone(),_this67.end=e?e.clone():t.clone();return _this67;}_createClass(pa,[{key:_Symbol$iterator4,value:/*#__PURE__*/_regeneratorRuntime().mark(function value(){return _regeneratorRuntime().wrap(function value$(_context9){while(1)switch(_context9.prev=_context9.next){case 0:return _context9.delegateYield(new ga({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return _context9.stop();}},value,this);})},{key:"isCollapsed",get:function get(){return this.start.isEqual(this.end);}},{key:"isFlat",get:function get(){return this.start.parent===this.end.parent;}},{key:"root",get:function get(){return this.start.root;}},{key:"getEnlarged",value:function getEnlarged(){var t=this.start.getLastMatchingPosition(fa,{direction:"backward"}),e=this.end.getLastMatchingPosition(fa);return t.parent.is("$text")&&t.isAtStart&&(t=ma._createBefore(t.parent)),e.parent.is("$text")&&e.isAtEnd&&(e=ma._createAfter(e.parent)),new pa(t,e);}},{key:"getTrimmed",value:function getTrimmed(){var t=this.start.getLastMatchingPosition(fa);if(t.isAfter(this.end)||t.isEqual(this.end))return new pa(t,t);var e=this.end.getLastMatchingPosition(fa,{direction:"backward"});var n=t.nodeAfter,o=e.nodeBefore;return n&&n.is("$text")&&(t=new ma(n,0)),o&&o.is("$text")&&(e=new ma(o,o.data.length)),new pa(t,e);}},{key:"isEqual",value:function isEqual(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end);}},{key:"containsPosition",value:function containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end);}},{key:"containsRange",value:function containsRange(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),o=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&o;}},{key:"getDifference",value:function getDifference(t){var e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new pa(this.start,t.start)),this.containsPosition(t.end)&&e.push(new pa(t.end,this.end))):e.push(this.clone()),e;}},{key:"getIntersection",value:function getIntersection(t){if(this.isIntersecting(t)){var _e58=this.start,_n43=this.end;return this.containsPosition(t.start)&&(_e58=t.start),this.containsPosition(t.end)&&(_n43=t.end),new pa(_e58,_n43);}return null;}},{key:"getWalker",value:function getWalker(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return t.boundaries=this,new ga(t);}},{key:"getCommonAncestor",value:function getCommonAncestor(){return this.start.getCommonAncestor(this.end);}},{key:"getContainedElement",value:function getContainedElement(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return this.start.parent.is("$text")&&this.start.isAtEnd&&this.start.parent.nextSibling&&(t=this.start.parent.nextSibling),this.end.parent.is("$text")&&this.end.isAtStart&&this.end.parent.previousSibling&&(e=this.end.parent.previousSibling),t&&t.is("element")&&t===e?t:null;}},{key:"clone",value:function clone(){return new pa(this.start,this.end);}},{key:"getItems",value:function getItems(){var _this68=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return/*#__PURE__*/_regeneratorRuntime().mark(function _callee(){var e,_iterator62,_step62,_t61;return _regeneratorRuntime().wrap(function _callee$(_context10){while(1)switch(_context10.prev=_context10.next){case 0:t.boundaries=_this68,t.ignoreElementEnd=!0;e=new ga(t);_iterator62=_createForOfIteratorHelper(e);_context10.prev=3;_iterator62.s();case 5:if((_step62=_iterator62.n()).done){_context10.next=11;break;}_t61=_step62.value;_context10.next=9;return _t61.item;case 9:_context10.next=5;break;case 11:_context10.next=16;break;case 13:_context10.prev=13;_context10.t0=_context10["catch"](3);_iterator62.e(_context10.t0);case 16:_context10.prev=16;_iterator62.f();return _context10.finish(16);case 19:case"end":return _context10.stop();}},_callee,null,[[3,13,16,19]]);})();}},{key:"getPositions",value:function getPositions(){var _this69=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return/*#__PURE__*/_regeneratorRuntime().mark(function _callee2(){var e,_iterator63,_step63,_t62;return _regeneratorRuntime().wrap(function _callee2$(_context11){while(1)switch(_context11.prev=_context11.next){case 0:t.boundaries=_this69;e=new ga(t);_context11.next=4;return e.position;case 4:_iterator63=_createForOfIteratorHelper(e);_context11.prev=5;_iterator63.s();case 7:if((_step63=_iterator63.n()).done){_context11.next=13;break;}_t62=_step63.value;_context11.next=11;return _t62.nextPosition;case 11:_context11.next=7;break;case 13:_context11.next=18;break;case 15:_context11.prev=15;_context11.t0=_context11["catch"](5);_iterator63.e(_context11.t0);case 18:_context11.prev=18;_iterator63.f();return _context11.finish(18);case 21:case"end":return _context11.stop();}},_callee2,null,[[5,15,18,21]]);})();}},{key:"isIntersecting",value:function isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start);}}],[{key:"_createFromParentsAndOffsets",value:function _createFromParentsAndOffsets(t,e,n,o){return new this(new ma(t,e),new ma(n,o));}},{key:"_createFromPositionAndShift",value:function _createFromPositionAndShift(t,e){var n=t,o=t.getShiftedBy(e);return e>0?new this(n,o):new this(o,n);}},{key:"_createIn",value:function _createIn(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount);}},{key:"_createOn",value:function _createOn(t){var e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(ma._createBefore(t),e);}}]);return pa;}(ns,Symbol.iterator);function fa(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"));}pa.prototype.is=function(t){return"range"===t||"view:range"===t;};var ka=/*#__PURE__*/function(_B6){_inherits(ka,_B6);var _super40=_createSuper(ka);function ka(){var _this71;var _this70;_classCallCheck(this,ka);_this70=_super40.call(this),_this70._ranges=[],_this70._lastRangeBackward=!1,_this70._isFake=!1,_this70._fakeSelectionLabel="",arguments.length&&(_this71=_this70).setTo.apply(_this71,arguments);return _this70;}_createClass(ka,[{key:"isFake",get:function get(){return this._isFake;}},{key:"fakeSelectionLabel",get:function get(){return this._fakeSelectionLabel;}},{key:"anchor",get:function get(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone();}},{key:"focus",get:function get(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.start:t.end).clone();}},{key:"isCollapsed",get:function get(){return 1===this.rangeCount&&this._ranges[0].isCollapsed;}},{key:"rangeCount",get:function get(){return this._ranges.length;}},{key:"isBackward",get:function get(){return!this.isCollapsed&&this._lastRangeBackward;}},{key:"editableElement",get:function get(){return this.anchor?this.anchor.editableElement:null;}},{key:"getRanges",value:/*#__PURE__*/_regeneratorRuntime().mark(function getRanges(){var _iterator64,_step64,_t63;return _regeneratorRuntime().wrap(function getRanges$(_context12){while(1)switch(_context12.prev=_context12.next){case 0:_iterator64=_createForOfIteratorHelper(this._ranges);_context12.prev=1;_iterator64.s();case 3:if((_step64=_iterator64.n()).done){_context12.next=9;break;}_t63=_step64.value;_context12.next=7;return _t63.clone();case 7:_context12.next=3;break;case 9:_context12.next=14;break;case 11:_context12.prev=11;_context12.t0=_context12["catch"](1);_iterator64.e(_context12.t0);case 14:_context12.prev=14;_iterator64.f();return _context12.finish(14);case 17:case"end":return _context12.stop();}},getRanges,this,[[1,11,14,17]]);})},{key:"getFirstRange",value:function getFirstRange(){var t=null;var _iterator65=_createForOfIteratorHelper(this._ranges),_step65;try{for(_iterator65.s();!(_step65=_iterator65.n()).done;){var _e59=_step65.value;t&&!_e59.start.isBefore(t.start)||(t=_e59);}}catch(err){_iterator65.e(err);}finally{_iterator65.f();}return t?t.clone():null;}},{key:"getLastRange",value:function getLastRange(){var t=null;var _iterator66=_createForOfIteratorHelper(this._ranges),_step66;try{for(_iterator66.s();!(_step66=_iterator66.n()).done;){var _e60=_step66.value;t&&!_e60.end.isAfter(t.end)||(t=_e60);}}catch(err){_iterator66.e(err);}finally{_iterator66.f();}return t?t.clone():null;}},{key:"getFirstPosition",value:function getFirstPosition(){var t=this.getFirstRange();return t?t.start.clone():null;}},{key:"getLastPosition",value:function getLastPosition(){var t=this.getLastRange();return t?t.end.clone():null;}},{key:"isEqual",value:function isEqual(t){if(this.isFake!=t.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=t.fakeSelectionLabel)return!1;if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var _iterator67=_createForOfIteratorHelper(this._ranges),_step67;try{for(_iterator67.s();!(_step67=_iterator67.n()).done;){var _e61=_step67.value;var _n44=!1;var _iterator68=_createForOfIteratorHelper(t._ranges),_step68;try{for(_iterator68.s();!(_step68=_iterator68.n()).done;){var _o24=_step68.value;if(_e61.isEqual(_o24)){_n44=!0;break;}}}catch(err){_iterator68.e(err);}finally{_iterator68.f();}if(!_n44)return!1;}}catch(err){_iterator67.e(err);}finally{_iterator67.f();}return!0;}},{key:"isSimilar",value:function isSimilar(t){if(this.isBackward!=t.isBackward)return!1;var e=tt(this.getRanges());if(e!=tt(t.getRanges()))return!1;if(0==e)return!0;var _iterator69=_createForOfIteratorHelper(this.getRanges()),_step69;try{for(_iterator69.s();!(_step69=_iterator69.n()).done;){var _e62=_step69.value;_e62=_e62.getTrimmed();var _n45=!1;var _iterator70=_createForOfIteratorHelper(t.getRanges()),_step70;try{for(_iterator70.s();!(_step70=_iterator70.n()).done;){var _o25=_step70.value;if(_o25=_o25.getTrimmed(),_e62.start.isEqual(_o25.start)&&_e62.end.isEqual(_o25.end)){_n45=!0;break;}}}catch(err){_iterator70.e(err);}finally{_iterator70.f();}if(!_n45)return!1;}}catch(err){_iterator69.e(err);}finally{_iterator69.f();}return!0;}},{key:"getSelectedElement",value:function getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement();}},{key:"setTo",value:function setTo(){for(var _len17=arguments.length,t=new Array(_len17),_key17=0;_key17<_len17;_key17++){t[_key17]=arguments[_key17];}var e=t[0],n=t[1],o=t[2];if("object"==_typeof(n)&&(o=n,n=void 0),null===e)this._setRanges([]),this._setFakeOptions(o);else if(e instanceof ka||e instanceof ba)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof pa)this._setRanges([e],o&&o.backward),this._setFakeOptions(o);else if(e instanceof ma)this._setRanges([new pa(e)]),this._setFakeOptions(o);else if(e instanceof is){var _t64=!!o&&!!o.backward;var _i32;if(void 0===n)throw new _("view-selection-setto-required-second-parameter",this);_i32="in"==n?pa._createIn(e):"on"==n?pa._createOn(e):new pa(ma._createAt(e,n)),this._setRanges([_i32],_t64),this._setFakeOptions(o);}else{if(!nt(e))throw new _("view-selection-setto-not-selectable",this);this._setRanges(e,o&&o.backward),this._setFakeOptions(o);}this.fire("change");}},{key:"setFocus",value:function setFocus(t,e){if(null===this.anchor)throw new _("view-selection-setfocus-no-ranges",this);var n=ma._createAt(t,e);if("same"==n.compareWith(this.focus))return;var o=this.anchor;this._ranges.pop(),"before"==n.compareWith(o)?this._addRange(new pa(n,o),!0):this._addRange(new pa(o,n)),this.fire("change");}},{key:"_setRanges",value:function _setRanges(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;t=Array.from(t),this._ranges=[];var _iterator71=_createForOfIteratorHelper(t),_step71;try{for(_iterator71.s();!(_step71=_iterator71.n()).done;){var _e63=_step71.value;this._addRange(_e63);}}catch(err){_iterator71.e(err);}finally{_iterator71.f();}this._lastRangeBackward=!!e;}},{key:"_setFakeOptions",value:function _setFakeOptions(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||"";}},{key:"_addRange",value:function _addRange(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;if(!(t instanceof pa))throw new _("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e;}},{key:"_pushRange",value:function _pushRange(t){var _iterator72=_createForOfIteratorHelper(this._ranges),_step72;try{for(_iterator72.s();!(_step72=_iterator72.n()).done;){var _e64=_step72.value;if(t.isIntersecting(_e64))throw new _("view-selection-range-intersects",this,{addedRange:t,intersectingRange:_e64});}}catch(err){_iterator72.e(err);}finally{_iterator72.f();}this._ranges.push(new pa(t.start,t.end));}}]);return ka;}(B(ns));ka.prototype.is=function(t){return"selection"===t||"view:selection"===t;};var ba=/*#__PURE__*/function(_B7){_inherits(ba,_B7);var _super41=_createSuper(ba);function ba(){var _this72$_selection;var _this72;_classCallCheck(this,ba);_this72=_super41.call(this),_this72._selection=new ka(),_this72._selection.delegate("change").to(_assertThisInitialized(_this72)),arguments.length&&(_this72$_selection=_this72._selection).setTo.apply(_this72$_selection,arguments);return _this72;}_createClass(ba,[{key:"isFake",get:function get(){return this._selection.isFake;}},{key:"fakeSelectionLabel",get:function get(){return this._selection.fakeSelectionLabel;}},{key:"anchor",get:function get(){return this._selection.anchor;}},{key:"focus",get:function get(){return this._selection.focus;}},{key:"isCollapsed",get:function get(){return this._selection.isCollapsed;}},{key:"rangeCount",get:function get(){return this._selection.rangeCount;}},{key:"isBackward",get:function get(){return this._selection.isBackward;}},{key:"editableElement",get:function get(){return this._selection.editableElement;}},{key:"_ranges",get:function get(){return this._selection._ranges;}},{key:"getRanges",value:/*#__PURE__*/_regeneratorRuntime().mark(function getRanges(){return _regeneratorRuntime().wrap(function getRanges$(_context13){while(1)switch(_context13.prev=_context13.next){case 0:return _context13.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return _context13.stop();}},getRanges,this);})},{key:"getFirstRange",value:function getFirstRange(){return this._selection.getFirstRange();}},{key:"getLastRange",value:function getLastRange(){return this._selection.getLastRange();}},{key:"getFirstPosition",value:function getFirstPosition(){return this._selection.getFirstPosition();}},{key:"getLastPosition",value:function getLastPosition(){return this._selection.getLastPosition();}},{key:"getSelectedElement",value:function getSelectedElement(){return this._selection.getSelectedElement();}},{key:"isEqual",value:function isEqual(t){return this._selection.isEqual(t);}},{key:"isSimilar",value:function isSimilar(t){return this._selection.isSimilar(t);}},{key:"_setTo",value:function _setTo(){var _this$_selection;(_this$_selection=this._selection).setTo.apply(_this$_selection,arguments);}},{key:"_setFocus",value:function _setFocus(t,e){this._selection.setFocus(t,e);}}]);return ba;}(B(ns));ba.prototype.is=function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t;};var wa=/*#__PURE__*/function(_p2){_inherits(wa,_p2);var _super42=_createSuper(wa);function wa(t,e,n){var _this73;_classCallCheck(this,wa);_this73=_super42.call(this,t,e),_this73.startRange=n,_this73._eventPhase="none",_this73._currentTarget=null;return _this73;}_createClass(wa,[{key:"eventPhase",get:function get(){return this._eventPhase;}},{key:"currentTarget",get:function get(){return this._currentTarget;}}]);return wa;}(p);var Aa=Symbol("bubbling contexts");function _a(t){return/*#__PURE__*/function(_t65){_inherits(_class5,_t65);var _super43=_createSuper(_class5);function _class5(){_classCallCheck(this,_class5);return _super43.apply(this,arguments);}_createClass(_class5,[{key:"fire",value:function fire(t){try{var _n46=t instanceof p?t:new p(this,t),_o26=xa(this);if(!_o26.size)return;for(var _len18=arguments.length,e=new Array(_len18>1?_len18-1:0),_key18=1;_key18<_len18;_key18++){e[_key18-1]=arguments[_key18];}if(Ca(_n46,"capturing",this),va.apply(void 0,[_o26,"$capture",_n46].concat(e)))return _n46.return;var _i33=_n46.startRange||this.selection.getFirstRange(),_r11=_i33?_i33.getContainedElement():null,_s4=!!_r11&&Boolean(ya(_o26,_r11));var _a4=_r11||function(t){if(!t)return null;var e=t.start.parent,n=t.end.parent,o=e.getPath(),i=n.getPath();return o.length>i.length?e:n;}(_i33);if(Ca(_n46,"atTarget",_a4),!_s4){if(va.apply(void 0,[_o26,"$text",_n46].concat(e)))return _n46.return;Ca(_n46,"bubbling",_a4);}for(;_a4;){if(_a4.is("rootElement")){if(va.apply(void 0,[_o26,"$root",_n46].concat(e)))return _n46.return;}else if(_a4.is("element")&&va.apply(void 0,[_o26,_a4.name,_n46].concat(e)))return _n46.return;if(va.apply(void 0,[_o26,_a4,_n46].concat(e)))return _n46.return;_a4=_a4.parent,Ca(_n46,"bubbling",_a4);}return Ca(_n46,"bubbling",this),va.apply(void 0,[_o26,"$document",_n46].concat(e)),_n46.return;}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"_addEventListener",value:function _addEventListener(t,e,n){var o=Ai(n.context||"$document"),i=xa(this);var _iterator73=_createForOfIteratorHelper(o),_step73;try{for(_iterator73.s();!(_step73=_iterator73.n()).done;){var _r12=_step73.value;var _o27=i.get(_r12);_o27||(_o27=new(B())(),i.set(_r12,_o27)),this.listenTo(_o27,t,e,n);}}catch(err){_iterator73.e(err);}finally{_iterator73.f();}}},{key:"_removeEventListener",value:function _removeEventListener(t,e){var n=xa(this);var _iterator74=_createForOfIteratorHelper(n.values()),_step74;try{for(_iterator74.s();!(_step74=_iterator74.n()).done;){var _o28=_step74.value;this.stopListening(_o28,t,e);}}catch(err){_iterator74.e(err);}finally{_iterator74.f();}}}]);return _class5;}(t);}{var _t66=_a(Object);["fire","_addEventListener","_removeEventListener"].forEach(function(e){_a[e]=_t66.prototype[e];});}function Ca(t,e,n){t instanceof wa&&(t._eventPhase=e,t._currentTarget=n);}function va(t,e,n){var i="string"==typeof e?t.get(e):ya(t,e);for(var _len19=arguments.length,o=new Array(_len19>3?_len19-3:0),_key19=3;_key19<_len19;_key19++){o[_key19-3]=arguments[_key19];}return!!i&&(i.fire.apply(i,[n].concat(o)),n.stop.called);}function ya(t,e){var _iterator75=_createForOfIteratorHelper(t),_step75;try{for(_iterator75.s();!(_step75=_iterator75.n()).done;){var _step75$value=_slicedToArray(_step75.value,2),_n47=_step75$value[0],_o29=_step75$value[1];if("function"==typeof _n47&&_n47(e))return _o29;}}catch(err){_iterator75.e(err);}finally{_iterator75.f();}return null;}function xa(t){return t[Aa]||(t[Aa]=new Map()),t[Aa];}var Ea=/*#__PURE__*/function(_a5){_inherits(Ea,_a5);var _super44=_createSuper(Ea);function Ea(t){var _this74;_classCallCheck(this,Ea);_this74=_super44.call(this),_this74._postFixers=new Set(),_this74.selection=new ba(),_this74.roots=new xi({idProperty:"rootName"}),_this74.stylesProcessor=t,_this74.set("isReadOnly",!1),_this74.set("isFocused",!1),_this74.set("isSelecting",!1),_this74.set("isComposing",!1);return _this74;}_createClass(Ea,[{key:"getRoot",value:function getRoot(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"main";return this.roots.get(t);}},{key:"registerPostFixer",value:function registerPostFixer(t){this._postFixers.add(t);}},{key:"destroy",value:function destroy(){this.roots.map(function(t){return t.destroy();}),this.stopListening();}},{key:"_callPostFixers",value:function _callPostFixers(t){var e=!1;do{var _iterator76=_createForOfIteratorHelper(this._postFixers),_step76;try{for(_iterator76.s();!(_step76=_iterator76.n()).done;){var _n48=_step76.value;if(e=_n48(t),e)break;}}catch(err){_iterator76.e(err);}finally{_iterator76.f();}}while(e);}}]);return Ea;}(_a($()));var Da=/*#__PURE__*/function(_sa2){_inherits(Da,_sa2);var _super45=_createSuper(Da);function Da(t,e,n,o){var _this75;_classCallCheck(this,Da);_this75=_super45.call(this,t,e,n,o),_this75._priority=10,_this75._id=null,_this75._clonesGroup=null,_this75.getFillerOffset=Ta;return _this75;}_createClass(Da,[{key:"priority",get:function get(){return this._priority;}},{key:"id",get:function get(){return this._id;}},{key:"getElementsWithSameId",value:function getElementsWithSameId(){if(null===this.id)throw new _("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup);}},{key:"isSimilar",value:function isSimilar(t){return null!==this.id||null!==t.id?this.id===t.id:_get(_getPrototypeOf(Da.prototype),"isSimilar",this).call(this,t)&&this.priority==t.priority;}},{key:"_clone",value:function _clone(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var e=_get(_getPrototypeOf(Da.prototype),"_clone",this).call(this,t);return e._priority=this._priority,e._id=this._id,e;}}]);return Da;}(sa);function Ta(){if(Sa(this))return null;var t=this.parent;for(;t&&t.is("attributeElement");){if(Sa(t)>1)return null;t=t.parent;}return!t||Sa(t)>1?null:this.childCount;}function Sa(t){return Array.from(t.getChildren()).filter(function(t){return!t.is("uiElement");}).length;}Da.DEFAULT_PRIORITY=10,Da.prototype.is=function(t,e){return e?e===this.name&&("attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t):"attributeElement"===t||"view:attributeElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var Ia=/*#__PURE__*/function(_sa3){_inherits(Ia,_sa3);var _super46=_createSuper(Ia);function Ia(t,e,n,o){var _this76;_classCallCheck(this,Ia);_this76=_super46.call(this,t,e,n,o),_this76.getFillerOffset=Ma;return _this76;}_createClass(Ia,[{key:"_insertChild",value:function _insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new _("view-emptyelement-cannot-add",[this,e]);return 0;}}]);return Ia;}(sa);function Ma(){return null;}Ia.prototype.is=function(t,e){return e?e===this.name&&("emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t):"emptyElement"===t||"view:emptyElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var Ba=/*#__PURE__*/function(_sa4){_inherits(Ba,_sa4);var _super47=_createSuper(Ba);function Ba(t,e,n,o){var _this77;_classCallCheck(this,Ba);_this77=_super47.call(this,t,e,n,o),_this77.getFillerOffset=za;return _this77;}_createClass(Ba,[{key:"_insertChild",value:function _insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new _("view-uielement-cannot-add",[this,e]);return 0;}},{key:"render",value:function render(t,e){return this.toDomElement(t);}},{key:"toDomElement",value:function toDomElement(t){var e=t.createElement(this.name);var _iterator77=_createForOfIteratorHelper(this.getAttributeKeys()),_step77;try{for(_iterator77.s();!(_step77=_iterator77.n()).done;){var _t67=_step77.value;e.setAttribute(_t67,this.getAttribute(_t67));}}catch(err){_iterator77.e(err);}finally{_iterator77.f();}return e;}}]);return Ba;}(sa);function Na(t){t.document.on("arrowKey",function(e,n){return function(t,e,n){if(e.keyCode==mi.arrowright){var _t68=e.domTarget.ownerDocument.defaultView.getSelection(),_o30=1==_t68.rangeCount&&_t68.getRangeAt(0).collapsed;if(_o30||e.shiftKey){var _e65=_t68.focusNode,_i34=_t68.focusOffset,_r13=n.domPositionToView(_e65,_i34);if(null===_r13)return;var _s5=!1;var _a6=_r13.getLastMatchingPosition(function(t){return t.item.is("uiElement")&&(_s5=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement"));});if(_s5){var _e66=n.viewPositionToDom(_a6);_o30?_t68.collapse(_e66.parent,_e66.offset):_t68.extend(_e66.parent,_e66.offset);}}}}(0,n,t.domConverter);},{priority:"low"});}function za(){return null;}Ba.prototype.is=function(t,e){return e?e===this.name&&("uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t):"uiElement"===t||"view:uiElement"===t||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var Pa=/*#__PURE__*/function(_sa5){_inherits(Pa,_sa5);var _super48=_createSuper(Pa);function Pa(t,e,n,o){var _this78;_classCallCheck(this,Pa);_this78=_super48.call(this,t,e,n,o),_this78.getFillerOffset=La;return _this78;}_createClass(Pa,[{key:"_insertChild",value:function _insertChild(t,e){if(e&&(e instanceof is||Array.from(e).length>0))throw new _("view-rawelement-cannot-add",[this,e]);return 0;}},{key:"render",value:function render(t,e){}}]);return Pa;}(sa);function La(){return null;}Pa.prototype.is=function(t,e){return e?e===this.name&&("rawElement"===t||"view:rawElement"===t||"element"===t||"view:element"===t):"rawElement"===t||"view:rawElement"===t||t===this.name||t==="view:"+this.name||"element"===t||"view:element"===t||"node"===t||"view:node"===t;};var Oa=/*#__PURE__*/function(_B8,_Symbol$iterator5){_inherits(Oa,_B8);var _super49=_createSuper(Oa);function Oa(t,e){var _this79;_classCallCheck(this,Oa);_this79=_super49.call(this),_this79._children=[],_this79._customProperties=new Map(),_this79.document=t,e&&_this79._insertChild(0,e);return _this79;}_createClass(Oa,[{key:_Symbol$iterator5,value:function value(){return this._children[Symbol.iterator]();}},{key:"childCount",get:function get(){return this._children.length;}},{key:"isEmpty",get:function get(){return 0===this.childCount;}},{key:"root",get:function get(){return this;}},{key:"parent",get:function get(){return null;}},{key:"name",get:function get(){}},{key:"getCustomProperty",value:function getCustomProperty(t){return this._customProperties.get(t);}},{key:"getCustomProperties",value:/*#__PURE__*/_regeneratorRuntime().mark(function getCustomProperties(){return _regeneratorRuntime().wrap(function getCustomProperties$(_context14){while(1)switch(_context14.prev=_context14.next){case 0:return _context14.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return _context14.stop();}},getCustomProperties,this);})},{key:"_appendChild",value:function _appendChild(t){return this._insertChild(this.childCount,t);}},{key:"getChild",value:function getChild(t){return this._children[t];}},{key:"getChildIndex",value:function getChildIndex(t){return this._children.indexOf(t);}},{key:"getChildren",value:function getChildren(){return this._children[Symbol.iterator]();}},{key:"_insertChild",value:function _insertChild(t,e){this._fireChange("children",this);var n=0;var o=function(t,e){if("string"==typeof e)return[new rs(t,e)];nt(e)||(e=[e]);return Array.from(e).map(function(e){return"string"==typeof e?new rs(t,e):e instanceof ss?new rs(t,e.data):e;});}(this.document,e);var _iterator78=_createForOfIteratorHelper(o),_step78;try{for(_iterator78.s();!(_step78=_iterator78.n()).done;){var _e67=_step78.value;null!==_e67.parent&&_e67._remove(),_e67.parent=this,this._children.splice(t,0,_e67),t++,n++;}}catch(err){_iterator78.e(err);}finally{_iterator78.f();}return n;}},{key:"_removeChildren",value:function _removeChildren(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;this._fireChange("children",this);for(var _n49=t;_n49<t+e;_n49++)this._children[_n49].parent=null;return this._children.splice(t,e);}},{key:"_fireChange",value:function _fireChange(t,e){this.fire("change:"+t,e);}},{key:"_setCustomProperty",value:function _setCustomProperty(t,e){this._customProperties.set(t,e);}},{key:"_removeCustomProperty",value:function _removeCustomProperty(t){return this._customProperties.delete(t);}}]);return Oa;}(B(ns),Symbol.iterator);Oa.prototype.is=function(t){return"documentFragment"===t||"view:documentFragment"===t;};var Ra=/*#__PURE__*/function(){function Ra(t){_classCallCheck(this,Ra);this._cloneGroups=new Map(),this._slotFactory=null,this.document=t;}_createClass(Ra,[{key:"setSelection",value:function setSelection(){var _this$document$select;(_this$document$select=this.document.selection)._setTo.apply(_this$document$select,arguments);}},{key:"setSelectionFocus",value:function setSelectionFocus(t,e){this.document.selection._setFocus(t,e);}},{key:"createDocumentFragment",value:function createDocumentFragment(t){return new Oa(this.document,t);}},{key:"createText",value:function createText(t){return new rs(this.document,t);}},{key:"createAttributeElement",value:function createAttributeElement(t,e){var _o$_unsafeAttributesT;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=new Da(this.document,t,e);return"number"==typeof n.priority&&(o._priority=n.priority),n.id&&(o._id=n.id),n.renderUnsafeAttributes&&(_o$_unsafeAttributesT=o._unsafeAttributesToRender).push.apply(_o$_unsafeAttributesT,_toConsumableArray(n.renderUnsafeAttributes)),o;}},{key:"createContainerElement",value:function createContainerElement(t,e){var _r$_unsafeAttributesT;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=null;Dt(n)?o=n:i=n;var r=new la(this.document,t,e,i);return o.renderUnsafeAttributes&&(_r$_unsafeAttributesT=r._unsafeAttributesToRender).push.apply(_r$_unsafeAttributesT,_toConsumableArray(o.renderUnsafeAttributes)),r;}},{key:"createEditableElement",value:function createEditableElement(t,e){var _o$_unsafeAttributesT2;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=new da(this.document,t,e);return n.renderUnsafeAttributes&&(_o$_unsafeAttributesT2=o._unsafeAttributesToRender).push.apply(_o$_unsafeAttributesT2,_toConsumableArray(n.renderUnsafeAttributes)),o;}},{key:"createEmptyElement",value:function createEmptyElement(t,e){var _o$_unsafeAttributesT3;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=new Ia(this.document,t,e);return n.renderUnsafeAttributes&&(_o$_unsafeAttributesT3=o._unsafeAttributesToRender).push.apply(_o$_unsafeAttributesT3,_toConsumableArray(n.renderUnsafeAttributes)),o;}},{key:"createUIElement",value:function createUIElement(t,e,n){var o=new Ba(this.document,t,e);return n&&(o.render=n),o;}},{key:"createRawElement",value:function createRawElement(t,e,n){var _i$_unsafeAttributesT;var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=new Pa(this.document,t,e);return n&&(i.render=n),o.renderUnsafeAttributes&&(_i$_unsafeAttributesT=i._unsafeAttributesToRender).push.apply(_i$_unsafeAttributesT,_toConsumableArray(o.renderUnsafeAttributes)),i;}},{key:"setAttribute",value:function setAttribute(t,e,n){n._setAttribute(t,e);}},{key:"removeAttribute",value:function removeAttribute(t,e){e._removeAttribute(t);}},{key:"addClass",value:function addClass(t,e){e._addClass(t);}},{key:"removeClass",value:function removeClass(t,e){e._removeClass(t);}},{key:"setStyle",value:function setStyle(t,e,n){Dt(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e);}},{key:"removeStyle",value:function removeStyle(t,e){e._removeStyle(t);}},{key:"setCustomProperty",value:function setCustomProperty(t,e,n){n._setCustomProperty(t,e);}},{key:"removeCustomProperty",value:function removeCustomProperty(t,e){return e._removeCustomProperty(t);}},{key:"breakAttributes",value:function breakAttributes(t){return t instanceof ma?this._breakAttributes(t):this._breakAttributesRange(t);}},{key:"breakContainer",value:function breakContainer(t){var e=t.parent;if(!e.is("containerElement"))throw new _("view-writer-break-non-container-element",this.document);if(!e.parent)throw new _("view-writer-break-root",this.document);if(t.isAtStart)return ma._createBefore(e);if(!t.isAtEnd){var _n50=e._clone(!1);this.insert(ma._createAfter(e),_n50);var _o31=new pa(t,ma._createAt(e,"end")),_i35=new ma(_n50,0);this.move(_o31,_i35);}return ma._createAfter(e);}},{key:"mergeAttributes",value:function mergeAttributes(t){var e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){var _t69=n.parent,_e68=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new ma(_t69,_e68));}var o=n.getChild(e-1),i=n.getChild(e);if(!o||!i)return t;if(o.is("$text")&&i.is("$text"))return Ua(o,i);if(o.is("attributeElement")&&i.is("attributeElement")&&o.isSimilar(i)){var _t70=o.childCount;return o._appendChild(i.getChildren()),i._remove(),this._removeFromClonedElementsGroup(i),this.mergeAttributes(new ma(o,_t70));}return t;}},{key:"mergeContainers",value:function mergeContainers(t){var e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new _("view-writer-merge-containers-invalid-position",this.document);var o=e.getChild(e.childCount-1),i=o instanceof rs?ma._createAt(o,"end"):ma._createAt(e,"end");return this.move(pa._createIn(n),ma._createAt(e,"end")),this.remove(pa._createOn(n)),i;}},{key:"insert",value:function insert(t,e){Ga(e=nt(e)?_toConsumableArray(e):[e],this.document);var n=e.reduce(function(t,e){var n=t[t.length-1],o=!e.is("uiElement");return n&&n.breakAttributes==o?n.nodes.push(e):t.push({breakAttributes:o,nodes:[e]}),t;},[]);var o=null,i=t;var _iterator79=_createForOfIteratorHelper(n),_step79;try{for(_iterator79.s();!(_step79=_iterator79.n()).done;){var _step79$value=_step79.value,_t71=_step79$value.nodes,_e69=_step79$value.breakAttributes;var _n51=this._insertNodes(i,_t71,_e69);o||(o=_n51.start),i=_n51.end;}}catch(err){_iterator79.e(err);}finally{_iterator79.f();}return o?new pa(o,i):new pa(t);}},{key:"remove",value:function remove(t){var e=t instanceof pa?t:pa._createOn(t);if($a(e,this.document),e.isCollapsed)return new Oa(this.document);var _this$_breakAttribute=this._breakAttributesRange(e,!0),n=_this$_breakAttribute.start,o=_this$_breakAttribute.end,i=n.parent,r=o.offset-n.offset,s=i._removeChildren(n.offset,r);var _iterator80=_createForOfIteratorHelper(s),_step80;try{for(_iterator80.s();!(_step80=_iterator80.n()).done;){var _t72=_step80.value;this._removeFromClonedElementsGroup(_t72);}}catch(err){_iterator80.e(err);}finally{_iterator80.f();}var a=this.mergeAttributes(n);return e.start=a,e.end=a.clone(),new Oa(this.document,s);}},{key:"clear",value:function clear(t,e){$a(t,this.document);var n=t.getWalker({direction:"backward",ignoreElementEnd:!0});var _iterator81=_createForOfIteratorHelper(n),_step81;try{for(_iterator81.s();!(_step81=_iterator81.n()).done;){var _o32=_step81.value;var _n52=_o32.item;var _i36=void 0;if(_n52.is("element")&&e.isSimilar(_n52))_i36=pa._createOn(_n52);else if(!_o32.nextPosition.isAfter(t.start)&&_n52.is("$textProxy")){var _t73=_n52.getAncestors().find(function(t){return t.is("element")&&e.isSimilar(t);});_t73&&(_i36=pa._createIn(_t73));}_i36&&(_i36.end.isAfter(t.end)&&(_i36.end=t.end),_i36.start.isBefore(t.start)&&(_i36.start=t.start),this.remove(_i36));}}catch(err){_iterator81.e(err);}finally{_iterator81.f();}}},{key:"move",value:function move(t,e){var n;if(e.isAfter(t.end)){var _o33=(e=this._breakAttributes(e,!0)).parent,_i37=_o33.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=_o33.childCount-_i37;}else n=this.remove(t);return this.insert(e,n);}},{key:"wrap",value:function wrap(t,e){if(!(e instanceof Da))throw new _("view-writer-wrap-invalid-attribute",this.document);if($a(t,this.document),t.isCollapsed){var _o34=t.start;_o34.parent.is("element")&&(n=_o34.parent,!Array.from(n.getChildren()).some(function(t){return!t.is("uiElement");}))&&(_o34=_o34.getLastMatchingPosition(function(t){return t.item.is("uiElement");})),_o34=this._wrapPosition(_o34,e);var _i38=this.document.selection;return _i38.isCollapsed&&_i38.getFirstPosition().isEqual(t.start)&&this.setSelection(_o34),new pa(_o34);}return this._wrapRange(t,e);var n;}},{key:"unwrap",value:function unwrap(t,e){if(!(e instanceof Da))throw new _("view-writer-unwrap-invalid-attribute",this.document);if($a(t,this.document),t.isCollapsed)return t;var _this$_breakAttribute2=this._breakAttributesRange(t,!0),n=_this$_breakAttribute2.start,o=_this$_breakAttribute2.end,i=n.parent,r=this._unwrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;var a=this.mergeAttributes(r.end);return new pa(s,a);}},{key:"rename",value:function rename(t,e){var n=new la(this.document,t,e.getAttributes());return this.insert(ma._createAfter(e),n),this.move(pa._createIn(e),ma._createAt(n,0)),this.remove(pa._createOn(e)),n;}},{key:"clearClonedElementsGroup",value:function clearClonedElementsGroup(t){this._cloneGroups.delete(t);}},{key:"createPositionAt",value:function createPositionAt(t,e){return ma._createAt(t,e);}},{key:"createPositionAfter",value:function createPositionAfter(t){return ma._createAfter(t);}},{key:"createPositionBefore",value:function createPositionBefore(t){return ma._createBefore(t);}},{key:"createRange",value:function createRange(t,e){return new pa(t,e);}},{key:"createRangeOn",value:function createRangeOn(t){return pa._createOn(t);}},{key:"createRangeIn",value:function createRangeIn(t){return pa._createIn(t);}},{key:"createSelection",value:function createSelection(){for(var _len20=arguments.length,t=new Array(_len20),_key20=0;_key20<_len20;_key20++){t[_key20]=arguments[_key20];}return _construct(ka,t);}},{key:"createSlot",value:function createSlot(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"children";if(!this._slotFactory)throw new _("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t);}},{key:"_registerSlotFactory",value:function _registerSlotFactory(t){this._slotFactory=t;}},{key:"_clearSlotFactory",value:function _clearSlotFactory(){this._slotFactory=null;}},{key:"_insertNodes",value:function _insertNodes(t,e,n){var o,i;if(o=n?ja(t):t.parent.is("$text")?t.parent.parent:t.parent,!o)throw new _("view-writer-invalid-position-container",this.document);i=n?this._breakAttributes(t,!0):t.parent.is("$text")?Ha(t):t;var r=o._insertChild(i.offset,e);var _iterator82=_createForOfIteratorHelper(e),_step82;try{for(_iterator82.s();!(_step82=_iterator82.n()).done;){var _t74=_step82.value;this._addToClonedElementsGroup(_t74);}}catch(err){_iterator82.e(err);}finally{_iterator82.f();}var s=i.getShiftedBy(r),a=this.mergeAttributes(i);a.isEqual(i)||s.offset--;var l=this.mergeAttributes(s);return new pa(a,l);}},{key:"_wrapChildren",value:function _wrapChildren(t,e,n,o){var i=e;var r=[];for(;i<n;){var _e70=t.getChild(i),_n53=_e70.is("$text"),_s6=_e70.is("attributeElement");if(_s6&&this._wrapAttributeElement(o,_e70))r.push(new ma(t,i));else if(_n53||!_s6||Fa(o,_e70)){var _n54=o._clone();_e70._remove(),_n54._appendChild(_e70),t._insertChild(i,_n54),this._addToClonedElementsGroup(_n54),r.push(new ma(t,i));}else this._wrapChildren(_e70,0,_e70.childCount,o);i++;}var s=0;for(var _i39=0,_r14=r;_i39<_r14.length;_i39++){var _t75=_r14[_i39];if(_t75.offset-=s,_t75.offset==e)continue;this.mergeAttributes(_t75).isEqual(_t75)||(s++,n--);}return pa._createFromParentsAndOffsets(t,e,t,n);}},{key:"_unwrapChildren",value:function _unwrapChildren(t,e,n,o){var i=e;var r=[];for(;i<n;){var _e71=t.getChild(i);if(_e71.is("attributeElement")){if(_e71.isSimilar(o)){var _o35=_e71.getChildren(),_s7=_e71.childCount;_e71._remove(),t._insertChild(i,_o35),this._removeFromClonedElementsGroup(_e71),r.push(new ma(t,i),new ma(t,i+_s7)),i+=_s7,n+=_s7-1;}else this._unwrapAttributeElement(o,_e71)?(r.push(new ma(t,i),new ma(t,i+1)),i++):(this._unwrapChildren(_e71,0,_e71.childCount,o),i++);}else i++;}var s=0;for(var _i40=0,_r15=r;_i40<_r15.length;_i40++){var _t76=_r15[_i40];if(_t76.offset-=s,_t76.offset==e||_t76.offset==n)continue;this.mergeAttributes(_t76).isEqual(_t76)||(s++,n--);}return pa._createFromParentsAndOffsets(t,e,t,n);}},{key:"_wrapRange",value:function _wrapRange(t,e){var _this$_breakAttribute3=this._breakAttributesRange(t,!0),n=_this$_breakAttribute3.start,o=_this$_breakAttribute3.end,i=n.parent,r=this._wrapChildren(i,n.offset,o.offset,e),s=this.mergeAttributes(r.start);s.isEqual(r.start)||r.end.offset--;var a=this.mergeAttributes(r.end);return new pa(s,a);}},{key:"_wrapPosition",value:function _wrapPosition(t,e){if(e.isSimilar(t.parent))return Va(t.clone());t.parent.is("$text")&&(t=Ha(t));var n=this.createAttributeElement("_wrapPosition-fake-element");n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1;},t.parent._insertChild(t.offset,n);var o=new pa(t,t.getShiftedBy(1));this.wrap(o,e);var i=new ma(n.parent,n.index);n._remove();var r=i.nodeBefore,s=i.nodeAfter;return r instanceof rs&&s instanceof rs?Ua(r,s):Va(i);}},{key:"_wrapAttributeElement",value:function _wrapAttributeElement(t,e){if(!Ka(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var _iterator83=_createForOfIteratorHelper(t.getAttributeKeys()),_step83;try{for(_iterator83.s();!(_step83=_iterator83.n()).done;){var _n55=_step83.value;if("class"!==_n55&&"style"!==_n55&&e.hasAttribute(_n55)&&e.getAttribute(_n55)!==t.getAttribute(_n55))return!1;}}catch(err){_iterator83.e(err);}finally{_iterator83.f();}var _iterator84=_createForOfIteratorHelper(t.getStyleNames()),_step84;try{for(_iterator84.s();!(_step84=_iterator84.n()).done;){var _n56=_step84.value;if(e.hasStyle(_n56)&&e.getStyle(_n56)!==t.getStyle(_n56))return!1;}}catch(err){_iterator84.e(err);}finally{_iterator84.f();}var _iterator85=_createForOfIteratorHelper(t.getAttributeKeys()),_step85;try{for(_iterator85.s();!(_step85=_iterator85.n()).done;){var _n57=_step85.value;"class"!==_n57&&"style"!==_n57&&(e.hasAttribute(_n57)||this.setAttribute(_n57,t.getAttribute(_n57),e));}}catch(err){_iterator85.e(err);}finally{_iterator85.f();}var _iterator86=_createForOfIteratorHelper(t.getStyleNames()),_step86;try{for(_iterator86.s();!(_step86=_iterator86.n()).done;){var _n58=_step86.value;e.hasStyle(_n58)||this.setStyle(_n58,t.getStyle(_n58),e);}}catch(err){_iterator86.e(err);}finally{_iterator86.f();}var _iterator87=_createForOfIteratorHelper(t.getClassNames()),_step87;try{for(_iterator87.s();!(_step87=_iterator87.n()).done;){var _n59=_step87.value;e.hasClass(_n59)||this.addClass(_n59,e);}}catch(err){_iterator87.e(err);}finally{_iterator87.f();}return!0;}},{key:"_unwrapAttributeElement",value:function _unwrapAttributeElement(t,e){if(!Ka(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var _iterator88=_createForOfIteratorHelper(t.getAttributeKeys()),_step88;try{for(_iterator88.s();!(_step88=_iterator88.n()).done;){var _n60=_step88.value;if("class"!==_n60&&"style"!==_n60&&(!e.hasAttribute(_n60)||e.getAttribute(_n60)!==t.getAttribute(_n60)))return!1;}}catch(err){_iterator88.e(err);}finally{_iterator88.f();}if(!e.hasClass.apply(e,_toConsumableArray(t.getClassNames())))return!1;var _iterator89=_createForOfIteratorHelper(t.getStyleNames()),_step89;try{for(_iterator89.s();!(_step89=_iterator89.n()).done;){var _n61=_step89.value;if(!e.hasStyle(_n61)||e.getStyle(_n61)!==t.getStyle(_n61))return!1;}}catch(err){_iterator89.e(err);}finally{_iterator89.f();}var _iterator90=_createForOfIteratorHelper(t.getAttributeKeys()),_step90;try{for(_iterator90.s();!(_step90=_iterator90.n()).done;){var _n62=_step90.value;"class"!==_n62&&"style"!==_n62&&this.removeAttribute(_n62,e);}}catch(err){_iterator90.e(err);}finally{_iterator90.f();}return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0;}},{key:"_breakAttributesRange",value:function _breakAttributesRange(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.start,o=t.end;if($a(t,this.document),t.isCollapsed){var _n63=this._breakAttributes(t.start,e);return new pa(_n63,_n63);}var i=this._breakAttributes(o,e),r=i.parent.childCount,s=this._breakAttributes(n,e);return i.offset+=i.parent.childCount-r,new pa(s,i);}},{key:"_breakAttributes",value:function _breakAttributes(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.offset,o=t.parent;if(t.parent.is("emptyElement"))throw new _("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new _("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new _("view-writer-cannot-break-raw-element",this.document);if(!e&&o.is("$text")&&qa(o.parent))return t.clone();if(qa(o))return t.clone();if(o.is("$text"))return this._breakAttributes(Ha(t),e);if(n==o.childCount){var _t77=new ma(o.parent,o.index+1);return this._breakAttributes(_t77,e);}if(0===n){var _t78=new ma(o.parent,o.index);return this._breakAttributes(_t78,e);}{var _t79=o.index+1,_i41=o._clone();o.parent._insertChild(_t79,_i41),this._addToClonedElementsGroup(_i41);var _r16=o.childCount-n,_s8=o._removeChildren(n,_r16);_i41._appendChild(_s8);var _a7=new ma(o.parent,_t79);return this._breakAttributes(_a7,e);}}},{key:"_addToClonedElementsGroup",value:function _addToClonedElementsGroup(t){if(!t.root.is("rootElement"))return;if(t.is("element")){var _iterator91=_createForOfIteratorHelper(t.getChildren()),_step91;try{for(_iterator91.s();!(_step91=_iterator91.n()).done;){var _e72=_step91.value;this._addToClonedElementsGroup(_e72);}}catch(err){_iterator91.e(err);}finally{_iterator91.f();}}var e=t.id;if(!e)return;var n=this._cloneGroups.get(e);n||(n=new Set(),this._cloneGroups.set(e,n)),n.add(t),t._clonesGroup=n;}},{key:"_removeFromClonedElementsGroup",value:function _removeFromClonedElementsGroup(t){if(t.is("element")){var _iterator92=_createForOfIteratorHelper(t.getChildren()),_step92;try{for(_iterator92.s();!(_step92=_iterator92.n()).done;){var _e73=_step92.value;this._removeFromClonedElementsGroup(_e73);}}catch(err){_iterator92.e(err);}finally{_iterator92.f();}}var e=t.id;if(!e)return;var n=this._cloneGroups.get(e);n&&n.delete(t);}}]);return Ra;}();function ja(t){var e=t.parent;for(;!qa(e);){if(!e)return;e=e.parent;}return e;}function Fa(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity();}function Va(t){var e=t.nodeBefore;if(e&&e.is("$text"))return new ma(e,e.data.length);var n=t.nodeAfter;return n&&n.is("$text")?new ma(n,0):t;}function Ha(t){if(t.offset==t.parent.data.length)return new ma(t.parent.parent,t.parent.index+1);if(0===t.offset)return new ma(t.parent.parent,t.parent.index);var e=t.parent.data.slice(t.offset);return t.parent._data=t.parent.data.slice(0,t.offset),t.parent.parent._insertChild(t.parent.index+1,new rs(t.root.document,e)),new ma(t.parent.parent,t.parent.index+1);}function Ua(t,e){var n=t.data.length;return t._data+=e.data,e._remove(),new ma(t,n);}var Wa=[rs,Da,la,Ia,Pa,Ba];function Ga(t,e){var _iterator93=_createForOfIteratorHelper(t),_step93;try{var _loop3=function _loop3(){var n=_step93.value;if(!Wa.some(function(t){return n instanceof t;}))throw new _("view-writer-insert-invalid-node-type",e);n.is("$text")||Ga(n.getChildren(),e);};for(_iterator93.s();!(_step93=_iterator93.n()).done;){_loop3();}}catch(err){_iterator93.e(err);}finally{_iterator93.f();}}function qa(t){return t&&(t.is("containerElement")||t.is("documentFragment"));}function $a(t,e){var n=ja(t.start),o=ja(t.end);if(!n||!o||n!==o)throw new _("view-writer-invalid-range-container",e);}function Ka(t,e){return null===t.id&&null===e.id;}var Ya=function Ya(t){return t.createTextNode(" ");},Qa=function Qa(t){var e=t.createElement("span");return e.dataset.ckeFiller="true",e.innerText=" ",e;},Za=function Za(t){var e=t.createElement("br");return e.dataset.ckeFiller="true",e;},Ja=7,Xa="".repeat(Ja);function tl(t){return Ro(t)&&t.data.substr(0,Ja)===Xa;}function el(t){return t.data.length==Ja&&tl(t);}function nl(t){return tl(t)?t.data.slice(Ja):t.data;}function ol(t,e){if(e.keyCode==mi.arrowleft){var _t80=e.domTarget.ownerDocument.defaultView.getSelection();if(1==_t80.rangeCount&&_t80.getRangeAt(0).collapsed){var _e74=_t80.getRangeAt(0).startContainer,_n64=_t80.getRangeAt(0).startOffset;tl(_e74)&&_n64<=Ja&&_t80.collapse(_e74,0);}}}var il=n(4401),rl={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(il.Z,rl);il.Z.locals;var sl=/*#__PURE__*/function(_$5){_inherits(sl,_$5);var _super50=_createSuper(sl);function sl(t,e){var _this80;_classCallCheck(this,sl);_this80=_super50.call(this),_this80.domDocuments=new Set(),_this80.markedAttributes=new Set(),_this80.markedChildren=new Set(),_this80.markedTexts=new Set(),_this80._inlineFiller=null,_this80._fakeSelectionContainer=null,_this80.domConverter=t,_this80.selection=e,_this80.set("isFocused",!1),_this80.set("isSelecting",!1),l.isBlink&&!l.isAndroid&&_this80.on("change:isSelecting",function(){_this80.isSelecting||_this80.render();}),_this80.set("isComposing",!1),_this80.on("change:isComposing",function(){_this80.isComposing||_this80.render();});return _this80;}_createClass(sl,[{key:"markToSync",value:function markToSync(t,e){if("text"===t)this.domConverter.mapViewToDom(e.parent)&&this.markedTexts.add(e);else{if(!this.domConverter.mapViewToDom(e))return;if("attributes"===t)this.markedAttributes.add(e);else{if("children"!==t){throw new _("view-renderer-unknown-type",this);}this.markedChildren.add(e);}}}},{key:"render",value:function render(){if(this.isComposing&&!l.isAndroid)return;var t=null;var e=!(l.isBlink&&!l.isAndroid)||!this.isSelecting;var _iterator94=_createForOfIteratorHelper(this.markedChildren),_step94;try{for(_iterator94.s();!(_step94=_iterator94.n()).done;){var _t81=_step94.value;this._updateChildrenMappings(_t81);}}catch(err){_iterator94.e(err);}finally{_iterator94.f();}e?(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&&t.parent.is("$text")&&(t=ma._createBefore(t.parent)));var _iterator95=_createForOfIteratorHelper(this.markedAttributes),_step95;try{for(_iterator95.s();!(_step95=_iterator95.n()).done;){var _t82=_step95.value;this._updateAttrs(_t82);}}catch(err){_iterator95.e(err);}finally{_iterator95.f();}var _iterator96=_createForOfIteratorHelper(this.markedChildren),_step96;try{for(_iterator96.s();!(_step96=_iterator96.n()).done;){var _e76=_step96.value;this._updateChildren(_e76,{inlineFillerPosition:t});}}catch(err){_iterator96.e(err);}finally{_iterator96.f();}var _iterator97=_createForOfIteratorHelper(this.markedTexts),_step97;try{for(_iterator97.s();!(_step97=_iterator97.n()).done;){var _e77=_step97.value;!this.markedChildren.has(_e77.parent)&&this.domConverter.mapViewToDom(_e77.parent)&&this._updateText(_e77,{inlineFillerPosition:t});}}catch(err){_iterator97.e(err);}finally{_iterator97.f();}if(e)if(t){var _e75=this.domConverter.viewPositionToDom(t),_n65=_e75.parent.ownerDocument;tl(_e75.parent)?this._inlineFiller=_e75.parent:this._inlineFiller=al(_n65,_e75.parent,_e75.offset);}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear();}},{key:"_updateChildrenMappings",value:function _updateChildrenMappings(t){if(!this.domConverter.mapViewToDom(t))return;var e=Array.from(this.domConverter.mapViewToDom(t).childNodes),n=Array.from(this.domConverter.viewChildrenToDom(t,{withChildren:!1})),o=this._diffNodeLists(e,n),i=this._findUpdateActions(o,e,n,ll);if(-1!==i.indexOf("update")){var _o36={equal:0,insert:0,delete:0};var _iterator98=_createForOfIteratorHelper(i),_step98;try{for(_iterator98.s();!(_step98=_iterator98.n()).done;){var _r17=_step98.value;if("update"===_r17){var _i42=_o36.equal+_o36.insert,_r18=_o36.equal+_o36.delete,_s9=t.getChild(_i42);!_s9||_s9.is("uiElement")||_s9.is("rawElement")||this._updateElementMappings(_s9,e[_r18]),ni(n[_i42]),_o36.equal++;}else _o36[_r17]++;}}catch(err){_iterator98.e(err);}finally{_iterator98.f();}}}},{key:"_updateElementMappings",value:function _updateElementMappings(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t);}},{key:"_getInlineFillerPosition",value:function _getInlineFillerPosition(){var t=this.selection.getFirstPosition();return t.parent.is("$text")?ma._createBefore(t.parent):t;}},{key:"_isSelectionInInlineFiller",value:function _isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Ro(e.parent)&&tl(e.parent));}},{key:"_removeInlineFiller",value:function _removeInlineFiller(){var t=this._inlineFiller;if(!tl(t))throw new _("view-renderer-filler-was-lost",this);el(t)?t.remove():t.data=t.data.substr(Ja),this._inlineFiller=null;}},{key:"_needsInlineFillerAtSelection",value:function _needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=t.parent,n=t.offset;if(!this.domConverter.mapViewToDom(e.root))return!1;if(!e.is("element"))return!1;if(!function(t){if("false"==t.getAttribute("contenteditable"))return!1;var e=t.findAncestor(function(t){return t.hasAttribute("contenteditable");});return!e||"true"==e.getAttribute("contenteditable");}(e))return!1;if(n===e.getFillerOffset())return!1;var o=t.nodeBefore,i=t.nodeAfter;return!(o instanceof rs||i instanceof rs)&&(!l.isAndroid||!o&&!i);}},{key:"_updateText",value:function _updateText(t,e){var n=this.domConverter.findCorrespondingDomText(t);var o=this.domConverter.viewToDom(t).data;var i=e.inlineFillerPosition;i&&i.parent==t.parent&&i.offset==t.index&&(o=Xa+o),ul(n,o);}},{key:"_updateAttrs",value:function _updateAttrs(t){var e=this.domConverter.mapViewToDom(t);if(!e)return;var n=Array.from(e.attributes).map(function(t){return t.name;}),o=t.getAttributeKeys();var _iterator99=_createForOfIteratorHelper(o),_step99;try{for(_iterator99.s();!(_step99=_iterator99.n()).done;){var _n66=_step99.value;this.domConverter.setDomElementAttribute(e,_n66,t.getAttribute(_n66),t);}}catch(err){_iterator99.e(err);}finally{_iterator99.f();}var _iterator100=_createForOfIteratorHelper(n),_step100;try{for(_iterator100.s();!(_step100=_iterator100.n()).done;){var _o37=_step100.value;t.hasAttribute(_o37)||this.domConverter.removeDomElementAttribute(e,_o37);}}catch(err){_iterator100.e(err);}finally{_iterator100.f();}}},{key:"_updateChildren",value:function _updateChildren(t,e){var n=this.domConverter.mapViewToDom(t);if(!n)return;if(l.isAndroid){var _t83=null;for(var _i43=0,_Array$from2=Array.from(n.childNodes);_i43<_Array$from2.length;_i43++){var _e78=_Array$from2[_i43];if(_t83&&Ro(_t83)&&Ro(_e78)){n.normalize();break;}_t83=_e78;}}var o=e.inlineFillerPosition,i=n.childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,{bind:!0}));o&&o.parent===t&&al(n.ownerDocument,r,o.offset);var s=this._diffNodeLists(i,r),a=this._findUpdateActions(s,i,r,cl);var c=0;var d=new Set();var _iterator101=_createForOfIteratorHelper(a),_step101;try{for(_iterator101.s();!(_step101=_iterator101.n()).done;){var _t84=_step101.value;"delete"===_t84?(d.add(i[c]),ni(i[c])):"equal"!==_t84&&"update"!==_t84||c++;}}catch(err){_iterator101.e(err);}finally{_iterator101.f();}c=0;var _iterator102=_createForOfIteratorHelper(a),_step102;try{for(_iterator102.s();!(_step102=_iterator102.n()).done;){var _t85=_step102.value;"insert"===_t85?(Qo(n,c,r[c]),c++):"update"===_t85?(ul(i[c],r[c].data),c++):"equal"===_t85&&(this._markDescendantTextToSync(this.domConverter.domToView(r[c])),c++);}}catch(err){_iterator102.e(err);}finally{_iterator102.f();}var _iterator103=_createForOfIteratorHelper(d),_step103;try{for(_iterator103.s();!(_step103=_iterator103.n()).done;){var _t86=_step103.value;_t86.parentNode||this.domConverter.unbindDomElement(_t86);}}catch(err){_iterator103.e(err);}finally{_iterator103.f();}}},{key:"_diffNodeLists",value:function _diffNodeLists(t,e){return t=function(t,e){var n=Array.from(t);if(0==n.length||!e)return n;var o=n[n.length-1];o==e&&n.pop();return n;}(t,this._fakeSelectionContainer),g(t,e,dl.bind(null,this.domConverter));}},{key:"_findUpdateActions",value:function _findUpdateActions(t,e,n,o){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;var i=[],r=[],s=[];var a={equal:0,insert:0,delete:0};var _iterator104=_createForOfIteratorHelper(t),_step104;try{for(_iterator104.s();!(_step104=_iterator104.n()).done;){var _l2=_step104.value;"insert"===_l2?s.push(n[a.equal+a.insert]):"delete"===_l2?r.push(e[a.equal+a.delete]):(i=i.concat(g(r,s,o).map(function(t){return"equal"===t?"update":t;})),i.push("equal"),r=[],s=[]),a[_l2]++;}}catch(err){_iterator104.e(err);}finally{_iterator104.f();}return i.concat(g(r,s,o).map(function(t){return"equal"===t?"update":t;}));}},{key:"_markDescendantTextToSync",value:function _markDescendantTextToSync(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element")){var _iterator105=_createForOfIteratorHelper(t.getChildren()),_step105;try{for(_iterator105.s();!(_step105=_iterator105.n()).done;){var _e79=_step105.value;this._markDescendantTextToSync(_e79);}}catch(err){_iterator105.e(err);}finally{_iterator105.f();}}}},{key:"_updateSelection",value:function _updateSelection(){if(l.isBlink&&!l.isAndroid&&this.isSelecting&&!this.markedChildren.size)return;if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();var t=this.domConverter.mapViewToDom(this.selection.editableElement);this.isFocused&&t&&(this.selection.isFake?this._updateFakeSelection(t):this._fakeSelectionContainer&&this._fakeSelectionContainer.isConnected?(this._removeFakeSelection(),this._updateDomSelection(t)):this.isComposing&&l.isAndroid||this._updateDomSelection(t));}},{key:"_updateFakeSelection",value:function _updateFakeSelection(t){var e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){var e=t.createElement("div");return e.className="ck-fake-selection-container",Object.assign(e.style,{position:"fixed",top:0,left:"-9999px",width:"42px"}),e.textContent=" ",e;}(e));var n=this._fakeSelectionContainer;if(this.domConverter.bindFakeSelection(n,this.selection),!this._fakeSelectionNeedsUpdate(t))return;n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var o=e.getSelection(),i=e.createRange();o.removeAllRanges(),i.selectNodeContents(n),o.addRange(i);}},{key:"_updateDomSelection",value:function _updateDomSelection(t){var e=t.ownerDocument.defaultView.getSelection();if(!this._domSelectionNeedsUpdate(e))return;var n=this.domConverter.viewPositionToDom(this.selection.anchor),o=this.domConverter.viewPositionToDom(this.selection.focus);e.collapse(n.parent,n.offset),e.extend(o.parent,o.offset),l.isGecko&&function(t,e){var n=t.parent;if(n.nodeType!=Node.ELEMENT_NODE||t.offset!=n.childNodes.length-1)return;var o=n.childNodes[t.offset];o&&"BR"==o.tagName&&e.addRange(e.getRangeAt(0));}(o,e);}},{key:"_domSelectionNeedsUpdate",value:function _domSelectionNeedsUpdate(t){if(!this.domConverter.isDomSelectionCorrect(t))return!0;var e=t&&this.domConverter.domSelectionToView(t);return(!e||!this.selection.isEqual(e))&&!(!this.selection.isCollapsed&&this.selection.isSimilar(e));}},{key:"_fakeSelectionNeedsUpdate",value:function _fakeSelectionNeedsUpdate(t){var e=this._fakeSelectionContainer,n=t.ownerDocument.getSelection();return!e||e.parentElement!==t||n.anchorNode!==e&&!e.contains(n.anchorNode)||e.textContent!==this.selection.fakeSelectionLabel;}},{key:"_removeDomSelection",value:function _removeDomSelection(){var _iterator106=_createForOfIteratorHelper(this.domDocuments),_step106;try{for(_iterator106.s();!(_step106=_iterator106.n()).done;){var _t87=_step106.value;var _e80=_t87.getSelection();if(_e80.rangeCount){var _n67=_t87.activeElement,_o38=this.domConverter.mapDomToView(_n67);_n67&&_o38&&_e80.removeAllRanges();}}}catch(err){_iterator106.e(err);}finally{_iterator106.f();}}},{key:"_removeFakeSelection",value:function _removeFakeSelection(){var t=this._fakeSelectionContainer;t&&t.remove();}},{key:"_updateFocus",value:function _updateFocus(){if(this.isFocused){var _t88=this.selection.editableElement;_t88&&this.domConverter.focus(_t88);}}}]);return sl;}($());function al(t,e,n){var o=e instanceof Array?e:e.childNodes,i=o[n];if(Ro(i))return i.data=Xa+i.data,i;{var _i44=t.createTextNode(Xa);return Array.isArray(e)?o.splice(n,0,_i44):Qo(e,n,_i44),_i44;}}function ll(t,e){return So(t)&&So(e)&&!Ro(t)&&!Ro(e)&&!Zo(t)&&!Zo(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase();}function cl(t,e){return So(t)&&So(e)&&Ro(t)&&Ro(e);}function dl(t,e,n){return e===n||(Ro(e)&&Ro(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)));}function ul(t,e){var n=t.data;if(n==e)return;var o=d(n,e);var _iterator107=_createForOfIteratorHelper(o),_step107;try{for(_iterator107.s();!(_step107=_iterator107.n()).done;){var _e81=_step107.value;"insert"===_e81.type?t.insertData(_e81.index,_e81.values.join("")):t.deleteData(_e81.index,_e81.howMany);}}catch(err){_iterator107.e(err);}finally{_iterator107.f();}}var hl=Za(Lo.document),gl=Ya(Lo.document),ml=Qa(Lo.document),pl="data-ck-unsafe-attribute-",fl="data-ck-unsafe-element";var kl=/*#__PURE__*/function(){function kl(t){var _ref27=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{},e=_ref27.blockFillerMode,_ref27$renderingMode=_ref27.renderingMode,n=_ref27$renderingMode===void 0?"editing":_ref27$renderingMode;_classCallCheck(this,kl);this._domToViewMapping=new WeakMap(),this._viewToDomMapping=new WeakMap(),this._fakeSelectionMapping=new WeakMap(),this._rawContentElementMatcher=new as(),this._encounteredRawContentDomNodes=new WeakSet(),this.document=t,this.renderingMode=n,this.blockFillerMode=e||("editing"===n?"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?Lo.document:Lo.document.implementation.createHTMLDocument("");}_createClass(kl,[{key:"bindFakeSelection",value:function bindFakeSelection(t,e){this._fakeSelectionMapping.set(t,new ka(e));}},{key:"fakeSelectionToView",value:function fakeSelectionToView(t){return this._fakeSelectionMapping.get(t);}},{key:"bindElements",value:function bindElements(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t);}},{key:"unbindDomElement",value:function unbindDomElement(t){var e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);for(var _i45=0,_Array$from3=Array.from(t.children);_i45<_Array$from3.length;_i45++){var _e82=_Array$from3[_i45];this.unbindDomElement(_e82);}}}},{key:"bindDocumentFragments",value:function bindDocumentFragments(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t);}},{key:"shouldRenderAttribute",value:function shouldRenderAttribute(t,e,n){return"data"===this.renderingMode||!(t=t.toLowerCase()).startsWith("on")&&("srcdoc"!==t||!e.match(/\bon\S+\s*=|javascript:|<\s*\/*script/i))&&("img"===n&&("src"===t||"srcset"===t)||"source"===n&&"srcset"===t||!e.match(/^\s*(javascript:|data:(image\/svg|text\/x?html))/i));}},{key:"setContentOf",value:function setContentOf(t,e){if("data"===this.renderingMode)return void(t.innerHTML=e);var n=new DOMParser().parseFromString(e,"text/html"),o=n.createDocumentFragment(),i=n.body.childNodes;for(;i.length>0;)o.appendChild(i[0]);var r=n.createTreeWalker(o,NodeFilter.SHOW_ELEMENT),s=[];var a;for(;a=r.nextNode();)s.push(a);for(var _i46=0,_s10=s;_i46<_s10.length;_i46++){var _t89=_s10[_i46];var _iterator108=_createForOfIteratorHelper(_t89.getAttributeNames()),_step108;try{for(_iterator108.s();!(_step108=_iterator108.n()).done;){var _e84=_step108.value;this.setDomElementAttribute(_t89,_e84,_t89.getAttribute(_e84));}}catch(err){_iterator108.e(err);}finally{_iterator108.f();}var _e83=_t89.tagName.toLowerCase();this._shouldRenameElement(_e83)&&(Al(_e83),_t89.replaceWith(this._createReplacementDomElement(_e83,_t89)));}for(;t.firstChild;)t.firstChild.remove();t.append(o);}},{key:"viewToDom",value:function viewToDom(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(t.is("$text")){var _e85=this._processDataFromViewText(t);return this._domDocument.createTextNode(_e85);}{if(this.mapViewToDom(t))return this.mapViewToDom(t);var _n68;if(t.is("documentFragment"))_n68=this._domDocument.createDocumentFragment(),e.bind&&this.bindDocumentFragments(_n68,t);else{if(t.is("uiElement"))return _n68="$comment"===t.name?this._domDocument.createComment(t.getCustomProperty("$rawContent")):t.render(this._domDocument,this),e.bind&&this.bindElements(_n68,t),_n68;this._shouldRenameElement(t.name)?(Al(t.name),_n68=this._createReplacementDomElement(t.name)):_n68=t.hasAttribute("xmlns")?this._domDocument.createElementNS(t.getAttribute("xmlns"),t.name):this._domDocument.createElement(t.name),t.is("rawElement")&&t.render(_n68,this),e.bind&&this.bindElements(_n68,t);var _iterator109=_createForOfIteratorHelper(t.getAttributeKeys()),_step109;try{for(_iterator109.s();!(_step109=_iterator109.n()).done;){var _e86=_step109.value;this.setDomElementAttribute(_n68,_e86,t.getAttribute(_e86),t);}}catch(err){_iterator109.e(err);}finally{_iterator109.f();}}if(!1!==e.withChildren){var _iterator110=_createForOfIteratorHelper(this.viewChildrenToDom(t,e)),_step110;try{for(_iterator110.s();!(_step110=_iterator110.n()).done;){var _o39=_step110.value;_n68.appendChild(_o39);}}catch(err){_iterator110.e(err);}finally{_iterator110.f();}}return _n68;}}},{key:"setDomElementAttribute",value:function setDomElementAttribute(t,e,n,o){var i=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||o&&o.shouldRenderUnsafeAttribute(e);i||C("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),t.hasAttribute(e)&&!i?t.removeAttribute(e):t.hasAttribute(pl+e)&&i&&t.removeAttribute(pl+e),t.setAttribute(i?e:pl+e,n);}},{key:"removeDomElementAttribute",value:function removeDomElementAttribute(t,e){e!=fl&&(t.removeAttribute(e),t.removeAttribute(pl+e));}},{key:"viewChildrenToDom",value:function viewChildrenToDom(t){var _this81=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return/*#__PURE__*/_regeneratorRuntime().mark(function _callee3(){var n,o,_iterator111,_step111,_i47,_t90;return _regeneratorRuntime().wrap(function _callee3$(_context15){while(1)switch(_context15.prev=_context15.next){case 0:n=t.getFillerOffset&&t.getFillerOffset();o=0;_iterator111=_createForOfIteratorHelper(t.getChildren());_context15.prev=3;_iterator111.s();case 5:if((_step111=_iterator111.n()).done){_context15.next=22;break;}_i47=_step111.value;_context15.t0=n===o;if(!_context15.t0){_context15.next=11;break;}_context15.next=11;return _this81._getBlockFiller();case 11:_t90=_i47.is("element")&&!!_i47.getCustomProperty("dataPipeline:transparentRendering")&&!Ei(_i47.getAttributes());if(!(_t90&&"data"==_this81.renderingMode)){_context15.next=16;break;}return _context15.delegateYield(_this81.viewChildrenToDom(_i47,e),"t1",14);case 14:_context15.next=19;break;case 16:_t90&&C("domconverter-transparent-rendering-unsupported-in-editing-pipeline",{viewElement:_i47});_context15.next=19;return _this81.viewToDom(_i47,e);case 19:o++;case 20:_context15.next=5;break;case 22:_context15.next=27;break;case 24:_context15.prev=24;_context15.t2=_context15["catch"](3);_iterator111.e(_context15.t2);case 27:_context15.prev=27;_iterator111.f();return _context15.finish(27);case 30:_context15.t3=n===o;if(!_context15.t3){_context15.next=34;break;}_context15.next=34;return _this81._getBlockFiller();case 34:case"end":return _context15.stop();}},_callee3,null,[[3,24,27,30]]);})();}},{key:"viewRangeToDom",value:function viewRangeToDom(t){var e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),o=this._domDocument.createRange();return o.setStart(e.parent,e.offset),o.setEnd(n.parent,n.offset),o;}},{key:"viewPositionToDom",value:function viewPositionToDom(t){var e=t.parent;if(e.is("$text")){var _n69=this.findCorrespondingDomText(e);if(!_n69)return null;var _o40=t.offset;return tl(_n69)&&(_o40+=Ja),{parent:_n69,offset:_o40};}{var _n70,_o41,_i48;if(0===t.offset){if(_n70=this.mapViewToDom(e),!_n70)return null;_i48=_n70.childNodes[0];}else{var _e87=t.nodeBefore;if(_o41=_e87.is("$text")?this.findCorrespondingDomText(_e87):this.mapViewToDom(_e87),!_o41)return null;_n70=_o41.parentNode,_i48=_o41.nextSibling;}if(Ro(_i48)&&tl(_i48))return{parent:_i48,offset:Ja};return{parent:_n70,offset:_o41?Yo(_o41)+1:0};}}},{key:"domToView",value:function domToView(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};if(this.isBlockFiller(t))return null;var n=this.getHostViewElement(t);if(n)return n;if(Zo(t)&&e.skipComments)return null;if(Ro(t)){if(el(t))return null;{var _e88=this._processDataFromDomText(t);return""===_e88?null:new rs(this.document,_e88);}}{if(this.mapDomToView(t))return this.mapDomToView(t);var _n71;if(this.isDocumentFragment(t))_n71=new Oa(this.document),e.bind&&this.bindDocumentFragments(t,_n71);else{_n71=this._createViewElement(t,e),e.bind&&this.bindElements(t,_n71);var _o42=t.attributes;if(_o42)for(var _t91=_o42.length,_e89=0;_e89<_t91;_e89++)_n71._setAttribute(_o42[_e89].name,_o42[_e89].value);if(this._isViewElementWithRawContent(_n71,e)||Zo(t)){var _e90=Zo(t)?t.data:t.innerHTML;return _n71._setCustomProperty("$rawContent",_e90),this._encounteredRawContentDomNodes.add(t),_n71;}}if(!1!==e.withChildren){var _iterator112=_createForOfIteratorHelper(this.domChildrenToView(t,e)),_step112;try{for(_iterator112.s();!(_step112=_iterator112.n()).done;){var _o43=_step112.value;_n71._appendChild(_o43);}}catch(err){_iterator112.e(err);}finally{_iterator112.f();}}return _n71;}}},{key:"domChildrenToView",value:/*#__PURE__*/_regeneratorRuntime().mark(function domChildrenToView(t,e){var _n72,_o44,_i49;return _regeneratorRuntime().wrap(function domChildrenToView$(_context16){while(1)switch(_context16.prev=_context16.next){case 0:_n72=0;case 1:if(!(_n72<t.childNodes.length)){_context16.next=10;break;}_o44=t.childNodes[_n72],_i49=this.domToView(_o44,e);_context16.t0=null!==_i49;if(!_context16.t0){_context16.next=7;break;}_context16.next=7;return _i49;case 7:_n72++;_context16.next=1;break;case 10:case"end":return _context16.stop();}},domChildrenToView,this);})},{key:"domSelectionToView",value:function domSelectionToView(t){if(1===t.rangeCount){var _e91=t.getRangeAt(0).startContainer;Ro(_e91)&&(_e91=_e91.parentNode);var _n73=this.fakeSelectionToView(_e91);if(_n73)return _n73;}var e=this.isDomSelectionBackward(t),n=[];for(var _e92=0;_e92<t.rangeCount;_e92++){var _o45=t.getRangeAt(_e92),_i50=this.domRangeToView(_o45);_i50&&n.push(_i50);}return new ka(n,{backward:e});}},{key:"domRangeToView",value:function domRangeToView(t){var e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new pa(e,n):null;}},{key:"domPositionToView",value:function domPositionToView(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:0;if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,Yo(t));var n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return ma._createBefore(n);if(Ro(t)){if(el(t))return this.domPositionToView(t.parentNode,Yo(t));var _n74=this.findCorrespondingViewText(t);var _o46=e;return _n74?(tl(t)&&(_o46-=Ja,_o46=_o46<0?0:_o46),new ma(_n74,_o46)):null;}if(0===e){var _e93=this.mapDomToView(t);if(_e93)return new ma(_e93,0);}else{var _n75=t.childNodes[e-1];if(Ro(_n75)&&el(_n75)||_n75&&this.isBlockFiller(_n75))return this.domPositionToView(_n75.parentNode,Yo(_n75));var _o47=Ro(_n75)?this.findCorrespondingViewText(_n75):this.mapDomToView(_n75);if(_o47&&_o47.parent)return new ma(_o47.parent,_o47.index+1);}return null;}},{key:"mapDomToView",value:function mapDomToView(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t);}},{key:"findCorrespondingViewText",value:function findCorrespondingViewText(t){if(el(t))return null;var e=this.getHostViewElement(t);if(e)return e;var n=t.previousSibling;if(n){if(!this.isElement(n))return null;var _t92=this.mapDomToView(n);if(_t92){var _e94=_t92.nextSibling;return _e94 instanceof rs?_e94:null;}}else{var _e95=this.mapDomToView(t.parentNode);if(_e95){var _t93=_e95.getChild(0);return _t93 instanceof rs?_t93:null;}}return null;}},{key:"mapViewToDom",value:function mapViewToDom(t){return this._viewToDomMapping.get(t);}},{key:"findCorrespondingDomText",value:function findCorrespondingDomText(t){var e=t.previousSibling;return e&&this.mapViewToDom(e)?this.mapViewToDom(e).nextSibling:!e&&t.parent&&this.mapViewToDom(t.parent)?this.mapViewToDom(t.parent).childNodes[0]:null;}},{key:"focus",value:function focus(t){var e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){var _Lo$window2=Lo.window,_t94=_Lo$window2.scrollX,_n76=_Lo$window2.scrollY,_o48=[];bl(e,function(t){var e=t.scrollLeft,n=t.scrollTop;_o48.push([e,n]);}),e.focus(),bl(e,function(t){var _o48$shift=_o48.shift(),_o48$shift2=_slicedToArray(_o48$shift,2),e=_o48$shift2[0],n=_o48$shift2[1];t.scrollLeft=e,t.scrollTop=n;}),Lo.window.scrollTo(_t94,_n76);}}},{key:"isElement",value:function isElement(t){return t&&t.nodeType==Node.ELEMENT_NODE;}},{key:"isDocumentFragment",value:function isDocumentFragment(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE;}},{key:"isBlockFiller",value:function isBlockFiller(t){return"br"==this.blockFillerMode?t.isEqualNode(hl):!("BR"!==t.tagName||!wl(t,this.blockElements)||1!==t.parentNode.childNodes.length)||t.isEqualNode(ml)||function(t,e){var n=t.isEqualNode(gl);return n&&wl(t,e)&&1===t.parentNode.childNodes.length;}(t,this.blockElements);}},{key:"isDomSelectionBackward",value:function isDomSelectionBackward(t){if(t.isCollapsed)return!1;var e=this._domDocument.createRange();try{e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);}catch(t){return!1;}var n=e.collapsed;return e.detach(),n;}},{key:"getHostViewElement",value:function getHostViewElement(t){var e=Oo(t);for(e.pop();e.length;){var _t95=e.pop(),_n77=this._domToViewMapping.get(_t95);if(_n77&&(_n77.is("uiElement")||_n77.is("rawElement")))return _n77;}return null;}},{key:"isDomSelectionCorrect",value:function isDomSelectionCorrect(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset);}},{key:"registerRawContentMatcher",value:function registerRawContentMatcher(t){this._rawContentElementMatcher.add(t);}},{key:"_getBlockFiller",value:function _getBlockFiller(){switch(this.blockFillerMode){case"nbsp":return Ya(this._domDocument);case"markedNbsp":return Qa(this._domDocument);case"br":return Za(this._domDocument);}}},{key:"_isDomSelectionPositionCorrect",value:function _isDomSelectionPositionCorrect(t,e){if(Ro(t)&&tl(t)&&e<Ja)return!1;if(this.isElement(t)&&tl(t.childNodes[e]))return!1;var n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement");}},{key:"_processDataFromViewText",value:function _processDataFromViewText(t){var _this82=this;var e=t.data;if(t.getAncestors().some(function(t){return _this82.preElements.includes(t.name);}))return e;if(" "==e.charAt(0)){var _n78=this._getTouchingInlineViewNode(t,!1);!(_n78&&_n78.is("$textProxy")&&this._nodeEndsWithSpace(_n78))&&_n78||(e=" "+e.substr(1));}if(" "==e.charAt(e.length-1)){var _n79=this._getTouchingInlineViewNode(t,!0),_o49=_n79&&_n79.is("$textProxy")&&" "==_n79.data.charAt(0);" "!=e.charAt(e.length-2)&&_n79&&!_o49||(e=e.substr(0,e.length-1)+" ");}return e.replace(/ {2}/g," ");}},{key:"_nodeEndsWithSpace",value:function _nodeEndsWithSpace(t){var _this83=this;if(t.getAncestors().some(function(t){return _this83.preElements.includes(t.name);}))return!1;var e=this._processDataFromViewText(t);return" "==e.charAt(e.length-1);}},{key:"_processDataFromDomText",value:function _processDataFromDomText(t){var e=t.data;if(function(t,e){var n=Oo(t);return n.some(function(t){return t.tagName&&e.includes(t.tagName.toLowerCase());});}(t,this.preElements))return nl(t);e=e.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(t,!1),o=this._getTouchingInlineDomNode(t,!0),i=this._checkShouldLeftTrimDomText(t,n),r=this._checkShouldRightTrimDomText(t,o);i&&(e=e.replace(/^ /,"")),r&&(e=e.replace(/ $/,"")),e=nl(new Text(e)),e=e.replace(/ \u00A0/g," ");var s=o&&this.isElement(o)&&"BR"!=o.tagName,a=o&&Ro(o)&&" "==o.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(e)||!o||s||a)&&(e=e.replace(/\u00A0$/," ")),(i||n&&this.isElement(n)&&"BR"!=n.tagName)&&(e=e.replace(/^\u00A0/," ")),e;}},{key:"_checkShouldLeftTrimDomText",value:function _checkShouldLeftTrimDomText(t,e){return!e||(this.isElement(e)?"BR"===e.tagName:!this._encounteredRawContentDomNodes.has(t.previousSibling)&&/[^\S\u00A0]/.test(e.data.charAt(e.data.length-1)));}},{key:"_checkShouldRightTrimDomText",value:function _checkShouldRightTrimDomText(t,e){return!e&&!tl(t);}},{key:"_getTouchingInlineViewNode",value:function _getTouchingInlineViewNode(t,e){var n=new ga({startPosition:e?ma._createAfter(t):ma._createBefore(t),direction:e?"forward":"backward"});var _iterator113=_createForOfIteratorHelper(n),_step113;try{for(_iterator113.s();!(_step113=_iterator113.n()).done;){var _t96=_step113.value;if(_t96.item.is("element")&&this.inlineObjectElements.includes(_t96.item.name))return _t96.item;if(_t96.item.is("containerElement"))return null;if(_t96.item.is("element","br"))return null;if(_t96.item.is("$textProxy"))return _t96.item;}}catch(err){_iterator113.e(err);}finally{_iterator113.f();}return null;}},{key:"_getTouchingInlineDomNode",value:function _getTouchingInlineDomNode(t,e){if(!t.parentNode)return null;var n=e?"firstChild":"lastChild",o=e?"nextSibling":"previousSibling";var i=!0,r=t;do{if(!i&&r[n]?r=r[n]:r[o]?(r=r[o],i=!1):(r=r.parentNode,i=!0),!r||this._isBlockElement(r))return null;}while(!Ro(r)&&"BR"!=r.tagName&&!this._isInlineObjectElement(r));return r;}},{key:"_isBlockElement",value:function _isBlockElement(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase());}},{key:"_isInlineObjectElement",value:function _isInlineObjectElement(t){return this.isElement(t)&&this.inlineObjectElements.includes(t.tagName.toLowerCase());}},{key:"_createViewElement",value:function _createViewElement(t,e){if(Zo(t))return new Ba(this.document,"$comment");var n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new sa(this.document,n);}},{key:"_isViewElementWithRawContent",value:function _isViewElementWithRawContent(t,e){return!1!==e.withChildren&&!!this._rawContentElementMatcher.match(t);}},{key:"_shouldRenameElement",value:function _shouldRenameElement(t){var e=t.toLowerCase();return"editing"===this.renderingMode&&this.unsafeElements.includes(e);}},{key:"_createReplacementDomElement",value:function _createReplacementDomElement(t,e){var n=this._domDocument.createElement("span");if(n.setAttribute(fl,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);var _iterator114=_createForOfIteratorHelper(e.getAttributeNames()),_step114;try{for(_iterator114.s();!(_step114=_iterator114.n()).done;){var _t97=_step114.value;n.setAttribute(_t97,e.getAttribute(_t97));}}catch(err){_iterator114.e(err);}finally{_iterator114.f();}}return n;}}]);return kl;}();function bl(t,e){var n=t;for(;n;)e(n),n=n.parentElement;}function wl(t,e){var n=t.parentNode;return!!n&&!!n.tagName&&e.includes(n.tagName.toLowerCase());}function Al(t){"script"===t&&C("domconverter-unsafe-script-element-detected"),"style"===t&&C("domconverter-unsafe-style-element-detected");}var _l=/*#__PURE__*/function(_Bo3){_inherits(_l,_Bo3);var _super51=_createSuper(_l);function _l(t){var _this84;_classCallCheck(this,_l);_this84=_super51.call(this),_this84._isEnabled=!1,_this84.view=t,_this84.document=t.document;return _this84;}_createClass(_l,[{key:"isEnabled",get:function get(){return this._isEnabled;}},{key:"enable",value:function enable(){this._isEnabled=!0;}},{key:"disable",value:function disable(){this._isEnabled=!1;}},{key:"destroy",value:function destroy(){this.disable(),this.stopListening();}},{key:"checkShouldIgnoreEventFromTarget",value:function checkShouldIgnoreEventFromTarget(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *");}}]);return _l;}(Bo());var Cl=Js(function(t,e){Me(e,pn(e),t);});var vl=/*#__PURE__*/function(){function vl(t,e,n){_classCallCheck(this,vl);this.view=t,this.document=t.document,this.domEvent=e,this.domTarget=e.target,Cl(this,n);}_createClass(vl,[{key:"target",get:function get(){return this.view.domConverter.mapDomToView(this.domTarget);}},{key:"preventDefault",value:function preventDefault(){this.domEvent.preventDefault();}},{key:"stopPropagation",value:function stopPropagation(){this.domEvent.stopPropagation();}}]);return vl;}();var yl=/*#__PURE__*/function(_l3){_inherits(yl,_l3);var _super52=_createSuper(yl);function yl(){var _this85;_classCallCheck(this,yl);_this85=_super52.apply(this,arguments),_this85.useCapture=!1;return _this85;}_createClass(yl,[{key:"observe",value:function observe(t){var _this86=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach(function(e){_this86.listenTo(t,e,function(t,e){_this86.isEnabled&&!_this86.checkShouldIgnoreEventFromTarget(e.target)&&_this86.onDomEvent(e);},{useCapture:_this86.useCapture});});}},{key:"stopObserving",value:function stopObserving(t){this.stopListening(t);}},{key:"fire",value:function fire(t,e,n){this.isEnabled&&this.document.fire(t,new vl(this.view,e,n));}}]);return yl;}(_l);var xl=/*#__PURE__*/function(_yl){_inherits(xl,_yl);var _super53=_createSuper(xl);function xl(){var _this87;_classCallCheck(this,xl);_this87=_super53.apply(this,arguments),_this87.domEventType=["keydown","keyup"];return _this87;}_createClass(xl,[{key:"onDomEvent",value:function onDomEvent(t){var e={keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return fi(this);}};this.fire(t.type,t,e);}}]);return xl;}(yl);var El=function El(){return rt.Date.now();};var Dl=/\s/;var Tl=function Tl(t){for(var e=t.length;e--&&Dl.test(t.charAt(e)););return e;};var Sl=/^\s+/;var Il=function Il(t){return t?t.slice(0,Tl(t)+1).replace(Sl,""):t;};var Ml=/^[-+]0x[0-9a-f]+$/i,Bl=/^0b[01]+$/i,Nl=/^0o[0-7]+$/i,zl=parseInt;var Pl=function Pl(t){if("number"==typeof t)return t;if(ds(t))return NaN;if(F(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=F(e)?e+"":e;}if("string"!=typeof t)return 0===t?t:+t;t=Il(t);var n=Bl.test(t);return n||Nl.test(t)?zl(t.slice(2),n?2:8):Ml.test(t)?NaN:+t;};var Ll=Math.max,Ol=Math.min;var Rl=function Rl(t,e,n){var o,i,r,s,a,l,c=0,d=!1,u=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function g(e){var n=o,r=i;return o=i=void 0,c=e,s=t.apply(r,n);}function m(t){var n=t-l;return void 0===l||n>=e||n<0||u&&t-c>=r;}function p(){var t=El();if(m(t))return f(t);a=setTimeout(p,function(t){var n=e-(t-l);return u?Ol(n,r-(t-c)):n;}(t));}function f(t){return a=void 0,h&&o?g(t):(o=i=void 0,s);}function k(){var t=El(),n=m(t);if(o=arguments,i=this,l=t,n){if(void 0===a)return function(t){return c=t,a=setTimeout(p,e),d?g(t):s;}(l);if(u)return clearTimeout(a),a=setTimeout(p,e),g(l);}return void 0===a&&(a=setTimeout(p,e)),s;}return e=Pl(e)||0,F(n)&&(d=!!n.leading,r=(u="maxWait"in n)?Ll(Pl(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),k.cancel=function(){void 0!==a&&clearTimeout(a),c=0,o=l=i=a=void 0;},k.flush=function(){return void 0===a?s:f(El());},k;};var jl=/*#__PURE__*/function(_l4){_inherits(jl,_l4);var _super54=_createSuper(jl);function jl(t){var _this88;_classCallCheck(this,jl);_this88=_super54.call(this,t),_this88._fireSelectionChangeDoneDebounced=Rl(function(t){_this88.document.fire("selectionChangeDone",t);},200);return _this88;}_createClass(jl,[{key:"observe",value:function observe(){var _this89=this;var t=this.document;t.on("arrowKey",function(e,n){t.selection.isFake&&_this89.isEnabled&&n.preventDefault();},{context:"$capture"}),t.on("arrowKey",function(e,n){t.selection.isFake&&_this89.isEnabled&&_this89._handleSelectionMove(n.keyCode);},{priority:"lowest"});}},{key:"stopObserving",value:function stopObserving(){}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(jl.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel();}},{key:"_handleSelectionMove",value:function _handleSelectionMove(t){var e=this.document.selection,n=new ka(e.getRanges(),{backward:e.isBackward,fake:!1});t!=mi.arrowleft&&t!=mi.arrowup||n.setTo(n.getFirstPosition()),t!=mi.arrowright&&t!=mi.arrowdown||n.setTo(n.getLastPosition());var o={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o);}}]);return jl;}(_l);var Fl=function Fl(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this;};var Vl=function Vl(t){return this.__data__.has(t);};function Hl(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ce();++e<n;)this.add(t[e]);}Hl.prototype.add=Hl.prototype.push=Fl,Hl.prototype.has=Vl;var Ul=Hl;var Wl=function Wl(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1;};var Gl=function Gl(t,e){return t.has(e);};var ql=function ql(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var u=-1,h=!0,g=2&n?new Ul():void 0;for(r.set(t,e),r.set(e,t);++u<a;){var m=t[u],p=e[u];if(o)var f=s?o(p,m,u,e,t,r):o(m,p,u,t,e,r);if(void 0!==f){if(f)continue;h=!1;break;}if(g){if(!Wl(e,function(t,e){if(!Gl(g,e)&&(m===t||i(m,t,n,o,r)))return g.push(e);})){h=!1;break;}}else if(m!==p&&!i(m,p,n,o,r)){h=!1;break;}}return r.delete(t),r.delete(e),h;};var $l=function $l(t){var e=-1,n=Array(t.size);return t.forEach(function(t,o){n[++e]=[o,t];}),n;};var Kl=function Kl(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t;}),n;};var Yl=st?st.prototype:void 0,Ql=Yl?Yl.valueOf:void 0;var Zl=function Zl(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Xn(t),new Xn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return St(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=$l;case"[object Set]":var l=1&o;if(a||(a=Kl),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=ql(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(Ql)return Ql.call(t)==Ql.call(e);}return!1;};var Jl=Object.prototype.hasOwnProperty;var Xl=function Xl(t,e,n,o,i,r){var s=1&n,a=Nn(t),l=a.length;if(l!=Nn(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:Jl.call(e,d)))return!1;}var u=r.get(t),h=r.get(e);if(u&&h)return u==e&&h==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=s;++c<l;){var p=t[d=a[c]],f=e[d];if(o)var k=s?o(f,p,d,e,t,r):o(p,f,d,t,e,r);if(!(void 0===k?p===f||i(p,f,n,o,r):k)){g=!1;break;}m||(m="constructor"==d);}if(g&&!m){var b=t.constructor,w=e.constructor;b==w||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof w&&w instanceof w||(g=!1);}return r.delete(t),r.delete(e),g;};var tc="[object Arguments]",ec="[object Array]",nc="[object Object]",oc=Object.prototype.hasOwnProperty;var ic=function ic(t,e,n,o,i,r){var s=ft(t),a=ft(e),l=s?ec:Qn(t),c=a?ec:Qn(e),d=(l=l==tc?nc:l)==nc,u=(c=c==tc?nc:c)==nc,h=l==c;if(h&&He(t)){if(!He(e))return!1;s=!0,d=!1;}if(h&&!d)return r||(r=new xe()),s||tn(t)?ql(t,e,n,o,i,r):Zl(t,e,l,n,o,i,r);if(!(1&n)){var g=d&&oc.call(t,"__wrapped__"),m=u&&oc.call(e,"__wrapped__");if(g||m){var p=g?t.value():t,f=m?e.value():e;return r||(r=new xe()),i(p,f,n,o,r);}}return!!h&&(r||(r=new xe()),Xl(t,e,n,o,i,r));};var rc=function t(e,n,o,i,r){return e===n||(null==e||null==n||!kt(e)&&!kt(n)?e!=e&&n!=n:ic(e,n,o,i,t,r));};var sc=function sc(t,e,n){var o=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===o?rc(t,e,void 0,n):!!o;};var ac=/*#__PURE__*/function(_l5){_inherits(ac,_l5);var _super55=_createSuper(ac);function ac(t){var _this90;_classCallCheck(this,ac);_this90=_super55.call(this,t),_this90._config={childList:!0,characterData:!0,subtree:!0},_this90.domConverter=t.domConverter,_this90.renderer=t._renderer,_this90._domElements=new Set(),_this90._mutationObserver=new window.MutationObserver(_this90._onMutations.bind(_assertThisInitialized(_this90)));return _this90;}_createClass(ac,[{key:"flush",value:function flush(){this._onMutations(this._mutationObserver.takeRecords());}},{key:"observe",value:function observe(t){this._domElements.add(t),this.isEnabled&&this._mutationObserver.observe(t,this._config);}},{key:"stopObserving",value:function stopObserving(t){if(this._domElements.delete(t),this.isEnabled){this._mutationObserver.disconnect();var _iterator115=_createForOfIteratorHelper(this._domElements),_step115;try{for(_iterator115.s();!(_step115=_iterator115.n()).done;){var _t98=_step115.value;this._mutationObserver.observe(_t98,this._config);}}catch(err){_iterator115.e(err);}finally{_iterator115.f();}}}},{key:"enable",value:function enable(){_get(_getPrototypeOf(ac.prototype),"enable",this).call(this);var _iterator116=_createForOfIteratorHelper(this._domElements),_step116;try{for(_iterator116.s();!(_step116=_iterator116.n()).done;){var _t99=_step116.value;this._mutationObserver.observe(_t99,this._config);}}catch(err){_iterator116.e(err);}finally{_iterator116.f();}}},{key:"disable",value:function disable(){_get(_getPrototypeOf(ac.prototype),"disable",this).call(this),this._mutationObserver.disconnect();}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(ac.prototype),"destroy",this).call(this),this._mutationObserver.disconnect();}},{key:"_onMutations",value:function _onMutations(t){if(0===t.length)return;var e=this.domConverter,n=new Set(),o=new Set();var _iterator117=_createForOfIteratorHelper(t),_step117;try{for(_iterator117.s();!(_step117=_iterator117.n()).done;){var _n80=_step117.value;var _t100=e.mapDomToView(_n80.target);_t100&&(_t100.is("uiElement")||_t100.is("rawElement")||"childList"!==_n80.type||this._isBogusBrMutation(_n80)||o.add(_t100));}}catch(err){_iterator117.e(err);}finally{_iterator117.f();}var _iterator118=_createForOfIteratorHelper(t),_step118;try{for(_iterator118.s();!(_step118=_iterator118.n()).done;){var _i51=_step118.value;var _t101=e.mapDomToView(_i51.target);if((!_t101||!_t101.is("uiElement")&&!_t101.is("rawElement"))&&"characterData"===_i51.type){var _t102=e.findCorrespondingViewText(_i51.target);_t102&&!o.has(_t102.parent)?n.add(_t102):!_t102&&tl(_i51.target)&&o.add(e.mapDomToView(_i51.target.parentNode));}}}catch(err){_iterator118.e(err);}finally{_iterator118.f();}var i=!1;var _iterator119=_createForOfIteratorHelper(n),_step119;try{for(_iterator119.s();!(_step119=_iterator119.n()).done;){var _t103=_step119.value;i=!0,this.renderer.markToSync("text",_t103);}}catch(err){_iterator119.e(err);}finally{_iterator119.f();}var _iterator120=_createForOfIteratorHelper(o),_step120;try{for(_iterator120.s();!(_step120=_iterator120.n()).done;){var _t104=_step120.value;var _n81=e.mapViewToDom(_t104),_o50=Array.from(_t104.getChildren()),_r19=Array.from(e.domChildrenToView(_n81,{withChildren:!1}));sc(_o50,_r19,lc)||(i=!0,this.renderer.markToSync("children",_t104));}}catch(err){_iterator120.e(err);}finally{_iterator120.f();}i&&this.view.forceRender();}},{key:"_isBogusBrMutation",value:function _isBogusBrMutation(t){var e=null;return null===t.nextSibling&&0===t.removedNodes.length&&1==t.addedNodes.length&&(e=this.domConverter.domToView(t.addedNodes[0],{withChildren:!1})),e&&e.is("element","br");}}]);return ac;}(_l);function lc(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data;}var cc=/*#__PURE__*/function(_yl2){_inherits(cc,_yl2);var _super56=_createSuper(cc);function cc(t){var _this91;_classCallCheck(this,cc);_this91=_super56.call(this,t),_this91._isFocusChanging=!1,_this91.domEventType=["focus","blur"],_this91.useCapture=!0;var e=_this91.document;e.on("focus",function(){_this91._isFocusChanging=!0,_this91._renderTimeoutId=setTimeout(function(){_this91.flush(),t.change(function(){});},50);}),e.on("blur",function(n,o){var i=e.selection.editableElement;null!==i&&i!==o.target||(e.isFocused=!1,_this91._isFocusChanging=!1,t.change(function(){}));});return _this91;}_createClass(cc,[{key:"flush",value:function flush(){this._isFocusChanging&&(this._isFocusChanging=!1,this.document.isFocused=!0);}},{key:"onDomEvent",value:function onDomEvent(t){this.fire(t.type,t);}},{key:"destroy",value:function destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),_get(_getPrototypeOf(cc.prototype),"destroy",this).call(this);}}]);return cc;}(yl);var dc=/*#__PURE__*/function(_l6){_inherits(dc,_l6);var _super57=_createSuper(dc);function dc(t){var _this92;_classCallCheck(this,dc);_this92=_super57.call(this,t),_this92.mutationObserver=t.getObserver(ac),_this92.focusObserver=t.getObserver(cc),_this92.selection=_this92.document.selection,_this92.domConverter=t.domConverter,_this92._documents=new WeakSet(),_this92._fireSelectionChangeDoneDebounced=Rl(function(t){_this92.document.fire("selectionChangeDone",t);},200),_this92._clearInfiniteLoopInterval=setInterval(function(){return _this92._clearInfiniteLoop();},1e3),_this92._documentIsSelectingInactivityTimeoutDebounced=Rl(function(){return _this92.document.isSelecting=!1;},5e3),_this92._loopbackCounter=0;return _this92;}_createClass(dc,[{key:"observe",value:function observe(t){var _this93=this;var e=t.ownerDocument,n=function n(){_this93.document.isSelecting&&(_this93._handleSelectionChange(null,e),_this93.document.isSelecting=!1,_this93._documentIsSelectingInactivityTimeoutDebounced.cancel());};this.listenTo(t,"selectstart",function(){_this93.document.isSelecting=!0,_this93._documentIsSelectingInactivityTimeoutDebounced();},{priority:"highest"}),this.listenTo(t,"keydown",n,{priority:"highest",useCapture:!0}),this.listenTo(t,"keyup",n,{priority:"highest",useCapture:!0}),this._documents.has(e)||(this.listenTo(e,"mouseup",n,{priority:"highest",useCapture:!0}),this.listenTo(e,"selectionchange",function(t,n){_this93.document.isComposing&&!l.isAndroid||(_this93._handleSelectionChange(n,e),_this93._documentIsSelectingInactivityTimeoutDebounced());}),this._documents.add(e));}},{key:"stopObserving",value:function stopObserving(t){this.stopListening(t);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(dc.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel();}},{key:"_reportInfiniteLoop",value:function _reportInfiniteLoop(){}},{key:"_handleSelectionChange",value:function _handleSelectionChange(t,e){if(!this.isEnabled)return;var n=e.defaultView.getSelection();if(this.checkShouldIgnoreEventFromTarget(n.anchorNode))return;this.mutationObserver.flush();var o=this.domConverter.domSelectionToView(n);if(0!=o.rangeCount){if(this.view.hasDomSelection=!0,!this.selection.isEqual(o)||!this.domConverter.isDomSelectionCorrect(n))if(++this._loopbackCounter>60)this._reportInfiniteLoop();else if(this.focusObserver.flush(),this.selection.isSimilar(o))this.view.forceRender();else{var _t105={oldSelection:this.selection,newSelection:o,domSelection:n};this.document.fire("selectionChange",_t105),this._fireSelectionChangeDoneDebounced(_t105);}}else this.view.hasDomSelection=!1;}},{key:"_clearInfiniteLoop",value:function _clearInfiniteLoop(){this._loopbackCounter=0;}}]);return dc;}(_l);var uc=/*#__PURE__*/function(_yl3){_inherits(uc,_yl3);var _super58=_createSuper(uc);function uc(t){var _this94;_classCallCheck(this,uc);_this94=_super58.call(this,t),_this94.domEventType=["compositionstart","compositionupdate","compositionend"];var e=_this94.document;e.on("compositionstart",function(){e.isComposing=!0;},{priority:"low"}),e.on("compositionend",function(){e.isComposing=!1;},{priority:"low"});return _this94;}_createClass(uc,[{key:"onDomEvent",value:function onDomEvent(t){this.fire(t.type,t,{data:t.data});}}]);return uc;}(yl);var hc=/*#__PURE__*/function(){function hc(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,hc);this._files=e.cacheFiles?gc(t):null,this._native=t;}_createClass(hc,[{key:"files",get:function get(){return this._files||(this._files=gc(this._native)),this._files;}},{key:"types",get:function get(){return this._native.types;}},{key:"getData",value:function getData(t){return this._native.getData(t);}},{key:"setData",value:function setData(t,e){this._native.setData(t,e);}},{key:"effectAllowed",get:function get(){return this._native.effectAllowed;},set:function set(t){this._native.effectAllowed=t;}},{key:"dropEffect",get:function get(){return this._native.dropEffect;},set:function set(t){this._native.dropEffect=t;}},{key:"isCanceled",get:function get(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled;}}]);return hc;}();function gc(t){var e=Array.from(t.files||[]),n=Array.from(t.items||[]);return e.length?e:n.filter(function(t){return"file"===t.kind;}).map(function(t){return t.getAsFile();});}var mc=/*#__PURE__*/function(_yl4){_inherits(mc,_yl4);var _super59=_createSuper(mc);function mc(){var _this95;_classCallCheck(this,mc);_this95=_super59.apply(this,arguments),_this95.domEventType="beforeinput";return _this95;}_createClass(mc,[{key:"onDomEvent",value:function onDomEvent(t){var e=t.getTargetRanges(),n=this.view,o=n.document;var i=null,r=null,s=[];if(t.dataTransfer&&(i=new hc(t.dataTransfer)),null!==t.data?r=t.data:i&&(r=i.getData("text/plain")),o.selection.isFake)s=Array.from(o.selection.getRanges());else if(e.length)s=e.map(function(t){return n.domConverter.domRangeToView(t);});else if(l.isAndroid){var _e96=t.target.ownerDocument.defaultView.getSelection();s=Array.from(n.domConverter.domSelectionToView(_e96).getRanges());}if(l.isAndroid&&"insertCompositionText"==t.inputType&&r&&r.endsWith("\n"))this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:[n.createRange(s[0].end)]});else if("insertText"==t.inputType&&r&&r.includes("\n")){var _e97=r.split(/\n{1,2}/g);var _n82=s;for(var _r20=0;_r20<_e97.length;_r20++){var _s11=_e97[_r20];""!=_s11&&(this.fire(t.type,t,{data:_s11,dataTransfer:i,targetRanges:_n82,inputType:t.inputType,isComposing:t.isComposing}),_n82=[o.selection.getFirstRange()]),_r20+1<_e97.length&&(this.fire(t.type,t,{inputType:"insertParagraph",targetRanges:_n82}),_n82=[o.selection.getFirstRange()]);}}else this.fire(t.type,t,{data:r,dataTransfer:i,targetRanges:s,inputType:t.inputType,isComposing:t.isComposing});}}]);return mc;}(yl);var pc=/*#__PURE__*/function(_l7){_inherits(pc,_l7);var _super60=_createSuper(pc);function pc(t){var _this96;_classCallCheck(this,pc);_this96=_super60.call(this,t),_this96.document.on("keydown",function(t,e){if(_this96.isEnabled&&((n=e.keyCode)==mi.arrowright||n==mi.arrowleft||n==mi.arrowup||n==mi.arrowdown)){var _n83=new wa(_this96.document,"arrowKey",_this96.document.selection.getFirstRange());_this96.document.fire(_n83,e),_n83.stop.called&&t.stop();}var n;});return _this96;}_createClass(pc,[{key:"observe",value:function observe(){}},{key:"stopObserving",value:function stopObserving(){}}]);return pc;}(_l);var fc=/*#__PURE__*/function(_l8){_inherits(fc,_l8);var _super61=_createSuper(fc);function fc(t){var _this97;_classCallCheck(this,fc);_this97=_super61.call(this,t);var e=_this97.document;e.on("keydown",function(t,n){if(!_this97.isEnabled||n.keyCode!=mi.tab||n.ctrlKey)return;var o=new wa(e,"tab",e.selection.getFirstRange());e.fire(o,n),o.stop.called&&t.stop();});return _this97;}_createClass(fc,[{key:"observe",value:function observe(){}},{key:"stopObserving",value:function stopObserving(){}}]);return fc;}(_l);var kc=/*#__PURE__*/function(_$6){_inherits(kc,_$6);var _super62=_createSuper(kc);function kc(t){var _this98;_classCallCheck(this,kc);_this98=_super62.call(this),_this98.domRoots=new Map(),_this98._initialDomRootAttributes=new WeakMap(),_this98._observers=new Map(),_this98._ongoingChange=!1,_this98._postFixersInProgress=!1,_this98._renderingDisabled=!1,_this98._hasChangedSinceTheLastRendering=!1,_this98.document=new Ea(t),_this98.domConverter=new kl(_this98.document),_this98.set("isRenderingInProgress",!1),_this98.set("hasDomSelection",!1),_this98._renderer=new sl(_this98.domConverter,_this98.document.selection),_this98._renderer.bind("isFocused","isSelecting","isComposing").to(_this98.document,"isFocused","isSelecting","isComposing"),_this98._writer=new Ra(_this98.document),_this98.addObserver(ac),_this98.addObserver(cc),_this98.addObserver(dc),_this98.addObserver(xl),_this98.addObserver(jl),_this98.addObserver(uc),_this98.addObserver(pc),_this98.addObserver(mc),_this98.addObserver(fc),_this98.document.on("arrowKey",ol,{priority:"low"}),Na(_assertThisInitialized(_this98)),_this98.on("render",function(){_this98._render(),_this98.document.fire("layoutChanged"),_this98._hasChangedSinceTheLastRendering=!1;}),_this98.listenTo(_this98.document.selection,"change",function(){_this98._hasChangedSinceTheLastRendering=!0;}),_this98.listenTo(_this98.document,"change:isFocused",function(){_this98._hasChangedSinceTheLastRendering=!0;});return _this98;}_createClass(kc,[{key:"attachDomRoot",value:function attachDomRoot(t){var _this99=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"main";var n=this.document.getRoot(e);n._name=t.tagName.toLowerCase();var o={};for(var _i52=0,_Array$from4=Array.from(t.attributes);_i52<_Array$from4.length;_i52++){var _Array$from4$_i=_Array$from4[_i52],_e98=_Array$from4$_i.name,_i53=_Array$from4$_i.value;o[_e98]=_i53,"class"===_e98?this._writer.addClass(_i53.split(" "),n):this._writer.setAttribute(_e98,_i53,n);}this._initialDomRootAttributes.set(t,o);var i=function i(){_this99._writer.setAttribute("contenteditable",(!n.isReadOnly).toString(),n),n.isReadOnly?_this99._writer.addClass("ck-read-only",n):_this99._writer.removeClass("ck-read-only",n);};i(),this.domRoots.set(e,t),this.domConverter.bindElements(t,n),this._renderer.markToSync("children",n),this._renderer.markToSync("attributes",n),this._renderer.domDocuments.add(t.ownerDocument),n.on("change:children",function(t,e){return _this99._renderer.markToSync("children",e);}),n.on("change:attributes",function(t,e){return _this99._renderer.markToSync("attributes",e);}),n.on("change:text",function(t,e){return _this99._renderer.markToSync("text",e);}),n.on("change:isReadOnly",function(){return _this99.change(i);}),n.on("change",function(){_this99._hasChangedSinceTheLastRendering=!0;});var _iterator121=_createForOfIteratorHelper(this._observers.values()),_step121;try{for(_iterator121.s();!(_step121=_iterator121.n()).done;){var _n84=_step121.value;_n84.observe(t,e);}}catch(err){_iterator121.e(err);}finally{_iterator121.f();}}},{key:"detachDomRoot",value:function detachDomRoot(t){var e=this.domRoots.get(t);Array.from(e.attributes).forEach(function(_ref28){var t=_ref28.name;return e.removeAttribute(t);});var n=this._initialDomRootAttributes.get(e);for(var _t106 in n)e.setAttribute(_t106,n[_t106]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e);var _iterator122=_createForOfIteratorHelper(this._observers.values()),_step122;try{for(_iterator122.s();!(_step122=_iterator122.n()).done;){var _t107=_step122.value;_t107.stopObserving(e);}}catch(err){_iterator122.e(err);}finally{_iterator122.f();}}},{key:"getDomRoot",value:function getDomRoot(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"main";return this.domRoots.get(t);}},{key:"addObserver",value:function addObserver(t){var e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);var _iterator123=_createForOfIteratorHelper(this.domRoots),_step123;try{for(_iterator123.s();!(_step123=_iterator123.n()).done;){var _step123$value=_slicedToArray(_step123.value,2),_t108=_step123$value[0],_n85=_step123$value[1];e.observe(_n85,_t108);}}catch(err){_iterator123.e(err);}finally{_iterator123.f();}return e.enable(),e;}},{key:"getObserver",value:function getObserver(t){return this._observers.get(t);}},{key:"disableObservers",value:function disableObservers(){var _iterator124=_createForOfIteratorHelper(this._observers.values()),_step124;try{for(_iterator124.s();!(_step124=_iterator124.n()).done;){var _t109=_step124.value;_t109.disable();}}catch(err){_iterator124.e(err);}finally{_iterator124.f();}}},{key:"enableObservers",value:function enableObservers(){var _iterator125=_createForOfIteratorHelper(this._observers.values()),_step125;try{for(_iterator125.s();!(_step125=_iterator125.n()).done;){var _t110=_step125.value;_t110.enable();}}catch(err){_iterator125.e(err);}finally{_iterator125.f();}}},{key:"scrollToTheSelection",value:function scrollToTheSelection(){var _ref29=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},t=_ref29.alignToTop,e=_ref29.forceScroll,_ref29$viewportOffset=_ref29.viewportOffset,n=_ref29$viewportOffset===void 0?20:_ref29$viewportOffset,_ref29$ancestorOffset=_ref29.ancestorOffset,o=_ref29$ancestorOffset===void 0?20:_ref29$ancestorOffset;var i=this.document.selection.getFirstRange();i&&function(_ref30){var t=_ref30.target,_ref30$viewportOffset=_ref30.viewportOffset,e=_ref30$viewportOffset===void 0?0:_ref30$viewportOffset,_ref30$ancestorOffset=_ref30.ancestorOffset,n=_ref30$ancestorOffset===void 0?0:_ref30$ancestorOffset,o=_ref30.alignToTop,i=_ref30.forceScroll;var r=ci(t);var s=r,a=null;for(;s;){var _l9=void 0;_l9=di(s==r?t:a),ii({parent:_l9,getRect:function getRect(){return ui(t,s);},alignToTop:o,ancestorOffset:n,forceScroll:i});var _c2=ui(t,s);if(oi({window:s,rect:_c2,viewportOffset:e,alignToTop:o,forceScroll:i}),s.parent!=s){if(a=s.frameElement,s=s.parent,!a)return;}else s=null;}}({target:this.domConverter.viewRangeToDom(i),viewportOffset:n,ancestorOffset:o,alignToTop:t,forceScroll:e});}},{key:"focus",value:function focus(){if(!this.document.isFocused){var _t111=this.document.selection.editableElement;_t111&&(this.domConverter.focus(_t111),this.forceRender());}}},{key:"change",value:function change(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new _("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;var _e99=t(this._writer);return this._ongoingChange=!1,!this._renderingDisabled&&this._hasChangedSinceTheLastRendering&&(this._postFixersInProgress=!0,this.document._callPostFixers(this._writer),this._postFixersInProgress=!1,this.fire("render")),_e99;}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"forceRender",value:function forceRender(){this._hasChangedSinceTheLastRendering=!0,this.getObserver(cc).flush(),this.change(function(){});}},{key:"destroy",value:function destroy(){var _iterator126=_createForOfIteratorHelper(this._observers.values()),_step126;try{for(_iterator126.s();!(_step126=_iterator126.n()).done;){var _t112=_step126.value;_t112.destroy();}}catch(err){_iterator126.e(err);}finally{_iterator126.f();}this.document.destroy(),this.stopListening();}},{key:"createPositionAt",value:function createPositionAt(t,e){return ma._createAt(t,e);}},{key:"createPositionAfter",value:function createPositionAfter(t){return ma._createAfter(t);}},{key:"createPositionBefore",value:function createPositionBefore(t){return ma._createBefore(t);}},{key:"createRange",value:function createRange(t,e){return new pa(t,e);}},{key:"createRangeOn",value:function createRangeOn(t){return pa._createOn(t);}},{key:"createRangeIn",value:function createRangeIn(t){return pa._createIn(t);}},{key:"createSelection",value:function createSelection(){for(var _len21=arguments.length,t=new Array(_len21),_key21=0;_key21<_len21;_key21++){t[_key21]=arguments[_key21];}return _construct(ka,t);}},{key:"_disableRendering",value:function _disableRendering(t){this._renderingDisabled=t,0==t&&this.change(function(){});}},{key:"_render",value:function _render(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1;}}]);return kc;}($());var bc=/*#__PURE__*/function(){function bc(){_classCallCheck(this,bc);}_createClass(bc,[{key:"is",value:function is(){throw new Error("is() method is abstract");}}]);return bc;}();var wc=/*#__PURE__*/function(_bc){_inherits(wc,_bc);var _super63=_createSuper(wc);function wc(t){var _this100;_classCallCheck(this,wc);_this100=_super63.call(this),_this100.parent=null,_this100._attrs=Si(t);return _this100;}_createClass(wc,[{key:"document",get:function get(){return null;}},{key:"index",get:function get(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new _("model-node-not-found-in-parent",this);return t;}},{key:"startOffset",get:function get(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new _("model-node-not-found-in-parent",this);return t;}},{key:"offsetSize",get:function get(){return 1;}},{key:"endOffset",get:function get(){return this.parent?this.startOffset+this.offsetSize:null;}},{key:"nextSibling",get:function get(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null;}},{key:"previousSibling",get:function get(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null;}},{key:"root",get:function get(){var t=this;for(;t.parent;)t=t.parent;return t;}},{key:"isAttached",value:function isAttached(){return null!==this.parent&&this.root.isAttached();}},{key:"getPath",value:function getPath(){var t=[];var e=this;for(;e.parent;)t.unshift(e.startOffset),e=e.parent;return t;}},{key:"getAncestors",value:function getAncestors(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=[];var n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e;}},{key:"getCommonAncestor",value:function getCommonAncestor(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.getAncestors(e),o=t.getAncestors(e);var i=0;for(;n[i]==o[i]&&n[i];)i++;return 0===i?null:n[i-1];}},{key:"isBefore",value:function isBefore(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),o=et(e,n);switch(o){case"prefix":return!0;case"extension":return!1;default:return e[o]<n[o];}}},{key:"isAfter",value:function isAfter(t){return this!=t&&this.root===t.root&&!this.isBefore(t);}},{key:"hasAttribute",value:function hasAttribute(t){return this._attrs.has(t);}},{key:"getAttribute",value:function getAttribute(t){return this._attrs.get(t);}},{key:"getAttributes",value:function getAttributes(){return this._attrs.entries();}},{key:"getAttributeKeys",value:function getAttributeKeys(){return this._attrs.keys();}},{key:"toJSON",value:function toJSON(){var t={};return this._attrs.size&&(t.attributes=Array.from(this._attrs).reduce(function(t,e){return t[e[0]]=e[1],t;},{})),t;}},{key:"_clone",value:function _clone(t){return new this.constructor(this._attrs);}},{key:"_remove",value:function _remove(){this.parent._removeChildren(this.index);}},{key:"_setAttribute",value:function _setAttribute(t,e){this._attrs.set(t,e);}},{key:"_setAttributesTo",value:function _setAttributesTo(t){this._attrs=Si(t);}},{key:"_removeAttribute",value:function _removeAttribute(t){return this._attrs.delete(t);}},{key:"_clearAttributes",value:function _clearAttributes(){this._attrs.clear();}}]);return wc;}(bc);wc.prototype.is=function(t){return"node"===t||"model:node"===t;};var Ac=/*#__PURE__*/function(_Symbol$iterator6){function Ac(t){_classCallCheck(this,Ac);this._nodes=[],t&&this._insertNodes(0,t);}_createClass(Ac,[{key:_Symbol$iterator6,value:function value(){return this._nodes[Symbol.iterator]();}},{key:"length",get:function get(){return this._nodes.length;}},{key:"maxOffset",get:function get(){return this._nodes.reduce(function(t,e){return t+e.offsetSize;},0);}},{key:"getNode",value:function getNode(t){return this._nodes[t]||null;}},{key:"getNodeIndex",value:function getNodeIndex(t){var e=this._nodes.indexOf(t);return-1==e?null:e;}},{key:"getNodeStartOffset",value:function getNodeStartOffset(t){var e=this.getNodeIndex(t);return null===e?null:this._nodes.slice(0,e).reduce(function(t,e){return t+e.offsetSize;},0);}},{key:"indexToOffset",value:function indexToOffset(t){if(t==this._nodes.length)return this.maxOffset;var e=this._nodes[t];if(!e)throw new _("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e);}},{key:"offsetToIndex",value:function offsetToIndex(t){var e=0;var _iterator127=_createForOfIteratorHelper(this._nodes),_step127;try{for(_iterator127.s();!(_step127=_iterator127.n()).done;){var _n86=_step127.value;if(t>=e&&t<e+_n86.offsetSize)return this.getNodeIndex(_n86);e+=_n86.offsetSize;}}catch(err){_iterator127.e(err);}finally{_iterator127.f();}if(e!=t)throw new _("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length;}},{key:"_insertNodes",value:function _insertNodes(t,e){var _iterator128=_createForOfIteratorHelper(e),_step128;try{for(_iterator128.s();!(_step128=_iterator128.n()).done;){var _t113=_step128.value;if(!(_t113 instanceof wc))throw new _("model-nodelist-insertnodes-not-node",this);}}catch(err){_iterator128.e(err);}finally{_iterator128.f();}this._nodes=function(t,e,n,o){if(Math.max(e.length,t.length)>1e4)return t.slice(0,n).concat(e).concat(t.slice(n+o,t.length));{var _i54=Array.from(t);return _i54.splice.apply(_i54,[n,o].concat(_toConsumableArray(e))),_i54;}}(this._nodes,Array.from(e),t,0);}},{key:"_removeNodes",value:function _removeNodes(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;return this._nodes.splice(t,e);}},{key:"toJSON",value:function toJSON(){return this._nodes.map(function(t){return t.toJSON();});}}]);return Ac;}(Symbol.iterator);var _c=/*#__PURE__*/function(_wc){_inherits(_c,_wc);var _super64=_createSuper(_c);function _c(t,e){var _this101;_classCallCheck(this,_c);_this101=_super64.call(this,e),_this101._data=t||"";return _this101;}_createClass(_c,[{key:"offsetSize",get:function get(){return this.data.length;}},{key:"data",get:function get(){return this._data;}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(_c.prototype),"toJSON",this).call(this);return t.data=this.data,t;}},{key:"_clone",value:function _clone(){return new _c(this.data,this.getAttributes());}}],[{key:"fromJSON",value:function fromJSON(t){return new _c(t.data,t.attributes);}}]);return _c;}(wc);_c.prototype.is=function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t;};var Cc=/*#__PURE__*/function(_bc2){_inherits(Cc,_bc2);var _super65=_createSuper(Cc);function Cc(t,e,n){var _this102;_classCallCheck(this,Cc);if(_this102=_super65.call(this),_this102.textNode=t,e<0||e>t.offsetSize)throw new _("model-textproxy-wrong-offsetintext",_assertThisInitialized(_this102));if(n<0||e+n>t.offsetSize)throw new _("model-textproxy-wrong-length",_assertThisInitialized(_this102));_this102.data=t.data.substring(e,e+n),_this102.offsetInText=e;return _possibleConstructorReturn(_this102);}_createClass(Cc,[{key:"startOffset",get:function get(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null;}},{key:"offsetSize",get:function get(){return this.data.length;}},{key:"endOffset",get:function get(){return null!==this.startOffset?this.startOffset+this.offsetSize:null;}},{key:"isPartial",get:function get(){return this.offsetSize!==this.textNode.offsetSize;}},{key:"parent",get:function get(){return this.textNode.parent;}},{key:"root",get:function get(){return this.textNode.root;}},{key:"getPath",value:function getPath(){var t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t;}},{key:"getAncestors",value:function getAncestors(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=[];var n=t.includeSelf?this:this.parent;for(;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e;}},{key:"hasAttribute",value:function hasAttribute(t){return this.textNode.hasAttribute(t);}},{key:"getAttribute",value:function getAttribute(t){return this.textNode.getAttribute(t);}},{key:"getAttributes",value:function getAttributes(){return this.textNode.getAttributes();}},{key:"getAttributeKeys",value:function getAttributeKeys(){return this.textNode.getAttributeKeys();}}]);return Cc;}(bc);Cc.prototype.is=function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t;};var vc=/*#__PURE__*/function(_wc2){_inherits(vc,_wc2);var _super66=_createSuper(vc);function vc(t,e,n){var _this103;_classCallCheck(this,vc);_this103=_super66.call(this,e),_this103._children=new Ac(),_this103.name=t,n&&_this103._insertChild(0,n);return _this103;}_createClass(vc,[{key:"childCount",get:function get(){return this._children.length;}},{key:"maxOffset",get:function get(){return this._children.maxOffset;}},{key:"isEmpty",get:function get(){return 0===this.childCount;}},{key:"getChild",value:function getChild(t){return this._children.getNode(t);}},{key:"getChildren",value:function getChildren(){return this._children[Symbol.iterator]();}},{key:"getChildIndex",value:function getChildIndex(t){return this._children.getNodeIndex(t);}},{key:"getChildStartOffset",value:function getChildStartOffset(t){return this._children.getNodeStartOffset(t);}},{key:"offsetToIndex",value:function offsetToIndex(t){return this._children.offsetToIndex(t);}},{key:"getNodeByPath",value:function getNodeByPath(t){var e=this;var _iterator129=_createForOfIteratorHelper(t),_step129;try{for(_iterator129.s();!(_step129=_iterator129.n()).done;){var _n87=_step129.value;e=e.getChild(e.offsetToIndex(_n87));}}catch(err){_iterator129.e(err);}finally{_iterator129.f();}return e;}},{key:"findAncestor",value:function findAncestor(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=e.includeSelf?this:this.parent;for(;n;){if(n.name===t)return n;n=n.parent;}return null;}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(vc.prototype),"toJSON",this).call(this);if(t.name=this.name,this._children.length>0){t.children=[];var _iterator130=_createForOfIteratorHelper(this._children),_step130;try{for(_iterator130.s();!(_step130=_iterator130.n()).done;){var _e100=_step130.value;t.children.push(_e100.toJSON());}}catch(err){_iterator130.e(err);}finally{_iterator130.f();}}return t;}},{key:"_clone",value:function _clone(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;var e=t?Array.from(this._children).map(function(t){return t._clone(!0);}):void 0;return new vc(this.name,this.getAttributes(),e);}},{key:"_appendChild",value:function _appendChild(t){this._insertChild(this.childCount,t);}},{key:"_insertChild",value:function _insertChild(t,e){var n=function(t){if("string"==typeof t)return[new _c(t)];nt(t)||(t=[t]);return Array.from(t).map(function(t){return"string"==typeof t?new _c(t):t instanceof Cc?new _c(t.data,t.getAttributes()):t;});}(e);var _iterator131=_createForOfIteratorHelper(n),_step131;try{for(_iterator131.s();!(_step131=_iterator131.n()).done;){var _t114=_step131.value;null!==_t114.parent&&_t114._remove(),_t114.parent=this;}}catch(err){_iterator131.e(err);}finally{_iterator131.f();}this._children._insertNodes(t,n);}},{key:"_removeChildren",value:function _removeChildren(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=this._children._removeNodes(t,e);var _iterator132=_createForOfIteratorHelper(n),_step132;try{for(_iterator132.s();!(_step132=_iterator132.n()).done;){var _t115=_step132.value;_t115.parent=null;}}catch(err){_iterator132.e(err);}finally{_iterator132.f();}return n;}}],[{key:"fromJSON",value:function fromJSON(t){var e;if(t.children){e=[];var _iterator133=_createForOfIteratorHelper(t.children),_step133;try{for(_iterator133.s();!(_step133=_iterator133.n()).done;){var _n88=_step133.value;_n88.name?e.push(vc.fromJSON(_n88)):e.push(_c.fromJSON(_n88));}}catch(err){_iterator133.e(err);}finally{_iterator133.f();}}return new vc(t.name,t.attributes,e);}}]);return vc;}(wc);vc.prototype.is=function(t,e){return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t;};var yc=/*#__PURE__*/function(_Symbol$iterator7){function yc(t){_classCallCheck(this,yc);if(!t||!t.boundaries&&!t.startPosition)throw new _("model-tree-walker-no-start-position",null);var e=t.direction||"forward";if("forward"!=e&&"backward"!=e)throw new _("model-tree-walker-unknown-direction",t,{direction:e});this.direction=e,this.boundaries=t.boundaries||null,t.startPosition?this._position=t.startPosition.clone():this._position=Ec._createAt(this.boundaries["backward"==this.direction?"end":"start"]),this.position.stickiness="toNone",this.singleCharacters=!!t.singleCharacters,this.shallow=!!t.shallow,this.ignoreElementEnd=!!t.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent;}_createClass(yc,[{key:_Symbol$iterator7,value:function value(){return this;}},{key:"position",get:function get(){return this._position;}},{key:"skip",value:function skip(t){var e,n,o,i;do{var _this$next;o=this.position,i=this._visitedParent,(_this$next=this.next(),e=_this$next.done,n=_this$next.value);}while(!e&&t(n));e||(this._position=o,this._visitedParent=i);}},{key:"next",value:function next(){return"forward"==this.direction?this._next():this._previous();}},{key:"_next",value:function _next(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0,value:void 0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0,value:void 0};var o=Dc(e,n),i=o||Tc(e,n,o);if(i instanceof vc)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=i),this._position=e,xc("elementStart",i,t,e,1);if(i instanceof _c){var _o51;if(this.singleCharacters)_o51=1;else{var _t116=i.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<_t116&&(_t116=this.boundaries.end.offset),_o51=_t116-e.offset;}var _r21=e.offset-i.startOffset,_s12=new Cc(i,_r21,_o51);return e.offset+=_o51,this._position=e,xc("text",_s12,t,e,_o51);}return e.path.pop(),e.offset++,this._position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():xc("elementEnd",n,t,e);}},{key:"_previous",value:function _previous(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0,value:void 0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0,value:void 0};var o=e.parent,i=Dc(e,o),r=i||Sc(e,o,i);if(r instanceof vc)return e.offset--,this.shallow?(this._position=e,xc("elementStart",r,t,e,1)):(e.path.push(r.maxOffset),this._position=e,this._visitedParent=r,this.ignoreElementEnd?this._previous():xc("elementEnd",r,t,e));if(r instanceof _c){var _o52;if(this.singleCharacters)_o52=1;else{var _t117=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>_t117&&(_t117=this.boundaries.start.offset),_o52=e.offset-_t117;}var _i55=e.offset-r.startOffset,_s13=new Cc(r,_i55-_o52,_o52);return e.offset-=_o52,this._position=e,xc("text",_s13,t,e,_o52);}return e.path.pop(),this._position=e,this._visitedParent=n.parent,xc("elementStart",n,t,e,1);}}]);return yc;}(Symbol.iterator);function xc(t,e,n,o,i){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:o,length:i}};}var Ec=/*#__PURE__*/function(_bc3){_inherits(Ec,_bc3);var _super67=_createSuper(Ec);function Ec(t,e){var _this104;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"toNone";_classCallCheck(this,Ec);if(_this104=_super67.call(this),!t.is("element")&&!t.is("documentFragment"))throw new _("model-position-root-invalid",t);if(!(e instanceof Array)||0===e.length)throw new _("model-position-path-incorrect-format",t,{path:e});t.is("rootElement")?e=e.slice():(e=[].concat(_toConsumableArray(t.getPath()),_toConsumableArray(e)),t=t.root),_this104.root=t,_this104.path=e,_this104.stickiness=n;return _possibleConstructorReturn(_this104);}_createClass(Ec,[{key:"offset",get:function get(){return this.path[this.path.length-1];},set:function set(t){this.path[this.path.length-1]=t;}},{key:"parent",get:function get(){var t=this.root;for(var _e101=0;_e101<this.path.length-1;_e101++)if(t=t.getChild(t.offsetToIndex(this.path[_e101])),!t)throw new _("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new _("model-position-path-incorrect",this,{position:this});return t;}},{key:"index",get:function get(){return this.parent.offsetToIndex(this.offset);}},{key:"textNode",get:function get(){return Dc(this,this.parent);}},{key:"nodeAfter",get:function get(){var t=this.parent;return Tc(this,t,Dc(this,t));}},{key:"nodeBefore",get:function get(){var t=this.parent;return Sc(this,t,Dc(this,t));}},{key:"isAtStart",get:function get(){return 0===this.offset;}},{key:"isAtEnd",get:function get(){return this.offset==this.parent.maxOffset;}},{key:"compareWith",value:function compareWith(t){if(this.root!=t.root)return"different";var e=et(this.path,t.path);switch(e){case"same":return"same";case"prefix":return"before";case"extension":return"after";default:return this.path[e]<t.path[e]?"before":"after";}}},{key:"getLastMatchingPosition",value:function getLastMatchingPosition(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};e.startPosition=this;var n=new yc(e);return n.skip(t),n.position;}},{key:"getParentPath",value:function getParentPath(){return this.path.slice(0,-1);}},{key:"getAncestors",value:function getAncestors(){var t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0});}},{key:"findAncestor",value:function findAncestor(t){var e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null;}},{key:"getCommonPath",value:function getCommonPath(t){if(this.root!=t.root)return[];var e=et(this.path,t.path),n="string"==typeof e?Math.min(this.path.length,t.path.length):e;return this.path.slice(0,n);}},{key:"getCommonAncestor",value:function getCommonAncestor(t){var e=this.getAncestors(),n=t.getAncestors();var o=0;for(;e[o]==n[o]&&e[o];)o++;return 0===o?null:e[o-1];}},{key:"getShiftedBy",value:function getShiftedBy(t){var e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e;}},{key:"isAfter",value:function isAfter(t){return"after"==this.compareWith(t);}},{key:"isBefore",value:function isBefore(t){return"before"==this.compareWith(t);}},{key:"isEqual",value:function isEqual(t){return"same"==this.compareWith(t);}},{key:"isTouching",value:function isTouching(t){if(this.root!==t.root)return!1;var e=Math.min(this.path.length,t.path.length);for(var _n89=0;_n89<e;_n89++){var _e102=this.path[_n89]-t.path[_n89];if(_e102<-1||_e102>1)return!1;if(1===_e102)return Ic(t,this,_n89);if(-1===_e102)return Ic(this,t,_n89);}return this.path.length===t.path.length||(this.path.length>t.path.length?Mc(this.path,e):Mc(t.path,e));}},{key:"hasSameParentAs",value:function hasSameParentAs(t){if(this.root!==t.root)return!1;return"same"==et(this.getParentPath(),t.getParentPath());}},{key:"getTransformedByOperation",value:function getTransformedByOperation(t){var e;switch(t.type){case"insert":e=this._getTransformedByInsertOperation(t);break;case"move":case"remove":case"reinsert":e=this._getTransformedByMoveOperation(t);break;case"split":e=this._getTransformedBySplitOperation(t);break;case"merge":e=this._getTransformedByMergeOperation(t);break;default:e=Ec._createAt(this);}return e;}},{key:"_getTransformedByInsertOperation",value:function _getTransformedByInsertOperation(t){return this._getTransformedByInsertion(t.position,t.howMany);}},{key:"_getTransformedByMoveOperation",value:function _getTransformedByMoveOperation(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany);}},{key:"_getTransformedBySplitOperation",value:function _getTransformedBySplitOperation(t){var e=t.movedRange;return e.containsPosition(this)||e.start.isEqual(this)&&"toNext"==this.stickiness?this._getCombined(t.splitPosition,t.moveTargetPosition):t.graveyardPosition?this._getTransformedByMove(t.graveyardPosition,t.insertionPosition,1):this._getTransformedByInsertion(t.insertionPosition,1);}},{key:"_getTransformedByMergeOperation",value:function _getTransformedByMergeOperation(t){var e=t.movedRange;var n;return e.containsPosition(this)||e.start.isEqual(this)?(n=this._getCombined(t.sourcePosition,t.targetPosition),t.sourcePosition.isBefore(t.targetPosition)&&(n=n._getTransformedByDeletion(t.deletionPosition,1))):n=this.isEqual(t.deletionPosition)?Ec._createAt(t.deletionPosition):this._getTransformedByMove(t.deletionPosition,t.graveyardPosition,1),n;}},{key:"_getTransformedByDeletion",value:function _getTransformedByDeletion(t,e){var n=Ec._createAt(this);if(this.root!=t.root)return n;if("same"==et(t.getParentPath(),this.getParentPath())){if(t.offset<this.offset){if(t.offset+e>this.offset)return null;n.offset-=e;}}else if("prefix"==et(t.getParentPath(),this.getParentPath())){var _o53=t.path.length-1;if(t.offset<=this.path[_o53]){if(t.offset+e>this.path[_o53])return null;n.path[_o53]-=e;}}return n;}},{key:"_getTransformedByInsertion",value:function _getTransformedByInsertion(t,e){var n=Ec._createAt(this);if(this.root!=t.root)return n;if("same"==et(t.getParentPath(),this.getParentPath()))(t.offset<this.offset||t.offset==this.offset&&"toPrevious"!=this.stickiness)&&(n.offset+=e);else if("prefix"==et(t.getParentPath(),this.getParentPath())){var _o54=t.path.length-1;t.offset<=this.path[_o54]&&(n.path[_o54]+=e);}return n;}},{key:"_getTransformedByMove",value:function _getTransformedByMove(t,e,n){if(e=e._getTransformedByDeletion(t,n),t.isEqual(e))return Ec._createAt(this);var o=this._getTransformedByDeletion(t,n);return null===o||t.isEqual(this)&&"toNext"==this.stickiness||t.getShiftedBy(n).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(t,e):o._getTransformedByInsertion(e,n);}},{key:"_getCombined",value:function _getCombined(t,e){var n=t.path.length-1,o=Ec._createAt(e);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[n]-t.offset,o.path=[].concat(_toConsumableArray(o.path),_toConsumableArray(this.path.slice(n+1))),o;}},{key:"toJSON",value:function toJSON(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness};}},{key:"clone",value:function clone(){return new this.constructor(this.root,this.path,this.stickiness);}}],[{key:"_createAt",value:function _createAt(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"toNone";if(t instanceof Ec)return new Ec(t.root,t.path,t.stickiness);{var _o55=t;if("end"==e)e=_o55.maxOffset;else{if("before"==e)return this._createBefore(_o55,n);if("after"==e)return this._createAfter(_o55,n);if(0!==e&&!e)throw new _("model-createpositionat-offset-required",[this,t]);}if(!_o55.is("element")&&!_o55.is("documentFragment"))throw new _("model-position-parent-incorrect",[this,t]);var _i56=_o55.getPath();return _i56.push(e),new this(_o55.root,_i56,n);}}},{key:"_createAfter",value:function _createAfter(t,e){if(!t.parent)throw new _("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e);}},{key:"_createBefore",value:function _createBefore(t,e){if(!t.parent)throw new _("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e);}},{key:"fromJSON",value:function fromJSON(t,e){if("$graveyard"===t.root){var _n90=new Ec(e.graveyard,t.path);return _n90.stickiness=t.stickiness,_n90;}if(!e.getRoot(t.root))throw new _("model-position-fromjson-no-root",e,{rootName:t.root});return new Ec(e.getRoot(t.root),t.path,t.stickiness);}}]);return Ec;}(bc);function Dc(t,e){var n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null;}function Tc(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset));}function Sc(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1);}function Ic(t,e,n){return n+1!==t.path.length&&!!Mc(e.path,n+1)&&!!function(t,e){var n=t.parent,o=t.path.length-1,i=0;for(;o>=e;){if(t.path[o]+i!==n.maxOffset)return!1;i=1,o--,n=n.parent;}return!0;}(t,n+1);}function Mc(t,e){for(;e<t.length;){if(0!==t[e])return!1;e++;}return!0;}Ec.prototype.is=function(t){return"position"===t||"model:position"===t;};var Bc=/*#__PURE__*/function(_bc4,_Symbol$iterator8){_inherits(Bc,_bc4);var _super68=_createSuper(Bc);function Bc(t,e){var _this105;_classCallCheck(this,Bc);_this105=_super68.call(this),_this105.start=Ec._createAt(t),_this105.end=e?Ec._createAt(e):Ec._createAt(t),_this105.start.stickiness=_this105.isCollapsed?"toNone":"toNext",_this105.end.stickiness=_this105.isCollapsed?"toNone":"toPrevious";return _this105;}_createClass(Bc,[{key:_Symbol$iterator8,value:/*#__PURE__*/_regeneratorRuntime().mark(function value(){return _regeneratorRuntime().wrap(function value$(_context17){while(1)switch(_context17.prev=_context17.next){case 0:return _context17.delegateYield(new yc({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return _context17.stop();}},value,this);})},{key:"isCollapsed",get:function get(){return this.start.isEqual(this.end);}},{key:"isFlat",get:function get(){return"same"==et(this.start.getParentPath(),this.end.getParentPath());}},{key:"root",get:function get(){return this.start.root;}},{key:"containsPosition",value:function containsPosition(t){return t.isAfter(this.start)&&t.isBefore(this.end);}},{key:"containsRange",value:function containsRange(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),o=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&o;}},{key:"containsItem",value:function containsItem(t){var e=Ec._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e);}},{key:"isEqual",value:function isEqual(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end);}},{key:"isIntersecting",value:function isIntersecting(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start);}},{key:"getDifference",value:function getDifference(t){var e=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&e.push(new Bc(this.start,t.start)),this.containsPosition(t.end)&&e.push(new Bc(t.end,this.end))):e.push(new Bc(this.start,this.end)),e;}},{key:"getIntersection",value:function getIntersection(t){if(this.isIntersecting(t)){var _e103=this.start,_n91=this.end;return this.containsPosition(t.start)&&(_e103=t.start),this.containsPosition(t.end)&&(_n91=t.end),new Bc(_e103,_n91);}return null;}},{key:"getJoined",value:function getJoined(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=this.isIntersecting(t);if(n||(n=this.start.isBefore(t.start)?e?this.end.isTouching(t.start):this.end.isEqual(t.start):e?t.end.isTouching(this.start):t.end.isEqual(this.start)),!n)return null;var o=this.start,i=this.end;return t.start.isBefore(o)&&(o=t.start),t.end.isAfter(i)&&(i=t.end),new Bc(o,i);}},{key:"getMinimalFlatRanges",value:function getMinimalFlatRanges(){var t=[],e=this.start.getCommonPath(this.end).length,n=Ec._createAt(this.start);var o=n.parent;for(;n.path.length>e+1;){var _e104=o.maxOffset-n.offset;0!==_e104&&t.push(new Bc(n,n.getShiftedBy(_e104))),n.path=n.path.slice(0,-1),n.offset++,o=o.parent;}for(;n.path.length<=this.end.path.length;){var _e105=this.end.path[n.path.length-1],_o56=_e105-n.offset;0!==_o56&&t.push(new Bc(n,n.getShiftedBy(_o56))),n.offset=_e105,n.path.push(0);}return t;}},{key:"getWalker",value:function getWalker(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return t.boundaries=this,new yc(t);}},{key:"getItems",value:function getItems(){var _this106=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return/*#__PURE__*/_regeneratorRuntime().mark(function _callee4(){var e,_iterator134,_step134,_t118;return _regeneratorRuntime().wrap(function _callee4$(_context18){while(1)switch(_context18.prev=_context18.next){case 0:t.boundaries=_this106,t.ignoreElementEnd=!0;e=new yc(t);_iterator134=_createForOfIteratorHelper(e);_context18.prev=3;_iterator134.s();case 5:if((_step134=_iterator134.n()).done){_context18.next=11;break;}_t118=_step134.value;_context18.next=9;return _t118.item;case 9:_context18.next=5;break;case 11:_context18.next=16;break;case 13:_context18.prev=13;_context18.t0=_context18["catch"](3);_iterator134.e(_context18.t0);case 16:_context18.prev=16;_iterator134.f();return _context18.finish(16);case 19:case"end":return _context18.stop();}},_callee4,null,[[3,13,16,19]]);})();}},{key:"getPositions",value:function getPositions(){var _this107=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return/*#__PURE__*/_regeneratorRuntime().mark(function _callee5(){var e,_iterator135,_step135,_t119;return _regeneratorRuntime().wrap(function _callee5$(_context19){while(1)switch(_context19.prev=_context19.next){case 0:t.boundaries=_this107;e=new yc(t);_context19.next=4;return e.position;case 4:_iterator135=_createForOfIteratorHelper(e);_context19.prev=5;_iterator135.s();case 7:if((_step135=_iterator135.n()).done){_context19.next=13;break;}_t119=_step135.value;_context19.next=11;return _t119.nextPosition;case 11:_context19.next=7;break;case 13:_context19.next=18;break;case 15:_context19.prev=15;_context19.t0=_context19["catch"](5);_iterator135.e(_context19.t0);case 18:_context19.prev=18;_iterator135.f();return _context19.finish(18);case 21:case"end":return _context19.stop();}},_callee5,null,[[5,15,18,21]]);})();}},{key:"getTransformedByOperation",value:function getTransformedByOperation(t){switch(t.type){case"insert":return this._getTransformedByInsertOperation(t);case"move":case"remove":case"reinsert":return this._getTransformedByMoveOperation(t);case"split":return[this._getTransformedBySplitOperation(t)];case"merge":return[this._getTransformedByMergeOperation(t)];}return[new Bc(this.start,this.end)];}},{key:"getTransformedByOperations",value:function getTransformedByOperations(t){var e=[new Bc(this.start,this.end)];var _iterator136=_createForOfIteratorHelper(t),_step136;try{for(_iterator136.s();!(_step136=_iterator136.n()).done;){var _n93=_step136.value;for(var _t122=0;_t122<e.length;_t122++){var _o58=e[_t122].getTransformedByOperation(_n93);e.splice.apply(e,[_t122,1].concat(_toConsumableArray(_o58))),_t122+=_o58.length-1;}}}catch(err){_iterator136.e(err);}finally{_iterator136.f();}for(var _t120=0;_t120<e.length;_t120++){var _n92=e[_t120];for(var _o57=_t120+1;_o57<e.length;_o57++){var _t121=e[_o57];(_n92.containsRange(_t121)||_t121.containsRange(_n92)||_n92.isEqual(_t121))&&e.splice(_o57,1);}}return e;}},{key:"getCommonAncestor",value:function getCommonAncestor(){return this.start.getCommonAncestor(this.end);}},{key:"getContainedElement",value:function getContainedElement(){if(this.isCollapsed)return null;var t=this.start.nodeAfter,e=this.end.nodeBefore;return t&&t.is("element")&&t===e?t:null;}},{key:"toJSON",value:function toJSON(){return{start:this.start.toJSON(),end:this.end.toJSON()};}},{key:"clone",value:function clone(){return new this.constructor(this.start,this.end);}},{key:"_getTransformedByInsertOperation",value:function _getTransformedByInsertOperation(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return this._getTransformedByInsertion(t.position,t.howMany,e);}},{key:"_getTransformedByMoveOperation",value:function _getTransformedByMoveOperation(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=t.sourcePosition,o=t.howMany,i=t.targetPosition;return this._getTransformedByMove(n,i,o,e);}},{key:"_getTransformedBySplitOperation",value:function _getTransformedBySplitOperation(t){var e=this.start._getTransformedBySplitOperation(t);var n=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(n=this.end.getShiftedBy(1)),e.root!=n.root&&(n=this.end.getShiftedBy(-1)),new Bc(e,n);}},{key:"_getTransformedByMergeOperation",value:function _getTransformedByMergeOperation(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new Bc(this.start);var e=this.start._getTransformedByMergeOperation(t),n=this.end._getTransformedByMergeOperation(t);return e.root!=n.root&&(n=this.end.getShiftedBy(-1)),e.isAfter(n)?(t.sourcePosition.isBefore(t.targetPosition)?(e=Ec._createAt(n),e.offset=0):(t.deletionPosition.isEqual(e)||(n=t.deletionPosition),e=t.targetPosition),new Bc(e,n)):new Bc(e,n);}},{key:"_getTransformedByInsertion",value:function _getTransformedByInsertion(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;if(n&&this.containsPosition(t))return[new Bc(this.start,t),new Bc(t.getShiftedBy(e),this.end._getTransformedByInsertion(t,e))];{var _n94=new Bc(this.start,this.end);return _n94.start=_n94.start._getTransformedByInsertion(t,e),_n94.end=_n94.end._getTransformedByInsertion(t,e),[_n94];}}},{key:"_getTransformedByMove",value:function _getTransformedByMove(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!1;if(this.isCollapsed){var _o59=this.start._getTransformedByMove(t,e,n);return[new Bc(_o59)];}var i=Bc._createFromPositionAndShift(t,n),r=e._getTransformedByDeletion(t,n);if(this.containsPosition(e)&&!o&&(i.containsPosition(this.start)||i.containsPosition(this.end))){var _o60=this.start._getTransformedByMove(t,e,n),_i57=this.end._getTransformedByMove(t,e,n);return[new Bc(_o60,_i57)];}var s;var a=this.getDifference(i);var l=null;var c=this.getIntersection(i);if(1==a.length?l=new Bc(a[0].start._getTransformedByDeletion(t,n),a[0].end._getTransformedByDeletion(t,n)):2==a.length&&(l=new Bc(this.start,this.end._getTransformedByDeletion(t,n))),s=l?l._getTransformedByInsertion(r,n,null!==c||o):[],c){var _t123=new Bc(c.start._getCombined(i.start,r),c.end._getCombined(i.start,r));2==s.length?s.splice(1,0,_t123):s.push(_t123);}return s;}},{key:"_getTransformedByDeletion",value:function _getTransformedByDeletion(t,e){var n=this.start._getTransformedByDeletion(t,e),o=this.end._getTransformedByDeletion(t,e);return null==n&&null==o?null:(null==n&&(n=t),null==o&&(o=t),new Bc(n,o));}}],[{key:"_createFromPositionAndShift",value:function _createFromPositionAndShift(t,e){var n=t,o=t.getShiftedBy(e);return e>0?new this(n,o):new this(o,n);}},{key:"_createIn",value:function _createIn(t){return new this(Ec._createAt(t,0),Ec._createAt(t,t.maxOffset));}},{key:"_createOn",value:function _createOn(t){return this._createFromPositionAndShift(Ec._createBefore(t),t.offsetSize);}},{key:"_createFromRanges",value:function _createFromRanges(t){if(0===t.length)throw new _("range-create-from-ranges-empty-array",null);if(1==t.length)return t[0].clone();var e=t[0];t.sort(function(t,e){return t.start.isAfter(e.start)?1:-1;});var n=t.indexOf(e),o=new this(e.start,e.end);if(n>0)for(var _e106=n-1;t[_e106].end.isEqual(o.start);_e106++)o.start=Ec._createAt(t[_e106].start);for(var _e107=n+1;_e107<t.length&&t[_e107].start.isEqual(o.end);_e107++)o.end=Ec._createAt(t[_e107].end);return o;}},{key:"fromJSON",value:function fromJSON(t,e){return new this(Ec.fromJSON(t.start,e),Ec.fromJSON(t.end,e));}}]);return Bc;}(bc,Symbol.iterator);Bc.prototype.is=function(t){return"range"===t||"model:range"===t;};var Nc=/*#__PURE__*/function(_B9){_inherits(Nc,_B9);var _super69=_createSuper(Nc);function Nc(){var _this108;_classCallCheck(this,Nc);_this108=_super69.call(this),_this108._modelToViewMapping=new WeakMap(),_this108._viewToModelMapping=new WeakMap(),_this108._viewToModelLengthCallbacks=new Map(),_this108._markerNameToElements=new Map(),_this108._elementToMarkerNames=new Map(),_this108._deferredBindingRemovals=new Map(),_this108._unboundMarkerNames=new Set(),_this108.on("modelToViewPosition",function(t,e){if(e.viewPosition)return;var n=_this108._modelToViewMapping.get(e.modelPosition.parent);if(!n)throw new _("mapping-model-position-view-parent-not-found",_assertThisInitialized(_this108),{modelPosition:e.modelPosition});e.viewPosition=_this108.findPositionIn(n,e.modelPosition.offset);},{priority:"low"}),_this108.on("viewToModelPosition",function(t,e){if(e.modelPosition)return;var n=_this108.findMappedViewAncestor(e.viewPosition),o=_this108._viewToModelMapping.get(n),i=_this108._toModelOffset(e.viewPosition.parent,e.viewPosition.offset,n);e.modelPosition=Ec._createAt(o,i);},{priority:"low"});return _this108;}_createClass(Nc,[{key:"bindElements",value:function bindElements(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t);}},{key:"unbindViewElement",value:function unbindViewElement(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.toModelElement(t);if(this._elementToMarkerNames.has(t)){var _iterator137=_createForOfIteratorHelper(this._elementToMarkerNames.get(t)),_step137;try{for(_iterator137.s();!(_step137=_iterator137.n()).done;){var _e108=_step137.value;this._unboundMarkerNames.add(_e108);}}catch(err){_iterator137.e(err);}finally{_iterator137.f();}}e.defer?this._deferredBindingRemovals.set(t,t.root):(this._viewToModelMapping.delete(t),this._modelToViewMapping.get(n)==t&&this._modelToViewMapping.delete(n));}},{key:"unbindModelElement",value:function unbindModelElement(t){var e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e);}},{key:"bindElementToMarker",value:function bindElementToMarker(t,e){var n=this._markerNameToElements.get(e)||new Set();n.add(t);var o=this._elementToMarkerNames.get(t)||new Set();o.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,o);}},{key:"unbindElementFromMarkerName",value:function unbindElementFromMarkerName(t,e){var n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));var o=this._elementToMarkerNames.get(t);o&&(o.delete(e),0==o.size&&this._elementToMarkerNames.delete(t));}},{key:"flushUnboundMarkerNames",value:function flushUnboundMarkerNames(){var t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t;}},{key:"flushDeferredBindings",value:function flushDeferredBindings(){var _iterator138=_createForOfIteratorHelper(this._deferredBindingRemovals),_step138;try{for(_iterator138.s();!(_step138=_iterator138.n()).done;){var _step138$value=_slicedToArray(_step138.value,2),_t124=_step138$value[0],_e109=_step138$value[1];_t124.root==_e109&&this.unbindViewElement(_t124);}}catch(err){_iterator138.e(err);}finally{_iterator138.f();}this._deferredBindingRemovals=new Map();}},{key:"clearBindings",value:function clearBindings(){this._modelToViewMapping=new WeakMap(),this._viewToModelMapping=new WeakMap(),this._markerNameToElements=new Map(),this._elementToMarkerNames=new Map(),this._unboundMarkerNames=new Set(),this._deferredBindingRemovals=new Map();}},{key:"toModelElement",value:function toModelElement(t){return this._viewToModelMapping.get(t);}},{key:"toViewElement",value:function toViewElement(t){return this._modelToViewMapping.get(t);}},{key:"toModelRange",value:function toModelRange(t){return new Bc(this.toModelPosition(t.start),this.toModelPosition(t.end));}},{key:"toViewRange",value:function toViewRange(t){return new pa(this.toViewPosition(t.start),this.toViewPosition(t.end));}},{key:"toModelPosition",value:function toModelPosition(t){var e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition;}},{key:"toViewPosition",value:function toViewPosition(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n={modelPosition:t,mapper:this,isPhantom:e.isPhantom};return this.fire("modelToViewPosition",n),n.viewPosition;}},{key:"markerNameToElements",value:function markerNameToElements(t){var e=this._markerNameToElements.get(t);if(!e)return null;var n=new Set();var _iterator139=_createForOfIteratorHelper(e),_step139;try{for(_iterator139.s();!(_step139=_iterator139.n()).done;){var _t125=_step139.value;if(_t125.is("attributeElement")){var _iterator140=_createForOfIteratorHelper(_t125.getElementsWithSameId()),_step140;try{for(_iterator140.s();!(_step140=_iterator140.n()).done;){var _e110=_step140.value;n.add(_e110);}}catch(err){_iterator140.e(err);}finally{_iterator140.f();}}else n.add(_t125);}}catch(err){_iterator139.e(err);}finally{_iterator139.f();}return n;}},{key:"registerViewToModelLength",value:function registerViewToModelLength(t,e){this._viewToModelLengthCallbacks.set(t,e);}},{key:"findMappedViewAncestor",value:function findMappedViewAncestor(t){var e=t.parent;for(;!this._viewToModelMapping.has(e);)e=e.parent;return e;}},{key:"_toModelOffset",value:function _toModelOffset(t,e,n){if(n!=t){return this._toModelOffset(t.parent,t.index,n)+this._toModelOffset(t,e,t);}if(t.is("$text"))return e;var o=0;for(var _n95=0;_n95<e;_n95++)o+=this.getModelLength(t.getChild(_n95));return o;}},{key:"getModelLength",value:function getModelLength(t){if(this._viewToModelLengthCallbacks.get(t.name)){return this._viewToModelLengthCallbacks.get(t.name)(t);}if(this._viewToModelMapping.has(t))return 1;if(t.is("$text"))return t.data.length;if(t.is("uiElement"))return 0;{var _e111=0;var _iterator141=_createForOfIteratorHelper(t.getChildren()),_step141;try{for(_iterator141.s();!(_step141=_iterator141.n()).done;){var _n96=_step141.value;_e111+=this.getModelLength(_n96);}}catch(err){_iterator141.e(err);}finally{_iterator141.f();}return _e111;}}},{key:"findPositionIn",value:function findPositionIn(t,e){var n,o=0,i=0,r=0;if(t.is("$text"))return new ma(t,e);for(;i<e;)n=t.getChild(r),o=this.getModelLength(n),i+=o,r++;return i==e?this._moveViewPositionToTextNode(new ma(t,r)):this.findPositionIn(n,e-(i-o));}},{key:"_moveViewPositionToTextNode",value:function _moveViewPositionToTextNode(t){var e=t.nodeBefore,n=t.nodeAfter;return e instanceof rs?new ma(e,e.data.length):n instanceof rs?new ma(n,0):t;}}]);return Nc;}(B());var zc=/*#__PURE__*/function(){function zc(){_classCallCheck(this,zc);this._consumable=new Map(),this._textProxyRegistry=new Map();}_createClass(zc,[{key:"add",value:function add(t,e){e=Pc(e),t instanceof Cc&&(t=this._getSymbolForTextProxy(t)),this._consumable.has(t)||this._consumable.set(t,new Map()),this._consumable.get(t).set(e,!0);}},{key:"consume",value:function consume(t,e){return e=Pc(e),t instanceof Cc&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0);}},{key:"test",value:function test(t,e){e=Pc(e),t instanceof Cc&&(t=this._getSymbolForTextProxy(t));var n=this._consumable.get(t);if(void 0===n)return null;var o=n.get(e);return void 0===o?null:o;}},{key:"revert",value:function revert(t,e){e=Pc(e),t instanceof Cc&&(t=this._getSymbolForTextProxy(t));var n=this.test(t,e);return!1===n?(this._consumable.get(t).set(e,!0),!0):!0!==n&&null;}},{key:"verifyAllConsumed",value:function verifyAllConsumed(t){var e=[];var _iterator142=_createForOfIteratorHelper(this._consumable),_step142;try{for(_iterator142.s();!(_step142=_iterator142.n()).done;){var _step142$value=_slicedToArray(_step142.value,2),_n97=_step142$value[0],_o61=_step142$value[1];var _iterator143=_createForOfIteratorHelper(_o61),_step143;try{for(_iterator143.s();!(_step143=_iterator143.n()).done;){var _step143$value=_slicedToArray(_step143.value,2),_i58=_step143$value[0],_r22=_step143$value[1];var _o62=_i58.split(":")[0];_r22&&t==_o62&&e.push({event:_i58,item:_n97.name||_n97.description});}}catch(err){_iterator143.e(err);}finally{_iterator143.f();}}}catch(err){_iterator142.e(err);}finally{_iterator142.f();}if(e.length)throw new _("conversion-model-consumable-not-consumed",null,{items:e});}},{key:"_getSymbolForTextProxy",value:function _getSymbolForTextProxy(t){var e=null;var n=this._textProxyRegistry.get(t.startOffset);if(n){var _o63=n.get(t.endOffset);_o63&&(e=_o63.get(t.parent));}return e||(e=this._addSymbolForTextProxy(t)),e;}},{key:"_addSymbolForTextProxy",value:function _addSymbolForTextProxy(t){var e=t.startOffset,n=t.endOffset,o=t.parent,i=Symbol("$textProxy:"+t.data);var r,s;return r=this._textProxyRegistry.get(e),r||(r=new Map(),this._textProxyRegistry.set(e,r)),s=r.get(n),s||(s=new Map(),r.set(n,s)),s.set(o,i),i;}}]);return zc;}();function Pc(t){var e=t.split(":");return"insert"==e[0]?e[0]:"addMarker"==e[0]||"removeMarker"==e[0]?t:e.length>1?e[0]+":"+e[1]:e[0];}var Lc=/*#__PURE__*/function(_B10){_inherits(Lc,_B10);var _super70=_createSuper(Lc);function Lc(t){var _this109;_classCallCheck(this,Lc);_this109=_super70.call(this),_this109._conversionApi=_objectSpread({dispatcher:_assertThisInitialized(_this109)},t),_this109._firedEventsMap=new WeakMap();return _this109;}_createClass(Lc,[{key:"convertChanges",value:function convertChanges(t,e,n){var o=this._createConversionApi(n,t.getRefreshedItems());var _iterator144=_createForOfIteratorHelper(t.getMarkersToRemove()),_step144;try{for(_iterator144.s();!(_step144=_iterator144.n()).done;){var _e112=_step144.value;this._convertMarkerRemove(_e112.name,_e112.range,o);}}catch(err){_iterator144.e(err);}finally{_iterator144.f();}var i=this._reduceChanges(t.getChanges());var _iterator145=_createForOfIteratorHelper(i),_step145;try{for(_iterator145.s();!(_step145=_iterator145.n()).done;){var _t126=_step145.value;"insert"===_t126.type?this._convertInsert(Bc._createFromPositionAndShift(_t126.position,_t126.length),o):"reinsert"===_t126.type?this._convertReinsert(Bc._createFromPositionAndShift(_t126.position,_t126.length),o):"remove"===_t126.type?this._convertRemove(_t126.position,_t126.length,_t126.name,o):this._convertAttribute(_t126.range,_t126.attributeKey,_t126.attributeOldValue,_t126.attributeNewValue,o);}}catch(err){_iterator145.e(err);}finally{_iterator145.f();}var _iterator146=_createForOfIteratorHelper(o.mapper.flushUnboundMarkerNames()),_step146;try{for(_iterator146.s();!(_step146=_iterator146.n()).done;){var _t127=_step146.value;var _n98=e.get(_t127).getRange();this._convertMarkerRemove(_t127,_n98,o),this._convertMarkerAdd(_t127,_n98,o);}}catch(err){_iterator146.e(err);}finally{_iterator146.f();}var _iterator147=_createForOfIteratorHelper(t.getMarkersToAdd()),_step147;try{for(_iterator147.s();!(_step147=_iterator147.n()).done;){var _e113=_step147.value;this._convertMarkerAdd(_e113.name,_e113.range,o);}}catch(err){_iterator147.e(err);}finally{_iterator147.f();}o.mapper.flushDeferredBindings(),o.consumable.verifyAllConsumed("insert");}},{key:"convert",value:function convert(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=this._createConversionApi(n,void 0,o);this._convertInsert(t,i);var _iterator148=_createForOfIteratorHelper(e),_step148;try{for(_iterator148.s();!(_step148=_iterator148.n()).done;){var _step148$value=_slicedToArray(_step148.value,2),_t128=_step148$value[0],_n99=_step148$value[1];this._convertMarkerAdd(_t128,_n99,i);}}catch(err){_iterator148.e(err);}finally{_iterator148.f();}i.consumable.verifyAllConsumed("insert");}},{key:"convertSelection",value:function convertSelection(t,e,n){var o=Array.from(e.getMarkersAtPosition(t.getFirstPosition())),i=this._createConversionApi(n);if(this._addConsumablesForSelection(i.consumable,t,o),this.fire("selection",{selection:t},i),t.isCollapsed){var _iterator149=_createForOfIteratorHelper(o),_step149;try{for(_iterator149.s();!(_step149=_iterator149.n()).done;){var _e114=_step149.value;var _n100=_e114.getRange();if(!Oc(t.getFirstPosition(),_e114,i.mapper))continue;var _o64={item:t,markerName:_e114.name,markerRange:_n100};i.consumable.test(t,"addMarker:"+_e114.name)&&this.fire("addMarker:".concat(_e114.name),_o64,i);}}catch(err){_iterator149.e(err);}finally{_iterator149.f();}var _iterator150=_createForOfIteratorHelper(t.getAttributeKeys()),_step150;try{for(_iterator150.s();!(_step150=_iterator150.n()).done;){var _e115=_step150.value;var _n101={item:t,range:t.getFirstRange(),attributeKey:_e115,attributeOldValue:null,attributeNewValue:t.getAttribute(_e115)};i.consumable.test(t,"attribute:"+_n101.attributeKey)&&this.fire("attribute:".concat(_n101.attributeKey,":$text"),_n101,i);}}catch(err){_iterator150.e(err);}finally{_iterator150.f();}}}},{key:"_convertInsert",value:function _convertInsert(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};n.doNotAddConsumables||this._addConsumablesForInsert(e.consumable,Array.from(t));var _iterator151=_createForOfIteratorHelper(Array.from(t.getWalker({shallow:!0})).map(Rc)),_step151;try{for(_iterator151.s();!(_step151=_iterator151.n()).done;){var _n102=_step151.value;this._testAndFire("insert",_n102,e);}}catch(err){_iterator151.e(err);}finally{_iterator151.f();}}},{key:"_convertRemove",value:function _convertRemove(t,e,n,o){this.fire("remove:".concat(n),{position:t,length:e},o);}},{key:"_convertAttribute",value:function _convertAttribute(t,e,n,o,i){this._addConsumablesForRange(i.consumable,t,"attribute:".concat(e));var _iterator152=_createForOfIteratorHelper(t),_step152;try{for(_iterator152.s();!(_step152=_iterator152.n()).done;){var _r23=_step152.value;var _t129={item:_r23.item,range:Bc._createFromPositionAndShift(_r23.previousPosition,_r23.length),attributeKey:e,attributeOldValue:n,attributeNewValue:o};this._testAndFire("attribute:".concat(e),_t129,i);}}catch(err){_iterator152.e(err);}finally{_iterator152.f();}}},{key:"_convertReinsert",value:function _convertReinsert(t,e){var n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);var _iterator153=_createForOfIteratorHelper(n.map(Rc)),_step153;try{for(_iterator153.s();!(_step153=_iterator153.n()).done;){var _t130=_step153.value;this._testAndFire("insert",_objectSpread(_objectSpread({},_t130),{},{reconversion:!0}),e);}}catch(err){_iterator153.e(err);}finally{_iterator153.f();}}},{key:"_convertMarkerAdd",value:function _convertMarkerAdd(t,e,n){if("$graveyard"==e.root.rootName)return;var o="addMarker:".concat(t);if(n.consumable.add(e,o),this.fire(o,{markerName:t,markerRange:e},n),n.consumable.consume(e,o)){this._addConsumablesForRange(n.consumable,e,o);var _iterator154=_createForOfIteratorHelper(e.getItems()),_step154;try{for(_iterator154.s();!(_step154=_iterator154.n()).done;){var _i59=_step154.value;if(!n.consumable.test(_i59,o))continue;var _r24={item:_i59,range:Bc._createOn(_i59),markerName:t,markerRange:e};this.fire(o,_r24,n);}}catch(err){_iterator154.e(err);}finally{_iterator154.f();}}}},{key:"_convertMarkerRemove",value:function _convertMarkerRemove(t,e,n){"$graveyard"!=e.root.rootName&&this.fire("removeMarker:".concat(t),{markerName:t,markerRange:e},n);}},{key:"_reduceChanges",value:function _reduceChanges(t){var e={changes:t};return this.fire("reduceChanges",e),e.changes;}},{key:"_addConsumablesForInsert",value:function _addConsumablesForInsert(t,e){var _iterator155=_createForOfIteratorHelper(e),_step155;try{for(_iterator155.s();!(_step155=_iterator155.n()).done;){var _n103=_step155.value;var _e116=_n103.item;if(null===t.test(_e116,"insert")){t.add(_e116,"insert");var _iterator156=_createForOfIteratorHelper(_e116.getAttributeKeys()),_step156;try{for(_iterator156.s();!(_step156=_iterator156.n()).done;){var _n104=_step156.value;t.add(_e116,"attribute:"+_n104);}}catch(err){_iterator156.e(err);}finally{_iterator156.f();}}}}catch(err){_iterator155.e(err);}finally{_iterator155.f();}return t;}},{key:"_addConsumablesForRange",value:function _addConsumablesForRange(t,e,n){var _iterator157=_createForOfIteratorHelper(e.getItems()),_step157;try{for(_iterator157.s();!(_step157=_iterator157.n()).done;){var _o65=_step157.value;t.add(_o65,n);}}catch(err){_iterator157.e(err);}finally{_iterator157.f();}return t;}},{key:"_addConsumablesForSelection",value:function _addConsumablesForSelection(t,e,n){t.add(e,"selection");var _iterator158=_createForOfIteratorHelper(n),_step158;try{for(_iterator158.s();!(_step158=_iterator158.n()).done;){var _o66=_step158.value;t.add(e,"addMarker:"+_o66.name);}}catch(err){_iterator158.e(err);}finally{_iterator158.f();}var _iterator159=_createForOfIteratorHelper(e.getAttributeKeys()),_step159;try{for(_iterator159.s();!(_step159=_iterator159.n()).done;){var _n105=_step159.value;t.add(e,"attribute:"+_n105);}}catch(err){_iterator159.e(err);}finally{_iterator159.f();}return t;}},{key:"_testAndFire",value:function _testAndFire(t,e,n){var o=function(t,e){var n=e.item.is("element")?e.item.name:"$text";return"".concat(t,":").concat(n);}(t,e),i=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,r=this._firedEventsMap.get(n),s=r.get(i);if(s){if(s.has(o))return;s.add(o);}else r.set(i,new Set([o]));this.fire(o,e,n);}},{key:"_testAndFireAddAttributes",value:function _testAndFireAddAttributes(t,e){var n={item:t,range:Bc._createOn(t)};var _iterator160=_createForOfIteratorHelper(n.item.getAttributeKeys()),_step160;try{for(_iterator160.s();!(_step160=_iterator160.n()).done;){var _t131=_step160.value;n.attributeKey=_t131,n.attributeOldValue=null,n.attributeNewValue=n.item.getAttribute(_t131),this._testAndFire("attribute:".concat(_t131),n,e);}}catch(err){_iterator160.e(err);}finally{_iterator160.f();}}},{key:"_createConversionApi",value:function _createConversionApi(t){var _this110=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set();var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=_objectSpread(_objectSpread({},this._conversionApi),{},{consumable:new zc(),writer:t,options:n,convertItem:function convertItem(t){return _this110._convertInsert(Bc._createOn(t),o);},convertChildren:function convertChildren(t){return _this110._convertInsert(Bc._createIn(t),o,{doNotAddConsumables:!0});},convertAttributes:function convertAttributes(t){return _this110._testAndFireAddAttributes(t,o);},canReuseView:function canReuseView(t){return!e.has(o.mapper.toModelElement(t));}});return this._firedEventsMap.set(o,new Map()),o;}}]);return Lc;}(B());function Oc(t,e,n){var o=e.getRange(),i=Array.from(t.getAncestors());i.shift(),i.reverse();return!i.some(function(t){if(o.containsItem(t)){return!!n.toViewElement(t).getCustomProperty("addHighlight");}});}function Rc(t){return{item:t.item,range:Bc._createFromPositionAndShift(t.previousPosition,t.length)};}var jc=/*#__PURE__*/function(_B11){_inherits(jc,_B11);var _super71=_createSuper(jc);function jc(){var _this112;var _this111;_classCallCheck(this,jc);_this111=_super71.call(this),_this111._lastRangeBackward=!1,_this111._attrs=new Map(),_this111._ranges=[],arguments.length&&(_this112=_this111).setTo.apply(_this112,arguments);return _this111;}_createClass(jc,[{key:"anchor",get:function get(){if(this._ranges.length>0){var _t132=this._ranges[this._ranges.length-1];return this._lastRangeBackward?_t132.end:_t132.start;}return null;}},{key:"focus",get:function get(){if(this._ranges.length>0){var _t133=this._ranges[this._ranges.length-1];return this._lastRangeBackward?_t133.start:_t133.end;}return null;}},{key:"isCollapsed",get:function get(){return 1===this._ranges.length&&this._ranges[0].isCollapsed;}},{key:"rangeCount",get:function get(){return this._ranges.length;}},{key:"isBackward",get:function get(){return!this.isCollapsed&&this._lastRangeBackward;}},{key:"isEqual",value:function isEqual(t){if(this.rangeCount!=t.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var _iterator161=_createForOfIteratorHelper(this._ranges),_step161;try{for(_iterator161.s();!(_step161=_iterator161.n()).done;){var _e117=_step161.value;var _n106=!1;var _iterator162=_createForOfIteratorHelper(t._ranges),_step162;try{for(_iterator162.s();!(_step162=_iterator162.n()).done;){var _o67=_step162.value;if(_e117.isEqual(_o67)){_n106=!0;break;}}}catch(err){_iterator162.e(err);}finally{_iterator162.f();}if(!_n106)return!1;}}catch(err){_iterator161.e(err);}finally{_iterator161.f();}return!0;}},{key:"getRanges",value:/*#__PURE__*/_regeneratorRuntime().mark(function getRanges(){var _iterator163,_step163,_t134;return _regeneratorRuntime().wrap(function getRanges$(_context20){while(1)switch(_context20.prev=_context20.next){case 0:_iterator163=_createForOfIteratorHelper(this._ranges);_context20.prev=1;_iterator163.s();case 3:if((_step163=_iterator163.n()).done){_context20.next=9;break;}_t134=_step163.value;_context20.next=7;return new Bc(_t134.start,_t134.end);case 7:_context20.next=3;break;case 9:_context20.next=14;break;case 11:_context20.prev=11;_context20.t0=_context20["catch"](1);_iterator163.e(_context20.t0);case 14:_context20.prev=14;_iterator163.f();return _context20.finish(14);case 17:case"end":return _context20.stop();}},getRanges,this,[[1,11,14,17]]);})},{key:"getFirstRange",value:function getFirstRange(){var t=null;var _iterator164=_createForOfIteratorHelper(this._ranges),_step164;try{for(_iterator164.s();!(_step164=_iterator164.n()).done;){var _e118=_step164.value;t&&!_e118.start.isBefore(t.start)||(t=_e118);}}catch(err){_iterator164.e(err);}finally{_iterator164.f();}return t?new Bc(t.start,t.end):null;}},{key:"getLastRange",value:function getLastRange(){var t=null;var _iterator165=_createForOfIteratorHelper(this._ranges),_step165;try{for(_iterator165.s();!(_step165=_iterator165.n()).done;){var _e119=_step165.value;t&&!_e119.end.isAfter(t.end)||(t=_e119);}}catch(err){_iterator165.e(err);}finally{_iterator165.f();}return t?new Bc(t.start,t.end):null;}},{key:"getFirstPosition",value:function getFirstPosition(){var t=this.getFirstRange();return t?t.start.clone():null;}},{key:"getLastPosition",value:function getLastPosition(){var t=this.getLastRange();return t?t.end.clone():null;}},{key:"setTo",value:function setTo(){for(var _len22=arguments.length,t=new Array(_len22),_key22=0;_key22<_len22;_key22++){t[_key22]=arguments[_key22];}var e=t[0],n=t[1],o=t[2];if("object"==_typeof(n)&&(o=n,n=void 0),null===e)this._setRanges([]);else if(e instanceof jc)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof Bc)this._setRanges([e],!!o&&!!o.backward);else if(e instanceof Ec)this._setRanges([new Bc(e)]);else if(e instanceof wc){var _t135=!!o&&!!o.backward;var _i60;if("in"==n)_i60=Bc._createIn(e);else if("on"==n)_i60=Bc._createOn(e);else{if(void 0===n)throw new _("model-selection-setto-required-second-parameter",[this,e]);_i60=new Bc(Ec._createAt(e,n));}this._setRanges([_i60],_t135);}else{if(!nt(e))throw new _("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,o&&!!o.backward);}}},{key:"_setRanges",value:function _setRanges(t){var _this113=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;var n=Array.from(t),o=n.some(function(e){if(!(e instanceof Bc))throw new _("model-selection-set-ranges-not-range",[_this113,t]);return _this113._ranges.every(function(t){return!t.isEqual(e);});});(n.length!==this._ranges.length||o)&&(this._replaceAllRanges(n),this._lastRangeBackward=!!e,this.fire("change:range",{directChange:!0}));}},{key:"setFocus",value:function setFocus(t,e){if(null===this.anchor)throw new _("model-selection-setfocus-no-ranges",[this,t]);var n=Ec._createAt(t,e);if("same"==n.compareWith(this.focus))return;var o=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(o)?(this._pushRange(new Bc(n,o)),this._lastRangeBackward=!0):(this._pushRange(new Bc(o,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0});}},{key:"getAttribute",value:function getAttribute(t){return this._attrs.get(t);}},{key:"getAttributes",value:function getAttributes(){return this._attrs.entries();}},{key:"getAttributeKeys",value:function getAttributeKeys(){return this._attrs.keys();}},{key:"hasAttribute",value:function hasAttribute(t){return this._attrs.has(t);}},{key:"removeAttribute",value:function removeAttribute(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}));}},{key:"setAttribute",value:function setAttribute(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}));}},{key:"getSelectedElement",value:function getSelectedElement(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement();}},{key:"getSelectedBlocks",value:/*#__PURE__*/_regeneratorRuntime().mark(function getSelectedBlocks(){var t,_iterator166,_step166,_e120,_n107,_iterator167,_step167,_n108,_o69,_o68;return _regeneratorRuntime().wrap(function getSelectedBlocks$(_context21){while(1)switch(_context21.prev=_context21.next){case 0:t=new WeakSet();_iterator166=_createForOfIteratorHelper(this.getRanges());_context21.prev=2;_iterator166.s();case 4:if((_step166=_iterator166.n()).done){_context21.next=38;break;}_e120=_step166.value;_n107=Hc(_e120.start,t);_context21.t0=Wc(_n107,_e120);if(!_context21.t0){_context21.next=11;break;}_context21.next=11;return _n107;case 11:_iterator167=_createForOfIteratorHelper(_e120.getWalker());_context21.prev=12;_iterator167.s();case 14:if((_step167=_iterator167.n()).done){_context21.next=23;break;}_n108=_step167.value;_o69=_n108.item;_context21.t1="elementEnd"==_n108.type&&Vc(_o69,t,_e120);if(!_context21.t1){_context21.next=21;break;}_context21.next=21;return _o69;case 21:_context21.next=14;break;case 23:_context21.next=28;break;case 25:_context21.prev=25;_context21.t2=_context21["catch"](12);_iterator167.e(_context21.t2);case 28:_context21.prev=28;_iterator167.f();return _context21.finish(28);case 31:_o68=Hc(_e120.end,t);_context21.t3=Gc(_o68,_e120);if(!_context21.t3){_context21.next=36;break;}_context21.next=36;return _o68;case 36:_context21.next=4;break;case 38:_context21.next=43;break;case 40:_context21.prev=40;_context21.t4=_context21["catch"](2);_iterator166.e(_context21.t4);case 43:_context21.prev=43;_iterator166.f();return _context21.finish(43);case 46:case"end":return _context21.stop();}},getSelectedBlocks,this,[[2,40,43,46],[12,25,28,31]]);})},{key:"containsEntireContent",value:function containsEntireContent(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.anchor.root;var e=Ec._createAt(t,0),n=Ec._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition());}},{key:"_pushRange",value:function _pushRange(t){this._checkRange(t),this._ranges.push(new Bc(t.start,t.end));}},{key:"_checkRange",value:function _checkRange(t){for(var _e121=0;_e121<this._ranges.length;_e121++)if(t.isIntersecting(this._ranges[_e121]))throw new _("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[_e121]});}},{key:"_replaceAllRanges",value:function _replaceAllRanges(t){this._removeAllRanges();var _iterator168=_createForOfIteratorHelper(t),_step168;try{for(_iterator168.s();!(_step168=_iterator168.n()).done;){var _e122=_step168.value;this._pushRange(_e122);}}catch(err){_iterator168.e(err);}finally{_iterator168.f();}}},{key:"_removeAllRanges",value:function _removeAllRanges(){for(;this._ranges.length>0;)this._popRange();}},{key:"_popRange",value:function _popRange(){this._ranges.pop();}}]);return jc;}(B(bc));function Fc(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&!!t.parent);}function Vc(t,e,n){return Fc(t,e)&&Uc(t,n);}function Hc(t,e){var n=t.parent.root.document.model.schema,o=t.parent.getAncestors({parentFirst:!0,includeSelf:!0});var i=!1;var r=o.find(function(t){return!i&&(i=n.isLimit(t),!i&&Fc(t,e));});return o.forEach(function(t){return e.add(t);}),r;}function Uc(t,e){var n=function(t){var e=t.root.document.model.schema;var n=t.parent;for(;n;){if(e.isBlock(n))return n;n=n.parent;}}(t);if(!n)return!0;return!e.containsRange(Bc._createOn(n),!0);}function Wc(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.start.isTouching(Ec._createAt(t,t.maxOffset))&&Uc(t,e));}function Gc(t,e){return!!t&&(!(!e.isCollapsed&&!t.isEmpty)||!e.end.isTouching(Ec._createAt(t,0))&&Uc(t,e));}jc.prototype.is=function(t){return"selection"===t||"model:selection"===t;};var qc=/*#__PURE__*/function(_B12){_inherits(qc,_B12);var _super72=_createSuper(qc);function qc(t,e){var _this114;_classCallCheck(this,qc);_this114=_super72.call(this,t,e),$c.call(_assertThisInitialized(_this114));return _this114;}_createClass(qc,[{key:"detach",value:function detach(){this.stopListening();}},{key:"toRange",value:function toRange(){return new Bc(this.start,this.end);}}],[{key:"fromRange",value:function fromRange(t){return new qc(t.start,t.end);}}]);return qc;}(B(Bc));function $c(){var _this115=this;this.listenTo(this.root.document.model,"applyOperation",function(t,e){var n=e[0];n.isDocumentOperation&&Kc.call(_this115,n);},{priority:"low"});}function Kc(t){var e=this.getTransformedByOperation(t),n=Bc._createFromRanges(e),o=!n.isEqual(this),i=function(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition);}return!1;}(this,t);var r=null;if(o){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);var _e123=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",_e123,{deletionPosition:r});}else i&&this.fire("change:content",this.toRange(),{deletionPosition:r});}qc.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t;};var Yc="selection:";var Qc=/*#__PURE__*/function(_B13){_inherits(Qc,_B13);var _super73=_createSuper(Qc);function Qc(t){var _this116;_classCallCheck(this,Qc);_this116=_super73.call(this),_this116._selection=new Zc(t),_this116._selection.delegate("change:range").to(_assertThisInitialized(_this116)),_this116._selection.delegate("change:attribute").to(_assertThisInitialized(_this116)),_this116._selection.delegate("change:marker").to(_assertThisInitialized(_this116));return _this116;}_createClass(Qc,[{key:"isCollapsed",get:function get(){return this._selection.isCollapsed;}},{key:"anchor",get:function get(){return this._selection.anchor;}},{key:"focus",get:function get(){return this._selection.focus;}},{key:"rangeCount",get:function get(){return this._selection.rangeCount;}},{key:"hasOwnRange",get:function get(){return this._selection.hasOwnRange;}},{key:"isBackward",get:function get(){return this._selection.isBackward;}},{key:"isGravityOverridden",get:function get(){return this._selection.isGravityOverridden;}},{key:"markers",get:function get(){return this._selection.markers;}},{key:"_ranges",get:function get(){return this._selection._ranges;}},{key:"getRanges",value:function getRanges(){return this._selection.getRanges();}},{key:"getFirstPosition",value:function getFirstPosition(){return this._selection.getFirstPosition();}},{key:"getLastPosition",value:function getLastPosition(){return this._selection.getLastPosition();}},{key:"getFirstRange",value:function getFirstRange(){return this._selection.getFirstRange();}},{key:"getLastRange",value:function getLastRange(){return this._selection.getLastRange();}},{key:"getSelectedBlocks",value:function getSelectedBlocks(){return this._selection.getSelectedBlocks();}},{key:"getSelectedElement",value:function getSelectedElement(){return this._selection.getSelectedElement();}},{key:"containsEntireContent",value:function containsEntireContent(t){return this._selection.containsEntireContent(t);}},{key:"destroy",value:function destroy(){this._selection.destroy();}},{key:"getAttributeKeys",value:function getAttributeKeys(){return this._selection.getAttributeKeys();}},{key:"getAttributes",value:function getAttributes(){return this._selection.getAttributes();}},{key:"getAttribute",value:function getAttribute(t){return this._selection.getAttribute(t);}},{key:"hasAttribute",value:function hasAttribute(t){return this._selection.hasAttribute(t);}},{key:"refresh",value:function refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1);}},{key:"observeMarkers",value:function observeMarkers(t){this._selection.observeMarkers(t);}},{key:"_setFocus",value:function _setFocus(t,e){this._selection.setFocus(t,e);}},{key:"_setTo",value:function _setTo(){var _this$_selection2;(_this$_selection2=this._selection).setTo.apply(_this$_selection2,arguments);}},{key:"_setAttribute",value:function _setAttribute(t,e){this._selection.setAttribute(t,e);}},{key:"_removeAttribute",value:function _removeAttribute(t){this._selection.removeAttribute(t);}},{key:"_getStoredAttributes",value:function _getStoredAttributes(){return this._selection.getStoredAttributes();}},{key:"_overrideGravity",value:function _overrideGravity(){return this._selection.overrideGravity();}},{key:"_restoreGravity",value:function _restoreGravity(t){this._selection.restoreGravity(t);}}],[{key:"_getStoreAttributeKey",value:function _getStoreAttributeKey(t){return Yc+t;}},{key:"_isStoreAttributeKey",value:function _isStoreAttributeKey(t){return t.startsWith(Yc);}}]);return Qc;}(B(bc));Qc.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t;};var Zc=/*#__PURE__*/function(_jc){_inherits(Zc,_jc);var _super74=_createSuper(Zc);function Zc(t){var _this117;_classCallCheck(this,Zc);_this117=_super74.call(this),_this117.markers=new xi({idProperty:"name"}),_this117._attributePriority=new Map(),_this117._selectionRestorePosition=null,_this117._hasChangedRange=!1,_this117._overriddenGravityRegister=new Set(),_this117._observedMarkers=new Set(),_this117._model=t.model,_this117._document=t,_this117.listenTo(_this117._model,"applyOperation",function(t,e){var n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==_this117._ranges.length&&_this117._selectionRestorePosition&&_this117._fixGraveyardSelection(_this117._selectionRestorePosition),_this117._selectionRestorePosition=null,_this117._hasChangedRange&&(_this117._hasChangedRange=!1,_this117.fire("change:range",{directChange:!1})));},{priority:"lowest"}),_this117.on("change:range",function(){_this117._validateSelectionRanges(_this117.getRanges());}),_this117.listenTo(_this117._model.markers,"update",function(t,e,n,o){_this117._updateMarker(e,o);}),_this117.listenTo(_this117._document,"change",function(t,e){!function(t,e){var n=t.document.differ;var _iterator169=_createForOfIteratorHelper(n.getChanges()),_step169;try{var _loop4=function _loop4(){var o=_step169.value;if("insert"!=o.type)return 1;// continue
|
|
5
|
+
var n=o.position.parent;o.length===n.maxOffset&&t.enqueueChange(e,function(t){var e=Array.from(n.getAttributeKeys()).filter(function(t){return t.startsWith(Yc);});var _iterator170=_createForOfIteratorHelper(e),_step170;try{for(_iterator170.s();!(_step170=_iterator170.n()).done;){var _o70=_step170.value;t.removeAttribute(_o70,n);}}catch(err){_iterator170.e(err);}finally{_iterator170.f();}});};for(_iterator169.s();!(_step169=_iterator169.n()).done;){if(_loop4())continue;}}catch(err){_iterator169.e(err);}finally{_iterator169.f();}}(_this117._model,e);});return _this117;}_createClass(Zc,[{key:"isCollapsed",get:function get(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:_get(_getPrototypeOf(Zc.prototype),"isCollapsed",this);}},{key:"anchor",get:function get(){return _get(_getPrototypeOf(Zc.prototype),"anchor",this)||this._document._getDefaultRange().start;}},{key:"focus",get:function get(){return _get(_getPrototypeOf(Zc.prototype),"focus",this)||this._document._getDefaultRange().end;}},{key:"rangeCount",get:function get(){return this._ranges.length?this._ranges.length:1;}},{key:"hasOwnRange",get:function get(){return this._ranges.length>0;}},{key:"isGravityOverridden",get:function get(){return!!this._overriddenGravityRegister.size;}},{key:"destroy",value:function destroy(){for(var _t136=0;_t136<this._ranges.length;_t136++)this._ranges[_t136].detach();this.stopListening();}},{key:"getRanges",value:/*#__PURE__*/_regeneratorRuntime().mark(function getRanges(){return _regeneratorRuntime().wrap(function getRanges$(_context22){while(1)switch(_context22.prev=_context22.next){case 0:if(!this._ranges.length){_context22.next=4;break;}return _context22.delegateYield(_get(_getPrototypeOf(Zc.prototype),"getRanges",this).call(this),"t0",2);case 2:_context22.next=6;break;case 4:_context22.next=6;return this._document._getDefaultRange();case 6:case"end":return _context22.stop();}},getRanges,this);})},{key:"getFirstRange",value:function getFirstRange(){return _get(_getPrototypeOf(Zc.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange();}},{key:"getLastRange",value:function getLastRange(){return _get(_getPrototypeOf(Zc.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange();}},{key:"setTo",value:function setTo(){var _get2;for(var _len23=arguments.length,t=new Array(_len23),_key23=0;_key23<_len23;_key23++){t[_key23]=arguments[_key23];}(_get2=_get(_getPrototypeOf(Zc.prototype),"setTo",this)).call.apply(_get2,[this].concat(t)),this._updateAttributes(!0),this.updateMarkers();}},{key:"setFocus",value:function setFocus(t,e){_get(_getPrototypeOf(Zc.prototype),"setFocus",this).call(this,t,e),this._updateAttributes(!0),this.updateMarkers();}},{key:"setAttribute",value:function setAttribute(t,e){if(this._setAttribute(t,e)){var _e124=[t];this.fire("change:attribute",{attributeKeys:_e124,directChange:!0});}}},{key:"removeAttribute",value:function removeAttribute(t){if(this._removeAttribute(t)){var _e125=[t];this.fire("change:attribute",{attributeKeys:_e125,directChange:!0});}}},{key:"overrideGravity",value:function overrideGravity(){var t=k();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t;}},{key:"restoreGravity",value:function restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new _("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0);}},{key:"observeMarkers",value:function observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers();}},{key:"_replaceAllRanges",value:function _replaceAllRanges(t){this._validateSelectionRanges(t),_get(_getPrototypeOf(Zc.prototype),"_replaceAllRanges",this).call(this,t);}},{key:"_popRange",value:function _popRange(){this._ranges.pop().detach();}},{key:"_pushRange",value:function _pushRange(t){var e=this._prepareRange(t);e&&this._ranges.push(e);}},{key:"_validateSelectionRanges",value:function _validateSelectionRanges(t){var _iterator171=_createForOfIteratorHelper(t),_step171;try{for(_iterator171.s();!(_step171=_iterator171.n()).done;){var _e126=_step171.value;if(!this._document._validateSelectionRange(_e126))throw new _("document-selection-wrong-position",this,{range:_e126});}}catch(err){_iterator171.e(err);}finally{_iterator171.f();}}},{key:"_prepareRange",value:function _prepareRange(t){var _this118=this;if(this._checkRange(t),t.root==this._document.graveyard)return;var e=qc.fromRange(t);return e.on("change:range",function(t,n,o){if(_this118._hasChangedRange=!0,e.root==_this118._document.graveyard){_this118._selectionRestorePosition=o.deletionPosition;var _t137=_this118._ranges.indexOf(e);_this118._ranges.splice(_t137,1),e.detach();}}),e;}},{key:"updateMarkers",value:function updateMarkers(){if(!this._observedMarkers.size)return;var t=[];var e=!1;var _iterator172=_createForOfIteratorHelper(this._model.markers),_step172;try{for(_iterator172.s();!(_step172=_iterator172.n()).done;){var _e127=_step172.value;var _n111=_e127.name.split(":",1)[0];if(!this._observedMarkers.has(_n111))continue;var _o71=_e127.getRange();var _iterator173=_createForOfIteratorHelper(this.getRanges()),_step173;try{for(_iterator173.s();!(_step173=_iterator173.n()).done;){var _n112=_step173.value;_o71.containsRange(_n112,!_n112.isCollapsed)&&t.push(_e127);}}catch(err){_iterator173.e(err);}finally{_iterator173.f();}}}catch(err){_iterator172.e(err);}finally{_iterator172.f();}var n=Array.from(this.markers);for(var _i61=0,_t138=t;_i61<_t138.length;_i61++){var _n109=_t138[_i61];this.markers.has(_n109)||(this.markers.add(_n109),e=!0);}for(var _i62=0,_Array$from5=Array.from(this.markers);_i62<_Array$from5.length;_i62++){var _n110=_Array$from5[_i62];t.includes(_n110)||(this.markers.remove(_n110),e=!0);}e&&this.fire("change:marker",{oldMarkers:n,directChange:!1});}},{key:"_updateMarker",value:function _updateMarker(t,e){var n=t.name.split(":",1)[0];if(!this._observedMarkers.has(n))return;var o=!1;var i=Array.from(this.markers),r=this.markers.has(t);if(e){var _n113=!1;var _iterator174=_createForOfIteratorHelper(this.getRanges()),_step174;try{for(_iterator174.s();!(_step174=_iterator174.n()).done;){var _t139=_step174.value;if(e.containsRange(_t139,!_t139.isCollapsed)){_n113=!0;break;}}}catch(err){_iterator174.e(err);}finally{_iterator174.f();}_n113&&!r?(this.markers.add(t),o=!0):!_n113&&r&&(this.markers.remove(t),o=!0);}else r&&(this.markers.remove(t),o=!0);o&&this.fire("change:marker",{oldMarkers:i,directChange:!1});}},{key:"_updateAttributes",value:function _updateAttributes(t){var e=Si(this._getSurroundingAttributes()),n=Si(this.getAttributes());if(t)this._attributePriority=new Map(),this._attrs=new Map();else{var _iterator175=_createForOfIteratorHelper(this._attributePriority),_step175;try{for(_iterator175.s();!(_step175=_iterator175.n()).done;){var _step175$value=_slicedToArray(_step175.value,2),_t140=_step175$value[0],_e128=_step175$value[1];"low"==_e128&&(this._attrs.delete(_t140),this._attributePriority.delete(_t140));}}catch(err){_iterator175.e(err);}finally{_iterator175.f();}}this._setAttributesTo(e);var o=[];var _iterator176=_createForOfIteratorHelper(this.getAttributes()),_step176;try{for(_iterator176.s();!(_step176=_iterator176.n()).done;){var _step176$value=_slicedToArray(_step176.value,2),_t141=_step176$value[0],_e129=_step176$value[1];n.has(_t141)&&n.get(_t141)===_e129||o.push(_t141);}}catch(err){_iterator176.e(err);}finally{_iterator176.f();}var _iterator177=_createForOfIteratorHelper(n),_step177;try{for(_iterator177.s();!(_step177=_iterator177.n()).done;){var _step177$value=_slicedToArray(_step177.value,1),_t142=_step177$value[0];this.hasAttribute(_t142)||o.push(_t142);}}catch(err){_iterator177.e(err);}finally{_iterator177.f();}o.length>0&&this.fire("change:attribute",{attributeKeys:o,directChange:!1});}},{key:"_setAttribute",value:function _setAttribute(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!0;var o=n?"normal":"low";if("low"==o&&"normal"==this._attributePriority.get(t))return!1;return _get(_getPrototypeOf(Zc.prototype),"getAttribute",this).call(this,t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,o),!0);}},{key:"_removeAttribute",value:function _removeAttribute(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;var n=e?"normal":"low";return("low"!=n||"normal"!=this._attributePriority.get(t))&&(this._attributePriority.set(t,n),!!_get(_getPrototypeOf(Zc.prototype),"hasAttribute",this).call(this,t)&&(this._attrs.delete(t),!0));}},{key:"_setAttributesTo",value:function _setAttributesTo(t){var e=new Set();var _iterator178=_createForOfIteratorHelper(this.getAttributes()),_step178;try{for(_iterator178.s();!(_step178=_iterator178.n()).done;){var _step178$value=_slicedToArray(_step178.value,2),_e130=_step178$value[0],_n114=_step178$value[1];t.get(_e130)!==_n114&&this._removeAttribute(_e130,!1);}}catch(err){_iterator178.e(err);}finally{_iterator178.f();}var _iterator179=_createForOfIteratorHelper(t),_step179;try{for(_iterator179.s();!(_step179=_iterator179.n()).done;){var _step179$value=_slicedToArray(_step179.value,2),_n115=_step179$value[0],_o72=_step179$value[1];this._setAttribute(_n115,_o72,!1)&&e.add(_n115);}}catch(err){_iterator179.e(err);}finally{_iterator179.f();}return e;}},{key:"getStoredAttributes",value:/*#__PURE__*/_regeneratorRuntime().mark(function getStoredAttributes(){var t,_iterator180,_step180,_e131,_n116;return _regeneratorRuntime().wrap(function getStoredAttributes$(_context23){while(1)switch(_context23.prev=_context23.next){case 0:t=this.getFirstPosition().parent;if(!(this.isCollapsed&&t.isEmpty)){_context23.next=21;break;}_iterator180=_createForOfIteratorHelper(t.getAttributeKeys());_context23.prev=3;_iterator180.s();case 5:if((_step180=_iterator180.n()).done){_context23.next=13;break;}_e131=_step180.value;if(!_e131.startsWith(Yc)){_context23.next=11;break;}_n116=_e131.substr(Yc.length);_context23.next=11;return[_n116,t.getAttribute(_e131)];case 11:_context23.next=5;break;case 13:_context23.next=18;break;case 15:_context23.prev=15;_context23.t0=_context23["catch"](3);_iterator180.e(_context23.t0);case 18:_context23.prev=18;_iterator180.f();return _context23.finish(18);case 21:case"end":return _context23.stop();}},getStoredAttributes,this,[[3,15,18,21]]);})},{key:"_getSurroundingAttributes",value:function _getSurroundingAttributes(){var t=this.getFirstPosition(),e=this._model.schema;var n=null;if(this.isCollapsed){var _o73=t.textNode?t.textNode:t.nodeBefore,_i63=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=Jc(_o73)),n||(n=Jc(_i63)),!this.isGravityOverridden&&!n){var _t143=_o73;for(;_t143&&!e.isInline(_t143)&&!n;)_t143=_t143.previousSibling,n=Jc(_t143);}if(!n){var _t144=_i63;for(;_t144&&!e.isInline(_t144)&&!n;)_t144=_t144.nextSibling,n=Jc(_t144);}n||(n=this.getStoredAttributes());}else{var _t145=this.getFirstRange();var _iterator181=_createForOfIteratorHelper(_t145),_step181;try{for(_iterator181.s();!(_step181=_iterator181.n()).done;){var _o74=_step181.value;if(_o74.item.is("element")&&e.isObject(_o74.item))break;if("text"==_o74.type){n=_o74.item.getAttributes();break;}}}catch(err){_iterator181.e(err);}finally{_iterator181.f();}}return n;}},{key:"_fixGraveyardSelection",value:function _fixGraveyardSelection(t){var e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e);}}]);return Zc;}(jc);function Jc(t){return t instanceof Cc||t instanceof _c?t.getAttributes():null;}var Xc=/*#__PURE__*/function(){function Xc(t){_classCallCheck(this,Xc);this._dispatchers=t;}_createClass(Xc,[{key:"add",value:function add(t){var _iterator182=_createForOfIteratorHelper(this._dispatchers),_step182;try{for(_iterator182.s();!(_step182=_iterator182.n()).done;){var _e132=_step182.value;t(_e132);}}catch(err){_iterator182.e(err);}finally{_iterator182.f();}return this;}}]);return Xc;}();var td=function td(t){return vo(t,5);};var ed=/*#__PURE__*/function(_Xc){_inherits(ed,_Xc);var _super75=_createSuper(ed);function ed(){_classCallCheck(this,ed);return _super75.apply(this,arguments);}_createClass(ed,[{key:"elementToElement",value:function elementToElement(t){return this.add(function(t){var e=id(t.model),n=rd(t.view,"container");e.attributes.length&&(e.children=!0);return function(o){o.on("insert:".concat(e.name),function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:gd;return function(n,o,i){if(!e(o.item,i.consumable,{preflight:!0}))return;var r=t(o.item,i,o);if(!r)return;e(o.item,i.consumable);var s=i.mapper.toViewPosition(o.range.start);i.mapper.bindElements(o.item,r),i.writer.insert(s,r),i.convertAttributes(o.item),ud(r,o.item.getChildren(),i,{reconversion:o.reconversion});};}(n,dd(e)),{priority:t.converterPriority||"normal"}),(e.children||e.attributes.length)&&o.on("reduceChanges",cd(e),{priority:"low"});};}(t));}},{key:"elementToStructure",value:function elementToStructure(t){return this.add(function(t){var e=id(t.model),n=rd(t.view,"container");return e.children=!0,function(o){if(o._conversionApi.schema.checkChild(e.name,"$text"))throw new _("conversion-element-to-structure-disallowed-text",o,{elementName:e.name});var i,r;o.on("insert:".concat(e.name),(i=n,r=dd(e),function(t,e,n){if(!r(e.item,n.consumable,{preflight:!0}))return;var o=new Map();n.writer._registerSlotFactory(function(t,e,n){return function(o,i){var r=o.createContainerElement("$slot");var s=null;if("children"===i)s=Array.from(t.getChildren());else{if("function"!=typeof i)throw new _("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:i});s=Array.from(t.getChildren()).filter(function(t){return i(t);});}return e.set(r,s),r;};}(e.item,o,n));var s=i(e.item,n,e);if(n.writer._clearSlotFactory(),!s)return;!function(t,e,n){var o=Array.from(e.values()).flat(),i=new Set(o);if(i.size!=o.length)throw new _("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(i.size!=t.childCount)throw new _("conversion-slot-filter-incomplete",n.dispatcher,{element:t});}(e.item,o,n),r(e.item,n.consumable);var a=n.mapper.toViewPosition(e.range.start);n.mapper.bindElements(e.item,s),n.writer.insert(a,s),n.convertAttributes(e.item),function(t,e,n,o){n.mapper.on("modelToViewPosition",s,{priority:"highest"});var i=null,r=null;var _iterator183=_createForOfIteratorHelper(e),_step183;try{for(_iterator183.s();!(_step183=_iterator183.n()).done;){var _step183$value=_slicedToArray(_step183.value,2);i=_step183$value[0];r=_step183$value[1];ud(t,r,n,o),n.writer.move(n.writer.createRangeIn(i),n.writer.createPositionBefore(i)),n.writer.remove(i);}}catch(err){_iterator183.e(err);}finally{_iterator183.f();}function s(t,e){var n=e.modelPosition.nodeAfter,o=r.indexOf(n);o<0||(e.viewPosition=e.mapper.findPositionIn(i,o));}n.mapper.off("modelToViewPosition",s);}(s,o,n,{reconversion:e.reconversion});}),{priority:t.converterPriority||"normal"}),o.on("reduceChanges",cd(e),{priority:"low"});};}(t));}},{key:"attributeToElement",value:function attributeToElement(t){return this.add(function(t){t=td(t);var e=t.model;"string"==typeof e&&(e={key:e});var n="attribute:".concat(e.key);e.name&&(n+=":"+e.name);if(e.values){var _iterator184=_createForOfIteratorHelper(e.values),_step184;try{for(_iterator184.s();!(_step184=_iterator184.n()).done;){var _n117=_step184.value;t.view[_n117]=rd(t.view[_n117],"attribute");}}catch(err){_iterator184.e(err);}finally{_iterator184.f();}}else t.view=rd(t.view,"attribute");var o=sd(t);return function(e){e.on(n,function(t){return function(e,n,o){if(!o.consumable.test(n.item,e.name))return;var i=t(n.attributeOldValue,o,n),r=t(n.attributeNewValue,o,n);if(!i&&!r)return;o.consumable.consume(n.item,e.name);var s=o.writer,a=s.document.selection;if(n.item instanceof jc||n.item instanceof Qc)s.wrap(a.getFirstRange(),r);else{var _t146=o.mapper.toViewRange(n.range);null!==n.attributeOldValue&&i&&(_t146=s.unwrap(_t146,i)),null!==n.attributeNewValue&&r&&s.wrap(_t146,r);}};}(o),{priority:t.converterPriority||"normal"});};}(t));}},{key:"attributeToAttribute",value:function attributeToAttribute(t){return this.add(function(t){t=td(t);var e=t.model;"string"==typeof e&&(e={key:e});var n="attribute:".concat(e.key);e.name&&(n+=":"+e.name);if(e.values){var _iterator185=_createForOfIteratorHelper(e.values),_step185;try{for(_iterator185.s();!(_step185=_iterator185.n()).done;){var _n118=_step185.value;t.view[_n118]=ad(t.view[_n118]);}}catch(err){_iterator185.e(err);}finally{_iterator185.f();}}else t.view=ad(t.view);var o=sd(t);return function(e){var i;e.on(n,(i=o,function(t,e,n){if(!n.consumable.test(e.item,t.name))return;var o=i(e.attributeOldValue,n,e),r=i(e.attributeNewValue,n,e);if(!o&&!r)return;n.consumable.consume(e.item,t.name);var s=n.mapper.toViewElement(e.item),a=n.writer;if(!s)throw new _("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&o)if("class"==o.key){var _t147=Ai(o.value);var _iterator186=_createForOfIteratorHelper(_t147),_step186;try{for(_iterator186.s();!(_step186=_iterator186.n()).done;){var _e133=_step186.value;a.removeClass(_e133,s);}}catch(err){_iterator186.e(err);}finally{_iterator186.f();}}else if("style"==o.key){var _t148=Object.keys(o.value);for(var _i64=0,_t149=_t148;_i64<_t149.length;_i64++){var _e134=_t149[_i64];a.removeStyle(_e134,s);}}else a.removeAttribute(o.key,s);if(null!==e.attributeNewValue&&r)if("class"==r.key){var _t150=Ai(r.value);var _iterator187=_createForOfIteratorHelper(_t150),_step187;try{for(_iterator187.s();!(_step187=_iterator187.n()).done;){var _e135=_step187.value;a.addClass(_e135,s);}}catch(err){_iterator187.e(err);}finally{_iterator187.f();}}else if("style"==r.key){var _t151=Object.keys(r.value);for(var _i65=0,_t152=_t151;_i65<_t152.length;_i65++){var _e136=_t152[_i65];a.setStyle(_e136,r.value[_e136],s);}}else a.setAttribute(r.key,r.value,s);}),{priority:t.converterPriority||"normal"});};}(t));}},{key:"markerToElement",value:function markerToElement(t){return this.add(function(t){var e=rd(t.view,"ui");return function(n){var o;n.on("addMarker:".concat(t.model),(o=e,function(t,e,n){e.isOpening=!0;var i=o(e,n);e.isOpening=!1;var r=o(e,n);if(!i||!r)return;var s=e.markerRange;if(s.isCollapsed&&!n.consumable.consume(s,t.name))return;var _iterator188=_createForOfIteratorHelper(s),_step188;try{for(_iterator188.s();!(_step188=_iterator188.n()).done;){var _e137=_step188.value;if(!n.consumable.consume(_e137.item,t.name))return;}}catch(err){_iterator188.e(err);}finally{_iterator188.f();}var a=n.mapper,l=n.writer;l.insert(a.toViewPosition(s.start),i),n.mapper.bindElementToMarker(i,e.markerName),s.isCollapsed||(l.insert(a.toViewPosition(s.end),r),n.mapper.bindElementToMarker(r,e.markerName)),t.stop();}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:".concat(t.model),function(t,e,n){var o=n.mapper.markerNameToElements(e.markerName);if(o){var _iterator189=_createForOfIteratorHelper(o),_step189;try{for(_iterator189.s();!(_step189=_iterator189.n()).done;){var _t153=_step189.value;n.mapper.unbindElementFromMarkerName(_t153,e.markerName),n.writer.clear(n.writer.createRangeOn(_t153),_t153);}}catch(err){_iterator189.e(err);}finally{_iterator189.f();}n.writer.clearClonedElementsGroup(e.markerName),t.stop();}},{priority:t.converterPriority||"normal"});};}(t));}},{key:"markerToHighlight",value:function markerToHighlight(t){return this.add(function(t){return function(e){var n;e.on("addMarker:".concat(t.model),(n=t.view,function(t,e,o){if(!e.item)return;if(!(e.item instanceof jc||e.item instanceof Qc||e.item.is("$textProxy")))return;var i=ld(n,e,o);if(!i)return;if(!o.consumable.consume(e.item,t.name))return;var r=o.writer,s=nd(r,i),a=r.document.selection;if(e.item instanceof jc||e.item instanceof Qc)r.wrap(a.getFirstRange(),s);else{var _t154=o.mapper.toViewRange(e.range),_n119=r.wrap(_t154,s);var _iterator190=_createForOfIteratorHelper(_n119.getItems()),_step190;try{for(_iterator190.s();!(_step190=_iterator190.n()).done;){var _t155=_step190.value;if(_t155.is("attributeElement")&&_t155.isSimilar(s)){o.mapper.bindElementToMarker(_t155,e.markerName);break;}}}catch(err){_iterator190.e(err);}finally{_iterator190.f();}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:".concat(t.model),function(t){return function(e,n,o){if(!n.item)return;if(!(n.item instanceof vc))return;var i=ld(t,n,o);if(!i)return;if(!o.consumable.test(n.item,e.name))return;var r=o.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){o.consumable.consume(n.item,e.name);var _iterator191=_createForOfIteratorHelper(Bc._createIn(n.item)),_step191;try{for(_iterator191.s();!(_step191=_iterator191.n()).done;){var _t156=_step191.value;o.consumable.consume(_t156.item,e.name);}}catch(err){_iterator191.e(err);}finally{_iterator191.f();}r.getCustomProperty("addHighlight")(r,i,o.writer),o.mapper.bindElementToMarker(r,n.markerName);}};}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:".concat(t.model),function(t){return function(e,n,o){if(n.markerRange.isCollapsed)return;var i=ld(t,n,o);if(!i)return;var r=nd(o.writer,i),s=o.mapper.markerNameToElements(n.markerName);if(s){var _iterator192=_createForOfIteratorHelper(s),_step192;try{for(_iterator192.s();!(_step192=_iterator192.n()).done;){var _t157=_step192.value;if(o.mapper.unbindElementFromMarkerName(_t157,n.markerName),_t157.is("attributeElement"))o.writer.unwrap(o.writer.createRangeOn(_t157),r);else{_t157.getCustomProperty("removeHighlight")(_t157,i.id,o.writer);}}}catch(err){_iterator192.e(err);}finally{_iterator192.f();}o.writer.clearClonedElementsGroup(n.markerName),e.stop();}};}(t.view),{priority:t.converterPriority||"normal"});};}(t));}},{key:"markerToData",value:function markerToData(t){return this.add(function(t){t=td(t);var e=t.model;var n=t.view;n||(n=function n(_n120){return{group:e,name:_n120.substr(t.model.length+1)};});return function(o){var i;o.on("addMarker:".concat(e),(i=n,function(t,e,n){var o=i(e.markerName,n);if(!o)return;var r=e.markerRange;n.consumable.consume(r,t.name)&&(od(r,!1,n,e,o),od(r,!0,n,e,o),t.stop());}),{priority:t.converterPriority||"normal"}),o.on("removeMarker:".concat(e),function(t){return function(e,n,o){var i=t(n.markerName,o);if(!i)return;var r=o.mapper.markerNameToElements(n.markerName);if(r){var _iterator193=_createForOfIteratorHelper(r),_step193;try{for(_iterator193.s();!(_step193=_iterator193.n()).done;){var _t158=_step193.value;o.mapper.unbindElementFromMarkerName(_t158,n.markerName),_t158.is("containerElement")?(s("data-".concat(i.group,"-start-before"),_t158),s("data-".concat(i.group,"-start-after"),_t158),s("data-".concat(i.group,"-end-before"),_t158),s("data-".concat(i.group,"-end-after"),_t158)):o.writer.clear(o.writer.createRangeOn(_t158),_t158);}}catch(err){_iterator193.e(err);}finally{_iterator193.f();}o.writer.clearClonedElementsGroup(n.markerName),e.stop();}function s(t,e){if(e.hasAttribute(t)){var _n121=new Set(e.getAttribute(t).split(","));_n121.delete(i.name),0==_n121.size?o.writer.removeAttribute(t,e):o.writer.setAttribute(t,Array.from(_n121).join(","),e);}}};}(n),{priority:t.converterPriority||"normal"});};}(t));}}]);return ed;}(Xc);function nd(t,e){var n=t.createAttributeElement("span",e.attributes);return e.classes&&n._addClass(e.classes),"number"==typeof e.priority&&(n._priority=e.priority),n._id=e.id,n;}function od(t,e,n,o,i){var r=e?t.start:t.end,s=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,a=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(s||a){var _t159,_r25;e&&s||!e&&!a?(_t159=s,_r25=!0):(_t159=a,_r25=!1);var _l10=n.mapper.toViewElement(_t159);if(_l10)return void function(t,e,n,o,i,r){var s="data-".concat(r.group,"-").concat(e?"start":"end","-").concat(n?"before":"after"),a=t.hasAttribute(s)?t.getAttribute(s).split(","):[];a.unshift(r.name),o.writer.setAttribute(s,a.join(","),t),o.mapper.bindElementToMarker(t,i.markerName);}(_l10,e,_r25,n,o,i);}!function(t,e,n,o,i){var r="".concat(i.group,"-").concat(e?"start":"end"),s=i.name?{name:i.name}:null,a=n.writer.createUIElement(r,s);n.writer.insert(t,a),n.mapper.bindElementToMarker(a,o.markerName);}(n.mapper.toViewPosition(r),e,n,o,i);}function id(t){return"string"==typeof t&&(t={name:t}),t.attributes?Array.isArray(t.attributes)||(t.attributes=[t.attributes]):t.attributes=[],t.children=!!t.children,t;}function rd(t,e){return"function"==typeof t?t:function(n,o){return function(t,e,n){"string"==typeof t&&(t={name:t});var o;var i=e.writer,r=Object.assign({},t.attributes);if("container"==n)o=i.createContainerElement(t.name,r);else if("attribute"==n){var _e138={priority:t.priority||Da.DEFAULT_PRIORITY};o=i.createAttributeElement(t.name,r,_e138);}else o=i.createUIElement(t.name,r);if(t.styles){var _e139=Object.keys(t.styles);for(var _i66=0,_e140=_e139;_i66<_e140.length;_i66++){var _n122=_e140[_i66];i.setStyle(_n122,t.styles[_n122],o);}}if(t.classes){var _e141=t.classes;if("string"==typeof _e141)i.addClass(_e141,o);else{var _iterator194=_createForOfIteratorHelper(_e141),_step194;try{for(_iterator194.s();!(_step194=_iterator194.n()).done;){var _t160=_step194.value;i.addClass(_t160,o);}}catch(err){_iterator194.e(err);}finally{_iterator194.f();}}}return o;}(t,o,e);};}function sd(t){return t.model.values?function(e,n,o){var i=t.view[e];return i?i(e,n,o):null;}:t.view;}function ad(t){return"string"==typeof t?function(e){return{key:t,value:e};}:"object"==_typeof(t)?t.value?function(){return t;}:function(e){return{key:t.key,value:e};}:t;}function ld(t,e,n){var o="function"==typeof t?t(e,n):t;return o?(o.priority||(o.priority=10),o.id||(o.id=e.markerName),o):null;}function cd(t){var e=function(t){return function(e,n){if(!e.is("element",t.name))return!1;if("attribute"==n.type){if(t.attributes.includes(n.attributeKey))return!0;}else if(t.children)return!0;return!1;};}(t);return function(t,n){var o=[];n.reconvertedElements||(n.reconvertedElements=new Set());var _iterator195=_createForOfIteratorHelper(n.changes),_step195;try{for(_iterator195.s();!(_step195=_iterator195.n()).done;){var _t161=_step195.value;var _i67="attribute"==_t161.type?_t161.range.start.nodeAfter:_t161.position.parent;if(_i67&&e(_i67,_t161)){if(!n.reconvertedElements.has(_i67)){n.reconvertedElements.add(_i67);var _t162=Ec._createBefore(_i67);var _e142=o.length;for(var _n123=o.length-1;_n123>=0;_n123--){var _i68=o[_n123],_r26=("attribute"==_i68.type?_i68.range.start:_i68.position).compareWith(_t162);if("before"==_r26||"remove"==_i68.type&&"same"==_r26)break;_e142=_n123;}o.splice(_e142,0,{type:"remove",name:_i67.name,position:_t162,length:1},{type:"reinsert",name:_i67.name,position:_t162,length:1});}}else o.push(_t161);}}catch(err){_iterator195.e(err);}finally{_iterator195.f();}n.changes=o;};}function dd(t){return function(e,n){var o=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var i=["insert"];var _iterator196=_createForOfIteratorHelper(t.attributes),_step196;try{for(_iterator196.s();!(_step196=_iterator196.n()).done;){var _n124=_step196.value;e.hasAttribute(_n124)&&i.push("attribute:".concat(_n124));}}catch(err){_iterator196.e(err);}finally{_iterator196.f();}return!!i.every(function(t){return n.test(e,t);})&&(o.preflight||i.forEach(function(t){return n.consume(e,t);}),!0);};}function ud(t,e,n,o){var _iterator197=_createForOfIteratorHelper(e),_step197;try{for(_iterator197.s();!(_step197=_iterator197.n()).done;){var _i69=_step197.value;hd(t.root,_i69,n,o)||n.convertItem(_i69);}}catch(err){_iterator197.e(err);}finally{_iterator197.f();}}function hd(t,e,n,o){var i=n.writer,r=n.mapper;if(!o.reconversion)return!1;var s=r.toViewElement(e);return!(!s||s.root==t)&&!!n.canReuseView(s)&&(i.move(i.createRangeOn(s),r.toViewPosition(Ec._createBefore(e))),!0);}function gd(t,e){var _ref31=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{},n=_ref31.preflight;return n?e.test(t,"insert"):e.consume(t,"insert");}function md(t){var _t$model=t.model,e=_t$model.schema,n=_t$model.document;var _iterator198=_createForOfIteratorHelper(n.getRootNames()),_step198;try{for(_iterator198.s();!(_step198=_iterator198.n()).done;){var _o75=_step198.value;var _i70=n.getRoot(_o75);if(_i70.isEmpty&&!e.checkChild(_i70,"$text")&&e.checkChild(_i70,"paragraph"))return t.insertElement("paragraph",_i70),!0;}}catch(err){_iterator198.e(err);}finally{_iterator198.f();}return!1;}function pd(t,e,n){var o=n.createContext(t);return!!n.checkChild(o,"paragraph")&&!!n.checkChild(o.push("paragraph"),e);}function fd(t,e){var n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0);}var kd=/*#__PURE__*/function(_Xc2){_inherits(kd,_Xc2);var _super76=_createSuper(kd);function kd(){_classCallCheck(this,kd);return _super76.apply(this,arguments);}_createClass(kd,[{key:"elementToElement",value:function elementToElement(t){return this.add(bd(t));}},{key:"elementToAttribute",value:function elementToAttribute(t){return this.add(function(t){t=td(t),_d(t);var e=Cd(t,!1),n=wd(t.view),o=n?"element:".concat(n):"element";return function(n){n.on(o,e,{priority:t.converterPriority||"low"});};}(t));}},{key:"attributeToAttribute",value:function attributeToAttribute(t){return this.add(function(t){t=td(t);var e=null;("string"==typeof t.view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});var e=t.view.key;var n;if("class"==e||"style"==e){n=_defineProperty({},"class"==e?"classes":"styles",t.view.value);}else{n={attributes:_defineProperty({},e,void 0===t.view.value?/[\s\S]*/:t.view.value)};}t.view.name&&(n.name=t.view.name);return t.view=n,e;}(t));_d(t,e);var n=Cd(t,!0);return function(e){e.on("element",n,{priority:t.converterPriority||"low"});};}(t));}},{key:"elementToMarker",value:function elementToMarker(t){return this.add(function(t){var e=function(t){return function(e,n){var o="string"==typeof t?t:t(e,n);return n.writer.createElement("$marker",{"data-name":o});};}(t.model);return bd(_objectSpread(_objectSpread({},t),{},{model:e}));}(t));}},{key:"dataToMarker",value:function dataToMarker(t){return this.add(function(t){t=td(t),t.model||(t.model=function(e){return e?t.view+":"+e:t.view;});var e={view:t.view,model:t.model},n=Ad(vd(e,"start")),o=Ad(vd(e,"end"));return function(i){i.on("element:".concat(t.view,"-start"),n,{priority:t.converterPriority||"normal"}),i.on("element:".concat(t.view,"-end"),o,{priority:t.converterPriority||"normal"});var r=b.get("low"),s=b.get("highest"),a=b.get(t.converterPriority)/s;i.on("element",function(t){return function(e,n,o){var i="data-".concat(t.view);function r(e,i){var _iterator199=_createForOfIteratorHelper(i),_step199;try{for(_iterator199.s();!(_step199=_iterator199.n()).done;){var _r27=_step199.value;var _i71=t.model(_r27,o),_s14=o.writer.createElement("$marker",{"data-name":_i71});o.writer.insert(_s14,e),n.modelCursor.isEqual(e)?n.modelCursor=n.modelCursor.getShiftedBy(1):n.modelCursor=n.modelCursor._getTransformedByInsertion(e,1),n.modelRange=n.modelRange._getTransformedByInsertion(e,1)[0];}}catch(err){_iterator199.e(err);}finally{_iterator199.f();}}(o.consumable.test(n.viewItem,{attributes:i+"-end-after"})||o.consumable.test(n.viewItem,{attributes:i+"-start-after"})||o.consumable.test(n.viewItem,{attributes:i+"-end-before"})||o.consumable.test(n.viewItem,{attributes:i+"-start-before"}))&&(n.modelRange||Object.assign(n,o.convertChildren(n.viewItem,n.modelCursor)),o.consumable.consume(n.viewItem,{attributes:i+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-end-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(i+"-start-after").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-end-before").split(",")),o.consumable.consume(n.viewItem,{attributes:i+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(i+"-start-before").split(",")));};}(e),{priority:r+a});};}(t));}}]);return kd;}(Xc);function bd(t){var e=Ad(t=td(t)),n=wd(t.view),o=n?"element:".concat(n):"element";return function(n){n.on(o,e,{priority:t.converterPriority||"normal"});};}function wd(t){return"string"==typeof t?t:"object"==_typeof(t)&&"string"==typeof t.name?t.name:null;}function Ad(t){var e=new as(t.view);return function(n,o,i){var r=e.match(o.viewItem);if(!r)return;var s=r.match;if(s.name=!0,!i.consumable.test(o.viewItem,s))return;var a=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t);}(t.model,o.viewItem,i);a&&i.safeInsert(a,o.modelCursor)&&(i.consumable.consume(o.viewItem,s),i.convertChildren(o.viewItem,a),i.updateConversionResult(a,o));};}function _d(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=null===e||function(t){return t.getAttribute(e);},o="object"!=_typeof(t.model)?t.model:t.model.key,i="object"!=_typeof(t.model)||void 0===t.model.value?n:t.model.value;t.model={key:o,value:i};}function Cd(t,e){var n=new as(t.view);return function(o,i,r){if(!i.modelRange&&e)return;var s=n.match(i.viewItem);if(!s)return;if(!function(t,e){var n="function"==typeof t?t(e):t;if("object"==_typeof(n)&&!wd(n))return!1;return!n.classes&&!n.attributes&&!n.styles;}(t.view,i.viewItem)?delete s.match.name:s.match.name=!0,!r.consumable.test(i.viewItem,s.match))return;var a=t.model.key,l="function"==typeof t.model.value?t.model.value(i.viewItem,r):t.model.value;if(null===l)return;i.modelRange||Object.assign(i,r.convertChildren(i.viewItem,i.modelCursor));var c=function(t,e,n,o){var i=!1;for(var _i72=0,_Array$from6=Array.from(t.getItems({shallow:n}));_i72<_Array$from6.length;_i72++){var _r28=_Array$from6[_i72];o.schema.checkAttribute(_r28,e.key)&&(i=!0,_r28.hasAttribute(e.key)||o.writer.setAttribute(e.key,e.value,_r28));}return i;}(i.modelRange,{key:a,value:l},e,r);c&&(r.consumable.test(i.viewItem,{name:!0})&&(s.match.name=!0),r.consumable.consume(i.viewItem,s.match));};}function vd(t,e){return{view:"".concat(t.view,"-").concat(e),model:function model(e,n){var o=e.getAttribute("name"),i=t.model(o,n);return n.writer.createElement("$marker",{"data-name":i});}};}function yd(t){t.document.registerPostFixer(function(e){return function(t,e){var n=e.document.selection,o=e.schema,i=[];var r=!1;var _iterator200=_createForOfIteratorHelper(n.getRanges()),_step200;try{for(_iterator200.s();!(_step200=_iterator200.n()).done;){var _t164=_step200.value;var _e143=xd(_t164,o);_e143&&!_e143.isEqual(_t164)?(i.push(_e143),r=!0):i.push(_t164);}}catch(err){_iterator200.e(err);}finally{_iterator200.f();}r&&t.setSelection(function(t){var e=_toConsumableArray(t),n=new Set();var o=1;for(;o<e.length;){var _t163=e[o],_i73=e.slice(0,o);var _iterator201=_createForOfIteratorHelper(_i73.entries()),_step201;try{for(_iterator201.s();!(_step201=_iterator201.n()).done;){var _step201$value=_slicedToArray(_step201.value,2),_r29=_step201$value[0],_s15=_step201$value[1];if(!n.has(_r29))if(_t163.isEqual(_s15))n.add(_r29);else if(_t163.isIntersecting(_s15)){n.add(_r29),n.add(o);var _i74=_t163.getJoined(_s15);e.push(_i74);}}}catch(err){_iterator201.e(err);}finally{_iterator201.f();}o++;}return e.filter(function(t,e){return!n.has(e);});}(i),{backward:n.isBackward});return!1;}(e,t);});}function xd(t,e){return t.isCollapsed?function(t,e){var n=t.start,o=e.getNearestSelectionRange(n);if(!o){var _t165=n.getAncestors().reverse().find(function(t){return e.isObject(t);});return _t165?Bc._createOn(_t165):null;}if(!o.isCollapsed)return o;var i=o.start;if(n.isEqual(i))return null;return new Bc(i);}(t,e):function(t,e){var n=t.start,o=t.end,i=e.checkChild(n,"$text"),r=e.checkChild(o,"$text"),s=e.getLimitElement(n),a=e.getLimitElement(o);if(s===a){if(i&&r)return null;if(function(t,e,n){var o=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),i=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return o||i;}(n,o,e)){var _t166=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),_i75=o.nodeBefore&&e.isSelectable(o.nodeBefore)?null:e.getNearestSelectionRange(o,"backward"),_r30=_t166?_t166.start:n,_s16=_i75?_i75.end:o;return new Bc(_r30,_s16);}}var l=s&&!s.is("rootElement"),c=a&&!a.is("rootElement");if(l||c){var _t167=n.nodeAfter&&o.nodeBefore&&n.nodeAfter.parent===o.nodeBefore.parent,_i76=l&&(!_t167||!Dd(n.nodeAfter,e)),_r31=c&&(!_t167||!Dd(o.nodeBefore,e));var _d2=n,_u2=o;return _i76&&(_d2=Ec._createBefore(Ed(s,e))),_r31&&(_u2=Ec._createAfter(Ed(a,e))),new Bc(_d2,_u2);}return null;}(t,e);}function Ed(t,e){var n=t,o=n;for(;e.isLimit(o)&&o.parent;)n=o,o=o.parent;return n;}function Dd(t,e){return t&&e.isSelectable(t);}var Td=/*#__PURE__*/function(_$7){_inherits(Td,_$7);var _super77=_createSuper(Td);function Td(t,e){var _this119;_classCallCheck(this,Td);_this119=_super77.call(this),_this119.model=t,_this119.view=new kc(e),_this119.mapper=new Nc(),_this119.downcastDispatcher=new Lc({mapper:_this119.mapper,schema:t.schema});var n=_this119.model.document,o=n.selection,i=_this119.model.markers;var r,s,a;_this119.listenTo(_this119.model,"_beforeChanges",function(){_this119.view._disableRendering(!0);},{priority:"highest"}),_this119.listenTo(_this119.model,"_afterChanges",function(){_this119.view._disableRendering(!1);},{priority:"lowest"}),_this119.listenTo(n,"change",function(){_this119.view.change(function(t){_this119.downcastDispatcher.convertChanges(n.differ,i,t),_this119.downcastDispatcher.convertSelection(o,i,t);});},{priority:"low"}),_this119.listenTo(_this119.view.document,"selectionChange",function(t,e){return function(n,o){var i=o.newSelection,r=[];var _iterator202=_createForOfIteratorHelper(i.getRanges()),_step202;try{for(_iterator202.s();!(_step202=_iterator202.n()).done;){var _t168=_step202.value;r.push(e.toModelRange(_t168));}}catch(err){_iterator202.e(err);}finally{_iterator202.f();}var s=t.createSelection(r,{backward:i.isBackward});s.isEqual(t.document.selection)||t.change(function(t){t.setSelection(s);});};}(_this119.model,_this119.mapper)),_this119.listenTo(_this119.view.document,"beforeinput",(r=_this119.mapper,s=_this119.model.schema,a=_this119.view,function(t,e){if(!a.document.isComposing||l.isAndroid)for(var _t169=0;_t169<e.targetRanges.length;_t169++){var _n126=e.targetRanges[_t169],_o76=r.toModelRange(_n126),_i77=xd(_o76,s);_i77&&!_i77.isEqual(_o76)&&(e.targetRanges[_t169]=r.toViewRange(_i77));}}),{priority:"high"}),_this119.downcastDispatcher.on("insert:$text",function(t,e,n){if(!n.consumable.consume(e.item,t.name))return;var o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r);},{priority:"lowest"}),_this119.downcastDispatcher.on("insert",function(t,e,n){n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item);},{priority:"lowest"}),_this119.downcastDispatcher.on("remove",function(t,e,n){var o=n.mapper.toViewPosition(e.position),i=e.position.getShiftedBy(e.length),r=n.mapper.toViewPosition(i,{isPhantom:!0}),s=n.writer.createRange(o,r),a=n.writer.remove(s.getTrimmed());var _iterator203=_createForOfIteratorHelper(n.writer.createRangeIn(a).getItems()),_step203;try{for(_iterator203.s();!(_step203=_iterator203.n()).done;){var _t170=_step203.value;n.mapper.unbindViewElement(_t170,{defer:!0});}}catch(err){_iterator203.e(err);}finally{_iterator203.f();}},{priority:"low"}),_this119.downcastDispatcher.on("selection",function(t,e,n){var o=n.writer,i=o.document.selection;var _iterator204=_createForOfIteratorHelper(i.getRanges()),_step204;try{for(_iterator204.s();!(_step204=_iterator204.n()).done;){var _t171=_step204.value;_t171.isCollapsed&&_t171.end.parent.isAttached()&&n.writer.mergeAttributes(_t171.start);}}catch(err){_iterator204.e(err);}finally{_iterator204.f();}o.setSelection(null);},{priority:"high"}),_this119.downcastDispatcher.on("selection",function(t,e,n){var o=e.selection;if(o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;var i=[];var _iterator205=_createForOfIteratorHelper(o.getRanges()),_step205;try{for(_iterator205.s();!(_step205=_iterator205.n()).done;){var _t172=_step205.value;i.push(n.mapper.toViewRange(_t172));}}catch(err){_iterator205.e(err);}finally{_iterator205.f();}n.writer.setSelection(i,{backward:o.isBackward});},{priority:"low"}),_this119.downcastDispatcher.on("selection",function(t,e,n){var o=e.selection;if(!o.isCollapsed)return;if(!n.consumable.consume(o,"selection"))return;var i=n.writer,r=o.getFirstPosition(),s=n.mapper.toViewPosition(r),a=i.breakAttributes(s);i.setSelection(a);},{priority:"low"}),_this119.view.document.roots.bindTo(_this119.model.document.roots).using(function(t){if("$graveyard"==t.rootName)return null;var e=new ha(_this119.view.document,t.name);return e.rootName=t.rootName,_this119.mapper.bindElements(t,e),e;});return _this119;}_createClass(Td,[{key:"destroy",value:function destroy(){this.view.destroy(),this.stopListening();}},{key:"reconvertMarker",value:function reconvertMarker(t){var _this120=this;var e="string"==typeof t?t:t.name,n=this.model.markers.get(e);if(!n)throw new _("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:e});this.model.change(function(){_this120.model.markers._refresh(n);});}},{key:"reconvertItem",value:function reconvertItem(t){var _this121=this;this.model.change(function(){_this121.model.document.differ._refreshItem(t);});}}]);return Td;}($());var Sd=/*#__PURE__*/function(){function Sd(){_classCallCheck(this,Sd);this._consumables=new Map();}_createClass(Sd,[{key:"add",value:function add(t,e){var n;t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):(this._consumables.has(t)?n=this._consumables.get(t):(n=new Md(t),this._consumables.set(t,n)),n.add(e));}},{key:"test",value:function test(t,e){var n=this._consumables.get(t);return void 0===n?null:t.is("$text")||t.is("documentFragment")?n:n.test(e);}},{key:"consume",value:function consume(t,e){return!!this.test(t,e)&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!1):this._consumables.get(t).consume(e),!0);}},{key:"revert",value:function revert(t,e){var n=this._consumables.get(t);void 0!==n&&(t.is("$text")||t.is("documentFragment")?this._consumables.set(t,!0):n.revert(e));}}],[{key:"consumablesFromElement",value:function consumablesFromElement(t){var e={element:t,name:!0,attributes:[],classes:[],styles:[]},n=t.getAttributeKeys();var _iterator206=_createForOfIteratorHelper(n),_step206;try{for(_iterator206.s();!(_step206=_iterator206.n()).done;){var _t173=_step206.value;"style"!=_t173&&"class"!=_t173&&e.attributes.push(_t173);}}catch(err){_iterator206.e(err);}finally{_iterator206.f();}var o=t.getClassNames();var _iterator207=_createForOfIteratorHelper(o),_step207;try{for(_iterator207.s();!(_step207=_iterator207.n()).done;){var _t174=_step207.value;e.classes.push(_t174);}}catch(err){_iterator207.e(err);}finally{_iterator207.f();}var i=t.getStyleNames();var _iterator208=_createForOfIteratorHelper(i),_step208;try{for(_iterator208.s();!(_step208=_iterator208.n()).done;){var _t175=_step208.value;e.styles.push(_t175);}}catch(err){_iterator208.e(err);}finally{_iterator208.f();}return e;}},{key:"createFrom",value:function createFrom(t,e){if(e||(e=new Sd()),t.is("$text"))return e.add(t),e;t.is("element")&&e.add(t,Sd.consumablesFromElement(t)),t.is("documentFragment")&&e.add(t);var _iterator209=_createForOfIteratorHelper(t.getChildren()),_step209;try{for(_iterator209.s();!(_step209=_iterator209.n()).done;){var _n127=_step209.value;e=Sd.createFrom(_n127,e);}}catch(err){_iterator209.e(err);}finally{_iterator209.f();}return e;}}]);return Sd;}();var Id=["attributes","classes","styles"];var Md=/*#__PURE__*/function(){function Md(t){_classCallCheck(this,Md);this.element=t,this._canConsumeName=null,this._consumables={attributes:new Map(),styles:new Map(),classes:new Map()};}_createClass(Md,[{key:"add",value:function add(t){t.name&&(this._canConsumeName=!0);for(var _i78=0,_Id=Id;_i78<_Id.length;_i78++){var _e144=_Id[_i78];_e144 in t&&this._add(_e144,t[_e144]);}}},{key:"test",value:function test(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(var _i79=0,_Id2=Id;_i79<_Id2.length;_i79++){var _e145=_Id2[_i79];if(_e145 in t){var _n128=this._test(_e145,t[_e145]);if(!0!==_n128)return _n128;}}return!0;}},{key:"consume",value:function consume(t){t.name&&(this._canConsumeName=!1);for(var _i80=0,_Id3=Id;_i80<_Id3.length;_i80++){var _e146=_Id3[_i80];_e146 in t&&this._consume(_e146,t[_e146]);}}},{key:"revert",value:function revert(t){t.name&&(this._canConsumeName=!0);for(var _i81=0,_Id4=Id;_i81<_Id4.length;_i81++){var _e147=_Id4[_i81];_e147 in t&&this._revert(_e147,t[_e147]);}}},{key:"_add",value:function _add(t,e){var n=ft(e)?e:[e],o=this._consumables[t];var _iterator210=_createForOfIteratorHelper(n),_step210;try{for(_iterator210.s();!(_step210=_iterator210.n()).done;){var _e148=_step210.value;if("attributes"===t&&("class"===_e148||"style"===_e148))throw new _("viewconsumable-invalid-attribute",this);if(o.set(_e148,!0),"styles"===t){var _iterator211=_createForOfIteratorHelper(this.element.document.stylesProcessor.getRelatedStyles(_e148)),_step211;try{for(_iterator211.s();!(_step211=_iterator211.n()).done;){var _t176=_step211.value;o.set(_t176,!0);}}catch(err){_iterator211.e(err);}finally{_iterator211.f();}}}}catch(err){_iterator210.e(err);}finally{_iterator210.f();}}},{key:"_test",value:function _test(t,e){var n=ft(e)?e:[e],o=this._consumables[t];var _iterator212=_createForOfIteratorHelper(n),_step212;try{for(_iterator212.s();!(_step212=_iterator212.n()).done;){var _e149=_step212.value;if("attributes"!==t||"class"!==_e149&&"style"!==_e149){var _t177=o.get(_e149);if(void 0===_t177)return null;if(!_t177)return!1;}else{var _t178="class"==_e149?"classes":"styles",_n129=this._test(_t178,_toConsumableArray(this._consumables[_t178].keys()));if(!0!==_n129)return _n129;}}}catch(err){_iterator212.e(err);}finally{_iterator212.f();}return!0;}},{key:"_consume",value:function _consume(t,e){var n=ft(e)?e:[e],o=this._consumables[t];var _iterator213=_createForOfIteratorHelper(n),_step213;try{for(_iterator213.s();!(_step213=_iterator213.n()).done;){var _e150=_step213.value;if("attributes"!==t||"class"!==_e150&&"style"!==_e150){if(o.set(_e150,!1),"styles"==t){var _iterator214=_createForOfIteratorHelper(this.element.document.stylesProcessor.getRelatedStyles(_e150)),_step214;try{for(_iterator214.s();!(_step214=_iterator214.n()).done;){var _t179=_step214.value;o.set(_t179,!1);}}catch(err){_iterator214.e(err);}finally{_iterator214.f();}}}else{var _t180="class"==_e150?"classes":"styles";this._consume(_t180,_toConsumableArray(this._consumables[_t180].keys()));}}}catch(err){_iterator213.e(err);}finally{_iterator213.f();}}},{key:"_revert",value:function _revert(t,e){var n=ft(e)?e:[e],o=this._consumables[t];var _iterator215=_createForOfIteratorHelper(n),_step215;try{for(_iterator215.s();!(_step215=_iterator215.n()).done;){var _e151=_step215.value;if("attributes"!==t||"class"!==_e151&&"style"!==_e151){!1===o.get(_e151)&&o.set(_e151,!0);}else{var _t181="class"==_e151?"classes":"styles";this._revert(_t181,_toConsumableArray(this._consumables[_t181].keys()));}}}catch(err){_iterator215.e(err);}finally{_iterator215.f();}}}]);return Md;}();var Bd=/*#__PURE__*/function(_$8){_inherits(Bd,_$8);var _super78=_createSuper(Bd);function Bd(){var _this122;_classCallCheck(this,Bd);_this122=_super78.call(this),_this122._sourceDefinitions={},_this122._attributeProperties={},_this122.decorate("checkChild"),_this122.decorate("checkAttribute"),_this122.on("checkAttribute",function(t,e){e[0]=new Nd(e[0]);},{priority:"highest"}),_this122.on("checkChild",function(t,e){e[0]=new Nd(e[0]),e[1]=_this122.getDefinition(e[1]);},{priority:"highest"});return _this122;}_createClass(Bd,[{key:"register",value:function register(t,e){if(this._sourceDefinitions[t])throw new _("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache();}},{key:"extend",value:function extend(t,e){if(!this._sourceDefinitions[t])throw new _("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache();}},{key:"getDefinitions",value:function getDefinitions(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions;}},{key:"getDefinition",value:function getDefinition(t){var e;return e="string"==typeof t?t:"is"in t&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e];}},{key:"isRegistered",value:function isRegistered(t){return!!this.getDefinition(t);}},{key:"isBlock",value:function isBlock(t){var e=this.getDefinition(t);return!(!e||!e.isBlock);}},{key:"isLimit",value:function isLimit(t){var e=this.getDefinition(t);return!!e&&!(!e.isLimit&&!e.isObject);}},{key:"isObject",value:function isObject(t){var e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent);}},{key:"isInline",value:function isInline(t){var e=this.getDefinition(t);return!(!e||!e.isInline);}},{key:"isSelectable",value:function isSelectable(t){var e=this.getDefinition(t);return!!e&&!(!e.isSelectable&&!e.isObject);}},{key:"isContent",value:function isContent(t){var e=this.getDefinition(t);return!!e&&!(!e.isContent&&!e.isObject);}},{key:"checkChild",value:function checkChild(t,e){return!!e&&this._checkContextMatch(e,t);}},{key:"checkAttribute",value:function checkAttribute(t,e){var n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e);}},{key:"checkMerge",value:function checkMerge(t,e){if(t instanceof Ec){var _e152=t.nodeBefore,_n130=t.nodeAfter;if(!(_e152 instanceof vc))throw new _("schema-check-merge-no-element-before",this);if(!(_n130 instanceof vc))throw new _("schema-check-merge-no-element-after",this);return this.checkMerge(_e152,_n130);}var _iterator216=_createForOfIteratorHelper(e.getChildren()),_step216;try{for(_iterator216.s();!(_step216=_iterator216.n()).done;){var _n131=_step216.value;if(!this.checkChild(t,_n131))return!1;}}catch(err){_iterator216.e(err);}finally{_iterator216.f();}return!0;}},{key:"addChildCheck",value:function addChildCheck(t){this.on("checkChild",function(e,_ref32){var _ref33=_slicedToArray(_ref32,2),n=_ref33[0],o=_ref33[1];if(!o)return;var i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i);},{priority:"high"});}},{key:"addAttributeCheck",value:function addAttributeCheck(t){this.on("checkAttribute",function(e,_ref34){var _ref35=_slicedToArray(_ref34,2),n=_ref35[0],o=_ref35[1];var i=t(n,o);"boolean"==typeof i&&(e.stop(),e.return=i);},{priority:"high"});}},{key:"setAttributeProperties",value:function setAttributeProperties(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e);}},{key:"getAttributeProperties",value:function getAttributeProperties(t){return this._attributeProperties[t]||{};}},{key:"getLimitElement",value:function getLimitElement(t){var e;if(t instanceof Ec)e=t.parent;else{e=(t instanceof Bc?[t]:Array.from(t.getRanges())).reduce(function(t,e){var n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n;},null);}for(;!this.isLimit(e)&&e.parent;)e=e.parent;return e;}},{key:"checkAttributeInSelection",value:function checkAttributeInSelection(t,e){if(t.isCollapsed){var _n132=[].concat(_toConsumableArray(t.getFirstPosition().getAncestors()),[new _c("",t.getAttributes())]);return this.checkAttribute(_n132,e);}{var _n133=t.getRanges();var _iterator217=_createForOfIteratorHelper(_n133),_step217;try{for(_iterator217.s();!(_step217=_iterator217.n()).done;){var _t182=_step217.value;var _iterator218=_createForOfIteratorHelper(_t182),_step218;try{for(_iterator218.s();!(_step218=_iterator218.n()).done;){var _n134=_step218.value;if(this.checkAttribute(_n134.item,e))return!0;}}catch(err){_iterator218.e(err);}finally{_iterator218.f();}}}catch(err){_iterator217.e(err);}finally{_iterator217.f();}}return!1;}},{key:"getValidRanges",value:/*#__PURE__*/_regeneratorRuntime().mark(function getValidRanges(t,e){var _iterator220,_step220,_n135;return _regeneratorRuntime().wrap(function getValidRanges$(_context25){while(1)switch(_context25.prev=_context25.next){case 0:t=/*#__PURE__*/_regeneratorRuntime().mark(function _callee6(t){var _iterator219,_step219,_e153;return _regeneratorRuntime().wrap(function _callee6$(_context24){while(1)switch(_context24.prev=_context24.next){case 0:_iterator219=_createForOfIteratorHelper(t);_context24.prev=1;_iterator219.s();case 3:if((_step219=_iterator219.n()).done){_context24.next=8;break;}_e153=_step219.value;return _context24.delegateYield(_e153.getMinimalFlatRanges(),"t0",6);case 6:_context24.next=3;break;case 8:_context24.next=13;break;case 10:_context24.prev=10;_context24.t1=_context24["catch"](1);_iterator219.e(_context24.t1);case 13:_context24.prev=13;_iterator219.f();return _context24.finish(13);case 16:case"end":return _context24.stop();}},_callee6,null,[[1,10,13,16]]);})(t);_iterator220=_createForOfIteratorHelper(t);_context25.prev=2;_iterator220.s();case 4:if((_step220=_iterator220.n()).done){_context25.next=9;break;}_n135=_step220.value;return _context25.delegateYield(this._getValidRangesForRange(_n135,e),"t0",7);case 7:_context25.next=4;break;case 9:_context25.next=14;break;case 11:_context25.prev=11;_context25.t1=_context25["catch"](2);_iterator220.e(_context25.t1);case 14:_context25.prev=14;_iterator220.f();return _context25.finish(14);case 17:case"end":return _context25.stop();}},getValidRanges,this,[[2,11,14,17]]);})},{key:"getNearestSelectionRange",value:function getNearestSelectionRange(t){var _this123=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"both";if(this.checkChild(t,"$text"))return new Bc(t);var n,o;var i=t.getAncestors().reverse().find(function(t){return _this123.isLimit(t);})||t.root;"both"!=e&&"backward"!=e||(n=new yc({boundaries:Bc._createIn(i),startPosition:t,direction:"backward"})),"both"!=e&&"forward"!=e||(o=new yc({boundaries:Bc._createIn(i),startPosition:t}));var _iterator221=_createForOfIteratorHelper(/*#__PURE__*/_regeneratorRuntime().mark(function _callee7(t,e){var n,_e154,_t183;return _regeneratorRuntime().wrap(function _callee7$(_context26){while(1)switch(_context26.prev=_context26.next){case 0:n=!1;case 1:if(n){_context26.next=18;break;}if(!(n=!0,t)){_context26.next=9;break;}_e154=t.next();_context26.t0=_e154.done;if(_context26.t0){_context26.next=9;break;}n=!1;_context26.next=9;return{walker:t,value:_e154.value};case 9:if(!e){_context26.next=16;break;}_t183=e.next();_context26.t1=_t183.done;if(_context26.t1){_context26.next=16;break;}n=!1;_context26.next=16;return{walker:e,value:_t183.value};case 16:_context26.next=1;break;case 18:case"end":return _context26.stop();}},_callee7);})(n,o)),_step221;try{for(_iterator221.s();!(_step221=_iterator221.n()).done;){var _t184=_step221.value;var _e155=_t184.walker==n?"elementEnd":"elementStart",_o77=_t184.value;if(_o77.type==_e155&&this.isObject(_o77.item))return Bc._createOn(_o77.item);if(this.checkChild(_o77.nextPosition,"$text"))return new Bc(_o77.nextPosition);}}catch(err){_iterator221.e(err);}finally{_iterator221.f();}return null;}},{key:"findAllowedParent",value:function findAllowedParent(t,e){var n=t.parent;for(;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent;}return null;}},{key:"setAllowedAttributes",value:function setAllowedAttributes(t,e,n){var o=n.model;for(var _i82=0,_Object$entries2=Object.entries(e);_i82<_Object$entries2.length;_i82++){var _Object$entries2$_i=_slicedToArray(_Object$entries2[_i82],2),_i83=_Object$entries2$_i[0],_r32=_Object$entries2$_i[1];o.schema.checkAttribute(t,_i83)&&n.setAttribute(_i83,_r32,t);}}},{key:"removeDisallowedAttributes",value:function removeDisallowedAttributes(t,e){var _iterator222=_createForOfIteratorHelper(t),_step222;try{for(_iterator222.s();!(_step222=_iterator222.n()).done;){var _n136=_step222.value;if(_n136.is("$text"))qd(this,_n136,e);else{var _t185=Bc._createIn(_n136).getPositions();var _iterator223=_createForOfIteratorHelper(_t185),_step223;try{for(_iterator223.s();!(_step223=_iterator223.n()).done;){var _n137=_step223.value;qd(this,_n137.nodeBefore||_n137.parent,e);}}catch(err){_iterator223.e(err);}finally{_iterator223.f();}}}}catch(err){_iterator222.e(err);}finally{_iterator222.f();}}},{key:"getAttributesWithProperty",value:function getAttributesWithProperty(t,e,n){var o={};var _iterator224=_createForOfIteratorHelper(t.getAttributes()),_step224;try{for(_iterator224.s();!(_step224=_iterator224.n()).done;){var _step224$value=_slicedToArray(_step224.value,2),_i84=_step224$value[0],_r33=_step224$value[1];var _t186=this.getAttributeProperties(_i84);void 0!==_t186[e]&&(void 0!==n&&n!==_t186[e]||(o[_i84]=_r33));}}catch(err){_iterator224.e(err);}finally{_iterator224.f();}return o;}},{key:"createContext",value:function createContext(t){return new Nd(t);}},{key:"_clearCache",value:function _clearCache(){this._compiledDefinitions=null;}},{key:"_compile",value:function _compile(){var t={},e=this._sourceDefinitions,n=Object.keys(e);for(var _i85=0,_n138=n;_i85<_n138.length;_i85++){var _o78=_n138[_i85];t[_o78]=zd(e[_o78],_o78);}for(var _i86=0,_n139=n;_i86<_n139.length;_i86++){var _e156=_n139[_i86];Pd(t,_e156);}for(var _i87=0,_n140=n;_i87<_n140.length;_i87++){var _e157=_n140[_i87];Ld(t,_e157);}for(var _i88=0,_n141=n;_i88<_n141.length;_i88++){var _e158=_n141[_i88];Od(t,_e158);}for(var _i89=0,_n142=n;_i89<_n142.length;_i89++){var _e159=_n142[_i89];Rd(t,_e159),jd(t,_e159);}for(var _i90=0,_n143=n;_i90<_n143.length;_i90++){var _e160=_n143[_i90];Fd(t,_e160),Vd(t,_e160),Hd(t,_e160);}this._compiledDefinitions=t;}},{key:"_checkContextMatch",value:function _checkContextMatch(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:e.length-1;var o=e.getItem(n);if(t.allowIn.includes(o.name)){if(0==n)return!0;{var _t187=this.getDefinition(o);return this._checkContextMatch(_t187,e,n-1);}}return!1;}},{key:"_getValidRangesForRange",value:/*#__PURE__*/_regeneratorRuntime().mark(function _getValidRangesForRange(t,e){var n,o,_iterator225,_step225,_i91;return _regeneratorRuntime().wrap(function _getValidRangesForRange$(_context27){while(1)switch(_context27.prev=_context27.next){case 0:n=t.start,o=t.start;_iterator225=_createForOfIteratorHelper(t.getItems({shallow:!0}));_context27.prev=2;_iterator225.s();case 4:if((_step225=_iterator225.n()).done){_context27.next=19;break;}_i91=_step225.value;_context27.t0=_i91.is("element");if(!_context27.t0){_context27.next=9;break;}return _context27.delegateYield(this._getValidRangesForRange(Bc._createIn(_i91),e),"t1",9);case 9:_context27.t2=this.checkAttribute(_i91,e);if(_context27.t2){_context27.next=16;break;}_context27.t3=n.isEqual(o);if(_context27.t3){_context27.next=15;break;}_context27.next=15;return new Bc(n,o);case 15:n=Ec._createAfter(_i91);case 16:o=Ec._createAfter(_i91);case 17:_context27.next=4;break;case 19:_context27.next=24;break;case 21:_context27.prev=21;_context27.t4=_context27["catch"](2);_iterator225.e(_context27.t4);case 24:_context27.prev=24;_iterator225.f();return _context27.finish(24);case 27:_context27.t5=n.isEqual(o);if(_context27.t5){_context27.next=31;break;}_context27.next=31;return new Bc(n,o);case 31:case"end":return _context27.stop();}},_getValidRangesForRange,this,[[2,21,24,27]]);})}]);return Bd;}($());var Nd=/*#__PURE__*/function(_Symbol$iterator9){function Nd(t){_classCallCheck(this,Nd);if(t instanceof Nd)return t;var e;e="string"==typeof t?[t]:Array.isArray(t)?t:t.getAncestors({includeSelf:!0}),this._items=e.map(Gd);}_createClass(Nd,[{key:"length",get:function get(){return this._items.length;}},{key:"last",get:function get(){return this._items[this._items.length-1];}},{key:_Symbol$iterator9,value:function value(){return this._items[Symbol.iterator]();}},{key:"push",value:function push(t){var e=new Nd([t]);return e._items=[].concat(_toConsumableArray(this._items),_toConsumableArray(e._items)),e;}},{key:"getItem",value:function getItem(t){return this._items[t];}},{key:"getNames",value:/*#__PURE__*/_regeneratorRuntime().mark(function getNames(){return _regeneratorRuntime().wrap(function getNames$(_context28){while(1)switch(_context28.prev=_context28.next){case 0:return _context28.delegateYield(this._items.map(function(t){return t.name;}),"t0",1);case 1:case"end":return _context28.stop();}},getNames,this);})},{key:"endsWith",value:function endsWith(t){return Array.from(this.getNames()).join(" ").endsWith(t);}},{key:"startsWith",value:function startsWith(t){return Array.from(this.getNames()).join(" ").startsWith(t);}}]);return Nd;}(Symbol.iterator);function zd(t,e){var n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){var _iterator226=_createForOfIteratorHelper(t),_step226;try{for(_iterator226.s();!(_step226=_iterator226.n()).done;){var _n144=_step226.value;var _t188=Object.keys(_n144).filter(function(t){return t.startsWith("is");});var _iterator227=_createForOfIteratorHelper(_t188),_step227;try{for(_iterator227.s();!(_step227=_iterator227.n()).done;){var _o79=_step227.value;e[_o79]=!!_n144[_o79];}}catch(err){_iterator227.e(err);}finally{_iterator227.f();}}}catch(err){_iterator226.e(err);}finally{_iterator226.f();}}(t,n),Ud(t,n,"allowIn"),Ud(t,n,"allowContentOf"),Ud(t,n,"allowWhere"),Ud(t,n,"allowAttributes"),Ud(t,n,"allowAttributesOf"),Ud(t,n,"allowChildren"),Ud(t,n,"inheritTypesFrom"),function(t,e){var _iterator228=_createForOfIteratorHelper(t),_step228;try{for(_iterator228.s();!(_step228=_iterator228.n()).done;){var _n145=_step228.value;var _t189=_n145.inheritAllFrom;_t189&&(e.allowContentOf.push(_t189),e.allowWhere.push(_t189),e.allowAttributesOf.push(_t189),e.inheritTypesFrom.push(_t189));}}catch(err){_iterator228.e(err);}finally{_iterator228.f();}}(t,n),n;}function Pd(t,e){var n=t[e];var _iterator229=_createForOfIteratorHelper(n.allowChildren),_step229;try{for(_iterator229.s();!(_step229=_iterator229.n()).done;){var _o80=_step229.value;var _n146=t[_o80];_n146&&_n146.allowIn.push(e);}}catch(err){_iterator229.e(err);}finally{_iterator229.f();}n.allowChildren.length=0;}function Ld(t,e){var _iterator230=_createForOfIteratorHelper(t[e].allowContentOf),_step230;try{for(_iterator230.s();!(_step230=_iterator230.n()).done;){var _n147=_step230.value;if(t[_n147]){Wd(t,_n147).forEach(function(t){t.allowIn.push(e);});}}}catch(err){_iterator230.e(err);}finally{_iterator230.f();}delete t[e].allowContentOf;}function Od(t,e){var _iterator231=_createForOfIteratorHelper(t[e].allowWhere),_step231;try{for(_iterator231.s();!(_step231=_iterator231.n()).done;){var _n148=_step231.value;var _o81=t[_n148];if(_o81){var _t$e$allowIn;var _n149=_o81.allowIn;(_t$e$allowIn=t[e].allowIn).push.apply(_t$e$allowIn,_toConsumableArray(_n149));}}}catch(err){_iterator231.e(err);}finally{_iterator231.f();}delete t[e].allowWhere;}function Rd(t,e){var _iterator232=_createForOfIteratorHelper(t[e].allowAttributesOf),_step232;try{for(_iterator232.s();!(_step232=_iterator232.n()).done;){var _n150=_step232.value;var _o82=t[_n150];if(_o82){var _t$e$allowAttributes;var _n151=_o82.allowAttributes;(_t$e$allowAttributes=t[e].allowAttributes).push.apply(_t$e$allowAttributes,_toConsumableArray(_n151));}}}catch(err){_iterator232.e(err);}finally{_iterator232.f();}delete t[e].allowAttributesOf;}function jd(t,e){var n=t[e];var _iterator233=_createForOfIteratorHelper(n.inheritTypesFrom),_step233;try{for(_iterator233.s();!(_step233=_iterator233.n()).done;){var _e161=_step233.value;var _o83=t[_e161];if(_o83){var _t190=Object.keys(_o83).filter(function(t){return t.startsWith("is");});var _iterator234=_createForOfIteratorHelper(_t190),_step234;try{for(_iterator234.s();!(_step234=_iterator234.n()).done;){var _e162=_step234.value;_e162 in n||(n[_e162]=_o83[_e162]);}}catch(err){_iterator234.e(err);}finally{_iterator234.f();}}}}catch(err){_iterator233.e(err);}finally{_iterator233.f();}delete n.inheritTypesFrom;}function Fd(t,e){var n=t[e],o=n.allowIn.filter(function(e){return t[e];});n.allowIn=Array.from(new Set(o));}function Vd(t,e){var n=t[e];var _iterator235=_createForOfIteratorHelper(n.allowIn),_step235;try{for(_iterator235.s();!(_step235=_iterator235.n()).done;){var _o84=_step235.value;t[_o84].allowChildren.push(e);}}catch(err){_iterator235.e(err);}finally{_iterator235.f();}}function Hd(t,e){var n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes));}function Ud(t,e,n){var _iterator236=_createForOfIteratorHelper(t),_step236;try{for(_iterator236.s();!(_step236=_iterator236.n()).done;){var _e$n;var _o85=_step236.value;var _t191=_o85[n];"string"==typeof _t191?e[n].push(_t191):Array.isArray(_t191)&&(_e$n=e[n]).push.apply(_e$n,_toConsumableArray(_t191));}}catch(err){_iterator236.e(err);}finally{_iterator236.f();}}function Wd(t,e){var n=t[e];return(o=t,Object.keys(o).map(function(t){return o[t];})).filter(function(t){return t.allowIn.includes(n.name);});var o;}function Gd(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",getAttributeKeys:/*#__PURE__*/_regeneratorRuntime().mark(function getAttributeKeys(){return _regeneratorRuntime().wrap(function getAttributeKeys$(_context29){while(1)switch(_context29.prev=_context29.next){case 0:case"end":return _context29.stop();}},getAttributeKeys);}),getAttribute:function getAttribute(){}}:{name:t.is("element")?t.name:"$text",getAttributeKeys:/*#__PURE__*/_regeneratorRuntime().mark(function getAttributeKeys(){return _regeneratorRuntime().wrap(function getAttributeKeys$(_context30){while(1)switch(_context30.prev=_context30.next){case 0:return _context30.delegateYield(t.getAttributeKeys(),"t0",1);case 1:case"end":return _context30.stop();}},getAttributeKeys);}),getAttribute:function getAttribute(e){return t.getAttribute(e);}};}function qd(t,e,n){var _iterator237=_createForOfIteratorHelper(e.getAttributeKeys()),_step237;try{for(_iterator237.s();!(_step237=_iterator237.n()).done;){var _o86=_step237.value;t.checkAttribute(e,_o86)||n.removeAttribute(_o86,e);}}catch(err){_iterator237.e(err);}finally{_iterator237.f();}}var $d=/*#__PURE__*/function(_B14){_inherits($d,_B14);var _super79=_createSuper($d);function $d(t){var _this124;_classCallCheck(this,$d);_this124=_super79.call(this),_this124._splitParts=new Map(),_this124._cursorParents=new Map(),_this124._modelCursor=null,_this124._emptyElementsToKeep=new Set(),_this124.conversionApi=_objectSpread(_objectSpread({},t),{},{consumable:null,writer:null,store:null,convertItem:function convertItem(t,e){return _this124._convertItem(t,e);},convertChildren:function convertChildren(t,e){return _this124._convertChildren(t,e);},safeInsert:function safeInsert(t,e){return _this124._safeInsert(t,e);},updateConversionResult:function updateConversionResult(t,e){return _this124._updateConversionResult(t,e);},splitToAllowedParent:function splitToAllowedParent(t,e){return _this124._splitToAllowedParent(t,e);},getSplitParts:function getSplitParts(t){return _this124._getSplitParts(t);},keepEmptyElement:function keepEmptyElement(t){return _this124._keepEmptyElement(t);}});return _this124;}_createClass($d,[{key:"convert",value:function convert(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:["$root"];this.fire("viewCleanup",t),this._modelCursor=function(t,e){var n;var _iterator238=_createForOfIteratorHelper(new Nd(t)),_step238;try{for(_iterator238.s();!(_step238=_iterator238.n()).done;){var _o87=_step238.value;var _t192={};var _iterator239=_createForOfIteratorHelper(_o87.getAttributeKeys()),_step239;try{for(_iterator239.s();!(_step239=_iterator239.n()).done;){var _e163=_step239.value;_t192[_e163]=_o87.getAttribute(_e163);}}catch(err){_iterator239.e(err);}finally{_iterator239.f();}var _i92=e.createElement(_o87.name,_t192);n&&e.insert(_i92,n),n=Ec._createAt(_i92,0);}}catch(err){_iterator238.e(err);}finally{_iterator238.f();}return n;}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Sd.createFrom(t),this.conversionApi.store={};var _this$_convertItem=this._convertItem(t,this._modelCursor),o=_this$_convertItem.modelRange,i=e.createDocumentFragment();if(o){this._removeEmptyElements();for(var _i93=0,_Array$from7=Array.from(this._modelCursor.parent.getChildren());_i93<_Array$from7.length;_i93++){var _t193=_Array$from7[_i93];e.append(_t193,i);}i.markers=function(t,e){var n=new Set(),o=new Map(),i=Bc._createIn(t).getItems();var _iterator240=_createForOfIteratorHelper(i),_step240;try{for(_iterator240.s();!(_step240=_iterator240.n()).done;){var _t194=_step240.value;_t194.is("element","$marker")&&n.add(_t194);}}catch(err){_iterator240.e(err);}finally{_iterator240.f();}var _iterator241=_createForOfIteratorHelper(n),_step241;try{for(_iterator241.s();!(_step241=_iterator241.n()).done;){var _t195=_step241.value;var _n152=_t195.getAttribute("data-name"),_i94=e.createPositionBefore(_t195);o.has(_n152)?o.get(_n152).end=_i94.clone():o.set(_n152,new Bc(_i94.clone())),e.remove(_t195);}}catch(err){_iterator241.e(err);}finally{_iterator241.f();}return o;}(i,e);}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this._emptyElementsToKeep.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,i;}},{key:"_convertItem",value:function _convertItem(t,e){var n={viewItem:t,modelCursor:e,modelRange:null};if(t.is("element")?this.fire("element:".concat(t.name),n,this.conversionApi):t.is("$text")?this.fire("text",n,this.conversionApi):this.fire("documentFragment",n,this.conversionApi),n.modelRange&&!(n.modelRange instanceof Bc))throw new _("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor};}},{key:"_convertChildren",value:function _convertChildren(t,e){var n=e.is("position")?e:Ec._createAt(e,0);var o=new Bc(n);for(var _i95=0,_Array$from8=Array.from(t.getChildren());_i95<_Array$from8.length;_i95++){var _e164=_Array$from8[_i95];var _t196=this._convertItem(_e164,n);_t196.modelRange instanceof Bc&&(o.end=_t196.modelRange.end,n=_t196.modelCursor);}return{modelRange:o,modelCursor:n};}},{key:"_safeInsert",value:function _safeInsert(t,e){var n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0);}},{key:"_updateConversionResult",value:function _updateConversionResult(t,e){var n=this._getSplitParts(t),o=this.conversionApi.writer;e.modelRange||(e.modelRange=o.createRange(o.createPositionBefore(t),o.createPositionAfter(n[n.length-1])));var i=this._cursorParents.get(t);e.modelCursor=i?o.createPositionAt(i,0):e.modelRange.end;}},{key:"_splitToAllowedParent",value:function _splitToAllowedParent(t,e){var _this$conversionApi=this.conversionApi,n=_this$conversionApi.schema,o=_this$conversionApi.writer;var i=n.findAllowedParent(e,t);if(i){if(i===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(i)&&(i=null);}if(!i)return pd(e,t,n)?{position:fd(e,o)}:null;var r=this.conversionApi.writer.split(e,i),s=[];var _iterator242=_createForOfIteratorHelper(r.range.getWalker()),_step242;try{for(_iterator242.s();!(_step242=_iterator242.n()).done;){var _t197=_step242.value;if("elementEnd"==_t197.type)s.push(_t197.item);else{var _e165=s.pop(),_n153=_t197.item;this._registerSplitPair(_e165,_n153);}}}catch(err){_iterator242.e(err);}finally{_iterator242.f();}var a=r.range.end.parent;return this._cursorParents.set(t,a),{position:r.position,cursorParent:a};}},{key:"_registerSplitPair",value:function _registerSplitPair(t,e){this._splitParts.has(t)||this._splitParts.set(t,[t]);var n=this._splitParts.get(t);this._splitParts.set(e,n),n.push(e);}},{key:"_getSplitParts",value:function _getSplitParts(t){var e;return e=this._splitParts.has(t)?this._splitParts.get(t):[t],e;}},{key:"_keepEmptyElement",value:function _keepEmptyElement(t){this._emptyElementsToKeep.add(t);}},{key:"_removeEmptyElements",value:function _removeEmptyElements(){var t=!1;var _iterator243=_createForOfIteratorHelper(this._splitParts.keys()),_step243;try{for(_iterator243.s();!(_step243=_iterator243.n()).done;){var _e166=_step243.value;_e166.isEmpty&&!this._emptyElementsToKeep.has(_e166)&&(this.conversionApi.writer.remove(_e166),this._splitParts.delete(_e166),t=!0);}}catch(err){_iterator243.e(err);}finally{_iterator243.f();}t&&this._removeEmptyElements();}}]);return $d;}(B());var Kd=/*#__PURE__*/function(){function Kd(){_classCallCheck(this,Kd);}_createClass(Kd,[{key:"getHtml",value:function getHtml(t){var e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML;}}]);return Kd;}();var Yd=/*#__PURE__*/function(){function Yd(t){_classCallCheck(this,Yd);this.skipComments=!0,this.domParser=new DOMParser(),this.domConverter=new kl(t,{renderingMode:"data"}),this.htmlWriter=new Kd();}_createClass(Yd,[{key:"toData",value:function toData(t){var e=this.domConverter.viewToDom(t);return this.htmlWriter.getHtml(e);}},{key:"toView",value:function toView(t){var e=this._toDom(t);return this.domConverter.domToView(e,{skipComments:this.skipComments});}},{key:"registerRawContentMatcher",value:function registerRawContentMatcher(t){this.domConverter.registerRawContentMatcher(t);}},{key:"useFillerType",value:function useFillerType(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp";}},{key:"_toDom",value:function _toDom(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t="<body>".concat(t,"</body>"));var e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),o=e.body.childNodes;for(;o.length>0;)n.appendChild(o[0]);return n;}}]);return Yd;}();var Qd=/*#__PURE__*/function(_B15){_inherits(Qd,_B15);var _super80=_createSuper(Qd);function Qd(t,e){var _this125;_classCallCheck(this,Qd);_this125=_super80.call(this),_this125.model=t,_this125.mapper=new Nc(),_this125.downcastDispatcher=new Lc({mapper:_this125.mapper,schema:t.schema}),_this125.downcastDispatcher.on("insert:$text",function(t,e,n){if(!n.consumable.consume(e.item,t.name))return;var o=n.writer,i=n.mapper.toViewPosition(e.range.start),r=o.createText(e.item.data);o.insert(i,r);},{priority:"lowest"}),_this125.downcastDispatcher.on("insert",function(t,e,n){n.convertAttributes(e.item),e.reconversion||!e.item.is("element")||e.item.isEmpty||n.convertChildren(e.item);},{priority:"lowest"}),_this125.upcastDispatcher=new $d({schema:t.schema}),_this125.viewDocument=new Ea(e),_this125.stylesProcessor=e,_this125.htmlProcessor=new Yd(_this125.viewDocument),_this125.processor=_this125.htmlProcessor,_this125._viewWriter=new Ra(_this125.viewDocument),_this125.upcastDispatcher.on("text",function(t,e,_ref36){var n=_ref36.schema,o=_ref36.consumable,i=_ref36.writer;var r=e.modelCursor;if(!o.test(e.viewItem))return;if(!n.checkChild(r,"$text")){if(!pd(r,"$text",n))return;if(0==e.viewItem.data.trim().length)return;var _t198=r.nodeBefore;r=fd(r,i),_t198&&_t198.is("element","$marker")&&(i.move(i.createRangeOn(_t198),r),r=i.createPositionAfter(_t198));}o.consume(e.viewItem);var s=i.createText(e.viewItem.data);i.insert(s,r),e.modelRange=i.createRange(r,r.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end;},{priority:"lowest"}),_this125.upcastDispatcher.on("element",function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var _n$convertChildren=n.convertChildren(e.viewItem,e.modelCursor),_t199=_n$convertChildren.modelRange,_o88=_n$convertChildren.modelCursor;e.modelRange=_t199,e.modelCursor=_o88;}},{priority:"lowest"}),_this125.upcastDispatcher.on("documentFragment",function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var _n$convertChildren2=n.convertChildren(e.viewItem,e.modelCursor),_t200=_n$convertChildren2.modelRange,_o89=_n$convertChildren2.modelCursor;e.modelRange=_t200,e.modelCursor=_o89;}},{priority:"lowest"}),$().prototype.decorate.call(_assertThisInitialized(_this125),"init"),$().prototype.decorate.call(_assertThisInitialized(_this125),"set"),$().prototype.decorate.call(_assertThisInitialized(_this125),"get"),$().prototype.decorate.call(_assertThisInitialized(_this125),"toView"),$().prototype.decorate.call(_assertThisInitialized(_this125),"toModel"),_this125.on("init",function(){_this125.fire("ready");},{priority:"lowest"}),_this125.on("ready",function(){_this125.model.enqueueChange({isUndoable:!1},md);},{priority:"lowest"});return _this125;}_createClass(Qd,[{key:"get",value:function get(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _t$rootName=t.rootName,e=_t$rootName===void 0?"main":_t$rootName,_t$trim=t.trim,n=_t$trim===void 0?"empty":_t$trim;if(!this._checkIfRootsExists([e]))throw new _("datacontroller-get-non-existent-root",this);var o=this.model.document.getRoot(e);return o.isAttached()||C("datacontroller-get-detached-root",this),"empty"!==n||this.model.hasContent(o,{ignoreWhitespaces:!0})?this.stringify(o,t):"";}},{key:"stringify",value:function stringify(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.toView(t,e);return this.processor.toData(n);}},{key:"toView",value:function toView(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.viewDocument,o=this._viewWriter;this.mapper.clearBindings();var i=Bc._createIn(t),r=new Oa(n);this.mapper.bindElements(t,r);var s=t.is("documentFragment")?t.markers:function(t){var e=[],n=t.root.document;if(!n)return new Map();var o=Bc._createIn(t);var _iterator244=_createForOfIteratorHelper(n.model.markers),_step244;try{for(_iterator244.s();!(_step244=_iterator244.n()).done;){var _t201=_step244.value;var _n154=_t201.getRange(),_i96=_n154.isCollapsed,_r34=_n154.start.isEqual(o.start)||_n154.end.isEqual(o.end);if(_i96&&_r34)e.push([_t201.name,_n154]);else{var _i97=o.getIntersection(_n154);_i97&&e.push([_t201.name,_i97]);}}}catch(err){_iterator244.e(err);}finally{_iterator244.f();}return e.sort(function(_ref37,_ref38){var _ref39=_slicedToArray(_ref37,2),t=_ref39[0],e=_ref39[1];var _ref40=_slicedToArray(_ref38,2),n=_ref40[0],o=_ref40[1];if("after"!==e.end.compareWith(o.start))return 1;if("before"!==e.start.compareWith(o.end))return-1;switch(e.start.compareWith(o.start)){case"before":return 1;case"after":return-1;default:switch(e.end.compareWith(o.end)){case"before":return 1;case"after":return-1;default:return n.localeCompare(t);}}}),new Map(e);}(t);return this.downcastDispatcher.convert(i,s,o,e),r;}},{key:"init",value:function init(t){var _this126=this;if(this.model.document.version)throw new _("datacontroller-init-document-not-empty",this);var e={};if("string"==typeof t?e.main=t:e=t,!this._checkIfRootsExists(Object.keys(e)))throw new _("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},function(t){for(var _i98=0,_Object$keys2=Object.keys(e);_i98<_Object$keys2.length;_i98++){var _n155=_Object$keys2[_i98];var _o90=_this126.model.document.getRoot(_n155);t.insert(_this126.parse(e[_n155],_o90),_o90,0);}}),Promise.resolve();}},{key:"set",value:function set(t){var _this127=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new _("datacontroller-set-non-existent-root",this);this.model.enqueueChange(e.batchType||{},function(t){t.setSelection(null),t.removeSelectionAttribute(_this127.model.document.selection.getAttributeKeys());for(var _i99=0,_Object$keys3=Object.keys(n);_i99<_Object$keys3.length;_i99++){var _e167=_Object$keys3[_i99];var _o91=_this127.model.document.getRoot(_e167);t.remove(t.createRangeIn(_o91)),t.insert(_this127.parse(n[_e167],_o91),_o91,0);}});}},{key:"parse",value:function parse(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"$root";var n=this.processor.toView(t);return this.toModel(n,e);}},{key:"toModel",value:function toModel(t){var _this128=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"$root";return this.model.change(function(n){return _this128.upcastDispatcher.convert(t,n,e);});}},{key:"addStyleProcessorRules",value:function addStyleProcessorRules(t){t(this.stylesProcessor);}},{key:"registerRawContentMatcher",value:function registerRawContentMatcher(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t);}},{key:"destroy",value:function destroy(){this.stopListening();}},{key:"_checkIfRootsExists",value:function _checkIfRootsExists(t){var _iterator245=_createForOfIteratorHelper(t),_step245;try{for(_iterator245.s();!(_step245=_iterator245.n()).done;){var _e168=_step245.value;if(!this.model.document.getRoot(_e168))return!1;}}catch(err){_iterator245.e(err);}finally{_iterator245.f();}return!0;}}]);return Qd;}(B());var Zd=/*#__PURE__*/function(){function Zd(t,e){_classCallCheck(this,Zd);this._helpers=new Map(),this._downcast=Ai(t),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=Ai(e),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1});}_createClass(Zd,[{key:"addAlias",value:function addAlias(t,e){var n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new _("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n});}},{key:"for",value:function _for(t){if(!this._helpers.has(t))throw new _("conversion-for-unknown-group",this);return this._helpers.get(t);}},{key:"elementToElement",value:function elementToElement(t){this.for("downcast").elementToElement(t);var _iterator246=_createForOfIteratorHelper(Jd(t)),_step246;try{for(_iterator246.s();!(_step246=_iterator246.n()).done;){var _step246$value=_step246.value,_e169=_step246$value.model,_n156=_step246$value.view;this.for("upcast").elementToElement({model:_e169,view:_n156,converterPriority:t.converterPriority});}}catch(err){_iterator246.e(err);}finally{_iterator246.f();}}},{key:"attributeToElement",value:function attributeToElement(t){this.for("downcast").attributeToElement(t);var _iterator247=_createForOfIteratorHelper(Jd(t)),_step247;try{for(_iterator247.s();!(_step247=_iterator247.n()).done;){var _step247$value=_step247.value,_e170=_step247$value.model,_n157=_step247$value.view;this.for("upcast").elementToAttribute({view:_n157,model:_e170,converterPriority:t.converterPriority});}}catch(err){_iterator247.e(err);}finally{_iterator247.f();}}},{key:"attributeToAttribute",value:function attributeToAttribute(t){this.for("downcast").attributeToAttribute(t);var _iterator248=_createForOfIteratorHelper(Jd(t)),_step248;try{for(_iterator248.s();!(_step248=_iterator248.n()).done;){var _step248$value=_step248.value,_e171=_step248$value.model,_n158=_step248$value.view;this.for("upcast").attributeToAttribute({view:_n158,model:_e171});}}catch(err){_iterator248.e(err);}finally{_iterator248.f();}}},{key:"_createConversionHelpers",value:function _createConversionHelpers(_ref41){var t=_ref41.name,e=_ref41.dispatchers,n=_ref41.isDowncast;if(this._helpers.has(t))throw new _("conversion-group-exists",this);var o=n?new ed(e):new kd(e);this._helpers.set(t,o);}}]);return Zd;}();function Jd(t){var _iterator249,_step249,_e172,_n159,_o92,_i100;return _regeneratorRuntime().wrap(function Jd$(_context31){while(1)switch(_context31.prev=_context31.next){case 0:if(!t.model.values){_context31.next=20;break;}_iterator249=_createForOfIteratorHelper(t.model.values);_context31.prev=2;_iterator249.s();case 4:if((_step249=_iterator249.n()).done){_context31.next=10;break;}_e172=_step249.value;_n159={key:t.model.key,value:_e172},_o92=t.view[_e172],_i100=t.upcastAlso?t.upcastAlso[_e172]:void 0;return _context31.delegateYield(Xd(_n159,_o92,_i100),"t0",8);case 8:_context31.next=4;break;case 10:_context31.next=15;break;case 12:_context31.prev=12;_context31.t1=_context31["catch"](2);_iterator249.e(_context31.t1);case 15:_context31.prev=15;_iterator249.f();return _context31.finish(15);case 18:_context31.next=21;break;case 20:return _context31.delegateYield(Xd(t.model,t.view,t.upcastAlso),"t2",21);case 21:case"end":return _context31.stop();}},_marked,null,[[2,12,15,18]]);}function Xd(t,e,n){var _iterator250,_step250,_e173;return _regeneratorRuntime().wrap(function Xd$(_context32){while(1)switch(_context32.prev=_context32.next){case 0:_context32.next=2;return{model:t,view:e};case 2:if(!n){_context32.next=20;break;}_iterator250=_createForOfIteratorHelper(Ai(n));_context32.prev=4;_iterator250.s();case 6:if((_step250=_iterator250.n()).done){_context32.next=12;break;}_e173=_step250.value;_context32.next=10;return{model:t,view:_e173};case 10:_context32.next=6;break;case 12:_context32.next=17;break;case 14:_context32.prev=14;_context32.t0=_context32["catch"](4);_iterator250.e(_context32.t0);case 17:_context32.prev=17;_iterator250.f();return _context32.finish(17);case 20:case"end":return _context32.stop();}},_marked2,null,[[4,14,17,20]]);}var tu=/*#__PURE__*/function(){function tu(t){_classCallCheck(this,tu);this.baseVersion=t,this.isDocumentOperation=null!==this.baseVersion,this.batch=null;}_createClass(tu,[{key:"_validate",value:function _validate(){}},{key:"toJSON",value:function toJSON(){var t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t;}}],[{key:"className",get:function get(){return"Operation";}},{key:"fromJSON",value:function fromJSON(t,e){return new this(t.baseVersion);}}]);return tu;}();function eu(t,e){var n=iu(e),o=n.reduce(function(t,e){return t+e.offsetSize;},0),i=t.parent;su(t);var r=t.index;return i._insertChild(r,n),ru(i,r+n.length),ru(i,r),new Bc(t,t.getShiftedBy(o));}function nu(t){if(!t.isFlat)throw new _("operation-utils-remove-range-not-flat",this);var e=t.start.parent;su(t.start),su(t.end);var n=e._removeChildren(t.start.index,t.end.index-t.start.index);return ru(e,t.start.index),n;}function ou(t,e){if(!t.isFlat)throw new _("operation-utils-move-range-not-flat",this);var n=nu(t);return eu(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n);}function iu(t){var e=[];!function t(n){if("string"==typeof n)e.push(new _c(n));else if(n instanceof Cc)e.push(new _c(n.data,n.getAttributes()));else if(n instanceof wc)e.push(n);else if(nt(n)){var _iterator251=_createForOfIteratorHelper(n),_step251;try{for(_iterator251.s();!(_step251=_iterator251.n()).done;){var _e174=_step251.value;t(_e174);}}catch(err){_iterator251.e(err);}finally{_iterator251.f();}}}(t);for(var _t202=1;_t202<e.length;_t202++){var _n160=e[_t202],_o93=e[_t202-1];_n160 instanceof _c&&_o93 instanceof _c&&au(_n160,_o93)&&(e.splice(_t202-1,2,new _c(_o93.data+_n160.data,_o93.getAttributes())),_t202--);}return e;}function ru(t,e){var n=t.getChild(e-1),o=t.getChild(e);if(n&&o&&n.is("$text")&&o.is("$text")&&au(n,o)){var _i101=new _c(n.data+o.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,_i101);}}function su(t){var e=t.textNode,n=t.parent;if(e){var _o94=t.offset-e.startOffset,_i102=e.index;n._removeChildren(_i102,1);var _r35=new _c(e.data.substr(0,_o94),e.getAttributes()),_s17=new _c(e.data.substr(_o94),e.getAttributes());n._insertChild(_i102,[_r35,_s17]);}}function au(t,e){var n=t.getAttributes(),o=e.getAttributes();var _iterator252=_createForOfIteratorHelper(n),_step252;try{for(_iterator252.s();!(_step252=_iterator252.n()).done;){var _t203=_step252.value;if(_t203[1]!==e.getAttribute(_t203[0]))return!1;o.next();}}catch(err){_iterator252.e(err);}finally{_iterator252.f();}return o.next().done;}var lu=/*#__PURE__*/function(_tu){_inherits(lu,_tu);var _super81=_createSuper(lu);function lu(t,e,n,o){var _this129;_classCallCheck(this,lu);_this129=_super81.call(this,o),_this129.sourcePosition=t.clone(),_this129.sourcePosition.stickiness="toNext",_this129.howMany=e,_this129.targetPosition=n.clone(),_this129.targetPosition.stickiness="toNone";return _this129;}_createClass(lu,[{key:"type",get:function get(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move";}},{key:"clone",value:function clone(){return new lu(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion);}},{key:"getMovedRangeStart",value:function getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany);}},{key:"getReversed",value:function getReversed(){var t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new lu(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,o=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new _("move-operation-nodes-do-not-exist",this);if(t===e&&n<o&&o<n+this.howMany)throw new _("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==et(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var _t204=this.sourcePosition.path.length-1;if(this.targetPosition.path[_t204]>=n&&this.targetPosition.path[_t204]<n+this.howMany)throw new _("move-operation-node-into-itself",this);}}},{key:"_execute",value:function _execute(){ou(Bc._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(lu.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t;}}],[{key:"className",get:function get(){return"MoveOperation";}},{key:"fromJSON",value:function fromJSON(t,e){var n=Ec.fromJSON(t.sourcePosition,e),o=Ec.fromJSON(t.targetPosition,e);return new this(n,t.howMany,o,t.baseVersion);}}]);return lu;}(tu);var cu=/*#__PURE__*/function(_tu2){_inherits(cu,_tu2);var _super82=_createSuper(cu);function cu(t,e,n){var _this130;_classCallCheck(this,cu);_this130=_super82.call(this,n),_this130.position=t.clone(),_this130.position.stickiness="toNone",_this130.nodes=new Ac(iu(e)),_this130.shouldReceiveAttributes=!1;return _this130;}_createClass(cu,[{key:"type",get:function get(){return"insert";}},{key:"howMany",get:function get(){return this.nodes.maxOffset;}},{key:"clone",value:function clone(){var t=new Ac(_toConsumableArray(this.nodes).map(function(t){return t._clone(!0);})),e=new cu(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e;}},{key:"getReversed",value:function getReversed(){var t=this.position.root.document.graveyard,e=new Ec(t,[0]);return new lu(this.position,this.nodes.maxOffset,e,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new _("insert-operation-position-invalid",this);}},{key:"_execute",value:function _execute(){var t=this.nodes;this.nodes=new Ac(_toConsumableArray(t).map(function(t){return t._clone(!0);})),eu(this.position,t);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(cu.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t;}}],[{key:"className",get:function get(){return"InsertOperation";}},{key:"fromJSON",value:function fromJSON(t,e){var n=[];var _iterator253=_createForOfIteratorHelper(t.nodes),_step253;try{for(_iterator253.s();!(_step253=_iterator253.n()).done;){var _e175=_step253.value;_e175.name?n.push(vc.fromJSON(_e175)):n.push(_c.fromJSON(_e175));}}catch(err){_iterator253.e(err);}finally{_iterator253.f();}var o=new cu(Ec.fromJSON(t.position,e),n,t.baseVersion);return o.shouldReceiveAttributes=t.shouldReceiveAttributes,o;}}]);return cu;}(tu);var du=/*#__PURE__*/function(_tu3){_inherits(du,_tu3);var _super83=_createSuper(du);function du(t,e,n,o,i){var _this131;_classCallCheck(this,du);_this131=_super83.call(this,i),_this131.splitPosition=t.clone(),_this131.splitPosition.stickiness="toNext",_this131.howMany=e,_this131.insertionPosition=n,_this131.graveyardPosition=o?o.clone():null,_this131.graveyardPosition&&(_this131.graveyardPosition.stickiness="toNext");return _this131;}_createClass(du,[{key:"type",get:function get(){return"split";}},{key:"moveTargetPosition",get:function get(){var t=this.insertionPosition.path.slice();return t.push(0),new Ec(this.insertionPosition.root,t);}},{key:"movedRange",get:function get(){var t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Bc(this.splitPosition,t);}},{key:"clone",value:function clone(){return new du(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion);}},{key:"getReversed",value:function getReversed(){var t=this.splitPosition.root.document.graveyard,e=new Ec(t,[0]);return new uu(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new _("split-operation-position-invalid",this);if(!t.parent)throw new _("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new _("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new _("split-operation-graveyard-position-invalid",this);}},{key:"_execute",value:function _execute(){var t=this.splitPosition.parent;if(this.graveyardPosition)ou(Bc._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var _e176=t._clone();eu(this.insertionPosition,_e176);}ou(new Bc(Ec._createAt(t,this.splitPosition.offset),Ec._createAt(t,t.maxOffset)),this.moveTargetPosition);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(du.prototype),"toJSON",this).call(this);return t.splitPosition=this.splitPosition.toJSON(),t.insertionPosition=this.insertionPosition.toJSON(),this.graveyardPosition&&(t.graveyardPosition=this.graveyardPosition.toJSON()),t;}}],[{key:"className",get:function get(){return"SplitOperation";}},{key:"getInsertionPosition",value:function getInsertionPosition(t){var e=t.path.slice(0,-1);return e[e.length-1]++,new Ec(t.root,e,"toPrevious");}},{key:"fromJSON",value:function fromJSON(t,e){var n=Ec.fromJSON(t.splitPosition,e),o=Ec.fromJSON(t.insertionPosition,e),i=t.graveyardPosition?Ec.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,o,i,t.baseVersion);}}]);return du;}(tu);var uu=/*#__PURE__*/function(_tu4){_inherits(uu,_tu4);var _super84=_createSuper(uu);function uu(t,e,n,o,i){var _this132;_classCallCheck(this,uu);_this132=_super84.call(this,i),_this132.sourcePosition=t.clone(),_this132.sourcePosition.stickiness="toPrevious",_this132.howMany=e,_this132.targetPosition=n.clone(),_this132.targetPosition.stickiness="toNext",_this132.graveyardPosition=o.clone();return _this132;}_createClass(uu,[{key:"type",get:function get(){return"merge";}},{key:"deletionPosition",get:function get(){return new Ec(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1));}},{key:"movedRange",get:function get(){var t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new Bc(this.sourcePosition,t);}},{key:"clone",value:function clone(){return new uu(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion);}},{key:"getReversed",value:function getReversed(){var t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new Ec(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new du(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new _("merge-operation-source-position-invalid",this);if(!e.parent)throw new _("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new _("merge-operation-how-many-invalid",this);}},{key:"_execute",value:function _execute(){var t=this.sourcePosition.parent;ou(Bc._createIn(t),this.targetPosition),ou(Bc._createOn(t),this.graveyardPosition);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(uu.prototype),"toJSON",this).call(this);return t.sourcePosition=t.sourcePosition.toJSON(),t.targetPosition=t.targetPosition.toJSON(),t.graveyardPosition=t.graveyardPosition.toJSON(),t;}}],[{key:"className",get:function get(){return"MergeOperation";}},{key:"fromJSON",value:function fromJSON(t,e){var n=Ec.fromJSON(t.sourcePosition,e),o=Ec.fromJSON(t.targetPosition,e),i=Ec.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,o,i,t.baseVersion);}}]);return uu;}(tu);var hu=/*#__PURE__*/function(_tu5){_inherits(hu,_tu5);var _super85=_createSuper(hu);function hu(t,e,n,o,i,r){var _this133;_classCallCheck(this,hu);_this133=_super85.call(this,r),_this133.name=t,_this133.oldRange=e?e.clone():null,_this133.newRange=n?n.clone():null,_this133.affectsData=i,_this133._markers=o;return _this133;}_createClass(hu,[{key:"type",get:function get(){return"marker";}},{key:"clone",value:function clone(){return new hu(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new hu(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1);}},{key:"_execute",value:function _execute(){this.newRange?this._markers._set(this.name,this.newRange,!0,this.affectsData):this._markers._remove(this.name);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(hu.prototype),"toJSON",this).call(this);return this.oldRange&&(t.oldRange=this.oldRange.toJSON()),this.newRange&&(t.newRange=this.newRange.toJSON()),delete t._markers,t;}}],[{key:"className",get:function get(){return"MarkerOperation";}},{key:"fromJSON",value:function fromJSON(t,e){return new hu(t.name,t.oldRange?Bc.fromJSON(t.oldRange,e):null,t.newRange?Bc.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion);}}]);return hu;}(tu);var gu=function gu(t,e){return rc(t,e);};var mu=/*#__PURE__*/function(_tu6){_inherits(mu,_tu6);var _super86=_createSuper(mu);function mu(t,e,n,o,i){var _this134;_classCallCheck(this,mu);_this134=_super86.call(this,i),_this134.range=t.clone(),_this134.key=e,_this134.oldValue=void 0===n?null:n,_this134.newValue=void 0===o?null:o;return _this134;}_createClass(mu,[{key:"type",get:function get(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute";}},{key:"clone",value:function clone(){return new mu(this.range,this.key,this.oldValue,this.newValue,this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new mu(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(mu.prototype),"toJSON",this).call(this);return t.range=this.range.toJSON(),t;}},{key:"_validate",value:function _validate(){if(!this.range.isFlat)throw new _("attribute-operation-range-not-flat",this);var _iterator254=_createForOfIteratorHelper(this.range.getItems({shallow:!0})),_step254;try{for(_iterator254.s();!(_step254=_iterator254.n()).done;){var _t205=_step254.value;if(null!==this.oldValue&&!gu(_t205.getAttribute(this.key),this.oldValue))throw new _("attribute-operation-wrong-old-value",this,{item:_t205,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&_t205.hasAttribute(this.key))throw new _("attribute-operation-attribute-exists",this,{node:_t205,key:this.key});}}catch(err){_iterator254.e(err);}finally{_iterator254.f();}}},{key:"_execute",value:function _execute(){gu(this.oldValue,this.newValue)||function(t,e,n){su(t.start),su(t.end);var _iterator255=_createForOfIteratorHelper(t.getItems({shallow:!0})),_step255;try{for(_iterator255.s();!(_step255=_iterator255.n()).done;){var _o95=_step255.value;var _t206=_o95.is("$textProxy")?_o95.textNode:_o95;null!==n?_t206._setAttribute(e,n):_t206._removeAttribute(e),ru(_t206.parent,_t206.index);}}catch(err){_iterator255.e(err);}finally{_iterator255.f();}ru(t.end.parent,t.end.index);}(this.range,this.key,this.newValue);}}],[{key:"className",get:function get(){return"AttributeOperation";}},{key:"fromJSON",value:function fromJSON(t,e){return new mu(Bc.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion);}}]);return mu;}(tu);var pu=/*#__PURE__*/function(_tu7){_inherits(pu,_tu7);var _super87=_createSuper(pu);function pu(){_classCallCheck(this,pu);return _super87.apply(this,arguments);}_createClass(pu,[{key:"type",get:function get(){return"noop";}},{key:"clone",value:function clone(){return new pu(this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new pu(this.baseVersion+1);}},{key:"_execute",value:function _execute(){}}],[{key:"className",get:function get(){return"NoOperation";}}]);return pu;}(tu);var fu=/*#__PURE__*/function(_tu8){_inherits(fu,_tu8);var _super88=_createSuper(fu);function fu(t,e,n,o){var _this135;_classCallCheck(this,fu);_this135=_super88.call(this,o),_this135.position=t,_this135.position.stickiness="toNext",_this135.oldName=e,_this135.newName=n;return _this135;}_createClass(fu,[{key:"type",get:function get(){return"rename";}},{key:"clone",value:function clone(){return new fu(this.position.clone(),this.oldName,this.newName,this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new fu(this.position.clone(),this.newName,this.oldName,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this.position.nodeAfter;if(!(t instanceof vc))throw new _("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new _("rename-operation-wrong-name",this);}},{key:"_execute",value:function _execute(){this.position.nodeAfter.name=this.newName;}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(fu.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t;}}],[{key:"className",get:function get(){return"RenameOperation";}},{key:"fromJSON",value:function fromJSON(t,e){return new fu(Ec.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion);}}]);return fu;}(tu);var ku=/*#__PURE__*/function(_tu9){_inherits(ku,_tu9);var _super89=_createSuper(ku);function ku(t,e,n,o,i){var _this136;_classCallCheck(this,ku);_this136=_super89.call(this,i),_this136.root=t,_this136.key=e,_this136.oldValue=void 0===n?null:n,_this136.newValue=void 0===o?null:o;return _this136;}_createClass(ku,[{key:"type",get:function get(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute";}},{key:"clone",value:function clone(){return new ku(this.root,this.key,this.oldValue,this.newValue,this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new ku(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1);}},{key:"_validate",value:function _validate(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new _("rootattribute-operation-not-a-root",this,{root:this.root,key:this.key});if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new _("rootattribute-operation-wrong-old-value",this,{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new _("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key});}},{key:"_execute",value:function _execute(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key);}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(ku.prototype),"toJSON",this).call(this);return t.root=this.root.toJSON(),t;}}],[{key:"className",get:function get(){return"RootAttributeOperation";}},{key:"fromJSON",value:function fromJSON(t,e){if(!e.getRoot(t.root))throw new _("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new ku(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion);}}]);return ku;}(tu);var bu=/*#__PURE__*/function(_tu10){_inherits(bu,_tu10);var _super90=_createSuper(bu);function bu(t,e,n,o,i){var _this137;_classCallCheck(this,bu);if(_this137=_super90.call(this,i),_this137.rootName=t,_this137.elementName=e,_this137.isAdd=n,_this137._document=o,!_this137._document.getRoot(_this137.rootName)){_this137._document.createRoot(_this137.elementName,_this137.rootName)._isAttached=!1;}return _possibleConstructorReturn(_this137);}_createClass(bu,[{key:"type",get:function get(){return this.isAdd?"addRoot":"detachRoot";}},{key:"clone",value:function clone(){return new bu(this.rootName,this.elementName,this.isAdd,this._document,this.baseVersion);}},{key:"getReversed",value:function getReversed(){return new bu(this.rootName,this.elementName,!this.isAdd,this._document,this.baseVersion+1);}},{key:"_validate",value:function _validate(){var t=this._document.getRoot(this.rootName);if(t.isAttached()&&this.isAdd)throw new _("root-operation-root-attached",this);if(!t.isAttached()&&!this.isAdd)throw new _("root-operation-root-detached",this);}},{key:"_execute",value:function _execute(){this._document.getRoot(this.rootName)._isAttached=this.isAdd;}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf(bu.prototype),"toJSON",this).call(this);return delete t._document,t;}}],[{key:"className",get:function get(){return"RootOperation";}},{key:"fromJSON",value:function fromJSON(t,e){return new bu(t.rootName,t.elementName,t.isAdd,e,t.baseVersion);}}]);return bu;}(tu);var wu={};wu[mu.className]=mu,wu[cu.className]=cu,wu[hu.className]=hu,wu[lu.className]=lu,wu[pu.className]=pu,wu[tu.className]=tu,wu[fu.className]=fu,wu[ku.className]=ku,wu[bu.className]=bu,wu[du.className]=du,wu[uu.className]=uu;var Au=/*#__PURE__*/function(){function Au(){_classCallCheck(this,Au);}_createClass(Au,null,[{key:"fromJSON",value:function fromJSON(t,e){return wu[t.__className].fromJSON(t,e);}}]);return Au;}();var _u=new Map();function Cu(t,e,n){var o=_u.get(t);o||(o=new Map(),_u.set(t,o)),o.set(e,n);}function vu(t){return[t];}function yu(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=function(t,e){var n=_u.get(t);return n&&n.has(e)?n.get(e):vu;}(t.constructor,e.constructor);try{return o(t=t.clone(),e,n);}catch(t){throw t;}}function xu(t,e,n){t=t.slice(),e=e.slice();var o=new Eu(n.document,n.useRelations,n.forceWeakRemove);o.setOriginalOperations(t),o.setOriginalOperations(e);var i=o.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:i};var r=new WeakMap();var _iterator256=_createForOfIteratorHelper(t),_step256;try{for(_iterator256.s();!(_step256=_iterator256.n()).done;){var _e178=_step256.value;r.set(_e178,0);}}catch(err){_iterator256.e(err);}finally{_iterator256.f();}var s={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length};var a=0;for(;a<t.length;){var _t207,_e177;var _n161=t[a],_i103=r.get(_n161);if(_i103==e.length){a++;continue;}var _s18=e[_i103],_l11=yu(_n161,_s18,o.getContext(_n161,_s18,!0)),_c3=yu(_s18,_n161,o.getContext(_s18,_n161,!1));o.updateRelation(_n161,_s18),o.setOriginalOperations(_l11,_n161),o.setOriginalOperations(_c3,_s18);var _iterator257=_createForOfIteratorHelper(_l11),_step257;try{for(_iterator257.s();!(_step257=_iterator257.n()).done;){var _t208=_step257.value;r.set(_t208,_i103+_c3.length);}}catch(err){_iterator257.e(err);}finally{_iterator257.f();}(_t207=t).splice.apply(_t207,[a,1].concat(_toConsumableArray(_l11))),(_e177=e).splice.apply(_e177,[_i103,1].concat(_toConsumableArray(_c3)));}if(n.padWithNoOps){var _n162=t.length-s.originalOperationsACount,_o96=e.length-s.originalOperationsBCount;Tu(t,_o96-_n162),Tu(e,_n162-_o96);}return Du(t,s.nextBaseVersionB),Du(e,s.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:i};}var Eu=/*#__PURE__*/function(){function Eu(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;_classCallCheck(this,Eu);this.originalOperations=new Map(),this._history=t.history,this._useRelations=e,this._forceWeakRemove=!!n,this._relations=new Map();}_createClass(Eu,[{key:"setOriginalOperations",value:function setOriginalOperations(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=e?this.originalOperations.get(e):null;var _iterator258=_createForOfIteratorHelper(t),_step258;try{for(_iterator258.s();!(_step258=_iterator258.n()).done;){var _e179=_step258.value;this.originalOperations.set(_e179,n||_e179);}}catch(err){_iterator258.e(err);}finally{_iterator258.f();}}},{key:"updateRelation",value:function updateRelation(t,e){if(t instanceof lu)e instanceof uu?t.targetPosition.isEqual(e.sourcePosition)||e.movedRange.containsPosition(t.targetPosition)?this._setRelation(t,e,"insertAtSource"):t.targetPosition.isEqual(e.deletionPosition)?this._setRelation(t,e,"insertBetween"):t.targetPosition.isAfter(e.sourcePosition)&&this._setRelation(t,e,"moveTargetAfter"):e instanceof lu&&(t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter"));else if(t instanceof du){if(e instanceof uu)t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");else if(e instanceof lu)if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{var _n163=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&_n163.containsPosition(t.splitPosition)){var _o97=_n163.end.offset-t.splitPosition.offset,_i104=t.splitPosition.offset-_n163.start.offset;this._setRelation(t,e,{howMany:_o97,offset:_i104});}}}else if(t instanceof uu)e instanceof uu?(t.targetPosition.isEqual(e.sourcePosition)||this._setRelation(t,e,"mergeTargetNotMoved"),t.sourcePosition.isEqual(e.targetPosition)&&this._setRelation(t,e,"mergeSourceNotMoved"),t.sourcePosition.isEqual(e.sourcePosition)&&this._setRelation(t,e,"mergeSameElement")):e instanceof du&&t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource");else if(t instanceof hu){var _n164=t.newRange;if(!_n164)return;if(e instanceof lu){var _o98=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany),_i105=_o98.containsPosition(_n164.start)||_o98.start.isEqual(_n164.start),_r36=_o98.containsPosition(_n164.end)||_o98.end.isEqual(_n164.end);!_i105&&!_r36||_o98.containsRange(_n164)||this._setRelation(t,e,{side:_i105?"left":"right",path:_i105?_n164.start.path.slice():_n164.end.path.slice()});}else if(e instanceof uu){var _o99=_n164.start.isEqual(e.targetPosition),_i106=_n164.start.isEqual(e.deletionPosition),_r37=_n164.end.isEqual(e.deletionPosition),_s19=_n164.end.isEqual(e.sourcePosition);(_o99||_i106||_r37||_s19)&&this._setRelation(t,e,{wasInLeftElement:_o99,wasStartBeforeMergedElement:_i106,wasEndBeforeMergedElement:_r37,wasInRightElement:_s19});}}}},{key:"getContext",value:function getContext(t,e,n){return{aIsStrong:n,aWasUndone:this._wasUndone(t),bWasUndone:this._wasUndone(e),abRelation:this._useRelations?this._getRelation(t,e):null,baRelation:this._useRelations?this._getRelation(e,t):null,forceWeakRemove:this._forceWeakRemove};}},{key:"_wasUndone",value:function _wasUndone(t){var e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e);}},{key:"_getRelation",value:function _getRelation(t,e){var n=this.originalOperations.get(e),o=this._history.getUndoneOperation(n);if(!o)return null;var i=this.originalOperations.get(t),r=this._relations.get(i);return r&&r.get(o)||null;}},{key:"_setRelation",value:function _setRelation(t,e,n){var o=this.originalOperations.get(t),i=this.originalOperations.get(e);var r=this._relations.get(o);r||(r=new Map(),this._relations.set(o,r)),r.set(i,n);}}]);return Eu;}();function Du(t,e){var _iterator259=_createForOfIteratorHelper(t),_step259;try{for(_iterator259.s();!(_step259=_iterator259.n()).done;){var _n165=_step259.value;_n165.baseVersion=e++;}}catch(err){_iterator259.e(err);}finally{_iterator259.f();}}function Tu(t,e){for(var _n166=0;_n166<e;_n166++)t.push(new pu(0));}function Su(t,e,n){var o=t.nodes.getNode(0).getAttribute(e);if(o==n)return null;var i=new Bc(t.position,t.position.getShiftedBy(t.howMany));return new mu(i,e,o,n,0);}function Iu(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany);}function Mu(t,e){var n=[];for(var _o100=0;_o100<t.length;_o100++){var _i107=t[_o100],_r38=new lu(_i107.start,_i107.end.offset-_i107.start.offset,e,0);n.push(_r38);for(var _e180=_o100+1;_e180<t.length;_e180++)t[_e180]=t[_e180]._getTransformedByMove(_r38.sourcePosition,_r38.targetPosition,_r38.howMany)[0];e=e._getTransformedByMove(_r38.sourcePosition,_r38.targetPosition,_r38.howMany);}return n;}Cu(mu,mu,function(t,e,n){if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){var _o101=t.range.getDifference(e.range).map(function(e){return new mu(e,t.key,t.oldValue,t.newValue,0);}),_i108=t.range.getIntersection(e.range);return _i108&&n.aIsStrong&&_o101.push(new mu(_i108,e.key,e.newValue,t.newValue,0)),0==_o101.length?[new pu(0)]:_o101;}return[t];}),Cu(mu,cu,function(t,e){if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){var _n167=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map(function(e){return new mu(e,t.key,t.oldValue,t.newValue,t.baseVersion);});if(e.shouldReceiveAttributes){var _o102=Su(e,t.key,t.oldValue);_o102&&_n167.unshift(_o102);}return _n167;}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t];}),Cu(mu,uu,function(t,e){var n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(Bc._createFromPositionAndShift(e.graveyardPosition,1));var o=t.range._getTransformedByMergeOperation(e);return o.isCollapsed||n.push(o),n.map(function(e){return new mu(e,t.key,t.oldValue,t.newValue,t.baseVersion);});}),Cu(mu,lu,function(t,e){var n=function(t,e){var n=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany);var o=null,i=[];n.containsRange(t,!0)?o=t:t.start.hasSameParentAs(n.start)?(i=t.getDifference(n),o=t.getIntersection(n)):i=[t];var r=[];var _iterator260=_createForOfIteratorHelper(i),_step260;try{for(_iterator260.s();!(_step260=_iterator260.n()).done;){var _t209=_step260.value;_t209=_t209._getTransformedByDeletion(e.sourcePosition,e.howMany);var _n168=e.getMovedRangeStart(),_o103=_t209.start.hasSameParentAs(_n168),_i109=_t209._getTransformedByInsertion(_n168,e.howMany,_o103);r.push.apply(r,_toConsumableArray(_i109));}}catch(err){_iterator260.e(err);}finally{_iterator260.f();}o&&r.push(o._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]);return r;}(t.range,e);return n.map(function(e){return new mu(e,t.key,t.oldValue,t.newValue,t.baseVersion);});}),Cu(mu,du,function(t,e){if(t.range.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.range.end.offset++,[t];if(t.range.start.hasSameParentAs(e.splitPosition)&&t.range.containsPosition(e.splitPosition)){var _n169=t.clone();return _n169.range=new Bc(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,_n169];}return t.range=t.range._getTransformedBySplitOperation(e),[t];}),Cu(cu,mu,function(t,e){var n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){var _o104=Su(t,e.key,e.newValue);_o104&&n.push(_o104);}return n;}),Cu(cu,cu,function(t,e,n){return t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t];}),Cu(cu,lu,function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t];}),Cu(cu,du,function(t,e){return t.position=t.position._getTransformedBySplitOperation(e),[t];}),Cu(cu,uu,function(t,e){return t.position=t.position._getTransformedByMergeOperation(e),[t];}),Cu(hu,cu,function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t];}),Cu(hu,hu,function(t,e,n){if(t.name==e.name){if(!n.aIsStrong)return[new pu(0)];t.oldRange=e.newRange?e.newRange.clone():null;}return[t];}),Cu(hu,uu,function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t];}),Cu(hu,lu,function(t,e,n){if(t.oldRange&&(t.oldRange=Bc._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){var _o105=Bc._createFromRanges(t.newRange._getTransformedByMoveOperation(e));if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.end=_o105.end,t.newRange.start.path=n.abRelation.path,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=_o105.start,t.newRange.end.path=n.abRelation.path,[t];}t.newRange=Bc._createFromRanges(t.newRange._getTransformedByMoveOperation(e));}return[t];}),Cu(hu,du,function(t,e,n){if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){var _o106=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=Ec._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=Ec._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=Ec._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=Ec._createAt(e.insertionPosition):t.newRange.end=_o106.end,[t];}t.newRange=t.newRange._getTransformedBySplitOperation(e);}return[t];}),Cu(uu,cu,function(t,e){return t.sourcePosition.hasSameParentAs(e.position)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByInsertOperation(e),t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e),[t];}),Cu(uu,uu,function(t,e,n){if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){var _n170=e.graveyardPosition.path.slice();return _n170.push(0),t.sourcePosition=new Ec(e.graveyardPosition.root,_n170),t.howMany=0,[t];}return[new pu(0)];}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var _o107="$graveyard"==t.targetPosition.root.rootName,_i110="$graveyard"==e.targetPosition.root.rootName;if(_i110&&!_o107||!(_o107&&!_i110)&&n.aIsStrong){var _n171=e.targetPosition._getTransformedByMergeOperation(e),_o108=t.targetPosition._getTransformedByMergeOperation(e);return[new lu(_n171,t.howMany,_o108,0)];}return[new pu(0)];}return t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMergeOperation(e),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),t.graveyardPosition.isEqual(e.graveyardPosition)&&n.aIsStrong||(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t];}),Cu(uu,lu,function(t,e,n){var o=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.sourcePosition)?[new pu(0)]:(t.sourcePosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.sourcePosition.hasSameParentAs(e.sourcePosition)&&(t.howMany-=e.howMany),t.sourcePosition=t.sourcePosition._getTransformedByMoveOperation(e),t.targetPosition=t.targetPosition._getTransformedByMoveOperation(e),t.graveyardPosition.isEqual(e.targetPosition)||(t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)),[t]);}),Cu(uu,du,function(t,e,n){if(e.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByDeletion(e.graveyardPosition,1),t.deletionPosition.isEqual(e.graveyardPosition)&&(t.howMany=e.howMany)),t.targetPosition.isEqual(e.splitPosition)){var _o109=0!=e.howMany,_i111=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(_o109||_i111||"mergeTargetNotMoved"==n.abRelation)return t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),[t];}if(t.sourcePosition.isEqual(e.splitPosition)){if("mergeSourceNotMoved"==n.abRelation)return t.howMany=0,t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];if("mergeSameElement"==n.abRelation||t.sourcePosition.offset>0)return t.sourcePosition=e.moveTargetPosition.clone(),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];}return t.sourcePosition.hasSameParentAs(e.splitPosition)&&(t.howMany=e.splitPosition.offset),t.sourcePosition=t.sourcePosition._getTransformedBySplitOperation(e),t.targetPosition=t.targetPosition._getTransformedBySplitOperation(e),[t];}),Cu(lu,cu,function(t,e){var n=Bc._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByInsertOperation(e,!1)[0];return t.sourcePosition=n.start,t.howMany=n.end.offset-n.start.offset,t.targetPosition.isEqual(e.position)||(t.targetPosition=t.targetPosition._getTransformedByInsertOperation(e)),[t];}),Cu(lu,lu,function(t,e,n){var o=Bc._createFromPositionAndShift(t.sourcePosition,t.howMany),i=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany);var r,s=n.aIsStrong,a=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?a=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(a=!1),r=t.targetPosition.isEqual(e.targetPosition)&&a?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Iu(t,e)&&Iu(e,t))return[e.getReversed()];if(o.containsPosition(e.targetPosition)&&o.containsRange(i,!0))return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Mu([o],r);if(i.containsPosition(t.targetPosition)&&i.containsRange(o,!0))return o.start=o.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),o.end=o.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),Mu([o],r);var l=et(t.sourcePosition.getParentPath(),e.sourcePosition.getParentPath());if("prefix"==l||"extension"==l)return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Mu([o],r);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(s=!1):s=!0;var c=[],d=o.getDifference(i);var _iterator261=_createForOfIteratorHelper(d),_step261;try{for(_iterator261.s();!(_step261=_iterator261.n()).done;){var _t210=_step261.value;_t210.start=_t210.start._getTransformedByDeletion(e.sourcePosition,e.howMany),_t210.end=_t210.end._getTransformedByDeletion(e.sourcePosition,e.howMany);var _n172="same"==et(_t210.start.getParentPath(),e.getMovedRangeStart().getParentPath()),_o110=_t210._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,_n172);c.push.apply(c,_toConsumableArray(_o110));}}catch(err){_iterator261.e(err);}finally{_iterator261.f();}var u=o.getIntersection(i);return null!==u&&s&&(u.start=u.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),u.end=u.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===c.length?c.push(u):1==c.length?i.start.isBefore(o.start)||i.start.isEqual(o.start)?c.unshift(u):c.push(u):c.splice(1,0,u)),0===c.length?[new pu(t.baseVersion)]:Mu(c,r);}),Cu(lu,du,function(t,e,n){var o=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(o=t.targetPosition._getTransformedBySplitOperation(e));var i=Bc._createFromPositionAndShift(t.sourcePosition,t.howMany);if(i.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=o,[t];if(i.start.hasSameParentAs(e.splitPosition)&&i.containsPosition(e.splitPosition)){var _t211=new Bc(e.splitPosition,i.end);_t211=_t211._getTransformedBySplitOperation(e);return Mu([new Bc(i.start,e.splitPosition),_t211],o);}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(o=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(o=t.targetPosition);var r=[i._getTransformedBySplitOperation(e)];if(e.graveyardPosition){var _o111=i.start.isEqual(e.graveyardPosition)||i.containsPosition(e.graveyardPosition);t.howMany>1&&_o111&&!n.aWasUndone&&r.push(Bc._createFromPositionAndShift(e.insertionPosition,1));}return Mu(r,o);}),Cu(lu,uu,function(t,e,n){var o=Bc._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&o.containsPosition(e.sourcePosition))if("remove"!=t.type||n.forceWeakRemove){if(1==t.howMany)return n.bWasUndone?(t.sourcePosition=e.graveyardPosition.clone(),t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]):[new pu(0)];}else if(!n.aWasUndone){var _n173=[];var _o112=e.graveyardPosition.clone(),_i112=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(_n173.push(new lu(t.sourcePosition,t.howMany-1,t.targetPosition,0)),_o112=_o112._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),_i112=_i112._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));var _r39=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),_s20=new lu(_o112,1,_r39,0),_a8=_s20.getMovedRangeStart().path.slice();_a8.push(0);var _l12=new Ec(_s20.targetPosition.root,_a8);_i112=_i112._getTransformedByMove(_o112,_r39,1);var _c4=new lu(_i112,e.howMany,_l12,0);return _n173.push(_s20),_n173.push(_c4),_n173;}var i=Bc._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=i.start,t.howMany=i.end.offset-i.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t];}),Cu(fu,cu,function(t,e){return t.position=t.position._getTransformedByInsertOperation(e),[t];}),Cu(fu,uu,function(t,e){return t.position.isEqual(e.deletionPosition)?(t.position=e.graveyardPosition.clone(),t.position.stickiness="toNext",[t]):(t.position=t.position._getTransformedByMergeOperation(e),[t]);}),Cu(fu,lu,function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t];}),Cu(fu,fu,function(t,e,n){if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new pu(0)];t.oldName=e.newName;}return[t];}),Cu(fu,du,function(t,e){if("same"==et(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){var _e181=new fu(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,_e181];}return t.position=t.position._getTransformedBySplitOperation(e),[t];}),Cu(ku,ku,function(t,e,n){if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new pu(0)];t.oldValue=e.newValue;}return[t];}),Cu(bu,bu,function(t,e,n){return t.rootName!==e.rootName||t.isAdd!==e.isAdd||n.bWasUndone?[t]:[new pu(0)];}),Cu(du,cu,function(t,e){return t.splitPosition.hasSameParentAs(e.position)&&t.splitPosition.offset<e.position.offset&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByInsertOperation(e),t.insertionPosition=t.insertionPosition._getTransformedByInsertOperation(e),[t];}),Cu(du,uu,function(t,e,n){if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){var _n174=e.graveyardPosition.path.slice();_n174.push(0);var _o113=new Ec(e.graveyardPosition.root,_n174),_i113=du.getInsertionPosition(new Ec(e.graveyardPosition.root,_n174)),_r40=new du(_o113,0,_i113,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=du.getInsertionPosition(t.splitPosition),t.graveyardPosition=_r40.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[_r40,t];}return t.splitPosition.hasSameParentAs(e.deletionPosition)&&!t.splitPosition.isAfter(e.deletionPosition)&&t.howMany--,t.splitPosition.hasSameParentAs(e.targetPosition)&&(t.howMany+=e.howMany),t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=du.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t];}),Cu(du,lu,function(t,e,n){var o=Bc._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){var _i114=o.start.isEqual(t.graveyardPosition)||o.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&_i114){var _n175=t.splitPosition._getTransformedByMoveOperation(e),_o114=t.graveyardPosition._getTransformedByMoveOperation(e),_i115=_o114.path.slice();_i115.push(0);var _r41=new Ec(_o114.root,_i115);return[new lu(_n175,t.howMany,_r41,0)];}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e);}var i=t.splitPosition.isEqual(e.targetPosition);if(i&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=du.getInsertionPosition(t.splitPosition),[t];if(i&&n.abRelation&&n.abRelation.howMany){var _n$abRelation=n.abRelation,_e182=_n$abRelation.howMany,_o115=_n$abRelation.offset;return t.howMany+=_e182,t.splitPosition=t.splitPosition.getShiftedBy(_o115),[t];}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&o.containsPosition(t.splitPosition)){var _n176=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=_n176,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=du.getInsertionPosition(t.splitPosition),[t];}return e.sourcePosition.isEqual(e.targetPosition)||(t.splitPosition.hasSameParentAs(e.sourcePosition)&&t.splitPosition.offset<=e.sourcePosition.offset&&(t.howMany-=e.howMany),t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany)),t.splitPosition.stickiness="toNone",t.splitPosition=t.splitPosition._getTransformedByMoveOperation(e),t.splitPosition.stickiness="toNext",t.graveyardPosition?t.insertionPosition=t.insertionPosition._getTransformedByMoveOperation(e):t.insertionPosition=du.getInsertionPosition(t.splitPosition),[t];}),Cu(du,du,function(t,e,n){if(t.splitPosition.isEqual(e.splitPosition)){if(!t.graveyardPosition&&!e.graveyardPosition)return[new pu(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new pu(0)];if("splitBefore"==n.abRelation)return t.howMany=0,t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e),[t];}if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition)){var _o116="$graveyard"==t.splitPosition.root.rootName,_i116="$graveyard"==e.splitPosition.root.rootName;if(_i116&&!_o116||!(_o116&&!_i116)&&n.aIsStrong){var _n177=[];return e.howMany&&_n177.push(new lu(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&_n177.push(new lu(t.splitPosition,t.howMany,t.moveTargetPosition,0)),_n177;}return[new pu(0)];}if(t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedBySplitOperation(e)),t.splitPosition.isEqual(e.insertionPosition)&&"splitBefore"==n.abRelation)return t.howMany++,[t];if(e.splitPosition.isEqual(t.insertionPosition)&&"splitBefore"==n.baRelation){var _n178=e.insertionPosition.path.slice();_n178.push(0);var _o117=new Ec(e.insertionPosition.root,_n178);return[t,new lu(t.insertionPosition,1,_o117,0)];}return t.splitPosition.hasSameParentAs(e.splitPosition)&&t.splitPosition.offset<e.splitPosition.offset&&(t.howMany-=e.howMany),t.splitPosition=t.splitPosition._getTransformedBySplitOperation(e),t.insertionPosition=du.getInsertionPosition(t.splitPosition),[t];});var Bu=/*#__PURE__*/function(_B16){_inherits(Bu,_B16);var _super91=_createSuper(Bu);function Bu(t,e){var _this138;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"toNone";_classCallCheck(this,Bu);if(_this138=_super91.call(this,t,e,n),!_this138.root.is("rootElement"))throw new _("model-liveposition-root-not-rootelement",t);Nu.call(_assertThisInitialized(_this138));return _possibleConstructorReturn(_this138);}_createClass(Bu,[{key:"detach",value:function detach(){this.stopListening();}},{key:"toPosition",value:function toPosition(){return new Ec(this.root,this.path.slice(),this.stickiness);}}],[{key:"fromPosition",value:function fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness);}}]);return Bu;}(B(Ec));function Nu(){var _this139=this;this.listenTo(this.root.document.model,"applyOperation",function(t,e){var n=e[0];n.isDocumentOperation&&zu.call(_this139,n);},{priority:"low"});}function zu(t){var e=this.getTransformedByOperation(t);if(!this.isEqual(e)){var _t212=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",_t212);}}Bu.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t;};var Pu=/*#__PURE__*/function(){function Pu(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,Pu);"string"==typeof t&&(t="transparent"===t?{isUndoable:!1}:{},C("batch-constructor-deprecated-string-type"));var _t213=t,_t213$isUndoable=_t213.isUndoable,e=_t213$isUndoable===void 0?!0:_t213$isUndoable,_t213$isLocal=_t213.isLocal,n=_t213$isLocal===void 0?!0:_t213$isLocal,_t213$isUndo=_t213.isUndo,o=_t213$isUndo===void 0?!1:_t213$isUndo,_t213$isTyping=_t213.isTyping,i=_t213$isTyping===void 0?!1:_t213$isTyping;this.operations=[],this.isUndoable=e,this.isLocal=n,this.isUndo=o,this.isTyping=i;}_createClass(Pu,[{key:"type",get:function get(){return C("batch-type-deprecated"),"default";}},{key:"baseVersion",get:function get(){var _iterator262=_createForOfIteratorHelper(this.operations),_step262;try{for(_iterator262.s();!(_step262=_iterator262.n()).done;){var _t214=_step262.value;if(null!==_t214.baseVersion)return _t214.baseVersion;}}catch(err){_iterator262.e(err);}finally{_iterator262.f();}return null;}},{key:"addOperation",value:function addOperation(t){return t.batch=this,this.operations.push(t),t;}}]);return Pu;}();var Lu=/*#__PURE__*/function(){function Lu(t){_classCallCheck(this,Lu);this._changesInElement=new Map(),this._elementSnapshots=new Map(),this._changedMarkers=new Map(),this._changedRoots=new Map(),this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set(),this._markerCollection=t;}_createClass(Lu,[{key:"isEmpty",get:function get(){return 0==this._changesInElement.size&&0==this._changedMarkers.size&&0==this._changedRoots.size;}},{key:"bufferOperation",value:function bufferOperation(t){var e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var _iterator263=_createForOfIteratorHelper(e.range.getItems({shallow:!0})),_step263;try{for(_iterator263.s();!(_step263=_iterator263.n()).done;){var _t215=_step263.value;this._isInInsertedElement(_t215.parent)||this._markAttribute(_t215);}}catch(err){_iterator263.e(err);}finally{_iterator263.f();}break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;var _t216=this._isInInsertedElement(e.sourcePosition.parent),_n179=this._isInInsertedElement(e.targetPosition.parent);_t216||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),_n179||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break;}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);var _t217=Bc._createFromPositionAndShift(e.position,1);var _iterator264=_createForOfIteratorHelper(this._markerCollection.getMarkersIntersectingRange(_t217)),_step264;try{for(_iterator264.s();!(_step264=_iterator264.n()).done;){var _e183=_step264.value;var _t218=_e183.getData();this.bufferMarkerChange(_e183.name,_t218,_t218);}}catch(err){_iterator264.e(err);}finally{_iterator264.f();}break;}case"split":{var _t219=e.splitPosition.parent;this._isInInsertedElement(_t219)||this._markRemove(_t219,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&&this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break;}case"merge":{var _t220=e.sourcePosition.parent;this._isInInsertedElement(_t220.parent)||this._markRemove(_t220.parent,_t220.startOffset,1);var _n180=e.graveyardPosition.parent;this._markInsert(_n180,e.graveyardPosition.offset,1);var _o118=e.targetPosition.parent;this._isInInsertedElement(_o118)||this._markInsert(_o118,e.targetPosition.offset,_t220.maxOffset);break;}case"detachRoot":case"addRoot":this._bufferRootStateChange(e.rootName,e.isAdd);break;case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{var _t221=e.root.rootName;this._bufferRootAttributeChange(_t221,e.key,e.oldValue,e.newValue);break;}}this._cachedChanges=null;}},{key:"bufferMarkerChange",value:function bufferMarkerChange(t,e,n){var o=this._changedMarkers.get(t);o?(o.newMarkerData=n,null==o.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{newMarkerData:n,oldMarkerData:e});}},{key:"getMarkersToRemove",value:function getMarkersToRemove(){var t=[];var _iterator265=_createForOfIteratorHelper(this._changedMarkers),_step265;try{for(_iterator265.s();!(_step265=_iterator265.n()).done;){var _step265$value=_slicedToArray(_step265.value,2),_e184=_step265$value[0],_n181=_step265$value[1];null!=_n181.oldMarkerData.range&&t.push({name:_e184,range:_n181.oldMarkerData.range});}}catch(err){_iterator265.e(err);}finally{_iterator265.f();}return t;}},{key:"getMarkersToAdd",value:function getMarkersToAdd(){var t=[];var _iterator266=_createForOfIteratorHelper(this._changedMarkers),_step266;try{for(_iterator266.s();!(_step266=_iterator266.n()).done;){var _step266$value=_slicedToArray(_step266.value,2),_e185=_step266$value[0],_n182=_step266$value[1];null!=_n182.newMarkerData.range&&t.push({name:_e185,range:_n182.newMarkerData.range});}}catch(err){_iterator266.e(err);}finally{_iterator266.f();}return t;}},{key:"getChangedMarkers",value:function getChangedMarkers(){return Array.from(this._changedMarkers).map(function(_ref42){var _ref43=_slicedToArray(_ref42,2),t=_ref43[0],e=_ref43[1];return{name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}};});}},{key:"hasDataChanges",value:function hasDataChanges(){if(this._changesInElement.size>0)return!0;if(this._changedRoots.size>0)return!0;var _iterator267=_createForOfIteratorHelper(this._changedMarkers.values()),_step267;try{for(_iterator267.s();!(_step267=_iterator267.n()).done;){var _step267$value=_step267.value,_t222=_step267$value.newMarkerData,_e186=_step267$value.oldMarkerData;if(_t222.affectsData!==_e186.affectsData)return!0;if(_t222.affectsData){var _n183=_t222.range&&!_e186.range,_o119=!_t222.range&&_e186.range,_i117=_t222.range&&_e186.range&&!_t222.range.isEqual(_e186.range);if(_n183||_o119||_i117)return!0;}}}catch(err){_iterator267.e(err);}finally{_iterator267.f();}return!1;}},{key:"getChanges",value:function getChanges(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var e=[];var _iterator268=_createForOfIteratorHelper(this._changesInElement.keys()),_step268;try{for(_iterator268.s();!(_step268=_iterator268.n()).done;){var _t224=_step268.value;var _n185=this._changesInElement.get(_t224).sort(function(t,e){return t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset<e.offset?-1:1;}),_o121=this._elementSnapshots.get(_t224),_i119=Ou(_t224.getChildren()),_r43=Ru(_o121.length,_n185);var _s22=0,_a10=0;var _iterator270=_createForOfIteratorHelper(_r43),_step270;try{for(_iterator270.s();!(_step270=_iterator270.n()).done;){var _n186=_step270.value;if("i"===_n186)e.push(this._getInsertDiff(_t224,_s22,_i119[_s22])),_s22++;else if("r"===_n186)e.push(this._getRemoveDiff(_t224,_s22,_o121[_a10])),_a10++;else if("a"===_n186){var _e188;var _n187=_i119[_s22].attributes,_r44=_o121[_a10].attributes;var _l13=void 0;if("$text"==_i119[_s22].name)_l13=new Bc(Ec._createAt(_t224,_s22),Ec._createAt(_t224,_s22+1));else{var _e187=_t224.offsetToIndex(_s22);_l13=new Bc(Ec._createAt(_t224,_s22),Ec._createAt(_t224.getChild(_e187),0));}(_e188=e).push.apply(_e188,_toConsumableArray(this._getAttributesDiff(_l13,_r44,_n187))),_s22++,_a10++;}else _s22++,_a10++;}}catch(err){_iterator270.e(err);}finally{_iterator270.f();}}}catch(err){_iterator268.e(err);}finally{_iterator268.f();}e.sort(function(t,e){return t.position.root!=e.position.root?t.position.root.rootName<e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1;});for(var _t223=1,_n184=0;_t223<e.length;_t223++){var _o120=e[_n184],_i118=e[_t223],_r42="remove"==_o120.type&&"remove"==_i118.type&&"$text"==_o120.name&&"$text"==_i118.name&&_o120.position.isEqual(_i118.position),_s21="insert"==_o120.type&&"insert"==_i118.type&&"$text"==_o120.name&&"$text"==_i118.name&&_o120.position.parent==_i118.position.parent&&_o120.position.offset+_o120.length==_i118.position.offset,_a9="attribute"==_o120.type&&"attribute"==_i118.type&&_o120.position.parent==_i118.position.parent&&_o120.range.isFlat&&_i118.range.isFlat&&_o120.position.offset+_o120.length==_i118.position.offset&&_o120.attributeKey==_i118.attributeKey&&_o120.attributeOldValue==_i118.attributeOldValue&&_o120.attributeNewValue==_i118.attributeNewValue;_r42||_s21||_a9?(_o120.length++,_a9&&(_o120.range.end=_o120.range.end.getShiftedBy(1)),e[_t223]=null):_n184=_t223;}e=e.filter(function(t){return t;});var _iterator269=_createForOfIteratorHelper(e),_step269;try{for(_iterator269.s();!(_step269=_iterator269.n()).done;){var _t225=_step269.value;delete _t225.changeCount,"attribute"==_t225.type&&(delete _t225.position,delete _t225.length);}}catch(err){_iterator269.e(err);}finally{_iterator269.f();}return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(ju),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();}},{key:"getChangedRoots",value:function getChangedRoots(){return Array.from(this._changedRoots.values()).map(function(t){var e=_objectSpread({},t);return void 0!==e.state&&delete e.attributes,e;});}},{key:"getRefreshedItems",value:function getRefreshedItems(){return new Set(this._refreshedItems);}},{key:"reset",value:function reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set(),this._cachedChanges=null;}},{key:"_bufferRootStateChange",value:function _bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});var n=this._changedRoots.get(t);void 0!==n.state?(delete n.state,void 0===n.attributes&&this._changedRoots.delete(t)):n.state=e?"attached":"detached";}},{key:"_bufferRootAttributeChange",value:function _bufferRootAttributeChange(t,e,n,o){var i=this._changedRoots.get(t)||{name:t},r=i.attributes||{};if(r[e]){var _t226=r[e];o===_t226.oldValue?delete r[e]:_t226.newValue=o;}else r[e]={oldValue:n,newValue:o};0===Object.entries(r).length?(delete i.attributes,void 0===i.state&&this._changedRoots.delete(t)):(i.attributes=r,this._changedRoots.set(t,i));}},{key:"_refreshItem",value:function _refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);var e=Bc._createOn(t);var _iterator271=_createForOfIteratorHelper(this._markerCollection.getMarkersIntersectingRange(e)),_step271;try{for(_iterator271.s();!(_step271=_iterator271.n()).done;){var _t227=_step271.value;var _e189=_t227.getData();this.bufferMarkerChange(_t227.name,_e189,_e189);}}catch(err){_iterator271.e(err);}finally{_iterator271.f();}this._cachedChanges=null;}},{key:"_markInsert",value:function _markInsert(t,e,n){var o={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o);}},{key:"_markRemove",value:function _markRemove(t,e,n){var o={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,o),this._removeAllNestedChanges(t,e,n);}},{key:"_markAttribute",value:function _markAttribute(t){var e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e);}},{key:"_markChange",value:function _markChange(t,e){this._makeSnapshot(t);var n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(var _t228=0;_t228<n.length;_t228++)n[_t228].howMany<1&&(n.splice(_t228,1),_t228--);}},{key:"_getChangesForElement",value:function _getChangesForElement(t){var e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e;}},{key:"_makeSnapshot",value:function _makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,Ou(t.getChildren()));}},{key:"_handleChange",value:function _handleChange(t,e){t.nodesToHandle=t.howMany;var _iterator272=_createForOfIteratorHelper(e),_step272;try{for(_iterator272.s();!(_step272=_iterator272.n()).done;){var _n188=_step272.value;var _o122=t.offset+t.howMany,_i120=_n188.offset+_n188.howMany;if("insert"==t.type&&("insert"==_n188.type&&(t.offset<=_n188.offset?_n188.offset+=t.howMany:t.offset<_i120&&(_n188.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==_n188.type&&t.offset<_n188.offset&&(_n188.offset+=t.howMany),"attribute"==_n188.type))if(t.offset<=_n188.offset)_n188.offset+=t.howMany;else if(t.offset<_i120){var _i121=_n188.howMany;_n188.howMany=t.offset-_n188.offset,e.unshift({type:"attribute",offset:_o122,howMany:_i121-_n188.howMany,count:this._changeCount++});}if("remove"==t.type){if("insert"==_n188.type)if(_o122<=_n188.offset)_n188.offset-=t.howMany;else if(_o122<=_i120){if(t.offset<_n188.offset){var _e190=_o122-_n188.offset;_n188.offset=t.offset,_n188.howMany-=_e190,t.nodesToHandle-=_e190;}else _n188.howMany-=t.nodesToHandle,t.nodesToHandle=0;}else if(t.offset<=_n188.offset)t.nodesToHandle-=_n188.howMany,_n188.howMany=0;else if(t.offset<_i120){var _e191=_i120-t.offset;_n188.howMany-=_e191,t.nodesToHandle-=_e191;}if("remove"==_n188.type&&(_o122<=_n188.offset?_n188.offset-=t.howMany:t.offset<_n188.offset&&(t.nodesToHandle+=_n188.howMany,_n188.howMany=0)),"attribute"==_n188.type)if(_o122<=_n188.offset)_n188.offset-=t.howMany;else if(t.offset<_n188.offset){var _e192=_o122-_n188.offset;_n188.offset=t.offset,_n188.howMany-=_e192;}else if(t.offset<_i120)if(_o122<=_i120){var _o123=_n188.howMany;_n188.howMany=t.offset-_n188.offset;var _i122=_o123-_n188.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:_i122,count:this._changeCount++});}else _n188.howMany-=_i120-t.offset;}if("attribute"==t.type){if("insert"==_n188.type)if(t.offset<_n188.offset&&_o122>_n188.offset){if(_o122>_i120){var _t229={type:"attribute",offset:_i120,howMany:_o122-_i120,count:this._changeCount++};this._handleChange(_t229,e),e.push(_t229);}t.nodesToHandle=_n188.offset-t.offset,t.howMany=t.nodesToHandle;}else t.offset>=_n188.offset&&t.offset<_i120&&(_o122>_i120?(t.nodesToHandle=_o122-_i120,t.offset=_i120):t.nodesToHandle=0);if("remove"==_n188.type&&t.offset<_n188.offset&&_o122>_n188.offset){var _i123={type:"attribute",offset:_n188.offset,howMany:_o122-_n188.offset,count:this._changeCount++};this._handleChange(_i123,e),e.push(_i123),t.nodesToHandle=_n188.offset-t.offset,t.howMany=t.nodesToHandle;}"attribute"==_n188.type&&(t.offset>=_n188.offset&&_o122<=_i120?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=_n188.offset&&_o122>=_i120&&(_n188.howMany=0));}}}catch(err){_iterator272.e(err);}finally{_iterator272.f();}t.howMany=t.nodesToHandle,delete t.nodesToHandle;}},{key:"_getInsertDiff",value:function _getInsertDiff(t,e,n){return{type:"insert",position:Ec._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++};}},{key:"_getRemoveDiff",value:function _getRemoveDiff(t,e,n){return{type:"remove",position:Ec._createAt(t,e),name:n.name,attributes:new Map(n.attributes),length:1,changeCount:this._changeCount++};}},{key:"_getAttributesDiff",value:function _getAttributesDiff(t,e,n){var o=[];n=new Map(n);var _iterator273=_createForOfIteratorHelper(e),_step273;try{for(_iterator273.s();!(_step273=_iterator273.n()).done;){var _step273$value=_slicedToArray(_step273.value,2),_i124=_step273$value[0],_r45=_step273$value[1];var _e193=n.has(_i124)?n.get(_i124):null;_e193!==_r45&&o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:_i124,attributeOldValue:_r45,attributeNewValue:_e193,changeCount:this._changeCount++}),n.delete(_i124);}}catch(err){_iterator273.e(err);}finally{_iterator273.f();}var _iterator274=_createForOfIteratorHelper(n),_step274;try{for(_iterator274.s();!(_step274=_iterator274.n()).done;){var _step274$value=_slicedToArray(_step274.value,2),_e194=_step274$value[0],_i125=_step274$value[1];o.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:_e194,attributeOldValue:null,attributeNewValue:_i125,changeCount:this._changeCount++});}}catch(err){_iterator274.e(err);}finally{_iterator274.f();}return o;}},{key:"_isInInsertedElement",value:function _isInInsertedElement(t){var e=t.parent;if(!e)return!1;var n=this._changesInElement.get(e),o=t.startOffset;if(n){var _iterator275=_createForOfIteratorHelper(n),_step275;try{for(_iterator275.s();!(_step275=_iterator275.n()).done;){var _t230=_step275.value;if("insert"==_t230.type&&o>=_t230.offset&&o<_t230.offset+_t230.howMany)return!0;}}catch(err){_iterator275.e(err);}finally{_iterator275.f();}}return this._isInInsertedElement(e);}},{key:"_removeAllNestedChanges",value:function _removeAllNestedChanges(t,e,n){var o=new Bc(Ec._createAt(t,e),Ec._createAt(t,e+n));var _iterator276=_createForOfIteratorHelper(o.getItems({shallow:!0})),_step276;try{for(_iterator276.s();!(_step276=_iterator276.n()).done;){var _t231=_step276.value;_t231.is("element")&&(this._elementSnapshots.delete(_t231),this._changesInElement.delete(_t231),this._removeAllNestedChanges(_t231,0,_t231.maxOffset));}}catch(err){_iterator276.e(err);}finally{_iterator276.f();}}}]);return Lu;}();function Ou(t){var e=[];var _iterator277=_createForOfIteratorHelper(t),_step277;try{for(_iterator277.s();!(_step277=_iterator277.n()).done;){var _n189=_step277.value;if(_n189.is("$text"))for(var _t232=0;_t232<_n189.data.length;_t232++)e.push({name:"$text",attributes:new Map(_n189.getAttributes())});else e.push({name:_n189.name,attributes:new Map(_n189.getAttributes())});}}catch(err){_iterator277.e(err);}finally{_iterator277.f();}return e;}function Ru(t,e){var n=[];var o=0,i=0;var _iterator278=_createForOfIteratorHelper(e),_step278;try{for(_iterator278.s();!(_step278=_iterator278.n()).done;){var _t233=_step278.value;if(_t233.offset>o){for(var _e196=0;_e196<_t233.offset-o;_e196++)n.push("e");i+=_t233.offset-o;}if("insert"==_t233.type){for(var _e197=0;_e197<_t233.howMany;_e197++)n.push("i");o=_t233.offset+_t233.howMany;}else if("remove"==_t233.type){for(var _e198=0;_e198<_t233.howMany;_e198++)n.push("r");o=_t233.offset,i+=_t233.howMany;}else n.push.apply(n,_toConsumableArray("a".repeat(_t233.howMany).split(""))),o=_t233.offset+_t233.howMany,i+=_t233.howMany;}}catch(err){_iterator278.e(err);}finally{_iterator278.f();}if(i<t)for(var _e195=0;_e195<t-i-o;_e195++)n.push("e");return n;}function ju(t){var e="position"in t&&"$graveyard"==t.position.root.rootName,n="range"in t&&"$graveyard"==t.range.root.rootName;return!e&&!n;}var Fu=/*#__PURE__*/function(){function Fu(){_classCallCheck(this,Fu);this._operations=[],this._undoPairs=new Map(),this._undoneOperations=new Set(),this._baseVersionToOperationIndex=new Map(),this._version=0,this._gaps=new Map();}_createClass(Fu,[{key:"version",get:function get(){return this._version;},set:function set(t){this._operations.length&&t>this._version+1&&this._gaps.set(this._version,t),this._version=t;}},{key:"lastOperation",get:function get(){return this._operations[this._operations.length-1];}},{key:"addOperation",value:function addOperation(t){if(t.baseVersion!==this.version)throw new _("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1);}},{key:"getOperations",value:function getOperations(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this.version;if(!this._operations.length)return[];var n=this._operations[0];void 0===t&&(t=n.baseVersion);var o=e-1;var _iterator279=_createForOfIteratorHelper(this._gaps),_step279;try{for(_iterator279.s();!(_step279=_iterator279.n()).done;){var _step279$value=_slicedToArray(_step279.value,2),_e199=_step279$value[0],_n190=_step279$value[1];t>_e199&&t<_n190&&(t=_n190),o>_e199&&o<_n190&&(o=_e199-1);}}catch(err){_iterator279.e(err);}finally{_iterator279.f();}if(o<n.baseVersion||t>this.lastOperation.baseVersion)return[];var i=this._baseVersionToOperationIndex.get(t);void 0===i&&(i=0);var r=this._baseVersionToOperationIndex.get(o);return void 0===r&&(r=this._operations.length-1),this._operations.slice(i,r+1);}},{key:"getOperation",value:function getOperation(t){var e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e];}},{key:"setOperationAsUndone",value:function setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t);}},{key:"isUndoingOperation",value:function isUndoingOperation(t){return this._undoPairs.has(t);}},{key:"isUndoneOperation",value:function isUndoneOperation(t){return this._undoneOperations.has(t);}},{key:"getUndoneOperation",value:function getUndoneOperation(t){return this._undoPairs.get(t);}},{key:"reset",value:function reset(){this._version=0,this._undoPairs=new Map(),this._operations=[],this._undoneOperations=new Set(),this._gaps=new Map(),this._baseVersionToOperationIndex=new Map();}}]);return Fu;}();var Vu=/*#__PURE__*/function(_vc){_inherits(Vu,_vc);var _super92=_createSuper(Vu);function Vu(t,e){var _this140;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"main";_classCallCheck(this,Vu);_this140=_super92.call(this,e),_this140._isAttached=!0,_this140._document=t,_this140.rootName=n;return _this140;}_createClass(Vu,[{key:"document",get:function get(){return this._document;}},{key:"isAttached",value:function isAttached(){return this._isAttached;}},{key:"toJSON",value:function toJSON(){return this.rootName;}}]);return Vu;}(vc);Vu.prototype.is=function(t,e){return e?e===this.name&&("rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t):"rootElement"===t||"model:rootElement"===t||"element"===t||"model:element"===t||"node"===t||"model:node"===t;};var Hu="$graveyard";var Uu=/*#__PURE__*/function(_B17){_inherits(Uu,_B17);var _super93=_createSuper(Uu);function Uu(t){var _this141;_classCallCheck(this,Uu);_this141=_super93.call(this),_this141.model=t,_this141.history=new Fu(),_this141.selection=new Qc(_assertThisInitialized(_this141)),_this141.roots=new xi({idProperty:"rootName"}),_this141.differ=new Lu(t.markers),_this141._postFixers=new Set(),_this141._hasSelectionChangedFromTheLastChangeBlock=!1,_this141.createRoot("$root",Hu),_this141.listenTo(t,"applyOperation",function(t,e){var n=e[0];n.isDocumentOperation&&_this141.differ.bufferOperation(n);},{priority:"high"}),_this141.listenTo(t,"applyOperation",function(t,e){var n=e[0];n.isDocumentOperation&&_this141.history.addOperation(n);},{priority:"low"}),_this141.listenTo(_this141.selection,"change",function(){_this141._hasSelectionChangedFromTheLastChangeBlock=!0;}),_this141.listenTo(t.markers,"update",function(t,e,n,o,i){var r=_objectSpread(_objectSpread({},e.getData()),{},{range:o});_this141.differ.bufferMarkerChange(e.name,i,r),null===n&&e.on("change",function(t,n){var o=e.getData();_this141.differ.bufferMarkerChange(e.name,_objectSpread(_objectSpread({},o),{},{range:n}),o);});}),_this141.registerPostFixer(function(t){var e=!1;var _iterator280=_createForOfIteratorHelper(_this141.roots),_step280;try{for(_iterator280.s();!(_step280=_iterator280.n()).done;){var _n191=_step280.value;_n191.isAttached()||_n191.isEmpty||(t.remove(t.createRangeIn(_n191)),e=!0);}}catch(err){_iterator280.e(err);}finally{_iterator280.f();}var _iterator281=_createForOfIteratorHelper(_this141.model.markers),_step281;try{for(_iterator281.s();!(_step281=_iterator281.n()).done;){var _n192=_step281.value;_n192.getRange().root.isAttached()||(t.removeMarker(_n192),e=!0);}}catch(err){_iterator281.e(err);}finally{_iterator281.f();}return e;});return _this141;}_createClass(Uu,[{key:"version",get:function get(){return this.history.version;},set:function set(t){this.history.version=t;}},{key:"graveyard",get:function get(){return this.getRoot(Hu);}},{key:"createRoot",value:function createRoot(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"$root";var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"main";if(this.roots.get(e))throw new _("model-document-createroot-name-exists",this,{name:e});var n=new Vu(this,t,e);return this.roots.add(n),n;}},{key:"destroy",value:function destroy(){this.selection.destroy(),this.stopListening();}},{key:"getRoot",value:function getRoot(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"main";return this.roots.get(t);}},{key:"getRootNames",value:function getRootNames(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;return Array.from(this.roots).filter(function(e){return e.rootName!=Hu&&(t||e.isAttached());}).map(function(t){return t.rootName;});}},{key:"registerPostFixer",value:function registerPostFixer(t){this._postFixers.add(t);}},{key:"toJSON",value:function toJSON(){var t=os(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t;}},{key:"_handleChangeBlock",value:function _handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&&(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1;}},{key:"_hasDocumentChangedFromTheLastChangeBlock",value:function _hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock;}},{key:"_getDefaultRoot",value:function _getDefaultRoot(){var _iterator282=_createForOfIteratorHelper(this.roots),_step282;try{for(_iterator282.s();!(_step282=_iterator282.n()).done;){var _t234=_step282.value;if(_t234!==this.graveyard)return _t234;}}catch(err){_iterator282.e(err);}finally{_iterator282.f();}return this.graveyard;}},{key:"_getDefaultRange",value:function _getDefaultRange(){var t=this._getDefaultRoot(),e=this.model,n=e.schema,o=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(o)||e.createRange(o);}},{key:"_validateSelectionRange",value:function _validateSelectionRange(t){return Wu(t.start)&&Wu(t.end);}},{key:"_callPostFixers",value:function _callPostFixers(t){var e=!1;do{var _iterator283=_createForOfIteratorHelper(this._postFixers),_step283;try{for(_iterator283.s();!(_step283=_iterator283.n()).done;){var _n193=_step283.value;if(this.selection.refresh(),e=_n193(t),e)break;}}catch(err){_iterator283.e(err);}finally{_iterator283.f();}}while(e);}}]);return Uu;}(B());function Wu(t){var e=t.textNode;if(e){var _n194=e.data,_o124=t.offset-e.startOffset;return!Ii(_n194,_o124)&&!Mi(_n194,_o124);}return!0;}var Gu=/*#__PURE__*/function(_B18,_Symbol$iterator10){_inherits(Gu,_B18);var _super94=_createSuper(Gu);function Gu(){var _this142;_classCallCheck(this,Gu);_this142=_super94.apply(this,arguments),_this142._markers=new Map();return _this142;}_createClass(Gu,[{key:_Symbol$iterator10,value:function value(){return this._markers.values();}},{key:"has",value:function has(t){var e=t instanceof qu?t.name:t;return this._markers.has(e);}},{key:"get",value:function get(t){return this._markers.get(t)||null;}},{key:"_set",value:function _set(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:!1;var i=t instanceof qu?t.name:t;if(i.includes(","))throw new _("markercollection-incorrect-marker-name",this);var r=this._markers.get(i);if(r){var _t235=r.getData(),_s23=r.getRange();var _a11=!1;return _s23.isEqual(e)||(r._attachLiveRange(qc.fromRange(e)),_a11=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,_a11=!0),"boolean"==typeof o&&o!=r.affectsData&&(r._affectsData=o,_a11=!0),_a11&&this.fire("update:".concat(i),r,_s23,e,_t235),r;}var s=qc.fromRange(e),a=new qu(i,s,n,o);return this._markers.set(i,a),this.fire("update:".concat(i),a,null,e,_objectSpread(_objectSpread({},a.getData()),{},{range:null})),a;}},{key:"_remove",value:function _remove(t){var e=t instanceof qu?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:".concat(e),n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0);}},{key:"_refresh",value:function _refresh(t){var e=t instanceof qu?t.name:t,n=this._markers.get(e);if(!n)throw new _("markercollection-refresh-marker-not-exists",this);var o=n.getRange();this.fire("update:".concat(e),n,o,o,n.getData());}},{key:"getMarkersAtPosition",value:/*#__PURE__*/_regeneratorRuntime().mark(function getMarkersAtPosition(t){var _iterator284,_step284,_e200;return _regeneratorRuntime().wrap(function getMarkersAtPosition$(_context33){while(1)switch(_context33.prev=_context33.next){case 0:_iterator284=_createForOfIteratorHelper(this);_context33.prev=1;_iterator284.s();case 3:if((_step284=_iterator284.n()).done){_context33.next=11;break;}_e200=_step284.value;_context33.t0=_e200.getRange().containsPosition(t);if(!_context33.t0){_context33.next=9;break;}_context33.next=9;return _e200;case 9:_context33.next=3;break;case 11:_context33.next=16;break;case 13:_context33.prev=13;_context33.t1=_context33["catch"](1);_iterator284.e(_context33.t1);case 16:_context33.prev=16;_iterator284.f();return _context33.finish(16);case 19:case"end":return _context33.stop();}},getMarkersAtPosition,this,[[1,13,16,19]]);})},{key:"getMarkersIntersectingRange",value:/*#__PURE__*/_regeneratorRuntime().mark(function getMarkersIntersectingRange(t){var _iterator285,_step285,_e201;return _regeneratorRuntime().wrap(function getMarkersIntersectingRange$(_context34){while(1)switch(_context34.prev=_context34.next){case 0:_iterator285=_createForOfIteratorHelper(this);_context34.prev=1;_iterator285.s();case 3:if((_step285=_iterator285.n()).done){_context34.next=11;break;}_e201=_step285.value;_context34.t0=null!==_e201.getRange().getIntersection(t);if(!_context34.t0){_context34.next=9;break;}_context34.next=9;return _e201;case 9:_context34.next=3;break;case 11:_context34.next=16;break;case 13:_context34.prev=13;_context34.t1=_context34["catch"](1);_iterator285.e(_context34.t1);case 16:_context34.prev=16;_iterator285.f();return _context34.finish(16);case 19:case"end":return _context34.stop();}},getMarkersIntersectingRange,this,[[1,13,16,19]]);})},{key:"destroy",value:function destroy(){var _iterator286=_createForOfIteratorHelper(this._markers.values()),_step286;try{for(_iterator286.s();!(_step286=_iterator286.n()).done;){var _t236=_step286.value;this._destroyMarker(_t236);}}catch(err){_iterator286.e(err);}finally{_iterator286.f();}this._markers=null,this.stopListening();}},{key:"getMarkersGroup",value:/*#__PURE__*/_regeneratorRuntime().mark(function getMarkersGroup(t){var _iterator287,_step287,_e202;return _regeneratorRuntime().wrap(function getMarkersGroup$(_context35){while(1)switch(_context35.prev=_context35.next){case 0:_iterator287=_createForOfIteratorHelper(this._markers.values());_context35.prev=1;_iterator287.s();case 3:if((_step287=_iterator287.n()).done){_context35.next=11;break;}_e202=_step287.value;_context35.t0=_e202.name.startsWith(t+":");if(!_context35.t0){_context35.next=9;break;}_context35.next=9;return _e202;case 9:_context35.next=3;break;case 11:_context35.next=16;break;case 13:_context35.prev=13;_context35.t1=_context35["catch"](1);_iterator287.e(_context35.t1);case 16:_context35.prev=16;_iterator287.f();return _context35.finish(16);case 19:case"end":return _context35.stop();}},getMarkersGroup,this,[[1,13,16,19]]);})},{key:"_destroyMarker",value:function _destroyMarker(t){t.stopListening(),t._detachLiveRange();}}]);return Gu;}(B(),Symbol.iterator);var qu=/*#__PURE__*/function(_B19){_inherits(qu,_B19);var _super95=_createSuper(qu);function qu(t,e,n,o){var _this143;_classCallCheck(this,qu);_this143=_super95.call(this),_this143.name=t,_this143._liveRange=_this143._attachLiveRange(e),_this143._managedUsingOperations=n,_this143._affectsData=o;return _this143;}_createClass(qu,[{key:"managedUsingOperations",get:function get(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._managedUsingOperations;}},{key:"affectsData",get:function get(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._affectsData;}},{key:"getData",value:function getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations};}},{key:"getStart",value:function getStart(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.start.clone();}},{key:"getEnd",value:function getEnd(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.end.clone();}},{key:"getRange",value:function getRange(){if(!this._liveRange)throw new _("marker-destroyed",this);return this._liveRange.toRange();}},{key:"_attachLiveRange",value:function _attachLiveRange(t){return this._liveRange&&this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t;}},{key:"_detachLiveRange",value:function _detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null;}}]);return qu;}(B(bc));qu.prototype.is=function(t){return"marker"===t||"model:marker"===t;};var $u=/*#__PURE__*/function(_tu11){_inherits($u,_tu11);var _super96=_createSuper($u);function $u(t,e){var _this144;_classCallCheck(this,$u);_this144=_super96.call(this,null),_this144.sourcePosition=t.clone(),_this144.howMany=e;return _this144;}_createClass($u,[{key:"type",get:function get(){return"detach";}},{key:"toJSON",value:function toJSON(){var t=_get(_getPrototypeOf($u.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t;}},{key:"_validate",value:function _validate(){if(this.sourcePosition.root.document)throw new _("detach-operation-on-document-node",this);}},{key:"_execute",value:function _execute(){nu(Bc._createFromPositionAndShift(this.sourcePosition,this.howMany));}}],[{key:"className",get:function get(){return"DetachOperation";}}]);return $u;}(tu);var Ku=/*#__PURE__*/function(_bc5,_Symbol$iterator11){_inherits(Ku,_bc5);var _super97=_createSuper(Ku);function Ku(t){var _this145;_classCallCheck(this,Ku);_this145=_super97.call(this),_this145.markers=new Map(),_this145._children=new Ac(),t&&_this145._insertChild(0,t);return _this145;}_createClass(Ku,[{key:_Symbol$iterator11,value:function value(){return this.getChildren();}},{key:"childCount",get:function get(){return this._children.length;}},{key:"maxOffset",get:function get(){return this._children.maxOffset;}},{key:"isEmpty",get:function get(){return 0===this.childCount;}},{key:"nextSibling",get:function get(){return null;}},{key:"previousSibling",get:function get(){return null;}},{key:"root",get:function get(){return this;}},{key:"parent",get:function get(){return null;}},{key:"document",get:function get(){return null;}},{key:"isAttached",value:function isAttached(){return!1;}},{key:"getAncestors",value:function getAncestors(){return[];}},{key:"getChild",value:function getChild(t){return this._children.getNode(t);}},{key:"getChildren",value:function getChildren(){return this._children[Symbol.iterator]();}},{key:"getChildIndex",value:function getChildIndex(t){return this._children.getNodeIndex(t);}},{key:"getChildStartOffset",value:function getChildStartOffset(t){return this._children.getNodeStartOffset(t);}},{key:"getPath",value:function getPath(){return[];}},{key:"getNodeByPath",value:function getNodeByPath(t){var e=this;var _iterator288=_createForOfIteratorHelper(t),_step288;try{for(_iterator288.s();!(_step288=_iterator288.n()).done;){var _n195=_step288.value;e=e.getChild(e.offsetToIndex(_n195));}}catch(err){_iterator288.e(err);}finally{_iterator288.f();}return e;}},{key:"offsetToIndex",value:function offsetToIndex(t){return this._children.offsetToIndex(t);}},{key:"toJSON",value:function toJSON(){var t=[];var _iterator289=_createForOfIteratorHelper(this._children),_step289;try{for(_iterator289.s();!(_step289=_iterator289.n()).done;){var _e203=_step289.value;t.push(_e203.toJSON());}}catch(err){_iterator289.e(err);}finally{_iterator289.f();}return t;}},{key:"_appendChild",value:function _appendChild(t){this._insertChild(this.childCount,t);}},{key:"_insertChild",value:function _insertChild(t,e){var n=function(t){if("string"==typeof t)return[new _c(t)];nt(t)||(t=[t]);return Array.from(t).map(function(t){return"string"==typeof t?new _c(t):t instanceof Cc?new _c(t.data,t.getAttributes()):t;});}(e);var _iterator290=_createForOfIteratorHelper(n),_step290;try{for(_iterator290.s();!(_step290=_iterator290.n()).done;){var _t237=_step290.value;null!==_t237.parent&&_t237._remove(),_t237.parent=this;}}catch(err){_iterator290.e(err);}finally{_iterator290.f();}this._children._insertNodes(t,n);}},{key:"_removeChildren",value:function _removeChildren(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:1;var n=this._children._removeNodes(t,e);var _iterator291=_createForOfIteratorHelper(n),_step291;try{for(_iterator291.s();!(_step291=_iterator291.n()).done;){var _t238=_step291.value;_t238.parent=null;}}catch(err){_iterator291.e(err);}finally{_iterator291.f();}return n;}}],[{key:"fromJSON",value:function fromJSON(t){var e=[];var _iterator292=_createForOfIteratorHelper(t),_step292;try{for(_iterator292.s();!(_step292=_iterator292.n()).done;){var _n196=_step292.value;_n196.name?e.push(vc.fromJSON(_n196)):e.push(_c.fromJSON(_n196));}}catch(err){_iterator292.e(err);}finally{_iterator292.f();}return new Ku(e);}}]);return Ku;}(bc,Symbol.iterator);Ku.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t;};var Yu=/*#__PURE__*/function(){function Yu(t,e){_classCallCheck(this,Yu);this.model=t,this.batch=e;}_createClass(Yu,[{key:"createText",value:function createText(t,e){return new _c(t,e);}},{key:"createElement",value:function createElement(t,e){return new vc(t,e);}},{key:"createDocumentFragment",value:function createDocumentFragment(){return new Ku();}},{key:"cloneElement",value:function cloneElement(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!0;return t._clone(e);}},{key:"insert",value:function insert(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;if(this._assertWriterUsedCorrectly(),t instanceof _c&&""==t.data)return;var o=Ec._createAt(e,n);if(t.parent){if(th(t.root,o.root))return void this.move(Bc._createOn(t),o);if(t.root.document)throw new _("model-writer-insert-forbidden-move",this);this.remove(t);}var i=o.root.document?o.root.document.version:null,r=new cu(o,t,i);if(t instanceof _c&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),t instanceof Ku){var _iterator293=_createForOfIteratorHelper(t.markers),_step293;try{for(_iterator293.s();!(_step293=_iterator293.n()).done;){var _step293$value=_slicedToArray(_step293.value,2),_e204=_step293$value[0],_n197=_step293$value[1];var _t239=Ec._createAt(_n197.root,0),_i126={range:new Bc(_n197.start._getCombined(_t239,o),_n197.end._getCombined(_t239,o)),usingOperation:!0,affectsData:!0};this.model.markers.has(_e204)?this.updateMarker(_e204,_i126):this.addMarker(_e204,_i126);}}catch(err){_iterator293.e(err);}finally{_iterator293.f();}}}},{key:"insertText",value:function insertText(t,e,n,o){e instanceof Ku||e instanceof vc||e instanceof Ec?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,o);}},{key:"insertElement",value:function insertElement(t,e,n,o){e instanceof Ku||e instanceof vc||e instanceof Ec?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,o);}},{key:"append",value:function append(t,e){this.insert(t,e,"end");}},{key:"appendText",value:function appendText(t,e,n){e instanceof Ku||e instanceof vc?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end");}},{key:"appendElement",value:function appendElement(t,e,n){e instanceof Ku||e instanceof vc?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end");}},{key:"setAttribute",value:function setAttribute(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof Bc){var _o125=n.getMinimalFlatRanges();var _iterator294=_createForOfIteratorHelper(_o125),_step294;try{for(_iterator294.s();!(_step294=_iterator294.n()).done;){var _n198=_step294.value;Qu(this,t,e,_n198);}}catch(err){_iterator294.e(err);}finally{_iterator294.f();}}else Zu(this,t,e,n);}},{key:"setAttributes",value:function setAttributes(t,e){var _iterator295=_createForOfIteratorHelper(Si(t)),_step295;try{for(_iterator295.s();!(_step295=_iterator295.n()).done;){var _step295$value=_slicedToArray(_step295.value,2),_n199=_step295$value[0],_o126=_step295$value[1];this.setAttribute(_n199,_o126,e);}}catch(err){_iterator295.e(err);}finally{_iterator295.f();}}},{key:"removeAttribute",value:function removeAttribute(t,e){if(this._assertWriterUsedCorrectly(),e instanceof Bc){var _n200=e.getMinimalFlatRanges();var _iterator296=_createForOfIteratorHelper(_n200),_step296;try{for(_iterator296.s();!(_step296=_iterator296.n()).done;){var _e205=_step296.value;Qu(this,t,null,_e205);}}catch(err){_iterator296.e(err);}finally{_iterator296.f();}}else Zu(this,t,null,e);}},{key:"clearAttributes",value:function clearAttributes(t){var _this146=this;this._assertWriterUsedCorrectly();var e=function e(t){var _iterator297=_createForOfIteratorHelper(t.getAttributeKeys()),_step297;try{for(_iterator297.s();!(_step297=_iterator297.n()).done;){var _e206=_step297.value;_this146.removeAttribute(_e206,t);}}catch(err){_iterator297.e(err);}finally{_iterator297.f();}};if(t instanceof Bc){var _iterator298=_createForOfIteratorHelper(t.getItems()),_step298;try{for(_iterator298.s();!(_step298=_iterator298.n()).done;){var _n201=_step298.value;e(_n201);}}catch(err){_iterator298.e(err);}finally{_iterator298.f();}}else e(t);}},{key:"move",value:function move(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof Bc))throw new _("writer-move-invalid-range",this);if(!t.isFlat)throw new _("writer-move-range-not-flat",this);var o=Ec._createAt(e,n);if(o.isEqual(t.start))return;if(this._addOperationForAffectedMarkers("move",t),!th(t.root,o.root))throw new _("writer-move-different-document",this);var i=t.root.document?t.root.document.version:null,r=new lu(t.start,t.end.offset-t.start.offset,o,i);this.batch.addOperation(r),this.model.applyOperation(r);}},{key:"remove",value:function remove(t){this._assertWriterUsedCorrectly();var e=(t instanceof Bc?t:Bc._createOn(t)).getMinimalFlatRanges().reverse();var _iterator299=_createForOfIteratorHelper(e),_step299;try{for(_iterator299.s();!(_step299=_iterator299.n()).done;){var _t240=_step299.value;this._addOperationForAffectedMarkers("move",_t240),Xu(_t240.start,_t240.end.offset-_t240.start.offset,this.batch,this.model);}}catch(err){_iterator299.e(err);}finally{_iterator299.f();}}},{key:"merge",value:function merge(t){this._assertWriterUsedCorrectly();var e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof vc))throw new _("writer-merge-no-element-before",this);if(!(n instanceof vc))throw new _("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t);}},{key:"createPositionFromPath",value:function createPositionFromPath(t,e,n){return this.model.createPositionFromPath(t,e,n);}},{key:"createPositionAt",value:function createPositionAt(t,e){return this.model.createPositionAt(t,e);}},{key:"createPositionAfter",value:function createPositionAfter(t){return this.model.createPositionAfter(t);}},{key:"createPositionBefore",value:function createPositionBefore(t){return this.model.createPositionBefore(t);}},{key:"createRange",value:function createRange(t,e){return this.model.createRange(t,e);}},{key:"createRangeIn",value:function createRangeIn(t){return this.model.createRangeIn(t);}},{key:"createRangeOn",value:function createRangeOn(t){return this.model.createRangeOn(t);}},{key:"createSelection",value:function createSelection(){var _this$model;return(_this$model=this.model).createSelection.apply(_this$model,arguments);}},{key:"_mergeDetached",value:function _mergeDetached(t){var e=t.nodeBefore,n=t.nodeAfter;this.move(Bc._createIn(n),Ec._createAt(e,"end")),this.remove(n);}},{key:"_merge",value:function _merge(t){var e=Ec._createAt(t.nodeBefore,"end"),n=Ec._createAt(t.nodeAfter,0),o=t.root.document.graveyard,i=new Ec(o,[0]),r=t.root.document.version,s=new uu(n,t.nodeAfter.maxOffset,e,i,r);this.batch.addOperation(s),this.model.applyOperation(s);}},{key:"rename",value:function rename(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof vc))throw new _("writer-rename-not-element-instance",this);var n=t.root.document?t.root.document.version:null,o=new fu(Ec._createBefore(t),t.name,e,n);this.batch.addOperation(o),this.model.applyOperation(o);}},{key:"split",value:function split(t,e){this._assertWriterUsedCorrectly();var n,o,i=t.parent;if(!i.parent)throw new _("writer-split-element-no-parent",this);if(e||(e=i.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new _("writer-split-invalid-limit-element",this);do{var _e207=i.root.document?i.root.document.version:null,_r46=i.maxOffset-t.offset,_s24=du.getInsertionPosition(t),_a12=new du(t,_r46,_s24,null,_e207);this.batch.addOperation(_a12),this.model.applyOperation(_a12),n||o||(n=i,o=t.parent.nextSibling),i=(t=this.createPositionAfter(t.parent)).parent;}while(i!==e);return{position:t,range:new Bc(Ec._createAt(n,"end"),Ec._createAt(o,0))};}},{key:"wrap",value:function wrap(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new _("writer-wrap-range-not-flat",this);var n=e instanceof vc?e:new vc(e);if(n.childCount>0)throw new _("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new _("writer-wrap-element-attached",this);this.insert(n,t.start);var o=new Bc(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(o,Ec._createAt(n,0));}},{key:"unwrap",value:function unwrap(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new _("writer-unwrap-element-no-parent",this);this.move(Bc._createIn(t),this.createPositionAfter(t)),this.remove(t);}},{key:"addMarker",value:function addMarker(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new _("writer-addmarker-no-usingoperation",this);var n=e.usingOperation,o=e.range,i=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new _("writer-addmarker-marker-exists",this);if(!o)throw new _("writer-addmarker-no-range",this);return n?(Ju(this,t,null,o,i),this.model.markers.get(t)):this.model.markers._set(t,o,n,i);}},{key:"updateMarker",value:function updateMarker(t,e){this._assertWriterUsedCorrectly();var n="string"==typeof t?t:t.name,o=this.model.markers.get(n);if(!o)throw new _("writer-updatemarker-marker-not-exists",this);if(!e)return C("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(o);var i="boolean"==typeof e.usingOperation,r="boolean"==typeof e.affectsData,s=r?e.affectsData:o.affectsData;if(!i&&!e.range&&!r)throw new _("writer-updatemarker-wrong-options",this);var a=o.getRange(),l=e.range?e.range:a;i&&e.usingOperation!==o.managedUsingOperations?e.usingOperation?Ju(this,n,null,l,s):(Ju(this,n,a,null,s),this.model.markers._set(n,l,void 0,s)):o.managedUsingOperations?Ju(this,n,a,l,s):this.model.markers._set(n,l,void 0,s);}},{key:"removeMarker",value:function removeMarker(t){this._assertWriterUsedCorrectly();var e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new _("writer-removemarker-no-marker",this);var n=this.model.markers.get(e);if(!n.managedUsingOperations)return void this.model.markers._remove(e);Ju(this,e,n.getRange(),null,n.affectsData);}},{key:"addRoot",value:function addRoot(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"$root";this._assertWriterUsedCorrectly();var n=this.model.document.getRoot(t);if(n&&n.isAttached())throw new _("writer-addroot-root-exists",this);var o=this.model.document,i=new bu(t,e,!0,o,o.version);return this.batch.addOperation(i),this.model.applyOperation(i),this.model.document.getRoot(t);}},{key:"detachRoot",value:function detachRoot(t){this._assertWriterUsedCorrectly();var e="string"==typeof t?this.model.document.getRoot(t):t;if(!e||!e.isAttached())throw new _("writer-detachroot-no-root",this);var _iterator300=_createForOfIteratorHelper(this.model.markers),_step300;try{for(_iterator300.s();!(_step300=_iterator300.n()).done;){var _t241=_step300.value;_t241.getRange().root===e&&this.removeMarker(_t241);}}catch(err){_iterator300.e(err);}finally{_iterator300.f();}var _iterator301=_createForOfIteratorHelper(e.getAttributeKeys()),_step301;try{for(_iterator301.s();!(_step301=_iterator301.n()).done;){var _t242=_step301.value;this.removeAttribute(_t242,e);}}catch(err){_iterator301.e(err);}finally{_iterator301.f();}this.remove(this.createRangeIn(e));var n=this.model.document,o=new bu(e.rootName,e.name,!1,n,n.version);this.batch.addOperation(o),this.model.applyOperation(o);}},{key:"setSelection",value:function setSelection(){var _this$model$document$;this._assertWriterUsedCorrectly(),(_this$model$document$=this.model.document.selection)._setTo.apply(_this$model$document$,arguments);}},{key:"setSelectionFocus",value:function setSelectionFocus(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e);}},{key:"setSelectionAttribute",value:function setSelectionAttribute(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else{var _iterator302=_createForOfIteratorHelper(Si(t)),_step302;try{for(_iterator302.s();!(_step302=_iterator302.n()).done;){var _step302$value=_slicedToArray(_step302.value,2),_e208=_step302$value[0],_n202=_step302$value[1];this._setSelectionAttribute(_e208,_n202);}}catch(err){_iterator302.e(err);}finally{_iterator302.f();}}}},{key:"removeSelectionAttribute",value:function removeSelectionAttribute(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else{var _iterator303=_createForOfIteratorHelper(t),_step303;try{for(_iterator303.s();!(_step303=_iterator303.n()).done;){var _e209=_step303.value;this._removeSelectionAttribute(_e209);}}catch(err){_iterator303.e(err);}finally{_iterator303.f();}}}},{key:"overrideSelectionGravity",value:function overrideSelectionGravity(){return this.model.document.selection._overrideGravity();}},{key:"restoreSelectionGravity",value:function restoreSelectionGravity(t){this.model.document.selection._restoreGravity(t);}},{key:"_setSelectionAttribute",value:function _setSelectionAttribute(t,e){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var _o127=Qc._getStoreAttributeKey(t);this.setAttribute(_o127,e,n.anchor.parent);}n._setAttribute(t,e);}},{key:"_removeSelectionAttribute",value:function _removeSelectionAttribute(t){var e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){var _n203=Qc._getStoreAttributeKey(t);this.removeAttribute(_n203,e.anchor.parent);}e._removeAttribute(t);}},{key:"_assertWriterUsedCorrectly",value:function _assertWriterUsedCorrectly(){if(this.model._currentWriter!==this)throw new _("writer-incorrect-use",this);}},{key:"_addOperationForAffectedMarkers",value:function _addOperationForAffectedMarkers(t,e){var _iterator304=_createForOfIteratorHelper(this.model.markers),_step304;try{for(_iterator304.s();!(_step304=_iterator304.n()).done;){var _n204=_step304.value;if(!_n204.managedUsingOperations)continue;var _o128=_n204.getRange();var _i127=!1;if("move"===t){var _t243=e;_i127=_t243.containsPosition(_o128.start)||_t243.start.isEqual(_o128.start)||_t243.containsPosition(_o128.end)||_t243.end.isEqual(_o128.end);}else{var _t244=e,_n205=_t244.nodeBefore,_r47=_t244.nodeAfter,_s25=_o128.start.parent==_n205&&_o128.start.isAtEnd,_a13=_o128.end.parent==_r47&&0==_o128.end.offset,_l14=_o128.end.nodeAfter==_r47,_c5=_o128.start.nodeAfter==_r47;_i127=_s25||_a13||_l14||_c5;}_i127&&this.updateMarker(_n204.name,{range:_o128});}}catch(err){_iterator304.e(err);}finally{_iterator304.f();}}}]);return Yu;}();function Qu(t,e,n,o){var i=t.model,r=i.document;var s,a,l,c=o.start;var _iterator305=_createForOfIteratorHelper(o.getWalker({shallow:!0})),_step305;try{for(_iterator305.s();!(_step305=_iterator305.n()).done;){var _t245=_step305.value;l=_t245.item.getAttribute(e),s&&a!=l&&(a!=n&&d(),c=s),s=_t245.nextPosition,a=l;}}catch(err){_iterator305.e(err);}finally{_iterator305.f();}function d(){var o=new Bc(c,s),l=o.root.document?r.version:null,d=new mu(o,e,a,n,l);t.batch.addOperation(d),i.applyOperation(d);}s instanceof Ec&&s!=c&&a!=n&&d();}function Zu(t,e,n,o){var i=t.model,r=i.document,s=o.getAttribute(e);var a,l;if(s!=n){if(o.root===o){var _t246=o.document?r.version:null;l=new ku(o,e,s,n,_t246);}else{a=new Bc(Ec._createBefore(o),t.createPositionAfter(o));var _i128=a.root.document?r.version:null;l=new mu(a,e,s,n,_i128);}t.batch.addOperation(l),i.applyOperation(l);}}function Ju(t,e,n,o,i){var r=t.model,s=r.document,a=new hu(e,n,o,r.markers,!!i,s.version);t.batch.addOperation(a),r.applyOperation(a);}function Xu(t,e,n,o){var i;if(t.root.document){var _n206=o.document,_r48=new Ec(_n206.graveyard,[0]);i=new lu(t,e,_r48,_n206.version);}else i=new $u(t,e);n.addOperation(i),o.applyOperation(i);}function th(t,e){return t===e||t instanceof Vu&&e instanceof Vu;}function eh(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(e.isCollapsed)return;var o=e.getFirstRange();if("$graveyard"==o.root.rootName)return;var i=t.schema;t.change(function(t){if(!n.doNotResetEntireContent&&function(t,e){var n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;var o=e.getFirstRange();if(o.start.parent==o.end.parent)return!1;return t.checkChild(n,"paragraph");}(i,e))return void function(t,e){var n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),rh(t,t.createPositionAt(n,0),e);}(t,e);var r={};if(!n.doNotAutoparagraph){var _t247=e.getSelectedElement();_t247&&Object.assign(r,i.getAttributesWithProperty(_t247,"copyOnReplace",!0));}var _ref44=function(t){var e=t.root.document.model,n=t.start;var o=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){var _n207=function(t){var e=t.parent,n=e.root.document.model.schema,o=e.getAncestors({parentFirst:!0,includeSelf:!0});var _iterator306=_createForOfIteratorHelper(o),_step306;try{for(_iterator306.s();!(_step306=_iterator306.n()).done;){var _t248=_step306.value;if(n.isLimit(_t248))return null;if(n.isBlock(_t248))return _t248;}}catch(err){_iterator306.e(err);}finally{_iterator306.f();}}(o);if(_n207&&o.isTouching(e.createPositionAt(_n207,0))){var _n208=e.createSelection(t);e.modifySelection(_n208,{direction:"backward"});var _i129=_n208.getLastPosition(),_r49=e.createRange(_i129,o);e.hasContent(_r49,{ignoreMarkers:!0})||(o=_i129);}}return[Bu.fromPosition(n,"toPrevious"),Bu.fromPosition(o,"toNext")];}(o),_ref45=_slicedToArray(_ref44,2),s=_ref45[0],a=_ref45[1];s.isTouching(a)||t.remove(t.createRange(s,a)),n.leaveUnmerged||(!function(t,e,n){var o=t.model;if(!ih(t.model.schema,e,n))return;var _ref46=function(t,e){var n=t.getAncestors(),o=e.getAncestors();var i=0;for(;n[i]&&n[i]==o[i];)i++;return[n[i],o[i]];}(e,n),_ref47=_slicedToArray(_ref46,2),i=_ref47[0],r=_ref47[1];if(!i||!r)return;!o.hasContent(i,{ignoreMarkers:!0})&&o.hasContent(r,{ignoreMarkers:!0})?oh(t,e,n,i.parent):nh(t,e,n,i.parent);}(t,s,a),i.removeDisallowedAttributes(s.parent.getChildren(),t)),sh(t,e,s),!n.doNotAutoparagraph&&function(t,e){var n=t.checkChild(e,"$text"),o=t.checkChild(e,"paragraph");return!n&&o;}(i,s)&&rh(t,s,e,r),s.detach(),a.detach();});}function nh(t,e,n,o){var i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){var _e210=n.parent;n=t.createPositionBefore(_e210),t.remove(_e210);}ih(t.model.schema,e,n)&&nh(t,e,n,o);}}function oh(t,e,n,o){var i=e.parent,r=n.parent;if(i!=o&&r!=o){for(e=t.createPositionAfter(i),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(i,n);e.parent.isEmpty;){var _n209=e.parent;e=t.createPositionBefore(_n209),t.remove(_n209);}n=t.createPositionBefore(r),function(t,e){var n=e.nodeBefore,o=e.nodeAfter;n.name!=o.name&&t.rename(n,o.name);t.clearAttributes(n),t.setAttributes(Object.fromEntries(o.getAttributes()),n),t.merge(e);}(t,n),ih(t.model.schema,e,n)&&oh(t,e,n,o);}}function ih(t,e,n){var o=e.parent,i=n.parent;return o!=i&&!t.isLimit(o)&&!t.isLimit(i)&&function(t,e,n){var o=new Bc(t,e);var _iterator307=_createForOfIteratorHelper(o.getWalker()),_step307;try{for(_iterator307.s();!(_step307=_iterator307.n()).done;){var _t249=_step307.value;if(n.isLimit(_t249.item))return!1;}}catch(err){_iterator307.e(err);}finally{_iterator307.f();}return!0;}(e,n,t);}function rh(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};var i=t.createElement("paragraph");t.model.schema.setAllowedAttributes(i,o,t),t.insert(i,e),sh(t,n,t.createPositionAt(i,0));}function sh(t,e,n){e instanceof Qc?t.setSelection(n):e.setTo(n);}function ah(t,e){var n=[];Array.from(t.getItems({direction:"backward"})).map(function(t){return e.createRangeOn(t);}).filter(function(e){return(e.start.isAfter(t.start)||e.start.isEqual(t.start))&&(e.end.isBefore(t.end)||e.end.isEqual(t.end));}).forEach(function(t){n.push(t.start.parent),e.remove(t);}),n.forEach(function(t){var n=t;for(;n.parent&&n.isEmpty;){var _t250=e.createRangeOn(n);n=n.parent,e.remove(_t250);}});}var lh=/*#__PURE__*/function(){function lh(t,e,n){_classCallCheck(this,lh);this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null,this._nodeToSelect=null,this.model=t,this.writer=e,this.position=n,this.canMergeWith=new Set([this.position.parent]),this.schema=t.schema,this._documentFragment=e.createDocumentFragment(),this._documentFragmentPosition=e.createPositionAt(this._documentFragment,0);}_createClass(lh,[{key:"handleNodes",value:function handleNodes(t){for(var _i130=0,_Array$from9=Array.from(t);_i130<_Array$from9.length;_i130++){var _e211=_Array$from9[_i130];this._handleNode(_e211);}this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[];}},{key:"_updateLastNodeFromAutoParagraph",value:function _updateLastNodeFromAutoParagraph(t){var e=this.writer.createPositionAfter(this._lastNode),n=this.writer.createPositionAfter(t);if(n.isAfter(e)){if(this._lastNode=t,this.position.parent!=t||!this.position.isAtEnd)throw new _("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position);}}},{key:"getSelectionRange",value:function getSelectionRange(){return this._nodeToSelect?Bc._createOn(this._nodeToSelect):this.model.schema.getNearestSelectionRange(this.position);}},{key:"getAffectedRange",value:function getAffectedRange(){return this._affectedStart?new Bc(this._affectedStart,this._affectedEnd):null;}},{key:"destroy",value:function destroy(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach();}},{key:"_handleNode",value:function _handleNode(t){if(this.schema.isObject(t))return void this._handleObject(t);var e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t),e)?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t);}},{key:"_insertPartialFragment",value:function _insertPartialFragment(){if(this._documentFragment.isEmpty)return;var t=Bu.fromPosition(this.position,"toNext");this._setAffectedBoundaries(this.position),this._documentFragment.getChild(0)==this._firstNode&&(this.writer.insert(this._firstNode,this.position),this._mergeOnLeft(),this.position=t.toPosition()),this._documentFragment.isEmpty||this.writer.insert(this._documentFragment,this.position),this._documentFragmentPosition=this.writer.createPositionAt(this._documentFragment,0),this.position=t.toPosition(),t.detach();}},{key:"_handleObject",value:function _handleObject(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t);}},{key:"_handleDisallowedNode",value:function _handleDisallowedNode(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t);}},{key:"_appendToFragment",value:function _appendToFragment(t){if(!this.schema.checkChild(this.position,t))throw new _("insertcontent-wrong-position",this,{node:t,position:this.position});this.writer.insert(t,this._documentFragmentPosition),this._documentFragmentPosition=this._documentFragmentPosition.getShiftedBy(t.offsetSize),this.schema.isObject(t)&&!this.schema.checkChild(this.position,"$text")?this._nodeToSelect=t:this._nodeToSelect=null,this._filterAttributesOf.push(t);}},{key:"_setAffectedBoundaries",value:function _setAffectedBoundaries(t){this._affectedStart||(this._affectedStart=Bu.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=Bu.fromPosition(t,"toNext"));}},{key:"_mergeOnLeft",value:function _mergeOnLeft(){var t=this._firstNode;if(!(t instanceof vc))return;if(!this._canMergeLeft(t))return;var e=Bu._createBefore(t);e.stickiness="toNext";var n=Bu.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=Bu._createAt(e.nodeBefore,"end","toPrevious")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.isEqual(this._affectedEnd)&&this._firstNode===this._lastNode&&(this._affectedEnd.detach(),this._affectedEnd=Bu._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach();}},{key:"_mergeOnRight",value:function _mergeOnRight(){var t=this._lastNode;if(!(t instanceof vc))return;if(!this._canMergeRight(t))return;var e=Bu._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new _("insertcontent-invalid-insertion-position",this);this.position=Ec._createAt(e.nodeBefore,"end");var n=Bu.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=Bu._createAt(e.nodeBefore,"end","toNext")),this._firstNode===this._lastNode&&(this._firstNode=e.nodeBefore,this._lastNode=e.nodeBefore),this.writer.merge(e),e.getShiftedBy(-1).isEqual(this._affectedStart)&&this._firstNode===this._lastNode&&(this._affectedStart.detach(),this._affectedStart=Bu._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach();}},{key:"_canMergeLeft",value:function _canMergeLeft(t){var e=t.previousSibling;return e instanceof vc&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t);}},{key:"_canMergeRight",value:function _canMergeRight(t){var e=t.nextSibling;return e instanceof vc&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e);}},{key:"_tryAutoparagraphing",value:function _tryAutoparagraphing(t){var e=this.writer.createElement("paragraph");this._getAllowedIn(this.position.parent,e)&&this.schema.checkChild(e,t)&&(e._appendChild(t),this._handleNode(e));}},{key:"_checkAndAutoParagraphToAllowedPosition",value:function _checkAndAutoParagraphToAllowedPosition(t){if(this.schema.checkChild(this.position.parent,t))return!0;if(!this.schema.checkChild(this.position.parent,"paragraph")||!this.schema.checkChild("paragraph",t))return!1;this._insertPartialFragment();var e=this.writer.createElement("paragraph");return this.writer.insert(e,this.position),this._setAffectedBoundaries(this.position),this._lastAutoParagraph=e,this.position=this.writer.createPositionAt(e,0),!0;}},{key:"_checkAndSplitToAllowedPosition",value:function _checkAndSplitToAllowedPosition(t){var e=this._getAllowedIn(this.position.parent,t);if(!e)return!1;for(e!=this.position.parent&&this._insertPartialFragment();e!=this.position.parent;)if(this.position.isAtStart){var _t251=this.position.parent;this.position=this.writer.createPositionBefore(_t251),_t251.isEmpty&&_t251.parent===e&&this.writer.remove(_t251);}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var _t252=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=_t252,this.canMergeWith.add(this.position.nodeAfter);}return!0;}},{key:"_getAllowedIn",value:function _getAllowedIn(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e);}}]);return lh;}();function ch(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:"auto";var o=t.getSelectedElement();if(o&&e.schema.isObject(o)&&!e.schema.isInline(o))return"before"==n||"after"==n?e.createRange(e.createPositionAt(o,n)):e.createRangeOn(o);var i=Ei(t.getSelectedBlocks());if(!i)return e.createRange(t.focus);if(i.isEmpty)return e.createRange(e.createPositionAt(i,0));var r=e.createPositionAfter(i);return t.focus.isTouching(r)?e.createRange(r):e.createRange(e.createPositionBefore(i));}function dh(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};if(!t.schema.isObject(e))throw new _("insertobject-element-not-an-object",t,{object:e});var i=n||t.document.selection;var r=i;o.findOptimalPosition&&t.schema.isBlock(e)&&(r=t.createSelection(ch(i,t,o.findOptimalPosition)));var s=Ei(i.getSelectedBlocks()),a={};return s&&Object.assign(a,t.schema.getAttributesWithProperty(s,"copyOnReplace",!0)),t.change(function(n){r.isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});var i=e;var s=r.anchor.parent;!t.schema.checkChild(s,e)&&t.schema.checkChild(s,"paragraph")&&t.schema.checkChild("paragraph",e)&&(i=n.createElement("paragraph"),n.insert(e,i)),t.schema.setAllowedAttributes(i,a,n);var l=t.insertContent(i,r);return l.isCollapsed||o.setSelection&&function(t,e,n,o){var i=t.model;if("on"==n)return void t.setSelection(e,"on");if("after"!=n)throw new _("insertobject-invalid-place-parameter-value",i);var r=e.nextSibling;if(i.schema.isInline(e))return void t.setSelection(e,"after");var s=r&&i.schema.checkChild(r,"$text");!s&&i.schema.checkChild(e.parent,"paragraph")&&(r=t.createElement("paragraph"),i.schema.setAllowedAttributes(r,o,t),i.insertContent(r,t.createPositionAfter(e)));r&&t.setSelection(r,0);}(n,e,o.setSelection,a),l;});}var uh=' ,.?!:;"-()';function hh(t,e){var n=t.isForward,o=t.walker,i=t.unit,r=t.schema,s=t.treatEmojiAsSingleUnit,a=e.type,l=e.item,c=e.nextPosition;if("text"==a)return"word"===t.unit?function(t,e){var n=t.position.textNode;n||(n=e?t.position.nodeAfter:t.position.nodeBefore);for(;n&&n.is("$text");){var _o129=t.position.offset-n.startOffset;if(ph(n,_o129,e))n=e?t.position.nodeAfter:t.position.nodeBefore;else{if(mh(n.data,_o129,e))break;t.next();}}return t.position;}(o,n):function(t,e,n){var o=t.position.textNode;if(o){var _i131=o.data;var _r50=t.position.offset-o.startOffset;for(;Ii(_i131,_r50)||"character"==e&&Mi(_i131,_r50)||n&&Ni(_i131,_r50);)t.next(),_r50=t.position.offset-o.startOffset;}return t.position;}(o,i,s);if(a==(n?"elementStart":"elementEnd")){if(r.isSelectable(l))return Ec._createAt(l,n?"after":"before");if(r.checkChild(c,"$text"))return c;}else{if(r.isLimit(l))return void o.skip(function(){return!0;});if(r.checkChild(c,"$text"))return c;}}function gh(t,e){var n=t.root,o=Ec._createAt(n,e?"end":0);return e?new Bc(t,o):new Bc(o,t);}function mh(t,e,n){var o=e+(n?0:-1);return uh.includes(t.charAt(o));}function ph(t,e,n){return e===(n?t.offsetSize:0);}var fh=/*#__PURE__*/function(_$9){_inherits(fh,_$9);var _super98=_createSuper(fh);function fh(){var _this147;_classCallCheck(this,fh);_this147=_super98.call(this),_this147.markers=new Gu(),_this147.document=new Uu(_assertThisInitialized(_this147)),_this147.schema=new Bd(),_this147._pendingChanges=[],_this147._currentWriter=null,["deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach(function(t){return _this147.decorate(t);}),_this147.on("applyOperation",function(t,e){e[0]._validate();},{priority:"highest"}),_this147.schema.register("$root",{isLimit:!0}),_this147.schema.register("$container",{allowIn:["$root","$container"]}),_this147.schema.register("$block",{allowIn:["$root","$container"],isBlock:!0}),_this147.schema.register("$blockObject",{allowWhere:"$block",isBlock:!0,isObject:!0}),_this147.schema.register("$inlineObject",{allowWhere:"$text",allowAttributesOf:"$text",isInline:!0,isObject:!0}),_this147.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),_this147.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),_this147.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),_this147.schema.register("$marker"),_this147.schema.addChildCheck(function(t,e){if("$marker"===e.name)return!0;}),yd(_assertThisInitialized(_this147)),_this147.document.registerPostFixer(md),_this147.on("insertContent",function(t,_ref48){var _ref49=_slicedToArray(_ref48,2),e=_ref49[0],n=_ref49[1];t.return=function(t,e,n){return t.change(function(o){var i=n||t.document.selection;i.isCollapsed||t.deleteContent(i,{doNotAutoparagraph:!0});var r=new lh(t,o,i.anchor),s=[];var a;if(e.is("documentFragment")){if(e.markers.size){var _t253=[];var _iterator308=_createForOfIteratorHelper(e.markers),_step308;try{for(_iterator308.s();!(_step308=_iterator308.n()).done;){var _step308$value=_slicedToArray(_step308.value,2),_n211=_step308$value[0],_o130=_step308$value[1];var _e212=_o130.start,_i134=_o130.end,_r52=_e212.isEqual(_i134);_t253.push({position:_e212,name:_n211,isCollapsed:_r52},{position:_i134,name:_n211,isCollapsed:_r52});}}catch(err){_iterator308.e(err);}finally{_iterator308.f();}_t253.sort(function(_ref50,_ref51){var t=_ref50.position;var e=_ref51.position;return t.isBefore(e)?1:-1;});for(var _i132=0,_t254=_t253;_i132<_t254.length;_i132++){var _t254$_i=_t254[_i132],_n210=_t254$_i.position,_i133=_t254$_i.name,_r51=_t254$_i.isCollapsed;var _t255=null,_a14=null;var _l15=_n210.parent===e&&_n210.isAtStart,_c6=_n210.parent===e&&_n210.isAtEnd;_l15||_c6?_r51&&(_a14=_l15?"start":"end"):(_t255=o.createElement("$marker"),o.insert(_t255,_n210)),s.push({name:_i133,element:_t255,collapsed:_a14});}}a=e.getChildren();}else a=[e];r.handleNodes(a);var l=r.getSelectionRange();if(e.is("documentFragment")&&s.length){var _t256=l?qc.fromRange(l):null,_e213={};for(var _t257=s.length-1;_t257>=0;_t257--){var _s$_t=s[_t257],_n212=_s$_t.name,_i135=_s$_t.element,_a15=_s$_t.collapsed,_l16=!_e213[_n212];if(_l16&&(_e213[_n212]=[]),_i135){var _t258=o.createPositionAt(_i135,"before");_e213[_n212].push(_t258),o.remove(_i135);}else{var _t259=r.getAffectedRange();if(!_t259){_a15&&_e213[_n212].push(r.position);continue;}_a15?_e213[_n212].push(_t259[_a15]):_e213[_n212].push(_l16?_t259.start:_t259.end);}}for(var _i136=0,_Object$entries3=Object.entries(_e213);_i136<_Object$entries3.length;_i136++){var _Object$entries3$_i=_slicedToArray(_Object$entries3[_i136],2),_t260=_Object$entries3$_i[0],_Object$entries3$_i$=_slicedToArray(_Object$entries3$_i[1],2),_n213=_Object$entries3$_i$[0],_i137=_Object$entries3$_i$[1];_n213&&_i137&&_n213.root===_i137.root&&o.addMarker(_t260,{usingOperation:!0,affectsData:!0,range:new Bc(_n213,_i137)});}_t256&&(l=_t256.toRange(),_t256.detach());}l&&(i instanceof Qc?o.setSelection(l):i.setTo(l));var c=r.getAffectedRange()||t.createRange(i.anchor);return r.destroy(),c;});}(_assertThisInitialized(_this147),e,n);}),_this147.on("insertObject",function(t,_ref52){var _ref53=_slicedToArray(_ref52,3),e=_ref53[0],n=_ref53[1],o=_ref53[2];t.return=dh(_assertThisInitialized(_this147),e,n,o);});return _this147;}_createClass(fh,[{key:"change",value:function change(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new Pu(),callback:t}),this._runPendingChanges()[0]):t(this._currentWriter);}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"enqueueChange",value:function enqueueChange(t,e){try{t?"function"==typeof t?(e=t,t=new Pu()):t instanceof Pu||(t=new Pu(t)):t=new Pu(),this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges();}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"applyOperation",value:function applyOperation(t){t._execute();}},{key:"insertContent",value:function insertContent(t,e,n){var i=kh(e,n);for(var _len24=arguments.length,o=new Array(_len24>3?_len24-3:0),_key24=3;_key24<_len24;_key24++){o[_key24-3]=arguments[_key24];}return this.fire("insertContent",[t,i,n].concat(o));}},{key:"insertObject",value:function insertObject(t,e,n,o){var r=kh(e,n);for(var _len25=arguments.length,i=new Array(_len25>4?_len25-4:0),_key25=4;_key25<_len25;_key25++){i[_key25-4]=arguments[_key25];}return this.fire("insertObject",[t,r,o,o].concat(i));}},{key:"deleteContent",value:function deleteContent(t,e){eh(this,t,e);}},{key:"modifySelection",value:function modifySelection(t,e){!function(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=t.schema,i="backward"!=n.direction,r=n.unit?n.unit:"character",s=!!n.treatEmojiAsSingleUnit,a=e.focus,l=new yc({boundaries:gh(a,i),singleCharacters:!0,direction:i?"forward":"backward"}),c={walker:l,schema:o,isForward:i,unit:r,treatEmojiAsSingleUnit:s};var d;var _loop5=function _loop5(){if(d.done)return{v:void 0};var n=hh(c,d.value);if(n)return{v:void(e instanceof Qc?t.change(function(t){t.setSelectionFocus(n);}):e.setFocus(n))};},_ret;for(;d=l.next();){_ret=_loop5();if(_ret)return _ret.v;}}(this,t,e);}},{key:"getSelectedContent",value:function getSelectedContent(t){return function(t,e){return t.change(function(t){var n=t.createDocumentFragment(),o=e.getFirstRange();if(!o||o.isCollapsed)return n;var i=o.start.root,r=o.start.getCommonPath(o.end),s=i.getNodeByPath(r);var a;a=o.start.parent==o.end.parent?o:t.createRange(t.createPositionAt(s,o.start.path[r.length]),t.createPositionAt(s,o.end.path[r.length]+1));var l=a.end.offset-a.start.offset;var _iterator309=_createForOfIteratorHelper(a.getItems({shallow:!0})),_step309;try{for(_iterator309.s();!(_step309=_iterator309.n()).done;){var _e215=_step309.value;_e215.is("$textProxy")?t.appendText(_e215.data,_e215.getAttributes(),n):t.append(t.cloneElement(_e215,!0),n);}}catch(err){_iterator309.e(err);}finally{_iterator309.f();}if(a!=o){var _e214=o._getTransformedByMove(a.start,t.createPositionAt(n,0),l)[0],_i138=t.createRange(t.createPositionAt(n,0),_e214.start);ah(t.createRange(_e214.end,t.createPositionAt(n,"end")),t),ah(_i138,t);}return n;});}(this,t);}},{key:"hasContent",value:function hasContent(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=t instanceof Bc?t:Bc._createIn(t);if(n.isCollapsed)return!1;var _e$ignoreWhitespaces=e.ignoreWhitespaces,o=_e$ignoreWhitespaces===void 0?!1:_e$ignoreWhitespaces,_e$ignoreMarkers=e.ignoreMarkers,i=_e$ignoreMarkers===void 0?!1:_e$ignoreMarkers;if(!i){var _iterator310=_createForOfIteratorHelper(this.markers.getMarkersIntersectingRange(n)),_step310;try{for(_iterator310.s();!(_step310=_iterator310.n()).done;){var _t261=_step310.value;if(_t261.affectsData)return!0;}}catch(err){_iterator310.e(err);}finally{_iterator310.f();}}var _iterator311=_createForOfIteratorHelper(n.getItems()),_step311;try{for(_iterator311.s();!(_step311=_iterator311.n()).done;){var _t262=_step311.value;if(this.schema.isContent(_t262)){if(!_t262.is("$textProxy"))return!0;if(!o)return!0;if(-1!==_t262.data.search(/\S/))return!0;}}}catch(err){_iterator311.e(err);}finally{_iterator311.f();}return!1;}},{key:"createPositionFromPath",value:function createPositionFromPath(t,e,n){return new Ec(t,e,n);}},{key:"createPositionAt",value:function createPositionAt(t,e){return Ec._createAt(t,e);}},{key:"createPositionAfter",value:function createPositionAfter(t){return Ec._createAfter(t);}},{key:"createPositionBefore",value:function createPositionBefore(t){return Ec._createBefore(t);}},{key:"createRange",value:function createRange(t,e){return new Bc(t,e);}},{key:"createRangeIn",value:function createRangeIn(t){return Bc._createIn(t);}},{key:"createRangeOn",value:function createRangeOn(t){return Bc._createOn(t);}},{key:"createSelection",value:function createSelection(){for(var _len26=arguments.length,t=new Array(_len26),_key26=0;_key26<_len26;_key26++){t[_key26]=arguments[_key26];}return _construct(jc,t);}},{key:"createBatch",value:function createBatch(t){return new Pu(t);}},{key:"createOperationFromJSON",value:function createOperationFromJSON(t){return Au.fromJSON(t,this.document);}},{key:"destroy",value:function destroy(){this.document.destroy(),this.stopListening();}},{key:"_runPendingChanges",value:function _runPendingChanges(){var t=[];this.fire("_beforeChanges");try{for(;this._pendingChanges.length;){var _e216=this._pendingChanges[0].batch;this._currentWriter=new Yu(this,_e216);var _n214=this._pendingChanges[0].callback(this._currentWriter);t.push(_n214),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null;}}finally{this._pendingChanges.length=0,this._currentWriter=null,this.fire("_afterChanges");}return t;}}]);return fh;}($());function kh(t,e){if(t)return t instanceof jc||t instanceof Qc?t:t instanceof wc?new jc(t,e):new jc(t);}var bh=/*#__PURE__*/function(_yl5){_inherits(bh,_yl5);var _super99=_createSuper(bh);function bh(){var _this148;_classCallCheck(this,bh);_this148=_super99.apply(this,arguments),_this148.domEventType="click";return _this148;}_createClass(bh,[{key:"onDomEvent",value:function onDomEvent(t){this.fire(t.type,t);}}]);return bh;}(yl);var wh=/*#__PURE__*/function(_yl6){_inherits(wh,_yl6);var _super100=_createSuper(wh);function wh(){var _this149;_classCallCheck(this,wh);_this149=_super100.apply(this,arguments),_this149.domEventType=["mousedown","mouseup","mouseover","mouseout"];return _this149;}_createClass(wh,[{key:"onDomEvent",value:function onDomEvent(t){this.fire(t.type,t);}}]);return wh;}(yl);var Ah=/*#__PURE__*/function(){function Ah(t){_classCallCheck(this,Ah);this.document=t;}_createClass(Ah,[{key:"createDocumentFragment",value:function createDocumentFragment(t){return new Oa(this.document,t);}},{key:"createElement",value:function createElement(t,e,n){return new sa(this.document,t,e,n);}},{key:"createText",value:function createText(t){return new rs(this.document,t);}},{key:"clone",value:function clone(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:!1;return t._clone(e);}},{key:"appendChild",value:function appendChild(t,e){return e._appendChild(t);}},{key:"insertChild",value:function insertChild(t,e,n){return n._insertChild(t,e);}},{key:"removeChildren",value:function removeChildren(t,e,n){return n._removeChildren(t,e);}},{key:"remove",value:function remove(t){var e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[];}},{key:"replace",value:function replace(t,e){var n=t.parent;if(n){var _o131=n.getChildIndex(t);return this.removeChildren(_o131,1,n),this.insertChild(_o131,e,n),!0;}return!1;}},{key:"unwrapElement",value:function unwrapElement(t){var e=t.parent;if(e){var _n215=e.getChildIndex(t);this.remove(t),this.insertChild(_n215,t.getChildren(),e);}}},{key:"rename",value:function rename(t,e){var n=new sa(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null;}},{key:"setAttribute",value:function setAttribute(t,e,n){n._setAttribute(t,e);}},{key:"removeAttribute",value:function removeAttribute(t,e){e._removeAttribute(t);}},{key:"addClass",value:function addClass(t,e){e._addClass(t);}},{key:"removeClass",value:function removeClass(t,e){e._removeClass(t);}},{key:"setStyle",value:function setStyle(t,e,n){Dt(t)&&void 0===n?e._setStyle(t):n._setStyle(t,e);}},{key:"removeStyle",value:function removeStyle(t,e){e._removeStyle(t);}},{key:"setCustomProperty",value:function setCustomProperty(t,e,n){n._setCustomProperty(t,e);}},{key:"removeCustomProperty",value:function removeCustomProperty(t,e){return e._removeCustomProperty(t);}},{key:"createPositionAt",value:function createPositionAt(t,e){return ma._createAt(t,e);}},{key:"createPositionAfter",value:function createPositionAfter(t){return ma._createAfter(t);}},{key:"createPositionBefore",value:function createPositionBefore(t){return ma._createBefore(t);}},{key:"createRange",value:function createRange(t,e){return new pa(t,e);}},{key:"createRangeOn",value:function createRangeOn(t){return pa._createOn(t);}},{key:"createRangeIn",value:function createRangeIn(t){return pa._createIn(t);}},{key:"createSelection",value:function createSelection(){for(var _len27=arguments.length,t=new Array(_len27),_key27=0;_key27<_len27;_key27++){t[_key27]=arguments[_key27];}return _construct(ka,t);}}]);return Ah;}();var _h=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Ch=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,vh=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,yh=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,xh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Eh=new Set(["black","silver","gray","white","maroon","red","purple","fuchsia","green","lime","olive","yellow","navy","blue","teal","aqua","orange","aliceblue","antiquewhite","aquamarine","azure","beige","bisque","blanchedalmond","blueviolet","brown","burlywood","cadetblue","chartreuse","chocolate","coral","cornflowerblue","cornsilk","crimson","cyan","darkblue","darkcyan","darkgoldenrod","darkgray","darkgreen","darkgrey","darkkhaki","darkmagenta","darkolivegreen","darkorange","darkorchid","darkred","darksalmon","darkseagreen","darkslateblue","darkslategray","darkslategrey","darkturquoise","darkviolet","deeppink","deepskyblue","dimgray","dimgrey","dodgerblue","firebrick","floralwhite","forestgreen","gainsboro","ghostwhite","gold","goldenrod","greenyellow","grey","honeydew","hotpink","indianred","indigo","ivory","khaki","lavender","lavenderblush","lawngreen","lemonchiffon","lightblue","lightcoral","lightcyan","lightgoldenrodyellow","lightgray","lightgreen","lightgrey","lightpink","lightsalmon","lightseagreen","lightskyblue","lightslategray","lightslategrey","lightsteelblue","lightyellow","limegreen","linen","magenta","mediumaquamarine","mediumblue","mediumorchid","mediumpurple","mediumseagreen","mediumslateblue","mediumspringgreen","mediumturquoise","mediumvioletred","midnightblue","mintcream","mistyrose","moccasin","navajowhite","oldlace","olivedrab","orangered","orchid","palegoldenrod","palegreen","paleturquoise","palevioletred","papayawhip","peachpuff","peru","pink","plum","powderblue","rosybrown","royalblue","saddlebrown","salmon","sandybrown","seagreen","seashell","sienna","skyblue","slateblue","slategray","slategrey","snow","springgreen","steelblue","tan","thistle","tomato","turquoise","violet","wheat","whitesmoke","yellowgreen","activeborder","activecaption","appworkspace","background","buttonface","buttonhighlight","buttonshadow","buttontext","captiontext","graytext","highlight","highlighttext","inactiveborder","inactivecaption","inactivecaptiontext","infobackground","infotext","menu","menutext","scrollbar","threeddarkshadow","threedface","threedhighlight","threedlightshadow","threedshadow","window","windowframe","windowtext","rebeccapurple","currentcolor","transparent"]);function Dh(t){return t.startsWith("#")?_h.test(t):t.startsWith("rgb")?Ch.test(t)||vh.test(t):t.startsWith("hsl")?yh.test(t)||xh.test(t):Eh.has(t.toLowerCase());}var Th=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Sh(t){return Th.includes(t);}var Ih=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function Mh(t){return Ih.test(t);}var Bh=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Nh(t){return Bh.test(t);}var zh=["repeat-x","repeat-y","repeat","space","round","no-repeat"];function Ph(t){return zh.includes(t);}var Lh=["center","top","bottom","left","right"];function Oh(t){return Lh.includes(t);}var Rh=["fixed","scroll","local"];function jh(t){return Rh.includes(t);}var Fh=/^url\(/;function Vh(t){return Fh.test(t);}function Hh(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"";if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};var e=Gh(t),n=e[0],o=e[2]||n,i=e[1]||n;return{top:n,bottom:o,right:i,left:e[3]||i};}function Uh(t){return function(e){var n=e.top,o=e.right,i=e.bottom,r=e.left,s=[];return[n,o,r,i].every(function(t){return!!t;})?s.push([t,Wh(e)]):(n&&s.push([t+"-top",n]),o&&s.push([t+"-right",o]),i&&s.push([t+"-bottom",i]),r&&s.push([t+"-left",r])),s;};}function Wh(_ref54){var t=_ref54.top,e=_ref54.right,n=_ref54.bottom,o=_ref54.left;var i=[];return o!==e?i.push(t,e,n,o):n!==t?i.push(t,e,n):e!==t?i.push(t,e):i.push(t),i.join(" ");}function Gh(t){return t.replace(/, /g,",").split(" ").map(function(t){return t.replace(/,/g,", ");});}function qh(t){t.setNormalizer("background",function(t){var e={},n=Gh(t);var _iterator312=_createForOfIteratorHelper(n),_step312;try{for(_iterator312.s();!(_step312=_iterator312.n()).done;){var _t263=_step312.value;Ph(_t263)?(e.repeat=e.repeat||[],e.repeat.push(_t263)):Oh(_t263)?(e.position=e.position||[],e.position.push(_t263)):jh(_t263)?e.attachment=_t263:Dh(_t263)?e.color=_t263:Vh(_t263)&&(e.image=_t263);}}catch(err){_iterator312.e(err);}finally{_iterator312.f();}return{path:"background",value:e};}),t.setNormalizer("background-color",function(t){return{path:"background.color",value:t};}),t.setReducer("background",function(t){var e=[];return e.push(["background-color",t.color]),e;}),t.setStyleRelation("background",["background-color"]);}function $h(t){t.setNormalizer("border",function(t){var _tg=tg(t),e=_tg.color,n=_tg.style,o=_tg.width;return{path:"border",value:{color:Hh(e),style:Hh(n),width:Hh(o)}};}),t.setNormalizer("border-top",Kh("top")),t.setNormalizer("border-right",Kh("right")),t.setNormalizer("border-bottom",Kh("bottom")),t.setNormalizer("border-left",Kh("left")),t.setNormalizer("border-color",Yh("color")),t.setNormalizer("border-width",Yh("width")),t.setNormalizer("border-style",Yh("style")),t.setNormalizer("border-top-color",Zh("color","top")),t.setNormalizer("border-top-style",Zh("style","top")),t.setNormalizer("border-top-width",Zh("width","top")),t.setNormalizer("border-right-color",Zh("color","right")),t.setNormalizer("border-right-style",Zh("style","right")),t.setNormalizer("border-right-width",Zh("width","right")),t.setNormalizer("border-bottom-color",Zh("color","bottom")),t.setNormalizer("border-bottom-style",Zh("style","bottom")),t.setNormalizer("border-bottom-width",Zh("width","bottom")),t.setNormalizer("border-left-color",Zh("color","left")),t.setNormalizer("border-left-style",Zh("style","left")),t.setNormalizer("border-left-width",Zh("width","left")),t.setExtractor("border-top",Jh("top")),t.setExtractor("border-right",Jh("right")),t.setExtractor("border-bottom",Jh("bottom")),t.setExtractor("border-left",Jh("left")),t.setExtractor("border-top-color","border.color.top"),t.setExtractor("border-right-color","border.color.right"),t.setExtractor("border-bottom-color","border.color.bottom"),t.setExtractor("border-left-color","border.color.left"),t.setExtractor("border-top-width","border.width.top"),t.setExtractor("border-right-width","border.width.right"),t.setExtractor("border-bottom-width","border.width.bottom"),t.setExtractor("border-left-width","border.width.left"),t.setExtractor("border-top-style","border.style.top"),t.setExtractor("border-right-style","border.style.right"),t.setExtractor("border-bottom-style","border.style.bottom"),t.setExtractor("border-left-style","border.style.left"),t.setReducer("border-color",Uh("border-color")),t.setReducer("border-style",Uh("border-style")),t.setReducer("border-width",Uh("border-width")),t.setReducer("border-top",eg("top")),t.setReducer("border-right",eg("right")),t.setReducer("border-bottom",eg("bottom")),t.setReducer("border-left",eg("left")),t.setReducer("border",function(){return function(e){var n=Xh(e,"top"),o=Xh(e,"right"),i=Xh(e,"bottom"),r=Xh(e,"left"),s=[n,o,i,r],a={width:t(s,"width"),style:t(s,"style"),color:t(s,"color")},l=ng(a,"all");if(l.length)return l;var c=Object.entries(a).reduce(function(t,_ref55){var _ref56=_slicedToArray(_ref55,2),e=_ref56[0],n=_ref56[1];return n&&(t.push(["border-".concat(e),n]),s.forEach(function(t){return delete t[e];})),t;},[]);return[].concat(_toConsumableArray(c),_toConsumableArray(ng(n,"top")),_toConsumableArray(ng(o,"right")),_toConsumableArray(ng(i,"bottom")),_toConsumableArray(ng(r,"left")));};function t(t,e){return t.map(function(t){return t[e];}).reduce(function(t,e){return t==e?t:null;});}}()),t.setStyleRelation("border",["border-color","border-style","border-width","border-top","border-right","border-bottom","border-left","border-top-color","border-right-color","border-bottom-color","border-left-color","border-top-style","border-right-style","border-bottom-style","border-left-style","border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-color",["border-top-color","border-right-color","border-bottom-color","border-left-color"]),t.setStyleRelation("border-style",["border-top-style","border-right-style","border-bottom-style","border-left-style"]),t.setStyleRelation("border-width",["border-top-width","border-right-width","border-bottom-width","border-left-width"]),t.setStyleRelation("border-top",["border-top-color","border-top-style","border-top-width"]),t.setStyleRelation("border-right",["border-right-color","border-right-style","border-right-width"]),t.setStyleRelation("border-bottom",["border-bottom-color","border-bottom-style","border-bottom-width"]),t.setStyleRelation("border-left",["border-left-color","border-left-style","border-left-width"]);}function Kh(t){return function(e){var _tg2=tg(e),n=_tg2.color,o=_tg2.style,i=_tg2.width,r={};return void 0!==n&&(r.color=_defineProperty({},t,n)),void 0!==o&&(r.style=_defineProperty({},t,o)),void 0!==i&&(r.width=_defineProperty({},t,i)),{path:"border",value:r};};}function Yh(t){return function(e){return{path:"border",value:Qh(e,t)};};}function Qh(t,e){return _defineProperty({},e,Hh(t));}function Zh(t,e){return function(n){return{path:"border",value:_defineProperty({},t,_defineProperty({},e,n))};};}function Jh(t){return function(e,n){if(n.border)return Xh(n.border,t);};}function Xh(t,e){var n={};return t.width&&t.width[e]&&(n.width=t.width[e]),t.style&&t.style[e]&&(n.style=t.style[e]),t.color&&t.color[e]&&(n.color=t.color[e]),n;}function tg(t){var e={},n=Gh(t);var _iterator313=_createForOfIteratorHelper(n),_step313;try{for(_iterator313.s();!(_step313=_iterator313.n()).done;){var _t265=_step313.value;Mh(_t265)||/thin|medium|thick/.test(_t265)?e.width=_t265:Sh(_t265)?e.style=_t265:e.color=_t265;}}catch(err){_iterator313.e(err);}finally{_iterator313.f();}return e;}function eg(t){return function(e){return ng(e,t);};}function ng(t,e){var n=[];if(t&&t.width&&n.push("width"),t&&t.style&&n.push("style"),t&&t.color&&n.push("color"),3==n.length){var _o132=n.map(function(e){return t[e];}).join(" ");return["all"==e?["border",_o132]:["border-".concat(e),_o132]];}return"all"==e?[]:n.map(function(n){return["border-".concat(e,"-").concat(n),t[n]];});}function og(t){var e;t.setNormalizer("padding",(e="padding",function(t){return{path:e,value:Hh(t)};})),t.setNormalizer("padding-top",function(t){return{path:"padding.top",value:t};}),t.setNormalizer("padding-right",function(t){return{path:"padding.right",value:t};}),t.setNormalizer("padding-bottom",function(t){return{path:"padding.bottom",value:t};}),t.setNormalizer("padding-left",function(t){return{path:"padding.left",value:t};}),t.setReducer("padding",Uh("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"]);}var ig=/*#__PURE__*/function(_Symbol$iterator12){function ig(){_classCallCheck(this,ig);this._commands=new Map();}_createClass(ig,[{key:"add",value:function add(t,e){this._commands.set(t,e);}},{key:"get",value:function get(t){return this._commands.get(t);}},{key:"execute",value:function execute(t){var n=this.get(t);if(!n)throw new _("commandcollection-command-not-found",this,{commandName:t});for(var _len28=arguments.length,e=new Array(_len28>1?_len28-1:0),_key28=1;_key28<_len28;_key28++){e[_key28-1]=arguments[_key28];}return n.execute.apply(n,e);}},{key:"names",value:/*#__PURE__*/_regeneratorRuntime().mark(function names(){return _regeneratorRuntime().wrap(function names$(_context36){while(1)switch(_context36.prev=_context36.next){case 0:return _context36.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return _context36.stop();}},names,this);})},{key:"commands",value:/*#__PURE__*/_regeneratorRuntime().mark(function commands(){return _regeneratorRuntime().wrap(function commands$(_context37){while(1)switch(_context37.prev=_context37.next){case 0:return _context37.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return _context37.stop();}},commands,this);})},{key:_Symbol$iterator12,value:function value(){return this._commands[Symbol.iterator]();}},{key:"destroy",value:function destroy(){var _iterator314=_createForOfIteratorHelper(this.commands()),_step314;try{for(_iterator314.s();!(_step314=_iterator314.n()).done;){var _t266=_step314.value;_t266.destroy();}}catch(err){_iterator314.e(err);}finally{_iterator314.f();}}}]);return ig;}(Symbol.iterator);var rg=/*#__PURE__*/function(_Ti){_inherits(rg,_Ti);var _super101=_createSuper(rg);function rg(t){var _this150;_classCallCheck(this,rg);_this150=_super101.call(this),_this150.editor=t;return _this150;}_createClass(rg,[{key:"set",value:function set(t,e){var _this151=this;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if("string"==typeof e){var _t267=e;e=function e(_e217,n){_this151.editor.execute(_t267),n();};}_get(_getPrototypeOf(rg.prototype),"set",this).call(this,t,e,n);}}]);return rg;}(Ti);var sg=/*#__PURE__*/function(_$10){_inherits(sg,_$10);var _super102=_createSuper(sg);function sg(){var _this152;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};_classCallCheck(this,sg);_this152=_super102.call(this);var e=_this152.constructor,n=t.language||e.defaultConfig&&e.defaultConfig.language;_this152._context=t.context||new qr({language:n}),_this152._context._addEditor(_assertThisInitialized(_this152),!t.context);var o=Array.from(e.builtinPlugins||[]);_this152.config=new Eo(t,e.defaultConfig),_this152.config.define("plugins",o),_this152.config.define(_this152._context._getEditorConfig()),_this152.plugins=new Gr(_assertThisInitialized(_this152),o,_this152._context.plugins),_this152.locale=_this152._context.locale,_this152.t=_this152.locale.t,_this152._readOnlyLocks=new Set(),_this152.commands=new ig(),_this152.set("state","initializing"),_this152.once("ready",function(){return _this152.state="ready";},{priority:"high"}),_this152.once("destroy",function(){return _this152.state="destroyed";},{priority:"high"}),_this152.model=new fh();var i=new oa();_this152.data=new Qd(_this152.model,i),_this152.editing=new Td(_this152.model,i),_this152.editing.view.document.bind("isReadOnly").to(_assertThisInitialized(_this152)),_this152.conversion=new Zd([_this152.editing.downcastDispatcher,_this152.data.downcastDispatcher],_this152.data.upcastDispatcher),_this152.conversion.addAlias("dataDowncast",_this152.data.downcastDispatcher),_this152.conversion.addAlias("editingDowncast",_this152.editing.downcastDispatcher),_this152.keystrokes=new rg(_assertThisInitialized(_this152)),_this152.keystrokes.listenTo(_this152.editing.view.document);return _this152;}_createClass(sg,[{key:"isReadOnly",get:function get(){return this._readOnlyLocks.size>0;},set:function set(t){throw new _("editor-isreadonly-has-no-setter");}},{key:"enableReadOnlyMode",value:function enableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=_typeof(t))throw new _("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)||(this._readOnlyLocks.add(t),1===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!0,!1));}},{key:"disableReadOnlyMode",value:function disableReadOnlyMode(t){if("string"!=typeof t&&"symbol"!=_typeof(t))throw new _("editor-read-only-lock-id-invalid",null,{lockId:t});this._readOnlyLocks.has(t)&&(this._readOnlyLocks.delete(t),0===this._readOnlyLocks.size&&this.fire("change:isReadOnly","isReadOnly",!1,!0));}},{key:"initPlugins",value:function initPlugins(){var t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],o=t.get("extraPlugins")||[],i=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(o),n,i);}},{key:"destroy",value:function destroy(){var _this153=this;var t=Promise.resolve();return"initializing"==this.state&&(t=new Promise(function(t){return _this153.once("ready",t);})),t.then(function(){_this153.fire("destroy"),_this153.stopListening(),_this153.commands.destroy();}).then(function(){return _this153.plugins.destroy();}).then(function(){_this153.model.destroy(),_this153.data.destroy(),_this153.editing.destroy(),_this153.keystrokes.destroy();}).then(function(){return _this153._context._removeEditor(_this153);});}},{key:"execute",value:function execute(t){try{var _this$commands;for(var _len29=arguments.length,e=new Array(_len29>1?_len29-1:0),_key29=1;_key29<_len29;_key29++){e[_key29-1]=arguments[_key29];}return(_this$commands=this.commands).execute.apply(_this$commands,[t].concat(e));}catch(t){_.rethrowUnexpectedError(t,this);}}},{key:"focus",value:function focus(){this.editing.view.focus();}}],[{key:"create",value:function create(){throw new Error("This is an abstract method.");}}]);return sg;}($());function ag(t){return/*#__PURE__*/function(_t268){_inherits(_class6,_t268);var _super103=_createSuper(_class6);function _class6(){_classCallCheck(this,_class6);return _super103.apply(this,arguments);}_createClass(_class6,[{key:"setData",value:function setData(t){this.data.set(t);}},{key:"getData",value:function getData(t){return this.data.get(t);}}]);return _class6;}(t);}{var _t269=ag(Object);ag.setData=_t269.prototype.setData,ag.getData=_t269.prototype.getData;}function lg(t){return/*#__PURE__*/function(_t270){_inherits(_class7,_t270);var _super104=_createSuper(_class7);function _class7(){_classCallCheck(this,_class7);return _super104.apply(this,arguments);}_createClass(_class7,[{key:"updateSourceElement",value:function updateSourceElement(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this.data.get();if(!this.sourceElement)throw new _("editor-missing-sourceelement",this);var e=this.config.get("updateSourceElementOnDestroy"),n=this.sourceElement instanceof HTMLTextAreaElement;$o(this.sourceElement,e||n?t:"");}}]);return _class7;}(t);}lg.updateSourceElement=lg(Object).prototype.updateSourceElement;var cg=/*#__PURE__*/function(_$r,_Symbol$iterator13){_inherits(cg,_$r);var _super105=_createSuper(cg);function cg(){_classCallCheck(this,cg);return _super105.apply(this,arguments);}_createClass(cg,[{key:"init",value:function init(){this.set("hasAny",!1),this._actions=new xi({idProperty:"_id"}),this._actions.delegate("add","remove").to(this);}},{key:"add",value:function add(t){if("string"!=typeof t)throw new _("pendingactions-add-invalid-message",this);var e=new($())();return e.set("message",t),this._actions.add(e),this.hasAny=!0,e;}},{key:"remove",value:function remove(t){this._actions.remove(t),this.hasAny=!!this._actions.length;}},{key:"first",get:function get(){return this._actions.get(0);}},{key:_Symbol$iterator13,value:function value(){return this._actions[Symbol.iterator]();}}],[{key:"pluginName",get:function get(){return"PendingActions";}}]);return cg;}($r,Symbol.iterator);var dg={bold:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.187 17H5.773c-.637 0-1.092-.138-1.364-.415-.273-.277-.409-.718-.409-1.323V4.738c0-.617.14-1.062.419-1.332.279-.27.73-.406 1.354-.406h4.68c.69 0 1.288.041 1.793.124.506.083.96.242 1.36.478.341.197.644.447.906.75a3.262 3.262 0 0 1 .808 2.162c0 1.401-.722 2.426-2.167 3.075C15.05 10.175 16 11.315 16 13.01a3.756 3.756 0 0 1-2.296 3.504 6.1 6.1 0 0 1-1.517.377c-.571.073-1.238.11-2 .11zm-.217-6.217H7v4.087h3.069c1.977 0 2.965-.69 2.965-2.072 0-.707-.256-1.22-.768-1.537-.512-.319-1.277-.478-2.296-.478zM7 5.13v3.619h2.606c.729 0 1.292-.067 1.69-.2a1.6 1.6 0 0 0 .91-.765c.165-.267.247-.566.247-.897 0-.707-.26-1.176-.778-1.409-.519-.232-1.31-.348-2.375-.348H7z"/></svg>',cancel:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.591 10.177 4.243 4.242a1 1 0 0 1-1.415 1.415l-4.242-4.243-4.243 4.243a1 1 0 0 1-1.414-1.415l4.243-4.242L4.52 5.934A1 1 0 0 1 5.934 4.52l4.243 4.243 4.242-4.243a1 1 0 1 1 1.415 1.414l-4.243 4.243z"/></svg>',caption:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 16h9a1 1 0 0 1 0 2H2a1 1 0 0 1 0-2z"/><path d="M17 1a2 2 0 0 1 2 2v9a2 2 0 0 1-2 2H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14zm0 1.5H3a.5.5 0 0 0-.492.41L2.5 3v9a.5.5 0 0 0 .41.492L3 12.5h14a.5.5 0 0 0 .492-.41L17.5 12V3a.5.5 0 0 0-.41-.492L17 2.5z" fill-opacity=".6"/></svg>',check:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.972 16.615a.997.997 0 0 1-.744-.292l-4.596-4.596a1 1 0 1 1 1.414-1.414l3.926 3.926 9.937-9.937a1 1 0 0 1 1.414 1.415L7.717 16.323a.997.997 0 0 1-.745.292z"/></svg>',cog:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.333 2 .19 2.263a5.899 5.899 0 0 1 1.458.604L14.714 3.4 16.6 5.286l-1.467 1.733c.263.452.468.942.605 1.46L18 8.666v2.666l-2.263.19a5.899 5.899 0 0 1-.604 1.458l1.467 1.733-1.886 1.886-1.733-1.467a5.899 5.899 0 0 1-1.46.605L11.334 18H8.667l-.19-2.263a5.899 5.899 0 0 1-1.458-.604L5.286 16.6 3.4 14.714l1.467-1.733a5.899 5.899 0 0 1-.604-1.458L2 11.333V8.667l2.262-.189a5.899 5.899 0 0 1 .605-1.459L3.4 5.286 5.286 3.4l1.733 1.467a5.899 5.899 0 0 1 1.46-.605L8.666 2h2.666zM10 6.267a3.733 3.733 0 1 0 0 7.466 3.733 3.733 0 0 0 0-7.466z"/></svg>',eraser:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m8.636 9.531-2.758 3.94a.5.5 0 0 0 .122.696l3.224 2.284h1.314l2.636-3.736L8.636 9.53zm.288 8.451L5.14 15.396a2 2 0 0 1-.491-2.786l6.673-9.53a2 2 0 0 1 2.785-.49l3.742 2.62a2 2 0 0 1 .491 2.785l-7.269 10.053-2.147-.066z"/><path d="M4 18h5.523v-1H4zm-2 0h1v-1H2z"/></svg>',image:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.91 10.54c.26-.23.64-.21.88.03l3.36 3.14 2.23-2.06a.64.64 0 0 1 .87 0l2.52 2.97V4.5H3.2v10.12l3.71-4.08zm10.27-7.51c.6 0 1.09.47 1.09 1.05v11.84c0 .59-.49 1.06-1.09 1.06H2.79c-.6 0-1.09-.47-1.09-1.06V4.08c0-.58.49-1.05 1.1-1.05h14.38zm-5.22 5.56a1.96 1.96 0 1 1 3.4-1.96 1.96 1.96 0 0 1-3.4 1.96z"/></svg>',lowVision:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M5.085 6.22 2.943 4.078a.75.75 0 1 1 1.06-1.06l2.592 2.59A11.094 11.094 0 0 1 10 5.068c4.738 0 8.578 3.101 8.578 5.083 0 1.197-1.401 2.803-3.555 3.887l1.714 1.713a.75.75 0 0 1-.09 1.138.488.488 0 0 1-.15.084.75.75 0 0 1-.821-.16L6.17 7.304c-.258.11-.51.233-.757.365l6.239 6.24-.006.005.78.78c-.388.094-.78.166-1.174.215l-1.11-1.11h.011L4.55 8.197a7.2 7.2 0 0 0-.665.514l-.112.098 4.897 4.897-.005.006 1.276 1.276a10.164 10.164 0 0 1-1.477-.117l-.479-.479-.009.009-4.863-4.863-.022.031a2.563 2.563 0 0 0-.124.2c-.043.077-.08.158-.108.241a.534.534 0 0 0-.028.133.29.29 0 0 0 .008.072.927.927 0 0 0 .082.226c.067.133.145.26.234.379l3.242 3.365.025.01.59.623c-3.265-.918-5.59-3.155-5.59-4.668 0-1.194 1.448-2.838 3.663-3.93zm7.07.531a4.632 4.632 0 0 1 1.108 5.992l.345.344.046-.018a9.313 9.313 0 0 0 2-1.112c.256-.187.5-.392.727-.613.137-.134.27-.277.392-.431.072-.091.141-.185.203-.286.057-.093.107-.19.148-.292a.72.72 0 0 0 .036-.12.29.29 0 0 0 .008-.072.492.492 0 0 0-.028-.133.999.999 0 0 0-.036-.096 2.165 2.165 0 0 0-.071-.145 2.917 2.917 0 0 0-.125-.2 3.592 3.592 0 0 0-.263-.335 5.444 5.444 0 0 0-.53-.523 7.955 7.955 0 0 0-1.054-.768 9.766 9.766 0 0 0-1.879-.891c-.337-.118-.68-.219-1.027-.301zm-2.85.21-.069.002a.508.508 0 0 0-.254.097.496.496 0 0 0-.104.679.498.498 0 0 0 .326.199l.045.005c.091.003.181.003.272.012a2.45 2.45 0 0 1 2.017 1.513c.024.061.043.125.069.185a.494.494 0 0 0 .45.287h.008a.496.496 0 0 0 .35-.158.482.482 0 0 0 .13-.335.638.638 0 0 0-.048-.219 3.379 3.379 0 0 0-.36-.723 3.438 3.438 0 0 0-2.791-1.543l-.028-.001h-.013z"/></svg>',importExport:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path clip-rule="evenodd" d="M19 4.5 14 0H3v12.673l.868-1.041c.185-.222.4-.402.632-.54V1.5h8v5h5v7.626a2.24 2.24 0 0 1 1.5.822V4.5ZM14 5V2l3.3 3H14Zm-3.692 12.5c.062.105.133.206.213.303L11.52 19H8v-.876a2.243 2.243 0 0 0 1.82-.624h.488Zm7.518-.657a.75.75 0 0 0-1.152-.96L15.5 17.29V12H14v5.29l-1.174-1.408a.75.75 0 0 0-1.152.96l2.346 2.816a.95.95 0 0 0 1.46 0l2.346-2.815Zm-15.056-.38a.75.75 0 0 1-.096-1.056l2.346-2.815a.95.95 0 0 1 1.46 0l2.346 2.815a.75.75 0 1 1-1.152.96L6.5 14.96V20H5v-5.04l-1.174 1.408a.75.75 0 0 1-1.056.096Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',paragraph:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10.5 5.5H7v5h3.5a2.5 2.5 0 1 0 0-5zM5 3h6.5v.025a5 5 0 0 1 0 9.95V13H7v4a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1z"/></svg>',plus:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M10 2a1 1 0 0 0-1 1v6H3a1 1 0 1 0 0 2h6v6a1 1 0 1 0 2 0v-6h6a1 1 0 1 0 0-2h-6V3a1 1 0 0 0-1-1Z"/></svg>',text:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><g clip-path="url(#a)"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555Zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13Z"/><path clip-rule="evenodd" d="m12.09 17-.534-1.292.848-1.971.545 1.319L12.113 17h-.023Zm1.142-5.187.545 1.319L15.5 9.13l1.858 4.316h-3.45l.398.965h3.467L18.887 17H20l-3.873-9h-1.254l-1.641 3.813Z"/></g><defs><clipPath id="a"><path d="M0 0h20v20H0z"/></clipPath></defs></svg>',alignBottom:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.239 13.938-2.88-1.663a.75.75 0 0 1 .75-1.3L9 12.067V4.75a.75.75 0 1 1 1.5 0v7.318l1.89-1.093a.75.75 0 0 1 .75 1.3l-2.879 1.663a.752.752 0 0 1-.511.187.752.752 0 0 1-.511-.187zM4.25 17a.75.75 0 1 1 0-1.5h10.5a.75.75 0 0 1 0 1.5H4.25z"/></svg>',alignMiddle:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.75 11.875a.752.752 0 0 1 .508.184l2.883 1.666a.75.75 0 0 1-.659 1.344l-.091-.044-1.892-1.093.001 4.318a.75.75 0 1 1-1.5 0v-4.317l-1.89 1.092a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .51-.187zM15.25 9a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM9.75.375a.75.75 0 0 1 .75.75v4.318l1.89-1.093.092-.045a.75.75 0 0 1 .659 1.344l-2.883 1.667a.752.752 0 0 1-.508.184.752.752 0 0 1-.511-.187L6.359 5.65a.75.75 0 0 1 .75-1.299L9 5.442V1.125a.75.75 0 0 1 .75-.75z"/></svg>',alignTop:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m10.261 7.062 2.88 1.663a.75.75 0 0 1-.75 1.3L10.5 8.933v7.317a.75.75 0 1 1-1.5 0V8.932l-1.89 1.093a.75.75 0 0 1-.75-1.3l2.879-1.663a.752.752 0 0 1 .511-.187.752.752 0 0 1 .511.187zM15.25 4a.75.75 0 1 1 0 1.5H4.75a.75.75 0 0 1 0-1.5h10.5z"/></svg>',alignLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',alignCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm2.286 4c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h9.928a.75.75 0 1 0 0-1.5H5.036a.75.75 0 0 0-.75.75z"/></svg>',alignRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M18 3.75a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 8a.75.75 0 0 1-.75.75H2.75a.75.75 0 1 1 0-1.5h14.5a.75.75 0 0 1 .75.75zm0 4a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75zm0-8a.75.75 0 0 1-.75.75H7.321a.75.75 0 1 1 0-1.5h9.929a.75.75 0 0 1 .75.75z"/></svg>',alignJustify:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0 4c0 .414.336.75.75.75h9.929a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm0-8c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75z"/></svg>',objectLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zm0-3H18v1.5h-4.5zm0-3H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectCenter:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M15.003 7v5.5a1 1 0 0 1-1 1H5.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H6.5V12h6.997V7.5z"/></svg>',objectRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2zm0-9h5v1.5H2zm0 3h5v1.5H2zm0 3h5v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectFullWidth:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18 7v5.5a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h14a1 1 0 0 1 1 1zm-1.505.5H3.504V12h12.991V7.5z"/></svg>',objectInline:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm11.5 9H18v1.5h-4.5zM2 15h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockLeft:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M12.003 7v5.5a1 1 0 0 1-1 1H2.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H3.5V12h6.997V7.5z"/></svg>',objectBlockRight:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path opacity=".5" d="M2 3h16v1.5H2zm0 12h16v1.5H2z"/><path d="M18.003 7v5.5a1 1 0 0 1-1 1H8.996a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h8.007a1 1 0 0 1 1 1zm-1.506.5H9.5V12h6.997V7.5z"/></svg>',objectSizeFull:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M18.095 2H1.905C.853 2 0 2.895 0 4v12c0 1.105.853 2 1.905 2h16.19C19.147 18 20 17.105 20 16V4c0-1.105-.853-2-1.905-2zm0 1.5c.263 0 .476.224.476.5v12c0 .276-.213.5-.476.5H1.905a.489.489 0 0 1-.476-.5V4c0-.276.213-.5.476-.5h16.19z"/></svg>',objectSizeLarge:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M13 6H2a2 2 0 0 0-2 2v8a2 2 0 0 0 2 2h11a2 2 0 0 0 2-2V8a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v8a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5V8a.5.5 0 0 1 .5-.5h11z"/></svg>',objectSizeSmall:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M7 10H2a2 2 0 0 0-2 2v4a2 2 0 0 0 2 2h5a2 2 0 0 0 2-2v-4a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v4a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-4a.5.5 0 0 1 .5-.5h5z"/></svg>',objectSizeMedium:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M2.5 17v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zm2 0v1h-1v-1h1zM1 15.5v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm-19-2v1H0v-1h1zm19 0v1h-1v-1h1zm0-2v1h-1v-1h1zm-19 0v1H0v-1h1zM14.5 2v1h-1V2h1zm2 0v1h-1V2h1zm2 0v1h-1V2h1zm-8 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm-2 0v1h-1V2h1zm8 0v1h-1V2h1zm-10 0v1h-1V2h1z"/><path d="M10 8H2a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h8a2 2 0 0 0 2-2v-6a2 2 0 0 0-2-2zm0 1.5a.5.5 0 0 1 .5.5v6a.5.5 0 0 1-.5.5H2a.5.5 0 0 1-.5-.5v-6a.5.5 0 0 1 .5-.5h8z"/></svg>',pencil:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m7.3 17.37-.061.088a1.518 1.518 0 0 1-.934.535l-4.178.663-.806-4.153a1.495 1.495 0 0 1 .187-1.058l.056-.086L8.77 2.639c.958-1.351 2.803-1.076 4.296-.03 1.497 1.047 2.387 2.693 1.433 4.055L7.3 17.37zM9.14 4.728l-5.545 8.346 3.277 2.294 5.544-8.346L9.14 4.728zM6.07 16.512l-3.276-2.295.53 2.73 2.746-.435zM9.994 3.506 13.271 5.8c.316-.452-.16-1.333-1.065-1.966-.905-.634-1.895-.78-2.212-.328zM8 18.5 9.375 17H19v1.5H8z"/></svg>',pilcrow:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M6.999 2H15a1 1 0 0 1 0 2h-1.004v13a1 1 0 1 1-2 0V4H8.999v13a1 1 0 1 1-2 0v-7A4 4 0 0 1 3 6a4 4 0 0 1 3.999-4z"/></svg>',quote:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 10.423a6.5 6.5 0 0 1 6.056-6.408l.038.67C6.448 5.423 5.354 7.663 5.22 10H9c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574zm8 0a6.5 6.5 0 0 1 6.056-6.408l.038.67c-2.646.739-3.74 2.979-3.873 5.315H17c.552 0 .5.432.5.986v4.511c0 .554-.448.503-1 .503h-5c-.552 0-.5-.449-.5-1.003v-4.574z"/></svg>',threeVerticalDots:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><circle cx="9.5" cy="4.5" r="1.5"/><circle cx="9.5" cy="10.5" r="1.5"/><circle cx="9.5" cy="16.5" r="1.5"/></svg>'};var ug=n(5571),hg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(ug.Z,hg);ug.Z.locals;var gg=dg.threeVerticalDots,mg={alignLeft:dg.alignLeft,bold:dg.bold,importExport:dg.importExport,paragraph:dg.paragraph,plus:dg.plus,text:dg.text,threeVerticalDots:dg.threeVerticalDots};var pg=/*#__PURE__*/function(_ji9){_inherits(pg,_ji9);var _super106=_createSuper(pg);function pg(t,e){var _this154;_classCallCheck(this,pg);_this154=_super106.call(this,t);var n=_this154.bindTemplate,o=_this154.t;_this154.options=e||{},_this154.set("ariaLabel",o("Editor toolbar")),_this154.set("maxWidth","auto"),_this154.items=_this154.createCollection(),_this154.focusTracker=new Di(),_this154.keystrokes=new Ti(),_this154.set("class",void 0),_this154.set("isCompact",!1),_this154.itemsView=new fg(t),_this154.children=_this154.createCollection(),_this154.children.add(_this154.itemsView),_this154.focusables=_this154.createCollection();var i="rtl"===t.uiLanguageDirection;_this154._focusCycler=new Pr({focusables:_this154.focusables,focusTracker:_this154.focusTracker,keystrokeHandler:_this154.keystrokes,actions:{focusPrevious:[i?"arrowright":"arrowleft","arrowup"],focusNext:[i?"arrowleft":"arrowright","arrowdown"]}});var r=["ck","ck-toolbar",n.to("class"),n.if("isCompact","ck-toolbar_compact")];var s;_this154.options.shouldGroupWhenFull&&_this154.options.isFloating&&r.push("ck-toolbar_floating"),_this154.setTemplate({tag:"div",attributes:{class:r,role:"toolbar","aria-label":n.to("ariaLabel"),style:{maxWidth:n.to("maxWidth")}},children:_this154.children,on:{mousedown:(s=_assertThisInitialized(_this154),s.bindTemplate.to(function(t){t.target===s.element&&t.preventDefault();}))}}),_this154._behavior=_this154.options.shouldGroupWhenFull?new bg(_assertThisInitialized(_this154)):new kg(_assertThisInitialized(_this154));return _this154;}_createClass(pg,[{key:"render",value:function render(){var _this155=this;_get(_getPrototypeOf(pg.prototype),"render",this).call(this);var _iterator315=_createForOfIteratorHelper(this.items),_step315;try{for(_iterator315.s();!(_step315=_iterator315.n()).done;){var _t271=_step315.value;this.focusTracker.add(_t271.element);}}catch(err){_iterator315.e(err);}finally{_iterator315.f();}this.items.on("add",function(t,e){_this155.focusTracker.add(e.element);}),this.items.on("remove",function(t,e){_this155.focusTracker.remove(e.element);}),this.keystrokes.listenTo(this.element),this._behavior.render(this);}},{key:"destroy",value:function destroy(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),_get(_getPrototypeOf(pg.prototype),"destroy",this).call(this);}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"focusLast",value:function focusLast(){this._focusCycler.focusLast();}},{key:"fillFromConfig",value:function fillFromConfig(t,e,n){this.items.addMany(this._buildItemsFromConfig(t,e,n));}},{key:"_buildItemsFromConfig",value:function _buildItemsFromConfig(t,e,n){var _this156=this;var o=jr(t),i=n||o.removeItems;return this._cleanItemsConfiguration(o.items,e,i).map(function(t){return F(t)?_this156._createNestedToolbarDropdown(t,e,i):"|"===t?new Or():"-"===t?new Rr():e.create(t);}).filter(function(t){return!!t;});}},{key:"_cleanItemsConfiguration",value:function _cleanItemsConfiguration(t,e,n){var _this157=this;var o=t.filter(function(t,o,i){return"|"===t||-1===n.indexOf(t)&&("-"===t?!_this157.options.shouldGroupWhenFull||(C("toolbarview-line-break-ignored-when-grouping-items",i),!1):!(!F(t)&&!e.has(t))||(C("toolbarview-item-unavailable",{item:t}),!1));});return this._cleanSeparatorsAndLineBreaks(o);}},{key:"_cleanSeparatorsAndLineBreaks",value:function _cleanSeparatorsAndLineBreaks(t){var e=function e(t){return"-"!==t&&"|"!==t;},n=t.length,o=t.findIndex(e);if(-1===o)return[];var i=n-t.slice().reverse().findIndex(e);return t.slice(o,i).filter(function(t,n,o){if(e(t))return!0;return!(n>0&&o[n-1]===t);});}},{key:"_createNestedToolbarDropdown",value:function _createNestedToolbarDropdown(t,e,n){var o=t.label,i=t.icon,r=t.items,_t$tooltip=t.tooltip,s=_t$tooltip===void 0?!0:_t$tooltip,_t$withText=t.withText,a=_t$withText===void 0?!1:_t$withText;if(r=this._cleanItemsConfiguration(r,e,n),!r.length)return null;var l=Tg(this.locale);return o||C("toolbarview-nested-toolbar-dropdown-missing-label",t),l.class="ck-toolbar__nested-toolbar-dropdown",l.buttonView.set({label:o,tooltip:s,withText:!!a}),!1!==i?l.buttonView.icon=mg[i]||i||gg:l.buttonView.withText=!0,Sg(l,function(){return l.toolbarView._buildItemsFromConfig(r,e,n);}),l;}}]);return pg;}(ji);var fg=/*#__PURE__*/function(_ji10){_inherits(fg,_ji10);var _super107=_createSuper(fg);function fg(t){var _this158;_classCallCheck(this,fg);_this158=_super107.call(this,t),_this158.children=_this158.createCollection(),_this158.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:_this158.children});return _this158;}return _createClass(fg);}(ji);var kg=/*#__PURE__*/function(){function kg(t){_classCallCheck(this,kg);var e=t.bindTemplate;t.set("isVertical",!1),t.itemsView.children.bindTo(t.items).using(function(t){return t;}),t.focusables.bindTo(t.items).using(function(t){return t;}),t.extendTemplate({attributes:{class:[e.if("isVertical","ck-toolbar_vertical")]}});}_createClass(kg,[{key:"render",value:function render(){}},{key:"destroy",value:function destroy(){}}]);return kg;}();var bg=/*#__PURE__*/function(){function bg(t){var _this159=this;_classCallCheck(this,bg);this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,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(),t.itemsView.children.bindTo(this.ungroupedItems).using(function(t){return t;}),this.ungroupedItems.on("change",this._updateFocusCycleableItems.bind(this)),t.children.on("change",this._updateFocusCycleableItems.bind(this)),t.items.on("change",function(t,e){var n=e.index,o=Array.from(e.added);var _iterator316=_createForOfIteratorHelper(e.removed),_step316;try{for(_iterator316.s();!(_step316=_iterator316.n()).done;){var _t273=_step316.value;n>=_this159.ungroupedItems.length?_this159.groupedItems.remove(_t273):_this159.ungroupedItems.remove(_t273);}}catch(err){_iterator316.e(err);}finally{_iterator316.f();}for(var _t272=n;_t272<n+o.length;_t272++){var _e218=o[_t272-n];_t272>_this159.ungroupedItems.length?_this159.groupedItems.add(_e218,_t272-_this159.ungroupedItems.length):_this159.ungroupedItems.add(_e218,_t272);}_this159._updateGrouping();}),t.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}});}_createClass(bg,[{key:"render",value:function render(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t);}},{key:"destroy",value:function destroy(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy();}},{key:"_updateGrouping",value:function _updateGrouping(){if(!this.viewElement.ownerDocument.body.contains(this.viewElement))return;if(!Jo(this.viewElement))return void(this.shouldUpdateGroupingOnNextResize=!0);var t=this.groupedItems.length;var e;for(;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");}},{key:"_areItemsOverflowing",get:function get(){if(!this.ungroupedItems.length)return!1;var t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Ho(t.lastChild),o=new Ho(t);if(!this.cachedPadding){var _n216=Lo.window.getComputedStyle(t),_o133="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(_n216[_o133]);}return"ltr"===e?n.right>o.right-this.cachedPadding:n.left<o.left+this.cachedPadding;}},{key:"_enableGroupingOnResize",value:function _enableGroupingOnResize(){var _this160=this;var t;this.resizeObserver=new qo(this.viewElement,function(e){t&&t===e.contentRect.width&&!_this160.shouldUpdateGroupingOnNextResize||(_this160.shouldUpdateGroupingOnNextResize=!1,_this160._updateGrouping(),t=e.contentRect.width);}),this._updateGrouping();}},{key:"_enableGroupingOnMaxWidthChange",value:function _enableGroupingOnMaxWidthChange(t){var _this161=this;t.on("change:maxWidth",function(){_this161._updateGrouping();});}},{key:"_groupLastItem",value:function _groupLastItem(){this.groupedItems.length||(this.viewChildren.add(new Or()),this.viewChildren.add(this.groupedItemsDropdown),this.viewFocusTracker.add(this.groupedItemsDropdown.element)),this.groupedItems.add(this.ungroupedItems.remove(this.ungroupedItems.last),0);}},{key:"_ungroupFirstItem",value:function _ungroupFirstItem(){this.ungroupedItems.add(this.groupedItems.remove(this.groupedItems.first)),this.groupedItems.length||(this.viewChildren.remove(this.groupedItemsDropdown),this.viewChildren.remove(this.viewChildren.last),this.viewFocusTracker.remove(this.groupedItemsDropdown.element));}},{key:"_createGroupedItemsDropdown",value:function _createGroupedItemsDropdown(){var t=this.viewLocale,e=t.t,n=Tg(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",Sg(n,this.groupedItems),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:gg}),n;}},{key:"_updateFocusCycleableItems",value:function _updateFocusCycleableItems(){var _this162=this;this.viewFocusables.clear(),this.ungroupedItems.map(function(t){_this162.viewFocusables.add(t);}),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown);}}]);return bg;}();var wg=n(1162),Ag={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(wg.Z,Ag);wg.Z.locals;var _g=/*#__PURE__*/function(_ji11){_inherits(_g,_ji11);var _super108=_createSuper(_g);function _g(t){var _this163;_classCallCheck(this,_g);_this163=_super108.call(this,t);var e=_this163.bindTemplate;_this163.items=_this163.createCollection(),_this163.focusTracker=new Di(),_this163.keystrokes=new Ti(),_this163._focusCycler=new Pr({focusables:_this163.items,focusTracker:_this163.focusTracker,keystrokeHandler:_this163.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),_this163.set("ariaLabel",void 0),_this163.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"],"aria-label":e.to("ariaLabel")},children:_this163.items});return _this163;}_createClass(_g,[{key:"render",value:function render(){var _this164=this;_get(_getPrototypeOf(_g.prototype),"render",this).call(this);var _iterator317=_createForOfIteratorHelper(this.items),_step317;try{for(_iterator317.s();!(_step317=_iterator317.n()).done;){var _t274=_step317.value;this.focusTracker.add(_t274.element);}}catch(err){_iterator317.e(err);}finally{_iterator317.f();}this.items.on("add",function(t,e){_this164.focusTracker.add(e.element);}),this.items.on("remove",function(t,e){_this164.focusTracker.remove(e.element);}),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(_g.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"focusLast",value:function focusLast(){this._focusCycler.focusLast();}}]);return _g;}(ji);var Cg=/*#__PURE__*/function(_ji12){_inherits(Cg,_ji12);var _super109=_createSuper(Cg);function Cg(t){var _this165;_classCallCheck(this,Cg);_this165=_super109.call(this,t);var e=_this165.bindTemplate;_this165.set("isVisible",!0),_this165.children=_this165.createCollection(),_this165.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item",e.if("isVisible","ck-hidden",function(t){return!t;})]},children:_this165.children});return _this165;}_createClass(Cg,[{key:"focus",value:function focus(){this.children.first.focus();}}]);return Cg;}(ji);var vg=/*#__PURE__*/function(_ji13){_inherits(vg,_ji13);var _super110=_createSuper(vg);function vg(t){var _this166;_classCallCheck(this,vg);_this166=_super110.call(this,t),_this166.setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}});return _this166;}return _createClass(vg);}(ji);var yg=n(5075),xg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(yg.Z,xg);yg.Z.locals;var Eg=n(6875),Dg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Eg.Z,Dg);Eg.Z.locals;function Tg(e){var n=arguments.length>1&&arguments[1]!==undefined?arguments[1]:Mr;var o=new n(e),i=new Sr(e),r=new Tr(e,o,i);return o.bind("isEnabled").to(r),o instanceof zr?o.arrowView.bind("isOn").to(r,"isOpen"):o.bind("isOn").to(r,"isOpen"),function(e){(function(e){e.on("render",function(){t({emitter:e,activator:function activator(){return e.isOpen;},callback:function callback(){e.isOpen=!1;},contextElements:[e.element]});});})(e),function(t){t.on("execute",function(e){e.source instanceof fr||(t.isOpen=!1);});}(e),function(t){t.focusTracker.on("change:isFocused",function(e,n,o){t.isOpen&&!o&&(t.isOpen=!1);});}(e),function(t){t.keystrokes.set("arrowdown",function(e,n){t.isOpen&&(t.panelView.focus(),n());}),t.keystrokes.set("arrowup",function(e,n){t.isOpen&&(t.panelView.focusLast(),n());});}(e),function(t){t.on("change:isOpen",function(e,n,o){if(o)return;var i=t.panelView.element;i&&i.contains(Lo.document.activeElement)&&t.buttonView.focus();});}(e),function(t){t.on("change:isOpen",function(e,n,o){o&&t.panelView.focus();},{priority:"low"});}(e);}(r),r;}function Sg(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),t.isOpen?Ig(t,e,n):t.once("change:isOpen",function(){return Ig(t,e,n);},{priority:"highest"}),n.enableActiveItemFocusOnDropdownOpen&&Ng(t,function(){return t.toolbarView.items.find(function(t){return t.isOn;});});}function Ig(t,e,n){var o=t.locale,i=o.t,r=t.toolbarView=new pg(o),s="function"==typeof e?e():e;r.ariaLabel=n.ariaLabel||i("Dropdown toolbar"),n.maxWidth&&(r.maxWidth=n.maxWidth),n.class&&(r.class=n.class),n.isCompact&&(r.isCompact=n.isCompact),n.isVertical&&(r.isVertical=!0),s instanceof zi?r.items.bindTo(s).using(function(t){return t;}):r.items.addMany(s),t.panelView.children.add(r),r.items.delegate("execute").to(t);}function Mg(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};t.isOpen?Bg(t,e,n):t.once("change:isOpen",function(){return Bg(t,e,n);},{priority:"highest"}),Ng(t,function(){return t.listView.items.find(function(t){return t instanceof Cg&&t.children.first.isOn;});});}function Bg(t,e,n){var o=t.locale,i=t.listView=new _g(o),r="function"==typeof e?e():e;i.ariaLabel=n.ariaLabel,i.items.bindTo(r).using(function(t){if("separator"===t.type)return new vg(o);if("button"===t.type||"switchbutton"===t.type){var _n218;var _e219=new Cg(o);var _n217;return _n217="button"===t.type?new gr(o):new fr(o),(_n218=_n217).bind.apply(_n218,_toConsumableArray(Object.keys(t.model))).to(t.model),_n217.delegate("execute").to(_e219),_e219.children.add(_n217),_e219;}return null;}),t.panelView.children.add(i),i.items.delegate("execute").to(t);}function Ng(t,e){t.on("change:isOpen",function(){if(!t.isOpen)return;var n=e();n&&("function"==typeof n.focus?n.focus():C("ui-dropdown-focus-child-on-open-child-missing-focus",{view:n}));},{priority:b.low-10});}var zg=n(8245),Pg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(zg.Z,Pg);zg.Z.locals;var Lg=Ko("px"),Og=Lo.document.body;var Rg=/*#__PURE__*/function(_ji14){_inherits(Rg,_ji14);var _super111=_createSuper(Rg);function Rg(t){var _this167;_classCallCheck(this,Rg);_this167=_super111.call(this,t);var e=_this167.bindTemplate;_this167.set("top",0),_this167.set("left",0),_this167.set("position","arrow_nw"),_this167.set("isVisible",!1),_this167.set("withArrow",!0),_this167.set("class",void 0),_this167._pinWhenIsVisibleCallback=null,_this167.content=_this167.createCollection(),_this167.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",e.to("position",function(t){return"ck-balloon-panel_".concat(t);}),e.if("isVisible","ck-balloon-panel_visible"),e.if("withArrow","ck-balloon-panel_with-arrow"),e.to("class")],style:{top:e.to("top",Lg),left:e.to("left",Lg)}},children:_this167.content});return _this167;}_createClass(Rg,[{key:"show",value:function show(){this.isVisible=!0;}},{key:"hide",value:function hide(){this.isVisible=!1;}},{key:"attachTo",value:function attachTo(t){this.show();var e=Rg.defaultPositions,n=Object.assign({},{element:this.element,positions:[e.southArrowNorth,e.southArrowNorthMiddleWest,e.southArrowNorthMiddleEast,e.southArrowNorthWest,e.southArrowNorthEast,e.northArrowSouth,e.northArrowSouthMiddleWest,e.northArrowSouthMiddleEast,e.northArrowSouthWest,e.northArrowSouthEast,e.viewportStickyNorth],limiter:Og,fitInViewport:!0},t),o=Rg._getOptimalPosition(n),i=parseInt(o.left),r=parseInt(o.top),s=o.name,a=o.config||{},_a$withArrow=a.withArrow,l=_a$withArrow===void 0?!0:_a$withArrow;this.top=r,this.left=i,this.position=s,this.withArrow=l;}},{key:"pin",value:function pin(t){var _this168=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){_this168.isVisible?_this168._startPinning(t):_this168._stopPinning();},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback);}},{key:"unpin",value:function unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide());}},{key:"_startPinning",value:function _startPinning(t){var _this169=this;this.attachTo(t);var e=jg(t.target),n=t.limiter?jg(t.limiter):Og;this.listenTo(Lo.document,"scroll",function(o,i){var r=i.target,s=e&&r.contains(e),a=n&&r.contains(n);!s&&!a&&e&&n||_this169.attachTo(t);},{useCapture:!0}),this.listenTo(Lo.window,"resize",function(){_this169.attachTo(t);});}},{key:"_stopPinning",value:function _stopPinning(){this.stopListening(Lo.document,"scroll"),this.stopListening(Lo.window,"resize");}}]);return Rg;}(ji);function jg(t){return xo(t)?t:jo(t)?t.commonAncestorContainer:"function"==typeof t?jg(t()):null;}function Fg(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _t$sideOffset=t.sideOffset,e=_t$sideOffset===void 0?Rg.arrowSideOffset:_t$sideOffset,_t$heightOffset=t.heightOffset,n=_t$heightOffset===void 0?Rg.arrowHeightOffset:_t$heightOffset,_t$stickyVerticalOffs=t.stickyVerticalOffset,o=_t$stickyVerticalOffs===void 0?Rg.stickyVerticalOffset:_t$stickyVerticalOffs,i=t.config;return{northWestArrowSouthWest:function northWestArrowSouthWest(t,n){return _objectSpread({top:r(t,n),left:t.left-e,name:"arrow_sw"},i&&{config:i});},northWestArrowSouthMiddleWest:function northWestArrowSouthMiddleWest(t,n){return _objectSpread({top:r(t,n),left:t.left-.25*n.width-e,name:"arrow_smw"},i&&{config:i});},northWestArrowSouth:function northWestArrowSouth(t,e){return _objectSpread({top:r(t,e),left:t.left-e.width/2,name:"arrow_s"},i&&{config:i});},northWestArrowSouthMiddleEast:function northWestArrowSouthMiddleEast(t,n){return _objectSpread({top:r(t,n),left:t.left-.75*n.width+e,name:"arrow_sme"},i&&{config:i});},northWestArrowSouthEast:function northWestArrowSouthEast(t,n){return _objectSpread({top:r(t,n),left:t.left-n.width+e,name:"arrow_se"},i&&{config:i});},northArrowSouthWest:function northArrowSouthWest(t,n){return _objectSpread({top:r(t,n),left:t.left+t.width/2-e,name:"arrow_sw"},i&&{config:i});},northArrowSouthMiddleWest:function northArrowSouthMiddleWest(t,n){return _objectSpread({top:r(t,n),left:t.left+t.width/2-.25*n.width-e,name:"arrow_smw"},i&&{config:i});},northArrowSouth:function northArrowSouth(t,e){return _objectSpread({top:r(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"},i&&{config:i});},northArrowSouthMiddleEast:function northArrowSouthMiddleEast(t,n){return _objectSpread({top:r(t,n),left:t.left+t.width/2-.75*n.width+e,name:"arrow_sme"},i&&{config:i});},northArrowSouthEast:function northArrowSouthEast(t,n){return _objectSpread({top:r(t,n),left:t.left+t.width/2-n.width+e,name:"arrow_se"},i&&{config:i});},northEastArrowSouthWest:function northEastArrowSouthWest(t,n){return _objectSpread({top:r(t,n),left:t.right-e,name:"arrow_sw"},i&&{config:i});},northEastArrowSouthMiddleWest:function northEastArrowSouthMiddleWest(t,n){return _objectSpread({top:r(t,n),left:t.right-.25*n.width-e,name:"arrow_smw"},i&&{config:i});},northEastArrowSouth:function northEastArrowSouth(t,e){return _objectSpread({top:r(t,e),left:t.right-e.width/2,name:"arrow_s"},i&&{config:i});},northEastArrowSouthMiddleEast:function northEastArrowSouthMiddleEast(t,n){return _objectSpread({top:r(t,n),left:t.right-.75*n.width+e,name:"arrow_sme"},i&&{config:i});},northEastArrowSouthEast:function northEastArrowSouthEast(t,n){return _objectSpread({top:r(t,n),left:t.right-n.width+e,name:"arrow_se"},i&&{config:i});},southWestArrowNorthWest:function southWestArrowNorthWest(t){return _objectSpread({top:s(t),left:t.left-e,name:"arrow_nw"},i&&{config:i});},southWestArrowNorthMiddleWest:function southWestArrowNorthMiddleWest(t,n){return _objectSpread({top:s(t),left:t.left-.25*n.width-e,name:"arrow_nmw"},i&&{config:i});},southWestArrowNorth:function southWestArrowNorth(t,e){return _objectSpread({top:s(t),left:t.left-e.width/2,name:"arrow_n"},i&&{config:i});},southWestArrowNorthMiddleEast:function southWestArrowNorthMiddleEast(t,n){return _objectSpread({top:s(t),left:t.left-.75*n.width+e,name:"arrow_nme"},i&&{config:i});},southWestArrowNorthEast:function southWestArrowNorthEast(t,n){return _objectSpread({top:s(t),left:t.left-n.width+e,name:"arrow_ne"},i&&{config:i});},southArrowNorthWest:function southArrowNorthWest(t){return _objectSpread({top:s(t),left:t.left+t.width/2-e,name:"arrow_nw"},i&&{config:i});},southArrowNorthMiddleWest:function southArrowNorthMiddleWest(t,n){return _objectSpread({top:s(t),left:t.left+t.width/2-.25*n.width-e,name:"arrow_nmw"},i&&{config:i});},southArrowNorth:function southArrowNorth(t,e){return _objectSpread({top:s(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"},i&&{config:i});},southArrowNorthMiddleEast:function southArrowNorthMiddleEast(t,n){return _objectSpread({top:s(t),left:t.left+t.width/2-.75*n.width+e,name:"arrow_nme"},i&&{config:i});},southArrowNorthEast:function southArrowNorthEast(t,n){return _objectSpread({top:s(t),left:t.left+t.width/2-n.width+e,name:"arrow_ne"},i&&{config:i});},southEastArrowNorthWest:function southEastArrowNorthWest(t){return _objectSpread({top:s(t),left:t.right-e,name:"arrow_nw"},i&&{config:i});},southEastArrowNorthMiddleWest:function southEastArrowNorthMiddleWest(t,n){return _objectSpread({top:s(t),left:t.right-.25*n.width-e,name:"arrow_nmw"},i&&{config:i});},southEastArrowNorth:function southEastArrowNorth(t,e){return _objectSpread({top:s(t),left:t.right-e.width/2,name:"arrow_n"},i&&{config:i});},southEastArrowNorthMiddleEast:function southEastArrowNorthMiddleEast(t,n){return _objectSpread({top:s(t),left:t.right-.75*n.width+e,name:"arrow_nme"},i&&{config:i});},southEastArrowNorthEast:function southEastArrowNorthEast(t,n){return _objectSpread({top:s(t),left:t.right-n.width+e,name:"arrow_ne"},i&&{config:i});},westArrowEast:function westArrowEast(t,e){return _objectSpread({top:t.top+t.height/2-e.height/2,left:t.left-e.width-n,name:"arrow_e"},i&&{config:i});},eastArrowWest:function eastArrowWest(t,e){return _objectSpread({top:t.top+t.height/2-e.height/2,left:t.right+n,name:"arrow_w"},i&&{config:i});},viewportStickyNorth:function viewportStickyNorth(t,e,n){return t.getIntersection(n)?{top:n.top+o,left:t.left+t.width/2-e.width/2,name:"arrowless",config:_objectSpread({withArrow:!1},i)}:null;}};function r(t,e){return t.top-e.height-n;}function s(t){return t.bottom+n;}}Rg.arrowSideOffset=25,Rg.arrowHeightOffset=10,Rg.stickyVerticalOffset=20,Rg._getOptimalPosition=Xo,Rg.defaultPositions=Fg();var Vg=n(9948),Hg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Vg.Z,Hg);Vg.Z.locals;var Ug="ck-tooltip";var Wg=/*#__PURE__*/function(_Bo4){_inherits(Wg,_Bo4);var _super112=_createSuper(Wg);function Wg(t){var _this170;_classCallCheck(this,Wg);if(_this170=_super112.call(this),_this170._currentElementWithTooltip=null,_this170._currentTooltipPosition=null,_this170._resizeObserver=null,Wg._editors.add(t),Wg._instance)return _possibleConstructorReturn(_this170,Wg._instance);Wg._instance=_assertThisInitialized(_this170),_this170.tooltipTextView=new ji(t.locale),_this170.tooltipTextView.set("text",""),_this170.tooltipTextView.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:_this170.tooltipTextView.bindTemplate.to("text")}]}),_this170.balloonPanelView=new Rg(t.locale),_this170.balloonPanelView.class=Ug,_this170.balloonPanelView.content.add(_this170.tooltipTextView),_this170._pinTooltipDebounced=Rl(_this170._pinTooltip,600),_this170.listenTo(Lo.document,"mouseenter",_this170._onEnterOrFocus.bind(_assertThisInitialized(_this170)),{useCapture:!0}),_this170.listenTo(Lo.document,"mouseleave",_this170._onLeaveOrBlur.bind(_assertThisInitialized(_this170)),{useCapture:!0}),_this170.listenTo(Lo.document,"focus",_this170._onEnterOrFocus.bind(_assertThisInitialized(_this170)),{useCapture:!0}),_this170.listenTo(Lo.document,"blur",_this170._onLeaveOrBlur.bind(_assertThisInitialized(_this170)),{useCapture:!0}),_this170.listenTo(Lo.document,"scroll",_this170._onScroll.bind(_assertThisInitialized(_this170)),{useCapture:!0}),_this170._watchdogExcluded=!0;return _possibleConstructorReturn(_this170);}_createClass(Wg,[{key:"destroy",value:function destroy(t){var e=t.ui.view&&t.ui.view.body;Wg._editors.delete(t),this.stopListening(t.ui),e&&e.has(this.balloonPanelView)&&e.remove(this.balloonPanelView),Wg._editors.size||(this._unpinTooltip(),this.balloonPanelView.destroy(),this.stopListening(),Wg._instance=null);}},{key:"_onEnterOrFocus",value:function _onEnterOrFocus(t,_ref58){var e=_ref58.target;var n=Gg(e);var o;n&&n!==this._currentElementWithTooltip&&(this._unpinTooltip(),this._pinTooltipDebounced(n,{text:(o=n).dataset.ckeTooltipText,position:o.dataset.ckeTooltipPosition||"s",cssClass:o.dataset.ckeTooltipClass||""}));}},{key:"_onLeaveOrBlur",value:function _onLeaveOrBlur(t,_ref59){var e=_ref59.target,n=_ref59.relatedTarget;if("mouseleave"===t.name){if(!xo(e))return;if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;var _t275=Gg(e),_o134=Gg(n);_t275&&_t275!==_o134&&this._unpinTooltip();}else{if(this._currentElementWithTooltip&&e!==this._currentElementWithTooltip)return;this._unpinTooltip();}}},{key:"_onScroll",value:function _onScroll(t,_ref60){var e=_ref60.target;this._currentElementWithTooltip&&(e.contains(this.balloonPanelView.element)&&e.contains(this._currentElementWithTooltip)||this._unpinTooltip());}},{key:"_pinTooltip",value:function _pinTooltip(t,_ref61){var _this171=this;var e=_ref61.text,n=_ref61.position,o=_ref61.cssClass;var i=Ei(Wg._editors.values()).ui.view.body;i.has(this.balloonPanelView)||i.add(this.balloonPanelView),this.tooltipTextView.text=e,this.balloonPanelView.pin({target:t,positions:Wg.getPositioningFunctions(n)}),this._resizeObserver=new qo(t,function(){Jo(t)||_this171._unpinTooltip();}),this.balloonPanelView.class=[Ug,o].filter(function(t){return t;}).join(" ");var _iterator318=_createForOfIteratorHelper(Wg._editors),_step318;try{for(_iterator318.s();!(_step318=_iterator318.n()).done;){var _t276=_step318.value;this.listenTo(_t276.ui,"update",this._updateTooltipPosition.bind(this),{priority:"low"});}}catch(err){_iterator318.e(err);}finally{_iterator318.f();}this._currentElementWithTooltip=t,this._currentTooltipPosition=n;}},{key:"_unpinTooltip",value:function _unpinTooltip(){this._pinTooltipDebounced.cancel(),this.balloonPanelView.unpin();var _iterator319=_createForOfIteratorHelper(Wg._editors),_step319;try{for(_iterator319.s();!(_step319=_iterator319.n()).done;){var _t277=_step319.value;this.stopListening(_t277.ui,"update");}}catch(err){_iterator319.e(err);}finally{_iterator319.f();}this._currentElementWithTooltip=null,this._currentTooltipPosition=null,this._resizeObserver&&this._resizeObserver.destroy();}},{key:"_updateTooltipPosition",value:function _updateTooltipPosition(){Jo(this._currentElementWithTooltip)?this.balloonPanelView.pin({target:this._currentElementWithTooltip,positions:Wg.getPositioningFunctions(this._currentTooltipPosition)}):this._unpinTooltip();}}],[{key:"getPositioningFunctions",value:function getPositioningFunctions(t){var e=Wg.defaultBalloonPositions;return{s:[e.southArrowNorth,e.southArrowNorthEast,e.southArrowNorthWest],n:[e.northArrowSouth],e:[e.eastArrowWest],w:[e.westArrowEast],sw:[e.southArrowNorthEast],se:[e.southArrowNorthWest]}[t];}}]);return Wg;}(Bo());function Gg(t){return xo(t)?t.closest("[data-cke-tooltip-text]:not([data-cke-tooltip-disabled])"):null;}Wg.defaultBalloonPositions=Fg({heightOffset:5,sideOffset:13}),Wg._editors=new Set(),Wg._instance=null;var qg=/*#__PURE__*/function(_$11){_inherits(qg,_$11);var _super113=_createSuper(qg);function qg(t){var _this172;_classCallCheck(this,qg);_this172=_super113.call(this),_this172.isReady=!1,_this172._editableElementsMap=new Map(),_this172._focusableToolbarDefinitions=[],_this172.editor=t,_this172.componentFactory=new yr(t),_this172.focusTracker=new Di(),_this172.tooltipManager=new Wg(t),_this172.set("viewportOffset",_this172._readViewportOffsetFromConfig()),_this172.once("ready",function(){_this172.isReady=!0;}),_this172.listenTo(t.editing.view.document,"layoutChanged",function(){return _this172.update();}),_this172._initFocusTracking();return _this172;}_createClass(qg,[{key:"element",get:function get(){return null;}},{key:"update",value:function update(){this.fire("update");}},{key:"destroy",value:function destroy(){this.stopListening(),this.focusTracker.destroy(),this.tooltipManager.destroy(this.editor);var _iterator320=_createForOfIteratorHelper(this._editableElementsMap.values()),_step320;try{for(_iterator320.s();!(_step320=_iterator320.n()).done;){var _t278=_step320.value;_t278.ckeditorInstance=null,this.editor.keystrokes.stopListening(_t278);}}catch(err){_iterator320.e(err);}finally{_iterator320.f();}this._editableElementsMap=new Map(),this._focusableToolbarDefinitions=[];}},{key:"setEditableElement",value:function setEditableElement(t,e){var _this173=this;this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor),this.focusTracker.add(e);var n=function n(){_this173.editor.editing.view.getDomRoot(t)||_this173.editor.keystrokes.listenTo(e);};this.isReady?n():this.once("ready",n);}},{key:"removeEditableElement",value:function removeEditableElement(t){var e=this._editableElementsMap.get(t);e&&(this._editableElementsMap.delete(t),this.editor.keystrokes.stopListening(e),this.focusTracker.remove(e),e.ckeditorInstance=null);}},{key:"getEditableElement",value:function getEditableElement(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:"main";return this._editableElementsMap.get(t);}},{key:"getEditableElementsNames",value:function getEditableElementsNames(){return this._editableElementsMap.keys();}},{key:"addToolbar",value:function addToolbar(t){var _this174=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};t.isRendered?(this.focusTracker.add(t.element),this.editor.keystrokes.listenTo(t.element)):t.once("render",function(){_this174.focusTracker.add(t.element),_this174.editor.keystrokes.listenTo(t.element);}),this._focusableToolbarDefinitions.push({toolbarView:t,options:e});}},{key:"_editableElements",get:function get(){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 _readViewportOffsetFromConfig(){var t=this.editor,e=t.config.get("ui.viewportOffset");if(e)return e;var n=t.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 _initFocusTracking(){var _this175=this;var t=this.editor,e=t.editing.view;var n,o;t.keystrokes.set("Alt+F10",function(t,i){var r=_this175.focusTracker.focusedElement;Array.from(_this175._editableElementsMap.values()).includes(r)&&!Array.from(e.domRoots.values()).includes(r)&&(n=r);var s=_this175._getCurrentFocusedToolbarDefinition();s&&o||(o=_this175._getFocusableCandidateToolbarDefinitions());for(var _t279=0;_t279<o.length;_t279++){var _t280=o.shift();if(o.push(_t280),_t280!==s&&_this175._focusFocusableCandidateToolbar(_t280)){s&&s.options.afterBlur&&s.options.afterBlur();break;}}i();}),t.keystrokes.set("Esc",function(e,o){var i=_this175._getCurrentFocusedToolbarDefinition();i&&(n?(n.focus(),n=null):t.editing.view.focus(),i.options.afterBlur&&i.options.afterBlur(),o());});}},{key:"_getFocusableCandidateToolbarDefinitions",value:function _getFocusableCandidateToolbarDefinitions(){var t=[];var _iterator321=_createForOfIteratorHelper(this._focusableToolbarDefinitions),_step321;try{for(_iterator321.s();!(_step321=_iterator321.n()).done;){var _e220=_step321.value;var _n219=_e220.toolbarView,_o135=_e220.options;(Jo(_n219.element)||_o135.beforeFocus)&&t.push(_e220);}}catch(err){_iterator321.e(err);}finally{_iterator321.f();}return t.sort(function(t,e){return $g(t)-$g(e);}),t;}},{key:"_getCurrentFocusedToolbarDefinition",value:function _getCurrentFocusedToolbarDefinition(){var _iterator322=_createForOfIteratorHelper(this._focusableToolbarDefinitions),_step322;try{for(_iterator322.s();!(_step322=_iterator322.n()).done;){var _t281=_step322.value;if(_t281.toolbarView.element&&_t281.toolbarView.element.contains(this.focusTracker.focusedElement))return _t281;}}catch(err){_iterator322.e(err);}finally{_iterator322.f();}return null;}},{key:"_focusFocusableCandidateToolbar",value:function _focusFocusableCandidateToolbar(t){var e=t.toolbarView,n=t.options.beforeFocus;return n&&n(),!!Jo(e.element)&&(e.focus(),!0);}}]);return qg;}($());function $g(t){var e=t.toolbarView,n=t.options;var o=10;return Jo(e.element)&&o--,n.isContextual&&o--,o;}var Kg=n(4547),Yg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Kg.Z,Yg);Kg.Z.locals;var Qg=/*#__PURE__*/function(_ji15){_inherits(Qg,_ji15);var _super114=_createSuper(Qg);function Qg(t){var _this176;_classCallCheck(this,Qg);_this176=_super114.call(this,t),_this176.body=new ar(t);return _this176;}_createClass(Qg,[{key:"render",value:function render(){_get(_getPrototypeOf(Qg.prototype),"render",this).call(this),this.body.attachToDom();}},{key:"destroy",value:function destroy(){return this.body.detachFromDom(),_get(_getPrototypeOf(Qg.prototype),"destroy",this).call(this);}}]);return Qg;}(ji);var Zg=n(2751),Jg={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Zg.Z,Jg);Zg.Z.locals;var Xg=/*#__PURE__*/function(_ji16){_inherits(Xg,_ji16);var _super115=_createSuper(Xg);function Xg(t){var _this177;_classCallCheck(this,Xg);_this177=_super115.call(this,t),_this177.set("text",void 0),_this177.set("for",void 0),_this177.id="ck-editor__label_".concat(k());var e=_this177.bindTemplate;_this177.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:_this177.id,for:e.to("for")},children:[{text:e.to("text")}]});return _this177;}return _createClass(Xg);}(ji);var tm=/*#__PURE__*/function(_Qg){_inherits(tm,_Qg);var _super116=_createSuper(tm);function tm(t){var _this178;_classCallCheck(this,tm);_this178=_super116.call(this,t),_this178.top=_this178.createCollection(),_this178.main=_this178.createCollection(),_this178._voiceLabelView=_this178._createVoiceLabel(),_this178.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":_this178._voiceLabelView.id},children:[_this178._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:_this178.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:_this178.main}]});return _this178;}_createClass(tm,[{key:"_createVoiceLabel",value:function _createVoiceLabel(){var t=this.t,e=new Xg();return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e;}}]);return tm;}(Qg);var em=/*#__PURE__*/function(_ji17){_inherits(em,_ji17);var _super117=_createSuper(em);function em(t,e,n){var _this179;_classCallCheck(this,em);_this179=_super117.call(this,t),_this179.name=null,_this179.setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),_this179.set("isFocused",!1),_this179._editableElement=n,_this179._hasExternalElement=!!_this179._editableElement,_this179._editingView=e;return _this179;}_createClass(em,[{key:"render",value:function render(){var _this180=this;_get(_getPrototypeOf(em.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",function(){return _this180._updateIsFocusedClasses();}),this._updateIsFocusedClasses();}},{key:"destroy",value:function destroy(){this._hasExternalElement&&this.template.revert(this._editableElement),_get(_getPrototypeOf(em.prototype),"destroy",this).call(this);}},{key:"hasExternalElement",get:function get(){return this._hasExternalElement;}},{key:"_updateIsFocusedClasses",value:function _updateIsFocusedClasses(){var t=this._editingView;function e(e){t.change(function(n){var o=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",o),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",o);});}t.isRenderingInProgress?function n(o){t.once("change:isRenderingInProgress",function(t,i,r){r?n(o):e(o);});}(this):e(this);}}]);return em;}(ji);var nm=/*#__PURE__*/function(_em){_inherits(nm,_em);var _super118=_createSuper(nm);function nm(t,e,n){var _this181;var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};_classCallCheck(this,nm);_this181=_super118.call(this,t,e,n);var i=t.t;_this181.extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),_this181._generateLabel=o.label||function(){return i("Editor editing area: %0",_this181.name);};return _this181;}_createClass(nm,[{key:"render",value:function render(){var _this182=this;_get(_getPrototypeOf(nm.prototype),"render",this).call(this);var t=this._editingView;t.change(function(e){var n=t.document.getRoot(_this182.name);e.setAttribute("aria-label",_this182._generateLabel(_this182),n);});}}]);return nm;}(em);var om=n(5523),im={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(om.Z,im);om.Z.locals;var rm=/*#__PURE__*/function(_ji18){_inherits(rm,_ji18);var _super119=_createSuper(rm);function rm(t){var _this183;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,rm);_this183=_super119.call(this,t);var n=_this183.bindTemplate;_this183.set("label",e.label||""),_this183.set("class",e.class||null),_this183.children=_this183.createCollection(),_this183.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",n.to("class")]},children:_this183.children});var o=new ji(t);o.setTemplate({tag:"h2",attributes:{class:["ck","ck-form__header__label"]},children:[{text:n.to("label")}]}),_this183.children.add(o);return _this183;}return _createClass(rm);}(ji);var sm=n(6985),am={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(sm.Z,am);sm.Z.locals;var lm=/*#__PURE__*/function(_ji19){_inherits(lm,_ji19);var _super120=_createSuper(lm);function lm(t){var _this184;_classCallCheck(this,lm);_this184=_super120.call(this,t),_this184.set("value",void 0),_this184.set("id",void 0),_this184.set("placeholder",void 0),_this184.set("isReadOnly",!1),_this184.set("hasError",!1),_this184.set("ariaDescribedById",void 0),_this184.focusTracker=new Di(),_this184.bind("isFocused").to(_this184.focusTracker),_this184.set("isEmpty",!0),_this184.set("inputMode","text");var e=_this184.bindTemplate;_this184.setTemplate({tag:"input",attributes:{class:["ck","ck-input",e.if("isFocused","ck-input_focused"),e.if("isEmpty","ck-input-text_empty"),e.if("hasError","ck-error")],id:e.to("id"),placeholder:e.to("placeholder"),readonly:e.to("isReadOnly"),inputmode:e.to("inputMode"),"aria-invalid":e.if("hasError",!0),"aria-describedby":e.to("ariaDescribedById")},on:{input:e.to(function(){var _this185;for(var _len30=arguments.length,t=new Array(_len30),_key30=0;_key30<_len30;_key30++){t[_key30]=arguments[_key30];}(_this185=_this184).fire.apply(_this185,["input"].concat(t)),_this184._updateIsEmpty();}),change:e.to(_this184._updateIsEmpty.bind(_assertThisInitialized(_this184)))}});return _this184;}_createClass(lm,[{key:"render",value:function render(){var _this186=this;_get(_getPrototypeOf(lm.prototype),"render",this).call(this),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",function(t,e,n){_this186._setDomElementValue(n),_this186._updateIsEmpty();});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(lm.prototype),"destroy",this).call(this),this.focusTracker.destroy();}},{key:"select",value:function select(){this.element.select();}},{key:"focus",value:function focus(){this.element.focus();}},{key:"_updateIsEmpty",value:function _updateIsEmpty(){this.isEmpty=!this.element.value;}},{key:"_setDomElementValue",value:function _setDomElementValue(t){this.element.value=t||0===t?t:"";}}]);return lm;}(ji);var cm=/*#__PURE__*/function(_lm){_inherits(cm,_lm);var _super121=_createSuper(cm);function cm(t){var _this187;_classCallCheck(this,cm);_this187=_super121.call(this,t),_this187.extendTemplate({attributes:{type:"text",class:["ck-input-text"]}});return _this187;}return _createClass(cm);}(lm);var dm=n(8111),um={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(dm.Z,um);dm.Z.locals;var hm=/*#__PURE__*/function(_ji20){_inherits(hm,_ji20);var _super122=_createSuper(hm);function hm(t,e){var _this188;_classCallCheck(this,hm);_this188=_super122.call(this,t);var n="ck-labeled-field-view-".concat(k()),o="ck-labeled-field-view-status-".concat(k());_this188.fieldView=e(_assertThisInitialized(_this188),n,o),_this188.set("label",void 0),_this188.set("isEnabled",!0),_this188.set("isEmpty",!0),_this188.set("isFocused",!1),_this188.set("errorText",null),_this188.set("infoText",null),_this188.set("class",void 0),_this188.set("placeholder",void 0),_this188.labelView=_this188._createLabelView(n),_this188.statusView=_this188._createStatusView(o),_this188.fieldWrapperChildren=_this188.createCollection([_this188.fieldView,_this188.labelView]),_this188.bind("_statusText").to(_assertThisInitialized(_this188),"errorText",_assertThisInitialized(_this188),"infoText",function(t,e){return t||e;});var i=_this188.bindTemplate;_this188.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",i.to("class"),i.if("isEnabled","ck-disabled",function(t){return!t;}),i.if("isEmpty","ck-labeled-field-view_empty"),i.if("isFocused","ck-labeled-field-view_focused"),i.if("placeholder","ck-labeled-field-view_placeholder"),i.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:_this188.fieldWrapperChildren},_this188.statusView]});return _this188;}_createClass(hm,[{key:"_createLabelView",value:function _createLabelView(t){var e=new Xg(this.locale);return e.for=t,e.bind("text").to(this,"label"),e;}},{key:"_createStatusView",value:function _createStatusView(t){var e=new ji(this.locale),n=this.bindTemplate;return e.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view__status",n.if("errorText","ck-labeled-field-view__status_error"),n.if("_statusText","ck-hidden",function(t){return!t;})],id:t,role:n.if("errorText","alert")},children:[{text:n.to("_statusText")}]}),e;}},{key:"focus",value:function focus(){this.fieldView.focus();}}]);return hm;}(ji);function gm(t,e,n){var o=new cm(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isReadOnly").to(t,"isEnabled",function(t){return!t;}),o.bind("hasError").to(t,"errorText",function(t){return!!t;}),o.on("input",function(){t.errorText=null;}),t.bind("isEmpty","isFocused","placeholder").to(o),o;}function mm(t,e,n){var o=Tg(t.locale);return o.set({id:e,ariaDescribedById:n}),o.bind("isEnabled").to(t),o;}var pm=/*#__PURE__*/function(_$r2){_inherits(pm,_$r2);var _super123=_createSuper(pm);function pm(){_classCallCheck(this,pm);return _super123.apply(this,arguments);}_createClass(pm,[{key:"init",value:function init(){this.on("show:warning",function(t,e){window.alert(e.message);},{priority:"lowest"});}},{key:"showSuccess",value:function showSuccess(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title});}},{key:"showInfo",value:function showInfo(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title});}},{key:"showWarning",value:function showWarning(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title});}},{key:"_showNotification",value:function _showNotification(t){var e=t.namespace?"show:".concat(t.type,":").concat(t.namespace):"show:".concat(t.type);this.fire(e,{message:t.message,type:t.type,title:t.title||""});}}],[{key:"pluginName",get:function get(){return"Notification";}}]);return pm;}($r);var fm=/*#__PURE__*/function(_$12){_inherits(fm,_$12);var _super124=_createSuper(fm);function fm(t,e){var _this189;_classCallCheck(this,fm);_this189=_super124.call(this),e&&Cl(_assertThisInitialized(_this189),e),t&&_this189.set(t);return _this189;}return _createClass(fm);}($());var km=n(1757),bm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(km.Z,bm);km.Z.locals;var wm=n(3553),Am={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(wm.Z,Am);wm.Z.locals;var _m=Ko("px");var Cm=/*#__PURE__*/function(_Fr){_inherits(Cm,_Fr);var _super125=_createSuper(Cm);function Cm(t){var _this190;_classCallCheck(this,Cm);_this190=_super125.call(this,t),_this190._viewToStack=new Map(),_this190._idToStack=new Map(),_this190._view=null,_this190._rotatorView=null,_this190._fakePanelsView=null,_this190.positionLimiter=function(){var t=_this190.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null;},_this190.set("visibleView",null),_this190.set("_numberOfStacks",0),_this190.set("_singleViewMode",!1);return _this190;}_createClass(Cm,[{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Cm.prototype),"destroy",this).call(this),this._view&&this._view.destroy(),this._rotatorView&&this._rotatorView.destroy(),this._fakePanelsView&&this._fakePanelsView.destroy();}},{key:"view",get:function get(){return this._view||this._createPanelView(),this._view;}},{key:"hasView",value:function hasView(t){return Array.from(this._viewToStack.keys()).includes(t);}},{key:"add",value:function add(t){if(this._view||this._createPanelView(),this.hasView(t.view))throw new _("contextualballoon-add-view-exist",[this,t]);var e=t.stackId||"main";if(!this._idToStack.has(e))return this._idToStack.set(e,new Map([[t.view,t]])),this._viewToStack.set(t.view,this._idToStack.get(e)),this._numberOfStacks=this._idToStack.size,void(this._visibleStack&&!t.singleViewMode||this.showStack(e));var n=this._idToStack.get(e);t.singleViewMode&&this.showStack(e),n.set(t.view,t),this._viewToStack.set(t.view,n),n===this._visibleStack&&this._showView(t);}},{key:"remove",value:function remove(t){if(!this.hasView(t))throw new _("contextualballoon-remove-view-not-exist",[this,t]);var e=this._viewToStack.get(t);this._singleViewMode&&this.visibleView===t&&(this._singleViewMode=!1),this.visibleView===t&&(1===e.size?this._idToStack.size>1?this._showNextStack():(this.view.hide(),this.visibleView=null,this._rotatorView.hideView()):this._showView(Array.from(e.values())[e.size-2])),1===e.size?(this._idToStack.delete(this._getStackId(e)),this._numberOfStacks=this._idToStack.size):e.delete(t),this._viewToStack.delete(t);}},{key:"updatePosition",value:function updatePosition(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition();}},{key:"showStack",value:function showStack(t){this.visibleStack=t;var e=this._idToStack.get(t);if(!e)throw new _("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop());}},{key:"_createPanelView",value:function _createPanelView(){this._view=new Rg(this.editor.locale),this.editor.ui.view.body.add(this._view),this.editor.ui.focusTracker.add(this._view.element),this._rotatorView=this._createRotatorView(),this._fakePanelsView=this._createFakePanelsView();}},{key:"_visibleStack",get:function get(){return this._viewToStack.get(this.visibleView);}},{key:"_getStackId",value:function _getStackId(t){return Array.from(this._idToStack.entries()).find(function(e){return e[1]===t;})[0];}},{key:"_showNextStack",value:function _showNextStack(){var t=Array.from(this._idToStack.values());var e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]));}},{key:"_showPrevStack",value:function _showPrevStack(){var t=Array.from(this._idToStack.values());var e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]));}},{key:"_createRotatorView",value:function _createRotatorView(){var _this191=this;var t=new vm(this.editor.locale),e=this.editor.locale.t;return this.view.content.add(t),t.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",function(t,e){return!e&&t>1;}),t.on("change:isNavigationVisible",function(){return _this191.updatePosition();},{priority:"low"}),t.bind("counter").to(this,"visibleView",this,"_numberOfStacks",function(t,n){if(n<2)return"";var o=Array.from(_this191._idToStack.values()).indexOf(_this191._visibleStack)+1;return e("%0 of %1",[o,n]);}),t.buttonNextView.on("execute",function(){t.focusTracker.isFocused&&_this191.editor.editing.view.focus(),_this191._showNextStack();}),t.buttonPrevView.on("execute",function(){t.focusTracker.isFocused&&_this191.editor.editing.view.focus(),_this191._showPrevStack();}),t;}},{key:"_createFakePanelsView",value:function _createFakePanelsView(){var t=new ym(this.editor.locale,this.view);return t.bind("numberOfPanels").to(this,"_numberOfStacks",this,"_singleViewMode",function(t,e){return!e&&t>=2?Math.min(t-1,2):0;}),t.listenTo(this.view,"change:top",function(){return t.updatePosition();}),t.listenTo(this.view,"change:left",function(){return t.updatePosition();}),this.editor.ui.view.body.add(t),t;}},{key:"_showView",value:function _showView(_ref62){var t=_ref62.view,_ref62$balloonClassNa=_ref62.balloonClassName,e=_ref62$balloonClassNa===void 0?"":_ref62$balloonClassNa,_ref62$withArrow=_ref62.withArrow,n=_ref62$withArrow===void 0?!0:_ref62$withArrow,_ref62$singleViewMode=_ref62.singleViewMode,o=_ref62$singleViewMode===void 0?!1:_ref62$singleViewMode;this.view.class=e,this.view.withArrow=n,this._rotatorView.showView(t),this.visibleView=t,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),o&&(this._singleViewMode=!0);}},{key:"_getBalloonPosition",value:function _getBalloonPosition(){var t=Array.from(this._visibleStack.values()).pop().position;return t&&(t.limiter||(t=Object.assign({},t,{limiter:this.positionLimiter})),t=Object.assign({},t,{viewportOffsetConfig:this.editor.ui.viewportOffset})),t;}}],[{key:"pluginName",get:function get(){return"ContextualBalloon";}}]);return Cm;}(Fr);var vm=/*#__PURE__*/function(_ji21){_inherits(vm,_ji21);var _super126=_createSuper(vm);function vm(t){var _this192;_classCallCheck(this,vm);_this192=_super126.call(this,t);var e=t.t,n=_this192.bindTemplate;_this192.set("isNavigationVisible",!0),_this192.focusTracker=new Di(),_this192.buttonPrevView=_this192._createButtonView(e("Previous"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.463 5.187a.888.888 0 1 1 1.254 1.255L9.16 10l3.557 3.557a.888.888 0 1 1-1.254 1.255L7.26 10.61a.888.888 0 0 1 .16-1.382l4.043-4.042z"/></svg>'),_this192.buttonNextView=_this192._createButtonView(e("Next"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.537 14.813a.888.888 0 1 1-1.254-1.255L10.84 10 7.283 6.442a.888.888 0 1 1 1.254-1.255L12.74 9.39a.888.888 0 0 1-.16 1.382l-4.043 4.042z"/></svg>'),_this192.content=_this192.createCollection(),_this192.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",n.to("isNavigationVisible",function(t){return t?"":"ck-hidden";})]},children:[_this192.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:n.to("counter")}]},_this192.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:_this192.content}]});return _this192;}_createClass(vm,[{key:"render",value:function render(){_get(_getPrototypeOf(vm.prototype),"render",this).call(this),this.focusTracker.add(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(vm.prototype),"destroy",this).call(this),this.focusTracker.destroy();}},{key:"showView",value:function showView(t){this.hideView(),this.content.add(t);}},{key:"hideView",value:function hideView(){this.content.clear();}},{key:"_createButtonView",value:function _createButtonView(t,e){var n=new gr(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n;}}]);return vm;}(ji);var ym=/*#__PURE__*/function(_ji22){_inherits(ym,_ji22);var _super127=_createSuper(ym);function ym(t,e){var _this193;_classCallCheck(this,ym);_this193=_super127.call(this,t);var n=_this193.bindTemplate;_this193.set("top",0),_this193.set("left",0),_this193.set("height",0),_this193.set("width",0),_this193.set("numberOfPanels",0),_this193.content=_this193.createCollection(),_this193._balloonPanelView=e,_this193.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",n.to("numberOfPanels",function(t){return t?"":"ck-hidden";})],style:{top:n.to("top",_m),left:n.to("left",_m),width:n.to("width",_m),height:n.to("height",_m)}},children:_this193.content}),_this193.on("change:numberOfPanels",function(t,e,n,o){n>o?_this193._addPanels(n-o):_this193._removePanels(o-n),_this193.updatePosition();});return _this193;}_createClass(ym,[{key:"_addPanels",value:function _addPanels(t){for(;t--;){var _t282=new ji();_t282.setTemplate({tag:"div"}),this.content.add(_t282),this.registerChild(_t282);}}},{key:"_removePanels",value:function _removePanels(t){for(;t--;){var _t283=this.content.last;this.content.remove(_t283),this.deregisterChild(_t283),_t283.destroy();}}},{key:"updatePosition",value:function updatePosition(){if(this.numberOfPanels){var _this$_balloonPanelVi=this._balloonPanelView,_t284=_this$_balloonPanelVi.top,_e221=_this$_balloonPanelVi.left,_Ho=new Ho(this._balloonPanelView.element),_n220=_Ho.width,_o136=_Ho.height;Object.assign(this,{top:_t284,left:_e221,width:_n220,height:_o136});}}}]);return ym;}(ji);var xm=n(3609),Em={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(xm.Z,Em);xm.Z.locals;var Dm=Ko("px");var Tm=/*#__PURE__*/function(_ji23){_inherits(Tm,_ji23);var _super128=_createSuper(Tm);function Tm(t){var _this194;_classCallCheck(this,Tm);_this194=_super128.call(this,t);var e=_this194.bindTemplate;_this194.set("isActive",!1),_this194.set("isSticky",!1),_this194.set("limiterElement",null),_this194.set("limiterBottomOffset",50),_this194.set("viewportTopOffset",0),_this194.set("_marginLeft",null),_this194.set("_isStickyToTheLimiter",!1),_this194.set("_hasViewportTopOffset",!1),_this194.content=_this194.createCollection(),_this194._contentPanelPlaceholder=new Fi({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:e.to("isSticky",function(t){return t?"block":"none";}),height:e.to("isSticky",function(t){return t?Dm(_this194._panelRect.height):null;})}}}).render(),_this194._contentPanel=new Fi({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",e.if("isSticky","ck-sticky-panel__content_sticky"),e.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:e.to("isSticky",function(t){return t?Dm(_this194._contentPanelPlaceholder.getBoundingClientRect().width):null;}),top:e.to("_hasViewportTopOffset",function(t){return t?Dm(_this194.viewportTopOffset):null;}),bottom:e.to("_isStickyToTheLimiter",function(t){return t?Dm(_this194.limiterBottomOffset):null;}),marginLeft:e.to("_marginLeft")}},children:_this194.content}).render(),_this194.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[_this194._contentPanelPlaceholder,_this194._contentPanel]});return _this194;}_createClass(Tm,[{key:"render",value:function render(){var _this195=this;_get(_getPrototypeOf(Tm.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(Lo.window,"scroll",function(){_this195._checkIfShouldBeSticky();}),this.listenTo(this,"change:isActive",function(){_this195._checkIfShouldBeSticky();});}},{key:"_checkIfShouldBeSticky",value:function _checkIfShouldBeSticky(){var t=this._panelRect=this._contentPanel.getBoundingClientRect();var e;this.limiterElement?(e=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&e.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<e.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=e.bottom<t.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:Dm(-Lo.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null);}}]);return Tm;}(ji);Ko("px");var Sm=n(6706),Im={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Sm.Z,Im);Sm.Z.locals,Ko("px");Ko("px");var Mm=dg.pilcrow;var Bm=/*#__PURE__*/function(_qg){_inherits(Bm,_qg);var _super129=_createSuper(Bm);function Bm(t,e){var _this196;_classCallCheck(this,Bm);_this196=_super129.call(this,t),_this196.view=e,_this196._toolbarConfig=jr(t.config.get("toolbar")),_this196._elementReplacer=new X();return _this196;}_createClass(Bm,[{key:"element",get:function get(){return this.view.element;}},{key:"init",value:function init(t){var e=this.editor,n=this.view,o=e.editing.view,i=n.editable,r=o.document.getRoot();i.name=r.rootName,n.render();var s=i.element;this.setEditableElement(i.name,s),n.editable.bind("isFocused").to(this.focusTracker),o.attachDomRoot(s),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready");}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Bm.prototype),"destroy",this).call(this);var t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy();}},{key:"_initToolbar",value:function _initToolbar(){var t=this.view;t.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),t.stickyPanel.limiterElement=t.element,t.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",function(_ref63){var t=_ref63.top;return t||0;}),t.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),this.addToolbar(t.toolbar);}},{key:"_initPlaceholder",value:function _initPlaceholder(){var t=this.editor,e=t.editing.view,n=e.document.getRoot(),o=t.sourceElement;var i;var r=t.config.get("placeholder");r&&(i="string"==typeof r?r:r[this.view.editable.name]),!i&&o&&"textarea"===o.tagName.toLowerCase()&&(i=o.getAttribute("placeholder")),i&&Zr({view:e,element:n,text:i,isDirectHost:!1,keepOnFocus:!0});}}]);return Bm;}(qg);var Nm=n(3638),zm={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Nm.Z,zm);Nm.Z.locals;var Pm=/*#__PURE__*/function(_tm){_inherits(Pm,_tm);var _super130=_createSuper(Pm);function Pm(t,e){var _this197;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};_classCallCheck(this,Pm);_this197=_super130.call(this,t),_this197.stickyPanel=new Tm(t),_this197.toolbar=new pg(t,{shouldGroupWhenFull:n.shouldToolbarGroupWhenFull}),_this197.editable=new nm(t,e);return _this197;}_createClass(Pm,[{key:"render",value:function render(){_get(_getPrototypeOf(Pm.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable);}}]);return Pm;}(tm);var Lm=/*#__PURE__*/function(){function Lm(t){var _this198=this;_classCallCheck(this,Lm);if(this.crashes=[],this.state="initializing",this._now=Date.now,this.crashes=[],this._crashNumberLimit="number"==typeof t.crashNumberLimit?t.crashNumberLimit:3,this._minimumNonErrorTimePeriod="number"==typeof t.minimumNonErrorTimePeriod?t.minimumNonErrorTimePeriod:5e3,this._boundErrorHandler=function(t){var e="error"in t?t.error:t.reason;e instanceof Error&&_this198._handleError(e,t);},this._listeners={},!this._restart)throw new Error("The Watchdog class was split into the abstract `Watchdog` class and the `EditorWatchdog` class. Please, use `EditorWatchdog` if you have used the `Watchdog` class previously.");}_createClass(Lm,[{key:"destroy",value:function destroy(){this._stopErrorHandling(),this._listeners={};}},{key:"on",value:function on(t,e){this._listeners[t]||(this._listeners[t]=[]),this._listeners[t].push(e);}},{key:"off",value:function off(t,e){this._listeners[t]=this._listeners[t].filter(function(t){return t!==e;});}},{key:"_fire",value:function _fire(t){var n=this._listeners[t]||[];for(var _len31=arguments.length,e=new Array(_len31>1?_len31-1:0),_key31=1;_key31<_len31;_key31++){e[_key31-1]=arguments[_key31];}var _iterator323=_createForOfIteratorHelper(n),_step323;try{for(_iterator323.s();!(_step323=_iterator323.n()).done;){var _t285=_step323.value;_t285.apply(this,[null].concat(e));}}catch(err){_iterator323.e(err);}finally{_iterator323.f();}}},{key:"_startErrorHandling",value:function _startErrorHandling(){window.addEventListener("error",this._boundErrorHandler),window.addEventListener("unhandledrejection",this._boundErrorHandler);}},{key:"_stopErrorHandling",value:function _stopErrorHandling(){window.removeEventListener("error",this._boundErrorHandler),window.removeEventListener("unhandledrejection",this._boundErrorHandler);}},{key:"_handleError",value:function _handleError(t,e){if(this._shouldReactToError(t)){this.crashes.push({message:t.message,stack:t.stack,filename:e instanceof ErrorEvent?e.filename:void 0,lineno:e instanceof ErrorEvent?e.lineno:void 0,colno:e instanceof ErrorEvent?e.colno:void 0,date:this._now()});var _n221=this._shouldRestart();this.state="crashed",this._fire("stateChange"),this._fire("error",{error:t,causesRestart:_n221}),_n221?this._restart():(this.state="crashedPermanently",this._fire("stateChange"));}}},{key:"_shouldReactToError",value:function _shouldReactToError(t){return t.is&&t.is("CKEditorError")&&void 0!==t.context&&null!==t.context&&"ready"===this.state&&this._isErrorComingFromThisItem(t);}},{key:"_shouldRestart",value:function _shouldRestart(){if(this.crashes.length<=this._crashNumberLimit)return!0;return(this.crashes[this.crashes.length-1].date-this.crashes[this.crashes.length-1-this._crashNumberLimit].date)/this._crashNumberLimit>this._minimumNonErrorTimePeriod;}}]);return Lm;}();function Om(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:new Set();var n=[t],o=new Set();var i=0;for(;n.length>i;){var _t286=n[i++];if(!o.has(_t286)&&Rm(_t286)&&!e.has(_t286))if(o.add(_t286),Symbol.iterator in _t286)try{var _iterator324=_createForOfIteratorHelper(_t286),_step324;try{for(_iterator324.s();!(_step324=_iterator324.n()).done;){var _e222=_step324.value;n.push(_e222);}}catch(err){_iterator324.e(err);}finally{_iterator324.f();}}catch(t){}else for(var _e223 in _t286)"defaultValue"!==_e223&&n.push(_t286[_e223]);}return o;}function Rm(t){var e=Object.prototype.toString.call(t),n=_typeof(t);return!("number"===n||"boolean"===n||"string"===n||"symbol"===n||"function"===n||"[object Date]"===e||"[object RegExp]"===e||"[object Module]"===e||null==t||t._watchdogExcluded||t instanceof EventTarget||t instanceof Event);}function jm(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:new Set();if(t===e&&"object"==_typeof(o=t)&&null!==o)return!0;var o;var i=Om(t,n),r=Om(e,n);var _iterator325=_createForOfIteratorHelper(i),_step325;try{for(_iterator325.s();!(_step325=_iterator325.n()).done;){var _t287=_step325.value;if(r.has(_t287))return!0;}}catch(err){_iterator325.e(err);}finally{_iterator325.f();}return!1;}var Fm=function Fm(t,e,n){var o=!0,i=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return F(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Rl(t,e,{leading:o,maxWait:e,trailing:i});};var Vm=/*#__PURE__*/function(_Lm){_inherits(Vm,_Lm);var _super131=_createSuper(Vm);function Vm(t){var _this199;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Vm);_this199=_super131.call(this,e),_this199._editor=null,_this199._throttledSave=Fm(_this199._save.bind(_assertThisInitialized(_this199)),"number"==typeof e.saveInterval?e.saveInterval:5e3),t&&(_this199._creator=function(e,n){return t.create(e,n);}),_this199._destructor=function(t){return t.destroy();};return _this199;}_createClass(Vm,[{key:"editor",get:function get(){return this._editor;}},{key:"_item",get:function get(){return this._editor;}},{key:"setCreator",value:function setCreator(t){this._creator=t;}},{key:"setDestructor",value:function setDestructor(t){this._destructor=t;}},{key:"_restart",value:function _restart(){var _this200=this;return Promise.resolve().then(function(){return _this200.state="initializing",_this200._fire("stateChange"),_this200._destroy();}).catch(function(t){console.error("An error happened during the editor destroying.",t);}).then(function(){if("string"==typeof _this200._elementOrData)return _this200.create(_this200._data,_this200._config,_this200._config.context);{var _t288=Object.assign({},_this200._config,{initialData:_this200._data});return _this200.create(_this200._elementOrData,_t288,_t288.context);}}).then(function(){_this200._fire("restart");});}},{key:"create",value:function create(){var _this201=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:this._elementOrData;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._config;var n=arguments.length>2?arguments[2]:undefined;return Promise.resolve().then(function(){return _get(_getPrototypeOf(Vm.prototype),"_startErrorHandling",_this201).call(_this201),_this201._elementOrData=t,_this201._config=_this201._cloneEditorConfiguration(e)||{},_this201._config.context=n,_this201._creator(t,_this201._config);}).then(function(t){_this201._editor=t,t.model.document.on("change:data",_this201._throttledSave),_this201._lastDocumentVersion=t.model.document.version,_this201._data=_this201._getData(),_this201.state="ready",_this201._fire("stateChange");});}},{key:"destroy",value:function destroy(){var _this202=this;return Promise.resolve().then(function(){return _this202.state="destroyed",_this202._fire("stateChange"),_get(_getPrototypeOf(Vm.prototype),"destroy",_this202).call(_this202),_this202._destroy();});}},{key:"_destroy",value:function _destroy(){var _this203=this;return Promise.resolve().then(function(){_this203._stopErrorHandling(),_this203._throttledSave.flush();var t=_this203._editor;return _this203._editor=null,t.model.document.off("change:data",_this203._throttledSave),_this203._destructor(t);});}},{key:"_save",value:function _save(){var t=this._editor.model.document.version;try{this._data=this._getData(),this._lastDocumentVersion=t;}catch(t){console.error(t,"An error happened during restoring editor data. Editor will be restored from the previously saved data.");}}},{key:"_setExcludedProperties",value:function _setExcludedProperties(t){this._excludedProps=t;}},{key:"_getData",value:function _getData(){var t={};var _iterator326=_createForOfIteratorHelper(this._editor.model.document.getRootNames()),_step326;try{for(_iterator326.s();!(_step326=_iterator326.n()).done;){var _e224=_step326.value;t[_e224]=this._editor.data.get({rootName:_e224});}}catch(err){_iterator326.e(err);}finally{_iterator326.f();}return t;}},{key:"_isErrorComingFromThisItem",value:function _isErrorComingFromThisItem(t){return jm(this._editor,t.context,this._excludedProps);}},{key:"_cloneEditorConfiguration",value:function _cloneEditorConfiguration(t){return yo(t,function(t,e){return xo(t)||"context"===e?t:void 0;});}}]);return Vm;}(Lm);var Hm=Symbol("MainQueueId");var Um=/*#__PURE__*/function(){function Um(){_classCallCheck(this,Um);this._onEmptyCallbacks=[],this._queues=new Map(),this._activeActions=0;}_createClass(Um,[{key:"onEmpty",value:function onEmpty(t){this._onEmptyCallbacks.push(t);}},{key:"enqueue",value:function enqueue(t,e){var _this204=this;var n=t===Hm;this._activeActions++,this._queues.get(t)||this._queues.set(t,Promise.resolve());var o=(n?Promise.all(this._queues.values()):Promise.all([this._queues.get(Hm),this._queues.get(t)])).then(e),i=o.catch(function(){});return this._queues.set(t,i),o.finally(function(){_this204._activeActions--,_this204._queues.get(t)===i&&0===_this204._activeActions&&_this204._onEmptyCallbacks.forEach(function(t){return t();});});}}]);return Um;}();function Wm(t){return Array.isArray(t)?t:[t];}var Gm=/*#__PURE__*/function(_ag){_inherits(Gm,_ag);var _super132=_createSuper(Gm);function Gm(t){var _this205;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Gm);if(!qm(t)&&void 0!==e.initialData)throw new _("editor-create-initial-data",null);_this205=_super132.call(this,e),void 0===_this205.config.get("initialData")&&_this205.config.set("initialData",function(t){return qm(t)?(e=t,e instanceof HTMLTextAreaElement?e.value:e.innerHTML):t;var e;}(t)),qm(t)&&(_this205.sourceElement=t),_this205.model.document.createRoot();var n=!_this205.config.get("toolbar.shouldNotGroupWhenFull"),o=new Pm(_this205.locale,_this205.editing.view,{shouldToolbarGroupWhenFull:n});_this205.ui=new Bm(_assertThisInitialized(_this205),o),function(t){if(!Ht(t.updateSourceElement))throw new _("attachtoform-missing-elementapi-interface",t);var e=t.sourceElement;if(function(t){return!!t&&"textarea"===t.tagName.toLowerCase();}(e)&&e.form){var _n222;var _o137=e.form,_i139=function _i139(){return t.updateSourceElement();};Ht(_o137.submit)&&(_n222=_o137.submit,_o137.submit=function(){_i139(),_n222.apply(_o137);}),_o137.addEventListener("submit",_i139),t.on("destroy",function(){_o137.removeEventListener("submit",_i139),_n222&&(_o137.submit=_n222);});}}(_assertThisInitialized(_this205));return _this205;}_createClass(Gm,[{key:"destroy",value:function destroy(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),_get(_getPrototypeOf(Gm.prototype),"destroy",this).call(this);}}],[{key:"create",value:function create(t){var _this206=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Promise(function(n){var o=new _this206(t,e);n(o.initPlugins().then(function(){return o.ui.init(qm(t)?t:null);}).then(function(){return o.data.init(o.config.get("initialData"));}).then(function(){return o.fire("ready");}).then(function(){return o;}));});}}]);return Gm;}(ag(lg(sg)));function qm(t){return xo(t);}Gm.Context=qr,Gm.EditorWatchdog=Vm,Gm.ContextWatchdog=/*#__PURE__*/function(_Lm2){_inherits(_class8,_Lm2);var _super133=_createSuper(_class8);function _class8(t){var _this207;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,_class8);_this207=_super133.call(this,e),_this207._watchdogs=new Map(),_this207._context=null,_this207._contextProps=new Set(),_this207._actionQueues=new Um(),_this207._watchdogConfig=e,_this207._creator=function(e){return t.create(e);},_this207._destructor=function(t){return t.destroy();},_this207._actionQueues.onEmpty(function(){"initializing"===_this207.state&&(_this207.state="ready",_this207._fire("stateChange"));});return _this207;}_createClass(_class8,[{key:"setCreator",value:function setCreator(t){this._creator=t;}},{key:"setDestructor",value:function setDestructor(t){this._destructor=t;}},{key:"context",get:function get(){return this._context;}},{key:"create",value:function create(){var _this208=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return this._actionQueues.enqueue(Hm,function(){return _this208._contextConfig=t,_this208._create();});}},{key:"getItem",value:function getItem(t){return this._getWatchdog(t)._item;}},{key:"getItemState",value:function getItemState(t){return this._getWatchdog(t).state;}},{key:"add",value:function add(t){var _this209=this;var e=Wm(t);return Promise.all(e.map(function(t){return _this209._actionQueues.enqueue(t.id,function(){if("destroyed"===_this209.state)throw new Error("Cannot add items to destroyed watchdog.");if(!_this209._context)throw new Error("Context was not created yet. You should call the `ContextWatchdog#create()` method first.");var e;if(_this209._watchdogs.has(t.id))throw new Error("Item with the given id is already added: '".concat(t.id,"'."));if("editor"===t.type)return e=new Vm(null,_this209._watchdogConfig),e.setCreator(t.creator),e._setExcludedProperties(_this209._contextProps),t.destructor&&e.setDestructor(t.destructor),_this209._watchdogs.set(t.id,e),e.on("error",function(n,_ref64){var o=_ref64.error,i=_ref64.causesRestart;_this209._fire("itemError",{itemId:t.id,error:o}),i&&_this209._actionQueues.enqueue(t.id,function(){return new Promise(function(n){var o=function o(){e.off("restart",o),_this209._fire("itemRestart",{itemId:t.id}),n();};e.on("restart",o);});});}),e.create(t.sourceElementOrData,t.config,_this209._context);throw new Error("Not supported item type: '".concat(t.type,"'."));});}));}},{key:"remove",value:function remove(t){var _this210=this;var e=Wm(t);return Promise.all(e.map(function(t){return _this210._actionQueues.enqueue(t,function(){var e=_this210._getWatchdog(t);return _this210._watchdogs.delete(t),e.destroy();});}));}},{key:"destroy",value:function destroy(){var _this211=this;return this._actionQueues.enqueue(Hm,function(){return _this211.state="destroyed",_this211._fire("stateChange"),_get(_getPrototypeOf(_class8.prototype),"destroy",_this211).call(_this211),_this211._destroy();});}},{key:"_restart",value:function _restart(){var _this212=this;return this._actionQueues.enqueue(Hm,function(){return _this212.state="initializing",_this212._fire("stateChange"),_this212._destroy().catch(function(t){console.error("An error happened during destroying the context or items.",t);}).then(function(){return _this212._create();}).then(function(){return _this212._fire("restart");});});}},{key:"_create",value:function _create(){var _this213=this;return Promise.resolve().then(function(){return _this213._startErrorHandling(),_this213._creator(_this213._contextConfig);}).then(function(t){return _this213._context=t,_this213._contextProps=Om(_this213._context),Promise.all(Array.from(_this213._watchdogs.values()).map(function(t){return t._setExcludedProperties(_this213._contextProps),t.create(void 0,void 0,_this213._context);}));});}},{key:"_destroy",value:function _destroy(){var _this214=this;return Promise.resolve().then(function(){_this214._stopErrorHandling();var t=_this214._context;return _this214._context=null,_this214._contextProps=new Set(),Promise.all(Array.from(_this214._watchdogs.values()).map(function(t){return t.destroy();})).then(function(){return _this214._destructor(t);});});}},{key:"_getWatchdog",value:function _getWatchdog(t){var e=this._watchdogs.get(t);if(!e)throw new Error("Item with the given id was not registered: ".concat(t,"."));return e;}},{key:"_isErrorComingFromThisItem",value:function _isErrorComingFromThisItem(t){var _iterator327=_createForOfIteratorHelper(this._watchdogs.values()),_step327;try{for(_iterator327.s();!(_step327=_iterator327.n()).done;){var _e225=_step327.value;if(_e225._isErrorComingFromThisItem(t))return!1;}}catch(err){_iterator327.e(err);}finally{_iterator327.f();}return jm(this._context,t.context);}}]);return _class8;}(Lm);var $m=/*#__PURE__*/function(_yl7){_inherits($m,_yl7);var _super134=_createSuper($m);function $m(t){var _this215;_classCallCheck(this,$m);_this215=_super134.call(this,t),_this215.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"];var e=_this215.document;function n(t){return function(n,o){o.preventDefault();var i=o.dropRange?[o.dropRange]:null,r=new p(e,t);e.fire(r,{dataTransfer:o.dataTransfer,method:n.name,targetRanges:i,target:o.target}),r.stop.called&&o.stopPropagation();};}_this215.listenTo(e,"paste",n("clipboardInput"),{priority:"low"}),_this215.listenTo(e,"drop",n("clipboardInput"),{priority:"low"}),_this215.listenTo(e,"dragover",n("dragging"),{priority:"low"});return _this215;}_createClass($m,[{key:"onDomEvent",value:function onDomEvent(t){var e="clipboardData"in t?t.clipboardData:t.dataTransfer,n="drop"==t.type||"paste"==t.type,o={dataTransfer:new hc(e,{cacheFiles:n})};"drop"!=t.type&&"dragover"!=t.type||(o.dropRange=function(t,e){var n=e.target.ownerDocument,o=e.clientX,i=e.clientY;var r;n.caretRangeFromPoint&&n.caretRangeFromPoint(o,i)?r=n.caretRangeFromPoint(o,i):e.rangeParent&&(r=n.createRange(),r.setStart(e.rangeParent,e.rangeOffset),r.collapse(!0));if(r)return t.domConverter.domRangeToView(r);return null;}(this.view,t)),this.fire(t.type,t,o);}}]);return $m;}(yl);var Km=["figcaption","li"];function Ym(t){var e="";if(t.is("$text")||t.is("$textProxy"))e=t.data;else if(t.is("element","img")&&t.hasAttribute("alt"))e=t.getAttribute("alt");else if(t.is("element","br"))e="\n";else{var _n223=null;var _iterator328=_createForOfIteratorHelper(t.getChildren()),_step328;try{for(_iterator328.s();!(_step328=_iterator328.n()).done;){var _o138=_step328.value;var _t289=Ym(_o138);_n223&&(_n223.is("containerElement")||_o138.is("containerElement"))&&(Km.includes(_n223.name)||Km.includes(_o138.name)?e+="\n":e+="\n\n"),e+=_t289,_n223=_o138;}}catch(err){_iterator328.e(err);}finally{_iterator328.f();}}return e;}var Qm=/*#__PURE__*/function(_Fr2){_inherits(Qm,_Fr2);var _super135=_createSuper(Qm);function Qm(){_classCallCheck(this,Qm);return _super135.apply(this,arguments);}_createClass(Qm,[{key:"init",value:function init(){this.editor.editing.view.addObserver($m),this._setupPasteDrop(),this._setupCopyCut();}},{key:"_setupPasteDrop",value:function _setupPasteDrop(){var _this216=this;var t=this.editor,e=t.model,n=t.editing.view,o=n.document;this.listenTo(o,"clipboardInput",function(e){t.isReadOnly&&e.stop();},{priority:"highest"}),this.listenTo(o,"clipboardInput",function(t,e){var o=e.dataTransfer;var i;if(e.content)i=e.content;else{var _t290="";o.getData("text/html")?_t290=function(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,function(t,e){return 1==e.length?" ":e;}).replace(/<!--[\s\S]*?-->/g,"");}(o.getData("text/html")):o.getData("text/plain")&&(((r=(r=o.getData("text/plain")).replace(/</g,"<").replace(/>/g,">").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/\t/g," ").replace(/^\s/," ").replace(/\s$/," ").replace(/\s\s/g," ")).includes("</p><p>")||r.includes("<br>"))&&(r="<p>".concat(r,"</p>")),_t290=r),i=_this216.editor.data.htmlProcessor.toView(_t290);}var r;var s=new p(_this216,"inputTransformation");_this216.fire(s,{content:i,dataTransfer:o,targetRanges:e.targetRanges,method:e.method}),s.stop.called&&t.stop(),n.scrollToTheSelection();},{priority:"low"}),this.listenTo(this,"inputTransformation",function(t,n){if(n.content.isEmpty)return;var o=_this216.editor.data.toModel(n.content,"$clipboardHolder");0!=o.childCount&&(t.stop(),e.change(function(){_this216.fire("contentInsertion",{content:o,method:n.method,dataTransfer:n.dataTransfer,targetRanges:n.targetRanges});}));},{priority:"low"}),this.listenTo(this,"contentInsertion",function(t,n){n.resultRange=e.insertContent(n.content);},{priority:"low"});}},{key:"_setupCopyCut",value:function _setupCopyCut(){var _this217=this;var t=this.editor,e=t.model.document,n=t.editing.view.document,o=function o(_o139,i){var r=i.dataTransfer;i.preventDefault();var s=t.data.toView(t.model.getSelectedContent(e.selection));n.fire("clipboardOutput",{dataTransfer:r,content:s,method:_o139.name});};this.listenTo(n,"copy",o,{priority:"low"}),this.listenTo(n,"cut",function(e,n){t.isReadOnly?n.preventDefault():o(e,n);},{priority:"low"}),this.listenTo(n,"clipboardOutput",function(n,o){o.content.isEmpty||(o.dataTransfer.setData("text/html",_this217.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",Ym(o.content))),"cut"==o.method&&t.model.deleteContent(e.selection);},{priority:"low"});}}],[{key:"pluginName",get:function get(){return"ClipboardPipeline";}}]);return Qm;}(Fr);var Zm=/*#__PURE__*/function(){function Zm(t){var _this218=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:20;_classCallCheck(this,Zm);this._batch=null,this.model=t,this._size=0,this.limit=e,this._isLocked=!1,this._changeCallback=function(t,e){e.isLocal&&e.isUndoable&&e!==_this218._batch&&_this218._reset(!0);},this._selectionChangeCallback=function(){_this218._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);}_createClass(Zm,[{key:"batch",get:function get(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch;}},{key:"size",get:function get(){return this._size;}},{key:"input",value:function input(t){this._size+=t,this._size>=this.limit&&this._reset(!0);}},{key:"isLocked",get:function get(){return this._isLocked;}},{key:"lock",value:function lock(){this._isLocked=!0;}},{key:"unlock",value:function unlock(){this._isLocked=!1;}},{key:"destroy",value:function destroy(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback);}},{key:"_reset",value:function _reset(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;this.isLocked&&!t||(this._batch=null,this._size=0);}}]);return Zm;}();var Jm=/*#__PURE__*/function(_Hr2){_inherits(Jm,_Hr2);var _super136=_createSuper(Jm);function Jm(t,e){var _this219;_classCallCheck(this,Jm);_this219=_super136.call(this,t),_this219._buffer=new Zm(t.model,e);return _this219;}_createClass(Jm,[{key:"buffer",get:function get(){return this._buffer;}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Jm.prototype),"destroy",this).call(this),this._buffer.destroy();}},{key:"execute",value:function execute(){var _this220=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document,o=t.text||"",i=o.length;var r=n.selection;t.selection?r=t.selection:t.range&&(r=e.createSelection(t.range));var s=t.resultRange;e.enqueueChange(this._buffer.batch,function(t){_this220._buffer.lock(),e.deleteContent(r),o&&e.insertContent(t.createText(o,n.selection.getAttributes()),r),s?t.setSelection(s):r.is("documentSelection")||t.setSelection(r),_this220._buffer.unlock(),_this220._buffer.input(i);});}}]);return Jm;}(Hr);var Xm=["insertText","insertReplacementText"];var tp=/*#__PURE__*/function(_l17){_inherits(tp,_l17);var _super137=_createSuper(tp);function tp(t){var _this221;_classCallCheck(this,tp);_this221=_super137.call(this,t),l.isAndroid&&Xm.push("insertCompositionText");var e=t.document;e.on("beforeinput",function(n,o){if(!_this221.isEnabled)return;var i=o.data,r=o.targetRanges,s=o.inputType,a=o.domEvent;if(!Xm.includes(s))return;var l=new p(e,"insertText");e.fire(l,new vl(t,a,{text:i,selection:t.createSelection(r)})),l.stop.called&&n.stop();}),e.on("compositionend",function(n,_ref65){var o=_ref65.data,i=_ref65.domEvent;_this221.isEnabled&&!l.isAndroid&&o&&e.fire("insertText",new vl(t,i,{text:o,selection:e.selection}));},{priority:"lowest"});return _this221;}_createClass(tp,[{key:"observe",value:function observe(){}},{key:"stopObserving",value:function stopObserving(){}}]);return tp;}(_l);var ep=/*#__PURE__*/function(_Fr3){_inherits(ep,_Fr3);var _super138=_createSuper(ep);function ep(){_classCallCheck(this,ep);return _super138.apply(this,arguments);}_createClass(ep,[{key:"init",value:function init(){var t=this.editor,e=t.model,n=t.editing.view,o=e.document.selection;n.addObserver(tp);var i=new Jm(t,t.config.get("typing.undoStep")||20);t.commands.add("insertText",i),t.commands.add("input",i),this.listenTo(n.document,"insertText",function(o,i){n.document.isComposing||i.preventDefault();var r=i.text,s=i.selection,a=i.resultRange,c=Array.from(s.getRanges()).map(function(e){return t.editing.mapper.toModelRange(e);});var d=r;if(l.isAndroid){var _t291=Array.from(c[0].getItems()).reduce(function(t,e){return t+(e.is("$textProxy")?e.data:"");},"");_t291&&(_t291.length<=d.length?d.startsWith(_t291)&&(d=d.substring(_t291.length),c[0].start=c[0].start.getShiftedBy(_t291.length)):_t291.startsWith(d)&&(c[0].start=c[0].start.getShiftedBy(d.length),d=""));}var u={text:d,selection:e.createSelection(c)};a&&(u.resultRange=t.editing.mapper.toModelRange(a)),t.execute("insertText",u);}),l.isAndroid?this.listenTo(n.document,"keydown",function(t,r){!o.isCollapsed&&229==r.keyCode&&n.document.isComposing&&np(e,i);}):this.listenTo(n.document,"compositionstart",function(){o.isCollapsed||np(e,i);});}}],[{key:"pluginName",get:function get(){return"Input";}}]);return ep;}(Fr);function np(t,e){if(!e.isEnabled)return;var n=e.buffer;n.lock(),t.enqueueChange(n.batch,function(){t.deleteContent(t.document.selection);}),n.unlock();}var op=/*#__PURE__*/function(_Hr3){_inherits(op,_Hr3);var _super139=_createSuper(op);function op(t,e){var _this222;_classCallCheck(this,op);_this222=_super139.call(this,t),_this222.direction=e,_this222._buffer=new Zm(t.model,t.config.get("typing.undoStep"));return _this222;}_createClass(op,[{key:"buffer",get:function get(){return this._buffer;}},{key:"execute",value:function execute(){var _this223=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document;e.enqueueChange(this._buffer.batch,function(o){_this223._buffer.lock();var i=o.createSelection(t.selection||n.selection),r=t.sequence||1,s=i.isCollapsed;if(i.isCollapsed&&e.modifySelection(i,{direction:_this223.direction,unit:t.unit,treatEmojiAsSingleUnit:!0}),_this223._shouldEntireContentBeReplacedWithParagraph(r))return void _this223._replaceEntireContentWithParagraph(o);if(_this223._shouldReplaceFirstBlockWithParagraph(i,r))return void _this223.editor.execute("paragraph",{selection:i});if(i.isCollapsed)return;var a=0;i.getFirstRange().getMinimalFlatRanges().forEach(function(t){a+=tt(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}));}),e.deleteContent(i,{doNotResetEntireContent:s,direction:_this223.direction}),_this223._buffer.input(a),o.setSelection(i),_this223._buffer.unlock();});}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function _shouldEntireContentBeReplacedWithParagraph(t){if(t>1)return!1;var e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n);if(!(n.isCollapsed&&n.containsEntireContent(o)))return!1;if(!e.schema.checkChild(o,"paragraph"))return!1;var i=o.getChild(0);return!i||!i.is("element","paragraph");}},{key:"_replaceEntireContentWithParagraph",value:function _replaceEntireContentWithParagraph(t){var e=this.editor.model,n=e.document.selection,o=e.schema.getLimitElement(n),i=t.createElement("paragraph");t.remove(t.createRangeIn(o)),t.insert(i,o),t.setSelection(i,0);}},{key:"_shouldReplaceFirstBlockWithParagraph",value:function _shouldReplaceFirstBlockWithParagraph(t,e){var n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;var o=t.getFirstPosition(),i=n.schema.getLimitElement(o),r=i.getChild(0);return o.parent==r&&!!t.containsEntireContent(r)&&!!n.schema.checkChild(i,"paragraph")&&"paragraph"!=r.name;}}]);return op;}(Hr);var ip="word",rp="selection",sp="backward",ap="forward",lp={deleteContent:{unit:rp,direction:sp},deleteContentBackward:{unit:"codePoint",direction:sp},deleteWordBackward:{unit:ip,direction:sp},deleteHardLineBackward:{unit:rp,direction:sp},deleteSoftLineBackward:{unit:rp,direction:sp},deleteContentForward:{unit:"character",direction:ap},deleteWordForward:{unit:ip,direction:ap},deleteHardLineForward:{unit:rp,direction:ap},deleteSoftLineForward:{unit:rp,direction:ap}};var cp=/*#__PURE__*/function(_l18){_inherits(cp,_l18);var _super140=_createSuper(cp);function cp(t){var _this224;_classCallCheck(this,cp);_this224=_super140.call(this,t);var e=t.document;var n=0;e.on("keydown",function(){n++;}),e.on("keyup",function(){n=0;}),e.on("beforeinput",function(o,i){if(!_this224.isEnabled)return;var r=i.targetRanges,s=i.domEvent,a=i.inputType,c=lp[a];if(!c)return;var d={direction:c.direction,unit:c.unit,sequence:n};d.unit==rp&&(d.selectionToRemove=t.createSelection(r[0])),"deleteContentBackward"===a&&(l.isAndroid&&(d.sequence=1),function(t){if(1!=t.length||t[0].isCollapsed)return!1;var e=t[0].getWalker({direction:"backward",singleCharacters:!0,ignoreElementEnd:!0});var n=0;var _iterator329=_createForOfIteratorHelper(e),_step329;try{for(_iterator329.s();!(_step329=_iterator329.n()).done;){var _t292=_step329.value.nextPosition;if(_t292.parent.is("$text")){var _e226=_t292.parent.data,_o140=_t292.offset;if(Ii(_e226,_o140)||Mi(_e226,_o140)||Ni(_e226,_o140))continue;n++;}else n++;if(n>1)return!0;}}catch(err){_iterator329.e(err);}finally{_iterator329.f();}return!1;}(r)&&(d.unit=rp,d.selectionToRemove=t.createSelection(r)));var u=new wa(e,"delete",r[0]);e.fire(u,new vl(t,s,d)),u.stop.called&&o.stop();}),l.isBlink&&function(t){var e=t.view,n=e.document;var o=null,i=!1;function r(t){return t==mi.backspace||t==mi.delete;}function s(t){return t==mi.backspace?sp:ap;}n.on("keydown",function(t,_ref66){var e=_ref66.keyCode;o=e,i=!1;}),n.on("keyup",function(a,_ref67){var l=_ref67.keyCode,c=_ref67.domEvent;var d=n.selection,u=t.isEnabled&&l==o&&r(l)&&!d.isCollapsed&&!i;if(o=null,u){var _t293=d.getFirstRange(),_o141=new wa(n,"delete",_t293),_i140={unit:rp,direction:s(l),selectionToRemove:d};n.fire(_o141,new vl(e,c,_i140));}}),n.on("beforeinput",function(t,_ref68){var e=_ref68.inputType;var n=lp[e];r(o)&&n&&n.direction==s(o)&&(i=!0);},{priority:"high"}),n.on("beforeinput",function(t,_ref69){var e=_ref69.inputType,n=_ref69.data;o==mi.delete&&"insertText"==e&&""==n&&t.stop();},{priority:"high"});}(_assertThisInitialized(_this224));return _this224;}_createClass(cp,[{key:"observe",value:function observe(){}},{key:"stopObserving",value:function stopObserving(){}}]);return cp;}(_l);var dp=/*#__PURE__*/function(_Fr4){_inherits(dp,_Fr4);var _super141=_createSuper(dp);function dp(){_classCallCheck(this,dp);return _super141.apply(this,arguments);}_createClass(dp,[{key:"init",value:function init(){var _this225=this;var t=this.editor,e=t.editing.view,n=e.document,o=t.model.document;e.addObserver(cp),this._undoOnBackspace=!1;var i=new op(t,"forward");t.commands.add("deleteForward",i),t.commands.add("forwardDelete",i),t.commands.add("delete",new op(t,"backward")),this.listenTo(n,"delete",function(o,i){n.isComposing||i.preventDefault();var r=i.direction,s=i.sequence,a=i.selectionToRemove,l=i.unit,c="forward"===r?"deleteForward":"delete",d={sequence:s};if("selection"==l){var _e227=Array.from(a.getRanges()).map(function(e){return t.editing.mapper.toModelRange(e);});d.selection=t.model.createSelection(_e227);}else d.unit=l;t.execute(c,d),e.scrollToTheSelection();},{priority:"low"}),this.editor.plugins.has("UndoEditing")&&(this.listenTo(n,"delete",function(e,n){_this225._undoOnBackspace&&"backward"==n.direction&&1==n.sequence&&"codePoint"==n.unit&&(_this225._undoOnBackspace=!1,t.execute("undo"),n.preventDefault(),e.stop());},{context:"$capture"}),this.listenTo(o,"change",function(){_this225._undoOnBackspace=!1;}));}},{key:"requestUndoOnBackspace",value:function requestUndoOnBackspace(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0);}}],[{key:"pluginName",get:function get(){return"Delete";}}]);return dp;}(Fr);var up=/*#__PURE__*/function(_Fr5){_inherits(up,_Fr5);var _super142=_createSuper(up);function up(){_classCallCheck(this,up);return _super142.apply(this,arguments);}_createClass(up,null,[{key:"requires",get:function get(){return[ep,dp];}},{key:"pluginName",get:function get(){return"Typing";}}]);return up;}(Fr);function hp(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce(function(t,o){return o.is("$text")||o.is("$textProxy")?t+o.data:(n=e.createPositionAfter(o),"");},""),range:e.createRange(n,t.end)};}var gp=/*#__PURE__*/function(_$13){_inherits(gp,_$13);var _super143=_createSuper(gp);function gp(t,e){var _this226;_classCallCheck(this,gp);_this226=_super143.call(this),_this226.model=t,_this226.testCallback=e,_this226._hasMatch=!1,_this226.set("isEnabled",!0),_this226.on("change:isEnabled",function(){_this226.isEnabled?_this226._startListening():(_this226.stopListening(t.document.selection),_this226.stopListening(t.document));}),_this226._startListening();return _this226;}_createClass(gp,[{key:"hasMatch",get:function get(){return this._hasMatch;}},{key:"_startListening",value:function _startListening(){var _this227=this;var t=this.model.document;this.listenTo(t.selection,"change:range",function(e,_ref70){var n=_ref70.directChange;n&&(t.selection.isCollapsed?_this227._evaluateTextBeforeSelection("selection"):_this227.hasMatch&&(_this227.fire("unmatched"),_this227._hasMatch=!1));}),this.listenTo(t,"change:data",function(t,e){!e.isUndo&&e.isLocal&&_this227._evaluateTextBeforeSelection("data",{batch:e});});}},{key:"_evaluateTextBeforeSelection",value:function _evaluateTextBeforeSelection(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.model,o=n.document.selection,i=n.createRange(n.createPositionAt(o.focus.parent,0),o.focus),_hp=hp(i,n),r=_hp.text,s=_hp.range,a=this.testCallback(r);if(!a&&this.hasMatch&&this.fire("unmatched"),this._hasMatch=!!a,a){var _n224=Object.assign(e,{text:r,range:s});"object"==_typeof(a)&&Object.assign(_n224,a),this.fire("matched:".concat(t),_n224);}}}]);return gp;}($());var mp=/*#__PURE__*/function(_Fr6){_inherits(mp,_Fr6);var _super144=_createSuper(mp);function mp(t){var _this228;_classCallCheck(this,mp);_this228=_super144.call(this,t),_this228.attributes=new Set(),_this228._overrideUid=null;return _this228;}_createClass(mp,[{key:"init",value:function init(){var _this229=this;var t=this.editor,e=t.model,n=t.editing.view,o=t.locale,i=e.document.selection;this.listenTo(n.document,"arrowKey",function(t,e){if(!i.isCollapsed)return;if(e.shiftKey||e.altKey||e.ctrlKey)return;var n=e.keyCode==mi.arrowright,r=e.keyCode==mi.arrowleft;if(!n&&!r)return;var s=o.contentLanguageDirection;var a=!1;a="ltr"===s&&n||"rtl"===s&&r?_this229._handleForwardMovement(e):_this229._handleBackwardMovement(e),!0===a&&t.stop();},{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(i,"change:range",function(t,e){_this229._isNextGravityRestorationSkipped?_this229._isNextGravityRestorationSkipped=!1:_this229._isGravityOverridden&&(!e.directChange&&bp(i.getFirstPosition(),_this229.attributes)||_this229._restoreGravity());});}},{key:"registerAttribute",value:function registerAttribute(t){this.attributes.add(t);}},{key:"_handleForwardMovement",value:function _handleForwardMovement(t){var e=this.attributes,n=this.editor.model.document.selection,o=n.getFirstPosition();return!this._isGravityOverridden&&(!o.isAtStart||!pp(n,e))&&!!bp(o,e)&&(kp(t),this._overrideGravity(),!0);}},{key:"_handleBackwardMovement",value:function _handleBackwardMovement(t){var e=this.attributes,n=this.editor.model,o=n.document.selection,i=o.getFirstPosition();return this._isGravityOverridden?(kp(t),this._restoreGravity(),fp(n,e,i),!0):i.isAtStart?!!pp(o,e)&&(kp(t),fp(n,e,i),!0):!!function(t,e){var n=t.getShiftedBy(-1);return bp(n,e);}(i,e)&&(i.isAtEnd&&!pp(o,e)&&bp(i,e)?(kp(t),fp(n,e,i),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1));}},{key:"_isGravityOverridden",get:function get(){return!!this._overrideUid;}},{key:"_overrideGravity",value:function _overrideGravity(){this._overrideUid=this.editor.model.change(function(t){return t.overrideSelectionGravity();});}},{key:"_restoreGravity",value:function _restoreGravity(){var _this230=this;this.editor.model.change(function(t){t.restoreSelectionGravity(_this230._overrideUid),_this230._overrideUid=null;});}}],[{key:"pluginName",get:function get(){return"TwoStepCaretMovement";}}]);return mp;}(Fr);function pp(t,e){var _iterator330=_createForOfIteratorHelper(e),_step330;try{for(_iterator330.s();!(_step330=_iterator330.n()).done;){var _n225=_step330.value;if(t.hasAttribute(_n225))return!0;}}catch(err){_iterator330.e(err);}finally{_iterator330.f();}return!1;}function fp(t,e,n){var o=n.nodeBefore;t.change(function(t){o?t.setSelectionAttribute(o.getAttributes()):t.removeSelectionAttribute(e);});}function kp(t){t.preventDefault();}function bp(t,e){var n=t.nodeBefore,o=t.nodeAfter;var _iterator331=_createForOfIteratorHelper(e),_step331;try{for(_iterator331.s();!(_step331=_iterator331.n()).done;){var _t294=_step331.value;var _e228=n?n.getAttribute(_t294):void 0;if((o?o.getAttribute(_t294):void 0)!==_e228)return!0;}}catch(err){_iterator331.e(err);}finally{_iterator331.f();}return!1;}var wp=/[\\^$.*+?()[\]{}|]/g,Ap=RegExp(wp.source);var _p=function _p(t){return(t=ys(t))&&Ap.test(t)?t.replace(wp,"\\$&"):t;},Cp={copyright:{from:"(c)",to:"©"},registeredTrademark:{from:"(r)",to:"®"},trademark:{from:"(tm)",to:"™"},oneHalf:{from:/(^|[^/a-z0-9])(1\/2)([^/a-z0-9])$/i,to:[null,"½",null]},oneThird:{from:/(^|[^/a-z0-9])(1\/3)([^/a-z0-9])$/i,to:[null,"⅓",null]},twoThirds:{from:/(^|[^/a-z0-9])(2\/3)([^/a-z0-9])$/i,to:[null,"⅔",null]},oneForth:{from:/(^|[^/a-z0-9])(1\/4)([^/a-z0-9])$/i,to:[null,"¼",null]},threeQuarters:{from:/(^|[^/a-z0-9])(3\/4)([^/a-z0-9])$/i,to:[null,"¾",null]},lessThanOrEqual:{from:"<=",to:"≤"},greaterThanOrEqual:{from:">=",to:"≥"},notEqual:{from:"!=",to:"≠"},arrowLeft:{from:"<-",to:"←"},arrowRight:{from:"->",to:"→"},horizontalEllipsis:{from:"...",to:"…"},enDash:{from:/(^| )(--)( )$/,to:[null,"–",null]},emDash:{from:/(^| )(---)( )$/,to:[null,"—",null]},quotesPrimary:{from:Tp('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:Tp("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:Tp("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:Tp('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:Tp('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:Tp("'"),to:[null,"‚",null,"’"]}},vp={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},yp=["symbols","mathematical","typography","quotes"];function xp(t){return"string"==typeof t?new RegExp("(".concat(_p(t),")$")):t;}function Ep(t){return"string"==typeof t?function(){return[t];}:t instanceof Array?function(){return t;}:t;}function Dp(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes();}function Tp(t){return new RegExp("(^|\\s)(".concat(t,")([^").concat(t,"]*)(").concat(t,")$"));}function Sp(t,e,n,o){return o.createRange(Ip(t,e,n,!0,o),Ip(t,e,n,!1,o));}function Ip(t,e,n,o,i){var r=t.textNode||(o?t.nodeBefore:t.nodeAfter),s=null;for(;r&&r.getAttribute(e)==n;)s=r,r=o?r.previousSibling:r.nextSibling;return s?i.createPositionAt(s,o?"before":"after"):t;}function Mp(t,e){var _iterator332,_step332,_n226;return _regeneratorRuntime().wrap(function Mp$(_context38){while(1)switch(_context38.prev=_context38.next){case 0:_iterator332=_createForOfIteratorHelper(e);_context38.prev=1;_iterator332.s();case 3:if((_step332=_iterator332.n()).done){_context38.next=11;break;}_n226=_step332.value;_context38.t0=_n226&&t.getAttributeProperties(_n226[0]).copyOnEnter;if(!_context38.t0){_context38.next=9;break;}_context38.next=9;return _n226;case 9:_context38.next=3;break;case 11:_context38.next=16;break;case 13:_context38.prev=13;_context38.t1=_context38["catch"](1);_iterator332.e(_context38.t1);case 16:_context38.prev=16;_iterator332.f();return _context38.finish(16);case 19:case"end":return _context38.stop();}},_marked3,null,[[1,13,16,19]]);}var Bp=/*#__PURE__*/function(_Hr4){_inherits(Bp,_Hr4);var _super145=_createSuper(Bp);function Bp(){_classCallCheck(this,Bp);return _super145.apply(this,arguments);}_createClass(Bp,[{key:"execute",value:function execute(){var _this231=this;this.editor.model.change(function(t){_this231.enterBlock(t),_this231.fire("afterExecute",{writer:t});});}},{key:"enterBlock",value:function enterBlock(t){var e=this.editor.model,n=e.document.selection,o=e.schema,i=n.isCollapsed,r=n.getFirstRange(),s=r.start.parent,a=r.end.parent;if(o.isLimit(s)||o.isLimit(a))return i||s!=a||e.deleteContent(n),!1;if(i){var _e229=Mp(t.model.schema,n.getAttributes());return Np(t,r.start),t.setSelectionAttribute(_e229),!0;}{var _o142=!(r.start.isAtStart&&r.end.isAtEnd),_i141=s==a;if(e.deleteContent(n,{leaveUnmerged:_o142}),_o142){if(_i141)return Np(t,n.focus),!0;t.setSelection(a,0);}}return!1;}}]);return Bp;}(Hr);function Np(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0);}var zp={insertParagraph:{isSoft:!1},insertLineBreak:{isSoft:!0}};var Pp=/*#__PURE__*/function(_l19){_inherits(Pp,_l19);var _super146=_createSuper(Pp);function Pp(t){var _this232;_classCallCheck(this,Pp);_this232=_super146.call(this,t);var e=_this232.document;var n=!1;e.on("keydown",function(t,e){n=e.shiftKey;}),e.on("beforeinput",function(o,i){if(!_this232.isEnabled)return;var r=i.inputType;l.isSafari&&n&&"insertParagraph"==r&&(r="insertLineBreak");var s=i.domEvent,a=zp[r];if(!a)return;var c=new wa(e,"enter",i.targetRanges[0]);e.fire(c,new vl(t,s,{isSoft:a.isSoft})),c.stop.called&&o.stop();});return _this232;}_createClass(Pp,[{key:"observe",value:function observe(){}},{key:"stopObserving",value:function stopObserving(){}}]);return Pp;}(_l);var Lp=/*#__PURE__*/function(_Fr7){_inherits(Lp,_Fr7);var _super147=_createSuper(Lp);function Lp(){_classCallCheck(this,Lp);return _super147.apply(this,arguments);}_createClass(Lp,[{key:"init",value:function init(){var t=this.editor,e=t.editing.view,n=e.document;e.addObserver(Pp),t.commands.add("enter",new Bp(t)),this.listenTo(n,"enter",function(o,i){n.isComposing||i.preventDefault(),i.isSoft||(t.execute("enter"),e.scrollToTheSelection());},{priority:"low"});}}],[{key:"pluginName",get:function get(){return"Enter";}}]);return Lp;}(Fr);var Op=/*#__PURE__*/function(_Hr5){_inherits(Op,_Hr5);var _super148=_createSuper(Op);function Op(){_classCallCheck(this,Op);return _super148.apply(this,arguments);}_createClass(Op,[{key:"execute",value:function execute(){var _this233=this;var t=this.editor.model,e=t.document;t.change(function(n){!function(t,e,n){var o=n.isCollapsed,i=n.getFirstRange(),r=i.start.parent,s=i.end.parent,a=r==s;if(o){var _o143=Mp(t.schema,n.getAttributes());Rp(t,e,i.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(_o143);}else{var _o144=!(i.start.isAtStart&&i.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:_o144}),a?Rp(t,e,n.focus):_o144&&e.setSelection(s,0);}}(t,n,e.selection),_this233.fire("afterExecute",{writer:n});});}},{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document;this.isEnabled=function(t,e){if(e.rangeCount>1)return!1;var n=e.anchor;if(!n||!t.checkChild(n,"softBreak"))return!1;var o=e.getFirstRange(),i=o.start.parent,r=o.end.parent;if((jp(i,t)||jp(r,t))&&i!==r)return!1;return!0;}(t.schema,e.selection);}}]);return Op;}(Hr);function Rp(t,e,n){var o=e.createElement("softBreak");t.insertContent(o,n),e.setSelection(o,"after");}function jp(t,e){return!t.is("rootElement")&&(e.isLimit(t)||jp(t.parent,e));}var Fp=/*#__PURE__*/function(_Fr8){_inherits(Fp,_Fr8);var _super149=_createSuper(Fp);function Fp(){_classCallCheck(this,Fp);return _super149.apply(this,arguments);}_createClass(Fp,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema,n=t.conversion,o=t.editing.view,i=o.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function view(t,_ref71){var e=_ref71.writer;return e.createEmptyElement("br");}}),o.addObserver(Pp),t.commands.add("shiftEnter",new Op(t)),this.listenTo(i,"enter",function(e,n){i.isComposing||n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),o.scrollToTheSelection());},{priority:"low"});}}],[{key:"pluginName",get:function get(){return"ShiftEnter";}}]);return Fp;}(Fr);var Vp=/*#__PURE__*/function(_B20){_inherits(Vp,_B20);var _super150=_createSuper(Vp);function Vp(){var _this234;_classCallCheck(this,Vp);_this234=_super150.apply(this,arguments),_this234._stack=[];return _this234;}_createClass(Vp,[{key:"add",value:function add(t,e){var n=this._stack,o=n[0];this._insertDescriptor(t);var i=n[0];o===i||Hp(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e});}},{key:"remove",value:function remove(t,e){var n=this._stack,o=n[0];this._removeDescriptor(t);var i=n[0];o===i||Hp(o,i)||this.fire("change:top",{oldDescriptor:o,newDescriptor:i,writer:e});}},{key:"_insertDescriptor",value:function _insertDescriptor(t){var e=this._stack,n=e.findIndex(function(e){return e.id===t.id;});if(Hp(t,e[n]))return;n>-1&&e.splice(n,1);var o=0;for(;e[o]&&Up(e[o],t);)o++;e.splice(o,0,t);}},{key:"_removeDescriptor",value:function _removeDescriptor(t){var e=this._stack,n=e.findIndex(function(e){return e.id===t;});n>-1&&e.splice(n,1);}}]);return Vp;}(B());function Hp(t,e){return t&&e&&t.priority==e.priority&&Wp(t.classes)==Wp(e.classes);}function Up(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&Wp(t.classes)>Wp(e.classes);}function Wp(t){return Array.isArray(t)?t.sort().join(","):t;}var Gp='<svg viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M4 0v1H1v3H0V.5A.5.5 0 0 1 .5 0H4zm8 0h3.5a.5.5 0 0 1 .5.5V4h-1V1h-3V0zM4 16H.5a.5.5 0 0 1-.5-.5V12h1v3h3v1zm8 0v-1h3v-3h1v3.5a.5.5 0 0 1-.5.5H12z"/><path fill-opacity=".256" d="M1 1h14v14H1z"/><g class="ck-icon__selected-indicator"><path d="M7 0h2v1H7V0zM0 7h1v2H0V7zm15 0h1v2h-1V7zm-8 8h2v1H7v-1z"/><path fill-opacity=".254" d="M1 1h14v14H1z"/></g></svg>',qp="ck-widget",$p="ck-widget_selected";function Kp(t){return!!t.is("element")&&!!t.getCustomProperty("widget");}function Yp(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};if(!t.is("containerElement"))throw new _("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass(qp,t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=ef,e.setCustomProperty("widgetLabel",[],t),n.label&&function(t,e){var n=t.getCustomProperty("widgetLabel");n.push(e);}(t,n.label),n.hasSelectionHandle&&function(t,e){var n=e.createUIElement("div",{class:"ck ck-widget__selection-handle"},function(t){var e=this.toDomElement(t),n=new dr();return n.set("content",Gp),n.render(),e.appendChild(n.element),e;});e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t);}(t,e),Jp(t,e),t;}function Qp(t,e,n){if(e.classes&&n.addClass(Ai(e.classes),t),e.attributes)for(var _o145 in e.attributes)n.setAttribute(_o145,e.attributes[_o145],t);}function Zp(t,e,n){if(e.classes&&n.removeClass(Ai(e.classes),t),e.attributes)for(var _o146 in e.attributes)n.removeAttribute(_o146,t);}function Jp(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:Qp;var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:Zp;var i=new Vp();i.on("change:top",function(e,i){i.oldDescriptor&&o(t,i.oldDescriptor,i.writer),i.newDescriptor&&n(t,i.newDescriptor,i.writer);});e.setCustomProperty("addHighlight",function(t,e,n){return i.add(e,n);},t),e.setCustomProperty("removeHighlight",function(t,e,n){return i.remove(e,n);},t);}function Xp(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("role","textbox",t),n.label&&e.setAttribute("aria-label",n.label,t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",function(n,o,i){e.setAttribute("contenteditable",i?"false":"true",t);}),t.on("change:isFocused",function(n,o,i){i?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t);}),Jp(t,e),t;}function tf(t,e){var n=t.getSelectedElement();if(n){var _o147=rf(t);if(_o147)return e.createRange(e.createPositionAt(n,_o147));}return ch(t,e);}function ef(){return null;}var nf="widget-type-around";function of(t,e,n){return!!t&&Kp(t)&&!n.isInline(e);}function rf(t){return t.getAttribute(nf);}var sf=n(5137),af={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(sf.Z,af);sf.Z.locals;var lf=["before","after"],cf=new DOMParser().parseFromString('<svg viewBox="0 0 10 8" xmlns="http://www.w3.org/2000/svg"><path d="M9.055.263v3.972h-6.77M1 4.216l2-2.038m-2 2 2 2.038"/></svg>',"image/svg+xml").firstChild,df="ck-widget__type-around_disabled";var uf=/*#__PURE__*/function(_Fr9){_inherits(uf,_Fr9);var _super151=_createSuper(uf);function uf(){var _this235;_classCallCheck(this,uf);_this235=_super151.apply(this,arguments),_this235._currentFakeCaretModelElement=null;return _this235;}_createClass(uf,[{key:"init",value:function init(){var t=this.editor,e=t.editing.view;this.on("change:isEnabled",function(n,o,i){e.change(function(t){var _iterator333=_createForOfIteratorHelper(e.document.roots),_step333;try{for(_iterator333.s();!(_step333=_iterator333.n()).done;){var _n227=_step333.value;i?t.removeClass(df,_n227):t.addClass(df,_n227);}}catch(err){_iterator333.e(err);}finally{_iterator333.f();}}),i||t.model.change(function(t){t.removeSelectionAttribute(nf);});}),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableInsertObjectIntegration(),this._enableDeleteContentIntegration();}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(uf.prototype),"destroy",this).call(this),this._currentFakeCaretModelElement=null;}},{key:"_insertParagraph",value:function _insertParagraph(t,e){var n=this.editor,o=n.editing.view,i=n.model.schema.getAttributesWithProperty(t,"copyOnReplace",!0);n.execute("insertParagraph",{position:n.model.createPositionAt(t,e),attributes:i}),o.focus(),o.scrollToTheSelection();}},{key:"_listenToIfEnabled",value:function _listenToIfEnabled(t,e,n,o){var _this236=this;this.listenTo(t,e,function(){_this236.isEnabled&&n.apply(void 0,arguments);},o);}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function _insertParagraphAccordingToFakeCaretPosition(){var t=this.editor.model.document.selection,e=rf(t);if(!e)return!1;var n=t.getSelectedElement();return this._insertParagraph(n,e),!0;}},{key:"_enableTypeAroundUIInjection",value:function _enableTypeAroundUIInjection(){var _this237=this;var t=this.editor,e=t.model.schema,n=t.locale.t,o={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",function(t,i,r){var s=r.mapper.toViewElement(i.item);if(s&&of(s,i.item,e)){!function(t,e,n){var o=t.createUIElement("div",{class:"ck ck-reset_all ck-widget__type-around"},function(t){var n=this.toDomElement(t);return function(t,e){for(var _i142=0,_lf=lf;_i142<_lf.length;_i142++){var _n228=_lf[_i142];var _o148=new Fi({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_".concat(_n228)],title:e[_n228],"aria-hidden":"true"},children:[t.ownerDocument.importNode(cf,!0)]});t.appendChild(_o148.render());}}(n,e),function(t){var e=new Fi({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render());}(n),n;});t.insert(t.createPositionAt(n,"end"),o);}(r.writer,o,s);s.getCustomProperty("widgetLabel").push(function(){return _this237.isEnabled?n("Press Enter to type after or press Shift + Enter to type before the widget"):"";});}},{priority:"low"});}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function _enableTypeAroundFakeCaretActivationUsingKeyboardArrows(){var _this238=this;var t=this.editor,e=t.model,n=e.document.selection,o=e.schema,i=t.editing.view;function r(t){return"ck-widget_type-around_show-fake-caret_".concat(t);}this._listenToIfEnabled(i.document,"arrowKey",function(t,e){_this238._handleArrowKeyPress(t,e);},{context:[Kp,"$text"],priority:"high"}),this._listenToIfEnabled(n,"change:range",function(e,n){n.directChange&&t.model.change(function(t){t.removeSelectionAttribute(nf);});}),this._listenToIfEnabled(e.document,"change:data",function(){var e=n.getSelectedElement();if(e){if(of(t.editing.mapper.toViewElement(e),e,o))return;}t.model.change(function(t){t.removeSelectionAttribute(nf);});}),this._listenToIfEnabled(t.editing.downcastDispatcher,"selection",function(t,e,n){var i=n.writer;if(_this238._currentFakeCaretModelElement){var _t295=n.mapper.toViewElement(_this238._currentFakeCaretModelElement);_t295&&(i.removeClass(lf.map(r),_t295),_this238._currentFakeCaretModelElement=null);}var s=e.selection.getSelectedElement();if(!s)return;var a=n.mapper.toViewElement(s);if(!of(a,s,o))return;var l=rf(e.selection);l&&(i.addClass(r(l),a),_this238._currentFakeCaretModelElement=s);}),this._listenToIfEnabled(t.ui.focusTracker,"change:isFocused",function(e,n,o){o||t.model.change(function(t){t.removeSelectionAttribute(nf);});});}},{key:"_handleArrowKeyPress",value:function _handleArrowKeyPress(t,e){var n=this.editor,o=n.model,i=o.document.selection,r=o.schema,s=n.editing.view,a=function(t,e){var n=wi(t,e);return"down"===n||"right"===n;}(e.keyCode,n.locale.contentLanguageDirection),l=s.document.selection.getSelectedElement();var c;of(l,n.editing.mapper.toModelElement(l),r)?c=this._handleArrowKeyPressOnSelectedWidget(a):i.isCollapsed?c=this._handleArrowKeyPressWhenSelectionNextToAWidget(a):e.shiftKey||(c=this._handleArrowKeyPressWhenNonCollapsedSelection(a)),c&&(e.preventDefault(),t.stop());}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function _handleArrowKeyPressOnSelectedWidget(t){var e=this.editor.model,n=rf(e.document.selection);return e.change(function(e){if(!n)return e.setSelectionAttribute(nf,t?"after":"before"),!0;if(!(n===(t?"after":"before")))return e.removeSelectionAttribute(nf),!0;return!1;});}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function _handleArrowKeyPressWhenSelectionNextToAWidget(t){var e=this.editor,n=e.model,o=n.schema,i=e.plugins.get("Widget"),r=i._getObjectElementNextToSelection(t);return!!of(e.editing.mapper.toViewElement(r),r,o)&&(n.change(function(e){i._setSelectionOverElement(r),e.setSelectionAttribute(nf,t?"before":"after");}),!0);}},{key:"_handleArrowKeyPressWhenNonCollapsedSelection",value:function _handleArrowKeyPressWhenNonCollapsedSelection(t){var e=this.editor,n=e.model,o=n.schema,i=e.editing.mapper,r=n.document.selection,s=t?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!of(i.toViewElement(s),s,o)&&(n.change(function(e){e.setSelection(s,"on"),e.setSelectionAttribute(nf,t?"after":"before");}),!0);}},{key:"_enableInsertingParagraphsOnButtonClick",value:function _enableInsertingParagraphsOnButtonClick(){var _this239=this;var t=this.editor,e=t.editing.view;this._listenToIfEnabled(e.document,"mousedown",function(n,o){var i=o.domTarget.closest(".ck-widget__type-around__button");if(!i)return;var r=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after";}(i),s=function(t,e){var n=t.closest(".ck-widget");return e.mapDomToView(n);}(i,e.domConverter),a=t.editing.mapper.toModelElement(s);_this239._insertParagraph(a,r),o.preventDefault(),n.stop();});}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function _enableInsertingParagraphsOnEnterKeypress(){var _this240=this;var t=this.editor,e=t.model.document.selection,n=t.editing.view;this._listenToIfEnabled(n.document,"enter",function(n,o){if("atTarget"!=n.eventPhase)return;var i=e.getSelectedElement(),r=t.editing.mapper.toViewElement(i),s=t.model.schema;var a;_this240._insertParagraphAccordingToFakeCaretPosition()?a=!0:of(r,i,s)&&(_this240._insertParagraph(i,o.isSoft?"before":"after"),a=!0),a&&(o.preventDefault(),n.stop());},{context:Kp});}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function _enableInsertingParagraphsOnTypingKeystroke(){var _this241=this;var t=this.editor.editing.view.document;this._listenToIfEnabled(t,"insertText",function(e,n){_this241._insertParagraphAccordingToFakeCaretPosition()&&(n.selection=t.selection);},{priority:"high"}),l.isAndroid?this._listenToIfEnabled(t,"keydown",function(t,e){229==e.keyCode&&_this241._insertParagraphAccordingToFakeCaretPosition();}):this._listenToIfEnabled(t,"compositionstart",function(){_this241._insertParagraphAccordingToFakeCaretPosition();},{priority:"high"});}},{key:"_enableDeleteIntegration",value:function _enableDeleteIntegration(){var t=this.editor,e=t.editing.view,n=t.model,o=n.schema;this._listenToIfEnabled(e.document,"delete",function(e,i){if("atTarget"!=e.eventPhase)return;var r=rf(n.document.selection);if(!r)return;var s=i.direction,a=n.document.selection.getSelectedElement(),l="forward"==s;if("before"===r===l)t.execute("delete",{selection:n.createSelection(a,"on")});else{var _e230=o.getNearestSelectionRange(n.createPositionAt(a,r),s);if(_e230)if(_e230.isCollapsed){var _i143=n.createSelection(_e230.start);if(n.modifySelection(_i143,{direction:s}),_i143.focus.isEqual(_e230.start)){var _t296=function(t,e){var n=e;var _iterator334=_createForOfIteratorHelper(e.getAncestors({parentFirst:!0})),_step334;try{for(_iterator334.s();!(_step334=_iterator334.n()).done;){var _o149=_step334.value;if(_o149.childCount>1||t.isLimit(_o149))break;n=_o149;}}catch(err){_iterator334.e(err);}finally{_iterator334.f();}return n;}(o,_e230.start.parent);n.deleteContent(n.createSelection(_t296,"on"),{doNotAutoparagraph:!0});}else n.change(function(n){n.setSelection(_e230),t.execute(l?"deleteForward":"delete");});}else n.change(function(n){n.setSelection(_e230),t.execute(l?"deleteForward":"delete");});}i.preventDefault(),e.stop();},{context:Kp});}},{key:"_enableInsertContentIntegration",value:function _enableInsertContentIntegration(){var t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",function(t,_ref72){var _ref73=_slicedToArray(_ref72,2),o=_ref73[0],i=_ref73[1];if(i&&!i.is("documentSelection"))return;var r=rf(n);return r?(t.stop(),e.change(function(t){var i=n.getSelectedElement(),s=e.createPositionAt(i,r),a=t.createSelection(s),l=e.insertContent(o,a);return t.setSelection(a),l;})):void 0;},{priority:"high"});}},{key:"_enableInsertObjectIntegration",value:function _enableInsertObjectIntegration(){var t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"insertObject",function(t,n){var _n229=_slicedToArray(n,3),o=_n229[1],_n229$=_n229[2],i=_n229$===void 0?{}:_n229$;if(o&&!o.is("documentSelection"))return;var r=rf(e);r&&(i.findOptimalPosition=r,n[3]=i);},{priority:"high"});}},{key:"_enableDeleteContentIntegration",value:function _enableDeleteContentIntegration(){var t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",function(t,_ref74){var _ref75=_slicedToArray(_ref74,1),n=_ref75[0];if(n&&!n.is("documentSelection"))return;rf(e)&&t.stop();},{priority:"high"});}}],[{key:"pluginName",get:function get(){return"WidgetTypeAround";}},{key:"requires",get:function get(){return[Lp,dp];}}]);return uf;}(Fr);function hf(t){var e=t.model;return function(n,o){var i=o.keyCode==mi.arrowup,r=o.keyCode==mi.arrowdown,s=o.shiftKey,a=e.document.selection;if(!i&&!r)return;var l=r;if(s&&function(t,e){return!t.isCollapsed&&t.isBackward==e;}(a,l))return;var c=function(t,e,n){var o=t.model;if(n){var _t297=e.isCollapsed?e.focus:e.getLastPosition(),_n230=gf(o,_t297,"forward");if(!_n230)return null;var _i144=o.createRange(_t297,_n230),_r53=mf(o.schema,_i144,"backward");return _r53?o.createRange(_t297,_r53):null;}{var _t298=e.isCollapsed?e.focus:e.getFirstPosition(),_n231=gf(o,_t298,"backward");if(!_n231)return null;var _i145=o.createRange(_n231,_t298),_r54=mf(o.schema,_i145,"forward");return _r54?o.createRange(_r54,_t298):null;}}(t,a,l);if(c){if(c.isCollapsed){if(a.isCollapsed)return;if(s)return;}(c.isCollapsed||function(t,e,n){var o=t.model,i=t.view.domConverter;if(n){var _t299=o.createSelection(e.start);o.modifySelection(_t299),_t299.focus.isAtEnd||e.start.isEqual(_t299.focus)||(e=o.createRange(_t299.focus,e.end));}var r=t.mapper.toViewRange(e),s=i.viewRangeToDom(r),a=Ho.getDomRangeRects(s);var l;var _iterator335=_createForOfIteratorHelper(a),_step335;try{for(_iterator335.s();!(_step335=_iterator335.n()).done;){var _t300=_step335.value;if(void 0!==l){if(Math.round(_t300.top)>=l)return!1;l=Math.max(l,Math.round(_t300.bottom));}else l=Math.round(_t300.bottom);}}catch(err){_iterator335.e(err);}finally{_iterator335.f();}return!0;}(t,c,l))&&(e.change(function(t){var n=l?c.end:c.start;if(s){var _o150=e.createSelection(a.anchor);_o150.setFocus(n),t.setSelection(_o150);}else t.setSelection(n);}),n.stop(),o.preventDefault(),o.stopPropagation());}};}function gf(t,e,n){var o=t.schema,i=t.createRangeIn(e.root),r="forward"==n?"elementStart":"elementEnd";var _iterator336=_createForOfIteratorHelper(i.getWalker({startPosition:e,direction:n})),_step336;try{for(_iterator336.s();!(_step336=_iterator336.n()).done;){var _step336$value=_step336.value,_t301=_step336$value.previousPosition,_s26=_step336$value.item,_a16=_step336$value.type;if(o.isLimit(_s26)&&!o.isInline(_s26))return _t301;if(_a16==r&&o.isBlock(_s26))return null;}}catch(err){_iterator336.e(err);}finally{_iterator336.f();}return null;}function mf(t,e,n){var o="backward"==n?e.end:e.start;if(t.checkChild(o,"$text"))return o;var _iterator337=_createForOfIteratorHelper(e.getWalker({direction:n})),_step337;try{for(_iterator337.s();!(_step337=_iterator337.n()).done;){var _o151=_step337.value.nextPosition;if(t.checkChild(_o151,"$text"))return _o151;}}catch(err){_iterator337.e(err);}finally{_iterator337.f();}return null;}var pf=n(6507),ff={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(pf.Z,ff);pf.Z.locals;var kf=/*#__PURE__*/function(_Fr10){_inherits(kf,_Fr10);var _super152=_createSuper(kf);function kf(){var _this242;_classCallCheck(this,kf);_this242=_super152.apply(this,arguments),_this242._previouslySelected=new Set();return _this242;}_createClass(kf,[{key:"init",value:function init(){var _this243=this;var t=this.editor,e=t.editing.view,n=e.document;this.editor.editing.downcastDispatcher.on("selection",function(e,n,o){var i=o.writer,r=n.selection;if(r.isCollapsed)return;var s=r.getSelectedElement();if(!s)return;var a=t.editing.mapper.toViewElement(s);var l;Kp(a)&&o.consumable.consume(r,"selection")&&i.setSelection(i.createRangeOn(a),{fake:!0,label:(l=a,l.getCustomProperty("widgetLabel").reduce(function(t,e){return"function"==typeof e?t?t+". "+e():e():t?t+". "+e:e;},""))});}),this.editor.editing.downcastDispatcher.on("selection",function(t,e,n){_this243._clearPreviouslySelectedWidgets(n.writer);var o=n.writer,i=o.document.selection;var r=null;var _iterator338=_createForOfIteratorHelper(i.getRanges()),_step338;try{for(_iterator338.s();!(_step338=_iterator338.n()).done;){var _t302=_step338.value;var _iterator339=_createForOfIteratorHelper(_t302),_step339;try{for(_iterator339.s();!(_step339=_iterator339.n()).done;){var _e231=_step339.value;var _t303=_e231.item;Kp(_t303)&&!bf(_t303,r)&&(o.addClass($p,_t303),_this243._previouslySelected.add(_t303),r=_t303);}}catch(err){_iterator339.e(err);}finally{_iterator339.f();}}}catch(err){_iterator338.e(err);}finally{_iterator338.f();}},{priority:"low"}),e.addObserver(wh),this.listenTo(n,"mousedown",function(){return _this243._onMousedown.apply(_this243,arguments);}),this.listenTo(n,"arrowKey",function(){_this243._handleSelectionChangeOnArrowKeyPress.apply(_this243,arguments);},{context:[Kp,"$text"]}),this.listenTo(n,"arrowKey",function(){_this243._preventDefaultOnArrowKeyPress.apply(_this243,arguments);},{context:"$root"}),this.listenTo(n,"arrowKey",hf(this.editor.editing),{context:"$text"}),this.listenTo(n,"delete",function(t,e){_this243._handleDelete("forward"==e.direction)&&(e.preventDefault(),t.stop());},{context:"$root"});}},{key:"_onMousedown",value:function _onMousedown(t,e){var n=this.editor,o=n.editing.view,i=o.document;var r=e.target;if(function(t){var e=t;for(;e;){if(e.is("editableElement")&&!e.is("rootElement"))return!0;if(Kp(e))return!1;e=e.parent;}return!1;}(r)){if((l.isSafari||l.isGecko)&&e.domEvent.detail>=3){var _t304=n.editing.mapper,_o152=r.is("attributeElement")?r.findAncestor(function(t){return!t.is("attributeElement");}):r,_i146=_t304.toModelElement(_o152);e.preventDefault(),this.editor.model.change(function(t){t.setSelection(_i146,"in");});}return;}if(!Kp(r)&&(r=r.findAncestor(Kp),!r))return;l.isAndroid&&e.preventDefault(),i.isFocused||o.focus();var s=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(s);}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function _handleSelectionChangeOnArrowKeyPress(t,e){var n=e.keyCode,o=this.editor.model,i=o.schema,r=o.document.selection,s=r.getSelectedElement(),a=wi(n,this.editor.locale.contentLanguageDirection),l="down"==a||"right"==a,c="up"==a||"down"==a;if(s&&i.isObject(s)){var _n232=l?r.getLastPosition():r.getFirstPosition(),_s27=i.getNearestSelectionRange(_n232,l?"forward":"backward");return void(_s27&&(o.change(function(t){t.setSelection(_s27);}),e.preventDefault(),t.stop()));}if(!r.isCollapsed&&!e.shiftKey){var _n233=r.getFirstPosition(),_s28=r.getLastPosition(),_a17=_n233.nodeAfter,_c7=_s28.nodeBefore;return void((_a17&&i.isObject(_a17)||_c7&&i.isObject(_c7))&&(o.change(function(t){t.setSelection(l?_s28:_n233);}),e.preventDefault(),t.stop()));}if(!r.isCollapsed)return;var d=this._getObjectElementNextToSelection(l);if(d&&i.isObject(d)){if(i.isInline(d)&&c)return;this._setSelectionOverElement(d),e.preventDefault(),t.stop();}}},{key:"_preventDefaultOnArrowKeyPress",value:function _preventDefaultOnArrowKeyPress(t,e){var n=this.editor.model,o=n.schema,i=n.document.selection.getSelectedElement();i&&o.isObject(i)&&(e.preventDefault(),t.stop());}},{key:"_handleDelete",value:function _handleDelete(t){var _this244=this;if(this.editor.isReadOnly)return;var e=this.editor.model.document.selection;if(!e.isCollapsed)return;var n=this._getObjectElementNextToSelection(t);return n?(this.editor.model.change(function(t){var o=e.anchor.parent;for(;o.isEmpty;){var _e232=o;o=_e232.parent,t.remove(_e232);}_this244._setSelectionOverElement(n);}),!0):void 0;}},{key:"_setSelectionOverElement",value:function _setSelectionOverElement(t){this.editor.model.change(function(e){e.setSelection(e.createRangeOn(t));});}},{key:"_getObjectElementNextToSelection",value:function _getObjectElementNextToSelection(t){var e=this.editor.model,n=e.schema,o=e.document.selection,i=e.createSelection(o);if(e.modifySelection(i,{direction:t?"forward":"backward"}),i.isEqual(o))return null;var r=t?i.focus.nodeBefore:i.focus.nodeAfter;return r&&n.isObject(r)?r:null;}},{key:"_clearPreviouslySelectedWidgets",value:function _clearPreviouslySelectedWidgets(t){var _iterator340=_createForOfIteratorHelper(this._previouslySelected),_step340;try{for(_iterator340.s();!(_step340=_iterator340.n()).done;){var _e233=_step340.value;t.removeClass($p,_e233);}}catch(err){_iterator340.e(err);}finally{_iterator340.f();}this._previouslySelected.clear();}}],[{key:"pluginName",get:function get(){return"Widget";}},{key:"requires",get:function get(){return[uf,dp];}}]);return kf;}(Fr);function bf(t,e){return!!e&&Array.from(t.getAncestors()).includes(e);}var wf=/*#__PURE__*/function(_Fr11){_inherits(wf,_Fr11);var _super153=_createSuper(wf);function wf(){var _this245;_classCallCheck(this,wf);_this245=_super153.apply(this,arguments),_this245._toolbarDefinitions=new Map();return _this245;}_createClass(wf,[{key:"init",value:function init(){var _this246=this;var t=this.editor;if(t.plugins.has("BalloonToolbar")){var _e234=t.plugins.get("BalloonToolbar");this.listenTo(_e234,"show",function(e){(function(t){var e=t.getSelectedElement();return!(!e||!Kp(e));})(t.editing.view.document.selection)&&e.stop();},{priority:"high"});}this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",function(){_this246._updateToolbarsVisibility();}),this.listenTo(t.ui,"update",function(){_this246._updateToolbarsVisibility();}),this.listenTo(t.ui.focusTracker,"change:isFocused",function(){_this246._updateToolbarsVisibility();},{priority:"low"});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(wf.prototype),"destroy",this).call(this);var _iterator341=_createForOfIteratorHelper(this._toolbarDefinitions.values()),_step341;try{for(_iterator341.s();!(_step341=_iterator341.n()).done;){var _t305=_step341.value;_t305.view.destroy();}}catch(err){_iterator341.e(err);}finally{_iterator341.f();}}},{key:"register",value:function register(t,_ref76){var _this247=this;var e=_ref76.ariaLabel,n=_ref76.items,o=_ref76.getRelatedElement,_ref76$balloonClassNa=_ref76.balloonClassName,i=_ref76$balloonClassNa===void 0?"ck-toolbar-container":_ref76$balloonClassNa;if(!n.length)return void C("widget-toolbar-no-items",{toolbarId:t});var r=this.editor,s=r.t,a=new pg(r.locale);if(a.ariaLabel=e||s("Widget toolbar"),this._toolbarDefinitions.has(t))throw new _("widget-toolbar-duplicated",this,{toolbarId:t});var l={view:a,getRelatedElement:o,balloonClassName:i,itemsConfig:n,initialized:!1};r.ui.addToolbar(a,{isContextual:!0,beforeFocus:function beforeFocus(){var t=o(r.editing.view.document.selection);t&&_this247._showToolbar(l,t);},afterBlur:function afterBlur(){_this247._hideToolbar(l);}}),this._toolbarDefinitions.set(t,l);}},{key:"_updateToolbarsVisibility",value:function _updateToolbarsVisibility(){var t=0,e=null,n=null;var _iterator342=_createForOfIteratorHelper(this._toolbarDefinitions.values()),_step342;try{for(_iterator342.s();!(_step342=_iterator342.n()).done;){var _o153=_step342.value;var _i147=_o153.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&_i147){if(this.editor.ui.focusTracker.isFocused){var _r55=_i147.getAncestors().length;_r55>t&&(t=_r55,e=_i147,n=_o153);}else this._isToolbarVisible(_o153)&&this._hideToolbar(_o153);}else this._isToolbarInBalloon(_o153)&&this._hideToolbar(_o153);}}catch(err){_iterator342.e(err);}finally{_iterator342.f();}n&&this._showToolbar(n,e);}},{key:"_hideToolbar",value:function _hideToolbar(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView");}},{key:"_showToolbar",value:function _showToolbar(t,e){var _this248=this;this._isToolbarVisible(t)?Af(this.editor,e):this._isToolbarInBalloon(t)||(t.initialized||(t.initialized=!0,t.view.fillFromConfig(t.itemsConfig,this.editor.ui.componentFactory)),this._balloon.add({view:t.view,position:_f(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",function(){var _iterator343=_createForOfIteratorHelper(_this248._toolbarDefinitions.values()),_step343;try{for(_iterator343.s();!(_step343=_iterator343.n()).done;){var _t306=_step343.value;if(_this248._isToolbarVisible(_t306)){var _e235=_t306.getRelatedElement(_this248.editor.editing.view.document.selection);Af(_this248.editor,_e235);}}}catch(err){_iterator343.e(err);}finally{_iterator343.f();}}));}},{key:"_isToolbarVisible",value:function _isToolbarVisible(t){return this._balloon.visibleView===t.view;}},{key:"_isToolbarInBalloon",value:function _isToolbarInBalloon(t){return this._balloon.hasView(t.view);}}],[{key:"requires",get:function get(){return[Cm];}},{key:"pluginName",get:function get(){return"WidgetToolbarRepository";}}]);return wf;}(Fr);function Af(t,e){var n=t.plugins.get("ContextualBalloon"),o=_f(t,e);n.updatePosition(o);}function _f(t,e){var n=t.editing.view,o=Rg.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[o.northArrowSouth,o.northArrowSouthWest,o.northArrowSouthEast,o.southArrowNorth,o.southArrowNorthWest,o.southArrowNorthEast,o.viewportStickyNorth]};}var Cf=/*#__PURE__*/function(_$14){_inherits(Cf,_$14);var _super154=_createSuper(Cf);function Cf(t){var _this249;_classCallCheck(this,Cf);_this249=_super154.call(this),_this249.set("activeHandlePosition",null),_this249.set("proposedWidthPercents",null),_this249.set("proposedWidth",null),_this249.set("proposedHeight",null),_this249.set("proposedHandleHostWidth",null),_this249.set("proposedHandleHostHeight",null),_this249._options=t,_this249._referenceCoordinates=null;return _this249;}_createClass(Cf,[{key:"originalWidth",get:function get(){return this._originalWidth;}},{key:"originalHeight",get:function get(){return this._originalHeight;}},{key:"originalWidthPercents",get:function get(){return this._originalWidthPercents;}},{key:"aspectRatio",get:function get(){return this._aspectRatio;}},{key:"begin",value:function begin(t,e,n){var o=new Rect(e);this.activeHandlePosition=function(t){var e=["top-left","top-right","bottom-right","bottom-left"];for(var _i148=0,_e236=e;_i148<_e236.length;_i148++){var _n234=_e236[_i148];if(t.classList.contains(getResizerHandleClass(_n234)))return _n234;}}(t),this._referenceCoordinates=function(t,e){var n=new Rect(t),o=e.split("-"),i={x:"right"==o[1]?n.right:n.left,y:"bottom"==o[0]?n.bottom:n.top};return i.x+=t.ownerDocument.defaultView.scrollX,i.y+=t.ownerDocument.defaultView.scrollY,i;}(e,function(t){var e=t.split("-"),n={top:"bottom",bottom:"top",left:"right",right:"left"};return"".concat(n[e[0]],"-").concat(n[e[1]]);}(this.activeHandlePosition)),this._originalWidth=o.width,this._originalHeight=o.height,this._aspectRatio=o.width/o.height;var i=n.style.width;i&&i.match(/^\d+(\.\d*)?%$/)?this._originalWidthPercents=parseFloat(i):this._originalWidthPercents=function(t,e){var n=t.parentElement;var o=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);var i=5;var r=0,s=n;for(;isNaN(o);){if(s.parentElement,++r>i)return 0;parseFloat(n.ownerDocument.defaultView.getComputedStyle(s).width);}return e.width/o*100;}(n,o);}},{key:"update",value:function update(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight;}}]);return Cf;}($());var vf=/*#__PURE__*/function(_$15){_inherits(vf,_$15);var _super155=_createSuper(vf);function vf(t){var _this250;_classCallCheck(this,vf);_this250=_super155.call(this),_this250._viewResizerWrapper=null,_this250._options=t,_this250.set("isEnabled",!0),_this250.set("isSelected",!1),_this250.bind("isVisible").to(_assertThisInitialized(_this250),"isEnabled",_assertThisInitialized(_this250),"isSelected",function(t,e){return t&&e;}),_this250.decorate("begin"),_this250.decorate("cancel"),_this250.decorate("commit"),_this250.decorate("updateSize"),_this250.on("commit",function(t){_this250.state.proposedWidth||_this250.state.proposedWidthPercents||(_this250._cleanup(),t.stop());},{priority:"high"});return _this250;}_createClass(vf,[{key:"state",get:function get(){return this._state;}},{key:"show",value:function show(){var _this251=this;this._options.editor.editing.view.change(function(t){t.removeClass("ck-hidden",_this251._viewResizerWrapper);});}},{key:"hide",value:function hide(){var _this252=this;this._options.editor.editing.view.change(function(t){t.addClass("ck-hidden",_this252._viewResizerWrapper);});}},{key:"attach",value:function attach(){var _this253=this;var t=this,e=this._options.viewElement;this._options.editor.editing.view.change(function(n){var o=n.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},function(e){var n=this.toDomElement(e);return t._appendHandles(n),t._appendSizeUI(n),n;});n.insert(n.createPositionAt(e,"end"),o),n.addClass("ck-widget_with-resizer",e),_this253._viewResizerWrapper=o,_this253.isVisible||_this253.hide();}),this.on("change:isVisible",function(){_this253.isVisible?(_this253.show(),_this253.redraw()):_this253.hide();});}},{key:"begin",value:function begin(t){this._state=new ResizeState(this._options),this._sizeView._bindToState(this._options,this.state),this._initialViewWidth=this._options.viewElement.getStyle("width"),this.state.begin(t,this._getHandleHost(),this._getResizeHost());}},{key:"updateSize",value:function updateSize(t){var _this254=this;var e=this._proposeNewSize(t);this._options.editor.editing.view.change(function(t){var n=_this254._options.unit||"%",o=("%"===n?e.widthPercents:e.width)+n;t.setStyle("width",o,_this254._options.viewElement);});var n=this._getHandleHost(),o=new Rect(n),i=Math.round(o.width),r=Math.round(o.height),s=new Rect(n);e.width=Math.round(s.width),e.height=Math.round(s.height),this.redraw(o),this.state.update(_objectSpread(_objectSpread({},e),{},{handleHostWidth:i,handleHostHeight:r}));}},{key:"commit",value:function commit(){var _this255=this;var t=this._options.unit||"%",e=("%"===t?this.state.proposedWidthPercents:this.state.proposedWidth)+t;this._options.editor.editing.view.change(function(){_this255._cleanup(),_this255._options.onCommit(e);});}},{key:"cancel",value:function cancel(){this._cleanup();}},{key:"destroy",value:function destroy(){this.cancel();}},{key:"redraw",value:function redraw(t){var e=this._domResizerWrapper;if(!(e&&n.ownerDocument&&n.ownerDocument.contains(n)))return;var n;var o=e.parentElement,i=this._getHandleHost(),r=this._viewResizerWrapper,s=[r.getStyle("width"),r.getStyle("height"),r.getStyle("left"),r.getStyle("top")];var a;if(o.isSameNode(i)){var _e237=t||new Rect(i);[_e237.width+"px",_e237.height+"px",void 0,void 0];}else[i.offsetWidth+"px",i.offsetHeight+"px",i.offsetLeft+"px",i.offsetTop+"px"];"same"!==compareArrays(s,a)&&this._options.editor.editing.view.change(function(t){t.setStyle({width:a[0],height:a[1],left:a[2],top:a[3]},r);});}},{key:"containsHandle",value:function containsHandle(t){return this._domResizerWrapper.contains(t);}},{key:"_cleanup",value:function _cleanup(){var _this256=this;this._sizeView._dismiss();this._options.editor.editing.view.change(function(t){t.setStyle("width",_this256._initialViewWidth,_this256._options.viewElement);});}},{key:"_proposeNewSize",value:function _proposeNewSize(t){var e=this.state,n={x:t.pageX,y:o.pageY};var o;var i=!this._options.isCentered||this._options.isCentered(this),r={x:e._referenceCoordinates.x-(n.x+e.originalWidth),y:n.y-e.originalHeight-e._referenceCoordinates.y};i&&e.activeHandlePosition.endsWith("-right")&&(r.x=n.x-(e._referenceCoordinates.x+e.originalWidth)),i&&(r.x*=2);var s=Math.abs(e.originalWidth+r.x),a=Math.abs(e.originalHeight+r.y);return"width"==(s/e.aspectRatio>a?"width":"height")?s/e.aspectRatio:a*e.aspectRatio,{width:Math.round(s),height:Math.round(a),widthPercents:Math.min(Math.round(e.originalWidthPercents/e.originalWidth*s*100)/100,100)};}},{key:"_getResizeHost",value:function _getResizeHost(){var t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t);}},{key:"_getHandleHost",value:function _getHandleHost(){var t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t);}},{key:"_domResizerWrapper",get:function get(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper);}},{key:"_appendHandles",value:function _appendHandles(t){var e=["top-left","top-right","bottom-right","bottom-left"];for(var _i149=0,_e238=e;_i149<_e238.length;_i149++){var _o154=_e238[_i149];t.appendChild(new Template({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(_o154,"ck-widget__resizer__handle-".concat(n))}}).render());}var n;}},{key:"_appendSizeUI",value:function _appendSizeUI(t){this._sizeView=new SizeView(),this._sizeView.render(),t.appendChild(this._sizeView.element);}}],[{key:"isResizeHandle",value:function isResizeHandle(t){return t.classList.contains("ck-widget__resizer__handle");}}]);return vf;}($());var yf=n(2263),xf={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(yf.Z,xf);yf.Z.locals;var Ef=n(390),Df={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Ef.Z,Df);Ef.Z.locals;var Tf=/*#__PURE__*/function(_Fr12){_inherits(Tf,_Fr12);var _super156=_createSuper(Tf);function Tf(){_classCallCheck(this,Tf);return _super156.apply(this,arguments);}_createClass(Tf,[{key:"init",value:function init(){var _this257=this;var t=this.editor,e=t.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Fm(function(t){return _this257._updateDropMarker(t);},40),this._removeDropMarkerDelayed=Mf(function(){return _this257._removeDropMarker();},40),this._clearDraggableAttributesDelayed=Mf(function(){return _this257._clearDraggableAttributes();},40),e.addObserver($m),e.addObserver(wh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(t,"change:isReadOnly",function(t,e,n){n?_this257.forceDisabled("readOnlyMode"):_this257.clearForceDisabled("readOnlyMode");}),this.on("change:isEnabled",function(t,e,n){n||_this257._finalizeDragging(!1);}),l.isAndroid&&this.forceDisabled("noAndroidSupport");}},{key:"destroy",value:function destroy(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),_get(_getPrototypeOf(Tf.prototype),"destroy",this).call(this);}},{key:"_setupDragging",value:function _setupDragging(){var _this258=this;var t=this.editor,e=t.model,n=e.document,o=t.editing.view,i=o.document;this.listenTo(i,"dragstart",function(o,r){var s=n.selection;if(r.target&&r.target.is("editableElement"))return void r.preventDefault();var a=r.target?Bf(r.target):null;if(a){var _n235=t.editing.mapper.toModelElement(a);if(_this258._draggedRange=qc.fromRange(e.createRangeOn(_n235)),t.plugins.has("WidgetToolbarRepository")){t.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop");}}else if(!i.selection.isCollapsed){var _t307=i.selection.getSelectedElement();_t307&&Kp(_t307)||(_this258._draggedRange=qc.fromRange(s.getFirstRange()));}if(!_this258._draggedRange)return void r.preventDefault();_this258._draggingUid=k(),r.dataTransfer.effectAllowed=_this258.isEnabled?"copyMove":"copy",r.dataTransfer.setData("application/ckeditor5-dragging-uid",_this258._draggingUid);var l=e.createSelection(_this258._draggedRange.toRange()),c=t.data.toView(e.getSelectedContent(l));i.fire("clipboardOutput",{dataTransfer:r.dataTransfer,content:c,method:"dragstart"}),_this258.isEnabled||(_this258._draggedRange.detach(),_this258._draggedRange=null,_this258._draggingUid="");},{priority:"low"}),this.listenTo(i,"dragend",function(t,e){_this258._finalizeDragging(!e.dataTransfer.isCanceled&&"move"==e.dataTransfer.dropEffect);},{priority:"low"}),this.listenTo(i,"dragenter",function(){_this258.isEnabled&&o.focus();}),this.listenTo(i,"dragleave",function(){_this258._removeDropMarkerDelayed();}),this.listenTo(i,"dragging",function(e,n){if(!_this258.isEnabled)return void(n.dataTransfer.dropEffect="none");_this258._removeDropMarkerDelayed.cancel();var o=Sf(t,n.targetRanges,n.target);_this258._draggedRange||(n.dataTransfer.dropEffect="copy"),l.isGecko||("copy"==n.dataTransfer.effectAllowed?n.dataTransfer.dropEffect="copy":["all","copyMove"].includes(n.dataTransfer.effectAllowed)&&(n.dataTransfer.dropEffect="move")),o&&_this258._updateDropMarkerThrottled(o);},{priority:"low"});}},{key:"_setupClipboardInputIntegration",value:function _setupClipboardInputIntegration(){var _this259=this;var t=this.editor,e=t.editing.view.document;this.listenTo(e,"clipboardInput",function(e,n){if("drop"!=n.method)return;var o=Sf(t,n.targetRanges,n.target);if(_this259._removeDropMarker(),!o)return _this259._finalizeDragging(!1),void e.stop();_this259._draggedRange&&_this259._draggingUid!=n.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(_this259._draggedRange.detach(),_this259._draggedRange=null,_this259._draggingUid="");if("move"==If(n.dataTransfer)&&_this259._draggedRange&&_this259._draggedRange.containsRange(o,!0))return _this259._finalizeDragging(!1),void e.stop();n.targetRanges=[t.editing.mapper.toViewRange(o)];},{priority:"high"});}},{key:"_setupContentInsertionIntegration",value:function _setupContentInsertionIntegration(){var _this260=this;var t=this.editor.plugins.get(Qm);t.on("contentInsertion",function(t,e){if(!_this260.isEnabled||"drop"!==e.method)return;var n=e.targetRanges.map(function(t){return _this260.editor.editing.mapper.toModelRange(t);});_this260.editor.model.change(function(t){return t.setSelection(n);});},{priority:"high"}),t.on("contentInsertion",function(t,e){if(!_this260.isEnabled||"drop"!==e.method)return;var n="move"==If(e.dataTransfer),o=!e.resultRange||!e.resultRange.isCollapsed;_this260._finalizeDragging(o&&n);},{priority:"lowest"});}},{key:"_setupDraggableAttributeHandling",value:function _setupDraggableAttributeHandling(){var _this261=this;var t=this.editor,e=t.editing.view,n=e.document;this.listenTo(n,"mousedown",function(o,i){if(l.isAndroid||!i)return;_this261._clearDraggableAttributesDelayed.cancel();var r=Bf(i.target);if(l.isBlink&&!t.isReadOnly&&!r&&!n.selection.isCollapsed){var _t308=n.selection.getSelectedElement();_t308&&Kp(_t308)||(r=n.selection.editableElement);}r&&(e.change(function(t){t.setAttribute("draggable","true",r);}),_this261._draggableElement=t.editing.mapper.toModelElement(r));}),this.listenTo(n,"mouseup",function(){l.isAndroid||_this261._clearDraggableAttributesDelayed();});}},{key:"_clearDraggableAttributes",value:function _clearDraggableAttributes(){var _this262=this;var t=this.editor.editing;t.view.change(function(e){_this262._draggableElement&&"$graveyard"!=_this262._draggableElement.root.rootName&&e.removeAttribute("draggable",t.mapper.toViewElement(_this262._draggableElement)),_this262._draggableElement=null;});}},{key:"_setupDropMarker",value:function _setupDropMarker(){var t=this.editor;t.conversion.for("editingDowncast").markerToHighlight({model:"drop-target",view:{classes:["ck-clipboard-drop-target-range"]}}),t.conversion.for("editingDowncast").markerToElement({model:"drop-target",view:function view(e,_ref77){var n=_ref77.writer;if(t.model.schema.checkChild(e.markerRange.start,"$text"))return n.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},function(t){var e=this.toDomElement(t);return e.append("",t.createElement("span"),""),e;});}});}},{key:"_updateDropMarker",value:function _updateDropMarker(t){var e=this.editor,n=e.model.markers;e.model.change(function(e){n.has("drop-target")?n.get("drop-target").getRange().isEqual(t)||e.updateMarker("drop-target",{range:t}):e.addMarker("drop-target",{range:t,usingOperation:!1,affectsData:!1});});}},{key:"_removeDropMarker",value:function _removeDropMarker(){var t=this.editor.model;this._removeDropMarkerDelayed.cancel(),this._updateDropMarkerThrottled.cancel(),t.markers.has("drop-target")&&t.change(function(t){t.removeMarker("drop-target");});}},{key:"_finalizeDragging",value:function _finalizeDragging(t){var e=this.editor,n=e.model;if(this._removeDropMarker(),this._clearDraggableAttributes(),e.plugins.has("WidgetToolbarRepository")){e.plugins.get("WidgetToolbarRepository").clearForceDisabled("dragDrop");}this._draggingUid="",this._draggedRange&&(t&&this.isEnabled&&n.deleteContent(n.createSelection(this._draggedRange),{doNotAutoparagraph:!0}),this._draggedRange.detach(),this._draggedRange=null);}}],[{key:"pluginName",get:function get(){return"DragDrop";}},{key:"requires",get:function get(){return[Qm,kf];}}]);return Tf;}(Fr);function Sf(t,e,n){var o=t.model,i=t.editing.mapper;var r=null;var s=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(t,e){var n=t.model,o=t.editing.mapper;if(Kp(e))return n.createRangeOn(o.toModelElement(e));if(!e.is("editableElement")){var _t309=e.findAncestor(function(t){return Kp(t)||t.is("editableElement");});if(Kp(_t309))return n.createRangeOn(o.toModelElement(_t309));}return null;}(t,n),r)return r;var a=function(t,e){var n=t.editing.mapper,o=t.editing.view,i=n.toModelElement(e);if(i)return i;var r=o.createPositionBefore(e),s=n.findMappedViewAncestor(r);return n.toModelElement(s);}(t,n),c=s?i.toModelPosition(s):null;return c?(r=function(t,e,n){var o=t.model;if(!o.schema.checkChild(n,"$block"))return null;var i=o.createPositionAt(n,0),r=e.path.slice(0,i.path.length),s=o.createPositionFromPath(e.root,r),a=s.nodeAfter;if(a&&o.schema.isObject(a))return o.createRangeOn(a);return null;}(t,c,a),r||(r=o.schema.getNearestSelectionRange(c,l.isGecko?"forward":"backward"),r||function(t,e){var n=t.model;var o=e;for(;o;){if(n.schema.isObject(o))return n.createRangeOn(o);o=o.parent;}return null;}(t,c.parent))):function(t,e){var n=t.model,o=n.schema,i=n.createPositionAt(e,0);return o.getNearestSelectionRange(i,"forward");}(t,a);}function If(t){return l.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy";}function Mf(t,e){var n;function o(){for(var _len32=arguments.length,i=new Array(_len32),_key32=0;_key32<_len32;_key32++){i[_key32]=arguments[_key32];}o.cancel(),n=setTimeout(function(){return t.apply(void 0,i);},e);}return o.cancel=function(){clearTimeout(n);},o;}function Bf(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(Kp);if(Kp(t))return t;var e=t.findAncestor(function(t){return Kp(t)||t.is("editableElement");});return Kp(e)?e:null;}var Nf=/*#__PURE__*/function(_Fr13){_inherits(Nf,_Fr13);var _super157=_createSuper(Nf);function Nf(){_classCallCheck(this,Nf);return _super157.apply(this,arguments);}_createClass(Nf,[{key:"init",value:function init(){var t=this.editor,e=t.model,n=t.editing.view,o=n.document,i=e.document.selection;var r=!1;n.addObserver($m),this.listenTo(o,"keydown",function(t,e){r=e.shiftKey;}),t.plugins.get(Qm).on("contentInsertion",function(t,n){(r||function(t,e){if(t.childCount>1)return!1;var n=t.getChild(0);if(e.isObject(n))return!1;return 0==Array.from(n.getAttributeKeys()).length;}(n.content,e.schema))&&e.change(function(t){var o=Array.from(i.getAttributes()).filter(function(_ref78){var _ref79=_slicedToArray(_ref78,1),t=_ref79[0];return e.schema.getAttributeProperties(t).isFormatting;});i.isCollapsed||e.deleteContent(i,{doNotAutoparagraph:!0}),o.push.apply(o,_toConsumableArray(i.getAttributes()));var r=t.createRangeIn(n.content);var _iterator344=_createForOfIteratorHelper(r.getItems()),_step344;try{for(_iterator344.s();!(_step344=_iterator344.n()).done;){var _e239=_step344.value;_e239.is("$textProxy")&&t.setAttributes(o,_e239);}}catch(err){_iterator344.e(err);}finally{_iterator344.f();}});});}}],[{key:"pluginName",get:function get(){return"PastePlainText";}},{key:"requires",get:function get(){return[Qm];}}]);return Nf;}(Fr);var zf=/*#__PURE__*/function(_Fr14){_inherits(zf,_Fr14);var _super158=_createSuper(zf);function zf(){_classCallCheck(this,zf);return _super158.apply(this,arguments);}_createClass(zf,null,[{key:"pluginName",get:function get(){return"Clipboard";}},{key:"requires",get:function get(){return[Qm,Tf,Nf];}}]);return zf;}(Fr);var Pf=/*#__PURE__*/function(_Hr6){_inherits(Pf,_Hr6);var _super159=_createSuper(Pf);function Pf(t){var _this263;_classCallCheck(this,Pf);_this263=_super159.call(this,t),_this263.affectsData=!1;return _this263;}_createClass(Pf,[{key:"execute",value:function execute(){var t=this.editor.model,e=t.document.selection;var n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!Lf(t.schema,n))do{if(n=n.parent,!n)return;}while(!Lf(t.schema,n));t.change(function(t){t.setSelection(n,"in");});}}]);return Pf;}(Hr);function Lf(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"));}var Of=ki("Ctrl+A");var Rf=/*#__PURE__*/function(_Fr15){_inherits(Rf,_Fr15);var _super160=_createSuper(Rf);function Rf(){_classCallCheck(this,Rf);return _super160.apply(this,arguments);}_createClass(Rf,[{key:"init",value:function init(){var t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new Pf(t)),this.listenTo(e,"keydown",function(e,n){fi(n)===Of&&(t.execute("selectAll"),n.preventDefault());});}}],[{key:"pluginName",get:function get(){return"SelectAllEditing";}}]);return Rf;}(Fr);var jf=/*#__PURE__*/function(_Fr16){_inherits(jf,_Fr16);var _super161=_createSuper(jf);function jf(){_classCallCheck(this,jf);return _super161.apply(this,arguments);}_createClass(jf,[{key:"init",value:function init(){var _this264=this;var t=this.editor;t.ui.componentFactory.add("selectAll",function(e){var n=t.commands.get("selectAll"),o=new gr(e),i=e.t;return o.set({label:i("Select all"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M.75 15.5a.75.75 0 0 1 .75.75V18l.008.09A.5.5 0 0 0 2 18.5h1.75a.75.75 0 1 1 0 1.5H1.5l-.144-.007a1.5 1.5 0 0 1-1.35-1.349L0 18.5v-2.25a.75.75 0 0 1 .75-.75zm18.5 0a.75.75 0 0 1 .75.75v2.25l-.007.144a1.5 1.5 0 0 1-1.349 1.35L18.5 20h-2.25a.75.75 0 1 1 0-1.5H18a.5.5 0 0 0 .492-.41L18.5 18v-1.75a.75.75 0 0 1 .75-.75zm-10.45 3c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2v-1.1c0-.11.09-.2.2-.2h1.6zm.45-5.5a.75.75 0 1 1 0 1.5h-8.5a.75.75 0 1 1 0-1.5h8.5zM1.3 11c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2v-1.6c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5H4.75a.75.75 0 1 1 0-1.5h10.5zM1.3 7c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2H.2a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm18.5 0c.11 0 .2.09.2.2v1.6a.2.2 0 0 1-.2.2h-1.1a.2.2 0 0 1-.2-.2V7.2c0-.11.09-.2.2-.2h1.1zm-4.55-2a.75.75 0 1 1 0 1.5h-2.5a.75.75 0 1 1 0-1.5h2.5zm-5 0a.75.75 0 1 1 0 1.5h-5.5a.75.75 0 0 1 0-1.5h5.5zm-6.5-5a.75.75 0 0 1 0 1.5H2a.5.5 0 0 0-.492.41L1.5 2v1.75a.75.75 0 0 1-1.5 0V1.5l.007-.144A1.5 1.5 0 0 1 1.356.006L1.5 0h2.25zM18.5 0l.144.007a1.5 1.5 0 0 1 1.35 1.349L20 1.5v2.25a.75.75 0 1 1-1.5 0V2l-.008-.09A.5.5 0 0 0 18 1.5h-1.75a.75.75 0 1 1 0-1.5h2.25zM8.8 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2H7.2a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6zm4 0c.11 0 .2.09.2.2v1.1a.2.2 0 0 1-.2.2h-1.6a.2.2 0 0 1-.2-.2V.2c0-.11.09-.2.2-.2h1.6z"/></svg>',keystroke:"Ctrl+A",tooltip:!0}),o.bind("isEnabled").to(n,"isEnabled"),_this264.listenTo(o,"execute",function(){t.execute("selectAll"),t.editing.view.focus();}),o;});}}],[{key:"pluginName",get:function get(){return"SelectAllUI";}}]);return jf;}(Fr);var Ff=/*#__PURE__*/function(_Fr17){_inherits(Ff,_Fr17);var _super162=_createSuper(Ff);function Ff(){_classCallCheck(this,Ff);return _super162.apply(this,arguments);}_createClass(Ff,null,[{key:"requires",get:function get(){return[Rf,jf];}},{key:"pluginName",get:function get(){return"SelectAll";}}]);return Ff;}(Fr);var Vf=/*#__PURE__*/function(_Hr7){_inherits(Vf,_Hr7);var _super163=_createSuper(Vf);function Vf(t){var _this265;_classCallCheck(this,Vf);_this265=_super163.call(this,t),_this265._stack=[],_this265._createdBatches=new WeakSet(),_this265.refresh(),_this265.listenTo(t.data,"set",function(t,e){e[1]=_objectSpread({},e[1]);var n=e[1];n.batchType||(n.batchType={isUndoable:!1});},{priority:"high"}),_this265.listenTo(t.data,"set",function(t,e){e[1].batchType.isUndoable||_this265.clearStack();});return _this265;}_createClass(Vf,[{key:"refresh",value:function refresh(){this.isEnabled=this._stack.length>0;}},{key:"createdBatches",get:function get(){return this._createdBatches;}},{key:"addBatch",value:function addBatch(t){var e=this.editor.model.document.selection,n={ranges:e.hasOwnRange?Array.from(e.getRanges()):[],isBackward:e.isBackward};this._stack.push({batch:t,selection:n}),this.refresh();}},{key:"clearStack",value:function clearStack(){this._stack=[],this.refresh();}},{key:"_restoreSelection",value:function _restoreSelection(t,e,n){var o=this.editor.model,i=o.document,r=[],s=t.map(function(t){return t.getTransformedByOperations(n);}),a=s.flat();var _iterator345=_createForOfIteratorHelper(s),_step345;try{for(_iterator345.s();!(_step345=_iterator345.n()).done;){var _t310=_step345.value;var _e240=_t310.filter(function(t){return t.root!=i.graveyard;}).filter(function(t){return!Uf(t,a);});_e240.length&&(Hf(_e240),r.push(_e240[0]));}}catch(err){_iterator345.e(err);}finally{_iterator345.f();}r.length&&o.change(function(t){t.setSelection(r,{backward:e});});}},{key:"_undo",value:function _undo(t,e){var n=this.editor.model,o=n.document;this._createdBatches.add(e);var i=t.operations.slice().filter(function(t){return t.isDocumentOperation;});i.reverse();var _iterator346=_createForOfIteratorHelper(i),_step346;try{for(_iterator346.s();!(_step346=_iterator346.n()).done;){var _t311=_step346.value;var _i150=_t311.baseVersion+1,_r56=Array.from(o.history.getOperations(_i150)),_s29=xu([_t311.getReversed()],_r56,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA;var _iterator347=_createForOfIteratorHelper(_s29),_step347;try{for(_iterator347.s();!(_step347=_iterator347.n()).done;){var _i151=_step347.value;e.addOperation(_i151),n.applyOperation(_i151),o.history.setOperationAsUndone(_t311,_i151);}}catch(err){_iterator347.e(err);}finally{_iterator347.f();}}}catch(err){_iterator346.e(err);}finally{_iterator346.f();}}}]);return Vf;}(Hr);function Hf(t){t.sort(function(t,e){return t.start.isBefore(e.start)?-1:1;});for(var _e241=1;_e241<t.length;_e241++){var _n236=t[_e241-1].getJoined(t[_e241],!0);_n236&&(_e241--,t.splice(_e241,2,_n236));}}function Uf(t,e){return e.some(function(e){return e!==t&&e.containsRange(t,!0);});}var Wf=/*#__PURE__*/function(_Vf){_inherits(Wf,_Vf);var _super164=_createSuper(Wf);function Wf(){_classCallCheck(this,Wf);return _super164.apply(this,arguments);}_createClass(Wf,[{key:"execute",value:function execute(){var _this266=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:null;var e=t?this._stack.findIndex(function(e){return e.batch==t;}):this._stack.length-1,n=this._stack.splice(e,1)[0],o=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(o,function(){_this266._undo(n.batch,o);var t=_this266.editor.model.document.history.getOperations(n.batch.baseVersion);_this266._restoreSelection(n.selection.ranges,n.selection.isBackward,t),_this266.fire("revert",n.batch,o);}),this.refresh();}}]);return Wf;}(Vf);var Gf=/*#__PURE__*/function(_Vf2){_inherits(Gf,_Vf2);var _super165=_createSuper(Gf);function Gf(){_classCallCheck(this,Gf);return _super165.apply(this,arguments);}_createClass(Gf,[{key:"execute",value:function execute(){var _this267=this;var t=this._stack.pop(),e=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(e,function(){var n=t.batch.operations[t.batch.operations.length-1].baseVersion+1,o=_this267.editor.model.document.history.getOperations(n);_this267._restoreSelection(t.selection.ranges,t.selection.isBackward,o),_this267._undo(t.batch,e);}),this.refresh();}}]);return Gf;}(Vf);var qf=/*#__PURE__*/function(_Fr18){_inherits(qf,_Fr18);var _super166=_createSuper(qf);function qf(){var _this268;_classCallCheck(this,qf);_this268=_super166.apply(this,arguments),_this268._batchRegistry=new WeakSet();return _this268;}_createClass(qf,[{key:"init",value:function init(){var _this269=this;var t=this.editor;this._undoCommand=new Wf(t),this._redoCommand=new Gf(t),t.commands.add("undo",this._undoCommand),t.commands.add("redo",this._redoCommand),this.listenTo(t.model,"applyOperation",function(t,e){var n=e[0];if(!n.isDocumentOperation)return;var o=n.batch,i=_this269._redoCommand.createdBatches.has(o),r=_this269._undoCommand.createdBatches.has(o);_this269._batchRegistry.has(o)||(_this269._batchRegistry.add(o),o.isUndoable&&(i?_this269._undoCommand.addBatch(o):r||(_this269._undoCommand.addBatch(o),_this269._redoCommand.clearStack())));},{priority:"highest"}),this.listenTo(this._undoCommand,"revert",function(t,e,n){_this269._redoCommand.addBatch(n);}),t.keystrokes.set("CTRL+Z","undo"),t.keystrokes.set("CTRL+Y","redo"),t.keystrokes.set("CTRL+SHIFT+Z","redo");}}],[{key:"pluginName",get:function get(){return"UndoEditing";}}]);return qf;}(Fr);var $f='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m5.042 9.367 2.189 1.837a.75.75 0 0 1-.965 1.149l-3.788-3.18a.747.747 0 0 1-.21-.284.75.75 0 0 1 .17-.945L6.23 4.762a.75.75 0 1 1 .964 1.15L4.863 7.866h8.917A.75.75 0 0 1 14 7.9a4 4 0 1 1-1.477 7.718l.344-1.489a2.5 2.5 0 1 0 1.094-4.73l.008-.032H5.042z"/></svg>',Kf='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m14.958 9.367-2.189 1.837a.75.75 0 0 0 .965 1.149l3.788-3.18a.747.747 0 0 0 .21-.284.75.75 0 0 0-.17-.945L13.77 4.762a.75.75 0 1 0-.964 1.15l2.331 1.955H6.22A.75.75 0 0 0 6 7.9a4 4 0 1 0 1.477 7.718l-.344-1.489A2.5 2.5 0 1 1 6.039 9.4l-.008-.032h8.927z"/></svg>';var Yf=/*#__PURE__*/function(_Fr19){_inherits(Yf,_Fr19);var _super167=_createSuper(Yf);function Yf(){_classCallCheck(this,Yf);return _super167.apply(this,arguments);}_createClass(Yf,[{key:"init",value:function init(){var t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?$f:Kf,i="ltr"==e.uiLanguageDirection?Kf:$f;this._addButton("undo",n("Undo"),"CTRL+Z",o),this._addButton("redo",n("Redo"),"CTRL+Y",i);}},{key:"_addButton",value:function _addButton(t,e,n,o){var _this270=this;var i=this.editor;i.ui.componentFactory.add(t,function(r){var s=i.commands.get(t),a=new gr(r);return a.set({label:e,icon:o,keystroke:n,tooltip:!0}),a.bind("isEnabled").to(s,"isEnabled"),_this270.listenTo(a,"execute",function(){i.execute(t),i.editing.view.focus();}),a;});}}],[{key:"pluginName",get:function get(){return"UndoUI";}}]);return Yf;}(Fr);var Qf=/*#__PURE__*/function(_Fr20){_inherits(Qf,_Fr20);var _super168=_createSuper(Qf);function Qf(){_classCallCheck(this,Qf);return _super168.apply(this,arguments);}_createClass(Qf,null,[{key:"requires",get:function get(){return[qf,Yf];}},{key:"pluginName",get:function get(){return"Undo";}}]);return Qf;}(Fr);var Zf=/*#__PURE__*/function(_$16){_inherits(Zf,_$16);var _super169=_createSuper(Zf);function Zf(){var _this271;_classCallCheck(this,Zf);_this271=_super169.call(this);var t=new window.FileReader();_this271._reader=t,_this271._data=void 0,_this271.set("loaded",0),t.onprogress=function(t){_this271.loaded=t.loaded;};return _this271;}_createClass(Zf,[{key:"error",get:function get(){return this._reader.error;}},{key:"data",get:function get(){return this._data;}},{key:"read",value:function read(t){var _this272=this;var e=this._reader;return this.total=t.size,new Promise(function(n,o){e.onload=function(){var t=e.result;_this272._data=t,n(t);},e.onerror=function(){o("error");},e.onabort=function(){o("aborted");},_this272._reader.readAsDataURL(t);});}},{key:"abort",value:function abort(){this._reader.abort();}}]);return Zf;}($());var Jf=/*#__PURE__*/function(_Fr21){_inherits(Jf,_Fr21);var _super170=_createSuper(Jf);function Jf(){var _this273;_classCallCheck(this,Jf);_this273=_super170.apply(this,arguments),_this273.loaders=new xi(),_this273._loadersMap=new Map(),_this273._pendingAction=null;return _this273;}_createClass(Jf,[{key:"init",value:function init(){var _this274=this;this.loaders.on("change",function(){return _this274._updatePendingAction();}),this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",function(t,e){return e?t/e*100:0;});}},{key:"getLoader",value:function getLoader(t){return this._loadersMap.get(t)||null;}},{key:"createLoader",value:function createLoader(t){var _this275=this;if(!this.createUploadAdapter)return C("filerepository-no-upload-adapter"),null;var e=new Xf(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(e),this._loadersMap.set(t,e),t instanceof Promise&&e.file.then(function(t){_this275._loadersMap.set(t,e);}).catch(function(){}),e.on("change:uploaded",function(){var t=0;var _iterator348=_createForOfIteratorHelper(_this275.loaders),_step348;try{for(_iterator348.s();!(_step348=_iterator348.n()).done;){var _e242=_step348.value;t+=_e242.uploaded;}}catch(err){_iterator348.e(err);}finally{_iterator348.f();}_this275.uploaded=t;}),e.on("change:uploadTotal",function(){var t=0;var _iterator349=_createForOfIteratorHelper(_this275.loaders),_step349;try{for(_iterator349.s();!(_step349=_iterator349.n()).done;){var _e243=_step349.value;_e243.uploadTotal&&(t+=_e243.uploadTotal);}}catch(err){_iterator349.e(err);}finally{_iterator349.f();}_this275.uploadTotal=t;}),e;}},{key:"destroyLoader",value:function destroyLoader(t){var _this276=this;var e=t instanceof Xf?t:this.getLoader(t);e._destroy(),this.loaders.remove(e),this._loadersMap.forEach(function(t,n){t===e&&_this276._loadersMap.delete(n);});}},{key:"_updatePendingAction",value:function _updatePendingAction(){var t=this.editor.plugins.get(cg);if(this.loaders.length){if(!this._pendingAction){var _e244=this.editor.t,_n237=function _n237(t){return"".concat(_e244("Upload in progress")," ").concat(parseInt(t),"%.");};this._pendingAction=t.add(_n237(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",_n237);}}else t.remove(this._pendingAction),this._pendingAction=null;}}],[{key:"pluginName",get:function get(){return"FileRepository";}},{key:"requires",get:function get(){return[cg];}}]);return Jf;}(Fr);var Xf=/*#__PURE__*/function(_$17){_inherits(Xf,_$17);var _super171=_createSuper(Xf);function Xf(t,e){var _this277;_classCallCheck(this,Xf);_this277=_super171.call(this),_this277.id=k(),_this277._filePromiseWrapper=_this277._createFilePromiseWrapper(t),_this277._adapter=e(_assertThisInitialized(_this277)),_this277._reader=new Zf(),_this277.set("status","idle"),_this277.set("uploaded",0),_this277.set("uploadTotal",null),_this277.bind("uploadedPercent").to(_assertThisInitialized(_this277),"uploaded",_assertThisInitialized(_this277),"uploadTotal",function(t,e){return e?t/e*100:0;}),_this277.set("uploadResponse",null);return _this277;}_createClass(Xf,[{key:"file",get:function get(){var _this278=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then(function(t){return _this278._filePromiseWrapper?t:null;}):Promise.resolve(null);}},{key:"data",get:function get(){return this._reader.data;}},{key:"read",value:function read(){var _this279=this;if("idle"!=this.status)throw new _("filerepository-read-wrong-status",this);return this.status="reading",this.file.then(function(t){return _this279._reader.read(t);}).then(function(t){if("reading"!==_this279.status)throw _this279.status;return _this279.status="idle",t;}).catch(function(t){if("aborted"===t)throw _this279.status="aborted","aborted";throw _this279.status="error",_this279._reader.error?_this279._reader.error:t;});}},{key:"upload",value:function upload(){var _this280=this;if("idle"!=this.status)throw new _("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then(function(){return _this280._adapter.upload();}).then(function(t){return _this280.uploadResponse=t,_this280.status="idle",t;}).catch(function(t){if("aborted"===_this280.status)throw"aborted";throw _this280.status="error",t;});}},{key:"abort",value:function abort(){var t=this.status;this.status="aborted",this._filePromiseWrapper.isFulfilled?"reading"==t?this._reader.abort():"uploading"==t&&this._adapter.abort&&this._adapter.abort():(this._filePromiseWrapper.promise.catch(function(){}),this._filePromiseWrapper.rejecter("aborted")),this._destroy();}},{key:"_destroy",value:function _destroy(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0;}},{key:"_createFilePromiseWrapper",value:function _createFilePromiseWrapper(t){var e={};return e.promise=new Promise(function(n,o){e.rejecter=o,e.isFulfilled=!1,t.then(function(t){e.isFulfilled=!0,n(t);}).catch(function(t){e.isFulfilled=!0,o(t);});}),e;}}]);return Xf;}($());var tk=/*#__PURE__*/function(_ji24){_inherits(tk,_ji24);var _super172=_createSuper(tk);function tk(t){var _this281;_classCallCheck(this,tk);_this281=_super172.call(this,t),_this281.buttonView=new gr(t),_this281._fileInputView=new ek(t),_this281._fileInputView.bind("acceptedType").to(_assertThisInitialized(_this281)),_this281._fileInputView.bind("allowMultipleFiles").to(_assertThisInitialized(_this281)),_this281._fileInputView.delegate("done").to(_assertThisInitialized(_this281)),_this281.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[_this281.buttonView,_this281._fileInputView]}),_this281.buttonView.on("execute",function(){_this281._fileInputView.open();});return _this281;}_createClass(tk,[{key:"focus",value:function focus(){this.buttonView.focus();}}]);return tk;}(ji);var ek=/*#__PURE__*/function(_ji25){_inherits(ek,_ji25);var _super173=_createSuper(ek);function ek(t){var _this282;_classCallCheck(this,ek);_this282=_super173.call(this,t),_this282.set("acceptedType",void 0),_this282.set("allowMultipleFiles",!1);var e=_this282.bindTemplate;_this282.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:e.to("acceptedType"),multiple:e.to("allowMultipleFiles")},on:{change:e.to(function(){_this282.element&&_this282.element.files&&_this282.element.files.length&&_this282.fire("done",_this282.element.files),_this282.element.value="";})}});return _this282;}_createClass(ek,[{key:"open",value:function open(){this.element.click();}}]);return ek;}(ji);var nk="ckCsrfToken",ok="abcdefghijklmnopqrstuvwxyz0123456789";function ik(){var t=function(t){t=t.toLowerCase();var e=document.cookie.split(";");var _iterator350=_createForOfIteratorHelper(e),_step350;try{for(_iterator350.s();!(_step350=_iterator350.n()).done;){var _n238=_step350.value;var _e245=_n238.split("=");if(decodeURIComponent(_e245[0].trim().toLowerCase())===t)return decodeURIComponent(_e245[1]);}}catch(err){_iterator350.e(err);}finally{_iterator350.f();}return null;}(nk);var e,n;return t&&40==t.length||(t=function(t){var e="";var n=new Uint8Array(t);window.crypto.getRandomValues(n);for(var _t312=0;_t312<n.length;_t312++){var _o155=ok.charAt(n[_t312]%ok.length);e+=Math.random()>.5?_o155.toUpperCase():_o155;}return e;}(40),e=nk,n=t,document.cookie=encodeURIComponent(e)+"="+encodeURIComponent(n)+";path=/"),t;}var rk=/*#__PURE__*/function(){function rk(t,e,n){_classCallCheck(this,rk);this.loader=t,this.url=e,this.t=n;}_createClass(rk,[{key:"upload",value:function upload(){var _this283=this;return this.loader.file.then(function(t){return new Promise(function(e,n){_this283._initRequest(),_this283._initListeners(e,n,t),_this283._sendRequest(t);});});}},{key:"abort",value:function abort(){this.xhr&&this.xhr.abort();}},{key:"_initRequest",value:function _initRequest(){var t=this.xhr=new XMLHttpRequest();t.open("POST",this.url,!0),t.responseType="json";}},{key:"_initListeners",value:function _initListeners(t,e,n){var o=this.xhr,i=this.loader,r=(0,this.t)("Cannot upload file:")+" ".concat(n.name,".");o.addEventListener("error",function(){return e(r);}),o.addEventListener("abort",function(){return e();}),o.addEventListener("load",function(){var n=o.response;if(!n||!n.uploaded)return e(n&&n.error&&n.error.message?n.error.message:r);t({default:n.url});}),o.upload&&o.upload.addEventListener("progress",function(t){t.lengthComputable&&(i.uploadTotal=t.total,i.uploaded=t.loaded);});}},{key:"_sendRequest",value:function _sendRequest(t){var e=new FormData();e.append("upload",t),e.append("ckCsrfToken",ik()),this.xhr.send(e);}}]);return rk;}();function sk(t,e,n,o){var i,r=null;"function"==typeof o?i=o:(r=t.commands.get(o),i=function i(){t.execute(o);}),t.model.document.on("change:data",function(s,a){if(r&&!r.isEnabled||!e.isEnabled)return;var l=Ei(t.model.document.selection.getRanges());if(!l.isCollapsed)return;if(a.isUndo||!a.isLocal)return;var c=Array.from(t.model.document.differ.getChanges()),d=c[0];if(1!=c.length||"insert"!==d.type||"$text"!=d.name||1!=d.length)return;var u=d.position.parent;if(u.is("element","codeBlock"))return;if(u.is("element","listItem")&&"function"!=typeof o&&!["numberedList","bulletedList","todoList"].includes(o))return;if(r&&!0===r.value)return;var h=u.getChild(0),g=t.model.createRangeOn(h);if(!g.containsRange(l)&&!l.end.isEqual(g.end))return;var m=n.exec(h.data.substr(0,l.end.offset));m&&t.model.enqueueChange(function(e){var n=e.createPositionAt(u,0),o=e.createPositionAt(u,m[0].length),r=new qc(n,o);if(!1!==i({match:m})){e.remove(r);var _n239=t.model.document.selection.getFirstRange(),_o156=e.createRangeIn(u);!u.isEmpty||_o156.isEqual(_n239)||_o156.containsRange(_n239,!0)||e.remove(u);}r.detach(),t.model.enqueueChange(function(){t.plugins.get("Delete").requestUndoOnBackspace();});});});}function ak(t,e,n,o){var i,r;n instanceof RegExp?i=n:r=n,r=r||function(t){var e;var n=[],o=[];for(;null!==(e=i.exec(t))&&!(e&&e.length<4);){var _e246=e,_t313=_e246.index,_i152=_e246[1],_r57=_e246[2],_s30=_e246[3];var _a18=_i152+_r57+_s30;_t313+=e[0].length-_a18.length;var _l20=[_t313,_t313+_i152.length],_c8=[_t313+_i152.length+_r57.length,_t313+_i152.length+_r57.length+_s30.length];n.push(_l20),n.push(_c8),o.push([_t313+_i152.length,_t313+_i152.length+_r57.length]);}return{remove:n,format:o};},t.model.document.on("change:data",function(n,i){if(i.isUndo||!i.isLocal||!e.isEnabled)return;var s=t.model,a=s.document.selection;if(!a.isCollapsed)return;var l=Array.from(s.document.differ.getChanges()),c=l[0];if(1!=l.length||"insert"!==c.type||"$text"!=c.name||1!=c.length)return;var d=a.focus,u=d.parent,_ref80=function(t,e){var n=t.start;var o=Array.from(t.getItems()).reduce(function(t,o){return!o.is("$text")&&!o.is("$textProxy")||o.getAttribute("code")?(n=e.createPositionAfter(o),""):t+o.data;},"");return{text:o,range:e.createRange(n,t.end)};}(s.createRange(s.createPositionAt(u,0),d),s),h=_ref80.text,g=_ref80.range,m=r(h),p=lk(g.start,m.format,s),f=lk(g.start,m.remove,s);p.length&&f.length&&s.enqueueChange(function(e){if(!1!==o(e,p)){var _iterator351=_createForOfIteratorHelper(f.reverse()),_step351;try{for(_iterator351.s();!(_step351=_iterator351.n()).done;){var _t314=_step351.value;e.remove(_t314);}}catch(err){_iterator351.e(err);}finally{_iterator351.f();}s.enqueueChange(function(){t.plugins.get("Delete").requestUndoOnBackspace();});}});});}function lk(t,e,n){return e.filter(function(t){return void 0!==t[0]&&void 0!==t[1];}).map(function(e){return n.createRange(t.getShiftedBy(e[0]),t.getShiftedBy(e[1]));});}function ck(t,e){return function(n,o){if(!t.commands.get(e).isEnabled)return!1;var i=t.model.schema.getValidRanges(o,e);var _iterator352=_createForOfIteratorHelper(i),_step352;try{for(_iterator352.s();!(_step352=_iterator352.n()).done;){var _t315=_step352.value;n.setAttribute(e,!0,_t315);}}catch(err){_iterator352.e(err);}finally{_iterator352.f();}n.removeSelectionAttribute(e);};}var dk=/*#__PURE__*/function(_Hr8){_inherits(dk,_Hr8);var _super174=_createSuper(dk);function dk(t,e){var _this284;_classCallCheck(this,dk);_this284=_super174.call(this,t),_this284.attributeKey=e;return _this284;}_createClass(dk,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document;this.value=this._getValueFromFirstAllowedNode(),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey);}},{key:"execute",value:function execute(){var _this285=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document.selection,o=void 0===t.forceValue?!this.value:t.forceValue;e.change(function(t){if(n.isCollapsed)o?t.setSelectionAttribute(_this285.attributeKey,!0):t.removeSelectionAttribute(_this285.attributeKey);else{var _i153=e.schema.getValidRanges(n.getRanges(),_this285.attributeKey);var _iterator353=_createForOfIteratorHelper(_i153),_step353;try{for(_iterator353.s();!(_step353=_iterator353.n()).done;){var _e247=_step353.value;o?t.setAttribute(_this285.attributeKey,o,_e247):t.removeAttribute(_this285.attributeKey,_e247);}}catch(err){_iterator353.e(err);}finally{_iterator353.f();}}});}},{key:"_getValueFromFirstAllowedNode",value:function _getValueFromFirstAllowedNode(){var t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var _iterator354=_createForOfIteratorHelper(n.getRanges()),_step354;try{for(_iterator354.s();!(_step354=_iterator354.n()).done;){var _t316=_step354.value;var _iterator355=_createForOfIteratorHelper(_t316.getItems()),_step355;try{for(_iterator355.s();!(_step355=_iterator355.n()).done;){var _n240=_step355.value;if(e.checkAttribute(_n240,this.attributeKey))return _n240.hasAttribute(this.attributeKey);}}catch(err){_iterator355.e(err);}finally{_iterator355.f();}}}catch(err){_iterator354.e(err);}finally{_iterator354.f();}return!1;}}]);return dk;}(Hr);var uk="bold";var hk=/*#__PURE__*/function(_Fr22){_inherits(hk,_Fr22);var _super175=_createSuper(hk);function hk(){_classCallCheck(this,hk);return _super175.apply(this,arguments);}_createClass(hk,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:uk}),t.model.schema.setAttributeProperties(uk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:uk,view:"strong",upcastAlso:["b",function(t){var e=t.getStyle("font-weight");return e&&("bold"==e||Number(e)>=600)?{name:!0,styles:["font-weight"]}:null;}]}),t.commands.add(uk,new dk(t,uk)),t.keystrokes.set("CTRL+B",uk);}}],[{key:"pluginName",get:function get(){return"BoldEditing";}}]);return hk;}(Fr);var gk="bold";var mk=/*#__PURE__*/function(_Fr23){_inherits(mk,_Fr23);var _super176=_createSuper(mk);function mk(){_classCallCheck(this,mk);return _super176.apply(this,arguments);}_createClass(mk,[{key:"init",value:function init(){var _this286=this;var t=this.editor,e=t.t;t.ui.componentFactory.add(gk,function(n){var o=t.commands.get(gk),i=new gr(n);return i.set({label:e("Bold"),icon:dg.bold,keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),_this286.listenTo(i,"execute",function(){t.execute(gk),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"BoldUI";}}]);return mk;}(Fr);var pk=n(8180),fk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(pk.Z,fk);pk.Z.locals;var kk="italic";var bk=/*#__PURE__*/function(_Fr24){_inherits(bk,_Fr24);var _super177=_createSuper(bk);function bk(){_classCallCheck(this,bk);return _super177.apply(this,arguments);}_createClass(bk,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:kk}),t.model.schema.setAttributeProperties(kk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:kk,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(kk,new dk(t,kk)),t.keystrokes.set("CTRL+I",kk);}}],[{key:"pluginName",get:function get(){return"ItalicEditing";}}]);return bk;}(Fr);var wk="italic";var Ak=/*#__PURE__*/function(_Fr25){_inherits(Ak,_Fr25);var _super178=_createSuper(Ak);function Ak(){_classCallCheck(this,Ak);return _super178.apply(this,arguments);}_createClass(Ak,[{key:"init",value:function init(){var _this287=this;var t=this.editor,e=t.t;t.ui.componentFactory.add(wk,function(n){var o=t.commands.get(wk),i=new gr(n);return i.set({label:e("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m9.586 14.633.021.004c-.036.335.095.655.393.962.082.083.173.15.274.201h1.474a.6.6 0 1 1 0 1.2H5.304a.6.6 0 0 1 0-1.2h1.15c.474-.07.809-.182 1.005-.334.157-.122.291-.32.404-.597l2.416-9.55a1.053 1.053 0 0 0-.281-.823 1.12 1.12 0 0 0-.442-.296H8.15a.6.6 0 0 1 0-1.2h6.443a.6.6 0 1 1 0 1.2h-1.195c-.376.056-.65.155-.823.296-.215.175-.423.439-.623.79l-2.366 9.347z"/></svg>',keystroke:"CTRL+I",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),_this287.listenTo(i,"execute",function(){t.execute(wk),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"ItalicUI";}}]);return Ak;}(Fr);var _k="strikethrough";var Ck=/*#__PURE__*/function(_Fr26){_inherits(Ck,_Fr26);var _super179=_createSuper(Ck);function Ck(){_classCallCheck(this,Ck);return _super179.apply(this,arguments);}_createClass(Ck,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:_k}),t.model.schema.setAttributeProperties(_k,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:_k,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(_k,new dk(t,_k)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough");}}],[{key:"pluginName",get:function get(){return"StrikethroughEditing";}}]);return Ck;}(Fr);var vk="strikethrough";var yk=/*#__PURE__*/function(_Fr27){_inherits(yk,_Fr27);var _super180=_createSuper(yk);function yk(){_classCallCheck(this,yk);return _super180.apply(this,arguments);}_createClass(yk,[{key:"init",value:function init(){var _this288=this;var t=this.editor,e=t.t;t.ui.componentFactory.add(vk,function(n){var o=t.commands.get(vk),i=new gr(n);return i.set({label:e("Strikethrough"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 16.4c-.8-.4-1.5-.9-2.2-1.5a.6.6 0 0 1-.2-.5l.3-.6h1c1 1.2 2.1 1.7 3.7 1.7 1 0 1.8-.3 2.3-.6.6-.4.6-1.2.6-1.3.2-1.2-.9-2.1-.9-2.1h2.1c.3.7.4 1.2.4 1.7v.8l-.6 1.2c-.6.8-1.1 1-1.6 1.2a6 6 0 0 1-2.4.6c-1 0-1.8-.3-2.5-.6zM6.8 9 6 8.3c-.4-.5-.5-.8-.5-1.6 0-.7.1-1.3.5-1.8.4-.6 1-1 1.6-1.3a6.3 6.3 0 0 1 4.7 0 4 4 0 0 1 1.7 1l.3.7c0 .1.2.4-.2.7-.4.2-.9.1-1 0a3 3 0 0 0-1.2-1c-.4-.2-1-.3-2-.4-.7 0-1.4.2-2 .6-.8.6-1 .8-1 1.5 0 .8.5 1 1.2 1.5.6.4 1.1.7 1.9 1H6.8z"/><path d="M3 10.5V9h14v1.5z"/></svg>',keystroke:"CTRL+SHIFT+X",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),_this288.listenTo(i,"execute",function(){t.execute(vk),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"StrikethroughUI";}}]);return yk;}(Fr);var xk="underline";var Ek=/*#__PURE__*/function(_Fr28){_inherits(Ek,_Fr28);var _super181=_createSuper(Ek);function Ek(){_classCallCheck(this,Ek);return _super181.apply(this,arguments);}_createClass(Ek,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:xk}),t.model.schema.setAttributeProperties(xk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:xk,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(xk,new dk(t,xk)),t.keystrokes.set("CTRL+U","underline");}}],[{key:"pluginName",get:function get(){return"UnderlineEditing";}}]);return Ek;}(Fr);var Dk="underline";var Tk=/*#__PURE__*/function(_Fr29){_inherits(Tk,_Fr29);var _super182=_createSuper(Tk);function Tk(){_classCallCheck(this,Tk);return _super182.apply(this,arguments);}_createClass(Tk,[{key:"init",value:function init(){var _this289=this;var t=this.editor,e=t.t;t.ui.componentFactory.add(Dk,function(n){var o=t.commands.get(Dk),i=new gr(n);return i.set({label:e("Underline"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 18v-1.5h14V18zm2.2-8V3.6c0-.4.4-.6.8-.6.3 0 .7.2.7.6v6.2c0 2 1.3 2.8 3.2 2.8 1.9 0 3.4-.9 3.4-2.9V3.6c0-.3.4-.5.8-.5.3 0 .7.2.7.5V10c0 2.7-2.2 4-4.9 4-2.6 0-4.7-1.2-4.7-4z"/></svg>',keystroke:"CTRL+U",tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),_this289.listenTo(i,"execute",function(){t.execute(Dk),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"UnderlineUI";}}]);return Tk;}(Fr);var Sk=/*#__PURE__*/function(_Hr9){_inherits(Sk,_Hr9);var _super183=_createSuper(Sk);function Sk(){_classCallCheck(this,Sk);return _super183.apply(this,arguments);}_createClass(Sk,[{key:"refresh",value:function refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled();}},{key:"execute",value:function execute(){var _this290=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.schema,o=e.document.selection,i=Array.from(o.getSelectedBlocks()),r=void 0===t.forceValue?!this.value:t.forceValue;e.change(function(t){if(r){var _e248=i.filter(function(t){return Ik(t)||Bk(n,t);});_this290._applyQuote(t,_e248);}else _this290._removeQuote(t,i.filter(Ik));});}},{key:"_getValue",value:function _getValue(){var t=Ei(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!Ik(t));}},{key:"_checkEnabled",value:function _checkEnabled(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ei(t.getSelectedBlocks());return!!n&&Bk(e,n);}},{key:"_removeQuote",value:function _removeQuote(t,e){Mk(t,e).reverse().forEach(function(e){if(e.start.isAtStart&&e.end.isAtEnd)return void t.unwrap(e.start.parent);if(e.start.isAtStart){var _n241=t.createPositionBefore(e.start.parent);return void t.move(e,_n241);}e.end.isAtEnd||t.split(e.end);var n=t.createPositionAfter(e.end.parent);t.move(e,n);});}},{key:"_applyQuote",value:function _applyQuote(t,e){var n=[];Mk(t,e).reverse().forEach(function(e){var o=Ik(e.start);o||(o=t.createElement("blockQuote"),t.wrap(e,o)),n.push(o);}),n.reverse().reduce(function(e,n){return e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n;});}}]);return Sk;}(Hr);function Ik(t){return"blockQuote"==t.parent.name?t.parent:null;}function Mk(t,e){var n,o=0;var i=[];for(;o<e.length;){var _r58=e[o],_s31=e[o+1];n||(n=t.createPositionBefore(_r58)),_s31&&_r58.nextSibling==_s31||(i.push(t.createRange(n,t.createPositionAfter(_r58))),n=null),o++;}return i;}function Bk(t,e){var n=t.checkChild(e.parent,"blockQuote"),o=t.checkChild(["$root","blockQuote"],e);return n&&o;}var Nk=/*#__PURE__*/function(_Fr30){_inherits(Nk,_Fr30);var _super184=_createSuper(Nk);function Nk(){_classCallCheck(this,Nk);return _super184.apply(this,arguments);}_createClass(Nk,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new Sk(t)),e.register("blockQuote",{inheritAllFrom:"$container"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer(function(n){var o=t.model.document.differ.getChanges();var _iterator356=_createForOfIteratorHelper(o),_step356;try{for(_iterator356.s();!(_step356=_iterator356.n()).done;){var _t317=_step356.value;if("insert"==_t317.type){var _o157=_t317.position.nodeAfter;if(!_o157)continue;if(_o157.is("element","blockQuote")&&_o157.isEmpty)return n.remove(_o157),!0;if(_o157.is("element","blockQuote")&&!e.checkChild(_t317.position,_o157))return n.unwrap(_o157),!0;if(_o157.is("element")){var _t318=n.createRangeIn(_o157);var _iterator357=_createForOfIteratorHelper(_t318.getItems()),_step357;try{for(_iterator357.s();!(_step357=_iterator357.n()).done;){var _o158=_step357.value;if(_o158.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(_o158),_o158))return n.unwrap(_o158),!0;}}catch(err){_iterator357.e(err);}finally{_iterator357.f();}}}else if("remove"==_t317.type){var _e249=_t317.position.parent;if(_e249.is("element","blockQuote")&&_e249.isEmpty)return n.remove(_e249),!0;}}}catch(err){_iterator356.e(err);}finally{_iterator356.f();}return!1;});var n=this.editor.editing.view.document,o=t.model.document.selection,i=t.commands.get("blockQuote");this.listenTo(n,"enter",function(e,n){if(!o.isCollapsed||!i.value)return;o.getLastPosition().parent.isEmpty&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop());},{context:"blockquote"}),this.listenTo(n,"delete",function(e,n){if("backward"!=n.direction||!o.isCollapsed||!i.value)return;var r=o.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop());},{context:"blockquote"});}}],[{key:"pluginName",get:function get(){return"BlockQuoteEditing";}},{key:"requires",get:function get(){return[Lp,dp];}}]);return Nk;}(Fr);var zk=n(636),Pk={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(zk.Z,Pk);zk.Z.locals;var Lk=/*#__PURE__*/function(_Fr31){_inherits(Lk,_Fr31);var _super185=_createSuper(Lk);function Lk(){_classCallCheck(this,Lk);return _super185.apply(this,arguments);}_createClass(Lk,[{key:"init",value:function init(){var _this291=this;var t=this.editor,e=t.t;t.ui.componentFactory.add("blockQuote",function(n){var o=t.commands.get("blockQuote"),i=new gr(n);return i.set({label:e("Block quote"),icon:dg.quote,tooltip:!0,isToggleable:!0}),i.bind("isOn","isEnabled").to(o,"value","isEnabled"),_this291.listenTo(i,"execute",function(){t.execute("blockQuote"),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"BlockQuoteUI";}}]);return Lk;}(Fr);var Ok=/*#__PURE__*/function(_Fr32){_inherits(Ok,_Fr32);var _super186=_createSuper(Ok);function Ok(){_classCallCheck(this,Ok);return _super186.apply(this,arguments);}_createClass(Ok,[{key:"afterInit",value:function afterInit(){var t=this.editor,e=t.commands.get("ckbox");if(!e)return;var n=t.t;t.ui.componentFactory.add("ckbox",function(o){var i=new gr(o);return i.set({label:n("Open file manager"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isOn","isEnabled").to(e,"value","isEnabled"),i.on("execute",function(){t.execute("ckbox");}),i;});}}],[{key:"pluginName",get:function get(){return"CKBoxUI";}}]);return Ok;}(Fr);var Rk=4e3,jk=80,Fk=10;function Vk(_ref81){var t=_ref81.token,e=_ref81.id,n=_ref81.origin,o=_ref81.width,i=_ref81.extension;var r=Hk(t),s=function(t){var e=[t*Fk/100,jk],n=Math.floor(Math.max.apply(Math,e)),o=[Math.min(t,Rk)];var i=o[0];for(;i-n>=n;)i-=n,o.unshift(i);return o;}(o),a=function(t){if("bmp"===t||"tiff"===t||"jpg"===t)return"jpeg";return t;}(i);return{imageFallbackUrl:Uk({environmentId:r,id:e,origin:n,width:o,extension:a}),imageSources:[{srcset:s.map(function(t){return"".concat(Uk({environmentId:r,id:e,origin:n,width:t,extension:"webp"})," ").concat(t,"w");}).join(","),sizes:"(max-width: ".concat(o,"px) 100vw, ").concat(o,"px"),type:"image/webp"}]};}function Hk(t){var _t$value$split=t.value.split("."),_t$value$split2=_slicedToArray(_t$value$split,2),e=_t$value$split2[1];return JSON.parse(atob(e)).aud;}function Uk(_ref82){var t=_ref82.environmentId,e=_ref82.id,n=_ref82.origin,o=_ref82.width,i=_ref82.extension;return new URL("".concat(t,"/assets/").concat(e,"/images/").concat(o,".").concat(i),n).toString();}var Wk=/*#__PURE__*/function(_Hr10){_inherits(Wk,_Hr10);var _super187=_createSuper(Wk);function Wk(t){var _this292;_classCallCheck(this,Wk);_this292=_super187.call(this,t),_this292._chosenAssets=new Set(),_this292._wrapper=null,_this292._initListeners();return _this292;}_createClass(Wk,[{key:"refresh",value:function refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled();}},{key:"execute",value:function execute(){this.fire("ckbox:open");}},{key:"_getValue",value:function _getValue(){return null!==this._wrapper;}},{key:"_checkEnabled",value:function _checkEnabled(){var t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");return!(!t.isEnabled&&!e.isEnabled);}},{key:"_prepareOptions",value:function _prepareOptions(){var _this293=this;var 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 onClose(){return _this293.fire("ckbox:close");}},assets:{onChoose:function onChoose(t){return _this293.fire("ckbox:choose",t);}}};}},{key:"_initListeners",value:function _initListeners(){var _this294=this;var t=this.editor,e=t.model,n=!t.config.get("ckbox.ignoreDataId");this.on("ckbox",function(){_this294.refresh();},{priority:"low"}),this.on("ckbox:open",function(){_this294.isEnabled&&!_this294.value&&(_this294._wrapper=wt(document,"div",{class:"ck ckbox-wrapper"}),document.body.appendChild(_this294._wrapper),window.CKBox.mount(_this294._wrapper,_this294._prepareOptions()));}),this.on("ckbox:close",function(){_this294.value&&(_this294._wrapper.remove(),_this294._wrapper=null);}),this.on("ckbox:choose",function(o,i){if(!_this294.isEnabled)return;var r=t.commands.get("insertImage"),s=t.commands.get("link"),a=t.plugins.get("CKBoxEditing"),l=function(_ref83){var t=_ref83.assets,e=_ref83.origin,n=_ref83.token,o=_ref83.isImageAllowed,i=_ref83.isLinkAllowed;return t.map(function(t){return function(t){var e=t.data.metadata;if(!e)return!1;return e.width&&e.height;}(t)?{id:t.data.id,type:"image",attributes:Gk(t,n,e)}:{id:t.data.id,type:"link",attributes:qk(t,n,e)};}).filter(function(t){return"image"===t.type?o:i;});}({assets:i,origin:t.config.get("ckbox.assetsOrigin"),token:a.getToken(),isImageAllowed:r.isEnabled,isLinkAllowed:s.isEnabled});0!==l.length&&e.change(function(t){var _iterator358=_createForOfIteratorHelper(l),_step358;try{var _loop6=function _loop6(){var e=_step358.value;var o=e===l[l.length-1];_this294._insertAsset(e,o,t),n&&(setTimeout(function(){return _this294._chosenAssets.delete(e);},1e3),_this294._chosenAssets.add(e));};for(_iterator358.s();!(_step358=_iterator358.n()).done;){_loop6();}}catch(err){_iterator358.e(err);}finally{_iterator358.f();}});}),this.listenTo(t,"destroy",function(){_this294.fire("ckbox:close"),_this294._chosenAssets.clear();});}},{key:"_insertAsset",value:function _insertAsset(t,e,n){var o=this.editor.model.document.selection;n.removeSelectionAttribute("linkHref"),"image"===t.type?this._insertImage(t):this._insertLink(t,n),e||n.setSelection(o.getLastPosition());}},{key:"_insertImage",value:function _insertImage(t){var e=this.editor,_t$attributes=t.attributes,n=_t$attributes.imageFallbackUrl,o=_t$attributes.imageSources,i=_t$attributes.imageTextAlternative;e.execute("insertImage",{source:{src:n,sources:o,alt:i}});}},{key:"_insertLink",value:function _insertLink(t,e){var n=this.editor,o=n.model,i=o.document.selection,_t$attributes2=t.attributes,r=_t$attributes2.linkName,s=_t$attributes2.linkHref;if(i.isCollapsed){var _t319=Si(i.getAttributes()),_n242=e.createText(r,_t319),_s32=o.insertContent(_n242);e.setSelection(_s32);}n.execute("link",s);}}]);return Wk;}(Hr);function Gk(t,e,n){var _Vk=Vk({token:e,origin:n,id:t.data.id,width:t.data.metadata.width,extension:t.data.extension}),o=_Vk.imageFallbackUrl,i=_Vk.imageSources;return{imageFallbackUrl:o,imageSources:i,imageTextAlternative:t.data.metadata.description||""};}function qk(t,e,n){return{linkName:t.data.name,linkHref:$k(t,e,n)};}function $k(t,e,n){var o=Hk(e),i=new URL("".concat(o,"/assets/").concat(t.data.id,"/file"),n);return i.searchParams.set("download","true"),i.toString();}var Kk=/*#__PURE__*/function(_Fr33){_inherits(Kk,_Fr33);var _super188=_createSuper(Kk);function Kk(){_classCallCheck(this,Kk);return _super188.apply(this,arguments);}_createClass(Kk,[{key:"afterInit",value:function(){var _afterInit=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee8(){var t,e,n,o,i,r,s;return _regeneratorRuntime().wrap(function _callee8$(_context39){while(1)switch(_context39.prev=_context39.next){case 0:t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!(!e&&!n)){_context39.next=3;break;}return _context39.abrupt("return");case 3:o=t.plugins.get(Jf),i=t.plugins.get(Zk);o.createUploadAdapter=function(e){return new Yk(e,i.getToken(),t);};r=!t.config.get("ckbox.ignoreDataId"),s=t.plugins.get("ImageUploadEditing");r&&s.on("uploadComplete",function(e,_ref84){var n=_ref84.imageElement,o=_ref84.data;t.model.change(function(t){t.setAttribute("ckboxImageId",o.ckboxImageId,n);});});case 7:case"end":return _context39.stop();}},_callee8,this);}));function afterInit(){return _afterInit.apply(this,arguments);}return afterInit;}()}],[{key:"requires",get:function get(){return["ImageUploadEditing","ImageUploadProgress",Jf,Zk];}},{key:"pluginName",get:function get(){return"CKBoxUploadAdapter";}}]);return Kk;}(Fr);var Yk=/*#__PURE__*/function(){function Yk(t,e,n){_classCallCheck(this,Yk);this.loader=t,this.token=e,this.editor=n,this.controller=new AbortController(),this.serviceOrigin=n.config.get("ckbox.serviceOrigin"),this.assetsOrigin=n.config.get("ckbox.assetsOrigin");}_createClass(Yk,[{key:"getAvailableCategories",value:function(){var _getAvailableCategories=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee10(){var _this295=this;var t,e,_args41=arguments;return _regeneratorRuntime().wrap(function _callee10$(_context41){while(1)switch(_context41.prev=_context41.next){case 0:t=_args41.length>0&&_args41[0]!==undefined?_args41[0]:0;e=new URL("categories",this.serviceOrigin);return _context41.abrupt("return",(e.searchParams.set("limit",50..toString()),e.searchParams.set("offset",t.toString()),this._sendHttpRequest({url:e}).then(/*#__PURE__*/function(){var _ref85=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee9(e){var _n243;return _regeneratorRuntime().wrap(function _callee9$(_context40){while(1)switch(_context40.prev=_context40.next){case 0:if(!(e.totalCount-(t+50)>0)){_context40.next=5;break;}_context40.next=3;return _this295.getAvailableCategories(t+50);case 3:_n243=_context40.sent;return _context40.abrupt("return",[].concat(_toConsumableArray(e.items),_toConsumableArray(_n243)));case 5:return _context40.abrupt("return",e.items);case 6:case"end":return _context40.stop();}},_callee9);}));return function(_x2){return _ref85.apply(this,arguments);};}()).catch(function(){_this295.controller.signal.throwIfAborted(),v("ckbox-fetch-category-http-error");})));case 3:case"end":return _context41.stop();}},_callee10,this);}));function getAvailableCategories(){return _getAvailableCategories.apply(this,arguments);}return getAvailableCategories;}()},{key:"getCategoryIdForFile",value:function(){var _getCategoryIdForFile=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee11(t){var e,n,o,_t320,_e250,i;return _regeneratorRuntime().wrap(function _callee11$(_context42){while(1)switch(_context42.prev=_context42.next){case 0:e=Qk(t.name);_context42.next=3;return this.getAvailableCategories();case 3:n=_context42.sent;if(n){_context42.next=6;break;}return _context42.abrupt("return",null);case 6:o=this.editor.config.get("ckbox.defaultUploadCategories");if(!o){_context42.next=12;break;}_t320=Object.keys(o).find(function(t){return o[t].includes(e);});if(!_t320){_context42.next=12;break;}_e250=n.find(function(e){return e.id===_t320||e.name===_t320;});return _context42.abrupt("return",_e250?_e250.id:null);case 12:i=n.find(function(t){return t.extensions.includes(e);});return _context42.abrupt("return",i?i.id:null);case 14:case"end":return _context42.stop();}},_callee11,this);}));function getCategoryIdForFile(_x3){return _getCategoryIdForFile.apply(this,arguments);}return getCategoryIdForFile;}()},{key:"upload",value:function(){var _upload=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee13(){var _this296=this;var t,e,n,o,i,r,s;return _regeneratorRuntime().wrap(function _callee13$(_context44){while(1)switch(_context44.prev=_context44.next){case 0:t=this.editor.t;e=t("Cannot determine a category for the uploaded file.");_context44.next=4;return this.loader.file;case 4:n=_context44.sent;_context44.next=7;return this.getCategoryIdForFile(n);case 7:o=_context44.sent;if(o){_context44.next=10;break;}return _context44.abrupt("return",Promise.reject(e));case 10:i=new URL("assets",this.serviceOrigin),r=new FormData();r.append("categoryId",o),r.append("file",n);s={method:"POST",url:i,data:r,onUploadProgress:function onUploadProgress(t){t.lengthComputable&&(_this296.loader.uploadTotal=t.total,_this296.loader.uploaded=t.loaded);}};return _context44.abrupt("return",this._sendHttpRequest(s).then(/*#__PURE__*/function(){var _ref86=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee12(t){var e,o,i;return _regeneratorRuntime().wrap(function _callee12$(_context43){while(1)switch(_context43.prev=_context43.next){case 0:_context43.next=2;return _this296._getImageWidth();case 2:e=_context43.sent;o=Qk(n.name);i=Vk({token:_this296.token,id:t.id,origin:_this296.assetsOrigin,width:e,extension:o});return _context43.abrupt("return",{ckboxImageId:t.id,default:i.imageFallbackUrl,sources:i.imageSources});case 6:case"end":return _context43.stop();}},_callee12);}));return function(_x4){return _ref86.apply(this,arguments);};}()).catch(function(){var e=t("Cannot upload file:")+" ".concat(n.name,".");return Promise.reject(e);}));case 14:case"end":return _context44.stop();}},_callee13,this);}));function upload(){return _upload.apply(this,arguments);}return upload;}()},{key:"abort",value:function abort(){this.controller.abort();}},{key:"_sendHttpRequest",value:function _sendHttpRequest(_ref87){var t=_ref87.url,_ref87$method=_ref87.method,e=_ref87$method===void 0?"GET":_ref87$method,n=_ref87.data,o=_ref87.onUploadProgress;var i=this.controller.signal,r=new XMLHttpRequest();r.open(e,t.toString(),!0),r.setRequestHeader("Authorization",this.token.value),r.setRequestHeader("CKBox-Version","CKEditor 5"),r.responseType="json";var s=function s(){r.abort();};return new Promise(function(t,e){i.addEventListener("abort",s),r.addEventListener("loadstart",function(){i.addEventListener("abort",s);}),r.addEventListener("loadend",function(){i.removeEventListener("abort",s);}),r.addEventListener("error",function(){e();}),r.addEventListener("abort",function(){e();}),r.addEventListener("load",/*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee14(){var n;return _regeneratorRuntime().wrap(function _callee14$(_context45){while(1)switch(_context45.prev=_context45.next){case 0:n=r.response;return _context45.abrupt("return",!n||n.statusCode>=400?e(n&&n.message):t(n));case 2:case"end":return _context45.stop();}},_callee14);}))),o&&r.upload.addEventListener("progress",function(t){o(t);}),r.send(n);});}},{key:"_getImageWidth",value:function _getImageWidth(){var _this297=this;return new Promise(function(t){var e=new Image();e.onload=function(){URL.revokeObjectURL(e.src),t(e.width);},e.src=_this297.loader.data;});}}]);return Yk;}();function Qk(t){return t.match(/*#__PURE__*/_wrapRegExp(/\.([^.]+)$/,{ext:1})).groups.ext;}var Zk=/*#__PURE__*/function(_Fr34){_inherits(Zk,_Fr34);var _super189=_createSuper(Zk);function Zk(){_classCallCheck(this,Zk);return _super189.apply(this,arguments);}_createClass(Zk,[{key:"init",value:function(){var _init=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee15(){var t,e,n,o,i,_e251;return _regeneratorRuntime().wrap(function _callee15$(_context46){while(1)switch(_context46.prev=_context46.next){case 0:t=this.editor,e=!!t.config.get("ckbox"),n=!!window.CKBox;if(!(!e&&!n)){_context46.next=3;break;}return _context46.abrupt("return");case 3:this._initConfig();o=t.plugins.get("CloudServicesCore"),i=t.config.get("ckbox.tokenUrl");if(!(i===t.config.get("cloudServices.tokenUrl"))){_context46.next=10;break;}_e251=t.plugins.get("CloudServices");this._token=_e251.token;_context46.next=13;break;case 10:_context46.next=12;return o.createToken(i).init();case 12:this._token=_context46.sent;case 13:t.config.get("ckbox.ignoreDataId")||(this._initSchema(),this._initConversion(),this._initFixers()),n&&t.commands.add("ckbox",new Wk(t));case 14:case"end":return _context46.stop();}},_callee15,this);}));function init(){return _init.apply(this,arguments);}return init;}()},{key:"getToken",value:function getToken(){return this._token;}},{key:"_initConfig",value:function _initConfig(){var t=this.editor;t.config.define("ckbox",{serviceOrigin:"https://api.ckbox.io",assetsOrigin:"https://ckbox.cloud",defaultUploadCategories:null,ignoreDataId:!1,language:t.locale.uiLanguage,theme:"default",tokenUrl:t.config.get("cloudServices.tokenUrl")});if(!t.config.get("ckbox.tokenUrl"))throw new _("ckbox-plugin-missing-token-url",this);t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||v("ckbox-plugin-image-feature-missing",t);}},{key:"_initSchema",value:function _initSchema(){var t=this.editor.model.schema;t.extend("$text",{allowAttributes:"ckboxLinkId"}),t.isRegistered("imageBlock")&&t.extend("imageBlock",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.isRegistered("imageInline")&&t.extend("imageInline",{allowAttributes:["ckboxImageId","ckboxLinkId"]}),t.addAttributeCheck(function(t,e){if(!!!t.last.getAttribute("linkHref")&&"ckboxLinkId"===e)return!1;});}},{key:"_initConversion",value:function _initConversion(){var t=this.editor;t.conversion.for("downcast").add(function(t){t.on("attribute:ckboxLinkId:imageBlock",function(t,e,n){var o=n.writer,i=n.mapper,r=n.consumable;if(!r.consume(e.item,t.name))return;var s=_toConsumableArray(i.toViewElement(e.item).getChildren()).find(function(t){return"a"===t.name;});s&&(e.item.hasAttribute("ckboxLinkId")?o.setAttribute("data-ckbox-resource-id",e.item.getAttribute("ckboxLinkId"),s):o.removeAttribute("data-ckbox-resource-id",s));},{priority:"low"}),t.on("attribute:ckboxLinkId",function(t,e,n){var o=n.writer,i=n.mapper,r=n.consumable;if(r.consume(e.item,t.name)){if(e.attributeOldValue){var _t321=Xk(o,e.attributeOldValue);o.unwrap(i.toViewRange(e.range),_t321);}if(e.attributeNewValue){var _t322=Xk(o,e.attributeNewValue);if(e.item.is("selection")){var _e252=o.document.selection;o.wrap(_e252.getFirstRange(),_t322);}else o.wrap(i.toViewRange(e.range),_t322);}}},{priority:"low"});}),t.conversion.for("upcast").add(function(t){t.on("element:a",function(t,e,n){var o=n.writer,i=n.consumable;if(!e.viewItem.getAttribute("href"))return;if(!i.consume(e.viewItem,{attributes:["data-ckbox-resource-id"]}))return;var r=e.viewItem.getAttribute("data-ckbox-resource-id");if(r)if(e.modelRange){var _iterator359=_createForOfIteratorHelper(e.modelRange.getItems()),_step359;try{for(_iterator359.s();!(_step359=_iterator359.n()).done;){var _t323=_step359.value;_t323.is("$textProxy")&&(_t323=_t323.textNode),tb(_t323)&&o.setAttribute("ckboxLinkId",r,_t323);}}catch(err){_iterator359.e(err);}finally{_iterator359.f();}}else{var _t324=e.modelCursor.nodeBefore||e.modelCursor.parent;o.setAttribute("ckboxLinkId",r,_t324);}},{priority:"low"});}),t.conversion.for("downcast").attributeToAttribute({model:"ckboxImageId",view:"data-ckbox-resource-id"}),t.conversion.for("upcast").elementToAttribute({model:{key:"ckboxImageId",value:function value(t){return t.getAttribute("data-ckbox-resource-id");}},view:{attributes:{"data-ckbox-resource-id":/[\s\S]+/}}});}},{key:"_initFixers",value:function _initFixers(){var t=this.editor,e=t.model,n=e.document.selection;e.document.registerPostFixer(function(t){return function(e){var n=!1;var o=t.model,i=t.commands.get("ckbox");if(!i)return n;var _iterator360=_createForOfIteratorHelper(o.document.differ.getChanges()),_step360;try{for(_iterator360.s();!(_step360=_iterator360.n()).done;){var _t325=_step360.value;if("insert"!==_t325.type&&"attribute"!==_t325.type)continue;var _o159="insert"===_t325.type?new Bc(_t325.position,_t325.position.getShiftedBy(_t325.length)):_t325.range,_r59="attribute"===_t325.type&&"linkHref"===_t325.attributeKey&&null===_t325.attributeNewValue;var _iterator361=_createForOfIteratorHelper(_o159.getItems()),_step361;try{for(_iterator361.s();!(_step361=_iterator361.n()).done;){var _t326=_step361.value;if(_r59&&_t326.hasAttribute("ckboxLinkId")){e.removeAttribute("ckboxLinkId",_t326),n=!0;continue;}var _o160=Jk(_t326,i._chosenAssets);var _iterator362=_createForOfIteratorHelper(_o160),_step362;try{for(_iterator362.s();!(_step362=_iterator362.n()).done;){var _i154=_step362.value;var _o161="image"===_i154.type?"ckboxImageId":"ckboxLinkId";_i154.id!==_t326.getAttribute(_o161)&&(e.setAttribute(_o161,_i154.id,_t326),n=!0);}}catch(err){_iterator362.e(err);}finally{_iterator362.f();}}}catch(err){_iterator361.e(err);}finally{_iterator361.f();}}}catch(err){_iterator360.e(err);}finally{_iterator360.f();}return n;};}(t)),e.document.registerPostFixer(function(t){return function(e){return!(t.hasAttribute("linkHref")||!t.hasAttribute("ckboxLinkId"))&&(e.removeSelectionAttribute("ckboxLinkId"),!0);};}(n));}}],[{key:"pluginName",get:function get(){return"CKBoxEditing";}},{key:"requires",get:function get(){return["CloudServices","LinkEditing","PictureEditing",Kk];}}]);return Zk;}(Fr);function Jk(t,e){var n=t.is("element","imageInline")||t.is("element","imageBlock"),o=t.hasAttribute("linkHref");return _toConsumableArray(e).filter(function(e){return"image"===e.type&&n?e.attributes.imageFallbackUrl===t.getAttribute("src"):"link"===e.type&&o?e.attributes.linkHref===t.getAttribute("linkHref"):void 0;});}function Xk(t,e){var n=t.createAttributeElement("a",{"data-ckbox-resource-id":e},{priority:5});return t.setCustomProperty("link",!0,n),n;}function tb(t){return!!t.is("$text")||!(!t.is("element","imageInline")&&!t.is("element","imageBlock"));}var eb=/*#__PURE__*/function(_Fr35){_inherits(eb,_Fr35);var _super190=_createSuper(eb);function eb(){_classCallCheck(this,eb);return _super190.apply(this,arguments);}_createClass(eb,[{key:"init",value:function init(){var t=this.editor,e=t.ui.componentFactory,n=t.t;e.add("ckfinder",function(e){var o=t.commands.get("ckfinder"),i=new gr(e);return i.set({label:n("Insert image or file"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.627 16.5zm5.873-.196zm0-7.001V8h-13v8.5h4.341c.191.54.457 1.044.785 1.5H2a1.5 1.5 0 0 1-1.5-1.5v-13A1.5 1.5 0 0 1 2 2h4.5a1.5 1.5 0 0 1 1.06.44L9.122 4H16a1.5 1.5 0 0 1 1.5 1.5v1A1.5 1.5 0 0 1 19 8v2.531a6.027 6.027 0 0 0-1.5-1.228zM16 6.5v-1H8.5l-2-2H2v13h1V8a1.5 1.5 0 0 1 1.5-1.5H16z"/><path d="M14.5 19.5a5 5 0 1 1 0-10 5 5 0 0 1 0 10zM15 14v-2h-1v2h-2v1h2v2h1v-2h2v-1h-2z"/></svg>',tooltip:!0}),i.bind("isEnabled").to(o),i.on("execute",function(){t.execute("ckfinder"),t.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"CKFinderUI";}}]);return eb;}(Fr);var nb=/*#__PURE__*/function(_Hr11){_inherits(nb,_Hr11);var _super191=_createSuper(nb);function nb(t){var _this298;_classCallCheck(this,nb);_this298=_super191.call(this,t),_this298.affectsData=!1,_this298.stopListening(_this298.editor.model.document,"change"),_this298.listenTo(_this298.editor.model.document,"change",function(){return _this298.refresh();},{priority:"low"});return _this298;}_createClass(nb,[{key:"refresh",value:function refresh(){var t=this.editor.commands.get("insertImage"),e=this.editor.commands.get("link");this.isEnabled=t.isEnabled||e.isEnabled;}},{key:"execute",value:function execute(){var t=this.editor,e=this.editor.config.get("ckfinder.openerMethod")||"modal";if("popup"!=e&&"modal"!=e)throw new _("ckfinder-unknown-openermethod",t);var n=this.editor.config.get("ckfinder.options")||{};n.chooseFiles=!0;var o=n.onInit;n.language||(n.language=t.locale.uiLanguage),n.onInit=function(e){o&&o(e),e.on("files:choose",function(n){var o=n.data.files.toArray(),i=o.filter(function(t){return!t.isImage();}),r=o.filter(function(t){return t.isImage();});var _iterator363=_createForOfIteratorHelper(i),_step363;try{for(_iterator363.s();!(_step363=_iterator363.n()).done;){var _e253=_step363.value;t.execute("link",_e253.getUrl());}}catch(err){_iterator363.e(err);}finally{_iterator363.f();}var s=[];var _iterator364=_createForOfIteratorHelper(r),_step364;try{for(_iterator364.s();!(_step364=_iterator364.n()).done;){var _t327=_step364.value;var _n244=_t327.getUrl();s.push(_n244||e.request("file:getProxyUrl",{file:_t327}));}}catch(err){_iterator364.e(err);}finally{_iterator364.f();}s.length&&ob(t,s);}),e.on("file:choose:resizedImage",function(e){var n=e.data.resizedUrl;if(n)ob(t,[n]);else{var _e254=t.plugins.get("Notification"),_n245=t.locale.t;_e254.showWarning(_n245("Could not obtain resized image URL."),{title:_n245("Selecting resized image failed"),namespace:"ckfinder"});}});},window.CKFinder[e](n);}}]);return nb;}(Hr);function ob(t,e){if(t.commands.get("insertImage").isEnabled)t.execute("insertImage",{source:e});else{var _e255=t.plugins.get("Notification"),_n246=t.locale.t;_e255.showWarning(_n246("Could not insert image at the current position."),{title:_n246("Inserting image failed"),namespace:"ckfinder"});}}var ib=/*#__PURE__*/function(_Fr36){_inherits(ib,_Fr36);var _super192=_createSuper(ib);function ib(){_classCallCheck(this,ib);return _super192.apply(this,arguments);}_createClass(ib,[{key:"init",value:function init(){var t=this.editor;if(!t.plugins.has("ImageBlockEditing")&&!t.plugins.has("ImageInlineEditing"))throw new _("ckfinder-missing-image-plugin",t);t.commands.add("ckfinder",new nb(t));}}],[{key:"pluginName",get:function get(){return"CKFinderEditing";}},{key:"requires",get:function get(){return[pm,"LinkEditing"];}}]);return ib;}(Fr);var rb=/*#__PURE__*/function(_Fr37){_inherits(rb,_Fr37);var _super193=_createSuper(rb);function rb(){_classCallCheck(this,rb);return _super193.apply(this,arguments);}_createClass(rb,[{key:"init",value:function init(){var _this299=this;var t=this.editor,e=t.plugins.get("CloudServices"),n=e.token,o=e.uploadUrl;if(!n)return;var i=t.plugins.get("CloudServicesCore");this._uploadGateway=i.createUploadGateway(n,o),t.plugins.get(Jf).createUploadAdapter=function(t){return new sb(_this299._uploadGateway,t);};}}],[{key:"pluginName",get:function get(){return"CloudServicesUploadAdapter";}},{key:"requires",get:function get(){return["CloudServices",Jf];}}]);return rb;}(Fr);var sb=/*#__PURE__*/function(){function sb(t,e){_classCallCheck(this,sb);this.uploadGateway=t,this.loader=e;}_createClass(sb,[{key:"upload",value:function upload(){var _this300=this;return this.loader.file.then(function(t){return _this300.fileUploader=_this300.uploadGateway.upload(t),_this300.fileUploader.on("progress",function(t,e){_this300.loader.uploadTotal=e.total,_this300.loader.uploaded=e.uploaded;}),_this300.fileUploader.send();});}},{key:"abort",value:function abort(){this.fileUploader.abort();}}]);return sb;}();var ab=/*#__PURE__*/function(_Hr12){_inherits(ab,_Hr12);var _super194=_createSuper(ab);function ab(){_classCallCheck(this,ab);return _super194.apply(this,arguments);}_createClass(ab,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=Ei(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&lb(e,t.schema);}},{key:"execute",value:function execute(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document;e.change(function(o){var i=(t.selection||n.selection).getSelectedBlocks();var _iterator365=_createForOfIteratorHelper(i),_step365;try{for(_iterator365.s();!(_step365=_iterator365.n()).done;){var _t328=_step365.value;!_t328.is("element","paragraph")&&lb(_t328,e.schema)&&o.rename(_t328,"paragraph");}}catch(err){_iterator365.e(err);}finally{_iterator365.f();}});}}]);return ab;}(Hr);function lb(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t);}var cb=/*#__PURE__*/function(_Hr13){_inherits(cb,_Hr13);var _super195=_createSuper(cb);function cb(){_classCallCheck(this,cb);return _super195.apply(this,arguments);}_createClass(cb,[{key:"execute",value:function execute(t){var e=this.editor.model,n=t.attributes;var o=t.position;e.change(function(t){var i=t.createElement("paragraph");if(n&&e.schema.setAllowedAttributes(i,n,t),!e.schema.checkChild(o.parent,i)){var _n247=e.schema.findAllowedParent(o,i);if(!_n247)return;o=t.split(o,_n247).position;}e.insertContent(i,o),t.setSelection(i,"in");});}}]);return cb;}(Hr);var db=/*#__PURE__*/function(_Fr38){_inherits(db,_Fr38);var _super196=_createSuper(db);function db(){_classCallCheck(this,db);return _super196.apply(this,arguments);}_createClass(db,[{key:"init",value:function init(){var t=this.editor,e=t.model;t.commands.add("paragraph",new ab(t)),t.commands.add("insertParagraph",new cb(t)),e.schema.register("paragraph",{inheritAllFrom:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:function model(t,_ref89){var e=_ref89.writer;return db.paragraphLikeElements.has(t.name)?t.isEmpty?null:e.createElement("paragraph"):null;},view:/.+/,converterPriority:"low"});}}],[{key:"pluginName",get:function get(){return"Paragraph";}}]);return db;}(Fr);db.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var ub=/*#__PURE__*/function(_Hr14){_inherits(ub,_Hr14);var _super197=_createSuper(ub);function ub(t,e){var _this301;_classCallCheck(this,ub);_this301=_super197.call(this,t),_this301.modelElements=e;return _this301;}_createClass(ub,[{key:"refresh",value:function refresh(){var _this302=this;var t=Ei(this.editor.model.document.selection.getSelectedBlocks());this.value=!!t&&this.modelElements.includes(t.name)&&t.name,this.isEnabled=!!t&&this.modelElements.some(function(e){return hb(t,e,_this302.editor.model.schema);});}},{key:"execute",value:function execute(t){var e=this.editor.model,n=e.document,o=t.value;e.change(function(t){var i=Array.from(n.selection.getSelectedBlocks()).filter(function(t){return hb(t,o,e.schema);});var _iterator366=_createForOfIteratorHelper(i),_step366;try{for(_iterator366.s();!(_step366=_iterator366.n()).done;){var _e256=_step366.value;_e256.is("element",o)||t.rename(_e256,o);}}catch(err){_iterator366.e(err);}finally{_iterator366.f();}});}}]);return ub;}(Hr);function hb(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t);}var gb="paragraph";var mb=/*#__PURE__*/function(_Fr39){_inherits(mb,_Fr39);var _super198=_createSuper(mb);function mb(t){var _this303;_classCallCheck(this,mb);_this303=_super198.call(this,t),t.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"}]});return _this303;}_createClass(mb,[{key:"init",value:function init(){var t=this.editor,e=t.config.get("heading.options"),n=[];var _iterator367=_createForOfIteratorHelper(e),_step367;try{for(_iterator367.s();!(_step367=_iterator367.n()).done;){var _o162=_step367.value;"paragraph"!==_o162.model&&(t.model.schema.register(_o162.model,{inheritAllFrom:"$block"}),t.conversion.elementToElement(_o162),n.push(_o162.model));}}catch(err){_iterator367.e(err);}finally{_iterator367.f();}this._addDefaultH1Conversion(t),t.commands.add("heading",new ub(t,n));}},{key:"afterInit",value:function afterInit(){var t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",function(e,o){var i=t.model.document.selection.getFirstPosition().parent;n.some(function(t){return i.is("element",t.model);})&&!i.is("element",gb)&&0===i.childCount&&o.writer.rename(i,gb);});}},{key:"_addDefaultH1Conversion",value:function _addDefaultH1Conversion(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:b.get("low")+1});}}],[{key:"pluginName",get:function get(){return"HeadingEditing";}},{key:"requires",get:function get(){return[db];}}]);return mb;}(Fr);var pb=n(3230),fb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(pb.Z,fb);pb.Z.locals;var kb=/*#__PURE__*/function(_Fr40){_inherits(kb,_Fr40);var _super199=_createSuper(kb);function kb(){_classCallCheck(this,kb);return _super199.apply(this,arguments);}_createClass(kb,[{key:"init",value:function init(){var _this304=this;var t=this.editor,e=t.t,n=function(t){var e=t.t,n={Paragraph:e("Paragraph"),"Heading 1":e("Heading 1"),"Heading 2":e("Heading 2"),"Heading 3":e("Heading 3"),"Heading 4":e("Heading 4"),"Heading 5":e("Heading 5"),"Heading 6":e("Heading 6")};return t.config.get("heading.options").map(function(t){var e=n[t.title];return e&&e!=t.title&&(t.title=e),t;});}(t),o=e("Choose heading"),i=e("Heading");t.ui.componentFactory.add("heading",function(e){var r={},s=new xi(),a=t.commands.get("heading"),l=t.commands.get("paragraph"),c=[a];var _iterator368=_createForOfIteratorHelper(n),_step368;try{var _loop7=function _loop7(){var t=_step368.value;var e={type:"button",model:new fm({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(l,"value"),e.model.set("commandName","paragraph"),c.push(l)):(e.model.bind("isOn").to(a,"value",function(e){return e===t.model;}),e.model.set({commandName:"heading",commandValue:t.model})),s.add(e),r[t.model]=t.title;};for(_iterator368.s();!(_step368=_iterator368.n()).done;){_loop7();}}catch(err){_iterator368.e(err);}finally{_iterator368.f();}var d=Tg(e);return Mg(d,s),d.buttonView.set({isOn:!1,withText:!0,tooltip:i}),d.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),d.bind("isEnabled").toMany(c,"isEnabled",function(){for(var _len33=arguments.length,t=new Array(_len33),_key33=0;_key33<_len33;_key33++){t[_key33]=arguments[_key33];}return t.some(function(t){return t;});}),d.buttonView.bind("label").to(a,"value",l,"value",function(t,e){var n=t||e&&"paragraph";return"boolean"==typeof n?o:r[n]?r[n]:o;}),_this304.listenTo(d,"execute",function(e){var _e$source=e.source,n=_e$source.commandName,o=_e$source.commandValue;t.execute(n,o?{value:o}:void 0),t.editing.view.focus();}),d;});}}],[{key:"pluginName",get:function get(){return"HeadingUI";}}]);return kb;}(Fr);new Set(["paragraph","heading1","heading2","heading3","heading4","heading5","heading6"]);function bb(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot("children")]);}function wb(t,e){var n=t.plugins.get("ImageUtils"),o=t.plugins.has("ImageInlineEditing")&&t.plugins.has("ImageBlockEditing");return function(t){if(!n.isInlineImageView(t))return null;if(!o)return i(t);return("block"==t.getStyle("display")||t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:i(t);};function i(t){var e={name:!0};return t.hasAttribute("src")&&(e.attributes=["src"]),e;}}function Ab(t,e){var n=Ei(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline";}var _b=/*#__PURE__*/function(_Fr41){_inherits(_b,_Fr41);var _super200=_createSuper(_b);function _b(){_classCallCheck(this,_b);return _super200.apply(this,arguments);}_createClass(_b,[{key:"isImage",value:function isImage(t){return this.isInlineImage(t)||this.isBlockImage(t);}},{key:"isInlineImageView",value:function isInlineImageView(t){return!!t&&t.is("element","img");}},{key:"isBlockImageView",value:function isBlockImageView(t){return!!t&&t.is("element","figure")&&t.hasClass("image");}},{key:"insertImage",value:function insertImage(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:null;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:null;var o=this.editor,i=o.model,r=i.document.selection;n=Cb(o,e||r,n),t=_objectSpread(_objectSpread({},Object.fromEntries(r.getAttributes())),t);for(var _e257 in t)i.schema.checkAttribute(n,_e257)||delete t[_e257];return i.change(function(o){var r=o.createElement(n,t);return i.insertObject(r,e,null,{setSelection:"on",findOptimalPosition:e||"imageInline"==n?void 0:"auto"}),r.parent?r:null;});}},{key:"getClosestSelectedImageWidget",value:function getClosestSelectedImageWidget(t){var e=t.getFirstPosition();if(!e)return null;var n=t.getSelectedElement();if(n&&this.isImageWidget(n))return n;var o=e.parent;for(;o;){if(o.is("element")&&this.isImageWidget(o))return o;o=o.parent;}return null;}},{key:"getClosestSelectedImageElement",value:function getClosestSelectedImageElement(t){var e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock");}},{key:"isImageAllowed",value:function isImageAllowed(){var t=this.editor.model.document.selection;return function(t,e){var n=Cb(t,e,null);if("imageBlock"==n){var _n248=function(t,e){var n=tf(t,e),o=n.start.parent;if(o.isEmpty&&!o.is("element","$root"))return o.parent;return o;}(e,t.model);if(t.model.schema.checkChild(_n248,"imageBlock"))return!0;}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1;}(this.editor,t)&&function(t){return _toConsumableArray(t.focus.getAncestors()).every(function(t){return!t.is("element","imageBlock");});}(t);}},{key:"toImageWidget",value:function toImageWidget(t,e,n){var _this305=this;e.setCustomProperty("image",!0,t);return Yp(t,e,{label:function label(){var e=_this305.findViewImgElement(t).getAttribute("alt");return e?"".concat(e," ").concat(n):n;}});}},{key:"isImageWidget",value:function isImageWidget(t){return!!t.getCustomProperty("image")&&Kp(t);}},{key:"isBlockImage",value:function isBlockImage(t){return!!t&&t.is("element","imageBlock");}},{key:"isInlineImage",value:function isInlineImage(t){return!!t&&t.is("element","imageInline");}},{key:"findViewImgElement",value:function findViewImgElement(t){if(this.isInlineImageView(t))return t;var e=this.editor.editing.view;var _iterator369=_createForOfIteratorHelper(e.createRangeIn(t)),_step369;try{for(_iterator369.s();!(_step369=_iterator369.n()).done;){var _n249=_step369.value.item;if(this.isInlineImageView(_n249))return _n249;}}catch(err){_iterator369.e(err);}finally{_iterator369.f();}}}],[{key:"pluginName",get:function get(){return"ImageUtils";}}]);return _b;}(Fr);function Cb(t,e,n){var o=t.model.schema,i=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===i?"imageInline":"block"===i?"imageBlock":e.is("selection")?Ab(o,e):o.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline";}new RegExp(String(/^(http(s)?:\/\/)?[\w-]+\.[\w.~:/[\]@!$&'()*+,;=%-]+/.source+/\.(jpg|jpeg|png|gif|ico|webp|JPG|JPEG|PNG|GIF|ICO|WEBP)/.source+/(\?[\w.~:/[\]@!$&'()*+,;=%-]*)?/.source+/(#[\w.~:/[\]@!$&'()*+,;=%-]*)?$/.source));var vb=/*#__PURE__*/function(_Hr15){_inherits(vb,_Hr15);var _super201=_createSuper(vb);function vb(){_classCallCheck(this,vb);return _super201.apply(this,arguments);}_createClass(vb,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled&&t.hasAttribute("alt")?this.value=t.getAttribute("alt"):this.value=!1;}},{key:"execute",value:function execute(t){var e=this.editor,n=e.plugins.get("ImageUtils"),o=e.model,i=n.getClosestSelectedImageElement(o.document.selection);o.change(function(e){e.setAttribute("alt",t.newValue,i);});}}]);return vb;}(Hr);var yb=/*#__PURE__*/function(_Fr42){_inherits(yb,_Fr42);var _super202=_createSuper(yb);function yb(){_classCallCheck(this,yb);return _super202.apply(this,arguments);}_createClass(yb,[{key:"init",value:function init(){this.editor.commands.add("imageTextAlternative",new vb(this.editor));}}],[{key:"requires",get:function get(){return[_b];}},{key:"pluginName",get:function get(){return"ImageTextAlternativeEditing";}}]);return yb;}(Fr);var xb=n(6831),Eb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(xb.Z,Eb);xb.Z.locals;var Db=n(1590),Tb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Db.Z,Tb);Db.Z.locals;var Sb=/*#__PURE__*/function(_ji26){_inherits(Sb,_ji26);var _super203=_createSuper(Sb);function Sb(t){var _this306;_classCallCheck(this,Sb);_this306=_super203.call(this,t);var e=_this306.locale.t;_this306.focusTracker=new Di(),_this306.keystrokes=new Ti(),_this306.labeledInput=_this306._createLabeledInputView(),_this306.saveButtonView=_this306._createButton(e("Save"),dg.check,"ck-button-save"),_this306.saveButtonView.type="submit",_this306.cancelButtonView=_this306._createButton(e("Cancel"),dg.cancel,"ck-button-cancel","cancel"),_this306._focusables=new zi(),_this306._focusCycler=new Pr({focusables:_this306._focusables,focusTracker:_this306.focusTracker,keystrokeHandler:_this306.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this306.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[_this306.labeledInput,_this306.saveButtonView,_this306.cancelButtonView]});return _this306;}_createClass(Sb,[{key:"render",value:function render(){var _this307=this;_get(_getPrototypeOf(Sb.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),i({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach(function(t){_this307._focusables.add(t),_this307.focusTracker.add(t.element);});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Sb.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"_createButton",value:function _createButton(t,e,n,o){var i=new gr(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i;}},{key:"_createLabeledInputView",value:function _createLabeledInputView(){var t=this.locale.t,e=new hm(this.locale,gm);return e.label=t("Text alternative"),e;}}]);return Sb;}(ji);function Ib(t){var e=t.editing.view,n=Rg.defaultPositions,o=t.plugins.get("ImageUtils");return{target:e.domConverter.mapViewToDom(o.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]};}var Mb=/*#__PURE__*/function(_Fr43){_inherits(Mb,_Fr43);var _super204=_createSuper(Mb);function Mb(){_classCallCheck(this,Mb);return _super204.apply(this,arguments);}_createClass(Mb,[{key:"init",value:function init(){this._createButton();}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Mb.prototype),"destroy",this).call(this),this._form&&this._form.destroy();}},{key:"_createButton",value:function _createButton(){var _this308=this;var t=this.editor,e=t.t;t.ui.componentFactory.add("imageTextAlternative",function(n){var o=t.commands.get("imageTextAlternative"),i=new gr(n);return i.set({label:e("Change image text alternative"),icon:dg.lowVision,tooltip:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",function(t){return!!t;}),_this308.listenTo(i,"execute",function(){_this308._showForm();}),i;});}},{key:"_createForm",value:function _createForm(){var _this309=this;var n=this.editor,o=n.editing.view.document,i=n.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new(e(Sb))(n.locale),this._form.render(),this.listenTo(this._form,"submit",function(){n.execute("imageTextAlternative",{newValue:_this309._form.labeledInput.fieldView.element.value}),_this309._hideForm(!0);}),this.listenTo(this._form,"cancel",function(){_this309._hideForm(!0);}),this._form.keystrokes.set("Esc",function(t,e){_this309._hideForm(!0),e();}),this.listenTo(n.ui,"update",function(){i.getClosestSelectedImageWidget(o.selection)?_this309._isVisible&&function(t){var e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){var _n250=Ib(t);e.updatePosition(_n250);}}(n):_this309._hideForm(!0);}),t({emitter:this._form,activator:function activator(){return _this309._isVisible;},contextElements:function contextElements(){return[_this309._balloon.view.element];},callback:function callback(){return _this309._hideForm();}});}},{key:"_showForm",value:function _showForm(){if(this._isVisible)return;this._form||this._createForm();var t=this.editor,e=t.commands.get("imageTextAlternative"),n=this._form.labeledInput;this._form.disableCssTransitions(),this._isInBalloon||this._balloon.add({view:this._form,position:Ib(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions();}},{key:"_hideForm",value:function _hideForm(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;this._isInBalloon&&(this._form.focusTracker.isFocused&&this._form.saveButtonView.focus(),this._balloon.remove(this._form),t&&this.editor.editing.view.focus());}},{key:"_isVisible",get:function get(){return!!this._balloon&&this._balloon.visibleView===this._form;}},{key:"_isInBalloon",get:function get(){return!!this._balloon&&this._balloon.hasView(this._form);}}],[{key:"requires",get:function get(){return[Cm];}},{key:"pluginName",get:function get(){return"ImageTextAlternativeUI";}}]);return Mb;}(Fr);var Bb=/*#__PURE__*/function(_Fr44){_inherits(Bb,_Fr44);var _super205=_createSuper(Bb);function Bb(){_classCallCheck(this,Bb);return _super205.apply(this,arguments);}_createClass(Bb,null,[{key:"requires",get:function get(){return[yb,Mb];}},{key:"pluginName",get:function get(){return"ImageTextAlternative";}}]);return Bb;}(Fr);function Nb(t,e){var n=function n(e,_n251,o){if(!o.consumable.consume(_n251.item,e.name))return;var i=o.writer,r=o.mapper.toViewElement(_n251.item),s=t.findViewImgElement(r);if(null===_n251.attributeNewValue){var _t329=_n251.attributeOldValue;_t329&&_t329.data&&(i.removeAttribute("srcset",s),i.removeAttribute("sizes",s),_t329.width&&i.removeAttribute("width",s));}else{var _t330=_n251.attributeNewValue;_t330&&_t330.data&&(i.setAttribute("srcset",_t330.data,s),i.setAttribute("sizes","100vw",s),_t330.width&&i.setAttribute("width",_t330.width,s));}};return function(t){t.on("attribute:srcset:".concat(e),n);};}function zb(t,e,n){var o=function o(e,n,_o163){if(!_o163.consumable.consume(n.item,e.name))return;var i=_o163.writer,r=_o163.mapper.toViewElement(n.item),s=t.findViewImgElement(r);i.setAttribute(n.attributeKey,n.attributeNewValue||"",s);};return function(t){t.on("attribute:".concat(n,":").concat(e),o);};}var Pb=/*#__PURE__*/function(_l21){_inherits(Pb,_l21);var _super206=_createSuper(Pb);function Pb(){_classCallCheck(this,Pb);return _super206.apply(this,arguments);}_createClass(Pb,[{key:"observe",value:function observe(t){var _this310=this;this.listenTo(t,"load",function(t,e){var n=e.target;_this310.checkShouldIgnoreEventFromTarget(n)||"IMG"==n.tagName&&_this310._fireEvents(e);},{useCapture:!0});}},{key:"stopObserving",value:function stopObserving(t){this.stopListening(t);}},{key:"_fireEvents",value:function _fireEvents(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t));}}]);return Pb;}(_l);var Lb=/*#__PURE__*/function(_Hr16){_inherits(Lb,_Hr16);var _super207=_createSuper(Lb);function Lb(t){var _this311;_classCallCheck(this,Lb);_this311=_super207.call(this,t);var e=t.config.get("image.insert.type");t.plugins.has("ImageBlockEditing")||"block"===e&&C("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===e&&C("image-inline-plugin-required");return _this311;}_createClass(Lb,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("ImageUtils");this.isEnabled=t.isImageAllowed();}},{key:"execute",value:function execute(t){var _this312=this;var e=Ai(t.source),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(function(t,e){var r=n.getSelectedElement();if("string"==typeof t&&(t={src:t}),e&&r&&o.isImage(r)){var _e258=_this312.editor.model.createPositionAfter(r);o.insertImage(_objectSpread(_objectSpread({},t),i),_e258);}else o.insertImage(_objectSpread(_objectSpread({},t),i));});}}]);return Lb;}(Hr);var Ob=/*#__PURE__*/function(_Hr17){_inherits(Ob,_Hr17);var _super208=_createSuper(Ob);function Ob(){_classCallCheck(this,Ob);return _super208.apply(this,arguments);}_createClass(Ob,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("ImageUtils"),e=this.editor.model.document.selection.getSelectedElement();this.isEnabled=t.isImage(e),this.value=this.isEnabled?e.getAttribute("src"):null;}},{key:"execute",value:function execute(t){var e=this.editor.model.document.selection.getSelectedElement();this.editor.model.change(function(n){n.setAttribute("src",t.source,e),n.removeAttribute("srcset",e),n.removeAttribute("sizes",e);});}}]);return Ob;}(Hr);var Rb=/*#__PURE__*/function(_Fr45){_inherits(Rb,_Fr45);var _super209=_createSuper(Rb);function Rb(){_classCallCheck(this,Rb);return _super209.apply(this,arguments);}_createClass(Rb,[{key:"init",value:function init(){var t=this.editor,e=t.conversion;t.editing.view.addObserver(Pb),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function value(t){var e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e;}}});var n=new Lb(t),o=new Ob(t);t.commands.add("insertImage",n),t.commands.add("replaceImageSource",o),t.commands.add("imageInsert",n);}}],[{key:"requires",get:function get(){return[_b];}},{key:"pluginName",get:function get(){return"ImageEditing";}}]);return Rb;}(Fr);var jb=/*#__PURE__*/function(_Hr18){_inherits(jb,_Hr18);var _super210=_createSuper(jb);function jb(t,e){var _this313;_classCallCheck(this,jb);_this313=_super210.call(this,t),_this313._modelElementName=e;return _this313;}_createClass(jb,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("ImageUtils"),e=t.getClosestSelectedImageElement(this.editor.model.document.selection);"imageBlock"===this._modelElementName?this.isEnabled=t.isInlineImage(e):this.isEnabled=t.isBlockImage(e);}},{key:"execute",value:function execute(){var _this314=this;var t=this.editor,e=this.editor.model,n=t.plugins.get("ImageUtils"),o=n.getClosestSelectedImageElement(e.document.selection),i=Object.fromEntries(o.getAttributes());return i.src||i.uploadId?e.change(function(t){var r=Array.from(e.markers).filter(function(t){return t.getRange().containsItem(o);}),s=n.insertImage(i,e.createSelection(o,"on"),_this314._modelElementName);if(!s)return null;var a=t.createRangeOn(s);var _iterator370=_createForOfIteratorHelper(r),_step370;try{for(_iterator370.s();!(_step370=_iterator370.n()).done;){var _e259=_step370.value;var _n252=_e259.getRange(),_o164="$graveyard"!=_n252.root.rootName?_n252.getJoined(a,!0):a;t.updateMarker(_e259,{range:_o164});}}catch(err){_iterator370.e(err);}finally{_iterator370.f();}return{oldElement:o,newElement:s};}):null;}}]);return jb;}(Hr);var Fb=/*#__PURE__*/function(_Fr46){_inherits(Fb,_Fr46);var _super211=_createSuper(Fb);function Fb(){_classCallCheck(this,Fb);return _super211.apply(this,arguments);}_createClass(Fb,[{key:"init",value:function init(){var t=this.editor;t.model.schema.register("imageBlock",{inheritAllFrom:"$blockObject",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new jb(this.editor,"imageBlock")),this._setupClipboardIntegration());}},{key:"_setupConversion",value:function _setupConversion(){var t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToStructure({model:"imageBlock",view:function view(t,_ref90){var e=_ref90.writer;return bb(e);}}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:function view(t,_ref91){var n=_ref91.writer;return o.toImageWidget(bb(n),n,e("image widget"));}}),n.for("downcast").add(zb(o,"imageBlock","src")).add(zb(o,"imageBlock","alt")).add(Nb(o,"imageBlock")),n.for("upcast").elementToElement({view:wb(t,"imageBlock"),model:function model(t,_ref92){var e=_ref92.writer;return e.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0);}}).add(function(t){var e=function e(_e260,n,o){if(!o.consumable.test(n.viewItem,{name:!0,classes:"image"}))return;var i=t.findViewImgElement(n.viewItem);if(!i||!o.consumable.test(i,{name:!0}))return;o.consumable.consume(n.viewItem,{name:!0,classes:"image"});var r=Ei(o.convertItem(i,n.modelCursor).modelRange.getItems());r?(o.convertChildren(n.viewItem,r),o.updateConversionResult(r,n)):o.consumable.revert(n.viewItem,{name:!0,classes:"image"});};return function(t){t.on("element:figure",e);};}(o));}},{key:"_setupClipboardIntegration",value:function _setupClipboardIntegration(){var t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",function(i,r){var s=Array.from(r.content.getChildren());var a;if(!s.every(o.isInlineImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageBlock"===Ab(e.schema,l)){var _t331=new Ah(n.document),_e261=s.map(function(e){return _t331.createElement("figure",{class:"image"},e);});r.content=_t331.createDocumentFragment(_e261);}});}}],[{key:"requires",get:function get(){return[Rb,_b,Qm];}},{key:"pluginName",get:function get(){return"ImageBlockEditing";}}]);return Fb;}(Fr);var Vb=n(9048),Hb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Vb.Z,Hb);Vb.Z.locals;var Ub=/*#__PURE__*/function(_Fr47){_inherits(Ub,_Fr47);var _super212=_createSuper(Ub);function Ub(){_classCallCheck(this,Ub);return _super212.apply(this,arguments);}_createClass(Ub,null,[{key:"requires",get:function get(){return[Fb,kf,Bb];}},{key:"pluginName",get:function get(){return"ImageBlock";}}]);return Ub;}(Fr);var Wb=/*#__PURE__*/function(_Fr48){_inherits(Wb,_Fr48);var _super213=_createSuper(Wb);function Wb(){_classCallCheck(this,Wb);return _super213.apply(this,arguments);}_createClass(Wb,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema;e.register("imageInline",{inheritAllFrom:"$inlineObject",allowAttributes:["alt","src","srcset"]}),e.addChildCheck(function(t,e){if(t.endsWith("caption")&&"imageInline"===e.name)return!1;}),this._setupConversion(),t.plugins.has("ImageBlockEditing")&&(t.commands.add("imageTypeInline",new jb(this.editor,"imageInline")),this._setupClipboardIntegration());}},{key:"_setupConversion",value:function _setupConversion(){var t=this.editor,e=t.t,n=t.conversion,o=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:function view(t,_ref93){var e=_ref93.writer;return e.createEmptyElement("img");}}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:function view(t,_ref94){var n=_ref94.writer;return o.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"));}(n),n,e("image widget"));}}),n.for("downcast").add(zb(o,"imageInline","src")).add(zb(o,"imageInline","alt")).add(Nb(o,"imageInline")),n.for("upcast").elementToElement({view:wb(t,"imageInline"),model:function model(t,_ref95){var e=_ref95.writer;return e.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:void 0);}});}},{key:"_setupClipboardIntegration",value:function _setupClipboardIntegration(){var t=this.editor,e=t.model,n=t.editing.view,o=t.plugins.get("ImageUtils"),i=t.plugins.get("ClipboardPipeline");this.listenTo(i,"inputTransformation",function(i,r){var s=Array.from(r.content.getChildren());var a;if(!s.every(o.isBlockImageView))return;a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageInline"===Ab(e.schema,l)){var _t332=new Ah(n.document),_e262=s.map(function(e){return 1===e.childCount?(Array.from(e.getAttributes()).forEach(function(n){return _t332.setAttribute.apply(_t332,_toConsumableArray(n).concat([o.findViewImgElement(e)]));}),e.getChild(0)):e;});r.content=_t332.createDocumentFragment(_e262);}});}}],[{key:"requires",get:function get(){return[Rb,_b,Qm];}},{key:"pluginName",get:function get(){return"ImageInlineEditing";}}]);return Wb;}(Fr);var Gb=/*#__PURE__*/function(_Fr49){_inherits(Gb,_Fr49);var _super214=_createSuper(Gb);function Gb(){_classCallCheck(this,Gb);return _super214.apply(this,arguments);}_createClass(Gb,null,[{key:"requires",get:function get(){return[Wb,kf,Bb];}},{key:"pluginName",get:function get(){return"ImageInline";}}]);return Gb;}(Fr);var qb=/*#__PURE__*/function(_Fr50){_inherits(qb,_Fr50);var _super215=_createSuper(qb);function qb(){_classCallCheck(this,qb);return _super215.apply(this,arguments);}_createClass(qb,[{key:"getCaptionFromImageModelElement",value:function getCaptionFromImageModelElement(t){var _iterator371=_createForOfIteratorHelper(t.getChildren()),_step371;try{for(_iterator371.s();!(_step371=_iterator371.n()).done;){var _e263=_step371.value;if(_e263&&_e263.is("element","caption"))return _e263;}}catch(err){_iterator371.e(err);}finally{_iterator371.f();}return null;}},{key:"getCaptionFromModelSelection",value:function getCaptionFromModelSelection(t){var e=this.editor.plugins.get("ImageUtils"),n=t.getFirstPosition().findAncestor("caption");return n&&e.isBlockImage(n.parent)?n:null;}},{key:"matchImageCaptionViewElement",value:function matchImageCaptionViewElement(t){var e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null;}}],[{key:"pluginName",get:function get(){return"ImageCaptionUtils";}},{key:"requires",get:function get(){return[_b];}}]);return qb;}(Fr);var $b=/*#__PURE__*/function(_Hr19){_inherits($b,_Hr19);var _super216=_createSuper($b);function $b(){_classCallCheck(this,$b);return _super216.apply(this,arguments);}_createClass($b,[{key:"refresh",value:function refresh(){var t=this.editor,e=t.plugins.get("ImageCaptionUtils"),n=t.plugins.get("ImageUtils");if(!t.plugins.has(Fb))return this.isEnabled=!1,void(this.value=!1);var o=t.model.document.selection,i=o.getSelectedElement();if(!i){var _t333=e.getCaptionFromModelSelection(o);return this.isEnabled=!!_t333,void(this.value=!!_t333);}this.isEnabled=n.isImage(i),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(i):this.value=!1;}},{key:"execute",value:function execute(){var _this315=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=t.focusCaptionOnShow;this.editor.model.change(function(t){_this315.value?_this315._hideImageCaption(t):_this315._showImageCaption(t,e);});}},{key:"_showImageCaption",value:function _showImageCaption(t,e){var n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageCaptionEditing"),i=this.editor.plugins.get("ImageUtils");var r=n.getSelectedElement();var s=o._getSavedCaption(r);i.isInlineImage(r)&&(this.editor.execute("imageTypeBlock"),r=n.getSelectedElement());var a=s||t.createElement("caption");t.append(a,r),e&&t.setSelection(a,"in");}},{key:"_hideImageCaption",value:function _hideImageCaption(t){var e=this.editor,n=e.model.document.selection,o=e.plugins.get("ImageCaptionEditing"),i=e.plugins.get("ImageCaptionUtils");var r,s=n.getSelectedElement();s?r=i.getCaptionFromImageModelElement(s):(r=i.getCaptionFromModelSelection(n),s=r.parent),o._saveCaption(s,r),t.setSelection(s,"on"),t.remove(r);}}]);return $b;}(Hr);var Kb=/*#__PURE__*/function(_Fr51){_inherits(Kb,_Fr51);var _super217=_createSuper(Kb);function Kb(t){var _this316;_classCallCheck(this,Kb);_this316=_super217.call(this,t),_this316._savedCaptionsMap=new WeakMap();return _this316;}_createClass(Kb,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema;e.isRegistered("caption")?e.extend("caption",{allowIn:"imageBlock"}):e.register("caption",{allowIn:"imageBlock",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleImageCaption",new $b(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration(),this._registerCaptionReconversion();}},{key:"_setupConversion",value:function _setupConversion(){var t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),o=t.plugins.get("ImageCaptionUtils"),i=t.t;t.conversion.for("upcast").elementToElement({view:function view(t){return o.matchImageCaptionViewElement(t);},model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:function view(t,_ref96){var e=_ref96.writer;return n.isBlockImage(t.parent)?e.createContainerElement("figcaption"):null;}}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:function view(t,_ref97){var o=_ref97.writer;if(!n.isBlockImage(t.parent))return null;var r=o.createEditableElement("figcaption");o.setCustomProperty("imageCaption",!0,r),Zr({view:e,element:r,text:i("Enter image caption"),keepOnFocus:!0});var s=t.parent.getAttribute("alt");return Xp(r,o,{label:s?i("Caption for image: %0",[s]):i("Caption for the image")});}});}},{key:"_setupImageTypeCommandsIntegration",value:function _setupImageTypeCommandsIntegration(){var _this317=this;var t=this.editor,e=t.plugins.get("ImageUtils"),n=t.plugins.get("ImageCaptionUtils"),o=t.commands.get("imageTypeInline"),i=t.commands.get("imageTypeBlock"),r=function r(t){if(!t.return)return;var _t$return=t.return,o=_t$return.oldElement,i=_t$return.newElement;if(!o)return;if(e.isBlockImage(o)){var _t334=n.getCaptionFromImageModelElement(o);if(_t334)return void _this317._saveCaption(i,_t334);}var r=_this317._getSavedCaption(o);r&&_this317._saveCaption(i,r);};o&&this.listenTo(o,"execute",r,{priority:"low"}),i&&this.listenTo(i,"execute",r,{priority:"low"});}},{key:"_getSavedCaption",value:function _getSavedCaption(t){var e=this._savedCaptionsMap.get(t);return e?vc.fromJSON(e):null;}},{key:"_saveCaption",value:function _saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON());}},{key:"_registerCaptionReconversion",value:function _registerCaptionReconversion(){var t=this.editor,e=t.model,n=t.plugins.get("ImageUtils"),o=t.plugins.get("ImageCaptionUtils");e.document.on("change:data",function(){var i=e.document.differ.getChanges();var _iterator372=_createForOfIteratorHelper(i),_step372;try{for(_iterator372.s();!(_step372=_iterator372.n()).done;){var _e264=_step372.value;if("alt"!==_e264.attributeKey)continue;var _i155=_e264.range.start.nodeAfter;if(n.isBlockImage(_i155)){var _e265=o.getCaptionFromImageModelElement(_i155);if(!_e265)return;t.editing.reconvertItem(_e265);}}}catch(err){_iterator372.e(err);}finally{_iterator372.f();}});}}],[{key:"requires",get:function get(){return[_b,qb];}},{key:"pluginName",get:function get(){return"ImageCaptionEditing";}}]);return Kb;}(Fr);var Yb=/*#__PURE__*/function(_Fr52){_inherits(Yb,_Fr52);var _super218=_createSuper(Yb);function Yb(){_classCallCheck(this,Yb);return _super218.apply(this,arguments);}_createClass(Yb,[{key:"init",value:function init(){var _this318=this;var t=this.editor,e=t.editing.view,n=t.plugins.get("ImageCaptionUtils"),o=t.t;t.ui.componentFactory.add("toggleImageCaption",function(i){var r=t.commands.get("toggleImageCaption"),s=new gr(i);return s.set({icon:dg.caption,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.bind("label").to(r,"value",function(t){return o(t?"Toggle caption off":"Toggle caption on");}),_this318.listenTo(s,"execute",function(){t.execute("toggleImageCaption",{focusCaptionOnShow:!0});var o=n.getCaptionFromModelSelection(t.model.document.selection);if(o){var _n253=t.editing.mapper.toViewElement(o);e.scrollToTheSelection(),e.change(function(t){t.addClass("image__caption_highlighted",_n253);});}t.editing.view.focus();}),s;});}}],[{key:"requires",get:function get(){return[qb];}},{key:"pluginName",get:function get(){return"ImageCaptionUI";}}]);return Yb;}(Fr);var Qb=n(8662),Zb={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Qb.Z,Zb);Qb.Z.locals;function Jb(t){var e=t.map(function(t){return t.replace("+","\\+");});return new RegExp("^image\\/(".concat(e.join("|"),")$"));}function Xb(t){return new Promise(function(e,n){var o=t.getAttribute("src");fetch(o).then(function(t){return t.blob();}).then(function(t){var n=tw(t,o),i=n.replace("image/",""),r=new File([t],"image.".concat(i),{type:n});e(r);}).catch(function(t){return t&&"TypeError"===t.name?function(t){return function(t){return new Promise(function(e,n){var o=Lo.document.createElement("img");o.addEventListener("load",function(){var t=Lo.document.createElement("canvas");t.width=o.width,t.height=o.height;t.getContext("2d").drawImage(o,0,0),t.toBlob(function(t){return t?e(t):n();});}),o.addEventListener("error",function(){return n();}),o.src=t;});}(t).then(function(e){var n=tw(e,t),o=n.replace("image/","");return new File([e],"image.".concat(o),{type:n});});}(o).then(e).catch(n):n(t);});});}function tw(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg";}var ew=/*#__PURE__*/function(_Fr53){_inherits(ew,_Fr53);var _super219=_createSuper(ew);function ew(){_classCallCheck(this,ew);return _super219.apply(this,arguments);}_createClass(ew,[{key:"init",value:function init(){var t=this.editor,e=t.t,n=function n(_n254){var o=new tk(_n254),i=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),s=Jb(r);return o.set({acceptedType:r.map(function(t){return"image/".concat(t);}).join(","),allowMultipleFiles:!0}),o.buttonView.set({label:e("Insert image"),icon:dg.image,tooltip:!0}),o.buttonView.bind("isEnabled").to(i),o.on("done",function(e,n){var o=Array.from(n).filter(function(t){return s.test(t.type);});o.length&&(t.execute("uploadImage",{file:o}),t.editing.view.focus());}),o;};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n);}}],[{key:"pluginName",get:function get(){return"ImageUploadUI";}}]);return ew;}(Fr);var nw=n(5870),ow={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(nw.Z,ow);nw.Z.locals;var iw=n(9899),rw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(iw.Z,rw);iw.Z.locals;var sw=n(9825),aw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(sw.Z,aw);sw.Z.locals;var lw=/*#__PURE__*/function(_Fr54){_inherits(lw,_Fr54);var _super220=_createSuper(lw);function lw(t){var _this319;_classCallCheck(this,lw);_this319=_super220.call(this,t),_this319.uploadStatusChange=function(t,e,n){var o=_this319.editor,i=e.item,r=i.getAttribute("uploadId");if(!n.consumable.consume(e.item,t.name))return;var s=o.plugins.get("ImageUtils"),a=o.plugins.get(Jf),l=r?e.attributeNewValue:null,c=_this319.placeholder,d=o.editing.mapper.toViewElement(i),u=n.writer;if("reading"==l)return cw(d,u),void dw(s,c,d,u);if("uploading"==l){var _t335=a.loaders.get(r);return cw(d,u),void(_t335?(uw(d,u),function(t,e,n,o){var i=function(t){var e=t.createUIElement("div",{class:"ck-progress-bar"});return t.setCustomProperty("progressBar",!0,e),e;}(e);e.insert(e.createPositionAt(t,"end"),i),n.on("change:uploadedPercent",function(t,e,n){o.change(function(t){t.setStyle("width",n+"%",i);});});}(d,u,_t335,o.editing.view),function(t,e,n,o){if(o.data){var _i156=t.findViewImgElement(e);n.setAttribute("src",o.data,_i156);}}(s,d,u,_t335)):dw(s,c,d,u));}"complete"==l&&a.loaders.get(r)&&function(t,e,n){var o=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),o),setTimeout(function(){n.change(function(t){return t.remove(t.createRangeOn(o));});},3e3);}(d,u,o.editing.view),function(t,e){gw(t,e,"progressBar");}(d,u),uw(d,u),function(t,e){e.removeClass("ck-appear",t);}(d,u);},_this319.placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==";return _this319;}_createClass(lw,[{key:"init",value:function init(){var t=this.editor;t.plugins.has("ImageBlockEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",this.uploadStatusChange),t.plugins.has("ImageInlineEditing")&&t.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",this.uploadStatusChange);}}],[{key:"pluginName",get:function get(){return"ImageUploadProgress";}}]);return lw;}(Fr);function cw(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t);}function dw(t,e,n,o){n.hasClass("ck-image-upload-placeholder")||o.addClass("ck-image-upload-placeholder",n);var i=t.findViewImgElement(n);i.getAttribute("src")!==e&&o.setAttribute("src",e,i),hw(n,"placeholder")||o.insert(o.createPositionAfter(i),function(t){var e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e;}(o));}function uw(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),gw(t,e,"placeholder");}function hw(t,e){var _iterator373=_createForOfIteratorHelper(t.getChildren()),_step373;try{for(_iterator373.s();!(_step373=_iterator373.n()).done;){var _n255=_step373.value;if(_n255.getCustomProperty(e))return _n255;}}catch(err){_iterator373.e(err);}finally{_iterator373.f();}}function gw(t,e,n){var o=hw(t,n);o&&e.remove(e.createRangeOn(o));}var mw=/*#__PURE__*/function(_Hr20){_inherits(mw,_Hr20);var _super221=_createSuper(mw);function mw(){_classCallCheck(this,mw);return _super221.apply(this,arguments);}_createClass(mw,[{key:"refresh",value:function refresh(){var t=this.editor,e=t.plugins.get("ImageUtils"),n=t.model.document.selection.getSelectedElement();this.isEnabled=e.isImageAllowed()||e.isImage(n);}},{key:"execute",value:function execute(t){var _this320=this;var e=Ai(t.file),n=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),i=Object.fromEntries(n.getAttributes());e.forEach(function(t,e){var r=n.getSelectedElement();if(e&&r&&o.isImage(r)){var _e266=_this320.editor.model.createPositionAfter(r);_this320._uploadImage(t,i,_e266);}else _this320._uploadImage(t,i);});}},{key:"_uploadImage",value:function _uploadImage(t,e,n){var o=this.editor,i=o.plugins.get(Jf).createLoader(t),r=o.plugins.get("ImageUtils");i&&r.insertImage(_objectSpread(_objectSpread({},e),{},{uploadId:i.id}),n);}}]);return mw;}(Hr);var pw=/*#__PURE__*/function(_Fr55){_inherits(pw,_Fr55);var _super222=_createSuper(pw);function pw(t){var _this321;_classCallCheck(this,pw);_this321=_super222.call(this,t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),_this321._uploadImageElements=new Map();return _this321;}_createClass(pw,[{key:"init",value:function init(){var _this322=this;var t=this.editor,e=t.model.document,n=t.conversion,o=t.plugins.get(Jf),i=t.plugins.get("ImageUtils"),r=t.plugins.get("ClipboardPipeline"),s=Jb(t.config.get("image.upload.types")),a=new mw(t);t.commands.add("uploadImage",a),t.commands.add("imageUpload",a),n.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(t.editing.view.document,"clipboardInput",function(e,n){if(o=n.dataTransfer,Array.from(o.types).includes("text/html")&&""!==o.getData("text/html"))return;var o;var i=Array.from(n.dataTransfer.files).filter(function(t){return!!t&&s.test(t.type);});i.length&&(e.stop(),t.model.change(function(e){n.targetRanges&&e.setSelection(n.targetRanges.map(function(e){return t.editing.mapper.toModelRange(e);})),t.model.enqueueChange(function(){t.execute("uploadImage",{file:i});});}));}),this.listenTo(r,"inputTransformation",function(e,n){var r=Array.from(t.editing.view.createRangeIn(n.content)).map(function(t){return t.item;}).filter(function(t){return function(t,e){return!(!t.isInlineImageView(e)||!e.getAttribute("src")||!e.getAttribute("src").match(/^data:image\/\w+;base64,/g)&&!e.getAttribute("src").match(/^blob:/g));}(i,t)&&!t.getAttribute("uploadProcessed");}).map(function(t){return{promise:Xb(t),imageElement:t};});if(!r.length)return;var s=new Ah(t.editing.view.document);var _iterator374=_createForOfIteratorHelper(r),_step374;try{for(_iterator374.s();!(_step374=_iterator374.n()).done;){var _t336=_step374.value;s.setAttribute("uploadProcessed",!0,_t336.imageElement);var _e267=o.createLoader(_t336.promise);_e267&&(s.setAttribute("src","",_t336.imageElement),s.setAttribute("uploadId",_e267.id,_t336.imageElement));}}catch(err){_iterator374.e(err);}finally{_iterator374.f();}}),t.editing.view.document.on("dragover",function(t,e){e.preventDefault();}),e.on("change",function(){var n=e.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),i=new Set();var _iterator375=_createForOfIteratorHelper(n),_step375;try{for(_iterator375.s();!(_step375=_iterator375.n()).done;){var _e268=_step375.value;if("insert"==_e268.type&&"$text"!=_e268.name){var _n256=_e268.position.nodeAfter,_r60="$graveyard"==_e268.position.root.rootName;var _iterator376=_createForOfIteratorHelper(fw(t,_n256)),_step376;try{for(_iterator376.s();!(_step376=_iterator376.n()).done;){var _e269=_step376.value;var _t337=_e269.getAttribute("uploadId");if(!_t337)continue;var _n257=o.loaders.get(_t337);_n257&&(_r60?i.has(_t337)||_n257.abort():(i.add(_t337),_this322._uploadImageElements.set(_t337,_e269),"idle"==_n257.status&&_this322._readAndUpload(_n257)));}}catch(err){_iterator376.e(err);}finally{_iterator376.f();}}}}catch(err){_iterator375.e(err);}finally{_iterator375.f();}}),this.on("uploadComplete",function(t,_ref98){var e=_ref98.imageElement,n=_ref98.data;var o=n.urls?n.urls:n;_this322.editor.model.change(function(t){t.setAttribute("src",o.default,e),_this322._parseAndSetSrcsetAttributeOnImage(o,e,t);});},{priority:"low"});}},{key:"afterInit",value:function afterInit(){var t=this.editor.model.schema;this.editor.plugins.has("ImageBlockEditing")&&t.extend("imageBlock",{allowAttributes:["uploadId","uploadStatus"]}),this.editor.plugins.has("ImageInlineEditing")&&t.extend("imageInline",{allowAttributes:["uploadId","uploadStatus"]});}},{key:"_readAndUpload",value:function _readAndUpload(t){var _this323=this;var e=this.editor,n=e.model,o=e.locale.t,i=e.plugins.get(Jf),r=e.plugins.get(pm),s=e.plugins.get("ImageUtils"),a=this._uploadImageElements;return n.enqueueChange({isUndoable:!1},function(e){e.setAttribute("uploadStatus","reading",a.get(t.id));}),t.read().then(function(){var o=t.upload(),i=a.get(t.id);if(l.isSafari){var _t338=e.editing.mapper.toViewElement(i),_n258=s.findViewImgElement(_t338);e.editing.view.once("render",function(){if(!_n258.parent)return;var t=e.editing.view.domConverter.mapViewToDom(_n258.parent);if(!t)return;var o=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=o;});}return n.enqueueChange({isUndoable:!1},function(t){t.setAttribute("uploadStatus","uploading",i);}),o;}).then(function(e){n.enqueueChange({isUndoable:!1},function(n){var o=a.get(t.id);n.setAttribute("uploadStatus","complete",o),_this323.fire("uploadComplete",{data:e,imageElement:o});}),c();}).catch(function(e){if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&r.showWarning(e,{title:o("Upload failed"),namespace:"upload"}),n.enqueueChange({isUndoable:!1},function(e){e.remove(a.get(t.id));}),c();});function c(){n.enqueueChange({isUndoable:!1},function(e){var n=a.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),a.delete(t.id);}),i.destroyLoader(t);}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function _parseAndSetSrcsetAttributeOnImage(t,e,n){var o=0;var i=Object.keys(t).filter(function(t){var e=parseInt(t,10);if(!isNaN(e))return o=Math.max(o,e),!0;}).map(function(e){return"".concat(t[e]," ").concat(e,"w");}).join(", ");""!=i&&n.setAttribute("srcset",{data:i,width:o},e);}}],[{key:"requires",get:function get(){return[Jf,pm,Qm,_b];}},{key:"pluginName",get:function get(){return"ImageUploadEditing";}}]);return pw;}(Fr);function fw(t,e){var n=t.plugins.get("ImageUtils");return Array.from(t.model.createRangeOn(e)).filter(function(t){return n.isImage(t.item);}).map(function(t){return t.item;});}var kw=n(5150),bw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(kw.Z,bw);kw.Z.locals;var ww=n(9292),Aw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(ww.Z,Aw);ww.Z.locals;var _w=n(1043),Cw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(_w.Z,Cw);_w.Z.locals;var vw=/*#__PURE__*/function(_Hr21){_inherits(vw,_Hr21);var _super223=_createSuper(vw);function vw(t,e){var _this324;_classCallCheck(this,vw);_this324=_super223.call(this,t),_this324._defaultStyles={imageBlock:!1,imageInline:!1},_this324._styles=new Map(e.map(function(t){if(t.isDefault){var _iterator377=_createForOfIteratorHelper(t.modelElements),_step377;try{for(_iterator377.s();!(_step377=_iterator377.n()).done;){var _e270=_step377.value;_this324._defaultStyles[_e270]=t.name;}}catch(err){_iterator377.e(err);}finally{_iterator377.f();}}return[t.name,t];}));return _this324;}_createClass(vw,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("ImageUtils").getClosestSelectedImageElement(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?t.hasAttribute("imageStyle")?this.value=t.getAttribute("imageStyle"):this.value=this._defaultStyles[t.name]:this.value=!1;}},{key:"execute",value:function execute(){var _this325=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor,n=e.model,o=e.plugins.get("ImageUtils");n.change(function(e){var i=t.value;var r=o.getClosestSelectedImageElement(n.document.selection);i&&_this325.shouldConvertImageType(i,r)&&(_this325.editor.execute(o.isBlockImage(r)?"imageTypeInline":"imageTypeBlock"),r=o.getClosestSelectedImageElement(n.document.selection)),!i||_this325._styles.get(i).isDefault?e.removeAttribute("imageStyle",r):e.setAttribute("imageStyle",i,r);});}},{key:"shouldConvertImageType",value:function shouldConvertImageType(t,e){return!this._styles.get(t).modelElements.includes(e.name);}}]);return vw;}(Hr);var yw=dg.objectFullWidth,xw=dg.objectInline,Ew=dg.objectLeft,Dw=dg.objectRight,Tw=dg.objectCenter,Sw=dg.objectBlockLeft,Iw=dg.objectBlockRight,Mw={get inline(){return{name:"inline",title:"In line",icon:xw,modelElements:["imageInline"],isDefault:!0};},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ew,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"};},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Sw,modelElements:["imageBlock"],className:"image-style-block-align-left"};},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:Tw,modelElements:["imageBlock"],className:"image-style-align-center"};},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Dw,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"};},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Iw,modelElements:["imageBlock"],className:"image-style-block-align-right"};},get block(){return{name:"block",title:"Centered image",icon:Tw,modelElements:["imageBlock"],isDefault:!0};},get side(){return{name:"side",title:"Side image",icon:Dw,modelElements:["imageBlock"],className:"image-style-side"};}},Bw={full:yw,left:Sw,right:Iw,center:Tw,inlineLeft:Ew,inlineRight:Dw,inline:xw},Nw=[{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 zw(t){C("image-style-configuration-definition-invalid",t);}var Pw={normalizeStyles:function normalizeStyles(t){return(t.configuredStyles.options||[]).map(function(t){return function(t){t="string"==typeof t?Mw[t]?_objectSpread({},Mw[t]):{name:t}:function(t,e){var n=_objectSpread({},e);for(var _o165 in t)Object.prototype.hasOwnProperty.call(e,_o165)||(n[_o165]=t[_o165]);return n;}(Mw[t.name],t);"string"==typeof t.icon&&(t.icon=Bw[t.icon]||t.icon);return t;}(t);}).filter(function(e){return function(t,_ref99){var e=_ref99.isBlockPluginLoaded,n=_ref99.isInlinePluginLoaded;var o=t.modelElements,i=t.name;if(!(o&&o.length&&i))return zw({style:t}),!1;{var _i157=[e?"imageBlock":null,n?"imageInline":null];if(!o.some(function(t){return _i157.includes(t);}))return C("image-style-missing-dependency",{style:t,missingPlugins:o.map(function(t){return"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing";})}),!1;}return!0;}(e,t);});},getDefaultStylesConfiguration:function getDefaultStylesConfiguration(t,e){return t&&e?{options:["inline","alignLeft","alignRight","alignCenter","alignBlockLeft","alignBlockRight","block","side"]}:t?{options:["block","side"]}:e?{options:["inline","alignLeft","alignRight"]}:{};},getDefaultDropdownDefinitions:function getDefaultDropdownDefinitions(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[].concat(Nw):[];},warnInvalidStyle:zw,DEFAULT_OPTIONS:Mw,DEFAULT_ICONS:Bw,DEFAULT_DROPDOWN_DEFINITIONS:Nw};function Lw(t,e){var _iterator378=_createForOfIteratorHelper(e),_step378;try{for(_iterator378.s();!(_step378=_iterator378.n()).done;){var _n259=_step378.value;if(_n259.name===t)return _n259;}}catch(err){_iterator378.e(err);}finally{_iterator378.f();}}var Ow=/*#__PURE__*/function(_Fr56){_inherits(Ow,_Fr56);var _super224=_createSuper(Ow);function Ow(){_classCallCheck(this,Ow);return _super224.apply(this,arguments);}_createClass(Ow,[{key:"init",value:function init(){var t=Pw.normalizeStyles,e=Pw.getDefaultStylesConfiguration,n=this.editor,o=n.plugins.has("ImageBlockEditing"),i=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(o,i)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:o,isInlinePluginLoaded:i}),this._setupConversion(o,i),this._setupPostFixer(),n.commands.add("imageStyle",new vw(n,this.normalizedStyles));}},{key:"_setupConversion",value:function _setupConversion(t,e){var n=this.editor,o=n.model.schema,i=(r=this.normalizedStyles,function(t,e,n){if(!n.consumable.consume(e.item,t.name))return;var o=Lw(e.attributeNewValue,r),i=Lw(e.attributeOldValue,r),s=n.mapper.toViewElement(e.item),a=n.writer;i&&a.removeClass(i.className,s),o&&a.addClass(o.className,s);});var r;var s=function(t){var e={imageInline:t.filter(function(t){return!t.isDefault&&t.modelElements.includes("imageInline");}),imageBlock:t.filter(function(t){return!t.isDefault&&t.modelElements.includes("imageBlock");})};return function(t,n,o){if(!n.modelRange)return;var i=n.viewItem,r=Ei(n.modelRange.getItems());if(r&&o.schema.checkAttribute(r,"imageStyle")){var _iterator379=_createForOfIteratorHelper(e[r.name]),_step379;try{for(_iterator379.s();!(_step379=_iterator379.n()).done;){var _t339=_step379.value;o.consumable.consume(i,{classes:_t339.className})&&o.writer.setAttribute("imageStyle",_t339.name,r);}}catch(err){_iterator379.e(err);}finally{_iterator379.f();}}};}(this.normalizedStyles);n.editing.downcastDispatcher.on("attribute:imageStyle",i),n.data.downcastDispatcher.on("attribute:imageStyle",i),t&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:figure",s,{priority:"low"})),e&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),n.data.upcastDispatcher.on("element:img",s,{priority:"low"}));}},{key:"_setupPostFixer",value:function _setupPostFixer(){var t=this.editor,e=t.model.document,n=t.plugins.get(_b),o=new Map(this.normalizedStyles.map(function(t){return[t.name,t];}));e.registerPostFixer(function(t){var i=!1;var _iterator380=_createForOfIteratorHelper(e.differ.getChanges()),_step380;try{for(_iterator380.s();!(_step380=_iterator380.n()).done;){var _r61=_step380.value;if("insert"==_r61.type||"attribute"==_r61.type&&"imageStyle"==_r61.attributeKey){var _e271="insert"==_r61.type?_r61.position.nodeAfter:_r61.range.start.nodeAfter;if(_e271&&_e271.is("element","paragraph")&&_e271.childCount>0&&(_e271=_e271.getChild(0)),!n.isImage(_e271))continue;var _s33=_e271.getAttribute("imageStyle");if(!_s33)continue;var _a19=o.get(_s33);_a19&&_a19.modelElements.includes(_e271.name)||(t.removeAttribute("imageStyle",_e271),i=!0);}}}catch(err){_iterator380.e(err);}finally{_iterator380.f();}return i;});}}],[{key:"pluginName",get:function get(){return"ImageStyleEditing";}},{key:"requires",get:function get(){return[_b];}}]);return Ow;}(Fr);var Rw=n(4622),jw={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Rw.Z,jw);Rw.Z.locals;var Fw=/*#__PURE__*/function(_Fr57){_inherits(Fw,_Fr57);var _super225=_createSuper(Fw);function Fw(){_classCallCheck(this,Fw);return _super225.apply(this,arguments);}_createClass(Fw,[{key:"localizedDefaultStylesTitles",get:function get(){var t=this.editor.t;return{"Wrap text":t("Wrap text"),"Break text":t("Break text"),"In line":t("In line"),"Full size image":t("Full size image"),"Side image":t("Side image"),"Left aligned image":t("Left aligned image"),"Centered image":t("Centered image"),"Right aligned image":t("Right aligned image")};}},{key:"init",value:function init(){var t=this.editor.plugins,e=this.editor.config.get("image.toolbar")||[],n=Vw(t.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles);var _iterator381=_createForOfIteratorHelper(n),_step381;try{for(_iterator381.s();!(_step381=_iterator381.n()).done;){var _t340=_step381.value;this._createButton(_t340);}}catch(err){_iterator381.e(err);}finally{_iterator381.f();}var o=Vw([].concat(_toConsumableArray(e.filter(F)),_toConsumableArray(Pw.getDefaultDropdownDefinitions(t))),this.localizedDefaultStylesTitles);var _iterator382=_createForOfIteratorHelper(o),_step382;try{for(_iterator382.s();!(_step382=_iterator382.n()).done;){var _t341=_step382.value;this._createDropdown(_t341,n);}}catch(err){_iterator382.e(err);}finally{_iterator382.f();}}},{key:"_createDropdown",value:function _createDropdown(t,e){var _this326=this;var n=this.editor.ui.componentFactory;n.add(t.name,function(o){var i;var r=t.defaultItem,s=t.items,a=t.title,l=s.filter(function(t){return e.find(function(_ref100){var e=_ref100.name;return Hw(e)===t;});}).map(function(t){var e=n.create(t);return t===r&&(i=e),e;});s.length!==l.length&&Pw.warnInvalidStyle({dropdown:t});var c=Tg(o,zr),d=c.buttonView,u=d.arrowView;return Sg(c,l,{enableActiveItemFocusOnDropdownOpen:!0}),d.set({label:Uw(a,i.label),class:null,tooltip:!0}),u.unbind("label"),u.set({label:a}),d.bind("icon").toMany(l,"isOn",function(){for(var _len34=arguments.length,t=new Array(_len34),_key34=0;_key34<_len34;_key34++){t[_key34]=arguments[_key34];}var e=t.findIndex(Vs);return e<0?i.icon:l[e].icon;}),d.bind("label").toMany(l,"isOn",function(){for(var _len35=arguments.length,t=new Array(_len35),_key35=0;_key35<_len35;_key35++){t[_key35]=arguments[_key35];}var e=t.findIndex(Vs);return Uw(a,e<0?i.label:l[e].label);}),d.bind("isOn").toMany(l,"isOn",function(){for(var _len36=arguments.length,t=new Array(_len36),_key36=0;_key36<_len36;_key36++){t[_key36]=arguments[_key36];}return t.some(Vs);}),d.bind("class").toMany(l,"isOn",function(){for(var _len37=arguments.length,t=new Array(_len37),_key37=0;_key37<_len37;_key37++){t[_key37]=arguments[_key37];}return t.some(Vs)?"ck-splitbutton_flatten":void 0;}),d.on("execute",function(){l.some(function(_ref101){var t=_ref101.isOn;return t;})?c.isOpen=!c.isOpen:i.fire("execute");}),c.bind("isEnabled").toMany(l,"isEnabled",function(){for(var _len38=arguments.length,t=new Array(_len38),_key38=0;_key38<_len38;_key38++){t[_key38]=arguments[_key38];}return t.some(Vs);}),_this326.listenTo(c,"execute",function(){_this326.editor.editing.view.focus();}),c;});}},{key:"_createButton",value:function _createButton(t){var _this327=this;var e=t.name;this.editor.ui.componentFactory.add(Hw(e),function(n){var o=_this327.editor.commands.get("imageStyle"),i=new gr(n);return i.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o,"isEnabled"),i.bind("isOn").to(o,"value",function(t){return t===e;}),i.on("execute",_this327._executeCommand.bind(_this327,e)),i;});}},{key:"_executeCommand",value:function _executeCommand(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus();}}],[{key:"requires",get:function get(){return[Ow];}},{key:"pluginName",get:function get(){return"ImageStyleUI";}}]);return Fw;}(Fr);function Vw(t,e){var _iterator383=_createForOfIteratorHelper(t),_step383;try{for(_iterator383.s();!(_step383=_iterator383.n()).done;){var _n260=_step383.value;e[_n260.title]&&(_n260.title=e[_n260.title]);}}catch(err){_iterator383.e(err);}finally{_iterator383.f();}return t;}function Hw(t){return"imageStyle:".concat(t);}function Uw(t,e){return(t?t+": ":"")+e;}var Ww=/*#__PURE__*/function(_Fr58){_inherits(Ww,_Fr58);var _super226=_createSuper(Ww);function Ww(){_classCallCheck(this,Ww);return _super226.apply(this,arguments);}_createClass(Ww,[{key:"init",value:function init(){var t=this.editor;t.commands.add("indent",new Wr(t)),t.commands.add("outdent",new Wr(t));}}],[{key:"pluginName",get:function get(){return"IndentEditing";}}]);return Ww;}(Fr);var Gw='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zM1.632 6.95 5.02 9.358a.4.4 0 0 1-.013.661l-3.39 2.207A.4.4 0 0 1 1 11.892V7.275a.4.4 0 0 1 .632-.326z"/></svg>',qw='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 3.75c0 .414.336.75.75.75h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 0 0-.75.75zm5 6c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM2.75 16.5h14.5a.75.75 0 1 0 0-1.5H2.75a.75.75 0 1 0 0 1.5zm1.618-9.55L.98 9.358a.4.4 0 0 0 .013.661l3.39 2.207A.4.4 0 0 0 5 11.892V7.275a.4.4 0 0 0-.632-.326z"/></svg>';var $w=/*#__PURE__*/function(_Fr59){_inherits($w,_Fr59);var _super227=_createSuper($w);function $w(){_classCallCheck(this,$w);return _super227.apply(this,arguments);}_createClass($w,[{key:"init",value:function init(){var t=this.editor,e=t.locale,n=t.t,o="ltr"==e.uiLanguageDirection?Gw:qw,i="ltr"==e.uiLanguageDirection?qw:Gw;this._defineButton("indent",n("Increase indent"),o),this._defineButton("outdent",n("Decrease indent"),i);}},{key:"_defineButton",value:function _defineButton(t,e,n){var _this328=this;var o=this.editor;o.ui.componentFactory.add(t,function(i){var r=o.commands.get(t),s=new gr(i);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isEnabled").to(r,"isEnabled"),_this328.listenTo(s,"execute",function(){o.execute(t),o.editing.view.focus();}),s;});}}],[{key:"pluginName",get:function get(){return"IndentUI";}}]);return $w;}(Fr);var Kw=/*#__PURE__*/function(){function Kw(){_classCallCheck(this,Kw);this._definitions=new Set();}_createClass(Kw,[{key:"length",get:function get(){return this._definitions.size;}},{key:"add",value:function add(t){var _this329=this;Array.isArray(t)?t.forEach(function(t){return _this329._definitions.add(t);}):this._definitions.add(t);}},{key:"getDispatcher",value:function getDispatcher(){var _this330=this;return function(t){t.on("attribute:linkHref",function(t,e,n){if(!n.consumable.test(e.item,"attribute:linkHref"))return;if(!e.item.is("selection")&&!n.schema.isInline(e.item))return;var o=n.writer,i=o.document.selection;var _iterator384=_createForOfIteratorHelper(_this330._definitions),_step384;try{for(_iterator384.s();!(_step384=_iterator384.n()).done;){var _t342=_step384.value;var _r62=o.createAttributeElement("a",_t342.attributes,{priority:5});_t342.classes&&o.addClass(_t342.classes,_r62);for(var _e272 in _t342.styles)o.setStyle(_e272,_t342.styles[_e272],_r62);o.setCustomProperty("link",!0,_r62),_t342.callback(e.attributeNewValue)?e.item.is("selection")?o.wrap(i.getFirstRange(),_r62):o.wrap(n.mapper.toViewRange(e.range),_r62):o.unwrap(n.mapper.toViewRange(e.range),_r62);}}catch(err){_iterator384.e(err);}finally{_iterator384.f();}},{priority:"high"});};}},{key:"getDispatcherForLinkedImage",value:function getDispatcherForLinkedImage(){var _this331=this;return function(t){t.on("attribute:linkHref:imageBlock",function(t,e,_ref102){var n=_ref102.writer,o=_ref102.mapper;var i=o.toViewElement(e.item),r=Array.from(i.getChildren()).find(function(t){return t.is("element","a");});var _iterator385=_createForOfIteratorHelper(_this331._definitions),_step385;try{for(_iterator385.s();!(_step385=_iterator385.n()).done;){var _t343=_step385.value;var _o166=Si(_t343.attributes);if(_t343.callback(e.attributeNewValue)){var _iterator386=_createForOfIteratorHelper(_o166),_step386;try{for(_iterator386.s();!(_step386=_iterator386.n()).done;){var _step386$value=_slicedToArray(_step386.value,2),_t344=_step386$value[0],_e274=_step386$value[1];"class"===_t344?n.addClass(_e274,r):n.setAttribute(_t344,_e274,r);}}catch(err){_iterator386.e(err);}finally{_iterator386.f();}_t343.classes&&n.addClass(_t343.classes,r);for(var _e273 in _t343.styles)n.setStyle(_e273,_t343.styles[_e273],r);}else{var _iterator387=_createForOfIteratorHelper(_o166),_step387;try{for(_iterator387.s();!(_step387=_iterator387.n()).done;){var _step387$value=_slicedToArray(_step387.value,2),_t345=_step387$value[0],_e276=_step387$value[1];"class"===_t345?n.removeClass(_e276,r):n.removeAttribute(_t345,r);}}catch(err){_iterator387.e(err);}finally{_iterator387.f();}_t343.classes&&n.removeClass(_t343.classes,r);for(var _e275 in _t343.styles)n.removeStyle(_e275,r);}}}catch(err){_iterator385.e(err);}finally{_iterator385.f();}});};}}]);return Kw;}();var Yw=function Yw(t,e,n){var o=t.length;return n=void 0===n?o:n,!e&&n>=o?t:Ss(t,e,n);};var Qw=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");var Zw=function Zw(t){return Qw.test(t);};var Jw=function Jw(t){return t.split("");};var Xw="\\ud800-\\udfff",tA="["+Xw+"]",eA="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",nA="\\ud83c[\\udffb-\\udfff]",oA="[^"+Xw+"]",iA="(?:\\ud83c[\\udde6-\\uddff]){2}",rA="[\\ud800-\\udbff][\\udc00-\\udfff]",sA="(?:"+eA+"|"+nA+")"+"?",aA="[\\ufe0e\\ufe0f]?",lA=aA+sA+("(?:\\u200d(?:"+[oA,iA,rA].join("|")+")"+aA+sA+")*"),cA="(?:"+[oA+eA+"?",eA,iA,rA,tA].join("|")+")",dA=RegExp(nA+"(?="+nA+")|"+cA+lA,"g");var uA=function uA(t){return t.match(dA)||[];};var hA=function hA(t){return Zw(t)?uA(t):Jw(t);};var gA=function(t){return function(e){e=ys(e);var n=Zw(e)?hA(e):void 0,o=n?n[0]:e.charAt(0),i=n?Yw(n,1).join(""):e.slice(1);return o[t]()+i;};}("toUpperCase"),mA=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,pA=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,fA=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,kA=/^((\w+:(\/{2,})?)|(\W))/i,bA="Ctrl+K";function wA(t,_ref103){var e=_ref103.writer;var n=e.createAttributeElement("a",{href:t},{priority:5});return e.setCustomProperty("link",!0,n),n;}function AA(t){var e=String(t);return function(t){var e=t.replace(mA,"");return!!e.match(pA);}(e)?e:"#";}function _A(t,e){return!!t&&e.checkAttribute(t.name,"linkHref");}function CA(t,e){var n=(o=t,fA.test(o)?"mailto:":e);var o;var i=!!n&&!vA(t);return t&&i?n+t:t;}function vA(t){return kA.test(t);}function yA(t){window.open(t,"_blank","noopener");}var xA=/*#__PURE__*/function(_Hr22){_inherits(xA,_Hr22);var _super228=_createSuper(xA);function xA(){var _this332;_classCallCheck(this,xA);_this332=_super228.apply(this,arguments),_this332.manualDecorators=new xi(),_this332.automaticDecorators=new Kw();return _this332;}_createClass(xA,[{key:"restoreManualDecoratorStates",value:function restoreManualDecoratorStates(){var _iterator388=_createForOfIteratorHelper(this.manualDecorators),_step388;try{for(_iterator388.s();!(_step388=_iterator388.n()).done;){var _t346=_step388.value;_t346.value=this._getDecoratorStateFromModel(_t346.id);}}catch(err){_iterator388.e(err);}finally{_iterator388.f();}}},{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Ei(e.getSelectedBlocks());_A(n,t.schema)?(this.value=n.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttribute(n,"linkHref")):(this.value=e.getAttribute("linkHref"),this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref"));var _iterator389=_createForOfIteratorHelper(this.manualDecorators),_step389;try{for(_iterator389.s();!(_step389=_iterator389.n()).done;){var _t347=_step389.value;_t347.value=this._getDecoratorStateFromModel(_t347.id);}}catch(err){_iterator389.e(err);}finally{_iterator389.f();}}},{key:"execute",value:function execute(t){var _this333=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.editor.model,o=n.document.selection,i=[],r=[];for(var _t348 in e)e[_t348]?i.push(_t348):r.push(_t348);n.change(function(e){if(o.isCollapsed){var _s34=o.getFirstPosition();if(o.hasAttribute("linkHref")){var _a20=EA(o);var _l22=Sp(_s34,"linkHref",o.getAttribute("linkHref"),n);o.getAttribute("linkHref")===_a20&&(_l22=_this333._updateLinkContent(n,e,_l22,t)),e.setAttribute("linkHref",t,_l22),i.forEach(function(t){e.setAttribute(t,!0,_l22);}),r.forEach(function(t){e.removeAttribute(t,_l22);}),e.setSelection(e.createPositionAfter(_l22.end.nodeBefore));}else if(""!==t){var _r63=Si(o.getAttributes());_r63.set("linkHref",t),i.forEach(function(t){_r63.set(t,!0);});var _n$insertContent=n.insertContent(e.createText(t,_r63),_s34),_a21=_n$insertContent.end;e.setSelection(_a21);}["linkHref"].concat(i,r).forEach(function(t){e.removeSelectionAttribute(t);});}else{var _s35=n.schema.getValidRanges(o.getRanges(),"linkHref"),_a22=[];var _iterator390=_createForOfIteratorHelper(o.getSelectedBlocks()),_step390;try{for(_iterator390.s();!(_step390=_iterator390.n()).done;){var _t349=_step390.value;n.schema.checkAttribute(_t349,"linkHref")&&_a22.push(e.createRangeOn(_t349));}}catch(err){_iterator390.e(err);}finally{_iterator390.f();}var _l23=_a22.slice();var _iterator391=_createForOfIteratorHelper(_s35),_step391;try{for(_iterator391.s();!(_step391=_iterator391.n()).done;){var _t350=_step391.value;_this333._isRangeToUpdate(_t350,_a22)&&_l23.push(_t350);}}catch(err){_iterator391.e(err);}finally{_iterator391.f();}var _iterator392=_createForOfIteratorHelper(_l23),_step392;try{var _loop8=function _loop8(){var s=_step392.value;var a=s;if(1===_l23.length){var _i158=EA(o);o.getAttribute("linkHref")===_i158&&(a=_this333._updateLinkContent(n,e,s,t),e.setSelection(e.createSelection(a)));}e.setAttribute("linkHref",t,a),i.forEach(function(t){e.setAttribute(t,!0,a);}),r.forEach(function(t){e.removeAttribute(t,a);});};for(_iterator392.s();!(_step392=_iterator392.n()).done;){_loop8();}}catch(err){_iterator392.e(err);}finally{_iterator392.f();}}});}},{key:"_getDecoratorStateFromModel",value:function _getDecoratorStateFromModel(t){var e=this.editor.model,n=e.document.selection,o=n.getSelectedElement();return _A(o,e.schema)?o.getAttribute(t):n.getAttribute(t);}},{key:"_isRangeToUpdate",value:function _isRangeToUpdate(t,e){var _iterator393=_createForOfIteratorHelper(e),_step393;try{for(_iterator393.s();!(_step393=_iterator393.n()).done;){var _n261=_step393.value;if(_n261.containsRange(t))return!1;}}catch(err){_iterator393.e(err);}finally{_iterator393.f();}return!0;}},{key:"_updateLinkContent",value:function _updateLinkContent(t,e,n,o){var i=e.createText(o,{linkHref:o});return t.insertContent(i,n);}}]);return xA;}(Hr);function EA(t){if(t.isCollapsed){var _e277=t.getFirstPosition();return _e277.textNode&&_e277.textNode.data;}{var _e278=Array.from(t.getFirstRange().getItems());if(_e278.length>1)return null;var _n262=_e278[0];return _n262.is("$text")||_n262.is("$textProxy")?_n262.data:null;}}var DA=/*#__PURE__*/function(_Hr23){_inherits(DA,_Hr23);var _super229=_createSuper(DA);function DA(){_classCallCheck(this,DA);return _super229.apply(this,arguments);}_createClass(DA,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();_A(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref");}},{key:"execute",value:function execute(){var t=this.editor,e=this.editor.model,n=e.document.selection,o=t.commands.get("link");e.change(function(t){var i=n.isCollapsed?[Sp(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref");var _iterator394=_createForOfIteratorHelper(i),_step394;try{for(_iterator394.s();!(_step394=_iterator394.n()).done;){var _e279=_step394.value;if(t.removeAttribute("linkHref",_e279),o){var _iterator395=_createForOfIteratorHelper(o.manualDecorators),_step395;try{for(_iterator395.s();!(_step395=_iterator395.n()).done;){var _n263=_step395.value;t.removeAttribute(_n263.id,_e279);}}catch(err){_iterator395.e(err);}finally{_iterator395.f();}}}}catch(err){_iterator394.e(err);}finally{_iterator394.f();}});}}]);return DA;}(Hr);var TA=/*#__PURE__*/function(_$18){_inherits(TA,_$18);var _super230=_createSuper(TA);function TA(_ref104){var _this334;var t=_ref104.id,e=_ref104.label,n=_ref104.attributes,o=_ref104.classes,i=_ref104.styles,r=_ref104.defaultValue;_classCallCheck(this,TA);_this334=_super230.call(this),_this334.id=t,_this334.set("value",void 0),_this334.defaultValue=r,_this334.label=e,_this334.attributes=n,_this334.classes=o,_this334.styles=i;return _this334;}_createClass(TA,[{key:"_createPattern",value:function _createPattern(){return{attributes:this.attributes,classes:this.classes,styles:this.styles};}}]);return TA;}($());var SA=n(399),IA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(SA.Z,IA);SA.Z.locals;var MA="automatic",BA=/^(https?:)?\/\//;var NA=/*#__PURE__*/function(_Fr60){_inherits(NA,_Fr60);var _super231=_createSuper(NA);function NA(t){var _this335;_classCallCheck(this,NA);_this335=_super231.call(this,t),t.config.define("link",{addTargetToExternalLinks:!1});return _this335;}_createClass(NA,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:wA}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function view(t,e){return wA(AA(t),e);}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function value(t){return t.getAttribute("href");}}}),t.commands.add("link",new xA(t)),t.commands.add("unlink",new DA(t));var e=function(t,e){var n={"Open in a new tab":t("Open in a new tab"),Downloadable:t("Downloadable")};return e.forEach(function(t){return"label"in t&&n[t.label]&&(t.label=n[t.label]),t;}),e;}(t.t,function(t){var e=[];if(t)for(var _i159=0,_Object$entries4=Object.entries(t);_i159<_Object$entries4.length;_i159++){var _Object$entries4$_i=_slicedToArray(_Object$entries4[_i159],2),_n264=_Object$entries4$_i[0],_o167=_Object$entries4$_i[1];var _t351=Object.assign({},_o167,{id:"link".concat(gA(_n264))});e.push(_t351);}return e;}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter(function(t){return t.mode===MA;})),this._enableManualDecorators(e.filter(function(t){return"manual"===t.mode;}));t.plugins.get(mp).registerAttribute("linkHref"),function(t,e,n,o){var i=t.editing.view,r=new Set();i.document.registerPostFixer(function(i){var s=t.model.document.selection;var a=!1;if(s.hasAttribute(e)){var _l24=Sp(s.getFirstPosition(),e,s.getAttribute(e),t.model),_c9=t.editing.mapper.toViewRange(_l24);var _iterator396=_createForOfIteratorHelper(_c9.getItems()),_step396;try{for(_iterator396.s();!(_step396=_iterator396.n()).done;){var _t352=_step396.value;_t352.is("element",n)&&!_t352.hasClass(o)&&(i.addClass(o,_t352),r.add(_t352),a=!0);}}catch(err){_iterator396.e(err);}finally{_iterator396.f();}}return a;}),t.conversion.for("editingDowncast").add(function(t){function e(){i.change(function(t){var _iterator397=_createForOfIteratorHelper(r.values()),_step397;try{for(_iterator397.s();!(_step397=_iterator397.n()).done;){var _e280=_step397.value;t.removeClass(o,_e280),r.delete(_e280);}}catch(err){_iterator397.e(err);}finally{_iterator397.f();}});}t.on("insert",e,{priority:"highest"}),t.on("remove",e,{priority:"highest"}),t.on("attribute",e,{priority:"highest"}),t.on("selection",e,{priority:"highest"});});}(t,"linkHref","a","ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink(),this._enableClipboardIntegration();}},{key:"_enableAutomaticDecorators",value:function _enableAutomaticDecorators(t){var e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:MA,callback:function callback(t){return!!t&&BA.test(t);},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher());}},{key:"_enableManualDecorators",value:function _enableManualDecorators(t){if(!t.length)return;var e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach(function(t){e.model.schema.extend("$text",{allowAttributes:t.id});var o=new TA(t);n.add(o),e.conversion.for("downcast").attributeToElement({model:o.id,view:function view(t,_ref105,_ref106){var e=_ref105.writer,n=_ref105.schema;var i=_ref106.item;if((i.is("selection")||n.isInline(i))&&t){var _t353=e.createAttributeElement("a",o.attributes,{priority:5});o.classes&&e.addClass(o.classes,_t353);for(var _n265 in o.styles)e.setStyle(_n265,o.styles[_n265],_t353);return e.setCustomProperty("link",!0,_t353),_t353;}}}),e.conversion.for("upcast").elementToAttribute({view:_objectSpread({name:"a"},o._createPattern()),model:{key:o.id}});});}},{key:"_enableLinkOpen",value:function _enableLinkOpen(){var t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",function(t,e){if(!(l.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey))return;var n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),!n)return;var o=n.getAttribute("href");o&&(t.stop(),e.preventDefault(),yA(o));},{context:"$capture"}),this.listenTo(e,"keydown",function(e,n){var o=t.commands.get("link").value;!!o&&n.keyCode===mi.enter&&n.altKey&&(e.stop(),yA(o));});}},{key:"_enableInsertContentSelectionAttributesFixer",value:function _enableInsertContentSelectionAttributesFixer(){var t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",function(){var n=e.anchor.nodeBefore,o=e.anchor.nodeAfter;e.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(o&&o.hasAttribute("linkHref")||t.change(function(e){zA(e,LA(t.schema));}));},{priority:"low"});}},{key:"_enableClickingAfterLink",value:function _enableClickingAfterLink(){var t=this.editor,e=t.model;t.editing.view.addObserver(wh);var n=!1;this.listenTo(t.editing.view.document,"mousedown",function(){n=!0;}),this.listenTo(t.editing.view.document,"selectionChange",function(){if(!n)return;n=!1;var t=e.document.selection;if(!t.isCollapsed)return;if(!t.hasAttribute("linkHref"))return;var o=t.getFirstPosition(),i=Sp(o,"linkHref",t.getAttribute("linkHref"),e);(o.isTouching(i.start)||o.isTouching(i.end))&&e.change(function(t){zA(t,LA(e.schema));});});}},{key:"_enableTypingOverLink",value:function _enableTypingOverLink(){var t=this.editor,e=t.editing.view;var n=null,o=!1;this.listenTo(e.document,"delete",function(){o=!0;},{priority:"high"}),this.listenTo(t.model,"deleteContent",function(){var e=t.model.document.selection;e.isCollapsed||(o?o=!1:PA(t)&&function(t){var e=t.document.selection,n=e.getFirstPosition(),o=e.getLastPosition(),i=n.nodeAfter;if(!i)return!1;if(!i.is("$text"))return!1;if(!i.hasAttribute("linkHref"))return!1;var r=o.textNode||o.nodeBefore;if(i===r)return!0;return Sp(n,"linkHref",i.getAttribute("linkHref"),t).containsRange(t.createRange(n,o),!0);}(t.model)&&(n=e.getAttributes()));},{priority:"high"}),this.listenTo(t.model,"insertContent",function(e,_ref107){var _ref108=_slicedToArray(_ref107,1),i=_ref108[0];o=!1,PA(t)&&n&&(t.model.change(function(t){var _iterator398=_createForOfIteratorHelper(n),_step398;try{for(_iterator398.s();!(_step398=_iterator398.n()).done;){var _step398$value=_slicedToArray(_step398.value,2),_e281=_step398$value[0],_o168=_step398$value[1];t.setAttribute(_e281,_o168,i);}}catch(err){_iterator398.e(err);}finally{_iterator398.f();}}),n=null);},{priority:"high"});}},{key:"_handleDeleteContentAfterLink",value:function _handleDeleteContentAfterLink(){var t=this.editor,e=t.model,n=e.document.selection,o=t.editing.view;var i=!1,r=!1;this.listenTo(o.document,"delete",function(t,e){r="backward"===e.direction;},{priority:"high"}),this.listenTo(e,"deleteContent",function(){i=!1;var t=n.getFirstPosition(),o=n.getAttribute("linkHref");if(!o)return;var r=Sp(t,"linkHref",o,e);i=r.containsPosition(t)||r.end.isEqual(t);},{priority:"high"}),this.listenTo(e,"deleteContent",function(){r&&(r=!1,i||t.model.enqueueChange(function(t){zA(t,LA(e.schema));}));},{priority:"low"});}},{key:"_enableClipboardIntegration",value:function _enableClipboardIntegration(){var t=this.editor,e=t.model,n=this.editor.config.get("link.defaultProtocol");n&&this.listenTo(t.plugins.get("ClipboardPipeline"),"contentInsertion",function(t,o){e.change(function(t){var e=t.createRangeIn(o.content);var _iterator399=_createForOfIteratorHelper(e.getItems()),_step399;try{for(_iterator399.s();!(_step399=_iterator399.n()).done;){var _o169=_step399.value;if(_o169.hasAttribute("linkHref")){var _e282=CA(_o169.getAttribute("linkHref"),n);t.setAttribute("linkHref",_e282,_o169);}}}catch(err){_iterator399.e(err);}finally{_iterator399.f();}});});}}],[{key:"pluginName",get:function get(){return"LinkEditing";}},{key:"requires",get:function get(){return[mp,ep,Qm];}}]);return NA;}(Fr);function zA(t,e){t.removeSelectionAttribute("linkHref");var _iterator400=_createForOfIteratorHelper(e),_step400;try{for(_iterator400.s();!(_step400=_iterator400.n()).done;){var _n266=_step400.value;t.removeSelectionAttribute(_n266);}}catch(err){_iterator400.e(err);}finally{_iterator400.f();}}function PA(t){return t.model.change(function(t){return t.batch;}).isTyping;}function LA(t){return t.getDefinition("$text").allowAttributes.filter(function(t){return t.startsWith("link");});}var OA=n(4827),RA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(OA.Z,RA);OA.Z.locals;var jA=/*#__PURE__*/function(_ji27){_inherits(jA,_ji27);var _super232=_createSuper(jA);function jA(t,e){var _this336;_classCallCheck(this,jA);_this336=_super232.call(this,t),_this336.focusTracker=new Di(),_this336.keystrokes=new Ti(),_this336._focusables=new zi();var n=t.t;_this336.urlInputView=_this336._createUrlInput(),_this336.saveButtonView=_this336._createButton(n("Save"),dg.check,"ck-button-save"),_this336.saveButtonView.type="submit",_this336.cancelButtonView=_this336._createButton(n("Cancel"),dg.cancel,"ck-button-cancel","cancel"),_this336._manualDecoratorSwitches=_this336._createManualDecoratorSwitches(e),_this336.children=_this336._createFormChildren(e.manualDecorators),_this336._focusCycler=new Pr({focusables:_this336._focusables,focusTracker:_this336.focusTracker,keystrokeHandler:_this336.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var o=["ck","ck-link-form","ck-responsive-form"];e.manualDecorators.length&&o.push("ck-link-form_layout-vertical","ck-vertical-form"),_this336.setTemplate({tag:"form",attributes:{class:o,tabindex:"-1"},children:_this336.children});return _this336;}_createClass(jA,[{key:"getDecoratorSwitchesState",value:function getDecoratorSwitchesState(){return Array.from(this._manualDecoratorSwitches).reduce(function(t,e){return t[e.name]=e.isOn,t;},{});}},{key:"render",value:function render(){var _this337=this;_get(_getPrototypeOf(jA.prototype),"render",this).call(this),i({view:this});[this.urlInputView].concat(_toConsumableArray(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEach(function(t){_this337._focusables.add(t),_this337.focusTracker.add(t.element);}),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(jA.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"_createUrlInput",value:function _createUrlInput(){var t=this.locale.t,e=new hm(this.locale,gm);return e.label=t("Link URL"),e;}},{key:"_createButton",value:function _createButton(t,e,n,o){var i=new gr(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i;}},{key:"_createManualDecoratorSwitches",value:function _createManualDecoratorSwitches(t){var _this338=this;var e=this.createCollection();var _iterator401=_createForOfIteratorHelper(t.manualDecorators),_step401;try{var _loop9=function _loop9(){var n=_step401.value;var o=new fr(_this338.locale);o.set({name:n.id,label:n.label,withText:!0}),o.bind("isOn").toMany([n,t],"value",function(t,e){return void 0===e&&void 0===t?!!n.defaultValue:!!t;}),o.on("execute",function(){n.set("value",!o.isOn);}),e.add(o);};for(_iterator401.s();!(_step401=_iterator401.n()).done;){_loop9();}}catch(err){_iterator401.e(err);}finally{_iterator401.f();}return e;}},{key:"_createFormChildren",value:function _createFormChildren(t){var e=this.createCollection();if(e.add(this.urlInputView),t.length){var _t354=new ji();_t354.setTemplate({tag:"ul",children:this._manualDecoratorSwitches.map(function(t){return{tag:"li",children:[t],attributes:{class:["ck","ck-list__item"]}};}),attributes:{class:["ck","ck-reset","ck-list"]}}),e.add(_t354);}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e;}}]);return jA;}(ji);var FA=n(9465),VA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(FA.Z,VA);FA.Z.locals;var HA=/*#__PURE__*/function(_ji28){_inherits(HA,_ji28);var _super233=_createSuper(HA);function HA(t){var _this339;_classCallCheck(this,HA);_this339=_super233.call(this,t),_this339.focusTracker=new Di(),_this339.keystrokes=new Ti(),_this339._focusables=new zi();var e=t.t;_this339.previewButtonView=_this339._createPreviewButton(),_this339.unlinkButtonView=_this339._createButton(e("Unlink"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184zm4.919 10.562-1.414 1.414a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.061-1.06l1.414 1.414 1.414-1.415a.75.75 0 0 1 1.061 1.061l-1.414 1.414 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414z"/></svg>',"unlink"),_this339.editButtonView=_this339._createButton(e("Edit link"),dg.pencil,"edit"),_this339.set("href",void 0),_this339._focusCycler=new Pr({focusables:_this339._focusables,focusTracker:_this339.focusTracker,keystrokeHandler:_this339.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this339.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[_this339.previewButtonView,_this339.editButtonView,_this339.unlinkButtonView]});return _this339;}_createClass(HA,[{key:"render",value:function render(){var _this340=this;_get(_getPrototypeOf(HA.prototype),"render",this).call(this);[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach(function(t){_this340._focusables.add(t),_this340.focusTracker.add(t.element);}),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(HA.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"_createButton",value:function _createButton(t,e,n){var o=new gr(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.delegate("execute").to(this,n),o;}},{key:"_createPreviewButton",value:function _createPreviewButton(){var t=new gr(this.locale),e=this.bindTemplate,n=this.t;return t.set({withText:!0,tooltip:n("Open link in new tab")}),t.extendTemplate({attributes:{class:["ck","ck-link-actions__preview"],href:e.to("href",function(t){return t&&AA(t);}),target:"_blank",rel:"noopener noreferrer"}}),t.bind("label").to(this,"href",function(t){return t||n("This link has no URL");}),t.bind("isEnabled").to(this,"href",function(t){return!!t;}),t.template.tag="a",t.template.eventListeners={},t;}}]);return HA;}(ji);var UA="link-ui";var WA=/*#__PURE__*/function(_Fr61){_inherits(WA,_Fr61);var _super234=_createSuper(WA);function WA(){var _this341;_classCallCheck(this,WA);_this341=_super234.apply(this,arguments),_this341.actionsView=null,_this341.formView=null;return _this341;}_createClass(WA,[{key:"init",value:function init(){var t=this.editor;t.editing.view.addObserver(bh),this._balloon=t.plugins.get(Cm),this._createToolbarLinkButton(),this._enableBalloonActivators(),t.conversion.for("editingDowncast").markerToHighlight({model:UA,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:UA,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(WA.prototype),"destroy",this).call(this),this.formView&&this.formView.destroy(),this.actionsView&&this.actionsView.destroy();}},{key:"_createViews",value:function _createViews(){this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._enableUserBalloonInteractions();}},{key:"_createActionsView",value:function _createActionsView(){var _this342=this;var t=this.editor,e=new HA(t.locale),n=t.commands.get("link"),o=t.commands.get("unlink");return e.bind("href").to(n,"value"),e.editButtonView.bind("isEnabled").to(n),e.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(e,"edit",function(){_this342._addFormView();}),this.listenTo(e,"unlink",function(){t.execute("unlink"),_this342._hideUI();}),e.keystrokes.set("Esc",function(t,e){_this342._hideUI(),e();}),e.keystrokes.set(bA,function(t,e){_this342._addFormView(),e();}),e;}},{key:"_createFormView",value:function _createFormView(){var _this343=this;var t=this.editor,n=t.commands.get("link"),o=t.config.get("link.defaultProtocol"),i=new(e(jA))(t.locale,n);return i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isEnabled").to(n,"isEnabled"),i.saveButtonView.bind("isEnabled").to(n),this.listenTo(i,"submit",function(){var e=i.urlInputView.fieldView.element.value,n=CA(e,o);t.execute("link",n,i.getDecoratorSwitchesState()),_this343._closeFormView();}),this.listenTo(i,"cancel",function(){_this343._closeFormView();}),i.keystrokes.set("Esc",function(t,e){_this343._closeFormView(),e();}),i;}},{key:"_createToolbarLinkButton",value:function _createToolbarLinkButton(){var _this344=this;var t=this.editor,e=t.commands.get("link"),n=t.t;t.ui.componentFactory.add("link",function(t){var o=new gr(t);return o.isEnabled=!0,o.label=n("Link"),o.icon='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.077 15 .991-1.416a.75.75 0 1 1 1.229.86l-1.148 1.64a.748.748 0 0 1-.217.206 5.251 5.251 0 0 1-8.503-5.955.741.741 0 0 1 .12-.274l1.147-1.639a.75.75 0 1 1 1.228.86L4.933 10.7l.006.003a3.75 3.75 0 0 0 6.132 4.294l.006.004zm5.494-5.335a.748.748 0 0 1-.12.274l-1.147 1.639a.75.75 0 1 1-1.228-.86l.86-1.23a3.75 3.75 0 0 0-6.144-4.301l-.86 1.229a.75.75 0 0 1-1.229-.86l1.148-1.64a.748.748 0 0 1 .217-.206 5.251 5.251 0 0 1 8.503 5.955zm-4.563-2.532a.75.75 0 0 1 .184 1.045l-3.155 4.505a.75.75 0 1 1-1.229-.86l3.155-4.506a.75.75 0 0 1 1.045-.184z"/></svg>',o.keystroke=bA,o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(e,"isEnabled"),o.bind("isOn").to(e,"value",function(t){return!!t;}),_this344.listenTo(o,"execute",function(){return _this344._showUI(!0);}),o;});}},{key:"_enableBalloonActivators",value:function _enableBalloonActivators(){var _this345=this;var t=this.editor,e=t.editing.view.document;this.listenTo(e,"click",function(){_this345._getSelectedLinkElement()&&_this345._showUI();}),t.keystrokes.set(bA,function(e,n){n(),t.commands.get("link").isEnabled&&_this345._showUI(!0);});}},{key:"_enableUserBalloonInteractions",value:function _enableUserBalloonInteractions(){var _this346=this;this.editor.keystrokes.set("Tab",function(t,e){_this346._areActionsVisible&&!_this346.actionsView.focusTracker.isFocused&&(_this346.actionsView.focus(),e());},{priority:"high"}),this.editor.keystrokes.set("Esc",function(t,e){_this346._isUIVisible&&(_this346._hideUI(),e());}),t({emitter:this.formView,activator:function activator(){return _this346._isUIInPanel;},contextElements:function contextElements(){return[_this346._balloon.view.element];},callback:function callback(){return _this346._hideUI();}});}},{key:"_addActionsView",value:function _addActionsView(){this.actionsView||this._createViews(),this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()});}},{key:"_addFormView",value:function _addFormView(){if(this.formView||this._createViews(),this._isFormInPanel)return;var t=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=t.value||"";}},{key:"_closeFormView",value:function _closeFormView(){var t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI();}},{key:"_removeFormView",value:function _removeFormView(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection());}},{key:"_showUI",value:function _showUI(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:!1;this.formView||this._createViews(),this._getSelectedLinkElement()?(this._areActionsVisible?this._addFormView():this._addActionsView(),t&&this._balloon.showStack("main")):(this._showFakeVisualSelection(),this._addActionsView(),t&&this._balloon.showStack("main"),this._addFormView()),this._startUpdatingUI();}},{key:"_hideUI",value:function _hideUI(){if(!this._isUIInPanel)return;var t=this.editor;this.stopListening(t.ui,"update"),this.stopListening(this._balloon,"change:visibleView"),t.editing.view.focus(),this._removeFormView(),this._balloon.remove(this.actionsView),this._hideFakeVisualSelection();}},{key:"_startUpdatingUI",value:function _startUpdatingUI(){var _this347=this;var t=this.editor,e=t.editing.view.document;var n=this._getSelectedLinkElement(),o=r();var i=function i(){var t=_this347._getSelectedLinkElement(),e=r();n&&!t||!n&&e!==o?_this347._hideUI():_this347._isUIVisible&&_this347._balloon.updatePosition(_this347._getBalloonPositionData()),n=t,o=e;};function r(){return e.selection.focus.getAncestors().reverse().find(function(t){return t.is("element");});}this.listenTo(t.ui,"update",i),this.listenTo(this._balloon,"change:visibleView",i);}},{key:"_isFormInPanel",get:function get(){return!!this.formView&&this._balloon.hasView(this.formView);}},{key:"_areActionsInPanel",get:function get(){return!!this.actionsView&&this._balloon.hasView(this.actionsView);}},{key:"_areActionsVisible",get:function get(){return!!this.actionsView&&this._balloon.visibleView===this.actionsView;}},{key:"_isUIInPanel",get:function get(){return this._isFormInPanel||this._areActionsInPanel;}},{key:"_isUIVisible",get:function get(){var t=this._balloon.visibleView;return!!this.formView&&t==this.formView||this._areActionsVisible;}},{key:"_getBalloonPositionData",value:function _getBalloonPositionData(){var _this348=this;var t=this.editor.editing.view,e=this.editor.model,n=t.document;var o;if(e.markers.has(UA)){var _e283=Array.from(this.editor.editing.mapper.markerNameToElements(UA)),_n267=t.createRange(t.createPositionBefore(_e283[0]),t.createPositionAfter(_e283[_e283.length-1]));o=t.domConverter.viewRangeToDom(_n267);}else o=function o(){var e=_this348._getSelectedLinkElement();return e?t.domConverter.mapViewToDom(e):t.domConverter.viewRangeToDom(n.selection.getFirstRange());};return{target:o};}},{key:"_getSelectedLinkElement",value:function _getSelectedLinkElement(){var t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Kp(n))return GA(e.getFirstPosition());{var _n268=e.getFirstRange().getTrimmed(),_o170=GA(_n268.start),_i160=GA(_n268.end);return _o170&&_o170==_i160&&t.createRangeIn(_o170).getTrimmed().isEqual(_n268)?_o170:null;}}},{key:"_showFakeVisualSelection",value:function _showFakeVisualSelection(){var t=this.editor.model;t.change(function(e){var n=t.document.selection.getFirstRange();if(t.markers.has(UA))e.updateMarker(UA,{range:n});else if(n.start.isAtEnd){var _o171=n.start.getLastMatchingPosition(function(_ref109){var e=_ref109.item;return!t.schema.isContent(e);},{boundaries:n});e.addMarker(UA,{usingOperation:!1,affectsData:!1,range:e.createRange(_o171,n.end)});}else e.addMarker(UA,{usingOperation:!1,affectsData:!1,range:n});});}},{key:"_hideFakeVisualSelection",value:function _hideFakeVisualSelection(){var t=this.editor.model;t.markers.has(UA)&&t.change(function(t){t.removeMarker(UA);});}}],[{key:"requires",get:function get(){return[Cm];}},{key:"pluginName",get:function get(){return"LinkUI";}}]);return WA;}(Fr);function GA(t){return t.getAncestors().find(function(t){return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e;})||null;}var qA=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");var $A=/*#__PURE__*/function(_Fr62){_inherits($A,_Fr62);var _super235=_createSuper($A);function $A(){_classCallCheck(this,$A);return _super235.apply(this,arguments);}_createClass($A,[{key:"init",value:function init(){var _this349=this;var t=this.editor.model.document.selection;t.on("change:range",function(){_this349.isEnabled=!t.anchor.parent.is("element","codeBlock");}),this._enableTypingHandling();}},{key:"afterInit",value:function afterInit(){this._enableEnterHandling(),this._enableShiftEnterHandling();}},{key:"_enableTypingHandling",value:function _enableTypingHandling(){var _this350=this;var t=this.editor,e=new gp(t.model,function(t){if(!function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2];}(t))return;var e=KA(t.substr(0,t.length-1));return e?{url:e}:void 0;});e.on("matched:data",function(e,n){var o=n.batch,i=n.range,r=n.url;if(!o.isTyping)return;var s=i.end.getShiftedBy(-1),a=s.getShiftedBy(-r.length),l=t.model.createRange(a,s);_this350._applyAutoLink(r,l);}),e.bind("isEnabled").to(this);}},{key:"_enableEnterHandling",value:function _enableEnterHandling(){var _this351=this;var t=this.editor,e=t.model,n=t.commands.get("enter");n&&n.on("execute",function(){var t=e.document.selection.getFirstPosition();if(!t.parent.previousSibling)return;var n=e.createRangeIn(t.parent.previousSibling);_this351._checkAndApplyAutoLinkOnRange(n);});}},{key:"_enableShiftEnterHandling",value:function _enableShiftEnterHandling(){var _this352=this;var t=this.editor,e=t.model,n=t.commands.get("shiftEnter");n&&n.on("execute",function(){var t=e.document.selection.getFirstPosition(),n=e.createRange(e.createPositionAt(t.parent,0),t.getShiftedBy(-1));_this352._checkAndApplyAutoLinkOnRange(n);});}},{key:"_checkAndApplyAutoLinkOnRange",value:function _checkAndApplyAutoLinkOnRange(t){var e=this.editor.model,_hp2=hp(t,e),n=_hp2.text,o=_hp2.range,i=KA(n);if(i){var _t355=e.createRange(o.end.getShiftedBy(-i.length),o.end);this._applyAutoLink(i,_t355);}}},{key:"_applyAutoLink",value:function _applyAutoLink(t,e){var n=this.editor.model,o=CA(t,this.editor.config.get("link.defaultProtocol"));this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref");}(e,n)&&vA(o)&&!function(t){var e=t.start.nodeAfter;return!!e&&e.hasAttribute("linkHref");}(e)&&this._persistAutoLink(o,e);}},{key:"_persistAutoLink",value:function _persistAutoLink(t,e){var n=this.editor.model,o=this.editor.plugins.get("Delete");n.enqueueChange(function(i){i.setAttribute("linkHref",t,e),n.enqueueChange(function(){o.requestUndoOnBackspace();});});}}],[{key:"requires",get:function get(){return[dp];}},{key:"pluginName",get:function get(){return"AutoLink";}}]);return $A;}(Fr);function KA(t){var e=qA.exec(t);return e?e[2]:null;}var YA=n(3858),QA={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(YA.Z,QA);YA.Z.locals;var ZA=/*#__PURE__*/function(_Symbol$iterator14){function ZA(t,e){_classCallCheck(this,ZA);this._startElement=t,this._referenceIndent=t.getAttribute("listIndent"),this._isForward="forward"==e.direction,this._includeSelf=!!e.includeSelf,this._sameAttributes=toArray(e.sameAttributes||[]),this._sameIndent=!!e.sameIndent,this._lowerIndent=!!e.lowerIndent,this._higherIndent=!!e.higherIndent;}_createClass(ZA,[{key:_Symbol$iterator14,value:/*#__PURE__*/_regeneratorRuntime().mark(function value(){var _this353=this;var t,_iterator402,_step402,_loop10,_ret2;return _regeneratorRuntime().wrap(function value$(_context48){while(1)switch(_context48.prev=_context48.next){case 0:t=[];_iterator402=_createForOfIteratorHelper(JA(this._getStartNode(),this._isForward?"forward":"backward"));_context48.prev=2;_loop10=/*#__PURE__*/_regeneratorRuntime().mark(function _loop10(){var e,n;return _regeneratorRuntime().wrap(function _loop10$(_context47){while(1)switch(_context47.prev=_context47.next){case 0:e=_step402.value.node;n=e.getAttribute("listIndent");if(!(n<_this353._referenceIndent)){_context47.next=8;break;}if(_this353._lowerIndent){_context47.next=5;break;}return _context47.abrupt("return",0);case 5:_this353._referenceIndent=n;_context47.next=26;break;case 8:if(!(n>_this353._referenceIndent)){_context47.next=16;break;}if(_this353._higherIndent){_context47.next=11;break;}return _context47.abrupt("return",1);case 11:if(_this353._isForward){_context47.next=14;break;}t.push(e);return _context47.abrupt("return",1);case 14:_context47.next=26;break;case 16:if(_this353._sameIndent){_context47.next=24;break;}if(!_this353._higherIndent){_context47.next=23;break;}_context47.t0=t.length;if(!_context47.t0){_context47.next=22;break;}return _context47.delegateYield(t,"t1",21);case 21:t.length=0;case 22:return _context47.abrupt("return",0);case 23:return _context47.abrupt("return",1);case 24:if(!_this353._sameAttributes.some(function(t){return e.getAttribute(t)!==_this353._startElement.getAttribute(t);})){_context47.next=26;break;}return _context47.abrupt("return",0);case 26:_context47.t2=t.length;if(!_context47.t2){_context47.next=30;break;}return _context47.delegateYield(t,"t3",29);case 29:t.length=0;case 30:_context47.next=32;return e;case 32:case"end":return _context47.stop();}},_loop10);});_iterator402.s();case 5:if((_step402=_iterator402.n()).done){_context48.next=14;break;}return _context48.delegateYield(_loop10(),"t0",7);case 7:_ret2=_context48.t0;if(!(_ret2===0)){_context48.next=10;break;}return _context48.abrupt("break",14);case 10:if(!(_ret2===1)){_context48.next=12;break;}return _context48.abrupt("continue",12);case 12:_context48.next=5;break;case 14:_context48.next=19;break;case 16:_context48.prev=16;_context48.t1=_context48["catch"](2);_iterator402.e(_context48.t1);case 19:_context48.prev=19;_iterator402.f();return _context48.finish(19);case 22:case"end":return _context48.stop();}},value,this,[[2,16,19,22]]);})},{key:"_getStartNode",value:function _getStartNode(){return this._includeSelf?this._startElement:this._isForward?this._startElement.nextSibling:this._startElement.previousSibling;}}],[{key:"first",value:function(_first){function first(_x5,_x6){return _first.apply(this,arguments);}first.toString=function(){return _first.toString();};return first;}(function(t,e){var n=new this(t,e)[Symbol.iterator]();return first(n);})}]);return ZA;}(Symbol.iterator);function JA(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:"forward";return/*#__PURE__*/_regeneratorRuntime().mark(function _callee16(){var n,o;return _regeneratorRuntime().wrap(function _callee16$(_context49){while(1)switch(_context49.prev=_context49.next){case 0:n="forward"==e;o=null;case 2:if(!isListItemBlock(t)){_context49.next=9;break;}_context49.next=5;return{node:t,previous:o};case 5:o=t;t=n?t.nextSibling:t.previousSibling;case 7:_context49.next=2;break;case 9:case"end":return _context49.stop();}},_callee16);})();}var XA=/*#__PURE__*/function(_Symbol$iterator15){function XA(t){_classCallCheck(this,XA);this._listHead=t;}_createClass(XA,[{key:_Symbol$iterator15,value:function value(){return JA(this._listHead,"forward");}}]);return XA;}(Symbol.iterator);var t_=n(8676),e_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(t_.Z,e_);t_.Z.locals;var n_=n(9989),o_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(n_.Z,o_);n_.Z.locals;function i_(t,e){var n=e.mapper,o=e.writer,i="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){var e=t.createContainerElement("li");return e.getFillerOffset=g_,e;}(o),s=o.createContainerElement(i,null);return o.insert(o.createPositionAt(s,0),r),n.bindElements(t,r),r;}function r_(t,e,n,o){var i=e.parent,r=n.mapper,s=n.writer;var a=r.toViewPosition(o.createPositionBefore(t));var l=l_(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(l&&l.getAttribute("listIndent")==t.getAttribute("listIndent")){var _t356=r.toViewElement(l);a=s.breakContainer(s.createPositionAfter(_t356));}else if(c&&"listItem"==c.name){a=r.toViewPosition(o.createPositionAt(c,"end"));var _t357=r.findMappedViewAncestor(a),_e284=function(t){var _iterator403=_createForOfIteratorHelper(t.getChildren()),_step403;try{for(_iterator403.s();!(_step403=_iterator403.n()).done;){var _e285=_step403.value;if("ul"==_e285.name||"ol"==_e285.name)return _e285;}}catch(err){_iterator403.e(err);}finally{_iterator403.f();}return null;}(_t357);a=_e284?s.createPositionBefore(_e284):s.createPositionAt(_t357,"end");}else a=r.toViewPosition(o.createPositionBefore(t));if(a=a_(a),s.insert(a,i),c&&"listItem"==c.name){var _t358=r.toViewElement(c),_n269=s.createRange(s.createPositionAt(_t358,0),a).getWalker({ignoreElementEnd:!0});var _iterator404=_createForOfIteratorHelper(_n269),_step404;try{for(_iterator404.s();!(_step404=_iterator404.n()).done;){var _t359=_step404.value;if(_t359.item.is("element","li")){var _o172=s.breakContainer(s.createPositionBefore(_t359.item)),_i161=_t359.item.parent,_r64=s.createPositionAt(e,"end");s_(s,_r64.nodeBefore,_r64.nodeAfter),s.move(s.createRangeOn(_i161),_r64),_n269._position=_o172;}}}catch(err){_iterator404.e(err);}finally{_iterator404.f();}}else{var _n270=i.nextSibling;if(_n270&&(_n270.is("element","ul")||_n270.is("element","ol"))){var _o173=null;var _iterator405=_createForOfIteratorHelper(_n270.getChildren()),_step405;try{for(_iterator405.s();!(_step405=_iterator405.n()).done;){var _e286=_step405.value;var _n271=r.toModelElement(_e286);if(!(_n271&&_n271.getAttribute("listIndent")>t.getAttribute("listIndent")))break;_o173=_e286;}}catch(err){_iterator405.e(err);}finally{_iterator405.f();}_o173&&(s.breakContainer(s.createPositionAfter(_o173)),s.move(s.createRangeOn(_o173.parent),s.createPositionAt(e,"end")));}}s_(s,i,i.nextSibling),s_(s,i.previousSibling,i);}function s_(t,e,n){return!e||!n||"ul"!=e.name&&"ol"!=e.name||e.name!=n.name||e.getAttribute("class")!==n.getAttribute("class")?null:t.mergeContainers(t.createPositionAfter(e));}function a_(t){return t.getLastMatchingPosition(function(t){return t.item.is("uiElement");});}function l_(t,e){var n=!!e.sameIndent,o=!!e.smallerIndent,i=e.listIndent;var r=t;for(;r&&"listItem"==r.name;){var _t360=r.getAttribute("listIndent");if(n&&i==_t360||o&&i>_t360)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling;}return null;}function c_(t,e,n,o){t.ui.componentFactory.add(e,function(i){var r=t.commands.get(e),s=new gr(i);return s.set({label:n,icon:o,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(r,"value","isEnabled"),s.on("execute",function(){t.execute(e),t.editing.view.focus();}),s;});}function d_(t,e){var n=[],o=t.parent,i={ignoreElementEnd:!1,startPosition:t,shallow:!0,direction:e},r=o.getAttribute("listIndent"),s=_toConsumableArray(new yc(i)).filter(function(t){return t.item.is("element");}).map(function(t){return t.item;});var _iterator406=_createForOfIteratorHelper(s),_step406;try{for(_iterator406.s();!(_step406=_iterator406.n()).done;){var _t361=_step406.value;if(!_t361.is("element","listItem"))break;if(_t361.getAttribute("listIndent")<r)break;if(!(_t361.getAttribute("listIndent")>r)){if(_t361.getAttribute("listType")!==o.getAttribute("listType"))break;if(_t361.getAttribute("listStyle")!==o.getAttribute("listStyle"))break;if(_t361.getAttribute("listReversed")!==o.getAttribute("listReversed"))break;if(_t361.getAttribute("listStart")!==o.getAttribute("listStart"))break;"backward"===e?n.unshift(_t361):n.push(_t361);}}}catch(err){_iterator406.e(err);}finally{_iterator406.f();}return n;}var u_=["disc","circle","square"],h_=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function g_(){var t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:ca.call(this);}var m_=/*#__PURE__*/function(_Fr63){_inherits(m_,_Fr63);var _super236=_createSuper(m_);function m_(){_classCallCheck(this,m_);return _super236.apply(this,arguments);}_createClass(m_,[{key:"init",value:function init(){var t=this.editor.t;c_(this.editor,"numberedList",t("Numbered List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zM3.5 3v5H2V3.7H1v-1h2.5V3zM.343 17.857l2.59-3.257H2.92a.6.6 0 1 0-1.04 0H.302a2 2 0 1 1 3.995 0h-.001c-.048.405-.16.734-.333.988-.175.254-.59.692-1.244 1.312H4.3v1h-4l.043-.043zM7 14.75a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>'),c_(this.editor,"bulletedList",t("Bulleted List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M7 5.75c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0C1 4.784 1.777 4 2.75 4c.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75C1.784 7.5 1 6.723 1 5.75zm6 9c0 .414.336.75.75.75h9.5a.75.75 0 1 0 0-1.5h-9.5a.75.75 0 0 0-.75.75zm-6 0c0-.966.777-1.75 1.75-1.75.966 0 1.75.777 1.75 1.75 0 .966-.777 1.75-1.75 1.75-.966 0-1.75-.777-1.75-1.75z"/></svg>');}}],[{key:"pluginName",get:function get(){return"ListUI";}}]);return m_;}(Fr);var p_={},f_={},k_={},b_=[{listStyle:"disc",typeAttribute:"disc",listType:"bulleted"},{listStyle:"circle",typeAttribute:"circle",listType:"bulleted"},{listStyle:"square",typeAttribute:"square",listType:"bulleted"},{listStyle:"decimal",typeAttribute:"1",listType:"numbered"},{listStyle:"decimal-leading-zero",typeAttribute:null,listType:"numbered"},{listStyle:"lower-roman",typeAttribute:"i",listType:"numbered"},{listStyle:"upper-roman",typeAttribute:"I",listType:"numbered"},{listStyle:"lower-alpha",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-alpha",typeAttribute:"A",listType:"numbered"},{listStyle:"lower-latin",typeAttribute:"a",listType:"numbered"},{listStyle:"upper-latin",typeAttribute:"A",listType:"numbered"}];for(var _i162=0,_b_=b_;_i162<_b_.length;_i162++){var _b_$_i=_b_[_i162],_t362=_b_$_i.listStyle,_e287=_b_$_i.typeAttribute,_n272=_b_$_i.listType;p_[_t362]=_n272,f_[_t362]=_e287,_e287&&(k_[_e287]=_t362);}var w_=n(3195),A_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(w_.Z,A_);w_.Z.locals;var __=n(7133),C_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(__.Z,C_);__.Z.locals;var v_=n(4553),y_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(v_.Z,y_);v_.Z.locals;var x_=/*#__PURE__*/function(_Hr24){_inherits(x_,_Hr24);var _super237=_createSuper(x_);function x_(t,e){var _this354;_classCallCheck(this,x_);_this354=_super237.call(this,t),_this354._indentBy="forward"==e?1:-1;return _this354;}_createClass(x_,[{key:"refresh",value:function refresh(){this.isEnabled=this._checkEnabled();}},{key:"execute",value:function execute(){var _this355=this;var t=this.editor.model,e=t.document;var n=Array.from(e.selection.getSelectedBlocks());t.change(function(t){var e=n[n.length-1];var o=e.nextSibling;for(;o&&"listItem"==o.name&&o.getAttribute("listIndent")>e.getAttribute("listIndent");)n.push(o),o=o.nextSibling;_this355._indentBy<0&&(n=n.reverse());var _iterator407=_createForOfIteratorHelper(n),_step407;try{for(_iterator407.s();!(_step407=_iterator407.n()).done;){var _e288=_step407.value;var _n273=_e288.getAttribute("listIndent")+_this355._indentBy;_n273<0?t.rename(_e288,"paragraph"):t.setAttribute("listIndent",_n273,_e288);}}catch(err){_iterator407.e(err);}finally{_iterator407.f();}_this355.fire("_executeCleanup",n);});}},{key:"_checkEnabled",value:function _checkEnabled(){var t=Ei(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){var _e289=t.getAttribute("listIndent"),_n274=t.getAttribute("listType");var _o174=t.previousSibling;for(;_o174&&_o174.is("element","listItem")&&_o174.getAttribute("listIndent")>=_e289;){if(_o174.getAttribute("listIndent")==_e289)return _o174.getAttribute("listType")==_n274;_o174=_o174.previousSibling;}return!1;}return!0;}}]);return x_;}(Hr);var E_=/*#__PURE__*/function(_Hr25){_inherits(E_,_Hr25);var _super238=_createSuper(E_);function E_(t,e){var _this356;_classCallCheck(this,E_);_this356=_super238.call(this,t),_this356.type=e;return _this356;}_createClass(E_,[{key:"refresh",value:function refresh(){this.value=this._getValue(),this.isEnabled=this._checkEnabled();}},{key:"execute",value:function execute(){var _this357=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document,o=Array.from(n.selection.getSelectedBlocks()).filter(function(t){return T_(t,e.schema);}),i=void 0!==t.forceValue?!t.forceValue:this.value;e.change(function(t){if(i){var _e290=o[o.length-1].nextSibling,_n275=Number.POSITIVE_INFINITY,_i163=[];for(;_e290&&"listItem"==_e290.name&&0!==_e290.getAttribute("listIndent");){var _t363=_e290.getAttribute("listIndent");_t363<_n275&&(_n275=_t363);var _o175=_t363-_n275;_i163.push({element:_e290,listIndent:_o175}),_e290=_e290.nextSibling;}_i163=_i163.reverse();var _iterator408=_createForOfIteratorHelper(_i163),_step408;try{for(_iterator408.s();!(_step408=_iterator408.n()).done;){var _e291=_step408.value;t.setAttribute("listIndent",_e291.listIndent,_e291.element);}}catch(err){_iterator408.e(err);}finally{_iterator408.f();}}if(!i){var _t364=Number.POSITIVE_INFINITY;var _iterator409=_createForOfIteratorHelper(o),_step409;try{for(_iterator409.s();!(_step409=_iterator409.n()).done;){var _e292=_step409.value;_e292.is("element","listItem")&&_e292.getAttribute("listIndent")<_t364&&(_t364=_e292.getAttribute("listIndent"));}}catch(err){_iterator409.e(err);}finally{_iterator409.f();}_t364=0===_t364?1:_t364,D_(o,!0,_t364),D_(o,!1,_t364);}var _iterator410=_createForOfIteratorHelper(o.reverse()),_step410;try{for(_iterator410.s();!(_step410=_iterator410.n()).done;){var _e293=_step410.value;i&&"listItem"==_e293.name?t.rename(_e293,"paragraph"):i||"listItem"==_e293.name?i||"listItem"!=_e293.name||_e293.getAttribute("listType")==_this357.type||t.setAttribute("listType",_this357.type,_e293):(t.setAttributes({listType:_this357.type,listIndent:0},_e293),t.rename(_e293,"listItem"));}}catch(err){_iterator410.e(err);}finally{_iterator410.f();}_this357.fire("_executeCleanup",o);});}},{key:"_getValue",value:function _getValue(){var t=Ei(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type;}},{key:"_checkEnabled",value:function _checkEnabled(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ei(t.getSelectedBlocks());return!!n&&T_(n,e);}}]);return E_;}(Hr);function D_(t,e,n){var o=e?t[0]:t[t.length-1];if(o.is("element","listItem")){var _i164=o[e?"previousSibling":"nextSibling"],_r65=o.getAttribute("listIndent");for(;_i164&&_i164.is("element","listItem")&&_i164.getAttribute("listIndent")>=n;)_r65>_i164.getAttribute("listIndent")&&(_r65=_i164.getAttribute("listIndent")),_i164.getAttribute("listIndent")==_r65&&t[e?"unshift":"push"](_i164),_i164=_i164[e?"previousSibling":"nextSibling"];}}function T_(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t);}var S_=/*#__PURE__*/function(_Fr64){_inherits(S_,_Fr64);var _super239=_createSuper(S_);function S_(){_classCallCheck(this,S_);return _super239.apply(this,arguments);}_createClass(S_,[{key:"getListTypeFromListStyleType",value:function getListTypeFromListStyleType(t){return function(t){return u_.includes(t)?"bulleted":h_.includes(t)?"numbered":null;}(t);}},{key:"getSelectedListItems",value:function getSelectedListItems(t){return function(t){var e=_toConsumableArray(t.document.selection.getSelectedBlocks()).filter(function(t){return t.is("element","listItem");}).map(function(e){var n=t.change(function(t){return t.createPositionAt(e,0);});return[].concat(_toConsumableArray(d_(n,"backward")),_toConsumableArray(d_(n,"forward")));}).flat();return e=_toConsumableArray(new Set(e)),e;}(t);}},{key:"getSiblingNodes",value:function getSiblingNodes(t,e){return d_(t,e);}}],[{key:"pluginName",get:function get(){return"ListUtils";}}]);return S_;}(Fr);function I_(t){return function(e,n,o){var i=o.consumable;if(!i.test(n.item,"insert")||!i.test(n.item,"attribute:listType")||!i.test(n.item,"attribute:listIndent"))return;i.consume(n.item,"insert"),i.consume(n.item,"attribute:listType"),i.consume(n.item,"attribute:listIndent");var r=n.item;r_(r,i_(r,o),o,t);};}var M_=function M_(t,e,n){if(!n.consumable.test(e.item,t.name))return;var o=n.mapper.toViewElement(e.item),i=n.writer;i.breakContainer(i.createPositionBefore(o)),i.breakContainer(i.createPositionAfter(o));var r=o.parent,s="numbered"==e.attributeNewValue?"ol":"ul";i.rename(s,r);},B_=function B_(t,e,n){n.consumable.consume(e.item,t.name);var o=n.mapper.toViewElement(e.item).parent,i=n.writer;s_(i,o,o.nextSibling),s_(i,o.previousSibling,o);};var N_=function N_(t,e,n){if(n.consumable.test(e.item,t.name)&&"listItem"!=e.item.name){var _t365=n.mapper.toViewPosition(e.range.start);var _o176=n.writer,_i165=[];for(;("ul"==_t365.parent.name||"ol"==_t365.parent.name)&&(_t365=_o176.breakContainer(_t365),"li"==_t365.parent.name);){var _e294=_t365,_n276=_o176.createPositionAt(_t365.parent,"end");if(!_e294.isEqual(_n276)){var _t366=_o176.remove(_o176.createRange(_e294,_n276));_i165.push(_t366);}_t365=_o176.createPositionAfter(_t365.parent);}if(_i165.length>0){for(var _e295=0;_e295<_i165.length;_e295++){var _n277=_t365.nodeBefore;if(_t365=_o176.insert(_t365,_i165[_e295]).end,_e295>0){var _e296=s_(_o176,_n277,_n277.nextSibling);_e296&&_e296.parent==_n277&&_t365.offset--;}}s_(_o176,_t365.nodeBefore,_t365.nodeAfter);}}},z_=function z_(t,e,n){var o=n.mapper.toViewPosition(e.position),i=o.nodeBefore,r=o.nodeAfter;s_(n.writer,i,r);},P_=function P_(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){var _t367=n.writer,_o177=_t367.createElement("listItem"),_i166=function(t){var e=0,n=t.parent;for(;n;){if(n.is("element","li"))e++;else{var _t368=n.previousSibling;_t368&&_t368.is("element","li")&&e++;}n=n.parent;}return e;}(e.viewItem);_t367.setAttribute("listIndent",_i166,_o177);var _r66=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(_t367.setAttribute("listType",_r66,_o177),!n.safeInsert(_o177,e.modelCursor))return;var _s36=function(t,e,n){var o=n.writer,i=n.schema;var r=o.createPositionAfter(t);var _iterator411=_createForOfIteratorHelper(e),_step411;try{for(_iterator411.s();!(_step411=_iterator411.n()).done;){var _s37=_step411.value;if("ul"==_s37.name||"ol"==_s37.name)r=n.convertItem(_s37,r).modelCursor;else{var _e297=n.convertItem(_s37,o.createPositionAt(t,"end")),_a23=_e297.modelRange.start.nodeAfter;_a23&&_a23.is("element")&&!i.checkChild(t,_a23.name)&&(t=_e297.modelCursor.parent.is("element","listItem")?_e297.modelCursor.parent:F_(_e297.modelCursor),r=o.createPositionAfter(t));}}}catch(err){_iterator411.e(err);}finally{_iterator411.f();}return r;}(_o177,e.viewItem.getChildren(),n);e.modelRange=_t367.createRange(e.modelCursor,_s36),n.updateConversionResult(_o177,e);}},L_=function L_(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){var _t369=Array.from(e.viewItem.getChildren());for(var _i167=0,_t370=_t369;_i167<_t370.length;_i167++){var _e298=_t370[_i167];!(_e298.is("element","li")||H_(_e298))&&_e298._remove();}}},O_=function O_(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;var _t371=_toConsumableArray(e.viewItem.getChildren());var _n278=!1;var _iterator412=_createForOfIteratorHelper(_t371),_step412;try{for(_iterator412.s();!(_step412=_iterator412.n()).done;){var _e299=_step412.value;_n278&&!H_(_e299)&&_e299._remove(),H_(_e299)&&(_n278=!0);}}catch(err){_iterator412.e(err);}finally{_iterator412.f();}}};function R_(t){return function(e,n){if(n.isPhantom)return;var o=n.modelPosition.nodeBefore;if(o&&o.is("element","listItem")){var _e300=n.mapper.toViewElement(o),_i168=_e300.getAncestors().find(H_),_r67=t.createPositionAt(_e300,0).getWalker();var _iterator413=_createForOfIteratorHelper(_r67),_step413;try{for(_iterator413.s();!(_step413=_iterator413.n()).done;){var _t372=_step413.value;if("elementStart"==_t372.type&&_t372.item.is("element","li")){n.viewPosition=_t372.previousPosition;break;}if("elementEnd"==_t372.type&&_t372.item==_i168){n.viewPosition=_t372.nextPosition;break;}}}catch(err){_iterator413.e(err);}finally{_iterator413.f();}}};}var j_=function j_(t,_ref110){var _ref111=_slicedToArray(_ref110,2),e=_ref111[0],n=_ref111[1];var o=this;var i,r=e.is("documentFragment")?e.getChild(0):e;if(i=n?o.createSelection(n):o.document.selection,r&&r.is("element","listItem")){var _t373=i.getFirstPosition();var _e301=null;if(_t373.parent.is("element","listItem")?_e301=_t373.parent:_t373.nodeBefore&&_t373.nodeBefore.is("element","listItem")&&(_e301=_t373.nodeBefore),_e301){var _t374=_e301.getAttribute("listIndent");if(_t374>0)for(;r&&r.is("element","listItem");)r._setAttribute("listIndent",r.getAttribute("listIndent")+_t374),r=r.nextSibling;}}};function F_(t){var e=new yc({startPosition:t});var n;do{n=e.next();}while(!n.value.item.is("element","listItem"));return n.value.item;}function V_(t,e,n,o,i,r){var s=l_(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t}),a=i.mapper,l=i.writer,c=s?s.getAttribute("listIndent"):null;var d;if(s){if(c==t){var _t375=a.toViewElement(s).parent;d=l.createPositionAfter(_t375);}else{var _t376=r.createPositionAt(s,"end");d=a.toViewPosition(_t376);}}else d=n;d=a_(d);for(var _i169=0,_arr=_toConsumableArray(o.getChildren());_i169<_arr.length;_i169++){var _t377=_arr[_i169];H_(_t377)&&(d=l.move(l.createRangeOn(_t377),d).end,s_(l,_t377,_t377.nextSibling),s_(l,_t377.previousSibling,_t377));}}function H_(t){return t.is("element","ol")||t.is("element","ul");}var U_=/*#__PURE__*/function(_Fr65){_inherits(U_,_Fr65);var _super240=_createSuper(U_);function U_(){_classCallCheck(this,U_);return _super240.apply(this,arguments);}_createClass(U_,[{key:"init",value:function init(){var _this358=this;var t=this.editor;t.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var e=t.data,n=t.editing;var o;t.model.document.registerPostFixer(function(e){return function(t,e){var n=t.document.differ.getChanges(),o=new Map();var i=!1;var _iterator414=_createForOfIteratorHelper(n),_step414;try{for(_iterator414.s();!(_step414=_iterator414.n()).done;){var _o179=_step414.value;if("insert"==_o179.type&&"listItem"==_o179.name)r(_o179.position);else if("insert"==_o179.type&&"listItem"!=_o179.name){if("$text"!=_o179.name){var _n279=_o179.position.nodeAfter;_n279.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",_n279),i=!0),_n279.hasAttribute("listType")&&(e.removeAttribute("listType",_n279),i=!0),_n279.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",_n279),i=!0),_n279.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",_n279),i=!0),_n279.hasAttribute("listStart")&&(e.removeAttribute("listStart",_n279),i=!0);var _iterator416=_createForOfIteratorHelper(Array.from(t.createRangeIn(_n279)).filter(function(t){return t.item.is("element","listItem");})),_step416;try{for(_iterator416.s();!(_step416=_iterator416.n()).done;){var _e304=_step416.value;r(_e304.previousPosition);}}catch(err){_iterator416.e(err);}finally{_iterator416.f();}}r(_o179.position.getShiftedBy(_o179.length));}else"remove"==_o179.type&&"listItem"==_o179.name?r(_o179.position):("attribute"==_o179.type&&"listIndent"==_o179.attributeKey||"attribute"==_o179.type&&"listType"==_o179.attributeKey)&&r(_o179.range.start);}}catch(err){_iterator414.e(err);}finally{_iterator414.f();}var _iterator415=_createForOfIteratorHelper(o.values()),_step415;try{for(_iterator415.s();!(_step415=_iterator415.n()).done;){var _t379=_step415.value;s(_t379),a(_t379);}}catch(err){_iterator415.e(err);}finally{_iterator415.f();}return i;function r(t){var e=t.nodeBefore;if(e&&e.is("element","listItem")){var _t378=e;if(o.has(_t378))return;for(var _e302=_t378.previousSibling;_e302&&_e302.is("element","listItem");_e302=_t378.previousSibling)if(_t378=_e302,o.has(_t378))return;o.set(e,_t378);}else{var _e303=t.nodeAfter;_e303&&_e303.is("element","listItem")&&o.set(_e303,_e303);}}function s(t){var n=0,o=null;for(;t&&t.is("element","listItem");){var _r68=t.getAttribute("listIndent");if(_r68>n){var _s38=void 0;null===o?(o=_r68-n,_s38=n):(o>_r68&&(o=_r68),_s38=_r68-o),e.setAttribute("listIndent",_s38,t),i=!0;}else o=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling;}}function a(t){var n=[],o=null;for(;t&&t.is("element","listItem");){var _r69=t.getAttribute("listIndent");if(o&&o.getAttribute("listIndent")>_r69&&(n=n.slice(0,_r69+1)),0!=_r69)if(n[_r69]){var _o178=n[_r69];t.getAttribute("listType")!=_o178&&(e.setAttribute("listType",_o178,t),i=!0);}else n[_r69]=t.getAttribute("listType");o=t,t=t.nextSibling;}}}(t.model,e);}),n.mapper.registerViewToModelLength("li",W_),e.mapper.registerViewToModelLength("li",W_),n.mapper.on("modelToViewPosition",R_(n.view)),n.mapper.on("viewToModelPosition",(o=t.model,function(t,e){var n=e.viewPosition,i=n.parent,r=e.mapper;if("ul"==i.name||"ol"==i.name){if(n.isAtEnd){var _t380=r.toModelElement(n.nodeBefore),_i170=r.getModelLength(n.nodeBefore);e.modelPosition=o.createPositionBefore(_t380).getShiftedBy(_i170);}else{var _t381=r.toModelElement(n.nodeAfter);e.modelPosition=o.createPositionBefore(_t381);}t.stop();}else if("li"==i.name&&n.nodeBefore&&("ul"==n.nodeBefore.name||"ol"==n.nodeBefore.name)){var _s39=r.toModelElement(i);var _a24=1,_l25=n.nodeBefore;for(;_l25&&H_(_l25);)_a24+=r.getModelLength(_l25),_l25=_l25.previousSibling;e.modelPosition=o.createPositionBefore(_s39).getShiftedBy(_a24),t.stop();}})),e.mapper.on("modelToViewPosition",R_(n.view)),t.conversion.for("editingDowncast").add(function(e){e.on("insert",N_,{priority:"high"}),e.on("insert:listItem",I_(t.model)),e.on("attribute:listType:listItem",M_,{priority:"high"}),e.on("attribute:listType:listItem",B_,{priority:"low"}),e.on("attribute:listIndent:listItem",function(t){return function(e,n,o){if(!o.consumable.consume(n.item,"attribute:listIndent"))return;var i=o.mapper.toViewElement(n.item),r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));var s=i.parent,a=s.previousSibling,l=r.createRangeOn(s);r.remove(l),a&&a.nextSibling&&s_(r,a,a.nextSibling),V_(n.attributeOldValue+1,n.range.start,l.start,i,o,t),r_(n.item,i,o,t);var _iterator417=_createForOfIteratorHelper(n.item.getChildren()),_step417;try{for(_iterator417.s();!(_step417=_iterator417.n()).done;){var _t382=_step417.value;o.consumable.consume(_t382,"insert");}}catch(err){_iterator417.e(err);}finally{_iterator417.f();}};}(t.model)),e.on("remove:listItem",function(t){return function(e,n,o){var i=o.mapper.toViewPosition(n.position).getLastMatchingPosition(function(t){return!t.item.is("element","li");}).nodeAfter,r=o.writer;r.breakContainer(r.createPositionBefore(i)),r.breakContainer(r.createPositionAfter(i));var s=i.parent,a=s.previousSibling,l=r.createRangeOn(s),c=r.remove(l);a&&a.nextSibling&&s_(r,a,a.nextSibling),V_(o.mapper.toModelElement(i).getAttribute("listIndent")+1,n.position,l.start,i,o,t);var _iterator418=_createForOfIteratorHelper(r.createRangeIn(c).getItems()),_step418;try{for(_iterator418.s();!(_step418=_iterator418.n()).done;){var _t383=_step418.value;o.mapper.unbindViewElement(_t383);}}catch(err){_iterator418.e(err);}finally{_iterator418.f();}e.stop();};}(t.model)),e.on("remove",z_,{priority:"low"});}),t.conversion.for("dataDowncast").add(function(e){e.on("insert",N_,{priority:"high"}),e.on("insert:listItem",I_(t.model));}),t.conversion.for("upcast").add(function(t){t.on("element:ul",L_,{priority:"high"}),t.on("element:ol",L_,{priority:"high"}),t.on("element:li",O_,{priority:"high"}),t.on("element:li",P_);}),t.model.on("insertContent",j_,{priority:"high"}),t.commands.add("numberedList",new E_(t,"numbered")),t.commands.add("bulletedList",new E_(t,"bulleted")),t.commands.add("indentList",new x_(t,"forward")),t.commands.add("outdentList",new x_(t,"backward"));var i=n.view.document;this.listenTo(i,"enter",function(t,e){var n=_this358.editor.model.document,o=n.selection.getLastPosition().parent;n.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(_this358.editor.execute("outdentList"),e.preventDefault(),t.stop());},{context:"li"}),this.listenTo(i,"delete",function(t,e){if("backward"!==e.direction)return;var n=_this358.editor.model.document.selection;if(!n.isCollapsed)return;var o=n.getFirstPosition();if(!o.isAtStart)return;var i=o.parent;if("listItem"!==i.name)return;i.previousSibling&&"listItem"===i.previousSibling.name||(_this358.editor.execute("outdentList"),e.preventDefault(),t.stop());},{context:"li"}),this.listenTo(t.editing.view.document,"tab",function(e,n){var o=n.shiftKey?"outdentList":"indentList";_this358.editor.commands.get(o).isEnabled&&(t.execute(o),n.stopPropagation(),n.preventDefault(),e.stop());},{context:"li"});}},{key:"afterInit",value:function afterInit(){var t=this.editor.commands,e=t.get("indent"),n=t.get("outdent");e&&e.registerChildCommand(t.get("indentList")),n&&n.registerChildCommand(t.get("outdentList"));}}],[{key:"pluginName",get:function get(){return"ListEditing";}},{key:"requires",get:function get(){return[Lp,dp,S_];}}]);return U_;}(Fr);function W_(t){var e=1;var _iterator419=_createForOfIteratorHelper(t.getChildren()),_step419;try{for(_iterator419.s();!(_step419=_iterator419.n()).done;){var _n280=_step419.value;if("ul"==_n280.name||"ol"==_n280.name){var _iterator420=_createForOfIteratorHelper(_n280.getChildren()),_step420;try{for(_iterator420.s();!(_step420=_iterator420.n()).done;){var _t384=_step420.value;e+=W_(_t384);}}catch(err){_iterator420.e(err);}finally{_iterator420.f();}}}}catch(err){_iterator419.e(err);}finally{_iterator419.f();}return e;}ki("Ctrl+Enter");var G_=n(1588),q_={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(G_.Z,q_);G_.Z.locals;function $_(t,e){var n=function n(_n281,o,i){if(!i.consumable.consume(o.item,_n281.name))return;var r=o.attributeNewValue,s=i.writer,a=i.mapper.toViewElement(o.item),l=_toConsumableArray(a.getChildren()).find(function(t){return t.getCustomProperty("media-content");});s.remove(l);var c=t.getMediaViewElement(s,r,e);s.insert(s.createPositionAt(a,0),c);};return function(t){t.on("attribute:url:media",n);};}function K_(t,e,n,o){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,o),t.createSlot()]);}function Y_(t){var e=t.getSelectedElement();return e&&e.is("element","media")?e:null;}function Q_(t,e,n,o){t.change(function(i){var r=i.createElement("media",{url:e});t.insertObject(r,n,null,{setSelection:"on",findOptimalPosition:o?"auto":void 0});});}var Z_=/*#__PURE__*/function(_Hr26){_inherits(Z_,_Hr26);var _super241=_createSuper(Z_);function Z_(){_classCallCheck(this,Z_);return _super241.apply(this,arguments);}_createClass(Z_,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document.selection,n=Y_(e);this.value=n?n.getAttribute("url"):void 0,this.isEnabled=function(t){var e=t.getSelectedElement();return!!e&&"media"===e.name;}(e)||function(t,e){var n=tf(t,e);var o=n.start.parent;o.isEmpty&&!e.schema.isLimit(o)&&(o=o.parent);return e.schema.checkChild(o,"media");}(e,t);}},{key:"execute",value:function execute(t){var e=this.editor.model,n=e.document.selection,o=Y_(n);o?e.change(function(e){e.setAttribute("url",t,o);}):Q_(e,t,n,!0);}}]);return Z_;}(Hr);var J_=/*#__PURE__*/function(){function J_(t,e){_classCallCheck(this,J_);var n=e.providers,o=e.extraProviders||[],i=new Set(e.removeProviders),r=n.concat(o).filter(function(t){var e=t.name;return e?!i.has(e):(C("media-embed-no-provider-name",{provider:t}),!1);});this.locale=t,this.providerDefinitions=r;}_createClass(J_,[{key:"hasMedia",value:function hasMedia(t){return!!this._getMedia(t);}},{key:"getMediaViewElement",value:function getMediaViewElement(t,e,n){return this._getMedia(e).getViewElement(t,n);}},{key:"_getMedia",value:function _getMedia(t){if(!t)return new X_(this.locale);t=t.trim();var _iterator421=_createForOfIteratorHelper(this.providerDefinitions),_step421;try{for(_iterator421.s();!(_step421=_iterator421.n()).done;){var _e305=_step421.value;var _n282=_e305.html,_o180=Ai(_e305.url);var _iterator422=_createForOfIteratorHelper(_o180),_step422;try{for(_iterator422.s();!(_step422=_iterator422.n()).done;){var _e306=_step422.value;var _o181=this._getUrlMatches(t,_e306);if(_o181)return new X_(this.locale,t,_o181,_n282);}}catch(err){_iterator422.e(err);}finally{_iterator422.f();}}}catch(err){_iterator421.e(err);}finally{_iterator421.f();}return null;}},{key:"_getUrlMatches",value:function _getUrlMatches(t,e){var n=t.match(e);if(n)return n;var o=t.replace(/^https?:\/\//,"");return n=o.match(e),n||(o=o.replace(/^www\./,""),n=o.match(e),n||null);}}]);return J_;}();var X_=/*#__PURE__*/function(){function X_(t,e,n,o){_classCallCheck(this,X_);this.url=this._getValidUrl(e),this._locale=t,this._match=n,this._previewRenderer=o;}_createClass(X_,[{key:"getViewElement",value:function getViewElement(t,e){var n={};var o;if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(n["data-oembed-url"]=this.url),e.renderForEditingView&&(n.class="ck-media__wrapper");var _i171=this._getPreviewHtml(e);o=t.createRawElement("div",n,function(t,e){e.setContentOf(t,_i171);});}else this.url&&(n.url=this.url),o=t.createEmptyElement(e.elementName,n);return t.setCustomProperty("media-content",!0,o),o;}},{key:"_getPreviewHtml",value:function _getPreviewHtml(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():"";}},{key:"_getPlaceholderHtml",value:function _getPlaceholderHtml(){var t=new dr(),e=this._locale.t;t.content='<svg viewBox="0 0 64 42" xmlns="http://www.w3.org/2000/svg"><path d="M47.426 17V3.713L63.102 0v19.389h-.001l.001.272c0 1.595-2.032 3.43-4.538 4.098-2.506.668-4.538-.083-4.538-1.678 0-1.594 2.032-3.43 4.538-4.098.914-.244 2.032-.565 2.888-.603V4.516L49.076 7.447v9.556A1.014 1.014 0 0 0 49 17h-1.574zM29.5 17h-8.343a7.073 7.073 0 1 0-4.657 4.06v3.781H3.3a2.803 2.803 0 0 1-2.8-2.804V8.63a2.803 2.803 0 0 1 2.8-2.805h4.082L8.58 2.768A1.994 1.994 0 0 1 10.435 1.5h8.985c.773 0 1.477.448 1.805 1.149l1.488 3.177H26.7c1.546 0 2.8 1.256 2.8 2.805V17zm-11.637 0H17.5a1 1 0 0 0-1 1v.05A4.244 4.244 0 1 1 17.863 17zm29.684 2c.97 0 .953-.048.953.889v20.743c0 .953.016.905-.953.905H19.453c-.97 0-.953.048-.953-.905V19.89c0-.937-.016-.889.97-.889h28.077zm-4.701 19.338V22.183H24.154v16.155h18.692zM20.6 21.375v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616v-1.616H20.6zm0 3.231v1.616h1.616V37.53H20.6zm24.233-16.155v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615v-1.616h-1.615zm0 3.231v1.616h1.615V37.53h-1.615zM29.485 25.283a.4.4 0 0 1 .593-.35l9.05 4.977a.4.4 0 0 1 0 .701l-9.05 4.978a.4.4 0 0 1-.593-.35v-9.956z"/></svg>',t.viewBox="0 0 64 42";return new Fi({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[t]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url,"data-cke-tooltip-text":e("Open media in new tab")},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]}]}]}).render().outerHTML;}},{key:"_getValidUrl",value:function _getValidUrl(t){return t?t.match(/^https?/)?t:"https://"+t:null;}}]);return X_;}();var tC=n(952),eC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(tC.Z,eC);tC.Z.locals;var nC=/*#__PURE__*/function(_Fr66){_inherits(nC,_Fr66);var _super242=_createSuper(nC);function nC(t){var _this359;_classCallCheck(this,nC);_this359=_super242.call(this,t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function html(t){return"<div style=\"position: relative; padding-bottom: 100%; height: 0; \"><iframe src=\"https://www.dailymotion.com/embed/video/".concat(t[1],"\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0;\" frameborder=\"0\" width=\"480\" height=\"270\" allowfullscreen allow=\"autoplay\"></iframe></div>");}},{name:"spotify",url:[/^open\.spotify\.com\/(artist\/\w+)/,/^open\.spotify\.com\/(album\/\w+)/,/^open\.spotify\.com\/(track\/\w+)/],html:function html(t){return"<div style=\"position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;\"><iframe src=\"https://open.spotify.com/embed/".concat(t[1],"\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0;\" frameborder=\"0\" allowtransparency=\"true\" allow=\"encrypted-media\"></iframe></div>");}},{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 html(t){var e=t[1],n=t[2];return"<div style=\"position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;\"><iframe src=\"https://www.youtube.com/embed/".concat(e).concat(n?"?start=".concat(n):"","\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0;\" frameborder=\"0\" allow=\"autoplay; encrypted-media\" allowfullscreen></iframe></div>");}},{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 html(t){return"<div style=\"position: relative; padding-bottom: 100%; height: 0; padding-bottom: 56.2493%;\"><iframe src=\"https://player.vimeo.com/video/".concat(t[1],"\" style=\"position: absolute; width: 100%; height: 100%; top: 0; left: 0;\" frameborder=\"0\" webkitallowfullscreen mozallowfullscreen allowfullscreen></iframe></div>");}},{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/}]}),_this359.registry=new J_(t.locale,t.config.get("mediaEmbed"));return _this359;}_createClass(nC,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema,n=t.t,o=t.conversion,i=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),s=this.registry;t.commands.add("mediaEmbed",new Z_(t)),e.register("media",{inheritAllFrom:"$blockObject",allowAttributes:["url"]}),o.for("dataDowncast").elementToStructure({model:"media",view:function view(t,_ref112){var e=_ref112.writer;var n=t.getAttribute("url");return K_(e,s,n,{elementName:r,renderMediaPreview:!!n&&i});}}),o.for("dataDowncast").add($_(s,{elementName:r,renderMediaPreview:i})),o.for("editingDowncast").elementToStructure({model:"media",view:function view(t,_ref113){var e=_ref113.writer;var o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),Yp(t,e,{label:n});}(K_(e,s,o,{elementName:r,renderForEditingView:!0}),e,n("media widget"));}}),o.for("editingDowncast").add($_(s,{elementName:r,renderForEditingView:!0})),o.for("upcast").elementToElement({view:function view(t){return["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null;},model:function model(t,_ref114){var e=_ref114.writer;var n=t.getAttribute("url");return s.hasMedia(n)?e.createElement("media",{url:n}):null;}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function model(t,_ref115){var e=_ref115.writer;var n=t.getAttribute("data-oembed-url");return s.hasMedia(n)?e.createElement("media",{url:n}):null;}}).add(function(t){t.on("element:figure",function(t,e,n){if(!n.consumable.consume(e.viewItem,{name:!0,classes:"media"}))return;var _n$convertChildren3=n.convertChildren(e.viewItem,e.modelCursor),o=_n$convertChildren3.modelRange,i=_n$convertChildren3.modelCursor;e.modelRange=o,e.modelCursor=i;Ei(o.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"});});});}}],[{key:"pluginName",get:function get(){return"MediaEmbedEditing";}}]);return nC;}(Fr);var oC=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/;var iC=/*#__PURE__*/function(_Fr67){_inherits(iC,_Fr67);var _super243=_createSuper(iC);function iC(t){var _this360;_classCallCheck(this,iC);_this360=_super243.call(this,t),_this360._timeoutId=null,_this360._positionToInsert=null;return _this360;}_createClass(iC,[{key:"init",value:function init(){var _this361=this;var t=this.editor,e=t.model.document,n=t.plugins.get("ClipboardPipeline");this.listenTo(n,"inputTransformation",function(){var t=e.selection.getFirstRange(),n=Bu.fromPosition(t.start);n.stickiness="toPrevious";var o=Bu.fromPosition(t.end);o.stickiness="toNext",e.once("change:data",function(){_this361._embedMediaBetweenPositions(n,o),n.detach(),o.detach();},{priority:"high"});});t.commands.get("undo").on("execute",function(){_this361._timeoutId&&(Lo.window.clearTimeout(_this361._timeoutId),_this361._positionToInsert.detach(),_this361._timeoutId=null,_this361._positionToInsert=null);},{priority:"high"});}},{key:"_embedMediaBetweenPositions",value:function _embedMediaBetweenPositions(t,e){var _this362=this;var n=this.editor,o=n.plugins.get(nC).registry,i=new qc(t,e),r=i.getWalker({ignoreElementEnd:!0});var s="";var _iterator423=_createForOfIteratorHelper(r),_step423;try{for(_iterator423.s();!(_step423=_iterator423.n()).done;){var _t385=_step423.value;_t385.item.is("$textProxy")&&(s+=_t385.item.data);}}catch(err){_iterator423.e(err);}finally{_iterator423.f();}if(s=s.trim(),!s.match(oC))return void i.detach();if(!o.hasMedia(s))return void i.detach();n.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=Bu.fromPosition(t),this._timeoutId=Lo.window.setTimeout(function(){n.model.change(function(t){_this362._timeoutId=null,t.remove(i),i.detach();var e=null;"$graveyard"!==_this362._positionToInsert.root.rootName&&(e=_this362._positionToInsert),Q_(n.model,s,e,!1),_this362._positionToInsert.detach(),_this362._positionToInsert=null;}),n.plugins.get(dp).requestUndoOnBackspace();},100)):i.detach();}}],[{key:"requires",get:function get(){return[zf,dp,Qf];}},{key:"pluginName",get:function get(){return"AutoMediaEmbed";}}]);return iC;}(Fr);var rC=n(3525),sC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(rC.Z,sC);rC.Z.locals;var aC=/*#__PURE__*/function(_ji29){_inherits(aC,_ji29);var _super244=_createSuper(aC);function aC(t,e){var _this363;_classCallCheck(this,aC);_this363=_super244.call(this,e);var n=e.t;_this363.focusTracker=new Di(),_this363.keystrokes=new Ti(),_this363.set("mediaURLInputValue",""),_this363.urlInputView=_this363._createUrlInput(),_this363.saveButtonView=_this363._createButton(n("Save"),dg.check,"ck-button-save"),_this363.saveButtonView.type="submit",_this363.saveButtonView.bind("isEnabled").to(_assertThisInitialized(_this363),"mediaURLInputValue",function(t){return!!t;}),_this363.cancelButtonView=_this363._createButton(n("Cancel"),dg.cancel,"ck-button-cancel","cancel"),_this363._focusables=new zi(),_this363._focusCycler=new Pr({focusables:_this363._focusables,focusTracker:_this363.focusTracker,keystrokeHandler:_this363.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this363._validators=t,_this363.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[_this363.urlInputView,_this363.saveButtonView,_this363.cancelButtonView]});return _this363;}_createClass(aC,[{key:"render",value:function render(){var _this364=this;_get(_getPrototypeOf(aC.prototype),"render",this).call(this),i({view:this});[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEach(function(t){_this364._focusables.add(t),_this364.focusTracker.add(t.element);}),this.keystrokes.listenTo(this.element);var t=function t(_t386){return _t386.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(t,e){e.stopPropagation();},{priority:"high"});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(aC.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"url",get:function get(){return this.urlInputView.fieldView.element.value.trim();},set:function set(t){this.urlInputView.fieldView.element.value=t.trim();}},{key:"isValid",value:function isValid(){this.resetFormStatus();var _iterator424=_createForOfIteratorHelper(this._validators),_step424;try{for(_iterator424.s();!(_step424=_iterator424.n()).done;){var _t387=_step424.value;var _e307=_t387(this);if(_e307)return this.urlInputView.errorText=_e307,!1;}}catch(err){_iterator424.e(err);}finally{_iterator424.f();}return!0;}},{key:"resetFormStatus",value:function resetFormStatus(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault;}},{key:"_createUrlInput",value:function _createUrlInput(){var _this365=this;var t=this.locale.t,e=new hm(this.locale,gm),n=e.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."),e.label=t("Media URL"),e.infoText=this._urlInputViewInfoDefault,n.on("input",function(){e.infoText=n.element.value?_this365._urlInputViewInfoTip:_this365._urlInputViewInfoDefault,_this365.mediaURLInputValue=n.element.value.trim();}),e;}},{key:"_createButton",value:function _createButton(t,e,n,o){var i=new gr(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.extendTemplate({attributes:{class:n}}),o&&i.delegate("execute").to(this,o),i;}}]);return aC;}(ji);var lC=/*#__PURE__*/function(_Fr68){_inherits(lC,_Fr68);var _super245=_createSuper(lC);function lC(){_classCallCheck(this,lC);return _super245.apply(this,arguments);}_createClass(lC,[{key:"init",value:function init(){var _this366=this;var t=this.editor,e=t.commands.get("mediaEmbed");t.ui.componentFactory.add("mediaEmbed",function(t){var n=Tg(t);return _this366._setUpDropdown(n,e),n;});}},{key:"_setUpDropdown",value:function _setUpDropdown(t,n){var o=this.editor,i=o.t,r=t.buttonView,s=o.plugins.get(nC).registry;t.once("change:isOpen",function(){var i=new(e(aC))(function(t,e){return[function(e){if(!e.url.length)return t("The URL must not be empty.");},function(n){if(!e.hasMedia(n.url))return t("This media URL is not supported.");}];}(o.t,s),o.locale);t.panelView.children.add(i),r.on("open",function(){i.disableCssTransitions(),i.url=n.value||"",i.urlInputView.fieldView.select(),i.enableCssTransitions();},{priority:"low"}),t.on("submit",function(){i.isValid()&&(o.execute("mediaEmbed",i.url),o.editing.view.focus());}),t.on("change:isOpen",function(){return i.resetFormStatus();}),t.on("cancel",function(){o.editing.view.focus();}),i.delegate("submit","cancel").to(t),i.urlInputView.fieldView.bind("value").to(n,"value"),i.urlInputView.bind("isEnabled").to(n,"isEnabled");}),t.bind("isEnabled").to(n),r.set({label:i("Insert media"),icon:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20"><path d="M18.68 3.03c.6 0 .59-.03.59.55v12.84c0 .59.01.56-.59.56H1.29c-.6 0-.59.03-.59-.56V3.58c0-.58-.01-.55.6-.55h17.38zM15.77 15V5H4.2v10h11.57zM2 4v1h1V4H2zm0 2v1h1V6H2zm0 2v1h1V8H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zm0 2v1h1v-1H2zM17 4v1h1V4h-1zm0 2v1h1V6h-1zm0 2v1h1V8h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zm0 2v1h1v-1h-1zM7.5 7.177a.4.4 0 0 1 .593-.351l5.133 2.824a.4.4 0 0 1 0 .7l-5.133 2.824a.4.4 0 0 1-.593-.35V7.176v.001z"/></svg>',tooltip:!0});}}],[{key:"requires",get:function get(){return[nC];}},{key:"pluginName",get:function get(){return"MediaEmbedUI";}}]);return lC;}(Fr);var cC=n(5777),dC={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(cC.Z,dC);cC.Z.locals;function uC(t,e,n,_ref116){var o=_ref116.blockElements,i=_ref116.inlineObjectElements;var r=n.createPositionAt(t,"forward"==e?"after":"before");return r=r.getLastMatchingPosition(function(_ref117){var t=_ref117.item;return t.is("element")&&!o.includes(t.name)&&!i.includes(t.name);},{direction:e}),"forward"==e?r.nodeAfter:r.nodeBefore;}function hC(t,e){return!!t&&t.is("element")&&e.includes(t.name);}function gC(t,e){if(!t.childCount)return;var n=new Ah(t.document),o=function(t,e){var n=e.createRangeIn(t),o=new as({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),i=[];var _iterator425=_createForOfIteratorHelper(n),_step425;try{for(_iterator425.s();!(_step425=_iterator425.n()).done;){var _t388=_step425.value;if("elementStart"===_t388.type&&o.match(_t388.item)){var _e308=fC(_t388.item);i.push({element:_t388.item,id:_e308.id,order:_e308.order,indent:_e308.indent});}}}catch(err){_iterator425.e(err);}finally{_iterator425.f();}return i;}(t,n);if(!o.length)return;var i=null,r=1;o.forEach(function(t,s){var a=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;var n=e.element.previousSibling;if(!n)return!0;return o=n,!(o.is("element","ol")||o.is("element","ul"));var o;}(o[s-1],t),l=a?null:o[s-1],c=(u=t,(d=l)?u.indent-d.indent:u.indent-1);var d,u;if(a&&(i=null,r=1),!i||0!==c){var _o182=function(t,e){var n=new RegExp("@list l".concat(t.id,":level").concat(t.indent,"\\s*({[^}]*)"),"gi"),o=/mso-level-number-format:([^;]{0,100});/gi,i=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi,r=n.exec(e);var s="decimal",a="ol",l=null;if(r&&r[1]){var _e309=o.exec(r[1]);if(_e309&&_e309[1]&&(s=_e309[1].trim(),a="bullet"!==s&&"image"!==s?"ol":"ul"),"bullet"===s){var _e310=function(t){var e=function(t){if(t.getChild(0).is("$text"))return null;var _iterator426=_createForOfIteratorHelper(t.getChildren()),_step426;try{for(_iterator426.s();!(_step426=_iterator426.n()).done;){var _e311=_step426.value;if(!_e311.is("element","span"))continue;var _t389=_e311.getChild(0);if(_t389)return _t389.is("$text")?_t389:_t389.getChild(0);}}catch(err){_iterator426.e(err);}finally{_iterator426.f();}return null;}(t);if(!e)return null;var n=e._data;if("o"===n)return"circle";if("·"===n)return"disc";if("§"===n)return"square";return null;}(t.element);_e310&&(s=_e310);}else{var _t390=i.exec(r[1]);_t390&&_t390[1]&&(l=parseInt(_t390[1]));}}return{type:a,startIndex:l,style:mC(s)};}(t,e);if(i){if(t.indent>r){var _t391=i.getChild(i.childCount-1),_e312=_t391.getChild(_t391.childCount-1);i=pC(_o182,_e312,n),r+=1;}else if(t.indent<r){var _e313=r-t.indent;i=function(t,e){var n=t.getAncestors({parentFirst:!0});var o=null,i=0;var _iterator427=_createForOfIteratorHelper(n),_step427;try{for(_iterator427.s();!(_step427=_iterator427.n()).done;){var _t392=_step427.value;if((_t392.is("element","ul")||_t392.is("element","ol"))&&i++,i===e){o=_t392;break;}}}catch(err){_iterator427.e(err);}finally{_iterator427.f();}return o;}(i,_e313),r=t.indent;}}else i=pC(_o182,t.element,n);t.indent<=r&&(i.is("element",_o182.type)||(i=n.rename(_o182.type,i)));}var h=function(t,e){return function(t,e){var n=new as({name:"span",styles:{"mso-list":"Ignore"}}),o=e.createRangeIn(t);var _iterator428=_createForOfIteratorHelper(o),_step428;try{for(_iterator428.s();!(_step428=_iterator428.n()).done;){var _t393=_step428.value;"elementStart"===_t393.type&&n.match(_t393.item)&&e.remove(_t393.item);}}catch(err){_iterator428.e(err);}finally{_iterator428.f();}}(t,e),e.rename("li",t);}(t.element,n);n.appendChild(h,i);});}function mC(t){if(t.startsWith("arabic-leading-zero"))return"decimal-leading-zero";switch(t){case"alpha-upper":return"upper-alpha";case"alpha-lower":return"lower-alpha";case"roman-upper":return"upper-roman";case"roman-lower":return"lower-roman";case"circle":case"disc":case"square":return t;default:return null;}}function pC(t,e,n){var o=e.parent,i=n.createElement(t.type),r=o.getChildIndex(e)+1;return n.insertChild(r,i,o),t.style&&n.setStyle("list-style-type",t.style,i),t.startIndex&&t.startIndex>1&&n.setAttribute("start",t.startIndex,i),i;}function fC(t){var e={},n=t.getStyle("mso-list");if(n){var _t394=n.match(/(^|\s{1,100})l(\d+)/i),_o183=n.match(/\s{0,100}lfo(\d+)/i),_i172=n.match(/\s{0,100}level(\d+)/i);_t394&&_o183&&_i172&&(e.id=_t394[2],e.order=_o183[1],e.indent=parseInt(_i172[1]));}return e;}var kC=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i;var bC=/*#__PURE__*/function(){function bC(t){_classCallCheck(this,bC);this.document=t;}_createClass(bC,[{key:"isActive",value:function isActive(t){return kC.test(t);}},{key:"execute",value:function execute(t){var e=new Ah(this.document),n=t._parsedData.body;!function(t,e){var _iterator429=_createForOfIteratorHelper(t.getChildren()),_step429;try{for(_iterator429.s();!(_step429=_iterator429.n()).done;){var _n283=_step429.value;if(_n283.is("element","b")&&"normal"===_n283.getStyle("font-weight")){var _o184=t.getChildIndex(_n283);e.remove(_n283),e.insertChild(_o184,_n283.getChildren(),t);}}}catch(err){_iterator429.e(err);}finally{_iterator429.f();}}(n,e),function(t,e){var _iterator430=_createForOfIteratorHelper(e.createRangeIn(t)),_step430;try{for(_iterator430.s();!(_step430=_iterator430.n()).done;){var _n284=_step430.value;var _t395=_n284.item;if(_t395.is("element","li")){var _n285=_t395.getChild(0);_n285&&_n285.is("element","p")&&e.unwrapElement(_n285);}}}catch(err){_iterator430.e(err);}finally{_iterator430.f();}}(n,e),function(t,e){var n=new Ea(e.document.stylesProcessor),o=new kl(n,{renderingMode:"data"}),i=o.blockElements,r=o.inlineObjectElements,s=[];var _iterator431=_createForOfIteratorHelper(e.createRangeIn(t)),_step431;try{for(_iterator431.s();!(_step431=_iterator431.n()).done;){var _n286=_step431.value;var _t397=_n286.item;if(_t397.is("element","br")){var _n287=uC(_t397,"forward",e,{blockElements:i,inlineObjectElements:r}),_o185=uC(_t397,"backward",e,{blockElements:i,inlineObjectElements:r}),_a25=hC(_n287,i);(hC(_o185,i)||_a25)&&s.push(_t397);}}}catch(err){_iterator431.e(err);}finally{_iterator431.f();}for(var _i173=0,_s40=s;_i173<_s40.length;_i173++){var _t396=_s40[_i173];_t396.hasClass("Apple-interchange-newline")?e.remove(_t396):e.replace(_t396,e.createElement("p"));}}(n,e),t.content=n;}}]);return bC;}();function wC(t,e){if(!t.childCount)return;var n=new Ah(t.document),o=function(t,e){var n=e.createRangeIn(t),o=new as({name:/v:(.+)/}),i=[];var _iterator432=_createForOfIteratorHelper(n),_step432;try{for(_iterator432.s();!(_step432=_iterator432.n()).done;){var _t398=_step432.value;if("elementStart"!=_t398.type)continue;var _e314=_t398.item,_n288=_e314.previousSibling,_r70=_n288&&_n288.is("element")?_n288.name:null;o.match(_e314)&&_e314.getAttribute("o:gfxdata")&&"v:shapetype"!==_r70&&i.push(_t398.item.getAttribute("id"));}}catch(err){_iterator432.e(err);}finally{_iterator432.f();}return i;}(t,n);!function(t,e,n){var o=n.createRangeIn(e),i=new as({name:"img"}),r=[];var _iterator433=_createForOfIteratorHelper(o),_step433;try{for(_iterator433.s();!(_step433=_iterator433.n()).done;){var _e315=_step433.value;if(_e315.item.is("element")&&i.match(_e315.item)){var _n289=_e315.item,_o186=_n289.getAttribute("v:shapes")?_n289.getAttribute("v:shapes").split(" "):[];_o186.length&&_o186.every(function(e){return t.indexOf(e)>-1;})?r.push(_n289):_n289.getAttribute("src")||r.push(_n289);}}}catch(err){_iterator433.e(err);}finally{_iterator433.f();}for(var _i174=0,_r71=r;_i174<_r71.length;_i174++){var _t399=_r71[_i174];n.remove(_t399);}}(o,t,n),function(t,e,n){var o=n.createRangeIn(e),i=[];var _iterator434=_createForOfIteratorHelper(o),_step434;try{for(_iterator434.s();!(_step434=_iterator434.n()).done;){var _e318=_step434.value;if("elementStart"==_e318.type&&_e318.item.is("element","v:shape")){var _n291=_e318.item.getAttribute("id");if(t.includes(_n291))continue;r(_e318.item.parent.getChildren(),_n291)||i.push(_e318.item);}}}catch(err){_iterator434.e(err);}finally{_iterator434.f();}for(var _i176=0,_i175=i;_i176<_i175.length;_i176++){var _t400=_i175[_i176];var _e316={src:s(_t400)};_t400.hasAttribute("alt")&&(_e316.alt=_t400.getAttribute("alt"));var _o187=n.createElement("img",_e316);n.insertChild(_t400.index+1,_o187,_t400.parent);}function r(t,e){var _iterator435=_createForOfIteratorHelper(t),_step435;try{for(_iterator435.s();!(_step435=_iterator435.n()).done;){var _n290=_step435.value;if(_n290.is("element")){if("img"==_n290.name&&_n290.getAttribute("v:shapes")==e)return!0;if(r(_n290.getChildren(),e))return!0;}}}catch(err){_iterator435.e(err);}finally{_iterator435.f();}return!1;}function s(t){var _iterator436=_createForOfIteratorHelper(t.getChildren()),_step436;try{for(_iterator436.s();!(_step436=_iterator436.n()).done;){var _e317=_step436.value;if(_e317.is("element")&&_e317.getAttribute("src"))return _e317.getAttribute("src");}}catch(err){_iterator436.e(err);}finally{_iterator436.f();}}}(o,t,n),function(t,e){var n=e.createRangeIn(t),o=new as({name:/v:(.+)/}),i=[];var _iterator437=_createForOfIteratorHelper(n),_step437;try{for(_iterator437.s();!(_step437=_iterator437.n()).done;){var _t402=_step437.value;"elementStart"==_t402.type&&o.match(_t402.item)&&i.push(_t402.item);}}catch(err){_iterator437.e(err);}finally{_iterator437.f();}for(var _i178=0,_i177=i;_i178<_i177.length;_i178++){var _t401=_i177[_i178];e.remove(_t401);}}(t,n);var i=function(t,e){var n=e.createRangeIn(t),o=new as({name:"img"}),i=[];var _iterator438=_createForOfIteratorHelper(n),_step438;try{for(_iterator438.s();!(_step438=_iterator438.n()).done;){var _t403=_step438.value;_t403.item.is("element")&&o.match(_t403.item)&&_t403.item.getAttribute("src").startsWith("file://")&&i.push(_t403.item);}}catch(err){_iterator438.e(err);}finally{_iterator438.f();}return i;}(t,n);i.length&&function(t,e,n){if(t.length===e.length)for(var _o188=0;_o188<t.length;_o188++){var _i179="data:".concat(e[_o188].type,";base64,").concat(AC(e[_o188].hex));n.setAttribute("src",_i179,t[_o188]);}}(i,function(t){if(!t)return[];var e=/{\\pict[\s\S]+?\\bliptag-?\d+(\\blipupi-?\d+)?({\\\*\\blipuid\s?[\da-fA-F]+)?[\s}]*?/,n=new RegExp("(?:("+e.source+"))([\\da-fA-F\\s]+)\\}","g"),o=t.match(n),i=[];if(o){var _iterator439=_createForOfIteratorHelper(o),_step439;try{for(_iterator439.s();!(_step439=_iterator439.n()).done;){var _t404=_step439.value;var _n292=!1;_t404.includes("\\pngblip")?_n292="image/png":_t404.includes("\\jpegblip")&&(_n292="image/jpeg"),_n292&&i.push({hex:_t404.replace(e,"").replace(/[^\da-fA-F]/g,""),type:_n292});}}catch(err){_iterator439.e(err);}finally{_iterator439.f();}}return i;}(e),n);}function AC(t){return btoa(t.match(/\w{2}/g).map(function(t){return String.fromCharCode(parseInt(t,16));}).join(""));}var _C=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,CC=/xmlns:o="urn:schemas-microsoft-com/i;var vC=/*#__PURE__*/function(){function vC(t){_classCallCheck(this,vC);this.document=t;}_createClass(vC,[{key:"isActive",value:function isActive(t){return _C.test(t)||CC.test(t);}},{key:"execute",value:function execute(t){var _t$_parsedData=t._parsedData,e=_t$_parsedData.body,n=_t$_parsedData.stylesString;gC(e,n),wC(e,t.dataTransfer.getData("text/rtf")),t.content=e;}}]);return vC;}();function yC(t){return t.replace(/<span(?: class="Apple-converted-space"|)>(\s+)<\/span>/g,function(t,e){return 1===e.length?" ":Array(e.length+1).join(" ").substr(0,e.length);});}function xC(t,e){var n=new DOMParser(),o=function(t){return yC(yC(t)).replace(/(<span\s+style=['"]mso-spacerun:yes['"]>[^\S\r\n]*?)[\r\n]+([^\S\r\n]*<\/span>)/g,"$1$2").replace(/<span\s+style=['"]mso-spacerun:yes['"]><\/span>/g,"").replace(/ <\//g," </").replace(/ <o:p><\/o:p>/g," <o:p></o:p>").replace(/<o:p>( |\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><");}(function(t){var e="</body>",n="</html>",o=t.indexOf(e);if(o<0)return t;var i=t.indexOf(n,o+e.length);return t.substring(0,o+e.length)+(i>=0?t.substring(i):"");}(t=t.replace(/<!--\[if gte vml 1]>/g,""))),i=n.parseFromString(o,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach(function(t){var e=t,n=e.innerText.length||0;e.innerText=Array(n+1).join(" ").substr(0,n);});}(i);var r=i.body.innerHTML,s=function(t,e){var n=new Ea(e),o=new kl(n,{renderingMode:"data"}),i=t.createDocumentFragment(),r=t.body.childNodes;for(;r.length>0;)i.appendChild(r[0]);return o.domToView(i,{skipComments:!0});}(i,e),a=function(t){var e=[],n=[],o=Array.from(t.getElementsByTagName("style"));for(var _i180=0,_o189=o;_i180<_o189.length;_i180++){var _t405=_o189[_i180];_t405.sheet&&_t405.sheet.cssRules&&_t405.sheet.cssRules.length&&(e.push(_t405.sheet),n.push(_t405.innerHTML));}return{styles:e,stylesString:n.join(" ")};}(i);return{body:s,bodyString:r,styles:a.styles,stylesString:a.stylesString};}function EC(t,e){var n=e.modelAttribute,o=e.styleName,i=e.viewElement,r=e.defaultValue,_e$reduceBoxSides=e.reduceBoxSides,s=_e$reduceBoxSides===void 0?!1:_e$reduceBoxSides,_e$shouldUpcast=e.shouldUpcast,a=_e$shouldUpcast===void 0?function(){return!0;}:_e$shouldUpcast;t.for("upcast").attributeToAttribute({view:{name:i,styles:_defineProperty({},o,/[\s\S]+/)},model:{key:n,value:function value(t){if(!a(t))return;var e=t.getNormalizedStyle(o),n=s?IC(e):e;return r!==n?n:void 0;}}});}function DC(t,e,n,o){t.for("upcast").add(function(t){return t.on("element:"+e,function(t,e,i){if(!e.modelRange)return;var r=["border-top-width","border-top-color","border-top-style","border-bottom-width","border-bottom-color","border-bottom-style","border-right-width","border-right-color","border-right-style","border-left-width","border-left-color","border-left-style"].filter(function(t){return e.viewItem.hasStyle(t);});if(!r.length)return;var s={styles:r};if(!i.consumable.test(e.viewItem,s))return;var a=_toConsumableArray(e.modelRange.getItems({shallow:!0})).pop();i.consumable.consume(e.viewItem,s);var l={style:e.viewItem.getNormalizedStyle("border-style"),color:e.viewItem.getNormalizedStyle("border-color"),width:e.viewItem.getNormalizedStyle("border-width")},c={style:IC(l.style),color:IC(l.color),width:IC(l.width)};c.style!==o.style&&i.writer.setAttribute(n.style,c.style,a),c.color!==o.color&&i.writer.setAttribute(n.color,c.color,a),c.width!==o.width&&i.writer.setAttribute(n.width,c.width,a);});});}function TC(t,e){var n=e.modelElement,o=e.modelAttribute,i=e.styleName;t.for("downcast").attributeToAttribute({model:{name:n,key:o},view:function view(t){return{key:"style",value:_defineProperty({},i,t)};}});}function SC(t,e){var n=e.modelAttribute,o=e.styleName;t.for("downcast").add(function(t){return t.on("attribute:".concat(n,":table"),function(t,e,n){var i=e.item,r=e.attributeNewValue,s=n.mapper,a=n.writer;if(!n.consumable.consume(e.item,t.name))return;var l=_toConsumableArray(s.toViewElement(i).getChildren()).find(function(t){return t.is("element","table");});r?a.setStyle(o,r,l):a.removeStyle(o,l);});});}function IC(t){if(!t)return;var e=["top","right","bottom","left"];if(!e.every(function(e){return t[e];}))return t;var n=t.top;return e.every(function(e){return t[e]===n;})?n:t;}function MC(t,e,n,o){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:1;null!=e&&null!=i&&e>i?o.setAttribute(t,e,n):o.removeAttribute(t,n);}function BC(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:{};var o=t.createElement("tableCell",n);return t.insertElement("paragraph",o),t.insert(o,e),o;}function NC(t,e){var n=e.parent.parent,o=parseInt(n.getAttribute("headingColumns")||"0"),_t$getCellLocation=t.getCellLocation(e),i=_t$getCellLocation.column;return!!o&&i<o;}function zC(t,e,n){var o=n.modelAttribute;t.extend("tableCell",{allowAttributes:[o]}),EC(e,_objectSpread({viewElement:/^(td|th)$/},n)),TC(e,_objectSpread({modelElement:"tableCell"},n));}function PC(){return function(t){t.on("element:table",function(t,e,n){var o=e.viewItem;if(!n.consumable.test(o,{name:!0}))return;var _ref118=function(t){var e,n=0;var o=[],i=[];var r;for(var _i181=0,_Array$from10=Array.from(t.getChildren());_i181<_Array$from10.length;_i181++){var _s41=_Array$from10[_i181];if("tbody"!==_s41.name&&"thead"!==_s41.name&&"tfoot"!==_s41.name)continue;"thead"!==_s41.name||r||(r=_s41);var _t406=Array.from(_s41.getChildren()).filter(function(t){return t.is("element","tr");});var _iterator440=_createForOfIteratorHelper(_t406),_step440;try{for(_iterator440.s();!(_step440=_iterator440.n()).done;){var _a26=_step440.value;if(r&&_s41===r||"tbody"===_s41.name&&Array.from(_a26.getChildren()).length&&Array.from(_a26.getChildren()).every(function(t){return t.is("element","th");}))n++,o.push(_a26);else{i.push(_a26);var _t407=OC(_a26);(!e||_t407<e)&&(e=_t407);}}}catch(err){_iterator440.e(err);}finally{_iterator440.f();}}return{headingRows:n,headingColumns:e||0,rows:[].concat(o,i)};}(o),i=_ref118.rows,r=_ref118.headingRows,s=_ref118.headingColumns,a={};s&&(a.headingColumns=s),r&&(a.headingRows=r);var l=n.writer.createElement("table",a);if(n.safeInsert(l,e.modelCursor)){if(n.consumable.consume(o,{name:!0}),i.forEach(function(t){return n.convertItem(t,n.writer.createPositionAt(l,"end"));}),n.convertChildren(o,n.writer.createPositionAt(l,"end")),l.isEmpty){var _t408=n.writer.createElement("tableRow");n.writer.insert(_t408,n.writer.createPositionAt(l,"end")),BC(n.writer,n.writer.createPositionAt(_t408,"end"));}n.updateConversionResult(l,e);}});};}function LC(t){return function(e){e.on("element:".concat(t),function(t,e,_ref119){var n=_ref119.writer;if(!e.modelRange)return;var o=e.modelRange.start.nodeAfter,i=n.createPositionAt(o,0);if(e.viewItem.isEmpty)return void n.insertElement("paragraph",i);var r=Array.from(o.getChildren());if(r.every(function(t){return t.is("element","$marker");})){var _t409=n.createElement("paragraph");n.insert(_t409,n.createPositionAt(o,0));var _iterator441=_createForOfIteratorHelper(r),_step441;try{for(_iterator441.s();!(_step441=_iterator441.n()).done;){var _e319=_step441.value;n.move(n.createRangeOn(_e319),n.createPositionAt(_t409,"end"));}}catch(err){_iterator441.e(err);}finally{_iterator441.f();}}},{priority:"low"});};}function OC(t){var e=0,n=0;var o=Array.from(t.getChildren()).filter(function(t){return"th"===t.name||"td"===t.name;});for(;n<o.length&&"th"===o[n].name;){var _t410=o[n];e+=parseInt(_t410.getAttribute("colspan")||"1"),n++;}return e;}var RC=/*#__PURE__*/function(_Symbol$iterator16){function RC(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,RC);this._table=t,this._startRow=void 0!==e.row?e.row:e.startRow||0,this._endRow=void 0!==e.row?e.row:e.endRow,this._startColumn=void 0!==e.column?e.column:e.startColumn||0,this._endColumn=void 0!==e.column?e.column:e.endColumn,this._includeAllSlots=!!e.includeAllSlots,this._skipRows=new Set(),this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map(),this._nextCellAtColumn=-1;}_createClass(RC,[{key:_Symbol$iterator16,value:function value(){return this;}},{key:"next",value:function next(){var t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0,value:void 0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();var e=null;var n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{var _n293=t.getChild(this._cellIndex);if(!_n293)return this._advanceToNextRow();var _o190=parseInt(_n293.getAttribute("colspan")||"1"),_i182=parseInt(_n293.getAttribute("rowspan")||"1");(_o190>1||_i182>1)&&this._recordSpans(_n293,_i182,_o190),this._shouldSkipSlot()||(e=this._formatOutValue(_n293)),this._nextCellAtColumn=this._column+_o190;}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next();}},{key:"skipRow",value:function skipRow(t){this._skipRows.add(t);}},{key:"_advanceToNextRow",value:function _advanceToNextRow(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next();}},{key:"_isOverEndRow",value:function _isOverEndRow(){return void 0!==this._endRow&&this._row>this._endRow;}},{key:"_isOverEndColumn",value:function _isOverEndColumn(){return void 0!==this._endColumn&&this._column>this._endColumn;}},{key:"_formatOutValue",value:function _formatOutValue(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:this._row;var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:this._column;return{done:!1,value:new jC(this,t,e,n)};}},{key:"_shouldSkipSlot",value:function _shouldSkipSlot(){var t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,o=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||o;}},{key:"_getSpanned",value:function _getSpanned(){var t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null;}},{key:"_recordSpans",value:function _recordSpans(t,e,n){var o={cell:t,row:this._row,column:this._column};for(var _t411=this._row;_t411<this._row+e;_t411++)for(var _e320=this._column;_e320<this._column+n;_e320++)_t411==this._row&&_e320==this._column||this._markSpannedCell(_t411,_e320,o);}},{key:"_markSpannedCell",value:function _markSpannedCell(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map());this._spannedCells.get(t).set(e,n);}}]);return RC;}(Symbol.iterator);var jC=/*#__PURE__*/function(){function jC(t,e,n,o){_classCallCheck(this,jC);this.cell=e,this.row=t._row,this.column=t._column,this.cellAnchorRow=n,this.cellAnchorColumn=o,this._cellIndex=t._cellIndex,this._rowIndex=t._rowIndex,this._table=t._table;}_createClass(jC,[{key:"isAnchor",get:function get(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn;}},{key:"cellWidth",get:function get(){return parseInt(this.cell.getAttribute("colspan")||"1");}},{key:"cellHeight",get:function get(){return parseInt(this.cell.getAttribute("rowspan")||"1");}},{key:"rowIndex",get:function get(){return this._rowIndex;}},{key:"getPositionBefore",value:function getPositionBefore(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex);}}]);return jC;}();function FC(t,e){return function(n,_ref120){var o=_ref120.writer;var i=n.getAttribute("headingRows")||0,r=o.createContainerElement("table",null,[]),s=o.createContainerElement("figure",{class:"table"},r);i>0&&o.insert(o.createPositionAt(r,"end"),o.createContainerElement("thead",null,o.createSlot(function(t){return t.is("element","tableRow")&&t.index<i;}))),i<t.getRows(n)&&o.insert(o.createPositionAt(r,"end"),o.createContainerElement("tbody",null,o.createSlot(function(t){return t.is("element","tableRow")&&t.index>=i;})));var _iterator442=_createForOfIteratorHelper(e.additionalSlots),_step442;try{for(_iterator442.s();!(_step442=_iterator442.n()).done;){var _step442$value=_step442.value,_t412=_step442$value.positionOffset,_n294=_step442$value.filter;o.insert(o.createPositionAt(r,_t412),o.createSlot(_n294));}}catch(err){_iterator442.e(err);}finally{_iterator442.f();}return o.insert(o.createPositionAt(r,"after"),o.createSlot(function(t){return!t.is("element","tableRow")&&!e.additionalSlots.some(function(_ref121){var e=_ref121.filter;return e(t);});})),e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),Yp(t,e,{hasSelectionHandle:!0});}(s,o):s;};}function VC(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(e,_ref122){var n=_ref122.writer;var o=e.parent,i=o.parent,r=i.getChildIndex(o),s=new RC(i,{row:r}),a=i.getAttribute("headingRows")||0,l=i.getAttribute("headingColumns")||0;var c=null;var _iterator443=_createForOfIteratorHelper(s),_step443;try{for(_iterator443.s();!(_step443=_iterator443.n()).done;){var _o191=_step443.value;if(_o191.cell==e){var _e321=_o191.row<a||_o191.column<l?"th":"td";c=t.asWidget?Xp(n.createEditableElement(_e321),n):n.createContainerElement(_e321);break;}}}catch(err){_iterator443.e(err);}finally{_iterator443.f();}return c;};}function HC(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};return function(e,_ref123){var n=_ref123.writer;if(!e.parent.is("element","tableCell"))return null;if(!UC(e))return null;if(t.asWidget)return n.createContainerElement("span",{class:"ck-table-bogus-paragraph"});{var _t413=n.createContainerElement("p");return n.setCustomProperty("dataPipeline:transparentRendering",!0,_t413),_t413;}};}function UC(t){return 1==t.parent.childCount&&!!t.getAttributeKeys().next().done;}var WC=/*#__PURE__*/function(_Hr27){_inherits(WC,_Hr27);var _super246=_createSuper(WC);function WC(){_classCallCheck(this,WC);return _super246.apply(this,arguments);}_createClass(WC,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){var n=t.getFirstPosition().parent,o=n===n.root?n:n.parent;return e.checkChild(o,"table");}(e,n);}},{key:"execute",value:function execute(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor,n=e.model,o=e.plugins.get("TableUtils"),i=e.config.get("table.defaultHeadings.rows"),r=e.config.get("table.defaultHeadings.columns");void 0===t.headingRows&&i&&(t.headingRows=i),void 0===t.headingColumns&&r&&(t.headingColumns=r),n.change(function(e){var i=o.createTable(e,t);n.insertObject(i,null,null,{findOptimalPosition:"auto"}),e.setSelection(e.createPositionAt(i.getNodeByPath([0,0,0]),0));});}}]);return WC;}(Hr);var GC=/*#__PURE__*/function(_Hr28){_inherits(GC,_Hr28);var _super247=_createSuper(GC);function GC(t){var _this367;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,GC);_this367=_super247.call(this,t),_this367.order=e.order||"below";return _this367;}_createClass(GC,[{key:"refresh",value:function refresh(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e;}},{key:"execute",value:function execute(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),o="above"===this.order,i=n.getSelectionAffectedTableCells(e),r=n.getRowIndexes(i),s=o?r.first:r.last,a=i[0].findAncestor("table");n.insertRows(a,{at:o?s:s+1,copyStructureFromAbove:!o});}}]);return GC;}(Hr);var qC=/*#__PURE__*/function(_Hr29){_inherits(qC,_Hr29);var _super248=_createSuper(qC);function qC(t){var _this368;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,qC);_this368=_super248.call(this,t),_this368.order=e.order||"right";return _this368;}_createClass(qC,[{key:"refresh",value:function refresh(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e;}},{key:"execute",value:function execute(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),o="left"===this.order,i=n.getSelectionAffectedTableCells(e),r=n.getColumnIndexes(i),s=o?r.first:r.last,a=i[0].findAncestor("table");n.insertColumns(a,{columns:1,at:o?s:s+1});}}]);return qC;}(Hr);var $C=/*#__PURE__*/function(_Hr30){_inherits($C,_Hr30);var _super249=_createSuper($C);function $C(t){var _this369;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,$C);_this369=_super249.call(this,t),_this369.direction=e.direction||"horizontally";return _this369;}_createClass($C,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length;}},{key:"execute",value:function execute(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection)[0];"horizontally"===this.direction?t.splitCellHorizontally(e,2):t.splitCellVertically(e,2);}}]);return $C;}(Hr);function KC(t,e,n){var o=e.startRow,i=e.startColumn,r=e.endRow,s=e.endColumn,a=n.createElement("table"),l=r-o+1;for(var _t414=0;_t414<l;_t414++)n.insertElement("tableRow",a,"end");var c=_toConsumableArray(new RC(t,{startRow:o,endRow:r,startColumn:i,endColumn:s,includeAllSlots:!0}));var _iterator444=_createForOfIteratorHelper(c),_step444;try{for(_iterator444.s();!(_step444=_iterator444.n()).done;){var _step444$value=_step444.value,_t415=_step444$value.row,_e322=_step444$value.column,_l26=_step444$value.cell,_d3=_step444$value.isAnchor,_u3=_step444$value.cellAnchorRow,_h2=_step444$value.cellAnchorColumn;var _c10=_t415-o,_g2=a.getChild(_c10);if(_d3){var _o192=n.cloneElement(_l26);n.append(_o192,_g2),XC(_o192,_t415,_e322,r,s,n);}else(_u3<o||_h2<i)&&BC(n,n.createPositionAt(_g2,"end"));}}catch(err){_iterator444.e(err);}finally{_iterator444.f();}return function(t,e,n,o,i){var r=parseInt(e.getAttribute("headingRows")||"0");if(r>0){MC("headingRows",r-n,t,i,0);}var s=parseInt(e.getAttribute("headingColumns")||"0");if(s>0){MC("headingColumns",s-o,t,i,0);}}(a,t,o,i,n),a;}function YC(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:0;var o=[],i=new RC(t,{startRow:n,endRow:e-1});var _iterator445=_createForOfIteratorHelper(i),_step445;try{for(_iterator445.s();!(_step445=_iterator445.n()).done;){var _t416=_step445.value;var _n295=_t416.row,_i183=_t416.cellHeight;_n295<e&&e<=_n295+_i183-1&&o.push(_t416);}}catch(err){_iterator445.e(err);}finally{_iterator445.f();}return o;}function QC(t,e,n){var o=t.parent,i=o.parent,r=o.index,s=e-r,a={},l=parseInt(t.getAttribute("rowspan"))-s;l>1&&(a.rowspan=l);var c=parseInt(t.getAttribute("colspan")||"1");c>1&&(a.colspan=c);var d=r+s,u=_toConsumableArray(new RC(i,{startRow:r,endRow:d,includeAllSlots:!0}));var h,g=null;var _iterator446=_createForOfIteratorHelper(u),_step446;try{for(_iterator446.s();!(_step446=_iterator446.n()).done;){var _e323=_step446.value;var _o193=_e323.row,_i184=_e323.column,_r72=_e323.cell;_r72===t&&void 0===h&&(h=_i184),void 0!==h&&h===_i184&&_o193===d&&(g=BC(n,_e323.getPositionBefore(),a));}}catch(err){_iterator446.e(err);}finally{_iterator446.f();}return MC("rowspan",s,t,n),g;}function ZC(t,e){var n=[],o=new RC(t);var _iterator447=_createForOfIteratorHelper(o),_step447;try{for(_iterator447.s();!(_step447=_iterator447.n()).done;){var _t417=_step447.value;var _o194=_t417.column,_i185=_t417.cellWidth;_o194<e&&e<=_o194+_i185-1&&n.push(_t417);}}catch(err){_iterator447.e(err);}finally{_iterator447.f();}return n;}function JC(t,e,n,o){var i=n-e,r={},s=parseInt(t.getAttribute("colspan"))-i;s>1&&(r.colspan=s);var a=parseInt(t.getAttribute("rowspan")||"1");a>1&&(r.rowspan=a);var l=BC(o,o.createPositionAfter(t),r);return MC("colspan",i,t,o),l;}function XC(t,e,n,o,i,r){var s=parseInt(t.getAttribute("colspan")||"1"),a=parseInt(t.getAttribute("rowspan")||"1");if(n+s-1>i){MC("colspan",i-n+1,t,r,1);}if(e+a-1>o){MC("rowspan",o-e+1,t,r,1);}}function tv(t,e){var n=e.getColumns(t),o=new Array(n).fill(0);var _iterator448=_createForOfIteratorHelper(new RC(t)),_step448;try{for(_iterator448.s();!(_step448=_iterator448.n()).done;){var _e324=_step448.value.column;o[_e324]++;}}catch(err){_iterator448.e(err);}finally{_iterator448.f();}var i=o.reduce(function(t,e,n){return e?t:[].concat(_toConsumableArray(t),[n]);},[]);if(i.length>0){var _n296=i[i.length-1];return e.removeColumns(t,{at:_n296}),!0;}return!1;}function ev(t,e){var n=[],o=e.getRows(t);for(var _e325=0;_e325<o;_e325++){t.getChild(_e325).isEmpty&&n.push(_e325);}if(n.length>0){var _o195=n[n.length-1];return e.removeRows(t,{at:_o195}),!0;}return!1;}function nv(t,e){tv(t,e)||ev(t,e);}function ov(t,e){var n=Array.from(new RC(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every(function(_ref124){var t=_ref124.cellHeight;return 1===t;}))return e.lastRow;var o=n[0].cellHeight-1;return e.lastRow+o;}function iv(t,e){var n=Array.from(new RC(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every(function(_ref125){var t=_ref125.cellWidth;return 1===t;}))return e.lastColumn;var o=n[0].cellWidth-1;return e.lastColumn+o;}var rv=/*#__PURE__*/function(_Hr31){_inherits(rv,_Hr31);var _super250=_createSuper(rv);function rv(t,e){var _this370;_classCallCheck(this,rv);_this370=_super250.call(this,t),_this370.direction=e.direction,_this370.isHorizontal="right"==_this370.direction||"left"==_this370.direction;return _this370;}_createClass(rv,[{key:"refresh",value:function refresh(){var t=this._getMergeableCell();this.value=t,this.isEnabled=!!t;}},{key:"execute",value:function execute(){var _this371=this;var t=this.editor.model,e=t.document,n=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(e.selection)[0],o=this.value,i=this.direction;t.change(function(t){var e="right"==i||"down"==i,r=e?n:o,s=e?o:n,a=s.parent;!function(t,e,n){sv(t)||(sv(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end")));n.remove(t);}(s,r,t);var l=_this371.isHorizontal?"colspan":"rowspan",c=parseInt(n.getAttribute(l)||"1"),d=parseInt(o.getAttribute(l)||"1");t.setAttribute(l,c+d,r),t.setSelection(t.createRangeIn(r));var u=_this371.editor.plugins.get("TableUtils");nv(a.findAncestor("table"),u);});}},{key:"_getMergeableCell",value:function _getMergeableCell(){var t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(!n)return;var o=this.isHorizontal?function(t,e,n){var o=t.parent,i=o.parent,r="right"==e?t.nextSibling:t.previousSibling,s=(i.getAttribute("headingColumns")||0)>0;if(!r)return;var a="right"==e?t:r,l="right"==e?r:t,_n$getCellLocation=n.getCellLocation(a),c=_n$getCellLocation.column,_n$getCellLocation2=n.getCellLocation(l),d=_n$getCellLocation2.column,u=parseInt(a.getAttribute("colspan")||"1"),h=NC(n,a),g=NC(n,l);if(s&&h!=g)return;return c+u===d?r:void 0;}(n,this.direction,e):function(t,e,n){var o=t.parent,i=o.parent,r=i.getChildIndex(o);if("down"==e&&r===n.getRows(i)-1||"up"==e&&0===r)return null;var s=parseInt(t.getAttribute("rowspan")||"1"),a=i.getAttribute("headingRows")||0,l="down"==e&&r+s===a,c="up"==e&&r===a;if(a&&(l||c))return null;var d=parseInt(t.getAttribute("rowspan")||"1"),u="down"==e?r+d:r,h=_toConsumableArray(new RC(i,{endRow:u})),g=h.find(function(e){return e.cell===t;}),m=g.column,p=h.find(function(_ref126){var t=_ref126.row,n=_ref126.cellHeight,o=_ref126.column;return o===m&&("down"==e?t===u:u===t+n);});return p&&p.cell?p.cell:null;}(n,this.direction,e);if(!o)return;var i=this.isHorizontal?"rowspan":"colspan",r=parseInt(n.getAttribute(i)||"1");return parseInt(o.getAttribute(i)||"1")===r?o:void 0;}}]);return rv;}(Hr);function sv(t){var e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty;}var av=/*#__PURE__*/function(_Hr32){_inherits(av,_Hr32);var _super251=_createSuper(av);function av(){_classCallCheck(this,av);return _super251.apply(this,arguments);}_createClass(av,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var _o196=n.findAncestor("table"),_i186=t.getRows(_o196)-1,_r73=t.getRowIndexes(e),_s42=0===_r73.first&&_r73.last===_i186;this.isEnabled=!_s42;}else this.isEnabled=!1;}},{key:"execute",value:function execute(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),o=e.getRowIndexes(n),i=n[0],r=i.findAncestor("table"),s=e.getCellLocation(i).column;t.change(function(t){var n=o.last-o.first+1;e.removeRows(r,{at:o.first,rows:n});var i=function(t,e,n,o){var i=t.getChild(Math.min(e,o-1));var r=i.getChild(0),s=0;var _iterator449=_createForOfIteratorHelper(i.getChildren()),_step449;try{for(_iterator449.s();!(_step449=_iterator449.n()).done;){var _t418=_step449.value;if(s>n)return r;r=_t418,s+=parseInt(_t418.getAttribute("colspan")||"1");}}catch(err){_iterator449.e(err);}finally{_iterator449.f();}return r;}(r,o.first,s,e.getRows(r));t.setSelection(t.createPositionAt(i,0));});}}]);return av;}(Hr);var lv=/*#__PURE__*/function(_Hr33){_inherits(lv,_Hr33);var _super252=_createSuper(lv);function lv(){_classCallCheck(this,lv);return _super252.apply(this,arguments);}_createClass(lv,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var _o197=n.findAncestor("table"),_i187=t.getColumns(_o197),_t$getColumnIndexes=t.getColumnIndexes(e),_r74=_t$getColumnIndexes.first,_s43=_t$getColumnIndexes.last;this.isEnabled=_s43-_r74<_i187-1;}else this.isEnabled=!1;}},{key:"execute",value:function execute(){var t=this.editor.plugins.get("TableUtils"),_ref127=function(t,e){var n=e.getSelectionAffectedTableCells(t),o=n[0],i=n.pop(),r=[o,i];return o.isBefore(i)?r:r.reverse();}(this.editor.model.document.selection,t),_ref128=_slicedToArray(_ref127,2),e=_ref128[0],n=_ref128[1],o=e.parent.parent,i=_toConsumableArray(new RC(o)),r={first:i.find(function(t){return t.cell===e;}).column,last:i.find(function(t){return t.cell===n;}).column},s=function(t,e,n,o){var i=parseInt(n.getAttribute("colspan")||"1");return i>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:o.first?t.reverse().find(function(_ref129){var t=_ref129.column;return t<o.first;}).cell:t.reverse().find(function(_ref130){var t=_ref130.column;return t>o.last;}).cell;}(i,e,n,r);this.editor.model.change(function(e){var n=r.last-r.first+1;t.removeColumns(o,{at:r.first,columns:n}),e.setSelection(e.createPositionAt(s,0));});}}]);return lv;}(Hr);var cv=/*#__PURE__*/function(_Hr34){_inherits(cv,_Hr34);var _super253=_createSuper(cv);function cv(){_classCallCheck(this,cv);return _super253.apply(this,arguments);}_createClass(cv,[{key:"refresh",value:function refresh(){var _this372=this;var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),o=n.length>0;this.isEnabled=o,this.value=o&&n.every(function(t){return _this372._isInHeading(t,t.parent.parent);});}},{key:"execute",value:function execute(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(t.forceValue===this.value)return;var e=this.editor.plugins.get("TableUtils"),n=this.editor.model,o=e.getSelectionAffectedTableCells(n.document.selection),i=o[0].findAncestor("table"),_e$getRowIndexes=e.getRowIndexes(o),r=_e$getRowIndexes.first,s=_e$getRowIndexes.last,a=this.value?r:s+1,l=i.getAttribute("headingRows")||0;n.change(function(t){if(a){var _e326=YC(i,a,a>l?l:0);var _iterator450=_createForOfIteratorHelper(_e326),_step450;try{for(_iterator450.s();!(_step450=_iterator450.n()).done;){var _n297=_step450.value.cell;QC(_n297,a,t);}}catch(err){_iterator450.e(err);}finally{_iterator450.f();}}MC("headingRows",a,i,t,0);});}},{key:"_isInHeading",value:function _isInHeading(t,e){var n=parseInt(e.getAttribute("headingRows")||"0");return!!n&&t.parent.index<n;}}]);return cv;}(Hr);var dv=/*#__PURE__*/function(_Hr35){_inherits(dv,_Hr35);var _super254=_createSuper(dv);function dv(){_classCallCheck(this,dv);return _super254.apply(this,arguments);}_createClass(dv,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),o=n.length>0;this.isEnabled=o,this.value=o&&n.every(function(t){return NC(e,t);});}},{key:"execute",value:function execute(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};if(t.forceValue===this.value)return;var e=this.editor.plugins.get("TableUtils"),n=this.editor.model,o=e.getSelectionAffectedTableCells(n.document.selection),i=o[0].findAncestor("table"),_e$getColumnIndexes=e.getColumnIndexes(o),r=_e$getColumnIndexes.first,s=_e$getColumnIndexes.last,a=this.value?r:s+1;n.change(function(t){if(a){var _e327=ZC(i,a);var _iterator451=_createForOfIteratorHelper(_e327),_step451;try{for(_iterator451.s();!(_step451=_iterator451.n()).done;){var _step451$value=_step451.value,_n298=_step451$value.cell,_o198=_step451$value.column;JC(_n298,_o198,a,t);}}catch(err){_iterator451.e(err);}finally{_iterator451.f();}}MC("headingColumns",a,i,t,0);});}}]);return dv;}(Hr);var uv=/*#__PURE__*/function(_Fr69){_inherits(uv,_Fr69);var _super255=_createSuper(uv);function uv(){_classCallCheck(this,uv);return _super255.apply(this,arguments);}_createClass(uv,[{key:"init",value:function init(){this.decorate("insertColumns"),this.decorate("insertRows");}},{key:"getCellLocation",value:function getCellLocation(t){var e=t.parent,n=e.parent,o=n.getChildIndex(e),i=new RC(n,{row:o});var _iterator452=_createForOfIteratorHelper(i),_step452;try{for(_iterator452.s();!(_step452=_iterator452.n()).done;){var _step452$value=_step452.value,_e328=_step452$value.cell,_n299=_step452$value.row,_o199=_step452$value.column;if(_e328===t)return{row:_n299,column:_o199};}}catch(err){_iterator452.e(err);}finally{_iterator452.f();}}},{key:"createTable",value:function createTable(t,e){var n=t.createElement("table"),o=e.rows||2,i=e.columns||2;return hv(t,n,0,o,i),e.headingRows&&MC("headingRows",Math.min(e.headingRows,o),n,t,0),e.headingColumns&&MC("headingColumns",Math.min(e.headingColumns,i),n,t,0),n;}},{key:"insertRows",value:function insertRows(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.editor.model,o=e.at||0,i=e.rows||1,r=void 0!==e.copyStructureFromAbove,s=e.copyStructureFromAbove?o-1:o,a=this.getRows(t),l=this.getColumns(t);if(o>a)throw new _("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change(function(e){var n=t.getAttribute("headingRows")||0;if(n>o&&MC("headingRows",n+i,t,e,0),!r&&(0===o||o===a))return void hv(e,t,o,i,l);var c=r?Math.max(o,s):o,d=new RC(t,{endRow:c}),u=new Array(l).fill(1);var _iterator453=_createForOfIteratorHelper(d),_step453;try{for(_iterator453.s();!(_step453=_iterator453.n()).done;){var _step453$value=_step453.value,_t420=_step453$value.row,_n302=_step453$value.column,_a27=_step453$value.cellHeight,_l27=_step453$value.cellWidth,_c11=_step453$value.cell;var _d4=_t420+_a27-1,_h3=_t420<=s&&s<=_d4;_t420<o&&o<=_d4?(e.setAttribute("rowspan",_a27+i,_c11),u[_n302]=-_l27):r&&_h3&&(u[_n302]=_l27);}}catch(err){_iterator453.e(err);}finally{_iterator453.f();}for(var _n300=0;_n300<i;_n300++){var _n301=e.createElement("tableRow");e.insert(_n301,t,o);for(var _t419=0;_t419<u.length;_t419++){var _o200=u[_t419],_i188=e.createPositionAt(_n301,"end");_o200>0&&BC(e,_i188,_o200>1?{colspan:_o200}:void 0),_t419+=Math.abs(_o200)-1;}}});}},{key:"insertColumns",value:function insertColumns(t){var _this373=this;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=this.editor.model,o=e.at||0,i=e.columns||1;n.change(function(e){var n=t.getAttribute("headingColumns");o<n&&e.setAttribute("headingColumns",n+i,t);var r=_this373.getColumns(t);if(0===o||r===o){var _iterator454=_createForOfIteratorHelper(t.getChildren()),_step454;try{for(_iterator454.s();!(_step454=_iterator454.n()).done;){var _n303=_step454.value;_n303.is("element","tableRow")&&gv(i,e,e.createPositionAt(_n303,o?"end":0));}}catch(err){_iterator454.e(err);}finally{_iterator454.f();}return;}var s=new RC(t,{column:o,includeAllSlots:!0});var _iterator455=_createForOfIteratorHelper(s),_step455;try{for(_iterator455.s();!(_step455=_iterator455.n()).done;){var _t421=_step455.value;var _n304=_t421.row,_r75=_t421.cell,_a28=_t421.cellAnchorColumn,_l28=_t421.cellAnchorRow,_c12=_t421.cellWidth,_d5=_t421.cellHeight;if(_a28<o){e.setAttribute("colspan",_c12+i,_r75);var _t422=_l28+_d5-1;for(var _e329=_n304;_e329<=_t422;_e329++)s.skipRow(_e329);}else gv(i,e,_t421.getPositionBefore());}}catch(err){_iterator455.e(err);}finally{_iterator455.f();}});}},{key:"removeRows",value:function removeRows(t,e){var _this374=this;var n=this.editor.model,o=e.rows||1,i=this.getRows(t),r=e.at,s=r+o-1;if(s>i-1)throw new _("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});n.change(function(e){var n={first:r,last:s},_ref131=function(t,_ref132){var e=_ref132.first,n=_ref132.last;var o=new Map(),i=[];var _iterator456=_createForOfIteratorHelper(new RC(t,{endRow:n})),_step456;try{for(_iterator456.s();!(_step456=_iterator456.n()).done;){var _step456$value=_step456.value,_r76=_step456$value.row,_s44=_step456$value.column,_a29=_step456$value.cellHeight,_l29=_step456$value.cell;var _t423=_r76+_a29-1;if(_r76>=e&&_r76<=n&&_t423>n){var _t424=_a29-(n-_r76+1);o.set(_s44,{cell:_l29,rowspan:_t424});}if(_r76<e&&_t423>=e){var _o201=void 0;_o201=_t423>=n?n-e+1:_t423-e+1,i.push({cell:_l29,rowspan:_a29-_o201});}}}catch(err){_iterator456.e(err);}finally{_iterator456.f();}return{cellsToMove:o,cellsToTrim:i};}(t,n),o=_ref131.cellsToMove,i=_ref131.cellsToTrim;if(o.size){!function(t,e,n,o){var i=new RC(t,{includeAllSlots:!0,row:e}),r=_toConsumableArray(i),s=t.getChild(e);var a;var _iterator457=_createForOfIteratorHelper(r),_step457;try{for(_iterator457.s();!(_step457=_iterator457.n()).done;){var _step457$value=_step457.value,_t425=_step457$value.column,_e330=_step457$value.cell,_i189=_step457$value.isAnchor;if(n.has(_t425)){var _n$get=n.get(_t425),_e331=_n$get.cell,_i190=_n$get.rowspan,_r77=a?o.createPositionAfter(a):o.createPositionAt(s,0);o.move(o.createRangeOn(_e331),_r77),MC("rowspan",_i190,_e331,o),a=_e331;}else _i189&&(a=_e330);}}catch(err){_iterator457.e(err);}finally{_iterator457.f();}}(t,s+1,o,e);}for(var _n305=s;_n305>=r;_n305--)e.remove(t.getChild(_n305));var _iterator458=_createForOfIteratorHelper(i),_step458;try{for(_iterator458.s();!(_step458=_iterator458.n()).done;){var _step458$value=_step458.value,_t426=_step458$value.rowspan,_n306=_step458$value.cell;MC("rowspan",_t426,_n306,e);}}catch(err){_iterator458.e(err);}finally{_iterator458.f();}!function(t,_ref133,o){var e=_ref133.first,n=_ref133.last;var i=t.getAttribute("headingRows")||0;if(e<i){MC("headingRows",n<i?i-(n-e+1):e,t,o,0);}}(t,n,e),tv(t,_this374)||ev(t,_this374);});}},{key:"removeColumns",value:function removeColumns(t,e){var _this375=this;var n=this.editor.model,o=e.at,i=e.columns||1,r=e.at+i-1;n.change(function(e){!function(t,e,n){var o=t.getAttribute("headingColumns")||0;if(o&&e.first<o){var _i191=Math.min(o-1,e.last)-e.first+1;n.setAttribute("headingColumns",o-_i191,t);}}(t,{first:o,last:r},e);for(var _n307=r;_n307>=o;_n307--)for(var _i192=0,_arr2=_toConsumableArray(new RC(t));_i192<_arr2.length;_i192++){var _arr2$_i=_arr2[_i192],_o202=_arr2$_i.cell,_i193=_arr2$_i.column,_r78=_arr2$_i.cellWidth;_i193<=_n307&&_r78>1&&_i193+_r78>_n307?MC("colspan",_r78-1,_o202,e):_i193===_n307&&e.remove(_o202);}ev(t,_this375)||tv(t,_this375);});}},{key:"splitCellVertically",value:function splitCellVertically(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:2;var n=this.editor.model,o=t.parent.parent,i=parseInt(t.getAttribute("rowspan")||"1"),r=parseInt(t.getAttribute("colspan")||"1");n.change(function(n){if(r>1){var _mv=mv(r,e),_o203=_mv.newCellsSpan,_s45=_mv.updatedSpan;MC("colspan",_s45,t,n);var _a30={};_o203>1&&(_a30.colspan=_o203),i>1&&(_a30.rowspan=i);gv(r>e?e-1:r-1,n,n.createPositionAfter(t),_a30);}if(r<e){var _s46=e-r,_a31=_toConsumableArray(new RC(o)),_a$find=_a31.find(function(_ref134){var e=_ref134.cell;return e===t;}),_l30=_a$find.column,_c13=_a31.filter(function(_ref135){var e=_ref135.cell,n=_ref135.cellWidth,o=_ref135.column;return e!==t&&o===_l30||o<_l30&&o+n>_l30;});var _iterator459=_createForOfIteratorHelper(_c13),_step459;try{for(_iterator459.s();!(_step459=_iterator459.n()).done;){var _step459$value=_step459.value,_t427=_step459$value.cell,_e332=_step459$value.cellWidth;n.setAttribute("colspan",_e332+_s46,_t427);}}catch(err){_iterator459.e(err);}finally{_iterator459.f();}var _d6={};i>1&&(_d6.rowspan=i),gv(_s46,n,n.createPositionAfter(t),_d6);var _u4=o.getAttribute("headingColumns")||0;_u4>_l30&&MC("headingColumns",_u4+_s46,o,n);}});}},{key:"splitCellHorizontally",value:function splitCellHorizontally(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:2;var n=this.editor.model,o=t.parent,i=o.parent,r=i.getChildIndex(o),s=parseInt(t.getAttribute("rowspan")||"1"),a=parseInt(t.getAttribute("colspan")||"1");n.change(function(n){if(s>1){var _o204=_toConsumableArray(new RC(i,{startRow:r,endRow:r+s-1,includeAllSlots:!0})),_mv2=mv(s,e),_l31=_mv2.newCellsSpan,_c14=_mv2.updatedSpan;MC("rowspan",_c14,t,n);var _o204$find=_o204.find(function(_ref136){var e=_ref136.cell;return e===t;}),_d7=_o204$find.column,_u5={};_l31>1&&(_u5.rowspan=_l31),a>1&&(_u5.colspan=a);var _iterator460=_createForOfIteratorHelper(_o204),_step460;try{for(_iterator460.s();!(_step460=_iterator460.n()).done;){var _t428=_step460.value;var _e333=_t428.column,_o205=_t428.row;_o205>=r+_c14&&_e333===_d7&&(_o205+r+_c14)%_l31==0&&gv(1,n,_t428.getPositionBefore(),_u5);}}catch(err){_iterator460.e(err);}finally{_iterator460.f();}}if(s<e){var _o206=e-s,_l32=_toConsumableArray(new RC(i,{startRow:0,endRow:r}));var _iterator461=_createForOfIteratorHelper(_l32),_step461;try{for(_iterator461.s();!(_step461=_iterator461.n()).done;){var _step461$value=_step461.value,_e334=_step461$value.cell,_i194=_step461$value.cellHeight,_s47=_step461$value.row;if(_e334!==t&&_s47+_i194>r){var _t429=_i194+_o206;n.setAttribute("rowspan",_t429,_e334);}}}catch(err){_iterator461.e(err);}finally{_iterator461.f();}var _c15={};a>1&&(_c15.colspan=a),hv(n,i,r+1,_o206,1,_c15);var _d8=i.getAttribute("headingRows")||0;_d8>r&&MC("headingRows",_d8+_o206,i,n);}});}},{key:"getColumns",value:function getColumns(t){return _toConsumableArray(t.getChild(0).getChildren()).reduce(function(t,e){return t+parseInt(e.getAttribute("colspan")||"1");},0);}},{key:"getRows",value:function getRows(t){return Array.from(t.getChildren()).reduce(function(t,e){return e.is("element","tableRow")?t+1:t;},0);}},{key:"createTableWalker",value:function createTableWalker(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new RC(t,e);}},{key:"getSelectedTableCells",value:function getSelectedTableCells(t){var e=[];var _iterator462=_createForOfIteratorHelper(this.sortRanges(t.getRanges())),_step462;try{for(_iterator462.s();!(_step462=_iterator462.n()).done;){var _n308=_step462.value;var _t430=_n308.getContainedElement();_t430&&_t430.is("element","tableCell")&&e.push(_t430);}}catch(err){_iterator462.e(err);}finally{_iterator462.f();}return e;}},{key:"getTableCellsContainingSelection",value:function getTableCellsContainingSelection(t){var e=[];var _iterator463=_createForOfIteratorHelper(t.getRanges()),_step463;try{for(_iterator463.s();!(_step463=_iterator463.n()).done;){var _n309=_step463.value;var _t431=_n309.start.findAncestor("tableCell");_t431&&e.push(_t431);}}catch(err){_iterator463.e(err);}finally{_iterator463.f();}return e;}},{key:"getSelectionAffectedTableCells",value:function getSelectionAffectedTableCells(t){var e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t);}},{key:"getRowIndexes",value:function getRowIndexes(t){var e=t.map(function(t){return t.parent.index;});return this._getFirstLastIndexesObject(e);}},{key:"getColumnIndexes",value:function getColumnIndexes(t){var e=t[0].findAncestor("table"),n=_toConsumableArray(new RC(e)).filter(function(e){return t.includes(e.cell);}).map(function(t){return t.column;});return this._getFirstLastIndexesObject(n);}},{key:"isSelectionRectangular",value:function isSelectionRectangular(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;var e=new Set(),n=new Set();var o=0;var _iterator464=_createForOfIteratorHelper(t),_step464;try{for(_iterator464.s();!(_step464=_iterator464.n()).done;){var _i195=_step464.value;var _this$getCellLocation=this.getCellLocation(_i195),_t432=_this$getCellLocation.row,_r79=_this$getCellLocation.column,_s48=parseInt(_i195.getAttribute("rowspan"))||1,_a32=parseInt(_i195.getAttribute("colspan"))||1;e.add(_t432),n.add(_r79),_s48>1&&e.add(_t432+_s48-1),_a32>1&&n.add(_r79+_a32-1),o+=_s48*_a32;}}catch(err){_iterator464.e(err);}finally{_iterator464.f();}var i=function(t,e){var n=Array.from(t.values()),o=Array.from(e.values()),i=Math.max.apply(Math,n),r=Math.min.apply(Math,n),s=Math.max.apply(Math,o),a=Math.min.apply(Math,o);return(i-r+1)*(s-a+1);}(e,n);return i==o;}},{key:"sortRanges",value:function sortRanges(t){return Array.from(t).sort(pv);}},{key:"_getFirstLastIndexesObject",value:function _getFirstLastIndexesObject(t){var e=t.sort(function(t,e){return t-e;});return{first:e[0],last:e[e.length-1]};}},{key:"_areCellInTheSameTableSection",value:function _areCellInTheSameTableSection(t){var e=t[0].findAncestor("table"),n=this.getRowIndexes(t),o=parseInt(e.getAttribute("headingRows"))||0;if(!this._areIndexesInSameSection(n,o))return!1;var i=this.getColumnIndexes(t),r=parseInt(e.getAttribute("headingColumns"))||0;return this._areIndexesInSameSection(i,r);}},{key:"_areIndexesInSameSection",value:function _areIndexesInSameSection(_ref137,n){var t=_ref137.first,e=_ref137.last;return t<n===e<n;}}],[{key:"pluginName",get:function get(){return"TableUtils";}}]);return uv;}(Fr);function hv(t,e,n,o,i){var r=arguments.length>5&&arguments[5]!==undefined?arguments[5]:{};for(var _s49=0;_s49<o;_s49++){var _o207=t.createElement("tableRow");t.insert(_o207,e,n),gv(i,t,t.createPositionAt(_o207,"end"),r);}}function gv(t,e,n){var o=arguments.length>3&&arguments[3]!==undefined?arguments[3]:{};for(var _i196=0;_i196<t;_i196++)BC(e,n,o);}function mv(t,e){if(t<e)return{newCellsSpan:1,updatedSpan:1};var n=Math.floor(t/e);return{newCellsSpan:n,updatedSpan:t-n*e+n};}function pv(t,e){var n=t.start,o=e.start;return n.isBefore(o)?-1:1;}var fv=/*#__PURE__*/function(_Hr36){_inherits(fv,_Hr36);var _super256=_createSuper(fv);function fv(){_classCallCheck(this,fv);return _super256.apply(this,arguments);}_createClass(fv,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get(uv),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e);}},{key:"execute",value:function execute(){var t=this.editor.model,e=this.editor.plugins.get(uv);t.change(function(n){var o=e.getSelectedTableCells(t.document.selection),i=o.shift(),_ref138=function(t,e,n){var o=0,i=0;var _iterator465=_createForOfIteratorHelper(e),_step465;try{for(_iterator465.s();!(_step465=_iterator465.n()).done;){var _t433=_step465.value;var _n$getCellLocation4=n.getCellLocation(_t433),_e335=_n$getCellLocation4.row,_r80=_n$getCellLocation4.column;o=wv(_t433,_r80,o,"colspan"),i=wv(_t433,_e335,i,"rowspan");}}catch(err){_iterator465.e(err);}finally{_iterator465.f();}var _n$getCellLocation3=n.getCellLocation(t),r=_n$getCellLocation3.row,s=_n$getCellLocation3.column,a=o-s,l=i-r;return{mergeWidth:a,mergeHeight:l};}(i,o,e),r=_ref138.mergeWidth,s=_ref138.mergeHeight;MC("colspan",r,i,n),MC("rowspan",s,i,n);var _iterator466=_createForOfIteratorHelper(o),_step466;try{for(_iterator466.s();!(_step466=_iterator466.n()).done;){var _t434=_step466.value;kv(_t434,i,n);}}catch(err){_iterator466.e(err);}finally{_iterator466.f();}nv(i.findAncestor("table"),e),n.setSelection(i,"in");});}}]);return fv;}(Hr);function kv(t,e,n){bv(t)||(bv(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t);}function bv(t){var e=t.getChild(0);return 1==t.childCount&&e.is("element","paragraph")&&e.isEmpty;}function wv(t,e,n,o){var i=parseInt(t.getAttribute(o)||"1");return Math.max(n,e+i);}var Av=/*#__PURE__*/function(_Hr37){_inherits(Av,_Hr37);var _super257=_createSuper(Av);function Av(t){var _this376;_classCallCheck(this,Av);_this376=_super257.call(this,t),_this376.affectsData=!1;return _this376;}_createClass(Av,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0;}},{key:"execute",value:function execute(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),o=e.getRowIndexes(n),i=n[0].findAncestor("table"),r=[];for(var _e336=o.first;_e336<=o.last;_e336++){var _iterator467=_createForOfIteratorHelper(i.getChild(_e336).getChildren()),_step467;try{for(_iterator467.s();!(_step467=_iterator467.n()).done;){var _n310=_step467.value;r.push(t.createRangeOn(_n310));}}catch(err){_iterator467.e(err);}finally{_iterator467.f();}}t.change(function(t){t.setSelection(r);});}}]);return Av;}(Hr);var _v=/*#__PURE__*/function(_Hr38){_inherits(_v,_Hr38);var _super258=_createSuper(_v);function _v(t){var _this377;_classCallCheck(this,_v);_this377=_super258.call(this,t),_this377.affectsData=!1;return _this377;}_createClass(_v,[{key:"refresh",value:function refresh(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0;}},{key:"execute",value:function execute(){var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),o=n[0],i=n.pop(),r=o.findAncestor("table"),s=t.getCellLocation(o),a=t.getCellLocation(i),l=Math.min(s.column,a.column),c=Math.max(s.column,a.column),d=[];var _iterator468=_createForOfIteratorHelper(new RC(r,{startColumn:l,endColumn:c})),_step468;try{for(_iterator468.s();!(_step468=_iterator468.n()).done;){var _t435=_step468.value;d.push(e.createRangeOn(_t435.cell));}}catch(err){_iterator468.e(err);}finally{_iterator468.f();}e.change(function(t){t.setSelection(d);});}}]);return _v;}(Hr);function Cv(t){t.document.registerPostFixer(function(e){return function(t,e){var n=e.document.differ.getChanges();var o=!1;var i=new Set();var _iterator469=_createForOfIteratorHelper(n),_step469;try{for(_iterator469.s();!(_step469=_iterator469.n()).done;){var _e337=_step469.value;var _n311=null;"insert"==_e337.type&&"table"==_e337.name&&(_n311=_e337.position.nodeAfter),"insert"!=_e337.type&&"remove"!=_e337.type||"tableRow"!=_e337.name&&"tableCell"!=_e337.name||(_n311=_e337.position.findAncestor("table")),xv(_e337)&&(_n311=_e337.range.start.findAncestor("table")),_n311&&!i.has(_n311)&&(o=vv(_n311,t)||o,o=yv(_n311,t)||o,i.add(_n311));}}catch(err){_iterator469.e(err);}finally{_iterator469.f();}return o;}(e,t);});}function vv(t,e){var n=!1;var o=function(t){var e=parseInt(t.getAttribute("headingRows")||"0"),n=Array.from(t.getChildren()).reduce(function(t,e){return e.is("element","tableRow")?t+1:t;},0),o=[];var _iterator470=_createForOfIteratorHelper(new RC(t)),_step470;try{for(_iterator470.s();!(_step470=_iterator470.n()).done;){var _step470$value=_step470.value,_i197=_step470$value.row,_r81=_step470$value.cell,_s50=_step470$value.cellHeight;if(_s50<2)continue;var _t436=_i197<e?e:n;if(_i197+_s50>_t436){var _e338=_t436-_i197;o.push({cell:_r81,rowspan:_e338});}}}catch(err){_iterator470.e(err);}finally{_iterator470.f();}return o;}(t);if(o.length){n=!0;var _iterator471=_createForOfIteratorHelper(o),_step471;try{for(_iterator471.s();!(_step471=_iterator471.n()).done;){var _t437=_step471.value;MC("rowspan",_t437.rowspan,_t437.cell,e,1);}}catch(err){_iterator471.e(err);}finally{_iterator471.f();}}return n;}function yv(t,e){var n=!1;var o=function(t){var e=new Array(t.childCount).fill(0);var _iterator472=_createForOfIteratorHelper(new RC(t,{includeAllSlots:!0})),_step472;try{for(_iterator472.s();!(_step472=_iterator472.n()).done;){var _n312=_step472.value.rowIndex;e[_n312]++;}}catch(err){_iterator472.e(err);}finally{_iterator472.f();}return e;}(t),i=[];var _iterator473=_createForOfIteratorHelper(o.entries()),_step473;try{for(_iterator473.s();!(_step473=_iterator473.n()).done;){var _step473$value=_slicedToArray(_step473.value,2),_e339=_step473$value[0],_n315=_step473$value[1];!_n315&&t.getChild(_e339).is("element","tableRow")&&i.push(_e339);}}catch(err){_iterator473.e(err);}finally{_iterator473.f();}if(i.length){n=!0;var _iterator474=_createForOfIteratorHelper(i.reverse()),_step474;try{for(_iterator474.s();!(_step474=_iterator474.n()).done;){var _n313=_step474.value;e.remove(t.getChild(_n313)),o.splice(_n313,1);}}catch(err){_iterator474.e(err);}finally{_iterator474.f();}}var r=o.filter(function(e,n){return t.getChild(n).is("element","tableRow");}),s=r[0];if(!r.every(function(t){return t===s;})){var _o208=r.reduce(function(t,e){return e>t?e:t;},0);var _iterator475=_createForOfIteratorHelper(r.entries()),_step475;try{for(_iterator475.s();!(_step475=_iterator475.n()).done;){var _step475$value=_slicedToArray(_step475.value,2),_i198=_step475$value[0],_s51=_step475$value[1];var _r82=_o208-_s51;if(_r82){for(var _n314=0;_n314<_r82;_n314++)BC(e,e.createPositionAt(t.getChild(_i198),"end"));n=!0;}}}catch(err){_iterator475.e(err);}finally{_iterator475.f();}}return n;}function xv(t){if("attribute"!==t.type)return!1;var e=t.attributeKey;return"headingRows"===e||"colspan"===e||"rowspan"===e;}function Ev(t){t.document.registerPostFixer(function(e){return function(t,e){var n=e.document.differ.getChanges();var o=!1;var _iterator476=_createForOfIteratorHelper(n),_step476;try{for(_iterator476.s();!(_step476=_iterator476.n()).done;){var _e340=_step476.value;"insert"==_e340.type&&"table"==_e340.name&&(o=Dv(_e340.position.nodeAfter,t)||o),"insert"==_e340.type&&"tableRow"==_e340.name&&(o=Tv(_e340.position.nodeAfter,t)||o),"insert"==_e340.type&&"tableCell"==_e340.name&&(o=Sv(_e340.position.nodeAfter,t)||o),"remove"!=_e340.type&&"insert"!=_e340.type||!Iv(_e340)||(o=Sv(_e340.position.parent,t)||o);}}catch(err){_iterator476.e(err);}finally{_iterator476.f();}return o;}(e,t);});}function Dv(t,e){var n=!1;var _iterator477=_createForOfIteratorHelper(t.getChildren()),_step477;try{for(_iterator477.s();!(_step477=_iterator477.n()).done;){var _o209=_step477.value;_o209.is("element","tableRow")&&(n=Tv(_o209,e)||n);}}catch(err){_iterator477.e(err);}finally{_iterator477.f();}return n;}function Tv(t,e){var n=!1;var _iterator478=_createForOfIteratorHelper(t.getChildren()),_step478;try{for(_iterator478.s();!(_step478=_iterator478.n()).done;){var _o210=_step478.value;n=Sv(_o210,e)||n;}}catch(err){_iterator478.e(err);}finally{_iterator478.f();}return n;}function Sv(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;var n=Array.from(t.getChildren()).filter(function(t){return t.is("$text");});var _iterator479=_createForOfIteratorHelper(n),_step479;try{for(_iterator479.s();!(_step479=_iterator479.n()).done;){var _t438=_step479.value;e.wrap(e.createRangeOn(_t438),"paragraph");}}catch(err){_iterator479.e(err);}finally{_iterator479.f();}return!!n.length;}function Iv(t){return!!t.position.parent.is("element","tableCell")&&("insert"==t.type&&"$text"==t.name||"remove"==t.type);}function Mv(t,e){if(!t.is("element","paragraph"))return!1;var n=e.toViewElement(t);return!!n&&UC(t)!==n.is("element","span");}var Bv=n(4777),Nv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Bv.Z,Nv);Bv.Z.locals;var zv=/*#__PURE__*/function(_Fr70){_inherits(zv,_Fr70);var _super259=_createSuper(zv);function zv(t){var _this378;_classCallCheck(this,zv);_this378=_super259.call(this,t),_this378._additionalSlots=[];return _this378;}_createClass(zv,[{key:"init",value:function init(){var t=this.editor,e=t.model,n=e.schema,o=t.conversion,i=t.plugins.get(uv);n.register("table",{inheritAllFrom:"$blockObject",allowAttributes:["headingRows","headingColumns"]}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowContentOf:"$container",allowIn:"tableRow",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),o.for("upcast").add(function(t){t.on("element:figure",function(t,e,n){if(!n.consumable.test(e.viewItem,{name:!0,classes:"table"}))return;var o=function(t){var _iterator480=_createForOfIteratorHelper(t.getChildren()),_step480;try{for(_iterator480.s();!(_step480=_iterator480.n()).done;){var _e341=_step480.value;if(_e341.is("element","table"))return _e341;}}catch(err){_iterator480.e(err);}finally{_iterator480.f();}}(e.viewItem);if(!o||!n.consumable.test(o,{name:!0}))return;n.consumable.consume(e.viewItem,{name:!0,classes:"table"});var i=Ei(n.convertItem(o,e.modelCursor).modelRange.getItems());i?(n.convertChildren(e.viewItem,n.writer.createPositionAt(i,"end")),n.updateConversionResult(i,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"});});}),o.for("upcast").add(PC()),o.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:FC(i,{asWidget:!0,additionalSlots:this._additionalSlots})}),o.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:FC(i,{additionalSlots:this._additionalSlots})}),o.for("upcast").elementToElement({model:"tableRow",view:"tr"}),o.for("upcast").add(function(t){t.on("element:tr",function(t,e){e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop();},{priority:"high"});}),o.for("downcast").elementToElement({model:"tableRow",view:function view(t,_ref139){var e=_ref139.writer;return t.isEmpty?e.createEmptyElement("tr"):e.createContainerElement("tr");}}),o.for("upcast").elementToElement({model:"tableCell",view:"td"}),o.for("upcast").elementToElement({model:"tableCell",view:"th"}),o.for("upcast").add(LC("td")),o.for("upcast").add(LC("th")),o.for("editingDowncast").elementToElement({model:"tableCell",view:VC({asWidget:!0})}),o.for("dataDowncast").elementToElement({model:"tableCell",view:VC()}),o.for("editingDowncast").elementToElement({model:"paragraph",view:HC({asWidget:!0}),converterPriority:"high"}),o.for("dataDowncast").elementToElement({model:"paragraph",view:HC(),converterPriority:"high"}),o.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),o.for("upcast").attributeToAttribute({model:{key:"colspan",value:Pv("colspan")},view:"colspan"}),o.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),o.for("upcast").attributeToAttribute({model:{key:"rowspan",value:Pv("rowspan")},view:"rowspan"}),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new WC(t)),t.commands.add("insertTableRowAbove",new GC(t,{order:"above"})),t.commands.add("insertTableRowBelow",new GC(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new qC(t,{order:"left"})),t.commands.add("insertTableColumnRight",new qC(t,{order:"right"})),t.commands.add("removeTableRow",new av(t)),t.commands.add("removeTableColumn",new lv(t)),t.commands.add("splitTableCellVertically",new $C(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new $C(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new fv(t)),t.commands.add("mergeTableCellRight",new rv(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new rv(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new rv(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new rv(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new dv(t)),t.commands.add("setTableRowHeader",new cv(t)),t.commands.add("selectTableRow",new Av(t)),t.commands.add("selectTableColumn",new _v(t)),Cv(e),Ev(e),this.listenTo(e.document,"change:data",function(){!function(t,e){var n=t.document.differ;var _iterator481=_createForOfIteratorHelper(n.getChanges()),_step481;try{for(_iterator481.s();!(_step481=_iterator481.n()).done;){var _t439=_step481.value;var _n316=void 0,_o211=!1;if("attribute"==_t439.type){var _e342=_t439.range.start.nodeAfter;if(!_e342||!_e342.is("element","table"))continue;if("headingRows"!=_t439.attributeKey&&"headingColumns"!=_t439.attributeKey)continue;_n316=_e342,_o211="headingRows"==_t439.attributeKey;}else"tableRow"!=_t439.name&&"tableCell"!=_t439.name||(_n316=_t439.position.findAncestor("table"),_o211="tableRow"==_t439.name);if(!_n316)continue;var _i199=_n316.getAttribute("headingRows")||0,_r83=_n316.getAttribute("headingColumns")||0,_s52=new RC(_n316);var _iterator482=_createForOfIteratorHelper(_s52),_step482;try{for(_iterator482.s();!(_step482=_iterator482.n()).done;){var _t440=_step482.value;var _n317=_t440.row<_i199||_t440.column<_r83?"th":"td",_s53=e.mapper.toViewElement(_t440.cell);_s53&&_s53.is("element")&&_s53.name!=_n317&&e.reconvertItem(_o211?_t440.cell.parent:_t440.cell);}}catch(err){_iterator482.e(err);}finally{_iterator482.f();}}}catch(err){_iterator481.e(err);}finally{_iterator481.f();}}(e,t.editing),function(t,e){var n=t.document.differ,o=new Set();var _iterator483=_createForOfIteratorHelper(n.getChanges()),_step483;try{for(_iterator483.s();!(_step483=_iterator483.n()).done;){var _t441=_step483.value;var _e343="attribute"==_t441.type?_t441.range.start.parent:_t441.position.parent;_e343.is("element","tableCell")&&o.add(_e343);}}catch(err){_iterator483.e(err);}finally{_iterator483.f();}var _iterator484=_createForOfIteratorHelper(o.values()),_step484;try{for(_iterator484.s();!(_step484=_iterator484.n()).done;){var _t442=_step484.value;var _n318=Array.from(_t442.getChildren()).filter(function(t){return Mv(t,e.mapper);});var _iterator485=_createForOfIteratorHelper(_n318),_step485;try{for(_iterator485.s();!(_step485=_iterator485.n()).done;){var _t443=_step485.value;e.reconvertItem(_t443);}}catch(err){_iterator485.e(err);}finally{_iterator485.f();}}}catch(err){_iterator484.e(err);}finally{_iterator484.f();}}(e,t.editing);});}},{key:"registerAdditionalSlot",value:function registerAdditionalSlot(t){this._additionalSlots.push(t);}}],[{key:"pluginName",get:function get(){return"TableEditing";}},{key:"requires",get:function get(){return[uv];}}]);return zv;}(Fr);function Pv(t){return function(e){var n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n;};}var Lv=n(8085),Ov={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Lv.Z,Ov);Lv.Z.locals;var Rv=/*#__PURE__*/function(_ji30){_inherits(Rv,_ji30);var _super260=_createSuper(Rv);function Rv(t){var _this379;_classCallCheck(this,Rv);_this379=_super260.call(this,t);var e=_this379.bindTemplate;_this379.items=_this379._createGridCollection(),_this379.keystrokes=new Ti(),_this379.focusTracker=new Di(),_this379.set("rows",0),_this379.set("columns",0),_this379.bind("label").to(_assertThisInitialized(_this379),"columns",_assertThisInitialized(_this379),"rows",function(t,e){return"".concat(e," \xD7 ").concat(t);}),_this379.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"mouseover@.ck-insert-table-dropdown-grid-box":e.to("boxover")},children:_this379.items},{tag:"div",attributes:{class:["ck","ck-insert-table-dropdown__label"],"aria-hidden":!0},children:[{text:e.to("label")}]}],on:{mousedown:e.to(function(t){t.preventDefault();}),click:e.to(function(){_this379.fire("execute");})}}),_this379.on("boxover",function(t,e){var _e$target$dataset=e.target.dataset,n=_e$target$dataset.row,o=_e$target$dataset.column;_this379.items.get(10*(parseInt(n,10)-1)+(parseInt(o,10)-1)).focus();}),_this379.focusTracker.on("change:focusedElement",function(t,e,n){if(!n)return;var _n$dataset=n.dataset,o=_n$dataset.row,i=_n$dataset.column;_this379.set({rows:parseInt(o),columns:parseInt(i)});}),_this379.on("change:columns",function(){return _this379._highlightGridBoxes();}),_this379.on("change:rows",function(){return _this379._highlightGridBoxes();});return _this379;}_createClass(Rv,[{key:"render",value:function render(){_get(_getPrototypeOf(Rv.prototype),"render",this).call(this),r({keystrokeHandler:this.keystrokes,focusTracker:this.focusTracker,gridItems:this.items,numberOfColumns:10,uiLanguageDirection:this.locale&&this.locale.uiLanguageDirection});var _iterator486=_createForOfIteratorHelper(this.items),_step486;try{for(_iterator486.s();!(_step486=_iterator486.n()).done;){var _t444=_step486.value;this.focusTracker.add(_t444.element);}}catch(err){_iterator486.e(err);}finally{_iterator486.f();}this.keystrokes.listenTo(this.element);}},{key:"focus",value:function focus(){this.items.get(0).focus();}},{key:"focusLast",value:function focusLast(){this.items.get(0).focus();}},{key:"_highlightGridBoxes",value:function _highlightGridBoxes(){var t=this.rows,e=this.columns;this.items.map(function(n,o){var i=Math.floor(o/10)<t&&o%10<e;n.set("isOn",i);});}},{key:"_createGridButton",value:function _createGridButton(t,e,n,o){var i=new gr(t);return i.set({label:o,class:"ck-insert-table-dropdown-grid-box"}),i.extendTemplate({attributes:{"data-row":e,"data-column":n}}),i;}},{key:"_createGridCollection",value:function _createGridCollection(){var t=[];for(var _e344=0;_e344<100;_e344++){var _n319=Math.floor(_e344/10),_o212=_e344%10,_i200="".concat(_n319+1," \xD7 ").concat(_o212+1);t.push(this._createGridButton(this.locale,_n319+1,_o212+1,_i200));}return this.createCollection(t);}}]);return Rv;}(ji);var jv=/*#__PURE__*/function(_Fr71){_inherits(jv,_Fr71);var _super261=_createSuper(jv);function jv(){_classCallCheck(this,jv);return _super261.apply(this,arguments);}_createClass(jv,[{key:"init",value:function init(){var _this380=this;var t=this.editor,e=this.editor.t,n="ltr"===t.locale.contentLanguageDirection;t.ui.componentFactory.add("insertTable",function(n){var o=t.commands.get("insertTable"),i=Tg(n);var r;return i.bind("isEnabled").to(o),i.buttonView.set({icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M3 6v3h4V6H3zm0 4v3h4v-3H3zm0 4v3h4v-3H3zm5 3h4v-3H8v3zm5 0h4v-3h-4v3zm4-4v-3h-4v3h4zm0-4V6h-4v3h4zm1.5 8a1.5 1.5 0 0 1-1.5 1.5H3A1.5 1.5 0 0 1 1.5 17V4c.222-.863 1.068-1.5 2-1.5h13c.932 0 1.778.637 2 1.5v13zM12 13v-3H8v3h4zm0-4V6H8v3h4z"/></svg>',label:e("Insert table"),tooltip:!0}),i.on("change:isOpen",function(){r||(r=new Rv(n),i.panelView.children.add(r),r.delegate("execute").to(i),i.on("execute",function(){t.execute("insertTable",{rows:r.rows,columns:r.columns}),t.editing.view.focus();}));}),i;}),t.ui.componentFactory.add("tableColumn",function(t){var o=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:e("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:n?"insertTableColumnLeft":"insertTableColumnRight",label:e("Insert column left")}},{type:"button",model:{commandName:n?"insertTableColumnRight":"insertTableColumnLeft",label:e("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:e("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:e("Select column")}}];return _this380._prepareDropdown(e("Column"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M18 7v1H2V7h16zm0 5v1H2v-1h16z" opacity=".6"/><path d="M14 1v18a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V1a1 1 0 0 1 1-1h6a1 1 0 0 1 1 1zm-2 1H8v4h4V2zm0 6H8v4h4V8zm0 6H8v4h4v-4z"/></svg>',o,t);}),t.ui.componentFactory.add("tableRow",function(t){var n=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:e("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:e("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:e("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:e("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:e("Select row")}}];return _this380._prepareDropdown(e("Row"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v16h-1V2z" opacity=".6"/><path d="M1 6h18a1 1 0 0 1 1 1v6a1 1 0 0 1-1 1H1a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1zm1 2v4h4V8H2zm6 0v4h4V8H8zm6 0v4h4V8h-4z"/></svg>',n,t);}),t.ui.componentFactory.add("mergeTableCells",function(t){var o=[{type:"button",model:{commandName:"mergeTableCellUp",label:e("Merge cell up")}},{type:"button",model:{commandName:n?"mergeTableCellRight":"mergeTableCellLeft",label:e("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:e("Merge cell down")}},{type:"button",model:{commandName:n?"mergeTableCellLeft":"mergeTableCellRight",label:e("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:e("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:e("Split cell horizontally")}}];return _this380._prepareMergeSplitButtonDropdown(e("Merge cells"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2.5 1h15A1.5 1.5 0 0 1 19 2.5v15a1.5 1.5 0 0 1-1.5 1.5h-15A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1zM2 2v16h16V2H2z" opacity=".6"/><path d="M7 2h1v16H7V2zm5 0h1v7h-1V2zm6 5v1H2V7h16zM8 12v1H2v-1h6z" opacity=".6"/><path d="M7 7h12a1 1 0 0 1 1 1v11a1 1 0 0 1-1 1H7a1 1 0 0 1-1-1V8a1 1 0 0 1 1-1zm1 2v9h10V9H8z"/></svg>',o,t);});}},{key:"_prepareDropdown",value:function _prepareDropdown(t,e,n,o){var i=this.editor,r=Tg(o),s=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0}),r.bind("isEnabled").toMany(s,"isEnabled",function(){for(var _len39=arguments.length,t=new Array(_len39),_key39=0;_key39<_len39;_key39++){t[_key39]=arguments[_key39];}return t.some(function(t){return t;});}),this.listenTo(r,"execute",function(t){i.execute(t.source.commandName),t.source instanceof fr||i.editing.view.focus();}),r;}},{key:"_prepareMergeSplitButtonDropdown",value:function _prepareMergeSplitButtonDropdown(t,e,n,o){var i=this.editor,r=Tg(o,zr),s="mergeTableCells",a=i.commands.get(s),l=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([a].concat(_toConsumableArray(l)),"isEnabled",function(){for(var _len40=arguments.length,t=new Array(_len40),_key40=0;_key40<_len40;_key40++){t[_key40]=arguments[_key40];}return t.some(function(t){return t;});}),this.listenTo(r.buttonView,"execute",function(){i.execute(s),i.editing.view.focus();}),this.listenTo(r,"execute",function(t){i.execute(t.source.commandName),i.editing.view.focus();}),r;}},{key:"_fillDropdownWithListOptions",value:function _fillDropdownWithListOptions(t,e){var n=this.editor,o=[],i=new xi();var _iterator487=_createForOfIteratorHelper(e),_step487;try{for(_iterator487.s();!(_step487=_iterator487.n()).done;){var _t445=_step487.value;Fv(_t445,n,o,i);}}catch(err){_iterator487.e(err);}finally{_iterator487.f();}return Mg(t,i),o;}}],[{key:"pluginName",get:function get(){return"TableUI";}}]);return jv;}(Fr);function Fv(t,e,n,o){if("button"===t.type||"switchbutton"===t.type){var _o213=t.model=new fm(t.model),_t$model2=t.model,_i201=_t$model2.commandName,_r84=_t$model2.bindIsOn,_s54=e.commands.get(_i201);n.push(_s54),_o213.set({commandName:_i201}),_o213.bind("isEnabled").to(_s54),_r84&&_o213.bind("isOn").to(_s54,"value"),_o213.set({withText:!0});}o.add(t);}var Vv=n(5593),Hv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Vv.Z,Hv);Vv.Z.locals;var Uv=/*#__PURE__*/function(_Fr72){_inherits(Uv,_Fr72);var _super262=_createSuper(Uv);function Uv(){_classCallCheck(this,Uv);return _super262.apply(this,arguments);}_createClass(Uv,[{key:"init",value:function init(){var _this381=this;var t=this.editor,e=t.model,n=t.editing.view;this.listenTo(e,"deleteContent",function(t,e){return _this381._handleDeleteContent(t,e);},{priority:"high"}),this.listenTo(n.document,"insertText",function(t,e){return _this381._handleInsertTextEvent(t,e);},{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling();}},{key:"getSelectedTableCells",value:function getSelectedTableCells(){var t=this.editor.plugins.get(uv),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n;}},{key:"getSelectionAsFragment",value:function getSelectionAsFragment(){var t=this.editor.plugins.get(uv),e=this.getSelectedTableCells();return e?this.editor.model.change(function(n){var o=n.createDocumentFragment(),_t$getColumnIndexes2=t.getColumnIndexes(e),i=_t$getColumnIndexes2.first,r=_t$getColumnIndexes2.last,_t$getRowIndexes=t.getRowIndexes(e),s=_t$getRowIndexes.first,a=_t$getRowIndexes.last,l=e[0].findAncestor("table");var c=a,d=r;if(t.isSelectionRectangular(e)){var _t446={firstColumn:i,lastColumn:r,firstRow:s,lastRow:a};c=ov(l,_t446),d=iv(l,_t446);}var u=KC(l,{startRow:s,startColumn:i,endRow:c,endColumn:d},n);return n.insert(u,o,0),o;}):null;}},{key:"setCellSelection",value:function setCellSelection(t,e){var n=this._getCellsToSelect(t,e);this.editor.model.change(function(t){t.setSelection(n.cells.map(function(e){return t.createRangeOn(e);}),{backward:n.backward});});}},{key:"getFocusCell",value:function getFocusCell(){var t=_toConsumableArray(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return t&&t.is("element","tableCell")?t:null;}},{key:"getAnchorCell",value:function getAnchorCell(){var t=Ei(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null;}},{key:"_defineSelectionConverter",value:function _defineSelectionConverter(){var _this382=this;var t=this.editor,e=new Set();t.conversion.for("editingDowncast").add(function(t){return t.on("selection",function(t,n,o){var i=o.writer;!function(t){var _iterator488=_createForOfIteratorHelper(e),_step488;try{for(_iterator488.s();!(_step488=_iterator488.n()).done;){var _n320=_step488.value;t.removeClass("ck-editor__editable_selected",_n320);}}catch(err){_iterator488.e(err);}finally{_iterator488.f();}e.clear();}(i);var r=_this382.getSelectedTableCells();if(!r)return;var _iterator489=_createForOfIteratorHelper(r),_step489;try{for(_iterator489.s();!(_step489=_iterator489.n()).done;){var _t447=_step489.value;var _n321=o.mapper.toViewElement(_t447);i.addClass("ck-editor__editable_selected",_n321),e.add(_n321);}}catch(err){_iterator489.e(err);}finally{_iterator489.f();}var s=o.mapper.toViewElement(r[r.length-1]);i.setSelection(s,0);},{priority:"lowest"});});}},{key:"_enablePluginDisabling",value:function _enablePluginDisabling(){var _this383=this;var t=this.editor;this.on("change:isEnabled",function(){if(!_this383.isEnabled){var _e345=_this383.getSelectedTableCells();if(!_e345)return;t.model.change(function(n){var o=n.createPositionAt(_e345[0],0),i=t.model.schema.getNearestSelectionRange(o);n.setSelection(i);});}});}},{key:"_handleDeleteContent",value:function _handleDeleteContent(t,e){var n=this.editor.plugins.get(uv),o=e[0],i=e[1],r=this.editor.model,s=!i||"backward"==i.direction,a=n.getSelectedTableCells(o);a.length&&(t.stop(),r.change(function(t){var e=a[s?a.length-1:0];r.change(function(t){var _iterator490=_createForOfIteratorHelper(a),_step490;try{for(_iterator490.s();!(_step490=_iterator490.n()).done;){var _e346=_step490.value;r.deleteContent(t.createSelection(_e346,"in"));}}catch(err){_iterator490.e(err);}finally{_iterator490.f();}});var n=r.schema.getNearestSelectionRange(t.createPositionAt(e,0));o.is("documentSelection")?t.setSelection(n):o.setTo(n);}));}},{key:"_handleInsertTextEvent",value:function _handleInsertTextEvent(t,e){var n=this.editor,o=this.getSelectedTableCells();if(!o)return;var i=n.editing.view,r=n.editing.mapper,s=o.map(function(t){return i.createRangeOn(r.toViewElement(t));});e.selection=i.createSelection(s);}},{key:"_getCellsToSelect",value:function _getCellsToSelect(t,e){var n=this.editor.plugins.get("TableUtils"),o=n.getCellLocation(t),i=n.getCellLocation(e),r=Math.min(o.row,i.row),s=Math.max(o.row,i.row),a=Math.min(o.column,i.column),l=Math.max(o.column,i.column),c=new Array(s-r+1).fill(null).map(function(){return[];}),d={startRow:r,endRow:s,startColumn:a,endColumn:l};var _iterator491=_createForOfIteratorHelper(new RC(t.findAncestor("table"),d)),_step491;try{for(_iterator491.s();!(_step491=_iterator491.n()).done;){var _step491$value=_step491.value,_e347=_step491$value.row,_n322=_step491$value.cell;c[_e347-r].push(_n322);}}catch(err){_iterator491.e(err);}finally{_iterator491.f();}var u=i.row<o.row,h=i.column<o.column;return u&&c.reverse(),h&&c.forEach(function(t){return t.reverse();}),{cells:c.flat(),backward:u||h};}}],[{key:"pluginName",get:function get(){return"TableSelection";}},{key:"requires",get:function get(){return[uv,uv];}}]);return Uv;}(Fr);var Wv=/*#__PURE__*/function(_Fr73){_inherits(Wv,_Fr73);var _super263=_createSuper(Wv);function Wv(){_classCallCheck(this,Wv);return _super263.apply(this,arguments);}_createClass(Wv,[{key:"init",value:function init(){var _this384=this;var t=this.editor,e=t.editing.view.document;this.listenTo(e,"copy",function(t,e){return _this384._onCopyCut(t,e);}),this.listenTo(e,"cut",function(t,e){return _this384._onCopyCut(t,e);}),this.listenTo(t.model,"insertContent",function(t,_ref140){var _ref141=_slicedToArray(_ref140,2),e=_ref141[0],n=_ref141[1];return _this384._onInsertContent(t,e,n);},{priority:"high"}),this.decorate("_replaceTableSlotCell");}},{key:"_onCopyCut",value:function _onCopyCut(t,e){var n=this.editor.plugins.get(Uv);if(!n.getSelectedTableCells())return;if("cut"==t.name&&this.editor.isReadOnly)return;e.preventDefault(),t.stop();var o=this.editor.data,i=this.editor.editing.view.document,r=o.toView(n.getSelectionAsFragment());i.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:r,method:t.name});}},{key:"_onInsertContent",value:function _onInsertContent(t,e,n){var _this385=this;if(n&&!n.is("documentSelection"))return;var o=this.editor.model,i=this.editor.plugins.get(uv);var r=this.getTableIfOnlyTableInContent(e,o);if(!r)return;var s=i.getSelectionAffectedTableCells(o.document.selection);s.length?(t.stop(),o.change(function(t){var e={width:i.getColumns(r),height:i.getRows(r)},n=function(t,e,n,o){var i=t[0].findAncestor("table"),r=o.getColumnIndexes(t),s=o.getRowIndexes(t),a={firstColumn:r.first,lastColumn:r.last,firstRow:s.first,lastRow:s.last},l=1===t.length;l&&(a.lastRow+=e.height-1,a.lastColumn+=e.width-1,function(t,e,n,o){var i=o.getColumns(t),r=o.getRows(t);n>i&&o.insertColumns(t,{at:i,columns:n-i});e>r&&o.insertRows(t,{at:r,rows:e-r});}(i,a.lastRow+1,a.lastColumn+1,o));l||!o.isSelectionRectangular(t)?function(t,e,n){var o=e.firstRow,i=e.lastRow,r=e.firstColumn,s=e.lastColumn,a={first:o,last:i},l={first:r,last:s};qv(t,r,a,n),qv(t,s+1,a,n),Gv(t,o,l,n),Gv(t,i+1,l,n,o);}(i,a,n):(a.lastRow=ov(i,a),a.lastColumn=iv(i,a));return a;}(s,e,t,i),o=n.lastRow-n.firstRow+1,a=n.lastColumn-n.firstColumn+1,l={startRow:0,startColumn:0,endRow:Math.min(o,e.height)-1,endColumn:Math.min(a,e.width)-1};r=KC(r,l,t);var c=s[0].findAncestor("table"),d=_this385._replaceSelectedCellsWithPasted(r,e,c,n,t);if(_this385.editor.plugins.get("TableSelection").isEnabled){var _e348=i.sortRanges(d.map(function(e){return t.createRangeOn(e);}));t.setSelection(_e348);}else t.setSelection(d[0],0);})):nv(r,i);}},{key:"_replaceSelectedCellsWithPasted",value:function _replaceSelectedCellsWithPasted(t,e,n,o,i){var r=e.width,s=e.height,a=function(t,e,n){var o=new Array(n).fill(null).map(function(){return new Array(e).fill(null);});var _iterator492=_createForOfIteratorHelper(new RC(t)),_step492;try{for(_iterator492.s();!(_step492=_iterator492.n()).done;){var _step492$value=_step492.value,_e349=_step492$value.column,_n323=_step492$value.row,_i202=_step492$value.cell;o[_n323][_e349]=_i202;}}catch(err){_iterator492.e(err);}finally{_iterator492.f();}return o;}(t,r,s),l=_toConsumableArray(new RC(n,{startRow:o.firstRow,endRow:o.lastRow,startColumn:o.firstColumn,endColumn:o.lastColumn,includeAllSlots:!0})),c=[];var d;var _iterator493=_createForOfIteratorHelper(l),_step493;try{for(_iterator493.s();!(_step493=_iterator493.n()).done;){var _t450=_step493.value;var _e350=_t450.row,_n324=_t450.column;_n324===o.firstColumn&&(d=_t450.getPositionBefore());var _l33=_e350-o.firstRow,_u6=_n324-o.firstColumn,_h4=a[_l33%s][_u6%r],_g3=_h4?i.cloneElement(_h4):null,_m2=this._replaceTableSlotCell(_t450,_g3,d,i);_m2&&(XC(_m2,_e350,_n324,o.lastRow,o.lastColumn,i),c.push(_m2),d=i.createPositionAfter(_m2));}}catch(err){_iterator493.e(err);}finally{_iterator493.f();}var u=parseInt(n.getAttribute("headingRows")||"0"),h=parseInt(n.getAttribute("headingColumns")||"0"),g=o.firstRow<u&&u<=o.lastRow,m=o.firstColumn<h&&h<=o.lastColumn;if(g){var _t448=Gv(n,u,{first:o.firstColumn,last:o.lastColumn},i,o.firstRow);c.push.apply(c,_toConsumableArray(_t448));}if(m){var _t449=qv(n,h,{first:o.firstRow,last:o.lastRow},i);c.push.apply(c,_toConsumableArray(_t449));}return c;}},{key:"_replaceTableSlotCell",value:function _replaceTableSlotCell(t,e,n,o){var i=t.cell,r=t.isAnchor;return r&&o.remove(i),e?(o.insert(e,n),e):null;}},{key:"getTableIfOnlyTableInContent",value:function getTableIfOnlyTableInContent(t,e){if(!t.is("documentFragment")&&!t.is("element"))return null;if(t.is("element","table"))return t;if(1==t.childCount&&t.getChild(0).is("element","table"))return t.getChild(0);var n=e.createRangeIn(t);var _iterator494=_createForOfIteratorHelper(n.getItems()),_step494;try{for(_iterator494.s();!(_step494=_iterator494.n()).done;){var _t451=_step494.value;if(_t451.is("element","table")){var _o214=e.createRange(n.start,e.createPositionBefore(_t451));if(e.hasContent(_o214,{ignoreWhitespaces:!0}))return null;var _i203=e.createRange(e.createPositionAfter(_t451),n.end);return e.hasContent(_i203,{ignoreWhitespaces:!0})?null:_t451;}}}catch(err){_iterator494.e(err);}finally{_iterator494.f();}return null;}}],[{key:"pluginName",get:function get(){return"TableClipboard";}},{key:"requires",get:function get(){return[Uv,uv];}}]);return Wv;}(Fr);function Gv(t,e,n,o){var i=arguments.length>4&&arguments[4]!==undefined?arguments[4]:0;if(e<1)return;return YC(t,e,i).filter(function(_ref142){var t=_ref142.column,e=_ref142.cellWidth;return $v(t,e,n);}).map(function(_ref143){var t=_ref143.cell;return QC(t,e,o);});}function qv(t,e,n,o){if(e<1)return;return ZC(t,e).filter(function(_ref144){var t=_ref144.row,e=_ref144.cellHeight;return $v(t,e,n);}).map(function(_ref145){var t=_ref145.cell,n=_ref145.column;return JC(t,n,e,o);});}function $v(t,e,n){var o=t+e-1,i=n.first,r=n.last;return t>=i&&t<=r||t<i&&o>=i;}var Kv=/*#__PURE__*/function(_Fr74){_inherits(Kv,_Fr74);var _super264=_createSuper(Kv);function Kv(){_classCallCheck(this,Kv);return _super264.apply(this,arguments);}_createClass(Kv,[{key:"init",value:function init(){var _this386=this;var t=this.editor.editing.view.document;this.listenTo(t,"arrowKey",function(){return _this386._onArrowKey.apply(_this386,arguments);},{context:"table"}),this.listenTo(t,"tab",function(){return _this386._handleTabOnSelectedTable.apply(_this386,arguments);},{context:"figure"}),this.listenTo(t,"tab",function(){return _this386._handleTab.apply(_this386,arguments);},{context:["th","td"]});}},{key:"_handleTabOnSelectedTable",value:function _handleTabOnSelectedTable(t,e){var n=this.editor,o=n.model.document.selection.getSelectedElement();o&&o.is("element","table")&&(e.preventDefault(),e.stopPropagation(),t.stop(),n.model.change(function(t){t.setSelection(t.createRangeIn(o.getChild(0).getChild(0)));}));}},{key:"_handleTab",value:function _handleTab(t,e){var n=this.editor,o=this.editor.plugins.get(uv),i=this.editor.plugins.get("TableSelection"),r=n.model.document.selection,s=!e.shiftKey;var a=o.getTableCellsContainingSelection(r)[0];if(a||(a=i.getFocusCell()),!a)return;e.preventDefault(),e.stopPropagation(),t.stop();var l=a.parent,c=l.parent,d=c.getChildIndex(l),u=l.getChildIndex(a),h=0===u;if(!s&&h&&0===d)return void n.model.change(function(t){t.setSelection(t.createRangeOn(c));});var g=u===l.childCount-1,m=d===o.getRows(c)-1;if(s&&m&&g&&(n.execute("insertTableRowBelow"),d===o.getRows(c)-1))return void n.model.change(function(t){t.setSelection(t.createRangeOn(c));});var p;if(s&&g){var _t452=c.getChild(d+1);p=_t452.getChild(0);}else if(!s&&h){var _t453=c.getChild(d-1);p=_t453.getChild(_t453.childCount-1);}else p=l.getChild(u+(s?1:-1));n.model.change(function(t){t.setSelection(t.createRangeIn(p));});}},{key:"_onArrowKey",value:function _onArrowKey(t,e){var n=this.editor,o=wi(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(o,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop());}},{key:"_handleArrowKeys",value:function _handleArrowKeys(t,e){var n=this.editor.plugins.get(uv),o=this.editor.plugins.get("TableSelection"),i=this.editor.model,r=i.document.selection,s=["right","down"].includes(t),a=n.getSelectedTableCells(r);if(a.length){var _n325;return _n325=e?o.getFocusCell():s?a[a.length-1]:a[0],this._navigateFromCellInDirection(_n325,t,e),!0;}var l=r.focus.findAncestor("tableCell");if(!l)return!1;if(!r.isCollapsed)if(e){if(r.isBackward==s&&!r.containsEntireContent(l))return!1;}else{var _t454=r.getSelectedElement();if(!_t454||!i.schema.isObject(_t454))return!1;}return!!this._isSelectionAtCellEdge(r,l,s)&&(this._navigateFromCellInDirection(l,t,e),!0);}},{key:"_isSelectionAtCellEdge",value:function _isSelectionAtCellEdge(t,e,n){var o=this.editor.model,i=this.editor.model.schema,r=n?t.getLastPosition():t.getFirstPosition();if(!i.getLimitElement(r).is("element","tableCell")){return o.createPositionAt(e,n?"end":0).isTouching(r);}var s=o.createSelection(r);return o.modifySelection(s,{direction:n?"forward":"backward"}),r.isEqual(s.focus);}},{key:"_navigateFromCellInDirection",value:function _navigateFromCellInDirection(t,e){var n=arguments.length>2&&arguments[2]!==undefined?arguments[2]:!1;var o=this.editor.model,i=t.findAncestor("table"),r=_toConsumableArray(new RC(i,{includeAllSlots:!0})),_r85=r[r.length-1],s=_r85.row,a=_r85.column,l=r.find(function(_ref146){var e=_ref146.cell;return e==t;});var c=l.row,d=l.column;switch(e){case"left":d--;break;case"up":c--;break;case"right":d+=l.cellWidth;break;case"down":c+=l.cellHeight;}if(c<0||c>s||d<0&&c<=0||d>a&&c>=s)return void o.change(function(t){t.setSelection(t.createRangeOn(i));});d<0?(d=n?0:a,c--):d>a&&(d=n?a:0,c++);var u=r.find(function(t){return t.row==c&&t.column==d;}).cell,h=["right","down"].includes(e),g=this.editor.plugins.get("TableSelection");if(n&&g.isEnabled){var _e351=g.getAnchorCell()||t;g.setCellSelection(_e351,u);}else{var _t455=o.createPositionAt(u,h?0:"end");o.change(function(e){e.setSelection(_t455);});}}}],[{key:"pluginName",get:function get(){return"TableKeyboard";}},{key:"requires",get:function get(){return[Uv,uv];}}]);return Kv;}(Fr);var Yv=/*#__PURE__*/function(_yl8){_inherits(Yv,_yl8);var _super265=_createSuper(Yv);function Yv(){var _this387;_classCallCheck(this,Yv);_this387=_super265.apply(this,arguments),_this387.domEventType=["mousemove","mouseleave"];return _this387;}_createClass(Yv,[{key:"onDomEvent",value:function onDomEvent(t){this.fire(t.type,t);}}]);return Yv;}(yl);var Qv=/*#__PURE__*/function(_Fr75){_inherits(Qv,_Fr75);var _super266=_createSuper(Qv);function Qv(){_classCallCheck(this,Qv);return _super266.apply(this,arguments);}_createClass(Qv,[{key:"init",value:function init(){this.editor.editing.view.addObserver(Yv),this._enableShiftClickSelection(),this._enableMouseDragSelection();}},{key:"_enableShiftClickSelection",value:function _enableShiftClickSelection(){var _this388=this;var t=this.editor,e=t.plugins.get(uv);var n=!1;var o=t.plugins.get(Uv);this.listenTo(t.editing.view.document,"mousedown",function(i,r){var s=t.model.document.selection;if(!_this388.isEnabled||!o.isEnabled)return;if(!r.domEvent.shiftKey)return;var a=o.getAnchorCell()||e.getTableCellsContainingSelection(s)[0];if(!a)return;var l=_this388._getModelTableCellFromDomEvent(r);l&&Zv(a,l)&&(n=!0,o.setCellSelection(a,l),r.preventDefault());}),this.listenTo(t.editing.view.document,"mouseup",function(){n=!1;}),this.listenTo(t.editing.view.document,"selectionChange",function(t){n&&t.stop();},{priority:"highest"});}},{key:"_enableMouseDragSelection",value:function _enableMouseDragSelection(){var _this389=this;var t=this.editor;var e,n,o=!1,i=!1;var r=t.plugins.get(Uv);this.listenTo(t.editing.view.document,"mousedown",function(t,n){_this389.isEnabled&&r.isEnabled&&(n.domEvent.shiftKey||n.domEvent.ctrlKey||n.domEvent.altKey||(e=_this389._getModelTableCellFromDomEvent(n)));}),this.listenTo(t.editing.view.document,"mousemove",function(t,s){if(!s.domEvent.buttons)return;if(!e)return;var a=_this389._getModelTableCellFromDomEvent(s);a&&Zv(e,a)&&(n=a,o||n==e||(o=!0)),o&&(i=!0,r.setCellSelection(e,n),s.preventDefault());}),this.listenTo(t.editing.view.document,"mouseup",function(){o=!1,i=!1,e=null,n=null;}),this.listenTo(t.editing.view.document,"selectionChange",function(t){i&&t.stop();},{priority:"highest"});}},{key:"_getModelTableCellFromDomEvent",value:function _getModelTableCellFromDomEvent(t){var e=t.target,n=this.editor.editing.view.createPositionAt(e,0);return this.editor.editing.mapper.toModelPosition(n).parent.findAncestor("tableCell",{includeSelf:!0});}}],[{key:"pluginName",get:function get(){return"TableMouse";}},{key:"requires",get:function get(){return[Uv,uv];}}]);return Qv;}(Fr);function Zv(t,e){return t.parent.parent==e.parent.parent;}var Jv=n(4104),Xv={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Jv.Z,Xv);Jv.Z.locals;function ty(t){var e=t.getSelectedElement();return e&&ny(e)?e:null;}function ey(t){var e=t.getFirstPosition();if(!e)return null;var n=e.parent;for(;n;){if(n.is("element")&&ny(n))return n;n=n.parent;}return null;}function ny(t){return!!t.getCustomProperty("table")&&Kp(t);}var oy=n(4082),iy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(oy.Z,iy);oy.Z.locals;var ry=/*#__PURE__*/function(_ji31){_inherits(ry,_ji31);var _super267=_createSuper(ry);function ry(t,e){var _this390;_classCallCheck(this,ry);_this390=_super267.call(this,t),_this390.set("value",""),_this390.set("isReadOnly",!1),_this390.set("isFocused",!1),_this390.set("isEmpty",!0),_this390.options=e,_this390.focusTracker=new Di(),_this390._focusables=new zi(),_this390.dropdownView=_this390._createDropdownView(),_this390.inputView=_this390._createInputTextView(),_this390.keystrokes=new Ti(),_this390._stillTyping=!1,_this390._focusCycler=new Pr({focusables:_this390._focusables,focusTracker:_this390.focusTracker,keystrokeHandler:_this390.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this390.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color"]},children:[_this390.dropdownView,_this390.inputView]}),_this390.on("change:value",function(t,e,n){return _this390._setInputValue(n);});return _this390;}_createClass(ry,[{key:"render",value:function render(){_get(_getPrototypeOf(ry.prototype),"render",this).call(this),this.keystrokes.listenTo(this.dropdownView.panelView.element);}},{key:"focus",value:function focus(){this.inputView.focus();}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(ry.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"_createDropdownView",value:function _createDropdownView(){var t=this.locale,e=t.t,n=this.bindTemplate,o=this._createColorGrid(t),i=Tg(t),r=new ji(),s=this._createRemoveColorButton();return r.setTemplate({tag:"span",attributes:{class:["ck","ck-input-color__button__preview"],style:{backgroundColor:n.to("value")}},children:[{tag:"span",attributes:{class:["ck","ck-input-color__button__preview__no-color-indicator",n.if("value","ck-hidden",function(t){return""!=t;})]}}]}),i.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),i.buttonView.children.add(r),i.buttonView.label=e("Color picker"),i.buttonView.tooltip=!0,i.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",i.panelView.children.add(s),i.panelView.children.add(o),i.bind("isEnabled").to(this,"isReadOnly",function(t){return!t;}),this._focusables.add(s),this._focusables.add(o),this.focusTracker.add(s.element),this.focusTracker.add(o.element),i;}},{key:"_createInputTextView",value:function _createInputTextView(){var _this391=this;var t=this.locale,e=new cm(t);return e.extendTemplate({on:{blur:e.bindTemplate.to("blur")}}),e.value=this.value,e.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(e),e.on("input",function(){var t=e.element.value,n=_this391.options.colorDefinitions.find(function(e){return t===e.label;});_this391._stillTyping=!0,_this391.value=n&&n.color||t;}),e.on("blur",function(){_this391._stillTyping=!1,_this391._setInputValue(e.element.value);}),e.delegate("input").to(this),e;}},{key:"_createRemoveColorButton",value:function _createRemoveColorButton(){var _this392=this;var t=this.locale,e=t.t,n=new gr(t),o=this.options.defaultColorValue||"",i=e(o?"Restore default":"Remove color");return n.class="ck-input-color__remove-color",n.withText=!0,n.icon=dg.eraser,n.label=i,n.on("execute",function(){_this392.value=o,_this392.dropdownView.isOpen=!1,_this392.fire("input");}),n;}},{key:"_createColorGrid",value:function _createColorGrid(t){var _this393=this;var e=new vr(t,{colorDefinitions:this.options.colorDefinitions,columns:this.options.columns});return e.on("execute",function(t,e){_this393.value=e.value,_this393.dropdownView.isOpen=!1,_this393.fire("input");}),e.bind("selectedColor").to(this,"value"),e;}},{key:"_setInputValue",value:function _setInputValue(t){if(!this._stillTyping){var _e352=sy(t),_n326=this.options.colorDefinitions.find(function(t){return _e352===sy(t.color);});this.inputView.value=_n326?_n326.label:t||"";}}}]);return ry;}(ji);function sy(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ");}var ay=function ay(t){return""===t;};function ly(t){return{none:t("None"),solid:t("Solid"),dotted:t("Dotted"),dashed:t("Dashed"),double:t("Double"),groove:t("Groove"),ridge:t("Ridge"),inset:t("Inset"),outset:t("Outset")};}function cy(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".');}function dy(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".');}function uy(t){return t=t.trim(),ay(t)||Dh(t);}function hy(t){return t=t.trim(),ay(t)||by(t)||Mh(t)||Nh(t);}function gy(t){return t=t.trim(),ay(t)||by(t)||Mh(t);}function my(t,e){var n=new xi(),o=ly(t.t);var _loop11=function _loop11(_i204){var r={type:"button",model:new fm({_borderStyleValue:_i204,label:o[_i204],withText:!0})};"none"===_i204?r.model.bind("isOn").to(t,"borderStyle",function(t){return"none"===e?!t:t===_i204;}):r.model.bind("isOn").to(t,"borderStyle",function(t){return t===_i204;}),n.add(r);};for(var _i204 in o){_loop11(_i204);}return n;}function py(t){var e=t.view,n=t.icons,o=t.toolbar,i=t.labels,r=t.propertyName,s=t.nameToValue,a=t.defaultValue;var _loop12=function _loop12(){var l=new gr(e.locale);l.set({label:i[_t456],icon:n[_t456],tooltip:i[_t456]});var c=s?s(_t456):_t456;l.bind("isOn").to(e,r,function(t){var e=t;return""===t&&a&&(e=a),c===e;}),l.on("execute",function(){e[r]=c;}),o.items.add(l);};for(var _t456 in i){_loop12();}}var fy=[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}];function ky(t){return function(e,n,o){var i=new ry(e.locale,{colorDefinitions:(r=t.colorConfig,r.map(function(t){return{color:t.model,label:t.label,options:{hasBorder:t.hasBorder}};})),columns:t.columns,defaultColorValue:t.defaultColorValue});var r;return i.inputView.set({id:n,ariaDescribedById:o}),i.bind("isReadOnly").to(e,"isEnabled",function(t){return!t;}),i.bind("hasError").to(e,"errorText",function(t){return!!t;}),i.on("input",function(){e.errorText=null;}),e.bind("isEmpty","isFocused").to(i),i;};}function by(t){var e=parseFloat(t);return!Number.isNaN(e)&&t===String(e);}var wy=n(9865),Ay={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(wy.Z,Ay);wy.Z.locals;var _y=/*#__PURE__*/function(_ji32){_inherits(_y,_ji32);var _super268=_createSuper(_y);function _y(t){var _this394;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,_y);_this394=_super268.call(this,t);var n=_this394.bindTemplate;_this394.set("class",e.class||null),_this394.children=_this394.createCollection(),e.children&&e.children.forEach(function(t){return _this394.children.add(t);}),_this394.set("_role",null),_this394.set("_ariaLabelledBy",null),e.labelView&&_this394.set({_role:"group",_ariaLabelledBy:e.labelView.id}),_this394.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",n.to("class")],role:n.to("_role"),"aria-labelledby":n.to("_ariaLabelledBy")},children:_this394.children});return _this394;}return _createClass(_y);}(ji);var Cy=n(4880),vy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Cy.Z,vy);Cy.Z.locals;var yy=n(198),xy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(yy.Z,xy);yy.Z.locals;var Ey=n(5737),Dy={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Ey.Z,Dy);Ey.Z.locals;var Ty={left:dg.alignLeft,center:dg.alignCenter,right:dg.alignRight,justify:dg.alignJustify,top:dg.alignTop,middle:dg.alignMiddle,bottom:dg.alignBottom};var Sy=/*#__PURE__*/function(_ji33){_inherits(Sy,_ji33);var _super269=_createSuper(Sy);function Sy(t,e){var _this395;_classCallCheck(this,Sy);_this395=_super269.call(this,t),_this395.set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),_this395.options=e;var _this395$_createBorde=_this395._createBorderFields(),n=_this395$_createBorde.borderStyleDropdown,o=_this395$_createBorde.borderWidthInput,i=_this395$_createBorde.borderColorInput,r=_this395$_createBorde.borderRowLabel,_this395$_createBackg=_this395._createBackgroundFields(),s=_this395$_createBackg.backgroundRowLabel,a=_this395$_createBackg.backgroundInput,_this395$_createDimen=_this395._createDimensionFields(),l=_this395$_createDimen.widthInput,c=_this395$_createDimen.operatorLabel,d=_this395$_createDimen.heightInput,u=_this395$_createDimen.dimensionsLabel,_this395$_createAlign=_this395._createAlignmentFields(),h=_this395$_createAlign.horizontalAlignmentToolbar,g=_this395$_createAlign.verticalAlignmentToolbar,m=_this395$_createAlign.alignmentLabel;_this395.focusTracker=new Di(),_this395.keystrokes=new Ti(),_this395.children=_this395.createCollection(),_this395.borderStyleDropdown=n,_this395.borderWidthInput=o,_this395.borderColorInput=i,_this395.backgroundInput=a,_this395.paddingInput=_this395._createPaddingField(),_this395.widthInput=l,_this395.heightInput=d,_this395.horizontalAlignmentToolbar=h,_this395.verticalAlignmentToolbar=g;var _this395$_createActio=_this395._createActionButtons(),p=_this395$_createActio.saveButtonView,f=_this395$_createActio.cancelButtonView;_this395.saveButtonView=p,_this395.cancelButtonView=f,_this395._focusables=new zi(),_this395._focusCycler=new Pr({focusables:_this395._focusables,focusTracker:_this395.focusTracker,keystrokeHandler:_this395.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this395.children.add(new rm(t,{label:_this395.t("Cell properties")})),_this395.children.add(new _y(t,{labelView:r,children:[r,n,i,o],class:"ck-table-form__border-row"})),_this395.children.add(new _y(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),_this395.children.add(new _y(t,{children:[new _y(t,{labelView:u,children:[u,l,c,d],class:"ck-table-form__dimensions-row"}),new _y(t,{children:[_this395.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),_this395.children.add(new _y(t,{labelView:m,children:[m,h,g],class:"ck-table-cell-properties-form__alignment-row"})),_this395.children.add(new _y(t,{children:[_this395.saveButtonView,_this395.cancelButtonView],class:"ck-table-form__action-row"})),_this395.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:_this395.children});return _this395;}_createClass(Sy,[{key:"render",value:function render(){var _this396=this;_get(_getPrototypeOf(Sy.prototype),"render",this).call(this),i({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderColorInput.fieldView.dropdownView.buttonView,this.borderWidthInput,this.backgroundInput,this.backgroundInput.fieldView.dropdownView.buttonView,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(function(t){_this396._focusables.add(t),_this396.focusTracker.add(t.element);}),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Sy.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"_createBorderFields",value:function _createBorderFields(){var _this397=this;var t=this.options.defaultTableCellProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=ky({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color}),o=this.locale,i=this.t,r=new Xg(o);r.text=i("Border");var s=ly(i),a=new hm(o,mm);a.set({label:i("Style"),class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:i("Style")}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",function(t){return s[t||"none"];}),a.fieldView.on("execute",function(t){_this397.borderStyle=t.source._borderStyleValue;}),a.bind("isEmpty").to(this,"borderStyle",function(t){return!t;}),Mg(a.fieldView,my(this,e.style));var l=new hm(o,gm);l.set({label:i("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",Iy),l.fieldView.on("input",function(){_this397.borderWidth=l.fieldView.element.value;});var c=new hm(o,n);return c.set({label:i("Color"),class:"ck-table-form__border-color"}),c.fieldView.bind("value").to(this,"borderColor"),c.bind("isEnabled").to(this,"borderStyle",Iy),c.fieldView.on("input",function(){_this397.borderColor=c.fieldView.value;}),this.on("change:borderStyle",function(t,n,o,i){Iy(o)||(_this397.borderColor="",_this397.borderWidth=""),Iy(i)||(_this397.borderColor=e.color,_this397.borderWidth=e.width);}),{borderRowLabel:r,borderStyleDropdown:a,borderColorInput:c,borderWidthInput:l};}},{key:"_createBackgroundFields",value:function _createBackgroundFields(){var _this398=this;var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Background");var o=ky({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor}),i=new hm(t,o);return i.set({label:e("Color"),class:"ck-table-cell-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",function(){_this398.backgroundColor=i.fieldView.value;}),{backgroundRowLabel:n,backgroundInput:i};}},{key:"_createDimensionFields",value:function _createDimensionFields(){var _this399=this;var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Dimensions");var o=new hm(t,gm);o.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",function(){_this399.width=o.fieldView.element.value;});var i=new ji(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});var r=new hm(t,gm);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",function(){_this399.height=r.fieldView.element.value;}),{dimensionsLabel:n,widthInput:o,operatorLabel:i,heightInput:r};}},{key:"_createPaddingField",value:function _createPaddingField(){var _this400=this;var t=this.locale,e=this.t,n=new hm(t,gm);return n.set({label:e("Padding"),class:"ck-table-cell-properties-form__padding"}),n.fieldView.bind("value").to(this,"padding"),n.fieldView.on("input",function(){_this400.padding=n.fieldView.element.value;}),n;}},{key:"_createAlignmentFields",value:function _createAlignmentFields(){var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Table cell text alignment");var o=new pg(t),i="rtl"===t.contentLanguageDirection;o.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),py({view:this,icons:Ty,toolbar:o,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:function nameToValue(t){if(i){if("left"===t)return"right";if("right"===t)return"left";}return t;},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});var r=new pg(t);return r.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),py({view:this,icons:Ty,toolbar:r,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:o,verticalAlignmentToolbar:r,alignmentLabel:n};}},{key:"_createActionButtons",value:function _createActionButtons(){var t=this.locale,e=this.t,n=new gr(t),o=new gr(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:dg.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",function(){for(var _len41=arguments.length,t=new Array(_len41),_key41=0;_key41<_len41;_key41++){t[_key41]=arguments[_key41];}return t.every(function(t){return!t;});}),o.set({label:e("Cancel"),icon:dg.cancel,class:"ck-button-cancel",withText:!0}),o.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:o};}},{key:"_horizontalAlignmentLabels",get:function get(){var t=this.locale,e=this.t,n=e("Align cell text to the left"),o=e("Align cell text to the center"),i=e("Align cell text to the right"),r=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:i,center:o,left:n,justify:r}:{left:n,center:o,right:i,justify:r};}},{key:"_verticalAlignmentLabels",get:function get(){var t=this.t;return{top:t("Align cell text to the top"),middle:t("Align cell text to the middle"),bottom:t("Align cell text to the bottom")};}}]);return Sy;}(ji);function Iy(t){return"none"!==t;}var My=Rg.defaultPositions,By=[My.northArrowSouth,My.northArrowSouthWest,My.northArrowSouthEast,My.southArrowNorth,My.southArrowNorthWest,My.southArrowNorthEast,My.viewportStickyNorth];function Ny(t,e){var n=t.plugins.get("ContextualBalloon");if(ey(t.editing.view.document.selection)){var _o215;_o215="cell"===e?Py(t):zy(t),n.updatePosition(_o215);}}function zy(t){var e=t.model.document.selection.getFirstPosition().findAncestor("table"),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.mapViewToDom(n),positions:By};}function Py(t){var e=t.editing.mapper,n=t.editing.view.domConverter,o=t.model.document.selection;if(o.rangeCount>1)return{target:function target(){return function(t,e){var n=e.editing.mapper,o=e.editing.view.domConverter,i=Array.from(t).map(function(t){var e=Ly(t.start),i=n.toViewElement(e);return new Ho(o.mapViewToDom(i));});return Ho.getBoundingRect(i);}(o.getRanges(),t);},positions:By};var i=Ly(o.getFirstPosition()),r=e.toViewElement(i);return{target:n.mapViewToDom(r),positions:By};}function Ly(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell");}function Oy(t){if(!t||!F(t))return t;var e=t.top,n=t.right,o=t.bottom,i=t.left;return e==n&&n==o&&o==i?e:void 0;}function Ry(t,e){var n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:"".concat(n).concat(e);}function jy(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};var n=_objectSpread({borderStyle:"none",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:""},t);return e.includeAlignmentProperty&&!n.alignment&&(n.alignment="center"),e.includePaddingProperty&&!n.padding&&(n.padding=""),e.includeVerticalAlignmentProperty&&!n.verticalAlignment&&(n.verticalAlignment="middle"),e.includeHorizontalAlignmentProperty&&!n.horizontalAlignment&&(n.horizontalAlignment=e.isRightToLeftContent?"right":"left"),n;}var Fy={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",height:"tableCellHeight",width:"tableCellWidth",padding:"tableCellPadding",backgroundColor:"tableCellBackgroundColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"};var Vy=/*#__PURE__*/function(_Fr76){_inherits(Vy,_Fr76);var _super270=_createSuper(Vy);function Vy(t){var _this401;_classCallCheck(this,Vy);_this401=_super270.call(this,t),t.config.define("table.tableCellProperties",{borderColors:fy,backgroundColors:fy});return _this401;}_createClass(Vy,[{key:"init",value:function init(){var _this402=this;var t=this.editor,e=t.t;this._defaultTableCellProperties=jy(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection}),this._balloon=t.plugins.get(Cm),this.view=null,this._isReady=!1,t.ui.componentFactory.add("tableCellProperties",function(n){var o=new gr(n);o.set({label:e("Cell properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m11.105 18-.17 1H2.5A1.5 1.5 0 0 1 1 17.5v-15A1.5 1.5 0 0 1 2.5 1h15A1.5 1.5 0 0 1 19 2.5v9.975l-.85-.124-.15-.302V8h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5h3.105zM2 12h5V8H2v4zm10-4H8v4h4V8zM2 2v5h5V2H2zm0 16h5v-5H2v5zM13 7h5V2h-5v5zM8 2v5h4V2H8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM13 6a1 1 0 0 1 1 1v3.172a2.047 2.047 0 0 0-.293.443l-.858 1.736-1.916.28-.151.027A1.976 1.976 0 0 0 9.315 14H7a1 1 0 0 1-1-1V7a1 1 0 0 1 1-1h6zm-1 2H8v4h4V8z"/></svg>',tooltip:!0}),_this402.listenTo(o,"execute",function(){return _this402._showView();});var i=Object.values(Fy).map(function(e){return t.commands.get(e);});return o.bind("isEnabled").toMany(i,"isEnabled",function(){for(var _len42=arguments.length,t=new Array(_len42),_key42=0;_key42<_len42;_key42++){t[_key42]=arguments[_key42];}return t.some(function(t){return t;});}),o;});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Vy.prototype),"destroy",this).call(this),this.view&&this.view.destroy();}},{key:"_createPropertiesView",value:function _createPropertiesView(){var _this403=this;var e=this.editor,n=e.config.get("table.tableCellProperties"),o=br(n.borderColors),i=kr(e.locale,o),r=br(n.backgroundColors),s=kr(e.locale,r),a=new Sy(e.locale,{borderColors:i,backgroundColors:s,defaultTableCellProperties:this._defaultTableCellProperties}),l=e.t;a.render(),this.listenTo(a,"submit",function(){_this403._hideView();}),this.listenTo(a,"cancel",function(){_this403._undoStepBatch.operations.length&&e.execute("undo",_this403._undoStepBatch),_this403._hideView();}),a.keystrokes.set("Esc",function(t,e){_this403._hideView(),e();}),t({emitter:a,activator:function activator(){return _this403._isViewInBalloon;},contextElements:[this._balloon.view.element],callback:function callback(){return _this403._hideView();}});var c=cy(l),d=dy(l);return a.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle")),a.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:a.borderColorInput,commandName:"tableCellBorderColor",errorText:c,validator:uy})),a.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:a.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:gy})),a.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:a.paddingInput,commandName:"tableCellPadding",errorText:d,validator:hy})),a.on("change:width",this._getValidatedPropertyChangeCallback({viewField:a.widthInput,commandName:"tableCellWidth",errorText:d,validator:hy})),a.on("change:height",this._getValidatedPropertyChangeCallback({viewField:a.heightInput,commandName:"tableCellHeight",errorText:d,validator:hy})),a.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:a.backgroundInput,commandName:"tableCellBackgroundColor",errorText:c,validator:uy})),a.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment")),a.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment")),a;}},{key:"_fillViewFormFromCommandValues",value:function _fillViewFormFromCommandValues(){var _this404=this;var t=this.editor.commands,e=t.get("tableCellBorderStyle");Object.entries(Fy).map(function(_ref147){var _ref148=_slicedToArray(_ref147,2),e=_ref148[0],n=_ref148[1];var o=_this404._defaultTableCellProperties[e]||"";return[e,t.get(n).value||o];}).forEach(function(_ref149){var _ref150=_slicedToArray(_ref149,2),t=_ref150[0],n=_ref150[1];("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&_this404.view.set(t,n);}),this._isReady=!0;}},{key:"_showView",value:function _showView(){var _this405=this;var t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",function(){_this405._updateView();}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Py(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus();}},{key:"_hideView",value:function _hideView(){var t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus();}},{key:"_updateView",value:function _updateView(){var t=this.editor;ey(t.editing.view.document.selection)?this._isViewVisible&&Ny(t,"cell"):this._hideView();}},{key:"_isViewVisible",get:function get(){return!!this.view&&this._balloon.visibleView===this.view;}},{key:"_isViewInBalloon",get:function get(){return!!this.view&&this._balloon.hasView(this.view);}},{key:"_getPropertyChangeCallback",value:function _getPropertyChangeCallback(t){var _this406=this;return function(e,n,o){_this406._isReady&&_this406.editor.execute(t,{value:o,batch:_this406._undoStepBatch});};}},{key:"_getValidatedPropertyChangeCallback",value:function _getValidatedPropertyChangeCallback(t){var _this407=this;var e=t.commandName,n=t.viewField,o=t.validator,i=t.errorText,r=Rl(function(){n.errorText=i;},500);return function(t,i,s){r.cancel(),_this407._isReady&&(o(s)?(_this407.editor.execute(e,{value:s,batch:_this407._undoStepBatch}),n.errorText=null):r());};}}],[{key:"requires",get:function get(){return[Cm];}},{key:"pluginName",get:function get(){return"TableCellPropertiesUI";}}]);return Vy;}(Fr);var Hy=/*#__PURE__*/function(_Hr39){_inherits(Hy,_Hr39);var _super271=_createSuper(Hy);function Hy(t,e,n){var _this408;_classCallCheck(this,Hy);_this408=_super271.call(this,t),_this408.attributeName=e,_this408._defaultValue=n;return _this408;}_createClass(Hy,[{key:"refresh",value:function refresh(){var t=this.editor,e=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t.model.document.selection);this.isEnabled=!!e.length,this.value=this._getSingleValue(e);}},{key:"execute",value:function execute(){var _this409=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=t.value,n=t.batch,o=this.editor.model,i=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(o.document.selection),r=this._getValueToSet(e);o.enqueueChange(n,function(t){r?i.forEach(function(e){return t.setAttribute(_this409.attributeName,r,e);}):i.forEach(function(e){return t.removeAttribute(_this409.attributeName,e);});});}},{key:"_getAttribute",value:function _getAttribute(t){if(!t)return;var e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0;}},{key:"_getValueToSet",value:function _getValueToSet(t){if(t!==this._defaultValue)return t;}},{key:"_getSingleValue",value:function _getSingleValue(t){var _this410=this;var e=this._getAttribute(t[0]);return t.every(function(t){return _this410._getAttribute(t)===e;})?e:void 0;}}]);return Hy;}(Hr);var Uy=/*#__PURE__*/function(_Hy){_inherits(Uy,_Hy);var _super272=_createSuper(Uy);function Uy(t,e){_classCallCheck(this,Uy);return _super272.call(this,t,"tableCellWidth",e);}_createClass(Uy,[{key:"_getValueToSet",value:function _getValueToSet(t){if((t=Ry(t,"px"))!==this._defaultValue)return t;}}]);return Uy;}(Hy);var Wy=/*#__PURE__*/function(_Fr77){_inherits(Wy,_Fr77);var _super273=_createSuper(Wy);function Wy(){_classCallCheck(this,Wy);return _super273.apply(this,arguments);}_createClass(Wy,[{key:"init",value:function init(){var t=this.editor,e=jy(t.config.get("table.tableCellProperties.defaultProperties"));zC(t.model.schema,t.conversion,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:e.width}),t.commands.add("tableCellWidth",new Uy(t,e.width));}}],[{key:"pluginName",get:function get(){return"TableCellWidthEditing";}},{key:"requires",get:function get(){return[zv];}}]);return Wy;}(Fr);var Gy=/*#__PURE__*/function(_Hy2){_inherits(Gy,_Hy2);var _super274=_createSuper(Gy);function Gy(t,e){_classCallCheck(this,Gy);return _super274.call(this,t,"tableCellPadding",e);}_createClass(Gy,[{key:"_getAttribute",value:function _getAttribute(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}},{key:"_getValueToSet",value:function _getValueToSet(t){var e=Ry(t,"px");if(e!==this._defaultValue)return e;}}]);return Gy;}(Hy);var qy=/*#__PURE__*/function(_Hy3){_inherits(qy,_Hy3);var _super275=_createSuper(qy);function qy(t,e){_classCallCheck(this,qy);return _super275.call(this,t,"tableCellHeight",e);}_createClass(qy,[{key:"_getValueToSet",value:function _getValueToSet(t){var e=Ry(t,"px");if(e!==this._defaultValue)return e;}}]);return qy;}(Hy);var $y=/*#__PURE__*/function(_Hy4){_inherits($y,_Hy4);var _super276=_createSuper($y);function $y(t,e){_classCallCheck(this,$y);return _super276.call(this,t,"tableCellBackgroundColor",e);}return _createClass($y);}(Hy);var Ky=/*#__PURE__*/function(_Hy5){_inherits(Ky,_Hy5);var _super277=_createSuper(Ky);function Ky(t,e){_classCallCheck(this,Ky);return _super277.call(this,t,"tableCellVerticalAlignment",e);}return _createClass(Ky);}(Hy);var Yy=/*#__PURE__*/function(_Hy6){_inherits(Yy,_Hy6);var _super278=_createSuper(Yy);function Yy(t,e){_classCallCheck(this,Yy);return _super278.call(this,t,"tableCellHorizontalAlignment",e);}return _createClass(Yy);}(Hy);var Qy=/*#__PURE__*/function(_Hy7){_inherits(Qy,_Hy7);var _super279=_createSuper(Qy);function Qy(t,e){_classCallCheck(this,Qy);return _super279.call(this,t,"tableCellBorderStyle",e);}_createClass(Qy,[{key:"_getAttribute",value:function _getAttribute(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}}]);return Qy;}(Hy);var Zy=/*#__PURE__*/function(_Hy8){_inherits(Zy,_Hy8);var _super280=_createSuper(Zy);function Zy(t,e){_classCallCheck(this,Zy);return _super280.call(this,t,"tableCellBorderColor",e);}_createClass(Zy,[{key:"_getAttribute",value:function _getAttribute(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}}]);return Zy;}(Hy);var Jy=/*#__PURE__*/function(_Hy9){_inherits(Jy,_Hy9);var _super281=_createSuper(Jy);function Jy(t,e){_classCallCheck(this,Jy);return _super281.call(this,t,"tableCellBorderWidth",e);}_createClass(Jy,[{key:"_getAttribute",value:function _getAttribute(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}},{key:"_getValueToSet",value:function _getValueToSet(t){var e=Ry(t,"px");if(e!==this._defaultValue)return e;}}]);return Jy;}(Hy);var Xy=/^(top|middle|bottom)$/,tx=/^(left|center|right|justify)$/;var ex=/*#__PURE__*/function(_Fr78){_inherits(ex,_Fr78);var _super282=_createSuper(ex);function ex(){_classCallCheck(this,ex);return _super282.apply(this,arguments);}_createClass(ex,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableCellProperties.defaultProperties",{});var o=jy(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection});t.data.addStyleProcessorRules($h),function(t,e,n){var o={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};t.extend("tableCell",{allowAttributes:Object.values(o)}),DC(e,"td",o,n),DC(e,"th",o,n),TC(e,{modelElement:"tableCell",modelAttribute:o.style,styleName:"border-style"}),TC(e,{modelElement:"tableCell",modelAttribute:o.color,styleName:"border-color"}),TC(e,{modelElement:"tableCell",modelAttribute:o.width,styleName:"border-width"});}(e,n,{color:o.borderColor,style:o.borderStyle,width:o.borderWidth}),t.commands.add("tableCellBorderStyle",new Qy(t,o.borderStyle)),t.commands.add("tableCellBorderColor",new Zy(t,o.borderColor)),t.commands.add("tableCellBorderWidth",new Jy(t,o.borderWidth)),zC(e,n,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:o.height}),t.commands.add("tableCellHeight",new qy(t,o.height)),t.data.addStyleProcessorRules(og),zC(e,n,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:o.padding}),t.commands.add("tableCellPadding",new Gy(t,o.padding)),t.data.addStyleProcessorRules(qh),zC(e,n,{modelAttribute:"tableCellBackgroundColor",styleName:"background-color",defaultValue:o.backgroundColor}),t.commands.add("tableCellBackgroundColor",new $y(t,o.backgroundColor)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:function view(t){return{key:"style",value:{"text-align":t}};}}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":tx}},model:{key:"tableCellHorizontalAlignment",value:function value(t){var e=t.getStyle("text-align");return e===n?null:e;}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:tx}},model:{key:"tableCellHorizontalAlignment",value:function value(t){var e=t.getAttribute("align");return e===n?null:e;}}});}(e,n,o.horizontalAlignment),t.commands.add("tableCellHorizontalAlignment",new Yy(t,o.horizontalAlignment)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:function view(t){return{key:"style",value:{"vertical-align":t}};}}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":Xy}},model:{key:"tableCellVerticalAlignment",value:function value(t){var e=t.getStyle("vertical-align");return e===n?null:e;}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:Xy}},model:{key:"tableCellVerticalAlignment",value:function value(t){var e=t.getAttribute("valign");return e===n?null:e;}}});}(e,n,o.verticalAlignment),t.commands.add("tableCellVerticalAlignment",new Ky(t,o.verticalAlignment));}}],[{key:"pluginName",get:function get(){return"TableCellPropertiesEditing";}},{key:"requires",get:function get(){return[zv,Wy];}}]);return ex;}(Fr);var nx=/*#__PURE__*/function(_Hr40){_inherits(nx,_Hr40);var _super283=_createSuper(nx);function nx(t,e,n){var _this411;_classCallCheck(this,nx);_this411=_super283.call(this,t),_this411.attributeName=e,_this411._defaultValue=n;return _this411;}_createClass(nx,[{key:"refresh",value:function refresh(){var t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t,this.value=this._getValue(t);}},{key:"execute",value:function execute(){var _this412=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document.selection,o=t.value,i=t.batch,r=n.getFirstPosition().findAncestor("table"),s=this._getValueToSet(o);e.enqueueChange(i,function(t){s?t.setAttribute(_this412.attributeName,s,r):t.removeAttribute(_this412.attributeName,r);});}},{key:"_getValue",value:function _getValue(t){if(!t)return;var e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0;}},{key:"_getValueToSet",value:function _getValueToSet(t){if(t!==this._defaultValue)return t;}}]);return nx;}(Hr);var ox=/*#__PURE__*/function(_nx){_inherits(ox,_nx);var _super284=_createSuper(ox);function ox(t,e){_classCallCheck(this,ox);return _super284.call(this,t,"tableBackgroundColor",e);}return _createClass(ox);}(nx);var ix=/*#__PURE__*/function(_nx2){_inherits(ix,_nx2);var _super285=_createSuper(ix);function ix(t,e){_classCallCheck(this,ix);return _super285.call(this,t,"tableBorderColor",e);}_createClass(ix,[{key:"_getValue",value:function _getValue(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}}]);return ix;}(nx);var rx=/*#__PURE__*/function(_nx3){_inherits(rx,_nx3);var _super286=_createSuper(rx);function rx(t,e){_classCallCheck(this,rx);return _super286.call(this,t,"tableBorderStyle",e);}_createClass(rx,[{key:"_getValue",value:function _getValue(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}}]);return rx;}(nx);var sx=/*#__PURE__*/function(_nx4){_inherits(sx,_nx4);var _super287=_createSuper(sx);function sx(t,e){_classCallCheck(this,sx);return _super287.call(this,t,"tableBorderWidth",e);}_createClass(sx,[{key:"_getValue",value:function _getValue(t){if(!t)return;var e=Oy(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0;}},{key:"_getValueToSet",value:function _getValueToSet(t){var e=Ry(t,"px");if(e!==this._defaultValue)return e;}}]);return sx;}(nx);var ax=/*#__PURE__*/function(_nx5){_inherits(ax,_nx5);var _super288=_createSuper(ax);function ax(t,e){_classCallCheck(this,ax);return _super288.call(this,t,"tableWidth",e);}_createClass(ax,[{key:"_getValueToSet",value:function _getValueToSet(t){if((t=Ry(t,"px"))!==this._defaultValue)return t;}}]);return ax;}(nx);var lx=/*#__PURE__*/function(_nx6){_inherits(lx,_nx6);var _super289=_createSuper(lx);function lx(t,e){_classCallCheck(this,lx);return _super289.call(this,t,"tableHeight",e);}_createClass(lx,[{key:"_getValueToSet",value:function _getValueToSet(t){if((t=Ry(t,"px"))!==this._defaultValue)return t;}}]);return lx;}(nx);var cx=/*#__PURE__*/function(_nx7){_inherits(cx,_nx7);var _super290=_createSuper(cx);function cx(t,e){_classCallCheck(this,cx);return _super290.call(this,t,"tableAlignment",e);}return _createClass(cx);}(nx);var dx=/^(left|center|right)$/,ux=/^(left|none|right)$/;var hx=/*#__PURE__*/function(_Fr79){_inherits(hx,_Fr79);var _super291=_createSuper(hx);function hx(){_classCallCheck(this,hx);return _super291.apply(this,arguments);}_createClass(hx,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableProperties.defaultProperties",{});var o=jy(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});t.data.addStyleProcessorRules($h),function(t,e,n){var o={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};t.extend("table",{allowAttributes:Object.values(o)}),DC(e,"table",o,n),SC(e,{modelAttribute:o.color,styleName:"border-color"}),SC(e,{modelAttribute:o.style,styleName:"border-style"}),SC(e,{modelAttribute:o.width,styleName:"border-width"});}(e,n,{color:o.borderColor,style:o.borderStyle,width:o.borderWidth}),t.commands.add("tableBorderColor",new ix(t,o.borderColor)),t.commands.add("tableBorderStyle",new rx(t,o.borderStyle)),t.commands.add("tableBorderWidth",new sx(t,o.borderWidth)),function(t,e,n){t.extend("table",{allowAttributes:["tableAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:function view(t){return{key:"style",value:{float:"center"===t?"none":t}};},converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:ux}},model:{key:"tableAlignment",value:function value(t){var e=t.getStyle("float");return"none"===e&&(e="center"),e===n?null:e;}}}).attributeToAttribute({view:{attributes:{align:dx}},model:{name:"table",key:"tableAlignment",value:function value(t){var e=t.getAttribute("align");return e===n?null:e;}}});}(e,n,o.alignment),t.commands.add("tableAlignment",new cx(t,o.alignment)),gx(e,n,{modelAttribute:"tableWidth",styleName:"width",defaultValue:o.width}),t.commands.add("tableWidth",new ax(t,o.width)),gx(e,n,{modelAttribute:"tableHeight",styleName:"height",defaultValue:o.height}),t.commands.add("tableHeight",new lx(t,o.height)),t.data.addStyleProcessorRules(qh),function(t,e,n){var o=n.modelAttribute;t.extend("table",{allowAttributes:[o]}),EC(e,_objectSpread({viewElement:"table"},n)),SC(e,n);}(e,n,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:o.backgroundColor}),t.commands.add("tableBackgroundColor",new ox(t,o.backgroundColor));}}],[{key:"pluginName",get:function get(){return"TablePropertiesEditing";}},{key:"requires",get:function get(){return[zv];}}]);return hx;}(Fr);function gx(t,e,n){var o=n.modelAttribute;t.extend("table",{allowAttributes:[o]}),EC(e,_objectSpread({viewElement:/^(table|figure)$/,shouldUpcast:function shouldUpcast(t){return!("table"==t.name&&"figure"==t.parent.name);}},n)),TC(e,_objectSpread({modelElement:"table"},n));}var mx=n(9221),px={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(mx.Z,px);mx.Z.locals;var fx={left:dg.objectLeft,center:dg.objectCenter,right:dg.objectRight};var kx=/*#__PURE__*/function(_ji34){_inherits(kx,_ji34);var _super292=_createSuper(kx);function kx(t,e){var _this413;_classCallCheck(this,kx);_this413=_super292.call(this,t),_this413.set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),_this413.options=e;var _this413$_createBorde=_this413._createBorderFields(),n=_this413$_createBorde.borderStyleDropdown,o=_this413$_createBorde.borderWidthInput,i=_this413$_createBorde.borderColorInput,r=_this413$_createBorde.borderRowLabel,_this413$_createBackg=_this413._createBackgroundFields(),s=_this413$_createBackg.backgroundRowLabel,a=_this413$_createBackg.backgroundInput,_this413$_createDimen=_this413._createDimensionFields(),l=_this413$_createDimen.widthInput,c=_this413$_createDimen.operatorLabel,d=_this413$_createDimen.heightInput,u=_this413$_createDimen.dimensionsLabel,_this413$_createAlign=_this413._createAlignmentFields(),h=_this413$_createAlign.alignmentToolbar,g=_this413$_createAlign.alignmentLabel;_this413.focusTracker=new Di(),_this413.keystrokes=new Ti(),_this413.children=_this413.createCollection(),_this413.borderStyleDropdown=n,_this413.borderWidthInput=o,_this413.borderColorInput=i,_this413.backgroundInput=a,_this413.widthInput=l,_this413.heightInput=d,_this413.alignmentToolbar=h;var _this413$_createActio=_this413._createActionButtons(),m=_this413$_createActio.saveButtonView,p=_this413$_createActio.cancelButtonView;_this413.saveButtonView=m,_this413.cancelButtonView=p,_this413._focusables=new zi(),_this413._focusCycler=new Pr({focusables:_this413._focusables,focusTracker:_this413.focusTracker,keystrokeHandler:_this413.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this413.children.add(new rm(t,{label:_this413.t("Table properties")})),_this413.children.add(new _y(t,{labelView:r,children:[r,n,i,o],class:"ck-table-form__border-row"})),_this413.children.add(new _y(t,{labelView:s,children:[s,a],class:"ck-table-form__background-row"})),_this413.children.add(new _y(t,{children:[new _y(t,{labelView:u,children:[u,l,c,d],class:"ck-table-form__dimensions-row"}),new _y(t,{labelView:g,children:[g,h],class:"ck-table-properties-form__alignment-row"})]})),_this413.children.add(new _y(t,{children:[_this413.saveButtonView,_this413.cancelButtonView],class:"ck-table-form__action-row"})),_this413.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:_this413.children});return _this413;}_createClass(kx,[{key:"render",value:function render(){var _this414=this;_get(_getPrototypeOf(kx.prototype),"render",this).call(this),i({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderColorInput.fieldView.dropdownView.buttonView,this.borderWidthInput,this.backgroundInput,this.backgroundInput.fieldView.dropdownView.buttonView,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach(function(t){_this414._focusables.add(t),_this414.focusTracker.add(t.element);}),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(kx.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"_createBorderFields",value:function _createBorderFields(){var _this415=this;var t=this.options.defaultTableProperties,e={style:t.borderStyle,width:t.borderWidth,color:t.borderColor},n=ky({colorConfig:this.options.borderColors,columns:5,defaultColorValue:e.color}),o=this.locale,i=this.t,r=new Xg(o);r.text=i("Border");var s=ly(i),a=new hm(o,mm);a.set({label:i("Style"),class:"ck-table-form__border-style"}),a.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:i("Style")}),a.fieldView.buttonView.bind("label").to(this,"borderStyle",function(t){return s[t||"none"];}),a.fieldView.on("execute",function(t){_this415.borderStyle=t.source._borderStyleValue;}),a.bind("isEmpty").to(this,"borderStyle",function(t){return!t;}),Mg(a.fieldView,my(this,e.style));var l=new hm(o,gm);l.set({label:i("Width"),class:"ck-table-form__border-width"}),l.fieldView.bind("value").to(this,"borderWidth"),l.bind("isEnabled").to(this,"borderStyle",bx),l.fieldView.on("input",function(){_this415.borderWidth=l.fieldView.element.value;});var c=new hm(o,n);return c.set({label:i("Color"),class:"ck-table-form__border-color"}),c.fieldView.bind("value").to(this,"borderColor"),c.bind("isEnabled").to(this,"borderStyle",bx),c.fieldView.on("input",function(){_this415.borderColor=c.fieldView.value;}),this.on("change:borderStyle",function(t,n,o,i){bx(o)||(_this415.borderColor="",_this415.borderWidth=""),bx(i)||(_this415.borderColor=e.color,_this415.borderWidth=e.width);}),{borderRowLabel:r,borderStyleDropdown:a,borderColorInput:c,borderWidthInput:l};}},{key:"_createBackgroundFields",value:function _createBackgroundFields(){var _this416=this;var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Background");var o=ky({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor}),i=new hm(t,o);return i.set({label:e("Color"),class:"ck-table-properties-form__background"}),i.fieldView.bind("value").to(this,"backgroundColor"),i.fieldView.on("input",function(){_this416.backgroundColor=i.fieldView.value;}),{backgroundRowLabel:n,backgroundInput:i};}},{key:"_createDimensionFields",value:function _createDimensionFields(){var _this417=this;var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Dimensions");var o=new hm(t,gm);o.set({label:e("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",function(){_this417.width=o.fieldView.element.value;});var i=new ji(t);i.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});var r=new hm(t,gm);return r.set({label:e("Height"),class:"ck-table-form__dimensions-row__height"}),r.fieldView.bind("value").to(this,"height"),r.fieldView.on("input",function(){_this417.height=r.fieldView.element.value;}),{dimensionsLabel:n,widthInput:o,operatorLabel:i,heightInput:r};}},{key:"_createAlignmentFields",value:function _createAlignmentFields(){var t=this.locale,e=this.t,n=new Xg(t);n.text=e("Alignment");var o=new pg(t);return o.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),py({view:this,icons:fx,toolbar:o,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:o};}},{key:"_createActionButtons",value:function _createActionButtons(){var t=this.locale,e=this.t,n=new gr(t),o=new gr(t),i=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:dg.check,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(i,"errorText",function(){for(var _len43=arguments.length,t=new Array(_len43),_key43=0;_key43<_len43;_key43++){t[_key43]=arguments[_key43];}return t.every(function(t){return!t;});}),o.set({label:e("Cancel"),icon:dg.cancel,class:"ck-button-cancel",withText:!0}),o.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:o};}},{key:"_alignmentLabels",get:function get(){var t=this.locale,e=this.t,n=e("Align table to the left"),o=e("Center table"),i=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:i,center:o,left:n}:{left:n,center:o,right:i};}}]);return kx;}(ji);function bx(t){return"none"!==t;}var wx={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"};var Ax=/*#__PURE__*/function(_Fr80){_inherits(Ax,_Fr80);var _super293=_createSuper(Ax);function Ax(t){var _this418;_classCallCheck(this,Ax);_this418=_super293.call(this,t),_this418.view=null,t.config.define("table.tableProperties",{borderColors:fy,backgroundColors:fy});return _this418;}_createClass(Ax,[{key:"init",value:function init(){var _this419=this;var t=this.editor,e=t.t;this._defaultTableProperties=jy(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=t.plugins.get(Cm),t.ui.componentFactory.add("tableProperties",function(n){var o=new gr(n);o.set({label:e("Table properties"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8 2v5h4V2h1v5h5v1h-5v4h.021l-.172.351-1.916.28-.151.027c-.287.063-.54.182-.755.341L8 13v5H7v-5H2v-1h5V8H2V7h5V2h1zm4 6H8v4h4V8z" opacity=".6"/><path d="m15.5 11.5 1.323 2.68 2.957.43-2.14 2.085.505 2.946L15.5 18.25l-2.645 1.39.505-2.945-2.14-2.086 2.957-.43L15.5 11.5zM17 1a2 2 0 0 1 2 2v9.475l-.85-.124-.857-1.736a2.048 2.048 0 0 0-.292-.44L17 3H3v14h7.808l.402.392L10.935 19H3a2 2 0 0 1-2-2V3a2 2 0 0 1 2-2h14z"/></svg>',tooltip:!0}),_this419.listenTo(o,"execute",function(){return _this419._showView();});var i=Object.values(wx).map(function(e){return t.commands.get(e);});return o.bind("isEnabled").toMany(i,"isEnabled",function(){for(var _len44=arguments.length,t=new Array(_len44),_key44=0;_key44<_len44;_key44++){t[_key44]=arguments[_key44];}return t.some(function(t){return t;});}),o;});}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(Ax.prototype),"destroy",this).call(this),this.view&&this.view.destroy();}},{key:"_createPropertiesView",value:function _createPropertiesView(){var _this420=this;var e=this.editor,n=e.config.get("table.tableProperties"),o=br(n.borderColors),i=kr(e.locale,o),r=br(n.backgroundColors),s=kr(e.locale,r),a=new kx(e.locale,{borderColors:i,backgroundColors:s,defaultTableProperties:this._defaultTableProperties}),l=e.t;a.render(),this.listenTo(a,"submit",function(){_this420._hideView();}),this.listenTo(a,"cancel",function(){_this420._undoStepBatch.operations.length&&e.execute("undo",_this420._undoStepBatch),_this420._hideView();}),a.keystrokes.set("Esc",function(t,e){_this420._hideView(),e();}),t({emitter:a,activator:function activator(){return _this420._isViewInBalloon;},contextElements:[this._balloon.view.element],callback:function callback(){return _this420._hideView();}});var c=cy(l),d=dy(l);return a.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle")),a.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:a.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:uy})),a.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:a.borderWidthInput,commandName:"tableBorderWidth",errorText:d,validator:gy})),a.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:a.backgroundInput,commandName:"tableBackgroundColor",errorText:c,validator:uy})),a.on("change:width",this._getValidatedPropertyChangeCallback({viewField:a.widthInput,commandName:"tableWidth",errorText:d,validator:hy})),a.on("change:height",this._getValidatedPropertyChangeCallback({viewField:a.heightInput,commandName:"tableHeight",errorText:d,validator:hy})),a.on("change:alignment",this._getPropertyChangeCallback("tableAlignment")),a;}},{key:"_fillViewFormFromCommandValues",value:function _fillViewFormFromCommandValues(){var _this421=this;var t=this.editor.commands,e=t.get("tableBorderStyle");Object.entries(wx).map(function(_ref151){var _ref152=_slicedToArray(_ref151,2),e=_ref152[0],n=_ref152[1];var o=e,i=_this421._defaultTableProperties[o]||"";return[o,t.get(n).value||i];}).forEach(function(_ref153){var _ref154=_slicedToArray(_ref153,2),t=_ref154[0],n=_ref154[1];("borderColor"!==t&&"borderWidth"!==t||"none"!==e.value)&&_this421.view.set(t,n);}),this._isReady=!0;}},{key:"_showView",value:function _showView(){var _this422=this;var t=this.editor;this.view||(this.view=this._createPropertiesView()),this.listenTo(t.ui,"update",function(){_this422._updateView();}),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:zy(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus();}},{key:"_hideView",value:function _hideView(){var t=this.editor;this.stopListening(t.ui,"update"),this._isReady=!1,this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus();}},{key:"_updateView",value:function _updateView(){var t=this.editor;ey(t.editing.view.document.selection)?this._isViewVisible&&Ny(t,"table"):this._hideView();}},{key:"_isViewVisible",get:function get(){return!!this.view&&this._balloon.visibleView===this.view;}},{key:"_isViewInBalloon",get:function get(){return!!this.view&&this._balloon.hasView(this.view);}},{key:"_getPropertyChangeCallback",value:function _getPropertyChangeCallback(t){var _this423=this;return function(e,n,o){_this423._isReady&&_this423.editor.execute(t,{value:o,batch:_this423._undoStepBatch});};}},{key:"_getValidatedPropertyChangeCallback",value:function _getValidatedPropertyChangeCallback(t){var _this424=this;var e=t.commandName,n=t.viewField,o=t.validator,i=t.errorText,r=Rl(function(){n.errorText=i;},500);return function(t,i,s){r.cancel(),_this424._isReady&&(o(s)?(_this424.editor.execute(e,{value:s,batch:_this424._undoStepBatch}),n.errorText=null):r());};}}],[{key:"requires",get:function get(){return[Cm];}},{key:"pluginName",get:function get(){return"TablePropertiesUI";}}]);return Ax;}(Fr);function _x(t){t.document.registerPostFixer(function(e){return function(t,e){var n=e.document.differ.getChanges();var o=!1;var _iterator495=_createForOfIteratorHelper(n),_step495;try{for(_iterator495.s();!(_step495=_iterator495.n()).done;){var _e353=_step495.value;if("insert"!=_e353.type)continue;var _n327=_e353.position.parent;if(_n327.is("element","table")||"table"==_e353.name){var _i205="table"==_e353.name?_e353.position.nodeAfter:_n327,_r86=Array.from(_i205.getChildren()).filter(function(t){return t.is("element","caption");}),_s55=_r86.shift();if(!_s55)continue;var _iterator496=_createForOfIteratorHelper(_r86),_step496;try{for(_iterator496.s();!(_step496=_iterator496.n()).done;){var _e354=_step496.value;t.move(t.createRangeIn(_e354),_s55,"end"),t.remove(_e354);}}catch(err){_iterator496.e(err);}finally{_iterator496.f();}_s55.nextSibling&&(t.move(t.createRangeOn(_s55),_i205,"end"),o=!0),o=!!_r86.length||o;}}}catch(err){_iterator495.e(err);}finally{_iterator495.f();}return o;}(e,t);});}function Cx(t){return!!t&&t.is("element","table");}function vx(t){var _iterator497=_createForOfIteratorHelper(t.getChildren()),_step497;try{for(_iterator497.s();!(_step497=_iterator497.n()).done;){var _e355=_step497.value;if(_e355.is("element","caption"))return _e355;}}catch(err){_iterator497.e(err);}finally{_iterator497.f();}return null;}function yx(t){var e=t.parent;return"figcaption"==t.name&&e&&e.is("element","figure")&&e.hasClass("table")||"caption"==t.name&&e&&e.is("element","table")?{name:!0}:null;}function xx(t){var e=t.getSelectedElement();return e&&e.is("element","table")?e:t.getFirstPosition().findAncestor("table");}var Ex=/*#__PURE__*/function(_Hr41){_inherits(Ex,_Hr41);var _super294=_createSuper(Ex);function Ex(){_classCallCheck(this,Ex);return _super294.apply(this,arguments);}_createClass(Ex,[{key:"refresh",value:function refresh(){var t=xx(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!vx(t):this.value=!1;}},{key:"execute",value:function execute(){var _this425=this;var _ref155=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{},_ref155$focusCaptionO=_ref155.focusCaptionOnShow,t=_ref155$focusCaptionO===void 0?!1:_ref155$focusCaptionO;this.editor.model.change(function(e){_this425.value?_this425._hideTableCaption(e):_this425._showTableCaption(e,t);});}},{key:"_showTableCaption",value:function _showTableCaption(t,e){var n=this.editor.model,o=xx(n.document.selection),i=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(o)||t.createElement("caption");n.insertContent(i,o,"end"),e&&t.setSelection(i,"in");}},{key:"_hideTableCaption",value:function _hideTableCaption(t){var e=this.editor.model,n=xx(e.document.selection),o=this.editor.plugins.get("TableCaptionEditing"),i=vx(n);o._saveCaption(n,i),e.deleteContent(t.createSelection(i,"on"));}}]);return Ex;}(Hr);var Dx=/*#__PURE__*/function(_Fr81){_inherits(Dx,_Fr81);var _super295=_createSuper(Dx);function Dx(t){var _this426;_classCallCheck(this,Dx);_this426=_super295.call(this,t),_this426._savedCaptionsMap=new WeakMap();return _this426;}_createClass(Dx,[{key:"init",value:function init(){var t=this.editor,e=t.model.schema,n=t.editing.view,o=t.t;e.isRegistered("caption")?e.extend("caption",{allowIn:"table"}):e.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleTableCaption",new Ex(this.editor)),t.conversion.for("upcast").elementToElement({view:yx,model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:function view(t,_ref156){var e=_ref156.writer;return Cx(t.parent)?e.createContainerElement("figcaption"):null;}}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:function view(t,_ref157){var e=_ref157.writer;if(!Cx(t.parent))return null;var i=e.createEditableElement("figcaption");return e.setCustomProperty("tableCaption",!0,i),Zr({view:n,element:i,text:o("Enter table caption"),keepOnFocus:!0}),Xp(i,e);}}),_x(t.model);}},{key:"_getSavedCaption",value:function _getSavedCaption(t){var e=this._savedCaptionsMap.get(t);return e?vc.fromJSON(e):null;}},{key:"_saveCaption",value:function _saveCaption(t,e){this._savedCaptionsMap.set(t,e.toJSON());}}],[{key:"pluginName",get:function get(){return"TableCaptionEditing";}}]);return Dx;}(Fr);var Tx=/*#__PURE__*/function(_Fr82){_inherits(Tx,_Fr82);var _super296=_createSuper(Tx);function Tx(){_classCallCheck(this,Tx);return _super296.apply(this,arguments);}_createClass(Tx,[{key:"init",value:function init(){var _this427=this;var t=this.editor,e=t.editing.view,n=t.t;t.ui.componentFactory.add("toggleTableCaption",function(o){var i=t.commands.get("toggleTableCaption"),r=new gr(o);return r.set({icon:dg.caption,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(i,"value","isEnabled"),r.bind("label").to(i,"value",function(t){return n(t?"Toggle caption off":"Toggle caption on");}),_this427.listenTo(r,"execute",function(){if(t.execute("toggleTableCaption",{focusCaptionOnShow:!0}),i.value){var _n328=function(t){var e=xx(t);return e?vx(e):null;}(t.model.document.selection),_o216=t.editing.mapper.toViewElement(_n328);if(!_o216)return;e.scrollToTheSelection(),e.change(function(t){t.addClass("table__caption_highlighted",_o216);});}t.editing.view.focus();}),r;});}}],[{key:"pluginName",get:function get(){return"TableCaptionUI";}}]);return Tx;}(Fr);var Sx=n(9888),Ix={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Sx.Z,Ix);Sx.Z.locals;var Mx=5,Bx=40,Nx=2;function zx(t,e){return 100*Bx/Px(t,e);}function Px(t,e){var n=Lx(t,"tbody",e)||Lx(t,"thead",e);return Ox(e.editing.view.domConverter.mapViewToDom(n));}function Lx(t,e,n){return _toConsumableArray(_toConsumableArray(n.editing.mapper.toViewElement(t).getChildren()).find(function(t){return t.is("element","table");}).getChildren()).find(function(t){return t.is("element",e);});}function Ox(t){var e=Lo.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseFloat(e.width)-parseFloat(e.paddingLeft)-parseFloat(e.paddingRight)-parseFloat(e.borderLeftWidth)-parseFloat(e.borderRightWidth):parseFloat(e.width);}function Rx(t){var e=Math.pow(10,Nx),n="number"==typeof t?t:parseFloat(t);return Math.round(n*e)/e;}function jx(t){return t.map(function(t){return"number"==typeof t?t:parseFloat(t);}).filter(function(t){return!Number.isNaN(t);}).reduce(function(t,e){return t+e;},0);}function Fx(t){var e=function(t){var e=t.filter(function(t){return"auto"===t;}).length;if(0===e)return t.map(function(t){return Rx(t);});var n=jx(t),o=Math.max((100-n)/e,Mx);return t.map(function(t){return"auto"===t?o:t;}).map(function(t){return Rx(t);});}(t.map(function(t){return"auto"===t?t:parseFloat(t.replace("%",""));}));var n=jx(e);return 100!==n&&(e=e.map(function(t){return Rx(100*t/n);}).map(function(t,e,n){if(!(e===n.length-1))return t;return Rx(t+100-jx(n));})),e.map(function(t){return t+"%";});}function Vx(t){var e=Lo.window.getComputedStyle(t);return"border-box"===e.boxSizing?parseInt(e.width):parseFloat(e.width)+parseFloat(e.paddingLeft)+parseFloat(e.paddingRight)+parseFloat(e.borderWidth);}function Hx(t,e,n,o){for(var _i206=0;_i206<Math.max(n.length,t.length);_i206++){var _r87=t[_i206],_s56=n[_i206];_s56?_r87?o.setAttribute("columnWidth",_s56,_r87):o.appendElement("tableColumn",{columnWidth:_s56},e):o.remove(_r87);}}function Ux(t){if(t.is("element","tableColumnGroup"))return t;var e=t.getChildren();return Array.from(e).find(function(t){return t.is("element","tableColumnGroup");});}function Wx(t){return Array.from(Ux(t).getChildren());}function Gx(t){return Wx(t).map(function(t){return t.getAttribute("columnWidth");});}var qx=/*#__PURE__*/function(_Hr42){_inherits(qx,_Hr42);var _super297=_createSuper(qx);function qx(){_classCallCheck(this,qx);return _super297.apply(this,arguments);}_createClass(qx,[{key:"refresh",value:function refresh(){this.isEnabled=!0;}},{key:"execute",value:function execute(){var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var _this$editor=this.editor,e=_this$editor.model,n=_this$editor.plugins;var _t$table=t.table,o=_t$table===void 0?e.document.selection.getSelectedElement():_t$table,i=t.columnWidths,r=t.tableWidth;i&&(i=Array.isArray(i)?i:i.split(",")),e.change(function(t){r?t.setAttribute("tableWidth",r,o):t.removeAttribute("tableWidth",o);var e=n.get("TableColumnResizeEditing").getColumnGroupElement(o);if(!i&&!e)return;if(!i)return t.remove(e);var s=Fx(i);if(e)Array.from(e.getChildren()).forEach(function(e,n){return t.setAttribute("columnWidth",s[n],e);});else{var _e356=t.createElement("tableColumnGroup");s.forEach(function(n){return t.appendElement("tableColumn",{columnWidth:n},_e356);}),t.append(_e356,o);}});}}]);return qx;}(Hr);var $x=/*#__PURE__*/function(_Fr83){_inherits($x,_Fr83);var _super298=_createSuper($x);function $x(t){var _this428;_classCallCheck(this,$x);_this428=_super298.call(this,t),_this428._isResizingActive=!1,_this428.set("_isResizingAllowed",!0),_this428._resizingData=null,_this428._domEmitter=new(Bo())(),_this428._tableUtilsPlugin=t.plugins.get("TableUtils"),_this428.on("change:_isResizingAllowed",function(e,n,o){t.editing.view.change(function(e){e[o?"removeClass":"addClass"]("ck-column-resize_disabled",t.editing.view.document.getRoot());});});return _this428;}_createClass($x,[{key:"init",value:function init(){this._extendSchema(),this._registerPostFixer(),this._registerConverters(),this._registerResizingListeners(),this._registerResizerInserter();var t=this.editor,e=t.plugins.get("TableColumnResize");t.plugins.get("TableEditing").registerAdditionalSlot({filter:function filter(t){return t.is("element","tableColumnGroup");},positionOffset:0});var n=new qx(t);t.commands.add("resizeTableWidth",n),t.commands.add("resizeColumnWidths",n),this.bind("_isResizingAllowed").to(t,"isReadOnly",e,"isEnabled",n,"isEnabled",function(t,e,n){return!t&&e&&n;});}},{key:"destroy",value:function destroy(){this._domEmitter.stopListening(),_get(_getPrototypeOf($x.prototype),"destroy",this).call(this);}},{key:"getColumnGroupElement",value:function getColumnGroupElement(t){return Ux(t);}},{key:"getTableColumnElements",value:function getTableColumnElements(t){return Wx(t);}},{key:"getTableColumnsWidths",value:function getTableColumnsWidths(t){return Gx(t);}},{key:"_extendSchema",value:function _extendSchema(){this.editor.model.schema.extend("table",{allowAttributes:["tableWidth"]}),this.editor.model.schema.register("tableColumnGroup",{allowIn:"table",isLimit:!0}),this.editor.model.schema.register("tableColumn",{allowIn:"tableColumnGroup",allowAttributes:["columnWidth"],isLimit:!0});}},{key:"_registerPostFixer",value:function _registerPostFixer(){var _this429=this;var t=this.editor.model;function e(t,e,n){var o=n._tableUtilsPlugin.getColumns(e);if(0===o-t.length)return t;var i=t.map(function(t){return Number(t.replace("%",""));}),r=function(t,e){var n=new Set();var _iterator498=_createForOfIteratorHelper(t.getChanges()),_step498;try{for(_iterator498.s();!(_step498=_iterator498.n()).done;){var _o217=_step498.value;if("insert"==_o217.type&&_o217.position.nodeAfter&&"tableCell"==_o217.position.nodeAfter.name&&_o217.position.nodeAfter.getAncestors().includes(e))n.add(_o217.position.nodeAfter);else if("remove"==_o217.type){var _t457=_o217.position.nodeBefore||_o217.position.nodeAfter;"tableCell"==_t457.name&&_t457.getAncestors().includes(e)&&n.add(_t457);}}}catch(err){_iterator498.e(err);}finally{_iterator498.f();}return n;}(n.editor.model.document.differ,e);var _iterator499=_createForOfIteratorHelper(r),_step499;try{for(_iterator499.s();!(_step499=_iterator499.n()).done;){var _t458=_step499.value;var _r88=o-i.length;if(0===_r88)continue;var _a33=_r88>0,_l34=n._tableUtilsPlugin.getCellLocation(_t458).column;if(_a33){var _t459=zx(e,n.editor),_o218=(s=_t459,Array(_r88).fill(s));i.splice.apply(i,[_l34,0].concat(_toConsumableArray(_o218)));}else{var _t460=i.splice(_l34,Math.abs(_r88));i[_l34]+=jx(_t460);}}}catch(err){_iterator499.e(err);}finally{_iterator499.f();}var s;return i.map(function(t){return t+"%";});}t.document.registerPostFixer(function(n){var o=!1;var _iterator500=_createForOfIteratorHelper(function(t){var e=new Set();var _iterator501=_createForOfIteratorHelper(t.document.differ.getChanges()),_step501;try{for(_iterator501.s();!(_step501=_iterator501.n()).done;){var _n329=_step501.value;var _o219=null;switch(_n329.type){case"insert":_o219=["table","tableRow","tableCell"].includes(_n329.name)?_n329.position:null;break;case"remove":_o219=["tableRow","tableCell"].includes(_n329.name)?_n329.position:null;break;case"attribute":_n329.range.start.nodeAfter&&(_o219=["table","tableRow","tableCell"].includes(_n329.range.start.nodeAfter.name)?_n329.range.start:null);}if(!_o219)continue;var _i207=_o219.nodeAfter&&_o219.nodeAfter.is("element","table")?_o219.nodeAfter:_o219.findAncestor("table");var _iterator502=_createForOfIteratorHelper(t.createRangeOn(_i207).getItems()),_step502;try{for(_iterator502.s();!(_step502=_iterator502.n()).done;){var _n330=_step502.value;_n330.is("element","table")&&Ux(_n330)&&e.add(_n330);}}catch(err){_iterator502.e(err);}finally{_iterator502.f();}}}catch(err){_iterator501.e(err);}finally{_iterator501.f();}return e;}(t)),_step500;try{for(_iterator500.s();!(_step500=_iterator500.n()).done;){var _i208=_step500.value;var _t461=_this429.getColumnGroupElement(_i208),_r89=_this429.getTableColumnElements(_t461),_s57=_this429.getTableColumnsWidths(_t461);var _a34=Fx(_s57);_a34=e(_a34,_i208,_this429),gu(_s57,_a34)||(Hx(_r89,_t461,_a34,n),o=!0);}}catch(err){_iterator500.e(err);}finally{_iterator500.f();}return o;});}},{key:"_registerConverters",value:function _registerConverters(){var t=this.editor.conversion;var e;t.for("upcast").attributeToAttribute({view:{name:"figure",key:"style",value:{width:/[\s\S]+/}},model:{name:"table",key:"tableWidth",value:function value(t){return t.getStyle("width");}}}),t.for("downcast").attributeToAttribute({model:{name:"table",key:"tableWidth"},view:function view(t){return{name:"figure",key:"style",value:{width:t}};}}),t.elementToElement({model:"tableColumnGroup",view:"colgroup"}),t.elementToElement({model:"tableColumn",view:"col"}),t.for("downcast").add(function(t){return t.on("insert:table",function(t,e,n){var o=n.writer,i=e.item,r=n.mapper.toViewElement(i),s=r.is("element","table")?r:Array.from(r.getChildren()).find(function(t){return t.is("element","table");});Ux(e.item)?o.addClass("ck-table-resized",s):o.removeClass("ck-table-resized",s);},{priority:"low"});}),t.for("upcast").add((e=this._tableUtilsPlugin,function(t){return t.on("element:colgroup",function(t,n,o){var i=n.modelCursor.findAncestor("table"),r=Ux(i);if(!r)return;var s=Wx(r);var a=Gx(r);var l=e.getColumns(i);a=Array.from({length:l},function(t,e){return a[e]||"auto";}),(a.length!=s.length||a.includes("auto"))&&Hx(s,r,Fx(a),o.writer);},{priority:"low"});})),t.for("upcast").attributeToAttribute({view:{name:"col",styles:{width:/.*/}},model:{key:"columnWidth",value:function value(t){var e=t.getStyle("width");return e&&e.endsWith("%")?e:"auto";}}}),t.for("downcast").attributeToAttribute({model:{name:"tableColumn",key:"columnWidth"},view:function view(t){return{key:"style",value:{width:t}};}});}},{key:"_registerResizingListeners",value:function _registerResizingListeners(){var t=this.editor.editing.view;t.addObserver(Yv),t.document.on("mousedown",this._onMouseDownHandler.bind(this),{priority:"high"}),this._domEmitter.listenTo(Lo.window.document,"mousemove",Fm(this._onMouseMoveHandler.bind(this),50)),this._domEmitter.listenTo(Lo.window.document,"mouseup",this._onMouseUpHandler.bind(this));}},{key:"_onMouseDownHandler",value:function _onMouseDownHandler(t,e){var _this430=this;var n=e.target;if(!n.hasClass("ck-table-column-resizer"))return;if(!this._isResizingAllowed)return;e.preventDefault(),t.stop();var o=this.editor,i=function(t,e,n){var o=Array(e.getColumns(t)),i=new RC(t);var _iterator503=_createForOfIteratorHelper(i),_step503;try{for(_iterator503.s();!(_step503=_iterator503.n()).done;){var _t462=_step503.value;var _e357=n.editing.mapper.toViewElement(_t462.cell),_i209=Vx(n.editing.view.domConverter.mapViewToDom(_e357));(!o[_t462.column]||_i209<o[_t462.column])&&(o[_t462.column]=Rx(_i209));}}catch(err){_iterator503.e(err);}finally{_iterator503.f();}return o;}(o.editing.mapper.toModelElement(n.findAncestor("figure")),this._tableUtilsPlugin,o),r=n.findAncestor("table"),s=o.editing.view;Array.from(r.getChildren()).find(function(t){return t.is("element","colgroup");})||s.change(function(t){!function(t,e,n){var o=t.createContainerElement("colgroup");for(var _n331=0;_n331<e.length;_n331++){var _i210=t.createEmptyElement("col"),_r90="".concat(Rx(e[_n331]/jx(e)*100),"%");t.setStyle("width",_r90,_i210),t.insert(t.createPositionAt(o,"end"),_i210);}t.insert(t.createPositionAt(n,0),o);}(t,i,r);}),this._isResizingActive=!0,this._resizingData=this._getResizingData(e,i),s.change(function(t){return function(t,e,n){var o=n.widths.viewFigureWidth/n.widths.viewFigureParentWidth;t.addClass("ck-table-resized",e),t.addClass("ck-table-column-resizer__active",n.elements.viewResizer),t.setStyle("width","".concat(Rx(100*o),"%"),e.findAncestor("figure"));}(t,r,_this430._resizingData);});}},{key:"_onMouseMoveHandler",value:function _onMouseMoveHandler(t,e){if(!this._isResizingActive)return;if(!this._isResizingAllowed)return void this._onMouseUpHandler();var _this$_resizingData=this._resizingData,n=_this$_resizingData.columnPosition,_this$_resizingData$f=_this$_resizingData.flags,o=_this$_resizingData$f.isRightEdge,i=_this$_resizingData$f.isTableCentered,r=_this$_resizingData$f.isLtrContent,_this$_resizingData$e=_this$_resizingData.elements,s=_this$_resizingData$e.viewFigure,a=_this$_resizingData$e.viewLeftColumn,l=_this$_resizingData$e.viewRightColumn,_this$_resizingData$w=_this$_resizingData.widths,c=_this$_resizingData$w.viewFigureParentWidth,d=_this$_resizingData$w.tableWidth,u=_this$_resizingData$w.leftColumnWidth,h=_this$_resizingData$w.rightColumnWidth,g=-u+Bx,m=o?c-d:h-Bx,p=(r?1:-1)*(o&&i?2:1),f=(k=(e.clientX-n)*p,b=Math.min(g,0),w=Math.max(m,0),Rx(k<=b?b:k>=w?w:k));var k,b,w;0!==f&&this.editor.editing.view.change(function(t){var e=Rx(100*(u+f)/d);if(t.setStyle("width","".concat(e,"%"),a),o){var _e358=Rx(100*(d+f)/c);t.setStyle("width","".concat(_e358,"%"),s);}else{var _e359=Rx(100*(h-f)/d);t.setStyle("width","".concat(_e359,"%"),l);}});}},{key:"_onMouseUpHandler",value:function _onMouseUpHandler(){if(!this._isResizingActive)return;var _this$_resizingData$e2=this._resizingData.elements,t=_this$_resizingData$e2.viewResizer,e=_this$_resizingData$e2.modelTable,n=_this$_resizingData$e2.viewFigure,o=_this$_resizingData$e2.viewColgroup,i=this.editor,r=i.editing.view,s=this.getColumnGroupElement(e),a=Array.from(o.getChildren()).filter(function(t){return t.is("view:element");}),l=s?this.getTableColumnsWidths(s):null,c=a.map(function(t){return t.getStyle("width");}),d=!gu(l,c),u=e.getAttribute("tableWidth"),h=n.getStyle("width"),g=u!==h;(d||g)&&(this._isResizingAllowed?i.execute("resizeTableWidth",{table:e,tableWidth:"".concat(Rx(h),"%"),columnWidths:c}):r.change(function(t){if(l){var _iterator504=_createForOfIteratorHelper(a),_step504;try{for(_iterator504.s();!(_step504=_iterator504.n()).done;){var _e360=_step504.value;t.setStyle("width",l.shift(),_e360);}}catch(err){_iterator504.e(err);}finally{_iterator504.f();}}else t.remove(o);g&&(u?t.setStyle("width",u,n):t.removeStyle("width",n)),l||u||t.removeClass("ck-table-resized",_toConsumableArray(n.getChildren()).find(function(t){return"table"===t.name;}));})),r.change(function(e){e.removeClass("ck-table-column-resizer__active",t);}),this._isResizingActive=!1,this._resizingData=null;}},{key:"_getResizingData",value:function _getResizingData(t,e){var n=this.editor,o=t.domEvent.clientX,i=t.target,r=i.findAncestor("td")||i.findAncestor("th"),s=n.editing.mapper.toModelElement(r),a=s.findAncestor("table"),l=function(t,e){var n=e.getCellLocation(t).column;return{leftEdge:n,rightEdge:n+(t.getAttribute("colspan")||1)-1};}(s,this._tableUtilsPlugin).rightEdge,c=l===this._tableUtilsPlugin.getColumns(a)-1,d=!a.hasAttribute("tableAlignment"),u="rtl"!==n.locale.contentLanguageDirection,h=r.findAncestor("table"),g=h.findAncestor("figure"),m=_toConsumableArray(h.getChildren()).find(function(t){return t.is("element","colgroup");}),p=m.getChild(l),f=c?void 0:m.getChild(l+1);return{columnPosition:o,flags:{isRightEdge:c,isTableCentered:d,isLtrContent:u},elements:{viewResizer:i,modelTable:a,viewFigure:g,viewColgroup:m,viewLeftColumn:p,viewRightColumn:f},widths:{viewFigureParentWidth:Ox(n.editing.view.domConverter.mapViewToDom(g.parent)),viewFigureWidth:Ox(n.editing.view.domConverter.mapViewToDom(g)),tableWidth:Px(a,n),leftColumnWidth:e[l],rightColumnWidth:c?void 0:e[l+1]}};}},{key:"_registerResizerInserter",value:function _registerResizerInserter(){this.editor.conversion.for("editingDowncast").add(function(t){t.on("insert:tableCell",function(t,e,n){var o=e.item,i=n.mapper.toViewElement(o),r=n.writer;r.insert(r.createPositionAt(i,"end"),r.createUIElement("div",{class:"ck-table-column-resizer"}));},{priority:"lowest"});});}}],[{key:"requires",get:function get(){return[zv,uv];}},{key:"pluginName",get:function get(){return"TableColumnResizeEditing";}}]);return $x;}(Fr);var Kx=n(728),Yx={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(Kx.Z,Yx);Kx.Z.locals;var Qx={autoRefresh:!0},Zx=36e5;var Jx=/*#__PURE__*/function(_$19){_inherits(Jx,_$19);var _super299=_createSuper(Jx);function Jx(t){var _this431;var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};_classCallCheck(this,Jx);if(_this431=_super299.call(this),!t)throw new _("token-missing-token-url",_assertThisInitialized(_this431));e.initValue&&_this431._validateTokenValue(e.initValue),_this431.set("value",e.initValue),_this431._refresh="function"==typeof t?t:function(){return e=t,new Promise(function(t,n){var o=new XMLHttpRequest();o.open("GET",e),o.addEventListener("load",function(){var e=o.status,i=o.response;return e<200||e>299?n(new _("token-cannot-download-new-token",null)):t(i);}),o.addEventListener("error",function(){return n(new Error("Network Error"));}),o.addEventListener("abort",function(){return n(new Error("Abort"));}),o.send();});var e;},_this431._options=_objectSpread(_objectSpread({},Qx),e);return _possibleConstructorReturn(_this431);}_createClass(Jx,[{key:"init",value:function init(){var _this432=this;return new Promise(function(t,e){_this432.value?(_this432._options.autoRefresh&&_this432._registerRefreshTokenTimeout(),t(_this432)):_this432.refreshToken().then(t).catch(e);});}},{key:"refreshToken",value:function refreshToken(){var _this433=this;return this._refresh().then(function(t){return _this433._validateTokenValue(t),_this433.set("value",t),_this433._options.autoRefresh&&_this433._registerRefreshTokenTimeout(),_this433;});}},{key:"destroy",value:function destroy(){clearTimeout(this._tokenRefreshTimeout);}},{key:"_validateTokenValue",value:function _validateTokenValue(t){var e="string"==typeof t,n=!/^".*"$/.test(t),o=e&&3===t.split(".").length;if(!n||!o)throw new _("token-not-in-jwt-format",this);}},{key:"_registerRefreshTokenTimeout",value:function _registerRefreshTokenTimeout(){var _this434=this;var t=this._getTokenRefreshTimeoutTime();clearTimeout(this._tokenRefreshTimeout),this._tokenRefreshTimeout=setTimeout(function(){_this434.refreshToken();},t);}},{key:"_getTokenRefreshTimeoutTime",value:function _getTokenRefreshTimeoutTime(){try{var _this$value$split=this.value.split("."),_this$value$split2=_slicedToArray(_this$value$split,2),_t463=_this$value$split2[1],_JSON$parse=JSON.parse(atob(_t463)),_e361=_JSON$parse.exp;if(!_e361)return Zx;return Math.floor((1e3*_e361-Date.now())/2);}catch(t){return Zx;}}}],[{key:"create",value:function create(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:{};return new Jx(t,e).init();}}]);return Jx;}($());var Xx=/^data:(\S*?);base64,/;var tE=/*#__PURE__*/function(_B21){_inherits(tE,_B21);var _super300=_createSuper(tE);function tE(t,e,n){var _this435;_classCallCheck(this,tE);if(_this435=_super300.call(this),!t)throw new _("fileuploader-missing-file",null);if(!e)throw new _("fileuploader-missing-token",null);if(!n)throw new _("fileuploader-missing-api-address",null);_this435.file=function(t){if("string"!=typeof t)return!1;var e=t.match(Xx);return!(!e||!e.length);}(t)?function(t){var e=arguments.length>1&&arguments[1]!==undefined?arguments[1]:512;try{var _n332=t.match(Xx)[1],_o220=atob(t.replace(Xx,"")),_i211=[];for(var _t464=0;_t464<_o220.length;_t464+=e){var _n333=_o220.slice(_t464,_t464+e),_r91=new Array(_n333.length);for(var _t465=0;_t465<_n333.length;_t465++)_r91[_t465]=_n333.charCodeAt(_t465);_i211.push(new Uint8Array(_r91));}return new Blob(_i211,{type:_n332});}catch(t){throw new _("fileuploader-decoding-image-data-error",null);}}(t):t,_this435._token=e,_this435._apiAddress=n;return _possibleConstructorReturn(_this435);}_createClass(tE,[{key:"onProgress",value:function onProgress(t){return this.on("progress",function(e,n){return t(n);}),this;}},{key:"onError",value:function onError(t){return this.once("error",function(e,n){return t(n);}),this;}},{key:"abort",value:function abort(){this.xhr.abort();}},{key:"send",value:function send(){return this._prepareRequest(),this._attachXHRListeners(),this._sendRequest();}},{key:"_prepareRequest",value:function _prepareRequest(){var t=new XMLHttpRequest();t.open("POST",this._apiAddress),t.setRequestHeader("Authorization",this._token.value),t.responseType="json",this.xhr=t;}},{key:"_attachXHRListeners",value:function _attachXHRListeners(){var _this436=this;var t=this.xhr,e=function e(t){return function(){return _this436.fire("error",t);};};t.addEventListener("error",e("Network Error")),t.addEventListener("abort",e("Abort")),t.upload&&t.upload.addEventListener("progress",function(t){t.lengthComputable&&_this436.fire("progress",{total:t.total,uploaded:t.loaded});}),t.addEventListener("load",function(){var e=t.status,n=t.response;if(e<200||e>299)return _this436.fire("error",n.message||n.error);});}},{key:"_sendRequest",value:function _sendRequest(){var _this437=this;var t=new FormData(),e=this.xhr;return t.append("file",this.file),new Promise(function(n,o){e.addEventListener("load",function(){var t=e.status,i=e.response;return t<200||t>299?i.message?o(new _("fileuploader-uploading-data-failed",_this437,{message:i.message})):o(i.error):n(i);}),e.addEventListener("error",function(){return o(new Error("Network Error"));}),e.addEventListener("abort",function(){return o(new Error("Abort"));}),e.send(t);});}}]);return tE;}(B());var eE=/*#__PURE__*/function(){function eE(t,e){_classCallCheck(this,eE);if(!t)throw new _("uploadgateway-missing-token",null);if(!e)throw new _("uploadgateway-missing-api-address",null);this._token=t,this._apiAddress=e;}_createClass(eE,[{key:"upload",value:function upload(t){return new tE(t,this._token,this._apiAddress);}}]);return eE;}();var nE=/*#__PURE__*/function(_$r3){_inherits(nE,_$r3);var _super301=_createSuper(nE);function nE(){_classCallCheck(this,nE);return _super301.apply(this,arguments);}_createClass(nE,[{key:"createToken",value:function createToken(t,e){return new Jx(t,e);}},{key:"createUploadGateway",value:function createUploadGateway(t,e){return new eE(t,e);}}],[{key:"pluginName",get:function get(){return"CloudServicesCore";}}]);return nE;}($r);var oE=/*#__PURE__*/function(_Hr43){_inherits(oE,_Hr43);var _super302=_createSuper(oE);function oE(t,e){var _this438;_classCallCheck(this,oE);_this438=_super302.call(this,t),_this438.attributeKey=e;return _this438;}_createClass(oE,[{key:"refresh",value:function refresh(){var t=this.editor.model,e=t.document;this.value=e.selection.getAttribute(this.attributeKey),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,this.attributeKey);}},{key:"execute",value:function execute(){var _this439=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor.model,n=e.document.selection,o=t.value;e.change(function(t){if(n.isCollapsed)o?t.setSelectionAttribute(_this439.attributeKey,o):t.removeSelectionAttribute(_this439.attributeKey);else{var _i212=e.schema.getValidRanges(n.getRanges(),_this439.attributeKey);var _iterator505=_createForOfIteratorHelper(_i212),_step505;try{for(_iterator505.s();!(_step505=_iterator505.n()).done;){var _e362=_step505.value;o?t.setAttribute(_this439.attributeKey,o,_e362):t.removeAttribute(_this439.attributeKey,_e362);}}catch(err){_iterator505.e(err);}finally{_iterator505.f();}}});}}]);return oE;}(Hr);var iE=/*#__PURE__*/function(_$20){_inherits(iE,_$20);var _super303=_createSuper(iE);function iE(t){var _this440;_classCallCheck(this,iE);_this440=_super303.call(this,t),_this440.set("isEmpty",!0),_this440.on("change",function(){_this440.set("isEmpty",0===_this440.length);});return _this440;}_createClass(iE,[{key:"add",value:function add(t,e){return this.find(function(e){return e.color===t.color;})?this:_get(_getPrototypeOf(iE.prototype),"add",this).call(this,t,e);}},{key:"hasColor",value:function hasColor(t){return!!this.find(function(e){return e.color===t;});}}]);return iE;}($(xi));var rE=n(2585),sE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(rE.Z,sE);rE.Z.locals;var aE=/*#__PURE__*/function(_ji35){_inherits(aE,_ji35);var _super304=_createSuper(aE);function aE(t,_ref158){var _this441;var e=_ref158.colors,n=_ref158.columns,o=_ref158.removeButtonLabel,i=_ref158.documentColorsLabel,r=_ref158.documentColorsCount;_classCallCheck(this,aE);_this441=_super304.call(this,t),_this441.items=_this441.createCollection(),_this441.colorDefinitions=e,_this441.focusTracker=new Di(),_this441.keystrokes=new Ti(),_this441.set("selectedColor",void 0),_this441.removeButtonLabel=o,_this441.columns=n,_this441.documentColors=new iE(),_this441.documentColorsCount=r,_this441._focusables=new zi(),_this441._focusCycler=new Pr({focusables:_this441._focusables,focusTracker:_this441.focusTracker,keystrokeHandler:_this441.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),_this441._documentColorsLabel=i,_this441.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:_this441.items}),_this441.items.add(_this441._createRemoveColorButton());return _this441;}_createClass(aE,[{key:"updateDocumentColors",value:function updateDocumentColors(t,e){var n=t.document,o=this.documentColorsCount;this.documentColors.clear();var _iterator506=_createForOfIteratorHelper(n.getRootNames()),_step506;try{for(_iterator506.s();!(_step506=_iterator506.n()).done;){var _i213=_step506.value;var _r92=n.getRoot(_i213),_s58=t.createRangeIn(_r92);var _iterator507=_createForOfIteratorHelper(_s58.getItems()),_step507;try{for(_iterator507.s();!(_step507=_iterator507.n()).done;){var _t466=_step507.value;if(_t466.is("$textProxy")&&_t466.hasAttribute(e)&&(this._addColorToDocumentColors(_t466.getAttribute(e)),this.documentColors.length>=o))return;}}catch(err){_iterator507.e(err);}finally{_iterator507.f();}}}catch(err){_iterator506.e(err);}finally{_iterator506.f();}}},{key:"updateSelectedColors",value:function updateSelectedColors(){var t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n);}},{key:"render",value:function render(){_get(_getPrototypeOf(aE.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element);}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(aE.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy();}},{key:"appendGrids",value:function appendGrids(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.focusTracker.add(this.staticColorsGrid.element),this._focusables.add(this.staticColorsGrid),this.documentColorsCount)){var _t467=Fi.bind(this.documentColors,this.documentColors),_e363=new Xg(this.locale);_e363.text=this._documentColorsLabel,_e363.extendTemplate({attributes:{class:["ck","ck-color-grid__label",_t467.if("isEmpty","ck-hidden")]}}),this.items.add(_e363),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid),this.focusTracker.add(this.documentColorsGrid.element),this._focusables.add(this.documentColorsGrid);}}},{key:"focus",value:function focus(){this._focusCycler.focusFirst();}},{key:"focusLast",value:function focusLast(){this._focusCycler.focusLast();}},{key:"_createRemoveColorButton",value:function _createRemoveColorButton(){var _this442=this;var t=new gr();return t.set({withText:!0,icon:dg.eraser,label:this.removeButtonLabel}),t.class="ck-color-table__remove-color",t.on("execute",function(){_this442.fire("execute",{value:null});}),t.render(),this.focusTracker.add(t.element),this._focusables.add(t),t;}},{key:"_createStaticColorsGrid",value:function _createStaticColorsGrid(){var t=new vr(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.delegate("execute").to(this),t;}},{key:"_createDocumentColorsGrid",value:function _createDocumentColorsGrid(){var _this443=this;var t=Fi.bind(this.documentColors,this.documentColors),e=new vr(this.locale,{columns:this.columns});return e.delegate("execute").to(this),e.extendTemplate({attributes:{class:t.if("isEmpty","ck-hidden")}}),e.items.bindTo(this.documentColors).using(function(t){var e=new Ar();return e.set({color:t.color,hasBorder:t.options&&t.options.hasBorder}),t.label&&e.set({label:t.label,tooltip:!0}),e.on("execute",function(){_this443.fire("execute",{value:t.color});}),e;}),this.documentColors.on("change:isEmpty",function(t,n,o){o&&(e.selectedColor=null);}),e;}},{key:"_addColorToDocumentColors",value:function _addColorToDocumentColors(t){var e=this.colorDefinitions.find(function(e){return e.color===t;});e?this.documentColors.add(Object.assign({},e)):this.documentColors.add({color:t,label:t,options:{hasBorder:!1}});}}]);return aE;}(ji);var lE="fontSize",cE="fontFamily",dE="fontColor",uE="fontBackgroundColor";function hE(t,e){var n={model:{key:t,values:[]},view:{},upcastAlso:{}};var _iterator508=_createForOfIteratorHelper(e),_step508;try{for(_iterator508.s();!(_step508=_iterator508.n()).done;){var _t468=_step508.value;n.model.values.push(_t468.model),n.view[_t468.model]=_t468.view,_t468.upcastAlso&&(n.upcastAlso[_t468.model]=_t468.upcastAlso);}}catch(err){_iterator508.e(err);}finally{_iterator508.f();}return n;}function gE(t){return function(e){return e.getStyle(t).replace(/\s/g,"");};}function mE(t){return function(e,_ref159){var n=_ref159.writer;return n.createAttributeElement("span",{style:"".concat(t,":").concat(e)},{priority:7});};}var pE=/*#__PURE__*/function(_oE){_inherits(pE,_oE);var _super305=_createSuper(pE);function pE(t){_classCallCheck(this,pE);return _super305.call(this,t,cE);}return _createClass(pE);}(oE);function fE(t){return t.map(kE).filter(function(t){return void 0!==t;});}function kE(t){return"object"==_typeof(t)?t:"default"===t?{title:"Default",model:void 0}:"string"==typeof t?function(t){var e=t.replace(/"|'/g,"").split(","),n=e[0],o=e.map(bE).join(", ");return{title:n,model:o,view:{name:"span",styles:{"font-family":o},priority:7}};}(t):void 0;}function bE(t){return(t=t.trim()).indexOf(" ")>0&&(t="'".concat(t,"'")),t;}var wE=/*#__PURE__*/function(_Fr84){_inherits(wE,_Fr84);var _super306=_createSuper(wE);function wE(t){var _this444;_classCallCheck(this,wE);_this444=_super306.call(this,t),t.config.define(cE,{options:["default","Arial, Helvetica, sans-serif","Courier New, Courier, monospace","Georgia, serif","Lucida Sans Unicode, Lucida Grande, sans-serif","Tahoma, Geneva, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Helvetica, sans-serif","Verdana, Geneva, sans-serif"],supportAllValues:!1});return _this444;}_createClass(wE,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:cE}),t.model.schema.setAttributeProperties(cE,{isFormatting:!0,copyOnEnter:!0});var e=fE(t.config.get("fontFamily.options")).filter(function(t){return t.model;}),n=hE(cE,e);t.config.get("fontFamily.supportAllValues")?(this._prepareAnyValueConverters(),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(n),t.commands.add(cE,new pE(t));}},{key:"_prepareAnyValueConverters",value:function _prepareAnyValueConverters(){var t=this.editor;t.conversion.for("downcast").attributeToElement({model:cE,view:function view(t,_ref160){var e=_ref160.writer;return e.createAttributeElement("span",{style:"font-family:"+t},{priority:7});}}),t.conversion.for("upcast").elementToAttribute({model:{key:cE,value:function value(t){return t.getStyle("font-family");}},view:{name:"span",styles:{"font-family":/.*/}}});}},{key:"_prepareCompatibilityConverter",value:function _prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{face:/.*/}},model:{key:cE,value:function value(t){return t.getAttribute("face");}}});}}],[{key:"pluginName",get:function get(){return"FontFamilyEditing";}}]);return wE;}(Fr);var AE=/*#__PURE__*/function(_Fr85){_inherits(AE,_Fr85);var _super307=_createSuper(AE);function AE(){_classCallCheck(this,AE);return _super307.apply(this,arguments);}_createClass(AE,[{key:"init",value:function init(){var _this445=this;var t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get(cE);t.ui.componentFactory.add(cE,function(i){var r=Tg(i);return Mg(r,function(){return function(t,e){var n=new xi();var _iterator509=_createForOfIteratorHelper(t),_step509;try{var _loop13=function _loop13(){var o=_step509.value;var t={type:"button",model:new fm({commandName:cE,commandParam:o.model,label:o.title,withText:!0})};t.model.bind("isOn").to(e,"value",function(t){return t===o.model||!(!t||!o.model)&&t.split(",")[0].replace(/'/g,"").toLowerCase()===o.model.toLowerCase();}),o.view&&"string"!=typeof o.view&&o.view.styles&&t.model.set("labelStyle","font-family: ".concat(o.view.styles["font-family"])),n.add(t);};for(_iterator509.s();!(_step509=_iterator509.n()).done;){_loop13();}}catch(err){_iterator509.e(err);}finally{_iterator509.f();}return n;}(n,o);}),r.buttonView.set({label:e("Font Family"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M11.03 3h6.149a.75.75 0 1 1 0 1.5h-5.514L11.03 3zm1.27 3h4.879a.75.75 0 1 1 0 1.5h-4.244L12.3 6zm1.27 3h3.609a.75.75 0 1 1 0 1.5h-2.973L13.57 9zm-2.754 2.5L8.038 4.785 5.261 11.5h5.555zm.62 1.5H4.641l-1.666 4.028H1.312l5.789-14h1.875l5.789 14h-1.663L11.436 13z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:"ck-font-family-dropdown"}}),r.bind("isEnabled").to(o),_this445.listenTo(r,"execute",function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus();}),r;});}},{key:"_getLocalizedOptions",value:function _getLocalizedOptions(){var t=this.editor,e=t.t;return fE(t.config.get(cE).options).map(function(t){return"Default"===t.title&&(t.title=e("Default")),t;});}}],[{key:"pluginName",get:function get(){return"FontFamilyUI";}}]);return AE;}(Fr);var _E=/*#__PURE__*/function(_oE2){_inherits(_E,_oE2);var _super308=_createSuper(_E);function _E(t){_classCallCheck(this,_E);return _super308.call(this,t,lE);}return _createClass(_E);}(oE);function CE(t){return t.map(function(t){return function(t){"number"==typeof t&&(t=String(t));if("object"==_typeof(t)&&(e=t,e.title&&e.model&&e.view))return yE(t);var e;var n=function(t){return"string"==typeof t?vE[t]:vE[t.model];}(t);if(n)return yE(n);if("default"===t)return{model:void 0,title:"Default"};if(function(t){var e;if("object"==_typeof(t)){if(!t.model)throw new _("font-size-invalid-definition",null,t);e=parseFloat(t.model);}else e=parseFloat(t);return isNaN(e);}(t))return;return function(t){"string"==typeof t&&(t={title:t,model:"".concat(parseFloat(t),"px")});return t.view={name:"span",styles:{"font-size":t.model}},yE(t);}(t);}(t);}).filter(function(t){return void 0!==t;});}var vE={get tiny(){return{title:"Tiny",model:"tiny",view:{name:"span",classes:"text-tiny",priority:7}};},get small(){return{title:"Small",model:"small",view:{name:"span",classes:"text-small",priority:7}};},get big(){return{title:"Big",model:"big",view:{name:"span",classes:"text-big",priority:7}};},get huge(){return{title:"Huge",model:"huge",view:{name:"span",classes:"text-huge",priority:7}};}};function yE(t){return t.view&&"string"!=typeof t.view&&!t.view.priority&&(t.view.priority=7),t;}var xE=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"];var EE=/*#__PURE__*/function(_Fr86){_inherits(EE,_Fr86);var _super309=_createSuper(EE);function EE(t){var _this446;_classCallCheck(this,EE);_this446=_super309.call(this,t),t.config.define(lE,{options:["tiny","small","default","big","huge"],supportAllValues:!1});return _this446;}_createClass(EE,[{key:"init",value:function init(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:lE}),t.model.schema.setAttributeProperties(lE,{isFormatting:!0,copyOnEnter:!0});var e=t.config.get("fontSize.supportAllValues"),n=CE(this.editor.config.get("fontSize.options")).filter(function(t){return t.model;}),o=hE(lE,n);e?(this._prepareAnyValueConverters(o),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(o),t.commands.add(lE,new _E(t));}},{key:"_prepareAnyValueConverters",value:function _prepareAnyValueConverters(t){var e=this.editor,n=t.model.values.filter(function(t){return!Mh(String(t))&&!Nh(String(t));});if(n.length)throw new _("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:lE,view:function view(t,_ref161){var e=_ref161.writer;if(t)return e.createAttributeElement("span",{style:"font-size:"+t},{priority:7});}}),e.conversion.for("upcast").elementToAttribute({model:{key:lE,value:function value(t){return t.getStyle("font-size");}},view:{name:"span",styles:{"font-size":/.*/}}});}},{key:"_prepareCompatibilityConverter",value:function _prepareCompatibilityConverter(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:lE,value:function value(t){var e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0];var o=parseInt(e,10);n&&(o=3+o);var i=xE.length-1,r=Math.min(Math.max(o,0),i);return xE[r];}}});}}],[{key:"pluginName",get:function get(){return"FontSizeEditing";}}]);return EE;}(Fr);var DE=n(6203),TE={injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0};Li()(DE.Z,TE);DE.Z.locals;var SE=/*#__PURE__*/function(_Fr87){_inherits(SE,_Fr87);var _super310=_createSuper(SE);function SE(){_classCallCheck(this,SE);return _super310.apply(this,arguments);}_createClass(SE,[{key:"init",value:function init(){var _this447=this;var t=this.editor,e=t.t,n=this._getLocalizedOptions(),o=t.commands.get(lE);t.ui.componentFactory.add(lE,function(i){var r=Tg(i);return Mg(r,function(){return function(t,e){var n=new xi();var _iterator510=_createForOfIteratorHelper(t),_step510;try{var _loop14=function _loop14(){var o=_step510.value;var t={type:"button",model:new fm({commandName:lE,commandParam:o.model,label:o.title,class:"ck-fontsize-option",withText:!0})};o.view&&"string"!=typeof o.view&&(o.view.styles&&t.model.set("labelStyle","font-size:".concat(o.view.styles["font-size"])),o.view.classes&&t.model.set("class","".concat(t.model.class," ").concat(o.view.classes))),t.model.bind("isOn").to(e,"value",function(t){return t===o.model;}),n.add(t);};for(_iterator510.s();!(_step510=_iterator510.n()).done;){_loop14();}}catch(err){_iterator510.e(err);}finally{_iterator510.f();}return n;}(n,o);}),r.buttonView.set({label:e("Font Size"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M9.816 11.5 7.038 4.785 4.261 11.5h5.555zm.62 1.5H3.641l-1.666 4.028H.312l5.789-14h1.875l5.789 14h-1.663L10.436 13zm7.55 2.279.779-.779.707.707-2.265 2.265-2.193-2.265.707-.707.765.765V4.825c0-.042 0-.083.002-.123l-.77.77-.707-.707L17.207 2.5l2.265 2.265-.707.707-.782-.782c.002.043.003.089.003.135v10.454z"/></svg>',tooltip:!0}),r.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),r.bind("isEnabled").to(o),_this447.listenTo(r,"execute",function(e){t.execute(e.source.commandName,{value:e.source.commandParam}),t.editing.view.focus();}),r;});}},{key:"_getLocalizedOptions",value:function _getLocalizedOptions(){var t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return CE(t.config.get(lE).options).map(function(t){var e=n[t.title];return e&&e!=t.title&&(t=Object.assign({},t,{title:e})),t;});}}],[{key:"pluginName",get:function get(){return"FontSizeUI";}}]);return SE;}(Fr);var IE=/*#__PURE__*/function(_oE3){_inherits(IE,_oE3);var _super311=_createSuper(IE);function IE(t){_classCallCheck(this,IE);return _super311.call(this,t,dE);}return _createClass(IE);}(oE);var ME=/*#__PURE__*/function(_Fr88){_inherits(ME,_Fr88);var _super312=_createSuper(ME);function ME(t){var _this448;_classCallCheck(this,ME);_this448=_super312.call(this,t),t.config.define(dE,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{color:/[\s\S]+/}},model:{key:dE,value:gE("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:dE,value:function value(t){return t.getAttribute("color");}}}),t.conversion.for("downcast").attributeToElement({model:dE,view:mE("color")}),t.commands.add(dE,new IE(t)),t.model.schema.extend("$text",{allowAttributes:dE}),t.model.schema.setAttributeProperties(dE,{isFormatting:!0,copyOnEnter:!0});return _this448;}_createClass(ME,null,[{key:"pluginName",get:function get(){return"FontColorEditing";}}]);return ME;}(Fr);var BE=/*#__PURE__*/function(_Fr89){_inherits(BE,_Fr89);var _super313=_createSuper(BE);function BE(t,_ref162){var _this449;var e=_ref162.commandName,n=_ref162.componentName,o=_ref162.icon,i=_ref162.dropdownLabel;_classCallCheck(this,BE);_this449=_super313.call(this,t),_this449.commandName=e,_this449.componentName=n,_this449.icon=o,_this449.dropdownLabel=i,_this449.columns=t.config.get("".concat(_this449.componentName,".columns")),_this449.colorTableView=void 0;return _this449;}_createClass(BE,[{key:"init",value:function init(){var _this450=this;var t=this.editor,e=t.locale,n=e.t,o=t.commands.get(this.commandName),i=kr(e,br(t.config.get(this.componentName).colors)),r=t.config.get("".concat(this.componentName,".documentColors"));t.ui.componentFactory.add(this.componentName,function(e){var s=Tg(e);return _this450.colorTableView=function(_ref163){var t=_ref163.dropdownView,e=_ref163.colors,n=_ref163.columns,o=_ref163.removeButtonLabel,i=_ref163.documentColorsLabel,r=_ref163.documentColorsCount;var s=t.locale,a=new aE(s,{colors:e,columns:n,removeButtonLabel:o,documentColorsLabel:i,documentColorsCount:r});return t.colorTableView=a,t.panelView.children.add(a),a.delegate("execute").to(t,"execute"),a;}({dropdownView:s,colors:i.map(function(t){return{label:t.label,color:t.model,options:{hasBorder:t.hasBorder}};}),columns:_this450.columns,removeButtonLabel:n("Remove color"),documentColorsLabel:0!==r?n("Document colors"):"",documentColorsCount:void 0===r?_this450.columns:r}),_this450.colorTableView.bind("selectedColor").to(o,"value"),s.buttonView.set({label:_this450.dropdownLabel,icon:_this450.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(o),s.on("execute",function(e,n){t.execute(_this450.commandName,n),t.editing.view.focus();}),s.on("change:isOpen",function(e,n,o){s.colorTableView.appendGrids(),o&&(0!==r&&_this450.colorTableView.updateDocumentColors(t.model,_this450.componentName),_this450.colorTableView.updateSelectedColors());}),Ng(s,function(){return s.colorTableView.staticColorsGrid.items.find(function(t){return t.isOn;});}),s;});}}]);return BE;}(Fr);var NE=/*#__PURE__*/function(_BE){_inherits(NE,_BE);var _super314=_createSuper(NE);function NE(t){_classCallCheck(this,NE);var e=t.locale.t;return _super314.call(this,t,{commandName:dE,componentName:dE,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M12.4 10.3 10 4.5l-2.4 5.8h4.8zm.5 1.2H7.1L5.7 15H4.2l5-12h1.6l5 12h-1.5L13 11.5zm3.1 7H4a1 1 0 0 1 0-2h12a1 1 0 0 1 0 2z"/></svg>',dropdownLabel:e("Font Color")});}_createClass(NE,null,[{key:"pluginName",get:function get(){return"FontColorUI";}}]);return NE;}(BE);var zE=/*#__PURE__*/function(_oE4){_inherits(zE,_oE4);var _super315=_createSuper(zE);function zE(t){_classCallCheck(this,zE);return _super315.call(this,t,uE);}return _createClass(zE);}(oE);var PE=/*#__PURE__*/function(_Fr90){_inherits(PE,_Fr90);var _super316=_createSuper(PE);function PE(t){var _this451;_classCallCheck(this,PE);_this451=_super316.call(this,t),t.config.define(uE,{colors:[{color:"hsl(0, 0%, 0%)",label:"Black"},{color:"hsl(0, 0%, 30%)",label:"Dim grey"},{color:"hsl(0, 0%, 60%)",label:"Grey"},{color:"hsl(0, 0%, 90%)",label:"Light grey"},{color:"hsl(0, 0%, 100%)",label:"White",hasBorder:!0},{color:"hsl(0, 75%, 60%)",label:"Red"},{color:"hsl(30, 75%, 60%)",label:"Orange"},{color:"hsl(60, 75%, 60%)",label:"Yellow"},{color:"hsl(90, 75%, 60%)",label:"Light green"},{color:"hsl(120, 75%, 60%)",label:"Green"},{color:"hsl(150, 75%, 60%)",label:"Aquamarine"},{color:"hsl(180, 75%, 60%)",label:"Turquoise"},{color:"hsl(210, 75%, 60%)",label:"Light blue"},{color:"hsl(240, 75%, 60%)",label:"Blue"},{color:"hsl(270, 75%, 60%)",label:"Purple"}],columns:5}),t.data.addStyleProcessorRules(qh),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:uE,value:gE("background-color")}}),t.conversion.for("downcast").attributeToElement({model:uE,view:mE("background-color")}),t.commands.add(uE,new zE(t)),t.model.schema.extend("$text",{allowAttributes:uE}),t.model.schema.setAttributeProperties(uE,{isFormatting:!0,copyOnEnter:!0});return _this451;}_createClass(PE,null,[{key:"pluginName",get:function get(){return"FontBackgroundColorEditing";}}]);return PE;}(Fr);var LE=/*#__PURE__*/function(_BE2){_inherits(LE,_BE2);var _super317=_createSuper(LE);function LE(t){_classCallCheck(this,LE);var e=t.locale.t;return _super317.call(this,t,{commandName:uE,componentName:uE,icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M4 2h12a2 2 0 0 1 2 2v12a2 2 0 0 1-2 2H4a2 2 0 0 1-2-2V4a2 2 0 0 1 2-2zm8.38 9.262H7.62L10 5.506l2.38 5.756zm.532 1.285L14.34 16h1.426L10.804 4H9.196L4.234 16H5.66l1.428-3.453h5.824z"/></svg>',dropdownLabel:e("Font Background Color")});}_createClass(LE,null,[{key:"pluginName",get:function get(){return"FontBackgroundColorUI";}}]);return LE;}(BE);var OE=["left","right","center","justify"];function RE(t){return OE.includes(t);}function jE(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t;}function FE(t){var e=t.map(function(t){var e;return e="string"==typeof t?{name:t}:t,e;}).filter(function(t){var e=OE.includes(t.name);return e||C("alignment-config-name-not-recognized",{option:t}),e;}),n=e.filter(function(t){return Boolean(t.className);}).length;if(n&&n<e.length)throw new _("alignment-config-classnames-are-missing",{configuredOptions:t});return e.forEach(function(e,n,o){var i=o.slice(n+1);if(i.some(function(t){return t.name==e.name;}))throw new _("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className){if(i.some(function(t){return t.className==e.className;}))throw new _("alignment-config-classname-already-defined",{option:e,configuredOptions:t});}}),e;}var VE="alignment";var HE=/*#__PURE__*/function(_Hr44){_inherits(HE,_Hr44);var _super318=_createSuper(HE);function HE(){_classCallCheck(this,HE);return _super318.apply(this,arguments);}_createClass(HE,[{key:"refresh",value:function refresh(){var t=this.editor.locale,e=Ei(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=Boolean(e)&&this._canBeAligned(e),this.isEnabled&&e.hasAttribute("alignment")?this.value=e.getAttribute("alignment"):this.value="rtl"===t.contentLanguageDirection?"right":"left";}},{key:"execute",value:function execute(){var _this452=this;var t=arguments.length>0&&arguments[0]!==undefined?arguments[0]:{};var e=this.editor,n=e.locale,o=e.model,i=o.document,r=t.value;o.change(function(t){var e=Array.from(i.selection.getSelectedBlocks()).filter(function(t){return _this452._canBeAligned(t);}),o=e[0].getAttribute("alignment");jE(r,n)||o===r||!r?function(t,e){var _iterator511=_createForOfIteratorHelper(t),_step511;try{for(_iterator511.s();!(_step511=_iterator511.n()).done;){var _n334=_step511.value;e.removeAttribute(VE,_n334);}}catch(err){_iterator511.e(err);}finally{_iterator511.f();}}(e,t):function(t,e,n){var _iterator512=_createForOfIteratorHelper(t),_step512;try{for(_iterator512.s();!(_step512=_iterator512.n()).done;){var _o221=_step512.value;e.setAttribute(VE,n,_o221);}}catch(err){_iterator512.e(err);}finally{_iterator512.f();}}(e,t,r);});}},{key:"_canBeAligned",value:function _canBeAligned(t){return this.editor.model.schema.checkAttribute(t,VE);}}]);return HE;}(Hr);var UE=/*#__PURE__*/function(_Fr91){_inherits(UE,_Fr91);var _super319=_createSuper(UE);function UE(t){var _this453;_classCallCheck(this,UE);_this453=_super319.call(this,t),t.config.define("alignment",{options:OE.map(function(t){return{name:t};})});return _this453;}_createClass(UE,[{key:"init",value:function init(){var t=this.editor,e=t.locale,n=t.model.schema,o=FE(t.config.get("alignment.options")).filter(function(t){return RE(t.name)&&!jE(t.name,e);}),i=o.some(function(t){return!!t.className;});n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),i?t.conversion.attributeToAttribute(function(t){var e={};var _iterator513=_createForOfIteratorHelper(t),_step513;try{for(_iterator513.s();!(_step513=_iterator513.n()).done;){var _n335=_step513.value;e[_n335.name]={key:"class",value:_n335.className};}}catch(err){_iterator513.e(err);}finally{_iterator513.f();}var n={model:{key:"alignment",values:t.map(function(t){return t.name;})},view:e};return n;}(o)):t.conversion.for("downcast").attributeToAttribute(function(t){var e={};var _iterator514=_createForOfIteratorHelper(t),_step514;try{for(_iterator514.s();!(_step514=_iterator514.n()).done;){var _n336=_step514.value.name;e[_n336]={key:"style",value:{"text-align":_n336}};}}catch(err){_iterator514.e(err);}finally{_iterator514.f();}var n={model:{key:"alignment",values:t.map(function(t){return t.name;})},view:e};return n;}(o));var r=function(t){var e=[];var _iterator515=_createForOfIteratorHelper(t),_step515;try{for(_iterator515.s();!(_step515=_iterator515.n()).done;){var _n337=_step515.value.name;e.push({view:{key:"style",value:{"text-align":_n337}},model:{key:"alignment",value:_n337}});}}catch(err){_iterator515.e(err);}finally{_iterator515.f();}return e;}(o);var _iterator516=_createForOfIteratorHelper(r),_step516;try{for(_iterator516.s();!(_step516=_iterator516.n()).done;){var _e364=_step516.value;t.conversion.for("upcast").attributeToAttribute(_e364);}}catch(err){_iterator516.e(err);}finally{_iterator516.f();}var s=function(t){var e=[];var _iterator517=_createForOfIteratorHelper(t),_step517;try{for(_iterator517.s();!(_step517=_iterator517.n()).done;){var _n338=_step517.value.name;e.push({view:{key:"align",value:_n338},model:{key:"alignment",value:_n338}});}}catch(err){_iterator517.e(err);}finally{_iterator517.f();}return e;}(o);var _iterator518=_createForOfIteratorHelper(s),_step518;try{for(_iterator518.s();!(_step518=_iterator518.n()).done;){var _e365=_step518.value;t.conversion.for("upcast").attributeToAttribute(_e365);}}catch(err){_iterator518.e(err);}finally{_iterator518.f();}t.commands.add("alignment",new HE(t));}}],[{key:"pluginName",get:function get(){return"AlignmentEditing";}}]);return UE;}(Fr);var WE=new Map([["left",dg.alignLeft],["right",dg.alignRight],["center",dg.alignCenter],["justify",dg.alignJustify]]);var GE=/*#__PURE__*/function(_Fr92){_inherits(GE,_Fr92);var _super320=_createSuper(GE);function GE(){_classCallCheck(this,GE);return _super320.apply(this,arguments);}_createClass(GE,[{key:"localizedOptionTitles",get:function get(){var t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")};}},{key:"init",value:function init(){var _this454=this;var t=this.editor,e=t.ui.componentFactory,n=t.t,o=FE(t.config.get("alignment.options"));o.map(function(t){return t.name;}).filter(RE).forEach(function(t){return _this454._addButton(t);}),e.add("alignment",function(i){var r=Tg(i);Sg(r,function(){return o.map(function(t){return e.create("alignment:".concat(t.name));});},{enableActiveItemFocusOnDropdownOpen:!0,isVertical:!0,ariaLabel:n("Text alignment toolbar")}),r.buttonView.set({label:n("Text alignment"),tooltip:!0}),r.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var s="rtl"===i.contentLanguageDirection?WE.get("right"):WE.get("left"),a=t.commands.get("alignment");return r.buttonView.bind("icon").to(a,"value",function(t){return WE.get(t)||s;}),r.bind("isEnabled").to(a,"isEnabled"),_this454.listenTo(r,"execute",function(){t.editing.view.focus();}),r;});}},{key:"_addButton",value:function _addButton(t){var _this455=this;var e=this.editor;e.ui.componentFactory.add("alignment:".concat(t),function(n){var o=e.commands.get("alignment"),i=new gr(n);return i.set({label:_this455.localizedOptionTitles[t],icon:WE.get(t),tooltip:!0,isToggleable:!0}),i.bind("isEnabled").to(o),i.bind("isOn").to(o,"value",function(e){return e===t;}),_this455.listenTo(i,"execute",function(){e.execute("alignment",{value:t}),e.editing.view.focus();}),i;});}}],[{key:"pluginName",get:function get(){return"AlignmentUI";}}]);return GE;}(Fr);var qE=/*#__PURE__*/function(_Gm){_inherits(qE,_Gm);var _super321=_createSuper(qE);function qE(){_classCallCheck(this,qE);return _super321.apply(this,arguments);}return _createClass(qE);}(Gm);qE.builtinPlugins=[/*#__PURE__*/function(_Fr93){_inherits(_class9,_Fr93);var _super322=_createSuper(_class9);function _class9(){_classCallCheck(this,_class9);return _super322.apply(this,arguments);}_createClass(_class9,null,[{key:"requires",get:function get(){return[zf,Lp,Ff,Fp,up,Qf];}},{key:"pluginName",get:function get(){return"Essentials";}}]);return _class9;}(Fr),/*#__PURE__*/function(_Fr94){_inherits(_class10,_Fr94);var _super323=_createSuper(_class10);function _class10(){_classCallCheck(this,_class10);return _super323.apply(this,arguments);}_createClass(_class10,[{key:"init",value:function init(){var _this456=this;var t=this.editor.config.get("ckfinder.uploadUrl");t&&(this.editor.plugins.get(Jf).createUploadAdapter=function(e){return new rk(e,t,_this456.editor.t);});}}],[{key:"requires",get:function get(){return[Jf];}},{key:"pluginName",get:function get(){return"CKFinderUploadAdapter";}}]);return _class10;}(Fr),/*#__PURE__*/function(_Fr95){_inherits(_class11,_Fr95);var _super324=_createSuper(_class11);function _class11(){_classCallCheck(this,_class11);return _super324.apply(this,arguments);}_createClass(_class11,[{key:"afterInit",value:function afterInit(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats();}},{key:"_addListAutoformats",value:function _addListAutoformats(){var _this457=this;var t=this.editor.commands;t.get("bulletedList")&&sk(this.editor,this,/^[*-]\s$/,"bulletedList"),t.get("numberedList")&&sk(this.editor,this,/^1[.|)]\s$/,"numberedList"),t.get("todoList")&&sk(this.editor,this,/^\[\s?\]\s$/,"todoList"),t.get("checkTodoList")&&sk(this.editor,this,/^\[\s?x\s?\]\s$/,function(){_this457.editor.execute("todoList"),_this457.editor.execute("checkTodoList");});}},{key:"_addBasicStylesAutoformats",value:function _addBasicStylesAutoformats(){var t=this.editor.commands;if(t.get("bold")){var _t469=ck(this.editor,"bold");ak(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,_t469),ak(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,_t469);}if(t.get("italic")){var _t470=ck(this.editor,"italic");ak(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,_t470),ak(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,_t470);}if(t.get("code")){var _t471=ck(this.editor,"code");ak(this.editor,this,/(`)([^`]+)(`)$/g,_t471);}if(t.get("strikethrough")){var _t472=ck(this.editor,"strikethrough");ak(this.editor,this,/(~~)([^~]+)(~~)$/g,_t472);}}},{key:"_addHeadingAutoformats",value:function _addHeadingAutoformats(){var _this458=this;var t=this.editor.commands.get("heading");t&&t.modelElements.filter(function(t){return t.match(/^heading[1-6]$/);}).forEach(function(e){var n=e[7],o=new RegExp("^(#{".concat(n,"})\\s$"));sk(_this458.editor,_this458,o,function(){if(!t.isEnabled||t.value===e)return!1;_this458.editor.execute("heading",{value:e});});});}},{key:"_addBlockQuoteAutoformats",value:function _addBlockQuoteAutoformats(){this.editor.commands.get("blockQuote")&&sk(this.editor,this,/^>\s$/,"blockQuote");}},{key:"_addCodeBlockAutoformats",value:function _addCodeBlockAutoformats(){var _this459=this;var t=this.editor,e=t.model.document.selection;t.commands.get("codeBlock")&&sk(t,this,/^```$/,function(){if(e.getFirstPosition().parent.is("element","listItem"))return!1;_this459.editor.execute("codeBlock",{usePreviousLanguageChoice:!0});});}},{key:"_addHorizontalLineAutoformats",value:function _addHorizontalLineAutoformats(){this.editor.commands.get("horizontalLine")&&sk(this.editor,this,/^---$/,"horizontalLine");}}],[{key:"requires",get:function get(){return[dp];}},{key:"pluginName",get:function get(){return"Autoformat";}}]);return _class11;}(Fr),/*#__PURE__*/function(_Fr96){_inherits(_class12,_Fr96);var _super325=_createSuper(_class12);function _class12(){_classCallCheck(this,_class12);return _super325.apply(this,arguments);}_createClass(_class12,null,[{key:"requires",get:function get(){return[hk,mk];}},{key:"pluginName",get:function get(){return"Bold";}}]);return _class12;}(Fr),/*#__PURE__*/function(_Fr97){_inherits(_class13,_Fr97);var _super326=_createSuper(_class13);function _class13(){_classCallCheck(this,_class13);return _super326.apply(this,arguments);}_createClass(_class13,null,[{key:"requires",get:function get(){return[bk,Ak];}},{key:"pluginName",get:function get(){return"Italic";}}]);return _class13;}(Fr),/*#__PURE__*/function(_Fr98){_inherits(_class14,_Fr98);var _super327=_createSuper(_class14);function _class14(){_classCallCheck(this,_class14);return _super327.apply(this,arguments);}_createClass(_class14,null,[{key:"requires",get:function get(){return[Nk,Lk];}},{key:"pluginName",get:function get(){return"BlockQuote";}}]);return _class14;}(Fr),/*#__PURE__*/function(_Fr99){_inherits(_class15,_Fr99);var _super328=_createSuper(_class15);function _class15(){_classCallCheck(this,_class15);return _super328.apply(this,arguments);}_createClass(_class15,null,[{key:"pluginName",get:function get(){return"CKBox";}},{key:"requires",get:function get(){return[Zk,Ok];}}]);return _class15;}(Fr),/*#__PURE__*/function(_Fr100){_inherits(_class16,_Fr100);var _super329=_createSuper(_class16);function _class16(){_classCallCheck(this,_class16);return _super329.apply(this,arguments);}_createClass(_class16,null,[{key:"pluginName",get:function get(){return"CKFinder";}},{key:"requires",get:function get(){return["Link","CKFinderUploadAdapter",ib,eb];}}]);return _class16;}(Fr),/*#__PURE__*/function(_$r4){_inherits(_class17,_$r4);var _super330=_createSuper(_class17);function _class17(){var _this460;_classCallCheck(this,_class17);_this460=_super330.apply(this,arguments),_this460.token=null,_this460._tokens=new Map();return _this460;}_createClass(_class17,[{key:"init",value:function(){var _init2=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee17(){var t,_i214,_Object$entries5,_Object$entries5$_i,_e366,_n339,e;return _regeneratorRuntime().wrap(function _callee17$(_context50){while(1)switch(_context50.prev=_context50.next){case 0:t=this.context.config.get("cloudServices")||{};for(_i214=0,_Object$entries5=Object.entries(t);_i214<_Object$entries5.length;_i214++){_Object$entries5$_i=_slicedToArray(_Object$entries5[_i214],2),_e366=_Object$entries5$_i[0],_n339=_Object$entries5$_i[1];this[_e366]=_n339;}if(this.tokenUrl){_context50.next=4;break;}return _context50.abrupt("return",void(this.token=null));case 4:e=this.context.plugins.get("CloudServicesCore");_context50.next=7;return e.createToken(this.tokenUrl).init();case 7:this.token=_context50.sent;this._tokens.set(this.tokenUrl,this.token);case 9:case"end":return _context50.stop();}},_callee17,this);}));function init(){return _init2.apply(this,arguments);}return init;}()},{key:"registerTokenUrl",value:function(){var _registerTokenUrl=_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee18(t){var e,n;return _regeneratorRuntime().wrap(function _callee18$(_context51){while(1)switch(_context51.prev=_context51.next){case 0:if(!this._tokens.has(t)){_context51.next=2;break;}return _context51.abrupt("return",this.getTokenFor(t));case 2:e=this.context.plugins.get("CloudServicesCore");_context51.next=5;return e.createToken(t).init();case 5:n=_context51.sent;return _context51.abrupt("return",(this._tokens.set(t,n),n));case 7:case"end":return _context51.stop();}},_callee18,this);}));function registerTokenUrl(_x7){return _registerTokenUrl.apply(this,arguments);}return registerTokenUrl;}()},{key:"getTokenFor",value:function getTokenFor(t){var e=this._tokens.get(t);if(!e)throw new _("cloudservices-token-not-registered",this);return e;}},{key:"destroy",value:function destroy(){_get(_getPrototypeOf(_class17.prototype),"destroy",this).call(this);var _iterator519=_createForOfIteratorHelper(this._tokens.values()),_step519;try{for(_iterator519.s();!(_step519=_iterator519.n()).done;){var _t473=_step519.value;_t473.destroy();}}catch(err){_iterator519.e(err);}finally{_iterator519.f();}}}],[{key:"pluginName",get:function get(){return"CloudServices";}},{key:"requires",get:function get(){return[nE];}}]);return _class17;}($r),/*#__PURE__*/function(_Fr101){_inherits(_class18,_Fr101);var _super331=_createSuper(_class18);function _class18(){_classCallCheck(this,_class18);return _super331.apply(this,arguments);}_createClass(_class18,[{key:"init",value:function init(){var t=this.editor;t.plugins.has("ImageBlockEditing")||t.plugins.has("ImageInlineEditing")||C("easy-image-image-feature-missing",t);}}],[{key:"pluginName",get:function get(){return"EasyImage";}},{key:"requires",get:function get(){return[rb,"ImageUpload"];}}]);return _class18;}(Fr),/*#__PURE__*/function(_Fr102){_inherits(_class19,_Fr102);var _super332=_createSuper(_class19);function _class19(){_classCallCheck(this,_class19);return _super332.apply(this,arguments);}_createClass(_class19,null,[{key:"requires",get:function get(){return[mb,kb];}},{key:"pluginName",get:function get(){return"Heading";}}]);return _class19;}(Fr),/*#__PURE__*/function(_Fr103){_inherits(_class20,_Fr103);var _super333=_createSuper(_class20);function _class20(){_classCallCheck(this,_class20);return _super333.apply(this,arguments);}_createClass(_class20,null,[{key:"requires",get:function get(){return[Ub,Gb];}},{key:"pluginName",get:function get(){return"Image";}}]);return _class20;}(Fr),/*#__PURE__*/function(_Fr104){_inherits(_class21,_Fr104);var _super334=_createSuper(_class21);function _class21(){_classCallCheck(this,_class21);return _super334.apply(this,arguments);}_createClass(_class21,null,[{key:"requires",get:function get(){return[Kb,Yb];}},{key:"pluginName",get:function get(){return"ImageCaption";}}]);return _class21;}(Fr),/*#__PURE__*/function(_Fr105){_inherits(_class22,_Fr105);var _super335=_createSuper(_class22);function _class22(){_classCallCheck(this,_class22);return _super335.apply(this,arguments);}_createClass(_class22,null,[{key:"requires",get:function get(){return[Ow,Fw];}},{key:"pluginName",get:function get(){return"ImageStyle";}}]);return _class22;}(Fr),/*#__PURE__*/function(_Fr106){_inherits(_class23,_Fr106);var _super336=_createSuper(_class23);function _class23(){_classCallCheck(this,_class23);return _super336.apply(this,arguments);}_createClass(_class23,[{key:"afterInit",value:function afterInit(){var t=this.editor,e=t.t,n=t.plugins.get(wf),o=t.plugins.get("ImageUtils");var i;n.register("image",{ariaLabel:e("Image toolbar"),items:(i=t.config.get("image.toolbar")||[],i.map(function(t){return F(t)?t.name:t;})),getRelatedElement:function getRelatedElement(t){return o.getClosestSelectedImageWidget(t);}});}}],[{key:"requires",get:function get(){return[wf,_b];}},{key:"pluginName",get:function get(){return"ImageToolbar";}}]);return _class23;}(Fr),/*#__PURE__*/function(_Fr107){_inherits(_class24,_Fr107);var _super337=_createSuper(_class24);function _class24(){_classCallCheck(this,_class24);return _super337.apply(this,arguments);}_createClass(_class24,null,[{key:"pluginName",get:function get(){return"ImageUpload";}},{key:"requires",get:function get(){return[pw,ew,lw];}}]);return _class24;}(Fr),/*#__PURE__*/function(_Fr108){_inherits(_class25,_Fr108);var _super338=_createSuper(_class25);function _class25(){_classCallCheck(this,_class25);return _super338.apply(this,arguments);}_createClass(_class25,null,[{key:"pluginName",get:function get(){return"Indent";}},{key:"requires",get:function get(){return[Ww,$w];}}]);return _class25;}(Fr),/*#__PURE__*/function(_Fr109){_inherits(_class26,_Fr109);var _super339=_createSuper(_class26);function _class26(){_classCallCheck(this,_class26);return _super339.apply(this,arguments);}_createClass(_class26,null,[{key:"requires",get:function get(){return[NA,WA,$A];}},{key:"pluginName",get:function get(){return"Link";}}]);return _class26;}(Fr),/*#__PURE__*/function(_Fr110){_inherits(_class27,_Fr110);var _super340=_createSuper(_class27);function _class27(){_classCallCheck(this,_class27);return _super340.apply(this,arguments);}_createClass(_class27,null,[{key:"requires",get:function get(){return[U_,m_];}},{key:"pluginName",get:function get(){return"List";}}]);return _class27;}(Fr),/*#__PURE__*/function(_Fr111){_inherits(_class28,_Fr111);var _super341=_createSuper(_class28);function _class28(){_classCallCheck(this,_class28);return _super341.apply(this,arguments);}_createClass(_class28,null,[{key:"requires",get:function get(){return[nC,lC,iC,kf];}},{key:"pluginName",get:function get(){return"MediaEmbed";}}]);return _class28;}(Fr),db,/*#__PURE__*/function(_Fr112){_inherits(_class29,_Fr112);var _super342=_createSuper(_class29);function _class29(){_classCallCheck(this,_class29);return _super342.apply(this,arguments);}_createClass(_class29,[{key:"init",value:function init(){var t=this.editor,e=t.plugins.get("ClipboardPipeline"),n=t.editing.view.document,o=[];o.push(new vC(n)),o.push(new bC(n)),e.on("inputTransformation",function(e,i){if(i._isTransformedWithPasteFromOffice)return;if(t.model.document.selection.getFirstPosition().parent.is("element","codeBlock"))return;var r=i.dataTransfer.getData("text/html"),s=o.find(function(t){return t.isActive(r);});s&&(i._parsedData=xC(r,n.stylesProcessor),s.execute(i),i._isTransformedWithPasteFromOffice=!0);},{priority:"high"});}}],[{key:"pluginName",get:function get(){return"PasteFromOffice";}},{key:"requires",get:function get(){return[Qm];}}]);return _class29;}(Fr),/*#__PURE__*/function(_Fr113){_inherits(_class30,_Fr113);var _super343=_createSuper(_class30);function _class30(){_classCallCheck(this,_class30);return _super343.apply(this,arguments);}_createClass(_class30,[{key:"afterInit",value:function afterInit(){var t=this.editor;t.plugins.has("ImageBlockEditing")&&t.model.schema.extend("imageBlock",{allowAttributes:["sources"]}),t.plugins.has("ImageInlineEditing")&&t.model.schema.extend("imageInline",{allowAttributes:["sources"]}),this._setupConversion(),this._setupImageUploadEditingIntegration();}},{key:"_setupConversion",value:function _setupConversion(){var t=this.editor,e=t.conversion,n=t.plugins.get("ImageUtils");e.for("upcast").add(function(t){var e=["srcset","media","type","sizes"],n=function n(_n341,o,i){var r=o.viewItem;if(!i.consumable.test(r,{name:!0}))return;var s=new Map();var _iterator520=_createForOfIteratorHelper(r.getChildren()),_step520;try{for(_iterator520.s();!(_step520=_iterator520.n()).done;){var _t475=_step520.value;if(_t475.is("element","source")){var _n340={};for(var _i215=0,_e367=e;_i215<_e367.length;_i215++){var _o222=_e367[_i215];_t475.hasAttribute(_o222)&&i.consumable.test(_t475,{attributes:_o222})&&(_n340[_o222]=_t475.getAttribute(_o222));}Object.keys(_n340).length&&s.set(_t475,_n340);}}}catch(err){_iterator520.e(err);}finally{_iterator520.f();}var a=t.findViewImgElement(r);if(!a)return;var l=o.modelCursor.parent;if(!l.is("element","imageBlock")){var _t474=i.convertItem(a,o.modelCursor);o.modelRange=_t474.modelRange,o.modelCursor=_t474.modelCursor,l=Ei(_t474.modelRange.getItems());}i.consumable.consume(r,{name:!0});var _iterator521=_createForOfIteratorHelper(s),_step521;try{for(_iterator521.s();!(_step521=_iterator521.n()).done;){var _step521$value=_slicedToArray(_step521.value,2),_t476=_step521$value[0],_e368=_step521$value[1];i.consumable.consume(_t476,{attributes:Object.keys(_e368)});}}catch(err){_iterator521.e(err);}finally{_iterator521.f();}s.size&&i.writer.setAttribute("sources",Array.from(s.values()),l),i.convertChildren(r,l);};return function(t){t.on("element:picture",n);};}(n)),e.for("downcast").add(function(t){var e=function e(_e371,n,o){if(!o.consumable.consume(n.item,_e371.name))return;var i=o.writer,r=o.mapper.toViewElement(n.item),s=t.findViewImgElement(r),a=n.attributeNewValue;if(a&&a.length){var _t477=i.createContainerElement("picture",null,a.map(function(t){return i.createEmptyElement("source",t);})),_e369=[];var _n342=s.parent;for(;_n342&&_n342.is("attributeElement");){var _t478=_n342.parent;i.unwrap(i.createRangeOn(s),_n342),_e369.unshift(_n342),_n342=_t478;}i.insert(i.createPositionBefore(s),_t477),i.move(i.createRangeOn(s),i.createPositionAt(_t477,"end"));for(var _i216=0,_e370=_e369;_i216<_e370.length;_i216++){var _n343=_e370[_i216];i.wrap(i.createRangeOn(_t477),_n343);}}else if(s.parent.is("element","picture")){var _t479=s.parent;i.move(i.createRangeOn(s),i.createPositionBefore(_t479)),i.remove(_t479);}};return function(t){t.on("attribute:sources:imageBlock",e),t.on("attribute:sources:imageInline",e);};}(n));}},{key:"_setupImageUploadEditingIntegration",value:function _setupImageUploadEditingIntegration(){var t=this.editor;if(!t.plugins.has("ImageUploadEditing"))return;var e=t.plugins.get("ImageUploadEditing");this.listenTo(e,"uploadComplete",function(e,_ref164){var n=_ref164.imageElement,o=_ref164.data;var i=o.sources;i&&t.model.change(function(t){t.setAttributes({sources:i},n);});});}}],[{key:"requires",get:function get(){return[Rb,_b];}},{key:"pluginName",get:function get(){return"PictureEditing";}}]);return _class30;}(Fr),/*#__PURE__*/function(_Fr114){_inherits(_class31,_Fr114);var _super344=_createSuper(_class31);function _class31(){_classCallCheck(this,_class31);return _super344.apply(this,arguments);}_createClass(_class31,null,[{key:"requires",get:function get(){return[zv,jv,Uv,Qv,Kv,Wv,kf];}},{key:"pluginName",get:function get(){return"Table";}}]);return _class31;}(Fr),/*#__PURE__*/function(_Fr115){_inherits(_class32,_Fr115);var _super345=_createSuper(_class32);function _class32(){_classCallCheck(this,_class32);return _super345.apply(this,arguments);}_createClass(_class32,null,[{key:"requires",get:function get(){return[$x,Wy];}},{key:"pluginName",get:function get(){return"TableColumnResize";}}]);return _class32;}(Fr),/*#__PURE__*/function(_Fr116){_inherits(_class33,_Fr116);var _super346=_createSuper(_class33);function _class33(){_classCallCheck(this,_class33);return _super346.apply(this,arguments);}_createClass(_class33,null,[{key:"pluginName",get:function get(){return"TableCaption";}},{key:"requires",get:function get(){return[Dx,Tx];}}]);return _class33;}(Fr),/*#__PURE__*/function(_Fr117){_inherits(_class34,_Fr117);var _super347=_createSuper(_class34);function _class34(){_classCallCheck(this,_class34);return _super347.apply(this,arguments);}_createClass(_class34,[{key:"afterInit",value:function afterInit(){var t=this.editor,e=t.t,n=t.plugins.get(wf),o=t.config.get("table.contentToolbar"),i=t.config.get("table.tableToolbar");o&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:o,getRelatedElement:ey}),i&&n.register("table",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:ty});}}],[{key:"requires",get:function get(){return[wf];}},{key:"pluginName",get:function get(){return"TableToolbar";}}]);return _class34;}(Fr),/*#__PURE__*/function(_Fr118){_inherits(_class35,_Fr118);var _super348=_createSuper(_class35);function _class35(){_classCallCheck(this,_class35);return _super348.apply(this,arguments);}_createClass(_class35,null,[{key:"pluginName",get:function get(){return"TableCellProperties";}},{key:"requires",get:function get(){return[ex,Vy];}}]);return _class35;}(Fr),/*#__PURE__*/function(_Fr119){_inherits(_class36,_Fr119);var _super349=_createSuper(_class36);function _class36(){_classCallCheck(this,_class36);return _super349.apply(this,arguments);}_createClass(_class36,null,[{key:"pluginName",get:function get(){return"TableProperties";}},{key:"requires",get:function get(){return[hx,Ax];}}]);return _class36;}(Fr),/*#__PURE__*/function(_Fr120){_inherits(_class37,_Fr120);var _super350=_createSuper(_class37);function _class37(t){var _this461;_classCallCheck(this,_class37);_this461=_super350.call(this,t),t.config.define("typing",{transformations:{include:yp}});return _this461;}_createClass(_class37,[{key:"init",value:function init(){var _this462=this;var t=this.editor.model.document.selection;t.on("change:range",function(){_this462.isEnabled=!t.anchor.parent.is("element","codeBlock");}),this._enableTransformationWatchers();}},{key:"_enableTransformationWatchers",value:function _enableTransformationWatchers(){var t=this.editor,e=t.model,n=t.plugins.get("Delete"),o=function(t){var e=t.extra||[],n=t.remove||[],o=function o(t){return!n.includes(t);};return function(t){var e=new Set();var _iterator522=_createForOfIteratorHelper(t),_step522;try{for(_iterator522.s();!(_step522=_iterator522.n()).done;){var _n344=_step522.value;if("string"==typeof _n344&&vp[_n344]){var _iterator523=_createForOfIteratorHelper(vp[_n344]),_step523;try{for(_iterator523.s();!(_step523=_iterator523.n()).done;){var _t480=_step523.value;e.add(_t480);}}catch(err){_iterator523.e(err);}finally{_iterator523.f();}}else e.add(_n344);}}catch(err){_iterator522.e(err);}finally{_iterator522.f();}return Array.from(e);}(t.include.concat(e).filter(o)).filter(o).map(function(t){return"string"==typeof t&&Cp[t]?Cp[t]:t;}).filter(function(t){return"object"==_typeof(t);}).map(function(t){return{from:xp(t.from),to:Ep(t.to)};});}(t.config.get("typing.transformations")),i=new gp(t.model,function(t){var _iterator524=_createForOfIteratorHelper(o),_step524;try{for(_iterator524.s();!(_step524=_iterator524.n()).done;){var _e372=_step524.value;if(_e372.from.test(t))return{normalizedTransformation:_e372};}}catch(err){_iterator524.e(err);}finally{_iterator524.f();}});i.on("matched:data",function(t,o){if(!o.batch.isTyping)return;var _o$normalizedTransfor=o.normalizedTransformation,i=_o$normalizedTransfor.from,r=_o$normalizedTransfor.to,s=i.exec(o.text),a=r(s.slice(1)),l=o.range;var c=s.index;e.enqueueChange(function(t){for(var _n345=1;_n345<s.length;_n345++){var _o223=s[_n345],_i217=a[_n345-1];if(null==_i217){c+=_o223.length;continue;}var _r93=l.start.getShiftedBy(c),_d9=e.createRange(_r93,_r93.getShiftedBy(_o223.length)),_u7=Dp(_r93);e.insertContent(t.createText(_i217,_u7),_d9),c+=_i217.length;}e.enqueueChange(function(){n.requestUndoOnBackspace();});});}),i.bind("isEnabled").to(this);}}],[{key:"requires",get:function get(){return["Delete","Input"];}},{key:"pluginName",get:function get(){return"TextTransformation";}}]);return _class37;}(Fr),/*#__PURE__*/function(_Fr121){_inherits(_class38,_Fr121);var _super351=_createSuper(_class38);function _class38(){_classCallCheck(this,_class38);return _super351.apply(this,arguments);}_createClass(_class38,null,[{key:"requires",get:function get(){return[Ek,Tk];}},{key:"pluginName",get:function get(){return"Underline";}}]);return _class38;}(Fr),/*#__PURE__*/function(_Fr122){_inherits(_class39,_Fr122);var _super352=_createSuper(_class39);function _class39(){_classCallCheck(this,_class39);return _super352.apply(this,arguments);}_createClass(_class39,null,[{key:"requires",get:function get(){return[Ck,yk];}},{key:"pluginName",get:function get(){return"Strikethrough";}}]);return _class39;}(Fr),/*#__PURE__*/function(_Fr123){_inherits(_class40,_Fr123);var _super353=_createSuper(_class40);function _class40(){_classCallCheck(this,_class40);return _super353.apply(this,arguments);}_createClass(_class40,[{key:"normalizeSizeOptions",value:function normalizeSizeOptions(t){return CE(t);}}],[{key:"requires",get:function get(){return[EE,SE];}},{key:"pluginName",get:function get(){return"FontSize";}}]);return _class40;}(Fr),/*#__PURE__*/function(_Fr124){_inherits(_class41,_Fr124);var _super354=_createSuper(_class41);function _class41(){_classCallCheck(this,_class41);return _super354.apply(this,arguments);}_createClass(_class41,null,[{key:"requires",get:function get(){return[wE,AE];}},{key:"pluginName",get:function get(){return"FontFamily";}}]);return _class41;}(Fr),/*#__PURE__*/function(_Fr125){_inherits(_class42,_Fr125);var _super355=_createSuper(_class42);function _class42(){_classCallCheck(this,_class42);return _super355.apply(this,arguments);}_createClass(_class42,null,[{key:"requires",get:function get(){return[ME,NE];}},{key:"pluginName",get:function get(){return"FontColor";}}]);return _class42;}(Fr),/*#__PURE__*/function(_Fr126){_inherits(_class43,_Fr126);var _super356=_createSuper(_class43);function _class43(){_classCallCheck(this,_class43);return _super356.apply(this,arguments);}_createClass(_class43,null,[{key:"requires",get:function get(){return[PE,LE];}},{key:"pluginName",get:function get(){return"FontBackgroundColor";}}]);return _class43;}(Fr),/*#__PURE__*/function(_Fr127){_inherits(_class44,_Fr127);var _super357=_createSuper(_class44);function _class44(){_classCallCheck(this,_class44);return _super357.apply(this,arguments);}_createClass(_class44,null,[{key:"requires",get:function get(){return[UE,GE];}},{key:"pluginName",get:function get(){return"Alignment";}}]);return _class44;}(Fr)],qE.defaultConfig={toolbar:{items:["undo","redo","|","heading","|","bold","italic","|","link","uploadImage","insertTable","blockQuote","mediaEmbed","|","bulletedList","numberedList","outdent","indent"]},image:{toolbar:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells"]},language:"en"};var $E={ClassicEditor:qE,Plugin:Fr,ButtonView:gr,toWidget:Yp,viewToModelPositionOutsideModelElement:function viewToModelPositionOutsideModelElement(t,e){return function(n,o){var i=o.mapper,r=o.viewPosition,s=i.findMappedViewAncestor(r);if(!e(s))return;var a=i.toModelElement(s);o.modelPosition=t.createPositionAt(a,r.isAtStart?"before":"after");};},addListToDropdown:Mg,createDropdown:Tg,Widget:kf,Command:Hr,Collection:xi,Model:fm,View:ji,LabeledFieldView:hm,createLabeledInputText:gm,icons:dg,submitHandler:i,ContextualBalloon:Cm,clickOutsideHandler:t,LabelView:Xg};}(),o=o.default;}();});
|