PageSourceSearch

https://icsanpietroincariano.edu.it/js/2923.js?id=df2075d343867f42

js icsanpietroincariano.edu.it collected 2026-10-08 04:57:51 UTC 1,847,893 bytes, 2 lines download raw bytes

1/*! For license information please see 2923.js.LICENSE.txt */
2((self||this).webpackChunk=(self||this).webpackChunk||[]).push([[2923,8120],{11272:(t,e,n)=>{var i;window,t.exports=(i=n(70538),function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=3)}([function(t,e){t.exports=i},function(t,e,n){"use strict";(function(t){var n="object"==typeof t&&t&&t.Object===Object&&t;e.a=n}).call(this,n(2))},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},a=n(1),s="object"==typeof self&&self&&self.Object===Object&&self,l=a.a||s||Function("return this")(),c=function(){return l.Date.now()},u=/\s/,d=function(t){for(var e=t.length;e--&&u.test(t.charAt(e)););return e},h=/^\s+/,f=function(t){return t?t.slice(0,d(t)+1).replace(h,""):t},p=l.Symbol,m=Object.prototype,g=m.hasOwnProperty,v=m.toString,k=p?p.toStringTag:void 0,b=function(t){var e=g.call(t,k),n=t[k];try{t[k]=void 0;var i=!0}catch(t){}var o=v.call(t);return i&&(e?t[k]=n:delete t[k]),o},y=Object.prototype.toString,_=function(t){return y.call(t)},w=p?p.toStringTag:void 0,C=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":w&&w in Object(t)?b(t):_(t)},A=function(t){return null!=t&&"object"==typeof t},x=function(t){return"symbol"==typeof t||A(t)&&"[object Symbol]"==C(t)},D=/^[-+]0x[0-9a-f]+$/i,E=/^0b[01]+$/i,S=/^0o[0-7]+$/i,T=parseInt,I=function(t){if("number"==typeof t)return t;if(x(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=f(t);var n=E.test(t);return n||S.test(t)?T(t.slice(2),n?2:8):D.test(t)?NaN:+t},z=Math.max,M=Math.min,B=function(t,e,n){var i,o,a,s,l,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function m(e){var n=i,r=o;return i=o=void 0,d=e,s=t.apply(r,n)}function g(t){return d=t,l=setTimeout(k,e),h?m(t):s}function v(t){var n=t-u;return void 0===u||n>=e||n<0||f&&t-d>=a}function k(){var t=c();if(v(t))return b(t);l=setTimeout(k,function(t){var n=e-(t-u);return f?M(n,a-(t-d)):n}(t))}function b(t){return l=void 0,p&&i?m(t):(i=o=void 0,s)}function y(){var t=c(),n=v(t);if(i=arguments,o=this,u=t,n){if(void 0===l)return g(u);
2if(f)return clearTimeout(l),l=setTimeout(k,e),m(u)}return void 0===l&&(l=setTimeout(k,e)),s}return e=I(e)||0,r(n)&&(h=!!n.leading,a=(f="maxWait"in n)?z(I(n.maxWait)||0,e):a,p="trailing"in n?!!n.trailing:p),y.cancel=function(){void 0!==l&&clearTimeout(l),d=0,i=u=o=l=void 0},y.flush=function(){return void 0===l?s:b(c())},y},P={name:"ckeditor",created(){const{CKEDITOR_VERSION:t}=window;if(t){const[e]=t.split(".").map(Number);e<34&&console.warn("The <CKEditor> component requires using CKEditor 5 in version 34 or higher.")}else console.warn('Cannot find the "CKEDITOR_VERSION" in the "window" scope.')},render(t){return t(this.tagName)},props:{editor:{type:Function,default:null},value:{type:String,default:""},config:{type:Object,default:()=>({})},tagName:{type:String,default:"div"},disabled:{type:Boolean,default:!1}},data:()=>({$_instance:null,$_lastEditorData:{type:String,default:""}}),mounted(){const t=Object.assign({},this.config);this.value&&(t.initialData=this.value),this.editor.create(this.$el,t).then((e=>{this.$_instance=e,this.$_setUpEditorEvents(),this.value!==t.initialData&&e.setData(this.value),this.disabled&&e.enableReadOnlyMode("Integration Sample"),this.$emit("ready",e)})).catch((t=>{console.error(t)}))},beforeDestroy(){this.$_instance&&(this.$_instance.destroy(),this.$_instance=null),this.$emit("destroy",this.$_instance)},watch:{value(t){this.$_instance&&t!==this.$_lastEditorData&&this.$_instance.setData(t)},disabled(t){t?this.$_instance.enableReadOnlyMode("Integration Sample"):this.$_instance.disableReadOnlyMode("Integration Sample")}},methods:{$_setUpEditorEvents(){const t=this.$_instance,e=B((e=>{const n=this.$_lastEditorData=t.getData();this.$emit("input",n,e,t)}),300,{leading:!0});t.model.document.on("change:data",e),t.editing.view.document.on("focus",(e=>{this.$emit("focus",e,t)})),t.editing.view.document.on("blur",(e=>{this.$emit("blur",e,t)}))}}};const L=o.a?o.a.version:i.version,[N]=L.split(".").map((t=>parseInt(t,10)));if(2!==N)throw new Error("The CKEditor plugin works only with Vue 2.x. For more information, please refer to https://ckeditor.com/docs/ckeditor5/latest/builds/guides/integration/frameworks/vuejs-v2.html");const O={install(t){t.component("ckeditor",P)},component:P};e.default=O}]).default)},18043:(t,e,n)=>{var i,o,r,a,s;function l(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function c(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?l(Object(n),!0).forEach((function(e){u(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function u(t,e,n){return(e=T(e))in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function d(){return d="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(t,e,n){var i=function(t,e){for(;!Object.prototype.hasOwnProperty.call(t,e)&&null!==(t=D(t)););return t}(t,e);if(i){var o=Object.getOwnPropertyDescriptor(i,e);return o.get?o.get.call(arguments.length<3?t:n):o.value}},d.apply(this,arguments)}function h(){"use strict";h=function(){return t};var t={},e=Object.prototype,n=e.hasOwnProperty,i=Object.defineProperty||function(t,e,n){t[e]=n.value},o="function"==typeof Symbol?Symbol:{},r=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{l({},"")}catch(t){l=function(t,e,n){return t[e]=n}}function c(t,e,n,o){var r=e&&e.prototype instanceof f?e:f,a=Object.create(r.prototype),s=new D(o||[]);return i(a,"_invoke",{value:w(t,n,s)}),a}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=c;var d={};function f(){}function p(){}function m(){}var g={};l(g,r,(function(){return this}));var v=Object.getPrototypeOf,k=v&&v(v(E([])));k&&k!==e&&n.call(k,r)&&(g=k);var b=m.prototype=f.prototype=Object.create(g);function y(t){["next","throw","return"].forEach((function(e){l(t,e,(function(t){return this._invoke(e,t)}))}))}function _(t,e){function o(i,r,a,s){var l=u(t[i],t,r);if("throw"!==l.type){var c=l.arg,d=c.value;return d&&"object"==z(d)&&n.call(d,"__await")?e.resolve(d.__await).then((function(t){o("next",t,a,s)}),(function(t){o("throw",t,a,s)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return o("throw",t,a,s)}))}s(l.arg)}var r;i(this,"_invoke",{value:function(t,n){function i(){return new e((function(e,i){o(t,n,e,i)}
vendor: 4,916 bytes, line 2
2))}return r=r?r.then(i,i):i()}})}function w(t,e,n){var i="suspendedStart";return function(o,r){if("executing"===i)throw new Error("Generator is already running");if("completed"===i){if("throw"===o)throw r;return S()}for(n.method=o,n.arg=r;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===d)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if("suspendedStart"===i)throw i="completed",n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i="executing";var l=u(t,e,n);if("normal"===l.type){if(i=n.done?"completed":"suspendedYield",l.arg===d)continue;return{value:l.arg,done:n.done}}"throw"===l.type&&(i="completed",n.method="throw",n.arg=l.arg)}}}function C(t,e){var n=e.method,i=t.iterator[n];if(void 0===i)return e.delegate=null,"throw"===n&&t.iterator.return&&(e.method="return",e.arg=void 0,C(t,e),"throw"===e.method)||"return"!==n&&(e.method="throw",e.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var o=u(i,t.iterator,e.arg);if("throw"===o.type)return e.method="throw",e.arg=o.arg,e.delegate=null,d;var r=o.arg;return r?r.done?(e[t.resultName]=r.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=void 0),e.delegate=null,d):r:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,d)}function A(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 x(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function D(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(A,this),this.reset(!0)}function E(t){if(t){var e=t[r];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(n.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=void 0,e.done=!0,e};return o.next=o}}return{next:S}}function S(){return{value:void 0,done:!0}}return p.prototype=m,i(b,"constructor",{value:m,configurable:!0}),i(m,"constructor",{value:p,configurable:!0}),p.displayName=l(m,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===p||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,m):(t.__proto__=m,l(t,s,"GeneratorFunction")),t.prototype=Object.create(b),t},t.awrap=function(t){return{__await:t}},y(_.prototype),l(_.prototype,a,(function(){return this})),t.AsyncIterator=_,t.async=function(e,n,i,o,r){void 0===r&&(r=Promise);var a=new _(c(e,n,i,o),r);return t.isGeneratorFunction(n)?a:a.next().then((function(t){return t.done?t.value:a.next()}))},y(b),l(b,s,"Generator"),l(b,r,(function(){return this})),l(b,"toString",(function(){return"[object Generator]"})),t.keys=function(t){var e=Object(t),n=[];for(var i in e)n.push(i);return n.reverse(),function t(){for(;n.length;){var i=n.pop();if(i in e)return t.value=i,t.done=!1,t}return t.done=!0,t}},t.values=E,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=void 0,this.done=!1,this.delegate=null,this.method="next",this.arg=void 0,this.tryEntries.forEach(x),!t)for(var e in this)"t"===e.charAt(0)&&n.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=void 0)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(n,i){return a.type="throw",a.arg=t,e.next=n,i&&(e.method="next",e.arg=void 0),!!i}for(var o=this.tryEntries.length-1;o>=0;--o){var r=this.tryEntries[o],a=r.completion;if("root"===r.tryLoc)return i("end");if(r.tryLoc<=this.prev){var s=n.call(r,"catchLoc"),l=n.call(r,"finallyLoc");if(s&&l){if(this.prev<r.catchLoc)return i(r.catchLoc,!0);if(this.prev<r.finallyLoc)return i(r.finallyLoc)}else if(s){if(this.prev<r.catchLoc)return i(r.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<r.finallyLoc)return i(r.finallyLoc)}}}},abrupt:function(t,e){for(var i=this.tryEntries.length-1;i>=0;--i){var o=this.tryEntries[i];if(o.tryLoc<=this.prev&&n.call(o,"finallyLoc")&&this.prev<o.finallyLoc){var r=o;break}}r&&("break"===t||"continue"===t)&&r.tryLoc<=e&&e<=r.finallyLoc&&(r=null);var a=r?r.completion:{};return a.type=t,a.arg=e,r?(this.method="next",this.next=r.finallyLoc,d):this.complete(a)},complete:function(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),d},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),x(n),d}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;
vendor: 4,096 bytes, line 2
2if("throw"===i.type){var o=i.arg;x(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,n){return this.delegate={iterator:E(t),resultName:e,nextLoc:n},"next"===this.method&&(this.arg=void 0),d}},t}function f(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||g(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 p(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!n){if(Array.isArray(t)||(n=g(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0,o=function(){};return{s:o,n:function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}},e:function(t){throw t},f:o}}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 r,a=!0,s=!1;return{s:function(){n=n.call(t)},n:function(){var t=n.next();return a=t.done,t},e:function(t){s=!0,r=t},f:function(){try{a||null==n.return||n.return()}finally{if(s)throw r}}}}function m(t){return function(t){if(Array.isArray(t))return v(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||g(t)||function(){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 g(t,e){if(t){if("string"==typeof t)return v(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?v(t,e):void 0}}function v(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function k(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&x(t,e)}function b(t){var e=A();return function(){var n,i=D(t);if(e){var o=D(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return y(this,n)}}function y(t,e){if(e&&("object"===z(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return _(t)}function _(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function w(t){var e="function"==typeof Map?new Map:void 0;return w=function(t){if(null===t||(n=t,-1===Function.toString.call(n).indexOf("[native code]")))return t;var n;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==e){if(e.has(t))return e.get(t);e.set(t,i)}function i(){return C(t,arguments,D(this).constructor)}return i.prototype=Object.create(t.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}),x(i,t)},w(t)}function C(t,e,n){return C=A()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&x(o,n.prototype),o},C.apply(null,arguments)}function A(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}function x(t,e){return x=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},x(t,e)}
2function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}function E(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,T(i.key),i)}}function S(t,e,n){return e&&E(t.prototype,e),n&&E(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}function T(t){var e=function(t,e){if("object"!==z(t)||null===t)return t;var n=t[Symbol.toPrimitive];if(void 0!==n){var i=n.call(t,e||"default");if("object"!==z(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}(t,"string");return"symbol"===z(e)?e:String(e)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t){return z="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},z(t)}t=n.nmd(t),a=window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={}),(s=a.it=a.it||{}).dictionary=Object.assign(s.dictionary||{},{"%0 of %1":"%0 di %1","Align cell text to the bottom":"Allinea il testo della cella in basso","Align cell text to the center"
2:"Allinea il testo della cella al centro","Align cell text to the left":"Allinea il testo della cella a sinistra","Align cell text to the middle":"Allinea il testo della cella in mezzo","Align cell text to the right":"Allinea il testo della cella a destra","Align cell text to the top":"Allinea il testo della cella in alto","Align center":"Allinea al centro","Align left":"Allinea a sinistra","Align right":"Allinea a destra","Align table to the left":"Allinea tabella a sinistra","Align table to the right":"Allinea tabella a destra",Alignment:"Allineamento",Aquamarine:"Aquamarina",Background:"Sfondo",Big:"Grandi",Black:"Nero","Block quote":"Blocco citazione",Blue:"Blu","Blue marker":"Contrassegno blu",Bold:"Grassetto",Border:"Bordo","Break text":"Interrompi testo","Bulleted List":"Elenco puntato","Bulleted list styles toolbar":"Barra degli strumenti con gli stili degli elenchi puntati",Cancel:"Annulla","Cell properties":"Proprietà cella","Center table":"Allinea tabella al centro","Centered image":"Immagine centrata","Change image text alternative":"Cambia testo alternativo dell'immagine","Characters: %0":"Caratteri: %0","Choose heading":"Seleziona intestazione",Circle:"Cerchio",Color:"Colore","Color picker":"Selezione colore",Column:"Colonna",Dashed:"Tratteggiato",Decimal:"Numero","Decimal with leading zero":"Numero con zero anteposto","Decrease indent":"Riduci rientro",Default:"Predefinito","Delete column":"Elimina colonna","Delete row":"Elimina riga","Dim grey":"Grigio tenue",Dimensions:"Dimensioni",Disc:"Disco","Document colors":"Colori del docmento",Dotted:"Punteggiato",Double:"Doppio",Downloadable:"Scaricabile","Dropdown toolbar":"Barra degli strumenti del menu a discesa","Edit block":"Modifica blocco","Edit link":"Modifica collegamento","Editor toolbar":"Barra degli strumenti dell'editor","Enter image caption":"inserire didascalia dell'immagine","Enter table caption":"Inserire la didascalia della tabella","Font Background Color":"Colore di sfondo caratteri","Font Color":"Colore caratteri","Font Size":"Dimensione caratteri","Full size image":"Immagine a dimensione intera",Green:"Verde","Green marker":"Contrassegno verde","Green pen":"Penna verde",Grey:"Grigio",Groove:"Scanalatura","Header column":"Intestazione colonna","Header row":"Riga d'intestazione",Heading:"Intestazione","Heading 1":"Intestazione 1","Heading 2":"Intestazione 2","Heading 3":"Intestazione 3","Heading 4":"Intestazione 4","Heading 5":"Intestazione 5","Heading 6":"Intestazione 6",Height:"Altezza",Highlight:"Evidenzia","Horizontal line":"Linea orizzontale","Horizontal text alignment toolbar":"Barra degli strumenti dell'allineamento orizzontale del testo",Huge:"Grandissimi","Image resize list":"Elenco ridimensionamenti immagine","Image toolbar":"Barra degli strumenti dell'immagine","image widget":"Widget immagine","In line":"In linea","Increase indent":"Aumenta rientro",Insert:"Inserisci","Insert column left":"Inserisci colonna a sinistra","Insert column right":"Inserisci colonna a destra","Insert image":"Inserisci immagine","Insert image via URL":"Inserisci immagine tramite URL","Insert media":"Inserisci media","Insert paragraph after block":"Inserisci paragrafo dopo blocco","Insert paragraph before block":"Inserisci paragrafo prima di blocco","Insert row above":"Inserisci riga sopra","Insert row below":"Inserisci riga sotto","Insert table":"Inserisci tabella",Inset:"Incassato",Italic:"Corsivo",Justify:"Giustifica","Justify cell text":"Testo della cella giustificato","Left aligned image":"Immagine allineata a sinistra","Light blue":"Azzurro","Light green":"Verde chiaro","Light grey":"Grigio chiaro",Link:"Collegamento","Link image":"Collega immagine","Link URL":"URL del collegamento","List properties":"Proprietà elenco","Lower-latin":"Lettera minuscola","Lower–roman":"Numero romano minuscolo","Media toolbar":"Barra degli strumenti degli elementi multimediali","Media URL":"URL media","media widget":"widget media","Merge cell down":"Unisci cella sotto","Merge cell left":"Unisci cella a sinistra","Merge cell right":"Unisci cella a destra","Merge cell up":"Unisci cella sopra","Merge cells":"Unisci celle",Next:"Avanti",None:"Nessuno","Numbered List":"Elenco numerato","Numbered list styles toolbar":"Barra degli strumenti con gli stili degli elenchi numerati","Open in a new tab":"Apri in una nuova scheda","Open link in new tab":"Apri collegamento in nuova scheda",Orange:"Arancio",Original:"Originale",Outset:"Rialzato",Padding:"Spaziatura interna",Paragraph:"Paragrafo","Paste the media URL in the input.":"Incolla l'URL del file multimediale nell'input.","Pink marker":"Contrassegno rosa",Previous:"Indietro",Purple:"Porpora",Red:"Rosso","Red pen":"Penna rossa",Redo:"Ripristina","Remove c
2olor":"Rimuovi colore","Remove Format":"Rimuovi formato","Remove highlight":"Rimuovi evidenziazione","Resize image":"Ridimensiona immagine","Resize image to %0":"Ridimensiona immagine a %0","Resize image to the original size":"Ridimensiona immagine alle dimensioni originali","Restore default":"Ripristina predefinito","Reversed order":"Ordine inverso","Rich Text Editor":"Editor di testo formattato","Rich Text Editor, %0":"Editor di testo formattato, %0",Ridge:"Rilievo","Right aligned image":"Immagine allineata a destra",Row:"Riga",Save:"Salva","Select all":"Seleziona tutto","Select column":"Seleziona colonna","Select row":"Seleziona riga","Show more items":"Mostra più elementi","Side image":"Immagine laterale",Small:"Piccoli",Solid:"Solido","Split cell horizontally":"Dividi cella orizzontalmente","Split cell vertically":"Dividi cella verticalmente",Square:"Quadrato","Start at":"Inizia da","Start index must be greater than 0.":"L'indice iniziale deve essere maggiore di 0.",Strikethrough:"Barrato",Style:"Stile","Table alignment toolbar":"Barra degli strumenti dell'allineamento della tabella","Table cell text alignment":"Allineamento del testo nella cella della tabella","Table properties":"Proprietà tabella","Table toolbar":"Barra degli strumenti della tabella","Text alignment":"Allineamento del testo","Text alignment toolbar":"Barra degli strumenti dell'allineamento","Text alternative":"Testo alternativo","Text highlight toolbar":"Barra degli strumenti dell'evidenziazione del testo",'The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".':'Il colore non è valido. Provare "#FF0000" o "rgb(255,0,0)" o "red".',"The URL must not be empty.":"L'URL non può essere vuoto.",'The value is invalid. Try "10px" or "2em" or simply "2".':'Il valore non è valido. Provare "10px" o "2em" o semplicemente "2".',"This link has no URL":"Questo collegamento non ha un URL","This media URL is not supported.":"Questo URL di file multimediali non è supportato.",Tiny:"Piccolissimi","Tip: Paste the URL into the content to embed faster.":"Consiglio: incolla l'URL nel contenuto per un'incorporazione più veloce.","To-do List":"Elenco cose da fare","Toggle caption off":"Attiva didascalia","Toggle caption on":"Disattiva didascalia","Toggle the circle list style":"Attiva/disattiva lo stile degli elenchi con cerchi","Toggle the decimal list style":"Attiva/disattiva lo stile degli elenchi con numeri","Toggle the decimal with leading zero list style":"Attiva/disattiva lo stile degli elenchi con numeri con zero anteposto","Toggle the disc list style":"Attiva/disattiva lo stile degli elenchi con dischi","Toggle the lower–latin list style":"Attiva/disattiva lo stile degli elenchi con lettere minuscole","Toggle the lower–roman list style":"Attiva/disattiva lo stile degli elenchi con numeri romani minuscoli","Toggle the square list style":"Attiva/disattiva lo stile degli elenchi con quadrati","Toggle the upper–latin list style":"Attiva/disattiva lo stile degli elenchi con lettere maiuscole","Toggle the upper–roman list style":"Attiva/disattiva lo stile degli elenchi con numeri romani maiuscoli",Turquoise:"Turchese",Underline:"Sottolineato",Undo:"Annulla",Unlink:"Elimina collegamento",Update:"Aggiorna","Update image URL":"Aggiorna URL immagine","Upload failed":"Caricamento fallito","Upload in progress":"Caricamento in corso","Upper-latin":"Lettera maiuscola","Upper-roman":"Numero romano maiuscolo","Vertical text alignment toolbar":"Barra degli strumenti dell'allineamento verticale del testo",White:"Bianco","Widget toolbar":"Barra degli strumenti del widget",Width:"Larghezza","Words: %0":"Parole: %0","Wrap text":"Testo a capo",Yellow:"Giallo","Yellow marker":"Contrassegno giallo"}),s.getPluralForm=function(t){return 1!=t},function(n,a){"object"==z(e)&&"object"==z(t)?t.exports=a():(o=[],void 0===(r="function"==typeof(i=a)?i.apply(e,o):i)||(t.exports=r))}(self,(function(){return function(){"use strict";var i={636:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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 * @license Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content blockquote {\n\t/* See #12 */\n\toverflow: hidden;\n\n\t/* https://github.com/ckeditor/ckeditor5-block-quote/issues/15 */\n\tpadding-right: 1.5em;\n\tpadding-left: 1.5em;\n\n\tmargin-left: 0;\n\tmargin-right: 0;\n\tfont-style: italic;\n\tborder-left: solid 5px hsl(0, 0%, 80%);\n}\n\n.ck-content[dir="rtl"] blockquote {\n\tborder-left: 0;\n\tborder-right: solid 5px hsl(0, 0%, 80%);\n}\n'],sourceRoot:""}]);var s=a},390:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,'.ck.ck-editor__editable .ck.ck-clipboard-drop-target-position{dis
2play: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: inline;\n\t\tposition: relative;\n\t\tpointer-events: none;\n\n\t\t& span {\n\t\t\tposition: absolute;\n\t\t\twidth: 0;\n\t\t}\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\t& > .ck-widget__selection-handle {\n\t\t\tdisplay: none;\n\t\t}\n\n\t\t& > .ck-widget__type-around {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-clipboard-drop-target-dot-width: 12px;\n\t--ck-clipboard-drop-target-dot-height: 8px;\n\t--ck-clipboard-drop-target-color: var(--ck-color-focus-border)\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Vertical drop target (in text).\n\t */\n\t& .ck.ck-clipboard-drop-target-position {\n\t\t& span {\n\t\t\tbottom: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\ttop: calc(-.5 * var(--ck-clipboard-drop-target-dot-height));\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);\n\t\t\tbackground: var(--ck-clipboard-drop-target-color);\n\t\t\tmargin-left: -1px;\n\n\t\t\t/* The triangle above the marker */\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: 50%;\n\t\t\t\ttop: calc(var(--ck-clipboard-drop-target-dot-height) * -.5);\n\n\t\t\t\ttransform: translateX(-50%);\n\t\t\t\tborder-color: var(--ck-clipboard-drop-target-color) transparent transparent transparent;\n\t\t\t\tborder-width: calc(var(--ck-clipboard-drop-target-dot-height)) calc(.5 * var(--ck-clipboard-drop-target-dot-width)) 0 calc(.5 * var(--ck-clipboard-drop-target-dot-width));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t// Horizontal drop target (between blocks).\n\t& .ck.ck-clipboard-drop-target-position {\n\t\tdisplay: block;\n\t\tposition: relative;\n\t\twidth: 100%;\n\t\theight: 0;\n\t\tmargin: 0;\n\t\ttext-align: initial;\n\n\t\t& .ck-clipboard-drop-target__line {\n\t\t\tposition: absolute;\n\t\t\twidth: 100%;\n\t\t\theight: 0;\n\t\t\tborder: 1px solid var(--ck-clipboard-drop-target-color);
2\n\t\t\tmargin-top: -1px;\n\n\t\t\t&::before {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tleft: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-clipboard-drop-target-color);\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) 0 var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\n\t\t\t&::after {\n\t\t\t\tcontent: "";\n\t\t\t\twidth: 0;\n\t\t\t\theight: 0;\n\n\t\t\t\tdisplay: block;\n\t\t\t\tposition: absolute;\n\t\t\t\tright: calc(-1 * var(--ck-clipboard-drop-target-dot-size));\n\t\t\t\ttop: 0;\n\n\t\t\t\ttransform: translateY(-50%);\n\t\t\t\tborder-color: transparent var(--ck-clipboard-drop-target-color) transparent transparent;\n\t\t\t\tborder-width: var(--ck-clipboard-drop-target-dot-size) calc(2 * var(--ck-clipboard-drop-target-dot-size)) var(--ck-clipboard-drop-target-dot-size) 0;\n\t\t\t\tborder-style: solid;\n\t\t\t}\n\t\t}\n\t}\n\t*/\n\n\t/*\n\t * Styles of the widget that it a drop target.\n\t */\n\t& .ck-widget.ck-clipboard-drop-target-range {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-clipboard-drop-target-color) !important;\n\t}\n\n\t/*\n\t * Styles of the widget being dragged (its preview).\n\t */\n\t& .ck-widget:-webkit-drag {\n\t\tzoom: 0.6;\n\t\toutline: none !important;\n\t}\n}\n'],sourceRoot:""}]);var s=a},3638:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,q
2CAAsC,CDOpC,eAEF,CAKF,yCAEC,0CAA2C,CCpB3C,eD8BD,CAZA,yHCdE,qCAAsC,CDmBtC,wBAAyB,CACzB,yBAMF,CAHC,0DACC,wCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor {\n\t/* All the elements within `.ck-editor` are positioned relatively to it.\n\t If any element needs to be positioned with respect to the <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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n.ck.ck-editor__top {\n\t& .ck-sticky-panel {\n\t\t& .ck-toolbar {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\n\t\t\tborder-bottom-width: 0;\n\t\t}\n\n\t\t& .ck-sticky-panel__content_sticky .ck-toolbar {\n\t\t\tborder-bottom-width: 1px;\n\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/* Note: Use ck-editor__main to make sure these styles don\'t apply to other editor types */\n.ck.ck-editor__main > .ck-editor__editable {\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/113 */\n\tbackground: var(--ck-color-base-background);\n\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&:not(.ck-focused) {\n\t\tborder-color: var(--ck-color-base-border);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},8894:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder,\n.ck .ck-placeholder {\n\tposition: relative;\n\n\t&::before {\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t\tcontent: attr(data-placeholder);\n\n\t\t/* See ckeditor/ckeditor5#469. */\n\t\tpointer-events: none;\n\t}\n}\n\n/* See ckeditor/ckeditor5#1987. */\n.ck.ck-read-only .ck-placeholder {\n\t&::before {\n\t\tdisplay: none;\n\t}\n}\n\n/*\n * Rules for the `ck-placeholder` are loaded before the rules for `ck-reset_all` in the base CKEditor 5 DLL build.\n * This fix overwrites the incorrectly set `position: static` from `ck-reset_all`.\n * See https://github.com/ckeditor/ckeditor5/issues/11418.\n */\n.ck.ck-reset_all .ck-placeholder {\n\tposition: relative;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* See ckeditor/ckeditor5#936. */\n.ck.ck-placeholder, .ck .ck-placeholder {\n\t&::before {\n\t\tcursor: text;\n\t\tcolor: var(--ck-color-engine-placeholder-text);\n\t}\n}\n"],sourceRoot:""}]);var s=a},4401:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Elements marked by the Renderer as hidden should be invisible in the editor. */\n.ck.ck-editor__editable span[data-ck-unsafe-element] {\n\tdisplay: none;\n}\n"],sourceRoot:""}]);var s=a},2585:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-button.ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.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 s=a},6203:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* 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 s=a},3230:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,
2CAEA,uEACC,cACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-heading_heading1 {\n\tfont-size: 20px;\n}\n\n.ck.ck-heading_heading2 {\n\tfont-size: 17px;\n}\n\n.ck.ck-heading_heading3 {\n\tfont-size: 14px;\n}\n\n.ck[class*="ck-heading_heading"] {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Resize dropdown's button label. */\n.ck.ck-dropdown.ck-heading-dropdown {\n\t& .ck-dropdown__button .ck-button__label {\n\t\twidth: 8em;\n\t}\n\n\t& .ck-dropdown__panel .ck-list__item {\n\t\tmin-width: 18em;\n\t}\n}\n"],sourceRoot:""}]);var s=a},713:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,":root{--ck-highlight-marker-yellow:#fdfd77;--ck-highlight-marker-green:#62f962;--ck-highlight-marker-pink:#fc7899;--ck-highlight-marker-blue:#72ccfd;--ck-highlight-pen-red:#e71313;--ck-highlight-pen-green:#128a00}.ck-content .marker-yellow{background-color:var(--ck-highlight-marker-yellow)}.ck-content .marker-green{background-color:var(--ck-highlight-marker-green)}.ck-content .marker-pink{background-color:var(--ck-highlight-marker-pink)}.ck-content .marker-blue{background-color:var(--ck-highlight-marker-blue)}.ck-content .pen-red{background-color:transparent;color:var(--ck-highlight-pen-red)}.ck-content .pen-green{background-color:transparent;color:var(--ck-highlight-pen-green)}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-highlight/theme/highlight.css"],names:[],mappings:"AAKA,MACC,oCAA+C,CAC/C,mCAA+C,CAC/C,kCAA8C,CAC9C,kCAA8C,CAC9C,8BAAwC,CACxC,gCACD,CAGC,2BACC,kDACD,CAFA,0BACC,iDACD,CAFA,yBACC,gDACD,CAFA,yBACC,gDACD,CAIA,qBAIC,4BAA6B,CAH7B,iCAID,CALA,uBAIC,4BAA6B,CAH7B,mCAID",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-highlight-marker-yellow: hsl(60, 97%, 73%);\n\t--ck-highlight-marker-green: hsl(120, 93%, 68%);\n\t--ck-highlight-marker-pink: hsl(345, 96%, 73%);\n\t--ck-highlight-marker-blue: hsl(201, 97%, 72%);\n\t--ck-highlight-pen-red: hsl(0, 85%, 49%);\n\t--ck-highlight-pen-green: hsl(112, 100%, 27%);\n}\n\n@define-mixin highlight-marker-color $color {\n\t.ck-content .marker-$color {\n\t\tbackground-color: var(--ck-highlight-marker-$color);\n\t}\n}\n\n@define-mixin highlight-pen-color $color {\n\t.ck-content .pen-$color {\n\t\tcolor: var(--ck-highlight-pen-$color);\n\n\t\t/* Override default yellow background of `<mark>` from user agent stylesheet */\n\t\tbackground-color: transparent;\n\t}\n}\n\n@mixin highlight-marker-color yellow;\n@mixin highlight-marker-color green;\n@mixin highlight-marker-color pink;\n@mixin highlight-marker-color blue;\n\n@mixin highlight-pen-color red;\n@mixin highlight-pen-color green;\n"],sourceRoot:""}]);var s=a},2536:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,".ck-editor__editable .ck-horizontal-line{display:flow-root}.ck-content hr{background:#dedede;border:0;height:4px;margin:15px 0}","",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-horizontal-line/theme/horizontalline.css"],names:[],mappings:"AAMA,yCAEC,iBACD,CAEA,eAGC,kBAA2B,CAC3B,QAAS,CAFT,UAAW,CADX,aAID",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n\n.ck-editor__editable .ck-horizontal-line {\n\t/* Necessary to render properly next to floated objects, e.g. side image case. */\n\tdisplay: flow-root;\n}\n\n.ck-content hr {\n\tmargin: 15px 0;\n\theight: 4px;\n\tbackground: hsl(0, 0%, 87%);\n\tborder: 0;\n}\n"],sourceRoot:""}]);var s=a},9048:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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{dis
2play: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content {\n\t& .image {\n\t\tdisplay: table;\n\t\tclear: both;\n\t\ttext-align: center;\n\n\t\t/* Make sure there is some space between the content and the image. Center image by default. */\n\t\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\t \tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\t\tmargin: 0.9em auto;\n\n\t\t/* Make sure the caption will be displayed properly (See: https://github.com/ckeditor/ckeditor5/issues/1870). */\n\t\tmin-width: 50px;\n\n\t\t& img {\n\t\t\t/* Prevent unnecessary margins caused by line-height (see #44). */\n\t\t\tdisplay: block;\n\n\t\t\t/* Center the image if its width is smaller than the content\'s width. */\n\t\t\tmargin: 0 auto;\n\n\t\t\t/* Make sure the image never exceeds the size of the parent container (ckeditor/ckeditor5-ui#67). */\n\t\t\tmax-width: 100%;\n\n\t\t\t/* Make sure the image is never smaller than the parent container (See: https://github.com/ckeditor/ckeditor5/issues/9300). */\n\t\t\tmin-width: 100%\n\t\t}\n\t}\n\n\t& .image-inline {\n\t\t/*\n\t\t * Normally, the .image-inline would have "display: inline-block" and "img { width: 100% }" (to follow the wrapper while resizing).\n\t\t * Unfortunately, together with "srcset", it gets automatically stretched up to the width of the editing root.\n\t\t * This strange behavior does not happen with inline-flex.\n\t\t */\n\t\tdisplay: inline-flex;\n\n\t\t/* While being resized, don\'t allow the image to exceed the width of the editing root. */\n\t\tmax-width: 100%;\n\n\t\t/* This is required by Safari to resize images in a sensible way. Without this, the browser breaks the ratio. */\n\t\talign-items: flex-start;\n\n\t\t/* When the picture is present it must act as a flex container to let the img resize properly */\n\t\t& picture {\n\t\t\tdisplay: flex;\n\t\t}\n\n\t\t/* When the picture is present, it must act like a resizable img. */\n\t\t& picture,\n\t\t& img {\n\t\t\t/* This is necessary for the img to span the entire .image-inline wrapper and to resize properly. */\n\t\t\tflex-grow: 1;\n\t\t\tflex-shrink: 1;\n\n\t\t\t/* Prevents overflowing the editing root boundaries when an inline image is very wide. */\n\t\t\tmax-width: 100%;\n\t\t}\n\t}\n}\n\n.ck.ck-editor__editable {\n\t/*\n\t * Inhertit the content styles padding of the <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 s=a},8662:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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>
2figcaption.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-caption-background: hsl(0, 0%, 97%);\n\t--ck-color-image-caption-text: hsl(0, 0%, 20%);\n\t--ck-color-image-caption-highligted-background: hsl(52deg 100% 50%);\n}\n\n/* Content styles */\n.ck-content .image > figcaption {\n\tdisplay: table-caption;\n\tcaption-side: bottom;\n\tword-break: break-word;\n\tcolor: var(--ck-color-image-caption-text);\n\tbackground-color: var(--ck-color-image-caption-background);\n\tpadding: .6em;\n\tfont-size: .75em;\n\toutline-offset: -1px;\n}\n\n/* Editing styles */\n.ck.ck-editor__editable .image > figcaption.image__caption_highlighted {\n\tanimation: ck-image-caption-highlight .6s ease-out;\n}\n\n@keyframes ck-image-caption-highlight {\n\t0% {\n\t\tbackground-color: var(--ck-color-image-caption-highligted-background);\n\t}\n\n\t100% {\n\t\tbackground-color: var(--ck-color-image-caption-background);\n\t}\n}\n"],sourceRoot:""}]);var s=a},9292:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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 s=a},5150:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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 s=a},1043:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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>
2figcaption{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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .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 s=a},4622:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-image-style-spacing: 1.5em;\n\t--ck-inline-image-style-spacing: calc(var(--ck-image-style-spacing) / 2);\n}\n\n.ck-content {\n\t/* Provides a minimal side margin for the left and right aligned images, so that the user has a visual feedback\n\tconfirming successful application of the style if image width exceeds the editor's size.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9342 */\n\t& .image-style-block-align-left,\n\t& .image-style-block-align-right {\n\t\tmax-width: calc(100% - var(--ck-image-style-spacing));\n\t}\n\n\t/* Allows displaying multiple floating images in the same line.\n\tSee https://github.com/ckeditor/ckeditor5/issues/9183#issuecomment-804988132 */\n\t& .image-style-align-left,\n\t& .image-style-align-right {\n\t\tclear: none;\n\t}\n\n\t& .image-style-side {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t\tmax-width: 50%;\n\t}\n\n\t& .image-style-align-left {\n\t\tfloat: left;\n\t\tmargin-right: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-align-center {\n\t\tmargin-left: auto;\n\t\tmargin-right: auto;\n\t}\n\n\t& .image-style-align-right {\n\t\tfloat: right;\n\t\tmargin-left: var(--ck-image-style-spacing);\n\t}\n\n\t& .image-style-block-align-right {\n\t\tmargin-right: 0;\n\t\tmargin-left: auto;\n\t}\n\n\t& .image-style-block-align-left {\n\t\tmargin-left: 0;\n\t\tmargin-right: auto;\n\t}\n\n\t/* Simulates margin collapsing with the preceding paragraph, which does not work for the floating elements. */\n\t& p + .image-style-align-left,\n\t& p + .image-style-align-right,\n\t& p + .image-style-side {\n\t\tmargin-top: 0;\n\t}\n\n\t& .image-inline {\n\t\t&.image-style-align-left,\n\t\t&.image-style-align-right {\n\t\t\tmargin-top: var(--ck-inline-image-style-spacing);\n\t\t\tmargin-bottom: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-left {\n\t\t\tmargin-right: var(--ck-inline-image-style-spacing);\n\t\t}\n\n\t\t&.image-style-align-right {\n\t\t\tmargin-left: var(--ck-inline-image-style-spacing);\n\t\t}\n\t}\n}\n\n.ck.ck-splitbutton {\n\t/* The button should display as a regular drop-down if the action button\n\tis forced to fire the same action as the arrow button. */\n\t&.ck-splitbutton_flatten {\n\t\t&:hover,\n\t\t&.ck-splitbutton_open {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-background);\n\n\t\t\t\t&::after {\n\t\t\t\t\tdisplay: none;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t&.ck-splitbutton_open:hover {\n\t\t\t& > .ck-splitbutton__action:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled),\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled):not(:hover) {\n\t\t\t\tbackground-color: var(--ck-color-button-on-hover-background);\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},9899:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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%;
2transform: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-image-upload-complete-icon {\n\tdisplay: block;\n\tposition: absolute;\n\n\t/*\n\t * Smaller images should have the icon closer to the border.\n\t * Match the icon position with the linked image indicator brought by the link image feature.\n\t */\n\ttop: min(var(--ck-spacing-medium), 6%);\n\tright: min(var(--ck-spacing-medium), 6%);\n\tborder-radius: 50%;\n\tz-index: 1;\n\n\t&::after {\n\t\tcontent: "";\n\t\tposition: absolute;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-image-upload-icon: hsl(0, 0%, 100%);\n\t--ck-color-image-upload-icon-background: hsl(120, 100%, 27%);\n\n\t/* Match the icon size with the linked image indicator brought by the link image feature. */\n\t--ck-image-upload-icon-size: 20;\n\t--ck-image-upload-icon-width: 2px;\n\t--ck-image-upload-icon-is-visible: clamp(0px, 100% - 50px, 1px);\n}\n\n.ck-image-upload-complete-icon {\n\topacity: 0;\n\tbackground: var(--ck-color-image-upload-icon-background);\n\tanimation-name: ck-upload-complete-icon-show, ck-upload-complete-icon-hide;\n\tanimation-fill-mode: forwards, forwards;\n\tanimation-duration: 500ms, 500ms;\n\n\t/* To make animation scalable. */\n\tfont-size: calc(1px * var(--ck-image-upload-icon-size));\n\n\t/* Hide completed upload icon after 3 seconds. */\n\tanimation-delay: 0ms, 3000ms;\n\n\t/*\n\t * Use CSS math to simulate container queries.\n\t * https://css-tricks.com/the-raven-technique-one-step-closer-to-container-queries/#what-about-showing-and-hiding-things\n\t */\n\toverflow: hidden;\n\twidth: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\theight: calc(var(--ck-image-upload-icon-is-visible) * var(--ck-image-upload-icon-size));\n\n\t/* This is check icon element made from border-width mixed with animations. */\n\t&::after {\n\t\t/* Because of border transformation we need to "hard code" left position. */\n\t\tleft: 25%;\n\n\t\ttop: 50%;\n\t\topacity: 0;\n\t\theight: 0;\n\t\twidth: 0;\n\n\t\ttransform: scaleX(-1) rotate(135deg);\n\t\ttransform-origin: left top;\n\t\tborder-top: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\t\tborder-right: var(--ck-image-upload-icon-width) solid var(--ck-color-image-upload-icon);\n\n\t\tanimation-name: ck-upload-complete-icon-check;\n\t\tanimation-duration: 500ms;\n\t\tanimation-delay: 500ms;\n\t\tanimation-fill-mode: forwards;\n\n\t\t/* #1095. While reset is not providing proper box-sizing for pseudoelements, we need to handle it. */\n\t\tbox-sizing: border-box;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-show {\n\tfrom {\n\t\topacity: 0;\n\t}\n\n\tto {\n\t\topacity: 1;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-hide {\n\tfrom {\n\t\topacity: 1;\n\t}\n\n\tto {\n\t\topacity: 0;\n\t}\n}\n\n@keyframes ck-upload-complete-icon-check {\n\t0% {\n\t\topacity: 1;\n\t\twidth: 0;\n\t\theight: 0;\n\t}\n\t33% {\n\t\twidth: 0.3em;\n\t\theight: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t\twidth: 0.3em;\n\t\theight: 0.45em;\n\t}\n}\n'],sourceRoot:""}]);var s=a},9825:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-upload-placeholder-loader {\n\tposition: absolute;\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n\ttop: 0;\n\tleft: 0;\n\n\t&::before {\n\t\tcontent: '';\n\t\tposition: relative;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-upload-placeholder-loader: hsl(0, 0%, 70%);\n\t--ck-upload-placeholder-loader-size: 32px;\n\t--ck-upload-placeholder-image-aspect-ratio: 2.8;\n}\n\n.ck .ck-image-upload-placeholder {\n\t/* We need to control the full width of the SVG gray background. */\n\twidth: 100%;\n\tmargin: 0;\n\n\t&.image-inline {\n\t\twidth: calc( 2 * var(--ck-upload-placeholder-loader-size) * var(--ck-upload-placeholder-image-aspect-ratio) );\n\t}\n\n\t& img {\n\t\t/*\n\t\t * This is an arbitrary aspect for a 1x1 px GIF to display to the user. Not too tall, not too short.\n\t\t * There's nothing special about this number except that it should make the image placeholder look like\n\t\t * a real image during this short period after the upload started and before the image was read from the\n\t\t * file system (and a rich preview was loaded).\n\t\t */\n\t\taspect-ratio: var(--ck-upload-placeholder-image-aspect-ratio);\n\t}\n}\n\n.ck .ck-upload-placeholder-loader {\n\twidth: 100%;\n\theight: 100%;\n\n\t&::before {\n\t\twidth: var(--ck-upload-placeholder-loader-size);\n\t\theight: var(--ck-upload-placeholder-loader-size);\n\t\tborder-radius: 50%;\n\t\tborder-top: 3px solid var(--ck-color-upload-placeholder-loader);\n\t\tborder-right: 2px solid transparent;\n\t\tanimation: ck-upload-placeholder-loader 1s linear infinite;\n\t}\n}\n\n@keyframes ck-upload-placeholder-loader {\n\tto {\n\t\ttransform: rotate( 360deg );\n\t}\n}\n"],sourceRoot:""}]);var s=a},5870:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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}
2to{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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\tposition: relative;\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\tposition: absolute;\n\t\ttop: 0;\n\t\tleft: 0;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t& .image,\n\t& .image-inline {\n\t\t/* Showing animation. */\n\t\t&.ck-appear {\n\t\t\tanimation: fadeIn 700ms;\n\t\t}\n\t}\n\n\t/* Upload progress bar. */\n\t& .image .ck-progress-bar,\n\t& .image-inline .ck-progress-bar {\n\t\theight: 2px;\n\t\twidth: 0;\n\t\tbackground: var(--ck-color-upload-bar-background);\n\t\ttransition: width 100ms;\n\t}\n}\n\n@keyframes fadeIn {\n\tfrom { opacity: 0; }\n\tto   { opacity: 1; }\n}\n"],sourceRoot:""}]);var s=a},6831:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-text-alternative-form {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},399:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/* Class added to span element surrounding currently selected link. */\n.ck .ck-link_selected {\n\tbackground: var(--ck-color-link-selected-background);\n\n\t/* Give linked inline images some outline to let the user know they are also part of the link. */\n\t& span.image-inline {\n\t\toutline: var(--ck-widget-outline-thickness) solid var(--ck-color-link-selected-background);\n\t}\n}\n\n/*\n * Classes used by the "fake visual selection" displayed in the content when an input\n * in the link UI has focus (the browser does not render the native selection in this state).\n */\n.ck .ck-fake-link-selection {\n\tbackground: var(--ck-color-link-fake-selection);\n}\n\n/* A collapsed fake visual selection. */\n.ck .ck-fake-link-selection_collapsed {\n\theight: 100%;\n\tborder-right: 1px solid var(--ck-color-base-text);\n\tmargin-right: -1px;\n\toutline: solid 1px hsla(0, 0%, 100%, .5);\n}\n'],sourceRoot:""}]);var s=a},9465:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,CCKA,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,CDvDD,oCC2DC,wDACC,8DAMD,CAJC,0EAEC,cAAe,CADf,WAED,CAGD,gJAME,aAEF,CD1ED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-link-actions__preview {\n\t\tdisplay: inline-block;\n\n\t\t& .ck-button__label {\n\t\t\toverflow: hidden;\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-link-actions__preview {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_unselectable.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_focus.css";\n@import "../mixins/_shadow.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-actions {\n\t& .ck-button.ck-link-actions__preview {\n\t\tpadding-left: 0;\n\t\tpadding-right: 0;\n\n\t\t& .ck-button__label {\n\t\t\tpadding: 0 var(--ck-spacing-medium);\n\t\t\tcolor: var(--ck-color-link-default);\n\t\t\ttext-overflow: ellipsis;\n\t\t\tcursor: pointer;\n\n\t\t\t/* Match the box model of the link editor form\'s input so the balloon\n\t\t\tdoes not change width when moving between actions and the form. */\n\t\t\tmax-width: var(--ck-input-width);\n\t\t\tmin-width: 3em;\n\t\t\ttext-align: center;\n\n\t\t\t&:hover {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\n\t\t&,\n\t\t&:hover,\n\t\t&:focus,\n\t\t&:active {\n\t\t\tbackground: none;\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&:focus {\n\t\t\t& .ck-button__label {\n\t\t\t\ttext-decoration: underline;\n\t\t\t}\n\t\t}\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& .ck-button:not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& .ck-button:not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\t& .ck-button.ck-link-actions__preview {\n\t\t\tmargin: var(--ck-spacing-standard) var(--ck-spacing-standard) 0;\n\n\t\t\t& .ck-button__label {\n\t\t\t\tmin-width: 0;\n\t\t\t\tmax-width: 100%;\n\t\t\t}\n\t\t}\n\n\t\t& .ck-button:not(.ck-link-actions__preview) {\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tmargin-left: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},4827:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin:0;padding:var(--ck-spacing-standard);width:50%}[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{border:0;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,iCA
2EC,+BAAgC,CADhC,SA+CD,CA5CC,wDACC,8EAMD,CAJC,uEACC,WAAY,CACZ,UACD,CAGD,4CAIC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAHjD,QAAS,CADT,kCAAmC,CAKnC,SAaD,CAnBA,4GAaE,aAMF,CAJE,mEACC,kDACD,CAKF,6CACC,yDAWD,CATC,wEACC,QAAS,CACT,SAAU,CACV,UAKD,CAHC,8EACC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-link-form {\n\tdisplay: flex;\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tdisplay: block;\n\n\t/*\n\t * Whether the form is in the responsive mode or not, if there are decorator buttons\n\t * keep the top margin of action buttons medium.\n\t */\n\t& .ck-button {\n\t\t&.ck-button-save,\n\t\t&.ck-button-cancel {\n\t\t\tmargin-top: var(--ck-spacing-medium);\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/*\n * Style link form differently when manual decorators are available.\n * See: https://github.com/ckeditor/ckeditor5-link/issues/186.\n */\n.ck.ck-link-form_layout-vertical {\n\tpadding: 0;\n\tmin-width: var(--ck-input-width);\n\n\t& .ck-labeled-field-view {\n\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) var(--ck-spacing-small);\n\n\t\t& .ck-input-text {\n\t\t\tmin-width: 0;\n\t\t\twidth: 100%;\n\t\t}\n\t}\n\n\t& .ck-button {\n\t\tpadding: var(--ck-spacing-standard);\n\t\tmargin: 0;\n\t\tborder-radius: 0;\n\t\tborder: 0;\n\t\tborder-top: 1px solid var(--ck-color-base-border);\n\t\twidth: 50%;\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\tborder: 0;\n\t\t\tpadding: 0;\n\t\t\twidth: 100%;\n\n\t\t\t&:hover {\n\t\t\t\tbackground: none;\n\t\t\t}\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},3858:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,
2CACvC,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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-editor__editable {\n\t/* 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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* 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 s=a},3195:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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;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,CAFhB,eAAiB,CACjB,wDAAyD,CAFzD,UAmBD,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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-collapsible.ck-collapsible_collapsed {\n\t& > .ck-collapsible__children {\n\t\tdisplay: none;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-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\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 s=a},7133:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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}
2.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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 s=a},4553:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-list-styles-list {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n: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 s=a},1588:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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;
2transition: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-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 s=a},5777:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .media {\n\t/* Don\'t allow floated content overlap the media.\n\thttps://github.com/ckeditor/ckeditor5-media-embed/issues/53 */\n\tclear: both;\n\n\t/* Make sure there is some space between the content and the media. */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em 0;\n\n\t/* Make sure media is not overriden with Bootstrap default `flex` value.\n\tSee: https://github.com/ckeditor/ckeditor5/issues/1373. */\n\tdisplay: block;\n\n\t/* Give the media some minimal width in the content to prevent them\n\tfrom being "squashed" in tight space
2s, e.g. in table cells (#44) */\n\tmin-width: 15em;\n}\n'],sourceRoot:""}]);var s=a},952:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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 .ck-tooltip{display:block}@media (hover:none){.ck-media__wrapper .ck-media__placeholder .ck-media__placeholder__url .ck-tooltip{display:none}}.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:hover .ck-tooltip{opacity:1;visibility:visible}.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+PHJlY3Qgcnk9IjUuMjM4IiByeD0iNS4yMzgiIHk9IjIzMS4zOTkiIHg9IjE3Ni4wMzEiIGhlaWdodD0iNjAuMDk5IiB3aWR0aD0iNjAuMDk5IiBmaWxsPSIjMzRhNjY4IiBwYWludC1vcmRlcj0ibWFya2VycyBzdHJva2UgZmlsbCIvPjxwYXRoIGQ9Im0yMDYuNDc3IDI2MC45LTI4Ljk4NyAyOC45ODdhNS4yMTggNS4yMTggMCAwIDAgMy43OCAxLjYxaDQ5LjYyMWMxLjY5NCAwIDMuMTktLjc5OCA0LjE0Ni0yLjAzN3oiIGZpbGw9IiM1Yzg4YzUiLz48cGF0aCBkPSJNMjI2Ljc0MiAyMjIuOTg4Yy05LjI2NiAwLTE2Ljc3NyA3LjE3LTE2Ljc3NyAxNi4wMTQuMDA3IDIuNzYyLjY2MyA1LjQ3NCAyLjA5MyA3Ljg3NS40My43MDMuODMgMS40MDggMS4xOSAyLjEwNy4zMzMuNTAyLjY1IDEuMDA1Ljk1IDEuNTA4LjM0My40NzcuNjczLjk1Ny45ODggMS40NCAxLjMxIDEuNzY5IDIuNSAzLjUwMiAzLjYzNyA1LjE2OC43OTMgMS4yNzUgMS42ODMgMi42NCAyLjQ2NiAzLjk5IDIuMzYzIDQuMDk0IDQuMDA3IDguMDkyIDQuNiAxMy45MTR2LjAxMmMuMTgyLjQxMi41MTYuNjY2Ljg3OS42NjcuNDAzLS4wMDEuNzY4LS4zMTQuOTMtLjc5OS42MDMtNS43NTYgMi4yMzgtOS43MjkgNC41ODUtMTMuNzk0Ljc4Mi0xLjM1IDEuNjczLTIuNzE1IDIuNDY1LTMuOTkgMS4xMzctMS42NjYgMi4zMjgtMy40IDMuNjM4LTUuMTY5LjMxNS0uNDgyLjY0NS0uOTYyLjk4OC0xLjQzOS4zLS41MDMuNjE3LTEuMDA2
2Ljk1LTEuNTA4LjM1OS0uNy43Ni0xLjQwNCAxLjE5LTIuMTA3IDEuNDI2LTIuNDAyIDItNS4xMTQgMi4wMDQtNy44NzUgMC04Ljg0NC03LjUxMS0xNi4wMTQtMTYuNzc2LTE2LjAxNHoiIGZpbGw9IiNkZDRiM2UiIHBhaW50LW9yZGVyPSJtYXJrZXJzIHN0cm9rZSBmaWxsIi8+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+PHVzZSB4bGluazpocmVmPSIjYSIvPjwvbWFzaz48cGF0aCBkPSJNMjUxLjkyMS4xNTljLTY4LjQxOCAwLTc2Ljk5Ny4yOS0xMDMuODY3IDEuNTE2LTI2LjgxNCAxLjIyMy00NS4xMjcgNS40ODItNjEuMTUxIDExLjcxLTE2LjU2NiA2LjQzNy0zMC42MTUgMTUuMDUxLTQ0LjYyMSAyOS4wNTYtMTQuMDA1IDE0LjAwNi0yMi42MTkgMjguMDU1LTI5LjA1NiA0NC42MjEtNi4yMjggMTYuMDI0LTEwLjQ4NyAzNC4zMzctMTEuNzEgNjEuMTUxQy4yOSAxNzUuMDgzIDAgMTgzLjY2MiAwIDI1Mi4wOGMwIDY4LjQxNy4yOSA3Ni45OTYgMS41MTYgMTAzLjg2NiAxLjIyMyAyNi44MTQgNS40ODIgNDUuMTI3IDExLjcxIDYxLjE1MSA2LjQzNyAxNi41NjYgMTUuMDUxIDMwLjYxNSAyOS4wNTYgNDQuNjIxIDE0LjAwNiAxNC4wMDUgMjguMDU1IDIyLjYxOSA0NC42MjEgMjkuMDU3IDE2LjAyNCA2LjIyNyAzNC4zMzcgMTAuNDg2IDYxLjE1MSAxMS43MDkgMjYuODcgMS4yMjYgMzUuNDQ5IDEuNTE2IDEwMy44NjcgMS41MTYgNjguNDE3IDAgNzYuOTk2LS4yOSAxMDMuODY2LTEuNTE2IDI2LjgxNC0xLjIyMyA0NS4xMjctNS40ODIgNjEuMTUxLTExLjcwOSAxNi41NjYtNi40MzggMzAuNjE1LTE1LjA1MiA0NC42MjEtMjkuMDU3IDE0LjAwNS0xNC4wMDYgMjIuNjE5LTI4LjA1NSAyOS4wNTctNDQuNjIxIDYuMjI3LTE2LjAyNCAxMC40ODYtMzQuMzM3IDExLjcwOS02MS4xNTEgMS4yMjYtMjYuODcgMS41MTYtMzUuNDQ5IDEuNTE2LTEwMy44NjYgMC02OC40MTgtLjI5LTc2Ljk5Ny0xLjUxNi0xMDMuODY3LTEuMjIzLTI2LjgxNC01LjQ4Mi00NS4xMjctMTEuNzA5LTYxLjE1MS02LjQzOC0xNi41NjYtMTUuMDUyLTMwLjYxNS0yOS4wNTctNDQuNjIxLTE0LjAwNi0xNC4wMDUtMjguMDU1LTIyLjYxOS00NC42MjEtMjkuMDU2LTE2LjAyNC02LjIyOC0zNC4zMzctMTAuN
2Dg3LTYxLjE1MS0xMS43MUMzMjguOTE3LjQ0OSAzMjAuMzM4LjE1OSAyNTEuOTIxLjE1OVptMCA0NS4zOTFjNjcuMjY1IDAgNzUuMjMzLjI1NyAxMDEuNzk3IDEuNDY5IDI0LjU2MiAxLjEyIDM3LjkwMSA1LjIyNCA0Ni43NzggOC42NzQgMTEuNzU5IDQuNTcgMjAuMTUxIDEwLjAyOSAyOC45NjYgMTguODQ1IDguODE2IDguODE1IDE0LjI3NSAxNy4yMDcgMTguODQ1IDI4Ljk2NiAzLjQ1IDguODc3IDcuNTU0IDIyLjIxNiA4LjY3NCA0Ni43NzggMS4yMTIgMjYuNTY0IDEuNDY5IDM0LjUzMiAxLjQ2OSAxMDEuNzk4IDAgNjcuMjY1LS4yNTcgNzUuMjMzLTEuNDY5IDEwMS43OTctMS4xMiAyNC41NjItNS4yMjQgMzcuOTAxLTguNjc0IDQ2Ljc3OC00LjU3IDExLjc1OS0xMC4wMjkgMjAuMTUxLTE4Ljg0NSAyOC45NjYtOC44MTUgOC44MTYtMTcuMjA3IDE0LjI3NS0yOC45NjYgMTguODQ1LTguODc3IDMuNDUtMjIuMjE2IDcuNTU0LTQ2Ljc3OCA4LjY3NC0yNi41NiAxLjIxMi0zNC41MjcgMS40NjktMTAxLjc5NyAxLjQ2OS02Ny4yNzEgMC03NS4yMzctLjI1Ny0xMDEuNzk4LTEuNDY5LTI0LjU2Mi0xLjEyLTM3LjkwMS01LjIyNC00Ni43NzgtOC42NzQtMTEuNzU5LTQuNTctMjAuMTUxLTEwLjAyOS0yOC45NjYtMTguODQ1LTguODE1LTguODE1LTE0LjI3NS0xNy4yMDctMTguODQ1LTI4Ljk2Ni0zLjQ1LTguODc3LTcuNTU0LTIyLjIxNi04LjY3NC00Ni43NzgtMS4yMTItMjYuNTY0LTEuNDY5LTM0LjUzMi0xLjQ2OS0xMDEuNzk3IDAtNjcuMjY2LjI1Ny03NS4yMzQgMS40NjktMTAxLjc5OCAxLjEyLTI0LjU2MiA1LjIyNC0zNy45MDEgOC42NzQtNDYuNzc4IDQuNTctMTEuNzU5IDEwLjAyOS0yMC4xNTEgMTguODQ1LTI4Ljk2NiA4LjgxNS04LjgxNiAxNy4yMDctMTQuMjc1IDI4Ljk2Ni0xOC44NDUgOC44NzctMy40NSAyMi4yMTYtNy41NTQgNDYuNzc4LTguNjc0IDI2LjU2NC0xLjIxMiAzNC41MzItMS40NjkgMTAxLjc5OC0xLjQ2OVoiIGZpbGw9IiNGRkYiIG1hc2s9InVybCgjYikiLz48cGF0aCBkPSJNMjUxLjkyMSAzMzYuMDUzYy00Ni4zNzggMC04My45NzQtMzcuNTk2LTgzLjk3NC04My45NzMgMC00Ni4zNzggMzcuNTk2LTgzLjk3NCA4My45NzQtODMuOTc0IDQ2LjM3NyAwIDgzLjk3MyAzNy41OTYgODMuOTczIDgzLjk3NCAwIDQ2LjM3Ny0zNy41OTYgODMuOTczLTgzLjk3MyA4My45NzNabTAtMjEzLjMzOGMtNzEuNDQ3IDAtMTI5LjM2NSA1Ny45MTgtMTI5LjM2NSAxMjkuMzY1IDAgNzEuNDQ2IDU3LjkxOCAxMjkuMzY0IDEyOS4zNjUgMTI5LjM2NCA3MS40NDYgMCAxMjkuMzY0LTU3LjkxOCAxMjkuMzY0LTEyOS4zNjQgMC03MS40NDctNTcuOTE4LTEyOS4zNjUtMTI5LjM2NC0xMjkuMzY1Wk00MTYuNjI3IDExNy42MDRjMCAxNi42OTYtMTMuNTM1IDMwLjIzLTMwLjIzMSAzMC4yMy0xNi42OTUgMC0zMC4yMy0xMy41MzQtMzAuMjMtMzAuMjMgMC0xNi42OTYgMTMuNTM1LTMwLjIzMSAzMC4yMy0zMC4yMzEgMTYuNjk2IDAgMzAuMjMxIDEzLjUzNSAzMC4yMzEgMzAuMjMxIiBmaWxsPSIjRkZGIi8+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,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA0MDAgNDAwIiBzdHlsZT0iZW5hYmxlLWJhY2tncm91bmQ6bmV3IDAgMCA0MDAgNDAwIiB4bWw6c3BhY2U9InByZXNlcnZlIj48cGF0aCBkPSJNNDAwIDIwMGMwIDExMC41LTg5LjUgMjAwLTIwMCAyMDBTMCAzMTAuNSAwIDIwMCA4OS41IDAgMjAwIDBzMjAwIDg5LjUgMjAwIDIwMHpNMTYzLjQgMzA1LjVjODguNyAwIDEzNy4yLTczLjUgMTM3LjItMTM3LjIgMC0yLjEgMC00LjItLjEtNi4yIDkuNC02LjggMTcuNi0xNS4zIDI0LjEtMjUtOC42IDMuOC0xNy45IDYuNC0yNy43IDcuNiAxMC02IDE3LjYtMTUuNCAyMS4yLTI2LjctOS4zIDUuNS0xOS42IDkuNS0zMC42IDExLjctOC44LTkuNC0yMS4zLTE1LjItMzUuMi0xNS4yLTI2LjYgMC00OC4yIDIxLjYtNDguMiA0OC4yIDAgMy44LjQgNy41IDEuMyAxMS00MC4xLTItNzUuNi0yMS4yLTk5LjQtNTAuNC00LjEgNy4xLTYuNSAxNS40LTYuNSAyNC4yIDAgMTYuNyA4LjUgMzEuNSAyMS41IDQwLjEtNy45LS4yLTE1LjMtMi40LTIxLjgtNnYuNmMwIDIzLjQgMTYuNiA0Mi44IDM4LjcgNDcuMy00IDEuMS04LjMgMS43LTEyLjcgMS43LTMuMSAwLTYuMS0uMy05LjEtLjkgNi4xIDE5LjIgMjMuOSAzMy4xIDQ1IDMzLjUtMTYuNSAxMi45LTM3LjMgMjAuNi01OS45I
2DIwLjYtMy45IDAtNy43LS4yLTExLjUtLjcgMjEuMSAxMy44IDQ2LjUgMjEuOCA3My43IDIxLjgiIHN0eWxlPSJmaWxsOiNmZmYiLz48L3N2Zz4=)}.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-ui/theme/components/tooltip/mixins/_tooltip.css","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/ckeditor5-media-embed/mediaembedediting.css"],names:[],mappings:"AAQC,0CAGC,kBAAmB,CAFnB,YAAa,CACb,qBAoBD,CCpBA,kFACC,aAqBD,CAHC,oBAnBD,kFAoBE,YAEF,CADC,CDlBA,sEAIC,cAAe,CAEf,iBAUD,CCoBD,wFAEC,SAAU,CADV,kBAED,CD3BE,wGAEC,aAAc,CADd,eAED,CAWD,6kBACC,YACD,CAYF,2LACC,mBACD,CElDA,MACC,0CAA2C,CAE3C,mDAA4D,CAC5D,2EACD,CAEA,mBACC,aA+FD,CA7FC,0CAEC,0CAA2C,CAD3C,0CA6BD,CA1BC,uEAIC,uBAA2B,CAC3B,qBAAsB,CAHtB,kDAAmD,CACnD,qCAAsC,CAFtC,qDAUD,CAJC,gFAEC,WAAY,CADZ,UAED,CAGD,4EACC,sDAAuD,CAGvD,iBAAkB,CADlB,iBAAkB,CAElB,sBAAuB,CAHvB,kBAUD,CALC,kFACC,4DAA6D,CAC7D,cAAe,CACf,yBACD,CAIF,wDAEC,gBAAiB,CADjB,eAED,CAEA,4UAIC,wvGACD,CAEA,2EACC,kBAaD,CAXC,wGACC,orBACD,CAEA,6GACC,UAKD,CAHC,mHACC,UACD,CAIF,4EACC,2DAcD,CAZC,yGACC,4jHACD,CAGA,8GACC,aAKD,CAHC,oHACC,UACD,CAIF,6EAEC,iDAaD,CAXC,0GACC,wiCACD,CAEA,+GACC,aAKD,CAHC,qHACC,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.css";\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@mixin ck-tooltip_enabled;\n\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&:hover {\n\t\t\t\t@mixin ck-tooltip_visible;\n\t\t\t}\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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t *   @media (hover) {\n\t\t *       display: block;\n\t\t *   }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
vendor: 13,708 bytes, line 2
2\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:""}]);
2var s=a},3525:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck.ck-media-form {\n\tdisplay: flex;\n\talign-items: flex-start;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\n\t& .ck-labeled-field-view {\n\t\tdisplay: inline-block;\n\t}\n\n\t& .ck-label {\n\t\tdisplay: none;\n\t}\n\n\t@mixin ck-media-phone {\n\t\tflex-wrap: wrap;\n\n\t\t& .ck-labeled-field-view {\n\t\t\tflex-basis: 100%;\n\t\t}\n\n\t\t& .ck-button {\n\t\t\tflex-basis: 50%;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},4082:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-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-left-width:0;border-top-left-radius:0}[dir=rtl] .ck.ck-input-color>.ck.ck-dropdown>.ck.ck-button.ck-input-color__button{border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.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:1px solid var(--ck-color-input-border);border-bottom-left-radius:0;border-bottom-right-radius:0;padding:calc(var(--ck-spacing-standard)/2) var(--ck-spacing-standard);width:100%}[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,i
2BAED,CC1BF,+CAGE,4BAA6B,CAD7B,yBAQF,CAVA,+CAQE,2BAA4B,CAD5B,wBAGF,CAGC,wEACC,SAoCD,CArCA,kFAME,2BAA4B,CAF5B,mBAAoB,CACpB,wBAgCF,CArCA,kFAYE,4BAA6B,CAF7B,oBAAqB,CACrB,yBA0BF,CAtBC,oFACC,oDACD,CAEA,4GC9BF,eD+CE,CAjBA,+PC1BD,qCD2CC,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,oDAEC,oDAAqD,CAGrD,2BAA4B,CAC5B,4BAA6B,CAH7B,qEAAwE,CAFxE,UAuBD,CAxBA,8DASE,yBAeF,CAxBA,8DAaE,wBAWF,CARC,gEACC,uCAMD,CAPA,0EAKE,sCAAuC,CADvC,cAGF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../mixins/_rounded.css";\n\n.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\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-left-width: 0;\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\tborder-right-width: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\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\tborder-bottom: 1px solid var(--ck-color-input-border);\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@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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},4880:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form {\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 s=a},9865:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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}
2.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.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 s=a},8085:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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{text-align:center}.ck .ck-insert-table-dropdown-grid-box{border:1px solid var(--ck-color-base-border);border-radius:1px;height:var(--ck-insert-table-dropdown-box-height);margin:var(--ck-insert-table-dropdown-box-margin);width:var(--ck-insert-table-dropdown-box-width)}.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,qCACC,iBACD,CAEA,uCAIC,4CAA6C,CAC7C,iBAAkB,CAHlB,iDAAkD,CAClD,iDAAkD,CAFlD,+CAUD,CAJC,6CAEC,6CAA8C,CAD9C,yCAED",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-insert-table-dropdown__grid {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: wrap;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-insert-table-dropdown-padding: 10px;\n\t--ck-insert-table-dropdown-box-height: 11px;\n\t--ck-insert-table-dropdown-box-width: 12px;\n\t--ck-insert-table-dropdown-box-margin: 1px;\n}\n\n.ck .ck-insert-table-dropdown__grid {\n\t/* The width of a container should match 10 items in a row so there will be a 10x10 grid. */\n\twidth: calc(var(--ck-insert-table-dropdown-box-width) * 10 + var(--ck-insert-table-dropdown-box-margin) * 20 + var(--ck-insert-table-dropdown-padding) * 2);\n\tpadding: var(--ck-insert-table-dropdown-padding) var(--ck-insert-table-dropdown-padding) 0;\n}\n\n.ck .ck-insert-table-dropdown__label {\n\ttext-align: center;\n}\n\n.ck .ck-insert-table-dropdown-grid-box {\n\twidth: var(--ck-insert-table-dropdown-box-width);\n\theight: 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\n\t&.ck-on {\n\t\tborder-color: var(--ck-color-focus-border);\n\t\tbackground: var(--ck-color-focus-outer-shadow);\n\t}\n}\n\n"],sourceRoot:""}]);var s=a},4104:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,w
2BAAyB,CACzB,gBAAiB,CAKjB,WAAY,CADZ,UAsBD,CAfC,wDAQC,wBAAiC,CANjC,aAAc,CACd,YAMD,CAEA,4BAEC,0BAA+B,CAD/B,eAED,CAMF,+BACC,gBACD,CAEA,+BACC,eACD,CAEA,+CAKC,oBAAqB,CAMrB,UACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck-content .table {\n\t/* Give the table widget some air and center it horizontally */\n\t/* The first value should be equal to --ck-spacing-large variable if used in the editor context\n\tto avoid the content jumping (See https://github.com/ckeditor/ckeditor5/issues/9825). */\n\tmargin: 0.9em auto;\n\tdisplay: table;\n\n\t& table {\n\t\t/* The table cells should have slight borders */\n\t\tborder-collapse: collapse;\n\t\tborder-spacing: 0;\n\n\t\t/* Table width and height are set on the parent <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 s=a},9888:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-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 s=a},5737:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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,
2CAGC,4GACC,eAAgB,CAGhB,qCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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 s=a},4777:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,":root{--ck-color-table-focused-cell-background:rgba(158,207,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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-table-focused-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck-widget.table {\n\t& td,\n\t& th {\n\t\t&.ck-editor__nested-editable.ck-editor__nested-editable_focused,\n\t\t&.ck-editor__nested-editable:focus {\n\t\t\t/* A very slight background to highlight the focused cell */\n\t\t\tbackground: var(--ck-color-table-focused-cell-background);\n\n\t\t\t/* Fixes the problem where surrounding cells cover the focused cell's border.\n\t\t\tIt does not fix the problem in all places but the UX is improved.\n\t\t\tSee https://github.com/ckeditor/ckeditor5-table/issues/29. */\n\t\t\tborder-style: none;\n\t\t\toutline: 1px solid var(--ck-color-focus-border);\n\t\t\toutline-offset: -1px; /* progressive enhancement - no IE support */\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},198:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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}
2.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../mixins/_rounded.css";\n\n:root {\n\t--ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},9221:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-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 input
2s). */\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 s=a},5593:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-table-selected-cell-background: hsla(208, 90%, 80%, .3);\n}\n\n.ck.ck-editor__editable .table table {\n\t& td.ck-editor__editable_selected,\n\t& th.ck-editor__editable_selected {\n\t\tposition: relative;\n\t\tcaret-color: transparent;\n\t\toutline: unset;\n\t\tbox-shadow: unset;\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/6446 */\n\t\t&:after {\n\t\t\tcontent: '';\n\t\t\tpointer-events: none;\n\t\t\tbackground-color: var(--ck-table-selected-cell-background);\n\t\t\tposition: absolute;\n\t\t\ttop: 0;\n\t\t\tleft: 0;\n\t\t\tright: 0;\n\t\t\tbottom: 0;\n\t\t}\n\n\t\t& ::selection,\n\t\t&:focus {\n\t\t\tbackground-color: transparent;\n\t\t}\n\n\t\t/*\n\t\t * To reduce the amount of noise, all widgets in the table selection have no outline and no selection handle.\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/9491.\n\t\t */\n\t\t& .ck-widget {\n\t\t\toutline: unset;\n\n\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\tdisplay: none;\n\t\t\t}\n\t\t}\n\t}\n}\n"],sourceRoot:""}]);var s=a},4499:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,".ck.ck-button,a.ck.ck-button{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;user-select:none}.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:block}@media (hover:none){.ck.ck-button .ck-tooltip,a.ck.ck-button .ck-tooltip{display:none}}.ck.ck-button,a.ck.ck-button{align-items:center;display:inline-flex;justify-content:left;position:relative}.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:hover .ck-tooltip,a.ck.ck-button:hover .ck-tooltip{opacity:1;visibility:visible}.ck.ck-button:focus:not(:hover) .ck-tooltip,a.ck.ck-button:focus:not(:hover) .ck-tooltip{display:none}.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);box-shadow:inset 0 2px 2px var(--ck-color-button-default-active-shadow)}.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.
2ck-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,a.ck.ck-button.ck-disabled .ck-button__icon{opacity:var(--ck-disabled-opacity)}.ck.ck-button.ck-disabled .ck-button__label,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);box-shadow:inset 0 2px 2px var(--ck-color-button-on-active-shadow)}.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-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);box-shadow:inset 0 2px 2px var(--ck-color-button-action-active-shadow)}.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-ui/theme/components/tooltip/mixins/_tooltip.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:"AAQA,6BCCC,qBAAsB,CACtB,wBAAyB,CACzB,oBAAqB,CACrB,gBD6BD,CE/BC,qDACC,aAqBD,CAHC,oBAnBD,qDAoBE,YAEF,CADC,CFvBF,6BAOC,kBAAmB,CADnB,mBAAoB,CAEpB,oBAAqB,CAHrB,iBA4BD,CAvBC,iEACC,YACD,CAGC,yGACC,oBACD,
2CAID,iFACC,sBACD,CEkBA,iEAEC,SAAU,CADV,kBAED,CAbA,yFACC,YACD,CC7BD,6BCAC,oDD0ID,CCvIE,6EACC,0DACD,CAEA,+EACC,2DAA4C,CAC5C,uEACD,CAID,qDACC,6DACD,CDhBD,6BEDC,eF2ID,CA1IA,wIEGE,qCFuIF,CA1IA,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,kBAqID,CA3GC,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,CAEA,uFK3FD,kCL6FC,CAGA,yFKhGD,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,+CDiIA,CC9HC,yFACC,qDACD,CAEA,2FACC,sDAA4C,CAC5C,kEACD,CAID,iEACC,wDACD,CDmHA,2DACC,iCACD,CAEA,+DACC,mCACD,CAID,2CC7IC,mDDkJD,CC/IE,2FACC,yDACD,CAEA,6FACC,0DAA4C,CAC5C,sEACD,CAID,mEACC,4DACD,CD6HD,2CAIC,wCACD,CAEA,uCAEC,eACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n@import "../tooltip/mixins/_tooltip.css";\n\n.ck.ck-button,\na.ck.ck-button {\n\t@mixin ck-unselectable;\n\t@mixin ck-tooltip_enabled;\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\t&:hover {\n\t\t@mixin ck-tooltip_visible;\n\t}\n\n\t/* Get rid of the native focus outline around the tooltip when focused (but not :hover). */\n\t&:focus:not(:hover) {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t *   @media (hover) {\n\t\t *       display: block;\n\t\t *   }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n@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;
2\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\t}\n\n\t&.ck-button-save {\n\t\tcolor: var(--ck-color-button-save);\n\t}\n\n\t&.ck-button-cancel {\n\t\tcolor: var(--ck-color-button-cancel);\n\t}\n}\n\n/* A style of the button which handles the primary action. */\n.ck.ck-button-action,\na.ck.ck-button-action {\n\t@mixin ck-button-colors --ck-color-button-action;\n\n\tcolor: var(--ck-color-button-action-text);\n}\n\n.ck.ck-button-bold,\na.ck.ck-button-bold {\n\tfont-weight: bold;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements a button of given background color.\n *\n * @param {String} $background - Background color of the button.\n * @param {String} $border - Border color of the button.\n */\n@define-mixin ck-button-colors $prefix {\n\tbackground: var($(prefix)-background);\n\n\t&:not(.ck-disabled) {\n\t\t&:hover {\n\t\t\tbackground: var($(prefix)-hover-background);\n\t\t}\n\n\t\t&:active {\n\t\t\tbackground: var($(prefix)-active-background);\n\t\t\tbox-shadow: inset 0 2px 2px var($(prefix)-active-shadow);\n\t\t}\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/98 */\n\t&.ck-disabled {\n\t\tbackground: var($(prefix)-disabled-background);\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-sha
2dow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var s=a},9681:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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:1.0769230769em;--ck-switch-button-toggle-spacing:1px;--ck-switch-button-translation:calc(var(--ck-switch-button-toggle-width) - var(--ck-switch-button-toggle-inner-size) - var(--ck-switch-button-toggle-spacing)*2)}[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);transition:background .4s ease;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);margin:var(--ck-switch-button-toggle-spacing);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:0 0 0 5px var(--ck-color-switch-button-inner-shadow)}.ck.ck-button.ck-switchbutton.ck-disabled .ck-button__toggle{opacity:var(--ck-disabled-opacity)}.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,mDAAoD,CACpD,qCAAsC,CACtC,gKAKD,CAGC,0DAGE,4CAOF,CAVA,0DAQE,2CAEF,CAEA,iDC3BA,eDoEA,CAzCA,yICvBC,qCDgED,CAzCA,2DAKE,gBAoCF,CAzCA,2DAUE,iBA+BF,CAzCA,iDAiBC,uDAAwD,CAHxD,8BAAiC,CAEjC,0CAyBD,CAtBC,2EC9CD,eD2DC,CAbA,6LC1CA,qCAAsC,CD4CpC,8CAWF,CAbA,2EASC,yDAA0D,CAD1D,gDAAiD,CAFjD,6CAA8C,CAM9C,uBAA0B,CAL1B,+CAMD,CAEA,uDACC,6DAKD,CAHC,iFACC,+DACD,CAIF,6DExEA,kCF0EA,CAEA,uDACC,sDAkBD,CAhBC,6DACC,4DACD,CAEA,2FAKE,2DAMF,CAXA,2FASE,oEAEF",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-button.ck-switchbutton {\n\t& .ck-button__toggle {\n\t\tdisplay: block;\n\n\t\t& .ck-button__toggle__inner {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n/* Note: To avoid rendering issues (aliasing) but to preserve the responsive nature\nof the component, floating–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: 1.0769230769em;\n\t--ck-switch-button-toggle-spacing: 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\t2 * var(--ck-switch-button-toggle-spacing)\n\t);\n}\n\n.ck.ck-button.ck-switchbutton {\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/* Gently animate the background color of the toggle switch */\n\t\ttransition: background 400ms ease;\n\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\t/* Leave some tiny bit of space around the inner part of the switch */\n\t\t\tmargin: var(--ck-switch-button-toggle-spacing);\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: 0 0 0 5px var(--ck-color-switch-button-inner-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&.ck-on .ck-button__toggle {\n\t\tbackground: var(--ck-color-switch-button-on-background);\n\n\t\t&:hover {\n\t\t\tbackground: var(--ck-color-switch-button-on-hover-background);\n\t\t}\n\n\t\t& .ck-button__toggle__inner {\n\t\t\t/*\n\t\t\t * Move the toggle switch to the right. It will be animated.\n\t\t\t */\n\t\t\t@mixin ck-dir ltr {\n\t\t\t\ttransform: translateX( var( --ck-switch-button-translation ) );\n\t\t\t}\n\n\t\t\t@mixin ck-dir rtl {\n\t\t\t\ttransform: translateX( calc( -1 * var( --ck-switch-button-translation ) ) );\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n"],sourceRoot:""}]);var s=a},4923:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,".ck.ck-color-grid{display:grid}:root{--ck-color-grid-tile-size:24px;--ck-color-color-grid-check-icon:#000}.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;
2transition: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,qCACD,CAEA,kBACC,YAAa,CACb,WACD,CAEA,wBAOC,QAAS,CALT,qCAAsC,CAEtC,yCAA0C,CAD1C,wCAAyC,CAEzC,SAAU,CACV,8BAA+B,CAL/B,oCAyCD,CAjCC,oCACC,YAAa,CACb,gBACD,CAEA,4DACC,gDACD,CAEA,oCAEC,2CAA4C,CAD5C,YAED,CAEA,8BACC,8FAKD,CAHC,0CACC,aACD,CAGD,8HAIC,QACD,CAEA,gGAEC,iGACD,CAGD,yBACC,oCACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-color-grid {\n\tdisplay: grid;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-grid-tile-size: 24px;\n\n\t/* Not using global colors here because these may change but some colors in a pallette\n\t * require special treatment. For instance, this ensures no matter what the UI text color is,\n\t * the check icon will look good on the black color tile. */\n\t--ck-color-color-grid-check-icon: hsl(0, 0%, 0%);\n}\n\n.ck.ck-color-grid {\n\tgrid-gap: 5px;\n\tpadding: 8px;\n}\n\n.ck.ck-color-grid__tile {\n\twidth: var(--ck-color-grid-tile-size);\n\theight: var(--ck-color-grid-tile-size);\n\tmin-width: var(--ck-color-grid-tile-size);\n\tmin-height: var(--ck-color-grid-tile-size);\n\tpadding: 0;\n\ttransition: .2s ease box-shadow;\n\tborder: 0;\n\n\t&.ck-disabled {\n\t\tcursor: unset;\n\t\ttransition: unset;\n\t}\n\n\t&.ck-color-table__color-tile_bordered {\n\t\tbox-shadow: 0 0 0 1px var(--ck-color-base-border);\n\t}\n\n\t& .ck.ck-icon {\n\t\tdisplay: none;\n\t\tcolor: var(--ck-color-color-grid-check-icon);\n\t}\n\n\t&.ck-on {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-base-text);\n\n\t\t& .ck.ck-icon {\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t&.ck-on,\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\t/* Disable the default .ck-button\'s border ring. */\n\t\tborder: 0;\n\t}\n\n\t&:focus:not( .ck-disabled ),\n\t&:hover:not( .ck-disabled ) {\n\t\tbox-shadow: inset 0 0 0 1px var(--ck-color-base-background), 0 0 0 2px var(--ck-color-focus-border);\n\t}\n}\n\n.ck.ck-color-grid__label {\n\tpadding: 0 var(--ck-spacing-standard);\n}\n'],sourceRoot:""}]);var s=a},3488:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-button.ck-dropdown__button.ck-on .ck-tooltip{display:none}.ck.ck-dropdown .ck-dropdown__panel{-webkit-backface-visibility:hidden;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
2: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-ui/theme/components/tooltip/mixins/_tooltip.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:"AAOA,MACC,4BACD,CAEA,gBACC,oBAAqB,CACrB,iBAqFD,CAnFC,oCACC,mBAAoB,CACpB,2BACD,CAGA,+CACC,UAOD,CCUA,iEACC,YACD,CDVA,oCAGC,kCAAmC,CAEnC,YAAa,CAEb,sCAAuC,CAEvC,iBAAkB,CAHlB,yBA4DD,CAvDC,+DACC,oBACD,CAEA,mSAKC,WACD,CAEA,mSAUC,WAAY,CADZ,QAED,CAEA,o
2HAEC,MACD,CAEA,oHAEC,OACD,CAEA,kHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAEA,sHAGC,QAAS,CACT,0BACD,CAQF,mCACC,mCACD,CEhGA,MACC,sDACD,CAEA,gBAEC,iBA2ED,CAzEC,oCACC,mCACD,CAGC,8CAIC,sCAAuC,CAHvC,gCAID,CAIA,8CACC,+BAAgC,CAGhC,oCACD,CAGD,gDC/BA,kCDiCA,CAIE,mFAEC,oCACD,CAIA,mFAEC,qCACD,CAID,iEAEC,eAAgB,CAChB,sBAAuB,CAFvB,SAGD,CAGA,6EC1DD,kCD4DC,CAGA,qDACC,2BAA4B,CAC5B,4BACD,CAEA,sGACC,UACD,CAGA,yHAEC,eAKD,CAHC,qIE7EF,2CF+EE,CAKH,uBGlFC,eH8GD,CA5BA,qFG9EE,qCH0GF,CA5BA,uBAIC,oDAAqD,CACrD,sDAAuD,CACvD,QAAS,CE1FT,oCAA8B,CF6F9B,cAmBD,CAfC,6CACC,wBACD,CAEA,6CACC,yBACD,CAEA,6CACC,2BACD,CAEA,6CACC,4BACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import \"../tooltip/mixins/_tooltip.css\";\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\n\t\t/* Disable main button's tooltip when the dropdown is open. Otherwise the panel may\n\t\tpartially cover the tooltip */\n\t\t&.ck-on {\n\t\t\t@mixin ck-tooltip_disabled;\n\t\t}\n\t}\n\n\t& .ck-dropdown__panel {\n\t\t/* This is to get rid of flickering when the tooltip is shown under the panel,\n\t\twhich looks like the panel moves vertically a pixel down and up. */\n\t\t-webkit-backface-visibility: hidden;\n\n\t\tdisplay: none;\n\t\tz-index: var(--ck-z-modal);\n\t\tmax-width: var(--ck-dropdown-max-width);\n\n\t\tposition: absolute;\n\n\t\t&.ck-dropdown__panel-visible {\n\t\t\tdisplay: inline-block;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_n,\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_nme {\n\t\t\tbottom: 100%;\n\t\t}\n\n\t\t&.ck-dropdown__panel_se,\n\t\t&.ck-dropdown__panel_sw,\n\t\t&.ck-dropdown__panel_smw,\n\t\t&.ck-dropdown__panel_sme,\n\t\t&.ck-dropdown__panel_s {\n\t\t\t/*\n\t\t\t * Using transform: translate3d( 0, 100%, 0 ) causes blurry dropdown on Chrome 67-78+ on non-retina displays.\n\t\t\t * See https://github.com/ckeditor/ckeditor5/issues/1053.\n\t\t\t */\n\t\t\ttop: 100%;\n\t\t\tbottom: auto;\n\t\t}\n\n\t\t&.ck-dropdown__panel_ne,\n\t\t&.ck-dropdown__panel_se {\n\t\t\tleft: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_nw,\n\t\t&.ck-dropdown__panel_sw {\n\t\t\tright: 0px;\n\t\t}\n\n\t\t&.ck-dropdown__panel_s,\n\t\t&.ck-dropdown__panel_n {\n\t\t\t/* Positioning panels relative to the center of the button */\n\t\t\tleft: 50%;\n\t\t\ttransform: translateX(-50%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nmw,\n\t\t&.ck-dropdown__panel_smw {\n\t\t\t/* Positioning panels relative to the middle-west of the button */\n\t\t\tleft: 75%;\n\t\t\ttransform: translateX(-75%);\n\t\t}\n\n\t\t&.ck-dropdown__panel_nme,\n\t\t&.ck-dropdown__panel_sme {\n\t\t\t/* Positioning panels relative to the middle-east of the button */\n\t\t\tleft: 25%;\n\t\t\ttransform: translateX(-25%);\n\t\t}\n\t}\n}\n\n/*\n * Toolbar dropdown panels should be always above the UI (eg. other dropdown panels) from the editor's content.\n * See https://github.com/ckeditor/ckeditor5/issues/7874\n */\n.ck.ck-toolbar .ck-dropdown__panel {\n\tz-index: calc( var(--ck-z-modal) + 1 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t *   @media (hover) {\n\t\t *       display: block;\n\t\t *   }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../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 
2just an icon have the right inner spacing */\n\t\t\t\tpadding-left: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\t&:not(.ck-button_with-text) {\n\t\t\t\t/* Make sure dropdowns with just an icon have the right inner spacing */\n\t\t\t\tpadding-right: var(--ck-spacing-small);\n\t\t\t}\n\t\t}\n\n\t\t/* #23 */\n\t\t& .ck-button__label {\n\t\t\twidth: 7em;\n\t\t\toverflow: hidden;\n\t\t\ttext-overflow: ellipsis;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/70 */\n\t\t&.ck-disabled .ck-button__label {\n\t\t\t@mixin ck-disabled;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/816 */\n\t\t&.ck-on {\n\t\t\tborder-bottom-left-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t&.ck-dropdown__button_label-width_auto .ck-button__label {\n\t\t\twidth: auto;\n\t\t}\n\n\t\t/* https://github.com/ckeditor/ckeditor5/issues/8699 */\n\t\t&.ck-off:active,\n\t\t&.ck-on:active {\n\t\t\tbox-shadow: none;\n\t\t\t\n\t\t\t&:focus {\n\t\t\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-dropdown__panel {\n\t@mixin ck-rounded-corners;\n\t@mixin ck-drop-shadow;\n\n\tbackground: var(--ck-color-dropdown-panel-background);\n\tborder: 1px solid var(--ck-color-dropdown-panel-border);\n\tbottom: 0;\n\n\t/* Make sure the panel is at least as wide as the drop-down\'s button. */\n\tmin-width: 100%;\n\n\t/* Disabled corner border radius to be consistent with the .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-dropdown__panel_se {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_sw {\n\t\tborder-top-right-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_ne {\n\t\tborder-bottom-left-radius: 0;\n\t}\n\n\t&.ck-dropdown__panel_nw {\n\t\tborder-bottom-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which indicates that an element holding it is disabled.\n */\n@define-mixin ck-disabled {\n\topacity: var(--ck-disabled-opacity);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},6875:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n.ck.ck-dropdown .ck-dropdown__panel .ck-list {\n\t/* Disabled radius of top-left border to be consistent with .dropdown__button\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t@mixin ck-rounded-corners {\n\t\tborder-top-left-radius: 0;\n\t}\n\n\t/* Make sure the button belonging to the first/last child of the list goes well with the\n\tborder radius of the entire panel. */\n\t& .ck-list__item {\n\t\t&:first-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\n\t\t&:last-child .ck-button {\n\t\t\t@mixin ck-rounded-corners {\n\t\t\t\tborder-top-left-radius: 0;\n\t\t\t\tborder-top-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},66:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,'.ck.ck-splitbutton{font-size:inherit}.ck.ck-splitbutton .ck-splitbutton__action:focus{z-index:calc(var(--ck-z-default) + 1)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button .ck-tooltip{display:none}:root{--ck-color-split-button-hover-background:#ebebeb;--ck-color-split-button-hover-border:#b3b3b3}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-right-radius:unset;border-top-right-radius:unset}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__action{border-bottom-left-radius:unset;border-top-left-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow{min-width:unset}[dir=ltr] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-left-radius:unset;border-top-left-radius:unset}[dir=rtl] .ck.ck-splitbutton>.ck-splitbutton__arrow{border-bottom-right-radius:unset;border-top-right-radius:unset}.ck.ck-splitbutton>.ck-splitbutton__arrow svg{width:var(--ck-dropdown-arrow-size)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover),.ck.ck-splitbutton:hover>.ck-button:not(.ck-on):not(.ck-disabled):not(:hover){background:var(--ck-color-split-button-hover-background)}.ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,.ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{background-color:var(--ck-color-split-button-hover-border);content:"";height:100%;position:absolute;width:1px}[dir=ltr] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=ltr] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{left:-1px}[dir=rtl] .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow:not(.ck-disabled):after,[dir=rtl] .ck.ck-splitbutton:hover>.ck-splitbutton__arrow:not(.ck-disabled):after{right:-1px}.ck.ck-splitbutton.ck-splitbutton_open{border-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__action,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__action{border-bottom-left-radius:0}.ck-rounded-corners .ck.ck-splitbutton.ck-splitbutton_open>.ck-splitbutton__arrow,.ck.ck-splitbutton.ck-splitbutton_open.ck-rounded-corners>.ck-splitbutton__arrow{border-bottom-right-radius:0}',"",{version:3,sources:["webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/dropdown/splitbutton.css","webpack://./node_modules/@ckeditor/ckeditor5-ui/theme/components/tooltip/mixins/_tooltip.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:"AAOA,mBAEC,iBAUD,CARC,iDACC,qCACD,CC0BA,8DACC,YACD,CClCD,MACC,gDAAyD,CACzD,4CACD,CAMC,oIAKE,gCAAiC,CADjC,6BASF,CAbA,oIAWE,+BAAgC,CADhC,4BAGF,CAEA,0CAGC,eAiBD,CApBA,oDAQE,+BAAgC,CADhC,4BAaF,CApBA,oDAcE,gCAAiC,CADjC,6BAOF,CAHC,8CACC,mCACD,CASA,0KACC,wDACD,CAIA,8JAKC,0DAA2D,CAJ3D,UAAW,CAGX,WAAY,CAFZ,iBAAkB,CAClB,SAGD,CAGC,kLACC,SACD,
2CAIA,kLACC,UACD,CAMF,uCC7EA,eDuFA,CAVA,qHCzEC,qCDmFD,CARE,qKACC,2BACD,CAEA,mKACC,4BACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../tooltip/mixins/_tooltip.css";\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\t/* Disable tooltips for the buttons when the button is "open" */\n\t&.ck-splitbutton_open > .ck-button {\n\t\t@mixin ck-tooltip_disabled;\n\t}\n}\n\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Enables the tooltip, which is the tooltip is in DOM but\n * not yet displayed.\n */\n@define-mixin ck-tooltip_enabled {\n\t& .ck-tooltip {\n\t\tdisplay: block;\n\n\t\t/*\n\t\t * Don't display tooltips in devices which don't support :hover.\n\t\t * In fact, it's all about iOS, which forces user to click UI elements twice to execute\n\t\t * the primary action, when tooltips are enabled.\n\t\t *\n\t\t * Q: OK, but why not the following query?\n\t\t *\n\t\t *   @media (hover) {\n\t\t *       display: block;\n\t\t *   }\n\t\t *\n\t\t * A: Because FF does not support it and it would completely disable tooltips\n\t\t * in that browser.\n\t\t *\n\t\t * More in https://github.com/ckeditor/ckeditor5/issues/920.\n\t\t */\n\t\t@media (hover:none) {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n\n/**\n * Disables the tooltip making it disappear from DOM.\n */\n@define-mixin ck-tooltip_disabled {\n\t& .ck-tooltip {\n\t\tdisplay: none;\n\t}\n}\n\n/**\n * Shows the tooltip, which is already in DOM.\n * Requires `ck-tooltip_enabled` first.\n */\n@define-mixin ck-tooltip_visible {\n\t& .ck-tooltip {\n\t\tvisibility: visible;\n\t\topacity: 1;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-color-split-button-hover-background: hsl(0, 0%, 92%);\n\t--ck-color-split-button-hover-border: hsl(0, 0%, 70%);\n}\n\n.ck.ck-splitbutton {\n\t/*\n\t * Note: ck-rounded and ck-dir mixins don\'t go together (because they both use @nest).\n\t */\n\t&:hover > .ck-splitbutton__action,\n\t&.ck-splitbutton_open > .ck-splitbutton__action {\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the action button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the action button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\t}\n\n\t& > .ck-splitbutton__arrow {\n\t\t/* It\'s a text-less button and since the icon is positioned absolutely in such situation,\n\t\tit must get some arbitrary min-width. */\n\t\tmin-width: unset;\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t/* Don\'t round the arrow button on the left side */\n\t\t\tborder-top-left-radius: unset;\n\t\t\tborder-bottom-left-radius: unset;\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t/* Don\'t round the arrow button on the right side */\n\t\t\tborder-top-right-radius: unset;\n\t\t\tborder-bottom-right-radius: unset;\n\t\t}\n\n\t\t& svg {\n\t\t\twidth: var(--ck-dropdown-arrow-size);\n\t\t}\n\t}\n\n\t/* When the split button is "open" (the arrow is on) or being hovered, it should get some styling\n\tas a whole. The background of both buttons should stand out and there should be a visual\n\tseparation between both buttons. */\n\t&.ck-splitbutton_open,\n\t&:hover {\n\t\t/* When the split button hovered as a whole, not as individual buttons. */\n\t\t& > .ck-button:not(.ck-on):not(.ck-disabled):not(:hover) {\n\t\t\tbackground: var(--ck-color-split-button-hover-background);\n\t\t}\n\n\t\t/* Splitbutton separator needs to be set with the ::after pseudoselector\n\t\tto display properly the borders on focus */\n\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\tcontent: \'\';\n\t\t\tposition: absolute;\n\t\t\twidth: 1px;\n\t\t\theight: 100%;\n\t\t\tbackground-color: var(--ck-color-split-button-hover-border);\n\t\t}\n\n\t\t@nest [dir="ltr"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tleft: -1px;\n\t\t\t}\n\t\t}\n\n\t\t@nest [dir="rtl"] & {\n\t\t\t& > .ck-splitbutton__arrow:not(.ck-disabled)::after {\n\t\t\t\tright: -1px;\n\t\t\t}\n\t\t}\n\t}\n\n\t/* Don\'t round the bottom left and right corners of the buttons when "open"\n\thttps://github.com/ckeditor/ckeditor5/issues/816 */\n\t&.ck-splitbutton_open {\n\t\t@mixin ck-rounded-corners {\n\t\t\t& > .ck-splitbutton__action {\n\t\t\t\tborder-bottom-left-radius: 0;\n\t\t\t}\n\n\t\t\t& > .ck-splitbutton__arrow {\n\t\t\t\tborder-bottom-right-radius: 0;\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},5075:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-toolbar-dropdown-max-width: 60vw;\n}\n\n.ck.ck-toolbar-dropdown > .ck-dropdown__panel {\n\t/* https://github.com/ckeditor/ckeditor5/issues/5586 */\n\twidth: max-content;\n\tmax-width: var(--ck-toolbar-dropdown-max-width);\n\n\t& .ck-button {\n\t\t&:focus {\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-toolbar-dropdown .ck-toolbar {\n\tborder: 0;\n}\n"],sourceRoot:""}]);var s=a},4547:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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:not(.ck-editor__nested-editable).ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-editor__editable:not(.ck-editor__nested-editable).ck-focused{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}
2.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_shadow.css";\n@import "../../../mixins/_focus.css";\n@import "../../mixins/_button.css";\n\n:root {\n\t--ck-color-editable-blur-selection: hsl(0, 0%, 85%);\n}\n\n.ck.ck-editor__editable:not(.ck-editor__nested-editable) {\n\t@mixin ck-rounded-corners;\n\n\t&.ck-focused {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-inner-shadow);\n\t}\n}\n\n.ck.ck-editor__editable_inline {\n\toverflow: auto;\n\tpadding: 0 var(--ck-spacing-standard);\n\tborder: 1px solid transparent;\n\n\t&[dir="ltr"] {\n\t\ttext-align: left;\n\t}\n\n\t&[dir="rtl"] {\n\t\ttext-align: right;\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/116 */\n\t& > *:first-child {\n\t\tmargin-top: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/847 */\n\t& > *:last-child {\n\t\t/*\n\t\t * This value should match with the default margins of the block elements (like .media or .image)\n\t\t * to avoid a content jumping when the fake selection container shows up (See https://github.com/ckeditor/ckeditor5/issues/9825).\n\t\t */\n\t\tmargin-bottom: var(--ck-spacing-large);\n\t}\n\n\t/* https://github.com/ckeditor/ckeditor5/issues/6517 */\n\t&.ck-blurred ::selection {\n\t\tbackground: var(--ck-color-editable-blur-selection);\n\t}\n}\n\n/* https://github.com/ckeditor/ckeditor5-theme-lark/issues/111 */\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_n"] {\n\t&::after {\n\t\tborder-bottom-color: var(--ck-color-base-foreground);\n\t}\n}\n\n.ck.ck-balloon-panel.ck-toolbar-container[class*="arrow_s"] {\n\t&::after {\n\t\tborder-top-color: var(--ck-color-base-foreground);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-sha
2dow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},5523:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-form__header {\n\tdisplay: flex;\n\tflex-direction: row;\n\tflex-wrap: nowrap;\n\talign-items: center;\n\tjustify-content: space-between;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-form-header-height: 38px;\n}\n\n.ck.ck-form__header {\n\tpadding: var(--ck-spacing-small) var(--ck-spacing-large);\n\theight: var(--ck-form-header-height);\n\tline-height: var(--ck-form-header-height);\n\tborder-bottom: 1px solid var(--ck-color-base-border);\n\n\t& .ck-form__header__label {\n\t\tfont-weight: bold;\n\t}\n}\n"],sourceRoot:""}]);var s=a},1174:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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 *{color:inherit;cursor:inherit}.ck.ck-icon :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,CAY1B,qBAcD,CAZC,0BARA,aAAc,CAGd,cAgBA,CAJC,yBAEC,iBACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-icon {\n\tvertical-align: middle;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-icon-size: calc(var(--ck-line-height-base) * var(--ck-font-size-normal));\n}\n\n.ck.ck-icon {\n\twidth: var(--ck-icon-size);\n\theight: var(--ck-icon-size);\n\n\t/* Multiplied by the height of the line in "px" should give SVG "viewport" dimensions */\n\tfont-size: .8333350694em;\n\n\tcolor: inherit;\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\n\t\t/* Allows dynamic coloring of the icons. */\n\t\tcolor: inherit;\n\n\t\t&:not([fill]) {\n\t\t\t/* Needed by FF. */\n\t\t\tfill: currentColor;\n\t\t}\n\t}\n}\n'],sourceRoot:""}]);var s=a},6985:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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);
2transition: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_focus.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-input-width: 18em;\n\n\t/* Backward compatibility. */\n\t--ck-input-text-width: var(--ck-input-width);\n}\n\n.ck.ck-input {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-input-background);\n\tborder: 1px solid var(--ck-color-input-border);\n\tpadding: var(--ck-spacing-extra-tiny) var(--ck-spacing-medium);\n\tmin-width: var(--ck-input-width);\n\n\t/* This is important to stay of the same height as surrounding buttons */\n\tmin-height: var(--ck-ui-component-min-height);\n\n\t/* Apply some smooth transition to the box-shadow and border. */\n\ttransition: box-shadow .1s ease-in-out, border .1s ease-in-out;\n\n\t&:focus {\n\t\t@mixin ck-focus-ring;\n\t\t@mixin ck-box-shadow var(--ck-focus-outer-shadow);\n\t}\n\n\t&[readonly] {\n\t\tborder: 1px solid var(--ck-color-input-disabled-border);\n\t\tbackground: var(--ck-color-input-disabled-background);\n\t\tcolor: var(--ck-color-input-disabled-text);\n\n\t\t&:focus {\n\t\t\t/* The read-only input should have a slightly less visible shadow when focused. */\n\t\t\t@mixin ck-box-shadow var(--ck-focus-disabled-outer-shadow);\n\t\t}\n\t}\n\n\t&.ck-error {\n\t\tborder-color: var(--ck-color-input-error-border);\n\t\tanimation: ck-input-shake .3s ease both;\n\n\t\t&:focus {\n\t\t\t@mixin ck-box-shadow var(--ck-focus-error-outer-shadow);\n\t\t}\n\t}\n}\n\n@keyframes ck-input-shake {\n\t20% {\n\t\ttransform: translateX(-2px);\n\t}\n\n\t40% {\n\t\ttransform: translateX(2px);\n\t}\n\n\t60% {\n\t\ttransform: translateX(-1px);\n\t}\n\n\t80% {\n\t\ttransform: translateX(1px);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-sha
2dow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},2751:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tdisplay: block;\n}\n\n.ck.ck-voice-label {\n\tdisplay: none;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-label {\n\tfont-weight: bold;\n}\n"],sourceRoot:""}]);var s=a},8111:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-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-spacing-medium),calc(var(--ck-font-size-base)*.6)) scale(1)}[dir=rtl] .ck.ck-labeled-field-view.ck-disabled.ck-labeled-field-view_empty>.ck.ck-labeled-field-view__input-wrapper>
2.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-spacing-medium)*-1),calc(var(--ck-font-size-base)*.6)) 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,yEACD,CAEA,0BCHC,eD4GD,CAzGA,2FCCE,qCDwGF,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,wFAYF,CAfA,oUAOE,iGAQF,CAfA,gTAaC,sBAAuB,CAFvB,iEAAkE,CAGlE,SACD,CAKA,8FACC,sBACD,CAGA,yIACC,SACD,CAGA,kMACC,8HACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-labeled-field-view {\n\t& > .ck.ck-labeled-field-view__input-wrapper {\n\t\tdisplay: flex;\n\t\tposition: relative;\n\t}\n\n\t& .ck.ck-label {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-labeled-field-view-transition: .1s cubic-bezier(0, 0, 0.24, 0.95);\n\t--ck-labeled-field-empty-unfocused-max-width: 100% - 2 * var(--ck-spacing-medium);\n\t--ck-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}
2\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-spacing-medium), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t@mixin ck-dir rtl {\n\t\t\ttransform: translate(calc(-1 * var(--ck-spacing-medium)), calc(0.6 * var(--ck-font-size-base))) scale(1);\n\t\t}\n\n\t\t/* Compensate for the default translate position. */\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width));\n\n\t\tbackground: transparent;\n\t\tpadding: 0;\n\t}\n\n\t/*------ DropdownView integration ----------------------------------------------------------------------------------- */\n\n\t/* Make sure dropdown\' background color in any of dropdown\'s state does not collide with labeled field. */\n\t& > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck.ck-button {\n\t\tbackground: transparent;\n\t}\n\n\t/* When the dropdown is "empty", the labeled field label replaces its label. */\n\t&.ck-labeled-field-view_empty > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown > .ck-button > .ck-button__label {\n\t\topacity: 0;\n\t}\n\n\t/* Make sure the label of the empty, unfocused input does not cover the dropdown arrow. */\n\t&.ck-labeled-field-view_empty:not(.ck-labeled-field-view_focused):not(.ck-labeled-field-view_placeholder) > .ck.ck-labeled-field-view__input-wrapper > .ck-dropdown + .ck-label {\n\t\tmax-width: calc(var(--ck-labeled-field-empty-unfocused-max-width) - var(--ck-dropdown-arrow-size) - var(--ck-spacing-standard));\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},1162:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-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,2DACC,4CACD,CAGD,qDACC,uDACD,CAMA,yCACC,0CAA2C,CAC3C,aAMD,CAJC,iEACC,uDAAwD,CACxD,aACD,CAKH,uBAGC,sCAAuC,
2CAFvC,UAAW,CACX,UAED",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-list {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-direction: column;\n\n\t& .ck-list__item,\n\t& .ck-list__separator {\n\t\tdisplay: block;\n\t}\n\n\t/* Make sure that whatever child of the list item gets focus, it remains on the\n\ttop. Thanks to that, styles like box-shadow, outline, etc. are not masked by\n\tadjacent list items. */\n\t& .ck-list__item > *:focus {\n\t\tposition: relative;\n\t\tz-index: var(--ck-z-default);\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_disabled.css";\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-list {\n\t@mixin ck-rounded-corners;\n\n\tlist-style-type: none;\n\tbackground: var(--ck-color-list-background);\n}\n\n.ck.ck-list__item {\n\tcursor: default;\n\tmin-width: 12em;\n\n\t& .ck-button {\n\t\tmin-height: unset;\n\t\twidth: 100%;\n\t\ttext-align: left;\n\t\tborder-radius: 0;\n\n\t\t/* List items should have the same height. Use absolute units to make sure it is so\n\t\t   because e.g. different heading styles may have different height\n\t\t   https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\tpadding:\n\t\t\tcalc(.2 * var(--ck-line-height-base) * var(--ck-font-size-base))\n\t\t\tcalc(.4 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\n\t\t& .ck-button__label {\n\t\t\t/* https://github.com/ckeditor/ckeditor5-heading/issues/63 */\n\t\t\tline-height: calc(1.2 * var(--ck-line-height-base) * var(--ck-font-size-base));\n\t\t}\n\n\t\t&:active {\n\t\t\tbox-shadow: none;\n\t\t}\n\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-button-on-background);\n\t\t\tcolor: var(--ck-color-list-button-on-text);\n\n\t\t\t&:active {\n\t\t\t\tbox-shadow: none;\n\t\t\t}\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-on-background-focus);\n\t\t\t}\n\n\t\t\t&:focus:not(.ck-disabled) {\n\t\t\t\tborder-color: var(--ck-color-base-background);\n\t\t\t}\n\t\t}\n\n\t\t&:hover:not(.ck-disabled) {\n\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t}\n\t}\n\n\t/* It\'s unnecessary to change the background/text of a switch toggle; it has different ways\n\tof conveying its state (like the switcher) */\n\t& .ck-switchbutton {\n\t\t&.ck-on {\n\t\t\tbackground: var(--ck-color-list-background);\n\t\t\tcolor: inherit;\n\n\t\t\t&:hover:not(.ck-disabled) {\n\t\t\t\tbackground: var(--ck-color-list-button-hover-background);\n\t\t\t\tcolor: inherit;\n\t\t\t}\n\t\t}\n\t}\n}\n\n.ck.ck-list__separator {\n\theight: 1px;\n\twidth: 100%;\n\tbackground: var(--ck-color-base-border);\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},8245:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-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:1px 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}.ck.ck-balloon-panel[class*=arrow_n]:after{border-color:transparent transparent var(--ck-color-panel-background) transparent;margin-top:var(--ck-balloon-arrow-offset)}.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))}.ck.ck-balloon-panel[class*=arrow_s]:after{border-color:var(--ck-color-panel-background) transparent transparent transparent;margin-bottom:var(--ck-balloon-arrow-offset
vendor: 2,115 bytes, line 2
2)}.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)}
2',"",{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,8BAA+B,CAC/B,iCAAkC,CAClC,oEACD,CAEA,qBCJC,eD4ID,CAxIA,iFCAE,qCDwIF,CAxIA,qBAMC,2CAA4C,CAC5C,6CAA8C,CEb9C,oCAA8B,CFU9B,eAoID,CA9HE,+GAIC,kBAAmB,CADnB,QAAS,CADT,OAGD,CAIA,uFAEC,mHACD,CAEA,4CACC,6EACD,CAEA,2CACC,iFAAkF,CAClF,yCACD,CAIA,uFAEC,mHACD,CAEA,4CACC,iEAAkE,CAClE,uDACD,CAEA,2CACC,iFAAkF,CAClF,4CACD,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",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* Make sure the balloon arrow does not float over its children. */\n\t--ck-balloon-panel-arrow-z-index: calc(var(--ck-z-default) - 3);\n}\n\n.ck.ck-balloon-panel {\n\tdisplay: none;\n\tposition: absolute;\n\n\tz-index: var(--ck-z-modal);\n\n\t&.ck-balloon-panel_with-arrow {\n\t\t&::before,\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tposition: absolute;\n\t\t}\n\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_n"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&[class*="arrow_s"] {\n\t\t&::before {\n\t\t\tz-index: var(--ck-balloon-panel-arrow-z-index);\n\t\t}\n\n\t\t&::after {\n\t\t\tz-index: calc(var(--ck-balloon-panel-arrow-z-index) + 1);\n\t\t}\n\t}\n\n\t&.ck-balloon-panel_visible {\n\t\tdisplay: block;\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-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: 1px 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}\n\n\t\t&::after {\n\t\t\tborder-color: transparent transparent var(--ck-color-panel-background) transparent;\n\t\t\tmargin-top: var(--ck-balloon-arrow-offset);\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}\n\n\t\t&::after {\n\t\t\tborder-color: var(--ck-color-panel-background) transparent transparent transparent;\n\t\t\tmargin-bottom: var(--ck-balloon-arrow-offset
vendor: 2,121 bytes, line 2
2);\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
2}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},1757:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tdisplay: flex;\n\talign-items: center;\n\tjustify-content: center;\n}\n\n/* Buttons inside a toolbar should be centered when rotator bar is wider.\n * See: https://github.com/ckeditor/ckeditor5-ui/issues/495\n */\n.ck .ck-balloon-rotator__content .ck-toolbar {\n\tjustify-content: center;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-balloon-rotator__navigation {\n\tbackground: var(--ck-color-toolbar-background);\n\tborder-bottom: 1px solid var(--ck-color-toolbar-border);\n\tpadding: 0 var(--ck-spacing-small);\n\n\t/* Let's keep similar appearance to `ck-toolbar`. */\n\t& > * {\n\t\tmargin-right: var(--ck-spacing-small);\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t/* Gives counter more breath than buttons. */\n\t& .ck-balloon-rotator__counter {\n\t\tmargin-right: var(--ck-spacing-standard);\n\n\t\t/* We need to use smaller margin because of previous button's right margin. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n.ck .ck-balloon-rotator__content {\n\n\t/* Disable default annotation shadow inside rotator with fake panels. */\n\t& .ck.ck-annotation-wrapper {\n\t\tbox-shadow: none;\n\t}\n}\n"],sourceRoot:""}]);var s=a},3553:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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}
2: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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-fake-panel {\n\tposition: absolute;\n\n\t/* Fake panels should be placed under main balloon content. */\n\tz-index: calc(var(--ck-z-modal) - 1);\n}\n\n.ck .ck-fake-panel div {\n\tposition: absolute;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tz-index: 2;\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tz-index: 1;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n:root {\n\t--ck-balloon-fake-panel-offset-horizontal: 6px;\n\t--ck-balloon-fake-panel-offset-vertical: 6px;\n}\n\n/* Let\'s use `.ck-balloon-panel` appearance. See: balloonpanel.css. */\n.ck .ck-fake-panel div {\n\t@mixin ck-drop-shadow;\n\n\tmin-height: 15px;\n\n\tbackground: var(--ck-color-panel-background);\n\tborder: 1px solid var(--ck-color-panel-border);\n\tborder-radius: var(--ck-border-radius);\n\n\twidth: 100%;\n\theight: 100%;\n}\n\n.ck .ck-fake-panel div:nth-child( 1 ) {\n\tmargin-left: var(--ck-balloon-fake-panel-offset-horizontal);\n\tmargin-top: var(--ck-balloon-fake-panel-offset-vertical);\n}\n\n.ck .ck-fake-panel div:nth-child( 2 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 2);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 2);\n}\n.ck .ck-fake-panel div:nth-child( 3 ) {\n\tmargin-left: calc(var(--ck-balloon-fake-panel-offset-horizontal) * 3);\n\tmargin-top: calc(var(--ck-balloon-fake-panel-offset-vertical) * 3);\n}\n\n/* If balloon is positioned above element, we need to move fake panel to the top. */\n.ck .ck-balloon-panel_arrow_s + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_se + .ck-fake-panel,\n.ck .ck-balloon-panel_arrow_sw + .ck-fake-panel {\n\t--ck-balloon-fake-panel-offset-vertical: -6px;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-sha
2dow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},3609:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\tz-index: var(--ck-z-modal); /* #315 */\n\t\tposition: fixed;\n\t\ttop: 0;\n\t}\n\n\t& .ck-sticky-panel__content_sticky_bottom-limit {\n\t\ttop: auto;\n\t\tposition: absolute;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_shadow.css";\n\n.ck.ck-sticky-panel {\n\t& .ck-sticky-panel__content_sticky {\n\t\t@mixin ck-drop-shadow;\n\n\t\tborder-width: 0 1px 1px;\n\t\tborder-top-left-radius: 0;\n\t\tborder-top-right-radius: 0;\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},1590:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,'.ck-vertical-form .ck-button:after{bottom:var(--ck-spacing-small);content:"";position:absolute;right:-1px;top:var(--ck-spacing-small);width:0;z-index:1}@media screen and (max-width:600px){.ck.ck-responsive-form .ck-button:after{bottom:var(--ck-spacing-small);content:"";position:absolute;right:-1px;top:var(--ck-spacing-small);width:0;z-index:1}}.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:last-child,.ck.ck-responsive-form>.ck-button:nth-last-child(2){border:0;border-radius:0;border-top:1px solid var(--ck-color-base-border);margin-top:var(--ck-spacing-large);padding:var(--ck-spacing-standard)}[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}.ck.ck-responsive-form>.ck-button:nth-last-child(2):after,[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:"AAOA,mCAMC,8BAA+B,CAL/B,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAH5B,OAAQ,CAKR,SACD,CCTC,oCDaC,wCAMC,8BAA+B,CAL/B,UAAW,CAEX,iBAAkB,CAClB,UAAW,CACX,2BAA4B,CAH5B,OAAQ,CAKR,SACD,CCnBD,CCAD,qDACC,kDACD,CAEA,uBACC,+BAkED,CAhEC,6BAEC,YACD,CASC,uGACC,sCACD,CDvBD,oCCMD,uBAqBE,SAAU,CACV,oCA6CF,CA3CE,8CACC,wDAWD,CATC,6DACC,WAAY,CACZ,UACD,CAGA,4EACC,kBACD,CAID,iGAMC,QAAS,CADT,eAAgB,CAEhB,gDAAiD,CAJjD,kCAAmC,CADnC,kCAkBD,CApBA,0OAcE,aAMF,CAGC,yMACC,kDACD,CDpEF",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n\n.ck-vertical-form .ck-button::after {\n\tcontent: "";\n\twidth: 0;\n\tposition: absolute;\n\tright: -1px;\n\ttop: var(--ck-spacing-small);\n\tbottom: var(--ck-spacing-small);\n\tz-index: 1;\n}\n\n.ck.ck-responsive-form {\n\t@mixin ck-media-phone {\n\t\t& .ck-button::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\tposition: absolute;\n\t\t\tright: -1px;\n\t\t\ttop: var(--ck-spacing-small);\n\t\t\tbottom: var(--ck-spacing-small);\n\t\t\tz-index: 1;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@define-mixin ck-media-phone {\n\t@media screen and (max-width: 600px) {\n\t\t@mixin-content;\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_rwd.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck-vertical-form > .ck-button:nth-last-child(2)::after {\n\tborder-right: 1px solid var(--ck-color-base-border);\n}\n\n.ck.ck-responsive-form {\n\tpadding: var(--ck-spacing-large);\n\n\t&:focus {\n\t\t/* See: https://github.com/ckeditor/ckeditor5/issues/4773 */\n\t\toutline: none;\n\t}\n\n\t@mixin ck-dir ltr {\n\t\t& > :not(:first-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-dir rtl {\n\t\t& > :not(:last-child) {\n\t\t\tmargin-left: var(--ck-spacing-standard);\n\t\t}\n\t}\n\n\t@mixin ck-media-phone {\n\t\tpadding: 0;\n\t\twidth: calc(.8 * var(--ck-input-width));\n\n\t\t& .ck-labeled-field-view {\n\t\t\tmargin: var(--ck-spacing-large) var(--ck-spacing-large) 0;\n\n\t\t\t& .ck-input-text {\n\t\t\t\tmin-width: 0;\n\t\t\t\twidth: 100%;\n\t\t\t}\n\n\t\t\t/* Let the long error messages wrap in the narrow form. */\n\t\t\t& .ck-labeled-field-view__error {\n\t\t\t\twhite-space: normal;\n\t\t\t}\n\t\t}\n\n\t\t/* Styles for two last buttons in the form (save&cancel, edit&unlink, etc.). */\n\t\t& > .ck-button:nth-last-child(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\n\t\t\tborder-radius: 0;\n\t\t\tborder: 0;\n\t\t\tborder-top: 1px solid var(--ck-color-base-border);\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\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\t}\n}\n'],sourceRoot:""}]);var s=a},6706:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-block-toolbar-button {\n\tposition: absolute;\n\tz-index: var(--ck-z-default);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-block-toolbar-button: var(--ck-color-text);
2\n\t--ck-block-toolbar-button-size: var(--ck-font-size-normal);\n}\n\n.ck.ck-block-toolbar-button {\n\tcolor: var(--ck-color-block-toolbar-button);\n\tfont-size: var(--ck-block-toolbar-size);\n}\n"],sourceRoot:""}]);var s=a},5571:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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:0;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-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[dir=rtl].ck-toolbar_compact>.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[dir=rtl].ck-toolbar_compact>.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[dir=rtl]>.ck.ck-toolbar__separator,[dir=rtl] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-left:var(--ck-spacing-small)}.ck.ck-toolbar[dir=rtl].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=rtl] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){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[dir=ltr].ck-toolbar_compact>.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[dir=ltr].ck-toolbar_compact>.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[dir=ltr]>.ck.ck-toolbar__separator,[dir=ltr] .ck.ck-toolbar>.ck.ck-toolbar__separator{margin-right:var(--ck-spacing-small)}.ck.ck-toolbar[dir=ltr].ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child),[dir=ltr] .ck.ck-toolbar.ck-toolbar_grouping>.ck-toolbar__items:not(:empty):not(:only-child){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,qBAC
2D,CAEA,sDACC,gBACD,CAGC,yFACC,YACD,CE/CF,eCGC,eD0FD,CA7FA,qECOE,qCDsFF,CA7FA,eAGC,6CAA8C,CAE9C,+CAAgD,CADhD,iCAyFD,CAtFC,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,SAgBD,CAbC,0DAWC,QAAS,CAHT,eAAgB,CAHhB,QAAS,CAHT,UAUD,CAGD,kCAEC,SAWD,CATC,uDAEC,QAMD,CAHC,yFACC,eACD,CASD,kFACC,mCACD,CAvFF,qCA2FE,QAEF,CAYC,+FACC,cACD,CAEA,iJAEC,mCACD,CAEA,qHACC,aACD,CAIC,6JAEC,2BAA4B,CAD5B,wBAED,CAGA,2JAEC,4BAA6B,CAD7B,yBAED,CAID,qGACC,mCACD,CAGA,yLACC,mCACD,CAWA,qHACC,cACD,CAIC,6JAEC,4BAA6B,CAD7B,yBAED,CAGA,2JAEC,2BAA4B,CAD5B,wBAED,CAID,qGACC,oCACD,CAGA,yLACC,oCACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../mixins/_unselectable.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-unselectable;\n\n\tdisplay: flex;\n\tflex-flow: row nowrap;\n\talign-items: center;\n\n\t& > .ck-toolbar__items {\n\t\tdisplay: flex;\n\t\tflex-flow: row wrap;\n\t\talign-items: center;\n\t\tflex-grow: 1;\n\n\t}\n\n\t& .ck.ck-toolbar__separator {\n\t\tdisplay: inline-block;\n\n\t\t/*\n\t\t * A leading or trailing separator makes no sense (separates from nothing on one side).\n\t\t * For instance, it can happen when toolbar items (also separators) are getting grouped one by one and\n\t\t * moved to another toolbar in the dropdown.\n\t\t */\n\t\t&:first-child,\n\t\t&:last-child {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\tflex-basis: 100%;\n\t}\n\n\t&.ck-toolbar_grouping > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t&.ck-toolbar_vertical > .ck-toolbar__items {\n\t\tflex-direction: column;\n\t}\n\n\t&.ck-toolbar_floating > .ck-toolbar__items {\n\t\tflex-wrap: nowrap;\n\t}\n\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t& > .ck-dropdown__button .ck-dropdown__arrow {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Makes element unselectable.\n */\n@define-mixin ck-unselectable {\n\t-moz-user-select: none;\n\t-webkit-user-select: none;\n\t-ms-user-select: none;\n\tuser-select: none\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n@import "@ckeditor/ckeditor5-ui/theme/mixins/_dir.css";\n\n.ck.ck-toolbar {\n\t@mixin ck-rounded-corners;\n\n\tbackground: var(--ck-color-toolbar-background);\n\tpadding: 0 var(--ck-spacing-small);\n\tborder: 1px solid var(--ck-color-toolbar-border);\n\n\t& .ck.ck-toolbar__separator {\n\t\talign-self: stretch;\n\t\twidth: 1px;\n\t\tmin-width: 1px;\n\t\tbackground: var(--ck-color-toolbar-border);\n\n\t\t/*\n\t\t * These margins make the separators look better in balloon toolbars (when aligned with the "tip").\n\t\t * See https://github.com/ckeditor/ckeditor5/issues/7493.\n\t\t */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t& .ck-toolbar__line-break {\n\t\theight: 0;\n\t}\n\n\t& > .ck-toolbar__items {\n\t\t& > *:not(.ck-toolbar__line-break) {\n\t\t\t/* (#11) Separate toolbar items. */\n\t\t\tmargin-right: var(--ck-spacing-small);\n\t\t}\n\n\t\t/* Don\'t display a separator after an empty items container, for instance,\n\t\twhen all items were grouped */\n\t\t&:empty + .ck.ck-toolbar__separator {\n\t\t\tdisplay: none;\n\t\t}\n\t}\n\n\t& > .ck-toolbar__items > *:not(.ck-toolbar__line-break),\n\t& > .ck.ck-toolbar__grouped-dropdown {\n\t\t/* Make sure items wrapped to the next line have v-spacing */\n\t\tmargin-top: var(--ck-spacing-small);\n\t\tmargin-bottom: var(--ck-spacing-small);\n\t}\n\n\t&.ck-toolbar_vertical {\n\t\t/* Items in a vertical toolbar span the entire width. */\n\t\tpadding: 0;\n\n\t\t/* Specificity matters here. See https://github.com/ckeditor/ckeditor5-theme-lark/issues/168. */\n\t\t& > .ck-toolbar__items > .ck {\n\t\t\t/* Items in a vertical toolbar should span the horizontal space. */\n\t\t\twidth: 100%;\n\n\t\t\t/* Items in a vertical toolbar should have no margin. */\n\t\t\tmargin: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so rounded corners are pointless. */\n\t\t\tborder-radius: 0;\n\n\t\t\t/* Items in a vertical toolbar span the entire width so any border is pointless. */\n\t\t\tborder: 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@nest .ck-toolbar-container & {\n\t\tborder: 0;\n\t}\n}\n\n/* stylelint-disable */\n\n/*\n * Styles for RTL toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="rtl"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="rtl"] {\n\t& > .ck-toolbar__items > .ck {\n\t\tmargin-right: 0;\n\t}\n\n\t&:not(.ck-toolbar_compact) > .ck-toolbar__items > .ck {\n\t\t/* (#11) Separate toolbar items. */\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-left: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-left: var(--ck-spacing-small);\n\t}\n}\n\n/*\n * Styles for LTR toolbars.\n *\n * Note: In some cases (e.g. a decoupled editor), the toolbar has its own "dir"\n * because its parent is not controlled by the editor framework.\n */\n[dir="ltr"] .ck.ck-toolbar,\n.ck.ck-toolbar[dir="ltr"] {\n\t& > .ck-toolbar__items > .ck:last-child {\n\t\tmargin-right: 0;\n\t}\n\n\t&.ck-toolbar_compact > .ck-toolbar__items > .ck {\n\t\t/* No rounded corners on the right side of the first child. */\n\t\t&:first-child {\n\t\t\tborder-top-right-radius: 0;\n\t\t\tborder-bottom-right-radius: 0;\n\t\t}\n\n\t\t/* No rounded corners on the left side of the last child. */\n\t\t&:last-child {\n\t\t\tborder-top-left-radius: 0;\n\t\t\tborder-bottom-left-radius: 0;\n\t\t}\n\t}\n\n\t/* Separate the the separator form the grouping dropdown when some items are grouped. */\n\t& > .ck.ck-toolbar__separator {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n\n\t/* Some spacing between the items and the separator before the grouped items dropdown. */\n\t&.ck-toolbar_grouping > .ck-toolbar__items:not(:empty):not(:only-child) {\n\t\tmargin-right: var(--ck-spacing-small);\n\t}\n}\n\n/* stylelint-enable */\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},9948:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,'.ck.ck-tooltip,.ck.ck-tooltip .ck-tooltip__text:after{-webkit-backface-visibility:hidden;pointer-events:none;position:absolute}.ck.ck-tooltip{display:none;opacity:0;visibility:hidden;z-index:var(--ck-z-modal)}.ck.ck-tooltip .ck-tooltip__text{display:inline-block}.ck.ck-tooltip .ck-tooltip__text:after{content:"";height:0;width:0}:root{--ck-tooltip-arrow-size:5px}.ck.ck-tooltip{left:50%;
2top:0;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip .ck-tooltip__text{border-radius:0}.ck-rounded-corners .ck.ck-tooltip .ck-tooltip__text,.ck.ck-tooltip .ck-tooltip__text.ck-rounded-corners{border-radius:var(--ck-border-radius)}.ck.ck-tooltip .ck-tooltip__text{background:var(--ck-color-tooltip-background);color:var(--ck-color-tooltip-text);font-size:.9em;left:-50%;line-height:1.5;padding:var(--ck-spacing-small) var(--ck-spacing-medium);position:relative}.ck.ck-tooltip .ck-tooltip__text:after{border-style:solid;left:50%;transition:opacity .2s ease-in-out .2s}.ck.ck-tooltip.ck-tooltip_s,.ck.ck-tooltip.ck-tooltip_se,.ck.ck-tooltip.ck-tooltip_sw{bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(100%)}.ck.ck-tooltip.ck-tooltip_s .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after,.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{border-color:transparent transparent var(--ck-color-tooltip-background) transparent;border-width:0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);top:calc(var(--ck-tooltip-arrow-size)*-1 + 1px);transform:translateX(-50%)}.ck.ck-tooltip.ck-tooltip_sw{left:auto;right:50%}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text{left:auto;right:calc(var(--ck-tooltip-arrow-size)*-2)}.ck.ck-tooltip.ck-tooltip_sw .ck-tooltip__text:after{left:auto;right:0}.ck.ck-tooltip.ck-tooltip_se{left:50%;right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text{left:calc(var(--ck-tooltip-arrow-size)*-2);right:auto}.ck.ck-tooltip.ck-tooltip_se .ck-tooltip__text:after{left:0;right:auto;transform:translateX(50%)}.ck.ck-tooltip.ck-tooltip_n{top:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateY(-100%)}.ck.ck-tooltip.ck-tooltip_n .ck-tooltip__text:after{border-color:var(--ck-color-tooltip-background) transparent transparent transparent;border-width:var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);bottom:calc(var(--ck-tooltip-arrow-size)*-1);transform:translateX(-50%)}.ck.ck-tooltip.ck-tooltip_e{left:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_e .ck-tooltip__text:after{border-color:transparent var(--ck-color-tooltip-background) transparent transparent;border-width:var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;left:calc(var(--ck-tooltip-arrow-size)*-1);top:calc(50% - var(--ck-tooltip-arrow-size)*1)}.ck.ck-tooltip.ck-tooltip_w{left:auto;right:calc(100% + var(--ck-tooltip-arrow-size));top:50%}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text{left:0;transform:translateY(-50%)}.ck.ck-tooltip.ck-tooltip_w .ck-tooltip__text:after{border-color:transparent transparent transparent var(--ck-color-tooltip-background);border-width:var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);left:100%;top:calc(50% - var(--ck-tooltip-arrow-size)*1)}',"",{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","webpack://./node_modules/@ckeditor/ckeditor5-theme-lark/theme/mixins/_rounded.css"],names:[],mappings:"AAKA,sDASC,kCAAmC,CAJnC,mBAAoB,CAHpB,iBAQD,CAEA,eAIC,YAAa,CADb,SAAU,CADV,iBAAkB,CAGlB,yBAWD,CATC,iCACC,oBAOD,CALC,uCACC,UAAW,CAEX,QAAS,CADT,OAED,CCxBF,MACC,2BACD,CAEA,eACC,QAAS,CAMT,KAAM,CAON,sCAwKD,CAtKC,iCChBA,eDqCA,CArBA,yGCZC,qCDiCD,CArBA,iCAOC,6CAA8C,CAF9C,kCAAmC,CAFnC,cAAe,CAMf,SAAU,CALV,eAAgB,CAEhB,wDAAyD,CAEzD,iBAaD,CAVC,uCAOC,kBAAmB,CACnB,QAAS,CAFT,sCAGD,CAYD,sFAGC,4CAA+C,CAC/C,0BASD,CAPC,8JAIC,mFAAoF,CACpF,qGAAsG,CAHtG,+CAAkD,CAClD,0BAGD,CAaD,6BAEC,SAAU,CADV,SAYD,CATC,+CACC,SAAU,CACV,2CACD,CAEA,qDACC,SAAU,CACV,OACD,CAYD,6BACC,QAAS,CACT,UAYD,CAVC,+CAEC,0CAA8C,CAD9C,UAED,CAEA,qDAEC,MAAO,CADP,UAAW,CAEX,yBACD,CAYD,4BACC,yCAA4C,CAC5C,2BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,4CAA+C,CAC/C,0BAGD,CAUD,4BACC,8CAA+C,CAC/C,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,0CAA6C,CAC7C,8CAGD,CAWF,4BAEC,SAAU,CADV,+CAAgD,CAEhD,OAaD,CAXC,8CACC,MAAO,CACP,0BAQD,CANC,oDAGC,mFAAoF,CACpF,qGAAsG,CAHtG,SAAU,CACV,8CAGD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-tooltip,\n.ck.ck-tooltip .ck-tooltip__text::after {\n\tposition: absolute;\n\n\t/* Without this, hovering the tooltip could keep it visible. */\n\tpointer-events: none;\n\n\t/* This is to get rid of flickering when transitioning opacity in Chrome.\n\tIt\'s weird but it works. */\n\t-webkit-backface-visibility: hidden;\n}\n\n.ck.ck-tooltip {\n\t/* Tooltip is hidden by default. */\n\tvisibility: hidden;\n\topacity: 0;\n\tdisplay: none;\n\tz-index: var(--ck-z-modal);\n\n\t& .ck-tooltip__text {\n\t\tdisplay: inline-block;\n\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\twidth: 0;\n\t\t\theight: 0;\n\t\t}\n\t}\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n@import "../../../mixins/_rounded.css";\n\n:root {\n\t--ck-tooltip-arrow-size: 5px;\n}\n\n.ck.ck-tooltip {\n\tleft: 50%;\n\n\t/*\n\t * Prevent blurry tooltips in LoDPI environments.\n\t * See https://github.com/ckeditor/ckeditor5/issues/1802.\n\t */\n\ttop: 0;\n\n\t/*\n\t * For the transition to work, the tooltip must be controlled\n\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t * i.e. when scanning the toolbar with mouse cursor.\n\t */\n\ttransition: opacity .2s ease-in-out .2s;\n\n\t& .ck-tooltip__text {\n\t\t@mixin ck-rounded-corners;\n\n\t\tfont-size: .9em;\n\t\tline-height: 1.5;\n\t\tcolor: var(--ck-color-tooltip-text);\n\t\tpadding: var(--ck-spacing-small) var(--ck-spacing-medium);\n\t\tbackground: var(--ck-color-tooltip-background);\n\t\tposition: relative;\n\t\tleft: -50%;\n\n\t\t&::after {\n\t\t\t/*\n\t\t\t * For the transition to work, the tooltip must be controlled\n\t\t\t * using visibility+opacity. A delay prevents a "tooltip avalanche"\n\t\t\t * i.e. when scanning the toolbar with mouse cursor.\n\t\t\t */\n\t\t\ttransition: opacity .2s ease-in-out .2s;\n\t\t\tborder-style: solid;\n\t\t\tleft: 50%;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south of the element.\n\t *\n\t *       [element]\n\t *           ^\n\t *     +-----------+\n\t *     |  Tooltip  |\n\t *     +-----------+\n\t */\n\t&.ck-tooltip_s,\n\t&.ck-tooltip_sw,\n\t&.ck-tooltip_se {\n\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( 100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\t/* 1px addresses gliches in rendering causing gap between the triangle and the text */\n\t\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size) + 1px);\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: transparent transparent var(--ck-color-tooltip-background) transparent;\n\t\t\tborder-width: 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-west of the element.\n\t *\n\t *        [element]\n\t *            ^\n\t *  +-----------+\n\t *  |  Tooltip  |\n\t *  +-----------+\n\t */\n\n\t&.ck-tooltip_sw {\n\t\tright: 50%;\n\t\tleft: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: auto;\n\t\t\tright: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tleft: auto;\n\t\t\tright: 0;\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip south-east of the element.\n\t *\n\t *  [element]\n\t *      ^\n\t *    +-----------+\n\t *    |  Tooltip  |\n\t *    +-----------+\n\t */\n\t&.ck-tooltip_se {\n\t\tleft: 50%;\n\t\tright: auto;\n\n\t\t& .ck-tooltip__text {\n\t\t\tright: auto;\n\t\t\tleft: calc( -2 * var(--ck-tooltip-arrow-size));\n\t\t}\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tright: auto;\n\t\t\tleft: 0;\n\t\t\ttransform: translateX( 50% );\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip north of the element.\n\t *\n\t *     +-----------+\n\t *     |  Tooltip  |\n\t *     +-----------+\n\t *           V\n\t *       [element]\n\t */\n\t&.ck-tooltip_n {\n\t\ttop: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\ttransform: translateY( -100% );\n\n\t\t& .ck-tooltip__text::after {\n\t\t\tbottom: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\ttransform: translateX( -50% );\n\t\t\tborder-color: var(--ck-color-tooltip-background) transparent transparent transparent;\n\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size);\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip east of the element.\n\t *\n\t *                +----------+\n\t *    [element] < |   east   |\n\t *                +----------+\n\t */\n\t&.ck-tooltip_e {\n\t\tleft: calc(100% + var(--ck-tooltip-arrow-size));\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: calc(-1 * var(--ck-tooltip-arrow-size));\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent var(--ck-color-tooltip-background) transparent transparent;\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size) 0;\n\t\t\t}\n\t\t}\n\t}\n\n\t/**\n\t * A class that displays the tooltip west of the element.\n\t *\n\t *    +----------+\n\t *    |   west   | > [element]\n\t *    +----------+\n\t */\n\t&.ck-tooltip_w {\n\t\tright: calc(100% + var(--ck-tooltip-arrow-size));\n\t\tleft: auto;\n\t\ttop: 50%;\n\n\t\t& .ck-tooltip__text {\n\t\t\tleft: 0;\n\t\t\ttransform: translateY( -50% );\n\n\t\t\t&::after {\n\t\t\t\tleft: 100%;\n\t\t\t\ttop: calc(50% - 1 * var(--ck-tooltip-arrow-size));\n\t\t\t\tborder-color: transparent transparent transparent var(--ck-color-tooltip-background);\n\t\t\t\tborder-width: var(--ck-tooltip-arrow-size) 0 var(--ck-tooltip-arrow-size) var(--ck-tooltip-arrow-size);\n\t\t\t}\n\t\t}\n\t}\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Implements rounded corner interface for .ck-rounded-corners class.\n *\n * @see $ck-border-radius\n */\n@define-mixin ck-rounded-corners {\n\tborder-radius: 0;\n\n\t@nest .ck-rounded-corners &,\n\t&.ck-rounded-corners {\n\t\tborder-radius: var(--ck-border-radius);\n\t\t@mixin-content;\n\t}\n}\n"],sourceRoot:""}]);var s=a},6150:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.push([t.id,".ck-hidden{display:none!important}.ck.ck-reset,.ck.ck-reset_all,.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:#c4c4c4;--ck-color-base-action:#61b045;--ck-color-base-focus:#6cb5f9;--ck-color-base-text:#333;--ck-color-base-active:#198cf0;--ck-color-base-active-focus:#0e7fe1;--ck-color-base-error:#db3700;--ck-color-focus-border-coordinates:208,79%,51%;--ck-color-focus-border:hsl(var(--ck-color-focus-border-coordinates));--ck-color-focus-outer-shadow:#bcdefb;--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:#e6e6e6;--ck-color-button-default-active-background:#d9d9d9;--ck-color-button-default-active-shadow:#bfbfbf;--ck-color-button-default-disabled-background:transparent;--ck-color-button-on-background:#dedede;--ck-color-button-on-hover-background:#c4c4c4;--ck-color-button-on-active-background:#bababa;--ck-color-button-on-active-shadow:#a1a1a1;--ck-color-button-on-disabled-background:#dedede;--ck-color-button-action-background:var(--ck-color-base-action);--ck-color-button-action-hover-background:#579e3d;--ck-color-button-action-active-background:#53973b;--ck-color-button-action-active-shadow:#498433;--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:#b0b0b0;--ck-color-switch-button-off-hover-background:#a3a3a3;--ck-color-switch-button-on-background:var(--ck-color-button-action-background);--ck-color-switch-button-on-hover-background:#579e3d;--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:#c7c7c7;--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:#c7c7c7;--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-base-active);--ck-color-list-button-on-background-focus:var(--ck-color-base-active-focus);--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-foreground);--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-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}
2.ck.ck-reset,.ck.ck-reset_all,.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.ck-reset_all,.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.ck-reset_all .ck-rtl *{text-align:right}.ck.ck-reset_all iframe{vertical-align:inherit}.ck.ck-reset_all textarea{white-space:pre-wrap}.ck.ck-reset_all input[type=password],.ck.ck-reset_all input[type=text],.ck.ck-reset_all textarea{cursor:text}.ck.ck-reset_all input[type=password][disabled],.ck.ck-reset_all input[type=text][disabled],.ck.ck-reset_all textarea[disabled]{cursor:default}.ck.ck-reset_all fieldset{border:2px groove #dfdee3;padding:10px}.ck.ck-reset_all button::-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,iDAGC,qBAAsB,CAEtB,WAAY,CACZ,eAAgB,CAFhB,UAGD,CCPA,MACC,gBAAiB,CACjB,4CACD,CCAA,oDAEC,yBACD,CCNA,MACC,kCAAmD,CACnD,+BAAoD,CACpD,8BAAgD,CAChD,8BAAmD,CACnD,6BAAmD,CACnD,yBAA+C,CAC/C,8BAAmD,CACnD,oCAAuD,CACvD,6BAAkD,CAIlD,+CAAwD,CACxD,qEAA+E,CAC/E,qCAAwD,CACxD,qDAA8D,CAC9D,gDAAyD,CACzD,yCAAqD,CACrD,sCAAsD,CACtD,4CAA0D,CAC1D,sCAAsD,CAItD,gDAAuD,CACvD,kDAA+D,CAC/D,mDAAgE,CAChE,+CAA6D,CAC7D,yDAA8D,CAE9D,uCAAuD,CACvD,6CAA4D,CAC5D,8CAA4D,CAC5D,0CAAyD,CACzD,gDAA8D,CAE9D,+DAAsE,CACtE,iDAAkE,CAClE,kDAAkE,CAClE,8CAA+D,CAC/D,oDAAoE,CACpE,6DAAsE,CAEtE,8BAAoD,CACpD,gCAAqD,CAErD,+CAA4D,CAC5D,qDAAiE,CACjE,+EAAqF,CACrF,oDAAmE,CACnE,yEAA8E,CAC9E,oDAAgE,CAIhE,oEAA2E,CAC3E,4DAAoE,CAIpE,2DAAoE,CACpE,+BAAiD,CACjD,wDAAgE,CAChE,+CAA0D,CAC1D,4CAA2D,CAC3D,wCAAwD,CACxD,sCAAsD,CAItD,0DAAmE,CACnE,uFAA6F,CAC7F,gEAAuE,CACvE,4EAAiF,CACjF,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,CCpGhE,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,kCJoGD,CI9FA,iDAaC,oBAAqB,CANrB,sBAAuB,CADvB,QAAS,CAFT,QAAS,CACT,SAAU,CAGV,oBAAqB,CAErB,eAAgB,CADhB,qBAKD,CAKA,oCAGC,wBAAyB,CAEzB,0BAA2B,CAG3B,WAAY,CACZ,UAAW,CALX,iGAAkG,CAElG,eAAgB,CAChB,kBAGD,CAGC,2BACC,gBACD,CAEA,wBAEC,sBACD,CAEA,0BACC,oBACD,
2CAEA,kGAGC,WACD,CAEA,gIAGC,cACD,CAEA,0BAEC,yBAAoC,CADpC,YAED,CAEA,0CAGC,QAAQ,CADR,SAED,CAMD,8BAEC,gBACD,CCnFA,MACC,sBAAuB,CCAvB,gEAAiE,CAKjE,0DAA2D,CAK3D,wEAAyE,CCbzE,uBAA8B,CAC9B,mDAA2D,CAC3D,4CAAkD,CAClD,oDAA4D,CAC5D,mDAA2D,CAC3D,kDAA2D,CAC3D,yDFFD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class which hides an element in DOM.\n */\n.ck-hidden {\n\t/* Override selector specificity. Otherwise, all elements with some display\n\tstyle defined will override this one, which is not a desired result. */\n\tdisplay: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\tbox-sizing: border-box;\n\twidth: auto;\n\theight: auto;\n\tposition: static;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-z-default: 1;\n\t--ck-z-modal: calc( var(--ck-z-default) + 999 );\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A class that disables all transitions of the element and its children.\n */\n.ck-transitions-disabled,\n.ck-transitions-disabled * {\n\ttransition: none !important;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-base-foreground: \t\t\t\t\t\t\t\thsl(0, 0%, 98%);\n\t--ck-color-base-background: \t\t\t\t\t\t\t\thsl(0, 0%, 100%);\n\t--ck-color-base-border: \t\t\t\t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-base-action: \t\t\t\t\t\t\t\t\thsl(104, 44%, 48%);\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(208, 88%, 52%);\n\t--ck-color-base-active-focus:\t\t\t\t\t\t\t\thsl(208, 88%, 47%);\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\t208, 79%, 51%;\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(207, 89%, 86%);\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%, 90%);\n\t--ck-color-button-default-active-background: \t\t\t\thsl(0, 0%, 85%);\n\t--ck-color-button-default-active-shadow: \t\t\t\t\thsl(0, 0%, 75%);\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(0, 0%, 87%);\n\t--ck-color-button-on-hover-background: \t\t\t\t\t\thsl(0, 0%, 77%);\n\t--ck-color-button-on-active-background: \t\t\t\t\thsl(0, 0%, 73%);\n\t--ck-color-button-on-active-shadow: \t\t\t\t\t\thsl(0, 0%, 63%);\n\t--ck-color-button-on-disabled-background: \t\t\t\t\thsl(0, 0%, 87%);\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, 44%, 43%);\n\t--ck-color-button-action-active-background: \t\t\t\thsl(104, 44%, 41%);\n\t--ck-color-button-action-active-shadow: \t\t\t\t\thsl(104, 44%, 36%);\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%
2);\n\n\t--ck-color-switch-button-off-background:\t\t\t\t\thsl(0, 0%, 69%);\n\t--ck-color-switch-button-off-hover-background:\t\t\t\thsl(0, 0%, 64%);\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, 44%, 43%);\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\thsl(0, 0%, 78%);\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\thsl(0, 0%, 78%);\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-base-active);\n\t--ck-color-list-button-on-background-focus: \t\t\t\tvar(--ck-color-base-active-focus);\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-foreground);\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","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * An opacity value of disabled UI item.\n\t */\n\t--ck-disabled-opacity: .5;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * The geometry of the of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow-geometry: 0 0 0 3px;\n\n\t/**\n\t * A visual style of focused element's outer shadow.\n\t */\n\t--ck-focus-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-outer-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when disabled).\n\t */\n\t--ck-focus-disabled-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-disabled-shadow);\n\n\t/**\n\t * A visual style of focused element's outer shadow (when has errors).\n\t */\n\t--ck-focus-error-outer-shadow: var(--ck-focus-outer-shadow-geometry) var(--ck-color-focus-error-shadow);\n\n\t/**\n\t * A visual style of focused element's border or outline.\n\t */\n\t--ck-focus-ring: 1px solid var(--ck-color-focus-border);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-font-size-base: 13px;\n\t--ck-line-height-base: 1.84615;\n\t--ck-font-face: Helvetica, Arial, Tahoma, Verdana, Sans-Serif;\n\n\t--ck-font-size-tiny: 0.7em;\n\t--ck-font-size-small: 0.75em;\n\t--ck-font-size-normal: 1em;\n\t--ck-font-size-big: 1.4em;\n\t--ck-font-size-large: 1.8em;\n}\n",'/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/* This is super-important. This is **manually** adjusted so a button without an icon\n\tis never smaller than a button with icon, additionally making sure that text-less buttons\n\tare perfect squares. The value is also shared by other components which should stay "in-line"\n\twith buttons. */\n\t--ck-ui-component-min-height: 2.3em;\n}\n\n/**\n * Resets an element, ignoring its children.\n */\n.ck.ck-reset,\n.ck.ck-reset_all,\n.ck.ck-reset_all * {\n\t/* Do n
2ot 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.ck-reset_all * {\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.ck-reset_all {\n\t& .ck-rtl * {\n\t\ttext-align: right;\n\t}\n\n\t& iframe {\n\t\t/* For IE */\n\t\tvertical-align: inherit;\n\t}\n\n\t& textarea {\n\t\twhite-space: pre-wrap;\n\t}\n\n\t& textarea,\n\t& input[type="text"],\n\t& input[type="password"] {\n\t\tcursor: text;\n\t}\n\n\t& textarea[disabled],\n\t& input[type="text"][disabled],\n\t& input[type="password"][disabled] {\n\t\tcursor: default;\n\t}\n\n\t& fieldset {\n\t\tpadding: 10px;\n\t\tborder: 2px groove hsl(255, 7%, 88%);\n\t}\n\n\t& button::-moz-focus-inner {\n\t\t/* See http://stackoverflow.com/questions/5517744/remove-extra-button-spacing-padding-in-firefox */\n\t\tpadding: 0;\n\t\tborder: 0\n\t}\n}\n\n/**\n * Default UI rules for RTL languages.\n */\n.ck[dir="rtl"],\n.ck[dir="rtl"] .ck {\n\ttext-align: right;\n}\n',"/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * Default border-radius value.\n */\n:root{\n\t--ck-border-radius: 2px;\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t/**\n\t * A visual style of element's inner shadow (i.e. input).\n\t */\n\t--ck-inner-shadow: 2px 2px 3px var(--ck-color-shadow-inner) inset;\n\n\t/**\n\t * A visual style of element's drop shadow (i.e. panel).\n\t */\n\t--ck-drop-shadow: 0 1px 2px 1px var(--ck-color-shadow-drop);\n\n\t/**\n\t * A visual style of element's active shadow (i.e. comment or suggestion).\n\t */\n\t--ck-drop-shadow-active: 0 3px 6px 1px var(--ck-color-shadow-drop-active);\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-spacing-unit: \t\t\t\t\t\t0.6em;\n\t--ck-spacing-large: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 1.5);\n\t--ck-spacing-standard: \t\t\t\t\tvar(--ck-spacing-unit);\n\t--ck-spacing-medium: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.8);
2\n\t--ck-spacing-small: \t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.5);\n\t--ck-spacing-tiny: \t\t\t\t\t\tcalc(var(--ck-spacing-unit) * 0.3);\n\t--ck-spacing-extra-tiny: \t\t\t\tcalc(var(--ck-spacing-unit) * 0.16);\n}\n"],sourceRoot:""}]);var s=a},6507:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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>.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,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.ck-widget_with-selection-handle>.ck-widget__selection-handle,.ck.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected:hover.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,qDAAs
2D,CACtD,6CAA8C,CAF9C,0CAA2C,CAI3C,aAAc,CADd,kCAAmC,CAGnC,uCAAwC,CACxC,4CAA6C,CAF7C,iCAsCD,CAlCC,8NAKC,iBACD,CAEA,0CAEC,qCAAsC,CADtC,oCAED,CAEA,2CAEC,sCAAuC,CADvC,oCAED,CAEA,8CACC,uCAAwC,CACxC,sCACD,CAEA,6CACC,uCAAwC,CACxC,qCACD,CAGA,8CAEC,QAAS,CADT,6CAAgD,CAEhD,yBACD,CCjFD,MACC,iCAAkC,CAClC,kCAAmC,CACnC,4CAA6C,CAC7C,wCAAyC,CAEzC,wCAAiD,CACjD,sCAAkD,CAClD,2EAA4E,CAC5E,yEACD,CAEA,eAGC,yBAA0B,CAD1B,mBAAoB,CADpB,gDAAiD,CAGjD,6GAUD,CARC,0EAEC,6EACD,CAEA,qBACC,iDACD,CAGD,gCACC,4BAWD,CAPC,yGAKC,iEAAkE,CCnCnE,2BAA2B,CCF3B,qCAA8B,CDC9B,YDqCA,CAIA,4EAKC,4BAA6B,CAa7B,iEAAkE,CAhBlE,qBAAsB,CAoBtB,mDAAoD,CAhBpD,SAAU,CALV,WAAY,CAsBZ,KAAM,CAFN,2BAA4B,CAT5B,6SAgCD,CAnBC,qFAIC,oDAAqD,CADrD,yCAA0C,CAD1C,wCAWD,CANC,kHACC,SAAU,CAGV,+DACD,CAID,wHACC,SACD,CAID,kFAEC,oDAAqD,CADrD,SAED,CAKC,oMAEC,6CAA8C,CAD9C,SAOD,CAHC,gRACC,SACD,CAOH,qFACC,SAAU,CACV,oDACD,CAGA,gDAEC,eAkBD,CAhBC,yEAOC,iCACD,CAGC,gOAEC,gDACD,CAOD,wIAEC,mDAQD,CALE,ghBAEC,gDACD,CAKH,yKAOC,yDACD",sourcesContent:["/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-color-resizer: var(--ck-color-focus-border);\n\t--ck-color-resizer-tooltip-background: hsl(0, 0%, 15%);\n\t--ck-color-resizer-tooltip-text: hsl(0, 0%, 95%);\n\n\t--ck-resizer-border-radius: var(--ck-border-radius);\n\t--ck-resizer-tooltip-offset: 10px;\n\t--ck-resizer-tooltip-height: calc(var(--ck-spacing-small) * 2 + 10px);\n}\n\n.ck .ck-widget {\n\t/* This is neccessary for type around UI to be positioned properly. */\n\tposition: relative;\n}\n\n.ck .ck-widget.ck-widget_with-selection-handle {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n\n\t& .ck-widget__selection-handle {\n\t\tposition: absolute;\n\n\t\t& .ck-icon {\n\t\t\t/* Make sure the icon in not a subject to font-size or line-height to avoid\n\t\t\tunnecessary spacing around it. */\n\t\t\tdisplay: block;\n\t\t}\n\t}\n\n\t/* Show the selection handle on mouse hover over the widget, but not for nested widgets. */\n\t&:hover > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n\n\t/* Show the selection handle when the widget is selected, but not for nested widgets. */\n\t&.ck-widget_selected > .ck-widget__selection-handle {\n\t\tvisibility: visible;\n\t}\n}\n\n.ck .ck-size-view {\n\tbackground: var(--ck-color-resizer-tooltip-background);\n\tcolor: var(--ck-color-resizer-tooltip-text);\n\tborder: 1px solid var(--ck-color-resizer-tooltip-text);\n\tborder-radius: var(--ck-resizer-border-radius);\n\tfont-size: var(--ck-font-size-tiny);\n\tdisplay: block;\n\tpadding: 0 var(--ck-spacing-small);\n\theight: var(--ck-resizer-tooltip-height);\n\tline-height: var(--ck-resizer-tooltip-height);\n\n\t&.ck-orientation-top-left,\n\t&.ck-orientation-top-right,\n\t&.ck-orientation-bottom-right,\n\t&.ck-orientation-bottom-left,\n\t&.ck-orientation-above-center {\n\t\tposition: absolute;\n\t}\n\n\t&.ck-orientation-top-left {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-top-right {\n\t\ttop: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-right {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tright: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t&.ck-orientation-bottom-left {\n\t\tbottom: var(--ck-resizer-tooltip-offset);\n\t\tleft: var(--ck-resizer-tooltip-offset);\n\t}\n\n\t/* Class applied if the widget is too small to contain the size label */\n\t&.ck-orientation-above-center {\n\t\ttop: calc(var(--ck-resizer-tooltip-height) * -1);\n\t\tleft: 50%;\n\t\ttransform: translate(-50%);\n\t}\n}\n",'/*\n * Copyright (c) 2003-2022
vendor: 6,528 bytes, line 2
2, CKSource Holding 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-202
22, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A visual style of focused element's border.\n */\n@define-mixin ck-focus-ring {\n\t/* Disable native outline. */\n\toutline: none;\n\tborder: var(--ck-focus-ring)\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n/**\n * A helper to combine multiple shadows.\n */\n@define-mixin ck-box-shadow $shadowA, $shadowB: 0 0 {\n\tbox-shadow: $shadowA, $shadowB;\n}\n\n/**\n * Gives an element a drop shadow so it looks like a floating panel.\n */\n@define-mixin ck-drop-shadow {\n\t@mixin ck-box-shadow var(--ck-drop-shadow);\n}\n"],sourceRoot:""}]);var s=a},2263:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget_with-resizer {\n\t/* Make the widget wrapper a relative positioning container for the drag handle. */\n\tposition: relative;\n}\n\n.ck .ck-widget__resizer {\n\tdisplay: none;\n\tposition: absolute;\n\n\t/* The wrapper itself should not interfere with the pointer device, only the handles should. */\n\tpointer-events: none;\n\n\tleft: 0;\n\ttop: 0;\n}\n\n.ck-focused .ck-widget_with-resizer.ck-widget_selected {\n\t& > .ck-widget__resizer {\n\t\tdisplay: block;\n\t}\n}\n\n.ck .ck-widget__resizer__handle {\n\tposition: absolute;\n\n\t/* Resizers are the only UI elements that should interfere with a pointer device. */\n\tpointer-events: all;\n\n\t&.ck-widget__resizer__handle-top-left,\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tcursor: nwse-resize;\n\t}\n\n\t&.ck-widget__resizer__handle-top-right,\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tcursor: nesw-resize;\n\t}\n}\n","/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-resizer-size: 10px;\n\n\t/* Set the resizer with a 50% offset. */\n\t--ck-resizer-offset: calc( ( var(--ck-resizer-size) / -2 ) - 2px);\n\t--ck-resizer-border-width: 1px;\n}\n\n.ck .ck-widget__resizer {\n\toutline: 1px solid var(--ck-color-resizer);\n}\n\n.ck .ck-widget__resizer__handle {\n\twidth: var(--ck-resizer-size);\n\theight: var(--ck-resizer-size);\n\tbackground: var(--ck-color-focus-border);\n\tborder: var(--ck-resizer-border-width) solid hsl(0, 0%, 100%);\n\tborder-radius: var(--ck-resizer-border-radius);\n\n\t&.ck-widget__resizer__handle-top-left {\n\t\ttop: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-top-right {\n\t\ttop: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-right {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tright: var(--ck-resizer-offset);\n\t}\n\n\t&.ck-widget__resizer__handle-bottom-left {\n\t\tbottom: var(--ck-resizer-offset);\n\t\tleft: var(--ck-resizer-offset);\n\t}\n}\n"],sourceRoot:""}]);var s=a},5137:function(t,e,n){n.d(e,{Z:function(){return s}});var i=n(4015),o=n.n(i),r=n(3645),a=n.n(r)()(o());a.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);
2display: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_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_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}
2.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_before.ck-widget_selected.ck-widget_with-resizer>.ck-widget__resizer{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}
2to{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,CASE,0jBACC,SACD,CASF,mPACC,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,
2CACA,IACC,SACD,CACA,IACC,SACD,CACA,GACC,SACD,CACD",sourcesContent:['/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\tdisplay: block;\n\t\tposition: absolute;\n\t\toverflow: hidden;\n\t\tz-index: var(--ck-z-default);\n\n\t\t& svg {\n\t\t\tposition: absolute;\n\t\t\ttop: 50%;\n\t\t\tleft: 50%;\n\t\t\tz-index: calc(var(--ck-z-default) + 2);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_before {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\ttop: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tleft: min(10%, 30px);\n\n\t\t\ttransform: translateY(-50%);\n\t\t}\n\n\t\t&.ck-widget__type-around__button_after {\n\t\t\t/* Place it in the middle of the outline */\n\t\t\tbottom: calc(-0.5 * var(--ck-widget-outline-thickness));\n\t\t\tright: min(10%, 30px);\n\n\t\t\ttransform: translateY(50%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\t&::after {\n\t\t\tcontent: "";\n\t\t\tdisplay: block;\n\t\t\tposition: absolute;\n\t\t\ttop: 1px;\n\t\t\tleft: 1px;\n\t\t\tz-index: calc(var(--ck-z-default) + 1);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tdisplay: none;\n\t\tposition: absolute;\n\t\tleft: 0;\n\t\tright: 0;\n\t}\n\n\t/*\n\t * When the widget is hovered the "fake caret" would normally be narrower than the\n\t * extra outline displayed around the widget. Let\'s extend the "fake caret" to match\n\t * the full width of the widget.\n\t */\n\t&:hover > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tleft: calc( -1 * var(--ck-widget-outline-thickness) );\n\t\tright: calc( -1 * var(--ck-widget-outline-thickness) );\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed before the widget (backward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_before > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\ttop: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" when it should be displayed after the widget (forward keyboard navigation).\n\t */\n\t&.ck-widget_type-around_show-fake-caret_after > .ck-widget__type-around > .ck-widget__type-around__fake-caret {\n\t\tbottom: calc( -1 * var(--ck-widget-outline-thickness) - 1px );\n\t\tdisplay: block;\n\t}\n}\n\n/*\n * Integration with the read-only mode of the editor.\n */\n.ck.ck-editor__editable.ck-read-only .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the restricted editing mode (feature) of the editor.\n */\n.ck.ck-editor__editable.ck-restricted-editing_mode_restricted .ck-widget__type-around {\n\tdisplay: none;\n}\n\n/*\n * Integration with the #isEnabled property of the WidgetTypeAround plugin.\n */\n.ck.ck-editor__editable.ck-widget__type-around_disabled .ck-widget__type-around {\n\tdisplay: none;\n}\n','/*\n * Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license\n */\n\n:root {\n\t--ck-widget-type-around-button-size: 20px;\n\t--ck-color-widget-type-around-button-active: var(--ck-color-focus-border);\n\t--ck-color-widget-type-around-button-hover: var(--ck-color-widget-hover-border);\n\t--ck-color-widget-type-around-button-blurred-editable: var(--ck-color-widget-blurred-border);\n\t--ck-color-widget-type-around-button-radar-start-alpha: 0;\n\t--ck-color-widget-type-around-button-radar-end-alpha: .3;\n\t--ck-color-widget-type-around-button-icon: var(--ck-color-base-background);\n}\n\n@define-mixin ck-widget-type-around-button-visible {\n\topacity: 1;\n\tpointer-events: auto;\n}\n\n@define-mixin ck-widget-type-around-button-hidden {\n\topacity: 0;\n\tpointer-events: none;\n}\n\n.ck .ck-widget {\n\t/*\n\t * Styles of the type around buttons\n\t */\n\t& .ck-widget__type-around__button {\n\t\twidth: var(--ck-widget-type-around-button-size);\n\t\theight: var(--ck-widget-type-around-button-size);\n\t\tbackground: var(--ck-color-widget-type-around-button);\n\t\tborder-radius: 100px;\n\t\ttransition: opacity var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve), background var(--ck-widget-handler-animation-duration) var(--ck-widget-handler-animation-curve);\n\n\t\t@mixin ck-widget-type-around-button-hidden;\n\n\t\t& svg {\n\t\t\twidth: 10px;\n\t\t\theight: 8px;\n\t\t\ttransform: translate(-50%,-50%);\n\t\t\ttransition: transform .5s ease;
2\n\t\t\tmargin-top: 1px;\n\n\t\t\t& * {\n\t\t\t\tstroke-dasharray: 10;\n\t\t\t\tstroke-dashoffset: 0;\n\n\t\t\t\tfill: none;\n\t\t\t\tstroke: var(--ck-color-widget-type-around-button-icon);\n\t\t\t\tstroke-width: 1.5px;\n\t\t\t\tstroke-linecap: round;\n\t\t\t\tstroke-linejoin: round;\n\t\t\t}\n\n\t\t\t& line {\n\t\t\t\tstroke-dasharray: 7;\n\t\t\t}\n\t\t}\n\n\t\t&:hover {\n\t\t\t/*\n\t\t\t * Display the "sonar" around the button when hovered.\n\t\t\t */\n\t\t\tanimation: ck-widget-type-around-button-sonar 1s ease infinite;\n\n\t\t\t/*\n\t\t\t * Animate active button\'s icon.\n\t\t\t */\n\t\t\t& svg {\n\t\t\t\t& polyline {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-dash 2s linear;\n\t\t\t\t}\n\n\t\t\t\t& line {\n\t\t\t\t\tanimation: ck-widget-type-around-arrow-tip-dash 2s linear;\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\t}\n\n\t/*\n\t * Show type around buttons when the widget gets selected or being hovered.\n\t */\n\t&.ck-widget_selected,\n\t&:hover {\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-visible;\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the buttons when the widget is NOT selected (but the buttons are visible\n\t * and still can be hovered).\n\t */\n\t&:not(.ck-widget_selected) > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\tbackground: var(--ck-color-widget-type-around-button-hover);\n\t}\n\n\t/*\n\t * Styles for the buttons when:\n\t * - the widget is selected,\n\t * - or the button is being hovered (regardless of the widget state).\n\t */\n\t&.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button,\n\t& > .ck-widget__type-around > .ck-widget__type-around__button:hover {\n\t\tbackground: var(--ck-color-widget-type-around-button-active);\n\n\t\t&::after {\n\t\t\twidth: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\theight: calc(var(--ck-widget-type-around-button-size) - 2px);\n\t\t\tborder-radius: 100px;\n\t\t\tbackground: linear-gradient(135deg, hsla(0,0%,100%,0) 0%, hsla(0,0%,100%,.3) 100%);\n\t\t}\n\t}\n\n\t/*\n\t * Styles for the "before" button when the widget has a selection handle. Because some space\n\t * is consumed by the handle, the button must be moved slightly to the right to let it breathe.\n\t */\n\t&.ck-widget_with-selection-handle > .ck-widget__type-around > .ck-widget__type-around__button_before {\n\t\tmargin-left: 20px;\n\t}\n\n\t/*\n\t * Styles for the horizontal "fake caret" which is displayed when the user navigates using the keyboard.\n\t */\n\t& .ck-widget__type-around__fake-caret {\n\t\tpointer-events: none;\n\t\theight: 1px;\n\t\tanimation: ck-widget-type-around-fake-caret-pulse linear 1s infinite normal forwards;\n\n\t\t/*\n\t\t * The semi-transparent-outline+background combo improves the contrast\n\t\t * when the background underneath the fake caret is dark.\n\t\t */\n\t\toutline: solid 1px hsla(0, 0%, 100%, .5);\n\t\tbackground: var(--ck-color-base-text);\n\t}\n\n\t/*\n\t * Styles of the widget when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t * Despite the widget being physically selected in the model, its outline should disappear.\n\t */\n\t&.ck-widget_selected {\n\t\t&.ck-widget_type-around_show-fake-caret_before,\n\t\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t\toutline-color: transparent;\n\t\t}\n\t}\n\n\t&.ck-widget_type-around_show-fake-caret_before,\n\t&.ck-widget_type-around_show-fake-caret_after {\n\t\t/*\n\t\t * When the "fake caret" is visible we simulate that the widget is not selected\n\t\t * (despite being physically selected), so the outline color should be for the\n\t\t * unselected widget.\n\t\t */\n\t\t&.ck-widget_selected:hover {\n\t\t\toutline-color: var(--ck-color-widget-hover-border);\n\t\t}\n\n\t\t/*\n\t\t * Styles of the type around buttons when the "fake caret" is blinking (e.g. upon keyboard navigation).\n\t\t * In this state, the type around buttons would collide with the fake carets so they should disappear.\n\t\t */\n\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the selection handle. When the caret is visible, simply\n\t\t * hide the handle because it intersects with the caret (and does not make much sense anyway).\n\t\t */\n\t\t&.ck-widget_with-selection-handle {\n\t\t\t&.ck-widget_selected,\n\t\t\t&.ck-widget_selected:hover {\n\t\t\t\t& > .ck-widget__selection-handle {\n\t\t\t\t\topacity: 0\n\t\t\t\t}\n\t\t\t}\n\t\t}\n\n\t\t/*\n\t\t * Fake horizontal caret integration with the resize UI. When the caret is visible, simply\n\t\t * hide the resize UI because it creates too much noise. It can be visible when the user\n\t\t * hovers the widget, though.\n\t\t */\n\t\t&.ck-widget_selected.ck-widget_with-resizer > .ck-widget__resizer {\n\t\t\topacity: 0\n\t\t}\n\t}\n}\n\n/*\n * Styles for the "before" button when the widget has a selection handle in an RTL environment.\n * The selection handler is aligned to the right side of the widget so there is no need to create\n * additional space for it next to the "before" button.\n */\n.ck[dir="rtl"] .ck-widget.ck-widget_with-selection-handle .ck-widget__type-around > .ck-widget__type-around__button_before {\n\tmargin-left: 0;\n\tmargin-right: 20px;\n}\n\n/*\n * Hide type around buttons when the widget is selected as a child of a selected\n * nested editable (e.g. mulit-cell table selection).\n *\n * See https://github.com/ckeditor/ckeditor5/issues/7263.\n */\n.ck-editor__nested-editable.ck-editor__editable_selected {\n\t& .ck-widget {\n\t\t&.ck-widget_selected,\n\t\t&:hover {\n\t\t\t& > .ck-widget__type-around > .ck-widget__type-around__button {\n\t\t\t\t@mixin ck-widget-type-around-button-hidden;\n\t\t\t}\n\t\t}\n\t}\n}\n\n/*\n * Styles for the buttons when the widget is selected but the user clicked outside of the editor (blurred the editor).\n */\n.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected > .ck-widget__type-around > .ck-widget__type-around__button:not(:hover) {\n\tbackground: var(--ck-color-widget-type-around-button-blurred-editable);\n\n\t& svg * {\n\t\tstroke: hsl(0,0%,60%);\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-dash {\n\t0% {\n\t\tstroke-dashoffset: 10;\n\t}\n\t20%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-arrow-tip-dash {\n\t0%, 20% {\n\t\tstroke-dashoffset: 7;\n\t}\n\t40%, 100% {\n\t\tstroke-dashoffset: 0;\n\t}\n}\n\n@keyframes ck-widget-type-around-button-sonar {\n\t0% {\n\t\tbox-shadow: 0 0 0 0 hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n\t50% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-end-alpha));\n\t}\n\t100% {\n\t\tbox-shadow: 0 0 0 5px hsla(var(--ck-color-focus-border-coordinates), var(--ck-color-widget-type-around-button-radar-start-alpha));\n\t}\n}\n\n@keyframes ck-widget-type-around-fake-caret-pulse {\n\t0% {\n\t\topacity: 1;\n\t}\n\t49% {\n\t\topacity: 1;\n\t}\n\t50% {\n\t\topacity: 0;\n\t}\n\t99% {\n\t\topacity: 0;\n\t}\n\t100% {\n\t\topacity: 1;\n\t}\n}\n'],sourceRoot:""}]);var s=a},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,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&o[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){var i,o,r=[],a=!0,s=!1;try{for(n=n.call(t);!(a=(i=n.next()).done)&&(r.push(i.value),!e||r.length!==e);a=!0);}catch(t){s=!0,o=t}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return r}}(t,e)||function(t,e){if(t){if("string"==typeof t)return n(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?n(t,e):void 0}}
vendor: 1,469 bytes, line 2
2(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,i=new Array(e);n<e;n++)i[n]=t[n];return i}t.exports=function(t){var n=e(t,4),i=n[1],o=n[3];if(!o)return i;if("function"==typeof btoa){var r=btoa(unescape(encodeURIComponent(JSON.stringify(o)))),a="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(r),s="/*# ".concat(a," */"),l=o.sources.map((function(t){return"/*# sourceURL=".concat(o.sourceRoot||"").concat(t," */")}));return[i].concat(l).concat([s]).join("\n")}return[i].join("\n")}},3379:function(t,e,n){var i,o=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]}}(),r=[];function a(t){for(var e=-1,n=0;n<r.length;n++)if(r[n].identifier===t){e=n;break}return e}function s(t,e){for(var n={},i=[],o=0;o<t.length;o++){var s=t[o],l=e.base?s[0]+e.base:s[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=a(u),h={css:s[1],media:s[2],sourceMap:s[3]};-1!==d?(r[d].references++,r[d].updater(h)):r.push({identifier:u,updater:m(h,e),references:1}),i.push(u)}return i}function l(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var r=n.nc;r&&(i.nonce=r)}
2if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=o(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var c,u=(c=[],function(t,e){return c[t]=e,c.filter(Boolean).join("\n")});function d(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=u(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function h(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var f=null,p=0;function m(t,e){var n,i,o;if(e.singleton){var r=p++;n=f||(f=l(e)),i=d.bind(null,n,r,!1),o=d.bind(null,n,r,!0)}else n=l(e),i=h.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=(void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i));var n=s(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=a(n[i]);r[o].references--}for(var l=s(t,e),c=0;c<n.length;c++){var u=a(n[c]);0===r[u].references&&(r[u].updater(),r.splice(u,1))}n=l}}}}},o={};function r(t){var e=o[t];if(void 0!==e)return e.exports;var n=o[t]={id:t,exports:{}};return i[t](n,n.exports,r),n.exports}r.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return r.d(e,{a:e}),e},r.d=function(t,e){for(var n in e)r.o(e,n)&&!r.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},r.g=function(){if("object"==("undefined"==typeof globalThis?"undefined":z(globalThis)))return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==("undefined"==typeof window?"undefined":z(window)))return window}}(),r.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var a={};return function(){var i=h().mark(bl),o=h().mark(yl),s=h().mark(gp);r.d(a,{default:function(){return nA}});var l=S((function t(e,n){I(this,t),this.source=e,this.name=n,this.path=[],this.stop=function t(){t.called=!0},this.off=function t(){t.called=!0}})),g=new Array(256).fill().map((function(t,e){return("0"+e.toString(16)).slice(-2)}));function v(){var t=4294967296*Math.random()>>>0,e=4294967296*Math.random()>>>0,n=4294967296*Math.random()>>>0,i=4294967296*Math.random()>>>0;return"e"+g[t>>0&255]+g[t>>8&255]+g[t>>16&255]+g[t>>24&255]+g[e>>0&255]+g[e>>8&255]+g[e>>16&255]+g[e>>24&255]+g[n>>0&255]+g[n>>8&255]+g[n>>16&255]+g[n>>24&255]+g[i>>0&255]+g[i>>8&255]+g[i>>16&255]+g[i>>24&255]}var A={get:function(t){return"number"!=typeof t?this[t]||this.normal:t},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5},x=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),r=e.call(this,function(t,e){var n=new WeakSet,i=e?" ".concat(JSON.stringify(e,(function(t,e){if("object"==z(e)&&null!==e){if(n.has(e))return"[object ".concat(e.constructor.name,"]");n.add(e)}return e}))):"";return t+i+T(t)}(t,o)),r.name="CKEditorError",r.context=i,r.data=o,r}return S(n,[{key:"is",value:function(t){return"CKEditorError"===t}}],[{key:"rethrowUnexpectedError",value:function(t,e){if(t.is&&t.is("CKEditorError"))throw t;var i=new n(t.message,e);throw i.stack=t.stack,i}}]),n}(w(Error));function E(t,e){var n;(n=console).warn.apply(n,m(function(t,e){var n=T(t);return e?[t,e,n]:[t,n]}(t,e)))}function T(t){return"\nRead more: https://ckeditor.com/docs/ckeditor5/latest/framework/guides/support/error-codes.html#error-".concat(t)}var M="object"==("undefined"==typeof window?"undefined":z(window))?window:r.g;if(M.CKEDITOR_VERSION)throw new x("ckeditor-duplicated-modules",null);M.CKEDITOR_VERSION="33.0.0";var B=Symbol("listeningTo"),P=Symbol("emitterId"),L={on:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};this.listenTo(this,t,e,n)},once:function(t,e,n){var i=!1;this.listenTo(this,t,(function(t){for(var n=arguments.length,o=new Array(n>1?n-1:0),r=1;r<n;r++)o[r-1]=arguments[r];i||(i=!0,t.off(),e.call.apply(e,[this,t].concat(o)))}),n)},off:function(t,e){this.stopListening(this,t,e)},listenTo:function(t,e,n){var i,o,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};this[B]||(this[B]={});var a=this[B];F(t)||O(t);var s=F(t);(i=a[s])||(i=a[s]={emitter:t,callbacks:{}}),(o=i.callbacks[e])||(o=i.callbacks[e]=[]),o.push(n),function(t,e,n,i,o){e._addEventListener?e._addEventListener(n,i,o):t._addEventListener.call(e,n,i,o)}(this,t,e,n,r)},stopListening:function(t,e,n){var i=this[B],o=t&&F(t),r=i&&o&&i[o],a=r&&e&&r.callbacks[e];if(!(!i||t&&!r||e&&!a))if(n)U(this,t,e,n),-1!==a.indexOf(n)&&(1===a.length?delete r.callbacks[e]:U(this,t,e,n));else if(a){for(;n=a.pop();)U(this,t,e,n);delete r.callbacks[e]}else if(r){for(e in r.callbacks)this.stopListening(t,e);delete i[o]}else{for(o in i)this.stopListening(i[o].emitter);delete this[B]}},fire:function(t){try{for(var e=t instanceof l?t:new l(this,t),n=e.name,i=V(this,n),o=arguments.length,r=new Array(o>1?o-1:0),a=1;a<o;a++)r[a-1]=arguments[a];if(e.path.push(this),i){var s=[e].concat(r);i=Array.from(i);for(var c=0;
2c<i.length&&(i[c].callback.apply(this,s),e.off.called&&(delete e.off.called,this._removeEventListener(n,i[c].callback)),!e.stop.called);c++);}if(this._delegations){var u=this._delegations.get(n),d=this._delegations.get("*");u&&H(u,e,r),d&&H(d,e,r)}return e.return}catch(t){x.rethrowUnexpectedError(t,this)}},delegate:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return{to:function(e,i){t._delegations||(t._delegations=new Map),n.forEach((function(n){var o=t._delegations.get(n);o?o.set(e,i):t._delegations.set(n,new Map([[e,i]]))}))}}},stopDelegating:function(t,e){if(this._delegations)if(t)if(e){var n=this._delegations.get(t);n&&n.delete(e)}else this._delegations.delete(t);else this._delegations.clear()},_addEventListener:function(t,e,n){!function(t,e){var n=R(t);if(!n[e]){for(var i=e,o=null,r=[];""!==i&&!n[i];)n[i]={callbacks:[],childEvents:[]},r.push(n[i]),o&&n[i].childEvents.push(o),o=i,i=i.substr(0,i.lastIndexOf(":"));if(""!==i){var a,s=p(r);try{for(s.s();!(a=s.n()).done;){a.value.callbacks=n[i].callbacks.slice()}}catch(t){s.e(t)}finally{s.f()}n[i].childEvents.push(o)}}}(this,t);var i,o=j(this,t),r=A.get(n.priority),a={callback:e,priority:r},s=p(o);try{for(s.s();!(i=s.n()).done;){for(var l=i.value,c=!1,u=0;u<l.length;u++)if(l[u].priority<r){l.splice(u,0,a),c=!0;break}c||l.push(a)}}catch(t){s.e(t)}finally{s.f()}},_removeEventListener:function(t,e){var n,i=p(j(this,t));try{for(i.s();!(n=i.n()).done;)for(var o=n.value,r=0;r<o.length;r++)o[r].callback==e&&(o.splice(r,1),r--)}catch(t){i.e(t)}finally{i.f()}}},N=L;function O(t,e){t[P]||(t[P]=e||v())}function F(t){return t[P]}function R(t){return t._events||Object.defineProperty(t,"_events",{value:{}}),t._events}function j(t,e){var n=R(t)[e];if(!n)return[];for(var i=[n.callbacks],o=0;o<n.childEvents.length;o++){var r=j(t,n.childEvents[o]);i=i.concat(r)}return i}function V(t,e){var n;return t._events&&(n=t._events[e])&&n.callbacks.length?n.callbacks:e.indexOf(":")>-1?V(t,e.substr(0,e.lastIndexOf(":"))):null}function H(t,e,n){var i,o=p(t);try{for(o.s();!(i=o.n()).done;){var r=f(i.value,2),a=r[0],s=r[1];s?"function"==typeof s&&(s=s(e.name)):s=e.name;var c=new l(e.source,s);c.path=m(e.path),a.fire.apply(a,[c].concat(m(n)))}}catch(t){o.e(t)}finally{o.f()}}function U(t,e,n,i){e._removeEventListener?e._removeEventListener(n,i):t._removeEventListener.call(e,n,i)}var Z=function(t){var e=z(t);return null!=t&&("object"==e||"function"==e)},q="object"==(void 0===n.g?"undefined":z(n.g))&&n.g&&n.g.Object===Object&&n.g,W="object"==("undefined"==typeof self?"undefined":z(self))&&self&&self.Object===Object&&self,G=q||W||Function("return this")(),$=G.Symbol,Y=Object.prototype,K=Y.hasOwnProperty,Q=Y.toString,J=$?$.toStringTag:void 0,X=Object.prototype.toString,tt=$?$.toStringTag:void 0,et=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":tt&&tt in Object(t)?function(t){var e=K.call(t,J),n=t[J];try{t[J]=void 0;var i=!0}catch(t){}var o=Q.call(t);return i&&(e?t[J]=n:delete t[J]),o}(t):function(t){return X.call(t)}(t)},nt=function(t){if(!Z(t))return!1;var e=et(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},it=G["__core-js_shared__"],ot=function(){var t=/[^.]+$/.exec(it&&it.keys&&it.keys.IE_PROTO||"");return t?"Symbol(src)_1."+t:""}(),rt=Function.prototype.toString,at=function(t){if(null!=t){try{return rt.call(t)}catch(t){}try{return t+""}catch(t){}}return""},st=/^\[object .+?Constructor\]$/,lt=Function.prototype,ct=Object.prototype,ut=lt.toString,dt=ct.hasOwnProperty,ht=RegExp("^"+ut.call(dt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ft=function(t){return!(!Z(t)||function(t){return!!ot&&ot in t}(t))&&(nt(t)?ht:st).test(at(t))},pt=function(t,e){var n=function(t,e){return null==t?void 0:t[e]}(t,e);return ft(n)?n:void 0},mt=function(){try{var t=pt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}(),gt=function(t,e,n){"__proto__"==e&&mt?mt(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},vt=function(t,e){return t===e||t!=t&&e!=e},kt=Object.prototype.hasOwnProperty,bt=function(t,e,n){var i=t[e];kt.call(t,e)&&vt(i,n)&&(void 0!==n||e in t)||gt(t,e,n)},yt=function(t,e,n,i){var o=!n;n||(n={});for(var r=-1,a=e.length;++r<a;){var s=e[r],l=i?i(n[s],t[s],s,n,t):void 0;void 0===l&&(l=t[s]),o?gt(n,s,l):bt(n,s,l)}return n},_t=function(t){return t},wt=Math.max,Ct=function(t){return function(){return t}},At=mt?function(t,e){return mt(t,"toString",{configurable:!0,enumerable:!1,value:Ct(e),writable:!0})}:_t,xt=Date.now,Dt=function(t){var e=0,n=0;return function(){var i=xt(),o=16-(i-n);if(n=i,o>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(At),Et=function(t,e){return Dt(function(t,e,n){return e=wt(void 0===e?t.length-1:e,0),function(){for(var i=arguments,o=-1,r=wt(i.length-e,0),a=Array(r);++o<r;)a[o]=i[e+o];o=-1;for(var s=Array(e+1);++o<e;)s[o]=i[o];return s[e]=n(a),function(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)}(t,this,s)}}(t,e,_t),t+"")},St=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},Tt=function(t){return null!=t&&St(t.length)&&!nt(t)}
2,It=/^(?:0|[1-9]\d*)$/,zt=function(t,e){var n=z(t);return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&It.test(t))&&t>-1&&t%1==0&&t<e},Mt=function(t){return Et((function(e,n){var i=-1,o=n.length,r=o>1?n[o-1]:void 0,a=o>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(o--,r):void 0,a&&function(t,e,n){if(!Z(n))return!1;var i=z(e);return!!("number"==i?Tt(n)&&zt(e,n.length):"string"==i&&e in n)&&vt(n[e],t)}(n[0],n[1],a)&&(r=o<3?void 0:r,o=1),e=Object(e);++i<o;){var s=n[i];s&&t(e,s,i,r)}return e}))},Bt=function(t){return null!=t&&"object"==z(t)},Pt=function(t){return Bt(t)&&"[object Arguments]"==et(t)},Lt=Object.prototype,Nt=Lt.hasOwnProperty,Ot=Lt.propertyIsEnumerable,Ft=Pt(function(){return arguments}())?Pt:function(t){return Bt(t)&&Nt.call(t,"callee")&&!Ot.call(t,"callee")},Rt=Array.isArray,jt="object"==z(e)&&e&&!e.nodeType&&e,Vt=jt&&"object"==z(t)&&t&&!t.nodeType&&t,Ht=Vt&&Vt.exports===jt?G.Buffer:void 0,Ut=(Ht?Ht.isBuffer:void 0)||function(){return!1},Zt={};Zt["[object Float32Array]"]=Zt["[object Float64Array]"]=Zt["[object Int8Array]"]=Zt["[object Int16Array]"]=Zt["[object Int32Array]"]=Zt["[object Uint8Array]"]=Zt["[object Uint8ClampedArray]"]=Zt["[object Uint16Array]"]=Zt["[object Uint32Array]"]=!0,Zt["[object Arguments]"]=Zt["[object Array]"]=Zt["[object ArrayBuffer]"]=Zt["[object Boolean]"]=Zt["[object DataView]"]=Zt["[object Date]"]=Zt["[object Error]"]=Zt["[object Function]"]=Zt["[object Map]"]=Zt["[object Number]"]=Zt["[object Object]"]=Zt["[object RegExp]"]=Zt["[object Set]"]=Zt["[object String]"]=Zt["[object WeakMap]"]=!1;var qt=function(t){return function(e){return t(e)}},Wt="object"==z(e)&&e&&!e.nodeType&&e,Gt=Wt&&"object"==z(t)&&t&&!t.nodeType&&t,$t=Gt&&Gt.exports===Wt&&q.process,Yt=function(){try{return Gt&&Gt.require&&Gt.require("util").types||$t&&$t.binding&&$t.binding("util")}catch(t){}}(),Kt=Yt&&Yt.isTypedArray,Qt=Kt?qt(Kt):function(t){return Bt(t)&&St(t.length)&&!!Zt[et(t)]},Jt=Object.prototype.hasOwnProperty,Xt=function(t,e){var n=Rt(t),i=!n&&Ft(t),o=!n&&!i&&Ut(t),r=!n&&!i&&!o&&Qt(t),a=n||i||o||r,s=a?function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(t.length,String):[],l=s.length;for(var c in t)!e&&!Jt.call(t,c)||a&&("length"==c||o&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||zt(c,l))||s.push(c);return s},te=Object.prototype,ee=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||te)},ne=Object.prototype.hasOwnProperty,ie=function(t){if(!Z(t))return function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}(t);var e=ee(t),n=[];for(var i in t)("constructor"!=i||!e&&ne.call(t,i))&&n.push(i);return n},oe=function(t){return Tt(t)?Xt(t,!0):ie(t)},re=Mt((function(t,e){yt(e,oe(e),t)})),ae=Symbol("observableProperties"),se=Symbol("boundObservables"),le=Symbol("boundProperties"),ce=Symbol("decoratedMethods"),ue=Symbol("decoratedOriginal"),de={set:function(t,e){var n=this;if(Z(t))Object.keys(t).forEach((function(e){n.set(e,t[e])}),this);else{fe(this);var i=this[ae];if(t in this&&!i.has(t))throw new x("observable-set-cannot-override",this);Object.defineProperty(this,t,{enumerable:!0,configurable:!0,get:function(){return i.get(t)},set:function(e){var n=i.get(t),o=this.fire("set:"+t,t,e,n);void 0===o&&(o=e),n===o&&i.has(t)||(i.set(t,o),this.fire("change:"+t,t,o,n))}}),this[t]=e}},bind:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.length||!ge(n))throw new x("observable-bind-wrong-properties",this);if(new Set(n).size!==n.length)throw new x("observable-bind-duplicate-properties",this);fe(this);var o=this[le];n.forEach((function(e){if(o.has(e))throw new x("observable-bind-rebind",t)}));var r=new Map;return n.forEach((function(t){var e={property:t,to:[]};o.set(t,e),r.set(t,e)})),{to:pe,toMany:me,_observable:this,_bindProperties:n,_to:[],_bindings:r}},unbind:function(){var t=this;if(this[ae]){for(var e=this[le],n=this[se],i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];if(o.length){if(!ge(o))throw new x("observable-unbind-wrong-properties",this);o.forEach((function(i){var o,r,a,s,l=e.get(i);l&&(l.to.forEach((function(e){o=e[0],r=e[1],a=n.get(o),(s=a[r]).delete(l),s.size||delete a[r],Object.keys(a).length||(n.delete(o),t.stopListening(o,"change"))})),e.delete(i))}))}
2else n.forEach((function(e,n){t.stopListening(n,"change")})),n.clear(),e.clear()}},decorate:function(t){var e=this,n=this[t];if(!n)throw new x("observablemixin-cannot-decorate-undefined",this,{object:this,methodName:t});this.on(t,(function(t,i){t.return=n.apply(e,i)})),this[t]=function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return this.fire(t,n)},this[t][ue]=n,this[ce]||(this[ce]=[]),this[ce].push(t)}};re(de,N),de.stopListening=function(t,e,n){if(!t&&this[ce]){var i,o=p(this[ce]);try{for(o.s();!(i=o.n()).done;){var r=i.value;this[r]=this[r][ue]}}catch(t){o.e(t)}finally{o.f()}delete this[ce]}N.stopListening.call(this,t,e,n)};var he=de;function fe(t){t[ae]||(Object.defineProperty(t,ae,{value:new Map}),Object.defineProperty(t,se,{value:new Map}),Object.defineProperty(t,le,{value:new Map}))}function pe(){var t,e=this,n=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];if(!e.length)throw new x("observable-bind-to-parse-error",null);var i,o={to:[]};
2return"function"==typeof e[e.length-1]&&(o.callback=e.pop()),e.forEach((function(t){if("string"==typeof t)i.properties.push(t);else{if("object"!=z(t))throw new x("observable-bind-to-parse-error",null);i={observable:t,properties:[]},o.to.push(i)}})),o}.apply(void 0,arguments),i=Array.from(this._bindings.keys()),o=i.length;if(!n.callback&&n.to.length>1)throw new x("observable-bind-to-no-callback",this);if(o>1&&n.callback)throw new x("observable-bind-to-extra-callback",this);n.to.forEach((function(t){if(t.properties.length&&t.properties.length!==o)throw new x("observable-bind-to-properties-length",e);t.properties.length||(t.properties=e._bindProperties)})),this._to=n.to,n.callback&&(this._bindings.get(i[0]).callback=n.callback),t=this._observable,this._to.forEach((function(e){var n,i=t[se];i.get(e.observable)||t.listenTo(e.observable,"change",(function(o,r){(n=i.get(e.observable)[r])&&n.forEach((function(e){ve(t,e.property)}))}))})),function(t){var e;t._bindings.forEach((function(n,i){t._to.forEach((function(o){e=o.properties[n.callback?0:t._bindProperties.indexOf(i)],n.to.push([o.observable,e]),function(t,e,n,i){var o=t[se],r=o.get(n),a=r||{};a[i]||(a[i]=new Set),a[i].add(e),r||o.set(n,a)}(t._observable,n,o.observable,e)}))}))}(this),this._bindProperties.forEach((function(t){ve(e._observable,t)}))}function me(t,e,n){if(this._bindings.size>1)throw new x("observable-bind-to-many-not-one-binding",this);this.to.apply(this,m(function(t,e){var n=t.map((function(t){return[t,e]}));return Array.prototype.concat.apply([],n)}(t,e)).concat([n]))}function ge(t){return t.every((function(t){return"string"==typeof t}))}function ve(t,e){var n,i=t[le].get(e);i.callback?n=i.callback.apply(t,i.to.map((function(t){return t[0][t[1]]}))):n=(n=i.to[0])[0][n[1]],Object.prototype.hasOwnProperty.call(t,e)?t[e]=n:t.set(e,n)}function ke(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];n.forEach((function(e){Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e)).forEach((function(n){if(!(n in t.prototype)){var i=Object.getOwnPropertyDescriptor(e,n);i.enumerable=!1,Object.defineProperty(t.prototype,n,i)}}))}))}var be=function(){function t(e){I(this,t),this.editor=e,this.set("isEnabled",!0),this._disableStack=new Set}return S(t,[{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",ye,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",ye),this.isEnabled=!0)}},{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!1}}]),t}();function ye(t){t.return=!1,t.stop()}ke(be,he);var _e=function(){function t(e){var n=this;I(this,t),this.editor=e,this.set("value",void 0),this.set("isEnabled",!1),this.affectsData=!0,this._disableStack=new Set,this.decorate("execute"),this.listenTo(this.editor.model.document,"change",(function(){n.refresh()})),this.on("execute",(function(t){n.isEnabled||t.stop()}),{priority:"high"}),this.listenTo(e,"change:isReadOnly",(function(t,e,i){i&&n.affectsData?n.forceDisabled("readOnlyMode"):n.clearForceDisabled("readOnlyMode")}))}return S(t,[{key:"refresh",value:function(){this.isEnabled=!0}},{key:"forceDisabled",value:function(t){this._disableStack.add(t),1==this._disableStack.size&&(this.on("set:isEnabled",we,{priority:"highest"}),this.isEnabled=!1)}},{key:"clearForceDisabled",value:function(t){this._disableStack.delete(t),0==this._disableStack.size&&(this.off("set:isEnabled",we),this.refresh())}},{key:"execute",value:function(){}},{key:"destroy",value:function(){this.stopListening()}}]),t}();function we(t){t.return=!1,t.stop()}ke(_e,he);var Ce=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._childCommands=[],i}return S(n,[{key:"refresh",value:function(){}},{key:"execute",value:function(){for(var t=this._getFirstEnabledCommand(),e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return null!=t&&t.execute(n)}},{key:"registerChildCommand",value:function(t){var e=this;this._childCommands.push(t),t.on("change:isEnabled",(function(){return e._checkEnabled()})),this._checkEnabled()}},{key:"_checkEnabled",value:function(){this.isEnabled=!!this._getFirstEnabledCommand()}},{key:"_getFirstEnabledCommand",value:function(){return this._childCommands.find((function(t){return t.isEnabled}))}}]),n}(_e),Ae=function(t,e){return function(n){return t(e(n))}},xe=Ae(Object.getPrototypeOf,Object),De=Function.prototype,Ee=Object.prototype,Se=De.toString,Te=Ee.hasOwnProperty,Ie=Se.call(Object),ze=function(t){if(!Bt(t)||"[object Object]"!=et(t))return!1;var e=xe(t);if(null===e)return!0;var n=Te.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Se.call(n)==Ie},Me=function(t,e){for(var n=t.length;n--;)if(vt(t[n][0],e))return n;return-1},Be=Array.prototype.splice;function Pe(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Pe.prototype.clear=function(){this.__data__=[],this.size=0},Pe.prototype.delete=function(t){var e=this.__data__,n=Me(e,t);return!(n<0||(n==e.length-1?e.pop():Be.call(e,n,1),--this.size,0))},Pe.prototype.get=function(t){var e=this.__data__,n=Me(e,t);return n<0?void 0:e[n][1]},Pe.prototype.has=function(t){return Me(this.__data__,t)>-1}
2,Pe.prototype.set=function(t,e){var n=this.__data__,i=Me(n,t);return i<0?(++this.size,n.push([t,e])):n[i][1]=e,this};var Le=Pe,Ne=pt(G,"Map"),Oe=pt(Object,"create"),Fe=Object.prototype.hasOwnProperty,Re=Object.prototype.hasOwnProperty;function je(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}je.prototype.clear=function(){this.__data__=Oe?Oe(null):{},this.size=0},je.prototype.delete=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},je.prototype.get=function(t){var e=this.__data__;if(Oe){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(e,t)?e[t]:void 0},je.prototype.has=function(t){var e=this.__data__;return Oe?void 0!==e[t]:Re.call(e,t)},je.prototype.set=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Oe&&void 0===e?"__lodash_hash_undefined__":e,this};var Ve=je,He=function(t,e){var n=t.__data__;return function(t){var e=z(t);return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}(e)?n["string"==typeof e?"string":"hash"]:n.map};function Ue(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var i=t[e];this.set(i[0],i[1])}}Ue.prototype.clear=function(){this.size=0,this.__data__={hash:new Ve,map:new(Ne||Le),string:new Ve}},Ue.prototype.delete=function(t){var e=He(this,t).delete(t);return this.size-=e?1:0,e},Ue.prototype.get=function(t){return He(this,t).get(t)},Ue.prototype.has=function(t){return He(this,t).has(t)},Ue.prototype.set=function(t,e){var n=He(this,t),i=n.size;return n.set(t,e),this.size+=n.size==i?0:1,this};var Ze=Ue;function qe(t){var e=this.__data__=new Le(t);this.size=e.size}qe.prototype.clear=function(){this.__data__=new Le,this.size=0},qe.prototype.delete=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n},qe.prototype.get=function(t){return this.__data__.get(t)},qe.prototype.has=function(t){return this.__data__.has(t)},qe.prototype.set=function(t,e){var n=this.__data__;if(n instanceof Le){var i=n.__data__;if(!Ne||i.length<199)return i.push([t,e]),this.size=++n.size,this;n=this.__data__=new Ze(i)}return n.set(t,e),this.size=n.size,this};var We=qe,Ge=Ae(Object.keys,Object),$e=Object.prototype.hasOwnProperty,Ye=function(t){return Tt(t)?Xt(t):function(t){if(!ee(t))return Ge(t);var e=[];for(var n in Object(t))$e.call(t,n)&&"constructor"!=n&&e.push(n);return e}(t)},Ke="object"==z(e)&&e&&!e.nodeType&&e,Qe=Ke&&"object"==z(t)&&t&&!t.nodeType&&t,Je=Qe&&Qe.exports===Ke?G.Buffer:void 0,Xe=Je?Je.allocUnsafe:void 0,tn=function(t,e){if(e)return t.slice();var n=t.length,i=Xe?Xe(n):new t.constructor(n);return t.copy(i),i},en=function(t,e){var n=-1,i=t.length;for(e||(e=Array(i));++n<i;)e[n]=t[n];return e},nn=function(){return[]},on=Object.prototype.propertyIsEnumerable,rn=Object.getOwnPropertySymbols,an=rn?function(t){return null==t?[]:(t=Object(t),function(t,e){for(var n=-1,i=null==t?0:t.length,o=0,r=[];++n<i;){var a=t[n];e(a,n,t)&&(r[o++]=a)}return r}(rn(t),(function(e){return on.call(t,e)})))}:nn,sn=function(t,e){for(var n=-1,i=e.length,o=t.length;++n<i;)t[o+n]=e[n];return t},ln=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,an(t)),t=xe(t);return e}:nn,cn=function(t,e,n){var i=e(t);return Rt(t)?i:sn(i,n(t))},un=function(t){return cn(t,Ye,an)},dn=function(t){return cn(t,oe,ln)},hn=pt(G,"DataView"),fn=pt(G,"Promise"),pn=pt(G,"Set"),mn=pt(G,"WeakMap"),gn="[object Map]",vn="[object Promise]",kn="[object Set]",bn="[object WeakMap]",yn="[object DataView]",_n=at(hn),wn=at(Ne),Cn=at(fn),An=at(pn),xn=at(mn),Dn=et;(hn&&Dn(new hn(new ArrayBuffer(1)))!=yn||Ne&&Dn(new Ne)!=gn||fn&&Dn(fn.resolve())!=vn||pn&&Dn(new pn)!=kn||mn&&Dn(new mn)!=bn)&&(Dn=function(t){var e=et(t),n="[object Object]"==e?t.constructor:void 0,i=n?at(n):"";if(i)switch(i){case _n:return yn;case wn:return gn;case Cn:return vn;case An:return kn;case xn:return bn}return e});var En=Dn,Sn=Object.prototype.hasOwnProperty,Tn=G.Uint8Array,In=function(t){var e=new t.constructor(t.byteLength);return new Tn(e).set(new Tn(t)),e},zn=/\w*$/,Mn=$?$.prototype:void 0,Bn=Mn?Mn.valueOf:void 0,Pn=function(t,e){var n=e?In(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)},Ln=function(t,e,n){var i=t.constructor;switch(e){case"[object ArrayBuffer]":return In(t);case"[object Boolean]":case"[object Date]":return new i(+t);case"[object DataView]":return function(t,e){var n=e?In(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}(t,n);
2case"[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 Pn(t,n);case"[object Map]":case"[object Set]":return new i;case"[object Number]":case"[object String]":return new i(t);case"[object RegExp]":return function(t){var e=new t.constructor(t.source,zn.exec(t));return e.lastIndex=t.lastIndex,e}(t);case"[object Symbol]":return function(t){return Bn?Object(Bn.call(t)):{}}(t)}},Nn=Object.create,On=function(){function t(){}return function(e){if(!Z(e))return{};if(Nn)return Nn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}(),Fn=function(t){return"function"!=typeof t.constructor||ee(t)?{}:On(xe(t))},Rn=Yt&&Yt.isMap,jn=Rn?qt(Rn):function(t){return Bt(t)&&"[object Map]"==En(t)},Vn=Yt&&Yt.isSet,Hn=Vn?qt(Vn):function(t){return Bt(t)&&"[object Set]"==En(t)},Un="[object Arguments]",Zn="[object Function]",qn={};qn[Un]=qn["[object Array]"]=qn["[object ArrayBuffer]"]=qn["[object DataView]"]=qn["[object Boolean]"]=qn["[object Date]"]=qn["[object Float32Array]"]=qn["[object Float64Array]"]=qn["[object Int8Array]"]=qn["[object Int16Array]"]=qn["[object Int32Array]"]=qn["[object Map]"]=qn["[object Number]"]=qn["[object Object]"]=qn["[object RegExp]"]=qn["[object Set]"]=qn["[object String]"]=qn["[object Symbol]"]=qn["[object Uint8Array]"]=qn["[object Uint8ClampedArray]"]=qn["[object Uint16Array]"]=qn["[object Uint32Array]"]=!0,qn["[object Error]"]=qn[Zn]=qn["[object WeakMap]"]=!1;var Wn=function t(e,n,i,o,r,a){var s,l=1&n,c=2&n,u=4&n;if(i&&(s=r?i(e,o,r,a):i(e)),void 0!==s)return s;if(!Z(e))return e;var d=Rt(e);if(d){if(s=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n}(e),!l)return en(e,s)}else{var h=En(e),f=h==Zn||"[object GeneratorFunction]"==h;if(Ut(e))return tn(e,l);if("[object Object]"==h||h==Un||f&&!r){if(s=c||f?{}:Fn(e),!l)return c?function(t,e){return yt(t,ln(t),e)}(e,function(t,e){return t&&yt(e,oe(e),t)}(s,e)):function(t,e){return yt(t,an(t),e)}(e,function(t,e){return t&&yt(e,Ye(e),t)}(s,e))}else{if(!qn[h])return r?e:{};s=Ln(e,h,l)}}a||(a=new We);var p=a.get(e);if(p)return p;a.set(e,s),Hn(e)?e.forEach((function(o){s.add(t(o,n,i,o,e,a))})):jn(e)&&e.forEach((function(o,r){s.set(r,t(o,n,i,r,e,a))}));var m=d?void 0:(u?c?dn:un:c?oe:Ye)(e);return function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i&&!1!==e(t[n],n,t););}(m||e,(function(o,r){m&&(o=e[r=o]),bt(s,r,t(o,n,i,r,e,a))})),s},Gn=function(t,e){return Wn(t,5,e="function"==typeof e?e:void 0)},$n=function(t){return Bt(t)&&1===t.nodeType&&!ze(t)},Yn=function(){function t(e,n){I(this,t),this._config={},n&&this.define(Kn(n)),e&&this._setObjectToTarget(this._config,e)}return S(t,[{key:"set",value:function(t,e){this._setToTarget(this._config,t,e)}},{key:"define",value:function(t,e){this._setToTarget(this._config,t,e,!0)}},{key:"get",value:function(t){return this._getFromSource(this._config,t)}},{key:"names",value:h().mark((function t(){var e,n,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=0,n=Object.keys(this._config);case 1:if(!(e<n.length)){t.next=8;break}return i=n[e],t.next=5,i;case 5:e++,t.next=1;break;case 8:case"end":return t.stop()}}),t,this)}))},{key:"_setToTarget",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(ze(e))this._setObjectToTarget(t,e,i);else{var o=e.split(".");e=o.pop();var r,a=p(o);try{for(a.s();!(r=a.n()).done;){var s=r.value;ze(t[s])||(t[s]={}),t=t[s]}}catch(t){a.e(t)}finally{a.f()}if(ze(n))return ze(t[e])||(t[e]={}),t=t[e],void this._setObjectToTarget(t,n,i);i&&void 0!==t[e]||(t[e]=n)}}},{key:"_getFromSource",value:function(t,e){var n=e.split(".");e=n.pop();var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;if(!ze(t[r])){t=null;break}t=t[r]}}catch(t){o.e(t)}finally{o.f()}return t?Kn(t[e]):void 0}},{key:"_setObjectToTarget",value:function(t,e,n){var i=this;Object.keys(e).forEach((function(o){i._setToTarget(t,o,e[o],n)}))}}]),t}();function Kn(t){return Gn(t,Qn)}function Qn(t){return $n(t)?t:void 0}function Jn(t){return!(!t||!t[Symbol.iterator])}var Xn=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,e);var i=Jn(t);if(i||(n=t),this._items=[],this._itemMap=new Map,this._idProperty=n.idProperty||"id",this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap,this._skippedIndexesFromExternal=[],i){var o,r=p(t);try{for(r.s();!(o=r.n()).done;){var a=o.value;this._items.push(a),this._itemMap.set(this._getItemIdBeforeAdding(a),a)}}catch(t){r.e(t)}finally{r.f()}}}return S(e,[{key:"length",get:function(){return this._items.length}},{key:"first",get:function(){return this._items[0]||null}},{key:"last",get:function(){return this._items[this.length-1]||null}},{key:"add",value:function(t,e){return this.addMany([t],e)}},{key:"addMany",value:function(t,e){if(void 0===e)e=this._items.length;else if(e>this._items.length||e<0)throw new x("collection-add-item-invalid-index",this);for(var n=0;n<t.length;n++){var i=t[n],o=this._getItemIdBeforeAdding(i),r=e+n;this._items.splice(r,0,i),this._itemMap.set(o,i),this.fire("add",i,r)}return this.fire("change",{added:t,removed:[],index:e}),this}},{key:"get",value:function(t){var e;if("string"==typeof t)e=this._itemMap.get(t);else{if("number"!=typeof t)throw new x("collection-get-invalid-arg",this);e=this._items[t]}return e||null}},{key:"has",value:function(t){if("string"==typeof t)return this._itemMap.has(t);var e=t[this._idProperty];return this._itemMap.has(e)}},{key:"getIndex",value:function(t){var e;return e="string"==typeof t?this._itemMap.get(t):t,this._items.indexOf(e)}},{key:"remove",value:function(t){var e=f(this._remove(t),2),n=e[0],i=e[1];return this.fire("change",{added:[],removed:[n],index:i}),n}},{key:"map",value:function(t,e){return this._items.map(t,e)}},{key:"find",value:function(t,e){return this._items.find(t,e)}},{key:"filter",value:function(t,e){return this._items.filter(t,e)}},{key:"clear",value:function(){this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);for(var t=Array.from(this._items);this.length;)this._remove(0);this.fire("change",{added:[],removed:t,index:0})}},{key:"bindTo",value:function(t){var e=this;if(this._bindToCollection)throw new x("collection-bind-to-rebind",this);return this._bindToCollection=t,{as:function(t){e._setUpBindToBinding((function(e){return new t(e)}))},using:function(t){"function"==typeof t?e._setUpBindToBinding((function(e){return t(e)})):e._setUpBindToBinding((function(e){return e[t]}))}}}},{key:"_setUpBindToBinding",value:function(t){var e,n=this,i=this._bindToCollection,o=function(e,o,r){var a=i._bindToCollection==n,s=i._bindToInternalToExternalMap.get(o);if(a&&s)n._bindToExternalToInternalMap.set(o,s),n._bindToInternalToExternalMap.set(s,o);else{var l=t(o);if(!l)return void n._skippedIndexesFromExternal.push(r);var c,u=r,d=p(n._skippedIndexesFromExternal);try{for(d.s();!(c=d.n()).done;){r>c.value&&u--}}catch(t){d.e(t)}finally{d.f()}var h,f=p(i._skippedIndexesFromExternal);try{for(f.s();!(h=f.n()).done;){u>=h.value&&u++}}catch(t){f.e(t)}finally{f.f()}n._bindToExternalToInternalMap.set(o,l),n._bindToInternalToExternalMap.set(l,o),n.add(l,u);for(var m=0;m<i._skippedIndexesFromExternal.length;m++)u<=i._skippedIndexesFromExternal[m]&&i._skippedIndexesFromExternal[m]++}},r=p(i);try{for(r.s();!(e=r.n()).done;){var a=e.value;o(0,a,i.getIndex(a))}}catch(t){r.e(t)}finally{r.f()}this.listenTo(i,"add",o),this.listenTo(i,"remove",(function(t,e,
2i){var o=n._bindToExternalToInternalMap.get(e);o&&n.remove(o),n._skippedIndexesFromExternal=n._skippedIndexesFromExternal.reduce((function(t,e){return i<e&&t.push(e-1),i>e&&t.push(e),t}),[])}))}},{key:"_getItemIdBeforeAdding",value:function(t){var e,n=this._idProperty;if(n in t){if("string"!=typeof(e=t[n]))throw new x("collection-add-invalid-id",this);if(this.get(e))throw new x("collection-add-item-already-exists",this)}else t[n]=e=v();return e}},{key:"_remove",value:function(t){var e,n,i,o=!1,r=this._idProperty;if("string"==typeof t?(n=t,o=!(i=this._itemMap.get(n)),i&&(e=this._items.indexOf(i))):"number"==typeof t?(e=t,o=!(i=this._items[e]),i&&(n=i[r])):(n=(i=t)[r],o=-1==(e=this._items.indexOf(i))||!this._itemMap.get(n)),o)throw new x("collection-remove-404",this);this._items.splice(e,1),this._itemMap.delete(n);var a=this._bindToInternalToExternalMap.get(i);return this._bindToInternalToExternalMap.delete(i),this._bindToExternalToInternalMap.delete(a),this.fire("remove",i,e),[i,e]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}}]),e}();ke(Xn,N);var ti=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[];I(this,e),this._context=t,this._plugins=new Map,this._availablePlugins=new Map;var o,r=p(n);try{for(r.s();!(o=r.n()).done;){var a=o.value;a.pluginName&&this._availablePlugins.set(a.pluginName,a)}}catch(t){r.e(t)}finally{r.f()}this._contextPlugins=new Map;var s,l=p(i);try{for(l.s();!(s=l.n()).done;){var c=f(s.value,2),u=c[0],d=c[1];this._contextPlugins.set(u,d),this._contextPlugins.set(d,u),u.pluginName&&this._availablePlugins.set(u.pluginName,u)}}catch(t){l.e(t)}finally{l.f()}}return S(e,[{key:Symbol.iterator,value:h().mark((function t(){var e,n,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=p(this._plugins),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=11;break}if(i=n.value,t.t0="function"==typeof i[0],!t.t0){t.next=9;break}return t.next=9,i;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),e.e(t.t1);case 16:return t.prev=16,e.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"get",value:function(t){var e=this._plugins.get(t);if(!e){var n=t;throw"function"==typeof t&&(n=t.pluginName||t.name),new x("plugincollection-plugin-not-loaded",this._context,{plugin:n})}return e}},{key:"has",value:function(t){return this._plugins.has(t)}},{key:"init",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],i=this,o=this._context;!function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;e.forEach((function(e){s(e)&&(n.has(e)||(n.add(e),e.pluginName&&!i._availablePlugins.has(e.pluginName)&&i._availablePlugins.set(e.pluginName,e),e.requires&&t(e.requires,n)))}))}(t),d(t);var r=m(function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;return e.map((function(t){return s(t)?t:i._availablePlugins.get(t)})).reduce((function(e,i){return n.has(i)?e:(n.add(i),i.requires&&(d(i.requires,i),t(i.requires,n).forEach((function(t){return e.add(t)}))),e.add(i))}),new Set)}(t.filter((function(t){return!c(t,e)}))));!function(t,e){var n,o=p(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if("function"!=typeof r)throw new x("plugincollection-replace-plugin-invalid-type",null,{pluginItem:r});var a=r.pluginName;if(!a)throw new x("plugincollection-replace-plugin-missing-name",null,{pluginItem:r});if(r.requires&&r.requires.length)throw new x("plugincollection-plugin-for-replacing-cannot-have-dependencies",null,{pluginName:a});var s=i._availablePlugins.get(a);if(!s)throw new x("plugincollection-plugin-for-replacing-not-exist",null,{pluginName:a});var l=t.indexOf(s);if(-1===l){if(i._contextPlugins.has(s))return;throw new x("plugincollection-plugin-for-replacing-not-loaded",null,{pluginName:a})}if(s.requires&&s.requires.length)throw new x("plugincollection-replaced-plugin-cannot-have-dependencies",null,{pluginName:a});t.splice(l,1,r),i._availablePlugins.set(a,r)}}catch(t){o.e(t)}finally{o.f()}}(r,n);var a=function(t){return t.map((function(t){var e=i._contextPlugins.get(t)||new t(o);return i._add(t,e),e}))}(r);return h(a,"init").then((function(){return h(a,"afterInit")})).then((function(){return a}));function s(t){return"function"==typeof t}function l(t){return s(t)&&t.isContextPlugin}function c(t,e){return e.some((function(e){return e===t||u(t)===e||u(e)===t}))}function u(t){return s(t)?t.pluginName||t.name:t}function d(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t.map((function(t){return s(t)?t:i._availablePlugins.get(t)||t}
2)).forEach((function(t){!function(t,e){if(!s(t)){if(e)throw new x("plugincollection-soft-required",o,{missingPlugin:t,requiredBy:u(e)});throw new x("plugincollection-plugin-not-found",o,{plugin:t})}}(t,n),function(t,e){if(l(e)&&!l(t))throw new x("plugincollection-context-required",o,{plugin:u(t),requiredBy:u(e)})}(t,n),function(t,n){if(n&&c(t,e))throw new x("plugincollection-required",o,{plugin:u(t),requiredBy:u(n)})}(t,n)}))}function h(t,e){return t.reduce((function(t,n){return n[e]?i._contextPlugins.has(n)?t:t.then(n[e].bind(n)):t}),Promise.resolve())}}},{key:"destroy",value:function(){var t,e=[],n=p(this);try{for(n.s();!(t=n.n()).done;){var i=f(t.value,2)[1];"function"!=typeof i.destroy||this._contextPlugins.has(i)||e.push(i.destroy())}}catch(t){n.e(t)}finally{n.f()}return Promise.all(e)}},{key:"_add",value:function(t,e){this._plugins.set(t,e);var n=t.pluginName;if(n){if(this._plugins.has(n))throw new x("plugincollection-plugin-name-conflict",null,{pluginName:n,plugin1:this._plugins.get(n).constructor,plugin2:t});this._plugins.set(n,e)}}}]),e}();function ei(t){return Array.isArray(t)?t:[t]}ke(ti,N),window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={});var ni=["ar","ara","fa","per","fas","he","heb","ku","kur","ug","uig"];function ii(t){return ni.includes(t)?"rtl":"ltr"}var oi=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t),this.uiLanguage=n.uiLanguage||"en",this.contentLanguage=n.contentLanguage||this.uiLanguage,this.uiLanguageDirection=ii(this.uiLanguage),this.contentLanguageDirection=ii(this.contentLanguage),this.t=function(t,n){return e._t(t,n)}}return S(t,[{key:"language",get:function(){return console.warn("locale-deprecated-language-property: The Locale#language property has been deprecated and will be removed in the near future. Please use #uiLanguage and #contentLanguage properties instead."),this.uiLanguage}},{key:"_t",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];e=ei(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}))}(function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;if("number"!=typeof n)throw new x("translation-service-quantity-not-a-number",null,{quantity:n});var i=Object.keys(window.CKEDITOR_TRANSLATIONS).length;1===i&&(t=Object.keys(window.CKEDITOR_TRANSLATIONS)[0]);var o=e.id||e.string;if(0===i||!function(t,e){return!!window.CKEDITOR_TRANSLATIONS[t]&&!!window.CKEDITOR_TRANSLATIONS[t].dictionary[e]}(t,o))return 1!==n?e.plural:e.string;var r=window.CKEDITOR_TRANSLATIONS[t].dictionary,a=window.CKEDITOR_TRANSLATIONS[t].getPluralForm||function(t){return 1===t?0:1};if("string"==typeof r[o])return r[o];var s=Number(a(n));return r[o][s]}(this.uiLanguage,t,n),e)}}]),t}(),ri=function(){function t(e){I(this,t),this.config=new Yn(e,this.constructor.defaultConfig);var n=this.constructor.builtinPlugins;this.config.define("plugins",n),this.plugins=new ti(this,n);var i=this.config.get("language")||{};this.locale=new oi({uiLanguage:"string"==typeof i?i:i.ui,contentLanguage:this.config.get("language.content")}),this.t=this.locale.t,this.editors=new Xn,this._contextOwner=null}return S(t,[{key:"initPlugins",value:function(){var t,e=this.config.get("plugins")||[],n=this.config.get("substitutePlugins")||[],i=p(e.concat(n));try{for(i.s();!(t=i.n()).done;){var o=t.value;if("function"!=typeof o)throw new x("context-initplugins-constructor-only",null,{Plugin:o});if(!0!==o.isContextPlugin)throw new x("context-initplugins-invalid-plugin",null,{Plugin:o})}}catch(t){i.e(t)}finally{i.f()}return this.plugins.init(e,[],n)}},{key:"destroy",value:function(){var t=this;return Promise.all(Array.from(this.editors,(function(t){return t.destroy()}))).then((function(){return t.plugins.destroy()}))}},{key:"_addEditor",value:function(t,e){if(this._contextOwner)throw new x("context-addeditor-private-context");this.editors.add(t),e&&(this._contextOwner=t)}},{key:"_removeEditor",value:function(t){return this.editors.has(t)&&this.editors.remove(t),this._contextOwner===t?this.destroy():Promise.resolve()}},{key:"_getEditorConfig",value:function(){var t,e={},n=p(this.config.names());try{for(n.s();!(t=n.n()).done;){var i=t.value;["plugins","removePlugins","extraPlugins"].includes(i)||(e[i]=this.config.get(i))}}catch(t){n.e(t)}finally{n.f()}return e}}],[{key:"create",value:function(t){var e=this;return new Promise((function(n){var i=new e(t);n(i.initPlugins().then((function(){return i})))}))}}]),t}(),ai=function(){function t(e){I(this,t),this.context=e}
2return S(t,[{key:"destroy",value:function(){this.stopListening()}}],[{key:"isContextPlugin",get:function(){return!0}}]),t}();function si(t,e){for(var n=Math.min(t.length,e.length),i=0;i<n;i++)if(t[i]!=e[i])return i;return t.length==e.length?"same":t.length<e.length?"prefix":"extension"}ke(ai,he);var li=function(t){return Wn(t,4)},ci=function(){function t(e){I(this,t),this.document=e,this.parent=null}return S(t,[{key:"index",get:function(){var t;if(!this.parent)return null;if(-1==(t=this.parent.getChildIndex(this)))throw new x("view-node-not-found-in-parent",this);return t}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.index),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),i=t.getAncestors(e),o=0;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),i=si(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_fireChange",value:function(t,e){this.fire("change:"+t,e),this.parent&&this.parent._fireChange(t,e)}},{key:"toJSON",value:function(){var t=li(this);return delete t.parent,t}},{key:"is",value:function(t){return"node"===t||"view:node"===t}}]),t}();ke(ci,N);var ui=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._textData=i,o}return S(n,[{key:"is",value:function(t){return"$text"===t||"view:$text"===t||"text"===t||"view:text"===t||"node"===t||"view:node"===t}},{key:"data",get:function(){return this._textData}},{key:"_data",get:function(){return this.data},set:function(t){this._fireChange("text",this),this._textData=t}},{key:"isSimilar",value:function(t){return t instanceof n&&(this===t||this.data===t.data)}},{key:"_clone",value:function(){return new n(this.document,this.data)}}]),n}(ci),di=function(){function t(e,n,i){if(I(this,t),this.textNode=e,n<0||n>e.data.length)throw new x("view-textproxy-wrong-offsetintext",this);if(i<0||n+i>e.data.length)throw new x("view-textproxy-wrong-length",this);this.data=e.data.substring(n,n+i),this.offsetInText=n}return S(t,[{key:"offsetSize",get:function(){return this.data.length}},{key:"isPartial",get:function(){return this.data.length!==this.textNode.data.length}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"document",get:function(){return this.textNode.document}},{key:"is",value:function(t){return"$textProxy"===t||"view:$textProxy"===t||"textProxy"===t||"view:textProxy"===t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this.textNode:this.parent;null!==n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}}]),t}();function hi(t){return Jn(t)?new Map(t):function(t){var e=new Map;for(var n in t)e.set(n,t[n]);return e}(t)}var fi=function(){function t(){I(this,t),this._patterns=[],this.add.apply(this,arguments)}return S(t,[{key:"add",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var r=o[i];("string"==typeof r||r instanceof RegExp)&&(r={name:r}),this._patterns.push(r)}}},{key:"match",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var r,a=o[i],s=p(this._patterns);try{for(s.s();!(r=s.n()).done;){var l=r.value,c=pi(a,l);if(c)return{element:a,pattern:l,match:c}}}catch(t){s.e(t)}finally{s.f()}}return null}},{key:"matchAll",value:function(){for(var t=[],e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];for(var o=0,r=n;o<r.length;o++){var a,s=r[o],l=p(this._patterns);try{for(l.s();!(a=l.n()).done;){var c=a.value,u=pi(s,c);u&&t.push({element:s,pattern:c,match:u})}}catch(t){l.e(t)}finally{l.f()}}return t.length>0?t:null}},{key:"getElementName",value:function(){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}}]),t}();function pi(t,e){if("function"==typeof e)return e(t);var n={};return e.name&&(n.name=function(t,e){return t instanceof RegExp?!!e.match(t):t===e}(e.name,t.name),!n.name)||e.attributes&&(n.attributes=function(t,e){var n=new Set(e.getAttributeKeys());return ze(t)?(void 0!==t.style&&E("matcher-pattern-deprecated-attributes-style-key",t),void 0!==t.class&&E("matcher-pattern-deprecated-attributes-class-key",t)):(n.delete("style"),n.delete("class")),mi(t,n,(function(t){return e.getAttribute(t)}))}(e.attributes,t),!n.attributes)?null:!(e.classes&&(n.classes=function(t,e){return mi(t,e.getClassNames())}(e.classes,t),!n.classes))&&!(e.styles&&(n.styles=function(t,e){return mi(t,e.getStyleNames(!0),(function(t){return e.getStyle(t)}))}(e.styles,t),!n.styles))&&n}function mi(t,e,n){var i=function(t){return Array.isArray(t)?t.map((function(t){return ze(t)?(void 0!==t.key&&void 0!==t.value||E("matcher-pattern-missing-key-or-value",t),[t.ke
2y,t.value]):[t,!0]})):ze(t)?Object.entries(t):[[t,!0]]}(t),o=Array.from(e),r=[];return i.forEach((function(t){var e=f(t,2),i=e[0],a=e[1];o.forEach((function(t){(function(t,e){return!0===t||t===e||t instanceof RegExp&&e.match(t)})(i,t)&&function(t,e,n){if(!0===t)return!0;var i=n(e);return t===i||t instanceof RegExp&&!!String(i).match(t)}(a,t,n)&&r.push(t)}))})),!i.length||r.length<i.length?null:r}var gi=function(t){return"symbol"==z(t)||Bt(t)&&"[object Symbol]"==et(t)},vi=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ki=/^\w*$/;function bi(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function n(){var i=arguments,o=e?e.apply(this,i):i[0],r=n.cache;if(r.has(o))return r.get(o);var a=t.apply(this,i);return n.cache=r.set(o,a)||r,a};return n.cache=new(bi.Cache||Ze),n}bi.Cache=Ze;var yi=bi,_i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,wi=/\\(\\)?/g,Ci=function(t){var e=yi((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(_i,(function(t,n,i,o){e.push(i?o.replace(wi,"$1"):n||t)})),e}),(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}(),Ai=Ci,xi=$?$.prototype:void 0,Di=xi?xi.toString:void 0,Ei=function t(e){if("string"==typeof e)return e;if(Rt(e))return function(t,e){for(var n=-1,i=null==t?0:t.length,o=Array(i);++n<i;)o[n]=e(t[n],n,t);return o}(e,t)+"";if(gi(e))return Di?Di.call(e):"";var n=e+"";return"0"==n&&1/e==-1/0?"-0":n},Si=function(t){return null==t?"":Ei(t)},Ti=function(t,e){return Rt(t)?t:function(t,e){if(Rt(t))return!1;var n=z(t);return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!gi(t))||ki.test(t)||!vi.test(t)||null!=e&&t in Object(e)}(t,e)?[t]:Ai(Si(t))},Ii=function(t){if("string"==typeof t||gi(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e},zi=function(t,e){for(var n=0,i=(e=Ti(e,t)).length;null!=t&&n<i;)t=t[Ii(e[n++])];return n&&n==i?t:void 0},Mi=function(t,e,n){var i=-1,o=t.length;e<0&&(e=-e>o?0:o+e),(n=n>o?o:n)<0&&(n+=o),o=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(o);++i<o;)r[i]=t[i+e];return r},Bi=function(t,e){return null==(t=function(t,e){return e.length<2?t:zi(t,Mi(e,0,-1))}(t,e=Ti(e,t)))||delete t[Ii(function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0}(e))]},Pi=function(t,e,n){var i=null==t?void 0:zi(t,e);return void 0===i?n:i},Li=function(t,e,n){(void 0!==n&&!vt(t[e],n)||void 0===n&&!(e in t))&&gt(t,e,n)},Ni=function(t,e,n){for(var i=-1,o=Object(t),r=n(t),a=r.length;a--;){var s=r[++i];if(!1===e(o[s],s,o))break}return t},Oi=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},Fi=function(t,e,n,i,o,r,a){var s=Oi(t,n),l=Oi(e,n),c=a.get(l);if(c)Li(t,n,c);else{var u=r?r(s,l,n+"",t,e,a):void 0,d=void 0===u;if(d){var h=Rt(l),f=!h&&Ut(l),p=!h&&!f&&Qt(l);u=l,h||f||p?Rt(s)?u=s:function(t){return Bt(t)&&Tt(t)}(s)?u=en(s):f?(d=!1,u=tn(l,!0)):p?(d=!1,u=Pn(l,!0)):u=[]:ze(l)||Ft(l)?(u=s,Ft(s)?u=function(t){return yt(t,oe(t))}(s):Z(s)&&!nt(s)||(u=Fn(l))):d=!1}d&&(a.set(l,u),o(u,l,i,r,a),a.delete(l)),Li(t,n,u)}},Ri=function t(e,n,i,o,r){e!==n&&Ni(n,(function(a,s){if(r||(r=new We),Z(a))Fi(e,n,s,i,t,o,r);else{var l=o?o(Oi(e,s),a,s+"",e,n,r):void 0;void 0===l&&(l=a),Li(e,s,l)}}),oe)},ji=Mt((function(t,e,n){Ri(t,e,n)})),Vi=function(t,e,n){return null==t?t:function(t,e,n,i){if(!Z(t))return t;for(var o=-1,r=(e=Ti(e,t)).length,a=r-1,s=t;null!=s&&++o<r;){var l=Ii(e[o]),c=n;if("__proto__"===l||"constructor"===l||"prototype"===l)return t;if(o!=a){var u=s[l];void 0===(c=i?i(u,l,s):void 0)&&(c=Z(u)?u:zt(e[o+1])?[]:{})}bt(s,l,c),s=s[l]}return t}(t,e,n)},Hi=function(){function t(e){I(this,t),this._styles={},this._styleProcessor=e}return S(t,[{key:"isEmpty",get:function(){var t=Object.entries(this._styles);return!Array.from(t).length}},{key:"size",get:function(){return this.isEmpty?0:this.getStyleNames().length}},{key:"setTo",value:function(t){this.clear();for(var e=Array.from(function(t){var e=null,n=0,i=0,o=null,r=new Map;if(""===t)return r;";"!=t.charAt(t.length-1)&&(t+=";");for(var a=0;a<t.length;a++){var s=t.charAt(a);
2if(null===e)switch(s){case":":o||(o=t.substr(n,a-n),i=a+1);break;case'"':case"'":e=s;break;case";":var l=t.substr(i,a-i);o&&r.set(o.trim(),l.trim()),o=null,n=a+1}else s===e&&(e=null)}return r}(t).entries()),n=0,i=e;n<i.length;n++){var o=f(i[n],2),r=o[0],a=o[1];this._styleProcessor.toNormalizedForm(r,a,this._styles)}}},{key:"has",value:function(t){if(this.isEmpty)return!1;var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return f(e,1)[0]===t}));return Array.isArray(e)}},{key:"set",value:function(t,e){if(Z(t))for(var n=0,i=Object.entries(t);n<i.length;n++){var o=f(i[n],2),r=o[0],a=o[1];this._styleProcessor.toNormalizedForm(r,a,this._styles)}else this._styleProcessor.toNormalizedForm(t,e,this._styles)}},{key:"remove",value:function(t){var e=Zi(t);(function(t,e){null==t||Bi(t,e)})(this._styles,e),delete this._styles[t],this._cleanEmptyObjectsOnPath(e)}},{key:"getNormalized",value:function(t){return this._styleProcessor.getNormalized(t,this._styles)}},{key:"toString",value:function(){return this.isEmpty?"":this._getStylesEntries().map((function(t){return t.join(":")})).sort().join(";")+";"}},{key:"getAsString",value:function(t){if(!this.isEmpty){if(this._styles[t]&&!Z(this._styles[t]))return this._styles[t];var e=this._styleProcessor.getReducedForm(t,this._styles).find((function(e){return f(e,1)[0]===t}));return Array.isArray(e)?e[1]:void 0}}},{key:"getStyleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this.isEmpty?[]:t?this._styleProcessor.getStyleNames(this._styles):this._getStylesEntries().map((function(t){return f(t,1)[0]}))}},{key:"clear",value:function(){this._styles={}}},{key:"_getStylesEntries",value:function(){for(var t=[],e=0,n=Object.keys(this._styles);e<n.length;e++){var i=n[e];t.push.apply(t,m(this._styleProcessor.getReducedForm(i,this._styles)))}return t}},{key:"_cleanEmptyObjectsOnPath",value:function(t){var e=t.split(".");if(e.length>1){var n=e.splice(0,e.length-1).join("."),i=Pi(this._styles,n);i&&!Array.from(Object.keys(i)).length&&this.remove(n)}}}]),t}(),Ui=function(){function t(){I(this,t),this._normalizers=new Map,this._extractors=new Map,this._reducers=new Map,this._consumables=new Map}return S(t,[{key:"toNormalizedForm",value:function(t,e,n){if(Z(e))qi(n,Zi(t),e);else if(this._normalizers.has(t)){var i=this._normalizers.get(t)(e);qi(n,i.path,i.value)}else qi(n,t,e)}},{key:"getNormalized",value:function(t,e){if(!t)return ji({},e);if(void 0!==e[t])return e[t];if(this._extractors.has(t)){var n=this._extractors.get(t);if("string"==typeof n)return Pi(e,n);var i=n(t,e);if(i)return i}return Pi(e,Zi(t))}},{key:"getReducedForm",value:function(t,e){var n=this.getNormalized(t,e);return void 0===n?[]:this._reducers.has(t)?this._reducers.get(t)(n):[[t,n]]}},{key:"getStyleNames",value:function(t){var e=this,n=Array.from(this._consumables.keys()).filter((function(n){var i=e.getNormalized(n,t);return i&&"object"==z(i)?Object.keys(i).length:i})),i=new Set([].concat(m(n),m(Object.keys(t))));return Array.from(i.values())}},{key:"getRelatedStyles",value:function(t){return this._consumables.get(t)||[]}},{key:"setNormalizer",value:function(t,e){this._normalizers.set(t,e)}},{key:"setExtractor",value:function(t,e){this._extractors.set(t,e)}},{key:"setReducer",value:function(t,e){this._reducers.set(t,e)}},{key:"setStyleRelation",value:function(t,e){this._mapStyleNames(t,e);var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._mapStyleNames(o,[t])}}catch(t){i.e(t)}finally{i.f()}}},{key:"_mapStyleNames",value:function(t,e){var n;this._consumables.has(t)||this._consumables.set(t,[]),(n=this._consumables.get(t)).push.apply(n,m(e))}}]),t}();function Zi(t){return t.replace("-",".")}function qi(t,e,n){var i=n;Z(n)&&(i=ji({},Pi(t,e),n)),Vi(t,e,i)}var Wi=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;if(I(this,n),(a=e.call(this,t)).name=i,a._attrs=function(t){var e,n=p(t=hi(t));try{for(n.s();!(e=n.n()).done;){var i=f(e.value,2),o=i[0],r=i[1];null===r?t.delete(o):"string"!=typeof r&&t.set(o,String(r))}}catch(t){n.e(t)}finally{n.f()}return t}(o),a._children=[],r&&a._insertChild(0,r),a._classes=new Set,a._attrs.has("class")){var s=a._attrs.get("class");Gi(a._classes,s),a._attrs.delete("class")}return a._styles=new Hi(a.document.stylesProcessor),a._attrs.has("style")&&(a._styles.setTo(a._attrs.get("style")),a._attrs.delete("style")),a._customProperties=new Map,a._isAllowedInsideAttributeElement=!1,a._unsafeAttributesToRender=[],y(a)}return S(n,[{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this._children.length}},{key:"isAllowedInsideAttributeElement",get:function(){return this._isAllowedInsideAttributeElement}},{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("element"===t||"view:element"===t):"element"===t||"view:element"===t||"node"===t||"view:node"===t}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getAttributeKeys",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(t.t0=this._classes.size>0,!t.t0){t.next=4;break}return t.next=4,"class";case 4:if(t.t1=this._styles.isEmpty,t.t1){t.next=8;break}return t.next=8,"style";case 8:return t.delegateYield(this._attrs.keys(),"t2",9);case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttributes",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._attrs.entries(),"t0",1);case 1:if(t.t1=this._classes.size>0,!t.t1){t.next=5;break}return t.next=5,["class",this.getAttribute("class")];case 5:if(t.t2=this._styles.isEmpty,t.t2){t.next=9;break}return t.next=9,["style",this.getAttribute("style")];case 9:case"end":return t.stop()}}),t,this)}))},{key:"getAttribute",value:function(t){if("class"==t)return this._classes.size>0?m(this._classes).join(" "):void 0;if("style"==t){var e=this._styles.toString();return""==e?void 0:e}return this._attrs.get(t)}},{key:"hasAttribute",value:function(t){return"class"==t?this._classes.size>0:"style"==t?!this._styles.isEmpty:this._attrs.has(t)}},{key:"isSimilar",value:function(t){if(!(t instanceof n))return!1;if(this===t)return!0;
2if(this.name!=t.name)return!1;if(this.isAllowedInsideAttributeElement!=t.isAllowedInsideAttributeElement)return!1;if(this._attrs.size!==t._attrs.size||this._classes.size!==t._classes.size||this._styles.size!==t._styles.size)return!1;var e,i=p(this._attrs);try{for(i.s();!(e=i.n()).done;){var o=f(e.value,2),r=o[0],a=o[1];if(!t._attrs.has(r)||t._attrs.get(r)!==a)return!1}}catch(t){i.e(t)}finally{i.f()}var s,l=p(this._classes);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!t._classes.has(c))return!1}}catch(t){l.e(t)}finally{l.f()}var u,d=p(this._styles.getStyleNames());try{for(d.s();!(u=d.n()).done;){var h=u.value;if(!t._styles.has(h)||t._styles.getAsString(h)!==this._styles.getAsString(h))return!1}}catch(t){d.e(t)}finally{d.f()}return!0}},{key:"hasClass",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var r=o[i];if(!this._classes.has(r))return!1}return!0}},{key:"getClassNames",value:function(){return this._classes.keys()}},{key:"getStyle",value:function(t){return this._styles.getAsString(t)}},{key:"getNormalizedStyle",value:function(t){return this._styles.getNormalized(t)}},{key:"getStyleNames",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return this._styles.getStyleNames(t)}},{key:"hasStyle",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=0,o=e;i<o.length;i++){var r=o[i];if(!this._styles.has(r))return!1}return!0}},{key:"findAncestor",value:function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];for(var i=C(fi,e),o=this.parent;o;){if(i.match(o))return o;o=o.parent}return null}},{key:"getCustomProperty",value:function(t){return this._customProperties.get(t)}},{key:"getCustomProperties",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._customProperties.entries(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getIdentity",value:function(){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(t){return this._unsafeAttributesToRender.includes(t)}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],e=[];if(t){var n,i=p(this.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;e.push(o._clone(t))}}catch(t){i.e(t)}finally{i.f()}}var r=new this.constructor(this.document,this.name,this._attrs,e);return r._classes=new Set(this._classes),r._styles.set(this._styles.getNormalized()),r._customProperties=new Map(this._customProperties),r.getFillerOffset=this.getFillerOffset,r._isAllowedInsideAttributeElement=this.isAllowedInsideAttributeElement,r}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,i=0,o=function(t,e){return"string"==typeof e?[new ui(t,e)]:(Jn(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ui(t,e):e instanceof di?new ui(t,e.data):e})))}(this.document,e),r=p(o);try{for(r.s();!(n=r.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,a.document=this.document,this._children.splice(t,0,a),t++,i++}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_setAttribute",value:function(t,e){e=String(e),this._fireChange("attributes",this),"class"==t?Gi(this._classes,e):"style"==t?this._styles.setTo(e):this._attrs.set(t,e)}},{key:"_removeAttribute",value:function(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(t){this._fireChange("attributes",this);var e,n=p(ei(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._classes.add(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_removeClass",value:function(t){this._fireChange("attributes",this);var e,n=p(ei(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._classes.delete(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_setStyle",value:function(t,e){this._fireChange("attributes",this),this._styles.set(t,e)}},{key:"_removeStyle",value:function(t){this._fireChange("attributes",this);var e,n=p(ei(t));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._styles.remove(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"_setCustomProperty",value:function(t,e){this._customProperties.set(t,e)}},{key:"_removeCustomProperty",value:function(t){return this._customProperties.delete(t)}}]),n}(ci);function Gi(t,e){var n=e.split(/\s+/);
2t.clear(),n.forEach((function(e){return t.add(e)}))}var $i=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r)).getFillerOffset=Yi,a}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}}]),n}(Wi);function Yi(){var t=m(this.getChildren()),e=t[this.childCount-1];if(e&&e.is("element","br"))return this.childCount;var n,i=p(t);try{for(i.s();!(n=i.n()).done;){if(!n.value.is("uiElement"))return null}}catch(t){i.e(t)}finally{i.f()}return this.childCount}var Ki=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r)).set("isReadOnly",!1),a.set("isFocused",!1),a.bind("isReadOnly").to(t),a.bind("isFocused").to(t,"isFocused",(function(e){return e&&t.selection.editableElement==_(a)})),a.listenTo(t.selection,"change",(function(){a.isFocused=t.isFocused&&t.selection.editableElement==_(a)})),a}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"destroy",value:function(){this.stopListening()}}]),n}($i);ke(Ki,he);var Qi=Symbol("rootName"),Ji=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t,i)).rootName="main",o}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"rootName",get:function(){return this.getCustomProperty(Qi)},set:function(t){this._setCustomProperty(Qi,t)}},{key:"_name",set:function(t){this.name=t}}]),n}(Ki),Xi=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(I(this,e),!t.boundaries&&!t.startPosition)throw new x("view-tree-walker-no-start-position",null);if(t.direction&&"forward"!=t.direction&&"backward"!=t.direction)throw new x("view-tree-walker-unknown-direction",t.startPosition,{direction:t.direction});this.boundaries=t.boundaries||null,t.startPosition?this.position=to._createAt(t.startPosition):this.position=to._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}return S(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,i;do{var o;i=this.position,e=(o=this.next()).done,n=o.value}while(!e&&t(n));e||(this.position=i)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t,e=this.position.clone(),n=this.position,i=e.parent;if(null===i.parent&&e.offset===i.childCount)return{done:!0};if(i===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};if(i instanceof ui){if(e.isAtEnd)return this.position=to._createAfter(i),this._next();t=i.data[e.offset]}else t=i.getChild(e.offset);if(t instanceof Wi)return this.shallow?e.offset++:e=new to(t,0),this.position=e,this._formatReturnValue("elementStart",t,n,e,1);if(t instanceof ui){if(this.singleCharacters)return e=new to(t,0),this.position=e,this._next();var o,r=t.data.length;return t==this._boundaryEndParent?(r=this.boundaries.end.offset,o=new di(t,0,r),e=to._createAfter(o)):(o=new di(t,0,t.data.length),e.offset++),this.position=e,this._formatReturnValue("text",o,n,e,r)}if("string"==typeof t){var a;a=this.singleCharacters?1:(i===this._boundaryEndParent?this.boundaries.end.offset:i.data.length)-e.offset;var s=new di(i,e.offset,a);return e.offset+=a,this.position=e,this._formatReturnValue("text",s,n,e,a)}return e=to._createAfter(i),this.position=e,this.ignoreElementEnd?this._next():this._formatReturnValue("elementEnd",i,n,e)}},{key:"_previous",value:function(){var t,e=this.position.clone(),n=this.position,i=e.parent;if(null===i.parent&&0===e.offset)return{done:!0};if(i==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};if(i instanceof ui){if(e.isAtStart)return this.position=to._createBefore(i),this._previous();t=i.data[e.offset-1]}else t=i.getChild(e.offset-1);if(t instanceof Wi)return this.shallow?(e.offset--,this.position=e,this._formatReturnValue("elementStart",t,n,e,1)):(e=new to(t,t.childCount),this.position=e,this.ignoreElementEnd?this._previous():this._formatReturnValue("elementEnd",t,n,e));if(t instanceof ui){if(this.singleCharacters)return e=new to(t,t.data.length),this.position=e,this._previous();var o,r=t.data.length;if(t==this._boundaryStartParent){var a=this.boundaries.start.offset;r=(o=new di(t,a,t.data.length-a)).data.length,e=to._createBefore(o)}else o=new di(t,0,t.data.length),e.offset--;return this.position=e,this._formatReturnValue("text",o,n,e,r)}if("string"==typeof t){var s;if(this.singleCharacters)s=1;else{var l=i===this._boundaryStartParent?this.boundaries.start.offset:0;s=e.offset-l}e.offset-=s;var c=new di(i,e.offset,s);return this.position=e,this._formatReturnValue("text",c,n,e,s)}return e=to._createBefore(i),this.position=e,this._formatReturnValue("elementStart",i,n,e,1)}},{key:"_formatReturnValue",value:function(t,e,n,i,o){return e instanceof di&&(e.offsetInText+e.data.length==e.textNode.data.length&&("forward"!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?n=to._createAfter(e.textNode):(i=to._createAfter(e.textNode),this.position=i)),0===e.offsetInText&&("backward"!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?n=to._createBefore(e.textNode):(i=to._createBefore(e.textNode),this.position=i))),{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:o}}}}]),e}(),to=function(){function t(e,n){I(this,t),this.parent=e,this.offset=n}
2return S(t,[{key:"nodeAfter",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset)||null}},{key:"nodeBefore",get:function(){return this.parent.is("$text")?null:this.parent.getChild(this.offset-1)||null}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){var t=this.parent.is("$text")?this.parent.data.length:this.parent.childCount;return this.offset===t}},{key:"root",get:function(){return this.parent.root}},{key:"editableElement",get:function(){for(var t=this.parent;!(t instanceof Ki);){if(!t.parent)return null;t=t.parent}return t}},{key:"getShiftedBy",value:function(e){var n=t._createAt(this),i=n.offset+e;return n.offset=i<0?0:i,n}},{key:"getLastMatchingPosition",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new Xi(e);return n.skip(t),n.position}},{key:"getAncestors",value:function(){return this.parent.is("documentFragment")?[this.parent]:this.parent.getAncestors({includeSelf:!0})}},{key:"getCommonAncestor",value:function(t){for(var e=this.getAncestors(),n=t.getAncestors(),i=0;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}},{key:"is",value:function(t){return"position"===t||"view:position"===t}},{key:"isEqual",value:function(t){return this.parent==t.parent&&this.offset==t.offset}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"compareWith",value:function(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 i=si(e,n);switch(i){case"prefix":return"before";case"extension":return"after";default:return e[i]<n[i]?"before":"after"}}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.startPosition=this,new Xi(t)}},{key:"clone",value:function(){return new t(this.parent,this.offset)}}],[{key:"_createAt",value:function(e,n){if(e instanceof t)return new this(e.parent,e.offset);var i=e;if("end"==n)n=i.is("$text")?i.data.length:i.childCount;else{if("before"==n)return this._createBefore(i);if("after"==n)return this._createAfter(i);if(0!==n&&!n)throw new x("view-createpositionat-offset-required",i)}return new t(i,n)}},{key:"_createAfter",value:function(e){if(e.is("$textProxy"))return new t(e.textNode,e.offsetInText+e.data.length);if(!e.parent)throw new x("view-position-after-root",e,{root:e});return new t(e.parent,e.index+1)}},{key:"_createBefore",value:function(e){if(e.is("$textProxy"))return new t(e.textNode,e.offsetInText);if(!e.parent)throw new x("view-position-before-root",e,{root:e});return new t(e.parent,e.index)}}]),t}(),eo=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;I(this,e),this.start=t.clone(),this.end=n?n.clone():t.clone()}return S(e,[{key:Symbol.iterator,value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new Xi({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return this.start.parent===this.end.parent}},{key:"root",get:function(){return this.start.root}},{key:"getEnlarged",value:function(){var t=this.start.getLastMatchingPosition(no,{direction:"backward"}),n=this.end.getLastMatchingPosition(no);return t.parent.is("$text")&&t.isAtStart&&(t=to._createBefore(t.parent)),n.parent.is("$text")&&n.isAtEnd&&(n=to._createAfter(n.parent)),new e(t,n)}},{key:"getTrimmed",value:function(){var t=this.start.getLastMatchingPosition(no);if(t.isAfter(this.end)||t.isEqual(this.end))return new e(t,t);var n=this.end.getLastMatchingPosition(no,{direction:"backward"}),i=t.nodeAfter,o=n.nodeBefore;return i&&i.is("$text")&&(t=new to(i,0)),o&&o.is("$text")&&(n=new to(o,o.data.length)),new e(t,n)}},{key:"isEqual",value:function(t){return this==t||this.start.isEqual(t.start)&&this.end.isEqual(t.end
2)}},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end);return n&&i}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(this.clone()),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new Xi(t)}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){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(){return new e(this.start,this.end)}},{key:"getItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h().mark((function n(){var i,o,r,a;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.boundaries=t,e.ignoreElementEnd=!0,i=new Xi(e),o=p(i),n.prev=3,o.s();case 5:if((r=o.n()).done){n.next=11;break}return a=r.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),o.e(n.t0);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h().mark((function n(){var i,o,r,a;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.boundaries=t,i=new Xi(e),n.next=4,i.position;case 4:o=p(i),n.prev=5,o.s();case 7:if((r=o.n()).done){n.next=13;break}return a=r.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),o.e(n.t0);case 18:return n.prev=18,o.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"is",value:function(t){return"range"===t||"view:range"===t}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}}],[{key:"_createFromParentsAndOffsets",value:function(t,e,n,i){return new this(new to(t,e),new to(n,i))}},{key:"_createFromPositionAndShift",value:function(t,e){var n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(t){return this._createFromParentsAndOffsets(t,0,t,t.childCount)}},{key:"_createOn",value:function(t){var e=t.is("$textProxy")?t.offsetSize:1;return this._createFromPositionAndShift(to._createBefore(t),e)}}]),e}();function no(t){return!(!t.item.is("attributeElement")&&!t.item.is("uiElement"))}function io(t){var e,n=0,i=p(t);try{for(i.s();!(e=i.n()).done;){e.value;n++}}catch(t){i.e(t)}finally{i.f()}return n}var oo=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;I(this,t),this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel="",this.setTo(e,n,i)}return S(t,[{key:"isFake",get:function(){return this._isFake}},{key:"fakeSelectionLabel",get:function(){return this._fakeSelectionLabel}},{key:"anchor",get:function(){if(!this._ranges.length)return null;var t=this._ranges[this._ranges.length-1];return(this._lastRangeBackward?t.end:t.start).clone()}},{key:"focus",get:function(){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(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"editableElement",get:function(){return this.anchor?this.anchor.editableElement:null}},{key:"getRanges",value:h().mark((function t(){var e,n,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=p(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,i.clone();case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=p(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.start.isBefore(e.start)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getLastRange",value:function(){var t,e=null,n=p(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.end.isAfter(e.end)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?e.clone():null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"isEqual",value:function(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;
2if(!this.anchor.isEqual(t.anchor)||!this.focus.isEqual(t.focus))return!1;var e,n=p(this._ranges);try{for(n.s();!(e=n.n()).done;){var i,o=e.value,r=!1,a=p(t._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(o.isEqual(s)){r=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!r)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"isSimilar",value:function(t){if(this.isBackward!=t.isBackward)return!1;var e=io(this.getRanges());if(e!=io(t.getRanges()))return!1;if(0==e)return!0;var n,i=p(this.getRanges());try{for(i.s();!(n=i.n()).done;){var o=n.value;o=o.getTrimmed();var r,a=!1,s=p(t.getRanges());try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l=l.getTrimmed(),o.start.isEqual(l.start)&&o.end.isEqual(l.end)){a=!0;break}}}catch(t){s.e(t)}finally{s.f()}if(!a)return!1}}catch(t){i.e(t)}finally{i.f()}return!0}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"setTo",value:function(e,n,i){if(null===e)this._setRanges([]),this._setFakeOptions(n);else if(e instanceof t||e instanceof ro)this._setRanges(e.getRanges(),e.isBackward),this._setFakeOptions({fake:e.isFake,label:e.fakeSelectionLabel});else if(e instanceof eo)this._setRanges([e],n&&n.backward),this._setFakeOptions(n);else if(e instanceof to)this._setRanges([new eo(e)]),this._setFakeOptions(n);else if(e instanceof ci){var o,r=!!i&&!!i.backward;if(void 0===n)throw new x("view-selection-setto-required-second-parameter",this);o="in"==n?eo._createIn(e):"on"==n?eo._createOn(e):new eo(to._createAt(e,n)),this._setRanges([o],r),this._setFakeOptions(i)}else{if(!Jn(e))throw new x("view-selection-setto-not-selectable",this);this._setRanges(e,n&&n.backward),this._setFakeOptions(n)}this.fire("change")}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new x("view-selection-setfocus-no-ranges",this);var n=to._createAt(t,e);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.pop(),"before"==n.compareWith(i)?this._addRange(new eo(n,i),!0):this._addRange(new eo(i,n)),this.fire("change")}}},{key:"is",value:function(t){return"selection"===t||"view:selection"===t}},{key:"_setRanges",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t=Array.from(t),this._ranges=[];var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._addRange(o)}}catch(t){i.e(t)}finally{i.f()}this._lastRangeBackward=!!e}},{key:"_setFakeOptions",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._isFake=!!t.fake,this._fakeSelectionLabel=t.fake&&t.label||""}},{key:"_addRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(!(t instanceof eo))throw new x("view-selection-add-range-not-range",this);this._pushRange(t),this._lastRangeBackward=!!e}},{key:"_pushRange",value:function(t){var e,n=p(this._ranges);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(t.isIntersecting(i))throw new x("view-selection-range-intersects",this,{addedRange:t,intersectingRange:i})}}catch(t){n.e(t)}finally{n.f()}this._ranges.push(new eo(t.start,t.end))}}]),t}();ke(oo,N);var ro=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=arguments.length>1?arguments[1]:void 0,i=arguments.length>2?arguments[2]:void 0;I(this,t),this._selection=new oo,this._selection.delegate("change").to(this),this._selection.setTo(e,n,i)}return S(t,[{key:"isFake",get:function(){return this._selection.isFake}},{key:"fakeSelectionLabel",get:function(){return this._selection.fakeSelectionLabel}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"editableElement",get:function(){return this._selection.editableElement}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._selection.getRanges(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"isEqual",value:function(t){return this._selection.isEqual(t)}},{key:"isSimilar",value:function(t){return this._selection.isSimilar(t)}},{key:"is",value:function(t){return"selection"===t||"documentSelection"==t||"view:selection"==t||"view:documentSelection"==t}},{key:"_setTo",value:function(t,e,n){this._selection.setTo(t,e,n)}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}}]),t}();ke(ro,N);var ao=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,t,i)).startRange=o,r._eventPhase="none",r._currentTarget=null,r}return S(n,[{key:"eventPhase",get:function(){return this._eventPhase}},{key:"currentTarget",get:function(){return this._currentTarget}}]),n}(l),so=Symbol("bubbling contexts"),lo={fire:function(t){try{var e=t instanceof l?t:new l(this,t),n=po(this);if(!n.size)return;for(var i=arguments.length,o=new Array(i>1?i-1:0),r=1;r<i;r++)o[r-1]=arguments[r];if(uo(e,"capturing",this),ho.apply(void 0,[n,"$capture",e].concat(o)))return e.return;var a=e.startRange||this.selection.getFirstRange(),s=a?a.getContainedElement():null,c=!!s&&Boolean(fo(n,s)),u=s||function(t){if(!t)return null;var e=t.start.parent,n=t.end.parent,i=e.getPath(),o=n.getPath();return i.length>o.length?e:n}(a);if(uo(e,"atTarget",u),!c){if(ho.apply(void 0,[n,"$text",e].concat(o)))return e.return;uo(e,"bubbling",u)}for(;u;){if(u.is("rootElement")){if(ho.apply(void 0,[n,"$root",e].concat(o)))return e.return}else if(u.is("element")&&ho.apply(void 0,[n,u.name,e].concat(o)))return e.return;if(ho.apply(void 0,[n,u,e].concat(o)))return e.return;uo(e,"bubbling",u=u.parent)}return uo(e,"bubbling",this),ho.apply(void 0,[n,"$document",e].concat(o)),e.return}catch(t){x.rethrowUnexpectedError(t,this)}},_addEventListener:function(t,e,n){var i,o=ei(n.context||"$document"),r=po(this),a=p(o);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=r.get(s);l||(l=Object.create(N),r.set(s,l)),this.listenTo(l,t,e,n)}}catch(t){a.e(t)}finally{a.f()}},_removeEventListener:function(t,e){var n,i=p(po(this).values());try{for(i.s();!(n=i.n()).done;){var o=n.value;this.stopListening(o,t,e)}}catch(t){i.e(t)}finally{i.f()}}},co=lo;function uo(t,e,n){t instanceof ao&&(t._eventPhase=e,t._currentTarget=n)}function ho(t,e,n){for(var i="string"==typeof e?t.get(e):fo(t,e),o=arguments.length,r=new Array(o>3?o-3:0),a=3;a<o;a++)r[a-3]=arguments[a];return!!i&&(i.fire.apply(i,[n].concat(r)),n.stop.called)}function fo(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=f(n.value,2),r=o[0],a=o[1];if("function"==typeof r&&r(e))return a}}catch(t){i.e(t)}finally{i.f()}return null}function po(t){return t[so]||(t[so]=new Map),t[so]}var mo=function(){function t(e){I(this,t),this.selection=new ro,this.roots=new Xn({idProperty:"rootName"}),this.stylesProcessor=e,this.set("isReadOnly",!1),this.set("isFocused",!1),this.set("isSelecting",!1),this.set("isComposing",!1),this._postFixers=new Set}
2return S(t,[{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"destroy",value:function(){this.roots.map((function(t){return t.destroy()})),this.stopListening()}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,i=p(this._postFixers);try{for(i.s();!(n=i.n()).done;){if(e=(0,n.value)(t))break}}catch(t){i.e(t)}finally{i.f()}}while(e)}}]),t}();ke(mo,co),ke(mo,he);var go=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r)).getFillerOffset=vo,a._priority=10,a._id=null,a._clonesGroup=null,a}return S(n,[{key:"priority",get:function(){return this._priority}},{key:"id",get:function(){return this._id}},{key:"getElementsWithSameId",value:function(){if(null===this.id)throw new x("attribute-element-get-elements-with-same-id-no-id",this);return new Set(this._clonesGroup)}},{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"isSimilar",value:function(t){return null!==this.id||null!==t.id?this.id===t.id:d(D(n.prototype),"isSimilar",this).call(this,t)&&this.priority==t.priority}},{key:"_clone",value:function(t){var e=d(D(n.prototype),"_clone",this).call(this,t);return e._priority=this._priority,e._id=this._id,e}}]),n}(Wi);function vo(){if(ko(this))return null;for(var t=this.parent;t&&t.is("attributeElement");){if(ko(t)>1)return null;t=t.parent}return!t||ko(t)>1?null:this.childCount}function ko(t){return Array.from(t.getChildren()).filter((function(t){return!t.is("uiElement")})).length}go.DEFAULT_PRIORITY=10;var bo=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=yo,a}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new x("view-emptyelement-cannot-add",[this,e])}}]),n}(Wi);function yo(){return null}var _o=navigator.userAgent.toLowerCase(),wo={isMac:Ao(_o),isWindows:function(t){return t.indexOf("windows")>-1}(_o),isGecko:function(t){return!!t.match(/gecko\/\d+/)}(_o),isSafari:function(t){return t.indexOf(" applewebkit/")>-1&&-1===t.indexOf("chrome")}(_o),isiOS:function(t){return!!t.match(/iphone|ipad/i)||Ao(t)&&navigator.maxTouchPoints>0}(_o),isAndroid:function(t){return t.indexOf("android")>-1}(_o),isBlink:function(t){return t.indexOf("chrome/")>-1&&t.indexOf("edge/")<0}(_o),features:{isRegExpUnicodePropertySupported:function(){var t=!1;try{t=0==="ć".search(new RegExp("[\\p{L}]","u"))}catch(t){}return t}()}},Co=wo;function Ao(t){return t.indexOf("macintosh")>-1}var xo={ctrl:"⌃",cmd:"⌘",alt:"⌥",shift:"⇧"},Do={ctrl:"Ctrl+",alt:"Alt+",shift:"Shift+"},Eo=function(){for(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},e=65;e<=90;e++){t[String.fromCharCode(e).toLowerCase()]=e}for(var n=48;n<=57;n++)t[n-48]=n;for(var i=112;i<=123;i++)t["f"+(i-111)]=i;var o,r=p("`-=[];',./\\");try{for(r.s();!(o=r.n()).done;){var a=o.value;t[a]=a.charCodeAt(0)}}catch(t){r.e(t)}finally{r.f()}return t}(),So=Object.fromEntries(Object.entries(Eo).map((function(t){var e=f(t,2),n=e[0];return[e[1],n.charAt(0).toUpperCase()+n.slice(1)]})));function To(t){var e;if("string"==typeof t){if(!(e=Eo[t.toLowerCase()]))throw new x("keyboard-unknown-key",null,{key:t})}else e=t.keyCode+(t.altKey?Eo.alt:0)+(t.ctrlKey?Eo.ctrl:0)+(t.shiftKey?Eo.shift:0)+(t.metaKey?Eo.cmd:0);return e}function Io(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 To(t.slice(0,-1));var e=To(t);return Co.isMac&&e==Eo.ctrl?Eo.cmd:e}(t):t})).reduce((function(t,e){return e+t}),0)}function zo(t){var e=Io(t);return Object.entries(Co.isMac?xo:Do).reduce((function(t,n){var i=f(n,2),o=i[0],r=i[1];return 0!=(e&Eo[o])&&(e&=~Eo[o],t+=r),t}),"")+(e?So[e]:"")}function Mo(t,e){var n="ltr"===e;switch(t){case Eo.arrowleft:return n?"left":"right";case Eo.arrowright:return n?"right":"left";case Eo.arrowup:return"up";case Eo.arrowdown:return"down"}}var Bo=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=Po,a}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new x("view-uielement-cannot-add",this)}},{key:"render",value:function(t){return this.toDomElement(t)}},{key:"toDomElement",value:function(t){var e,n=t.createElement(this.name),i=p(this.getAttributeKeys());try{for(i.s();!(e=i.n()).done;){var o=e.value;n.setAttribute(o,this.getAttribute(o))}}catch(t){i.e(t)}finally{i.f()}return n}}]),n}(Wi);function Po(){return null}var Lo=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,t,i,o,r))._isAllowedInsideAttributeElement=!0,a.getFillerOffset=No,a}return S(n,[{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;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}},{key:"_insertChild",value:function(t,e){if(e&&(e instanceof ci||Array.from(e).length>0))throw new x("view-rawelement-cannot-add",[this,e])}}]),n}(Wi);function No(){return null}var Oo=function(t){function e(t,n){I(this,e),this.document=t,this._children=[],n&&this._insertChild(0,n)}return S(e,[{key:Symbol.iterator,value:function(){return this._children[Symbol.iterator]()}},{key:"childCount",get:function(){return this._children.length}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"is",value:function(t){return"documentFragment"===t||"view:documentFragment"===t}},{key:"_appendChild",value:function(t){return this._insertChild(this.childCount,t)}},{key:"getChild",value:function(t){return this._children[t]}},{key:"getChildIndex",value:function(t){return this._children.indexOf(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"_insertChild",value:function(t,e){this._fireChange("children",this);var n,i=0,o=function(t,e){return"string"==typeof e?[new ui(t,e)]:(J
2n(e)||(e=[e]),Array.from(e).map((function(e){return"string"==typeof e?new ui(t,e):e instanceof di?new ui(t,e.data):e})))}(this.document,e),r=p(o);try{for(r.s();!(n=r.n()).done;){var a=n.value;null!==a.parent&&a._remove(),a.parent=this,this._children.splice(t,0,a),t++,i++}}catch(t){r.e(t)}finally{r.f()}return i}},{key:"_removeChildren",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;this._fireChange("children",this);for(var n=t;n<t+e;n++)this._children[n].parent=null;return this._children.splice(t,e)}},{key:"_fireChange",value:function(t,e){this.fire("change:"+t,e)}}]),e}();ke(Oo,N);var Fo=function(){function t(e){I(this,t),this.document=e,this._cloneGroups=new Map,this._slotFactory=null}return S(t,[{key:"setSelection",value:function(t,e,n){this.document.selection._setTo(t,e,n)}},{key:"setSelectionFocus",value:function(t,e){this.document.selection._setFocus(t,e)}},{key:"createDocumentFragment",value:function(t){return new Oo(this.document,t)}},{key:"createText",value:function(t){return new ui(this.document,t)}},{key:"createAttributeElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new go(this.document,t,e);return"number"==typeof i.priority&&(o._priority=i.priority),i.id&&(o._id=i.id),i.renderUnsafeAttributes&&(n=o._unsafeAttributesToRender).push.apply(n,m(i.renderUnsafeAttributes)),o}},{key:"createContainerElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=null;ze(i)?o=i:r=i;var a=new $i(this.document,t,e,r);return void 0!==o.isAllowedInsideAttributeElement&&(a._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),o.renderUnsafeAttributes&&(n=a._unsafeAttributesToRender).push.apply(n,m(o.renderUnsafeAttributes)),a}},{key:"createEditableElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new Ki(this.document,t,e);return o._document=this.document,i.renderUnsafeAttributes&&(n=o._unsafeAttributesToRender).push.apply(n,m(i.renderUnsafeAttributes)),o}},{key:"createEmptyElement",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=new bo(this.document,t,e);return void 0!==i.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=i.isAllowedInsideAttributeElement),i.renderUnsafeAttributes&&(n=o._unsafeAttributesToRender).push.apply(n,m(i.renderUnsafeAttributes)),o}},{key:"createUIElement",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=new Bo(this.document,t,e);return n&&(o.render=n),void 0!==i.isAllowedInsideAttributeElement&&(o._isAllowedInsideAttributeElement=i.isAllowedInsideAttributeElement),o}},{key:"createRawElement",value:function(t,e,n){var i,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},r=new Lo(this.document,t,e);return r.render=n||function(){},void 0!==o.isAllowedInsideAttributeElement&&(r._isAllowedInsideAttributeElement=o.isAllowedInsideAttributeElement),o.renderUnsafeAttributes&&(i=r._unsafeAttributesToRender).push.apply(i,m(o.renderUnsafeAttributes)),r}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){ze(t)&&void 0===n&&(n=e),n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"breakAttributes",value:function(t){return t instanceof to?this._breakAttributes(t):this._breakAttributesRange(t)}},{key:"breakContainer",value:function(t){var e=t.parent;if(!e.is("containerElement"))throw new x("view-writer-break-non-container-element",this.document);if(!e.parent)throw new x("view-writer-break-root",this.document);if(t.isAtStart)return to._createBefore(e);if(!t.isAtEnd){var n=e._clone(!1);this.insert(to._createAfter(e),n);var i=new eo(t,to._createAt(e,"end")),o=new to(n,0);this.move(i,o)}return to._createAfter(e)}},{key:"mergeAttributes",value:function(t){var e=t.offset,n=t.parent;if(n.is("$text"))return t;if(n.is("attributeElement")&&0===n.childCount){var i=n.parent,o=n.index;return n._remove(),this._removeFromClonedElementsGroup(n),this.mergeAttributes(new to(i,o))}var r=n.getChild(e-1),a=n.getChild(e);if(!r||!a)return t;if(r.is("$text")&&a.is("$text"))return Uo(r,a);if(r.is("attributeElement")&&a.is("attributeElement")&&r.isSimilar(a)){var s=r.childCount;return r._appendChild(a.getChildren()),a._remove(),this._removeFromClonedElementsGroup(a),this.mergeAttributes(new to(r,s))}return t}},{key:"mergeContainers",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;if(!(e&&n&&e.is("containerElement")&&n.is("containerElement")))throw new x("view-writer-merge-containers-invalid-position",this.document);var i=e.getChild(e.childCount-1),o=i instanceof ui?to._createAt(i,"end"):to._createAt(e,"end");return this.move(eo._createIn(n),to._createAt(e,"end")),this.remove(eo._createOn(n)),o}},{key:"insert",value:function(t,e){Zo(e=Jn(e)?m(e):[e],this.document);var n,i=e.reduce((function(t,e){var n=t[t.length-1],i=!(e.is("uiElement")&&e.isAllowedInsideAttributeElement);return n&&n.breakAttributes==i?n.nodes.push(e):t.push({breakAttributes:i,nodes:[e]}),t}),[]),o=null,r=t,a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s.nodes,c=s.breakAttributes,u=this._insertNodes(r,l,c);o||(o=u.start),r=u.end}}catch(t){a.e(t)}finally{a.f()}return o?new eo(o,r):new eo(t)}},{key:"remove",value:function(t){var e=t instanceof eo?t:eo._createOn(t);if(Go(e,this.document),e.isCollapsed)return new Oo(this.document);var n,i=this._breakAttributesRange(e,!0),o=i.start,r=i.end,a=o.parent,s=r.offset-o.offset,l=a._removeChildren(o.offset,s),c=p(l);try{for(c.s();!(n=c.n()).done;){var u=n.value;this._removeFromClonedElementsGroup(u)}}catch(t){c.e(t)}
2finally{c.f()}var d=this.mergeAttributes(o);return e.start=d,e.end=d.clone(),new Oo(this.document,l)}},{key:"clear",value:function(t,e){Go(t,this.document);var n,i=p(t.getWalker({direction:"backward",ignoreElementEnd:!0}));try{for(i.s();!(n=i.n()).done;){var o=n.value,r=o.item,a=void 0;if(r.is("element")&&e.isSimilar(r))a=eo._createOn(r);else if(!o.nextPosition.isAfter(t.start)&&r.is("$textProxy")){var s=r.getAncestors().find((function(t){return t.is("element")&&e.isSimilar(t)}));s&&(a=eo._createIn(s))}a&&(a.end.isAfter(t.end)&&(a.end=t.end),a.start.isBefore(t.start)&&(a.start=t.start),this.remove(a))}}catch(t){i.e(t)}finally{i.f()}}},{key:"move",value:function(t,e){var n;if(e.isAfter(t.end)){var i=(e=this._breakAttributes(e,!0)).parent,o=i.childCount;t=this._breakAttributesRange(t,!0),n=this.remove(t),e.offset+=i.childCount-o}else n=this.remove(t);return this.insert(e,n)}},{key:"wrap",value:function(t,e){if(!(e instanceof go))throw new x("view-writer-wrap-invalid-attribute",this.document);if(Go(t,this.document),t.isCollapsed){var n=t.start;n.parent.is("element")&&(o=n.parent,!Array.from(o.getChildren()).some((function(t){return!t.is("uiElement")})))&&(n=n.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))),n=this._wrapPosition(n,e);var i=this.document.selection;return i.isCollapsed&&i.getFirstPosition().isEqual(t.start)&&this.setSelection(n),new eo(n)}return this._wrapRange(t,e);var o}},{key:"unwrap",value:function(t,e){if(!(e instanceof go))throw new x("view-writer-unwrap-invalid-attribute",this.document);if(Go(t,this.document),t.isCollapsed)return t;var n=this._breakAttributesRange(t,!0),i=n.start,o=n.end,r=i.parent,a=this._unwrapChildren(r,i.offset,o.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new eo(s,l)}},{key:"rename",value:function(t,e){var n=new $i(this.document,t,e.getAttributes());return this.insert(to._createAfter(e),n),this.move(eo._createIn(e),to._createAt(n,0)),this.remove(eo._createOn(e)),n}},{key:"clearClonedElementsGroup",value:function(t){this._cloneGroups.delete(t)}},{key:"createPositionAt",value:function(t,e){return to._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return to._createAfter(t)}},{key:"createPositionBefore",value:function(t){return to._createBefore(t)}},{key:"createRange",value:function(t,e){return new eo(t,e)}},{key:"createRangeOn",value:function(t){return eo._createOn(t)}},{key:"createRangeIn",value:function(t){return eo._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new oo(t,e,n)}},{key:"createSlot",value:function(t){if(!this._slotFactory)throw new x("view-writer-invalid-create-slot-context",this.document);return this._slotFactory(this,t)}},{key:"_registerSlotFactory",value:function(t){this._slotFactory=t}},{key:"_clearSlotFactory",value:function(){this._slotFactory=null}},{key:"_insertNodes",value:function(t,e,n){var i,o;if(!(i=n?Ro(t):t.parent.is("$text")?t.parent.parent:t.parent))throw new x("view-writer-invalid-position-container",this.document);o=n?this._breakAttributes(t,!0):t.parent.is("$text")?Ho(t):t;var r,a=i._insertChild(o.offset,e),s=p(e);try{for(s.s();!(r=s.n()).done;){var l=r.value;this._addToClonedElementsGroup(l)}}catch(t){s.e(t)}finally{s.f()}var c=o.getShiftedBy(a),u=this.mergeAttributes(o);u.isEqual(o)||c.offset--;var d=this.mergeAttributes(c);return new eo(u,d)}},{key:"_wrapChildren",value:function(t,e,n,i){for(var o=e,r=[];o<n;){var a=t.getChild(o),s=a.is("$text"),l=a.is("attributeElement"),c=a.isAllowedInsideAttributeElement;if(l&&this._wrapAttributeElement(i,a))r.push(new to(t,o));else if(s||c||l&&jo(i,a)){var u=i._clone();a._remove(),u._appendChild(a),t._insertChild(o,u),this._addToClonedElementsGroup(u),r.push(new to(t,o))}else l&&this._wrapChildren(a,0,a.childCount,i);o++}for(var d=0,h=0,f=r;h<f.length;h++){var p=f[h];(p.offset-=d,p.offset!=e)&&(this.mergeAttributes(p).isEqual(p)||(d++,n--))}return eo._createFromParentsAndOffsets(t,e,t,n)}},{key:"_unwrapChildren",value:function(t,e,n,i){for(var o=e,r=[];o<n;){var a=t.getChild(o);
2if(a.is("attributeElement"))if(a.isSimilar(i)){var s=a.getChildren(),l=a.childCount;a._remove(),t._insertChild(o,s),this._removeFromClonedElementsGroup(a),r.push(new to(t,o),new to(t,o+l)),o+=l,n+=l-1}else this._unwrapAttributeElement(i,a)?(r.push(new to(t,o),new to(t,o+1)),o++):(this._unwrapChildren(a,0,a.childCount,i),o++);else o++}for(var c=0,u=0,d=r;u<d.length;u++){var h=d[u];(h.offset-=c,h.offset!=e&&h.offset!=n)&&(this.mergeAttributes(h).isEqual(h)||(c++,n--))}return eo._createFromParentsAndOffsets(t,e,t,n)}},{key:"_wrapRange",value:function(t,e){var n=this._breakAttributesRange(t,!0),i=n.start,o=n.end,r=i.parent,a=this._wrapChildren(r,i.offset,o.offset,e),s=this.mergeAttributes(a.start);s.isEqual(a.start)||a.end.offset--;var l=this.mergeAttributes(a.end);return new eo(s,l)}},{key:"_wrapPosition",value:function(t,e){if(e.isSimilar(t.parent))return Vo(t.clone());t.parent.is("$text")&&(t=Ho(t));var n=this.createAttributeElement();n._priority=Number.POSITIVE_INFINITY,n.isSimilar=function(){return!1},t.parent._insertChild(t.offset,n);var i=new eo(t,t.getShiftedBy(1));this.wrap(i,e);var o=new to(n.parent,n.index);n._remove();var r=o.nodeBefore,a=o.nodeAfter;return r instanceof ui&&a instanceof ui?Uo(r,a):Vo(o)}},{key:"_wrapAttributeElement",value:function(t,e){if(!$o(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,i=p(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;if("class"!==o&&"style"!==o&&e.hasAttribute(o)&&e.getAttribute(o)!==t.getAttribute(o))return!1}}catch(t){i.e(t)}finally{i.f()}var r,a=p(t.getStyleNames());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(e.hasStyle(s)&&e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var l,c=p(t.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;"class"!==u&&"style"!==u&&(e.hasAttribute(u)||this.setAttribute(u,t.getAttribute(u),e))}}catch(t){c.e(t)}finally{c.f()}var d,h=p(t.getStyleNames());try{for(h.s();!(d=h.n()).done;){var f=d.value;e.hasStyle(f)||this.setStyle(f,t.getStyle(f),e)}}catch(t){h.e(t)}finally{h.f()}var m,g=p(t.getClassNames());try{for(g.s();!(m=g.n()).done;){var v=m.value;e.hasClass(v)||this.addClass(v,e)}}catch(t){g.e(t)}finally{g.f()}return!0}},{key:"_unwrapAttributeElement",value:function(t,e){if(!$o(t,e))return!1;if(t.name!==e.name||t.priority!==e.priority)return!1;var n,i=p(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;if("class"!==o&&"style"!==o&&(!e.hasAttribute(o)||e.getAttribute(o)!==t.getAttribute(o)))return!1}}catch(t){i.e(t)}finally{i.f()}if(!e.hasClass.apply(e,m(t.getClassNames())))return!1;var r,a=p(t.getStyleNames());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(!e.hasStyle(s)||e.getStyle(s)!==t.getStyle(s))return!1}}catch(t){a.e(t)}finally{a.f()}var l,c=p(t.getAttributeKeys());try{for(c.s();!(l=c.n()).done;){var u=l.value;"class"!==u&&"style"!==u&&this.removeAttribute(u,e)}}catch(t){c.e(t)}finally{c.f()}return this.removeClass(Array.from(t.getClassNames()),e),this.removeStyle(Array.from(t.getStyleNames()),e),!0}},{key:"_breakAttributesRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.start,i=t.end;if(Go(t,this.document),t.isCollapsed){var o=this._breakAttributes(t.start,e);return new eo(o,o)}var r=this._breakAttributes(i,e),a=r.parent.childCount,s=this._breakAttributes(n,e);return r.offset+=r.parent.childCount-a,new eo(s,r)}},{key:"_breakAttributes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.offset,i=t.parent;if(t.parent.is("emptyElement"))throw new x("view-writer-cannot-break-empty-element",this.document);if(t.parent.is("uiElement"))throw new x("view-writer-cannot-break-ui-element",this.document);if(t.parent.is("rawElement"))throw new x("view-writer-cannot-break-raw-element",this.document);if(!e&&i.is("$text")&&Wo(i.parent))return t.clone();if(Wo(i))return t.clone();if(i.is("$text"))return this._breakAttributes(Ho(t),e);if(n==i.childCount){var o=new to(i.parent,i.index+1);return this._breakAttributes(o,e)}if(0===n){var r=new to(i.parent,i.index);return this._breakAttributes(r,e)}var a=i.index+1,s=i._clone();i.parent._insertChild(a,s),this._addToClonedElementsGroup(s);var l=i.childCount-n,c=i._removeChildren(n,l);s._appendChild(c);var u=new to(i.parent,a);return this._breakAttributes(u,e)}},{key:"_addToClonedElementsGroup",value:function(t){if(t.root.is("rootElement")){if(t.is("element")){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._addToClonedElementsGroup(i)}}catch(t){n.e(t)}finally{n.f()}}var o=t.id;if(o){var r=this._cloneGroups.get(o);r||(r=new Set,this._cloneGroups.set(o,r)),r.add(t),t._clonesGroup=r}}}},{key:"_removeFromClonedElementsGroup",value:function(t){if(t.is("element")){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._removeFromClonedElementsGroup(i)}}catch(t){n.e(t)}finally{n.f()}}var o=t.id;if(o){var r=this._cloneGroups.get(o);r&&r.delete(t)}}}]),t}();function Ro(t){for(var e=t.parent;!Wo(e);){if(!e)return;e=e.parent}return e}function jo(t,e){return t.priority<e.priority||!(t.priority>e.priority)&&t.getIdentity()<e.getIdentity()}function Vo(t){var e=t.nodeBefore;if(e&&e.is("$text"))return new to(e,e.data.length);var n=t.nodeAfter;return n&&n.is("$text")?new to(n,0):t}function Ho(t){if(t.offset==t.parent.data.length)return new to(t.parent.parent,t.parent.index+1);if(0===t.offset)return new to(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 ui(t.root.document,e)),new to(t.parent.parent,t.parent.index+1)}function Uo(t,e){var n=t.data.length;return t._data+=e.data,e._remove(),new to(t,n)}function Zo(t,e){var n,i=p(t);try{var o=function(){var t=n.value;if(!qo.some((function(e){return t instanceof e})))throw new x("view-writer-insert-invalid-node-type",e);t.is("$text")||Zo(t.getChildren(),e)};for(i.s();!(n=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}}var qo=[ui,go,$i,bo,Lo,Bo];function Wo(t){return t&&(t.is("containerElement")||t.is("documentFragment"))}function Go(t,e){var n=Ro(t.start),i=Ro(t.end);if(!n||!i||n!==i)throw new x("view-writer-invalid-range-container",e)}function $o(t,e){return null===t.id&&null===e.id}function Yo(t){return"[object Text]"==Object.prototype.toString.call(t)}var Ko=function(t){return t.createTextNode(" ")},Qo=function(t){var e=t.createElement("span");return e.dataset.ckeFiller=!0,e.innerHTML=" ",e},Jo=function(t){var e=t.createElement("br");return e.dataset.ckeFiller=!0,e},Xo="⁠".repeat(7);function tr(t){return Yo(t)&&t.data.substr(0,7)===Xo}function er(t){return 7==t.data.length&&tr(t)}function nr(t){return tr(t)?t.data.slice(7):t.data}function ir(t,e){if(e.keyCode==Eo.arrowleft){var n=e.domTarget.ownerDocument.defaultView.getSelection();if(1==n.rangeCount&&n.getRangeAt(0).collapsed){var i=n.getRangeAt(0).startContainer,o=n.getRangeAt(0).startOffset;tr(i)&&o<=7&&n.collapse(i,0)}}}function or(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];n=n||function(t,e){return t===e},Array.isArray(t)||(t=Array.prototype.slice.call(t)),Array.isArray(e)||(e=Array.prototype.slice.call(e));var o=function(t,e,n){var i=rr(t,e,n);if(-1===i)return{firstIndex:-1,lastIndexOld:-1,lastIndexNew:-1};var o=rr(ar(t,i),ar(e,i),n);return{firstIndex:i,lastIndexOld:t.length-o,lastIndexNew:e.length-o}}(t,e,n);return i?function(t,e){var n=t.firstIndex,i=t.lastIndexOld,o=t.lastIndexNew;if(-1===n)return Array(e).fill("equal");var r=[];return n>0&&(r=r.concat(Array(n).fill("equal"))),o-n>0&&(r=r.concat(Array(o-n).fill("insert"))),i-n>0&&(r=r.concat(Array(i-n).fill("delete"))),o<e&&(r=r.concat(Array(e-o).fill("equal"))),r}(o,e.length):function(t,e){var n=[],i=e.firstIndex,o=e.lastIndexOld,r=e.lastIndexNew;return r-i>0&&n.push({index:i,type:"insert",values:t.slice(i,r)}),o-i>0&&n.push({index:i+(r-i),type:"delete",howMany:o-i}),n}(e,o)}function rr(t,e,n){for(var i=0;i<Math.max(t.length,e.length);i++)if(void 0===t[i]||void 0===e[i]||!n(t[i],e[i]))return i;return-1}function ar(t,e){return t.slice(e).reverse()}function sr(t,e,n){n=n||function(t,e){return t===e};var i,o,r=t.length,a=e.length;if(r>200||a>200||r+a>300)return sr.fastDiff(t,e,n,!0);if(a<r){var s=t;t=e,e=s,i="delete",o="insert"}else i="insert",o="delete";var l=t.length,c=e.length,u=c-l,d={},h={};function f(r){var a=(void 0!==h[r-1]?h[r-1]:-1)+1,s=void 0!==h[r+1]?h[r+1]:-1,u=a>s?-1:1;
2d[r+u]&&(d[r]=d[r+u].slice(0)),d[r]||(d[r]=[]),d[r].push(a>s?i:o);for(var f=Math.max(a,s),p=f-r;p<l&&f<c&&n(t[p],e[f]);)p++,f++,d[r].push("equal");return f}var p,m=0;do{for(p=-m;p<u;p++)h[p]=f(p);for(p=u+m;p>u;p--)h[p]=f(p);h[u]=f(u),m++}while(h[u]!==c);return d[u].slice(1)}function lr(t,e,n){t.insertBefore(n,t.childNodes[e]||null)}function cr(t){var e=t.parentNode;e&&e.removeChild(t)}function ur(t){return t&&t.nodeType===Node.COMMENT_NODE}function dr(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}sr.fastDiff=or;var hr=r(3379),fr=r.n(hr),pr=r(4401);fr()(pr.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pr.Z.locals;var mr=function(){function t(e,n){var i=this;I(this,t),this.domDocuments=new Set,this.domConverter=e,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=n,this.set("isFocused",!1),this.set("isSelecting",!1),Co.isBlink&&!Co.isAndroid&&this.on("change:isSelecting",(function(){i.isSelecting||i.render()})),this._inlineFiller=null,this._fakeSelectionContainer=null}return S(t,[{key:"markToSync",value:function(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 x("view-renderer-unknown-type",this);this.markedChildren.add(e)}}}},{key:"render",value:function(){var t,e,n=!(Co.isBlink&&!Co.isAndroid&&this.isSelecting),i=p(this.markedChildren);try{for(i.s();!(e=i.n()).done;){var o=e.value;this._updateChildrenMappings(o)}}catch(t){i.e(t)}finally{i.f()}n?(this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?t=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(t=this.selection.getFirstPosition(),this.markedChildren.add(t.parent))):this._inlineFiller&&this._inlineFiller.parentNode&&(t=this.domConverter.domPositionToView(this._inlineFiller));var r,a=p(this.markedAttributes);try{for(a.s();!(r=a.n()).done;){var s=r.value;this._updateAttrs(s)}}catch(t){a.e(t)}finally{a.f()}var l,c=p(this.markedChildren);try{for(c.s();!(l=c.n()).done;){var u=l.value;this._updateChildren(u,{inlineFillerPosition:t})}}catch(t){c.e(t)}finally{c.f()}var d,h=p(this.markedTexts);try{for(h.s();!(d=h.n()).done;){var f=d.value;!this.markedChildren.has(f.parent)&&this.domConverter.mapViewToDom(f.parent)&&this._updateText(f,{inlineFillerPosition:t})}}catch(t){h.e(t)}finally{h.f()}if(n)if(t){var m=this.domConverter.viewPositionToDom(t),g=m.parent.ownerDocument;tr(m.parent)?this._inlineFiller=m.parent:this._inlineFiller=gr(g,m.parent,m.offset)}else this._inlineFiller=null;this._updateFocus(),this._updateSelection(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear()}},{key:"_updateChildrenMappings",value:function(t){var e=this.domConverter.mapViewToDom(t);if(e){var n=Array.from(this.domConverter.mapViewToDom(t).childNodes),i=Array.from(this.domConverter.viewChildrenToDom(t,e.ownerDocument,{withChildren:!1})),o=this._diffNodeLists(n,i),r=this._findReplaceActions(o,n,i);if(-1!==r.indexOf("replace")){var a,s={equal:0,insert:0,delete:0},l=p(r);try{for(l.s();!(a=l.n()).done;){var c=a.value;if("replace"===c){var u=s.equal+s.insert,d=s.equal+s.delete,h=t.getChild(u);!h||h.is("uiElement")||h.is("rawElement")||this._updateElementMappings(h,n[d]),cr(i[u]),s.equal++}else s[c]++}
2}catch(t){l.e(t)}finally{l.f()}}}}},{key:"_updateElementMappings",value:function(t,e){this.domConverter.unbindDomElement(e),this.domConverter.bindElements(e,t),this.markedChildren.add(t),this.markedAttributes.add(t)}},{key:"_getInlineFillerPosition",value:function(){var t=this.selection.getFirstPosition();return t.parent.is("$text")?to._createBefore(this.selection.getFirstPosition().parent):t}},{key:"_isSelectionInInlineFiller",value:function(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;var t=this.selection.getFirstPosition(),e=this.domConverter.viewPositionToDom(t);return!!(e&&Yo(e.parent)&&tr(e.parent))}},{key:"_removeInlineFiller",value:function(){var t=this._inlineFiller;if(!tr(t))throw new x("view-renderer-filler-was-lost",this);er(t)?t.remove():t.data=t.data.substr(7),this._inlineFiller=null}},{key:"_needsInlineFillerAtSelection",value:function(){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 i=t.nodeBefore,o=t.nodeAfter;return!(i instanceof ui||o instanceof ui)}},{key:"_updateText",value:function(t,e){var n=this.domConverter.findCorrespondingDomText(t),i=this.domConverter.viewToDom(t,n.ownerDocument),o=n.data,r=i.data,a=e.inlineFillerPosition;if(a&&a.parent==t.parent&&a.offset==t.index&&(r=Xo+r),o!=r){var s,l=p(or(o,r));try{for(l.s();!(s=l.n()).done;){var c=s.value;"insert"===c.type?n.insertData(c.index,c.values.join("")):n.deleteData(c.index,c.howMany)}}catch(t){l.e(t)}finally{l.f()}}}},{key:"_updateAttrs",value:function(t){var e=this.domConverter.mapViewToDom(t);if(e){var n,i=Array.from(e.attributes).map((function(t){return t.name})),o=p(t.getAttributeKeys());try{for(o.s();!(n=o.n()).done;){var r=n.value;this.domConverter.setDomElementAttribute(e,r,t.getAttribute(r),t)}}catch(t){o.e(t)}finally{o.f()}var a,s=p(i);try{for(s.s();!(a=s.n()).done;){var l=a.value;t.hasAttribute(l)||this.domConverter.removeDomElementAttribute(e,l)}}catch(t){s.e(t)}finally{s.f()}}}},{key:"_updateChildren",value:function(t,e){var n=this.domConverter.mapViewToDom(t);if(n){var i=e.inlineFillerPosition,o=this.domConverter.mapViewToDom(t).childNodes,r=Array.from(this.domConverter.viewChildrenToDom(t,n.ownerDocument,{bind:!0}));i&&i.parent===t&&gr(n.ownerDocument,r,i.offset);var a,s=this._diffNodeLists(o,r),l=0,c=new Set,u=p(s);try{for(u.s();!(a=u.n()).done;){var d=a.value;"delete"===d?(c.add(o[l]),cr(o[l])):"equal"===d&&l++}}catch(t){u.e(t)}finally{u.f()}l=0;var h,f=p(s);try{for(f.s();!(h=f.n()).done;){var m=h.value;"insert"===m?(lr(n,l,r[l]),l++):"equal"===m&&(this._markDescendantTextToSync(this.domConverter.domToView(r[l])),l++)}}catch(t){f.e(t)}finally{f.f()}var g,v=p(c);try{for(v.s();!(g=v.n()).done;){var k=g.value;k.parentNode||this.domConverter.unbindDomElement(k)}}catch(t){v.e(t)}finally{v.f()}}}},{key:"_diffNodeLists",value:function(t,e){return sr(t=function(t,e){var n=Array.from(t);return 0!=n.length&&e?(n[n.length-1]==e&&n.pop(),n):n}(t,this._fakeSelectionContainer),e,kr.bind(null,this.domConverter))}},{key:"_findReplaceActions",value:function(t,e,n){if(-1===t.indexOf("insert")||-1===t.indexOf("delete"))return t;var i,o=[],r=[],a=[],s={equal:0,insert:0,delete:0},l=p(t);try{for(l.s();!(i=l.n()).done;){var c=i.value;"insert"===c?a.push(n[s.equal+s.insert]):"delete"===c?r.push(e[s.equal+s.delete]):(o=o.concat(sr(r,a,vr).map((function(t){return"equal"===t?"replace":t}))),o.push("equal"),r=[],a=[]),s[c]++}}catch(t){l.e(t)}finally{l.f()}return o.concat(sr(r,a,vr).map((function(t){return"equal"===t?"replace":t})))}},{key:"_markDescendantTextToSync",value:function(t){if(t)if(t.is("$text"))this.markedTexts.add(t);else if(t.is("element")){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._markDescendantTextToSync(i)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"_updateSelection",value:function(){if(!Co.isBlink||Co.isAndroid||!this.isSelecting||this.markedChildren.size){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._removeFakeSelection(),this._updateDomSelection(t)))}}},{key:"_updateFakeSelection",value:function(t){var e=t.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=function(t){var e=t.createElement("div");
2return 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)){n.parentElement&&n.parentElement==t||t.appendChild(n),n.textContent=this.selection.fakeSelectionLabel||" ";var i=e.getSelection(),o=e.createRange();i.removeAllRanges(),o.selectNodeContents(n),i.addRange(o)}}},{key:"_updateDomSelection",value:function(t){var e=t.ownerDocument.defaultView.getSelection();if(this._domSelectionNeedsUpdate(e)){var n=this.domConverter.viewPositionToDom(this.selection.anchor),i=this.domConverter.viewPositionToDom(this.selection.focus);e.collapse(n.parent,n.offset),e.extend(i.parent,i.offset),Co.isGecko&&function(t,e){var n=t.parent;if(n.nodeType==Node.ELEMENT_NODE&&t.offset==n.childNodes.length-1){var i=n.childNodes[t.offset];i&&"BR"==i.tagName&&e.addRange(e.getRangeAt(0))}}(i,e)}}},{key:"_domSelectionNeedsUpdate",value:function(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(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(){var t,e=p(this.domDocuments);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n.getSelection().rangeCount){var i=n.activeElement,o=this.domConverter.mapDomToView(i);i&&o&&n.getSelection().removeAllRanges()}}}catch(t){e.e(t)}finally{e.f()}}},{key:"_removeFakeSelection",value:function(){var t=this._fakeSelectionContainer;t&&t.remove()}},{key:"_updateFocus",value:function(){if(this.isFocused){var t=this.selection.editableElement;t&&this.domConverter.focus(t)}}}]),t}();function gr(t,e,n){var i=e instanceof Array?e:e.childNodes,o=i[n];if(Yo(o))return o.data=Xo+o.data,o;var r=t.createTextNode(Xo);return Array.isArray(e)?i.splice(n,0,r):lr(e,n,r),r}function vr(t,e){return dr(t)&&dr(e)&&!Yo(t)&&!Yo(e)&&!ur(t)&&!ur(e)&&t.tagName.toLowerCase()===e.tagName.toLowerCase()}function kr(t,e,n){return e===n||(Yo(e)&&Yo(n)?e.data===n.data:!(!t.isBlockFiller(e)||!t.isBlockFiller(n)))}ke(mr,he);var br={window,document};function yr(t){for(var e=0;t.previousSibling;)t=t.previousSibling,e++;return e}function _r(t){for(var e=[];t&&t.nodeType!=Node.DOCUMENT_NODE;)e.unshift(t),t=t.parentNode;return e}var wr=Jo(document),Cr=Ko(document),Ar=Qo(document),xr="data-ck-unsafe-attribute-",Dr="data-ck-unsafe-element",Er=["script","style"],Sr=function(){function t(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,t),this.document=e,this.renderingMode=n.renderingMode||"editing",this.blockFillerMode=n.blockFillerMode||("editing"===this.renderingMode?"br":"nbsp"),this.preElements=["pre"],this.blockElements=["address","article","aside","blockquote","caption","center","dd","details","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","legend","li","main","menu","nav","ol","p","pre","section","summary","table","tbody","td","tfoot","th","thead","tr","ul"],this.inlineObjectElements=["object","iframe","input","button","textarea","select","option","video","embed","audio","img","canvas"],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap,this._rawContentElementMatcher=new fi,this._encounteredRawContentDomNodes=new WeakSet}return S(t,[{key:"bindFakeSelection",value:function(t,e){this._fakeSelectionMapping.set(t,new oo(e))}},{key:"fakeSelectionToView",value:function(t){return this._fakeSelectionMapping.get(t)}},{key:"bindElements",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"unbindDomElement",value:function(t){var e=this._domToViewMapping.get(t);if(e){this._domToViewMapping.delete(t),this._viewToDomMapping.delete(e);var n,i=p(t.childNodes);try{for(i.s();!(n=i.n()).done;){var o=n.value;this.unbindDomElement(o)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"bindDocumentFragments",value:function(t,e){this._domToViewMapping.set(t,e),this._viewToDomMapping.set(e,t)}},{key:"shouldRenderAttribute",value:function(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(t,e){if("data"!==this.renderingMode){for(var n=(new DOMParser).parseFromString(e,"text/html"),i=n.createDocumentFragment(),o=n.body.childNodes;o.length>0;)i.appendChild(o[0]);for(var r,a=n.createTreeWalker(i,NodeFilter.SHOW_ELEMENT),s=[];r=a.nextNode();)s.push(r);for(var l=0,c=s;l<c.length;l++){var u,d=c[l],h=p(d.getAttributeNames());try{for(h.s();!(u=h.n()).done;){var f=u.value;this.setDomElementAttribute(d,f,d.getAttribute(f))}}catch(t){h.e(t)}finally{h.f()}var m=d.tagName.toLowerCase();this._shouldRenameElement(m)&&(zr(m),d.replaceWith(this._createReplacementDomElement(m,d)))}for(;t.firstChild;)t.firstChild.remove();t.append(i)}else t.innerHTML=e}},{key:"viewToDom",value:function(t,e){var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.is("$text")){var o=this._processDataFromViewText(t);return e.createTextNode(o)}if(this.mapViewToDom(t))return this.mapViewToDom(t);if(t.is("documentFragment"))n=e.createDocumentFragment(),i.bind&&this.bindDocumentFragments(n,t);else{if(t.is("uiElement"))return n="$comment"===t.name?e.createComment(t.getCustomProperty("$rawContent")):t.render(e,this),i.bind&&this.bindElements(n,t),n;this._shouldRenameElement(t.name)?(zr(t.name),n=this._createReplacementDomElement(t.name)):n=t.hasAttribute("xmlns")?e.createElementNS(t.getAttribute("xmlns"),t.name):e.createElement(t.name),t.is("rawElement")&&t.render(n,this),i.bind&&this.bindElements(n,t);var r,a=p(t.getAttributeKeys());try{for(a.s();!(r=a.n()).done;){var s=r.value;this.setDomElementAttribute(n,s,t.getAttribute(s),t)}}catch(t){a.e(t)}finally{a.f()}}if(!1!==i.withChildren){var l,c=p(this.viewChildrenToDom(t,e,i));try{for(c.s();!(l=c.n()).done;){var u=l.value;n.appendChild(u)}}catch(t){c.e(t)}
2finally{c.f()}}return n}},{key:"setDomElementAttribute",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=this.shouldRenderAttribute(e,n,t.tagName.toLowerCase())||i&&i.shouldRenderUnsafeAttribute(e);o||E("domconverter-unsafe-attribute-detected",{domElement:t,key:e,value:n}),t.hasAttribute(e)&&!o?t.removeAttribute(e):t.hasAttribute(xr+e)&&o&&t.removeAttribute(xr+e),t.setAttribute(o?e:xr+e,n)}},{key:"removeDomElementAttribute",value:function(t,e){e!=Dr&&(t.removeAttribute(e),t.removeAttribute(xr+e))}},{key:"viewChildrenToDom",value:function(t,e){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return h().mark((function o(){var r,a,s,l,c;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:r=t.getFillerOffset&&t.getFillerOffset(),a=0,s=p(t.getChildren()),o.prev=3,s.s();case 5:if((l=s.n()).done){o.next=16;break}if(c=l.value,o.t0=r===a,!o.t0){o.next=11;break}return o.next=11,n._getBlockFiller(e);case 11:return o.next=13,n.viewToDom(c,e,i);case 13:a++;case 14:o.next=5;break;case 16:o.next=21;break;case 18:o.prev=18,o.t1=o.catch(3),s.e(o.t1);case 21:return o.prev=21,s.f(),o.finish(21);case 24:if(o.t2=r===a,!o.t2){o.next=28;break}return o.next=28,n._getBlockFiller(e);case 28:case"end":return o.stop()}}),o,null,[[3,18,21,24]])}))()}},{key:"viewRangeToDom",value:function(t){var e=this.viewPositionToDom(t.start),n=this.viewPositionToDom(t.end),i=document.createRange();return i.setStart(e.parent,e.offset),i.setEnd(n.parent,n.offset),i}},{key:"viewPositionToDom",value:function(t){var e,n,i,o=t.parent;if(o.is("$text")){var r=this.findCorrespondingDomText(o);if(!r)return null;var a=t.offset;return tr(r)&&(a+=7),{parent:r,offset:a}}if(0===t.offset){if(!(e=this.mapViewToDom(o)))return null;i=e.childNodes[0]}else{var s=t.nodeBefore;if(!(n=s.is("$text")?this.findCorrespondingDomText(s):this.mapViewToDom(t.nodeBefore)))return null;e=n.parentNode,i=n.nextSibling}return Yo(i)&&tr(i)?{parent:i,offset:7}:{parent:e,offset:n?yr(n)+1:0}}},{key:"domToView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(this.isBlockFiller(t))return null;var n,i=this.getHostViewElement(t);if(i)return i;if(ur(t)&&e.skipComments)return null;if(Yo(t)){if(er(t))return null;var o=this._processDataFromDomText(t);return""===o?null:new ui(this.document,o)}if(this.mapDomToView(t))return this.mapDomToView(t);if(this.isDocumentFragment(t))n=new Oo(this.document),e.bind&&this.bindDocumentFragments(t,n);else{n=this._createViewElement(t,e),e.bind&&this.bindElements(t,n);var r=t.attributes;if(r)for(var a=r.length-1;a>=0;a--)n._setAttribute(r[a].name,r[a].value);if(this._isViewElementWithRawContent(n,e)||ur(t)){var s=ur(t)?t.data:t.innerHTML;return n._setCustomProperty("$rawContent",s),this._encounteredRawContentDomNodes.add(t),n}}if(!1!==e.withChildren){var l,c=p(this.domChildrenToView(t,e));try{for(c.s();!(l=c.n()).done;){var u=l.value;n._appendChild(u)}}catch(t){c.e(t)}finally{c.f()}}return n}},{key:"domChildrenToView",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return h().mark((function i(){var o,r,a;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:o=0;case 1:if(!(o<t.childNodes.length)){i.next=10;break}if(r=t.childNodes[o],a=e.domToView(r,n),i.t0=null!==a,!i.t0){i.next=7;break}return i.next=7,a;case 7:o++,i.next=1;break;case 10:case"end":return i.stop()}}),i)}))()}},{key:"domSelectionToView",value:function(t){if(1===t.rangeCount){var e=t.getRangeAt(0).startContainer;Yo(e)&&(e=e.parentNode);var n=this.fakeSelectionToView(e);if(n)return n}for(var i=this.isDomSelectionBackward(t),o=[],r=0;r<t.rangeCount;r++){var a=t.getRangeAt(r),s=this.domRangeToView(a);s&&o.push(s)}return new oo(o,{backward:i})}},{key:"domRangeToView",value:function(t){var e=this.domPositionToView(t.startContainer,t.startOffset),n=this.domPositionToView(t.endContainer,t.endOffset);return e&&n?new eo(e,n):null}},{key:"domPositionToView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;if(this.isBlockFiller(t))return this.domPositionToView(t.parentNode,
2yr(t));var n=this.mapDomToView(t);if(n&&(n.is("uiElement")||n.is("rawElement")))return to._createBefore(n);if(Yo(t)){if(er(t))return this.domPositionToView(t.parentNode,yr(t));var i=this.findCorrespondingViewText(t),o=e;return i?(tr(t)&&(o=(o-=7)<0?0:o),new to(i,o)):null}if(0===e){var r=this.mapDomToView(t);if(r)return new to(r,0)}else{var a=t.childNodes[e-1],s=Yo(a)?this.findCorrespondingViewText(a):this.mapDomToView(a);if(s&&s.parent)return new to(s.parent,s.index+1)}return null}},{key:"mapDomToView",value:function(t){return this.getHostViewElement(t)||this._domToViewMapping.get(t)}},{key:"findCorrespondingViewText",value:function(t){if(er(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 i=this.mapDomToView(n);if(i)return i.nextSibling instanceof ui?i.nextSibling:null}else{var o=this.mapDomToView(t.parentNode);if(o){var r=o.getChild(0);return r instanceof ui?r:null}}return null}},{key:"mapViewToDom",value:function(t){return this._viewToDomMapping.get(t)}},{key:"findCorrespondingDomText",value:function(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(t){var e=this.mapViewToDom(t);if(e&&e.ownerDocument.activeElement!==e){var n=br.window,i=n.scrollX,o=n.scrollY,r=[];Tr(e,(function(t){var e=t.scrollLeft,n=t.scrollTop;r.push([e,n])})),e.focus(),Tr(e,(function(t){var e=f(r.shift(),2),n=e[0],i=e[1];t.scrollLeft=n,t.scrollTop=i})),br.window.scrollTo(i,o)}}},{key:"isElement",value:function(t){return t&&t.nodeType==Node.ELEMENT_NODE}},{key:"isDocumentFragment",value:function(t){return t&&t.nodeType==Node.DOCUMENT_FRAGMENT_NODE}},{key:"isBlockFiller",value:function(t){return"br"==this.blockFillerMode?t.isEqualNode(wr):!("BR"!==t.tagName||!Ir(t,this.blockElements)||1!==t.parentNode.childNodes.length)||t.isEqualNode(Ar)||function(t,e){return t.isEqualNode(Cr)&&Ir(t,e)&&1===t.parentNode.childNodes.length}(t,this.blockElements)}},{key:"isDomSelectionBackward",value:function(t){if(t.isCollapsed)return!1;var e=document.createRange();e.setStart(t.anchorNode,t.anchorOffset),e.setEnd(t.focusNode,t.focusOffset);var n=e.collapsed;return e.detach(),n}},{key:"getHostViewElement",value:function(t){var e=_r(t);for(e.pop();e.length;){var n=e.pop(),i=this._domToViewMapping.get(n);if(i&&(i.is("uiElement")||i.is("rawElement")))return i}return null}},{key:"isDomSelectionCorrect",value:function(t){return this._isDomSelectionPositionCorrect(t.anchorNode,t.anchorOffset)&&this._isDomSelectionPositionCorrect(t.focusNode,t.focusOffset)}},{key:"registerRawContentMatcher",value:function(t){this._rawContentElementMatcher.add(t)}},{key:"_getBlockFiller",value:function(t){switch(this.blockFillerMode){case"nbsp":return Ko(t);case"markedNbsp":return Qo(t);case"br":return Jo(t)}}},{key:"_isDomSelectionPositionCorrect",value:function(t,e){if(Yo(t)&&tr(t)&&e<7)return!1;if(this.isElement(t)&&tr(t.childNodes[e]))return!1;var n=this.mapDomToView(t);return!n||!n.is("uiElement")&&!n.is("rawElement")}},{key:"_processDataFromViewText",value:function(t){var e=this,n=t.data;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return n;if(" "==n.charAt(0)){var i=this._getTouchingInlineViewNode(t,!1);!(i&&i.is("$textProxy")&&this._nodeEndsWithSpace(i))&&i||(n=" "+n.substr(1))}if(" "==n.charAt(n.length-1)){var o=this._getTouchingInlineViewNode(t,!0),r=o&&o.is("$textProxy")&&" "==o.data.charAt(0);" "!=n.charAt(n.length-2)&&o&&!r||(n=n.substr(0,n.length-1)+" ")}return n.replace(/ {2}/g,"  ")}},{key:"_nodeEndsWithSpace",value:function(t){var e=this;if(t.getAncestors().some((function(t){return e.preElements.includes(t.name)})))return!1;var n=this._processDataFromViewText(t);return" "==n.charAt(n.length-1)}},{key:"_processDataFromDomText",value:function(t){var e=t.data;if(function(t,e){return _r(t).some((function(t){return t.tagName&&e.includes(t.tagName.toLowerCase())}))}(t,this.preElements))return nr(t);
2e=e.replace(/[ \n\t\r]{1,}/g," ");var n=this._getTouchingInlineDomNode(t,!1),i=this._getTouchingInlineDomNode(t,!0),o=this._checkShouldLeftTrimDomText(t,n),r=this._checkShouldRightTrimDomText(t,i);o&&(e=e.replace(/^ /,"")),r&&(e=e.replace(/ $/,"")),e=(e=nr(new Text(e))).replace(/ \u00A0/g,"  ");var a=i&&this.isElement(i)&&"BR"!=i.tagName,s=i&&Yo(i)&&" "==i.data.charAt(0);return(/( |\u00A0)\u00A0$/.test(e)||!i||a||s)&&(e=e.replace(/\u00A0$/," ")),(o||n&&this.isElement(n)&&"BR"!=n.tagName)&&(e=e.replace(/^\u00A0/," ")),e}},{key:"_checkShouldLeftTrimDomText",value:function(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(t,e){return!e&&!tr(t)}},{key:"_getTouchingInlineViewNode",value:function(t,e){var n,i=p(new Xi({startPosition:e?to._createAfter(t):to._createBefore(t),direction:e?"forward":"backward"}));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("element")&&this.inlineObjectElements.includes(o.item.name))return o.item;if(o.item.is("containerElement"))return null;if(o.item.is("element","br"))return null;if(o.item.is("$textProxy"))return o.item}}catch(t){i.e(t)}finally{i.f()}return null}},{key:"_getTouchingInlineDomNode",value:function(t,e){if(!t.parentNode)return null;var n=e?"firstChild":"lastChild",i=e?"nextSibling":"previousSibling",o=!0;do{if(!o&&t[n]?t=t[n]:t[i]?(t=t[i],o=!1):(t=t.parentNode,o=!0),!t||this._isBlockElement(t))return null}while(!Yo(t)&&"BR"!=t.tagName&&!this._isInlineObjectElement(t));return t}},{key:"_isBlockElement",value:function(t){return this.isElement(t)&&this.blockElements.includes(t.tagName.toLowerCase())}},{key:"_isInlineObjectElement",value:function(t){return this.isElement(t)&&this.inlineObjectElements.includes(t.tagName.toLowerCase())}},{key:"_createViewElement",value:function(t,e){if(ur(t))return new Bo(this.document,"$comment");var n=e.keepOriginalCase?t.tagName:t.tagName.toLowerCase();return new Wi(this.document,n)}},{key:"_isViewElementWithRawContent",value:function(t,e){return!1!==e.withChildren&&this._rawContentElementMatcher.match(t)}},{key:"_shouldRenameElement",value:function(t){var e=t.toLowerCase();return"editing"===this.renderingMode&&Er.includes(e)}},{key:"_createReplacementDomElement",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=document.createElement("span");if(n.setAttribute(Dr,t),e){for(;e.firstChild;)n.appendChild(e.firstChild);var i,o=p(e.getAttributeNames());try{for(o.s();!(i=o.n()).done;){var r=i.value;n.setAttribute(r,e.getAttribute(r))}}catch(t){o.e(t)}finally{o.f()}}return n}}]),t}();function Tr(t,e){for(;t&&t!=br.document;)e(t),t=t.parentNode}function Ir(t,e){var n=t.parentNode;return n&&n.tagName&&e.includes(n.tagName.toLowerCase())}function zr(t){"script"===t&&E("domconverter-unsafe-script-element-detected"),"style"===t&&E("domconverter-unsafe-style-element-detected")}function Mr(t){var e=Object.prototype.toString.apply(t);return"[object Window]"==e||"[object global]"==e}var Br=re({},N,{listenTo:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(dr(t)||Mr(t)){var o={capture:!!i.useCapture,passive:!!i.usePassive},r=this._getProxyEmitter(t,o)||new Lr(t,o);this.listenTo(r,e,n,i)}else N.listenTo.call(this,t,e,n,i)},stopListening:function(t,e,n){if(dr(t)||Mr(t)){var i,o=p(this._getAllProxyEmitters(t));try{for(o.s();!(i=o.n()).done;){var r=i.value;this.stopListening(r,e,n)}}catch(t){o.e(t)}finally{o.f()}}else N.stopListening.call(this,t,e,n)},_getProxyEmitter:function(t,e){return n=this,i=Nr(t,e),n[B]&&n[B][i]?n[B][i].emitter:null;var n,i},_getAllProxyEmitters:function(t){var e=this;return[{capture:!1,passive:!1},{capture:!1,passive:!0},{capture:!0,passive:!1},{capture:!0,passive:!0}].map((function(n){return e._getProxyEmitter(t,n)})).filter((function(t){return!!t}))}}),Pr=Br,Lr=S((function t(e,n){I(this,t),O(this,Nr(e,n)),this._domNode=e,this._options=n}));function Nr(t,e){var n,i=function(t){return t["data-ck-expando"]||(t["data-ck-expando"]=v())}(t),o=p(Object.keys(e).sort());try{for(o.s();!(n=o.n()).done;){var r=n.value;e[r]&&(i+="-"+r)}}catch(t){o.e(t)}finally{o.f()}return i}re(Lr.prototype,N,{attach:function(t){if(!this._domListeners||!this._domListeners[t]){var e=this._createDomListener(t);
2this._domNode.addEventListener(t,e,this._options),this._domListeners||(this._domListeners={}),this._domListeners[t]=e}},detach:function(t){var e;!this._domListeners[t]||(e=this._events[t])&&e.callbacks.length||this._domListeners[t].removeListener()},_addEventListener:function(t,e,n){this.attach(t),N._addEventListener.call(this,t,e,n)},_removeEventListener:function(t,e){N._removeEventListener.call(this,t,e),this.detach(t)},_createDomListener:function(t){var e=this,n=function(n){e.fire(t,n)};return n.removeListener=function(){e._domNode.removeEventListener(t,n,e._options),delete e._domListeners[t]},n}});var Or=function(){function t(e){I(this,t),this.view=e,this.document=e.document,this.isEnabled=!1}return S(t,[{key:"enable",value:function(){this.isEnabled=!0}},{key:"disable",value:function(){this.isEnabled=!1}},{key:"destroy",value:function(){this.disable(),this.stopListening()}},{key:"checkShouldIgnoreEventFromTarget",value:function(t){return t&&3===t.nodeType&&(t=t.parentNode),!(!t||1!==t.nodeType)&&t.matches("[data-cke-ignore-events], [data-cke-ignore-events] *")}}]),t}();ke(Or,Pr);function Fr(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Ze;++e<n;)this.add(t[e])}Fr.prototype.add=Fr.prototype.push=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Fr.prototype.has=function(t){return this.__data__.has(t)};var Rr=Fr,jr=function(t,e){for(var n=-1,i=null==t?0:t.length;++n<i;)if(e(t[n],n,t))return!0;return!1},Vr=function(t,e){return t.has(e)},Hr=function(t,e,n,i,o,r){var a=1&n,s=t.length,l=e.length;if(s!=l&&!(a&&l>s))return!1;var c=r.get(t),u=r.get(e);if(c&&u)return c==e&&u==t;var d=-1,h=!0,f=2&n?new Rr:void 0;for(r.set(t,e),r.set(e,t);++d<s;){var p=t[d],m=e[d];if(i)var g=a?i(m,p,d,e,t,r):i(p,m,d,t,e,r);if(void 0!==g){if(g)continue;h=!1;break}if(f){if(!jr(e,(function(t,e){if(!Vr(f,e)&&(p===t||o(p,t,n,i,r)))return f.push(e)}))){h=!1;break}}else if(p!==m&&!o(p,m,n,i,r)){h=!1;break}}return r.delete(t),r.delete(e),h},Ur=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,i){n[++e]=[i,t]})),n},Zr=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},qr=$?$.prototype:void 0,Wr=qr?qr.valueOf:void 0,Gr=Object.prototype.hasOwnProperty,$r="[object Arguments]",Yr="[object Array]",Kr="[object Object]",Qr=Object.prototype.hasOwnProperty,Jr=function(t,e,n,i,o,r){var a=Rt(t),s=Rt(e),l=a?Yr:En(t),c=s?Yr:En(e),u=(l=l==$r?Kr:l)==Kr,d=(c=c==$r?Kr:c)==Kr,h=l==c;if(h&&Ut(t)){if(!Ut(e))return!1;a=!0,u=!1}if(h&&!u)return r||(r=new We),a||Qt(t)?Hr(t,e,n,i,o,r):function(t,e,n,i,o,r,a){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 Tn(t),new Tn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return vt(+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 s=Ur;case"[object Set]":var l=1&i;if(s||(s=Zr),t.size!=e.size&&!l)return!1;var c=a.get(t);if(c)return c==e;i|=2,a.set(t,e);var u=Hr(s(t),s(e),i,o,r,a);return a.delete(t),u;case"[object Symbol]":if(Wr)return Wr.call(t)==Wr.call(e)}return!1}(t,e,l,n,i,o,r);if(!(1&n)){var f=u&&Qr.call(t,"__wrapped__"),p=d&&Qr.call(e,"__wrapped__");
2if(f||p){var m=f?t.value():t,g=p?e.value():e;return r||(r=new We),o(m,g,n,i,r)}}return!!h&&(r||(r=new We),function(t,e,n,i,o,r){var a=1&n,s=un(t),l=s.length;if(l!=un(e).length&&!a)return!1;for(var c=l;c--;){var u=s[c];if(!(a?u in e:Gr.call(e,u)))return!1}var d=r.get(t),h=r.get(e);if(d&&h)return d==e&&h==t;var f=!0;r.set(t,e),r.set(e,t);for(var p=a;++c<l;){var m=t[u=s[c]],g=e[u];if(i)var v=a?i(g,m,u,e,t,r):i(m,g,u,t,e,r);if(!(void 0===v?m===g||o(m,g,n,i,r):v)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var k=t.constructor,b=e.constructor;k==b||!("constructor"in t)||!("constructor"in e)||"function"==typeof k&&k instanceof k&&"function"==typeof b&&b instanceof b||(f=!1)}return r.delete(t),r.delete(e),f}(t,e,n,i,o,r))},Xr=function t(e,n,i,o,r){return e===n||(null==e||null==n||!Bt(e)&&!Bt(n)?e!=e&&n!=n:Jr(e,n,i,o,t,r))},ta=function(t,e,n){var i=(n="function"==typeof n?n:void 0)?n(t,e):void 0;return void 0===i?Xr(t,e,void 0,n):!!i},ea=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},i.domConverter=t.domConverter,i.renderer=t._renderer,i._domElements=[],i._mutationObserver=new window.MutationObserver(i._onMutations.bind(_(i))),i}return S(n,[{key:"flush",value:function(){this._onMutations(this._mutationObserver.takeRecords())}},{key:"observe",value:function(t){this._domElements.push(t),this.isEnabled&&this._mutationObserver.observe(t,this._config)}},{key:"enable",value:function(){d(D(n.prototype),"enable",this).call(this);var t,e=p(this._domElements);try{for(e.s();!(t=e.n()).done;){var i=t.value;this._mutationObserver.observe(i,this._config)}}catch(t){e.e(t)}finally{e.f()}}},{key:"disable",value:function(){d(D(n.prototype),"disable",this).call(this),this._mutationObserver.disconnect()}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this._mutationObserver.disconnect()}},{key:"_onMutations",value:function(t){if(0!==t.length){var e,n=this.domConverter,i=new Map,o=new Set,r=p(t);try{for(r.s();!(e=r.n()).done;){var a=e.value;if("childList"===a.type){var s=n.mapDomToView(a.target);if(s&&(s.is("uiElement")||s.is("rawElement")))continue;s&&!this._isBogusBrMutation(a)&&o.add(s)}}}catch(t){r.e(t)}finally{r.f()}var l,c=p(t);try{for(c.s();!(l=c.n()).done;){var u=l.value,d=n.mapDomToView(u.target);if((!d||!d.is("uiElement")&&!d.is("rawElement"))&&"characterData"===u.type){var h=n.findCorrespondingViewText(u.target);h&&!o.has(h.parent)?i.set(h,{type:"text",oldText:h.data,newText:nr(u.target),node:h}):!h&&tr(u.target)&&o.add(n.mapDomToView(u.target.parentNode))}}}catch(t){c.e(t)}finally{c.f()}var f,m=[],g=p(i.values());try{for(g.s();!(f=g.n()).done;){var v=f.value;this.renderer.markToSync("text",v.node),m.push(v)}}catch(t){g.e(t)}finally{g.f()}var k,b=p(o);try{for(b.s();!(k=b.n()).done;){var y=k.value,_=n.mapViewToDom(y),w=Array.from(y.getChildren()),C=Array.from(n.domChildrenToView(_,{withChildren:!1}));ta(w,C,S)||(this.renderer.markToSync("children",y),m.push({type:"children",oldChildren:w,newChildren:C,node:y}))}}catch(t){b.e(t)}finally{b.f()}var A=t[0].target.ownerDocument.getSelection(),x=null;if(A&&A.anchorNode){var D=n.domPositionToView(A.anchorNode,A.anchorOffset),E=n.domPositionToView(A.focusNode,A.focusOffset);D&&E&&(x=new oo(D)).setFocus(E)}m.length&&(this.document.fire("mutations",m,x),this.view.forceRender())}function S(t,e){if(!Array.isArray(t))return t===e||!(!t.is("$text")||!e.is("$text"))&&t.data===e.data}}},{key:"_isBogusBrMutation",value:function(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")}}]),n}(Or),na=function(){function t(e,n,i){I(this,t),this.view=e,this.document=e.document,this.domEvent=n,this.domTarget=n.target,re(this,i)}return S(t,[{key:"target",get:function(){return this.view.domConverter.mapDomToView(this.domTarget)}},{key:"preventDefault",value:function(){this.domEvent.preventDefault()}},{key:"stopPropagation",value:function(){this.domEvent.stopPropagation()}}]),t}(),ia=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).useCapture=!1,i}return S(n,[{key:"observe",value:function(t){var e=this;("string"==typeof this.domEventType?[this.domEventType]:this.domEventType).forEach((function(n){e.listenTo(t,n,(function(t,n){e.isEnabled&&!e.checkShouldIgnoreEventFromTarget(n.target)&&e.onDomEvent(n)}),{useCapture:e.useCapture})}))}},{key:"fire",value:function(t,e,n){this.isEnabled&&this.document.fire(t,new na(this.view,e,n))}}]),n}(Or),oa=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).domEventType=["keydown","keyup"],i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t,{keyCode:t.keyCode,altKey:t.altKey,ctrlKey:t.ctrlKey,shiftKey:t.shiftKey,metaKey:t.metaKey,get keystroke(){return To(this)}})}}]),n}(ia),ra=function(){return G.Date.now()},aa=/\s/,sa=/^\s+/,la=function(t){return t?t.slice(0,function(t){for(var e=t.length;e--&&aa.test(t.charAt(e)););return e}(t)+1).replace(sa,""):t},ca=/^[-+]0x[0-9a-f]+$/i,ua=/^0b[01]+$/i,da=/^0o[0-7]+$/i,ha=parseInt,fa=function(t){if("number"==typeof t)return t;if(gi(t))return NaN;if(Z(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=Z(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=la(t);var n=ua.test(t);return n||da.test(t)?ha(t.slice(2),n?2:8):ca.test(t)?NaN:+t},pa=Math.max,ma=Math.min,ga=function(t,e,n){var i,o,r,a,s,l,c=0,u=!1,d=!1,h=!0;if("function"!=typeof t)throw new TypeError("Expected a function");function f(e){var n=i,r=o;return i=o=void 0,c=e,a=t.apply(r,n)}function p(t){var n=t-l;return void 0===l||n>=e||n<0||d&&t-c>=r}function m(){var t=ra();if(p(t))return g(t);s=setTimeout(m,function(t){var n=e-(t-l);return d?ma(n,r-(t-c)):n}(t))}function g(t){return s=void 0,h&&i?f(t):(i=o=void 0,a)}function v(){var t=ra(),n=p(t);if(i=arguments,o=this,l=t,n){if(void 0===s)return function(t){return c=t,s=setTimeout(m,e),u?f(t):a}(l);if(d)return clearTimeout(s),s=setTimeout(m,e),f(l)}return void 0===s&&(s=setTimeout(m,e)),a}return e=fa(e)||0,Z(n)&&(u=!!n.leading,r=(d="maxWait"in n)?pa(fa(n.maxWait)||0,e):r,h="trailing"in n?!!n.trailing:h),v.cancel=function(){void 0!==s&&clearTimeout(s),c=0,i=l=o=s=void 0},v.flush=function(){return void 0===s?a:g(ra())},v},va=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._fireSelectionChangeDoneDebounced=ga((function(t){return i.document.fire("selectionChangeDone",t)}),200),i}return S(n,[{key:"observe",value:function(){var t=this,e=this.document;e.on("arrowKey",(function(n,i){e.selection.isFake&&t.isEnabled&&i.preventDefault()}),{context:"$capture"}),e.on("arrowKey",(function(n,i){e.selection.isFake&&t.isEnabled&&t._handleSelectionMove(i.keyCode)}
2),{priority:"lowest"})}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this._fireSelectionChangeDoneDebounced.cancel()}},{key:"_handleSelectionMove",value:function(t){var e=this.document.selection,n=new oo(e.getRanges(),{backward:e.isBackward,fake:!1});t!=Eo.arrowleft&&t!=Eo.arrowup||n.setTo(n.getFirstPosition()),t!=Eo.arrowright&&t!=Eo.arrowdown||n.setTo(n.getLastPosition());var i={oldSelection:e,newSelection:n,domSelection:null};this.document.fire("selectionChange",i),this._fireSelectionChangeDoneDebounced(i)}}]),n}(Or),ka=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).mutationObserver=t.getObserver(ea),i.selection=i.document.selection,i.domConverter=t.domConverter,i._documents=new WeakSet,i._fireSelectionChangeDoneDebounced=ga((function(t){return i.document.fire("selectionChangeDone",t)}),200),i._clearInfiniteLoopInterval=setInterval((function(){return i._clearInfiniteLoop()}),1e3),i._documentIsSelectingInactivityTimeoutDebounced=ga((function(){return i.document.isSelecting=!1}),5e3),i._loopbackCounter=0,i}return S(n,[{key:"observe",value:function(t){var e=this,n=t.ownerDocument,i=function(){e.document.isSelecting=!1,e._documentIsSelectingInactivityTimeoutDebounced.cancel()};this.listenTo(t,"selectstart",(function(){e.document.isSelecting=!0,e._documentIsSelectingInactivityTimeoutDebounced()}),{priority:"highest"}),this.listenTo(t,"keydown",i,{priority:"highest"}),this.listenTo(t,"keyup",i,{priority:"highest"}),this._documents.has(n)||(this.listenTo(n,"mouseup",i,{priority:"highest"}),this.listenTo(n,"selectionchange",(function(t,i){e._handleSelectionChange(i,n),e._documentIsSelectingInactivityTimeoutDebounced()})),this._documents.add(n))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel(),this._documentIsSelectingInactivityTimeoutDebounced.cancel()}},{key:"_handleSelectionChange",value:function(t,e){if(this.isEnabled){var n=e.defaultView.getSelection();if(!this.checkShouldIgnoreEventFromTarget(n.anchorNode)){this.mutationObserver.flush();var i=this.domConverter.domSelectionToView(n);if(0!=i.rangeCount){if(this.view.hasDomSelection=!0,!(this.selection.isEqual(i)&&this.domConverter.isDomSelectionCorrect(n)||++this._loopbackCounter>60))if(this.selection.isSimilar(i))this.view.forceRender();else{var o={oldSelection:this.selection,newSelection:i,domSelection:n};this.document.fire("selectionChange",o),this._fireSelectionChangeDoneDebounced(o)}}else this.view.hasDomSelection=!1}}}},{key:"_clearInfiniteLoop",value:function(){this._loopbackCounter=0}}]),n}(Or),ba=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).domEventType=["focus","blur"],i.useCapture=!0;var o=i.document;return o.on("focus",(function(){o.isFocused=!0,i._renderTimeoutId=setTimeout((function(){return t.change((function(){}))}),50)})),o.on("blur",(function(e,n){var i=o.selection.editableElement;null!==i&&i!==n.target||(o.isFocused=!1,t.change((function(){})))})),i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}},{key:"destroy",value:function(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),d(D(n.prototype),"destroy",this).call(this)}}]),n}(ia),ya=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).domEventType=["compositionstart","compositionupdate","compositionend"];var o=i.document;return o.on("compositionstart",(function(){o.isComposing=!0})),o.on("compositionend",(function(){o.isComposing=!1})),i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(ia),_a=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).domEventType=["beforeinput"],i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(ia),wa=function(){function t(){I(this,t),this._replacedElements=[]}return S(t,[{key:"replace",value:function(t,e){this._replacedElements.push({element:t,newElement:e}),t.style.display="none",e&&t.parentNode.insertBefore(e,t.nextSibling)}}
2,{key:"restore",value:function(){this._replacedElements.forEach((function(t){var e=t.element,n=t.newElement;e.style.display="",n&&n.remove()})),this._replacedElements=[]}}]),t}(),Ca=function(t){return"string"==typeof t||!Rt(t)&&Bt(t)&&"[object String]"==et(t)};function Aa(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=n&&n.xmlns,r=o?t.createElementNS(o,e):t.createElement(e);for(var a in n)r.setAttribute(a,n[a]);!Ca(i)&&Jn(i)||(i=[i]);var s,l=p(i);try{for(l.s();!(s=l.n()).done;){var c=s.value;Ca(c)&&(c=t.createTextNode(c)),r.appendChild(c)}}catch(t){l.e(t)}finally{l.f()}return r}function xa(t){return"[object Range]"==Object.prototype.toString.apply(t)}function Da(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 Ea=["top","right","bottom","left","width","height"],Sa=function(){function t(e){I(this,t);var n=xa(e);if(Object.defineProperty(this,"_source",{value:e._source||e,writable:!0,enumerable:!1}),$n(e)||n)if(n){var i=t.getDomRangeRects(e);Ta(this,t.getBoundingRect(i))}else Ta(this,e.getBoundingClientRect());else if(Mr(e)){var o=e.innerWidth,r=e.innerHeight;Ta(this,{top:0,right:o,bottom:r,left:0,width:o,height:r})}else Ta(this,e)}return S(t,[{key:"clone",value:function(){return new t(this)}},{key:"moveTo",value:function(t,e){return this.top=e,this.right=t+this.width,this.bottom=e+this.height,this.left=t,this}},{key:"moveBy",value:function(t,e){return this.top+=e,this.right+=t,this.left+=t,this.bottom+=e,this}},{key:"getIntersection",value:function(e){var n={top:Math.max(this.top,e.top),right:Math.min(this.right,e.right),bottom:Math.min(this.bottom,e.bottom),left:Math.max(this.left,e.left)};return n.width=n.right-n.left,n.height=n.bottom-n.top,n.width<0||n.height<0?null:new t(n)}},{key:"getIntersectionArea",value:function(t){var e=this.getIntersection(t);return e?e.getArea():0}},{key:"getArea",value:function(){return this.width*this.height}},{key:"getVisible",value:function(){var e=this._source,n=this.clone();if(!Ia(e))for(var i=e.parentNode||e.commonAncestorContainer;i&&!Ia(i);){var o=new t(i),r=n.getIntersection(o);if(!r)return null;r.getArea()<n.getArea()&&(n=r),i=i.parentNode}return n}},{key:"isEqual",value:function(t){for(var e=0,n=Ea;e<n.length;e++){var i=n[e];if(this[i]!==t[i])return!1}return!0}},{key:"contains",value:function(t){var e=this.getIntersection(t);return!(!e||!e.isEqual(t))}},{key:"excludeScrollbarsAndBorders",value:function(){var t,e,n,i=this._source;if(Mr(i))t=i.innerWidth-i.document.documentElement.clientWidth,e=i.innerHeight-i.document.documentElement.clientHeight,n=i.getComputedStyle(i.document.documentElement).direction;else{var o=Da(this._source);t=i.offsetWidth-i.clientWidth-o.left-o.right,e=i.offsetHeight-i.clientHeight-o.top-o.bottom,n=i.ownerDocument.defaultView.getComputedStyle(i).direction,this.left+=o.left,this.top+=o.top,this.right-=o.right,this.bottom-=o.bottom,this.width=this.right-this.left,this.height=this.bottom-this.top}return this.width-=t,"ltr"===n?this.right-=t:this.left+=t,this.height-=e,this.bottom-=e,this}}],[{key:"getDomRangeRects",value:function(e){var n=[],i=Array.from(e.getClientRects());if(i.length){var o,r=p(i);try{for(r.s();!(o=r.n()).done;){var a=o.value;n.push(new t(a))}}catch(t){r.e(t)}finally{r.f()}}else{var s=e.startContainer;Yo(s)&&(s=s.parentNode);var l=new t(s.getBoundingClientRect());l.right=l.left,l.width=0,n.push(l)}return n}},{key:"getBoundingRect",value:function(e){var n,i={left:Number.POSITIVE_INFINITY,top:Number.POSITIVE_INFINITY,right:Number.NEGATIVE_INFINITY,bottom:Number.NEGATIVE_INFINITY},o=0,r=p(e);try{for(r.s();!(n=r.n()).done;){var a=n.value;o++,i.left=Math.min(i.left,a.left),i.top=Math.min(i.top,a.top),i.right=Math.max(i.right,a.right),i.bottom=Math.max(i.bottom,a.bottom)}}catch(t){r.e(t)}finally{r.f()}return 0==o?null:(i.width=i.right-i.left,i.height=i.bottom-i.top,new t(i))}}]),t}();function Ta(t,e){var n,i=p(Ea);try{for(i.s();!(n=i.n()).done;){var o=n.value;t[o]=e[o]}}catch(t){i.e(t)}finally{i.f()}}function Ia(t){return!!$n(t)&&t===t.ownerDocument.body}var za=function(){function t(e,n){I(this,t),t._observerInstance||t._createObserver(),this._element=e,this._callback=n,t._addElementCallback(e,n),t._observerInstance.observe(e)}
2return S(t,[{key:"destroy",value:function(){t._deleteElementCallback(this._element,this._callback)}}],[{key:"_addElementCallback",value:function(e,n){t._elementCallbacks||(t._elementCallbacks=new Map);var i=t._elementCallbacks.get(e);i||(i=new Set,t._elementCallbacks.set(e,i)),i.add(n)}},{key:"_deleteElementCallback",value:function(e,n){var i=t._getElementCallbacks(e);i&&(i.delete(n),i.size||(t._elementCallbacks.delete(e),t._observerInstance.unobserve(e))),t._elementCallbacks&&!t._elementCallbacks.size&&(t._observerInstance=null,t._elementCallbacks=null)}},{key:"_getElementCallbacks",value:function(e){return t._elementCallbacks?t._elementCallbacks.get(e):null}},{key:"_createObserver",value:function(){var e;e="function"==typeof br.window.ResizeObserver?br.window.ResizeObserver:Ma,t._observerInstance=new e((function(e){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,r=t._getElementCallbacks(o.target);if(r){var a,s=p(r);try{for(s.s();!(a=s.n()).done;){(0,a.value)(o)}}catch(t){s.e(t)}finally{s.f()}}}}catch(t){i.e(t)}finally{i.f()}}))}}]),t}();za._observerInstance=null,za._elementCallbacks=null;var Ma=function(){function t(e){I(this,t),this._callback=e,this._elements=new Set,this._previousRects=new Map,this._periodicCheckTimeout=null}return S(t,[{key:"observe",value:function(t){this._elements.add(t),this._checkElementRectsAndExecuteCallback(),1===this._elements.size&&this._startPeriodicCheck()}},{key:"unobserve",value:function(t){this._elements.delete(t),this._previousRects.delete(t),this._elements.size||this._stopPeriodicCheck()}},{key:"_startPeriodicCheck",value:function(){var t=this;this.listenTo(br.window,"resize",(function(){t._checkElementRectsAndExecuteCallback()})),this._periodicCheckTimeout=setTimeout((function e(){t._checkElementRectsAndExecuteCallback(),t._periodicCheckTimeout=setTimeout(e,100)}),100)}},{key:"_stopPeriodicCheck",value:function(){clearTimeout(this._periodicCheckTimeout),this.stopListening(),this._previousRects.clear()}},{key:"_checkElementRectsAndExecuteCallback",value:function(){var t,e=[],n=p(this._elements);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._hasRectChanged(i)&&e.push({target:i,contentRect:this._previousRects.get(i)})}}catch(t){n.e(t)}finally{n.f()}e.length&&this._callback(e)}},{key:"_hasRectChanged",value:function(t){if(!t.ownerDocument.body.contains(t))return!1;var e=new Sa(t),n=this._previousRects.get(t),i=!n||!n.isEqual(e);return this._previousRects.set(t,e),i}}]),t}();function Ba(t){var e=t.next();return e.done?null:e.value}ke(Ma,Pr);var Pa=function(){function t(){I(this,t),this.set("isFocused",!1),this.set("focusedElement",null),this._elements=new Set,this._nextEventLoopTimeout=null}return S(t,[{key:"add",value:function(t){var e=this;if(this._elements.has(t))throw new x("focustracker-add-element-already-exist",this);this.listenTo(t,"focus",(function(){return e._focus(t)}),{useCapture:!0}),this.listenTo(t,"blur",(function(){return e._blur()}),{useCapture:!0}),this._elements.add(t)}},{key:"remove",value:function(t){t===this.focusedElement&&this._blur(t),this._elements.has(t)&&(this.stopListening(t),this._elements.delete(t))}},{key:"destroy",value:function(){this.stopListening()}},{key:"_focus",value:function(t){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=t,this.isFocused=!0}},{key:"_blur",value:function(){var t=this;clearTimeout(this._nextEventLoopTimeout),this._nextEventLoopTimeout=setTimeout((function(){t.focusedElement=null,t.isFocused=!1}),0)}}]),t}();ke(Pa,Pr),ke(Pa,he);var La=function(){function t(){I(this,t),this._listener=Object.create(Pr)}return S(t,[{key:"listenTo",value:function(t){var e=this;this._listener.listenTo(t,"keydown",(function(t,n){e._listener.fire("_keydown:"+To(n),n)}))}},{key:"set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=Io(t),o=n.priority;this._listener.listenTo(this._listener,"_keydown:"+i,(function(t,n){e(n,(function(){n.preventDefault(),n.stopPropagation(),t.stop()})),t.return=!0}),{priority:o})}},{key:"press",value:function(t){return!!this._listener.fire("_keydown:"+To(t),t)}},{key:"destroy",value:function(){this._listener.stopListening()}}]),t}(),Na=function(t){k(n,t);var e=b(n);function n(t){var i;
2return I(this,n),(i=e.call(this,t)).document.on("keydown",(function(t,e){if(i.isEnabled&&((o=e.keyCode)==Eo.arrowright||o==Eo.arrowleft||o==Eo.arrowup||o==Eo.arrowdown)){var n=new ao(i.document,"arrowKey",i.document.selection.getFirstRange());i.document.fire(n,e),n.stop.called&&t.stop()}var o})),i}return S(n,[{key:"observe",value:function(){}}]),n}(Or);function Oa(t){for(var e=t.target,n=t.viewportOffset,i=void 0===n?0:n,o=Za(e),r=o,a=null;r;){Ra(qa(r==o?e:a),(function(){return Wa(e,r)}));var s=Wa(e,r);if(Fa(r,s,i),r.parent!=r){if(a=r.frameElement,r=r.parent,!a)return}else r=null}}function Fa(t,e,n){var i=e.clone().moveBy(0,n),o=e.clone().moveBy(0,-n),r=new Sa(t).excludeScrollbarsAndBorders();if(![o,i].every((function(t){return r.contains(t)}))){var a=t.scrollX,s=t.scrollY;Va(o,r)?s-=r.top-e.top+n:ja(i,r)&&(s+=e.bottom-r.bottom+n),Ha(e,r)?a-=r.left-e.left+n:Ua(e,r)&&(a+=e.right-r.right+n),t.scrollTo(a,s)}}function Ra(t,e){for(var n,i,o=Za(t);t!=o.document.body;)i=e(),(n=new Sa(t).excludeScrollbarsAndBorders()).contains(i)||(Va(i,n)?t.scrollTop-=n.top-i.top:ja(i,n)&&(t.scrollTop+=i.bottom-n.bottom),Ha(i,n)?t.scrollLeft-=n.left-i.left:Ua(i,n)&&(t.scrollLeft+=i.right-n.right)),t=t.parentNode}function ja(t,e){return t.bottom>e.bottom}function Va(t,e){return t.top<e.top}function Ha(t,e){return t.left<e.left}function Ua(t,e){return t.right>e.right}function Za(t){return xa(t)?t.startContainer.ownerDocument.defaultView:t.ownerDocument.defaultView}function qa(t){if(xa(t)){var e=t.commonAncestorContainer;return Yo(e)&&(e=e.parentNode),e}return t.parentNode}function Wa(t,e){var n=Za(t),i=new Sa(t);if(n===e)return i;for(var o=n;o!=e;){var r=o.frameElement,a=new Sa(r).excludeScrollbarsAndBorders();i.moveBy(a.left,a.top),o=o.parent}return i}Object.assign({},{scrollViewportToShowTarget:Oa,scrollAncestorsToShowTarget:function(t){Ra(qa(t),(function(){return new Sa(t)}))}});var Ga=function(){function t(e){var n=this;I(this,t),this.document=new mo(e),this.domConverter=new Sr(this.document),this.domRoots=new Map,this.set("isRenderingInProgress",!1),this.set("hasDomSelection",!1),this._renderer=new mr(this.domConverter,this.document.selection),this._renderer.bind("isFocused","isSelecting").to(this.document),this._initialDomRootAttributes=new WeakMap,this._observers=new Map,this._ongoingChange=!1,this._postFixersInProgress=!1,this._renderingDisabled=!1,this._hasChangedSinceTheLastRendering=!1,this._writer=new Fo(this.document),this.addObserver(ea),this.addObserver(ka),this.addObserver(ba),this.addObserver(oa),this.addObserver(va),this.addObserver(ya),this.addObserver(Na),Co.isAndroid&&this.addObserver(_a),this.document.on("arrowKey",ir,{priority:"low"}),function(t){t.document.on("arrowKey",(function(e,n){return function(t,e,n){if(e.keyCode==Eo.arrowright){var i=e.domTarget.ownerDocument.defaultView.getSelection(),o=1==i.rangeCount&&i.getRangeAt(0).collapsed;if(o||e.shiftKey){var r=i.focusNode,a=i.focusOffset,s=n.domPositionToView(r,a);if(null===s)return;var l=!1,c=s.getLastMatchingPosition((function(t){return t.item.is("uiElement")&&(l=!0),!(!t.item.is("uiElement")&&!t.item.is("attributeElement"))}));if(l){var u=n.viewPositionToDom(c);o?i.collapse(u.parent,u.offset):i.extend(u.parent,u.offset)}}}}(0,n,t.domConverter)}),{priority:"low"})}(this),this.on("render",(function(){n._render(),n.document.fire("layoutChanged"),n._hasChangedSinceTheLastRendering=!1})),this.listenTo(this.document.selection,"change",(function(){n._hasChangedSinceTheLastRendering=!0})),this.listenTo(this.document,"change:isFocused",(function(){n._hasChangedSinceTheLastRendering=!0}))}return S(t,[{key:"attachDomRoot",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main",i=this.document.getRoot(n);i._name=t.tagName.toLowerCase();for(var o={},r=0,a=Array.from(t.attributes);r<a.length;r++){var s=a[r],l=s.name,c=s.value;o[l]=c,"class"===l?this._writer.addClass(c.split(" "),i):this._writer.setAttribute(l,c,i)}this._initialDomRootAttributes.set(t,o);var u=function(){e._writer.setAttribute("contenteditable",!i.isReadOnly,i),i.isReadOnly?e._writer.addClass("ck-read-only",i):e._writer.removeClass("ck-read-only",i)};
2u(),this.domRoots.set(n,t),this.domConverter.bindElements(t,i),this._renderer.markToSync("children",i),this._renderer.markToSync("attributes",i),this._renderer.domDocuments.add(t.ownerDocument),i.on("change:children",(function(t,n){return e._renderer.markToSync("children",n)})),i.on("change:attributes",(function(t,n){return e._renderer.markToSync("attributes",n)})),i.on("change:text",(function(t,n){return e._renderer.markToSync("text",n)})),i.on("change:isReadOnly",(function(){return e.change(u)})),i.on("change",(function(){e._hasChangedSinceTheLastRendering=!0}));var d,h=p(this._observers.values());try{for(h.s();!(d=h.n()).done;){d.value.observe(t,n)}}catch(t){h.e(t)}finally{h.f()}}},{key:"detachDomRoot",value:function(t){var e=this.domRoots.get(t);Array.from(e.attributes).forEach((function(t){var n=t.name;return e.removeAttribute(n)}));var n=this._initialDomRootAttributes.get(e);for(var i in n)e.setAttribute(i,n[i]);this.domRoots.delete(t),this.domConverter.unbindDomElement(e)}},{key:"getDomRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.domRoots.get(t)}},{key:"addObserver",value:function(t){var e=this._observers.get(t);if(e)return e;e=new t(this),this._observers.set(t,e);var n,i=p(this.domRoots);try{for(i.s();!(n=i.n()).done;){var o=f(n.value,2),r=o[0],a=o[1];e.observe(a,r)}}catch(t){i.e(t)}finally{i.f()}return e.enable(),e}},{key:"getObserver",value:function(t){return this._observers.get(t)}},{key:"disableObservers",value:function(){var t,e=p(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.disable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"enableObservers",value:function(){var t,e=p(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.enable()}}catch(t){e.e(t)}finally{e.f()}}},{key:"scrollToTheSelection",value:function(){var t=this.document.selection.getFirstRange();t&&Oa({target:this.domConverter.viewRangeToDom(t),viewportOffset:20})}},{key:"focus",value:function(){if(!this.document.isFocused){var t=this.document.selection.editableElement;t&&(this.domConverter.focus(t),this.forceRender())}}},{key:"change",value:function(t){if(this.isRenderingInProgress||this._postFixersInProgress)throw new x("cannot-change-view-tree",this);try{if(this._ongoingChange)return t(this._writer);this._ongoingChange=!0;var e=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")),e}catch(t){x.rethrowUnexpectedError(t,this)}}},{key:"forceRender",value:function(){this._hasChangedSinceTheLastRendering=!0,this.change((function(){}))}},{key:"destroy",value:function(){var t,e=p(this._observers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}this.document.destroy(),this.stopListening()}},{key:"createPositionAt",value:function(t,e){return to._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return to._createAfter(t)}},{key:"createPositionBefore",value:function(t){return to._createBefore(t)}},{key:"createRange",value:function(t,e){return new eo(t,e)}},{key:"createRangeOn",value:function(t){return eo._createOn(t)}},{key:"createRangeIn",value:function(t){return eo._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new oo(t,e,n)}},{key:"_disableRendering",value:function(t){this._renderingDisabled=t,0==t&&this.change((function(){}))}},{key:"_render",value:function(){this.isRenderingInProgress=!0,this.disableObservers(),this._renderer.render(),this.enableObservers(),this.isRenderingInProgress=!1}}]),t}();ke(Ga,he);var $a=function(){function t(e){I(this,t),this.parent=null,this._attrs=hi(e)}return S(t,[{key:"index",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildIndex(this)))throw new x("model-node-not-found-in-parent",this);return t}},{key:"startOffset",get:function(){var t;if(!this.parent)return null;if(null===(t=this.parent.getChildStartOffset(this)))throw new x("model-node-not-found-in-parent",this);return t}},{key:"offsetSize",get:function(){return 1}},{key:"endOffset",get:function(){return this.parent?this.startOffset+this.offsetSize:null}},{key:"nextSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t+1)||null}},{key:"previousSibling",get:function(){var t=this.index;return null!==t&&this.parent.getChild(t-1)||null}},{key:"root",get:function(){for(var t=this;t.parent;)t=t.parent;return t}},{key:"isAttached",value:function(){return this.root.is("rootElement")}},{key:"getPath",value:function(){for(var t=[],e=this;e.parent;)t.unshift(e.startOffset),e=e.parent;return t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"getCommonAncestor",value:function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.getAncestors(e),i=t.getAncestors(e),o=0;n[o]==i[o]&&n[o];)o++;return 0===o?null:n[o-1]}},{key:"isBefore",value:function(t){if(this==t)return!1;if(this.root!==t.root)return!1;var e=this.getPath(),n=t.getPath(),i=si(e,n);switch(i){case"prefix":return!0;case"extension":return!1;default:return e[i]<n[i]}}},{key:"isAfter",value:function(t){return this!=t&&this.root===t.root&&!this.isBefore(t)}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"toJSON",value:function(){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:"is",value:function(t){return"node"===t||"model:node"===t}},{key:"_clone",value:function(){return new t(this._attrs)}},{key:"_remove",value:function(){this.parent._removeChildren(this.index)}},{key:"_setAttribute",value:function(t,e){this._attrs.set(t,e)}},{key:"_setAttributesTo",value:function(t){this._attrs=hi(t)}},{key:"_removeAttribute",value:function(t){return this._attrs.delete(t)}},{key:"_clearAttributes",value:function(){this._attrs.clear()}}]),t}(),Ya=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,i))._data=t||"",o}return S(n,[{key:"offsetSize",get:function(){return this.data.length}},{key:"data",get:function(){return this._data}},{key:"is",value:function(t){return"$text"===t||"model:$text"===t||"text"===t||"model:text"===t||"node"===t||"model:node"===t}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.data=this.data,t}},{key:"_clone",value:function(){return new n(this.data,this.getAttributes())}}],[{key:"fromJSON",value:function(t){return new n(t.data,t.attributes)}}]),n}($a),Ka=function(){function t(e,n,i){if(I(this,t),this.textNode=e,n<0||n>e.offsetSize)throw new x("model-textproxy-wrong-offsetintext",this);if(i<0||n+i>e.offsetSize)throw new x("model-textproxy-wrong-length",this);this.data=e.data.substring(n,n+i),this.offsetInText=n}
2return S(t,[{key:"startOffset",get:function(){return null!==this.textNode.startOffset?this.textNode.startOffset+this.offsetInText:null}},{key:"offsetSize",get:function(){return this.data.length}},{key:"endOffset",get:function(){return null!==this.startOffset?this.startOffset+this.offsetSize:null}},{key:"isPartial",get:function(){return this.offsetSize!==this.textNode.offsetSize}},{key:"parent",get:function(){return this.textNode.parent}},{key:"root",get:function(){return this.textNode.root}},{key:"is",value:function(t){return"$textProxy"===t||"model:$textProxy"===t||"textProxy"===t||"model:textProxy"===t}},{key:"getPath",value:function(){var t=this.textNode.getPath();return t.length>0&&(t[t.length-1]+=this.offsetInText),t}},{key:"getAncestors",value:function(){for(var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeSelf:!1,parentFirst:!1},e=[],n=t.includeSelf?this:this.parent;n;)e[t.parentFirst?"push":"unshift"](n),n=n.parent;return e}},{key:"hasAttribute",value:function(t){return this.textNode.hasAttribute(t)}},{key:"getAttribute",value:function(t){return this.textNode.getAttribute(t)}},{key:"getAttributes",value:function(){return this.textNode.getAttributes()}},{key:"getAttributeKeys",value:function(){return this.textNode.getAttributeKeys()}}]),t}(),Qa=function(t){function e(t){I(this,e),this._nodes=[],t&&this._insertNodes(0,t)}return S(e,[{key:Symbol.iterator,value:function(){return this._nodes[Symbol.iterator]()}},{key:"length",get:function(){return this._nodes.length}},{key:"maxOffset",get:function(){return this._nodes.reduce((function(t,e){return t+e.offsetSize}),0)}},{key:"getNode",value:function(t){return this._nodes[t]||null}},{key:"getNodeIndex",value:function(t){var e=this._nodes.indexOf(t);return-1==e?null:e}},{key:"getNodeStartOffset",value:function(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(t){if(t==this._nodes.length)return this.maxOffset;var e=this._nodes[t];if(!e)throw new x("model-nodelist-index-out-of-bounds",this);return this.getNodeStartOffset(e)}},{key:"offsetToIndex",value:function(t){var e,n=0,i=p(this._nodes);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(t>=n&&t<n+o.offsetSize)return this.getNodeIndex(o);n+=o.offsetSize}}catch(t){i.e(t)}finally{i.f()}if(n!=t)throw new x("model-nodelist-offset-out-of-bounds",this,{offset:t,nodeList:this});return this.length}},{key:"_insertNodes",value:function(t,e){var n,i,o=p(e);try{for(o.s();!(i=o.n()).done;){if(!(i.value instanceof $a))throw new x("model-nodelist-insertnodes-not-node",this)}}catch(t){o.e(t)}finally{o.f()}(n=this._nodes).splice.apply(n,[t,0].concat(m(e)))}},{key:"_removeNodes",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this._nodes.splice(t,e)}},{key:"toJSON",value:function(){return this._nodes.map((function(t){return t.toJSON()}))}}]),e}(),Ja=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,i)).name=t,r._children=new Qa,o&&r._insertChild(0,o),r}return S(n,[{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"is",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e?e===this.name&&("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"getNodeByPath",value:function(t){var e,n=this,i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;n=n.getChild(n.offsetToIndex(o))}}catch(t){i.e(t)}finally{i.f()}return n}}
2,{key:"findAncestor",value:function(t){for(var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{includeSelf:!1}).includeSelf?this:this.parent;e;){if(e.name===t)return e;e=e.parent}return null}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);if(t.name=this.name,this._children.length>0){t.children=[];var e,i=p(this._children);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.children.push(o.toJSON())}}catch(t){i.e(t)}finally{i.f()}}return t}},{key:"_clone",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0]?Array.from(this._children).map((function(t){return t._clone(!0)})):null;return new n(this.name,this.getAttributes(),t)}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,i=function(t){return"string"==typeof t?[new Ya(t)]:(Jn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Ya(t):t instanceof Ka?new Ya(t.data,t.getAttributes()):t})))}(e),o=p(i);try{for(o.s();!(n=o.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this}}catch(t){o.e(t)}finally{o.f()}this._children._insertNodes(t,i)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(t,n),o=p(i);try{for(o.s();!(e=o.n()).done;){e.value.parent=null}}catch(t){o.e(t)}finally{o.f()}return i}}],[{key:"fromJSON",value:function(t){var e=null;if(t.children){e=[];var i,o=p(t.children);try{for(o.s();!(i=o.n()).done;){var r=i.value;r.name?e.push(n.fromJSON(r)):e.push(Ya.fromJSON(r))}}catch(t){o.e(t)}finally{o.f()}}return new n(t.name,t.attributes,e)}}]),n}($a),Xa=function(t){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(I(this,e),!t.boundaries&&!t.startPosition)throw new x("model-tree-walker-no-start-position",null);var n=t.direction||"forward";if("forward"!=n&&"backward"!=n)throw new x("model-tree-walker-unknown-direction",t,{direction:n});this.direction=n,this.boundaries=t.boundaries||null,t.startPosition?this.position=t.startPosition.clone():this.position=es._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}return S(e,[{key:Symbol.iterator,value:function(){return this}},{key:"skip",value:function(t){var e,n,i,o;do{var r;i=this.position,o=this._visitedParent,e=(r=this.next()).done,n=r.value}while(!e&&t(n));e||(this.position=i,this._visitedParent=o)}},{key:"next",value:function(){return"forward"==this.direction?this._next():this._previous()}},{key:"_next",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&e.offset===n.maxOffset)return{done:!0};if(n===this._boundaryEndParent&&e.offset==this.boundaries.end.offset)return{done:!0};var i=e.parent,o=ns(e,i),r=o||is(e,i,o);if(r instanceof Ja)return this.shallow?e.offset++:(e.path.push(0),this._visitedParent=r),this.position=e,ts("elementStart",r,t,e,1);if(r instanceof Ya){var a;if(this.singleCharacters)a=1;else{var s=r.endOffset;this._boundaryEndParent==n&&this.boundaries.end.offset<s&&(s=this.boundaries.end.offset),a=s-e.offset}var l=e.offset-r.startOffset,c=new Ka(r,l,a);return e.offset+=a,this.position=e,ts("text",c,t,e,a)}return e.path.pop(),e.offset++,this.position=e,this._visitedParent=n.parent,this.ignoreElementEnd?this._next():ts("elementEnd",n,t,e)}},{key:"_previous",value:function(){var t=this.position,e=this.position.clone(),n=this._visitedParent;if(null===n.parent&&0===e.offset)return{done:!0};if(n==this._boundaryStartParent&&e.offset==this.boundaries.start.offset)return{done:!0};var i=e.parent,o=ns(e,i),r=o||os(e,i,o);if(r instanceof Ja)return e.offset--,this.shallow?(this.position=e,ts("elementStart",r,t,e,1)):(e.path.push(r.maxOffset),this.position=e,this._visitedParent=r,this.ignoreElementEnd?this._previous():ts("elementEnd",r,t,e));if(r instanceof Ya){var a;if(this.singleCharacters)a=1;else{var s=r.startOffset;this._boundaryStartParent==n&&this.boundaries.start.offset>s&&(s=this.boundaries.start.offset),a=e.offset-s}var l=e.offset-r.startOffset,c=new Ka(r,l-a,a);return e.offset-=a,this.position=e,ts("text",c,t,e,a)}return e.path.pop(),this.position=e,this._visitedParent=n.parent,ts("elementStart",n,t,e,1)}}]),e}();function ts(t,e,n,i,o){return{done:!1,value:{type:t,item:e,previousPosition:n,nextPosition:i,length:o}}}var es=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(I(this,t),!e.is("element")&&!e.is("documentFragment"))throw new x("model-position-root-invalid",e);if(!(n instanceof Array)||0===n.length)throw new x("model-position-path-incorrect-format",e,{path:n});e.is("rootElement")?n=n.slice():(n=[].concat(m(e.getPath()),m(n)),e=e.root),this.root=e,this.path=n,this.stickiness=i}
2return S(t,[{key:"offset",get:function(){return this.path[this.path.length-1]},set:function(t){this.path[this.path.length-1]=t}},{key:"parent",get:function(){for(var t=this.root,e=0;e<this.path.length-1;e++)if(!(t=t.getChild(t.offsetToIndex(this.path[e]))))throw new x("model-position-path-incorrect",this,{position:this});if(t.is("$text"))throw new x("model-position-path-incorrect",this,{position:this});return t}},{key:"index",get:function(){return this.parent.offsetToIndex(this.offset)}},{key:"textNode",get:function(){return ns(this,this.parent)}},{key:"nodeAfter",get:function(){var t=this.parent;return is(this,t,ns(this,t))}},{key:"nodeBefore",get:function(){var t=this.parent;return os(this,t,ns(this,t))}},{key:"isAtStart",get:function(){return 0===this.offset}},{key:"isAtEnd",get:function(){return this.offset==this.parent.maxOffset}},{key:"compareWith",value:function(t){if(this.root!=t.root)return"different";var e=si(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(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};e.startPosition=this;var n=new Xa(e);return n.skip(t),n.position}},{key:"getParentPath",value:function(){return this.path.slice(0,-1)}},{key:"getAncestors",value:function(){var t=this.parent;return t.is("documentFragment")?[t]:t.getAncestors({includeSelf:!0})}},{key:"findAncestor",value:function(t){var e=this.parent;return e.is("element")?e.findAncestor(t,{includeSelf:!0}):null}},{key:"getCommonPath",value:function(t){if(this.root!=t.root)return[];var e=si(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(t){for(var e=this.getAncestors(),n=t.getAncestors(),i=0;e[i]==n[i]&&e[i];)i++;return 0===i?null:e[i-1]}},{key:"getShiftedBy",value:function(t){var e=this.clone(),n=e.offset+t;return e.offset=n<0?0:n,e}},{key:"isAfter",value:function(t){return"after"==this.compareWith(t)}},{key:"isBefore",value:function(t){return"before"==this.compareWith(t)}},{key:"isEqual",value:function(t){return"same"==this.compareWith(t)}},{key:"isTouching",value:function(e){var n=null,i=null;switch(this.compareWith(e)){case"same":return!0;case"before":n=t._createAt(this),i=t._createAt(e);break;case"after":n=t._createAt(e),i=t._createAt(this);break;default:return!1}for(var o=n.parent;n.path.length+i.path.length;){if(n.isEqual(i))return!0;if(n.path.length>i.path.length){if(n.offset!==o.maxOffset)return!1;n.path=n.path.slice(0,-1),o=o.parent,n.offset++}else{if(0!==i.offset)return!1;i.path=i.path.slice(0,-1)}}}},{key:"is",value:function(t){return"position"===t||"model:position"===t}},{key:"hasSameParentAs",value:function(t){return this.root===t.root&&"same"==si(this.getParentPath(),t.getParentPath())}},{key:"getTransformedByOperation",value:function(e){var n;switch(e.type){case"insert":n=this._getTransformedByInsertOperation(e);break;case"move":case"remove":case"reinsert":n=this._getTransformedByMoveOperation(e);break;case"split":n=this._getTransformedBySplitOperation(e);break;case"merge":n=this._getTransformedByMergeOperation(e);break;default:n=t._createAt(this)}return n}},{key:"_getTransformedByInsertOperation",value:function(t){return this._getTransformedByInsertion(t.position,t.howMany)}},{key:"_getTransformedByMoveOperation",value:function(t){return this._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany)}},{key:"_getTransformedBySplitOperation",value:function(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(e){var n,i=e.movedRange;return i.containsPosition(this)||i.start.isEqual(this)?(n=this._getCombined(e.sourcePosition,e.targetPosition),e.sourcePosition.isBefore(e.targetPosition)&&(n=n._getTransformedByDeletion(e.deletionPosition,1))):n=this.isEqual(e.deletionPosition)?t._createAt(e.deletionPosition):this._getTransformedByMove(e.deletionPosition,e.graveyardPosition,1),n}},{key:"_getTransformedByDeletion",value:function(e,n){var i=t._createAt(this);if(this.root!=e.root)return i;if("same"==si(e.getParentPath(),this.getParentPath())){if(e.offset<this.offset){if(e.offset+n>this.offset)return null;i.offset-=n}}else if("prefix"==si(e.getParentPath(),this.getParentPath())){var o=e.path.length-1;if(e.offset<=this.path[o]){if(e.offset+n>this.path[o])return null;i.path[o]-=n}}return i}},{key:"_getTransformedByInsertion",value:function(e,n){var i=t._createAt(this);if(this.root!=e.root)return i;if("same"==si(e.getParentPath(),this.getParentPath()))(e.offset<this.offset||e.offset==this.offset&&"toPrevious"!=this.stickiness)&&(i.offset+=n);else if("prefix"==si(e.getParentPath(),this.getParentPath())){var o=e.path.length-1;e.offset<=this.path[o]&&(i.path[o]+=n)}return i}},{key:"_getTransformedByMove",value:function(e,n,i){if(n=n._getTransformedByDeletion(e,i),e.isEqual(n))return t._createAt(this);var o=this._getTransformedByDeletion(e,i);return null===o||e.isEqual(this)&&"toNext"==this.stickiness||e.getShiftedBy(i).isEqual(this)&&"toPrevious"==this.stickiness?this._getCombined(e,n):o._getTransformedByInsertion(n,i)}},{key:"_getCombined",value:function(e,n){var i=e.path.length-1,o=t._createAt(n);return o.stickiness=this.stickiness,o.offset=o.offset+this.path[i]-e.offset,o.path=[].concat(m(o.path),m(this.path.slice(i+1))),o}},{key:"toJSON",value:function(){return{root:this.root.toJSON(),path:Array.from(this.path),stickiness:this.stickiness}}},{key:"clone",value:function(){return new this.constructor(this.root,this.path,this.stickiness)}}],[{key:"_createAt",value:function(e,n){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(e instanceof t)return new t(e.root,e.path,e.stickiness);var o=e;if("end"==n)n=o.maxOffset;else{if("before"==n)return this._createBefore(o,i);if("after"==n)return this._createAfter(o,i);if(0!==n&&!n)throw new x("model-createpositionat-offset-required",[this,e])}if(!o.is("element")&&!o.is("documentFragment"))throw new x("model-position-parent-incorrect",[this,e]);var r=o.getPath();return r.push(n),new this(o.root,r,i)}},{key:"_createAfter",value:function(t,e){if(!t.parent)throw new x("model-position-after-root",[this,t],{root:t});return this._createAt(t.parent,t.endOffset,e)}},{key:"_createBefore",value:function(t,e){if(!t.parent)throw new x("model-position-before-root",t,{root:t});return this._createAt(t.parent,t.startOffset,e)}},{key:"fromJSON",value:function(e,n){if("$graveyard"===e.root){var i=new t(n.graveyard,e.path);return i.stickiness=e.stickiness,i}if(!n.getRoot(e.root))throw new x("model-position-fromjson-no-root",n,{rootName:e.root});return new t(n.getRoot(e.root),e.path,e.stickiness)}}]),t}();function ns(t,e){var n=e.getChild(e.offsetToIndex(t.offset));return n&&n.is("$text")&&n.startOffset<t.offset?n:null}function is(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset))}function os(t,e,n){return null!==n?null:e.getChild(e.offsetToIndex(t.offset)-1)}var rs=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;I(this,e),this.start=es._createAt(t),this.end=n?es._createAt(n):es._createAt(t),this.start.stickiness=this.isCollapsed?"toNone":"toNext",this.end.stickiness=this.isCollapsed?"toNone":"toPrevious"}return S(e,[{key:Symbol.iterator,value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(new Xa({boundaries:this,ignoreElementEnd:!0}),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"isCollapsed",get:function(){return this.start.isEqual(this.end)}},{key:"isFlat",get:function(){return"same"==si(this.start.getParentPath(),this.end.getParentPath())}},{key:"root",get:function(){return this.start.root}},{key:"containsPosition",value:function(t){return t.isAfter(this.start)&&t.isBefore(this.end)}},{key:"containsRange",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];t.isCollapsed&&(e=!1);var n=this.containsPosition(t.start)||e&&this.start.isEqual(t.start),i=this.containsPosition(t.end)||e&&this.end.isEqual(t.end
2);return n&&i}},{key:"containsItem",value:function(t){var e=es._createBefore(t);return this.containsPosition(e)||this.start.isEqual(e)}},{key:"is",value:function(t){return"range"===t||"model:range"===t}},{key:"isEqual",value:function(t){return this.start.isEqual(t.start)&&this.end.isEqual(t.end)}},{key:"isIntersecting",value:function(t){return this.start.isBefore(t.end)&&this.end.isAfter(t.start)}},{key:"getDifference",value:function(t){var n=[];return this.isIntersecting(t)?(this.containsPosition(t.start)&&n.push(new e(this.start,t.start)),this.containsPosition(t.end)&&n.push(new e(t.end,this.end))):n.push(new e(this.start,this.end)),n}},{key:"getIntersection",value:function(t){if(this.isIntersecting(t)){var n=this.start,i=this.end;return this.containsPosition(t.start)&&(n=t.start),this.containsPosition(t.end)&&(i=t.end),new e(n,i)}return null}},{key:"getJoined",value:function(t){var n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=this.isIntersecting(t);if(i||(i=this.start.isBefore(t.start)?n?this.end.isTouching(t.start):this.end.isEqual(t.start):n?t.end.isTouching(this.start):t.end.isEqual(this.start)),!i)return null;var o=this.start,r=this.end;return t.start.isBefore(o)&&(o=t.start),t.end.isAfter(r)&&(r=t.end),new e(o,r)}},{key:"getMinimalFlatRanges",value:function(){for(var t=[],n=this.start.getCommonPath(this.end).length,i=es._createAt(this.start),o=i.parent;i.path.length>n+1;){var r=o.maxOffset-i.offset;0!==r&&t.push(new e(i,i.getShiftedBy(r))),i.path=i.path.slice(0,-1),i.offset++,o=o.parent}for(;i.path.length<=this.end.path.length;){var a=this.end.path[i.path.length-1],s=a-i.offset;0!==s&&t.push(new e(i,i.getShiftedBy(s))),i.offset=a,i.path.push(0)}return t}},{key:"getWalker",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return t.boundaries=this,new Xa(t)}},{key:"getItems",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h().mark((function n(){var i,o,r,a;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:e.boundaries=t,e.ignoreElementEnd=!0,i=new Xa(e),o=p(i),n.prev=3,o.s();case 5:if((r=o.n()).done){n.next=11;break}return a=r.value,n.next=9,a.item;case 9:n.next=5;break;case 11:n.next=16;break;case 13:n.prev=13,n.t0=n.catch(3),o.e(n.t0);case 16:return n.prev=16,o.f(),n.finish(16);case 19:case"end":return n.stop()}}),n,null,[[3,13,16,19]])}))()}},{key:"getPositions",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return h().mark((function n(){var i,o,r,a;return h().wrap((function(n){for(;;)switch(n.prev=n.next){case 0:return e.boundaries=t,i=new Xa(e),n.next=4,i.position;case 4:o=p(i),n.prev=5,o.s();case 7:if((r=o.n()).done){n.next=13;break}return a=r.value,n.next=11,a.nextPosition;case 11:n.next=7;break;case 13:n.next=18;break;case 15:n.prev=15,n.t0=n.catch(5),o.e(n.t0);case 18:return n.prev=18,o.f(),n.finish(18);case 21:case"end":return n.stop()}}),n,null,[[5,15,18,21]])}))()}},{key:"getTransformedByOperation",value:function(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 e(this.start,this.end)]}},{key:"getTransformedByOperations",value:function(t){var n,i=[new e(this.start,this.end)],o=p(t);try{for(o.s();!(n=o.n()).done;)for(var r=n.value,a=0;a<i.length;a++){var s=i[a].getTransformedByOperation(r);i.splice.apply(i,[a,1].concat(m(s))),a+=s.length-1}}catch(t){o.e(t)}finally{o.f()}for(var l=0;l<i.length;l++)for(var c=i[l],u=l+1;u<i.length;u++){var d=i[u];(c.containsRange(d)||d.containsRange(c)||c.isEqual(d))&&i.splice(u,1)}return i}},{key:"getCommonAncestor",value:function(){return this.start.getCommonAncestor(this.end)}},{key:"getContainedElement",value:function(){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(){return{start:this.start.toJSON(),end:this.end.toJSON()}}},{key:"clone",value:function(){return new this.constructor(this.start,this.end)}},{key:"_getTransformedByInsertOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return this._getTransformedByInsertion(t.position,t.howMany,e)}},{key:"_getTransformedByMoveOperation",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1],n=t.sourcePosition,i=t.howMany,o=t.targetPosition;return this._getTransformedByMove(n,o,i,e)}},{key:"_getTransformedBySplitOperation",value:function(t){var n=this.start._getTransformedBySplitOperation(t),i=this.end._getTransformedBySplitOperation(t);return this.end.isEqual(t.insertionPosition)&&(i=this.end.getShiftedBy(1)),n.root!=i.root&&(i=this.end.getShiftedBy(-1)),new e(n,i)}},{key:"_getTransformedByMergeOperation",value:function(t){if(this.start.isEqual(t.targetPosition)&&this.end.isEqual(t.deletionPosition))return new e(this.start);var n=this.start._getTransformedByMergeOperation(t),i=this.end._getTransformedByMergeOperation(t);return n.root!=i.root&&(i=this.end.getShiftedBy(-1)),n.isAfter(i)?(t.sourcePosition.isBefore(t.targetPosition)?(n=es._createAt(i)).offset=0:(t.deletionPosition.isEqual(n)||(i=t.deletionPosition),n=t.targetPosition),new e(n,i)):new e(n,i)}},{key:"_getTransformedByInsertion",value:function(t,n){if(arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&this.containsPosition(t))return[new e(this.start,t),new e(t.getShiftedBy(n),this.end._getTransformedByInsertion(t,n))];var i=new e(this.start,this.end);return i.start=i.start._getTransformedByInsertion(t,n),i.end=i.end._getTransformedByInsertion(t,n),[i]}},{key:"_getTransformedByMove",value:function(t,n,i){var o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(this.isCollapsed)return[new e(this.start._getTransformedByMove(t,n,i))];var r,a=e._createFromPositionAndShift(t,i),s=n._getTransformedByDeletion(t,i);if(this.containsPosition(n)&&!o&&(a.containsPosition(this.start)||a.containsPosition(this.end)))return[new e(this.start._getTransformedByMove(t,n,i),this.end._getTransformedByMove(t,n,i))];var l=this.getDifference(a),c=null,u=this.getIntersection(a);if(1==l.length?c=new e(l[0].start._getTransformedByDeletion(t,i),l[0].end._getTransformedByDeletion(t,i)):2==l.length&&(c=new e(this.start,this.end._getTransformedByDeletion(t,i))),r=c?c._getTransformedByInsertion(s,i,null!==u||o):[],u){var d=new e(u.start._getCombined(a.start,s),u.end._getCombined(a.start,s));2==r.length?r.splice(1,0,d):r.push(d)}return r}},{key:"_getTransformedByDeletion",value:function(t,n){var i=this.start._getTransformedByDeletion(t,n),o=this.end._getTransformedByDeletion(t,n);return null==i&&null==o?null:(null==i&&(i=t),null==o&&(o=t),new e(i,o))}}],[{key:"_createFromPositionAndShift",value:function(t,e){var n=t,i=t.getShiftedBy(e);return e>0?new this(n,i):new this(i,n)}},{key:"_createIn",value:function(t){return new this(es._createAt(t,0),es._createAt(t,t.maxOffset))}},{key:"_createOn",value:function(t){return this._createFromPositionAndShift(es._createBefore(t),t.offsetSize)}},{key:"_createFromRanges",value:function(t){if(0===t.length)throw new x("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),i=new this(e.start,e.end);if(n>0)for(var o=n-1;t[o].end.isEqual(i.start);o++)i.start=es._createAt(t[o].start);for(var r=n+1;r<t.length&&t[r].start.isEqual(i.end);r++)i.end=es._createAt(t[r].end);return i}},{key:"fromJSON",value:function(t,e){return new this(es.fromJSON(t.start,e),es.fromJSON(t.end,e))}}]),e}(),as=function(){function t(){var e=this;I(this,t),this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._deferredBindingRemovals=new Map,this._unboundMarkerNames=new Set,this.on("modelToViewPosition",(function(t,n){if(!n.viewPosition){var i=e._modelToViewMapping.get(n.modelPosition.parent);if(!i)throw new x("mapping-view-position-parent-not-found",e,{modelPosition:n.modelPosition});n.viewPosition=e.findPositionIn(i,n.modelPosition.offset)}}),{priority:"low"}),this.on("viewToModelPosition",(function(t,n){if(!n.modelPosition){var i=e.findMappedViewAncestor(n.viewPosition),o=e._viewToModelMapping.get(i),r=e._toModelOff
2set(n.viewPosition.parent,n.viewPosition.offset,i);n.modelPosition=es._createAt(o,r)}}),{priority:"low"})}return S(t,[{key:"bindElements",value:function(t,e){this._modelToViewMapping.set(t,e),this._viewToModelMapping.set(e,t)}},{key:"unbindViewElement",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toModelElement(t);if(this._elementToMarkerNames.has(t)){var i,o=p(this._elementToMarkerNames.get(t));try{for(o.s();!(i=o.n()).done;){var r=i.value;this._unboundMarkerNames.add(r)}}catch(t){o.e(t)}finally{o.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(t){var e=this.toViewElement(t);this._modelToViewMapping.delete(t),this._viewToModelMapping.get(e)==t&&this._viewToModelMapping.delete(e)}},{key:"bindElementToMarker",value:function(t,e){var n=this._markerNameToElements.get(e)||new Set;n.add(t);var i=this._elementToMarkerNames.get(t)||new Set;i.add(e),this._markerNameToElements.set(e,n),this._elementToMarkerNames.set(t,i)}},{key:"unbindElementFromMarkerName",value:function(t,e){var n=this._markerNameToElements.get(e);n&&(n.delete(t),0==n.size&&this._markerNameToElements.delete(e));var i=this._elementToMarkerNames.get(t);i&&(i.delete(e),0==i.size&&this._elementToMarkerNames.delete(t))}},{key:"flushUnboundMarkerNames",value:function(){var t=Array.from(this._unboundMarkerNames);return this._unboundMarkerNames.clear(),t}},{key:"flushDeferredBindings",value:function(){var t,e=p(this._deferredBindingRemovals);try{for(e.s();!(t=e.n()).done;){var n=f(t.value,2),i=n[0],o=n[1];i.root==o&&this.unbindViewElement(i)}}catch(t){e.e(t)}finally{e.f()}this._deferredBindingRemovals=new Map}},{key:"clearBindings",value:function(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._markerNameToElements=new Map,this._elementToMarkerNames=new Map,this._unboundMarkerNames=new Set,this._deferredBindingRemovals=new Map}},{key:"toModelElement",value:function(t){return this._viewToModelMapping.get(t)}},{key:"toViewElement",value:function(t){return this._modelToViewMapping.get(t)}},{key:"toModelRange",value:function(t){return new rs(this.toModelPosition(t.start),this.toModelPosition(t.end))}},{key:"toViewRange",value:function(t){return new eo(this.toViewPosition(t.start),this.toViewPosition(t.end))}},{key:"toModelPosition",value:function(t){var e={viewPosition:t,mapper:this};return this.fire("viewToModelPosition",e),e.modelPosition}},{key:"toViewPosition",value:function(t){var e={modelPosition:t,mapper:this,isPhantom:(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{isPhantom:!1}).isPhantom};return this.fire("modelToViewPosition",e),e.viewPosition}},{key:"markerNameToElements",value:function(t){var e=this._markerNameToElements.get(t);if(!e)return null;var n,i=new Set,o=p(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.is("attributeElement")){var a,s=p(r.getElementsWithSameId());try{for(s.s();!(a=s.n()).done;){var l=a.value;i.add(l)}}catch(t){s.e(t)}finally{s.f()}}else i.add(r)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"registerViewToModelLength",value:function(t,e){this._viewToModelLengthCallbacks.set(t,e)}},{key:"findMappedViewAncestor",value:function(t){for(var e=t.parent;!this._viewToModelMapping.has(e);)e=e.parent;return e}},{key:"_toModelOffset",value:function(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;for(var i=0,o=0;o<e;o++)i+=this.getModelLength(t.getChild(o));return i}},{key:"getModelLength",value:function(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 e,n=0,i=p(t.getChildren());try{for(i.s();!(e=i.n()).done;){var o=e.value;n+=this.getModelLength(o)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"findPositionIn",value:function(t,e){var n,i=0,o=0,r=0;if(t.is("$text"))return new to(t,e);for(;o<e;)n=t.getChild(r),o+=i=this.getModelLength(n),r++;return o==e?this._moveViewPositionToTextNode(new to(t,r)):this.findPositionIn(n,e-(o-i))}},{key:"_moveViewPositionToTextNode",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;return e instanceof ui?new to(e,e.data.length):n instanceof ui?new to(n,0):t}}]),t}();ke(as,N);var ss=function(){function t(){I(this,t),this._consumable=new Map,this._textProxyRegistry=new Map}
2return S(t,[{key:"add",value:function(t,e){e=ls(e),t instanceof Ka&&(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(t,e){return e=ls(e),t instanceof Ka&&(t=this._getSymbolForTextProxy(t)),!!this.test(t,e)&&(this._consumable.get(t).set(e,!1),!0)}},{key:"test",value:function(t,e){e=ls(e),t instanceof Ka&&(t=this._getSymbolForTextProxy(t));var n=this._consumable.get(t);if(void 0===n)return null;var i=n.get(e);return void 0===i?null:i}},{key:"revert",value:function(t,e){e=ls(e),t instanceof Ka&&(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(t){var e,n=[],i=p(this._consumable);try{for(i.s();!(e=i.n()).done;){var o,r=f(e.value,2),a=r[0],s=p(r[1]);try{for(s.s();!(o=s.n()).done;){var l=f(o.value,2),c=l[0],u=l[1],d=c.split(":")[0];u&&t==d&&n.push({event:c,item:a.name||a.description})}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}if(n.length)throw new x("conversion-model-consumable-not-consumed",null,{items:n})}},{key:"_getSymbolForTextProxy",value:function(t){var e=null,n=this._textProxyRegistry.get(t.startOffset);if(n){var i=n.get(t.endOffset);i&&(e=i.get(t.parent))}return e||(e=this._addSymbolForTextProxy(t)),e}},{key:"_addSymbolForTextProxy",value:function(t){var e,n,i=t.startOffset,o=t.endOffset,r=t.parent,a=Symbol("$textProxy:"+t.data);return(e=this._textProxyRegistry.get(i))||(e=new Map,this._textProxyRegistry.set(i,e)),(n=e.get(o))||(n=new Map,e.set(o,n)),n.set(r,a),a}}]),t}();function ls(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 cs=function(){function t(e){I(this,t),this._conversionApi=c({dispatcher:this},e),this._firedEventsMap=new WeakMap}return S(t,[{key:"convertChanges",value:function(t,e,n){var i,o=this._createConversionApi(n,t.getRefreshedItems()),r=p(t.getMarkersToRemove());try{for(r.s();!(i=r.n()).done;){var a=i.value;this._convertMarkerRemove(a.name,a.range,o)}}catch(t){r.e(t)}finally{r.f()}var s,l=p(this._reduceChanges(t.getChanges()));try{for(l.s();!(s=l.n()).done;){var c=s.value;"insert"===c.type?this._convertInsert(rs._createFromPositionAndShift(c.position,c.length),o):"reinsert"===c.type?this._convertReinsert(rs._createFromPositionAndShift(c.position,c.length),o):"remove"===c.type?this._convertRemove(c.position,c.length,c.name,o):this._convertAttribute(c.range,c.attributeKey,c.attributeOldValue,c.attributeNewValue,o)}}catch(t){l.e(t)}finally{l.f()}var u,d=p(o.mapper.flushUnboundMarkerNames());try{for(d.s();!(u=d.n()).done;){var h=u.value,f=e.get(h).getRange();this._convertMarkerRemove(h,f,o),this._convertMarkerAdd(h,f,o)}}catch(t){d.e(t)}finally{d.f()}var m,g=p(t.getMarkersToAdd());try{for(g.s();!(m=g.n()).done;){var v=m.value;this._convertMarkerAdd(v.name,v.range,o)}}catch(t){g.e(t)}finally{g.f()}o.mapper.flushDeferredBindings(),o.consumable.verifyAllConsumed("insert")}},{key:"convert",value:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=this._createConversionApi(n,void 0,i);this._convertInsert(t,o);var r,a=p(e);try{for(a.s();!(r=a.n()).done;){var s=f(r.value,2),l=s[0],c=s[1];this._convertMarkerAdd(l,c,o)}}catch(t){a.e(t)}finally{a.f()}o.consumable.verifyAllConsumed("insert")}},{key:"convertSelection",value:function(t,e,n){var i=Array.from(e.getMarkersAtPosition(t.getFirstPosition())),o=this._createConversionApi(n);if(this._addConsumablesForSelection(o.consumable,t,i),this.fire("selection",{selection:t},o),t.isCollapsed){var r,a=p(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.getRange();if(us(t.getFirstPosition(),s,o.mapper)){var c={item:t,markerName:s.name,markerRange:l};o.consumable.test(t,"addMarker:"+s.name)&&this.fire("addMarker:"+s.name,c,o)}}}catch(t){a.e(t)}finally{a.f()}var u,d=p(t.getAttributeKeys());try{for(d.s();!(u=d.n()).done;){var h=u.value,f={item:t,range:t.getFirstRange(),attributeKey:h,attributeOldValue:null,attributeNewValue:t.getAttribute(h)};o.consumable.test(t,"attribute:"+f.attributeKey)&&this.fire("attribute:"+f.attributeKey+":$text",f,o)}}catch(t){d.e(t)}finally{d.f()}}}},{key:"_convertInsert",value:function(t,e){(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).doNotAddConsumables||this._addConsumablesForInsert(e.consumable,Array.from(t));var n,i=p(Array.from(t.getWalker({shallow:!0})).map(ds));try{for(i.s();!(n=i.n()).done;){var o=n.value;this._testAndFire("insert",o,e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"_convertRemove",value:function(t,e,n,i){this.fire("remove:"+n,{position:t,length:e},i)}},{key:"_convertAttribute",value:function(t,e,n,i,o){this._addConsumablesForRange(o.consumable,t,"attribute:".concat(e));var r,a=p(t);try{for(a.s();!(r=a.n()).done;){var s=r.value,l={item:s.item,range:rs._createFromPositionAndShift(s.previousPosition,s.length),attributeKey:e,attributeOldValue:n,attributeNewValue:i};this._testAndFire("attribute:".concat(e),l,o)}}catch(t){a.e(t)}finally{a.f()}}},{key:"_convertReinsert",value:function(t,e){var n=Array.from(t.getWalker({shallow:!0}));this._addConsumablesForInsert(e.consumable,n);var i,o=p(n.map(ds));try{for(o.s();!(i=o.n()).done;){var r=i.value;this._testAndFire("insert",c(c({},r),{},{reconversion:!0}),e)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_convertMarkerAdd",value:function(t,e,n){if("$graveyard"!=e.root.rootName){var i="addMarker:"+t;if(n.consumable.add(e,i),this.fire(i,{markerName:t,markerRange:e},n),n.consumable.consume(e,i)){this._addConsumablesForRange(n.consumable,e,i);var o,r=p(e.getItems());try{for(r.s();!(o=r.n()).done;){var a=o.value;if(n.consumable.test(a,i)){var s={item:a,range:rs._createOn(a),markerName:t,markerRange:e};this.fire(i,s,n)}}}catch(t){r.e(t)}finally{r.f()}}}}},{key:"_convertMarkerRemove",value:function(t,e,n){"$graveyard"!=e.root.rootName&&this.fire("removeMarker:"+t,{markerName:t,markerRange:e},n)}},{key:"_reduceChanges",value:function(t){var e={changes:t};return this.fire("reduceChanges",e),e.changes}},{key:"_addConsumablesForInsert",value:function(t,e){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value.item;if(null===t.test(o,"insert")){t.add(o,"insert");var r,a=p(o.getAttributeKeys());try{for(a.s();!(r=a.n()).done;){var s=r.value;t.add(o,"attribute:"+s)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}return t}},{key:"_addConsumablesForRange",value:function(t,e,n){var i,o=p(e.getItems());try{for(o.s();!(i=o.n()).done;){var r=i.value;t.add(r,n)}}catch(t){o.e(t)}finally{o.f()}return t}},{key:"_addConsumablesForSelection",value:function(t,e,n){t.add(e,"selection");var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;t.add(e,"addMarker:"+r.name)}}catch(t){o.e(t)}finally{o.f()}var a,s=p(e.getAttributeKeys());try{for(s.s();!(a=s.n()).done;){var l=a.value;t.add(e,"attribute:"+l)}}catch(t){s.e(t)}finally{s.f()}return t}},{key:"_testAndFire",value:function(t,e,n){var i=function(t,e){var n=e.item.name||"$text";return"".concat(t,":").concat(n)}(t,e),o=e.item.is("$textProxy")?n.consumable._getSymbolForTextProxy(e.item):e.item,r=this._firedEventsMap.get(n),a=r.get(o);if(a){if(a.has(i))return;a.add(i)}else r.set(o,new Set([i]));this.fire(i,e,n)}},{key:"_testAndFireAddAttributes",value:function(t,e){var n,i={item:t,range:rs._createOn(t)},o=p(i.item.getAttributeKeys());try{for(o.s();!(n=o.n()).done;){var r=n.value;i.attributeKey=r,i.attributeOldValue=null,i.attributeNewValue=i.item.getAttribute(r),this._testAndFire("attribute:".concat(r),i,e)}}catch(t){o.e(t)}finally{o.f()}}},{key:"_createConversionApi",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=c(c({},this._conversionApi),{},{consumable:new ss,writer:t,options:i,convertItem:function(t){return e._convertInsert(rs._createOn(t),o)},convertChildren:function(t){return e._convertInsert(rs._createIn(t),o,{doNotAddConsumables:!0})},convertAttributes:function(t){return e._testAndFireAddAttributes(t,o)},canReuseView:function(t){return!n.has(o.mapper.toModelElement(t))}});return this._firedEventsMap.set(o,new Map),o}}]),t}();function us(t,e,n){var i=e.getRange(),o=Array.from(t.getAncestors());return o.shift(),o.reverse(),!o.some((function(t){if(i.containsItem(t))return!!n.toViewElement(t).getCustomProperty("addHighlight")}))}function ds(t){return{item:t.item,range:rs._createFromPositionAndShift(t.previousPosition,t.length)}}ke(cs,N);var hs=function(){function t(e,n,i){I(this,t),this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,e&&this.setTo(e,n,i)}
2return S(t,[{key:"anchor",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.end:t.start}return null}},{key:"focus",get:function(){if(this._ranges.length>0){var t=this._ranges[this._ranges.length-1];return this._lastRangeBackward?t.start:t.end}return null}},{key:"isCollapsed",get:function(){return 1===this._ranges.length&&this._ranges[0].isCollapsed}},{key:"rangeCount",get:function(){return this._ranges.length}},{key:"isBackward",get:function(){return!this.isCollapsed&&this._lastRangeBackward}},{key:"isEqual",value:function(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 e,n=p(this._ranges);try{for(n.s();!(e=n.n()).done;){var i,o=e.value,r=!1,a=p(t._ranges);try{for(a.s();!(i=a.n()).done;){var s=i.value;if(o.isEqual(s)){r=!0;break}}}catch(t){a.e(t)}finally{a.f()}if(!r)return!1}}catch(t){n.e(t)}finally{n.f()}return!0}},{key:"getRanges",value:h().mark((function t(){var e,n,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=p(this._ranges),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,new rs(i.start,i.end);case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"getFirstRange",value:function(){var t,e=null,n=p(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.start.isBefore(e.start)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?new rs(e.start,e.end):null}},{key:"getLastRange",value:function(){var t,e=null,n=p(this._ranges);try{for(n.s();!(t=n.n()).done;){var i=t.value;e&&!i.end.isAfter(e.end)||(e=i)}}catch(t){n.e(t)}finally{n.f()}return e?new rs(e.start,e.end):null}},{key:"getFirstPosition",value:function(){var t=this.getFirstRange();return t?t.start.clone():null}},{key:"getLastPosition",value:function(){var t=this.getLastRange();return t?t.end.clone():null}},{key:"setTo",value:function(e,n,i){if(null===e)this._setRanges([]);else if(e instanceof t)this._setRanges(e.getRanges(),e.isBackward);else if(e&&"function"==typeof e.getRanges)this._setRanges(e.getRanges(),e.isBackward);else if(e instanceof rs)this._setRanges([e],!!n&&!!n.backward);else if(e instanceof es)this._setRanges([new rs(e)]);else if(e instanceof $a){var o,r=!!i&&!!i.backward;if("in"==n)o=rs._createIn(e);else if("on"==n)o=rs._createOn(e);else{if(void 0===n)throw new x("model-selection-setto-required-second-parameter",[this,e]);o=new rs(es._createAt(e,n))}this._setRanges([o],r)}else{if(!Jn(e))throw new x("model-selection-setto-not-selectable",[this,e]);this._setRanges(e,n&&!!n.backward)}}},{key:"_setRanges",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]&&arguments[1],i=(t=Array.from(t)).some((function(n){if(!(n instanceof rs))throw new x("model-selection-set-ranges-not-range",[e,t]);return e._ranges.every((function(t){return!t.isEqual(n)}))}));if(t.length!==this._ranges.length||i){this._removeAllRanges();var o,r=p(t);try{for(r.s();!(o=r.n()).done;){var a=o.value;this._pushRange(a)}}catch(t){r.e(t)}finally{r.f()}this._lastRangeBackward=!!n,this.fire("change:range",{directChange:!0})}}},{key:"setFocus",value:function(t,e){if(null===this.anchor)throw new x("model-selection-setfocus-no-ranges",[this,t]);var n=es._createAt(t,e);if("same"!=n.compareWith(this.focus)){var i=this.anchor;this._ranges.length&&this._popRange(),"before"==n.compareWith(i)?(this._pushRange(new rs(n,i)),this._lastRangeBackward=!0):(this._pushRange(new rs(i,n)),this._lastRangeBackward=!1),this.fire("change:range",{directChange:!0})}}},{key:"getAttribute",value:function(t){return this._attrs.get(t)}},{key:"getAttributes",value:function(){return this._attrs.entries()}},{key:"getAttributeKeys",value:function(){return this._attrs.keys()}},{key:"hasAttribute",value:function(t){return this._attrs.has(t)}},{key:"removeAttribute",value:function(t){this.hasAttribute(t)&&(this._attrs.delete(t),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"setAttribute",value:function(t,e){this.getAttribute(t)!==e&&(this._attrs.set(t,e),this.fire("change:attribute",{attributeKeys:[t],directChange:!0}))}},{key:"getSelectedElement",value:function(){return 1!==this.rangeCount?null:this.getFirstRange().getContainedElement()}},{key:"is",value:function(t){return"selection"===t||"model:selection"===t}},{key:"getSelectedBlocks",value:h().mark((function t(){var e,n,i,o,r,a,s,l,c,u;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=new WeakSet,n=p(this.getRanges()),t.prev=2,n.s();case 4:if((i=n.n()).done){t.next=38;break}if(o=i.value,r=ms(o.start,e),t.t0=r&&gs(r,o),!t.t0){t.next=11;break}return t.next=11,r;case 11:a=p(o.getWalker()),t.prev=12,a.s();case 14:if((s=a.n()).done){t.next=23;break}if(l=s.value,c=l.item,t.t1="elementEnd"==l.type&&ps(c,e,o),!t.t1){t.next=21;break}return t.next=21,c;case 21:t.next=14;break;case 23:t.next=28;break;case 25:t.prev=25,t.t2=t.catch(12),a.e(t.t2);case 28:return t.prev=28,a.f(),t.finish(28);case 31:if(u=ms(o.end,e),t.t3=u&&!o.end.isTouching(es._createAt(u,0))&&gs(u,o),!t.t3){t.next=36;break}return t.next=36,u;case 36:t.next=4;break;
2case 38:t.next=43;break;case 40:t.prev=40,t.t4=t.catch(2),n.e(t.t4);case 43:return t.prev=43,n.f(),t.finish(43);case 46:case"end":return t.stop()}}),t,this,[[2,40,43,46],[12,25,28,31]])}))},{key:"containsEntireContent",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.anchor.root,e=es._createAt(t,0),n=es._createAt(t,"end");return e.isTouching(this.getFirstPosition())&&n.isTouching(this.getLastPosition())}},{key:"_pushRange",value:function(t){this._checkRange(t),this._ranges.push(new rs(t.start,t.end))}},{key:"_checkRange",value:function(t){for(var e=0;e<this._ranges.length;e++)if(t.isIntersecting(this._ranges[e]))throw new x("model-selection-range-intersects",[this,t],{addedRange:t,intersectingRange:this._ranges[e]})}},{key:"_removeAllRanges",value:function(){for(;this._ranges.length>0;)this._popRange()}},{key:"_popRange",value:function(){this._ranges.pop()}}]),t}();function fs(t,e){return!e.has(t)&&(e.add(t),t.root.document.model.schema.isBlock(t)&&t.parent)}function ps(t,e,n){return fs(t,e)&&gs(t,n)}function ms(t,e){var n=t.parent.root.document.model.schema,i=t.parent.getAncestors({parentFirst:!0,includeSelf:!0}),o=!1,r=i.find((function(t){return!o&&(!(o=n.isLimit(t))&&fs(t,e))}));return i.forEach((function(t){return e.add(t)})),r}function gs(t,e){var n=function(t){for(var e=t.root.document.model.schema,n=t.parent;n;){if(e.isBlock(n))return n;n=n.parent}}(t);return!n||!e.containsRange(rs._createOn(n),!0)}ke(hs,N);var vs=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),o=e.call(this,t,i),ks.call(_(o)),o}return S(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t}},{key:"toRange",value:function(){return new rs(this.start,this.end)}}],[{key:"fromRange",value:function(t){return new n(t.start,t.end)}}]),n}(rs);function ks(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var i=n[0];i.isDocumentOperation&&bs.call(t,i)}),{priority:"low"})}function bs(t){var e=this.getTransformedByOperation(t),n=rs._createFromRanges(e),i=!n.isEqual(this),o=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),r=null;if(i){"$graveyard"==n.root.rootName&&(r="remove"==t.type?t.sourcePosition:t.deletionPosition);var a=this.toRange();this.start=n.start,this.end=n.end,this.fire("change:range",a,{deletionPosition:r})}else o&&this.fire("change:content",this.toRange(),{deletionPosition:r})}ke(vs,N);var ys="selection:",_s=function(){function t(e){I(this,t),this._selection=new ws(e),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}return S(t,[{key:"isCollapsed",get:function(){return this._selection.isCollapsed}},{key:"anchor",get:function(){return this._selection.anchor}},{key:"focus",get:function(){return this._selection.focus}},{key:"rangeCount",get:function(){return this._selection.rangeCount}},{key:"hasOwnRange",get:function(){return this._selection.hasOwnRange}},{key:"isBackward",get:function(){return this._selection.isBackward}},{key:"isGravityOverridden",get:function(){return this._selection.isGravityOverridden}},{key:"markers",get:function(){return this._selection.markers}},{key:"_ranges",get:function(){return this._selection._ranges}},{key:"getRanges",value:function(){return this._selection.getRanges()}},{key:"getFirstPosition",value:function(){return this._selection.getFirstPosition()}},{key:"getLastPosition",value:function(){return this._selection.getLastPosition()}},{key:"getFirstRange",value:function(){return this._selection.getFirstRange()}},{key:"getLastRange",value:function(){return this._selection.getLastRange()}},{key:"getSelectedBlocks",value:function(){return this._selection.getSelectedBlocks()}},{key:"getSelectedElement",value:function(){return this._selection.getSelectedElement()}},{key:"containsEntireContent",value:function(t){return this._selection.containsEntireContent(t)}},{key:"destroy",value:function(){this._selection.destroy()}},{key:"getAttributeKeys",value:function(){return this._selection.getAttributeKeys()}},{key:"getAttributes",value:function(){return this._selection.getAttributes()}},{key:"getAttribute",value:function(t){return this._selection.getAttribute(t)}},{key:"hasAttribute",value:function(t){return this._selection.hasAttribute(t)}},{key:"refresh",value:function(){this._selection._updateMarkers(),this._selection._updateAttributes(!1)}},{key:"observeMarkers",value:function(t){this._selection.observeMarkers(t)}},{key:"is",value:function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t}},{key:"_setFocus",value:function(t,e){this._selection.setFocus(t,e)}},{key:"_setTo",value:function(t,e,n){this._selection.setTo(t,e,n)}},{key:"_setAttribute",value:function(t,e){this._selection.setAttribute(t,e)}},{key:"_removeAttribute",value:function(t){this._selection.removeAttribute(t)}},{key:"_getStoredAttributes",value:function(){return this._selection._getStoredAttributes()}},{key:"_overrideGravity",value:function(){return this._selection.overrideGravity()}},{key:"_restoreGravity",value:function(t){this._selection.restoreGravity(t)}}],[{key:"_getStoreAttributeKey",value:function(t){return ys+t}},{key:"_isStoreAttributeKey",value:function(t){return t.startsWith(ys)}}]),t}();ke(_s,N);var ws=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this)).markers=new Xn({idProperty:"name"}),i._model=t.model,i._document=t,i._attributePriority=new Map,i._selectionRestorePosition=null,i._hasChangedRange=!1,i._overriddenGravityRegister=new Set,i._observedMarkers=new Set,i.listenTo(i._model,"applyOperation",(function(t,e){var n=e[0];n.isDocumentOperation&&"marker"!=n.type&&"rename"!=n.type&&"noop"!=n.type&&(0==i._ranges.length&&i._selectionRestorePosition&&i._fixGraveyardSelection(i._selectionRestorePosition),i._selectionRestorePosition=null,i._hasChangedRange&&(i._hasChangedRange=!1,i.fire("change:range",{directChange:!1})))}),{priority:"lowest"}),i.on("change:range",(function(){var t,e=p(i.getRanges());try{for(e.s();!(t=e.n()).done;){var n=t.value;if(!i._document._validateSelectionRange(n))throw new x("document-selection-wrong-position",_(i),{range:n})}}catch(t){e.e(t)}finally{e.f()}})),i.listenTo(i._model.markers,"update",(function(t,e,n,o){i._updateMarker(e,o)})),i.listenTo(i._document,"change",(function(t,e){!function(t,e){var n,i=p(t.document.differ.getChanges());try{var o=function(){var i=n.value;if("insert"!=i.type)return"continue";var o=i.position.parent;i.length===o.maxOffset&&t.enqueueChange(e,(function(t){var e,n=Array.from(o.getAttributeKeys()).filter((function(t){return t.startsWith(ys)})),i=p(n);try{for(i.s();!(e=i.n()).done;){var r=e.value;t.removeAttribute(r,o)}}catch(t){i.e(t)}finally{i.f()}}))};for(i.s();!(n=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}}(i._model,e)})),i}return S(n,[{key:"isCollapsed",get:function(){return 0===this._ranges.length?this._document._getDefaultRange().isCollapsed:d(D(n.prototype),"isCollapsed",this)}},{key:"anchor",get:function(){return d(D(n.prototype),"anchor",this)||this._document._getDefaultRange().start}},{key:"focus",get:function(){return d(D(n.prototype),"focus",this)||this._document._getDefaultRange().end}},{key:"rangeCount",get:function(){return this._ranges.length?this._ranges.length:1}},{key:"hasOwnRange",get:function(){return this._ranges.length>0}},{key:"isGravityOverridden",get:function(){return!!this._overriddenGravityRegister.size}},{key:"destroy",value:function(){for(var t=0;t<this._ranges.length;t++)this._ranges[t].detach();this.stopListening()}},{key:"getRanges",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(!this._ranges.length){t.next=4;break}return t.delegateYield(d(D(n.prototype),"getRanges",this).call(this),"t0",2);case 2:t.next=6;break;case 4:return t.next=6,this._document._getDefaultRange();case 6:case"end":return t.stop()}}),t,this)}))},{key:"getFirstRange",value:function(){return d(D(n.prototype),"getFirstRange",this).call(this)||this._document._getDefaultRange()}},{key:"getLastRange",value:function(){return d(D(n.prototype),"getLastRange",this).call(this)||this._document._getDefaultRange()}}
2,{key:"setTo",value:function(t,e,i){d(D(n.prototype),"setTo",this).call(this,t,e,i),this._updateAttributes(!0),this._updateMarkers()}},{key:"setFocus",value:function(t,e){d(D(n.prototype),"setFocus",this).call(this,t,e),this._updateAttributes(!0),this._updateMarkers()}},{key:"setAttribute",value:function(t,e){if(this._setAttribute(t,e)){var n=[t];this.fire("change:attribute",{attributeKeys:n,directChange:!0})}}},{key:"removeAttribute",value:function(t){if(this._removeAttribute(t)){var e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}},{key:"overrideGravity",value:function(){var t=v();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&&this._updateAttributes(!0),t}},{key:"restoreGravity",value:function(t){if(!this._overriddenGravityRegister.has(t))throw new x("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}},{key:"observeMarkers",value:function(t){this._observedMarkers.add(t),this._updateMarkers()}},{key:"_popRange",value:function(){this._ranges.pop().detach()}},{key:"_pushRange",value:function(t){var e=this._prepareRange(t);e&&this._ranges.push(e)}},{key:"_prepareRange",value:function(t){var e=this;if(this._checkRange(t),t.root!=this._document.graveyard){var n=vs.fromRange(t);return n.on("change:range",(function(t,i,o){if(e._hasChangedRange=!0,n.root==e._document.graveyard){e._selectionRestorePosition=o.deletionPosition;var r=e._ranges.indexOf(n);e._ranges.splice(r,1),n.detach()}})),n}}},{key:"_updateMarkers",value:function(){if(this._observedMarkers.size){var t,e=[],n=!1,i=p(this._model.markers);try{for(i.s();!(t=i.n()).done;){var o=t.value,r=o.name.split(":",1)[0];if(this._observedMarkers.has(r)){var a,s=o.getRange(),l=p(this.getRanges());try{for(l.s();!(a=l.n()).done;){var c=a.value;s.containsRange(c,!c.isCollapsed)&&e.push(o)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){i.e(t)}finally{i.f()}for(var u=Array.from(this.markers),d=0,h=e;d<h.length;d++){var f=h[d];this.markers.has(f)||(this.markers.add(f),n=!0)}for(var m=0,g=Array.from(this.markers);m<g.length;m++){var v=g[m];e.includes(v)||(this.markers.remove(v),n=!0)}n&&this.fire("change:marker",{oldMarkers:u,directChange:!1})}}},{key:"_updateMarker",value:function(t,e){var n=t.name.split(":",1)[0];if(this._observedMarkers.has(n)){var i=!1,o=Array.from(this.markers),r=this.markers.has(t);if(e){var a,s=!1,l=p(this.getRanges());try{for(l.s();!(a=l.n()).done;){var c=a.value;if(e.containsRange(c,!c.isCollapsed)){s=!0;break}}}catch(t){l.e(t)}finally{l.f()}s&&!r?(this.markers.add(t),i=!0):!s&&r&&(this.markers.remove(t),i=!0)}else r&&(this.markers.remove(t),i=!0);i&&this.fire("change:marker",{oldMarkers:o,directChange:!1})}}},{key:"_updateAttributes",value:function(t){var e=hi(this._getSurroundingAttributes()),n=hi(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else{var i,o=p(this._attributePriority);try{for(o.s();!(i=o.n()).done;){var r=f(i.value,2),a=r[0];"low"==r[1]&&(this._attrs.delete(a),this._attributePriority.delete(a))}}catch(t){o.e(t)}finally{o.f()}}this._setAttributesTo(e);var s,l=[],c=p(this.getAttributes());try{for(c.s();!(s=c.n()).done;){var u=f(s.value,2),d=u[0],h=u[1];n.has(d)&&n.get(d)===h||l.push(d)}}catch(t){c.e(t)}finally{c.f()}var m,g=p(n);try{for(g.s();!(m=g.n()).done;){var v=f(m.value,1)[0];this.hasAttribute(v)||l.push(v)}}catch(t){g.e(t)}finally{g.f()}l.length>0&&this.fire("change:attribute",{attributeKeys:l,directChange:!1})}},{key:"_setAttribute",value:function(t,e){var i=!(arguments.length>2&&void 0!==arguments[2])||arguments[2]?"normal":"low";return("low"!=i||"normal"!=this._attributePriority.get(t))&&(d(D(n.prototype),"getAttribute",this).call(this,t)!==e&&(this._attrs.set(t,e),this._attributePriority.set(t,i),!0))}},{key:"_removeAttribute",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1]?"normal":"low";return!("low"==e&&"normal"==this._attributePriority.get(t)||(this._attributePriority.set(t,e),!d(D(n.prototype),"hasAttribute",this).call(this,t)||(this._attrs.delete(t),0)))}},{key:"_setAttributesTo",value:function(t){var e,n=new Set,i=p(this.getAttributes());try{for(i.s();!(e=i.n()).done;){var o=f(e.value,2),r=o[0],a=o[1];t.get(r)!==a&&this._removeAttribute(r,!1)}}catch(t){i.e(t)}finally{i.f()}var s,l=p(t);try{for(l.s();!(s=l.n()).done;){var c=f(s.value,2),u=c[0],d=c[1];this._setAttribute(u,d,!1)&&n.add(u)}}catch(t){l.e(t)}finally{l.f()}return n}},{key:"_getStoredAttributes",value:h().mark((function t(){var e,n,i,o,r;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.getFirstPosition().parent,!this.isCollapsed||!e.isEmpty){t.next=21;break}n=p(e.getAttributeKeys()),t.prev=3,n.s();case 5:if((i=n.n()).done){t.next=13;break}if(!(o=i.value).startsWith(ys)){t.next=11;break}return r=o.substr(10),t.next=11,[r,e.getAttribute(o)];case 11:t.next=5;break;case 13:t.next=18;break;case 15:t.prev=15,t.t0=t.catch(3),n.e(t.t0);case 18:return t.prev=18,n.f(),t.finish(18);case 21:case"end":return t.stop()}}),t,this,[[3,15,18,21]])}))},{key:"_getSurroundingAttributes",value:function(){var t=this.getFirstPosition(),e=this._model.schema,n=null;if(this.isCollapsed){var i=t.textNode?t.textNode:t.nodeBefore,o=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(n=Cs(i)),n||(n=Cs(o)),!this.isGravityOverridden&&!n)for(var r=i;r&&!e.isInline(r)&&!n;)n=Cs(r=r.previousSibling);if(!n)for(var a=o;a&&!e.isInline(a)&&!n;)n=Cs(a=a.nextSibling);n||(n=this._getStoredAttributes())}else{var s,l=p(this.getFirstRange());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.item.is("element")&&e.isObject(c.item))break;if("text"==c.type){n=c.item.getAttributes();break}}}catch(t){l.e(t)}finally{l.f()}}return n}},{key:"_fixGraveyardSelection",value:function(t){var e=this._model.schema.getNearestSelectionRange(t);e&&this._pushRange(e)}}]),n}(hs);function Cs(t){return t instanceof Ka||t instanceof Ya?t.getAttributes():null}var As=function(){function t(e){I(this,t),this._dispatchers=e}
2return S(t,[{key:"add",value:function(t){var e,n=p(this._dispatchers);try{for(n.s();!(e=n.n()).done;){t(e.value)}}catch(t){n.e(t)}finally{n.f()}return this}}]),t}(),xs=function(t){return Wn(t,5)},Ds=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"elementToElement",value:function(t){return this.add(function(t){return(t=xs(t)).model=Ts(t.model),t.view=Is(t.view,"container"),t.model.attributes.length&&(t.model.children=!0),function(e){e.on("insert:"+t.model.name,function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Fs;return function(n,i,o){if(e(i.item,o.consumable,{preflight:!0})){var r=t(i.item,o);if(r){e(i.item,o.consumable);var a=o.mapper.toViewPosition(i.range.start);o.mapper.bindElements(i.item,r),o.writer.insert(a,r),o.convertAttributes(i.item),Ns(r,i.item.getChildren(),o,{reconversion:i.reconversion})}}}}(t.view,Ls(t.model)),{priority:t.converterPriority||"normal"}),(t.model.children||t.model.attributes.length)&&e.on("reduceChanges",Ps(t.model),{priority:"low"})}}(t))}},{key:"elementToStructure",value:function(t){return this.add(function(t){return(t=xs(t)).model=Ts(t.model),t.view=Is(t.view,"container"),t.model.children=!0,function(e){if(e._conversionApi.schema.checkChild(t.model.name,"$text"))throw new x("conversion-element-to-structure-disallowed-text",e,{elementName:t.model.name});var n,i;e.on("insert:"+t.model.name,(n=t.view,i=Ls(t.model),function(t,e,o){if(i(e.item,o.consumable,{preflight:!0})){var r=new Map;o.writer._registerSlotFactory(function(t,e,n){return function(i){var o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"children",r=i.createContainerElement("$slot"),a=null;if("children"===o)a=Array.from(t.getChildren());else{if("function"!=typeof o)throw new x("conversion-slot-mode-unknown",n.dispatcher,{modeOrFilter:o});a=Array.from(t.getChildren()).filter((function(t){return o(t)}))}return e.set(r,a),r}}(e.item,r,o));var a=n(e.item,o);if(o.writer._clearSlotFactory(),a){!function(t,e,n){var i=Array.from(e.values()).flat(),o=new Set(i);if(o.size!=i.length)throw new x("conversion-slot-filter-overlap",n.dispatcher,{element:t});if(o.size!=t.childCount)throw new x("conversion-slot-filter-incomplete",n.dispatcher,{element:t})}(e.item,r,o),i(e.item,o.consumable);var s=o.mapper.toViewPosition(e.range.start);o.mapper.bindElements(e.item,a),o.writer.insert(s,a),o.convertAttributes(e.item),function(t,e,n,i){n.mapper.on("modelToViewPosition",c,{priority:"highest"});var o,r=null,a=null,s=p(e);try{for(s.s();!(o=s.n()).done;){var l=f(o.value,2);r=l[0],Ns(t,a=l[1],n,i),n.writer.move(n.writer.createRangeIn(r),n.writer.createPositionBefore(r)),n.writer.remove(r)}}catch(t){s.e(t)}finally{s.f()}function c(t,e){var n=e.modelPosition.nodeAfter,i=a.indexOf(n);i<0||(e.viewPosition=e.mapper.findPositionIn(r,i))}n.mapper.off("modelToViewPosition",c)}(a,r,o,{reconversion:e.reconversion})}}}),{priority:t.converterPriority||"normal"}),e.on("reduceChanges",Ps(t.model),{priority:"low"})}}(t))}},{key:"attributeToElement",value:function(t){return this.add(function(t){var e="attribute:"+((t=xs(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values){var n,i=p(t.model.values);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.view[o]=Is(t.view[o],"attribute")}}catch(t){i.e(t)}finally{i.f()}}else t.view=Is(t.view,"attribute");var r=zs(t);return function(n){n.on(e,function(t){return function(e,n,i){if(i.consumable.test(n.item,e.name)){var o=t(n.attributeOldValue,i),r=t(n.attributeNewValue,i);if(o||r){i.consumable.consume(n.item,e.name);var a=i.writer,s=a.document.selection;if(n.item instanceof hs||n.item instanceof _s)a.wrap(s.getFirstRange(),r);else{var l=i.mapper.toViewRange(n.range);null!==n.attributeOldValue&&o&&(l=a.unwrap(l,o)),null!==n.attributeNewValue&&r&&a.wrap(l,r)}}}}}(r),{priority:t.converterPriority||"normal"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e="attribute:"+((t=xs(t)).model.key?t.model.key:t.model);if(t.model.name&&(e+=":"+t.model.name),t.model.values){var n,i=p(t.model.values);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.view[o]=Ms(t.view[o])}}catch(t){i.e(t)}finally{i.f()}}else t.view=Ms(t.view);var r=zs(t);return function(n){var i;n.on(e,(i=r,function(t,e,n){if(n.consumable.test(e.item,t.name)){var o=i(e.attributeOldValue,n),r=i(e.attributeNewValue,n);if(o||r){n.consumable.consume(e.item,t.name);var a=n.mapper.toViewElement(e.item),s=n.writer;if(!a)throw new x("conversion-attribute-to-attribute-on-text",n.dispatcher,e);if(null!==e.attributeOldValue&&o)if("class"==o.key){var l,c=p(ei(o.value));try{for(c.s();!(l=c.n()).done;){var u=l.value;s.removeClass(u,a)}}catch(t){c.e(t)}
2finally{c.f()}}else if("style"==o.key)for(var d=0,h=Object.keys(o.value);d<h.length;d++){var f=h[d];s.removeStyle(f,a)}else s.removeAttribute(o.key,a);if(null!==e.attributeNewValue&&r)if("class"==r.key){var m,g=p(ei(r.value));try{for(g.s();!(m=g.n()).done;){var v=m.value;s.addClass(v,a)}}catch(t){g.e(t)}finally{g.f()}}else if("style"==r.key)for(var k=0,b=Object.keys(r.value);k<b.length;k++){var y=b[k];s.setStyle(y,r.value[y],a)}else s.setAttribute(r.key,r.value,a)}}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToElement",value:function(t){return this.add(function(t){return(t=xs(t)).view=Is(t.view,"ui"),function(e){var n;e.on("addMarker:"+t.model,(n=t.view,function(t,e,i){e.isOpening=!0;var o=n(e,i);e.isOpening=!1;var r=n(e,i);if(o&&r){var a=e.markerRange;if(!a.isCollapsed||i.consumable.consume(a,t.name)){var s,l=p(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;if(!i.consumable.consume(c.item,t.name))return}}catch(t){l.e(t)}finally{l.f()}var u=i.mapper,d=i.writer;d.insert(u.toViewPosition(a.start),o),i.mapper.bindElementToMarker(o,e.markerName),a.isCollapsed||(d.insert(u.toViewPosition(a.end),r),i.mapper.bindElementToMarker(r,e.markerName)),t.stop()}}}),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,(t.view,function(t,e,n){var i=n.mapper.markerNameToElements(e.markerName);if(i){var o,r=p(i);try{for(r.s();!(o=r.n()).done;){var a=o.value;n.mapper.unbindElementFromMarkerName(a,e.markerName),n.writer.clear(n.writer.createRangeOn(a),a)}}catch(t){r.e(t)}finally{r.f()}n.writer.clearClonedElementsGroup(e.markerName),t.stop()}}),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToHighlight",value:function(t){return this.add(function(t){return function(e){var n;e.on("addMarker:"+t.model,(n=t.view,function(t,e,i){if(e.item&&(e.item instanceof hs||e.item instanceof _s||e.item.is("$textProxy"))){var o=Bs(n,e,i);if(o&&i.consumable.consume(e.item,t.name)){var r=i.writer,a=Es(r,o),s=r.document.selection;if(e.item instanceof hs||e.item instanceof _s)r.wrap(s.getFirstRange(),a,s);else{var l,c=i.mapper.toViewRange(e.range),u=p(r.wrap(c,a).getItems());try{for(u.s();!(l=u.n()).done;){var d=l.value;if(d.is("attributeElement")&&d.isSimilar(a)){i.mapper.bindElementToMarker(d,e.markerName);break}}}catch(t){u.e(t)}finally{u.f()}}}}}),{priority:t.converterPriority||"normal"}),e.on("addMarker:"+t.model,function(t){return function(e,n,i){if(n.item&&n.item instanceof Ja){var o=Bs(t,n,i);if(o&&i.consumable.test(n.item,e.name)){var r=i.mapper.toViewElement(n.item);if(r&&r.getCustomProperty("addHighlight")){i.consumable.consume(n.item,e.name);var a,s=p(rs._createIn(n.item));try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(l.item,e.name)}}catch(t){s.e(t)}finally{s.f()}r.getCustomProperty("addHighlight")(r,o,i.writer),i.mapper.bindElementToMarker(r,n.markerName)}}}}}(t.view),{priority:t.converterPriority||"normal"}),e.on("removeMarker:"+t.model,function(t){return function(e,n,i){if(!n.markerRange.isCollapsed){var o=Bs(t,n,i);if(o){var r=Es(i.writer,o),a=i.mapper.markerNameToElements(n.markerName);if(a){var s,l=p(a);try{for(l.s();!(s=l.n()).done;){var c=s.value;i.mapper.unbindElementFromMarkerName(c,n.markerName),c.is("attributeElement")?i.writer.unwrap(i.writer.createRangeOn(c),r):c.getCustomProperty("removeHighlight")(c,o.id,i.writer)}}catch(t){l.e(t)}finally{l.f()}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}},{key:"markerToData",value:function(t){return this.add(function(t){var e=(t=xs(t)).model;return t.view||(t.view=function(n){return{group:e,name:n.substr(t.model.length+1)}}),function(n){var i;n.on("addMarker:"+e,(i=t.view,function(t,e,n){var o=i(e.markerName,n);if(o){var r=e.markerRange;n.consumable.consume(r,t.name)&&(Ss(r,!1,n,e,o),Ss(r,!0,n,e,o),t.stop())}}),{priority:t.converterPriority||"normal"}),n.on("removeMarker:"+e,function(t){return function(e,n,i){var o=t(n.markerName,i);if(o){var r=i.mapper.markerNameToElements(n.markerName);if(r){var a,s=p(r);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.mapper.unbindElementFromMarkerName(l,n.markerName),l.is("containerElement")?(c("data-".concat(o.group,"-start-before"),l),c("data-".concat(o.group,"-start-after"),l),c("data-".concat(o.group,"-end-before"),l),c("data-".concat(o.group,"-end-after"),l)):i.writer.clear(i.writer.createRangeOn(l),l)}}catch(t){s.e(t)}finally{s.f()}i.writer.clearClonedElementsGroup(n.markerName),e.stop()}}function c(t,e){if(e.hasAttribute(t)){var n=new Set(e.getAttribute(t).split(","));n.delete(o.name),0==n.size?i.writer.removeAttribute(t,e):i.writer.setAttribute(t,Array.from(n).join(","),e)}}}}(t.view),{priority:t.converterPriority||"normal"})}}(t))}}]),n}(As);function Es(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}
2function Ss(t,e,n,i,o){var r=e?t.start:t.end,a=r.nodeAfter&&r.nodeAfter.is("element")?r.nodeAfter:null,s=r.nodeBefore&&r.nodeBefore.is("element")?r.nodeBefore:null;if(a||s){var l,c;e&&a||!e&&!s?(l=a,c=!0):(l=s,c=!1);var u=n.mapper.toViewElement(l);if(u)return void function(t,e,n,i,o,r){var a="data-".concat(r.group,"-").concat(e?"start":"end","-").concat(n?"before":"after"),s=t.hasAttribute(a)?t.getAttribute(a).split(","):[];s.unshift(r.name),i.writer.setAttribute(a,s.join(","),t),i.mapper.bindElementToMarker(t,o.markerName)}(u,e,c,n,i,o)}!function(t,e,n,i,o){var r="".concat(o.group,"-").concat(e?"start":"end"),a=o.name?{name:o.name}:null,s=n.writer.createUIElement(r,a);n.writer.insert(t,s),n.mapper.bindElementToMarker(s,i.markerName)}(n.mapper.toViewPosition(r),e,n,i,o)}function Ts(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 Is(t,e){return"function"==typeof t?t:function(n,i){return function(t,e,n){var i;"string"==typeof t&&(t={name:t});var o=e.writer,r=Object.assign({},t.attributes);if("container"==n)i=o.createContainerElement(t.name,r);else if("attribute"==n){var a={priority:t.priority||go.DEFAULT_PRIORITY};i=o.createAttributeElement(t.name,r,a)}else i=o.createUIElement(t.name,r);if(t.styles)for(var s=0,l=Object.keys(t.styles);s<l.length;s++){var c=l[s];o.setStyle(c,t.styles[c],i)}if(t.classes){var u=t.classes;if("string"==typeof u)o.addClass(u,i);else{var d,h=p(u);try{for(h.s();!(d=h.n()).done;){var f=d.value;o.addClass(f,i)}}catch(t){h.e(t)}finally{h.f()}}}return i}(t,i,e)}}function zs(t){return t.model.values?function(e,n){var i=t.view[e];return i?i(e,n):null}:t.view}function Ms(t){return"string"==typeof t?function(e){return{key:t,value:e}}:"object"==z(t)?t.value?function(){return t}:function(e){return{key:t.key,value:e}}:t}function Bs(t,e,n){var i="function"==typeof t?t(e,n):t;return i?(i.priority||(i.priority=10),i.id||(i.id=e.markerName),i):null}function Ps(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 i=[];n.reconvertedElements||(n.reconvertedElements=new Set);var o,r=p(n.changes);try{for(r.s();!(o=r.n()).done;){var a=o.value,s=a.position?a.position.parent:a.range.start.nodeAfter;if(s&&e(s,a)){if(!n.reconvertedElements.has(s)){n.reconvertedElements.add(s);var l=es._createBefore(s);i.push({type:"remove",name:s.name,position:l,length:1},{type:"reinsert",name:s.name,position:l,length:1})}}else i.push(a)}}catch(t){r.e(t)}finally{r.f()}n.changes=i}}function Ls(t){return function(e,n){var i,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=["insert"],a=p(t.attributes);try{for(a.s();!(i=a.n()).done;){var s=i.value;e.hasAttribute(s)&&r.push("attribute:".concat(s))}}catch(t){a.e(t)}finally{a.f()}return!!r.every((function(t){return n.test(e,t)}))&&(o.preflight||r.forEach((function(t){return n.consume(e,t)})),!0)}}function Ns(t,e,n,i){var o,r=p(e);try{for(r.s();!(o=r.n()).done;){var a=o.value;Os(t.root,a,n,i)||n.convertItem(a)}}catch(t){r.e(t)}finally{r.f()}}function Os(t,e,n,i){var o=n.writer,r=n.mapper;if(!i.reconversion)return!1;var a=r.toViewElement(e);return!(!a||a.root==t||!n.canReuseView(a)||(o.move(o.createRangeOn(a),r.toViewPosition(es._createBefore(e))),0))}function Fs(t,e){return(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).preflight?e.test(t,"insert"):e.consume(t,"insert")}function Rs(t){var e,n=t.model,i=n.schema,o=n.document,r=p(o.getRootNames());try{for(r.s();!(e=r.n()).done;){var a=e.value,s=o.getRoot(a);if(s.isEmpty&&!i.checkChild(s,"$text")&&i.checkChild(s,"paragraph"))return t.insertElement("paragraph",s),!0}}catch(t){r.e(t)}finally{r.f()}return!1}function js(t,e,n){var i=n.createContext(t);return!!n.checkChild(i,"paragraph")&&!!n.checkChild(i.push("paragraph"),e)}function Vs(t,e){var n=e.createElement("paragraph");return e.insert(n,t),e.createPositionAt(n,0)}var Hs=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"elementToElement",value:function(t){return this.add(Us(t))}},{key:"elementToAttribute",value:function(t){return this.add(function(t){Ws(t=xs(t));var e=Gs(t,!1),n=Zs(t.view),i=n?"element:"+n:"element";return function(n){n.on(i,e,{priority:t.converterPriority||"low"})}}(t))}},{key:"attributeToAttribute",value:function(t){return this.add(function(t){var e=null;("string"==typeof(t=xs(t)).view||t.view.key)&&(e=function(t){"string"==typeof t.view&&(t.view={key:t.view});var e,n=t.view.key;return e="class"==n||"style"==n?u({},"class"==n?"classes":"styles",t.view.value):{attributes:u({},n,void 0===t.view.value?/[\s\S]*/:t.view.value)},t.view.name&&(e.name=t.view.name),t.view=e,n}(t)),Ws(t,e);var n=Gs(t,!0);return function(e){e.on("element",n,{priority:t.converterPriority||"low"})}}(t))}},{key:"elementToMarker",value:function(t){return this.add(function(t){return function(t){var e=t.model;t.model=function(t,n){var i="string"==typeof e?e:e(t,n);return n.writer.createElement("$marker",{"data-name":i})}}(t=xs(t)),Us(t)}(t))}},{key:"dataToMarker",value:function(t){return this.add(function(t){(t=xs(t)).model||(t.model=function(e){return e?t.view+":"+e:t.view});var e=qs($s(t,"start")),n=qs($s(t,"end"));return function(i){i.on("element:"+t.view+"-start",e,{priority:t.converterPriority||"normal"}),i.on("element:"+t.view+"-end",n,{priority:t.converterPriority||"normal"});var o=A.get("low"),r=A.get("highest"),a=A.get(t.converterPriority)/r;i.on("element",function(t){return function(e,n,i){var o="data-".concat(t.view);function r(e,o){var r,a=p(o);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=t.model(s,i),c=i.writer.createElement("$marker",{"data-name":l});i.writer.insert(c,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(t){a.e(t)}finally{a.f()}}(i.consumable.test(n.viewItem,{attributes:o+"-end-after"})||i.consumable.test(n.viewItem,{attributes:o+"-start-after"})||i.consumable.test(n.viewItem,{attributes:o+"-end-before"})||i.consumable.test(n.viewItem,{attributes:o+"-start-before"}))&&(n.modelRange||Object.assign(n,i.convertChildren(n.viewItem,n.modelCursor)),i.consumable.consume(n.viewItem,{attributes:o+"-end-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(o+"-end-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-after"})&&r(n.modelRange.end,n.viewItem.getAttribute(o+"-start-after").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-end-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(o+"-end-before").split(",")),i.consumable.consume(n.viewItem,{attributes:o+"-start-before"})&&r(n.modelRange.start,n.viewItem.getAttribute(o+"-start-before").split(",")))}}(t),{priority:o+a})}}(t))}}]),n}(As);function Us(t){var e=qs(t=xs(t)),n=Zs(t.view),i=n?"element:"+n:"element";return function(n){n.on(i,e,{priority:t.converterPriority||"normal"})}}function Zs(t){return"string"==typeof t?t:"object"==z(t)&&"string"==typeof t.name?t.name:null}function qs(t){var e=new fi(t.view);return function(n,i,o){var r=e.match(i.viewItem);if(r){var a=r.match;if(a.name=!0,o.consumable.test(i.viewItem,a)){var s=function(t,e,n){return t instanceof Function?t(e,n):n.writer.createElement(t)}(t.model,i.viewItem,o);s&&o.safeInsert(s,i.modelCursor)&&(o.consumable.consume(i.viewItem,a),o.convertChildren(i.viewItem,s),o.updateConversionResult(s,i))}}}}function Ws(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=null===e||function(t){return t.getAttribute(e)},i="object"!=z(t.model)?t.model:t.model.key,o="object"!=z(t.model)||void 0===t.model.value?n:t.model.value;t.model={key:i,value:o}}function Gs(t,e){var n=new fi(t.view);return function(i,o,r){var a=n.match(o.viewItem);
2if(a&&(function(t,e){var n="function"==typeof t?t(e):t;return!("object"==z(n)&&!Zs(n))&&(!n.classes&&!n.attributes&&!n.styles)}(t.view,o.viewItem)?a.match.name=!0:delete a.match.name,r.consumable.test(o.viewItem,a.match))){var s=t.model.key,l="function"==typeof t.model.value?t.model.value(o.viewItem,r):t.model.value;if(null!==l){o.modelRange||Object.assign(o,r.convertChildren(o.viewItem,o.modelCursor));var c=function(t,e,n,i){for(var o=!1,r=0,a=Array.from(t.getItems({shallow:n}));r<a.length;r++){var s=a[r];i.schema.checkAttribute(s,e.key)&&(o=!0,s.hasAttribute(e.key)||i.writer.setAttribute(e.key,e.value,s))}return o}(o.modelRange,{key:s,value:l},e,r);c&&r.consumable.consume(o.viewItem,a.match)}}}}function $s(t,e){var n={};return n.view=t.view+"-"+e,n.model=function(e,n){var i=e.getAttribute("name"),o=t.model(i,n);return n.writer.createElement("$marker",{"data-name":o})},n}var Ys=function(){function t(e,n){var i=this;I(this,t),this.model=e,this.view=new Ga(n),this.mapper=new as,this.downcastDispatcher=new cs({mapper:this.mapper,schema:e.schema});var o=this.model.document,r=o.selection,a=this.model.markers;this.listenTo(this.model,"_beforeChanges",(function(){i.view._disableRendering(!0)}),{priority:"highest"}),this.listenTo(this.model,"_afterChanges",(function(){i.view._disableRendering(!1)}),{priority:"lowest"}),this.listenTo(o,"change",(function(){i.view.change((function(t){i.downcastDispatcher.convertChanges(o.differ,a,t),i.downcastDispatcher.convertSelection(r,a,t)}))}),{priority:"low"}),this.listenTo(this.view.document,"selectionChange",function(t,e){return function(n,i){var o,r=i.newSelection,a=[],s=p(r.getRanges());try{for(s.s();!(o=s.n()).done;){var l=o.value;a.push(e.toModelRange(l))}}catch(t){s.e(t)}finally{s.f()}var c=t.createSelection(a,{backward:r.isBackward});c.isEqual(t.document.selection)||t.change((function(t){t.setSelection(c)}))}}(this.model,this.mapper)),this.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.writer,o=n.mapper.toViewPosition(e.range.start),r=i.createText(e.item.data);i.insert(o,r)}}),{priority:"lowest"}),this.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"}),this.downcastDispatcher.on("remove",(function(t,e,n){var i,o=n.mapper.toViewPosition(e.position),r=e.position.getShiftedBy(e.length),a=n.mapper.toViewPosition(r,{isPhantom:!0}),s=n.writer.createRange(o,a),l=n.writer.remove(s.getTrimmed()),c=p(n.writer.createRangeIn(l).getItems());try{for(c.s();!(i=c.n()).done;){var u=i.value;n.mapper.unbindViewElement(u,{defer:!0})}}catch(t){c.e(t)}finally{c.f()}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(t,e,n){var i,o=n.writer,r=p(o.document.selection.getRanges());try{for(r.s();!(i=r.n()).done;){var a=i.value;a.isCollapsed&&a.end.parent.isAttached()&&n.writer.mergeAttributes(a.start)}}catch(t){r.e(t)}finally{r.f()}o.setSelection(null)}),{priority:"high"}),this.downcastDispatcher.on("selection",(function(t,e,n){var i=e.selection;if(!i.isCollapsed&&n.consumable.consume(i,"selection")){var o,r=[],a=p(i.getRanges());try{for(a.s();!(o=a.n()).done;){var s=o.value,l=n.mapper.toViewRange(s);r.push(l)}}catch(t){a.e(t)}finally{a.f()}n.writer.setSelection(r,{backward:i.isBackward})}}),{priority:"low"}),this.downcastDispatcher.on("selection",(function(t,e,n){var i=e.selection;if(i.isCollapsed&&n.consumable.consume(i,"selection")){var o=n.writer,r=i.getFirstPosition(),a=n.mapper.toViewPosition(r),s=o.breakAttributes(a);o.setSelection(s)}}),{priority:"low"}),this.view.document.roots.bindTo(this.model.document.roots).using((function(t){if("$graveyard"==t.rootName)return null;var e=new Ji(i.view.document,t.name);return e.rootName=t.rootName,i.mapper.bindElements(t,e),e}))}return S(t,[{key:"destroy",value:function(){this.view.destroy(),this.stopListening()}},{key:"reconvertMarker",value:function(t){var e=this,n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new x("editingcontroller-reconvertmarker-marker-not-exist",this,{markerName:n});this.model.change((function(){e.model.markers._refresh(i)}))}},{key:"reconvertItem",value:function(t){var e=this;this.model.change((function(){e.model.document.differ._refreshItem(t)}))}}]),t}();ke(Ys,he);var Ks=function(t){function e(){I(this,e),this._commands=new Map}return S(e,[{key:"add",value:function(t,e){this._commands.set(t,e)}},{key:"get",value:function(t){return this._commands.get(t)}},{key:"execute",value:function(t){var e=this.get(t);if(!e)throw new x("commandcollection-command-not-found",this,{commandName:t});for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return e.execute.apply(e,i)}},{key:"names",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.keys(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"commands",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._commands.values(),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:t,value:function(){return this._commands[Symbol.iterator]()}},{key:"destroy",value:function(){var t,e=p(this.commands());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}}}]),e}(Symbol.iterator),Qs=function(){function t(){I(this,t),this._consumables=new Map}
2return S(t,[{key:"add",value:function(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 Js(t),this._consumables.set(t,n)),n.add(e))}},{key:"test",value:function(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(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(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(t){var e,n={element:t,name:!0,attributes:[],classes:[],styles:[]},i=p(t.getAttributeKeys());try{for(i.s();!(e=i.n()).done;){var o=e.value;"style"!=o&&"class"!=o&&n.attributes.push(o)}}catch(t){i.e(t)}finally{i.f()}var r,a=p(t.getClassNames());try{for(a.s();!(r=a.n()).done;){var s=r.value;n.classes.push(s)}}catch(t){a.e(t)}finally{a.f()}var l,c=p(t.getStyleNames());try{for(c.s();!(l=c.n()).done;){var u=l.value;n.styles.push(u)}}catch(t){c.e(t)}finally{c.f()}return n}},{key:"createFrom",value:function(e,n){if(n||(n=new t(e)),e.is("$text"))return n.add(e),n;e.is("element")&&n.add(e,t.consumablesFromElement(e)),e.is("documentFragment")&&n.add(e);var i,o=p(e.getChildren());try{for(o.s();!(i=o.n()).done;){var r=i.value;n=t.createFrom(r,n)}}catch(t){o.e(t)}finally{o.f()}return n}}]),t}(),Js=function(){function t(e){I(this,t),this.element=e,this._canConsumeName=null,this._consumables={attributes:new Map,styles:new Map,classes:new Map}}return S(t,[{key:"add",value:function(t){for(var e in t.name&&(this._canConsumeName=!0),this._consumables)e in t&&this._add(e,t[e])}},{key:"test",value:function(t){if(t.name&&!this._canConsumeName)return this._canConsumeName;for(var e in this._consumables)if(e in t){var n=this._test(e,t[e]);if(!0!==n)return n}return!0}},{key:"consume",value:function(t){for(var e in t.name&&(this._canConsumeName=!1),this._consumables)e in t&&this._consume(e,t[e])}},{key:"revert",value:function(t){for(var e in t.name&&(this._canConsumeName=!0),this._consumables)e in t&&this._revert(e,t[e])}},{key:"_add",value:function(t,e){var n,i=Rt(e)?e:[e],o=this._consumables[t],r=p(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("attributes"===t&&("class"===a||"style"===a))throw new x("viewconsumable-invalid-attribute",this);if(o.set(a,!0),"styles"===t){var s,l=p(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;o.set(c,!0)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){r.e(t)}finally{r.f()}}},{key:"_test",value:function(t,e){var n,i=Rt(e)?e:[e],o=this._consumables[t],r=p(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){var s=o.get(a);if(void 0===s)return null;if(!s)return!1}else{var l="class"==a?"classes":"styles",c=this._test(l,m(this._consumables[l].keys()));if(!0!==c)return c}}}catch(t){r.e(t)}finally{r.f()}return!0}},{key:"_consume",value:function(t,e){var n,i=Rt(e)?e:[e],o=this._consumables[t],r=p(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a){if(o.set(a,!1),"styles"==t){var s,l=p(this.element.document.stylesProcessor.getRelatedStyles(a));try{for(l.s();!(s=l.n()).done;){var c=s.value;o.set(c,!1)}}catch(t){l.e(t)}finally{l.f()}}}else{var u="class"==a?"classes":"styles";this._consume(u,m(this._consumables[u].keys()))}}}catch(t){r.e(t)}finally{r.f()}}},{key:"_revert",value:function(t,e){var n,i=Rt(e)?e:[e],o=this._consumables[t],r=p(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if("attributes"!==t||"class"!==a&&"style"!==a)!1===o.get(a)&&o.set(a,!0);else{var s="class"==a?"classes":"styles";this._revert(s,m(this._consumables[s].keys()))}}}catch(t){r.e(t)}finally{r.f()}}}]),t}(),Xs=function(){function t(){var e=this;I(this,t),this._sourceDefinitions={},this._attributeProperties={},this.decorate("checkChild"),this.decorate("checkAttribute"),this.on("checkAttribute",(function(t,e){e[0]=new tl(e[0])}),{priority:"highest"}),this.on("checkChild",(function(t,n){n[0]=new tl(n[0]),n[1]=e.getDefinition(n[1])}),{priority:"highest"})}
2return S(t,[{key:"register",value:function(t,e){if(this._sourceDefinitions[t])throw new x("schema-cannot-register-item-twice",this,{itemName:t});this._sourceDefinitions[t]=[Object.assign({},e)],this._clearCache()}},{key:"extend",value:function(t,e){if(!this._sourceDefinitions[t])throw new x("schema-cannot-extend-missing-item",this,{itemName:t});this._sourceDefinitions[t].push(Object.assign({},e)),this._clearCache()}},{key:"getDefinitions",value:function(){return this._compiledDefinitions||this._compile(),this._compiledDefinitions}},{key:"getDefinition",value:function(t){var e;return e="string"==typeof t?t:t.is&&(t.is("$text")||t.is("$textProxy"))?"$text":t.name,this.getDefinitions()[e]}},{key:"isRegistered",value:function(t){return!!this.getDefinition(t)}},{key:"isBlock",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isBlock)}},{key:"isLimit",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isLimit&&!e.isObject)}},{key:"isObject",value:function(t){var e=this.getDefinition(t);return!!e&&!!(e.isObject||e.isLimit&&e.isSelectable&&e.isContent)}},{key:"isInline",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isInline)}},{key:"isSelectable",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isSelectable&&!e.isObject)}},{key:"isContent",value:function(t){var e=this.getDefinition(t);return!(!e||!e.isContent&&!e.isObject)}},{key:"checkChild",value:function(t,e){return!!e&&this._checkContextMatch(e,t)}},{key:"checkAttribute",value:function(t,e){var n=this.getDefinition(t.last);return!!n&&n.allowAttributes.includes(e)}},{key:"checkMerge",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(t instanceof es){var n=t.nodeBefore,i=t.nodeAfter;if(!(n instanceof Ja))throw new x("schema-check-merge-no-element-before",this);if(!(i instanceof Ja))throw new x("schema-check-merge-no-element-after",this);return this.checkMerge(n,i)}var o,r=p(e.getChildren());try{for(r.s();!(o=r.n()).done;){var a=o.value;if(!this.checkChild(t,a))return!1}}catch(t){r.e(t)}finally{r.f()}return!0}},{key:"addChildCheck",value:function(t){this.on("checkChild",(function(e,n){var i=f(n,2),o=i[0],r=i[1];if(r){var a=t(o,r);"boolean"==typeof a&&(e.stop(),e.return=a)}}),{priority:"high"})}},{key:"addAttributeCheck",value:function(t){this.on("checkAttribute",(function(e,n){var i=f(n,2),o=i[0],r=i[1],a=t(o,r);"boolean"==typeof a&&(e.stop(),e.return=a)}),{priority:"high"})}},{key:"setAttributeProperties",value:function(t,e){this._attributeProperties[t]=Object.assign(this.getAttributeProperties(t),e)}},{key:"getAttributeProperties",value:function(t){return this._attributeProperties[t]||{}}},{key:"getLimitElement",value:function(t){var e;for(e=t instanceof es?t.parent:(t instanceof rs?[t]:Array.from(t.getRanges())).reduce((function(t,e){var n=e.getCommonAncestor();return t?t.getCommonAncestor(n,{includeSelf:!0}):n}),null);!this.isLimit(e)&&e.parent;)e=e.parent;return e}},{key:"checkAttributeInSelection",value:function(t,e){if(t.isCollapsed){var n=[].concat(m(t.getFirstPosition().getAncestors()),[new Ya("",t.getAttributes())]);return this.checkAttribute(n,e)}var i,o=p(t.getRanges());try{for(o.s();!(i=o.n()).done;){var r,a=p(i.value);try{for(a.s();!(r=a.n()).done;){var s=r.value;if(this.checkAttribute(s.item,e))return!0}}catch(t){a.e(t)}finally{a.f()}}}catch(t){o.e(t)}finally{o.f()}return!1}},{key:"getValidRanges",value:h().mark((function t(e,n){var i,o,r;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=h().mark((function t(e){var n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p(e),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=8;break}return o=i.value,t.delegateYield(o.getMinimalFlatRanges(),"t0",6);case 6:t.next=3;break;case 8:t.next=13;break;case 10:t.prev=10,t.t1=t.catch(1),n.e(t.t1);case 13:return t.prev=13,n.f(),t.finish(13);case 16:case"end":return t.stop()}}),t,null,[[1,10,13,16]])}))(e),i=p(e),t.prev=2,i.s();case 4:if((o=i.n()).done){t.next=9;break}return r=o.value,t.delegateYield(this._getValidRangesForRange(r,n),"t0",7);case 7:t.next=4;break;case 9:t.next=14;break;case 11:t.prev=11,t.t1=t.catch(2),i.e(t.t1);case 14:return t.prev=14,i.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[2,11,14,17]])}))},{key:"getNearestSelectionRange",value:function(t){var e,n,i=this,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"both";if(this.checkChild(t,"$text"))return new rs(t);var r=t.getAncestors().reverse().find((function(t){return i.isLimit(t)}))||t.root;"both"!=o&&"backward"!=o||(e=new Xa({boundaries:rs._createIn(r),startPosition:t,direction:"backward"})),"both"!=o&&"forward"!=o||(n=new Xa({boundaries:rs._createIn(r),startPosition:t}));var a,s=p(h().mark((function t(e,n){var i,o,r;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=!1;case 1:if(i){t.next=18;break}if(i=!0,!e){t.next=9;break}if(o=e.next(),t.t0=o.done,t.t0){t.next=9;break}return i=!1,t.next=9,{walker:e,value:o.value};case 9:if(!n){t.next=16;break}if(r=n.next(),t.t1=r.done,t.t1){t.next=16;break}return i=!1,t.next=16,{walker:n,value:r.value};case 16:t.next=1;break;case 18:case"end":return t.stop()}}),t)}))(e,n));try{for(s.s();!(a=s.n()).done;){var l=a.value,c=l.walker==e?"elementEnd":"elementStart",u=l.value;if(u.type==c&&this.isObject(u.item))return rs._createOn(u.item);if(this.checkChild(u.nextPosition,"$text"))return new rs(u.nextPosition)}}catch(t){s.e(t)}finally{s.f()}return null}},{key:"findAllowedParent",value:function(t,e){for(var n=t.parent;n;){if(this.checkChild(n,e))return n;if(this.isLimit(n))return null;n=n.parent}return null}},{key:"removeDisallowedAttributes",value:function(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("$text"))fl(this,o,e);else{var r,a=p(rs._createIn(o).getPositions());try{for(a.s();!(r=a.n()).done;){var s=r.value;fl(this,s.nodeBefore||s.parent,e)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}}},{key:"createContext",value:function(t){return new tl(t)}},{key:"_clearCache",value:function(){this._compiledDefinitions=null}},{key:"_compile",value:function(){for(var t={},e=this._sourceDefinitions,n=Object.keys(e),i=0,o=n;i<o.length;i++){var r=o[i];t[r]=el(e[r],r)}for(var a=0,s=n;a<s.length;a++){nl(t,s[a])}for(var l=0,c=n;l<c.length;l++){il(t,c[l])}for(var u=0,d=n;u<d.length;u++){ol(t,d[u])}for(var h=0,f=n;h<f.length;h++){var p=f[h];rl(t,p),al(t,p)}for(var m=0,g=n;m<g.length;m++){var v=g[m];sl(t,v),ll(t,v),cl(t,v)}this._compiledDefinitions=t}},{key:"_checkContextMatch",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e.length-1,i=e.getItem(n);if(t.allowIn.includes(i.name)){if(0==n)return!0;var o=this.getDefinition(i);return this._checkContextMatch(o,e,n-1)}return!1}},{key:"_getValidRangesForRange",value:h().mark((function t(e,n){var i,o,r,a,s;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=e.start,o=e.start,r=p(e.getItems({shallow:!0})),t.prev=2,r.s();case 4:if((a=r.n()).done){t.next=19;break}if(s=a.value,t.t0=s.is("element"),!t.t0){t.next=9;break}return t.delegateYield(this._getValidRangesForRange(rs._createIn(s),n),"t1",9);case 9:if(t.t2=this.checkAttribute(s,n),t.t2){t.next=16;break}if(t.t3=i.isEqual(o),t.t3){t.next=15;break}return t.next=15,new rs(i,o);case 15:i=es._createAfter(s);case 16:o=es._createAfter(s);case 17:t.next=4;break;case 19:t.next=24;break;case 21:t.prev=21,t.t4=t.catch(2),r.e(t.t4);case 24:return t.prev=24,r.f(),t.finish(24);case 27:if(t.t5=i.isEqual(o),t.t5){t.next=31;break}return t.next=31,new rs(i,o);case 31:case"end":return t.stop()}}),t,this,[[2,21,24,27]])}))}]),t}();ke(Xs,he);var tl=function(t){function e(t){if(I(this,e),t instanceof e)return t;"string"==typeof t?t=[t]:Array.isArray(t)||(t=t.getAncestors({includeSelf:!0})),this._items=t.map(hl)}return S(e,[{key:"length",get:function(){return this._items.length}},{key:"last",get:function(){return this._items[this._items.length-1]}},{key:Symbol.iterator,value:function(){return this._items[Symbol.iterator]()}},{key:"push",value:function(t){var n=new e([t]);return n._items=[].concat(m(this._items),m(n._items)),n}},{key:"getItem",value:function(t){return this._items[t]}},{key:"getNames",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(this._items.map((function(t){return t.name})),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))},{key:"endsWith",value:function(t){return Array.from(this.getNames()).join(" ").endsWith(t)}},{key:"startsWith",value:function(t){return Array.from(this.getNames()).join(" ").startsWith(t)}}]),e}();function el(t,e){var n={name:e,allowIn:[],allowContentOf:[],allowWhere:[],allowAttributes:[],allowAttributesOf:[],allowChildren:[],inheritTypesFrom:[]};return function(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o,r=n.value,a=Object.keys(r).filter((function(t){return t.startsWith("is")})),s=p(a);try{for(s.s();!(o=s.n()).done;){var l=o.value;e[l]=r[l]}}catch(t){s.e(t)}finally{s.f()}}}catch(t){i.e(t)}finally{i.f()}}(t,n),ul(t,n,"allowIn"),ul(t,n,"allowContentOf"),ul(t,n,"allowWhere"),ul(t,n,"allowAttributes"),ul(t,n,"allowAttributesOf"),ul(t,n,"allowChildren"),ul(t,n,"inheritTypesFrom"),function(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value.inheritAllFrom;o&&(e.allowContentOf.push(o),e.allowWhere.push(o),e.allowAttributesOf.push(o),e.
2inheritTypesFrom.push(o))}}catch(t){i.e(t)}finally{i.f()}}(t,n),n}function nl(t,e){var n,i=t[e],o=p(i.allowChildren);try{for(o.s();!(n=o.n()).done;){var r=t[n.value];r&&r.allowIn.push(e)}}catch(t){o.e(t)}finally{o.f()}i.allowChildren.length=0}function il(t,e){var n,i=p(t[e].allowContentOf);try{for(i.s();!(n=i.n()).done;){var o=n.value;t[o]&&dl(t,o).forEach((function(t){t.allowIn.push(e)}))}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowContentOf}function ol(t,e){var n,i=p(t[e].allowWhere);try{for(i.s();!(n=i.n()).done;){var o=t[n.value];if(o){var r,a=o.allowIn;(r=t[e].allowIn).push.apply(r,m(a))}}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowWhere}function rl(t,e){var n,i=p(t[e].allowAttributesOf);try{for(i.s();!(n=i.n()).done;){var o=t[n.value];if(o){var r,a=o.allowAttributes;(r=t[e].allowAttributes).push.apply(r,m(a))}}}catch(t){i.e(t)}finally{i.f()}delete t[e].allowAttributesOf}function al(t,e){var n,i=t[e],o=p(i.inheritTypesFrom);try{for(o.s();!(n=o.n()).done;){var r=t[n.value];if(r){var a,s=Object.keys(r).filter((function(t){return t.startsWith("is")})),l=p(s);try{for(l.s();!(a=l.n()).done;){var c=a.value;c in i||(i[c]=r[c])}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){o.e(t)}finally{o.f()}delete i.inheritTypesFrom}function sl(t,e){var n=t[e],i=n.allowIn.filter((function(e){return t[e]}));n.allowIn=Array.from(new Set(i))}function ll(t,e){var n,i=p(t[e].allowIn);try{for(i.s();!(n=i.n()).done;){t[n.value].allowChildren.push(e)}}catch(t){i.e(t)}finally{i.f()}}function cl(t,e){var n=t[e];n.allowAttributes=Array.from(new Set(n.allowAttributes))}function ul(t,e,n){var i,o=p(t);try{for(o.s();!(i=o.n()).done;){var r,a=i.value;"string"==typeof a[n]?e[n].push(a[n]):Array.isArray(a[n])&&(r=e[n]).push.apply(r,m(a[n]))}}catch(t){o.e(t)}finally{o.f()}}function dl(t,e){var n,i=t[e];return(n=t,Object.keys(n).map((function(t){return n[t]}))).filter((function(t){return t.allowIn.includes(i.name)}))}function hl(t){return"string"==typeof t||t.is("documentFragment")?{name:"string"==typeof t?t:"$documentFragment",getAttributeKeys:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:case"end":return t.stop()}}),t)})),getAttribute:function(){}}:{name:t.is("element")?t.name:"$text",getAttributeKeys:h().mark((function e(){return h().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.delegateYield(t.getAttributeKeys(),"t0",1);case 1:case"end":return e.stop()}}),e)})),getAttribute:function(e){return t.getAttribute(e)}}}function fl(t,e,n){var i,o=p(e.getAttributeKeys());try{for(o.s();!(i=o.n()).done;){var r=i.value;t.checkAttribute(e,r)||n.removeAttribute(r,e)}}catch(t){o.e(t)}finally{o.f()}}var pl=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t),this._splitParts=new Map,this._cursorParents=new Map,this._modelCursor=null,this.conversionApi=Object.assign({},e),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this),this.conversionApi.safeInsert=this._safeInsert.bind(this),this.conversionApi.updateConversionResult=this._updateConversionResult.bind(this),this.conversionApi.splitToAllowedParent=this._splitToAllowedParent.bind(this),this.conversionApi.getSplitParts=this._getSplitParts.bind(this)}return S(t,[{key:"convert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:["$root"];this.fire("viewCleanup",t),this._modelCursor=function(t,e){var n,i,o=p(new tl(t));try{for(o.s();!(i=o.n()).done;){var r,a=i.value,s={},l=p(a.getAttributeKeys());try{for(l.s();!(r=l.n()).done;){var c=r.value;s[c]=a.getAttribute(c)}}catch(t){l.e(t)}finally{l.f()}var u=e.createElement(a.name,s);n&&e.append(u,n),n=es._createAt(u,0)}}catch(t){o.e(t)}finally{o.f()}return n}(n,e),this.conversionApi.writer=e,this.conversionApi.consumable=Qs.createFrom(t),this.conversionApi.store={};var i=this._convertItem(t,this._modelCursor).modelRange,o=e.createDocumentFragment();if(i){this._removeEmptyElements();for(var r=0,a=Array.from(this._modelCursor.parent.getChildren());r<a.length;r++){var s=a[r];e.append(s,o)}o.markers=function(t,e){var n,i=new Set,o=new Map,r=p(rs._createIn(t).getItems());try{for(r.s();!(n=r.n()).done;){var a=n.value;"$marker"==a.name&&i.add(a)}}catch(t){r.e(t)}finally{r.f()}var s,l=p(i);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=c.getAttribute("data-name"),d=e.createPositionBefore(c);o.has(u)?o.get(u).end=d.clone():o.set(u,new rs(d.clone())),e.remove(c)}}catch(t){l.e(t)}finally{l.f()}return o}(o,e)}return this._modelCursor=null,this._splitParts.clear(),this._cursorParents.clear(),this.conversionApi.writer=null,this.conversionApi.store=null,o}},{key:"_convertItem",value:function(t,e){var n=Object.assign({viewItem:t,modelCursor:e,modelRange:null});if(t.is("element")?this.fire("element:"+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 rs))throw new x("view-conversion-dispatcher-incorrect-result",this);return{modelRange:n.modelRange,modelCursor:n.modelCursor}}},{key:"_convertChildren",value:function(t,e){for(var n=e.is("position")?e:es._createAt(e,0),i=new rs(n),o=0,r=Array.from(t.getChildren());o<r.length;o++){var a=r[o],s=this._convertItem(a,n);s.modelRange instanceof rs&&(i.end=s.modelRange.end,n=s.modelCursor)}return{modelRange:i,modelCursor:n}}},{key:"_safeInsert",value:function(t,e){var n=this._splitToAllowedParent(t,e);return!!n&&(this.conversionApi.writer.insert(t,n.position),!0)}},{key:"_updateConversionResult",value:function(t,e){var n=this._getSplitParts(t),i=this.conversionApi.writer;e.modelRange||(e.modelRange=i.createRange(i.createPositionBefore(t),i.createPositionAfter(n[n.length-1])));var o=this._cursorParents.get(t);e.modelCursor=o?i.createPositionAt(o,0):e.modelRange.end}},{key:"_splitToAllowedParent",value:function(t,e){var n=this.conversionApi,i=n.schema,o=n.writer,r=i.findAllowedParent(e,t);if(r){if(r===e.parent)return{position:e};this._modelCursor.parent.getAncestors().includes(r)&&(r=null)}if(!r)return js(e,t,i)?{position:Vs(e,o)}:null;var a,s=this.conversionApi.writer.split(e,r),l=[],c=p(s.range.getWalker());try{for(c.s();!(a=c.n()).done;){var u=a.value;if("elementEnd"==u.type)l.push(u.item);else{var d=l.pop(),h=u.item;this._registerSplitPair(d,h)}}}catch(t){c.e(t)}
2finally{c.f()}var f=s.range.end.parent;return this._cursorParents.set(t,f),{position:s.position,cursorParent:f}}},{key:"_registerSplitPair",value:function(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(t){return this._splitParts.has(t)?this._splitParts.get(t):[t]}},{key:"_removeEmptyElements",value:function(){var t,e=!1,n=p(this._splitParts.keys());try{for(n.s();!(t=n.n()).done;){var i=t.value;i.isEmpty&&(this.conversionApi.writer.remove(i),this._splitParts.delete(i),e=!0)}}catch(t){n.e(t)}finally{n.f()}e&&this._removeEmptyElements()}}]),t}();ke(pl,N);var ml=function(){function t(){I(this,t)}return S(t,[{key:"getHtml",value:function(t){var e=document.implementation.createHTMLDocument("").createElement("div");return e.appendChild(t),e.innerHTML}}]),t}(),gl=function(){function t(e){I(this,t),this.domParser=new DOMParser,this.domConverter=new Sr(e,{renderingMode:"data"}),this.htmlWriter=new ml}return S(t,[{key:"toData",value:function(t){var e=this.domConverter.viewToDom(t,document);return this.htmlWriter.getHtml(e)}},{key:"toView",value:function(t){var e=this._toDom(t);return this.domConverter.domToView(e)}},{key:"registerRawContentMatcher",value:function(t){this.domConverter.registerRawContentMatcher(t)}},{key:"useFillerType",value:function(t){this.domConverter.blockFillerMode="marked"==t?"markedNbsp":"nbsp"}},{key:"_toDom",value:function(t){t.match(/<(?:html|body|head|meta)(?:\s[^>]*)?>/i)||(t="<body>".concat(t,"</body>"));for(var e=this.domParser.parseFromString(t,"text/html"),n=e.createDocumentFragment(),i=e.body.childNodes;i.length>0;)n.appendChild(i[0]);return n}}]),t}(),vl=function(){function t(e,n){var i=this;I(this,t),this.model=e,this.mapper=new as,this.downcastDispatcher=new cs({mapper:this.mapper,schema:e.schema}),this.downcastDispatcher.on("insert:$text",(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.writer,o=n.mapper.toViewPosition(e.range.start),r=i.createText(e.item.data);i.insert(o,r)}}),{priority:"lowest"}),this.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"}),this.upcastDispatcher=new pl({schema:e.schema}),this.viewDocument=new mo(n),this.stylesProcessor=n,this.htmlProcessor=new gl(this.viewDocument),this.processor=this.htmlProcessor,this._viewWriter=new Fo(this.viewDocument),this.upcastDispatcher.on("text",(function(t,e,n){var i=n.schema,o=n.consumable,r=n.writer,a=e.modelCursor;if(o.test(e.viewItem)){if(!i.checkChild(a,"$text")){if(!js(a,"$text",i))return;a=Vs(a,r)}o.consume(e.viewItem);var s=r.createText(e.viewItem.data);r.insert(s,a),e.modelRange=r.createRange(a,a.getShiftedBy(s.offsetSize)),e.modelCursor=e.modelRange.end}}),{priority:"lowest"}),this.upcastDispatcher.on("element",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var i=n.convertChildren(e.viewItem,e.modelCursor),o=i.modelRange,r=i.modelCursor;e.modelRange=o,e.modelCursor=r}}),{priority:"lowest"}),this.upcastDispatcher.on("documentFragment",(function(t,e,n){if(!e.modelRange&&n.consumable.consume(e.viewItem,{name:!0})){var i=n.convertChildren(e.viewItem,e.modelCursor),o=i.modelRange,r=i.modelCursor;e.modelRange=o,e.modelCursor=r}}),{priority:"lowest"}),this.decorate("init"),this.decorate("set"),this.decorate("get"),this.on("init",(function(){i.fire("ready")}),{priority:"lowest"}),this.on("ready",(function(){i.model.enqueueChange({isUndoable:!1},Rs)}),{priority:"lowest"})}return S(t,[{key:"get",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.rootName,n=void 0===e?"main":e,i=t.trim,o=void 0===i?"empty":i;if(!this._checkIfRootsExists([n]))throw new x("datacontroller-get-non-existent-root",this);var r=this.model.document.getRoot(n);return"empty"!==o||this.model.hasContent(r,{ignoreWhitespaces:!0})?this.stringify(r,t):""}},{key:"stringify",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.toView(t,e);return this.processor.toData(n)}},{key:"toView",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.viewDocument,i=this._viewWriter;this.mapper.clearBindings();var o=rs._createIn(t),r=new Oo(n);this.mapper.bindElements(t,r);var a=t.is("documentFragment")?t.markers:function(t){var e=[],n=t.root.document;if(!n)return new Map;var i,o=rs._createIn(t),r=p(n.model.markers);try{for(r.s();!(i=r.n()).done;){var a=i.value,s=a.getRange(),l=s.isCollapsed,c=s.start.isEqual(o.start)||s.end.isEqual(o.end);if(l&&c)e.push([a.name,s]);else{var u=o.getIntersection(s);u&&e.push([a.name,u])}}}catch(t){r.e(t)}finally{r.f()}return e.sort((function(t,e){var n=f(t,2),i=n[0],o=n[1],r=f(e,2),a=r[0],s=r[1];if("after"!==o.end.compareWith(s.start))return 1;if("before"!==o.start.compareWith(s.end))return-1;switch(o.start.compareWith(s.start)){case"before":return 1;case"after":return-1;default:switch(o.end.compareWith(s.end)){case"before":return 1;case"after":return-1;default:return a.localeCompare(i)}}})),new Map(e)}(t);return this.downcastDispatcher.convert(o,a,i,e),r}},{key:"init",value:function(t){var e=this;if(this.model.document.version)throw new x("datacontroller-init-document-not-empty",this);var n={};if("string"==typeof t?n.main=t:n=t,!this._checkIfRootsExists(Object.keys(n)))throw new x("datacontroller-init-non-existent-root",this);return this.model.enqueueChange({isUndoable:!1},(function(t){for(var i=0,o=Object.keys(n);i<o.length;i++){var r=o[i],a=e.model.document.getRoot(r);t.insert(e.parse(n[r],a),a,0)}})),Promise.resolve()}},{key:"set",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i={};if("string"==typeof t?i.main=t:i=t,!this._checkIfRootsExists(Object.keys(i)))throw new x("datacontroller-set-non-existent-root",this);this.model.enqueueChange(n.batchType||{},(function(t){t.setSelection(null),t.removeSelectionAttribute(e.model.document.selection.getAttributeKeys());for(var n=0,o=Object.keys(i);n<o.length;n++){var r=o[n],a=e.model.document.getRoot(r);t.remove(t.createRangeIn(a)),t.insert(e.parse(i[r],a),a,0)}}))}},{key:"parse",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root",n=this.processor.toView(t);return this.toModel(n,e)}},{key:"toModel",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"$root";return this.model.change((function(i){return e.upcastDispatcher.convert(t,i,n)}))}},{key:"addStyleProcessorRules",value:function(t){t(this.stylesProcessor)}},{key:"registerRawContentMatcher",value:function(t){this.processor&&this.processor!==this.htmlProcessor&&this.processor.registerRawContentMatcher(t),this.htmlProcessor.registerRawContentMatcher(t)}},{key:"destroy",value:function(){this.stopListening()}},{key:"_checkIfRootsExists",value:function(t){var e,n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(!this.model.document.getRootNames().includes(i))return!1}}catch(t){n.e(t)}finally{n.f()}return!0}}]),t}();ke(vl,he);var kl=function(){function t(e,n){I(this,t),this._helpers=new Map,this._downcast=ei(e),this._createConversionHelpers({name:"downcast",dispatchers:this._downcast,isDowncast:!0}),this._upcast=ei(n),this._createConversionHelpers({name:"upcast",dispatchers:this._upcast,isDowncast:!1})}
2return S(t,[{key:"addAlias",value:function(t,e){var n=this._downcast.includes(e);if(!this._upcast.includes(e)&&!n)throw new x("conversion-add-alias-dispatcher-not-registered",this);this._createConversionHelpers({name:t,dispatchers:[e],isDowncast:n})}},{key:"for",value:function(t){if(!this._helpers.has(t))throw new x("conversion-for-unknown-group",this);return this._helpers.get(t)}},{key:"elementToElement",value:function(t){this.for("downcast").elementToElement(t);var e,n=p(bl(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.model,r=i.view;this.for("upcast").elementToElement({model:o,view:r,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToElement",value:function(t){this.for("downcast").attributeToElement(t);var e,n=p(bl(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.model,r=i.view;this.for("upcast").elementToAttribute({view:r,model:o,converterPriority:t.converterPriority})}}catch(t){n.e(t)}finally{n.f()}}},{key:"attributeToAttribute",value:function(t){this.for("downcast").attributeToAttribute(t);var e,n=p(bl(t));try{for(n.s();!(e=n.n()).done;){var i=e.value,o=i.model,r=i.view;this.for("upcast").attributeToAttribute({view:r,model:o})}}catch(t){n.e(t)}finally{n.f()}}},{key:"_createConversionHelpers",value:function(t){var e=t.name,n=t.dispatchers,i=t.isDowncast;if(this._helpers.has(e))throw new x("conversion-group-exists",this);var o=i?new Ds(n):new Hs(n);this._helpers.set(e,o)}}]),t}();function bl(t){var e,n,o,r,a,s;return h().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:if(!t.model.values){i.next=20;break}e=p(t.model.values),i.prev=2,e.s();case 4:if((n=e.n()).done){i.next=10;break}return o=n.value,r={key:t.model.key,value:o},a=t.view[o],s=t.upcastAlso?t.upcastAlso[o]:void 0,i.delegateYield(yl(r,a,s),"t0",8);case 8:i.next=4;break;case 10:i.next=15;break;case 12:i.prev=12,i.t1=i.catch(2),e.e(i.t1);case 15:return i.prev=15,e.f(),i.finish(15);case 18:i.next=21;break;case 20:return i.delegateYield(yl(t.model,t.view,t.upcastAlso),"t2",21);case 21:case"end":return i.stop()}}),i,null,[[2,12,15,18]])}function yl(t,e,n){var i,r,a;return h().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:return o.next=2,{model:t,view:e};case 2:if(!n){o.next=20;break}i=p(ei(n)),o.prev=4,i.s();case 6:if((r=i.n()).done){o.next=12;break}return a=r.value,o.next=10,{model:t,view:a};case 10:o.next=6;break;case 12:o.next=17;break;case 14:o.prev=14,o.t0=o.catch(4),i.e(o.t0);case 17:return o.prev=17,i.f(),o.finish(17);case 20:case"end":return o.stop()}}),o,null,[[4,14,17,20]])}var _l=function(){function t(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t),"string"==typeof e&&(e="transparent"===e?{isUndoable:!1}:{},E("batch-constructor-deprecated-string-type"));var n=e,i=n.isUndoable,o=void 0===i||i,r=n.isLocal,a=void 0===r||r,s=n.isUndo,l=void 0!==s&&s,c=n.isTyping,u=void 0!==c&&c;this.operations=[],this.isUndoable=o,this.isLocal=a,this.isUndo=l,this.isTyping=u}return S(t,[{key:"type",get:function(){return E("batch-type-deprecated"),"default"}},{key:"baseVersion",get:function(){var t,e=p(this.operations);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==n.baseVersion)return n.baseVersion}}catch(t){e.e(t)}finally{e.f()}return null}},{key:"addOperation",value:function(t){return t.batch=this,this.operations.push(t),t}}]),t}(),wl=function(){function t(e){I(this,t),this.baseVersion=e,this.isDocumentOperation=null!==this.baseVersion,this.batch=null}return S(t,[{key:"_validate",value:function(){}},{key:"toJSON",value:function(){var t=Object.assign({},this);return t.__className=this.constructor.className,delete t.batch,delete t.isDocumentOperation,t}}],[{key:"className",get:function(){return"Operation"}},{key:"fromJSON",value:function(t){return new this(t.baseVersion)}}]),t}(),Cl=function(t){function e(t){I(this,e),this.markers=new Map,this._children=new Qa,t&&this._insertChild(0,t)}return S(e,[{key:Symbol.iterator,value:function(){return this.getChildren()}},{key:"childCount",get:function(){return this._children.length}},{key:"maxOffset",get:function(){return this._children.maxOffset}},{key:"isEmpty",get:function(){return 0===this.childCount}},{key:"root",get:function(){return this}},{key:"parent",get:function(){return null}},{key:"is",value:function(t){return"documentFragment"===t||"model:documentFragment"===t}},{key:"getChild",value:function(t){return this._children.getNode(t)}},{key:"getChildren",value:function(){return this._children[Symbol.iterator]()}},{key:"getChildIndex",value:function(t){return this._children.getNodeIndex(t)}},{key:"getChildStartOffset",value:function(t){return this._children.getNodeStartOffset(t)}},{key:"getPath",value:function(){return[]}},{key:"getNodeByPath",value:function(t){var e,n=this,i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;n=n.getChild(n.offsetToIndex(o))}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"offsetToIndex",value:function(t){return this._children.offsetToIndex(t)}},{key:"toJSON",value:function(){var t,e=[],n=p(this._children);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.push(i.toJSON())}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"_appendChild",value:function(t){this._insertChild(this.childCount,t)}},{key:"_insertChild",value:function(t,e){var n,i=function(t){return"string"==typeof t?[new Ya(t)]:(Jn(t)||(t=[t]),Array.from(t).map((function(t){return"string"==typeof t?new Ya(t):t instanceof Ka?new Ya(t.data,t.getAttributes()):t})))}(e),o=p(i);try{for(o.s();!(n=o.n()).done;){var r=n.value;null!==r.parent&&r._remove(),r.parent=this}}catch(t){o.e(t)}finally{o.f()}this._children._insertNodes(t,i)}},{key:"_removeChildren",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1,i=this._children._removeNodes(t,n),o=p(i);try{for(o.s();!(e=o.n()).done;){e.value.parent=null}}catch(t){o.e(t)}finally{o.f()}return i}}],[{key:"fromJSON",value:function(t){var n,i=[],o=p(t);try{for(o.s();!(n=o.n()).done;){var r=n.value;r.name?i.push(Ja.fromJSON(r)):i.push(Ya.fromJSON(r))}}catch(t){o.e(t)}finally{o.f()}return new e(i)}}]),e}();function Al(t,e){var n=(e=El(e)).reduce((function(t,e){return t+e.offsetSize}),0),i=t.parent;Tl(t);var o=t.index;return i._insertChild(o,e),Sl(i,o+e.length),Sl(i,o),new rs(t,t.getShiftedBy(n))}function xl(t){if(!t.isFlat)throw new x("operation-utils-remove-range-not-flat",this);var e=t.start.parent;Tl(t.start),Tl(t.end);var n=e._removeChildren(t.start.index,t.end.index-t.start.index);return Sl(e,t.start.index),n}function Dl(t,e){if(!t.isFlat)throw new x("operation-utils-move-range-not-flat",this);var n=xl(t);return Al(e=e._getTransformedByDeletion(t.start,t.end.offset-t.start.offset),n)}function El(t){var e=[];t instanceof Array||(t=[t]);for(var n=0;n<t.length;n++)if("string"==typeof t[n])e.push(new Ya(t[n]));else if(t[n]instanceof Ka)e.push(new Ya(t[n].data,t[n].getAttributes()));else if(t[n]instanceof Cl||t[n]instanceof Qa){var i,o=p(t[n]);try{for(o.s();!(i=o.n()).done;){var r=i.value;e.push(r)}}catch(t){o.e(t)}finally{o.f()}}else t[n]instanceof $a&&e.push(t[n]);for(var a=1;a<e.length;a++){var s=e[a],l=e[a-1];s instanceof Ya&&l instanceof Ya&&Il(s,l)&&(e.splice(a-1,2,new Ya(l.data+s.data,l.getAttributes())),a--)}return e}function Sl(t,e){var n=t.getChild(e-1),i=t.getChild(e);if(n&&i&&n.is("$text")&&i.is("$text")&&Il(n,i)){var o=new Ya(n.data+i.data,n.getAttributes());t._removeChildren(e-1,2),t._insertChild(e-1,o)}}function Tl(t){var e=t.textNode,n=t.parent;if(e){var i=t.offset-e.startOffset,o=e.index;n._removeChildren(o,1);var r=new Ya(e.data.substr(0,i),e.getAttributes()),a=new Ya(e.data.substr(i),e.getAttributes());n._insertChild(o,[r,a])}}function Il(t,e){var n,i=t.getAttributes(),o=e.getAttributes(),r=p(i);try{for(r.s();!(n=r.n()).done;){var a=n.value;if(a[1]!==e.getAttribute(a[0]))return!1;o.next()}}catch(t){r.e(t)}finally{r.f()}return o.next().done}var zl=function(t,e){return Xr(t,e)},Ml=function(t){k(n,t);var e=b(n);function n(t,i,o,r,a){var s;return I(this,n),(s=e.call(this,a)).range=t.clone(),s.key=i,s.oldValue=void 0===o?null:o,s.newValue=void 0===r?null:r,s}return S(n,[{key:"type",get:function(){return null===this.oldValue?"addAttribute":null===this.newValue?"removeAttribute":"changeAttribute"}},{key:"clone",value:function(){return new n(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.range=this.range.toJSON(),t}},{key:"_validate",value:function(){if(!this.range.isFlat)throw new x("attribute-operation-range-not-flat",this);var t,e=p(this.range.getItems({shallow:!0}));try{for(e.s();!(t=e.n()).done;){var n=t.value;if(null!==this.oldValue&&!zl(n.getAttribute(this.key),this.oldValue))throw new x("attribute-operation-wrong-old-value",this,{item:n,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&n.hasAttribute(this.key))throw new x("attribute-operation-attribute-exists",this,{node:n,key:this.key})}}catch(t){e.e(t)}finally{e.f()}}},{key:"_execute",value:function(){zl(this.oldValue,this.newValue)||function(t,e,n){Tl(t.start),Tl(t.end);var i,o=p(t.getItems({shallow:!0}));try{for(o.s();!(i=o.n()).done;){var r=i.value,a=r.is("$textProxy")?r.textNode:r;null!==n?a._setAttribute(e,n):a._removeAttribute(e),Sl(a.parent,a.index)}}catch(t){o.e(t)}finally{o.f()}Sl(t.end.parent,t.end.index)}(this.range,this.key,this.newValue)}}],[{key:"className",get:function(){return"AttributeOperation"}},{key:"fromJSON",value:function(t,e){return new n(rs.fromJSON(t.range,e),t.key,t.oldValue,t.newValue,t.baseVersion)}}]),n}(wl),Bl=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,null)).sourcePosition=t.clone(),o.howMany=i,o}return S(n,[{key:"type",get:function(){return"detach"}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t}},{key:"_validate",value:function(){if(this.sourcePosition.root.document)throw new x("detach-operation-on-document-node",this)}},{key:"_execute",value:function(){xl(rs._createFromPositionAndShift(this.sourcePosition,this.howMany))}}],[{key:"className",get:function(){return"DetachOperation"}}]),n}(wl),Pl=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,r)).sourcePosition=t.clone(),a.sourcePosition.stickiness="toNext",a.howMany=i,a.targetPosition=o.clone(),a.targetPosition.stickiness="toNone",a}return S(n,[{key:"type",get:function(){return"$graveyard"==this.targetPosition.root.rootName?"remove":"$graveyard"==this.sourcePosition.root.rootName?"reinsert":"move"}},{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion)}},{key:"getMovedRangeStart",value:function(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}},{key:"getReversed",value:function(){var t=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);return new this.constructor(this.getMovedRangeStart(),this.howMany,t,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent,n=this.sourcePosition.offset,i=this.targetPosition.offset;if(n+this.howMany>t.maxOffset)throw new x("move-operation-nodes-do-not-exist",this);if(t===e&&n<i&&i<n+this.howMany)throw new x("move-operation-range-into-itself",this);if(this.sourcePosition.root==this.targetPosition.root&&"prefix"==si(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){var o=this.sourcePosition.path.length-1;if(this.targetPosition.path[o]>=n&&this.targetPosition.path[o]<n+this.howMany)throw new x("move-operation-node-into-itself",this)}}},{key:"_execute",value:function(){Dl(rs._createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition)}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.sourcePosition=this.sourcePosition.toJSON(),t.targetPosition=this.targetPosition.toJSON(),t}}],[{key:"className",get:function(){return"MoveOperation"}},{key:"fromJSON",value:function(t,e){var n=es.fromJSON(t.sourcePosition,e),i=es.fromJSON(t.targetPosition,e);return new this(n,t.howMany,i,t.baseVersion)}}]),n}(wl),Ll=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,o)).position=t.clone(),r.position.stickiness="toNone",r.nodes=new Qa(El(i)),r.shouldReceiveAttributes=!1,r}return S(n,[{key:"type",get:function(){return"insert"}},{key:"howMany",get:function(){return this.nodes.maxOffset}},{key:"clone",value:function(){var t=new Qa(m(this.nodes).map((function(t){return t._clone(!0)}))),e=new n(this.position,t,this.baseVersion);return e.shouldReceiveAttributes=this.shouldReceiveAttributes,e}},{key:"getReversed",value:function(){var t=this.position.root.document.graveyard,e=new es(t,[0]);return new Pl(this.position,this.nodes.maxOffset,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.parent;if(!t||t.maxOffset<this.position.offset)throw new x("insert-operation-position-invalid",this)}},{key:"_execute",value:function(){var t=this.nodes;this.nodes=new Qa(m(t).map((function(t){return t._clone(!0)}))),Al(this.position,t)}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t.nodes=this.nodes.toJSON(),t}}],[{key:"className",get:function(){return"InsertOperation"}},{key:"fromJSON",value:function(t,e){var i,o=[],r=p(t.nodes);try{for(r.s();!(i=r.n()).done;){var a=i.value;a.name?o.push(Ja.fromJSON(a)):o.push(Ya.fromJSON(a))}}catch(t){r.e(t)}finally{r.f()}var s=new n(es.fromJSON(t.position,e),o,t.baseVersion);return s.shouldReceiveAttributes=t.shouldReceiveAttributes,s}}]),n}(wl),Nl=function(t){k(n,t);var e=b(n);function n(t,i,o,r,a,s){var l;return I(this,n),(l=e.call(this,s)).name=t,l.oldRange=i?i.clone():null,l.
2newRange=o?o.clone():null,l.affectsData=a,l._markers=r,l}return S(n,[{key:"type",get:function(){return"marker"}},{key:"clone",value:function(){return new n(this.name,this.oldRange,this.newRange,this._markers,this.affectsData,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.name,this.newRange,this.oldRange,this._markers,this.affectsData,this.baseVersion+1)}},{key:"_execute",value:function(){var t=this.newRange?"_set":"_remove";this._markers[t](this.name,this.newRange,!0,this.affectsData)}},{key:"toJSON",value:function(){var t=d(D(n.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(){return"MarkerOperation"}},{key:"fromJSON",value:function(t,e){return new n(t.name,t.oldRange?rs.fromJSON(t.oldRange,e):null,t.newRange?rs.fromJSON(t.newRange,e):null,e.model.markers,t.affectsData,t.baseVersion)}}]),n}(wl),Ol=function(t){k(n,t);var e=b(n);function n(t,i,o,r){var a;return I(this,n),(a=e.call(this,r)).position=t,a.position.stickiness="toNext",a.oldName=i,a.newName=o,a}return S(n,[{key:"type",get:function(){return"rename"}},{key:"clone",value:function(){return new n(this.position.clone(),this.oldName,this.newName,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.position.clone(),this.newName,this.oldName,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.position.nodeAfter;if(!(t instanceof Ja))throw new x("rename-operation-wrong-position",this);if(t.name!==this.oldName)throw new x("rename-operation-wrong-name",this)}},{key:"_execute",value:function(){this.position.nodeAfter.name=this.newName}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.position=this.position.toJSON(),t}}],[{key:"className",get:function(){return"RenameOperation"}},{key:"fromJSON",value:function(t,e){return new n(es.fromJSON(t.position,e),t.oldName,t.newName,t.baseVersion)}}]),n}(wl),Fl=function(t){k(n,t);var e=b(n);function n(t,i,o,r,a){var s;return I(this,n),(s=e.call(this,a)).root=t,s.key=i,s.oldValue=o,s.newValue=r,s}return S(n,[{key:"type",get:function(){return null===this.oldValue?"addRootAttribute":null===this.newValue?"removeRootAttribute":"changeRootAttribute"}},{key:"clone",value:function(){return new n(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}},{key:"_validate",value:function(){if(this.root!=this.root.root||this.root.is("documentFragment"))throw new x("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 x("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 x("rootattribute-operation-attribute-exists",this,{root:this.root,key:this.key})}},{key:"_execute",value:function(){null!==this.newValue?this.root._setAttribute(this.key,this.newValue):this.root._removeAttribute(this.key)}},{key:"toJSON",value:function(){var t=d(D(n.prototype),"toJSON",this).call(this);return t.root=this.root.toJSON(),t}}],[{key:"className",get:function(){return"RootAttributeOperation"}},{key:"fromJSON",value:function(t,e){if(!e.getRoot(t.root))throw new x("rootattribute-operation-fromjson-no-root",this,{rootName:t.root});return new n(e.getRoot(t.root),t.key,t.oldValue,t.newValue,t.baseVersion)}}]),n}(wl),Rl=function(t){k(n,t);var e=b(n);function n(t,i,o,r,a){var s;return I(this,n),(s=e.call(this,a)).sourcePosition=t.clone(),s.sourcePosition.stickiness="toPrevious",s.howMany=i,s.targetPosition=o.clone(),s.targetPosition.stickiness="toNext",s.graveyardPosition=r.clone(),s}return S(n,[{key:"type",get:function(){return"merge"}},{key:"deletionPosition",get:function(){return new es(this.sourcePosition.root,this.sourcePosition.path.slice(0,-1))}},{key:"movedRange",get:function(){var t=this.sourcePosition.getShiftedBy(Number.POSITIVE_INFINITY);return new rs(this.sourcePosition,t)}},{key:"clone",value:function(){return new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var t=this.targetPosition._getTransformedByMergeOperation(this),e=this.sourcePosition.path.slice(0,-1),n=new es(this.sourcePosition.root,e)._getTransformedByMergeOperation(this);return new jl(t,this.howMany,n,this.graveyardPosition,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.sourcePosition.parent,e=this.targetPosition.parent;if(!t.parent)throw new x("merge-operation-source-position-invalid",this);if(!e.parent)throw new x("merge-operation-target-position-invalid",this);if(this.howMany!=t.maxOffset)throw new x("merge-operation-how-many-invalid",this)}},{key:"_execute",value:function(){var t=this.sourcePosition.parent;Dl(rs._createIn(t),this.targetPosition),Dl(rs._createOn(t),this.graveyardPosition)}},{key:"toJSON",value:function(){var t=d(D(n.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(){return"MergeOperation"}},{key:"fromJSON",value:function(t,e){var n=es.fromJSON(t.sourcePosition,e),i=es.fromJSON(t.targetPosition,e),o=es.fromJSON(t.graveyardPosition,e);return new this(n,t.howMany,i,o,t.baseVersion)}}]),n}(wl),jl=function(t){k(n,t);var e=b(n);function n(t,i,o,r,a){var s;return I(this,n),(s=e.call(this,a)).splitPosition=t.clone(),s.splitPosition.stickiness="toNext",s.howMany=i,s.insertionPosition=o,s.graveyardPosition=r?r.clone():null,
2s.graveyardPosition&&(s.graveyardPosition.stickiness="toNext"),s}return S(n,[{key:"type",get:function(){return"split"}},{key:"moveTargetPosition",get:function(){var t=this.insertionPosition.path.slice();return t.push(0),new es(this.insertionPosition.root,t)}},{key:"movedRange",get:function(){var t=this.splitPosition.getShiftedBy(Number.POSITIVE_INFINITY);return new rs(this.splitPosition,t)}},{key:"clone",value:function(){return new this.constructor(this.splitPosition,this.howMany,this.insertionPosition,this.graveyardPosition,this.baseVersion)}},{key:"getReversed",value:function(){var t=this.splitPosition.root.document.graveyard,e=new es(t,[0]);return new Rl(this.moveTargetPosition,this.howMany,this.splitPosition,e,this.baseVersion+1)}},{key:"_validate",value:function(){var t=this.splitPosition.parent,e=this.splitPosition.offset;if(!t||t.maxOffset<e)throw new x("split-operation-position-invalid",this);if(!t.parent)throw new x("split-operation-split-in-root",this);if(this.howMany!=t.maxOffset-this.splitPosition.offset)throw new x("split-operation-how-many-invalid",this);if(this.graveyardPosition&&!this.graveyardPosition.nodeAfter)throw new x("split-operation-graveyard-position-invalid",this)}},{key:"_execute",value:function(){var t=this.splitPosition.parent;if(this.graveyardPosition)Dl(rs._createFromPositionAndShift(this.graveyardPosition,1),this.insertionPosition);else{var e=t._clone();Al(this.insertionPosition,e)}Dl(new rs(es._createAt(t,this.splitPosition.offset),es._createAt(t,t.maxOffset)),this.moveTargetPosition)}},{key:"toJSON",value:function(){var t=d(D(n.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(){return"SplitOperation"}},{key:"getInsertionPosition",value:function(t){var e=t.path.slice(0,-1);return e[e.length-1]++,new es(t.root,e,"toPrevious")}},{key:"fromJSON",value:function(t,e){var n=es.fromJSON(t.splitPosition,e),i=es.fromJSON(t.insertionPosition,e),o=t.graveyardPosition?es.fromJSON(t.graveyardPosition,e):null;return new this(n,t.howMany,i,o,t.baseVersion)}}]),n}(wl),Vl=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"main";return I(this,n),(o=e.call(this,i))._document=t,o.rootName=r,o}return S(n,[{key:"document",get:function(){return this._document}},{key:"is",value: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}},{key:"toJSON",value:function(){return this.rootName}}]),n}(Ja),Hl=function(){function t(e,n){I(this,t),this.model=e,this.batch=n}return S(t,[{key:"createText",value:function(t,e){return new Ya(t,e)}},{key:"createElement",value:function(t,e){return new Ja(t,e)}},{key:"createDocumentFragment",value:function(){return new Cl}},{key:"cloneElement",value:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return t._clone(e)}},{key:"insert",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this._assertWriterUsedCorrectly(),!(t instanceof Ya&&""==t.data)){var i=es._createAt(e,n);if(t.parent){if(Gl(t.root,i.root))return void this.move(rs._createOn(t),i);if(t.root.document)throw new x("model-writer-insert-forbidden-move",this);this.remove(t)}var o=i.root.document?i.root.document.version:null,r=new Ll(i,t,o);if(t instanceof Ya&&(r.shouldReceiveAttributes=!0),this.batch.addOperation(r),this.model.applyOperation(r),t instanceof Cl){var a,s=p(t.markers);try{for(s.s();!(a=s.n()).done;){var l=f(a.value,2),c=l[0],u=l[1],d=es._createAt(u.root,0),h={range:new rs(u.start._getCombined(d,i),u.end._getCombined(d,i)),usingOperation:!0,affectsData:!0};this.model.markers.has(c)?this.updateMarker(c,h):this.addMarker(c,h)}}catch(t){s.e(t)}finally{s.f()}}}}},{key:"insertText",value:function(t,e,n,i){e instanceof Cl||e instanceof Ja||e instanceof es?this.insert(this.createText(t),e,n):this.insert(this.createText(t,e),n,i)}},{key:"insertElement",value:function(t,e,n,i){e instanceof Cl||e instanceof Ja||e instanceof es?this.insert(this.createElement(t),e,n):this.insert(this.createElement(t,e),n,i)}},{key:"append",value:function(t,e){this.insert(t,e,"end")}},{key:"appendText",value:function(t,e,n){e instanceof Cl||e instanceof Ja?this.insert(this.createText(t),e,"end"):this.insert(this.createText(t,e),n,"end")}},{key:"appendElement",value:function(t,e,n){e instanceof Cl||e instanceof Ja?this.insert(this.createElement(t),e,"end"):this.insert(this.createElement(t,e),n,"end")}},{key:"setAttribute",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),n instanceof rs){var i,o=p(n.getMinimalFlatRanges());try{for(o.s();!(i=o.n()).done;){Ul(this,t,e,i.value)}}catch(t){o.e(t)}finally{o.f()}}else Zl(this,t,e,n)}},{key:"setAttributes",value:function(t,e){var n,i=p(hi(t));try{for(i.s();!(n=i.n()).done;){var o=f(n.value,2),r=o[0],a=o[1];this.setAttribute(r,a,e)}}catch(t){i.e(t)}finally{i.f()}}},{key:"removeAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),e instanceof rs){var n,i=p(e.getMinimalFlatRanges());try{for(i.s();!(n=i.n()).done;){Ul(this,t,null,n.value)}}catch(t){i.e(t)}finally{i.f()}}else Zl(this,t,null,e)}},{key:"clearAttributes",value:function(t){var e=this;this._assertWriterUsedCorrectly();var n=function(t){var n,i=p(t.getAttributeKeys());try{for(i.s();!(n=i.n()).done;){var o=n.value;e.removeAttribute(o,t)}}catch(t){i.e(t)}finally{i.f()}};if(t instanceof rs){var i,o=p(t.getItems());try{for(o.s();!(i=o.n()).done;){n(i.value)}}catch(t){o.e(t)}finally{o.f()}}else n(t)}},{key:"move",value:function(t,e,n){if(this._assertWriterUsedCorrectly(),!(t instanceof rs))throw new x("writer-move-invalid-range",this);if(!t.isFlat)throw new x("writer-move-range-not-flat",this);var i=es._createAt(e,n);if(!i.isEqual(t.start)){if(this._addOperationForAffectedMarkers("move",t),!Gl(t.root,i.root))throw new x("writer-move-different-document",this);var o=t.root.document?t.root.document.version:null,r=new Pl(t.start,t.end.offset-t.start.offset,i,o);this.batch.addOperation(r),this.model.applyOperation(r)}}},{key:"remove",value:function(t){this._assertWriterUsedCorrectly();var e,n=p((t instanceof rs?t:rs._createOn(t)).getMinimalFlatRanges().reverse());try{for(n.s();!(e=n.n()).done;){var i=e.value;this._addOperationForAffectedMarkers("move",i),Wl(i.start,i.end.offset-i.start.offset,this.batch,this.model)}}catch(t){n.e(t)}finally{n.f()}}},{key:"merge",value:function(t){this._assertWriterUsedCorrectly();var e=t.nodeBefore,n=t.nodeAfter;if(this._addOperationForAffectedMarkers("merge",t),!(e instanceof Ja))throw new x("writer-merge-no-element-before",this);if(!(n instanceof Ja))throw new x("writer-merge-no-element-after",this);t.root.document?this._merge(t):this._mergeDetached(t)}},{key:"createPositionFromPath",value:function(t,e,n){return this.model.createPositionFromPath(t,e,n)}},{key:"createPositionAt",value:function(t,e){return this.model.createPositionAt(t,e)}},{key:"createPositionAfter",value:function(t){return this.model.createPositionAfter(t)}},{key:"createPositionBefore",value:function(t){return this.model.createPositionBefore(t)}},{key:"createRange",value:function(t,e){return this.model.createRange(t,e)}},{key:"createRangeIn",value:function(t){return this.model.createRangeIn(t)}},{key:"createRangeOn",value:function(t){return this.model.createRangeOn(t)}},{key:"createSelection",value:function(t,e,n){return this.model.createSelection(t,e,n)}},{key:"_mergeDetached",value:function(t){var e=t.nodeBefore,n=t.nodeAfter;this.move(rs._createIn(n),es._createAt(e,"end")),this.remove(n)}},{key:"_merge",value:function(t){var e=es._createAt(t.nodeBefore,"end"),n=es._createAt(t.nodeAfter,0),i=t.root.document.graveyard,o=new es(i,[0]),r=t.root.document.version,a=new Rl(n,t.nodeAfter.maxOffset,e,o,r);this.batch.addOperation(a),this.model.applyOperation(a)}},{key:"rename",value:function(t,e){if(this._assertWriterUsedCorrectly(),!(t instanceof Ja))throw new x("writer-rename-not-element-instance",this);var n=t.root.document?t.root.document.version:null,i=new Ol(es._createBefore(t),t.name,e,n);this.batch.addOperation(i),this.model.applyOperation(i)}},{key:"split",value:function(t,e){this._assertWriterUsedCorrectly();var n,i,o=t.parent;if(!o.parent)throw new x("writer-split-element-no-parent",this);if(e||(e=o.parent),!t.parent.getAncestors({includeSelf:!0}).includes(e))throw new x("writer-split-invalid-limit-element",this);do{var r=o.root.document?o.root.document.version:null,a=o.maxOffset-t.offset,s=jl.getInsertionPosition(t),l=new jl(t,a,s,null,r);this.batch.addOperation(l),this.model.applyOperation(l),n||i||(n=o,i=t.parent.nextSibling),o=(t=this.createPositionAfter(t.parent)).parent}while(o!==e);return{position:t,range:new rs(es._createAt(n,"end"),es._createAt(i,0))}}},{key:"wrap",value:function(t,e){if(this._assertWriterUsedCorrectly(),!t.isFlat)throw new x("writer-wrap-range-not-flat",this);
2var n=e instanceof Ja?e:new Ja(e);if(n.childCount>0)throw new x("writer-wrap-element-not-empty",this);if(null!==n.parent)throw new x("writer-wrap-element-attached",this);this.insert(n,t.start);var i=new rs(t.start.getShiftedBy(1),t.end.getShiftedBy(1));this.move(i,es._createAt(n,0))}},{key:"unwrap",value:function(t){if(this._assertWriterUsedCorrectly(),null===t.parent)throw new x("writer-unwrap-element-no-parent",this);this.move(rs._createIn(t),this.createPositionAfter(t)),this.remove(t)}},{key:"addMarker",value:function(t,e){if(this._assertWriterUsedCorrectly(),!e||"boolean"!=typeof e.usingOperation)throw new x("writer-addmarker-no-usingoperation",this);var n=e.usingOperation,i=e.range,o=void 0!==e.affectsData&&e.affectsData;if(this.model.markers.has(t))throw new x("writer-addmarker-marker-exists",this);if(!i)throw new x("writer-addmarker-no-range",this);return n?(ql(this,t,null,i,o),this.model.markers.get(t)):this.model.markers._set(t,i,n,o)}},{key:"updateMarker",value:function(t,e){this._assertWriterUsedCorrectly();var n="string"==typeof t?t:t.name,i=this.model.markers.get(n);if(!i)throw new x("writer-updatemarker-marker-not-exists",this);if(!e)return E("writer-updatemarker-reconvert-using-editingcontroller",{markerName:n}),void this.model.markers._refresh(i);var o="boolean"==typeof e.usingOperation,r="boolean"==typeof e.affectsData,a=r?e.affectsData:i.affectsData;if(!o&&!e.range&&!r)throw new x("writer-updatemarker-wrong-options",this);var s=i.getRange(),l=e.range?e.range:s;o&&e.usingOperation!==i.managedUsingOperations?e.usingOperation?ql(this,n,null,l,a):(ql(this,n,s,null,a),this.model.markers._set(n,l,void 0,a)):i.managedUsingOperations?ql(this,n,s,l,a):this.model.markers._set(n,l,void 0,a)}},{key:"removeMarker",value:function(t){this._assertWriterUsedCorrectly();var e="string"==typeof t?t:t.name;if(!this.model.markers.has(e))throw new x("writer-removemarker-no-marker",this);var n=this.model.markers.get(e);n.managedUsingOperations?ql(this,e,n.getRange(),null,n.affectsData):this.model.markers._remove(e)}},{key:"setSelection",value:function(t,e,n){this._assertWriterUsedCorrectly(),this.model.document.selection._setTo(t,e,n)}},{key:"setSelectionFocus",value:function(t,e){this._assertWriterUsedCorrectly(),this.model.document.selection._setFocus(t,e)}},{key:"setSelectionAttribute",value:function(t,e){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._setSelectionAttribute(t,e);else{var n,i=p(hi(t));try{for(i.s();!(n=i.n()).done;){var o=f(n.value,2),r=o[0],a=o[1];this._setSelectionAttribute(r,a)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"removeSelectionAttribute",value:function(t){if(this._assertWriterUsedCorrectly(),"string"==typeof t)this._removeSelectionAttribute(t);else{var e,n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._removeSelectionAttribute(i)}}catch(t){n.e(t)}finally{n.f()}}}},{key:"overrideSelectionGravity",value:function(){return this.model.document.selection._overrideGravity()}},{key:"restoreSelectionGravity",value:function(t){this.model.document.selection._restoreGravity(t)}},{key:"_setSelectionAttribute",value:function(t,e){var n=this.model.document.selection;if(n.isCollapsed&&n.anchor.parent.isEmpty){var i=_s._getStoreAttributeKey(t);this.setAttribute(i,e,n.anchor.parent)}n._setAttribute(t,e)}},{key:"_removeSelectionAttribute",value:function(t){var e=this.model.document.selection;if(e.isCollapsed&&e.anchor.parent.isEmpty){var n=_s._getStoreAttributeKey(t);this.removeAttribute(n,e.anchor.parent)}e._removeAttribute(t)}},{key:"_assertWriterUsedCorrectly",value:function(){if(this.model._currentWriter!==this)throw new x("writer-incorrect-use",this)}},{key:"_addOperationForAffectedMarkers",value:function(t,e){var n,i=p(this.model.markers);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.managedUsingOperations){var r=o.getRange(),a=!1;if("move"===t)a=e.containsPosition(r.start)||e.start.isEqual(r.start)||e.containsPosition(r.end)||e.end.isEqual(r.end);else{var s=e.nodeBefore,l=e.nodeAfter,c=r.start.parent==s&&r.start.isAtEnd,u=r.end.parent==l&&0==r.end.offset,d=r.end.nodeAfter==l,h=r.start.nodeAfter==l;a=c||u||d||h}a&&this.updateMarker(o.name,{range:r})}}}catch(t){i.e(t)}finally{i.f()}}}]),t}();function Ul(t,e,n,i){var o,r,a,s,l=t.model,c=l.document,u=i.start,d=p(i.getWalker({shallow:!0}));try{for(d.s();!(s=d.n()).done;){var h=s.value;a=h.item.getAttribute(e),o&&r!=a&&(r!=n&&f(),u=o),o=h.nextPosition,r=a}}catch(t){d.e(t)}finally{d.f()}function f(){var i=new rs(u,o),a=i.root.document?c.version:null,s=new Ml(i,e,r,n,a);t.batch.addOperation(s),l.applyOperation(s)}o instanceof es&&o!=u&&r!=n&&f()}function Zl(t,e,n,i){var o,r,a=t.model,s=a.document,l=i.getAttribute(e);
2if(l!=n){if(i.root===i){var c=i.document?s.version:null;r=new Fl(i,e,l,n,c)}else{var u=(o=new rs(es._createBefore(i),t.createPositionAfter(i))).root.document?s.version:null;r=new Ml(o,e,l,n,u)}t.batch.addOperation(r),a.applyOperation(r)}}function ql(t,e,n,i,o){var r=t.model,a=r.document,s=new Nl(e,n,i,r.markers,o,a.version);t.batch.addOperation(s),r.applyOperation(s)}function Wl(t,e,n,i){var o;if(t.root.document){var r=i.document,a=new es(r.graveyard,[0]);o=new Pl(t,e,a,r.version)}else o=new Bl(t,e);n.addOperation(o),i.applyOperation(o)}function Gl(t,e){return t===e||t instanceof Vl&&e instanceof Vl}var $l=function(){function t(e){I(this,t),this._markerCollection=e,this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set}return S(t,[{key:"isEmpty",get:function(){return 0==this._changesInElement.size&&0==this._changedMarkers.size}},{key:"bufferOperation",value:function(t){switch(t.type){case"insert":if(this._isInInsertedElement(t.position.parent))return;this._markInsert(t.position.parent,t.position.offset,t.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":var e,n=p(t.range.getItems({shallow:!0}));try{for(n.s();!(e=n.n()).done;){var i=e.value;this._isInInsertedElement(i.parent)||this._markAttribute(i)}}catch(t){n.e(t)}finally{n.f()}break;case"remove":case"move":case"reinsert":if(t.sourcePosition.isEqual(t.targetPosition)||t.sourcePosition.getShiftedBy(t.howMany).isEqual(t.targetPosition))return;var o=this._isInInsertedElement(t.sourcePosition.parent),r=this._isInInsertedElement(t.targetPosition.parent);o||this._markRemove(t.sourcePosition.parent,t.sourcePosition.offset,t.howMany),r||this._markInsert(t.targetPosition.parent,t.getMovedRangeStart().offset,t.howMany);break;case"rename":if(this._isInInsertedElement(t.position.parent))return;this._markRemove(t.position.parent,t.position.offset,1),this._markInsert(t.position.parent,t.position.offset,1);var a,s=rs._createFromPositionAndShift(t.position,1),l=p(this._markerCollection.getMarkersIntersectingRange(s));try{for(l.s();!(a=l.n()).done;){var c=a.value,u=c.getData();this.bufferMarkerChange(c.name,u,u)}}catch(t){l.e(t)}finally{l.f()}break;case"split":var d=t.splitPosition.parent;this._isInInsertedElement(d)||this._markRemove(d,t.splitPosition.offset,t.howMany),this._isInInsertedElement(t.insertionPosition.parent)||this._markInsert(t.insertionPosition.parent,t.insertionPosition.offset,1),t.graveyardPosition&&this._markRemove(t.graveyardPosition.parent,t.graveyardPosition.offset,1);break;case"merge":var h=t.sourcePosition.parent;this._isInInsertedElement(h.parent)||this._markRemove(h.parent,h.startOffset,1);var f=t.graveyardPosition.parent;this._markInsert(f,t.graveyardPosition.offset,1);var m=t.targetPosition.parent;this._isInInsertedElement(m)||this._markInsert(m,t.targetPosition.offset,h.maxOffset)}this._cachedChanges=null}},{key:"bufferMarkerChange",value:function(t,e,n){var i=this._changedMarkers.get(t);i?(i.newMarkerData=n,null==i.oldMarkerData.range&&null==n.range&&this._changedMarkers.delete(t)):this._changedMarkers.set(t,{newMarkerData:n,oldMarkerData:e})}},{key:"getMarkersToRemove",value:function(){var t,e=[],n=p(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var i=f(t.value,2),o=i[0],r=i[1];null!=r.oldMarkerData.range&&e.push({name:o,range:r.oldMarkerData.range})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getMarkersToAdd",value:function(){var t,e=[],n=p(this._changedMarkers);try{for(n.s();!(t=n.n()).done;){var i=f(t.value,2),o=i[0],r=i[1];null!=r.newMarkerData.range&&e.push({name:o,range:r.newMarkerData.range})}}catch(t){n.e(t)}finally{n.f()}return e}},{key:"getChangedMarkers",value:function(){return Array.from(this._changedMarkers).map((function(t){var e=f(t,2),n=e[0],i=e[1];return{name:n,data:{oldRange:i.oldMarkerData.range,newRange:i.newMarkerData.range}}}))}},{key:"hasDataChanges",value:function(){var t,e=p(this._changedMarkers.values());try{for(e.s();!(t=e.n()).done;){var n=t.value,i=n.newMarkerData,o=n.oldMarkerData;if(i.affectsData!==o.affectsData)return!0;
2if(i.affectsData)return!(i.range&&o.range&&i.range.isEqual(o.range))}}catch(t){e.e(t)}finally{e.f()}return this._changesInElement.size>0}},{key:"getChanges",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{includeChangesInGraveyard:!1};if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();var e,n=[],i=p(this._changesInElement.keys());try{for(i.s();!(e=i.n()).done;){var o,r=e.value,a=this._changesInElement.get(r).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})),s=this._elementSnapshots.get(r),l=Yl(r.getChildren()),c=Kl(s.length,a),u=0,d=0,h=p(c);try{for(h.s();!(o=h.n()).done;){var f=o.value;if("i"===f)n.push(this._getInsertDiff(r,u,l[u].name)),u++;else if("r"===f)n.push(this._getRemoveDiff(r,u,s[d].name)),d++;else if("a"===f){var g,v=l[u].attributes,k=s[d].attributes,b=void 0;if("$text"==l[u].name)b=new rs(es._createAt(r,u),es._createAt(r,u+1));else{var y=r.offsetToIndex(u);b=new rs(es._createAt(r,u),es._createAt(r.getChild(y),0))}(g=n).push.apply(g,m(this._getAttributesDiff(b,k,v))),u++,d++}else u++,d++}}catch(t){h.e(t)}finally{h.f()}}}catch(t){i.e(t)}finally{i.f()}n.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 _=1,w=0;_<n.length;_++){var C=n[w],A=n[_],x="remove"==C.type&&"remove"==A.type&&"$text"==C.name&&"$text"==A.name&&C.position.isEqual(A.position),D="insert"==C.type&&"insert"==A.type&&"$text"==C.name&&"$text"==A.name&&C.position.parent==A.position.parent&&C.position.offset+C.length==A.position.offset,E="attribute"==C.type&&"attribute"==A.type&&C.position.parent==A.position.parent&&C.range.isFlat&&A.range.isFlat&&C.position.offset+C.length==A.position.offset&&C.attributeKey==A.attributeKey&&C.attributeOldValue==A.attributeOldValue&&C.attributeNewValue==A.attributeNewValue;x||D||E?(C.length++,E&&(C.range.end=C.range.end.getShiftedBy(1)),n[_]=null):w=_}n=n.filter((function(t){return t}));var S,T=p(n);try{for(T.s();!(S=T.n()).done;){var I=S.value;delete I.changeCount,"attribute"==I.type&&(delete I.position,delete I.length)}}catch(t){T.e(t)}finally{T.f()}return this._changeCount=0,this._cachedChangesWithGraveyard=n,this._cachedChanges=n.filter(Ql),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}},{key:"getRefreshedItems",value:function(){return new Set(this._refreshedItems)}},{key:"reset",value:function(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._refreshedItems=new Set,this._cachedChanges=null}},{key:"_refreshItem",value:function(t){if(!this._isInInsertedElement(t.parent)){this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);var e,n=rs._createOn(t),i=p(this._markerCollection.getMarkersIntersectingRange(n));try{for(i.s();!(e=i.n()).done;){var o=e.value,r=o.getData();this.bufferMarkerChange(o.name,r,r)}}catch(t){i.e(t)}finally{i.f()}this._cachedChanges=null}}},{key:"_markInsert",value:function(t,e,n){var i={type:"insert",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i)}},{key:"_markRemove",value:function(t,e,n){var i={type:"remove",offset:e,howMany:n,count:this._changeCount++};this._markChange(t,i),this._removeAllNestedChanges(t,e,n)}},{key:"_markAttribute",value:function(t){var e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}},{key:"_markChange",value:function(t,e){this._makeSnapshot(t);var n=this._getChangesForElement(t);this._handleChange(e,n),n.push(e);for(var i=0;i<n.length;i++)n[i].howMany<1&&(n.splice(i,1),i--)}},{key:"_getChangesForElement",value:function(t){var e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}},{key:"_makeSnapshot",value:function(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,Yl(t.getChildren()))}},{key:"_handleChange",value:function(t,e){t.nodesToHandle=t.howMany;var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value,r=t.offset+t.howMany,a=o.offset+o.howMany;if("insert"==t.type&&("insert"==o.type&&(t.offset<=o.offset?o.offset+=t.howMany:t.offset<a&&(o.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==o.type&&t.offset<o.offset&&(o.offset+=t.howMany),"attribute"==o.type))if(t.offset<=o.offset)o.offset+=t.howMany;else if(t.offset<a){var s=o.howMany;o.howMany=t.offset-o.offset,e.unshift({type:"attribute",offset:r,howMany:s-o.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==o.type)if(r<=o.offset)o.offset-=t.howMany;else if(r<=a)if(t.offset<o.offset){var l=r-o.offset;
2o.offset=t.offset,o.howMany-=l,t.nodesToHandle-=l}else o.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset<=o.offset)t.nodesToHandle-=o.howMany,o.howMany=0;else if(t.offset<a){var c=a-t.offset;o.howMany-=c,t.nodesToHandle-=c}if("remove"==o.type&&(r<=o.offset?o.offset-=t.howMany:t.offset<o.offset&&(t.nodesToHandle+=o.howMany,o.howMany=0)),"attribute"==o.type)if(r<=o.offset)o.offset-=t.howMany;else if(t.offset<o.offset){var u=r-o.offset;o.offset=t.offset,o.howMany-=u}else if(t.offset<a)if(r<=a){var d=o.howMany;o.howMany=t.offset-o.offset;var h=d-o.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:h,count:this._changeCount++})}else o.howMany-=a-t.offset}if("attribute"==t.type){if("insert"==o.type)if(t.offset<o.offset&&r>o.offset){if(r>a){var f={type:"attribute",offset:a,howMany:r-a,count:this._changeCount++};this._handleChange(f,e),e.push(f)}t.nodesToHandle=o.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset>=o.offset&&t.offset<a&&(r>a?(t.nodesToHandle=r-a,t.offset=a):t.nodesToHandle=0);if("remove"==o.type&&t.offset<o.offset&&r>o.offset){var m={type:"attribute",offset:o.offset,howMany:r-o.offset,count:this._changeCount++};this._handleChange(m,e),e.push(m),t.nodesToHandle=o.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==o.type&&(t.offset>=o.offset&&r<=a?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset<=o.offset&&r>=a&&(o.howMany=0))}}}catch(t){i.e(t)}finally{i.f()}t.howMany=t.nodesToHandle,delete t.nodesToHandle}},{key:"_getInsertDiff",value:function(t,e,n){return{type:"insert",position:es._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getRemoveDiff",value:function(t,e,n){return{type:"remove",position:es._createAt(t,e),name:n,length:1,changeCount:this._changeCount++}}},{key:"_getAttributesDiff",value:function(t,e,n){var i=[];n=new Map(n);var o,r=p(e);try{for(r.s();!(o=r.n()).done;){var a=f(o.value,2),s=a[0],l=a[1],c=n.has(s)?n.get(s):null;c!==l&&i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:s,attributeOldValue:l,attributeNewValue:c,changeCount:this._changeCount++}),n.delete(s)}}catch(t){r.e(t)}finally{r.f()}var u,d=p(n);try{for(d.s();!(u=d.n()).done;){var h=f(u.value,2),m=h[0],g=h[1];i.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:m,attributeOldValue:null,attributeNewValue:g,changeCount:this._changeCount++})}}catch(t){d.e(t)}finally{d.f()}return i}},{key:"_isInInsertedElement",value:function(t){var e=t.parent;if(!e)return!1;var n=this._changesInElement.get(e),i=t.startOffset;if(n){var o,r=p(n);try{for(r.s();!(o=r.n()).done;){var a=o.value;if("insert"==a.type&&i>=a.offset&&i<a.offset+a.howMany)return!0}}catch(t){r.e(t)}finally{r.f()}}return this._isInInsertedElement(e)}},{key:"_removeAllNestedChanges",value:function(t,e,n){var i,o=p(new rs(es._createAt(t,e),es._createAt(t,e+n)).getItems({shallow:!0}));try{for(o.s();!(i=o.n()).done;){var r=i.value;r.is("element")&&(this._elementSnapshots.delete(r),this._changesInElement.delete(r),this._removeAllNestedChanges(r,0,r.maxOffset))}}catch(t){o.e(t)}finally{o.f()}}}]),t}();function Yl(t){var e,n=[],i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(o.is("$text"))for(var r=0;r<o.data.length;r++)n.push({name:"$text",attributes:new Map(o.getAttributes())});else n.push({name:o.name,attributes:new Map(o.getAttributes())})}}catch(t){i.e(t)}finally{i.f()}return n}function Kl(t,e){var n,i=[],o=0,r=0,a=p(e);try{for(a.s();!(n=a.n()).done;){var s=n.value;if(s.offset>o){for(var l=0;l<s.offset-o;l++)i.push("e");r+=s.offset-o}if("insert"==s.type){for(var c=0;c<s.howMany;c++)i.push("i");o=s.offset+s.howMany}else if("remove"==s.type){for(var u=0;u<s.howMany;u++)i.push("r");o=s.offset,r+=s.howMany}else i.push.apply(i,m("a".repeat(s.howMany).split(""))),o=s.offset+s.howMany,r+=s.howMany}}catch(t){a.e(t)}finally{a.f()}if(r<t)for(var d=0;d<t-r-o;d++)i.push("e");return i}function Ql(t){var e=t.position&&"$graveyard"==t.position.root.rootName,n=t.range&&"$graveyard"==t.range.root.rootName;return!e&&!n}var Jl=function(){function t(){I(this,t),this._operations=[],this._und
2oPairs=new Map,this._undoneOperations=new Set}return S(t,[{key:"addOperation",value:function(t){this._operations.includes(t)||this._operations.push(t)}},{key:"getOperations",value:function(){var t,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Number.NEGATIVE_INFINITY,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.POSITIVE_INFINITY,i=[],o=p(this._operations);try{for(o.s();!(t=o.n()).done;){var r=t.value;r.baseVersion>=e&&r.baseVersion<n&&i.push(r)}}catch(t){o.e(t)}finally{o.f()}return i}},{key:"getOperation",value:function(t){var e,n=p(this._operations);try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.baseVersion==t)return i}}catch(t){n.e(t)}finally{n.f()}}},{key:"setOperationAsUndone",value:function(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}},{key:"isUndoingOperation",value:function(t){return this._undoPairs.has(t)}},{key:"isUndoneOperation",value:function(t){return this._undoneOperations.has(t)}},{key:"getUndoneOperation",value:function(t){return this._undoPairs.get(t)}}]),t}();function Xl(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 tc(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 ec=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\u
20FBE-\u0FC5\u0FC7-\u0FCC\u0FCE\u0FCF\u0FD5-\u0FD8\u109E\u109F\u1390-\u1399\u166D\u1940\u19DE-\u19FF\u1B61-\u1B6A\u1B74-\u1B7C\u2100\u2101\u2103-\u2106\u2108\u2109\u2114\u2116\u2117\u211E-\u2123\u2125\u2127\u2129\u212E\u213A\u213B\u214A\u214C\u214D\u214F\u218A\u218B\u2195-\u2199\u219C-\u219F\u21A1\u21A2\u21A4\u21A5\u21A7-\u21AD\u21AF-\u21CD\u21D0\u21D1\u21D3\u21D5-\u21F3\u2300-\u2307\u230C-\u231F\u2322-\u2328\u232B-\u237B\u237D-\u239A\u23B4-\u23DB\u23E2-\u2426\u2440-\u244A\u249C-\u24E9\u2500-\u25B6\u25B8-\u25C0\u25C2-\u25F7\u2600-\u266E\u2670-\u2767\u2794-\u27BF\u2800-\u28FF\u2B00-\u2B2F\u2B45\u2B46\u2B4D-\u2B73\u2B76-\u2B95\u2B97-\u2BFF\u2CE5-\u2CEA\u2E50\u2E51\u2E80-\u2E99\u2E9B-\u2EF3\u2F00-\u2FD5\u2FF0-\u2FFB\u3004\u3012\u3013\u3020\u3036\u3037\u303E\u303F\u3190\u3191\u3196-\u319F\u31C0-\u31E3\u3200-\u321E\u322A-\u3247\u3250\u3260-\u327F\u328A-\u32B0\u32C0-\u33FF\u4DC0-\u4DFF\uA490-\uA4C6\uA828-\uA82B\uA836\uA837\uA839\uAA77-\uAA79\uFD40-\uFD4F\uFDCF\uFDFD-\uFDFF\uFFE4\uFFE8\uFFED\uFFEE\uFFFC\uFFFD]|\uD800[\uDD37-\uDD3F\uDD79-\uDD89\uDD8C-\uDD8E\uDD90-\uDD9C\uDDA0\uDDD0-\uDDFC]|\uD802[\uDC77\uDC78\uDEC8]|\uD805\uDF3F|\uD807[\uDFD5-\uDFDC\uDFE1-\uDFF1]|\uD81A[\uDF3C-\uDF3F\uDF45]|\uD82F\uDC9C|\uD833[\uDF50-\uDFC3]|\uD834[\uDC00-\uDCF5\uDD00-\uDD26\uDD29-\uDD64\uDD6A-\uDD6C\uDD83\uDD84\uDD8C-\uDDA9\uDDAE-\uDDEA\uDE00-\uDE41\uDE45\uDF00-\uDF56]|\uD836[\uDC00-\uDDFF\uDE37-\uDE3A\uDE6D-\uDE74\uDE76-\uDE83\uDE85\uDE86]|\uD838\uDD4F|\uD83B[\uDCAC\uDD2E]|\uD83C[\uDC00-\uDC2B\uDC30-\uDC93\uDCA0-\uDCAE\uDCB1-\uDCBF\uDCC1-\uDCCF\uDCD1-\uDCF5\uDD0D-\uDDAD\uDDE6-\uDE02\uDE10-\uDE3B\uDE40-\uDE48\uDE50\uDE51\uDE60-\uDE65\uDF00-\uDFFA]|\uD83D[\uDC00-\uDED7\uDEDC-\uDEEC\uDEF0-\uDEFC\uDF00-\uDF76\uDF7B-\uDFD9\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDC00-\uDC0B\uDC10-\uDC47\uDC50-\uDC59\uDC60-\uDC87\uDC90-\uDCAD\uDCB0\uDCB1\uDD00-\uDE53\uDE60-\uDE6D\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8\uDF00-\uDF92\uDF94-\uDFCA]))(?:[#\*0-9\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23E9-\u23F3\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB-\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u261D\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692-\u2697\u2699\u269B\u269C\u26A0\u26A1\u26A7\u26AA\u26AB\u26B0\u26B1\u26BD\u26BE\u26C4\u26C5\u26C8\u26CE\u26CF\u26D1\u26D3\u26D4\u26E9\u26EA\u26F0-\u26F5\u26F7-\u26FA\u26FD\u2702\u2705\u2708-\u270D\u270F\u2712\u2714\u2716\u271D\u2721\u2728\u2733\u2734\u2744\u2747\u274C\u274E\u2753-\u2755\u2757\u2763\u2764\u2795-\u2797\u27A1\u27B0\u27BF\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B50\u2B55\u3030\u303D\u3297\u3299]|\uD83C[\uDC04\uDCCF\uDD70\uDD71\uDD7E\uDD7F\uDD8E\uDD91-\uDD9A\uDDE6-\uDDFF\uDE01\uDE02\uDE1A\uDE2F\uDE32-\uDE3A\uDE50\uDE51\uDF00-\uDF21\uDF24-\uDF93\uDF96\uDF97\uDF99-\uDF9B\uDF9E-\uDFF0\uDFF3-\uDFF5\uDFF7-\uDFFF]|\uD83D[\uDC00-\uDCFD\uDCFF-\uDD3D\uDD49-\uDD4E\uDD50-\uDD67\uDD6F\uDD70\uDD73-\uDD7A\uDD87\uDD8A-\uDD8D\uDD90\uDD95\uDD96\uDDA4\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA-\uDE4F\uDE80-\uDEC5\uDECB-\uDED2\uDED5-\uDED7\uDEDC-\uDEE5\uDEE9\uDEEB\uDEEC\uDEF0\uDEF3-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uD83E[\uDD0C-\uDD3A\uDD3C-\uDD45\uDD47-\uDDFF\uDE70-\uDE7C\uDE80-\uDE88\uDE90-\uDEBD\uDEBF-\uDEC5\uDECE-\uDEDB\uDEE0-\uDEE8\uDEF0-\uDEF8])(?:\uD83C[\uDFFB-\uDFFF])*/].map((function(t){return t.source})).join("|")+")";return new RegExp("".concat(t,"|").concat(e,"(?:‍").concat(e,")*"),"ug")}();function nc(t,e){var n=String(t).matchAll(ec);return Array.from(n).some((function(t){return t.index<e&&e<t.index+t[0].length}))}var ic="$graveyard",oc=function(){function t(e){var n=this;I(this,t),this.model=e,this.version=0,this.history=new Jl(this),this.selection=new _s(this),this.roots=new Xn({idProperty:"rootName"}),this.differ=new $l(e.markers),this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",ic),this.listenTo(e,"applyOperation",(function(t,e){var i=e[0];if(i.isDocumentOperation&&i.baseVersion!==n.version)throw new x("model-document-applyoperation-wrong-version",n,{operation:i})}),{priority:"highest"}),this.listenTo(e,"applyOperation",(function(t,e){var i=e[0];i.isDocumentOperation&&n.differ.bufferOperation(i)}),{priority:"high"}),this.listenTo(e,"applyOperation",(function(t,e){var i=e[0];i.isDocumentOperation&&(n.version++,n.history.addOperation(i))}),{priority:"low"}),this.listenTo(this.selection,"change",(function(){n._hasSelectionChangedFromTheLastChangeBlock=!0}
2)),this.listenTo(e.markers,"update",(function(t,e,i,o,r){var a=c(c({},e.getData()),{},{range:o});n.differ.bufferMarkerChange(e.name,r,a),null===i&&e.on("change",(function(t,i){var o=e.getData();n.differ.bufferMarkerChange(e.name,c(c({},o),{},{range:i}),o)}))}))}return S(t,[{key:"graveyard",get:function(){return this.getRoot(ic)}},{key:"createRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"$root",e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"main";if(this.roots.get(e))throw new x("model-document-createroot-name-exists",this,{name:e});var n=new Vl(this,t,e);return this.roots.add(n),n}},{key:"destroy",value:function(){this.selection.destroy(),this.stopListening()}},{key:"getRoot",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this.roots.get(t)}},{key:"getRootNames",value:function(){return Array.from(this.roots,(function(t){return t.rootName})).filter((function(t){return t!=ic}))}},{key:"registerPostFixer",value:function(t){this._postFixers.add(t)}},{key:"toJSON",value:function(){var t=li(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}},{key:"_handleChangeBlock",value:function(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(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}},{key:"_getDefaultRoot",value:function(){var t,e=p(this.roots);try{for(e.s();!(t=e.n()).done;){var n=t.value;if(n!==this.graveyard)return n}}catch(t){e.e(t)}finally{e.f()}return this.graveyard}},{key:"_getDefaultRange",value:function(){var t=this._getDefaultRoot(),e=this.model,n=e.schema,i=e.createPositionFromPath(t,[0]);return n.getNearestSelectionRange(i)||e.createRange(i)}},{key:"_validateSelectionRange",value:function(t){return rc(t.start)&&rc(t.end)}},{key:"_callPostFixers",value:function(t){var e=!1;do{var n,i=p(this._postFixers);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(this.selection.refresh(),e=o(t))break}}catch(t){i.e(t)}finally{i.f()}}while(e)}}]),t}();function rc(t){var e=t.textNode;if(e){var n=e.data,i=t.offset-e.startOffset;return!Xl(n,i)&&!tc(n,i)}return!0}ke(oc,N);var ac=function(t){function e(){I(this,e),this._markers=new Map}return S(e,[{key:Symbol.iterator,value:function(){return this._markers.values()}},{key:"has",value:function(t){var e=t instanceof sc?t.name:t;return this._markers.has(e)}},{key:"get",value:function(t){return this._markers.get(t)||null}},{key:"_set",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3],o=t instanceof sc?t.name:t;if(o.includes(","))throw new x("markercollection-incorrect-marker-name",this);var r=this._markers.get(o);if(r){var a=r.getData(),s=r.getRange(),l=!1;return s.isEqual(e)||(r._attachLiveRange(vs.fromRange(e)),l=!0),n!=r.managedUsingOperations&&(r._managedUsingOperations=n,l=!0),"boolean"==typeof i&&i!=r.affectsData&&(r._affectsData=i,l=!0),l&&this.fire("update:"+o,r,s,e,a),r}var u=vs.fromRange(e),d=new sc(o,u,n,i);return this._markers.set(o,d),this.fire("update:"+o,d,null,e,c(c({},d.getData()),{},{range:null})),d}},{key:"_remove",value:function(t){var e=t instanceof sc?t.name:t,n=this._markers.get(e);return!!n&&(this._markers.delete(e),this.fire("update:"+e,n,n.getRange(),null,n.getData()),this._destroyMarker(n),!0)}},{key:"_refresh",value:function(t){var e=t instanceof sc?t.name:t,n=this._markers.get(e);if(!n)throw new x("markercollection-refresh-marker-not-exists",this);var i=n.getRange();this.fire("update:"+e,n,i,i,n.getData())}},{key:"getMarkersAtPosition",value:h().mark((function t(e){var n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p(this),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(o=i.value,t.t0=o.getRange().containsPosition(e),!t.t0){t.next=9;break}return t.next=9,o;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"getMarkersIntersectingRange",value:h().mark((function t(e){var n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p(this),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(o=i.value,t.t0=null!==o.getRange().getIntersection(e),!t.t0){t.next=9;break}return t.next=9,o;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"destroy",value:function(){var t,e=p(this._markers.values());try{for(e.s();!(t=e.n()).done;){var n=t.value;this._destroyMarker(n)}}catch(t){e.e(t)}finally{e.f()}this._markers=null,this.stopListening()}},{key:"getMarkersGroup",value:h().mark((function t(e){var n,i,o;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:n=p(this._markers.values()),t.prev=1,n.s();case 3:if((i=n.n()).done){t.next=11;break}if(o=i.value,t.t0=o.name.startsWith(e+":"),!t.t0){t.next=9;break}return t.next=9,o;case 9:t.next=3;break;case 11:t.next=16;break;case 13:t.prev=13,t.t1=t.catch(1),n.e(t.t1);case 16:return t.prev=16,n.f(),t.finish(16);case 19:case"end":return t.stop()}}),t,this,[[1,13,16,19]])}))},{key:"_destroyMarker",value:function(t){t.stopListening(),t._detachLiveRange()}}]),e}();ke(ac,N);var sc=function(){function t(e,n,i,o){I(this,t),this.name=e,this._liveRange=this._attachLiveRange(n),this._managedUsingOperations=i,this._affectsData=o}
2return S(t,[{key:"managedUsingOperations",get:function(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._managedUsingOperations}},{key:"affectsData",get:function(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._affectsData}},{key:"getData",value:function(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}},{key:"getStart",value:function(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.start.clone()}},{key:"getEnd",value:function(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.end.clone()}},{key:"getRange",value:function(){if(!this._liveRange)throw new x("marker-destroyed",this);return this._liveRange.toRange()}},{key:"is",value:function(t){return"marker"===t||"model:marker"===t}},{key:"_attachLiveRange",value:function(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(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}]),t}();ke(sc,N);var lc=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"type",get:function(){return"noop"}},{key:"clone",value:function(){return new n(this.baseVersion)}},{key:"getReversed",value:function(){return new n(this.baseVersion+1)}},{key:"_execute",value:function(){}}],[{key:"className",get:function(){return"NoOperation"}}]),n}(wl),cc={};cc[Ml.className]=Ml,cc[Ll.className]=Ll,cc[Nl.className]=Nl,cc[Pl.className]=Pl,cc[lc.className]=lc,cc[wl.className]=wl,cc[Ol.className]=Ol,cc[Fl.className]=Fl,cc[jl.className]=jl,cc[Rl.className]=Rl;var uc=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"toNone";if(I(this,n),!(o=e.call(this,t,i,r)).root.is("rootElement"))throw new x("model-liveposition-root-not-rootelement",t);return dc.call(_(o)),y(o)}return S(n,[{key:"detach",value:function(){this.stopListening()}},{key:"is",value:function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}},{key:"toPosition",value:function(){return new es(this.root,this.path.slice(),this.stickiness)}}],[{key:"fromPosition",value:function(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}]),n}(es);function dc(){var t=this;this.listenTo(this.root.document.model,"applyOperation",(function(e,n){var i=n[0];i.isDocumentOperation&&hc.call(t,i)}),{priority:"low"})}function hc(t){var e=this.getTransformedByOperation(t);if(!this.isEqual(e)){var n=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",n)}}ke(uc,N);var fc=function(){function t(e,n,i){I(this,t),this.model=e,this.writer=n,this.position=i,this.canMergeWith=new Set([this.position.parent]),this.schema=e.schema,this._documentFragment=n.createDocumentFragment(),this._documentFragmentPosition=n.createPositionAt(this._documentFragment,0),this._firstNode=null,this._lastNode=null,this._lastAutoParagraph=null,this._filterAttributesOf=[],this._affectedStart=null,this._affectedEnd=null}return S(t,[{key:"handleNodes",value:function(t){for(var e=0,n=Array.from(t);e<n.length;e++){var i=n[e];this._handleNode(i)}this._insertPartialFragment(),this._lastAutoParagraph&&this._updateLastNodeFromAutoParagraph(this._lastAutoParagraph),this._mergeOnRight(),this.schema.removeDisallowedAttributes(this._filterAttributesOf,this.writer),this._filterAttributesOf=[]}},{key:"_updateLastNodeFromAutoParagraph",value:function(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 x("insertcontent-invalid-insertion-position",this);this.position=n,this._setAffectedBoundaries(this.position)}}},{key:"getSelectionRange",value:function(){return this.nodeToSelect?rs._createOn(this.nodeToSelect):this.model.schema.getNearestSelectionRange(this.position)}},{key:"getAffectedRange",value:function(){return this._affectedStart?new rs(this._affectedStart,this._affectedEnd):null}},{key:"destroy",value:function(){this._affectedStart&&this._affectedStart.detach(),this._affectedEnd&&this._affectedEnd.detach()}},{key:"_handleNode",value:function(t){if(this.schema.isObject(t))this._handleObject(t);else{var e=this._checkAndAutoParagraphToAllowedPosition(t);e||(e=this._checkAndSplitToAllowedPosition(t))?(this._appendToFragment(t),this._firstNode||(this._firstNode=t),this._lastNode=t):this._handleDisallowedNode(t)}}},{key:"_insertPartialFragment",value:function(){if(!this._documentFragment.isEmpty){var t=uc.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(t){this._checkAndSplitToAllowedPosition(t)?this._appendToFragment(t):this._tryAutoparagraphing(t)}},{key:"_handleDisallowedNode",value:function(t){t.is("element")?this.handleNodes(t.getChildren()):this._tryAutoparagraphing(t)}},{key:"_appendToFragment",value:function(t){if(!this.schema.checkChild(this.position,t))throw new x("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(t){this._affectedStart||(this._affectedStart=uc.fromPosition(t,"toPrevious")),this._affectedEnd&&!this._affectedEnd.isBefore(t)||(this._affectedEnd&&this._affectedEnd.detach(),this._affectedEnd=uc.fromPosition(t,"toNext"))}},{key:"_mergeOnLeft",value:function(){var t=this._firstNode;if(t instanceof Ja&&this._canMergeLeft(t)){var e=uc._createBefore(t);e.stickiness="toNext";var n=uc.fromPosition(this.position,"toNext");this._affectedStart.isEqual(e)&&(this._affectedStart.detach(),this._affectedStart=uc._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=uc._createAt(e.nodeBefore,"end","toNext")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}}},{key:"_mergeOnRight",value:function(){var t=this._lastNode;if(t instanceof Ja&&this._canMergeRight(t)){var e=uc._createAfter(t);if(e.stickiness="toNext",!this.position.isEqual(e))throw new x("insertcontent-invalid-insertion-position",this);this.position=es._createAt(e.nodeBefore,"end");var n=uc.fromPosition(this.position,"toPrevious");this._affectedEnd.isEqual(e)&&(this._affectedEnd.detach(),this._affectedEnd=uc._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=uc._createAt(e.nodeBefore,0,"toPrevious")),this.position=n.toPosition(),n.detach(),this._filterAttributesOf.push(this.position.parent),e.detach()}}},{key:"_canMergeLeft",value:function(t){var e=t.previousSibling;return e instanceof Ja&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(e,t)}},{key:"_canMergeRight",value:function(t){var e=t.nextSibling;return e instanceof Ja&&this.canMergeWith.has(e)&&this.model.schema.checkMerge(t,e)}},{key:"_tryAutoparagraphing",value:function(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(t){if(this.schema.checkChild(this.position.parent,t))return!0;
2if(!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(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 n=this.position.parent;this.position=this.writer.createPositionBefore(n),n.isEmpty&&n.parent===e&&this.writer.remove(n)}else if(this.position.isAtEnd)this.position=this.writer.createPositionAfter(this.position.parent);else{var i=this.writer.createPositionAfter(this.position.parent);this._setAffectedBoundaries(this.position),this.writer.split(this.position),this.position=i,this.canMergeWith.add(this.position.nodeAfter)}return!0}},{key:"_getAllowedIn",value:function(t,e){return this.schema.checkChild(t,e)?t:this.schema.isLimit(t)?null:this._getAllowedIn(t.parent,e)}}]),t}();function pc(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!e.isCollapsed){var i=e.getFirstRange();if("$graveyard"!=i.root.rootName){var o=t.schema;t.change((function(t){if(n.doNotResetEntireContent||!function(t,e){var n=t.getLimitElement(e);if(!e.containsEntireContent(n))return!1;var i=e.getFirstRange();return i.start.parent!=i.end.parent&&t.checkChild(n,"paragraph")}(o,e)){var r=function(t){var e=t.root.document.model,n=t.start,i=t.end;if(e.hasContent(t,{ignoreMarkers:!0})){var o=function(t){var e,n=t.parent,i=n.root.document.model.schema,o=p(n.getAncestors({parentFirst:!0,includeSelf:!0}));try{for(o.s();!(e=o.n()).done;){var r=e.value;if(i.isLimit(r))return null;if(i.isBlock(r))return r}}catch(t){o.e(t)}finally{o.f()}}(i);if(o&&i.isTouching(e.createPositionAt(o,0))){var r=e.createSelection(t);e.modifySelection(r,{direction:"backward"});var a=r.getLastPosition(),s=e.createRange(a,i);e.hasContent(s,{ignoreMarkers:!0})||(i=a)}}return[uc.fromPosition(n,"toPrevious"),uc.fromPosition(i,"toNext")]}(i),a=f(r,2),s=a[0],l=a[1];s.isTouching(l)||t.remove(t.createRange(s,l)),n.leaveUnmerged||(function(t,e,n){var i=t.model;if(vc(t.model.schema,e,n)){var o=function(t,e){for(var n=t.getAncestors(),i=e.getAncestors(),o=0;n[o]&&n[o]==i[o];)o++;return[n[o],i[o]]}(e,n),r=f(o,2),a=r[0],s=r[1];a&&s&&(!i.hasContent(a,{ignoreMarkers:!0})&&i.hasContent(s,{ignoreMarkers:!0})?gc(t,e,n,a.parent):mc(t,e,n,a.parent))}}(t,s,l),o.removeDisallowedAttributes(s.parent.getChildren(),t)),bc(t,e,s),!n.doNotAutoparagraph&&function(t,e){var n=t.checkChild(e,"$text"),i=t.checkChild(e,"paragraph");return!n&&i}(o,s)&&kc(t,s,e),s.detach(),l.detach()}else!function(t,e){var n=t.model.schema.getLimitElement(e);t.remove(t.createRangeIn(n)),kc(t,t.createPositionAt(n,0),e)}(t,e)}))}}}function mc(t,e,n,i){var o=e.parent,r=n.parent;if(o!=i&&r!=i){for(e=t.createPositionAfter(o),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(r,e),t.merge(e);n.parent.isEmpty;){var a=n.parent;n=t.createPositionBefore(a),t.remove(a)}vc(t.model.schema,e,n)&&mc(t,e,n,i)}}function gc(t,e,n,i){var o=e.parent,r=n.parent;if(o!=i&&r!=i){for(e=t.createPositionAfter(o),(n=t.createPositionBefore(r)).isEqual(e)||t.insert(o,n);e.parent.isEmpty;){var a=e.parent;e=t.createPositionBefore(a),t.remove(a)}n=t.createPositionBefore(r),function(t,e){var n=e.nodeBefore,i=e.nodeAfter;n.name!=i.name&&t.rename(n,i.name),t.clearAttributes(n),t.setAttributes(Object.fromEntries(i.getAttributes()),n),t.merge(e)}(t,n),vc(t.model.schema,e,n)&&gc(t,e,n,i)}}function vc(t,e,n){var i=e.parent,o=n.parent;return i!=o&&!t.isLimit(i)&&!t.isLimit(o)&&function(t,e,n){var i,o=p(new rs(t,e).getWalker());try{for(o.s();!(i=o.n()).done;){var r=i.value;if(n.isLimit(r.item))return!1}}catch(t){o.e(t)}finally{o.f()}return!0}(e,n,t)}function kc(t,e,n){var i=t.createElement("paragraph");t.insert(i,e),bc(t,n,t.createPositionAt(i,0))}function bc(t,e,n){e instanceof _s?t.setSelection(n):e.setTo(n)}var yc=' ,.?!:;"-()';function _c(t,e){var n=t.root,i=es._createAt(n,e?"end":0);return e?new rs(t,i):new rs(i,t)}function wc(t,e,n){var i=e+(n?0:-1);return yc.includes(t.charAt(i))}function Cc(t,e,n){return e===(n?t.endOffset:0)}function Ac(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
2))})).forEach((function(t){n.push(t.start.parent),e.remove(t)})),n.forEach((function(t){for(var n=t;n.parent&&n.isEmpty;){var i=e.createRangeOn(n);n=n.parent,e.remove(i)}}))}function xc(t,e){return t.isCollapsed?function(t,e){var n=t.start,i=e.getNearestSelectionRange(n);if(!i){var o=n.getAncestors().reverse().find((function(t){return e.isObject(t)}));return o?rs._createOn(o):null}if(!i.isCollapsed)return i;var r=i.start;return n.isEqual(r)?null:new rs(r)}(t,e):function(t,e){var n=t.start,i=t.end,o=e.checkChild(n,"$text"),r=e.checkChild(i,"$text"),a=e.getLimitElement(n),s=e.getLimitElement(i);if(a===s){if(o&&r)return null;if(function(t,e,n){var i=t.nodeAfter&&!n.isLimit(t.nodeAfter)||n.checkChild(t,"$text"),o=e.nodeBefore&&!n.isLimit(e.nodeBefore)||n.checkChild(e,"$text");return i||o}(n,i,e)){var l=n.nodeAfter&&e.isSelectable(n.nodeAfter)?null:e.getNearestSelectionRange(n,"forward"),c=i.nodeBefore&&e.isSelectable(i.nodeBefore)?null:e.getNearestSelectionRange(i,"backward"),u=l?l.start:n,d=c?c.end:i;return new rs(u,d)}}var h=a&&!a.is("rootElement"),f=s&&!s.is("rootElement");if(h||f){var p=n.nodeAfter&&i.nodeBefore&&n.nodeAfter.parent===i.nodeBefore.parent,m=h&&(!p||!Ec(n.nodeAfter,e)),g=f&&(!p||!Ec(i.nodeBefore,e)),v=n,k=i;return m&&(v=es._createBefore(Dc(a,e))),g&&(k=es._createAfter(Dc(s,e))),new rs(v,k)}return null}(t,e)}function Dc(t,e){for(var n=t,i=n;e.isLimit(i)&&i.parent;)n=i,i=i.parent;return n}function Ec(t,e){return t&&e.isSelectable(t)}var Sc=function(){function t(){var e=this;I(this,t),this.markers=new ac,this.document=new oc(this),this.schema=new Xs,this._pendingChanges=[],this._currentWriter=null,["insertContent","deleteContent","modifySelection","getSelectedContent","applyOperation"].forEach((function(t){return e.decorate(t)})),this.on("applyOperation",(function(t,e){e[0]._validate()}),{priority:"highest"}),this.schema.register("$root",{isLimit:!0}),this.schema.register("$block",{allowIn:"$root",isBlock:!0}),this.schema.register("$text",{allowIn:"$block",isInline:!0,isContent:!0}),this.schema.register("$clipboardHolder",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$documentFragment",{allowContentOf:"$root",allowChildren:"$text",isLimit:!0}),this.schema.register("$marker"),this.schema.addChildCheck((function(t,e){if("$marker"===e.name)return!0})),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=e.document.selection,o=e.schema,r=[],a=!1,s=p(i.getRanges());try{for(s.s();!(n=s.n()).done;){var l=n.value,c=xc(l,o);c&&!c.isEqual(l)?(r.push(c),a=!0):r.push(l)}}catch(t){s.e(t)}finally{s.f()}a&&t.setSelection(function(t){for(var e=m(t),n=new Set,i=1;i<e.length;){var o,r=e[i],a=p(e.slice(0,i).entries());try{for(a.s();!(o=a.n()).done;){var s=f(o.value,2),l=s[0],c=s[1];if(!n.has(l))if(r.isEqual(c))n.add(l);else if(r.isIntersecting(c)){n.add(l),n.add(i);var u=r.getJoined(c);e.push(u)}}}catch(t){a.e(t)}finally{a.f()}i++}return e.filter((function(t,e){return!n.has(e)}))}(r),{backward:i.isBackward})}(e,t)}))}(this),this.document.registerPostFixer(Rs)}return S(t,[{key:"change",value:function(t){try{return 0===this._pendingChanges.length?(this._pendingChanges.push({batch:new _l,callback:t}),this._runPendingChanges()[0]):t(this._currentWriter)}catch(t){x.rethrowUnexpectedError(t,this)}}},{key:"enqueueChange",value:function(t,e){try{t?"function"==typeof t?(e=t,t=new _l):t instanceof _l||(t=new _l(t)):t=new _l,this._pendingChanges.push({batch:t,callback:e}),1==this._pendingChanges.length&&this._runPendingChanges()}catch(t){x.rethrowUnexpectedError(t,this)}}},{key:"applyOperation",value:function(t){t._execute()}},{key:"insertContent",value:function(t,e,n){return function(t,e,n,i){return t.change((function(o){var r;(r=n?n instanceof hs||n instanceof _s?n:o.createSelection(n,i):t.document.selection).isCollapsed||t.deleteContent(r,{doNotAutoparagraph:!0});var a,s=new fc(t,o,r.anchor);a=e.is("documentFragment")?e.getChildren():[e],s.handleNodes(a);var l=s.getSelectionRange();l&&(r instanceof _s?o.setSelection(l):r.setTo(l));var c=s.getAffectedRange()||t.createRange(r.anchor);return s.destroy(),c}))}(this,t,e,n)}},{key:"deleteContent",value:function(t,e){pc(this,t,e)}},{key:"modifySelection",value:function(t,e){!function(t,e){for(var n,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=t.schema,r="backward"!=i.direction,a=i.unit?i.unit:"character",s=!!i.treatEmojiAsSingleUnit,l=e.focu
2s,c=new Xa({boundaries:_c(l,r),singleCharacters:!0,direction:r?"forward":"backward"}),u={walker:c,schema:o,isForward:r,unit:a,treatEmojiAsSingleUnit:s},d=function(){if(n.done)return{v:void 0};var i=function(t,e){var n=t.isForward,i=t.walker,o=t.unit,r=t.schema,a=t.treatEmojiAsSingleUnit,s=e.type,l=e.item,c=e.nextPosition;if("text"==s)return"word"===t.unit?function(t,e){var n=t.position.textNode;if(n)for(var i=t.position.offset-n.startOffset;!wc(n.data,i,e)&&!Cc(n,i,e);){t.next();var o=e?t.position.nodeAfter:t.position.nodeBefore;if(o&&o.is("$text")){var r=o.data.charAt(e?0:o.data.length-1);yc.includes(r)||(t.next(),n=t.position.textNode)}i=t.position.offset-n.startOffset}return t.position}(i,n):function(t,e,n){var i=t.position.textNode;if(i)for(var o=i.data,r=t.position.offset-i.startOffset;Xl(o,r)||"character"==e&&tc(o,r)||n&&nc(o,r);)t.next(),r=t.position.offset-i.startOffset;return t.position}(i,o,a);if(s==(n?"elementStart":"elementEnd")){if(r.isSelectable(l))return es._createAt(l,n?"after":"before");if(r.checkChild(c,"$text"))return c}else{if(r.isLimit(l))return void i.skip((function(){return!0}));if(r.checkChild(c,"$text"))return c}}(u,n.value);return i?{v:void(e instanceof _s?t.change((function(t){t.setSelectionFocus(i)})):e.setFocus(i))}:void 0};n=c.next();){var h=d();if("object"===z(h))return h.v}}(this,t,e)}},{key:"getSelectedContent",value:function(t){return function(t,e){return t.change((function(t){var n=t.createDocumentFragment(),i=e.getFirstRange();if(!i||i.isCollapsed)return n;var o,r,a=i.start.root,s=i.start.getCommonPath(i.end),l=a.getNodeByPath(s),c=(o=i.start.parent==i.end.parent?i:t.createRange(t.createPositionAt(l,i.start.path[s.length]),t.createPositionAt(l,i.end.path[s.length]+1))).end.offset-o.start.offset,u=p(o.getItems({shallow:!0}));try{for(u.s();!(r=u.n()).done;){var d=r.value;d.is("$textProxy")?t.appendText(d.data,d.getAttributes(),n):t.append(t.cloneElement(d,!0),n)}}catch(t){u.e(t)}finally{u.f()}if(o!=i){var h=i._getTransformedByMove(o.start,t.createPositionAt(n,0),c)[0],f=t.createRange(t.createPositionAt(n,0),h.start);Ac(t.createRange(h.end,t.createPositionAt(n,"end")),t),Ac(f,t)}return n}))}(this,t)}},{key:"hasContent",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t instanceof Ja?rs._createIn(t):t;if(n.isCollapsed)return!1;var i=e.ignoreWhitespaces,o=void 0!==i&&i,r=e.ignoreMarkers;if(!(void 0!==r&&r)){var a,s=p(this.markers.getMarkersIntersectingRange(n));try{for(s.s();!(a=s.n()).done;){if(a.value.affectsData)return!0}}catch(t){s.e(t)}finally{s.f()}}var l,c=p(n.getItems());try{for(c.s();!(l=c.n()).done;){var u=l.value;if(this.schema.isContent(u)){if(!u.is("$textProxy"))return!0;if(!o)return!0;if(-1!==u.data.search(/\S/))return!0}}}catch(t){c.e(t)}finally{c.f()}return!1}},{key:"createPositionFromPath",value:function(t,e,n){return new es(t,e,n)}},{key:"createPositionAt",value:function(t,e){return es._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return es._createAfter(t)}},{key:"createPositionBefore",value:function(t){return es._createBefore(t)}},{key:"createRange",value:function(t,e){return new rs(t,e)}},{key:"createRangeIn",value:function(t){return rs._createIn(t)}},{key:"createRangeOn",value:function(t){return rs._createOn(t)}},{key:"createSelection",value:function(t,e,n){return new hs(t,e,n)}},{key:"createBatch",value:function(t){return new _l(t)}},{key:"createOperationFromJSON",value:function(t){return function(){function t(){I(this,t)}return S(t,null,[{key:"fromJSON",value:function(t,e){return cc[t.__className].fromJSON(t,e)}}]),t}().fromJSON(t,this.document)}},{key:"destroy",value:function(){this.document.destroy(),this.stopListening()}},{key:"_runPendingChanges",value:function(){var t=[];for(this.fire("_beforeChanges");this._pendingChanges.length;
2){var e=this._pendingChanges[0].batch;this._currentWriter=new Hl(this,e);var n=this._pendingChanges[0].callback(this._currentWriter);t.push(n),this.document._handleChangeBlock(this._currentWriter),this._pendingChanges.shift(),this._currentWriter=null}return this.fire("_afterChanges"),t}}]),t}();ke(Sc,he);var Tc=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this)).editor=t,i}return S(n,[{key:"set",value:function(t,e){var i=this,o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof e){var r=e;e=function(t,e){i.editor.execute(r),e()}}d(D(n.prototype),"set",this).call(this,t,e,o)}}]),n}(La),Ic=function(){function t(){var e=this,n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};I(this,t);var i=n.language||this.constructor.defaultConfig&&this.constructor.defaultConfig.language;this._context=n.context||new ri({language:i}),this._context._addEditor(this,!n.context);var o=Array.from(this.constructor.builtinPlugins||[]);this.config=new Yn(n,this.constructor.defaultConfig),this.config.define("plugins",o),this.config.define(this._context._getEditorConfig()),this.plugins=new ti(this,o,this._context.plugins),this.locale=this._context.locale,this.t=this.locale.t,this.commands=new Ks,this.set("state","initializing"),this.once("ready",(function(){return e.state="ready"}),{priority:"high"}),this.once("destroy",(function(){return e.state="destroyed"}),{priority:"high"}),this.set("isReadOnly",!1),this.model=new Sc;var r=new Ui;this.data=new vl(this.model,r),this.editing=new Ys(this.model,r),this.editing.view.document.bind("isReadOnly").to(this),this.conversion=new kl([this.editing.downcastDispatcher,this.data.downcastDispatcher],this.data.upcastDispatcher),this.conversion.addAlias("dataDowncast",this.data.downcastDispatcher),this.conversion.addAlias("editingDowncast",this.editing.downcastDispatcher),this.keystrokes=new Tc(this),this.keystrokes.listenTo(this.editing.view.document)}return S(t,[{key:"initPlugins",value:function(){var t=this.config,e=t.get("plugins"),n=t.get("removePlugins")||[],i=t.get("extraPlugins")||[],o=t.get("substitutePlugins")||[];return this.plugins.init(e.concat(i),n,o)}},{key:"destroy",value:function(){var t=this,e=Promise.resolve();return"initializing"==this.state&&(e=new Promise((function(e){return t.once("ready",e)}))),e.then((function(){t.fire("destroy"),t.stopListening(),t.commands.destroy()})).then((function(){return t.plugins.destroy()})).then((function(){t.model.destroy(),t.data.destroy(),t.editing.destroy(),t.keystrokes.destroy()})).then((function(){return t._context._removeEditor(t)}))}},{key:"execute",value:function(){try{var t;return(t=this.commands).execute.apply(t,arguments)}catch(t){x.rethrowUnexpectedError(t,this)}}},{key:"focus",value:function(){this.editing.view.focus()}}]),t}();ke(Ic,he);var zc=function(){function t(e){I(this,t),this.editor=e,this._components=new Map}return S(t,[{key:"names",value:h().mark((function t(){var e,n,i;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:e=p(this._components.values()),t.prev=1,e.s();case 3:if((n=e.n()).done){t.next=9;break}return i=n.value,t.next=7,i.originalName;case 7:t.next=3;break;case 9:t.next=14;break;case 11:t.prev=11,t.t0=t.catch(1),e.e(t.t0);case 14:return t.prev=14,e.f(),t.finish(14);case 17:case"end":return t.stop()}}),t,this,[[1,11,14,17]])}))},{key:"add",value:function(t,e){this._components.set(Mc(t),{callback:e,originalName:t})}},{key:"create",value:function(t){if(!this.has(t))throw new x("componentfactory-item-missing",this,{name:t});return this._components.get(Mc(t)).callback(this.editor.locale)}},{key:"has",value:function(t){return this._components.has(Mc(t))}}]),t}();function Mc(t){return String(t).toLowerCase()}var Bc=function(){function t(e){var n=this;I(this,t),this.editor=e,this.componentFactory=new zc(e),this.focusTracker=new Pa,this.set("viewportOffset",this._readViewportOffsetFromConfig()),this._editableElementsMap=new Map,this.listenTo(e.editing.view.document,"layoutChanged",(function(){return n.update()}))}return S(t,[{key:"element",get:function(){return null}},{key:"update",value:function(){this.fire("update")}},{key:"destroy",value:function(){this.stopListening(),this.focusTracker.destroy();var t,e=p(this._editableElementsMap.values());try{for(e.s();!(t=e.n()).done;){t.value.ckeditorInstance=null}}catch(t){e.e(t)}finally{e.f()}this._editableElementsMap=new Map}},{key:"setEditableElement",value:function(t,e){this._editableElementsMap.set(t,e),e.ckeditorInstance||(e.ckeditorInstance=this.editor)}},{key:"getEditableElement",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"main";return this._editableElementsMap.get(t)}},{key:"getEditableElementsNames",value:function(){return this._editableElementsMap.keys()}},{key:"_editableElements",get:function(){return console.warn("editor-ui-deprecated-editable-elements: The EditorUI#_editableElements property has been deprecated and will be removed in the near future.",{editorUI:this}),this._editableElementsMap}},{key:"_readViewportOffsetFromConfig",value:function(){var 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}}}]),t}();ke(Bc,he);var Pc={setData:function(t){this.data.set(t)},getData:function(t){return this.data.get(t)}},Lc={updateSourceElement:function(){if(!this.sourceElement)throw new x("editor-missing-sourceelement",this);var t,e;t=this.sourceElement,e=this.data.get(),t instanceof HTMLTextAreaElement&&(t.value=e),t.innerHTML=e}},Nc=function(t,e){k(i,t);var n=b(i);function i(){return I(this,i),n.apply(this,arguments)}return S(i,[{key:"init",value:function(){this.set("hasAny",!1),this._actions=new Xn({idProperty:"_id"}),this._actions.delegate("add","remove").to(this)}},{key:"add",value:function(t){if("string"!=typeof t)throw new x("pendingactions-add-invalid-message",this);var e=Object.create(he);return e.set("message",t),this._actions.add(e),this.hasAny=!0,e}},{key:"remove",value:function(t){this._actions.remove(t),this.hasAny=!!this._actions.length}},{key:"first",get:function(){return this._actions.get(0)}},{key:e,value:function(){return this._actions[Symbol.iterator]()}}],[{key:"pluginName",get:function(){return"PendingActions"}}]),i}(ai,Symbol.iterator),Oc='<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>',Fc='<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>',Rc='<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>',jc='<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>',Vc='<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>',Hc='<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.3
265.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>',Uc='<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>',Zc='<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>',qc='<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>',Wc='<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>',Gc='<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>',$c='<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>',Yc='<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>',Kc='<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>',Qc='<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>',Jc='<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>',Xc='<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>',tu='<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>',eu='<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>',nu='<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>',iu='<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>',ou='<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-1
2h1zm19 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>',ru='<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>',au='<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>',su='<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>',lu='<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>',cu='<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>';function uu(t){var e=t.emitter,n=t.activator,i=t.callback,o=t.contextElements;e.listenTo(document,"mousedown",(function(t,e){if(n()){var r,a="function"==typeof e.composedPath?e.composedPath():[],s=p(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;if(l.contains(e.target)||a.includes(l))return}}catch(t){s.e(t)}finally{s.f()}i()}}))}function du(t){t.set("_isCssTransitionsDisabled",!1),t.disableCssTransitions=function(){t._isCssTransitionsDisabled=!0},t.enableCssTransitions=function(){t._isCssTransitionsDisabled=!1},t.extendTemplate({attributes:{class:[t.bindTemplate.if("_isCssTransitionsDisabled","ck-transitions-disabled")]}})}function hu(t){var e=t.view;e.listenTo(e.element,"submit",(function(t,n){n.preventDefault(),e.fire("submit")}),{useCapture:!0})}var fu=function(t){k(n,t);var e=b(n);function n(){var t,i=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];return I(this,n),(t=e.call(this,i,{idProperty:"viewUid"})).on("add",(function(e,n,i){t._renderViewIntoCollectionParent(n,i)}
2)),t.on("remove",(function(e,n){n.element&&t._parentElement&&n.element.remove()})),t._parentElement=null,t}return S(n,[{key:"destroy",value:function(){this.map((function(t){return t.destroy()}))}},{key:"setParent",value:function(t){this._parentElement=t;var e,n=p(this);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._renderViewIntoCollectionParent(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"delegate",value:function(){for(var t=this,e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];if(!n.length||!n.every((function(t){return"string"==typeof t})))throw new x("ui-viewcollection-delegate-wrong-events",this);return{to:function(e){var i,o=p(t);try{for(o.s();!(i=o.n()).done;)for(var r=i.value,a=0,s=n;a<s.length;a++){var l=s[a];r.delegate(l).to(e)}}catch(t){o.e(t)}finally{o.f()}t.on("add",(function(t,i){for(var o=0,r=n;o<r.length;o++){var a=r[o];i.delegate(a).to(e)}})),t.on("remove",(function(t,i){for(var o=0,r=n;o<r.length;o++){var a=r[o];i.stopDelegating(a,e)}}))}}}},{key:"_renderViewIntoCollectionParent",value:function(t,e){t.isRendered||t.render(),t.element&&this._parentElement&&this._parentElement.insertBefore(t.element,this._parentElement.children[e])}}]),n}(Xn),pu=r(6150);fr()(pu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),pu.Z.locals;var mu=function(){function t(e){I(this,t),this.element=null,this.isRendered=!1,this.locale=e,this.t=e&&e.t,this._viewCollections=new Xn,this._unboundChildren=this.createCollection(),this._viewCollections.on("add",(function(t,n){n.locale=e})),this.decorate("render")}return S(t,[{key:"bindTemplate",get:function(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=gu.bind(this,this)}},{key:"createCollection",value:function(t){var e=new fu(t);return this._viewCollections.add(e),e}},{key:"registerChild",value:function(t){Jn(t)||(t=[t]);var e,n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._unboundChildren.add(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"deregisterChild",value:function(t){Jn(t)||(t=[t]);var e,n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;this._unboundChildren.remove(i)}}catch(t){n.e(t)}finally{n.f()}}},{key:"setTemplate",value:function(t){this.template=new gu(t)}},{key:"extendTemplate",value:function(t){gu.extend(this.template,t)}},{key:"render",value:function(){if(this.isRendered)throw new x("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(){this.stopListening(),this._viewCollections.map((function(t){return t.destroy()})),this.template&&this.template._revertData&&this.template.revert(this.element)}}]),t}();ke(mu,Pr),ke(mu,he);var gu=function(){function t(e){I(this,t),Object.assign(this,Du(xu(e))),this._isRendered=!1,this._revertData=null}return S(t,[{key:"render",value:function(){var t=this._renderNode({intoFragment:!0});return this._isRendered=!0,t}},{key:"apply",value:function(t){return this._revertData={children:[],bindings:[],attributes:{}},this._renderNode({node:t,isApplying:!0,revertData:this._revertData}),t}},{key:"revert",value:function(t){if(!this._revertData)throw new x("ui-template-revert-not-applied",[this,t]);this._revertTemplateFromNode(t,this._revertData)}},{key:"getViews",value:h().mark((function t(){return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.delegateYield(h().mark((function t(e){var n,i,o;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:if(!e.children){r.next=24;break}n=p(e.children),r.prev=2,n.s();case 4:if((i=n.n()).done){r.next=16;break}if(!Mu(o=i.value)){r.next=11;break}return r.next=9,o;case 9:r.next=14;break;case 11:if(r.t0=Bu(o),!r.t0){r.next=14;break}return r.delegateYield(t(o),"t1",14);case 14:r.next=4;break;case 16:r.next=21;break;case 18:r.prev=18,r.t2=r.catch(2),n.e(r.t2);case 21:return r.prev=21,n.f(),r.finish(21);case 24:case"end":return r.stop()}}),t,null,[[2,18,21,24]])}))(this),"t0",1);case 1:case"end":return t.stop()}}),t,this)}))}
2,{key:"_renderNode",value:function(t){if(t.node?this.tag&&this.text:this.tag?this.text:!this.text)throw new x("ui-template-wrong-syntax",this);return this.text?this._renderText(t):this._renderElement(t)}},{key:"_renderElement",value:function(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(t){var e=t.node;return e?t.revertData.text=e.textContent:e=t.node=document.createTextNode(""),yu(this.text)?this._bindToObservable({schema:this.text,updater:wu(e),data:t}):e.textContent=this.text.join(""),e}},{key:"_renderAttributes",value:function(t){var e,n,i,o;if(this.attributes){var r=t.node,a=t.revertData;for(e in this.attributes)if(i=r.getAttribute(e),n=this.attributes[e],a&&(a.attributes[e]=i),o=Z(n[0])&&n[0].ns?n[0].ns:null,yu(n)){var s=o?n[0].value:n;a&&Lu(e)&&s.unshift(i),this._bindToObservable({schema:s,updater:Cu(r,e,o),data:t})}else"style"==e&&"string"!=typeof n[0]?this._renderStyleAttribute(n[0],t):(a&&i&&Lu(e)&&n.unshift(i),n=n.map((function(t){return t&&t.value||t})).reduce((function(t,e){return t.concat(e)}),[]).reduce(Su,""),zu(n)||r.setAttributeNS(o,e,n))}}},{key:"_renderStyleAttribute",value:function(t,e){var n=e.node;for(var i in t){var o=t[i];yu(o)?this._bindToObservable({schema:[o],updater:Au(n,i),data:e}):n.style[i]=o}}},{key:"_renderElementChildren",value:function(t){var e,n=t.node,i=t.intoFragment?document.createDocumentFragment():n,o=t.isApplying,r=0,a=p(this.children);try{for(a.s();!(e=a.n()).done;){var s=e.value;if(Pu(s)){if(!o){s.setParent(n);var l,c=p(s);try{for(c.s();!(l=c.n()).done;){var u=l.value;i.appendChild(u.element)}}catch(t){c.e(t)}finally{c.f()}}}else if(Mu(s))o||(s.isRendered||s.render(),i.appendChild(s.element));else if(dr(s))i.appendChild(s);else if(o){var d={children:[],bindings:[],attributes:{}};t.revertData.children.push(d),s._renderNode({node:i.childNodes[r++],isApplying:!0,revertData:d})}else i.appendChild(s.render())}}catch(t){a.e(t)}finally{a.f()}t.intoFragment&&n.appendChild(i)}},{key:"_setUpListeners",value:function(t){var e=this;if(this.eventListeners){var n=function(n){var i=e.eventListeners[n].map((function(e){var i=f(n.split("@"),2),o=i[0],r=i[1];return e.activateDomEventListener(o,r,t)}));t.revertData&&t.revertData.bindings.push(i)};for(var i in this.eventListeners)n(i)}}},{key:"_bindToObservable",value:function(t){var e=t.schema,n=t.updater,i=t.data,o=i.revertData;_u(e,n,i);var r=e.filter((function(t){return!zu(t)})).filter((function(t){return t.observable})).map((function(t){return t.activateAttributeListener(e,n,i)}));o&&o.bindings.push(r)}},{key:"_revertTemplateFromNode",value:function(t,e){var n,i=p(e.bindings);try{for(i.s();!(n=i.n()).done;){var o,r=p(n.value);try{for(r.s();!(o=r.n()).done;){(0,o.value)()}}catch(t){r.e(t)}finally{r.f()}}}catch(t){i.e(t)}finally{i.f()}if(e.text)t.textContent=e.text;else{for(var a in e.attributes){var s=e.attributes[a];null===s?t.removeAttribute(a):t.setAttribute(a,s)}for(var l=0;l<e.children.length;++l)this._revertTemplateFromNode(t.childNodes[l],e.children[l])}}}],[{key:"bind",value:function(t,e){return{to:function(n,i){return new ku({eventNameOrFunction:n,attribute:n,observable:t,emitter:e,callback:i})},if:function(n,i,o){return new bu({observable:t,emitter:e,attribute:n,valueIfTrue:i,callback:o})}}}},{key:"extend",value:function(t,e){if(t._isRendered)throw new x("template-extend-render",[this,t]);Iu(t,Du(xu(e)))}}]),t}();ke(gu,N);var vu=function(){function t(e){I(this,t),Object.assign(this,e)}return S(t,[{key:"getValue",value:function(t){var e=this.observable[this.attribute];return this.callback?this.callback(e,t):e}},{key:"activateAttributeListener",value:function(t,e,n){var i=this,o=function(){return _u(t,e,n)};return this.emitter.listenTo(this.observable,"change:"+this.attribute,o),function(){i.emitter.stopListening(i.observable,"change:"+i.attribute,o)}}}]),t}(),ku=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"activateDomEventListener",value:function(t,e,n){var i=this,o=function(t,n){e&&!n.target.matches(e)||("function"==typeof i.eventNameOrFunction?i.eventNameOrFunction(n):i.observable.fire(i.eventNameOrFunction,n))};return this.emitter.listenTo(n.node,t,o),function(){i.emitter.stopListening(n.node,t,o)}}}]),n}(vu),bu=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"getValue",value:function(t){return!zu(d(D(n.prototype),"getValue",this).call(this,t))&&(this.valueIfTrue||!0)}}]),n}(vu);function yu(t){return!!t&&(t.value&&(t=t.value),Array.isArray(t)?t.some(yu):t instanceof vu)}function _u(t,e,n){var i=function(t,e){return t.map((function(t){return t instanceof vu?t.getValue(e):t}))}(t,n.node);zu(i=1==t.length&&t[0]instanceof bu?i[0]:i.reduce(Su,""))?e.remove():e.set(i)}function wu(t){return{set:function(e){t.textContent=e},remove:function(){t.textContent=""}}}function Cu(t,e,n){return{set:function(i){t.setAttributeNS(n,e,i)},remove:function(){t.removeAttributeNS(n,e)}}}function Au(t,e){return{set:function(n){t.style[e]=n},remove:function(){t.style[e]=null}}}function xu(t){return Gn(t,(function(t){if(t&&(t instanceof vu||Bu(t)||Mu(t)||Pu(t)))return t}))}function Du(t){if("string"==typeof t?t=function(t){return{text:[t]}}(t):t.text&&function(t){t.text=ei(t.text)}(t),t.on&&(t.eventListeners=function(t){for(var e in t)Eu(t,e);return t}(t.on),delete t.on),!t.text){t.attributes&&function(t){for(var e in t)t[e].value&&(t[e].value=ei(t[e].value)),Eu(t,e)}(t.attributes);var e=[];
2if(t.children)if(Pu(t.children))e.push(t.children);else{var n,i=p(t.children);try{for(i.s();!(n=i.n()).done;){var o=n.value;Bu(o)||Mu(o)||dr(o)?e.push(o):e.push(new gu(o))}}catch(t){i.e(t)}finally{i.f()}}t.children=e}return t}function Eu(t,e){t[e]=ei(t[e])}function Su(t,e){return zu(e)?t:zu(t)?e:"".concat(t," ").concat(e)}function Tu(t,e){for(var n in e){var i;t[n]?(i=t[n]).push.apply(i,m(e[n])):t[n]=e[n]}}function Iu(t,e){var n;if(e.attributes&&(t.attributes||(t.attributes={}),Tu(t.attributes,e.attributes)),e.eventListeners&&(t.eventListeners||(t.eventListeners={}),Tu(t.eventListeners,e.eventListeners)),e.text&&(n=t.text).push.apply(n,m(e.text)),e.children&&e.children.length){if(t.children.length!=e.children.length)throw new x("ui-template-extend-children-mismatch",t);var i,o=0,r=p(e.children);try{for(r.s();!(i=r.n()).done;){var a=i.value;Iu(t.children[o++],a)}}catch(t){r.e(t)}finally{r.f()}}}function zu(t){return!t&&0!==t}function Mu(t){return t instanceof mu}function Bu(t){return t instanceof gu}function Pu(t){return t instanceof fu}function Lu(t){return"class"==t||"style"==t}var Nu=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[];return I(this,n),(i=e.call(this,o)).locale=t,i}return S(n,[{key:"attachToDom",value:function(){this._bodyCollectionContainer=new gu({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=Aa(document,"div",{class:"ck-body-wrapper"}),document.body.appendChild(t)),t.appendChild(this._bodyCollectionContainer)}},{key:"detachFromDom",value:function(){d(D(n.prototype),"destroy",this).call(this),this._bodyCollectionContainer&&this._bodyCollectionContainer.remove();var t=document.querySelector(".ck-body-wrapper");t&&0==t.childElementCount&&t.remove()}}]),n}(fu),Ou=r(1174);fr()(Ou.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ou.Z.locals;var Fu=function(t){k(n,t);var e=b(n);function n(){var t;I(this,n);var i=(t=e.call(this)).bindTemplate;return t.set("content",""),t.set("viewBox","0 0 20 20"),t.set("fillColor",""),t.setTemplate({tag:"svg",ns:"http://www.w3.org/2000/svg",attributes:{class:["ck","ck-icon"],viewBox:i.to("viewBox")}}),t}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this._updateXMLContent(),this._colorFillPaths(),this.on("change:content",(function(){t._updateXMLContent(),t._colorFillPaths()})),this.on("change:fillColor",(function(){t._colorFillPaths()}))}},{key:"_updateXMLContent",value:function(){if(this.content){var t=(new DOMParser).parseFromString(this.content.trim(),"image/svg+xml").querySelector("svg"),e=t.getAttribute("viewBox");for(e&&(this.viewBox=e),this.element.innerHTML="";t.childNodes.length>0;)this.element.appendChild(t.childNodes[0])}}},{key:"_colorFillPaths",value:function(){var t=this;this.fillColor&&this.element.querySelectorAll(".ck-icon__fill").forEach((function(e){e.style.fill=t.fillColor}))}}]),n}(mu),Ru=r(9948);fr()(Ru.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ru.Z.locals;var ju=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).set("text",""),i.set("position","s");var o=i.bindTemplate;return i.setTemplate({tag:"span",attributes:{class:["ck","ck-tooltip",o.to("position",(function(t){return"ck-tooltip_"+t})),o.if("text","ck-hidden",(function(t){return!t.trim()}))]},children:[{tag:"span",attributes:{class:["ck","ck-tooltip__text"]},children:[{text:o.to("text")}]}]}),i}return S(n)}(mu),Vu=r(4499);fr()(Vu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Vu.Z.locals;var Hu=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate,r=v();return i.set("class"),i.set("labelStyle"),i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isVisible",!0),i.set("isToggleable",!1),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.set("withKeystroke",!1),i.children=i.createCollection(),i.tooltipView=i._createTooltipView(),i.labelView=i._createLabelView(r),i.iconView=new Fu,i.iconView.extendTemplate({attributes:{class:"ck-button__icon"}}),i.keystrokeView=i._createKeystrokeView(),i.bind("_tooltipString").to(_(i),"tooltip",_(i),"label",_(i),"keystroke",i._getTooltipString.bind(_(i))),i.setTemplate({tag:"button",attributes:{class:["ck","ck-button",o.to("class"),o.if("isEnabled","ck-disabled",(function(t){return!t})),o.if("isVisible","ck-hidden",(function(t){return!t})),o.to("isOn",(function(t){return t?"ck-on":"ck-off"})),o.if("withText","ck-button_with-text"),o.if("withKeystroke","ck-button_with-keystroke")],type:o.to("type",(function(t){return t||"button"}
2)),tabindex:o.to("tabindex"),"aria-labelledby":"ck-editor__aria-label_".concat(r),"aria-disabled":o.if("isEnabled",!0,(function(t){return!t})),"aria-pressed":o.to("isOn",(function(t){return!!i.isToggleable&&String(t)}))},children:i.children,on:{mousedown:o.to((function(t){t.preventDefault()})),click:o.to((function(t){i.isEnabled?i.fire("execute"):t.preventDefault()}))}}),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.icon&&(this.iconView.bind("content").to(this,"icon"),this.children.add(this.iconView)),this.children.add(this.tooltipView),this.children.add(this.labelView),this.withKeystroke&&this.keystroke&&this.children.add(this.keystrokeView)}},{key:"focus",value:function(){this.element.focus()}},{key:"_createTooltipView",value:function(){var t=new ju;return t.bind("text").to(this,"_tooltipString"),t.bind("position").to(this,"tooltipPosition"),t}},{key:"_createLabelView",value:function(t){var e=new mu,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:this.bindTemplate.to("label")}]}),e}},{key:"_createKeystrokeView",value:function(){var t=new mu;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__keystroke"]},children:[{text:this.bindTemplate.to("keystroke",(function(t){return zo(t)}))}]}),t}},{key:"_getTooltipString",value:function(t,e,n){return t?"string"==typeof t?t:(n&&(n=zo(n)),t instanceof Function?t(e,n):"".concat(e).concat(n?" (".concat(n,")"):"")):""}}]),n}(mu),Uu=r(9681);fr()(Uu.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Uu.Z.locals;var Zu=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).isToggleable=!0,i.toggleSwitchView=i._createToggleView(),i.extendTemplate({attributes:{class:"ck-switchbutton"}}),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.children.add(this.toggleSwitchView)}},{key:"_createToggleView",value:function(){var t=new mu;return t.setTemplate({tag:"span",attributes:{class:["ck","ck-button__toggle"]},children:[{tag:"span",attributes:{class:["ck","ck-button__toggle__inner"]}}]}),t}}]),n}(Hu);function qu(t,e){var n=t.t,i={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=i[t.label];return e&&e!=t.label&&(t.label=e),t}))}function Wu(t){return t.map(Gu).filter((function(t){return!!t}))}function Gu(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 $u=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("color"),i.set("hasBorder"),i.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>',i.extendTemplate({attributes:{style:{backgroundColor:o.to("color")},class:["ck","ck-color-grid__tile",o.if("hasBorder","ck-color-table__color-tile_bordered")]}}),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.iconView.fillColor="hsl(0, 0%, 100%)"}}]),n}(Hu);function Yu(t){return!!(t&&t.getClientRects&&t.getClientRects().length)}var Ku=function(){function t(e){var n=this;if(I(this,t),Object.assign(this,e),e.actions&&e.keystrokeHandler){var i=function(t){var i=e.actions[t];"string"==typeof i&&(i=[i]);var o,r=p(i);try{for(r.s();!(o=r.n()).done;){var a=o.value;e.keystrokeHandler.set(a,(function(e,i){n[t](),i()}))}}catch(t){r.e(t)}finally{r.f()}};for(var o in e.actions)i(o)}}
2return S(t,[{key:"first",get:function(){return this.focusables.find(Qu)||null}},{key:"last",get:function(){return this.focusables.filter(Qu).slice(-1)[0]||null}},{key:"next",get:function(){return this._getFocusableItem(1)}},{key:"previous",get:function(){return this._getFocusableItem(-1)}},{key:"current",get:function(){var t=this,e=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((function(n,i){var o=n.element===t.focusTracker.focusedElement;return o&&(e=i),o})),e)}},{key:"focusFirst",value:function(){this._focus(this.first)}},{key:"focusLast",value:function(){this._focus(this.last)}},{key:"focusNext",value:function(){this._focus(this.next)}},{key:"focusPrevious",value:function(){this._focus(this.previous)}},{key:"_focus",value:function(t){t&&t.focus()}},{key:"_getFocusableItem",value:function(t){var e=this.current,n=this.focusables.length;if(!n)return null;if(null===e)return this[1===t?"first":"last"];var i=(e+n+t)%n;do{var o=this.focusables.get(i);if(Qu(o))return o;i=(i+n+t)%n}while(i!==e);return null}}]),t}();function Qu(t){return!(!t.focus||!Yu(t.element))}var Ju=r(4923);fr()(Ju.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ju.Z.locals;var Xu=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),o=e.call(this,t);var r=i&&i.colorDefinitions||[],a={};return i&&i.columns&&(a.gridTemplateColumns="repeat( ".concat(i.columns,", 1fr)")),o.set("selectedColor"),o.items=o.createCollection(),o.focusTracker=new Pa,o.keystrokes=new La,o._focusCycler=new Ku({focusables:o.items,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"arrowleft",focusNext:"arrowright"}}),o.items.on("add",(function(t,e){e.isOn=e.color===o.selectedColor})),r.forEach((function(t){var e=new $u;e.set({color:t.color,label:t.label,tooltip:!0,hasBorder:t.options.hasBorder}),e.on("execute",(function(){o.fire("execute",{value:t.color,hasBorder:t.options.hasBorder,label:t.label})})),o.items.add(e)})),o.setTemplate({tag:"div",children:o.items,attributes:{class:["ck","ck-color-grid"],style:a}}),o.on("change:selectedColor",(function(t,e,n){var i,r=p(o.items);try{for(r.s();!(i=r.n()).done;){var a=i.value;a.isOn=a.color===n}}catch(t){r.e(t)}finally{r.f()}})),o}return S(n,[{key:"focus",value:function(){this.items.length&&this.items.first.focus()}},{key:"focusLast",value:function(){this.items.length&&this.items.last.focus()}},{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this);var e,i=p(this.items);try{for(i.s();!(e=i.n()).done;){var o=e.value;this.focusTracker.add(o.element)}}catch(t){i.e(t)}finally{i.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}}]),n}(mu),td='<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>',ed=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).arrowView=i._createArrowView(),i.extendTemplate({attributes:{"aria-haspopup":!0}}),i.delegate("execute").to(_(i),"open"),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.children.add(this.arrowView)}},{key:"_createArrowView",value:function(){var t=new Fu;return t.content=td,t.extendTemplate({attributes:{class:"ck-dropdown__arrow"}}),t}}]),n}(Hu),nd=r(66);fr()(nd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nd.Z.locals;var id=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("class"),i.set("icon"),i.set("isEnabled",!0),i.set("isOn",!1),i.set("isToggleable",!1),i.set("isVisible",!0),i.set("keystroke"),i.set("label"),i.set("tabindex",-1),i.set("tooltip"),i.set("tooltipPosition","s"),i.set("type","button"),i.set("withText",!1),i.children=i.createCollection(),i.actionView=i._createActionView(),i.arrowView=i._createArrowView(),i.keystrokes=new La,i.focusTracker=new Pa,i.setTemplate({tag:"div",attributes:{class:["ck","ck-splitbutton",o.to("class"),o.if("isVisible","ck-hidden",(function(t){return!t})),i.arrowView.bindTemplate.if("isOn","ck-splitbutton_open")]},children:i.children}),i}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this.children.add(this.actionView),this.children.add(this.arrowView),this.focusTracker.add(this.actionView.element),this.focusTracker.add(this.arrowView.element),this.keystrokes.listenTo(this.element),this.keystrokes.set("arrowright",(function(e,n){t.focusTracker.focusedElement===t.actionView.element&&(t.arrowView.focus(),n())})),this.keystrokes.set("arrowleft",(function(e,n){t.focusTracker.focusedElement===t.arrowView.element&&(t.actionView.focus(),n())}))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this.actionView.focus()}},{key:"_createActionView",value:function(){var t=new Hu;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(){var t=new Hu,e=t.bindTemplate;return t.icon=td,t.extendTemplate({attributes:{class:"ck-splitbutton__arrow","aria-haspopup":!0,"aria-expanded":e.to("isOn",(function(t){return String(t)}))}}),t.bind("isEnabled").to(this),t.delegate("execute").to(this,"open"),t}}]),n}(mu),od=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("isVisible",!1),i.set("position","se"),i.children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-dropdown__panel",o.to("position",(function(t){return"ck-dropdown__panel_".concat(t)})),o.if("isVisible","ck-dropdown__panel-visible")]},children:i.children,on:{selectstart:o.to((function(t){return t.preventDefault()}))}}),i}return S(n,[{key:"focus",value:function(){this.children.length&&this.children.first.focus()}},{key:"focusLast",value:function(){if(this.children.length){var t=this.children.last;"function"==typeof t.focusLast?t.focusLast():t.focus()}}}]),n}(mu),rd=r(3488);function ad(t){var e=t.element,n=t.target,i=t.positions,o=t.limiter,r=t.fitInViewport,a=t.viewportOffsetConfig;nt(n)&&(n=n()),nt(o)&&(o=o());var s,l=function(t){return t&&t.parentNode?t.offsetParent===br.document.body?null:t.offsetParent:null}(e),c=new Sa(e),u={targetRect:new Sa(n),elementRect:c,positionedElementAncestor:l};if(o||r){var d=o&&new Sa(o).getVisible(),h=r&&function(t){t=Object.assign({top:0,bottom:0,left:0,right:0},t);var e=new Sa(br.window);return e.top+=t.top,e.height-=t.top,e.bottom-=t.bottom,e.height-=t.bottom,e}(a);Object.assign(u,{limiterRect:d,viewportRect:h}),s=function(t,e){var n,i=e.elementRect.getArea(),o=0,r=null,a=p(t.map((function(t){return new ld(t,e)})).filter((function(t){return!!t.name})));try{for(a.s();!(n=a.n()).done;){var s=n.value,l=s._limiterIntersectionArea,c=s._viewportIntersectionArea;if(l===i)return s;var u=Math.pow(c,2)+Math.pow(l,2);u>o&&(o=u,r=s)}}catch(t){a.e(t)}finally{a.f()}return r}(i,u)||new ld(i[0],u)}else s=new ld(i[0],u);return s}function sd(t){var e=br.window,n=e.scrollX,i=e.scrollY;return t.clone().moveBy(n,i)}fr()(rd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rd.Z.locals;var ld=function(){function t(e,n){I(this,t);var i=e(n.targetRect,n.elementRect,n.viewportRect);if(i){var o=i.left,r=i.top,a=i.name,s=i.config;Object.assign(this,{name:a,config:s}),this._positioningFunctionCorrdinates={left:o,top:r},this._options=n}}
2return S(t,[{key:"left",get:function(){return this._absoluteRect.left}},{key:"top",get:function(){return this._absoluteRect.top}},{key:"_limiterIntersectionArea",get:function(){var t=this._options.limiterRect;if(t){var e=this._options.viewportRect;if(!e)return t.getIntersectionArea(this._rect);var n=t.getIntersection(e);if(n)return n.getIntersectionArea(this._rect)}return 0}},{key:"_viewportIntersectionArea",get:function(){var t=this._options.viewportRect;return t?t.getIntersectionArea(this._rect):0}},{key:"_rect",get:function(){return this._cachedRect||(this._cachedRect=this._options.elementRect.clone().moveTo(this._positioningFunctionCorrdinates.left,this._positioningFunctionCorrdinates.top)),this._cachedRect}},{key:"_absoluteRect",get:function(){return this._cachedAbsoluteRect||(this._cachedAbsoluteRect=sd(this._rect),this._options.positionedElementAncestor&&function(t,e){var n=sd(new Sa(e)),i=Da(e),o=0,r=0;o-=n.left,r-=n.top,o+=e.scrollLeft,r+=e.scrollTop,o-=i.left,r-=i.top,t.moveBy(o,r)}(this._cachedAbsoluteRect,this._options.positionedElementAncestor)),this._cachedAbsoluteRect}}]),t}(),cd=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;I(this,n);var a=(r=e.call(this,t)).bindTemplate;return r.buttonView=i,r.panelView=o,r.set("isOpen",!1),r.set("isEnabled",!0),r.set("class"),r.set("id"),r.set("panelPosition","auto"),r.keystrokes=new La,r.setTemplate({tag:"div",attributes:{class:["ck","ck-dropdown",a.to("class"),a.if("isEnabled","ck-disabled",(function(t){return!t}))],id:a.to("id"),"aria-describedby":a.to("ariaDescribedById")},children:[i,o]}),i.extendTemplate({attributes:{class:["ck-dropdown__button"]}}),r}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this.listenTo(this.buttonView,"open",(function(){t.isOpen=!t.isOpen})),this.panelView.bind("isVisible").to(this,"isOpen"),this.on("change:isOpen",(function(){t.isOpen&&("auto"===t.panelPosition?t.panelView.position=n._getOptimalPosition({element:t.panelView.element,target:t.buttonView.element,fitInViewport:!0,positions:t._panelPositions}).name:t.panelView.position=t.panelPosition)})),this.keystrokes.listenTo(this.element);var e=function(e,n){t.isOpen&&(t.buttonView.focus(),t.isOpen=!1,n())};this.keystrokes.set("arrowdown",(function(e,n){t.buttonView.isEnabled&&!t.isOpen&&(t.isOpen=!0,n())})),this.keystrokes.set("arrowright",(function(e,n){t.isOpen&&n()})),this.keystrokes.set("arrowleft",e),this.keystrokes.set("esc",e)}},{key:"focus",value:function(){this.buttonView.focus()}},{key:"_panelPositions",get:function(){var t=n.defaultPanelPositions,e=t.south,i=t.north,o=t.southEast,r=t.southWest,a=t.northEast,s=t.northWest,l=t.southMiddleEast,c=t.southMiddleWest,u=t.northMiddleEast,d=t.northMiddleWest;return"rtl"!==this.locale.uiLanguageDirection?[o,r,l,c,e,a,s,u,d,i]:[r,o,c,l,e,s,a,d,u,i]}}]),n}(mu);cd.defaultPanelPositions={south:function(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/2,name:"s"}},southEast:function(t){return{top:t.bottom,left:t.left,name:"se"}},southWest:function(t,e){return{top:t.bottom,left:t.left-e.width+t.width,name:"sw"}},southMiddleEast:function(t,e){return{top:t.bottom,left:t.left-(e.width-t.width)/4,name:"sme"}},southMiddleWest:function(t,e){return{top:t.bottom,left:t.left-3*(e.width-t.width)/4,name:"smw"}},north:function(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/2,name:"n"}},northEast:function(t,e){return{top:t.top-e.height,left:t.left,name:"ne"}},northWest:function(t,e){return{top:t.top-e.height,left:t.left-e.width+t.width,name:"nw"}},northMiddleEast:function(t,e){return{top:t.top-e.height,left:t.left-(e.width-t.width)/4,name:"nme"}},northMiddleWest:function(t,e){return{top:t.top-e.height,left:t.left-3*(e.width-t.width)/4,name:"nmw"}}},cd._getOptimalPosition=ad;var ud=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__separator"]}}),i}return S(n)}(mu),dd=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).setTemplate({tag:"span",attributes:{class:["ck","ck-toolbar__line-break"]}}),i}return S(n)}(mu);function hd(t){return Array.isArray(t)?{items:t,removeItems:[]}:t?Object.assign({items:[],removeItems:[]},t):{items:[],removeItems:[]}}var fd=r(5571);fr()(fd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),fd.Z.locals;var pd=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n);var r=(o=e.call(this,t)).bindTemplate,a=o.t;o.options=i||{},o.set("ariaLabel",a("Editor toolbar")),o.set("maxWidth","auto"),o.items=o.createCollection(),o.focusTracker=new Pa,o.keystrokes=new La,o.set("class"),o.set("isCompact",!1),o.itemsView=new md(t),o.children=o.createCollection(),o.children.add(o.itemsView),o.focusables=o.createCollection();var s="rtl"===t.uiLanguageDirection;o._focusCycler=new Ku({focusables:o.focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:[s?"arrowright":"arrowleft","arrowup"],focusNext:[s?"arrowleft":"arrowright","arrowdown"]}});var l,c=["ck","ck-toolbar",r.to("class"),r.if("isCompact","ck-toolbar_compact")];return o.options.shouldGroupWhenFull&&o.options.isFloating&&c.push("ck-toolbar_floating"),o.setTemplate({tag:"div",attributes:{class:c,role:"toolbar","aria-label":r.to("ariaLabel"),style:{maxWidth:r.to("maxWidth")}},children:o.children,on:{mousedown:(l=_(o),l.bindTemplate.to((function(t){t.target===l.element&&t.preventDefault()})))}}),o._behavior=o.options.shouldGroupWhenFull?new vd(_(o)):new gd(_(o)),o}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this);var e,i=p(this.items);try{for(i.s();!(e=i.n()).done;){var o=e.value;this.focusTracker.add(o.element)}}catch(t){i.e(t)}finally{i.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element),this._behavior.render(this)}},{key:"destroy",value:function(){return this._behavior.destroy(),this.focusTracker.destroy(),this.keystrokes.destroy(),d(D(n.prototype),"destroy",this).call(this)}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"fillFromConfig",value:function(t,e){var n=this,i=hd(t),o=i.items.filter((function(t,o,r){return"|"===t||-1===i.removeItems.indexOf(t)&&("-"===t?!n.options.shouldGroupWhenFull||(E("toolbarview-line-break-ignored-when-grouping-items",r),!1):!!e.has(t)||(E("toolbarview-item-unavailable",{name:t}),!1))})),r=this._cleanSeparators(o).map((function(t){return"|"===t?new ud:"-"===t?new dd:e.create(t)}));this.items.addMany(r)}},{key:"_cleanSeparators",value:function(t){var e=function(t){return"-"!==t&&"|"!==t},n=t.length,i=t.findIndex(e),o=n-t.slice().reverse().findIndex(e);return t.slice(i,o).filter((function(t,n,i){return!!e(t)||!(n>0&&i[n-1]===t)}))}}]),n}(mu),md=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-toolbar__items"]},children:i.children}),i}return S(n)}(mu),gd=function(){function t(e){I(this,t);var n=e.bindTemplate;e.set("isVertical",!1),e.itemsView.children.bindTo(e.items).using((function(t){return t})),e.focusables.bindTo(e.items).using((function(t){return t})),e.extendTemplate({attributes:{class:[n.if("isVertical","ck-toolbar_vertical")]}})}
2return S(t,[{key:"render",value:function(){}},{key:"destroy",value:function(){}}]),t}(),vd=function(){function t(e){var n=this;I(this,t),this.view=e,this.viewChildren=e.children,this.viewFocusables=e.focusables,this.viewItemsView=e.itemsView,this.viewFocusTracker=e.focusTracker,this.viewLocale=e.locale,this.ungroupedItems=e.createCollection(),this.groupedItems=e.createCollection(),this.groupedItemsDropdown=this._createGroupedItemsDropdown(),this.resizeObserver=null,this.cachedPadding=null,this.shouldUpdateGroupingOnNextResize=!1,e.itemsView.children.bindTo(this.ungroupedItems).using((function(t){return t})),this.ungroupedItems.on("add",this._updateFocusCycleableItems.bind(this)),this.ungroupedItems.on("remove",this._updateFocusCycleableItems.bind(this)),e.children.on("add",this._updateFocusCycleableItems.bind(this)),e.children.on("remove",this._updateFocusCycleableItems.bind(this)),e.items.on("change",(function(t,e){var i,o=e.index,r=p(e.removed);try{for(r.s();!(i=r.n()).done;){var a=i.value;o>=n.ungroupedItems.length?n.groupedItems.remove(a):n.ungroupedItems.remove(a)}}catch(t){r.e(t)}finally{r.f()}for(var s=o;s<o+e.added.length;s++){var l=e.added[s-o];s>n.ungroupedItems.length?n.groupedItems.add(l,s-n.ungroupedItems.length):n.ungroupedItems.add(l,s)}n._updateGrouping()})),e.extendTemplate({attributes:{class:["ck-toolbar_grouping"]}})}return S(t,[{key:"render",value:function(t){this.viewElement=t.element,this._enableGroupingOnResize(),this._enableGroupingOnMaxWidthChange(t)}},{key:"destroy",value:function(){this.groupedItemsDropdown.destroy(),this.resizeObserver.destroy()}},{key:"_updateGrouping",value:function(){if(this.viewElement.ownerDocument.body.contains(this.viewElement))if(Yu(this.viewElement)){for(var t,e=this.groupedItems.length;this._areItemsOverflowing;)this._groupLastItem(),t=!0;if(!t&&this.groupedItems.length){for(;this.groupedItems.length&&!this._areItemsOverflowing;)this._ungroupFirstItem();this._areItemsOverflowing&&this._groupLastItem()}this.groupedItems.length!==e&&this.view.fire("groupedItemsUpdate")}else this.shouldUpdateGroupingOnNextResize=!0}},{key:"_areItemsOverflowing",get:function(){if(!this.ungroupedItems.length)return!1;var t=this.viewElement,e=this.viewLocale.uiLanguageDirection,n=new Sa(t.lastChild),i=new Sa(t);if(!this.cachedPadding){var o=br.window.getComputedStyle(t),r="ltr"===e?"paddingRight":"paddingLeft";this.cachedPadding=Number.parseInt(o[r])}return"ltr"===e?n.right>i.right-this.cachedPadding:n.left<i.left+this.cachedPadding}},{key:"_enableGroupingOnResize",value:function(){var t,e=this;this.resizeObserver=new za(this.viewElement,(function(n){t&&t===n.contentRect.width&&!e.shouldUpdateGroupingOnNextResize||(e.shouldUpdateGroupingOnNextResize=!1,e._updateGrouping(),t=n.contentRect.width)})),this._updateGrouping()}},{key:"_enableGroupingOnMaxWidthChange",value:function(t){var e=this;t.on("change:maxWidth",(function(){e._updateGrouping()}))}},{key:"_groupLastItem",value:function(){this.groupedItems.length||(this.viewChildren.add(new ud),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(){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(){var t=this.viewLocale,e=t.t,n=Ad(t);return n.class="ck-toolbar__grouped-dropdown",n.panelPosition="ltr"===t.uiLanguageDirection?"sw":"se",xd(n,[]),n.buttonView.set({label:e("Show more items"),tooltip:!0,tooltipPosition:"rtl"===t.uiLanguageDirection?"se":"sw",icon:Oc}),n.toolbarView.items.bindTo(this.groupedItems).using((function(t){return t})),n}},{key:"_updateFocusCycleableItems",value:function(){var t=this;this.viewFocusables.clear(),this.ungroupedItems.map((function(e){t.viewFocusables.add(e)})),this.groupedItems.length&&this.viewFocusables.add(this.groupedItemsDropdown)}}]),t}(),kd=r(1162);fr()(kd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),kd.Z.locals;var bd=function(t){k(n,t);var e=b(n);function n(){var t;return I(this,n),(t=e.call(this)).items=t.createCollection(),t.focusTracker=new Pa,t.keystrokes=new La,t._focusCycler=new Ku({focusables:t.items,focusTracker:t.focusTracker,keystrokeHandler:t.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),t.setTemplate({tag:"ul",attributes:{class:["ck","ck-reset","ck-list"]},children:t.items}),t}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this);var e,i=p(this.items);try{for(i.s();!(e=i.n()).done;){var o=e.value;this.focusTracker.add(o.element)}}catch(t){i.e(t)}finally{i.f()}this.items.on("add",(function(e,n){t.focusTracker.add(n.element)})),this.items.on("remove",(function(e,n){t.focusTracker.remove(n.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}}]),n}(mu),yd=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).children=i.createCollection(),i.setTemplate({tag:"li",attributes:{class:["ck","ck-list__item"]},children:i.children}),i}return S(n,[{key:"focus",value:function(){this.children.first.focus()}}]),n}(mu),_d=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).setTemplate({tag:"li",attributes:{class:["ck","ck-list__separator"]}}),i}return S(n)}(mu),wd=r(5075);fr()(wd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),wd.Z.locals;var Cd=r(6875);function Ad(t){var e=new(arguments.length>1&&void 0!==arguments[1]?arguments[1]:ed)(t),n=new od(t),i=new cd(t,e,n);return e.bind("isEnabled").to(i),e instanceof ed?e.bind("isOn").to(i,"isOpen"):e.arrowView.bind("isOn").to(i,"isOpen"),function(t){(function(t){t.on("render",(function(){uu({emitter:t,activator:function(){return t.isOpen},callback:function(){t.isOpen=!1},contextElements:[t.element]})}))})(t),function(t){t.on("execute",(function(e){e.source instanceof Zu||(t.isOpen=!1)}))}(t),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())}))}(t)}(i),i}function xd(t,e){var n=t.locale,i=n.t,o=t.toolbarView=new pd(n);o.set("ariaLabel",i("Dropdown toolbar")),t.extendTemplate({attributes:{class:["ck-toolbar-dropdown"]}}),e.map((function(t){return o.items.add(t)})),t.panelView.children.add(o),o.items.delegate("execute").to(t)}function Dd(t,e){var n=t.locale,i=t.listView=new bd(n);i.items.bindTo(e).using((function(t){var e=t.type,i=t.model;if("separator"===e)return new _d(n);if("button"===e||"switchbutton"===e){var o,r,a=new yd(n);return(o=r="button"===e?new Hu(n):new Zu(n)).bind.apply(o,m(Object.keys(i))).to(i),r.delegate("execute").to(a),a.children.add(r),a}})),t.panelView.children.add(i),i.items.delegate("execute").to(t)}fr()(Cd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Cd.Z.locals;var Ed=r(4547);fr()(Ed.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ed.Z.locals;var Sd=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).body=new Nu(t),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.body.attachToDom()}},{key:"destroy",value:function(){return this.body.detachFromDom(),d(D(n.prototype),"destroy",this).call(this)}}]),n}(mu),Td=r(2751);fr()(Td.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Td.Z.locals;var Id=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).set("text"),i.set("for"),i.id="ck-editor__label_".concat(v());var o=i.bindTemplate;return i.setTemplate({tag:"label",attributes:{class:["ck","ck-label"],id:i.id,for:o.to("for")},children:[{text:o.to("text")}]}),i}return S(n)}(mu),zd=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).top=i.createCollection(),i.main=i.createCollection(),i._voiceLabelView=i._createV
2oiceLabel(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-reset","ck-editor","ck-rounded-corners"],role:"application",dir:t.uiLanguageDirection,lang:t.uiLanguage,"aria-labelledby":i._voiceLabelView.id},children:[i._voiceLabelView,{tag:"div",attributes:{class:["ck","ck-editor__top","ck-reset_all"],role:"presentation"},children:i.top},{tag:"div",attributes:{class:["ck","ck-editor__main"],role:"presentation"},children:i.main}]}),i}return S(n,[{key:"_createVoiceLabel",value:function(){var t=this.t,e=new Id;return e.text=t("Rich Text Editor"),e.extendTemplate({attributes:{class:"ck-voice-label"}}),e}}]),n}(Sd),Md=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,t)).setTemplate({tag:"div",attributes:{class:["ck","ck-content","ck-editor__editable","ck-rounded-corners"],lang:t.contentLanguage,dir:t.contentLanguageDirection}}),r.name=null,r.set("isFocused",!1),r._editableElement=o,r._hasExternalElement=!!r._editableElement,r._editingView=i,r}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this._hasExternalElement?this.template.apply(this.element=this._editableElement):this._editableElement=this.element,this.on("change:isFocused",(function(){return t._updateIsFocusedClasses()})),this._updateIsFocusedClasses()}},{key:"destroy",value:function(){this._hasExternalElement&&this.template.revert(this._editableElement),d(D(n.prototype),"destroy",this).call(this)}},{key:"_updateIsFocusedClasses",value:function(){var t=this._editingView;function e(e){t.change((function(n){var i=t.document.getRoot(e.name);n.addClass(e.isFocused?"ck-focused":"ck-blurred",i),n.removeClass(e.isFocused?"ck-blurred":"ck-focused",i)}))}t.isRenderingInProgress?function n(i){t.once("change:isRenderingInProgress",(function(t,o,r){r?n(i):e(i)}))}(this):e(this)}}]),n}(mu),Bd=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,t,i,o)).extendTemplate({attributes:{role:"textbox",class:"ck-editor__editable_inline"}}),r}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this);var e=this._editingView,i=this.t;e.change((function(n){var o=e.document.getRoot(t.name);n.setAttribute("aria-label",i("Rich Text Editor, %0",t.name),o)}))}}]),n}(Md),Pd=r(5523);fr()(Pd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Pd.Z.locals;var Ld=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,n);var r=(i=e.call(this,t)).bindTemplate;i.set("label",o.label||""),i.set("class",o.class||null),i.children=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-form__header",r.to("class")]},children:i.children});var a=new mu(t);return a.setTemplate({tag:"span",attributes:{class:["ck","ck-form__header__label"]},children:[{text:r.to("label")}]}),i.children.add(a),i}return S(n)}(mu),Nd=r(6985);fr()(Nd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Nd.Z.locals;var Od=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).set("value"),i.set("id"),i.set("placeholder"),i.set("isReadOnly",!1),i.set("hasError",!1),i.set("ariaDescribedById"),i.focusTracker=new Pa,i.bind("isFocused").to(i.focusTracker),i.set("isEmpty",!0),i.set("inputMode","text");var o=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{class:["ck","ck-input",o.if("isFocused","ck-input_focused"),o.if("isEmpty","ck-input-text_empty"),o.if("hasError","ck-error")],id:o.to("id"),placeholder:o.to("placeholder"),readonly:o.to("isReadOnly"),inputmode:o.to("inputMode"),"aria-invalid":o.if("hasError",!0),"aria-describedby":o.to("ariaDescribedById")},on:{input:o.to((function(){for(var t,e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];(t=i).fire.apply(t,["input"].concat(n)),i._updateIsEmpty()})),change:o.to(i._updateIsEmpty.bind(_(i)))}}),i}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this.focusTracker.add(this.element),this._setDomElementValue(this.value),this._updateIsEmpty(),this.on("change:value",(function(e,n,i){t._setDomElementValue(i),t._updateIsEmpty()}))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy()}},{key:"select",value:function(){this.element.select()}},{key:"focus",value:function(){this.element.focus()}},{key:"_updateIsEmpty",value:function(){this.isEmpty=!this.element.value}},{key:"_setDomElementValue",value:function(t){this.element.value=t||0===t?t:""}}]),n}(mu),Fd=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).extendTemplate({attributes:{type:"text",class:["ck-input-text"]}}),i}return S(n)}(Od),Rd=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=o.min,a=o.max,s=o.step;I(this,n);var l=(i=e.call(this,t)).bindTemplate;return i.set("min",r),i.set("max",a),i.set("step",s),i.extendTemplate({attributes:{type:"number",class:["ck-input-number"],min:l.to("min"),max:l.to("max"),step:l.to("step")}}),i}return S(n)}(Od),jd=r(8111);fr()(jd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),jd.Z.locals;var Vd=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),o=e.call(this,t);var r="ck-labeled-field-view-".concat(v()),a="ck-labeled-field-view-status-".concat(v());o.fieldView=i(_(o),r,a),o.set("label"),o.set("isEnabled",!0),o.set("isEmpty",!0),o.set("isFocused",!1),o.set("errorText",null),o.set("infoText",null),o.set("class"),o.set("placeholder"),o.labelView=o._createLabelView(r),o.statusView=o._createStatusView(a),o.bind("_statusText").to(_(o
2),"errorText",_(o),"infoText",(function(t,e){return t||e}));var s=o.bindTemplate;return o.setTemplate({tag:"div",attributes:{class:["ck","ck-labeled-field-view",s.to("class"),s.if("isEnabled","ck-disabled",(function(t){return!t})),s.if("isEmpty","ck-labeled-field-view_empty"),s.if("isFocused","ck-labeled-field-view_focused"),s.if("placeholder","ck-labeled-field-view_placeholder"),s.if("errorText","ck-error")]},children:[{tag:"div",attributes:{class:["ck","ck-labeled-field-view__input-wrapper"]},children:[o.fieldView,o.labelView]},o.statusView]}),o}return S(n,[{key:"_createLabelView",value:function(t){var e=new Id(this.locale);return e.for=t,e.bind("text").to(this,"label"),e}},{key:"_createStatusView",value:function(t){var e=new mu(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(){this.fieldView.focus()}}]),n}(mu);function Hd(t,e,n){var i=new Fd(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isReadOnly").to(t,"isEnabled",(function(t){return!t})),i.bind("hasError").to(t,"errorText",(function(t){return!!t})),i.on("input",(function(){t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i}function Ud(t,e,n){var i=new Rd(t.locale);return i.set({id:e,ariaDescribedById:n,inputMode:"numeric"}),i.bind("isReadOnly").to(t,"isEnabled",(function(t){return!t})),i.bind("hasError").to(t,"errorText",(function(t){return!!t})),i.on("input",(function(){t.errorText=null})),t.bind("isEmpty","isFocused","placeholder").to(i),i}function Zd(t,e,n){var i=Ad(t.locale);return i.set({id:e,ariaDescribedById:n}),i.bind("isEnabled").to(t),i}var qd=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this.on("show:warning",(function(t,e){window.alert(e.message)}),{priority:"lowest"})}},{key:"showSuccess",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"success",namespace:e.namespace,title:e.title})}},{key:"showInfo",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"info",namespace:e.namespace,title:e.title})}},{key:"showWarning",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this._showNotification({message:t,type:"warning",namespace:e.namespace,title:e.title})}},{key:"_showNotification",value:function(t){var e="show:".concat(t.type)+(t.namespace?":".concat(t.namespace):"");this.fire(e,{message:t.message,type:t.type,title:t.title||""})}}],[{key:"pluginName",get:function(){return"Notification"}}]),n}(ai),Wd=S((function t(e,n){I(this,t),n&&re(this,n),e&&this.set(e)}));function Gd(t){return function(e){return e+t}}ke(Wd,he);var $d=r(8245);fr()($d.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$d.Z.locals;var Yd=Gd("px"),Kd=br.document.body,Qd=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("top",0),i.set("left",0),i.set("position","arrow_nw"),i.set("isVisible",!1),i.set("withArrow",!0),i.set("class"),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-panel",o.to("position",(function(t){return"ck-balloon-panel_".concat(t)})),o.if("isVisible","ck-balloon-panel_visible"),o.if("withArrow","ck-balloon-panel_with-arrow"),o.to("class")],style:{top:o.to("top",Yd),left:o.to("left",Yd)}},children:i.content}),i}return S(n,[{key:"show",value:function(){this.isVisible=!0}},{key:"hide",value:function(){this.isVisible=!1}},{key:"attachTo",value:function(t){this.show();var e=n.defaultPositions,i=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:Kd,fitInViewport:!0},t),o=n._getOptimalPosition(i),r=parseInt(o.left),a=parseInt(o.top),s=o.name,l=o.config,c=(void 0===l?{}:l).withArrow,u=void 0===c||c;Object.assign(this,{top:a,left:r,position:s,withArrow:u})}},{key:"pin",value:function(t){var e=this;this.unpin(),this._pinWhenIsVisibleCallback=function(){e.isVisible?e._startPinning(t):e._stopPinning()},this._startPinning(t),this.listenTo(this,"change:isVisible",this._pinWhenIsVisibleCallback)}},{key:"unpin",value:function(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,"change:isVisible",this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}},{key:"_startPinning",value:function(t){var e=this;this.attachTo(t);var n=Jd(t.target),i=t.limiter?Jd(t.limiter):Kd;this.listenTo(br.document,"scroll",(function(o,r){var a=r.target,s=n&&a.contains(n),l=i&&a.contains(i);!s&&!l&&n&&i||e.attachTo(t)}),{useCapture:!0}),this.listenTo(br.window,"resize",(function(){e.attachTo(t)}))}},{key:"_stopPinning",value:function(){this.stopListening(br.document,"scroll"),this.stopListening(br.window,"resize")}}]),n}(mu);function Jd(t){return $n(t)?t:xa(t)?t.commonAncestorContainer:"function"==typeof t?Jd(t()):null}Qd.arrowHorizontalOffset=25,Qd.arrowVerticalOffset=10,Qd.stickyVerticalOffset=20,Qd._getOptimalPosition=ad,Qd.defaultPositions=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.horizontalOffset,n=void 0===e?Qd.arrowHorizontalOffset:e,i=t.verticalOffset,o=void 0===i?Qd.arrowVerticalOffset:i,r=t.stickyVerticalOffset,a=void 0===r?Qd.stickyVerticalOffset:r,s=t.config;return{northWestArrowSouthWest:function(t,e){return c({top:l(t,e),left:t.left-n,name:"arrow_sw"},s&&{config:s})},northWestArrowSouthMiddleWest:function(t,e){return c({top:l(t,e),left:t.left-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northWestArrowSouth:function(t,e){return c({top:l(t,e),left:t.left-e.width/2,name:"arrow_s"},s&&{config:s})},northWestArrowSouthMiddleEast:function(t,e){return c({top:l(t,e),left:t.left-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northWestArrowSouthEast:function(t,e){return c({top:l(t,e),left:t.left-e.width+n,name:"arrow_se"},s&&{config:s})},northArrowSouthWest:function(t,e){return c({top:l(t,e),left:t.left+t.width/2-n,name:"arrow_sw"},s&&{config:s})},northArrowSouthMiddleWest:function(t,e){return c({top:l(t,e),left:t.left+t.width/2-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northArrowSouth:function(t,e){return c({top:l(t,e),left:t.left+t.width/2-e.width/2,name:"arrow_s"},s&&{config:s})},northArrowSouthMiddleEast:function(t,e){return c({top:l(t,e),left:t.left+t.width/2-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northArrowSouthEast:function(t,e){return c({top:l(t,e),left:t.left+t.width/2-e.width+n,name:"arrow_se"},s&&{config:s})},northEastArrowSouthWest:function(t,e){return c({top:l(t,e),left:t.right-n,name:"arrow_sw"},s&&{config:s})},northEastArrowSouthMiddleWest:function(t,e){return c({top:l(t,e),left:t.right-.25*e.width-n,name:"arrow_smw"},s&&{config:s})},northEastArrowSouth:function(t,e){return c({top:l(t,e),left:t.right-e.width/2,name:"arrow_s"},s&&{config:s})},northEastArrowSouthMiddleEast:function(t,e){return c({top:l(t,e),left:t.right-.75*e.width+n,name:"arrow_sme"},s&&{config:s})},northEastArrowSouthEast:function(t,e){return c({top:l(t,e),left:t.right-e.width+n,name:"arrow_se"},s&&{config:s})},southWestArrowNorthWest:function(t,e){return c({top:u(t),left:t.left-n,name:"arrow_nw"},s&&{config:s})},southWestArrowNorthMiddleWest:function(t,e){return c({top:u(t),left:t.left-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southWestArrowNorth:function(t,e){return c({top:u(t),left:t.left-e.width/2,name:"arrow_n"},s&&{config:s})},southWestArrowNorthMiddleEast:function(t,e){return c({top:u(t),left:t.left-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southWestArrowNorthEast:function(t,e){return c({top:u(t),left:t.left-e.width+n,name:"arrow_ne"},s&&{config:s})},southArrowNorthWest:function(t,e){return c({top:u(t),left:t.left+t.width/2-n,name:"arrow_nw"},s&&{config:s})},southArrowNorthMiddleWest:function(t,e){return c({top:u(t),left:t.left+t.width/2-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southArrowNorth:function(t,e){return c({top:u(t),left:t.left+t.width/2-e.width/2,name:"arrow_n"},s&&{config:s})},southArrowNorthMiddleEast:function(t,e){return c({top:u(t),left:t.left+t.width/2-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southArrowNorthEast:function(t,e){return c({top:u(t),left:t.left+t.width/2-e.width+n,name:"arrow_ne"},s&&{config:s})},southEastArrowNorthWest:function(t,e){return c({top:u(t),left:t.right-n,name:"arrow_nw"},s&&{config:s})},southEastArrowNorthMiddleWest:function(t,e){return c({top:u(t),left:t.right-.25*e.width-n,name:"arrow_nmw"},s&&{config:s})},southEastArrowNorth:function(t,e){return c({top:u(t),left:t.right-e.width/2,name:"arrow_n"},s&&{config:s})},southEastArrowNorthMiddleEast:function(t,e){return c({top:u(t),left:t.right-.75*e.width+n,name:"arrow_nme"},s&&{config:s})},southEastArrowNorthEast:function(t,e){return c({top:u(t),left:t.right-e.width+n,name:"arrow_ne"},s&&{config:s})},viewportStickyNorth:function(t,e,n){return t.getIntersection(n)?{top:n.top+a,left:t.left+t.width/2-e.width/2,name:"arrowless",config:c({withArrow:!1}
2,s)}:null}};function l(t,e){return t.top-e.height-o}function u(t){return t.bottom+o}}();var Xd=r(1757);fr()(Xd.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Xd.Z.locals;var th=r(3553);fr()(th.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),th.Z.locals;var eh=Gd("px"),nh=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).positionLimiter=function(){var t=i.editor.editing.view,e=t.document.selection.editableElement;return e?t.domConverter.mapViewToDom(e.root):null},i.set("visibleView",null),i.view=new Qd(t.locale),t.ui.view.body.add(i.view),t.ui.focusTracker.add(i.view.element),i._viewToStack=new Map,i._idToStack=new Map,i.set("_numberOfStacks",0),i.set("_singleViewMode",!1),i._rotatorView=i._createRotatorView(),i._fakePanelsView=i._createFakePanelsView(),i}return S(n,[{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.view.destroy(),this._rotatorView.destroy(),this._fakePanelsView.destroy()}},{key:"hasView",value:function(t){return Array.from(this._viewToStack.keys()).includes(t)}},{key:"add",value:function(t){if(this.hasView(t.view))throw new x("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(t){if(!this.hasView(t))throw new x("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(t){t&&(this._visibleStack.get(this.visibleView).position=t),this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition()}},{key:"showStack",value:function(t){this.visibleStack=t;var e=this._idToStack.get(t);if(!e)throw new x("contextualballoon-showstack-stack-not-exist",this);this._visibleStack!==e&&this._showView(Array.from(e.values()).pop())}},{key:"_visibleStack",get:function(){return this._viewToStack.get(this.visibleView)}},{key:"_getStackId",value:function(t){return Array.from(this._idToStack.entries()).find((function(e){return e[1]===t}))[0]}},{key:"_showNextStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)+1;t[e]||(e=0),this.showStack(this._getStackId(t[e]))}},{key:"_showPrevStack",value:function(){var t=Array.from(this._idToStack.values()),e=t.indexOf(this._visibleStack)-1;t[e]||(e=t.length-1),this.showStack(this._getStackId(t[e]))}},{key:"_createRotatorView",value:function(){var t=this,e=new ih(this.editor.locale),n=this.editor.locale.t;return this.view.content.add(e),e.bind("isNavigationVisible").to(this,"_numberOfStacks",this,"_singleViewMode",(function(t,e){return!e&&t>1})),e.on("change:isNavigationVisible",(function(){return t.updatePosition()}),{priority:"low"}),e.bind("counter").to(this,"visibleView",this,"_numberOfStacks",(function(e,i){if(i<2)return"";var o=Array.from(t._idToStack.values()).indexOf(t._visibleStack)+1;return n("%0 of %1",[o,i])})),e.buttonNextView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showNextStack()})),e.buttonPrevView.on("execute",(function(){e.focusTracker.isFocused&&t.editor.editing.view.focus(),t._showPrevStack()})),e}},{key:"_createFakePanelsView",value:function(){var t=new oh(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(t){var e=t.view,n=t.balloonClassName,i=void 0===n?"":n,o=t.withArrow,r=void 0===o||o,a=t.singleViewMode,s=void 0!==a&&a;this.view.class=i,this.view.withArrow=r,this._rotatorView.showView(e),this.visibleView=e,this.view.pin(this._getBalloonPosition()),this._fakePanelsView.updatePosition(),s&&(this._singleViewMode=!0)}},{key:"_getBalloonPosition",value:function(){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(){return"ContextualBalloon"}}]),n}(be),ih=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),i=e.call(this,t);var o=t.t,r=i.bindTemplate;return i.set("isNavigationVisible",!0),i.focusTracker=new Pa,i.buttonPrevView=i._createButtonView(o("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"/>
2</svg>'),i.buttonNextView=i._createButtonView(o("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>'),i.content=i.createCollection(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-balloon-rotator"],"z-index":"-1"},children:[{tag:"div",attributes:{class:["ck-balloon-rotator__navigation",r.to("isNavigationVisible",(function(t){return t?"":"ck-hidden"}))]},children:[i.buttonPrevView,{tag:"span",attributes:{class:["ck-balloon-rotator__counter"]},children:[{text:r.to("counter")}]},i.buttonNextView]},{tag:"div",attributes:{class:"ck-balloon-rotator__content"},children:i.content}]}),i}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.focusTracker.add(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy()}},{key:"showView",value:function(t){this.hideView(),this.content.add(t)}},{key:"hideView",value:function(){this.content.clear()}},{key:"_createButtonView",value:function(t,e){var n=new Hu(this.locale);return n.set({label:t,icon:e,tooltip:!0}),n}}]),n}(mu),oh=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n);var r=(o=e.call(this,t)).bindTemplate;return o.set("top",0),o.set("left",0),o.set("height",0),o.set("width",0),o.set("numberOfPanels",0),o.content=o.createCollection(),o._balloonPanelView=i,o.setTemplate({tag:"div",attributes:{class:["ck-fake-panel",r.to("numberOfPanels",(function(t){return t?"":"ck-hidden"}))],style:{top:r.to("top",eh),left:r.to("left",eh),width:r.to("width",eh),height:r.to("height",eh)}},children:o.content}),o.on("change:numberOfPanels",(function(t,e,n,i){n>i?o._addPanels(n-i):o._removePanels(i-n),o.updatePosition()})),o}return S(n,[{key:"_addPanels",value:function(t){for(;t--;){var e=new mu;e.setTemplate({tag:"div"}),this.content.add(e),this.registerChild(e)}}},{key:"_removePanels",value:function(t){for(;t--;){var e=this.content.last;this.content.remove(e),this.deregisterChild(e),e.destroy()}}},{key:"updatePosition",value:function(){if(this.numberOfPanels){var t=this._balloonPanelView,e=t.top,n=t.left,i=new Sa(this._balloonPanelView.element),o=i.width,r=i.height;Object.assign(this,{top:e,left:n,width:o,height:r})}}}]),n}(mu),rh=r(3609);fr()(rh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rh.Z.locals;var ah=Gd("px"),sh=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.set("isActive",!1),i.set("isSticky",!1),i.set("limiterElement",null),i.set("limiterBottomOffset",50),i.set("viewportTopOffset",0),i.set("_marginLeft",null),i.set("_isStickyToTheLimiter",!1),i.set("_hasViewportTopOffset",!1),i.content=i.createCollection(),i._contentPanelPlaceholder=new gu({tag:"div",attributes:{class:["ck","ck-sticky-panel__placeholder"],style:{display:o.to("isSticky",(function(t){return t?"block":"none"})),height:o.to("isSticky",(function(t){return t?ah(i._panelRect.height):null}))}}}).render(),i._contentPanel=new gu({tag:"div",attributes:{class:["ck","ck-sticky-panel__content",o.if("isSticky","ck-sticky-panel__content_sticky"),o.if("_isStickyToTheLimiter","ck-sticky-panel__content_sticky_bottom-limit")],style:{width:o.to("isSticky",(function(t){return t?ah(i._contentPanelPlaceholder.getBoundingClientRect().width):null})),top:o.to("_hasViewportTopOffset",(function(t){return t?ah(i.viewportTopOffset):null})),bottom:o.to("_isStickyToTheLimiter",(function(t){return t?ah(i.limiterBottomOffset):null})),marginLeft:o.to("_marginLeft")}},children:i.content}).render(),i.setTemplate({tag:"div",attributes:{class:["ck","ck-sticky-panel"]},children:[i._contentPanelPlaceholder,i._contentPanel]}),i}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this._checkIfShouldBeSticky(),this.listenTo(br.window,"scroll",(function(){t._checkIfShouldBeSticky()})),this.listenTo(this,"change:isActive",(function(){t._checkIfShouldBeSticky()}))}},{key:"_checkIfShouldBeSticky",value:function(){var t,e=this._panelRect=this._contentPanel.getBoundingClientRect();this.limiterElement?(t=this._limiterRect=this.limiterElement.getBoundingClientRect(),this.isSticky=this.isActive&&t.top<this.viewportTopOffset&&this._panelRect.height+this.limiterBottomOffset<t.height):this.isSticky=!1,this.isSticky?(this._isStickyToTheLimiter=t.bottom<e.height+this.limiterBottomOffset+this.viewportTopOffset,this._hasViewportTopOffset=!this._isStickyToTheLimiter&&!!this.viewportTopOffset,this._marginLeft=this._isStickyToTheLimiter?null:ah(-br.window.scrollX)):(this._isStickyToTheLimiter=!1,this._hasViewportTopOffset=!1,this._marginLeft=null)}}]),n}(mu);Gd("px");var lh=r(6706);fr()(lh.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lh.Z.locals,Gd("px"),Gd("px");var ch=r(8894);fr()(ch.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ch.Z.locals;var uh=new WeakMap;function dh(t){var e=t.view,n=t.element,i=t.text,o=t.isDirectHost,r=void 0===o||o,a=t.keepOnFocus,s=void 0!==a&&a,l=e.document;uh.has(l)||(uh.set(l,new Map),l.registerPostFixer((function(t){return hh(l,t)}))),uh.get(l).set(n,{text:i,isDirectHost:r,keepOnFocus:s,hostElement:r?n:null}),e.change((function(t){return hh(l,t)}))}function hh(t,e){var n,i=uh.get(t),o=[],r=!1,a=p(i);try{for(a.s();!(n=a.n()).done;){var s=f(n.value,2),l=s[0],c=s[1];c.isDirectHost&&(o.push(l),fh(e,l,c)&&(r=!0))}}catch(t){a.e(t)}finally{a.f()}var u,d=p(i);try{for(d.s();!(u=d.n()).done;){var h=f(u.value,2),m=h[0],g=h[1];if(!g.isDirectHost){var v=ph(m);v&&(o.includes(v)||(g.hostElement=v,fh(e,m,g)&&(r=!0)))}}}catch(t){d.e(t)}finally{d.f()}return r}function fh(t,e,n){var i=n.text,o=n.isDirectHost,r=n.hostElement,a=!1;return r.getAttribute("data-placeholder")!==i&&(t.setAttribute("data-placeholder",i,r),a=!0),(o||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;if(e)return!0;var i=t.document;if(!i.isFocused)return!0;var o=i.selection.anchor;return o&&o.parent!==t}(r,n.keepOnFocus)?function(t,e){return!e.hasClass("ck-placeholder")&&(t.addClass("ck-placeholder",e),!0)}(t,r)&&(a=!0):function(t,e){return!!e.hasClass("ck-placeholder")&&(t.removeClass("ck-placeholder",e),!0)}(t,r)&&(a=!0),a}function ph(t){if(t.childCount){var e=t.getChild(0);if(e.is("element")&&!e.is("uiElement"))return e}return null}var mh=new Map;function gh(t,e,n){var i=mh.get(t);i||(i=new Map,mh.set(t,i)),i.set(e,n)}function vh(t){return[t]}function kh(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=function(t,e){var n=mh.get(t);return n&&n.has(e)?n.get(e):vh}(t.constructor,e.constructor);try{return i(t=t.clone(),e,n)}catch(t){throw t}}function bh(t,e,n){t=t.slice(),e=e.slice();var i=new yh(n.document,n.useRelations,n.forceWeakRemove);i.setOriginalOperations(t),i.setOriginalOperations(e);var o=i.originalOperations;if(0==t.length||0==e.length)return{operationsA:t,operationsB:e,originalOperations:o};var r,a=new WeakMap,s=p(t);try{for(s.s();!(r=s.n()).done;){var l=r.value;a.set(l,0)}}catch(t){s.e(t)}finally{s.f()}for(var c={nextBaseVersionA:t[t.length-1].baseVersion+1,nextBaseVersionB:e[e.length-1].baseVersion+1,originalOperationsACount:t.length,originalOperationsBCount:e.length},u=0;u<t.length;){var d,h,f=t[u],g=a.get(f);if(g!=e.length){var v=e[g],k=kh(f,v,i.getContext(f,v,!0)),b=kh(v,f,i.getContext(v,f,!1));i.updateRelation(f,v),i.setOriginalOperations(k,f),i.setOriginalOperations(b,v);var y,_=p(k);try{for(_.s();!(y=_.n()).done;){var w=y.value;a.set(w,g+b.length)}}catch(t){_.e(t)}finally{_.f()}(d=t).splice.apply(d,[u,1].concat(m(k))),(h=e).splice.apply(h,[g,1].concat(m(b)))}else u++}if(n.padWithNoOps){var C=t.length-c.originalOperationsACount,A=e.length-c.originalOperationsBCount;wh(t,A-C),wh(e,C-A)}return _h(t,c.nextBaseVersionB),_h(e,c.nextBaseVersionA),{operationsA:t,operationsB:e,originalOperations:o}}var yh=function(){function t(e,n){var i=arguments.length>2&&void 0!==arguments[2]&&arguments[2];I(this,t),this.originalOperations=new Map,this._history=e.history,this._useRelations=n,this._forceWeakRemove=!!i,this._relations=new Map}
2return S(t,[{key:"setOriginalOperations",value:function(t){var e,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=n?this.originalOperations.get(n):null,o=p(t);try{for(o.s();!(e=o.n()).done;){var r=e.value;this.originalOperations.set(r,i||r)}}catch(t){o.e(t)}finally{o.f()}}},{key:"updateRelation",value:function(t,e){switch(t.constructor){case Pl:switch(e.constructor){case Rl: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");break;case Pl:t.targetPosition.isEqual(e.sourcePosition)||t.targetPosition.isBefore(e.sourcePosition)?this._setRelation(t,e,"insertBefore"):this._setRelation(t,e,"insertAfter")}break;case jl:switch(e.constructor){case Rl:t.splitPosition.isBefore(e.sourcePosition)&&this._setRelation(t,e,"splitBefore");break;case Pl:if(t.splitPosition.isEqual(e.sourcePosition)||t.splitPosition.isBefore(e.sourcePosition))this._setRelation(t,e,"splitBefore");else{var n=rs._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&n.containsPosition(t.splitPosition)){var i=n.end.offset-t.splitPosition.offset,o=t.splitPosition.offset-n.start.offset;this._setRelation(t,e,{howMany:i,offset:o})}}}break;case Rl:switch(e.constructor){case Rl: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");break;case jl:t.sourcePosition.isEqual(e.splitPosition)&&this._setRelation(t,e,"splitAtSource")}break;case Nl:var r=t.newRange;if(!r)return;switch(e.constructor){case Pl:var a=rs._createFromPositionAndShift(e.sourcePosition,e.howMany),s=a.containsPosition(r.start)||a.start.isEqual(r.start),l=a.containsPosition(r.end)||a.end.isEqual(r.end);!s&&!l||a.containsRange(r)||this._setRelation(t,e,{side:s?"left":"right",path:s?r.start.path.slice():r.end.path.slice()});break;case Rl:var c=r.start.isEqual(e.targetPosition),u=r.start.isEqual(e.deletionPosition),d=r.end.isEqual(e.deletionPosition),h=r.end.isEqual(e.sourcePosition);(c||u||d||h)&&this._setRelation(t,e,{wasInLeftElement:c,wasStartBeforeMergedElement:u,wasEndBeforeMergedElement:d,wasInRightElement:h})}}}},{key:"getContext",value:function(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(t){var e=this.originalOperations.get(t);return e.wasUndone||this._history.isUndoneOperation(e)}},{key:"_getRelation",value:function(t,e){var n=this.originalOperations.get(e),i=this._history.getUndoneOperation(n);if(!i)return null;var o=this.originalOperations.get(t),r=this._relations.get(o);return r&&r.get(i)||null}},{key:"_setRelation",value:function(t,e,n){var i=this.originalOperations.get(t),o=this.originalOperations.get(e),r=this._relations.get(i);r||(r=new Map,this._relations.set(i,r)),r.set(o,n)}}]),t}();function _h(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){n.value.baseVersion=e++}}catch(t){i.e(t)}finally{i.f()}}function wh(t,e){for(var n=0;n<e;n++)t.push(new lc(0))}function Ch(t,e,n){var i=t.nodes.getNode(0).getAttribute(e);if(i==n)return null;var o=new rs(t.position,t.position.getShiftedBy(t.howMany));return new Ml(o,e,i,n,0)}function Ah(t,e){return null===t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany)}function xh(t,e){for(var n=[],i=0;i<t.length;i++){var o=t[i],r=new Pl(o.start,o.end.offset-o.start.offset,e,0);n.push(r);for(var a=i+1;a<t.length;a++)t[a]=t[a]._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)[0];e=e._getTransformedByMove(r.sourcePosition,r.targetPosition,r.howMany)}return n}gh(Ml,Ml,(function(t,e,n){if(t.key===e.key&&t.range.start.hasSameParentAs(e.range.start)){var i=t.range.getDifference(e.range).map((function(e){return new Ml(e,t.key,t.oldValue,t.newValue,0)})),o=t.range.getIntersection(e.range);return o&&n.aIsStrong&&i.push(new Ml(o,e.key,e.newValue,t.newValue,0)),0==i.length?[new lc(0)]:i}return[t]})),gh(Ml,Ll,(function(t,e){if(t.range.start.hasSameParentAs(e.position)&&t.range.containsPosition(e.position)){var n=t.range._getTransformedByInsertion(e.position,e.howMany,!e.shouldReceiveAttributes).map((function(e){return new Ml(e,t.key,t.oldValue,t.newValue,t.baseVersion)}));if(e.shouldReceiveAttributes){var i=Ch(e,t.key,t.oldValue);i&&n.unshift(i)}return n}return t.range=t.range._getTransformedByInsertion(e.position,e.howMany,!1)[0],[t]})),gh(Ml,Rl,(function(t,e){var n=[];t.range.start.hasSameParentAs(e.deletionPosition)&&(t.range.containsPosition(e.deletionPosition)||t.range.start.isEqual(e.deletionPosition))&&n.push(rs._createFromPositionAndShift(e.graveyardPosition,1));var i=t.range._getTransformedByMergeOperation(e);return i.isCollapsed||n.push(i),n.map((function(e){return new Ml(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),gh(Ml,Pl,(function(t,e){var n=function(t,e){var n=rs._createFromPositionAndShift(e.sourcePosition,e.howMany),i=null,o=[];n.containsRange(t,!0)?i=t:t.start.hasSameParentAs(n.start)?(o=t.getDifference(n),i=t.getIntersection(n)):o=[t];var r,a=[],s=p(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;l=l._getTransformedByDeletion(e.sourcePosition,e.howMany);var c=e.getMovedRangeStart(),u=l.start.hasSameParentAs(c);l=l._getTransformedByInsertion(c,e.howMany,u),a.push.apply(a,m(l))}}catch(t){s.e(t)}finally{s.f()}return i&&a.push(i._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany,!1)[0]),a}(t.range,e);return n.map((function(e){return new Ml(e,t.key,t.oldValue,t.newValue,t.baseVersion)}))})),gh(Ml,jl,(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 n=t.clone();return n.range=new rs(e.moveTargetPosition.clone(),t.range.end._getCombined(e.splitPosition,e.moveTargetPosition)),t.range.end=e.splitPosition.clone(),t.range.end.stickiness="toPrevious",[t,n]}return t.range=t.range._getTransformedBySplitOperation(e),[t]})),gh(Ll,Ml,(function(t,e){var n=[t];if(t.shouldReceiveAttributes&&t.position.hasSameParentAs(e.range.start)&&e.range.containsPosition(t.position)){var i=Ch(t,e.key,e.newValue);i&&n.push(i)}return n})),gh(Ll,Ll,(function(t,e,n){return t.position.isEqual(e.position)&&n.aIsStrong||(t.position=t.position._getTransformedByInsertOperation(e)),[t]})),gh(Ll,Pl,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),gh(Ll,jl,(function(t,e){return t.position=t.position._getTransformedBySplitOperation(e),[t]})),gh(Ll,Rl,(function(t,e){return t.position=t.position._getTransformedByMergeOperation(e),[t]})),gh(Nl,Ll,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByInsertOperation(e)[0]),t.newRange&&(t.newRange=t.newRange._getTransformedByInsertOperation(e)[0]),[t]})),gh(Nl,Nl,(function(t,e,n){if(t.name==e.name){if(!n.aIsStrong)return[new lc(0)];t.oldRange=e.newRange?e.newRange.clone():null}return[t]})),gh(Nl,Rl,(function(t,e){return t.oldRange&&(t.oldRange=t.oldRange._getTransformedByMergeOperation(e)),t.newRange&&(t.newRange=t.newRange._getTransformedByMergeOperation(e)),[t]})),gh(Nl,Pl,(function(t,e,n){if(t.oldRange&&(t.oldRange=rs._createFromRanges(t.oldRange._getTransformedByMoveOperation(e))),t.newRange){if(n.abRelation){var i=rs._createFromRanges(t.newRange._getTransformedByMoveOperation(e));
2if("left"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.start))return t.newRange.start.path=n.abRelation.path,t.newRange.end=i.end,[t];if("right"==n.abRelation.side&&e.targetPosition.isEqual(t.newRange.end))return t.newRange.start=i.start,t.newRange.end.path=n.abRelation.path,[t]}t.newRange=rs._createFromRanges(t.newRange._getTransformedByMoveOperation(e))}return[t]})),gh(Nl,jl,(function(t,e,n){if(t.oldRange&&(t.oldRange=t.oldRange._getTransformedBySplitOperation(e)),t.newRange){if(n.abRelation){var i=t.newRange._getTransformedBySplitOperation(e);return t.newRange.start.isEqual(e.splitPosition)&&n.abRelation.wasStartBeforeMergedElement?t.newRange.start=es._createAt(e.insertionPosition):t.newRange.start.isEqual(e.splitPosition)&&!n.abRelation.wasInLeftElement&&(t.newRange.start=es._createAt(e.moveTargetPosition)),t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasInRightElement?t.newRange.end=es._createAt(e.moveTargetPosition):t.newRange.end.isEqual(e.splitPosition)&&n.abRelation.wasEndBeforeMergedElement?t.newRange.end=es._createAt(e.insertionPosition):t.newRange.end=i.end,[t]}t.newRange=t.newRange._getTransformedBySplitOperation(e)}return[t]})),gh(Rl,Ll,(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]})),gh(Rl,Rl,(function(t,e,n){if(t.sourcePosition.isEqual(e.sourcePosition)&&t.targetPosition.isEqual(e.targetPosition)){if(n.bWasUndone){var i=e.graveyardPosition.path.slice();return i.push(0),t.sourcePosition=new es(e.graveyardPosition.root,i),t.howMany=0,[t]}return[new lc(0)]}if(t.sourcePosition.isEqual(e.sourcePosition)&&!t.targetPosition.isEqual(e.targetPosition)&&!n.bWasUndone&&"splitAtSource"!=n.abRelation){var o="$graveyard"==t.targetPosition.root.rootName,r="$graveyard"==e.targetPosition.root.rootName;if(r&&!o||!(o&&!r)&&n.aIsStrong){var a=e.targetPosition._getTransformedByMergeOperation(e),s=t.targetPosition._getTransformedByMergeOperation(e);return[new Pl(a,t.howMany,s,0)]}return[new lc(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]})),gh(Rl,Pl,(function(t,e,n){var i=rs._createFromPositionAndShift(e.sourcePosition,e.howMany);return"remove"==e.type&&!n.bWasUndone&&!n.forceWeakRemove&&t.deletionPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.sourcePosition)?[new lc(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])})),gh(Rl,jl,(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 i=0!=e.howMany,o=e.graveyardPosition&&t.deletionPosition.isEqual(e.graveyardPosition);if(i||o||"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]})),gh(Pl,Ll,(function(t,e){var n=rs._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]})),gh(Pl,Pl,(function(t,e,n){var i,o=rs._createFromPositionAndShift(t.sourcePosition,t.howMany),r=rs._createFromPositionAndShift(e.sourcePosition,e.howMany),a=n.aIsStrong,s=!n.aIsStrong;if("insertBefore"==n.abRelation||"insertAfter"==n.baRelation?s=!0:"insertAfter"!=n.abRelation&&"insertBefore"!=n.baRelation||(s=!1),i=t.targetPosition.isEqual(e.targetPosition)&&s?t.targetPosition._getTransformedByDeletion(e.sourcePosition,e.howMany):t.targetPosition._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),Ah(t,e)&&Ah(e,t))return[e.getReversed()];if(o.containsPosition(e.targetPosition)&&o.containsRange(r,!0))return o.start=o.start._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),o.end=o.end._getTransformedByMove(e.sourcePosition,e.targetPosition,e.howMany),xh([o],i);if(r.containsPosition(t.targetPosition)&&r.containsRange(o,!0))return o.start=o.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),o.end=o.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),xh([o],i);var l=si(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),xh([o],i);"remove"!=t.type||"remove"==e.type||n.aWasUndone||n.forceWeakRemove?"remove"==t.type||"remove"!=e.type||n.bWasUndone||n.forceWeakRemove||(a=!1):a=!0;var c,u=[],d=p(o.getDifference(r));try{for(d.s();!(c=d.n()).done;){var h=c.value;h.start=h.start._getTransformedByDeletion(e.sourcePosition,e.howMany),h.end=h.end._getTransformedByDeletion(e.sourcePosition,e.howMany);var f="same"==si(h.start.getParentPath(),e.getMovedRangeStart().getParentPath()),g=h._getTransformedByInsertion(e.getMovedRangeStart(),e.howMany,f);u.push.apply(u,m(g))}}catch(t){d.e(t)}finally{d.f()}var v=o.getIntersection(r);return null!==v&&a&&(v.start=v.start._getCombined(e.sourcePosition,e.getMovedRangeStart()),v.end=v.end._getCombined(e.sourcePosition,e.getMovedRangeStart()),0===u.length?u.push(v):1==u.length?r.start.isBefore(o.start)||r.start.isEqual(o.start)?u.unshift(v):u.push(v):u.splice(1,0,v)),0===u.length?[new lc(t.baseVersion)]:xh(u,i)})),gh(Pl,jl,(function(t,e,n){var i=t.targetPosition.clone();t.targetPosition.isEqual(e.insertionPosition)&&e.graveyardPosition&&"moveTargetAfter"!=n.abRelation||(i=t.targetPosition._getTransformedBySplitOperation(e));var o=rs._createFromPositionAndShift(t.sourcePosition,t.howMany);if(o.end.isEqual(e.insertionPosition))return e.graveyardPosition||t.howMany++,t.targetPosition=i,[t];if(o.start.hasSameParentAs(e.splitPosition)&&o.containsPosition(e.splitPosition)){var r=new rs(e.splitPosition,o.end);return r=r._getTransformedBySplitOperation(e),xh([new rs(o.start,e.splitPosition),r],i)}t.targetPosition.isEqual(e.splitPosition)&&"insertAtSource"==n.abRelation&&(i=e.moveTargetPosition),t.targetPosition.isEqual(e.insertionPosition)&&"insertBetween"==n.abRelation&&(i=t.targetPosition);var a=[o._getTransformedBySplitOperation(e)];if(e.graveyardPosition){var s=o.start.isEqual(e.graveyardPosition)||o.containsPosition(e.graveyardPosition);t.howMany>
21&&s&&!n.aWasUndone&&a.push(rs._createFromPositionAndShift(e.insertionPosition,1))}return xh(a,i)})),gh(Pl,Rl,(function(t,e,n){var i=rs._createFromPositionAndShift(t.sourcePosition,t.howMany);if(e.deletionPosition.hasSameParentAs(t.sourcePosition)&&i.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 lc(0)]}else if(!n.aWasUndone){var o=[],r=e.graveyardPosition.clone(),a=e.targetPosition._getTransformedByMergeOperation(e);t.howMany>1&&(o.push(new Pl(t.sourcePosition,t.howMany-1,t.targetPosition,0)),r=r._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1),a=a._getTransformedByMove(t.sourcePosition,t.targetPosition,t.howMany-1));var s=e.deletionPosition._getCombined(t.sourcePosition,t.targetPosition),l=new Pl(r,1,s,0),c=l.getMovedRangeStart().path.slice();c.push(0);var u=new es(l.targetPosition.root,c);a=a._getTransformedByMove(r,s,1);var d=new Pl(a,e.howMany,u,0);return o.push(l),o.push(d),o}var h=rs._createFromPositionAndShift(t.sourcePosition,t.howMany)._getTransformedByMergeOperation(e);return t.sourcePosition=h.start,t.howMany=h.end.offset-h.start.offset,t.targetPosition=t.targetPosition._getTransformedByMergeOperation(e),[t]})),gh(Ol,Ll,(function(t,e){return t.position=t.position._getTransformedByInsertOperation(e),[t]})),gh(Ol,Rl,(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])})),gh(Ol,Pl,(function(t,e){return t.position=t.position._getTransformedByMoveOperation(e),[t]})),gh(Ol,Ol,(function(t,e,n){if(t.position.isEqual(e.position)){if(!n.aIsStrong)return[new lc(0)];t.oldName=e.newName}return[t]})),gh(Ol,jl,(function(t,e){if("same"==si(t.position.path,e.splitPosition.getParentPath())&&!e.graveyardPosition){var n=new Ol(t.position.getShiftedBy(1),t.oldName,t.newName,0);return[t,n]}return t.position=t.position._getTransformedBySplitOperation(e),[t]})),gh(Fl,Fl,(function(t,e,n){if(t.root===e.root&&t.key===e.key){if(!n.aIsStrong||t.newValue===e.newValue)return[new lc(0)];t.oldValue=e.newValue}return[t]})),gh(jl,Ll,(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]})),gh(jl,Rl,(function(t,e,n){if(!t.graveyardPosition&&!n.bWasUndone&&t.splitPosition.hasSameParentAs(e.sourcePosition)){var i=e.graveyardPosition.path.slice();i.push(0);var o=new es(e.graveyardPosition.root,i),r=jl.getInsertionPosition(new es(e.graveyardPosition.root,i)),a=new jl(o,0,r,null,0);return t.splitPosition=t.splitPosition._getTransformedByMergeOperation(e),t.insertionPosition=jl.getInsertionPosition(t.splitPosition),t.graveyardPosition=a.insertionPosition.clone(),t.graveyardPosition.stickiness="toNext",[a,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=jl.getInsertionPosition(t.splitPosition),t.graveyardPosition&&(t.graveyardPosition=t.graveyardPosition._getTransformedByMergeOperation(e)),[t]})),gh(jl,Pl,(function(t,e,n){var i=rs._createFromPositionAndShift(e.sourcePosition,e.howMany);if(t.graveyardPosition){var o=i.start.isEqual(t.graveyardPosition)||i.containsPosition(t.graveyardPosition);if(!n.bWasUndone&&o){var r=t.splitPosition._getTransformedByMoveOperation(e),a=t.graveyardPosition._getTransformedByMoveOperation(e),s=a.path.slice();s.push(0);var l=new es(a.root,s);return[new Pl(r,t.howMany,l,0)]}t.graveyardPosition=t.graveyardPosition._getTransformedByMoveOperation(e)}var c=t.splitPosition.isEqual(e.targetPosition);if(c&&("insertAtSource"==n.baRelation||"splitBefore"==n.abRelation))return t.howMany+=e.howMany,t.splitPosition=t.splitPosition._getTransformedByDeletion(e.sourcePosition,e.howMany),t.insertionPosition=jl.getInsertionPosition(t.splitPosition),[t];if(c&&n.abRelation&&n.abRelation.howMany){var u=n.abRelation,d=u.howMany,h=u.offset;return t.howMany+=d,t.splitPosition=t.splitPosition.getShiftedBy(h),[t]}if(t.splitPosition.hasSameParentAs(e.sourcePosition)&&i.containsPosition(t.splitPosition)){var f=e.howMany-(t.splitPosition.offset-e.sourcePosition.offset);return t.howMany-=f,t.splitPosition.hasSameParentAs(e.targetPosition)&&t.splitPosition.offset<e.targetPosition.offset&&(t.howMany+=e.howMany),t.splitPosition=e.sourcePosition.clone(),t.insertionPosition=jl.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=jl.getInsertionPosition(t.splitPosition),[t]})),gh(jl,jl,(function(t,e,n){if(t.splitPosition.isEqual(e.splitPosition)){if
2(!t.graveyardPosition&&!e.graveyardPosition)return[new lc(0)];if(t.graveyardPosition&&e.graveyardPosition&&t.graveyardPosition.isEqual(e.graveyardPosition))return[new lc(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 i="$graveyard"==t.splitPosition.root.rootName,o="$graveyard"==e.splitPosition.root.rootName;if(o&&!i||!(i&&!o)&&n.aIsStrong){var r=[];return e.howMany&&r.push(new Pl(e.moveTargetPosition,e.howMany,e.splitPosition,0)),t.howMany&&r.push(new Pl(t.splitPosition,t.howMany,t.moveTargetPosition,0)),r}return[new lc(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 a=e.insertionPosition.path.slice();a.push(0);var s=new es(e.insertionPosition.root,a);return[t,new Pl(t.insertionPosition,1,s,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=jl.getInsertionPosition(t.splitPosition),[t]}));var Dh=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).domEventType="click",i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(ia),Eh=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).domEventType=["mousedown","mouseup","mouseover","mouseout"],i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(ia),Sh=function(){function t(e){I(this,t),this.document=e}return S(t,[{key:"createDocumentFragment",value:function(t){return new Oo(this.document,t)}},{key:"createElement",value:function(t,e,n){return new Wi(this.document,t,e,n)}},{key:"createText",value:function(t){return new ui(this.document,t)}},{key:"clone",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];return t._clone(e)}},{key:"appendChild",value:function(t,e){return e._appendChild(t)}},{key:"insertChild",value:function(t,e,n){return n._insertChild(t,e)}},{key:"removeChildren",value:function(t,e,n){return n._removeChildren(t,e)}},{key:"remove",value:function(t){var e=t.parent;return e?this.removeChildren(e.getChildIndex(t),1,e):[]}},{key:"replace",value:function(t,e){var n=t.parent;if(n){var i=n.getChildIndex(t);return this.removeChildren(i,1,n),this.insertChild(i,e,n),!0}return!1}},{key:"unwrapElement",value:function(t){var e=t.parent;if(e){var n=e.getChildIndex(t);this.remove(t),this.insertChild(n,t.getChildren(),e)}}},{key:"rename",value:function(t,e){var n=new Wi(this.document,t,e.getAttributes(),e.getChildren());return this.replace(e,n)?n:null}},{key:"setAttribute",value:function(t,e,n){n._setAttribute(t,e)}},{key:"removeAttribute",value:function(t,e){e._removeAttribute(t)}},{key:"addClass",value:function(t,e){e._addClass(t)}},{key:"removeClass",value:function(t,e){e._removeClass(t)}},{key:"setStyle",value:function(t,e,n){ze(t)&&void 0===n&&(n=e),n._setStyle(t,e)}},{key:"removeStyle",value:function(t,e){e._removeStyle(t)}},{key:"setCustomProperty",value:function(t,e,n){n._setCustomProperty(t,e)}},{key:"removeCustomProperty",value:function(t,e){return e._removeCustomProperty(t)}},{key:"createPositionAt",value:function(t,e){return to._createAt(t,e)}},{key:"createPositionAfter",value:function(t){return to._createAfter(t)}},{key:"createPositionBefore",value:function(t){return to._createBefore(t)}},{key:"createRange",value:function(t,e){return new eo(t,e)}},{key:"createRangeOn",value:function(t){return eo._createOn(t)}},{key:"createRangeIn",value:function(t){return eo._createIn(t)}},{key:"createSelection",value:function(t,e,n){return new oo(t,e,n)}}]),t}(),Th=/^#([0-9a-f]{3,4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Ih=/^rgb\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}[0-9]{1,3}[ %]?\)$/i,zh=/^rgba\([ ]?([0-9]{1,3}[ %]?,[ ]?){3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Mh=/^hsl\([ ]?([0-9]{1,3}[ %]?[,]?[ ]*){3}(1|[0-9]+%|[0]?\.?[0-9]+)?\)$/i,Bh=/^hsla\([ ]?([0-9]{1,3}[ %]?,[ ]?){2,3}(1|[0-9]+%|[0]?\.?[0-9]+)\)$/i,Ph=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","dar
2kviolet","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 Lh(t){return t.startsWith("#")?Th.test(t):t.startsWith("rgb")?Ih.test(t)||zh.test(t):t.startsWith("hsl")?Mh.test(t)||Bh.test(t):Ph.has(t.toLowerCase())}var Nh=["none","hidden","dotted","dashed","solid","double","groove","ridge","inset","outset"];function Oh(t){return Nh.includes(t)}var Fh=/^([+-]?[0-9]*([.][0-9]+)?(px|cm|mm|in|pc|pt|ch|em|ex|rem|vh|vw|vmin|vmax)|0)$/;function Rh(t){return Fh.test(t)}var jh=/^[+-]?[0-9]*([.][0-9]+)?%$/;function Vh(t){return jh.test(t)}var Hh=["repeat-x","repeat-y","repeat","space","round","no-repeat"],Uh=["center","top","bottom","left","right"];function Zh(t){return Uh.includes(t)}var qh=["fixed","scroll","local"];function Wh(t){return qh.includes(t)}var Gh=/^url\(/;function $h(t){return Gh.test(t)}function Yh(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"";if(""===t)return{top:void 0,right:void 0,bottom:void 0,left:void 0};var e=Jh(t),n=e[0],i=e[2]||n,o=e[1]||n;return{top:n,bottom:i,right:o,left:e[3]||o}}function Kh(t){return function(e){var n=e.top,i=e.right,o=e.bottom,r=e.left,a=[];return[n,i,r,o].every((function(t){return!!t}))?a.push([t,Qh(e)]):(n&&a.push([t+"-top",n]),i&&a.push([t+"-right",i]),o&&a.push([t+"-bottom",o]),r&&a.push([t+"-left",r])),a}}function Qh(t){var e=t.top,n=t.right,i=t.bottom,o=t.left,r=[];return o!==n?r.push(e,n,i,o):i!==e?r.push(e,n,i):n!==e?r.push(e,n):r.push(e),r.join(" ")}function Jh(t){return t.replace(/, /g,",").split(" ").map((function(t){return t.replace(/,/g,", ")}))}function Xh(t){t.setNormalizer("background",tf),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 tf(t){var e,n,i={},o=p(Jh(t));try{for(o.s();!(e=o.n()).done;){var r=e.value;n=r,Hh.includes(n)?(i.repeat=i.repeat||[],i.repeat.push(r)):Zh(r)?(i.position=i.position||[],i.position.push(r)):Wh(r)?i.attachment=r:Lh(r)?i.color=r:$h(r)&&(i.image=r)}}catch(t){o.e(t)}finally{o.f()}return{path:"background",value:i}}
2function ef(t){t.setNormalizer("border",nf),t.setNormalizer("border-top",of("top")),t.setNormalizer("border-right",of("right")),t.setNormalizer("border-bottom",of("bottom")),t.setNormalizer("border-left",of("left")),t.setNormalizer("border-color",rf("color")),t.setNormalizer("border-width",rf("width")),t.setNormalizer("border-style",rf("style")),t.setNormalizer("border-top-color",sf("color","top")),t.setNormalizer("border-top-style",sf("style","top")),t.setNormalizer("border-top-width",sf("width","top")),t.setNormalizer("border-right-color",sf("color","right")),t.setNormalizer("border-right-style",sf("style","right")),t.setNormalizer("border-right-width",sf("width","right")),t.setNormalizer("border-bottom-color",sf("color","bottom")),t.setNormalizer("border-bottom-style",sf("style","bottom")),t.setNormalizer("border-bottom-width",sf("width","bottom")),t.setNormalizer("border-left-color",sf("color","left")),t.setNormalizer("border-left-style",sf("style","left")),t.setNormalizer("border-left-width",sf("width","left")),t.setExtractor("border-top",lf("top")),t.setExtractor("border-right",lf("right")),t.setExtractor("border-bottom",lf("bottom")),t.setExtractor("border-left",lf("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",Kh("border-color")),t.setReducer("border-style",Kh("border-style")),t.setReducer("border-width",Kh("border-width")),t.setReducer("border-top",df("top")),t.setReducer("border-right",df("right")),t.setReducer("border-bottom",df("bottom")),t.setReducer("border-left",df("left")),t.setReducer("border",function(){return function(e){var n=cf(e,"top"),i=cf(e,"right"),o=cf(e,"bottom"),r=cf(e,"left"),a=[n,i,o,r],s={width:t(a,"width"),style:t(a,"style"),color:t(a,"color")},l=hf(s,"all");if(l.length)return l;var c=Object.entries(s).reduce((function(t,e){var n=f(e,2),i=n[0],o=n[1];return o&&(t.push(["border-".concat(i),o]),a.forEach((function(t){return t[i]=null}))),t}),[]);return[].concat(m(c),m(hf(n,"top")),m(hf(i,"right")),m(hf(o,"bottom")),m(hf(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 nf(t){var e=uf(t),n=e.color,i=e.style,o=e.width;return{path:"border",value:{color:Yh(n),style:Yh(i),width:Yh(o)}}}function of(t){return function(e){var n=uf(e),i=n.color,o=n.style,r=n.width,a={};return void 0!==i&&(a.color=u({}
2,t,i)),void 0!==o&&(a.style=u({},t,o)),void 0!==r&&(a.width=u({},t,r)),{path:"border",value:a}}}function rf(t){return function(e){return{path:"border",value:af(e,t)}}}function af(t,e){return u({},e,Yh(t))}function sf(t,e){return function(n){return{path:"border",value:u({},t,u({},e,n))}}}function lf(t){return function(e,n){if(n.border)return cf(n.border,t)}}function cf(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 uf(t){var e,n={},i=p(Jh(t));try{for(i.s();!(e=i.n()).done;){var o=e.value;Rh(o)||/thin|medium|thick/.test(o)?n.width=o:Oh(o)?n.style=o:n.color=o}}catch(t){i.e(t)}finally{i.f()}return n}function df(t){return function(e){return hf(e,t)}}function hf(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 i=n.map((function(e){return t[e]})).join(" ");return["all"==e?["border",i]:["border-".concat(e),i]]}return"all"==e?[]:n.map((function(n){return["border-".concat(e,"-").concat(n),t[n]]}))}function ff(t){t.setNormalizer("padding",("padding",function(t){return{path:"padding",value:Yh(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",Kh("padding")),t.setStyleRelation("padding",["padding-top","padding-right","padding-bottom","padding-left"])}var pf=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).view=i,o._toolbarConfig=hd(t.config.get("toolbar")),o._elementReplacer=new wa,o}return S(n,[{key:"element",get:function(){return this.view.element}},{key:"init",value:function(t){var e=this.editor,n=this.view,i=e.editing.view,o=n.editable,r=i.document.getRoot();o.name=r.rootName,n.render();var a=o.element;this.setEditableElement(o.name,a),this.focusTracker.add(a),n.editable.bind("isFocused").to(this.focusTracker),i.attachDomRoot(a),t&&this._elementReplacer.replace(t,this.element),this._initPlaceholder(),this._initToolbar(),this.fire("ready")}},{key:"destroy",value:function(){var t=this.view,e=this.editor.editing.view;this._elementReplacer.restore(),e.detachDomRoot(t.editable.name),t.destroy(),d(D(n.prototype),"destroy",this).call(this)}},{key:"_initToolbar",value:function(){var t=this.editor,e=this.view,n=t.editing.view;e.stickyPanel.bind("isActive").to(this.focusTracker,"isFocused"),e.stickyPanel.limiterElement=e.element,e.stickyPanel.bind("viewportTopOffset").to(this,"viewportOffset",(function(t){return t.top})),e.toolbar.fillFromConfig(this._toolbarConfig,this.componentFactory),function(t){var e=t.origin,n=t.originKeystrokeHandler,i=t.originFocusTracker,o=t.toolbar,r=t.beforeFocus,a=t.afterBlur;i.add(o.element),n.set("Alt+F10",(function(t,e){i.isFocused&&!o.focusTracker.isFocused&&(r&&r(),o.focus(),e())})),o.keystrokes.set("Esc",(function(t,n){o.focusTracker.isFocused&&(e.focus(),a&&a(),n())}))}({origin:n,originFocusTracker:this.focusTracker,originKeystrokeHandler:t.keystrokes,toolbar:e.toolbar})}},{key:"_initPlaceholder",value:function(){var t=this.editor,e=t.editing.view,n=e.document.getRoot(),i=t.sourceElement,o=t.config.get("placeholder")||i&&"textarea"===i.tagName.toLowerCase()&&i.getAttribute("placeholder");o&&dh({view:e,element:n,text:o,isDirectHost:!1,keepOnFocus:!0})}}]),n}(Bc),mf=r(3638);fr()(mf.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),mf.Z.locals;var gf=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return I(this,n),(o=e.call(this,t)).stickyPanel=new sh(t),o.toolbar=new pd(t,{shouldGroupWhenFull:r.shouldToolbarGroupWhenFull}),o.editable=new Bd(t,i),o}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this.stickyPanel.content.add(this.toolbar),this.top.add(this.stickyPanel),this.main.add(this.editable)}}]),n}(zd),vf=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(I(this,n),!$n(t)&&void 0!==o.initialData)throw new x("editor-create-initial-data",null);void 0===(i=e.call(this,o)).config.get("initialData")&&i.config.set("initialData",function(t){return $n(t)?(e=t)instanceof HTMLTextAreaElement?e.value:e.innerHTML:t;var e}(t)),$n(t)&&(i.sourceElement=t),i.model.document.createRoot();var r=!i.config.get("toolbar.shouldNotGroupWhenFull"),a=new gf(i.locale,i.editing.view,{shouldToolbarGroupWhenFull:r});return i.ui=new pf(_(i),a),function(t){if(!nt(t.updateSourceElement))throw new x("attachtoform-missing-elementapi-interface",t);var e=t.sourceElement;if(e&&"textarea"===e.tagName.toLowerCase()&&e.form){var n,i=e.form,o=function(){return t.updateSourceElement()};nt(i.submit)&&(n=i.submit,i.submit=function(){o(),n.apply(i)}),i.addEventListener("submit",o),t.on("destroy",(function(){i.removeEventListener("submit",o),n&&(i.submit=n)}))}}(_(i)),i}return S(n,[{key:"destroy",value:function(){return this.sourceElement&&this.updateSourceElement(),this.ui.destroy(),d(D(n.prototype),"destroy",this).call(this)}}],[{key:"create",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return new Promise((function(i){var o=new e(t,n);i(o.initPlugins().then((function(){return o.ui.init($n(t)?t:null)})).then((function(){return o.data.init(o.config.get("initialData"))})).then((function(){return o.fire("ready")})).then((function(){return o}
2)))}))}}]),n}(Ic);ke(vf,Pc),ke(vf,Lc);var kf=["left","right","center","justify"];function bf(t){return kf.includes(t)}function yf(t,e){return"rtl"==e.contentLanguageDirection?"right"===t:"left"===t}function _f(t){var e=t.map((function(t){return"string"==typeof t?{name:t}:t})).filter((function(t){var e=!!kf.includes(t.name);return e||E("alignment-config-name-not-recognized",{option:t}),e})),n=e.filter((function(t){return!!t.className})).length;if(n&&n<e.length)throw new x("alignment-config-classnames-are-missing",{configuredOptions:t});return e.forEach((function(e,n,i){var o=i.slice(n+1);if(o.some((function(t){return t.name==e.name})))throw new x("alignment-config-name-already-defined",{option:e,configuredOptions:t});if(e.className&&o.some((function(t){return t.className==e.className})))throw new x("alignment-config-classname-already-defined",{option:e,configuredOptions:t})})),e}var wf="alignment",Cf=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.locale,e=Ba(this.editor.model.document.selection.getSelectedBlocks());this.isEnabled=!!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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.locale,o=n.model,r=o.document,a=e.value;o.change((function(e){var n=Array.from(r.selection.getSelectedBlocks()).filter((function(e){return t._canBeAligned(e)})),o=n[0].getAttribute("alignment");yf(a,i)||o===a||!a?function(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;e.removeAttribute(wf,o)}}catch(t){i.e(t)}finally{i.f()}}(n,e):function(t,e,n){var i,o=p(t);try{for(o.s();!(i=o.n()).done;){var r=i.value;e.setAttribute(wf,n,r)}}catch(t){o.e(t)}finally{o.f()}}(n,e,a)}))}},{key:"_canBeAligned",value:function(t){return this.editor.model.schema.checkAttribute(t,wf)}}]),n}(_e),Af=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("alignment",{options:m(kf.map((function(t){return{name:t}})))}),i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.model.schema,i=_f(t.config.get("alignment.options")).filter((function(t){return bf(t.name)&&!yf(t.name,e)})),o=i.some((function(t){return!!t.className}));n.extend("$block",{allowAttributes:"alignment"}),t.model.schema.setAttributeProperties("alignment",{isFormatting:!0}),o?t.conversion.attributeToAttribute(function(t){var e,n={model:{key:"alignment",values:t.map((function(t){return t.name}))},view:{}},i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;n.view[o.name]={key:"class",value:o.className}}}catch(t){i.e(t)}finally{i.f()}return n}(i)):t.conversion.for("downcast").attributeToAttribute(function(t){var e,n={model:{key:"alignment",values:t.map((function(t){return t.name}))},view:{}},i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value.name;n.view[o]={key:"style",value:{"text-align":o}}}}catch(t){i.e(t)}finally{i.f()}return n}(i));var r,a=function(t){var e,n=[],i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value.name;n.push({view:{key:"style",value:{"text-align":o}},model:{key:"alignment",value:o}})}}catch(t){i.e(t)}finally{i.f()}return n}(i),s=p(a);try{for(s.s();!(r=s.n()).done;){var l=r.value;t.conversion.for("upcast").attributeToAttribute(l)}}catch(t){s.e(t)}finally{s.f()}var c,u=function(t){var e,n=[],i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value.name;n.push({view:{key:"align",value:o},model:{key:"alignment",value:o}})}}catch(t){i.e(t)}finally{i.f()}return n}(i),d=p(u);try{for(d.s();!(c=d.n()).done;){var h=c.value;t.conversion.for("upcast").attributeToAttribute(h)}}catch(t){d.e(t)}finally{d.f()}t.commands.add("alignment",new Cf(t))}}],[{key:"pluginName",get:function(){return"AlignmentEditing"}}]),n}(be),xf=new Map([["left",Gc],["right",Yc],["center",$c],["justify",Kc]]),Df=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"localizedOptionTitles",get:function(){var t=this.editor.t;return{left:t("Align left"),right:t("Align right"),center:t("Align center"),justify:t("Justify")}
2}},{key:"init",value:function(){var t=this,e=this.editor,n=e.ui.componentFactory,i=e.t,o=_f(e.config.get("alignment.options"));o.map((function(t){return t.name})).filter(bf).forEach((function(e){return t._addButton(e)})),n.add("alignment",(function(t){var e=Ad(t),r=o.map((function(t){return n.create("alignment:".concat(t.name))}));xd(e,r),e.buttonView.set({label:i("Text alignment"),tooltip:!0}),e.toolbarView.isVertical=!0,e.toolbarView.ariaLabel=i("Text alignment toolbar"),e.extendTemplate({attributes:{class:"ck-alignment-dropdown"}});var a="rtl"===t.contentLanguageDirection?xf.get("right"):xf.get("left");return e.buttonView.bind("icon").toMany(r,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex((function(t){return t}));return i<0?a:r[i].icon})),e.bind("isEnabled").toMany(r,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),e}))}},{key:"_addButton",value:function(t){var e=this,n=this.editor;n.ui.componentFactory.add("alignment:".concat(t),(function(i){var o=n.commands.get("alignment"),r=new Hu(i);return r.set({label:e.localizedOptionTitles[t],icon:xf.get(t),tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(o),r.bind("isOn").to(o,"value",(function(e){return e===t})),e.listenTo(r,"execute",(function(){n.execute("alignment",{value:t}),n.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"AlignmentUI"}}]),n}(be),Ef=function(){function t(e){var n=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20;I(this,t),this.model=e,this.size=0,this.limit=i,this.isLocked=!1,this._changeCallback=function(t,e){e.isLocal&&e.isUndoable&&e!==n._batch&&n._reset(!0)},this._selectionChangeCallback=function(){n._reset()},this.model.document.on("change",this._changeCallback),this.model.document.selection.on("change:range",this._selectionChangeCallback),this.model.document.selection.on("change:attribute",this._selectionChangeCallback)}return S(t,[{key:"batch",get:function(){return this._batch||(this._batch=this.model.createBatch({isTyping:!0})),this._batch}},{key:"input",value:function(t){this.size+=t,this.size>=this.limit&&this._reset(!0)}},{key:"lock",value:function(){this.isLocked=!0}},{key:"unlock",value:function(){this.isLocked=!1}},{key:"destroy",value:function(){this.model.document.off("change",this._changeCallback),this.model.document.selection.off("change:range",this._selectionChangeCallback),this.model.document.selection.off("change:attribute",this._selectionChangeCallback)}},{key:"_reset",value:function(t){this.isLocked&&!t||(this._batch=null,this.size=0)}}]),t}(),Sf=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._buffer=new Ef(t.model,i),o}return S(n,[{key:"buffer",get:function(){return this._buffer}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this._buffer.destroy()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,o=e.text||"",r=o.length,a=e.range?n.createSelection(e.range):i.selection,s=e.resultRange;n.enqueueChange(this._buffer.batch,(function(e){t._buffer.lock(),n.deleteContent(a),o&&n.insertContent(e.createText(o,i.selection.getAttributes()),a),s?e.setSelection(s):a.is("documentSelection")||e.setSelection(a),t._buffer.unlock(),t._buffer.input(r)}))}}]),n}(_e);function Tf(t){if(t.newChildren.length-t.oldChildren.length==1){var e=function(t,e){var n,i=[],o=0;return t.forEach((function(t){"equal"==t?(r(),o++):"insert"==t?(a("insert")?n.values.push(e[o]):(r(),n={type:"insert",index:o,values:[e[o]]}),o++):a("delete")?n.howMany++:(r(),n={type:"delete",index:o,howMany:1})})),r(),i;function r(){n&&(i.push(n),n=null)}function a(t){return n&&n.type==t}}(sr(t.oldChildren,t.newChildren,If),t.newChildren);if(!(e.length>1)){var n=e[0];return n.values[0]&&n.values[0].is("$text")?n:void 0}}}function If(t,e){return t&&t.is("$text")&&e&&e.is("$text")?t.data===e.data:t===e}function zf(t,e){var n=e.selection,i=t.shiftKey&&t.keyCode===Eo.delete,o=!n.isCollapsed;return i&&o}for(var Mf=[To("arrowUp"),To("arrowRight"),To("arrowDown"),To("arrowLeft"),9,16,17,18,19,20,27,33,34,35,36,45,91,93,144,145,173,174,175,176,177,178,179,255],Bf=112;Bf<=135;Bf++)Mf.push(Bf);function Pf(t){return!(!t.ctrlKey&&!t.metaKey)||Mf.includes(t.keyCode)}var Lf=function(){function t(e){I(this,t),this.editor=e,this.editing=this.editor.editing}
2return S(t,[{key:"handle",value:function(t,e){if(function(t){if(0==t.length)return!1;var e,n=p(t);try{for(n.s();!(e=n.n()).done;){var i=e.value;if("children"===i.type&&!Tf(i))return!0}}catch(t){n.e(t)}finally{n.f()}return!1}(t))this._handleContainerChildrenMutations(t,e);else{var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;this._handleTextMutation(o,e),this._handleTextNodeInsertion(o)}}catch(t){i.e(t)}finally{i.f()}}}},{key:"_handleContainerChildrenMutations",value:function(t,e){var n=function(t){var e=t.map((function(t){return t.node})).reduce((function(t,e){return t.getCommonAncestor(e,{includeSelf:!0})}));if(e)return e.getAncestors({includeSelf:!0,parentFirst:!0}).find((function(t){return t.is("containerElement")||t.is("rootElement")}))}(t);if(n){var i=this.editor.editing.view.domConverter.mapViewToDom(n),o=new Sr(this.editor.editing.view.document),r=this.editor.data.toModel(o.domToView(i)).getChild(0),a=this.editor.editing.mapper.toModelElement(n);if(a){var s=Array.from(r.getChildren()),l=Array.from(a.getChildren()),c=s[s.length-1],u=l[l.length-1],d=c&&c.is("element","softBreak"),h=u&&!u.is("element","softBreak");d&&h&&s.pop();var f=this.editor.model.schema;if(Nf(s,f)&&Nf(l,f)){var p=s.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," "),m=l.map((function(t){return t.is("$text")?t.data:"@"})).join("").replace(/\u00A0/g," ");if(m!==p){var g=Of(sr(m,p)),v=g.firstChangeAt,k=g.insertions,b=g.deletions,y=null;e&&(y=this.editing.mapper.toModelRange(e.getFirstRange()));var _=p.substr(v,k),w=this.editor.model.createRange(this.editor.model.createPositionAt(a,v),this.editor.model.createPositionAt(a,v+b));this.editor.execute("input",{text:_,range:w,resultRange:y})}}}}}},{key:"_handleTextMutation",value:function(t,e){if("text"==t.type){var n=t.newText.replace(/\u00A0/g," "),i=t.oldText.replace(/\u00A0/g," ");if(i!==n){var o=Of(sr(i,n)),r=o.firstChangeAt,a=o.insertions,s=o.deletions,l=null;e&&(l=this.editing.mapper.toModelRange(e.getFirstRange()));var c=this.editing.view.createPositionAt(t.node,r),u=this.editing.mapper.toModelPosition(c),d=this.editor.model.createRange(u,u.getShiftedBy(s)),h=n.substr(r,a);this.editor.execute("input",{text:h,range:d,resultRange:l})}}}},{key:"_handleTextNodeInsertion",value:function(t){if("children"==t.type){var e=Tf(t),n=this.editing.view.createPositionAt(t.node,e.index),i=this.editing.mapper.toModelPosition(n),o=e.values[0].data;this.editor.execute("input",{text:o.replace(/\u00A0/g," "),range:this.editor.model.createRange(i)})}}}]),t}();function Nf(t,e){return t.every((function(t){return e.isInline(t)}))}function Of(t){for(var e=null,n=null,i=0;i<t.length;i++)"equal"!=t[i]&&(e=null===e?i:e,n=i);for(var o=0,r=0,a=e;a<=n;a++)"insert"!=t[a]&&o++,"delete"!=t[a]&&r++;return{insertions:r,deletions:o,firstChangeAt:e}}var Ff=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=new Sf(t,t.config.get("typing.undoStep")||20);t.commands.add("input",e),function(t){var e=null,n=t.model,i=t.editing.view,o=t.commands.get("input");function r(t){if(!Co.isWindows||!zf(t,i.document)){var r=n.document,s=i.document.isComposing,l=e&&e.isEqual(r.selection);e=null,o.isEnabled&&(Pf(t)||r.selection.isCollapsed||s&&229===t.keyCode||!s&&229===t.keyCode&&l||a())}}function a(){var t=o.buffer;t.lock();var e=t.batch;n.enqueueChange(e,(function(){n.deleteContent(n.document.selection)})),t.unlock()}Co.isAndroid?i.document.on("beforeinput",(function(t,e){return r(e)}),{priority:"lowest"}):i.document.on("keydown",(function(t,e){return r(e)}),{priority:"lowest"}),i.document.on("compositionstart",(function(){var t=n.document,e=1!==t.selection.rangeCount||t.selection.getFirstRange().isFlat;t.selection.isCollapsed||e||a()}),{priority:"lowest"}),i.document.on("compositionend",(function(){e=n.createSelection(n.document.selection)}),{priority:"lowest"})}(t),function(t){t.editing.view.document.on("mutations",(function(e,n,i){new Lf(t).handle(n,i)}))}(t)}}],[{key:"pluginName",get:function(){return"Input"}}]),n}(be),Rf=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).direction=i,o._buffer=new Ef(t.model,t.config.get("typing.undoStep")),o}return S(n,[{key:"buffer",get:function(){return this._buffer}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document;n.enqueueChange(this._buffer.batch,(function(o){t._buffer.lock();var r=o.createSelection(e.selection||i.selection),a=e.sequence||1,s=r.isCollapsed;if(r.isCollapsed&&n.modifySelection(r,{direction:t.direction,unit:e.unit,treatEmojiAsSingleUnit:!0}),t._shouldEntireContentBeReplacedWithParagraph(a))t._replaceEntireContentWithParagraph(o);else if(t._shouldReplaceFirstBlockWithParagraph(r,a))t.editor.execute("paragraph",{selection:r});else if(!r.isCollapsed){var l=0;
2r.getFirstRange().getMinimalFlatRanges().forEach((function(t){l+=io(t.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))})),n.deleteContent(r,{doNotResetEntireContent:s,direction:t.direction}),t._buffer.input(l),o.setSelection(r),t._buffer.unlock()}}))}},{key:"_shouldEntireContentBeReplacedWithParagraph",value:function(t){if(t>1)return!1;var e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n);if(!n.isCollapsed||!n.containsEntireContent(i))return!1;if(!e.schema.checkChild(i,"paragraph"))return!1;var o=i.getChild(0);return!o||"paragraph"!==o.name}},{key:"_replaceEntireContentWithParagraph",value:function(t){var e=this.editor.model,n=e.document.selection,i=e.schema.getLimitElement(n),o=t.createElement("paragraph");t.remove(t.createRangeIn(i)),t.insert(o,i),t.setSelection(o,0)}},{key:"_shouldReplaceFirstBlockWithParagraph",value:function(t,e){var n=this.editor.model;if(e>1||"backward"!=this.direction)return!1;if(!t.isCollapsed)return!1;var i=t.getFirstPosition(),o=n.schema.getLimitElement(i),r=o.getChild(0);return i.parent==r&&!!t.containsEntireContent(r)&&!!n.schema.checkChild(o,"paragraph")&&"paragraph"!=r.name}}]),n}(_e),jf=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),i=e.call(this,t);var o=t.document,r=0;function a(t,e,n){var i=new ao(o,"delete",o.selection.getFirstRange());o.fire(i,new na(o,e,n)),i.stop.called&&t.stop()}return o.on("keyup",(function(t,e){e.keyCode!=Eo.delete&&e.keyCode!=Eo.backspace||(r=0)})),o.on("keydown",(function(t,e){if(!Co.isWindows||!zf(e,o)){var n={};if(e.keyCode==Eo.delete)n.direction="forward",n.unit="character";else{if(e.keyCode!=Eo.backspace)return;n.direction="backward",n.unit="codePoint"}var i=Co.isMac?e.altKey:e.ctrlKey;n.unit=i?"word":n.unit,n.sequence=++r,a(t,e.domEvent,n)}})),Co.isAndroid&&o.on("beforeinput",(function(e,n){if("deleteContentBackward"==n.domEvent.inputType){var i={unit:"codepoint",direction:"backward",sequence:1},o=n.domTarget.ownerDocument.defaultView.getSelection();o.anchorNode==o.focusNode&&o.anchorOffset+1!=o.focusOffset&&(i.selectionToRemove=t.domConverter.domSelectionToView(o)),a(e,n.domEvent,i)}})),i}return S(n,[{key:"observe",value:function(){}}]),n}(Or),Vf=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document,o=e.model.document;n.addObserver(jf),this._undoOnBackspace=!1;var r=new Rf(e,"forward");if(e.commands.add("deleteForward",r),e.commands.add("forwardDelete",r),e.commands.add("delete",new Rf(e,"backward")),this.listenTo(i,"delete",(function(t,i){var o={unit:i.unit,sequence:i.sequence};if(i.selectionToRemove){var r,a=e.model.createSelection(),s=[],l=p(i.selectionToRemove.getRanges());try{for(l.s();!(r=l.n()).done;){var c=r.value;s.push(e.editing.mapper.toModelRange(c))}}catch(t){l.e(t)}finally{l.f()}a.setTo(s),o.selection=a}e.execute("forward"==i.direction?"deleteForward":"delete",o),i.preventDefault(),n.scrollToTheSelection()}),{priority:"low"}),Co.isAndroid){var a=null;this.listenTo(i,"delete",(function(t,e){var n=e.domTarget.ownerDocument.defaultView.getSelection();a={anchorNode:n.anchorNode,anchorOffset:n.anchorOffset,focusNode:n.focusNode,focusOffset:n.focusOffset}}),{priority:"lowest"}),this.listenTo(i,"keyup",(function(t,e){if(a){var n=e.domTarget.ownerDocument.defaultView.getSelection();n.collapse(a.anchorNode,a.anchorOffset),n.extend(a.focusNode,a.focusOffset),a=null}}))}this.editor.plugins.has("UndoEditing")&&(this.listenTo(i,"delete",(function(n,i){t._undoOnBackspace&&"backward"==i.direction&&1==i.sequence&&"codePoint"==i.unit&&(t._undoOnBackspace=!1,e.execute("undo"),i.preventDefault(),n.stop())}),{context:"$capture"}),this.listenTo(o,"change",(function(){t._undoOnBackspace=!1})))}},{key:"requestUndoOnBackspace",value:function(){this.editor.plugins.has("UndoEditing")&&(this._undoOnBackspace=!0)}}],[{key:"pluginName",get:function(){return"Delete"}}]),n}(be),Hf=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Ff,Vf]}},{key:"pluginName",get:function(){return"Typing"}}]),n}(be);function Uf(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce((function(t,i){return i.is("$text")||i.is("$textProxy")?t+i.data:(n=e.createPositionAfter(i),"")}),""),range:e.createRange(n,t.end)}}var Zf=function(){function t(e,n){var i=this;I(this,t),this.model=e,this.testCallback=n,this.hasMatch=!1,this.set("isEnabled",!0),this.on("change:isEnabled",(function(){i.isEnabled?
2i._startListening():(i.stopListening(e.document.selection),i.stopListening(e.document))})),this._startListening()}return S(t,[{key:"_startListening",value:function(){var t=this,e=this.model.document;this.listenTo(e.selection,"change:range",(function(n,i){i.directChange&&(e.selection.isCollapsed?t._evaluateTextBeforeSelection("selection"):t.hasMatch&&(t.fire("unmatched"),t.hasMatch=!1))})),this.listenTo(e,"change:data",(function(e,n){!n.isUndo&&n.isLocal&&t._evaluateTextBeforeSelection("data",{batch:n})}))}},{key:"_evaluateTextBeforeSelection",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.model,i=n.document.selection,o=Uf(n.createRange(n.createPositionAt(i.focus.parent,0),i.focus),n),r=o.text,a=o.range,s=this.testCallback(r);if(!s&&this.hasMatch&&this.fire("unmatched"),this.hasMatch=!!s,s){var l=Object.assign(e,{text:r,range:a});"object"==z(s)&&Object.assign(l,s),this.fire("matched:".concat(t),l)}}}]),t}();ke(Zf,he);var qf=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).attributes=new Set,i._overrideUid=null,i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model,i=e.editing.view,o=e.locale,r=n.document.selection;this.listenTo(i.document,"arrowKey",(function(e,n){if(r.isCollapsed&&!(n.shiftKey||n.altKey||n.ctrlKey)){var i=n.keyCode==Eo.arrowright,a=n.keyCode==Eo.arrowleft;if(i||a){var s=o.contentLanguageDirection;!0===("ltr"===s&&i||"rtl"===s&&a?t._handleForwardMovement(n):t._handleBackwardMovement(n))&&e.stop()}}}),{context:"$text",priority:"highest"}),this._isNextGravityRestorationSkipped=!1,this.listenTo(r,"change:range",(function(e,n){t._isNextGravityRestorationSkipped?t._isNextGravityRestorationSkipped=!1:t._isGravityOverridden&&(!n.directChange&&Yf(r.getFirstPosition(),t.attributes)||t._restoreGravity())}))}},{key:"registerAttribute",value:function(t){this.attributes.add(t)}},{key:"_handleForwardMovement",value:function(t){var e=this.attributes,n=this.editor.model.document.selection,i=n.getFirstPosition();return!this._isGravityOverridden&&(!i.isAtStart||!Wf(n,e))&&(Yf(i,e)?($f(t),this._overrideGravity(),!0):void 0)}},{key:"_handleBackwardMovement",value:function(t){var e=this.attributes,n=this.editor.model,i=n.document.selection,o=i.getFirstPosition();return this._isGravityOverridden?($f(t),this._restoreGravity(),Gf(n,e,o),!0):o.isAtStart?!!Wf(i,e)&&($f(t),Gf(n,e,o),!0):function(t,e){return Yf(t.getShiftedBy(-1),e)}(o,e)?o.isAtEnd&&!Wf(i,e)&&Yf(o,e)?($f(t),Gf(n,e,o),!0):(this._isNextGravityRestorationSkipped=!0,this._overrideGravity(),!1):void 0}},{key:"_isGravityOverridden",get:function(){return!!this._overrideUid}},{key:"_overrideGravity",value:function(){this._overrideUid=this.editor.model.change((function(t){return t.overrideSelectionGravity()}))}},{key:"_restoreGravity",value:function(){var t=this;this.editor.model.change((function(e){e.restoreSelectionGravity(t._overrideUid),t._overrideUid=null}))}}],[{key:"pluginName",get:function(){return"TwoStepCaretMovement"}}]),n}(be);function Wf(t,e){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(t.hasAttribute(o))return!0}}catch(t){i.e(t)}finally{i.f()}return!1}function Gf(t,e,n){var i=n.nodeBefore;t.change((function(t){i?t.setSelectionAttribute(i.getAttributes()):t.removeSelectionAttribute(e)}))}function $f(t){t.preventDefault()}function Yf(t,e){var n,i=t.nodeBefore,o=t.nodeAfter,r=p(e);try{for(r.s();!(n=r.n()).done;){var a=n.value,s=i?i.getAttribute(a):void 0;if((o?o.getAttribute(a):void 0)!==s)return!0}}catch(t){r.e(t)}finally{r.f()}return!1}var Kf=/[\\^$.*+?()[\]{}|]/g,Qf=RegExp(Kf.source),Jf={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:op('"'),to:[null,"“",null,"”"]},quotesSecondary:{from:op("'"),to:[null,"‘",null,"’"]},quotesPrimaryEnGb:{from:op("'"),to:[null,"‘",null,"’"]},quotesSecondaryEnGb:{from:op('"'),to:[null,"“",null,"”"]},quotesPrimaryPl:{from:op('"'),to:[null,"„",null,"”"]},quotesSecondaryPl:{from:op("'"),to:[null,"‚",null,"’"]}},Xf={symbols:["copyright","registeredTrademark","trademark"],mathematical:["oneHalf","oneThird","twoThirds","oneForth","threeQuarters","lessThanOrEqual","greaterThanOrEqual","notEqual","arrowLeft","arrowRight"],typography:["horizontalEllipsis","enDash","emDash"],quotes:["quotesPrimary","quotesSecondary"]},tp=["symbols","mathematical","typography","quotes"];function ep(t){return"string"==typeof t?new RegExp("(".concat(function(t){return(t=Si(t))&&Qf.test(t)?t.replace(Kf,"\\$&"):t}(t),")$")):t}function np(t){return"string"==typeof t?function(){return[t]}:t instanceof Array?function(){return t}:t}function ip(t){return(t.textNode?t.textNode:t.nodeAfter).getAttributes()}function op(t){return new RegExp("(^|\\s)(".concat(t,")([^").concat(t,"]*)(").concat(t,")$"))}function rp(t,e,n,i){return i.createRange(ap(t,e,n,!0,i),ap(t,e,n,!1,i))}function ap(t,e,n,i,o){for(var r=t.textNode||(i?t.nodeBefore:t.nodeAfter),a=null;r&&r.getAttribute(e)==n;)a=r,r=i?r.previousSibling:r.nextSibling;return a?o.createPositionAt(a,i?"before":"after"):t}function sp(t,e,n,i){var o,r=null;"function"==typeof i?o=i:(r=t.commands.get(i),o=function(){t.execute(i)}),t.model.document.on("change:data",(function(a,s){if((!r||r.isEnabled)&&e.isEnabled){var l=Ba(t.model.document.selection.getRanges());if(l.isCollapsed&&!s.isUndo&&s.isLocal){var c=Array.from(t.model.document.differ.getChanges()),u=c[0];if(1==c.length&&"insert"===u.type&&"$text"==u.name&&1==u.length){var d=u.position.parent;if(!d.is("element","codeBlock")&&(!d.is("element","listItem")||"function"==typeof i||["numberedList","bulletedList","todoList"].includes(i))&&(!r||!0!==r.value)){var h=d.getChild(0),f=t.model.createRangeOn(h);if(f.containsRange(l)||l.end.isEqual(f.end)){var p=n.exec(h.data.substr(0,l.end.offset));p&&t.model.enqueueChange((function(e){var n=e.createPositionAt(d,0),i=e.createPositionAt(d,p[0].length),r=new vs(n,i);if(!1!==o({match:p})){e.remove(r);var a=t.model.document.selection.getFirstRange(),s=e.createRangeIn(d);!d.isEmpty||s.isEqual(a)||s.containsRange(a,!0)||e.remove(d)}r.detach(),t.model.enqueueChange((function(){t.plugins.get("Delete").requestUndoOnBackspace()}))}))}}}}}}))}function lp(t,e,n,i){var o,r;n instanceof RegExp?o=n:r=n,r=r||function(t){for(var e,n=[],i=[];null!==(e=o.exec(t))&&!(e&&e.length<4);){var r=e,a=r.index,s=r[1],l=r[2],c=r[3],u=s+l+c,d=[a+=e[0].length-u.length,a+s.length],h=[a+s.length+l.length,a+s.length+l.length+c.length];n.push(d),n.push(h),i.push([a+s.length,a+s.length+l.length])}return{remove:n,format:i}},t.model.document.on("change:data",(function(n,o){if(!o.isUndo&&o.isLocal&&e.isEnabled){var a=t.model,s=a.document.selection;if(s.isCollapsed){var l=Array.from(a.document.differ.getChanges()),c=l[0];if(1==l.length&&"insert"===c.type&&"$text"==c.name&&1==c.length){var u=s.focus,d=u.parent,h=function(t,e){var n=t.start;return{text:Array.from(t.getItems()).reduce((function(t,i){return!i.is("$text")&&!i.is("$textProxy")||i.getAttribute("code")?(n=e.createPositionAfter(i),""):t+i.data}),""),range:e.createRange(n,t.end)}}(a.createRange(a.createPositionAt(d,0),u),a),f=h.text,m=h.range,g=r(f),v=cp(m.start,g.format,a),k=cp(m.start,g.remove,a);v.length&&k.length&&a.enqueueChange((function(e){if(!1!==i(e,v)){var n,o=p(k.reverse());try{for(o.s();!(n=o.n()).done;){var r=n.value;e.remove(r)}}catch(t){o.e(t)}finally{o.f()}a.enqueueChange((function(){t.plugins.get("Delete").requestUndoOnBackspace()}))}}))}}}}))}function cp(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]))}))}
2function up(t,e){return function(n,i){if(!t.commands.get(e).isEnabled)return!1;var o,r=p(t.model.schema.getValidRanges(i,e));try{for(r.s();!(o=r.n()).done;){var a=o.value;n.setAttribute(e,!0,a)}}catch(t){r.e(t)}finally{r.f()}n.removeSelectionAttribute(e)}}var dp=function(){function t(e){I(this,t),this.files=function(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()}))}(e),this._native=e}return S(t,[{key:"types",get:function(){return this._native.types}},{key:"getData",value:function(t){return this._native.getData(t)}},{key:"setData",value:function(t,e){this._native.setData(t,e)}},{key:"effectAllowed",get:function(){return this._native.effectAllowed},set:function(t){this._native.effectAllowed=t}},{key:"dropEffect",get:function(){return this._native.dropEffect},set:function(t){this._native.dropEffect=t}},{key:"isCanceled",get:function(){return"none"==this._native.dropEffect||!!this._native.mozUserCancelled}}]),t}(),hp=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).document;
2function r(t){return function(e,n){n.preventDefault();var i=n.dropRange?[n.dropRange]:null,r=new l(o,t);o.fire(r,{dataTransfer:n.dataTransfer,method:e.name,targetRanges:i,target:n.target}),r.stop.called&&n.stopPropagation()}}return i.domEventType=["paste","copy","cut","drop","dragover","dragstart","dragend","dragenter","dragleave"],i.listenTo(o,"paste",r("clipboardInput"),{priority:"low"}),i.listenTo(o,"drop",r("clipboardInput"),{priority:"low"}),i.listenTo(o,"dragover",r("dragging"),{priority:"low"}),i}return S(n,[{key:"onDomEvent",value:function(t){var e={dataTransfer:new dp(t.clipboardData?t.clipboardData:t.dataTransfer)};"drop"!=t.type&&"dragover"!=t.type||(e.dropRange=function(t,e){var n,i=e.target.ownerDocument,o=e.clientX,r=e.clientY;return i.caretRangeFromPoint&&i.caretRangeFromPoint(o,r)?n=i.caretRangeFromPoint(o,r):e.rangeParent&&((n=i.createRange()).setStart(e.rangeParent,e.rangeOffset),n.collapse(!0)),n?t.domConverter.domRangeToView(n):null}(this.view,t)),this.fire(t.type,t,e)}}]),n}(ia),fp=["figcaption","li"];function pp(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 n,i=null,o=p(t.getChildren());try{for(o.s();!(n=o.n()).done;){var r=n.value,a=pp(r);i&&(i.is("containerElement")||r.is("containerElement"))&&(fp.includes(i.name)||fp.includes(r.name)?e+="\n":e+="\n\n"),e+=a,i=r}}catch(t){o.e(t)}finally{o.f()}}return e}var mp=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(hp),this._setupPasteDrop(),this._setupCopyCut()}},{key:"_setupPasteDrop",value:function(){var t=this,e=this.editor,n=e.model,i=e.editing.view,o=i.document;this.listenTo(o,"clipboardInput",(function(t){e.isReadOnly&&t.stop()}),{priority:"highest"}),this.listenTo(o,"clipboardInput",(function(e,n){var o,r=n.dataTransfer,a=n.content||"";a||(r.getData("text/html")?a=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,"")}(r.getData("text/html")):r.getData("text/plain")&&(((o=(o=r.getData("text/plain")).replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/\r?\n\r?\n/g,"</p><p>").replace(/\r?\n/g,"<br>").replace(/^\s/,"&nbsp;").replace(/\s$/,"&nbsp;").replace(/\s\s/g," &nbsp;")).includes("</p><p>")||o.includes("<br>"))&&(o="<p>".concat(o,"</p>")),a=o),a=t.editor.data.htmlProcessor.toView(a));var s=new l(t,"inputTransformation");t.fire(s,{content:a,dataTransfer:r,targetRanges:n.targetRanges,method:n.method}),s.stop.called&&e.stop(),i.scrollToTheSelection()}),{priority:"low"}),this.listenTo(this,"inputTransformation",(function(e,i){if(!i.content.isEmpty){var o=t.editor.data.toModel(i.content,"$clipboardHolder");0!=o.childCount&&(e.stop(),n.change((function(){t.fire("contentInsertion",{content:o,method:i.method,dataTransfer:i.dataTransfer,targetRanges:i.targetRanges})})))}}),{priority:"low"}),this.listenTo(this,"contentInsertion",(function(t,e){e.resultRange=n.insertContent(e.content)}),{priority:"low"})}},{key:"_setupCopyCut",value:function(){var t=this,e=this.editor,n=e.model.document,i=e.editing.view.document;function o(t,o){var r=o.dataTransfer;o.preventDefault();var a=e.data.toView(e.model.getSelectedContent(n.selection));i.fire("clipboardOutput",{dataTransfer:r,content:a,method:t.name})}this.listenTo(i,"copy",o,{priority:"low"}),this.listenTo(i,"cut",(function(t,n){e.isReadOnly?n.preventDefault():o(t,n)}),{priority:"low"}),this.listenTo(i,"clipboardOutput",(function(i,o){o.content.isEmpty||(o.dataTransfer.setData("text/html",t.editor.data.htmlProcessor.toData(o.content)),o.dataTransfer.setData("text/plain",pp(o.content))),"cut"==o.method&&e.model.deleteContent(n.selection)}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ClipboardPipeline"}}]),n}(be);function gp(t,e){var n,i,o;return h().wrap((function(r){for(;;)switch(r.prev=r.next){case 0:n=p(e),r.prev=1,n.s();case 3:if((i=n.n()).done){r.next=11;break}if(o=i.value,r.t0=o&&t.getAttributeProperties(o[0]).copyOnEnter,!r.t0){r.next=9;break}return r.next=9,o;case 9:r.next=3;break;case 11:r.next=16;break;case 13:r.prev=13,r.t1=r.catch(1),n.e(r.t1);case 16:return r.prev=16,n.f(),r.finish(16);case 19:case"end":return r.stop()}}),s,null,[[1,13,16,19]])}var vp=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(i){!function(t,e,n,i){var o=n.isCollapsed,r=n.getFirstRange(),a=r.start.parent,s=r.end.parent;if(i.isLimit(a)||i.isLimit(s))o||a!=s||t.deleteContent(n);else if(o){var l=gp(e.model.schema,n.getAttributes());kp(e,r.start),e.setSelectionAttribute(l)}else{var c=!(r.start.isAtStart&&r.end.isAtEnd),u=a==s;t.deleteContent(n,{leaveUnmerged:c}),c&&(u?kp(e,n.focus):e.setSelection(s,0))}}(t.editor.model,i,n.selection,e.schema),t.fire("afterExecute",{writer
2:i})}))}}]),n}(_e);function kp(t,e){t.split(e),t.setSelection(e.parent.nextSibling,0)}var bp=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).document;return o.on("keydown",(function(t,e){if(i.isEnabled&&e.keyCode==Eo.enter){var n=new ao(o,"enter",o.selection.getFirstRange());o.fire(n,new na(o,e.domEvent,{isSoft:e.shiftKey})),n.stop.called&&t.stop()}})),i}return S(n,[{key:"observe",value:function(){}}]),n}(Or),yp=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view,n=e.document;e.addObserver(bp),t.commands.add("enter",new vp(t)),this.listenTo(n,"enter",(function(n,i){i.preventDefault(),i.isSoft||(t.execute("enter"),e.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"Enter"}}]),n}(be),_p=function(){function t(){I(this,t),this._stack=[]}return S(t,[{key:"add",value:function(t,e){var n=this._stack,i=n[0];this._insertDescriptor(t);var o=n[0];i===o||wp(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:e})}},{key:"remove",value:function(t,e){var n=this._stack,i=n[0];this._removeDescriptor(t);var o=n[0];i===o||wp(i,o)||this.fire("change:top",{oldDescriptor:i,newDescriptor:o,writer:e})}},{key:"_insertDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t.id}));if(!wp(t,e[n])){n>-1&&e.splice(n,1);for(var i=0;e[i]&&Cp(e[i],t);)i++;e.splice(i,0,t)}}},{key:"_removeDescriptor",value:function(t){var e=this._stack,n=e.findIndex((function(e){return e.id===t}));n>-1&&e.splice(n,1)}}]),t}();function wp(t,e){return t&&e&&t.priority==e.priority&&Ap(t.classes)==Ap(e.classes)}function Cp(t,e){return t.priority>e.priority||!(t.priority<e.priority)&&Ap(t.classes)>Ap(e.classes)}function Ap(t){return Array.isArray(t)?t.sort().join(","):t}ke(_p,N);var xp='<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>',Dp="ck-widget_selected";function Ep(t){return!!t.is("element")&&!!t.getCustomProperty("widget")}function Sp(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(!t.is("containerElement"))throw new x("widget-to-widget-wrong-element-type",null,{element:t});return e.setAttribute("contenteditable","false",t),e.addClass("ck-widget",t),e.setCustomProperty("widget",!0,t),t.getFillerOffset=Lp,n.label&&function(t,e,n){n.setCustomProperty("widgetLabel",e,t)}(t,n.label,e),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 Fu;return n.set("content",xp),n.render(),e.appendChild(n.element),e}));e.insert(e.createPositionAt(t,0),n),e.addClass(["ck-widget_with-selection-handle"],t)}(t,e),zp(t,e),t}function Tp(t,e,n){if(e.classes&&n.addClass(ei(e.classes),t),e.attributes)for(var i in e.attributes)n.setAttribute(i,e.attributes[i],t)}function Ip(t,e,n){if(e.classes&&n.removeClass(ei(e.classes),t),e.attributes)for(var i in e.attributes)n.removeAttribute(i,t)}function zp(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:Tp,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:Ip,o=new _p;o.on("change:top",(function(e,o){o.oldDescriptor&&i(t,o.oldDescriptor,o.writer),o.newDescriptor&&n(t,o.newDescriptor,o.writer)})),e.setCustomProperty("addHighlight",(function(t,e,n){return o.add(e,n)}),t),e.setCustomProperty("removeHighlight",(function(t,e,n){return o.remove(e,n)}),t)}function Mp(t){var e=t.getCustomProperty("widgetLabel");return e?"function"==typeof e?e():e:""}function Bp(t,e){return e.addClass(["ck-editor__editable","ck-editor__nested-editable"],t),e.setAttribute("contenteditable",t.isReadOnly?"false":"true",t),t.on("change:isReadOnly",(function(n,i,o){e.setAttribute("contenteditable",o?"fal
2se":"true",t)})),t.on("change:isFocused",(function(n,i,o){o?e.addClass("ck-editor__nested-editable_focused",t):e.removeClass("ck-editor__nested-editable_focused",t)})),zp(t,e),t}function Pp(t,e){var n=t.getSelectedElement();if(n){var i=Fp(t);if(i)return e.createRange(e.createPositionAt(n,i));if(e.schema.isObject(n)&&!e.schema.isInline(n))return e.createRangeOn(n)}var o=t.getSelectedBlocks().next().value;if(o){if(o.isEmpty)return e.createRange(e.createPositionAt(o,0));var r=e.createPositionAfter(o);return t.focus.isTouching(r)?e.createRange(r):e.createRange(e.createPositionBefore(o))}return e.createRange(t.focus)}function Lp(){return null}var Np="widget-type-around";function Op(t,e,n){return t&&Ep(t)&&!n.isInline(e)}function Fp(t){return t.getAttribute(Np)}var Rp=r(5137);fr()(Rp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Rp.Z.locals;var jp=["before","after"],Vp=(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,Hp="ck-widget__type-around_disabled",Up=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._currentFakeCaretModelElement=null,i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view;this.on("change:isEnabled",(function(n,i,o){e.change((function(t){var n,i=p(e.document.roots);try{for(i.s();!(n=i.n()).done;){var r=n.value;o?t.removeClass(Hp,r):t.addClass(Hp,r)}}catch(t){i.e(t)}finally{i.f()}})),o||t.model.change((function(t){t.removeSelectionAttribute(Np)}))})),this._enableTypeAroundUIInjection(),this._enableInsertingParagraphsOnButtonClick(),this._enableInsertingParagraphsOnEnterKeypress(),this._enableInsertingParagraphsOnTypingKeystroke(),this._enableTypeAroundFakeCaretActivationUsingKeyboardArrows(),this._enableDeleteIntegration(),this._enableInsertContentIntegration(),this._enableDeleteContentIntegration()}},{key:"destroy",value:function(){this._currentFakeCaretModelElement=null}},{key:"_insertParagraph",value:function(t,e){var n=this.editor,i=n.editing.view;n.execute("insertParagraph",{position:n.model.createPositionAt(t,e)}),i.focus(),i.scrollToTheSelection()}},{key:"_listenToIfEnabled",value:function(t,e,n,i){var o=this;this.listenTo(t,e,(function(){o.isEnabled&&n.apply(void 0,arguments)}),i)}},{key:"_insertParagraphAccordingToFakeCaretPosition",value:function(){var t=this.editor.model.document.selection,e=Fp(t);if(!e)return!1;var n=t.getSelectedElement();return this._insertParagraph(n,e),!0}},{key:"_enableTypeAroundUIInjection",value:function(){var t=this.editor,e=t.model.schema,n=t.locale.t,i={before:n("Insert paragraph before block"),after:n("Insert paragraph after block")};t.editing.downcastDispatcher.on("insert",(function(t,n,o){var r=o.mapper.toViewElement(n.item);Op(r,n.item,e)&&function(t,e,n){var i=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 n=0,i=jp;n<i.length;n++){var o=i[n],r=new gu({tag:"div",attributes:{class:["ck","ck-widget__type-around__button","ck-widget__type-around__button_".concat(o)],title:e[o]},children:[t.ownerDocument.importNode(Vp,!0)]});t.appendChild(r.render())}}(n,e),function(t){var e=new gu({tag:"div",attributes:{class:["ck","ck-widget__type-around__fake-caret"]}});t.appendChild(e.render())}(n),n}));t.insert(t.createPositionAt(n,"end"),i)}(o.writer,i,r)}),{priority:"low"})}},{key:"_enableTypeAroundFakeCaretActivationUsingKeyboardArrows",value:function(){var t=this,e=this.editor,n=e.model,i=n.document.selection,o=n.schema,r=e.editing.view;function a(t){return"ck-widget_type-around_show-fake-caret_".concat(t)}this._listenToIfEnabled(r.document,"arrowKey",(function(e,n){t._handleArrowKeyPress(e,n)}),{context:[Ep,"$text"],priority:"high"}),this._listenToIfEnabled(i,"change:range",(function(t,n){n.directChange&&e.model.change((function(t){t.removeSelectionAttribute(Np)}))})),this._listenToIfEnabled(n.document,"change:data",(function(){var t=i.getSelectedElement();t&&Op(e.editing.mapper.toViewElement(t),t,o)||e.model.change((function(t){t.removeSelectionAttribute(Np)}))})),this._listenToIfEnabled(e.editing.downcastDispatcher,"selection",(function(e,n,i){var r=i.writer;if(t._currentFakeCaretModelElement){var s=i.mapper.toViewElement(t._currentFakeCaretModelElement);s&&(r.removeClass(jp.map(a),s),t._currentFakeCaretModelElement=null)}var l=n.selection.getSelectedElement();if(l){var c=i.mapper.toViewElement(l);
2if(Op(c,l,o)){var u=Fp(n.selection);u&&(r.addClass(a(u),c),t._currentFakeCaretModelElement=l)}}})),this._listenToIfEnabled(e.ui.focusTracker,"change:isFocused",(function(t,n,i){i||e.model.change((function(t){t.removeSelectionAttribute(Np)}))}))}},{key:"_handleArrowKeyPress",value:function(t,e){var n,i=this.editor,o=i.model,r=o.document.selection,a=o.schema,s=i.editing.view,l=function(t,e){var n=Mo(t,e);return"down"===n||"right"===n}(e.keyCode,i.locale.contentLanguageDirection),c=s.document.selection.getSelectedElement();Op(c,i.editing.mapper.toModelElement(c),a)?n=this._handleArrowKeyPressOnSelectedWidget(l):r.isCollapsed?n=this._handleArrowKeyPressWhenSelectionNextToAWidget(l):e.shiftKey||(n=this._handleArrowKeyPressWhenNonCollapsedSelection(l)),n&&(e.preventDefault(),t.stop())}},{key:"_handleArrowKeyPressOnSelectedWidget",value:function(t){var e=this.editor.model,n=Fp(e.document.selection);return e.change((function(e){return n?n!==(t?"after":"before")&&(e.removeSelectionAttribute(Np),!0):(e.setSelectionAttribute(Np,t?"after":"before"),!0)}))}},{key:"_handleArrowKeyPressWhenSelectionNextToAWidget",value:function(t){var e=this.editor,n=e.model,i=n.schema,o=e.plugins.get("Widget"),r=o._getObjectElementNextToSelection(t);return!!Op(e.editing.mapper.toViewElement(r),r,i)&&(n.change((function(e){o._setSelectionOverElement(r),e.setSelectionAttribute(Np,t?"before":"after")})),!0)}},{key:"_handleArrowKeyPressWhenNonCollapsedSelection",value:function(t){var e=this.editor,n=e.model,i=n.schema,o=e.editing.mapper,r=n.document.selection,a=t?r.getLastPosition().nodeBefore:r.getFirstPosition().nodeAfter;return!!Op(o.toViewElement(a),a,i)&&(n.change((function(e){e.setSelection(a,"on"),e.setSelectionAttribute(Np,t?"after":"before")})),!0)}},{key:"_enableInsertingParagraphsOnButtonClick",value:function(){var t=this,e=this.editor,n=e.editing.view;this._listenToIfEnabled(n.document,"mousedown",(function(i,o){var r=o.domTarget.closest(".ck-widget__type-around__button");if(r){var a=function(t){return t.classList.contains("ck-widget__type-around__button_before")?"before":"after"}(r),s=function(t,e){var n=t.closest(".ck-widget");return e.mapDomToView(n)}(r,n.domConverter),l=e.editing.mapper.toModelElement(s);t._insertParagraph(l,a),o.preventDefault(),i.stop()}}))}},{key:"_enableInsertingParagraphsOnEnterKeypress",value:function(){var t=this,e=this.editor,n=e.model.document.selection,i=e.editing.view;this._listenToIfEnabled(i.document,"enter",(function(i,o){if("atTarget"==i.eventPhase){var r,a=n.getSelectedElement(),s=e.editing.mapper.toViewElement(a),l=e.model.schema;t._insertParagraphAccordingToFakeCaretPosition()?r=!0:Op(s,a,l)&&(t._insertParagraph(a,o.isSoft?"before":"after"),r=!0),r&&(o.preventDefault(),i.stop())}}),{context:Ep})}},{key:"_enableInsertingParagraphsOnTypingKeystroke",value:function(){var t=this,e=this.editor.editing.view,n=[Eo.enter,Eo.delete,Eo.backspace];this._listenToIfEnabled(e.document,"keydown",(function(e,i){n.includes(i.keyCode)||Pf(i)||t._insertParagraphAccordingToFakeCaretPosition()}),{priority:"high"})}},{key:"_enableDeleteIntegration",value:function(){var t=this.editor,e=t.editing.view,n=t.model,i=n.schema;this._listenToIfEnabled(e.document,"delete",(function(e,o){if("atTarget"==e.eventPhase){var r=Fp(n.document.selection);if(r){var a=o.direction,s=n.document.selection.getSelectedElement(),l="forward"==a;if("before"===r===l)t.execute("delete",{selection:n.createSelection(s,"on")});else{var c=i.getNearestSelectionRange(n.createPositionAt(s,r),a);if(c)if(c.isCollapsed){var u=n.createSelection(c.start);if(n.modifySelection(u,{direction:a}),u.focus.isEqual(c.start)){var d=function(t,e){var n,i=e,o=p(e.getAncestors({parentFirst:!0}));try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.childCount>1||t.isLimit(r))break;i=r}}catch(t){o.e(t)}finally{o.f()}return i}(i,c.start.parent);n.deleteContent(n.createSelection(d,"on"),{doNotAutoparagraph:!0})}else n.change((function(e){e.setSelection(c),t.execute(l?"deleteForward":"delete")}))}else n.change((function(e){e.setSelection(c),t.execute(l?"deleteForward":"delete")}))}o.preventDefault(),e.stop()}}}),{context:Ep})}},{key:"_enableInsertContentIntegration",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection;this._listenToIfEnabled(t.model,"insertContent",(function(t,i){var o=f(i,2),r=o[0],a=o[1];if(!a||a.is("documentSelection")){var s=Fp(n);return s?(t.stop(),e.change((function(t){var i=n.getSelectedElement(),o=e.createPositionAt(i,s),a=t.createSelection(o),l=e.insertContent(r,a);return t.setSelection(a),l}))):void 0}}),{priority:"high"})}},{key:"_enableDeleteContentIntegration",value:function(){var t=this.editor,e=this.editor.model.document.selection;this._listenToIfEnabled(t.model,"deleteContent",(function(t,n){var i=f(n,1)[0];i&&!i.is("documentSelection")||Fp(e)&&t.stop()}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"WidgetTypeAround"}},{key:"requires",get:function(){return[yp,Vf]}}]),n}(be);function Zp(t,e,n){var i,o=t.schema,r="forward"==n?"elementStart":"elementEnd",a=p(t.createRangeIn(e.root).getWalker({startPosition:e,direction:n}));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.previousPosition,c=s.item,u=s.type;if(o.isLimit(c)&&!o.isInline(c))return l;if(u==r&&o.isBlock(c))return null}}catch(t){a.e(t)}finally{a.f()}return null}function qp(t,e,n){var i="backward"==n?e.end:e.start;if(t.checkChild(i,"$text"))return i;var o,r=p(e.getWalker({direction:n}));try{for(r.s();!(o=r.n()).done;){var a=o.value.nextPosition;if(t.checkChild(a,"$text"))return a}}catch(t){r.e(t)}finally{r.f()}return null}var Wp=r(6507);fr()(Wp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Wp.Z.locals;var Gp=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document;this._previouslySelected=new Set,this.editor.editing.downcastDispatcher.on("selection",(function(t,n,i){var o=i.writer,r=n.selection;if(!r.isCollapsed){var a=r.getSelectedElement();if(a){var s=e.editing.mapper.toViewElement(a);Ep(s)&&i.consumable.consume(r,"selection")&&o.setSelection(o.createRangeOn(s),{fake:!0,label:Mp(s)})}}})),this.editor.editing.downcastDispatcher.on("selection",(function(e,n,i){t._clearPreviouslySelectedWidgets(i.writer);var o,r=i.writer,a=null,s=p(r.document.selection.getRanges());try{for(s.s();!(o=s.n()).done;){var l,c=p(o.value);try{for(c.s();!(l=c.n()).done;){var u=l.value.item;Ep(u)&&!$p(u,a)&&(r.addClass(Dp,u),t._previouslySelected.add(u),a=u)}}catch(t){c.e(t)}
2finally{c.f()}}}catch(t){s.e(t)}finally{s.f()}}),{priority:"low"}),n.addObserver(Eh),this.listenTo(i,"mousedown",(function(){return t._onMousedown.apply(t,arguments)})),this.listenTo(i,"arrowKey",(function(){t._handleSelectionChangeOnArrowKeyPress.apply(t,arguments)}),{context:[Ep,"$text"]}),this.listenTo(i,"arrowKey",(function(){t._preventDefaultOnArrowKeyPress.apply(t,arguments)}),{context:"$root"}),this.listenTo(i,"arrowKey",function(t){var e=t.model;return function(n,i){var o=i.keyCode==Eo.arrowup,r=i.keyCode==Eo.arrowdown,a=i.shiftKey,s=e.document.selection;if(o||r){var l=r;if(!a||!function(t,e){return!t.isCollapsed&&t.isBackward==e}(s,l)){var c=function(t,e,n){var i=t.model;if(n){var o=e.isCollapsed?e.focus:e.getLastPosition(),r=Zp(i,o,"forward");if(!r)return null;var a=i.createRange(o,r),s=qp(i.schema,a,"backward");return s?i.createRange(o,s):null}var l=e.isCollapsed?e.focus:e.getFirstPosition(),c=Zp(i,l,"backward");if(!c)return null;var u=i.createRange(c,l),d=qp(i.schema,u,"forward");return d?i.createRange(d,l):null}(t,s,l);if(c){if(c.isCollapsed){if(s.isCollapsed)return;if(a)return}(c.isCollapsed||function(t,e,n){var i=t.model,o=t.view.domConverter;if(n){var r=i.createSelection(e.start);i.modifySelection(r),r.focus.isAtEnd||e.start.isEqual(r.focus)||(e=i.createRange(r.focus,e.end))}var a,s,l=t.mapper.toViewRange(e),c=o.viewRangeToDom(l),u=p(Sa.getDomRangeRects(c));try{for(u.s();!(s=u.n()).done;){var d=s.value;if(void 0!==a){if(Math.round(d.top)>=a)return!1;a=Math.max(a,Math.round(d.bottom))}else a=Math.round(d.bottom)}}catch(t){u.e(t)}finally{u.f()}return!0}(t,c,l))&&(e.change((function(t){var n=l?c.end:c.start;if(a){var i=e.createSelection(s.anchor);i.setFocus(n),t.setSelection(i)}else t.setSelection(n)})),n.stop(),i.preventDefault(),i.stopPropagation())}}}}}(this.editor.editing),{context:"$text"}),this.listenTo(i,"delete",(function(e,n){t._handleDelete("forward"==n.direction)&&(n.preventDefault(),e.stop())}),{context:"$root"})}},{key:"_onMousedown",value:function(t,e){var n=this.editor,i=n.editing.view,o=i.document,r=e.target;if(function(t){for(;t;){if(t.is("editableElement")&&!t.is("rootElement"))return!0;if(Ep(t))return!1;t=t.parent}return!1}(r)){if((Co.isSafari||Co.isGecko)&&e.domEvent.detail>=3){var a=n.editing.mapper,s=r.is("attributeElement")?r.findAncestor((function(t){return!t.is("attributeElement")})):r,l=a.toModelElement(s);e.preventDefault(),this.editor.model.change((function(t){t.setSelection(l,"in")}))}}else if(Ep(r)||(r=r.findAncestor(Ep))){Co.isAndroid&&e.preventDefault(),o.isFocused||i.focus();var c=n.editing.mapper.toModelElement(r);this._setSelectionOverElement(c)}}},{key:"_handleSelectionChangeOnArrowKeyPress",value:function(t,e){var n=e.keyCode,i=this.editor.model,o=i.schema,r=i.document.selection,a=r.getSelectedElement(),s=Mo(n,this.editor.locale.contentLanguageDirection),l="down"==s||"right"==s,c="up"==s||"down"==s;if(a&&o.isObject(a)){var u=l?r.getLastPosition():r.getFirstPosition(),d=o.getNearestSelectionRange(u,l?"forward":"backward");d&&(i.change((function(t){t.setSelection(d)})),e.preventDefault(),t.stop())}else if(r.isCollapsed||e.shiftKey){if(r.isCollapsed){var h=this._getObjectElementNextToSelection(l);if(h&&o.isObject(h)){if(o.isInline(h)&&c)return;this._setSelectionOverElement(h),e.preventDefault(),t.stop()}}}else{var f=r.getFirstPosition(),p=r.getLastPosition(),m=f.nodeAfter,g=p.nodeBefore;(m&&o.isObject(m)||g&&o.isObject(g))&&(i.change((function(t){t.setSelection(l?p:f)})),e.preventDefault(),t.stop())}}},{key:"_preventDefaultOnArrowKeyPress",value:function(t,e){var n=this.editor.model,i=n.schema,o=n.document.selection.getSelectedElement();o&&i.isObject(o)&&(e.preventDefault(),t.stop())}},{key:"_handleDelete",value:function(t){var e=this;if(!this.editor.isReadOnly){var n=this.editor.model.document.selection;if(n.isCollapsed){var i=this._getObjectElementNextToSelection(t);return i?(this.editor.model.change((function(t){for(var o=n.anchor.parent;o.isEmpty;){var r=o;o=r.parent,t.remove(r)}e._setSelectionOverElement(i)})),!0):void 0}}}},{key:"_setSelectionOverElement",value:function(t){this.editor.model.change((function(e){e.setSelection(e.createRangeOn(t))}))}},{key:"_getObjectElementNextToSelection",value:function(t){var e=this.editor.model,n=e.schema,i=e.document.selection,o=e.createSelection(i);if(e.modifySelection(o,{direction:t?"forward":"backward"}),o.isEqual(i))return null;var r=t?o.focus.nodeBefore:o.focus.nodeAfter;return r&&n.isObject(r)?r:null}},{key:"_clearPreviouslySelectedWidgets",value:function(t){var e,n=p(this._previouslySelected);try{for(n.s();!(e=n.n()).done;){var i=e.value;t.removeClass(Dp,i)}}catch(t){n.e(t)}finally{n.f()}this._previouslySelected.clear()}}],[{key:"pluginName",get:function(){return"Widget"}},{key:"requires",get:function(){return[Up,Vf]}}]),n}(be);function $p(t,e){return!!e&&Array.from(t.getAncestors()).includes(e)}var Yp=function(t,e,n){var i=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return Z(n)&&(i="leading"in n?!!n.leading:i,o="trailing"in n?!!n.trailing:o),ga(t,e,{leading:i,maxWait:e,trailing:o})},Kp=r(390);fr()(Kp.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Kp.Z.locals;var Qp=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view;this._draggedRange=null,this._draggingUid="",this._draggableElement=null,this._updateDropMarkerThrottled=Yp((function(e){return t._updateDropMarker(e)}),40),this._removeDropMarkerDelayed=tm((function(){return t._removeDropMarker()}),40),this._clearDraggableAttributesDelayed=tm((function(){return t._clearDraggableAttributes()}),40),n.addObserver(hp),n.addObserver(Eh),this._setupDragging(),this._setupContentInsertionIntegration(),this._setupClipboardInputIntegration(),this._setupDropMarker(),this._setupDraggableAttributeHandling(),this.listenTo(e,"change:isReadOnly",(function(e,n,i){i?t.forceDisabled("readOnlyMode"):t.clearForceDisabled("readOnlyMode")})),this.on("change:isEnabled",(function(e,n,i){i||t._finalizeDragging(!1)}
2)),Co.isAndroid&&this.forceDisabled("noAndroidSupport")}},{key:"destroy",value:function(){return this._draggedRange&&(this._draggedRange.detach(),this._draggedRange=null),this._updateDropMarkerThrottled.cancel(),this._removeDropMarkerDelayed.cancel(),this._clearDraggableAttributesDelayed.cancel(),d(D(n.prototype),"destroy",this).call(this)}},{key:"_setupDragging",value:function(){var t=this,e=this.editor,n=e.model,i=n.document,o=e.editing.view,r=o.document;this.listenTo(r,"dragstart",(function(o,a){var s=i.selection;if(a.target&&a.target.is("editableElement"))a.preventDefault();else{var l=a.target?em(a.target):null;if(l){var c=e.editing.mapper.toModelElement(l);t._draggedRange=vs.fromRange(n.createRangeOn(c)),e.plugins.has("WidgetToolbarRepository")&&e.plugins.get("WidgetToolbarRepository").forceDisabled("dragDrop")}else if(!r.selection.isCollapsed){var u=r.selection.getSelectedElement();u&&Ep(u)||(t._draggedRange=vs.fromRange(s.getFirstRange()))}if(t._draggedRange){t._draggingUid=v(),a.dataTransfer.effectAllowed=t.isEnabled?"copyMove":"copy",a.dataTransfer.setData("application/ckeditor5-dragging-uid",t._draggingUid);var d=n.createSelection(t._draggedRange.toRange()),h=e.data.toView(n.getSelectedContent(d));r.fire("clipboardOutput",{dataTransfer:a.dataTransfer,content:h,method:o.name}),t.isEnabled||(t._draggedRange.detach(),t._draggedRange=null,t._draggingUid="")}else a.preventDefault()}}),{priority:"low"}),this.listenTo(r,"dragend",(function(e,n){t._finalizeDragging(!n.dataTransfer.isCanceled&&"move"==n.dataTransfer.dropEffect)}),{priority:"low"}),this.listenTo(r,"dragenter",(function(){t.isEnabled&&o.focus()})),this.listenTo(r,"dragleave",(function(){t._removeDropMarkerDelayed()})),this.listenTo(r,"dragging",(function(n,i){if(t.isEnabled){t._removeDropMarkerDelayed.cancel();var o=Jp(e,i.targetRanges,i.target);t._draggedRange||(i.dataTransfer.dropEffect="copy"),Co.isGecko||("copy"==i.dataTransfer.effectAllowed?i.dataTransfer.dropEffect="copy":["all","copyMove"].includes(i.dataTransfer.effectAllowed)&&(i.dataTransfer.dropEffect="move")),o&&t._updateDropMarkerThrottled(o)}else i.dataTransfer.dropEffect="none"}),{priority:"low"})}},{key:"_setupClipboardInputIntegration",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"clipboardInput",(function(n,i){if("drop"==i.method){var o=Jp(e,i.targetRanges,i.target);if(t._removeDropMarker(),!o)return t._finalizeDragging(!1),void n.stop();if(t._draggedRange&&t._draggingUid!=i.dataTransfer.getData("application/ckeditor5-dragging-uid")&&(t._draggedRange.detach(),t._draggedRange=null,t._draggingUid=""),"move"==Xp(i.dataTransfer)&&t._draggedRange&&t._draggedRange.containsRange(o,!0))return t._finalizeDragging(!1),void n.stop();i.targetRanges=[e.editing.mapper.toViewRange(o)]}}),{priority:"high"})}},{key:"_setupContentInsertionIntegration",value:function(){var t=this,e=this.editor.plugins.get(mp);e.on("contentInsertion",(function(e,n){if(t.isEnabled&&"drop"===n.method){var i=n.targetRanges.map((function(e){return t.editor.editing.mapper.toModelRange(e)}));t.editor.model.change((function(t){return t.setSelection(i)}))}}),{priority:"high"}),e.on("contentInsertion",(function(e,n){if(t.isEnabled&&"drop"===n.method){var i="move"==Xp(n.dataTransfer),o=!n.resultRange||!n.resultRange.isCollapsed;t._finalizeDragging(o&&i)}}),{priority:"lowest"})}},{key:"_setupDraggableAttributeHandling",value:function(){var t=this,e=this.editor,n=e.editing.view,i=n.document;this.listenTo(i,"mousedown",(function(o,r){if(!Co.isAndroid&&r){t._clearDraggableAttributesDelayed.cancel();var a=em(r.target);if(Co.isBlink&&!e.isReadOnly&&!a&&!i.selection.isCollapsed){var s=i.selection.getSelectedElement();s&&Ep(s)||(a=i.selection.editableElement)}a&&(n.change((function(t){t.setAttribute("draggable","true",a)})),t._draggableElement=e.editing.mapper.toModelElement(a))}})),this.listenTo(i,"mouseup",(function(){Co.isAndroid||t._clearDraggableAttributesDelayed()}))}},{key:"_clearDraggableAttributes",value:function(){var t=this,e=this.editor.editing;e.view.change((function(n){t._draggableElement&&"$graveyard"!=t._draggableElement.root.rootName&&n.removeAttribute("draggable",e.mapper.toViewElement(t._draggableElement)),t._draggableElement=null}))}},{key:"_setupDropMarker",value:function(){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(e,n){var i=n.writer;if(t.model.schema.checkChild(e.markerRange.start,"$text"))return i.createUIElement("span",{class:"ck ck-clipboard-drop-target-position"},(function(t){var e=this.toDomElement(t);return e.innerHTML="&NoBreak;<span></span>&NoBreak;",e}))}})}},{key:"_updateDropMarker",value:function(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(){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(t){var e=this.editor,n=e.model;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(){return"DragDrop"}},{key:"requires",get:function(){return[mp,Gp]}}]),n}(be);function Jp(t,e,n){var i=t.model,o=t.editing.mapper,r=null,a=e?e[0].start:null;if(n.is("uiElement")&&(n=n.parent),r=function(t,e){var n=t.model,i=t.editing.mapper;if(Ep(e))return n.createRangeOn(i.toModelElement(e));
2if(!e.is("editableElement")){var o=e.findAncestor((function(t){return Ep(t)||t.is("editableElement")}));if(Ep(o))return n.createRangeOn(i.toModelElement(o))}return null}(t,n),r)return r;var s=function(t,e){var n=t.editing.mapper,i=t.editing.view,o=n.toModelElement(e);if(o)return o;var r=i.createPositionBefore(e),a=n.findMappedViewAncestor(r);return n.toModelElement(a)}(t,n),l=a?o.toModelPosition(a):null;return l?(r=function(t,e,n){var i=t.model;if(!i.schema.checkChild(n,"$block"))return null;var o=i.createPositionAt(n,0),r=e.path.slice(0,o.path.length),a=i.createPositionFromPath(e.root,r).nodeAfter;return a&&i.schema.isObject(a)?i.createRangeOn(a):null}(t,l,s),r||((r=i.schema.getNearestSelectionRange(l,Co.isGecko?"forward":"backward"))||function(t,e){for(var n=t.model;e;){if(n.schema.isObject(e))return n.createRangeOn(e);e=e.parent}}(t,l.parent))):function(t,e){var n=t.model,i=n.schema,o=n.createPositionAt(e,0);return i.getNearestSelectionRange(o,"forward")}(t,s)}function Xp(t){return Co.isGecko?t.dropEffect:["all","copyMove"].includes(t.effectAllowed)?"move":"copy"}function tm(t,e){var n;function i(){for(var o=arguments.length,r=new Array(o),a=0;a<o;a++)r[a]=arguments[a];i.cancel(),n=setTimeout((function(){return t.apply(void 0,r)}),e)}return i.cancel=function(){clearTimeout(n)},i}function em(t){if(t.is("editableElement"))return null;if(t.hasClass("ck-widget__selection-handle"))return t.findAncestor(Ep);if(Ep(t))return t;var e=t.findAncestor((function(t){return Ep(t)||t.is("editableElement")}));return Ep(e)?e:null}var nm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=n.document,o=e.document.selection,r=!1;n.addObserver(hp),this.listenTo(i,"keydown",(function(t,e){r=e.shiftKey})),t.plugins.get(mp).on("contentInsertion",(function(t,n){(r||function(t,e){if(t.childCount>1)return!1;var n=t.getChild(0);return!e.isObject(n)&&0==m(n.getAttributeKeys()).length}(n.content,e.schema))&&e.change((function(t){var i=Array.from(o.getAttributes()).filter((function(t){var n=f(t,1)[0];return e.schema.getAttributeProperties(n).isFormatting}));o.isCollapsed||e.deleteContent(o,{doNotAutoparagraph:!0}),i.push.apply(i,m(o.getAttributes()));var r,a=p(t.createRangeIn(n.content).getItems());try{for(a.s();!(r=a.n()).done;){var s=r.value;s.is("$textProxy")&&t.setAttributes(i,s)}}catch(t){a.e(t)}finally{a.f()}}))}))}}],[{key:"pluginName",get:function(){return"PastePlainText"}},{key:"requires",get:function(){return[mp]}}]),n}(be),im=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"Clipboard"}},{key:"requires",get:function(){return[mp,Qp,nm]}}]),n}(be),om=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._stack=[],i._createdBatches=new WeakSet,i.refresh(),i.listenTo(t.data,"set",(function(t,e){e[1]=c({},e[1]);var n=e[1];n.batchType||(n.batchType={isUndoable:!1})}),{priority:"high"}),i.listenTo(t.data,"set",(function(t,e){e[1].batchType.isUndoable||i.clearStack()})),i}return S(n,[{key:"refresh",value:function(){this.isEnabled=this._stack.length>0}},{key:"addBatch",value:function(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(){this._stack=[],this.refresh()}},{key:"_restoreSelection",value:function(t,e,n){var i,o=this.editor.model,r=o.document,a=[],s=t.map((function(t){return t.getTransformedByOperations(n)})),l=s.flat(),c=p(s);try{for(c.s();!(i=c.n()).done;){var u=i.value.filter((function(t){return t.root!=r.graveyard})).filter((function(t){return!am(t,l)}));u.length&&(rm(u),a.push(u[0]))}}catch(t){c.e(t)}finally{c.f()}a.length&&o.change((function(t){t.setSelection(a,{backward:e})}))}},{key:"_undo",value:function(t,e){var n=this.editor.model,i=n.document;this._createdBatches.add(e);var o=t.operations.slice().filter((function(t){return t.isDocumentOperation}));o.reverse();var r,a=p(o);try{for(a.s();!(r=a.n()).done;){var s,l=r.value,c=l.baseVersion+1,u=Array.from(i.history.getOperations(c)),d=p(bh([l.getReversed()],u,{useRelations:!0,document:this.editor.model.document,padWithNoOps:!1,forceWeakRemove:!0}).operationsA);try{for(d.s();!(s=d.n()).done;){var h=s.value;e.addOperation(h),n.applyOperation(h),i.history.setOperationAsUndone(l,h)}}catch(t){d.e(t)}finally{d.f()}}}catch(t){a.e(t)}finally{a.f()}}}]),n}(_e);function rm(t){t.sort((function(t,e){return t.start.isBefore(e.start)?-1:1}));for(var e=1;e<t.length;e++){var n=t[e-1].getJoined(t[e],!0);
2n&&(e--,t.splice(e,2,n))}}function am(t,e){return e.some((function(e){return e!==t&&e.containsRange(t,!0)}))}var sm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:null,n=e?this._stack.findIndex((function(t){return t.batch==e})):this._stack.length-1,i=this._stack.splice(n,1)[0],o=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(o,(function(){t._undo(i.batch,o);var e=t.editor.model.document.history.getOperations(i.batch.baseVersion);t._restoreSelection(i.selection.ranges,i.selection.isBackward,e),t.fire("revert",i.batch,o)})),this.refresh()}}]),n}(om),lm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"execute",value:function(){var t=this,e=this._stack.pop(),n=this.editor.model.createBatch({isUndo:!0});this.editor.model.enqueueChange(n,(function(){var i=e.batch.operations[e.batch.operations.length-1].baseVersion+1,o=t.editor.model.document.history.getOperations(i);t._restoreSelection(e.selection.ranges,e.selection.isBackward,o),t._undo(e.batch,n)})),this.refresh()}}]),n}(om),cm=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._batchRegistry=new WeakSet,i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor;this._undoCommand=new sm(e),this._redoCommand=new lm(e),e.commands.add("undo",this._und
2oCommand),e.commands.add("redo",this._redoCommand),this.listenTo(e.model,"applyOperation",(function(e,n){var i=n[0];if(i.isDocumentOperation){var o=i.batch,r=t._redoCommand._createdBatches.has(o),a=t._undoCommand._createdBatches.has(o);t._batchRegistry.has(o)||(t._batchRegistry.add(o),o.isUndoable&&(r?t._undoCommand.addBatch(o):a||(t._undoCommand.addBatch(o),t._redoCommand.clearStack())))}}),{priority:"highest"}),this.listenTo(this._undoCommand,"revert",(function(e,n,i){t._redoCommand.addBatch(i)})),e.keystrokes.set("CTRL+Z","undo"),e.keystrokes.set("CTRL+Y","redo"),e.keystrokes.set("CTRL+SHIFT+Z","redo")}}],[{key:"pluginName",get:function(){return"UndoEditing"}}]),n}(be),um='<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>',dm='<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>',hm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?um:dm,o="ltr"==e.uiLanguageDirection?dm:um;this._addButton("undo",n("Undo"),"CTRL+Z",i),this._addButton("redo",n("Redo"),"CTRL+Y",o)}},{key:"_addButton",value:function(t,e,n,i){var o=this,r=this.editor;r.ui.componentFactory.add(t,(function(a){var s=r.commands.get(t),l=new Hu(a);return l.set({label:e,icon:i,keystroke:n,tooltip:!0}),l.bind("isEnabled").to(s,"isEnabled"),o.listenTo(l,"execute",(function(){r.execute(t),r.editing.view.focus()})),l}))}}],[{key:"pluginName",get:function(){return"UndoUI"}}]),n}(be),fm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[cm,hm]}},{key:"pluginName",get:function(){return"Undo"}}]),n}(be),pm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor;if(e.plugins.has("BalloonToolbar")){var n=e.plugins.get("BalloonToolbar");this.listenTo(n,"show",(function(t){(function(t){var e=t.getSelectedElement();return!(!e||!Ep(e))})(e.editing.view.document.selection)&&t.stop()}),{priority:"high"})}this._toolbarDefinitions=new Map,this._balloon=this.editor.plugins.get("ContextualBalloon"),this.on("change:isEnabled",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui,"update",(function(){t._updateToolbarsVisibility()})),this.listenTo(e.ui.focusTracker,"change:isFocused",(function(){t._updateToolbarsVisibility()}),{priority:"low"})}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this);var t,e=p(this._toolbarDefinitions.values());try{for(e.s();!(t=e.n()).done;){t.value.view.destroy()}}catch(t){e.e(t)}finally{e.f()}}},{key:"register",value:function(t,e){var n=e.ariaLabel,i=e.items,o=e.getRelatedElement,r=e.balloonClassName,a=void 0===r?"ck-toolbar-container":r;if(i.length){var s=this.editor,l=s.t,c=new pd(s.locale);if(c.ariaLabel=n||l("Widget toolbar"),this._toolbarDefinitions.has(t))throw new x("widget-toolbar-duplicated",this,{toolbarId:t});c.fillFromConfig(i,s.ui.componentFactory),this._toolbarDefinitions.set(t,{view:c,getRelatedElement:o,balloonClassName:a})}else E("widget-toolbar-no-items",{toolbarId:t})}},{key:"_updateToolbarsVisibility",value:function(){var t,e=0,n=null,i=null,o=p(this._toolbarDefinitions.values());try{for(o.s();!(t=o.n()).done;){var r=t.value,a=r.getRelatedElement(this.editor.editing.view.document.selection);if(this.isEnabled&&a)if(this.editor.ui.focusTracker.isFocused){var s=a.getAncestors().length;s>e&&(e=s,n=a,i=r)}else this._isToolbarVisible(r)&&this._hideToolbar(r);else this._isToolbarInBalloon(r)&&this._hideToolbar(r)}}catch(t){o.e(t)}finally{o.f()}i&&this._showToolbar(i,n)}},{key:"_hideToolbar",value:function(t){this._balloon.remove(t.view),this.stopListening(this._balloon,"change:visibleView")}},{key:"_showToolbar",value:function(t,e){var n=this;this._isToolbarVisible(t)?mm(this.editor,e):this._isToolbarInBalloon(t)||(this._balloon.add({view:t.view,position:gm(this.editor,e),balloonClassName:t.balloonClassName}),this.listenTo(this._balloon,"change:visibleView",(function(){var t,e=p(n._toolbarDefinitions.values());try{for(e.s();!(t=e.n()).done;){var i=t.value;if(n._isToolbarVisible(i)){var o=i.getRelatedElement(n.editor.editing.view.document.selection);mm(n.editor,o)}}}catch(t){e.e(t)}finally{e.f()}})))}},{key:"_isToolbarVisible",value:function(t){return this._balloon.visibleView===t.view}},{key:"_isToolbarInBalloon",value:function(t){return this._balloon.hasView(t.view)}}],[{key:"requires",get:function(){return[nh]}},{key:"pluginName",get:function(){return"WidgetToolbarRepository"}}]),n}(be);function mm(t,e){var n=t.plugins.get("ContextualBalloon"),i=gm(t,e);n.updatePosition(i)}function gm(t,e){var n=t.editing.view,i=Qd.defaultPositions;return{target:n.domConverter.mapViewToDom(e),positions:[i.northArrowSouth,i.northArrowSouthWest,i.northArrowSouthEast,i.southArrowNorth,i.southArrowNorthWest,i.southArrowNorthEast,i.viewportStickyNorth]}}var vm=function(){function t(e){I(this,t),this.set("activeHandlePosition",null),this.set("proposedWidthPercents",null),this.set("proposedWidth",null),this.set("proposedHeight",null),this.set("proposedHandleHostWidth",null),this.set("proposedHandleHostHeight",null),this._options=e,this._referenceCoordinates=null}
2return S(t,[{key:"begin",value:function(t,e,n){var i=new Sa(e);this.activeHandlePosition=function(t){for(var e=0,n=["top-left","top-right","bottom-right","bottom-left"];e<n.length;e++){var i=n[e];if(t.classList.contains(km(i)))return i}}(t),this._referenceCoordinates=function(t,e){var n=new Sa(t),i=e.split("-"),o={x:"right"==i[1]?n.right:n.left,y:"bottom"==i[0]?n.bottom:n.top};return o.x+=t.ownerDocument.defaultView.scrollX,o.y+=t.ownerDocument.defaultView.scrollY,o}(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=i.width,this.originalHeight=i.height,this.aspectRatio=i.width/i.height;var o=n.style.width;o&&o.match(/^\d+(\.\d*)?%$/)?this.originalWidthPercents=parseFloat(o):this.originalWidthPercents=function(t,e){var n=t.parentElement,i=parseFloat(n.ownerDocument.defaultView.getComputedStyle(n).width);return e.width/i*100}(n,i)}},{key:"update",value:function(t){this.proposedWidth=t.width,this.proposedHeight=t.height,this.proposedWidthPercents=t.widthPercents,this.proposedHandleHostWidth=t.handleHostWidth,this.proposedHandleHostHeight=t.handleHostHeight}}]),t}();function km(t){return"ck-widget__resizer__handle-".concat(t)}ke(vm,he);var bm=function(t){k(n,t);var e=b(n);function n(){var t;I(this,n);var i=(t=e.call(this)).bindTemplate;return t.setTemplate({tag:"div",attributes:{class:["ck","ck-size-view",i.to("_viewPosition",(function(t){return t?"ck-orientation-".concat(t):""}))],style:{display:i.if("_isVisible","none",(function(t){return!t}))}},children:[{text:i.to("_label")}]}),t}return S(n,[{key:"_bindToState",value:function(t,e){this.bind("_isVisible").to(e,"proposedWidth",e,"proposedHeight",(function(t,e){return null!==t&&null!==e})),this.bind("_label").to(e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",e,"proposedWidthPercents",(function(e,n,i){return"px"===t.unit?"".concat(e,"×").concat(n):"".concat(i,"%")})),this.bind("_viewPosition").to(e,"activeHandlePosition",e,"proposedHandleHostWidth",e,"proposedHandleHostHeight",(function(t,e,n){return e<50||n<50?"above-center":t}))}},{key:"_dismiss",value:function(){this.unbind(),this._isVisible=!1}}]),n}(mu),ym=function(){function t(e){var n=this;I(this,t),this._options=e,this._viewResizerWrapper=null,this.set("isEnabled",!0),this.decorate("begin"),this.decorate("cancel"),this.decorate("commit"),this.decorate("updateSize"),this.on("commit",(function(t){n.state.proposedWidth||n.state.proposedWidthPercents||(n._cleanup(),t.stop())}),{priority:"high"}),this.on("change:isEnabled",(function(){n.isEnabled&&n.redraw()}))}return S(t,[{key:"attach",value:function(){var t=this,e=this,n=this._options.viewElement;this._options.editor.editing.view.change((function(i){var o=i.createUIElement("div",{class:"ck ck-reset_all ck-widget__resizer"},(function(t){var n=this.toDomElement(t);return e._appendHandles(n),e._appendSizeUI(n),e.on("change:isEnabled",(function(t,e,i){n.style.display=i?"":"none"})),n.style.display=e.isEnabled?"":"none",n}));i.insert(i.createPositionAt(n,"end"),o),i.addClass("ck-widget_with-resizer",n),t._viewResizerWrapper=o}))}},{key:"begin",value:function(t){this.state=new vm(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(t){var e=this,n=this._proposeNewSize(t);this._options.editor.editing.view.change((function(t){var i=e._options.unit||"%",o=("%"===i?n.widthPercents:n.width)+i;t.setStyle("width",o,e._options.viewElement)}));var i=this._getHandleHost(),o=new Sa(i);n.handleHostWidth=Math.round(o.width),n.handleHostHeight=Math.round(o.height);var r=new Sa(i);n.width=Math.round(r.width),n.height=Math.round(r.height),this.redraw(o),this.state.update(n)}},{key:"commit",value:function(){var t=this,e=this._options.unit||"%",n=("%"===e?this.state.proposedWidthPercents:this.state.proposedWidth)+e;this._options.editor.editing.view.change((function(){t._cleanup(),t._options.onCommit(n)}))}},{key:"cancel",value:function(){this._cleanup()}},{key:"destroy",value:function(){this.cancel()}},{key:"redraw",value:function(t){var e=this._domResizerWrapper;if((n=e)&&n.ownerDocument&&n.ownerDocument.contains(n)){var n,i,o=e.parentElement,r=this._getHandleHost(),a=this._viewResizerWrapper,s=[a.getStyle("width"),a.getStyle("height"),a.getStyle("left"),a.getStyle("top")];if(o.isSameNode(r)){var l=t||new Sa(r);i=[l.width+"px",l.height+"px",void 0,void 0]}else i=[r.offsetWidth+"px",r.offsetHeight+"px",r.offsetLeft+"px",r.offsetTop+"px"];"same"!==si(s,i)&&this._options.editor.editing.view.change((function(t){t.setStyle({width:i[0],height:i[1],left:i[2],top:i[3]},a)}))}}},{key:"containsHandle",value:function(t){return this._domResizerWrapper.contains(t)}},{key:"_cleanup",value:function(){var t=this;
2this._sizeView._dismiss(),this._options.editor.editing.view.change((function(e){e.setStyle("width",t._initialViewWidth,t._options.viewElement)}))}},{key:"_proposeNewSize",value:function(t){var e,n=this.state,i=(e=t).pageX,o=e.pageY,r=!this._options.isCentered||this._options.isCentered(this),a={x:n._referenceCoordinates.x-(i+n.originalWidth),y:o-n.originalHeight-n._referenceCoordinates.y};r&&n.activeHandlePosition.endsWith("-right")&&(a.x=i-(n._referenceCoordinates.x+n.originalWidth)),r&&(a.x*=2);var s={width:Math.abs(n.originalWidth+a.x),height:Math.abs(n.originalHeight+a.y)};s.dominant=s.width/n.aspectRatio>s.height?"width":"height",s.max=s[s.dominant];var l={width:s.width,height:s.height};return"width"==s.dominant?l.height=l.width/n.aspectRatio:l.width=l.height*n.aspectRatio,{width:Math.round(l.width),height:Math.round(l.height),widthPercents:Math.min(Math.round(n.originalWidthPercents/n.originalWidth*l.width*100)/100,100)}}},{key:"_getResizeHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getResizeHost(t)}},{key:"_getHandleHost",value:function(){var t=this._domResizerWrapper.parentElement;return this._options.getHandleHost(t)}},{key:"_domResizerWrapper",get:function(){return this._options.editor.editing.view.domConverter.mapViewToDom(this._viewResizerWrapper)}},{key:"_appendHandles",value:function(t){for(var e,n=0,i=["top-left","top-right","bottom-right","bottom-left"];n<i.length;n++){var o=i[n];t.appendChild(new gu({tag:"div",attributes:{class:"ck-widget__resizer__handle "+(e=o,"ck-widget__resizer__handle-".concat(e))}}).render())}}},{key:"_appendSizeUI",value:function(t){this._sizeView=new bm,this._sizeView.render(),t.appendChild(this._sizeView.element)}}],[{key:"isResizeHandle",value:function(t){return t.classList.contains("ck-widget__resizer__handle")}}]),t}();ke(ym,he);var _m=r(2263);fr()(_m.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),_m.Z.locals;var wm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor.editing,n=br.window.document;this.set("visibleResizer",null),this.set("_activeResizer",null),this._resizers=new Map,e.view.addObserver(Eh),this._observer=Object.create(Pr),this.listenTo(e.view.document,"mousedown",this._mouseDownListener.bind(this),{priority:"high"}),this._observer.listenTo(n,"mousemove",this._mouseMoveListener.bind(this)),this._observer.listenTo(n,"mouseup",this._mouseUpListener.bind(this));var i=function(){t.visibleResizer&&t.visibleResizer.redraw()};this._redrawFocusedResizerThrottled=Yp(i,200),this.on("change:visibleResizer",i),this.editor.ui.on("update",this._redrawFocusedResizerThrottled),this.editor.model.document.on("change",(function(){var e,n=p(t._resizers);try{for(n.s();!(e=n.n()).done;){var i=f(e.value,2),o=i[0],r=i[1];o.isAttached()||(t._resizers.delete(o),r.destroy())}}catch(t){n.e(t)}finally{n.f()}}),{priority:"lowest"}),this._observer.listenTo(br.window,"resize",this._redrawFocusedResizerThrottled);var o=this.editor.editing.view.document.selection;o.on("change",(function(){var e=o.getSelectedElement();t.visibleResizer=t.getResizerByViewElement(e)||null}))}},{key:"destroy",value:function(){this._observer.stopListening();var t,e=p(this._resizers.values());try{for(e.s();!(t=e.n()).done;){t.value.destroy()}}catch(t){e.e(t)}finally{e.f()}this._redrawFocusedResizerThrottled.cancel()}},{key:"attachTo",value:function(t){var e=new ym(t),n=this.editor.plugins;if(e.attach(),n.has("WidgetToolbarRepository")){var i=n.get("WidgetToolbarRepository");e.on("begin",(function(){i.forceDisabled("resize")}),{priority:"lowest"}),e.on("cancel",(function(){i.clearForceDisabled("resize")}),{priority:"highest"}),e.on("commit",(function(){i.clearForceDisabled("resize")}),{priority:"highest"})}this._resizers.set(t.viewElement,e);var o=this.editor.editing.view.document.selection.getSelectedElement();return this.getResizerByViewElement(o)==e&&(this.visibleResizer=e),e}},{key:"getResizerByViewElement",value:function(t){return this._resizers.get(t)}},{key:"_getResizerByHandle",value:function(t){var e,n=p(this._resizers.values());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.containsHandle(t))return i}}catch(t){n.e(t)}finally{n.f()}}},{key:"_mouseDownListener",value:function(t,e){var n=e.domTarget;ym.isResizeHandle(n)&&(this._activeResizer=this._getResizerByHandle(n),this._activeResizer&&(this._activeResizer.begin(n),t.stop(),e.preventDefault()))}},{key:"_mouseMoveListener",value:function(t,e){this._activeResizer&&this._activeResizer.updateSize(e)}},{key:"_mouseUpListener",value:function(){this._activeResizer&&(this._activeResizer.commit(),this._activeResizer=null)}}],[{key:"pluginName",get:function(){return"WidgetResize"}}]),n}(be);function Cm(t){return t.createContainerElement("figure",{class:"image"},[t.createEmptyElement("img"),t.createSlot()])}function Am(t,e){if(t.plugins.has("ImageInlineEditing")!==t.plugins.has("ImageBlockEditing"))return{name:"img"};var n=t.plugins.get("ImageUtils");
2return function(t){return n.isInlineImageView(t)?(t.findAncestor(n.isBlockImageView)?"imageBlock":"imageInline")!==e?null:{name:!0}:null}}function xm(t,e){var n=Ba(e.getSelectedBlocks());return!n||t.isObject(n)||n.isEmpty&&"listItem"!=n.name?"imageBlock":"imageInline"}ke(wm,he);var Dm=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"isImage",value:function(t){return this.isInlineImage(t)||this.isBlockImage(t)}},{key:"isInlineImageView",value:function(t){return!!t&&t.is("element","img")}},{key:"isBlockImageView",value:function(t){return!!t&&t.is("element","figure")&&t.hasClass("image")}},{key:"insertImage",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,i=this.editor,o=i.model,r=o.document.selection;for(var a in n=Em(i,e||r,n),t=c(c({},Object.fromEntries(r.getAttributes())),t))o.schema.checkAttribute(n,a)||delete t[a];return o.change((function(i){var a=i.createElement(n,t);return e||"imageInline"==n||(e=Pp(r,o)),o.insertContent(a,e),a.parent?(i.setSelection(a,"on"),a):null}))}},{key:"getClosestSelectedImageWidget",value:function(t){var e=t.getSelectedElement();if(e&&this.isImageWidget(e))return e;for(var n=t.getFirstPosition().parent;n;){if(n.is("element")&&this.isImageWidget(n))return n;n=n.parent}return null}},{key:"getClosestSelectedImageElement",value:function(t){var e=t.getSelectedElement();return this.isImage(e)?e:t.getFirstPosition().findAncestor("imageBlock")}},{key:"isImageAllowed",value:function(){var t=this.editor.model.document.selection;return function(t,e){if("imageBlock"==Em(t,e)){var n=function(t,e){var n=Pp(t,e).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(e,t.model);if(t.model.schema.checkChild(n,"imageBlock"))return!0}else if(t.model.schema.checkChild(e.focus,"imageInline"))return!0;return!1}(this.editor,t)&&function(t){return m(t.focus.getAncestors()).every((function(t){return!t.is("element","imageBlock")}))}(t)}},{key:"toImageWidget",value:function(t,e,n){var i=this;return e.setCustomProperty("image",!0,t),Sp(t,e,{label:function(){var e=i.findViewImgElement(t).getAttribute("alt");return e?"".concat(e," ").concat(n):n}})}},{key:"isImageWidget",value:function(t){return!!t.getCustomProperty("image")&&Ep(t)}},{key:"isBlockImage",value:function(t){return!!t&&t.is("element","imageBlock")}},{key:"isInlineImage",value:function(t){return!!t&&t.is("element","imageInline")}},{key:"findViewImgElement",value:function(t){if(this.isInlineImageView(t))return t;var e,n=p(this.editor.editing.view.createRangeIn(t));try{for(n.s();!(e=n.n()).done;){var i=e.value.item;if(this.isInlineImageView(i))return i}}catch(t){n.e(t)}finally{n.f()}}}],[{key:"pluginName",get:function(){return"ImageUtils"}}]),n}(be);function Em(t,e,n){var i=t.model.schema,o=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")?t.plugins.has("ImageInlineEditing")?n||("inline"===o?"imageInline":"block"===o?"imageBlock":e.is("selection")?xm(i,e):i.checkChild(e,"imageInline")?"imageInline":"imageBlock"):"imageBlock":"imageInline"}var Sm=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)),Tm=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),Im=function(t){return Tm.test(t)},zm="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",Mm="\\ud83c[\\udffb-\\udfff]",Bm="[^\\ud800-\\udfff]",Pm="(?:\\ud83c[\\udde6-\\uddff]){2}",Lm="[\\ud800-\\udbff][\\udc00-\\udfff]",Nm="(?:"+zm+"|"+Mm+")?",Om="[\\ufe0e\\ufe0f]?",Fm=Om+Nm+"(?:\\u200d(?:"+[Bm,Pm,Lm].join("|")+")"+Om+Nm+")*",Rm="(?:"+[Bm+zm+"?",zm,Pm,Lm,"[\\ud800-\\udfff]"].join("|")+")",jm=RegExp(Mm+"(?="+Mm+")|"+Rm+Fm,"g"),Vm=function(t){return Im(t)?function(t){return t.match(jm)||[]}(t):function(t){return t.split("")}(t)},Hm=function(t){t=Si(t);var e=Im(t)?Vm(t):void 0,n=e?e[0]:t.charAt(0),i=e?function(t,e,n){var i=t.length;return n=void 0===n?i:n,!e&&n>=i?t:Mi(t,e,n)}(e,1).join(""):t.slice(1);return n.toUpperCase()+i},Um=/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205f\u3000]/g,Zm=/^(?:(?:https?|ftps?|mailto):|[^a-z]|[a-z+.-]+(?:[^a-z+.:-]|$))/i,qm=/^[\S]+@((?![-_])(?:[-\w\u00a1-\uffff]{0,63}[^-_]\.))+(?:[a-z\u00a1-\uffff]{2,})$/i,Wm=/^((\w+:(\/{2,})?)|(\W))/i,Gm="Ctrl+K";function $m(t,e){var n=e.writer,i=n.createAttributeElement("a",{href:t},{priority:5});return n.setCustomProperty("link",!0,i),i}function Ym(t){return function(t){return t.replace(Um,"").match(Zm)}(t=String(t))?t:"#"}function Km(t,e){return!!t&&e.checkAttribute(t.name,"linkHref")}function Qm(t,e){var n,i=(n=t,qm.test(n)?"mailto:":e),o=!!i&&!Wm.test(t);return t&&o?i+t:t}function Jm(t){window.open(t,"_blank","noopener")}var Xm=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"),tg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTypingHandling()}},{key:"afterInit",value:function(){this._enableEnterHandling(),this._enableShiftEnterHandling()}},{key:"_enableTypingHandling",value:function(){var t=this,e=this.editor,n=new Zf(e.model,(function(t){if(function(t){return t.length>4&&" "===t[t.length-1]&&" "!==t[t.length-2]}(t)){var e=eg(t.substr(0,t.length-1));return e?{url:e}:void 0}}));n.on("matched:data",(function(n,i){var o=i.batch,r=i.range,a=i.url;if(o.isTyping){var s=r.end.getShiftedBy(-1),l=s.getShiftedBy(-a.length),c=e.model.createRange(l,s);t._applyAutoLink(a,c)}})),n.bind("isEnabled").to(this)}},{key:"_enableEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,i=e.commands.get("enter");i&&i.on("execute",(function(){var e=n.document.selection.getFirstPosition();if(e.parent.previousSibling){var i=n.createRangeIn(e.parent.previousSibling);t._checkAndApplyAutoLinkOnRange(i)}}))}},{key:"_enableShiftEnterHandling",value:function(){var t=this,e=this.editor,n=e.model,i=e.commands.get("shiftEnter");i&&i.on("execute",(function(){var e=n.document.selection.getFirstPosition(),i=n.createRange(n.createPositionAt(e.parent,0),e.getShiftedBy(-1));t._checkAndApplyAutoLinkOnRange(i)}))}},{key:"_checkAndApplyAutoLinkOnRange",value:function(t){var e=this.editor.model,n=Uf(t,e),i=n.text,o=n.range,r=eg(i);if(r){var a=e.createRange(o.end.getShiftedBy(-r.length),o.end);this._applyAutoLink(r,a)}}},{key:"_applyAutoLink",value:function(t,e){var n=this,i=this.editor.model,o=this.editor.plugins.get("Delete");this.isEnabled&&function(t,e){return e.schema.checkAttributeInSelection(e.createSelection(t),"linkHref")}(e,i)&&i.enqueueChange((function(r){var a=n.editor.config.get("link.defaultProtocol"),s=Qm(t,a);r.setAttribute("linkHref",s,e),i.enqueueChange((function(){o.requestUndoOnBackspace()}))}))}}],[{key:"requires",get:function(){return[Vf]}},{key:"pluginName",get:function(){return"AutoLink"}}]),n}(be);function eg(t){var e=Xm.exec(t);return e?e[2]:null}var ng=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document;e.change((function(i){!function(t,e,n){var i=n.isCollapsed,o=n.getFirstRange(),r=o.start.parent,a=o.end.parent,s=r==a;if(i){var l=gp(t.schema,n.getAttributes());ig(t,e,o.end),e.removeSelectionAttribute(n.getAttributeKeys()),e.setSelectionAttribute(l)}else{var c=!(o.start.isAtStart&&o.end.isAtEnd);t.deleteContent(n,{leaveUnmerged:c}),s?ig(t,e,n.focus):c&&e.setSelection(a,0)}}
2(e,i,n.selection),t.fire("afterExecute",{writer:i})}))}},{key:"refresh",value:function(){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 i=e.getFirstRange(),o=i.start.parent,r=i.end.parent;return!og(o,t)&&!og(r,t)||o===r}(t.schema,e.selection)}}]),n}(_e);function ig(t,e,n){var i=e.createElement("softBreak");t.insertContent(i,n),e.setSelection(i,"after")}function og(t,e){return!t.is("rootElement")&&(e.isLimit(t)||og(t.parent,e))}var rg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.conversion,i=t.editing.view,o=i.document;e.register("softBreak",{allowWhere:"$text",isInline:!0}),n.for("upcast").elementToElement({model:"softBreak",view:"br"}),n.for("downcast").elementToElement({model:"softBreak",view:function(t,e){return e.writer.createEmptyElement("br")}}),i.addObserver(bp),t.commands.add("shiftEnter",new ng(t)),this.listenTo(o,"enter",(function(e,n){
2n.preventDefault(),n.isSoft&&(t.execute("shiftEnter"),i.scrollToTheSelection())}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"ShiftEnter"}}]),n}(be),ag=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.schema,o=n.document.selection,r=Array.from(o.getSelectedBlocks()),a=void 0===e.forceValue?!this.value:e.forceValue;n.change((function(e){if(a){var n=r.filter((function(t){return sg(t)||cg(i,t)}));t._applyQuote(e,n)}else t._removeQuote(e,r.filter(sg))}))}},{key:"_getValue",value:function(){var t=Ba(this.editor.model.document.selection.getSelectedBlocks());return!(!t||!sg(t))}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ba(t.getSelectedBlocks());return!!n&&cg(e,n)}},{key:"_removeQuote",value:function(t,e){lg(t,e).reverse().forEach((function(e){if(e.start.isAtStart&&e.end.isAtEnd)t.unwrap(e.start.parent);else if(e.start.isAtStart){var n=t.createPositionBefore(e.start.parent);t.move(e,n)}else{e.end.isAtEnd||t.split(e.end);var i=t.createPositionAfter(e.end.parent);t.move(e,i)}}))}},{key:"_applyQuote",value:function(t,e){var n=[];lg(t,e).reverse().forEach((function(e){var i=sg(e.start);i||(i=t.createElement("blockQuote"),t.wrap(e,i)),n.push(i)})),n.reverse().reduce((function(e,n){return e.nextSibling==n?(t.merge(t.createPositionAfter(e)),e):n}))}}]),n}(_e);function sg(t){return"blockQuote"==t.parent.name?t.parent:null}function lg(t,e){for(var n,i=0,o=[];i<e.length;){var r=e[i],a=e[i+1];n||(n=t.createPositionBefore(r)),a&&r.nextSibling==a||(o.push(t.createRange(n,t.createPositionAfter(r))),n=null),i++}return o}function cg(t,e){var n=t.checkChild(e.parent,"blockQuote"),i=t.checkChild(["$root","blockQuote"],e);return n&&i}var ug=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;t.commands.add("blockQuote",new ag(t)),e.register("blockQuote",{allowWhere:"$block",allowContentOf:"$root"}),t.conversion.elementToElement({model:"blockQuote",view:"blockquote"}),t.model.document.registerPostFixer((function(n){var i,o=p(t.model.document.differ.getChanges());try{for(o.s();!(i=o.n()).done;){var r=i.value;if("insert"==r.type){var a=r.position.nodeAfter;if(!a)continue;if(a.is("element","blockQuote")&&a.isEmpty)return n.remove(a),!0;if(a.is("element","blockQuote")&&!e.checkChild(r.position,a))return n.unwrap(a),!0;if(a.is("element")){var s,l=p(n.createRangeIn(a).getItems());try{for(l.s();!(s=l.n()).done;){var c=s.value;if(c.is("element","blockQuote")&&!e.checkChild(n.createPositionBefore(c),c))return n.unwrap(c),!0}}catch(t){l.e(t)}finally{l.f()}}}else if("remove"==r.type){var u=r.position.parent;if(u.is("element","blockQuote")&&u.isEmpty)return n.remove(u),!0}}}catch(t){o.e(t)}finally{o.f()}return!1}));var n=this.editor.editing.view.document,i=t.model.document.selection,o=t.commands.get("blockQuote");this.listenTo(n,"enter",(function(e,n){i.isCollapsed&&o.value&&i.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&&i.isCollapsed&&o.value){var r=i.getLastPosition().parent;r.isEmpty&&!r.previousSibling&&(t.execute("blockQuote"),t.editing.view.scrollToTheSelection(),n.preventDefault(),e.stop())}}),{context:"blockquote"})}}],[{key:"pluginName",get:function(){return"BlockQuoteEditing"}},{key:"requires",get:function(){return[yp,Vf]}}]),n}(be),dg=r(636);fr()(dg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dg.Z.locals;var hg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("blockQuote",(function(i){var o=e.commands.get("blockQuote"),r=new Hu(i);return r.set({label:n("Block quote"),icon:cu,tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute("blockQuote"),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"BlockQuoteUI"}}]),n}(be),fg=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).attributeKey=i,o}return S(n,[{key:"refresh",value:function(){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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,o=void 0===e.forceValue?!this.value:e.forceValue;n.change((function(e){if(i.isCollapsed)o?e.setSelectionAttribute(t.attributeKey,!0):e.removeSelectionAttribute(t.attributeKey);else{var r,a=p(n.schema.getValidRanges(i.getRanges(),t.attributeKey));try{for(a.s();!(r=a.n()).done;){var s=r.value;o?e.setAttribute(t.attributeKey,o,s):e.removeAttribute(t.attributeKey,s)}}catch(t){a.e(t)}finally{a.f()}}}))}},{key:"_getValueFromFirstAllowedNode",value:function(){var t=this.editor.model,e=t.schema,n=t.document.selection;if(n.isCollapsed)return n.hasAttribute(this.attributeKey);var i,o=p(n.getRanges());try{for(o.s();!(i=o.n()).done;){var r,a=p(i.value.getItems());try{for(a.s();!(r=a.n()).done;){var s=r.value;if(e.checkAttribute(s,this.attributeKey))return s.hasAttribute(this.attributeKey)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){o.e(t)}finally{o.f()}return!1}}]),n}(_e),pg="bold",mg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:pg}),t.model.schema.setAttributeProperties(pg,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:pg,view:"strong",upcastAlso:["b",function(t){var e=t.getStyle("font-weight");return e?"bold"==e||Number(e)>=600?{name:!0,styles:["font-weight"]}:void 0:null}]}),t.commands.add(pg,new fg(t,pg)),t.keystrokes.set("CTRL+B",pg)}}],[{key:"pluginName",get:function(){return"BoldEditing"}}]),n}(be),gg="bold",vg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(gg,(function(i){var o=e.commands.get(gg),r=new Hu(i);return r.set({label:n("Bold"),icon:'<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.
26 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>',keystroke:"CTRL+B",tooltip:!0,isToggleable:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute(gg),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"BoldUI"}}]),n}(be),kg=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).affectsData=!1,i}return S(n,[{key:"execute",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema.getLimitElement(e);if(e.containsEntireContent(n)||!bg(t.schema,n))do{if(!(n=n.parent))return}while(!bg(t.schema,n));t.change((function(t){t.setSelection(n,"in")}))}}]),n}(_e);function bg(t,e){return t.isLimit(e)&&(t.checkChild(e,"$text")||t.checkChild(e,"paragraph"))}var yg=Io("Ctrl+A"),_g=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view.document;t.commands.add("selectAll",new kg(t)),this.listenTo(e,"keydown",(function(e,n){To(n)===yg&&(t.execute("selectAll"),n.preventDefault())}))}}],[{key:"pluginName",get:function(){return"SelectAllEditing"}}]),n}(be),wg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor;e.ui.componentFactory.add("selectAll",(function(n){var i=e.commands.get("selectAll"),o=new Hu(n),r=n.t;return o.set({label:r("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("isOn","isEnabled").to(i,"value","isEnabled"),t.listenTo(o,"execute",(function(){e.execute("selectAll"),e.editing.view.focus()})),o}))}}],[{key:"pluginName",get:function(){return"SelectAllUI"}}]),n}(be),Cg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[_g,wg]}},{key:"pluginName",get:function(){return"SelectAll"}}]),n}(be),Ag=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).attributeKey=i,o}return S(n,[{key:"refresh",value:function(){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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,o=e.value;n.change((function(e){if(i.isCollapsed)o?e.setSelectionAttribute(t.attributeKey,o):e.removeSelectionAttribute(t.attributeKey);else{var r,a=p(n.schema.getValidRanges(i.getRanges(),t.attributeKey));try{for(a.s();!(r=a.n()).done;){var s=r.value;o?e.setAttribute(t.attributeKey,o,s):e.removeAttribute(t.attributeKey,s)}}catch(t){a.e(t)}finally{a.f()}}}))}}]),n}(_e),xg=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).set("isEmpty",!0),i.on("change",(function(){i.set("isEmpty",0===i.length)})),i}return S(n,[{key:"add",value:function(t,e){this.find((function(e){return e.color===t.color}))||d(D(n.prototype),"add",this).call(this,t,e)}},{key:"hasColor",value:function(t){return!!this.find((function(e){return e.color===t}))}}]),n}(Xn);ke(xg,he);var Dg=r(2585);fr()(Dg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Dg.Z.locals;var Eg=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=i.colors,a=i.columns,s=i.removeButtonLabel,l=i.documentColorsLabel,c=i.documentColorsCount;return I(this,n),(o=e.call(this,t)).items=o.createCollection(),o.colorDefinitions=r,o.focusTracker=new Pa,o.keystrokes=new La,o.set("selectedColor"),o.removeButtonLabel=s,o.columns=a,o.documentColors=new xg,o.documentColorsCount=c,o._focusCycler=new Ku({focusables:o.items,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"arrowup",focusNext:"arrowdown"}}),o._documentColorsLabel=l,o.setTemplate({tag:"div",attributes:{class:["ck","ck-color-table"]},children:o.items}),o.items.add(o._removeColorButton()),o}return S(n,[{key:"updateDocumentColors",value:function(t,e){var n=t.document,i=this.documentColorsCount;this.documentColors.clear();var o,r=p(n.getRootNames());try{for(r.s();!(o=r.n()).done;){var a,s=o.value,l=n.getRoot(s),c=p(t.createRangeIn(l).getItems());try{for(c.s();!(a=c.n()).done;){var u=a.value;if(u.is("$textProxy")&&u.hasAttribute(e)&&(this._addColorToDocumentColors(u.getAttribute(e)),this.documentColors.length>=i))return}}catch(t){c.e(t)}
2finally{c.f()}}}catch(t){r.e(t)}finally{r.f()}}},{key:"updateSelectedColors",value:function(){var t=this.documentColorsGrid,e=this.staticColorsGrid,n=this.selectedColor;e.selectedColor=n,t&&(t.selectedColor=n)}},{key:"render",value:function(){d(D(n.prototype),"render",this).call(this);var t,e=p(this.items);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.focusTracker.add(i.element)}}catch(t){e.e(t)}finally{e.f()}this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"appendGrids",value:function(){if(!this.staticColorsGrid&&(this.staticColorsGrid=this._createStaticColorsGrid(),this.items.add(this.staticColorsGrid),this.documentColorsCount)){var t=gu.bind(this.documentColors,this.documentColors),e=new Id(this.locale);e.text=this._documentColorsLabel,e.extendTemplate({attributes:{class:["ck","ck-color-grid__label",t.if("isEmpty","ck-hidden")]}}),this.items.add(e),this.documentColorsGrid=this._createDocumentColorsGrid(),this.items.add(this.documentColorsGrid)}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"focusLast",value:function(){this._focusCycler.focusLast()}},{key:"_removeColorButton",value:function(){var t=this,e=new Hu;return e.set({withText:!0,icon:Vc,tooltip:!0,label:this.removeButtonLabel}),e.class="ck-color-table__remove-color",e.on("execute",(function(){t.fire("execute",{value:null})})),e}},{key:"_createStaticColorsGrid",value:function(){var t=new Xu(this.locale,{colorDefinitions:this.colorDefinitions,columns:this.columns});return t.delegate("execute").to(this),t}},{key:"_createDocumentColorsGrid",value:function(){var t=this,e=gu.bind(this.documentColors,this.documentColors),n=new Xu(this.locale,{columns:this.columns});return n.delegate("execute").to(this),n.extendTemplate({attributes:{class:e.if("isEmpty","ck-hidden")}}),n.items.bindTo(this.documentColors).using((function(e){var n=new $u;return n.set({color:e.color,hasBorder:e.options&&e.options.hasBorder}),e.label&&n.set({label:e.label,tooltip:!0}),n.on("execute",(function(){t.fire("execute",{value:e.color})})),n})),this.documentColors.on("change:isEmpty",(function(t,e,i){i&&(n.selectedColor=null)})),n}},{key:"_addColorToDocumentColors",value:function(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}})}}]),n}
2(mu),Sg="fontSize",Tg="fontColor",Ig="fontBackgroundColor";function zg(t){return function(e){return e.getStyle(t).replace(/\s/g,"")}}function Mg(t){return function(e,n){return n.writer.createAttributeElement("span",{style:"".concat(t,":").concat(e)},{priority:7})}}var Bg=function(t){k(n,t);var e=b(n);function n(t){return I(this,n),e.call(this,t,Ig)}return S(n)}(Ag),Pg=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define(Ig,{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(Xh),t.conversion.for("upcast").elementToAttribute({view:{name:"span",styles:{"background-color":/[\s\S]+/}},model:{key:Ig,value:zg("background-color")}}),t.conversion.for("downcast").attributeToElement({model:Ig,view:Mg("background-color")}),t.commands.add(Ig,new Bg(t)),t.model.schema.extend("$text",{allowAttributes:Ig}),t.model.schema.setAttributeProperties(Ig,{isFormatting:!0,copyOnEnter:!0}),i}return S(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorEditing"}}]),n}(be),Lg=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=i.commandName,a=i.icon,s=i.componentName,l=i.dropdownLabel;return I(this,n),(o=e.call(this,t)).commandName=r,o.componentName=s,o.icon=a,o.dropdownLabel=l,o.columns=t.config.get("".concat(o.componentName,".columns")),o.colorTableView=void 0,o}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.locale,i=n.t,o=e.commands.get(this.commandName),r=qu(n,Wu(e.config.get(this.componentName).colors)),a=e.config.get("".concat(this.componentName,".documentColors"));e.ui.componentFactory.add(this.componentName,(function(n){var s=Ad(n);return t.colorTableView=function(t){var e=t.dropdownView,n=t.colors,i=t.columns,o=t.removeButtonLabel,r=t.documentColorsLabel,a=t.documentColorsCount,s=e.locale,l=new Eg(s,{colors:n,columns:i,removeButtonLabel:o,documentColorsLabel:r,documentColorsCount:a});return e.colorTableView=l,e.panelView.children.add(l),l.delegate("execute").to(e,"execute"),l}({dropdownView:s,colors:r.map((function(t){return{label:t.label,color:t.model,options:{hasBorder:t.hasBorder}}})),columns:t.columns,removeButtonLabel:i("Remove color"),documentColorsLabel:0!==a?i("Document colors"):void 0,documentColorsCount:void 0===a?t.columns:a}),t.colorTableView.bind("selectedColor").to(o,"value"),s.buttonView.set({label:t.dropdownLabel,icon:t.icon,tooltip:!0}),s.extendTemplate({attributes:{class:"ck-color-ui-dropdown"}}),s.bind("isEnabled").to(o),s.on("execute",(function(n,i){e.execute(t.commandName,i),e.editing.view.focus()})),s.on("change:isOpen",(function(n,i,o){s.colorTableView.appendGrids(),o&&(0!==a&&t.colorTableView.updateDocumentColors(e.model,t.componentName),t.colorTableView.updateSelectedColors())})),s}))}}]),n}(be),Ng=function(t){k(n,t);var e=b(n);function n(t){I(this,n);var i=t.locale.t;return e.call(this,t,{commandName:Ig,componentName:Ig,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:i("Font Background Color")})}return S(n,null,[{key:"pluginName",get:function(){return"FontBackgroundColorUI"}}]),n}(Lg),Og=function(t){k(n,t);var e=b(n);function n(t){return I(this,n),e.call(this,t,Tg)}return S(n)}(Ag),Fg=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define(Tg,{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:Tg,value:zg("color")}}),t.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{color:/^#?\w+$/}},model:{key:Tg,value:function(t){return t.getAttribute("color")}}}),t.conversion.for("downcast").attributeToElement({model:Tg,view:Mg("color")}),t.commands.add(Tg,new Og(t)),t.model.schema.extend("$text",{allowAttributes:Tg}),t.model.schema.setAttributeProperties(Tg,{isFormatting:!0,copyOnEnter:!0}),i}return S(n,null,[{key:"pluginName",get:function(){return"FontColorEditing"}}]),n}(be),Rg=function(t){k(n,t);var e=b(n);function n(t){I(this,n);var i=t.locale.t;return e.call(this,t,{commandName:Tg,componentName:Tg,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:i("Font Color")})}return S(n,null,[{key:"pluginName",get:function(){return"FontColorUI"}}]),n}(Lg),jg=function(t){k(n,t);var e=b(n);function n(t){return I(this,n),e.call(this,t,Sg)}return S(n)}(Ag);function Vg(t){return t.map((function(t){return function(t){if("object"==z(e=t)&&e.title&&e.model&&e.view)return Ug
2(t);var e,n=function(t){return Hg[t]||Hg[t.model]}(t);return n?Ug(n):"default"===t?{model:void 0,title:"Default"}:function(t){var e;if("object"==z(t)){if(!t.model)throw new x("font-size-invalid-definition",null,t);e=parseFloat(t.model)}else e=parseFloat(t);return isNaN(e)}(t)?void 0:function(t){return"number"!=typeof t&&"string"!=typeof t||(t={title:String(t),model:"".concat(parseFloat(t),"px")}),t.view={name:"span",styles:{"font-size":t.model}},Ug(t)}(t)}(t)})).filter((function(t){return!!t}))}var Hg={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 Ug(t){return t.view.priority||(t.view.priority=7),t}var Zg=["x-small","x-small","small","medium","large","x-large","xx-large","xxx-large"],qg=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define(Sg,{options:["tiny","small","default","big","huge"],supportAllValues:!1}),i}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Sg}),t.model.schema.setAttributeProperties(Sg,{isFormatting:!0,copyOnEnter:!0});var e=t.config.get("fontSize.supportAllValues"),n=Vg(this.editor.config.get("fontSize.options")).filter((function(t){return t.model})),i=function(t,e){var n,i={model:{key:t,values:[]},view:{},upcastAlso:{}},o=p(e);try{for(o.s();!(n=o.n()).done;){var r=n.value;i.model.values.push(r.model),i.view[r.model]=r.view,r.upcastAlso&&(i.upcastAlso[r.model]=r.upcastAlso)}}catch(t){o.e(t)}finally{o.f()}return i}(Sg,n);e?(this._prepareAnyValueConverters(i),this._prepareCompatibilityConverter()):t.conversion.attributeToElement(i),t.commands.add(Sg,new jg(t))}},{key:"_prepareAnyValueConverters",value:function(t){var e=this.editor,n=t.model.values.filter((function(t){return!Rh(String(t))&&!Vh(String(t))}));if(n.length)throw new x("font-size-invalid-use-of-named-presets",null,{presets:n});e.conversion.for("downcast").attributeToElement({model:Sg,view:function(t,e){var n=e.writer;if(t)return n.createAttributeElement("span",{style:"font-size:"+t},{priority:7})}}),e.conversion.for("upcast").elementToAttribute({model:{key:Sg,value:function(t){return t.getStyle("font-size")}},view:{name:"span",styles:{"font-size":/.*/}}})}},{key:"_prepareCompatibilityConverter",value:function(){this.editor.conversion.for("upcast").elementToAttribute({view:{name:"font",attributes:{size:/^[+-]?\d{1,3}$/}},model:{key:Sg,value:function(t){var e=t.getAttribute("size"),n="-"===e[0]||"+"===e[0],i=parseInt(e,10);n&&(i=3+i);var o=Zg.length-1,r=Math.min(Math.max(i,0),o);return Zg[r]}}})}}],[{key:"pluginName",get:function(){return"FontSizeEditing"}}]),n}(be),Wg=r(6203);fr()(Wg.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Wg.Z.locals;var Gg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t,i=this._getLocalizedOptions(),o=e.commands.get(Sg);e.ui.componentFactory.add(Sg,(function(r){var a=Ad(r);return Dd(a,function(t,e){var n,i=new Xn,o=p(t);try{var r=function(){var t=n.value,o={type:"button",model:new Wd({commandName:Sg,commandParam:t.model,label:t.title,class:"ck-fontsize-option",withText:!0})};t.view&&t.view.styles&&o.model.set("labelStyle","font-size:".concat(t.view.styles["font-size"])),t.view&&t.view.classes&&o.model.set("class","".concat(o.model.class," ").concat(t.view.classes)),o.model.bind("isOn").to(e,"value",(function(e){return e===t.model})),i.add(o)};for(o.s();!(n=o.n()).done;)r()}catch(t){o.e(t)}finally{o.f()}return i}(i,o)),a.buttonView.set({label:n("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}),a.extendTemplate({attributes:{class:["ck-font-size-dropdown"]}}),a.bind("isEnabled").to(o),t.listenTo(a,"execute",(function(t){e.execute(t.source.commandName,{value:t.source.commandParam}),e.editing.view.focus()})),a}))}},{key:"_getLocalizedOptions",value:function(){var t=this.editor,e=t.t,n={Default:e("Default"),Tiny:e("Tiny"),Small:e("Small"),Big:e("Big"),Huge:e("Huge")};return Vg(t.config.get(Sg).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(){return"FontSizeUI"}}]),n}(be),$g=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=Ba(t.document.selection.getSelectedBlocks());this.value=!!e&&e.is("element","paragraph"),this.isEnabled=!!e&&Yg(e,t.schema)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=e.document;e.change((function(i){var o,r=p((t.selection||n.selection).getSelectedBlocks());try{for(r.s();!(o=r.n()).done;){var a=o.value;!a.is("element","paragraph")&&Yg(a,e.schema)&&i.rename(a,"paragraph")}}catch(t){r.e(t)}finally{r.f()}}))}}]),n}(_e);function Yg(t,e){return e.checkChild(t.parent,"paragraph")&&!e.isObject(t)}var Kg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"execute",value:function(t){var e=this.editor.model,n=t.position;e.change((function(t){var i=t.createElement("paragraph");if(!e.schema.checkChild(n.parent,i)){var o=e.schema.findAllowedParent(n,i);if(!o)return;n=t.split(n,o).position}e.insertContent(i,n),t.setSelection(i,"in")}))}}]),n}(_e),Qg=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model;t.commands.add("paragraph",new $g(t)),t.commands.add("insertParagraph",new Kg(t)),e.schema.register("paragraph",{inheritAllFrom
2:"$block"}),t.conversion.elementToElement({model:"paragraph",view:"p"}),t.conversion.for("upcast").elementToElement({model:function(t,e){var i=e.writer;return n.paragraphLikeElements.has(t.name)?t.isEmpty?null:i.createElement("paragraph"):null},view:/.+/,converterPriority:"low"})}}],[{key:"pluginName",get:function(){return"Paragraph"}}]),n}(be);Qg.paragraphLikeElements=new Set(["blockquote","dd","div","dt","h1","h2","h3","h4","h5","h6","li","p","td","th"]);var Jg=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).modelElements=i,o}return S(n,[{key:"refresh",value:function(){var t=this,e=Ba(this.editor.model.document.selection.getSelectedBlocks());this.value=!!e&&this.modelElements.includes(e.name)&&e.name,this.isEnabled=!!e&&this.modelElements.some((function(n){return Xg(e,n,t.editor.model.schema)}))}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document,i=t.value;e.change((function(t){var o,r=Array.from(n.selection.getSelectedBlocks()).filter((function(t){return Xg(t,i,e.schema)})),a=p(r);try{for(a.s();!(o=a.n()).done;){var s=o.value;s.is("element",i)||t.rename(s,i)}}catch(t){a.e(t)}finally{a.f()}}))}}]),n}(_e);function Xg(t,e,n){return n.checkChild(t.parent,e)&&!n.isObject(t)}var tv="paragraph",ev=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.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"}]}),i}return S(n,[{key:"init",value:function(){var t,e=this.editor,n=[],i=p(e.config.get("heading.options"));try{for(i.s();!(t=i.n()).done;){var o=t.value;o.model!==tv&&(e.model.schema.register(o.model,{inheritAllFrom:"$block"}),e.conversion.elementToElement(o),n.push(o.model))}}catch(t){i.e(t)}finally{i.f()}this._addDefaultH1Conversion(e),e.commands.add("heading",new Jg(e,n))}},{key:"afterInit",value:function(){var t=this.editor,e=t.commands.get("enter"),n=t.config.get("heading.options");e&&this.listenTo(e,"afterExecute",(function(e,i){var o=t.model.document.selection.getFirstPosition().parent;n.some((function(t){return o.is("element",t.model)}))&&!o.is("element",tv)&&0===o.childCount&&i.writer.rename(o,tv)}))}},{key:"_addDefaultH1Conversion",value:function(t){t.conversion.for("upcast").elementToElement({model:"heading1",view:"h1",converterPriority:A.get("low")+1})}}],[{key:"pluginName",get:function(){return"HeadingEditing"}},{key:"requires",get:function(){return[Qg]}}]),n}(be),nv=r(3230);fr()(nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),nv.Z.locals;var iv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t,i=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}))}(e),o=n("Choose heading"),r=n("Heading");e.ui.componentFactory.add("heading",(function(n){var a,s={},l=new Xn,c=e.commands.get("heading"),u=e.commands.get("paragraph"),d=[c],h=p(i);try{var f=function(){var t=a.value,e={type:"button",model:new Wd({label:t.title,class:t.class,withText:!0})};"paragraph"===t.model?(e.model.bind("isOn").to(u,"value"),e.model.set("commandName","paragraph"),d.push(u)):(e.model.bind("isOn").to(c,"value",(function(e){return e===t.model})),e.model.set({commandName:"heading",commandValue:t.model})),l.add(e),s[t.model]=t.title};for(h.s();!(a=h.n()).done;)f()}catch(t){h.e(t)}finally{h.f()}var m=Ad(n);return Dd(m,l),m.buttonView.set({isOn:!1,withText:!0,tooltip:r}),m.extendTemplate({attributes:{class:["ck-heading-dropdown"]}}),m.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),m.buttonView.bind("label").to(c,"value",u,"value",(function(t,e){var n=t||e&&"paragraph";return s[n]?s[n]:o})),t.listenTo(m,"execute",(function(t){e.execute(t.source.commandName,t.source.commandValue?{value:t.source.commandValue}:void 0),e.editing.view.focus()})),m}))}}],[{key:"pluginName",get:function(){return"HeadingUI"}}]),n}(be),ov=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document;this.value=e.selection.getAttribute("highlight"),this.isEnabled=t.schema.checkAttributeInSelection(e.selection,"highlight")}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,o=e.value;n.change((function(e){if(i.isCollapsed){var r=i.getFirstPosition();if(i.hasAttribute("highlight")){var a=function(e){return e.item.hasAttribute("highlight")&&e.item.getAttribute("highlight")===t.value},s=r.getLastMatchingPosition(a,{direction:"backward"}),l=r.getLastMatchingPosition(a),c=e.createRange(s,l);o&&t.value!==o?(r.isEqual(l)||e.setAttribute("highlight",o,c),e.setSelectionAttribute("highlight",o)):(r.isEqual(l)||e.removeAttribute("highlight",c),e.removeSelectionAttribute("highlight"))}else o&&e.setSelectionAttribute("highlight",o)}else{var u,d=p(n.schema.getValidRanges(i.getRanges(),"highlight"));try{for(d.s();!(u=d.n()).done;){var h=u.value;o?e.setAttribute("highlight",o,h):e.removeAttribute("highlight",h)}}catch(t){d.e(t)}finally{d.f()}}}))}}]),n}(_e),rv=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("highlight",{options:[{model:"yellowMarker",class:"marker-yellow",title:"Yellow marker",color:"var(--ck-highlight-marker-yellow)",type:"marker"},{model:"greenMarker",class:"marker-green",title:"Green marker",color:"var(--ck-highlight-marker-green)",type:"marker"},{model:"pinkMarker",class:"marker-pink",title:"Pink marker",color:"var(--ck-highlight-marker-pink)",type:"marker"},{model:"blueMarker",class:"marker-blue",title:"Blue marker",color:"var(--ck-highlight-marker-blue)",type:"marker"},{model:"redPen",class:"pen-red",title:"Red pen",color:"var(--ck-highlight-pen-red)",type:"pen"},{model:"greenPen",class:"pen-green",title:"Green pen",color:"var(--ck-highlight-pen-green)",type:"pen"}]}),i}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:"highlight"});var e=t.config.get("highlight.options");t.conversion.attributeToElement(function(t){var e,n={model:{key:"highlight",values:[]},view:{}},i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;n.model.values.push(o.model),n.view[o.model]={name:"mark",classes:o.class}}}catch(t){i.e(t)}finally{i.f()}return n}(e)),t.commands.add("highlight",new ov(t))}}],[{key:"pluginName",get:function(){return"HighlightEditing"}}]),n}(be),av=r(713);fr()(av.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),av.Z.locals;var sv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"localizedOptionTitles",get:function(){var t=this.editor.t;return{"Yellow marker":t("Yellow marker"),"Green marker":t("Green marker"),"Pink marker":t("Pink marker"),"Blue marker":t("Blue marker"),"Red pen":t("Red pen"),"Green pen":t("Green pen")}}},{key:"init",value:function(){var t,e=this.editor.config.get("highlight.options"),n=p(e);try{for(n.s();!(t=n.n()).done;){var i=t.value;this._addHighlighterButton(i)}}catch(t){n.e(t)}finally{n.f()}this._addRemoveHighlightButton(),this._addDropdown(e)}},{key:"_addRemoveHighlightButton",value:function(){var t=this.editor.t,e=this.editor.commands.get("highlight");this._addButton("removeHighlight",t("Remove highlight"),Vc,null,(function(t){t.bind("isEnabled").to(e,"isEnabled")}))}},{key:"_addHighlighterButton",value:function(t){var e=this.editor.commands.get("highlight");this._addButton("highlight:"+t.model,t.title,lv(t.type),t.model,(function(n){n.bind("isEnabled").to(e,"isEnabled"),n.bind("isOn").to(e,"value",(function(e){return e===t.model})),n.iconView.fillColor=t.color,n.isToggleable=!0}))}},{key:"_addButton",value:function(t,e,n,i,o){var r=this,a=this.editor;a.ui.componentFactory.add(t,(function(t){var s=new Hu(t),l=r.localizedOptionTitles[e]?r.localizedOptionTitles[e]:e;return s.set({label:l,icon:n,tooltip:!0}),s.on("execute",(function(){a.execute("highlight",{value:i}),a.editing.view.focus()})),o(s),s}))}},{key:"_addDropdown",value:function(t){var e=this,n=this.editor,i=n.t,o=n.ui.componentFactory,r=t[0],a=t.reduce((function(t,e){return t[e.model]=e,t}),{});o.add("highlight",(function(s){var l=n.commands.get("highlight"),c=Ad(s,id),u=c.buttonView;u.set({tooltip:i("Highlight"),lastExecuted:r.model,commandValue:r.model,isToggleable:!0}),u.bind("icon").to(l,"value",(function(t){return lv(h(t,"type"))})),u.bind("color").to(l,"value",(function(t){return h(t,"color")})),u.bind("commandValue").to(l,"value",(function(t){return h(t,"model")})),u.bind("isOn").to(l,"value",(function(t){return!!t})),u.delegate("execute").to(c);var d=t.map((function(t){var n=o.create("highlight:"+t.model);return e.listenTo(n,"execute",(function(){return c.buttonView.set({lastExecuted:t.model})})),n}));function h(t,e){var n=t&&t!==u.lastExecuted?t:u.lastExecuted;return a[n][e]}return c.bind("isEnabled").toMany(d,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),d.push(new ud),d.push(o.create("removeHighlight")),xd(c,d),function(t){t.buttonView.actionView.iconView.bind("fillColor").to(t.buttonView,"color")}(c),c.toolbarView.ariaLabel=i("Text highlight toolbar"),u.on("execute",(function(){n.execute("highlight",{value:u.commandValue}),n.editing.view.focus()})),c}))}}],[{key:"pluginName",get:function(){return"HighlightUI"}}]),n}(be);function lv(t){return"marker"===t?'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.798 1.59 3.002 12.875l1.895 1.852 2.521 1.402 6.997-12.194z"/><path d="m2.556 16.727.234-.348c-.297-.151-.462-.293-.498-.426-.036-.137.002-.416.115-.837.094-.25.15-.449.169-.595a4.495 4.495 0 0 0 0-.725c-.209-.621-.303-1.041-.284-1.26.02-.218.178-.506.475-.862l6.77-9.414c.539-.91 1.605-.85 3.199.18 
21.594 1.032 2.188 1.928 1.784 2.686l-5.877 10.36c-.158.412-.333.673-.526.782-.193.108-.604.179-1.232.21-.362.131-.608.237-.738.318-.13.081-.305.238-.526.47-.293.265-.504.397-.632.397-.096 0-.27-.075-.524-.226l-.31.41-1.6-1.12zm-.279.415 1.575 1.103-.392.515H1.19l1.087-1.618zm8.1-13.656-4.953 6.9L8.75 12.57l4.247-7.574c.175-.25-.188-.647-1.092-1.192-.903-.546-1.412-.652-1.528-.32zM8.244 18.5 9.59 17h9.406v1.5H8.245z"/></svg>':'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path class="ck-icon__fill" d="M10.126 2.268 2.002 13.874l1.895 1.852 2.521 1.402L14.47 5.481l-1.543-2.568-2.801-.645z"/><path d="m4.5 18.088-2.645-1.852-.04-2.95-.006-.005.006-.008v-.025l.011.008L8.73 2.97c.165-.233.356-.417.567-.557l-1.212.308L4.604 7.9l-.83-.558 3.694-5.495 2.708-.69 1.65 1.145.046.018.85-1.216 2.16 1.512-.856 1.222c.828.967 1.144 2.141.432 3.158L7.55 17.286l.006.005-3.055.797H4.5zm-.634.166-1.976.516-.026-1.918 2.002 1.402zM9.968 3.817l-.006-.004-6.123 9.184 3.277 2.294 6.108-9.162.005.003c.317-.452-.16-1.332-1.064-1.966-.891-.624-1.865-.776-2.197-.349zM8.245 18.5 9.59 17h9.406v1.5H8.245z"/></svg>'}var cv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.schema,n=t.document.selection;this.isEnabled=function(t,e,n){var i=function(t,e){var n=Pp(t,e).start.parent;return n.isEmpty&&!n.is("element","$root")?n.parent:n}(t,n);return e.checkChild(i,"horizontalLine")}(n,e,t)}},{key:"execute",value:function(){var t=this.editor.model;t.change((function(e){var n=e.createElement("horizontalLine");t.insertContent(n);var i=n.nextSibling;!(i&&t.schema.checkChild(i,"$text"))&&t.schema.checkChild(n.parent,"paragraph")&&(i=e.createElement("paragraph"),t.insertContent(i,e.createPositionAfter(n))),i&&e.setSelection(i,0)}))}}]),n}(_e),uv=r(2536);fr()(uv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uv.Z.locals;var dv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,i=t.conversion;e.register("horizontalLine",{isObject:!0,allowWhere:"$block"}),i.for("dataDowncast").elementToElement({model:"horizontalLine",view:function(t,e){return e.writer.createEmptyElement("hr")}}),i.for("editingDowncast").elementToStructure({model:"horizontalLine",view:function(t,e){var i=e.writer,o=n("Horizontal line"),r=i.createContainerElement("div",null,i.createEmptyElement("hr"));return i.addClass("ck-horizontal-line",r),i.setCustomProperty("hr",!0,r),function(t,e,n){return e.setCustomProperty("horizontalLine",!0,t),Sp(t,e,{label:n})}(r,i,o)}}),i.for("upcast").elementToElement({view:"hr",model:"horizontalLine"}),t.commands.add("horizontalLine",new cv(t))}}],[{key:"pluginName",get:function(){return"HorizontalLineEditing"}}]),n}(be),hv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("horizontalLine",(function(i){var o=e.commands.get("horizontalLine"),r=new Hu(i);return r.set({label:n("Horizontal line"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M2 9h16v2H2z"/></svg>',tooltip:!0}),r.bind("isEnabled").to(o,"isEnabled"),t.listenTo(r,"execute",(function(){e.execute("horizontalLine"),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"HorizontalLineUI"}}]),n}(be),fv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){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(t){var e=this.editor,n=e.plugins.get("ImageUtils"),i=e.model,o=n.getClosestSelectedImageElement(i.document.selection);i.change((function(e){e.setAttribute("alt",t.newValue,o)}))}}]),n}(_e),pv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this.editor.commands.add("imageTextAlternative",new fv(this.editor))}}],[{key:"requires",get:function(){return[Dm]}},{key:"pluginName",get:function(){return"ImageTextAlternativeEditing"}}]),n}(be),mv=r(6831);fr()(mv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),mv.Z.locals;var gv=r(1590);fr()(gv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),gv.Z.locals;var vv=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).locale.t;return i.focusTracker=new Pa,i.keystrokes=new La,i.labeledInput=i._createLabeledInputVie
2w(),i.saveButtonView=i._createButton(o("Save"),jc,"ck-button-save"),i.saveButtonView.type="submit",i.cancelButtonView=i._createButton(o("Cancel"),Fc,"ck-button-cancel","cancel"),i._focusables=new fu,i._focusCycler=new Ku({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"form",attributes:{class:["ck","ck-text-alternative-form","ck-responsive-form"],tabindex:"-1"},children:[i.labeledInput,i.saveButtonView,i.cancelButtonView]}),du(_(i)),i}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),this.keystrokes.listenTo(this.element),hu({view:this}),[this.labeledInput,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)}))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"_createButton",value:function(t,e,n,i){var o=new Hu(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}},{key:"_createLabeledInputView",value:function(){var t=this.locale.t,e=new Vd(this.locale,Hd);return e.label=t("Text alternative"),e}}]),n}(mu);function kv(t){var e=t.editing.view,n=Qd.defaultPositions,i=t.plugins.get("ImageUtils");return{target:e.domConverter.viewToDom(i.getClosestSelectedImageWidget(e.document.selection)),positions:[n.northArrowSouth,n.northArrowSouthWest,n.northArrowSouthEast,n.southArrowNorth,n.southArrowNorthWest,n.southArrowNorthEast,n.viewportStickyNorth]}}var bv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this._createButton(),this._createForm()}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this._form.destroy()}},{key:"_createButton",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("imageTextAlternative",(function(i){var o=e.commands.get("imageTextAlternative"),r=new Hu(i);return r.set({label:n("Change image text alternative"),icon:Hc,tooltip:!0}),r.bind("isEnabled").to(o,"isEnabled"),t.listenTo(r,"execute",(function(){t._showForm()})),r}))}},{key:"_createForm",value:function(){var t=this,e=this.editor,n=e.editing.view.document,i=e.plugins.get("ImageUtils");this._balloon=this.editor.plugins.get("ContextualBalloon"),this._form=new vv(e.locale),this._form.render(),this.listenTo(this._form,"submit",(function(){e.execute("imageTextAlternative",{newValue:t._form.labeledInput.fieldView.element.value}),t._hideForm(!0)})),this.listenTo(this._form,"cancel",(function(){t._hideForm(!0)})),this._form.keystrokes.set("Esc",(function(e,n){t._hideForm(!0),n()})),this.listenTo(e.ui,"update",(function(){i.getClosestSelectedImageWidget(n.selection)?t._isVisible&&function(t){var e=t.plugins.get("ContextualBalloon");if(t.plugins.get("ImageUtils").getClosestSelectedImageWidget(t.editing.view.document.selection)){var n=kv(t);e.updatePosition(n)}}(e):t._hideForm(!0)})),uu({emitter:this._form,activator:function(){return t._isVisible},contextElements:[this._balloon.view.element],callback:function(){return t._hideForm()}})}},{key:"_showForm",value:function(){if(!this._isVisible){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:kv(t)}),n.fieldView.value=n.fieldView.element.value=e.value||"",this._form.labeledInput.fieldView.select(),this._form.enableCssTransitions()}}},{key:"_hideForm",value:function(t){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(){return this._balloon.visibleView===this._form}},{key:"_isInBalloon",get:function(){return this._balloon.hasView(this._form)}}],[{key:"requires",get:function(){return[nh]}}
2,{key:"pluginName",get:function(){return"ImageTextAlternativeUI"}}]),n}(be),yv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[pv,bv]}},{key:"pluginName",get:function(){return"ImageTextAlternative"}}]),n}(be);function _v(t,e){return function(t){t.on("attribute:srcset:".concat(e),n)};function n(e,n,i){if(i.consumable.consume(n.item,e.name)){var o=i.writer,r=i.mapper.toViewElement(n.item),a=t.findViewImgElement(r);if(null===n.attributeNewValue){var s=n.attributeOldValue;s.data&&(o.removeAttribute("srcset",a),o.removeAttribute("sizes",a),s.width&&o.removeAttribute("width",a))}else{var l=n.attributeNewValue;l.data&&(o.setAttribute("srcset",l.data,a),o.setAttribute("sizes","100vw",a),l.width&&o.setAttribute("width",l.width,a))}}}}function wv(t,e,n){return function(t){t.on("attribute:".concat(n,":").concat(e),i)};function i(e,n,i){if(i.consumable.consume(n.item,e.name)){var o=i.writer,r=i.mapper.toViewElement(n.item),a=t.findViewImgElement(r);o.setAttribute(n.attributeKey,n.attributeNewValue||"",a)}}}var Cv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"observe",value:function(t){var e=this;this.listenTo(t,"load",(function(t,n){var i=n.target;e.checkShouldIgnoreEventFromTarget(i)||"IMG"==i.tagName&&e._fireEvents(n)}),{useCapture:!0})}},{key:"_fireEvents",value:function(t){this.isEnabled&&(this.document.fire("layoutChanged"),this.document.fire("imageLoaded",t))}}]),n}(Or),Av=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),i=e.call(this,t);var o=t.config.get("image.insert.type");return t.plugins.has("ImageBlockEditing")||"block"===o&&E("image-block-plugin-required"),t.plugins.has("ImageInlineEditing")||"inline"===o&&E("image-inline-plugin-required"),i}return S(n,[{key:"refresh",value:function(){this.isEnabled=this.editor.plugins.get("ImageUtils").isImageAllowed()}},{key:"execute",value:function(t){var e=this,n=ei(t.source),i=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(i.getAttributes());n.forEach((function(t,n){var a=i.getSelectedElement();if("string"==typeof t&&(t={src:t}),n&&a&&o.isImage(a)){var s=e.editor.model.createPositionAfter(a);o.insertImage(c(c({},t),r),s)}else o.insertImage(c(c({},t),r))}))}}]),n}(_e),xv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.conversion;t.editing.view.addObserver(Cv),e.for("upcast").attributeToAttribute({view:{name:"img",key:"alt"},model:"alt"}).attributeToAttribute({view:{name:"img",key:"srcset"},model:{key:"srcset",value:function(t){var e={data:t.getAttribute("srcset")};return t.hasAttribute("width")&&(e.width=t.getAttribute("width")),e}}});var n=new Av(t);t.commands.add("insertImage",n),t.commands.add("imageInsert",n)}}],[{key:"requires",get:function(){return[Dm]}},{key:"pluginName",get:function(){return"ImageEditing"}}]),n}(be),Dv=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._modelElementName=i,o}return S(n,[{key:"refresh",value:function(){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(){var t=this,e=this.editor,n=this.editor.model,i=e.plugins.get("ImageUtils"),o=i.getClosestSelectedImageElement(n.document.selection),r=Object.fromEntries(o.getAttributes());return r.src||r.uploadId?n.change((function(e){var a=Array.from(n.markers).filter((function(t){return t.getRange().containsItem(o)})),s=i.insertImage(r,n.createSelection(o,"on"),t._modelElementName);if(!s)return null;var l,c=e.createRangeOn(s),u=p(a);try{for(u.s();!(l=u.n()).done;){var d=l.value,h=d.getRange(),f="$graveyard"!=h.root.rootName?h.getJoined(c,!0):c;e.updateMarker(d,{range:f})}}catch(t){u.e(t)}finally{u.f()}return{oldElement:o,newElement:s}})):null}}]),n}(_e),Ev=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.register("imageBlock",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["alt","src","srcset"]}),this._setupConversion(),t.plugins.has("ImageInlineEditing")&&(t.commands.add("imageTypeBlock",new Dv(this.editor,"imageBlock")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");
2n.for("dataDowncast").elementToStructure({model:"imageBlock",view:function(t,e){return Cm(e.writer)}}),n.for("editingDowncast").elementToStructure({model:"imageBlock",view:function(t,n){var o=n.writer;return i.toImageWidget(Cm(o),o,e("image widget"))}}),n.for("downcast").add(wv(i,"imageBlock","src")).add(wv(i,"imageBlock","alt")).add(_v(i,"imageBlock")),n.for("upcast").elementToElement({view:Am(t,"imageBlock"),model:function(t,e){return e.writer.createElement("imageBlock",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)}}).add(function(t){return function(t){t.on("element:figure",e)};function e(e,n,i){if(i.consumable.test(n.viewItem,{name:!0,classes:"image"})){var o=t.findViewImgElement(n.viewItem);if(o&&i.consumable.test(o,{name:!0})){i.consumable.consume(n.viewItem,{name:!0,classes:"image"});var r=Ba(i.convertItem(o,n.modelCursor).modelRange.getItems());r?(i.convertChildren(n.viewItem,r),i.updateConversionResult(r,n)):i.consumable.revert(n.viewItem,{name:!0,classes:"image"})}}}}(i))}},{key:"_setupClipboardIntegration",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(o,r){var a,s=Array.from(r.content.getChildren());if(s.every(i.isInlineImageView)){a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageBlock"===xm(e.schema,l)){var c=new Sh(n.document),u=s.map((function(t){return c.createElement("figure",{class:"image"},t)}));r.content=c.createDocumentFragment(u)}}}))}}],[{key:"requires",get:function(){return[xv,Dm,mp]}},{key:"pluginName",get:function(){return"ImageBlockEditing"}}]),n}(be),Sv=r(9048);fr()(Sv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Sv.Z.locals;var Tv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Ev,Gp,yv]}},{key:"pluginName",get:function(){return"ImageBlock"}}]),n}(be),Iv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;e.register("imageInline",{isObject:!0,isInline:!0,allowWhere:"$text",allowAttributesOf:"$text",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 Dv(this.editor,"imageInline")),this._setupClipboardIntegration())}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.t,n=t.conversion,i=t.plugins.get("ImageUtils");n.for("dataDowncast").elementToElement({model:"imageInline",view:function(t,e){return e.writer.createEmptyElement("img")}}),n.for("editingDowncast").elementToStructure({model:"imageInline",view:function(t,n){var o=n.writer;return i.toImageWidget(function(t){return t.createContainerElement("span",{class:"image-inline"},t.createEmptyElement("img"),{isAllowedInsideAttributeElement:!0})}(o),o,e("image widget"))}}),n.for("downcast").add(wv(i,"imageInline","src")).add(wv(i,"imageInline","alt")).add(_v(i,"imageInline")),n.for("upcast").elementToElement({view:Am(t,"imageInline"),model:function(t,e){return e.writer.createElement("imageInline",t.hasAttribute("src")?{src:t.getAttribute("src")}:null)}})}},{key:"_setupClipboardIntegration",value:function(){var t=this.editor,e=t.model,n=t.editing.view,i=t.plugins.get("ImageUtils");this.listenTo(t.plugins.get("ClipboardPipeline"),"inputTransformation",(function(o,r){var a,s=Array.from(r.content.getChildren());if(s.every(i.isBlockImageView)){a=r.targetRanges?t.editing.mapper.toModelRange(r.targetRanges[0]):e.document.selection.getFirstRange();var l=e.createSelection(a);if("imageInline"===xm(e.schema,l)){var c=new Sh(n.document),u=s.map((function(t){return 1===t.childCount?(Array.from(t.getAttributes()).forEach((function(e){return c.setAttribute.apply(c,m(e).concat([i.findViewImgElement(t)]))})),t.getChild(0)):t}));r.content=c.createDocumentFragment(u)}}}))}}],[{key:"requires",get:function(){return[xv,Dm,mp]}},{key:"pluginName",get:function(){return"ImageInlineEditing"}}]),n}(be),zv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Iv,Gp,yv]}},{key:"pluginName",get:function(){return"ImageInline"}}]),n}(be),Mv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor,e=t.plugins.get("ImageCaptionUtils");if(!t.plugins.has(Ev))return this.isEnabled=!1,void(this.value=!1);var n=t.model.document.selection,i=n.getSelectedElement();if(!i){var o=e.getCaptionFromModelSelection(n);return this.isEnabled=!!o,void(this.value=!!o)}this.isEnabled=this.editor.plugins.get("ImageUtils").isImage(i),this.isEnabled?this.value=!!e.getCaptionFromImageModelElement(i):this.value=!1}},{key:"execute",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusCaptionOnShow;this.editor.model.change((function(n){t.value?t._hideImageCaption(n):t._showImageCaption(n,e)}))}},{key:"_showImageCaption",value:function(t,e){var n=this.editor.model.document.selection,i=this.editor.plugins.get("ImageCaptionEditing"),o=n.get
2SelectedElement(),r=i._getSavedCaption(o);this.editor.plugins.get("ImageUtils").isInlineImage(o)&&(this.editor.execute("imageTypeBlock"),o=n.getSelectedElement());var a=r||t.createElement("caption");t.append(a,o),e&&t.setSelection(a,"in")}},{key:"_hideImageCaption",value:function(t){var e,n=this.editor,i=n.model.document.selection,o=n.plugins.get("ImageCaptionEditing"),r=n.plugins.get("ImageCaptionUtils"),a=i.getSelectedElement();a?e=r.getCaptionFromImageModelElement(a):a=(e=r.getCaptionFromModelSelection(i)).parent,o._saveCaption(a,e),t.setSelection(a,"on"),t.remove(e)}}]),n}(_e),Bv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"getCaptionFromImageModelElement",value:function(t){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i&&i.is("element","caption"))return i}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"getCaptionFromModelSelection",value:function(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(t){var e=this.editor.plugins.get("ImageUtils");return"figcaption"==t.name&&e.isBlockImageView(t.parent)?{name:!0}:null}}],[{key:"pluginName",get:function(){return"ImageCaptionUtils"}},{key:"requires",get:function(){return[Dm]}}]),n}(be),Pv=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._savedCaptionsMap=new WeakMap,i}return S(n,[{key:"init",value:function(){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 Mv(this.editor)),this._setupConversion(),this._setupImageTypeCommandsIntegration()}},{key:"_setupConversion",value:function(){var t=this.editor,e=t.editing.view,n=t.plugins.get("ImageUtils"),i=t.plugins.get("ImageCaptionUtils"),o=t.t;t.conversion.for("upcast").elementToElement({view:function(t){return i.matchImageCaptionViewElement(t)},model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:function(t,e){var i=e.writer;return n.isBlockImage(t.parent)?i.createContainerElement("figcaption"):null}}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:function(t,i){var r=i.writer;if(!n.isBlockImage(t.parent))return null;var a=r.createEditableElement("figcaption");return r.setCustomProperty("imageCaption",!0,a),dh({view:e,element:a,text:o("Enter image caption"),keepOnFocus:!0}),Bp(a,r)}})}},{key:"_setupImageTypeCommandsIntegration",value:function(){var t=this,e=this.editor,n=e.plugins.get("ImageUtils"),i=e.plugins.get("ImageCaptionUtils"),o=e.commands.get("imageTypeInline"),r=e.commands.get("imageTypeBlock"),a=function(e){if(e.return){var o=e.return,r=o.oldElement,a=o.newElement;if(r){if(n.isBlockImage(r)){var s=i.getCaptionFromImageModelElement(r);if(s)return void t._saveCaption(a,s)}var l=t._getSavedCaption(r);l&&t._saveCaption(a,l)}}};o&&this.listenTo(o,"execute",a,{priority:"low"}),r&&this.listenTo(r,"execute",a,{priority:"low"})}},{key:"_getSavedCaption",value:function(t){var e=this._savedCaptionsMap.get(t);return e?Ja.fromJSON(e):null}},{key:"_saveCaption",value:function(t,e){this._savedCaptionsMap.set(t,e.toJSON())}}],[{key:"requires",get:function(){return[Dm,Bv]}},{key:"pluginName",get:function(){return"ImageCaptionEditing"}}]),n}(be),Lv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=e.plugins.get("ImageCaptionUtils"),o=e.t;e.ui.componentFactory.add("toggleImageCaption",(function(r){var a=e.commands.get("toggleImageCaption"),s=new Hu(r);return s.set({icon:Rc,tooltip:!0,isToggleable:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),s.bind("label").to(a,"value",(function(t){return o(t?"Toggle caption off":"Toggle caption on")})),t.listenTo(s,"execute",(function(){e.execute("toggleImageCaption",{focusCaptionOnShow:!0});var t=i.getCaptionFromModelSelection(e.model.document.selection);if(t){var o=e.editing.mapper.toViewElement(t);n.scrollToTheSelection(),n.change((function(t){t.addClass("image__c
2aption_highlighted",o)}))}})),s}))}}],[{key:"requires",get:function(){return[Bv]}},{key:"pluginName",get:function(){return"ImageCaptionUI"}}]),n}(be),Nv=r(8662);fr()(Nv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Nv.Z.locals;var Ov=function(){function t(){var e=this;I(this,t);var n=new window.FileReader;this._reader=n,this._data=void 0,this.set("loaded",0),n.onprogress=function(t){e.loaded=t.loaded}}return S(t,[{key:"error",get:function(){return this._reader.error}},{key:"data",get:function(){return this._data}},{key:"read",value:function(t){var e=this,n=this._reader;return this.total=t.size,new Promise((function(i,o){n.onload=function(){var t=n.result;e._data=t,i(t)},n.onerror=function(){o("error")},n.onabort=function(){o("aborted")},e._reader.readAsDataURL(t)}))}},{key:"abort",value:function(){this._reader.abort()}}]),t}();ke(Ov,he);var Fv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this;this.loaders=new Xn,this.loaders.on("add",(function(){return t._updatePendingAction()})),this.loaders.on("remove",(function(){return t._updatePendingAction()})),this._loadersMap=new Map,this._pendingAction=null,this.set("uploaded",0),this.set("uploadTotal",null),this.bind("uploadedPercent").to(this,"uploaded",this,"uploadTotal",(function(t,e){return e?t/e*100:0}))}},{key:"getLoader",value:function(t){return this._loadersMap.get(t)||null}},{key:"createLoader",value:function(t){var e=this;if(!this.createUploadAdapter)return E("filerepository-no-upload-adapter"),null;var n=new Rv(Promise.resolve(t),this.createUploadAdapter);return this.loaders.add(n),this._loadersMap.set(t,n),t instanceof Promise&&n.file.then((function(t){e._loadersMap.set(t,n)})).catch((function(){})),n.on("change:uploaded",(function(){var t,n=0,i=p(e.loaders);try{for(i.s();!(t=i.n()).done;){n+=t.value.uploaded}}catch(t){i.e(t)}finally{i.f()}e.uploaded=n})),n.on("change:uploadTotal",(function(){var t,n=0,i=p(e.loaders);try{for(i.s();!(t=i.n()).done;){var o=t.value;o.uploadTotal&&(n+=o.uploadTotal)}}catch(t){i.e(t)}finally{i.f()}e.uploadTotal=n})),n}},{key:"destroyLoader",value:function(t){var e=this,n=t instanceof Rv?t:this.getLoader(t);n._destroy(),this.loaders.remove(n),this._loadersMap.forEach((function(t,i){t===n&&e._loadersMap.delete(i)}))}},{key:"_updatePendingAction",value:function(){var t=this.editor.plugins.get(Nc);if(this.loaders.length){if(!this._pendingAction){var e=this.editor.t,n=function(t){return"".concat(e("Upload in progress")," ").concat(parseInt(t),"%.")};this._pendingAction=t.add(n(this.uploadedPercent)),this._pendingAction.bind("message").to(this,"uploadedPercent",n)}}else t.remove(this._pendingAction),this._pendingAction=null}}],[{key:"pluginName",get:function(){return"FileRepository"}},{key:"requires",get:function(){return[Nc]}}]),n}(be);ke(Fv,he);var Rv=function(){function t(e,n){I(this,t),this.id=v(),this._filePromiseWrapper=this._createFilePromiseWrapper(e),this._adapter=n(this),this._reader=new Ov,this.set("status","idle"),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})),this.set("uploadResponse",null)}return S(t,[{key:"file",get:function(){var t=this;return this._filePromiseWrapper?this._filePromiseWrapper.promise.then((function(e){return t._filePromiseWrapper?e:null})):Promise.resolve(null)}},{key:"data",get:function(){return this._reader.data}},{key:"read",value:function(){var t=this;if("idle"!=this.status)throw new x("filerepository-read-wrong-status",this);return this.status="reading",this.file.then((function(e){return t._reader.read(e)})).then((function(e){if("reading"!==t.status)throw t.status;return t.status="idle",e})).catch((function(e){if("aborted"===e)throw t.status="aborted","aborted";throw t.status="error",t._reader.error?t._reader.error:e}))}},{key:"upload",value:function(){var t=this;if("idle"!=this.status)throw new x("filerepository-upload-wrong-status",this);return this.status="uploading",this.file.then((function(){return t._adapter.upload()})).then((function(e){return t.uploadResponse=e,t.status="idle",e})).catch((function(e){if("aborted"===t.status)throw"aborted";throw t.status="error",e}))}},{key:"abort",value:function(){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(){this._filePromiseWrapper=void 0,this._reader=void 0,this._adapter=void 0,this.uploadResponse=void 0}},{key:"_createFilePromiseWrapper",value:function(t){var e={};
2return e.promise=new Promise((function(n,i){e.rejecter=i,e.isFulfilled=!1,t.then((function(t){e.isFulfilled=!0,n(t)})).catch((function(t){e.isFulfilled=!0,i(t)}))})),e}}]),t}();ke(Rv,he);var jv=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).buttonView=new Hu(t),i._fileInputView=new Vv(t),i._fileInputView.bind("acceptedType").to(_(i)),i._fileInputView.bind("allowMultipleFiles").to(_(i)),i._fileInputView.delegate("done").to(_(i)),i.setTemplate({tag:"span",attributes:{class:"ck-file-dialog-button"},children:[i.buttonView,i._fileInputView]}),i.buttonView.on("execute",(function(){i._fileInputView.open()})),i}return S(n,[{key:"focus",value:function(){this.buttonView.focus()}}]),n}(mu),Vv=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),(i=e.call(this,t)).set("acceptedType"),i.set("allowMultipleFiles",!1);var o=i.bindTemplate;return i.setTemplate({tag:"input",attributes:{class:["ck-hidden"],type:"file",tabindex:"-1",accept:o.to("acceptedType"),multiple:o.to("allowMultipleFiles")},on:{change:o.to((function(){i.element&&i.element.files&&i.element.files.length&&i.fire("done",i.element.files),i.element.value=""}))}}),i}return S(n,[{key:"open",value:function(){this.element.click()}}]),n}(mu),Hv=function(){function t(e,n){I(this,t),this.loader=e,this.options=n}return S(t,[{key:"upload",value:function(){var t=this;return this.loader.file.then((function(e){return new Promise((function(n,i){t._initRequest(),t._initListeners(n,i,e),t._sendRequest(e)}))}))}},{key:"abort",value:function(){this.xhr&&this.xhr.abort()}},{key:"_initRequest",value:function(){var t=this.xhr=new XMLHttpRequest;t.open("POST",this.options.uploadUrl,!0),t.responseType="json"}},{key:"_initListeners",value:function(t,e,n){var i=this.xhr,o=this.loader,r="Couldn't upload file: ".concat(n.name,".");i.addEventListener("error",(function(){return e(r)})),i.addEventListener("abort",(function(){return e()})),i.addEventListener("load",(function(){var n=i.response;if(!n||n.error)return e(n&&n.error&&n.error.message?n.error.message:r);var o=n.url?{default:n.url}:n.urls;t(c(c({},n),{},{urls:o}))})),i.upload&&i.upload.addEventListener("progress",(function(t){t.lengthComputable&&(o.uploadTotal=t.total,o.uploaded=t.loaded)}))}},{key:"_sendRequest",value:function(t){for(var e=this.options.headers||{},n=this.options.withCredentials||!1,i=0,o=Object.keys(e);i<o.length;i++){var r=o[i];this.xhr.setRequestHeader(r,e[r])}this.xhr.withCredentials=n;var a=new FormData;a.append("upload",t),this.xhr.send(a)}}]),t}();function Uv(t){var e=t.map((function(t){return t.replace("+","\\+")}));return new RegExp("^image\\/(".concat(e.join("|"),")$"))}function Zv(t){return new Promise((function(e,n){var i=t.getAttribute("src");fetch(i).then((function(t){return t.blob()})).then((function(t){var n=qv(t,i),o=n.replace("image/",""),r=new File([t],"image.".concat(o),{type:n});e(r)})).catch((function(t){return t&&"TypeError"===t.name?function(t){return function(t){return new Promise((function(e,n){var i=br.document.createElement("img");i.addEventListener("load",(function(){var t=br.document.createElement("canvas");t.width=i.width,t.height=i.height,t.getContext("2d").drawImage(i,0,0),t.toBlob((function(t){return t?e(t):n()}))})),i.addEventListener("error",(function(){return n()})),i.src=t}))}(t).then((function(e){var n=qv(e,t),i=n.replace("image/","");return new File([e],"image.".concat(i),{type:n})}))}(i).then(e).catch(n):n(t)}))}))}function qv(t,e){return t.type?t.type:e.match(/data:(image\/\w+);base64/)?e.match(/data:(image\/\w+);base64/)[1].toLowerCase():"image/jpeg"}var Wv=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.t,n=function(n){var i=new jv(n),o=t.commands.get("uploadImage"),r=t.config.get("image.upload.types"),a=Uv(r);return i.set({acceptedType:r.map((function(t){return"image/".concat(t)})).join(","),allowMultipleFiles:!0}),i.buttonView.set({label:e("Insert image"),icon:Uc,tooltip:!0}),i.buttonView.bind("isEnabled").to(o),i.on("done",(function(e,n){var i=Array.from(n).filter((function(t){return a.test(t.type)}));i.length&&t.execute("uploadImage",{file:i})}
2)),i};t.ui.componentFactory.add("uploadImage",n),t.ui.componentFactory.add("imageUpload",n)}}],[{key:"pluginName",get:function(){return"ImageUploadUI"}}]),n}(be),Gv=r(5870);fr()(Gv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Gv.Z.locals;var $v=r(9899);fr()($v.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),$v.Z.locals;var Yv=r(9825);fr()(Yv.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Yv.Z.locals;var Kv=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).placeholder="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor;e.plugins.has("ImageBlockEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageBlock",(function(){return t.uploadStatusChange.apply(t,arguments)})),e.plugins.has("ImageInlineEditing")&&e.editing.downcastDispatcher.on("attribute:uploadStatus:imageInline",(function(){return t.uploadStatusChange.apply(t,arguments)}))}},{key:"uploadStatusChange",value:function(t,e,n){var i=this.editor,o=e.item,r=o.getAttribute("uploadId");if(n.consumable.consume(e.item,t.name)){var a=i.plugins.get("ImageUtils"),s=i.plugins.get(Fv),l=r?e.attributeNewValue:null,c=this.placeholder,u=i.editing.mapper.toViewElement(o),d=n.writer;if("reading"==l)return Qv(u,d),void Jv(a,c,u,d);if("uploading"==l){var h=s.loaders.get(r);return Qv(u,d),void(h?(Xv(u,d),function(t,e,n,i){var o=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"),o),n.on("change:uploadedPercent",(function(t,e,n){i.change((function(t){t.setStyle("width",n+"%",o)}))}))}(u,d,h,i.editing.view),function(t,e,n,i){if(i.data){var o=t.findViewImgElement(e);n.setAttribute("src",i.data,o)}}(a,u,d,h)):Jv(a,c,u,d))}"complete"==l&&s.loaders.get(r)&&function(t,e,n){var i=e.createUIElement("div",{class:"ck-image-upload-complete-icon"});e.insert(e.createPositionAt(t,"end"),i),setTimeout((function(){n.change((function(t){return t.remove(t.createRangeOn(i))}))}),3e3)}(u,d,i.editing.view),function(t,e){ek(t,e,"progressBar")}(u,d),Xv(u,d),function(t,e){e.removeClass("ck-appear",t)}(u,d)}}}],[{key:"pluginName",get:function(){return"ImageUploadProgress"}}]),n}(be);function Qv(t,e){t.hasClass("ck-appear")||e.addClass("ck-appear",t)}function Jv(t,e,n,i){n.hasClass("ck-image-upload-placeholder")||i.addClass("ck-image-upload-placeholder",n);var o=t.findViewImgElement(n);o.getAttribute("src")!==e&&i.setAttribute("src",e,o),tk(n,"placeholder")||i.insert(i.createPositionAfter(o),function(t){var e=t.createUIElement("div",{class:"ck-upload-placeholder-loader"});return t.setCustomProperty("placeholder",!0,e),e}(i))}function Xv(t,e){t.hasClass("ck-image-upload-placeholder")&&e.removeClass("ck-image-upload-placeholder",t),ek(t,e,"placeholder")}function tk(t,e){var n,i=p(t.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.getCustomProperty(e))return o}}catch(t){i.e(t)}finally{i.f()}}function ek(t,e,n){var i=tk(t,n);i&&e.remove(e.createRangeOn(i))}var nk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){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(t){var e=this,n=ei(t.file),i=this.editor.model.document.selection,o=this.editor.plugins.get("ImageUtils"),r=Object.fromEntries(i.getAttributes());n.forEach((function(t,n){var a=i.getSelectedElement();if(n&&a&&o.isImage(a)){var s=e.editor.model.createPositionAfter(a);e._uploadImage(t,r,s)}else e._uploadImage(t,r)}))}},{key:"_uploadImage",value:function(t,e,n){var i=this.editor,o=i.plugins.get(Fv).createLoader(t),r=i.plugins.get("ImageUtils");o&&r.insertImage(c(c({},e),{},{uploadId:o.id}),n)}}]),n}(_e),ik=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("image",{upload:{types:["jpeg","png","gif","bmp","webp","tiff"]}}),i._uploadImageElements=new Map,i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document,i=e.conversion,o=e.plugins.get(Fv),r=e.plugins.get("ImageUtils"),a=Uv(e.config.get("image.upload.types")),s=new nk(e);e.commands.add("uploadImage",s),e.commands.add("imageUpload",s),i.for("upcast").attributeToAttribute({view:{name:"img",key:"uploadId"},model:"uploadId"}),this.listenTo(e.editing.view.document,"clipboardInput",(function(t,n){if(i=n.dataTransfer,!Array.from(i.types).includes("text/html")||""===i.getData("text/html")){var i,o=Array.from(n.dataTransfer.files).filter((function(t){return!!t&&a.test(t.type)}));o.length&&(t.stop(),e.model.change((function(t){n.targetRanges&&t.setSelection(n.targetRanges.map((function(t){return e.editing.mapper.toModelRange(t)}))),e.model.enqueueChange((function(){e.execute("uploadImage",{file:o})}))})))}})),this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(t,n){var i=Array.from(e.editing.view.createRangeIn(n.content)).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))}(r,t.item)&&!t.item.getAttribute("uploadProcessed")})).map((function(t){return{promise:Zv(t.item),imageElement:t.item}}));if(i.length){var a,s=new Sh(e.editing.view.document),l=p(i);try{for(l.s();!(a=l.n()).done;){var c=a.value;s.setAttribute("uploadProcessed",!0,c.imageElement);var u=o.createLoader(c.promise);u&&(s.setAttribute("src","",c.imageElement),s.setAttribute("alt","Alternative-"+Math.floor(999999*Math.random()),c.imageElement),s.setAttribute("uploadId",u.id,c.imageElement))}}catch(t){l.e(t)}finally{l.f()}}})),e.editing.view.document.on("dragover",(function(t,e){e.preventDefault()})),n.on("change",(function(){var i,r=n.differ.getChanges({includeChangesInGraveyard:!0}).reverse(),a=new Set,s=p(r);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("insert"==l.type&&"$text"!=l.name){var c,u=l.position.nodeAfter,d="$graveyard"==l.position.root.rootName,h=p(ok(e,u));try{for(h.s();!(c=h.n()).done;){var f=c.value,m=f.getAttribute("uploadId");if(m){var g=o.loaders.get(m);g&&(d?a.has(m)||g.abort():(a.add(m),t._uploadImageElements.set(m,f),"idle"==g.status&&t._readAndUpload(g)))}}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){s.e(t)}finally{s.f()}})),this.on("uploadComplete",(function(e,n){var i=n.imageElement,o=n.data,r=o.urls?o.urls:o;t.editor.model.change((function(e){var n=r.default,o=n.lastIndexOf("/"),a=n.substring(o+1,n.length);e.setAttribute("src",r.default,i),e.setAttribute("alt",a,i),t._parseAndSetSrcsetAttributeOnImage(r,i,e)}))}),{priority:"low"})}},{key:"afterInit",value:function(){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(t){var e=this,n=this.editor,i=n.model,o=n.locale.t,r=n.plugins.get(Fv),a=n.plugins.get(qd),s=n.plugins.get("ImageUtils"),l=this._uploadImageElements;return i.enqueueChange({isUndoable:!1},(function(e){e.setAttribute("uploadStatus","reading",l.get(t.id))}
2)),t.read().then((function(){var e=t.upload(),o=l.get(t.id);if(Co.isSafari){var r=n.editing.mapper.toViewElement(o),a=s.findViewImgElement(r);n.editing.view.once("render",(function(){if(a.parent){var t=n.editing.view.domConverter.mapViewToDom(a.parent);if(t){var e=t.style.display;t.style.display="none",t._ckHack=t.offsetHeight,t.style.display=e}}}))}return i.enqueueChange({isUndoable:!1},(function(t){t.setAttribute("uploadStatus","uploading",o)})),e})).then((function(n){i.enqueueChange({isUndoable:!1},(function(i){var o=l.get(t.id);i.setAttribute("uploadStatus","complete",o),e.fire("uploadComplete",{data:n,imageElement:o})})),c()})).catch((function(e){if("error"!==t.status&&"aborted"!==t.status)throw e;"error"==t.status&&e&&a.showWarning(e,{title:o("Upload failed"),namespace:"upload"}),i.enqueueChange({isUndoable:!1},(function(e){e.remove(l.get(t.id))})),c()}));function c(){i.enqueueChange({isUndoable:!1},(function(e){var n=l.get(t.id);e.removeAttribute("uploadId",n),e.removeAttribute("uploadStatus",n),l.delete(t.id)})),r.destroyLoader(t)}}},{key:"_parseAndSetSrcsetAttributeOnImage",value:function(t,e,n){var i=0,o=Object.keys(t).filter((function(t){var e=parseInt(t,10);if(!isNaN(e))return i=Math.max(i,e),!0})).map((function(e){return"".concat(t[e]," ").concat(e,"w")})).join(", ");""!=o&&n.setAttribute("srcset",{data:o,width:i},e)}}],[{key:"requires",get:function(){return[Fv,qd,mp,Dm]}},{key:"pluginName",get:function(){return"ImageUploadEditing"}}]),n}(be);function ok(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 rk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"ImageUpload"}},{key:"requires",get:function(){return[ik,Wv,Kv]}}]),n}(be),ak=r(5150);fr()(ak.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ak.Z.locals;var sk=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,n);var r=(i=e.call(this,t)).bindTemplate;return i.set("class",o.class||null),i.children=i.createCollection(),o.children&&o.children.forEach((function(t){return i.children.add(t)})),i.set("_role",null),i.set("_ariaLabelledBy",null),o.labelView&&i.set({_role:"group",_ariaLabelledBy:o.labelView.id}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",r.to("class")],role:r.to("_role"),"aria-labelledby":r.to("_ariaLabelledBy")},children:i.children}),i}return S(n)}(mu),lk=r(9292);fr()(lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),lk.Z.locals;var ck=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n);var r=(o=e.call(this,t))._createActionButtons(t),a=r.insertButtonView,s=r.cancelButtonView;if(o.insertButtonView=a,o.cancelButtonView=s,o.dropdownView=o._createDropdownView(t),o.set("imageURLInputValue",""),o.focusTracker=new Pa,o.keystrokes=new La,o._focusables=new fu,o._focusCycler=new Ku({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),o.set("_integrations",new Xn),i)for(var l=function(){var t=f(u[c],2),e=t[0],n=t[1];"insertImageViaUrl"===e&&(n.fieldView.bind("value").to(_(o),"imageURLInputValue",(function(t){return t||""})),n.fieldView.on("input",(function(){o.imageURLInputValue=n.fieldView.element.value.trim()}))),n.name=e,o._integrations.add(n)},c=0,u=Object.entries(i);c<u.length;c++)l();return o.setTemplate({tag:"form",attributes:{class:["ck","ck-image-insert-form"],tabindex:"-1"},children:[].concat(m(o._integrations),[new sk(t,{children:[o.insertButtonView,o.cancelButtonView],class:"ck-image-insert-form__action-row"})])}),o}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),hu({view:this});var e=[].concat(m(this._integrations),[this.insertButtonView,this.cancelButtonView]);e.forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);var i=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",i),this.keystrokes.set("arrowleft",i),this.keystrokes.set("arrowup",i),this.keystrokes.set("arrowdown",i),this.listenTo(e[0].element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"})}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"getIntegration",value:function(t){return this._integrations.find((function(e){return e.name===t}))}},{key:"_createDropdownView",value:function(t){var e=t.t,n=Ad(t,id),i=n.buttonView,o=n.panelView;return i.set({label:e("Insert image"),icon:Uc,tooltip:!0}),o.extendTemplate({attributes:{class:"ck-image-insert__panel"}}),n}},{key:"_createActionButtons",value:function(t){var e=t.t,n=new Hu(t),i=new Hu(t);return n.set({label:e("Insert"),icon:jc,class:"ck-button-save",type:"submit",withText:!0,isEnabled:this.imageURLInputValue}),i.set({label:e("Cancel"),icon:Fc,class:"ck-button-cancel",withText:!0}),n.bind("isEnabled").to(this,"imageURLInputValue",(function(t){return!!t})),n.delegate("execute").to(this,"submit"),i.delegate("execute").to(this,"cancel"),{insertButtonView:n,cancelButtonView:i}}},{key:"focus",value:function(){this._focusCycler.focusFirst()}}]),n}(mu);function uk(t){var e=t.t,n=new Vd(t,Hd);return n.set({label:e("Insert image via URL")}),n.fieldView.placeholder="https://example.com/image.png",n}var dk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=function(e){return t._createDropdownView(e)};e.ui.componentFactory.add("insertImage",n),e.ui.componentFactory.add("imageInsert",n)}},{key:"_createDropdownView",value:function(t){var e=this.editor,n=new ck(t,function(t){var e=t.config.get("image.insert.integrations"),n=t.plugins.get("ImageInsertUI"),i={insertImageViaUrl:uk(t.locale)};if(!e)return i;if(e.find((function(t){return"openCKFinder"===t}))&&t.ui.componentFactory.has("ckfinder")){var o=t.ui.componentFactory.create("ckfinder");o.set({withText:!0,class:"ck-image-insert__ck-finder-button"}),o.delegate("execute").to(n,"cancel"),i.openCKFinder=o}return e.reduce((function(e,n){return i[n]?e[n]=i[n]:t.ui.componentFactory.has(n)&&(e[n]=t.ui.componentFactory.create(n)),e}),{})}(e)),i=e.commands.get("uploadImage"),o=n.dropdownView,r=o.buttonView;return r.actionView=e.ui.componentFactory.create("uploadImage"),r.actionView.extendTemplate({attributes:{class:"ck ck-button ck-splitbutton__action"}}),this._setUpDropdown(o,n,i)}},{key:"_setUpDropdown",value:function(t,e,n){var i=this.editor,o=i.t,r=e.insertButtonView,a=e.getIntegration("insertImageViaUrl"),s=t.panelView,l=this.editor.plugins.get("ImageUtils");function c(){i.editing.view.focus(),t.isOpen=!1}return t.bind("isEnabled").to(n),t.buttonView.once("open",(function(){s.children.add(e)})),t.on("change:isOpen",(function(){var n=i.model.document.selection.getSelectedElement();t.isOpen&&(e.focus(),l.isImage(n)?(e.imageURLInputValue=n.getAttribute("src"),r.label=o("Update"),a.label=o("Update image URL")):(e.imageURLInputValue="",r.label=o("Insert"),a.label=o("Insert image via URL")))}),{priority:"low"}),e.delegate("submit","cancel").to(t),this.delegate("cancel").to(t),t.on("submit",(function(){c(),function(){var t=i.model.document.selection.getSelectedElement();l.isImage(t)?i.model.change((function(n){n.setAttribute("src",e.imageURLInputValue,t),n.setAttribute("alt","Alternative-"+Math.floor(999999*Math.random()),t),n.removeAttribute("srcset",t),n.removeAttribute("sizes",t)})):i.execute("insertImage",{source:e.imageURLInputValue})}()})),t.on("cancel",(function(){c()})),t}}],[{key:"pluginName",get:function(){return"ImageInsertUI"}}]),n}(be),hk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor,e=t.plugins.get("ImageUtils").getClosestSelectedImageElement(t.model.document.selection);this.isEnabled=!!e,e&&e.hasAttribute("width")?this.value={width:e.getAttribute("width"),height:null}:this.value=null}},{key:"execute",value:function(t){var e=this.editor,n=e.model,i=e.plugins.get("ImageUtils").getClosestSelectedImageElement(n.document.selection);this.value={width:t.width,height:null},i&&n.change((function(e){e.setAttribute("width",t.width,i)}))}}]),n}(_e),fk=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("image",{resizeUnit:"%",resizeOptions:[{name:"resizeImage:original",value:null,icon:"original"},{name:"resizeImage:25",value:"25",icon:"small"},{name:"resizeImage:50",value:"50",icon:"medium"},{name:"resizeImage:75",value:"75",icon:"large"}]}),i}return S(n,[{key:"init",value:function(){var t=this.editor,e=new hk(t);this._registerSchema(),this._registerConverters("imageBlock"),this._registerConverters("imageInline"),t.commands.add("resizeImage",e),t.commands.add("imageResize",e)}},{key:"_registerSchema",value:function(){this.editor.plugins.has("ImageBlockEditing")&&this.editor.model.schema.extend("imageBlock",{allowAttributes:"width"}),this.editor.plugins.has("ImageInlineEditing")&&this.editor.model.schema.extend("imageInline",{allowAttributes:"width"})}},{key:"_registerConverters",value:function(t){var e=this.editor;e.conversion.for("downcast").add((function(e){return e.on("attribute:width:".concat(t),(function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.writer,o=n.mapper.toViewElement(e.item);null!==e.attributeNewValue?(i.setStyle("width",e.attributeNewValue,o),i.addClass("image_resized",o)):(i.removeStyle("width",o),i.removeClass("image_resized",o))}}))})),e.conversion.for("upcast").attributeToAttribute({view:{name:"imageBlock"===t?"figure":"img",styles:{width:/.+/}},model:{key:"width",value:function(t){return t.getStyle("width")}}})}}],[{key:"requires",get:function(){return[Dm]}},{key:"pluginName",get:function(){return"ImageResizeEditing"}}]),n}(be),pk={small:au,medium:su,large:ru,original:ou},mk=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._resizeUnit=t.config.get("image.resizeUnit"),i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.config.get("image.resizeOptions"),n=t.commands.get("resizeImage");this.bind("isEnabled").to(n);var i,o=p(e);try{for(o.s();!(i=o.n()).done;){var r=i.value;this._registerImageResizeButton(r)}}catch(t){o.e(t)}finally{o.f()}this._registerImageResizeDropdown(e)}},{key:"_registerImageResizeButton",value:function(t){var e=this,n=this.editor,i=t.name,o=t.value,r=t.icon,a=o?o+this._resizeUnit:null;n.ui.componentFactory.add(i,(function(i){var o=new Hu(i),s=n.commands.get("resizeImage"),l=e._getOptionLabelValue(t,!0);if(!pk[r])throw new x("imageresizebuttons-missing-icon",n,t);return o.set({label:l,icon:pk[r],tooltip:l,isToggleable:!0}),o.bind("isEnabled").to(e),o.bind("isOn").to(s,"value",gk(a)),e.listenTo(o,"execute",(function(){n.execute("resizeImage",{width:a})})),o}))}},{key:"_registerImageResizeDropdown",value:function(t){var e=this,n=this.editor,i=n.t,o=t.find((function(t){return!t.value})),r=function(r){var a=n.commands.get("resizeImage"),s=Ad(r,ed),l=s.buttonView;return l.set({tooltip:i("Resize image"),commandValue:o.value,icon:pk.medium,isToggleable:!0,label:e._getOptionLabelValue(o),withText:!0,class:"ck-resize-image-button"}),l.bind("label").to(a,"value",(function(t){return t&&t.width?t.width:e._getOptionLabelValue(o)})),s.bind("isOn").to(a),s.bind("isEnabled").to(e),Dd(s,e._getResizeDropdownListItemDefinitions(t,a)),s.listView.ariaLabel=i("Image resize list"),e.listenTo(s,"execute",(function(t){n.execute(t.source.commandName,{width:t.source.commandValue}),n.editing.view.focus()})),s};n.ui.componentFactory.add("resizeImage",r),n.ui.componentFactory.add("imageResize",r)}},{key:"_getOptionLabelValue",value:function(t,e){var n=this.editor.t;return t.label?t.label:e?t.value?n("Resize image to %0",t.value+this._resizeUnit):n("Resize image to the original size"):t.value?t.value+this._resizeUnit:n("Original")}},{key:"_getResizeDropdownListItemDefinitions",value:function(t,e){var n=this,i=new Xn;return t.map((function(t){var o=t.value?t.value+n._resizeUnit:null,r={type:"button",model:new Wd({commandName:"resizeImage",commandValue:o,label:n._getOptionLabelValue(t),withText:!0,icon:null})};
2r.model.bind("isOn").to(e,"value",gk(o)),i.add(r)})),i}}],[{key:"requires",get:function(){return[fk]}},{key:"pluginName",get:function(){return"ImageResizeButtons"}}]),n}(be);function gk(t){return function(e){return null===t&&e===t||e&&e.width===t}}var vk=/(image|image-inline)/,kk="image_resized",bk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor.commands.get("resizeImage");this.bind("isEnabled").to(t),this._setupResizerCreator()}},{key:"_setupResizerCreator",value:function(){var t=this,e=this.editor,n=e.editing.view;n.addObserver(Cv),this.listenTo(n.document,"imageLoaded",(function(i,o){if(o.target.matches("figure.image.ck-widget > img,figure.image.ck-widget > picture > img,figure.image.ck-widget > a > img,figure.image.ck-widget > a > picture > img,span.image-inline.ck-widget > img,span.image-inline.ck-widget > picture > img")){var r=e.editing.view.domConverter,a=r.domToView(o.target).findAncestor({classes:vk}),s=t.editor.plugins.get(wm).getResizerByViewElement(a);if(s)s.redraw();else{var l=e.editing.mapper,c=l.toModelElement(a);s=e.plugins.get(wm).attachTo({unit:e.config.get("image.resizeUnit"),modelElement:c,viewElement:a,editor:e,getHandleHost:function(t){return t.querySelector("img")},getResizeHost:function(){return r.viewToDom(l.toViewElement(c.parent))},isCentered:function(){var t=c.getAttribute("imageStyle");return!t||"block"==t||"alignCenter"==t},onCommit:function(t){n.change((function(t){t.removeClass(kk,a)})),e.execute("resizeImage",{width:t})}}),s.on("updateSize",(function(){a.hasClass(kk)||n.change((function(t){t.addClass(kk,a)}))})),s.bind("isEnabled").to(t)}}}))}}],[{key:"requires",get:function(){return[wm]}},{key:"pluginName",get:function(){return"ImageResizeHandles"}}]),n}(be),yk=r(1043);fr()(yk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yk.Z.locals;var _k=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._defaultStyles={imageBlock:!1,imageInline:!1},o._styles=new Map(i.map((function(t){if(t.isDefault){var e,n=p(t.modelElements);try{for(n.s();!(e=n.n()).done;){var i=e.value;o._defaultStyles[i]=t.name}}catch(t){n.e(t)}finally{n.f()}}return[t.name,t]}))),o}return S(n,[{key:"refresh",value:function(){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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor,i=n.model,o=n.plugins.get("ImageUtils");i.change((function(n){var r=e.value,a=o.getClosestSelectedImageElement(i.document.selection);r&&t.shouldConvertImageType(r,a)&&(t.editor.execute(o.isBlockImage(a)?"imageTypeInline":"imageTypeBlock"),a=o.getClosestSelectedImageElement(i.document.selection)),!r||t._styles.get(r).isDefault?n.removeAttribute("imageStyle",a):n.setAttribute("imageStyle",r,a)}))}},{key:"shouldConvertImageType",value:function(t,e){return!this._styles.get(t).modelElements.includes(e.name)}}]),n}(_e),wk=eu,Ck=Qc,Ak=Xc,xk=Jc,Dk=nu,Ek=iu,Sk={get inline(){return{name:"inline",title:"In line",icon:wk,modelElements:["imageInline"],isDefault:!0}},get alignLeft(){return{name:"alignLeft",title:"Left aligned image",icon:Ck,modelElements:["imageBlock","imageInline"],className:"image-style-align-left"}},get alignBlockLeft(){return{name:"alignBlockLeft",title:"Left aligned image",icon:Dk,modelElements:["imageBlock"],className:"image-style-block-align-left"}},get alignCenter(){return{name:"alignCenter",title:"Centered image",icon:xk,modelElements:["imageBlock"],className:"image-style-align-center"}},get alignRight(){return{name:"alignRight",title:"Right aligned image",icon:Ak,modelElements:["imageBlock","imageInline"],className:"image-style-align-right"}},get alignBlockRight(){return{name:"alignBlockRight",title:"Right aligned image",icon:Ek,modelElements:["imageBlock"],className:"image-style-block-align-right"}},get block(){return{name:"block",title:"Centered image",icon:xk,modelElements:["imageBlock"],isDefault:!0}},get side(){return{name:"side",title:"Side image",icon:Ak,modelElements:["imageBlock"],className:"image-style-side"}}}
2,Tk={full:tu,left:Dk,right:Ek,center:xk,inlineLeft:Ck,inlineRight:Ak,inline:wk},Ik=[{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 zk(t){E("image-style-configuration-definition-invalid",t)}var Mk={normalizeStyles:function(t){return(t.configuredStyles.options||[]).map((function(t){return function(t){return t="string"==typeof t?Sk[t]?c({},Sk[t]):{name:t}:function(t,e){var n=c({},e);for(var i in t)Object.prototype.hasOwnProperty.call(e,i)||(n[i]=t[i]);return n}(Sk[t.name],t),"string"==typeof t.icon&&(t.icon=Tk[t.icon]||t.icon),t}(t)})).filter((function(e){return function(t,e){var n=e.isBlockPluginLoaded,i=e.isInlinePluginLoaded,o=t.modelElements,r=t.name;if(!(o&&o.length&&r))return zk({style:t}),!1;var a=[n?"imageBlock":null,i?"imageInline":null];return!!o.some((function(t){return a.includes(t)}))||(E("image-style-missing-dependency",{style:t,missingPlugins:o.map((function(t){return"imageBlock"===t?"ImageBlockEditing":"ImageInlineEditing"}))}),!1)}(e,t)}))},getDefaultStylesConfiguration:function(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(t){return t.has("ImageBlockEditing")&&t.has("ImageInlineEditing")?[].concat(Ik):[]},warnInvalidStyle:zk,DEFAULT_OPTIONS:Sk,DEFAULT_ICONS:Tk,DEFAULT_DROPDOWN_DEFINITIONS:Ik};function Bk(t,e){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.name===t)return o}}catch(t){i.e(t)}finally{i.f()}}var Pk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=Mk.normalizeStyles,e=Mk.getDefaultStylesConfiguration,n=this.editor,i=n.plugins.has("ImageBlockEditing"),o=n.plugins.has("ImageInlineEditing");n.config.define("image.styles",e(i,o)),this.normalizedStyles=t({configuredStyles:n.config.get("image.styles"),isBlockPluginLoaded:i,isInlinePluginLoaded:o}),this._setupConversion(i,o),this._setupPostFixer(),n.commands.add("imageStyle",new _k(n,this.normalizedStyles))}},{key:"_setupConversion",value:function(t,e){var n,i=this.editor,o=i.model.schema,r=(n=this.normalizedStyles,function(t,e,i){if(i.consumable.consume(e.item,t.name)){var o=Bk(e.attributeNewValue,n),r=Bk(e.attributeOldValue,n),a=i.mapper.toViewElement(e.item),s=i.writer;r&&s.removeClass(r.className,a),o&&s.addClass(o.className,a)}}),a=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,i){if(n.modelRange){var o=n.viewItem,r=Ba(n.modelRange.getItems());if(r&&i.schema.checkAttribute(r,"imageStyle")){var a,s=p(e[r.name]);try{for(s.s();!(a=s.n()).done;){var l=a.value;i.consumable.consume(o,{classes:l.className})&&i.writer.setAttribute("imageStyle",l.name,r)}}catch(t){s.e(t)}finally{s.f()}}}}}(this.normalizedStyles);i.editing.downcastDispatcher.on("attribute:imageStyle",r),i.data.downcastDispatcher.on("attribute:imageStyle",r),t&&(o.extend("imageBlock",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:figure",a,{priority:"low"})),e&&(o.extend("imageInline",{allowAttributes:"imageStyle"}),i.data.upcastDispatcher.on("element:img",a,{priority:"low"}))}},{key:"_setupPostFixer",value:function(){var t=this.editor,e=t.model.document,n=t.plugins.get(Dm),i=new Map(this.normalizedStyles.map((function(t){return[t.name,t]})));e.registerPostFixer((function(t){var o,r=!1,a=p(e.differ.getChanges());try{for(a.s();!(o=a.n()).done;){var s=o.value;if("insert"==s.type||"attribute"==s.type&&"imageStyle"==s.attributeKey){var l="insert"==s.type?s.position.nodeAfter:s.range.start.nodeAfter;if(l&&l.is("element","paragraph")&&l.childCount>0&&(l=l.getChild(0)),!n.isImage(l))continue;var c=l.getAttribute("imageStyle");if(!c)continue;var u=i.get(c);u&&u.modelElements.includes(l.name)||(t.removeAttribute("imageStyle",l),r=!0)}}}catch(t){a.e(t)}finally{a.f()}return r}))}}],[{key:"pluginName",get:function(){return"ImageStyleEditing"}},{key:"requires",get:function(){return[Dm]}}]),n}(be),Lk=r(4622);fr()(Lk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Lk.Z.locals;var Nk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"localizedDefaultStylesTitles",get:function(){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(){var t,e=this.editor.plugins,n=this.editor.config.get("image.toolbar")||[],i=Ok(e.get("ImageStyleEditing").normalizedStyles,this.localizedDefaultStylesTitles),o=p(i);try{for(o.s();!(t=o.n()).done;){var r=t.value;this._createButton(r)}}catch(t){o.e(t)}finally{o.f()}var a,s=p(Ok([].concat(m(n.filter(Z)),m(Mk.getDefaultDropdownDefinitions(e))),this.localizedDefaultStylesTitles));try{for(s.s();!(a=s.n()).done;){var l=a.value;this._createDropdown(l,i)}}catch(t){s.e(t)}finally{s.f()}}},{key:"_createDropdown",value:function(t,e){var n=this.editor.ui.componentFactory;n.add(t.name,(function(i){var o,r=t.defaultItem,a=t.items,s=t.title,l=a.filter((function(t){return e.find((function(e){return Fk(e.name)===t}))})).map((function(t){var e=n.create(t);return t===r&&(o=e),e}));
2a.length!==l.length&&Mk.warnInvalidStyle({dropdown:t});var c=Ad(i,id),u=c.buttonView;return xd(c,l),u.set({label:Rk(s,o.label),class:null,tooltip:!0}),u.bind("icon").toMany(l,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex(_t);return i<0?o.icon:l[i].icon})),u.bind("label").toMany(l,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var i=e.findIndex(_t);return Rk(s,i<0?o.label:l[i].label)})),u.bind("isOn").toMany(l,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(_t)})),u.bind("class").toMany(l,"isOn",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(_t)?"ck-splitbutton_flatten":null})),u.on("execute",(function(){l.some((function(t){return t.isOn}))?c.isOpen=!c.isOpen:o.fire("execute")})),c.bind("isEnabled").toMany(l,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some(_t)})),c}))}},{key:"_createButton",value:function(t){var e=this,n=t.name;this.editor.ui.componentFactory.add(Fk(n),(function(i){var o=e.editor.commands.get("imageStyle"),r=new Hu(i);return r.set({label:t.title,icon:t.icon,tooltip:!0,isToggleable:!0}),r.bind("isEnabled").to(o,"isEnabled"),r.bind("isOn").to(o,"value",(function(t){return t===n})),r.on("execute",e._executeCommand.bind(e,n)),r}))}},{key:"_executeCommand",value:function(t){this.editor.execute("imageStyle",{value:t}),this.editor.editing.view.focus()}}],[{key:"requires",get:function(){return[Pk]}},{key:"pluginName",get:function(){return"ImageStyleUI"}}]),n}(be);function Ok(t,e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=n.value;e[o.title]&&(o.title=e[o.title])}}catch(t){i.e(t)}finally{i.f()}return t}function Fk(t){return"imageStyle:".concat(t)}function Rk(t,e){return(t?t+": ":"")+e}var jk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.commands.add("indent",new Ce(t)),t.commands.add("outdent",new Ce(t))}}],[{key:"pluginName",get:function(){return"IndentEditing"}}]),n}(be),Vk='<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>',Hk='<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>',Uk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.locale,n=t.t,i="ltr"==e.uiLanguageDirection?Vk:Hk,o="ltr"==e.uiLanguageDirection?Hk:Vk;this._defineButton("indent",n("Increase indent"),i),this._defineButton("outdent",n("Decrease indent"),o)}},{key:"_defineButton",value:function(t,e,n){var i=this,o=this.editor;o.ui.componentFactory.add(t,(function(r){var a=o.commands.get(t),s=new Hu(r);return s.set({label:e,icon:n,tooltip:!0}),s.bind("isOn","isEnabled").to(a,"value","isEnabled"),i.listenTo(s,"execute",(function(){o.execute(t),o.editing.view.focus()})),s}))}}],[{key:"pluginName",get:function(){return"IndentUI"}}]),n}(be),Zk="italic",qk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:Zk}),t.model.schema.setAttributeProperties(Zk,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:Zk,view:"i",upcastAlso:["em",{styles:{"font-style":"italic"}}]}),t.commands.add(Zk,new fg(t,Zk)),t.keystrokes.set("CTRL+I",Zk)}}],[{key:"pluginName",get:function(){return"ItalicEditing"}}]),n}(be),Wk="italic",Gk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Wk,(function(i){var o=e.commands.get(Wk),r=new Hu(i);return r.set({label:n("Italic"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2<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}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute(Wk),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"ItalicUI"}}]),n}(be),$k=function(){function t(){I(this,t),this._definitions=new Set}return S(t,[{key:"length",get:function(){return this._definitions.size}},{key:"add",value:function(t){var e=this;Array.isArray(t)?t.forEach((function(t){return e._definitions.add(t)})):this._definitions.add(t)}},{key:"getDispatcher",value:function(){var t=this;return function(e){e.on("attribute:linkHref",(function(e,n,i){if(i.consumable.test(n.item,"attribute:linkHref")){var o,r=i.writer,a=r.document.selection,s=p(t._definitions);try{for(s.s();!(o=s.n()).done;){var l=o.value,c=r.createAttributeElement("a",l.attributes,{priority:5});for(var u in l.classes&&r.addClass(l.classes,c),l.styles)r.setStyle(u,l.styles[u],c);r.setCustomProperty("link",!0,c),l.callback(n.attributeNewValue)?n.item.is("selection")?r.wrap(a.getFirstRange(),c):r.wrap(i.mapper.toViewRange(n.range),c):r.unwrap(i.mapper.toViewRange(n.range),c)}}catch(t){s.e(t)}finally{s.f()}}}),{priority:"high"})}}},{key:"getDispatcherForLinkedImage",value:function(){var t=this;return function(e){e.on("attribute:linkHref:imageBlock",(function(e,n,i){var o,r=i.writer,a=i.mapper.toViewElement(n.item),s=Array.from(a.getChildren()).find((function(t){return"a"===t.name})),l=p(t._definitions);try{for(l.s();!(o=l.n()).done;){var c=o.value,u=hi(c.attributes);if(c.callback(n.attributeNewValue)){var d,h=p(u);try{for(h.s();!(d=h.n()).done;){var m=f(d.value,2),g=m[0],v=m[1];"class"===g?r.addClass(v,s):r.setAttribute(g,v,s)}}catch(t){h.e(t)}finally{h.f()}for(var k in c.classes&&r.addClass(c.classes,s),c.styles)r.setStyle(k,c.styles[k],s)}else{var b,y=p(u);try{for(y.s();!(b=y.n()).done;){var _=f(b.value,2),w=_[0],C=_[1];"class"===w?r.removeClass(C,s):r.removeAttribute(w,s)}}catch(t){y.e(t)}finally{y.f()}for(var A in c.classes&&r.removeClass(c.classes,s),c.styles)r.removeStyle(A,s)}}}catch(t){l.e(t)}finally{l.f()}}))}}}]),t}(),Yk=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).manualDecorators=new Xn,i.automaticDecorators=new $k,i}return S(n,[{key:"restoreManualDecoratorStates",value:function(){var t,e=p(this.manualDecorators);try{for(e.s();!(t=e.n()).done;){var n=t.value;n.value=this._getDecoratorStateFromModel(n.id)}}catch(t){e.e(t)}finally{e.f()}}},{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement()||Ba(e.getSelectedBlocks());Km(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 i,o=p(this.manualDecorators);try{for(o.s();!(i=o.n()).done;){var r=i.value;r.value=this._getDecoratorStateFromModel(r.id)}}catch(t){o.e(t)}finally{o.f()}}},{key:"execute",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,o=i.document.selection,r=[],a=[];for(var s in n)n[s]?r.push(s):a.push(s);i.change((function(n){if(o.isCollapsed){var s=o.getFirstPosition();if(o.hasAttribute("linkHref")){var l=rp(s,"linkHref",o.getAttribute("linkHref"),i);n.setAttribute("linkHref",t,l),r.forEach((function(t){n.setAttribute(t,!0,l)})),a.forEach((function(t){n.removeAttribute(t,l)})),n.setSelection(n.createPositionAfter(l.end.nodeBefore))}else if(""!==t){var c=hi(o.getAttributes());c.set("linkHref",t),r.forEach((function(t){c.set(t,!0)}));var u=i.insertContent(n.createText(t,c),s).end;n.setSelection(u)}["linkHref"].concat(r,a).forEach((function(t){n.removeSelectionAttribute(t)}))}else{var d,h=i.schema.getValidRanges(o.getRanges(),"linkHref"),f=[],m=p(o.getSelectedBlocks());try{for(m.s();!(d=m.n()).done;){var g=d.value;i.schema.checkAttribute(g,"linkHref")&&f.push(n.createRangeOn(g))}}catch(t){m.e(t)}finally{m.f()}var v,k=f.slice(),b=p(h);try{for(b.s();!(v=b.n()).done;){var y=v.value;e._isRangeToUpdate(y,f)&&k.push(y)}}catch(t){b.e(t)}finally{b.f()}var _,w=p(k);try{var C=function(){var e=_.value;n.setAttribute("linkHref",t,e),r.forEach((function(t){n.setAttribute(t,!0,e)})),a.forEach((function(t){n.removeAttribute(t,e)}))};for(w.s();!(_=w.n()).done;)C()}catch(t){w.e(t)}finally{w.f()}}}))}},{key:"_getDecoratorStateFromModel",value:function(t){var e=this.editor.model,n=e.document.selection,i=n.getSelectedElement();return Km(i,e.schema)?i.getAttribute(t):n.getAttribute(t)}},{key:"_isRangeToUpdate",value:function(t,e){var n,i=p(e);try{for(i.s();!(n=i.n()).done;){if(n.value.containsRange(t))return!1}}catch(t){i.e(t)}finally{i.f()}return!0}}]),n}(_e),Kk=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=e.getSelectedElement();Km(n,t.schema)?this.isEnabled=t.schema.checkAttribute(n,"linkHref"):this.isEnabled=t.schema.checkAttributeInSelection(e,"linkHref")}},{key:"execute",value:function(){var t=this.editor,e=this.editor.model,n=e.document.selection,i=t.commands.get("link");e.change((function(t){var o,r=p(n.isCollapsed?[rp(n.getFirstPosition(),"linkHref",n.getAttribute("linkHref"),e)]:e.schema.getValidRanges(n.getRanges(),"linkHref"));try{for(r.s();!(o=r.n()).done;){var a=o.value;if(t.removeAttribute("linkHref",a),i){var s,l=p(i.manualDecorators);try{for(l.s();!(s=l.n()).done;){var c=s.value;t.removeAttribute(c.id,a)}}catch(t){l.e(t)}finally{l.f()}}}}catch(t){r.e(t)}finally{r.f()}}))}}]),n}(_e),Qk=function(){function t(e){var n=e.id,i=e.label,o=e.attributes,r=e.classes,a=e.styles,s=e.defaultValue;I(this,t),this.id=n,this.set("value"),this.defaultValue=s,this.label=i,this.attributes=o,this.classes=r,this.styles=a}
2return S(t,[{key:"_createPattern",value:function(){return{attributes:this.attributes,classes:this.classes,styles:this.styles}}}]),t}();ke(Qk,he);var Jk=r(399);fr()(Jk.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Jk.Z.locals;var Xk="automatic",tb=/^(https?:)?\/\//,eb=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("link",{addTargetToExternalLinks:!1}),i}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:"linkHref"}),t.conversion.for("dataDowncast").attributeToElement({model:"linkHref",view:$m}),t.conversion.for("editingDowncast").attributeToElement({model:"linkHref",view:function(t,e){return $m(Ym(t),e)}}),t.conversion.for("upcast").elementToAttribute({view:{name:"a",attributes:{href:!0}},model:{key:"linkHref",value:function(t){return t.getAttribute("href")}}}),t.commands.add("link",new Yk(t)),t.commands.add("unlink",new Kk(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 t.label&&n[t.label]&&(t.label=n[t.label]),t})),e}(t.t,function(t){var e=[];if(t)for(var n=0,i=Object.entries(t);n<i.length;n++){var o=f(i[n],2),r=o[0],a=o[1],s=Object.assign({},a,{id:"link".concat(Hm(r))});e.push(s)}return e}(t.config.get("link.decorators")));this._enableAutomaticDecorators(e.filter((function(t){return t.mode===Xk}))),this._enableManualDecorators(e.filter((function(t){return"manual"===t.mode}))),t.plugins.get(qf).registerAttribute("linkHref"),function(t,e,n,i){var o=t.editing.view,r=new Set;o.document.registerPostFixer((function(n){var o=t.model.document.selection,a=!1;if(o.hasAttribute(e)){var s,l=rp(o.getFirstPosition(),e,o.getAttribute(e),t.model),c=p(t.editing.mapper.toViewRange(l).getItems());try{for(c.s();!(s=c.n()).done;){var u=s.value;u.is("element","a")&&!u.hasClass(i)&&(n.addClass(i,u),r.add(u),a=!0)}}catch(t){c.e(t)}finally{c.f()}}return a})),t.conversion.for("editingDowncast").add((function(t){function e(){o.change((function(t){var e,n=p(r.values());try{for(n.s();!(e=n.n()).done;){var o=e.value;t.removeClass(i,o),r.delete(o)}}catch(t){n.e(t)}finally{n.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",0,"ck-link_selected"),this._enableLinkOpen(),this._enableInsertContentSelectionAttributesFixer(),this._enableClickingAfterLink(),this._enableTypingOverLink(),this._handleDeleteContentAfterLink()}},{key:"_enableAutomaticDecorators",value:function(t){var e=this.editor,n=e.commands.get("link").automaticDecorators;e.config.get("link.addTargetToExternalLinks")&&n.add({id:"linkIsExternal",mode:Xk,callback:function(t){return tb.test(t)},attributes:{target:"_blank",rel:"noopener noreferrer"}}),n.add(t),n.length&&e.conversion.for("downcast").add(n.getDispatcher())}},{key:"_enableManualDecorators",value:function(t){if(t.length){var e=this.editor,n=e.commands.get("link").manualDecorators;t.forEach((function(t){e.model.schema.extend("$text",{allowAttributes:t.id}),t=new Qk(t),n.add(t),e.conversion.for("downcast").attributeToElement({model:t.id,view:function(e,n){var i=n.writer;if(e){var o=i.createAttributeElement("a",t.attributes,{priority:5});for(var r in t.classes&&i.addClass(t.classes,o),t.styles)i.setStyle(r,t.styles[r],o);return i.setCustomProperty("link",!0,o),o}}}),e.conversion.for("upcast").elementToAttribute({view:c({name:"a"},t._createPattern()),model:{key:t.id}})}))}}},{key:"_enableLinkOpen",value:function(){var t=this.editor,e=t.editing.view.document,n=t.model.document;this.listenTo(e,"click",(function(t,e){if(Co.isMac?e.domEvent.metaKey:e.domEvent.ctrlKey){var n=e.domTarget;if("a"!=n.tagName.toLowerCase()&&(n=n.closest("a")),n){var i=n.getAttribute("href");i&&(t.stop(),e.preventDefault(),Jm(i))}}}),{context:"$capture"}),this.listenTo(e,"enter",(function(t,e){var i=n.selection,o=i.getSelectedElement(),r=o?o.getAttribute("linkHref"):i.getAttribute("linkHref");
2r&&e.domEvent.altKey&&(t.stop(),Jm(r))}),{context:"a"})}},{key:"_enableInsertContentSelectionAttributesFixer",value:function(){var t=this.editor.model,e=t.document.selection;this.listenTo(t,"insertContent",(function(){var n=e.anchor.nodeBefore,i=e.anchor.nodeAfter;e.hasAttribute("linkHref")&&n&&n.hasAttribute("linkHref")&&(i&&i.hasAttribute("linkHref")||t.change((function(e){nb(e,ob(t.schema))})))}),{priority:"low"})}},{key:"_enableClickingAfterLink",value:function(){var t=this.editor,e=t.model;t.editing.view.addObserver(Eh);var n=!1;this.listenTo(t.editing.view.document,"mousedown",(function(){n=!0})),this.listenTo(t.editing.view.document,"selectionChange",(function(){if(n){n=!1;var t=e.document.selection;if(t.isCollapsed&&t.hasAttribute("linkHref")){var i=t.getFirstPosition(),o=rp(i,"linkHref",t.getAttribute("linkHref"),e);(i.isTouching(o.start)||i.isTouching(o.end))&&e.change((function(t){nb(t,ob(e.schema))}))}}}))}},{key:"_enableTypingOverLink",value:function(){var t,e,n=this.editor,i=n.editing.view;this.listenTo(i.document,"delete",(function(){e=!0}),{priority:"high"}),this.listenTo(n.model,"deleteContent",(function(){var i=n.model.document.selection;i.isCollapsed||(e?e=!1:ib(n)&&function(t){var e=t.document.selection,n=e.getFirstPosition(),i=e.getLastPosition(),o=n.nodeAfter;return!!o&&(!!o.is("$text")&&(!!o.hasAttribute("linkHref")&&(o===(i.textNode||i.nodeBefore)||rp(n,"linkHref",o.getAttribute("linkHref"),t).containsRange(t.createRange(n,i),!0))))}(n.model)&&(t=i.getAttributes()))}),{priority:"high"}),this.listenTo(n.model,"insertContent",(function(i,o){var r=f(o,1)[0];e=!1,ib(n)&&t&&(n.model.change((function(e){var n,i=p(t);try{for(i.s();!(n=i.n()).done;){var o=f(n.value,2),a=o[0],s=o[1];e.setAttribute(a,s,r)}}catch(t){i.e(t)}finally{i.f()}})),t=null)}),{priority:"high"})}},{key:"_handleDeleteContentAfterLink",value:function(){var t=this.editor,e=t.model,n=e.document.selection,i=t.editing.view,o=!1,r=!1;this.listenTo(i.document,"delete",(function(t,e){r=e.domEvent.keyCode===Eo.backspace}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){o=!1;var t=n.getFirstPosition(),i=n.getAttribute("linkHref");if(i){var r=rp(t,"linkHref",i,e);o=r.containsPosition(t)||r.end.isEqual(t)}}),{priority:"high"}),this.listenTo(e,"deleteContent",(function(){r&&(r=!1,o||t.model.enqueueChange((function(t){nb(t,ob(e.schema))})))}),{priority:"low"})}}],[{key:"pluginName",get:function(){return"LinkEditing"}},{key:"requires",get:function(){return[qf,Ff,mp]}}]),n}(be);function nb(t,e){t.removeSelectionAttribute("linkHref");var n,i=p(e);try{for(i.s();!(n=i.n()).done;){var o=n.value;t.removeSelectionAttribute(o)}}catch(t){i.e(t)}finally{i.f()}}function ib(t){return t.model.change((function(t){return t.batch})).isTyping}function ob(t){return t.getDefinition("$text").allowAttributes.filter((function(t){return t.startsWith("link")}))}var rb=r(4827);fr()(rb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),rb.Z.locals;var ab=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),o=e.call(this,t);var r=t.t;o.focusTracker=new Pa,o.keystrokes=new La,o.urlInputView=o._createUrlInput(),o.saveButtonView=o._createButton(r("Save"),jc,"ck-button-save"),o.saveButtonView.type="submit",o.cancelButtonView=o._createButton(r("Cancel"),Fc,"ck-button-cancel","cancel"),o._manualDecoratorSwitches=o._createManualDecoratorSwitches(i),o.children=o._createFormChildren(i.manualDecorators),o._focusables=new fu,o._focusCycler=new Ku({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}});var a=["ck","ck-link-form","ck-responsive-form"];return i.manualDecorators.length&&a.push("ck-link-form_layout-vertical","ck-vertical-form"),o.setTemplate({tag:"form",attributes:{class:a,tabindex:"-1"},children:o.children}),du(_(o)),o}return S(n,[{key:"getDecoratorSwitchesState",value:function(){return Array.from(this._manualDecoratorSwitches).reduce((function(t,e){return t[e.name]=e.isOn,t}),{})}},{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),hu({view:this}),[this.urlInputView].concat(m(this._manualDecoratorSwitches),[this.saveButtonView,this.cancelButtonView]).forEac
2h((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createUrlInput",value:function(){var t=this.locale.t,e=new Vd(this.locale,Hd);return e.label=t("Link URL"),e}},{key:"_createButton",value:function(t,e,n,i){var o=new Hu(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}},{key:"_createManualDecoratorSwitches",value:function(t){var e,n=this,i=this.createCollection(),o=p(t.manualDecorators);try{var r=function(){var o=e.value,r=new Zu(n.locale);r.set({name:o.id,label:o.label,withText:!0}),r.bind("isOn").toMany([o,t],"value",(function(t,e){return void 0===e&&void 0===t?o.defaultValue:t})),r.on("execute",(function(){o.set("value",!r.isOn)})),i.add(r)};for(o.s();!(e=o.n()).done;)r()}catch(t){o.e(t)}finally{o.f()}return i}},{key:"_createFormChildren",value:function(t){var e=this.createCollection();if(e.add(this.urlInputView),t.length){var n=new mu;n.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(n)}return e.add(this.saveButtonView),e.add(this.cancelButtonView),e}}]),n}(mu),sb=r(9465);fr()(sb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),sb.Z.locals;var lb=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n),i=e.call(this,t);var o=t.t;return i.focusTracker=new Pa,i.keystrokes=new La,i.previewButtonView=i._createPreviewButton(),i.unlinkButtonView=i._createButton(o("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"),i.editButtonView=i._createButton(o("Edit link"),lu,"edit"),i.set("href"),i._focusables=new fu,i._focusCycler=new Ku({focusables:i._focusables,focusTracker:i.focusTracker,keystrokeHandler:i.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-link-actions","ck-responsive-form"],tabindex:"-1"},children:[i.previewButtonView,i.editButtonView,i.unlinkButtonView]}),i}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),[this.previewButtonView,this.editButtonView,this.unlinkButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createButton",value:function(t,e,n){var i=new Hu(this.locale);return i.set({label:t,icon:e,tooltip:!0}),i.delegate("execute").to(this,n),i}},{key:"_createPreviewButton",value:function(){var t=new Hu(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&&Ym(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}}]),n}(mu),cb='<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2<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>',ub="link-ui",db=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.editing.view.addObserver(Dh),this.actionsView=this._createActionsView(),this.formView=this._createFormView(),this._balloon=t.plugins.get(nh),this._createToolbarLinkButton(),this._enableUserBalloonInteractions(),t.conversion.for("editingDowncast").markerToHighlight({model:ub,view:{classes:["ck-fake-link-selection"]}}),t.conversion.for("editingDowncast").markerToElement({model:ub,view:{name:"span",classes:["ck-fake-link-selection","ck-fake-link-selection_collapsed"]}})}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.formView.destroy()}},{key:"_createActionsView",value:function(){var t=this,e=this.editor,n=new lb(e.locale),i=e.commands.get("link"),o=e.commands.get("unlink");return n.bind("href").to(i,"value"),n.editButtonView.bind("isEnabled").to(i),n.unlinkButtonView.bind("isEnabled").to(o),this.listenTo(n,"edit",(function(){t._addFormView()})),this.listenTo(n,"unlink",(function(){e.execute("unlink"),t._hideUI()})),n.keystrokes.set("Esc",(function(e,n){t._hideUI(),n()})),n.keystrokes.set(Gm,(function(e,n){t._addFormView(),n()})),n}},{key:"_createFormView",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),i=e.config.get("link.defaultProtocol"),o=new ab(e.locale,n);return o.urlInputView.fieldView.bind("value").to(n,"value"),o.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t})),o.saveButtonView.bind("isEnabled").to(n),this.listenTo(o,"submit",(function(){var n=Qm(o.urlInputView.fieldView.element.value,i);e.execute("link",n,o.getDecoratorSwitchesState()),t._closeFormView()})),this.listenTo(o,"cancel",(function(){t._closeFormView()})),o.keystrokes.set("Esc",(function(e,n){t._closeFormView(),n()})),o}},{key:"_createToolbarLinkButton",value:function(){var t=this,e=this.editor,n=e.commands.get("link"),i=e.t;e.keystrokes.set(Gm,(function(e,i){i(),n.isEnabled&&t._showUI(!0)})),e.ui.componentFactory.add("link",(function(e){var o=new Hu(e);return o.isEnabled=!0,o.label=i("Link"),o.icon=cb,o.keystroke=Gm,o.tooltip=!0,o.isToggleable=!0,o.bind("isEnabled").to(n,"isEnabled"),o.bind("isOn").to(n,"value",(function(t){return!!t})),t.listenTo(o,"execute",(function(){return t._showUI(!0)})),o}))}},{key:"_enableUserBalloonInteractions",value:function(){var t=this,e=this.editor.editing.view.document;this.listenTo(e,"click",(function(){t._getSelectedLinkElement()&&t._showUI()})),this.editor.keystrokes.set("Tab",(function(e,n){t._areActionsVisible&&!t.actionsView.focusTracker.isFocused&&(t.actionsView.focus(),n())}),{priority:"high"}),this.editor.keystrokes.set("Esc",(function(e,n){t._isUIVisible&&(t._hideUI(),n())})),uu({emitter:this.formView,activator:function(){return t._isUIInPanel},contextElements:[this._balloon.view.element],callback:function(){return t._hideUI()}})}},{key:"_addActionsView",value:function(){this._areActionsInPanel||this._balloon.add({view:this.actionsView,position:this._getBalloonPositionData()})}},{key:"_addFormView",value:function(){if(!this._isFormInPanel){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(){var t=this.editor.commands.get("link");t.restoreManualDecoratorStates(),void 0!==t.value?this._removeFormView():this._hideUI()}},{key:"_removeFormView",value:function(){this._isFormInPanel&&(this.formView.saveButtonView.focus(),this._balloon.remove(this.formView),this.editor.editing.view.focus(),this._hideFakeVisualSelection())}},{key:"_showUI",value:function(){var t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];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._startUpd
2atingUI()}},{key:"_hideUI",value:function(){if(this._isUIInPanel){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(){var t=this,e=this.editor,n=e.editing.view.document,i=this._getSelectedLinkElement(),o=a(),r=function(){var e=t._getSelectedLinkElement(),n=a();i&&!e||!i&&n!==o?t._hideUI():t._isUIVisible&&t._balloon.updatePosition(t._getBalloonPositionData()),i=e,o=n};function a(){return n.selection.focus.getAncestors().reverse().find((function(t){return t.is("element")}))}this.listenTo(e.ui,"update",r),this.listenTo(this._balloon,"change:visibleView",r)}},{key:"_isFormInPanel",get:function(){return this._balloon.hasView(this.formView)}},{key:"_areActionsInPanel",get:function(){return this._balloon.hasView(this.actionsView)}},{key:"_areActionsVisible",get:function(){return this._balloon.visibleView===this.actionsView}},{key:"_isUIInPanel",get:function(){return this._isFormInPanel||this._areActionsInPanel}},{key:"_isUIVisible",get:function(){return this._balloon.visibleView==this.formView||this._areActionsVisible}},{key:"_getBalloonPositionData",value:function(){var t=this,e=this.editor.editing.view,n=this.editor.model,i=e.document,o=null;if(n.markers.has(ub)){var r=Array.from(this.editor.editing.mapper.markerNameToElements(ub)),a=e.createRange(e.createPositionBefore(r[0]),e.createPositionAfter(r[r.length-1]));o=e.domConverter.viewRangeToDom(a)}else o=function(){var n=t._getSelectedLinkElement();return n?e.domConverter.mapViewToDom(n):e.domConverter.viewRangeToDom(i.selection.getFirstRange())};return{target:o}}},{key:"_getSelectedLinkElement",value:function(){var t=this.editor.editing.view,e=t.document.selection,n=e.getSelectedElement();if(e.isCollapsed||n&&Ep(n))return hb(e.getFirstPosition());var i=e.getFirstRange().getTrimmed(),o=hb(i.start),r=hb(i.end);return o&&o==r&&t.createRangeIn(o).getTrimmed().isEqual(i)?o:null}},{key:"_showFakeVisualSelection",value:function(){var t=this.editor.model;t.change((function(e){var n=t.document.selection.getFirstRange();if(t.markers.has(ub))e.updateMarker(ub,{range:n});else if(n.start.isAtEnd){var i=n.start.getLastMatchingPosition((function(e){var n=e.item;return!t.schema.isContent(n)}),{boundaries:n});e.addMarker(ub,{usingOperation:!1,affectsData:!1,range:e.createRange(i,n.end)})}else e.addMarker(ub,{usingOperation:!1,affectsData:!1,range:n})}))}},{key:"_hideFakeVisualSelection",value:function(){var t=this.editor.model;t.markers.has(ub)&&t.change((function(t){t.removeMarker(ub)}))}}],[{key:"requires",get:function(){return[nh]}},{key:"pluginName",get:function(){return"LinkUI"}}]),n}(be);function hb(t){return t.getAncestors().find((function(t){return(e=t).is("attributeElement")&&!!e.getCustomProperty("link");var e}))}var fb=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema;t.plugins.has("ImageBlockEditing")&&e.extend("imageBlock",{allowAttributes:["linkHref"]}),t.conversion.for("upcast").add(function(t){var e=t.plugins.has("ImageInlineEditing"),n=t.plugins.get("ImageUtils");return function(t){t.on("element:a",(function(t,i,o){var r=i.viewItem,a=n.findViewImgElement(r);if(a){var s=a.findAncestor((function(t){return n.isBlockImageView(t)}));if(!e||s){if(o.consumable.consume(r,{attributes:["href"]})){var l=r.getAttribute("href");if(l){var c=i.modelCursor.parent;if(!c.is("element","imageBlock")){var u=o.convertItem(a,i.modelCursor);i.modelRange=u.modelRange,i.modelCursor=u.modelCursor,c=i.modelCursor.nodeBefore}c&&c.is("element","imageBlock")&&o.writer.setAttribute("linkHref",l,c)}}}}}),{priority:"high"})}}(t)),t.conversion.for("downcast").add(function(t){var e=t.plugins.get("ImageUtils");return function(t){t.on("attribute:linkHref:imageBlock",(function(t,n,i){if(i.consumable.consume(n.item,t.name)){var o=i.mapper.toViewElement(n.item),r=i.writer,a=Array.from(o.getChildren()).find((function(t){return"a"===t.name})),s=e.findViewImgElement(o),l=s.parent.is("element","picture")?s.parent:s;if(a)n.attributeNewValue?r.setAttribute("href",n.attributeNewValue,a):(r.move(r.createRangeOn(l),r.createPositionAt(o,0)),r.remove(a));else{var c=r.createContainerElement("a",{href:n.attributeNewValue});r.insert(r.createPositionAt(o,0),c),r.move(r.createRangeOn(l),r.createPositionAt(c,0))}}}),{priority:"high"})}}(t)),this._enableAutomaticDecorators(),this._enableManualDecorators()}},{key:"_enableAutomaticDecorators",value:function(){var t=this.editor,e=t.commands.get("link").automaticDecorators;e.length&&t.conversion.for("downcast").add(e.getDispatcherForLinkedImage())}},{key:"_enableManualDecorators",value:function(){var t,e=this.editor,n=p(e.commands.get("link").manualDecorators);try{for(n.s();!(t=n.n()).done;){var i=t.value;e.plugins.has("ImageBlockEditing")&&e.model.schema.extend("imageBlock",{allowAttributes:i.id}),e.plugins.has("ImageInlineEditing")&&e.model.schema.extend("imageInline",{allowAttributes:i.id}),e.conversion.for("downcast").add(pb(i)),e.conversion.for("upcast").add(mb(e,i))}}catch(t){n.e(t)}finally{n.f()}}}],[{key:"requires",get:function(){return["ImageEditing","ImageUtils",eb]}},{key:"pluginName",get:function(){return"LinkImageEditing"}}]),n}(be);function pb(t){return function(e){e.on("attribute:".concat(t.id,":imageBlock"),(function(e,n,i){var o=i.mapper.toViewElement(n.item),r=Array.from(o.getChildren()).find((function(t){return"a"===t.name}));if(r){var a,s=p(hi(t.attributes));try{for(s.s();!(a=s.n()).done;){var l=f(a.value,2),c=l[0],u=l[1];i.writer.setAttribute(c,u,r)}}catch(t){s.e(t)}finally{s.f()}for(var d in t.classes&&i.writer.addClass(t.classes,r),t.styles)i.writer.setStyle(d,t.styles[d],r)}}))}}function mb(t,e){var n=t.plugins.has("ImageInlineEditing"),i=t.plugins.get("ImageUtils");return function(t){t.on("element:a",(function(t,o,r){var a=o.viewItem,s=i.findViewImgElement(a);
2if(s){var l=s.findAncestor((function(t){return i.isBlockImageView(t)}));if(!n||l){var c=new fi(e._createPattern()).match(a);if(c&&r.consumable.consume(a,c.match)){var u=o.modelCursor.nodeBefore||o.modelCursor.parent;r.writer.setAttribute(e.id,!0,u)}}}}),{priority:"high"})}}var gb=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"click",(function(n,i){t._isSelectedLinkedImage(e.model.document.selection)&&(i.preventDefault(),n.stop())}),{priority:"high"}),this._createToolbarLinkImageButton()}},{key:"_createToolbarLinkImageButton",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add("linkImage",(function(i){var o=new Hu(i),r=e.plugins.get("LinkUI"),a=e.commands.get("link");return o.set({isEnabled:!0,label:n("Link image"),icon:cb,keystroke:Gm,tooltip:!0,isToggleable:!0}),o.bind("isEnabled").to(a,"isEnabled"),o.bind("isOn").to(a,"value",(function(t){return!!t})),t.listenTo(o,"execute",(function(){t._isSelectedLinkedImage(e.model.document.selection)?r._addActionsView():r._showUI(!0)})),o}))}},{key:"_isSelectedLinkedImage",value:function(t){var e=t.getSelectedElement();return this.editor.plugins.get("ImageUtils").isImage(e)&&e.hasAttribute("linkHref")}}],[{key:"requires",get:function(){return[eb,db,"ImageBlockEditing"]}},{key:"pluginName",get:function(){return"LinkImageUI"}}]),n}(be),vb=r(3858);fr()(vb.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),vb.Z.locals;var kb=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).type=i,o}return S(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document,o=Array.from(i.selection.getSelectedBlocks()).filter((function(t){return yb(t,n.schema)})),r=void 0!==e.forceValue?!e.forceValue:this.value;n.change((function(e){if(r){for(var n=o[o.length-1].nextSibling,i=Number.POSITIVE_INFINITY,a=[];n&&"listItem"==n.name&&0!==n.getAttribute("listIndent");){var s=n.getAttribute("listIndent");s<i&&(i=s);var l=s-i;a.push({element:n,listIndent:l}),n=n.nextSibling}var c,u=p(a=a.reverse());try{for(u.s();!(c=u.n()).done;){var d=c.value;e.setAttribute("listIndent",d.listIndent,d.element)}}catch(t){u.e(t)}finally{u.f()}}if(!r){var h,f=Number.POSITIVE_INFINITY,m=p(o);try{for(m.s();!(h=m.n()).done;){var g=h.value;g.is("element","listItem")&&g.getAttribute("listIndent")<f&&(f=g.getAttribute("listIndent"))}}catch(t){m.e(t)}finally{m.f()}bb(o,!0,f=0===f?1:f),bb(o,!1,f)}var v,k=p(o.reverse());try{for(k.s();!(v=k.n()).done;){var b=v.value;r&&"listItem"==b.name?e.rename(b,"paragraph"):r||"listItem"==b.name?r||"listItem"!=b.name||b.getAttribute("listType")==t.type||e.setAttribute("listType",t.type,b):(e.setAttributes({listType:t.type,listIndent:0},b),e.rename(b,"listItem"))}}catch(t){k.e(t)}finally{k.f()}t.fire("_executeCleanup",o)}))}},{key:"_getValue",value:function(){var t=Ba(this.editor.model.document.selection.getSelectedBlocks());return!!t&&t.is("element","listItem")&&t.getAttribute("listType")==this.type}},{key:"_checkEnabled",value:function(){if(this.value)return!0;var t=this.editor.model.document.selection,e=this.editor.model.schema,n=Ba(t.getSelectedBlocks());return!!n&&yb(n,e)}}]),n}(_e);function bb(t,e,n){var i=e?t[0]:t[t.length-1];if(i.is("element","listItem"))for(var o=i[e?"previousSibling":"nextSibling"],r=i.getAttribute("listIndent");o&&o.is("element","listItem")&&o.getAttribute("listIndent")>=n;)r>o.getAttribute("listIndent")&&(r=o.getAttribute("listIndent")),o.getAttribute("listIndent")==r&&t[e?"unshift":"push"](o),o=o[e?"previousSibling":"nextSibling"]}function yb(t,e){return e.checkChild(t.parent,"listItem")&&!e.isObject(t)}var _b=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._indentBy="forward"==i?1:-1,o}return S(n,[{key:"refresh",value:function(){this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,i=Array.from(n.selection.getSelectedBlocks());e.change((function(e){for(var n=i[i.length-1],o=n.nextSibling;o&&"listItem"==o.name&&o.getAttribute("listIndent")>n.getAttribute("listIndent");)i.push(o),o=o.nextSibling;t._indentBy<0&&(i=i.reverse());var r,a=p(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=s.getAttribute("listIndent")+t._indentBy;l<0?e.rename(s,"paragraph"):e.setAttribute("listIndent",l,s)}}catch(t){a.e(t)}finally{a.f()}t.fire("_executeCleanup",i)}))}},{key:"_checkEnabled",value:function(){var t=Ba(this.editor.model.document.selection.getSelectedBlocks());if(!t||!t.is("element","listItem"))return!1;if(this._indentBy>0){for(var e=t.getAttribute("listIndent"),n=t.getAttribute("listType"),i=t.previousSibling;i&&i.is("element","listItem")&&i.getAttribute("listIndent")>=e;){if(i.getAttribute("listIndent")==e)return i.getAttribute("listType")==n;i=i.previousSibling}return!1}return!0}}]),n}(_e);function wb(t,e){var n=e.mapper,i=e.writer,o="numbered"==t.getAttribute("listType")?"ol":"ul",r=function(t){var e=t.createContainerElement("li");return e.getFillerOffset=Bb,e}(i),a=i.createContainerElement(o,null);return i.insert(i.createPositionAt(a,0),r),n.bindElements(t,r),r}function Cb(t,e,n,i){var o=e.parent,r=n.mapper,a=n.writer,s=r.toViewPosition(i.createPositionBefore(t)),l=Db(t.previousSibling,{sameIndent:!0,smallerIndent:!0,listIndent:t.getAttribute("listIndent")}),c=t.previousSibling;if(l&&l.getAttribute("listIndent")==t.getAttribute("listIndent")){var u=r.toViewElement(l);s=a.breakContainer(a.createPositionAfter(u))}else if(c&&"listItem"==c.name){s=r.toViewPosition(i.createPositionAt(c,"end"));var d=r.findMappedViewAncestor(s),h=Sb(d);s=h?a.createPositionBefore(h):a.createPositionAt(d,"end")}else s=r.toViewPosition(i.createPositionBefore(t));if(s=xb(s),a.insert(s,o),c&&"listItem"==c.name){var f,m=r.toViewElement(c),g=a.createRange(a.createPositionAt(m,0),s).getWalker({ignoreElementEnd:!0}),v=p(g);try{for(v.s();!(f=v.n()).done;){var k=f.value;if(k.item.is("element","li")){var b=a.breakContainer(a.createPositionBefore(k.item)),y=k.item.parent,_=a.createPositionAt(e,"end");Ab(a,_.nodeBefore,_.nodeAfter),a.move(a.createRangeOn(y),_),g.position=b}}}catch(t){v.e(t)}finally{v.f()}}else{var w=o.nextSibling;if(w&&(w.is("element","ul")||w.is("element","ol"))){var C,A=null,x=p(w.getChildren());try{for(x.s();!(C=x.n()).done;){var D=C.value,E=r.toModelElement(D);if(!(E&&E.getAttribute("listIndent")>t.getAttribute("listIndent")))break;A=D}}catch(t){x.e(t)}finally{x.f()}A&&(a.breakContainer(a.createPositionAfter(A)),a.move(a.createRangeOn(A.parent),a.createPositionAt(e,"end")))}}Ab(a,o,o.nextSibling),Ab(a,o.previousSibling,o)}function Ab(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 xb(t){return t.getLastMatchingPosition((function(t){return t.item.is("uiElement")}))}function Db(t,e){for(var n=!!e.sameIndent,i=!!e.smallerIndent,o=e.listIndent,r=t;r&&"listItem"==r.name;){var a=r.getAttribute("listIndent");if(n&&o==a||i&&o>
2a)return r;r="forward"===e.direction?r.nextSibling:r.previousSibling}return null}function Eb(t,e,n,i){t.ui.componentFactory.add(e,(function(o){var r=t.commands.get(e),a=new Hu(o);return a.set({label:n,icon:i,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(r,"value","isEnabled"),a.on("execute",(function(){t.execute(e),t.editing.view.focus()})),a}))}function Sb(t){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if("ul"==i.name||"ol"==i.name)return i}}catch(t){n.e(t)}finally{n.f()}return null}function Tb(t,e){var n,i=[],o=t.parent,r={ignoreElementEnd:!0,startPosition:t,shallow:!0,direction:e},a=o.getAttribute("listIndent"),s=m(new Xa(r)).filter((function(t){return t.item.is("element")})).map((function(t){return t.item})),l=p(s);try{for(l.s();!(n=l.n()).done;){var c=n.value;if(!c.is("element","listItem"))break;if(c.getAttribute("listIndent")<a)break;if(!(c.getAttribute("listIndent")>a)){if(c.getAttribute("listType")!==o.getAttribute("listType"))break;if(c.getAttribute("listStyle")!==o.getAttribute("listStyle"))break;if(c.getAttribute("listReversed")!==o.getAttribute("listReversed"))break;if(c.getAttribute("listStart")!==o.getAttribute("listStart"))break;"backward"===e?i.unshift(c):i.push(c)}}}catch(t){l.e(t)}finally{l.f()}return i}function Ib(t){var e=m(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(m(Tb(n,"backward")),m(Tb(n,"forward")))})).flat();return e=m(new Set(e))}var zb=["disc","circle","square"],Mb=["decimal","decimal-leading-zero","lower-roman","upper-roman","lower-latin","upper-latin"];function Bb(){var t=!this.isEmpty&&("ul"==this.getChild(0).name||"ol"==this.getChild(0).name);return this.isEmpty||t?0:Yi.call(this)}function Pb(t){return function(e,n,i){var o=i.consumable;if(o.test(n.item,"insert")&&o.test(n.item,"attribute:listType")&&o.test(n.item,"attribute:listIndent")){o.consume(n.item,"insert"),o.consume(n.item,"attribute:listType"),o.consume(n.item,"attribute:listIndent");var r=n.item;
2Cb(r,wb(r,i),i,t)}}}function Lb(t,e,n){if(n.consumable.test(e.item,t.name)){var i=n.mapper.toViewElement(e.item),o=n.writer;o.breakContainer(o.createPositionBefore(i)),o.breakContainer(o.createPositionAfter(i));var r=i.parent,a="numbered"==e.attributeNewValue?"ol":"ul";o.rename(a,r)}}function Nb(t,e,n){n.consumable.consume(e.item,t.name);var i=n.mapper.toViewElement(e.item).parent,o=n.writer;Ab(o,i,i.nextSibling),Ab(o,i.previousSibling,i)}function Ob(t,e,n){if("listItem"!=e.item.name){for(var i=n.mapper.toViewPosition(e.range.start),o=n.writer,r=[];("ul"==i.parent.name||"ol"==i.parent.name)&&"li"==(i=o.breakContainer(i)).parent.name;){var a=i,s=o.createPositionAt(i.parent,"end");if(!a.isEqual(s)){var l=o.remove(o.createRange(a,s));r.push(l)}i=o.createPositionAfter(i.parent)}if(r.length>0){for(var c=0;c<r.length;c++){var u=i.nodeBefore;if(i=o.insert(i,r[c]).end,c>0){var d=Ab(o,u,u.nextSibling);d&&d.parent==u&&i.offset--}}Ab(o,i.nodeBefore,i.nodeAfter)}}}function Fb(t,e,n){var i=n.mapper.toViewPosition(e.position),o=i.nodeBefore,r=i.nodeAfter;Ab(n.writer,o,r)}function Rb(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0})){var i=n.writer,o=i.createElement("listItem"),r=function(t){for(var e=0,n=t.parent;n;){if(n.is("element","li"))e++;else{var i=n.previousSibling;i&&i.is("element","li")&&e++}n=n.parent}return e}(e.viewItem);i.setAttribute("listIndent",r,o);var a=e.viewItem.parent&&"ol"==e.viewItem.parent.name?"numbered":"bulleted";if(i.setAttribute("listType",a,o),!n.safeInsert(o,e.modelCursor))return;var s=function(t,e,n){var i,o=n.writer,r=n.schema,a=o.createPositionAfter(t),s=p(e);try{for(s.s();!(i=s.n()).done;){var l=i.value;if("ul"==l.name||"ol"==l.name)a=n.convertItem(l,a).modelCursor;else{var c=n.convertItem(l,o.createPositionAt(t,"end")),u=c.modelRange.start.nodeAfter;u&&u.is("element")&&!r.checkChild(t,u.name)&&(t=c.modelCursor.parent.is("element","listItem")?c.modelCursor.parent:Zb(c.modelCursor),a=o.createPositionAfter(t))}}}catch(t){s.e(t)}finally{s.f()}return a}(o,e.viewItem.getChildren(),n);e.modelRange=i.createRange(e.modelCursor,s),n.updateConversionResult(o,e)}}function jb(t,e,n){if(n.consumable.test(e.viewItem,{name:!0}))for(var i=0,o=Array.from(e.viewItem.getChildren());i<o.length;i++){var r=o[i];!r.is("element","li")&&!Wb(r)&&r._remove()}}function Vb(t,e,n){if(n.consumable.test(e.viewItem,{name:!0})){if(0===e.viewItem.childCount)return;var i,o=!1,r=p(m(e.viewItem.getChildren()));try{for(r.s();!(i=r.n()).done;){var a=i.value;o&&!Wb(a)&&a._remove(),Wb(a)&&(o=!0)}}catch(t){r.e(t)}finally{r.f()}}}function Hb(t){return function(e,n){if(!n.isPhantom){var i=n.modelPosition.nodeBefore;if(i&&i.is("element","listItem")){var o,r=n.mapper.toViewElement(i),a=r.getAncestors().find(Wb),s=p(t.createPositionAt(r,0).getWalker());try{for(s.s();!(o=s.n()).done;){var l=o.value;if("elementStart"==l.type&&l.item.is("element","li")){n.viewPosition=l.previousPosition;break}if("elementEnd"==l.type&&l.item==a){n.viewPosition=l.nextPosition;break}}}catch(t){s.e(t)}finally{s.f()}}}}}function Ub(t,e){var n,i=f(e,2),o=i[0],r=i[1],a=o.is("documentFragment")?o.getChild(0):o;if(n=r?this.createSelection(r):this.document.selection,a&&a.is("element","listItem")){var s=n.getFirstPosition(),l=null;if(s.parent.is("element","listItem")?l=s.parent:s.nodeBefore&&s.nodeBefore.is("element","listItem")&&(l=s.nodeBefore),l){var c=l.getAttribute("listIndent");if(c>0)for(;a&&a.is("element","listItem");)a._setAttribute("listIndent",a.getAttribute("listIndent")+c),a=a.nextSibling}}}function Zb(t){var e,n=new Xa({startPosition:t});do{e=n.next()}while(!e.value.item.is("element","listItem"));return e.value.item}function qb(t,e,n,i,o,r){var a,s=Db(e.nodeBefore,{sameIndent:!0,smallerIndent:!0,listIndent:t,foo:"b"}),l=o.mapper,c=o.writer,u=s?s.getAttribute("listIndent"):null;if(s)if(u==t){var d=l.toViewElement(s).parent;a=c.createPositionAfter(d)}else{var h=r.createPositionAt(s,"end");a=l.toViewPosition(h)}else a=n;a=xb(a);for(var f=0,p=m(i.getChildren());f<p.length;f++){var g=p[f];Wb(g)&&(a=c.move(c.createRangeOn(g),a).end,Ab(c,g,g.nextSibling),Ab(c,g.previousSibling,g))}}function Wb(t){return t.is("element","ol")||t.is("element","ul")}var Gb=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor;
2e.model.schema.register("listItem",{inheritAllFrom:"$block",allowAttributes:["listType","listIndent"]});var n,i=e.data,o=e.editing;e.model.document.registerPostFixer((function(t){return function(t,e){var n,i=t.document.differ.getChanges(),o=new Map,r=!1,a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("insert"==s.type&&"listItem"==s.name)m(s.position);else if("insert"==s.type&&"listItem"!=s.name){if("$text"!=s.name){var l=s.position.nodeAfter;l.hasAttribute("listIndent")&&(e.removeAttribute("listIndent",l),r=!0),l.hasAttribute("listType")&&(e.removeAttribute("listType",l),r=!0),l.hasAttribute("listStyle")&&(e.removeAttribute("listStyle",l),r=!0),l.hasAttribute("listReversed")&&(e.removeAttribute("listReversed",l),r=!0),l.hasAttribute("listStart")&&(e.removeAttribute("listStart",l),r=!0);var c,u=p(Array.from(t.createRangeIn(l)).filter((function(t){return t.item.is("element","listItem")})));try{for(u.s();!(c=u.n()).done;){m(c.value.previousPosition)}}catch(t){u.e(t)}finally{u.f()}}m(s.position.getShiftedBy(s.length))}else"remove"==s.type&&"listItem"==s.name?m(s.position):("attribute"==s.type&&"listIndent"==s.attributeKey||"attribute"==s.type&&"listType"==s.attributeKey)&&m(s.range.start)}}catch(t){a.e(t)}finally{a.f()}var d,h=p(o.values());try{for(h.s();!(d=h.n()).done;){var f=d.value;g(f),v(f)}}catch(t){h.e(t)}finally{h.f()}return r;function m(t){var e=t.nodeBefore;if(e&&e.is("element","listItem")){var n=e;if(o.has(n))return;for(var i=n.previousSibling;i&&i.is("element","listItem");i=n.previousSibling)if(n=i,o.has(n))return;o.set(e,n)}else{var r=t.nodeAfter;r&&r.is("element","listItem")&&o.set(r,r)}}function g(t){for(var n=0,i=null;t&&t.is("element","listItem");){var o=t.getAttribute("listIndent");if(o>n){var a=void 0;null===i?(i=o-n,a=n):(i>o&&(i=o),a=o-i),e.setAttribute("listIndent",a,t),r=!0}else i=null,n=t.getAttribute("listIndent")+1;t=t.nextSibling}}function v(t){for(var n=[],i=null;t&&t.is("element","listItem");){var o=t.getAttribute("listIndent");if(i&&i.getAttribute("listIndent")>o&&(n=n.slice(0,o+1)),0!=o)if(n[o]){var a=n[o];t.getAttribute("listType")!=a&&(e.setAttribute("listType",a,t),r=!0)}else n[o]=t.getAttribute("listType");i=t,t=t.nextSibling}}}(e.model,t)})),o.mapper.registerViewToModelLength("li",$b),i.mapper.registerViewToModelLength("li",$b),o.mapper.on("modelToViewPosition",Hb(o.view)),o.mapper.on("viewToModelPosition",(n=e.model,function(t,e){var i=e.viewPosition,o=i.parent,r=e.mapper;if("ul"==o.name||"ol"==o.name){if(i.isAtEnd){var a=r.toModelElement(i.nodeBefore),s=r.getModelLength(i.nodeBefore);e.modelPosition=n.createPositionBefore(a).getShiftedBy(s)}else{var l=r.toModelElement(i.nodeAfter);e.modelPosition=n.createPositionBefore(l)}t.stop()}else if("li"==o.name&&i.nodeBefore&&("ul"==i.nodeBefore.name||"ol"==i.nodeBefore.name)){for(var c=r.toModelElement(o),u=1,d=i.nodeBefore;d&&Wb(d);)u+=r.getModelLength(d),d=d.previousSibling;e.modelPosition=n.createPositionBefore(c).getShiftedBy(u),t.stop()}})),i.mapper.on("modelToViewPosition",Hb(o.view)),e.conversion.for("editingDowncast").add((function(t){t.on("insert",Ob,{priority:"high"}),t.on("insert:listItem",Pb(e.model)),t.on("attribute:listType:listItem",Lb,{priority:"high"}),t.on("attribute:listType:listItem",Nb,{priority:"low"}),t.on("attribute:listIndent:listItem",function(t){return function(e,n,i){if(i.consumable.consume(n.item,"attribute:listIndent")){var o=i.mapper.toViewElement(n.item),r=i.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o));var a=o.parent,s=a.previousSibling,l=r.createRangeOn(a);r.remove(l),s&&s.nextSibling&&Ab(r,s,s.nextSibling),qb(n.attributeOldValue+1,n.range.start,l.start,o,i,t),Cb(n.item,o,i,t);var c,u=p(n.item.getChildren());try{for(u.s();!(c=u.n()).done;){var d=c.value;i.consumable.consume(d,"insert")}}catch(t){u.e(t)}finally{u.f()}}}}(e.model)),t.on("remove:listItem",function(t){return function(e,n,i){var o=i.mapper.toViewPosition(n.position).getLastMatchingPosition((function(t){return!t.item.is("element","li")})).nodeAfter,r=i.writer;r.breakContainer(r.createPositionBefore(o)),r.breakContainer(r.createPositionAfter(o
2));var a=o.parent,s=a.previousSibling,l=r.createRangeOn(a),c=r.remove(l);s&&s.nextSibling&&Ab(r,s,s.nextSibling),qb(i.mapper.toModelElement(o).getAttribute("listIndent")+1,n.position,l.start,o,i,t);var u,d=p(r.createRangeIn(c).getItems());try{for(d.s();!(u=d.n()).done;){var h=u.value;i.mapper.unbindViewElement(h)}}catch(t){d.e(t)}finally{d.f()}e.stop()}}(e.model)),t.on("remove",Fb,{priority:"low"})})),e.conversion.for("dataDowncast").add((function(t){t.on("insert",Ob,{priority:"high"}),t.on("insert:listItem",Pb(e.model))})),e.conversion.for("upcast").add((function(t){t.on("element:ul",jb,{priority:"high"}),t.on("element:ol",jb,{priority:"high"}),t.on("element:li",Vb,{priority:"high"}),t.on("element:li",Rb)})),e.model.on("insertContent",Ub,{priority:"high"}),e.commands.add("numberedList",new kb(e,"numbered")),e.commands.add("bulletedList",new kb(e,"bulleted")),e.commands.add("indentList",new _b(e,"forward")),e.commands.add("outdentList",new _b(e,"backward"));var r=o.view.document;this.listenTo(r,"enter",(function(e,n){var i=t.editor.model.document,o=i.selection.getLastPosition().parent;i.selection.isCollapsed&&"listItem"==o.name&&o.isEmpty&&(t.editor.execute("outdentList"),n.preventDefault(),e.stop())}),{context:"li"}),this.listenTo(r,"delete",(function(e,n){if("backward"===n.direction){var i=t.editor.model.document.selection;if(i.isCollapsed){var o=i.getFirstPosition();if(o.isAtStart){var r=o.parent;"listItem"===r.name&&(r.previousSibling&&"listItem"===r.previousSibling.name||(t.editor.execute("outdentList"),n.preventDefault(),e.stop()))}}}}),{context:"li"});var a=function(e){return function(n,i){t.editor.commands.get(e).isEnabled&&(t.editor.execute(e),i())}};e.keystrokes.set("Tab",a("indentList")),e.keystrokes.set("Shift+Tab",a("outdentList"))}},{key:"afterInit",value:function(){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(){return"ListEditing"}},{key:"requires",get:function(){return[yp,Vf]}}]),n}(be);function $b(t){var e,n=1,i=p(t.getChildren());try{for(i.s();!(e=i.n()).done;){var o=e.value;if("ul"==o.name||"ol"==o.name){var r,a=p(o.getChildren());try{for(a.s();!(r=a.n()).done;){n+=$b(r.value)}}catch(t){a.e(t)}finally{a.f()}}}}catch(t){i.e(t)}finally{i.f()}return n}var Yb='<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>',Kb='<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>',Qb=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor.t;Eb(this.editor,"numberedList",t("Numbered List"),Yb),Eb(this.editor,"bulletedList",t("Bulleted List"),Kb)}}],[{key:"pluginName",get:function(){return"ListUI"}}]),n}(be),Jb=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t))._defaultType=i,o}return S(n,[{key:"refresh",value:function(){this.value=this._getValue(),this.isEnabled=this._checkEnabled()}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this._tryToConvertItemsToList(e);var n=this.editor.model,i=Ib(n);i.length&&n.change((function(n){var o,r=p(i);try{for(r.s();!(o=r.n()).done;){var a=o.value;n.setAttribute("listStyle",e.type||t._defaultType,a)}}catch(t){r.e(t)}finally{r.f()}}))}},{key:"_getValue",value:function(){var t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")?t.getAttribute("listStyle"):null}},{key:"_checkEnabled",value:function(){var t=this.editor,e=t.commands.get("numberedList"),n=t.commands.get("bulletedList");return e.isEnabled||n.isEnabled}},{key:"_tryToConvertItemsToList",value:function(t){if(t.type){var e,n=(e=t.type,zb.includes(e)?"bulleted":
2Mb.includes(e)?"numbered":null);if(n){var i=this.editor,o=n+"List";i.commands.get(o).value||i.execute(o)}}}}]),n}(_e),Xb=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this._getValue();this.value=t,this.isEnabled=null!=t}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=Ib(e).filter((function(t){return"numbered"==t.getAttribute("listType")}));e.change((function(e){var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;e.setAttribute("listReversed",!!t.reversed,r)}}catch(t){o.e(t)}finally{o.f()}}))}},{key:"_getValue",value:function(){var t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listReversed"):null}}]),n}(_e),ty=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this._getValue();this.value=t,this.isEnabled=null!=t}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=Ib(e).filter((function(t){return"numbered"==t.getAttribute("listType")}));e.change((function(e){var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;e.setAttribute("listStart",t.startIndex||1,r)}}catch(t){o.e(t)}finally{o.f()}}))}},{key:"_getValue",value:function(){var t=this.editor.model.document.selection.getFirstPosition().parent;return t&&t.is("element","listItem")&&"numbered"==t.getAttribute("listType")?t.getAttribute("listStart"):null}}]),n}(_e),ey="default",ny=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("list",{properties:{styles:!0,startIndex:!1,reversed:!1}}),i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model,n=function(t){var e=[];return t.styles&&e.push({attributeName:"listStyle",defaultValue:ey,addCommand:function(t){t.commands.add("listStyle",new Jb(t,ey))},appliesToListItem:function(){return!0},setAttributeOnDowncast:function(t,e,n){e&&e!==ey?t.setStyle("list-style-type",e,n):t.removeStyle("list-style-type",n)},getAttributeOnUpcast:function(t){return t.getStyle("list-style-type")||ey}}),t.reversed&&e.push({attributeName:"listReversed",defaultValue:!1,addCommand:function(t){t.commands.add("listReversed",new Xb(t))},appliesToListItem:function(t){return"numbered"==t.getAttribute("listType")},setAttributeOnDowncast:function(t,e,n){e?t.setAttribute("reversed","reversed",n):t.removeAttribute("reversed",n)},getAttributeOnUpcast:function(t){return t.hasAttribute("reversed")}}),t.startIndex&&e.push({attributeName:"listStart",defaultValue:1,addCommand:function(t){t.commands.add("listStart",new ty(t))},appliesToListItem:function(t){return"numbered"==t.getAttribute("listType")},setAttributeOnDowncast:function(t,e,n){1!=e?t.setAttribute("start",e,n):t.removeAttribute("start",n)},getAttributeOnUpcast:function(t){return t.getAttribute("start")||1}}),e}(t.config.get("list.properties"));e.schema.extend("listItem",{allowAttributes:n.map((function(t){return t.attributeName}))});var i,o,r=p(n);try{for(r.s();!(i=r.n()).done;){i.value.addCommand(t)}}catch(t){r.e(t)}finally{r.f()}this.listenTo(t.commands.get("indentList"),"_executeCleanup",function(t,e){return function(n,i){var o=i[0],r=o.getAttribute("listIndent"),a=i.filter((function(t){return t.getAttribute("listIndent")===r})),s=null;o.previousSibling.getAttribute("listIndent")+1!==r&&(s=Db(o.previousSibling,{sameIndent:!0,direction:"backward",listIndent:r})),t.model.change((function(t){var n,i=p(a);try{for(i.s();!(n=i.n()).done;){var o,r=n.value,l=p(e);try{for(l.s();!(o=l.n()).done;){var c=o.value;if(c.appliesToListItem(r)){var u=null==s?c.defaultValue:s.getAttribute(c.attributeName);t.setAttribute(c.attributeName,u,r)}}}catch(t){l.e(t)}finally{l.f()}}}catch(t){i.e(t)}finally{i.f()}}))}}(t,n)),this.listenTo(t.commands.get("outdentList"),"_executeCleanup",function(t,e){return function(n,i){if((i=i.reverse().filter((function(t){return t.is("element","listItem")}))).length){var o=i[0].getAttribute("listIndent"),r=i[0].getAttribute("listType"),a=i[0].previousSibling;if(a.is("element","listItem"))for(;a.getAttribute("listIndent")!==o;)a=a.previousSibling;else a=null;a||(a=i[i.length-1].nextSibling),a&&a.is("element","listItem")&&a.getAttribute("listType")===r&&t.model.change((function(t){var n,r=i.filter((function(t){return t.getAttribute("listIndent")===o})),s=p(r);try{for(s.s();!(n=s.n()).done;){var l,c=n.value,u=p(e);try{for(u.s();!(l=u.n()).done;){var d=l.value;if(d.appliesToListItem(c)){var h=d.attributeName,f=a.getAttribute(h);t.setAttribute(h,f,c)}}}catch(t){u.e(t)}finally{u.f()}}}catch(t){s.e(t)}finally{s.f()}}))}}}(t,n)),this.listenTo(t.commands.get("bulletedList"),"_executeCleanup",ry(t)),this.listenTo(t.commands.get("numberedList"),"_executeCleanup",ry(t)),e.document.registerPostFixer(function(t,e){return function(n){var i=!1,o=ay(t.model.document.differ.getChanges()).filter((function(t){return"todo"!==t.getAttribute("listType")}));if(!o.length)return i;var r=o[o.length-1].nextSibling;if((!r||!r.is("element","listItem"))&&(r=o[o.length-1].previousSibling))for(var a=o[0].getAttribute("listIndent");r.is("element","listItem")&&r.getAttribute("listIndent")!==a&&(r=r.previousSibling););var s,l=p(e);try{for(l.s();!(s=l.n()).done;){var c,u=s.value,d=u.attributeName,h=p(o);try{for(h.s();!(c=h.n()).done;){var f=c.value;if(u.appliesToListItem(f))if(f.hasAttribute(d)){var m=f.previousSibling;oy(m,f,u.attributeName)&&(n.setAttribute(d,m.getAttribute(d),f),i=!0)}else iy(r,f,u)?n.setAttribute(d,r.getAttribute(d),f):n.setAttribute(d,u.defaultValue,f),i=!0;else n.removeAttribute(d,f)}}catch(t){h.e(t)}finally{h.f()}}}catch(t){l.e(t)}finally{l.f()}return i}}(t,n)),t.conversion.for("upcast").add((o=n,function(t){t.on("element:li",(function(t,e,n){var i=e.viewItem.parent;if(i){var r,a=e.modelRange.start.nodeAfter||e.modelRange.end.nodeBefore,s=p(o);try{for(s.s();!(r=s.n()).done;){var l=r.value;
2if(l.appliesToListItem(a)){var c=l.getAttributeOnUpcast(i);n.writer.setAttribute(l.attributeName,c,a)}}}catch(t){s.e(t)}finally{s.f()}}}),{priority:"low"})})),t.conversion.for("downcast").add(function(t){return function(e){var n,i=p(t);try{var o=function(){var t=n.value;e.on("attribute:".concat(t.attributeName,":listItem"),(function(e,n,i){var o=i.writer,r=n.item,a=Db(r.previousSibling,{sameIndent:!0,listIndent:r.getAttribute("listIndent"),direction:"backward"}),s=i.mapper.toViewElement(r);(function(t,e){return e&&t.getAttribute("listType")===e.getAttribute("listType")&&t.getAttribute("listIndent")===e.getAttribute("listIndent")&&t.getAttribute("listStyle")===e.getAttribute("listStyle")&&t.getAttribute("listReversed")===e.getAttribute("listReversed")&&t.getAttribute("listStart")===e.getAttribute("listStart")})(r,a)||o.breakContainer(o.createPositionBefore(s)),t.setAttributeOnDowncast(o,n.attributeNewValue,s.parent)}),{priority:"low"})};for(i.s();!(n=i.n()).done;)o()}catch(t){i.e(t)}finally{i.f()}}}(n)),this._mergeListAttributesWhileMergingLists(n)}},{key:"afterInit",value:function(){var t=this.editor;t.commands.get("todoList")&&t.model.document.registerPostFixer(function(t){return function(e){var n=ay(t.model.document.differ.getChanges()).filter((function(t){return"todo"===t.getAttribute("listType")&&(t.hasAttribute("listStyle")||t.hasAttribute("listReversed")||t.hasAttribute("listStart"))}));if(!n.length)return!1;var i,o=p(n);try{for(o.s();!(i=o.n()).done;){var r=i.value;e.removeAttribute("listStyle",r),e.removeAttribute("listReversed",r),e.removeAttribute("listStart",r)}}catch(t){o.e(t)}finally{o.f()}return!0}}(t))}},{key:"_mergeListAttributesWhileMergingLists",value:function(t){var e,n=this.editor.model;this.listenTo(n,"deleteContent",(function(t,n){var i=f(n,1)[0],o=i.getFirstPosition(),r=i.getLastPosition();if(o.parent!==r.parent&&o.parent.is("element","listItem")){var a=r.parent.nextSibling;if(a&&a.is("element","listItem")){var s=Db(o.parent,{sameIndent:!0,listIndent:a.getAttribute("listIndent")});s&&s.getAttribute("listType")===a.getAttribute("listType")&&(e=s)}}}),{priority:"high"}),this.listenTo(n,"deleteContent",(function(){e&&(n.change((function(n){var i=Db(e.nextSibling,{sameIndent:!0,listIndent:e.getAttribute("listIndent"),direction:"forward"});if(i){var o,r=p([i].concat(m(Tb(n.createPositionAt(i,0),"forward"))));try{for(r.s();!(o=r.n()).done;){var a,s=o.value,l=p(t);try{for(l.s();!(a=l.n()).done;){var c=a.value;if(c.appliesToListItem(s)){var u=c.attributeName,d=e.getAttribute(u);n.setAttribute(u,d,s)}}}catch(t){l.e(t)}finally{l.f()}}}catch(t){r.e(t)}finally{r.f()}}else e=null})),e=null)}),{priority:"low"})}}],[{key:"requires",get:function(){return[Gb]}},{key:"pluginName",get:function(){return"ListPropertiesEditing"}}]),n}(be);function iy(t,e,n){if(!t)return!1;var i=t.getAttribute(n.attributeName);return!!i&&i!=n.defaultValue&&t.getAttribute("listType")===e.getAttribute("listType")}function oy(t,e,n){if(!t||!t.is("element","listItem"))return!1;if(e.getAttribute("listType")!==t.getAttribute("listType"))return!1;var i=t.getAttribute("listIndent");if(i<1||i!==e.getAttribute("listIndent"))return!1;var o=t.getAttribute(n);return!(!o||o===e.getAttribute(n))}
2function ry(t){return function(e,n){n=n.filter((function(t){return t.is("element","listItem")})),t.model.change((function(t){var e,i=p(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.removeAttribute("listStyle",o)}}catch(t){i.e(t)}finally{i.f()}}))}}function ay(t){var e,n=[],i=p(t);try{for(i.s();!(e=i.n()).done;){var o=sy(e.value);o&&o.is("element","listItem")&&n.push(o)}}catch(t){i.e(t)}finally{i.f()}return n}function sy(t){return"attribute"===t.type?t.range.start.nodeAfter:"insert"===t.type?t.position.nodeAfter:null}var ly=r(3195);fr()(ly.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),ly.Z.locals;var cy=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n);var r=(o=e.call(this,t)).bindTemplate;return o.set("isCollapsed",!1),o.set("label",""),o.buttonView=o._createButtonView(),o.children=o.createCollection(),o.set("_collapsibleAriaLabelUid"),i&&o.children.addMany(i),o.setTemplate({tag:"div",attributes:{class:["ck","ck-collapsible",r.if("isCollapsed","ck-collapsible_collapsed")]},children:[o.buttonView,{tag:"div",attributes:{class:["ck","ck-collapsible__children"],role:"region",hidden:r.if("isCollapsed","hidden"),"aria-labelledby":r.to("_collapsibleAriaLabelUid")},children:o.children}]}),o}return S(n,[{key:"render",value:function(){d(D(n.prototype),"render",this).call(this),this._collapsibleAriaLabelUid=this.buttonView.labelView.element.id}},{key:"_createButtonView",value:function(){var t=this,e=new Hu(this.locale),n=e.bindTemplate;return e.set({withText:!0,icon:td}),e.extendTemplate({attributes:{"aria-expanded":n.to("isOn",(function(t){return String(t)}))}}),e.bind("label").to(this),e.bind("isOn").to(this,"isCollapsed",(function(t){return!t})),e.on("execute",(function(){t.isCollapsed=!t.isCollapsed})),e}}]),n}(mu),uy=r(7133);fr()(uy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),uy.Z.locals;var dy=function(t){k(n,t);var e=b(n);function n(t,i){var o,r=i.enabledProperties,a=i.styleButtonViews,s=i.styleGridAriaLabel;I(this,n);var l=["ck","ck-list-properties"];return(o=e.call(this,t)).children=o.createCollection(),o.stylesView=null,o.additionalPropertiesCollapsibleView=null,o.startIndexFieldView=null,o.reversedSwitchButtonView=null,o.focusTracker=new Pa,o.keystrokes=new La,o.focusables=new fu,o.focusCycler=new Ku({focusables:o.focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),r.styles?(o.stylesView=o._createStylesView(a,s),o.children.add(o.stylesView)):l.push("ck-list-properties_without-styles"),(r.startIndex||r.reversed)&&(o._addNumberedListPropertyViews(r,a),l.push("ck-list-properties_with-numbered-properties")),o.setTemplate({tag:"div",attributes:{class:l},children:o.children}),o}return S(n,[{key:"render",value:function(){if(d(D(n.prototype),"render",this).call(this),this.stylesView){var t,e=p(this.stylesView.children);try{for(e.s();!(t=e.n()).done;){var i=t.value;this.focusables.add(i),this.focusTracker.add(i.element)}}catch(t){e.e(t)}finally{e.f()}(this.startIndexFieldView||this.reversedSwitchButtonView)&&(this.focusables.add(this.children.last.buttonView),this.focusTracker.add(this.children.last.buttonView.element))}if(this.startIndexFieldView){this.focusables.add(this.startIndexFieldView),this.focusTracker.add(this.startIndexFieldView.element),this.listenTo(this.startIndexFieldView.element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"});var o=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",o),this.keystrokes.set("arrowleft",o),this.keystrokes.set("arrowup",o),this.keystrokes.set("arrowdown",o)}this.reversedSwitchButtonView&&(this.focusables.add(this.reversedSwitchButtonView),this.focusTracker.add(this.reversedSwitchButtonView.element)),this.keystrokes.listenTo(this.element)}},{key:"focus",value:function(){this.focusCycler.focusFirst()}},{key:"focusLast",value:function(){this.focusCycler.focusLast()}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"_createStylesView",value:function(t,e){var n=new mu(this.locale);return n.children=n.createCollection(this.locale),n.children.addMany(t),n.setTemplate({tag:"div",attributes:{"aria-label":e,class:["ck","ck-list-styles-list"]},children:n.children}),n.children.delegate("execute").to(this),n}},{key:"_addNumberedListPropertyViews",value:function(t){var e=this,n=this.locale.t,i=[];t.startIndex&&(this.startIndexFieldView=this._createStartIndexField(),i.push(this.startIndexFieldView)),t.reversed&&(this.reversedSwitchButtonView=this._createReversedSwitchButton(),i.push(this.reversedSwitchButtonView)),t.styles?(this.additionalPropertiesCollapsibleView=new cy(this.locale,i),this.additionalPropertiesCollapsibleView.set({label:n("List properties"),isCollapsed:!0}),this.additionalPropertiesCollapsibleView.buttonView.bind("isEnabled").toMany(i,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.additionalPropertiesCollapsibleView.buttonView.on("change:isEnabled",(function(t,n,i){i||(e.additionalPropertiesCollapsibleView.isCollapsed=!0)})),this.children.add(this.additionalPropertiesCollapsibleView)):this.children.addMany(i)}},{key:"_createStartIndexField",value:function(){var t=this,e=this.locale.t,n=new Vd(this.locale,Ud);return n.set({label:e("Start at"),class:"ck-numbered-list-properties__start-index"}),n.fieldView.set({min:1,step:1,value:1,inputMode:"numeric"}),n.fieldView.on("input",(function(){var i=n.fieldView.element,o=i.valueAsNumber;Number.isNaN(o)||(i.checkValidity()?t.fire("listStart",{startIndex:o}):n.errorText=e("Start index must be greater than 0."))})),n}},{key:"_createReversedSwitchButton",value:function(){var t=this.locale.t,e=new Zu(this.locale);return e.set({withText:!0,label:t("Reversed order"),class:"ck-numbered-list-properties__reversed-order"}),e.delegate("execute").to(this,"listReversed"),e}}]),n}(mu),hy=r(4553);fr()(hy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),hy.Z.locals;var fy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.locale.t,n=t.config.get("list.properties");n.styles&&t.ui.componentFactory.add("bulletedList",py({editor:t,parentCommandName:"bulletedList",buttonLabel:e("Bulleted List"),buttonIcon:Kb,styleGridAri
2aLabel:e("Bulleted list styles toolbar"),styleDefinitions:[{label:e("Toggle the disc list style"),tooltip:e("Disc"),type:"disc",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0-9a3 3 0 1 1 0 6 3 3 0 0 1 0-6z"/></svg>'},{label:e("Toggle the circle list style"),tooltip:e("Circle"),type:"circle",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11 27a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4zm0-10a3 3 0 1 1 0 6 3 3 0 0 1 0-6zm0 1a2 2 0 1 0 0 4 2 2 0 0 0 0-4z"/></svg>'},{label:e("Toggle the square list style"),tooltip:e("Square"),type:"square",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M14 27v6H8v-6h6zm0-9v6H8v-6h6zm0-9v6H8V9h6z"/></svg>'}]})),(n.styles||n.startIndex||n.reversed)&&t.ui.componentFactory.add("numberedList",py({editor:t,parentCommandName:"numberedList",buttonLabel:e("Numbered List"),buttonIcon:Yb,styleGridAriaLabel:e("Numbered list styles toolbar"),styleDefinitions:[{label:e("Toggle the decimal list style"),tooltip:e("Decimal"),type:"decimal",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M10.29 15V8.531H9.286c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.343 0v-1.235h-1.235V15h1.235zM11.3 24v-1.147H8.848c.064-.111.148-.226.252-.343.104-.117.351-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.494-.824.104-.263.156-.539.156-.829 0-.51-.182-.936-.545-1.279-.363-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.153-.155.358-.233.616-.233.26 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.468.536-1.024 1.055-.692.641-1.155 1.156-1.389 1.544-.234.389-.375.8-.422 1.233H11.3zm2.333 0v-1.235h-1.235V24h1.235zM9.204 34.11c.615 0 1.129-.2 1.542-.598.413-.398.62-.88.62-1.446 0-.39-.11-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.619-.337.928-.788.928-1.353 0-.399-.151-.756-.453-1.073-.366-.386-.852-.58-1.459-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.668.55c-.
216.232-.28.544-.358.933l1.138.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.215 0 .386.065.515.194s.193.302.193.518c0 .255-.087.46-.263.613-.176.154-.43.227-.765.218l-.136 1.006c.22-.061.409-.092.567-.092.24 0 .444.09.61.272.168.182.251.428.251.739 0 .328-.087.589-.261.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.307-.698l-1.196.145c.062.542.285.98.668 1.316.384.335.868.503 1.45.503zm4.43-.11v-1.235h-1.236V34h1.235z"/></svg>'},{label:e("Toggle the decimal with leading zero list style"),tooltip:e("Decimal with leading zero"),type:"decimal-leading-zero",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M5.714 15.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm6.078.914V8.531H10.79c-.14.393-.4.736-.778 1.03-.378.295-.728.495-1.05.6v1.121a4.257 4.257 0 0 0 1.595-.936V15h1.235zm3.344 0v-1.235h-1.235V15h1.235zm-9.422 9.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm7.088.914v-1.147H10.35c.065-.111.149-.226.253-.343.104-.117.35-.354.74-.712.39-.357.66-.631.81-.821.225-.288.39-.562.493-.824.104-.263.156-.539.156-.829 0-.51-.181-.936-.544-1.279-.364-.342-.863-.514-1.499-.514-.58 0-1.063.148-1.45.444-.387.296-.617.784-.69 1.463l1.23.124c.024-.36.112-.619.264-.774.152-.155.357-.233.615-.233.261 0 .465.074.613.222.148.148.222.36.222.635 0 .25-.085.501-.255.756-.126.185-.467.536-1.024 1.055-.691.641-1.154 1.156-1.388 1.544-.235.389-.375.8-.422 1.233h4.328zm2.334 0v-1.235h-1.235V24h1.235zM5.714 34.11c.624 0 1.11-.22 1.46-.66.421-.533.632-1.408.632-2.627 0-1.222-.21-2.096-.629-2.624-.351-.445-.839-.668-1.463-.668-.624 0-1.11.22-1.459.66-.422.533-.633 1.406-.633 2.619 0 1.236.192 2.095.576 2.577.384.482.89.723 1.516.723zm0-1.024a.614.614 0 0 1-.398-.14c-.115-.094-.211-.283-.287-.565-.077-.283-.115-.802-.115-1.558s.043-1.294.128-1.613c.064-.246.155-.417.272-.512a.617.617 0 0 1 .4-.143.61.61 0 0 1 .398.143c.116.095.211.284.288.567.076.283.114.802.114 1.558s-.043 1.292-.128 1.608c-.064.246-.155.417-.272.512a.617.617 0 0 1-.4.143zm4.992 1.024c.616 0 1.13-.2 1.543-.598.413-.398.62-.88.62-1.446 0-.39-.111-.722-.332-.997a1.5 1.5 0 0 0-.886-.532c.618-.337.927-.788.927-1.353 0-.399-.15-.756-.452-1.073-.366-.386-.853-.58-1.46-.58a2.25 2.25 0 0 0-.96.2 1.617 1.617 0 0 0-.667.55c-.16.232-.28.544-.359.933l1.139.194c.032-.282.123-.495.272-.642.15-.146.33-.22.54-.22.214 0 .386.065.515.194s.193.302.193.518c0 .255-.088.46-.264.613-.175.154-.43.227-.764.218l-.136 1.006c.22-.061.408-.092.566-.092.24 0 .444.09.611.272.167.182.25.428.25.739 0 .328-.086.589-.26.782a.833.833 0 0 1-.644.29.841.841 0 0 1-.607-.242c-.167-.16-.27-.394-.308-.698l-1.195.145c.062.542.284.98.668 1.316.384.335.867.503 1.45.503zm4.43-.11v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–roman list style"),tooltip:e("Lower–roman"),type:"lower-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.88 8.7V7.558h-1.234V8.7h1.234zm0 5.3V9.333h-1.234V14h1.234zm2.5 0v-1.235h-1.234V14h1.235zm-4.75 4.7v-1.142H8.395V18.7H9.63zm0 5.3v-4.667H8.395V24H9.63zm2.5-5.3v-1.142h-1.234V18.7h1.235zm0 5.3v-4.667h-1.234V24h1.235zm2.501 0v-1.235h-1.235V24h1.235zM7.38 28.7v-1.142H6.145V28.7H7.38zm0 5.3v-4.667H6.145V34H7.38zm2.5-5.3v-1.142H8.646V28.7H9.88zm0 5.3v-4.667H8.646V34H9.88zm2.5-5.3v-1.142h-1.234V28.7h1.235zm0 5.3v-4.667h-1.234V34h1.235zm2.501 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–roman list style"),tooltip:e("Upper-roman"),type:"upper-roman",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M11.916 15V8.558h-1.301V15h1.3zm2.465 0v-1.235h-1.235V15h1.235zM9.665 25v-6.442h-1.3V25
2h1.3zm2.5 0v-6.442h-1.3V25h1.3zm2.466 0v-1.235h-1.235V25h1.235zm-7.216 9v-6.442h-1.3V34h1.3zm2.5 0v-6.442h-1.3V34h1.3zm2.501 0v-6.442h-1.3V34h1.3zm2.465 0v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the lower–latin list style"),tooltip:e("Lower-latin"),type:"lower-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="M9.62 14.105c.272 0 .528-.05.768-.153s.466-.257.677-.462c.009.024.023.072.044.145.047.161.086.283.119.365h1.221a2.649 2.649 0 0 1-.222-.626c-.04-.195-.059-.498-.059-.908l.013-1.441c0-.536-.055-.905-.165-1.105-.11-.201-.3-.367-.569-.497-.27-.13-.68-.195-1.23-.195-.607 0-1.064.108-1.371.325-.308.217-.525.55-.65 1.002l1.12.202c.076-.217.176-.369.299-.455.123-.086.294-.13.514-.13.325 0 .546.05.663.152.118.101.176.27.176.508v.123c-.222.093-.622.194-1.2.303-.427.082-.755.178-.982.288-.227.11-.403.268-.53.474a1.327 1.327 0 0 0-.188.706c0 .398.138.728.415.988.277.261.656.391 1.136.391zm.368-.87a.675.675 0 0 1-.492-.189.606.606 0 0 1-.193-.448c0-.176.08-.32.241-.435.106-.07.33-.142.673-.215a7.19 7.19 0 0 0 .751-.19v.247c0 .296-.016.496-.048.602a.773.773 0 0 1-.295.409 1.07 1.07 0 0 1-.637.22zm4.645.765v-1.235h-1.235V14h1.235zM10.2 25.105c.542 0 1.003-.215 1.382-.646.38-.43.57-1.044.57-1.84 0-.771-.187-1.362-.559-1.774a1.82 1.82 0 0 0-1.41-.617c-.522 0-.973.216-1.354.65v-2.32H7.594V25h1.147v-.686a1.9 1.9 0 0 0 .67.592c.26.133.523.2.79.2zm-.299-.975c-.354 0-.638-.164-.852-.492-.153-.232-.229-.59-.229-1.073 0-.468.098-.818.295-1.048a.93.93 0 0 1 .738-.345c.302 0 .55.118.743.354.193.236.29.62.29 1.154 0 .5-.096.868-.288 1.1-.192.233-.424.35-.697.35zm4.478.87v-1.235h-1.234V25h1.234zm-4.017 9.105c.6 0 1.08-.142 1.437-.426.357-.284.599-.704.725-1.261l-1.213-.207c-.061.326-.167.555-.316.688a.832.832 0 0 1-.576.2.916.916 0 0 1-.75-.343c-.185-.228-.278-.62-.278-1.173 0-.498.091-.853.274-1.066.183-.212.429-.318.736-.318.232 0 .42.061.565.184.145.123.238.306.28.55l1.216-.22c-.146-.501-.387-.874-.722-1.119-.336-.244-.788-.366-1.356-.366-.695 0-1.245.214-1.653.643-.407.43-.61 1.03-.61 1.8 0 .762.202 1.358.608 1.788.406.431.95.646 1.633.646zM14.633 34v-1.235h-1.235V34h1.235z"/></svg>'},{label:e("Toggle the upper–latin list style"),tooltip:e("Upper-latin"),type:"upper-latin",icon:'<svg viewBox="0 0 44 44" xmlns="http://www.w3.org/2000/svg"><path d="M35 29a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17zm0-9a1 1 0 0 1 1 1v1a1 1 0 0 1-1 1H18a1 1 0 0 1-1-1v-1a1 1 0 0 1 1-1h17z" fill-opacity=".163"/><path d="m7.88 15 .532-1.463h2.575L11.549 15h1.415l-2.58-6.442H9.01L6.5 15h1.38zm2.69-2.549H8.811l.87-2.39.887 2.39zM14.88 15v-1.235h-1.234V15h1.234zM9.352 25c.83-.006 1.352-.02 1.569-.044.346-.038.636-.14.872-.305.236-.166.422-.387.558-.664.137-.277.205-.562.205-.855 0-.372-.106-.695-.317-.97-.21-.276-.512-.471-.905-.585a1.51 1.51 0 0 0 .661-.567 1.5 1.5 0 0 0 .244-.83c0-.28-.066-.53-.197-.754a1.654 1.654 0 0 0-.495-.539 1.676 1.676 0 0 0-.672-.266c-.25-.042-.63-.063-1.14-.063H7.158V25h2.193zm.142-3.88H8.46v-1.49h.747c.612 0 .983.007 1.112.022.217.026.38.102.49.226.11.125.165.287.165.486a.68.68 0 0 1-.192.503.86.86 0 0 1-.525.23 11.47 11.47 0 0 1-.944.023h.18zm.17 2.795H8.46v-1.723h1.05c.592 0 .977.03 1.154.092.177.062.313.16.406.295a.84.84 0 0 1 .14.492c0 .228-.06.41-.181.547a.806.806 0 0 1-.473.257c-.126.026-.423.04-.892.04zM14.88 25v-1.235h-1.234V25h1.234zm-5.018 9.11c.691 0 1.262-.17 1.711-.512.45-.341.772-.864.965-1.567l-1.261-.4c-.109.472-.287.818-.536 1.037-.25.22-.547.33-.892.33-.47 0-.85-.173-1.143-.519-.293-.345-.44-.925-.44-1.74 0-.767.15-1.322.447-1.665.297-.343.684-.514 1.162-.514.346 0 .64.096.881.29.242.193.4.457.477.79l1.288-.307c-.147-.516-.367-.911-.66-1.187-.492-.465-1.132-.698-1.92-.698-.902 0-1.63.296-2.184.89-.554.593-.83 1.426-.83 2.498 0 1.014.275 1.813.825 2.397.551.585 1.254.877 2.11.877zM14.88 34v-1.235h-1.234V34h1.234z"/></svg>'}]}))}}],[{key:"pluginName",get:function(){return"ListPropertiesUI"}}]),n}(be);function py(t){var e=t.editor,n=t.parentCommandName,i=t.buttonLabel,o=t.buttonIcon,r=t.styleGridAri
2aLabel,a=t.styleDefinitions,s=e.commands.get(n);return function(t){var l=Ad(t,id),c=l.buttonView;l.bind("isEnabled").to(s),l.class="ck-list-styles-dropdown",c.on("execute",(function(){e.execute(n),e.editing.view.focus()})),c.set({label:i,icon:o,tooltip:!0,isToggleable:!0}),c.bind("isOn").to(s,"value",(function(t){return!!t}));var u=function(t){var e,n=t.editor,i=t.dropdownView,o=t.parentCommandName,r=t.styleDefinitions,a=t.styleGridAriaLabel,s=n.locale,l=n.config.get("list.properties");if("numberedList"!=o&&(l.startIndex=!1,l.reversed=!1),l.styles){var c=n.commands.get("listStyle"),u=function(t){var e=t.editor,n=t.listStyleCommand,i=t.parentCommandName,o=e.locale,r=e.commands.get(i);return function(t){var i=t.label,a=t.type,s=t.icon,l=t.tooltip,c=new Hu(o);return c.set({label:i,icon:s,tooltip:l}),n.on("change:value",(function(){c.isOn=n.value===a})),c.on("execute",(function(){r.value?n.value!==a?e.execute("listStyle",{type:a}):e.execute("listStyle",{type:n._defaultType}):e.model.change((function(){e.execute("listStyle",{type:a})})),e.editing.view.focus()})),c}}({editor:n,parentCommandName:o,listStyleCommand:c});e=r.map(u)}var d=new dy(s,{styleGridAriaLabel:a,enabledProperties:l,styleButtonViews:e});if(l.startIndex){var h=n.commands.get("listStart");d.startIndexFieldView.bind("isEnabled").to(h),d.startIndexFieldView.fieldView.bind("value").to(h),d.on("listStart",(function(t,e){return n.execute("listStart",e)}))}if(l.reversed){var f=n.commands.get("listReversed");d.reversedSwitchButtonView.bind("isEnabled").to(f),d.reversedSwitchButtonView.bind("isOn").to(f,"value"),d.on("listReversed",(function(){var t=f.value;n.execute("listReversed",{reversed:!t})}))}return d.delegate("execute").to(i),d}({editor:e,dropdownView:l,parentCommandName:n,styleGridAriaLabel:r,styleDefinitions:a});return l.panelView.children.add(u),l}}function my(t,e){return function(t){t.on("attribute:url:media",n)};function n(n,i,o){if(o.consumable.consume(i.item,n.name)){var r=i.attributeNewValue,a=o.writer,s=o.mapper.toViewElement(i.item),l=m(s.getChildren()).find((function(t){return t.getCustomProperty("media-content")}));a.remove(l);var c=t.getMediaViewElement(a,r,e);a.insert(a.createPositionAt(s,0),c)}}}function gy(t){var e=t.getSelectedElement();return e&&function(t){return!!t.getCustomProperty("media")&&Ep(t)}(e)?e:null}function vy(t,e,n,i){return t.createContainerElement("figure",{class:"media"},[e.getMediaViewElement(t,n,i),t.createSlot()])}function ky(t){var e=t.getSelectedElement();return e&&e.is("element","media")?e:null}function by(t,e,n){t.change((function(i){var o=i.createElement("media",{url:e});t.insertContent(o,n),i.setSelection(o,"on")}))}var yy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=ky(e);this.value=n?n.getAttribute("url"):null,this.isEnabled=function(t){var e=t.getSelectedElement();return!!e&&"media"===e.name}(e)||function(t,e){var n=Pp(t,e).start.parent;return n.isEmpty&&!e.schema.isLimit(n)&&(n=n.parent),e.schema.checkChild(n,"media")}(e,t)}},{key:"execute",value:function(t){var e=this.editor.model,n=e.document.selection,i=ky(n);i?e.change((function(e){e.setAttribute("url",t,i)})):by(e,t,Pp(n,e))}}]),n}(_e),_y=function(){function t(e,n){I(this,t);var i=n.providers,o=n.extraProviders||[],r=new Set(n.removeProviders),a=i.concat(o).filter((function(t){var e=t.name;return e?!r.has(e):(E("media-embed-no-provider-name",{provider:t}),!1)}));this.locale=e,this.providerDefinitions=a}return S(t,[{key:"hasMedia",value:function(t){return!!this._getMedia(t)}},{key:"getMediaViewElement",value:function(t,e,n){return this._getMedia(e).getViewElement(t,n)}},{key:"_getMedia",value:function(t){if(!t)return new wy(this.locale);t=t.trim();var e,n=p(this.providerDefinitions);try{for(n.s();!(e=n.n()).done;){var i,o=e.value,r=o.html,a=p(ei(o.url));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=this._getUrlMatches(t,s);if(l)return new wy(this.locale,t,l,r)}}catch(t){a.e(t)}finally{a.f()}}}catch(t){n.e(t)}finally{n.f()}return null}},{key:"_getUrlMatches",value:function(t,e){var n=t.match(e);if(n)return n;var i=t.replace(/^https?:\/\//,"");return(n=i.match(e))||((n=(i=i.replace(/^www\./,"")).match(e))||null)}}]),t}(),wy=function(){function t(e,n,i,o){I(this,t),this.url=this._getValidUrl(n),this._t=e.t,this._match=i,this._previewRenderer=o}
2return S(t,[{key:"getViewElement",value:function(t,e){var n,i={};if(e.renderForEditingView||e.renderMediaPreview&&this.url&&this._previewRenderer){this.url&&(i["data-oembed-url"]=this.url),e.renderForEditingView&&(i.class="ck-media__wrapper");var o=this._getPreviewHtml(e);n=t.createRawElement("div",i,(function(t,e){e.setContentOf(t,o)}))}else this.url&&(i.url=this.url),n=t.createEmptyElement(e.elementName,i);return t.setCustomProperty("media-content",!0,n),n}},{key:"_getPreviewHtml",value:function(t){return this._previewRenderer?this._previewRenderer(this._match):this.url&&t.renderForEditingView?this._getPlaceholderHtml():""}},{key:"_getPlaceholderHtml",value:function(){var t=new ju,e=new Fu;return t.text=this._t("Open media in new tab"),e.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.
2637 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>',e.viewBox="0 0 64 42",new gu({tag:"div",attributes:{class:"ck ck-reset_all ck-media__placeholder"},children:[{tag:"div",attributes:{class:"ck-media__placeholder__icon"},children:[e]},{tag:"a",attributes:{class:"ck-media__placeholder__url",target:"_blank",rel:"noopener noreferrer",href:this.url},children:[{tag:"span",attributes:{class:"ck-media__placeholder__url__text"},children:[this.url]},t]}]}).render().outerHTML}},{key:"_getValidUrl",value:function(t){return t?t.match(/^https?/)?t:"https://"+t:null}}]),t}(),Cy=r(952);fr()(Cy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Cy.Z.locals;var Ay=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("mediaEmbed",{elementName:"oembed",providers:[{name:"dailymotion",url:/^dailymotion\.com\/video\/(\w+)/,html:function(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; "><iframe src="https://www.dailymotion.com/embed/video/'.concat(t[1],'" title=').concat("FrameDaily-"+Date.now(),' 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(t){return'<div style="position: relative; padding-bottom: 100%; height: 0; padding-bottom: 126%;"><iframe src="https://open.spotify.com/embed/'.concat(t[1],'" title=').concat("FrameSpoti-"+Date.now(),' style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;" frameborder="0" allowtransparency="true" allow="encrypted-media"></iframe></div>')}},{name:"youtube",url:[/^(?:www\.)?(?:m\.)?youtube\.com\/watch\?(?:.*&)?v=([\w-]+)/,/^(?:www\.)?(?:m\.)?youtube\.com\/embed\/([\w-]+)/,/^(?:www\.)?(?:m\.)?youtube\.com\/v\/([\w-]+)/,/^(?:www\.)?(?:m\.)?youtube\.com\/shorts\/([\w-]+)/,/^(?:www\.)?youtu\.be\/([\w-]+)/,/^(?:www\.)?youtube-nocookie\.com\/embed\/([\w-]+)/],html:function(t){return'<div style="position: relative; height: 0; padding-bottom: 56.2493%;">\n                          <iframe\n                            src="https://www.youtube-nocookie.com/embed/'.concat(t[1],'"\n                            title="').concat("FrameYoutube-"+Date.now(),'"\n                            style="position: absolute; width: 100%; height: 100%; top: 0; left: 0;"\n                            frameborder="0"\n                            referrerpolicy="strict-origin-when-cross-origin"\n                            allow="autoplay; encrypted-media; picture-in-picture"\n                            allowfullscreen>\n                          </iframe>\n                        </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(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],'" title=').concat("FrameVimeo-"+Date.now(),' 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/}]}),i.registry=new _y(t.locale,t.config.get("mediaEmbed")),i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.t,i=t.conversion,o=t.config.get("mediaEmbed.previewsInData"),r=t.config.get("mediaEmbed.elementName"),a=this.registry;t.commands.add("mediaEmbed",new yy(t)),e.register("media",{isObject:!0,isBlock:!0,allowWhere:"$block",allowAttributes:["url"]}
2),i.for("dataDowncast").elementToStructure({model:"media",view:function(t,e){var n=e.writer,i=t.getAttribute("url");return vy(n,a,i,{elementName:r,renderMediaPreview:i&&o})}}),i.for("dataDowncast").add(my(a,{elementName:r,renderMediaPreview:o})),i.for("editingDowncast").elementToStructure({model:"media",view:function(t,e){var i=e.writer,o=t.getAttribute("url");return function(t,e,n){return e.setCustomProperty("media",!0,t),Sp(t,e,{label:n})}(vy(i,a,o,{elementName:r,renderForEditingView:!0}),i,n("media widget"))}}),i.for("editingDowncast").add(my(a,{elementName:r,renderForEditingView:!0})),i.for("upcast").elementToElement({view:function(t){return["oembed",r].includes(t.name)&&t.getAttribute("url")?{name:!0}:null},model:function(t,e){var n=e.writer,i=t.getAttribute("url");if(a.hasMedia(i))return n.createElement("media",{url:i})}}).elementToElement({view:{name:"div",attributes:{"data-oembed-url":!0}},model:function(t,e){var n=e.writer,i=t.getAttribute("data-oembed-url");if(a.hasMedia(i))return n.createElement("media",{url:i})}}).add((function(t){t.on("element:figure",(function(t,e,n){if(n.consumable.consume(e.viewItem,{name:!0,classes:"media"})){var i=n.convertChildren(e.viewItem,e.modelCursor),o=i.modelRange,r=i.modelCursor;e.modelRange=o,e.modelCursor=r,Ba(o.getItems())||n.consumable.revert(e.viewItem,{name:!0,classes:"media"})}}))}))}}],[{key:"pluginName",get:function(){return"MediaEmbedEditing"}}]),n}(be),xy=/^(?:http(s)?:\/\/)?[\w-]+\.[\w-.~:/?#[\]@!$&'()*+,;=%]+$/,Dy=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._timeoutId=null,i._positionToInsert=null,i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(){var e=n.selection.getFirstRange(),i=uc.fromPosition(e.start);i.stickiness="toPrevious";var o=uc.fromPosition(e.end);o.stickiness="toNext",n.once("change:data",(function(){t._embedMediaBetweenPositions(i,o),i.detach(),o.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(function(){t._timeoutId&&(br.window.clearTimeout(t._timeoutId),t._positionToInsert.detach(),t._timeoutId=null,t._positionToInsert=null)}),{priority:"high"})}},{key:"_embedMediaBetweenPositions",value:function(t,e){var n,i=this,o=this.editor,r=o.plugins.get(Ay).registry,a=new vs(t,e),s=a.getWalker({ignoreElementEnd:!0}),l="",c=p(s);try{for(c.s();!(n=c.n()).done;){var u=n.value;u.item.is("$textProxy")&&(l+=u.item.data)}}catch(t){c.e(t)}finally{c.f()}(l=l.trim()).match(xy)&&r.hasMedia(l)&&o.commands.get("mediaEmbed").isEnabled?(this._positionToInsert=uc.fromPosition(t),this._timeoutId=br.window.setTimeout((function(){o.model.change((function(t){var e;i._timeoutId=null,t.remove(a),a.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(e=i._positionToInsert),by(o.model,l,e),i._positionToInsert.detach(),i._positionToInsert=null})),o.plugins.get("Delete").requestUndoOnBackspace()}),100)):a.detach()}}],[{key:"requires",get:function(){return[im,Vf,fm]}},{key:"pluginName",get:function(){return"AutoMediaEmbed"}}]),n}(be),Ey=r(3525);fr()(Ey.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ey.Z.locals;var Sy=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),o=e.call(this,i);var r=i.t;return o.focusTracker=new Pa,o.keystrokes=new La,o.set("mediaURLInputValue",""),o.urlInputView=o._createUrlInput(),o.saveButtonView=o._createButton(r("Save"),jc,"ck-button-save"),o.saveButtonView.type="submit",o.saveButtonView.bind("isEnabled").to(_(o),"mediaURLInputValue",(function(t){return!!t})),o.cancelButtonView=o._createButton(r("Cancel"),Fc,"ck-button-cancel","cancel"),o._focusables=new fu,o._focusCycler=new Ku({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),o._validators=t,o.setTemplate({tag:"form",attributes:{class:["ck","ck-media-form","ck-responsive-form"],tabindex:"-1"},children:[o.urlInputView,o.saveButtonView,o.cancelButtonView]}),du(_(o)),o}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),hu({view:this}),[this.urlInputView,this.saveButtonView,this.cancelButtonView].forEac
2h((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element);var e=function(t){return t.stopPropagation()};this.keystrokes.set("arrowright",e),this.keystrokes.set("arrowleft",e),this.keystrokes.set("arrowup",e),this.keystrokes.set("arrowdown",e),this.listenTo(this.urlInputView.element,"selectstart",(function(t,e){e.stopPropagation()}),{priority:"high"})}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"url",get:function(){return this.urlInputView.fieldView.element.value.trim()},set:function(t){this.urlInputView.fieldView.element.value=t.trim()}},{key:"isValid",value:function(){this.resetFormStatus();var t,e=p(this._validators);try{for(e.s();!(t=e.n()).done;){var n=(0,t.value)(this);if(n)return this.urlInputView.errorText=n,!1}}catch(t){e.e(t)}finally{e.f()}return!0}},{key:"resetFormStatus",value:function(){this.urlInputView.errorText=null,this.urlInputView.infoText=this._urlInputViewInfoDefault}},{key:"_createUrlInput",value:function(){var t=this,e=this.locale.t,n=new Vd(this.locale,Hd),i=n.fieldView;return this._urlInputViewInfoDefault=e("Paste the media URL in the input."),this._urlInputViewInfoTip=e("Tip: Paste the URL into the content to embed faster."),n.label=e("Media URL"),n.infoText=this._urlInputViewInfoDefault,i.on("input",(function(){n.infoText=i.element.value?t._urlInputViewInfoTip:t._urlInputViewInfoDefault,t.mediaURLInputValue=i.element.value.trim()})),n}},{key:"_createButton",value:function(t,e,n,i){var o=new Hu(this.locale);return o.set({label:t,icon:e,tooltip:!0}),o.extendTemplate({attributes:{class:n}}),i&&o.delegate("execute").to(this,i),o}}]),n}(mu),Ty=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.commands.get("mediaEmbed"),i=e.plugins.get(Ay).registry;e.ui.componentFactory.add("mediaEmbed",(function(o){var r=Ad(o),a=new Sy(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.")}]}(e.t,i),e.locale);return t._setUpDropdown(r,a,n,e),t._setUpForm(r,a,n),r}))}},{key:"_setUpDropdown",value:function(t,e,n){var i=this.editor,o=i.t,r=t.buttonView;function a(){i.editing.view.focus(),t.isOpen=!1}t.bind("isEnabled").to(n),t.panelView.children.add(e),r.set({label:o("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}),r.on("open",(function(){e.disableCssTransitions(),e.url=n.value||"",e.urlInputView.fieldView.select(),e.focus(),e.enableCssTransitions()}),{priority:"low"}),t.on("submit",(function(){e.isValid()&&(i.execute("mediaEmbed",e.url),a())})),t.on("change:isOpen",(function(){return e.resetFormStatus()})),t.on("cancel",(function(){return a()}))}},{key:"_setUpForm",value:function(t,e,n){e.delegate("submit","cancel").to(t),e.urlInputView.bind("value").to(n,"value"),e.urlInputView.bind("isReadOnly").to(n,"isEnabled",(function(t){return!t}))}}],[{key:"requires",get:function(){return[Ay]}},{key:"pluginName",get:function(){return"MediaEmbedUI"}}]),n}(be),Iy=r(5777);function zy(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 My(t,e,n){var i=e.parent,o=n.createElement(t.type),r=i.getChildIndex(e)+1;return n.insertChild(r,o,i),t.style&&n.setStyle("list-style-type",t.style,o),t.startIndex&&t.startIndex>1&&n.setAttribute("start",t.startIndex,o),o}function By(t){var e={},n=t.getStyle("mso-list");if(n){var i=n.match(/(^|\s{1,100})l(\d+)/i),o=n.match(/\s{0,100}lfo(\d+)/i),r=n.match(/\s{0,100}level(\d+)/i);i&&o&&r&&(e.id=i[2],e.order=o[1],e.indent=r[1])}return e}fr()(Iy.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Iy.Z.locals;var Py=/id=("|')docs-internal-guid-[-0-9a-f]+("|')/i,Ly=function(){function t(e){I(this,t),this.document=e}
2return S(t,[{key:"isActive",value:function(t){return Py.test(t)}},{key:"execute",value:function(t){var e=new Sh(this.document),n=t._parsedData.body;!function(t,e){var n,i=p(t.getChildren());try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.is("element","b")&&"normal"===o.getStyle("font-weight")){var r=t.getChildIndex(o);e.remove(o),e.insertChild(r,o.getChildren(),t)}}}catch(t){i.e(t)}finally{i.f()}}(n,e),function(t,e){var n,i=p(e.createRangeIn(t));try{for(i.s();!(n=i.n()).done;){var o=n.value.item;if(o.is("element","li")){var r=o.getChild(0);r&&r.is("element","p")&&e.unwrapElement(r)}}}catch(t){i.e(t)}finally{i.f()}}(n,e),t.content=n}}]),t}();function Ny(t){return btoa(t.match(/\w{2}/g).map((function(t){return String.fromCharCode(parseInt(t,16))})).join(""))}var Oy=/<meta\s*name="?generator"?\s*content="?microsoft\s*word\s*\d+"?\/?>/i,Fy=/xmlns:o="urn:schemas-microsoft-com/i,Ry=function(){function t(e){I(this,t),this.document=e}return S(t,[{key:"isActive",value:function(t){return Oy.test(t)||Fy.test(t)}},{key:"execute",value:function(t){var e=t._parsedData,n=e.body;(function(t,e){if(t.childCount){var n=new Sh(t.document),i=function(t,e){var n,i=e.createRangeIn(t),o=new fi({name:/^p|h\d+$/,styles:{"mso-list":/.*/}}),r=[],a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"===s.type&&o.match(s.item)){var l=By(s.item);r.push({element:s.item,id:l.id,order:l.order,indent:l.indent})}}}catch(t){a.e(t)}finally{a.f()}return r}(t,n);if(i.length){var o=null,r=1;i.forEach((function(t,a){var s,l,c=function(t,e){if(!t)return!0;if(t.id!==e.id)return e.indent-t.indent!=1;var n,i=e.element.previousSibling;return!i||!((n=i).is("element","ol")||n.is("element","ul"))}(i[a-1],t),u=(l=t,(s=c?null:i[a-1])?l.indent-s.indent:l.indent-1);if(c&&(o=null,r=1),!o||0!==u){var d=function(t,e){var n=new RegExp("@list l".concat(t.id,":level").concat(t.indent,"\\s*({[^}]*)"),"gi").exec(e),i="decimal",o="ol",r=null;if(n&&n[1]){var a=/mso-level-number-format:([^;]{0,100});/gi.exec(n[1]);if(a&&a[1]&&(o="bullet"!==(i=a[1].trim())&&"image"!==i?"ol":"ul"),"bullet"===i){var s=function(t){var e=function(t){if(t.getChild(0).is("$text"))return null;var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.is("element","span")){var o=i.getChild(0);return o.is("$text")?o:o.getChild(0)}}}catch(t){n.e(t)}finally{n.f()}}(t);if(!e)return null;var n=e._data;return"o"===n?"circle":"·"===n?"disc":"§"===n?"square":null}(t.element);s&&(i=s)}else{var l=/mso-level-start-at:\s{0,100}([0-9]{0,10})\s{0,100};/gi.exec(n[1]);l&&l[1]&&(r=parseInt(l[1]))}}return{type:o,startIndex:r,style:zy(i)}}(t,e);if(o){if(t.indent>r){var h=o.getChild(o.childCount-1),f=h.getChild(h.childCount-1);o=My(d,f,n),r+=1}else if(t.indent<r){var m=r-t.indent;o=function(t,e){var n,i=null,o=0,r=p(t.getAncestors({parentFirst:!0}));try{for(r.s();!(n=r.n()).done;){var a=n.value;if("ul"!==a.name&&"ol"!==a.name||o++,o===e){i=a;break}}}catch(t){r.e(t)}finally{r.f()}return i}(o,m),r=parseInt(t.indent)}}else o=My(d,t.element,n);t.indent<=r&&(o.is("element",d.type)||(o=n.rename(d.type,o)))}var g=function(t,e){return function(t,e){var n,i=new fi({name:"span",styles:{"mso-list":"Ignore"}}),o=p(e.createRangeIn(t));try{for(o.s();!(n=o.n()).done;){var r=n.value;"elementStart"===r.type&&i.match(r.item)&&e.remove(r.item)}}catch(t){o.e(t)}finally{o.f()}}(t,e),e.rename("li",t)}(t.element,n);n.appendChild(g,o)}))}}})(n,e.stylesString),function(t,e){if(t.childCount){var n=new Sh,i=function(t,e){var n,i=e.createRangeIn(t),o=new fi({name:/v:(.+)/}),r=[],a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;if("elementStart"==s.type){var l=s.item,c=l.previousSibling&&l.previousSibling.name||null;o.match(l)&&l.getAttribute("o:gfxdata")&&"v:shapetype"!==c&&r.push(s.item.getAttribute("id"))}}}catch(t){a.e(t)}finally{a.f()}return r}(t,n);!function(t,e,n){var i,o=n.createRangeIn(e),r=new fi({name:"img"}),a=[],s=p(o);try{for(s.s();!(i=s.n()).done;){var l=i.value;if(r.match(l.item)){var c=l.item,u=c.getAttribute("v:shapes")?c.getAttribute("v:shapes").split(" "):[];u.length&&u.every((function(e){return t.indexOf(e)>-1}))?a.push(c):c.getAttribute("src")||a.push(c)}}}catch(t){s.e(t)}finally{s.f()}for(var d=0,h=a;d<h.length;d++){var f=h[d];n.remove(f)}}(i,t,n),function(t,e){var n,i=e.createRangeIn(t),o=new fi({name:/v:(.+)/}),r=[],a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;"elementStart"==s.type&&o.match(s.item)&&r.push(s.item)}}catch(t){a.e(t)}finally{a.f()}for(var l=0,c=r;l<c.length;l++){var u=c[l];e.remove(u)}}(t,n);var o=function(t,e){var n,i=e.createRangeIn(t),o=new fi({name:"img"}),r=[],a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value;o.match(s.item)&&s.item.getAttribute("src").startsWith("file://")&&r.push(s.item)}}catch(t){a.e(t)}finally{a.f()}return r}(t,n);o.length&&function(t,e,n){if(t.length===e.length)for(var i=0;i<t.length;i++){var o="data:".concat(e[i].type,";base64,").concat(Ny(e[i].hex));n.setAttribute("src",o,t[i])}}(o,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"),i=t.match(n),o=[];if(i){var r,a=p(i);try{for(a.s();!(r=a.n()).done;){var s=r.value,l=!1;s.includes("\\pngblip")?l="image/png":s.includes("\\jpegblip")&&(l="image/jpeg"),l&&o.push({hex:s.replace(e,"").replace(/[^\da-fA-F]/g,""),type:l})}}catch(t){a.e(t)}finally{a.f()}}return o}(e),n)}}(n,t.dataTransfer.getData("text/rtf")),t.content=n}}]),t}();function jy(t){return t.replace(/<span(?: class="Apple-converted-s
2pace"|)>(\s+)<\/span>/g,(function(t,e){return 1===e.length?" ":Array(e.length+1).join("  ").substr(0,e.length)}))}var Vy="removeFormat",Hy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Vy,(function(i){var o=e.commands.get(Vy),r=new Hu(i);return r.set({label:n("Remove Format"),icon:'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="M8.69 14.915c.053.052.173.083.36.093a.366.366 0 0 1 .345.485l-.003.01a.738.738 0 0 1-.697.497h-2.67a.374.374 0 0 1-.353-.496l.013-.038a.681.681 0 0 1 .644-.458c.197-.012.325-.043.386-.093a.28.28 0 0 0 .072-.11L9.592 4.5H6.269c-.359-.017-.609.013-.75.09-.142.078-.289.265-.442.563-.192.29-.516.464-.864.464H4.17a.43.43 0 0 1-.407-.569L4.46 3h13.08l-.62 2.043a.81.81 0 0 1-.775.574h-.114a.486.486 0 0 1-.486-.486c.001-.284-.054-.464-.167-.54-.112-.076-.367-.106-.766-.091h-3.28l-2.68 10.257c-.006.074.007.127.038.158zM3 17h8a.5.5 0 1 1 0 1H3a.5.5 0 1 1 0-1zm11.299 1.17a.75.75 0 1 1-1.06-1.06l1.414-1.415-1.415-1.414a.75.75 0 0 1 1.06-1.06l1.415 1.414 1.414-1.415a.75.75 0 1 1 1.06 1.06l-1.413 1.415 1.414 1.415a.75.75 0 0 1-1.06 1.06l-1.415-1.414-1.414 1.414z"/></svg>',tooltip:!0}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute(Vy),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"RemoveFormatUI"}}]),n}(be),Uy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model;this.isEnabled=!!Ba(this._getFormattingItems(t.document.selection,t.schema))}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.schema;e.change((function(i){var o,r=p(t._getFormattingItems(e.document.selection,n));try{for(r.s();!(o=r.n()).done;){var a=o.value;if(a.is("selection")){var s,l=p(t._getFormattingAttributes(a,n));try{for(l.s();!(s=l.n()).done;){var c=s.value;i.removeSelectionAttribute(c)}}catch(t){l.e(t)}finally{l.f()}}else{var u,d=i.createRangeOn(a),h=p(t._getFormattingAttributes(a,n));try{for(h.s();!(u=h.n()).done;){var f=u.value;i.removeAttribute(f,d)}}catch(t){h.e(t)}finally{h.f()}}}}catch(t){r.e(t)}finally{r.f()}}))}},{key:"_getFormattingItems",value:h().mark((function t(e,n){var i,o,r,a,s,l,c,u,d,f,m=this;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=function(t){return!!Ba(m._getFormattingAttributes(t,n))},o=p(e.getRanges()),t.prev=2,o.s();case 4:if((r=o.n()).done){t.next=27;break}a=r.value,s=p(a.getItems()),t.prev=7,s.s();case 9:if((l=s.n()).done){t.next=17;break}if(c=l.value,t.t0=!n.isBlock(c)&&i(c),!t.t0){t.next=15;break}return t.next=15,c;case 15:t.next=9;break;case 17:t.next=22;break;case 19:t.prev=19,t.t1=t.catch(7),s.e(t.t1);case 22:return t.prev=22,s.f(),t.finish(22);case 25:t.next=4;break;case 27:t.next=32;break;case 29:t.prev=29,t.t2=t.catch(2),o.e(t.t2);case 32:return t.prev=32,o.f(),t.finish(32);case 35:u=p(e.getSelectedBlocks()),t.prev=36,u.s();case 38:if((d=u.n()).done){t.next=46;break}if(f=d.value,t.t3=i(f),!t.t3){t.next=44;break}return t.next=44,f;case 44:t.next=38;break;case 46:t.next=51;break;case 48:t.prev=48,t.t4=t.catch(36),u.e(t.t4);case 51:return t.prev=51,u.f(),t.finish(51);case 54:if(t.t5=i(e),!t.t5){t.next=58;break}return t.next=58,e;case 58:case"end":return t.stop()}}),t,null,[[2,29,32,35],[7,19,22,25],[36,48,51,54]])}))},{key:"_getFormattingAttributes",value:h().mark((function t(e,n){var i,o,r,a,s;return h().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:i=p(e.getAttributes()),t.prev=1,i.s();case 3:if((o=i.n()).done){t.next=12;break}if(r=f(o.value,1),a=r[0],s=n.getAttributeProperties(a),t.t0=s&&s.isFormatting,!t.t0){t.next=10;break}return t.next=10,a;case 10:t.next=3;break;case 12:t.next=17;break;case 14:t.prev=14,t.t1=t.catch(1),i.e(t.t1);case 17:return t.prev=17,i.f(),t.finish(17);case 20:case"end":return t.stop()}}),t,null,[[1,14,17,20]])}))}]),n}(_e),Zy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.commands.add("removeFormat",new Uy(t))}}],[{key:"pluginName",get:function(){return"RemoveFormatEditing"}}]),n}(be),qy="strikethrough",Wy=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:qy}),t.model.schema.setAttributeProperties(qy,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:qy,view:"s",upcastAlso:["del","strike",{styles:{"text-decoration":"line-through"}}]}),t.commands.add(qy,new fg(t,qy)),t.keystrokes.set("CTRL+SHIFT+X","strikethrough")}}],[{key:"pluginName",get:function(){return"StrikethroughEditing"}}]),n}(be),Gy="strikethrough",$y=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(Gy,(function(i){var o=e.commands.get(Gy),r=new Hu(i);return r.set({label:n("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.
21 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}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute(Gy),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"StrikethroughUI"}}]),n}(be);function Yy(t,e,n,i){e>(arguments.length>4&&void 0!==arguments[4]?arguments[4]:1)?i.setAttribute(t,e,n):i.removeAttribute(t,n)}function Ky(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=t.createElement("tableCell",n);return t.insertElement("paragraph",i),t.insert(i,e),i}function Qy(t,e){var n=e.parent.parent,i=parseInt(n.getAttribute("headingColumns")||0),o=t.getCellLocation(e).column;return!!i&&o<i}function Jy(t){return function(e){e.on("element:".concat(t),(function(t,e,n){if(e.modelRange&&e.viewItem.isEmpty){var i=e.modelRange.start.nodeAfter,o=n.writer.createPositionAt(i,0);n.writer.insertElement("paragraph",o)}}),{priority:"low"})}}function Xy(t){for(var e=0,n=0,i=Array.from(t.getChildren()).filter((function(t){return"th"===t.name||"td"===t.name}));n<i.length&&"th"===i[n].name;){var o=i[n];e+=parseInt(o.getAttribute("colspan")||1),n++}return e}var t_=function(t){function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,e),this._table=t,this._startRow=void 0!==n.row?n.row:n.startRow||0,this._endRow=void 0!==n.row?n.row:n.endRow,this._startColumn=void 0!==n.column?n.column:n.startColumn||0,this._endColumn=void 0!==n.column?n.column:n.endColumn,this._includeAllSlots=!!n.includeAllSlots,this._skipRows=new Set,this._row=0,this._rowIndex=0,this._column=0,this._cellIndex=0,this._spannedCells=new Map,this._nextCellAtColumn=-1}return S(e,[{key:Symbol.iterator,value:function(){return this}},{key:"next",value:function(){var t=this._table.getChild(this._rowIndex);if(!t||this._isOverEndRow())return{done:!0};if(!t.is("element","tableRow"))return this._rowIndex++,this.next();if(this._isOverEndColumn())return this._advanceToNextRow();var e=null,n=this._getSpanned();if(n)this._includeAllSlots&&!this._shouldSkipSlot()&&(e=this._formatOutValue(n.cell,n.row,n.column));else{var i=t.getChild(this._cellIndex);if(!i)return this._advanceToNextRow();var o=parseInt(i.getAttribute("colspan")||1),r=parseInt(i.getAttribute("rowspan")||1);(o>1||r>1)&&this._recordSpans(i,r,o),this._shouldSkipSlot()||(e=this._formatOutValue(i)),this._nextCellAtColumn=this._column+o}return this._column++,this._column==this._nextCellAtColumn&&this._cellIndex++,e||this.next()}},{key:"skipRow",value:function(t){this._skipRows.add(t)}},{key:"_advanceToNextRow",value:function(){return this._row++,this._rowIndex++,this._column=0,this._cellIndex=0,this._nextCellAtColumn=-1,this.next()}},{key:"_isOverEndRow",value:function(){return void 0!==this._endRow&&this._row>this._endRow}},{key:"_isOverEndColumn",value:function(){return void 0!==this._endColumn&&this._column>this._endColumn}},{key:"_formatOutValue",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this._row,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:this._column;return{done:!1,value:new e_(this,t,e,n)}}},{key:"_shouldSkipSlot",value:function(){var t=this._skipRows.has(this._row),e=this._row<this._startRow,n=this._column<this._startColumn,i=void 0!==this._endColumn&&this._column>this._endColumn;return t||e||n||i}},{key:"_getSpanned",value:function(){var t=this._spannedCells.get(this._row);return t&&t.get(this._column)||null}},{key:"_recordSpans",value:function(t,e,n){for(var i={cell:t,row:this._row,column:this._column},o=this._row;o<this._row+e;o++)for(var r=this._column;r<this._column+n;r++)o==this._row&&r==this._column||this._markSpannedCell(o,r,i)}},{key:"_markSpannedCell",value:function(t,e,n){this._spannedCells.has(t)||this._spannedCells.set(t,new Map),this._spannedCells.get(t).set(e,n)}}]),e}(),e_=function(){function t(e,n,i,o){I(this,t),this.cell=n,this.row=e._row,this.column=e._column,this.cellAnchorRow=i,this.cellAnchorColumn=o,this._cellIndex=e._cellIndex,this._rowIndex=e._rowIndex,this._table=e._table}
2return S(t,[{key:"isAnchor",get:function(){return this.row===this.cellAnchorRow&&this.column===this.cellAnchorColumn}},{key:"cellWidth",get:function(){return parseInt(this.cell.getAttribute("colspan")||1)}},{key:"cellHeight",get:function(){return parseInt(this.cell.getAttribute("rowspan")||1)}},{key:"rowIndex",get:function(){return this._rowIndex}},{key:"getPositionBefore",value:function(){return this._table.root.document.model.createPositionAt(this._table.getChild(this.row),this._cellIndex)}}]),t}();function n_(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return function(n,i){var o=i.writer,r=n.getAttribute("headingRows")||0,a=[];r>0&&a.push(o.createContainerElement("thead",null,o.createSlot((function(t){return t.is("element","tableRow")&&t.index<r})))),r<t.getRows(n)&&a.push(o.createContainerElement("tbody",null,o.createSlot((function(t){return t.is("element","tableRow")&&t.index>=r}))));var s=o.createContainerElement("figure",{class:"table"},[o.createContainerElement("table",null,a),o.createSlot((function(t){return!t.is("element","tableRow")}))]);return e.asWidget?function(t,e){return e.setCustomProperty("table",!0,t),Sp(t,e,{hasSelectionHandle:!0})}(s,o):s}}function i_(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,n){var i,o=n.writer,r=e.parent,a=r.parent,s=a.getChildIndex(r),l=new t_(a,{row:s}),c=a.getAttribute("headingRows")||0,u=a.getAttribute("headingColumns")||0,d=p(l);try{for(d.s();!(i=d.n()).done;){var h=i.value;if(h.cell==e){var f=h.row<c||h.column<u?"th":"td";return t.asWidget?Bp(o.createEditableElement(f),o):o.createContainerElement(f)}}}catch(t){d.e(t)}finally{d.f()}}}function o_(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(e,n){var i=n.writer,o=n.consumable,r=n.mapper;if(e.parent.is("element","tableCell")&&r_(e))return t.asWidget?i.createContainerElement("span",{class:"ck-table-bogus-paragraph"}):(o.consume(e,"insert"),void r.bindElements(e,r.toViewElement(e.parent)))}}function r_(t){return 1==t.parent.childCount&&!m(t.getAttributeKeys()).length}var a_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=t.document.selection,n=t.schema;this.isEnabled=function(t,e){var n=t.getFirstPosition().parent,i=n===n.root?n:n.parent;return e.checkChild(i,"table")}(e,n)}},{key:"execute",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=this.editor.model,n=e.document.selection,i=this.editor.plugins.get("TableUtils"),o=this.editor.config.get("table"),r=Pp(n,e),a=o.defaultHeadings.rows,s=o.defaultHeadings.columns;void 0===t.headingRows&&a&&(t.headingRows=a),void 0===t.headingColumns&&s&&(t.headingColumns=s),e.change((function(n){var o=i.createTable(n,t);e.insertContent(o,r),n.setSelection(n.createPositionAt(o.getNodeByPath([0,0,0]),0))}))}}]),n}(_e),s_=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,n),(i=e.call(this,t)).order=o.order||"below",i}return S(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="above"===this.order,o=n.getSelectionAffectedTableCells(e),r=n.getRowIndexes(o),a=i?r.first:r.last,s=o[0].findAncestor("table");n.insertRows(s,{at:i?a:a+1,copyStructureFromAbove:!i})}}]),n}(_e),l_=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,n),(i=e.call(this,t)).order=o.order||"right",i}return S(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection,e=!!this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(t).length;this.isEnabled=e}},{key:"execute",value:function(){var t=this.editor,e=t.model.document.selection,n=t.plugins.get("TableUtils"),i="left"===this.order,o=n.getSelectionAffectedTableCells(e),r=n.getColumnIndexes(o),a=i?r.first:r.last,s=o[0].findAnce
2stor("table");n.insertColumns(s,{columns:1,at:i?a:a+1})}}]),n}(_e),c_=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,n),(i=e.call(this,t)).direction=o.direction||"horizontally",i}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=1===t.length}},{key:"execute",value:function(){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)}}]),n}(_e);function u_(t,e,n){for(var i=e.startRow,o=e.startColumn,r=e.endRow,a=e.endColumn,s=n.createElement("table"),l=r-i+1,c=0;c<l;c++)n.insertElement("tableRow",s,"end");var u,d=p(m(new t_(t,{startRow:i,endRow:r,startColumn:o,endColumn:a,includeAllSlots:!0})));try{for(d.s();!(u=d.n()).done;){var h=u.value,f=h.row,g=h.column,v=h.cell,k=h.isAnchor,b=h.cellAnchorRow,y=h.cellAnchorColumn,_=f-i,w=s.getChild(_);if(k){var C=n.cloneElement(v);n.append(C,w),m_(C,f,g,r,a,n)}else(b<i||y<o)&&Ky(n,n.createPositionAt(w,"end"))}}catch(t){d.e(t)}finally{d.f()}return function(t,e,n,i,o){var r=parseInt(e.getAttribute("headingRows")||0);r>0&&Yy("headingRows",r-n,t,o,0);var a=parseInt(e.getAttribute("headingColumns")||0);a>0&&Yy("headingColumns",a-i,t,o,0)}(s,t,i,o,n),s}function d_(t,e){var n,i=[],o=p(new t_(t,{startRow:arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,endRow:e-1}));try{for(o.s();!(n=o.n()).done;){var r=n.value,a=r.row,s=r.cellHeight;a<e&&e<=a+s-1&&i.push(r)}}catch(t){o.e(t)}finally{o.f()}return i}function h_(t,e,n){var i=t.parent,o=i.parent,r=i.index,a=e-r,s={},l=parseInt(t.getAttribute("rowspan"))-a;l>1&&(s.rowspan=l);var c=parseInt(t.getAttribute("colspan")||1);c>1&&(s.colspan=c);var u,d,h=r+a,f=null,g=p(m(new t_(o,{startRow:r,endRow:h,includeAllSlots:!0})));try{for(g.s();!(d=g.n()).done;){var v=d.value,k=v.row,b=v.column;v.cell===t&&void 0===u&&(u=b),void 0!==u&&u===b&&k===h&&(f=Ky(n,v.getPositionBefore(),s))}}catch(t){g.e(t)}finally{g.f()}return Yy("rowspan",a,t,n),f}function f_(t,e){var n,i=[],o=p(new t_(t));try{for(o.s();!(n=o.n()).done;){var r=n.value,a=r.column,s=r.cellWidth;a<e&&e<=a+s-1&&i.push(r)}}catch(t){o.e(t)}finally{o.f()}return i}function p_(t,e,n,i){var o=n-e,r={},a=parseInt(t.getAttribute("colspan"))-o;a>1&&(r.colspan=a);var s=parseInt(t.getAttribute("rowspan")||1);s>1&&(r.rowspan=s);var l=Ky(i,i.createPositionAfter(t),r);return Yy("colspan",o,t,i),l}function m_(t,e,n,i,o,r){var a=parseInt(t.getAttribute("colspan")||1),s=parseInt(t.getAttribute("rowspan")||1);n+a-1>o&&Yy("colspan",o-n+1,t,r,1),e+s-1>i&&Yy("rowspan",i-e+1,t,r,1)}function g_(t,e){var n,i=e.getColumns(t),o=new Array(i).fill(0),r=p(new t_(t));try{for(r.s();!(n=r.n()).done;){o[n.value.column]++}}catch(t){r.e(t)}finally{r.f()}var a=o.reduce((function(t,e,n){return e?t:[].concat(m(t),[n])}),[]);if(a.length>0){var s=a[a.length-1];return e.removeColumns(t,{at:s}),!0}return!1}function v_(t,e){for(var n=[],i=e.getRows(t),o=0;o<i;o++)t.getChild(o).isEmpty&&n.push(o);if(n.length>0){var r=n[n.length-1];return e.removeRows(t,{at:r}),!0}return!1}function k_(t,e){g_(t,e)||v_(t,e)}function b_(t,e){var n=Array.from(new t_(t,{startColumn:e.firstColumn,endColumn:e.lastColumn,row:e.lastRow}));if(n.every((function(t){return 1===t.cellHeight})))return e.lastRow;var i=n[0].cellHeight-1;return e.lastRow+i}function y_(t,e){var n=Array.from(new t_(t,{startRow:e.firstRow,endRow:e.lastRow,column:e.lastColumn}));if(n.every((function(t){return 1===t.cellWidth})))return e.lastColumn;var i=n[0].cellWidth-1;return e.lastColumn+i}var __=function(t){k(n,t);var e=b(n);function n(t,i){var o;return I(this,n),(o=e.call(this,t)).direction=i.direction,o.isHorizontal="right"==o.direction||"left"==o.direction,o}return S(n,[{key:"refresh",value:function(){var t=this._getMergeableCell();this.value=t,this.isEnabled=!!t}},{key:"execute",value:function(){var t=this,e=this.editor.model,n=e.document,i=this.editor.plugins.get("TableUtils").getTableCellsContainingSelection(n.selection)[0],o=this.value,r=this.direction;e.change((function(e){var n="right"==r||"down"==r,a=n?i:o,s=n?o:i,l=s.parent;!function(t,e,n){w_(t)||(w_(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}(s,a,e);
2var c=t.isHorizontal?"colspan":"rowspan",u=parseInt(i.getAttribute(c)||1),d=parseInt(o.getAttribute(c)||1);e.setAttribute(c,u+d,a),e.setSelection(e.createRangeIn(a));var h=t.editor.plugins.get("TableUtils");k_(l.findAncestor("table"),h)}))}},{key:"_getMergeableCell",value:function(){var t=this.editor.model.document,e=this.editor.plugins.get("TableUtils"),n=e.getTableCellsContainingSelection(t.selection)[0];if(n){var i=this.isHorizontal?function(t,e,n){var i=t.parent.parent,o="right"==e?t.nextSibling:t.previousSibling,r=(i.getAttribute("headingColumns")||0)>0;if(o){var a="right"==e?t:o,s="right"==e?o:t,l=n.getCellLocation(a).column,c=n.getCellLocation(s).column,u=parseInt(a.getAttribute("colspan")||1),d=Qy(n,a),h=Qy(n,s);if(!r||d==h)return l+u===c?o:void 0}}(n,this.direction,e):function(t,e,n){var i=t.parent,o=i.parent,r=o.getChildIndex(i);if(!("down"==e&&r===n.getRows(o)-1||"up"==e&&0===r)){var a=parseInt(t.getAttribute("rowspan")||1),s=o.getAttribute("headingRows")||0;if(!s||!("down"==e&&r+a===s)&&!("up"==e&&r===s)){var l=parseInt(t.getAttribute("rowspan")||1),c="down"==e?r+l:r,u=m(new t_(o,{endRow:c})),d=u.find((function(e){return e.cell===t})).column,h=u.find((function(t){var n=t.row,i=t.cellHeight;return t.column===d&&("down"==e?n===c:c===n+i)}));return h&&h.cell}}}(n,this.direction,e);if(i){var o=this.isHorizontal?"rowspan":"colspan",r=parseInt(n.getAttribute(o)||1);return parseInt(i.getAttribute(o)||1)===r?i:void 0}}}}]),n}(_e);function w_(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}var C_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var i=n.findAncestor("table"),o=this.editor.plugins.get("TableUtils").getRows(i)-1,r=t.getRowIndexes(e),a=0===r.first&&r.last===o;this.isEnabled=!a}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),o=n[0],r=o.findAncestor("table"),a=e.getCellLocation(o).column;t.change((function(t){var n=i.last-i.first+1;e.removeRows(r,{at:i.first,rows:n});var o=function(t,e,n,i){var o,r=t.getChild(Math.min(e,i-1)),a=r.getChild(0),s=0,l=p(r.getChildren());try{for(l.s();!(o=l.n()).done;){var c=o.value;if(s>n)return a;a=c,s+=parseInt(c.getAttribute("colspan")||1)}}catch(t){l.e(t)}finally{l.f()}return a}(r,i.first,a,e.getRows(r));t.setSelection(t.createPositionAt(o,0))}))}}]),n}(_e),A_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils"),e=t.getSelectionAffectedTableCells(this.editor.model.document.selection),n=e[0];if(n){var i=n.findAncestor("table"),o=t.getColumns(i),r=t.getColumnIndexes(e),a=r.first,s=r.last;this.isEnabled=s-a<o-1}else this.isEnabled=!1}},{key:"execute",value:function(){var t=this,e=this.editor.plugins.get("TableUtils"),n=function(t,e){var n=e.getSelectionAffectedTableCells(t),i=n[0],o=n.pop(),r=[i,o];return i.isBefore(o)?r:r.reverse()}(this.editor.model.document.selection,e),i=f(n,2),o=i[0],r=i[1],a=o.parent.parent,s=m(new t_(a)),l={first:s.find((function(t){return t.cell===o})).column,last:s.find((function(t){return t.cell===r})).column},c=function(t,e,n,i){return parseInt(n.getAttribute("colspan")||1)>1?n:e.previousSibling||n.nextSibling?n.nextSibling||e.previousSibling:i.first?t.reverse().find((function(t){return t.column<i.first})).cell:t.reverse().find((function(t){return t.column>i.last})).cell}(s,o,r,l);this.editor.model.change((function(e){var n=l.last-l.first+1;t.editor.plugins.get("TableUtils").removeColumns(a,{at:l.first,columns:n}),e.setSelection(e.createPositionAt(c,0))}))}}]),n}(_e),x_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this,e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),o=i.length>0;this.isEnabled=o,this.value=o&&i.every((function(e){return t._isInHeading(e,e.parent.parent)}))}},{key:"execute",value:function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue!==this.value){var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0].findAnce
2stor("table"),o=t.getRowIndexes(n),r=o.first,a=o.last,s=this.value?r:a+1,l=i.getAttribute("headingRows")||0;e.change((function(t){if(s){var e,n=p(d_(i,s,s>l?l:0));try{for(n.s();!(e=n.n()).done;){h_(e.value.cell,s,t)}}catch(t){n.e(t)}finally{n.f()}}Yy("headingRows",s,i,t,0)}))}}},{key:"_isInHeading",value:function(t,e){var n=parseInt(e.getAttribute("headingRows")||0);return!!n&&t.parent.index<n}}]),n}(_e),D_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=n.length>0;this.isEnabled=i,this.value=i&&n.every((function(t){return Qy(e,t)}))}},{key:"execute",value:function(){if((arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).forceValue!==this.value){var t=this.editor.plugins.get("TableUtils"),e=this.editor.model,n=t.getSelectionAffectedTableCells(e.document.selection),i=n[0].findAncestor("table"),o=t.getColumnIndexes(n),r=o.first,a=o.last,s=this.value?r:a+1;e.change((function(t){if(s){var e,n=p(f_(i,s));try{for(n.s();!(e=n.n()).done;){var o=e.value;p_(o.cell,o.column,s,t)}}catch(t){n.e(t)}finally{n.f()}}Yy("headingColumns",s,i,t,0)}))}}}]),n}(_e),E_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this.decorate("insertColumns"),this.decorate("insertRows")}},{key:"getCellLocation",value:function(t){var e,n=t.parent,i=n.parent,o=i.getChildIndex(n),r=p(new t_(i,{row:o}));try{for(r.s();!(e=r.n()).done;){var a=e.value,s=a.cell,l=a.row,c=a.column;if(s===t)return{row:l,column:c}}}catch(t){r.e(t)}finally{r.f()}}},{key:"createTable",value:function(t,e){var n=t.createElement("table"),i=parseInt(e.rows)||2,o=parseInt(e.columns)||2;return S_(t,n,0,i,o),e.headingRows&&Yy("headingRows",Math.min(e.headingRows,i),n,t,0),e.headingColumns&&Yy("headingColumns",Math.min(e.headingColumns,o),n,t,0),n}},{key:"insertRows",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=this.editor.model,i=e.at||0,o=e.rows||1,r=void 0!==e.copyStructureFromAbove,a=e.copyStructureFromAbove?i-1:i,s=this.getRows(t),l=this.getColumns(t);if(i>s)throw new x("tableutils-insertrows-insert-out-of-range",this,{options:e});n.change((function(e){var n=t.getAttribute("headingRows")||0;if(n>i&&Yy("headingRows",n+o,t,e,0),r||0!==i&&i!==s){var c,u=r?Math.max(i,a):i,d=new t_(t,{endRow:u}),h=new Array(l).fill(1),f=p(d);try{for(f.s();!(c=f.n()).done;){var m=c.value,g=m.row,v=m.column,k=m.cellHeight,b=m.cellWidth,y=m.cell,_=g+k-1,w=g<=a&&a<=_;g<i&&i<=_?(e.setAttribute("rowspan",k+o,y),h[v]=-b):r&&w&&(h[v]=b)}}catch(t){f.e(t)}finally{f.f()}for(var C=0;C<o;C++){var A=e.createElement("tableRow");e.insert(A,t,i);for(var x=0;x<h.length;x++){var D=h[x],E=e.createPositionAt(A,"end");D>0&&Ky(e,E,D>1?{colspan:D}:null),x+=Math.abs(D)-1}}}else S_(e,t,i,o,l)}))}},{key:"insertColumns",value:function(t){var e=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=this.editor.model,o=n.at||0,r=n.columns||1;i.change((function(n){var i=t.getAttribute("headingColumns");o<i&&n.setAttribute("headingColumns",i+r,t);var a=e.getColumns(t);if(0!==o&&a!==o){var s,l=new t_(t,{column:o,includeAllSlots:!0}),c=p(l);try{for(c.s();!(s=c.n()).done;){var u=s.value,d=u.row,h=u.cell,f=u.cellAnchorColumn,m=u.cellAnchorRow,g=u.cellWidth,v=u.cellHeight;if(f<o){n.setAttribute("colspan",g+r,h);for(var k=m+v-1,b=d;b<=k;b++)l.skipRow(b)}else T_(r,n,u.getPositionBefore())}}catch(t){c.e(t)}finally{c.f()}}else{var y,_=p(t.getChildren());try{for(_.s();!(y=_.n()).done;){var w=y.value;w.is("element","tableRow")&&T_(r,n,n.createPositionAt(w,o?"end":0))}}catch(t){_.e(t)}finally{_.f()}}}))}},{key:"removeRows",value:function(t,e){var n=this,i=this.editor.model,o=e.rows||1,r=this.getRows(t),a=e.at,s=a+o-1;if(s>r-1)throw new x("tableutils-removerows-row-index-out-of-range",this,{table:t,options:e});i.change((function(e){var i=function(t,e,n){var i,o=new Map,r=[],a=p(new t_(t,{endRow:n}));try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.row,c=s.column,u=s.cellHeight,d=s.cell,h=l+u-1;if(l>=e&&l<=n&&h>n){var f=u-(n-l+1);o.set(c,{cell:d,rowspan:f})}if(l<e&&h>=e){var m;m=h>=n?n-e+1:h-e+1,r.push({cell:d,rowspan:u-m})}}}catch(t){a.e(t)}finally{a.f()}return{cellsToMove:o,cellsToTrim:r}}(t,a,s),o=i.cellsToMove,r=i.cellsToTrim;o.size&&function(t,e,n,i){var o,r,a=m(new t_(t,{includeAllSlots:!0,row:e})),s=t.getChild(e),l=p(a);try{for(l.s();!(r=l.n()).done;){var c=r.value,u=c.column,d=c.cell,h=c.isAnchor;if(n.has(u)){var f=n.get(u),g=f.cell,v=f.rowspan,k=o?i.createPositionAfter(o
2):i.createPositionAt(s,0);i.move(i.createRangeOn(g),k),Yy("rowspan",v,g,i),o=g}else h&&(o=d)}}catch(t){l.e(t)}finally{l.f()}}(t,s+1,o,e);for(var l=s;l>=a;l--)e.remove(t.getChild(l));var c,u=p(r);try{for(u.s();!(c=u.n()).done;){var d=c.value;Yy("rowspan",d.rowspan,d.cell,e)}}catch(t){u.e(t)}finally{u.f()}!function(t,e,n,i){var o=t.getAttribute("headingRows")||0;e<o&&Yy("headingRows",n<o?o-(n-e+1):e,t,i,0)}(t,a,s,e),g_(t,n)||v_(t,n)}))}},{key:"removeColumns",value:function(t,e){var n=this,i=this.editor.model,o=e.at,r=e.columns||1,a=e.at+r-1;i.change((function(e){!function(t,e,n){var i=t.getAttribute("headingColumns")||0;if(i&&e.first<i){var o=Math.min(i-1,e.last)-e.first+1;n.setAttribute("headingColumns",i-o,t)}}(t,{first:o,last:a},e);for(var i=a;i>=o;i--)for(var r=0,s=m(new t_(t));r<s.length;r++){var l=s[r],c=l.cell,u=l.column,d=l.cellWidth;u<=i&&d>1&&u+d>i?Yy("colspan",d-1,c,e):u===i&&e.remove(c)}v_(t,n)||g_(t,n)}))}},{key:"splitCellVertically",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=t.parent.parent,o=parseInt(t.getAttribute("rowspan")||1),r=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(r>1){var a=I_(r,e),s=a.newCellsSpan;Yy("colspan",a.updatedSpan,t,n);var l={};s>1&&(l.colspan=s),o>1&&(l.rowspan=o),T_(r>e?e-1:r-1,n,n.createPositionAfter(t),l)}if(r<e){var c,u=e-r,d=m(new t_(i)),h=d.find((function(e){return e.cell===t})).column,f=d.filter((function(e){var n=e.cell,i=e.cellWidth,o=e.column;return n!==t&&o===h||o<h&&o+i>h})),g=p(f);try{for(g.s();!(c=g.n()).done;){var v=c.value,k=v.cell,b=v.cellWidth;n.setAttribute("colspan",b+u,k)}}catch(t){g.e(t)}finally{g.f()}var y={};o>1&&(y.rowspan=o),T_(u,n,n.createPositionAfter(t),y);var _=i.getAttribute("headingColumns")||0;_>h&&Yy("headingColumns",_+u,i,n)}}))}},{key:"splitCellHorizontally",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2,n=this.editor.model,i=t.parent,o=i.parent,r=o.getChildIndex(i),a=parseInt(t.getAttribute("rowspan")||1),s=parseInt(t.getAttribute("colspan")||1);n.change((function(n){if(a>1){var i=m(new t_(o,{startRow:r,endRow:r+a-1,includeAllSlots:!0})),l=I_(a,e),c=l.newCellsSpan,u=l.updatedSpan;Yy("rowspan",u,t,n);var d=i.find((function(e){return e.cell===t})).column,h={};c>1&&(h.rowspan=c),s>1&&(h.colspan=s);var f,g=p(i);try{for(g.s();!(f=g.n()).done;){var v=f.value,k=v.column,b=v.row;b>=r+u&&k===d&&(b+r+u)%c==0&&T_(1,n,v.getPositionBefore(),h)}}catch(t){g.e(t)}finally{g.f()}}if(a<e){var y,_=e-a,w=p(m(new t_(o,{startRow:0,endRow:r})));try{for(w.s();!(y=w.n()).done;){var C=y.value,A=C.cell,x=C.cellHeight,D=C.row;if(A!==t&&D+x>r){var E=x+_;n.setAttribute("rowspan",E,A)}}}catch(t){w.e(t)}finally{w.f()}var S={};s>1&&(S.colspan=s),S_(n,o,r+1,_,1,S);var T=o.getAttribute("headingRows")||0;T>r&&Yy("headingRows",T+_,o,n)}}))}},{key:"getColumns",value:function(t){return m(t.getChild(0).getChildren()).reduce((function(t,e){return t+parseInt(e.getAttribute("colspan")||1)}),0)}},{key:"getRows",value:function(t){return Array.from(t.getChildren()).reduce((function(t,e){return e.is("element","tableRow")?t+1:t}),0)}},{key:"createTableWalker",value:function(t){return new t_(t,arguments.length>1&&void 0!==arguments[1]?arguments[1]:{})}},{key:"getSelectedTableCells",value:function(t){var e,n=[],i=p(this.sortRanges(t.getRanges()));try{for(i.s();!(e=i.n()).done;){var o=e.value.getContainedElement();o&&o.is("element","tableCell")&&n.push(o)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"getTableCellsContainingSelection",value:function(t){var e,n=[],i=p(t.getRanges());try{for(i.s();!(e=i.n()).done;){var o=e.value.start.findAncestor("tableCell");o&&n.push(o)}}catch(t){i.e(t)}finally{i.f()}return n}},{key:"getSelectionAffectedTableCells",value:function(t){var e=this.getSelectedTableCells(t);return e.length?e:this.getTableCellsContainingSelection(t)}},{key:"getRowIndexes",value:function(t){var e=t.map((function(t){return t.parent.index}));return this._getFirstLastIndexesObject(e)}}
2,{key:"getColumnIndexes",value:function(t){var e=t[0].findAncestor("table"),n=m(new t_(e)).filter((function(e){return t.includes(e.cell)})).map((function(t){return t.column}));return this._getFirstLastIndexesObject(n)}},{key:"isSelectionRectangular",value:function(t){if(t.length<2||!this._areCellInTheSameTableSection(t))return!1;var e,n=new Set,i=new Set,o=0,r=p(t);try{for(r.s();!(e=r.n()).done;){var a=e.value,s=this.getCellLocation(a),l=s.row,c=s.column,u=parseInt(a.getAttribute("rowspan")||1),d=parseInt(a.getAttribute("colspan")||1);n.add(l),i.add(c),u>1&&n.add(l+u-1),d>1&&i.add(c+d-1),o+=u*d}}catch(t){r.e(t)}finally{r.f()}var h=function(t,e){var n=Array.from(t.values()),i=Array.from(e.values());return(Math.max.apply(Math,n)-Math.min.apply(Math,n)+1)*(Math.max.apply(Math,i)-Math.min.apply(Math,i)+1)}(n,i);return h==o}},{key:"sortRanges",value:function(t){return Array.from(t).sort(z_)}},{key:"_getFirstLastIndexesObject",value:function(t){var e=t.sort((function(t,e){return t-e}));return{first:e[0],last:e[e.length-1]}}},{key:"_areCellInTheSameTableSection",value:function(t){var e=t[0].findAnce
2stor("table"),n=this.getRowIndexes(t),i=parseInt(e.getAttribute("headingRows")||0);if(!this._areIndexesInSameSection(n,i))return!1;var o=parseInt(e.getAttribute("headingColumns")||0),r=this.getColumnIndexes(t);return this._areIndexesInSameSection(r,o)}},{key:"_areIndexesInSameSection",value:function(t,e){return t.first<e==t.last<e}}],[{key:"pluginName",get:function(){return"TableUtils"}}]),n}(be);function S_(t,e,n,i,o){for(var r=arguments.length>5&&void 0!==arguments[5]?arguments[5]:{},a=0;a<i;a++){var s=t.createElement("tableRow");t.insert(s,e,n),T_(o,t,t.createPositionAt(s,"end"),r)}}function T_(t,e,n){for(var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=0;o<t;o++)Ky(e,n,i)}function I_(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 z_(t,e){var n=t.start,i=e.start;return n.isBefore(i)?-1:1}var M_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get(E_),e=t.getSelectedTableCells(this.editor.model.document.selection);this.isEnabled=t.isSelectionRectangular(e,this.editor.plugins.get(E_))}},{key:"execute",value:function(){var t=this.editor.model,e=this.editor.plugins.get(E_);t.change((function(n){var i=e.getSelectedTableCells(t.document.selection),o=i.shift(),r=function(t,e,n){var i,o=0,r=0,a=p(e);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=n.getCellLocation(s),c=l.row;o=L_(s,l.column,o,"colspan"),r=L_(s,c,r,"rowspan")}}catch(t){a.e(t)}finally{a.f()}var u=n.getCellLocation(t),d=u.row;return{mergeWidth:o-u.column,mergeHeight:r-d}}(o,i,e),a=r.mergeWidth,s=r.mergeHeight;Yy("colspan",a,o,n),Yy("rowspan",s,o,n);var l,c=p(i);try{for(c.s();!(l=c.n()).done;){B_(l.value,o,n)}}catch(t){c.e(t)}finally{c.f()}k_(o.findAncestor("table"),e),n.setSelection(o,"in")}))}}]),n}(_e);function B_(t,e,n){P_(t)||(P_(e)&&n.remove(n.createRangeIn(e)),n.move(n.createRangeIn(t),n.createPositionAt(e,"end"))),n.remove(t)}function P_(t){return 1==t.childCount&&t.getChild(0).is("element","paragraph")&&t.getChild(0).isEmpty}function L_(t,e,n,i){var o=parseInt(t.getAttribute(i)||1);return Math.max(n,e+o)}var N_=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).affectsData=!1,i}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){for(var t=this.editor.model,e=this.editor.plugins.get("TableUtils"),n=e.getSelectionAffectedTableCells(t.document.selection),i=e.getRowIndexes(n),o=n[0].findAncestor("table"),r=[],a=i.first;a<=i.last;a++){var s,l=p(o.getChild(a).getChildren());try{for(l.s();!(s=l.n()).done;){var c=s.value;r.push(t.createRangeOn(c))}}catch(t){l.e(t)}finally{l.f()}}t.change((function(t){t.setSelection(r)}))}}]),n}(_e),O_=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).affectsData=!1,i}return S(n,[{key:"refresh",value:function(){var t=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(this.editor.model.document.selection);this.isEnabled=t.length>0}},{key:"execute",value:function(){var t,e=this.editor.plugins.get("TableUtils"),n=this.editor.model,i=e.getSelectionAffectedTableCells(n.document.selection),o=i[0],r=i.pop(),a=o.findAnce
2stor("table"),s=e.getCellLocation(o),l=e.getCellLocation(r),c=Math.min(s.column,l.column),u=Math.max(s.column,l.column),d=[],h=p(new t_(a,{startColumn:c,endColumn:u}));try{for(h.s();!(t=h.n()).done;){var f=t.value;d.push(n.createRangeOn(f.cell))}}catch(t){h.e(t)}finally{h.f()}n.change((function(t){t.setSelection(d)}))}}]),n}(_e);function F_(t,e){var n=!1,i=function(t){var e,n=parseInt(t.getAttribute("headingRows")||0),i=Array.from(t.getChildren()).reduce((function(t,e){return e.is("element","tableRow")?t+1:t}),0),o=[],r=p(new t_(t));try{for(r.s();!(e=r.n()).done;){var a=e.value,s=a.row,l=a.cell,c=a.cellHeight;if(!(c<2)){var u=s<n?n:i;if(s+c>u){var d=u-s;o.push({cell:l,rowspan:d})}}}}catch(t){r.e(t)}finally{r.f()}return o}(t);if(i.length){n=!0;var o,r=p(i);try{for(r.s();!(o=r.n()).done;){var a=o.value;Yy("rowspan",a.rowspan,a.cell,e,1)}}catch(t){r.e(t)}finally{r.f()}}return n}function R_(t,e){var n,i=!1,o=function(t){var e,n=new Array(t.childCount).fill(0),i=p(new t_(t,{includeAllSlots:!0}));try{for(i.s();!(e=i.n()).done;){n[e.value.rowIndex]++}}catch(t){i.e(t)}finally{i.f()}return n}(t),r=[],a=p(o.entries());try{for(a.s();!(n=a.n()).done;){var s=f(n.value,2),l=s[0];!s[1]&&t.getChild(l).is("element","tableRow")&&r.push(l)}}catch(t){a.e(t)}finally{a.f()}if(r.length){i=!0;var c,u=p(r.reverse());try{for(u.s();!(c=u.n()).done;){var d=c.value;e.remove(t.getChild(d)),o.splice(d,1)}}catch(t){u.e(t)}finally{u.f()}}var h=o.filter((function(e,n){return t.getChild(n).is("element","tableRow")})),m=h[0];if(!h.every((function(t){return t===m}))){var g,v=h.reduce((function(t,e){return e>t?e:t}),0),k=p(h.entries());try{for(k.s();!(g=k.n()).done;){var b=f(g.value,2),y=b[0],_=v-b[1];if(_){for(var w=0;w<_;w++)Ky(e,e.createPositionAt(t.getChild(y),"end"));i=!0}}}catch(t){k.e(t)}finally{k.f()}}return i}function j_(t){var e="attribute"===t.type,n=t.attributeKey;return e&&("headingRows"===n||"colspan"===n||"rowspan"===n)}function V_(t,e){var n,i=!1,o=p(t.getChildren());try{for(o.s();!(n=o.n()).done;){var r=n.value;r.is("element","tableRow")&&(i=H_(r,e)||i)}}catch(t){o.e(t)}finally{o.f()}return i}function H_(t,e){var n,i=!1,o=p(t.getChildren());try{for(o.s();!(n=o.n()).done;){i=U_(n.value,e)||i}}catch(t){o.e(t)}finally{o.f()}return i}function U_(t,e){if(0==t.childCount)return e.insertElement("paragraph",t),!0;var n,i=Array.from(t.getChildren()).filter((function(t){return t.is("$text")})),o=p(i);try{for(o.s();!(n=o.n()).done;){var r=n.value;e.wrap(e.createRangeOn(r),"paragraph")}}catch(t){o.e(t)}finally{o.f()}return!!i.length}function Z_(t){return!(!t.position||!t.position.parent.is("element","tableCell"))&&("insert"==t.type&&"$text"==t.name||"remove"==t.type)}function q_(t,e){if(!t.is("element","paragraph"))return!1;var n=e.toViewElement(t);return!!n&&r_(t)!==n.is("element","span")}var W_=r(4777);fr()(W_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),W_.Z.locals;var G_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model,n=e.schema,i=t.conversion,o=t.plugins.get(E_);n.register("table",{allowWhere:"$block",allowAttributes:["headingRows","headingColumns"],isObject:!0,isBlock:!0}),n.register("tableRow",{allowIn:"table",isLimit:!0}),n.register("tableCell",{allowIn:"tableRow",allowChildren:"$block",allowAttributes:["colspan","rowspan"],isLimit:!0,isSelectable:!0}),i.for("upcast").add((function(t){t.on("element:figure",(function(t,e,n){if(n.consumable.test(e.viewItem,{name:!0,classes:"table"})){var i=function(t){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.is("element","table"))return i}}catch(t){n.e(t)}finally{n.f()}}(e.viewItem);if(i&&n.consumable.test(i,{name:!0})){n.consumable.consume(e.viewItem,{name:!0,classes:"table"});var o=Ba(n.convertItem(i,e.modelCursor).modelRange.getItems());o?(n.convertChildren(e.viewItem,n.writer.createPositionAt(o,"end")),n.updateConversionResult(o,e)):n.consumable.revert(e.viewItem,{name:!0,classes:"table"})}}}))})),i.for("upcast").add((function(t){t.on("element:table",(function(t,e,n){var i=e.viewItem;if(n.consumable.test(i,{name:!0})){var o=function(t){for(var e,n={headingRows:0,headingColumns:0},i=[],o=[],r=0,a=Array.from(t.getChildren());r<a.length;r++){var s=a[r];if("tbody"===s.name||"thead"===s.name||"tfoot"===s.name){"thead"!==s.name||e||(e=s);var l,c=Array.from(s.getChildren()).filter((function(t){return t.is("element","tr")})),u=p(c);try{for(u.s();!(l=u.n()).done;){var d=l.value;if("thead"===d.parent.name&&d.parent===e)n.headingRows++,i.push(d);else{o.push(d);var h=Xy(d);h>n.headingColumns&&(n.headingColumns=h)}}}catch(t){u.e(t)}finally{u.f()}}}return n.rows=[].concat(i,o),n}(i),r=o.rows,a=o.headingRows,s=o.headingColumns,l={};s&&(l.headingColumns=s),a&&(l.headingRows=a);var c=n.writer.createElement("table",l);if(n.safeInsert(c,e.modelCursor)){if(n.consumable.consume(i,{name:!0}),r.forEach((function(t){return n.convertItem(t,n.writer.createPositionAt(c,"end"))})),n.convertChildren(i,n.writer.createPositionAt(c,"end")),c.isEmpty){var u=n.writer.createElement("tableRow");n.writer.insert(u,n.writer.createPositionAt(c,"end")),Ky(n.writer,n.writer.createPositionAt(u,"end"))}n.updateConversionResult(c,e)}}}))}
2)),i.for("editingDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:n_(o,{asWidget:!0})}),i.for("dataDowncast").elementToStructure({model:{name:"table",attributes:["headingRows"]},view:n_(o)}),i.for("upcast").elementToElement({model:"tableRow",view:"tr"}),i.for("upcast").add((function(t){t.on("element:tr",(function(t,e){e.viewItem.isEmpty&&0==e.modelCursor.index&&t.stop()}),{priority:"high"})})),i.for("downcast").elementToElement({model:"tableRow",view:function(t,e){var n=e.writer;return t.isEmpty?n.createEmptyElement("tr"):n.createContainerElement("tr")}}),i.for("upcast").elementToElement({model:"tableCell",view:"td"}),i.for("upcast").elementToElement({model:"tableCell",view:"th"}),i.for("upcast").add(Jy("td")),i.for("upcast").add(Jy("th")),i.for("editingDowncast").elementToElement({model:"tableCell",view:i_({asWidget:!0})}),i.for("dataDowncast").elementToElement({model:"tableCell",view:i_()}),i.for("editingDowncast").elementToElement({model:"paragraph",view:o_({asWidget:!0}),converterPriority:"high"}),i.for("dataDowncast").elementToElement({model:"paragraph",view:o_(),converterPriority:"high"}),i.for("downcast").attributeToAttribute({model:"colspan",view:"colspan"}),i.for("upcast").attributeToAttribute({model:{key:"colspan",value:$_("colspan")},view:"colspan"}),i.for("downcast").attributeToAttribute({model:"rowspan",view:"rowspan"}),i.for("upcast").attributeToAttribute({model:{key:"rowspan",value:$_("rowspan")},view:"rowspan"}),t.data.mapper.on("modelToViewPosition",(function(t,e){var n=e.modelPosition.parent,i=e.modelPosition.nodeBefore;if(n.is("element","tableCell")&&i&&i.is("element","paragraph")){var o=e.mapper.toViewElement(i),r=e.mapper.toViewElement(n);o===r&&(e.viewPosition=e.mapper.findPositionIn(r,i.maxOffset))}})),t.config.define("table.defaultHeadings.rows",0),t.config.define("table.defaultHeadings.columns",0),t.commands.add("insertTable",new a_(t)),t.commands.add("insertTableRowAbove",new s_(t,{order:"above"})),t.commands.add("insertTableRowBelow",new s_(t,{order:"below"})),t.commands.add("insertTableColumnLeft",new l_(t,{order:"left"})),t.commands.add("insertTableColumnRight",new l_(t,{order:"right"})),t.commands.add("removeTableRow",new C_(t)),t.commands.add("removeTableColumn",new A_(t)),t.commands.add("splitTableCellVertically",new c_(t,{direction:"vertically"})),t.commands.add("splitTableCellHorizontally",new c_(t,{direction:"horizontally"})),t.commands.add("mergeTableCells",new M_(t)),t.commands.add("mergeTableCellRight",new __(t,{direction:"right"})),t.commands.add("mergeTableCellLeft",new __(t,{direction:"left"})),t.commands.add("mergeTableCellDown",new __(t,{direction:"down"})),t.commands.add("mergeTableCellUp",new __(t,{direction:"up"})),t.commands.add("setTableColumnHeader",new D_(t)),t.commands.add("setTableRowHeader",new x_(t)),t.commands.add("selectTableRow",new N_(t)),t.commands.add("selectTableColumn",new O_(t)),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=e.document.differ.getChanges(),o=!1,r=new Set,a=p(i);try{for(a.s();!(n=a.n()).done;){var s=n.value,l=void 0;"table"==s.name&&"insert"==s.type&&(l=s.position.nodeAfter),"tableRow"!=s.name&&"tableCell"!=s.name||(l=s.position.findAncestor("table")),j_(s)&&(l=s.range.start.findAncestor("table")),l&&!r.has(l)&&(o=F_(l,t)||o,o=R_(l,t)||o,r.add(l))}}catch(t){a.e(t)}finally{a.f()}return o}(e,t)}))}(e),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=!1,o=p(e.document.differ.getChanges());try{for(o.s();!(n=o.n()).done;){var r=n.value;"insert"==r.type&&"table"==r.name&&(i=V_(r.position.nodeAfter,t)||i),"insert"==r.type&&"tableRow"==r.name&&(i=H_(r.position.nodeAfter,t)||i),"insert"==r.type&&"tableCell"==r.name&&(i=U_(r.position.nodeAfter,t)||i),Z_(r)&&(i=U_(r.position.parent,t)||i)}}catch(t){o.e(t)}finally{o.f()}return i}(e,t)}))}(e),this.listenTo(e.document,"change:data",(function(){!function(t,e){var n,i=p(t.document.differ.getChanges());try{for(i.s();!(n=i.n()).done;){var o=n.value,r=void 0,a=!1;if("attribute"==o.type){var s=o.range.start.nodeAfter;if(!s||!s.is("element","table"))continue;if("headingRows"!=o.attributeKey&&"headingColumns"!=o.attributeKey)continue;r=s,a="headingRows"==o.attributeKey}else"tableRow"!=o.name&&"tableCell"!=o.name||(r=o.position.findAnce
2stor("table"),a="tableRow"==o.name);if(r){var l,c=r.getAttribute("headingRows")||0,u=r.getAttribute("headingColumns")||0,d=p(new t_(r));try{for(d.s();!(l=d.n()).done;){var h=l.value,f=h.row<c||h.column<u?"th":"td",m=e.mapper.toViewElement(h.cell);m&&m.is("element")&&m.name!=f&&e.reconvertItem(a?h.cell.parent:h.cell)}}catch(t){d.e(t)}finally{d.f()}}}}catch(t){i.e(t)}finally{i.f()}}(e,t.editing),function(t,e){var n,i=t.document.differ,o=new Set,r=p(i.getChanges());try{for(r.s();!(n=r.n()).done;){var a=n.value,s="attribute"==a.type?a.range.start.parent:a.position.parent;s.is("element","tableCell")&&o.add(s)}}catch(t){r.e(t)}finally{r.f()}var l,c=p(o.values());try{for(c.s();!(l=c.n()).done;){var u,d=l.value,h=Array.from(d.getChildren()).filter((function(t){return q_(t,e.mapper)})),f=p(h);try{for(f.s();!(u=f.n()).done;){var m=u.value;e.reconvertItem(m)}}catch(t){f.e(t)}finally{f.f()}}}catch(t){c.e(t)}finally{c.f()}}(e,t.editing)}))}}],[{key:"pluginName",get:function(){return"TableEditing"}},{key:"requires",get:function(){return[E_]}}]),n}(be);function $_(t){return function(e){var n=parseInt(e.getAttribute(t));return Number.isNaN(n)||n<=0?null:n}}var Y_=r(8085);fr()(Y_.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Y_.Z.locals;var K_=function(t){k(n,t);var e=b(n);function n(t){var i;I(this,n);var o=(i=e.call(this,t)).bindTemplate;return i.items=i._createGridCollection(),i.set("rows",0),i.set("columns",0),i.bind("label").to(_(i),"columns",_(i),"rows",(function(t,e){return"".concat(e," × ").concat(t)})),i.setTemplate({tag:"div",attributes:{class:["ck"]},children:[{tag:"div",attributes:{class:["ck-insert-table-dropdown__grid"]},on:{"[email protected]":o.to("boxover")},children:i.items},{tag:"div",attributes:{class:["ck-insert-table-dropdown__label"]},children:[{text:o.to("label")}]}],on:{mousedown:o.to((function(t){t.preventDefault()})),click:o.to((function(){i.fire("execute")}))}}),i.on("boxover",(function(t,e){var n=e.target.dataset,o=n.row,r=n.column;i.set({rows:parseInt(o),columns:parseInt(r)})})),i.on("change:columns",(function(){i._highlightGridBoxes()})),i.on("change:rows",(function(){i._highlightGridBoxes()})),i}return S(n,[{key:"focus",value:function(){}},{key:"focusLast",value:function(){}},{key:"_highlightGridBoxes",value:function(){var t=this.rows,e=this.columns;this.items.map((function(n,i){var o=Math.floor(i/10)<t&&i%10<e;n.set("isOn",o)}))}},{key:"_createGridCollection",value:function(){for(var t=[],e=0;e<100;e++){var n=Math.floor(e/10),i=e%10;t.push(new Q_(this.locale,n+1,i+1))}return this.createCollection(t)}}]),n}(mu),Q_=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;I(this,n);var a=(r=e.call(this,t)).bindTemplate;return r.set("isOn",!1),r.setTemplate({tag:"div",attributes:{class:["ck-insert-table-dropdown-grid-box",a.if("isOn","ck-on")],"data-row":i,"data-column":o}}),r}return S(n)}(mu),J_=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=this.editor.t,i="ltr"===e.locale.contentLanguageDirection;e.ui.componentFactory.add("insertTable",(function(t){var i,o=e.commands.get("insertTable"),r=Ad(t);return r.bind("isEnabled").to(o),r.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:n("Insert table"),tooltip:!0}),r.on("change:isOpen",(function(){i||(i=new K_(t),r.panelView.children.add(i),i.delegate("execute").to(r),r.buttonView.on("open",(function(){i.rows=0,i.columns=0})),r.on("execute",(function(){e.execute("insertTable",{rows:i.rows,columns:i.columns}),e.editing.view.focus()})))})),r})),e.ui.componentFactory.add("tableColumn",(function(e){var o=[{type:"switchbutton",model:{commandName:"setTableColumnHeader",label:n("Header column"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:i?"insertTableColumnLeft":"insertTableColumnRight",label:n("Insert column left")}},{type:"button",model:{commandName:i?"insertTableColumnRight":"insertTableColumnLeft",label:n("Insert column right")}},{type:"button",model:{commandName:"removeTableColumn",label:n("Delete column")}},{type:"button",model:{commandName:"selectTableColumn",label:n("Select column")}}];return t._prepareDropdown(n("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,e)})),e.ui.componentFactory.add("tableRow",(function(e){var i=[{type:"switchbutton",model:{commandName:"setTableRowHeader",label:n("Header row"),bindIsOn:!0}},{type:"separator"},{type:"button",model:{commandName:"insertTableRowAbove",label:n("Insert row above")}},{type:"button",model:{commandName:"insertTableRowBelow",label:n("Insert row below")}},{type:"button",model:{commandName:"removeTableRow",label:n("Delete row")}},{type:"button",model:{commandName:"selectTableRow",label:n("Select row")}}];return t._prepareDropdown(n("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>',i,e)})),e.ui.componentFactory.add("mergeTableCells",(function(e){var o=[{type:"button",model:{commandName:"mergeTableCellUp",label:n("Merge cell up")}},{type:"button",model:{commandName:i?"mergeTableCellRight":"mergeTableCellLeft",label:n("Merge cell right")}},{type:"button",model:{commandName:"mergeTableCellDown",label:n("Merge cell down")}},{type:"button",model:{commandName:i?"mergeTableCellLeft":"mergeTableCellRight",label:n("Merge cell left")}},{type:"separator"},{type:"button",model:{commandName:"splitTableCellVertically",label:n("Split cell vertically")}},{type:"button",model:{commandName:"splitTableCellHorizontally",label:n("Split cell horizontally")}}];return t._prepareMergeSplitButtonDropdown(n("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,e)}))}},{key:"_prepareDropdown",value:function(t,e,n,i){var o=this.editor,r=Ad(i),a=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0}),r.bind("isEnabled").toMany(a,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.listenTo(r,"execute",(function(t){o.execute(t.source.commandName),o.editing.view.focus()})),r}},{key:"_prepareMergeSplitButtonDropdown",value:function(t,e,n,i){var o=this.editor,r=Ad(i,id),a="mergeTableCells",s=o.c
2ommands.get(a),l=this._fillDropdownWithListOptions(r,n);return r.buttonView.set({label:t,icon:e,tooltip:!0,isEnabled:!0}),r.bind("isEnabled").toMany([s].concat(m(l)),"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),this.listenTo(r.buttonView,"execute",(function(){o.execute(a),o.editing.view.focus()})),this.listenTo(r,"execute",(function(t){o.execute(t.source.commandName),o.editing.view.focus()})),r}},{key:"_fillDropdownWithListOptions",value:function(t,e){var n,i=this.editor,o=[],r=new Xn,a=p(e);try{for(a.s();!(n=a.n()).done;){X_(n.value,i,o,r)}}catch(t){a.e(t)}finally{a.f()}return Dd(t,r,i.ui.componentFactory),o}}],[{key:"pluginName",get:function(){return"TableUI"}}]),n}(be);function X_(t,e,n,i){var o=t.model=new Wd(t.model),r=t.model,a=r.commandName,s=r.bindIsOn;if("button"===t.type||"switchbutton"===t.type){var l=e.commands.get(a);n.push(l),o.set({commandName:a}),o.bind("isEnabled").to(l),s&&o.bind("isOn").to(l,"value")}o.set({withText:!0}),i.add(t)}var tw=r(5593);fr()(tw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),tw.Z.locals;var ew=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor.model;this.listenTo(e,"deleteContent",(function(e,n){return t._handleDeleteContent(e,n)}),{priority:"high"}),this._defineSelectionConverter(),this._enablePluginDisabling()}},{key:"getSelectedTableCells",value:function(){var t=this.editor.plugins.get(E_),e=this.editor.model.document.selection,n=t.getSelectedTableCells(e);return 0==n.length?null:n}},{key:"getSelectionAsFragment",value:function(){var t=this.editor.plugins.get(E_),e=this.getSelectedTableCells();return e?this.editor.model.change((function(n){var i=n.createDocumentFragment(),o=t.getColumnIndexes(e),r=o.first,a=o.last,s=t.getRowIndexes(e),l=s.first,c=s.last,u=e[0].findAnce
2stor("table"),d=c,h=a;if(t.isSelectionRectangular(e)){var f={firstColumn:r,lastColumn:a,firstRow:l,lastRow:c};d=b_(u,f),h=y_(u,f)}var p=u_(u,{startRow:l,startColumn:r,endRow:d,endColumn:h},n);return n.insert(p,i,0),i})):null}},{key:"setCellSelection",value:function(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(){var t=m(this.editor.model.document.selection.getRanges()).pop().getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"getAnchorCell",value:function(){var t=Ba(this.editor.model.document.selection.getRanges()).getContainedElement();return t&&t.is("element","tableCell")?t:null}},{key:"_defineSelectionConverter",value:function(){var t=this,e=this.editor,n=new Set;e.conversion.for("editingDowncast").add((function(e){return e.on("selection",(function(e,i,o){var r=o.writer;!function(t){var e,i=p(n);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.removeClass("ck-editor__editable_selected",o)}}catch(t){i.e(t)}finally{i.f()}n.clear()}(r);var a=t.getSelectedTableCells();if(a){var s,l=p(a);try{for(l.s();!(s=l.n()).done;){var c=s.value,u=o.mapper.toViewElement(c);r.addClass("ck-editor__editable_selected",u),n.add(u)}}catch(t){l.e(t)}finally{l.f()}var d=o.mapper.toViewElement(a[a.length-1]);r.setSelection(d,0)}}),{priority:"lowest"})}))}},{key:"_enablePluginDisabling",value:function(){var t=this,e=this.editor;this.on("change:isEnabled",(function(){if(!t.isEnabled){var n=t.getSelectedTableCells();if(!n)return;e.model.change((function(t){var i=t.createPositionAt(n[0],0),o=e.model.schema.getNearestSelectionRange(i);t.setSelection(o)}))}}))}},{key:"_handleDeleteContent",value:function(t,e){var n=this.editor.plugins.get(E_),i=f(e,2),o=i[0],r=i[1],a=this.editor.model,s=!r||"backward"==r.direction,l=n.getSelectedTableCells(o);l.length&&(t.stop(),a.change((function(t){var e=l[s?l.length-1:0];a.change((function(t){var e,n=p(l);try{for(n.s();!(e=n.n()).done;){var i=e.value;a.deleteContent(t.createSelection(i,"in"))}}catch(t){n.e(t)}finally{n.f()}}));var n=a.schema.getNearestSelectionRange(t.createPositionAt(e,0));o.is("documentSelection")?t.setSelection(n):o.setTo(n)})))}},{key:"_getCellsToSelect",value:function(t,e){var n,i=this.editor.plugins.get("TableUtils"),o=i.getCellLocation(t),r=i.getCellLocation(e),a=Math.min(o.row,r.row),s=Math.max(o.row,r.row),l=Math.min(o.column,r.column),c=Math.max(o.column,r.column),u=new Array(s-a+1).fill(null).map((function(){return[]})),d={startRow:a,endRow:s,startColumn:l,endColumn:c},h=p(new t_(t.findAncestor("table"),d));try{for(h.s();!(n=h.n()).done;){var f=n.value,m=f.row,g=f.cell;u[m-a].push(g)}}catch(t){h.e(t)}finally{h.f()}var v=r.row<o.row,k=r.column<o.column;return v&&u.reverse(),k&&u.forEach((function(t){return t.reverse()})),{cells:u.flat(),backward:v||k}}}],[{key:"pluginName",get:function(){return"TableSelection"}},{key:"requires",get:function(){return[E_,E_]}}]),n}(be),nw=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view.document;this.listenTo(n,"copy",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(n,"cut",(function(e,n){return t._onCopyCut(e,n)})),this.listenTo(e.model,"insertContent",(function(e,n){return t._onInsertContent.apply(t,[e].concat(m(n)))}),{priority:"high"}),this.decorate("_replaceTableSlotCell")}},{key:"_onCopyCut",value:function(t,e){var n=this.editor.plugins.get(ew);if(n.getSelectedTableCells()&&("cut"!=t.name||!this.editor.isReadOnly)){e.preventDefault(),t.stop();var i=this.editor.data,o=this.editor.editing.view.document,r=i.toView(n.getSelectionAsFragment());o.fire("clipboardOutput",{dataTransfer:e.dataTransfer,content:r,method:t.name})}}},{key:"_onInsertContent",value:function(t,e,n){var i=this;if(!n||n.is("documentSelection")){var o=this.editor.model,r=this.editor.plugins.get(E_),a=iw(e,o);if(a){var s=r.getSelectionAffectedTableCells(o.document.selection);
2s.length?(t.stop(),o.change((function(t){var e={width:r.getColumns(a),height:r.getRows(a)},n=function(t,e,n,i){var o=t[0].findAncestor("table"),r=i.getColumnIndexes(t),a=i.getRowIndexes(t),s={firstColumn:r.first,lastColumn:r.last,firstRow:a.first,lastRow:a.last},l=1===t.length;return l&&(s.lastRow+=e.height-1,s.lastColumn+=e.width-1,function(t,e,n,i){var o=i.getColumns(t),r=i.getRows(t);n>o&&i.insertColumns(t,{at:o,columns:n-o}),e>r&&i.insertRows(t,{at:r,rows:e-r})}(o,s.lastRow+1,s.lastColumn+1,i)),l||!i.isSelectionRectangular(t)?function(t,e,n){var i=e.firstRow,o=e.lastRow,r=e.firstColumn,a=e.lastColumn,s={first:i,last:o},l={first:r,last:a};rw(t,r,s,n),rw(t,a+1,s,n),ow(t,i,l,n),ow(t,o+1,l,n,i)}(o,s,n):(s.lastRow=b_(o,s),s.lastColumn=y_(o,s)),s}(s,e,t,r),o=n.lastRow-n.firstRow+1,l=n.lastColumn-n.firstColumn+1,c={startRow:0,startColumn:0,endRow:Math.min(o,e.height)-1,endColumn:Math.min(l,e.width)-1};a=u_(a,c,t);var u=s[0].findAncestor("table"),d=i._replaceSelectedCellsWithPasted(a,e,u,n,t);if(i.editor.plugins.get("TableSelection").isEnabled){var h=r.sortRanges(d.map((function(e){return t.createRangeOn(e)})));t.setSelection(h)}else t.setSelection(d[0],0)}))):k_(a,r)}}}},{key:"_replaceSelectedCellsWithPasted",value:function(t,e,n,i,o){var r,a,s=e.width,l=e.height,c=function(t,e,n){var i,o=new Array(n).fill(null).map((function(){return new Array(e).fill(null)})),r=p(new t_(t));try{for(r.s();!(i=r.n()).done;){var a=i.value,s=a.column,l=a.row,c=a.cell;o[l][s]=c}}catch(t){r.e(t)}finally{r.f()}return o}(t,s,l),u=[],d=p(m(new t_(n,{startRow:i.firstRow,endRow:i.lastRow,startColumn:i.firstColumn,endColumn:i.lastColumn,includeAllSlots:!0})));try{for(d.s();!(a=d.n()).done;){var h=a.value,f=h.row,g=h.column;g===i.firstColumn&&(r=h.getPositionBefore());var v=f-i.firstRow,k=g-i.firstColumn,b=c[v%l][k%s],y=b?o.cloneElement(b):null,_=this._replaceTableSlotCell(h,y,r,o);_&&(m_(_,f,g,i.lastRow,i.lastColumn,o),u.push(_),r=o.createPositionAfter(_))}}catch(t){d.e(t)}finally{d.f()}var w=parseInt(n.getAttribute("headingRows")||0),C=parseInt(n.getAttribute("headingColumns")||0),A=i.firstRow<w&&w<=i.lastRow,x=i.firstColumn<C&&C<=i.lastColumn;if(A){var D=ow(n,w,{first:i.firstColumn,last:i.lastColumn},o,i.firstRow);u.push.apply(u,m(D))}if(x){var E=rw(n,C,{first:i.firstRow,last:i.lastRow},o);u.push.apply(u,m(E))}return u}},{key:"_replaceTableSlotCell",value:function(t,e,n,i){var o=t.cell;return t.isAnchor&&i.remove(o),e?(i.insert(e,n),e):null}},{key:"getTableIfOnlyTableInContent",value:function(t,e){return iw(t,e)}}],[{key:"pluginName",get:function(){return"TableClipboard"}},{key:"requires",get:function(){return[ew,E_]}}]),n}(be);function iw(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,i=e.createRangeIn(t),o=p(i.getItems());try{for(o.s();!(n=o.n()).done;){var r=n.value;if(r.is("element","table")){var a=e.createRange(i.start,e.createPositionBefore(r));if(e.hasContent(a,{ignoreWhitespaces:!0}))return null;var s=e.createRange(e.createPositionAfter(r),i.end);return e.hasContent(s,{ignoreWhitespaces:!0})?null:r}}}catch(t){o.e(t)}finally{o.f()}return null}function ow(t,e,n,i){if(!(e<1))return d_(t,e,arguments.length>4&&void 0!==arguments[4]?arguments[4]:0).filter((function(t){return aw(t.column,t.cellWidth,n)})).map((function(t){return h_(t.cell,e,i)}))}function rw(t,e,n,i){if(!(e<1))return f_(t,e).filter((function(t){return aw(t.row,t.cellHeight,n)})).map((function(t){return p_(t.cell,t.column,e,i)}))}function aw(t,e,n){var i=t+e-1,o=n.first,r=n.last;return t>=o&&t<=r||t<o&&i>=o}var sw=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor.editing.view.document;this.editor.keystrokes.set("Tab",(function(){return t._handleTabOnSelectedTable.apply(t,arguments)}),{priority:"low"}),this.editor.keystrokes.set("Tab",this._getTabHandler(!0),{priority:"low"}),this.editor.keystrokes.set("Shift+Tab",this._getTabHandler(!1),{priority:"low"}),this.listenTo(e,"arrowKey",(function(){return t._onArrowKey.apply(t,arguments)}),{context:"table"})}},{key:"_handleTabOnSelectedTable",value:function(t,e){var n=this.editor,i=n.model.document.selection.getSelectedElement();i&&i.is("element","table")&&(e(),n.model.change((function(t){t.setSelection(t.createRangeIn(i.getChild(0).getChild(0)))})))}},{key:"_getTabHandler",value:function(t){var e=this,n=this.editor,i=this.editor.plugins.get(E_);return function(o,r){var a=n.model.document.selection,s=i.getTableCellsContainingSelection(a)[0];if(s||(s=e.editor.plugins.get("TableSelection").getFocusCell()),s){r();var l=s.parent,c=l.parent,u=c.getChildIndex(l),d=l.getChildIndex(s),h=0===d;if(t||!h||0!==u){var f=d===l.childCount-1,p=u===i.getRows(c)-1;if(t&&p&&f&&(n.execute("insertTableRowBelow"),u===i.getRows(c)-1))n.model.change((function(t){t.setSelection(t.createRangeOn(c))}));else{var m;if(t&&f){var g=c.getChild(u+1);m=g.getChild(0)}else if(!t&&h){var v=c.getChild(u-1);m=v.getChild(v.childCount-1)}else m=l.getChild(d+(t?1:-1));n.model.change((function(t){t.setSelection(t.createRangeIn(m))}))}}else n.model.change((function(t){t.setSelection(t.createRangeOn(c))}))}}}},{key:"_onArrowKey",value:function(t,e){var n=this.editor,i=Mo(e.keyCode,n.locale.contentLanguageDirection);this._handleArrowKeys(i,e.shiftKey)&&(e.preventDefault(),e.stopPropagation(),t.stop())}},{key:"_handleArrowKeys",value:function(t,e){var n,i=this.editor.plugins.get(E_),o=this.editor.model,r=o.document.selection,a=["right","down"].includes(t),s=i.getSelectedTableCells(r);if(s.length)return n=e?this.editor.plugins.get("TableSelection").getFocusCell():a?s[s.length-1]:s[0],this._navigateFromCellInDirection(n,t,e),!0;
2var l=r.focus.findAncestor("tableCell");if(!l)return!1;if(!r.isCollapsed)if(e){if(r.isBackward==a&&!r.containsEntireContent(l))return!1}else{var c=r.getSelectedElement();if(!c||!o.schema.isObject(c))return!1}return!!this._isSelectionAtCellEdge(r,l,a)&&(this._navigateFromCellInDirection(l,t,e),!0)}},{key:"_isSelectionAtCellEdge",value:function(t,e,n){var i=this.editor.model,o=this.editor.model.schema,r=n?t.getLastPosition():t.getFirstPosition();if(!o.getLimitElement(r).is("element","tableCell"))return i.createPositionAt(e,n?"end":0).isTouching(r);var a=i.createSelection(r);return i.modifySelection(a,{direction:n?"forward":"backward"}),r.isEqual(a.focus)}},{key:"_navigateFromCellInDirection",value:function(t,e){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=this.editor.model,o=t.findAncestor("table"),r=m(new t_(o,{includeAllSlots:!0})),a=r[r.length-1],s=a.row,l=a.column,c=r.find((function(e){return e.cell==t})),u=c.row,d=c.column;switch(e){case"left":d--;break;case"up":u--;break;case"right":d+=c.cellWidth;break;case"down":u+=c.cellHeight}if(u<0||u>s||d<0&&u<=0||d>l&&u>=s)i.change((function(t){t.setSelection(t.createRangeOn(o))}));else{d<0?(d=n?0:l,u--):d>l&&(d=n?l:0,u++);var h=r.find((function(t){return t.row==u&&t.column==d})).cell,f=["right","down"].includes(e),p=this.editor.plugins.get("TableSelection");if(n&&p.isEnabled){var g=p.getAnchorCell()||t;p.setCellSelection(g,h)}else{var v=i.createPositionAt(h,f?0:"end");i.change((function(t){t.setSelection(v)}))}}}}],[{key:"pluginName",get:function(){return"TableKeyboard"}},{key:"requires",get:function(){return[ew,E_]}}]),n}(be),lw=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).domEventType=["mousemove","mouseleave"],i}return S(n,[{key:"onDomEvent",value:function(t){this.fire(t.type,t)}}]),n}(ia),cw=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){this.editor.editing.view.addObserver(lw),this._enableShiftClickSelection(),this._enableMouseDragSelection()}},{key:"_enableShiftClickSelection",value:function(){var t=this,e=this.editor,n=e.plugins.get(E_),i=!1,o=e.plugins.get(ew);this.listenTo(e.editing.view.document,"mousedown",(function(r,a){var s=e.model.document.selection;if(t.isEnabled&&o.isEnabled&&a.domEvent.shiftKey){var l=o.getAnchorCell()||n.getTableCellsContainingSelection(s)[0];if(l){var c=t._getModelTableCellFromDomEvent(a);c&&uw(l,c)&&(i=!0,o.setCellSelection(l,c),a.preventDefault())}}})),this.listenTo(e.editing.view.document,"mouseup",(function(){i=!1})),this.listenTo(e.editing.view.document,"selectionChange",(function(t){i&&t.stop()}),{priority:"highest"})}},{key:"_enableMouseDragSelection",value:function(){var t,e,n=this,i=this.editor,o=!1,r=!1,a=i.plugins.get(ew);this.listenTo(i.editing.view.document,"mousedown",(function(e,i){n.isEnabled&&a.isEnabled&&(i.domEvent.shiftKey||i.domEvent.ctrlKey||i.domEvent.altKey||(t=n._getModelTableCellFromDomEvent(i)))})),this.listenTo(i.editing.view.document,"mousemove",(function(i,s){if(s.domEvent.buttons&&t){var l=n._getModelTableCellFromDomEvent(s);l&&uw(t,l)&&(e=l,o||e==t||(o=!0)),o&&(r=!0,a.setCellSelection(t,e),s.preventDefault())}})),this.listenTo(i.editing.view.document,"mouseup",(function(){o=!1,r=!1,t=null,e=null})),this.listenTo(i.editing.view.document,"selectionChange",(function(t){r&&t.stop()}),{priority:"highest"})}},{key:"_getModelTableCellFromDomEvent",value:function(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(){return"TableMouse"}},{key:"requires",get:function(){return[ew,E_]}}]),n}(be);function uw(t,e){return t.parent.parent==e.parent.parent}var dw=r(4104);function hw(t){return!!t&&t.is("element","table")}function fw(t){var e,n=p(t.getChildren());try{for(n.s();!(e=n.n()).done;){var i=e.value;if(i.is("element","caption"))return i}}catch(t){n.e(t)}finally{n.f()}return null}function pw(t){var e=t.parent;return"figcaption"==t.name&&e&&"figure"==e.name&&e.hasClass("table")||"caption"==t.name&&e&&"table"==e.name?{name:!0}:null}function mw(t){var e=t.getSelectedElement();return e&&e.is("element","table")?e:t.getFirstPosition().findAnce
2stor("table")}fr()(dw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),dw.Z.locals;var gw=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"refresh",value:function(){var t=mw(this.editor.model.document.selection);this.isEnabled=!!t,this.isEnabled?this.value=!!fw(t):this.value=!1}},{key:"execute",value:function(){var t=this,e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).focusCaptionOnShow;this.editor.model.change((function(n){t.value?t._hideTableCaption(n):t._showTableCaption(n,e)}))}},{key:"_showTableCaption",value:function(t,e){var n=mw(this.editor.model.document.selection),i=this.editor.plugins.get("TableCaptionEditing")._getSavedCaption(n)||t.createElement("caption");t.append(i,n),e&&t.setSelection(i,"in")}},{key:"_hideTableCaption",value:function(t){var e=mw(this.editor.model.document.selection),n=this.editor.plugins.get("TableCaptionEditing"),i=fw(e);n._saveCaption(e,i),t.setSelection(t.createRangeIn(e.getChild(0).getChild(0))),t.remove(i)}}]),n}(_e),vw=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._savedCaptionsMap=new WeakMap,i}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.editing.view,i=t.t;e.isRegistered("caption")?e.extend("caption",{allowIn:"table"}):e.register("caption",{allowIn:"table",allowContentOf:"$block",isLimit:!0}),t.commands.add("toggleTableCaption",new gw(this.editor)),t.conversion.for("upcast").elementToElement({view:pw,model:"caption"}),t.conversion.for("dataDowncast").elementToElement({model:"caption",view:function(t,e){var n=e.writer;return hw(t.parent)?n.createContainerElement("figcaption"):null}}),t.conversion.for("editingDowncast").elementToElement({model:"caption",view:function(t,e){var o=e.writer;if(!hw(t.parent))return null;var r=o.createEditableElement("figcaption");return o.setCustomProperty("tableCaption",!0,r),dh({view:n,element:r,text:i("Enter table caption"),keepOnFocus:!0}),Bp(r,o)}}),function(t){t.document.registerPostFixer((function(e){return function(t,e){var n,i=!1,o=p(e.document.differ.getChanges());try{for(o.s();!(n=o.n()).done;){var r=n.value;if("insert"==r.type&&(r.position.parent.is("element","table")||"table"==r.name)){var a="table"==r.name?r.position.nodeAfter:r.position.parent,s=Array.from(a.getChildren()).filter((function(t){return t.is("element","caption")})),l=s.shift();if(!l)continue;var c,u=p(s);try{for(u.s();!(c=u.n()).done;){var d=c.value;t.move(t.createRangeIn(d),l,"end"),t.remove(d)}}catch(t){u.e(t)}finally{u.f()}l.nextSibling&&(t.move(t.createRangeOn(l),a,"end"),i=!0),i=!!s.length||i}}}catch(t){o.e(t)}finally{o.f()}return i}(e,t)}))}(t.model)}},{key:"_getSavedCaption",value:function(t){var e=this._savedCaptionsMap.get(t);return e?Ja.fromJSON(e):null}},{key:"_saveCaption",value:function(t,e){this._savedCaptionsMap.set(t,e.toJSON())}}],[{key:"pluginName",get:function(){return"TableCaptionEditing"}}]),n}(be),kw=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing.view,i=e.t;e.ui.componentFactory.add("toggleTableCaption",(function(o){var r=e.commands.get("toggleTableCaption"),a=new Hu(o);return a.set({icon:Rc,tooltip:!0,isToggleable:!0}),a.bind("isOn","isEnabled").to(r,"value","isEnabled"),a.bind("label").to(r,"value",(function(t){return i(t?"Toggle caption off":"Toggle caption on")})),t.listenTo(a,"execute",(function(){if(e.execute("toggleTableCaption",{focusCaptionOnShow:!0}),r.value){var t=function(t){var e=mw(t);return e?fw(e):null}(e.model.document.selection),i=e.editing.mapper.toViewElement(t);if(!i)return;n.scrollToTheSelection(),n.change((function(t){t.addClass("table__caption_highlighted",i)}))}})),a}))}}],[{key:"pluginName",get:function(){return"TableCaptionUI"}}]),n}(be),bw=r(9888);fr()(bw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),bw.Z.locals;var yw=r(4082);fr()(yw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),yw.Z.locals;var _w=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n);var r=(o=e.call(this,t)).bindTemplate;return o.set("value",""),o.set("id"),o.set("isReadOnly",!1),o.set("hasError",!1),o.set("isFocused",!1),o.set("isEmpty",!0),o.set("ariaDescribedById"),o.options=i,o._dropdownView=o._createDropdownView(),o._inputVie
2w=o._createInputTextView(),o._stillTyping=!1,o.setTemplate({tag:"div",attributes:{class:["ck","ck-input-color",r.if("hasError","ck-error")],id:r.to("id"),"aria-invalid":r.if("hasError",!0),"aria-describedby":r.to("ariaDescribedById")},children:[o._dropdownView,o._inputView]}),o.on("change:value",(function(t,e,n){return o._setInputValue(n)})),o}return S(n,[{key:"focus",value:function(){this._inputView.focus()}},{key:"_createDropdownView",value:function(){var t=this.locale,e=t.t,n=this.bindTemplate,i=this._createColorGrid(t),o=Ad(t),r=new mu,a=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}))]}}]}),o.buttonView.extendTemplate({attributes:{class:"ck-input-color__button"}}),o.buttonView.children.add(r),o.buttonView.tooltip=e("Color picker"),o.panelPosition="rtl"===t.uiLanguageDirection?"se":"sw",o.panelView.children.add(a),o.panelView.children.add(i),o.bind("isEnabled").to(this,"isReadOnly",(function(t){return!t})),o}},{key:"_createInputTextView",value:function(){var t=this,e=this.locale,n=new Fd(e);return n.extendTemplate({on:{blur:n.bindTemplate.to("blur")}}),n.value=this.value,n.bind("isReadOnly","hasError").to(this),this.bind("isFocused","isEmpty").to(n),n.on("input",(function(){var e=n.element.value,i=t.options.colorDefinitions.find((function(t){return e===t.label}));t._stillTyping=!0,t.value=i&&i.color||e})),n.on("blur",(function(){t._stillTyping=!1,t._setInputValue(n.element.value)})),n.delegate("input").to(this),n}},{key:"_createRemoveColorButton",value:function(){var t=this,e=this.locale,n=e.t,i=new Hu(e),o=this.options.defaultColorValue||"",r=n(o?"Restore default":"Remove color");return i.class="ck-input-color__remove-color",i.withText=!0,i.icon=Vc,i.label=r,i.on("execute",(function(){t.value=o,t._dropdownView.isOpen=!1,t.fire("input")})),i}},{key:"_createColorGrid",value:function(t){var e=this,n=new Xu(t,{colorDefinitions:this.options.colorDefinitions,columns:this.options.columns});return n.on("execute",(function(t,n){e.value=n.value,e._dropdownView.isOpen=!1,e.fire("input")})),n.bind("selectedColor").to(this,"value"),n}},{key:"_setInputValue",value:function(t){if(!this._stillTyping){var e=ww(t),n=this.options.colorDefinitions.find((function(t){return e===ww(t.color)}));this._inputView.value=n?n.label:t||""}}}]),n}(mu);function ww(t){return t.replace(/([(,])\s+/g,"$1").replace(/^\s+|\s+(?=[),\s]|$)/g,"").replace(/,|\s/g," ")}var Cw=function(t){return""===t};function Aw(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 xw(t){return t('The color is invalid. Try "#FF0000" or "rgb(255,0,0)" or "red".')}function Dw(t){return t('The value is invalid. Try "10px" or "2em" or simply "2".')}function Ew(t){return t=t.trim(),Cw(t)||Lh(t)}function Sw(t){return t=t.trim(),Cw(t)||Pw(t)||Rh(t)||Vh(t)}function Tw(t){return t=t.trim(),Cw(t)||Pw(t)||Rh(t)}function Iw(t,e){var n=new Xn,i=Aw(t.t),o=function(o){var r={type:"button",model:new Wd({_borderStyleValue:o,label:i[o],withText:!0})};"none"===o?r.model.bind("isOn").to(t,"borderStyle",(function(t){return"none"===e?!t:t===o})):r.model.bind("isOn").to(t,"borderStyle",(function(t){return t===o})),n.add(r)};for(var r in i)o(r);return n}function zw(t){var e=t.view,n=t.icons,i=t.toolbar,o=t.labels,r=t.propertyName,a=t.nameToValue,s=t.defaultValue,l=function(){var t=new Hu(e.locale);t.set({label:o[c],icon:n[c],tooltip:o[c]});var l=a?a(c):c;t.bind("isOn").to(e,r,(function(t){var e=t;return""===t&&s&&(e=s),l===e})),t.on("execute",(function(){e[r]=l})),i.items.add(t)};for(var c in o)l()}var Mw=[{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 Bw(t){return function(e,n,i){var o,r=new _w(e.locale,{colorDefinitions:(o=t.colorConfig,o.map((function(t){return{color:t.model,label:t.label,options:{hasBorder:t.hasBorder}}}))),columns:t.columns,defaultColorValue:t.defaultColorValue});return r.set({id:n,ariaDescribedById:i}),r.bind("isReadOnly").to(e,"isEnabled",(function(t){return!t})),r.bind("hasError").to(e,"errorText",(function(t){return!!t})),r.on("input",(function(){e.errorText=null})),e.bind("isEmpty","isFocused").to(r),r}}function Pw(t){var e=parseFloat(t);return!Number.isNaN(e)&&t===String(e)}var Lw=r(9865);fr()(Lw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Lw.Z.locals;var Nw=function(t){k(n,t);var e=b(n);function n(t){var i,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,n);var r=(i=e.call(this,t)).bindTemplate;return i.set("class",o.class||null),i.children=i.createCollection(),o.children&&o.children.forEac
2h((function(t){return i.children.add(t)})),i.set("_role",null),i.set("_ariaLabelledBy",null),o.labelView&&i.set({_role:"group",_ariaLabelledBy:o.labelView.id}),i.setTemplate({tag:"div",attributes:{class:["ck","ck-form__row",r.to("class")],role:r.to("_role"),"aria-labelledby":r.to("_ariaLabelledBy")},children:i.children}),i}return S(n)}(mu),Ow=r(4880);fr()(Ow.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Ow.Z.locals;var Fw=r(198);fr()(Fw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Fw.Z.locals;var Rw=r(5737);fr()(Rw.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),Rw.Z.locals;var jw={left:Gc,center:$c,right:Yc,justify:Kc,top:Wc,middle:qc,bottom:Zc},Vw=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),(o=e.call(this,t)).set({borderStyle:"",borderWidth:"",borderColor:"",padding:"",backgroundColor:"",width:"",height:"",horizontalAlignment:"",verticalAlignment:""}),o.options=i;var r=o._createBorderFields(),a=r.borderStyleDropdown,s=r.borderWidthInput,l=r.borderColorInput,c=r.borderRowLabel,u=o._createBackgroundFields(),d=u.backgroundRowLabel,h=u.backgroundInput,f=o._createDimensionFields(),p=f.widthInput,m=f.operatorLabel,g=f.heightInput,v=f.dimensionsLabel,k=o._createAlignmentFields(),b=k.horizontalAlignmentToolbar,y=k.verticalAlignmentToolbar,_=k.alignmentLabel;o.focusTracker=new Pa,o.keystrokes=new La,o.children=o.createCollection(),o.borderStyleDropdown=a,o.borderWidthInput=s,o.borderColorInput=l,o.backgroundInput=h,o.paddingInput=o._createPaddingField(),o.widthInput=p,o.heightInput=g,o.horizontalAlignmentToolbar=b,o.verticalAlignmentToolbar=y;var w=o._createActionButtons(),C=w.saveButtonView,A=w.cancelButtonView;return o.saveButtonView=C,o.cancelButtonView=A,o._focusables=new fu,o._focusCycler=new Ku({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),o.children.add(new Ld(t,{label:o.t("Cell properties")})),o.children.add(new Nw(t,{labelView:c,children:[c,a,l,s],class:"ck-table-form__border-row"})),o.children.add(new Nw(t,{labelView:d,children:[d,h],class:"ck-table-form__background-row"})),o.children.add(new Nw(t,{children:[new Nw(t,{labelView:v,children:[v,p,m,g],class:"ck-table-form__dimensions-row"}),new Nw(t,{children:[o.paddingInput],class:"ck-table-cell-properties-form__padding-row"})]})),o.children.add(new Nw(t,{labelView:_,children:[_,b,y],class:"ck-table-cell-properties-form__alignment-row"})),o.children.add(new Nw(t,{children:[o.saveButtonView,o.cancelButtonView],class:"ck-table-form__action-row"})),o.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-cell-properties-form"],tabindex:"-1"},children:o.children}),o}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),hu({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.paddingInput,this.horizontalAlignmentToolbar,this.verticalAlignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createBorderFields",value:function(){var t=this,e=this.options.defaultTableCellProperties,n={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},i=Bw({colorConfig:this.options.borderColors,columns:5,defaultColorValue:n.color}),o=this.locale,r=this.t,a=new Id(o);a.text=r("Border");var s=Aw(r),l=new Vd(o,Zd);l.set({label:r("Style"),class:"ck-table-form__border-style"}),l.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:r("Style")}),l.fieldView.buttonView.bind("label").to(this,"borderStyle",(function(t){return s[t||"none"]})),l.fieldView.on("execute",(function(e){t.borderStyle=e.source._borderStyleValue})),l.bind("isEmpty").to(this,"borderStyle",(function(t){return!t})),Dd(l.fieldView,Iw(this,n.style));var c=new Vd(o,Hd);c.set({label:r("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",Hw),c.fieldView.on("input",(function(){t.borderWidth=c.fieldView.element.value}));var u=new Vd(o,i);return u.set({label:r("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",Hw),u.fieldView.on("input",(function(){t.borderColor=u.fieldView.value})),this.on("change:borderStyle",(function(e,i,o,r){Hw(o)||(t.borderColor="",t.borderWidth=""),Hw(r)||(t.borderColor=n.color,t.borderWidth=n.width)})),{borderRowLabel:a,borderStyleDropdown:l,borderColorInput:u,borderWidthInput:c}}}
2,{key:"_createBackgroundFields",value:function(){var t=this,e=this.locale,n=this.t,i=new Id(e);i.text=n("Background");var o=Bw({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableCellProperties.backgroundColor}),r=new Vd(e,o);return r.set({label:n("Color"),class:"ck-table-cell-properties-form__background"}),r.fieldView.bind("value").to(this,"backgroundColor"),r.fieldView.on("input",(function(){t.backgroundColor=r.fieldView.value})),{backgroundRowLabel:i,backgroundInput:r}}},{key:"_createDimensionFields",value:function(){var t=this,e=this.locale,n=this.t,i=new Id(e);i.text=n("Dimensions");var o=new Vd(e,Hd);o.set({label:n("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",(function(){t.width=o.fieldView.element.value}));var r=new mu(e);r.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});var a=new Vd(e,Hd);return a.set({label:n("Height"),class:"ck-table-form__dimensions-row__height"}),a.fieldView.bind("value").to(this,"height"),a.fieldView.on("input",(function(){t.height=a.fieldView.element.value})),{dimensionsLabel:i,widthInput:o,operatorLabel:r,heightInput:a}}},{key:"_createPaddingField",value:function(){var t=this,e=this.locale,n=this.t,i=new Vd(e,Hd);return i.set({label:n("Padding"),class:"ck-table-cell-properties-form__padding"}),i.fieldView.bind("value").to(this,"padding"),i.fieldView.on("input",(function(){t.padding=i.fieldView.element.value})),i}},{key:"_createAlignmentFields",value:function(){var t=this.locale,e=this.t,n=new Id(t);n.text=e("Table cell text alignment");var i=new pd(t),o="rtl"===this.locale.contentLanguageDirection;i.set({isCompact:!0,ariaLabel:e("Horizontal text alignment toolbar")}),zw({view:this,icons:jw,toolbar:i,labels:this._horizontalAlignmentLabels,propertyName:"horizontalAlignment",nameToValue:function(t){if(o){if("left"===t)return"right";if("right"===t)return"left"}return t},defaultValue:this.options.defaultTableCellProperties.horizontalAlignment});var r=new pd(t);return r.set({isCompact:!0,ariaLabel:e("Vertical text alignment toolbar")}),zw({view:this,icons:jw,toolbar:r,labels:this._verticalAlignmentLabels,propertyName:"verticalAlignment",defaultValue:this.options.defaultTableCellProperties.verticalAlignment}),{horizontalAlignmentToolbar:i,verticalAlignmentToolbar:r,alignmentLabel:n}}},{key:"_createActionButtons",value:function(){var t=this.locale,e=this.t,n=new Hu(t),i=new Hu(t),o=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.paddingInput];return n.set({label:e("Save"),icon:jc,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(o,"errorText",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every((function(t){return!t}))})),i.set({label:e("Cancel"),icon:Fc,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}},{key:"_horizontalAlignmentLabels",get:function(){var t=this.locale,e=this.t,n=e("Align cell text to the left"),i=e("Align cell text to the center"),o=e("Align cell text to the right"),r=e("Justify cell text");return"rtl"===t.uiLanguageDirection?{right:o,center:i,left:n,justify:r}:{left:n,center:i,right:o,justify:r}}},{key:"_verticalAlignmentLabels",get:function(){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")}}}]),n}(mu);function Hw(t){return"none"!==t}function Uw(t){var e=t.getSelectedElement();return e&&qw(e)?e:null}function Zw(t){for(var e=t.getFirstPosition().parent;e;){if(e.is("element")&&qw(e))return e;e=e.parent}return null}function qw(t){return!!t.getCustomProperty("table")&&Ep(t)}var Ww=Qd.defaultPositions,Gw=[Ww.northArrowSouth,Ww.northArrowSouthWest,Ww.northArrowSouthEast,Ww.southArrowNorth,Ww.southArrowNorthWest,Ww.southArrowNorthEast,Ww.viewportStickyNorth];function $w(t,e){var n,i=t.plugins.get("ContextualBalloon");Zw(t.editing.view.document.selection)&&(n="cell"===e?Kw(t):Yw(t),i.updatePosition(n))}function Yw(t){var e=t.model.document.selection.getFirstPosition().findAnce
2stor("table"),n=t.editing.mapper.toViewElement(e);return{target:t.editing.view.domConverter.viewToDom(n),positions:Gw}}function Kw(t){var e=t.editing.mapper,n=t.editing.view.domConverter,i=t.model.document.selection;if(i.rangeCount>1)return{target:function(){return function(t,e){var n=e.editing.mapper,i=e.editing.view.domConverter,o=Array.from(t).map((function(t){var e=Qw(t.start),o=n.toViewElement(e);return new Sa(i.viewToDom(o))}));return Sa.getBoundingRect(o)}(i.getRanges(),t)},positions:Gw};var o=Qw(i.getFirstPosition()),r=e.toViewElement(o);return{target:n.viewToDom(r),positions:Gw}}function Qw(t){return t.nodeAfter&&t.nodeAfter.is("element","tableCell")?t.nodeAfter:t.findAncestor("tableCell")}function Jw(t){if(!t||!Z(t))return t;var e=t.top,n=t.right,i=t.bottom,o=t.left;return e==n&&n==i&&i==o?e:void 0}function Xw(t,e){var n=parseFloat(t);return Number.isNaN(n)||String(n)!==String(t)?t:"".concat(n).concat(e)}function tC(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=Object.assign({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 eC={borderStyle:"tableCellBorderStyle",borderColor:"tableCellBorderColor",borderWidth:"tableCellBorderWidth",width:"tableCellWidth",height:"tableCellHeight",padding:"tableCellPadding",backgroundColor:"tableCellBackgroun
2dColor",horizontalAlignment:"tableCellHorizontalAlignment",verticalAlignment:"tableCellVerticalAlignment"},nC=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("table.tableCellProperties",{borderColors:Mw,backgroundColors:Mw}),i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;this._defaultTableCellProperties=tC(e.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===e.locale.contentLanguageDirection}),this._balloon=e.plugins.get(nh),this.view=this._createPropertiesView(),this._undoStepBatch=null,e.ui.componentFactory.add("tableCellProperties",(function(i){var o=new Hu(i);o.set({label:n("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}),t.listenTo(o,"execute",(function(){return t._showView()}));var r=Object.values(eC).map((function(t){return e.commands.get(t)}));return o.bind("isEnabled").toMany(r,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),o}))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.view.destroy()}},{key:"_createPropertiesView",value:function(){var t=this,e=this.editor,n=e.editing.view.document,i=e.config.get("table.tableCellProperties"),o=Wu(i.borderColors),r=qu(e.locale,o),a=Wu(i.backgroundColors),s=qu(e.locale,a),l=new Vw(e.locale,{borderColors:r,backgroundColors:s,defaultTableCellProperties:this._defaultTableCellProperties}),c=e.t;l.render(),this.listenTo(l,"submit",(function(){t._hideView()})),this.listenTo(l,"cancel",(function(){t._undoStepBatch.operations.length&&e.execute("undo",t._undoStepBatch),t._hideView()})),l.keystrokes.set("Esc",(function(e,n){t._hideView(),n()})),this.listenTo(e.ui,"update",(function(){Zw(n.selection)?t._isViewVisible&&$w(e,"cell"):t._hideView()})),uu({emitter:l,activator:function(){return t._isViewInBalloon},contextElements:[this._balloon.view.element],callback:function(){return t._hideView()}});var u=xw(c),d=Dw(c);return l.on("change:borderStyle",this._getPropertyChangeCallback("tableCellBorderStyle",this._defaultTableCellProperties.borderStyle)),l.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:l.borderColorInput,commandName:"tableCellBorderColor",errorText:u,validator:Ew,defaultValue:this._defaultTableCellProperties.borderColor})),l.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:l.borderWidthInput,commandName:"tableCellBorderWidth",errorText:d,validator:Tw,defaultValue:this._defaultTableCellProperties.borderWidth})),l.on("change:padding",this._getValidatedPropertyChangeCallback({viewField:l.paddingInput,commandName:"tableCellPadding",errorText:d,validator:Sw,defaultValue:this._defaultTableCellProperties.padding})),l.on("change:width",this._getValidatedPropertyChangeCallback({viewField:l.widthInput,commandName:"tableCellWidth",errorText:d,validator:Sw,defaultValue:this._defaultTableCellProperties.width})),l.on("change:height",this._getValidatedPropertyChangeCallback({viewField:l.heightInput,commandName:"tableCellHeight",errorText:d,validator:Sw,defaultValue:this._defaultTableCellProperties.height})),l.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:l.backgroundInput,commandName:"tableCellBackgroun
2dColor",errorText:u,validator:Ew,defaultValue:this._defaultTableCellProperties.backgroundColor})),l.on("change:horizontalAlignment",this._getPropertyChangeCallback("tableCellHorizontalAlignment",this._defaultTableCellProperties.horizontalAlignment)),l.on("change:verticalAlignment",this._getPropertyChangeCallback("tableCellVerticalAlignment",this._defaultTableCellProperties.verticalAlignment)),l}},{key:"_fillViewFormFromCommandValues",value:function(){var t=this,e=this.editor.commands,n=e.get("tableCellBorderStyle");Object.entries(eC).map((function(n){var i=f(n,2),o=i[0],r=i[1],a=t._defaultTableCellProperties[o]||"";return[o,e.get(r).value||a]})).forEach((function(e){var i=f(e,2),o=i[0],r=i[1];("borderColor"!==o&&"borderWidth"!==o||"none"!==n.value)&&t.view.set(o,r)}))}},{key:"_showView",value:function(){var t=this.editor;this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Kw(t)}),this._undoStepBatch=t.model.createBatch(),this.view.focus()}},{key:"_hideView",value:function(){if(this._isViewInBalloon){var t=this.editor;this.stopListening(t.ui,"update"),this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}}},{key:"_isViewVisible",get:function(){return this._balloon.visibleView===this.view}},{key:"_isViewInBalloon",get:function(){return this._balloon.hasView(this.view)}},{key:"_getPropertyChangeCallback",value:function(t,e){var n=this;return function(i,o,r,a){(a||e!==r)&&n.editor.execute(t,{value:r,batch:n._undoStepBatch})}}},{key:"_getValidatedPropertyChangeCallback",value:function(t){var e=this,n=t.commandName,i=t.viewField,o=t.validator,r=t.errorText,a=t.defaultValue,s=ga((function(){i.errorText=r}),500);return function(t,r,l,c){s.cancel(),(c||a!==l)&&(o(l)?(e.editor.execute(n,{value:l,batch:e._undoStepBatch}),i.errorText=null):s())}}}],[{key:"requires",get:function(){return[nh]}},{key:"pluginName",get:function(){return"TableCellPropertiesUI"}}]),n}(be);function iC(t,e){var n=e.viewElement,i=e.defaultValue,o=e.modelAttribute,r=e.styleName,a=e.reduceBoxSides,s=void 0!==a&&a;t.for("upcast").attributeToAttribute({view:{name:n,styles:u({},r,/[\s\S]+/)},model:{key:o,value:function(t){var e=t.getNormalizedStyle(r),n=s?sC(e):e;if(i!==n)return n}}})}function oC(t,e,n,i){t.for("upcast").add((function(t){return t.on("element:"+e,(function(t,e,o){if(e.modelRange){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){var a={styles:r};if(o.consumable.test(e.viewItem,a)){var s=m(e.modelRange.getItems({shallow:!0})).pop();o.consumable.consume(e.viewItem,a);var l={style:e.viewItem.getNormalizedStyle("border-style"),color:e.viewItem.getNormalizedStyle("border-color"),width:e.viewItem.getNormalizedStyle("border-width")},c={style:sC(l.style),color:sC(l.color),width:sC(l.width)};c.style!==i.style&&o.writer.setAttribute(n.style,c.style,s),c.color!==i.color&&o.writer.setAttribute(n.color,c.color,s),c.width!==i.width&&o.writer.setAttribute(n.width,c.width,s)}}}}))}))}function rC(t,e){var n=e.modelElement,i=e.modelAttribute,o=e.styleName;t.for("downcast").attributeToAttribute({model:{name:n,key:i},view:function(t){return{key:"style",value:u({},o,t)}}})}function aC(t,e){var n=e.modelAttribute,i=e.styleName;t.for("downcast").add((function(t){return t.on("attribute:".concat(n,":table"),(function(t,e,n){var o=e.item,r=e.attributeNewValue,a=n.mapper,s=n.writer;if(n.consumable.consume(e.item,t.name)){var l=m(a.toViewElement(o).getChildren()).find((function(t){return t.is("element","table")}));r?s.setStyle(i,r,l):s.removeStyle(i,l)}}))}))}function sC(t){if(t)return["top","right","bottom","left"].map((function(e){return t[e]})).reduce((function(t,e){return t==e?t:null}))||t}var lC=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,t)).attributeName=i,r._defaultValue=o,r}return S(n,[{key:"refresh",value:function(){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(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=e.value,i=e.batch,o=this.editor.model,r=this.editor.plugins.get("TableUtils").getSelectionAffectedTableCells(o.document.selection),a=this._getValueToSet(n);o.enqueueChange(i,(function(e){a?r.forEach((function(n){return e.setAttribute(t.attributeName,a,n)})):r.forEach((function(n){return e.removeAttribute(t.attributeName,n)}))}))}},{key:"_getAttribute",value:function(t){if(t){var e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}}},{key:"_getValueToSet",value:function(t){if(t!==this._defaultValue)return t}},{key:"_getSingleValue",value:function(t){var e=this,n=this._getAttribute(t[0]);return t.every((function(t){return e._getAttribute(t)===n}))?n:void 0}}]),n}(_e),cC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellPadding",i
2)}return S(n,[{key:"_getAttribute",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}},{key:"_getValueToSet",value:function(t){if((t=Xw(t,"px"))!==this._defaultValue)return t}}]),n}(lC),uC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellWidth",i)}return S(n,[{key:"_getValueToSet",value:function(t){if((t=Xw(t,"px"))!==this._defaultValue)return t}}]),n}(lC),dC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellHeight",i)}return S(n,[{key:"_getValueToSet",value:function(t){return(t=Xw(t,"px"))===this._defaultValue?null:t}}]),n}(lC),hC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellBackgroundColor",i)}return S(n)}(lC),fC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellVerticalAlignment",i)}return S(n)}(lC),pC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellHorizontalAlignment",i)}return S(n)}(lC),mC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellBorderStyle",i)}return S(n,[{key:"_getAttribute",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}}]),n}(lC),gC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellBorderColor",i)}return S(n,[{key:"_getAttribute",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}}]),n}(lC),vC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableCellBorderWidth",i)}return S(n,[{key:"_getAttribute",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}},{key:"_getValueToSet",value:function(t){if((t=Xw(t,"px"))!==this._defaultValue)return t}}]),n}(lC),kC=/^(top|middle|bottom)$/,bC=/^(left|center|right|justify)$/,yC=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableCellProperties.defaultProperties",{});var i=tC(t.config.get("table.tableCellProperties.defaultProperties"),{includeVerticalAlignmentProperty:!0,includeHorizontalAlignmentProperty:!0,includePaddingProperty:!0,isRightToLeftContent:"rtl"===t.locale.contentLanguageDirection});t.data.addStyleProcessorRules(ef),function(t,e,n){var i={width:"tableCellBorderWidth",color:"tableCellBorderColor",style:"tableCellBorderStyle"};t.extend("tableCell",{allowAttributes:Object.values(i)}),oC(e,"td",i,n),oC(e,"th",i,n),rC(e,{modelElement:"tableCell",modelAttribute:i.style,styleName:"border-style"}),rC(e,{modelElement:"tableCell",modelAttribute:i.color,styleName:"border-color"}),rC(e,{modelElement:"tableCell",modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableCellBorderStyle",new mC(t,i.borderStyle)),t.commands.add("tableCellBorderColor",new gC(t,i.borderColor)),t.commands.add("tableCellBorderWidth",new vC(t,i.borderWidth)),_C(e,n,{modelAttribute:"tableCellWidth",styleName:"width",defaultValue:i.width}),t.commands.add("tableCellWidth",new uC(t,i.width)),_C(e,n,{modelAttribute:"tableCellHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableCellHeight",new dC(t,i.height)),t.data.addStyleProcessorRules(ff),_C(e,n,{modelAttribute:"tableCellPadding",styleName:"padding",reduceBoxSides:!0,defaultValue:i.padding}),t.commands.add("tableCellPadding",new cC(t,i.padding)),t.data.addStyleProcessorRules(Xh),_C(e,n,{modelAttribute:"tableCellBackgroun
2dColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableCellBackgroundColor",new hC(t,i.backgroundColor)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellHorizontalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellHorizontalAlignment"},view:function(t){return{key:"style",value:{"text-align":t}}}}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"text-align":bC}},model:{key:"tableCellHorizontalAlignment",value:function(t){var e=t.getStyle("text-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{align:bC}},model:{key:"tableCellHorizontalAlignment",value:function(t){var e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.horizontalAlignment),t.commands.add("tableCellHorizontalAlignment",new pC(t,i.horizontalAlignment)),function(t,e,n){t.extend("tableCell",{allowAttributes:["tableCellVerticalAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"tableCell",key:"tableCellVerticalAlignment"},view:function(t){return{key:"style",value:{"vertical-align":t}}}}),e.for("upcast").attributeToAttribute({view:{name:/^(td|th)$/,styles:{"vertical-align":kC}},model:{key:"tableCellVerticalAlignment",value:function(t){var e=t.getStyle("vertical-align");return e===n?null:e}}}).attributeToAttribute({view:{name:/^(td|th)$/,attributes:{valign:kC}},model:{key:"tableCellVerticalAlignment",value:function(t){var e=t.getAttribute("valign");return e===n?null:e}}})}(e,n,i.verticalAlignment),t.commands.add("tableCellVerticalAlignment",new fC(t,i.verticalAlignment))}}],[{key:"pluginName",get:function(){return"TableCellPropertiesEditing"}},{key:"requires",get:function(){return[G_]}}]),n}(be);function _C(t,e,n){var i=n.modelAttribute;t.extend("tableCell",{allowAttributes:[i]}),iC(e,c({viewElement:/^(td|th)$/},n)),rC(e,c({modelElement:"tableCell"},n))}var wC=function(t){k(n,t);var e=b(n);function n(t,i,o){var r;return I(this,n),(r=e.call(this,t)).attributeName=i,r._defaultValue=o,r}return S(n,[{key:"refresh",value:function(){var t=this.editor.model.document.selection.getFirstPosition().findAncestor("table");this.isEnabled=!!t,this.value=this._getValue(t)}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},n=this.editor.model,i=n.document.selection,o=e.value,r=e.batch,a=i.getFirstPosition().findAncestor("table"),s=this._getValueToSet(o);n.enqueueChange(r,(function(e){s?e.setAttribute(t.attributeName,s,a):e.removeAttribute(t.attributeName,a)}))}},{key:"_getValue",value:function(t){if(t){var e=t.getAttribute(this.attributeName);return e!==this._defaultValue?e:void 0}}},{key:"_getValueToSet",value:function(t){if(t!==this._defaultValue)return t}}]),n}(_e),CC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableBackgroundColor",i)}return S(n)}(wC),AC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableBorderColor",i)}return S(n,[{key:"_getValue",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}}]),n}(wC),xC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableBorderStyle",i)}return S(n,[{key:"_getValue",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}}]),n}(wC),DC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableBorderWidth",i)}return S(n,[{key:"_getValue",value:function(t){if(t){var e=Jw(t.getAttribute(this.attributeName));return e!==this._defaultValue?e:void 0}}},{key:"_getValueToSet",value:function(t){if((t=Xw(t,"px"))!==this._defaultValue)return t}}]),n}(wC),EC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableWidth",i)}return S(n,[{key:"_getValueToSet",value:function(t){if((t=Xw(t,"px"))!==this._defaultValue)return t}}]),n}(wC),SC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableHeight",i)}return S(n,[{key:"_getValueToSet",value:function(t){return(t=Xw(t,"px"))===this._defaultValue?null:t}}]),n}(wC),TC=function(t){k(n,t);var e=b(n);function n(t,i){return I(this,n),e.call(this,t,"tableAlignment",i)}return S(n)}(wC),IC=/^(left|center|right)$/,zC=/^(left|none|right)$/,MC=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.model.schema,n=t.conversion;t.config.define("table.tableProperties.defaultProperties",{});var i=tC(t.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0});t.data.addStyleProcessorRules(ef),function(t,e,n){var i={width:"tableBorderWidth",color:"tableBorderColor",style:"tableBorderStyle"};t.extend("table",{allowAttributes:Object.values(i)}),oC(e,"table",i,n),aC(e,{modelAttribute:i.color,styleName:"border-color"}),aC(e,{modelAttribute:i.style,styleName:"border-style"}),aC(e,{modelAttribute:i.width,styleName:"border-width"})}(e,n,{color:i.borderColor,style:i.borderStyle,width:i.borderWidth}),t.commands.add("tableBorderColor",new AC(t,i.borderColor)),t.commands.add("tableBorderStyle",new xC(t,i.borderStyle)),t.commands.add("tableBorderWidth",new DC(t,i.borderWidth)),function(t,e,n){t.extend("table",{allowAttributes:["tableAlignment"]}),e.for("downcast").attributeToAttribute({model:{name:"table",key:"tableAlignment"},view:function(t){return{key:"style",value:{float:"center"===t?"none":t}}},converterPriority:"high"}),e.for("upcast").attributeToAttribute({view:{name:/^(table|figure)$/,styles:{float:zC}},model:{key:"tableAlignment",value:function(t){var e=t.getStyle("float");return"none"===e&&(e="center"),e===n?null:e}}}).attributeToAttribute({view:{attributes:{align:IC}},model:{name:"table",key:"tableAlignment",value:function(t){var e=t.getAttribute("align");return e===n?null:e}}})}(e,n,i.alignment),t.commands.add("tableAlignment",new TC(t,i.alignment)),BC(e,n,{modelAttribute:"tableWidth",styleName:"width",defaultValue:i.width}),t.commands.add("tableWidth",new EC(t,i.width)),BC(e,n,{modelAttribute:"tableHeight",styleName:"height",defaultValue:i.height}),t.commands.add("tableHeight",new SC(t,i.height)),t.data.addStyleProcessorRules(Xh),function(t,e,n){var i=n.modelAttribute;t.extend("table",{allowAttributes:[i]}),iC(e,c({viewElement:"table"},n)),aC(e,n)}
2(e,n,{modelAttribute:"tableBackgroundColor",styleName:"background-color",defaultValue:i.backgroundColor}),t.commands.add("tableBackgroundColor",new CC(t,i.backgroundColor))}}],[{key:"pluginName",get:function(){return"TablePropertiesEditing"}},{key:"requires",get:function(){return[G_]}}]),n}(be);function BC(t,e,n){var i=n.modelAttribute;t.extend("table",{allowAttributes:[i]}),iC(e,c({viewElement:/^(table|figure)$/},n)),rC(e,c({modelElement:"table"},n))}var PC=r(9221);fr()(PC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),PC.Z.locals;var LC={left:Qc,center:Jc,right:Xc},NC=function(t){k(n,t);var e=b(n);function n(t,i){var o;I(this,n),(o=e.call(this,t)).set({borderStyle:"",borderWidth:"",borderColor:"",backgroundColor:"",width:"",height:"",alignment:""}),o.options=i;var r=o._createBorderFields(),a=r.borderStyleDropdown,s=r.borderWidthInput,l=r.borderColorInput,c=r.borderRowLabel,u=o._createBackgroundFields(),d=u.backgroundRowLabel,h=u.backgroundInput,f=o._createDimensionFields(),p=f.widthInput,m=f.operatorLabel,g=f.heightInput,v=f.dimensionsLabel,k=o._createAlignmentFields(),b=k.alignmentToolbar,y=k.alignmentLabel;o.focusTracker=new Pa,o.keystrokes=new La,o.children=o.createCollection(),o.borderStyleDropdown=a,o.borderWidthInput=s,o.borderColorInput=l,o.backgroundInput=h,o.widthInput=p,o.heightInput=g,o.alignmentToolbar=b;var _=o._createActionButtons(),w=_.saveButtonView,C=_.cancelButtonView;return o.saveButtonView=w,o.cancelButtonView=C,o._focusables=new fu,o._focusCycler=new Ku({focusables:o._focusables,focusTracker:o.focusTracker,keystrokeHandler:o.keystrokes,actions:{focusPrevious:"shift + tab",focusNext:"tab"}}),o.children.add(new Ld(t,{label:o.t("Table properties")})),o.children.add(new Nw(t,{labelView:c,children:[c,a,l,s],class:"ck-table-form__border-row"})),o.children.add(new Nw(t,{labelView:d,children:[d,h],class:"ck-table-form__background-row"})),o.children.add(new Nw(t,{children:[new Nw(t,{labelView:v,children:[v,p,m,g],class:"ck-table-form__dimensions-row"}),new Nw(t,{labelView:y,children:[y,b],class:"ck-table-properties-form__alignment-row"})]})),o.children.add(new Nw(t,{children:[o.saveButtonView,o.cancelButtonView],class:"ck-table-form__action-row"})),o.setTemplate({tag:"form",attributes:{class:["ck","ck-form","ck-table-form","ck-table-properties-form"],tabindex:"-1"},children:o.children}),o}return S(n,[{key:"render",value:function(){var t=this;d(D(n.prototype),"render",this).call(this),hu({view:this}),[this.borderStyleDropdown,this.borderColorInput,this.borderWidthInput,this.backgroundInput,this.widthInput,this.heightInput,this.alignmentToolbar,this.saveButtonView,this.cancelButtonView].forEach((function(e){t._focusables.add(e),t.focusTracker.add(e.element)})),this.keystrokes.listenTo(this.element)}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.focusTracker.destroy(),this.keystrokes.destroy()}},{key:"focus",value:function(){this._focusCycler.focusFirst()}},{key:"_createBorderFields",value:function(){var t=this,e=this.options.defaultTableProperties,n={style:e.borderStyle,width:e.borderWidth,color:e.borderColor},i=Bw({colorConfig:this.options.borderColors,columns:5,defaultColorValue:n.color}),o=this.locale,r=this.t,a=new Id(o);a.text=r("Border");var s=Aw(this.t),l=new Vd(o,Zd);l.set({label:r("Style"),class:"ck-table-form__border-style"}),l.fieldView.buttonView.set({isOn:!1,withText:!0,tooltip:r("Style")}),l.fieldView.buttonView.bind("label").to(this,"borderStyle",(function(t){return s[t||"none"]})),l.fieldView.on("execute",(function(e){t.borderStyle=e.source._borderStyleValue})),l.bind("isEmpty").to(this,"borderStyle",(function(t){return!t})),Dd(l.fieldView,Iw(this,n.style));var c=new Vd(o,Hd);c.set({label:r("Width"),class:"ck-table-form__border-width"}),c.fieldView.bind("value").to(this,"borderWidth"),c.bind("isEnabled").to(this,"borderStyle",OC),c.fieldView.on("input",(function(){t.borderWidth=c.fieldView.element.value}));var u=new Vd(o,i);return u.set({label:r("Color"),class:"ck-table-form__border-color"}),u.fieldView.bind("value").to(this,"borderColor"),u.bind("isEnabled").to(this,"borderStyle",OC),u.fieldView.on("input",(function(){t.borderColor=u.fieldView.value})),this.on("change:borderStyle",(function(e,i,o,r){OC(o)||(t.borderColor="",t.borderWidth=""),OC(r)||(t.borderColor=n.color,t.borderWidth=n.width)})),{borderRowLabel:a,borderStyleDropdown:l,borderColorInput:u,borderWidthInput:c}}}
2,{key:"_createBackgroundFields",value:function(){var t=this,e=this.locale,n=this.t,i=new Id(e);i.text=n("Background");var o=Bw({colorConfig:this.options.backgroundColors,columns:5,defaultColorValue:this.options.defaultTableProperties.backgroundColor}),r=new Vd(e,o);return r.set({label:n("Color"),class:"ck-table-properties-form__background"}),r.fieldView.bind("value").to(this,"backgroundColor"),r.fieldView.on("input",(function(){t.backgroundColor=r.fieldView.value})),{backgroundRowLabel:i,backgroundInput:r}}},{key:"_createDimensionFields",value:function(){var t=this,e=this.locale,n=this.t,i=new Id(e);i.text=n("Dimensions");var o=new Vd(e,Hd);o.set({label:n("Width"),class:"ck-table-form__dimensions-row__width"}),o.fieldView.bind("value").to(this,"width"),o.fieldView.on("input",(function(){t.width=o.fieldView.element.value}));var r=new mu(e);r.setTemplate({tag:"span",attributes:{class:["ck-table-form__dimension-operator"]},children:[{text:"×"}]});var a=new Vd(e,Hd);return a.set({label:n("Height"),class:"ck-table-form__dimensions-row__height"}),a.fieldView.bind("value").to(this,"height"),a.fieldView.on("input",(function(){t.height=a.fieldView.element.value})),{dimensionsLabel:i,widthInput:o,operatorLabel:r,heightInput:a}}},{key:"_createAlignmentFields",value:function(){var t=this.locale,e=this.t,n=new Id(t);n.text=e("Alignment");var i=new pd(t);return i.set({isCompact:!0,ariaLabel:e("Table alignment toolbar")}),zw({view:this,icons:LC,toolbar:i,labels:this._alignmentLabels,propertyName:"alignment",defaultValue:this.options.defaultTableProperties.alignment}),{alignmentLabel:n,alignmentToolbar:i}}},{key:"_createActionButtons",value:function(){var t=this.locale,e=this.t,n=new Hu(t),i=new Hu(t),o=[this.borderWidthInput,this.borderColorInput,this.backgroundInput,this.widthInput,this.heightInput];return n.set({label:e("Save"),icon:jc,class:"ck-button-save",type:"submit",withText:!0}),n.bind("isEnabled").toMany(o,"errorText",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.every((function(t){return!t}))})),i.set({label:e("Cancel"),icon:Fc,class:"ck-button-cancel",withText:!0}),i.delegate("execute").to(this,"cancel"),{saveButtonView:n,cancelButtonView:i}}},{key:"_alignmentLabels",get:function(){var t=this.locale,e=this.t,n=e("Align table to the left"),i=e("Center table"),o=e("Align table to the right");return"rtl"===t.uiLanguageDirection?{right:o,center:i,left:n}:{left:n,center:i,right:o}}}]),n}(mu);function OC(t){return"none"!==t}var FC={borderStyle:"tableBorderStyle",borderColor:"tableBorderColor",borderWidth:"tableBorderWidth",backgroundColor:"tableBackgroundColor",width:"tableWidth",height:"tableHeight",alignment:"tableAlignment"},RC=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("table.tableProperties",{borderColors:Mw,backgroundColors:Mw}),i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;this._defaultTableProperties=tC(e.config.get("table.tableProperties.defaultProperties"),{includeAlignmentProperty:!0}),this._balloon=e.plugins.get(nh),this.view=this._createPropertiesView(),this._undoStepBatch=null,e.ui.componentFactory.add("tableProperties",(function(i){var o=new Hu(i);o.set({label:n("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}),t.listenTo(o,"execute",(function(){return t._showView()}));var r=Object.values(FC).map((function(t){return e.commands.get(t)}));return o.bind("isEnabled").toMany(r,"isEnabled",(function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return e.some((function(t){return t}))})),o}))}},{key:"destroy",value:function(){d(D(n.prototype),"destroy",this).call(this),this.view.destroy()}},{key:"_createPropertiesView",value:function(){var t=this,e=this.editor,n=e.config.get("table.tableProperties"),i=Wu(n.borderColors),o=qu(e.locale,i),r=Wu(n.backgroundColors),a=qu(e.locale,r),s=new NC(e.locale,{borderColors:o,backgroundColors:a,defaultTableProperties:this._defaultTableProperties}),l=e.t;s.render(),this.listenTo(s,"submit",(function(){t._hideView()})),this.listenTo(s,"cancel",(function(){t._undoStepBatch.operations.length&&e.execute("undo",t._undoStepBatch),t._hideView()})),s.keystrokes.set("Esc",(function(e,n){t._hideView(),n()})),uu({emitter:s,activator:function(){return t._isViewInBalloon},contextElements:[this._balloon.view.element],callback:function(){return t._hideView()}});var c=xw(l),u=Dw(l);return s.on("change:borderStyle",this._getPropertyChangeCallback("tableBorderStyle",this._defaultTableProperties.borderStyle)),s.on("change:borderColor",this._getValidatedPropertyChangeCallback({viewField:s.borderColorInput,commandName:"tableBorderColor",errorText:c,validator:Ew,defaultValue:this._defaultTableProperties.borderColor})),s.on("change:borderWidth",this._getValidatedPropertyChangeCallback({viewField:s.borderWidthInput,commandName:"tableBorderWidth",errorText:u,validator:Tw,defaultValue:this._defaultTableProperties.borderWidth})),s.on("change:backgroundColor",this._getValidatedPropertyChangeCallback({viewField:s.backgroundInput,commandName:"tableBackgroun
2dColor",errorText:c,validator:Ew,defaultValue:this._defaultTableProperties.backgroundColor})),s.on("change:width",this._getValidatedPropertyChangeCallback({viewField:s.widthInput,commandName:"tableWidth",errorText:u,validator:Sw,defaultValue:this._defaultTableProperties.width})),s.on("change:height",this._getValidatedPropertyChangeCallback({viewField:s.heightInput,commandName:"tableHeight",errorText:u,validator:Sw,defaultValue:this._defaultTableProperties.height})),s.on("change:alignment",this._getPropertyChangeCallback("tableAlignment",this._defaultTableProperties.alignment)),s}},{key:"_fillViewFormFromCommandValues",value:function(){var t=this,e=this.editor.commands,n=e.get("tableBorderStyle");Object.entries(FC).map((function(n){var i=f(n,2),o=i[0],r=i[1],a=t._defaultTableProperties[o]||"";return[o,e.get(r).value||a]})).forEach((function(e){var i=f(e,2),o=i[0],r=i[1];("borderColor"!==o&&"borderWidth"!==o||"none"!==n.value)&&t.view.set(o,r)}))}},{key:"_showView",value:function(){var t=this,e=this.editor;this.listenTo(e.ui,"update",(function(){t._updateView()})),this._fillViewFormFromCommandValues(),this._balloon.add({view:this.view,position:Yw(e)}),this._undoStepBatch=e.model.createBatch(),this.view.focus()}},{key:"_hideView",value:function(){var t=this.editor;this.stopListening(t.ui,"update"),this.view.saveButtonView.focus(),this._balloon.remove(this.view),this.editor.editing.view.focus()}},{key:"_updateView",value:function(){var t=this.editor;Zw(t.editing.view.document.selection)?this._isViewVisible&&$w(t,"table"):this._hideView()}},{key:"_isViewVisible",get:function(){return this._balloon.visibleView===this.view}},{key:"_isViewInBalloon",get:function(){return this._balloon.hasView(this.view)}},{key:"_getPropertyChangeCallback",value:function(t,e){var n=this;return function(i,o,r,a){(a||e!==r)&&n.editor.execute(t,{value:r,batch:n._undoStepBatch})}}},{key:"_getValidatedPropertyChangeCallback",value:function(t){var e=this,n=t.commandName,i=t.viewField,o=t.validator,r=t.errorText,a=t.defaultValue,s=ga((function(){i.errorText=r}),500);return function(t,r,l,c){s.cancel(),(c||a!==l)&&(o(l)?(e.editor.execute(n,{value:l,batch:e._undoStepBatch}),i.errorText=null):s())}}}],[{key:"requires",get:function(){return[nh]}},{key:"pluginName",get:function(){return"TablePropertiesUI"}}]),n}(be),jC="todoListChecked",VC=function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._selectedElements=[],i.on("execute",(function(){i.refresh()}),{priority:"highest"}),i}return S(n,[{key:"refresh",value:function(){this._selectedElements=this._getSelectedItems(),this.value=this._selectedElements.every((function(t){return!!t.getAttribute("todoListChecked")})),this.isEnabled=!!this._selectedElements.length}},{key:"_getSelectedItems",value:function(){var t=this.editor.model,e=t.schema,n=t.document.selection.getFirstRange(),i=n.start.parent,o=[];e.checkAttribute(i,jC)&&o.push(i);var r,a=p(n.getItems());try{for(a.s();!(r=a.n()).done;){var s=r.value;e.checkAttribute(s,jC)&&!o.includes(s)&&o.push(s)}}catch(t){a.e(t)}finally{a.f()}return o}},{key:"execute",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};this.editor.model.change((function(n){var i,o=p(t._selectedElements);try{for(o.s();!(i=o.n()).done;){var r=i.value;(void 0===e.forceValue?!t.value:e.forceValue)?n.setAttribute(jC,!0,r):n.removeAttribute(jC,r)}}catch(t){o.e(t)}finally{o.f()}}))}}]),n}(_e);function HC(t,e,n){var i=e.modelCursor,o=i.parent,r=e.viewItem;if("checkbox"==r.getAttribute("type")&&"listItem"==o.name&&i.isAtStart&&n.consumable.consume(r,{name:!0})){var a=n.writer;a.setAttribute("listType","todo",o),e.viewItem.hasAttribute("checked")&&a.setAttribute("todoListChecked",!0,o),e.modelRange=a.createRange(i)}}function UC(t){return function(e,n){var i=n.modelPosition,o=i.parent;if(o.is("element","listItem")&&"todo"==o.getAttribute("listType")){var r=qC(n.mapper.toViewElement(o),t);r&&(n.viewPosition=n.mapper.findPositionIn(r,i.offset))}}}function ZC(t,e,n,i){return e.createUIElement("label",{class:"todo-list__label",contenteditable:!1},(function(e){var o=Aa(document,"input",{type:"checkbox"});n&&o.setAttribute("checked","checked"),o.addEventListener("change",(function(){return i(t)}));var r=this.toDomElement(e);return r.appendChild(o),r}))}function qC(t,e){var n,i=p(e.createRangeIn(t));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("containerElement","span")&&o.item.hasClass("todo-list__label__description"))return o.item}}catch(t){i.e(t)}finally{i.f()}}var WC=Io("Ctrl+Enter"),GC=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.editing,i=e.data,o=e.model;o.schema.extend("listItem",{allowAttributes:["todoListChecked"]}),o.schema.addAttributeCheck((function(t,e){var n=t.last;if("todoListChecked"==e&&"listItem"==n.name&&"todo"!=n.getAttribute("listType"))return!1})),e.commands.add("todoList",new kb(e,"todo"));var r,a,s=new VC(e);e.commands.add("checkTodoList",s),e.commands.add("todoListCheck",s),i.downcastDispatcher.on("insert:listItem",function(t){return function(e,n,i){var o=i.consumable;if(o.test(n.item,"insert")&&o.test(n.item,"attribute:listType")&&o.test(n.item,"attribute:listIndent")&&"todo"==n.item.getAttribute("listType")){var r=n.item;o.consume(r,"insert"),o.consume(r,"attribute:listType"),o.consume(r,"attribute:listIndent"),o.consume(r,"attribute:todoListChecked");var a=i.writer,s=wb(r,i);a.addClass("todo-list",s.parent);var l=a.createContainerElement("label",{class:"todo-list__label"}),c=a.createEmptyElement("input",{type:"checkbox",disabled:"disabled"}),u=a.createContainerElement("span",{class:"todo-list__label__description"});r.getAttribute("todoListChecked")&&a.setAttribute("checked","checked",c),a.insert(a.createPositionAt(s,0),l),a.insert(a.createPositionAt(l,0),c),a.insert(a.createPositionAfter(c),u),Cb(r,s,i,t)}}}(o),{priority:"high"}),i.upcastDispatcher.on("element:input",HC,{priority:"high"}),n.downcastDispatcher.on("insert:listItem",function(t,e){return function(n,i,o){var r=o.consumable;if(r.test(i.item,"insert")&&r.test(i.item,"attribute:listType")&&r.test(i.item,"attribute:listIndent")&&"todo"==i.item.getAttribute("listType")){var a=i.item;r.consume(a,"insert"),r.consume(a,"attribute:listType"),r.consume(a,"attribute:listIndent"),r.consume(a,"attribute:todoListChecked");var s=o.writer,l=wb(a,o),c=!!a.getAttribute("todoListChecked"),u=ZC(a,s,c,e),d=s.createContainerElement("span",{class:"todo-list__label__description"});s.addClass("todo-list",l.parent),s.insert(s.createPositionAt(l,0),u),s.insert(s.createPositionAfter(u),d),Cb
2(a,l,o,t)}}}(o,(function(e){return t._handleCheckmarkChange(e)})),{priority:"high"}),n.downcastDispatcher.on("attribute:listType:listItem",(r=function(e){return t._handleCheckmarkChange(e)},a=n.view,function(t,e,n){if(n.consumable.consume(e.item,t.name)){var i=n.mapper.toViewElement(e.item),o=n.writer,s=function(t,e){var n,i=p(e.createRangeIn(t));try{for(i.s();!(n=i.n()).done;){var o=n.value;if(o.item.is("uiElement","label"))return o.item}}catch(t){i.e(t)}finally{i.f()}}(i,a);if("todo"==e.attributeNewValue){var l=!!e.item.getAttribute("todoListChecked"),c=ZC(e.item,o,l,r),u=o.createContainerElement("span",{class:"todo-list__label__description"}),d=o.createRangeIn(i),h=Sb(i),f=xb(d.start),m=h?o.createPositionBefore(h):d.end,g=o.createRange(f,m);o.addClass("todo-list",i.parent),o.move(g,o.createPositionAt(u,0)),o.insert(o.createPositionAt(i,0),c),o.insert(o.createPositionAfter(c),u)}else if("todo"==e.attributeOldValue){var v=qC(i,a);o.removeClass("todo-list",i.parent),o.remove(s),o.move(o.createRangeIn(v),o.createPositionBefore(v)),o.remove(v)}}})),n.downcastDispatcher.on("attribute:todoListChecked:listItem",function(t){return function(e,n,i){if("todo"==n.item.getAttribute("listType")&&i.consumable.consume(n.item,"attribute:todoListChecked")){var o=i.mapper,r=i.writer,a=!!n.item.getAttribute("todoListChecked"),s=o.toViewElement(n.item).getChild(0),l=ZC(n.item,r,a,t);r.insert(r.createPositionAfter(s),l),r.remove(s)}}}((function(e){return t._handleCheckmarkChange(e)}))),n.mapper.on("modelToViewPosition",UC(n.view)),i.mapper.on("modelToViewPosition",UC(n.view)),this.listenTo(n.view.document,"arrowKey",function(t,e){return function(n,i){if("left"==Mo(i.keyCode,e.contentLanguageDirection)){var o=t.schema,r=t.document.selection;if(r.isCollapsed){var a=r.getFirstPosition(),s=a.parent;if("listItem"===s.name&&"todo"==s.getAttribute("listType")&&a.isAtStart){var l=o.getNearestSelectionRange(t.createPositionBefore(s),"backward");l&&t.change((function(t){return t.setSelection(l)})),i.preventDefault(),i.stopPropagation(),n.stop()}}}}}(o,e.locale),{context:"li"}),this.listenTo(n.view.document,"keydown",(function(t,n){To(n)===WC&&(e.execute("checkTodoList"),t.stop())}),{priority:"high"});var l=new Set;this.listenTo(o,"applyOperation",(function(t,e){var n=e[0];if("rename"==n.type&&"listItem"==n.oldName){var i=n.position.nodeAfter;i.hasAttribute("todoListChecked")&&l.add(i)}else if("changeAttribute"==n.type&&"listType"==n.key&&"todo"===n.oldValue){var o,r=p(n.range.getItems());try{for(r.s();!(o=r.n()).done;){var a=o.value;a.hasAttribute("todoListChecked")&&"todo"!==a.getAttribute("listType")&&l.add(a)}}catch(t){r.e(t)}finally{r.f()}}})),o.document.registerPostFixer((function(t){var e,n=!1,i=p(l);try{for(i.s();!(e=i.n()).done;){var o=e.value;t.removeAttribute("todoListChecked",o),n=!0}}catch(t){i.e(t)}finally{i.f()}return l.clear(),n}))}},{key:"_handleCheckmarkChange",value:function(t){var e=this.editor,n=e.model,i=Array.from(n.document.selection.getRanges());n.change((function(n){n.setSelection(t,"end"),e.execute("checkTodoList"),n.setSelection(i)}))}}],[{key:"pluginName",get:function(){return"TodoListEditing"}},{key:"requires",get:function(){return[Gb]}}]),n}(be),$C=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor.t;Eb(this.editor,"todoList",t("To-do List"),'<svg viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path d="m2.315 14.705 2.224-2.24a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .949L2.865 16.07a.682.682 0 0 1-.112.089.647.647 0 0 1-.852-.051L.688 14.886a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.717.722zm5.185.045a.75.75 0 0 1 .75-.75h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75zM2.329 5.745l2.21-2.226a.689.689 0 0 1 .963 0 .664.664 0 0 1 0 .95L2.865 7.125a.685.685 0 0 1-.496.196.644.644 0 0 1-.468-.187L.688 5.912a.635.635 0 0 1 0-.903.647.647 0 0 1 .91 0l.73.736zM7.5 5.75A.75.75 0 0 1 8.25 5h9.5a.75.75 0 1 1 0 1.5h-9.5a.75.75 0 0 1-.75-.75z"/></svg>')}}],[{key:"pluginName",get:function(){return"TodoListUI"}}]),n}(be),YC=r(1588);fr()(YC.Z,{injectType:"singletonStyleTag",attributes:{"data-cke":!0},insert:"head",singleton:!0}),YC.Z.locals;var KC="underline",QC=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor;t.model.schema.extend("$text",{allowAttributes:KC}),t.model.schema.setAttributeProperties(KC,{isFormatting:!0,copyOnEnter:!0}),t.conversion.attributeToElement({model:KC,view:"u",upcastAlso:{styles:{"text-decoration":"underline"}}}),t.commands.add(KC,new fg(t,KC)),t.keystrokes.set("CTRL+U","underline")}}],[{key:"pluginName",get:function(){return"UnderlineEditing"}}]),n}(be),JC="underline",XC=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.t;e.ui.componentFactory.add(JC,(function(i){var o=e.commands.get(JC),r=new Hu(i);return r.set({label:n("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}),r.bind("isOn","isEnabled").to(o,"value","isEnabled"),t.listenTo(r,"execute",(function(){e.execute(JC),e.editing.view.focus()})),r}))}}],[{key:"pluginName",get:function(){return"UnderlineUI"}}]),n}(be);function tA(t){if(t.is("$text")||t.is("$textProxy"))return t.data;var e,n="",i=null,o=p(t.getChildren());try{for(o.s();!(e=o.n()).done;){var r=e.value,a=tA(r);i&&i.is("element")&&(n+="\n"),n+=a,i=r}}catch(t){o.e(t)}finally{o.f()}return n}var eA=function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n)}(vf);eA.builtinPlugins=[function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Af,Df]}},{key:"pluginName",get:function(){return"Alignment"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"afterInit",value:function(){this._addListAutoformats(),this._addBasicStylesAutoformats(),this._addHeadingAutoformats(),this._addBlockQuoteAutoformats(),this._addCodeBlockAutoformats(),this._addHorizontalLineAutoformats()}},{key:"_addListAutoformats",value:function(){var t=this,e=this.editor.commands;e.get("bulletedList")&&sp(this.editor,this,/^[*-]\s$/,"bulletedList"),e.get("numberedList")&&sp(this.editor,this,/^1[.|)]\s$/,"numberedList"),e.get("todoList")&&sp(this.editor,this,/^\[\s?\]\s$/,"todoList"),e.get("checkTodoList")&&sp(this.editor,this,/^\[\s?x\s?\]\s$/,(function(){t.editor.execute("todoList"),t.editor.execute("checkTodoList")}))}},{key:"_addBasicStylesAutoformats",value:function(){var t=this.editor.commands;if(t.get("bold")){var e=up(this.editor,"bold");lp(this.editor,this,/(?:^|\s)(\*\*)([^*]+)(\*\*)$/g,e),lp(this.editor,this,/(?:^|\s)(__)([^_]+)(__)$/g,e)}if(t.get("italic")){var n=up(this.editor,"italic");lp(this.editor,this,/(?:^|\s)(\*)([^*_]+)(\*)$/g,n),lp(this.editor,this,/(?:^|\s)(_)([^_]+)(_)$/g,n)}if(t.get("code")){var i=up(this.editor,"code");lp(this.editor,this,/(`)([^`]+)(`)$/g,i)}if(t.get("strikethrough")){var o=up(this.editor,"strikethrough");lp(this.editor,this,/(~~)([^~]+)(~~)$/g,o)}}},{key:"_addHeadingAutoformats",value:function(){var t=this,e=this.editor.commands.get("heading");e&&e.modelElements.filter((function(t){return t.match(/^heading[1-6]$/)}
2)).forEach((function(n){var i=n[7],o=new RegExp("^(#{".concat(i,"})\\s$"));sp(t.editor,t,o,(function(){if(!e.isEnabled||e.value===n)return!1;t.editor.execute("heading",{value:n})}))}))}},{key:"_addBlockQuoteAutoformats",value:function(){this.editor.commands.get("blockQuote")&&sp(this.editor,this,/^>\s$/,"blockQuote")}},{key:"_addCodeBlockAutoformats",value:function(){var t=this,e=this.editor,n=e.model.document.selection;e.commands.get("codeBlock")&&sp(e,this,/^```$/,(function(){if(n.getFirstPosition().parent.is("element","listItem"))return!1;t.editor.execute("codeBlock",{usePreviousLanguageChoice:!0})}))}},{key:"_addHorizontalLineAutoformats",value:function(){this.editor.commands.get("horizontalLine")&&sp(this.editor,this,/^---$/,"horizontalLine")}}],[{key:"requires",get:function(){return[Vf]}},{key:"pluginName",get:function(){return"Autoformat"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t))._timeoutId=null,i._positionToInsert=null,i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor,n=e.model.document;this.listenTo(e.plugins.get("ClipboardPipeline"),"inputTransformation",(function(){var e=n.selection.getFirstRange(),i=uc.fromPosition(e.start);i.stickiness="toPrevious";var o=uc.fromPosition(e.end);o.stickiness="toNext",n.once("change:data",(function(){t._embedImageBetweenPositions(i,o),i.detach(),o.detach()}),{priority:"high"})})),e.commands.get("undo").on("execute",(function(){t._timeoutId&&(br.window.clearTimeout(t._timeoutId),t._positionToInsert.detach(),t._timeoutId=null,t._positionToInsert=null)}),{priority:"high"})}},{key:"_embedImageBetweenPositions",value:function(t,e){var n,i=this,o=this.editor,r=new vs(t,e),a=r.getWalker({ignoreElementEnd:!0}),s=Object.fromEntries(o.model.document.selection.getAttributes()),l=this.editor.plugins.get("ImageUtils"),u="",d=p(a);try{for(d.s();!(n=d.n()).done;){var h=n.value;h.item.is("$textProxy")&&(u+=h.item.data)}}catch(t){d.e(t)}finally{d.f()}(u=u.trim()).match(Sm)?(this._positionToInsert=uc.fromPosition(t),this._timeoutId=br.window.setTimeout((function(){o.commands.get("insertImage").isEnabled?(o.model.change((function(t){var e;i._timeoutId=null,t.remove(r),r.detach(),"$graveyard"!==i._positionToInsert.root.rootName&&(e=i._positionToInsert.toPosition()),l.insertImage(c(c({},s),{},{src:u}),e),i._positionToInsert.detach(),i._positionToInsert=null})),o.plugins.get("Delete").requestUndoOnBackspace()):r.detach()}),100)):r.detach()}}],[{key:"requires",get:function(){return[im,Dm,fm,Vf]}},{key:"pluginName",get:function(){return"AutoImage"}}]),n}(be),tg,function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[ug,hg]}},{key:"pluginName",get:function(){return"BlockQuote"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[mg,vg]}},{key:"pluginName",get:function(){return"Bold"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[im,yp,Cg,rg,Hf,fm]}},{key:"pluginName",get:function(){return"Essentials"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Pg,Ng]}},{key:"pluginName",get:function(){return"FontBackgroundColor"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Fg,Rg]}},{key:"pluginName",get:function(){return"FontColor"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"normalizeSizeOptions",value:function(t){return Vg(t)}}],[{key:"requires",get:function(){return[qg,Gg]}},{key:"pluginName",get:function(){return"FontSize"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[ev,iv]}},{key:"pluginName",get:function(){return"Heading"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[rv,sv]}},{key:"pluginName",get:function(){return"Highlight"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[dv,hv,Gp]}},{key:"pluginName",get:function(){return"HorizontalLine"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Tv,zv]}},{key:"pluginName",get:function(){return"Image"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Pv,Lv]}},{key:"pluginName",get:function(){return"ImageCaption"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"ImageInsert"}},{key:"requires",get:function(){return[rk,dk]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[fk,bk,mk]}},{key:"pluginName",get:function(){return"ImageResize"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Pk,Nk]}},{key:"pluginName",get:function(){return"ImageStyle"}}
2]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"afterInit",value:function(){var t,e=this.editor,n=e.t,i=e.plugins.get(pm),o=e.plugins.get("ImageUtils");i.register("image",{ariaLabel:n("Image toolbar"),items:(t=e.config.get("image.toolbar")||[],t.map((function(t){return Z(t)?t.name:t}))),getRelatedElement:function(t){return o.getClosestSelectedImageWidget(t)}})}}],[{key:"requires",get:function(){return[pm,Dm]}},{key:"pluginName",get:function(){return"ImageToolbar"}}]),n}(be),rk,function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"Indent"}},{key:"requires",get:function(){return[jk,Uk]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[qk,Gk]}},{key:"pluginName",get:function(){return"Italic"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[eb,db,tg]}},{key:"pluginName",get:function(){return"Link"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[fb,gb]}},{key:"pluginName",get:function(){return"LinkImage"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Gb,Qb]}},{key:"pluginName",get:function(){return"List"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[ny,fy]}},{key:"pluginName",get:function(){return"ListProperties"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Ay,Ty,Dy,Gp]}},{key:"pluginName",get:function(){return"MediaEmbed"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"afterInit",value:function(){var t=this.editor,e=t.t;t.plugins.get(pm).register("mediaEmbed",{ariaLabel:e("Media toolbar"),items:t.config.get("mediaEmbed.toolbar")||[],getRelatedElement:gy})}}],[{key:"requires",get:function(){return[pm]}},{key:"pluginName",get:function(){return"MediaEmbedToolbar"}}]),n}(be),Qg,function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor,e=t.editing.view.document,n=[];n.push(new Ry(e)),n.push(new Ly(e)),t.plugins.get("ClipboardPipeline").on("inputTransformation",(function(t,i){if(!i._isTransformedWithPasteFromOffice){var o=i.dataTransfer.getData("text/html"),r=n.find((function(t){return t.isActive(o)}));r&&(i._parsedData=function(t,e){var n=new DOMParser,i=function(t){return jy(jy(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>(&nbsp;|\u00A0)<\/o:p>/g,"").replace(/>([^\S\r\n]*[\r\n]\s*)</g,"><")}(function(t){var e="</body>",n=t.indexOf(e);if(n<0)return t;var i=t.indexOf("</html>",n+7);return t.substring(0,n+7)+(i>=0?t.substring(i):"")}(t=t.replace(/<!--\[if gte vml 1]>/g,""))),o=n.parseFromString(i,"text/html");!function(t){t.querySelectorAll("span[style*=spacerun]").forEach((function(t){var e=t.innerText.length||0;t.innerHTML=Array(e+1).join("  ").substr(0,e)}))}(o);var r=o.body.innerHTML,a=function(t,e){for(var n=new mo(e),i=new Sr(n,{renderingMode:"data"}),o=t.createDocumentFragment(),r=t.body.childNodes;r.length>0;)o.appendChild(r[0]);return i.domToView(o,{skipComments:!0})}(o,e),s=function(t){for(var e=[],n=[],i=0,o=Array.from(t.getElementsByTagName("style"));i<o.length;i++){var r=o[i];r.sheet&&r.sheet.cssRules&&r.sheet.cssRules.length&&(e.push(r.sheet),n.push(r.innerHTML))}return{styles:e,stylesString:n.join(" ")}}(o);return{body:a,bodyString:r,styles:s.styles,stylesString:s.stylesString}}(o,e.stylesProcessor),r.execute(i),i._isTransformedWithPasteFromOffice=!0)}}),{priority:"high"})}}],[{key:"pluginName",get:function(){return"PasteFromOffice"}},{key:"requires",get:function(){return[mp]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Zy,Hy]}},{key:"pluginName",get:function(){return"RemoveFormat"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"init",value:function(){var t=this.editor.config.get("simpleUpload");
2t&&(t.uploadUrl?this.editor.plugins.get(Fv).createUploadAdapter=function(e){return new Hv(e,t)}:E("simple-upload-adapter-missing-uploadurl"))}}],[{key:"requires",get:function(){return[Fv]}},{key:"pluginName",get:function(){return"SimpleUploadAdapter"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[Wy,$y]}},{key:"pluginName",get:function(){return"Strikethrough"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[G_,J_,ew,cw,sw,nw,Gp]}},{key:"pluginName",get:function(){return"Table"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"TableCaption"}},{key:"requires",get:function(){return[vw,kw]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"TableCellProperties"}},{key:"requires",get:function(){return[yC,nC]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"pluginName",get:function(){return"TableProperties"}},{key:"requires",get:function(){return[MC,RC]}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,[{key:"afterInit",value:function(){var t=this.editor,e=t.t,n=t.plugins.get(pm),i=t.config.get("table.contentToolbar"),o=t.config.get("table.tableToolbar");i&&n.register("tableContent",{ariaLabel:e("Table toolbar"),items:i,getRelatedElement:Zw}),o&&n.register("table",{ariaLabel:e("Table toolbar"),items:o,getRelatedElement:Uw})}}],[{key:"requires",get:function(){return[pm]}},{key:"pluginName",get:function(){return"TableToolbar"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),i=e.call(this,t),t.config.define("typing",{transformations:{include:tp}}),i}return S(n,[{key:"init",value:function(){var t=this,e=this.editor.model.document.selection;e.on("change:range",(function(){t.isEnabled=!e.anchor.parent.is("element","codeBlock")})),this._enableTransformationWatchers()}},{key:"_enableTransformationWatchers",value:function(){var t=this.editor,e=t.model,n=t.plugins.get("Delete"),i=function(t){var e=t.extra||[],n=t.remove||[],i=function(t){return!n.includes(t)};return function(t){var e,n=new Set,i=p(t);try{for(i.s();!(e=i.n()).done;){var o=e.value;if(Xf[o]){var r,a=p(Xf[o]);try{for(a.s();!(r=a.n()).done;){var s=r.value;n.add(s)}}catch(t){a.e(t)}finally{a.f()}}else n.add(o)}}catch(t){i.e(t)}finally{i.f()}return Array.from(n)}(t.include.concat(e).filter(i)).filter(i).map((function(t){return Jf[t]||t})).filter((function(t){return"object"==z(t)})).map((function(t){return{from:ep(t.from),to:np(t.to)}}))}(t.config.get("typing.transformations")),o=new Zf(t.model,(function(t){var e,n=p(i);try{for(n.s();!(e=n.n()).done;){var o=e.value;if(o.from.test(t))return{normalizedTransformation:o}}}catch(t){n.e(t)}finally{n.f()}}));o.on("matched:data",(function(t,i){if(i.batch.isTyping){var o=i.normalizedTransformation,r=o.from,a=o.to,s=r.exec(i.text),l=a(s.slice(1)),c=i.range,u=s.index;e.enqueueChange((function(t){for(var i=1;i<s.length;i++){var o=s[i],r=l[i-1];if(null!=r){var a=c.start.getShiftedBy(u),d=e.createRange(a,a.getShiftedBy(o.length)),h=ip(a);e.insertContent(t.createText(r,h),d),u+=r.length}else u+=o.length}e.enqueueChange((function(){n.requestUndoOnBackspace()}))}))}})),o.bind("isEnabled").to(this)}}],[{key:"requires",get:function(){return["Delete","Input"]}},{key:"pluginName",get:function(){return"TextTransformation"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[GC,$C]}},{key:"pluginName",get:function(){return"TodoList"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(){return I(this,n),e.apply(this,arguments)}return S(n,null,[{key:"requires",get:function(){return[QC,XC]}},{key:"pluginName",get:function(){return"Underline"}}]),n}(be),function(t){k(n,t);var e=b(n);function n(t){var i;return I(this,n),(i=e.call(this,t)).set("characters",0),i.set("words",0),Object.defineProperties(_(i),{characters:{get:function(){return this.characters=this._getCharacters()}},words:{get:function(){return this.words=this._getWords()}}}),i.set("_wordsLabel"),i.set("_charactersLabel"),i._config=t.config.get("wordCount")||{},i._outputView=void 0,i._wordsMatchRegExp=Co.features.isRegExpUnicodePropertySupported?new RegExp("([\\p{L}\\p{N}
2]+\\S?)+","gu"):/([0-9A-Za-z\xC0-\u017E]+(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])?)+/g,i}return S(n,[{key:"init",value:function(){var t=this;this.editor.model.document.on("change:data",Yp(this._refreshStats.bind(this),250)),"function"==typeof this._config.onUpdate&&this.on("update",(function(e,n){t._config.onUpdate(n)})),$n(this._config.container)&&this._config.container.appendChild(this.wordCountContainer)}},{key:"destroy",value:function(){this._outputView&&(this._outputView.element.remove(),this._outputView.destroy()),d(D(n.prototype),"destroy",this).call(this)}},{key:"wordCountContainer",get:function(){var t=this.editor,e=t.t,n=t.config.get("wordCount.displayWords"),i=t.config.get("wordCount.displayCharacters"),o=gu.bind(this,this),r=[];return this._outputView||(this._outputView=new mu,(n||void 0===n)&&(this.bind("_wordsLabel").to(this,"words",(function(t){return e("Words: %0",t)})),r.push({tag:"div",children:[{text:[o.to("_wordsLabel")]}],attributes:{class:"ck-word-count__words"}})),(i||void 0===i)&&(this.bind("_charactersLabel").to(this,"characters",(function(t){return e("Characters: %0",t)})),r.push({tag:"div",children:[{text:[o.to("_charactersLabel")]}],attributes:{class:"ck-word-count__characters"}})),this._outputView.setTemplate({tag:"div",attributes:{class:["ck","ck-word-count"]},children:r}),this._outputView.render()),this._outputView.element}},{key:"_getCharacters",value:function(){return tA(this.editor.model.document.getRoot()).replace(/\n/g,"").length}},{key:"_getWords",value:function(){return(tA(this.editor.model.document.getRoot()).match(this._wordsMatchRegExp)||[]).length}},{key:"_refreshStats",value:function(){var t=this.words=this._getWords(),e=this.characters=this._getCharacters();this.fire("update",{words:t,characters:e})}}],[{key:"pluginName",get:function(){return"WordCount"}}]),n}(be)],eA.defaultConfig={toolbar:{items:["heading","|","bold","italic","underline","strikethrough","removeFormat","|","fontSize","fontColor","fontBackgroun
2dColor","highlight","|","imageInsert","link","imageUpload","|","bulletedList","numberedList","todoList","|","alignment","outdent","indent","horizontalLine","|","blockQuote","insertTable","mediaEmbed","|","undo","redo"]},language:"it",image:{toolbar:["imageTextAlternative","imageStyle:inline","imageStyle:block","imageStyle:side","linkImage"]},table:{contentToolbar:["tableColumn","tableRow","mergeTableCells","tableCellProperties","tableProperties"]},link:{addTargetToExternalLinks:!0},simpleUpload:{uploadUrl:"/admin/ckeditor/file/store",options:{resourceType:"Images"},withCredentials:!1,headers:{"X-CSRF-TOKEN":document.head.querySelector("[name=csrf-token]").content}},mediaEmbed:{previewsInData:!0,extraProviders:[{name:"allow-all",url:/(http|https)\:\/\/[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(\/\S*)?/,html:function(t){return'<div class="embed-responsive embed-responsive-16by9">\n\t\t\t\t<iframe src="'.concat(t[0],'" frameborder="0" class="embed-responsive-item" title="').concat("Frame"+Math.floor(999999*Math.random()),'">\n\t\t\t\t</iframe>\n\t\t\t  </div>')}}]}};var nA=eA}(),a.default}()}))},12683:t=>{t.exports="/images/vendor/leaflet-fullscreen/dist/fullscreen.png?f2c17d21245758a145e8a513ed4a65b0"},83501:t=>{t.exports="/images/vendor/leaflet-fullscreen/dist/[email protected]?29e76bbe73634d791d3c2108f0b66dd0"},8932:t=>{t.exports="/images/vendor/leaflet/dist/layers-2x.png?8f2c4d11474275fbc1614b9098334eae"},51658:t=>{t.exports="/images/vendor/leaflet/dist/layers.png?416d91365b44e4b4f4777663e6f009f3"},87676:t=>{t.exports="/images/vendor/leaflet/dist/marker-icon.png?2b3e1faf89f94a4835397e7a43b4f77d"},8297:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,"/* global styling */\n.leaflet-control-geosearch *,\n.leaflet-control-geosearch *:before,\n.leaflet-control-geosearch *:after {\n  box-sizing: border-box;\n}\n\n/* leaflet button styling */\n.leaflet-control-geosearch .leaflet-bar-part {\n  border-radius: 4px;\n  border-bottom: none;\n}\n\n.leaflet-control-geosearch a.leaflet-bar-part:before,\n.leaflet-control-geosearch a.leaflet-bar-part:after {\n  position: absolute;\n  display: block;\n  content: '';\n}\n\n/* magnifying glass */\n.leaflet-control-geosearch a.leaflet-bar-part:before {\n  top: 15px;\n  left: 13px;\n  width: 6px;\n  border-top: 2px solid #555;\n  transform: rotateZ(45deg);\n}\n\n.leaflet-control-geosearch a.leaflet-bar-part:after {\n  top: 8px;\n  left: 8px;\n  height: 8px;\n  width: 8px;\n  border-radius: 50%;\n  border: 2px solid #555;\n}\n\n/* resets for pending and error icons */\n.leaflet-control-geosearch.error a.leaflet-bar-part:before,\n.leaflet-control-geosearch.pending a.leaflet-bar-part:before {\n  display: none;\n}\n\n.leaflet-control-geosearch.pending a.leaflet-bar-part:after,\n.leaflet-control-geosearch.error a.leaflet-bar-part:after {\n  left: 50%;\n  top: 50%;\n  width: 18px;\n  height: 18px;\n  margin: -9px 0 0 -9px;\n  border-radius: 50%;\n}\n\n/* pending icon */\n.leaflet-control-geosearch.pending a.leaflet-bar-part:after {\n  
2content: '';\n  border: 2px solid #555;\n  border-top: 2px solid #f3f3f3;\n  animation: spin 1s linear infinite;\n}\n\n/* error icon */\n.leaflet-control-geosearch.error a.leaflet-bar-part:after {\n  content: '!';\n  line-height: initial;\n  font-weight: 600;\n  font-size: 18px;\n  border: none;\n}\n\n/* search form styling */\n.leaflet-control-geosearch form {\n  display: none;\n  position: absolute;\n  top: 0;\n  left: 36px;\n  border-radius: 0 4px 4px 0;\n  background-color: #fff;\n  background-clip: padding-box;\n  z-index: -1;\n  height: auto;\n  margin: 0;\n  padding: 0 8px;\n  box-shadow: 0 1px 5px rgba(0, 0, 0, 0.65);\n}\n\n.leaflet-geosearch-button form.open {\n  border-radius: 0 4px 4px 4px;\n}\n.leaflet-control-geosearch.active form {\n  display: block;\n}\n\n.leaflet-geosearch-button.active .leaflet-bar-part {\n  border-radius: 4px 0 0 4px;\n  width: 36px;\n}\n\n.leaflet-geosearch-button form {\n  max-width: 350px;\n}\n\n.leaflet-control-geosearch form input {\n  min-width: 200px;\n  width: 100%;\n  outline: none;\n  border: none;\n  margin: 0;\n  padding: 0;\n  font-size: 12px;\n  height: 30px;\n  border: none;\n  border-radius: 0 4px 4px 0;\n  text-indent: 8px;\n}\n\n.leaflet-touch .leaflet-geosearch-bar form {\n  border: 2px solid rgba(0,0,0,0.2);\n  box-shadow: none;\n}\n\n.leaflet-touch .leaflet-geosearch-bar form input {\n  height: 30px;\n}\n\n.leaflet-control-geosearch .results {\n  background: #fff;\n}\n\n.leaflet-control-geosearch .results > * {\n  line-height: 24px;\n  padding: 0 8px;\n  border: 1px solid transparent;\n\n  white-space: nowrap;\n  overflow: hidden;\n  text-overflow: ellipsis;\n}\n\n.leaflet-control-geosearch .results.active {\n  padding: 8px 0;\n  border-top: 1px solid #c6c6c6;\n}\n\n.leaflet-control-geosearch .results > .active,\n.leaflet-control-geosearch .results > :hover {\n  background-color: #f8f8f8;\n  border-color: #c6c6c6;\n  cursor: pointer;\n}\n\n/* add missing border to form */\n.leaflet-control-geosearch .results.active:after {\n  
2content: '';\n  display: block;\n  width: 0;\n  position: absolute;\n  left: -2px;\n  bottom: -2px;\n  top: 30px;\n}\n\n.leaflet-touch .leaflet-control-geosearch .results.active:after {\n  border-left: 2px solid rgba(0, 0, 0, .2);\n}\n\n/* animations */\n@keyframes spin {\n  0% { transform: rotate(0deg); }\n  100% { transform: rotate(360deg); }\n}\n\n.leaflet-top .leaflet-geosearch-bar,\n.leaflet-bottom .leaflet-geosearch-bar {\n  display: none;\n}\n\n.leaflet-geosearch-bar {\n  position: relative;\n  display: block;\n  height: auto;\n  width: 400px;\n  max-width: calc(100% - 120px);\n  margin: 10px auto 0;\n  cursor: auto;\n  z-index: 1000;\n}\n\n.leaflet-geosearch-bar form {\n  position: relative;\n  top: 0;\n  left: 0;\n  display: block;\n  border-radius: 4px;\n}\n\n.leaflet-geosearch-bar form input {\n  min-width: 100%;\n  width: 100%;\n}\n\n.leaflet-geosearch-bar .results.active:after {\n  opacity: .2;\n}\n\n.leaflet-right .leaflet-control-geosearch form {\n  right: 28px;\n  left: initial;\n  border-radius: 4px 0 0 4px;\n  border-left: inherit;\n  border-right: none;\n}\n\n.leaflet-bar-notfound {\n  font-style: italic;\n}\n\n.leaflet-control-geosearch button.reset {\n  color: black;\n  font-weight: bold;\n  position: absolute;\n  line-height: 26px;\n  padding: 0 8px;\n  right: 0;\n  top: 0;\n  cursor: pointer;\n  border: none;\n  text-decoration: none;\n  background-color: #fff;\n  border-radius: 0 4px 4px 0;\n}\n\n.leaflet-touch .leaflet-control-geosearch button.reset {\n  line-height: 30px;\n}\n\n.leaflet-control-geosearch button.reset:hover {\n  background: #f5f5f5;\n}\n",""]);const r=o},7215:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(1519),o=n.n(i),r=n(63965),a=n.n(r),s=n(51658),l=n.n(s),c=n(8932),u=n.n(c),d=n(87676),h=n.n(d),f=o()((function(t){return t[1]})),p=a()(l()),m=a()(u()),g=a()(h());f.push([t.id,"/* required styles */\r\n\r\n.leaflet-pane,\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-tile-container,\r\n.leaflet-pane > svg,\r\n.leaflet-pane > canvas,\r\n.leaflet-zoom-box,\r\n.leaflet-image-layer,\r\n.leaflet-layer {\r\n\tposition: absolute;\r\n\tleft: 0;\r\n\ttop: 0;\r\n\t}\r\n.leaflet-container {\r\n\toverflow: hidden;\r\n\t}\r\n.leaflet-tile,\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\t-webkit-user-select: none;\r\n\t   -moz-user-select: none;\r\n\t        user-select: none;\r\n\t  -webkit-user-drag: none;\r\n\t}\r\n/* Prevents IE11 from highlighting tiles in blue */\r\n.leaflet-tile::selection {\r\n\tbackground: transparent;\r\n}\r\n/* Safari renders non-retina tile on retina better with this, but Chrome is worse */\r\n.leaflet-safari .leaflet-tile {\r\n\timage-rendering: -webkit-optimize-contrast;\r\n\t}\r\n/* hack that prevents hw layers \"stretching\" when loading new tiles */\r\n.leaflet-safari .leaflet-tile-container {\r\n\twidth: 1600px;\r\n\theight: 1600px;\r\n\t-webkit-transform-origin: 0 0;\r\n\t}\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow {\r\n\tdisplay: block;\r\n\t}\r\n/* .leaflet-container svg: reset svg max-width decleration shipped in Joomla! (joomla.org) 3.x */\r\n/* .leaflet-container img: map is broken in FF if you have max-width: 100% on tiles */\r\n.leaflet-container .leaflet-overlay-pane svg {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\t}\r\n.leaflet-container .leaflet-marker-pane img,\r\n.leaflet-container .leaflet-shadow-pane img,\r\n.leaflet-container .leaflet-tile-pane img,\r\n.leaflet-container img.leaflet-image-layer,\r\n.leaflet-container .leaflet-tile {\r\n\tmax-width: none !important;\r\n\tmax-height: none !important;\r\n\twidth: auto;\r\n\tpadding: 0;\r\n\t}\r\n\r\n.leaflet-container.leaflet-touch-zoom {\r\n\t-ms-touch-action: pan-x pan-y;\r\n\ttouch-action: pan-x pan-y;\r\n\t}\r\n.leaflet-container.leaflet-touch-drag {\r\n\t-ms-touch-action: pinch-zoom;\r\n\t/* Fallback for FF which doesn't support pinch-zoom */\r\n\ttouch-action: none;\r\n\ttouch-action: pinch-zoom;\r\n}\r\n.leaflet-container.leaflet-touch-drag.leaflet-touch-zoom {\r\n\t-ms-touch-action: none;\r\n\ttouch-action: none;\r\n}\r\n.leaflet-container {\r\n\t-webkit-tap-highlight-color: transparent;\r\n}\r\n.leaflet-container a {\r\n\t-webkit-tap-highlight-color: rgba(51, 181, 229, 0.4);\r\n}\r\n.leaflet-tile {\r\n\tfilter: inherit;\r\n\tvisibility: hidden;\r\n\t}\r\n.leaflet-tile-loaded {\r\n\tvisibility: inherit;\r\n\t}\r\n.leaflet-zoom-box {\r\n\twidth: 0;\r\n\theight: 0;\r\n\t-moz-box-sizing: border-box;\r\n\t     box-sizing: border-box;\r\n\tz-index: 800;\r\n\t}\r\n/* workaround for https://bugzilla.mozilla.org/show_bug.cgi?id=888319 */\r\n.leaflet-overlay-pane svg {\r\n\t-moz-user-select: none;\r\n\t}\r\n\r\n.leaflet-pane         { z-index: 400; }\r\n\r\n.leaflet-tile-pane    { z-index: 200; }\r\n.leaflet-overlay-pane { z-index: 400; }
2\r\n.leaflet-shadow-pane  { z-index: 500; }\r\n.leaflet-marker-pane  { z-index: 600; }\r\n.leaflet-tooltip-pane   { z-index: 650; }\r\n.leaflet-popup-pane   { z-index: 700; }\r\n\r\n.leaflet-map-pane canvas { z-index: 100; }\r\n.leaflet-map-pane svg    { z-index: 200; }\r\n\r\n.leaflet-vml-shape {\r\n\twidth: 1px;\r\n\theight: 1px;\r\n\t}\r\n.lvml {\r\n\tbehavior: url(#default#VML);\r\n\tdisplay: inline-block;\r\n\tposition: absolute;\r\n\t}\r\n\r\n\r\n/* control positioning */\r\n\r\n.leaflet-control {\r\n\tposition: relative;\r\n\tz-index: 800;\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-top,\r\n.leaflet-bottom {\r\n\tposition: absolute;\r\n\tz-index: 1000;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-top {\r\n\ttop: 0;\r\n\t}\r\n.leaflet-right {\r\n\tright: 0;\r\n\t}\r\n.leaflet-bottom {\r\n\tbottom: 0;\r\n\t}\r\n.leaflet-left {\r\n\tleft: 0;\r\n\t}\r\n.leaflet-control {\r\n\tfloat: left;\r\n\tclear: both;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tfloat: right;\r\n\t}\r\n.leaflet-top .leaflet-control {\r\n\tmargin-top: 10px;\r\n\t}\r\n.leaflet-bottom .leaflet-control {\r\n\tmargin-bottom: 10px;\r\n\t}\r\n.leaflet-left .leaflet-control {\r\n\tmargin-left: 10px;\r\n\t}\r\n.leaflet-right .leaflet-control {\r\n\tmargin-right: 10px;\r\n\t}\r\n\r\n\r\n/* zoom and fade animations */\r\n\r\n.leaflet-fade-anim .leaflet-popup {\r\n\topacity: 0;\r\n\t-webkit-transition: opacity 0.2s linear;\r\n\t   -moz-transition: opacity 0.2s linear;\r\n\t        transition: opacity 0.2s linear;\r\n\t}\r\n.leaflet-fade-anim .leaflet-map-pane .leaflet-popup {\r\n\topacity: 1;\r\n\t}\r\n.leaflet-zoom-animated {\r\n\t-webkit-transform-origin: 0 0;\r\n\t    -ms-transform-origin: 0 0;\r\n\t        transform-origin: 0 0;\r\n\t}\r\nsvg.leaflet-zoom-animated {\r\n\twill-change: transform;\r\n}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-animated {\r\n\t-webkit-transition: -webkit-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t   -moz-transition:    -moz-transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t        transition:         transform 0.25s cubic-bezier(0,0,0.25,1);\r\n\t}\r\n.leaflet-zoom-anim .leaflet-tile,\r\n.leaflet-pan-anim .leaflet-tile {\r\n\t-webkit-transition: none;\r\n\t   -moz-transition: none;\r\n\t        transition: none;\r\n\t}\r\n\r\n.leaflet-zoom-anim .leaflet-zoom-hide {\r\n\tvisibility: hidden;\r\n\t}\r\n\r\n\r\n/* cursors */\r\n\r\n.leaflet-interactive {\r\n\tcursor: pointer;\r\n\t}\r\n.leaflet-grab {\r\n\tcursor: -webkit-grab;\r\n\tcursor:    -moz-grab;\r\n\tcursor:         grab;\r\n\t}\r\n.leaflet-crosshair,\r\n.leaflet-crosshair .leaflet-interactive {\r\n\tcursor: crosshair;\r\n\t}\r\n.leaflet-popup-pane,\r\n.leaflet-control {\r\n\tcursor: auto;\r\n\t}\r\n.leaflet-dragging .leaflet-grab,\r\n.leaflet-dragging .leaflet-grab .leaflet-interactive,\r\n.leaflet-dragging .leaflet-marker-draggable {\r\n\tcursor: move;\r\n\tcursor: -webkit-grabbing;\r\n\tcursor:    -moz-grabbing;\r\n\tcursor:         grabbing;\r\n\t}\r\n\r\n/* marker & overlays interactivity */\r\n.leaflet-marker-icon,\r\n.leaflet-marker-shadow,\r\n.leaflet-image-layer,\r\n.leaflet-pane > svg path,\r\n.leaflet-tile-container {\r\n\tpointer-events: none;\r\n\t}\r\n\r\n.leaflet-marker-icon.leaflet-interactive,\r\n.leaflet-image-layer.leaflet-interactive,\r\n.leaflet-pane > svg path.leaflet-interactive,\r\nsvg.leaflet-image-layer.leaflet-interactive path {\r\n\tpointer-events: visiblePainted; /* IE 9-10 doesn't have auto */\r\n\tpointer-events: auto;\r\n\t}\r\n\r\n/* visual tweaks */\r\n\r\n.leaflet-container {\r\n\tbackground: #ddd;\r\n\toutline-offset: 1px;\r\n\t}\r\n.leaflet-container a {\r\n\tcolor: #0078A8;\r\n\t}\r\n.leaflet-zoom-box {\r\n\tborder: 2px dotted #38f;\r\n\tbackground: rgba(255,255,255,0.5);\r\n\t}\r\n\r\n\r\n/* general typography */\r\n.leaflet-container {\r\n\tfont-family: \"Helvetica Neue\", Arial, Helvetica, sans-serif;\r\n\tfont-size: 12px;\r\n\tfont-size: 0.75rem;\r\n\tline-height: 1.5;\r\n\t}\r\n\r\n\r\n/* general toolbar styles */\r\n\r\n.leaflet-bar {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.65);\r\n\tborder-radius: 4px;\r\n\t}\r\n.leaflet-bar a {\r\n\tbackground-color: #fff;\r\n\tborder-bottom: 1px solid #ccc;\r\n\twidth: 26px;
2\r\n\theight: 26px;\r\n\tline-height: 26px;\r\n\tdisplay: block;\r\n\ttext-align: center;\r\n\ttext-decoration: none;\r\n\tcolor: black;\r\n\t}\r\n.leaflet-bar a,\r\n.leaflet-control-layers-toggle {\r\n\tbackground-position: 50% 50%;\r\n\tbackground-repeat: no-repeat;\r\n\tdisplay: block;\r\n\t}\r\n.leaflet-bar a:hover,\r\n.leaflet-bar a:focus {\r\n\tbackground-color: #f4f4f4;\r\n\t}\r\n.leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 4px;\r\n\tborder-top-right-radius: 4px;\r\n\t}\r\n.leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 4px;\r\n\tborder-bottom-right-radius: 4px;\r\n\tborder-bottom: none;\r\n\t}\r\n.leaflet-bar a.leaflet-disabled {\r\n\tcursor: default;\r\n\tbackground-color: #f4f4f4;\r\n\tcolor: #bbb;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-bar a {\r\n\twidth: 30px;\r\n\theight: 30px;\r\n\tline-height: 30px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:first-child {\r\n\tborder-top-left-radius: 2px;\r\n\tborder-top-right-radius: 2px;\r\n\t}\r\n.leaflet-touch .leaflet-bar a:last-child {\r\n\tborder-bottom-left-radius: 2px;\r\n\tborder-bottom-right-radius: 2px;\r\n\t}\r\n\r\n/* zoom control */\r\n\r\n.leaflet-control-zoom-in,\r\n.leaflet-control-zoom-out {\r\n\tfont: bold 18px 'Lucida Console', Monaco, monospace;\r\n\ttext-indent: 1px;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-zoom-in, .leaflet-touch .leaflet-control-zoom-out  {\r\n\tfont-size: 22px;\r\n\t}\r\n\r\n\r\n/* layers control */\r\n\r\n.leaflet-control-layers {\r\n\tbox-shadow: 0 1px 5px rgba(0,0,0,0.4);\r\n\tbackground: #fff;\r\n\tborder-radius: 5px;\r\n\t}\r\n.leaflet-control-layers-toggle {\r\n\tbackground-image: url("+p+");\r\n\twidth: 36px;\r\n\theight: 36px;\r\n\t}\r\n.leaflet-retina .leaflet-control-layers-toggle {\r\n\tbackground-image: url("+m+");\r\n\tbackground-size: 26px 26px;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers-toggle {\r\n\twidth: 44px;\r\n\theight: 44px;\r\n\t}\r\n.leaflet-control-layers .leaflet-control-layers-list,\r\n.leaflet-control-layers-expanded .leaflet-control-layers-toggle {\r\n\tdisplay: none;\r\n\t}\r\n.leaflet-control-layers-expanded .leaflet-control-layers-list {\r\n\tdisplay: block;\r\n\tposition: relative;\r\n\t}\r\n.leaflet-control-layers-expanded {\r\n\tpadding: 6px 10px 6px 6px;\r\n\tcolor: #333;\r\n\tbackground: #fff;\r\n\t}\r\n.leaflet-control-layers-scrollbar {\r\n\toverflow-y: scroll;\r\n\toverflow-x: hidden;\r\n\tpadding-right: 5px;\r\n\t}\r\n.leaflet-control-layers-selector {\r\n\tmargin-top: 2px;\r\n\tposition: relative;\r\n\ttop: 1px;\r\n\t}\r\n.leaflet-control-layers label {\r\n\tdisplay: block;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\t}\r\n.leaflet-control-layers-separator {\r\n\theight: 0;\r\n\tborder-top: 1px solid #ddd;\r\n\tmargin: 5px -10px 5px -6px;\r\n\t}\r\n\r\n/* Default icon URLs */\r\n.leaflet-default-icon-path { /* used only in path-guessing heuristic, see L.Icon.Default */\r\n\tbackground-image: url("+g+');\r\n\t}\r\n\r\n\r\n/* attribution and scale controls */\r\n\r\n.leaflet-container .leaflet-control-attribution {\r\n\tbackground: #fff;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\tmargin: 0;\r\n\t}\r\n.leaflet-control-attribution,\r\n.leaflet-control-scale-line {\r\n\tpadding: 0 5px;\r\n\tcolor: #333;\r\n\tline-height: 1.4;\r\n\t}\r\n.leaflet-control-attribution a {\r\n\ttext-decoration: none;\r\n\t}\r\n.leaflet-control-attribution a:hover,\r\n.leaflet-control-attribution a:focus {\r\n\ttext-decoration: underline;\r\n\t}\r\n.leaflet-attribution-flag {\r\n\tdisplay: inline !important;\r\n\tvertical-align: baseline !important;\r\n\twidth: 1em;\r\n\theight: 0.6669em;\r\n\t}\r\n.leaflet-left .leaflet-control-scale {\r\n\tmargin-left: 5px;\r\n\t}\r\n.leaflet-bottom .leaflet-control-scale {\r\n\tmargin-bottom: 5px;\r\n\t}\r\n.leaflet-control-scale-line {\r\n\tborder: 2px solid #777;\r\n\tborder-top: none;\r\n\tline-height: 1.1;\r\n\tpadding: 2px 5px 1px;\r\n\twhite-space: nowrap;\r\n\t-moz-box-sizing: border-box;\r\n\t     box-sizing: border-box;\r\n\tbackground: rgba(255, 255, 255, 0.8);\r\n\ttext-shadow: 1px 1px #fff;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child) {\r\n\tborder-top: 2px solid #777;\r\n\tborder-bottom: none;\r\n\tmargin-top: -2px;\r\n\t}\r\n.leaflet-control-scale-line:not(:first-child):not(:last-child) {\r\n\tborder-bottom: 2px solid #777;\r\n\t}\r\n\r\n.leaflet-touch .leaflet-control-attribution,\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tbox-shadow: none;\r\n\t}\r\n.leaflet-touch .leaflet-control-layers,\r\n.leaflet-touch .leaflet-bar {\r\n\tborder: 2px solid rgba(0,0,0,0.2);\r\n\tbackground-clip: padding-box;\r\n\t}\r\n\r\n\r\n/* popup */\r\n\r\n.leaflet-popup {\r\n\tposition: absolute;\r\n\ttext-align: center;\r\n\tmargin-bottom: 20px;\r\n\t}\r\n.leaflet-popup-content-wrapper {\r\n\tpadding: 1px;\r\n\ttext-align: left;\r\n\tborder-radius: 12px;\r\n\t}\r\n.leaflet-popup-content {\r\n\tmargin: 13px 24px 13px 20px;\r\n\tline-height: 1.3;\r\n\tfont-size: 13px;\r\n\tfont-size: 1.08333em;\r\n\tmin-height: 1px;\r\n\t}\r\n.leaflet-popup-content p {\r\n\tmargin: 17px 0;\r\n\tmargin: 1.3em 0;\r\n\t}\r\n.leaflet-popup-tip-container {\r\n\twidth: 40px;\r\n\theight: 20px;\r\n\tposition: absolute;\r\n\tleft: 50%;
2\r\n\tmargin-top: -1px;\r\n\tmargin-left: -20px;\r\n\toverflow: hidden;\r\n\tpointer-events: none;\r\n\t}\r\n.leaflet-popup-tip {\r\n\twidth: 17px;\r\n\theight: 17px;\r\n\tpadding: 1px;\r\n\r\n\tmargin: -10px auto 0;\r\n\tpointer-events: auto;\r\n\r\n\t-webkit-transform: rotate(45deg);\r\n\t   -moz-transform: rotate(45deg);\r\n\t    -ms-transform: rotate(45deg);\r\n\t        transform: rotate(45deg);\r\n\t}\r\n.leaflet-popup-content-wrapper,\r\n.leaflet-popup-tip {\r\n\tbackground: white;\r\n\tcolor: #333;\r\n\tbox-shadow: 0 3px 14px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button {\r\n\tposition: absolute;\r\n\ttop: 0;\r\n\tright: 0;\r\n\tborder: none;\r\n\ttext-align: center;\r\n\twidth: 24px;\r\n\theight: 24px;\r\n\tfont: 16px/24px Tahoma, Verdana, sans-serif;\r\n\tcolor: #757575;\r\n\ttext-decoration: none;\r\n\tbackground: transparent;\r\n\t}\r\n.leaflet-container a.leaflet-popup-close-button:hover,\r\n.leaflet-container a.leaflet-popup-close-button:focus {\r\n\tcolor: #585858;\r\n\t}\r\n.leaflet-popup-scrolled {\r\n\toverflow: auto;\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-popup-content-wrapper {\r\n\t-ms-zoom: 1;\r\n\t}\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\twidth: 24px;\r\n\tmargin: 0 auto;\r\n\r\n\t-ms-filter: "progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678)";\r\n\tfilter: progid:DXImageTransform.Microsoft.Matrix(M11=0.70710678, M12=0.70710678, M21=-0.70710678, M22=0.70710678);\r\n\t}\r\n\r\n.leaflet-oldie .leaflet-control-zoom,\r\n.leaflet-oldie .leaflet-control-layers,\r\n.leaflet-oldie .leaflet-popup-content-wrapper,\r\n.leaflet-oldie .leaflet-popup-tip {\r\n\tborder: 1px solid #999;\r\n\t}\r\n\r\n\r\n/* div icon */\r\n\r\n.leaflet-div-icon {\r\n\tbackground: #fff;\r\n\tborder: 1px solid #666;\r\n\t}\r\n\r\n\r\n/* Tooltip */\r\n/* Base styles for the element that has a tooltip */\r\n.leaflet-tooltip {\r\n\tposition: absolute;\r\n\tpadding: 6px;\r\n\tbackground-color: #fff;\r\n\tborder: 1px solid #fff;\r\n\tborder-radius: 3px;\r\n\tcolor: #222;\r\n\twhite-space: nowrap;\r\n\t-webkit-user-select: none;\r\n\t-moz-user-select: none;\r\n\t-ms-user-select: none;\r\n\tuser-select: none;\r\n\tpointer-events: none;\r\n\tbox-shadow: 0 1px 3px rgba(0,0,0,0.4);\r\n\t}\r\n.leaflet-tooltip.leaflet-interactive {\r\n\tcursor: pointer;\r\n\tpointer-events: auto;\r\n\t}\r\n.leaflet-tooltip-top:before,\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\tposition: absolute;\r\n\tpointer-events: none;\r\n\tborder: 6px solid transparent;\r\n\tbackground: transparent;\r\n\tcontent: "";\r\n\t}\r\n\r\n/* Directions */\r\n\r\n.leaflet-tooltip-bottom {\r\n\tmargin-top: 6px;\r\n}\r\n.leaflet-tooltip-top {\r\n\tmargin-top: -6px;\r\n}\r\n.leaflet-tooltip-bottom:before,\r\n.leaflet-tooltip-top:before {\r\n\tleft: 50%;\r\n\tmargin-left: -6px;\r\n\t}\r\n.leaflet-tooltip-top:before {\r\n\tbottom: 0;\r\n\tmargin-bottom: -12px;\r\n\tborder-top-color: #fff;\r\n\t}\r\n.leaflet-tooltip-bottom:before {\r\n\ttop: 0;\r\n\tmargin-top: -12px;\r\n\tmargin-left: -6px;\r\n\tborder-bottom-color: #fff;\r\n\t}\r\n.leaflet-tooltip-left {\r\n\tmargin-left: -6px;\r\n}\r\n.leaflet-tooltip-right {\r\n\tmargin-left: 6px;\r\n}\r\n.leaflet-tooltip-left:before,\r\n.leaflet-tooltip-right:before {\r\n\ttop: 50%;\r\n\tmargin-top: -6px;\r\n\t}\r\n.leaflet-tooltip-left:before {\r\n\tright: 0;\r\n\tmargin-right: -12px;\r\n\tborder-left-color: #fff;\r\n\t}\r\n.leaflet-tooltip-right:before {\r\n\tleft: 0;\r\n\tmargin-left: -12px;\r\n\tborder-right-color: #fff;\r\n\t}\r\n\r\n/* Printing */\r\n\t\r\n@media print {\r\n\t/* Prevent printers from removing background-images of controls. */\r\n\t.leaflet-control {\r\n\t\t-webkit-print-color-adjust: exact;\r\n\t\tprint-color-adjust: exact;\r\n\t\t}\r\n\t}\r\n',""]);const v=f},44805:(t,e,n)=>{"use strict";n.d(e,{Z:()=>p});var i=n(1519),o=n.n(i),r=n(63965),a=n.n(r),s=n(12683),l=n.n(s),c=n(83501),u=n.n(c),d=o()((function(t){return t[1]})),h=a()(l()),f=a()(u());d.push([t.id,".leaflet-control-fullscreen a{background:#fff url("+h+") no-repeat 0 0;
2background-size:26px 52px}.leaflet-touch .leaflet-control-fullscreen a{background-position:2px 2px}.leaflet-fullscreen-on .leaflet-control-fullscreen a{background-position:0 -26px}.leaflet-touch.leaflet-fullscreen-on .leaflet-control-fullscreen a{background-position:2px -24px}.leaflet-container:-webkit-full-screen{height:100%!important;width:100%!important}.leaflet-container.leaflet-fullscreen-on,.leaflet-pseudo-fullscreen{height:100%!important;width:100%!important}.leaflet-pseudo-fullscreen{left:0!important;position:fixed!important;top:0!important;z-index:99999}@media (-webkit-min-device-pixel-ratio:2),(min-resolution:192dpi){.leaflet-control-fullscreen a{background-image:url("+f+")}}",""]);const p=d},35828:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,".break-name[data-v-6c0a9494]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}",""]);const r=o},28964:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(1519),o=n.n(i),r=n(21195),a=o()((function(t){return t[1]}));a.i(r.Z),a.push([t.id,"",""]);const s=a},94679:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(1519),o=n.n(i),r=n(11214),a=o()((function(t){return t[1]}));a.i(r.Z),a.push([t.id,".dz-remove:hover{color:#fff!important}.dropzone-edit{background-color:transparent;border:.5mm dashed gray}.dropzone-edit:hover{animation-duration:.1s;border-color:#435a70;color:#435a70}.dropzone .dz-preview .dz-error-message{top:180px!important}.dz-remove{margin-top:25px!important}",""]);const s=a},63910:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,".ck-content{min-height:300px;overflow-y:auto}.custom-addon{position:absolute;right:0;top:11%}.customSettings:hover{background-color:#e5e7eb!important}",""]);const r=o},23577:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,".image-container[data-v-7b970f58]{max-height:500px;overflow-y:auto}.overlay-container[data-v-7b970f58]{max-height:450px;max-width:300px;overflow:hidden;position:relative;width:50%}.overlay[data-v-7b970f58]{background:#000;background:rgba(0,0,0,.5);bottom:0;color:#f1f1f1;color:#fff;padding:10px;position:absolute;width:100%}.card-columns[data-v-7b970f58]{-moz-column-gap:.1rem!important;column-gap:.1rem!important}.card[data-v-7b970f58]{border:none;max-width:300px}.card-img-top[data-v-7b970f58],img[data-v-7b970f58]{border-radius:0}@media (min-width:576px){.card-columns[data-v-7b970f58]{-moz-column-count:2;column-count:2}}@media (min-width:768px){.card-columns[data-v-7b970f58]{-moz-column-count:3;column-count:3}}",""]);const r=o},12221:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(1519),o=n.n(i),r=n(6423),a=o()((function(t){return t[1]}));a.i(r.Z),a.push([t.id,"",""]);const s=a},62813:(t,e,n)=>{"use strict";n.d(e,{Z:()=>l});var i=n(1519),o=n.n(i),r=n(7215),a=n(8297),s=o()((function(t){return t[1]}));s.i(r.Z),s.i(a.Z),s.push([t.id,".settings[data-v-18c91189]:hover{background-color:#e5e7eb!important}.hover[data-v-18c91189]:hover{background:#fee2e2}",""]);const l=s},47972:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,"",""]);const r=o},4806:(t,e,n)=>{"use strict";n.d(e,{Z:()=>s});var i=n(1519),o=n.n(i),r=n(58475),a=o()((function(t){return t[1]}));a.i(r.Z),a.push([t.id,".custom{min-width:300px}",""]);const s=a},58475:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,'fieldset[disabled] .multiselect{pointer-events:none}.multiselect__spinner{position:absolute;right:1px;top:1px;width:40px;height:38px;background:#fff;display:block}.multiselect__spinner:after,.multiselect__spinner:before{position:absolute;content:"";top:50%;left:50%;margin:-8px 0 0 -8px;width:16px;height:16px;border-radius:100%;border:2px solid transparent;border-top-color:#41b883;-webkit-box-shadow:0 0 0 1px transparent;box-shadow:0 0 0 1px transparent}.multiselect__spinner:before{-webkit-animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);animation:spinning 2.4s cubic-bezier(.41,.26,.2,.62);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__spinner:after{-webkit-animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);animation:spinning 2.4s cubic-bezier(.51,.09,.21,.8);-webkit-animation-iteration-count:infinite;animation-iteration-count:infinite}.multiselect__loading-enter-active,.multiselect__loading-leave-active{-webkit-transition:opacity .4s ease-in-out;transition:opacity .4s ease-in-out;opacity:1}.multiselect__loading-enter,.multiselect__loading-leave-active{opacity:0}
2.multiselect,.multiselect__input,.multiselect__single{font-family:inherit;font-size:16px;-ms-touch-action:manipulation;touch-action:manipulation}.multiselect{-webkit-box-sizing:content-box;box-sizing:content-box;display:block;position:relative;width:100%;min-height:40px;text-align:left;color:#35495e}.multiselect *{-webkit-box-sizing:border-box;box-sizing:border-box}.multiselect:focus{outline:none}.multiselect--disabled{background:#ededed;pointer-events:none;opacity:.6}.multiselect--active{z-index:50}.multiselect--active:not(.multiselect--above) .multiselect__current,.multiselect--active:not(.multiselect--above) .multiselect__input,.multiselect--active:not(.multiselect--above) .multiselect__tags{border-bottom-left-radius:0;border-bottom-right-radius:0}.multiselect--active .multiselect__select{-webkit-transform:rotate(180deg);transform:rotate(180deg)}.multiselect--above.multiselect--active .multiselect__current,.multiselect--above.multiselect--active .multiselect__input,.multiselect--above.multiselect--active .multiselect__tags{border-top-left-radius:0;border-top-right-radius:0}.multiselect__input,.multiselect__single{position:relative;display:inline-block;min-height:20px;line-height:20px;border:none;border-radius:5px;background:#fff;padding:0 0 0 5px;width:100%;-webkit-transition:border .1s ease;transition:border .1s ease;-webkit-box-sizing:border-box;box-sizing:border-box;margin-bottom:8px;vertical-align:top}.multiselect__input::-webkit-input-placeholder{color:#35495e}.multiselect__input::-moz-placeholder{color:#35495e}.multiselect__input:-ms-input-placeholder{color:#35495e}.multiselect__input::-ms-input-placeholder{color:#35495e}.multiselect__input::placeholder{color:#35495e}.multiselect__tag~.multiselect__input,.multiselect__tag~.multiselect__single{width:auto}.multiselect__input:hover,.multiselect__single:hover{border-color:#cfcfcf}.multiselect__input:focus,.multiselect__single:focus{border-color:#a8a8a8;outline:none}.multiselect__single{padding-left:5px;margin-bottom:8px}.multiselect__tags-wrap{display:inline}.multiselect__tags{min-height:40px;display:block;padding:8px 40px 0 8px;border-radius:5px;border:1px solid #e8e8e8;background:#fff;font-size:14px}.multiselect__tag{position:relative;display:inline-block;padding:4px 26px 4px 10px;border-radius:5px;margin-right:10px;color:#fff;line-height:1;background:#41b883;margin-bottom:5px;white-space:nowrap;overflow:hidden;max-width:100%;text-overflow:ellipsis}.multiselect__tag-icon{cursor:pointer;margin-left:7px;position:absolute;right:0;top:0;bottom:0;font-weight:700;font-style:normal;width:22px;text-align:center;line-height:22px;-webkit-transition:all .2s ease;transition:all .2s ease;border-radius:5px}.multiselect__tag-icon:after{content:"\\D7";color:#266d4d;font-size:14px}.multiselect__tag-icon:focus,.multiselect__tag-icon:hover{background:#369a6e}.multiselect__tag-icon:focus:after,.multiselect__tag-icon:hover:after{color:#fff}.multiselect__current{min-height:40px;overflow:hidden;padding:8px 30px 0 12px;white-space:nowrap;border-radius:5px;border:1px solid #e8e8e8}.multiselect__current,.multiselect__select{line-height:16px;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;margin:0;text-decoration:none;cursor:pointer}.multiselect__select{position:absolute;width:40px;height:38px;right:1px;top:1px;padding:4px 8px;text-align:center;-webkit-transition:-webkit-transform .2s ease;transition:-webkit-transform .2s ease;transition:transform .2s ease;transition:transform .2s ease,-webkit-transform .2s ease}.multiselect__select:before{position:relative;right:0;top:65%;color:#999;margin-top:4px;border-color:#999 transparent transparent;border-style:solid;border-width:5px 5px 0;content:""}.multiselect__placeholder{color:#adadad;display:inline-block;margin-bottom:10px;padding-top:2px}.multiselect--active .multiselect__placeholder{display:none}.multiselect__content-wrapper{position:absolute;display:block;background:#fff;width:100%;max-height:240px;overflow:auto;border:1px solid #e8e8e8;border-top:none;border-bottom-left-radius:5px;border-bottom-right-radius:5px;z-index:50;-webkit-overflow-scrolling:touch}.multiselect__content{list-style:none;display:inline-block;padding:0;margin:0;min-width:100%;vertical-align:top}.multiselect--above .multiselect__content-wrapper{bottom:100%;border-bottom-left-radius:0;border-bottom-right-radius:0;border-top-left-radius:5px;border-top-right-radius:5px;border-bottom:none;border-top:1px solid #e8e8e8}.multiselect__content::webkit-scrollbar{display:none}.multiselect__element{display:block}
2.multiselect__option{display:block;padding:12px;min-height:40px;line-height:16px;text-decoration:none;text-transform:none;vertical-align:middle;position:relative;cursor:pointer;white-space:nowrap}.multiselect__option:after{top:0;right:0;position:absolute;line-height:40px;padding-right:12px;padding-left:20px;font-size:13px}.multiselect__option--highlight{background:#41b883;outline:none;color:#fff}.multiselect__option--highlight:after{content:attr(data-select);background:#41b883;color:#fff}.multiselect__option--selected{background:#f3f3f3;color:#35495e;font-weight:700}.multiselect__option--selected:after{content:attr(data-selected);color:silver;background:inherit}.multiselect__option--selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect--disabled .multiselect__current,.multiselect--disabled .multiselect__select{background:#ededed;color:#a6a6a6}.multiselect__option--disabled{background:#ededed!important;color:#a6a6a6!important;cursor:text;pointer-events:none}.multiselect__option--group{background:#ededed;color:#35495e}.multiselect__option--group.multiselect__option--highlight{background:#35495e;color:#fff}.multiselect__option--group.multiselect__option--highlight:after{background:#35495e}.multiselect__option--disabled.multiselect__option--highlight{background:#dedede}.multiselect__option--group-selected.multiselect__option--highlight{background:#ff6a6a;color:#fff}.multiselect__option--group-selected.multiselect__option--highlight:after{background:#ff6a6a;content:attr(data-deselect);color:#fff}.multiselect-enter-active,.multiselect-leave-active{-webkit-transition:all .15s ease;transition:all .15s ease}.multiselect-enter,.multiselect-leave-active{opacity:0}.multiselect__strong{margin-bottom:8px;line-height:20px;display:inline-block;vertical-align:top}[dir=rtl] .multiselect{text-align:right}[dir=rtl] .multiselect__select{right:auto;left:1px}[dir=rtl] .multiselect__tags{padding:8px 8px 0 40px}[dir=rtl] .multiselect__content{text-align:right}[dir=rtl] .multiselect__option:after{right:auto;left:0}[dir=rtl] .multiselect__clear{right:auto;left:12px}[dir=rtl] .multiselect__spinner{right:auto;left:1px}@-webkit-keyframes spinning{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(2turn);transform:rotate(2turn)}}@keyframes spinning{0%{-webkit-transform:rotate(0);transform:rotate(0)}to{-webkit-transform:rotate(2turn);transform:rotate(2turn)}}',""]);const r=o},21195:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,'/* component style */\n.vue-slider-disabled {\n  opacity: 0.5;\n  cursor: not-allowed;\n}\n\n/* rail style */\n.vue-slider-rail {\n  background-color: #ccc;\n  border-radius: 15px;\n}\n\n/* process style */\n.vue-slider-process {\n  background-color: #3498db;\n  border-radius: 15px;\n}\n\n/* mark style */\n.vue-slider-mark {\n  z-index: 4;\n}\n.vue-slider-mark:first-child .vue-slider-mark-step, .vue-slider-mark:last-child .vue-slider-mark-step {\n  display: none;\n}\n.vue-slider-mark-step {\n  width: 100%;\n  height: 100%;\n  border-radius: 50%;\n  background-color: rgba(0, 0, 0, 0.16);\n}\n.vue-slider-mark-label {\n  font-size: 14px;\n  white-space: nowrap;\n}\n/* dot style */\n.vue-slider-dot-handle {\n  cursor: pointer;\n  width: 100%;\n  height: 100%;\n  border-radius: 50%;\n  background-color: #fff;\n  box-sizing: border-box;\n  box-shadow: 0.5px 0.5px 2px 1px rgba(0, 0, 0, 0.32);\n}\n.vue-slider-dot-handle-focus {\n  box-shadow: 0px 0px 1px 2px rgba(52, 152, 219, 0.36);\n}\n\n.vue-slider-dot-handle-disabled {\n  cursor: not-allowed;\n  background-color: #ccc;\n}\n\n.vue-slider-dot-tooltip-inner {\n  font-size: 14px;\n  white-space: nowrap;\n  padding: 2px 5px;\n  min-width: 20px;\n  text-align: center;\n  color: #fff;\n  border-radius: 5px;\n  border-color: #3498db;\n  background-color: #3498db;\n  box-sizing: content-box;\n}\n.vue-slider-dot-tooltip-inner::after {\n  content: "";\n  position: absolute;\n}\n.vue-slider-dot-tooltip-inner-top::after {\n  top: 100%;\n  left: 50%;\n  transform: translate(-50%, 0);\n  height: 0;\n  width: 0;\n  border-color: transparent;\n  border-style: solid;\n  border-width: 5px;\n  border-top-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-bottom::after {\n  bottom: 100%;\n  left: 50%;\n  transform: translate(-50%, 0);\n  height: 0;\n  width: 0;\n  border-color: transparent;\n  border-style: solid;\n  border-width: 5px;\n  border-bottom-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-left::after {\n  left: 100%;\n  top: 50%;\n  transform: translate(0, -50%);\n  height: 0;\n  width: 0;\n  border-color: transparent;\n  border-style: solid;\n  border-width: 5px;\n  border-left-color: inherit;\n}\n.vue-slider-dot-tooltip-inner-right::after {\n  right: 100%;\n  top: 50%;\n  transform: translate(0, -50%);\n  height: 0;\n  width: 0;\n  border-color: transparent;\n  border-style: solid;\n  border-width: 5px;\n  border-right-color: inherit;\n}\n\n.vue-slider-dot-tooltip-wrapper {\n  opacity: 0;\n  transition: all 0.3s;\n}\n.vue-slider-dot-tooltip-wrapper-show {\n  opacity: 1;\n}\n',""]);const r=o},6423:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,"fieldset[disabled] .vue-swatches{pointer-events:none}.vue-swatches{position:relative;outline:none}.vue-swatches__trigger{display:inline-block;cursor:pointer}.vue-swatches__trigger.vue-swatches--is-empty{border:2px solid #ccc}.vue-swatches__trigger.vue-swatches--is-disabled{cursor:not-allowed}
2.vue-swatches__container{box-sizing:content-box;padding:5px}.vue-swatches__container:not(.vue-swatches--inline){position:absolute;display:block;overflow:auto;border-radius:5px;box-shadow:0 2px 3px hsla(0,0%,4%,.2),0 0 0 1px hsla(0,0%,4%,.2);z-index:50}.vue-swatches__wrapper{background-color:inherit}.vue-swatches__row{font-size:0}.vue-swatches__fallback__wrapper{display:table}.vue-swatches__fallback__input--wrapper{display:table-cell;padding-right:10px;width:100%;font-size:14px}.vue-swatches__fallback__input{width:100%;padding-top:6px;padding-bottom:6px;border-radius:5px;border:1px solid #dcdcdc;color:#35495e;background:#fff}.vue-swatches__fallback__button{display:table-cell;padding:6px 15px;border:0;cursor:pointer;font-weight:700;color:#fff;background-color:#3571c8;border-radius:5px}.vue-swatches-show-hide-enter-active,.vue-swatches-show-hide-leave-active{transition:all .3s ease}.vue-swatches-show-hide-enter,.vue-swatches-show-hide-leave-active{opacity:0}.vue-swatches--has-children-centered{display:-ms-flexbox;display:flex;-ms-flex-align:center;align-items:center;-ms-flex-pack:center;justify-content:center}.vue-swatches__diagonal--wrapper{width:100%;height:100%}.vue-swatches__diagonal{width:75%;height:75%;background:linear-gradient(to top right,transparent 0,transparent calc(50% - 2.4px),#de080a 50%,transparent calc(50% + 2.4px),transparent)}.vue-swatches__swatch{position:relative;font-size:0}.vue-swatches__swatch:focus,.vue-swatches__swatch:hover{opacity:.9;box-shadow:inset 0 0 2px rgba(0,0,0,.75);outline:none}.vue-swatches__swatch.vue-swatches__swatch--border,.vue-swatches__swatch.vue-swatches__swatch--selected{box-shadow:inset 0 0 2px rgba(0,0,0,.75)}.vue-swatches__swatch .vue-swatches__diagonal--wrapper{position:absolute}.vue-swatches__check__wrapper{position:absolute;width:100%;height:100%}.vue-swatches__check__circle{width:21px;height:21px;border-radius:50%;background-color:rgba(0,0,0,.15)}.vue-swatches__check__path{fill:#fff}",""]);const r=o},11214:(t,e,n)=>{"use strict";n.d(e,{Z:()=>r});var i=n(1519),o=n.n(i)()((function(t){return t[1]}));o.push([t.id,"/*\n * The MIT License\n * Copyright (c) 2012 Matias Meno <[email protected]>\n */\n@-webkit-keyframes passing-through {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30%, 70% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); }\n  100% {\n    opacity: 0;\n    -webkit-transform: translateY(-40px);\n    -moz-transform: translateY(-40px);\n    -ms-transform: translateY(-40px);\n    -o-transform: translateY(-40px);\n    transform: translateY(-40px); } }\n@-moz-keyframes passing-through {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30%, 70% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); }\n  100% {\n    opacity: 0;\n    -webkit-transform: translateY(-40px);\n    -moz-transform: translateY(-40px);\n    -ms-transform: translateY(-40px);\n    -o-transform: translateY(-40px);\n    transform: translateY(-40px); } }\n@keyframes passing-through {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30%, 70% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); }\n  100% {\n    opacity: 0;\n    -webkit-transform: translateY(-40px);\n    -moz-transform: translateY(-40px);\n    -ms-transform: translateY(-40px);\n    -o-transform: translateY(-40px);\n    transform: translateY(-40px); } }\n@-webkit-keyframes slide-in {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); } }\n@-moz-keyframes slide-in {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); } }\n@keyframes slide-in {\n  0% {\n    opacity: 0;\n    -webkit-transform: translateY(40px);\n    -moz-transform: translateY(40px);\n    -ms-transform: translateY(40px);\n    -o-transform: translateY(40px);\n    transform: translateY(40px); }\n  30% {\n    opacity: 1;\n    -webkit-transform: translateY(0px);\n    -moz-transform: translateY(0px);\n    -ms-transform: translateY(0px);\n    -o-transform: translateY(0px);\n    transform: translateY(0px); } }\n@-webkit-keyframes pulse {\n  0% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); }\n  10% {\n    -webkit-transform: scale(1.1);\n    -moz-transform: scale(1.1);\n    -ms-transform: scale(1.1);\n    -o-transform: scale(1.1);\n    transform: scale(1.1); }\n  20% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); } }\n@-moz-keyframes pulse {\n  0% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); }\n  10% {\n    -webkit-transform: scale(1.1);\n    -moz-transform: scale(1.1);\n    -ms-transform: scale(1.1);\n    -o-transform: scale(1.1);\n    transform: scale(1.1); }\n  20% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); } }\n@keyframes pulse {\n  0% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); }\n  10% {\n    -webkit-transform: scale(1.1);\n    -moz-transform: scale(1.1);\n    -ms-transform: scale(1.1);\n    -o-transform: scale(1.1);\n    transform: scale(1.1); }\n  20% {\n    -webkit-transform: scale(1);\n    -moz-transform: scale(1);\n    -ms-transform: scale(1);\n    -o-transform: scale(1);\n    transform: scale(1); } }\n.dropzone, .dropzone * {\n  box-sizing: border-box; }\n\n.dropzone {\n  min-height: 150px;\n  border: 2px solid rgba(0, 0, 0, 0.3);\n  background: white;\n  padding: 20px 20px; }\n  .dropzone.dz-clickable {\n    cursor: pointer; }\n    .dropzone.dz-clickable * {\n      cursor: default; }\n    .dropzone.dz-clickable .dz-message, .dropzone.dz-clickable .dz-message * {\n      cursor: pointer; }\n  .dropzone.dz-started .dz-message {\n    display: none; }\n  .dropzone.dz-drag-hover {\n    border-style: solid; }\n    .dropzone.dz-drag-hover .dz-message {\n      opacity: 0.5; }\n  .dropzone .dz-message {\n    text-align: center;\n    margin: 2em 0; }\n  .dropzone .dz-preview {\n    position: relative;\n    display: inline-block;\n    vertical-align: top;\n    margin: 16px;\n    min-height: 100px; }\n    .dropzone .dz-preview:hover {\n      z-index: 1000; }\n      .dropzone .dz-preview:hover .dz-details {\n        opacity: 1; }\n    .dropzone .dz-preview.dz-file-preview .dz-image {\n      border-radius: 20px;\n      background: #999;\n      background: linear-gradient(to bottom, #eee, #ddd); }\n    .dropzone .dz-preview.dz-file-preview .dz-details {\n      opacity: 1; }\n    .dropzone .dz-preview.dz-image-preview {\n      background: white; }\n      .dropzone .dz-preview.dz-image-preview .dz-details {\n        -webkit-transition: opacity 0.2s linear;\n        -moz-transition: opacity 0.2s linear;\n        -ms-transition: opacity 0.2s linear;\n        -o-transition: opacity 0.2s linear;\n        transition: opacity 0.2s linear; }\n    .dropzone .dz-preview .dz-remove {\n      font-size: 14px;\n      text-align: center;\n      display: block;\n      cursor: pointer;\n      border: none; }\n      .dropzone .dz-preview .dz-remove:hover {\n        text-decoration: underline; }\n    .dropzone .dz-preview:hover .dz-details {\n      opacity: 1; }\n    .dropzone .dz-preview .dz-details {\n      z-index: 20;\n      position: absolute;\n      top: 0;\n      left: 0;\n      opacity: 0;\n      font-size: 13px;\n      min-width: 100%;\n      max-width: 100%;\n      padding: 2em 1em;\n      text-align: center;\n      color: rgba(0, 0, 0, 0.9);\n      line-height: 150%; }\n      .dropzone .dz-preview .dz-details .dz-size {\n        margin-bottom: 1em;\n        font-size: 16px; }\n      .dropzone .dz-preview .dz-details .dz-filename {\n        white-space: nowrap; }\n        .dropzone .dz-preview .dz-details .dz-filename:hover span {\n          border: 1px solid rgba(200, 200, 200, 0.8);\n          background-color: rgba(255, 255, 255, 0.8); }\n        .dropzone .dz-preview .dz-details .dz-filename:not(:hover) {\n          overflow: hidden;\n          text-overflow: ellipsis; }\n          .dropzone .dz-preview .dz-details .dz-filename:not(:hover) span {\n            border: 1px solid transparent; }\n      .dropzone .dz-preview .dz-details .dz-filename span, .dropzone .dz-preview .dz-details .dz-size span {\n        background-color: rgba(255, 255, 255, 0.4);\n        padding: 0 0.4em;\n        border-radius: 3px; }\n    .dropzone .dz-preview:hover .dz-image img {\n      -webkit-transform: scale(1.05, 1.05);\n      -moz-transform: scale(1.05, 1.05);\n      -ms-transform: scale(1.05, 1.05);\n      -o-transform: scale(1.05, 1.05);\n      transform: scale(1.05, 1.05);\n      -webkit-filter: blur(8px);\n      filter: blur(8px); }\n    .dropzone .dz-preview .dz-image {\n      border-radius: 20px;\n      overflow: hidden;\n      width: 120px;\n      height: 120px;\n      position: relative;\n      display: block;\n      z-index: 10; }\n      .dropzone .dz-preview .dz-image img {\n        display: block; }\n    .dropzone .dz-preview.dz-success .dz-success-mark {\n      -webkit-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -moz-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -ms-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -o-animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1);\n      animation: passing-through 3s cubic-bezier(0.77, 0, 0.175, 1); }\n    .dropzone .dz-preview.dz-error .dz-error-mark {\n      opacity: 1;\n      -webkit-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -moz-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -ms-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n      -o-animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1);\n      animation: slide-in 3s cubic-bezier(0.77, 0, 0.175, 1); }\n    .dropzone .dz-preview .dz-success-mark, .dropzone .dz-preview .dz-error-mark {\n      pointer-events: none;\n      opacity: 0;\n      z-index: 500;\n      position: absolute;\n      display: block;\n      top: 50%;\n      left: 50%;\n      margin-left: -27px;\n      margin-top: -27px; }\n      .dropzone .dz-preview .dz-success-mark svg, .dropzone .dz-preview .dz-error-mark svg {\n        display: block;\n        width: 54px;\n        height: 54px; }\n    .dropzone .dz-preview.dz-processing .dz-progress {\n      opacity: 1;\n      -webkit-transition: all 0.2s linear;\n      -moz-transition: all 0.2s linear;\n      -ms-transition: all 0.2s linear;\n      -o-transition: all 0.2s linear;\n      transition: all 0.2s linear; }\n    .dropzone .dz-preview.dz-complete .dz-progress {\n      opacity: 0;\n      -webkit-transition: opacity 0.4s ease-in;\n      -moz-transition: opacity 0.4s ease-in;\n      -ms-transition: opacity 0.4s ease-in;\n      -o-transition: opacity 0.4s ease-in;\n      transition: opacity 0.4s ease-in; }\n    .dropzone .dz-preview:not(.dz-processing) .dz-progress {\n      -webkit-animation: pulse 6s ease infinite;\n      -moz-animation: pulse 6s ease infinite;\n      -ms-animation: pulse 6s ease infinite;\n      -o-animation: pulse 6s ease infinite;\n      animation: pulse 6s ease infinite; }\n    .dropzone .dz-preview .dz-progress {\n      opacity: 1;\n      z-index: 1000;\n      pointer-events: none;\n      position: absolute;\n      height: 16px;\n      left: 50%;\n      top: 50%;\n      margin-top: -8px;\n      width: 80px;\n      margin-left: -40px;\n      background: rgba(255, 255, 255, 0.9);\n      -webkit-transform: scale(1);\n      border-radius: 8px;\n      overflow: hidden; }\n      .dropzone .dz-preview .dz-progress .dz-upload {\n        background: #333;\n        background: linear-gradient(to bottom, #666, #444);\n        position: absolute;\n        top: 0;\n        left: 0;\n        bottom: 0;\n        width: 0;\n        -webkit-transition: width 300ms ease-in-out;\n        -moz-transition: width 300ms ease-in-out;\n        -ms-transition: width 300ms ease-in-out;\n        -o-transition: width 300ms ease-in-out;\n        transition: width 300ms ease-in-out; }\n    .dropzone .dz-preview.dz-error .dz-error-message {\n      display: block; }\n    .dropzone .dz-preview.dz-error:hover .dz-error-message {\n      opacity: 1;\n      pointer-events: auto; }\n    .dropzone .dz-preview .dz-error-message {\n      pointer-events: none;\n      z-index: 1000;\n      position: absolute;\n      display: block;\n      display: none;\n      opacity: 0;\n      -webkit-transition: opacity 0.3s ease;\n      -moz-transition: opacity 0.3s ease;\n      -ms-transition: opacity 0.3s ease;\n      -o-transition: opacity 0.3s ease;\n      transition: opacity 0.3s ease;\n      border-radius: 8px;\n      font-size: 13px;\n      top: 130px;\n      left: -10px;\n      width: 140px;\n      background: #be2626;\n      background: linear-gradient(to bottom, #be2626, #a92222);\n      padding: 0.5em 1.2em;\n      color: white; }\n      .dropzone .dz-preview .dz-error-message:after {\n        content: '';\n        position: absolute;\n        top: -6px;\n        left: 64px;\n        width: 0;\n        height: 0;\n        border-left: 6px solid transparent;\n        border-right: 6px solid transparent;\n        border-bottom: 6px solid #be2626; }\n.vue-dropzone{border:2px solid #e5e5e5;font-family:Arial,sans-serif;letter-spacing:.2px;
2color:#777;transition:.2s linear}.vue-dropzone:hover{background-color:#f6f6f6}.vue-dropzone>i{color:#ccc}.vue-dropzone>.dz-preview .dz-image{border-radius:0;width:100%;height:100%}.vue-dropzone>.dz-preview .dz-image img:not([src]){width:200px;height:200px}.vue-dropzone>.dz-preview .dz-image:hover img{transform:none;-webkit-filter:none}.vue-dropzone>.dz-preview .dz-details{bottom:0;top:0;color:#fff;background-color:rgba(33,150,243,.8);transition:opacity .2s linear;text-align:left}.vue-dropzone>.dz-preview .dz-details .dz-filename{overflow:hidden}.vue-dropzone>.dz-preview .dz-details .dz-filename span,.vue-dropzone>.dz-preview .dz-details .dz-size span{background-color:transparent}.vue-dropzone>.dz-preview .dz-details .dz-filename:not(:hover) span{border:none}.vue-dropzone>.dz-preview .dz-details .dz-filename:hover span{background-color:transparent;border:none}.vue-dropzone>.dz-preview .dz-progress .dz-upload{background:#ccc}.vue-dropzone>.dz-preview .dz-remove{position:absolute;z-index:30;color:#fff;margin-left:15px;padding:10px;top:inherit;bottom:15px;border:2px #fff solid;text-decoration:none;text-transform:uppercase;font-size:.8rem;font-weight:800;letter-spacing:1.1px;opacity:0}.vue-dropzone>.dz-preview:hover .dz-remove{opacity:1}.vue-dropzone>.dz-preview .dz-error-mark,.vue-dropzone>.dz-preview .dz-success-mark{margin-left:auto;margin-top:auto;width:100%;top:35%;left:0}.vue-dropzone>.dz-preview .dz-error-mark svg,.vue-dropzone>.dz-preview .dz-success-mark svg{margin-left:auto;margin-right:auto}.vue-dropzone>.dz-preview .dz-error-message{margin-left:auto;margin-right:auto;left:0;width:100%;text-align:center}.vue-dropzone>.dz-preview .dz-error-message:after{display:none}",""]);const r=o},1519:t=>{"use strict";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,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},63965:t=>{"use strict";t.exports=function(t,e){return e||(e={}),"string"!=typeof(t=t&&t.__esModule?t.default:t)?t:(/^['"].*['"]$/.test(t)&&(t=t.slice(1,-1)),e.hash&&(t+=e.hash),/["'() \t\n]/.test(t)||e.needQuotes?'"'.concat(t.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):t)}},88292:()=>{L.Control.Fullscreen=L.Control.extend({options:{position:"topleft",title:{false:"View Fullscreen",true:"Exit Fullscreen"}},onAdd:function(t){var e=L.DomUtil.create("div","leaflet-control-fullscreen leaflet-bar leaflet-control");return this.link=L.DomUtil.create("a","leaflet-control-fullscreen-button leaflet-bar-part",e),this.link.href="#",this._map=t,this._map.on("fullscreenchange",this._toggleTitle,this),this._toggleTitle(),L.DomEvent.on(this.link,"click",this._click,this),e},_click:function(t){L.DomEvent.stopPropagation(t),L.DomEvent.preventDefault(t),this._map.toggleFullscreen(this.options)},_toggleTitle:function(){this.link.title=this.options.title[this._map.isFullscreen()]}}),L.Map.include({isFullscreen:function(){return this._isFullscreen||!1},toggleFullscreen:function(t){var e=this.getContainer();this.isFullscreen()?t&&t.pseudoFullscreen?this._disablePseudoFullscreen(e):document.exitFullscreen?document.exitFullscreen():document.mozCancelFullScreen?document.mozCancelFullScreen():document.webkitCancelFullScreen?document.webkitCancelFullScreen():document.msExitFullscreen?document.msExitFullscreen():this._disablePseudoFullscreen(e):t&&t.pseudoFullscreen?this._enablePseudoFullscreen(e):e.requestFullscreen?e.requestFullscreen():e.mozRequestFullScreen?e.mozRequestFullScreen():e.webkitRequestFullscreen?e.webkitRequestFullscreen(Element.ALLOW_KEYBOARD_INPUT):e.msRequestFullscreen?e.msRequestFullscreen():this._enablePseudoFullscreen(e)},_enablePseudoFullscreen:function(t){L.DomUtil.addClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!0),this.fire("fullscreenchange")},_disablePseudoFullscreen:function(t){L.DomUtil.removeClass(t,"leaflet-pseudo-fullscreen"),this._setFullscreen(!1),this.fire("fullscreenchange")},_setFullscreen:function(t){this._isFullscreen=t;var e=this.getContainer();t?L.DomUtil.addClass(e,"leaflet-fullscreen-on"):L.DomUtil.removeClass(e,"leaflet-fullscreen-on"),this.invalidateSize()},_onFullscreenChange:function(t){var e=document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement||document.msFullscreenElement;e!==this.getContainer()||this._isFullscreen?e!==this.getContainer()&&this._isFullscreen&&(this._setFullscreen(!1),this.fire("fullscreenchange")):(this._setFullscreen(!0),this.fire("fullscreenchange"))}}),L.Map.mergeOptions({fullscreenControl:!1}),L.Map.addInitHook((function(){var t;if(this.options.fullscreenControl&&(this.fullscreenControl=new L.Control.Fullscreen(this.options.fullscreenControl),this.addControl(this.fullscreenControl)),"onfullscreenchange"in document?t="fullscreenchange":"onmozfullscreenchange"in document?t="mozfullscreenchange":"onwebkitfullscreenchange"in document?t="webkitfullscreenchange":"onmsfullscreenchange"in document&&(t="MSFullscreenChange"),t){var e=L.bind(this._onFullscreenChange,this);this.whenReady((function(){L.DomEvent.on(document,t,e)})),this.on("unload",(function(){L.DomEvent.off(document,t,e)}))}})),L.control.fullscreen=function(t){return new L.Control.Fullscreen(t)}},45243:function(t,e){!function(t){"use strict";var e="1.9.3";function n(t){var e,n,i,o;for(n=1,i=arguments.length;n<i;n++)for(e in o=arguments[n])t[e]=o[e];return t}var i=Object.create||function(){function t(){}return function(e){return t.prototype=e,new t}}();function o(t,e){var n=Array.prototype.slice;
vendor: 11,176 bytes, line 2
2if(t.bind)return t.bind.apply(t,n.call(arguments,1));var i=n.call(arguments,2);return function(){return t.apply(e,i.length?i.concat(n.call(arguments)):arguments)}}var r=0;function a(t){return"_leaflet_id"in t||(t._leaflet_id=++r),t._leaflet_id}function s(t,e,n){var i,o,r,a;return a=function(){i=!1,o&&(r.apply(n,o),o=!1)},r=function(){i?o=arguments:(t.apply(n,arguments),setTimeout(a,e),i=!0)},r}function l(t,e,n){var i=e[1],o=e[0],r=i-o;return t===i&&n?t:((t-o)%r+r)%r+o}function c(){return!1}function u(t,e){if(!1===e)return t;var n=Math.pow(10,void 0===e?6:e);return Math.round(t*n)/n}function d(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function h(t){return d(t).split(/\s+/)}function f(t,e){for(var n in Object.prototype.hasOwnProperty.call(t,"options")||(t.options=t.options?i(t.options):{}),e)t.options[n]=e[n];return t.options}function p(t,e,n){var i=[];for(var o in t)i.push(encodeURIComponent(n?o.toUpperCase():o)+"="+encodeURIComponent(t[o]));return(e&&-1!==e.indexOf("?")?"&":"?")+i.join("&")}var m=/\{ *([\w_ -]+) *\}/g;function g(t,e){return t.replace(m,(function(t,n){var i=e[n];if(void 0===i)throw new Error("No value provided for variable "+t);return"function"==typeof i&&(i=i(e)),i}))}var v=Array.isArray||function(t){return"[object Array]"===Object.prototype.toString.call(t)};function k(t,e){for(var n=0;n<t.length;n++)if(t[n]===e)return n;return-1}var b="data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=";function y(t){return window["webkit"+t]||window["moz"+t]||window["ms"+t]}var _=0;function w(t){var e=+new Date,n=Math.max(0,16-(e-_));return _=e+n,window.setTimeout(t,n)}var C=window.requestAnimationFrame||y("RequestAnimationFrame")||w,A=window.cancelAnimationFrame||y("CancelAnimationFrame")||y("CancelRequestAnimationFrame")||function(t){window.clearTimeout(t)};function x(t,e,n){if(!n||C!==w)return C.call(window,o(t,e));t.call(e)}function D(t){t&&A.call(window,t)}var E={__proto__:null,extend:n,create:i,bind:o,get lastId(){return r},stamp:a,throttle:s,wrapNum:l,falseFn:c,formatNum:u,trim:d,splitWords:h,setOptions:f,getParamString:p,template:g,isArray:v,indexOf:k,emptyImageUrl:b,requestFn:C,cancelFn:A,requestAnimFrame:x,cancelAnimFrame:D};function S(){}function T(t){if("undefined"!=typeof L&&L&&L.Mixin){t=v(t)?t:[t];for(var e=0;e<t.length;e++)t[e]===L.Mixin.Events&&console.warn("Deprecated include of L.Mixin.Events: this property will be removed in future releases, please inherit from L.Evented instead.",(new Error).stack)}}S.extend=function(t){var e=function(){f(this),this.initialize&&this.initialize.apply(this,arguments),this.callInitHooks()},o=e.__super__=this.prototype,r=i(o);for(var a in r.constructor=e,e.prototype=r,this)Object.prototype.hasOwnProperty.call(this,a)&&"prototype"!==a&&"__super__"!==a&&(e[a]=this[a]);return t.statics&&n(e,t.statics),t.includes&&(T(t.includes),n.apply(null,[r].concat(t.includes))),n(r,t),delete r.statics,delete r.includes,r.options&&(r.options=o.options?i(o.options):{},n(r.options,t.options)),r._initHooks=[],r.callInitHooks=function(){if(!this._initHooksCalled){o.callInitHooks&&o.callInitHooks.call(this),this._initHooksCalled=!0;for(var t=0,e=r._initHooks.length;t<e;t++)r._initHooks[t].call(this)}},e},S.include=function(t){var e=this.prototype.options;return n(this.prototype,t),t.options&&(this.prototype.options=e,this.mergeOptions(t.options)),this},S.mergeOptions=function(t){return n(this.prototype.options,t),this},S.addInitHook=function(t){var e=Array.prototype.slice.call(arguments,1),n="function"==typeof t?t:function(){this[t].apply(this,e)};return this.prototype._initHooks=this.prototype._initHooks||[],this.prototype._initHooks.push(n),this};var I={on:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n);return this},off:function(t,e,n){if(arguments.length)if("object"==typeof t)for(var i in t)this._off(i,t[i],e);else{t=h(t);for(var o=1===arguments.length,r=0,a=t.length;r<a;r++)o?this._off(t[r]):this._off(t[r],e,n)}else delete this._events;return this},_on:function(t,e,n,i){if("function"==typeof e){if(!1===this._listens(t,e,n)){n===this&&(n=void 0);var o={fn:e,ctx:n};i&&(o.once=!0),this._events=this._events||{},this._events[t]=this._events[t]||[],this._events[t].push(o)}}else console.warn("wrong listener type: "+typeof e)},_off:function(t,e,n){var i,o,r;if(this._events&&(i=this._events[t]))if(1!==arguments.length)if("function"==typeof e){var a=this._listens(t,e,n);if(!1!==a){var s=i[a];this._firingCount&&(s.fn=c,this._events[t]=i=i.slice()),i.splice(a,1)}}else console.warn("wrong listener type: "+typeof e);else{if(this._firingCount)for(o=0,r=i.length;o<r;o++)i[o].fn=c;delete this._events[t]}},fire:function(t,e,i){if(!this.listens(t,i))return this;var o=n({},e,{type:t,target:this,sourceTarget:e&&e.sourceTarget||this});if(this._events){var r=this._events[t];if(r){this._firingCount=this._firingCount+1||1;for(var a=0,s=r.length;a<s;a++){var l=r[a],c=l.fn;l.once&&this.off(t,c,l.ctx),c.call(l.ctx||this,o)}this._firingCount--}}return i&&this._propagateEvent(o),this},listens:function(t,e,n,i){"string"!=typeof t&&console.warn('"string" type argument expected');var o=e;"function"!=typeof e&&(i=!!e,o=void 0,n=void 0);var r=this._events&&this._events[t];if(r&&r.length&&!1!==this._listens(t,o,n))return!0;if(i)for(var a in this._eventParents)if(this._eventParents[a].listens(t,e,n,i))return!0;return!1},_listens:function(t,e,n){if(!this._events)return!1;var i=this._events[t]||[];if(!e)return!!i.length;n===this&&(n=void 0);for(var o=0,r=i.length;o<r;o++)if(i[o].fn===e&&i[o].ctx===n)return o;return!1},once:function(t,e,n){if("object"==typeof t)for(var i in t)this._on(i,t[i],e,!0);else for(var o=0,r=(t=h(t)).length;o<r;o++)this._on(t[o],e,n,!0);return this},addEventParent:function(t){return this._eventParents=this._eventParents||{},this._eventParents[a(t)]=t,this},removeEventParent:function(t){return this._eventParents&&delete this._eventParents[a(t)],this},_propagateEvent:function(t){for(var e in this._eventParents)this._eventParents[e].fire(t.type,n({layer:t.target,propagatedFrom:t.target},t),!0)}};I.addEventListener=I.on,I.removeEventListener=I.clearAllEventListeners=I.off,I.addOneTimeEventListener=I.once,I.fireEvent=I.fire,I.hasEventListeners=I.listens;var z=S.extend(I);function M(t,e,n){this.x=n?Math.round(t):t,this.y=n?Math.round(e):e}var B=Math.trunc||function(t){return t>0?Math.floor(t):Math.ceil(t)};function P(t,e,n){return t instanceof M?t:v(t)?new M(t[0],t[1]):null==t?t:"object"==typeof t&&"x"in t&&"y"in t?new M(t.x,t.y):new M(t,e,n)}function N(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function O(t,e){return!t||t instanceof N?t:new N(t,e)}function F(t,e){if(t)for(var n=e?[t,e]:t,i=0,o=n.length;i<o;i++)this.extend(n[i])}function R(t,e){return t instanceof F?t:new F(t,e)}function j(t,e,n){if(isNaN(t)||isNaN(e))throw new Error("Invalid LatLng object: ("+t+", "+e+")");this.lat=+t,this.lng=+e,void 0!==n&&(this.alt=+n)}function V(t,e,n){return t instanceof j?t:v(t)&&"object"!=typeof t[0]?3===t.length?new j(t[0],t[1],t[2]):2===t.length?new j(t[0],t[1]):null:null==t?t:"object"==typeof t&&"lat"in t?new j(t.lat,"lng"in t?t.lng:t.lon,t.alt):void 0===e?null:new j(t,e,n)}M.prototype={clone:function(){return new M(this.x,this.y)},add:function(t){return this.clone()._add(P(t))},_add:function(t){return this.x+=t.x,this.y+=t.y,this},subtract:function(t){return this.clone()._subtract(P(t))},_subtract:function(t){return this.x-=t.x,this.y-=t.y,this},divideBy:function(t){return this.clone()._divideBy(t)},_divideBy:function(t){return this.x/=t,this.y/=t,this},multiplyBy:function(t){return this.clone()._multiplyBy(t)},_multiplyBy:function(t){return this.x*=t,this.y*=t,this},scaleBy:function(t){return new M(this.x*t.x,this.y*t.y)},unscaleBy:function(t){return new M(this.x/t.x,this.y/t.y)},round:function(){return this.clone()._round()},_round:function(){return this.x=Math.round(this.x),this.y=Math.round(this.y),this},floor:function(){return this.clone()._floor()},_floor:function(){return this.x=Math.floor(this.x),this.y=Math.floor(this.y),this},ceil:function(){return this.clone()._ceil()},_ceil:function(){return this.x=Math.ceil(this.x),this.y=Math.ceil(this.y),this},trunc:function(){return this.clone()._trunc()},_trunc:function(){return this.x=B(this.x),this.y=B(this.y),this},distanceTo:function(t){var e=(t=P(t)).x-this.x,n=t.y-this.y;return Math.sqrt(e*e+n*n)},equals:function(t){return(t=P(t)).x===this.x&&t.y===this.y},contains:function(t){return t=P(t),Math.abs(t.x)<=Math.abs(this.x)&&Math.abs(t.y)<=Math.abs(this.y)},toString:function(){return"Point("+u(this.x)+", "+u(this.y)+")"}},N.prototype={extend:function(t){var e,n;if(!t)return this;if(t instanceof M||"number"==typeof t[0]||"x"in t)e=n=P(t);else if(e=(t=O(t)).min,n=t.max,!e||!n)return this;return this.min||this.max?(this.min.x=Math.min(e.x,this.min.x),this.max.x=Math.max(n.x,this.max.x),this.min.y=Math.min(e.y,this.min.y),this.max.y=Math.max(n.y,this.max.y)):(this.min=e.clone(),this.max=n.clone()),this},getCenter:function(t){return P((this.min.x+this.max.x)/2,(this.min.y+this.max.y)/2,t)},getBottomLeft:function(){return P(this.min.x,this.max.y)},getTopRight:function(){return P(this.max.x,this.min.y)},getTopLeft:function(){return this.min},getBottomRight:function(){return this.max},getSize:function(){return this.max.subtract(this.min)},contains:function(t){var e,n;return(t="number"==typeof t[0]||t instanceof M?P(t):O(t))instanceof N?(e=t.min,n=t.max):e=n=t,e.x>=this.min.x&&n.x<=this.max.x&&e.y>=this.min.y&&n.y<=this.max.y},intersects:function(t){t=O(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>=e.x&&i.x<=n.x,a=o.y>=e.y&&i.y<=n.y;return r&&a},overlaps:function(t){t=O(t);var e=this.min,n=this.max,i=t.min,o=t.max,r=o.x>e.x&&i.x<n.x,a=o.y>e.y&&i.y<n.y;return r&&a},isValid:function(){return!(!this.min||!this.max)},pad:function(t){var e=this.min,n=this.max,i=Math.abs(e.x-n.x)*t,o=Math.abs(e.y-n.y)*t;return O(P(e.x-i,e.y-o),P(n.x+i,n.y+o))},equals:function(t){return!!t&&(t=O(t),this.min.equals(t.getTopLeft())&&this.max.equals(t.getBottomRight()))}},F.prototype={extend:function(t){var e,n,i=this._southWest,o=this._northEast;if(t instanceof j)e=t,n=t;else{if(!(t instanceof F))return t?this.extend(V(t)||R(t)):this;if(e=t._southWest,n=t._northEast,!e||!n)return this}return i||o?(i.lat=Math.min(e.lat,i.lat),i.lng=Math.min(e.lng,i.lng),o.lat=Math.max(n.lat,o.lat),o.lng=Math.max(n.lng,o.lng)):(this._southWest=new j(e.lat,e.lng),this._northEast=new j(n.lat,n.lng)),this},pad:function(t){var e=this._southWest,n=this._northEast,i=Math.abs(e.lat-n.lat)*t,o=Math.abs(e.lng-n.lng)*t;return new F(new j(e.lat-i,e.lng-o),new j(n.lat+i,n.lng+o))},getCenter:function(){return new j((this._southWest.lat+this._northEast.lat)/2,(this._southWest.lng+this._northEast.lng)/2)},getSouthWest:function(){return this._southWest},getNorthEast:function(){return this._northEast},getNorthWest:function(){return new j(this.getNorth(),this.getWest())},getSouthEast:function(){return new j(this.getSouth(),this.getEast())},getWest:function(){return this._southWest.lng},getSouth:function(){return this._southWest.lat}
vendor: 2,435 bytes, line 2
2,getEast:function(){return this._northEast.lng},getNorth:function(){return this._northEast.lat},contains:function(t){t="number"==typeof t[0]||t instanceof j||"lat"in t?V(t):R(t);var e,n,i=this._southWest,o=this._northEast;return t instanceof F?(e=t.getSouthWest(),n=t.getNorthEast()):e=n=t,e.lat>=i.lat&&n.lat<=o.lat&&e.lng>=i.lng&&n.lng<=o.lng},intersects:function(t){t=R(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>=e.lat&&i.lat<=n.lat,a=o.lng>=e.lng&&i.lng<=n.lng;return r&&a},overlaps:function(t){t=R(t);var e=this._southWest,n=this._northEast,i=t.getSouthWest(),o=t.getNorthEast(),r=o.lat>e.lat&&i.lat<n.lat,a=o.lng>e.lng&&i.lng<n.lng;return r&&a},toBBoxString:function(){return[this.getWest(),this.getSouth(),this.getEast(),this.getNorth()].join(",")},equals:function(t,e){return!!t&&(t=R(t),this._southWest.equals(t.getSouthWest(),e)&&this._northEast.equals(t.getNorthEast(),e))},isValid:function(){return!(!this._southWest||!this._northEast)}},j.prototype={equals:function(t,e){return!!t&&(t=V(t),Math.max(Math.abs(this.lat-t.lat),Math.abs(this.lng-t.lng))<=(void 0===e?1e-9:e))},toString:function(t){return"LatLng("+u(this.lat,t)+", "+u(this.lng,t)+")"},distanceTo:function(t){return Z.distance(this,V(t))},wrap:function(){return Z.wrapLatLng(this)},toBounds:function(t){var e=180*t/40075017,n=e/Math.cos(Math.PI/180*this.lat);return R([this.lat-e,this.lng-n],[this.lat+e,this.lng+n])},clone:function(){return new j(this.lat,this.lng,this.alt)}};var H,U={latLngToPoint:function(t,e){var n=this.projection.project(t),i=this.scale(e);return this.transformation._transform(n,i)},pointToLatLng:function(t,e){var n=this.scale(e),i=this.transformation.untransform(t,n);return this.projection.unproject(i)},project:function(t){return this.projection.project(t)},unproject:function(t){return this.projection.unproject(t)},scale:function(t){return 256*Math.pow(2,t)},zoom:function(t){return Math.log(t/256)/Math.LN2},getProjectedBounds:function(t){if(this.infinite)return null;var e=this.projection.bounds,n=this.scale(t);return new N(this.transformation.transform(e.min,n),this.transformation.transform(e.max,n))},infinite:!1,wrapLatLng:function(t){var e=this.wrapLng?l(t.lng,this.wrapLng,!0):t.lng;return new j(this.wrapLat?l(t.lat,this.wrapLat,!0):t.lat,e,t.alt)},wrapLatLngBounds:function(t){var e=t.getCenter(),n=this.wrapLatLng(e),i=e.lat-n.lat,o=e.lng-n.lng;if(0===i&&0===o)return t;
vendor: 28,678 bytes, line 2
2var r=t.getSouthWest(),a=t.getNorthEast();return new F(new j(r.lat-i,r.lng-o),new j(a.lat-i,a.lng-o))}},Z=n({},U,{wrapLng:[-180,180],R:6371e3,distance:function(t,e){var n=Math.PI/180,i=t.lat*n,o=e.lat*n,r=Math.sin((e.lat-t.lat)*n/2),a=Math.sin((e.lng-t.lng)*n/2),s=r*r+Math.cos(i)*Math.cos(o)*a*a,l=2*Math.atan2(Math.sqrt(s),Math.sqrt(1-s));return this.R*l}}),q=6378137,W={R:q,MAX_LATITUDE:85.0511287798,project:function(t){var e=Math.PI/180,n=this.MAX_LATITUDE,i=Math.max(Math.min(n,t.lat),-n),o=Math.sin(i*e);return new M(this.R*t.lng*e,this.R*Math.log((1+o)/(1-o))/2)},unproject:function(t){var e=180/Math.PI;return new j((2*Math.atan(Math.exp(t.y/this.R))-Math.PI/2)*e,t.x*e/this.R)},bounds:(H=q*Math.PI,new N([-H,-H],[H,H]))};function G(t,e,n,i){if(v(t))return this._a=t[0],this._b=t[1],this._c=t[2],void(this._d=t[3]);this._a=t,this._b=e,this._c=n,this._d=i}function $(t,e,n,i){return new G(t,e,n,i)}G.prototype={transform:function(t,e){return this._transform(t.clone(),e)},_transform:function(t,e){return e=e||1,t.x=e*(this._a*t.x+this._b),t.y=e*(this._c*t.y+this._d),t},untransform:function(t,e){return e=e||1,new M((t.x/e-this._b)/this._a,(t.y/e-this._d)/this._c)}};var Y=n({},Z,{code:"EPSG:3857",projection:W,transformation:function(){var t=.5/(Math.PI*W.R);return $(t,.5,-t,.5)}()}),K=n({},Y,{code:"EPSG:900913"});function Q(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function J(t,e){var n,i,o,r,a,s,l="";for(n=0,o=t.length;n<o;n++){for(i=0,r=(a=t[n]).length;i<r;i++)l+=(i?"L":"M")+(s=a[i]).x+" "+s.y;l+=e?Ft.svg?"z":"x":""}return l||"M0 0"}var X,tt=document.documentElement.style,et="ActiveXObject"in window,nt=et&&!document.addEventListener,it="msLaunchUri"in navigator&&!("documentMode"in document),ot=Ot("webkit"),rt=Ot("android"),at=Ot("android 2")||Ot("android 3"),st=parseInt(/WebKit\/([0-9]+)|$/.exec(navigator.userAgent)[1],10),lt=rt&&Ot("Google")&&st<537&&!("AudioNode"in window),ct=!!window.opera,ut=!it&&Ot("chrome"),dt=Ot("gecko")&&!ot&&!ct&&!et,ht=!ut&&Ot("safari"),ft=Ot("phantom"),pt="OTransition"in tt,mt=0===navigator.platform.indexOf("Win"),gt=et&&"transition"in tt,vt="WebKitCSSMatrix"in window&&"m11"in new window.WebKitCSSMatrix&&!at,kt="MozPerspective"in tt,bt=!window.L_DISABLE_3D&&(gt||vt||kt)&&!pt&&!ft,yt="undefined"!=typeof orientation||Ot("mobile"),_t=yt&&ot,wt=yt&&vt,Ct=!window.PointerEvent&&window.MSPointerEvent,At=!(!window.PointerEvent&&!Ct),xt="ontouchstart"in window||!!window.TouchEvent,Dt=!window.L_NO_TOUCH&&(xt||At),Et=yt&&ct,St=yt&&dt,Tt=(window.devicePixelRatio||window.screen.deviceXDPI/window.screen.logicalXDPI)>1,It=function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("testPassiveEventSupport",c,e),window.removeEventListener("testPassiveEventSupport",c,e)}catch(t){}return t}(),zt=!!document.createElement("canvas").getContext,Mt=!(!document.createElementNS||!Q("svg").createSVGRect),Bt=!!Mt&&((X=document.createElement("div")).innerHTML="<svg/>","http://www.w3.org/2000/svg"===(X.firstChild&&X.firstChild.namespaceURI)),Pt=!Mt&&function(){try{var t=document.createElement("div");t.innerHTML='<v:shape adj="1"/>';var e=t.firstChild;return e.style.behavior="url(#default#VML)",e&&"object"==typeof e.adj}catch(t){return!1}}(),Lt=0===navigator.platform.indexOf("Mac"),Nt=0===navigator.platform.indexOf("Linux");function Ot(t){return navigator.userAgent.toLowerCase().indexOf(t)>=0}var Ft={ie:et,ielt9:nt,edge:it,webkit:ot,android:rt,android23:at,androidStock:lt,opera:ct,chrome:ut,gecko:dt,safari:ht,phantom:ft,opera12:pt,win:mt,ie3d:gt,webkit3d:vt,gecko3d:kt,any3d:bt,mobile:yt,mobileWebkit:_t,mobileWebkit3d:wt,msPointer:Ct,pointer:At,touch:Dt,touchNative:xt,mobileOpera:Et,mobileGecko:St,retina:Tt,passiveEvents:It,canvas:zt,svg:Mt,vml:Pt,inlineSvg:Bt,mac:Lt,linux:Nt},Rt=Ft.msPointer?"MSPointerDown":"pointerdown",jt=Ft.msPointer?"MSPointerMove":"pointermove",Vt=Ft.msPointer?"MSPointerUp":"pointerup",Ht=Ft.msPointer?"MSPointerCancel":"pointercancel",Ut={touchstart:Rt,touchmove:jt,touchend:Vt,touchcancel:Ht},Zt={touchstart:te,touchmove:Xt,touchend:Xt,touchcancel:Xt},qt={},Wt=!1;function Gt(t,e,n){return"touchstart"===e&&Jt(),Zt[e]?(n=Zt[e].bind(this,n),t.addEventListener(Ut[e],n,!1),n):(console.warn("wrong event specified:",e),c)}function $t(t,e,n){Ut[e]?t.removeEventListener(Ut[e],n,!1):console.warn("wrong event specified:",e)}function Yt(t){qt[t.pointerId]=t}function Kt(t){qt[t.pointerId]&&(qt[t.pointerId]=t)}function Qt(t){delete qt[t.pointerId]}function Jt(){Wt||(document.addEventListener(Rt,Yt,!0),document.addEventListener(jt,Kt,!0),document.addEventListener(Vt,Qt,!0),document.addEventListener(Ht,Qt,!0),Wt=!0)}function Xt(t,e){if(e.pointerType!==(e.MSPOINTER_TYPE_MOUSE||"mouse")){for(var n in e.touches=[],qt)e.touches.push(qt[n]);e.changedTouches=[e],t(e)}}function te(t,e){e.MSPOINTER_TYPE_TOUCH&&e.pointerType===e.MSPOINTER_TYPE_TOUCH&&Ye(e),Xt(t,e)}function ee(t){var e,n,i={};for(n in t)e=t[n],i[n]=e&&e.bind?e.bind(t):e;return t=i,i.type="dblclick",i.detail=2,i.isTrusted=!1,i._simulated=!0,i}var ne=200;function ie(t,e){t.addEventListener("dblclick",e);var n,i=0;function o(t){if(1===t.detail){if("mouse"!==t.pointerType&&(!t.sourceCapabilities||t.sourceCapabilities.firesTouchEvents)){var o=Qe(t);if(!o.some((function(t){return t instanceof HTMLLabelElement&&t.attributes.for}))||o.some((function(t){return t instanceof HTMLInputElement||t instanceof HTMLSelectElement}))){var r=Date.now();r-i<=ne?2==++n&&e(ee(t)):n=1,i=r}}}else n=t.detail}return t.addEventListener("click",o),{dblclick:e,simDblclick:o}}function oe(t,e){t.removeEventListener("dblclick",e.dblclick),t.removeEventListener("click",e.simDblclick)}var re,ae,se,le,ce,ue=Ee(["transform","webkitTransform","OTransform","MozTransform","msTransform"]),de=Ee(["webkitTransition","transition","OTransition","MozTransition","msTransition"]),he="webkitTransition"===de||"OTransition"===de?de+"End":"transitionend";function fe(t){return"string"==typeof t?document.getElementById(t):t}function pe(t,e){var n=t.style[e]||t.currentStyle&&t.currentStyle[e];if((!n||"auto"===n)&&document.defaultView){var i=document.defaultView.getComputedStyle(t,null);n=i?i[e]:null}return"auto"===n?null:n}function me(t,e,n){var i=document.createElement(t);return i.className=e||"",n&&n.appendChild(i),i}function ge(t){var e=t.parentNode;e&&e.removeChild(t)}function ve(t){for(;t.firstChild;)t.removeChild(t.firstChild)}function ke(t){var e=t.parentNode;e&&e.lastChild!==t&&e.appendChild(t)}function be(t){var e=t.parentNode;e&&e.firstChild!==t&&e.insertBefore(t,e.firstChild)}function ye(t,e){if(void 0!==t.classList)return t.classList.contains(e);var n=Ae(t);return n.length>0&&new RegExp("(^|\\s)"+e+"(\\s|$)").test(n)}function _e(t,e){if(void 0!==t.classList)for(var n=h(e),i=0,o=n.length;i<o;i++)t.classList.add(n[i]);else if(!ye(t,e)){var r=Ae(t);Ce(t,(r?r+" ":"")+e)}}function we(t,e){void 0!==t.classList?t.classList.remove(e):Ce(t,d((" "+Ae(t)+" ").replace(" "+e+" "," ")))}function Ce(t,e){void 0===t.className.baseVal?t.className=e:t.className.baseVal=e}function Ae(t){return t.correspondingElement&&(t=t.correspondingElement),void 0===t.className.baseVal?t.className:t.className.baseVal}function xe(t,e){"opacity"in t.style?t.style.opacity=e:"filter"in t.style&&De(t,e)}function De(t,e){var n=!1,i="DXImageTransform.Microsoft.Alpha";try{n=t.filters.item(i)}catch(t){if(1===e)return}e=Math.round(100*e),n?(n.Enabled=100!==e,n.Opacity=e):t.style.filter+=" progid:"+i+"(opacity="+e+")"}function Ee(t){for(var e=document.documentElement.style,n=0;n<t.length;n++)if(t[n]in e)return t[n];return!1}function Se(t,e,n){var i=e||new M(0,0);t.style[ue]=(Ft.ie3d?"translate("+i.x+"px,"+i.y+"px)":"translate3d("+i.x+"px,"+i.y+"px,0)")+(n?" scale("+n+")":"")}function Te(t,e){t._leaflet_pos=e,Ft.any3d?Se(t,e):(t.style.left=e.x+"px",t.style.top=e.y+"px")}function Ie(t){return t._leaflet_pos||new M(0,0)}if("onselectstart"in document)re=function(){Re(window,"selectstart",Ye)},ae=function(){Ve(window,"selectstart",Ye)};else{var ze=Ee(["userSelect","WebkitUserSelect","OUserSelect","MozUserSelect","msUserSelect"]);re=function(){if(ze){var t=document.documentElement.style;se=t[ze],t[ze]="none"}},ae=function(){ze&&(document.documentElement.style[ze]=se,se=void 0)}}function Me(){Re(window,"dragstart",Ye)}function Be(){Ve(window,"dragstart",Ye)}function Pe(t){for(;-1===t.tabIndex;)t=t.parentNode;t.style&&(Le(),le=t,ce=t.style.outline,t.style.outline="none",Re(window,"keydown",Le))}function Le(){le&&(le.style.outline=ce,le=void 0,ce=void 0,Ve(window,"keydown",Le))}function Ne(t){do{t=t.parentNode}while(!(t.offsetWidth&&t.offsetHeight||t===document.body));return t}function Oe(t){var e=t.getBoundingClientRect();return{x:e.width/t.offsetWidth||1,y:e.height/t.offsetHeight||1,boundingClientRect:e}}var Fe={__proto__:null,TRANSFORM:ue,TRANSITION:de,TRANSITION_END:he,get:fe,getStyle:pe,create:me,remove:ge,empty:ve,toFront:ke,toBack:be,hasClass:ye,addClass:_e,removeClass:we,setClass:Ce,getClass:Ae,setOpacity:xe,testProp:Ee,setTransform:Se,setPosition:Te,getPosition:Ie,get disableTextSelection(){return re},get enableTextSelection(){return ae},disableImageDrag:Me,enableImageDrag:Be,preventOutline:Pe,restoreOutline:Le,getSizedParentNode:Ne,getScale:Oe};function Re(t,e,n,i){if(e&&"object"==typeof e)for(var o in e)Ze(t,o,e[o],n);else for(var r=0,a=(e=h(e)).length;r<a;r++)Ze(t,e[r],n,i);return this}var je="_leaflet_events";function Ve(t,e,n,i){if(1===arguments.length)He(t),delete t[je];else if(e&&"object"==typeof e)for(var o in e)qe(t,o,e[o],n);else if(e=h(e),2===arguments.length)He(t,(function(t){return-1!==k(e,t)}));else for(var r=0,a=e.length;r<a;r++)qe(t,e[r],n,i);return this}function He(t,e){for(var n in t[je]){var i=n.split(/\d/)[0];e&&!e(i)||qe(t,i,null,null,n)}}var Ue={mouseenter:"mouseover",mouseleave:"mouseout",wheel:!("onwheel"in window)&&"mousewheel"};function Ze(t,e,n,i){var o=e+a(n)+(i?"_"+a(i):"");if(t[je]&&t[je][o])return this;var r=function(e){return n.call(i||t,e||window.event)},s=r;!Ft.touchNative&&Ft.pointer&&0===e.indexOf("touch")?r=Gt(t,e,r):Ft.touch&&"dblclick"===e?r=ie(t,r):"addEventListener"in t?"touchstart"===e||"touchmove"===e||"wheel"===e||"mousewheel"===e?t.addEventListener(Ue[e]||e,r,!!Ft.passiveEvents&&{passive:!1}):"mouseenter"===e||"mouseleave"===e?(r=function(e){e=e||window.event,en(t,e)&&s(e)},t.addEventListener(Ue[e],r,!1)):t.addEventListener(e,s,!1):t.attachEvent("on"+e,r),t[je]=t[je]||{},t[je][o]=r}function qe(t,e,n,i,o){o=o||e+a(n)+(i?"_"+a(i):"");var r=t[je]&&t[je][o];if(!r)return this;!Ft.touchNative&&Ft.pointer&&0===e.indexOf("touch")?$t(t,e,r):Ft.touch&&"dblclick"===e?oe(t,r):"removeEventListener"in t?t.removeEventListener(Ue[e]||e,r,!1):t.detachEvent("on"+e,r),t[je][o]=null}function We(t){return t.stopPropagation?t.stopPropagation():t.originalEvent?t.originalEvent._stopped=!0:t.cancelBubble=!0,this}function Ge(t){return Ze(t,"wheel",We),this}function $e(t){return Re(t,"mousedown touchstart dblclick contextmenu",We),t._leaflet_disable_click=!0,this}function Ye(t){return t.preventDefault?t.preventDefault():t.returnValue=!1,this}function Ke(t){return Ye(t),We(t),this}function Qe(t){if(t.composedPath)return t.composedPath();for(var e=[],n=t.target;n;)e.push(n),n=n.parentNode;return e}function Je(t,e){if(!e)return new M(t.clientX,t.clientY);var n=Oe(e),i=n.boundingClientRect;return new M((t.clientX-i.left)/n.x-e.clientLeft,(t.clientY-i.top)/n.y-e.clientTop)}var Xe=Ft.linux&&Ft.chrome?window.devicePixelRatio:Ft.mac?3*window.devicePixelRatio:window.devicePixelRatio>0?2*window.devicePixelRatio:1;function tn(t){return Ft.edge?t.wheelDeltaY/2:t.deltaY&&0===t.deltaMode?-t.deltaY/Xe:t.deltaY&&1===t.deltaMode?20*-t.deltaY:t.deltaY&&2===t.deltaMode?60*-t.deltaY:t.deltaX||t.deltaZ?0:t.wheelDelta?(t.wheelDeltaY||t.wheelDelta)/2:t.detail&&Math.abs(t.detail)<32765?20*-t.detail:t.detail?t.detail/-32765*60:0}function en(t,e){var n=e.relatedTarget;if(!n)return!0;try{for(;n&&n!==t;)n=n.parentNode}catch(t){return!1}return n!==t}var nn={__proto__:null,on:Re,off:Ve,stopPropagation:We,disableScrollPropagation:Ge,disableClickPropagation:$e,preventDefault:Ye,stop:Ke,getPropagationPath:Qe,getMousePosition:Je,getWheelDelta:tn,isExternalTarget:en,addListener:Re,removeListener:Ve},on=z.extend({run:function(t,e,n,i){this.stop(),this._el=t,this._inProgress=!0,this._duration=n||.25,this._easeOutPower=1/Math.max(i||.5,.2),this._startPos=Ie(t),this._offset=e.subtract(this._startPos),this._startTime=+new Date,this.fire("start"),this._animate()},stop:function(){this._inProgress&&(this._step(!0),this._complete())},_animate:function(){this._animId=x(this._animate,this),this._step()},_step:function(t){var e=+new Date-this._startTime,n=1e3*this._duration;e<n?this._runFrame(this._easeOut(e/n),t):(this._runFrame(1),this._complete())},_runFrame:function(t,e){var n=this._startPos.add(this._offset.multiplyBy(t));e&&n._round(),Te(this._el,n),this.fire("step")},_complete:function(){D(this._animId),this._inProgress=!1,this.fire("end")},_easeOut:function(t){return 1-Math.pow(1-t,this._easeOutPower)}}),rn=z.extend({options:{crs:Y,center:void 0,zoom:void 0,minZoom:void 0,maxZoom:void 0,layers:[],maxBounds:void 0,renderer:void 0,zoomAnimation:!0,zoomAnimationThreshold:4,fadeAnimation:!0,markerZoomAnimation:!0,transform3DLimit:8388608,zoomSnap:1,zoomDelta:1,trackResize:!0},initialize:function(t,e){e=f(this,e),this._handlers=[],this._layers={},this._zoomBoundLayers={},this._sizeChanged=!0,this._initContainer(t),this._initLayout(),this._onResize=o(this._onResize,this),this._initEvents(),e.maxBounds&&this.setMaxBounds(e.maxBounds),void 0!==e.zoom&&(this._zoom=this._limitZoom(e.zoom)),e.center&&void 0!==e.zoom&&this.setView(V(e.center),e.zoom,{reset:!0}),this.callInitHooks(),this._zoomAnimated=de&&Ft.any3d&&!Ft.mobileOpera&&this.options.zoomAnimation,this._zoomAnimated&&(this._createAnimProxy(),Re(this._proxy,he,this._catchTransitionEnd,this)),this._addLayers(this.options.layers)},setView:function(t,e,i){return e=void 0===e?this._zoom:this._limitZoom(e),t=this._limitCenter(V(t),e,this.options.maxBounds),i=i||{},this._stop(),this._loaded&&!i.reset&&!0!==i&&(void 0!==i.animate&&(i.zoom=n({animate:i.animate},i.zoom),i.pan=n({animate:i.animate,duration:i.duration},i.pan)),this._zoom!==e?this._tryAnimatedZoom&&this._tryAnimatedZoom(t,e,i.zoom):this._tryAnimatedPan(t,i.pan))?(clearTimeout(this._sizeTimer),this):(this._resetView(t,e,i.pan&&i.pan.noMoveStart),this)},setZoom:function(t,e){return this._loaded?this.setView(this.getCenter(),t,{zoom:e}):(this._zoom=t,this)},zoomIn:function(t,e){return t=t||(Ft.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom+t,e)},zoomOut:function(t,e){return t=t||(Ft.any3d?this.options.zoomDelta:1),this.setZoom(this._zoom-t,e)},setZoomAround:function(t,e,n){var i=this.getZoomScale(e),o=this.getSize().divideBy(2),r=(t instanceof M?t:this.latLngToContainerPoint(t)).subtract(o).multiplyBy(1-1/i),a=this.containerPointToLatLng(o.add(r));return this.setView(a,e,{zoom:n})},_getBoundsCenterZoom:function(t,e){e=e||{},t=t.getBounds?t.getBounds():R(t);var n=P(e.paddingTopLeft||e.padding||[0,0]),i=P(e.paddingBottomRight||e.padding||[0,0]),o=this.getBoundsZoom(t,!1,n.add(i));if((o="number"==typeof e.maxZoom?Math.min(e.maxZoom,o):o)===1/0)return{center:t.getCenter(),zoom:o};var r=i.subtract(n).divideBy(2),a=this.project(t.getSouthWest(),o),s=this.project(t.getNorthEast(),o);return{center:this.unproject(a.add(s).divideBy(2).add(r),o),zoom:o}},fitBounds:function(t,e){if(!(t=R(t)).isValid())throw new Error("Bounds are not valid.");var n=this._getBoundsCenterZoom(t,e);return this.setView(n.center,n.zoom,e)},fitWorld:function(t){return this.fitBounds([[-90,-180],[90,180]],t)},panTo:function(t,e){return this.setView(t,this._zoom,{pan:e})},panBy:function(t,e){if(e=e||{},!(t=P(t).round()).x&&!t.y)return this.fire("moveend");if(!0!==e.animate&&!this.getSize().contains(t))return this._resetView(this.unproject(this.project(this.getCenter()).add(t)),this.getZoom()),this;if(this._panAnim||(this._panAnim=new on,this._panAnim.on({step:this._onPanTransitionStep,end:this._onPanTransitionEnd},this)),e.noMoveStart||this.fire("movestart"),!1!==e.animate){_e(this._mapPane,"leaflet-pan-anim");var n=this._getMapPanePos().subtract(t).round();this._panAnim.run(this._mapPane,n,e.duration||.25,e.easeLinearity)}else this._rawPanBy(t),this.fire("move").fire("moveend");return this},flyTo:function(t,e,n){if(!1===(n=n||{}).animate||!Ft.any3d)return this.setView(t,e,n);this._stop();var i=this.project(this.getCenter()),o=this.project(t),r=this.getSize(),a=this._zoom;t=V(t),e=void 0===e?a:e;var s=Math.max(r.x,r.y),l=s*this.getZoomScale(a,e),c=o.distanceTo(i)||1,u=1.42,d=u*u;function h(t){var e=(l*l-s*s+(t?-1:1)*d*d*c*c)/(2*(t?l:s)*d*c),n=Math.sqrt(e*e+1)-e;return n<1e-9?-18:Math.log(n)}function f(t){return(Math.exp(t)-Math.exp(-t))/2}function p(t){return(Math.exp(t)+Math.exp(-t))/2}function m(t){return f(t)/p(t)}var g=h(0);function v(t){return s*(p(g)/p(g+u*t))}function k(t){return s*(p(g)*m(g+u*t)-f(g))/d}function b(t){return 1-Math.pow(1-t,1.5)}var y=Date.now(),_=(h(1)-g)/u,w=n.duration?1e3*n.duration:1e3*_*.8;function C(){var n=(Date.now()-y)/w,r=b(n)*_;n<=1?(this._flyToFrame=x(C,this),this._move(this.unproject(i.add(o.subtract(i).multiplyBy(k(r)/c)),a),this.getScaleZoom(s/v(r),a),{flyTo:!0})):this._move(t,e)._moveEnd(!0)}return this._moveStart(!0,n.noMoveStart),C.call(this),this},flyToBounds:function(t,e){var n=this._getBoundsCenterZoom(t,e);return this.flyTo(n.center,n.zoom,e)},setMaxBounds:function(t){return t=R(t),this.listens("moveend",this._panInsideMaxBounds)&&this.off("moveend",this._panInsideMaxBounds),t.isValid()?(this.options.maxBounds=t,this._loaded&&this._panInsideMaxBounds(),this.on("moveend",this._panInsideMaxBounds)):(this.options.maxBounds=null,this)},setMinZoom:function(t){var e=this.options.minZoom;return this.options.minZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()<this.options.minZoom)?this.setZoom(t):this},setMaxZoom:function(t){var e=this.options.maxZoom;return this.options.maxZoom=t,this._loaded&&e!==t&&(this.fire("zoomlevelschange"),this.getZoom()>this.options.maxZoom)?this.setZoom(t):this},panInsideBounds:function(t,e){this._enforcingBounds=!0;var n=this.getCenter(),i=this._limitCenter(n,this._zoom,R(t));return n.equals(i)||this.panTo(i,e),this._enforcingBounds=!1,this},panInside:function(t,e){var n=P((e=e||{}).paddingTopLeft||e.padding||[0,0]),i=P(e.paddingBottomRight||e.padding||[0,0]),o=this.project(this.getCenter()),r=this.project(t),a=this.getPixelBounds(),s=O([a.min.add(n),a.max.subtract(i)]),l=s.getSize();if(!s.contains(r)){this._enforcingBounds=!0;var c=r.subtract(s.getCenter()),u=s.extend(r).getSize().subtract(l);o.x+=c.x<0?-u.x:u.x,o.y+=c.y<0?-u.y:u.y,this.panTo(this.unproject(o),e),this._enforcingBounds=!1}return this},invalidateSize:function(t){if(!this._loaded)return this;t=n({animate:!1,pan:!0},!0===t?{animate:!0}:t);var e=this.getSize();this._sizeChanged=!0,this._lastCenter=null;var i=this.getSize(),r=e.divideBy(2).round(),a=i.divideBy(2).round(),s=r.subtract(a);return s.x||s.y?(t.animate&&t.pan?this.panBy(s):(t.pan&&this._rawPanBy(s),this.fire("move"),t.debounceMoveend?(clearTimeout(this._sizeTimer),this._sizeTimer=setTimeout(o(this.fire,this,"moveend"),200)):this.fire("moveend")),this.fire("resize",{oldSize:e,newSize:i})):this},stop:function(){return this.setZoom(this._limitZoom(this._zoom)),this.options.zoomSnap||this.fire("viewreset"),this._stop()},locate:function(t){if(t=this._locateOptions=n({timeout:1e4,watch:!1},t),!("geolocation"in navigator))return this._handleGeolocationError({code:0,message:"Geolocation not supported."}),this;var e=o(this._handleGeolocationResponse,this),i=o(this._handleGeolocationError,this);return t.watch?this._locationWatchId=navigator.geolocation.watchPosition(e,i,t):navigator.geolocation.getCurrentPosition(e,i,t),this},stopLocate:function(){return navigator.geolocation&&navigator.geolocation.clearWatch&&navigator.geolocation.clearWatch(this._locationWatchId),this._locateOptions&&(this._locateOptions.setView=!1),this},_handleGeolocationError:function(t){if(this._container._leaflet_id){var e=t.code,n=t.message||(1===e?"permission denied":2===e?"position unavailable":"timeout");this._locateOptions.setView&&!this._loaded&&this.fitWorld(),this.fire("locationerror",{code:e,message:"Geolocation error: "+n+"."})}},_handleGeolocationResponse:function(t){if(this._container._leaflet_id){var e=new j(t.coords.latitude,t.coords.longitude),n=e.toBounds(2*t.coords.accuracy),i=this._locateOptions;if(i.setView){var o=this.getBoundsZoom(n);this.setView(e,i.maxZoom?Math.min(o,i.maxZoom):o)}var r={latlng:e,bounds:n,timestamp:t.timestamp};for(var a in t.coords)"number"==typeof t.coords[a]&&(r[a]=t.coords[a]);this.fire("locationfound",r)}},addHandler:function(t,e){if(!e)return this;var n=this[t]=new e(this);return this._handlers.push(n),this.options[t]&&n.enable(),this},remove:function(){if(this._initEvents(!0),this.options.maxBounds&&this.off("moveend",this._panInsideMaxBounds),this._containerId!==this._container._leaflet_id)throw new Error("Map container is being reused by another instance");try{delete this._container._leaflet_id,delete this._containerId}catch(t){this._container._leaflet_id=void 0,this._containerId=void 0}var t;for(t in void 0!==this._locationWatchId&&this.stopLocate(),this._stop(),ge(this._mapPane),this._clearControlPos&&this._clearControlPos(),this._resizeRequest&&(D(this._resizeRequest),this._resizeRequest=null),this._clearHandlers(),this._loaded&&this.fire("unload"),this._layers)this._layers[t].remove();for(t in this._panes)ge(this._panes[t]);return this._layers=[],this._panes=[],delete this._mapPane,delete this._renderer,this},createPane:function(t,e){var n=me("div","leaflet-pane"+(t?" leaflet-"+t.replace("Pane","")+"-pane":""),e||this._mapPane);return t&&(this._panes[t]=n),n},getCenter:function(){return this._checkIfLoaded(),this._lastCenter&&!this._moved()?this._lastCenter.clone():this.layerPointToLatLng(this._getCenterLayerPoint())},getZoom:function(){return this._zoom},getBounds:function(){var t=this.getPixelBounds();return new F(this.unproject(t.getBottomLeft()),this.unproject(t.getTopRight()))},getMinZoom:function(){return void 0===this.options.minZoom?this._layersMinZoom||0:this.options.minZoom},getMaxZoom:function(){return void 0===this.options.maxZoom?void 0===this._layersMaxZoom?1/0:this._layersMaxZoom:this.options.maxZoom},getBoundsZoom:function(t,e,n){t=R(t),n=P(n||[0,0]);var i=this.getZoom()||0,o=this.getMinZoom(),r=this.getMaxZoom(),a=t.getNorthWest(),s=t.getSouthEast(),l=this.getSize().subtract(n),c=O(this.project(s,i),this.project(a,i)).getSize(),u=Ft.any3d?this.options.zoomSnap:1,d=l.x/c.x,h=l.y/c.y,f=e?Math.max(d,h):Math.min(d,h);return i=this.getScaleZoom(f,i),u&&(i=Math.round(i/(u/100))*(u/100),i=e?Math.ceil(i/u)*u:Math.floor(i/u)*u),Math.max(o,Math.min(r,i))},getSize:function(){return this._size&&!this._sizeChanged||(this._size=new M(this._container.clientWidth||0,this._container.clientHeight||0),this._sizeChanged=!1),this._size.clone()},getPixelBounds:function(t,e){var n=this._getTopLeftPoint(t,e);return new N(n,n.add(this.getSize()))},getPixelOrigin:function(){return this._checkIfLoaded(),this._pixelOrigin},getPixelWorldBounds:function(t){return this.options.crs.getProjectedBounds(void 0===t?this.getZoom():t)},getPane:function(t){return"string"==typeof t?this._panes[t]:t},getPanes:function(){return this._panes},getContainer:function(){return this._container},getZoomScale:function(t,e){var n=this.options.crs;return e=void 0===e?this._zoom:e,n.scale(t)/n.scale(e)},getScaleZoom:function(t,e){var n=this.options.crs;e=void 0===e?this._zoom:e;var i=n.zoom(t*n.scale(e));return isNaN(i)?1/0:i},project:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.latLngToPoint(V(t),e)},unproject:function(t,e){return e=void 0===e?this._zoom:e,this.options.crs.pointToLatLng(P(t),e)},layerPointToLatLng:function(t){var e=P(t).add(this.getPixelOrigin());return this.unproject(e)},latLngToLayerPoint:function(t){return this.project(V(t))._round()._subtract(this.getPixelOrigin())},wrapLatLng:function(t){return this.options.crs.wrapLatLng(V(t))},wrapLatLngBounds:function(t){return this.options.crs.wrapLatLngBounds(R(t))},distance:function(t,e){return this.options.crs.distance(V(t),V(e))},containerPointToLayerPoint:function(t){return P(t).subtract(this._getMapPanePos())},layerPointToContainerPoint:function(t){return P(t).add(this._getMapPanePos())},containerPointToLatLng:function(t){var e=this.containerPointToLayerPoint(P(t));return this.layerPointToLatLng(e)},latLngToContainerPoint:function(t){return this.layerPointToContainerPoint(this.latLngToLayerPoint(V(t)))},mouseEventToContainerPoint:function(t){return Je(t,this._container)},mouseEventToLayerPoint:function(t){return this.containerPointToLayerPoint(this.mouseEventToContainerPoint(t))},mouseEventToLatLng:function(t){return this.layerPointToLatLng(this.mouseEventToLayerPoint(t))},_initContainer:function(t){var e=this._container=fe(t);if(!e)throw new Error("Map container not found.");if(e._leaflet_id)throw new Error("Map container is already initialized.");Re(e,"scroll",this._onScroll,this),this._containerId=a(e)},_initLayout:function(){var t=this._container;this._fadeAnimated=this.options.fadeAnimation&&Ft.any3d,_e(t,"leaflet-container"+(Ft.touch?" leaflet-touch":"")+(Ft.retina?" leaflet-retina":"")+(Ft.ielt9?" leaflet-oldie":"")+(Ft.safari?" leaflet-safari":"")+(this._fadeAnimated?" leaflet-fade-anim":""));var e=pe(t,"position");"absolute"!==e&&"relative"!==e&&"fixed"!==e&&"sticky"!==e&&(t.style.position="relative"),this._initPanes(),this._initControlPos&&this._initControlPos()},_initPanes:function(){var t=this._panes={};this._paneRenderers={},this._mapPane=this.createPane("mapPane",this._container),Te(this._mapPane,new M(0,0)),this.createPane("tilePane"),this.createPane("overlayPane"),this.createPane("shadowPane"),this.createPane("markerPane"),this.createPane("tooltipPane"),this.createPane("popupPane"),this.options.markerZoomAnimation||(_e(t.markerPane,"leaflet-zoom-hide"),_e(t.shadowPane,"leaflet-zoom-hide"))},_resetView:function(t,e,n){Te(this._mapPane,new M(0,0));var i=!this._loaded;this._loaded=!0,e=this._limitZoom(e),this.fire("viewprereset");var o=this._zoom!==e;this._moveStart(o,n)._move(t,e)._moveEnd(o),this.fire("viewreset"),i&&this.fire("load")},_moveStart:function(t,e){return t&&this.fire("zoomstart"),e||this.fire("movestart"),this},_move:function(t,e,n,i){void 0===e&&(e=this._zoom);var o=this._zoom!==e;return this._zoom=e,this._lastCenter=t,this._pixelOrigin=this._getNewPixelOrigin(t),i?n&&n.pinch&&this.fire("zoom",n):((o||n&&n.pinch)&&this.fire("zoom",n),this.fire("move",n)),this},_moveEnd:function(t){return t&&this.fire("zoomend"),this.fire("moveend")},_stop:function(){return D(this._flyToFrame),this._panAnim&&this._panAnim.stop(),this},_rawPanBy:function(t){Te(this._mapPane,this._getMapPanePos().subtract(t))},_getZoomSpan:function(){return this.getMaxZoom()-this.getMinZoom()},_panInsideMaxBounds:function(){this._enforcingBounds||this.panInsideBounds(this.options.maxBounds)},_checkIfLoaded:function(){if(!this._loaded)throw new Error("Set map center and zoom first.")},_initEvents:function(t){this._targets={},this._targets[a(this._container)]=this;var e=t?Ve:Re;e(this._container,"click dblclick mousedown mouseup mouseover mouseout mousemove contextmenu keypress keydown keyup",this._handleDOMEvent,this),this.options.trackResize&&e(window,"resize",this._onResize,this),Ft.any3d&&this.options.transform3DLimit&&(t?this.off:this.on).call(this,"moveend",this._onMoveEnd)},_onResize:function(){D(this._resizeRequest),this._resizeRequest=x((function(){this.invalidateSize({debounceMoveend:!0})}),this)},_onScroll:function(){this._container.scrollTop=0,this._container.scrollLeft=0},_onMoveEnd:function(){var t=this._getMapPanePos();Math.max(Math.abs(t.x),Math.abs(t.y))>=this.options.transform3DLimit&&this._resetView(this.getCenter(),this.getZoom())},_findEventTargets:function(t,e){for(var n,i=[],o="mouseout"===e||"mouseover"===e,r=t.target||t.srcElement,s=!1;r;){if((n=this._targets[a(r)])&&("click"===e||"preclick"===e)&&this._draggableMoved(n)){s=!0;break}if(n&&n.listens(e,!0)){if(o&&!en(r,t))break;if(i.push(n),o)break}if(r===this._container)break;r=r.parentNode}return i.length||s||o||!this.listens(e,!0)||(i=[this]),i},_isClickDisabled:function(t){for(;t&&t!==this._container;){if(t._leaflet_disable_click)return!0;t=t.parentNode}},_handleDOMEvent:function(t){var e=t.target||t.srcElement;if(!(!this._loaded||e._leaflet_disable_events||"click"===t.type&&this._isCl
vendor: 1,885 bytes, line 2
2ickDisabled(e))){var n=t.type;"mousedown"===n&&Pe(e),this._fireDOMEvent(t,n)}},_mouseEvents:["click","dblclick","mouseover","mouseout","contextmenu"],_fireDOMEvent:function(t,e,i){if("click"===t.type){var o=n({},t);o.type="preclick",this._fireDOMEvent(o,o.type,i)}var r=this._findEventTargets(t,e);if(i){for(var a=[],s=0;s<i.length;s++)i[s].listens(e,!0)&&a.push(i[s]);r=a.concat(r)}if(r.length){"contextmenu"===e&&Ye(t);var l=r[0],c={originalEvent:t};if("keypress"!==t.type&&"keydown"!==t.type&&"keyup"!==t.type){var u=l.getLatLng&&(!l._radius||l._radius<=10);c.containerPoint=u?this.latLngToContainerPoint(l.getLatLng()):this.mouseEventToContainerPoint(t),c.layerPoint=this.containerPointToLayerPoint(c.containerPoint),c.latlng=u?l.getLatLng():this.layerPointToLatLng(c.layerPoint)}for(s=0;s<r.length;s++)if(r[s].fire(e,c,!0),c.originalEvent._stopped||!1===r[s].options.bubblingMouseEvents&&-1!==k(this._mouseEvents,e))return}},_draggableMoved:function(t){return(t=t.dragging&&t.dragging.enabled()?t:this).dragging&&t.dragging.moved()||this.boxZoom&&this.boxZoom.moved()},_clearHandlers:function(){for(var t=0,e=this._handlers.length;t<e;t++)this._handlers[t].disable()},whenReady:function(t,e){return this._loaded?t.call(e||this,{target:this}):this.on("load",t,e),this},_getMapPanePos:function(){return Ie(this._mapPane)||new M(0,0)},_moved:function(){var t=this._getMapPanePos();return t&&!t.equals([0,0])},_getTopLeftPoint:function(t,e){return(t&&void 0!==e?this._getNewPixelOrigin(t,e):this.getPixelOrigin()).subtract(this._getMapPanePos())},_getNewPixelOrigin:function(t,e){var n=this.getSize()._divideBy(2);return this.project(t,e)._subtract(n)._add(this._getMapPanePos())._round()},_latLngToNewLayerPoint:function(t,e,n){var i=this._getNewPixelOrigin(n,e);return this.project(t,e)._subtract(i)},_latLngBoundsToNewLayerBounds:function(t,e,n){var i=this._getNewPixelOrigin(n,e);
vendor: 21,117 bytes, line 2
2return O([this.project(t.getSouthWest(),e)._subtract(i),this.project(t.getNorthWest(),e)._subtract(i),this.project(t.getSouthEast(),e)._subtract(i),this.project(t.getNorthEast(),e)._subtract(i)])},_getCenterLayerPoint:function(){return this.containerPointToLayerPoint(this.getSize()._divideBy(2))},_getCenterOffset:function(t){return this.latLngToLayerPoint(t).subtract(this._getCenterLayerPoint())},_limitCenter:function(t,e,n){if(!n)return t;var i=this.project(t,e),o=this.getSize().divideBy(2),r=new N(i.subtract(o),i.add(o)),a=this._getBoundsOffset(r,n,e);return Math.abs(a.x)<=1&&Math.abs(a.y)<=1?t:this.unproject(i.add(a),e)},_limitOffset:function(t,e){if(!e)return t;var n=this.getPixelBounds(),i=new N(n.min.add(t),n.max.add(t));return t.add(this._getBoundsOffset(i,e))},_getBoundsOffset:function(t,e,n){var i=O(this.project(e.getNorthEast(),n),this.project(e.getSouthWest(),n)),o=i.min.subtract(t.min),r=i.max.subtract(t.max);return new M(this._rebound(o.x,-r.x),this._rebound(o.y,-r.y))},_rebound:function(t,e){return t+e>0?Math.round(t-e)/2:Math.max(0,Math.ceil(t))-Math.max(0,Math.floor(e))},_limitZoom:function(t){var e=this.getMinZoom(),n=this.getMaxZoom(),i=Ft.any3d?this.options.zoomSnap:1;return i&&(t=Math.round(t/i)*i),Math.max(e,Math.min(n,t))},_onPanTransitionStep:function(){this.fire("move")},_onPanTransitionEnd:function(){we(this._mapPane,"leaflet-pan-anim"),this.fire("moveend")},_tryAnimatedPan:function(t,e){var n=this._getCenterOffset(t)._trunc();return!(!0!==(e&&e.animate)&&!this.getSize().contains(n)||(this.panBy(n,e),0))},_createAnimProxy:function(){var t=this._proxy=me("div","leaflet-proxy leaflet-zoom-animated");this._panes.mapPane.appendChild(t),this.on("zoomanim",(function(t){var e=ue,n=this._proxy.style[e];Se(this._proxy,this.project(t.center,t.zoom),this.getZoomScale(t.zoom,1)),n===this._proxy.style[e]&&this._animatingZoom&&this._onZoomTransitionEnd()}),this),this.on("load moveend",this._animMoveEnd,this),this._on("unload",this._destroyAnimProxy,this)},_destroyAnimProxy:function(){ge(this._proxy),this.off("load moveend",this._animMoveEnd,this),delete this._proxy},_animMoveEnd:function(){var t=this.getCenter(),e=this.getZoom();Se(this._proxy,this.project(t,e),this.getZoomScale(e,1))},_catchTransitionEnd:function(t){this._animatingZoom&&t.propertyName.indexOf("transform")>=0&&this._onZoomTransitionEnd()},_nothingToAnimate:function(){return!this._container.getElementsByClassName("leaflet-zoom-animated").length},_tryAnimatedZoom:function(t,e,n){if(this._animatingZoom)return!0;if(n=n||{},!this._zoomAnimated||!1===n.animate||this._nothingToAnimate()||Math.abs(e-this._zoom)>this.options.zoomAnimationThreshold)return!1;var i=this.getZoomScale(e),o=this._getCenterOffset(t)._divideBy(1-1/i);return!(!0!==n.animate&&!this.getSize().contains(o)||(x((function(){this._moveStart(!0,!1)._animateZoom(t,e,!0)}),this),0))},_animateZoom:function(t,e,n,i){this._mapPane&&(n&&(this._animatingZoom=!0,this._animateToCenter=t,this._animateToZoom=e,_e(this._mapPane,"leaflet-zoom-anim")),this.fire("zoomanim",{center:t,zoom:e,noUpdate:i}),this._tempFireZoomEvent||(this._tempFireZoomEvent=this._zoom!==this._animateToZoom),this._move(this._animateToCenter,this._animateToZoom,void 0,!0),setTimeout(o(this._onZoomTransitionEnd,this),250))},_onZoomTransitionEnd:function(){this._animatingZoom&&(this._mapPane&&we(this._mapPane,"leaflet-zoom-anim"),this._animatingZoom=!1,this._move(this._animateToCenter,this._animateToZoom,void 0,!0),this._tempFireZoomEvent&&this.fire("zoom"),delete this._tempFireZoomEvent,this.fire("move"),this._moveEnd(!0))}});function an(t,e){return new rn(t,e)}var sn=S.extend({options:{position:"topright"},initialize:function(t){f(this,t)},getPosition:function(){return this.options.position},setPosition:function(t){var e=this._map;return e&&e.removeControl(this),this.options.position=t,e&&e.addControl(this),this},getContainer:function(){return this._container},addTo:function(t){this.remove(),this._map=t;var e=this._container=this.onAdd(t),n=this.getPosition(),i=t._controlCorners[n];return _e(e,"leaflet-control"),-1!==n.indexOf("bottom")?i.insertBefore(e,i.firstChild):i.appendChild(e),this._map.on("unload",this.remove,this),this},remove:function(){return this._map?(ge(this._container),this.onRemove&&this.onRemove(this._map),this._map.off("unload",this.remove,this),this._map=null,this):this},_refocusOnMap:function(t){this._map&&t&&t.screenX>0&&t.screenY>0&&this._map.getContainer().focus()}}),ln=function(t){return new sn(t)};rn.include({addControl:function(t){return t.addTo(this),this},removeControl:function(t){return t.remove(),this},_initControlPos:function(){var t=this._controlCorners={},e="leaflet-",n=this._controlContainer=me("div",e+"control-container",this._container);function i(i,o){var r=e+i+" "+e+o;t[i+o]=me("div",r,n)}i("top","left"),i("top","right"),i("bottom","left"),i("bottom","right")},_clearControlPos:function(){for(var t in this._controlCorners)ge(this._controlCorners[t]);ge(this._controlContainer),delete this._controlCorners,delete this._controlContainer}});var cn=sn.extend({options:{collapsed:!0,position:"topright",autoZIndex:!0,hideSingleBase:!1,sortLayers:!1,sortFunction:function(t,e,n,i){return n<i?-1:i<n?1:0}},initialize:function(t,e,n){for(var i in f(this,n),this._layerControlInputs=[],this._layers=[],this._lastZIndex=0,this._handlingClick=!1,t)this._addLayer(t[i],i);for(i in e)this._addLayer(e[i],i,!0)},onAdd:function(t){this._initLayout(),this._update(),this._map=t,t.on("zoomend",this._checkDisabledLayers,this);for(var e=0;e<this._layers.length;e++)this._layers[e].layer.on("add remove",this._onLayerChange,this);return this._container},addTo:function(t){return sn.prototype.addTo.call(this,t),this._expandIfNotCollapsed()},onRemove:function(){this._map.off("zoomend",this._checkDisabledLayers,this);for(var t=0;t<this._layers.length;t++)this._layers[t].layer.off("add remove",this._onLayerChange,this)},addBaseLayer:function(t,e){return this._addLayer(t,e),this._map?this._update():this},addOverlay:function(t,e){return this._addLayer(t,e,!0),this._map?this._update():this},removeLayer:function(t){t.off("add remove",this._onLayerChange,this);var e=this._getLayer(a(t));return e&&this._layers.splice(this._layers.indexOf(e),1),this._map?this._update():this},expand:function(){_e(this._container,"leaflet-control-layers-expanded"),this._section.style.height=null;var t=this._map.getSize().y-(this._container.offsetTop+50);return t<this._section.clientHeight?(_e(this._section,"leaflet-control-layers-scrollbar"),this._section.style.height=t+"px"):we(this._section,"leaflet-control-layers-scrollbar"),this._checkDisabledLayers(),this},collapse:function(){return we(this._container,"leaflet-control-layers-expanded"),this},_initLayout:function(){var t="leaflet-control-layers",e=this._container=me("div",t),n=this.options.collapsed;e.setAttribute("aria-haspopup",!0),$e(e),Ge(e);var i=this._section=me("section",t+"-list");n&&(this._map.on("click",this.collapse,this),Re(e,{mouseenter:this._expandSafely,mouseleave:this.collapse},this));var o=this._layersLink=me("a",t+"-toggle",e);o.href="#",o.title="Layers",o.setAttribute("role","button"),Re(o,{keydown:function(t){13===t.keyCode&&this._expandSafely()},click:function(t){Ye(t),this._expandSafely()}},this),n||this.expand(),this._baseLayersList=me("div",t+"-base",i),this._separator=me("div",t+"-separator",i),this._overlaysList=me("div",t+"-overlays",i),e.appendChild(i)},_getLayer:function(t){for(var e=0;e<this._layers.length;e++)if(this._layers[e]&&a(this._layers[e].layer)===t)return this._layers[e]},_addLayer:function(t,e,n){this._map&&t.on("add remove",this._onLayerChange,this),this._layers.push({layer:t,name:e,overlay:n}),this.options.sortLayers&&this._layers.sort(o((function(t,e){return this.options.sortFunction(t.layer,e.layer,t.name,e.name)}),this)),this.options.autoZIndex&&t.setZIndex&&(this._lastZIndex++,t.setZIndex(this._lastZIndex)),this._expandIfNotCollapsed()},_update:function(){if(!this._container)return this;ve(this._baseLayersList),ve(this._overlaysList),this._layerControlInputs=[];var t,e,n,i,o=0;for(n=0;n<this._layers.length;n++)i=this._layers[n],this._addItem(i),e=e||i.overlay,t=t||!i.overlay,o+=i.overlay?0:1;return this.options.hideSingleBase&&(t=t&&o>1,this._baseLayersList.style.display=t?"":"none"),this._separator.style.display=e&&t?"":"none",this},_onLayerChange:function(t){this._handlingClick||this._update();var e=this._getLayer(a(t.target)),n=e.overlay?"add"===t.type?"overlayadd":"overlayremove":"add"===t.type?"baselayerchange":null;n&&this._map.fire(n,e)},_createRadioElement:function(t,e){var n='<input type="radio" class="leaflet-control-layers-selector" name="'+t+'"'+(e?' checked="checked"':"")+"/>",i=document.createElement("div");return i.innerHTML=n,i.firstChild},_addItem:function(t){var e,n=document.createElement("label"),i=this._map.hasLayer(t.layer);t.overlay?((e=document.createElement("input")).type="checkbox",e.className="leaflet-control-layers-selector",e.defaultChecked=i):e=this._createRadioElement("leaflet-base-layers_"+a(this),i),this._layerControlInputs.push(e),e.layerId=a(t.layer),Re(e,"click",this._onInputClick,this);var o=document.createElement("span");o.innerHTML=" "+t.name;var r=document.createElement("span");return n.appendChild(r),r.appendChild(e),r.appendChild(o),(t.overlay?this._overlaysList:this._baseLayersList).appendChild(n),this._checkDisabledLayers(),n},_onInputClick:function(){var t,e,n=this._layerControlInputs,i=[],o=[];this._handlingClick=!0;for(var r=n.length-1;r>=0;r--)t=n[r],e=this._getLayer(t.layerId).layer,t.checked?i.push(e):t.checked||o.push(e);for(r=0;r<o.length;r++)this._map.hasLayer(o[r])&&this._map.removeLayer(o[r]);for(r=0;r<i.length;r++)this._map.hasLayer(i[r])||this._map.addLayer(i[r]);this._handlingClick=!1,this._refocusOnMap()},_checkDisabledLayers:function(){for(var t,e,n=this._layerControlInputs,i=this._map.getZoom(),o=n.length-1;o>=0;o--)t=n[o],e=this._getLayer(t.layerId).layer,t.disabled=void 0!==e.options.minZoom&&i<e.options.minZoom||void 0!==e.options.maxZoom&&i>e.options.maxZoom},_expandIfNotCollapsed:function(){return this._map&&!this.options.collapsed&&this.expand(),this},_expandSafely:function(){var t=this._section;Re(t,"click",Ye),this.expand(),setTimeout((function(){Ve(t,"click",Ye)}))}}),un=function(t,e,n){return new cn(t,e,n)},dn=sn.extend({options:{position:"topleft",zoomInText:'<span aria-hidden="true">+</span>',zoomInTitle:"Zoom in",zoomOutText:'<span aria-hidden="true">&#x2212;</span>',zoomOutTitle:"Zoom out"},onAdd:function(t){var e="leaflet-control-zoom",n=me("div",e+" leaflet-bar"),i=this.options;return this._zoomInButton=this._createButton(i.zoomInText,i.zoomInTitle,e+"-in",n,this._zoomIn),this._zoomOutButton=this._createButton(i.zoomOutText,i.zoomOutTitle,e+"-out",n,this._zoomOut),this._updateDisabled(),t.on("zoomend zoomlevelschange",this._updateDisabled,this),n},onRemove:function(t){t.off("zoomend zoomlevelschange",this._updateDisabled,this)},disable:function(){return this._disabled=!0,this._updateDisabled(),this},enable:function(){return this._disabled=!1,this._updateDisabled(),this},_zoomIn:function(t){!this._disabled&&this._map._zoom<this._map.getMaxZoom()&&this._map.zoomIn(this._map.options.zoomDelta*(t.shiftKey?3:1))},_zoomOut:function(t){!this._disabled&&this._map._zoom>this._map.getMinZoom()&&this._map.zoomOut(this._map.options.zoomDelta*(t.shiftKey?3:1))},_createButton:function(t,e,n,i,o){var r=me("a",n,i);return r.innerHTML=t,r.href="#",r.title=e,r.setAttribute("role","button"),r.setAttribute("aria-label",e),$e(r),Re(r,"click",Ke),Re(r,"click",o,this),Re(r,"click",this._refocusOnMap,this),r},_updateDisabled:function(){var t=this._map,e="leaflet-disabled";we(this._zoomInButton,e),we(this._zoomOutButton,e),this._zoomInButton.setAttribute("aria-disabled","false"),this._zoomOutButton.setAttribute("aria-disabled","false"),(this._disabled||t._zoom===t.getMinZoom())&&(_e(this._zoomOutButton,e),this._zoomOutButton.setAttribute("aria-disabled","true")),(this._disabled||t._zoom===t.getMaxZoom())&&(_e(this._zoomInButton,e),this._zoomInButton.setAttribute("aria-disabled","true"))}});rn.mergeOptions({zoomControl:!0}),rn.addInitHook((function(){this.options.zoomControl&&(this.zoomControl=new dn,this.addControl(this.zoomControl))}));var hn=function(t){return new dn(t)},fn=sn.extend({options:{position:"bottomleft",maxWidth:100,metric:!0,imperial:!0},onAdd:function(t){var e="leaflet-control-scale",n=me("div",e),i=this.options;return this._addScales(i,e+"-line",n),t.on(i.updateWhenIdle?"moveend":"move",this._update,this),t.whenReady(this._update,this),n},onRemove:function(t){t.off(this.options.updateWhenIdle?"moveend":"move",this._update,this)},_addScales:function(t,e,n){t.metric&&(this._mScale=me("div",e,n)),t.imperial&&(this._iScale=me("div",e,n))},_update:function(){var t=this._map,e=t.getSize().y/2,n=t.distance(t.containerPointToLatLng([0,e]),t.containerPointToLatLng([this.options.maxWidth,e]));this._updateScales(n)},_updateScales:function(t){this.options.metric&&t&&this._updateMetric(t),this.options.imperial&&t&&this._updateImperial(t)},_updateMetric:function(t){var e=this._getRoundNum(t),n=e<1e3?e+" m":e/1e3+" km";this._updateScale(this._mScale,n,e/t)},_updateImperial:function(t){var e,n,i,o=3.2808399*t;o>5280?(e=o/5280,n=this._getRoundNum(e),this._updateScale(this._iScale,n+" mi",n/e)):(i=this._getRoundNum(o),this._updateScale(this._iScale,i+" ft",i/o))},_updateScale:function(t,e,n){t.style.width=Math.round(this.options.maxWidth*n)+"px",t.innerHTML=e},_getRoundNum:function(t){var e=Math.pow(10,(Math.floor(t)+"").length-1),n=t/e;return e*(n=n>=10?10:n>=5?5:n>=3?3:n>=2?2:1)}}),pn=function(t){return new fn(t)},mn='<svg aria-hidden="true" xmlns="http://www.w3.org/2000/svg" width="12" height="8" viewBox="0 0 12 8" class="leaflet-attribution-flag"><path fill="#4C7BE1" d="M0 0h12v4H0z"/><path fill="#FFD500" d="M0 4h12v3H0z"/><path fill="#E0BC00" d="M0 7h12v1H0z"/></svg>',gn=sn.extend({options:{position:"bottomright",prefix:'<a href="https://leafletjs.com" title="A JavaScript library for interactive maps">'+(Ft.inlineSvg?mn+" ":"")+"Leaflet</a>"},initialize:function(t){f(this,t),this._attributions={}},onAdd:function(t){for(var e in t.attributionControl=this,this._container=me("div","leaflet-control-attribution"),$e(this._container),t._layers)t._layers[e].getAttribution&&this.addAttribution(t._layers[e].getAttribution());return this._update(),t.on("layeradd",this._addAttribution,this),this._container},onRemove:function(t){t.off("layeradd",this._addAttribution,this)},_addAttribution:function(t){t.layer.getAttribution&&(this.addAttribution(t.layer.getAttribution()),t.layer.once("remove",(function(){this.removeAttribution(t.layer.getAttribution())}),this))},setPrefix:function(t){return this.options.prefix=t,this._update(),this},addAttribution:function(t){return t?(this._attributions[t]||(this._attributions[t]=0),this._attributions[t]++,this._update(),this):this},removeAttribution:function(t){return t?(this._attributions[t]&&(this._attributions[t]--,this._update()),this):this},_update:function(){if(this._map){var t=[];for(var e in this._attributions)this._attributions[e]&&t.push(e);var n=[];this.options.prefix&&n.push(this.options.prefix),t.length&&n.push(t.join(", ")),this._container.innerHTML=n.join(' <span aria-hidden="true">|</span> ')}}});rn.mergeOptions({attributionControl:!0}),rn.addInitHook((function(){this.options.attributionControl&&(new gn).addTo(this)}));var vn=function(t){return new gn(t)};sn.Layers=cn,sn.Zoom=dn,sn.Scale=fn,sn.Attribution=gn,ln.layers=un,ln.zoom=hn,ln.scale=pn,ln.attribution=vn;var kn=S.extend({initialize:function(t){this._map=t},enable:function(){return this._enabled||(this._enabled=!0,this.addHooks()),this},disable:function(){return this._enabled?(this._enabled=!1,this.removeHooks(),this):this},enabled:function(){return!!this._enabled}});kn.addTo=function(t,e){return t.addHandler(e,this),this};var bn,yn={Events:I},_n=Ft.touch?"touchstart mousedown":"mousedown",wn=z.extend({options:{clickTolerance:3},initialize:function(t,e,n,i){f(this,i),this._element=t,this._dragStartTarget=e||t,this._preventOutline=n},enable:function(){this._enabled||(Re(this._dragStartTarget,_n,this._onDown,this),this._enabled=!0)},disable:function(){this._enabled&&(wn._dragging===this&&this.finishDrag(!0),Ve(this._dragStartTarget,_n,this._onDown,this),this._enabled=!1,this._moved=!1)},_onDown:function(t){if(this._enabled&&(this._moved=!1,!ye(this._element,"leaflet-zoom-anim")))if(t.touches&&1!==t.touches.length)wn._dragging===this&&this.finishDrag();else if(!(wn._dragging||t.shiftKey||1!==t.which&&1!==t.button&&!t.touches||(wn._dragging=this,this._preventOutline&&Pe(this._element),Me(),re(),this._moving))){this.fire("down");var e=t.touches?t.touches[0]:t,n=Ne(this._element);this._startPoint=new M(e.clientX,e.clientY),this._startPos=Ie(this._element),this._parentScale=Oe(n);var i="mousedown"===t.type;Re(document,i?"mousemove":"touchmove",this._onMove,this),Re(document,i?"mouseup":"touchend touchcancel",this._onUp,this)}},_onMove:function(t){if(this._enabled)if(t.touches&&t.touches.length>1)this._moved=!0;else{var e=t.touches&&1===t.touches.length?t.touches[0]:t,n=new M(e.clientX,e.clientY)._subtract(this._startPoint);(n.x||n.y)&&(Math.abs(n.x)+Math.abs(n.y)<this.options.clickTolerance||(n.x/=this._parentScale.x,n.y/=this._parentScale.y,Ye(t),this._moved||(this.fire("dragstart"),this._moved=!0,_e(document.body,"leaflet-dragging"),this._lastTarget=t.target||t.srcElement,window.SVGElementInstance&&this._lastTarget instanceof window.SVGElementInstance&&(this._lastTarget=this._lastTarget.correspondingUseElement),_e(this._lastTarget,"leaflet-drag-target")),this._newPos=this._startPos.add(n),this._moving=!0,this._lastEvent=t,this._updatePosition()))}},_updatePosition:function(){var t={originalEvent:this._lastEvent};this.fire("predrag",t),Te(this._element,this._newPos),this.fire("drag",t)},_onUp:function(){this._enabled&&this.finishDrag()},finishDrag:function(t){we(document.body,"leaflet-dragging"),this._lastTarget&&(we(this._lastTarget,"leaflet-drag-target"),this._lastTarget=null),Ve(document,"mousemove touchmove",this._onMove,this),Ve(document,"mouseup touchend touchcancel",this._onUp,this),Be(),ae(),this._moved&&this._moving&&this.fire("dragend",{noInertia:t,distance:this._newPos.distanceTo(this._startPos)}),this._moving=!1,wn._dragging=!1}});function Cn(t,e){if(!e||!t.length)return t.slice();var n=e*e;return t=Dn(t=Sn(t,n),n)}function An(t,e,n){return Math.sqrt(Bn(t,e,n,!0))}function xn(t,e,n){return Bn(t,e,n)}function Dn(t,e){var n=t.length,i=new(typeof Uint8Array!=void 0+""?Uint8Array:Array)(n);i[0]=i[n-1]=1,En(t,i,e,0,n-1);var o,r=[];for(o=0;o<n;o++)i[o]&&r.push(t[o]);return r}function En(t,e,n,i,o){var r,a,s,l=0;for(a=i+1;a<=o-1;a++)(s=Bn(t[a],t[i],t[o],!0))>l&&(r=a,l=s);l>n&&(e[r]=1,En(t,e,n,i,r),En(t,e,n,r,o))}function Sn(t,e){for(var n=[t[0]],i=1,o=0,r=t.length;i<r;i++)Mn(t[i],t[o])>e&&(n.push(t[i]),o=i);return o<r-1&&n.push(t[r-1]),n}function Tn(t,e,n,i,o){var r,a,s,l=i?bn:zn(t,n),c=zn(e,n);for(bn=c;;){if(!(l|c))return[t,e];if(l&c)return!1;s=zn(a=In(t,e,r=l||c,n,o),n),r===l?(t=a,l=s):(e=a,c=s)}}function In(t,e,n,i,o){var r,a,s=e.x-t.x,l=e.y-t.y,c=i.min,u=i.max;return 8&n?(r=t.x+s*(u.y-t.y)/l,a=u.y):4&n?(r=t.x+s*(c.y-t.y)/l,a=c.y):2&n?(r=u.x,a=t.y+l*(u.x-t.x)/s):1&n&&(r=c.x,a=t.y+l*(c.x-t.x)/s),new M(r,a,o)}function zn(t,e){var n=0;return t.x<e.min.x?n|=1:t.x>e.max.x&&(n|=2),t.y<e.min.y?n|=4:t.y>e.max.y&&(n|=8),n}function Mn(t,e){var n=e.x-t.x,i=e.y-t.y;return n*n+i*i}function Bn(t,e,n,i){var o,r=e.x,a=e.y,s=n.x-r,l=n.y-a,c=s*s+l*l;return c>0&&((o=((t.x-r)*s+(t.y-a)*l)/c)>1?(r=n.x,a=n.y):o>0&&(r+=s*o,a+=l*o)),s=t.x-r,l=t.y-a,i?s*s+l*l:new M(r,a)}function Pn(t){return!v(t[0])||"object"!=typeof t[0][0]&&void 0!==t[0][0]}function Ln(t){return console.warn("Deprecated use of _flat, please use L.LineUtil.isFlat instead."),Pn(t)}function Nn(t,e){var n,i,o,r,a,s,l,c;if(!t||0===t.length)throw new Error("latlngs not passed");Pn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var u=[];for(var d in t)u.push(e.project(V(t[d])));var h=u.length;for(n=0,i=0;n<h-1;n++)i+=u[n].distanceTo(u[n+1])/2;if(0===i)c=u[0];else for(n=0,r=0;n<h-1;n++)if(a=u[n],s=u[n+1],(r+=o=a.distanceTo(s))>i){l=(r-i)/o,c=[s.x-l*(s.x-a.x),s.y-l*(s.y-a.y)];break}return e.unproject(P(c))}var On={__proto__:null,simplify:Cn,pointToSegmentDistance:An,closestPointOnSegment:xn,clipSegment:Tn,_getEdgeIntersection:In,_getBitCode:zn,_sqClosestPointOnSegment:Bn,isFlat:Pn,_flat:Ln,polylineCenter:Nn};function Fn(t,e,n){var i,o,r,a,s,l,c,u,d,h=[1,4,2,8];for(o=0,c=t.length;o<c;o++)t[o]._code=zn(t[o],e);for(a=0;a<4;a++){for(u=h[a],i=[],o=0,r=(c=t.length)-1;o<c;r=o++)s=t[o],l=t[r],s._code&u?l._code&u||((d=In(l,s,u,e,n))._code=zn(d,e),i.push(d)):(l._code&u&&((d=In(l,s,u,e,n))._code=zn(d,e),i.push(d)),i.push(s));t=i}return t}function Rn(t,e){var n,i,o,r,a,s,l,c,u;if(!t||0===t.length)throw new Error("latlngs not passed");Pn(t)||(console.warn("latlngs are not flat! Only the first ring will be used"),t=t[0]);var d=[];
vendor: 4,625 bytes, line 2
2for(var h in t)d.push(e.project(V(t[h])));var f=d.length;for(s=l=c=0,n=0,i=f-1;n<f;i=n++)o=d[n],r=d[i],a=o.y*r.x-r.y*o.x,l+=(o.x+r.x)*a,c+=(o.y+r.y)*a,s+=3*a;return u=0===s?d[0]:[l/s,c/s],e.unproject(P(u))}var jn={__proto__:null,clipPolygon:Fn,polygonCenter:Rn},Vn={project:function(t){return new M(t.lng,t.lat)},unproject:function(t){return new j(t.y,t.x)},bounds:new N([-180,-90],[180,90])},Hn={R:6378137,R_MINOR:6356752.314245179,bounds:new N([-20037508.34279,-15496570.73972],[20037508.34279,18764656.23138]),project:function(t){var e=Math.PI/180,n=this.R,i=t.lat*e,o=this.R_MINOR/n,r=Math.sqrt(1-o*o),a=r*Math.sin(i),s=Math.tan(Math.PI/4-i/2)/Math.pow((1-a)/(1+a),r/2);return i=-n*Math.log(Math.max(s,1e-10)),new M(t.lng*e*n,i)},unproject:function(t){for(var e,n=180/Math.PI,i=this.R,o=this.R_MINOR/i,r=Math.sqrt(1-o*o),a=Math.exp(-t.y/i),s=Math.PI/2-2*Math.atan(a),l=0,c=.1;l<15&&Math.abs(c)>1e-7;l++)e=r*Math.sin(s),e=Math.pow((1-e)/(1+e),r/2),s+=c=Math.PI/2-2*Math.atan(a*e)-s;return new j(s*n,t.x*n/i)}},Un={__proto__:null,LonLat:Vn,Mercator:Hn,SphericalMercator:W},Zn=n({},Z,{code:"EPSG:3395",projection:Hn,transformation:function(){var t=.5/(Math.PI*Hn.R);return $(t,.5,-t,.5)}()}),qn=n({},Z,{code:"EPSG:4326",projection:Vn,transformation:$(1/180,1,-1/180,.5)}),Wn=n({},U,{projection:Vn,transformation:$(1,0,-1,0),scale:function(t){return Math.pow(2,t)},zoom:function(t){return Math.log(t)/Math.LN2},distance:function(t,e){var n=e.lng-t.lng,i=e.lat-t.lat;return Math.sqrt(n*n+i*i)},infinite:!0});U.Earth=Z,U.EPSG3395=Zn,U.EPSG3857=Y,U.EPSG900913=K,U.EPSG4326=qn,U.Simple=Wn;var Gn=z.extend({options:{pane:"overlayPane",attribution:null,bubblingMouseEvents:!0},addTo:function(t){return t.addLayer(this),this},remove:function(){return this.removeFrom(this._map||this._mapToAdd)},removeFrom:function(t){return t&&t.removeLayer(this),this},getPane:function(t){return this._map.getPane(t?this.options[t]||t:this.options.pane)},addInteractiveTarget:function(t){return this._map._targets[a(t)]=this,this},removeInteractiveTarget:function(t){return delete this._map._targets[a(t)],this},getAttribution:function(){return this.options.attribution},_layerAdd:function(t){var e=t.target;if(e.hasLayer(this)){if(this._map=e,this._zoomAnimated=e._zoomAnimated,this.getEvents){var n=this.getEvents();e.on(n,this),this.once("remove",(function(){e.off(n,this)}),this)}this.onAdd(e),this.fire("add"),e.fire("layeradd",{layer:this})}}});rn.include({addLayer:function(t){if(!t._layerAdd)throw new Error("The provided object is not a Layer.");var e=a(t);return this._layers[e]||(this._layers[e]=t,t._mapToAdd=this,t.beforeAdd&&t.beforeAdd(this),this.whenReady(t._layerAdd,t)),this},removeLayer:function(t){var e=a(t);return this._layers[e]?(this._loaded&&t.onRemove(this),delete this._layers[e],this._loaded&&(this.fire("layerremove",{layer:t}),t.fire("remove")),t._map=t._mapToAdd=null,this):this},hasLayer:function(t){return a(t)in this._layers},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},_addLayers:function(t){for(var e=0,n=(t=t?v(t)?t:[t]:[]).length;e<n;e++)this.addLayer(t[e])},_addZoomLimit:function(t){isNaN(t.options.maxZoom)&&isNaN(t.options.minZoom)||(this._zoomBoundLayers[a(t)]=t,this._updateZoomLevels())},_removeZoomLimit:function(t){var e=a(t);this._zoomBoundLayers[e]&&(delete this._zoomBoundLayers[e],this._updateZoomLevels())},_updateZoomLevels:function(){var t=1/0,e=-1/0,n=this._getZoomSpan();for(var i in this._zoomBoundLayers){var o=this._zoomBoundLayers[i].options;t=void 0===o.minZoom?t:Math.min(t,o.minZoom),e=void 0===o.maxZoom?e:Math.max(e,o.maxZoom)}this._layersMaxZoom=e===-1/0?void 0:e,this._layersMinZoom=t===1/0?void 0:t,n!==this._getZoomSpan()&&this.fire("zoomlevelschange"),void 0===this.options.maxZoom&&this._layersMaxZoom&&this.getZoom()>this._layersMaxZoom&&this.setZoom(this._layersMaxZoom),void 0===this.options.minZoom&&this._layersMinZoom&&this.getZoom()<this._layersMinZoom&&this.setZoom(this._layersMinZoom)}});var $n=Gn.extend({initialize:function(t,e){var n,i;if(f(this,e),this._layers={},t)for(n=0,i=t.length;n<i;n++)this.addLayer(t[n])},addLayer:function(t){var e=this.getLayerId(t);return this._layers[e]=t,this._map&&this._map.addLayer(t),this},removeLayer:function(t){var e=t in this._layers?t:this.getLayerId(t);return this._map&&this._layers[e]&&this._map.removeLayer(this._layers[e]),delete this._layers[e],this},hasLayer:function(t){return("number"==typeof t?t:this.getLayerId(t))in this._layers},clearLayers:function(){return this.eachLayer(this.removeLayer,this)},invoke:function(t){var e,n,i=Array.prototype.slice.call(arguments,1
vendor: 9,214 bytes, line 2
2);for(e in this._layers)(n=this._layers[e])[t]&&n[t].apply(n,i);return this},onAdd:function(t){this.eachLayer(t.addLayer,t)},onRemove:function(t){this.eachLayer(t.removeLayer,t)},eachLayer:function(t,e){for(var n in this._layers)t.call(e,this._layers[n]);return this},getLayer:function(t){return this._layers[t]},getLayers:function(){var t=[];return this.eachLayer(t.push,t),t},setZIndex:function(t){return this.invoke("setZIndex",t)},getLayerId:function(t){return a(t)}}),Yn=function(t,e){return new $n(t,e)},Kn=$n.extend({addLayer:function(t){return this.hasLayer(t)?this:(t.addEventParent(this),$n.prototype.addLayer.call(this,t),this.fire("layeradd",{layer:t}))},removeLayer:function(t){return this.hasLayer(t)?(t in this._layers&&(t=this._layers[t]),t.removeEventParent(this),$n.prototype.removeLayer.call(this,t),this.fire("layerremove",{layer:t})):this},setStyle:function(t){return this.invoke("setStyle",t)},bringToFront:function(){return this.invoke("bringToFront")},bringToBack:function(){return this.invoke("bringToBack")},getBounds:function(){var t=new F;for(var e in this._layers){var n=this._layers[e];t.extend(n.getBounds?n.getBounds():n.getLatLng())}return t}}),Qn=function(t,e){return new Kn(t,e)},Jn=S.extend({options:{popupAnchor:[0,0],tooltipAnchor:[0,0],crossOrigin:!1},initialize:function(t){f(this,t)},createIcon:function(t){return this._createIcon("icon",t)},createShadow:function(t){return this._createIcon("shadow",t)},_createIcon:function(t,e){var n=this._getIconUrl(t);if(!n){if("icon"===t)throw new Error("iconUrl not set in Icon options (see the docs).");return null}var i=this._createImg(n,e&&"IMG"===e.tagName?e:null);return this._setIconStyles(i,t),(this.options.crossOrigin||""===this.options.crossOrigin)&&(i.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),i},_setIconStyles:function(t,e){var n=this.options,i=n[e+"Size"];"number"==typeof i&&(i=[i,i]);var o=P(i),r=P("shadow"===e&&n.shadowAnchor||n.iconAnchor||o&&o.divideBy(2,!0));t.className="leaflet-marker-"+e+" "+(n.className||""),r&&(t.style.marginLeft=-r.x+"px",t.style.marginTop=-r.y+"px"),o&&(t.style.width=o.x+"px",t.style.height=o.y+"px")},_createImg:function(t,e){return(e=e||document.createElement("img")).src=t,e},_getIconUrl:function(t){return Ft.retina&&this.options[t+"RetinaUrl"]||this.options[t+"Url"]}});function Xn(t){return new Jn(t)}var ti=Jn.extend({options:{iconUrl:"marker-icon.png",iconRetinaUrl:"marker-icon-2x.png",shadowUrl:"marker-shadow.png",iconSize:[25,41],iconAnchor:[12,41],popupAnchor:[1,-34],tooltipAnchor:[16,-28],shadowSize:[41,41]},_getIconUrl:function(t){return"string"!=typeof ti.imagePath&&(ti.imagePath=this._detectIconPath()),(this.options.imagePath||ti.imagePath)+Jn.prototype._getIconUrl.call(this,t)},_stripUrl:function(t){var e=function(t,e,n){var i=e.exec(t);return i&&i[n]};return(t=e(t,/^url\((['"])?(.+)\1\)$/,2))&&e(t,/^(.*)marker-icon\.png$/,1)},_detectIconPath:function(){var t=me("div","leaflet-default-icon-path",document.body),e=pe(t,"background-image")||pe(t,"backgroundImage");if(document.body.removeChild(t),e=this._stripUrl(e))return e;var n=document.querySelector('link[href$="leaflet.css"]');return n?n.href.substring(0,n.href.length-11-1):""}}),ei=kn.extend({initialize:function(t){this._marker=t},addHooks:function(){var t=this._marker._icon;this._draggable||(this._draggable=new wn(t,t,!0)),this._draggable.on({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).enable(),_e(t,"leaflet-marker-draggable")},removeHooks:function(){this._draggable.off({dragstart:this._onDragStart,predrag:this._onPreDrag,drag:this._onDrag,dragend:this._onDragEnd},this).disable(),this._marker._icon&&we(this._marker._icon,"leaflet-marker-draggable")},moved:function(){return this._draggable&&this._draggable._moved},_adjustPan:function(t){var e=this._marker,n=e._map,i=this._marker.options.autoPanSpeed,o=this._marker.options.autoPanPadding,r=Ie(e._icon),a=n.getPixelBounds(),s=n.getPixelOrigin(),l=O(a.min._subtract(s).add(o),a.max._subtract(s).subtract(o));if(!l.contains(r)){var c=P((Math.max(l.max.x,r.x)-l.max.x)/(a.max.x-l.max.x)-(Math.min(l.min.x,r.x)-l.min.x)/(a.min.x-l.min.x),(Math.max(l.max.y,r.y)-l.max.y)/(a.max.y-l.max.y)-(Math.min(l.min.y,r.y)-l.min.y)/(a.min.y-l.min.y)).multiplyBy(i);n.panBy(c,{animate:!1}),this._draggable._newPos._add(c),this._draggable._startPos._add(c),Te(e._icon,this._draggable._newPos),this._onDrag(t),this._panRequest=x(this._adjustPan.bind(this,t))}},_onDragStart:function(){this._oldLatLng=this._marker.getLatLng(),this._marker.closePopup&&this._marker.closePopup(),this._marker.fire("movestart").fire("dragstart")},_onPreDrag:function(t){this._marker.options.autoPan&&(D(this._panRequest),this._panRequest=x(this._adjustPan.bind(this,t)))},_onDrag:function(t){var e=this._marker,n=e._shadow,i=Ie(e._icon),o=e._map.layerPointToLatLng(i);n&&Te(n,i),e._latlng=o,t.latlng=o,t.oldLatLng=this._oldLatLng,e.fire("move",t).fire("drag",t)},_onDragEnd:function(t){D(this._panRequest),delete this._oldLatLng,this._marker.fire("moveend").fire("dragend",t)}}),ni=Gn.extend({options:{icon:new ti,interactive:!0,keyboard:!0,title:"",alt:"Marker",zIndexOffset:0,opacity:1,riseOnHover:!1,riseOffset:250,pane:"markerPane",shadowPane:"shadowPane",bubblingMouseEvents:!1,autoPanOnFocus:!0,draggable:!1,autoPan:!1,autoPanPadding:[50,50],autoPanSpeed:10},initialize:function(t,e){f(this,e),this._latlng=V(t)},onAdd:function(t){this._zoomAnimated=this._zoomAnimated&&t.options.markerZoomAnimation,this._zoomAnimated&&t.on("zoomanim",this._animateZoom,this),this._initIcon(),this.update()},onRemove:function(t){this.dragging&&this.dragging.enabled()&&(this.options.draggable=!0,this.dragging.removeHooks()),delete this.dragging,this._zoomAnimated&&t.off("zoomanim",this._animateZoom,this),this._removeIcon(),this._removeShadow()},getEvents:function(){return{zoom:this.update,viewreset:this.update}},getLatLng:function(){return this._latlng},setLatLng:function(t){var e=this._latlng;return this._latlng=V(t),this.update(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},setZIndexOffset:function(t){return this.options.zIndexOffset=t,this.update()},getIcon:function(){return this.options.icon},setIcon:function(t){return this.options.icon=t,this._map&&(this._initIcon(),this.update()),this._popup&&this.bindPopup(this._popup,this._popup.options),this},getElement:function(){return this._icon},update:function(){if(this._icon&&this._map){var t=this._map.latLngToLayerPoint(this._latlng).round();this._setPos(t)}return this},_initIcon:function(){var t=this.options,e="leaflet-zoom-"+(this._zoomAnimated?"animated":"hide"),n=t.icon.createIcon(this._icon),i=!1;n!==this._icon&&(this._icon&&this._removeIcon(),i=!0,t.title&&(n.title=t.title),"IMG"===n.tagName&&(n.alt=t.alt||"")),_e(n,e),t.keyboard&&(n.tabIndex="0",n.setAttribute("role","button")),this._icon=n,t.riseOnHover&&this.on({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Re(n,"focus",this._panOnFocus,this);var o=t.icon.createShadow(this._shadow),r=!1;o!==this._shadow&&(this._removeShadow(),r=!0),o&&(_e(o,e),o.alt=""),this._shadow=o,t.opacity<1&&this._updateOpacity(),i&&this.getPane().appendChild(this._icon),this._initInteraction(),o&&r&&this.getPane(t.shadowPane).appendChild(this._shadow)},_removeIcon:function(){this.options.riseOnHover&&this.off({mouseover:this._bringToFront,mouseout:this._resetZIndex}),this.options.autoPanOnFocus&&Ve(this._icon,"focus",this._panOnFocus,this),ge(this._icon),this.removeInteractiveTarget(this._icon),this._icon=null},_removeShadow:function(){this._shadow&&ge(this._shadow),this._shadow=null},_setPos:function(t){this._icon&&Te(this._icon,t),this._shadow&&Te(this._shadow,t),this._zIndex=t.y+this.options.zIndexOffset,this._resetZIndex()},_updateZIndex:function(t){this._icon&&(this._icon.style.zIndex=this._zIndex+t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center).round();this._setPos(e)},_initInteraction:function(){if(this.options.interactive&&(_e(this._icon,"leaflet-interactive"),this.addInteractiveTarget(this._icon),ei)){var t=this.options.draggable;this.dragging&&(t=this.dragging.enabled(),this.dragging.disable()),this.dragging=new ei(this),t&&this.dragging.enable()}},setOpacity:function(t){return this.options.opacity=t,this._map&&this._updateOpacity(),this},_updateOpacity:function(){var t=this.options.opacity;this._icon&&xe(this._icon,t),this._shadow&&xe(this._shadow,t)},_bringToFront:function(){this._updateZIndex(this.options.riseOffset)},_resetZIndex:function(){this._updateZIndex(0)},_panOnFocus:function(){var t=this._map;if(t){var e=this.options.icon.options,n=e.iconSize?P(e.iconSize):P(0,0),i=e.iconAnchor?P(e.iconAnchor):P(0,0);t.panInside(this._latlng,{paddingTopLeft:i,paddingBottomRight:n.subtract(i)})}},_getPopupAnchor:function(){return this.options.icon.options.popupAnchor},_getTooltipAnchor:function(){return this.options.icon.options.tooltipAnchor}});function ii(t,e){return new ni(t,e)}var oi=Gn.extend({options:{stroke:!0,color:"#3388ff",weight:3,opacity:1,lineCap:"round",lineJoin:"round",dashArray:null,dashOffset:null,fill:!1,fillColor:null,fillOpacity:.2,f
vendor: 1,337 bytes, line 2
2illRule:"evenodd",interactive:!0,bubblingMouseEvents:!0},beforeAdd:function(t){this._renderer=t.getRenderer(this)},onAdd:function(){this._renderer._initPath(this),this._reset(),this._renderer._addPath(this)},onRemove:function(){this._renderer._removePath(this)},redraw:function(){return this._map&&this._renderer._updatePath(this),this},setStyle:function(t){return f(this,t),this._renderer&&(this._renderer._updateStyle(this),this.options.stroke&&t&&Object.prototype.hasOwnProperty.call(t,"weight")&&this._updateBounds()),this},bringToFront:function(){return this._renderer&&this._renderer._bringToFront(this),this},bringToBack:function(){return this._renderer&&this._renderer._bringToBack(this),this},getElement:function(){return this._path},_reset:function(){this._project(),this._update()},_clickTolerance:function(){return(this.options.stroke?this.options.weight/2:0)+(this._renderer.options.tolerance||0)}}),ri=oi.extend({options:{fill:!0,radius:10},initialize:function(t,e){f(this,e),this._latlng=V(t),this._radius=this.options.radius},setLatLng:function(t){var e=this._latlng;return this._latlng=V(t),this.redraw(),this.fire("move",{oldLatLng:e,latlng:this._latlng})},getLatLng:function(){return this._latlng},setRadius:function(t){return this.options.radius=this._radius=t,this.redraw()},getRadius:function(){return this._radius}
vendor: 64,754 bytes, line 2
2,setStyle:function(t){var e=t&&t.radius||this._radius;return oi.prototype.setStyle.call(this,t),this.setRadius(e),this},_project:function(){this._point=this._map.latLngToLayerPoint(this._latlng),this._updateBounds()},_updateBounds:function(){var t=this._radius,e=this._radiusY||t,n=this._clickTolerance(),i=[t+n,e+n];this._pxBounds=new N(this._point.subtract(i),this._point.add(i))},_update:function(){this._map&&this._updatePath()},_updatePath:function(){this._renderer._updateCircle(this)},_empty:function(){return this._radius&&!this._renderer._bounds.intersects(this._pxBounds)},_containsPoint:function(t){return t.distanceTo(this._point)<=this._radius+this._clickTolerance()}});function ai(t,e){return new ri(t,e)}var si=ri.extend({initialize:function(t,e,i){if("number"==typeof e&&(e=n({},i,{radius:e})),f(this,e),this._latlng=V(t),isNaN(this.options.radius))throw new Error("Circle radius cannot be NaN");this._mRadius=this.options.radius},setRadius:function(t){return this._mRadius=t,this.redraw()},getRadius:function(){return this._mRadius},getBounds:function(){var t=[this._radius,this._radiusY||this._radius];return new F(this._map.layerPointToLatLng(this._point.subtract(t)),this._map.layerPointToLatLng(this._point.add(t)))},setStyle:oi.prototype.setStyle,_project:function(){var t=this._latlng.lng,e=this._latlng.lat,n=this._map,i=n.options.crs;if(i.distance===Z.distance){var o=Math.PI/180,r=this._mRadius/Z.R/o,a=n.project([e+r,t]),s=n.project([e-r,t]),l=a.add(s).divideBy(2),c=n.unproject(l).lat,u=Math.acos((Math.cos(r*o)-Math.sin(e*o)*Math.sin(c*o))/(Math.cos(e*o)*Math.cos(c*o)))/o;(isNaN(u)||0===u)&&(u=r/Math.cos(Math.PI/180*e)),this._point=l.subtract(n.getPixelOrigin()),this._radius=isNaN(u)?0:l.x-n.project([c,t-u]).x,this._radiusY=l.y-a.y}else{var d=i.unproject(i.project(this._latlng).subtract([this._mRadius,0]));this._point=n.latLngToLayerPoint(this._latlng),this._radius=this._point.x-n.latLngToLayerPoint(d).x}this._updateBounds()}});function li(t,e,n){return new si(t,e,n)}var ci=oi.extend({options:{smoothFactor:1,noClip:!1},initialize:function(t,e){f(this,e),this._setLatLngs(t)},getLatLngs:function(){return this._latlngs},setLatLngs:function(t){return this._setLatLngs(t),this.redraw()},isEmpty:function(){return!this._latlngs.length},closestLayerPoint:function(t){for(var e,n,i=1/0,o=null,r=Bn,a=0,s=this._parts.length;a<s;a++)for(var l=this._parts[a],c=1,u=l.length;c<u;c++){var d=r(t,e=l[c-1],n=l[c],!0);d<i&&(i=d,o=r(t,e,n))}return o&&(o.distance=Math.sqrt(i)),o},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Nn(this._defaultShape(),this._map.options.crs)},getBounds:function(){return this._bounds},addLatLng:function(t,e){return e=e||this._defaultShape(),t=V(t),e.push(t),this._bounds.extend(t),this.redraw()},_setLatLngs:function(t){this._bounds=new F,this._latlngs=this._convertLatLngs(t)},_defaultShape:function(){return Pn(this._latlngs)?this._latlngs:this._latlngs[0]},_convertLatLngs:function(t){for(var e=[],n=Pn(t),i=0,o=t.length;i<o;i++)n?(e[i]=V(t[i]),this._bounds.extend(e[i])):e[i]=this._convertLatLngs(t[i]);return e},_project:function(){var t=new N;this._rings=[],this._projectLatlngs(this._latlngs,this._rings,t),this._bounds.isValid()&&t.isValid()&&(this._rawPxBounds=t,this._updateBounds())},_updateBounds:function(){var t=this._clickTolerance(),e=new M(t,t);this._rawPxBounds&&(this._pxBounds=new N([this._rawPxBounds.min.subtract(e),this._rawPxBounds.max.add(e)]))},_projectLatlngs:function(t,e,n){var i,o,r=t[0]instanceof j,a=t.length;if(r){for(o=[],i=0;i<a;i++)o[i]=this._map.latLngToLayerPoint(t[i]),n.extend(o[i]);e.push(o)}else for(i=0;i<a;i++)this._projectLatlngs(t[i],e,n)},_clipPoints:function(){var t=this._renderer._bounds;if(this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else{var e,n,i,o,r,a,s,l=this._parts;for(e=0,i=0,o=this._rings.length;e<o;e++)for(n=0,r=(s=this._rings[e]).length;n<r-1;n++)(a=Tn(s[n],s[n+1],t,n,!0))&&(l[i]=l[i]||[],l[i].push(a[0]),a[1]===s[n+1]&&n!==r-2||(l[i].push(a[1]),i++))}},_simplifyPoints:function(){for(var t=this._parts,e=this.options.smoothFactor,n=0,i=t.length;n<i;n++)t[n]=Cn(t[n],e)},_update:function(){this._map&&(this._clipPoints(),this._simplifyPoints(),this._updatePath())},_updatePath:function(){this._renderer._updatePoly(this)},_containsPoint:function(t,e){var n,i,o,r,a,s,l=this._clickTolerance();if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(n=0,r=this._parts.length;n<r;n++)for(i=0,o=(a=(s=this._parts[n]).length)-1;i<a;o=i++)if((e||0!==i)&&An(t,s[o],s[i])<=l)return!0;return!1}});function ui(t,e){return new ci(t,e)}ci._flat=Ln;var di=ci.extend({options:{fill:!0},isEmpty:function(){return!this._latlngs.length||!this._latlngs[0].length},getCenter:function(){if(!this._map)throw new Error("Must add layer to map before using getCenter()");return Rn(this._defaultShape(),this._map.options.crs)},_convertLatLngs:function(t){var e=ci.prototype._convertLatLngs.call(this,t),n=e.length;return n>=2&&e[0]instanceof j&&e[0].equals(e[n-1])&&e.pop(),e},_setLatLngs:function(t){ci.prototype._setLatLngs.call(this,t),Pn(this._latlngs)&&(this._latlngs=[this._latlngs])},_defaultShape:function(){return Pn(this._latlngs[0])?this._latlngs[0]:this._latlngs[0][0]},_clipPoints:function(){var t=this._renderer._bounds,e=this.options.weight,n=new M(e,e);if(t=new N(t.min.subtract(n),t.max.add(n)),this._parts=[],this._pxBounds&&this._pxBounds.intersects(t))if(this.options.noClip)this._parts=this._rings;else for(var i,o=0,r=this._rings.length;o<r;o++)(i=Fn(this._rings[o],t,!0)).length&&this._parts.push(i)},_updatePath:function(){this._renderer._updatePoly(this,!0)},_containsPoint:function(t){var e,n,i,o,r,a,s,l,c=!1;if(!this._pxBounds||!this._pxBounds.contains(t))return!1;for(o=0,s=this._parts.length;o<s;o++)for(r=0,a=(l=(e=this._parts[o]).length)-1;r<l;a=r++)n=e[r],i=e[a],n.y>t.y!=i.y>t.y&&t.x<(i.x-n.x)*(t.y-n.y)/(i.y-n.y)+n.x&&(c=!c);return c||ci.prototype._containsPoint.call(this,t,!0)}});function hi(t,e){return new di(t,e)}var fi=Kn.extend({initialize:function(t,e){f(this,e),this._layers={},t&&this.addData(t)},addData:function(t){var e,n,i,o=v(t)?t:t.features;if(o){for(e=0,n=o.length;e<n;e++)((i=o[e]).geometries||i.geometry||i.features||i.coordinates)&&this.addData(i);return this}var r=this.options;if(r.filter&&!r.filter(t))return this;var a=pi(t,r);return a?(a.feature=_i(t),a.defaultOptions=a.options,this.resetStyle(a),r.onEachFeature&&r.onEachFeature(t,a),this.addLayer(a)):this},resetStyle:function(t){return void 0===t?this.eachLayer(this.resetStyle,this):(t.options=n({},t.defaultOptions),this._setLayerStyle(t,this.options.style),this)},setStyle:function(t){return this.eachLayer((function(e){this._setLayerStyle(e,t)}),this)},_setLayerStyle:function(t,e){t.setStyle&&("function"==typeof e&&(e=e(t.feature)),t.setStyle(e))}});function pi(t,e){var n,i,o,r,a="Feature"===t.type?t.geometry:t,s=a?a.coordinates:null,l=[],c=e&&e.pointToLayer,u=e&&e.coordsToLatLng||gi;if(!s&&!a)return null;switch(a.type){case"Point":return mi(c,t,n=u(s),e);case"MultiPoint":for(o=0,r=s.length;o<r;o++)n=u(s[o]),l.push(mi(c,t,n,e));return new Kn(l);case"LineString":case"MultiLineString":return i=vi(s,"LineString"===a.type?0:1,u),new ci(i,e);case"Polygon":case"MultiPolygon":return i=vi(s,"Polygon"===a.type?1:2,u),new di(i,e);case"GeometryCollection":for(o=0,r=a.geometries.length;o<r;o++){var d=pi({geometry:a.geometries[o],type:"Feature",properties:t.properties},e);d&&l.push(d)}return new Kn(l);case"FeatureCollection":for(o=0,r=a.features.length;o<r;o++){var h=pi(a.features[o],e);h&&l.push(h)}return new Kn(l);default:throw new Error("Invalid GeoJSON object.")}}function mi(t,e,n,i){return t?t(e,n):new ni(n,i&&i.markersInheritOptions&&i)}function gi(t){return new j(t[1],t[0],t[2])}function vi(t,e,n){for(var i,o=[],r=0,a=t.length;r<a;r++)i=e?vi(t[r],e-1,n):(n||gi)(t[r]),o.push(i);return o}function ki(t,e){return void 0!==(t=V(t)).alt?[u(t.lng,e),u(t.lat,e),u(t.alt,e)]:[u(t.lng,e),u(t.lat,e)]}function bi(t,e,n,i){for(var o=[],r=0,a=t.length;r<a;r++)o.push(e?bi(t[r],Pn(t[r])?0:e-1,n,i):ki(t[r],i));return!e&&n&&o.push(o[0].slice()),o}function yi(t,e){return t.feature?n({},t.feature,{geometry:e}):_i(e)}function _i(t){return"Feature"===t.type||"FeatureCollection"===t.type?t:{type:"Feature",properties:{},geometry:t}}var wi={toGeoJSON:function(t){return yi(this,{type:"Point",coordinates:ki(this.getLatLng(),t)})}};function Ci(t,e){return new fi(t,e)}ni.include(wi),si.include(wi),ri.include(wi),ci.include({toGeoJSON:function(t){var e=!Pn(this._latlngs);return yi(this,{type:(e?"Multi":"")+"LineString",coordinates:bi(this._latlngs,e?1:0,!1,t)})}}),di.include({toGeoJSON:function(t){var e=!Pn(this._latlngs),n=e&&!Pn(this._latlngs[0]),i=bi(this._latlngs,n?2:e?1:0,!0,t);return e||(i=[i]),yi(this,{type:(n?"Multi":"")+"Polygon",coordinates:i})}}),$n.include({toMultiPoint:function(t){var e=[];return this.eachLayer((function(n){e.push(n.toGeoJSON(t).geometry.coordinates)})),yi(this,{type:"MultiPoint",coordinates:e})},toGeoJSON:function(t){var e=this.feature&&this.feature.geometry&&this.feature.geometry.type;if("MultiPoint"===e)return this.toMultiPoint(t);var n="GeometryCollection"===e,i=[];return this.eachLayer((function(e){if(e.toGeoJSON){var o=e.toGeoJSON(t);if(n)i.push(o.geometry);else{var r=_i(o);"FeatureCollection"===r.type?i.push.apply(i,r.features):i.push(r)}}})),n?yi(this,{geometries:i,type:"GeometryCollection"}):{type:"FeatureCollection",features:i}}});var Ai=Ci,xi=Gn.extend({options:{opacity:1,alt:"",interactive:!1,crossOrigin:!1,errorOverlayUrl:"",zIndex:1,className:""},initialize:function(t,e,n){this._url=t,this._bounds=R(e),f(this,n)},onAdd:function(){this._image||(this._initImage(),this.options.opacity<1&&this._updateOpacity()),this.options.interactive&&(_e(this._image,"leaflet-interactive"),this.addInteractiveTarget(this._image)),this.getPane().appendChild(this._image),this._reset()},onRemove:function(){ge(this._image),this.options.interactive&&this.removeInteractiveTarget(this._image)},setOpacity:function(t){return this.options.opacity=t,this._image&&this._updateOpacity(),this},setStyle:function(t){return t.opacity&&this.setOpacity(t.opacity),this},bringToFront:function(){return this._map&&ke(this._image),this},bringToBack:function(){return this._map&&be(this._image),this},setUrl:function(t){return this._url=t,this._image&&(this._image.src=t),this},setBounds:function(t){return this._bounds=R(t),this._map&&this._reset(),this},getEvents:function(){var t={zoom:this._reset,viewreset:this._reset};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},getBounds:function(){return this._bounds},getElement:function(){return this._image},_initImage:function(){var t="IMG"===this._url.tagName,e=this._image=t?this._url:me("img");_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onload=o(this.fire,this,"load"),e.onerror=o(this._overlayOnError,this,"error"),(this.options.crossOrigin||""===this.options.crossOrigin)&&(e.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),this.options.zIndex&&this._updateZIndex(),t?this._url=e.src:(e.src=this._url,e.alt=this.options.alt)},_animateZoom:function(t){var e=this._map.getZoomScale(t.zoom),n=this._map._latLngBoundsToNewLayerBounds(this._bounds,t.zoom,t.center).min;Se(this._image,n,e)},_reset:function(){var t=this._image,e=new N(this._map.latLngToLayerPoint(this._bounds.getNorthWest()),this._map.latLngToLayerPoint(this._bounds.getSouthEast())),n=e.getSize();Te(t,e.min),t.style.width=n.x+"px",t.style.height=n.y+"px"},_updateOpacity:function(){xe(this._image,this.options.opacity)},_updateZIndex:function(){this._image&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._image.style.zIndex=this.options.zIndex)},_overlayOnError:function(){this.fire("error");var t=this.options.errorOverlayUrl;t&&this._url!==t&&(this._url=t,this._image.src=t)},getCenter:function(){return this._bounds.getCenter()}}),Di=function(t,e,n){return new xi(t,e,n)},Ei=xi.extend({options:{autoplay:!0,loop:!0,keepAspectRatio:!0,muted:!1,playsInline:!0},_initImage:function(){var t="VIDEO"===this._url.tagName,e=this._image=t?this._url:me("video");if(_e(e,"leaflet-image-layer"),this._zoomAnimated&&_e(e,"leaflet-zoom-animated"),this.options.className&&_e(e,this.options.className),e.onselectstart=c,e.onmousemove=c,e.onloadeddata=o(this.fire,this,"load"),t){for(var n=e.getElementsByTagName("source"),i=[],r=0;r<n.length;r++)i.push(n[r].src);this._url=n.length>0?i:[e.src]}else{v(this._url)||(this._url=[this._url]),!this.options.keepAspectRatio&&Object.prototype.hasOwnProperty.call(e.style,"objectFit")&&(e.style.objectFit="fill"),e.autoplay=!!this.options.autoplay,e.loop=!!this.options.loop,e.muted=!!this.options.muted,e.playsInline=!!this.options.playsInline;for(var a=0;a<this._url.length;a++){var s=me("source");s.src=this._url[a],e.appendChild(s)}}}});function Si(t,e,n){return new Ei(t,e,n)}var Ti=xi.extend({_initImage:function(){var t=this._image=this._url;_e(t,"leaflet-image-layer"),this._zoomAnimated&&_e(t,"leaflet-zoom-animated"),this.options.className&&_e(t,this.options.className),t.onselectstart=c,t.onmousemove=c}});function Ii(t,e,n){return new Ti(t,e,n)}var zi=Gn.extend({options:{interactive:!1,offset:[0,0],className:"",pane:void 0,content:""},initialize:function(t,e){t&&(t instanceof j||v(t))?(this._latlng=V(t),f(this,e)):(f(this,t),this._source=e),this.options.content&&(this._content=this.options.content)},openOn:function(t){return(t=arguments.length?t:this._source._map).hasLayer(this)||t.addLayer(this),this},close:function(){return this._map&&this._map.removeLayer(this),this},toggle:function(t){return this._map?this.close():(arguments.length?this._source=t:t=this._source,this._prepareOpen(),this.openOn(t._map)),this},onAdd:function(t){this._zoomAnimated=t._zoomAnimated,this._container||this._initLayout(),t._fadeAnimated&&xe(this._container,0),clearTimeout(this._removeTimeout),this.getPane().appendChild(this._container),this.update(),t._fadeAnimated&&xe(this._container,1),this.bringToFront(),this.options.interactive&&(_e(this._container,"leaflet-interactive"),this.addInteractiveTarget(this._container))},onRemove:function(t){t._fadeAnimated?(xe(this._container,0),this._removeTimeout=setTimeout(o(ge,void 0,this._container),200)):ge(this._container),this.options.interactive&&(we(this._container,"leaflet-interactive"),this.removeInteractiveTarget(this._container))},getLatLng:function(){return this._latlng},setLatLng:function(t){return this._latlng=V(t),this._map&&(this._updatePosition(),this._adjustPan()),this},getContent:function(){return this._content},setContent:function(t){return this._content=t,this.update(),this},getElement:function(){return this._container},update:function(){this._map&&(this._container.style.visibility="hidden",this._updateContent(),this._updateLayout(),this._updatePosition(),this._container.style.visibility="",this._adjustPan())},getEvents:function(){var t={zoom:this._updatePosition,viewreset:this._updatePosition};return this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},isOpen:function(){return!!this._map&&this._map.hasLayer(this)},bringToFront:function(){return this._map&&ke(this._container),this},bringToBack:function(){return this._map&&be(this._container),this},_prepareOpen:function(t){var e=this._source;if(!e._map)return!1;if(e instanceof Kn){e=null;var n=this._source._layers;for(var i in n)if(n[i]._map){e=n[i];break}if(!e)return!1;this._source=e}if(!t)if(e.getCenter)t=e.getCenter();else if(e.getLatLng)t=e.getLatLng();else{if(!e.getBounds)throw new Error("Unable to get source layer LatLng.");t=e.getBounds().getCenter()}return this.setLatLng(t),this._map&&this.update(),!0},_updateContent:function(){if(this._content){var t=this._contentNode,e="function"==typeof this._content?this._content(this._source||this):this._content;if("string"==typeof e)t.innerHTML=e;else{for(;t.hasChildNodes();)t.removeChild(t.firstChild);t.appendChild(e)}this.fire("contentupdate")}},_updatePosition:function(){if(this._map){var t=this._map.latLngToLayerPoint(this._latlng),e=P(this.options.offset),n=this._getAnchor();this._zoomAnimated?Te(this._container,t.add(n)):e=e.add(t).add(n);var i=this._containerBottom=-e.y,o=this._containerLeft=-Math.round(this._containerWidth/2)+e.x;this._container.style.bottom=i+"px",this._container.style.left=o+"px"}},_getAnchor:function(){return[0,0]}});rn.include({_initOverlay:function(t,e,n,i){var o=e;return o instanceof t||(o=new t(i).setContent(e)),n&&o.setLatLng(n),o}}),Gn.include({_initOverlay:function(t,e,n,i){var o=n;return o instanceof t?(f(o,i),o._source=this):(o=e&&!i?e:new t(i,this)).setContent(n),o}});var Mi=zi.extend({options:{pane:"popupPane",offset:[0,7],maxWidth:300,minWidth:50,maxHeight:null,autoPan:!0,autoPanPaddingTopLeft:null,autoPanPaddingBottomRight:null,autoPanPadding:[5,5],keepInView:!1,closeButton:!0,autoClose:!0,closeOnEscapeKey:!0,className:""},openOn:function(t){return!(t=arguments.length?t:this._source._map).hasLayer(this)&&t._popup&&t._popup.options.autoClose&&t.removeLayer(t._popup),t._popup=this,zi.prototype.openOn.call(this,t)},onAdd:function(t){zi.prototype.onAdd.call(this,t),t.fire("popupopen",{popup:this}),this._source&&(this._source.fire("popupopen",{popup:this},!0),this._source instanceof oi||this._source.on("preclick",We))},onRemove:function(t){zi.prototype.onRemove.call(this,t),t.fire("popupclose",{popup:this}),this._source&&(this._source.fire("popupclose",{popup:this},!0),this._source instanceof oi||this._source.off("preclick",We))},getEvents:function(){var t=zi.prototype.getEvents.call(this);return(void 0!==this.options.closeOnClick?this.options.closeOnClick:this._map.options.closePopupOnClick)&&(t.preclick=this.close),this.options.keepInView&&(t.moveend=this._adjustPan),t},_initLayout:function(){var t="leaflet-popup",e=this._container=me("div",t+" "+(this.options.className||"")+" leaflet-zoom-animated"),n=this._wrapper=me("div",t+"-content-wrapper",e);if(this._contentNode=me("div",t+"-content",n),$e(e),Ge(this._contentNode),Re(e,"contextmenu",We),this._tipContainer=me("div",t+"-tip-container",e),this._tip=me("div",t+"-tip",this._tipContainer),this.options.closeButton){var i=this._closeButton=me("a",t+"-close-button",e);i.setAttribute("role","button"),i.setAttribute("aria-label","Close popup"),i.href="#close",i.innerHTML='<span aria-hidden="true">&#215;</span>',Re(i,"click",(function(t){Ye(t),this.close()}),this)}},_updateLayout:function(){var t=this._contentNode,e=t.style;e.width="",e.whiteSpace="nowrap";var n=t.offsetWidth;n=Math.min(n,this.options.maxWidth),n=Math.max(n,this.options.minWidth),e.width=n+1+"px",e.whiteSpace="",e.height="";var i=t.offsetHeight,o=this.options.maxHeight,r="leaflet-popup-scrolled";o&&i>o?(e.height=o+"px",_e(t,r)):we(t,r),this._containerWidth=this._container.offsetWidth},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center),n=this._getAnchor();Te(this._container,e.add(n))},_adjustPan:function(){if(this.options.autoPan)if(this._map._panAnim&&this._map._panAnim.stop(),this._autopanning)this._autopanning=!1;else{var t=this._map,e=parseInt(pe(this._container,"marginBottom"),10)||0,n=this._container.offsetHeight+e,i=this._containerWidth,o=new M(this._containerLeft,-n-this._containerBottom);o._add(Ie(this._container));var r=t.layerPointToContainerPoint(o),a=P(this.options.autoPanPadding),s=P(this.options.autoPanPaddingTopLeft||a),l=P(this.options.autoPanPaddingBottomRight||a),c=t.getSize(),u=0,d=0;r.x+i+l.x>c.x&&(u=r.x+i-c.x+l.x),r.x-u-s.x<0&&(u=r.x-s.x),r.y+n+l.y>c.y&&(d=r.y+n-c.y+l.y),r.y-d-s.y<0&&(d=r.y-s.y),(u||d)&&(this.options.keepInView&&(this._autopanning=!0),t.fire("autopanstart").panBy([u,d]))}},_getAnchor:function(){return P(this._source&&this._source._getPopupAnchor?this._source._getPopupAnchor():[0,0])}}),Bi=function(t,e){return new Mi(t,e)};rn.mergeOptions({closePopupOnClick:!0}),rn.include({openPopup:function(t,e,n){return this._initOverlay(Mi,t,e,n).openOn(this),this},closePopup:function(t){return(t=arguments.length?t:this._popup)&&t.close(),this}}),Gn.include({bindPopup:function(t,e){return this._popup=this._initOverlay(Mi,this._popup,t,e),this._popupHandlersAdded||(this.on({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!0),this},unbindPopup:function(){return this._popup&&(this.off({click:this._openPopup,keypress:this._onKeyPress,remove:this.closePopup,move:this._movePopup}),this._popupHandlersAdded=!1,this._popup=null),this},openPopup:function(t){return this._popup&&(this instanceof Kn||(this._popup._source=this),this._popup._prepareOpen(t||this._latlng)&&this._popup.openOn(this._map)),this},closePopup:function(){return this._popup&&this._popup.close(),this},togglePopup:function(){return this._popup&&this._popup.toggle(this),this},isPopupOpen:function(){return!!this._popup&&this._popup.isOpen()},setPopupContent:function(t){return this._popup&&this._popup.setContent(t),this},getPopup:function(){return this._popup},_openPopup:function(t){if(this._popup&&this._map){Ke(t);var e=t.layer||t.target;this._popup._source!==e||e instanceof oi?(this._popup._source=e,this.openPopup(t.latlng)):this._map.hasLayer(this._popup)?this.closePopup():this.openPopup(t.latlng)}},_movePopup:function(t){this._popup.setLatLng(t.latlng)},_onKeyPress:function(t){13===t.originalEvent.keyCode&&this._openPopup(t)}});var Pi=zi.extend({options:{pane:"tooltipPane",offset:[0,0],direction:"auto",permanent:!1,sticky:!1,opacity:.9},onAdd:function(t){zi.prototype.onAdd.call(this,t),this.setOpacity(this.options.opacity),t.fire("tooltipopen",{tooltip:this}),this._source&&(this.addEventParent(this._source),this._source.fire("tooltipopen",{tooltip:this},!0))},onRemove:function(t){zi.prototype.onRemove.call(this,t),t.fire("tooltipclose",{tooltip:this}),this._source&&(this.removeEventParent(this._source),this._source.fire("tooltipclose",{tooltip:this},!0))},getEvents:function(){var t=zi.prototype.getEvents.call(this);return this.options.permanent||(t.preclick=this.close),t},_initLayout:function(){var t="leaflet-tooltip "+(this.options.className||"")+" leaflet-zoom-"+(this._zoomAnimated?"animated":"hide");this._contentNode=this._container=me("div",t),this._container.setAttribute("role","tooltip"),this._container.setAttribute("id","leaflet-tooltip-"+a(this))},_updateLayout:function(){},_adjustPan:function(){},_setPosition:function(t){var e,n,i=this._map,o=this._container,r=i.latLngToContainerPoint(i.getCenter()),a=i.layerPointToContainerPoint(t),s=this.options.direction,l=o.offsetWidth,c=o.offsetHeight,u=P(this.options.offset),d=this._getAnchor();"top"===s?(e=l/2,n=c):"bottom"===s?(e=l/2,n=0):"center"===s?(e=l/2,n=c/2):"right"===s?(e=0,n=c/2):"left"===s?(e=l,n=c/2):a.x<r.x?(s="right",e=0,n=c/2):(s="left",e=l+2*(u.x+d.x),n=c/2),t=t.subtract(P(e,n,!0)).add(u).add(d),we(o,"leaflet-tooltip-right"),we(o,"leaflet-tooltip-left"),we(o,"leaflet-tooltip-top"),we(o,"leaflet-tooltip-bottom"),_e(o,"leaflet-tooltip-"+s),Te(o,t)},_updatePosition:function(){var t=this._map.latLngToLayerPoint(this._latlng);this._setPosition(t)},setOpacity:function(t){this.options.opacity=t,this._container&&xe(this._container,t)},_animateZoom:function(t){var e=this._map._latLngToNewLayerPoint(this._latlng,t.zoom,t.center);this._setPosition(e)},_getAnchor:function(){return P(this._source&&this._source._getTooltipAnchor&&!this.options.sticky?this._source._getTooltipAnchor():[0,0])}}),Li=function(t,e){return new Pi(t,e)};rn.include({openTooltip:function(t,e,n){return this._initOverlay(Pi,t,e,n).openOn(this),this},closeTooltip:function(t){return t.close(),this}}),Gn.include({bindTooltip:function(t,e){return this._tooltip&&this.isTooltipOpen()&&this.unbindTooltip(),this._tooltip=this._initOverlay(Pi,this._tooltip,t,e),this._initTooltipInteractions(),this._tooltip.options.permanent&&this._map&&this._map.hasLayer(this)&&this.openTooltip(),this},unbindTooltip:function(){return this._tooltip&&(this._initTooltipInteractions(!0),this.closeTooltip(),this._tooltip=null),this},_initTooltipInteractions:function(t){if(t||!this._tooltipHandlersAdded){var e=t?"off":"on",n={remove:this.closeTooltip,move:this._moveTooltip};this._tooltip.options.permanent?n.add=this._openTooltip:(n.mouseover=this._openTooltip,n.mouseout=this.closeTooltip,n.click=this._openTooltip,this._map?this._addFocusListeners():n.add=this._addFocusListeners),this._tooltip.options.sticky&&(n.mousemove=this._moveTooltip),this[e](n),this._tooltipHandlersAdded=!t}},openTooltip:function(t){return this._tooltip&&(this instanceof Kn||(this._tooltip._source=this),this._tooltip._prepareOpen(t)&&(this._tooltip.openOn(this._map),this.getElement?this._setAriaDescribedByOnLayer(this):this.eachLayer&&this.eachLayer(this._setAriaDescribedByOnLayer,this))),this},closeTooltip:function(){if(this._tooltip)return this._tooltip.close()},toggleTooltip:function(){return this._tooltip&&this._tooltip.toggle(this),this},isTooltipOpen:function(){return this._tooltip.isOpen()},setTooltipContent:function(t){return this._tooltip&&this._tooltip.setContent(t),this},getTooltip:function(){return this._tooltip},_addFocusListeners:function(){this.getElement?this._addFocusListenersOnLayer(this):this.eachLayer&&this.eachLayer(this._addFocusListenersOnLayer,this)},_addFocusListenersOnLayer:function(t){var e=t.getElement();e&&(Re(e,"focus",(function(){this._tooltip._source=t,this.openTooltip()}),this),Re(e,"blur",this.closeTooltip,this))},_setAriaDescribedByOnLayer:function(t){var e=t.getElement();e&&e.setAttribute("aria-describedby",this._tooltip._container.id)},_openTooltip:function(t){!this._tooltip||!this._map||this._map.dragging&&this._map.dragging.moving()||(this._tooltip._source=t.layer||t.target,this.openTooltip(this._tooltip.options.sticky?t.latlng:void 0))},_moveTooltip:function(t){var e,n,i=t.latlng;this._tooltip.options.sticky&&t.originalEvent&&(e=this._map.mouseEventToContainerPoint(t.originalEvent),n=this._map.containerPointToLayerPoint(e),i=this._map.layerPointToLatLng(n)),this._tooltip.setLatLng(i)}});var Ni=Jn.extend({options:{iconSize:[12,12],html:!1,bgPos:null,className:"leaflet-div-icon"},createIcon:function(t){var e=t&&"DIV"===t.tagName?t:document.createElement("div"),n=this.options;if(n.html instanceof Element?(ve(e),e.appendChild(n.html)):e.innerHTML=!1!==n.html?n.html:"",n.bgPos){var i=P(n.bgPos);e.style.backgroundPosition=-i.x+"px "+-i.y+"px"}return this._setIconStyles(e,"icon"),e},createShadow:function(){return null}});function Oi(t){return new Ni(t)}Jn.Default=ti;var Fi=Gn.extend({options:{tileSize:256,opacity:1,updateWhenIdle:Ft.mobile,updateWhenZooming:!0,updateInterval:200,zIndex:1,bounds:null,minZoom:0,maxZoom:void 0,maxNativeZoom:void 0,minNativeZoom:void 0,noWrap:!1,pane:"tilePane",className:"",keepBuffer:2},initialize:function(t){f(this,t)},onAdd:function(){this._initContainer(),this._levels={},this._tiles={},this._resetView()},beforeAdd:function(t){t._addZoomLimit(this)},onRemove:function(t){this._removeAllTiles(),ge(this._container),t._removeZoomLimit(this),this._container=null,this._tileZoom=void 0},bringToFront:function(){return this._map&&(ke(this._container),this._setAutoZIndex(Math.max)),this},bringToBack:function(){return this._map&&(be(this._container),this._setAutoZIndex(Math.min)),this},getContainer:function(){return this._container},setOpacity:function(t){return this.options.opacity=t,this._updateOpacity(),this},setZIndex:function(t){return this.options.zIndex=t,this._updateZIndex(),this},isLoading:function(){return this._loading},redraw:function(){if(this._map){this._removeAllTiles();var t=this._clampZoom(this._map.getZoom());t!==this._tileZoom&&(this._tileZoom=t,this._updateLevels()),this._update()}return this},getEvents:function(){var t={viewprereset:this._invalidateAll,viewreset:this._resetView,zoom:this._resetView,moveend:this._onMoveEnd};return this.options.updateWhenIdle||(this._onMove||(this._onMove=s(this._onMoveEnd,this.options.updateInterval,this)),t.move=this._onMove),this._zoomAnimated&&(t.zoomanim=this._animateZoom),t},createTile:function(){return document.createElement("div")},getTileSize:function(){var t=this.options.tileSize;return t instanceof M?t:new M(t,t)},_updateZIndex:function(){this._container&&void 0!==this.options.zIndex&&null!==this.options.zIndex&&(this._container.style.zIndex=this.options.zIndex)},_setAutoZIndex:function(t){for(var e,n=this.getPane().children,i=-t(-1/0,1/0),o=0,r=n.length;o<r;o++)e=n[o].style.zIndex,n[o]!==this._container&&e&&(i=t(i,+e));isFinite(i)&&(this.options.zIndex=i+t(-1,1),this._updateZIndex())},_updateOpacity:function(){if(this._map&&!Ft.ielt9){xe(this._container,this.options.opacity);var t=+new Date,e=!1,n=!1;for(var i in this._tiles){var o=this._tiles[i];if(o.current&&o.loaded){var r=Math.min(1,(t-o.loaded)/200);xe(o.el,r),r<1?e=!0:(o.active?n=!0:this._onOpaqueTile(o),o.active=!0)}}n&&!this._noPrune&&this._pruneTiles(),e&&(D(this._fadeFrame),this._fadeFrame=x(this._updateOpacity,this))}},_onOpaqueTile:c,_initContainer:function(){this._container||(this._container=me("div","leaflet-layer "+(this.options.className||"")),this._updateZIndex(),this.options.opacity<1&&this._updateOpacity(),this.getPane().appendChild(this._container))},_updateLevels:function(){var t=this._tileZoom,e=this.options.maxZoom;if(void 0!==t){for(var n in this._levels)n=Number(n),this._levels[n].el.children.length||n===t?(this._levels[n].el.style.zIndex=e-Math.abs(t-n),this._onUpdateLevel(n)):(ge(this._levels[n].el),this._removeTilesAtZoom(n),this._onRemoveLevel(n),delete this._levels[n]);var i=this._levels[t],o=this._map;return i||((i=this._levels[t]={}).el=me("div","leaflet-tile-container leaflet-zoom-animated",this._container),i.el.style.zIndex=e,i.origin=o.project(o.unproject(o.getPixelOrigin()),t).round(),i.zoom=t,this._setZoomTransform(i,o.getCenter(),o.getZoom()),c(i.el.offsetWidth),this._onCreateLevel(i)),this._level=i,i}},_onUpdateLevel:c,_onRemoveLevel:c,_onCreateLevel:c,_pruneTiles:function(){if(this._map){var t,e,n=this._map.getZoom();if(n>this.options.maxZoom||n<this.options.minZoom)this._removeAllTiles();else{for(t in this._tiles)(e=this._tiles[t]).retain=e.current;for(t in this._tiles)if((e=this._tiles[t]).current&&!e.active){var i=e.coords;this._retainParent(i.x,i.y,i.z,i.z-5)||this._retainChildren(i.x,i.y,i.z,i.z+2)}for(t in this._tiles)this._tiles[t].retain||this._removeTile(t)}}},_removeTilesAtZoom:function(t){for(var e in this._tiles)this._tiles[e].coords.z===t&&this._removeTile(e)},_removeAllTiles:function(){for(var t in this._tiles)this._removeTile(t)},_invalidateAll:function(){for(var t in this._levels)ge(this._levels[t].el),this._onRemoveLevel(Number(t)),delete this._levels[t];this._removeAllTiles(),this._tileZoom=void 0},_retainParent:function(t,e,n,i){var o=Math.floor(t/2),r=Math.floor(e/2),a=n-1,s=new M(+o,+r);s.z=+a;var l=this._tileCoordsToKey(s),c=this._tiles[l];return c&&c.active?(c.retain=!0,!0):(c&&c.loaded&&(c.retain=!0),a>i&&this._retainParent(o,r,a,i))},_retainChildren:function(t,e,n,i){for(var o=2*t;o<2*t+2;o++)for(var r=2*e;r<2*e+2;r++){var a=new M(o,r);a.z=n+1;var s=this._tileCoordsToKey(a),l=this._tiles[s];l&&l.active?l.retain=!0:(l&&l.loaded&&(l.retain=!0),n+1<i&&this._retainChildren(o,r,n+1,i))}},_resetView:function(t){var e=t&&(t.pinch||t.flyTo);this._setView(this._map.getCenter(),this._map.getZoom(),e,e)},_animateZoom:function(t){this._setView(t.center,t.zoom,!0,t.noUpdate)},_clampZoom:function(t){var e=this.options;return void 0!==e.minNativeZoom&&t<e.minNativeZoom?e.minNativeZoom:void 0!==e.maxNativeZoom&&e.maxNativeZoom<t?e.maxNativeZoom:t},_setView:function(t,e,n,i){var o=Math.round(e);o=void 0!==this.options.maxZoom&&o>this.options.maxZoom||void 0!==this.options.minZoom&&o<this.options.minZoom?void 0:this._clampZoom(o);var r=this.options.updateWhenZooming&&o!==this._tileZoom;i&&!r||(this._tileZoom=o,this._abortLoading&&this._abortLoading(),this._updateLevels(),this._resetGrid(),void 0!==o&&this._update(t),n||this._pruneTiles(),this._noPrune=!!n),this._setZoomTransforms(t,e)},_setZoomTransforms:function(t,e){for(var n in this._levels)this._setZoomTransform(this._levels[n],t,e)},_setZoomTransform:function(t,e,n){var i=this._map.getZoomScale(n,t.zoom),o=t.origin.multiplyBy(i).subtract(this._map._getNewPixelOrigin(e,n)).round();Ft.any3d?Se(t.el,o,i):Te(t.el,o)},_resetGrid:function(){var t=this._map,e=t.options.crs,n=this._tileSize=this.getTileSize(),i=this._tileZoom,o=this._map.getPixelWorldBounds(this._tileZoom);o&&(this._globalTileRange=this._pxBoundsToTileRange(o)),this._wrapX=e.wrapLng&&!this.options.noWrap&&[Math.floor(t.project([0,e.wrapLng[0]],i).x/n.x),Math.ceil(t.project([0,e.wrapLng[1]],i).x/n.y)],this._wrapY=e.wrapLat&&!this.options.noWrap&&[Math.floor(t.project([e.wrapLat[0],0],i).y/n.x),Math.ceil(t.project([e.wrapLat[1],0],i).y/n.y)]},_onMoveEnd:function(){this._map&&!this._map._animatingZoom&&this._update()},_getTiledPixelBounds:function(t){var e=this._map,n=e._animatingZoom?Math.max(e._animateToZoom,e.getZoom()):e.getZoom(),i=e.getZoomScale(n,this._tileZoom),o=e.project(t,this._tileZoom).floor(),r=e.getSize().divideBy(2*i);return new N(o.subtract(r),o.add(r))},_update:function(t){var e=this._map;if(e){var n=this._clampZoom(e.getZoom());if(void 0===t&&(t=e.getCenter()),void 0!==this._tileZoom){var i=this._getTiledPixelBounds(t),o=this._pxBoundsToTileRange(i),r=o.getCenter(),a=[],s=this.options.keepBuffer,l=new N(o.getBottomLeft().subtract([s,-s]),o.getTopRight().add([s,-s]));if(!(isFinite(o.min.x)&&isFinite(o.min.y)&&isFinite(o.max.x)&&isFinite(o.max.y)))throw new Error("Attempted to load an infinite number of tiles");for(var c in this._tiles){var u=this._tiles[c].coords;u.z===this._tileZoom&&l.contains(new M(u.x,u.y))||(this._tiles[c].current=!1)}if(Math.abs(n-this._tileZoom)>1)this._setView(t,n);else{for(var d=o.min.y;d<=o.max.y;d++)for(var h=o.min.x;h<=o.max.x;h++){var f=new M(h,d);if(f.z=this._tileZoom,this._isValidTile(f)){var p=this._tiles[this._tileCoordsToKey(f)];p?p.current=!0:a.push(f)}}if(a.sort((function(t,e){return t.distanceTo(r)-e.distanceTo(r)})),0!==a.length){this._loading||(this._loading=!0,this.fire("loading"));var m=document.createDocumentFragment();for(h=0;h<a.length;h++)this._addTile(a[h],m);this._level.el.appendChild(m)}}}}},_isValidTile:function(t){var e=this._map.options.crs;if(!e.infinite){var n=this._globalTileRange;if(!e.wrapLng&&(t.x<n.min.x||t.x>n.max.x)||!e.wrapLat&&(t.y<n.min.y||t.y>n.max.y))return!1}if(!this.options.bounds)return!0;var i=this._tileCoordsToBounds(t);return R(this.options.bounds).overlaps(i)},_keyToBounds:function(t){return this._tileCoordsToBounds(this._keyToTileCoords(t))},_tileCoordsToNwSe:function(t){var e=this._map,n=this.getTileSize(),i=t.scaleBy(n),o=i.add(n);return[e.unproject(i,t.z),e.unproject(o,t.z)]},_tileCoordsToBounds:function(t){var e=this._tileCoordsToNwSe(t),n=new F(e[0],e[1]);return this.options.noWrap||(n=this._map.wrapLatLngBounds(n)),n},_tileCoordsToKey:function(t){return t.x+":"+t.y+":"+t.z},_keyToTileCoords:function(t){var e=t.split(":"),n=new M(+e[0],+e[1]);return n.z=+e[2],n},_removeTile:function(t){var e=this._tiles[t];e&&(ge(e.el),delete this._tiles[t],this.fire("tileunload",{tile:e.el,coords:this._keyToTileCoords(t)}))},_initTile:function(t){_e(t,"leaflet-tile");var e=this.getTileSize();t.style.width=e.x+"px",t.style.height=e.y+"px",t.onselectstart=c,t.onmousemove=c,Ft.ielt9&&this.options.opacity<1&&xe(t,this.options.opacity)},_addTile:function(t,e){var n=this._getTilePos(t),i=this._tileCoordsToKey(t),r=this.createTile(this._wrapCoords(t),o(this._tileReady,this,t));this._initTile(r),this.createTile.length<2&&x(o(this._tileReady,this,t,null,r)),Te(r,n),this._tiles[i]={el:r,coords:t,current:!0},e.appendChild(r),this.fire("tileloadstart",{tile:r,coords:t})},_tileReady:function(t,e,n){e&&this.fire("tileerror",{error:e,tile:n,coords:t});var i=this._tileCoordsToKey(t);(n=this._tiles[i])&&(n.loaded=+new Date,this._map._fadeAnimated?(xe(n.el,0),D(this._fadeFrame),this._fadeFrame=x(this._updateOpacity,this)):(n.active=!0,this._pruneTiles()),e||(_e(n.el,"leaflet-tile-loaded"),this.fire("tileload",{tile:n.el,coords:t})),this._noTilesToLoad()&&(this._loading=!1,this.fire("load"),Ft.ielt9||!this._map._fadeAnimated?x(this._pruneTiles,this):setTimeout(o(this._pruneTiles,this),250)))},_getTilePos:function(t){return t.scaleBy(this.getTileSize()).subtract(this._level.origin)},_wrapCoords:function(t){var e=new M(this._wrapX?l(t.x,this._wrapX):t.x,this._wrapY?l(t.y,this._wrapY):t.y);return e.z=t.z,e},_pxBoundsToTileRange:function(t){var e=this.getTileSize();return new N(t.min.unscaleBy(e).floor(),t.max.unscaleBy(e).ceil().subtract([1,1]))},_noTilesToLoad:function(){for(var t in this._tiles)if(!this._tiles[t].loaded)return!1;return!0}});function Ri(t){return new Fi(t)}var ji=Fi.extend({options:{minZoom:0,maxZoom:18,subdomains:"abc",errorTileUrl:"",zoomOffset:0,tms:!1,zoomReverse:!1,detectRetina:!1,crossOrigin:!1,referrerPolicy:!1},initialize:function(t,e){this._url=t,(e=f(this,e)).detectRetina&&Ft.retina&&e.maxZoom>0?(e.tileSize=Math.floor(e.tileSize/2),e.zoomReverse?(e.zoomOffset--,e.minZoom=Math.min(e.maxZoom,e.minZoom+1)):(e.zoomOffset++,e.maxZoom=Math.max(e.minZoom,e.maxZoom-1)),e.minZoom=Math.max(0,e.minZoom)):e.zoomReverse?e.minZoom=Math.min(e.maxZoom,e.minZoom):e.maxZoom=Math.max(e.minZoom,e.maxZoom),"string"==typeof e.subdomains&&(e.subdomains=e.subdomains.split("")),this.on("tileunload",this._onTileRemove)},setUrl:function(t,e){return this._url===t&&void 0===e&&(e=!0),this._url=t,e||this.redraw(),this},createTile:function(t,e){var n=document.createElement("img");return Re(n,"load",o(this._tileOnLoad,this,e,n)),Re(n,"error",o(this._tileOnError,this,e,n)),(this.options.crossOrigin||""===this.options.crossOrigin)&&(n.crossOrigin=!0===this.options.crossOrigin?"":this.options.crossOrigin),"string"==typeof this.options.referrerPolicy&&(n.referrerPolicy=this.options.referrerPolicy),n.alt="",n.src=this.getTileUrl(t),n},getTileUrl:function(t){var e={r:Ft.retina?"@2x":"",s:this._getSubdomain(t),x:t.x,y:t.y,z:this._getZoomForUrl()};if(this._map&&!this._map.options.crs.infinite){var i=this._globalTileRange.max.y-t.y;this.options.tms&&(e.y=i),e["-y"]=i}return g(this._url,n(e,this.options))},_tileOnLoad:function(t,e){Ft.ielt9?setTimeout(o(t,this,null,e),0):t(null,e)},_tileOnError:function(t,e,n){var i=this.options.errorTileUrl;i&&e.getAttribute("src")!==i&&(e.src=i),t(n,e)},_onTileRemove:function(t){t.tile.onload=null},_getZoomForUrl:function(){var t=this._tileZoom,e=this.options.maxZoom;return this.options.zoomReverse&&(t=e-t),t+this.options.zoomOffset},_getSubdomain:function(t){var e=Math.abs(t.x+t.y)%this.options.subdomains.length;return this.options.subdomains[e]},_abortLoading:function(){var t,e;for(t in this._tiles)if(this._tiles[t].coords.z!==this._tileZoom&&((e=this._tiles[t].el).onload=c,e.onerror=c,!e.complete)){e.src=b;var n=this._tiles[t].coords;ge(e),delete this._tiles[t],this.fire("tileabort",{tile:e,coords:n})}},_removeTile:function(t){var e=this._tiles[t];if(e)return e.el.setAttribute("src",b),Fi.prototype._removeTile.call(this,t)},_tileReady:function(t,e,n){if(this._map&&(!n||n.getAttribute("src")!==b))return Fi.prototype._tileReady.call(this,t,e,n)}});function Vi(t,e){return new ji(t,e)}var Hi=ji.extend({defaultWmsParams:{service:"WMS",request:"GetMap",layers:"",styles:"",format:"image/jpeg",transparent:!1,version:"1.1.1"},options:{crs:null,uppercase:!1},initialize:function(t,e){this._url=t;var i=n({},this.defaultWmsParams);for(var o in e)o in this.options||(i[o]=e[o]);var r=(e=f(this,e)).detectRetina&&Ft.retina?2:1,a=this.getTileSize();i.width=a.x*r,i.height=a.y*r,this.wmsParams=i},onAdd:function(t){this._crs=this.options.crs||t.options.crs,this._wmsVersion=parseFloat(this.wmsParams.version);var e=this._wmsVersion>=1.3?"crs":"srs";this.wmsParams[e]=this._crs.code,ji.prototype.onAdd.call(this,t)},getTileUrl:function(t){var e=this._tileCoordsToNwSe(t),n=this._crs,i=O(n.project(e[0]),n.project(e[1])),o=i.min,r=i.max,a=(this._wmsVersion>=1.3&&this._crs===qn?[o.y,o.x,r.y,r.x]:[o.x,o.y,r.x,r.y]).join(","),s=ji.prototype.getTileUrl.call(this,t);return s+p(this.wmsParams,s,this.options.uppercase)+(this.options.uppercase?"&BBOX=":"&bbox=")+a},setParams:function(t,e){return n(this.wmsParams,t),e||this.redraw(),this}});function Ui(t,e){return new Hi(t,e)}ji.WMS=Hi,Vi.wms=Ui;var Zi=Gn.extend({options:{padding:.1},initialize:function(t){f(this,t),a(this),this._layers=this._layers||{}},onAdd:function(){this._container||(this._initContainer(),this._zoomAnimated&&_e(this._container,"leaflet-zoom-animated")),this.getPane().appendChild(this._container),this._update(),this.on("update",this._updatePaths,this)},onRemove:function(){this.off("update",this._updatePaths,this),this._destroyContainer()},getEvents:function(){var t={viewreset:this._reset,zoom:this._onZoom,moveend:this._update,zoomend:this._onZoomEnd};return this._zoomAnimated&&(t.zoomanim=this._onAnimZoom),t},_onAnimZoom:function(t){this._updateTransform(t.center,t.zoom)},_onZoom:function(){this._updateTransform(this._map.getCenter(),this._map.getZoom())},_updateTransform:function(t,e){var n=this._map.getZoomScale(e,this._zoom),i=this._map.getSize().multiplyBy(.5+this.options.padding),o=this._map.project(this._center,e),r=i.multiplyBy(-n).add(o).subtract(this._map._getNewPixelOrigin(t,e));Ft.any3d?Se(this._container,r,n):Te(this._container,r)},_reset:function(){for(var t in this._update(),this._updateTransform(this._center,this._zoom),this._layers)this._layers[t]._reset()},_onZoomEnd:function(){for(var t in this._layers)this._layers[t]._project()},_updatePaths:function(){for(var t in this._layers)this._layers[t]._update()},_update:function(){var t=this.options.padding,e=this._map.getSize(),n=this._map.containerPointToLayerPoint(e.multiplyBy(-t)).round();this._bounds=new N(n,n.add(e.multiplyBy(1+2*t)).round()),this._center=this._map.getCenter(),this._zoom=this._map.getZoom()}}),qi=Zi.extend({options:{tolerance:0},getEvents:function(){var t=Zi.prototype.getEvents.call(this);return t.viewprereset=this._onViewPreReset,t},_onViewPreReset:function(){this._postponeUpdatePaths=!0},onAdd:function(){Zi.prototype.onAdd.call(this),this._draw()},_initContainer:function(){var t=this._container=document.createElement("canvas");Re(t,"mousemove",this._onMouseMove,this),Re(t,"click dblclick mousedown mouseup contextmenu",this._onClick,this),Re(t,"mouseout",this._handleMouseOut,this),t._leaflet_disable_events=!0,this._ctx=t.getContext("2d")},_destroyContainer:function(){D(this._redrawRequest),delete this._ctx,ge(this._container),Ve(this._container),delete this._container},_updatePaths:function(){if(!this._postponeUpdatePaths){for(var t in this._redrawBounds=null,this._layers)this._layers[t]._update();this._redraw()}},_update:function(){if(!this._map._animatingZoom||!this._bounds){Zi.prototype._update.call(this);var t=this._bounds,e=this._container,n=t.getSize(),i=Ft.retina?2:1;Te(e,t.min),e.width=i*n.x,e.height=i*n.y,e.style.width=n.x+"px",e.style.height=n.y+"px",Ft.retina&&this._ctx.scale(2,2),this._ctx.translate(-t.min.x,-t.min.y),this.fire("update")}},_reset:function(){Zi.prototype._reset.call(this),this._postponeUpdatePaths&&(this._postponeUpdatePaths=!1,this._updatePaths())},_initPath:function(t){this._updateDashArray(t),this._layers[a(t)]=t;var e=t._order={layer:t,prev:this._drawLast,next:null};this._drawLast&&(this._drawLast.next=e),this._drawLast=e,this._drawFirst=this._drawFirst||this._drawLast},_addPath:function(t){this._requestRedraw(t)},_removePath:function(t){var e=t._order,n=e.next,i=e.prev;n?n.prev=i:this._drawLast=i,i?i.next=n:this._drawFirst=n,delete t._order,delete this._layers[a(t)],this._requestRedraw(t)},_updatePath:function(t){this._extendRedrawBounds(t),t._project(),t._update(),this._requestRedraw(t)},_updateStyle:function(t){this._updateDashArray(t),this._requestRedraw(t)},_updateDashArray:function(t){if("string"==typeof t.options.dashArray){var e,n,i=t.options.dashArray.split(/[, ]+/),o=[];for(n=0;n<i.length;n++){if(e=Number(i[n]),isNaN(e))return;o.push(e)}t.options._dashArray=o}else t.options._dashArray=t.options.dashArray},_requestRedraw:function(t){this._map&&(this._extendRedrawBounds(t),this._redrawRequest=this._redrawRequest||x(this._redraw,this))},_extendRedrawBounds:function(t){if(t._pxBounds){var e=(t.options.weight||0)+1;this._redrawBounds=this._redrawBounds||new N,this._redrawBounds.extend(t._pxBounds.min.subtract([e,e])),this._redrawBounds.extend(t._pxBounds.max.add([e,e]))}},_redraw:function(){this._redrawRequest=null,this._redrawBounds&&(this._redrawBounds.min._floor(),this._redrawBounds.max._ceil()),this._clear(),this._draw(),this._redrawBounds=null},_clear:function(){var t=this._redrawBounds;if(t){var e=t.getSize();this._ctx.clearRect(t.min.x,t.min.y,e.x,e.y)}else this._ctx.save(),this._ctx.setTransform(1,0,0,1,0,0),this._ctx.clearRect(0,0,this._container.width,this._container.height),this._ctx.restore()},_draw:function(){var t,e=this._redrawBounds;if(this._ctx.save(),e){var n=e.getSize();this._ctx.beginPath(),this._ctx.rect(e.min.x,e.min.y,n.x,n.y),this._ctx.clip()}this._drawing=!0;for(var i=this._drawFirst;i;i=i.next)t=i.layer,(!e||t._pxBounds&&t._pxBounds.intersects(e))&&t._updatePath();this._drawing=!1,this._ctx.restore()},_updatePoly:function(t,e){if(this._drawing){var n,i,o,r,a=t._parts,s=a.length,l=this._ctx;if(s){for(l.beginPath(),n=0;n<s;n++){for(i=0,o=a[n].length;i<o;i++)r=a[n][i],l[i?"lineTo":"moveTo"](r.x,r.y);e&&l.closePath()}this._fillStroke(l,t)}}},_updateCircle:function(t){if(this._drawing&&!t._empty()){var e=t._point,n=this._ctx,i=Math.max(Math.round(t._radius),1),o=(Math.max(Math.round(t._radiusY),1)||i)/i;1!==o&&(n.save(),n.scale(1,o)),n.beginPath(),n.arc(e.x,e.y/o,i,0,2*Math.PI,!1),1!==o&&n.restore(),this._fillStroke(n,t)}},_fillStroke:function(t,e){var n=e.options;n.fill&&(t.globalAlpha=n.fillOpacity,t.fillStyle=n.fillColor||n.color,t.fill(n.fillRule||"evenodd")),n.stroke&&0!==n.weight&&(t.setLineDash&&t.setLineDash(e.options&&e.options._dashArray||[]),t.globalAlpha=n.opacity,t.lineWidth=n.weight,t.strokeStyle=n.color,t.lineCap=n.lineCap,t.lineJoin=n.lineJoin,t.stroke())},_onClick:function(t){for(var e,n,i=this._map.mouseEventToLayerPoint(t),o=this._drawFirst;o;o=o.next)(e=o.layer).options.interactive&&e._containsPoint(i)&&("click"!==t.type&&"preclick"!==t.type||!this._map._draggableMoved(e))&&(n=e);this._fireEvent(!!n&&[n],t)},_onMouseMove:function(t){if(this._map&&!this._map.dragging.moving()&&!this._map._animatingZoom){var e=this._map.mouseEventToLayerPoint(t);this._handleMouseHover(t,e)}},_handleMouseOut:function(t){var e=this._hoveredLayer;e&&(we(this._container,"leaflet-interactive"),this._fireEvent([e],t,"mouseout"),this._hoveredLayer=null,this._mouseHoverThrottled=!1)},_handleMouseHover:function(t,e){if(!this._mouseHoverThrottled){for(var n,i,r=this._drawFirst;r;r=r.next)(n=r.layer).options.interactive&&n._containsPoint(e)&&(i=n);i!==this._hoveredLayer&&(this._handleMouseOut(t),i&&(_e(this._container,"leaflet-interactive"),this._fireEvent([i],t,"mouseover"),this._hoveredLayer=i)),this._fireEvent(!!this._hoveredLayer&&[this._hoveredLayer],t),this._mouseHoverThrottled=!0,setTimeout(o((function(){this._mouseHoverThrottled=!1}),this),32)}},_fireEvent:function(t,e,n){this._map._fireDOMEvent(e,n||e.type,t)},_bringToFront:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;n&&(n.prev=i,i?i.next=n:n&&(this._drawFirst=n),e.prev=this._drawLast,this._drawLast.next=e,e.next=null,this._drawLast=e,this._requestRedraw(t))}},_bringToBack:function(t){var e=t._order;if(e){var n=e.next,i=e.prev;i&&(i.next=n,n?n.prev=i:i&&(this._drawLast=i),e.prev=null,e.next=this._drawFirst,this._drawFirst.prev=e,this._drawFirst=e,this._requestRedraw(t))}}});function Wi(t){return Ft.canvas?new qi(t):null}var Gi=function(){try{return document.namespaces.add("lvml","urn:schemas-microsoft-com:vml"),function(t){return document.createElement("<lvml:"+t+' class="lvml">')}}catch(t){}return function(t){return document.createElement("<"+t+' xmlns="urn:schemas-microsoft.com:vml" class="lvml">')}}(),$i={_initContainer:function(){this._container=me("div","leaflet-vml-container")},_update:function(){this._map._animatingZoom||(Zi.prototype._update.call(this),this.fire("update"))},_initPath:function(t){var e=t._container=Gi("shape");_e(e,"leaflet-vml-shape "+(this.options.className||"")),e.coordsize="1 1",t._path=Gi("path"),e.appendChild(t._path),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){var e=t._container;this._container.appendChild(e),t.options.interactive&&t.addInteractiveTarget(e)},_removePath:function(t){var e=t._container;ge(e),t.removeInteractiveTarget(e),delete this._layers[a(t)]},_updateStyle:function(t){var e=t._stroke,n=t._fill,i=t.options,o=t._container;o.stroked=!!i.stroke,o.filled=!!i.fill,i.stroke?(e||(e=t._stroke=Gi("stroke")),o.appendChild(e),e.weight=i.weight+"px",e.color=i.color,e.opacity=i.opacity,i.dashArray?e.dashStyle=v(i.dashArray)?i.dashArray.join(" "):i.dashArray.replace(/( *, *)/g," "):e.dashStyle="",e.endcap=i.lineCap.replace("butt","flat"),e.joinstyle=i.lineJoin):e&&(o.removeChild(e),t._stroke=null),i.fill?(n||(n=t._fill=Gi("fill")),o.appendChild(n),n.color=i.fillColor||i.color,n.opacity=i.fillOpacity):n&&(o.removeChild(n),t._fill=null)},_updateCircle:function(t){var e=t._point.round(),n=Math.round(t._radius),i=Math.round(t._radiusY||n);this._setPath(t,t._empty()?"M0 0":"AL "+e.x+","+e.y+" "+n+","+i+" 0,23592600")},_setPath:function(t,e){t._path.v=e},_bringToFront:function(t){ke(t._container)},_bringToBack:function(t){be(t._container)}},Yi=Ft.vml?Gi:Q,Ki=Zi.extend({_initContainer:function(){this._container=Yi("svg"),this._container.setAttribute("pointer-events","none"),this._rootGroup=Yi("g"),this._container.appendChild(this._rootGroup)},_destroyContainer:function(){ge(this._container),Ve(this._container),delete this._container,delete this._rootGroup,delete this._svgSize},_update:function(){if(!this._map._animatingZoom||!this._bounds){Zi.prototype._update.call(this);var t=this._bounds,e=t.getSize(),n=this._container;this._svgSize&&this._svgSize.equals(e)||(this._svgSize=e,n.setAttribute("width",e.x),n.setAttribute("height",e.y)),Te(n,t.min),n.setAttribute("viewBox",[t.min.x,t.min.y,e.x,e.y].join(" ")),this.fire("update")}},_initPath:function(t){var e=t._path=Yi("path");t.options.className&&_e(e,t.options.className),t.options.interactive&&_e(e,"leaflet-interactive"),this._updateStyle(t),this._layers[a(t)]=t},_addPath:function(t){this._rootGroup||this._initContainer(),this._rootGroup.appendChild(t._path),t.addInteractiveTarget(t._path)},_removePath:function(t){ge(t._path),t.removeInteractiveTarget(t._path),delete this._layers[a(t)]},_updatePath:function(t){t._project(),t._update()},_updateStyle:function(t){var e=t._path,n=t.options;e&&(n.stroke?(e.setAttribute("stroke",n.color),e.setAttribute("stroke-opacity",n.opacity),e.setAttribute("stroke-width",n.weight),e.setAttribute("stroke-linecap",n.lineCap),e.setAttribute("stroke-linejoin",n.lineJoin),n.dashArray?e.setAttribute("stroke-dasharray",n.dashArray):e.removeAttribute("stroke-dasharray"),n.dashOffset?e.setAttribute("stroke-dashoffset",n.dashOffset):e.removeAttribute("stroke-dashoffset")):e.setAttribute("stroke","none"),n.fill?(e.setAttribute("fill",n.fillColor||n.color),e.setAttribute("fill-opacity",n.fillOpacity),e.setAttribute("fill-rule",n.fillRule||"evenodd")):e.setAttribute("fill","none"))},_updatePoly:function(t,e){this._setPath(t,J(t._parts,e))},_updateCircle:function(t){var e=t._point,n=Math.max(Math.round(t._radius),1),i="a"+n+","+(Math.max(Math.round(t._radiusY),1)||n)+" 0 1,0 ",o=t._empty()?"M0 0":"M"+(e.x-n)+","+e.y+i+2*n+",0 "+i+2*-n+",0 ";this._setPath(t,o)},_setPath:function(t,e){t._path.setAttribute("d",e)},_bringToFront:function(t){ke(t._path)},_bringToBack:function(t){be(t._path)}});function Qi(t){return Ft.svg||Ft.vml?new Ki(t):null}Ft.vml&&Ki.include($i),rn.include({getRenderer:function(t){var e=t.options.renderer||this._getPaneRenderer(t.options.pane)||this.options.renderer||this._renderer;return e||(e=this._renderer=this._createRenderer()),this.hasLayer(e)||this.addLayer(e),e},_getPaneRenderer:function(t){if("overlayPane"===t||void 0===t)return!1;var e=this._paneRenderers[t];return void 0===e&&(e=this._createRenderer({pane:t}),this._paneRenderers[t]=e),e},_createRenderer:function(t){return this.options.preferCanvas&&Wi(t)||Qi(t)}});var Ji=di.extend({initialize:function(t,e){di.prototype.initialize.call(this,this._boundsToLatLngs(t),e)},setBounds:function(t){return this.setLatLngs(this._boundsToLatLngs(t))},_boundsToLatLngs:function(t){return[(t=R(t)).getSouthWest(),t.getNorthWest(),t.getNorthEast(),t.getSouthEast()]}});function Xi(t,e){return new Ji(t,e)}Ki.create=Yi,Ki.pointsToPath=J,fi.geometryToLayer=pi,fi.coordsToLatLng=gi,fi.coordsToLatLngs=vi,fi.latLngToCoords=ki,fi.latLngsToCoords=bi,fi.getFeature=yi,fi.asFeature=_i,rn.mergeOptions({boxZoom:!0});var to=kn.extend({initialize:function(t){this._map=t,this._container=t._container,this._pane=t._panes.overlayPane,this._resetStateTimeout=0,t.on("unload",this._destroy,this)},addHooks:function(){Re(this._container,"mousedown",this._onMouseDown,this)},removeHooks:function(){Ve(this._container,"mousedown",this._onMouseDown,this)},moved:function(){return this._moved},_destroy:function(){ge(this._pane),delete this._pane},_resetState:function(){this._resetStateTimeout=0,this._moved=!1},_clearDeferredResetState:function(){0!==this._resetStateTimeout&&(clearTimeout(this._resetStateTimeout),this._resetStateTimeout=0)},_onMouseDown:function(t){if(!t.shiftKey||1!==t.which&&1!==t.button)return!1;this._clearDeferredResetState(),this._resetState(),re(),Me(),this._startPoint=this._map.mouseEventToContainerPoint(t),Re(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseMove:function(t){this._moved||(this._moved=!0,this._box=me("div","leaflet-zoom-box",this._container),_e(this._container,"leaflet-crosshair"),this._map.fire("boxzoomstart")),this._point=this._map.mouseEventToContainerPoint(t);var e=new N(this._point,this._startPoint),n=e.getSize();Te(this._box,e.min),this._box.style.width=n.x+"px",this._box.style.height=n.y+"px"},_finish:function(){this._moved&&(ge(this._box),we(this._container,"leaflet-crosshair")),ae(),Be(),Ve(document,{contextmenu:Ke,mousemove:this._onMouseMove,mouseup:this._onMouseUp,keydown:this._onKeyDown},this)},_onMouseUp:function(t){if((1===t.which||1===t.button)&&(this._finish(),this._moved)){this._clearDeferredResetState(),this._resetStateTimeout=setTimeout(o(this._resetState,this),0);var e=new F(this._map.containerPointToLatLng(this._startPoint),this._map.containerPointToLatLng(this._point));this._map.fitBounds(e).fire("boxzoomend",{boxZoomBounds:e})}},_onKeyDown:function(t){27===t.keyCode&&(this._finish(),this._clearDeferredResetState(),this._resetState())}});rn.addInitHook("addHandler","boxZoom",to),rn.mergeOptions({doubleClickZoom:!0});var eo=kn.extend({addHooks:function(){this._map.on("dblclick",this._onDoubleClick,this)},removeHooks:function(){this._map.off("dblclick",this._onDoubleClick,this)},_onDoubleClick:function(t){var e=this._map,n=e.getZoom(),i=e.options.zoomDelta,o=t.originalEvent.shiftKey?n-i:n+i;"center"===e.options.doubleClickZoom?e.setZoom(o):e.setZoomAround(t.containerPoint,o)}});rn.addInitHook("addHandler","doubleClickZoom",eo),rn.mergeOptions({dragging:!0,inertia:!0,inertiaDeceleration:3400,inertiaMaxSpeed:1/0,easeLinearity:.2,worldCopyJump:!1,maxBoundsViscosity:0});var no=kn.extend({addHooks:function(){if(!this._draggable){var t=this._map;this._draggable=new wn(t._mapPane,t._container),this._draggable.on({dragstart:this._onDragStart,drag:this._onDrag,dragend:this._onDragEnd},this),this._draggable.on("predrag",this._onPreDragLimit,this),t.options.worldCopyJump&&(this._draggable.on("predrag",this._onPreDragWrap,this),t.on("zoomend",this._onZoomEnd,this),t.whenReady(this._onZoomEnd,this))}_e(this._map._container,"leaflet-grab leaflet-touch-drag"),this._draggable.enable(),this._positions=[],this._times=[]},removeHooks:function(){we(this._map._container,"leaflet-grab"),we(this._map._container,"leaflet-touch-drag"),this._draggable.disable()},moved:function(){return this._draggable&&this._draggable._moved},moving:function(){return this._draggable&&this._draggable._moving},_onDragStart:function(){var t=this._map;if(t._stop(),this._map.options.maxBounds&&this._map.options.maxBoundsViscosity){var e=R(this._map.options.maxBounds);this._offsetLimit=O(this._map.latLngToContainerPoint(e.getNorthWest()).multiplyBy(-1),this._map.latLngToContainerPoint(e.getSouthEast()).multiplyBy(-1).add(this._map.getSize())),this._viscosity=Math.min(1,Math.max(0,this._map.options.maxBoundsViscosity))}else this._offsetLimit=null;t.fire("movestart").fire("dragstart"),t.options.inertia&&(this._positions=[],this._times=[])},_onDrag:function(t){if(this._map.options.inertia){var e=this._lastTime=+new Date,n=this._lastPos=this._draggable._absPos||this._draggable._newPos;this._positions.push(n),this._times.push(e),this._prunePositions(e)}this._map.fire("move",t).fire("drag",t)},_prunePositions:function(t){for(;this._positions.length>1&&t-this._times[0]>50;)this._positions.shift(),this._times.shift()},_onZoomEnd:function(){var t=this._map.getSize().divideBy(2),e=this._map.latLngToLayerPoint([0,0]);this._initialWorldOffset=e.subtract(t).x,this._worldWidth=this._map.getPixelWorldBounds().getSize().x},_viscousLimit:function(t,e){return t-(t-e)*this._viscosity},_onPreDragLimit:function(){if(this._viscosity&&this._offsetLimit){var t=this._draggable._newPos.subtract(this._draggable._startPos),e=this._offsetLimit;t.x<e.min.x&&(t.x=this._viscousLimit(t.x,e.min.x)),t.y<e.min.y&&(t.y=this._viscousLimit(t.y,e.min.y)),t.x>e.max.x&&(t.x=this._viscousLimit(t.x,e.max.x)),t.y>e.max.y&&(t.y=this._viscousLimit(t.y,e.max.y)),this._draggable._newPos=this._draggable._startPos.add(t)}},_onPreDragWrap:function(){var t=this._worldWidth,e=Math.round(t/2),n=this._initialWorldOffset,i=this._draggable._newPos.x,o=(i-e+n)%t+e-n,r=(i+e+n)%t-e-n,a=Math.abs(o+n)<Math.abs(r+n)?o:r;this._draggable._absPos=this._draggable._newPos.clone(),this._draggable._newPos.x=a},_onDragEnd:function(t){var e=this._map,n=e.options,i=!n.inertia||t.noInertia||this._times.length<2;if(e.fire("dragend",t),i)e.fire("moveend");else{this._prunePositions(+new Date);var o=this._lastPos.subtract(this._positions[0]),r=(this._lastTime-this._times[0])/1e3,a=n.easeLinearity,s=o.multiplyBy(a/r),l=s.distanceTo([0,0]),c=Math.min(n.inertiaMaxSpeed,l),u=s.multiplyBy(c/l),d=c/(n.inertiaDeceleration*a),h=u.multiplyBy(-d/2).round();h.x||h.y?(h=e._limitOffset(h,e.options.maxBounds),x((function(){e.panBy(h,{duration:d,easeLinearity:a,noMoveStart:!0,animate:!0})}))):e.fire("moveend")}}});rn.addInitHook("addHandler","dragging",no),rn.mergeOptions({keyboard:!0,keyboardPanDelta:80});var io=kn.extend({keyCodes:{left:[37],right:[39],down:[40],up:[38],zoomIn:[187,107,61,171],zoomOut:[189,109,54,173]},initialize:function(t){this._map=t,this._setPanDelta(t.options.keyboardPanDelta),this._setZoomDelta(t.options.zoomDelta)},addHooks:function(){var t=this._map._container;t.tabIndex<=0&&(t.tabIndex="0"),Re(t,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.on({focus:this._addHooks,blur:this._removeHooks},this)},removeHooks:function(){this._removeHooks(),Ve(this._map._container,{focus:this._onFocus,blur:this._onBlur,mousedown:this._onMouseDown},this),this._map.off({focus:this._addHooks,blur:this._removeHooks},this)},_onMouseDown:function(){if(!this._focused){var t=document.body,e=document.documentElement,n=t.scrollTop||e.scrollTop,i=t.scrollLeft||e.scrollLeft;this._map._container.focus(),window.scrollTo(i,n)}},_onFocus:function(){this._focused=!0,this._map.fire("focus")},_onBlur:function(){this._focused=!1,this._map.fire("blur")},_setPanDelta:function(t){var e,n,i=this._panKeys={},o=this.keyCodes;for(e=0,n=o.left.length;e<n;e++)i[o.left[e]]=[-1*t,0];for(e=0,n=o.right.length;e<n;e++)i[o.right[e]]=[t,0];for(e=0,n=o.down.length;e<n;e++)i[o.down[e]]=[0,t];for(e=0,n=o.up.length;e<n;e++)i[o.up[e]]=[0,-1*t]},_setZoomDelta:function(t){var e,n,i=this._zoomKeys={},o=this.keyCodes;for(e=0,n=o.zoomIn.length;e<n;e++)i[o.zoomIn[e]]=t;for(e=0,n=o.zoomOut.length;e<n;e++)i[o.zoomOut[e]]=-t},_addHooks:function(){Re(document,"keydown",this._onKeyDown,this)},_removeHooks:function(){Ve(document,"keydown",this._onKeyDown,this)},_onKeyDown:function(t){if(!(t.altKey||t.ctrlKey||t.metaKey)){var e,n=t.keyCode,i=this._map;if(n in this._panKeys){if(!i._panAnim||!i._panAnim._inProgress)if(e=this._panKeys[n],t.shiftKey&&(e=P(e).multiplyBy(3)),i.options.maxBounds&&(e=i._limitOffset(P(e),i.options.maxBounds)),i.options.worldCopyJump){var o=i.wrapLatLng(i.unproject(i.project(i.getCenter()).add(e)));i.panTo(o)}else i.panBy(e)}else if(n in this._zoomKeys)i.setZoom(i.getZoom()+(t.shiftKey?3:1)*this._zoomKeys[n]);else{if(27!==n||!i._popup||!i._popup.options.closeOnEscapeKey)return;i.closePopup()}Ke(t)}}});rn.addInitHook("addHandler","keyboard",io),rn.mergeOptions({scrollWheelZoom:!0,wheelDebounceTime:40,wheelPxPerZoomLevel:60});var oo=kn.extend({addHooks:function(){Re(this._map._container,"wheel",this._onWheelScroll,this),this._delta=0},removeHooks:function(){Ve(this._map._container,"wheel",this._onWheelScroll,this)},_onWheelScroll:function(t){var e=tn(t),n=this._map.options.wheelDebounceTime;this._delta+=e,this._lastMousePos=this._map.mouseEventToContainerPoint(t),this._startTime||(this._startTime=+new Date);var i=Math.max(n-(+new Date-this._startTime),0);clearTimeout(this._timer),this._timer=setTimeout(o(this._performZoom,this),i),Ke(t)},_performZoom:function(){var t=this._map,e=t.getZoom(),n=this._map.options.zoomSnap||0;t._stop();var i=this._delta/(4*this._map.options.wheelPxPerZoomLevel),o=4*Math.log(2/(1+Math.exp(-Math.abs(i))))/Math.LN2,r=n?Math.ceil(o/n)*n:o,a=t._limitZoom(e+(this._delta>0?r:-r))-e;this._delta=0,this._startTime=null,a&&("center"===t.options.scrollWheelZoom?t.setZoom(e+a):t.setZoomAround(this._lastMousePos,e+a))}});rn.addInitHook("addHandler","scrollWheelZoom",oo);var ro=600;rn.mergeOptions({tapHold:Ft.touchNative&&Ft.safari&&Ft.mobile,tapTolerance:15});var ao=kn.extend({addHooks:function(){Re(this._map._container,"touchstart",this._onDown,this)},removeHooks:function(){Ve(this._map._container,"touchstart",this._onDown,this)},_onDown:function(t){if(clearTimeout(this._holdTimeout),1===t.touches.length){var e=t.touches[0];this._startPos=this._newPos=new M(e.clientX,e.clientY),this._holdTimeout=setTimeout(o((function(){this._cancel(),this._isTapValid()&&(Re(document,"touchend",Ye),Re(document,"touchend touchcancel",this._cancelClickPrevent),this._simulateEvent("contextmenu",e))}),this),ro),Re(document,"touchend touchcancel contextmenu",this._cancel,this),Re(document,"touchmove",this._onMove,this)}},_cancelClickPrevent:function t(){Ve(document,"touchend",Ye),Ve(document,"touchend touchcancel",t)},_cancel:function(){clearTimeout(this._holdTimeout),Ve(document,"touchend touchcancel contextmenu",this._cancel,this),Ve(document,"touchmove",this._onMove,this)},_onMove:function(t){var e=t.touches[0];this._newPos=new M(e.clientX,e.clientY)},_isTapValid:function(){return this._newPos.distanceTo(this._startPos)<=this._map.options.tapTolerance},_simulateEvent:function(t,e){var n=new MouseEvent(t,{bubbles:!0,cancelable:!0,view:window,screenX:e.screenX,screenY:e.screenY,clientX:e.clientX,clientY:e.clientY});n._simulated=!0,e.target.dispatchEvent(n)}});rn.addInitHook("addHandler","tapHold",ao),rn.mergeOptions({touchZoom:Ft.touch,bounceAtZoomLimits:!0});var so=kn.extend({addHooks:function(){_e(this._map._container,"leaflet-touch-zoom"),Re(this._map._container,"touchstart",this._onTouchStart,this)},removeHooks:function(){we(this._map._container,"leaflet-touch-zoom"),Ve(this._map._container,"touchstart",this._onTouchStart,this)},_onTouchStart:function(t){var e=this._map;if(t.touches&&2===t.touches.length&&!e._animatingZoom&&!this._zooming){var n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]);this._centerPoint=e.getSize()._divideBy(2),this._startLatLng=e.containerPointToLatLng(this._centerPoint),"center"!==e.options.touchZoom&&(this._pinchStartLatLng=e.containerPointToLatLng(n.add(i)._divideBy(2))),this._startDist=n.distanceTo(i),this._startZoom=e.getZoom(),this._moved=!1,this._zooming=!0,e._stop(),Re(d
vendor: 3,525 bytes, line 2
2ocument,"touchmove",this._onTouchMove,this),Re(document,"touchend touchcancel",this._onTouchEnd,this),Ye(t)}},_onTouchMove:function(t){if(t.touches&&2===t.touches.length&&this._zooming){var e=this._map,n=e.mouseEventToContainerPoint(t.touches[0]),i=e.mouseEventToContainerPoint(t.touches[1]),r=n.distanceTo(i)/this._startDist;if(this._zoom=e.getScaleZoom(r,this._startZoom),!e.options.bounceAtZoomLimits&&(this._zoom<e.getMinZoom()&&r<1||this._zoom>e.getMaxZoom()&&r>1)&&(this._zoom=e._limitZoom(this._zoom)),"center"===e.options.touchZoom){if(this._center=this._startLatLng,1===r)return}else{var a=n._add(i)._divideBy(2)._subtract(this._centerPoint);if(1===r&&0===a.x&&0===a.y)return;this._center=e.unproject(e.project(this._pinchStartLatLng,this._zoom).subtract(a),this._zoom)}this._moved||(e._moveStart(!0,!1),this._moved=!0),D(this._animRequest);var s=o(e._move,e,this._center,this._zoom,{pinch:!0,round:!1},void 0);this._animRequest=x(s,this,!0),Ye(t)}},_onTouchEnd:function(){this._moved&&this._zooming?(this._zooming=!1,D(this._animRequest),Ve(document,"touchmove",this._onTouchMove,this),Ve(document,"touchend touchcancel",this._onTouchEnd,this),this._map.options.zoomAnimation?this._map._animateZoom(this._center,this._map._limitZoom(this._zoom),!0,this._map.options.zoomSnap):this._map._resetView(this._center,this._map._limitZoom(this._zoom))):this._zooming=!1}});rn.addInitHook("addHandler","touchZoom",so),rn.BoxZoom=to,rn.DoubleClickZoom=eo,rn.Drag=no,rn.Keyboard=io,rn.ScrollWheelZoom=oo,rn.TapHold=ao,rn.TouchZoom=so,t.Bounds=N,t.Browser=Ft,t.CRS=U,t.Canvas=qi,t.Circle=si,t.CircleMarker=ri,t.Class=S,t.Control=sn,t.DivIcon=Ni,t.DivOverlay=zi,t.DomEvent=nn,t.DomUtil=Fe,t.Draggable=wn,t.Evented=z,t.FeatureGroup=Kn,t.GeoJSON=fi,t.GridLayer=Fi,t.Handler=kn,t.Icon=Jn,t.ImageOverlay=xi,t.LatLng=j,t.LatLngBounds=F,t.Layer=Gn,t.LayerGroup=$n,t.LineUtil=On,t.Map=rn,t.Marker=ni,t.Mixin=yn,t.Path=oi,t.Point=M,t.PolyUtil=jn,t.Polygon=di,t.Polyline=ci,t.Popup=Mi,t.PosAnimation=on,t.Projection=Un,t.Rectangle=Ji,t.Renderer=Zi,t.SVG=Ki,t.SVGOverlay=Ti,t.TileLayer=ji,t.Tooltip=Pi,t.Transformation=G,t.Util=E,t.VideoOverlay=Ei,t.bind=o,t.bounds=O,t.canvas=Wi,t.circle=li,t.circleMarker=ai,t.control=ln,t.divIcon=Oi,t.extend=n,t.featureGroup=Qn,t.geoJSON=Ci,t.geoJson=Ai,t.gridLayer=Ri,t.icon=Xn,t.imageOverlay=Di,t.latLng=V,t.latLngBounds=R,t.layerGroup=Yn,t.map=an,t.marker=ii,t.point=P,t.polygon=hi,t.polyline=ui,t.popup=Bi,t.rectangle=Xi,t.setOptions=f,t.stamp=a,t.svg=Qi,t.svgOverlay=Ii,t.tileLayer=Vi,t.tooltip=Li,t.transformation=$,t.version=e,t.videoOverlay=Si;var lo=window.L;t.noConflict=function(){return window.L=lo,this},window.L=t}(e)},93379:(t,e,n)=>{"use strict";var i,o=function(){return void 0===i&&(i=Boolean(window&&document&&document.all&&!window.atob)),i},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]}}(),a=[];function s(t){for(var e=-1,n=0;n<a.length;n++)if(a[n].identifier===t){e=n;break}return e}function l(t,e){for(var n={},i=[],o=0;o<t.length;o++){var r=t[o],l=e.base?r[0]+e.base:r[0],c=n[l]||0,u="".concat(l," ").concat(c);n[l]=c+1;var d=s(u),h={css:r[1],media:r[2],sourceMap:r[3]};-1!==d?(a[d].references++,a[d].updater(h)):a.push({identifier:u,updater:g(h,e),references:1}),i.push(u)}return i}function c(t){var e=document.createElement("style"),i=t.attributes||{};if(void 0===i.nonce){var o=n.nc;o&&(i.nonce=o)}
2if(Object.keys(i).forEach((function(t){e.setAttribute(t,i[t])})),"function"==typeof t.insert)t.insert(e);else{var a=r(t.insert||"head");if(!a)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");a.appendChild(e)}return e}var u,d=(u=[],function(t,e){return u[t]=e,u.filter(Boolean).join("\n")});function h(t,e,n,i){var o=n?"":i.media?"@media ".concat(i.media," {").concat(i.css,"}"):i.css;if(t.styleSheet)t.styleSheet.cssText=d(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function f(t,e,n){var i=n.css,o=n.media,r=n.sourceMap;if(o?t.setAttribute("media",o):t.removeAttribute("media"),r&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(r))))," */")),t.styleSheet)t.styleSheet.cssText=i;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(i))}}var p=null,m=0;function g(t,e){var n,i,o;if(e.singleton){var r=m++;n=p||(p=c(e)),i=h.bind(null,n,r,!1),o=h.bind(null,n,r,!0)}else n=c(e),i=f.bind(null,n,e),o=function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(n)};return i(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap)return;i(t=e)}else o()}}t.exports=function(t,e){(e=e||{}).singleton||"boolean"==typeof e.singleton||(e.singleton=o());var n=l(t=t||[],e);return function(t){if(t=t||[],"[object Array]"===Object.prototype.toString.call(t)){for(var i=0;i<n.length;i++){var o=s(n[i]);a[o].references--}for(var r=l(t,e),c=0;c<n.length;c++){var u=s(n[c]);0===a[u].references&&(a[u].updater(),a.splice(u,1))}n=r}}}},24678:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});const i={props:{position:{type:String,default:"topright"}},mounted:function(){this.controlOptions={position:this.position}},beforeDestroy:function(){this.mapObject&&this.mapObject.remove()}};const o={props:{options:{type:Object,default:function(){return{}}}}};var r=n(45243),a=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},s=(n(88292),n(93379)),l=n.n(s),c=n(44805),u={insert:"head",singleton:!1};l()(c.Z,u);c.Z.locals;const d={name:"LControlFullscreen",mixins:[i,o],mounted(){const t=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=a(n);t=a(t);var o=e.$options.props;for(var r in t){var s=o[r]?o[r].default&&"function"==typeof o[r].default?o[r].default.call():o[r].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[r]):s===t[r],i[r]&&!l?(console.warn(r+" props is overriding the value passed in the options props"),i[r]=t[r]):i[r]||(i[r]=t[r])}return i}({...this.controlOptions,options:this.options},this);this.mapObject=new L.Control.Fullscreen(t),function(t,e,n,i){var o=function(i){var o,a="set"+((o=i)&&"function"==typeof o.charAt?o.charAt(0).toUpperCase()+o.slice(1):o),s=n[i].type===Object||n[i].type===Array||Array.isArray(n[i].type);n[i].custom&&t[a]?t.$watch(i,(function(e,n){t[a](e,n)}),{deep:s}
2):"setOptions"===a?t.$watch(i,(function(t,n){(0,r.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(i,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)o(a)}(this,this.mapObject,this.$options.props),this.mapObject.addTo(this.$parent.mapObject)},render:()=>null},h=d;const f=(0,n(51900).Z)(h,undefined,undefined,!1,null,null,null).exports},8120:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>l});const i={name:"DocsListModal",components:{Pagination:n(91662).Z},props:{pdf_id:{required:!1,type:Number},emitFile:{required:!1,default:!1,type:Boolean},page_is_reserved:Boolean,current_page:Number,current_key:Number},data:function(){return{docs:{data:[]},search:"",timeout:null}},mounted:function(){this.getDocsList()},methods:{getDocsList:function(t){var e=this;this.axios.post(this.route("docs.pdf.list"),{page:t||1,search:this.search,reserved_pdf:this.page_is_reserved,current_page:this.current_page}).then((function(t){e.docs=t.data.docs}))},waitSearch:function(){if(null===this.timeout){var t=this;this.timeout=setTimeout((function(){t.getDocsList(),t.timeout=null}),500)}else{var e=this;clearTimeout(this.timeout),this.timeout=setTimeout((function(){e.getDocsList(),e.timeout=null}),300)}}},watch:{search:function(){this.waitSearch()},current_key:function(){this.getDocsList(1)}}};var o=n(93379),r=n.n(o),a=n(35828),s={insert:"head",singleton:!1};r()(a.Z,s);a.Z.locals;const l=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row"},[e("div",{staticClass:"col-12 my-2 p-1 d-flex align-items-center justify-content-between"},[e("div",{staticClass:"mb-2 w-100"},[e("div",{staticClass:"input-group"},[e("div",{staticClass:"input-group-prepend"},[e("span",{staticClass:"input-group-text rounded-start border-light border-start border-top border-bottom",staticStyle:{"border-radius":"8px 0 0 8px !important"}},[e("svg",{staticStyle:{width:"24px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M8 16l2.879-2.879m0 0a3 3 0 104.243-4.242 3 3 0 00-4.243 4.242zM21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])])]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.search,expression:"search"}],staticClass:"rounded-end border-end border-top border-bottom border-light form-control",staticStyle:{"border-radius":"0 8px 8px 0 !important"},attrs:{type:"text",placeholder:"Cerca documento..."},domProps:{value:t.search},on:{input:function(e){e.target.composing||(t.search=e.target.value)}}})])])]),t._v(" "),t._l(t.docs.data,(function(n,i){return e("div",{key:i,staticClass:"col-12 col-lg-6 my-2"},[e("div",{staticClass:"card-wrapper card-space"},[e("div",{staticClass:"card card-bg card-big no-after rounded-3"},[e("div",{staticClass:"row d-flex align-items-center",staticStyle:{"min-height":"100%"}},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"card-body p-1"},["pdf"!=n.extension&&"PDF"!=n.extension||"application/pdf"!=n.type?t._e():e("h6",{staticClass:"card-title m-0"},[e("div",{staticClass:"form-check"},[e("input",{staticClass:"with-gap",attrs:{id:"radio-doc-"+n.id,name:"gruppo-1",type:"radio"},domProps:{checked:n.id===t.pdf_id?"checked":null},on:{click:function(e){return t.$emit("select",t.emitFile?n.prepend+n.name+".pdf":n.id)}}}),t._v(" "),e("label",{staticClass:"break-name m-0",attrs:{for:"radio-doc-"+n.id}},[t._v("\n                    "+t._s(n.description?n.description:n.name+"."+n.extension)+"\n                  ")])])])])])])])])])})),t._v(" "),t.docs.data.length?t._e():e("div",{staticClass:"col-12 d-flex justify-content-center my-2"},[e("p",{staticClass:"text-black-50"},[t._v("\n      Nessun pdf trovato\n      "),e("font-awesome-icon",{attrs:{icon:["far","sad-tear"]}}),t._v(" "),e("br"),t._v("Assicurati di averne caricato almeno uno!\n    ")],1)]),t._v(" "),e("div",{staticClass:"col-12 d-flex justify-content-center"},[e("pagination",{attrs:{data:t.docs,colors:{primary_txt:"#000",secondary_txt:"#f0f0f0"}},on:{changePage:t.getDocsList}})],1)],2)}),[],!1,null,"6c0a9494",null).exports},42923:(t,e,n)=>{"use strict";n.r(e),n.d(e,{default:()=>h});var i=n(33988),o=n(67666),r=n(79454),a=n.n(r);const s={name:"PartnerEditor",components:{Dropzone:i.Z,"file-display":o.Z,"vue-slider":a()},props:{page:Number,tag:String,props:Object,s_id:Number,page_is_reserved:Boolean},data:function(){return{fileIds:[],files:[],complementary_bg:!this.props||Boolean(this.props.data.complementary_bg),name:this.props?this.props.data.name:"",waitToClearDropzone:0,key:0,uppercase_title:!this.props||this.props.data.uppercase_title,grid:!this.props||this.props.data.is_grid,autoplay:!this.props||this.props.data.autoplay,autoplay_delay:this.props?this.props.data.autoplay_delay:5,slides_per_page:this.props?this.props.data.slides_per_page:5,loop:!this.props||this.props.data.loop,propsData:this.props}},mounted:function(){this.propsData&&this.loadFiles()},methods:{findFile:function(t){return-1!==this.propsData.data.partners.findIndex((function(e){return e.file.id===t}))},loadFiles:function(){var t=this;
2this.propsData.data.partners.forEach((function(e){t.fileIds.push(e.file.id);var n=e.file;t.files.push({path:n.path,name:n.name+"."+n.extension,id:n.id,rotation:n.rotation,extension:n.extension,title:n.title,link:n.link,description:n.description,page_id:n.page_id,order:n.order,partner_order:n.order,partner_bg:n.partner_bg,partner_color:n.partner_color?n.partner_color:"",translations:n.translations?n.translations:null,complete:!0})})),this.waitToClearDropzone=this.files.length},deleteImage:function(t){if(this.removeId({id:t}),this.propsData){var e=this.propsData.data.partners.findIndex((function(e){return e.file.id===t}));this.propsData.data.partners.splice(e,1)}},removeId:function(t){this.fileIds.splice(this.fileIds.indexOf(t.id),1);var e=this.files.findIndex((function(e){return e.id===t.id}));this.files.splice(e,1)},submitPartner:function(){var t={complementary_bg:this.complementary_bg,fileIds:this.fileIds,is_grid:this.grid,name:this.name,uppercase_title:this.uppercase_title,autoplay:this.autoplay,autoplay_delay:this.autoplay_delay,slides_per_page:this.slides_per_page,loop:this.loop};this.propsData?this.$inertia.put(this.route("partner.update",{partner:this.s_id}),t,{preserveState:!(this.fileIds.length>0)}):(t.page_id=this.page,this.$inertia.post(this.route("partner.store"),t,{preserveState:!(this.fileIds.length>0)}))},uploadComplete:function(t){this.files.push(t),this.fileIds.push(t.id),this.files.length===this.waitToClearDropzone&&this.key++},addedFiles:function(t){this.waitToClearDropzone+=t}}};var l=n(93379),c=n.n(l),u=n(28964),d={insert:"head",singleton:!1};c()(u.Z,d);u.Z.locals;const h=(0,n(51900).Z)(s,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row rounded-3 shadow p-1 p-md-2 p-lg-4 bg-white"},[e("h2",{staticClass:"def-color"},[t._v("\n    Partners\n  ")]),t._v(" "),e("div",{staticClass:"col-12 my-2"},[t._m(0),t._v(" "),e("div",{staticClass:"mb-4"},[e("errors-box",{attrs:{errors:t.$page.props.errors.partnerError}})],1),t._v(" "),e("div",{staticClass:"row"},[e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n          1\n        ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n            Titolo Sezione\n          ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.name,expression:"name"}],staticClass:"form-control border rounded-3",attrs:{id:"input-bookmark-feed-name-"+t.tag,type:"text",placeholder:"Titolo Sezione..."},domProps:{value:t.name},on:{input:function(e){e.target.composing||(t.name=e.target.value)}}})])]),t._v(" "),e("hr")]),t._v(" "),e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n          2\n        ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n            Titolo tutto in maiuscolo\n          ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-uppercase-"+t.tag}},[e("input",{attrs:{id:"toggle-uppercase-"+t.tag,type:"checkbox"},domProps:{checked:t.uppercase_title},on:{click:function(e){t.uppercase_title=!t.uppercase_title}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("hr")]),t._v(" "),e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n          3\n        ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n            Impostare automaticamente i colori di sfondo\n          ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-bg-"+t.tag}},[e("input",{attrs:{id:"toggle-bg-"+t.tag,type:"checkbox"},domProps:{checked:t.complementary_bg},on:{click:function(e){t.complementary_bg=!t.complementary_bg}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("hr")]),t._v(" "),e("div",{staticClass:"col-12 rounded-3",class:t.grid?"":"border border-light"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n          4\n        ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n            Vista a griglia\n          ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-grid-"+t.tag}},[e("input",{attrs:{id:"toggle-grid-"+t.tag,type:"checkbox"},domProps:{checked:t.grid},on:{click:function(e){t.grid=!t.grid}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("div",{staticClass:"row ms-4 mt-3"},[t.grid?t._e():e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n              5\n            ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Autoplay carosello\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-autoplay-"+t.tag}},[e("input",{attrs:{id:"toggle-autoplay-"+t.tag,type:"checkbox"},domProps:{checked:t.autoplay},on:{click:function(e){t.autoplay=!t.autoplay}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("hr")]),t._v(" "),t.grid?t._e():e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n              6\n            ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Ripeti immagini carosello\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-loop-"+t.tag}},[e("input",{attrs:{id:"toggle-loop-"+t.tag,type:"checkbox"},domProps:{checked:t.loop},on:{click:function(e){t.loop=!t.loop}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("hr")]),t._v(" "),t.grid?t._e():e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n              7\n            ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Partners per pagina\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.slides_per_page,expression:"slides_per_page"}],staticClass:"rounded-3 border border-light",attrs:{id:"inputNumber",type:"number",name:"inputNumber",min:"1"},domProps:{value:t.slides_per_page},on:{input:function(e){e.target.composing||(t.slides_per_page=e.target.value)}}})])]),t._v(" "),e("hr")]),t._v(" "),t.grid?t._e():e("div",{staticClass:"col-12"},[e("div",{staticClass:"text-dark fw-bold bg-light rounded-circle text-center circle"},[t._v("\n              8\n            ")]),t._v(" "),e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Cambio pagina ogni (s):\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2 d-flex align-items-center"},[e("vue-slider",{staticClass:"w-100",attrs:{min:2,max:60,"tooltip-formatter":"{value}s"},model:{value:t.autoplay_delay,callback:function(e){t.autoplay_delay=e},expression:"autoplay_delay"}})],1)])])])])])]),t._v(" "),e("div",{staticClass:"col-12 my-3"},[e("small",{staticClass:"fw-semibold def-color mb-2"},[t._v("\n      Si consiglia di caricare immagini con trasparenza per un aspetto\n      generale migliore del componente\n    ")]),t._v(" "),e("Dropzone",{key:t.key,attrs:{reserved_to_page:t.page_is_reserved?t.page:null,destination:"partners","files-allowed":{images:!0,documents:!1},"max-files":100},on:{uploadComplete:t.uploadComplete,removeId:t.removeId,addedFiles:t.addedFiles}}
2)],1),t._v(" "),e("div",{staticClass:"col-12 mb-4"},[e("file-display",{attrs:{properties:{link:!0,partner_color:!0,partner_bg:!0,page:!0,button:!1,enabled:!0,description_partner:!0},fromHeroOrPartnerEditor:!0,translation_template:t.props&&t.props.image_translation_template?t.props.image_translation_template:null,files:t.files},on:{"file-delete":t.deleteImage}})],1),t._v(" "),e("div",{staticClass:"col-12 d-flex justify-content-lg-end justify-content-center p-2"},[e("button",{staticClass:"btn btn-sm bg-dark text-white rounded-3",on:{click:t.submitPartner}},[t._v("\n      "+t._s(t.propsData?"Aggiorna":"Aggiungi")+"\n      "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","save"]}})],1)])])}),[function(){var t=this._self._c;return t("div",{staticClass:"mb-3"},[t("small",{staticClass:"fw-semibold def-color"},[this._v("I campi contrassegnati con l'asterisco* sono obbligatori")])])}],!1,null,"06379e46",null).exports},33988:(t,e,n)=>{"use strict";n.d(e,{Z:()=>c});var i=n(31485);const o={name:"Dropzone",components:{vueDropzone:n.n(i)()},props:{destination:String,filesAllowed:Object,maxFiles:Number,errors:Array,id:String,accepted:{required:!1,type:String},reserved_to_page:{default:null,required:!1,type:Number},only_pdf:{default:!1,required:!1,type:Boolean},disabled:{default:!1,required:!1,type:Boolean}},data:function(){return{queue:null,addedFilesTimeoutId:null,dropzoneOptions:{url:this.route("file.store"),headers:{"X-CSRF-TOKEN":document.head.querySelector("[name=csrf-token]").content},params:{reserved_to_page:this.reserved_to_page?this.reserved_to_page:0,destination:this.destination,images:this.filesAllowed.images,documents:this.filesAllowed.documents},thumbnailWidth:250,timeout:0,maxFilesize:16,addRemoveLinks:!0,maxFiles:this.maxFiles,autoProcessQueue:!0,dictFallbackMessage:"Questo browser non è supportato",dictFileTooBig:"La dimensione di questo file è troppo grande",dictInvalidFileType:"L' estensione del file caricato non è valida",dictCancelUpload:"Interrompi l'upload",dictUploadCanceled:"L' upload è stato interrotto",dictMaxFilesExceeded:"Puoi caricare solo "+this.maxFiles+" file alla volta",dictRemoveFile:"Rimuovi",acceptedFiles:this.accepted?this.accepted:(this.filesAllowed.images?".jpeg,.jpg,.png,.gif,.jfif,.svg":"")+(this.filesAllowed.images&&this.filesAllowed.documents?",":"")+(this.filesAllowed.documents?this.only_pdf?".pdf":".doc,.docx,.odt,.rtf,.txt,.pdf,.ppt,.pptx,.odp,.xls,.xlsx,.ods,.xml,.html,.zip":"")},remove:!0,updateDropzone:0}},beforeDestroy:function(){this.remove=!1},methods:{handleUploadLimit:function(){this.$refs.VueDropzone.disable()},removeFile:function(t){var e=this;if(this.remove&&confirm("Sei sicuro di voler eliminare questo file?"))if("error"!=t.status){var n=JSON.parse(t.xhr.response);this.$inertia.delete(this.route("file.delete",{file:n.id}),{replace:!1,preserveState:!0,preserveScroll:!0,onFinish:function(){e.$emit("removeId",{image:n.image,id:n.id,name:n.name}),e.$refs.VueDropzone.getAcceptedFiles().length<this.maxFiles&&e.$refs.VueDropzone.enable()}})}else this.updateDropzone++},uploadComplete:function(t,e){this.$refs.VueDropzone.getAcceptedFiles().length>=this.maxFiles&&this.$refs.VueDropzone.disable(),this.$emit("uploadComplete",e,this.$refs.VueDropzone.dropzone.files.length)},addedFiles:function(){this.$emit("addedFiles",this.$refs.VueDropzone.dropzone.files.length)}}};var r=n(93379),a=n.n(r),s=n(94679),l={insert:"head",singleton:!1};a()(s.Z,l);s.Z.locals;const c=(0,n(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{key:t.updateDropzone},[void 0!==t.errors&&t.errors.length?e("div",{staticClass:"is-invalid"},[e("p",{staticStyle:{color:"#d9364f"}},[t._v("E' richiesto almeno un file!")])]):t._e(),t._v(" "),1===t.maxFiles?e("p",{staticClass:"fw-semibold text-black-50 mb-2"},[t._v("\n    "+t._s("Puoi caricare massimo "+t.maxFiles+" file alla volta"+(void 0!==t.errors?"*":""))+"\n  ")]):t._e(),t._v(" "),t.disabled?t._e():e("vue-dropzone",{ref:"VueDropzone",staticClass:"dropzone-edit rounded-3",attrs:{id:"dropzone-"+t.id,"duplicate-check":!0,options:t.dropzoneOptions,"use-custom-slot":!0},on:{"vdropzone-success":t.uploadComplete,"vdropzone-max-files-exceeded":t.handleUploadLimit,"vdropzone-removed-file":t.removeFile,"vdropzone-files-added":t.addedFiles,"vdropzone-complete":t.addedFiles}},[e("div",{staticClass:"dropzone-custom-content row d-flex align-items-center"},[e("div",{staticClass:"col-12"},[e("h3",{staticClass:"dropzone-custom-title h6"},[t._v("\n          Clicca per selezionare o trascina qui i tuoi allegati!\n        ")])]),t._v(" "),e("div",{staticClass:"col-12 d-flex justify-content-center align-items-center"},[t.filesAllowed.images?e("div",{staticClass:"subtitle m-2"},[e("svg",{attrs:{fill:"none",stroke:"currentColor",width:"32px","stroke-width":"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M6.827 6.175A2.31 2.31 0 015.186 7.23c-.38.054-.757.112-1.134.175C2.999 7.58 2.25 8.507 2.25 9.574V18a2.25 2.25 0 002.25 2.25h15A2.25 2.25 0 0021.75 18V9.574c0-1.067-.75-1.994-1.802-2.169a47.865 47.865 0 00-1.134-.175 2.31 2.31 0 01-1.64-1.055l-.822-1.316a2.192 2.192 0 00-1.736-1.039 48.774 48.774 0 00-5.232 0 2.192 2.192 0 00-1.736 1.039l-.821 1.316z"}}),t._v(" "),e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M16.5 12.75a4.5 4.5 0 11-9 0 4.5 4.5 0 019 0zM18.75 10.5h.008v.008h-.008V10.5z"}})])]):t._e(),t._v(" "),t.filesAllowed.documents?e("div",{staticClass:"subtitle m-2"},[e("svg",{attrs:{fill:"none",stroke:"currentColor",width:"32px","stroke-width":"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M19.5 14.25v-2.625a3.375 3.375 0 00-3.375-3.375h-1.5A1.125 1.125 0 0113.5 7.125v-1.5a3.375 3.375 0 00-3.375-3.375H8.25m0 12.75h7.5m-7.5 3H12M10.5 2.25H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 00-9-9z"}}
2)])]):t._e()])])])],1)}),[],!1,null,null,null).exports},67813:(t,e,n)=>{"use strict";n.d(e,{Z:()=>f});var i=n(18043),o=n.n(i),r=n(8120),a=n(76100),s=n(11272);const l={name:"Editor",components:{ckeditor:n.n(s)().component,"docs-list-modal":r.default,"map-select":a.Z},props:{customAddons:{required:!1,default:!1,type:Boolean},textData:{required:!1,default:"",type:String},id:{required:!1,default:null,type:String},just_link:{required:!1,default:!1,type:Boolean},has_embed:{required:!1,type:Boolean},has_table_resize:{required:!1,type:Boolean,default:!1},starting_table_resize_value:{required:!1,type:Boolean,default:!0},page:Number,page_is_reserved:{type:Boolean,required:!1},isReadOnly:{type:Boolean,required:!1},noGiantContent:{default:!1,type:Boolean}},data:function(){return{readyEditor:null,addPdf:!1,addMap:!1,enableTableResize:this.starting_table_resize_value,pins:{},editor:o(),editorData:this.textData,editorConfig:{toolbar:{items:this.just_link?["link","|","undo","redo"]:["heading","|","bold","italic","underline","strikethrough","removeFormat","|","fontSize","fontColor","fontBackgroun
2dColor","highlight","|",!this.noGiantContent&&"imageInsert","link",!this.noGiantContent&&"imageUpload","|",!this.noGiantContent&&"bulletedList",!this.noGiantContent&&"numberedList","todoList","|","alignment","outdent","indent","horizontalLine","|","blockQuote",!this.noGiantContent&&"insertTable",!this.noGiantContent&&"mediaEmbed","|","undo","redo"].filter(Boolean)},image:this.noGiantContent?void 0:{toolbar:this.noGiantContent?[]:["imageStyle:inline","imageStyle:block","imageStyle:side","|","toggleImageCaption","imageTextAlternative","linkImage"]}}}},watch:{editorData:function(){this.sendText()},isReadOnly:function(){this.setReadOnly()}},methods:{setReadOnly:function(t){t?(this.readyEditor=t,this.readyEditor.isReadOnly=this.isReadOnly):this.readyEditor.isReadOnly=this.isReadOnly},appendMap:function(){var t=this;this.readyEditor.model.change((function(e){var n=t.readyEditor.model.document.selection.getFirstPosition();e.insertText(" [map="+JSON.stringify(t.pins)+"]",n)})),this.pins={},this.addMap=!1},appendPdf:function(t){var e=this;this.readyEditor.model.change((function(n){var i=e.readyEditor.model.document.selection.getFirstPosition();n.insertText(" [pdf=/storage/documenti/"+t+"]",i)}))},appendStop:function(){var t=this;this.readyEditor.model.change((function(e){var n=t.readyEditor.model.document.selection.getFirstPosition();e.insertText(" [stop]",n)}))},addCustomCommands:function(t){var e=this;this.readyEditor=t;var n=document.getElementsByClassName("ck-editor__main")[0],i="<button\n        class='btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings'\n        style='color: #374151'\n        id='pdfBtn'\n      >\n        <img src=\""+this.$page.props.pages.base_url+'/assets/pdf.svg" width="20px" alt="pdf-icon">\n      </button>',o=(new DOMParser).parseFromString('<div class=\'p-1 d-flex align-items-center justify-content-around custom-addon\'><button\n        class=\'btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings\'\n        style=\'color: #374151\'\n        id=\'stopBtn\'\n      >\n        <svg style=\'width: 20px\' fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path>\n          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 10a1 1 0 011-1h4a1 1 0 011 1v4a1 1 0 01-1 1h-4a1 1 0 01-1-1v-4z"></path>\n        </svg>\n      </button>'+i+'<button\n        class=\'btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings\'\n        style=\'color: #374151\'\n        id=\'mapBtn\'\n      >\n        <svg style=\'width: 20px\' fill="none" stroke="currentColor" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">\n          <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 20l-5.447-2.724A1 1 0 013 16.382V5.618a1 1 0 011.447-.894L9 7m0 13l6-3m-6 3V7m6 10l4.553 2.276A1 1 0 0021 18.382V7.618a1 1 0 00-.553-.894L15 4m0 13V4m0 0L9 7"></path>\n        </svg>\n      </button></div>',"text/html");n.appendChild(o.body.firstChild),document.getElementById("stopBtn").onclick=function(){e.appendStop()},document.getElementById("pdfBtn").onclick=function(){e.addPdf=!e.addPdf},document.getElementById("mapBtn").onclick=function(){e.addMap=!e.addMap}},changeFrame:function(t){return t=(t=t.replace("iframe","oembed")).replace("src","url")},sendText:function(){var t=this.editorData;this.id?this.$emit("sendText",{id:this.id,body:t}):this.$emit("sendText",t)}}};var c=n(93379),u=n.n(c),d=n(63910),h={insert:"head",singleton:!1};u()(d.Z,h);d.Z.locals;const f=(0,n(51900).Z)(l,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"w-100"},[t.addPdf?e("div",{staticClass:"border border-light p-2 rounded-3 my-2",staticStyle:{"background-color":"#fffbeb"}},[e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("p",{staticClass:"fw-semibold m-0"},[t._v("Scegli il PDF da inserire")]),t._v(" "),e("button",{staticClass:"btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings",staticStyle:{color:"#374151"},on:{click:function(e){t.addPdf=!1}}},[e("svg",{staticStyle:{width:"24px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})])])]),t._v(" "),e("docs-list-modal",{attrs:{pdf_id:null,"emit-file":!0,page_is_reserved:t.page_is_reserved,current_page:t.page},on:{select:t.appendPdf}})],1):t._e(),t._v(" "),t.addMap?e("div",{staticClass:"border border-light p-2 rounded-3 my-2",staticStyle:{"background-color":"#fffbeb"}},[e("div",{staticClass:"d-flex align-items-center justify-content-between"},[e("p",{staticClass:"fw-semibold m-0"},[t._v("Aggiungi una mappa")]),t._v(" "),e("span",{staticClass:"d-flex align-items-center"},[e("button",{staticClass:"btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings",staticStyle:{color:"#374151"},on:{click:function(e){t.addMap=!1,t.pins={}}}},[e("svg",{staticStyle:{width:"24px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M10 14l2-2m0 0l2-2m-2 2l-2-2m2 2l2 2m7-2a9 9 0 11-18 0 9 9 0 0118 0z"}})])]),t._v(" "),e("button",{staticClass:"btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 customSettings",staticStyle:{color:"#374151"},on:{click:function(e){return t.appendMap()}}},[e("svg",{staticStyle:{width:"24px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"}})])])])]),t._v(" "),e("map-select",{attrs:{logo:!0,"custom-marker":null,pins:t.pins}})],1):t._e(),t._v(" "),t.has_table_resize?e("div",{staticClass:"form-check form-check-group"},[e("input",{attrs:{id:"resize-table",type:"checkbox",name:"resize-table"},domProps:{checked:t.enableTableResize},on:{click:function(e){t.enableTableResize=!t.enableTableResize,t.$emit("toggleTableResize",t.enableTableResize)}}}),t._v(" "),e("label",{staticClass:"fw-semibold d-flex align-items-center",attrs:{for:"resize-table"}},[e("button",{staticClass:"btn btn-sm p-1 me-1 hover-gray",attrs:{"data-bs-toggle":"modal","data-bs-target":"#table-resize-info"}},[e("svg",{attrs:{width:"18px",height:"18px",fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z"}})])]),t._v("\n      Attiva ottimizzazione automatica delle tabelle\n    ")])]):t._e(),t._v(" "),e("ckeditor",{ref:"ck",staticClass:"w-100",attrs:{editor:t.editor,config:t.editorConfig},on:{ready:function(e){t.customAddons?t.addCustomCommands(e):t.setReadOnly(e)}},model:{value:t.editorData,callback:function(e){t.editorData=e},expression:"editorData"}}),t._v(" "),t.has_table_resize?e("div",{staticClass:"modal fade",attrs:{id:"table-resize-info",tabindex:"-1",role:"dialog","aria-labelledby":"ModalCenterTitle","aria-hidden":"true"}},[t._m(0)]):t._e()],1)}),[function(){var t=this,e=t._self._c;return e("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}}
2,[e("div",{staticClass:"modal-content rounded"},[e("div",{staticClass:"modal-header"},[e("h4",{staticClass:"modal-title fw-bold text-capitalize",attrs:{id:"ModalLongTitle"}},[t._v("\n            Info\n          ")]),t._v(" "),e("button",{staticClass:"btn-close",attrs:{type:"button","data-bs-dismiss":"modal","aria-label":"Close"}})]),t._v(" "),e("div",{staticClass:"modal-body mb-4"},[t._v("\n          Il sistema cercherà in automatico di riordinare righe e colonne\n          delle tabelle per adattarle al meglio ad un formato mobile. Nel caso\n          l'opzione venisse disattivata allora da telefono la tabella rimarrà\n          invariata, e sarà visibile una barra di scorrimento orizzontale per\n          i contenuti che vanno al di fuori dello schermo\n        ")])])])}],!1,null,null,null).exports},67666:(t,e,n)=>{"use strict";n.d(e,{Z:()=>v});var i=n(15332),o=n.n(i),r=n(67813),a=n(2443);const s={name:"FilePropertyModal",components:{Swatches:o(),Editor:r.Z,PageList:a.Z},props:{file:Object,tag:String,properties:Object},data:function(){return{fileForm:{title:"",description:"",link:"",page_id:null,partner_bg:!0,partner_color:""},showRotationOption:!1,rotation:0,key:0,rotationOptions:[-270,-180,-90,90,180,270]}},watch:{file:function(){this.file&&(this.file.complete&&(this.fileForm=this.file),this.key++,this.checkForSupportedExtension())}},methods:{receiveText:function(t){this.fileForm.description=t},changeDescription:function(){var t=this;if(this.fileForm.link){/https?:\/\/(www\.)?[-a-zA-Z0-9@:%._\+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_\+.~#?&//=]*)/.test(this.fileForm.link)||(this.fileForm.link="https://"+this.fileForm.link)}this.axios.post(this.route("file.update",{file:this.file.id}),{title:this.fileForm.title,description:this.file.description?this.fileForm.description.substring(0,300):this.fileForm.description,link:this.fileForm.link,rotation:this.rotation,page_id:this.fileForm.page_id,partner_bg:this.fileForm.partner_bg,partner_color:this.fileForm.partner_color}).then((function(){t.$eventHub.$emit("showNotify",{message:"Impostazioni immagine salvate!",type:"success"}),t.$emit("update-file",t.file.id),t.fileForm={title:"",description:"",link:"",page_id:null,partner_bg:!0,partner_color:""}}))},checkForSupportedExtension:function(){var t=this.file.extension.toLowerCase();this.showRotationOption=-1!==["jpg","jpeg","png","gif","bmp","webp"].indexOf(t)}}};var l=n(93379),c=n.n(l),u=n(12221),d={insert:"head",singleton:!1};c()(u.Z,d);u.Z.locals;var h=n(51900);const f={components:{"file-property-modal":(0,h.Z)(s,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"modal fade",attrs:{id:"modalFileProperty",tabindex:"-1",role:"dialog","data-bs-focus":"false"}},[t.fileForm?e("div",{staticClass:"modal-dialog modal-dialog-centered modal-lg",attrs:{role:"document"}},[e("div",{staticClass:"modal-content rounded"},[t._m(0),t._v(" "),e("div",{staticClass:"modal-body row"},[t.properties.description?e("div",{staticClass:"col-12"},[e("h6",{staticClass:"fw-bold def-color mt-2"},[t._v("\n              Descrizione dell'immagine\n            ")]),t._v(" "),e("div",{staticClass:"px-2"},[e("editor",{key:t.key,attrs:{"text-data":t.fileForm.description,noGiantContent:!0,has_embed:!1},on:{sendText:t.receiveText}})],1),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.description_partner?e("div",{staticClass:"col-12"},[e("h6",{staticClass:"fw-bold def-color mt-2"},[t._v("\n              Descrizione del partner (massimo 100 caratteri)\n            ")]),t._v(" "),e("div",[e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.fileForm.description,expression:"fileForm.description"}],attrs:{name:"description",id:"description_partner",cols:"30",rows:"3"},domProps:{value:t.fileForm.description},on:{input:function(e){e.target.composing||t.$set(t.fileForm,"description",e.target.value)}}})]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.link?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("Link")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.fileForm.link,expression:"fileForm.link"}],staticClass:"form-control border rounded-3",attrs:{id:"input-link-hero1-"+t.tag,type:"text",placeholder:"Link..."},domProps:{value:t.fileForm.link},on:{input:function(e){e.target.composing||t.$set(t.fileForm,"link",e.target.value)}}})])]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.page?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("Pagina")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("page-list",{key:"page-select-"+t.key,staticClass:"d-flex w-100 bg-white rounded-3 m-0",attrs:{current:t.fileForm.page_id,defaultPage:t.fileForm.page_id,withNull:!0},on:{pageSelect:function(e){t.fileForm.page_id=e}}})],1)]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.showRotationOption?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Rotazione immagine\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("select",{directives:[{name:"model",rawName:"v-model",value:t.rotation,expression:"rotation"}],staticClass:"d-flex w-100 bg-white rounded-3 border border-light p-1 m-0",attrs:{id:"select-page-"+t.tag},on:{change:function(e){var n=Array.prototype.filter.call(e.target.options,
2(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.rotation=e.target.multiple?n:n[0]}}},[e("option",{domProps:{value:0}},[t._v("Nessuna rotazione")]),t._v(" "),t._l(t.rotationOptions,(function(n,i){return e("option",{key:i,domProps:{value:n}},[t._v("\n                    "+t._s(n+" gradi")+"\n                  ")])}))],2)])]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.button&&(t.fileForm.page_id||t.fileForm.link)?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[t._m(1),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("input",{directives:[{name:"model",rawName:"v-model",value:t.fileForm.title,expression:"fileForm.title"}],staticClass:"form-control border rounded-3",attrs:{id:"input-text-hero1-"+t.tag,type:"text",placeholder:"Descrizione collegamento..."},domProps:{value:t.fileForm.title},on:{input:function(e){e.target.composing||t.$set(t.fileForm,"title",e.target.value)}}})])]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.partner_bg?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Mostra colore di sfondo\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2"},[e("div",{staticClass:"toggles"},[e("label",{attrs:{for:"toggle-partner-bg-"+t.tag}},[e("input",{attrs:{id:"toggle-partner-bg-"+t.tag,type:"checkbox"},domProps:{checked:t.fileForm.partner_bg},on:{click:function(e){t.fileForm.partner_bg=!t.fileForm.partner_bg}}}),t._v(" "),e("span",{staticClass:"lever"})])])])]),t._v(" "),e("hr")]):t._e(),t._v(" "),t.properties.partner_color?e("div",{staticClass:"col-12"},[e("div",{staticClass:"row"},[e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Colore di Sfondo personalizzato\n              ")]),t._v(" "),e("div",{staticClass:"col-8 px-2 d-flex align-items-center"},[e("swatches",{staticClass:"ms-auto",attrs:{"max-height":"400","show-fallback":"",colors:"text-advanced","popover-to":"left"},model:{value:t.fileForm.partner_color,callback:function(e){t.$set(t.fileForm,"partner_color",e)},expression:"fileForm.partner_color"}})],1)]),t._v(" "),e("hr")]):t._e()]),t._v(" "),e("div",{staticClass:"modal-footer mt-3 ms-auto"},[e("button",{staticClass:"btn bg-white text-dark border border-dark mx-1 px-4 py-2 rounded-3",attrs:{id:"closeFileModal","data-bs-dismiss":"modal",type:"button"}},[t._v("\n            Annulla\n            "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","times"]}})],1),t._v(" "),e("button",{staticClass:"btn bg-dark text-white mx-1 px-4 py-2 rounded-3",attrs:{"data-bs-dismiss":"modal",type:"button"},on:{click:t.changeDescription}},[t._v("\n            Salva\n            "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","save"]}})],1)])])]):t._e()])])}),[function(){var t=this._self._c;return t("div",{staticClass:"modal-header"},[t("h5",{staticClass:"modal-title"},[this._v("Proprietà del file")])])},function(){var t=this,e=t._self._c;return e("h6",{staticClass:"col-4 fw-bold def-color mt-2"},[t._v("\n                Tasto di collegamento del link/pagina\n                "),e("small",[t._v("Attivo solo se la testata è in modalità 50-50!")])])}],!1,null,"7b494d74",null).exports},props:{files:Array,tag:String,fromHeroOrPartnerEditor:{type:Boolean,required:!1,default:!1},translation_template:{type:Object,required:!1,default:null},extension_in_name:{type:Boolean,required:!1,default:!0},properties:{required:!1,default:function(){return{description:!0,link:!0,page:!0,button:!0,enabled:!0}}}},data:function(){return{fileSelect:null,filesData:this.files}},mounted:function(){},created:function(){this.fromHeroOrPartnerEditor&&(this.$options.components.TranslationToolbarButton=function(){return n.e(2662).then(n.bind(n,92662))})},methods:{askForTranslationModal:function(t){this.$eventHub.$emit("setSelectedComponentForTranslations",t)},updateRotation:function(t,e){var n=this;this.$inertia.post(this.route("file.update.rotation",e.id),{rotation:t},{preserveScroll:!0,preserveState:!0,onFinish:function(){n.$eventHub.$emit("showNotify",{message:"Rotazione file aggiornata! Aggiorna la pagina per vedere i cambiamenti",type:"success"})}})},updateOrder:function(t){var e=this;this.$inertia.post(this.route("file.update.order",t.id),{order:t.order},{preserveScroll:!0,preserveState:!0,onFinish:function(){e.$eventHub.$emit("showNotify",{message:"Ordine file aggiornato!",type:"success"})}})},updateFile:function(t){var e=this;this.fileSelect=null;var n=this.filesData.find((function(t){t.id}));this.axios.post(this.route("file.get",t)).then((function(t){e.filesData[n]=t.data,e.filesData[n].complete=!0}))},deleteImage:function(t){var e=this;this.fileSelect=null,document.getElementById("close-delete-file-modal").click(),this.$inertia.delete(this.route("file.delete",{file:t}),{preserveState:!0,preserveScroll:!0,onFinish:function(){e.$eventHub.$emit("showNotify",{message:"File eliminato!",type:"success"}),e.$emit("file-delete",t)}})}}},p=f;var m=n(23577),g={insert:"head",singleton:!1};c()(m.Z,g);m.Z.locals;const v=(0,h.Z)(p,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"rounded-3 border border-light",staticStyle:{"background-color":"#fafafa"}},[e("div",{staticClass:"def-color m-2"},[e("svg",{staticClass:"me-2 align-middle",attrs:{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{d:"M3 7V17C3 18.1046 3.89543 19 5 19H19C20.1046 19 21 18.1046 21 17V9C21 7.89543 20.1046 7 19 7H13L11 5H5C3.89543 5 3 5.89543 3 7Z",stroke:"currentColor","stroke-width":"2","stroke-linecap":"round","stroke-linejoin":"round"}})]),t._v(" "),e("span",{staticClass:"fw-bold def-color align-middle"},[t._v("Caricati")])]),t._v(" "),t.filesData.length?t._e():e("div",{staticClass:"m-2 fw-bold"},[t._v("\n    Ancora nessun file da mostrare 😓\n  ")]),t._v(" "),e("div",{staticClass:"image-container scrollbar m-2"},[e("div",{staticClass:"card-columns"},t._l(t.filesData,(function(n){return e("div",{key:n.id,staticClass:"card no-after p-1 m-0",staticStyle:{"background-color":"#fafafa"}},[e("div",{staticClass:"overlay-container w-100"},[e("img",{staticClass:"card-img-top rounded-3 border border-light",staticStyle:{"min-height":"100px"}
2,attrs:{src:"/storage"+n.path+"/"+(t.extension_in_name?n.name:n.name+"."+n.extension),alt:n.name}}),t._v(" "),e("div",{staticClass:"overlay rounded-3 d-flex"},[e("button",{staticClass:"btn btn-sm rounded-3 text-white bg-danger p-1",attrs:{"data-bs-toggle":"modal","data-bs-target":"#modalDeleteFileDisplay"},on:{click:function(e){t.fileSelect=n}}},[e("span",{staticClass:"align-middle"},[t._v(" Elimina ")])]),t._v(" "),t.properties.enabled?e("button",{staticClass:"btn btn-sm rounded-3 text-black bg-white ms-2 p-1",attrs:{type:"button","data-bs-toggle":"modal","data-bs-target":"#modalFileProperty"},on:{click:function(e){t.fileSelect=n}}},[e("span",{staticClass:"align-middle"},[t._v(" Proprietà ")])]):t._e(),t._v(" "),t.fromHeroOrPartnerEditor&&n.translations?e("TranslationToolbarButton",{staticClass:"ms-2",attrs:{invertedColors:!0},on:{buttonClick:function(e){return t.askForTranslationModal({props:{data:n},name:"File",table:"files",s_id:n.id,translation_template:t.translation_template,translations:n.translations})}}}):e("div",{staticClass:"ms-auto d-flex"},[e("button",{staticClass:"btn btn-sm rounded-3 text-black bg-white ms-2 p-1",attrs:{type:"button"},on:{click:function(e){return t.updateRotation(90,n)}}},[t._v("\n                +90°\n              ")]),t._v(" "),e("button",{staticClass:"btn btn-sm rounded-3 text-black bg-white me-2 p-1",attrs:{type:"button"},on:{click:function(e){return t.updateRotation(-90,n)}}},[t._v("\n                -90°\n              ")])]),t._v(" "),e("div",{staticClass:"ms-auto"},[e("select",{directives:[{name:"model",rawName:"v-model",value:n.order,expression:"item.order"}],staticClass:"rounded-3",attrs:{id:"input-position-file-"+n.id},on:{change:[function(e){var i=Array.prototype.filter.call(e.target.options,(function(t){return t.selected})).map((function(t){return"_value"in t?t._value:t.value}));t.$set(n,"order",e.target.multiple?i:i[0])},function(e){return t.updateOrder(n)}]}},[e("option",{domProps:{value:void 0}},[t._v("/")]),t._v(" "),e("option",{domProps:{value:999}},[t._v("/")]),t._v(" "),e("option",{domProps:{value:0}},[t._v("/")]),t._v(" "),t._l(t.filesData.length,(function(n){return e("option",{key:n,domProps:{value:n}},[t._v("\n                  n° "+t._s(n)+"\n                ")])}))],2)])],1)])])})),0)]),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modalDeleteFileDisplay",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[e("div",{staticClass:"modal-content rounded"},[t._m(0),t._v(" "),e("div",{staticClass:"modal-footer mt-3 ms-auto"},[t.fileSelect?e("button",{staticClass:"btn bg-dark text-white mx-1 px-4 py-2 rounded-3",attrs:{"data-bs-dismiss":"modal",type:"button"},on:{click:function(e){return t.deleteImage(t.fileSelect.id)}}},[t._v("\n            Conferma\n            "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","check"]}})],1):t._e(),t._v(" "),e("button",{staticClass:"btn bg-white text-dark border border-dark mx-1 px-4 py-2 rounded-3 close",attrs:{id:"close-delete-file-modal","data-bs-dismiss":"modal",type:"button"}},[t._v("\n            Annulla\n            "),e("font-awesome-icon",{staticClass:"ms-2",attrs:{icon:["fas","times"]}})],1)])])])]),t._v(" "),t.properties.enabled?e("span",[e("file-property-modal",{attrs:{file:t.fileSelect,length:t.filesData.length,properties:t.properties,tag:t.tag},on:{"update-file":t.updateFile}})],1):t._e()])}),[function(){var t=this._self._c;return t("div",{staticClass:"modal-header"},[t("h5",{staticClass:"modal-title"},[this._v("\n            Sei sicuro di voler eliminare questa immagine?\n          ")])])}],!1,null,"7b970f58",null).exports},76100:(t,e,n)=>{"use strict";n.d(e,{Z:()=>U});var i=n(75352),o=n(32727),r=n(48380),a=n(77889),s=n(28592),l=n(45243),c=n(24678);function u(){return u=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t},u.apply(this,arguments)}function d(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,h(t,e)}
2function h(t,e){return h=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},h(t,e)}function f(t,e,n){return f=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(t){return!1}}()?Reflect.construct.bind():function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&h(o,n.prototype),o},f.apply(null,arguments)}function p(t,e,n,i){void 0===e&&(e=""),void 0===i&&(i={});var o=document.createElement(t);return e&&(o.className=e),Object.keys(i).forEach((function(t){if("function"==typeof i[t]){var e=0===t.indexOf("on")?t.substr(2).toLowerCase():t;o.addEventListener(e,i[t])}else"html"===t?o.innerHTML=i[t]:"text"===t?o.innerText=i[t]:o.setAttribute(t,i[t])})),n&&n.appendChild(o),o}function m(t){t.preventDefault(),t.stopPropagation()}var g=function(){return[].slice.call(arguments).filter(Boolean).join(" ").trim()};function v(t,e){t&&t.classList&&(Array.isArray(e)?e:[e]).forEach((function(e){t.classList.contains(e)||t.classList.add(e)}))}function k(t,e){t&&t.classList&&(Array.isArray(e)?e:[e]).forEach((function(e){t.classList.contains(e)&&t.classList.remove(e)}))}var b,y,_=13,w=40,C=38,A=[_,27,w,C,37,39],x=function(){function t(t){var e=this,n=t.handleSubmit,i=t.searchLabel,o=t.classNames,r=void 0===o?{}:o;this.container=void 0,this.form=void 0,this.input=void 0,this.handleSubmit=void 0,this.hasError=!1,this.container=p("div",g("geosearch",r.container)),this.form=p("form",["",r.form].join(" "),this.container,{autocomplete:"none",onClick:m,onDblClick:m,touchStart:m,touchEnd:m}),this.input=p("input",["glass",r.input].join(" "),this.form,{type:"text",placeholder:i||"search",onInput:this.onInput,onKeyUp:function(t){return e.onKeyUp(t)},onKeyPress:function(t){return e.onKeyPress(t)},onFocus:this.onFocus,onBlur:this.onBlur,onClick:function(){e.input.focus(),e.input.dispatchEvent(new Event("focus"))}}),this.handleSubmit=n}var e=t.prototype;return e.onFocus=function(){v(this.form,"active")},e.onBlur=function(){k(this.form,"active")},e.onSubmit=function(t){try{var e=this;return m(t),k(n=e.container,"error"),v(n,"pending"),Promise.resolve(e.handleSubmit({query:e.input.value})).then((function(){k(e.container,"pending")}))}catch(t){return Promise.reject(t)}var n},e.onInput=function(){this.hasError&&(k(this.container,"error"),this.hasError=!1)},e.onKeyUp=function(t){27===t.keyCode&&(k(this.container,["pending","active"]),this.input.value="",document.body.focus(),document.body.blur())},e.onKeyPress=function(t){t.keyCode===_&&this.onSubmit(t)},e.setQuery=function(t){this.input.value=t},t}(),D=function(){function t(t){var e=this,n=t.handleClick,i=t.classNames,o=void 0===i?{}:i,r=t.notFoundMessage;this.handleClick=void 0,this.selected=-1,this.results=[],this.container=void 0,this.resultItem=void 0,this.notFoundMessage=void 0,this.onClick=function(t){if("function"==typeof e.handleClick){var n=t.target;if(n&&e.container.contains(n)&&n.hasAttribute("data-key")){var i=Number(n.getAttribute("data-key"));e.clear(),e.handleClick({result:e.results[i]})}}},this.handleClick=n,this.notFoundMessage=r?p("div",g(o.notfound),void 0,{html:r}):void 0,this.container=p("div",g("results",o.resultlist)),this.container.addEventListener("click",this.onClick,!0),this.resultItem=p("div",g(o.item))}var e=t.prototype;return e.render=function(t,e){var n=this;void 0===t&&(t=[]),this.clear(),t.forEach((function(t,i){var o=n.resultItem.cloneNode(!0);o.setAttribute("data-key",""+i),o.innerHTML=e({result:t}),n.container.appendChild(o)})),t.length>0?(v(this.container.parentElement,"open"),v(this.container,"active")):this.notFoundMessage&&(this.container.appendChild(this.notFoundMessage),v(this.container.parentElement,"open")),this.results=t},e.select=function(t){return Array.from(this.container.children).forEach((function(e,n){return n===t?v(e,"active"):k(e,"active")})),this.selected=t,this.results[t]},e.count=function(){return this.results?this.results.length:0},e.clear=function(){for(this.selected=-1;this.container.lastChild;)this.container.removeChild(this.container.lastChild);k(this.container.parentElement,"open"),k(this.container,"active")},t}(),E={position:"topleft",style:"button",showMarker:!0,showPopup:!1,popupFormat:function(t){return""+t.result.label},resultFormat:function(t){return""+t.result.label},marker:{icon:l&&l.Icon?new l.Icon.Default:void 0,draggable:!1},maxMarkers:1,maxSuggestions:5,retainZoomLevel:!1,animateZoom:!0,searchLabel:"Enter address",clearSearchLabel:"Clear search",notFoundMessage:"",messageHideDelay:3e3,zoomLevel:18,classNames:{container:"leaflet-bar leaflet-control leaflet-control-geosearch",button:"leaflet-bar-part leaflet-bar-part-single",resetButton:"reset",msgbox:"leaflet-bar message",form:"",input:"",resultlist:"",item:"",notfound:"leaflet-bar-notfound"},autoComplete:!0,autoCompleteDelay:250,autoClose:!1,keepResult:!1,updateMap:!0},S="Leaflet must be loaded before instantiating the GeoSearch control",T={options:u({},E),classNames:u({},E.classNames),initialize:function(t){var e,n,i,o,r=this;if(!l)throw new Error(S);if(!t.provider)throw new Error("Provider is missing from options");this.options=u({},E,t),this.classNames=u({},this.classNames,t.classNames),this.markers=new l.FeatureGroup,this.classNames.c
2ontainer+=" leaflet-geosearch-"+this.options.style,this.searchElement=new x({searchLabel:this.options.searchLabel,classNames:{container:this.classNames.container,form:this.classNames.form,input:this.classNames.input},handleSubmit:function(t){return r.onSubmit(t)}}),this.button=p("a",this.classNames.button,this.searchElement.container,{title:this.options.searchLabel,href:"#",onClick:function(t){return r.onClick(t)}}),l.DomEvent.disableClickPropagation(this.button),this.resetButton=p("button",this.classNames.resetButton,this.searchElement.form,{text:"×","aria-label":this.options.clearSearchLabel,onClick:function(){""===r.searchElement.input.value?r.close():r.clearResults(null,!0)}}),l.DomEvent.disableClickPropagation(this.resetButton),this.options.autoComplete&&(this.resultList=new D({handleClick:function(t){var e=t.result;r.searchElement.input.value=e.label,r.onSubmit({query:e.label,data:e})},classNames:{resultlist:this.classNames.resultlist,item:this.classNames.item,notfound:this.classNames.notfound},notFoundMessage:this.options.notFoundMessage}),this.searchElement.form.appendChild(this.resultList.container),this.searchElement.input.addEventListener("keyup",(e=function(t){return r.autoSearch(t)},void 0===(n=this.options.autoCompleteDelay)&&(n=250),void 0===i&&(i=!1),function(){var t=[].slice.call(arguments);o&&clearTimeout(o),o=setTimeout((function(){o=null,i||e.apply(void 0,t)}),n),i&&!o&&e.apply(void 0,t)}),!0),this.searchElement.input.addEventListener("keydown",(function(t){return r.selectResult(t)}),!0),this.searchElement.input.addEventListener("keydown",(function(t){return r.clearResults(t,!0)}),!0)),this.searchElement.form.addEventListener("click",(function(t){t.preventDefault()}),!1)},onAdd:function(t){var e=this.options,n=e.showMarker,i=e.style;if(this.map=t,n&&this.markers.addTo(t),"bar"===i){var o=t.getContainer().querySelector(".leaflet-control-container");this.container=p("div","leaflet-control-geosearch leaflet-geosearch-bar"),this.container.appendChild(this.searchElement.form),o.appendChild(this.container)}return l.DomEvent.disableClickPropagation(this.searchElement.form),this.searchElement.container},onRemove:function(){var t;return null==(t=this.container)||t.remove(),this},open:function(){var t=this.searchElement,e=t.input;v(t.container,"active"),e.focus()},close:function(){k(this.searchElement.container,"active"),this.clearResults()},onClick:function(t){t.preventDefault(),t.stopPropagation(),this.searchElement.container.classList.contains("active")?this.close():this.open()},selectResult:function(t){if(-1!==[_,w,C].indexOf(t.keyCode))if(t.preventDefault(),t.keyCode!==_){var e=this.resultList.count()-1;if(!(e<0)){var n=this.resultList.selected,i=t.keyCode===w?n+1:n-1,o=this.resultList.select(i<0?e:i>e?0:i);this.searchElement.input.value=o.label}}else{var r=this.resultList.select(this.resultList.selected);this.onSubmit({query:this.searchElement.input.value,data:r})}},clearResults:function(t,e){if(void 0===e&&(e=!1),!t||27===t.keyCode){var n=this.options,i=n.autoComplete;!e&&n.keepResult||(this.searchElement.input.value="",this.markers.clearLayers()),i&&this.resultList.clear()}},autoSearch:function(t){try{var e=this;if(A.indexOf(t.keyCode)>-1)return Promise.resolve();var n=t.target.value,i=e.options.provider,o=function(){if(n.length)return Promise.resolve(i.search({query:n})).then((function(t){t=t.slice(0,e.options.maxSuggestions),e.resultList.render(t,e.options.resultFormat)}));e.resultList.clear()}();return Promise.resolve(o&&o.then?o.then((function(){})):void 0)}catch(t){return Promise.reject(t)}},onSubmit:function(t){try{var e=this;return Promise.resolve(e.options.provider.search(t)).then((function(n){n&&n.length>0&&e.showResult(n[0],t)}))}catch(t){return Promise.reject(t)}},showResult:function(t,e){var n=this.options,i=n.autoClose,o=n.updateMap,r=this.markers.getLayers();r.length>=this.options.maxMarkers&&this.markers.removeLayer(r[0]);var a=this.addMarker(t,e);o&&this.centerMap(t),this.map.fireEvent("geosearch/showlocation",{location:t,marker:a}),i&&this.closeResults()},closeResults:function(){var t=this.searchElement.container;t.classList.contains("active")&&k(t,"active"),this.clearResults()},addMarker:function(t,e){var n=this,i=this.options,o=i.marker,r=i.showPopup,a=i.popupFormat,s=new l.Marker([t.y,t.x],o),c=t.label;return"function"==typeof a&&(c=a({query:e,result:t})),s.bindPopup(c),this.markers.addLayer(s),r&&s.openPopup(),o.draggable&&s.on("dragend",(function(t){n.map.fireEvent("geosearch/marker/dragend",{location:s.getLatLng(),event:t})})),s},centerMap:function(t){var e=this.options,n=e.retainZoomLevel,i=e.animateZoom,o=t.bounds?new l.LatLngBounds(t.bounds):new l.LatLng(t.y,t.x).toBounds(10),r=o.isValid()?o:this.markers.getBounds();
2!n&&o.isValid()&&!t.bounds||n||!o.isValid()?this.map.setView(r.getCenter(),this.getZoom(),{animate:i}):this.map.fitBounds(r,{animate:i})},getZoom:function(){var t=this.options,e=t.zoomLevel;return t.retainZoomLevel?this.map.getZoom():e}};function I(){if(!l)throw new Error(S);return f(l.Control.extend(T),[].slice.call(arguments))}(y=b||(b={}))[y.SEARCH=0]="SEARCH",y[y.REVERSE=1]="REVERSE";var z,M=function(){function t(t){void 0===t&&(t={}),this.options=void 0,this.options=t}var e=t.prototype;return e.getParamString=function(t){void 0===t&&(t={});var e=u({},this.options.params,t);return Object.keys(e).map((function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])})).join("&")},e.getUrl=function(t,e){return t+"?"+this.getParamString(e)},e.search=function(t){try{var e=this,n=e.endpoint({query:t.query,type:b.SEARCH});return Promise.resolve(fetch(n)).then((function(t){return Promise.resolve(t.json()).then((function(t){return e.parse({data:t})}))}))}catch(t){return Promise.reject(t)}},t}();!function(t){t[t.INITIALIZED=0]="INITIALIZED",t[t.LOADING=1]="LOADING",t[t.SUCCESS=2]="SUCCESS",t[t.FAILURE=3]="FAILURE"}(z||(z={}));var B=function(t){function e(e){var n;void 0===e&&(e={}),(n=t.call(this,e)||this).searchUrl=void 0,n.reverseUrl=void 0;var i="https://nominatim.openstreetmap.org";return n.searchUrl=e.searchUrl||i+"/search",n.reverseUrl=e.reverseUrl||i+"/reverse",n}d(e,t);var n=e.prototype;return n.endpoint=function(t){var e=t.query,n=t.type,i="string"==typeof e?{q:e}:e;return i.format="json",this.getUrl(n===b.REVERSE?this.reverseUrl:this.searchUrl,i)},n.parse=function(t){return(Array.isArray(t.data)?t.data:[t.data]).map((function(t){return{x:Number(t.lon),y:Number(t.lat),label:t.display_name,bounds:[[parseFloat(t.boundingbox[0]),parseFloat(t.boundingbox[2])],[parseFloat(t.boundingbox[1]),parseFloat(t.boundingbox[3])]],raw:t}}))},e}(M);function P(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=null==t?null:"undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(null!=n){var i,o,r,a,s=[],l=!0,c=!1;try{if(r=(n=n.call(t)).next,0===e){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=r.call(n)).done)&&(s.push(i.value),s.length!==e);l=!0);}catch(t){c=!0,o=t}finally{try{if(!l&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return s}}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return L(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 L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}const N={name:"MapsSelector",components:{LControlFullscreen:c.Z,"l-map":i.Z,"l-tile-layer":o.Z,"l-marker":r.Z,"l-popup":a.Z,"l-icon":s.Z},props:{pins:Object,logo:Boolean,customMarker:{required:!1,type:Object}},data:function(){return{key:0,dblClickPoint:null,customLabel:{title:null,description:null},defIcon:this.Iconlink(),zoom:13,url:"https://tile.openstreetmap.org/{z}/{x}/{y}.png",attribution:'&copy; <a href="http://osm.org/copyright">OpenStreetMap</a> contributors',mapOptions:{zoomSnap:.5},currentZoom:11.5,center:this.calculateMean(),showMap:!0,pinsData:this.pins}},mounted:function(){this.calculateZoom(),this.startEvents()},methods:{calculateMean:function(){var t=this.pins;if(!t)return!1;for(var e=0,n=0,i=0,o=Object.entries(t);i<o.length;i++){var r=P(o[i],2),a=(r[0],r[1]);e+=a.x,n+=a.y}return e/=Object.keys(t).length,n/=Object.keys(t).length,e&&n?(0,l.latLng)(e,n):(0,l.latLng)(45.9671457,12.6556298)},calculateZoom:function(){var t=this.pins;if(!t)return!1;for(var e=0,n=[],i=0,o=Object.entries(t);i<o.length;i++){var r=P(o[i],2),a=(r[0],r[1]);if(Object.keys(t).length>1)for(var s=0,l=Object.entries(t);s<l.length;s++){var c=P(l[s],2),u=(c[0],c[1]);if(u.label.title!==a.label.title){var d=Math.pow(u.x-a.x,2),h=Math.pow(u.
2y-a.y,2),f=Math.sqrt(d+h);f>e&&(e=f),n=[[u.x,u.y],[a.x,a.y]]}}}e&&this.$refs.map.mapObject.fitBounds(n)},startEvents:function(){var t=this,e=this.$refs.map.mapObject;e.on("dblclick",(function(e){t.dblClickPoint={x:e.latlng.lat,y:e.latlng.lng},t.customLabel={title:null,description:null},document.getElementById("toggle-label-modal").click()}));var n=new I({style:"bar",provider:new B,showMarker:!0,marker:{icon:window.L.icon({iconUrl:"https://www.freepnglogos.com/uploads/pin-png/pin-northlands-college-admissions-1.png",iconSize:[32,32]}),draggable:!1},resultFormat:this.formatResult,notFoundMessage:"Nessuna località trovata",maxMarkers:1e3,autoClose:!1,searchLabel:"Cerca indirizzo",keepResult:!1});e.addControl(n)},triggerEdit:function(t){this.customLabel=this.pinsData[t].label,this.dblClickPoint={x:this.pinsData[t].x,y:this.pinsData[t].y},document.getElementById("toggle-label-modal").click()},removePin:function(t){this.dblClickPoint={x:this.pinsData[t].x,y:this.pinsData[t].y},delete this.pinsData[t],this.key++},assignCustomLabel:function(){this.pinsData[this.customLabel.title]={label:this.customLabel,x:this.dblClickPoint.x,y:this.dblClickPoint.y},this.customLabel={title:null,description:null},document.getElementById("close-map-selector").click()},getCoordinates:function(t,e){return(0,l.latLng)(t,e)},Iconlink:function(){var t,e,n=this.$page.props.pages.base_url+"/storage/images/contacts/"+this.$page.props.header.info.logo.value,i=this.$page.props.pages.base_url+"/storage/favicon/favicon-32x32.png",o=this.$page.props.pages.base_url+"/storage/images/contacts/"+(null===(t=this.customMarker)||void 0===t?void 0:t.name)+"."+(null===(e=this.customMarker)||void 0===e?void 0:e.extension);return!this.logo&&this.customMarker?o:this.logo&&!this.customMarker?n:i},formatResult:function(t){return t.result.label},zoomUpdate:function(t){this.currentZoom=t},centerUpdate:function(t){this.currentCenter=t}}},O=N;var F=n(93379),R=n.n(F),j=n(62813),V={insert:"head",singleton:!1};R()(j.Z,V);j.Z.locals;var H=(0,n(51900).Z)(O,(function(){var t=this,e=t._self._c;return e("div",[e("div",{staticClass:"my-2",staticStyle:{width:"100%",height:"300px"}},[t.showMap?e("l-map",{ref:"map",staticStyle:{height:"100%"},attrs:{zoom:t.zoom,center:t.center,options:t.mapOptions},on:{"update:center":t.centerUpdate,"update:zoom":t.zoomUpdate}},[e("l-control-fullscreen",{attrs:{position:"topleft",options:{title:{false:"Go big!",true:"Be regular"}}}}),t._v(" "),e("span",{key:t.key},t._l(t.pinsData,(function(n,i){return e("l-marker",{key:i,attrs:{"lat-lng":[n.x,n.y]}},[e("l-icon",{attrs:{"icon-url":t.defIcon,"icon-size":[32,32]}}),t._v(" "),e("l-popup",[e("div",[e("p",{staticClass:"fw-semibold def-color"},[t._v("\n                "+t._s(n.label.title)+"\n              ")]),t._v(" "),n.label.description?e("p",{staticClass:"def-color"},[t._v("\n                "+t._s(n.label.description)+"\n              ")]):t._e(),t._v(" "),e("div",{staticClass:"d-flex align-items-center my-2"},[e("button",{staticClass:"btn p-1 rounded-3 btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center ms-1 settings",staticStyle:{color:"#374151"},attrs:{id:i+"-btn"},on:{click:function(e){return t.triggerEdit(n.label.title)}}},[e("svg",{staticStyle:{width:"16px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M11 5H6a2 2 0 00-2 2v11a2 2 0 002 2h11a2 2 0 002-2v-5m-1.414-9.414a2 2 0 112.828 2.828L11.828 15H9v-2.828l8.586-8.586z"}})])]),t._v(" "),e("button",{staticClass:"btn btn-dropdown dropdown-toggle d-flex align-items-center justify-content-center rounded-3 ms-1 p-1 hover",staticStyle:{color:"#dc2626"},attrs:{type:"button"},on:{click:function(e){return t.removePin(n.label.title)}}},[e("svg",{staticStyle:{width:"16px"},attrs:{fill:"none",stroke:"currentColor",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round","stroke-width":"2",d:"M19 7l-.867 12.142A2 2 0 0116.138 21H7.862a2 2 0 01-1.995-1.858L5 7m5 4v6m4-6v6m1-10V4a1 1 0 00-1-1h-4a1 1 0 00-1 1v3M4 7h16"}}
2)])])])])])],1)})),1),t._v(" "),e("l-tile-layer",{attrs:{url:t.url,attribution:t.attribution}})],1):t._e()],1),t._v(" "),e("button",{staticClass:"d-none",attrs:{id:"toggle-label-modal",type:"button","data-bs-toggle":"modal","data-bs-target":"#modal-define-label"}}),t._v(" "),e("div",{staticClass:"modal fade",attrs:{id:"modal-define-label",tabindex:"-1",role:"dialog"}},[e("div",{staticClass:"modal-dialog modal-dialog-centered",attrs:{role:"document"}},[e("div",{staticClass:"modal-content rounded"},[t._m(0),t._v(" "),e("div",{staticClass:"modal-body"},[e("h6",{staticClass:"fw-bold def-color mb-0"},[t._v("\n            Etichetta*\n          ")]),t._v(" "),e("input",{directives:[{name:"model",rawName:"v-model",value:t.customLabel.title,expression:"customLabel.title"}],staticClass:"rounded-3 w-100 border border-light p-1",attrs:{placeholder:"Etichetta posizione"},domProps:{value:t.customLabel.title},on:{input:function(e){e.target.composing||t.$set(t.customLabel,"title",e.target.value)}}}),t._v(" "),e("h6",{staticClass:"fw-bold def-color mt-2 mb-0"},[t._v("\n            Descrizione\n          ")]),t._v(" "),e("textarea",{directives:[{name:"model",rawName:"v-model",value:t.customLabel.description,expression:"customLabel.description"}],staticClass:"rounded-3 w-100 border border-light p-1 mt-1",attrs:{placeholder:"Descrizione",rows:"5"},domProps:{value:t.customLabel.description},on:{input:function(e){e.target.composing||t.$set(t.customLabel,"description",e.target.value)}}})]),t._v(" "),e("div",{staticClass:"modal-footer mt-3 ms-auto"},[e("button",{staticClass:"btn btn-sm bg-dark text-white border border-light mx-1 p-1 rounded-3",attrs:{disabled:t.customLabel.title?null:"disabled",type:"button"},on:{click:t.assignCustomLabel}},[t._v("\n            Conferma\n          ")]),t._v(" "),e("button",{staticClass:"btn btn-sm bg-white text-black border border-light mx-1 p-1 rounded-3 close",attrs:{id:"close-map-selector","data-bs-dismiss":"modal",type:"button"}},[t._v("\n            Annulla\n          ")])])])])])])}),[function(){var t=this._self._c;return t("div",{staticClass:"modal-header"},[t("h5",{staticClass:"modal-title"},[this._v("\n            Inserisci Etichetta\n          ")])])}],!1,null,"18c91189",null);const U=H.exports},2443:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i=n(47907);const o={props:{withNull:{type:Boolean,default:!1,required:!1},text:{type:String,required:!1},defaultPage:{type:Number,required:!1,default:null},current:Number,exclude_reserved_page:Boolean,only_reserved:Boolean},components:{Multiselect:n.n(i)()},data:function(){var t=this;return{pages:this.$page.props.pages.all_pages,page_select:this.current&&-1!==this.current&&null!==this.current?this.$page.props.pages.all_pages[this.$page.props.pages.all_pages.findIndex((function(e){return e.id===t.current}))]:null}},mounted:function(){this.exclude_reserved_page&&this.filterPagesByNotReserved(),this.only_reserved&&this.getOnlyReservedPages()},methods:{addNewPage:function(t){this.pages.push(t)},filterPagesByNotReserved:function(){var t=this;this.pages=this.pages.filter((function(e){if(e.id!==t.current&&(t.exclude_reserved_page&&!e.is_reserved||!t.exclude_reserved_page))return e}))},getOnlyReservedPages:function(){var t=this;this.pages=this.pages.filter((function(e){if(e.id!==t.current&&(t.only_reserved&&e.is_reserved||!t.only_reserved))return e}))}},watch:{current:function(){var t=this;this.page_select=this.current&&-1!==this.current&&null!==this.current?this.$page.props.pages.all_pages[this.$page.props.pages.all_pages.findIndex((function(e){return e.id===t.current}))]:null}}};var r=n(93379),a=n.n(r),s=n(47972),l={insert:"head",singleton:!1};a()(s.Z,l);s.Z.locals;var c=n(4806),u={insert:"head",singleton:!1};a()(c.Z,u);c.Z.locals;const d=(0,n(51900).Z)(o,(function(){var t=this,e=t._self._c;return e("div",{staticClass:"row d-flex w-auto justify-content-center"},[e("div",{staticClass:"col-12 custom"},[e("p",{staticClass:"fw-semibold pb-3"},[t._v("\n      "+t._s(t.text)+"\n      "),e("multiselect",{staticClass:"border rounded w-100",attrs:{"custom-label":t.$CustomSelectPagesLabel,"deselect-label":"Deseleziona","select-label":"Seleziona",options:t.pages,multiple:!1,"close-on-select":!0,"allow-empty":t.withNull,"clear-on-select":!1,"preserve-search":!0,placeholder:"Scegli tra le pagine disponibili",label:"name","track-by":"id","value-field":"id","selected-label":"Selezionata"},on:{input:function(e){return t.$emit("pageSelect",t.page_select?t.page_select.id:null)}},scopedSlots:t._u([{key:"noResult",fn:function(){return[e("span",[t._v("Non è stata trovata una categoria corrispondente ai termini di ricerca")])]},proxy:!0}]),model:{value:t.page_select,callback:function(e){t.page_select=e},expression:"page_select"}})],1)])])}),[],!1,null,"948746de",null).exports},91662:(t,e,n)=>{"use strict";n.d(e,{Z:()=>o});const i={name:"Paginazione",props:{data:Object,colors:Object,docs:String,events:Boolean},data:function(){return{startingPoint:0,endingPoint:0,showFirst:!1,showLast:!1,range:2}},watch:{data:function(){this.calculateRange()}},mounted:function(){(this.docs||this.events)&&this.calculateRange()},methods:{getColor:function(t){return t===this.data.current_page?this.colors.secondary_txt:this.colors.primary_txt},changePage:function(t){!this.docs||this.events?this.$emit("changePage",t):this.$emit("changePage",{page:t,type:this.docs})},calculateRange:function(){var t=this.data.current_page-this.range,e=0,n=0;
2t<1&&(n=Math.abs(t)+1,t=1),this.showFirst=!(t<=1);var i=this.data.current_page+this.range;i>this.data.last_page&&(e=i-this.data.last_page,i=this.data.last_page),i>=this.data.last_page?this.showLast=!1:this.showLast=!0,this.startingPoint=t-e,this.endingPoint=i+n}}};const o=(0,n(51900).Z)(i,(function(){var t=this,e=t._self._c;return e("nav",{staticClass:"pagination-wrapper d-flex justify-content-center align-items-center",attrs:{"aria-label":"navigazione della pagina"}},[e("ul",{staticClass:"pagination"},[e("li",{staticClass:"page-item active"},[t.data.prev_page_url?e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:[function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()},function(e){return t.changePage(t.data.current_page-1)}]}},[e("svg",{attrs:{fill:"none",stroke:"currentColor",width:"24px","stroke-width":"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M15.75 19.5L8.25 12l7.5-7.5"}})])]):t._e()]),t._v(" "),t.showFirst&&t.startingPoint>1?e("li",{staticClass:"page-item"},[e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:[function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()},function(e){return t.changePage(1)}]}},[t._v("\n        1\n      ")])]):t._e(),t._v(" "),t.showFirst&&t.startingPoint>1?e("li",{staticClass:"page-item"},[e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()}}},[t._v("\n        ...\n      ")])]):t._e(),t._v(" "),t._l(t.data.last_page,(function(n,i){return n>=t.startingPoint&&n<=t.endingPoint?e("li",{key:i,class:["page-item"]},[e("button",{staticClass:"page-link",style:[{color:t.getColor(n)}],on:{click:[function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()},function(e){return t.changePage(n)}]}},[t._v("\n        "+t._s(n)+"\n      ")])]):t._e()})),t._v(" "),t.showLast&&t.data.last_page>t.endingPoint?e("li",{staticClass:"page-item"},[e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()}}},[t._v("\n        ...\n      ")])]):t._e(),t._v(" "),t.showLast&&t.data.last_page>t.endingPoint?e("li",{staticClass:"page-item"},[e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:[function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()},function(e){return t.changePage(t.data.last_page)}]}},[t._v("\n        "+t._s(t.data.last_page)+"\n      ")])]):t._e(),t._v(" "),e("li",{staticClass:"page-item"},[t.data.next_page_url?e("button",{staticClass:"page-link",style:[{color:t.colors.primary_txt}],on:{click:[function(t){if(t.target!==t.currentTarget)return null;t.preventDefault()},function(e){return t.changePage(t.data.current_page+1)}]}},[e("svg",{attrs:{fill:"none",stroke:"currentColor",width:"24px","stroke-width":"2",viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg","aria-hidden":"true"}},[e("path",{attrs:{"stroke-linecap":"round","stroke-linejoin":"round",d:"M8.25 4.5l7.5 7.5-7.5 7.5"}})])]):t._e()])],2)])}),[],!1,null,null,null).exports},51900:(t,e,n)=>{"use strict";function i(t,e,n,i,o,r,a,s){var l,c="function"==typeof t?t.options:t;if(e&&(c.render=e,c.staticRenderFns=n,c._compiled=!0),i&&(c.functional=!0),r&&(c._scopeId="data-v-"+r),a?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},c._ssrRegister=l):o&&(l=s?function(){o.call(this,(c.functional?this.parent:this).$root.$options.shadowRoot)}:o),l)if(c.functional){c._injectStyles=l;var u=c.render;c.render=function(t,e){return l.call(e),u(t,e)}}else{var d=c.beforeCreate;c.beforeCreate=d?[].concat(d,l):[l]}return{exports:t,options:c}}n.d(e,{Z:()=>i})},47907:function(t){t.exports=function(t){function e(i){if(n[i])return n[i].exports;var o=n[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=89)}([function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){var i=n(35),o=Function.prototype,r=o.call,a=i&&o.bind.bind(r,r);t.exports=i?a:function(t){return function(){return r.apply(t,arguments)}}},function(t,e,n){var i=n(59),o=i.all;t.exports=i.IS_HTMLDDA?function(t){return"function"==typeof t||t===o}:function(t){return"function"==typeof t}},function(t,e,n){var i=n(4),o=n(43).f,r=n(30),a=n(11),s=n(33),l=n(95),c=n(66);t.exports=function(t,e){var n,u,d,h,f,p=t.target,m=t.global,g=t.stat;if(n=m?i:g?i[p]||s(p,{}):(i[p]||{}).prototype)for(u in e){if(h=e[u],d=t.dontCallGetSet?(f=o(n,u))&&f.value:n[u],!c(m?u:p+(g?".":"#")+u,t.forced)&&void 0!==d){if(typeof h==typeof d)continue;l(h,d)}(t.sham||d&&d.sham)&&r(h,"sham",!0),a(n,u,h,t)}}},function(t,e,n){(function(e){var n=function(t){return t&&t.Math==Math&&t};t.exports=n("object"==typeof globalThis&&globalThis)||n("object"==typeof window&&window)||n("object"==typeof self&&self)||n("object"==typeof e&&e)||function(){return this}()||Function("return this")()}).call(e,n(139))},function(t,e,n){var i=n(0);t.exports=!i((function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}}
2)[1]}))},function(t,e,n){var i=n(8),o=String,r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not an object")}},function(t,e,n){var i=n(1),o=n(14),r=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return r(o(t),e)}},function(t,e,n){var i=n(2),o=n(59),r=o.all;t.exports=o.IS_HTMLDDA?function(t){return"object"==typeof t?null!==t:i(t)||t===r}:function(t){return"object"==typeof t?null!==t:i(t)}},function(t,e,n){var i=n(4),o=n(47),r=n(7),a=n(75),s=n(72),l=n(76),c=o("wks"),u=i.Symbol,d=u&&u.for,h=l?u:u&&u.withoutSetter||a;t.exports=function(t){if(!r(c,t)||!s&&"string"!=typeof c[t]){var e="Symbol."+t;s&&r(u,t)?c[t]=u[t]:c[t]=l&&d?d(e):h(e)}return c[t]}},function(t,e,n){var i=n(123);t.exports=function(t){return i(t.length)}},function(t,e,n){var i=n(2),o=n(13),r=n(104),a=n(33);t.exports=function(t,e,n,s){s||(s={});var l=s.enumerable,c=void 0!==s.name?s.name:e;if(i(n)&&r(n,c,s),s.global)l?t[e]=n:a(e,n);else{try{s.unsafe?t[e]&&(l=!0):delete t[e]}catch(t){}l?t[e]=n:o.f(t,e,{value:n,enumerable:!1,configurable:!s.nonConfigurable,writable:!s.nonWritable})}return t}},function(t,e,n){var i=n(35),o=Function.prototype.call;t.exports=i?o.bind(o):function(){return o.apply(o,arguments)}},function(t,e,n){var i=n(5),o=n(62),r=n(77),a=n(6),s=n(50),l=TypeError,c=Object.defineProperty,u=Object.getOwnPropertyDescriptor;e.f=i?r?function(t,e,n){if(a(t),e=s(e),a(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var i=u(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return c(t,e,n)}:c:function(t,e,n){if(a(t),e=s(e),a(n),o)try{return c(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(24),o=Object;t.exports=function(t){return o(i(t))}},function(t,e,n){var i=n(1),o=i({}.toString),r=i("".slice);t.exports=function(t){return r(o(t),8,-1)}},function(t,e,n){var i=n(0),o=n(9),r=n(23),a=o("species");t.exports=function(t){return r>=51||!i((function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},function(t,e,n){var i=n(4),o=n(2),r=function(t){return o(t)?t:void 0};t.exports=function(t,e){return arguments.length<2?r(i[t]):i[t]&&i[t][e]}},function(t,e,n){var i=n(15);t.exports=Array.isArray||function(t){return"Array"==i(t)}},function(t,e,n){var i=n(39),o=n(24);t.exports=function(t){return i(o(t))}},function(t,e,n){var i=n(29),o=String;t.exports=function(t){if("Symbol"===i(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},function(t,e,n){var i=n(100),o=n(1),r=n(39),a=n(14),s=n(10),l=n(28),c=o([].push),u=function(t){var e=1==t,n=2==t,o=3==t,u=4==t,d=6==t,h=7==t,f=5==t||d;return function(p,m,g,v){for(var k,b,y=a(p),_=r(y),w=i(m,g),C=s(_),A=0,x=v||l,D=e?x(p,C):n||h?x(p,0):void 0;C>A;A++)if((f||A in _)&&(b=w(k=_[A],A,y),t))if(e)D[A]=b;else if(b)switch(t){case 3:return!0;case 5:return k;case 6:return A;case 2:c(D,k)}else switch(t){case 4:return!1;case 7:c(D,k)}return d?-1:o||u?u:D}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},function(t,e){var n=TypeError;t.exports=function(t){if(t>9007199254740991)throw n("Maximum allowed index exceeded");return t}},function(t,e,n){var i,o,r=n(4),a=n(97),s=r.process,l=r.Deno,c=s&&s.versions||l&&l.version,u=c&&c.v8;u&&(o=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!o&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(o=+i[1]),t.exports=o},function(t,e,n){var i=n(40),o=TypeError;t.exports=function(t){if(i(t))throw o("Can't call method on "+t);return t}},function(t,e,n){var i=n(2),o=n(74),r=TypeError;t.exports=function(t){if(i(t))return t;throw r(o(t)+" is not a function")}},function(t,e,n){"use strict";var i=n(0);t.exports=function(t,e){var n=[][t];return!!n&&i((function(){n.call(null,e||function(){return 1},1)}))}},function(t,e,n){"use strict";var i=n(5),o=n(18),r=TypeError,a=Object.getOwnPropertyDescriptor,s=i&&!function(){if(void 0!==this)return!0;try{Object.defineProperty([],"length",{writable:!1}).length=1}catch(t){return t instanceof TypeError}}();t.exports=s?function(t,e){if(o(t)&&!a(t,"length").writable)throw r("Cannot set read only .length");return t.length=e}:function(t,e){return t.length=e}},function(t,e,n){var i=n(94);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},function(t,e,n){var i=n(51),o=n(2),r=n(15),a=n(9)("toStringTag"),s=Object,l="Arguments"==r(function(){return arguments}()),c=function(t,e){try{return t[e]}catch(t){}};t.exports=i?r:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=c(e=s(t),a))?n:l?r(e):"Object"==(i=r(e))&&o(e.callee)?"Arguments":i}},function(t,e,n){var i=n(5),o=n(13),r=n(31);t.exports=i?function(t,e,n){return o.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){"use strict";var i=n(50),o=n(13),r=n(31);t.exports=function(t,e,n){var a=i(e);a in t?o.f(t,a,r(0,n)):t[a]=n}},function(t,e,n){var i=n(4),o=Object.defineProperty;t.exports=function(t,e){try{o(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},function(t,e){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleStr
2ing","toString","valueOf"]},function(t,e,n){var i=n(0);t.exports=!i((function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")}))},function(t,e,n){var i=n(5),o=n(7),r=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=o(r,"name"),l=s&&"something"===function(){}.name,c=s&&(!i||i&&a(r,"name").configurable);t.exports={EXISTS:s,PROPER:l,CONFIGURABLE:c}},function(t,e,n){var i=n(15),o=n(1);t.exports=function(t){if("Function"===i(t))return o(t)}},function(t,e){t.exports={}},function(t,e,n){var i=n(1),o=n(0),r=n(15),a=Object,s=i("".split);t.exports=o((function(){return!a("z").propertyIsEnumerable(0)}))?function(t){return"String"==r(t)?s(t,""):a(t)}:a},function(t,e){t.exports=function(t){return null==t}},function(t,e,n){var i=n(17),o=n(2),r=n(44),a=n(76),s=Object;t.exports=a?function(t){return"symbol"==typeof t}:function(t){var e=i("Symbol");return o(e)&&r(e.prototype,s(t))}},function(t,e,n){var i,o=n(6),r=n(107),a=n(34),s=n(38),l=n(101),c=n(60),u=n(70)("IE_PROTO"),d=function(){},h=function(t){return"<script>"+t+"<\/script>"},f=function(t){t.write(h("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){var t,e=c("iframe");return e.style.display="none",l.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(h("document.F=Object")),t.close(),t.F},m=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}m="undefined"!=typeof document?document.domain&&i?f(i):p():f(i);for(var t=a.length;t--;)delete m.prototype[a[t]];return m()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(d.prototype=o(t),n=new d,d.prototype=null,n[u]=t):n=m(),void 0===e?n:r.f(n,e)}},function(t,e,n){var i=n(5),o=n(12),r=n(110),a=n(31),s=n(19),l=n(50),c=n(7),u=n(62),d=Object.getOwnPropertyDescriptor;e.f=i?d:function(t,e){if(t=s(t),e=l(e),u)try{return d(t,e)}catch(t){}if(c(t,e))return a(!o(r.f,t,e),t[e])}},function(t,e,n){var i=n(1);t.exports=i({}.isPrototypeOf)},function(t,e,n){"use strict";var i=n(12),o=n(1),r=n(20),a=n(69),s=n(117),l=n(47),c=n(42),u=n(64).get,d=n(118),h=n(119),f=l("native-string-replace",String.prototype.replace),p=RegExp.prototype.exec,m=p,g=o("".charAt),v=o("".indexOf),k=o("".replace),b=o("".slice),y=function(){var t=/a/,e=/b*/g;return i(p,t,"a"),i(p,e,"a"),0!==t.lastIndex||0!==e.lastIndex}(),_=s.BROKEN_CARET,w=void 0!==/()??/.exec("")[1];(y||w||_||d||h)&&(m=function(t){var e,n,o,s,l,d,h,C=this,A=u(C),x=r(t),D=A.raw;if(D)return D.lastIndex=C.lastIndex,e=i(m,D,x),C.lastIndex=D.lastIndex,e;var E=A.groups,S=_&&C.sticky,T=i(a,C),I=C.source,z=0,M=x;if(S&&(T=k(T,"y",""),-1===v(T,"g")&&(T+="g"),M=b(x,C.lastIndex),C.lastIndex>0&&(!C.multiline||C.multiline&&"\n"!==g(x,C.lastIndex-1))&&(I="(?: "+I+")",M=" "+M,z++),n=new RegExp("^(?:"+I+")",T)),w&&(n=new RegExp("^"+I+"$(?!\\s)",T)),y&&(o=C.lastIndex),s=i(p,S?n:C,M),S?s?(s.input=b(s.input,z),s[0]=b(s[0],z),s.index=C.lastIndex,C.lastIndex+=s[0].length):C.lastIndex=0:y&&s&&(C.lastIndex=C.global?s.index+s[0].length:o),w&&s&&s.length>1&&i(f,s[0],n,(function(){for(l=1;l<arguments.length-2;l++)void 0===arguments[l]&&(s[l]=void 0)})),s&&E)for(s.groups=d=c(null),l=0;l<E.length;l++)d[(h=E[l])[0]]=s[h[1]];return s}),t.exports=m},function(t,e,n){var i=n(4),o=n(33),r=i["__core-js_shared__"]||o("__core-js_shared__",{});t.exports=r},function(t,e,n){var i=n(103),o=n(46);(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.26.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.26.1/LICENSE",source:"https://github.com/zloirock/core-js"})},function(t,e,n){var i=n(49),o=Math.max,r=Math.min;t.exports=function(t,e){var n=i(t);return n<0?o(n+e,0):r(n,e)}},function(t,e,n){var i=n(105);t.exports=function(t){var e=+t;return e!=e||0===e?0:i(e)}},function(t,e,n){var i=n(73),o=n(41);t.exports=function(t){var e=i(t,"string");return o(e)?e:e+""}},function(t,e,n){var i={};i[n(9)("toStringTag")]="z",t.exports="[object z]"===String(i)},function(t,e,n){"use strict";var i=n(5),o=n(4),r=n(1),a=n(66),s=n(11),l=n(7),c=n(102),u=n(44),d=n(41),h=n(73),f=n(0),p=n(67).f,m=n(43).f,g=n(13).f,v=n(122),k=n(71).trim,b=o.Number,y=b.prototype,_=o.TypeError,w=r("".slice),C=r("".charCodeAt),A=function(t){var e=h(t,"number");
2return"bigint"==typeof e?e:x(e)},x=function(t){var e,n,i,o,r,a,s,l,c=h(t,"number");if(d(c))throw _("Cannot convert a Symbol value to a number");if("string"==typeof c&&c.length>2)if(c=k(c),43===(e=C(c,0))||45===e){if(88===(n=C(c,2))||120===n)return NaN}else if(48===e){switch(C(c,1)){case 66:case 98:i=2,o=49;break;case 79:case 111:i=8,o=55;break;default:return+c}for(a=(r=w(c,2)).length,s=0;s<a;s++)if((l=C(r,s))<48||l>o)return NaN;return parseInt(r,i)}return+c};if(a("Number",!b(" 0o1")||!b("0b1")||b("+0x1"))){for(var D,E=function(t){var e=arguments.length<1?0:b(A(t)),n=this;return u(y,n)&&f((function(){v(n)}))?c(Object(e),n,E):e},S=i?p(b):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,isFinite,isInteger,isNaN,isSafeInteger,parseFloat,parseInt,fromString,range".split(","),T=0;S.length>T;T++)l(b,D=S[T])&&!l(E,D)&&g(E,D,m(b,D));E.prototype=y,y.constructor=E,s(o,"Number",E,{constructor:!0})}},function(t,e,n){"use strict";var i=n(3),o=n(45);i({target:"RegExp",proto:!0,forced:/./.exec!==o},{exec:o})},function(t,e,n){"use strict";function i(t){return!(0===t||(!Array.isArray(t)||0!==t.length)&&t)}function o(t){return function(){return!t.apply(void 0,arguments)}}function r(t,e){return void 0===t&&(t="undefined"),null===t&&(t="null"),!1===t&&(t="false"),-1!==t.toString().toLowerCase().indexOf(e.trim())}function a(t,e,n,i){return t.filter((function(t){return r(i(t,n),e)}))}function s(t){return t.filter((function(t){return!t.$isLabel}))}function l(t,e){return function(n){return n.reduce((function(n,i){return i[t]&&i[t].length?(n.push({$groupLabel:i[e],$isLabel:!0}),n.concat(i[t])):n}),[])}}function c(t,e,i,o,r){return function(s){return s.map((function(s){var l;if(!s[i])return console.warn("Options passed to vue-multiselect do not contain groups, despite the config."),[];var c=a(s[i],t,e,r);return c.length?(l={},n.i(d.a)(l,o,s[o]),n.i(d.a)(l,i,c),l):[]}))}}var u=n(88),d=n(87),h=n(129),f=(n.n(h),n(82)),p=(n.n(f),n(81)),m=(n.n(p),n(83)),g=(n.n(m),n(84)),v=(n.n(g),n(128)),k=(n.n(v),n(135)),b=(n.n(k),n(127)),y=(n.n(b),n(132)),_=(n.n(y),n(131)),w=(n.n(_),n(125)),C=(n.n(w),n(130)),A=(n.n(C),n(52)),x=(n.n(A),n(53)),D=(n.n(x),n(85)),E=(n.n(D),n(134)),S=(n.n(E),n(80)),T=(n.n(S),n(79)),I=(n.n(T),n(133)),z=(n.n(I),n(126)),M=(n.n(z),function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return function(t){return e.reduce((function(t,e){return e(t)}),t)}});e.a={data:function(){return{search:"",isOpen:!1,preferredOpenDirection:"below",optimizedHeight:this.maxHeight}},props:{internalSearch:{type:Boolean,default:!0},options:{type:Array,required:!0},multiple:{type:Boolean,default:!1},value:{type:null,default:function(){return[]}},trackBy:{type:String},label:{type:String},searchable:{type:Boolean,default:!0},clearOnSelect:{type:Boolean,default:!0},hideSelected:{type:Boolean,default:!1},placeholder:{type:String,default:"Select option"},allowEmpty:{type:Boolean,default:!0},resetAfter:{type:Boolean,default:!1},closeOnSelect:{type:Boolean,default:!0},customLabel:{type:Function,default:function(t,e){return i(t)?"":e?t[e]:t}},taggable:{type:Boolean,default:!1},tagPlaceholder:{type:String,default:"Press enter to create a tag"},tagPosition:{type:String,default:"top"},max:{type:[Number,Boolean],default:!1},id:{default:null},optionsLimit:{type:Number,default:1e3},groupValues:{type:String},groupLabel:{type:String},groupSelect:{type:Boolean,default:!1},blockKeys:{type:Array,default:function(){return[]}},preserveSearch:{type:Boolean,default:!1},preselectFirst:{type:Boolean,default:!1},preventAutofocus:{type:Boolean,default:!1}},mounted:function(){!this.multiple&&this.max&&console.warn("[Vue-Multiselect warn]: Max prop should not be used when prop Multiple equals false."),this.preselectFirst&&!this.internalValue.length&&this.options.length&&this.select(this.filteredOptions[0])},computed:{internalValue:function(){return this.value||0===this.value?Array.isArray(this.value)?this.value:[this.value]:[]},filteredOptions:function(){var t=this.search||"",e=t.toLowerCase().trim(),n=this.options.concat();return n=this.internalSearch?this.groupValues?this.filterAndFlat(n,e,this.label):a(n,e,this.label,this.customLabel):this.groupValues?l(this.groupValues,this.groupLabel)(n):n,n=this.hideSelected?n.filter(o(this.isSelected)):n,this.taggable&&e.length&&!this.isExistingOption(e)&&("bottom"===this.tagPosition?n.push({isTag:!0,label:t}):n.unshift({isTag:!0,label:t})),n.slice(0,this.optionsLimit)},valueKeys:function(){var t=this;return this.trackBy?this.internalValue.map((function(e){return e[t.trackBy]})):this.internalValue},optionKeys:function(){var t=this;return(this.groupValues?this.flatAndStrip(this.options):this.options).map((function(e){return t.customLabel(e,t.label).toString().toLowerCase()}))},currentOptionLabel:function(){return this.multiple?this.searchable?"":this.placeholder:this.internalValue.length?this.getOptionLabel(this.internalValue[0]):this.searchable?"":this.placeholder}},watch:{internalValue:function(){this.resetAfter&&this.internalValue.length&&(this.search="",this.$emit("input",this.multiple?[]:null))}
2,search:function(){this.$emit("search-change",this.search,this.id)}},methods:{getValue:function(){return this.multiple?this.internalValue:0===this.internalValue.length?null:this.internalValue[0]},filterAndFlat:function(t,e,n){return M(c(e,n,this.groupValues,this.groupLabel,this.customLabel),l(this.groupValues,this.groupLabel))(t)},flatAndStrip:function(t){return M(l(this.groupValues,this.groupLabel),s)(t)},updateSearch:function(t){this.search=t},isExistingOption:function(t){return!!this.options&&this.optionKeys.indexOf(t)>-1},isSelected:function(t){var e=this.trackBy?t[this.trackBy]:t;return this.valueKeys.indexOf(e)>-1},isOptionDisabled:function(t){return!!t.$isDisabled},getOptionLabel:function(t){if(i(t))return"";if(t.isTag)return t.label;if(t.$isLabel)return t.$groupLabel;var e=this.customLabel(t,this.label);return i(e)?"":e},select:function(t,e){if(t.$isLabel&&this.groupSelect)this.selectGroup(t);else if(!(-1!==this.blockKeys.indexOf(e)||this.disabled||t.$isDisabled||t.$isLabel)&&(!this.max||!this.multiple||this.internalValue.length!==this.max)&&("Tab"!==e||this.pointerDirty)){if(t.isTag)this.$emit("tag",t.label,this.id),this.search="",this.closeOnSelect&&!this.multiple&&this.deactivate();else{if(this.isSelected(t))return void("Tab"!==e&&this.removeElement(t));this.multiple?this.$emit("input",this.internalValue.concat([t]),this.id):this.$emit("input",t,this.id),this.$emit("select",t,this.id),this.clearOnSelect&&(this.search="")}this.closeOnSelect&&this.deactivate()}},selectGroup:function(t){var e=this,n=this.options.find((function(n){return n[e.groupLabel]===t.$groupLabel}));if(n){if(this.wholeGroupSelected(n)){this.$emit("remove",n[this.groupValues],this.id);var i=this.internalValue.filter((function(t){return-1===n[e.groupValues].indexOf(t)}));this.$emit("input",i,this.id)}else{var o=n[this.groupValues].filter((function(t){return!(e.isOptionDisabled(t)||e.isSelected(t))}));this.max&&o.splice(this.max-this.internalValue.length),this.$emit("select",o,this.id),this.$emit("input",this.internalValue.concat(o),this.id)}this.closeOnSelect&&this.deactivate()}},wholeGroupSelected:function(t){var e=this;return t[this.groupValues].every((function(t){return e.isSelected(t)||e.isOptionDisabled(t)}))},wholeGroupDisabled:function(t){return t[this.groupValues].every(this.isOptionDisabled)},removeElement:function(t){var e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];if(!this.disabled&&!t.$isDisabled){if(!this.allowEmpty&&this.internalValue.length<=1)return void this.deactivate();var i="object"===n.i(u.a)(t)?this.valueKeys.indexOf(t[this.trackBy]):this.valueKeys.indexOf(t);if(this.multiple){var o=this.internalValue.slice(0,i).concat(this.internalValue.slice(i+1));this.$emit("input",o,this.id)}else this.$emit("input",null,this.id);this.$emit("remove",t,this.id),this.closeOnSelect&&e&&this.deactivate()}},removeLastElement:function(){-1===this.blockKeys.indexOf("Delete")&&0===this.search.length&&Array.isArray(this.internalValue)&&this.internalValue.length&&this.removeElement(this.internalValue[this.internalValue.length-1],!1)},activate:function(){var t=this;this.isOpen||this.disabled||(this.adjustPosition(),this.groupValues&&0===this.pointer&&this.filteredOptions.length&&(this.pointer=1),this.isOpen=!0,this.searchable?(this.preserveSearch||(this.search=""),this.preventAutofocus||this.$nextTick((function(){return t.$refs.search&&t.$refs.search.focus()}))):this.preventAutofocus||void 0!==this.$el&&this.$el.focus(),this.$emit("open",this.id))},deactivate:function(){this.isOpen&&(this.isOpen=!1,this.searchable?void 0!==this.$refs.search&&this.$refs.search.blur():void 0!==this.$el&&this.$el.blur(),this.preserveSearch||(this.search=""),this.$emit("close",this.getValue(),this.id))},toggle:function(){this.isOpen?this.deactivate():this.activate()},adjustPosition:function(){if("undefined"!=typeof window){var t=this.$el.getBoundingClientRect().top,e=window.innerHeight-this.$el.getBoundingClientRect().bottom;e>this.maxHeight||e>t||"below"===this.openDirection||"bottom"===this.openDirection?(this.preferredOpenDirection="below",this.optimizedHeight=Math.min(e-40,this.maxHeight)):(this.preferredOpenDirection="above",this.optimizedHeight=Math.min(t-40,this.maxHeight))}}}}},function(t,e,n){"use strict";var i=n(52),o=(n.n(i),n(53)),r=(n.n(o),n(85)),a=(n.n(r),n(82)),s=(n.n(a),n(81)),l=(n.n(s),n(83)),c=(n.n(l),n(84)),u=(n.n(c),n(79));n.n(u),e.a={data:function(){return{pointer:0,pointerDirty:!1}},props:{showPointer:{type:Boolean,default:!0},optionHeight:{type:Number,default:40}},computed:{pointerPosition:function(){return this.pointer*this.optionHeight},visibleElements:function(){return this.optimizedHeight/this.optionHeight}},watch:{filteredOptions:function(){this.pointerAdjust()},isOpen:function(){this.pointerDirty=!1},pointer:function(){this.$refs.search&&this.$refs.search.setAttribute("aria-activedescendant",this.id+"-"+this.pointer.toString())}},methods:{optionHighlight:function(t,e){return{"multiselect__option--highlight":t===this.pointer&&this.showPointer,"multiselect__option--selected":this.isSelected(e)}},groupHighlight:function(t,e){var n=this;if(!this.groupSelect)return["multiselect__option--disabled",{"multiselect__option--group":e.$isLabel}];var i=this.options.find((function(t){return t[n.groupLabel]===e.$groupLabel}));return i&&!this.wholeGroupDisabled(i)?["multiselect__option--group",{"multiselect__option--highlight":t===this.pointer&&this.showPointer},{"multiselect__option--group-selected":this.wholeGroupSelected(i)}]:"multiselect__option--disabled"},addPointerElement:function(){var t=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"Enter").key;this.filteredOptions.length>0&&this.select(this.filteredOptions[this.pointer],t),this.pointerRe
2set()},pointerForward:function(){this.pointer<this.filteredOptions.length-1&&(this.pointer++,this.$refs.list.scrollTop<=this.pointerPosition-(this.visibleElements-1)*this.optionHeight&&(this.$refs.list.scrollTop=this.pointerPosition-(this.visibleElements-1)*this.optionHeight),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()),this.pointerDirty=!0},pointerBackward:function(){this.pointer>0?(this.pointer--,this.$refs.list.scrollTop>=this.pointerPosition&&(this.$refs.list.scrollTop=this.pointerPosition),this.filteredOptions[this.pointer]&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerBackward()):this.filteredOptions[this.pointer]&&this.filteredOptions[0].$isLabel&&!this.groupSelect&&this.pointerForward(),this.pointerDirty=!0},pointerReset:function(){this.closeOnSelect&&(this.pointer=0,this.$refs.list&&(this.$refs.list.scrollTop=0))},pointerAdjust:function(){this.pointer>=this.filteredOptions.length-1&&(this.pointer=this.filteredOptions.length?this.filteredOptions.length-1:0),this.filteredOptions.length>0&&this.filteredOptions[this.pointer].$isLabel&&!this.groupSelect&&this.pointerForward()},pointerSet:function(t){this.pointer=t,this.pointerDirty=!0}}}},function(t,e,n){"use strict";var i=n(52),o=(n.n(i),n(80)),r=(n.n(o),n(54)),a=n(55);e.a={name:"vue-multiselect",mixins:[r.a,a.a],props:{name:{type:String,default:""},selectLabel:{type:String,default:"Press enter to select"},selectGroupLabel:{type:String,default:"Press enter to select group"},selectedLabel:{type:String,default:"Selected"},deselectLabel:{type:String,default:"Press enter to remove"},deselectGroupLabel:{type:String,default:"Press enter to deselect group"},showLabels:{type:Boolean,default:!0},limit:{type:Number,default:99999},maxHeight:{type:Number,default:300},limitText:{type:Function,default:function(t){return"and ".concat(t," more")}},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},openDirection:{type:String,default:""},showNoOptions:{type:Boolean,default:!0},showNoResults:{type:Boolean,default:!0},tabindex:{type:Number,default:0}},computed:{hasOptionGroup:function(){return this.groupValues&&this.groupLabel&&this.groupSelect},isSingleLabelVisible:function(){return(this.singleValue||0===this.singleValue)&&(!this.isOpen||!this.searchable)&&!this.visibleValues.length},isPlaceholderVisible:function(){return!(this.internalValue.length||this.searchable&&this.isOpen)},visibleValues:function(){return this.multiple?this.internalValue.slice(0,this.limit):[]},singleValue:function(){return this.internalValue[0]},deselectLabelText:function(){return this.showLabels?this.deselectLabel:""},deselectGroupLabelText:function(){return this.showLabels?this.deselectGroupLabel:""},selectLabelText:function(){return this.showLabels?this.selectLabel:""},selectGroupLabelText:function(){return this.showLabels?this.selectGroupLabel:""},selectedLabelText:function(){return this.showLabels?this.selectedLabel:""},inputStyle:function(){return this.searchable||this.multiple&&this.value&&this.value.length?this.isOpen?{width:"100%"}:{width:"0",position:"absolute",padding:"0"}:""},contentStyle:function(){return this.options.length?{display:"inline-block"}:{display:"block"}},isAbove:function(){return"above"===this.openDirection||"top"===this.openDirection||"below"!==this.openDirection&&"bottom"!==this.openDirection&&"above"===this.preferredOpenDirection},showSearchInput:function(){return this.searchable&&(!this.hasSingleSelectedSlot||!this.visibleSingleValue&&0!==this.visibleSingleValue||this.isOpen)}}}},function(t,e,n){var i=n(19),o=n(48),r=n(10),a=function(t){return function(e,n,a){var s,l=i(e),c=r(l),u=o(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},function(t,e,n){"use strict";var i=n(74),o=TypeError;t.exports=function(t,e){if(!delete t[e])throw o("Cannot delete property "+i(e)+" of "+i(t))}},function(t,e){var n="object"==typeof document&&document.all,i=void 0===n&&void 0!==n;t.exports={all:n,IS_HTMLDDA:i}},function(t,e,n){var i=n(4),o=n(8),r=i.document,a=o(r)&&o(r.createElement);t.exports=function(t){return a?r.createElement(t):{}}},function(t,e,n){var i=n(25),o=n(40);t.exports=function(t,e){var n=t[e];return o(n)?void 0:i(n)}},function(t,e,n){var i=n(5),o=n(0),r=n(60);t.exports=!i&&!o((function(){return 7!=Object.defineProperty(r("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(1),o=n(2),r=n(46),a=i(Function.toString);o(r.inspectSource)||(r.inspectSource=function(t){return a(t)}),t.exports=r.inspectSource}
vendor: 4,109 bytes, line 2
2,function(t,e,n){var i,o,r,a=n(124),s=n(4),l=n(8),c=n(30),u=n(7),d=n(46),h=n(70),f=n(38),p=s.TypeError,m=s.WeakMap,g=function(t){return r(t)?o(t):i(t,{})},v=function(t){return function(e){var n;if(!l(e)||(n=o(e)).type!==t)throw p("Incompatible receiver, "+t+" required");return n}};if(a||d.state){var k=d.state||(d.state=new m);k.get=k.get,k.has=k.has,k.set=k.set,i=function(t,e){if(k.has(t))throw p("Object already initialized");return e.facade=t,k.set(t,e),e},o=function(t){return k.get(t)||{}},r=function(t){return k.has(t)}}else{var b=h("state");f[b]=!0,i=function(t,e){if(u(t,b))throw p("Object already initialized");return e.facade=t,c(t,b,e),e},o=function(t){return u(t,b)?t[b]:{}},r=function(t){return u(t,b)}}t.exports={set:i,get:o,has:r,enforce:g,getterFor:v}},function(t,e,n){var i=n(1),o=n(0),r=n(2),a=n(29),s=n(17),l=n(63),c=function(){},u=[],d=s("Reflect","construct"),h=/^\s*(?:class|function)\b/,f=i(h.exec),p=!h.exec(c),m=function(t){if(!r(t))return!1;try{return d(c,u,t),!0}catch(t){return!1}},g=function(t){if(!r(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(h,l(t))}catch(t){return!0}};g.sham=!0,t.exports=!d||o((function(){var t;return m(m.call)||!m(Object)||!m((function(){t=!0}))||t}))?g:m},function(t,e,n){var i=n(0),o=n(2),r=/#|\.prototype\./,a=function(t,e){var n=l[s(t)];return n==u||n!=c&&(o(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(r,".").toLowerCase()},l=a.data={},c=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},function(t,e,n){var i=n(68),o=n(34).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,o)}},function(t,e,n){var i=n(1),o=n(7),r=n(19),a=n(57).indexOf,s=n(38),l=i([].push);t.exports=function(t,e){var n,i=r(t),c=0,u=[];for(n in i)!o(s,n)&&o(i,n)&&l(u,n);for(;e.length>c;)o(i,n=e[c++])&&(~a(u,n)||l(u,n));return u}},function(t,e,n){"use strict";var i=n(6);t.exports=function(){var t=i(this),e="";return t.hasIndices&&(e+="d"),t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.dotAll&&(e+="s"),t.unicode&&(e+="u"),t.unicodeSets&&(e+="v"),t.sticky&&(e+="y"),e}},function(t,e,n){var i=n(47),o=n(75),r=i("keys");t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var i=n(1),o=n(24),r=n(20),a=n(78),s=i("".replace),l="["+a+"]",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),d=function(t){return function(e){var n=r(o(e));return 1&t&&(n=s(n,c,"")),2&t&&(n=s(n,u,"")),n}};t.exports={start:d(1),end:d(2),trim:d(3)}},function(t,e,n){var i=n(23),o=n(0);t.exports=!!Object.getOwnPropertySymbols&&!o((function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41}))},function(t,e,n){var i=n(12),o=n(8),r=n(41),a=n(61),s=n(113),l=n(9),c=TypeError,u=l("toPrimitive");t.exports=function(t,e){if(!o(t)||r(t))return t;var n,l=a(t,u);if(l){if(void 0===e&&(e="default"),n=i(l,t,e),!o(n)||r(n))return n;throw c("Can't convert object to primitive value")}return void 0===e&&(e="number"),s(t,e)}},function(t,e){var n=String;t.exports=function(t){try{return n(t)}catch(t){return"Object"}}},function(t,e,n){var i=n(1),o=0,r=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++o+r,36)}},function(t,e,n){var i=n(72);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},function(t,e,n){var i=n(5),o=n(0);t.exports=i&&o((function(){return 42!=Object.defineProperty((function(){}),"prototype",{value:42,writable:!1}).prototype}))},function(t,e){t.exports="\t\n\v\f\r                 \u2028\u2029\ufeff"},function(t,e,n){"use strict";var i=n(3),o=n(21).find,r=n(91),a=!0;"find"in[]&&Array(1).find((function(){a=!1})),i({target:"Array",proto:!0,forced:a},{find:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}}),r("find")},function(t,e,n){"use strict";var i=n(3),o=n(18),r=n(65),a=n(8),s=n(48),l=n(10),c=n(19),u=n(32),d=n(9),h=n(16),f=n(93),p=h("slice"),m=d("species"),g=Array,v=Math.max;i({target:"Array",proto:!0,forced:!p},{slice:function(t,e){var n,i,d,h=c(this),p=l(h),k=s(t,p),b=s(void 0===e?p:e,p);
2if(o(h)&&(n=h.constructor,(r(n)&&(n===g||o(n.prototype))||a(n)&&null===(n=n[m]))&&(n=void 0),n===g||void 0===n))return f(h,k,b);for(i=new(void 0===n?g:n)(v(b-k,0)),d=0;k<b;k++,d++)k in h&&u(i,d,h[k]);return i.length=d,i}})},function(t,e,n){var i=n(1),o=n(11),r=Date.prototype,a=i(r.toString),s=i(r.getTime);"Invalid Date"!=String(new Date(NaN))&&o(r,"toString",(function(){var t=s(this);return t==t?a(this):"Invalid Date"}))},function(t,e,n){var i=n(11),o=n(98),r=Error.prototype;r.toString!==o&&i(r,"toString",o)},function(t,e,n){var i=n(51),o=n(11),r=n(112);i||o(Object.prototype,"toString",r,{unsafe:!0})},function(t,e,n){"use strict";var i=n(36).PROPER,o=n(11),r=n(6),a=n(20),s=n(0),l=n(116),c=RegExp.prototype.toString,u=s((function(){return"/a/b"!=c.call({source:"a",flags:"b"})})),d=i&&"toString"!=c.name;(u||d)&&o(RegExp.prototype,"toString",(function(){var t=r(this);return"/"+a(t.source)+"/"+a(l(t))}),{unsafe:!0})},function(t,e,n){"use strict";var i=n(12),o=n(99),r=n(6),a=n(40),s=n(24),l=n(120),c=n(20),u=n(61),d=n(115);o("search",(function(t,e,n){return[function(e){var n=s(this),o=a(e)?void 0:u(e,t);return o?i(o,e,n):new RegExp(e)[t](c(n))},function(t){var i=r(this),o=c(t),a=n(e,i,o);if(a.done)return a.value;var s=i.lastIndex;l(s,0)||(i.lastIndex=0);var u=d(i,o);return l(i.lastIndex,s)||(i.lastIndex=s),null===u?-1:u.index}]}))},function(t,e,n){"use strict";function i(t){n(136)}var o=n(56),r=n(138),a=i,s=n(137)(o.a,r.a,!1,a,null,null);e.a=s.exports},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}e.a=i},function(t,e,n){"use strict";function i(t){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}e.a=i},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(86),o=n(54),r=n(55);n.d(e,"Multiselect",(function(){return i.a})),n.d(e,"multiselectMixin",(function(){return o.a})),n.d(e,"pointerMixin",(function(){return r.a})),e.default=i.a},function(t,e,n){var i=n(2),o=String,r=TypeError;t.exports=function(t){if("object"==typeof t||i(t))return t;throw r("Can't set "+o(t)+" as a prototype")}},function(t,e,n){var i=n(9),o=n(42),r=n(13).f,a=i("unscopables"),s=Array.prototype;null==s[a]&&r(s,a,{configurable:!0,value:o(null)}),t.exports=function(t){s[a][t]=!0}},function(t,e,n){var i=n(25),o=n(14),r=n(39),a=n(10),s=TypeError,l=function(t){return function(e,n,l,c){i(n);var u=o(e),d=r(u),h=a(u),f=t?h-1:0,p=t?-1:1;if(l<2)for(;;){if(f in d){c=d[f],f+=p;break}if(f+=p,t?f<0:h<=f)throw s("Reduce of empty array with no initial value")}for(;t?f>=0:h>f;f+=p)f in d&&(c=n(c,d[f],f,u));return c}};t.exports={left:l(!1),right:l(!0)}},function(t,e,n){var i=n(1);t.exports=i([].slice)},function(t,e,n){var i=n(18),o=n(65),r=n(8),a=n(9)("species"),s=Array;t.exports=function(t){var e;return i(t)&&(e=t.constructor,(o(e)&&(e===s||i(e.prototype))||r(e)&&null===(e=e[a]))&&(e=void 0)),void 0===e?s:e}},function(t,e,n){var i=n(7),o=n(114),r=n(43),a=n(13);t.exports=function(t,e,n){for(var s=o(e),l=a.f,c=r.f,u=0;u<s.length;u++){var d=s[u];i(t,d)||n&&i(n,d)||l(t,d,c(e,d))}}},function(t,e,n){var i=n(15),o=n(4);t.exports="process"==i(o.process)},function(t,e,n){var i=n(17);t.exports=i("navigator","userAgent")||""},function(t,e,n){"use strict";var i=n(5),o=n(0),r=n(6),a=n(42),s=n(106),l=Error.prototype.toString,c=o((function(){if(i){var t=a(Object.defineProperty({},"name",{get:function(){return this===t}}));if("true"!==l.call(t))return!0}return"2: 1"!==l.call({message:1,name:2})||"Error"!==l.call({})}));t.exports=c?function(){var t=r(this),e=s(t.name,"Error"),n=s(t.message);return e?n?e+": "+n:e:n}:l},function(t,e,n){"use strict";n(53);var i=n(37),o=n(11),r=n(45),a=n(0),s=n(9),l=n(30),c=s("species"),u=RegExp.prototype;t.exports=function(t,e,n,d){var h=s(t),f=!a((function(){var e={};return e[h]=function(){return 7},7!=""[t](e)})),p=f&&!a((function(){var e=!1,n=/a/;return"split"===t&&((n={}).constructor={}
2,n.constructor[c]=function(){return n},n.flags="",n[h]=/./[h]),n.exec=function(){return e=!0,null},n[h](""),!e}));if(!f||!p||n){var m=i(/./[h]),g=e(h,""[t],(function(t,e,n,o,a){var s=i(t),l=e.exec;return l===r||l===u.exec?f&&!a?{done:!0,value:m(e,n,o)}:{done:!0,value:s(n,e,o)}:{done:!1}}));o(String.prototype,t,g[0]),o(u,h,g[1])}d&&l(u[h],"sham",!0)}},function(t,e,n){var i=n(37),o=n(25),r=n(35),a=i(i.bind);t.exports=function(t,e){return o(t),void 0===e?t:r?a(t,e):function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(17);t.exports=i("document","documentElement")},function(t,e,n){var i=n(2),o=n(8),r=n(111);t.exports=function(t,e,n){var a,s;return r&&i(a=e.constructor)&&a!==n&&o(s=a.prototype)&&s!==n.prototype&&r(t,s),t}},function(t,e){t.exports=!1},function(t,e,n){var i=n(0),o=n(2),r=n(7),a=n(5),s=n(36).CONFIGURABLE,l=n(63),c=n(64),u=c.enforce,d=c.get,h=Object.defineProperty,f=a&&!i((function(){return 8!==h((function(){}),"length",{value:8}).length})),p=String(String).split("String"),m=t.exports=function(t,e,n){"Symbol("===String(e).slice(0,7)&&(e="["+String(e).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),n&&n.getter&&(e="get "+e),n&&n.setter&&(e="set "+e),(!r(t,"name")||s&&t.name!==e)&&(a?h(t,"name",{value:e,configurable:!0}):t.name=e),f&&n&&r(n,"arity")&&t.length!==n.arity&&h(t,"length",{value:n.arity});try{n&&r(n,"constructor")&&n.constructor?a&&h(t,"prototype",{writable:!1}):t.prototype&&(t.prototype=void 0)}catch(t){}var i=u(t);return r(i,"source")||(i.source=p.join("string"==typeof e?e:"")),t};Function.prototype.toString=m((function(){return o(this)&&d(this).source||l(this)}),"toString")},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=Math.trunc||function(t){var e=+t;return(e>0?i:n)(e)}},function(t,e,n){var i=n(20);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},function(t,e,n){var i=n(5),o=n(77),r=n(13),a=n(6),s=n(19),l=n(109);e.f=i&&!o?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),o=l(e),c=o.length,u=0;c>u;)r.f(t,n=o[u++],i[n]);return t}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var i=n(68),o=n(34);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){"use strict";var i={}.propertyIsEnumerable,o=Object.getOwnPropertyDescriptor,r=o&&!i.call({1:2},1);e.f=r?function(t){var e=o(this,t);return!!e&&e.enumerable}:i},function(t,e,n){var i=n(1),o=n(6),r=n(90);
2t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return o(n),r(i),e?t(n,i):n.__proto__=i,n}}():void 0)},function(t,e,n){"use strict";var i=n(51),o=n(29);t.exports=i?{}.toString:function(){return"[object "+o(this)+"]"}},function(t,e,n){var i=n(12),o=n(2),r=n(8),a=TypeError;t.exports=function(t,e){var n,s;if("string"===e&&o(n=t.toString)&&!r(s=i(n,t)))return s;if(o(n=t.valueOf)&&!r(s=i(n,t)))return s;if("string"!==e&&o(n=t.toString)&&!r(s=i(n,t)))return s;throw a("Can't convert object to primitive value")}},function(t,e,n){var i=n(17),o=n(1),r=n(67),a=n(108),s=n(6),l=o([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=r.f(s(t)),n=a.f;return n?l(e,n(t)):e}},function(t,e,n){var i=n(12),o=n(6),r=n(2),a=n(15),s=n(45),l=TypeError;t.exports=function(t,e){var n=t.exec;if(r(n)){var c=i(n,t,e);return null!==c&&o(c),c}if("RegExp"===a(t))return i(s,t,e);throw l("RegExp#exec called on incompatible receiver")}},function(t,e,n){var i=n(12),o=n(7),r=n(44),a=n(69),s=RegExp.prototype;t.exports=function(t){var e=t.flags;return void 0!==e||"flags"in s||o(t,"flags")||!r(s,t)?e:i(a,t)}},function(t,e,n){var i=n(0),o=n(4).RegExp,r=i((function(){var t=o("a","y");return t.lastIndex=2,null!=t.exec("abcd")})),a=r||i((function(){return!o("a","y").sticky})),s=r||i((function(){var t=o("^r","gy");return t.lastIndex=2,null!=t.exec("str")}));t.exports={BROKEN_CARET:s,MISSED_STICKY:a,UNSUPPORTED_Y:r}},function(t,e,n){var i=n(0),o=n(4).RegExp;t.exports=i((function(){var t=o(".","s");return!(t.dotAll&&t.exec("\n")&&"s"===t.flags)}))},function(t,e,n){var i=n(0),o=n(4).RegExp;t.exports=i((function(){var t=o("(?<a>b)","g");return"b"!==t.exec("b").groups.a||"bc"!=="b".replace(t,"$<a>c")}))},function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},function(t,e,n){var i=n(36).PROPER,o=n(0),r=n(78),a="​…᠎";t.exports=function(t){return o((function(){return!!r[t]()||a[t]()!==a||i&&r[t].name!==t}))}},function(t,e,n){var i=n(1);t.exports=i(1..valueOf)},function(t,e,n){var i=n(49),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(4),o=n(2),r=i.WeakMap;t.exports=o(r)&&/native code/.test(String(r))},function(t,e,n){"use strict";var i=n(3),o=n(0),r=n(18),a=n(8),s=n(14),l=n(10),c=n(22),u=n(32),d=n(28),h=n(16),f=n(9),p=n(23),m=f("isConcatSpreadable"),g=p>=51||!o((function(){var t=[];return t[m]=!1,t.concat()[0]!==t})),v=h("concat"),k=function(t){if(!a(t))return!1;var e=t[m];return void 0!==e?!!e:r(t)};i({target:"Array",proto:!0,arity:1,forced:!g||!v},{concat:function(t){var e,n,i,o,r,a=s(this),h=d(a,0),f=0;for(e=-1,i=arguments.length;e<i;e++)if(k(r=-1===e?a:arguments[e]))for(o=l(r),c(f+o),n=0;n<o;n++,f++)n in r&&u(h,f,r[n]);else c(f+1),u(h,f++,r);return h.length=f,h}})},function(t,e,n){"use strict";var i=n(3),o=n(21).every;i({target:"Array",proto:!0,forced:!n(26)("every")},{every:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),o=n(21).filter;i({target:"Array",proto:!0,forced:!n(16)("filter")},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),o=n(37),r=n(57).indexOf,a=n(26),s=o([].indexOf),l=!!s&&1/s([1],1,-0)<0,c=a("indexOf");i({target:"Array",proto:!0,forced:l||!c},{indexOf:function(t){var e=arguments.length>1?arguments[1]:void 0;return l?s(this,t,e)||0:r(this,t,e)}})},function(t,e,n){n(3)({target:"Array",stat:!0},{isArray:n(18)})},function(t,e,n){"use strict";var i=n(3),o=n(21).map;i({target:"Array",proto:!0,forced:!n(16)("map")},{map:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),o=n(14),r=n(10),a=n(27),s=n(22),l=n(0)((function(){return 4294967297!==[].push.call({length:4294967296},1)})),c=!function(){try{Object.defineProperty([],"length",{writable:!1}).push()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:l||c},{push:function(t){var e=o(this),n=r(e),i=arguments.length;s(n+i);for(var l=0;l<i;l++)e[n]=arguments[l],n++;return a(e,n),n}})},function(t,e,n){"use strict";var i=n(3),o=n(92).left,r=n(26),a=n(23),s=n(96);i({target:"Array",proto:!0,forced:!r("reduce")||!s&&a>79&&a<83},{reduce:function(t){var e=arguments.length;return o(this,t,e,e>1?arguments[1]:void 0)}})},function(t,e,n){"use strict";var i=n(3),o=n(14),r=n(48),a=n(49),s=n(10),l=n(27),c=n(22),u=n(28),d=n(32),h=n(58),f=n(16)("splice"),p=Math.max,m=Math.min;i({target:"Array",proto:!0,forced:!f},{splice:function(t,e){var n,i,f,g,v,k,b=o(this),y=s(b),_=r(t,y),w=arguments.length;for(0===w?n=i=0:1===w?(n=0,i=y-_):(n=w-2,i=m(p(a(e),0),y-_)),c(y+n-i),f=u(b,i),g=0;g<i;g++)(v=_+g)in b&&d(f,g,b[v]);if(f.length=i,n<i){for(g=_;g<y-i;g++)k=g+n,(v=g+i)in b?b[k]=b[v]:h(b,k);for(g=y;g>y-i+n;g--)h(b,g-1)}else if(n>i)for(g=y-i;g>_;g--)k=g+n-1,(v=g+i-1)in b?b[k]=b[v]:h(b,k);for(g=0;g<n;g++)b[g+_]=arguments[g+2];return l(b,y-i+n),f}})},function(t,e,n){"use strict";var i=n(3),o=n(14),r=n(10),a=n(27),s=n(58),l=n(22),c=1!==[].unshift(0),u=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||u},{unshift:function(t){var e=o(this),n=r(e),i=arguments.length;if(i){l(n+i);for(var c=n;c--;){var u=c+i;c in e?e[u]=e[c]:s(e,u)}for(var d=0;d<i;d++)e[d]=arguments[d]}return a(e,n+i)}})},function(t,e,n){"use strict";var i=n(3),o=n(71).trim;i({target:"String",proto:!0,forced:n(121)("trim")},{trim:function(){return o(this)}})},function(t,e){},function(t,e){t.exports=function(t,e,n,i,o,r){var a,s=t=t||{},l=typeof t.default;"object"!==l&&"function"!==l||(a=t,s=t.default);var c,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),o&&(u._scopeId=o),r?
2(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(r)},u._ssrRegister=c):i&&(c=i),c){var d=u.functional,h=d?u.render:u.beforeCreate;d?(u._injectStyles=c,u.render=function(t,e){return c.call(e),h(t,e)}):u.beforeCreate=h?[].concat(h,c):[c]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";var i=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"multiselect",class:{"multiselect--active":t.isOpen,"multiselect--disabled":t.disabled,"multiselect--above":t.isAbove,"multiselect--has-options-group":t.hasOptionGroup},attrs:{tabindex:t.searchable?-1:t.tabindex,role:"combobox","aria-owns":"listbox-"+t.id},on:{focus:function(e){return t.activate()},blur:function(e){!t.searchable&&t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])||e.target!==e.currentTarget?null:(e.preventDefault(),t.pointerBackward())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")&&t._k(e.keyCode,"tab",9,e.key,"Tab")?null:(e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()}}},[t._t("caret",(function(){return[n("div",{staticClass:"multiselect__select",on:{mousedown:function(e){return e.preventDefault(),e.stopPropagation(),t.toggle()}}})]}),{toggle:t.toggle}),t._v(" "),t._t("clear",null,{search:t.search}),t._v(" "),n("div",{ref:"tags",staticClass:"multiselect__tags"},[t._t("selection",(function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.visibleValues.length>0,expression:"visibleValues.length > 0"}],staticClass:"multiselect__tags-wrap"},[t._l(t.visibleValues,(function(e,i){return[t._t("tag",(function(){return[n("span",{key:i,staticClass:"multiselect__tag"},[n("span",{domProps:{textContent:t._s(t.getOptionLabel(e))}}),t._v(" "),n("i",{staticClass:"multiselect__tag-icon",attrs:{tabindex:"1"},on:{keypress:function(n){return!n.type.indexOf("key")&&t._k(n.keyCode,"enter",13,n.key,"Enter")?null:(n.preventDefault(),t.removeElement(e))},mousedown:function(n){return n.preventDefault(),t.removeElement(e)}}})])]}),{option:e,search:t.search,remove:t.removeElement})]}))],2),t._v(" "),t.internalValue&&t.internalValue.length>t.limit?[t._t("limit",(function(){return[n("strong",{staticClass:"multiselect__strong",domProps:{textContent:t._s(t.limitText(t.internalValue.length-t.limit))}})]}))]:t._e()]}),{search:t.search,remove:t.removeElement,values:t.visibleValues,isOpen:t.isOpen}),t._v(" "),n("transition",{attrs:{name:"multiselect__loading"}},[t._t("loading",(function(){return[n("div",{directives:[{name:"show",rawName:"v-show",value:t.loading,expression:"loading"}],staticClass:"multiselect__spinner"})]}))],2),t._v(" "),t.searchable?n("input",{ref:"search",staticClass:"multiselect__input",style:t.inputStyle,attrs:{name:t.name,id:t.id,type:"text",autocomplete:"off",spellcheck:"false",placeholder:t.placeholder,disabled:t.disabled,tabindex:t.tabindex,"aria-controls":"listbox-"+t.id},domProps:{value:t.search},on:{input:function(e){return t.updateSearch(e.target.value)},focus:function(e){return e.preventDefault(),t.activate()},blur:function(e){return e.preventDefault(),t.deactivate()},keyup:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"esc",27,e.key,["Esc","Escape"])?null:t.deactivate()},keydown:[function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"down",40,e.key,["Down","ArrowDown"])?null:(e.preventDefault(),t.pointerForward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"up",38,e.key,["Up","ArrowUp"])?null:(e.preventDefault(),t.pointerBackward())},function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"delete",[8,46],e.key,["Backspace","Delete","Del"])?null:(e.stopPropagation(),t.removeLastElement())}],keypress:function(e){return!e.type.indexOf("key")&&t._k(e.keyCode,"enter",13,e.key,"Enter")?null:(e.preventDefault(),e.stopPropagation(),e.target!==e.currentTarget?null:t.addPointerElement(e))}}}):t._e(),t._v(" "),t.isSingleLabelVisible?n("span",{staticClass:"multiselect__single",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("singleLabel",(function(){return[[t._v(t._s(t.currentOptionLabel))]]}),{option:t.singleValue})],2):t._e(),t._v(" "),t.isPlaceholderVisible?n("span",{staticClass:"multiselect__placeholder",on:{mousedown:function(e){return e.preventDefault(),t.toggle.apply(null,arguments)}}},[t._t("placeholder",(function(){return[t._v("\n          "+t._s(t.placeholder)+"\n        ")]}))],2):t._e()],2),t._v(" "),n("transition",{attrs:{name:"multiselect"}}
2,[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isOpen,expression:"isOpen"}],ref:"list",staticClass:"multiselect__content-wrapper",style:{maxHeight:t.optimizedHeight+"px"},attrs:{tabindex:"-1"},on:{focus:t.activate,mousedown:function(t){t.preventDefault()}}},[n("ul",{staticClass:"multiselect__content",style:t.contentStyle,attrs:{role:"listbox",id:"listbox-"+t.id}},[t._t("beforeList"),t._v(" "),t.multiple&&t.max===t.internalValue.length?n("li",[n("span",{staticClass:"multiselect__option"},[t._t("maxElements",(function(){return[t._v("Maximum of "+t._s(t.max)+" options selected. First remove a selected option to select another.")]}))],2)]):t._e(),t._v(" "),!t.max||t.internalValue.length<t.max?t._l(t.filteredOptions,(function(e,i){return n("li",{key:i,staticClass:"multiselect__element",attrs:{id:t.id+"-"+i,role:e&&(e.$isLabel||e.$isDisabled)?null:"option"}},[e&&(e.$isLabel||e.$isDisabled)?t._e():n("span",{staticClass:"multiselect__option",class:t.optionHighlight(i,e),attrs:{"data-select":e&&e.isTag?t.tagPlaceholder:t.selectLabelText,"data-selected":t.selectedLabelText,"data-deselect":t.deselectLabelText},on:{click:function(n){return n.stopPropagation(),t.select(e)},mouseenter:function(e){return e.target!==e.currentTarget?null:t.pointerSet(i)}}},[t._t("option",(function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]}),{option:e,search:t.search,index:i})],2),t._v(" "),e&&(e.$isLabel||e.$isDisabled)?n("span",{staticClass:"multiselect__option",class:t.groupHighlight(i,e),attrs:{"data-select":t.groupSelect&&t.selectGroupLabelText,"data-deselect":t.groupSelect&&t.deselectGroupLabelText},on:{mouseenter:function(e){if(e.target!==e.currentTarget)return null;t.groupSelect&&t.pointerSet(i)},mousedown:function(n){return n.preventDefault(),t.selectGroup(e)}}},[t._t("option",(function(){return[n("span",[t._v(t._s(t.getOptionLabel(e)))])]}),{option:e,search:t.search,index:i})],2):t._e()])})):t._e(),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoResults&&0===t.filteredOptions.length&&t.search&&!t.loading,expression:"showNoResults && (filteredOptions.length === 0 && search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noResult",(function(){return[t._v("No elements found. Consider changing the search query.")]}),{search:t.search})],2)]),t._v(" "),n("li",{directives:[{name:"show",rawName:"v-show",value:t.showNoOptions&&(0===t.options.length||!0===t.hasOptionGroup&&0===t.filteredOptions.length)&&!t.search&&!t.loading,expression:"showNoOptions && ((options.length === 0 || (hasOptionGroup === true && filteredOptions.length === 0)) && !search && !loading)"}]},[n("span",{staticClass:"multiselect__option"},[t._t("noOptions",(function(){return[t._v("List is empty.")]}))],2)]),t._v(" "),t._t("afterList")],2)])])],2)},o={render:i,staticRenderFns:[]};e.a=o},function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n}])},79454:function(t,e,n){var i;"undefined"!=typeof self&&self,t.exports=(i=n(70538),function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s="fb15")}({"091b":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-dot{position:absolute;-webkit-transition:all 0s;transition:all 0s;z-index:5}.vue-slider-dot:focus{outline:none}.vue-slider-dot-tooltip{position:absolute;visibility:hidden}.vue-slider-dot-hover:hover .vue-slider-dot-tooltip,.vue-slider-dot-tooltip-show{visibility:visible}.vue-slider-dot-tooltip-top{top:-10px;left:50%;-webkit-transform:translate(-50%,-100%);transform:translate(-50%,-100%)}.vue-slider-dot-tooltip-bottom{bottom:-10px;left:50%;-webkit-transform:translate(-50%,100%);transform:translate(-50%,100%)}.vue-slider-dot-tooltip-left{left:-10px;top:50%;-webkit-transform:translate(-100%,-50%);transform:translate(-100%,-50%)}.vue-slider-dot-tooltip-right{right:-10px;top:50%;-webkit-transform:translate(100%,-50%);transform:translate(100%,-50%)}",""]),t.exports=e},"24fb":function(t,e,n){"use strict";function i(t,e){var n=t[1]||"",i=t[3];if(!i)return n;if(e&&"function"==typeof btoa){var r=o(i),a=i.sources.map((function(t){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(t," */")}));return[n].concat(a).concat([r]).join("\n")}return[n].join("\n")}function o(t){var e=btoa(unescape(encodeURIComponent(JSON.stringify(t)))),n="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(e);return"/*# ".concat(n," */")}t.exports=function(t){var e=[];return e.toString=function(){return this.map((function(e){var n=i(e,t);return e[2]?"@media ".concat(e[2]," {").concat(n,"}"):n})).join("")},e.i=function(t,n,i){"string"==typeof t&&(t=[[null,t,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var s=0;s<t.length;s++){var l=[].concat(t[s]);i&&o[l[0]]||(n&&(l[2]?l[2]="".concat(n," and ").concat(l[2]):l[2]=n),e.push(l))}},e}},2638:function(t,e,n){"use strict";function i(){return i=Object.assign||function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t},i.apply(this,arguments)}var o=["attrs","props","domProps"],r=["class","style","directives"],a=["on","nativeOn"],s=function(t){return t.reduce((function(t,e){for(var n in e)if(t[n])if(-1!==o.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==r.indexOf(n)){var s=t[n]instanceof Array?t[n]:[t[n]],c=e[n]instanceof Array?e[n]:[e[n]];t[n]=s.concat(c)}else if(-1!==a.indexOf(n))for(var u in e[n])if(t[n][u]){var d=t[n][u]instanceof Array?t[n][u]:[t[n][u]],h=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=d.concat(h)}else t[n][u]=e[n][u];else if("hook"==n)for(var f in e[n])t[n][f]=t[n][f]?l(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t}),{})},l=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=s},"499e":function(t,e,n){"use strict";function i(t,e){for(var n=[],i={},o=0;o<e.length;o++){var r=e[o],a=r[0],s={id:t+":"+o,css:r[1],media:r[2],sourceMap:r[3]};i[a]?i[a].parts.push(s):n.push(i[a]={id:a,parts:[s]})}return n}n.r(e),n.d(e,"default",(function(){return p}));var o="undefined"!=typeof document;if("undefined"!=typeof DEBUG&&DEBUG&&!o)throw new Error("vue-style-loader cannot be used in a non-browser environment. Use { target: 'node' } in your Webpack config to indicate a server-rendering environment.");var r={},a=o&&(document.head||document.getElementsByTagName("head")[0]),s=null,l=0,c=!1,u=function(){},d=null,h="data-vue-ssr-id",f="undefined"!=typeof navigator&&/msie [6-9]\b/.test(navigator.userAgent.toLowerCase());function p(t,e,n,o){c=n,d=o||{};var a=i(t,e);return m(a),function(e){for(var n=[],o=0;o<a.length;o++){var s=a[o],l=r[s.id];l.refs--,n.push(l)}for(e?m(a=i(t,e)):a=[],o=0;o<n.length;o++)if(0===(l=n[o]).refs){for(var c=0;c<l.parts.length;c++)l.parts[c]();delete r[l.id]}}}function m(t){for(var e=0;e<t.length;e++){var n=t[e],i=r[n.id];if(i){i.refs++;for(var o=0;o<i.parts.length;o++)i.parts[o](n.parts[o]);for(;o<n.parts.length;o++)i.parts.push(v(n.parts[o]));i.parts.length>n.parts.length&&(i.parts.length=n.parts.length)}else{var a=[];for(o=0;o<n.parts.length;o++)a.push(v(n.parts[o]));r[n.id]={id:n.id,refs:1,parts:a}}}}function g(){var t=document.createElement("style");return t.type="text/css",a.appendChild(t),t}function v(t){var e,n,i=document.querySelector("style["+h+'~="'+t.id+'"]');if(i){if(c)return u;i.parentNode.removeChild(i)}if(f){var o=l++;i=s||(s=g()),e=b.bind(null,i,o,!1),n=b.bind(null,i,o,!0)}else i=g(),e=y.bind(null,i),n=function(){i.parentNode.removeChild(i)};return e(t),function(i){if(i){if(i.css===t.css&&i.media===t.media&&i.sourceMap===t.sourceMap)return;e(t=i)}else n()}}var k=function(){var t=[];return function(e,n){return t[e]=n,t.filter(Boolean).join("\n")}}();function b(t,e,n,i){var o=n?"":i.css;if(t.styleSheet)t.styleSheet.cssText=k(e,o);else{var r=document.createTextNode(o),a=t.childNodes;a[e]&&t.removeChild(a[e]),a.length?t.insertBefore(r,a[e]):t.appendChild(r)}}function y(t,e){var n=e.css,i=e.media,o=e.sourceMap;if(i&&t.setAttribute("media",i),d.ssrId&&t.setAttribute(h,e.id),o&&(n+="\n/*# sourceURL="+o.sources[0]+" */",n+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */"),t.styleSheet)t.styleSheet.cssText=n;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(n))}}},"4abb":function(t,e,n){var i=n("7a57");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("b2af7572",i,!0,{sourceMap:!1,shadowMode:!1})},"4ed8":function(t,e,n){var i=n("091b");"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("2f6bee1a",i,!0,{sourceMap:!1,shadowMode:!1})},"556c":function(t,e,n){var i=n("eef2");
2"string"==typeof i&&(i=[[t.i,i,""]]),i.locals&&(t.exports=i.locals),(0,n("499e").default)("1209fd47",i,!0,{sourceMap:!1,shadowMode:!1})},"65d9":function(t,e,n){"use strict";function i(t){return t&&"object"==typeof t&&"default"in t?t.default:t}Object.defineProperty(e,"__esModule",{value:!0});var o=i(n("8bbf")),r="undefined"!=typeof Reflect&&Reflect.defineMetadata&&Reflect.getOwnMetadataKeys;function a(t,e){s(t,e),Object.getOwnPropertyNames(e.prototype).forEach((function(n){s(t.prototype,e.prototype,n)})),Object.getOwnPropertyNames(e).forEach((function(n){s(t,e,n)}))}function s(t,e,n){(n?Reflect.getOwnMetadataKeys(e,n):Reflect.getOwnMetadataKeys(e)).forEach((function(i){var o=n?Reflect.getOwnMetadata(i,e,n):Reflect.getOwnMetadata(i,e);n?Reflect.defineMetadata(i,o,t,n):Reflect.defineMetadata(i,o,t)}))}var l={__proto__:[]}instanceof Array;function c(t){return function(e,n,i){var o="function"==typeof e?e:e.constructor;o.__decorators__||(o.__decorators__=[]),"number"!=typeof i&&(i=void 0),o.__decorators__.push((function(e){return t(e,n,i)}))}}function u(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return o.extend({mixins:t})}function d(t){var e=typeof t;return null==t||"object"!==e&&"function"!==e}function h(t,e){var n=e.prototype._init;e.prototype._init=function(){var e=this,n=Object.getOwnPropertyNames(t);if(t.$options.props)for(var i in t.$options.props)t.hasOwnProperty(i)||n.push(i);n.forEach((function(n){"_"!==n.charAt(0)&&Object.defineProperty(e,n,{get:function(){return t[n]},set:function(e){t[n]=e},configurable:!0})}))};var i=new e;e.prototype._init=n;var o={};
2return Object.keys(i).forEach((function(t){void 0!==i[t]&&(o[t]=i[t])})),o}var f=["data","beforeCreate","created","beforeMount","mounted","beforeDestroy","destroyed","beforeUpdate","updated","activated","deactivated","render","errorCaptured","serverPrefetch"];function p(t,e){void 0===e&&(e={}),e.name=e.name||t._componentTag||t.name;var n=t.prototype;Object.getOwnPropertyNames(n).forEach((function(t){if("constructor"!==t)if(f.indexOf(t)>-1)e[t]=n[t];else{var i=Object.getOwnPropertyDescriptor(n,t);void 0!==i.value?"function"==typeof i.value?(e.methods||(e.methods={}))[t]=i.value:(e.mixins||(e.mixins=[])).push({data:function(){var e;return(e={})[t]=i.value,e}}):(i.get||i.set)&&((e.computed||(e.computed={}))[t]={get:i.get,set:i.set})}})),(e.mixins||(e.mixins=[])).push({data:function(){return h(this,t)}});var i=t.__decorators__;i&&(i.forEach((function(t){return t(e)})),delete t.__decorators__);var s=Object.getPrototypeOf(t.prototype),l=s instanceof o?s.constructor:o,c=l.extend(e);return m(c,t,l),r&&a(c,t),c}function m(t,e,n){Object.getOwnPropertyNames(e).forEach((function(i){if("prototype"!==i){var o=Object.getOwnPropertyDescriptor(t,i);if(!o||o.configurable){var r=Object.getOwnPropertyDescriptor(e,i);if(!l){if("cid"===i)return;var a=Object.getOwnPropertyDescriptor(n,i);if(!d(r.value)&&a&&a.value===r.value)return}Object.defineProperty(t,i,r)}}}))}function g(t){return"function"==typeof t?p(t):function(e){return p(e,t)}}g.registerHooks=function(t){f.push.apply(f,t)},e.default=g,e.createDecorator=c,e.mixins=u},"7a57":function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider{position:relative;-webkit-box-sizing:content-box;box-sizing:content-box;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;display:block;-webkit-tap-highlight-color:rgba(0,0,0,0)}.vue-slider-rail{position:relative;width:100%;height:100%;-webkit-transition-property:width,height,left,right,top,bottom;transition-property:width,height,left,right,top,bottom}.vue-slider-process{position:absolute;z-index:1}",""]),t.exports=e},8875:function(t,e,n){var i,o,r,a;"undefined"!=typeof self&&self,a=function(){function t(){var e=Object.getOwnPropertyDescriptor(document,"currentScript");if(!e&&"currentScript"in document&&document.currentScript)return document.currentScript;if(e&&e.get!==t&&document.currentScript)return document.currentScript;try{throw new Error}catch(t){var n,i,o,r=/@([^@]*):(\d+):(\d+)\s*$/gi,a=/.*at [^(]*\((.*):(.+):(.+)\)$/gi.exec(t.stack)||r.exec(t.stack),s=a&&a[1]||!1,l=a&&a[2]||!1,c=document.location.href.replace(document.location.hash,""),u=document.getElementsByTagName("script");s===c&&(n=document.documentElement.outerHTML,i=new RegExp("(?:[^\\n]+?\\n){0,"+(l-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),o=n.replace(i,"$1").trim());for(var d=0;d<u.length;d++){if("interactive"===u[d].readyState)return u[d];if(u[d].src===s)return u[d];if(s===c&&u[d].innerHTML&&u[d].innerHTML.trim()===o)return u[d]}return null}}return t},o=[],void 0===(r="function"==typeof(i=a)?i.apply(e,o):i)||(t.exports=r)},"8bbf":function(t,e){t.exports=i},eef2:function(t,e,n){(e=n("24fb")(!1)).push([t.i,".vue-slider-marks{position:relative;width:100%;height:100%}.vue-slider-mark{position:absolute;z-index:1}.vue-slider-ltr .vue-slider-mark,.vue-slider-rtl .vue-slider-mark{width:0;height:100%;top:50%}.vue-slider-ltr .vue-slider-mark-step,.vue-slider-rtl .vue-slider-mark-step{top:0}.vue-slider-ltr .vue-slider-mark-label,.vue-slider-rtl .vue-slider-mark-label{top:100%;margin-top:10px}.vue-slider-ltr .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ltr .vue-slider-mark-step{left:0}.vue-slider-ltr .vue-slider-mark-label{left:50%;-webkit-transform:translateX(-50%);transform:translateX(-50%)}.vue-slider-rtl .vue-slider-mark{-webkit-transform:translate(50%,-50%);transform:translate(50%,-50%)}.vue-slider-rtl .vue-slider-mark-step{right:0}.vue-slider-rtl .vue-slider-mark-label{right:50%;-webkit-transform:translateX(50%);transform:translateX(50%)}.vue-slider-btt .vue-slider-mark,.vue-slider-ttb .vue-slider-mark{width:100%;height:0;left:50%}.vue-slider-btt .vue-slider-mark-step,.vue-slider-ttb .vue-slider-mark-step{left:0}.vue-slider-btt .vue-slider-mark-label,.vue-slider-ttb .vue-slider-mark-label{left:100%;margin-left:10px}.vue-slider-btt .vue-slider-mark{-webkit-transform:translate(-50%,50%);transform:translate(-50%,50%)}.vue-slider-btt .vue-slider-mark-step{top:0}.vue-slider-btt .vue-slider-mark-label{top:50%;-webkit-transform:translateY(-50%);transform:translateY(-50%)}.vue-slider-ttb .vue-slider-mark{-webkit-transform:translate(-50%,-50%);transform:translate(-50%,-50%)}.vue-slider-ttb .vue-slider-mark-step{bottom:0}.vue-slider-ttb .vue-slider-mark-label{bottom:50%;-webkit-transform:translateY(50%);transform:translateY(50%)}.vue-slider-mark-label,.vue-slider-mark-step{position:absolute}",""]),t.exports=e},fb15:function(t,e,n){"use strict";if(n.r(e),n.d(e,"ERROR_TYPE",(function(){return Q})),n.d(e,"VueSliderMark",(function(){return H})),n.d(e,"VueSliderDot",(function(){return S})),"undefined"!=typeof window){var i=window.document.currentScript,o=n("8875");i=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o});var r=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);r&&(n.p=r[1])}var a=n("2638"),s=n.n(a);function l(t,e,n,i){var o,r=arguments.length,a=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,n):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)a=Reflect.decorate(t,e,n,i);else for(var s=t.length-1;s>=0;s--)(o=t[s])&&(a=(r<3?o(a):r>3?o(e,n,a):o(e,n))||a);return r>3&&a&&Object.defineProperty(e,n,a),a}var c=n("8bbf"),u=n.n(c),d=n("65d9"),h=n.n(d);function f(t,e){return void 0===e&&(e={}),Object(d.createDecorator)((function(n,i){(n.props||(n.props={}))[i]=e,n.model={prop:i,event:t||i}}))}function p(t){return void 0===t&&(t={}),Object(d.createDecorator)((function(e,n){(e.props||(e.props={}))[n]=t}))}function m(t,e){void 0===e&&(e={});var n=e.deep,i=void 0!==n&&n,o=e.immediate,r=void 0!==o&&o;return Object(d.createDecorator)((function(e,n){"object"!=typeof e.watch&&(e.watch=Object.create(null));var o=e.watch;"object"!=typeof o[t]||Array.isArray(o[t])?void 0===o[t]&&(o[t]=[]):o[t]=[o[t]],o[t].push({handler:n,deep:i,immediate:r})}))}function g(t){return g="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},g(t)}function v(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function k(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function b(t,e,n){return e&&k(t.prototype,e),n&&k(t,n),t}function y(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&_(t,e)}function _(t,e){return _=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},_(t,e)}function w(t){var e=x();return function(){var n,i=D(t);if(e){var o=D(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return C(this,n)}}function C(t,e){return!e||"object"!==g(e)&&"function"!=typeof e?A(t):e}function A(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function x(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}
2function D(t){return D=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},D(t)}n("4ed8");var E=function(){var t=function(t){y(n,t);var e=w(n);function n(){return v(this,n),e.apply(this,arguments)}return b(n,[{key:"dragStart",value:function(t){if(this.disabled)return!1;this.$emit("drag-start")}},{key:"render",value:function(){var t=arguments[0];return t("div",{ref:"dot",class:this.dotClasses,attrs:{"aria-valuetext":"number"==typeof this.tooltipValue?this.tooltipValue.toString():this.tooltipValue},on:{mousedown:this.dragStart,touchstart:this.dragStart}},[this.$slots.dot||t("div",{class:this.handleClasses,style:this.dotStyle}),"none"!==this.tooltip?t("div",{class:this.tooltipClasses},[this.$slots.tooltip||t("div",{class:this.tooltipInnerClasses,style:this.tooltipStyle},[t("span",{class:"vue-slider-dot-tooltip-text"},[this.tooltipValue])])]):null])}},{key:"dotClasses",get:function(){return["vue-slider-dot",{"vue-slider-dot-hover":"hover"===this.tooltip||"active"===this.tooltip,"vue-slider-dot-disabled":this.disabled,"vue-slider-dot-focus":this.focus}]}},{key:"handleClasses",get:function(){return["vue-slider-dot-handle",{"vue-slider-dot-handle-disabled":this.disabled,"vue-slider-dot-handle-focus":this.focus}]}},{key:"tooltipClasses",get:function(){return["vue-slider-dot-tooltip",["vue-slider-dot-tooltip-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-show":this.showTooltip}]}},{key:"tooltipInnerClasses",get:function(){return["vue-slider-dot-tooltip-inner",["vue-slider-dot-tooltip-inner-".concat(this.tooltipPlacement)],{"vue-slider-dot-tooltip-inner-disabled":this.disabled,"vue-slider-dot-tooltip-inner-focus":this.focus}]}},{key:"showTooltip",get:function(){switch(this.tooltip){case"always":return!0;case"none":default:return!1;case"focus":case"active":return!!this.focus}}},{key:"tooltipValue",get:function(){return this.tooltipFormatter?"string"==typeof this.tooltipFormatter?this.tooltipFormatter.replace(/\{value\}/,String(this.value)):this.tooltipFormatter(this.value):this.value}}]),n}(u.a);return l([p({default:0})],t.prototype,"value",void 0),l([p()],t.prototype,"tooltip",void 0),l([p()],t.prototype,"dotStyle",void 0),l([p()],t.prototype,"tooltipStyle",void 0),l([p({type:String,validator:function(t){return["top","right","bottom","left"].indexOf(t)>-1},required:!0})],t.prototype,"tooltipPlacement",void 0),l([p({type:[String,Function]})],t.prototype,"tooltipFormatter",void 0),l([p({type:Boolean,default:!1})],t.prototype,"focus",void 0),l([p({default:!1})],t.prototype,"disabled",void 0),t=l([h()({name:"VueSliderDot"})],t)}(),S=E;function T(t){return T="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},T(t)}function I(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function z(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function M(t,e,n){return e&&z(t.prototype,e),n&&z(t,n),t}function B(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&P(t,e)}function P(t,e){return P=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},P(t,e)}function L(t){var e=F();return function(){var n,i=R(t);if(e){var o=R(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return N(this,n)}}function N(t,e){return!e||"object"!==T(e)&&"function"!=typeof e?O(t):e}function O(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function F(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}
vendor: 4,832 bytes, line 2
2function R(t){return R=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},R(t)}n("556c");var j,V=function(){var t=function(t){B(n,t);var e=L(n);function n(){return I(this,n),e.apply(this,arguments)}return M(n,[{key:"labelClickHandle",value:function(t){t.stopPropagation(),this.$emit("pressLabel",this.mark.pos)}},{key:"render",value:function(){var t=arguments[0],e=this.mark;return t("div",{class:this.marksClasses},[this.$slots.step||t("div",{class:this.stepClasses,style:[this.stepStyle||{},e.style||{},e.active&&this.stepActiveStyle||{},e.active&&e.activeStyle||{}]}),this.hideLabel?null:this.$slots.label||t("div",{class:this.labelClasses,style:[this.labelStyle||{},e.labelStyle||{},e.active&&this.labelActiveStyle||{},e.active&&e.labelActiveStyle||{}],on:{click:this.labelClickHandle}},[e.label])])}},{key:"marksClasses",get:function(){return["vue-slider-mark",{"vue-slider-mark-active":this.mark.active}]}},{key:"stepClasses",get:function(){return["vue-slider-mark-step",{"vue-slider-mark-step-active":this.mark.active}]}},{key:"labelClasses",get:function(){return["vue-slider-mark-label",{"vue-slider-mark-label-active":this.mark.active}]}}]),n}(u.a);return l([p({required:!0})],t.prototype,"mark",void 0),l([p(Boolean)],t.prototype,"hideLabel",void 0),l([p()],t.prototype,"stepStyle",void 0),l([p()],t.prototype,"stepActiveStyle",void 0),l([p()],t.prototype,"labelStyle",void 0),l([p()],t.prototype,"labelActiveStyle",void 0),t=l([h()({name:"VueSlideMark"})],t)}(),H=V,U=function(t){return"number"==typeof t?"".concat(t,"px"):t},Z=function(t){var e=document.documentElement,n=document.body,i=t.getBoundingClientRect();return{y:i.top+(window.pageYOffset||e.scrollTop)-(e.clientTop||n.clientTop||0),x:i.left+(window.pageXOffset||e.scrollLeft)-(e.clientLeft||n.clientLeft||0)}},q=function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:1,o="targetTouches"in t?t.targetTouches[0]:t,r=Z(e),a={x:o.pageX-r.x,y:o.pageY-r.y};return{x:n?e.offsetWidth*i-a.x:a.x,y:n?e.offsetHeight*i-a.y:a.y}};!function(t){t[t.PAGE_UP=33]="PAGE_UP",t[t.PAGE_DOWN=34]="PAGE_DOWN",t[t.END=35]="END",t[t.HOME=36]="HOME",t[t.LEFT=37]="LEFT",t[t.UP=38]="UP",t[t.RIGHT=39]="RIGHT",t[t.DOWN=40]="DOWN"}(j||(j={}));var W=function(t,e){if(e.hook){var n=e.hook(t);if("function"==typeof n)return n;if(!n)return null}switch(t.keyCode){case j.UP:return function(t){return"ttb"===e.direction?t-1:t+1};case j.RIGHT:return function(t){return"rtl"===e.direction?t-1:t+1};case j.DOWN:return function(t){return"ttb"===e.direction?t+1:t-1};case j.LEFT:return function(t){return"rtl"===e.direction?t+1:t-1};case j.END:return function(){return e.max};case j.HOME:return function(){return e.min};case j.PAGE_UP:return function(t){return t+10};case j.PAGE_DOWN:return function(t){return t-10};default:return null}};function G(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function $(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Y(t,e,n){return e&&$(t.prototype,e),n&&$(t,n),t}var K,Q,J=function(){function t(e){G(this,t),this.num=e}return Y(t,[{key:"decimal",value:function(t,e){var n=this.num,i=this.getDecimalLen(n),o=this.getDecimalLen(t),r=0;switch(e){case"+":r=this.getExponent(i,o),this.num=(this.safeRoundUp(n,r)+this.safeRoundUp(t,r))/r;break;case"-":r=this.getExponent(i,o),this.num=(this.safeRoundUp(n,r)-this.safeRoundUp(t,r))/r;break;case"*":this.num=this.safeRoundUp(this.safeRoundUp(n,this.getExponent(i)),this.safeRoundUp(t,this.getExponent(o)))/this.getExponent(i+o);break;case"/":r=this.getExponent(i,o),this.num=this.safeRoundUp(n,r)/this.safeRoundUp(t,r);break;case"%":r=this.getExponent(i,o),this.num=this.safeRoundUp(n,r)%this.safeRoundUp(t,r)/r}return this}},{key:"plus",value:function(t){return this.decimal(t,"+")}},{key:"minus",value:function(t){return this.decimal(t,"-")}},{key:"multiply",value:function(t){return this.decimal(t,"*")}},{key:"divide",value:function(t){return this.decimal(t,"/")}},{key:"remainder",value:function(t){return this.decimal(t,"%")}},{key:"toNumber",value:function(){return this.num}},{key:"getDecimalLen",value:function(t){var e="".concat(t).split("e");return("".concat(e[0]).split(".")[1]||"").length-(e[1]?+e[1]:0)}},{key:"getExponent",value:function(t,e){return Math.pow(10,void 0!==e?Math.max(t,e):t)}},{key:"safeRoundUp",value:function(t,e){return Math.round(t*e)}}]),t}();function X(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function tt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};
2e%2?X(Object(n),!0).forEach((function(e){pt(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):X(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function et(t,e){return ot(t)||it(t,e)||st(t,e)||nt()}function nt(){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 it(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}function ot(t){if(Array.isArray(t))return t}function rt(t){return ct(t)||lt(t)||st(t)||at()}function at(){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 st(t,e){if(t){if("string"==typeof t)return ut(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ut(t,e):void 0}}function lt(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function ct(t){if(Array.isArray(t))return ut(t)}function ut(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function dt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function ht(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function ft(t,e,n){return e&&ht(t.prototype,e),n&&ht(t,n),t}function pt(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}!function(t){t[t.VALUE=1]="VALUE",t[t.INTERVAL=2]="INTERVAL",t[t.MIN=3]="MIN",t[t.MAX=4]="MAX",t[t.ORDER=5]="ORDER"}(Q||(Q={}));var mt=(pt(K={},Q.VALUE,'The type of the "value" is illegal'),pt(K,Q.INTERVAL,'The prop "interval" is invalid, "(max - min)" must be divisible by "interval"'),pt(K,Q.MIN,'The "value" must be greater than or equal to the "min".'),pt(K,Q.MAX,'The "value" must be less than or equal to the "max".'),pt(K,Q.ORDER,'When "order" is false, the parameters "minRange", "maxRange", "fixed", "enabled" are invalid.'),K),gt=function(){function t(e){dt(this,t),this.dotsPos=[],this.dotsValue=[],this.cacheRangeDir={},this.data=e.data,this.max=e.max,this.min=e.min,this.interval=e.interval,this.order=e.order,this.marks=e.marks,this.included=e.included,this.process=e.process,this.adsorb=e.adsorb,this.dotOptions=e.dotOptions,this.onError=e.onError,this.order?(this.minRange=e.minRange||0,this.maxRange=e.maxRange||0,this.enableCross=e.enableCross,this.fixed=e.fixed):((e.minRange||e.maxRange||!e.enableCross||e.fixed)&&this.emitError(Q.ORDER),this.minRange=0,this.maxRange=0,this.enableCross=!0,this.fixed=!1),this.setValue(e.value)}return ft(t,[{key:"setValue",value:function(t){var e=this;this.setDotsValue(Array.isArray(t)?this.order?rt(t).sort((function(t,n){return e.getIndexByValue(t)-e.getIndexByValue(n)})):rt(t):[t],!0)}},{key:"setDotsValue",value:function(t,e){this.dotsValue=t,e&&this.syncDotsPos()}},{key:"setDotsPos",value:function(t){var e=this,n=this.order?rt(t).sort((function(t,e){return t-e})):t;this.dotsPos=n,this.setDotsValue(n.map((function(t){return e.getValueByPos(t)})),this.adsorb)}},{key:"getValueByPos",value:function(t){var e=this.parsePos(t);if(this.included){var n=100;this.markList.forEach((function(i){var o=Math.abs(i.pos-t);o<n&&(n=o,e=i.value)}))}return e}},{key:"syncDotsPos",value:function(){var t=this;this.dotsPos=this.dotsValue.map((function(e){return t.parseValue(e)}))}},{key:"getRecentDot",value:function(t){var e=this,n=this.dotsPos.filter((function(t,n){return!(e.getDotOption(n)&&e.getDotOption(n).disabled)})).map((function(e){return Math.abs(e-t)}));return n.indexOf(Math.min.apply(Math,rt(n)))}},{key:"getIndexByValue",value:function(t){return this.data?this.data.indexOf(t):new J(+t).minus(this.min).divide(this.interval).toNumber()}},{key:"getValueByIndex",value:function(t){return t<0?t=0:t>this.total&&(t=this.total),this.data?this.data[t]:new J(t).multiply(this.interval).plus(this.min).toNumber()}},{key:"setDotPos",value:function(t,e){var n=(t=this.getValidPos(t,e).pos)-this.dotsPos[e];if(n){var i=new Array(this.dotsPos.length);this.fixed?i=this.getFixedChangePosArr(n,e):this.minRange||this.maxRange?i=this.getLimitRangeChangePosArr(t,n,e):i[e]=n,this.setDotsPos(this.dotsPos.map((function(t,e){return t+(i[e]||0)})))}}},{key:"getFixedChangePosArr",value:function(t,e){var n=this;return this.dotsPos.forEach((function(i,o){if(o!==e){var r=n.getValidPos(i+t,o),a=r.pos;r.inRange||(t=Math.min(Math.abs(a-i),Math.abs(t))*(t<0?-1:1))}})),this.dotsPos.map((function(e){return t}))}},{key:"getLimitRangeChangePosArr",value:function(t,e,n){var i=this,o=[{index:n,changePos:e}],r=e;return[this.minRange,this.maxRange].forEach((function(a,s){if(!a)return!1;for(var l=0===s,c=e>0,u=0,d=function(t,e){var n=Math.abs(t-e);return l?n<i.minRangeDir:n>i.maxRangeDir},h=n+(u=l?c?1:-1:c?-1:1),f=i.dotsPos[h],p=t;i.isPos(f)&&d(f,p);){var m=i.getValidPos(f+r,h).pos;o.push({index:h,changePos:m-f}),h+=u,p=m,f=i.dotsPos[h]}})),this.dotsPos.map((function(t,e){var n=o.filter((function(t){return t.index===e}));return n.length?n[0].changePos:0}))}},{key:"isPos",value:function(t){return"number"==typeof t}},{key:"getValidPos",value:function(t,e){var n=this.valuePosRange[e],i=!0;return t<n[0]?(t=n[0],i=!1):t>n[1]&&(t=n[1],i=!1),{pos:t,inRange:i}}},{key:"parseValue",value:function(t){if(this.data)t=this.data.indexOf(t);else if("number"==typeof t||"string"==typeof t){if((t=+t)<this.min)return this.emitError(Q.MIN),0;if(t>this.max)return this.emitError(Q.MAX),0;if("number"!=typeof t||t!=t)return this.emitError(Q.VALUE),0;t=new J(t).minus(this.min).divide(this.interval).toNumber()}var e=new J(t).multiply(this.gap).toNumber();return e<0?0:e>100?100:e}},{key:"parsePos",value:function(t){var e=Math.round(t/this.gap);return this.getValueByIndex(e)}},{key:"isActiveByPos",value:function(t){return this.processArray.some((function(e){var n=et(e,2),i=n[0],o=n[1];return t>=i&&t<=o}))}},{key:"getValues",value:function(){if(this.data)return this.data;for(var t=[],e=0;e<=this.total;e++)t.push(new J(e).multiply(this.interval).plus(this.min).toNumber());return t}},{key:"getRangeDir",value:function(t){return t?new J(t).divide(new J(this.data?this.data.length-1:this.max).minus(this.data?0:this.min).toNumber()).multiply(100).toNumber():100}},{key:"emitError",value:function(t){this.onError&&this.onError(t,mt[t])}},{key:"getDotOption",value:function(t){return Array.isArray(this.dotOptions)?this.dotOptions[t]:this.dotOptions}},{key:"getDotRange",value:function(t,e,n){if(!this.dotOptions)return n;var i=this.getDotOption(t);return i&&void 0!==i[e]?this.parseValue(i[e]):n}},{key:"markList",get:function(){var t=this;if(!this.marks)return[];var e=function(e,n){var i=t.parseValue(e);return tt({pos:i,value:e,label:e,active:t.isActiveByPos(i)},n)};return!0===this.marks?this.getValues().map((function(t){return e(t)})):"[object Object]"===Object.prototype.toString.call(this.marks)?Object.keys(this.marks).sort((function(t,e){return+t-+e})).map((function(n){var i=t.marks[n];return e(n,"string"!=typeof i?i:{label:i})})):Array.isArray(this.marks)?this.marks.map((function(t){return e(t)})):"function"==typeof this.marks?this.getValues().map((function(e){return{value:e,result:t.marks(e)}})).filter((function(t){return!!t.result})).map((function(t){var n=t.value,i=t.result;return e(n,i)})):[]}},{key:"processArray",get:function(){if(this.process){if("function"==typeof this.process)return this.process(this.dotsPos);if(1===this.dotsPos.length)return[[0,this.dotsPos[0]]];if(this.dotsPos.length>1)return[[Math.min.apply(Math,rt(this.dotsPos)),Math.max.apply(Math,rt(this.dotsPos))]]}return[]}},{key:"total",get:function(){var t=0;return(t=this.data?this.data.length-1:new J(this.max).minus(this.min).divide(this.interval).toNumber())-Math.floor(t)!=0?(this.emitError(Q.INTERVAL),0):t}},{key:"gap",get:function(){return 100/this.total}},{key:"minRangeDir",get:function(){return this.cacheRangeDir[this.minRange]?this.cacheRangeDir[this.minRange]:this.cacheRangeDir[this.minRange]=this.getRangeDir(this.minRange)}},{key:"maxRangeDir",get:function(){return this.cacheRangeDir[this.maxRange]?this.cacheRangeDir[this.maxRange]:this.cacheRangeDir[this.maxRange]=this.getRangeDir(this.maxRange)}},{key:"valuePosRange",get:function(){var t=this,e=this.dotsPos,n=[];return e.forEach((function(i,o){n.push([Math.max(t.minRange?t.minRangeDir*o:0,t.enableCross?0:e[o-1]||0,t.getDotRange(o,"min",0)),Math.min(t.minRange?100-t.minRangeDir*(e.length-1-o):100,t.enableCross?100:e[o+1]||100,t.getDotRange(o,"max",100))])})),n}},{key:"dotsIndex",get:function(){var t=this;return this.dotsValue.map((function(e){return t.getIndexByValue(e)}))}}]),t}();function vt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function kt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function bt(t,e,n){return e&&kt(t.prototype,e),n&&kt(t,n),t}var yt=function(){function t(e){vt(this,t),this.states=0,this.map=e}return bt(t,[{key:"add",value:function(t){this.states|=t}},{key:"delete",value:function(t){this.states&=~t}},{key:"toggle",value:function(t){this.has(t)?this.delete(t):this.add(t)}},{key:"has",value:function(t){return!!(this.states&t)}}]),t}();function _t(t,e){return At(t)||Ct(t,e)||It(t,e)||wt()}
2function wt(){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 Ct(t,e){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t)){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n}}function At(t){if(Array.isArray(t))return t}function xt(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function Dt(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?xt(Object(n),!0).forEach((function(e){Et(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):xt(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function Et(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function St(t){return Mt(t)||zt(t)||It(t)||Tt()}function Tt(){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 It(t,e){if(t){if("string"==typeof t)return Bt(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Bt(t,e):void 0}}function zt(t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(t))return Array.from(t)}function Mt(t){if(Array.isArray(t))return Bt(t)}function Bt(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}function Pt(t){return Pt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Pt(t)}function Lt(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Nt(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function Ot(t,e,n){return e&&Nt(t.prototype,e),n&&Nt(t,n),t}function Ft(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&Rt(t,e)}function Rt(t,e){return Rt=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},Rt(t,e)}function jt(t){var e=Ut();return function(){var n,i=Zt(t);if(e){var o=Zt(this).constructor;n=Reflect.construct(i,arguments,o)}else n=i.apply(this,arguments);return Vt(this,n)}}function Vt(t,e){return!e||"object"!==Pt(e)&&"function"!=typeof e?Ht(t):e}function Ht(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Ut(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],(function(){}))),!0}catch(t){return!1}}function Zt(t){return Zt=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},Zt(t)}n("4abb");var qt={None:0,Drag:2,Focus:4},Wt=4,Gt=function(){var t=function(t){Ft(n,t);var e=jt(n);function n(){var t;return Lt(this,n),(t=e.apply(this,arguments)).states=new yt(qt),t.scale=1,t.focusDotIndex=0,t}return Ot(n,[{key:"isObjectData",value:function(t){return!!t&&"[object Object]"===Object.prototype.toString.call(t)}},{key:"isObjectArrayData",value:function(t){return!!t&&Array.isArray(t)&&t.length>0&&"object"===Pt(t[0])}},{key:"onValueChanged",value:function(){this.control&&!this.states.has(qt.Drag)&&this.isNotSync&&(this.control.setValue(this.value),this.syncValueByPos())}},{key:"created",value:function(){this.initControl()}},{key:"mounted",value:function(){this.bindEvent()}},{key:"beforeDestroy",value:function(){this.unbindEvent()}},{key:"bindEvent",value:function(){document.addEventListener("touchmove",this.dragMove,{passive:!1}),document.addEventListener("touchend",this.dragEnd,{passive:!1}),document.addEventListener("mousedown",this.blurHandle),document.addEventListener("mousemove",this.dragMove,{passive:!1}),document.addEventListener("mouseup",this.dragEnd),document.addEventListener("mouseleave",this.dragEnd),document.addEventListener("keydown",this.keydownHandle)}},{key:"unbindEvent",value:function(){document.removeEventListener("touchmove",this.dragMove),document.removeEventListener("touchend",this.dragEnd),document.removeEventListener("mousedown",this.blurHandle),document.removeEventListener("mousemove",this.dragMove),document.removeEventListener("mouseup",this.dragEnd),document.removeEventListener("mouseleave",this.dragEnd),document.removeEventListener("keydown",this.keydownHandle)}},{key:"setScale",value:function(){var t=new J(Math.floor(this.isHorizontal?this.$refs.rail.offsetWidth:this.$refs.rail.offsetHeight));void 0!==this.zoom&&t.multiply(this.zoom),t.divide(100),this.scale=t.toNumber()}},{key:"initControl",value:function(){var t=this;this.control=new gt({value:this.value,data:this.sliderData,enableCross:this.enableCross,fixed:this.fixed,max:this.max,min:this.min,interval:this.interval,minRange:this.minRange,maxRange:this.maxRange,order:this.order,marks:this.sliderMarks,included:this.included,process:this.process,adsorb:this.adsorb,dotOptions:this.dotOptions,onError:this.emitError}),this.syncValueByPos(),["data","enableCross","fixed","max","min","interval","minRange","maxRange","order","marks","process","adsorb","included","dotOptions"].forEach((function(e){t.$wat
vendor: 10,834 bytes, line 2
2ch(e,(function(n){if("data"===e&&Array.isArray(t.control.data)&&Array.isArray(n)&&t.control.data.length===n.length&&n.every((function(e,n){return e===t.control.data[n]})))return!1;switch(e){case"data":case"dataLabel":case"dataValue":t.control.data=t.sliderData;break;case"mark":t.control.marks=t.sliderMarks;break;default:t.control[e]=n}["data","max","min","interval"].indexOf(e)>-1&&t.control.syncDotsPos()}))}))}},{key:"syncValueByPos",value:function(){var t=this.control.dotsValue;this.isDiff(t,Array.isArray(this.value)?this.value:[this.value])&&this.$emit("change",1===t.length?t[0]:St(t),this.focusDotIndex)}},{key:"isDiff",value:function(t,e){return t.length!==e.length||t.some((function(t,n){return t!==e[n]}))}},{key:"emitError",value:function(t,e){this.silent||console.error("[VueSlider error]: ".concat(e)),this.$emit("error",t,e)}},{key:"dragStartOnProcess",value:function(t){if(this.dragOnClick){this.setScale();var e=this.getPosByEvent(t),n=this.control.getRecentDot(e);if(this.dots[n].disabled)return;this.dragStart(n),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos()}}},{key:"dragStart",value:function(t){this.focusDotIndex=t,this.setScale(),this.states.add(qt.Drag),this.states.add(qt.Focus),this.$emit("drag-start",this.focusDotIndex)}},{key:"dragMove",value:function(t){if(!this.states.has(qt.Drag))return!1;t.preventDefault();var e=this.getPosByEvent(t);this.isCrossDot(e),this.control.setDotPos(e,this.focusDotIndex),this.lazy||this.syncValueByPos();var n=this.control.dotsValue;this.$emit("dragging",1===n.length?n[0]:St(n),this.focusDotIndex)}},{key:"isCrossDot",value:function(t){if(this.canSort){var e=this.focusDotIndex,n=t;if(n>this.dragRange[1]?(n=this.dragRange[1],this.focusDotIndex++):n<this.dragRange[0]&&(n=this.dragRange[0],this.focusDotIndex--),e!==this.focusDotIndex){var i=this.$refs["dot-".concat(this.focusDotIndex)];i&&i.$el&&i.$el.focus(),this.control.setDotPos(n,e)}}}},{key:"dragEnd",value:function(t){var e=this;if(!this.states.has(qt.Drag))return!1;setTimeout((function(){e.lazy&&e.syncValueByPos(),e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos(),e.states.delete(qt.Drag),e.useKeyboard&&!("targetTouches"in t)||e.states.delete(qt.Focus),e.$emit("drag-end",e.focusDotIndex)}))}},{key:"blurHandle",value:function(t){if(!this.states.has(qt.Focus)||!this.$refs.container||this.$refs.container.contains(t.target))return!1;this.states.delete(qt.Focus)}},{key:"clickHandle",value:function(t){if(!this.clickable||this.disabled)return!1;if(!this.states.has(qt.Drag)){this.setScale();var e=this.getPosByEvent(t);this.setValueByPos(e)}}},{key:"focus",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;this.states.add(qt.Focus),this.focusDotIndex=t}},{key:"blur",value:function(){this.states.delete(qt.Focus)}},{key:"getValue",value:function(){var t=this.control.dotsValue;return 1===t.length?t[0]:t}},{key:"getIndex",value:function(){var t=this.control.dotsIndex;return 1===t.length?t[0]:t}},{key:"setValue",value:function(t){this.control.setValue(Array.isArray(t)?St(t):[t]),this.syncValueByPos()}},{key:"setIndex",value:function(t){var e=this,n=Array.isArray(t)?t.map((function(t){return e.control.getValueByIndex(t)})):this.control.getValueByIndex(t);this.setValue(n)}},{key:"setValueByPos",value:function(t){var e=this,n=this.control.getRecentDot(t);if(this.disabled||this.dots[n].disabled)return!1;this.focusDotIndex=n,this.control.setDotPos(t,n),this.syncValueByPos(),this.useKeyboard&&this.states.add(qt.Focus),setTimeout((function(){e.included&&e.isNotSync?e.control.setValue(e.value):e.control.syncDotsPos()}))}},{key:"keydownHandle",value:function(t){var e=this;if(!this.useKeyboard||!this.states.has(qt.Focus))return!1;var n=this.included&&this.marks,i=W(t,{direction:this.direction,max:n?this.control.markList.length-1:this.control.total,min:0,hook:this.keydownHook});if(i){t.preventDefault();var o=-1,r=0;n?(this.control.markList.some((function(t,n){return t.value===e.control.dotsValue[e.focusDotIndex]&&(o=i(n),!0)})),o<0?o=0:o>this.control.markList.length-1&&(o=this.control.markList.length-1),r=this.control.markList[o].pos):(o=i(this.control.getIndexByValue(this.control.dotsValue[this.focusDotIndex])),r=this.control.parseValue(this.control.getValueByIndex(o))),this.isCrossDot(r),this.control.setDotPos(r,this.focusDotIndex),this.syncValueByPos()}}},{key:"getPosByEvent",value:function(t){return q(t,this.$refs.rail,this.isReverse,this.zoom)[this.isHorizontal?"x":"y"]/this.scale}},{key:"renderSlot",value:function(t,e,n,i){var o=this.$createElement,r=this.$scopedSlots[t];return r?i?r(e):o("template",{slot:t},[r(e)]):n}},{key:"render",value:function(){var t=this,e=arguments[0];return e("div",s()([{ref:"container",class:this.containerClasses,style:this.containerStyles,on:{click:this.clickHandle,touchstart:this.dragStartOnProcess,mousedown:this.dragStartOnProcess}},this.$attrs]),[e("div",{ref:"rail",class:"vue-slider-rail",style:this.railStyle},[this.processArray.map((function(n,i){return t.renderSlot("process",n,e("div",{class:"vue-slider-process",key:"process-".concat(i),style:n.style}),!0)})),this.sliderMarks?e("div",{class:"vue-slider-marks"},[this.control.markList.map((function(n,i){var o;return t.renderSlot("mark",n,e("vue-slider-mark",{key:"mark-".concat(i),attrs:{mark:n,hideLabel:t.hideLabel,stepStyle:t.stepStyle,stepActiveStyle:t.stepActiveStyle,labelStyle:t.labelStyle,labelActiveStyle:t.labelActiveStyle},style:(o={},Et(o,t.isHorizontal?"height":"width","100%"),Et(o,t.isHorizontal?"width":"height",t.tailSize),Et(o,t.mainDirection,"".concat(n.pos,"%")),o),on:{pressLabel:function(e){return t.clickable&&t.setValueByPos(e)}}},[t.renderSlot("step",n,null),t.renderSlot("label",n,null)]),!0)}))]):null,this.dots.map((function(n,i){var o;return e("vue-slider-dot",{ref:"dot-".concat(i),key:"dot-".concat(i),attrs:Dt({value:n.value,disabled:n.disabled,focus:n.focus,"dot-style":[n.style,n.disabled?n.disabledStyle:null,n.focus?n.focusStyle:null],tooltip:n.tooltip||t.tooltip,"tooltip-style":[t.tooltipStyle,n.tooltipStyle,n.disabled?n.tooltipDisabledStyle:null,n.focus?n.tooltipFocusStyle:null],"tooltip-formatter":Array.isArray(t.sliderTooltipFormatter)?t.sliderTooltipFormatter[i]:t.sliderTooltipFormatter,"tooltip-placement":t.tooltipDirections[i],role:"slider","aria-valuenow":n.value,"aria-valuemin":t.min,"aria-valuemax":t.max,"aria-orientation":t.isHorizontal?"horizontal":"vertical",tabindex:"0"},t.dotAttrs),style:[t.dotBaseStyle,(o={},Et(o,t.mainDirection,"".concat(n.pos,"%")),Et(o,"transition","".concat(t.mainDirection," ").concat(t.animateTime,"s")),o)],on:{"drag-start":function(){return t.dragStart(i)}},nativeOn:{focus:function(){return!n.disabled&&t.focus(i)},blur:function(){return t.blur()}}},[t.renderSlot("dot",n,null),t.renderSlot("tooltip",n,null)])})),this.renderSlot("default",{value:this.getValue()},null,!0)])])}},{key:"tailSize",get:function(){return U((this.isHorizontal?this.height:this.width)||Wt)}},{key:"containerClasses",get:function(){return["vue-slider",["vue-slider-".concat(this.direction)],{"vue-slider-disabled":this.disabled}]}},{key:"containerStyles",get:function(){var t=_t(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),e=t[0],n=t[1],i=this.width?U(this.width):this.isHorizontal?"auto":U(Wt),o=this.height?U(this.height):this.isHorizontal?U(Wt):"auto";return{padding:this.contained?"".concat(n/2,"px ").concat(e/2,"px"):this.isHorizontal?"".concat(n/2,"px 0"):"0 ".concat(e/2,"px"),width:i,height:o}}},{key:"processArray",get:function(){var t=this;return this.control.processArray.map((function(e,n){var i,o=_t(e,3),r=o[0],a=o[1],s=o[2];if(r>a){var l=[a,r];r=l[0],a=l[1]}var c=t.isHorizontal?"width":"height";return{start:r,end:a,index:n,style:Dt(Dt((i={},Et(i,t.isHorizontal?"height":"width","100%"),Et(i,t.isHorizontal?"top":"left",0),Et(i,t.mainDirection,"".concat(r,"%")),Et(i,c,"".concat(a-r,"%")),Et(i,"transitionProperty","".concat(c,",").concat(t.mainDirection)),Et(i,"transitionDuration","".concat(t.animateTime,"s")),i),t.processStyle),s)}}))}},{key:"dotBaseStyle",get:function(){var t,e=_t(Array.isArray(this.dotSize)?this.dotSize:[this.dotSize,this.dotSize],2),n=e[0],i=e[1];return t=this.isHorizontal?Et({transform:"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),"-WebkitTransform":"translate(".concat(this.isReverse?"50%":"-50%",", -50%)"),top:"50%"},"ltr"===this.direction?"left":"right","0"):Et({transform:"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),"-WebkitTransform":"translate(-50%, ".concat(this.isReverse?"50%":"-50%",")"),left:"50%"},"btt"===this.direction?"bottom":"top","0"),Dt({width:"".concat(n,"px"),height:"".concat(i,"px")},t)}},{key:"mainDirection",get:function(){switch(this.direction){case"ltr":return"left";case"rtl":return"right";case"btt":return"bottom";case"ttb":return"top"}}},{key:"isHorizontal",get:function(){return"ltr"===this.direction||"rtl"===this.direction}},{key:"isReverse",get:function(){return"rtl"===this.direction||"btt"===this.direction}},{key:"tooltipDirections",get:function(){var t=this.tooltipPlacement||(this.isHorizontal?"top":"left");return Array.isArray(t)?t:this.dots.map((function(){return t}))}},{key:"dots",get:function(){var t=this;return this.control.dotsPos.map((function(e,n){return Dt({pos:e,index:n,value:t.control.dotsValue[n],focus:t.states.has(qt.Focus)&&t.focusDotIndex===n,disabled:t.disabled,style:t.dotStyle},(Array.isArray(t.dotOptions)?t.dotOptions[n]:t.dotOptions)||{})}))}},{key:"animateTime",get:function(){return this.states.has(qt.Drag)?0:this.duration}},{key:"canSort",get:function(){return this.order&&!this.minRange&&!this.maxRange&&!this.fixed&&this.enableCross}},{key:"sliderData",get:function(){var t=this;return this.isObjectArrayData(this.data)?this.data.map((function(e){return e[t.dataValue]})):this.isObjectData(this.data)?Object.keys(this.data):this.data}},{key:"sliderMarks",get:function(){var t=this;return this.marks?this.marks:this.isObjectArrayData(this.data)?function(e){var n={label:e};return t.data.some((function(i){return i[t.dataValue]===e&&(n.label=i[t.dataLabel],!0)})),n}:this.isObjectData(this.data)?this.data:void 0}},{key:"sliderTooltipFormatter",get:function(){var t=this;if(this.tooltipFormatter)return this.tooltipFormatter;if(this.isObjectArrayData(this.data))return function(e){var n=""+e;return t.data.some((function(i){return i[t.dataValue]===e&&(n=i[t.dataLabel],!0)})),n};if(this.isObjectData(this.data)){var e=this.data;return function(t){return e[t]}}}},{key:"isNotSync",get:function(){var t=this.control.dotsValue;return Array.isArray(this.value)?this.value.length!==t.length||this.value.some((function(e,n){return e!==t[n]})):this.value!==t[0]}},{key:"dragRange",get:function(){var t=this.dots[this.focusDotIndex-1],e=this.dots[this.focusDotIndex+1];
2return[t?t.pos:-1/0,e?e.pos:1/0]}}]),n}(u.a);return l([f("change",{default:0})],t.prototype,"value",void 0),l([p({type:Boolean,default:!1})],t.prototype,"silent",void 0),l([p({default:"ltr",validator:function(t){return["ltr","rtl","ttb","btt"].indexOf(t)>-1}})],t.prototype,"direction",void 0),l([p({type:[Number,String]})],t.prototype,"width",void 0),l([p({type:[Number,String]})],t.prototype,"height",void 0),l([p({default:14})],t.prototype,"dotSize",void 0),l([p({default:!1})],t.prototype,"contained",void 0),l([p({type:Number,default:0})],t.prototype,"min",void 0),l([p({type:Number,default:100})],t.prototype,"max",void 0),l([p({type:Number,default:1})],t.prototype,"interval",void 0),l([p({type:Boolean,default:!1})],t.prototype,"disabled",void 0),l([p({type:Boolean,default:!0})],t.prototype,"clickable",void 0),l([p({type:Boolean,default:!1})],t.prototype,"dragOnClick",void 0),l([p({type:Number,default:.5})],t.prototype,"duration",void 0),l([p({type:[Object,Array]})],t.prototype,"data",void 0),l([p({type:String,default:"value"})],t.prototype,"dataValue",void 0),l([p({type:String,default:"label"})],t.prototype,"dataLabel",void 0),l([p({type:Boolean,default:!1})],t.prototype,"lazy",void 0),l([p({type:String,validator:function(t){return["none","always","focus","hover","active"].indexOf(t)>-1},default:"active"})],t.prototype,"tooltip",void 0),l([p({type:[String,Array],validator:function(t){return(Array.isArray(t)?t:[t]).every((function(t){return["top","right","bottom","left"].indexOf(t)>-1}))}})],t.prototype,"tooltipPlacement",void 0),l([p({type:[String,Array,Function]})],t.prototype,"tooltipFormatter",void 0),l([p({type:Boolean,default:!0})],t.prototype,"useKeyboard",void 0),l([p(Function)],t.prototype,"keydownHook",void 0),l([p({type:Boolean,default:!0})],t.prototype,"enableCross",void 0),l([p({type:Boolean,default:!1})],t.prototype,"fixed",void 0),l([p({type:Boolean,default:!0})],t.prototype,"order",void 0),l([p(Number)],t.prototype,"minRange",void 0),l([p(Number)],t.prototype,"maxRange",void 0),l([p({type:[Boolean,Object,Array,Function],default:!1})],t.prototype,"marks",void 0),l([p({type:[Boolean,Function],default:!0})],t.prototype,"process",void 0),l([p({type:[Number]})],t.prototype,"zoom",void 0),l([p(Boolean)],t.prototype,"included",void 0),l([p(Boolean)],t.prototype,"adsorb",void 0),l([p(Boolean)],t.prototype,"hideLabel",void 0),l([p()],t.prototype,"dotOptions",void 0),l([p()],t.prototype,"dotAttrs",void 0),l([p()],t.prototype,"railStyle",void 0),l([p()],t.prototype,"processStyle",void 0),l([p()],t.prototype,"dotStyle",void 0),l([p()],t.prototype,"tooltipStyle",void 0),l([p()],t.prototype,"stepStyle",void 0),l([p()],t.prototype,"stepActiveStyle",void 0),l([p()],t.prototype,"labelStyle",void 0),l([p()],t.prototype,"labelActiveStyle",void 0),l([m("value")],t.prototype,"onValueChanged",null),t=l([h()({name:"VueSlider",data:function(){return{control:null}},components:{VueSliderDot:S,VueSliderMark:H}})],t)}(),$t=Gt;$t.VueSliderMark=H,$t.VueSliderDot=S;var Yt=$t;e.default=Yt}}).default)},15332:t=>{window,t.exports=function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:i})},n.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="/",n(n.s=11)}([function(t,e,n){"use strict";e.__esModule=!0;var i,o=(i=n(43))&&i.__esModule?i:{default:i};e.default=o.default||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e,n){t.exports=!n(1)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.6"};"number"==typeof __e&&(__e=n)},function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},function(t,e){t.exports=function(t){if(null==t)throw TypeError("Can't call method on  "+t);return t}},function(t,e,n){var i=n(27);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},function(t,e,n){var i=n(8),o=n(7);t.exports=function(t){return i(o(t))}},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){"use strict";n.r(e);var i=n(0),o=n.n(i),r={basic:{swatches:["#1FBC9C","#1CA085","#2ECC70","#27AF60","#3398DB","#2980B9","#A463BF","#8E43AD","#3D556E","#222F3D","#F2C511","#F39C19","#E84B3C","#C0382B","#DDE6E8","#BDC3C8"],rowLength:4},"text-basic":{swatches:["#CC0001","#E36101","#FFCC00","#009900","#0066CB","#000000","#FFFFFF"],showBorder:!0},"text-advanced":{swatches:[["#000000","#434343","#666666","#999999","#b7b7b7","#cccccc","#d9d9d9","#efefef","#f3f3f3","#ffffff"],["#980000","#ff0000","#ff9900","#ffff00","#00ff00","#00ffff","#4a86e8","#0000ff","#9900ff","#ff00ff"],["#e6b8af","#f4cccc","#fce5cd","#fff2cc","#d9ead3","#d0e0e3","#c9daf8","#cfe2f3","#d9d2e9","#ead1dc"],["#dd7e6b","#ea9999","#f9cb9c","#ffe599","#b6d7a8","#a2c4c9","#a4c2f4","#9fc5e8","#b4a7d6","#d5a6bd"],["#cc4125","#e06666","#f6b26b","#ffd966","#93c47d","#76a5af","#6d9eeb","#6fa8dc","#8e7cc3","#c27ba0"],["#a61c00","#cc0000","#e69138","#f1c232","#6aa84f","#45818e","#3c78d8","#3d85c6","#674ea7","#a64d79"],["#85200c","#990000","#b45f06","#bf9000","#38761d","#134f5c","#1155cc","#0b5394","#351c75","#741b47"],["#5b0f00","#660000","#783f04","#7f6000","#274e13","#0c343d","#1c4587","#073763","#20124d","#4c1130"]],borderRadius:"0",rowLength:10,swatchSize:24,spacingSize:0},"material-basic":{swatches:["#F44336","#E91E63","#9C27B0","#673AB7","#3F51B5","#2196F3","#03A9F4","#00BCD4","#009688","#4CAF50","#8BC34A","#CDDC39","#FFEB3B","#FFC107","#F
2F9800","#FF5722","#795548","#9E9E9E","#607D8B"]},"material-light":{swatches:["#EF9A9A","#F48FB1","#CE93D8","#B39DDB","#9FA8DA","#90CAF9","#81D4FA","#80DEEA","#80CBC4","#A5D6A7","#C5E1A5","#E6EE9C","#FFF59D","#FFE082","#FFCC80","#FFAB91","#BCAAA4","#EEEEEE","#B0BEC5"]},"material-dark":{swatches:["#D32F2F","#C2185B","#7B1FA2","#512DA8","#303F9F","#1976D2","#0288D1","#0097A7","#00796B","#388E3C","#689F38","#AFB42B","#FBC02D","#FFA000","#F57C00","#E64A19","#5D4037","#616161","#455A64"]}};function a(t,e,n,i,o,r,a,s){var l=typeof(t=t||{}).default;"object"!==l&&"function"!==l||(t=t.default);var c,u="function"==typeof t?t.options:t;if(e&&(u.render=e,u.staticRenderFns=n,u._compiled=!0),i&&(u.functional=!0),r&&(u._scopeId=r),a?(c=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),o&&o.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(a)},u._ssrRegister=c):o&&(c=s?function(){o.call(this,this.$root.$options.shadowRoot)}:o),c)if(u.functional){u._injectStyles=c;var d=u.render;u.render=function(t,e){return c.call(e),d(t,e)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:t,options:u}}var s=a({name:"swatches",components:{Swatch:a({name:"swatch",components:{Check:a({name:"check",data:function(){return{}}},(function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:"vue-swatches__check__wrapper vue-swatches--has-children-centered"},[e("div",{staticClass:"vue-swatches__check__circle vue-swatches--has-children-centered"},[e("svg",{staticClass:"check",attrs:{version:"1.1",role:"presentation",width:"12",height:"12",viewBox:"0 0 1792 1792"}},[e("path",{staticClass:"vue-swatches__check__path",attrs:{d:"M1671 566q0 40-28 68l-724 724-136 136q-28 28-68 28t-68-28l-136-136-362-362q-28-28-28-68t28-68l136-136q28-28 68-28t68 28l294 295 656-657q28-28 68-28t68 28l136 136q28 28 28 68z"}})])])])}),[],!1,(function(t){n(13)}),null,null).exports},props:{borderRadius:{type:String},disabled:{type:Boolean},exceptionMode:{type:String},isException:{type:Boolean,default:!1},selected:{type:Boolean,default:!1},showCheckbox:{type:Boolean},showBorder:{type:Boolean},size:{type:Number},spacingSize:{type:Number},swatchColor:{type:String,default:""},swatchStyle:{type:Object}},data:function(){return{}},computed:{computedSwatchStyle:function(){return{display:this.isException&&"hidden"===this.exceptionMode?"none":"inline-block",width:this.size+"px",height:this.size+"px",marginBottom:this.spacingSize+"px",marginRight:this.spacingSize+"px",borderRadius:this.borderRadius,backgroundColor:""!==this.swatchColor?this.swatchColor:"#FFFFFF",cursor:this.cursorStyle}},cursorStyle:function(){return this.disabled||this.isException&&"disabled"===this.exceptionMode?"not-allowed":"pointer"},swatchStyles:function(){return[this.computedSwatchStyle,this.swatchStyle]}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-swatches__swatch",class:{"vue-swatches__swatch--border":t.showBorder,"vue-swatches__swatch--selected":t.selected,"vue-swatches__swatch--is-exception":t.isException||t.disabled},style:t.swatchStyles},[""===t.swatchColor?n("div",{staticClass:"vue-swatches__diagonal--wrapper vue-swatches--has-children-centered"},[n("div",{staticClass:"vue-swatches__diagonal"})]):t._e(),t._v(" "),n("check",{directives:[{name:"show",rawName:"v-show",value:t.showCheckbox&&t.selected,expression:"showCheckbox && selected"}]})],1)}),[],!1,(function(t){n(15)}),null,null).exports},props:{backgroundColor:{type:String,default:"#ffffff"},closeOnSelect:{type:Boolean,default:!0},colors:{type:[Array,Object,String],default:"basic"},exceptions:{type:Array,default:function(){return[]}},exceptionMode:{type:String,default:"disabled"},disabled:{type:Boolean,default:!1},fallbackInputClass:{type:[Array,Object,String],default:null},fallbackOkClass:{type:[Array,Object,String],default:null},fallbackOkText:{type:String,default:"Ok"},fallbackInputType:{type:String,default:function(){return"text"},validator:function(t){return-1!==["text","color"].indexOf(t)}},inline:{type:Boolean,default:!1},maxHeight:{type:[Number,String],default:null},shapes:{type:String,default:"squares"},popoverTo:{type:String,default:"right"},rowLength:{type:[Number,String],default:null},showBorder:{type:Boolean,default:null},showFallback:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},swatchSize:{type:[Number,String],default:null},swatchStyle:{type:[Object,Array],default:function(){}},triggerStyle:{type:[Object,Array],default:function(){}},wrapperStyle:{type:[Object,Array],default:function(){}},value:{type:String,default:null}},data:function(){return{presetBorderRadius:null,presetMaxHeight:null,presetRowLength:null,presetShowBorder:null,presetSwatchSize:null,presetSpacingSize:null,internalValue:this.value,internalIsOpen:!1}},computed:{isNested:function(){return!!(this.computedColors&&this.computedColors.length>0&&this.computedColors[0]instanceof Array)}
2,isOpen:function(){return!this.inline&&this.internalIsOpen},isNoColor:function(){return this.checkEquality("",this.value)},computedColors:function(){return this.colors instanceof Array?this.colors:this.extractSwatchesFromPreset(this.colors)},computedBorderRadius:function(){return null!==this.presetBorderRadius?this.presetBorderRadius:this.borderRadius},computedExceptionMode:function(){return"hidden"===this.exceptionMode||"disabled"===this.exceptionMode?this.exceptionMode:void 0},computedMaxHeight:function(){return null!==this.maxHeight?Number(this.maxHeight):null!==this.presetMaxHeight?this.presetMaxHeight:300},computedRowLength:function(){return null!==this.rowLength?Number(this.rowLength):null!==this.presetRowLength?this.presetRowLength:4},computedSwatchSize:function(){return null!==this.swatchSize?Number(this.swatchSize):null!==this.presetSwatchSize?this.presetSwatchSize:42},computedSpacingSize:function(){return null!==this.presetSpacingSize?this.presetSpacingSize:this.spacingSize},computedShowBorder:function(){return null!==this.showBorder?this.showBorder:null!==this.presetShowBorder&&this.presetShowBorder},borderRadius:function(){return"squares"===this.shapes?Math.round(.25*this.computedSwatchSize)+"px":"circles"===this.shapes?"50%":void 0},spacingSize:function(){return Math.round(.25*this.computedSwatchSize)},wrapperWidth:function(){return this.computedRowLength*(this.computedSwatchSize+this.computedSpacingSize)},computedtriggerStyle:function(){return{width:"42px",height:"42px",backgroundColor:this.value?this.value:"#ffffff",borderRadius:"circles"===this.shapes?"50%":"10px"}},triggerStyles:function(){return[this.computedtriggerStyle,this.triggerStyle]},containerStyle:function(){var t={backgroundColor:this.backgroundColor},e={};return this.inline?t:("right"===this.popoverTo?e={left:0}:"left"===this.popoverTo&&(e={right:0}),o()({},e,t,{maxHeight:this.computedMaxHeight+"px"}))},containerStyles:function(){return[this.containerStyle]},computedWrapperStyle:function(){var t={paddingTop:this.computedSpacingSize+"px",paddingLeft:this.computedSpacingSize+"px"};return this.inline?t:o()({},t,{width:this.wrapperWidth+"px"})},wrapperStyles:function(){return[this.computedWrapperStyle,this.wrapperStyle]},computedFallbackWrapperStyle:function(){var t={marginLeft:this.computedSpacingSize+"px",paddingBottom:this.computedSpacingSize+"px"};return this.inline?t:o()({},t,{width:this.wrapperWidth-this.computedSpacingSize+"px"})},computedFallbackWrapperStyles:function(){return[this.computedFallbackWrapperStyle]}},watch:{value:function(t){this.internalValue=t}},methods:{checkEquality:function(t,e){return!(!t&&""!==t||!e&&""!==e)&&t.toUpperCase()===e.toUpperCase()},checkException:function(t){return-1!==this.exceptions.map((function(t){return t.toUpperCase()})).indexOf(t.toUpperCase())},hidePopover:function(){this.internalIsOpen=!1,this.$el.blur(),this.$emit("close",this.internalValue)},onBlur:function(t){this.isOpen&&(null!==t&&this.$el.contains(t)||(this.internalIsOpen=!1,this.$emit("close",this.internalValue)))},onFallbackButtonClick:function(){this.hidePopover()},showPopover:function(){this.isOpen||this.inline||this.disabled||(this.internalIsOpen=!0,this.$el.focus(),this.$emit("open"))},togglePopover:function(){this.isOpen?this.hidePopover():this.showPopover()},updateSwatch:function(t){var e=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).fromFallbackInput;this.checkException(t)||this.disabled||(this.internalValue=t,this.$emit("input",t),!this.closeOnSelect||this.inline||e||this.hidePopover())},extractSwatchesFromPreset:function(t){var e=null;return(e=t instanceof Object?t:r[t]).borderRadius&&(this.presetBorderRadius=e.borderRadius),e.maxHeight&&(this.presetMaxHeight=e.maxHeight),e.rowLength&&(this.presetRowLength=e.rowLength),e.showBorder&&(this.presetShowBorder=e.showBorder),e.swatchSize&&(this.presetSwatchSize=e.swatchSize),(0===e.spacingSize||e.spacingSize)&&(this.presetSpacingSize=e.spacingSize),e.swatches}}},(function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"vue-swatches",attrs:{tabindex:"0"},on:{blur:function(e){return e.target!==e.currentTarget?null:(n=e,t.onBlur(n.relatedTarget));var n}}},[t.inline?t._e():n("div",{ref:"trigger-wrapper",on:{click:t.togglePopover}}
2,[t._t("trigger",[n("div",{staticClass:"vue-swatches__trigger",class:{"vue-swatches--is-empty":!t.value,"vue-swatches--is-disabled":t.disabled},style:t.triggerStyles},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.isNoColor,expression:"isNoColor"}],staticClass:"vue-swatches__diagonal--wrapper vue-swatches--has-children-centered"},[n("div",{staticClass:"vue-swatches__diagonal"})])])])],2),t._v(" "),n("transition",{attrs:{name:"vue-swatches-show-hide"}},[n("div",{directives:[{name:"show",rawName:"v-show",value:t.inline||t.isOpen,expression:"inline || isOpen"}],staticClass:"vue-swatches__container",class:{"vue-swatches--inline":t.inline},style:t.containerStyles},[n("div",{staticClass:"vue-swatches__wrapper",style:t.wrapperStyles},[t.isNested?t._l(t.computedColors,(function(e,i){return n("div",{key:i,staticClass:"vue-swatches__row"},t._l(e,(function(e){return n("swatch",{key:e,attrs:{"border-radius":t.computedBorderRadius,disabled:t.disabled,"exception-mode":t.computedExceptionMode,"is-exception":t.checkException(e),selected:t.checkEquality(e,t.value),size:t.computedSwatchSize,"spacing-size":t.computedSpacingSize,"show-border":t.computedShowBorder,"show-checkbox":t.showCheckbox,"swatch-color":e,"swatch-style":t.swatchStyle},nativeOn:{click:function(n){t.updateSwatch(e)}}})})))})):t._l(t.computedColors,(function(e){return n("swatch",{key:e,attrs:{"border-radius":t.computedBorderRadius,disabled:t.disabled,"exception-mode":t.computedExceptionMode,"is-exception":t.checkException(e),selected:t.checkEquality(e,t.value),size:t.computedSwatchSize,"spacing-size":t.computedSpacingSize,"show-border":t.computedShowBorder,"show-checkbox":t.showCheckbox,"swatch-color":e,"swatch-style":t.swatchStyle},nativeOn:{click:function(n){t.updateSwatch(e)}}})}))],2),t._v(" "),t.showFallback?n("div",{staticClass:"vue-swatches__fallback__wrapper",style:t.computedFallbackWrapperStyles},[n("span",{staticClass:"vue-swatches__fallback__input--wrapper"},[n("input",{ref:"fallbackInput",staticClass:"vue-swatches__fallback__input",class:t.fallbackInputClass,attrs:{type:t.fallbackInputType},domProps:{value:t.internalValue},on:{input:function(e){return t.updateSwatch(e.target.value,{fromFallbackInput:!0})}}})]),t._v(" "),n("button",{staticClass:"vue-swatches__fallback__button",class:t.fallbackOkClass,on:{click:function(e){return e.preventDefault(),t.onFallbackButtonClick(e)}}},[t._v("\n          "+t._s(t.fallbackOkText)+"\n        ")])]):t._e()])])],1)}),[],!1,(function(t){n(45)}),null,null).exports;n.d(e,"Swatches",(function(){return s})),e.default=s},,function(t,e,n){},,function(t,e,n){},function(t,e,n){var i=n(7);t.exports=function(t){return Object(i(t))}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},function(t,e){t.exports=!0},function(t,e,n){var i=n(4),o=n(5),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n(21)?"pure":"global",copyright:"© 2018 Denis Pushkarev (zloirock.ru)"})},function(t,e,n){var i=n(22)("keys"),o=n(20);t.exports=function(t){return i[t]||(i[t]=o(t))}},function(t,e,n){var i=n(6),o=Math.max,r=Math.min;t.exports=function(t,e){return(t=i(t))<0?o(t+e,0):r(t,e)}},function(t,e,n){var i=n(6),o=Math.min;t.exports=function(t){return t>0?o(i(t),9007199254740991):0}},function(t,e,n){var i=n(9),o=n(25),r=n(24);t.exports=function(t){return function(e,n,a){var s,l=i(e),c=o(l.length),u=r(a,c);if(t&&n!=n){for(;c>u;)if((s=l[u++])!=s)return!0}else for(;c>u;u++)if((t||u in l)&&l[u]===n)return t||u||0;return!t&&-1}}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e,n){var i=n(10),o=n(9),r=n(26)(!1),a=n(23)("IE_PROTO");t.exports=function(t,e){var n,s=o(t),l=0,c=[];for(n in s)n!=a&&i(s,n)&&c.push(n);for(;e.length>l;
2)i(s,n=e[l++])&&(~r(c,n)||c.push(n));return c}},function(t,e,n){var i=n(28),o=n(19);t.exports=Object.keys||function(t){return i(t,o)}},function(t,e,n){"use strict";var i=n(29),o=n(18),r=n(17),a=n(16),s=n(8),l=Object.assign;t.exports=!l||n(1)((function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach((function(t){e[t]=t})),7!=l({},t)[n]||Object.keys(l({},e)).join("")!=i}))?function(t,e){for(var n=a(t),l=arguments.length,c=1,u=o.f,d=r.f;l>c;)for(var h,f=s(arguments[c++]),p=u?i(f).concat(u(f)):i(f),m=p.length,g=0;m>g;)d.call(f,h=p[g++])&&(n[h]=f[h]);return n}:l},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e,n){var i=n(3);t.exports=function(t,e){if(!i(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!i(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!i(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e,n){var i=n(3),o=n(5).document,r=i(o)&&i(o.createElement);t.exports=function(t){return r?o.createElement(t):{}}},function(t,e,n){t.exports=!n(2)&&!n(1)((function(){return 7!=Object.defineProperty(n(33)("div"),"a",{get:function(){return 7}}).a}))},function(t,e,n){var i=n(3);t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},function(t,e,n){var i=n(35),o=n(34),r=n(32),a=Object.defineProperty;e.f=n(2)?Object.defineProperty:function(t,e,n){if(i(t),e=r(e,!0),i(n),o)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var i=n(36),o=n(31);t.exports=n(2)?function(t,e,n){return i.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var i=n(38);t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,o){return t.call(e,n,i,o)}}return function(){return t.apply(e,arguments)}}},function(t,e,n){var i=n(5),o=n(4),r=n(39),a=n(37),s=n(10),l=function(t,e,n){var c,u,d,h=t&l.F,f=t&l.G,p=t&l.S,m=t&l.P,g=t&l.B,v=t&l.W,k=f?o:o[e]||(o[e]={}),b=k.prototype,y=f?i:p?i[e]:(i[e]||{}).prototype;for(c in f&&(n=e),n)(u=!h&&y&&void 0!==y[c])&&s(k,c)||(d=u?y[c]:n[c],k[c]=f&&"function"!=typeof y[c]?n[c]:g&&u?r(d,i):v&&y[c]==d?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(d):m&&"function"==typeof d?r(Function.call,d):d,m&&((k.virtual||(k.virtual={}))[c]=d,t&l.R&&b&&!b[c]&&a(b,c,d)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,t.exports=l},function(t,e,n){var i=n(40);i(i.S+i.F,"Object",{assign:n(30)})},function(t,e,n){n(41),t.exports=n(4).Object.assign},function(t,e,n){t.exports={default:n(42),__esModule:!0}},,function(t,e,n){}])},31485:function(t){t.exports=function(){"use strict";var t,e=(function(t){var e=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}();function n(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var o=function(){function t(){i(this,t)}return e(t,[{key:"on",value:function(t,e){return this._callbacks=this._callbacks||{},this._callbacks[t]||(this._callbacks[t]=[]),this._callbacks[t].push(e),this}},{key:"emit",value:function(t){this._callbacks=this._callbacks||{};var e=this._callbacks[t];if(e){for(var n=arguments.length,i=Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];for(var r=0,a=a=e;!(r>=a.length);)a[r++].apply(this,i)}return this}},{key:"off",value:function(t,e){if(!this._callbacks||0===arguments.length)return this._callbacks={},this;var n=this._callbacks[t];if(!n)return this;if(1===arguments.length)return delete this._callbacks[t],this;for(var i=0;i<n.length;i++)if(n[i]===e){n.splice(i,1);break}return this}}]),t}(),r=function(t){function r(t,e){i(this,r);var o,a=n(this,(r.__proto__||Object.getPrototypeOf(r)).call(this)),s=void 0;if(a.element=t,a.version=r.version,a.defaultOptions.previewTemplate=a.defaultOptions.previewTemplate.replace(/\n*/g,""),a.clickableElements=[],a.listeners=[],a.files=[],"string"==typeof a.element&&(a.element=document.querySelector(a.element)),!a.element||null==a.element.nodeType)throw new Error("Invalid dropzone element.");if(a.element.dropzone)throw new Error("Dropzone already attached.");r.instances.push(a),a.element.dropzone=a;var l,c=null!=(o=r.optionsForElement(a.element))?o:{};if(a.options=r.extend({},a.defaultOptions,c,null!=e?e:{}),a.options.forceFallback||!r.isBrowserSupported())return l=a.options.fallback.call(a),n(a,l);if(null==a.options.url&&(a.options.url=a.element.getAttribute("action")),!a.options.url)throw new Error("No URL provided.");if(a.options.acceptedFiles&&a.options.acceptedMimeTypes)throw new Error("You can't provide both 'acceptedFiles' and 'acceptedMimeTypes'. 'acceptedMimeTypes' is deprecated.");
vendor: 11,087 bytes, line 2
2if(a.options.uploadMultiple&&a.options.chunking)throw new Error("You cannot set both: uploadMultiple and chunking.");return a.options.acceptedMimeTypes&&(a.options.acceptedFiles=a.options.acceptedMimeTypes,delete a.options.acceptedMimeTypes),null!=a.options.renameFilename&&(a.options.renameFile=function(t){return a.options.renameFilename.call(a,t.name,t)}),a.options.method=a.options.method.toUpperCase(),(s=a.getExistingFallback())&&s.parentNode&&s.parentNode.removeChild(s),!1!==a.options.previewsContainer&&(a.options.previewsContainer?a.previewsContainer=r.getElement(a.options.previewsContainer,"previewsContainer"):a.previewsContainer=a.element),a.options.clickable&&(!0===a.options.clickable?a.clickableElements=[a.element]:a.clickableElements=r.getElements(a.options.clickable,"clickable")),a.init(),a}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}(r,o),e(r,null,[{key:"initClass",value:function(){this.prototype.Emitter=o,this.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","addedfile","addedfiles","removedfile","thumbnail","error","errormultiple","processing","processingmultiple","uploadprogress","totaluploadprogress","sending","sendingmultiple","success","successmultiple","canceled","canceledmultiple","complete","completemultiple","reset","maxfilesexceeded","maxfilesreached","queuecomplete"],this.prototype.defaultOptions={url:null,method:"post",withCredentials:!1,timeout:3e4,parallelUploads:2,uploadMultiple:!1,chunking:!1,forceChunking:!1,chunkSize:2e6,parallelChunkUploads:!1,retryChunks:!1,retryChunksLimit:3,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:10,thumbnailWidth:120,thumbnailHeight:120,thumbnailMethod:"crop",resizeWidth:null,resizeHeight:null,resizeMimeType:null,resizeQuality:.8,resizeMethod:"contain",filesizeBase:1e3,maxFiles:null,headers:null,clickable:!0,ignoreHiddenFiles:!0,acceptedFiles:null,acceptedMimeTypes:null,autoProcessQueue:!0,autoQueue:!0,addRemoveLinks:!1,previewsContainer:null,hiddenInputContainer:"body",capture:null,renameFilename:null,renameFile:null,forceFallback:!1,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",dictFileTooBig:"File is too big ({{filesize}}MiB). Max filesize: {{maxFilesize}}MiB.",dictInvalidFileType:"You can't upload files of this type.",dictResponseError:"Server responded with {{statusCode}} code.",dictCancelUpload:"Cancel upload",dictUploadCanceled:"Upload canceled.",dictCancelUploadConfirmation:"Are you sure you want to cancel this upload?",dictRemoveFile:"Remove file",dictRemoveFileConfirmation:null,dictMaxFilesExceeded:"You can not upload any more files.",dictFileSizeUnits:{tb:"TB",gb:"GB",mb:"MB",kb:"KB",b:"b"},init:function(){},params:function(t,e,n){if(n)return{dzuuid:n.file.upload.uuid,dzchunkindex:n.index,dztotalfilesize:n.file.size,dzchunksize:this.options.chunkSize,dztotalchunkcount:n.file.upload.totalChunkCount,dzchunkbyteoffset:n.index*this.options.chunkSize}},accept:function(t,e){return e()},chunksUploaded:function(t,e){e()},fallback:function(){var t=void 0;this.element.className=this.element.className+" dz-browser-not-supported";for(var e=0,n=n=this.element.getElementsByTagName("div");!(e>=n.length);){var i=n[e++];if(/(^| )dz-message($| )/.test(i.className)){t=i,i.className="dz-message";break}}t||(t=r.createElement('<div class="dz-message"><span></span></div>'),this.element.appendChild(t));var o=t.getElementsByTagName("span")[0];return o&&(null!=o.textContent?o.textContent=this.options.dictFallbackMessage:null!=o.innerText&&(o.innerText=this.options.dictFallbackMessage)),this.element.appendChild(this.getFallbackForm())},resize:function(t,e,n,i){var o={srcX:0,srcY:0,srcWidth:t.width,srcHeight:t.height},r=t.width/t.height;null==e&&null==n?(e=o.srcWidth,n=o.srcHeight):null==e?e=n*r:null==n&&(n=e/r);var a=(e=Math.min(e,o.srcWidth))/(n=Math.min(n,o.srcHeight));if(o.srcWidth>e||o.srcHeight>n)if("crop"===i)r>a?(o.srcHeight=t.height,o.srcWidth=o.srcHeight*a):(o.srcWidth=t.width,o.srcHeight=o.srcWidth/a);else{if("contain"!==i)throw new Error("Unknown resizeMethod '"+i+"'");r>a?n=e/r:e=n*r}return o.srcX=(t.width-o.srcWidth)/2,o.srcY=(t.height-o.srcHeight)/2,o.trgWidth=e,o.trgHeight=n,o},transformFile:function(t,e){return(this.options.resizeWidth||this.options.resizeHeight)&&t.type.match(/image.*/)?this.resizeImage(t,this.options.resizeWidth,this.options.resizeHeight,this.options.resizeMethod,e):e(t)},previewTemplate:'<div class="dz-preview dz-file-preview">\n  <div class="dz-image"><img data-dz-thumbnail /></div>\n  <div class="dz-details">\n    <div class="dz-size"><span data-dz-size></span></div>\n    <div class="dz-filename"><span data-dz-name></span></div>\n  </div>\n  <div class="dz-progress"><span class="dz-upload" data-dz-uploadprogress></span></div>\n  <div class="dz-error-message"><span data-dz-errormessage></span></div>\n  <div class="dz-success-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Check</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <path d="M23.5,31.8431458 L17.5852419,25.9283877 C16.0248253,24.3679711 13.4910294,24.366835 11.9289322,25.9289322 C10.3700136,27.4878508 10.3665912,30.0234455 11.9283877,31.5852419 L20.4147581,40.0716123 C20.5133999,40.1702541 20.6159315,40.2626649 20.7218615,40.3488435 C22.2835669,41.8725651 24.794234,41.8626202 26.3461564,40.3106978 L43.3106978,23.3461564 C44.8771021,21.7797521 44.8758057,19.2483887 43.3137085,17.6862915 C41.7547899,16.1273729 39.2176035,16.1255422 37.6538436,17.6893022 L23.5,31.8431458 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" stroke-opacity="0.198794158" stroke="#747474" fill-opacity="0.816519475" fill="#FFFFFF" sketch:type="MSShapeGroup"></path>\n      </g>\n    </svg>\n  </div>\n  <div class="dz-error-mark">\n    <svg width="54px" height="54px" viewBox="0 0 54 54" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:sketch="http://www.bohemiancoding.com/sketch/ns">\n      <title>Error</title>\n      <defs></defs>\n      <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n        <g id="Check-+-Oval-2" sketch:type="MSLayerGroup" stroke="#747474" stroke-opacity="0.198794158" fill="#FFFFFF" fill-opacity="0.816519475">\n          <path d="M32.6568542,29 L38.3106978,23.3461564 C39.8771021,21.7797521 39.8758057,19.2483887 38.3137085,17.6862915 C36.7547899,16.1273729 34.2176035,16.1255422 32.6538436,17.6893022 L27,23.3431458 L21.3461564,17.6893022 C19.7823965,16.1255422 17.2452101,16.1273729 15.6862915,17.6862915 C14.1241943,19.2483887 14.1228979,21.7797521 15.6893022,23.3461564 L21.3431458,29 L15.6893022,34.6538436 C14.1228979,36.2202479 14.1241943,38.7516113 15.6862915,40.3137085 C17.2452101,41.8726271 19.7823965,41.8744578 21.3461564,40.3106978 L27,34.6568542 L32.6538436,40.3106978 C34.2176035,41.8744578 36.7547899,41.8726271 38.3137085,40.3137085 C39.8758057,38.7516113 39.8771021,36.2202479 38.3106978,34.6538436 L32.6568542,29 Z M27,53 C41.3594035,53 53,41.3594035 53,27 C53,12.6405965 41.3594035,1 27,1 C12.6405965,1 1,12.6405965 1,27 C1,41.3594035 12.6405965,53 27,53 Z" id="Oval-2" sketch:type="MSShapeGroup"></path>\n        </g>\n      </g>\n    </svg>\n  </div>\n</div>',drop:function(t){return this.element.classList.remove("dz-drag-hover")},dragstart:function(t){},dragend:function(t){return this.element.classList.remove("dz-drag-hover")},dragenter:function(t){return this.element.classList.add("dz-drag-hover")},dragover:function(t){return this.element.classList.add("dz-drag-hover")},dragleave:function(t){return this.element.classList.remove("dz-drag-hover")},paste:function(t){},reset:function(){return this.element.classList.remove("dz-started")},addedfile:function(t){var e=this;if(this.element===this.previewsContainer&&this.element.classList.add("dz-started"),this.previewsContainer){t.previewElement=r.createElement(this.options.previewTemplate.trim()),t.previewTemplate=t.previewElement,this.previewsContainer.appendChild(t.previewElement);for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-name]");!(n>=i.length);){var o=i[n++];o.textContent=t.name}for(var a=0,s=s=t.previewElement.querySelectorAll("[data-dz-size]");!(a>=s.length);)(o=s[a++]).innerHTML=this.filesize(t.size);this.options.addRemoveLinks&&(t._removeLink=r.createElement('<a class="dz-remove" href="javascript:undefined;" data-dz-remove>'+this.options.dictRemoveFile+"</a>"),t.previewElement.appendChild(t._removeLink));for(var l=function(n){return n.preventDefault(),n.stopPropagation(),t.status===r.UPLOADING?r.confirm(e.options.dictCancelUploadConfirmation,(function(){return e.removeFile(t)})):e.options.dictRemoveFileConfirmation?r.confirm(e.options.dictRemoveFileConfirmation,(function(){return e.removeFile(t)})):e.removeFile(t)},c=0,u=u=t.previewElement.querySelectorAll("[data-dz-remove]");!(c>=u.length);)u[c++].addEventListener("click",l)}},removedfile:function(t){return null!=t.previewElement&&null!=t.previewElement.parentNode&&t.previewElement.parentNode.removeChild(t.previewElement),this._updateMaxFilesReachedClass()},thumbnail:function(t,e){if(t.previewElement){t.previewElement.classList.remove("dz-file-preview");for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-thumbnail]");!(n>=i.length);){var o=i[n++];o.alt=t.name,o.src=e}return setTimeout((function(){return t.previewElement.classList.add("dz-image-preview")}),1)}},error:function(t,e){if(t.previewElement){t.previewElement.classList.add("dz-error"),"String"!=typeof e&&e.error&&(e=e.error);for(var n=0,i=i=t.previewElement.querySelectorAll("[data-dz-errormessage]");!(n>=i.length);)i[n++].textContent=e}},errormultiple:function(){},processing:function(t){if(t.previewElement&&(t.previewElement.classList.add("dz-processing"),t._removeLink))return t._removeLink.innerHTML=this.options.dictCancelUpload},processingmultiple:function(){},uploadprogress:function(t,e,n){if(t.previewElement)for(var i=0,o=o=t.previewElement.querySelectorAll("[data-dz-uploadprogress]");!(i>=o.length);){var r=o[i++];"PROGRESS"===r.nodeName?r.value=e:r.style.width=e+"%"}},totaluploadprogress:function(){},sending:function(){},sendingmultiple:function(){},success:function(t){if(t.previewElement)return t.previewElement.classList.add("dz-success")},successmultiple:function(){}
2,canceled:function(t){return this.emit("error",t,this.options.dictUploadCanceled)},canceledmultiple:function(){},complete:function(t){if(t._removeLink&&(t._removeLink.innerHTML=this.options.dictRemoveFile),t.previewElement)return t.previewElement.classList.add("dz-complete")},completemultiple:function(){},maxfilesexceeded:function(){},maxfilesreached:function(){},queuecomplete:function(){},addedfiles:function(){}},this.prototype._thumbnailQueue=[],this.prototype._processingThumbnail=!1}},{key:"extend",value:function(t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];for(var o=0,r=r=n;!(o>=r.length);){var a=r[o++];for(var s in a){var l=a[s];t[s]=l}}return t}}]),e(r,[{key:"getAcceptedFiles",value:function(){return this.files.filter((function(t){return t.accepted})).map((function(t){return t}))}},{key:"getRejectedFiles",value:function(){return this.files.filter((function(t){return!t.accepted})).map((function(t){return t}))}},{key:"getFilesWithStatus",value:function(t){return this.files.filter((function(e){return e.status===t})).map((function(t){return t}))}},{key:"getQueuedFiles",value:function(){return this.getFilesWithStatus(r.QUEUED)}},{key:"getUploadingFiles",value:function(){return this.getFilesWithStatus(r.UPLOADING)}},{key:"getAddedFiles",value:function(){return this.getFilesWithStatus(r.ADDED)}},{key:"getActiveFiles",value:function(){return this.files.filter((function(t){return t.status===r.UPLOADING||t.status===r.QUEUED})).map((function(t){return t}))}},{key:"init",value:function(){var t=this;"form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".dz-message")&&this.element.appendChild(r.createElement('<div class="dz-default dz-message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.clickableElements.length&&function e(){return t.hiddenFileInput&&t.hiddenFileInput.parentNode.removeChild(t.hiddenFileInput),t.hiddenFileInput=document.createElement("input"),t.hiddenFileInput.setAttribute("type","file"),(null===t.options.maxFiles||t.options.maxFiles>1)&&t.hiddenFileInput.setAttribute("multiple","multiple"),t.hiddenFileInput.className="dz-hidden-input",null!==t.options.acceptedFiles&&t.hiddenFileInput.setAttribute("accept",t.options.acceptedFiles),null!==t.options.capture&&t.hiddenFileInput.setAttribute("capture",t.options.capture),t.hiddenFileInput.style.visibility="hidden",t.hiddenFileInput.style.position="absolute",t.hiddenFileInput.style.top="0",t.hiddenFileInput.style.left="0",t.hiddenFileInput.style.height="0",t.hiddenFileInput.style.width="0",r.getElement(t.options.hiddenInputContainer,"hiddenInputContainer").appendChild(t.hiddenFileInput),t.hiddenFileInput.addEventListener("change",(function(){var n=t.hiddenFileInput.files;if(n.length)for(var i=0,o=o=n;!(i>=o.length);){var r=o[i++];t.addFile(r)}return t.emit("addedfiles",n),e()}))}(),this.URL=null!==window.URL?window.URL:window.webkitURL;for(var e=0,n=n=this.events;!(e>=n.length);){var i=n[e++];this.on(i,this.options[i])}this.on("uploadprogress",(function(){return t.updateTotalUploadProgress()})),this.on("removedfile",(function(){return t.updateTotalUploadProgress()})),this.on("canceled",(function(e){return t.emit("complete",e)})),this.on("complete",(function(e){if(0===t.getAddedFiles().length&&0===t.getUploadingFiles().length&&0===t.getQueuedFiles().length)return setTimeout((function(){return t.emit("queuecomplete")}),0)}));var o=function(t){return t.stopPropagation(),t.preventDefault?t.preventDefault():t.returnValue=!1};return this.listeners=[{element:this.element,events:{dragstart:function(e){return t.emit("dragstart",e)},dragenter:function(e){return o(e),t.emit("dragenter",e)},dragover:function(e){var n=void 0;try{n=e.dataTransfer.effectAllowed}catch(t){}return e.dataTransfer.dropEffect="move"===n||"linkMove"===n?"move":"copy",o(e),t.emit("dragover",e)},dragleave:function(e){return t.emit("dragleave",e)},drop:function(e){return o(e),t.drop(e)},dragend:function(e){return t.emit("dragend",e)}}}
2],this.clickableElements.forEach((function(e){return t.listeners.push({element:e,events:{click:function(n){return(e!==t.element||n.target===t.element||r.elementInside(n.target,t.element.querySelector(".dz-message")))&&t.hiddenFileInput.click(),!0}}})})),this.enable(),this.options.init.call(this)}},{key:"destroy",value:function(){return this.disable(),this.removeAllFiles(!0),(null!=this.hiddenFileInput?this.hiddenFileInput.parentNode:void 0)&&(this.hiddenFileInput.parentNode.removeChild(this.hiddenFileInput),this.hiddenFileInput=null),delete this.element.dropzone,r.instances.splice(r.instances.indexOf(this),1)}},{key:"updateTotalUploadProgress",value:function(){var t=void 0,e=0,n=0;if(this.getActiveFiles().length){for(var i=0,o=o=this.getActiveFiles();!(i>=o.length);){var r=o[i++];e+=r.upload.bytesSent,n+=r.upload.total}t=100*e/n}else t=100;return this.emit("totaluploadprogress",t,n,e)}},{key:"_getParamName",value:function(t){return"function"==typeof this.options.paramName?this.options.paramName(t):this.options.paramName+(this.options.uploadMultiple?"["+t+"]":"")}},{key:"_renameFile",value:function(t){return"function"!=typeof this.options.renameFile?t.name:this.options.renameFile(t)}},{key:"getFallbackForm",value:function(){var t,e=void 0;if(t=this.getExistingFallback())return t;var n='<div class="dz-fallback">';this.options.dictFallbackText&&(n+="<p>"+this.options.dictFallbackText+"</p>"),n+='<input type="file" name="'+this._getParamName(0)+'" '+(this.options.uploadMultiple?'multiple="multiple"':void 0)+' /><input type="submit" value="Upload!"></div>';var i=r.createElement(n);return"FORM"!==this.element.tagName?(e=r.createElement('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>')).appendChild(i):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=e?e:i}},{key:"getExistingFallback",value:function(){for(var t=function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];if(/(^| )fallback($| )/.test(i.className))return i}},e=["div","form"],n=0;n<e.length;n++){var i,o=e[n];if(i=t(this.element.getElementsByTagName(o)))return i}}},{key:"setupEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.addEventListener(n,i,!1))}return e}()}))}},{key:"removeEventListeners",value:function(){return this.listeners.map((function(t){return function(){var e=[];for(var n in t.events){var i=t.events[n];e.push(t.element.removeEventListener(n,i,!1))}return e}()}))}},{key:"disable",value:function(){var t=this;return this.clickableElements.forEach((function(t){return t.classList.remove("dz-clickable")})),this.removeEventListeners(),this.disabled=!0,this.files.map((function(e){return t.cancelUpload(e)}))}},{key:"enable",value:function(){return delete this.disabled,this.clickableElements.forEach((function(t){return t.classList.add("dz-clickable")})),this.setupEventListeners()}},{key:"filesize",value:function(t){var e=0,n="b";if(t>0){for(var i=["tb","gb","mb","kb","b"],o=0;o<i.length;o++){var r=i[o];if(t>=Math.pow(this.options.filesizeBase,4-o)/10){e=t/Math.pow(this.options.filesizeBase,4-o),n=r;break}}e=Math.round(10*e)/10}return"<strong>"+e+"</strong> "+this.options.dictFileSizeUnits[n]}},{key:"_updateMaxFilesReachedClass",value:function(){return null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(this.getAcceptedFiles().length===this.options.maxFiles&&this.emit("maxfilesreached",this.files),this.element.classList.add("dz-max-files-reached")):this.element.classList.remove("dz-max-files-reached")}},{key:"drop",value:function(t){if(t.dataTransfer){this.emit("drop",t);for(var e=[],n=0;n<t.dataTransfer.files.length;n++)e[n]=t.dataTransfer.files[n];if(this.emit("addedfiles",e),e.length){var i=t.dataTransfer.items;i&&i.length&&null!=i[0].webkitGetAsEntry?this._addFilesFromItems(i):this.handleFiles(e)}}}},{key:"paste",value:function(t){if(null!=(n=function(t){return t.items},null!=(e=null!=t?t.clipboardData:void 0)?n(e):void 0)){var e,n;
2this.emit("paste",t);var i=t.clipboardData.items;return i.length?this._addFilesFromItems(i):void 0}}},{key:"handleFiles",value:function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];this.addFile(i)}}},{key:"_addFilesFromItems",value:function(t){var e=this;return function(){for(var n=[],i=0,o=o=t;!(i>=o.length);){var r,a=o[i++];null!=a.webkitGetAsEntry&&(r=a.webkitGetAsEntry())?r.isFile?n.push(e.addFile(a.getAsFile())):r.isDirectory?n.push(e._addFilesFromDirectory(r,r.name)):n.push(void 0):null==a.getAsFile||null!=a.kind&&"file"!==a.kind?n.push(void 0):n.push(e.addFile(a.getAsFile()))}return n}()}},{key:"_addFilesFromDirectory",value:function(t,e){var n=this,i=t.createReader(),o=function(t){return n="log",i=function(e){return e.log(t)},null!=(e=console)&&"function"==typeof e[n]?i(e,n):void 0;var e,n,i};return function t(){return i.readEntries((function(i){if(i.length>0){for(var o=0,r=r=i;!(o>=r.length);){var a=r[o++];a.isFile?a.file((function(t){if(!n.options.ignoreHiddenFiles||"."!==t.name.substring(0,1))return t.fullPath=e+"/"+t.name,n.addFile(t)})):a.isDirectory&&n._addFilesFromDirectory(a,e+"/"+a.name)}t()}return null}),o)}()}},{key:"accept",value:function(t,e){return this.options.maxFilesize&&t.size>1024*this.options.maxFilesize*1024?e(this.options.dictFileTooBig.replace("{{filesize}}",Math.round(t.size/1024/10.24)/100).replace("{{maxFilesize}}",this.options.maxFilesize)):r.isValidFile(t,this.options.acceptedFiles)?null!=this.options.maxFiles&&this.getAcceptedFiles().length>=this.options.maxFiles?(e(this.options.dictMaxFilesExceeded.replace("{{maxFiles}}",this.options.maxFiles)),this.emit("maxfilesexceeded",t)):this.options.accept.call(this,t,e):e(this.options.dictInvalidFileType)}},{key:"addFile",value:function(t){var e=this;return t.upload={uuid:r.uuidv4(),progress:0,total:t.size,bytesSent:0,filename:this._renameFile(t),chunked:this.options.chunking&&(this.options.forceChunking||t.size>this.options.chunkSize),totalChunkCount:Math.ceil(t.size/this.options.chunkSize)},this.files.push(t),t.status=r.ADDED,this.emit("addedfile",t),this._enqueueThumbnail(t),this.accept(t,(function(n){return n?(t.accepted=!1,e._errorProcessing([t],n)):(t.accepted=!0,e.options.autoQueue&&e.enqueueFile(t)),e._updateMaxFilesReachedClass()}))}},{key:"enqueueFiles",value:function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];this.enqueueFile(i)}return null}},{key:"enqueueFile",value:function(t){var e=this;if(t.status!==r.ADDED||!0!==t.accepted)throw new Error("This file can't be queued because it has already been processed or was rejected.");if(t.status=r.QUEUED,this.options.autoProcessQueue)return setTimeout((function(){return e.processQueue()}),0)}},{key:"_enqueueThumbnail",value:function(t){var e=this;if(this.options.createImageThumbnails&&t.type.match(/image.*/)&&t.size<=1024*this.options.maxThumbnailFilesize*1024)return this._thumbnailQueue.push(t),setTimeout((function(){return e._processThumbnailQueue()}),0)}},{key:"_processThumbnailQueue",value:function(){var t=this;if(!this._processingThumbnail&&0!==this._thumbnailQueue.length){this._processingThumbnail=!0;var e=this._thumbnailQueue.shift();return this.createThumbnail(e,this.options.thumbnailWidth,this.options.thumbnailHeight,this.options.thumbnailMethod,!0,(function(n){return t.emit("thumbnail",e,n),t._processingThumbnail=!1,t._processThumbnailQueue()}))}}},{key:"removeFile",value:function(t){if(t.status===r.UPLOADING&&this.cancelUpload(t),this.files=a(this.files,t),this.emit("removedfile",t),0===this.files.length)return this.emit("reset")}},{key:"removeAllFiles",value:function(t){null==t&&(t=!1);for(var e=0,n=n=this.files.slice();!(e>=n.length);){var i=n[e++];(i.status!==r.UPLOADING||t)&&this.removeFile(i)}return null}},{key:"resizeImage",value:function(t,e,n,i,o){var a=this;return this.createThumbnail(t,e,n,i,!0,(function(e,n){if(null==n)return o(t);var i=a.options.resizeMimeType;null==i&&(i=t.type);var s=n.toDataURL(i,a.options.resizeQuality);return"image/jpeg"!==i&&"image/jpg"!==i||(s=c.restore(t.dataURL,s)),o(r.dataURItoBlob(s))}))}},{key:"createThumbnail",value:function(t,e,n,i,o,r){var a=this,s=new FileReader;return s.onload=function(){if(t.dataURL=s.result,"image/svg+xml"!==t.type)return a.createThumbnailFromUrl(t,e,n,i,o,r);null!=r&&r(s.result)},s.readAsDataURL(t)}},{key:"createThumbnailFromUrl",value:function(t,e,n,i,o,r,a){var s=this,c=document.createElement("img");return a&&(c.crossOrigin=a),c.onload=function(){var a=function(t){return t(1)};return"undefined"!=typeof EXIF&&null!==EXIF&&o&&(a=function(t){return EXIF.getData(c,(function(){return t(EXIF.getTag(this,"Orientation"))}))}),a((function(o){t.width=c.width,t.height=c.height;
vendor: 4,621 bytes, line 2
2var a=s.options.resize.call(s,t,e,n,i),u=document.createElement("canvas"),d=u.getContext("2d");switch(u.width=a.trgWidth,u.height=a.trgHeight,o>4&&(u.width=a.trgHeight,u.height=a.trgWidth),o){case 2:d.translate(u.width,0),d.scale(-1,1);break;case 3:d.translate(u.width,u.height),d.rotate(Math.PI);break;case 4:d.translate(0,u.height),d.scale(1,-1);break;case 5:d.rotate(.5*Math.PI),d.scale(1,-1);break;case 6:d.rotate(.5*Math.PI),d.translate(0,-u.width);break;case 7:d.rotate(.5*Math.PI),d.translate(u.height,-u.width),d.scale(-1,1);break;case 8:d.rotate(-.5*Math.PI),d.translate(-u.height,0)}l(d,c,null!=a.srcX?a.srcX:0,null!=a.srcY?a.srcY:0,a.srcWidth,a.srcHeight,null!=a.trgX?a.trgX:0,null!=a.trgY?a.trgY:0,a.trgWidth,a.trgHeight);var h=u.toDataURL("image/png");if(null!=r)return r(h,u)}))},null!=r&&(c.onerror=r),c.src=t.dataURL}},{key:"processQueue",value:function(){var t=this.options.parallelUploads,e=this.getUploadingFiles().length,n=e;if(!(e>=t)){var i=this.getQueuedFiles();if(i.length>0){if(this.options.uploadMultiple)return this.processFiles(i.slice(0,t-e));for(;n<t;){if(!i.length)return;this.processFile(i.shift()),n++}}}}},{key:"processFile",value:function(t){return this.processFiles([t])}},{key:"processFiles",value:function(t){for(var e=0,n=n=t;!(e>=n.length);){var i=n[e++];i.processing=!0,i.status=r.UPLOADING,this.emit("processing",i)}return this.options.uploadMultiple&&this.emit("processingmultiple",t),this.uploadFiles(t)}},{key:"_getFilesWithXhr",value:function(t){return this.files.filter((function(e){return e.xhr===t})).map((function(t){return t}))}},{key:"cancelUpload",value:function(t){if(t.status===r.UPLOADING){for(var e=this._getFilesWithXhr(t.xhr),n=0,i=i=e;!(n>=i.length);)i[n++].status=r.CANCELED;void 0!==t.xhr&&t.xhr.abort();for(var o=0,a=a=e;!(o>=a.length);){var s=a[o++];this.emit("canceled",s)}this.options.uploadMultiple&&this.emit("canceledmultiple",e)}else t.status!==r.ADDED&&t.status!==r.QUEUED||(t.status=r.CANCELED,this.emit("canceled",t),this.options.uploadMultiple&&this.emit("canceledmultiple",[t]));if(this.options.autoProcessQueue)return this.processQueue()}},{key:"resolveOption",value:function(t){if("function"==typeof t){for(var e=arguments.length,n=Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];return t.apply(this,n)}return t}},{key:"uploadFile",value:function(t){return this.uploadFiles([t])}},{key:"uploadFiles",value:function(t){var e=this;this._transformFiles(t,(function(n){if(t[0].upload.chunked){var i=t[0],o=n[0];i.upload.chunks=[];var a=function(){for(var n=0;void 0!==i.upload.chunks[n];)n++;if(!(n>=i.upload.totalChunkCount)){var a=n*e.options.chunkSize,s=Math.min(a+e.options.chunkSize,i.size),l={name:e._getParamName(0),data:o.webkitSlice?o.webkitSlice(a,s):o.slice(a,s),filename:i.upload.filename,chunkIndex:n};i.upload.chunks[n]={file:i,index:n,dataBlock:l,status:r.UPLOADING,progress:0,retries:0},e._uploadData(t,[l])}};if(i.upload.finishedChunkUpload=function(n){var o=!0;n.status=r.SUCCESS,n.dataBlock=null,n.xhr=null;for(var s=0;s<i.upload.totalChunkCount;s++){if(void 0===i.upload.chunks[s])return a();i.upload.chunks[s].status!==r.SUCCESS&&(o=!1)}o&&e.options.chunksUploaded(i,(function(){e._finished(t,"",null)}))},e.options.parallelChunkUploads)for(var s=0;s<i.upload.totalChunkCount;s++)a();else a()}else{for(var l=[],c=0;c<t.length;c++)l[c]={name:e._getParamName(c),data:n[c],filename:t[c].upload.filename};e._uploadData(t,l)}}))}},{key:"_getChunk",value:function(t,e){for(var n=0;n<t.upload.totalChunkCount;n++)if(void 0!==t.upload.chunks[n]&&t.upload.chunks[n].xhr===e)return t.upload.chunks[n]}},{key:"_uploadData",value:function(t,e){for(var n=this,i=new XMLHttpRequest,o=0,a=a=t;!(o>=a.length);)a[o++].xhr=i;t[0].upload.chunked&&(t[0].upload.chunks[e[0].chunkIndex].xhr=i);var s=this.resolveOption(this.options.method,t),l=this.resolveOption(this.options.url,t);i.open(s,l,!0),i.timeout=this.resolveOption(this.options.timeout,t),i.withCredentials=!!this.options.withCredentials,i.onload=function(e){n._finishedUploading(t,i,e)},i.onerror=function(){n._handleUploadError(t,i)},(null!=i.upload?i.upload:i).onprogress=function(e){return n._updateFilesUploadProgress(t,i,e)};var c={Accept:"application/json","Cache-Control":"no-cache","X-Requested-With":"XMLHttpRequest"};for(var u in this.options.headers&&r.extend(c,this.options.headers),c){var d=c[u];d&&i.setRequestHeader(u,d)}var h=new FormData;if(this.options.params){var f=this.options.params;for(var p in"function"==typeof f&&(f=f.call(this,t,i,t[0].upload.chunked?this._getChunk(t[0],i):null)),f){var m=f[p];h.append(p,m)}}for(var g=0,v=v=t;!(g>=v.length);){var k=v[g++];
2this.emit("sending",k,i,h)}this.options.uploadMultiple&&this.emit("sendingmultiple",t,i,h),this._addFormElementData(h);for(var b=0;b<e.length;b++){var y=e[b];h.append(y.name,y.data,y.filename)}this.submitRequest(i,h,t)}},{key:"_transformFiles",value:function(t,e){for(var n=this,i=[],o=0,r=function(r){n.options.transformFile.call(n,t[r],(function(n){i[r]=n,++o===t.length&&e(i)}))},a=0;a<t.length;a++)r(a)}},{key:"_addFormElementData",value:function(t){if("FORM"===this.element.tagName)for(var e=0,n=n=this.element.querySelectorAll("input, textarea, select, button");!(e>=n.length);){var i=n[e++],o=i.getAttribute("name"),r=i.getAttribute("type");if(r&&(r=r.toLowerCase()),null!=o)if("SELECT"===i.tagName&&i.hasAttribute("multiple"))for(var a=0,s=s=i.options;!(a>=s.length);){var l=s[a++];l.selected&&t.append(o,l.value)}else(!r||"checkbox"!==r&&"radio"!==r||i.checked)&&t.append(o,i.value)}}},{key:"_updateFilesUploadProgress",value:function(t,e,n){var i=void 0;if(void 0!==n){if(i=100*n.loaded/n.total,t[0].upload.chunked){var o=t[0],r=this._getChunk(o,e);r.progress=i,r.total=n.total,r.bytesSent=n.loaded,o.upload.progress=0,o.upload.total=0,o.upload.bytesSent=0;for(var a=0;a<o.upload.totalChunkCount;a++)void 0!==o.upload.chunks[a]&&void 0!==o.upload.chunks[a].progress&&(o.upload.progress+=o.upload.chunks[a].progress,o.upload.total+=o.upload.chunks[a].total,o.upload.bytesSent+=o.upload.chunks[a].bytesSent);o.upload.progress=o.upload.progress/o.upload.totalChunkCount}else for(var s=0,l=l=t;!(s>=l.length);){var c=l[s++];c.upload.progress=i,c.upload.total=n.total,c.upload.bytesSent=n.loaded}for(var u=0,d=d=t;!(u>=d.length);){var h=d[u++];this.emit("uploadprogress",h,h.upload.progress,h.upload.bytesSent)}}else{var f=!0;i=100;for(var p=0,m=m=t;!(p>=m.length);){var g=m[p++];
vendor: 1,450 bytes, line 2
2100===g.upload.progress&&g.upload.bytesSent===g.upload.total||(f=!1),g.upload.progress=i,g.upload.bytesSent=g.upload.total}if(f)return;for(var v=0,k=k=t;!(v>=k.length);){var b=k[v++];this.emit("uploadprogress",b,i,b.upload.bytesSent)}}}},{key:"_finishedUploading",value:function(t,e,n){var i=void 0;if(t[0].status!==r.CANCELED&&4===e.readyState){if("arraybuffer"!==e.responseType&&"blob"!==e.responseType&&(i=e.responseText,e.getResponseHeader("content-type")&&~e.getResponseHeader("content-type").indexOf("application/json")))try{i=JSON.parse(i)}catch(t){n=t,i="Invalid JSON response from server."}this._updateFilesUploadProgress(t),200<=e.status&&e.status<300?t[0].upload.chunked?t[0].upload.finishedChunkUpload(this._getChunk(t[0],e)):this._finished(t,i,n):this._handleUploadError(t,e,i)}}},{key:"_handleUploadError",value:function(t,e,n){if(t[0].status!==r.CANCELED){if(t[0].upload.chunked&&this.options.retryChunks){var i=this._getChunk(t[0],e);if(i.retries++<this.options.retryChunksLimit)return void this._uploadData(t,[i.dataBlock]);console.warn("Retried this chunk too often. Giving up.")}for(var o=0,a=a=t;!(o>=a.length);)a[o++],this._errorProcessing(t,n||this.options.dictResponseError.replace("{{statusCode}}",e.status),e)}}},{key:"submitRequest",value:function(t,e,n){t.send(e)}},{key:"_finished",value:function(t,e,n){for(var i=0,o=o=t;!(i>=o.length);){var a=o[i++];a.status=r.SUCCESS,this.emit("success",a,e,n),this.emit("complete",a)}
2if(this.options.uploadMultiple&&(this.emit("successmultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}},{key:"_errorProcessing",value:function(t,e,n){for(var i=0,o=o=t;!(i>=o.length);){var a=o[i++];a.status=r.ERROR,this.emit("error",a,e,n),this.emit("complete",a)}if(this.options.uploadMultiple&&(this.emit("errormultiple",t,e,n),this.emit("completemultiple",t)),this.options.autoProcessQueue)return this.processQueue()}}],[{key:"uuidv4",value:function(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(function(t){var e=16*Math.random()|0;return("x"===t?e:3&e|8).toString(16)}))}}]),r}();r.initClass(),r.version="5.5.1",r.options={},r.optionsForElement=function(t){return t.getAttribute("id")?r.options[s(t.getAttribute("id"))]:void 0},r.instances=[],r.forElement=function(t){if("string"==typeof t&&(t=document.querySelector(t)),null==(null!=t?t.dropzone:void 0))throw new Error("No Dropzone found for given element. This is probably because you're trying to access it before Dropzone had the time to initialize. Use the `init` option to setup any additional observers on your Dropzone.");return t.dropzone},r.autoDiscover=!0,r.discover=function(){var t=void 0;if(document.querySelectorAll)t=document.querySelectorAll(".dropzone");else{t=[];var e=function(e){return function(){for(var n=[],i=0,o=o=e;!(i>=o.length);){var r=o[i++];/(^| )dropzone($| )/.test(r.className)?n.push(t.push(r)):n.push(void 0)}return n}()};e(document.getElementsByTagName("div")),e(document.getElementsByTagName("form"))}return function(){for(var e=[],n=0,i=i=t;!(n>=i.length);){var o=i[n++];!1!==r.optionsForElement(o)?e.push(new r(o)):e.push(void 0)}return e}()},r.blacklistedBrowsers=[/opera.*(Macintosh|Windows Phone).*version\/12/i],r.isBrowserSupported=function(){var t=!0;if(window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(var e=0,n=n=r.blacklistedBrowsers;!(e>=n.length);)n[e++].test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t},r.dataURItoBlob=function(t){for(var e=atob(t.split(",")[1]),n=t.split(",")[0].split(":")[1].split(";")[0],i=new ArrayBuffer(e.length),o=new Uint8Array(i),r=0,a=e.length,s=0<=a;s?r<=a:r>=a;s?r++:r--)o[r]=e.charCodeAt(r);return new Blob([i],{type:n})};var a=function(t,e){return t.filter((function(t){return t!==e})).map((function(t){return t}))},s=function(t){return t.replace(/[\-_](\w)/g,(function(t){return t.charAt(1).toUpperCase()}))};r.createElement=function(t){var e=document.createElement("div");return e.innerHTML=t,e.childNodes[0]},r.elementInside=function(t,e){if(t===e)return!0;for(;t=t.parentNode;)if(t===e)return!0;return!1},r.getElement=function(t,e){var n=void 0;if("string"==typeof t?n=document.querySelector(t):null!=t.nodeType&&(n=t),null==n)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector or a plain HTML element.");return n},r.getElements=function(t,e){var n=void 0,i=void 0;if(t instanceof Array){i=[];try{for(var o=0,r=r=t;!(o>=r.length);)n=r[o++],i.push(this.getElement(n,e))}catch(t){i=null}}else if("string"==typeof t){i=[];for(var a=0,s=s=document.querySelectorAll(t);!(a>=s.length);)n=s[a++],i.push(n)}else null!=t.nodeType&&(i=[t]);if(null==i||!i.length)throw new Error("Invalid `"+e+"` option provided. Please provide a CSS selector, a plain HTML element or a list of those.");return i},r.confirm=function(t,e,n){return window.confirm(t)?e():null!=n?n():void 0},r.isValidFile=function(t,e){if(!e)return!0;e=e.split(",");for(var n=t.type,i=n.replace(/\/.*$/,""),o=0,r=r=e;!(o>=r.length);){var a=r[o++];if("."===(a=a.trim()).charAt(0)){if(-1!==t.name.toLowerCase().indexOf(a.toLowerCase(),t.name.length-a.length))return!0}else if(/\/\*$/.test(a)){if(i===a.replace(/\/.*$/,""))return!0}else if(n===a)return!0}return!1},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each((function(){return new r(this,t)}))}),null!==t?t.exports=r:window.Dropzone=r,r.ADDED="added",r.QUEUED="queued",r.ACCEPTED=r.QUEUED,r.UPLOADING="uploading",r.PROCESSING=r.UPLOADING,r.CANCELED="canceled",r.ERROR="error",r.SUCCESS="success";var l=function(t,e,n,i,o,r,a,s,l,c){var u=function(t){t.naturalWi
2dth;var e=t.naturalHeight,n=document.createElement("canvas");n.width=1,n.height=e;var i=n.getContext("2d");i.drawImage(t,0,0);for(var o=i.getImageData(1,0,1,e).data,r=0,a=e,s=e;s>r;)0===o[4*(s-1)+3]?a=s:r=s,s=a+r>>1;var l=s/e;return 0===l?1:l}(e);return t.drawImage(e,n,i,o,r,a,s,l,c/u)},c=function(){function t(){i(this,t)}return e(t,null,[{key:"initClass",value:function(){this.KEY_STR="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/="}},{key:"encode64",value:function(t){for(var e="",n=void 0,i=void 0,o="",r=void 0,a=void 0,s=void 0,l="",c=0;r=(n=t[c++])>>2,a=(3&n)<<4|(i=t[c++])>>4,s=(15&i)<<2|(o=t[c++])>>6,l=63&o,isNaN(i)?s=l=64:isNaN(o)&&(l=64),e=e+this.KEY_STR.charAt(r)+this.KEY_STR.charAt(a)+this.KEY_STR.charAt(s)+this.KEY_STR.charAt(l),n=i=o="",r=a=s=l="",c<t.length;);return e}},{key:"restore",value:function(t,e){if(!t.match("data:image/jpeg;base64,"))return e;var n=this.decode64(t.replace("data:image/jpeg;base64,","")),i=this.slice2Segments(n),o=this.exifManipulation(e,i);return"data:image/jpeg;base64,"+this.encode64(o)}},{key:"exifManipulation",value:function(t,e){var n=this.getExifArray(e),i=this.insertExif(t,n);return new Uint8Array(i)}},{key:"getExifArray",value:function(t){for(var e=void 0,n=0;n<t.length;){if(255===(e=t[n])[0]&225===e[1])return e;n++}return[]}},{key:"insertExif",value:function(t,e){var n=t.replace("data:image/jpeg;base64,",""),i=this.decode64(n),o=i.indexOf(255,3),r=i.slice(0,o),a=i.slice(o),s=r;return(s=s.concat(e)).concat(a)}},{key:"slice2Segments",value:function(t){for(var e=0,n=[];!(255===t[e]&218===t[e+1]);){if(255===t[e]&216===t[e+1])e+=2;else{var i=e+(256*t[e+2]+t[e+3])+2,o=t.slice(e,i);n.push(o),e=i}if(e>t.length)break}return n}},{key:"decode64",value:function(t){var e=void 0,n=void 0,i="",o=void 0,r=void 0,a="",s=0,l=[];for(/[^A-Za-z0-9\+\/\=]/g.exec(t)&&console.warn("There were invalid base64 characters in the input text.\nValid base64 characters are A-Z, a-z, 0-9, '+', '/',and '='\nExpect errors in decoding."),t=t.replace(/[^A-Za-z0-9\+\/\=]/g,"");e=this.KEY_STR.indexOf(t.charAt(s++))<<2|(o=this.KEY_STR.indexOf(t.charAt(s++)))>>4,n=(15&o)<<4|(r=this.KEY_STR.indexOf(t.charAt(s++)))>>2,i=(3&r)<<6|(a=this.KEY_STR.indexOf(t.charAt(s++))),l.push(e),64!==r&&l.push(n),64!==a&&l.push(i),e=n=i="",o=r=a="",s<t.length;);return l}}]),t}();c.initClass(),r._autoDiscoverFunction=function(){if(r.autoDiscover)return r.discover()},function(t,e){var n=!1,i=!0,o=t.document,r=o.documentElement,a=o.addEventListener?"addEventListener":"attachEvent",s=o.addEventListener?"removeEventListener":"detachEvent",l=o.addEventListener?"":"on",c=function i(r){if("readystatechange"!==r.type||"complete"===o.readyState)return("load"===r.type?t:o)[s](l+r.type,i,!1),!n&&(n=!0)?e.call(t,r.type||r):void 0};if("complete"!==o.readyState){if(o.createEventObject&&r.doScroll){try{i=!t.frameElement}catch(t){}i&&function t(){try{r.doScroll("left")}catch(e){return void setTimeout(t,50)}return c("poll")}()}o[a](l+"DOMContentLoaded",c,!1),o[a](l+"readystatechange",c,!1),t[a](l+"load",c,!1)}}(window,r._autoDiscoverFunction)}(t={exports:{}},t.exports),t.exports),n={getSignedURL(t,e){let n={filePath:t.name,contentType:t.type};return new Promise(((i,o)=>{var r=new FormData;let a=new XMLHttpRequest,s="function"==typeof e.signingURL?e.signingURL(t):e.signingURL;a.open("POST",s),a.onload=function(){200==a.status?i(JSON.parse(a.response)):o(a.statusText)},a.onerror=function(t){console.error("Network Error : Could not send request to AWS (Maybe CORS errors)"),o(t)},!0===e.withCredentials&&(a.withCredentials=!0),Object.entries(e.headers||{}).forEach((([t,e])=>{a.setRequestHeader(t,e)})),n=Object.assign(n,e.params||{}),Object.entries(n).forEach((([t,e])=>{r.append(t,e)})),a.send(r)}))},sendFile(t,e,n){var i=n?this.setResponseHandler:this.sendS3Handler;return this.getSignedURL(t,e).then((e=>i(e,t))).catch((t=>t))},setResponseHandler(t,e){e.s3Signature=t.signature,e.s3Url=t.postEndpoint},sendS3Handler(t,e){let n=new FormData,i=t.signature;
2return Object.keys(i).forEach((function(t){n.append(t,i[t])})),n.append("file",e),new Promise(((e,i)=>{let o=new XMLHttpRequest;o.open("POST",t.postEndpoint),o.onload=function(){if(201==o.status){var t=(new window.DOMParser).parseFromString(o.response,"text/xml").firstChild.children[0].innerHTML;e({success:!0,message:t})}else{var n=(new window.DOMParser).parseFromString(o.response,"text/xml").firstChild.children[0].innerHTML;i({success:!1,message:n+". Request is marked as resolved when returns as status 201"})}},o.onerror=function(t){var e=(new window.DOMParser).parseFromString(o.response,"text/xml").firstChild.children[1].innerHTML;i({success:!1,message:e})},o.send(n)}))}};return e.autoDiscover=!1,function(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(){e.call(this,c(this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}({render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{ref:"dropzoneElement",class:{"vue-dropzone dropzone":this.includeStyling},attrs:{id:this.id}},[this.useCustomSlot?e("div",{staticClass:"dz-message"},[this._t("default",[this._v("Drop files here to upload")])],2):this._e()])},staticRenderFns:[]},void 0,{props:{id:{type:String,required:!0,default:"dropzone"},options:{type:Object,required:!0},includeStyling:{type:Boolean,default:!0,required:!1},awss3:{type:Object,required:!1,default:null},destroyDropzone:{type:Boolean,default:!0,required:!1},duplicateCheck:{type:Boolean,default:!1,required:!1},useCustomSlot:{type:Boolean,default:!1,required:!1}},data:()=>({isS3:!1,isS3OverridesServerPropagation:!1,wasQueueAutoProcess:!0}),computed:{dropzoneSettings(){let t={thumbnailWidth:200,thumbnailHeight:200};return Object.keys(this.options).forEach((function(e){t[e]=this.options[e]}),this),null!==this.awss3&&(t.autoProcessQueue=!1,this.isS3=!0,this.isS3OverridesServerPropagation=!1===this.awss3.sendFileToServer,void 0!==this.options.autoProcessQueue&&(this.wasQueueAutoProcess=this.options.autoProcessQueue),this.isS3OverridesServerPropagation&&(t.url=t=>t[0].s3Url)),t}},mounted(){if(this.$isServer&&this.hasBeenMounted)return;this.hasBeenMounted=!0,this.dropzone=new e(this.$refs.dropzoneElement,this.dropzoneSettings);let t=this;this.dropzone.on("thumbnail",(function(e,n){t.$emit("vdropzone-thumbnail",e,n)})),this.dropzone.on("addedfile",(function(e){var n,i;if(t.duplicateCheck&&this.files.length)for(n=0,i=this.files.length;n<i-1;n++)this.files[n].name===e.name&&this.files[n].size===e.size&&this.files[n].lastModifiedDate.toString()===e.lastModifiedDate.toString()&&(this.removeFile(e),t.$emit("vdropzone-duplicate-file",e));t.$emit("vdropzone-file-added",e),t.isS3&&t.wasQueueAutoProcess&&!e.manuallyAdded&&t.getSignedAndUploadToS3(e)})),this.dropzone.on("addedfiles",(function(e){t.$emit("vdropzone-files-added",e)})),this.dropzone.on("removedfile",(function(e){t.$emit("vdropzone-removed-file",e),e.manuallyAdded&&null!==t.dropzone.options.maxFiles&&t.dropzone.options.maxFiles++})),this.dropzone.on("success",(function(e,n){if(t.$emit("vdropzone-success",e,n),t.isS3){if(t.isS3OverridesServerPropagation){var i=(new window.DOMParser).parseFromString(n,"text/xml").firstChild.children[0].innerHTML;t.$emit("vdropzone-s3-upload-success",i)}t.wasQueueAutoProcess&&t.setOption("autoProcessQueue",!1)}})),this.dropzone.on("successmultiple",(function(e,n){t.$emit("vdropzone-success-multiple",e,n)})),this.dropzone.on("error",(function(e,n,i){t.$emit("vdropzone-error",e,n,i),this.isS3&&t.$emit("vdropzone-s3-upload-error")})),this.dropzone.on("errormultiple",(function(e,n,i){t.$emit("vdropzone-error-multiple",e,n,i)})),this.dropzone.on("sending",(function(e,n,i){if(t.isS3)if(t.isS3OverridesServerPropagation){let t=e.s3Signature;Object.keys(t).forEach((function(e){i.append(e,t[e])}))}else i.append("s3ObjectLocation",e.s3ObjectLocation);t.$emit("vdropzone-sending",e,n,i)})),this.dropzone.on("sendingmultiple",(function(e,n,i){t.$emit("vdropzone-sending-multiple",e,n,i)})),this.dropzone.on("complete",(function(e){t.$emit("vdropzone-complete",e)})),this.dropzone.on("completemultiple",(function(e){t.$emit("vdropzone-complete-multiple",e)})),this.dropzone.on("canceled",(function(e){t.$emit("vdropzone-canceled",e)})),this.dropzone.on("canceledmultiple",(function(e){t.$emit("vdropzone-canceled-multiple",e)})),this.dropzone.on("maxfilesreached",(function(e){t.$emit("vdropzone-max-files-reached",e)})),this.dropzone.on("maxfilesexceeded",(function(e){t.$emit("vdropzone-max-files-exceeded",e)})),this.dropzone.on("processing",(function(e){t.$emit("vdropzone-processing",e)})),this.dropzone.on("processingmultiple",(function(e){t.$emit("vdropzone-processing-multiple",e)})),this.dropzone.on("uploadprogress",(function(e,n,i){t.$emit("vdropzone-upload-progress",e,n,i)})),this.dropzone.on("totaluploadprogress",(function(e,n,i){t.$emit("vdropzone-total-upload-progress",e,n,i)})),this.dropzone.on("reset",(function(){t.$emit("vdropzone-reset")})),this.dropzone.on("queuecomplete",(function(){t.$emit("vdropzone-queue-complete")}
2)),this.dropzone.on("drop",(function(e){t.$emit("vdropzone-drop",e)})),this.dropzone.on("dragstart",(function(e){t.$emit("vdropzone-drag-start",e)})),this.dropzone.on("dragend",(function(e){t.$emit("vdropzone-drag-end",e)})),this.dropzone.on("dragenter",(function(e){t.$emit("vdropzone-drag-enter",e)})),this.dropzone.on("dragover",(function(e){t.$emit("vdropzone-drag-over",e)})),this.dropzone.on("dragleave",(function(e){t.$emit("vdropzone-drag-leave",e)})),t.$emit("vdropzone-mounted")},beforeDestroy(){this.destroyDropzone&&this.dropzone.destroy()},methods:{manuallyAddFile:function(t,e){t.manuallyAdded=!0,this.dropzone.emit("addedfile",t);let n=!1;if((e.indexOf(".svg")>-1||e.indexOf(".png")>-1||e.indexOf(".jpg")>-1||e.indexOf(".jpeg")>-1||e.indexOf(".gif")>-1||e.indexOf(".webp")>-1)&&(n=!0),this.dropzone.options.createImageThumbnails&&n&&t.size<=1024*this.dropzone.options.maxThumbnailFilesize*1024){e&&this.dropzone.emit("thumbnail",t,e);for(var i=t.previewElement.querySelectorAll("[data-dz-thumbnail]"),o=0;o<i.length;o++)i[o].style.width=this.dropzoneSettings.thumbnailWidth+"px",i[o].style.height=this.dropzoneSettings.thumbnailHeight+"px",i[o].style["object-fit"]="contain"}this.dropzone.emit("complete",t),this.dropzone.options.maxFiles&&this.dropzone.options.maxFiles--,this.dropzone.files.push(t),this.$emit("vdropzone-file-added-manually",t)},setOption:function(t,e){this.dropzone.options[t]=e},removeAllFiles:function(t){this.dropzone.removeAllFiles(t)},processQueue:function(){let t=this.dropzone;this.isS3&&!this.wasQueueAutoProcess?this.getQueuedFiles().forEach((t=>{this.getSignedAndUploadToS3(t)})):this.dropzone.processQueue(),this.dropzone.on("success",(function(){t.options.autoProcessQueue=!0})),this.dropzone.on("queuecomplete",(function(){t.options.autoProcessQueue=!1}))},init:function(){return this.dropzone.init()},destroy:function(){return this.dropzone.destroy()},updateTotalUploadProgress:function(){return this.dropzone.updateTotalUploadProgress()},getFallbackForm:function(){return this.dropzone.getFallbackForm()},getExistingFallback:function(){return this.dropzone.getExistingFallback()},setupEventListeners:function(){return this.dropzone.setupEventListeners()},removeEventListeners:function(){return this.dropzone.removeEventListeners()},disable:function(){return this.dropzone.disable()},enable:function(){return this.dropzone.enable()},filesize:function(t){return this.dropzone.filesize(t)},accept:function(t,e){return this.dropzone.accept(t,e)},addFile:function(t){return this.dropzone.addFile(t)},removeFile:function(t){this.dropzone.removeFile(t)},getAcceptedFiles:function(){return this.dropzone.getAcceptedFiles()},getRejectedFiles:function(){return this.dropzone.getRejectedFiles()},getFilesWithStatus:function(){return this.dropzone.getFilesWithStatus()},getQueuedFiles:function(){return this.dropzone.getQueuedFiles()},getUploadingFiles:function(){return this.dropzone.getUploadingFiles()},getAddedFiles:function(){return this.dropzone.getAddedFiles()},getActiveFiles:function(){return this.dropzone.getActiveFiles()},getSignedAndUploadToS3(t){var e=n.sendFile(t,this.awss3,this.isS3OverridesServerPropagation);this.isS3OverridesServerPropagation?e.then((()=>{setTimeout((()=>this.dropzone.processFile(t)))})):e.then((e=>{e.success?(t.s3ObjectLocation=e.message,setTimeout((()=>this.dropzone.processFile(t))),this.$emit("vdropzone-s3-upload-success",e.message)):void 0!==e.message?this.$emit("vdropzone-s3-upload-error",e.message):this.$emit("vdropzone-s3-upload-error","Network Error : Could not send request to AWS. (Maybe CORS error)")})),e.catch((t=>{alert(t)}))},setAWSSigningURL(t){this.isS3&&(this.awss3.signingURL=t)}}},void 0,!1,void 0,void 0,void 0)}()},28592:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(45243),o=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e};function r(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}const a=r({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",[t._t("default")],2)},staticRenderFns:[]},undefined,{name:"LIcon",props:{iconUrl:{type:String,custom:!0,default:null},iconRetinaUrl:{type:String,custom:!0,default:null},iconSize:{type:[Object,Array],custom:!0,default:null},iconAnchor:{type:[Object,Array],custom:!0,default:null},popupAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},tooltipAnchor:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},shadowUrl:{type:String,custom:!0,default:null},shadowRetinaUrl:{type:String,custom:!0,default:null},shadowSize:{type:[Object,Array],custom:!0,default:null},shadowAnchor:{type:[Object,Array],custom:!0,default:null},bgPos:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},className:{type:String,custom:!0,default:""},options:{type:Object,custom:!0,default:function(){return{}}}},data:function(){return{parentContainer:null,observer:null,recreationNeeded:!1,swapHtmlNeeded:!1}},mounted:function(){var t=this;if(this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),!this.parentContainer)throw new Error("No parent container with mapObject found for LIcon");!function(t,e,n,o){var r=function(o){var r,a="set"+((r=o)&&"function"==typeof r.charAt?r.charAt(0).toUpperCase()+r.slice(1):r),s=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);
2n[o].custom&&t[a]?t.$watch(o,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(o,(function(t,n){(0,i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(o,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)r(a)}(this,this.parentContainer.mapObject,this.$options.props),this.observer=new MutationObserver((function(){t.scheduleHtmlSwap()})),this.observer.observe(this.$el,{attributes:!0,childList:!0,characterData:!0,subtree:!0}),this.scheduleCreateIcon()},beforeDestroy:function(){this.parentContainer.mapObject&&this.parentContainer.mapObject.setIcon(this.parentContainer.$props.icon),this.observer.disconnect()},methods:{scheduleCreateIcon:function(){this.recreationNeeded=!0,this.$nextTick(this.createIcon)},scheduleHtmlSwap:function(){this.htmlSwapNeeded=!0,this.$nextTick(this.createIcon)},createIcon:function(){if(this.htmlSwapNeeded&&!this.recreationNeeded&&this.iconObject&&this.parentContainer.mapObject.getElement())return this.parentContainer.mapObject.getElement().innerHTML=this.$el.innerHTML,void(this.htmlSwapNeeded=!1);if(this.recreationNeeded){this.iconObject&&i.DomEvent.off(this.iconObject,this.$listeners);var t=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=o(n);t=o(t);var r=e.$options.props;for(var a in t){var s=r[a]?r[a].default&&"function"==typeof r[a].default?r[a].default.call():r[a].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[a]):s===t[a],i[a]&&!l?(console.warn(a+" props is overriding the value passed in the options props"),i[a]=t[a]):i[a]||(i[a]=t[a])}return i}({iconUrl:this.iconUrl,iconRetinaUrl:this.iconRetinaUrl,iconSize:this.iconSize,iconAnchor:this.iconAnchor,popupAnchor:this.popupAnchor,tooltipAnchor:this.tooltipAnchor,shadowUrl:this.shadowUrl,shadowRetinaUrl:this.shadowRetinaUrl,shadowSize:this.shadowSize,shadowAnchor:this.shadowAnchor,bgPos:this.bgPos,className:this.className,html:this.$el.innerHTML||this.html},this);t.html?this.iconObject=(0,i.divIcon)(t):this.iconObject=(0,i.icon)(t),i.DomEvent.on(this.iconObject,this.$listeners),this.parentContainer.mapObject.setIcon(this.iconObject),this.recreationNeeded=!1,this.htmlSwapNeeded=!1}},setIconUrl:function(){this.scheduleCreateIcon()},setIconRetinaUrl:function(){this.scheduleCreateIcon()},setIconSize:function(){this.scheduleCreateIcon()},setIconAnchor:function(){this.scheduleCreateIcon()},setPopupAnchor:function(){this.scheduleCreateIcon()},setTooltipAnchor:function(){this.scheduleCreateIcon()},setShadowUrl:function(){this.scheduleCreateIcon()},setShadowRetinaUrl:function(){this.scheduleCreateIcon()},setShadowAnchor:function(){this.scheduleCreateIcon()},setBgPos:function(){this.scheduleCreateIcon()},setClassName:function(){this.scheduleCreateIcon()},setHtml:function(){this.scheduleCreateIcon()}},render:function(){return null}},undefined,false,undefined,!1,void 0,void 0,void 0)},75352:(t,e,n)=>{"use strict";n.d(e,{Z:()=>d});var i=n(45243),o=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e},r={name:"LMap",mixins:[{props:{options:{type:Object,default:function(){return{}}}}}],props:{center:{type:[Object,Array],custom:!0,default:function(){return[0,0]}},bounds:{type:[Array,Object],custom:!0,default:null},maxBounds:{type:[Array,Object],default:null},zoom:{type:Number,custom:!0,default:0},minZoom:{type:Number,default:null},maxZoom:{type:Number,default:null},paddingBottomRight:{type:Array,custom:!0,default:null},paddingTopLeft:{type:Array,custom:!0,default:null},padding:{type:Array,custom:!0,default:null},worldCopyJump:{type:Boolean,default:!1},crs:{type:Object,custom:!0,default:function(){return i.CRS.EPSG3857}},maxBoundsViscosity:{type:Number,default:null},inertia:{type:Boolean,default:null},inertiaDeceleration:{type:Number,default:null},inertiaMaxSpeed:{type:Number,default:null},easeLinearity:{type:Number,default:null},zoomAnimation:{type:Boolean,default:null},zoomAnimationThreshold:{type:Number,default:null},fadeAnimation:{type:Boolean,default:null},markerZoomAnimation:{type:Boolean,default:null},noBlockingAnimations:{type:Boolean,default:!1}},data:function(){return{ready:!1,lastSetCenter:this.center?(0,i.latLng)(this.center):null,lastSetBounds:this.bounds?(0,i.latLngBounds)(this.bounds):null,layerControl:void 0,layersToAdd:[],layersInControl:[]}},computed:{fitBoundsOptions:function(){var t={animate:!this.noBlockingAnimations&&null};return this.padding?t.padding=this.padding:(this.paddingBottomRight&&(t.paddingBottomRight=this.paddingBottomRight),this.paddingTopLeft&&(t.paddingTopLeft=this.paddingTopLeft)),t}},beforeDestroy:function(){this.debouncedMoveEndHandler&&this.debouncedMoveEndHandler.cancel(),this.mapObject&&this.mapObject.remove()},mounted:function(){var t,e,n,r,a=this,s=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=o(n);t=o(t);var r=e.$options.props;for(var a in t){var s=r[a]?r[a].default&&"function"==typeof r[a].default?r[a].default.call():r[a].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[a]):s===t[a],i[a]&&!l?(console.warn(a+" props is overriding the value passed in the options props"),i[a]=t[a]):i[a]||(i[a]=t[a])}return i}({minZoom:this.minZoom,maxZoom:this.maxZoom,maxBounds:this.maxBounds,maxBoundsViscosity:this.maxBoundsViscosity,worldCopyJump:this.worldCopyJump,crs:this.crs,center:this.center,zoom:this.zoom,inertia:this.inertia,inertiaDeceleration:this.inertiaDeceleration,inertiaMaxSpeed:this.inertiaMaxSpeed,easeLinearity:this.easeLinearity,zoomAnimation:this.zoomAnimation,zoomAnimationThreshold:this.zoomAnimationThreshold,fadeAnimation:this.fadeAnimation,markerZoomAnimation:this.markerZoomAnimation},this);this.mapObject=(0,i.map)(this.$el,s),this.bounds&&this.fitBounds(this.bounds),this.debouncedMoveEndHandler=(t=this.moveEndHandler,e=100,r=function(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];var r=this;n&&clearTimeout(n),n=setTimeout((function(){t.apply(r,i),n=null}),e)},r.cancel=function(){n&&clearTimeout(n)},r),this.mapObject.on("moveend",this.debouncedMoveEndHandler),this.mapObject.on("overlayadd",this.overlayAddHandler),this.mapObject.on("overlayremove",this.overlayRemoveHandler),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,o){var r=function(o){var r,a="set"+((r=o)&&"function"==typeof r.charAt?r.charAt(0).toUpperCase()+r.slice(1):r),s=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);
2n[o].custom&&t[a]?t.$watch(o,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(o,(function(t,n){(0,i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(o,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)r(a)}(this,this.mapObject,this.$options.props),this.ready=!0,this.$emit("leaflet:load"),this.$nextTick((function(){a.$emit("ready",a.mapObject)}))},methods:{registerLayerControl:function(t){var e=this;this.layerControl=t,this.mapObject.addControl(t.mapObject),this.layersToAdd.forEach((function(t){e.layerControl.addLayer(t)})),this.layersToAdd=[]},addLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd.push(t):this.layersInControl.find((function(e){return e.mapObject._leaflet_id===t.mapObject._leaflet_id}))||(this.layerControl.addLayer(t),this.layersInControl.push(t)));e||!1===t.visible||this.mapObject.addLayer(t.mapObject)},hideLayer:function(t){this.mapObject.removeLayer(t.mapObject)},removeLayer:function(t,e){void 0!==t.layerType&&(void 0===this.layerControl?this.layersToAdd=this.layersToAdd.filter((function(e){return e.name!==t.name})):(this.layerControl.removeLayer(t),this.layersInControl=this.layersInControl.filter((function(e){return e.mapObject._leaflet_id!==t.mapObject._leaflet_id})))),e||this.mapObject.removeLayer(t.mapObject)},setZoom:function(t,e){null!=t&&(this.mapObject.setZoom(t,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView())},setCenter:function(t,e){if(null!=t){var n=(0,i.latLng)(t),o=this.lastSetCenter||this.mapObject.getCenter();o.lat===n.lat&&o.lng===n.lng||(this.lastSetCenter=n,this.mapObject.panTo(n,{animate:!this.noBlockingAnimations&&null}),this.cacheMapView(void 0,n))}},setBounds:function(t,e){if(t){var n=(0,i.latLngBounds)(t);if(n.isValid())!(this.lastSetBounds||this.mapObject.getBounds()).equals(n,0)&&(this.fitBounds(n),this.cacheMapView(n))}},setPaddingBottomRight:function(t,e){this.paddingBottomRight=t},setPaddingTopLeft:function(t,e){this.paddingTopLeft=t},setPadding:function(t,e){this.padding=t},setCrs:function(t,e){var n=this.mapObject,i=n.getBounds();n.options.crs=t,this.fitBounds(i,{animate:!1})},fitBounds:function(t,e){this.mapObject.fitBounds(t,Object.assign({},this.fitBoundsOptions,e))},moveEndHandler:function(){this.$emit("update:zoom",this.mapObject.getZoom());var t=this.mapObject.getCenter();this.$emit("update:center",t);var e=this.mapObject.getBounds();this.$emit("update:bounds",e)},overlayAddHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!0)},overlayRemoveHandler:function(t){var e=this.layersInControl.find((function(e){return e.name===t.name}));e&&e.updateVisibleProp(!1)},cacheMapView:function(t,e){this.lastSetBounds=t||this.mapObject.getBounds(),this.lastSetCenter=e||this.lastSetBounds.getCenter()}}};function a(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}var s,l="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());function c(t){return function(t,e){return function(t,e){var n=l?e.media||"default":t,i=u[n]||(u[n]={ids:new Set,styles:[]});if(!i.ids.has(t)){i.ids.add(t);var o=e.source;if(e.map&&(o+="\n/*# sourceURL="+e.map.sources[0]+" */",o+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e.map))))+" */"),i.element||(i.element=document.createElement("style"),i.element.type="text/css",e.media&&i.element.setAttribute("media",e.media),void 0===s&&(s=document.head||document.getElementsByTagName("head")[0]),s.appendChild(i.element)),"styleSheet"in i.element)i.styles.push(o),i.element.styleSheet.cssText=i.styles.filter(
2Boolean).join("\n");else{var r=i.ids.size-1,a=document.createTextNode(o),c=i.element.childNodes;c[r]&&i.element.removeChild(c[r]),c.length?i.element.insertBefore(a,c[r]):i.element.appendChild(a)}}}(t,e)}}var u={};const d=a({render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{staticClass:"vue2leaflet-map"},[t.ready?t._t("default"):t._e()],2)},staticRenderFns:[]},(function(t){t&&t("data-v-09f270aa_0",{source:".vue2leaflet-map{height:100%;width:100%}",map:void 0,media:void 0})}),r,undefined,false,undefined,!1,c,void 0,void 0)},48380:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(45243),o=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e};function r(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}const a=r({},undefined,{name:"LMarker",mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{pane:{type:String,default:"markerPane"},draggable:{type:Boolean,custom:!0,default:!1},latLng:{type:[Object,Array],custom:!0,default:null},icon:{type:[Object],custom:!1,default:function(){return new i.Icon.Default}},opacity:{type:Number,custom:!1,default:1},zIndexOffset:{type:Number,custom:!1,default:null}},data:function(){return{ready:!1}},beforeDestroy:function(){this.debouncedLatLngSync&&this.debouncedLatLngSync.cancel()},mounted:function(){var t,e,n,r,a=this,s=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=o(n);t=o(t);var r=e.$options.props;for(var a in t){var s=r[a]?r[a].default&&"function"==typeof r[a].default?r[a].default.call():r[a].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[a]):s===t[a],i[a]&&!l?(console.warn(a+" props is overriding the value passed in the options props"),i[a]=t[a]):i[a]||(i[a]=t[a])}return i}(Object.assign({},this.layerOptions,{icon:this.icon,zIndexOffset:this.zIndexOffset,draggable:this.draggable,opacity:this.opacity}),this);this.mapObject=(0,i.marker)(this.latLng,s),i.DomEvent.on(this.mapObject,this.$listeners),this.debouncedLatLngSync=(t=this.latLngSync,e=100,r=function(){for(var i=[],o=arguments.length;o--;)i[o]=arguments[o];var r=this;n&&clearTimeout(n),n=setTimeout((function(){t.apply(r,i),n=null}),e)},r.cancel=function(){n&&clearTimeout(n)},r),this.mapObject.on("move",this.debouncedLatLngSync),function(t,e,n,o){var r=function(o){var r,a="set"+((r=o)&&"function"==typeof r.charAt?r.charAt(0).toUpperCase()+r.slice(1):r),s=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);
2n[o].custom&&t[a]?t.$watch(o,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(o,(function(t,n){(0,i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(o,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)r(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.ready=!0,this.$nextTick((function(){a.$emit("ready",a.mapObject)}))},methods:{setDraggable:function(t,e){this.mapObject.dragging&&(t?this.mapObject.dragging.enable():this.mapObject.dragging.disable())},setLatLng:function(t){if(null!=t&&this.mapObject){var e=this.mapObject.getLatLng(),n=(0,i.latLng)(t);n.lat===e.lat&&n.lng===e.lng||this.mapObject.setLatLng(n)}},latLngSync:function(t){this.$emit("update:latLng",t.latlng),this.$emit("update:lat-lng",t.latlng)}},render:function(t){return this.ready&&this.$slots.default?t("div",{style:{display:"none"}},this.$slots.default):null}},undefined,undefined,undefined,!1,void 0,void 0,void 0)},77889:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(45243),o=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e};function r(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}const a=r({},undefined,{name:"LPopup",mixins:[{props:{content:{type:String,default:null,custom:!0}},mounted:function(){this.popperOptions={}},methods:{setContent:function(t){this.mapObject&&null!=t&&this.mapObject.setContent(t)}},render:function(t){return this.$slots.default?t("div",this.$slots.default):null}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{latLng:{type:[Object,Array],default:function(){return[]}}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=o(n);t=o(t);var r=e.$options.props;for(var a in t){var s=r[a]?r[a].default&&"function"==typeof r[a].default?r[a].default.call():r[a].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[a]):s===t[a],i[a]&&!l?(console.warn(a+" props is overriding the value passed in the options props"),i[a]=t[a]):i[a]||(i[a]=t[a])}return i}(this.popperOptions,this);this.mapObject=(0,i.popup)(e),void 0!==this.latLng&&this.mapObject.setLatLng(this.latLng),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,o){var r=function(o){var r,a="set"+((r=o)&&"function"==typeof r.charAt?r.charAt(0).toUpperCase()+r.slice(1):r),s=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);n[o].custom&&t[a]?t.$watch(o,(function(e,n){t[a](e,n)}),{deep:s}
2):"setOptions"===a?t.$watch(o,(function(t,n){(0,i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(o,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)r(a)}(this,this.mapObject,this.$options.props),this.mapObject.setContent(this.content||this.$el),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.mapObject.bindPopup(this.mapObject),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))},beforeDestroy:function(){this.parentContainer&&(this.parentContainer.unbindPopup?this.parentContainer.unbindPopup():this.parentContainer.mapObject&&this.parentContainer.mapObject.unbindPopup&&this.parentContainer.mapObject.unbindPopup())}},undefined,undefined,undefined,!1,void 0,void 0,void 0)},32727:(t,e,n)=>{"use strict";n.d(e,{Z:()=>a});var i=n(45243),o=function(t){var e={};for(var n in t){var i=t[n];null!=i&&(e[n]=i)}return e};function r(t,e,n,i,o,r,a,s,l,c){"boolean"!=typeof a&&(l=s,s=a,a=!1);var u,d="function"==typeof n?n.options:n;if(t&&t.render&&(d.render=t.render,d.staticRenderFns=t.staticRenderFns,d._compiled=!0,o&&(d.functional=!0)),i&&(d._scopeId=i),r?(u=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),e&&e.call(this,l(t)),t&&t._registeredComponents&&t._registeredComponents.add(r)},d._ssrRegister=u):e&&(u=a?function(t){e.call(this,c(t,this.$root.$options.shadowRoot))}:function(t){e.call(this,s(t))}),u)if(d.functional){var h=d.render;d.render=function(t,e){return u.call(e),h(t,e)}}else{var f=d.beforeCreate;d.beforeCreate=f?[].concat(f,u):[u]}return n}const a=r({render:function(){var t=this.$createElement;return(this._self._c||t)("div")},staticRenderFns:[]},undefined,{name:"LTileLayer",mixins:[{mixins:[{mixins:[{props:{pane:{type:String,default:"overlayPane"},attribution:{type:String,default:null,custom:!0},name:{type:String,custom:!0,default:void 0},layerType:{type:String,custom:!0,default:void 0},visible:{type:Boolean,custom:!0,default:!0}},mounted:function(){this.layerOptions={attribution:this.attribution,pane:this.pane}},beforeDestroy:function(){this.unbindPopup(),this.unbindTooltip(),this.parentContainer.removeLayer(this)},methods:{setAttribution:function(t,e){this.$parent.mapObject.attributionControl.removeAttribution(e).addAttribution(t)},setName:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setLayerType:function(){this.parentContainer.removeLayer(this),this.visible&&this.parentContainer.addLayer(this)},setVisible:function(t){this.mapObject&&(t?this.parentContainer.addLayer(this):this.parentContainer.hideLayer?this.parentContainer.hideLayer(this):this.parentContainer.removeLayer(this))},unbindTooltip:function(){var t=this.mapObject?this.mapObject.getTooltip():null;t&&t.unbindTooltip()},unbindPopup:function(){var t=this.mapObject?this.mapObject.getPopup():null;t&&t.unbindPopup()},updateVisibleProp:function(t){this.$emit("update:visible",t)}}}],props:{pane:{type:String,default:"tilePane"},opacity:{type:Number,custom:!1,default:1},zIndex:{type:Number,default:1},tileSize:{type:Number,default:256},noWrap:{type:Boolean,default:!1}},mounted:function(){this.gridLayerOptions=Object.assign({},this.layerOptions,{pane:this.pane,opacity:this.opacity,zIndex:this.zIndex,tileSize:this.tileSize,noWrap:this.noWrap})}}],props:{tms:{type:Boolean,default:!1},subdomains:{type:[String,Array],default:"abc",validator:function(t){return"string"==typeof t||!!Array.isArray(t)&&t.every((function(t){return"string"==typeof t}))}},detectRetina:{type:Boolean,default:!1}},mounted:function(){this.tileLayerOptions=Object.assign({},this.gridLayerOptions,{tms:this.tms,subdomains:this.subdomains,detectRetina:this.detectRetina})},render:function(){return null}},{props:{options:{type:Object,default:function(){return{}}}}}],props:{url:{type:String,default:null},tileLayerClass:{type:Function,default:i.tileLayer}},mounted:function(){var t=this,e=function(t,e){var n=e.options&&e.options.constructor===Object?e.options:{};t=t&&t.constructor===Object?t:{};var i=o(n);t=o(t);var r=e.$options.props;for(var a in t){var s=r[a]?r[a].default&&"function"==typeof r[a].default?r[a].default.call():r[a].default:Symbol("unique"),l=!1;l=Array.isArray(s)?JSON.stringify(s)===JSON.stringify(t[a]):s===t[a],i[a]&&!l?(console.warn(a+" props is overriding the value passed in the options props"),i[a]=t[a]):i[a]||(i[a]=t[a])}return i}(this.tileLayerOptions,this);this.mapObject=this.tileLayerClass(this.url,e),i.DomEvent.on(this.mapObject,this.$listeners),function(t,e,n,o){var r=function(o){var r,a="set"+((r=o)&&"function"==typeof r.charAt?r.charAt(0).toUpperCase()+r.slice(1):r),s=n[o].type===Object||n[o].type===Array||Array.isArray(n[o].type);
2n[o].custom&&t[a]?t.$watch(o,(function(e,n){t[a](e,n)}),{deep:s}):"setOptions"===a?t.$watch(o,(function(t,n){(0,i.setOptions)(e,t)}),{deep:s}):e[a]&&t.$watch(o,(function(t,n){e[a](t)}),{deep:s})};for(var a in n)r(a)}(this,this.mapObject,this.$options.props),this.parentContainer=function(t){for(var e=!1;t&&!e;)void 0===t.mapObject?t=t.$parent:e=!0;return t}(this.$parent),this.parentContainer.addLayer(this,!this.visible),this.$nextTick((function(){t.$emit("ready",t.mapObject)}))}},undefined,false,undefined,!1,void 0,void 0,void 0)}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.