| 123456 |
- /**
- * @license Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
- * For licensing, see LICENSE.md.
- */
- var _Mathpow=Math.pow,_NumberPOSITIVE_INFINITY=Number.POSITIVE_INFINITY,_Mathfloor=Math.floor,_StringfromCharCode=String.fromCharCode,_Mathmax=Math.max,_Mathmin=Math.min;(function(u,f){if('object'==typeof exports&&'object'==typeof module)module.exports=f();else if('function'==typeof define&&define.amd)define([],f);else{var h=f();for(var w in h)('object'==typeof exports?exports:u)[w]=h[w]}})(this,function(){return function(r){function u(h){if(f[h])return f[h].exports;var w=f[h]={i:h,l:!1,exports:{}};return r[h].call(w.exports,w,w.exports,u),w.l=!0,w.exports}var f={};return u.m=r,u.c=f,u.i=function(h){return h},u.d=function(h,w,C){u.o(h,w)||Object.defineProperty(h,w,{configurable:!1,enumerable:!0,get:C})},u.n=function(h){var w=h&&h.__esModule?function(){return h['default']}:function(){return h};return u.d(w,'a',w),w},u.o=function(h,w){return Object.prototype.hasOwnProperty.call(h,w)},u.p='',u(u.s=331)}([function(r,u){'use strict';class h extends Error{constructor(w,C){C&&(w+=' '+JSON.stringify(C)),super(w),this.name='CKEditorError',this.data=C}static isCKEditorError(w){return w instanceof h}}u.a=h},function(r,u,f){'use strict';var h=f(37),w=f(19),C=f(65),T=f(0),P=f(24);class E{constructor(S,O){if(!S.is('element')&&!S.is('documentFragment'))throw new T.a('model-position-root-invalid: Position root invalid.');if(!(O instanceof Array)||0===O.length)throw new T.a('model-position-path-incorrect: Position path must be an Array with at least one item.',{path:O});O=S.getPath().concat(O),S=S.root,this.root=S,this.path=O}get offset(){return f.i(w.a)(this.path)}set offset(S){this.path[this.path.length-1]=S}get parent(){let S=this.root;for(let O=0;O<this.path.length-1;O++)S=S.getChild(S.offsetToIndex(this.path[O]));return S}get index(){return this.parent.offsetToIndex(this.offset)}get textNode(){let S=this.parent.getChild(this.index);return S instanceof P.a&&S.startOffset<this.offset?S:null}get nodeAfter(){return null===this.textNode?this.parent.getChild(this.index):null}get nodeBefore(){return null===this.textNode?this.parent.getChild(this.index-1):null}get isAtStart(){return 0===this.offset}get isAtEnd(){return this.offset==this.parent.maxOffset}compareWith(S){if(this.root!=S.root)return'different';const O=f.i(C.a)(this.path,S.path);return'same'===O?'same':'prefix'===O?'before':'extension'===O?'after':this.path[O]<S.path[O]?'before':'after'}getLastMatchingPosition(S,O={}){O.startPosition=this;const R=new h.a(O);return R.skip(S),R.position}getParentPath(){return this.path.slice(0,-1)}getAncestors(){return this.parent.is('documentFragment')?[this.parent]:this.parent.getAncestors({includeNode:!0})}getCommonPath(S){if(this.root!=S.root)return[];let O=f.i(C.a)(this.path,S.path),R='string'==typeof O?_Mathmin(this.path.length,S.path.length):O;return this.path.slice(0,R)}getShiftedBy(S){let O=E.createFromPosition(this),R=O.offset+S;return O.offset=0>R?0:R,O}isAfter(S){return'after'==this.compareWith(S)}isBefore(S){return'before'==this.compareWith(S)}isEqual(S){return'same'==this.compareWith(S)}isTouching(S){let O=null,R=null,V=this.compareWith(S);switch(V){case'same':return!0;case'before':O=E.createFromPosition(this),R=E.createFromPosition(S);break;case'after':O=E.createFromPosition(S),R=E.createFromPosition(this);break;default:return!1;}for(let F=O.parent;O.path.length+R.path.length;){if(O.isEqual(R))return!0;if(O.path.length>R.path.length){if(O.offset!==F.maxOffset)return!1;O.path=O.path.slice(0,-1),F=F.parent,O.offset++}else{if(0!==R.offset)return!1;R.path=R.path.slice(0,-1)}}}_getTransformedByDeletion(S,O){let R=E.createFromPosition(this);if(this.root!=S.root)return R;if('same'==f.i(C.a)(S.getParentPath(),this.getParentPath())){if(S.offset<this.offset){if(S.offset+O>this.offset)return null;R.offset-=O}}else if('prefix'==f.i(C.a)(S.getParentPath(),this.getParentPath())){const V=S.path.length-1;if(S.offset<=this.path[V]){if(S.offset+O>this.path[V])return null;R.path[V]-=O}}return R}_getTransformedByInsertion(S,O,R){let V=E.createFromPosition(this);if(this.root!=S.root)return V;if('same'==f.i(C.a)(S.getParentPath(),this.getParentPath()))(S.offset<this.offset||S.offset==this.offset&&R)&&(V.offset+=O);else if('prefix'==f.i(C.a)(S.getParentPath(),this.getParentPath())){const F=S.path.length-1;S.offset<=this.path[F]&&(V.path[F]+=O)}return V}_getTransformedByMove(S,O,R,V,F){let I=this._getTransformedByDeletion(S,R);return O=O._getTransformedByDeletion(S,R),I=null===I||F&&I.isEqual(S)?this._getCombined(S,O):I._getTransformedByInsertion(O,R,V),I}_getCombined(S,O){const R=S.path.length-1;let V=E.createFromPosition(O);return V.offset=V.offset+this.path[R]-S.offset,V.path=V.path.concat(this.path.slice(R+1)),V}static createAt(S,O){if(S instanceof E)return this.createFromPosition(S);const R=S;if('end'==O)O=R.maxOffset;else{if('before'==O)return this.createBefore(R);if('after'==O)return this.createAfter(R);O||(O=0)}return this.createFromParentAndOffset(R,O)}static createAfter(S){if(!S.parent)throw new T.a('model-position-after-root: You can not make position after root.',{root:S});return this.createFromParentAndOffset(S.parent,S.endOffset)}static createBefore(S){if(!S.parent)throw new T.a('model-position-before-root: You can not make position before root.',{root:S});return this.createFromParentAndOffset(S.parent,S.startOffset)}static createFromParentAndOffset(S,O){if(!S.is('element')&&!S.is('documentFragment'))throw new T.a('model-position-parent-incorrect: Position parent have to be a element or document fragment.');const R=S.getPath();return R.push(O),new this(S.root,R)}static createFromPosition(S){return new this(S.root,S.path.slice())}static fromJSON(S,O){if('$graveyard'===S.root)return new E(O.graveyard,S.path);if(!O.hasRoot(S.root))throw new T.a('model-position-fromjson-no-root: Cannot create position for document. Root with specified name does not exist.',{rootName:S.root});return new E(O.getRoot(S.root),S.path)}}u.a=E},function(r,u,f){'use strict';var h=f(33),w=f(4);class C{constructor(T){this.editor=T}init(){}afterInit(){}destroy(){}}u.a=C,f.i(w.a)(C,h.a)},function(r,u,f){'use strict';var h=f(1),w=f(37),C=f(0);class T{constructor(P,E=null){this.start=h.a.createFromPosition(P),this.end=E?h.a.createFromPosition(E):h.a.createFromPosition(P)}*[Symbol.iterator](){yield*new w.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}containsPosition(P){return P.isAfter(this.start)&&P.isBefore(this.end)}containsRange(P){return this.containsPosition(P.start)&&this.containsPosition(P.end)}isEqual(P){return this.start.isEqual(P.start)&&this.end.isEqual(P.end)}isIntersecting(P){return this.start.isBefore(P.end)&&this.end.isAfter(P.start)}getDifference(P){const E=[];return this.isIntersecting(P)?(this.containsPosition(P.start)&&E.push(new T(this.start,P.start)),this.containsPosition(P.end)&&E.push(new T(P.end,this.end))):E.push(T.createFromRange(this)),E}getIntersection(P){if(this.isIntersecting(P)){let E=this.start,S=this.end;return this.containsPosition(P.start)&&(E=P.start),this.containsPosition(P.end)&&(S=P.end),new T(E,S)}return null}getMinimalFlatRanges(){const P=[],E=this.start.getCommonPath(this.end).length;let S=h.a.createFromPosition(this.start),O=S.parent;for(;S.path.length>E+1;){let R=O.maxOffset-S.offset;0!=R&&P.push(new T(S,S.getShiftedBy(R))),S.path=S.path.slice(0,-1),S.offset++,O=O.parent}for(;S.path.length<=this.end.path.length;){let R=this.end.path[S.path.length-1],V=R-S.offset;0!=V&&P.push(new T(S,S.getShiftedBy(V))),S.offset=R,S.path.push(0)}return P}getWalker(P={}){return P.boundaries=this,new w.a(P)}*getItems(P={}){P.boundaries=this,P.ignoreElementEnd=!0;const E=new w.a(P);for(let S of E)yield S.item}*getPositions(P={}){P.boundaries=this;const E=new w.a(P);yield E.position;for(let S of E)yield S.nextPosition}getTransformedByDelta(P){let E=[T.createFromRange(this)];const S=new Set(['insert','move','remove','reinsert']);for(let O of P.operations)if(S.has(O.type))for(let R=0;R<E.length;R++){const V=E[R]._getTransformedByDocumentChange(O.type,P.type,O.targetPosition||O.position,O.howMany||O.nodes.maxOffset,O.sourcePosition);E.splice(R,1,...V),R+=V.length-1}return E}getTransformedByDeltas(P){let E=[T.createFromRange(this)];for(let S of P)for(let O=0,R;O<E.length;O++)R=E[O].getTransformedByDelta(S),E.splice(O,1,...R),O+=R.length-1;for(let S=0;S<E.length;S++){const O=E[S];for(let R=S+1;R<E.length;R++){const V=E[R];(O.containsRange(V)||V.containsRange(O)||O.isEqual(V))&&E.splice(R,1)}}return E}_getTransformedByDocumentChange(P,E,S,O,R){if('insert'==P)return this._getTransformedByInsertion(S,O,!1,!1);const V=T.createFromPositionAndShift(R,O);if('merge'==E&&this.isCollapsed&&(this.start.isEqual(V.start)||this.start.isEqual(V.end)))return[new T(S.getShiftedBy(this.start.offset))];if('move'==P){if(V.containsPosition(this.start)&&this.containsPosition(V.end)&&this.end.isAfter(S)){let F=this.start._getCombined(R,S._getTransformedByDeletion(R,O));const I=this.end._getTransformedByMove(R,S,O,!1,!1);return[new T(F,I)]}if(V.containsPosition(this.end)&&this.containsPosition(V.start)&&this.start.isBefore(S)){const F=this.start._getTransformedByMove(R,S,O,!0,!1);let I=this.end._getCombined(R,S._getTransformedByDeletion(R,O));return[new T(F,I)]}}return this._getTransformedByMove(R,S,O)}_getTransformedByInsertion(P,E,S=!1,O=!1){if(S&&this.containsPosition(P))return[new T(this.start,P),new T(P._getTransformedByInsertion(P,E,!0),this.end._getTransformedByInsertion(P,E,this.isCollapsed))];const R=T.createFromRange(this);let V=!!R.isCollapsed||!O,F=!!R.isCollapsed||O;return R.start=R.start._getTransformedByInsertion(P,E,V),R.end=R.end._getTransformedByInsertion(P,E,F),[R]}_getTransformedByMove(P,E,S){if(this.isCollapsed){const M=this.start._getTransformedByMove(P,E,S,!0,!1);return[new T(M)]}let O;const R=new T(P,P.getShiftedBy(S)),V=this.getDifference(R);let F=null;const I=this.getIntersection(R);1==V.length?F=new T(V[0].start._getTransformedByDeletion(P,S),V[0].end._getTransformedByDeletion(P,S)):2==V.length&&(F=new T(this.start,this.end._getTransformedByDeletion(P,S)));const N=E._getTransformedByDeletion(P,S);return O=F?F._getTransformedByInsertion(N,S,null!==I):[],I&&O.push(new T(I.start._getCombined(R.start,N),I.end._getCombined(R.start,N))),O}static createFromPositionAndShift(P,E){const S=P,O=P.getShiftedBy(E);return 0<E?new this(S,O):new this(O,S)}static createFromParentsAndOffsets(P,E,S,O){return new this(h.a.createFromParentAndOffset(P,E),h.a.createFromParentAndOffset(S,O))}static createFromRange(P){return new this(P.start,P.end)}static createIn(P){return this.createFromParentsAndOffsets(P,0,P,P.maxOffset)}static createOn(P){return this.createFromPositionAndShift(h.a.createBefore(P),P.offsetSize)}static createFromRanges(P){if(0===P.length)throw new C.a('range-create-from-ranges-empty-array: At least one range has to be passed.');else if(1==P.length)return this.createFromRange(P[0]);const E=P[0];P.sort((R,V)=>R.start.isAfter(V.start)?1:-1);const S=P.indexOf(E),O=new this(E.start,E.end);for(let R=S-1;0<=R&&P[R].end.isEqual(O.start);R++)O.start=h.a.createFromPosition(P[R].start);for(let R=S+1;R<P.length&&P[R].start.isEqual(O.end);R++)O.end=h.a.createFromPosition(P[R].end);return O}static fromJSON(P,E){return new this(h.a.fromJSON(P.start,E),h.a.fromJSON(P.end,E))}}u.a=T},function(r,u){'use strict';u.a=function(w,...C){C.forEach((T)=>{Object.getOwnPropertyNames(T).concat(Object.getOwnPropertySymbols(T)).forEach((P)=>{if(!(P in w.prototype)){const E=Object.getOwnPropertyDescriptor(T,P);E.enumerable=!1,Object.defineProperty(w.prototype,P,E)}})})}},function(r,u,f){'use strict';function h(S){return'string'==typeof S?[new T.a(S)]:(f.i(P.a)(S)||(S=[S]),Array.from(S).map((O)=>'string'==typeof O?new T.a(O):O))}var w=f(59),C=f(74),T=f(24),P=f(48);class E extends w.a{constructor(S,O,R){super(O),this.name=S,this._children=new C.a,R&&this.insertChildren(0,R)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}is(S,O=null){return O?'element'==S&&O==this.name:'element'==S||S==this.name}getChild(S){return this._children.getNode(S)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(S){return this._children.getNodeIndex(S)}getChildStartOffset(S){return this._children.getNodeStartOffset(S)}clone(S=!1){const O=S?Array.from(this._children).map((R)=>R.clone(!0)):null;return new E(this.name,this.getAttributes(),O)}offsetToIndex(S){return this._children.offsetToIndex(S)}appendChildren(S){this.insertChildren(this.childCount,S)}insertChildren(S,O){O=h(O);for(let R of O)R.parent=this;this._children.insertNodes(S,O)}removeChildren(S,O=1){const R=this._children.removeNodes(S,O);for(let V of R)V.parent=null;return R}getNodeByPath(S){let O=this;for(const R of S)O=O.getChild(R);return O}toJSON(){let S=super.toJSON();if(S.name=this.name,0<this._children.length){S.children=[];for(let O of this._children)S.children.push(O.toJSON())}return S}static fromJSON(S){let O=null;if(S.children){O=[];for(let R of S.children)R.name?O.push(E.fromJSON(R)):O.push(T.a.fromJSON(R))}return new E(S.name,S.attributes,O)}}u.a=E},function(r,u,f){'use strict';function h(le){return!!le&&((le.value&&(le=le.value),Array.isArray(le))?le.some(h):!!(le instanceof ie))}function w(le,de){return le.map((ce)=>{return ce instanceof ie?ce.getValue(de):ce})}function C(le,de,{node:ce}){let ue=w(le,ce);ue=1==le.length&&le[0]instanceof se?ue[0]:ue.reduce(M,''),z(ue)?de.remove():de.set(ue)}function T(le){return{set(de){le.textContent=de},remove(){le.textContent=''}}}function P(le,de,ce){return{set(ue){le.setAttributeNS(ce,de,ue)},remove(){le.removeAttributeNS(ce,de)}}}function E(le,de){return{set(ce){le.style[de]=ce},remove(){le.style[de]=null}}}function S(le){const de=f.i(ee.a)(le,(ce)=>{if(ce&&(ce instanceof ie||$(ce)||U(ce)||K(ce)))return ce});return de}function O(le){if('string'==typeof le?le=F(le):le.text&&I(le),le.on&&(le.eventListeners=V(le.on),delete le.on),!le.text){le.attributes&&R(le.attributes);const de=new J.a;if(le.children)if(K(le.children))de.add(le.children);else for(let ce of le.children)$(ce)||U(ce)?de.add(ce):de.add(new oe(ce));le.children=de}return le}function R(le){for(let de in le)le[de].value&&(le[de].value=[].concat(le[de].value)),N(le,de)}function V(le){for(let de in le)N(le,de);return le}function F(le){return{text:[le]}}function I(le){Array.isArray(le.text)||(le.text=[le.text])}function N(le,de){Array.isArray(le[de])||(le[de]=[le[de]])}function M(le,de){return z(de)?le:z(le)?de:`${le} ${de}`}function D(le,de){for(let ce in de)le[ce]?le[ce].push(...de[ce]):le[ce]=de[ce]}function q(le,de){if(de.attributes&&(!le.attributes&&(le.attributes={}),D(le.attributes,de.attributes)),de.eventListeners&&(!le.eventListeners&&(le.eventListeners={}),D(le.eventListeners,de.eventListeners)),de.text&&le.text.push(...de.text),de.children&&de.children.length){if(le.children.length!=de.children.length)throw new Y.a('ui-template-extend-children-mismatch: The number of children in extended definition does not match.');let ce=0;for(let ue of de.children)q(le.children.get(ce++),ue)}}function z(le){return!le&&0!==le}function U(le){return le instanceof Q.a}function $(le){return le instanceof oe}function K(le){return le instanceof X.a}function W(){return{children:[],bindings:[],attributes:{}}}function H(le){return'class'==le||'style'==le}var Y=f(0),G=f(4),Z=f(7),J=f(80),Q=f(9),X=f(120),ee=f(524),te=f(14),ae=f(40);class oe{constructor(le){Object.assign(this,O(S(le))),this._isRendered=!1,this._revertData=null}render(){const le=this._renderNode({intoFragment:!0});return this._isRendered=!0,le}apply(le){return this._revertData=W(),this._renderNode({node:le,isApplying:!0,revertData:this._revertData}),le}revert(le){if(!this._revertData)throw new Y.a('ui-template-revert-not-applied: Attempting reverting a template which has not been applied yet.');this._revertTemplateFromNode(le,this._revertData)}static bind(le,de){return{to(ce,ue){return new re({eventNameOrFunction:ce,attribute:ce,observable:le,emitter:de,callback:ue})},if(ce,ue,me){return new se({observable:le,emitter:de,attribute:ce,valueIfTrue:ue,callback:me})}}}static extend(le,de){le._isRendered&&ae.a.warn('template-extend-render: Attempting to extend a template which has already been rendered.'),q(le,O(S(de)))}_renderNode(le){let de;if(de=le.node?this.tag&&this.text:this.tag?this.text:!this.text,de)throw new Y.a('ui-template-wrong-syntax: Node definition must have either "tag" or "text" when rendering new Node.');return this.text?this._renderText(le):this._renderElement(le)}_renderElement(le){let de=le.node;return de||(de=le.node=document.createElementNS(this.ns||'http://www.w3.org/1999/xhtml',this.tag)),this._renderAttributes(le),this._renderElementChildren(le),this._setUpListeners(le),de}_renderText(le){let de=le.node;return de?le.revertData.text=de.textContent:de=le.node=document.createTextNode(''),h(this.text)?this._bindToObservable({schema:this.text,updater:T(de),data:le}):de.textContent=this.text.join(''),de}_renderAttributes(le){let de,ce,ue,me;if(this.attributes){const pe=le.node,ge=le.revertData;for(de in this.attributes)if(ue=pe.getAttribute(de),ce=this.attributes[de],ge&&(ge.attributes[de]=ue),me=f.i(te.a)(ce[0])&&ce[0].ns?ce[0].ns:null,h(ce)){const fe=me?ce[0].value:ce;ge&&H(de)&&fe.unshift(ue),this._bindToObservable({schema:fe,updater:P(pe,de,me),data:le})}else'style'==de&&'string'!=typeof ce[0]?this._renderStyleAttribute(ce[0],le):(ge&&ue&&H(de)&&ce.unshift(ue),ce=ce.map((fe)=>fe?fe.value||fe:fe).reduce((fe,he)=>fe.concat(he),[]).reduce(M,''),z(ce)||pe.setAttributeNS(me,de,ce))}}_renderStyleAttribute(le,de){const ce=de.node;for(let ue in le){const me=le[ue];h(me)?this._bindToObservable({schema:[me],updater:E(ce,ue),data:de}):ce.style[ue]=me}}_renderElementChildren(le){const de=le.node,ce=le.intoFragment?document.createDocumentFragment():de,ue=le.isApplying;let me=0;for(let pe of this.children)if(K(pe)){if(!ue){pe.setParent(de);for(let ge of pe)ce.appendChild(ge.element)}}else if(U(pe))ue||ce.appendChild(pe.element);else if(ue){const ge=le.revertData,fe=W();ge.children.push(fe),pe._renderNode({node:ce.childNodes[me++],isApplying:!0,revertData:fe})}else ce.appendChild(pe.render());le.intoFragment&&de.appendChild(ce)}_setUpListeners(le){if(this.eventListeners)for(let de in this.eventListeners){const ce=this.eventListeners[de].map((ue)=>{const[me,pe]=de.split('@');return ue.activateDomEventListener(me,pe,le)});le.revertData&&le.revertData.bindings.push(ce)}}_bindToObservable({schema:le,updater:de,data:ce}){const ue=ce.revertData;C(le,de,ce);const me=le.filter((pe)=>!z(pe)).filter((pe)=>pe.observable).map((pe)=>pe.activateAttributeListener(le,de,ce));ue&&ue.bindings.push(me)}_revertTemplateFromNode(le,de){for(let ce of de.bindings)for(let ue of ce)ue();if(de.text)return void(le.textContent=de.text);for(let ce in de.attributes){const ue=de.attributes[ce];null===ue?le.removeAttribute(ce):le.setAttribute(ce,ue)}for(let ce=0;ce<de.children.length;++ce)this._revertTemplateFromNode(le.childNodes[ce],de.children[ce])}}u.a=oe,f.i(G.a)(oe,Z.a);class ie{constructor(le){Object.assign(this,le)}getValue(le){const de=this.observable[this.attribute];return this.callback?this.callback(de,le):de}activateAttributeListener(le,de,ce){const ue=()=>C(le,de,ce);return this.emitter.listenTo(this.observable,'change:'+this.attribute,ue),()=>{this.emitter.stopListening(this.observable,'change:'+this.attribute,ue)}}}class re extends ie{activateDomEventListener(le,de,ce){const ue=(me,pe)=>{(!de||pe.target.matches(de))&&('function'==typeof this.eventNameOrFunction?this.eventNameOrFunction(pe):this.observable.fire(this.eventNameOrFunction,pe))};return this.emitter.listenTo(ce.node,le,ue),()=>{this.emitter.stopListening(ce.node,le,ue)}}}class se extends ie{getValue(le){const de=super.getValue(le);return!z(de)&&(this.valueIfTrue||!0)}}},function(r,u,f){'use strict';function w(q,z){q[M]||(q[M]=z||f.i(F.a)())}function C(q){return q[M]}function T(q){return q._events||Object.defineProperty(q,'_events',{value:{}}),q._events}function P(){return{callbacks:[],childEvents:[]}}function E(q,z){const U=T(q);if(U[z])return;let $=z,K=null;const W=[];for(;''!==$&&!U[$];)U[$]=P(),W.push(U[$]),K&&U[$].childEvents.push(K),K=$,$=$.substr(0,$.lastIndexOf(':'));if(''!==$){for(let H of W)H.callbacks=U[$].callbacks.slice();U[$].childEvents.push(K)}}function S(q,z){const U=T(q)[z];if(!U)return[];let $=[U.callbacks];for(let K=0,W;K<U.childEvents.length;K++)W=S(q,U.childEvents[K]),$=$.concat(W);return $}function O(q,z){let U;return q._events&&(U=q._events[z])&&U.callbacks.length?U.callbacks:-1<z.indexOf(':')?O(q,z.substr(0,z.lastIndexOf(':'))):null}function R(q,z,U){for(let[$,K]of q){K?'function'==typeof K&&(K=K(z.name)):K=z.name;const W=new V.a(z.source,K);W.path=[...z.path],$.fire(W,...U)}}var V=f(442),F=f(72),I=f(542);u.b=function(q,z){return q[N]&&q[N][z]?q[N][z].emitter:null},u.c=w;const N=Symbol('listeningTo'),M=Symbol('emitterId'),D={on(q,z,U={}){E(this,q);const $=S(this,q),K=I.a.get(U.priority);z={callback:z,context:U.context||this,priority:K};for(let W of $){let H=!1;for(let Y=0;Y<W.length;Y++)if(W[Y].priority<K){W.splice(Y,0,z),H=!0;break}H||W.push(z)}},once(q,z,U){this.on(q,function(K){K.off(),z.apply(this,arguments)},U)},off(q,z,U){const $=S(this,q);for(let K of $)for(let W=0;W<K.length;W++)K[W].callback==z&&(U&&U!=K[W].context||(K.splice(W,1),W--))},listenTo(q,z,U,$){let K,W,H,Y;this[N]||(this[N]={}),K=this[N],C(q)||w(q),W=C(q),(H=K[W])||(H=K[W]={emitter:q,callbacks:{}}),(Y=H.callbacks[z])||(Y=H.callbacks[z]=[]),Y.push(U),q.on(z,U,$)},stopListening(q,z,U){let $=this[N],K=q&&C(q),W=$&&K&&$[K],H=W&&z&&W.callbacks[z];if($&&(!q||W)&&(!z||H))if(U)q.off(z,U);else if(H){for(;U=H.pop();)q.off(z,U);delete W.callbacks[z]}else if(W){for(z in W.callbacks)this.stopListening(q,z);delete $[K]}else{for(K in $)this.stopListening($[K].emitter);delete this[N]}},fire(q,...z){const U=q instanceof V.a?q:new V.a(this,q),$=U.name;let K=O(this,$);if(U.path.push(this),K){const W=[U,...z];K=Array.from(K);for(let H=0;H<K.length&&(K[H].callback.apply(K[H].context,W),U.off.called&&(delete U.off.called,this.off($,K[H].callback,K[H].context)),!U.stop.called);H++);}if(this._delegations){const W=this._delegations.get($),H=this._delegations.get('*');W&&R(W,U,z),H&&R(H,U,z)}},delegate(...q){return{to:(z,U)=>{this._delegations||(this._delegations=new Map);for(let $ of q){let K=this._delegations.get($);K?K.set(z,U):this._delegations.set($,new Map([[z,U]]))}}}},stopDelegating(q,z){if(this._delegations)if(!q)this._delegations.clear();else if(!z)this._delegations.delete(q);else{const U=this._delegations.get(q);U&&U.delete(z)}}};u.a=D},function(r,u,f){'use strict';var w=f(197),C=f(15),P=_Mathmax;u.a=function(E,S){if('function'!=typeof E)throw new TypeError('Expected a function');return S=P(void 0===S?E.length-1:f.i(C.a)(S),0),function(){for(var O=arguments,R=-1,V=P(O.length-S,0),F=Array(V);++R<V;)F[R]=O[S+R];switch(S){case 0:return E.call(this,F);case 1:return E.call(this,O[0],F);case 2:return E.call(this,O[0],O[1],F);}var I=Array(S+1);for(R=-1;++R<S;)I[R]=O[R];return I[S]=F,f.i(w.a)(E,this,I)}}},function(r,u,f){'use strict';var h=f(0),w=f(120),C=f(6),T=f(81),P=f(33),E=f(80),S=f(4),O=f(48);class R{constructor(V){this.locale=V,this.t=V&&V.t,this.set('ready',!1),this._viewCollections=new E.a,this._unboundChildren=this.createCollection(),this._viewCollections.on('add',(F,I)=>{I.locale=V})}get element(){return this._element?this._element:this.template?(this._addTemplateChildren(),this._element=this.template.render()):null}set element(V){this._element=V}get bindTemplate(){return this._bindTemplate?this._bindTemplate:this._bindTemplate=C.a.bind(this,this)}createCollection(){const V=new w.a;return this._viewCollections.add(V),V}addChildren(V){return f.i(O.a)(V)||(V=[V]),Promise.all(V.map((F)=>this._unboundChildren.add(F)))}init(){if(this.ready)throw new h.a('ui-view-init-reinit: This View has already been initialized.');return Promise.resolve().then(()=>{return Promise.all(this._viewCollections.map((V)=>V.init()))}).then(()=>{this.ready=!0})}destroy(){return this.stopListening(),Promise.all(this._viewCollections.map((V)=>V.destroy())).then(()=>{this._unboundChildren.clear(),this._viewCollections.clear(),this.element=this.template=this.locale=this.t=this._viewCollections=this._unboundChildren=null})}_addTemplateChildren(){const V=(F)=>{if(F.children)for(let I of F.children)I instanceof R?this.addChildren(I):V(I)};V(this.template)}}u.a=R,f.i(S.a)(R,T.a),f.i(S.a)(R,P.a)},function(r,u,f){'use strict';var w=f(464),C=f(465),T=f(231),P=f(12),E=f(534);u.a=function(S){return'function'==typeof S?S:null==S?T.a:'object'==typeof S?f.i(P.a)(S)?f.i(C.a)(S[0],S[1]):f.i(w.a)(S):f.i(E.a)(S)}},function(r,u,f){'use strict';function h(P,E){E.isEnabled=!1}var w=f(33),C=f(4);class T{constructor(P){this.editor=P,this.set('isEnabled',!0),this._checkEnabled&&this.on('refreshState',(E,S)=>{S.isEnabled=this._checkEnabled()})}destroy(){this.stopListening()}refreshState(){const P={isEnabled:!0};this.fire('refreshState',P),this.isEnabled=P.isEnabled}_execute(P){this.isEnabled&&this._doExecute(P)}_disable(){this.on('refreshState',h),this.refreshState()}_enable(){this.off('refreshState',h),this.refreshState()}_doExecute(){}}u.a=T,f.i(C.a)(T,w.a)},function(r,u){'use strict';var h=Array.isArray;u.a=h},function(r,u,f){'use strict';var w=f(97),C=f(51);u.a=function(T){return f.i(C.a)(T)&&f.i(w.a)(T)}},function(r,u){'use strict';u.a=function(w){var C=typeof w;return!!w&&('object'==C||'function'==C)}},function(r,u,f){'use strict';var w=f(536);u.a=function(C){var T=f.i(w.a)(C),P=T%1;return T===T?P?T-P:T:0}},function(r,u,f){'use strict';var w=f(0);u.b=function(T,P){if(C.prototype[T])throw new w.a('model-batch-register-taken: This batch method name is already taken.',{name:T});C.prototype[T]=P};class C{constructor(T,P='default'){this.document=T,this.deltas=[],this.type=P}get baseVersion(){return 0<this.deltas.length?this.deltas[0].baseVersion:null}addDelta(T){return T.batch=this,this.deltas.push(T),T}*getOperations(){for(let T of this.deltas)yield*T.operations}}u.a=C},function(r,u,f){'use strict';var h=f(0),w=f(363);const C=new Map;u.a=class{static fromJSON(P,E){if(!C.has(P.__className))throw new h.a('delta-fromjson-no-deserializer: This delta has no defined deserializer',{name:P.__className});let S=C.get(P.__className),O=new S;for(let R of P.operations)O.addOperation(w.a.fromJSON(R,E));return O}static register(P){C.set(P.className,P)}}},function(r,u,f){'use strict';function w(U){if(!U.isFlat)throw new q.a('model-writer-remove-range-not-flat: Trying to remove a range that starts and ends in different element.');const $=U.start.parent;O(U.start),O(U.end);const K=$.removeChildren(U.start.index,U.end.index-U.start.index);return S($,U.start.index),K}function E(U){const $=[];U instanceof Array||(U=[U]);for(let K=0;K<U.length;K++)if('string'==typeof U[K])$.push(new F.a(U[K]));else if(U[K]instanceof I.a)$.push(new F.a(U[K].data,U[K].getAttributes()));else if(U[K]instanceof M.a||U[K]instanceof D.a)for(let W of U[K])$.push(W);else U[K]instanceof V.a&&$.push(U[K]);for(let K=1;K<$.length;K++){const W=$[K],H=$[K-1];W instanceof F.a&&H instanceof F.a&&R(W,H)&&($.splice(K-1,2,new F.a(H.data+W.data,H.getAttributes())),K--)}return $}function S(U,$){const K=U.getChild($-1),W=U.getChild($);if(K&&W&&K.is('text')&&W.is('text')&&R(K,W)){const H=new F.a(K.data+W.data,K.getAttributes());U.removeChildren($-1,2),U.insertChildren($-1,H)}}function O(U){const $=U.textNode,K=U.parent;if($){const W=U.offset-$.startOffset,H=$.index;K.removeChildren(H,1);const Y=new F.a($.data.substr(0,W),$.getAttributes()),G=new F.a($.data.substr(W),$.getAttributes());K.insertChildren(H,[Y,G])}}function R(U,$){const K=U.getAttributes(),W=$.getAttributes();for(let H of K){if(H[1]!==$.getAttribute(H[0]))return!1;W.next()}return W.next().done}var V=f(59),F=f(24),I=f(61),N=f(3),M=f(35),D=f(74),q=f(0);u.c=w,u.b=E;u.a={insert:function(U,$){$=E($);const K=$.reduce((Y,G)=>Y+G.offsetSize,0),W=U.parent;O(U);const H=U.index;return W.insertChildren(H,$),S(W,H+$.length),S(W,H),new N.a(U,U.getShiftedBy(K))},remove:w,move:function(U,$){if(!U.isFlat)throw new q.a('model-writer-move-range-not-flat: Trying to move a range that starts and ends in different element.');const K=this.remove(U);return $=$._getTransformedByDeletion(U.start,U.end.offset-U.start.offset),this.insert($,K)},setAttribute:function(U,$,K){O(U.start),O(U.end);for(let W of U.getItems()){let H=W.is('textProxy')?W.textNode:W;null===K?H.removeAttribute($):H.setAttribute($,K),S(H.parent,H.index)}S(U.end.parent,U.end.index)},removeAttribute:function(U,$){this.setAttribute(U,$,null)},normalizeNodes:E}},function(r,u){'use strict';u.a=function(w){var C=w?w.length:0;return C?w[C-1]:void 0}},function(r,u,f){'use strict';var h=f(96),w=f(17);class C{constructor(){this.batch=null,this.operations=[]}get baseVersion(){return 0<this.operations.length?this.operations[0].baseVersion:null}set baseVersion(T){for(let P of this.operations)P.baseVersion=T++}get _reverseDeltaClass(){return C}addOperation(T){return T.delta=this,this.operations.push(T),T}clone(){let T=new this.constructor;for(let P of this.operations)T.addOperation(P.clone());return T}getReversed(){let T=new this._reverseDeltaClass;for(let P of this.operations)T.addOperation(P.getReversed());T.operations.reverse();for(let P=0;P<T.operations.length;P++)T.operations[P].baseVersion=this.operations[this.operations.length-1].baseVersion+P+1;return T}toJSON(){let T=f.i(h.a)(this);return T.__className=this.constructor.className,delete T.batch,T}static get className(){return'engine.model.delta.Delta'}static get _priority(){return 0}}u.a=C,w.a.register(C)},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(416),T=f(22);class P extends h.a{constructor(E){super(E),this.set('label'),this.set('keystroke'),this.set('tooltip'),this.set('type','button'),this.set('isOn',!1),this.set('isEnabled',!0),this.set('isVisible',!0),this.set('withText',!1),this.set('icon'),this.set('tabindex',-1),this.bind('_tooltipString').to(this,'tooltip',this,'label',this,'keystroke',this._getTooltipString.bind(this));const S=this.bindTemplate;this.template=new w.a({tag:'button',attributes:{class:['ck-button',S.if('_tooltipString','ck-tooltip_s'),S.to('isEnabled',(O)=>O?'ck-enabled':'ck-disabled'),S.if('isVisible','ck-hidden',(O)=>!O),S.to('isOn',(O)=>O?'ck-on':'ck-off'),S.if('withText','ck-button_with-text')],type:S.to('type',(O)=>O?O:'button'),'data-ck-tooltip':[S.to('_tooltipString')],tabindex:S.to('tabindex')},children:[{tag:'span',attributes:{class:['ck-button__label']},children:[{text:S.to('label')}]}],on:{mousedown:S.to((O)=>{O.preventDefault()}),click:S.to((O)=>{this.isEnabled?this.fire('execute'):O.preventDefault()})}})}init(){let E=Promise.resolve();if(this.icon&&!this.iconView){const S=this.iconView=new C.a;S.bind('content').to(this,'icon'),this.element.insertBefore(S.element,this.element.firstChild),E=E.then(()=>this.addChildren(S))}return E.then(()=>super.init())}focus(){this.element.focus()}_getTooltipString(E,S,O){if(E){if('string'==typeof E)return E;if(O&&(O=f.i(T.b)(O)),E instanceof Function)return E(S,O);if(!0===E)return`${S}${O?` (${O})`:''}`}return!1}}u.a=P},function(r,u,f){'use strict';function h(R){let V;if('string'!=typeof R)V=R.keyCode+(R.altKey?O.alt:0)+(R.ctrlKey?O.ctrl:0)+(R.shiftKey?O.shift:0);else if(V=O[R.toLowerCase()],!V)throw new E.a('keyboard-unknown-key: Unknown key name.',{key:R});return V}function P(R){return R.split(/\s*\+\s*/)}var E=f(0),S=f(441);u.c=h,u.a=function(R){return'string'==typeof R&&(R=P(R)),R.map((V)=>'string'==typeof V?h(V):V).reduce((V,F)=>F+V,0)},u.b=function(R){const V=P(R);return S.a.mac&&'ctrl'==V[0].toLowerCase()?'\u2318'+(V[1]||''):R};const O=function(){const R={arrowleft:37,arrowup:38,arrowright:39,arrowdown:40,backspace:8,delete:46,enter:13,esc:27,tab:9,ctrl:1114112,cmd:1114112,shift:2228224,alt:4456448};for(let V=65;90>=V;V++){const F=_StringfromCharCode(V);R[F.toLowerCase()]=V}for(let V=48;57>=V;V++)R[V-48]=V;for(let V=112;123>=V;V++)R['f'+(V-111)]=V;return R}();u.d=O},function(r,u,f){'use strict';function h(T,P,E,S,O){var R=-1,V=T.length;for(E||(E=C.a),O||(O=[]);++R<V;){var F=T[R];0<P&&E(F)?1<P?h(F,P-1,E,S,O):f.i(w.a)(O,F):!S&&(O[O.length]=F)}return O}var w=f(85),C=f(498);u.a=h},function(r,u,f){'use strict';var h=f(59);class w extends h.a{constructor(C,T){super(T),this.data=C||''}get offsetSize(){return this.data.length}is(C){return'text'==C}clone(){return new w(this.data,this.getAttributes())}toJSON(){let C=super.toJSON();return C.data=this.data,C}static fromJSON(C){return new w(C.data,C.attributes)}}u.a=w},function(r,u,f){'use strict';function h(F,I){let N=null,M=0,D=0,q=null;if(F.clear(),''!==I){';'!=I.charAt(I.length-1)&&(I+=';');for(let z=0;z<I.length;z++){const U=I.charAt(z);if(null==N)switch(U){case':':q||(q=I.substr(M,z-M),D=z+1);break;case'"':case'\'':N=U;break;case';':let $=I.substr(D,z-D);q&&F.set(q.trim(),$.trim()),q=null,M=z+1;}else U===N&&(N=null)}}}function w(F,I){const N=I.split(/\s+/);F.clear(),N.forEach((M)=>F.add(M))}function C(F){return'string'==typeof F?[new P.a(F)]:(f.i(S.a)(F)||(F=[F]),Array.from(F).map((I)=>'string'==typeof I?new P.a(I):I))}var T=f(78),P=f(31),E=f(277),S=f(48),O=f(99),R=f(171);class V extends T.a{constructor(F,I,N){if(super(),this.name=F,this._attrs=f.i(O.a)(I)?f.i(E.a)(I):new Map(I),this._children=[],N&&this.insertChildren(0,N),this._classes=new Set,this._attrs.has('class')){const M=this._attrs.get('class');w(this._classes,M),this._attrs.delete('class')}this._styles=new Map,this._attrs.has('style')&&(h(this._styles,this._attrs.get('style')),this._attrs.delete('style')),this._customProperties=new Map}get childCount(){return this._children.length}get isEmpty(){return 0===this._children.length}is(F,I=null){return I?'element'==F&&I==this.name:'element'==F||F==this.name}clone(F=!1){const I=[];if(F)for(let M of this.getChildren())I.push(M.clone(F));const N=new this.constructor(this.name,this._attrs,I);return N._classes=new Set(this._classes),N._styles=new Map(this._styles),N._customProperties=new Map(this._customProperties),N.getFillerOffset=this.getFillerOffset,N}appendChildren(F){return this.insertChildren(this.childCount,F)}getChild(F){return this._children[F]}getChildIndex(F){return this._children.indexOf(F)}getChildren(){return this._children[Symbol.iterator]()}*getAttributeKeys(){0<this._classes.size&&(yield'class'),0<this._styles.size&&(yield'style');for(let F of this._attrs.keys())yield F}*getAttributes(){yield*this._attrs.entries(),0<this._classes.size&&(yield['class',this.getAttribute('class')]),0<this._styles.size&&(yield['style',this.getAttribute('style')])}getAttribute(F){if('class'==F)return 0<this._classes.size?[...this._classes].join(' '):void 0;if('style'==F){if(0<this._styles.size){let I='';for(let[N,M]of this._styles)I+=`${N}:${M};`;return I}return}return this._attrs.get(F)}hasAttribute(F){return'class'==F?0<this._classes.size:'style'==F?0<this._styles.size:this._attrs.has(F)}setAttribute(F,I){this._fireChange('attributes',this),'class'==F?w(this._classes,I):'style'==F?h(this._styles,I):this._attrs.set(F,I)}insertChildren(F,I){this._fireChange('children',this);let N=0;I=C(I);for(let M of I)M.parent=this,this._children.splice(F,0,M),F++,N++;return N}removeAttribute(F){return this._fireChange('attributes',this),'class'==F?!!(0<this._classes.size)&&(this._classes.clear(),!0):'style'==F?!!(0<this._styles.size)&&(this._styles.clear(),!0):this._attrs.delete(F)}removeChildren(F,I=1){this._fireChange('children',this);for(let N=F;N<F+I;N++)this._children[N].parent=null;return this._children.splice(F,I)}isSimilar(F){if(!(F instanceof V))return!1;if(this===F)return!0;if(this.name!=F.name)return!1;if(this._attrs.size!==F._attrs.size||this._classes.size!==F._classes.size||this._styles.size!==F._styles.size)return!1;for(let[I,N]of this._attrs)if(!F._attrs.has(I)||F._attrs.get(I)!==N)return!1;for(let I of this._classes)if(!F._classes.has(I))return!1;for(let[I,N]of this._styles)if(!F._styles.has(I)||F._styles.get(I)!==N)return!1;return!0}addClass(...F){this._fireChange('attributes',this),F.forEach((I)=>this._classes.add(I))}removeClass(...F){this._fireChange('attributes',this),F.forEach((I)=>this._classes.delete(I))}hasClass(...F){for(let I of F)if(!this._classes.has(I))return!1;return!0}getClassNames(){return this._classes.keys()}setStyle(F,I){if(this._fireChange('attributes',this),f.i(O.a)(F)){const N=Object.keys(F);for(let M of N)this._styles.set(M,F[M])}else this._styles.set(F,I)}getStyle(F){return this._styles.get(F)}getStyleNames(){return this._styles.keys()}hasStyle(...F){for(let I of F)if(!this._styles.has(I))return!1;return!0}removeStyle(...F){this._fireChange('attributes',this),F.forEach((I)=>this._styles.delete(I))}findAncestor(...F){const I=new R.a(...F);for(let N=this.parent;N;){if(I.match(N))return N;N=N.parent}return null}setCustomProperty(F,I){this._customProperties.set(F,I)}getCustomProperty(F){return this._customProperties.get(F)}removeCustomProperty(F){return this._customProperties.delete(F)}*getCustomProperties(){yield*this._customProperties.entries()}}u.a=V},function(r,u,f){'use strict';var h=f(54),w=f(65),C=f(0),T=f(77);class P{constructor(E,S){this.parent=E,this.offset=S}get nodeAfter(){return this.parent.is('text')?null:this.parent.getChild(this.offset)||null}get nodeBefore(){return this.parent.is('text')?null:this.parent.getChild(this.offset-1)||null}get isAtStart(){return 0===this.offset}get isAtEnd(){const E=this.parent.is('text')?this.parent.data.length:this.parent.childCount;return this.offset===E}get root(){return this.parent.root}get editableElement(){let E=this.parent;for(;!(E instanceof T.a);)if(E.parent)E=E.parent;else return null;return E}getShiftedBy(E){let S=P.createFromPosition(this),O=S.offset+E;return S.offset=0>O?0:O,S}getLastMatchingPosition(E,S={}){S.startPosition=this;const O=new h.a(S);return O.skip(E),O.position}getAncestors(){return this.parent.is('documentFragment')?[this.parent]:this.parent.getAncestors({includeNode:!0})}isEqual(E){return this.parent==E.parent&&this.offset==E.offset}isBefore(E){return'before'==this.compareWith(E)}isAfter(E){return'after'==this.compareWith(E)}compareWith(E){if(this.isEqual(E))return'same';if(this.parent===E.parent)return 0>this.offset-E.offset?'before':'after';const S=this.getAncestors(),O=E.getAncestors(),R=f.i(w.a)(S,O);let V;switch(R){case 0:return'different';case'prefix':V=S.length-1;break;case'extension':V=O.length-1;break;default:V=R-1;}const F=S[V],I=S[V+1],N=O[V+1];if(F===this.parent){const D=this.offset-N.index;return 0>=D?'before':'after'}if(F===E.parent){const D=I.index-E.offset;return 0>D?'before':'after'}const M=I.index-N.index;return 0>M?'before':'after'}static createAt(E,S){if(E instanceof P)return this.createFromPosition(E);let O=E;if('end'==S)S=O.is('text')?O.data.length:O.childCount;else{if('before'==S)return this.createBefore(O);if('after'==S)return this.createAfter(O);S||(S=0)}return new P(O,S)}static createAfter(E){if(E.is('textProxy'))return new P(E.textNode,E.offsetInText+E.data.length);if(!E.parent)throw new C.a('view-position-after-root: You can not make position after root.',{root:E});return new P(E.parent,E.index+1)}static createBefore(E){if(E.is('textProxy'))return new P(E.textNode,E.offsetInText);if(!E.parent)throw new C.a('view-position-before-root: You can not make position before root.',{root:E});return new P(E.parent,E.index)}static createFromPosition(E){return new this(E.parent,E.offset)}}u.a=P},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=w.length,E=Array(P);++T<P;)E[T]=C(w[T],T,w);return E}},function(r,u,f){(function(h){function w(T,P){var E=T[1]||'',S=T[3];if(!S)return E;if(P){var O=C(S),R=S.sources.map(function(V){return'/*# sourceURL='+S.sourceRoot+V+' */'});return[E].concat(R).concat([O]).join('\n')}return[E].join('\n')}function C(T){var P=new h(JSON.stringify(T)).toString('base64');return'/*# '+('sourceMappingURL=data:application/json;charset=utf-8;base64,'+P)+' */'}r.exports=function(T){var P=[];return P.toString=function(){return this.map(function(S){var O=w(S,T);return S[2]?'@media '+S[2]+'{'+O+'}':O}).join('')},P.i=function(E,S){'string'==typeof E&&(E=[[null,E,'']]);for(var O={},R=0,V;R<this.length;R++)V=this[R][0],'number'==typeof V&&(O[V]=!0);for(R=0;R<E.length;R++){var F=E[R];'number'==typeof F[0]&&O[F[0]]||(S&&!F[2]?F[2]=S:S&&(F[2]='('+F[2]+') and ('+S+')'),P.push(F))}},P}}).call(u,f(293).Buffer)},function(r,u,f){function h(W,H){for(var Y=0;Y<W.length;Y++){var G=W[Y],Z=I[G.id];if(Z){Z.refs++;for(var J=0;J<Z.parts.length;J++)Z.parts[J](G.parts[J]);for(;J<G.parts.length;J++)Z.parts.push(O(G.parts[J],H))}else{for(var Q=[],J=0;J<G.parts.length;J++)Q.push(O(G.parts[J],H));I[G.id]={id:G.id,refs:1,parts:Q}}}}function w(W){for(var H=[],Y={},G=0;G<W.length;G++){var Z=W[G],J=Z[0],Q=Z[1],X=Z[2],ee=Z[3],te={css:Q,media:X,sourceMap:ee};Y[J]?Y[J].parts.push(te):H.push(Y[J]={id:J,parts:[te]})}return H}function C(W,H){var Y=D(W.insertInto);if(!Y)throw new Error('Couldn\'t find a style target. This probably means that the value for the \'insertInto\' parameter is invalid.');var G=U[U.length-1];if('top'===W.insertAt)G?G.nextSibling?Y.insertBefore(H,G.nextSibling):Y.appendChild(H):Y.insertBefore(H,Y.firstChild),U.push(H);else if('bottom'===W.insertAt)Y.appendChild(H);else throw new Error('Invalid value for parameter \'insertAt\'. Must be \'top\' or \'bottom\'.')}function T(W){W.parentNode.removeChild(W);var H=U.indexOf(W);0<=H&&U.splice(H,1)}function P(W){var H=document.createElement('style');return W.attrs.type='text/css',S(H,W.attrs),C(W,H),H}function E(W){var H=document.createElement('link');return W.attrs.type='text/css',W.attrs.rel='stylesheet',S(H,W.attrs),C(W,H),H}function S(W,H){Object.keys(H).forEach(function(Y){W.setAttribute(Y,H[Y])})}function O(W,H){var Y,G,Z;if(H.singleton){var J=z++;Y=q||(q=P(H)),G=R.bind(null,Y,J,!1),Z=R.bind(null,Y,J,!0)}else W.sourceMap&&'function'==typeof URL&&'function'==typeof URL.createObjectURL&&'function'==typeof URL.revokeObjectURL&&'function'==typeof Blob&&'function'==typeof btoa?(Y=E(H),G=F.bind(null,Y,H),Z=function(){T(Y),Y.href&&URL.revokeObjectURL(Y.href)}):(Y=P(H),G=V.bind(null,Y),Z=function(){T(Y)});return G(W),function(X){if(X){if(X.css===W.css&&X.media===W.media&&X.sourceMap===W.sourceMap)return;G(W=X)}else Z()}}function R(W,H,Y,G){var Z=Y?'':G.css;if(W.styleSheet)W.styleSheet.cssText=K(H,Z);else{var J=document.createTextNode(Z),Q=W.childNodes;Q[H]&&W.removeChild(Q[H]),Q.length?W.insertBefore(J,Q[H]):W.appendChild(J)}}function V(W,H){var Y=H.css,G=H.media;if(G&&W.setAttribute('media',G),W.styleSheet)W.styleSheet.cssText=Y;else{for(;W.firstChild;)W.removeChild(W.firstChild);W.appendChild(document.createTextNode(Y))}}function F(W,H,Y){var G=Y.css,Z=Y.sourceMap,J=H.convertToAbsoluteUrls===void 0&&Z;(H.convertToAbsoluteUrls||J)&&(G=$(G)),Z&&(G+='\n/*# sourceMappingURL=data:application/json;base64,'+btoa(unescape(encodeURIComponent(JSON.stringify(Z))))+' */');var Q=new Blob([G],{type:'text/css'}),X=W.href;W.href=URL.createObjectURL(Q),X&&URL.revokeObjectURL(X)}var I={},M=function(W){var H;return function(){return'undefined'==typeof H&&(H=W.apply(this,arguments)),H}}(function(){return window&&document&&document.all&&!window.atob}),D=function(W){var H={};return function(Y){return'undefined'==typeof H[Y]&&(H[Y]=W.call(this,Y)),H[Y]}}(function(W){return document.querySelector(W)}),q=null,z=0,U=[],$=f(317);r.exports=function(W,H){if('undefined'!=typeof DEBUG&&DEBUG&&'object'!=typeof document)throw new Error('The style-loader cannot be used in a non-browser environment');H=H||{},H.attrs='object'==typeof H.attrs?H.attrs:{},'undefined'==typeof H.singleton&&(H.singleton=M()),'undefined'==typeof H.insertInto&&(H.insertInto='head'),'undefined'==typeof H.insertAt&&(H.insertAt='bottom');var Y=w(W);return h(Y,H),function(Z){for(var J=[],Q=0;Q<Y.length;Q++){var X=Y[Q],ee=I[X.id];ee.refs--,J.push(ee)}if(Z){var te=w(Z);h(te,H)}for(var Q=0,ee;Q<J.length;Q++)if(ee=J[Q],0===ee.refs){for(var ae=0;ae<ee.parts.length;ae++)ee.parts[ae]();delete I[ee.id]}}};var K=function(){var W=[];return function(H,Y){return W[H]=Y,W.filter(Boolean).join('\n')}}()},function(r,u,f){'use strict';var h=f(36),w=f(1),C=f(3),T=f(0),P=f(65),E=f(18);class S extends h.a{constructor(O,R,V,F){super(F),this.sourcePosition=w.a.createFromPosition(O),this.howMany=R,this.targetPosition=w.a.createFromPosition(V),this.isSticky=!1}get type(){return'move'}clone(){const O=new this.constructor(this.sourcePosition,this.howMany,this.targetPosition,this.baseVersion);return O.isSticky=this.isSticky,O}getMovedRangeStart(){return this.targetPosition._getTransformedByDeletion(this.sourcePosition,this.howMany)}getReversed(){let O=this.sourcePosition._getTransformedByInsertion(this.targetPosition,this.howMany);const R=new this.constructor(this.getMovedRangeStart(),this.howMany,O,this.baseVersion+1);return R.isSticky=this.isSticky,R}_execute(){let O=this.sourcePosition.parent,R=this.targetPosition.parent,V=this.sourcePosition.offset,F=this.targetPosition.offset;if(!O||!R)throw new T.a('move-operation-position-invalid: Source position or target position is invalid.');else if(V+this.howMany>O.maxOffset)throw new T.a('move-operation-nodes-do-not-exist: The nodes which should be moved do not exist.');else if(O===R&&V<F&&F<V+this.howMany)throw new T.a('move-operation-range-into-itself: Trying to move a range of nodes to the inside of that range.');else if(this.sourcePosition.root==this.targetPosition.root&&'prefix'==f.i(P.a)(this.sourcePosition.getParentPath(),this.targetPosition.getParentPath())){let N=this.sourcePosition.path.length-1;if(this.targetPosition.path[N]>=V&&this.targetPosition.path[N]<V+this.howMany)throw new T.a('move-operation-node-into-itself: Trying to move a range of nodes into one of nodes from that range.')}const I=E.a.move(C.a.createFromPositionAndShift(this.sourcePosition,this.howMany),this.targetPosition);return{sourcePosition:this.sourcePosition,range:I}}static get className(){return'engine.model.operation.MoveOperation'}static fromJSON(O,R){let V=w.a.fromJSON(O.sourcePosition,R),F=w.a.fromJSON(O.targetPosition,R);const I=new this(V,O.howMany,F,O.baseVersion);return O.isSticky&&(I.isSticky=!0),I}}u.a=S},function(r,u,f){'use strict';var h=f(78);class w extends h.a{constructor(C){super(),this._data=C}clone(){return new w(this.data)}is(C){return'text'==C}get data(){return this._data}set data(C){this._fireChange('text',this),this._data=C}isSimilar(C){return!!(C instanceof w)&&(this===C||this.data===C.data)}}u.a=w},function(r,u,f){'use strict';(function(h,w){var C=f(471),T={'function':!0,object:!0},P=T[typeof exports]&&exports&&!exports.nodeType?exports:void 0,E=T[typeof h]&&h&&!h.nodeType?h:void 0,S=f.i(C.a)(P&&E&&'object'==typeof w&&w),O=f.i(C.a)(T[typeof self]&&self),R=f.i(C.a)(T[typeof window]&&window),V=f.i(C.a)(T[typeof this]&&this),F=S||R!==(V&&V.window)&&R||O||V||Function('return this')();u.a=F}).call(u,f(156)(r),f(155))},function(r,u,f){'use strict';function h(z){N in z||(Object.defineProperty(z,N,{value:new Map}),Object.defineProperty(z,M,{value:new Map}),Object.defineProperty(z,D,{value:new Map}))}function w(...z){const U=T(...z),$=Array.from(this._bindings.keys()),K=$.length;if(!U.callback&&1<U.to.length)throw new V.a('observable-bind-to-no-callback: Binding multiple observables only possible with callback.');if(1<K&&U.callback)throw new V.a('observable-bind-to-extra-callback: Cannot bind multiple attributes and use a callback in one binding.');U.to.forEach((W)=>{if(W.attrs.length&&W.attrs.length!==K)throw new V.a('observable-bind-to-attrs-length: The number of attributes must match.');W.attrs.length||(W.attrs=this._bindAttrs)}),this._to=U.to,U.callback&&(this._bindings.get($[0]).callback=U.callback),O(this._observable,this._to),E(this),this._bindAttrs.forEach((W)=>{S(this._observable,W)})}function C(z){return z.every((U)=>'string'==typeof U)}function T(...z){if(!z.length)throw new V.a('observable-bind-to-parse-error: Invalid argument syntax in `to()`.');const U={to:[]};let $;return'function'==typeof z[z.length-1]&&(U.callback=z.pop()),z.forEach((K)=>{if('string'==typeof K)$.attrs.push(K);else if('object'==typeof K)$={observable:K,attrs:[]},U.to.push($);else throw new V.a('observable-bind-to-parse-error: Invalid argument syntax in `to()`.')}),U}function P(z,U,$,K){const W=z[M],H=W.get($),Y=H||{};Y[K]||(Y[K]=new Set),Y[K].add(U),H||W.set($,Y)}function E(z){let U;z._bindings.forEach(($,K)=>{z._to.forEach((W)=>{U=W.attrs[$.callback?0:z._bindAttrs.indexOf(K)],$.to.push([W.observable,U]),P(z._observable,$,W.observable,U)})})}function S(z,U){const $=z[D],K=$.get(U);let W;K.callback?W=K.callback.apply(z,K.to.map((H)=>H[0][H[1]])):(W=K.to[0],W=W[0][W[1]]),z.hasOwnProperty(U)?z[U]=W:z.set(U,W)}function O(z,U){U.forEach(($)=>{const K=z[M];let W;K.get($.observable)||z.listenTo($.observable,'change',(H,Y)=>{W=K.get($.observable)[Y],W&&W.forEach((G)=>{S(z,G.attr)})})})}var R=f(7),V=f(0),F=f(50),I=f(14);const N=Symbol('attributes'),M=Symbol('boundObservables'),D=Symbol('boundAttributes'),q={set(z,U){if(f.i(I.a)(z))return void Object.keys(z).forEach((K)=>{this.set(K,z[K])},this);h(this);const $=this[N];if(z in this&&!$.has(z))throw new V.a('observable-set-cannot-override: Cannot override an existing property.');Object.defineProperty(this,z,{enumerable:!0,configurable:!0,get(){return $.get(z)},set(K){const W=$.get(z);W===K&&$.has(z)||($.set(z,K),this.fire('change:'+z,z,K,W))}}),this[z]=U},bind(...z){if(!z.length||!C(z))throw new V.a('observable-bind-wrong-attrs: All attributes must be strings.');if(new Set(z).size!==z.length)throw new V.a('observable-bind-duplicate-attrs: Attributes must be unique.');h(this);const U=this[D];z.forEach((K)=>{if(U.has(K))throw new V.a('observable-bind-rebind: Cannot bind the same attribute more that once.')});const $=new Map;return z.forEach((K)=>{const W={attr:K,to:[]};U.set(K,W),$.set(K,W)}),{to:w,_observable:this,_bindAttrs:z,_to:[],_bindings:$}},unbind(...z){if(!(N in this))return;const U=this[D],$=this[M];if(z.length){if(!C(z))throw new V.a('observable-unbind-wrong-attrs: Attributes must be strings.');z.forEach((K)=>{const W=U.get(K);let H,Y,G,Z;W.to.forEach((J)=>{H=J[0],Y=J[1],G=$.get(H),Z=G[Y],Z.delete(W),Z.size||delete G[Y],Object.keys(G).length||($.delete(H),this.stopListening(H,'change'))}),U.delete(K)})}else $.forEach((K,W)=>{this.stopListening(W,'change')}),$.clear(),U.clear()}};u.a=q,f.i(F.a)(q,R.a)},function(r,u,f){'use strict';function h(V,F,I,N){if(f.i(O.a)(V)){for(let q of V)h(q,F,I,N);return}const M=Array.from(V.getAttributeKeys());M.push(F.key);const D={name:V.name||'$text',attributes:M,inside:I.context};N.schema.check(D)&&V.setAttribute(F.key,F.value)}var C=f(171),T=f(5),P=f(1),E=f(18),S=f(0),O=f(48);u.a=function(){return new R};class R{constructor(){this._dispatchers=[],this._from=[]}for(...V){return this._dispatchers=V,this}fromElement(V){return this.from({name:V})}fromAttribute(V,F=/.*/){let I={};'style'===V||'class'===V?I[V]=F:(I.attribute={},I.attribute[V]=F);const N=new C.a(I);return this._from.push({matcher:N,consume:!1,priority:null,attributeKey:V}),this}from(V){return V instanceof C.a||(V=new C.a(V)),this._from.push({matcher:V,consume:!1,priority:null}),this}consuming(V){let F=this._from[this._from.length-1];return F.consume=V,this}withPriority(V){let F=this._from[this._from.length-1];return F.priority=V,this}toElement(V){this._setCallback(function(I){return(N,M,D,q)=>{let z=I.matcher.matchAll(M.input);if(z)for(let U of z){const $=V instanceof Function?V(M.input):new T.a(V);if(!$)continue;const K=Array.from($.getAttributeKeys());if(!q.schema.check({name:$.name,attributes:K,inside:M.context}))continue;if(!D.consume(M.input,I.consume||U.match))continue;M.context.push($);const W=q.convertChildren(M.input,D,M),H=P.a.createAt($,'end');E.a.insert(H,W),M.context.pop(),M.output=$;break}}},'normal')}toAttribute(V,F){this._setCallback(function(N){return(M,D,q,z)=>{let U=N.matcher.matchAll(D.input);if(U)for(let $ of U){if(!q.consume(D.input,N.consume||$.match))continue;D.output||(D.output=z.convertChildren(D.input,q,D));let K;if(!(V instanceof Function))K={key:V,value:F?F:D.input.getAttribute(N.attributeKey)};else if(K=V(D.input),!K)return;h(D.output,K,D,z);break}}},'low')}toMarker(V){this._setCallback(function(I){return(N,M,D)=>{const q=I.matcher.matchAll(M.input);if(!q)return;let z;if(z=V instanceof Function?V(M.input):new T.a('$marker',{'data-name':M.input.getAttribute('data-name')}),'$marker'!=z.name||'string'!=typeof z.getAttribute('data-name'))throw new S.a('build-view-converter-invalid-marker: Invalid model element to mark marker range.');for(const U of q)if(D.consume(M.input,I.consume||U.match)){M.output=z;break}}},'normal')}_setCallback(V,F){for(let I of this._from){const N=I.matcher.getElementName(),M=N?'element:'+N:'element',D=V(I),q=null===I.priority?F:I.priority;for(let z of this._dispatchers)z.on(M,D,{priority:q})}}}},function(r,u,f){'use strict';function h(S){return'string'==typeof S?[new T.a(S)]:(f.i(P.a)(S)||(S=[S]),Array.from(S).map((O)=>'string'==typeof O?new T.a(O):O))}var w=f(74),C=f(5),T=f(24),P=f(48);class E{constructor(S){this.markers=new Map,this._children=new w.a,S&&this.insertChildren(0,S)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(S){return'documentFragment'==S}getChild(S){return this._children.getNode(S)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(S){return this._children.getNodeIndex(S)}getChildStartOffset(S){return this._children.getNodeStartOffset(S)}getPath(){return[]}offsetToIndex(S){return this._children.offsetToIndex(S)}appendChildren(S){this.insertChildren(this.childCount,S)}insertChildren(S,O){O=h(O);for(let R of O)R.parent=this;this._children.insertNodes(S,O)}removeChildren(S,O=1){const R=this._children.removeNodes(S,O);for(let V of R)V.parent=null;return R}toJSON(){let S=[];for(let O of this._children)S.push(O.toJSON());return S}static fromJSON(S){let O=[];for(let R of S)R.name?O.push(C.a.fromJSON(R)):O.push(T.a.fromJSON(R));return new E(O)}}u.a=E},function(r,u,f){'use strict';var h=f(96);class w{constructor(C){this.baseVersion=C}toJSON(){const C=f.i(h.a)(this,!0);return C.__className=this.constructor.className,delete C.delta,C}static get className(){return'engine.model.operation.Operation'}static fromJSON(C){return new this(C.baseVersion)}}u.a=w},function(r,u,f){'use strict';function h(O,R,V,F,I){return{done:!1,value:{type:O,item:R,previousPosition:V,nextPosition:F,length:I}}}var w=f(24),C=f(61),T=f(5),P=f(1),E=f(0);class S{constructor(O={}){if(!O.boundaries&&!O.startPosition)throw new E.a('model-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.');const R=O.direction||'forward';if('forward'!=R&&'backward'!=R)throw new E.a('model-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.',{direction:R});this.direction=R,this.boundaries=O.boundaries||null,this.position=O.startPosition?P.a.createFromPosition(O.startPosition):P.a.createFromPosition(this.boundaries['backward'==this.direction?'end':'start']),this.singleCharacters=!!O.singleCharacters,this.shallow=!!O.shallow,this.ignoreElementEnd=!!O.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null,this._visitedParent=this.position.parent}[Symbol.iterator](){return this}skip(O){let R,V,F,I;do F=this.position,I=this._visitedParent,({done:R,value:V}=this.next());while(!R&&O(V));R||(this.position=F,this._visitedParent=I)}next(){return'forward'==this.direction?this._next():this._previous()}_next(){const O=this.position,R=P.a.createFromPosition(this.position),V=this._visitedParent;if(null===V.parent&&R.offset===V.maxOffset)return{done:!0};if(V===this._boundaryEndParent&&R.offset==this.boundaries.end.offset)return{done:!0};const F=R.textNode?R.textNode:R.nodeAfter;if(F instanceof T.a)return this.shallow?R.offset++:(R.path.push(0),this._visitedParent=F),this.position=R,h('elementStart',F,O,R,1);if(F instanceof w.a){let I,N;if(this.singleCharacters)I=1;else{let D=F.endOffset;this._boundaryEndParent==V&&this.boundaries.end.offset<D&&(D=this.boundaries.end.offset),I=D-R.offset}N=R.offset-F.startOffset;const M=new C.a(F,N,I);return R.offset+=I,this.position=R,h('text',M,O,R,I)}return R.path.pop(),R.offset++,this.position=R,this._visitedParent=V.parent,this.ignoreElementEnd?this._next():h('elementEnd',V,O,R)}_previous(){const O=this.position,R=P.a.createFromPosition(this.position),V=this._visitedParent;if(null===V.parent&&0===R.offset)return{done:!0};if(V==this._boundaryStartParent&&R.offset==this.boundaries.start.offset)return{done:!0};const F=R.textNode?R.textNode:R.nodeBefore;if(F instanceof T.a)return R.offset--,this.shallow?(this.position=R,h('elementStart',F,O,R,1)):(R.path.push(F.maxOffset),this.position=R,this._visitedParent=F,this.ignoreElementEnd?this._previous():h('elementEnd',F,O,R));if(F instanceof w.a){let I,N;if(this.singleCharacters)I=1;else{let D=F.startOffset;this._boundaryStartParent==V&&this.boundaries.start.offset>D&&(D=this.boundaries.start.offset),I=R.offset-D}N=R.offset-F.startOffset;const M=new C.a(F,N-I,I);return R.offset-=I,this.position=R,h('text',M,O,R,I)}return R.path.pop(),this.position=R,this._visitedParent=V.parent,h('elementStart',V,O,R,1)}}u.a=S},function(r,u){'use strict';u.a=function(w,C,T){var P=-1,E=w.length;0>C&&(C=-C>E?0:E+C),T=T>E?E:T,0>T&&(T+=E),E=C>T?0:T-C>>>0,C>>>=0;for(var S=Array(E);++P<E;)S[P]=w[P+C];return S}},function(r,u){'use strict';var C=/^(?:0|[1-9]\d*)$/;u.a=function(T,P){return P=null==P?9007199254740991:P,!!P&&('number'==typeof T||C.test(T))&&-1<T&&0==T%1&&T<P}},function(r,u){'use strict';const h={error(w,C){console.error(w,C)},warn(w,C){console.warn(w,C)}};u.a=h},function(r,u,f){'use strict';var w=f(102),C=f(162),T=f(116),P=f(44),E=f(174),S=f(0);u.a=function(){return new O};class O{constructor(){this._dispatchers=[],this._from=null}for(...R){return this._dispatchers=R,this}fromElement(R){return this._from={type:'element',name:R,priority:null},this}fromAttribute(R){return this._from={type:'attribute',key:R,priority:null},this}fromMarker(R){return this._from={type:'marker',name:R,priority:null},this}withPriority(R){return this._from.priority=R,this}toElement(R){const V=null===this._from.priority?'normal':this._from.priority;for(let F of this._dispatchers)'element'==this._from.type?(R='string'==typeof R?new P.a(R):R,F.on('insert:'+this._from.name,f.i(w.a)(R),{priority:V})):'attribute'==this._from.type?(R='string'==typeof R?new T.a(R):R,F.on('addAttribute:'+this._from.key,f.i(w.b)(R),{priority:V}),F.on('changeAttribute:'+this._from.key,f.i(w.b)(R),{priority:V}),F.on('removeAttribute:'+this._from.key,f.i(w.c)(R),{priority:V}),F.on('selectionAttribute:'+this._from.key,f.i(C.a)(R),{priority:V})):(R='string'==typeof R?new T.a(R):R,F.on('addMarker:'+this._from.name,f.i(w.d)(R),{priority:V}),F.on('removeMarker:'+this._from.name,f.i(w.e)(R),{priority:V}),F.on('selectionMarker:'+this._from.name,f.i(C.b)(R),{priority:V}))}toStamp(R){for(let V of this._dispatchers){if('marker'!=this._from.type)throw new S.a('build-model-converter-non-marker-to-stamp: To-stamp conversion is supported only from model markers.');const F=null===this._from.priority?'normal':this._from.priority;R='string'==typeof R?new E.a(R):R,V.on('addMarker:'+this._from.name,f.i(w.f)(R),{priority:F}),V.on('removeMarker:'+this._from.name,f.i(w.g)(R),{priority:F})}}toAttribute(R,V){if('attribute'!=this._from.type)throw new S.a('build-model-converter-non-attribute-to-attribute: To-attribute conversion is supported only from model attributes.');let F=R?'string'==typeof R?V?function(){return{key:R,value:V}}:function(I){return{key:R,value:I}}:R:void 0;for(let I of this._dispatchers){const N={priority:this._from.priority||'normal'};I.on('addAttribute:'+this._from.key,f.i(w.h)(F),N),I.on('changeAttribute:'+this._from.key,f.i(w.h)(F),N),I.on('removeAttribute:'+this._from.key,f.i(w.i)(F),N)}}}},function(r,u,f){'use strict';var h=f(36),w=f(1),C=f(74),T=f(43),P=f(18),E=f(24),S=f(5);class O extends h.a{constructor(R,V,F){super(F),this.position=w.a.createFromPosition(R),this.nodes=new C.a(f.i(P.b)(V))}get type(){return'insert'}clone(){const R=new C.a([...this.nodes].map((V)=>V.clone(!0)));return new O(this.position,R,this.baseVersion)}getReversed(){return new T.a(this.position,this.nodes.maxOffset,this.baseVersion+1)}_execute(){const R=this.nodes;this.nodes=new C.a([...R].map((F)=>F.clone(!0)));const V=P.a.insert(this.position,R);return{range:V}}static get className(){return'engine.model.operation.InsertOperation'}static fromJSON(R,V){let F=[];for(let I of R.nodes)I.name?F.push(S.a.fromJSON(I)):F.push(E.a.fromJSON(I));return new O(w.a.fromJSON(R.position,V),F,R.baseVersion)}}u.a=O},function(r,u,f){'use strict';var h=f(30),w=f(1),C=f(5),T=f(113);class P extends h.a{constructor(E,S,O){const R=E.root.document.graveyard,V=new w.a(R,[R.maxOffset,0]);super(E,S,V,O),this._needsHolderElement=!0}get type(){return'remove'}get _holderElementOffset(){return this.targetPosition.path[0]}set _holderElementOffset(E){this.targetPosition.path[0]=E}getReversed(){return new T.a(this.targetPosition,this.howMany,this.sourcePosition,this.baseVersion+1)}clone(){let E=new P(this.sourcePosition,this.howMany,this.baseVersion);return E.targetPosition=w.a.createFromPosition(this.targetPosition),E}_execute(){if(this._needsHolderElement){const E=this.targetPosition.root,S=new C.a('$graveyardHolder');E.insertChildren(this._holderElementOffset,S),this.sourcePosition.root==E&&this.sourcePosition.path[0]>=this._holderElementOffset&&this.sourcePosition.path[0]++}return super._execute()}static get className(){return'engine.model.operation.RemoveOperation'}static fromJSON(E,S){let O=w.a.fromJSON(E.sourcePosition,S);const R=new P(O,E.howMany,E.baseVersion);return R.targetPosition=w.a.fromJSON(E.targetPosition,S),R._needsHolderElement=E._needsHolderElement,R}}u.a=P},function(r,u,f){'use strict';function h(){return 0===this.childCount?0:null}var w=f(25);class C extends w.a{constructor(T,P,E){super(T,P,E),this.getFillerOffset=h}is(T,P=null){return P?'containerElement'==T&&P==this.name||super.is(T,P):'containerElement'==T||super.is(T)}}u.a=C},function(r,u,f){'use strict';function h(P){return P.item.is('attributeElement')||P.item.is('uiElement')}var w=f(26),C=f(54);class T{constructor(P,E=null){this.start=w.a.createFromPosition(P),this.end=E?w.a.createFromPosition(E):w.a.createFromPosition(P)}*[Symbol.iterator](){yield*new C.a({boundaries:this,ignoreElementEnd:!0})}get isCollapsed(){return this.start.isEqual(this.end)}get isFlat(){return this.start.parent===this.end.parent}get root(){return this.start.root}getEnlarged(){let P=this.start.getLastMatchingPosition(h,{direction:'backward'}),E=this.end.getLastMatchingPosition(h);return P.parent.is('text')&&P.isAtStart&&(P=w.a.createBefore(P.parent)),E.parent.is('text')&&E.isAtEnd&&(E=w.a.createAfter(E.parent)),new T(P,E)}getTrimmed(){let P=this.start.getLastMatchingPosition(h),E=this.end.getLastMatchingPosition(h,{direction:'backward'}),S=P.nodeAfter,O=E.nodeBefore;return S&&S.is('text')&&(P=new w.a(S,0)),O&&O.is('text')&&(E=new w.a(O,O.data.length)),new T(P,E)}isEqual(P){return this==P||this.start.isEqual(P.start)&&this.end.isEqual(P.end)}containsPosition(P){return P.isAfter(this.start)&&P.isBefore(this.end)}containsRange(P){return this.containsPosition(P.start)&&this.containsPosition(P.end)}getDifference(P){const E=[];return this.isIntersecting(P)?(this.containsPosition(P.start)&&E.push(new T(this.start,P.start)),this.containsPosition(P.end)&&E.push(new T(P.end,this.end))):E.push(T.createFromRange(this)),E}getIntersection(P){if(this.isIntersecting(P)){let E=this.start,S=this.end;return this.containsPosition(P.start)&&(E=P.start),this.containsPosition(P.end)&&(S=P.end),new T(E,S)}return null}getWalker(P={}){return P.boundaries=this,new C.a(P)}*getItems(P={}){P.boundaries=this,P.ignoreElementEnd=!0;const E=new C.a(P);for(let S of E)yield S.item}*getPositions(P={}){P.boundaries=this;const E=new C.a(P);yield E.position;for(let S of E)yield S.nextPosition}isIntersecting(P){return this.start.isBefore(P.end)&&this.end.isAfter(P.start)}static createFromParentsAndOffsets(P,E,S,O){return new this(new w.a(P,E),new w.a(S,O))}static createFromRange(P){return new this(P.start,P.end)}static createFromPositionAndShift(P,E){const S=P,O=P.getShiftedBy(E);return 0<E?new this(S,O):new this(O,S)}static createIn(P){return this.createFromParentsAndOffsets(P,0,P,P.childCount)}static createOn(P){return this.createFromPositionAndShift(w.a.createBefore(P),1)}}u.a=T},function(r,u,f){'use strict';var T=f(153),P=f(5);u.c=function(S,O){return S.setCustomProperty(E,!0),f.i(T.a)(S,{label:function(){const V=S.getChild(0),F=V.getAttribute('alt');return F?`${F} ${O}`:O}})},u.a=function(S){return!!S.getCustomProperty(E)&&f.i(T.b)(S)},u.b=function(S){return S instanceof P.a&&'image'==S.name};const E=Symbol('isImage')},function(r,u){'use strict';u.a={window,document}},function(r,u){'use strict';u.a=function(w){return!!(w&&w[Symbol.iterator])}},function(r,u,f){'use strict';var w=f(83),C=f(125),T=f(126),P=f(136),E=f(482),S=f(95);u.a=function(R,V,F){var I=-1,N=C.a,M=R.length,D=!0,q=[],z=q;if(F)D=!1,N=T.a;else if(M>=200){var U=V?null:f.i(E.a)(R);if(U)return f.i(S.a)(U);D=!1,N=P.a,z=new w.a}else z=V?[]:q;outer:for(;++I<M;){var $=R[I],K=V?V($):$;if($=F||0!==$?$:0,D&&K===K){for(var W=z.length;W--;)if(z[W]===K)continue outer;V&&z.push(K),q.push($)}else N(z,K,F)||(z!==q&&z.push(K),q.push($))}return q}},function(r,u,f){'use strict';var h=f(523);f.d(u,'a',function(){return h.a})},function(r,u){'use strict';u.a=function(w){return!!w&&'object'==typeof w}},function(r,u,f){'use strict';var w=f(51),T=Object.prototype,P=T.toString;u.a=function(E){return'symbol'==typeof E||f.i(w.a)(E)&&P.call(E)=='[object Symbol]'}},function(r,u,f){'use strict';var h=f(81),w=f(4);class C{constructor(T){this.document=T,this.isEnabled=!1}enable(){this.isEnabled=!0}disable(){this.isEnabled=!1}destroy(){this.disable(),this.stopListening()}}u.a=C,f.i(w.a)(C,h.a)},function(r,u,f){'use strict';var h=f(25),w=f(31),C=f(376),T=f(26),P=f(0);class E{constructor(S={}){if(!S.boundaries&&!S.startPosition)throw new P.a('view-tree-walker-no-start-position: Neither boundaries nor starting position have been defined.');if(S.direction&&'forward'!=S.direction&&'backward'!=S.direction)throw new P.a('view-tree-walker-unknown-direction: Only `backward` and `forward` direction allowed.',{direction:S.direction});this.boundaries=S.boundaries||null,this.position=S.startPosition?T.a.createFromPosition(S.startPosition):T.a.createFromPosition(S.boundaries['backward'==S.direction?'end':'start']),this.direction=S.direction||'forward',this.singleCharacters=!!S.singleCharacters,this.shallow=!!S.shallow,this.ignoreElementEnd=!!S.ignoreElementEnd,this._boundaryStartParent=this.boundaries?this.boundaries.start.parent:null,this._boundaryEndParent=this.boundaries?this.boundaries.end.parent:null}[Symbol.iterator](){return this}skip(S){let O,R,V;do V=this.position,({done:O,value:R}=this.next());while(!O&&S(R));O||(this.position=V)}next(){return'forward'==this.direction?this._next():this._previous()}_next(){let S=T.a.createFromPosition(this.position);const O=this.position,R=S.parent;if(null===R.parent&&S.offset===R.childCount)return{done:!0};if(R===this._boundaryEndParent&&S.offset==this.boundaries.end.offset)return{done:!0};let V;if(R instanceof w.a){if(S.isAtEnd)return this.position=T.a.createAfter(R),this._next();V=R.data[S.offset]}else V=R.getChild(S.offset);if(V instanceof h.a)return this.shallow?S.offset++:S=new T.a(V,0),this.position=S,this._formatReturnValue('elementStart',V,O,S,1);if(V instanceof w.a){if(this.singleCharacters)return S=new T.a(V,0),this.position=S,this._next();let F=V.data.length,I=V;return V==this._boundaryEndParent?(F=this.boundaries.end.offset,I=new C.a(V,0,F),S=T.a.createAfter(I)):S.offset++,this.position=S,this._formatReturnValue('text',I,O,S,F)}if('string'==typeof V){let F;if(this.singleCharacters)F=1;else{const N=R===this._boundaryEndParent?this.boundaries.end.offset:R.data.length;F=N-S.offset}const I=new C.a(R,S.offset,F);return S.offset+=F,this.position=S,this._formatReturnValue('text',I,O,S,F)}return S=T.a.createAfter(R),this.position=S,this.ignoreElementEnd?this._next():this._formatReturnValue('elementEnd',R,O,S)}_previous(){let S=T.a.createFromPosition(this.position);const O=this.position,R=S.parent;if(null===R.parent&&0===S.offset)return{done:!0};if(R==this._boundaryStartParent&&S.offset==this.boundaries.start.offset)return{done:!0};let V;if(R instanceof w.a){if(S.isAtStart)return this.position=T.a.createBefore(R),this._previous();V=R.data[S.offset-1]}else V=R.getChild(S.offset-1);if(V instanceof h.a)return this.shallow?(S.offset--,this.position=S,this._formatReturnValue('elementStart',V,O,S,1)):(S=new T.a(V,V.childCount),this.position=S,this.ignoreElementEnd?this._previous():this._formatReturnValue('elementEnd',V,O,S));if(V instanceof w.a){if(this.singleCharacters)return S=new T.a(V,V.data.length),this.position=S,this._previous();let F=V.data.length,I=V;if(V==this._boundaryStartParent){const N=this.boundaries.start.offset;I=new C.a(V,N,V.data.length-N),F=I.data.length,S=T.a.createBefore(I)}else S.offset--;return this.position=S,this._formatReturnValue('text',I,O,S,F)}if('string'==typeof V){let F;if(!this.singleCharacters){const N=R===this._boundaryStartParent?this.boundaries.start.offset:0;F=S.offset-N}else F=1;S.offset-=F;const I=new C.a(R,S.offset,F);return this.position=S,this._formatReturnValue('text',I,O,S,F)}return S=T.a.createBefore(R),this.position=S,this._formatReturnValue('elementStart',R,O,S,1)}_formatReturnValue(S,O,R,V,F){return O instanceof C.a&&(O.offsetInText+O.data.length==O.textNode.data.length&&('forward'!=this.direction||this.boundaries&&this.boundaries.end.isEqual(this.position)?R=T.a.createAfter(O.textNode):(V=T.a.createAfter(O.textNode),this.position=V)),0===O.offsetInText&&('backward'!=this.direction||this.boundaries&&this.boundaries.start.isEqual(this.position)?R=T.a.createBefore(O.textNode):(V=T.a.createBefore(O.textNode),this.position=V))),{done:!1,value:{type:S,item:O,previousPosition:R,nextPosition:V,length:F}}}}u.a=E},function(r,u,f){'use strict';var w=f(238);u.a=function(C,T){var P=C[T];return f.i(w.a)(P)?P:void 0}},function(r,u,f){'use strict';var w=f(12),C=f(52),T=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,P=/^\w*$/;u.a=function(E,S){if(f.i(w.a)(E))return!1;var O=typeof E;return'number'==O||'symbol'==O||'boolean'==O||null==E||f.i(C.a)(E)||P.test(E)||!T.test(E)||null!=S&&E in Object(S)}},function(r,u,f){'use strict';var w=f(52);u.a=function(T){if('string'==typeof T||f.i(w.a)(T))return T;var P=T+'';return'0'==P&&1/T==-(1/0)?'-0':P}},function(r,u){'use strict';u.a=function(w,C){return w===C||w!==w&&C!==C}},function(r,u,f){'use strict';var h=f(152),w=f(0);class C{constructor(T){this.parent=null,this._attrs=f.i(h.a)(T)}get index(){let T;if(!this.parent)return null;if(null===(T=this.parent.getChildIndex(this)))throw new w.a('model-node-not-found-in-parent: The node\'s parent does not contain this node.');return T}get startOffset(){let T;if(!this.parent)return null;if(null===(T=this.parent.getChildStartOffset(this)))throw new w.a('model-node-not-found-in-parent: The node\'s parent does not contain this node.');return T}get offsetSize(){return 1}get endOffset(){return this.parent?this.startOffset+this.offsetSize:null}get nextSibling(){const T=this.index;return null!==T&&this.parent.getChild(T+1)||null}get previousSibling(){const T=this.index;return null!==T&&this.parent.getChild(T-1)||null}get root(){let T=this;for(;T.parent;)T=T.parent;return T}get document(){return this.root==this?null:this.root.document||null}clone(){return new C(this._attrs)}getPath(){const T=[];for(let P=this;P.parent;)T.unshift(P.startOffset),P=P.parent;return T}getAncestors(T={includeNode:!1,parentFirst:!1}){const P=[];for(let E=T.includeNode?this:this.parent;E;)P[T.parentFirst?'push':'unshift'](E),E=E.parent;return P}remove(){this.parent.removeChildren(this.index)}hasAttribute(T){return this._attrs.has(T)}getAttribute(T){return this._attrs.get(T)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}setAttribute(T,P){this._attrs.set(T,P)}setAttributesTo(T){this._attrs=f.i(h.a)(T)}removeAttribute(T){return this._attrs.delete(T)}clearAttributes(){this._attrs.clear()}toJSON(){let T={};return this._attrs.size&&(T.attributes=[...this._attrs]),T}}u.a=C},function(r,u,f){'use strict';function h(I,N){return!N.has(I)&&(N.add(I),I.document.schema.itemExtends(I.name,'$block')&&I.parent)}function w(I,N){const M=I.parent.getAncestors({parentFirst:!0,includeNode:!0}),D=M.find((q)=>h(q,N));return M.forEach((q)=>N.add(q)),D}var C=f(1),T=f(5),P=f(3),E=f(7),S=f(0),O=f(4),R=f(152),V=f(541);class F{constructor(I,N){this._lastRangeBackward=!1,this._ranges=[],this._attrs=new Map,I&&this.setRanges(I,N)}get anchor(){if(0<this._ranges.length){const I=this._ranges[this._ranges.length-1];return this._lastRangeBackward?I.end:I.start}return null}get focus(){if(0<this._ranges.length){const I=this._ranges[this._ranges.length-1];return this._lastRangeBackward?I.start:I.end}return null}get isCollapsed(){const I=this._ranges.length;return!(1!==I)&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}isEqual(I){if(this.rangeCount!=I.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(I.anchor)||!this.focus.isEqual(I.focus))return!1;for(let N of this._ranges){let M=!1;for(let D of I._ranges)if(N.isEqual(D)){M=!0;break}if(!M)return!1}return!0}*getRanges(){for(let I of this._ranges)yield P.a.createFromRange(I)}getFirstRange(){let I=null;for(let N of this._ranges)(!I||N.start.isBefore(I.start))&&(I=N);return I?P.a.createFromRange(I):null}getLastRange(){let I=null;for(let N of this._ranges)(!I||N.end.isAfter(I.end))&&(I=N);return I?P.a.createFromRange(I):null}getFirstPosition(){const I=this.getFirstRange();return I?C.a.createFromPosition(I.start):null}getLastPosition(){const I=this.getLastRange();return I?C.a.createFromPosition(I.end):null}addRange(I,N=!1){this._pushRange(I),this._lastRangeBackward=!!N,this.fire('change:range',{directChange:!0})}removeAllRanges(){0<this._ranges.length&&(this._removeAllRanges(),this.fire('change:range',{directChange:!0}))}setRanges(I,N=!1){I=Array.from(I);const M=I.some((D)=>{if(!(D instanceof P.a))throw new S.a('model-selection-added-not-range: Trying to add an object that is not an instance of Range.');return this._ranges.every((q)=>{return!q.isEqual(D)})});if(I.length!==this._ranges.length||M){this._removeAllRanges();for(let D of I)this._pushRange(D);this._lastRangeBackward=!!N,this.fire('change:range',{directChange:!0})}}setTo(I){this.setRanges(I.getRanges(),I.isBackward)}collapse(I,N){const M=C.a.createAt(I,N),D=new P.a(M,M);this.setRanges([D])}collapseToStart(){const I=this.getFirstPosition();null!==I&&this.setRanges([new P.a(I,I)])}collapseToEnd(){const I=this.getLastPosition();null!==I&&this.setRanges([new P.a(I,I)])}setFocus(I,N){if(null===this.anchor)throw new S.a('model-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.');const M=C.a.createAt(I,N);if('same'!=M.compareWith(this.focus)){const D=this.anchor;this._ranges.length&&this._popRange(),'before'==M.compareWith(D)?this.addRange(new P.a(M,D),!0):this.addRange(new P.a(D,M))}}getAttribute(I){return this._attrs.get(I)}getAttributes(){return this._attrs.entries()}getAttributeKeys(){return this._attrs.keys()}hasAttribute(I){return this._attrs.has(I)}clearAttributes(){if(0<this._attrs.size){const I=Array.from(this._attrs.keys());this._attrs.clear(),this.fire('change:attribute',{attributeKeys:I,directChange:!0})}}removeAttribute(I){this.hasAttribute(I)&&(this._attrs.delete(I),this.fire('change:attribute',{attributeKeys:[I],directChange:!0}))}setAttribute(I,N){this.getAttribute(I)!==N&&(this._attrs.set(I,N),this.fire('change:attribute',{attributeKeys:[I],directChange:!0}))}setAttributesTo(I){if(I=f.i(R.a)(I),!f.i(V.a)(I,this._attrs)){const N=new Set(Array.from(I.keys()).concat(Array.from(this._attrs.keys())));for(let[M,D]of I)this._attrs.get(M)===D&&N.delete(M);this._attrs=I,this.fire('change:attribute',{attributeKeys:Array.from(N),directChange:!0})}}getSelectedElement(){if(1!==this.rangeCount)return null;const I=this.getFirstRange(),N=I.start.nodeAfter,M=I.end.nodeBefore;return N instanceof T.a&&N==M?N:null}*getSelectedBlocks(){const I=new WeakSet;for(const N of this.getRanges()){const M=w(N.start,I);M&&(yield M);for(const q of N.getWalker())'elementEnd'==q.type&&h(q.item,I)&&(yield q.item);const D=w(N.end,I);D&&(yield D)}}static createFromSelection(I){const N=new this;return N.setTo(I),N}_pushRange(I){if(!(I instanceof P.a))throw new S.a('model-selection-added-not-range: Trying to add an object that is not an instance of Range.');this._checkRange(I),this._ranges.push(P.a.createFromRange(I))}_checkRange(I){for(let N=0;N<this._ranges.length;N++)if(I.isIntersecting(this._ranges[N]))throw new S.a('model-selection-range-intersects: Trying to add a range that intersects with another range from selection.',{addedRange:I,intersectingRange:this._ranges[N]})}_popRange(){this._ranges.pop()}_removeAllRanges(){for(;0<this._ranges.length;)this._popRange()}}u.a=F,f.i(O.a)(F,E.a)},function(r,u,f){'use strict';var h=f(0);class w{constructor(C,T,P){if(this.textNode=C,0>T||T>C.offsetSize)throw new h.a('model-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.');if(0>P||T+P>C.offsetSize)throw new h.a('model-textproxy-wrong-length: Given length value is incorrect.');this.data=C.data.substring(T,T+P),this.offsetInText=T}get startOffset(){return null===this.textNode.startOffset?null:this.textNode.startOffset+this.offsetInText}get offsetSize(){return this.data.length}get endOffset(){return null===this.startOffset?null:this.startOffset+this.offsetSize}get isPartial(){return this.offsetSize!==this.textNode.offsetSize}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(C){return'textProxy'==C}getPath(){const C=this.textNode.getPath();return 0<C.length&&(C[C.length-1]+=this.offsetInText),C}getAncestors(C={includeNode:!1,parentFirst:!1}){const T=[];for(let P=C.includeNode?this:this.parent;P;)T[C.parentFirst?'push':'unshift'](P),P=P.parent;return T}hasAttribute(C){return this.textNode.hasAttribute(C)}getAttribute(C){return this.textNode.getAttribute(C)}getAttributes(){return this.textNode.getAttributes()}getAttributeKeys(){return this.textNode.getAttributeKeys()}}u.a=w},function(r,u,f){'use strict';function h(N){return N instanceof Text&&N.data.substr(0,V)===F}function E(N,M){if(M.keyCode==S.d.arrowleft){const D=M.domTarget.ownerDocument.defaultView.getSelection();if(1==D.rangeCount&&D.getRangeAt(0).collapsed){const q=D.getRangeAt(0).startContainer,z=D.getRangeAt(0).startOffset;h(q)&&z<=V&&D.collapse(q,0)}}}var S=f(22);f.d(u,'i',function(){return F}),u.c=h,u.f=function(N){return N.data.length==V&&h(N)},u.g=function(N){return h(N)?N.data.slice(V):N.data},u.e=function(N,M){let D=I.get(M);return D||(D=M(window.document),I.set(M,D)),N.isEqualNode(D)},u.h=function(N){N.on('keydown',E)};u.b=(N)=>{const M=N.createElement('br');return M.dataset.ckeFiller=!0,M};u.a=(N)=>N.createTextNode('\xA0');const V=7;u.d=V;let F='';for(let N=0;N<V;N++)F+='\u200B';const I=new WeakMap},function(r,u,f){'use strict';var h=f(53),w=f(118);class C extends h.a{constructor(T){super(T),this.useCapture=!1}observe(T){const P='string'==typeof this.domEventType?[this.domEventType]:this.domEventType;P.forEach((E)=>{this.listenTo(T,E,(S,O)=>{this.isEnabled&&this.onDomEvent(O)},{useCapture:this.useCapture})})}fire(T,P,E){this.isEnabled&&this.document.fire(T,new w.a(this.document,P,E))}}u.a=C},function(r,u,f){'use strict';var h=f(0),w=f(45),C=f(26),T=f(4),P=f(7),E=f(25);class S{constructor(O,R){this._ranges=[],this._lastRangeBackward=!1,this._isFake=!1,this._fakeSelectionLabel='',O&&this.setRanges(O,R)}setFake(O=!0,R={}){this._isFake=O,this._fakeSelectionLabel=O?R.label||'':'',this.fire('change')}get isFake(){return this._isFake}get fakeSelectionLabel(){return this._fakeSelectionLabel}get anchor(){if(!this._ranges.length)return null;const O=this._ranges[this._ranges.length-1],R=this._lastRangeBackward?O.end:O.start;return C.a.createFromPosition(R)}get focus(){if(!this._ranges.length)return null;const O=this._ranges[this._ranges.length-1],R=this._lastRangeBackward?O.start:O.end;return C.a.createFromPosition(R)}get isCollapsed(){return 1===this.rangeCount&&this._ranges[0].isCollapsed}get rangeCount(){return this._ranges.length}get isBackward(){return!this.isCollapsed&&this._lastRangeBackward}get editableElement(){return this.anchor?this.anchor.editableElement:null}addRange(O,R){if(!(O instanceof w.a))throw new h.a('view-selection-invalid-range: Invalid Range.');this._pushRange(O),this._lastRangeBackward=!!R,this.fire('change')}*getRanges(){for(let O of this._ranges)yield w.a.createFromRange(O)}getFirstRange(){let O=null;for(let R of this._ranges)(!O||R.start.isBefore(O.start))&&(O=R);return O?w.a.createFromRange(O):null}getLastRange(){let O=null;for(let R of this._ranges)(!O||R.end.isAfter(O.end))&&(O=R);return O?w.a.createFromRange(O):null}getFirstPosition(){const O=this.getFirstRange();return O?C.a.createFromPosition(O.start):null}getLastPosition(){const O=this.getLastRange();return O?C.a.createFromPosition(O.end):null}isEqual(O){if(this.isFake!=O.isFake)return!1;if(this.isFake&&this.fakeSelectionLabel!=O.fakeSelectionLabel)return!1;if(this.rangeCount!=O.rangeCount)return!1;if(0===this.rangeCount)return!0;if(!this.anchor.isEqual(O.anchor)||!this.focus.isEqual(O.focus))return!1;for(let R of this._ranges){let V=!1;for(let F of O._ranges)if(R.isEqual(F)){V=!0;break}if(!V)return!1}return!0}removeAllRanges(){this._ranges.length&&(this._ranges=[],this.fire('change'))}setRanges(O,R){this._ranges=[];for(let V of O){if(!(V instanceof w.a))throw new h.a('view-selection-invalid-range: Invalid Range.');this._pushRange(V)}this._lastRangeBackward=!!R,this.fire('change')}setTo(O){this._isFake=O._isFake,this._fakeSelectionLabel=O._fakeSelectionLabel,this.setRanges(O.getRanges(),O.isBackward)}collapse(O,R){const V=C.a.createAt(O,R),F=new w.a(V,V);this.setRanges([F])}collapseToStart(){const O=this.getFirstPosition();null!==O&&this.setRanges([new w.a(O,O)])}collapseToEnd(){const O=this.getLastPosition();null!==O&&this.setRanges([new w.a(O,O)])}setFocus(O,R){if(null===this.anchor)throw new h.a('view-selection-setFocus-no-ranges: Cannot set selection focus if there are no ranges in selection.');const V=C.a.createAt(O,R);if('same'!=V.compareWith(this.focus)){const F=this.anchor;this._ranges.pop(),'before'==V.compareWith(F)?this.addRange(new w.a(V,F),!0):this.addRange(new w.a(F,V))}}getSelectedElement(){if(1!==this.rangeCount)return null;const O=this.getFirstRange(),R=O.start.nodeAfter,V=O.end.nodeBefore;return R instanceof E.a&&R==V?R:null}static createFromSelection(O){const R=new S;return R.setTo(O),R}_pushRange(O){for(let R of this._ranges)if(O.isIntersecting(R))throw new h.a('view-selection-range-intersects: Trying to add a range that intersects with another range from selection.',{addedRange:O,intersectingRange:R});this._ranges.push(w.a.createFromRange(O))}}u.a=S,f.i(T.a)(S,P.a)},function(r,u){'use strict';u.a=function(w,C){const T=_Mathmin(w.length,C.length);for(let P=0;P<T;P++)if(w[P]!=C[P])return P;return w.length==C.length?'same':w.length<C.length?'prefix':'extension'}},function(r,u){'use strict';u.a=function(w){const C=w.next();return C.done?null:C.value}},function(r,u,f){'use strict';var h=f(81),w=f(33),C=f(0),T=f(4);class P{constructor(){this.set('isFocused',!1),this.focusedElement=null,this._elements=new Set,this._nextEventLoopTimeout=null}add(E){if(this._elements.has(E))throw new C.a('focusTracker-add-element-already-exist');this.listenTo(E,'focus',()=>this._focus(E),{useCapture:!0}),this.listenTo(E,'blur',()=>this._blur(),{useCapture:!0}),this._elements.add(E)}remove(E){E===this.focusedElement&&this._blur(E),this._elements.has(E)&&(this.stopListening(E),this._elements.delete(E))}_focus(E){clearTimeout(this._nextEventLoopTimeout),this.focusedElement=E,this.isFocused=!0}_blur(){this._nextEventLoopTimeout=setTimeout(()=>{this.focusedElement=null,this.isFocused=!1},0)}}u.a=P,f.i(T.a)(P,h.a),f.i(T.a)(P,w.a)},function(r,u,f){'use strict';var h=f(81),w=f(22);u.a=class{constructor(){this._listener=Object.create(h.a),this._keystrokes=new Map}listenTo(T){this._listener.listenTo(T,'keydown',(P,E)=>{this.press(E)})}set(T,P){const E=f.i(w.a)(T),S=this._keystrokes.get(E);S?S.push(P):this._keystrokes.set(E,[P])}press(T){const P=f.i(w.c)(T),E=this._keystrokes.get(P);if(!E)return!1;for(let S of E)S(T,()=>{T.preventDefault(),T.stopPropagation()});return!0}destroy(){this._keystrokes=new Map,this._listener.stopListening()}}},function(r,u,f){'use strict';var w=f(58),C=Object.prototype,T=C.hasOwnProperty;u.a=function(P,E,S){var O=P[E];T.call(P,E)&&f.i(w.a)(O,S)&&(S!==void 0||E in P)||(P[E]=S)}},function(r,u,f){'use strict';var w=f(83),C=f(125),T=f(126),P=f(27),E=f(134),S=f(136);u.a=function(R,V,F,I){var N=-1,M=C.a,D=!0,q=R.length,z=[],U=V.length;if(!q)return z;F&&(V=f.i(P.a)(V,f.i(E.a)(F))),I?(M=T.a,D=!1):V.length>=200&&(M=S.a,D=!1,V=new w.a(V));outer:for(;++N<q;){var $=R[N],K=F?F($):$;if($=I||0!==$?$:0,D&&K===K){for(var W=U;W--;)if(V[W]===K)continue outer;z.push($)}else M(V,K,I)||z.push($)}return z}},function(r,u,f){'use strict';var w=f(201),C=f(462),T=f(209),P=f(97),E=f(39),S=f(93);u.a=function(O){var R=f.i(S.a)(O);if(!(R||f.i(P.a)(O)))return f.i(C.a)(O);var V=f.i(T.a)(O),I=V||[],N=I.length;for(var M in O)!f.i(w.a)(O,M)||!!V&&('length'==M||f.i(E.a)(M,N))||R&&'constructor'==M||I.push(M);return I}},function(r,u){'use strict';u.a=function(){let w='e';for(let C=0;8>C;C++)w+=_Mathfloor(65536*(1+Math.random())).toString(16).substring(1);return w}},function(r,u,f){'use strict';function h(M,D,q,z){if(q.test(D.input,{name:D.input.name})&&C(D.input,D.context,z.schema,!1)){D.context.push('paragraph');const U=z.convertItem(D.input,q,D);D.context.pop(),D.output=U}}function w(M,D,q,z){if(!D.output)return;const U=I.paragraphLikeElements.has(D.input.name)&&!D.output.is('element'),$=D.input.is('documentFragment')||D.input.is('element')&&D.output.is('element')||U;if(!$)return;const K=D.output.is('element');K&&D.context.push(D.output);let W=null;for(let H=0;H<D.output.childCount;H++){const Y=D.output.getChild(H);C(Y,D.context,z.schema,U)?(W?H--:(W=new O.a('paragraph'),D.output.insertChildren(Y.index,W)),Y.remove(),W.appendChildren(Y)):W=null}K&&D.context.pop()}function C(M,D,q,z){const U=M.name||'$text';return!z&&q.check({name:U,inside:D})?!1:!!q.check({name:'paragraph',inside:D})&&!!q.check({name:U,inside:D.concat('paragraph')})}function T(M,D){for(let q of M.getRootNames()){const z=M.getRoot(q);z.isEmpty?!N.has(z)&&N.set(z,D):N.delete(z)}}function P(){for(let[M,D]of N){const z=D.document,U=z.schema;U.check({name:'paragraph',inside:[M]})&&z.enqueueChanges(()=>{D.insert(R.a.createAt(M),new O.a('paragraph'))})}N.clear()}var E=f(399),S=f(2),O=f(5),R=f(1),V=f(41),F=f(34);class I extends S.a{static get pluginName(){return'paragraph/paragraph'}init(){const M=this.editor,D=M.document,q=M.data,z=M.editing;M.commands.set('paragraph',new E.a(M)),D.schema.registerItem('paragraph','$block'),f.i(V.a)().for(q.modelToView,z.modelToView).fromElement('paragraph').toElement('p'),f.i(F.a)().for(q.viewToModel).fromElement('p').toElement('paragraph'),q.viewToModel.on('element',h,{priority:'low'}),q.viewToModel.on('text',h,{priority:'lowest'}),q.viewToModel.on('element',w,{priority:'lowest'}),q.viewToModel.on('documentFragment',w,{priority:'lowest'}),D.on('change',(U,$,K,W)=>T(D,W)),D.on('changesDone',P,{priority:'lowest'}),M.on('dataReady',()=>{T(D,D.batch('transparent')),P()},{priority:'lowest'})}}u.a=I,I.paragraphLikeElements=new Set(['blockquote','dd','div','dt','h1','h2','h3','h4','h5','h6','li','p','td']);const N=new Map},function(r,u,f){'use strict';var h=f(59),w=f(0);class C{constructor(T){this._nodes=[],T&&this.insertNodes(0,T)}[Symbol.iterator](){return this._nodes[Symbol.iterator]()}get length(){return this._nodes.length}get maxOffset(){return this._nodes.reduce((T,P)=>T+P.offsetSize,0)}getNode(T){return this._nodes[T]||null}getNodeIndex(T){const P=this._nodes.indexOf(T);return-1==P?null:P}getNodeStartOffset(T){const P=this.getNodeIndex(T);return null===P?null:this._nodes.slice(0,P).reduce((E,S)=>E+S.offsetSize,0)}indexToOffset(T){if(T==this._nodes.length)return this.maxOffset;const P=this._nodes[T];if(!P)throw new w.a('model-nodelist-index-out-of-bounds: Given index cannot be found in the node list.');return this.getNodeStartOffset(P)}offsetToIndex(T){let P=0;for(let E of this._nodes){if(T>=P&&T<P+E.offsetSize)return this.getNodeIndex(E);P+=E.offsetSize}if(P!=T)throw new w.a('model-nodelist-offset-out-of-bounds: Given offset cannot be found in the node list.');return this.length}insertNodes(T,P){for(let E of P)if(!(E instanceof h.a))throw new w.a('model-nodelist-insertNodes-not-node: Trying to insert an object which is not a Node instance.');this._nodes.splice(T,0,...P)}removeNodes(T,P=1){return this._nodes.splice(T,P)}toJSON(){return this._nodes.map((T)=>T.toJSON())}}u.a=C},function(r,u,f){'use strict';var h=f(36),w=f(3),C=f(0),T=f(18),P=f(528);class E extends h.a{constructor(S,O,R,V,F){super(F),this.range=w.a.createFromRange(S),this.key=O,this.oldValue=R===void 0?null:R,this.newValue=V===void 0?null:V}get type(){return null===this.oldValue?'addAttribute':null===this.newValue?'removeAttribute':'changeAttribute'}clone(){return new E(this.range,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new E(this.range,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_execute(){for(let S of this.range.getItems()){if(null!==this.oldValue&&!f.i(P.a)(S.getAttribute(this.key),this.oldValue))throw new C.a('attribute-operation-wrong-old-value: Changed node has different attribute value than operation\'s old attribute value.',{item:S,key:this.key,value:this.oldValue});if(null===this.oldValue&&null!==this.newValue&&S.hasAttribute(this.key))throw new C.a('attribute-operation-attribute-exists: The attribute with given key already exists.',{node:S,key:this.key});if(f.i(P.a)(this.oldValue,this.newValue))return}return T.a.setAttribute(this.range,this.key,this.newValue),{range:this.range,key:this.key,oldValue:this.oldValue,newValue:this.newValue}}static get className(){return'engine.model.operation.AttributeOperation'}static fromJSON(S,O){return new E(w.a.fromJSON(S.range,O),S.key,S.oldValue,S.newValue,S.baseVersion)}}u.a=E},function(r,u,f){'use strict';var h=f(36);class w extends h.a{clone(){return new w(this.baseVersion)}getReversed(){return new w(this.baseVersion+1)}_execute(){}static get className(){return'engine.model.operation.NoOperation'}}u.a=w},function(r,u,f){'use strict';var h=f(44),w=f(0),C=f(4),T=f(33);const P=Symbol('document');class E extends h.a{constructor(S,O,R){super(S,O,R),this.set('isReadOnly',!1),this.set('isFocused',!1)}get document(){return this.getCustomProperty(P)}set document(S){if(this.getCustomProperty(P))throw new w.a('view-editableelement-document-already-set: View document is already set.');this.setCustomProperty(P,S),this.bind('isFocused').to(S,'isFocused',(O)=>O&&S.selection.editableElement==this),this.listenTo(S,'render',()=>{this.isFocused=S.isFocused&&S.selection.editableElement==this},{priority:'high'})}}u.a=E,f.i(C.a)(E,T.a)},function(r,u,f){'use strict';var h=f(0),w=f(7),C=f(4);class T{constructor(){this.parent=null}get index(){let P;if(!this.parent)return null;if(-1==(P=this.parent.getChildIndex(this)))throw new h.a('view-node-not-found-in-parent: The node\'s parent does not contain this node.');return P}get nextSibling(){const P=this.index;return null!==P&&this.parent.getChild(P+1)||null}get previousSibling(){const P=this.index;return null!==P&&this.parent.getChild(P-1)||null}get root(){let P=this;for(;P.parent;)P=P.parent;return P}get document(){return this.parent instanceof T?this.parent.document:null}getAncestors(P={includeNode:!1,parentFirst:!1}){const E=[];for(let S=P.includeNode?this:this.parent;S;)E[P.parentFirst?'push':'unshift'](S),S=S.parent;return E}remove(){this.parent.removeChildren(this.index)}_fireChange(P,E){this.fire('change:'+P,E),this.parent&&this.parent._fireChange(P,E)}}u.a=T,f.i(C.a)(T,w.a)},function(r,u,f){'use strict';function C(me){const pe=me.offset,ge=me.parent;if(ge.is('text'))return me;if(ge.is('attributeElement')&&0===ge.childCount){const be=ge.parent,_e=ge.index;return ge.remove(),C(new X.a(be,_e))}const fe=ge.getChild(pe-1),he=ge.getChild(pe);if(!fe||!he)return me;if(fe.is('text')&&he.is('text'))return W(fe,he);if(fe.is('attributeElement')&&he.is('attributeElement')&&fe.isSimilar(he)){const be=fe.childCount;return fe.appendChildren(he.getChildren()),he.remove(),C(new X.a(fe,be))}return me}function E(me,pe){pe=f.i(de.a)(pe)?[...pe]:[pe],Z(pe);const ge=M(me);if(!ge)throw new se.a('view-writer-invalid-position-container');const fe=q(me,!0),he=ge.insertChildren(fe.offset,pe),be=fe.getShiftedBy(he),_e=C(fe);if(0===he)return new ie.a(_e,_e);_e.isEqual(fe)||be.offset--;const ke=C(be);return new ie.a(_e,ke)}function S(me){if(Q(me),me.isCollapsed)return new le.a;const{start:pe,end:ge}=D(me,!0),fe=pe.parent,he=ge.offset-pe.offset,be=fe.removeChildren(pe.offset,he),_e=C(pe);return me.start=_e,me.end=X.a.createFromPosition(_e),new le.a(be)}function R(me,pe){let ge;if(pe.isAfter(me.end)){pe=q(pe,!0);const fe=pe.parent,he=fe.childCount;me=D(me,!0),ge=S(me),pe.offset+=fe.childCount-he}else ge=S(me);return E(pe,ge)}function V(me,pe){if(!(pe instanceof te.a))throw new se.a('view-writer-wrap-invalid-attribute');if(Q(me),me.isCollapsed)return me;if(me.end.isEqual(me.start.getShiftedBy(1))){const ye=me.start.nodeAfter;if(ye instanceof te.a&&H(pe,ye))return me}if(G(me)&&H(pe,me.start.parent)){const ye=me.start.parent.parent,ve=me.start.parent.index;return ie.a.createFromParentsAndOffsets(ye,ve,ye,ve+1)}const{start:ge,end:fe}=D(me,!0),he=ge.parent,be=z(he,ge.offset,fe.offset,pe),_e=U(he,be.start.offset,be.end.offset,pe),ke=C(_e.start);ke.isEqual(_e.start)||_e.end.offset--;const we=C(_e.end);return new ie.a(ke,we)}function M(me){let pe=me.parent;for(;!J(pe);){if(!pe)return;pe=pe.parent}return pe}function D(me,pe=!1){const ge=me.start,fe=me.end;if(Q(me),me.isCollapsed){const ke=q(me.start,pe);return new ie.a(ke,ke)}const he=q(fe,pe),be=he.parent.childCount,_e=q(ge,pe);return he.offset+=he.parent.childCount-be,new ie.a(_e,he)}function q(me,pe=!1){const ge=me.offset,fe=me.parent;if(me.parent.is('emptyElement'))throw new se.a('view-writer-cannot-break-empty-element');if(me.parent.is('uiElement'))throw new se.a('view-writer-cannot-break-ui-element');if(!pe&&fe.is('text')&&J(fe.parent))return X.a.createFromPosition(me);if(J(fe))return X.a.createFromPosition(me);if(fe.is('text'))return q(K(me),pe);const he=fe.childCount;if(ge==he){const be=new X.a(fe.parent,fe.index+1);return q(be,pe)}if(0===ge){const be=new X.a(fe.parent,fe.index);return q(be,pe)}const be=fe.index+1,_e=fe.clone();fe.parent.insertChildren(be,_e);const ke=fe.childCount-ge,we=fe.removeChildren(ge,ke);_e.appendChildren(we);const ye=new X.a(fe.parent,be);return q(ye,pe)}function z(me,pe,ge,fe){let he=pe;const be=[];for(;he<ge;){const ke=me.getChild(he);if(ke.isSimilar(fe)){const we=ke.getChildren(),ye=ke.childCount;ke.remove(),me.insertChildren(he,we),be.push(new X.a(me,he),new X.a(me,he+ye)),he+=ye,ge+=ye-1}else ke.is('attributeElement')&&z(ke,0,ke.childCount,fe),he++}let _e=0;for(let ke of be){if(ke.offset-=_e,ke.offset==pe||ke.offset==ge)continue;const we=C(ke);we.isEqual(ke)||(_e++,ge--)}return ie.a.createFromParentsAndOffsets(me,pe,me,ge)}function U(me,pe,ge,fe){let he=pe;const be=[];for(;he<ge;){const ke=me.getChild(he),we=ke.is('text'),ye=ke.is('attributeElement'),ve=ke.is('emptyElement'),xe=ke.is('uiElement');if(we||ve||xe||ye&&fe.priority<=ke.priority){const Ce=fe.clone();ke.remove(),Ce.appendChildren(ke),me.insertChildren(he,Ce),be.push(new X.a(me,he))}else ye&&U(ke,0,ke.childCount,fe);he++}let _e=0;for(let ke of be){if(ke.offset-=_e,ke.offset==pe)continue;const we=C(ke);we.isEqual(ke)||(_e++,ge--)}return ie.a.createFromParentsAndOffsets(me,pe,me,ge)}function $(me){const pe=me.nodeBefore;if(pe&&pe.is('text'))return new X.a(pe,pe.data.length);const ge=me.nodeAfter;return ge&&ge.is('text')?new X.a(ge,0):me}function K(me){if(me.offset==me.parent.data.length)return new X.a(me.parent.parent,me.parent.index+1);if(0===me.offset)return new X.a(me.parent.parent,me.parent.index);const pe=me.parent.data.slice(me.offset);return me.parent.data=me.parent.data.slice(0,me.offset),me.parent.parent.insertChildren(me.parent.index+1,new oe.a(pe)),new X.a(me.parent.parent,me.parent.index+1)}function W(me,pe){const ge=me.data.length;return me.data+=pe.data,pe.remove(),new X.a(me,ge)}function H(me,pe){if(me.name!==pe.name||me.priority!==pe.priority)return!1;for(let ge of me.getAttributeKeys())if('class'!==ge&&'style'!==ge&&pe.hasAttribute(ge)&&pe.getAttribute(ge)!==me.getAttribute(ge))return!1;for(let ge of me.getStyleNames())if(pe.hasStyle(ge)&&pe.getStyle(ge)!==me.getStyle(ge))return!1;for(let ge of me.getAttributeKeys())'class'!==ge&&'style'!==ge&&(pe.hasAttribute(ge)||pe.setAttribute(ge,me.getAttribute(ge)));for(let ge of me.getStyleNames())pe.hasStyle(ge)||pe.setStyle(ge,me.getStyle(ge));for(let ge of me.getClassNames())pe.hasClass(ge)||pe.addClass(ge);return!0}function Y(me,pe){if(me.name!==pe.name||me.priority!==pe.priority)return!1;for(let ge of me.getAttributeKeys())if('class'!==ge&&'style'!==ge&&(!pe.hasAttribute(ge)||pe.getAttribute(ge)!==me.getAttribute(ge)))return!1;if(!pe.hasClass(...me.getClassNames()))return!1;for(let ge of me.getStyleNames())if(!pe.hasStyle(ge)||pe.getStyle(ge)!==me.getStyle(ge))return!1;for(let ge of me.getAttributeKeys())'class'!==ge&&'style'!==ge&&pe.removeAttribute(ge);return pe.removeClass(...me.getClassNames()),pe.removeStyle(...me.getStyleNames()),!0}function G(me){return me.start.parent==me.end.parent&&me.start.parent.is('attributeElement')&&0===me.start.offset&&me.end.offset===me.start.parent.childCount}function Z(me){for(let pe of me){if(!ue.some((ge)=>pe instanceof ge))throw new se.a('view-writer-insert-invalid-node');pe.is('text')||Z(pe.getChildren())}}function J(me){return me&&(me.is('containerElement')||me.is('documentFragment'))}function Q(me){const pe=M(me.start),ge=M(me.end);if(!pe||!ge||pe!==ge)throw new se.a('view-writer-invalid-range-container')}var X=f(26),ee=f(44),te=f(116),ae=f(170),ne=f(174),oe=f(31),ie=f(45),re=f(54),se=f(0),le=f(117),de=f(48);u.a={breakAttributes:function(me){return me instanceof X.a?q(me):D(me)},breakContainer:function(me){const pe=me.parent;if(!pe.is('containerElement'))throw new se.a('view-writer-break-non-container-element: Trying to break an element which is not a container element.');if(!pe.parent)throw new se.a('view-writer-break-root: Trying to break root element.');if(me.isAtStart)return X.a.createBefore(pe);if(!me.isAtEnd){const ge=pe.clone(!1);E(X.a.createAfter(pe),ge);const fe=new ie.a(me,X.a.createAt(pe,'end')),he=new X.a(ge,0);R(fe,he)}return X.a.createAfter(pe)},mergeAttributes:C,mergeContainers:function(me){const pe=me.nodeBefore,ge=me.nodeAfter;if(!pe||!ge||!pe.is('containerElement')||!ge.is('containerElement'))throw new se.a('view-writer-merge-containers-invalid-position: Element before and after given position cannot be merged.');const fe=pe.getChild(pe.childCount-1),he=fe instanceof oe.a?X.a.createAt(fe,'end'):X.a.createAt(pe,'end');return R(ie.a.createIn(ge),X.a.createAt(pe,'end')),S(ie.a.createOn(ge)),he},insert:E,remove:S,clear:function(me,pe){Q(me);const ge=me.getWalker({direction:'backward',ignoreElementEnd:!0});for(const fe of ge){const he=fe.item;let be;if(he.is('element')&&pe.isSimilar(he))be=ie.a.createOn(he);else if(!fe.nextPosition.isAfter(me.start)&&(he.is('text')||he.is('textProxy'))){const _e=he.getAncestors().find((ke)=>{return ke.is('element')&&pe.isSimilar(ke)});_e&&(be=ie.a.createIn(_e))}be&&(be.end.isAfter(me.end)&&(be.end=me.end),be.start.isBefore(me.start)&&(be.start=me.start),S(be))}},move:R,wrap:V,wrapPosition:function(me,pe){if(!(pe instanceof te.a))throw new se.a('view-writer-wrap-invalid-attribute');if(pe.isSimilar(me.parent))return $(X.a.createFromPosition(me));me.parent.is('text')&&(me=K(me));const ge=new te.a;ge.priority=_NumberPOSITIVE_INFINITY,ge.isSimilar=()=>!1,me.parent.insertChildren(me.offset,ge);const fe=new ie.a(me,me.getShiftedBy(1));V(fe,pe);const he=new X.a(ge.parent,ge.index);ge.remove();const be=he.nodeBefore,_e=he.nodeAfter;return be instanceof oe.a&&_e instanceof oe.a?W(be,_e):$(he)},unwrap:function(me,pe){if(!(pe instanceof te.a))throw new se.a('view-writer-unwrap-invalid-attribute');if(Q(me),me.isCollapsed)return me;if(me.end.isEqual(me.start.getShiftedBy(1))){const we=me.start.nodeAfter;if(!pe.isSimilar(we)&&we instanceof te.a&&Y(pe,we))return me}const{start:ge,end:fe}=D(me,!0),he=ge.parent,be=z(he,ge.offset,fe.offset,pe),_e=C(be.start);_e.isEqual(be.start)||be.end.offset--;const ke=C(be.end);return new ie.a(_e,ke)},rename:function(me,pe){const ge=new ee.a(pe,me.getAttributes());return E(X.a.createAfter(me),ge),R(ie.a.createIn(me),X.a.createAt(ge)),S(ie.a.createOn(me)),ge},breakViewRangePerContainer:function(me){const pe=[],ge=new re.a({boundaries:me});let fe=me.start;for(let he of ge)he.item.is('containerElement')&&(fe.isEqual(he.previousPosition)||pe.push(new ie.a(fe,he.previousPosition)),fe=he.nextPosition);return pe.push(new ie.a(fe,me.end)),pe}};const ue=[oe.a,te.a,ee.a,ae.a,ne.a]},function(r,u,f){'use strict';var h=f(7),w=f(0),C=f(72),T=f(4);class P{constructor(E){this._items=[],this._itemMap=new Map,this._idProperty=E&&E.idProperty||'id',this._bindToExternalToInternalMap=new WeakMap,this._bindToInternalToExternalMap=new WeakMap}get length(){return this._items.length}add(E,S){let O;const R=this._idProperty;if(R in E){if(O=E[R],'string'!=typeof O)throw new w.a('collection-add-invalid-id');if(this.get(O))throw new w.a('collection-add-item-already-exists')}else E[R]=O=f.i(C.a)();if(void 0===S)S=this._items.length;else if(S>this._items.length||0>S)throw new w.a('collection-add-item-invalid-index');return this._items.splice(S,0,E),this._itemMap.set(O,E),this.fire('add',E,S),this}get(E){let S;if('string'==typeof E)S=this._itemMap.get(E);else if('number'==typeof E)S=this._items[E];else throw new w.a('collection-get-invalid-arg: Index or id must be given.');return S||null}getIndex(E){let S;return S='string'==typeof E?this._itemMap.get(E):E,this._items.indexOf(S)}remove(E){let V=!1,S,O,R;const F=this._idProperty;if('string'==typeof E?(O=E,R=this._itemMap.get(O),V=!R,R&&(S=this._items.indexOf(R))):'number'==typeof E?(S=E,R=this._items[S],V=!R,R&&(O=R[F])):(R=E,O=R[F],S=this._items.indexOf(R),V=-1==S||!this._itemMap.get(O)),V)throw new w.a('collection-remove-404: Item not found.');this._items.splice(S,1),this._itemMap.delete(O);const I=this._bindToInternalToExternalMap.get(R);return this._bindToInternalToExternalMap.delete(R),this._bindToExternalToInternalMap.delete(I),this.fire('remove',R),R}map(E,S){return this._items.map(E,S)}find(E,S){return this._items.find(E,S)}filter(E,S){return this._items.filter(E,S)}clear(){for(this._bindToCollection&&(this.stopListening(this._bindToCollection),this._bindToCollection=null);this.length;)this.remove(0)}bindTo(E){if(this._bindToCollection)throw new w.a('collection-bind-to-rebind: The collection cannot be bound more than once.');return this._bindToCollection=E,{as:(S)=>{this._setUpBindToBinding((O)=>new S(O))},using:(S)=>{'function'==typeof S?this._setUpBindToBinding((O)=>S(O)):this._setUpBindToBinding((O)=>O[S])}}}_setUpBindToBinding(E){const S=this._bindToCollection,O=(R,V,F)=>{const I=S._bindToCollection==this,N=S._bindToInternalToExternalMap.get(V);if(I&&N)this._bindToExternalToInternalMap.set(V,N),this._bindToInternalToExternalMap.set(N,V);else{const M=E(V);this._bindToExternalToInternalMap.set(V,M),this._bindToInternalToExternalMap.set(M,V),this.add(M,F)}};for(let R of S)O(null,R);this.listenTo(S,'add',O),this.listenTo(S,'remove',(R,V)=>{const F=this._bindToExternalToInternalMap.get(V);F&&this.remove(F)})}[Symbol.iterator](){return this._items[Symbol.iterator]()}}u.a=P,f.i(T.a)(P,h.a)},function(r,u,f){'use strict';function h(R){return R['data-ck-expando']||(R['data-ck-expando']=f.i(T.a)())}function w(R){return R&&f.i(E.a)(R.addEventListener)}var C=f(7),T=f(72),P=f(50),E=f(238);const S=f.i(P.a)({},C.a,{listenTo(...R){const V=R[0];w(V)&&(R[0]=this._getProxyEmitter(V)||new O(V)),C.a.listenTo.apply(this,R)},stopListening(...R){const V=R[0];if(w(V)){let F=this._getProxyEmitter(V);if(!F)return;R[0]=F}C.a.stopListening.apply(this,R)},_getProxyEmitter(R){return f.i(C.b)(this,h(R))}});u.a=S;class O{constructor(R){f.i(C.c)(this,h(R)),this._domNode=R}}f.i(P.a)(O.prototype,C.a,{on(R,V,F={}){if(C.a.on.apply(this,arguments),!(this._domListeners&&this._domListeners[R])){const I=this._createDomListener(R,!!F.useCapture);this._domNode.addEventListener(R,I,!!F.useCapture),this._domListeners||(this._domListeners={}),this._domListeners[R]=I}},off(R){C.a.off.apply(this,arguments);let V;!this._domListeners[R]||(V=this._events[R])&&V.callbacks.length||this._domListeners[R].removeListener()},_createDomListener(R,V){const F=(I)=>{this.fire(R,I)};return F.removeListener=()=>{this._domNode.removeEventListener(R,F,V),delete this._domListeners[R]},F}})},function(r,u,f){'use strict';function h(S){var O=-1,R=S?S.length:0;for(this.clear();++O<R;){var V=S[O];this.set(V[0],V[1])}}var w=f(501),C=f(502),T=f(503),P=f(504),E=f(505);h.prototype.clear=w.a,h.prototype['delete']=C.a,h.prototype.get=T.a,h.prototype.has=P.a,h.prototype.set=E.a,u.a=h},function(r,u,f){'use strict';function h(P){var E=-1,S=P?P.length:0;for(this.__data__=new w.a;++E<S;)this.add(P[E])}var w=f(122),C=f(512),T=f(513);h.prototype.add=h.prototype.push=C.a,h.prototype.has=T.a,u.a=h},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=w.length,E=0,S=[],O;++T<P;)O=w[T],C(O,T,w)&&(S[E++]=O);return S}},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=C.length,E=w.length;++T<P;)w[E+T]=C[T];return w}},function(r,u,f){'use strict';var w=f(58);u.a=function(C,T){for(var P=C.length;P--;)if(f.i(w.a)(C[P][0],T))return P;return-1}},function(r,u,f){'use strict';var w=f(133),C=f(231),T=f(52);u.a=function(S,O,R){var V=0,F=S?S.length:V;if('number'==typeof O&&O===O&&F<=4294967295>>>1){for(;V<F;){var I=V+F>>>1,N=S[I];null!==N&&!f.i(T.a)(N)&&(R?N<=O:N<O)?V=I+1:F=I}return F}return f.i(w.a)(S,O,C.a,R)}},function(r,u,f){'use strict';var w=f(38);u.a=function(C,T,P,E){for(var S=C.length,O=E?S:-1;(E?O--:++O<S)&&T(C[O],O,C););return P?f.i(w.a)(C,E?0:O,E?O+1:S):f.i(w.a)(C,E?O+1:0,E?S:O)}},function(r,u,f){'use strict';var w=f(12),C=f(520);u.a=function(T){return f.i(w.a)(T)?T:f.i(C.a)(T)}},function(r,u,f){'use strict';var w=f(499);u.a=function(C,T){var P=C.__data__;return f.i(w.a)(T)?P['string'==typeof T?'string':'hash']:P.map}},function(r,u){'use strict';u.a=function(w){var C=!1;if(null!=w&&'function'!=typeof w.toString)try{C=!!(w+'')}catch(T){}return C}},function(r,u,f){'use strict';var w=f(58),C=f(97),T=f(39),P=f(14);u.a=function(E,S,O){if(!f.i(P.a)(O))return!1;var R=typeof S;return!('number'==R?!(f.i(C.a)(O)&&f.i(T.a)(S,O.length)):!('string'==R&&S in O))&&f.i(w.a)(O[S],E)}},function(r,u){'use strict';var w=Object.prototype;u.a=function(C){var T=C&&C.constructor,P='function'==typeof T&&T.prototype||w;return C===P}},function(r,u,f){'use strict';var h=f(55),w=f.i(h.a)(Object,'create');u.a=w},function(r,u){'use strict';u.a=function(w){var C=-1,T=Array(w.size);return w.forEach(function(P){T[++C]=P}),T}},function(r,u,f){'use strict';var w=f(199);u.a=function(C){return f.i(w.a)(C,!1,!0)}},function(r,u,f){'use strict';var w=f(487),C=f(148),T=f(98);u.a=function(P){return null!=P&&f.i(T.a)(f.i(w.a)(P))&&!f.i(C.a)(P)}},function(r,u){'use strict';u.a=function(C){return'number'==typeof C&&-1<C&&0==C%1&&C<=9007199254740991}},function(r,u,f){'use strict';var w=f(140),C=f(91),T=f(51),E=Object.prototype,S=Function.prototype.toString,O=E.hasOwnProperty,R=S.call(Object),V=E.toString;u.a=function(F){if(!f.i(T.a)(F)||V.call(F)!='[object Object]'||f.i(C.a)(F))return!1;var I=f.i(w.a)(F);if(null===I)return!0;var N=O.call(I,'constructor')&&I.constructor;return'function'==typeof N&&N instanceof N&&S.call(N)==R}},function(r,u,f){'use strict';var w=f(84),C=f(27),T=f(131),P=f(204),E=f(13);u.a=function(O){if(!(O&&O.length))return[];var R=0;return O=f.i(w.a)(O,function(V){if(f.i(E.a)(V))return R=_Mathmax(V.length,R),!0}),f.i(P.a)(R,function(V){return f.i(C.a)(O,f.i(T.a)(V))})}},function(r,u,f){'use strict';var w=f(37),C=f(3),T=f(1);u.a=function(P,E,S){const O=[];for(let R of E){const V=new w.a({boundaries:R,mergeCharacters:!0});let F=V.next(),I=R.start,N=R.start,M=R.end;for(;!F.done;){const D=F.value.item.name||'$text',q=T.a.createBefore(F.value.item);S.check({name:D,inside:q,attributes:P})||(!N.isEqual(I)&&O.push(new C.a(N,I)),N=V.position),I=V.position,F=V.next()}N&&!N.isEqual(M)&&O.push(new C.a(N,M))}return O}},function(r,u,f){'use strict';function F($,K){const W=new z.a({startPosition:$,singleCharacters:!0});let H=0;for(let Y of W)if('text'==Y.type&&(H++,H==K))return W.position}function N($){const K=$.split(':');return K[0]+':'+K[1]}var M=f(25),D=f(31),q=f(45),z=f(54),U=f(79);u.a=function($){return(K,W,H,Y)=>{const G=$ instanceof M.a?$.clone(!0):$(W,H,Y);if(G&&H.consume(W.item,'insert')){const Z=Y.mapper.toViewPosition(W.range.start);Y.mapper.bindElements(W.item,G),U.a.insert(Z,G)}}},u.j=function(){return($,K,W,H)=>{if(W.consume(K.item,'insert')){const Y=H.mapper.toViewPosition(K.range.start),G=new D.a(K.item.data);U.a.insert(Y,G)}}},u.f=function($){return(K,W,H,Y)=>{let G,Z;if(($ instanceof M.a?(G=$.clone(!0),Z=$.clone(!0)):(W.isOpening=!0,G=$(W,H,Y),W.isOpening=!1,Z=$(W,H,Y)),G&&Z)&&H.consume(W.range,'addMarker')){const J=Y.mapper;U.a.insert(J.toViewPosition(W.range.start),G),W.range.isCollapsed||U.a.insert(J.toViewPosition(W.range.end),Z)}}},u.h=function($){return $=$||((K,W)=>({value:K,key:W})),(K,W,H,Y)=>{if(H.consume(W.item,N(K.name))){const{key:G,value:Z}=$(W.attributeNewValue,W.attributeKey,W,H,Y);Y.mapper.toViewElement(W.item).setAttribute(G,Z)}}},u.i=function($){return $=$||((K,W)=>({key:W})),(K,W,H,Y)=>{if(H.consume(W.item,N(K.name))){const{key:G}=$(W.attributeOldValue,W.attributeKey,W,H,Y);Y.mapper.toViewElement(W.item).removeAttribute(G)}}},u.b=function($){return(K,W,H,Y)=>{const G=$ instanceof M.a?$.clone(!0):$(W.attributeNewValue,W,H,Y);if(!G)return;if(!H.consume(W.item,N(K.name)))return;let Z=Y.mapper.toViewRange(W.range);if(null!==W.attributeOldValue&&!($ instanceof M.a)){const J=$(W.attributeOldValue,W,H,Y);Z=U.a.unwrap(Z,J)}U.a.wrap(Z,G)}},u.c=function($){return(K,W,H,Y)=>{const G=$ instanceof M.a?$.clone(!0):$(W.attributeOldValue,W,H,Y);if(G&&H.consume(W.item,N(K.name))){const Z=Y.mapper.toViewRange(W.range);U.a.unwrap(Z,G)}}},u.d=function($){return(K,W,H,Y)=>{const G=$ instanceof M.a?$.clone(!0):$(W,H,Y);if(G&&H.consume(W.range,'addMarker')){const Z=Y.mapper.toViewRange(W.range),J=U.a.breakViewRangePerContainer(Z);for(let Q of J)U.a.wrap(Q,G)}}},u.e=function($){return(K,W,H,Y)=>{const G=$ instanceof M.a?$.clone(!0):$(W,H,Y);if(G&&H.consume(W.range,'removeMarker')){const Z=Y.mapper.toViewRange(W.range),J=U.a.breakViewRangePerContainer(Z);for(let Q of J)U.a.unwrap(Q,G)}}},u.k=function(){return($,K,W,H)=>{if(!W.consume(K.item,'remove'))return;const Y=H.mapper.toViewPosition(K.sourcePosition);let G;if(K.item.is('element'))G=q.a.createOn(Y.nodeAfter);else{const Z=F(Y,K.item.offsetSize);G=new q.a(Y,Z)}U.a.remove(G.getTrimmed()),'$graveyard'==K.item.root.rootName&&H.mapper.unbindModelElement(K.item)}},u.g=function($){return(K,W,H,Y)=>{let G,Z;if(($ instanceof M.a?(G=$.clone(!0),Z=$.clone(!0)):(W.isOpening=!0,G=$(W,H,Y),W.isOpening=!1,Z=$(W,H,Y)),G&&Z)&&H.consume(W.range,'removeMarker')){const J=Y.mapper.toViewRange(W.range);U.a.clear(J.getEnlarged(),Z),G.isSimilar(Z)||U.a.clear(J.getEnlarged(),G)}}}},function(r,u,f){'use strict';var h=f(20),w=f(106),C=f(17),T=f(42),P=f(16),E=f(18),S=f(35),O=f(3),R=f(1);class V extends h.a{get type(){return'insert'}get position(){return this._insertOperation?this._insertOperation.position:null}get nodes(){return this._insertOperation?this._insertOperation.nodes:null}get _insertOperation(){return this.operations[0]||null}get _reverseDeltaClass(){return w.a}static get className(){return'engine.model.delta.InsertDelta'}static get _priority(){return 20}}u.a=V,f.i(P.b)('insert',function(F,I){const N=f.i(E.b)(I);if(0===N.length)return this;const M=new V,D=new T.a(F,N,this.document.version);if(this.addDelta(M),M.addOperation(D),this.document.applyOperation(D),I instanceof S.a)for(const[q,z]of I.markers){const U=R.a.createAt(z.root),$=new O.a(z.start._getCombined(U,F),z.end._getCombined(U,F));this.setMarker(q,$)}return this}),C.a.register(V)},function(r,u,f){'use strict';var h=f(20),w=f(17),C=f(107),T=f(16),P=f(1),E=f(5),S=f(43),O=f(30),R=f(0);class V extends h.a{get type(){return'merge'}get position(){return this._removeOperation?this._removeOperation.sourcePosition:null}getReversed(){let F=super.getReversed();return 0<F.operations.length&&(F.operations[1].isSticky=!1),F}get _removeOperation(){return this.operations[1]||null}get _reverseDeltaClass(){return C.a}static get className(){return'engine.model.delta.MergeDelta'}}u.a=V,f.i(T.b)('merge',function(F){const I=new V;this.addDelta(I);const N=F.nodeBefore,M=F.nodeAfter;if(!(N instanceof E.a))throw new R.a('batch-merge-no-element-before: Node before merge position must be an element.');if(!(M instanceof E.a))throw new R.a('batch-merge-no-element-after: Node after merge position must be an element.');const D=P.a.createFromParentAndOffset(M,0),q=P.a.createFromParentAndOffset(N,N.maxOffset),z=new O.a(D,M.maxOffset,q,this.document.version);z.isSticky=!0,I.addOperation(z),this.document.applyOperation(z);const U=new S.a(F,1,this.document.version);return I.addOperation(U),this.document.applyOperation(U),this}),w.a.register(V)},function(r,u,f){'use strict';function h(V,F,I,N,M){const D=new P.a(I,N,M,V.document.version);F.addOperation(D),V.document.applyOperation(D)}var w=f(20),C=f(17),T=f(16),P=f(30),E=f(1),S=f(3),O=f(0);class R extends w.a{get type(){return'move'}get howMany(){return this._moveOperation?this._moveOperation.howMany:null}get sourcePosition(){return this._moveOperation?this._moveOperation.sourcePosition:null}get targetPosition(){return this._moveOperation?this._moveOperation.targetPosition:null}get _moveOperation(){return this.operations[0]||null}get _reverseDeltaClass(){return R}static get className(){return'engine.model.delta.MoveDelta'}static get _priority(){return 20}}u.a=R,f.i(T.b)('move',function(V,F){const I=new R;if(this.addDelta(I),V instanceof S.a){if(!V.isFlat)throw new O.a('batch-move-range-not-flat: Range to move is not flat.');h(this,I,V.start,V.end.offset-V.start.offset,F)}else h(this,I,E.a.createBefore(V),1,F);return this}),C.a.register(R)},function(r,u,f){'use strict';function h(R,V,F,I){const N=new P.a(F,I,R.document.version);V.addOperation(N),R.document.applyOperation(N)}var w=f(105),C=f(16),T=f(17),P=f(43),E=f(1),S=f(3);class O extends w.a{static get className(){return'engine.model.delta.RemoveDelta'}}u.a=O,f.i(C.b)('remove',function(R){const V=new O;if(this.addDelta(V),R instanceof S.a){let F=R.getMinimalFlatRanges().reverse();for(let I of F)h(this,V,I.start,I.end.offset-I.start.offset)}else h(this,V,E.a.createBefore(R),1);return this}),T.a.register(O)},function(r,u,f){'use strict';var h=f(20),w=f(17),C=f(16),T=f(1),P=f(5),E=f(42),S=f(30),O=f(0),R=f(104);class V extends h.a{get type(){return'split'}get position(){return this._moveOperation?this._moveOperation.sourcePosition:null}getReversed(){let F=super.getReversed();return 0<F.operations.length&&(F.operations[0].isSticky=!0),F}get _cloneOperation(){return this.operations[0]||null}get _moveOperation(){return this.operations[1]||null}get _reverseDeltaClass(){return R.a}static get className(){return'engine.model.delta.SplitDelta'}static get _priority(){return 5}}u.a=V,f.i(C.b)('split',function(F){const I=new V;this.addDelta(I);const N=F.parent;if(!N.parent)throw new O.a('batch-split-root: Root element can not be split.');const M=new P.a(N.name,N.getAttributes()),D=new E.a(T.a.createAfter(N),M,this.document.version);I.addOperation(D),this.document.applyOperation(D);const q=new S.a(F,N.maxOffset-F.offset,T.a.createFromParentAndOffset(M,0),this.document.version);return q.isSticky=!0,I.addOperation(q),this.document.applyOperation(q),this}),w.a.register(V)},function(r,u,f){'use strict';function h(D,q,z){const U=P(D,q)||C,$=U(D,q,z),K=N.a.last(q.operations).baseVersion;return w(K,$)}function w(D,q){for(let z of q)for(let U of z.operations)U.baseVersion=++D;return q}function C(D,q,z){z=E(D.constructor,q.constructor,z);const U=new D.constructor;let $=q.operations,K=[];for(let W of D.operations){const H=[W];for(let Y of $)for(let G=0;G<H.length;G++){const Z=H[G];Array.prototype.push.apply(K,f.i(F.a)(Y,Z,!z));const J=f.i(F.a)(Z,Y,z);Array.prototype.splice.apply(H,[G,1].concat(J)),G+=J.length-1}$=K,K=[];for(let Y of H)U.addOperation(Y)}return[U]}function P(D,q){let z=M.get(D.constructor);if(!z||!z.get(q.constructor)){const U=M.keys();for(let $ of U)if(D instanceof $&&M.get($).get(q.constructor)){z=M.get($);break}}return z?z.get(q.constructor):void 0}function E(D,q,z){return!!(D._priority>q._priority)||!(D._priority<q._priority)&&z}function O(D){return D.reduce((q,z)=>{return q+z.operations.length},0)}function R(D,q){const z=D[D.length-1];let U=z.operations.length+z.baseVersion,$=new V.a;for(let K=0;K<q;K++)$.addOperation(new I.a(U++));D.push($)}var V=f(20),F=f(364),I=f(76),N=f(522);u.c=C,u.b=function(D,q,z){let U=M.get(D);U||(U=new Map,M.set(D,U)),U.set(q,z)},u.a=function(D,q,z){let U=Array.from(D),$=Array.from(q);for(let H=0,Y;H<U.length;H++){Y=[U[H]];for(let G=0,Z;G<$.length;G++){Z=[$[G]];for(let J=0;J<Y.length;J++)for(let Q=0;Q<Z.length;Q++){let X=h(Y[J],Z[Q],z),ee=h(Z[Q],Y[J],!z);Y.splice(J,1,...X),J+=X.length-1,Z.splice(Q,1,...ee),Q+=ee.length-1}$.splice(G,1,...Z),G+=Z.length-1}U.splice(H,1,...Y),H+=Y.length-1}const K=O(U)-O(D),W=O($)-O(q);return W<K?R($,K-W):K<W&&R(U,W-K),{deltasA:U,deltasB:$}};const M=new Map},function(r,u,f){'use strict';var h=f(20),w=f(17),C=f(110),T=f(16),P=f(1),E=f(43),S=f(30),O=f(0);class R extends h.a{get type(){return'unwrap'}get position(){return this._moveOperation?this._moveOperation.targetPosition:null}get _moveOperation(){return this.operations[0]||null}get _reverseDeltaClass(){return C.a}static get className(){return'engine.model.delta.UnwrapDelta'}static get _priority(){return 10}}u.a=R,f.i(T.b)('unwrap',function(V){if(null===V.parent)throw new O.a('batch-unwrap-element-no-parent: Trying to unwrap an element which has no parent.');const F=new R;this.addDelta(F);let I=P.a.createFromParentAndOffset(V,0);const N=new S.a(I,V.maxOffset,P.a.createBefore(V),this.document.version);N.isSticky=!0,F.addOperation(N),this.document.applyOperation(N);const M=new E.a(P.a.createBefore(V),1,this.document.version);return F.addOperation(M),this.document.applyOperation(M),this}),w.a.register(R)},function(r,u,f){'use strict';var h=f(20),w=f(17),C=f(109),T=f(16),P=f(1),E=f(3),S=f(5),O=f(42),R=f(30),V=f(0);class F extends h.a{get type(){return'wrap'}get range(){let I=this._moveOperation;return I?E.a.createFromPositionAndShift(I.sourcePosition,I.howMany):null}get howMany(){let I=this.range;return I?I.end.offset-I.start.offset:0}get _insertOperation(){return this.operations[0]||null}get _moveOperation(){return this.operations[1]||null}get _reverseDeltaClass(){return C.a}static get className(){return'engine.model.delta.WrapDelta'}static get _priority(){return 10}}u.a=F,f.i(T.b)('wrap',function(I,N){if(!I.isFlat)throw new V.a('batch-wrap-range-not-flat: Range to wrap is not flat.');let M=N instanceof S.a?N:new S.a(N);if(0<M.childCount)throw new V.a('batch-wrap-element-not-empty: Element to wrap with is not empty.');if(null!==M.parent)throw new V.a('batch-wrap-element-attached: Element to wrap with is already attached to tree model.');const D=new F;this.addDelta(D);let q=new O.a(I.end,M,this.document.version);D.addOperation(q),this.document.applyOperation(q);let z=P.a.createFromParentAndOffset(M,0),U=new R.a(I.start,I.end.offset-I.start.offset,z,this.document.version);return D.addOperation(U),this.document.applyOperation(U),this}),w.a.register(F)},function(r,u,f){'use strict';function h(){const S=new Set(['insert','move','remove','reinsert']);this.listenTo(this.root.document,'change',(O,R,V,F,I)=>{S.has(R)&&w.call(this,R,I,V.range,V.sourcePosition)},{priority:'high'})}function w(S,O,R,V){const F=R.end.offset-R.start.offset;let I=R.start;'move'==S&&(I=I._getTransformedByInsertion(V,F));const N=this._getTransformedByDocumentChange(S,O,I,F,V);'move'==S&&3==N.length&&(N[2]=R);const M=C.a.createFromRanges(N);if(!M.isEqual(this)){const D=C.a.createFromRange(this);this.start=M.start,this.end=M.end,this.fire('change',D)}}var C=f(3),T=f(7),P=f(4);class E extends C.a{constructor(S,O){super(S,O),h.call(this)}detach(){this.stopListening()}}u.a=E,f.i(P.a)(E,T.a)},function(r,u,f){'use strict';var h=f(36),w=f(3);class C extends h.a{constructor(T,P,E,S,O){super(O),this.name=T,this.oldRange=P?w.a.createFromRange(P):null,this.newRange=E?w.a.createFromRange(E):null,this._markers=S}get type(){return'marker'}clone(){return new C(this.name,this.oldRange,this.newRange,this._markers,this.baseVersion)}getReversed(){return new C(this.name,this.newRange,this.oldRange,this._markers,this.baseVersion+1)}_execute(){const T=this.newRange?'set':'remove';return this._markers[T](this.name,this.newRange),{name:this.name,type:T}}toJSON(){const T=super.toJSON();return delete T._markers,T}static get className(){return'engine.model.operation.MarkerOperation'}static fromJSON(T,P){return new C(T.name,T.oldRange?w.a.fromJSON(T.oldRange,P):null,T.newRange?w.a.fromJSON(T.newRange,P):null,P.markers,T.baseVersion)}}u.a=C},function(r,u,f){'use strict';var h=f(30),w=f(43);class C extends h.a{get position(){return this.targetPosition}set position(T){this.targetPosition=T}get type(){return'reinsert'}getReversed(){const T=new w.a(this.targetPosition,this.howMany,this.baseVersion+1);return T.targetPosition=this.sourcePosition,T._needsHolderElement=!1,T}static get className(){return'engine.model.operation.ReinsertOperation'}}u.a=C},function(r,u,f){'use strict';var h=f(36),w=f(5),C=f(0),T=f(1);class P extends h.a{constructor(E,S,O,R){super(R),this.position=E,this.oldName=S,this.newName=O}get type(){return'rename'}clone(){return new P(T.a.createFromPosition(this.position),this.oldName,this.newName,this.baseVersion)}getReversed(){return new P(T.a.createFromPosition(this.position),this.newName,this.oldName,this.baseVersion+1)}_execute(){const E=this.position.nodeAfter;if(!(E instanceof w.a))throw new C.a('rename-operation-wrong-position: Given position is invalid or node after it is not an instance of Element.');else if(E.name!==this.oldName)throw new C.a('rename-operation-wrong-name: Element to change has different name than operation\'s old name.');return this.oldName==this.newName?void 0:(E.name=this.newName,{element:E,oldName:this.oldName})}static get className(){return'engine.model.operation.RenameOperation'}static fromJSON(E,S){return new P(T.a.fromJSON(E.position,S),E.oldName,E.newName,E.baseVersion)}}u.a=P},function(r,u,f){'use strict';var h=f(36),w=f(0);class C extends h.a{constructor(T,P,E,S,O){super(O),this.root=T,this.key=P,this.oldValue=E,this.newValue=S}get type(){return null===this.oldValue?'addRootAttribute':null===this.newValue?'removeRootAttribute':'changeRootAttribute'}clone(){return new C(this.root,this.key,this.oldValue,this.newValue,this.baseVersion)}getReversed(){return new C(this.root,this.key,this.newValue,this.oldValue,this.baseVersion+1)}_execute(){if(null!==this.oldValue&&this.root.getAttribute(this.key)!==this.oldValue)throw new w.a('rootattribute-operation-wrong-old-value: Changed node has different attribute value than operation\'s old attribute value.',{root:this.root,key:this.key});if(null===this.oldValue&&null!==this.newValue&&this.root.hasAttribute(this.key))throw new w.a('rootattribute-operation-attribute-exists: The attribute with given key already exists.',{root:this.root,key:this.key});return null===this.newValue?this.root.removeAttribute(this.key):this.root.setAttribute(this.key,this.newValue),{root:this.root,key:this.key,oldValue:this.oldValue,newValue:this.newValue}}static get className(){return'engine.model.operation.RootAttributeOperation'}static fromJSON(T,P){if(!P.hasRoot(T.root))throw new w.a('rootattribute-operation-fromjson-no-root: Cannot create RootAttributeOperation. Root with specified name does not exist.',{rootName:T});return new C(P.getRoot(T.root),T.key,T.oldValue,T.newValue,T.baseVersion)}}u.a=C},function(r,u,f){'use strict';function h(){if(this.childCount)return null;let P=this.parent;for(;P&&P.is('attributeElement');){if(1<P.childCount)return null;P=P.parent}return!P||1<P.childCount?null:0}var w=f(25);const C=10;class T extends w.a{constructor(P,E,S){super(P,E,S),this.priority=C,this.getFillerOffset=h}is(P,E=null){return E?'attributeElement'==P&&E==this.name||super.is(P,E):'attributeElement'==P||super.is(P)}clone(P){const E=super.clone(P);return E.priority=this.priority,E}isSimilar(P){return super.isSimilar(P)&&this.priority==P.priority}}u.a=T,T.DEFAULT_PRIORITY=C},function(r,u,f){'use strict';function h(S){return'string'==typeof S?[new w.a(S)]:(f.i(T.a)(S)||(S=[S]),Array.from(S).map((O)=>'string'==typeof O?new w.a(O):O))}var w=f(31),C=f(4),T=f(48),P=f(7);class E{constructor(S){this._children=[],S&&this.insertChildren(0,S)}[Symbol.iterator](){return this._children[Symbol.iterator]()}get childCount(){return this._children.length}get isEmpty(){return 0===this.childCount}get root(){return this}get parent(){return null}is(S){return'documentFragment'==S}appendChildren(S){return this.insertChildren(this.childCount,S)}getChild(S){return this._children[S]}getChildIndex(S){return this._children.indexOf(S)}getChildren(){return this._children[Symbol.iterator]()}insertChildren(S,O){this._fireChange('children',this);let R=0;O=h(O);for(let V of O)V.parent=this,this._children.splice(S,0,V),S++,R++;return R}removeChildren(S,O=1){this._fireChange('children',this);for(let R=S;R<S+O;R++)this._children[R].parent=null;return this._children.splice(S,O)}_fireChange(S,O){this.fire('change:'+S,O)}}u.a=E,f.i(C.a)(E,P.a)},function(r,u,f){'use strict';var h=f(50);class w{constructor(C,T,P){this.document=C,this.domEvent=T,this.domTarget=T.target,f.i(h.a)(this,P)}get target(){return this.document.domConverter.getCorrespondingViewElement(this.domTarget)}preventDefault(){this.domEvent.preventDefault()}stopPropagation(){this.domEvent.stopPropagation()}}u.a=w},function(r,u,f){'use strict';function h(T){return!!(T.focus&&'none'!=w.a.window.getComputedStyle(T.element).display)}var w=f(47);class C{constructor(T){if(Object.assign(this,T),T.actions&&T.keystrokeHandler)for(let P in T.actions){let E=T.actions[P];'string'==typeof E&&(E=[E]);for(let S of E)T.keystrokeHandler.set(S,(O,R)=>{this[P](),R()})}}get first(){return this.focusables.find(h)||null}get last(){return this.focusables.filter(h).slice(-1)[0]||null}get next(){return this._getFocusableItem(1)}get previous(){return this._getFocusableItem(-1)}get current(){let T=null;return null===this.focusTracker.focusedElement?null:(this.focusables.find((P,E)=>{const S=P.element===this.focusTracker.focusedElement;return S&&(T=E),S}),T)}focusFirst(){this._focus(this.first)}focusLast(){this._focus(this.last)}focusNext(){this._focus(this.next)}focusPrevious(){this._focus(this.previous)}_focus(T){T&&T.focus()}_getFocusableItem(T){let P=this.current;const E=this.focusables.length;if(!E)return null;if(null===P)return this[1===T?'first':'last'];let S=(P+E+T)%E;do{let O=this.focusables.get(S);if(h(O))return O;S=(S+E+T)%E}while(S!==P);return null}}u.a=C},function(r,u,f){'use strict';function h(S){return S.every((O)=>'string'==typeof O)}var w=f(0),C=f(33),T=f(80),P=f(4);class E extends T.a{constructor(S){super({idProperty:'viewUid'}),this.on('add',(O,R,V)=>{R.element&&this._parentElement&&this._parentElement.insertBefore(R.element,this._parentElement.children[V])}),this.on('remove',(O,R)=>{R.element&&this._parentElement&&R.element.remove()}),this.locale=S,this.set('ready',!1),this._parentElement=null,this._addPromises=new Set}init(){if(this.ready)throw new w.a('ui-viewcollection-init-reinit: This ViewCollection has already been initialized.');return Promise.all(this.map((S)=>S.init())).then(()=>{this.ready=!0})}destroy(){return Promise.all(this._addPromises).then(()=>{return Promise.all(this.map((S)=>S.destroy()))})}add(S,O){super.add(S,O);let R=Promise.resolve();return this.ready&&!S.ready&&(R=R.then(()=>S.init()).then(()=>this._addPromises.delete(R)),this._addPromises.add(R)),R}setParent(S){this._parentElement=S}delegate(...S){if(!S.length||!h(S))throw new w.a('ui-viewcollection-delegate-wrong-events: All event names must be strings.');return{to:(O)=>{for(let R of this)for(let V of S)R.delegate(V).to(O);this.on('add',(R,V)=>{for(let F of S)V.delegate(F).to(O)}),this.on('remove',(R,V)=>{for(let F of S)V.stopDelegating(F,O)})}}}}u.a=E,f.i(P.a)(T.a,C.a)},function(r,u,f){'use strict';function h(P,E){let S=w([P],E);S.sort((O,R)=>O.start.isBefore(R.start)?-1:1);for(let O=1;O<S.length;O++){let R=S[O-1],V=S[O];R.end.isTouching(V.start)&&(R.end=V.end,S.splice(O,1),O--)}return S}function w(P,E){for(let S of E)for(let O of S.operations)for(let R=0;R<P.length;R++){let V;switch(O.type){case'insert':V=P[R]._getTransformedByInsertion(O.position,O.nodes.maxOffset,!0);break;case'move':case'remove':case'reinsert':V=P[R]._getTransformedByMove(O.sourcePosition,O.targetPosition,O.howMany,!0);}V&&(P.splice(R,1,...V),R=R+V.length-1)}return P}var C=f(11);u.b=w;class T extends C.a{constructor(P){super(P),this._stack=[],this._createdBatches=new WeakSet,this.refreshState()}addBatch(P){const E={ranges:Array.from(this.editor.document.selection.getRanges()),isBackward:this.editor.document.selection.isBackward};this._stack.push({batch:P,selection:E}),this.refreshState()}clearStack(){this._stack=[],this.refreshState()}_checkEnabled(){return 0<this._stack.length}_restoreSelection(P,E,S){const O=this.editor.document,R=[];for(let V of P){const F=h(V,S),I=F.find((N)=>N.start.root!=O.graveyard);I&&R.push(I)}R.length&&O.selection.setRanges(R,E)}}u.a=T},function(r,u,f){'use strict';function h(S){var O=-1,R=S?S.length:0;for(this.clear();++O<R;){var V=S[O];this.set(V[0],V[1])}}var w=f(506),C=f(507),T=f(508),P=f(509),E=f(510);h.prototype.clear=w.a,h.prototype['delete']=C.a,h.prototype.get=T.a,h.prototype.has=P.a,h.prototype.set=E.a,u.a=h},function(r,u,f){'use strict';function h(O){this.__data__=new w.a(O)}var w=f(82),C=f(515),T=f(516),P=f(517),E=f(518),S=f(519);h.prototype.clear=C.a,h.prototype['delete']=T.a,h.prototype.get=P.a,h.prototype.has=E.a,h.prototype.set=S.a,u.a=h},function(r,u,f){'use strict';var h=f(32),w=h.a.Symbol;u.a=w},function(r,u,f){'use strict';var w=f(128);u.a=function(C,T){return!!C.length&&-1<f.i(w.a)(C,T,0)}},function(r,u){'use strict';u.a=function(w,C,T){for(var P=-1,E=w.length;++P<E;)if(T(C,w[P]))return!0;return!1}},function(r,u,f){'use strict';var w=f(89),C=f(56),T=f(57);u.a=function(P,E){E=f.i(C.a)(E,P)?[E]:f.i(w.a)(E);for(var S=0,O=E.length;null!=P&&S<O;)P=P[f.i(T.a)(E[S++])];return S&&S==O?P:void 0}},function(r,u,f){'use strict';var w=f(210);u.a=function(C,T,P){if(T!==T)return f.i(w.a)(C,P);for(var E=P-1,S=C.length;++E<S;)if(C[E]===T)return E;return-1}},function(r,u,f){'use strict';var w=f(83),C=f(125),T=f(126),P=f(27),E=f(134),S=f(136);u.a=function(R,V,F){for(var I=F?T.a:C.a,N=R[0].length,M=R.length,D=M,q=Array(M),z=Infinity,U=[],$;D--;)$=R[D],D&&V&&($=f.i(P.a)($,f.i(E.a)(V))),z=_Mathmin($.length,z),q[D]=!F&&(V||120<=N&&120<=$.length)?new w.a(D&&$):void 0;$=R[0];var K=-1,W=q[0];outer:for(;++K<N&&U.length<z;){var H=$[K],Y=V?V(H):H;if(H=F||0!==H?H:0,W?!f.i(S.a)(W,Y):!I(U,Y,F)){for(D=M;--D;){var G=q[D];if(G?!f.i(S.a)(G,Y):!I(R[D],Y,F))continue outer}W&&W.push(Y),U.push(H)}}return U}},function(r,u,f){'use strict';function h(P,E,S,O,R){return!(P!==E)||(null!=P&&null!=E&&(f.i(C.a)(P)||f.i(T.a)(E))?f.i(w.a)(P,E,h,S,O,R):P!==P&&E!==E)}var w=f(460),C=f(14),T=f(51);u.a=h},function(r,u){'use strict';u.a=function(w){return function(C){return null==C?void 0:C[w]}}},function(r,u,f){'use strict';var w=f(27),C=f(128),T=f(459),P=f(134),E=Array.prototype,S=E.splice;u.a=function(O,R,V,F){var I=F?T.a:C.a,N=-1,M=R.length,D=O;for(V&&(D=f.i(w.a)(O,f.i(P.a)(V)));++N<M;)for(var q=0,z=R[N],U=V?V(z):z;-1<(q=I(D,U,q,F));)D!==O&&S.call(D,q,1),S.call(O,q,1);return O}},function(r,u,f){'use strict';var w=f(52);u.a=function(S,O,R,V){O=R(O);for(var F=0,I=S?S.length:0,N=O!==O,M=null===O,D=f.i(w.a)(O),q=void 0===O;F<I;){var z=_Mathfloor((F+I)/2),U=R(S[z]),$=U!==void 0,K=null===U,W=U===U,H=f.i(w.a)(U);if(N)var Y=V||W;else Y=q?W&&(V||$):M?W&&$&&(V||!K):D?W&&$&&!K&&(V||!H):K||H?!1:V?U<=O:U<O;Y?F=z+1:I=z}return _Mathmin(I,4294967295-1)}},function(r,u){'use strict';u.a=function(w){return function(C){return w(C)}}},function(r,u,f){'use strict';var w=f(85),C=f(70),T=f(49);u.a=function(P,E,S){for(var O=-1,R=P.length,V;++O<R;)V=V?f.i(w.a)(f.i(C.a)(V,P[O],E,S),f.i(C.a)(P[O],V,E,S)):P[O];return V&&V.length?f.i(T.a)(V,E,S):[]}},function(r,u){'use strict';u.a=function(w,C){return w.has(C)}},function(r,u,f){'use strict';var w=f(13);u.a=function(C){return f.i(w.a)(C)?C:[]}},function(r,u,f){'use strict';var w=f(196);u.a=function(C){var T=new C.constructor(C.byteLength);return new w.a(T).set(new w.a(C)),T}},function(r,u,f){'use strict';var w=f(69);u.a=function(C,T,P,E){P||(P={});for(var S=-1,O=T.length;++S<O;){var R=T[S],V=E?E(P[R],C[R],R,P,C):C[R];f.i(w.a)(P,R,V)}return P}},function(r,u){'use strict';var w=Object.getPrototypeOf;u.a=function(C){return w(Object(C))}},function(r,u,f){'use strict';function h(W){return D.call(W)}var w=f(443),C=f(194),T=f(445),P=f(195),E=f(447),S=f(213),O='[object Map]',V='[object Promise]',F='[object Set]',I='[object WeakMap]',N='[object DataView]',M=Object.prototype,D=M.toString,q=f.i(S.a)(w.a),z=f.i(S.a)(C.a),U=f.i(S.a)(T.a),$=f.i(S.a)(P.a),K=f.i(S.a)(E.a);(w.a&&h(new w.a(new ArrayBuffer(1)))!=N||C.a&&h(new C.a)!=O||T.a&&h(T.a.resolve())!=V||P.a&&h(new P.a)!=F||E.a&&h(new E.a)!=I)&&(h=function(W){var H=D.call(W),Y=H=='[object Object]'?W.constructor:void 0,G=Y?f.i(S.a)(Y):void 0;if(G)switch(G){case q:return N;case z:return O;case U:return V;case $:return F;case K:return I;}return H}),u.a=h},function(r,u){'use strict';u.a=function(w){var C=-1,T=Array(w.size);return w.forEach(function(P,E){T[++C]=[E,P]}),T}},function(r,u,f){'use strict';var w=f(14),C=f(533),T=f(262);u.a=function(O,R,V){function F(te){var ae=K,ne=W;return K=W=void 0,J=te,Y=O.apply(ne,ae),Y}function I(te){return J=te,G=setTimeout(D,R),Q?F(te):Y}function N(te){var ae=te-Z,ne=te-J,oe=R-ae;return X?_Mathmin(oe,H-ne):oe}function M(te){var ae=te-Z,ne=te-J;return!Z||ae>=R||0>ae||X&&ne>=H}function D(){var te=f.i(C.a)();return M(te)?q(te):void(G=setTimeout(D,N(te)))}function q(te){return(clearTimeout(G),G=void 0,ee&&K)?F(te):(K=W=void 0,Y)}function $(){var te=f.i(C.a)(),ae=M(te);if(K=arguments,W=this,Z=te,ae){if(void 0===G)return I(Z);if(X)return clearTimeout(G),G=setTimeout(D,R),F(Z)}return void 0===G&&(G=setTimeout(D,R)),Y}var Z=0,J=0,Q=!1,X=!1,ee=!0,K,W,H,Y,G;if('function'!=typeof O)throw new TypeError('Expected a function');return R=f.i(T.a)(R)||0,f.i(w.a)(V)&&(Q=!!V.leading,X='maxWait'in V,H=X?_Mathmax(f.i(T.a)(V.maxWait)||0,R):H,ee='trailing'in V?!!V.trailing:ee),$.cancel=function(){void 0!==G&&clearTimeout(G),Z=J=0,K=W=G=void 0},$.flush=function(){return void 0===G?Y:q(f.i(C.a)())},$}},function(r,u,f){'use strict';var w=f(38),C=f(15);u.a=function(T,P,E){var S=T?T.length:0;return S?(P=E||void 0===P?1:f.i(C.a)(P),f.i(w.a)(T,0>P?0:P,S)):[]}},function(r,u,f){'use strict';var w=f(38),C=f(15);u.a=function(T,P,E){var S=T?T.length:0;return S?(P=E||void 0===P?1:f.i(C.a)(P),P=S-P,f.i(w.a)(T,0,0>P?0:P)):[]}},function(r,u){'use strict';u.a=function(w){return w&&w.length?w[0]:void 0}},function(r,u,f){'use strict';var w=f(13),T=Object.prototype,P=T.hasOwnProperty,E=T.toString,S=T.propertyIsEnumerable;u.a=function(O){return f.i(w.a)(O)&&P.call(O,'callee')&&(!S.call(O,'callee')||E.call(O)=='[object Arguments]')}},function(r,u,f){'use strict';var w=f(14),P=Object.prototype,E=P.toString;u.a=function(S){var O=f.i(w.a)(S)?E.call(S):'';return O=='[object Function]'||O=='[object GeneratorFunction]'}},function(r,u,f){'use strict';var w=f(12),C=f(51),P=Object.prototype,E=P.toString;u.a=function(S){return'string'==typeof S||!f.i(w.a)(S)&&f.i(C.a)(S)&&E.call(S)=='[object String]'}},function(r,u,f){'use strict';var w=f(132);u.a=function(C,T){return C&&C.length&&T&&T.length?f.i(w.a)(C,T):C}},function(r,u,f){'use strict';var w=f(197),C=f(27),T=f(100);u.a=function(P,E){if(!(P&&P.length))return[];var S=f.i(T.a)(P);return null==E?S:f.i(C.a)(S,function(O){return f.i(w.a)(E,void 0,O)})}},function(r,u,f){'use strict';var w=f(99),C=f(277);u.a=function(T){return f.i(w.a)(T)?f.i(C.a)(T):new Map(T)}},function(r,u){'use strict';function C(F,I){F.setCustomProperty(O,I)}function E(){return null}u.b=function(F){return!!F.getCustomProperty(S)},u.a=function(F,I){return I=I||{},F.setAttribute('contenteditable',!1),F.getFillerOffset=E,F.addClass(R),F.setCustomProperty(S,!0),I.label&&C(F,I.label),F},u.e=function(F){const I=F.getCustomProperty(O);return I?'function'==typeof I?I():I:''},u.c=function(F){return F.setAttribute('contenteditable','true'),F.addClass('ck-editable'),F.on('change:isFocused',(I,N,M)=>{M?F.addClass('ck-editable_focused'):F.removeClass('ck-editable_focused')}),F};const S=Symbol('isWidget'),O=Symbol('label'),R='ck-widget';u.d='ck-widget_selected'},function(r,u,f){'use strict';var h=f(6),w=f(2),C=f(188),T=f(46),P=f(177);class E extends w.a{static get pluginName(){return'image/imagetoolbar'}constructor(S){super(S),this.isEnabled=!0}afterInit(){const S=this.editor,O=S.config.get('image.toolbar');if(O&&O.length){const R=this._panel=new P.a(S),V=[],F=new C.a;return h.a.extend(F.template,{attributes:{class:'ck-editor-toolbar'}}),h.a.extend(R.template,{attributes:{class:['ck-toolbar-container']}}),V.push(R.content.add(F)),V.push(F.fillFromConfig(O,S.ui.componentFactory)),V.push(S.ui.view.body.add(R)),this.listenTo(this.editor.editing.view,'render',()=>{this.isEnabled&&this.show()},{priority:'low'}),this.listenTo(S.ui.focusTracker,'change:isFocused',(I,N,M,D)=>{!D&&M&&this.isEnabled&&this.show()}),Promise.all(V)}}show(){const S=this.editor.editing.view.selection.getSelectedElement();S&&f.i(T.a)(S)&&this._panel.attach()}hide(){this._panel.detach()}}u.a=E},function(r){var f=function(){return this}();try{f=f||Function('return this')()||(1,eval)('this')}catch(h){'object'==typeof window&&(f=window)}r.exports=f},function(r){r.exports=function(f){if(!f.webpackPolyfill){var h=Object.create(f);h.children||(h.children=[]),Object.defineProperty(h,'loaded',{enumerable:!0,get:function(){return h.l}}),Object.defineProperty(h,'id',{enumerable:!0,get:function(){return h.i}}),Object.defineProperty(h,'exports',{enumerable:!0}),h.webpackPolyfill=1}return h}},function(r,u,f){'use strict';var h=f(2),w=f(41),C=f(34),T=f(160);const P='bold';class E extends h.a{init(){const S=this.editor,O=S.data,R=S.editing;S.document.schema.allow({name:'$inline',attributes:[P],inside:'$block'}),f.i(w.a)().for(O.modelToView,R.modelToView).fromAttribute(P).toElement('strong'),f.i(C.a)().for(O.viewToModel).fromElement('strong').fromElement('b').fromAttribute('style',{'font-weight':'bold'}).toAttribute(P,!0),S.commands.set(P,new T.a(S,P))}}u.a=E},function(r,u,f){'use strict';var h=f(2),w=f(41),C=f(34),T=f(160);const P='italic';class E extends h.a{init(){const S=this.editor,O=S.data,R=S.editing;S.document.schema.allow({name:'$inline',attributes:[P],inside:'$block'}),f.i(w.a)().for(O.modelToView,R.modelToView).fromAttribute(P).toElement('em'),f.i(C.a)().for(O.viewToModel).fromElement('em').fromElement('i').fromAttribute('style',{'font-style':'italic'}).toAttribute(P,!0),S.commands.set(P,new T.a(S,P))}}u.a=E},function(r,u,f){'use strict';var w=f(37);u.a=function(C,T,P){if(T.isCollapsed)return P.check({name:'$text',inside:T.getFirstPosition(),attributes:C});const E=T.getRanges();for(let S of E){const O=new w.a({boundaries:S,mergeCharacters:!0});for(let R=O.position,V=O.next();!V.done;){const F=V.value.item.name||'$text';if(P.check({name:F,inside:R,attributes:C}))return!0;R=O.position,V=O.next()}}return!1}},function(r,u,f){'use strict';var h=f(11),w=f(101),C=f(159);class T extends h.a{constructor(P,E){super(P),this.attributeKey=E,this.set('value',!1),this.listenTo(this.editor.document.selection,'change:attribute',()=>{this.value=this.editor.document.selection.hasAttribute(this.attributeKey)})}_checkEnabled(){const P=this.editor.document;return f.i(C.a)(this.attributeKey,P.selection,P.schema)}_doExecute(P={}){const E=this.editor.document,S=E.selection,O=P.forceValue===void 0?!this.value:P.forceValue;E.enqueueChanges(()=>{if(S.isCollapsed)O?S.setAttribute(this.attributeKey,!0):S.removeAttribute(this.attributeKey);else{const R=f.i(w.a)(this.attributeKey,S.getRanges(),E.schema),V=P.batch||E.batch();for(let F of R)O?V.setAttribute(F,this.attributeKey,O):V.removeAttribute(F,this.attributeKey)}})}}u.a=T},function(r,u,f){'use strict';var h=f(1),w=f(3),C=f(26),T=f(45),P=f(31),E=f(7),S=f(4);class O{constructor(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap,this._viewToModelLengthCallbacks=new Map,this.on('modelToViewPosition',(R,V)=>{if(!V.viewPosition){let F=this._modelToViewMapping.get(V.modelPosition.parent);V.viewPosition=this._findPositionIn(F,V.modelPosition.offset)}},{priority:'low'}),this.on('viewToModelPosition',(R,V)=>{if(V.modelPosition)return;let F=V.viewPosition.parent,I=this._viewToModelMapping.get(F);for(;!I;)F=F.parent,I=this._viewToModelMapping.get(F);let N=this._toModelOffset(V.viewPosition.parent,V.viewPosition.offset,F);V.modelPosition=h.a.createFromParentAndOffset(I,N)},{priority:'low'})}bindElements(R,V){this._modelToViewMapping.set(R,V),this._viewToModelMapping.set(V,R)}unbindViewElement(R){const V=this.toModelElement(R);this._unbindElements(V,R)}unbindModelElement(R){const V=this.toViewElement(R);this._unbindElements(R,V)}clearBindings(){this._modelToViewMapping=new WeakMap,this._viewToModelMapping=new WeakMap}toModelElement(R){return this._viewToModelMapping.get(R)}toViewElement(R){return this._modelToViewMapping.get(R)}toModelRange(R){return new w.a(this.toModelPosition(R.start),this.toModelPosition(R.end))}toViewRange(R){return new T.a(this.toViewPosition(R.start),this.toViewPosition(R.end))}toModelPosition(R){const V={viewPosition:R,mapper:this};return this.fire('viewToModelPosition',V),V.modelPosition}toViewPosition(R){const V={modelPosition:R,mapper:this};return this.fire('modelToViewPosition',V),V.viewPosition}registerViewToModelLength(R,V){this._viewToModelLengthCallbacks.set(R,V)}_toModelOffset(R,V,F){if(F!=R){const N=this._toModelOffset(R.parent,R.index,F),M=this._toModelOffset(R,V,R);return N+M}if(R.is('text'))return V;let I=0;for(let N=0;N<V;N++)I+=this.getModelLength(R.getChild(N));return I}_unbindElements(R,V){this._viewToModelMapping.delete(V),this._modelToViewMapping.delete(R)}getModelLength(R){if(this._viewToModelLengthCallbacks.get(R.name)){const V=this._viewToModelLengthCallbacks.get(R.name);return V(R)}if(this._viewToModelMapping.has(R))return 1;if(R.is('text'))return R.data.length;if(R.is('uiElement'))return 0;let V=0;for(let F of R.getChildren())V+=this.getModelLength(F);return V}_findPositionIn(R,V){let F,I=0,N=0,M=0;if(R.is('text'))return new C.a(R,V);for(;N<V;)F=R.getChild(M),I=this.getModelLength(F),N+=I,M++;return N==V?this._moveViewPositionToTextNode(new C.a(R,M)):this._findPositionIn(F,V-(N-I))}_moveViewPositionToTextNode(R){const V=R.nodeBefore,F=R.nodeAfter;if(V instanceof P.a)return new C.a(V,V.data.length);return F instanceof P.a?new C.a(F,0):R}}u.a=O,f.i(S.a)(O,E.a)},function(r,u,f){'use strict';function P(F,I,N,M,D){if(!F.isCollapsed)return;if(!M.consume(F,D))return;let q=I.getFirstPosition();q=V.a.wrapPosition(q,N),I.removeAllRanges(),I.addRange(new R.a(q,q))}var O=f(25),R=f(45),V=f(79);u.e=function(){return(F,I,N,M)=>{const D=I.selection;if(!D.isCollapsed&&N.consume(D,'selection')){M.viewSelection.removeAllRanges();for(let q of D.getRanges()){const z=M.mapper.toViewRange(q);M.viewSelection.addRange(z,D.isBackward)}}}},u.f=function(){return(F,I,N,M)=>{const D=I.selection;if(D.isCollapsed&&N.consume(D,'selection')){const q=D.getFirstPosition(),z=M.mapper.toViewPosition(q),U=V.a.breakAttributes(z);M.viewSelection.removeAllRanges(),M.viewSelection.addRange(new R.a(U,U))}}},u.a=function(F){return(I,N,M,D)=>{const q=F instanceof O.a?F.clone(!0):F(N.value,N,N.selection,M,D);if(q){const z='selectionAttribute:'+N.key;P(N.selection,D.viewSelection,q,M,z)}}},u.b=function(F){return(I,N,M,D)=>{const q=F instanceof O.a?F.clone(!0):F(N,M,D);if(q){const z='selectionMarker:'+N.name;P(N.selection,D.viewSelection,q,M,z)}}},u.c=function(){return(F,I,N,M)=>{for(let D of M.viewSelection.getRanges())D.isCollapsed&&D.end.parent.document&&V.a.mergeAttributes(D.start);M.viewSelection.removeAllRanges()}},u.d=function(){return(F,I,N,M)=>M.viewSelection.setFake(!1)}},function(r,u,f){'use strict';var h=f(350),w=f(3),C=f(1),T=f(35),P=f(7),E=f(4),S=f(50);class O{constructor(R,V={}){this._modelDocument=R,this.conversionApi=f.i(S.a)({dispatcher:this},V)}convertChange(R,V){'remove'!==R&&V.range&&'$graveyard'==V.range.root.rootName||'remove'==R&&'$graveyard'==V.sourcePosition.root.rootName||'rename'==R&&'$graveyard'==V.element.root.rootName||('insert'==R||'reinsert'==R?this.convertInsertion(V.range):'move'==R?this.convertMove(V.sourcePosition,V.range):'remove'==R?this.convertRemove(V.sourcePosition,V.range):'addAttribute'==R||'removeAttribute'==R||'changeAttribute'==R?this.convertAttribute(R,V.range,V.key,V.oldValue,V.newValue):'rename'==R&&this.convertRename(V.element,V.oldName))}convertInsertion(R){const V=this._createInsertConsumable(R);for(let F of R){const I=F.item,N=w.a.createFromPositionAndShift(F.previousPosition,F.length),M={item:I,range:N};this._testAndFire('insert',M,V);for(let D of I.getAttributeKeys())M.attributeKey=D,M.attributeOldValue=null,M.attributeNewValue=I.getAttribute(D),this._testAndFire(`addAttribute:${D}`,M,V)}for(let F of this._modelDocument.markers){const I=F.getRange();I.containsPosition(R.start)&&this.convertMarker('addMarker',F.name,I.getIntersection(R)),(R.containsRange(I)||R.isEqual(I))&&this.convertMarker('addMarker',F.name,I)}}convertMove(R,V){if(V.start.isBefore(R)){this.convertInsertion(V);const F=R._getTransformedByInsertion(V.start,V.end.offset-V.start.offset);this.convertRemove(F,V)}else this.convertRemove(R,V),this.convertInsertion(V)}convertRemove(R,V){const F=this._createConsumableForRange(V,'remove');for(let I of V.getItems({shallow:!0})){this._testAndFire(`remove`,{sourcePosition:R,item:I},F)}}convertAttribute(R,V,F,I,N){const M=this._createConsumableForRange(V,R+':'+F);for(let D of V){const q=D.item,z=w.a.createFromPositionAndShift(D.previousPosition,D.length);this._testAndFire(`${R}:${F}`,{item:q,range:z,attributeKey:F,attributeOldValue:I,attributeNewValue:N},M)}}convertRename(R,V){const F=R.clone(!0);F.name=V,this.conversionApi.mapper.bindElements(F,this.conversionApi.mapper.toViewElement(R));const I=new T.a;I.appendChildren(F),this.convertRemove(C.a.createBefore(R),w.a.createOn(F)),this.convertInsertion(w.a.createOn(R))}convertSelection(R){const V=Array.from(this._modelDocument.markers.getMarkersAtPosition(R.getFirstPosition())),F=this._createSelectionConsumable(R,V);this.fire('selection',{selection:R},F,this.conversionApi);for(let I of V){const N={selection:R,name:I.name};F.test(R,'selectionMarker:'+I.name)&&this.fire('selectionMarker:'+I.name,N,F,this.conversionApi)}for(let I of R.getAttributeKeys()){const N={selection:R,key:I,value:R.getAttribute(I)};F.test(R,'selectionAttribute:'+N.key)&&this.fire('selectionAttribute:'+N.key,N,F,this.conversionApi)}}convertMarker(R,V,F){if(F.root.document&&'$graveyard'!=F.root.rootName){const I=this._createMarkerConsumable(R,F);this.fire(R+':'+V,{name:V,range:F},I,this.conversionApi)}}_createInsertConsumable(R){const V=new h.a;for(let F of R){const I=F.item;V.add(I,'insert');for(let N of I.getAttributeKeys())V.add(I,'addAttribute:'+N)}return V}_createConsumableForRange(R,V){const F=new h.a;for(let I of R.getItems())F.add(I,V);return F}_createSelectionConsumable(R,V){const F=new h.a;F.add(R,'selection');for(let I of V)F.add(R,'selectionMarker:'+I.name);for(let I of R.getAttributeKeys())F.add(R,'selectionAttribute:'+I);return F}_createMarkerConsumable(R,V){const F=new h.a;return F.add(V,R),F}_testAndFire(R,V,F){if(F.test(V.item,R)){const I=V.item.name||'$text';this.fire(R+':'+I,V,F,this.conversionApi)}}}u.a=O,f.i(E.a)(O,P.a)},function(r,u,f){'use strict';var h=f(355),w=f(169),C=f(62);u.a=class{constructor(){this._domParser=new DOMParser,this._domConverter=new w.a({blockFiller:C.a}),this._htmlWriter=new h.a}toData(P){const E=this._domConverter.viewToDom(P,document);return this._htmlWriter.getHtml(E)}toView(P){const E=this._toDom(P);return this._domConverter.domToView(E)}_toDom(P){const E=this._domParser.parseFromString(P,'text/html'),S=E.createDocumentFragment(),O=E.body.childNodes;for(;0<O.length;)S.appendChild(O[0]);return S}}},function(r,u,f){'use strict';function h(N,M,D,q){q instanceof V.a?C(N,N.document,M,D,q):w(N,N.document,M,D,q)}function w(N,M,D,q,z){const U=z.getAttribute(D);let $,K;const W=z.is('rootElement')?new I:new F;U!=q&&(N.addDelta(W),z.is('rootElement')?K=new O.a(z,D,U,q,M.version):($=z.is('element')?new V.a(R.a.createBefore(z),R.a.createFromParentAndOffset(z,0)):new V.a(R.a.createBefore(z),R.a.createAfter(z)),K=new S.a($,D,U,q,M.version)),W.addOperation(K),M.applyOperation(K))}function C(N,M,D,q,z){function U(){0===$.operations.length&&N.addDelta($);let G=new V.a(K,W);const Z=new S.a(G,D,H,q,M.version);$.addOperation(Z),M.applyOperation(Z)}const $=new F;let K=z.start,W,H,Y;for(let G of z)Y=G.item.getAttribute(D),W&&H!=Y&&(H!=q&&U(),K=W),W=G.nextPosition,H=Y;W instanceof R.a&&W!=K&&H!=q&&U()}var T=f(20),P=f(17),E=f(16),S=f(75),O=f(115),R=f(1),V=f(3);class F extends T.a{get type(){return'attribute'}get key(){return this.operations[0]?this.operations[0].key:null}get value(){return this.operations[0]?this.operations[0].newValue:null}get range(){if(this._range)return this._range;let N=null,M=null;for(let D of this.operations)(null==N||N.isAfter(D.range.start))&&(N=D.range.start),(null==M||M.isBefore(D.range.end))&&(M=D.range.end);return N&&M?(this._range=new V.a(N,M),this._range):null}get _reverseDeltaClass(){return F}static get className(){return'engine.model.delta.AttributeDelta'}static get _priority(){return 20}}u.a=F;class I extends T.a{static get className(){return'engine.model.delta.RootAttributeDelta'}}f.i(E.b)('setAttribute',function(N,M,D){return h(this,M,D,N),this}),f.i(E.b)('removeAttribute',function(N,M){return h(this,M,null,N),this}),P.a.register(F),P.a.register(I)},function(r,u,f){'use strict';function h(V,F,I){F.addOperation(I),V.document.applyOperation(I)}var w=f(20),C=f(17),T=f(16),P=f(114),E=f(5),S=f(1),O=f(0);class R extends w.a{get type(){return'rename'}get _reverseDeltaClass(){return R}static get className(){return'engine.model.delta.RenameDelta'}}u.a=R,f.i(T.b)('rename',function(V,F){if(!(V instanceof E.a))throw new O.a('batch-rename-not-element-instance: Trying to rename an object which is not an instance of Element.');const I=new R;return this.addDelta(I),h(this,I,new P.a(S.a.createBefore(V),V.name,F,this.document.version)),this}),C.a.register(R)},function(r,u,f){'use strict';var h=f(103),w=f(16),C=f(17),T=f(42),P=f(18);class E extends h.a{static get className(){return'engine.model.delta.WeakInsertDelta'}}u.a=E,f.i(w.b)('weakInsert',function(S,O){const R=new E;this.addDelta(R),O=f.i(P.b)(O);for(let F of O)F.setAttributesTo(this.document.selection.getAttributes());const V=new T.a(S,O,this.document.version);return R.addOperation(V),this.document.applyOperation(V),this}),C.a.register(E)},function(r,u,f){'use strict';function h(){const R=new Set(['insert','move','remove','reinsert']);this.listenTo(this.root.document,'change',(V,F,I)=>{R.has(F)&&w.call(this,F,I.range,I.sourcePosition)},{priority:'high'})}function w(R,V,F){let I=V.end.offset-V.start.offset,N;switch(R){case'insert':let M='sticksToNext'==this.stickiness;N=this._getTransformedByInsertion(V.start,I,M);break;case'move':case'remove':case'reinsert':let D=T.a.createFromPositionAndShift(F,I),q=D.containsPosition(this)||D.start.isEqual(this)&&'sticksToNext'==this.stickiness||D.end.isEqual(this)&&'sticksToPrevious'==this.stickiness;if(q)N=this._getCombined(F,V.start);else{let z='sticksToNext'==this.stickiness;N=this._getTransformedByMove(F,V.start,I,z)}}if(!this.isEqual(N)){const M=C.a.createFromPosition(this);this.path=N.path,this.root=N.root,this.fire('change',M)}}var C=f(1),T=f(3),P=f(7),E=f(4),S=f(0);class O extends C.a{constructor(R,V,F){if(super(R,V),!this.root.is('rootElement'))throw new S.a('model-liveposition-root-not-rootelement: LivePosition root has to be an instance of RootElement.');this.stickiness=F||'sticksToNext',h.call(this)}detach(){this.stopListening()}}u.a=O,f.i(E.a)(O,P.a)},function(r,u,f){'use strict';function h(M,D,q){let z=f.i(F.a)(M);return q&&(z=z.slice(z.indexOf(q)+1)),z.some((U)=>U.tagName&&D.includes(U.tagName.toLowerCase()))}var w=f(31),C=f(25),T=f(26),P=f(45),E=f(64),S=f(117),O=f(54),R=f(62),V=f(434),F=f(191),I=f(431);u.a=class{constructor(M={}){this.blockFiller=M.blockFiller||R.b,this.preElements=['pre'],this.blockElements=['p','div','h1','h2','h3','h4','h5','h6'],this._domToViewMapping=new WeakMap,this._viewToDomMapping=new WeakMap,this._fakeSelectionMapping=new WeakMap}bindFakeSelection(M,D){this._fakeSelectionMapping.set(M,E.a.createFromSelection(D))}fakeSelectionToView(M){return this._fakeSelectionMapping.get(M)}bindElements(M,D){this._domToViewMapping.set(M,D),this._viewToDomMapping.set(D,M)}unbindDomElement(M){const D=this._domToViewMapping.get(M);if(D){this._domToViewMapping.delete(M),this._viewToDomMapping.delete(D);for(let q of Array.from(M.childNodes))this.unbindDomElement(q)}}bindDocumentFragments(M,D){this._domToViewMapping.set(M,D),this._viewToDomMapping.set(D,M)}viewToDom(M,D,q={}){if(M.is('text')){const z=this._processDataFromViewText(M);return D.createTextNode(z)}if(this.getCorrespondingDom(M))return this.getCorrespondingDom(M);let z;if(M.is('documentFragment'))z=D.createDocumentFragment(),q.bind&&this.bindDocumentFragments(z,M);else{z=D.createElement(M.name),q.bind&&this.bindElements(z,M);for(let U of M.getAttributeKeys())z.setAttribute(U,M.getAttribute(U))}if(q.withChildren||void 0===q.withChildren)for(let U of this.viewChildrenToDom(M,D,q))z.appendChild(U);return z}*viewChildrenToDom(M,D,q={}){let z=M.getFillerOffset&&M.getFillerOffset(),U=0;for(let $ of M.getChildren())z===U&&(yield this.blockFiller(D)),yield this.viewToDom($,D,q),U++;z===U&&(yield this.blockFiller(D))}viewRangeToDom(M){const D=this.viewPositionToDom(M.start),q=this.viewPositionToDom(M.end),z=document.createRange();return z.setStart(D.parent,D.offset),z.setEnd(q.parent,q.offset),z}viewPositionToDom(M){const D=M.parent;if(D.is('text')){const q=this.getCorrespondingDomText(D);if(!q)return null;let z=M.offset;return f.i(R.c)(q)&&(z+=R.d),{parent:q,offset:z}}let q,z,U;if(0===M.offset){if(q=this.getCorrespondingDom(M.parent),!q)return null;U=q.childNodes[0]}else{if(z=this.getCorrespondingDom(M.nodeBefore),!z)return null;q=z.parentNode,U=z.nextSibling}if(this.isText(U)&&f.i(R.c)(U))return{parent:U,offset:R.d};const $=z?f.i(V.a)(z)+1:0;return{parent:q,offset:$}}domToView(M,D={}){if(f.i(R.e)(M,this.blockFiller))return null;if(this.isText(M)){if(f.i(R.f)(M))return null;const q=this._processDataFromDomText(M);return''===q?null:new w.a(q)}if(this.isComment(M))return null;if(this.getCorrespondingView(M))return this.getCorrespondingView(M);let q;if(this.isDocumentFragment(M))q=new S.a,D.bind&&this.bindDocumentFragments(M,q);else{const z=D.keepOriginalCase?M.tagName:M.tagName.toLowerCase();q=new C.a(z),D.bind&&this.bindElements(M,q);const U=M.attributes;for(let $=U.length-1;0<=$;$--)q.setAttribute(U[$].name,U[$].value)}if(D.withChildren||void 0===D.withChildren)for(let z of this.domChildrenToView(M,D))q.appendChildren(z);return q}*domChildrenToView(M,D={}){for(let q=0;q<M.childNodes.length;q++){const z=M.childNodes[q],U=this.domToView(z,D);null!==U&&(yield U)}}domSelectionToView(M){if(1===M.rangeCount){let z=M.getRangeAt(0).startContainer;this.isText(z)&&(z=z.parentNode);const U=this.fakeSelectionToView(z);if(U)return U}const D=new E.a,q=this.isDomSelectionBackward(M);for(let z=0;z<M.rangeCount;z++){const U=M.getRangeAt(z),$=this.domRangeToView(U);$&&D.addRange($,q)}return D}domRangeToView(M){const D=this.domPositionToView(M.startContainer,M.startOffset),q=this.domPositionToView(M.endContainer,M.endOffset);return D&&q?new P.a(D,q):null}domPositionToView(M,D){if(f.i(R.e)(M,this.blockFiller))return this.domPositionToView(M.parentNode,f.i(V.a)(M));if(this.isText(M)){if(f.i(R.f)(M))return this.domPositionToView(M.parentNode,f.i(V.a)(M));const q=this.getCorrespondingViewText(M);let z=D;return q?(f.i(R.c)(M)&&(z-=R.d,z=0>z?0:z),new T.a(q,z)):null}if(0===D){const q=this.getCorrespondingView(M);if(q)return new T.a(q,0)}else{const q=this.getCorrespondingView(M.childNodes[D-1]);if(q&&q.parent)return new T.a(q.parent,q.index+1)}return null}getCorrespondingView(M){if(this.isElement(M))return this.getCorrespondingViewElement(M);return this.isDocumentFragment(M)?this.getCorrespondingViewDocumentFragment(M):this.isText(M)?this.getCorrespondingViewText(M):null}getCorrespondingViewElement(M){return this._domToViewMapping.get(M)}getCorrespondingViewDocumentFragment(M){return this._domToViewMapping.get(M)}getCorrespondingViewText(M){if(f.i(R.f)(M))return null;const D=M.previousSibling;if(D){if(!this.isElement(D))return null;const q=this.getCorrespondingViewElement(D);if(q){const z=q.nextSibling;return z instanceof w.a?q.nextSibling:null}}else{const q=this.getCorrespondingViewElement(M.parentNode);if(q){const z=q.getChild(0);return z instanceof w.a?z:null}}return null}getCorrespondingDom(M){if(M instanceof C.a)return this.getCorrespondingDomElement(M);return M instanceof S.a?this.getCorrespondingDomDocumentFragment(M):M instanceof w.a?this.getCorrespondingDomText(M):null}getCorrespondingDomElement(M){return this._viewToDomMapping.get(M)}getCorrespondingDomDocumentFragment(M){return this._viewToDomMapping.get(M)}getCorrespondingDomText(M){const D=M.previousSibling;return D&&this.getCorrespondingDom(D)?this.getCorrespondingDom(D).nextSibling:!D&&M.parent&&this.getCorrespondingDom(M.parent)?this.getCorrespondingDom(M.parent).childNodes[0]:null}focus(M){const D=this.getCorrespondingDomElement(M);D&&D.ownerDocument.activeElement!==D&&D.focus()}isText(M){return M&&M.nodeType==Node.TEXT_NODE}isElement(M){return M&&M.nodeType==Node.ELEMENT_NODE}isDocumentFragment(M){return M&&M.nodeType==Node.DOCUMENT_FRAGMENT_NODE}isComment(M){return M&&M.nodeType==Node.COMMENT_NODE}isDomSelectionBackward(M){if(M.isCollapsed)return!1;const D=document.createRange();D.setStart(M.anchorNode,M.anchorOffset),D.setEnd(M.focusNode,M.focusOffset);const q=D.collapsed;return D.detach(),q}_processDataFromViewText(M){let D=M.data;if(M.getAncestors().some((K)=>this.preElements.includes(K.name)))return D;const q=this._getTouchingViewTextNode(M,!1),z=this._getTouchingViewTextNode(M,!0);let U=D.match(/ *$/)[0],$=D.substr(0,D.length-U.length);if(q&&' '!=q.data.charAt(q.data.length-1)||($=$.replace(/^ /,'\xA0')),$=$.replace(/ /g,' \xA0'),0<U.length){let K=!1;z?(' '==z.data.charAt(0)||'\xA0'==z.data.charAt(0))&&0==U.length%2&&(K=!0):U.length%2&&(K=!0),K&&(U='\xA0'+U.substr(0,U.length-1)),U=U.replace(/ /g,' \xA0')}return $+U}_getTouchingViewTextNode(M,D){if(!M.parent)return null;const q=new O.a({startPosition:D?T.a.createAfter(M):T.a.createBefore(M),direction:D?'forward':'backward'});for(let z of q){if(z.item.is('containerElement'))return null;if(z.item.is('text'))return z.item}return null}_processDataFromDomText(M){let D=f.i(R.g)(M);if(h(M,this.preElements))return D;D=D.replace(/[^\S\u00A0]{2,}/g,' ');const q=this._getTouchingDomTextNode(M,!1),z=this._getTouchingDomTextNode(M,!0);return(!q||/[^\S\u00A0]/.test(q.data.charAt(q.data.length-1)))&&(D=D.replace(/^ /,'')),z||(D=D.replace(/ $/,'')),D=D.replace(/ \u00A0/g,' '),(!q||/[^\S\u00A0]/.test(q.data.charAt(q.data.length-1)))&&(D=D.replace(/^\u00A0/,' ')),z&&'\xA0'!=z.data.charAt(0)||(D=D.replace(/\u00A0( *)$/,' $1')),D}_getTouchingDomTextNode(M,D){if(!M.parentNode)return null;const q=D?'nextNode':'previousNode',z=M.ownerDocument,U=z.createTreeWalker(z.childNodes[0],NodeFilter.SHOW_TEXT);U.currentNode=M;const $=U[q]();if(null!==$){const K=f.i(I.a)(M,$);if(K&&!h(M,this.blockElements,K)&&!h($,this.blockElements,K))return $}return null}}},function(r,u,f){'use strict';function h(){return null}var w=f(25),C=f(0),T=f(78);class P extends w.a{constructor(E,S,O){super(E,S,O),this.getFillerOffset=h}is(E,S=null){return S?'emptyElement'==E&&S==this.name||super.is(E,S):'emptyElement'==E||super.is(E)}insertChildren(E,S){if(S&&(S instanceof T.a||0<Array.from(S).length))throw new C.a('view-emptyelement-cannot-add: Cannot add child nodes to EmptyElement instance.')}}u.a=P},function(r,u){'use strict';function h(S,O){if('function'==typeof O)return O(S);const R={};return O.name&&(R.name=w(O.name,S.name),!R.name)?null:O.attribute&&(R.attribute=C(O.attribute,S),!R.attribute)?null:O.class&&(R.class=T(O.class,S),!R.class)?!1:O.style&&(R.style=P(O.style,S),!R.style)?!1:R}function w(S,O){return S instanceof RegExp?S.test(O):S===O}function C(S,O){const R=[];for(let V in S){const F=S[V];if(O.hasAttribute(V)){const I=O.getAttribute(V);if(F instanceof RegExp){if(F.test(I))R.push(V);else return null;}else if(I===F)R.push(V);else return null}else return null}return R}function T(S,O){const R=[];for(let V of S)if(V instanceof RegExp){const F=O.getClassNames();for(let I of F)V.test(I)&&R.push(I);if(0===R.length)return null}else if(O.hasClass(V))R.push(V);else return null;return R}function P(S,O){const R=[];for(let V in S){const F=S[V];if(O.hasStyle(V)){const I=O.getStyle(V);if(F instanceof RegExp){if(F.test(I))R.push(V);else return null;}else if(I===F)R.push(V);else return null}else return null}return R}u.a=class{constructor(...S){this._patterns=[],this.add(...S)}add(...S){for(let O of S)('string'==typeof O||O instanceof RegExp)&&(O={name:O}),O.class&&('string'==typeof O.class||O.class instanceof RegExp)&&(O.class=[O.class]),this._patterns.push(O)}match(...S){for(let O of S)for(let R of this._patterns){const V=h(O,R);if(V)return{element:O,pattern:R,match:V}}return null}matchAll(...S){const O=[];for(let R of S)for(let V of this._patterns){const F=h(R,V);F&&O.push({element:R,pattern:V,match:F})}return 0<O.length?O:null}getElementName(){if(1!==this._patterns.length)return null;const S=this._patterns[0],O=S.name;return'function'!=typeof S&&O&&!(O instanceof RegExp)?O:null}}},function(r,u,f){'use strict';var h=f(53),w=f(64),C=f(62);class T extends h.a{constructor(P){super(P),this._config={childList:!0,characterData:!0,characterDataOldValue:!0,subtree:!0},this.domConverter=P.domConverter,this.renderer=P.renderer,this._domElements=[],this._mutationObserver=new window.MutationObserver(this._onMutations.bind(this))}flush(){this._onMutations(this._mutationObserver.takeRecords())}observe(P){this._domElements.push(P),this.isEnabled&&this._mutationObserver.observe(P,this._config)}enable(){super.enable();for(let P of this._domElements)this._mutationObserver.observe(P,this._config)}disable(){super.disable(),this._mutationObserver.disconnect()}destroy(){super.destroy(),this._mutationObserver.disconnect()}_onMutations(P){if(0===P.length)return;const E=this.domConverter,S=new Map,O=new Set;for(let I of P)if('childList'===I.type){const N=E.getCorrespondingViewElement(I.target);N&&!this._isBogusBrMutation(I)&&O.add(N)}for(let I of P)if('characterData'===I.type){const N=E.getCorrespondingViewText(I.target);N&&!O.has(N.parent)?S.set(N,{type:'text',oldText:N.data,newText:f.i(C.g)(I.target),node:N}):!N&&f.i(C.c)(I.target)&&O.add(E.getCorrespondingViewElement(I.target.parentNode))}const R=[];for(let I of S.values())this.renderer.markToSync('text',I.node),R.push(I);for(let I of O){const N=E.getCorrespondingDomElement(I),M=I.getChildren(),D=E.domChildrenToView(N);this.renderer.markToSync('children',I),R.push({type:'children',oldChildren:Array.from(M),newChildren:Array.from(D),node:I})}const V=P[0].target.ownerDocument.getSelection();let F=null;if(V&&V.anchorNode){const I=E.domPositionToView(V.anchorNode,V.anchorOffset),N=E.domPositionToView(V.focusNode,V.focusOffset);I&&N&&(F=new w.a,F.collapse(I),F.setFocus(N))}this.document.fire('mutations',R,F),this.document.render()}_isBogusBrMutation(P){let E=null;return null===P.nextSibling&&0===P.removedNodes.length&&1==P.addedNodes.length&&(E=this.domConverter.domToView(P.addedNodes[0],{withChildren:!1})),E&&E.is('element','br')}}u.a=T},function(r,u,f){'use strict';var h=f(77);const w=Symbol('rootName');class C extends h.a{constructor(T){super(T),this.rootName='main'}is(T,P=null){return P?'rootElement'==T&&P==this.name||super.is(T,P):'rootElement'==T||super.is(T)}get rootName(){return this.getCustomProperty(w)}set rootName(T){this.setCustomProperty(w,T)}}u.a=C},function(r,u,f){'use strict';function h(){return null}var w=f(25),C=f(0),T=f(78);class P extends w.a{constructor(E,S,O){super(E,S,O),this.getFillerOffset=h}is(E,S=null){return S?'uiElement'==E&&S==this.name||super.is(E,S):'uiElement'==E||super.is(E)}insertChildren(E,S){if(S&&(S instanceof T.a||0<Array.from(S).length))throw new C.a('view-uielement-cannot-add: Cannot add child nodes to UIElement instance.')}}u.a=P},function(r,u,f){'use strict';var h=f(2),w=f(41),C=f(34),T=f(73),P=f(380);const E='paragraph';class S extends h.a{constructor(O){super(O),O.config.define('heading',{options:[{modelElement:'paragraph',title:'Paragraph',class:'ck-heading_paragraph'},{modelElement:'heading1',viewElement:'h2',title:'Heading 1',class:'ck-heading_heading1'},{modelElement:'heading2',viewElement:'h3',title:'Heading 2',class:'ck-heading_heading2'},{modelElement:'heading3',viewElement:'h4',title:'Heading 3',class:'ck-heading_heading3'}]})}static get requires(){return[T.a]}init(){const O=this.editor,R=O.data,V=O.editing,F=O.config.get('heading.options');for(let I of F)I.modelElement!==E&&(O.document.schema.registerItem(I.modelElement,'$block'),f.i(w.a)().for(R.modelToView,V.modelToView).fromElement(I.modelElement).toElement(I.viewElement),f.i(C.a)().for(R.viewToModel).fromElement(I.viewElement).toElement(I.modelElement),O.commands.set(I.modelElement,new P.a(O,I)))}afterInit(){const O=this.editor,R=O.commands.get('enter'),V=O.config.get('heading.options');R&&this.listenTo(R,'afterExecute',(F,I)=>{const N=O.document.selection.getFirstPosition().parent,M=I.batch,D=V.some((q)=>N.is(q.modelElement));D&&!N.is(E)&&0===N.childCount&&M.rename(N,E)})}}u.a=S},function(r,u,f){'use strict';function h(){return new O.a('figure',{class:'image'},new R.a('img'))}var w=f(2),C=f(41),T=f(34),P=f(381),E=f(46),S=f(5),O=f(44),R=f(170);class V extends w.a{init(){const F=this.editor,I=F.document,N=I.schema,M=F.data,D=F.editing,q=F.t;N.registerItem('image'),N.requireAttributes('image',['src']),N.allow({name:'image',attributes:['alt','src'],inside:'$root'}),N.objects.add('image'),f.i(C.a)().for(M.modelToView).fromElement('image').toElement(()=>h()),f.i(C.a)().for(D.modelToView).fromElement('image').toElement(()=>f.i(E.c)(h(),q('image widget'))),f.i(P.a)([D.modelToView,M.modelToView],'src'),f.i(P.a)([D.modelToView,M.modelToView],'alt'),f.i(T.a)().for(M.viewToModel).from({name:'img',attribute:{src:/./}}).toElement((z)=>new S.a('image',{src:z.getAttribute('src')})),M.viewToModel.on('element:img',P.b,{priority:'low'}),M.viewToModel.on('element',P.c,{priority:'low'}),f.i(T.a)().for(M.viewToModel).from({name:'img',attribute:{alt:/./}}).consuming({attribute:['alt']}).toAttribute((z)=>({key:'alt',value:z.getAttribute('alt')})),M.viewToModel.on('element:figure',f.i(P.d)())}}u.a=V},function(r,u,f){'use strict';var h=f(535),w=f(47),C=f(187),T=f(46);class P extends C.a{constructor(E){super(E.locale),this.editor=E;const S=E.editing.view;this.listenTo(E.ui.focusTracker,'change:isFocused',(O,R,V,F)=>{F&&!V&&this.detach()}),E.listenTo(S,'render',()=>{const O=S.selection.getSelectedElement();O&&f.i(T.a)(O)||this.detach()},{priority:'low'}),this._throttledAttach=f.i(h.a)(()=>{this._attach()},100)}init(){return this.editor.ui.focusTracker.add(this.element),super.init()}attach(){this._attach(),this.editor.ui.view.listenTo(w.a.window,'scroll',this._throttledAttach),this.editor.ui.view.listenTo(w.a.window,'resize',this._throttledAttach)}detach(){this.hide(),this.editor.ui.view.stopListening(w.a.window,'scroll',this._throttledAttach),this.editor.ui.view.stopListening(w.a.window,'resize',this._throttledAttach)}_attach(){const E=this.editor.editing.view,S=C.a.defaultPositions;this.attachTo({target:E.domConverter.viewToDom(E.selection.getSelectedElement()),positions:[S.northArrowSouth,S.southArrowNorth]})}}u.a=P},function(r,u,f){'use strict';function w(P,E,S){let O=P.textNode||(S?P.nodeBefore:P.nodeAfter),R=null;for(;O&&O.getAttribute('linkHref')==E;)R=O,O=S?O.previousSibling:O.nextSibling;return R?T.a.createAt(R,S?'before':'after'):P}var C=f(3),T=f(1);u.a=function(P,E){return new C.a(w(P,E,!0),w(P,E,!1))}},function(r,u,f){'use strict';var h=f(116);class w extends h.a{}u.a=w},function(r,u,f){'use strict';function h(O){let R=1;for(let V of O.getChildren())if('ul'==V.name||'ol'==V.name)for(let F of V.getChildren())R+=h(F);return R}var w=f(397),C=f(396),T=f(2),P=f(73),E=f(395);class S extends T.a{static get requires(){return[P.a]}init(){const O=this.editor,R=O.document.schema;R.registerItem('listItem','$block'),R.allow({name:'listItem',inside:'$root',attributes:['type','indent']}),R.requireAttributes('listItem',['type','indent']);const V=O.data,F=O.editing;this.editor.document.on('change',f.i(E.a)(this.editor.document),{priority:'high'}),this.editor.document.on('change',(I,N,M)=>{if('move'==N)for(let D of M.range.getItems())D.is('listItem')&&F.mapper.unbindModelElement(D)},{priority:'high'}),F.mapper.registerViewToModelLength('li',h),V.mapper.registerViewToModelLength('li',h),F.mapper.on('modelToViewPosition',E.b),F.mapper.on('viewToModelPosition',E.c),V.mapper.on('modelToViewPosition',E.b),F.modelToView.on('insert',E.d,{priority:'high'}),F.modelToView.on('insert:listItem',E.e),V.modelToView.on('insert',E.d,{priority:'high'}),V.modelToView.on('insert:listItem',E.e),F.modelToView.on('changeAttribute:type:listItem',E.f),V.modelToView.on('changeAttribute:type:listItem',E.f),F.modelToView.on('remove:listItem',E.g),F.modelToView.on('remove',E.h,{priority:'low'}),V.modelToView.on('remove:listItem',E.g),V.modelToView.on('remove',E.h,{priority:'low'}),F.modelToView.on('changeAttribute:indent:listItem',E.i),V.modelToView.on('changeAttribute:indent:listItem',E.i),V.viewToModel.on('element:ul',E.j,{priority:'high'}),V.viewToModel.on('element:ol',E.j,{priority:'high'}),V.viewToModel.on('element:li',E.k,{priority:'high'}),V.viewToModel.on('element:li',E.l),V.on('insertContent',E.m,{priority:'high'}),O.commands.set('numberedList',new w.a(O,'numbered')),O.commands.set('bulletedList',new w.a(O,'bulleted')),O.commands.set('indentList',new C.a(O,'forward')),O.commands.set('outdentList',new C.a(O,'backward'))}}u.a=S},function(r,u,f){'use strict';var h=f(189);class w{constructor(C,T=20){this.document=C,this.size=0,this.limit=T,this.isLocked=!1,this._changeCallback=(P,E,S,O)=>{this._onBatch(O)},this._selectionChangeCallback=()=>{this._reset()},C.on('change',this._changeCallback),C.selection.on('change:range',this._selectionChangeCallback),C.selection.on('change:attribute',this._selectionChangeCallback)}get batch(){return this._batch||(this._batch=this.document.batch()),this._batch}input(C){this.size+=C,this.size>=this.limit&&this._reset(!0)}lock(){this.isLocked=!0}unlock(){this.isLocked=!1}destroy(){this.document.off('change',this._changeCallback),this.document.selection.off('change:range',this._selectionChangeCallback),this.document.selection.off('change:attribute',this._selectionChangeCallback)}_onBatch(C){'transparent'!=C.type&&C!==this._batch&&1>=f.i(h.a)(C.getOperations())&&this._reset(!0)}_reset(C){(!this.isLocked||C)&&(this._batch=null,this.size=0)}}u.a=w},function(r,u){'use strict';u.a=function({emitter:w,activator:C,callback:T,contextElement:P}){w.listenTo(document,'mouseup',(E,{target:S})=>{C()&&!P.contains(S)&&T()})}},function(r,u){'use strict';u.a=function(w){return w.bindTemplate.to((C)=>{C.target===w.element&&C.preventDefault()})}},function(r,u){'use strict';u.a=function({view:w}){w.listenTo(w.element,'submit',(C,T)=>{T.preventDefault(),w.fire('submit')},{useCapture:!0})}},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T){super(T),this.set('value'),this.set('id');const P=this.bindTemplate;this.template=new w.a({tag:'input',attributes:{type:'text',class:['ck-input','ck-input-text'],id:P.to('id')}}),this.on('change:value',(E,S,O)=>this.element.value=O||'')}select(){this.element.select()}focus(){this.element.focus()}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(72),T=f(417);class P extends h.a{constructor(E,S){super(E);const O=`ck-input-${f.i(C.a)()}`;this.set('label'),this.set('value'),this.labelView=this._createLabelView(O),this.inputView=this._createInputView(S,O),this.template=new w.a({tag:'div',children:[this.labelView,this.inputView]})}_createLabelView(E){const S=new T.a(this.locale);return S.for=E,S.bind('text').to(this,'label'),S}_createInputView(E,S){const O=new E(this.locale);return O.id=S,O.bind('value').to(this),O}select(){this.inputView.select()}focus(){this.inputView.focus()}}u.a=P},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(436),T=f(192),P=f(237),E=f(193),S=f(183),O=f(47);const R=f.i(E.a)('px'),V=O.a.document.body;class F extends h.a{constructor(I){super(I);const N=this.bindTemplate;this.set('top',0),this.set('left',0),this.set('position','arrow_ne'),this.set('isVisible',!1),this.set('withArrow',!0),this.set('className'),this.content=this.createCollection(),this.template=new w.a({tag:'div',attributes:{class:['ck-balloon-panel',N.to('position',(M)=>`ck-balloon-panel_${M}`),N.if('isVisible','ck-balloon-panel_visible'),N.if('withArrow','ck-balloon-panel_with-arrow'),N.to('className')],style:{top:N.to('top',R),left:N.to('left',R),maxWidth:N.to('maxWidth',R)}},children:this.content,on:{mousedown:f.i(S.a)(this)}})}show(){this.isVisible=!0}hide(){this.isVisible=!1}attachTo(I){this.show();const N=F.defaultPositions,M=Object.assign({},{element:this.element,positions:[N.southEastArrowNorthEast,N.southWestArrowNorthEast,N.northEastArrowSouthWest,N.northWestArrowSouthEast],limiter:V,fitInViewport:!0},I),{top:D,left:q,name:z}=f.i(C.a)(M);Object.assign(this,{top:D,left:q,position:z})}pin(I){this.unpin(),this._pinWhenIsVisibleCallback=()=>{this.isVisible?this._startPinning(I):this._stopPinning()},this._startPinning(I),this.listenTo(this,'change:isVisible',this._pinWhenIsVisibleCallback)}unpin(){this._pinWhenIsVisibleCallback&&(this._stopPinning(),this.stopListening(this,'change:isVisible',this._pinWhenIsVisibleCallback),this._pinWhenIsVisibleCallback=null,this.hide())}_startPinning(I){this.attachTo(I);const N=I.limiter||V;let M=null;f.i(P.a)(I.target)?M=I.target:f.i(T.a)(I.target)&&(M=I.target.commonAncestorContainer),this.listenTo(O.a.document,'scroll',(D,q)=>{(M&&q.target.contains(M)||q.target.contains(N))&&this.attachTo(I)},{useCapture:!0}),this.listenTo(O.a.window,'resize',()=>{this.attachTo(I)})}_stopPinning(){this.stopListening(O.a.document,'scroll'),this.stopListening(O.a.window,'resize')}}u.a=F,F.arrowHorizontalOffset=30,F.arrowVerticalOffset=15,F.defaultPositions={southEastArrowNorthEast:(I)=>({top:I.bottom+F.arrowVerticalOffset,left:I.left+I.width/2-F.arrowHorizontalOffset,name:'arrow_ne'}),southWestArrowNorthEast:(I,N)=>({top:I.bottom+F.arrowVerticalOffset,left:I.left+I.width/2-N.width+F.arrowHorizontalOffset,name:'arrow_nw'}),northEastArrowSouthWest:(I,N)=>({top:I.top-N.height-F.arrowVerticalOffset,left:I.left+I.width/2-F.arrowHorizontalOffset,name:'arrow_se'}),northWestArrowSouthEast:(I,N)=>({top:I.top-N.height-F.arrowVerticalOffset,left:I.left+I.width/2-N.width+F.arrowHorizontalOffset,name:'arrow_sw'}),southEastArrowNorth:(I,N)=>({top:I.bottom+F.arrowVerticalOffset,left:I.right-N.width/2,name:'arrow_n'}),northEastArrowSouth:(I,N)=>({top:I.top-N.height-F.arrowVerticalOffset,left:I.right-N.width/2,name:'arrow_s'}),northWestArrowSouth:(I,N)=>({top:I.top-N.height-F.arrowVerticalOffset,left:I.left-N.width/2,name:'arrow_s'}),southWestArrowNorth:(I,N)=>({top:I.bottom+F.arrowVerticalOffset,left:I.left-N.width/2,name:'arrow_n'}),southArrowNorth:(I,N)=>({top:I.bottom+F.arrowVerticalOffset,left:I.left+I.width/2-N.width/2,name:'arrow_n'}),northArrowSouth:(I,N)=>({top:I.top-N.height-F.arrowVerticalOffset,left:I.left+I.width/2-N.width/2,name:'arrow_s'})}},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(67),T=f(119),P=f(68),E=f(424),S=f(183);class O extends h.a{constructor(R){super(R),this.items=this.createCollection(),this.focusTracker=new C.a,this.keystrokes=new P.a,this._focusCycler=new T.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:['arrowleft','arrowup'],focusNext:['arrowright','arrowdown']}}),this.template=new w.a({tag:'div',attributes:{class:['ck-toolbar']},children:this.items,on:{mousedown:f.i(S.a)(this)}}),this.items.on('add',(V,F)=>{this.focusTracker.add(F.element)}),this.items.on('remove',(V,F)=>{this.focusTracker.remove(F.element)})}init(){return this.keystrokes.listenTo(this.element),super.init()}focus(){this._focusCycler.focusFirst()}fillFromConfig(R,V){return R?Promise.all(R.map((F)=>{const I='|'==F?new E.a:V.create(F);return this.items.add(I)})):Promise.resolve()}}u.a=O},function(r,u){'use strict';u.a=function(w){let C=0;for(let T of w)C++;return C}},function(r,u){'use strict';u.a=function(w,C,T){function P(D){const q=(I[D-1]===void 0?-1:I[D-1])+1,z=I[D+1]===void 0?-1:I[D+1],U=q>z?-1:1;F[D+U]&&(F[D]=F[D+U].slice(0)),F[D]||(F[D]=[]),F[D].push(q>z?E:S);let $=_Mathmax(q,z),K=$-D;for(;K<O&&$<R&&T(w[K],C[$]);)K++,$++,F[D].push('equal');return $}T=T||function(D,q){return D===q};let E,S;if(C.length<w.length){let D=w;w=C,C=D,E='delete',S='insert'}else E='insert',S='delete';const O=w.length,R=C.length,V=R-O,F={},I={};let N=0,M;do{for(M=-N;M<V;M++)I[M]=P(M);for(M=V+N;M>V;M--)I[M]=P(M);I[V]=P(V),N++}while(I[V]!==R);return F[V].slice(1)}},function(r,u){'use strict';u.a=function(w){const C=[];for(;w&&w.nodeType!=Node.DOCUMENT_NODE;)C.unshift(w),w=w.parentNode;return C}},function(r,u){'use strict';u.a=function(w){return'[object Range]'==Object.prototype.toString.apply(w)}},function(r,u){'use strict';u.a=function(w){return(C)=>C+w}},function(r,u,f){'use strict';var h=f(55),w=f(32),C=f.i(h.a)(w.a,'Map');u.a=C},function(r,u,f){'use strict';var h=f(55),w=f(32),C=f.i(h.a)(w.a,'Set');u.a=C},function(r,u,f){'use strict';var h=f(32),w=h.a.Uint8Array;u.a=w},function(r,u){'use strict';u.a=function(w,C,T){var P=T.length;return 0===P?w.call(C):1===P?w.call(C,T[0]):2===P?w.call(C,T[0],T[1]):3===P?w.call(C,T[0],T[1],T[2]):w.apply(C,T)}},function(r,u){'use strict';u.a=function(w,C,T,P){var E=-1,S=w.length;for(P&&S&&(T=w[++E]);++E<S;)T=C(T,w[E],E,w);return T}},function(r,u,f){'use strict';function h(be,_e,ke,we,ye,ve,xe){var Ce;if(we&&(Ce=ve?we(be,ye,ve,xe):we(be)),void 0!==Ce)return Ce;if(!f.i(z.a)(be))return be;var Ae=f.i(M.a)(be);if(!Ae){var Te=f.i(V.a)(be),Pe=Te==G||Te==Z;if(f.i(D.a)(be))return f.i(E.a)(be,_e);if(Te==X||Te==$||Pe&&!ve){if(f.i(q.a)(be))return ve?be:{};if(Ce=f.i(N.a)(Pe?{}:be),!_e)return f.i(O.a)(be,f.i(P.a)(Ce,be))}else{if(!he[Te])return ve?be:{};Ce=f.i(I.a)(be,Te,h,_e)}}else if(Ce=f.i(F.a)(be),!_e)return f.i(S.a)(be,Ce);xe||(xe=new w.a);var Ee=xe.get(be);if(Ee)return Ee;if(xe.set(be,Ce),!Ae)var Se=ke?f.i(R.a)(be):f.i(U.a)(be);return f.i(C.a)(Se||be,function(Oe,Re){Se&&(Re=Oe,Oe=be[Re]),f.i(T.a)(Ce,Re,h(Oe,_e,ke,we,Re,be,xe))}),Ce}var w=f(123),C=f(450),T=f(69),P=f(452),E=f(472),S=f(206),O=f(480),R=f(486),V=f(141),F=f(495),I=f(496),N=f(497),M=f(12),D=f(527),q=f(91),z=f(14),U=f(71),$='[object Arguments]',G='[object Function]',Z='[object GeneratorFunction]',X='[object Object]',he={};he[$]=he['[object Array]']=he['[object ArrayBuffer]']=he['[object DataView]']=he['[object Boolean]']=he['[object Date]']=he['[object Float32Array]']=he['[object Float64Array]']=he['[object Int8Array]']=he['[object Int16Array]']=he['[object Int32Array]']=he['[object Map]']=he['[object Number]']=he[X]=he['[object RegExp]']=he['[object Set]']=he['[object String]']=he['[object Symbol]']=he['[object Uint8Array]']=he['[object Uint8ClampedArray]']=he['[object Uint16Array]']=he['[object Uint32Array]']=!0,he['[object Error]']=he[G]=he['[object WeakMap]']=!1,u.a=h},function(r,u){'use strict';u.a=function(w,C,T){for(var P=w.length,E=T?P:-1;T?E--:++E<P;)if(C(w[E],E,w))return E;return-1}},function(r,u,f){'use strict';var w=f(140),C=Object.prototype,T=C.hasOwnProperty;u.a=function(P,E){return T.call(P,E)||'object'==typeof P&&E in P&&null===f.i(w.a)(P)}},function(r,u,f){'use strict';var w=f(89),C=f(39),T=f(56),P=f(19),E=f(511),S=f(57),O=Array.prototype,R=O.splice;u.a=function(V,F){for(var I=V?F.length:0,N=I-1,M;I--;)if(M=F[I],I==N||M!==D){var D=M;if(f.i(C.a)(M))R.call(V,M,1);else if(!f.i(T.a)(M,V)){var q=f.i(w.a)(M),z=f.i(E.a)(V,q);null!=z&&delete z[f.i(S.a)(f.i(P.a)(q))]}else delete V[f.i(S.a)(M)]}return V}},function(r,u,f){'use strict';var w=f(58);u.a=function(C,T){for(var P=-1,E=C.length,S=0,O=[];++P<E;){var R=C[P],V=T?T(R):R;if(!P||!f.i(w.a)(V,F)){var F=V;O[S++]=0===R?0:R}}return O}},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=Array(w);++T<w;)P[T]=C(T);return P}},function(r,u){'use strict';u.a=function(w,C,T){for(var P=-1,E=w.length,S=C.length,O={},R;++P<E;)R=P<S?C[P]:void 0,T(O,w[P],R);return O}},function(r,u){'use strict';u.a=function(w,C){var T=-1,P=w.length;for(C||(C=Array(P));++T<P;)C[T]=w[T];return C}},function(r,u,f){'use strict';var w=f(83),C=f(451);u.a=function(E,S,O,R,V,F){var I=V&2,N=E.length,M=S.length;if(N!=M&&!(I&&M>N))return!1;var D=F.get(E);if(D)return D==S;var q=-1,z=!0,U=V&1?new w.a:void 0;for(F.set(E,S);++q<N;){var $=E[q],K=S[q];if(R)var W=I?R(K,$,q,S,E,F):R($,K,q,E,S,F);if(void 0!==W){if(W)continue;z=!1;break}if(U){if(!f.i(C.a)(S,function(H,Y){if(!U.has(Y)&&($===H||O($,H,R,V,F)))return U.add(Y)})){z=!1;break}}else if(!($===K||O($,K,R,V,F))){z=!1;break}}return F['delete'](E),z}},function(r,u){'use strict';function h(C){return w(Object(C))}var w=Object.getOwnPropertySymbols;w||(h=function(){return[]}),u.a=h},function(r,u,f){'use strict';var w=f(204),C=f(147),T=f(12),P=f(98),E=f(149);u.a=function(S){var O=S?S.length:void 0;return f.i(P.a)(O)&&(f.i(T.a)(S)||f.i(E.a)(S)||f.i(C.a)(S))?f.i(w.a)(O,String):null}},function(r,u){'use strict';u.a=function(w,C,T){for(var P=w.length,E=C+(T?0:-1),S;T?E--:++E<P;)if(S=w[E],S!==S)return E;return-1}},function(r,u,f){'use strict';var w=f(14);u.a=function(C){return C===C&&!f.i(w.a)(C)}},function(r,u){'use strict';u.a=function(w,C){return function(T){return null!=T&&T[w]===C&&(C!==void 0||w in Object(T))}}},function(r,u){'use strict';var w=Function.prototype.toString;u.a=function(C){if(null!=C){try{return w.call(C)}catch(T){}try{return C+''}catch(T){}}return''}},function(r,u,f){'use strict';var w=f(38),C=f(92),T=f(15),P=Math.ceil;u.a=function(S,O,R){O=(R?f.i(C.a)(S,O,R):void 0===O)?1:_Mathmax(f.i(T.a)(O),0);var V=S?S.length:0;if(!V||1>O)return[];for(var F=0,I=0,N=Array(P(V/O));F<V;)N[I++]=f.i(w.a)(S,F,F+=O);return N}},function(r,u){'use strict';u.a=function(w){for(var C=-1,T=w?w.length:0,P=0,E=[],S;++C<T;)S=w[C],S&&(E[P++]=S);return E}},function(r,u,f){'use strict';var w=f(85),C=f(23),T=f(206),P=f(12);u.a=function(){for(var E=arguments.length,S=Array(E?E-1:0),O=arguments[0],R=E;R--;)S[R-1]=arguments[R];return E?f.i(w.a)(f.i(P.a)(O)?f.i(T.a)(O):[O],f.i(C.a)(S,1)):[]}},function(r,u,f){'use strict';var h=f(70),w=f(23),C=f(13),T=f(8),P=f.i(T.a)(function(E,S){return f.i(C.a)(E)?f.i(h.a)(E,f.i(w.a)(S,1,C.a,!0)):[]});u.a=P},function(r,u,f){'use strict';var h=f(70),w=f(23),C=f(10),T=f(13),P=f(19),E=f(8),S=f.i(E.a)(function(O,R){var V=f.i(P.a)(R);return f.i(T.a)(V)&&(V=void 0),f.i(T.a)(O)?f.i(h.a)(O,f.i(w.a)(R,1,T.a,!0),f.i(C.a)(V)):[]});u.a=S},function(r,u,f){'use strict';var h=f(70),w=f(23),C=f(13),T=f(19),P=f(8),E=f.i(P.a)(function(S,O){var R=f.i(T.a)(O);return f.i(C.a)(R)&&(R=void 0),f.i(C.a)(S)?f.i(h.a)(S,f.i(w.a)(O,1,C.a,!0),void 0,R):[]});u.a=E},function(r,u,f){'use strict';var w=f(10),C=f(88);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P,3),!0,!0):[]}},function(r,u,f){'use strict';var w=f(10),C=f(88);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P,3),!0):[]}},function(r,u,f){'use strict';var w=f(456),C=f(92);u.a=function(T,P,E,S){var O=T?T.length:0;return O?(E&&'number'!=typeof E&&f.i(C.a)(T,P,E)&&(E=0,S=O),f.i(w.a)(T,P,E,S)):[]}},function(r,u,f){'use strict';var w=f(200),C=f(10);u.a=function(T,P){return T&&T.length?f.i(w.a)(T,f.i(C.a)(P,3)):-1}},function(r,u,f){'use strict';var w=f(200),C=f(10);u.a=function(T,P){return T&&T.length?f.i(w.a)(T,f.i(C.a)(P,3),!0):-1}},function(r,u,f){'use strict';var h=f(146);f.d(u,'a',function(){return h.a})},function(r,u,f){'use strict';var w=f(23);u.a=function(C){var T=C?C.length:0;return T?f.i(w.a)(C,1):[]}},function(r,u,f){'use strict';var w=f(23);u.a=function(T){var P=T?T.length:0;return P?f.i(w.a)(T,1/0):[]}},function(r,u,f){'use strict';var w=f(23),C=f(15);u.a=function(T,P){var E=T?T.length:0;return E?(P=void 0===P?1:f.i(C.a)(P),f.i(w.a)(T,P)):[]}},function(r,u){'use strict';u.a=function(w){for(var C=-1,T=w?w.length:0,P={},E;++C<T;)E=w[C],P[E[0]]=E[1];return P}},function(r,u,f){'use strict';var w=f(127);u.a=function(C,T,P){var E=null==C?void 0:f.i(w.a)(C,T);return E===void 0?P:E}},function(r,u){'use strict';u.a=function(w){return w}},function(r,u,f){'use strict';var w=f(128),C=f(15);u.a=function(P,E,S){var O=P?P.length:0;return O?(S=f.i(C.a)(S),0>S&&(S=_Mathmax(O+S,0)),f.i(w.a)(P,E,S)):-1}},function(r,u,f){'use strict';var w=f(145);u.a=function(C){return f.i(w.a)(C,1)}},function(r,u,f){'use strict';var h=f(27),w=f(129),C=f(137),T=f(8),P=f.i(T.a)(function(E){var S=f.i(h.a)(E,C.a);return S.length&&S[0]===E[0]?f.i(w.a)(S):[]});u.a=P},function(r,u,f){'use strict';var h=f(27),w=f(129),C=f(10),T=f(137),P=f(19),E=f(8),S=f.i(E.a)(function(O){var R=f.i(P.a)(O),V=f.i(h.a)(O,T.a);return R===f.i(P.a)(V)?R=void 0:V.pop(),V.length&&V[0]===O[0]?f.i(w.a)(V,f.i(C.a)(R)):[]});u.a=S},function(r,u,f){'use strict';var h=f(27),w=f(129),C=f(137),T=f(19),P=f(8),E=f.i(P.a)(function(S){var O=f.i(T.a)(S),R=f.i(h.a)(S,C.a);return O===f.i(T.a)(R)?O=void 0:R.pop(),R.length&&R[0]===S[0]?f.i(w.a)(R,void 0,O):[]});u.a=E},function(r,u,f){'use strict';var w=f(51),C=f(99);u.a=function(T){return!!T&&1===T.nodeType&&f.i(w.a)(T)&&!f.i(C.a)(T)}},function(r,u,f){'use strict';var w=f(148),C=f(91),T=f(14),P=f(213),E=/[\\^$.*+?()[\]{}|]/g,S=/^\[object .+?Constructor\]$/,O=Object.prototype,R=Function.prototype.toString,V=O.hasOwnProperty,F=RegExp('^'+R.call(V).replace(E,'\\$&').replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,'$1.*?')+'$');u.a=function(I){if(!f.i(T.a)(I))return!1;var N=f.i(w.a)(I)||f.i(C.a)(I)?F:S;return N.test(f.i(P.a)(I))}},function(r,u){'use strict';var w=Array.prototype,C=w.join;u.a=function(T,P){return T?C.call(T,P):''}},function(r,u,f){'use strict';var w=f(210),C=f(15);u.a=function(E,S,O){var R=E?E.length:0;if(!R)return-1;var V=R;if(void 0!==O&&(V=f.i(C.a)(O),V=(0>V?_Mathmax(R+V,0):_Mathmin(V,R-1))+1),S!==S)return f.i(w.a)(E,V,!0);for(;V--;)if(E[V]===S)return V;return-1}},function(r,u,f){'use strict';var w=f(466),C=f(15);u.a=function(T,P){return T&&T.length?f.i(w.a)(T,f.i(C.a)(P)):void 0}},function(r,u,f){'use strict';var h=f(150),w=f(8),C=f.i(w.a)(h.a);u.a=C},function(r,u,f){'use strict';var w=f(10),C=f(132);u.a=function(T,P,E){return T&&T.length&&P&&P.length?f.i(C.a)(T,P,f.i(w.a)(E)):T}},function(r,u,f){'use strict';var w=f(132);u.a=function(C,T,P){return C&&C.length&&T&&T.length?f.i(w.a)(C,T,void 0,P):C}},function(r,u,f){'use strict';var h=f(27),w=f(453),C=f(23),T=f(202),P=f(479),E=f(39),S=f(8),O=f.i(S.a)(function(R,V){V=f.i(C.a)(V,1);var F=R?R.length:0,I=f.i(w.a)(R,V);return f.i(T.a)(R,f.i(h.a)(V,function(N){return f.i(E.a)(N,F)?+N:N}).sort(P.a)),I});u.a=O},function(r,u,f){'use strict';var w=f(10),C=f(202);u.a=function(T,P){var E=[];if(!(T&&T.length))return E;var S=-1,O=[],R=T.length;for(P=f.i(w.a)(P,3);++S<R;){var V=T[S];P(V,S,T)&&(E.push(V),O.push(S))}return f.i(C.a)(T,O),E}},function(r,u){'use strict';var w=Array.prototype,C=w.reverse;u.a=function(T){return T?C.call(T):T}},function(r,u,f){'use strict';var w=f(38),C=f(92),T=f(15);u.a=function(P,E,S){var O=P?P.length:0;return O?(S&&'number'!=typeof S&&f.i(C.a)(P,E,S)?(E=0,S=O):(E=null==E?0:f.i(T.a)(E),S=void 0===S?O:f.i(T.a)(S)),f.i(w.a)(P,E,S)):[]}},function(r,u,f){'use strict';var w=f(87);u.a=function(C,T){return f.i(w.a)(C,T)}},function(r,u,f){'use strict';var w=f(10),C=f(133);u.a=function(T,P,E){return f.i(C.a)(T,P,f.i(w.a)(E))}},function(r,u,f){'use strict';var w=f(87),C=f(58);u.a=function(T,P){var E=T?T.length:0;if(E){var S=f.i(w.a)(T,P);if(S<E&&f.i(C.a)(T[S],P))return S}return-1}},function(r,u,f){'use strict';var w=f(87);u.a=function(C,T){return f.i(w.a)(C,T,!0)}},function(r,u,f){'use strict';var w=f(10),C=f(133);u.a=function(T,P,E){return f.i(C.a)(T,P,f.i(w.a)(E),!0)}},function(r,u,f){'use strict';var w=f(87),C=f(58);u.a=function(T,P){var E=T?T.length:0;if(E){var S=f.i(w.a)(T,P,!0)-1;if(f.i(C.a)(T[S],P))return S}return-1}},function(r,u,f){'use strict';var w=f(203);u.a=function(C){return C&&C.length?f.i(w.a)(C):[]}},function(r,u,f){'use strict';var w=f(10),C=f(203);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P)):[]}},function(r,u,f){'use strict';var w=f(144);u.a=function(C){return f.i(w.a)(C,1)}},function(r,u,f){'use strict';var w=f(38),C=f(15);u.a=function(T,P,E){return T&&T.length?(P=E||void 0===P?1:f.i(C.a)(P),f.i(w.a)(T,0,0>P?0:P)):[]}},function(r,u,f){'use strict';var w=f(38),C=f(15);u.a=function(T,P,E){var S=T?T.length:0;return S?(P=E||void 0===P?1:f.i(C.a)(P),P=S-P,f.i(w.a)(T,0>P?0:P,S)):[]}},function(r,u,f){'use strict';var w=f(10),C=f(88);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P,3),!1,!0):[]}},function(r,u,f){'use strict';var w=f(10),C=f(88);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P,3)):[]}},function(r,u,f){'use strict';var w=f(148),C=f(14),T=f(52),P=0/0,E=/^\s+|\s+$/g,S=/^[-+]0x[0-9a-f]+$/i,O=/^0b[01]+$/i,R=/^0o[0-7]+$/i,V=parseInt;u.a=function(F){if('number'==typeof F)return F;if(f.i(T.a)(F))return P;if(f.i(C.a)(F)){var I=f.i(w.a)(F.valueOf)?F.valueOf():F;F=f.i(C.a)(I)?I+'':I}if('string'!=typeof F)return 0===F?F:+F;F=F.replace(E,'');var N=O.test(F);return N||R.test(F)?V(F.slice(2),N?2:8):S.test(F)?P:+F}},function(r,u,f){'use strict';var h=f(23),w=f(49),C=f(13),T=f(8),P=f.i(T.a)(function(E){return f.i(w.a)(f.i(h.a)(E,1,C.a,!0))});u.a=P},function(r,u,f){'use strict';var h=f(23),w=f(10),C=f(49),T=f(13),P=f(19),E=f(8),S=f.i(E.a)(function(O){var R=f.i(P.a)(O);return f.i(T.a)(R)&&(R=void 0),f.i(C.a)(f.i(h.a)(O,1,T.a,!0),f.i(w.a)(R))});u.a=S},function(r,u,f){'use strict';var h=f(23),w=f(49),C=f(13),T=f(19),P=f(8),E=f.i(P.a)(function(S){var O=f.i(T.a)(S);return f.i(C.a)(O)&&(O=void 0),f.i(w.a)(f.i(h.a)(S,1,C.a,!0),void 0,O)});u.a=E},function(r,u,f){'use strict';var w=f(49);u.a=function(C){return C&&C.length?f.i(w.a)(C):[]}},function(r,u,f){'use strict';var w=f(10),C=f(49);u.a=function(T,P){return T&&T.length?f.i(C.a)(T,f.i(w.a)(P)):[]}},function(r,u,f){'use strict';var w=f(49);u.a=function(C,T){return C&&C.length?f.i(w.a)(C,void 0,T):[]}},function(r,u,f){'use strict';var h=f(70),w=f(13),C=f(8),T=f.i(C.a)(function(P,E){return f.i(w.a)(P)?f.i(h.a)(P,E):[]});u.a=T},function(r,u,f){'use strict';var h=f(84),w=f(135),C=f(13),T=f(8),P=f.i(T.a)(function(E){return f.i(w.a)(f.i(h.a)(E,C.a))});u.a=P},function(r,u,f){'use strict';var h=f(84),w=f(10),C=f(135),T=f(13),P=f(19),E=f(8),S=f.i(E.a)(function(O){var R=f.i(P.a)(O);return f.i(T.a)(R)&&(R=void 0),f.i(C.a)(f.i(h.a)(O,T.a),f.i(w.a)(R))});u.a=S},function(r,u,f){'use strict';var h=f(84),w=f(135),C=f(13),T=f(19),P=f(8),E=f.i(P.a)(function(S){var O=f.i(T.a)(S);return f.i(C.a)(O)&&(O=void 0),f.i(w.a)(f.i(h.a)(S,C.a),void 0,O)});u.a=E},function(r,u,f){'use strict';var h=f(8),w=f(100),C=f.i(h.a)(w.a);u.a=C},function(r,u,f){'use strict';var w=f(69),C=f(205);u.a=function(T,P){return f.i(C.a)(T||[],P||[],w.a)}},function(r,u,f){'use strict';var w=f(468),C=f(205);u.a=function(T,P){return f.i(C.a)(T||[],P||[],w.a)}},function(r,u,f){'use strict';var h=f(8),w=f(151),C=f.i(h.a)(function(T){var P=T.length,E=1<P?T[P-1]:void 0;return E='function'==typeof E?(T.pop(),E):void 0,f.i(w.a)(T,E)});u.a=C},function(r,u){'use strict';u.a=function(w){const C=new Map;for(let T in w)C.set(T,w[T]);return C}},function(r,u){'use strict';function h(E){return!!E&&1==E.length&&/[\u0300-\u036f\u1ab0-\u1aff\u1dc0-\u1dff\u20d0-\u20ff\ufe20-\ufe2f]/.test(E)}function w(E){return!!E&&1==E.length&&/[\ud800-\udbff]/.test(E)}function C(E){return!!E&&1==E.length&&/[\udc00-\udfff]/.test(E)}u.a=function(E,S){return w(E.charAt(S-1))&&C(E.charAt(S))},u.b=function(E,S){return h(E.charAt(S))}},function(r,u,f){'use strict';var h=f(327),w=f(328),C=f(2),T=f(175),P=f(180),E=f(157),S=f(158);class O extends C.a{static get requires(){return[T.a,P.a,E.a,S.a]}static get pluginName(){return'autoformat/autoformat'}init(){this._addListAutoformats(),this._addHeadingAutoformats(),this._addInlineAutoformats()}_addListAutoformats(){new h.a(this.editor,/^[\*\-]\s$/,'bulletedList'),new h.a(this.editor,/^\d+[\.|)]?\s$/,'numberedList')}_addHeadingAutoformats(){new h.a(this.editor,/^(#{1,3})\s$/,(R)=>{const{batch:V,match:F}=R,I=F[1].length;this.editor.execute(`heading${I}`,{batch:V})})}_addInlineAutoformats(){new w.a(this.editor,/(\*\*)([^\*]+)(\*\*)$/g,'bold'),new w.a(this.editor,/(__)([^_]+)(__)$/g,'bold'),new w.a(this.editor,/(?:^|[^\*])(\*)([^\*_]+)(\*)$/g,'italic'),new w.a(this.editor,/(?:^|[^_])(_)([^_]+)(_)$/g,'italic')}}u.a=O},function(r,u,f){'use strict';var h=f(2),w=f(157),C=f(21),T=f(305),P=f.n(T);class E extends h.a{static get requires(){return[w.a]}static get pluginName(){return'basic-styles/bold'}init(){const S=this.editor,O=S.t,R=S.commands.get('bold'),V='CTRL+B';S.ui.componentFactory.add('bold',(F)=>{const I=new C.a(F);return I.set({label:O('Bold'),icon:P.a,keystroke:V,tooltip:!0}),I.bind('isOn','isEnabled').to(R,'value','isEnabled'),this.listenTo(I,'execute',()=>S.execute('bold')),I}),S.keystrokes.set(V,'bold')}}u.a=E},function(r,u,f){'use strict';var h=f(2),w=f(158),C=f(21),T=f(306),P=f.n(T);class E extends h.a{static get requires(){return[w.a]}static get pluginName(){return'basic-styles/italic'}init(){const S=this.editor,O=S.t,R=S.commands.get('italic'),V='CTRL+I';S.ui.componentFactory.add('italic',(F)=>{const I=new C.a(F);return I.set({label:O('Italic'),icon:P.a,keystroke:V,tooltip:!0}),I.bind('isOn','isEnabled').to(R,'value','isEnabled'),this.listenTo(I,'execute',()=>S.execute('italic')),I}),S.keystrokes.set(V,'italic')}}u.a=E},function(r,u,f){'use strict';var h=f(2),w=f(330),C=f(21),T=f(310),P=f.n(T),E=f(318),S=f.n(E);class O extends h.a{static get requires(){return[w.a]}static get pluginName(){return'block-quote/blockquote'}init(){const R=this.editor,V=R.t,F=R.commands.get('blockQuote');R.ui.componentFactory.add('blockQuote',(I)=>{const N=new C.a(I);return N.set({label:V('Block quote'),icon:P.a,tooltip:!0}),N.bind('isOn','isEnabled').to(F,'value','isEnabled'),this.listenTo(N,'execute',()=>R.execute('blockQuote')),N})}afterInit(){const R=this.editor,V=R.commands.get('blockQuote');this.listenTo(this.editor.editing.view,'enter',(F,I)=>{const N=this.editor.document,M=N.selection.getLastPosition().parent;N.selection.isCollapsed&&M.isEmpty&&V.value&&(this.editor.execute('blockQuote'),I.preventDefault(),F.stop())})}}u.a=O},function(r){'use strict';r.exports={toolbar:['headings','bold','italic','link','unlink','bulletedList','numberedList','blockQuote','undo','redo'],image:{toolbar:['imageStyleFull','imageStyleSide','|','imageTextAlternative']}}},function(r,u,f){'use strict';var h=f(340),w=f(164),C=f(342),T=f(343),P=f(440),E=f(319),S=f.n(E);class O extends h.a{constructor(R,V){super(R,V),this.document.createRoot(),this.data.processor=new w.a,this.ui=new C.a(this,new T.a(this.locale)),this._elementReplacer=new P.a}destroy(){return this.updateEditorElement(),this._elementReplacer.restore(),this.ui.destroy().then(()=>super.destroy())}static create(R,V){return new Promise((F)=>{const I=new this(R,V);F(I.initPlugins().then(()=>I._elementReplacer.replace(R,I.ui.view.element)).then(()=>I.ui.init()).then(()=>I.fire('uiReady')).then(()=>I.editing.view.attachDomRoot(I.ui.view.editableElement)).then(()=>I.loadDataFromEditorElement()).then(()=>{I.fire('dataReady'),I.fire('ready')}).then(()=>I))})}}u.a=O},function(r,u,f){'use strict';function h(I,N){return Array.prototype.concat(...I.map((M)=>[M,N]))}var w=f(73),C=f(175),T=f(2),P=f(420),E=f(411),S=f(80),O=f(6),R=f(321),V=f.n(R);class F extends T.a{static get requires(){return[w.a,C.a]}static get pluginName(){return'heading/heading'}init(){const I=this.editor,N=new S.a,M=this._getLocalizedOptions(),D=[],q=I.t,z=q('Choose heading'),U=q('Heading');for(let K of M){const W=I.commands.get(K.modelElement),H=new P.a({commandName:K.modelElement,label:K.title,class:K.class});H.bind('isActive').to(W,'value'),N.add(H),D.push(W)}const $=new P.a({withText:!0,items:N,tooltip:U});$.bind('isEnabled').to(...h(D,'isEnabled'),(...K)=>K.some((W)=>W)),$.bind('label').to(...h(D,'value'),(...K)=>{const W=K.findIndex((H)=>H);return M[W]?M[W].title:z}),I.ui.componentFactory.add('headings',(K)=>{const W=f.i(E.a)($,K);return O.a.extend(W.template,{attributes:{class:['ck-heading-dropdown']}}),this.listenTo(W,'execute',(H)=>{I.execute(H.source.commandName),I.editing.view.focus()}),W})}_getLocalizedOptions(){const I=this.editor,N=I.t,M={Paragraph:N('Paragraph'),'Heading 1':N('Heading 1'),'Heading 2':N('Heading 2'),'Heading 3':N('Heading 3')};return I.config.get('heading.options').map((D)=>{const q=M[D.title];return q&&q!=D.title&&(D=Object.assign({},D,{title:q})),D})}}u.a=F},function(r,u,f){'use strict';var h=f(2),w=f(176),C=f(545),T=f(387),P=f(324),E=f.n(P);class S extends h.a{static get requires(){return[w.a,C.a,T.a]}static get pluginName(){return'image/image'}}u.a=S},function(r,u,f){'use strict';var h=f(2),w=f(382),C=f(322),T=f.n(C);class P extends h.a{static get requires(){return[w.a]}static get pluginName(){return'image/imagecaption'}}u.a=P},function(r,u,f){'use strict';var h=f(2),w=f(386),C=f(21);class T extends h.a{static get requires(){return[w.a]}static get pluginName(){return'image/imagestyle'}init(){const P=this.editor.config.get('image.styles');for(let E of P)this._createButton(E)}_createButton(P){const E=this.editor,S=E.commands.get(P.name);E.ui.componentFactory.add(P.name,(O)=>{const R=new C.a(O);return R.set({label:P.title,icon:P.icon,tooltip:!0}),R.bind('isEnabled').to(S,'isEnabled'),R.bind('isOn').to(S,'value'),this.listenTo(R,'execute',()=>E.execute(P.name)),R})}}u.a=T},function(r,u,f){'use strict';var h=f(2),w=f(368),C=f(392),T=f(179),P=f(421),E=f(182),S=f(21),O=f(393),R=f(311),V=f.n(R),F=f(312),I=f.n(F),N=f(325),M=f.n(N);class D extends h.a{static get requires(){return[C.a,P.a]}static get pluginName(){return'link/link'}init(){this.editor.editing.view.addObserver(w.a),this.formView=this._createForm(),this._balloon=this.editor.plugins.get(P.a),this._createToolbarLinkButton(),this._createToolbarUnlinkButton(),this._attachActions()}_createForm(){const q=this.editor,z=new O.a(q.locale);return z.urlInputView.bind('value').to(q.commands.get('link'),'value'),this.listenTo(z,'submit',()=>{q.execute('link',z.urlInputView.inputView.element.value),this._hidePanel(!0)}),this.listenTo(z,'unlink',()=>{q.execute('unlink'),this._hidePanel(!0)}),this.listenTo(z,'cancel',()=>this._hidePanel(!0)),z.keystrokes.set('Esc',(U,$)=>{this._hidePanel(!0),$()}),z}_createToolbarLinkButton(){const q=this.editor,z=q.commands.get('link'),U=q.t;q.keystrokes.set('CTRL+K',()=>this._showPanel(!0)),q.ui.componentFactory.add('link',($)=>{const K=new S.a($);return K.isEnabled=!0,K.label=U('Link'),K.icon=V.a,K.keystroke='CTRL+K',K.tooltip=!0,K.bind('isEnabled').to(z,'isEnabled'),this.listenTo(K,'execute',()=>this._showPanel(!0)),K})}_createToolbarUnlinkButton(){const q=this.editor,z=q.t,U=q.commands.get('unlink');q.ui.componentFactory.add('unlink',($)=>{const K=new S.a($);return K.isEnabled=!1,K.label=z('Unlink'),K.icon=I.a,K.tooltip=!0,K.bind('isEnabled').to(U,'isEnabled'),this.listenTo(K,'execute',()=>q.execute('unlink')),K})}_attachActions(){const q=this.editor.editing.view;this.listenTo(q,'click',()=>{const z=q.selection,U=this._getSelectedLinkElement();z.isCollapsed&&U&&this._showPanel()}),this.editor.keystrokes.set('Tab',(z,U)=>{this._balloon.visibleView!==this.formView||this.formView.focusTracker.isFocused||(this.formView.focus(),U())}),this.editor.keystrokes.set('Esc',(z,U)=>{this._balloon.visibleView===this.formView&&(this._hidePanel(),U())}),f.i(E.a)({emitter:this.formView,activator:()=>this._balloon.hasView(this.formView),contextElement:this._balloon.view.element,callback:()=>this._hidePanel()})}_showPanel(q){const z=this.editor.editing,U=z.view,$=U.selection.isCollapsed,K=this._getSelectedLinkElement();return this.formView.unlinkButtonView.isVisible=!!K,this.listenTo(U,'render',()=>{const W=this._getSelectedLinkElement(),H=U.selection.isCollapsed;$&&!H||K!==W?this._hidePanel(!0):W?this._balloon.updatePosition():this._balloon.updatePosition(this._getBalloonPositionData())}),this._balloon.hasView(this.formView)?(q&&this._balloon.visibleView===this.formView&&this.formView.urlInputView.select(),Promise.resolve()):this._balloon.add({view:this.formView,position:this._getBalloonPositionData()}).then(()=>{q&&this.formView.urlInputView.select()})}_hidePanel(q){this.stopListening(this.editor.editing.view,'render');this._balloon.hasView(this.formView)&&(q&&this.editor.editing.view.focus(),this.stopListening(this.editor.editing.view,'render'),this._balloon.remove(this.formView))}_getBalloonPositionData(){const q=this.editor.editing.view,z=this._getSelectedLinkElement(),U=z?q.domConverter.getCorrespondingDomElement(z):q.domConverter.viewRangeToDom(q.selection.getFirstRange());return{target:U,limiter:q.domConverter.getCorrespondingDomElement(q.selection.editableElement)}}_getSelectedLinkElement(){return this.editor.editing.view.selection.getFirstPosition().parent.getAncestors().find((q)=>q instanceof T.a)}}u.a=D},function(r,u,f){'use strict';var h=f(180),w=f(314),C=f.n(w),T=f(313),P=f.n(T),E=f(2),S=f(22),O=f(21);class R extends E.a{static get requires(){return[h.a]}static get pluginName(){return'list/list'}init(){const V=this.editor.t;this._addButton('numberedList',V('Numbered List'),C.a),this._addButton('bulletedList',V('Bulleted List'),P.a),this.listenTo(this.editor.editing.view,'enter',(F,I)=>{const N=this.editor.document,M=N.selection.getLastPosition().parent;N.selection.isCollapsed&&'listItem'==M.name&&M.isEmpty&&(this.editor.execute('outdentList'),I.preventDefault(),F.stop())}),this.listenTo(this.editor.editing.view,'keydown',(F,I)=>{let N;if(I.keystroke==f.i(S.a)('Tab')?N='indentList':I.keystroke==f.i(S.a)('Shift+Tab')&&(N='outdentList'),N){const M=this.editor.commands.get(N);M.isEnabled&&(this.editor.execute(N),I.preventDefault(),F.stop())}})}_addButton(V,F,I){const N=this.editor,M=N.commands.get(V);N.ui.componentFactory.add(V,(D)=>{const q=new O.a(D);return q.set({label:F,icon:I,tooltip:!0}),q.bind('isOn','isEnabled').to(M,'value','isEnabled'),this.listenTo(q,'execute',()=>N.execute(V)),q})}}u.a=R},function(r,u,f){'use strict';var h=f(2),w=f(332),C=f(377),T=f(405),P=f(426);class E extends h.a{static get requires(){return[w.a,C.a,T.a,P.a]}}u.a=E},function(r,u){'use strict';function h(N){var M=N.length;if(0<M%4)throw new Error('Invalid string. Length must be a multiple of 4');return'='===N[M-2]?2:'='===N[M-1]?1:0}function T(N){return S[63&N>>18]+S[63&N>>12]+S[63&N>>6]+S[63&N]}function P(N,M,D){for(var z=[],U=M,q;U<D;U+=3)q=(N[U]<<16)+(N[U+1]<<8)+N[U+2],z.push(T(q));return z.join('')}u.byteLength=function(N){return 3*N.length/4-h(N)},u.toByteArray=function(N){var K=N.length,M,D,q,z,U,$;U=h(N),$=new R(3*K/4-U),q=0<U?K-4:K;var W=0;for(M=0,D=0;M<q;M+=4,D+=3)z=O[N.charCodeAt(M)]<<18|O[N.charCodeAt(M+1)]<<12|O[N.charCodeAt(M+2)]<<6|O[N.charCodeAt(M+3)],$[W++]=255&z>>16,$[W++]=255&z>>8,$[W++]=255&z;return 2===U?(z=O[N.charCodeAt(M)]<<2|O[N.charCodeAt(M+1)]>>4,$[W++]=255&z):1===U&&(z=O[N.charCodeAt(M)]<<10|O[N.charCodeAt(M+1)]<<4|O[N.charCodeAt(M+2)]>>2,$[W++]=255&z>>8,$[W++]=255&z),$},u.fromByteArray=function(N){for(var D=N.length,q=D%3,z='',U=[],$=16383,K=0,W=D-q,M;K<W;K+=$)U.push(P(N,K,K+$>W?W:K+$));return 1==q?(M=N[D-1],z+=S[M>>2],z+=S[63&M<<4],z+='=='):2==q&&(M=(N[D-2]<<8)+N[D-1],z+=S[M>>10],z+=S[63&M>>4],z+=S[63&M<<2],z+='='),U.push(z),U.join('')};for(var S=[],O=[],R='undefined'==typeof Uint8Array?Array:Uint8Array,V='ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/',F=0,I=V.length;F<I;++F)S[F]=V[F],O[V.charCodeAt(F)]=F;O['-'.charCodeAt(0)]=62,O['_'.charCodeAt(0)]=63},function(r,u,f){'use strict';(function(h){function C(){return P.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function T(Te,Pe){if(C()<Pe)throw new RangeError('Invalid typed array length');return P.TYPED_ARRAY_SUPPORT?(Te=new Uint8Array(Pe),Te.__proto__=P.prototype):(null===Te&&(Te=new P(Pe)),Te.length=Pe),Te}function P(Te,Pe,Ee){if(!P.TYPED_ARRAY_SUPPORT&&!(this instanceof P))return new P(Te,Pe,Ee);if('number'==typeof Te){if('string'==typeof Pe)throw new Error('If encoding is specified then the first argument must be a string');return R(this,Te)}return E(this,Te,Pe,Ee)}function E(Te,Pe,Ee,Se){if('number'==typeof Pe)throw new TypeError('"value" argument must not be a number');return'undefined'!=typeof ArrayBuffer&&Pe instanceof ArrayBuffer?I(Te,Pe,Ee,Se):'string'==typeof Pe?V(Te,Pe,Ee):N(Te,Pe)}function S(Te){if('number'!=typeof Te)throw new TypeError('"size" argument must be a number');else if(0>Te)throw new RangeError('"size" argument must not be negative')}function O(Te,Pe,Ee,Se){return S(Pe),0>=Pe?T(Te,Pe):void 0===Ee?T(Te,Pe):'string'==typeof Se?T(Te,Pe).fill(Ee,Se):T(Te,Pe).fill(Ee)}function R(Te,Pe){if(S(Pe),Te=T(Te,0>Pe?0:0|M(Pe)),!P.TYPED_ARRAY_SUPPORT)for(var Ee=0;Ee<Pe;++Ee)Te[Ee]=0;return Te}function V(Te,Pe,Ee){if(('string'!=typeof Ee||''===Ee)&&(Ee='utf8'),!P.isEncoding(Ee))throw new TypeError('"encoding" must be a valid string encoding');var Se=0|q(Pe,Ee);Te=T(Te,Se);var Oe=Te.write(Pe,Ee);return Oe!==Se&&(Te=Te.slice(0,Oe)),Te}function F(Te,Pe){var Ee=0>Pe.length?0:0|M(Pe.length);Te=T(Te,Ee);for(var Se=0;Se<Ee;Se+=1)Te[Se]=255&Pe[Se];return Te}function I(Te,Pe,Ee,Se){if(Pe.byteLength,0>Ee||Pe.byteLength<Ee)throw new RangeError('\'offset\' is out of bounds');if(Pe.byteLength<Ee+(Se||0))throw new RangeError('\'length\' is out of bounds');return Pe=void 0===Ee&&void 0===Se?new Uint8Array(Pe):void 0===Se?new Uint8Array(Pe,Ee):new Uint8Array(Pe,Ee,Se),P.TYPED_ARRAY_SUPPORT?(Te=Pe,Te.__proto__=P.prototype):Te=F(Te,Pe),Te}function N(Te,Pe){if(P.isBuffer(Pe)){var Ee=0|M(Pe.length);return(Te=T(Te,Ee),0===Te.length)?Te:(Pe.copy(Te,0,0,Ee),Te)}if(Pe){if('undefined'!=typeof ArrayBuffer&&Pe.buffer instanceof ArrayBuffer||'length'in Pe)return'number'!=typeof Pe.length||we(Pe.length)?T(Te,0):F(Te,Pe);if('Buffer'===Pe.type&&xe(Pe.data))return F(Te,Pe.data)}throw new TypeError('First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.')}function M(Te){if(Te>=C())throw new RangeError('Attempt to allocate Buffer larger than maximum size: 0x'+C().toString(16)+' bytes');return 0|Te}function q(Te,Pe){if(P.isBuffer(Te))return Te.length;if('undefined'!=typeof ArrayBuffer&&'function'==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(Te)||Te instanceof ArrayBuffer))return Te.byteLength;'string'!=typeof Te&&(Te=''+Te);var Ee=Te.length;if(0===Ee)return 0;for(var Se=!1;;)switch(Pe){case'ascii':case'latin1':case'binary':return Ee;case'utf8':case'utf-8':case void 0:return fe(Te).length;case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return 2*Ee;case'hex':return Ee>>>1;case'base64':return _e(Te).length;default:if(Se)return fe(Te).length;Pe=(''+Pe).toLowerCase(),Se=!0;}}function z(Te,Pe,Ee){var Se=!1;if((void 0===Pe||0>Pe)&&(Pe=0),Pe>this.length)return'';if((void 0===Ee||Ee>this.length)&&(Ee=this.length),0>=Ee)return'';if(Ee>>>=0,Pe>>>=0,Ee<=Pe)return'';for(Te||(Te='utf8');;)switch(Te){case'hex':return ne(this,Pe,Ee);case'utf8':case'utf-8':return X(this,Pe,Ee);case'ascii':return te(this,Pe,Ee);case'latin1':case'binary':return ae(this,Pe,Ee);case'base64':return Q(this,Pe,Ee);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return oe(this,Pe,Ee);default:if(Se)throw new TypeError('Unknown encoding: '+Te);Te=(Te+'').toLowerCase(),Se=!0;}}function U(Te,Pe,Ee){var Se=Te[Pe];Te[Pe]=Te[Ee],Te[Ee]=Se}function $(Te,Pe,Ee,Se,Oe){if(0===Te.length)return-1;if('string'==typeof Ee?(Se=Ee,Ee=0):2147483647<Ee?Ee=2147483647:-2147483648>Ee&&(Ee=-2147483648),Ee=+Ee,isNaN(Ee)&&(Ee=Oe?0:Te.length-1),0>Ee&&(Ee=Te.length+Ee),Ee>=Te.length){if(Oe)return-1;Ee=Te.length-1}else if(0>Ee)if(Oe)Ee=0;else return-1;if('string'==typeof Pe&&(Pe=P.from(Pe,Se)),P.isBuffer(Pe))return 0===Pe.length?-1:K(Te,Pe,Ee,Se,Oe);if('number'==typeof Pe)return Pe&=255,P.TYPED_ARRAY_SUPPORT&&'function'==typeof Uint8Array.prototype.indexOf?Oe?Uint8Array.prototype.indexOf.call(Te,Pe,Ee):Uint8Array.prototype.lastIndexOf.call(Te,Pe,Ee):K(Te,[Pe],Ee,Se,Oe);throw new TypeError('val must be string, number or Buffer')}function K(Te,Pe,Ee,Se,Oe){function Re(De,je){return 1==Ve?De[je]:De.readUInt16BE(je*Ve)}var Ve=1,Fe=Te.length,Ie=Pe.length;if(void 0!==Se&&(Se=(Se+'').toLowerCase(),'ucs2'===Se||'ucs-2'===Se||'utf16le'===Se||'utf-16le'===Se)){if(2>Te.length||2>Pe.length)return-1;Ve=2,Fe/=2,Ie/=2,Ee/=2}var Be;if(Oe){var Le=-1;for(Be=Ee;Be<Fe;Be++)if(Re(Te,Be)!==Re(Pe,-1==Le?0:Be-Le))-1!=Le&&(Be-=Be-Le),Le=-1;else if(-1==Le&&(Le=Be),Be-Le+1===Ie)return Le*Ve}else for(Ee+Ie>Fe&&(Ee=Fe-Ie),Be=Ee;0<=Be;Be--){for(var Ne=!0,Me=0;Me<Ie;Me++)if(Re(Te,Be+Me)!==Re(Pe,Me)){Ne=!1;break}if(Ne)return Be}return-1}function W(Te,Pe,Ee,Se){Ee=+Ee||0;var Oe=Te.length-Ee;Se?(Se=+Se,Se>Oe&&(Se=Oe)):Se=Oe;var Re=Pe.length;if(0!=Re%2)throw new TypeError('Invalid hex string');Se>Re/2&&(Se=Re/2);for(var Ve=0,Fe;Ve<Se;++Ve){if(Fe=parseInt(Pe.substr(2*Ve,2),16),isNaN(Fe))return Ve;Te[Ee+Ve]=Fe}return Ve}function H(Te,Pe,Ee,Se){return ke(fe(Pe,Te.length-Ee),Te,Ee,Se)}function Y(Te,Pe,Ee,Se){return ke(he(Pe),Te,Ee,Se)}function G(Te,Pe,Ee,Se){return Y(Te,Pe,Ee,Se)}function Z(Te,Pe,Ee,Se){return ke(_e(Pe),Te,Ee,Se)}function J(Te,Pe,Ee,Se){return ke(be(Pe,Te.length-Ee),Te,Ee,Se)}function Q(Te,Pe,Ee){return 0===Pe&&Ee===Te.length?ye.fromByteArray(Te):ye.fromByteArray(Te.slice(Pe,Ee))}function X(Te,Pe,Ee){Ee=_Mathmin(Te.length,Ee);for(var Se=[],Oe=Pe;Oe<Ee;){var Re=Te[Oe],Ve=null,Fe=239<Re?4:223<Re?3:191<Re?2:1;if(Oe+Fe<=Ee){var Ie,Be,Le,Ne;1==Fe?128>Re&&(Ve=Re):2==Fe?(Ie=Te[Oe+1],128==(192&Ie)&&(Ne=(31&Re)<<6|63&Ie,127<Ne&&(Ve=Ne))):3==Fe?(Ie=Te[Oe+1],Be=Te[Oe+2],128==(192&Ie)&&128==(192&Be)&&(Ne=(15&Re)<<12|(63&Ie)<<6|63&Be,2047<Ne&&(55296>Ne||57343<Ne)&&(Ve=Ne))):4==Fe?(Ie=Te[Oe+1],Be=Te[Oe+2],Le=Te[Oe+3],128==(192&Ie)&&128==(192&Be)&&128==(192&Le)&&(Ne=(15&Re)<<18|(63&Ie)<<12|(63&Be)<<6|63&Le,65535<Ne&&1114112>Ne&&(Ve=Ne))):void 0}null===Ve?(Ve=65533,Fe=1):65535<Ve&&(Ve-=65536,Se.push(55296|1023&Ve>>>10),Ve=56320|1023&Ve),Se.push(Ve),Oe+=Fe}return ee(Se)}function ee(Te){var Pe=Te.length;if(Pe<=Ce)return _StringfromCharCode.apply(String,Te);for(var Ee='',Se=0;Se<Pe;)Ee+=_StringfromCharCode.apply(String,Te.slice(Se,Se+=Ce));return Ee}function te(Te,Pe,Ee){var Se='';Ee=_Mathmin(Te.length,Ee);for(var Oe=Pe;Oe<Ee;++Oe)Se+=_StringfromCharCode(127&Te[Oe]);return Se}function ae(Te,Pe,Ee){var Se='';Ee=_Mathmin(Te.length,Ee);for(var Oe=Pe;Oe<Ee;++Oe)Se+=_StringfromCharCode(Te[Oe]);return Se}function ne(Te,Pe,Ee){var Se=Te.length;(!Pe||0>Pe)&&(Pe=0),(!Ee||0>Ee||Ee>Se)&&(Ee=Se);for(var Oe='',Re=Pe;Re<Ee;++Re)Oe+=ge(Te[Re]);return Oe}function oe(Te,Pe,Ee){for(var Se=Te.slice(Pe,Ee),Oe='',Re=0;Re<Se.length;Re+=2)Oe+=_StringfromCharCode(Se[Re]+256*Se[Re+1]);return Oe}function ie(Te,Pe,Ee){if(0!=Te%1||0>Te)throw new RangeError('offset is not uint');if(Te+Pe>Ee)throw new RangeError('Trying to access beyond buffer length')}function re(Te,Pe,Ee,Se,Oe,Re){if(!P.isBuffer(Te))throw new TypeError('"buffer" argument must be a Buffer instance');if(Pe>Oe||Pe<Re)throw new RangeError('"value" argument is out of bounds');if(Ee+Se>Te.length)throw new RangeError('Index out of range')}function se(Te,Pe,Ee,Se){0>Pe&&(Pe=65535+Pe+1);for(var Oe=0,Re=_Mathmin(Te.length-Ee,2);Oe<Re;++Oe)Te[Ee+Oe]=(Pe&255<<8*(Se?Oe:1-Oe))>>>8*(Se?Oe:1-Oe)}function le(Te,Pe,Ee,Se){0>Pe&&(Pe=4294967295+Pe+1);for(var Oe=0,Re=_Mathmin(Te.length-Ee,4);Oe<Re;++Oe)Te[Ee+Oe]=255&Pe>>>8*(Se?Oe:3-Oe)}function de(Te,Pe,Ee,Se){if(Ee+Se>Te.length)throw new RangeError('Index out of range');if(0>Ee)throw new RangeError('Index out of range')}function ce(Te,Pe,Ee,Se,Oe){return Oe||de(Te,Pe,Ee,4,3.4028234663852886e38,-3.4028234663852886e38),ve.write(Te,Pe,Ee,Se,23,4),Ee+4}function ue(Te,Pe,Ee,Se,Oe){return Oe||de(Te,Pe,Ee,8,1.7976931348623157e308,-1.7976931348623157e308),ve.write(Te,Pe,Ee,Se,52,8),Ee+8}function me(Te){if(Te=pe(Te).replace(Ae,''),2>Te.length)return'';for(;0!=Te.length%4;)Te+='=';return Te}function pe(Te){return Te.trim?Te.trim():Te.replace(/^\s+|\s+$/g,'')}function ge(Te){return 16>Te?'0'+Te.toString(16):Te.toString(16)}function fe(Te,Pe){Pe=Pe||Infinity;for(var Se=Te.length,Oe=null,Re=[],Ve=0,Ee;Ve<Se;++Ve){if(Ee=Te.charCodeAt(Ve),55295<Ee&&57344>Ee){if(!Oe){if(56319<Ee){-1<(Pe-=3)&&Re.push(239,191,189);continue}else if(Ve+1===Se){-1<(Pe-=3)&&Re.push(239,191,189);continue}Oe=Ee;continue}if(56320>Ee){-1<(Pe-=3)&&Re.push(239,191,189),Oe=Ee;continue}Ee=(Oe-55296<<10|Ee-56320)+65536}else Oe&&-1<(Pe-=3)&&Re.push(239,191,189);if(Oe=null,128>Ee){if(0>(Pe-=1))break;Re.push(Ee)}else if(2048>Ee){if(0>(Pe-=2))break;Re.push(192|Ee>>6,128|63&Ee)}else if(65536>Ee){if(0>(Pe-=3))break;Re.push(224|Ee>>12,128|63&Ee>>6,128|63&Ee)}else if(1114112>Ee){if(0>(Pe-=4))break;Re.push(240|Ee>>18,128|63&Ee>>12,128|63&Ee>>6,128|63&Ee)}else throw new Error('Invalid code point')}return Re}function he(Te){for(var Pe=[],Ee=0;Ee<Te.length;++Ee)Pe.push(255&Te.charCodeAt(Ee));return Pe}function be(Te,Pe){for(var Re=[],Ve=0,Ee,Se,Oe;Ve<Te.length&&!(0>(Pe-=2));++Ve)Ee=Te.charCodeAt(Ve),Se=Ee>>8,Oe=Ee%256,Re.push(Oe),Re.push(Se);return Re}function _e(Te){return ye.toByteArray(me(Te))}function ke(Te,Pe,Ee,Se){for(var Oe=0;Oe<Se&&!(Oe+Ee>=Pe.length||Oe>=Te.length);++Oe)Pe[Oe+Ee]=Te[Oe];return Oe}function we(Te){return Te!==Te}var ye=f(292),ve=f(304),xe=f(294);u.Buffer=P,u.SlowBuffer=function(Te){return+Te!=Te&&(Te=0),P.alloc(+Te)},u.INSPECT_MAX_BYTES=50,P.TYPED_ARRAY_SUPPORT=h.TYPED_ARRAY_SUPPORT===void 0?function(){try{var Te=new Uint8Array(1);return Te.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===Te.foo()&&'function'==typeof Te.subarray&&0===Te.subarray(1,1).byteLength}catch(Pe){return!1}}():h.TYPED_ARRAY_SUPPORT,u.kMaxLength=C(),P.poolSize=8192,P._augment=function(Te){return Te.__proto__=P.prototype,Te},P.from=function(Te,Pe,Ee){return E(null,Te,Pe,Ee)},P.TYPED_ARRAY_SUPPORT&&(P.prototype.__proto__=Uint8Array.prototype,P.__proto__=Uint8Array,'undefined'!=typeof Symbol&&Symbol.species&&P[Symbol.species]===P&&Object.defineProperty(P,Symbol.species,{value:null,configurable:!0})),P.alloc=function(Te,Pe,Ee){return O(null,Te,Pe,Ee)},P.allocUnsafe=function(Te){return R(null,Te)},P.allocUnsafeSlow=function(Te){return R(null,Te)},P.isBuffer=function(Pe){return!!(null!=Pe&&Pe._isBuffer)},P.compare=function(Pe,Ee){if(!P.isBuffer(Pe)||!P.isBuffer(Ee))throw new TypeError('Arguments must be Buffers');if(Pe===Ee)return 0;for(var Se=Pe.length,Oe=Ee.length,Re=0,Ve=_Mathmin(Se,Oe);Re<Ve;++Re)if(Pe[Re]!==Ee[Re]){Se=Pe[Re],Oe=Ee[Re];break}return Se<Oe?-1:Oe<Se?1:0},P.isEncoding=function(Pe){switch((Pe+'').toLowerCase()){case'hex':case'utf8':case'utf-8':case'ascii':case'latin1':case'binary':case'base64':case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return!0;default:return!1;}},P.concat=function(Pe,Ee){if(!xe(Pe))throw new TypeError('"list" argument must be an Array of Buffers');if(0===Pe.length)return P.alloc(0);var Se;if(Ee===void 0)for(Ee=0,Se=0;Se<Pe.length;++Se)Ee+=Pe[Se].length;var Oe=P.allocUnsafe(Ee),Re=0;for(Se=0;Se<Pe.length;++Se){var Ve=Pe[Se];if(!P.isBuffer(Ve))throw new TypeError('"list" argument must be an Array of Buffers');Ve.copy(Oe,Re),Re+=Ve.length}return Oe},P.byteLength=q,P.prototype._isBuffer=!0,P.prototype.swap16=function(){var Pe=this.length;if(0!=Pe%2)throw new RangeError('Buffer size must be a multiple of 16-bits');for(var Ee=0;Ee<Pe;Ee+=2)U(this,Ee,Ee+1);return this},P.prototype.swap32=function(){var Pe=this.length;if(0!=Pe%4)throw new RangeError('Buffer size must be a multiple of 32-bits');for(var Ee=0;Ee<Pe;Ee+=4)U(this,Ee,Ee+3),U(this,Ee+1,Ee+2);return this},P.prototype.swap64=function(){var Pe=this.length;if(0!=Pe%8)throw new RangeError('Buffer size must be a multiple of 64-bits');for(var Ee=0;Ee<Pe;Ee+=8)U(this,Ee,Ee+7),U(this,Ee+1,Ee+6),U(this,Ee+2,Ee+5),U(this,Ee+3,Ee+4);return this},P.prototype.toString=function(){var Pe=0|this.length;return 0==Pe?'':0===arguments.length?X(this,0,Pe):z.apply(this,arguments)},P.prototype.equals=function(Pe){if(!P.isBuffer(Pe))throw new TypeError('Argument must be a Buffer');return this===Pe||0===P.compare(this,Pe)},P.prototype.inspect=function(){var Pe='',Ee=u.INSPECT_MAX_BYTES;return 0<this.length&&(Pe=this.toString('hex',0,Ee).match(/.{2}/g).join(' '),this.length>Ee&&(Pe+=' ... ')),'<Buffer '+Pe+'>'},P.prototype.compare=function(Pe,Ee,Se,Oe,Re){if(!P.isBuffer(Pe))throw new TypeError('Argument must be a Buffer');if(void 0===Ee&&(Ee=0),void 0===Se&&(Se=Pe?Pe.length:0),void 0===Oe&&(Oe=0),void 0===Re&&(Re=this.length),0>Ee||Se>Pe.length||0>Oe||Re>this.length)throw new RangeError('out of range index');if(Oe>=Re&&Ee>=Se)return 0;if(Oe>=Re)return-1;if(Ee>=Se)return 1;if(Ee>>>=0,Se>>>=0,Oe>>>=0,Re>>>=0,this===Pe)return 0;for(var Ve=Re-Oe,Fe=Se-Ee,Ie=_Mathmin(Ve,Fe),Be=this.slice(Oe,Re),Le=Pe.slice(Ee,Se),Ne=0;Ne<Ie;++Ne)if(Be[Ne]!==Le[Ne]){Ve=Be[Ne],Fe=Le[Ne];break}return Ve<Fe?-1:Fe<Ve?1:0},P.prototype.includes=function(Pe,Ee,Se){return-1!==this.indexOf(Pe,Ee,Se)},P.prototype.indexOf=function(Pe,Ee,Se){return $(this,Pe,Ee,Se,!0)},P.prototype.lastIndexOf=function(Pe,Ee,Se){return $(this,Pe,Ee,Se,!1)},P.prototype.write=function(Pe,Ee,Se,Oe){if(void 0===Ee)Oe='utf8',Se=this.length,Ee=0;else if(void 0===Se&&'string'==typeof Ee)Oe=Ee,Se=this.length,Ee=0;else if(isFinite(Ee))Ee|=0,isFinite(Se)?(Se|=0,void 0===Oe&&(Oe='utf8')):(Oe=Se,Se=void 0);else throw new Error('Buffer.write(string, encoding, offset[, length]) is no longer supported');var Re=this.length-Ee;if((void 0===Se||Se>Re)&&(Se=Re),0<Pe.length&&(0>Se||0>Ee)||Ee>this.length)throw new RangeError('Attempt to write outside buffer bounds');Oe||(Oe='utf8');for(var Ve=!1;;)switch(Oe){case'hex':return W(this,Pe,Ee,Se);case'utf8':case'utf-8':return H(this,Pe,Ee,Se);case'ascii':return Y(this,Pe,Ee,Se);case'latin1':case'binary':return G(this,Pe,Ee,Se);case'base64':return Z(this,Pe,Ee,Se);case'ucs2':case'ucs-2':case'utf16le':case'utf-16le':return J(this,Pe,Ee,Se);default:if(Ve)throw new TypeError('Unknown encoding: '+Oe);Oe=(''+Oe).toLowerCase(),Ve=!0;}},P.prototype.toJSON=function(){return{type:'Buffer',data:Array.prototype.slice.call(this._arr||this,0)}};var Ce=4096;P.prototype.slice=function(Pe,Ee){var Se=this.length;Pe=~~Pe,Ee=Ee===void 0?Se:~~Ee,0>Pe?(Pe+=Se,0>Pe&&(Pe=0)):Pe>Se&&(Pe=Se),0>Ee?(Ee+=Se,0>Ee&&(Ee=0)):Ee>Se&&(Ee=Se),Ee<Pe&&(Ee=Pe);var Oe;if(P.TYPED_ARRAY_SUPPORT)Oe=this.subarray(Pe,Ee),Oe.__proto__=P.prototype;else{var Re=Ee-Pe;Oe=new P(Re,void 0);for(var Ve=0;Ve<Re;++Ve)Oe[Ve]=this[Ve+Pe]}return Oe},P.prototype.readUIntLE=function(Pe,Ee,Se){Pe|=0,Ee|=0,Se||ie(Pe,Ee,this.length);for(var Oe=this[Pe],Re=1,Ve=0;++Ve<Ee&&(Re*=256);)Oe+=this[Pe+Ve]*Re;return Oe},P.prototype.readUIntBE=function(Pe,Ee,Se){Pe|=0,Ee|=0,Se||ie(Pe,Ee,this.length);for(var Oe=this[Pe+--Ee],Re=1;0<Ee&&(Re*=256);)Oe+=this[Pe+--Ee]*Re;return Oe},P.prototype.readUInt8=function(Pe,Ee){return Ee||ie(Pe,1,this.length),this[Pe]},P.prototype.readUInt16LE=function(Pe,Ee){return Ee||ie(Pe,2,this.length),this[Pe]|this[Pe+1]<<8},P.prototype.readUInt16BE=function(Pe,Ee){return Ee||ie(Pe,2,this.length),this[Pe]<<8|this[Pe+1]},P.prototype.readUInt32LE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),(this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16)+16777216*this[Pe+3]},P.prototype.readUInt32BE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),16777216*this[Pe]+(this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3])},P.prototype.readIntLE=function(Pe,Ee,Se){Pe|=0,Ee|=0,Se||ie(Pe,Ee,this.length);for(var Oe=this[Pe],Re=1,Ve=0;++Ve<Ee&&(Re*=256);)Oe+=this[Pe+Ve]*Re;return Re*=128,Oe>=Re&&(Oe-=_Mathpow(2,8*Ee)),Oe},P.prototype.readIntBE=function(Pe,Ee,Se){Pe|=0,Ee|=0,Se||ie(Pe,Ee,this.length);for(var Oe=Ee,Re=1,Ve=this[Pe+--Oe];0<Oe&&(Re*=256);)Ve+=this[Pe+--Oe]*Re;return Re*=128,Ve>=Re&&(Ve-=_Mathpow(2,8*Ee)),Ve},P.prototype.readInt8=function(Pe,Ee){return Ee||ie(Pe,1,this.length),128&this[Pe]?-1*(255-this[Pe]+1):this[Pe]},P.prototype.readInt16LE=function(Pe,Ee){Ee||ie(Pe,2,this.length);var Se=this[Pe]|this[Pe+1]<<8;return 32768&Se?4294901760|Se:Se},P.prototype.readInt16BE=function(Pe,Ee){Ee||ie(Pe,2,this.length);var Se=this[Pe+1]|this[Pe]<<8;return 32768&Se?4294901760|Se:Se},P.prototype.readInt32LE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),this[Pe]|this[Pe+1]<<8|this[Pe+2]<<16|this[Pe+3]<<24},P.prototype.readInt32BE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),this[Pe]<<24|this[Pe+1]<<16|this[Pe+2]<<8|this[Pe+3]},P.prototype.readFloatLE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),ve.read(this,Pe,!0,23,4)},P.prototype.readFloatBE=function(Pe,Ee){return Ee||ie(Pe,4,this.length),ve.read(this,Pe,!1,23,4)},P.prototype.readDoubleLE=function(Pe,Ee){return Ee||ie(Pe,8,this.length),ve.read(this,Pe,!0,52,8)},P.prototype.readDoubleBE=function(Pe,Ee){return Ee||ie(Pe,8,this.length),ve.read(this,Pe,!1,52,8)},P.prototype.writeUIntLE=function(Pe,Ee,Se,Oe){if(Pe=+Pe,Ee|=0,Se|=0,!Oe){var Re=_Mathpow(2,8*Se)-1;re(this,Pe,Ee,Se,Re,0)}var Ve=1,Fe=0;for(this[Ee]=255&Pe;++Fe<Se&&(Ve*=256);)this[Ee+Fe]=255&Pe/Ve;return Ee+Se},P.prototype.writeUIntBE=function(Pe,Ee,Se,Oe){if(Pe=+Pe,Ee|=0,Se|=0,!Oe){var Re=_Mathpow(2,8*Se)-1;re(this,Pe,Ee,Se,Re,0)}var Ve=Se-1,Fe=1;for(this[Ee+Ve]=255&Pe;0<=--Ve&&(Fe*=256);)this[Ee+Ve]=255&Pe/Fe;return Ee+Se},P.prototype.writeUInt8=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,1,255,0),P.TYPED_ARRAY_SUPPORT||(Pe=_Mathfloor(Pe)),this[Ee]=255&Pe,Ee+1},P.prototype.writeUInt16LE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[Ee]=255&Pe,this[Ee+1]=Pe>>>8):se(this,Pe,Ee,!0),Ee+2},P.prototype.writeUInt16BE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,2,65535,0),P.TYPED_ARRAY_SUPPORT?(this[Ee]=Pe>>>8,this[Ee+1]=255&Pe):se(this,Pe,Ee,!1),Ee+2},P.prototype.writeUInt32LE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[Ee+3]=Pe>>>24,this[Ee+2]=Pe>>>16,this[Ee+1]=Pe>>>8,this[Ee]=255&Pe):le(this,Pe,Ee,!0),Ee+4},P.prototype.writeUInt32BE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,4,4294967295,0),P.TYPED_ARRAY_SUPPORT?(this[Ee]=Pe>>>24,this[Ee+1]=Pe>>>16,this[Ee+2]=Pe>>>8,this[Ee+3]=255&Pe):le(this,Pe,Ee,!1),Ee+4},P.prototype.writeIntLE=function(Pe,Ee,Se,Oe){if(Pe=+Pe,Ee|=0,!Oe){var Re=_Mathpow(2,8*Se-1);re(this,Pe,Ee,Se,Re-1,-Re)}var Ve=0,Fe=1,Ie=0;for(this[Ee]=255&Pe;++Ve<Se&&(Fe*=256);)0>Pe&&0==Ie&&0!==this[Ee+Ve-1]&&(Ie=1),this[Ee+Ve]=255&(Pe/Fe>>0)-Ie;return Ee+Se},P.prototype.writeIntBE=function(Pe,Ee,Se,Oe){if(Pe=+Pe,Ee|=0,!Oe){var Re=_Mathpow(2,8*Se-1);re(this,Pe,Ee,Se,Re-1,-Re)}var Ve=Se-1,Fe=1,Ie=0;for(this[Ee+Ve]=255&Pe;0<=--Ve&&(Fe*=256);)0>Pe&&0==Ie&&0!==this[Ee+Ve+1]&&(Ie=1),this[Ee+Ve]=255&(Pe/Fe>>0)-Ie;return Ee+Se},P.prototype.writeInt8=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,1,127,-128),P.TYPED_ARRAY_SUPPORT||(Pe=_Mathfloor(Pe)),0>Pe&&(Pe=255+Pe+1),this[Ee]=255&Pe,Ee+1},P.prototype.writeInt16LE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[Ee]=255&Pe,this[Ee+1]=Pe>>>8):se(this,Pe,Ee,!0),Ee+2},P.prototype.writeInt16BE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,2,32767,-32768),P.TYPED_ARRAY_SUPPORT?(this[Ee]=Pe>>>8,this[Ee+1]=255&Pe):se(this,Pe,Ee,!1),Ee+2},P.prototype.writeInt32LE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,4,2147483647,-2147483648),P.TYPED_ARRAY_SUPPORT?(this[Ee]=255&Pe,this[Ee+1]=Pe>>>8,this[Ee+2]=Pe>>>16,this[Ee+3]=Pe>>>24):le(this,Pe,Ee,!0),Ee+4},P.prototype.writeInt32BE=function(Pe,Ee,Se){return Pe=+Pe,Ee|=0,Se||re(this,Pe,Ee,4,2147483647,-2147483648),0>Pe&&(Pe=4294967295+Pe+1),P.TYPED_ARRAY_SUPPORT?(this[Ee]=Pe>>>24,this[Ee+1]=Pe>>>16,this[Ee+2]=Pe>>>8,this[Ee+3]=255&Pe):le(this,Pe,Ee,!1),Ee+4},P.prototype.writeFloatLE=function(Pe,Ee,Se){return ce(this,Pe,Ee,!0,Se)},P.prototype.writeFloatBE=function(Pe,Ee,Se){return ce(this,Pe,Ee,!1,Se)},P.prototype.writeDoubleLE=function(Pe,Ee,Se){return ue(this,Pe,Ee,!0,Se)},P.prototype.writeDoubleBE=function(Pe,Ee,Se){return ue(this,Pe,Ee,!1,Se)},P.prototype.copy=function(Pe,Ee,Se,Oe){if(Se||(Se=0),Oe||0===Oe||(Oe=this.length),Ee>=Pe.length&&(Ee=Pe.length),Ee||(Ee=0),0<Oe&&Oe<Se&&(Oe=Se),Oe===Se)return 0;if(0===Pe.length||0===this.length)return 0;if(0>Ee)throw new RangeError('targetStart out of bounds');if(0>Se||Se>=this.length)throw new RangeError('sourceStart out of bounds');if(0>Oe)throw new RangeError('sourceEnd out of bounds');Oe>this.length&&(Oe=this.length),Pe.length-Ee<Oe-Se&&(Oe=Pe.length-Ee+Se);var Re=Oe-Se,Ve;if(this===Pe&&Se<Ee&&Ee<Oe)for(Ve=Re-1;0<=Ve;--Ve)Pe[Ve+Ee]=this[Ve+Se];else if(1e3>Re||!P.TYPED_ARRAY_SUPPORT)for(Ve=0;Ve<Re;++Ve)Pe[Ve+Ee]=this[Ve+Se];else Uint8Array.prototype.set.call(Pe,this.subarray(Se,Se+Re),Ee);return Re},P.prototype.fill=function(Pe,Ee,Se,Oe){if('string'==typeof Pe){if('string'==typeof Ee?(Oe=Ee,Ee=0,Se=this.length):'string'==typeof Se&&(Oe=Se,Se=this.length),1===Pe.length){var Re=Pe.charCodeAt(0);256>Re&&(Pe=Re)}if(void 0!==Oe&&'string'!=typeof Oe)throw new TypeError('encoding must be a string');if('string'==typeof Oe&&!P.isEncoding(Oe))throw new TypeError('Unknown encoding: '+Oe)}else'number'==typeof Pe&&(Pe&=255);if(0>Ee||this.length<Ee||this.length<Se)throw new RangeError('Out of range index');if(Se<=Ee)return this;Ee>>>=0,Se=Se===void 0?this.length:Se>>>0,Pe||(Pe=0);var Ve;if('number'==typeof Pe)for(Ve=Ee;Ve<Se;++Ve)this[Ve]=Pe;else{var Fe=P.isBuffer(Pe)?Pe:fe(new P(Pe,Oe).toString()),Ie=Fe.length;for(Ve=0;Ve<Se-Ee;++Ve)this[Ve+Ee]=Fe[Ve%Ie]}return this};var Ae=/[^+\/0-9A-Za-z-_]/g}).call(u,f(155))},function(r){var f={}.toString;r.exports=Array.isArray||function(h){return'[object Array]'==f.call(h)}},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'blockquote{border-left:5px solid #ccc;padding-left:20px;margin-left:0;font-style:italic}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-hidden{display:none!important}.ck-reset,.ck-reset_all,.ck-reset_all *,.ck-reset_all a,.ck-reset_all textarea{box-sizing:border-box;width:auto;height:auto;position:static}svg.ck-icon{min-width:20px;min-height:20px;font-size:1em;vertical-align:middle}svg.ck-icon,svg.ck-icon *{color:inherit;cursor:inherit}svg.ck-icon *{fill:currentColor}[data-ck-tooltip]:after,[data-ck-tooltip]:before{visibility:hidden;opacity:0;display:none;position:absolute;z-index:999;pointer-events:none;-webkit-backface-visibility:hidden}[data-ck-tooltip]:after{content:attr(data-ck-tooltip)}[data-ck-tooltip]:before{content:"";width:0;height:0}.ck-button,a.ck-button{display:inline-block;position:relative;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.ck-button:after,.ck-button:before,a.ck-button:after,a.ck-button:before{display:block}.ck-button:hover:after,.ck-button:hover:before,a.ck-button:hover:after,a.ck-button:hover:before{visibility:visible;opacity:1}.ck-button .ck-button__label,.ck-button:focus:not(:hover):after,.ck-button:focus:not(:hover):before,a.ck-button .ck-button__label,a.ck-button:focus:not(:hover):after,a.ck-button:focus:not(:hover):before{display:none}.ck-toolbar__separator{display:inline-block}.ck-toolbar__newline{display:block;clear:left}.ck-dropdown{display:inline-block;position:relative}.ck-dropdown:after{content:"";width:0;height:0;pointer-events:none;z-index:1;position:absolute;top:50%;transform:translateY(-50%)}.ck-dropdown__panel{-webkit-backface-visibility:hidden;display:none;z-index:999;position:absolute;left:0;transform:translateY(100%)}.ck-dropdown__panel-visible{display:inline-block}.ck-label,.ck-list__item{display:block}.cke-voice-label{display:none}.ck-balloon-panel{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;display:none;position:absolute;z-index:999}.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck-balloon-panel.ck-balloon-panel_with-arrow:before{content:"";position:absolute}.ck-balloon-panel.ck-balloon-panel_with-arrow:before{z-index:1}.ck-balloon-panel.ck-balloon-panel_with-arrow:after{z-index:2}.ck-balloon-panel.ck-balloon-panel_arrow_n:before,.ck-balloon-panel.ck-balloon-panel_arrow_ne:before,.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{z-index:1}.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck-balloon-panel.ck-balloon-panel_arrow_nw:after{z-index:2}.ck-balloon-panel.ck-balloon-panel_arrow_s:before,.ck-balloon-panel.ck-balloon-panel_arrow_se:before,.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{z-index:1}.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck-balloon-panel.ck-balloon-panel_arrow_sw:after{z-index:2}.ck-balloon-panel_visible{display:block}.ck-editor .ck-toolbar.ck-toolbar_sticky{position:fixed;top:0}.ck-editor .ck-toolbar.ck-toolbar_sticky.ck-toolbar_sticky_bottom-limit{top:auto;position:absolute}.ck-disabled{opacity:.5}.ck-reset,.ck-reset_all,.ck-reset_all *,.ck-reset_all a,.ck-reset_all textarea{margin:0;padding:0;border:0;background:transparent;text-decoration:none;vertical-align:middle;transition:none}.ck-reset_all,.ck-reset_all *,.ck-reset_all a,.ck-reset_all textarea{border-collapse:collapse;font:normal normal normal 12px Helvetica,Arial,Tahoma,Verdana,Sans-Serif;color:#333;text-align:left;white-space:nowrap;cursor:auto;float:none}.ck-reset_all .ck-rtl *{text-align:right}.ck-reset_all iframe{vertical-align:inherit}.ck-reset_all textarea{white-space:pre-wrap}.ck-reset_all input[type=password],.ck-reset_all input[type=text],.ck-reset_all textarea{cursor:text}.ck-reset_all input[type=password][disabled],.ck-reset_all input[type=text][disabled],.ck-reset_all textarea[disabled]{cursor:default}.ck-reset_all fieldset{padding:10px;border:2px groove #e0dfe3}.ck-reset_all button::-moz-focus-inner{padding:0;border:0}svg.ck-icon{width:1.66667em;height:1.66667em}[data-ck-tooltip]:after,[data-ck-tooltip]:before{left:50%;transition:opacity .2s ease-in-out .2s}[data-ck-tooltip]:after{border-radius:2px;color:#fff;font-size:.7rem;background:#333;padding:.4em .64em}[data-ck-tooltip]:before{border-style:solid}.ck-tooltip_s:after{bottom:-4px;transform:translate(-50%,100%)}.ck-tooltip_s:before{bottom:0;transform:translate(-50%,100%);border-color:transparent transparent #333;border-width:0 5px 5px}.ck-tooltip_n:after{top:-4px;transform:translate(-50%,-100%)}.ck-tooltip_n:before{top:0;transform:translate(-50%,-100%);border-color:#333 transparent transparent;border-width:5px 5px 0}.ck-button,a.ck-button{background:#fff;border:1px solid #bfbfbf;white-space:nowrap;cursor:default;vertical-align:middle;padding:.4em;line-height:1.66667}.ck-button:not(.ck-disabled):focus,.ck-button:not(.ck-disabled):hover,a.ck-button:not(.ck-disabled):focus,a.ck-button:not(.ck-disabled):hover{background:#e6e6e6;border-color:#a6a6a6}.ck-button:not(.ck-disabled):active,a.ck-button:not(.ck-disabled):active{background:#d9d9d9;border-color:#999;box-shadow:inset 0 2px 2px #bfbfbf}.ck-button.ck-rounded-corners,.ck-rounded-corners .ck-button,.ck-rounded-corners a.ck-button,a.ck-button.ck-rounded-corners{border-radius:2px}.ck-button:focus,a.ck-button:focus{outline:none;border:1px solid #6ab5f9;box-shadow:0 0 3px 2px #9bcdfb}.ck-button .ck-icon,a.ck-button .ck-icon{float:left}.ck-button.ck-button_with-text,a.ck-button.ck-button_with-text{padding:.4em .8em}.ck-button.ck-button_with-text .ck-icon,a.ck-button.ck-button_with-text .ck-icon{margin-left:-.4em;margin-right:.4em}.ck-button.ck-button_with-text .ck-button__label,a.ck-button.ck-button_with-text .ck-button__label{display:block}.ck-button.ck-on,a.ck-button.ck-on{background:#f7f7f7;border-color:#b9b9b9}.ck-button.ck-on:not(.ck-disabled):focus,.ck-button.ck-on:not(.ck-disabled):hover,a.ck-button.ck-on:not(.ck-disabled):focus,a.ck-button.ck-on:not(.ck-disabled):hover{background:#dedede;border-color:#a1a1a1}.ck-button.ck-on:not(.ck-disabled):active,a.ck-button.ck-on:not(.ck-disabled):active{background:#d2d2d2;border-color:#949494;box-shadow:inset 0 2px 2px #b9b9b9}.ck-button-action,a.ck-button-action{background:#61b145;border-color:#498534;text-shadow:0 -1px #4e8e37;color:#fff}.ck-button-action:not(.ck-disabled):focus,.ck-button-action:not(.ck-disabled):hover,a.ck-button-action:not(.ck-disabled):focus,a.ck-button-action:not(.ck-disabled):hover{background:#579f3e;border-color:#3f732d}.ck-button-action:not(.ck-disabled):active,a.ck-button-action:not(.ck-disabled):active{background:#52963b;border-color:#3a6a29;box-shadow:inset 0 2px 2px #498534}.ck-button-action:active,.ck-button-action:focus,.ck-button-action:hover,a.ck-button-action:active,a.ck-button-action:focus,a.ck-button-action:hover{text-shadow:0 -1px #3a6a29}.ck-button-bold,a.ck-button-bold{font-weight:700}.ck-button .ck-icon use,.ck-button .ck-icon use *,a.ck-button .ck-icon use,a.ck-button .ck-icon use *{color:inherit}.ck-button .ck-button__label,a.ck-button .ck-button__label{float:left;line-height:inherit;font-size:inherit;font-weight:inherit;color:inherit;cursor:inherit}.ck-toolbar{line-height:1;padding:.4em;border:1px solid #bfbfbf;white-space:normal;-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none}.ck-rounded-corners .ck-toolbar,.ck-toolbar.ck-rounded-corners{border-radius:2px}.ck-toolbar__separator{width:1px;height:2.28em;vertical-align:middle;background:#bfbfbf}.ck-toolbar__newline{height:.4em}.ck-toolbar>*{margin-right:.4em}.ck-toolbar>:last-child{margin-right:0}.ck-toolbar-container .ck-toolbar{border:0}.ck-dropdown:after{border-style:solid;border-width:.4em .4em 0;border-color:#707070 transparent;right:.8em}.ck-dropdown .ck-button.ck-dropdown__button{padding-right:1.6em}.ck-dropdown .ck-button.ck-dropdown__button .ck-button__label{width:7em;overflow:hidden;text-overflow:ellipsis}.ck-dropdown__panel{border:1px solid #b9b9b9;bottom:1px;background:#fff;box-shadow:0 1px 2px 0 rgba(0,0,0,.2)}.ck-dropdown__panel.ck-rounded-corners,.ck-rounded-corners .ck-dropdown__panel{border-radius:2px}.ck-list{-moz-user-select:none;-webkit-user-select:none;-ms-user-select:none;list-style-type:none;background:#fff}.ck-list.ck-rounded-corners,.ck-rounded-corners .ck-list{border-radius:2px}.ck-list__item{padding:.64em;cursor:default;min-width:12em}.ck-list__item:focus,.ck-list__item:hover{background:#f7f7f7}.ck-list__item:focus{box-shadow:0 0 3px 2px #9bcdfb;position:relative;z-index:1;outline:none}.ck-list__item:last-of-type{border:none}.ck-list__item_active{background:#1a8bf1;color:#fff}.ck-list__item_active:focus,.ck-list__item_active:hover{background:#0e7ee2}.ck-label{font-weight:700}.ck-input-text{box-shadow:inset 2px 2px 3px #e6e6e6;border:1px solid #b9b9b9;padding:.64em;min-width:250px}.ck-input-text.ck-rounded-corners,.ck-rounded-corners .ck-input-text{border-radius:2px}.ck-input-text:focus{outline:none;border:1px solid #6ab5f9;box-shadow:0 0 3px 2px #9bcdfb,inset 2px 2px 3px #e6e6e6}.ck-balloon-panel{box-shadow:0 1px 2px 0 rgba(0,0,0,.2);min-width:50px;min-height:15px;background:#fff;border:1px solid #b9b9b9}.ck-balloon-panel.ck-rounded-corners,.ck-rounded-corners .ck-balloon-panel{border-radius:2px}.ck-balloon-panel.ck-balloon-panel_with-arrow:after,.ck-balloon-panel.ck-balloon-panel_with-arrow:before{width:0;height:0;border-style:solid}.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck-balloon-panel.ck-balloon-panel_arrow_n:before,.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck-balloon-panel.ck-balloon-panel_arrow_ne:before,.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{border-width:0 10px 15px}.ck-balloon-panel.ck-balloon-panel_arrow_n:before,.ck-balloon-panel.ck-balloon-panel_arrow_ne:before,.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{border-color:transparent transparent #b9b9b9}.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck-balloon-panel.ck-balloon-panel_arrow_nw:after{border-color:transparent transparent #fff;margin-top:2px}.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck-balloon-panel.ck-balloon-panel_arrow_s:before,.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck-balloon-panel.ck-balloon-panel_arrow_se:before,.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{border-width:15px 10px 0}.ck-balloon-panel.ck-balloon-panel_arrow_s:before,.ck-balloon-panel.ck-balloon-panel_arrow_se:before,.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{border-color:#b9b9b9 transparent transparent}.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck-balloon-panel.ck-balloon-panel_arrow_sw:after{border-color:#fff transparent transparent;margin-bottom:2px}.ck-balloon-panel.ck-balloon-panel_arrow_n:after,.ck-balloon-panel.ck-balloon-panel_arrow_n:before{left:50%;margin-left:-10px;top:-15px}.ck-balloon-panel.ck-balloon-panel_arrow_ne:after,.ck-balloon-panel.ck-balloon-panel_arrow_ne:before{left:20px;top:-15px}.ck-balloon-panel.ck-balloon-panel_arrow_nw:after,.ck-balloon-panel.ck-balloon-panel_arrow_nw:before{right:20px;top:-15px}.ck-balloon-panel.ck-balloon-panel_arrow_s:after,.ck-balloon-panel.ck-balloon-panel_arrow_s:before{left:50%;margin-left:-10px;bottom:-15px}.ck-balloon-panel.ck-balloon-panel_arrow_se:after,.ck-balloon-panel.ck-balloon-panel_arrow_se:before{left:20px;bottom:-15px}.ck-balloon-panel.ck-balloon-panel_arrow_sw:after,.ck-balloon-panel.ck-balloon-panel_arrow_sw:before{right:20px;bottom:-15px}.ck-balloon-panel.ck-toolbar-container_arrow_n:after,.ck-balloon-panel.ck-toolbar-container_arrow_ne:after,.ck-balloon-panel.ck-toolbar-container_arrow_nw:after{border-bottom-color:#f7f7f7}.ck-balloon-panel.ck-toolbar-container_arrow_s:after,.ck-balloon-panel.ck-toolbar-container_arrow_se:after,.ck-balloon-panel.ck-toolbar-container_arrow_sw:after{border-top-color:#f7f7f7}.ck-editor-toolbar{border-radius:0}.ck-editor-toolbar .ck-button{border-width:0}.ck-editor-toolbar .ck-button.ck-disabled,.ck-editor-toolbar .ck-button:not(:hover):not(:focus):not(.ck-on){background:#f7f7f7}.ck-editor-toolbar .ck-button.ck-on{background:#dedede;border-color:#a1a1a1}.ck-editor-toolbar .ck-button.ck-on:not(.ck-disabled):focus,.ck-editor-toolbar .ck-button.ck-on:not(.ck-disabled):hover{background:#c6c6c6;border-color:#888}.ck-editor-toolbar .ck-button.ck-on:not(.ck-disabled):active{background:#b9b9b9;border-color:#7c7c7c;box-shadow:inset 0 2px 2px #a1a1a1}.ck-editor-toolbar .ck-dropdown__button{border-width:1px}.ck-editor-toolbar .ck-dropdown__button:not(:hover):not(:focus):not(.ck-on){background:#fff}.ck-toolbar-container .ck-editor-toolbar{background:#f7f7f7}.ck-editor .ck-toolbar.ck-toolbar_sticky{box-shadow:0 1px 2px 0 rgba(0,0,0,.2);border:1px solid #bfbfbf;border-width:0 0 1px;background:#f7f7f7}.ck-editor{position:relative}.ck-editor.ck-rounded-corners,.ck-rounded-corners .ck-editor{border-radius:2px}.ck-editor .ck-editor__top .ck-toolbar{border-top:0;border-left:0;border-right:0}.ck-editor .ck-editor__main{background:#fff}.ck-editor .ck-editor__bottom{border-bottom:0;border-left:0;border-right:0;padding:.8em}.ck-editor .ck-editor__editable.ck-focused{outline:1px solid #6ab5f9;box-shadow:inset 2px 2px 3px #e6e6e6}.ck-editor .ck-editor__editable_inline{overflow:auto;padding:0 .8em}.ck-editor,.ck-editor-bottom{background:#f7f7f7;border:1px solid #b9b9b9}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-placeholder:before{content:attr(data-placeholder);cursor:text;color:#c2c2c2}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-heading_heading1{font-size:1.5em}.ck-heading_heading2{font-size:1.3em}.ck-heading_heading3{font-size:1.1em}[class*=ck-heading_]{line-height:21.6px;padding:9.6px}[class*=ck-heading_heading]{font-weight:700}.ck-dropdown.ck-heading-dropdown .ck-dropdown__button .ck-button__label{width:8em}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-editor__editable .image>figcaption{background-color:#f7f7f7;padding:.8em;font-size:.75rem;color:#858585;outline-offset:-1px}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.cke-text-alternative-form{padding:1.2em;overflow:hidden}.cke-text-alternative-form .ck-label{margin-bottom:.4em}.cke-text-alternative-form__actions{clear:both;padding-top:1.2em}.cke-text-alternative-form__actions .ck-button{float:right}.cke-text-alternative-form__actions .ck-button+.ck-button{margin-right:.64em}.cke-text-alternative-form__actions .ck-button+.ck-button+.ck-button{float:left}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-editor__editable .image{text-align:center;clear:both}.ck-editor__editable .image.image-style-side{float:right;margin-left:.8em;max-width:50%}.ck-editor__editable .image>img{display:block;margin:0 auto;max-width:100%}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-link-form{padding:1.2em;overflow:hidden}.ck-link-form:focus{outline:none}.ck-link-form .ck-label{margin-bottom:.4em}.ck-link-form__actions{clear:both;padding-top:1.2em}.ck-link-form__actions .ck-button{float:right}.ck-link-form__actions .ck-button+.ck-button{margin-right:.64em}.ck-link-form__actions .ck-button+.ck-button+.ck-button{float:left}',''])},function(r,u,f){u=r.exports=f(28)(void 0),u.push([r.i,'.ck-disabled{opacity:.5}.ck-widget{margin:.8em 0;padding:0}.ck-widget.ck-widget_selected,.ck-widget.ck-widget_selected:hover{outline:3px solid #6ab5f9}.ck-editor__editable.ck-blurred .ck-widget.ck-widget_selected{outline:3px solid #ddd}.ck-widget:hover{outline:3px solid #ffd25c}.ck-widget .ck-editable.ck-editable_focused,.ck-widget .ck-editable:focus{outline:1px solid #6ab5f9;box-shadow:inset 2px 2px 3px #e6e6e6;background-color:#fff}',''])},function(r,u){u.read=function(f,h,w,C,T){var P,E,S=8*T-C-1,O=(1<<S)-1,R=O>>1,V=-7,F=w?T-1:0,I=w?-1:1,N=f[h+F];for(F+=I,P=N&(1<<-V)-1,N>>=-V,V+=S;0<V;P=256*P+f[h+F],F+=I,V-=8);for(E=P&(1<<-V)-1,P>>=-V,V+=C;0<V;E=256*E+f[h+F],F+=I,V-=8);if(0===P)P=1-R;else{if(P===O)return E?NaN:(N?-1:1)*Infinity;E+=_Mathpow(2,C),P-=R}return(N?-1:1)*E*_Mathpow(2,P-C)},u.write=function(f,h,w,C,T,P){var E,S,O,R=8*P-T-1,V=(1<<R)-1,F=V>>1,I=23===T?5.960464477539063e-8-6.617444900424222e-24:0,N=C?0:P-1,M=C?1:-1,D=0>h||0===h&&0>1/h?1:0;for(h=Math.abs(h),isNaN(h)||h===Infinity?(S=isNaN(h)?1:0,E=V):(E=_Mathfloor(Math.log(h)/Math.LN2),1>h*(O=_Mathpow(2,-E))&&(E--,O*=2),h+=1<=E+F?I/O:I*_Mathpow(2,1-F),2<=h*O&&(E++,O/=2),E+F>=V?(S=0,E=V):1<=E+F?(S=(h*O-1)*_Mathpow(2,T),E+=F):(S=h*_Mathpow(2,F-1)*_Mathpow(2,T),E=0));8<=T;f[w+N]=255&S,N+=M,S/=256,T-=8);for(E=E<<T|S,R+=T;0<R;f[w+N]=255&E,N+=M,E/=256,R-=8);f[w+N-M]|=128*D}},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>bold</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="bold" sketch:type="MSArtboardGroup" fill="#454545">\n <g id="icon:bold" sketch:type="MSLayerGroup" transform="translate(4.000000, 3.000000)">\n <path d="M11.135257,7.40877709 C11.4960763,7.65684034 11.7892376,7.96832419 12.0147496,8.34323798 C12.2402617,8.71815176 12.353016,9.15930309 12.353016,9.66670521 C12.353016,10.2755877 12.2247579,10.7900294 11.968238,11.2100456 C11.711718,11.6300618 11.343857,11.9612776 10.8646439,12.2037031 C10.3572418,12.463042 9.77232867,12.6462677 9.10988702,12.753386 C8.44744538,12.8605042 7.66803104,12.9140625 6.77162064,12.9140625 L0.5390625,12.9140625 L0.5390625,12.254443 C0.713834339,12.2375296 0.933705291,12.2121599 1.19868195,12.1783331 C1.46365861,12.1445063 1.64970326,12.1050423 1.75682149,12.0599399 C1.96542013,11.9753729 2.10777248,11.864028 2.1838828,11.7259018 C2.25999311,11.5877757 2.2980477,11.4087782 2.2980477,11.1889039 L2.2980477,2.73224432 C2.2980477,2.52928347 2.26704026,2.36015197 2.20502445,2.22484474 C2.14300863,2.08953751 1.99360914,1.97114546 1.75682149,1.86966504 C1.58204965,1.79637362 1.37909184,1.73576817 1.14794199,1.68784686 C0.916792141,1.63992554 0.713834339,1.60187096 0.5390625,1.57368195 L0.5390625,0.9140625 L7.05914707,0.9140625 C8.69974724,0.9140625 9.88366774,1.13957117 10.6109441,1.59059527 C11.3382205,2.04161937 11.7018532,2.70686994 11.7018532,3.58636694 C11.7018532,3.99228863 11.6201063,4.34887421 11.4566101,4.65613438 C11.2931138,4.96339455 11.0591486,5.22977666 10.7547073,5.45528872 C10.4784551,5.66388736 10.1486486,5.8442943 9.76527814,5.99651493 C9.38190766,6.14873557 8.97035434,6.27558419 8.53060584,6.37706461 L8.53060584,6.53774115 C8.97035434,6.58284356 9.42700939,6.68009417 9.9005847,6.8294959 C10.37416,6.97889764 10.7857133,7.17198943 11.135257,7.40877709 L11.135257,7.40877709 Z M8.41221261,3.79778343 C8.41221261,3.13252288 8.22475853,2.61385294 7.84984474,2.24175806 C7.47493096,1.86966318 6.91256872,1.68361853 6.16274115,1.68361853 C6.05562292,1.68361853 5.91608943,1.68784681 5.7441365,1.69630351 C5.57218356,1.70476022 5.42419349,1.71180736 5.30016187,1.71744516 L5.30016187,6.16564812 L5.73990817,6.16564812 C6.65323197,6.16564812 7.32693912,5.95282432 7.76104982,5.52717032 C8.19516051,5.10151633 8.41221261,4.52505979 8.41221261,3.79778343 L8.41221261,3.79778343 Z M9.00417878,9.55676863 C9.00417878,8.72237404 8.75611924,8.0824932 8.25999273,7.6371069 C7.76386622,7.1917206 7.05069506,6.96903079 6.12045785,6.96903079 C6.01333962,6.96903079 5.87098728,6.97325908 5.69339654,6.98171578 C5.5158058,6.99017248 5.38472888,6.99721962 5.30016187,7.00285743 L5.30016187,11.3918638 C5.35090208,11.6004624 5.50875814,11.7766411 5.7737348,11.920405 C6.03871146,12.0641689 6.36006132,12.1360498 6.737794,12.1360498 C7.40869235,12.1360498 7.95414144,11.9105411 8.37415764,11.459517 C8.79417383,11.0084929 9.00417878,10.3742498 9.00417878,9.55676863 L9.00417878,9.55676863 Z" id="B" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>italic</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="italic" sketch:type="MSArtboardGroup" fill="#454545">\n <g id="icon:italic" sketch:type="MSLayerGroup" transform="translate(5.000000, 3.000000)">\n <path d="M8.82538319,0.9140625 L8.6985333,1.47220203 C8.52376146,1.47783984 8.29543393,1.50320956 8.01354387,1.54831197 C7.73165381,1.59341438 7.52305829,1.63569726 7.38775106,1.67516187 C7.1509634,1.74845328 6.9818319,1.86120762 6.88035148,2.01342825 C6.77887106,2.16564888 6.70558074,2.33196153 6.66047833,2.51237117 L4.63088002,11.2819272 C4.61960442,11.3213918 4.61114784,11.3664935 4.60551004,11.4172337 C4.59987224,11.467974 4.59705338,11.5130757 4.59705338,11.5525403 C4.59705338,11.6822097 4.62524197,11.7921452 4.68161998,11.88235 C4.73799799,11.9725548 4.83947689,12.0514829 4.98605973,12.1191365 C5.07062674,12.1586011 5.2566714,12.2051123 5.54419926,12.2586714 C5.83172712,12.3122305 6.04596036,12.3446474 6.18690539,12.355923 L6.0600555,12.9140625 L0.65625,12.9140625 L0.783099894,12.355923 C0.94095833,12.3446474 1.166467,12.3277342 1.45963266,12.305183 C1.75279833,12.2826318 1.96139385,12.2488055 2.08542548,12.2037031 C2.30529973,12.1247739 2.47161237,12.0162478 2.58436839,11.8781217 C2.69712442,11.7399956 2.77323359,11.5722735 2.8126982,11.3749504 L4.83383985,2.59693776 C4.84511545,2.54619755 4.85357203,2.4954581 4.85920983,2.44471789 C4.86484763,2.39397768 4.86766649,2.34323823 4.86766649,2.29249802 C4.86766649,2.17974199 4.84370619,2.08108195 4.79578488,1.99651493 C4.74786357,1.91194791 4.6477941,1.83583874 4.49557347,1.76818512 C4.34335283,1.70053151 4.13616674,1.63710719 3.87400899,1.57791028 C3.61185123,1.51871337 3.41875943,1.48347764 3.2947278,1.47220203 L3.4215777,0.9140625 L8.82538319,0.9140625 Z" id="I" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg width="100%" height="100%" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:1.41421;"><path d="M5.414,6.749l-2.511,-2.512c-0.192,-0.191 -0.192,-0.502 0,-0.694c0.192,-0.192 0.503,-0.192 0.694,0l2.797,2.797c0.695,-0.251 1.407,-0.428 2.127,-0.53c0.366,-0.051 0.734,-0.081 1.103,-0.095c0.137,-0.003 0.275,-0.005 0.412,-0.004c0.371,0.006 0.742,0.029 1.112,0.074c1.109,0.134 2.204,0.449 3.243,0.936c0.743,0.347 1.464,0.782 2.12,1.331c0.276,0.231 0.542,0.484 0.784,0.766c0.18,0.211 0.349,0.439 0.488,0.692c0.169,0.307 0.301,0.664 0.301,1.039c0,0.375 -0.132,0.732 -0.301,1.039c-0.139,0.252 -0.308,0.481 -0.488,0.691c-0.242,0.283 -0.508,0.535 -0.784,0.767c-0.647,0.542 -1.359,0.973 -2.092,1.318l2.196,2.197c0.192,0.191 0.192,0.503 0,0.694c-0.191,0.192 -0.503,0.192 -0.694,0l-2.485,-2.484l-0.008,0.003l-0.931,-0.931l0.009,-0.003l-6.215,-6.215c-0.321,0.131 -0.636,0.278 -0.945,0.444l6.239,6.24l-0.006,0.005l0.78,0.78c-0.388,0.094 -0.78,0.166 -1.174,0.215l-1.11,-1.11l0.011,0l-5.603,-5.603c-0.229,0.157 -0.452,0.328 -0.665,0.514c-0.038,0.032 -0.075,0.065 -0.112,0.098l4.897,4.897l-0.005,0.006l1.276,1.276c-0.494,-0.003 -0.987,-0.042 -1.477,-0.117l-0.479,-0.479l-0.009,0.009l-4.863,-4.863c-0.007,0.01 -0.015,0.021 -0.022,0.031c-0.044,0.065 -0.086,0.131 -0.124,0.2c-0.026,0.047 -0.05,0.095 -0.071,0.145c-0.014,0.031 -0.026,0.063 -0.037,0.096c-0.013,0.042 -0.026,0.087 -0.028,0.133c-0.001,0.024 0.003,0.049 0.008,0.072c0.009,0.041 0.022,0.082 0.036,0.12c0.014,0.036 0.029,0.072 0.046,0.106c0.031,0.065 0.066,0.126 0.103,0.186c0.041,0.067 0.085,0.131 0.131,0.193l3.463,3.594c-0.281,-0.097 -0.56,-0.206 -0.835,-0.326c-0.44,-0.193 -0.872,-0.417 -1.29,-0.674c-0.35,-0.215 -0.69,-0.454 -1.015,-0.721c-0.281,-0.23 -0.551,-0.482 -0.798,-0.764c-0.184,-0.21 -0.357,-0.438 -0.502,-0.69c-0.184,-0.319 -0.329,-0.693 -0.329,-1.089c0,-0.375 0.131,-0.732 0.301,-1.039c0.139,-0.253 0.307,-0.481 0.488,-0.692c0.225,-0.263 0.471,-0.5 0.728,-0.719c0.647,-0.552 1.36,-0.99 2.096,-1.341l0.019,-0.009l0,0Zm6.674,0.401c1.069,0.849 1.755,2.16 1.755,3.63c0,0.833 -0.224,1.648 -0.647,2.362l0.345,0.344c0.015,-0.006 0.03,-0.012 0.046,-0.018c0.695,-0.285 1.372,-0.649 2,-1.112c0.252,-0.186 0.497,-0.388 0.727,-0.613c0.137,-0.134 0.27,-0.277 0.392,-0.431c0.072,-0.091 0.141,-0.185 0.203,-0.286c0.037,-0.06 0.072,-0.121 0.103,-0.186c0.016,-0.034 0.032,-0.07 0.045,-0.106c0.015,-0.039 0.028,-0.079 0.036,-0.12c0.005,-0.023 0.009,-0.048 0.008,-0.072c-0.002,-0.046 -0.014,-0.091 -0.028,-0.133c-0.01,-0.033 -0.023,-0.065 -0.036,-0.096c-0.022,-0.05 -0.046,-0.098 -0.071,-0.145c-0.039,-0.069 -0.081,-0.135 -0.125,-0.2c-0.081,-0.118 -0.17,-0.229 -0.263,-0.335c-0.166,-0.19 -0.345,-0.362 -0.53,-0.523c-0.333,-0.29 -0.689,-0.543 -1.054,-0.768c-0.601,-0.369 -1.232,-0.664 -1.879,-0.891c-0.338,-0.119 -0.681,-0.219 -1.027,-0.301Zm-2.85,0.21c-0.023,0 -0.046,0.001 -0.069,0.002c-0.092,0.01 -0.18,0.041 -0.254,0.097c-0.163,0.123 -0.234,0.34 -0.175,0.535c0.016,0.051 0.04,0.1 0.071,0.144c0.036,0.05 0.082,0.093 0.133,0.126c0.059,0.038 0.124,0.061 0.193,0.073c0.023,0.003 0.022,0.003 0.045,0.005c0.091,0.003 0.181,0.003 0.272,0.012c0.158,0.016 0.315,0.048 0.467,0.094c0.496,0.151 0.937,0.462 1.246,0.878c0.124,0.167 0.224,0.349 0.304,0.541c0.024,0.061 0.043,0.125 0.069,0.185c0.038,0.077 0.089,0.144 0.159,0.194c0.085,0.062 0.188,0.093 0.291,0.093l0.008,0c0.077,-0.002 0.154,-0.021 0.224,-0.059c0.047,-0.026 0.09,-0.059 0.126,-0.099c0.042,-0.045 0.075,-0.098 0.097,-0.155c0.022,-0.057 0.034,-0.119 0.033,-0.18c0,-0.077 -0.022,-0.147 -0.048,-0.219c-0.015,-0.043 -0.031,-0.085 -0.048,-0.127c-0.084,-0.209 -0.189,-0.409 -0.312,-0.596c-0.436,-0.664 -1.102,-1.164 -1.862,-1.395c-0.214,-0.066 -0.434,-0.11 -0.657,-0.132c-0.09,-0.009 -0.181,-0.014 -0.272,-0.016c-0.009,0 -0.018,0 -0.028,-0.001l-0.013,0Z" style="fill:#3a3a3a;"/></svg>\n'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg width="100%" height="100%" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><path d="M2,16l16,0l0,1l-16,0l0,-1Zm15,-2l-14,0l0,-8l14,0l0,8Zm-1,-7l-12,0l0,6l12,0l0,-6Zm-14,-4l16,0l0,1l-16,0l0,-1Z" style="fill:#343434;"/></svg>\n'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?><svg width="100%" height="100%" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve"><path id="_-Curves-" d="M18,16l-16,0l0,-1l16,0l0,1Zm-11.022,-3l-4.978,0l0,-1l4.978,0l0,1Zm11.022,-7l0,7l-9,0l0,-7l9,0Zm-1,6l0,-5l-7,0l0,5l7,0Zm-10.022,-2l-4.978,0l0,-1l4.978,0l0,1Zm0,-3l-4.978,0l0,-1l4.978,0l0,1Zm11.022,-3l-16,0l0,-1l16,0l0,1Z" style="fill:#343434;"/></svg>\n'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>quote</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="quote" sketch:type="MSArtboardGroup" fill="#454545">\n <g id="icon:blockquote" sketch:type="MSLayerGroup" transform="translate(2.000000, 4.000000)">\n <path d="M6.04296875,0.887157207 L6.04296875,1.76899314 C4.64843053,2.61665363 3.69824472,3.40277858 3.19238281,4.12739158 C2.82324034,4.66059737 2.63867188,5.28949733 2.63867188,6.01411033 C2.63867188,6.45161252 2.7207023,6.77289837 2.88476562,6.97797752 C3.035157,7.18305667 3.2128896,7.28559471 3.41796875,7.28559471 C3.55468818,7.28559471 3.74609252,7.23774362 3.9921875,7.14204002 C4.36132997,7.01899253 4.66210821,6.95746971 4.89453125,6.95746971 C5.44140898,6.95746971 5.92675569,7.16254578 6.35058594,7.57270408 C6.77441618,7.98286238 6.98632812,8.49555257 6.98632812,9.11079002 C6.98632812,9.80805913 6.77441618,10.3480928 6.35058594,10.7309072 C5.76269237,11.2504411 5.07910546,11.5102041 4.29980469,11.5102041 C3.37011254,11.5102041 2.54297237,11.1205595 1.81835938,10.3412588 C1.09374638,9.561958 0.731445312,8.59810045 0.731445312,7.44965721 C0.731445312,5.83636789 1.3330018,4.36665602 2.53613281,3.04047752 C3.34277747,2.16547314 4.51171109,1.44770688 6.04296875,0.887157207 L6.04296875,0.887157207 Z M14.429297,0.887157207 L14.429297,1.76899314 C13.0347587,2.61665363 12.0845729,3.40277858 11.578711,4.12739158 C11.2095686,4.66059737 11.0250001,5.28949733 11.0250001,6.01411033 C11.0250001,6.45161252 11.1070305,6.77289837 11.2710938,6.97797752 C11.4214852,7.18305667 11.5992178,7.28559471 11.804297,7.28559471 C11.9410164,7.28559471 12.1324207,7.23774362 12.3785157,7.14204002 C12.7476582,7.01899253 13.0484364,6.95746971 13.2808595,6.95746971 C13.8277372,6.95746971 14.3130839,7.16254578 14.7369142,7.57270408 C15.1607444,7.98286238 15.3726563,8.49555257 15.3726563,9.11079002 C15.3726563,9.80805913 15.1607444,10.3480928 14.7369142,10.7309072 C14.1490206,11.2504411 13.4654337,11.5102041 12.6861329,11.5102041 C11.7564408,11.5102041 10.9293006,11.1205595 10.2046876,10.3412588 C9.4800746,9.561958 9.11777353,8.59810045 9.11777353,7.44965721 C9.11777353,5.83636789 9.71933002,4.36665602 10.922461,3.04047752 C11.7291057,2.16547314 12.8980393,1.44770688 14.429297,0.887157207 L14.429297,0.887157207 Z" id="\u2018\u2018" sketch:type="MSShapeGroup" transform="translate(8.052051, 6.198681) rotate(-180.000000) translate(-8.052051, -6.198681) "></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>link</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="link" sketch:type="MSArtboardGroup" fill="#222222">\n <g id="icon:link" sketch:type="MSLayerGroup">\n <g id="Rectangle-18-+-Rectangle-18-Copy-+-Path-28" transform="translate(9.646447, 9.853553) rotate(-315.000000) translate(-9.646447, -9.853553) translate(5.646447, 0.853553)" sketch:type="MSShapeGroup">\n <path d="M8,6.55919636 L8,4.82450549 C8,2.61334348 6.2104719,0.828427125 4,0.828427125 C1.79353398,0.828427125 -3.20810045e-12,2.61822724 -3.20810045e-12,4.82450549 L-3.20810045e-12,7.75542568 C-3.20810045e-12,9.96658769 1.7895281,11.751504 4,11.751504 C4.5511606,11.751504 5.07655559,11.6398264 5.55466651,11.437876 L5.12132034,11.437876 L5.12132034,10.5346402 C4.77469964,10.6745028 4.39616036,10.751504 4,10.751504 C2.34314575,10.751504 1,9.41562927 1,7.75542568 L1,4.82450549 C1,3.1698171 2.34651712,1.82842712 4,1.82842712 C5.65685425,1.82842712 7,3.1643019 7,4.82450549 L7,6.55919636 L8,6.55919636 Z" id="Shape"></path>\n <path d="M2.63603897,6.90151354 C3.06184352,6.74698845 3.52119959,6.66270951 4,6.66270951 C6.2104719,6.66270951 8,8.44762587 8,10.6587879 L8,13.5897081 C8,15.7959863 6.20646602,17.5857864 4,17.5857864 C1.7895281,17.5857864 -2.32347475e-12,15.8008701 -2.32347475e-12,13.5897081 L-2.32347475e-12,11.6627095 L1,11.6627095 L1,13.5897081 C1,15.2499117 2.34314575,16.5857864 4,16.5857864 C5.65348288,16.5857864 7,15.2443965 7,13.5897081 L7,10.6587879 C7,8.99858429 5.65685425,7.66270951 4,7.66270951 C3.5092458,7.66270951 3.04553235,7.78087311 2.63603897,7.99032058 L2.63603897,6.90151354 Z" id="Shape"></path>\n </g>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>unlink</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="unlink" sketch:type="MSArtboardGroup" fill="#222222">\n <g id="icon:unlink" sketch:type="MSLayerGroup">\n <g id="Rectangle-18-+-Rectangle-18-Copy-+-Path-28-Copy" transform="translate(12.828427, 13.035534) rotate(-315.000000) translate(-12.828427, -13.035534) translate(4.328427, 4.035534)" sketch:type="MSShapeGroup">\n <path d="M8,6.55919636 L8,4.82450549 C8,2.61334348 6.2104719,0.828427125 4,0.828427125 C1.79353398,0.828427125 -3.20454774e-12,2.61822724 -3.20454774e-12,4.82450549 L-3.20454774e-12,7.75542568 C-3.20454774e-12,9.96658769 1.7895281,11.751504 4,11.751504 C4.5511606,11.751504 5.07655559,11.6398264 5.55466651,11.437876 L5.12132034,11.437876 L5.12132034,10.5346402 C4.77469964,10.6745028 4.39616036,10.751504 4,10.751504 C2.34314575,10.751504 1,9.41562927 1,7.75542568 L1,4.82450549 C1,3.1698171 2.34651712,1.82842712 4,1.82842712 C5.65685425,1.82842712 7,3.1643019 7,4.82450549 L7,6.55919636 L8,6.55919636 Z" id="Shape"></path>\n <path d="M12.1301896,9.691731 L12.1301896,6.07623654 L11.1099103,6.07623654 L11.1099103,9.691731 L7.79324873,9.691731 L7.79324873,10.7120103 L11.1099103,10.7120103 L11.1099103,14.3275047 L12.1301896,14.3275047 L12.1301896,10.7120103 L16.0445169,10.7120103 L16.0445169,9.691731 L12.1301896,9.691731 Z M7.52584209,8.6418508 C6.80172121,7.49371533 5.53005392,6.73384534 4.08111717,6.73384534 C3.59260703,6.73384534 3.12393555,6.82077136 2.68949598,6.98014985 L2.68949598,8.10315471 C3.10729359,7.8871288 3.58041083,7.76525387 4.08111717,7.76525387 C5.2472836,7.76525387 6.26112906,8.4209623 6.77783518,9.38985772 L7.52584209,8.6418508 Z M8.16223435,12.3942945 L8.16223435,13.8784107 C8.16223435,16.1539849 6.33232877,18 4.08111717,18 C1.82581847,18 -8.17124146e-14,16.1590221 -8.17124146e-14,13.8784107 L-8.17124146e-14,11.890888 L1.02027929,11.890888 L1.02027929,13.8784107 C1.02027929,15.5907588 2.39066309,16.9685915 4.08111717,16.9685915 C5.76813152,16.9685915 7.14195505,15.5850704 7.14195505,13.8784107 L7.14195505,11.3740152 L8.16223435,12.3942945 Z" id="Shape"></path>\n </g>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>bulletedlist</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="bulletedlist" sketch:type="MSArtboardGroup" fill="#454545">\n <g id="icon:bulletedlist" sketch:type="MSLayerGroup" transform="translate(1.000000, 3.000000)">\n <path d="M5,13 L5,14 L15,14 L15,13 L5,13 L5,13 Z M5,1 L5,2 L17,2 L17,1 L5,1 L5,1 Z M5,7 L5,8 L16,8 L16,7 L5,7 L5,7 Z M0,1.5 C0,0.671572875 0.665797234,0 1.5,0 L1.5,0 C2.32842712,0 3,0.665797234 3,1.5 L3,1.5 C3,2.32842712 2.33420277,3 1.5,3 L1.5,3 C0.671572875,3 0,2.33420277 0,1.5 L0,1.5 Z M0,7.5 C0,6.67157288 0.665797234,6 1.5,6 L1.5,6 C2.32842712,6 3,6.66579723 3,7.5 L3,7.5 C3,8.32842712 2.33420277,9 1.5,9 L1.5,9 C0.671572875,9 0,8.33420277 0,7.5 L0,7.5 Z M0,13.5 C0,12.6715729 0.665797234,12 1.5,12 L1.5,12 C2.32842712,12 3,12.6657972 3,13.5 L3,13.5 C3,14.3284271 2.33420277,15 1.5,15 L1.5,15 C0.671572875,15 0,14.3342028 0,13.5 L0,13.5 Z" id="path4634" sketch:type="MSShapeGroup"></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" 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 <!-- Generator: Sketch 3.5.2 (25235) - http://www.bohemiancoding.com/sketch -->\n <title>numberedlist</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Page-1" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd" sketch:type="MSPage">\n <g id="numberedlist" sketch:type="MSArtboardGroup" fill="#454545">\n <g id="icon:numberedlist" sketch:type="MSLayerGroup" transform="translate(2.000000, 2.000000)">\n <path d="M5,15 L15,15 L15,14 L5,14 L5,15 Z M4,2 L4,3 L17,3 L17,2 L4,2 L4,2 Z M5,8 L5,9 L16,9 L16,8 L5,8 L5,8 Z" id="path4634" sketch:type="MSShapeGroup"></path>\n <g id="path4712-path-+-path4712-path-+-path4712-path-copy" sketch:type="MSShapeGroup">\n <path d="M0,0.5 C0,0.77699 0.223,1 0.5,1 L1,1 L1,4.5 C1,4.77699 1.223,5 1.5,5 C1.777,5 2,4.77699 2,4.5 L2,0.5 C2,0.223 1.777,0 1.5,0 L0.5,0 C0.223,0 0,0.223 0,0.5 Z" id="path4712-path"></path>\n <path d="M0.5,6 C0.223,6 0,6.223 0,6.5 C0,6.77699 0.223,7 0.5,7 L2,7 L2,8 L0.5,8 C0.223,8 0,8.223 0,8.5 L0,10.5 C0,10.77699 0.223,11 0.5,11 L2.5,11 C2.777,11 3,10.77699 3,10.5 C3,10.223 2.777,10 2.5,10 L1,10 L1,9 L2.5,9 C2.5693,9 2.62764,8.994 2.6875,8.9688 C2.81468,8.9278 2.9182,8.82667 2.96875,8.68755 C2.99395,8.62765 2.99995,8.5693 2.99995,8.50005 L2.99995,6.50005 C2.99995,6.43075 2.99395,6.3724 2.96875,6.31255 C2.91825,6.17342 2.81468,6.07227 2.6875,6.0313 C2.6471,6.0142 2.6076,6.006 2.5625,6.0001 L2.5,6.0001 L0.5,6.0001 L0.5,6 Z" id="path4712-path"></path>\n <path d="M2.85209534,16.8526748 C2.94267961,16.7627344 3,16.6389489 3,16.5023012 L3,12.4976988 C3,12.3570579 2.94465639,12.2332311 2.85505992,12.1442682 C2.76454727,12.057652 2.64101746,12 2.50461102,12 L0.495388985,12 C0.215752602,12 0,12.2238576 0,12.5 C0,12.7680664 0.221793203,13 0.495388985,13 L2,13 L2,14 L0.495388985,14 C0.215752602,14 0,14.2238576 0,14.5 C0,14.7680664 0.221793203,15 0.495388985,15 L2,15 L2,16 L0.495388985,16 C0.215752602,16 0,16.2238576 0,16.5 C0,16.7680664 0.221793203,17 0.495388985,17 L2.50461102,17 C2.6440432,17 2.76759251,16.9443442 2.85643212,16.854302 Z" id="Rectangle-403"></path>\n </g>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <!-- Generator: Sketch 3.8.2 (29753) - http://www.bohemiancoding.com/sketch -->\n <title>redo</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Mockups" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="redo" fill="#454545">\n <g id="undo">\n <path d="M10.00002,15.99998 L11,12.0184937 C7.58334,12.0184937 2.38444,12.88666 1,16 C1,10.01667 7.60112,8.03985596 11,8.03985596 C10.99998,7.18907596 9.99999,4.71945 10,4 L18,10 L10.00002,15.99998 Z"></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports='<?xml version="1.0" encoding="UTF-8" standalone="no"?>\n<svg width="20px" height="20px" viewBox="0 0 20 20" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">\n <!-- Generator: Sketch 3.8.2 (29753) - http://www.bohemiancoding.com/sketch -->\n <title>undo</title>\n <desc>Created with Sketch.</desc>\n <defs></defs>\n <g id="Mockups" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">\n <g id="undo" fill="#454545">\n <g>\n <path d="M2,10 L9.99998,15.99998 L9,12.0184937 C12.41666,12.0184937 17.61556,12.88666 19,16 C19,10.01667 12.39888,8.03985596 9,8.03985596 C9.00002,7.18907596 10.00001,4.71945 10,4 L2,10 Z"></path>\n </g>\n </g>\n </g>\n</svg>'},function(r){r.exports=function(f){var h='undefined'!=typeof window&&window.location;if(!h)throw new Error('fixUrls requires window.location');if(!f||'string'!=typeof f)return f;var w=h.protocol+'//'+h.host,C=w+h.pathname.replace(/\/[^\/]*$/,'/'),T=f.replace(/url\s*\(((?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)\)/gi,function(P,E){var S=E.trim().replace(/^"(.*)"$/,function(R,V){return V}).replace(/^'(.*)'$/,function(R,V){return V});if(/^(#|data:|http:\/\/|https:\/\/|file:\/\/\/)/i.test(S))return P;var O;return O=0===S.indexOf('//')?S:0===S.indexOf('/')?w+S:C+S.replace(/^\.\//,''),'url('+JSON.stringify(O)+')'});return T}},function(r,u,f){var h=f(295);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(296);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(297);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(298);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(299);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(300);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(301);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(302);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){var h=f(303);'string'==typeof h&&(h=[[r.i,h,'']]);f(29)(h,{});h.locals&&(r.exports=h.locals),!1},function(r,u,f){'use strict';var h=f(3),w=f(61);u.a=class{constructor(T,P,E){let S;if('function'==typeof E)S=E;else{S=(R)=>{const{batch:V}=R;T.execute(E,{batch:V})}}T.document.on('change',(O,R,V)=>{if('insert'!=R)return;const F=V.range.getItems().next().value;if(!(F instanceof w.a))return;const I=F.textNode,N=I.data;if('paragraph'!==I.parent.name||!N)return;const M=P.exec(N);M&&T.document.enqueueChanges(()=>{const D=T.document.batch(),q=h.a.createFromParentsAndOffsets(I.parent,0,I.parent,M[0].length);D.remove(q),S({batch:D,match:M})})})}}},function(r,u,f){'use strict';function h(P){return Array.from(P.getChildren()).reduce((E,S)=>E+S.data,'')}var w=f(111),C=f(101);u.a=class{constructor(P,E,S){this.editor=P;let O,R,V,F;E instanceof RegExp?O=E:V=E,'string'==typeof S?R=S:F=S,V=V||((I)=>{let N,M=[],D=[];for(;null!==(N=O.exec(I))&&!(N&&4>N.length);){let{index:q,1:z,2:U,3:$}=N;q+=N[0].length-(z+U+$).length;const W=[q,q+z.length],H=[q+z.length+U.length,q+z.length+U.length+$.length];M.push(W),M.push(H),D.push([q+z.length,q+z.length+U.length])}return{remove:M,format:D}}),F=F||((I,N)=>{for(let M of N)I.setAttribute(M,R,!0)}),P.document.on('change',(I,N)=>{if('insert'!==N)return;const M=this.editor.document.selection;if(!M.isCollapsed||!M.focus||!M.focus.parent)return;const D=M.focus.parent,q=h(D).slice(0,M.focus.offset),z=V(q),U=[];z.format.forEach((W)=>{void 0===W[0]||void 0===W[1]||U.push(w.a.createFromParentsAndOffsets(D,W[0],D,W[1]))});const $=[];if(z.remove.slice().reverse().forEach((W)=>{void 0===W[0]||void 0===W[1]||$.push(w.a.createFromParentsAndOffsets(D,W[0],D,W[1]))}),!(U.length&&$.length))return;const K=P.document.batch();P.document.enqueueChanges(()=>{const W=f.i(C.a)(R,U,P.document.schema);F(K,W);for(let H of $)K.remove(H)})})}}},function(r,u,f){'use strict';function h(R){return'blockQuote'==R.parent.name?R.parent:null}function w(R){let V,F=0;const I=[];for(;F<R.length;){const N=R[F],M=R[F+1];V||(V=T.a.createBefore(N)),M&&N.nextSibling==M||(I.push(new E.a(V,T.a.createAfter(N))),V=null),F++}return I}var C=f(11),T=f(1),P=f(5),E=f(3),S=f(66);class O extends C.a{constructor(R){super(R),this.set('value',!1),this.listenTo(R.document,'changesDone',()=>{this.refreshValue(),this.refreshState()})}refreshValue(){const R=f.i(S.a)(this.editor.document.selection.getSelectedBlocks());this.value=!!(R&&h(R))}_doExecute(R={}){const V=this.editor.document,F=R.batch||V.batch(),I=Array.from(V.selection.getSelectedBlocks());V.enqueueChanges(()=>{this.value?this._removeQuote(F,I.filter(h)):this._applyQuote(F,I)})}_checkEnabled(){if(this.value)return!0;const R=this.editor.document.selection,V=this.editor.document.schema,F=f.i(S.a)(R.getSelectedBlocks());if(!F)return!1;const I=V.check({name:'blockQuote',inside:T.a.createBefore(F)}),N=V.check({name:F.name,attributes:Array.from(F.getAttributeKeys()),inside:'blockQuote'});return I&&N}_removeQuote(R,V){w(V).reverse().forEach((F)=>{if(F.start.isAtStart&&F.end.isAtEnd)return void R.unwrap(F.start.parent);if(F.start.isAtStart){const N=T.a.createBefore(F.start.parent);return void R.move(F,N)}F.end.isAtEnd||R.split(F.end);const I=T.a.createAfter(F.end.parent);R.move(F,I)})}_applyQuote(R,V){const F=[];w(V).reverse().forEach((I)=>{let N=h(I.start);N||(N=new P.a('blockQuote'),R.wrap(I,N)),F.push(N)}),F.reverse().reduce((I,N)=>{return I.nextSibling==N?(R.merge(T.a.createAfter(I)),I):N})}}u.a=O},function(r,u,f){'use strict';var h=f(2),w=f(329),C=f(34),T=f(41);class P extends h.a{init(){const E=this.editor,S=E.document.schema;E.commands.set('blockQuote',new w.a(E)),S.registerItem('blockQuote'),S.allow({name:'blockQuote',inside:'$root'}),S.allow({name:'$block',inside:'blockQuote'}),f.i(C.a)().for(E.data.viewToModel).fromElement('blockquote').toElement('blockQuote'),f.i(T.a)().for(E.data.modelToView,E.editing.modelToView).fromElement('blockQuote').toElement('blockquote')}afterInit(){const E=this.editor.document.schema;E.hasItem('listItem')&&E.allow({name:'listItem',inside:'blockQuote',attributes:['type','indent']})}}u.a=P},function(r,u,f){'use strict';Object.defineProperty(u,'__esModule',{value:!0});var h=f(284),w=f(291),C=f(279),T=f(280),P=f(281),E=f(282),S=f(285),O=f(286),R=f(287),V=f(288),F=f(154),I=f(289),N=f(290),M=f(73);class D extends h.a{}u.ClassicEditor=D,D.build={plugins:[w.a,C.a,T.a,P.a,E.a,S.a,O.a,R.a,V.a,F.a,I.a,N.a,M.a],config:f(283)}},function(r,u,f){'use strict';var h=f(2),w=f(333),C=f(336),T=f(335),P=f(337),E=f(164);class S extends h.a{static get pluginName(){return'clipboard/clipboard'}init(){const O=this.editor,R=O.document,V=O.editing.view;this._htmlDataProcessor=new E.a,V.addObserver(w.a),this.listenTo(V,'clipboardInput',(I,N)=>{const M=N.dataTransfer;let D='';M.getData('text/html')?D=f.i(T.a)(M.getData('text/html')):M.getData('text/plain')&&(D=f.i(C.a)(M.getData('text/plain'))),D=this._htmlDataProcessor.toView(D),this.fire('inputTransformation',{content:D})},{priority:'low'}),this.listenTo(this,'inputTransformation',(I,N)=>{if(!N.content.isEmpty){const M=this.editor.data,D=M.toModel(N.content,'$clipboardHolder');R.enqueueChanges(()=>{M.insertContent(D,R.selection)})}},{priority:'low'});const F=(I,N)=>{const M=N.dataTransfer,D=O.data.toView(O.data.getSelectedContent(R.selection));N.preventDefault(),V.fire('clipboardOutput',{dataTransfer:M,content:D,method:I.name})};this.listenTo(V,'copy',F,{priority:'low'}),this.listenTo(V,'cut',F,{priority:'low'}),this.listenTo(V,'clipboardOutput',(I,N)=>{N.content.isEmpty||(N.dataTransfer.setData('text/html',this._htmlDataProcessor.toData(N.content)),N.dataTransfer.setData('text/plain',f.i(P.a)(N.content))),'cut'==N.method&&R.enqueueChanges(()=>{O.data.deleteContent(R.selection,R.batch(),{merge:!0})})},{priority:'low'})}}u.a=S},function(r,u,f){'use strict';var h=f(63),w=f(334);class C extends h.a{constructor(T){function P(E,S){S.preventDefault(),T.fire('clipboardInput',{dataTransfer:S.dataTransfer})}super(T),this.domEventType=['paste','copy','cut','drop'],this.listenTo(T,'paste',P,{priority:'low'}),this.listenTo(T,'drop',P,{priority:'low'})}onDomEvent(T){this.fire(T.type,T,{dataTransfer:new w.a(T.clipboardData?T.clipboardData:T.dataTransfer)})}}u.a=C},function(r,u){'use strict';function h(C){const T=C.files?Array.from(C.files):[],P=C.items?Array.from(C.items):[];return T.length?T:P.filter((E)=>'file'===E.kind).map((E)=>E.getAsFile())}class w{constructor(C){this.files=h(C),this._native=C}get types(){return this._native.types}getData(C){return this._native.getData(C)}setData(C,T){this._native.setData(C,T)}}u.a=w},function(r,u){'use strict';u.a=function(w){return w.replace(/<span class="Apple-converted-space">(\s+)<\/span>/g,(C,T)=>{return 1==T.length?' ':T})}},function(r,u){'use strict';u.a=function(w){return w=w.replace(/</g,'<').replace(/>/g,'>').replace(/\n\n/g,'</p><p>').replace(/\n/g,' ').replace(/^\s/,' ').replace(/\s$/,' ').replace(/\s\s/g,' '),-1<w.indexOf('</p><p>')&&(w=`<p>${w}</p>`),w}},function(r,u){'use strict';function h(C){let T='';if(C.is('text')||C.is('textProxy'))T=C.data;else if(C.is('img')&&C.hasAttribute('alt'))T=C.getAttribute('alt');else{let P=null;for(let E of C.getChildren()){const S=h(E);P&&(P.is('containerElement')||E.is('containerElement'))&&(w.includes(P.name)||w.includes(E.name)?T+='\n':T+='\n\n'),T+=S,P=E}}return T}u.a=h;const w=['figcaption','li']},function(r,u,f){'use strict';var h=f(68);class w extends h.a{constructor(C){super(),this.editor=C}set(C,T){if('string'==typeof T){const P=T;T=()=>{this.editor.execute(P)}}super.set(C,T)}listenTo(C){this._listener.listenTo(C,'keydown',(T,P)=>{const E=this.press(P);E&&P.preventDefault()})}}u.a=w},function(r,u,f){'use strict';var h=f(7),w=f(429),C=f(341),T=f(540),P=f(344),E=f(359),S=f(0),O=f(4);class R{constructor(V){const F=this.constructor.build&&this.constructor.build.plugins;this.config=new w.a(V,this.constructor.build&&this.constructor.build.config),this.config.define('plugins',F),this.plugins=new C.a(this,F),this.commands=new Map,this.locale=new T.a(this.config.get('lang')),this.t=this.locale.t,this.document=new E.a,this.data=new P.a(this.document)}initPlugins(){function F(M,D){return M.reduce((q,z)=>{return q.then(z[D].bind(z))},Promise.resolve())}const I=this,N=this.config;return function(){const M=N.get('plugins')||[],D=N.get('removePlugins')||[];return I.plugins.load(M,D)}().then((M)=>{return F(M,'init').then(()=>F(M,'afterInit'))}).then(()=>this.fire('pluginsReady'))}destroy(){return this.fire('destroy'),this.stopListening(),Promise.resolve().then(()=>{this.document.destroy(),this.data.destroy()})}execute(V,F){let I=this.commands.get(V);if(!I)throw new S.a('editor-command-not-found: Specified command has not been added to the editor.');I._execute(F)}static create(V){return new Promise((F)=>{const I=new this(V);F(I.initPlugins().then(()=>{I.fire('dataReady'),I.fire('ready')}).then(()=>I))})}}u.a=R,f.i(O.a)(R,h.a)},function(r,u,f){'use strict';var h=f(339),w=f(338),C=f(346),T=f(432),P=f(439);class E extends h.a{constructor(S,O){super(O),this.element=S,this.editing=new C.a(this.document),this.keystrokes=new w.a(this),this.keystrokes.listenTo(this.editing.view)}destroy(){return Promise.resolve().then(()=>this.keystrokes.destroy()).then(()=>this.editing.destroy()).then(super.destroy())}setData(S){this.data.set(S)}getData(){return this.data.get()}updateEditorElement(){f.i(P.a)(this.element,this.getData())}loadDataFromEditorElement(){this.setData(f.i(T.a)(this.element))}static create(S,O){return new Promise((R)=>{const V=new this(S,O);R(V.initPlugins().then(()=>{V.fire('dataReady'),V.fire('ready')}).then(()=>V))})}}u.a=E},function(r,u,f){'use strict';var h=f(2),w=f(0),C=f(40);class T{constructor(P,E=[]){this._editor=P,this._availablePlugins=new Map,this._plugins=new Map;for(const S of E)this._availablePlugins.set(S,S),S.pluginName&&this._availablePlugins.set(S.pluginName,S)}*[Symbol.iterator](){for(const P of this._plugins)'function'==typeof P[0]&&(yield P)}get(P){return this._plugins.get(P)}load(P,E=[]){function S(K){return U.includes(K)||N.get(K)||D.has(K)?void 0:O(K).catch((W)=>{throw C.a.error('plugincollection-load: It was not possible to load the plugin.',{plugin:K}),W})}function O(K){return new Promise((W)=>{D.add(K),V(K),K.requires&&K.requires.forEach((Y)=>{const G=R(Y);if(E.includes(G))throw new w.a('plugincollection-required: Cannot load a plugin because one of its dependencies is listed inthe `removePlugins` option.',{plugin:G,requiredBy:K});S(G)});const H=new K(M);N._add(K,H),q.push(H),W()})}function R(K){return'function'==typeof K?K:N._availablePlugins.get(K)}function V(K){if(!(K.prototype instanceof h.a))throw new w.a('plugincollection-instance: The loaded plugin module is not an instance of Plugin.',{plugin:K})}function I(K){return K.map((W)=>R(W)).filter((W)=>!!W)}const N=this,M=this._editor,D=new Set,q=[],z=I(P),U=I(E),$=function(K){const W=[];for(const H of K)R(H)||W.push(H);return W.length?W:null}(P);if($){const K='plugincollection-plugin-not-found: Some plugins are not available and could not be loaded.';return C.a.error(K,{plugins:$}),Promise.reject(new w.a(K,{plugins:$}))}return Promise.all(z.map(S)).then(()=>q)}_add(P,E){this._plugins.set(P,E),P.pluginName&&this._plugins.set(P.pluginName,E)}}u.a=T},function(r,u,f){'use strict';var h=f(407),w=f(67),C=f(422);u.a=class{constructor(P,E){this.editor=P,this.view=E,this.componentFactory=new h.a(P),this.focusTracker=new w.a,E.set('width',P.config.get('ui.width')),E.set('height',P.config.get('ui.height')),E.toolbar.bind('isActive').to(this.focusTracker,'isFocused'),E.toolbar.limiterElement=E.element;const S=P.editing.createRoot('div');E.editable.bind('isReadOnly').to(S),E.editable.bind('isFocused').to(P.editing.view),E.editable.name=S.rootName,this.focusTracker.add(E.editableElement)}init(){const P=this.editor;return this.view.init().then(()=>{return this.view.toolbar.fillFromConfig(P.config.get('toolbar'),this.componentFactory)}).then(()=>{f.i(C.a)({origin:P.editing.view,originFocusTracker:this.focusTracker,originKeystrokeHandler:P.keystrokes,toolbar:this.view.toolbar})})}destroy(){return this.view.destroy()}}},function(r,u,f){'use strict';var h=f(414),w=f(413),C=f(423),T=f(6);class P extends h.a{constructor(E){super(E),this.toolbar=new C.a(E),T.a.extend(this.toolbar.template,{attributes:{class:'ck-editor-toolbar'}}),this.editable=new w.a(E),this.top.add(this.toolbar),this.main.add(this.editable)}get editableElement(){return this.editable.element}}u.a=P},function(r,u,f){'use strict';var h=f(4),w=f(7),C=f(161),T=f(163),P=f(102),E=f(354),S=f(352),O=f(117),R=f(3),V=f(1),F=f(348),I=f(345),N=f(349),M=f(347);class D{constructor(q,z){this.model=q,this.processor=z,this.mapper=new C.a,this.modelToView=new T.a(this.model,{mapper:this.mapper}),this.modelToView.on('insert:$text',f.i(P.j)(),{priority:'lowest'}),this.viewToModel=new E.a({schema:q.schema}),this.viewToModel.on('text',f.i(S.a)(),{priority:'lowest'}),this.viewToModel.on('element',f.i(S.b)(),{priority:'lowest'}),this.viewToModel.on('documentFragment',f.i(S.b)(),{priority:'lowest'}),this.on('insertContent',(U,$)=>f.i(F.a)(this,$.content,$.selection,$.batch)),this.on('deleteContent',(U,$)=>f.i(I.a)($.selection,$.batch,$.options)),this.on('modifySelection',(U,$)=>f.i(N.a)(this,$.selection,$.options)),this.on('getSelectedContent',(U,$)=>{$.content=f.i(M.a)($.selection)})}get(q='main'){return this.stringify(this.model.getRoot(q))}stringify(q){const z=this.toView(q);return this.processor.toData(z)}toView(q){const z=R.a.createIn(q),U=new O.a;return this.mapper.bindElements(q,U),this.modelToView.convertInsertion(z),this.mapper.clearBindings(),U}set(q,z='main'){const U=this.model.getRoot(z);this.model.enqueueChanges(()=>{this.model.selection.removeAllRanges(),this.model.selection.clearAttributes(),this.model.batch('transparent').remove(R.a.createIn(U)).insert(V.a.createAt(U,0),this.parse(q))})}parse(q,z='$root'){const U=this.processor.toView(q);return this.toModel(U,z)}toModel(q,z='$root'){return this.viewToModel.convert(q,{context:[z]})}destroy(){}insertContent(q,z,U){this.fire('insertContent',{content:q,selection:z,batch:U})}deleteContent(q,z,U){this.fire('deleteContent',{batch:z,selection:q,options:U})}modifySelection(q,z){this.fire('modifySelection',{selection:q,options:z})}getSelectedContent(q){const z={selection:q};return this.fire('getSelectedContent',z),z.content}}u.a=D,f.i(h.a)(D,w.a)},function(r,u,f){'use strict';function w(R,V,F){const I=V.parent,N=F.parent;if(I!=N&&I.parent&&N.parent&&T(V,F)){for(V=E.a.createAfter(I),F=E.a.createBefore(N),N.isEmpty?R.remove(N):(!F.isEqual(V)&&R.move(N,V),R.merge(V));F.parent.isEmpty;){const M=F.parent;F=E.a.createBefore(M),R.remove(M)}w(R,V,F)}}function C(R,V){const F=R.schema.check({name:'$text',inside:V}),I=R.schema.check({name:'paragraph',inside:V});return!F&&I}function T(R,V){const F=R.root.document.schema,I=new S.a(R,V);for(const N of I.getWalker())if(F.objects.has(N.item.name)||F.limits.has(N.item.name))return!1;return!0}var P=f(168),E=f(1),S=f(3),O=f(5);u.a=function(R,V,F={}){if(!R.isCollapsed){const I=R.getFirstRange(),N=I.start,M=P.a.createFromPosition(I.end);if(I.start.isTouching(I.end)||V.remove(I),F.merge&&w(V,N,M),R.collapse(N),C(V.document,N)){const D=new O.a('paragraph');V.insert(N,D),R.collapse(D)}M.detach()}}},function(r,u,f){'use strict';var h=f(367),w=f(161),C=f(163),T=f(102),P=f(351),E=f(162),S=f(7);u.a=class{constructor(R){this.model=R,this.view=new h.a,this.mapper=new w.a,this.modelToView=new C.a(this.model,{mapper:this.mapper,viewSelection:this.view.selection}),this._listener=Object.create(S.a),this._listener.listenTo(this.model,'change',(V,F,I)=>{this.modelToView.convertChange(F,I)},{priority:'low'}),this._listener.listenTo(this.model,'changesDone',()=>{const V=this.model.selection;this.modelToView.convertSelection(V),this.view.render()},{priority:'low'}),this._listener.listenTo(this.model.markers,'add',(V,F)=>{this.modelToView.convertMarker('addMarker',F.name,F.getRange())}),this._listener.listenTo(this.model.markers,'remove',(V,F)=>{this.modelToView.convertMarker('removeMarker',F.name,F.getRange())}),this._listener.listenTo(this.view,'selectionChange',f.i(P.a)(this.model,this.mapper)),this.modelToView.on('insert:$text',f.i(T.j)(),{priority:'lowest'}),this.modelToView.on('remove',f.i(T.k)(),{priority:'low'}),this.modelToView.on('selection',f.i(E.c)(),{priority:'low'}),this.modelToView.on('selection',f.i(E.d)(),{priority:'low'}),this.modelToView.on('selection',f.i(E.e)(),{priority:'low'}),this.modelToView.on('selection',f.i(E.f)(),{priority:'low'})}createRoot(R,V='main'){const F=this.view.createRoot(R,V),I=this.model.getRoot(V);return this.mapper.bindElements(I,F),F}destroy(){this.view.destroy(),this._listener.stopListening()}}},function(r,u,f){'use strict';function w(O){const R=[];Array.from(O.getItems({direction:'backward'})).map((V)=>T.a.createOn(V)).filter((V)=>{const F=(V.start.isAfter(O.start)||V.start.isEqual(O.start))&&(V.end.isBefore(O.end)||V.end.isEqual(O.end));return F}).forEach((V)=>{R.push(V.start.parent),f.i(S.c)(V)}),R.forEach((V)=>{for(let F=V;F.parent&&F.isEmpty;){const I=T.a.createOn(F);F=F.parent,f.i(S.c)(I)}})}var C=f(35),T=f(3),P=f(1),E=f(24),S=f(18);u.a=function(O){const R=new C.a,V=O.getFirstRange();if(!V||V.isCollapsed)return R;const F=V.start.root,I=V.start.getCommonPath(V.end),N=F.getNodeByPath(I);let M=V.start.parent==V.end.parent?V:T.a.createFromParentsAndOffsets(N,V.start.path[I.length],N,V.end.path[I.length]+1);const D=M.end.offset-M.start.offset;for(const q of M.getItems({shallow:!0}))q.is('textProxy')?R.appendChildren(new E.a(q.data,q.getAttributes())):R.appendChildren(q.clone(!0));if(M!=V){const q=V._getTransformedByMove(M.start,P.a.createAt(R,0),D)[0],z=new T.a(P.a.createAt(R),q.start),U=new T.a(q.end,P.a.createAt(R,'end'));w(U),w(z)}return R}},function(r,u,f){'use strict';var w=f(1),C=f(168),T=f(5),P=f(3),E=f(40);u.a=function(O,R,V,F){F||(F=O.model.batch()),V.isCollapsed||O.deleteContent(V,F,{merge:!0});const I=new S(O,F,V.anchor);let N;N=R.is('documentFragment')?R.getChildren():[R],I.handleNodes(N,{isFirst:!0,isLast:!0});const M=I.getSelectionRange();M?V.setRanges([M]):E.a.warn('insertcontent-no-range: Cannot determine a proper selection range after insertion.')};class S{constructor(O,R,V){this.dataController=O,this.batch=R,this.position=V,this.canMergeWith=new Set([this.position.parent]),this.schema=O.model.schema}handleNodes(O,R){O=Array.from(O);for(let V=0;V<O.length;V++){const F=O[V];this._handleNode(F,{isFirst:0===V&&R.isFirst,isLast:V===O.length-1&&R.isLast})}}getSelectionRange(){return this.nodeToSelect?P.a.createOn(this.nodeToSelect):this.dataController.model.getNearestSelectionRange(this.position)}_handleNode(O,R){if(this._checkIsObject(O))return void this._handleObject(O,R);const V=this._checkAndSplitToAllowedPosition(O,R);return V?void(this._insert(O),this._mergeSiblingsOf(O,R)):void this._handleDisallowedNode(O,R)}_handleObject(O,R){this._checkAndSplitToAllowedPosition(O)?this._insert(O):this._tryAutoparagraphing(O,R)}_handleDisallowedNode(O,R){O.is('element')?this.handleNodes(O.getChildren(),R):this._tryAutoparagraphing(O,R)}_insert(O){if(!this._checkIsAllowed(O,[this.position.parent]))return void E.a.error('insertcontent-wrong-position: The node cannot be inserted on the given position.',{node:O,position:this.position});const R=C.a.createFromPosition(this.position);this.batch.insert(this.position,O),this.position=w.a.createFromPosition(R),R.detach(),this.nodeToSelect=this._checkIsObject(O)&&!this.schema.check({name:'$text',inside:[this.position.parent]})?O:null}_mergeSiblingsOf(O,R){if(O instanceof T.a){const V=R.isFirst&&O.previousSibling instanceof T.a&&this.canMergeWith.has(O.previousSibling),F=R.isLast&&O.nextSibling instanceof T.a&&this.canMergeWith.has(O.nextSibling),I=C.a.createBefore(O),N=C.a.createAfter(O);if(V){const M=C.a.createFromPosition(this.position);this.batch.merge(I),this.position=w.a.createFromPosition(M),M.detach()}if(F){let M;this.position.isEqual(N)||E.a.error('insertcontent-wrong-position-on-merge: The insertion position should equal the merge position'),this.position=w.a.createAt(N.nodeBefore,'end'),M=new C.a(this.position.root,this.position.path,'sticksToPrevious'),this.batch.merge(N),this.position=w.a.createFromPosition(M),M.detach()}I.detach(),N.detach()}}_tryAutoparagraphing(O,R){const V=new T.a('paragraph');this._getAllowedIn(V,this.position.parent)&&this._checkIsAllowed(O,[V])&&(V.appendChildren(O),this._handleNode(V,R))}_checkAndSplitToAllowedPosition(O){const R=this._getAllowedIn(O,this.position.parent);if(!R)return!1;for(;R!=this.position.parent;){if(this.schema.limits.has(this.position.parent.name))return!1;if(this.position.isAtStart){const V=this.position.parent;this.position=w.a.createBefore(V),V.isEmpty&&this.batch.remove(V)}else if(this.position.isAtEnd)this.position=w.a.createAfter(this.position.parent);else{const V=w.a.createAfter(this.position.parent);this.batch.split(this.position),this.position=V,this.canMergeWith.add(this.position.nodeAfter)}}return!0}_getAllowedIn(O,R){return this._checkIsAllowed(O,[R])?R:R.parent?this._getAllowedIn(O,R.parent):null}_checkIsAllowed(O,R){return this.schema.check({name:this._getNodeSchemaName(O),attributes:Array.from(O.getAttributeKeys()),inside:R})}_checkIsObject(O){return this.schema.objects.has(this._getNodeSchemaName(O))}_getNodeSchemaName(O){return O.is('text')?'$text':O.name}}},function(r,u,f){'use strict';function w(R,V){if('text'==V.type)return C(R.walker,R.unit);if(V.type==(R.isForward?'elementStart':'elementEnd')){if(R.schema.objects.has(V.item.name))return P.a.createAt(V.item,R.isForward?'after':'before');if(R.schema.check({name:'$text',inside:V.nextPosition}))return V.nextPosition}else{if(R.schema.limits.has(V.item.name))return void R.walker.skip(()=>!0);if(R.schema.check({name:'$text',inside:V.nextPosition}))return V.nextPosition}}function C(R,V){const F=R.position.textNode;if(F){const I=F.data;for(let N=R.position.offset-F.startOffset;f.i(O.a)(I,N)||'character'==V&&f.i(O.b)(I,N);)R.next(),N=R.position.offset-F.startOffset}return R.position}function T(R,V){const F=R.root,I=P.a.createAt(F,V?'end':0);return V?new S.a(R,I):new S.a(I,R)}var P=f(1),E=f(37),S=f(3),O=f(278);u.a=function(R,V,F={}){const I=R.model.schema,N='backward'!=F.direction,M=F.unit?F.unit:'character',D=V.focus,q=new E.a({boundaries:T(D,N),singleCharacters:!0,direction:N?'forward':'backward'}),z={walker:q,schema:I,isForward:N,unit:M};for(let U;U=q.next();){if(U.done)return;const $=w(z,U.value);if($)return void V.setFocus($)}}},function(r,u,f){'use strict';var h=f(61);u.a=class{constructor(){this._consumable=new Map,this._textProxyRegistry=new Map}add(C,T){C instanceof h.a&&(C=this._getSymbolForTextProxy(C)),this._consumable.has(C)||this._consumable.set(C,new Map),this._consumable.get(C).set(T,!0)}consume(C,T){return C instanceof h.a&&(C=this._getSymbolForTextProxy(C)),!!this.test(C,T)&&(this._consumable.get(C).set(T,!1),!0)}test(C,T){C instanceof h.a&&(C=this._getSymbolForTextProxy(C));const P=this._consumable.get(C);if(P===void 0)return null;const E=P.get(T);return void 0===E?null:E}revert(C,T){C instanceof h.a&&(C=this._getSymbolForTextProxy(C));const P=this.test(C,T);return!1===P?(this._consumable.get(C).set(T,!0),!0):!0!==P&&null}_getSymbolForTextProxy(C){let T=null;const P=this._textProxyRegistry.get(C.startOffset);if(P){const E=P.get(C.endOffset);E&&(T=E.get(C.parent))}return T||(T=this._addSymbolForTextProxy(C.startOffset,C.endOffset,C.parent)),T}_addSymbolForTextProxy(C,T,P){const E=Symbol();let S,O;return S=this._textProxyRegistry.get(C),S||(S=new Map,this._textProxyRegistry.set(C,S)),O=S.get(T),O||(O=new Map,S.set(T,O)),O.set(P,E),E}}},function(r,u,f){'use strict';var w=f(60);u.a=function(C,T){return(P,E)=>{const S=E.newSelection,O=new w.a,R=[];for(let V of S.getRanges())R.push(T.toModelRange(V));O.setRanges(R,S.isBackward),O.isEqual(C.selection)||C.enqueueChanges(()=>{C.selection.setTo(O)})}}},function(r,u,f){'use strict';var C=f(35),T=f(24),P=f(18);u.b=function(){return(E,S,O,R)=>{if(!S.output&&O.consume(S.input,{name:!0})){const V=R.convertChildren(S.input,O,S);S.output=new C.a(f.i(P.b)(V))}}},u.a=function(){return(E,S,O,R)=>{const V={name:'$text',inside:S.context};R.schema.check(V)&&O.consume(S.input)&&(S.output=new T.a(S.input.data))}}},function(r,u,f){'use strict';var h=f(12),w=f(0);class C{constructor(){this._consumables=new Map}add(P,E){let S;return P.is('text')||P.is('documentFragment')?void this._consumables.set(P,!0):void(this._consumables.has(P)?S=this._consumables.get(P):(S=new T,this._consumables.set(P,S)),S.add(E))}test(P,E){const S=this._consumables.get(P);return void 0===S?null:P.is('text')||P.is('documentFragment')?S:S.test(E)}consume(P,E){return!!this.test(P,E)&&(P.is('text')||P.is('documentFragment')?this._consumables.set(P,!1):this._consumables.get(P).consume(E),!0)}revert(P,E){const S=this._consumables.get(P);S!==void 0&&(P.is('text')||P.is('documentFragment')?this._consumables.set(P,!0):S.revert(E))}static consumablesFromElement(P){const E={name:!0,attribute:[],class:[],style:[]},S=P.getAttributeKeys();for(let V of S)'style'!=V&&'class'!=V&&E.attribute.push(V);const O=P.getClassNames();for(let V of O)E.class.push(V);const R=P.getStyleNames();for(let V of R)E.style.push(V);return E}static createFrom(P,E){if(E||(E=new C),P.is('text'))return E.add(P),E;P.is('element')&&E.add(P,C.consumablesFromElement(P)),P.is('documentFragment')&&E.add(P);for(let S of P.getChildren())E=C.createFrom(S,E);return E}}u.a=C;class T{constructor(){this._canConsumeName=null,this._consumables={attribute:new Map,style:new Map,class:new Map}}add(P){for(let E in P.name&&(this._canConsumeName=!0),this._consumables)E in P&&this._add(E,P[E])}test(P){if(P.name&&!this._canConsumeName)return this._canConsumeName;for(let E in this._consumables)if(E in P){const S=this._test(E,P[E]);if(!0!==S)return S}return!0}consume(P){for(let E in P.name&&(this._canConsumeName=!1),this._consumables)E in P&&this._consume(E,P[E])}revert(P){for(let E in P.name&&(this._canConsumeName=!0),this._consumables)E in P&&this._revert(E,P[E])}_add(P,E){const S=f.i(h.a)(E)?E:[E],O=this._consumables[P];for(let R of S){if('attribute'===P&&('class'===R||'style'===R))throw new w.a('viewconsumable-invalid-attribute: Classes and styles should be handled separately.');O.set(R,!0)}}_test(P,E){const S=f.i(h.a)(E)?E:[E],O=this._consumables[P];for(let R of S)if('attribute'===P&&('class'===R||'style'===R)){const V=this._test(R,[...this._consumables[R].keys()]);if(!0!==V)return V}else{const V=O.get(R);if(V===void 0)return null;if(!V)return!1}return!0}_consume(P,E){const S=f.i(h.a)(E)?E:[E],O=this._consumables[P];for(let R of S)'attribute'===P&&('class'===R||'style'===R)?this._consume(R,[...this._consumables[R].keys()]):O.set(R,!1)}_revert(P,E){const S=f.i(h.a)(E)?E:[E],O=this._consumables[P];for(let R of S)if('attribute'===P&&('class'===R||'style'===R))this._revert(R,[...this._consumables[R].keys()]);else{const V=O.get(R);!1===V&&O.set(R,!0)}}}},function(r,u,f){'use strict';function h(M){const D=new Set,q=new Map,z=new P.a({startPosition:T.a.createAt(M,0),ignoreElementEnd:!0});for(const U of z)'$marker'==U.item.name&&D.add(U.item);for(const U of D){const $=U.getAttribute('data-name'),K=T.a.createBefore(U);q.has($)?q.get($).end=T.a.createFromPosition(K):q.set($,new C.a(T.a.createFromPosition(K))),f.i(O.c)(C.a.createOn(U))}return q}var w=f(353),C=f(3),T=f(1),P=f(37),E=f(59),S=f(35),O=f(18),R=f(7),V=f(4),F=f(50),I=f(40);class N{constructor(M={}){this.conversionApi=f.i(F.a)({},M),this.conversionApi.convertItem=this._convertItem.bind(this),this.conversionApi.convertChildren=this._convertChildren.bind(this)}convert(M,D={}){this.fire('viewCleanup',M);const q=w.a.createFrom(M);let z=this._convertItem(M,q,D);return z?(z.is('documentFragment')||(z=new S.a([z])),z.markers=h(z),z):new S.a}_convertItem(M,D,q={}){const z=f.i(F.a)({},q,{input:M,output:null});return M.is('element')?this.fire('element:'+M.name,z,D,this.conversionApi):M.is('text')?this.fire('text',z,D,this.conversionApi):this.fire('documentFragment',z,D,this.conversionApi),z.output&&!(z.output instanceof E.a||z.output instanceof S.a)?(I.a.warn('view-conversion-dispatcher-incorrect-result: Dropped incorrect conversion result.',[M,z.output]),null):z.output}_convertChildren(M,D,q={}){const z=Array.from(M.getChildren()),U=z.map(($)=>this._convertItem($,D,q)).filter(($)=>$ instanceof E.a||$ instanceof S.a).reduce(($,K)=>{return $.concat(K.is('documentFragment')?Array.from(K.getChildren()):K)},[]);return new S.a(U)}}u.a=N,f.i(V.a)(N,R.a)},function(r,u){'use strict';u.a=class{getHtml(w){const C=document.implementation.createHTMLDocument(''),T=C.createElement('div');return T.appendChild(w),T.innerHTML}}},function(r,u,f){'use strict';var h=f(165),w=f(103),C=f(104),T=f(105),P=f(106),E=f(166),S=f(107),O=f(109),R=f(167),V=f(110)},function(r,u,f){'use strict';function h(G,Z){const J=G.clone(),Q=J.operations[0];return Q.oldRange=Q.oldRange.getTransformedByDelta(Z)[0],Q.newRange=Q.newRange.getTransformedByDelta(Z)[0],[J]}function w(G,Z){function J(){const ne=new P.a(G.position.getShiftedBy(te),G.position.getShiftedBy(ae)),oe=new O.a(ne,Z.key,ee,Z.value,0);Q.addOperation(oe)}const Q=new I.a,X=G.nodes;let ee=X.getNode(0).getAttribute(Z.key),te=0,ae=X.getNode(0).offsetSize;for(let ne=1;ne<X.length;ne++){const oe=X.getNode(ne),ie=oe.getAttribute(Z.key);ie!=ee&&(ee!=Z.value&&J(),ee=ie,te=ae),ae+=oe.offsetSize}return J(),Q}function C(){let G=new F.a;return G.addOperation(new S.a(0)),G}var T=f(108),P=f(3),E=f(1),S=f(76),O=f(75),R=f(42),V=f(113),F=f(20),I=f(165),N=f(103),M=f(358),D=f(104),q=f(105),z=f(107),U=f(167),$=f(110),K=f(109),W=f(166),H=f(106),Y=f(65);f.i(T.b)(I.a,U.a,(G,Z,J)=>{const Q=f.i(T.c)(G,Z,J);return G.range.containsPosition(Z.position)&&Q.push(w(Z,G)),Q}),f.i(T.b)(I.a,z.a,(G,Z,J)=>{const Q=new E.a(Z.position.root,Z.position.path.slice(0,-1)),X=f.i(T.c)(G,Z,J);for(let ee of G.operations)if(ee.range.containsPosition(Q)||ee.range.start.isEqual(Q)){const te=new I.a,ae=Q.getShiftedBy(1),ne=E.a.createFromPosition(ae);ne.path.push(0);const oe=Z._cloneOperation.nodes.getNode(0).getAttribute(ee.key);te.addOperation(new O.a(new P.a(ae,ne),ee.key,oe===void 0?null:oe,ee.newValue,0)),X.push(te);break}return X}),f.i(T.b)(N.a,D.a,(G,Z,J)=>{return G.position.isEqual(Z.position)?[Z.getReversed(),G.clone()]:f.i(T.c)(G,Z,J)}),f.i(T.b)(M.a,z.a,h),f.i(T.b)(M.a,D.a,h),f.i(T.b)(M.a,$.a,h),f.i(T.b)(M.a,K.a,h),f.i(T.b)(M.a,q.a,h),f.i(T.b)(M.a,W.a,h),f.i(T.b)(q.a,D.a,(G,Z,J)=>{const Q=G.sourcePosition.root==Z.position.root&&'same'===f.i(Y.a)(G.sourcePosition.getParentPath(),Z.position.getParentPath()),X=G.sourcePosition.offset<=Z.position.offset&&G.sourcePosition.offset+G.howMany>Z.position.offset;return Q&&X?[Z.getReversed(),G.clone()]:f.i(T.c)(G,Z,J)}),f.i(T.b)(D.a,N.a,(G,Z,J)=>{return G.position.isEqual(Z.position)?[C()]:f.i(T.c)(G,Z,J)}),f.i(T.b)(D.a,q.a,(G,Z,J)=>{const Q=G.position.root==Z.sourcePosition.root&&'same'===f.i(Y.a)(G.position.getParentPath(),Z.sourcePosition.getParentPath()),X=Z.sourcePosition.offset<=G.position.offset&&Z.sourcePosition.offset+Z.howMany>G.position.offset;return Q&&X?[C()]:f.i(T.c)(G,Z,J)}),f.i(T.b)(z.a,z.a,(G,Z,J)=>{const Q=G.position.getParentPath(),X=Z.position.getParentPath();if('same'==f.i(Y.a)(Q,X)){if(G.position.offset==Z.position.offset)return[C()];if(G.position.offset<Z.position.offset){const ee=G.clone();return ee._moveOperation.howMany=Z.position.offset-G.position.offset,G._cloneOperation instanceof V.a&&Z._cloneOperation instanceof V.a&&G._cloneOperation.sourcePosition.offset>Z._cloneOperation.sourcePosition.offset&&ee._cloneOperation.sourcePosition.offset--,[ee]}const ee=G.clone();return ee._cloneOperation.position.offset++,ee._moveOperation.sourcePosition.path[ee._moveOperation.sourcePosition.path.length-2]++,ee._moveOperation.targetPosition.path[ee._moveOperation.targetPosition.path.length-2]++,ee._moveOperation.sourcePosition.offset=G.position.offset-Z.position.offset,G._cloneOperation instanceof V.a&&Z._cloneOperation instanceof V.a&&G._cloneOperation.sourcePosition.offset>Z._cloneOperation.sourcePosition.offset&&ee._cloneOperation.sourcePosition.offset--,[ee]}return f.i(T.c)(G,Z,J)}),f.i(T.b)(z.a,K.a,(G,Z,J)=>{return'same'===f.i(Y.a)(Z.position.path,G.position.getParentPath())?[C()]:f.i(T.c)(G,Z,J)}),f.i(T.b)(z.a,$.a,(G,Z,J)=>{const Q='same'===f.i(Y.a)(G.position.getParentPath(),Z.range.start.getParentPath()),X=Z.range.start.offset<G.position.offset&&Z.range.end.offset>=G.position.offset;if(Q&&X)return[C()];if('same'===f.i(Y.a)(G.position.getParentPath(),Z.range.end.getShiftedBy(-1).path)){const ee=G.clone(),te=E.a.createFromPosition(Z.range.start);te.path.push(Z.howMany-1);const ae=te.getShiftedBy(1);ee._cloneOperation.position=ae;const ne=E.a.createFromPosition(te);ne.path.push(G.position.offset),ee._moveOperation.sourcePosition=ne;const oe=E.a.createFromPosition(ae);return oe.path.push(0),ee._moveOperation.targetPosition=oe,[ee]}return f.i(T.c)(G,Z,J)}),f.i(T.b)(z.a,I.a,(G,Z)=>{G=G.clone();const J=new E.a(G.position.root,G.position.path.slice(0,-1));if(G._cloneOperation instanceof R.a)for(let Q of Z.operations)if(Q.range.containsPosition(J)||Q.range.start.isEqual(J)){null===Q.newValue?G._cloneOperation.nodes.getNode(0).removeAttribute(Q.key):G._cloneOperation.nodes.getNode(0).setAttribute(Q.key,Q.newValue);break}return[G]}),f.i(T.b)(K.a,z.a,(G,Z,J)=>{if('same'===f.i(Y.a)(G.position.path,Z.position.getParentPath())){const Q=[Z.getReversed(),G.clone()];return Q[1].operations[1].targetPosition.path[0]++,Q}return f.i(T.c)(G,Z,J)}),f.i(T.b)(U.a,I.a,(G,Z)=>{const J=[G.clone()];return Z.range.containsPosition(G.position)&&J.push(w(G,Z)),J}),f.i(T.b)($.a,z.a,(G,Z,J)=>{const Q='same'===f.i(Y.a)(G.range.start.getParentPath(),Z.position.getParentPath()),X=G.range.start.offset<Z.position.offset&&G.range.end.offset>=Z.position.offset;if(Q&&X)return[Z.getReversed(),G.clone()];if('same'===f.i(Y.a)(Z.position.getParentPath(),G.range.end.getShiftedBy(-1).path)){const ee=G.clone();return ee._insertOperation.position.offset++,ee._moveOperation.howMany++,ee._moveOperation.targetPosition.path[ee._moveOperation.targetPosition.path.length-2]++,[ee]}return f.i(T.c)(G,Z,J)}),f.i(T.b)(W.a,z.a,(G,Z,J)=>{const Q=new E.a(Z.position.root,Z.position.path.slice(0,-1)),X=f.i(T.c)(G,Z,J);if(G.operations[0].position.isEqual(Q)){const ee=G.clone();ee.operations[0].position=G.operations[0].position.getShiftedBy(1),X.push(ee)}return X}),f.i(T.b)(z.a,W.a,(G,Z)=>{G=G.clone();const J=new E.a(G.position.root,G.position.path.slice(0,-1));return G._cloneOperation instanceof R.a&&Z.operations[0].position.isEqual(J)&&(G._cloneOperation.nodes.getNode(0).name=Z.operations[0].newName),[G]}),f.i(T.b)(H.a,z.a,(G,Z,J)=>{const Q=f.i(T.c)(G,Z,J),X=Z._cloneOperation.position;for(let ee of Q)for(let te of ee.operations){const ae=te.sourcePosition.getShiftedBy(te.howMany);ae.isEqual(X)&&(te.howMany+=1)}return Q}),f.i(T.b)(z.a,H.a,(G,Z,J)=>{Z=Z.clone();const Q=G._cloneOperation.position;for(let X of Z.operations){const ee=X.sourcePosition.getShiftedBy(X.howMany);ee.isEqual(Q)&&(X.howMany+=1)}return f.i(T.c)(G,Z,J)})},function(r,u,f){'use strict';function h(O,R,V,F){const I=O.document,N=new S,M=new P.a(R,V,F,I.markers,I.version);O.addDelta(N),N.addOperation(M),I.applyOperation(M)}var w=f(20),C=f(17),T=f(16),P=f(112),E=f(0);class S extends w.a{get type(){return'marker'}get _reverseDeltaClass(){return S}static get className(){return'engine.model.delta.MarkerDelta'}}u.a=S,f.i(T.b)('setMarker',function(O,R){const V='string'==typeof O?O:O.name,F=this.document.markers.get(V);if(!R&&!F)throw new E.a('batch-setMarker-no-range: Range parameter is required when adding a new marker.');const I=F?F.getRange():null;return R?h(this,V,I,R):h(this,V,null,I),this}),f.i(T.b)('removeMarker',function(O){const R='string'==typeof O?O:O.name;if(!this.document.markers.has(R))throw new E.a('batch-removeMarker-no-marker: Trying to remove marker that does not exist.');const V=this.document.markers.get(R).getRange();return h(this,R,V,null),this}),C.a.register(S)},function(r,u,f){'use strict';function h(W){const H=W.textNode;if(H){const Y=H.data,G=W.offset-H.startOffset;return!f.i(U.a)(Y,G)&&!f.i(U.b)(Y,G)}return!0}function*w(W,H){for(let Y=!1;!Y;){if(Y=!0,W){const G=W.next();G.done||(Y=!1,yield{walker:W,value:G.value})}if(H){const G=H.next();G.done||(Y=!1,yield{walker:H,value:G.value})}}}var C=f(356),T=f(357),P=f(3),E=f(1),S=f(365),O=f(16),R=f(360),V=f(361),F=f(366),I=f(37),N=f(362),M=f(96),D=f(7),q=f(0),z=f(4),U=f(278);const $='$graveyard';class K{constructor(){this.version=0,this.schema=new F.a,this.history=new R.a(this),this.markers=new N.a,this.selection=new V.a(this),this._pendingChanges=[],this.roots=new Map,this.selection.on('change:range',()=>{for(let W of this.selection.getRanges())if(!this._validateSelectionRange(W))throw new q.a('document-selection-wrong-position: Range from document selection starts or ends at incorrect position.',{range:W})}),this.createRoot('$root',$)}get graveyard(){return this.getRoot($)}applyOperation(W){if(W.baseVersion!==this.version)throw new q.a('model-document-applyOperation-wrong-version: Only operations with matching versions can be applied.',{operation:W});let H=W._execute();this.version++,this.history.addDelta(W.delta),H&&this.fire('change',W.type,H,W.delta.batch,W.delta.type)}batch(W){return new O.a(this,W)}createRoot(W='$root',H='main'){if(this.roots.has(H))throw new q.a('model-document-createRoot-name-exists: Root with specified name already exists.',{name:H});const Y=new S.a(this,W,H);return this.roots.set(H,Y),Y}destroy(){this.selection.destroy(),this.stopListening()}enqueueChanges(W){if(this._pendingChanges.push(W),1==this._pendingChanges.length){for(;this._pendingChanges.length;)this._pendingChanges[0](),this._pendingChanges.shift();this.fire('changesDone')}}getRoot(W='main'){if(!this.roots.has(W))throw new q.a('model-document-getRoot-root-not-exist: Root with specified name does not exist.',{name:W});return this.roots.get(W)}hasRoot(W){return this.roots.has(W)}getRootNames(){return Array.from(this.roots.keys()).filter((W)=>W!=$)}getNearestSelectionRange(W,H='both'){if(this.schema.check({name:'$text',inside:W}))return new P.a(W);let Y,G;('both'==H||'backward'==H)&&(Y=new I.a({startPosition:W,direction:'backward'})),('both'==H||'forward'==H)&&(G=new I.a({startPosition:W}));for(let Z of w(Y,G)){const J=Z.walker==Y?'elementEnd':'elementStart',Q=Z.value;if(Q.type==J&&this.schema.objects.has(Q.item.name))return P.a.createOn(Q.item);if(this.schema.check({name:'$text',inside:Q.nextPosition}))return new P.a(Q.nextPosition)}return null}toJSON(){const W=f.i(M.a)(this);return W.selection='[engine.model.LiveSelection]',W}_getDefaultRoot(){for(let W of this.roots.values())if(W!==this.graveyard)return W;return this.graveyard}_getDefaultRange(){const W=this._getDefaultRoot(),H=new E.a(W,[0]),Y=this.getNearestSelectionRange(H);return Y||new P.a(H)}_validateSelectionRange(W){return h(W.start)&&h(W.end)}}u.a=K,f.i(z.a)(K,D.a)},function(r,u,f){'use strict';var h=f(0);u.a=class{constructor(){this._deltas=[],this._historyPoints=new Map}addDelta(C){if(0<C.operations.length&&!this._historyPoints.has(C.baseVersion)){const T=this._deltas.length;this._deltas[T]=C,this._historyPoints.set(C.baseVersion,T)}}*getDeltas(C=0,T=_NumberPOSITIVE_INFINITY){if(0!==this._deltas.length){let P=this._getIndex(C);if(-1!=P)for(;P<this._deltas.length;){const E=this._deltas[P++];if(E.baseVersion>=T)break;yield E}}}getDelta(C){let T=this._historyPoints.get(C);if(T===void 0)return null;const P=[];for(T;T<this._deltas.length;T++){const E=this._deltas[T];if(E.baseVersion!=C)break;P.push(E)}return 0===P.length?null:P}removeDelta(C){this.updateDelta(C,[])}updateDelta(C,T){const P=this.getDelta(C);if(null!==P){for(let S of T)S.baseVersion=C;this._deltas.splice(this._getIndex(C),P.length,...T);const E=T.length-P.length;for(let S of this._historyPoints.keys())S>C&&this._historyPoints.set(S,this._historyPoints.get(S)+E)}}_getIndex(C){let T=this._historyPoints.get(C);if(T===void 0){const P=this._deltas[this._deltas.length-1],E=P.baseVersion+P.operations.length;if(0>C||C>=E)return-1;throw new h.a('model-history-wrong-version: Given base version points to the middle of a delta.')}return T}}},function(r,u,f){'use strict';function h(M){return M instanceof E.a||M instanceof P.a?M.getAttributes():null}var w=f(1),C=f(3),T=f(111),P=f(24),E=f(61),S=f(152),O=f(0),R=f(40),V=f(60);const F='selection:',I=new Set(['addAttribute','removeAttribute','changeAttribute','addRootAttribute','removeRootAttribute','changeRootAttribute']);class N extends V.a{constructor(M){super(),this._document=M,this._attributePriority=new Map,this.listenTo(this._document,'change',(D,q)=>{I.has(q)&&this._updateAttributes(!1)})}get isCollapsed(){const M=this._ranges.length;return!(0!==M)||super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().start}get rangeCount(){return this._ranges.length?this._ranges.length:1}destroy(){for(let M=0;M<this._ranges.length;M++)this._ranges[M].detach();this.stopListening()}*getRanges(){this._ranges.length?yield*super.getRanges():yield this._document._getDefaultRange()}getFirstRange(){return super.getFirstRange()||this._document._getDefaultRange()}getLastRange(){return super.getLastRange()||this._document._getDefaultRange()}addRange(M,D=!1){super.addRange(M,D),this.refreshAttributes()}removeAllRanges(){super.removeAllRanges(),this.refreshAttributes()}setRanges(M,D=!1){super.setRanges(M,D),this.refreshAttributes()}setAttribute(M,D){if(this.isCollapsed&&0===this.anchor.parent.childCount&&this._storeAttribute(M,D),this._setAttribute(M,D)){this.fire('change:attribute',{attributeKeys:[M],directChange:!0})}}removeAttribute(M){if(this.isCollapsed&&0===this.anchor.parent.childCount&&this._removeStoredAttribute(M),this._removeAttribute(M)){this.fire('change:attribute',{attributeKeys:[M],directChange:!0})}}setAttributesTo(M){M=f.i(S.a)(M),this.isCollapsed&&0===this.anchor.parent.childCount&&this._setStoredAttributesTo(M);const D=this._setAttributesTo(M);if(0<D.size){const q=Array.from(D);this.fire('change:attribute',{attributeKeys:q,directChange:!0})}}clearAttributes(){this.setAttributesTo([])}refreshAttributes(){this._updateAttributes(!0)}static createFromSelection(M){const D=new this(M._document);return D.setTo(M),D}_popRange(){this._ranges.pop().detach()}_pushRange(M){const D=this._prepareRange(M);D&&this._ranges.push(D)}_prepareRange(M){if(!(M instanceof C.a))throw new O.a('model-selection-added-not-range: Trying to add an object that is not an instance of Range.');if(M.root==this._document.graveyard)return void R.a.warn('model-selection-range-in-graveyard: Trying to add a Range that is in the graveyard root. Range rejected.');this._checkRange(M);const D=T.a.createFromRange(M);return this.listenTo(D,'change',(q,z)=>{D.root==this._document.graveyard&&this._fixGraveyardSelection(D,z),this.fire('change:range',{directChange:!1})}),D}_updateAttributes(M){const D=f.i(S.a)(this._getSurroundingAttributes()),q=f.i(S.a)(this.getAttributes());if(M)this._attributePriority=new Map,this._attrs=new Map;else for(let[U,$]of this._attributePriority)'low'==$&&(this._attrs.delete(U),this._attributePriority.delete(U));this._setAttributesTo(D,!1);const z=[];for(let[U,$]of this.getAttributes())q.has(U)&&q.get(U)===$||z.push(U);for(let[U]of q)this.hasAttribute(U)||z.push(U);0<z.length&&this.fire('change:attribute',{attributeKeys:z,directChange:!1})}static _getStoreAttributeKey(M){return F+M}_setAttribute(M,D,q=!0){const z=q?'normal':'low';if('low'==z&&'normal'==this._attributePriority.get(M))return!1;const U=super.getAttribute(M);return U!==D&&(this._attrs.set(M,D),this._attributePriority.set(M,z),!0)}_removeAttribute(M,D=!0){const q=D?'normal':'low';return'low'==q&&'normal'==this._attributePriority.get(M)?!1:!!super.hasAttribute(M)&&(this._attrs.delete(M),this._attributePriority.set(M,q),!0)}_setAttributesTo(M,D=!0){const q=new Set;for(let[z,U]of this.getAttributes())M.get(z)!==U&&this._removeAttribute(z,D)&&q.add(z);for(let[z,U]of M){const $=this._setAttribute(z,U,D);$&&q.add(z)}return q}*_getStoredAttributes(){const M=this.getFirstPosition().parent;if(this.isCollapsed&&0===M.childCount)for(let D of M.getAttributeKeys())if(0===D.indexOf(F)){const q=D.substr(F.length);yield[q,M.getAttribute(D)]}}_removeStoredAttribute(M){const D=N._getStoreAttributeKey(M);this._document.batch().removeAttribute(this.anchor.parent,D)}_storeAttribute(M,D){const q=N._getStoreAttributeKey(M);this._document.batch().setAttribute(this.anchor.parent,q,D)}_setStoredAttributesTo(M){const D=this.anchor.parent,q=this._document.batch();for(let[z]of this._getStoredAttributes()){const U=N._getStoreAttributeKey(z);q.removeAttribute(D,U)}for(let[z,U]of M){const $=N._getStoreAttributeKey(z);q.setAttribute(D,$,U)}}_getSurroundingAttributes(){const M=this.getFirstPosition();let D=null;if(!this.isCollapsed){const q=this.getFirstRange();for(let z of q)'text'==z.type&&null==D&&(D=z.item.getAttributes())}else{const q=M.textNode?M.textNode:M.nodeBefore,z=M.textNode?M.textNode:M.nodeAfter;if(D=h(q),D||(D=h(z)),!D)for(let U=q;U&&!D;)U=U.previousSibling,D=h(U);if(!D)for(let U=z;U&&!D;)U=U.nextSibling,D=h(U);D||(D=this._getStoredAttributes())}return D}_fixGraveyardSelection(M,D){const q=M.start.path,z=D.start.path.length-(q.length-2),U=D.start.path.slice(0,z);U[U.length-1]-=q[1];const $=new w.a(D.root,U);let K=this._document.getNearestSelectionRange($);K||(K=new C.a(new w.a($.root,[0])));const W=this._prepareRange(K),H=this._ranges.indexOf(M);M.detach(),this._ranges.splice(H,1,W)}}u.a=N},function(r,u,f){'use strict';var h=f(111),w=f(1),C=f(3),T=f(7),P=f(0),E=f(4);class S{constructor(){this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(R){return this._markers.has(R)}get(R){return this._markers.get(R)||null}set(R,V){const F=R instanceof O?R.name:R,I=this._markers.get(F);if(I){const D=I.getRange();if(D.isEqual(V))return I;this.remove(F)}const N=h.a.createFromRange(V),M=new O(F,N);return this._markers.set(F,M),this.fire('add:'+F,M),M}remove(R){const V=R instanceof O?R.name:R,F=this._markers.get(V);return!!F&&(this._markers.delete(V),this.fire('remove:'+V,F),this._destroyMarker(F),!0)}*getMarkersAtPosition(R){for(let V of this)V.getRange().containsPosition(R)&&(yield V)}destroy(){for(let R of this._markers.values())this._destroyMarker(R);this._markers=null,this.stopListening()}*getMarkersGroup(R){for(let V of this._markers.values())V.name.startsWith(R+':')&&(yield V)}_destroyMarker(R){R.stopListening(),R._liveRange.detach(),R._liveRange=null}}u.a=S,f.i(E.a)(S,T.a);class O{constructor(R,V){this.name=R,this._liveRange=V,this._liveRange.delegate('change').to(this)}getStart(){if(!this._liveRange)throw new P.a('marker-destroyed: Operating on destroyed marker instance.');return w.a.createFromPosition(this._liveRange.start)}getEnd(){if(!this._liveRange)throw new P.a('marker-destroyed: Operating on destroyed marker instance.');return w.a.createFromPosition(this._liveRange.end)}getRange(){if(!this._liveRange)throw new P.a('marker-destroyed: Operating on destroyed marker instance.');return C.a.createFromRange(this._liveRange)}}f.i(E.a)(O,T.a)},function(r,u,f){'use strict';var h=f(75),w=f(42),C=f(112),T=f(30),P=f(76),E=f(36),S=f(113),O=f(43),R=f(114),V=f(115);const F={};F[h.a.className]=h.a,F[w.a.className]=w.a,F[C.a.className]=C.a,F[T.a.className]=T.a,F[P.a.className]=P.a,F[E.a.className]=E.a,F[S.a.className]=S.a,F[O.a.className]=O.a,F[R.a.className]=R.a,F[V.a.className]=V.a;u.a=class{static fromJSON(N,M){return F[N.__className].fromJSON(N,M)}}},function(r,u,f){'use strict';function w(z){return[z.clone()]}function C(z,U){for(let $=0;$<U.length;$++)U[$].baseVersion=z+$+1;return U}function T(z,U){return null===z.targetPosition._getTransformedByDeletion(U.sourcePosition,U.howMany)}function P(z){return 0===z.length?null:1==z.length?z[0]:(z[0].end=z[z.length-1].end,z[0])}var E=f(42),S=f(75),O=f(115),R=f(114),V=f(112),F=f(30),I=f(43),N=f(76),M=f(3),D=f(65);u.a=function(z,U,$){let K,W;z instanceof E.a?K=q.InsertOperation:z instanceof S.a?K=q.AttributeOperation:z instanceof O.a?K=q.RootAttributeOperation:z instanceof R.a?K=q.RenameOperation:z instanceof V.a?K=q.MarkerOperation:z instanceof F.a?K=q.MoveOperation:W=w,K&&(U instanceof E.a?W=K.InsertOperation:U instanceof S.a?W=K.AttributeOperation:U instanceof O.a?W=K.RootAttributeOperation:U instanceof R.a?W=K.RenameOperation:U instanceof V.a?W=K.MarkerOperation:U instanceof F.a?W=K.MoveOperation:W=w);let H=W(z,U,$);return C(z.baseVersion,H)};const q={InsertOperation:{InsertOperation(z,U,$){const K=z.clone();return K.position=K.position._getTransformedByInsertion(U.position,U.nodes.maxOffset,!$),[K]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:w,MarkerOperation:w,MoveOperation(z,U,$){const K=z.clone();return K.position=z.position._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany,!$,U.isSticky),[K]}},AttributeOperation:{InsertOperation(z,U){const $=z.range._getTransformedByInsertion(U.position,U.nodes.maxOffset,!0,!1);return $.reverse().map((K)=>{return new S.a(K,z.key,z.oldValue,z.newValue,z.baseVersion)})},AttributeOperation(z,U,$){if(z.key===U.key){let K=z.range.getDifference(U.range).map((H)=>{return new S.a(H,z.key,z.oldValue,z.newValue,z.baseVersion)});const W=z.range.getIntersection(U.range);return W&&($?K.push(new S.a(W,U.key,U.newValue,z.newValue,z.baseVersion)):0===K.length&&K.push(new N.a(0))),K}return[z.clone()]},RootAttributeOperation:w,RenameOperation:w,MarkerOperation:w,MoveOperation(z,U){const $=M.a.createFromPositionAndShift(U.sourcePosition,U.howMany);let K=[];U instanceof I.a&&U._needsHolderElement&&z.range.root==U.targetPosition.root&&z.range.start.path[0]>=U._holderElementOffset&&(z=z.clone(),z.range.start.path[0]++,z.range.end.path[0]++);const W=P(z.range.getDifference($)),H=z.range.getIntersection($);return null!==W&&(W.start=W.start._getTransformedByDeletion(U.sourcePosition,U.howMany),W.end=W.end._getTransformedByDeletion(U.sourcePosition,U.howMany),K=W._getTransformedByInsertion(U.getMovedRangeStart(),U.howMany,!0,!1).reverse()),null!==H&&(H.start=H.start._getCombined(U.sourcePosition,U.getMovedRangeStart()),H.end=H.end._getCombined(U.sourcePosition,U.getMovedRangeStart()),K.push(H)),K.map((Y)=>{return new S.a(Y,z.key,z.oldValue,z.newValue,z.baseVersion)})}},RootAttributeOperation:{InsertOperation:w,AttributeOperation:w,RootAttributeOperation(z,U,$){return z.root!==U.root||z.key!==U.key||(z.newValue===U.newValue||$)&&z.newValue!==U.newValue?[z.clone()]:[new N.a(z.baseVersion)]},RenameOperation:w,MarkerOperation:w,MoveOperation:w},RenameOperation:{InsertOperation(z,U){const $=z.clone();return $.position=$.position._getTransformedByInsertion(U.position,U.nodes.maxOffset,!0),[$]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation(z,U,$){const K=z.clone();if(z.position.isEqual(U.position))if($)K.oldName=U.newName;else return[new N.a(z.baseVersion)];return[K]},MarkerOperation:w,MoveOperation(z,U){const $=z.clone(),K=$.position.isEqual(U.sourcePosition);return $.position=$.position._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany,!0,K),[$]}},MarkerOperation:{InsertOperation(z,U){const $=z.clone();return $.oldRange&&($.oldRange=$.oldRange._getTransformedByInsertion(U.position,U.nodes.maxOffset,!1,!1)[0]),$.newRange&&($.newRange=$.newRange._getTransformedByInsertion(U.position,U.nodes.maxOffset,!1,!1)[0]),[$]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:w,MarkerOperation(z,U,$){const K=z.clone();if(z.name==U.name)if($)K.oldRange=U.newRange;else return[new N.a(z.baseVersion)];return[K]},MoveOperation(z,U){const $=z.clone();if($.oldRange){const K=$.oldRange._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany);$.oldRange=M.a.createFromRanges(K)}if($.newRange){const K=$.newRange._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany);$.newRange=M.a.createFromRanges(K)}return[$]}},MoveOperation:{InsertOperation(z,U,$){let K=M.a.createFromPositionAndShift(z.sourcePosition,z.howMany);K=K._getTransformedByInsertion(U.position,U.nodes.maxOffset,!1,z.isSticky)[0];let W=new z.constructor(K.start,K.end.offset-K.start.offset,z instanceof I.a?z.baseVersion:z.targetPosition._getTransformedByInsertion(U.position,U.nodes.maxOffset,!$),z instanceof I.a?void 0:z.baseVersion);return W.isSticky=z.isSticky,z instanceof I.a&&(W._needsHolderElement=z._needsHolderElement,W._holderElementOffset=z._holderElementOffset),[W]},AttributeOperation:w,RootAttributeOperation:w,RenameOperation:w,MarkerOperation:w,MoveOperation(z,U,$){if(T(z,U)&&T(U,z))return[U.getReversed()];if(z instanceof I.a&&U instanceof I.a){const ee=z.targetPosition.path[0],te=U.targetPosition.path[0];(ee>te||ee==te&&$)&&(z=z.clone(),z.targetPosition.path[0]++)}z instanceof I.a&&!(U instanceof I.a)?$=!0:!(z instanceof I.a)&&U instanceof I.a&&($=!1);const K=M.a.createFromPositionAndShift(z.sourcePosition,z.howMany),W=M.a.createFromPositionAndShift(U.sourcePosition,U.howMany);let H=[],Y=P(K.getDifference(W));Y&&(Y.start=Y.start._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany,!z.isSticky,!1),Y.end=Y.end._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany,z.isSticky,!1),H.push(Y));const G=K.getIntersection(W);let Z=f.i(D.a)(z.sourcePosition.getParentPath(),U.sourcePosition.getParentPath()),J=K.containsPosition(U.targetPosition)||K.start.isEqual(U.targetPosition)&&z.isSticky||K.end.isEqual(U.targetPosition)&&z.isSticky,Q=W.containsRange(K)&&(W.containsPosition(z.targetPosition)||W.start.isEqual(z.targetPosition)||W.end.isEqual(z.targetPosition));if(null!==G&&('extension'===Z||'same'===Z&&$||Q)&&!J&&(G.start=G.start._getCombined(U.sourcePosition,U.getMovedRangeStart()),G.end=G.end._getCombined(U.sourcePosition,U.getMovedRangeStart()),Y&&K.start.isBefore(W.start)?H.push(G):H.unshift(G)),0===H.length)return z instanceof I.a?(z=z.clone(),z.howMany=0,z.sourcePosition=U.targetPosition,[z]):[new N.a(z.baseVersion)];let X=z.targetPosition._getTransformedByMove(U.sourcePosition,U.targetPosition,U.howMany,!$,U.isSticky||Q);return H.reverse().map((ee,te)=>{let ae=new z.constructor(ee.start,ee.end.offset-ee.start.offset,z instanceof I.a?z.baseVersion:X,z instanceof I.a?void 0:z.baseVersion);return ae.isSticky=z.isSticky,z instanceof I.a&&(ae._needsHolderElement=z._needsHolderElement&&0===te,ae._holderElementOffset=z._holderElementOffset),ae})}}}},function(r,u,f){'use strict';var h=f(5);class w extends h.a{constructor(C,T,P='main'){super(T),this._doc=C,this.rootName=P}get document(){return this._doc}is(C,T){return T?'rootElement'==C&&T==this.name||super.is(C,T):'rootElement'==C||super.is(C)}toJSON(){return this.rootName}}u.a=w},function(r,u,f){'use strict';function h(V,F,I){for(let N=I.length-1,M=F.length-1;0<=N&&0<=M;){const D=F[M];if(!V.hasItem(D))return!1;const q=V._extensionChains.get(D);if(q.includes(I[N]))N--,M--;else return!1}return!0}var w=f(1),C=f(5),T=f(96),P=f(12),E=f(149),S=f(0);class O{constructor(){this.objects=new Set,this.limits=new Set,this._items=new Map,this._extensionChains=new Map,this.registerItem('$root'),this.registerItem('$block'),this.registerItem('$inline'),this.registerItem('$text','$inline'),this.allow({name:'$block',inside:'$root'}),this.allow({name:'$inline',inside:'$block'}),this.registerItem('$clipboardHolder','$root'),this.allow({name:'$inline',inside:'$clipboardHolder'})}allow(V){this._getItem(V.name).allow(O._normalizeQueryPath(V.inside),V.attributes)}disallow(V){this._getItem(V.name).disallow(O._normalizeQueryPath(V.inside),V.attributes)}requireAttributes(V,F){this._getItem(V).requireAttributes(F)}check(V){if(!this.hasItem(V.name))return!1;f.i(P.a)(V.attributes)?0===V.attributes.length&&V.attributes.push(void 0):V.attributes=[V.attributes];const F=O._normalizeQueryPath(V.inside),I=this._extensionChains.get(V.name).map((N)=>{return this._getItem(N)});if(!this._getItem(V.name)._checkRequiredAttributes(V.attributes))return!1;for(let N of V.attributes)for(let M of I)if(M._hasMatchingPath('disallow',F,N))return!1;for(let N of V.attributes){let M=!1;for(let D of I)if(D._hasMatchingPath('allow',F,N)){M=!0;break}if(!M)return!1}return!0}hasItem(V){return this._items.has(V)}registerItem(V,F){if(this.hasItem(V))throw new S.a('model-schema-item-exists: Item with specified name already exists in schema.');if(!!F&&!this.hasItem(F))throw new S.a('model-schema-no-item: Item with specified name does not exist in schema.');this._items.set(V,new R(this));const I=this.hasItem(F)?this._extensionChains.get(F).concat(V):[V];this._extensionChains.set(V,I)}itemExtends(V,F){if(!this.hasItem(V)||!this.hasItem(F))throw new S.a('model-schema-no-item: Item with specified name does not exist in schema.');const I=this._extensionChains.get(V);return I.some((N)=>N==F)}_getItem(V){if(!this.hasItem(V))throw new S.a('model-schema-no-item: Item with specified name does not exist in schema.');return this._items.get(V)}static _normalizeQueryPath(V){let F=[];if(f.i(P.a)(V))for(let I of V)I instanceof C.a?F.push(I.name):f.i(E.a)(I)&&F.push(I);else if(V instanceof w.a){for(let I=V.parent;null!==I;)F.push(I.name),I=I.parent;F.reverse()}else f.i(E.a)(V)&&(F=V.split(' '));return F}}u.a=O;class R{constructor(V){this._schema=V,this._allowed=[],this._disallowed=[],this._requiredAttributes=[]}allow(V,F){this._addPath('_allowed',V,F)}disallow(V,F){this._addPath('_disallowed',V,F)}requireAttributes(V){this._requiredAttributes.push(V)}_addPath(V,F,I){F=F.slice(),f.i(P.a)(I)||(I=[I]);for(let N of I)this[V].push({path:F,attribute:N})}_getPaths(V,F){const I='allow'===V?this._allowed:this._disallowed,N=[];for(let M of I)M.attribute===F&&N.push(M.path);return N}_checkRequiredAttributes(V){let F=!0;for(let I of this._requiredAttributes){F=!0;for(let N of I)if(-1==V.indexOf(N)){F=!1;break}if(F)break}return F}_hasMatchingPath(V,F,I){const N=this._getPaths(V,I);for(const M of N)if(h(this._schema,F,M))return!0;return!1}toJSON(){const V=f.i(T.a)(this);return V._schema='[model.Schema]',V}}},function(r,u,f){'use strict';var h=f(64),w=f(375),C=f(169),T=f(173),P=f(62),E=f(40),S=f(172),O=f(373),R=f(370),V=f(371),F=f(369),I=f(4),N=f(33);class M{constructor(){this.domRoots=new Map,this.selection=new h.a,this.domConverter=new C.a,this.roots=new Map,this.set('isFocused',!1),this.renderer=new w.a(this.domConverter,this.selection),this.renderer.bind('isFocused').to(this,'isFocused'),this._observers=new Map,this.addObserver(S.a),this.addObserver(O.a),this.addObserver(R.a),this.addObserver(V.a),this.addObserver(F.a),f.i(P.h)(this),this.on('render',()=>{this.disableObservers(),this.renderer.render(),this.enableObservers()})}addObserver(D){let q=this._observers.get(D);if(q)return q;q=new D(this),this._observers.set(D,q);for(let[z,U]of this.domRoots)q.observe(U,z);return q.enable(),q}getObserver(D){return this._observers.get(D)}createRoot(D,q='main'){const z='string'==typeof D?D:D.tagName,U=new T.a(z.toLowerCase(),q);return U.document=this,this.roots.set(q,U),U.on('change:children',($,K)=>this.renderer.markToSync('children',K)),U.on('change:attributes',($,K)=>this.renderer.markToSync('attributes',K)),U.on('change:text',($,K)=>this.renderer.markToSync('text',K)),this.domConverter.isElement(D)&&this.attachDomRoot(D,q),U}attachDomRoot(D,q='main'){const z=this.getRoot(q);this.domRoots.set(q,D),this.domConverter.bindElements(D,z),this.renderer.markToSync('children',z),this.renderer.domDocuments.add(D.ownerDocument);for(let U of this._observers.values())U.observe(D,q)}getRoot(D='main'){return this.roots.get(D)}getDomRoot(D='main'){return this.domRoots.get(D)}render(){this.fire('render')}focus(){if(!this.isFocused){const D=this.selection.editableElement;D?(this.domConverter.focus(D),this.render()):E.a.warn('view-focus-no-selection: There is no selection in any editable to focus.')}}disableObservers(){for(let D of this._observers.values())D.disable()}enableObservers(){for(let D of this._observers.values())D.enable()}destroy(){for(let D of this._observers.values())D.destroy()}}u.a=M,f.i(I.a)(M,N.a)},function(r,u,f){'use strict';var h=f(63);class w extends h.a{constructor(C){super(C),this.domEventType='click'}onDomEvent(C){this.fire(C.type,C)}}u.a=w},function(r,u,f){'use strict';function h(S){return S==T.d.arrowright||S==T.d.arrowleft||S==T.d.arrowup||S==T.d.arrowdown}var w=f(53),C=f(64),T=f(22),P=f(143);class E extends w.a{constructor(S){super(S),this._fireSelectionChangeDoneDebounced=f.i(P.a)((O)=>this.document.fire('selectionChangeDone',O),200)}observe(){const S=this.document;S.on('keydown',(O,R)=>{const V=S.selection;V.isFake&&h(R.keyCode)&&this.isEnabled&&(R.preventDefault(),this._handleSelectionMove(R.keyCode))},{priority:'lowest'})}destroy(){super.destroy(),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionMove(S){const O=this.document.selection,R=C.a.createFromSelection(O);R.setFake(!1),(S==T.d.arrowleft||S==T.d.arrowup)&&R.collapseToStart(),(S==T.d.arrowright||S==T.d.arrowdown)&&R.collapseToEnd();const V={oldSelection:O,newSelection:R,domSelection:null};this.document.fire('selectionChange',V),this._fireSelectionChangeDoneDebounced(V)}}u.a=E},function(r,u,f){'use strict';var h=f(63);class w extends h.a{constructor(C){super(C),this.domEventType=['focus','blur'],this.useCapture=!0,C.on('focus',()=>{C.isFocused=!0,this._renderTimeoutId=setTimeout(()=>C.render(),0)}),C.on('blur',(T,P)=>{const E=C.selection.editableElement;(null===E||E===P.target)&&(C.isFocused=!1,C.render())})}onDomEvent(C){this.fire(C.type,C)}destroy(){this._renderTimeoutId&&clearTimeout(this._renderTimeoutId),super.destroy()}}u.a=w},function(r,u,f){'use strict';var h=f(63),w=f(22);class C extends h.a{constructor(T){super(T),this.domEventType='keydown'}onDomEvent(T){this.fire('keydown',T,{keyCode:T.keyCode,altKey:T.altKey,ctrlKey:T.ctrlKey||T.metaKey,shiftKey:T.shiftKey,get keystroke(){return f.i(w.c)(this)}})}}u.a=C},function(r,u,f){'use strict';var h=f(63);class w extends h.a{constructor(C){super(C),this.domEventType='mousedown'}onDomEvent(C){this.fire(C.type,C)}}u.a=w},function(r,u,f){'use strict';var h=f(53),w=f(172),C=f(40),T=f(143);class P extends h.a{constructor(E){super(E),this.mutationObserver=E.getObserver(w.a),this.document=E,this.selection=E.selection,this.domConverter=E.domConverter,this._documents=new WeakSet,this._fireSelectionChangeDoneDebounced=f.i(T.a)((S)=>this.document.fire('selectionChangeDone',S),200),this._clearInfiniteLoopInterval=setInterval(()=>this._clearInfiniteLoop(),1e3),this._loopbackCounter=0}observe(E){const S=E.ownerDocument;this._documents.has(S)||(this.listenTo(S,'selectionchange',()=>{this._handleSelectionChange(S)}),this._documents.add(S))}destroy(){super.destroy(),clearInterval(this._clearInfiniteLoopInterval),this._fireSelectionChangeDoneDebounced.cancel()}_handleSelectionChange(E){if(this.isEnabled&&this.document.isFocused){this.mutationObserver.flush();const S=E.defaultView.getSelection(),O=this.domConverter.domSelectionToView(S);if(!this.selection.isEqual(O)){if(60<++this._loopbackCounter)return void C.a.warn('selectionchange-infinite-loop: Selection change observer detected an infinite rendering loop.');const R={oldSelection:this.selection,newSelection:O,domSelection:S};this.document.fire('selectionChange',R),this._fireSelectionChangeDoneDebounced(R)}}}_clearInfiniteLoop(){this._loopbackCounter=0}}u.a=P},function(r,u,f){'use strict';function w(I){const N=I.document;I.removeClass('ck-placeholder'),I.removeAttribute('data-placeholder'),F.has(N)&&F.get(N).delete(I)}function C(I){const N=F.get(I);for(let[M,D]of N)T(M,D)}function T(I,N){const M=I.document;if(M){const D=M.selection,q=D.anchor;return N&&!N()?void I.removeClass('ck-placeholder'):M.isFocused||I.childCount?void(!I.childCount&&q&&q.parent!==I?I.addClass('ck-placeholder'):I.removeClass('ck-placeholder')):void I.addClass('ck-placeholder')}}var P=f(50),E=f(7),S=f(0),O=f(320),R=f.n(O);u.a=function(I,N,M){const D=I.document;if(!D)throw new S.a('view-placeholder-element-is-detached: Provided element is not placed in document.');w(I),F.has(D)||(F.set(D,new Map),V.listenTo(D,'render',()=>C(D),{priority:'high'})),I.setAttribute('data-placeholder',N),F.get(D).set(I,M),T(I,M)};const V={};f.i(P.a)(V,E.a);const F=new WeakMap},function(r,u,f){'use strict';function h(D,q){return!D.isCollapsed&&w(D).isEqual(w(q))}function w(D){const q=P.a.createFromSelection(D),z=q.getRanges();let U=[];for(let $ of z)U.push($.getTrimmed());return q.setRanges(U,q.isBackward),q}var C=f(31),T=f(26),P=f(64),E=f(62),S=f(4),O=f(190),R=f(435),V=f(438),F=f(40),I=f(33),N=f(0);class M{constructor(D,q){this.domDocuments=new Set,this.domConverter=D,this.markedAttributes=new Set,this.markedChildren=new Set,this.markedTexts=new Set,this.selection=q,this._inlineFiller=null,this.isFocused=!1,this._fakeSelectionContainer=null}markToSync(D,q){if('text'===D)this.domConverter.getCorrespondingDom(q.parent)&&this.markedTexts.add(q);else{if(!this.domConverter.getCorrespondingDom(q))return;if('attributes'===D)this.markedAttributes.add(q);else if('children'===D)this.markedChildren.add(q);else throw new N.a('view-renderer-unknown-type: Unknown type passed to Renderer.markToSync.')}}render(){let D;this._inlineFiller&&!this._isSelectionInInlineFiller()&&this._removeInlineFiller(),this._inlineFiller?D=this._getInlineFillerPosition():this._needsInlineFillerAtSelection()&&(D=this.selection.getFirstPosition(),this.markedChildren.add(D.parent));for(let q of this.markedTexts)!this.markedChildren.has(q.parent)&&this.domConverter.getCorrespondingDom(q.parent)&&this._updateText(q,{inlineFillerPosition:D});for(let q of this.markedAttributes)this._updateAttrs(q);for(let q of this.markedChildren)this._updateChildren(q,{inlineFillerPosition:D});this._updateSelection(),this._updateFocus(),this.markedTexts.clear(),this.markedAttributes.clear(),this.markedChildren.clear(),this._inlineFiller=this._getInlineFillerNode(D)}_getInlineFillerNode(D){if(!D)return void(this._inlineFiller=null);const q=this.domConverter.viewPositionToDom(D);if(!q||!f.i(E.c)(q.parent))throw new N.a('view-renderer-cannot-find-filler: Cannot find filler node by its position.');return q.parent}_getInlineFillerPosition(){const D=this.selection.getFirstPosition();return D.parent.is('text')?T.a.createBefore(this.selection.getFirstPosition().parent):D}_isSelectionInInlineFiller(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const D=this.selection.getFirstPosition(),q=this.domConverter.viewPositionToDom(D);return q&&this.domConverter.isText(q.parent)&&f.i(E.c)(q.parent)}_removeInlineFiller(){const D=this._inlineFiller;if(!f.i(E.c)(D))throw new N.a('view-renderer-filler-was-lost: The inline filler node was lost.');f.i(E.f)(D)?D.parentNode.removeChild(D):D.data=D.data.substr(E.d),this._inlineFiller=null}_needsInlineFillerAtSelection(){if(1!=this.selection.rangeCount||!this.selection.isCollapsed)return!1;const D=this.selection.getFirstPosition(),q=D.parent,z=D.offset;if(!this.domConverter.getCorrespondingDomElement(q.root))return!1;if(!q.is('element'))return!1;if(z===q.getFillerOffset())return!1;const U=D.nodeBefore,$=D.nodeAfter;return U instanceof C.a||$ instanceof C.a?!1:!0}_updateText(D,q){const z=this.domConverter.getCorrespondingDom(D),U=this.domConverter.viewToDom(D,z.ownerDocument),$=z.data;let K=U.data;const W=q.inlineFillerPosition;W&&W.parent==D.parent&&W.offset==D.index&&(K=E.i+K),$!=K&&(z.data=K)}_updateAttrs(D){const q=this.domConverter.getCorrespondingDom(D),z=Array.from(q.attributes).map(($)=>$.name),U=D.getAttributeKeys();for(let $ of U)q.setAttribute($,D.getAttribute($));for(let $ of z)D.hasAttribute($)||q.removeAttribute($)}_updateChildren(D,q){function z(J,Q){if(J===Q)return!0;return U.isText(J)&&U.isText(Q)?J.data===Q.data:f.i(E.e)(J,U.blockFiller)&&f.i(E.e)(Q,U.blockFiller)}const U=this.domConverter,$=U.getCorrespondingDom(D);if($){const K=$.ownerDocument,W=q.inlineFillerPosition,H=$.childNodes,Y=Array.from(U.viewChildrenToDom(D,K,{bind:!0}));if(W&&W.parent==D){const J=Y[W.offset];this.domConverter.isText(J)?J.data=E.i+J.data:Y.splice(W.offset,0,K.createTextNode(E.i))}const G=f.i(O.a)(H,Y,z);let Z=0;for(let J of G)'insert'===J?(f.i(R.a)($,Z,Y[Z]),Z++):'delete'===J?(this.domConverter.unbindDomElement(H[Z]),f.i(V.a)(H[Z])):Z++}}_updateSelection(){if(0===this.selection.rangeCount)return this._removeDomSelection(),void this._removeFakeSelection();const D=this.domConverter.getCorrespondingDomElement(this.selection.editableElement);this.isFocused&&D&&(this.selection.isFake?this._updateFakeSelection(D):(this._removeFakeSelection(),this._updateDomSelection(D)))}_updateFakeSelection(D){const q=D.ownerDocument;this._fakeSelectionContainer||(this._fakeSelectionContainer=q.createElement('div'),this._fakeSelectionContainer.style.position='fixed',this._fakeSelectionContainer.style.top=0,this._fakeSelectionContainer.style.left='-9999px',this._fakeSelectionContainer.appendChild(q.createTextNode('\xA0'))),this._fakeSelectionContainer.parentElement||D.appendChild(this._fakeSelectionContainer);const z=this.selection.fakeSelectionLabel||'\xA0';this._fakeSelectionContainer.firstChild.data=z;const U=q.getSelection();U.removeAllRanges();const $=q.createRange();$.selectNodeContents(this._fakeSelectionContainer),U.addRange($),this.domConverter.bindFakeSelection(this._fakeSelectionContainer,this.selection)}_updateDomSelection(D){const q=D.ownerDocument.defaultView.getSelection(),z=q&&this.domConverter.domSelectionToView(q);if(!(z&&this.selection.isEqual(z))){if(z&&h(z,this.selection)){const K={oldSelection:z,currentSelection:this.selection};return void F.a.warn('renderer-skipped-selection-rendering: The selection was not rendered due to its similarity to the current one.',K)}const U=this.domConverter.viewPositionToDom(this.selection.anchor),$=this.domConverter.viewPositionToDom(this.selection.focus);q.collapse(U.parent,U.offset),q.extend($.parent,$.offset)}}_removeDomSelection(){for(let D of this.domDocuments){const q=D.getSelection();if(q.rangeCount){const z=D.activeElement,U=this.domConverter.getCorrespondingViewElement(z);z&&U&&D.getSelection().removeAllRanges()}}}_removeFakeSelection(){const D=this._fakeSelectionContainer;D&&D.remove()}_updateFocus(){if(this.isFocused){const D=this.selection.editableElement;D&&this.domConverter.focus(D)}}}u.a=M,f.i(S.a)(M,I.a)},function(r,u,f){'use strict';var h=f(0);class w{constructor(C,T,P){if(this.textNode=C,0>T||T>C.data.length)throw new h.a('view-textproxy-wrong-offsetintext: Given offsetInText value is incorrect.');if(0>P||T+P>C.data.length)throw new h.a('view-textproxy-wrong-length: Given length value is incorrect.');this.data=C.data.substring(T,T+P),this.offsetInText=T}get isPartial(){return this.data.length!==this.textNode.data.length}get parent(){return this.textNode.parent}get root(){return this.textNode.root}get document(){return this.textNode.document}is(C){return'textProxy'==C}getAncestors(C={includeNode:!1,parentFirst:!1}){const T=[];for(let P=C.includeNode?this.textNode:this.parent;null!==P;)T[C.parentFirst?'push':'unshift'](P),P=P.parent;return T}}u.a=w},function(r,u,f){'use strict';var h=f(2),w=f(378),C=f(379);class T extends h.a{static get pluginName(){return'enter/enter'}init(){const P=this.editor,E=P.editing.view;E.addObserver(C.a),P.commands.set('enter',new w.a(P)),this.listenTo(E,'enter',(S,O)=>{P.execute('enter'),O.preventDefault()},{priority:'low'})}}u.a=T},function(r,u,f){'use strict';function h(E,S,O,R){const V=O.isCollapsed,F=O.getFirstRange(),I=F.start.parent,N=F.end.parent;if(!(R.limits.has(I.name)||R.limits.has(N.name))){if(I.root==I)return void(V||E.deleteContent(O,S));if(V)w(S,O,F.start);else{const M=F.start.isAtStart&&F.end.isAtEnd;E.deleteContent(O,S,{merge:M}),M||(I==N?w(S,O,O.focus):O.collapse(N))}}}function w(E,S,O){if(O.isAtEnd){const R=O.parent,V=new R.constructor(R.name,R.getAttributes());E.insert(T.a.createAfter(O.parent),V)}else E.split(O);S.collapse(O.parent.nextSibling)}var C=f(11),T=f(1);class P extends C.a{_doExecute(){const E=this.editor.document,S=E.batch();E.enqueueChanges(()=>{h(this.editor.data,S,E.selection,E.schema),this.fire('afterExecute',{batch:S})})}}u.a=P},function(r,u,f){'use strict';var h=f(53),w=f(118),C=f(22);class T extends h.a{constructor(P){super(P),P.on('keydown',(E,S)=>{this.isEnabled&&S.keyCode==C.d.enter&&P.fire('enter',new w.a(P,S.domEvent))})}observe(){}}u.a=T},function(r,u,f){'use strict';var h=f(3),w=f(11),C=f(60),T=f(1),P=f(66);class E extends w.a{constructor(S,O){super(S),Object.assign(this,O),this.set('value',!1),this.listenTo(S.document,'changesDone',()=>{this.refreshValue(),this.refreshState()})}_doExecute(S={}){const O=this.editor,R=O.document,V=this.value;R.enqueueChanges(()=>{const F=S.batch||R.batch();for(let I of R.selection.getSelectedBlocks())if(!V)I.is(this.modelElement)||F.rename(I,this.modelElement);else if(I.is(this.modelElement)){const N=new C.a;N.addRange(h.a.createIn(I)),O.execute('paragraph',{selection:N,batch:F})}})}refreshValue(){const S=f.i(P.a)(this.editor.document.selection.getSelectedBlocks());this.value=!!S&&S.is(this.modelElement)}_checkEnabled(){const S=f.i(P.a)(this.editor.document.selection.getSelectedBlocks());return!!S&&this.editor.document.schema.check({name:this.modelElement,inside:T.a.createBefore(S)})}}u.a=E},function(r,u,f){'use strict';function C(F,I,N,M){const D=F.name.split(':'),q=D[0]+':'+D[1];if(N.consume(I.item,q)){const z=M.mapper.toViewElement(I.item),U=z.getChild(0);'removeAttribute'==D[0]?U.removeAttribute(I.attributeKey):U.setAttribute(I.attributeKey,I.attributeNewValue)}}function P(F,I,N){I=I.slice();for(const M={name:F.name,attributes:F.attributes,inside:I};I.length&&!N.check(M);){const D=I.pop(),q='string'==typeof D?D:D.name;if(N.limits.has(q))return null}return I.length?I:null}var S=f(1),O=f(35),R=f(18);u.d=function(){return(F,I,N,M)=>{if(N.test(I.input,{name:!0,class:'image'})&&M.schema.check({name:'image',inside:I.context,attributes:'src'})){const D=Array.from(I.input.getChildren()).find((U)=>U.is('img'));if(D&&D.hasAttribute('src')&&N.test(D,{name:!0})){const q=M.convertItem(D,N,I);I.context.push(q);const z=M.convertChildren(I.input,N,I);I.context.pop(),R.a.insert(S.a.createAt(q),z),I.output=q}}}},u.a=function(F,I){for(let N of F)N.on(`addAttribute:${I}:image`,C),N.on(`changeAttribute:${I}:image`,C),N.on(`removeAttribute:${I}:image`,C)},u.b=function(F,I,N,M){const D=I.input;if(N.test(D,{name:!0,attribute:['src']})){const q=P({name:'image',attributes:['src']},I.context,M.schema);if(q){const z=Object.assign({},I);z.context=q,I.output=M.convertItem(D,N,z),V.add(I.output)}}},u.c=function(F,I){if(I.output&&I.output.is('element')){const N=[];for(let M=I.output.childCount-1;0<=M;M--){const D=I.output.getChild(M);if(V.has(D)){const q=I.output.childCount-M-1;let z=null;0<q&&(z=I.output.clone(!1),z.appendChildren(I.output.removeChildren(M+1,q))),D.remove(),N.shift(),z&&N.unshift(z),N.unshift(D),0<I.output.childCount&&N.unshift(I.output)}}N.length&&(I.output=new O.a(N))}};const V=new WeakSet},function(r,u,f){'use strict';function h(z,U,$,K){if('insert'===U){const W=new E.a({boundaries:$.range,ignoreElementEnd:!0});for(let H of W){const Y=H.item;'elementStart'==H.type&&f.i(M.b)(Y)&&!f.i(D.c)(Y)&&K.document.enqueueChanges(()=>{f.i(D.c)(Y)||K.insert(F.a.createAt(Y,'end'),new S.a('caption'))})}}}function w(z,U=!0){return($,K,W,H)=>{const Y=K.item;if((Y.childCount||U)&&f.i(M.b)(Y.parent)){if(!W.consume(K.item,'insert'))return;const G=H.mapper.toViewElement(K.range.start.parent),Z=z instanceof R.a?z.clone(!0):z();Y.childCount||Z.addClass('ck-hidden'),C(Z,K.item,G,H.mapper)}}}function C(z,U,$,K){const W=I.a.createAt($,'end');V.a.insert(W,z),K.bindElements(U,z)}function T(z){const U=z.getAncestors({includeNode:!0}),$=U.find((K)=>'caption'==K.name);return $&&$.parent&&'image'==$.parent.name?$:null}var P=f(2),E=f(37),S=f(5),O=f(44),R=f(25),V=f(79),F=f(1),I=f(26),N=f(34),M=f(46),D=f(383);class q extends P.a{init(){const z=this.editor,U=z.document,$=z.editing.view,K=U.schema,W=z.data,H=z.editing,Y=z.t;this._createCaption=f.i(D.a)($,Y('Enter image caption')),K.registerItem('caption','$block'),K.allow({name:'$inline',inside:'caption'}),K.allow({name:'caption',inside:'image'}),K.limits.add('caption'),U.on('change',h),f.i(N.a)().for(W.viewToModel).from(D.b).toElement('caption'),W.modelToView.on('insert:caption',w(new O.a('figcaption'),!1)),H.modelToView.on('insert:caption',w(this._createCaption)),H.modelToView.on('insert',(G,Z)=>this._fixCaptionVisibility(Z.item),{priority:'high'}),H.modelToView.on('remove',(G,Z)=>this._fixCaptionVisibility(Z.sourcePosition.parent),{priority:'high'}),this.listenTo($,'render',()=>this._updateCaptionVisibility(),{priority:'high'})}_updateCaptionVisibility(){const z=this.editor.editing.mapper,U=this.editor.editing.view.selection,$=U.getSelectedElement();let K;if(this._lastSelectedCaption&&!this._lastSelectedCaption.childCount&&this._lastSelectedCaption.addClass('ck-hidden'),$&&f.i(M.a)($)){const W=z.toModelElement($),H=f.i(D.c)(W);K=z.toViewElement(H)}f.i(D.d)(U.editableElement)&&(K=U.editableElement),K&&(K.removeClass('ck-hidden'),this._lastSelectedCaption=K)}_fixCaptionVisibility(z){const U=T(z),$=this.editor.editing.mapper;if(U){const K=$.toViewElement(U);K&&(U.childCount?K.removeClass('ck-hidden'):K.addClass('ck-hidden'))}}}u.a=q},function(r,u,f){'use strict';var P=f(5),E=f(77),S=f(374),O=f(153);u.a=function(V,F){return()=>{const I=new E.a('figcaption');return I.document=V,I.setCustomProperty(R,!0),f.i(S.a)(I,F),f.i(O.c)(I)}},u.d=function(V){return!!V.getCustomProperty(R)},u.c=function(V){for(let F of V.getChildren())if(F instanceof P.a&&'caption'==F.name)return F;return null},u.b=function(V){const F=V.parent;return'figcaption'==V.name&&F&&'figure'==F.name&&F.hasClass('image')?{name:!0}:null};const R=Symbol('imageCaption')},function(r,u,f){'use strict';function C(O,R,V,F){const I=R.input,N=R.output;if(V.test(I,{class:O.className})&&f.i(S.b)(N)){const M=[...N.getAttributeKeys(),'imageStyle'];F.schema.check({name:'image',inside:R.context,attributes:M})&&(V.consume(I,{class:O.className}),N.setAttribute('imageStyle',O.value))}}function T(O,R){for(let V of R)if(V.value===O)return V}function P(O,R,V){return R&&('changeAttribute'==O||'removeAttribute'==O)&&(V.removeClass(R.className),!0)}function E(O,R,V){return R&&('addAttribute'==O||'changeAttribute'==O)&&(V.addClass(R.className),!0)}var S=f(46);u.a=function(O){return(R,V,F,I)=>{const N=R.name.split(':')[0],M=N+':imageStyle';if(F.test(V.item,M)){const D=T(V.attributeNewValue,O),q=T(V.attributeOldValue,O),z=I.mapper.toViewElement(V.item);(P(N,q,z)||E(N,D,z))&&F.consume(V.item,M)}}},u.b=function(O){const R=O.filter((V)=>null!==V.value);return(V,F,I,N)=>{for(let M of R)C(M,F,I,N)}}},function(r,u,f){'use strict';var h=f(11),w=f(46);class C extends h.a{constructor(T,P){super(T),this.set('value',!1),this.style=P,this.listenTo(T.document,'changesDone',()=>{this._updateValue(),this.refreshState()})}_updateValue(){const T=this.editor.document,P=T.selection.getSelectedElement();return P?void(null===this.style.value?this.value=!P.hasAttribute('imageStyle'):this.value=P.getAttribute('imageStyle')==this.style.value):void(this.value=!1)}_checkEnabled(){const T=this.editor.document.selection.getSelectedElement();return f.i(w.b)(T)}_doExecute(T={}){if(this.value)return;const P=this.editor,E=P.document,S=E.selection,O=S.getSelectedElement();E.enqueueChanges(()=>{const R=T.batch||E.batch();R.setAttribute(O,'imageStyle',this.style.value)})}}u.a=C},function(r,u,f){'use strict';var h=f(2),w=f(385),C=f(176),T=f(384),P=f(308),E=f.n(P),S=f(309),O=f.n(S);class R extends h.a{static get requires(){return[C.a]}init(){const V=this.editor,F=V.t,I=V.document,N=I.schema,M=V.data,D=V.editing;V.config.define('image.styles',[{name:'imageStyleFull',title:F('Full size image'),icon:E.a,value:null},{name:'imageStyleSide',title:F('Side image'),icon:O.a,value:'side',className:'image-style-side'}]);const q=V.config.get('image.styles');N.allow({name:'image',attributes:'imageStyle',inside:'$root'});const z=f.i(T.a)(q);D.modelToView.on('addAttribute:imageStyle:image',z),M.modelToView.on('addAttribute:imageStyle:image',z),D.modelToView.on('changeAttribute:imageStyle:image',z),M.modelToView.on('changeAttribute:imageStyle:image',z),D.modelToView.on('removeAttribute:imageStyle:image',z),M.modelToView.on('removeAttribute:imageStyle:image',z),M.viewToModel.on('element:figure',f.i(T.b)(q),{priority:'low'});for(let U of q)V.commands.set(U.name,new w.a(V,U))}}u.a=R},function(r,u,f){'use strict';var h=f(2),w=f(21),C=f(389),T=f(406),P=f(182),E=f(154),S=f(390),O=f(177),R=f(307),V=f.n(R),F=f(323),I=f.n(F);class N extends h.a{static get requires(){return[C.a]}static get pluginName(){return'image/imagetextalternative'}init(){return this._createButton(),this._createBalloonPanel().then((M)=>{this.balloonPanel=M,this.form=M.content.get(0)})}_createButton(){const M=this.editor,D=M.commands.get('imageTextAlternative'),q=M.t;M.ui.componentFactory.add('imageTextAlternative',(z)=>{const U=new w.a(z);return U.set({label:q('Change image text alternative'),icon:V.a,tooltip:!0}),U.bind('isEnabled').to(D,'isEnabled'),this.listenTo(U,'execute',()=>this._showBalloonPanel()),U})}_createBalloonPanel(){const M=this.editor,D=new O.a(M),q=new S.a(M.locale);this.listenTo(q,'submit',()=>{M.execute('imageTextAlternative',{newValue:q.lebeledInput.inputView.element.value}),this._hideBalloonPanel()});const z=M.plugins.get(E.a);return z&&this.listenTo(D,'change:isVisible',()=>{D.isVisible?(z.hide(),z.isEnabled=!1):(z.show(),z.isEnabled=!0)}),this.listenTo(q,'cancel',()=>this._hideBalloonPanel()),f.i(T.a)({emitter:D,activator:()=>D.isVisible,callback:()=>this._hideBalloonPanel()}),f.i(P.a)({emitter:D,activator:()=>D.isVisible,contextElement:D.element,callback:()=>this._hideBalloonPanel()}),Promise.all([D.content.add(q),M.ui.view.body.add(D)]).then(()=>D)}_showBalloonPanel(){const M=this.editor,D=M.commands.get('imageTextAlternative');this.form.lebeledInput.value=D.value||'',this.balloonPanel.attach(),this.form.lebeledInput.select()}_hideBalloonPanel(){const M=this.editor;this.balloonPanel.detach(),M.editing.view.focus()}}u.a=N},function(r,u,f){'use strict';var h=f(11),w=f(46);class C extends h.a{constructor(T){super(T),this.set('value',!1),this.listenTo(T.document,'changesDone',()=>{this._updateValue(),this.refreshState()})}_updateValue(){const T=this.editor.document,P=T.selection.getSelectedElement();this.value=f.i(w.b)(P)&&P.hasAttribute('alt')&&P.getAttribute('alt')}_checkEnabled(){const T=this.editor.document.selection.getSelectedElement();return f.i(w.b)(T)}_doExecute(T){const P=this.editor,E=P.document,S=E.selection.getSelectedElement();E.enqueueChanges(()=>{const O=T.batch||E.batch();O.setAttribute(S,'alt',T.newValue)})}}u.a=C},function(r,u,f){'use strict';var h=f(388),w=f(2);class C extends w.a{init(){this.editor.commands.set('imageTextAlternative',new h.a(this.editor))}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(21),C=f(6),T=f(186),P=f(185),E=f(184);class S extends h.a{constructor(O){super(O);const R=this.locale.t;this.lebeledInput=this._createLabeledInputView(),this.saveButtonView=this._createButton(R('Save')),this.saveButtonView.type='submit',this.cancelButtonView=this._createButton(R('Cancel'),'cancel'),C.a.extend(this.saveButtonView.template,{attributes:{class:['ck-button-action']}}),this.template=new C.a({tag:'form',attributes:{class:['cke-text-alternative-form']},children:[this.lebeledInput,{tag:'div',attributes:{class:['cke-text-alternative-form__actions']},children:[this.saveButtonView,this.cancelButtonView]}]}),f.i(E.a)({view:this})}_createButton(O,R){const V=new w.a(this.locale);return V.label=O,V.withText=!0,R&&V.delegate('execute').to(this,R),V}_createLabeledInputView(){const O=this.locale.t,R=new T.a(this.locale,P.a);return R.label=O('Text alternative'),R}}u.a=S},function(r,u,f){'use strict';var h=f(11),w=f(24),C=f(3),T=f(101),P=f(159),E=f(178);class S extends h.a{constructor(O){super(O),this.set('value',void 0),this.listenTo(this.editor.document.selection,'change:attribute',()=>{this.value=this.editor.document.selection.getAttribute('linkHref')})}_checkEnabled(){const O=this.editor.document;return f.i(P.a)('linkHref',O.selection,O.schema)}_doExecute(O){const R=this.editor.document,V=R.selection;R.enqueueChanges(()=>{const F=R.batch();if(V.isCollapsed){const I=V.getFirstPosition(),N=I.parent;if(V.hasAttribute('linkHref')){const M=f.i(E.a)(V.getFirstPosition(),V.getAttribute('linkHref'));F.setAttribute(M,'linkHref',O),V.setRanges([M])}else if(R.schema.check({name:'$text',attributes:'linkHref',inside:N.name})){const M=new w.a(O,{linkHref:O});F.insert(I,M),V.setRanges([C.a.createOn(M)])}}else{const I=f.i(T.a)('linkHref',V.getRanges(),R.schema);for(let N of I)F.setAttribute(N,'linkHref',O)}})}}u.a=S},function(r,u,f){'use strict';var h=f(2),w=f(41),C=f(34),T=f(179),P=f(391),E=f(394);class S extends h.a{init(){const O=this.editor,R=O.data,V=O.editing;O.document.schema.allow({name:'$inline',attributes:'linkHref',inside:'$block'}),f.i(w.a)().for(R.modelToView,V.modelToView).fromAttribute('linkHref').toElement((F)=>new T.a('a',{href:F})),f.i(C.a)().for(R.viewToModel).fromElement('a').toAttribute((F)=>({key:'linkHref',value:F.getAttribute('href')})),O.commands.set('link',new P.a(O)),O.commands.set('unlink',new E.a(O))}}u.a=S},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(120),T=f(21),P=f(186),E=f(185),S=f(184),O=f(67),R=f(119),V=f(68);class F extends h.a{constructor(I){super(I);const N=I.t;this.focusTracker=new O.a,this.keystrokes=new V.a,this.urlInputView=this._createUrlInput(),this.saveButtonView=this._createButton(N('Save')),this.saveButtonView.type='submit',this.cancelButtonView=this._createButton(N('Cancel'),'cancel'),this.unlinkButtonView=this._createButton(N('Unlink'),'unlink'),this._focusables=new C.a,this._focusCycler=new R.a({focusables:this._focusables,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:'shift + tab',focusNext:'tab'}}),w.a.extend(this.saveButtonView.template,{attributes:{class:['ck-button-action']}}),this.template=new w.a({tag:'form',attributes:{class:['ck-link-form'],tabindex:'-1'},children:[this.urlInputView,{tag:'div',attributes:{class:['ck-link-form__actions']},children:[this.saveButtonView,this.cancelButtonView,this.unlinkButtonView]}]}),f.i(S.a)({view:this});const M=[this.urlInputView,this.saveButtonView,this.cancelButtonView,this.unlinkButtonView];M.forEach((D)=>{this._focusables.add(D),this.focusTracker.add(D.element)})}init(){return this.keystrokes.listenTo(this.element),super.init()}focus(){this._focusCycler.focusFirst()}_createUrlInput(){const I=this.locale.t,N=new P.a(this.locale,E.a);return N.label=I('Link URL'),N}_createButton(I,N){const M=new T.a(this.locale);return M.label=I,M.withText=!0,N&&M.delegate('execute').to(this,N),M}}u.a=F},function(r,u,f){'use strict';var h=f(11),w=f(178);class C extends h.a{constructor(T){super(T),this.listenTo(T.document.selection,'change:attribute',()=>this.refreshState())}_doExecute(){const T=this.editor.document,P=T.selection;T.enqueueChanges(()=>{const E=P.isCollapsed?[f.i(w.a)(P.getFirstPosition(),P.getAttribute('linkHref'))]:P.getRanges(),S=T.batch();for(let O of E)S.removeAttribute(O,'linkHref')})}_checkEnabled(){return this.editor.document.selection.hasAttribute('linkHref')}}u.a=C},function(r,u,f){'use strict';function N(ne,oe,ie){let re=ne.nodeAfter;re&&'listItem'==re.name&&oe.enqueueChanges(()=>{const se=re.previousSibling,le=se&&se.is('listItem')?se.getAttribute('indent')+1:0;let de=re.getAttribute('indent')-le;const ce=[];for(;re&&'listItem'==re.name&&re.getAttribute('indent')>le;){de>re.getAttribute('indent')&&(de=re.getAttribute('indent'));const ue=re.getAttribute('indent')-de;ce.push({item:re,indent:ue}),re=re.nextSibling}if(0<ce.length)for(let ue of ce.reverse())ie.setAttribute(ue.item,'indent',ue.indent)})}function M(ne,oe,ie,re){let se=ne[oe?'nodeBefore':'nodeAfter'];se&&se.is('listItem')&&0!==se.getAttribute('indent')&&ie.enqueueChanges(()=>{const le=W(se,!oe);if(le&&le!=se)for(const de=le.getAttribute('indent'),ce=le.getAttribute('type');se&&se.is('listItem')&&se.getAttribute('indent')>=de;)se.getAttribute('type')!=ce&&se.getAttribute('indent')==de&&re.setAttribute(se,'type',ce),se=se[oe?'previousSibling':'nextSibling']})}function q(ne,oe){const ie='numbered'==ne.getAttribute('type')?'ol':'ul',re=new H.a,se=new Q.a(ie,null);return se.appendChildren(re),oe.bindElements(ne,re),re}function z(ne,oe){const ie=oe.getNext?'nextSibling':'previousSibling',re=oe.getNext?'nodeAfter':'nodeBefore',se=!!oe.checkAllSiblings,le=!!oe.sameIndent,de=!!oe.biggerIndent,ce=!!oe.smallerIndent,ue=!!oe.isMapped,me=ne instanceof G.a?ne.getAttribute('indent'):oe.indent;for(let pe=ne instanceof G.a?ne[ie]:ne[re],ge;pe&&'listItem'==pe.name;){if(ge=pe.getAttribute('indent'),le&&me==ge||de&&me<ge||ce&&me>ge){if(!ue||oe.mapper.toViewElement(pe))return pe;pe=pe[ie];continue}if(!se)return null;pe=pe[ie]}return null}function U(ne,oe){return ne&&oe&&('ul'==ne.name||'ol'==ne.name)&&ne.name==oe.name?ae.a.mergeContainers(X.a.createAfter(ne)):null}function $(ne,oe,ie,re){const se=oe.parent;let le,de=z(ne,{sameIndent:!0,smallerIndent:!0,checkAllSiblings:!0});if(de&&de.getAttribute('indent')==ne.getAttribute('indent')){let ue=ie.toViewElement(de);le=ae.a.breakContainer(X.a.createAfter(ue))}else de=ne.previousSibling,le=de&&'listItem'==de.name?de.getAttribute('indent')<ne.getAttribute('indent')?ie.toViewPosition(Z.a.createAt(de,'end')):re.parent.is('ul')||re.parent.is('ol')?ae.a.breakContainer(re):re:ie.toViewPosition(Z.a.createBefore(ne));ae.a.insert(le,se);const ce=z(ne,{biggerIndent:!0,getNext:!0,isMapped:!0,mapper:ie});if(ce){let ue=ie.toViewElement(ce);ae.a.breakContainer(X.a.createBefore(ue));const me=X.a.createBefore(ue.parent),pe=W(ce,!1),ge=ie.toViewElement(pe),fe=ae.a.breakContainer(X.a.createAfter(ge)),he=new ee.a(me,fe),be=X.a.createAt(oe,'end');ae.a.move(he,be)}U(se,se.nextSibling),U(se.previousSibling,se)}function K(ne,oe,ie,re,se){const le=z(oe,{sameIndent:!0,smallerIndent:!0,checkAllSiblings:!0,indent:ne}),de=le?le.getAttribute('indent'):null;let ce;if(!le)ce=ie;else if(de==ne){const ue=se.toViewElement(le).parent;ce=X.a.createAfter(ue)}else{const ue=Z.a.createAt(le,'end');ce=se.toViewPosition(ue)}for(let ue of[...re.getChildren()])(ue.is('ul')||ue.is('ol'))&&(ce=ae.a.move(ee.a.createOn(ue),ce).end,U(ue,ue.nextSibling),U(ue.previousSibling,ue))}function W(ne,oe){const ie=ne.getAttribute('indent'),re=oe?'previousSibling':'nextSibling';let se=ne;for(;ne[re]&&ne[re].is('listItem')&&ne[re].getAttribute('indent')>=ie;)ne=ne[re],ne.getAttribute('indent')==ie&&(se=ne);return se}var H=f(398),Y=f(35),G=f(5),Z=f(1),J=f(18),Q=f(44),X=f(26),ee=f(45),te=f(54),ae=f(79);u.e=function(ne,oe,ie,re){if(ie.test(oe.item,'insert')&&ie.test(oe.item,'addAttribute:type')&&ie.test(oe.item,'addAttribute:indent')){ie.consume(oe.item,'insert'),ie.consume(oe.item,'addAttribute:type'),ie.consume(oe.item,'addAttribute:indent');const se=oe.item,le=q(se,re.mapper),de=re.mapper.toViewPosition(Z.a.createBefore(se));$(se,le,re.mapper,de)}},u.f=function(ne,oe,ie,re){if(!ie.consume(oe.item,'changeAttribute:type'))return;const se=re.mapper.toViewElement(oe.item);ae.a.breakContainer(X.a.createBefore(se)),ae.a.breakContainer(X.a.createAfter(se));let le=se.parent;const de='numbered'==oe.attributeNewValue?'ol':'ul';le=ae.a.rename(le,de),U(le,le.nextSibling),U(le.previousSibling,le)},u.g=function(ne,oe,ie,re){if(ie.consume(oe.item,'remove')){const se=re.mapper.toViewPosition(oe.sourcePosition),le=se.nodeAfter.is('li')?se.nodeAfter:se.nodeAfter.getChild(0);ae.a.breakContainer(X.a.createBefore(le)),ae.a.breakContainer(X.a.createAfter(le));const de=le.parent,ce=de.previousSibling,ue=ee.a.createOn(de);ae.a.remove(ue),ce&&ce.nextSibling&&U(ce,ce.nextSibling),K(oe.item.getAttribute('indent')+1,oe.sourcePosition,ue.start,le,re.mapper),'$graveyard'==oe.item.root.rootName&&re.mapper.unbindModelElement(oe.item)}},u.i=function(ne,oe,ie,re){if(!ie.consume(oe.item,'changeAttribute:indent'))return;const se=re.mapper.toViewElement(oe.item);ae.a.breakContainer(X.a.createBefore(se)),ae.a.breakContainer(X.a.createAfter(se));const le=se.parent,de=le.previousSibling,ce=ee.a.createOn(le);ae.a.remove(ce);let ue;de&&de.nextSibling&&(ue=U(de,de.nextSibling)),ue||(ue=ce.start),K(oe.attributeOldValue+1,oe.range.start,ce.start,se,re.mapper),$(oe.item,se,re.mapper,ue)},u.d=function(ne,oe,ie,re){if('listItem'!=oe.item.name){let se=re.mapper.toViewPosition(oe.range.start);const le=[];for(;('ul'==se.parent.name||'ol'==se.parent.name)&&(se=ae.a.breakContainer(se),'li'==se.parent.name);){const de=se,ce=X.a.createAt(se.parent,'end');if(!de.isEqual(ce)){const ue=ae.a.remove(new ee.a(de,ce));le.push(ue)}se=X.a.createAfter(se.parent)}if(0<le.length){for(let de=0;de<le.length;de++){const ce=se.nodeBefore,ue=ae.a.insert(se,le[de]);if(se=ue.end,0<de){let me=U(ce,ce.nextSibling);me&&me.parent==ce&&se.offset--}}U(se.nodeBefore,se.nodeAfter)}}},u.h=function(ne,oe,ie,re){if(!oe.item.is('listItem')){const se=re.mapper.toViewPosition(oe.sourcePosition),le=se.nodeBefore,de=se.nodeAfter;U(le,de)}},u.l=function(ne,oe,ie,re){if(ie.consume(oe.input,{name:!0})){const se=new G.a('listItem');oe.indent=oe.indent?oe.indent:0;const le='ul'==oe.input.parent.name?'bulleted':'numbered';se.setAttribute('type',le),se.setAttribute('indent',oe.indent),oe.context.push(se),oe.indent++;let de=new Y.a;de.appendChildren(se);for(let ce of oe.input.getChildren()){const ue=re.convertItem(ce,ie,oe);'ul'==ce.name||'ol'==ce.name?de.appendChildren(Array.from(ue.getChildren())):J.a.insert(Z.a.createAt(se,'end'),ue)}oe.indent--,oe.context.pop(),oe.output=de}},u.j=function(ne,oe,ie){if(ie.test(oe.input,{name:!0})){const re=Array.from(oe.input.getChildren());for(let se of re)se.is('li')||se.remove()}},u.k=function(ne,oe,ie){if(ie.test(oe.input,{name:!0})){if(0===oe.input.childCount)return;const re=[...oe.input.getChildren()];let se=!1,le=!0;for(let de of re)!se||de.is('ul')||de.is('ol')||de.remove(),de.is('text')?(le&&(de.data=de.data.replace(/^\s+/,'')),(!de.nextSibling||de.nextSibling.is('ul')||de.nextSibling.is('ol'))&&(de.data=de.data.replace(/\s+$/,''))):(de.is('ul')||de.is('ol'))&&(se=!0),le=!1}},u.b=function(ne,oe){const ie=oe.modelPosition.nodeBefore;if(ie&&ie.is('listItem')){const re=oe.mapper.toViewElement(ie),se=re.getAncestors().find((de)=>de.is('ul')||de.is('ol')),le=new te.a({startPosition:X.a.createAt(re,0)});for(let de of le)if('elementStart'==de.type&&de.item.is('li')){oe.viewPosition=de.previousPosition;break}else if('elementEnd'==de.type&&de.item==se){oe.viewPosition=de.nextPosition;break}}},u.c=function(ne,oe){const ie=oe.viewPosition,re=ie.parent,se=oe.mapper;if('ul'==re.name||'ol'==re.name){if(!ie.isAtEnd){const le=se.toModelElement(ie.nodeAfter);oe.modelPosition=Z.a.createBefore(le)}else{const le=se.toModelElement(ie.nodeBefore),de=se.getModelLength(ie.nodeBefore);oe.modelPosition=Z.a.createBefore(le).getShiftedBy(de)}ne.stop()}else if('li'==re.name&&ie.nodeBefore&&('ul'==ie.nodeBefore.name||'ol'==ie.nodeBefore.name)){const le=se.toModelElement(re);let de=1,ce=ie.nodeBefore;for(;ce&&(ce.is('ul')||ce.is('ol'));)de+=se.getModelLength(ce),ce=ce.previousSibling;oe.modelPosition=Z.a.createBefore(le).getShiftedBy(de),ne.stop()}},u.a=function(ne){return(oe,ie,re,se)=>{if('remove'==ie)N(re.sourcePosition,ne,se),M(re.sourcePosition,!1,ne,se);else if('move'==ie)N(re.sourcePosition,ne,se),M(re.sourcePosition,!1,ne,se),N(re.range.start,ne,se),M(re.range.start,!1,ne,se),N(re.range.end,ne,se),M(re.range.end,!0,ne,se);else if('rename'==ie&&'listItem'==re.oldName&&'listItem'!=re.newName){const le=re.element;ne.enqueueChanges(()=>{se.removeAttribute(le,'indent').removeAttribute(le,'type')});const de=Z.a.createAfter(re.element);N(de,ne,se)}else'insert'==ie&&(N(re.range.start,ne,se),M(re.range.start,!1,ne,se),N(re.range.end,ne,se),M(re.range.end,!0,ne,se))}},u.m=function(ne,oe){let ie=oe.content.getChild(0);if(ie.is('listItem')){const re=oe.selection.getFirstPosition();let se=null;if(re.parent.is('listItem')?se=re.parent:re.nodeBefore&&re.nodeBefore.is('listItem')&&(se=re.nodeBefore),se){const le=se.getAttribute('indent');if(0<le)for(;ie&&ie.is('listItem');)ie.setAttribute('indent',ie.getAttribute('indent')+le),ie=ie.nextSibling}}}},function(r,u,f){'use strict';function h(E,S){const O=w(E,!1);if(O)return void S.setAttribute(E,'type',O.getAttribute('type'));const R=w(E,!0);R&&S.setAttribute(E,'type',R.getAttribute('type'))}function w(E,S){for(let O=E[S?'nextSibling':'previousSibling'];O&&O.is('listItem')&&O.getAttribute('indent')>=E.getAttribute('indent');){if(O.getAttribute('indent')==E.getAttribute('indent'))return O;O=O[S?'nextSibling':'previousSibling']}return null}var C=f(11),T=f(66);class P extends C.a{constructor(E,S){super(E),this._indentBy='forward'==S?1:-1,this.listenTo(E.document,'changesDone',()=>{this.refreshState()})}_doExecute(){const E=this.editor.document,S=E.batch();let O=Array.from(E.selection.getSelectedBlocks());E.enqueueChanges(()=>{const R=O[O.length-1];for(let V=R.nextSibling;V&&'listItem'==V.name&&V.getAttribute('indent')>R.getAttribute('indent');)O.push(V),V=V.nextSibling;0>this._indentBy&&(O=O.reverse());for(let F of O){const I=F.getAttribute('indent')+this._indentBy;0>I?S.rename(F,'paragraph'):S.setAttribute(F,'indent',I)}0>this._indentBy&&(O=O.reverse());for(let F of O)h(F,S)})}_checkEnabled(){const E=f.i(T.a)(this.editor.document.selection.getSelectedBlocks());if(!E||!E.is('listItem'))return!1;if(0<this._indentBy){const S=E.getAttribute('indent'),O=E.getAttribute('type');for(let R=E.previousSibling;R&&R.is('listItem')&&R.getAttribute('indent')>=S;){if(R.getAttribute('indent')==S)return R.getAttribute('type')==O;R=R.previousSibling}return!1}return!0}}u.a=P},function(r,u,f){'use strict';function h(E,S,O){const R=S?E[0]:E[E.length-1];if(R.is('listItem'))for(let V=R[S?'previousSibling':'nextSibling'],F=R.getAttribute('indent');V&&V.is('listItem')&&V.getAttribute('indent')>=O;)F>V.getAttribute('indent')&&(F=V.getAttribute('indent')),V.getAttribute('indent')==F&&E[S?'unshift':'push'](V),V=V[S?'previousSibling':'nextSibling']}var w=f(11),C=f(1),T=f(66);class P extends w.a{constructor(E,S){super(E),this.type='bulleted'==S?'bulleted':'numbered',this.set('value',!1),this.listenTo(E.document,'changesDone',()=>{this.refreshValue(),this.refreshState()})}refreshValue(){const E=f.i(T.a)(this.editor.document.selection.getSelectedBlocks());this.value=E&&E.is('listItem')&&E.getAttribute('type')==this.type}_doExecute(E={}){const S=this.editor.document,O=Array.from(S.selection.getSelectedBlocks()),R=!0===this.value;S.enqueueChanges(()=>{const V=E.batch||S.batch();if(R){let F=O[O.length-1].nextSibling,I=_NumberPOSITIVE_INFINITY,N=[];for(;F&&'listItem'==F.name&&0!==F.getAttribute('indent');){const M=F.getAttribute('indent');M<I&&(I=M);const D=M-I;N.push({element:F,indent:D}),F=F.nextSibling}N=N.reverse();for(let M of N)V.setAttribute(M.element,'indent',M.indent)}if(!R){let F=_NumberPOSITIVE_INFINITY;for(let I of O)I.is('listItem')&&I.getAttribute('indent')<F&&(F=I.getAttribute('indent'));F=0===F?1:F,h(O,!0,F),h(O,!1,F)}for(let F of O.reverse())R&&'listItem'==F.name?V.rename(F,'paragraph'):R||'listItem'==F.name?R||'listItem'!=F.name||F.getAttribute('type')==this.type||V.setAttribute(F,'type',this.type):V.setAttribute(F,'type',this.type).setAttribute(F,'indent',0).rename(F,'listItem')})}_checkEnabled(){if(this.value)return!0;const E=this.editor.document.selection,S=this.editor.document.schema,O=f.i(T.a)(E.getSelectedBlocks());return!!O&&S.check({name:'listItem',attributes:['type','indent'],inside:C.a.createBefore(O)})}}u.a=P},function(r,u,f){'use strict';function h(){const T=!this.isEmpty&&('ul'==this.getChild(0).name||'ol'==this.getChild(0).name);return this.isEmpty||T?0:null}var w=f(44);class C extends w.a{constructor(T,P){super('li',T,P),this.getFillerOffset=h}}u.a=C},function(r,u,f){'use strict';var h=f(11),w=f(1),C=f(66);class T extends h.a{constructor(P){super(P),this.set('value',!1),this.listenTo(P.document,'changesDone',()=>{this.refreshValue(),this.refreshState()})}_doExecute(P={}){const E=this.editor.document;E.enqueueChanges(()=>{const S=P.batch||E.batch(),O=(P.selection||E.selection).getSelectedBlocks();for(let R of O)R.is('paragraph')||S.rename(R,'paragraph')})}refreshValue(){const P=f.i(C.a)(this.editor.document.selection.getSelectedBlocks());this.value=!!P&&P.is('paragraph')}_checkEnabled(){const P=f.i(C.a)(this.editor.document.selection.getSelectedBlocks());return!!P&&this.editor.document.schema.check({name:'paragraph',inside:w.a.createBefore(P)})}}u.a=T},function(r,u,f){'use strict';var h=f(2),w=f(401),C=f(402);class T extends h.a{static get pluginName(){return'typing/delete'}init(){const P=this.editor,E=P.editing.view;E.addObserver(C.a),P.commands.set('forwardDelete',new w.a(P,'forward')),P.commands.set('delete',new w.a(P,'backward')),this.listenTo(E,'delete',(S,O)=>{P.execute('forward'==O.direction?'forwardDelete':'delete',{unit:O.unit}),O.preventDefault()})}}u.a=T},function(r,u,f){'use strict';var h=f(11),w=f(60),C=f(181),T=f(189);class P extends h.a{constructor(E,S){super(E),this.direction=S,this._buffer=new C.a(E.document,E.config.get('typing.undoStep'))}_doExecute(E={}){const S=this.editor.document,O=this.editor.data;S.enqueueChanges(()=>{this._buffer.lock();const R=w.a.createFromSelection(S.selection);if(R.isCollapsed&&O.modifySelection(R,{direction:this.direction,unit:E.unit}),R.isCollapsed)return;let V=0;R.getFirstRange().getMinimalFlatRanges().forEach((F)=>{V+=f.i(T.a)(F.getWalker({singleCharacters:!0,ignoreElementEnd:!0,shallow:!0}))}),O.deleteContent(R,this._buffer.batch,{merge:!0}),this._buffer.input(V),S.selection.setRanges(R.getRanges(),R.isBackward),this._buffer.unlock()})}}u.a=P},function(r,u,f){'use strict';var h=f(53),w=f(118),C=f(22);class T extends h.a{constructor(P){super(P),P.on('keydown',(E,S)=>{const O={};if(S.keyCode==C.d.delete)O.direction='forward',O.unit='character';else if(S.keyCode==C.d.backspace)O.direction='backward',O.unit='codePoint';else return;O.unit=S.altKey?'word':O.unit,P.fire('delete',new w.a(P,S.domEvent,O))})}observe(){}}u.a=T},function(r,u,f){'use strict';function h(M){return!!M.ctrlKey||N.includes(M.keyCode)}function w(M,D){return M instanceof E.a&&D instanceof E.a?M.data===D.data:M===D}var C=f(2),T=f(3),P=f(26),E=f(31),S=f(190),O=f(430),R=f(22),V=f(404);class F extends C.a{static get pluginName(){return'typing/input'}init(){const M=this.editor,D=M.editing.view,q=new V.a(M,M.config.get('typing.undoStep')||20);M.commands.set('input',q),this.listenTo(D,'keydown',(z,U)=>{this._handleKeydown(U,q.buffer)},{priority:'lowest'}),this.listenTo(D,'mutations',(z,U,$)=>{this._handleMutations(U,$)})}_handleKeydown(M,D){const q=this.editor.document;h(M)||q.selection.isCollapsed||(D.lock(),q.enqueueChanges(()=>{this.editor.data.deleteContent(q.selection,D.batch)}),D.unlock())}_handleMutations(M,D){new I(this.editor).handle(M,D)}}u.a=F;class I{constructor(M){this.editor=M,this.editing=this.editor.editing}handle(M,D){for(let q of M)this._handleTextMutation(q,D),this._handleTextNodeInsertion(q)}_handleTextMutation(M,D){if('text'!=M.type)return;const q=M.newText.replace(/\u00A0/g,' '),z=M.oldText.replace(/\u00A0/g,' '),U=f.i(S.a)(z,q);let $=null,K=null;for(let X=0;X<U.length;X++){const ee=U[X];'equal'!=ee&&($=null==$?X:$,K=X)}let W=0,H=0;for(let X=$;X<=K;X++)'insert'!=U[X]&&W++,'delete'!=U[X]&&H++;let Y=null;D&&(Y=this.editing.mapper.toModelRange(D.getFirstRange()));const G=new P.a(M.node,$),Z=this.editing.mapper.toModelPosition(G),J=T.a.createFromPositionAndShift(Z,W),Q=q.substr($,H);this.editor.execute('input',{text:Q,range:J,resultRange:Y})}_handleTextNodeInsertion(M){if('children'==M.type&&1==M.newChildren.length-M.oldChildren.length){const D=f.i(S.a)(M.oldChildren,M.newChildren,w),q=f.i(O.a)(D,M.newChildren);if(!(1<q.length)){const z=q[0];if(z.values[0]instanceof E.a){const U=new P.a(M.node,z.index),$=this.editing.mapper.toModelPosition(U),K=z.values[0].data;this.editor.execute('input',{text:K.replace(/\u00A0/g,' '),range:new T.a($)})}}}}}const N=[f.i(R.c)('arrowUp'),f.i(R.c)('arrowRight'),f.i(R.c)('arrowDown'),f.i(R.c)('arrowLeft'),9,16,17,18,20,27,33,34,35,36,229];for(let M=112;135>=M;M++)N.push(M)},function(r,u,f){'use strict';var h=f(11),w=f(181);class C extends h.a{constructor(T,P){super(T),this._buffer=new w.a(T.document,P)}destroy(){super.destroy(),this._buffer.destroy(),this._buffer=null}get buffer(){return this._buffer}_doExecute(T={}){const P=this.editor.document,E=T.text||'',S=E.length,O=T.range||P.selection.getFirstRange(),R=T.resultRange;P.enqueueChanges(()=>{const V=O.isCollapsed;this._buffer.lock(),V||this._buffer.batch.remove(O),this._buffer.batch.weakInsert(O.start,E),R?this.editor.data.model.selection.setRanges([R]):V&&this.editor.data.model.selection.collapse(O.start.getShiftedBy(S)),this._buffer.unlock(),this._buffer.input(S)})}}u.a=C},function(r,u,f){'use strict';var h=f(2),w=f(403),C=f(400);class T extends h.a{static get requires(){return[w.a,C.a]}static get pluginName(){return'typing/typing'}}u.a=T},function(r,u,f){'use strict';var w=f(22);u.a=function({emitter:C,activator:T,callback:P}){C.listenTo(document,'keydown',(E,{keyCode:S})=>{S==w.d.esc&&T()&&P()})}},function(r,u,f){'use strict';var h=f(0);u.a=class{constructor(C){this.editor=C,this._components=new Map}add(C,T){if(this._components.get(C))throw new h.a('componentfactory-item-exists: The item already exists in the component factory.',{name:C});this._components.set(C,T)}create(C){const T=this._components.get(C);if(!T)throw new h.a('componentfactory-item-missing: There is no such UI component in the factory.',{name:C});return T(this.editor.locale)}}},function(r,u,f){'use strict';var w=f(21),C=f(410),T=f(409);u.a=function(P,E){const S=new w.a(E);S.bind('label','isOn','isEnabled','withText','keystroke','tooltip').to(P);const O=new T.a(E);return new C.a(E,S,O)}},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T){super(T);const P=this.bindTemplate;this.set('isVisible',!1),this.children=this.createCollection(),this.template=new w.a({tag:'div',attributes:{class:['ck-reset','ck-dropdown__panel',P.if('isVisible','ck-dropdown__panel-visible')]},children:this.children})}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(67),T=f(68);class P extends h.a{constructor(E,S,O){super(E),w.a.extend(S.template,{attributes:{class:['ck-dropdown__button']}}),this.buttonView=S,this.panelView=O,this.set('isOpen',!1),this.focusTracker=new C.a,this.keystrokes=new T.a,this.template=new w.a({tag:'div',attributes:{class:['ck-dropdown']},children:[S,O]}),this.listenTo(S,'execute',()=>this.isOpen=!this.isOpen),O.bind('isVisible').to(this,'isOpen')}init(){this.keystrokes.listenTo(this.element),this.focusTracker.add(this.element);const E=(S,O)=>{this.isOpen&&(this.buttonView.focus(),this.isOpen=!1,O())};return this.keystrokes.set('arrowdown',(S,O)=>{this.isOpen||(this.isOpen=!0,O())}),this.keystrokes.set('arrowright',(S,O)=>{this.isOpen&&O()}),this.keystrokes.set('arrowleft',E),this.keystrokes.set('esc',E),super.init()}focus(){this.buttonView.focus()}}u.a=P},function(r,u,f){'use strict';function w(E){E.listenTo(document,'click',(S,{target:O})=>{E.element==O||E.element.contains(O)||(E.isOpen=!1)})}var C=f(419),T=f(418),P=f(408);u.a=function(E,S){const O=f.i(P.a)(E,S),R=O.listView=new C.a(S);return R.items.bindTo(E.items).using((V)=>{const F=new T.a(S);return F.bind(...Object.keys(V)).to(V),F}),R.items.delegate('execute').to(O),O.panelView.children.add(R),O.on('change:isOpen',(V,F,I)=>{I?w(O):O.stopListening(document)}),O.on('execute',()=>{O.isOpen=!1}),O.keystrokes.set('arrowdown',(V,F)=>{O.isOpen&&(R.focus(),F())}),O.keystrokes.set('arrowup',(V,F)=>{O.isOpen&&(R.focusLast(),F())}),O}},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T,P){super(T);const E=this.bindTemplate;P&&(this.element=this.editableElement=P),this.template=new w.a({tag:'div',attributes:{class:[E.to('isFocused',(S)=>S?'ck-focused':'ck-blurred'),'ck-editor__editable'],contenteditable:E.to('isReadOnly',(S)=>!S)}}),this.set('isReadOnly',!1),this.set('isFocused',!1),this.externalElement=P}init(){return this.externalElement?this.template.apply(this.externalElement):this.editableElement=this.element,super.init()}destroy(){return this.externalElement&&this.template.revert(this.externalElement),super.destroy()}}u.a=C},function(r,u,f){'use strict';var h=f(412),w=f(6);class C extends h.a{constructor(T,P){super(T,P);const E=this.bindTemplate,S=this.t;this.set('name',null);w.a.extend(this.template,{attributes:{role:'textbox','aria-label':E.to('name',(R)=>{return S('Rich Text Editor, %0',[R])}),class:'ck-editor__editable_inline'}})}}u.a=C},function(r,u,f){'use strict';var h=f(415),w=f(72),C=f(6);class T extends h.a{constructor(P){super(P);const E=this.t,S=f.i(w.a)();this.set('width',null),this.set('height',null),this.top=this.createCollection(),this.main=this.createCollection(),this.template=new C.a({tag:'div',attributes:{class:['ck-reset','ck-editor','ck-rounded-corners'],role:'application',dir:'ltr',lang:P.lang,'aria-labelledby':`cke-editor__aria-label_${S}`},children:[{tag:'span',attributes:{id:`cke-editor__aria-label_${S}`,class:'cke-voice-label'},children:[E('Rich Text Editor')]},{tag:'div',attributes:{class:'ck-editor__top ck-reset_all',role:'presentation'},children:this.top},{tag:'div',attributes:{class:'ck-editor__main',role:'presentation'},children:this.main}]})}}u.a=T},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T){super(T),this.body=this.createCollection()}init(){return Promise.resolve().then(()=>this._renderBodyCollection()).then(()=>super.init())}destroy(){return this._bodyCollectionContainer.remove(),super.destroy()}_renderBodyCollection(){const T=this._bodyCollectionContainer=new w.a({tag:'div',attributes:{class:['ck-body','ck-rounded-corners','ck-reset_all']},children:this.body}).render();document.body.appendChild(T)}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(){super();const T=this.bindTemplate;this.set('content'),this.set('viewBox','0 0 20 20'),this.template=new w.a({tag:'svg',ns:'http://www.w3.org/2000/svg',attributes:{class:'ck-icon',viewBox:T.to('viewBox')}}),this.on('change:content',(P,E,S)=>{for(const O=new DOMParser().parseFromString(S.trim(),'image/svg+xml').firstChild;0<O.childNodes.length;)this.element.appendChild(O.childNodes[0])})}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T){super(T),this.set('text'),this.set('for');const P=this.bindTemplate;this.template=new w.a({tag:'label',attributes:{class:['ck-label'],for:P.to('for')},children:[{text:P.to('text')}]})}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(){super(),this.set('tabindex',-1);const T=this.bindTemplate;this.template=new w.a({tag:'li',attributes:{class:['ck-list__item',T.to('class'),T.if('isActive','ck-list__item_active')],style:T.to('style'),tabindex:T.to('tabindex')},children:[{text:T.to('label')}],on:{click:T.to('execute')}})}focus(){this.element.focus()}}u.a=C},function(r,u,f){'use strict';var h=f(9),w=f(6),C=f(67),T=f(119),P=f(68);class E extends h.a{constructor(){super(),this.items=this.createCollection(),this.focusTracker=new C.a,this.keystrokes=new P.a,this._focusCycler=new T.a({focusables:this.items,focusTracker:this.focusTracker,keystrokeHandler:this.keystrokes,actions:{focusPrevious:'arrowup',focusNext:'arrowdown'}}),this.template=new w.a({tag:'ul',attributes:{class:['ck-reset','ck-list']},children:this.items}),this.items.on('add',(S,O)=>{this.focusTracker.add(O.element)}),this.items.on('remove',(S,O)=>{this.focusTracker.remove(O.element)})}init(){return this.keystrokes.listenTo(this.element),super.init()}focus(){this._focusCycler.focusFirst()}focusLast(){this._focusCycler.focusLast()}}u.a=E},function(r,u,f){'use strict';var h=f(50),w=f(4),C=f(33);class T{constructor(P,E){E&&f.i(h.a)(this,E),P&&this.set(P)}}u.a=T,f.i(w.a)(T,C.a)},function(r,u,f){'use strict';var h=f(2),w=f(187),C=f(0);class T extends h.a{static get pluginName(){return'ui/contextualballoon'}init(){return this.view=new w.a,this._stack=new Map,this.editor.ui.focusTracker.add(this.view.element),this.editor.ui.view.body.add(this.view)}get visibleView(){const P=this._stack.get(this.view.content.get(0));return P?P.view:null}hasView(P){return this._stack.has(P)}add(P){if(this.hasView(P.view))throw new C.a('contextualballoon-add-view-exist: Cannot add configuration of the same view twice.');return this.visibleView&&this.view.content.remove(this.visibleView),this._stack.set(P.view,P),this._show(P)}remove(P){if(!this.hasView(P))throw new C.a('contextualballoon-remove-view-not-exist: Cannot remove configuration of not existing view.');let E=Promise.resolve();if(this.visibleView===P){this.view.content.remove(P),this._stack.delete(P);const S=Array.from(this._stack.values()).pop();S?E=this._show(S):this.view.hide()}else this._stack.delete(P);return E}updatePosition(P){P&&(this._stack.values().next().value.position=P),this.view.attachTo(this._getBalloonPosition())}_show({view:P,balloonClassName:E=''}){return this.view.className=E,this.view.content.add(P).then(()=>{this.view.pin(this._getBalloonPosition())})}_getBalloonPosition(){return this._stack.values().next().value.position}destroy(){this.editor.ui.view.body.remove(this.view),this.view.destroy(),this._stack.clear(),super.destroy()}}u.a=T},function(r,u){'use strict';u.a=function({origin:w,originKeystrokeHandler:C,originFocusTracker:T,toolbar:P}){T.add(P.element),C.set('Alt+F10',(E,S)=>{T.isFocused&&!P.focusTracker.isFocused&&(P.focus(),S())}),P.keystrokes.set('Esc',(E,S)=>{P.focusTracker.isFocused&&(w.focus(),S())})}},function(r,u,f){'use strict';var h=f(47),w=f(6),C=f(188),T=f(193);const P=f.i(T.a)('px');class E extends C.a{constructor(S){super(S);const O=this.bindTemplate;this.set('isActive',!1),this.set('isSticky',!1),this.set('limiterElement',null),this.set('limiterOffset',50),this.set('_marginLeft',null),this.set('_isStickyToTheLimiter',!1),w.a.extend(this.template,{attributes:{class:[O.if('isSticky','ck-toolbar_sticky'),O.if('_isStickyToTheLimiter','ck-toolbar_sticky_bottom-limit')],style:{width:O.to('isSticky',(R)=>{return R?P(this._elementPlaceholder.getBoundingClientRect().width):null}),bottom:O.to('_isStickyToTheLimiter',(R)=>{return R?P(this.limiterOffset):null}),marginLeft:O.to('_marginLeft')}}}),this._elementPlaceholder=new w.a({tag:'div',attributes:{class:['ck-toolbar__placeholder'],style:{display:O.to('isSticky',(R)=>R?'block':'none'),height:O.to('isSticky',(R)=>{return R?P(this._toolbarRect.height):null})}}}).render()}init(){super.init(),this.element.parentNode.insertBefore(this._elementPlaceholder,this.element),this.listenTo(h.a.window,'scroll',()=>{this._checkIfShouldBeSticky()}),this.listenTo(this,'change:isActive',()=>{this._checkIfShouldBeSticky()})}destroy(){return super.destroy().then(()=>{this._elementPlaceholder.remove()})}_checkIfShouldBeSticky(){const S=this._limiterRect=this.limiterElement.getBoundingClientRect(),O=this._toolbarRect=this.element.getBoundingClientRect();this.isSticky=this.isActive&&0>S.top&&this._toolbarRect.height+this.limiterOffset<S.height,this.isSticky?(this._isStickyToTheLimiter=S.bottom<O.height+this.limiterOffset,this._marginLeft=this._isStickyToTheLimiter?null:P(-h.a.window.scrollX)):(this._isStickyToTheLimiter=!1,this._marginLeft=null)}}u.a=E},function(r,u,f){'use strict';var h=f(9),w=f(6);class C extends h.a{constructor(T){super(T),this.template=new w.a({tag:'span',attributes:{class:['ck-toolbar__separator']}})}}u.a=C},function(r,u,f){'use strict';var h=f(121),w=f(108);class C extends h.a{_doExecute(){const T=this._stack.pop();this.editor.document.enqueueChanges(()=>{const P=T.batch.deltas[T.batch.deltas.length-1],E=P.baseVersion+P.operations.length,S=Array.from(this.editor.document.history.getDeltas(E)).filter((O)=>{return!this._createdBatches.has(O.batch)});this._restoreSelection(T.selection.ranges,T.selection.isBackward,S),this._redo(T.batch)}),this.refreshState()}_redo(T){const P=this.editor.document,E=P.batch();this._createdBatches.add(E);const S=T.deltas.slice();S.reverse();for(let O of S){const R=O.baseVersion+O.operations.length;let V=[O.getReversed()];for(let F of P.history.getDeltas(R))this._createdBatches.has(F.batch)||(V=f.i(w.a)(V,[F],!0).deltasA);for(let F of V){F.baseVersion=P.version,E.addDelta(F);for(let I of F.operations)P.applyOperation(I)}}}}u.a=C},function(r,u,f){'use strict';var h=f(2),w=f(428),C=f(21),T=f(316),P=f.n(T),E=f(315),S=f.n(E);class O extends h.a{static get requires(){return[w.a]}static get pluginName(){return'undo/undo'}init(){const R=this.editor,V=R.t;this._addButton('undo',V('Undo'),'CTRL+Z',P.a),this._addButton('redo',V('Redo'),'CTRL+Y',S.a),R.keystrokes.set('CTRL+Z','undo'),R.keystrokes.set('CTRL+Y','redo'),R.keystrokes.set('CTRL+SHIFT+Z','redo')}_addButton(R,V,F,I){const N=this.editor,M=N.commands.get(R);N.ui.componentFactory.add(R,(D)=>{const q=new C.a(D);return q.set({label:V,icon:I,keystroke:F,tooltip:!0}),q.bind('isEnabled').to(M,'isEnabled'),this.listenTo(q,'execute',()=>N.execute(R)),q})}}u.a=O},function(r,u,f){'use strict';var h=f(121),w=f(108);class C extends h.a{_doExecute(T=null){let P=T?this._stack.findIndex((S)=>S.batch==T):this._stack.length-1;const E=this._stack.splice(P,1)[0];this.editor.document.enqueueChanges(()=>{const S=this._undo(E.batch),O=this.editor.document.history.getDeltas(E.batch.baseVersion);this._restoreSelection(E.selection.ranges,E.selection.isBackward,O),this.fire('revert',E.batch,S)}),this.refreshState()}_getItemIndexFromBaseVersion(T){for(let P=0;P<this._stack.length;P++)if(this._stack[P].batch.baseVersion==T)return P;return null}_undo(T){const P=this.editor.document,E=P.batch();this._createdBatches.add(E);const S=P.history,O=T.deltas.slice();O.reverse();for(let R of O){const V=R.baseVersion,F=V+R.operations.length,I=S.getDelta(V);if(null===I)continue;I.reverse();let N=[];for(let D of I)N.push(D.getReversed());const M={};for(let D of S.getDeltas(F)){const q=this._getItemIndexFromBaseVersion(D.baseVersion);null!==q&&(this._stack[q].selection.ranges=f.i(h.b)(this._stack[q].selection.ranges,N));const z=f.i(w.a)(N,[D],!0);N=z.deltasA;const U=z.deltasB;M[D.baseVersion]||(M[D.baseVersion]=[]),M[D.baseVersion]=M[D.baseVersion].concat(U)}for(let D of N){D.baseVersion=P.version,E.addDelta(D);for(let q of D.operations)P.applyOperation(q)}S.removeDelta(V);for(let D of N)S.removeDelta(D.baseVersion);for(let D in M)S.updateDelta(+D,M[D])}return E}}u.a=C},function(r,u,f){'use strict';var h=f(2),w=f(427),C=f(425);class T extends h.a{constructor(P){super(P),this._batchRegistry=new WeakSet}init(){this._undoCommand=new w.a(this.editor),this._redoCommand=new C.a(this.editor),this.editor.commands.set('undo',this._undoCommand),this.editor.commands.set('redo',this._redoCommand),this.listenTo(this.editor.document,'change',(P,E,S,O)=>{this._batchRegistry.has(O)||'transparent'==O.type||(this._redoCommand._createdBatches.has(O)?this._undoCommand.addBatch(O):!this._undoCommand._createdBatches.has(O)&&(this._undoCommand.addBatch(O),this._redoCommand.clearStack()),this._batchRegistry.add(O))},{priority:'highest'}),this.listenTo(this._undoCommand,'revert',(P,E,S)=>{this._redoCommand.addBatch(S)})}}u.a=T},function(r,u,f){'use strict';var h=f(99);u.a=class{constructor(C,T){this._config={},T&&this.define(T),C&&this._setObjectToTarget(this._config,C)}set(C,T){this._setToTarget(this._config,C,T)}define(C,T){this._setToTarget(this._config,C,T,!0)}get(C){return this._getFromSource(this._config,C)}_setToTarget(C,T,P,E=!1){if(f.i(h.a)(T))return void this._setObjectToTarget(C,T,E);const S=T.split('.');T=S.pop();for(let O of S)f.i(h.a)(C[O])||(C[O]={}),C=C[O];return f.i(h.a)(P)?(f.i(h.a)(C[T])||(C[T]={}),C=C[T],void this._setObjectToTarget(C,P,E)):void(E&&'undefined'!=typeof C[T]||(C[T]=P))}_getFromSource(C,T){const P=T.split('.');T=P.pop();for(let E of P){if(!f.i(h.a)(C[E])){C=null;break}C=C[E]}return C?C[T]:void 0}_setObjectToTarget(C,T,P){Object.keys(T).forEach((E)=>{this._setToTarget(C,E,T[E],P)})}}},function(r,u){'use strict';u.a=function(w,C){function T(){O&&(E.push(O),O=null)}function P(R){return O&&O.type==R}const E=[];let S=0,O;return w.forEach((R)=>{'equal'==R?(T(),S++):'insert'==R?(P('insert')?O.values.push(C[S]):(T(),O={type:'insert',index:S,values:[C[S]]}),S++):P('delete')?O.howMany++:(T(),O={type:'delete',index:S,howMany:1})}),T(),E}},function(r,u,f){'use strict';var w=f(191);u.a=function(C,T){const P=f.i(w.a)(C),E=f.i(w.a)(T);let S=0;for(;P[S]==E[S]&&P[S];)S++;return 0==S?null:P[S-1]}},function(r,u){'use strict';u.a=function(w){return w instanceof HTMLTextAreaElement?w.value:w.innerHTML}},function(r,u,f){'use strict';var w=f(47);u.a=function(C){for(;C&&'html'!=C.tagName.toLowerCase();){if('static'!=w.a.window.getComputedStyle(C).position)return C;C=C.parentElement}return null}},function(r,u){'use strict';u.a=function(w){let C=0;for(;w.previousSibling;)w=w.previousSibling,C++;return C}},function(r,u){'use strict';u.a=function(w,C,T){w.insertBefore(T,w.childNodes[C]||null)}},function(r,u,f){'use strict';function w(O,R,V){const{left:F,top:I,name:N}=O(R,V);return[N,V.clone().moveTo(F,I)]}function C(O,R,V,F,I){let N=0,M=0,D,q;const z=V.getArea();return O.some((U)=>{function $(){M=Y,N=H,D=W,q=K}const[K,W]=w(U,R,V);let H,Y;if(F)if(I){const G=F.getIntersection(I);H=G?G.getIntersectionArea(W):0}else H=F.getIntersectionArea(W);return I&&(Y=I.getIntersectionArea(W)),I&&!F?Y>M&&$():!I&&F?H>N&&$():Y>M&&H>=N?$():Y>=M&&H>N&&$(),H===z}),D?[q,D]:null}function T({left:O,top:R}){const{scrollX:V,scrollY:F}=P.a.window;return{left:O+V,top:R+F}}var P=f(47),E=f(437),S=f(433);u.a=function({element:O,target:R,positions:V,limiter:F,fitInViewport:I}){const N=f.i(S.a)(O.parentElement),M=new E.a(O),D=new E.a(R);let q,z;if(!F&&!I)[z,q]=w(V[0],D,M);else{const K=F&&new E.a(F).getVisible(),W=I&&E.a.getViewportRect();[z,q]=C(V,D,M,K,W)||w(V[0],D,M)}let{left:U,top:$}=T(q);if(N){const K=T(new E.a(N)),W=P.a.window.getComputedStyle(N);U-=K.left,$-=K.top,U+=N.scrollLeft,$+=N.scrollTop,U-=parseInt(W.borderLeftWidth,10),$-=parseInt(W.borderTopWidth,10)}return{left:U,top:$,name:z}}},function(r,u,f){'use strict';var h=f(47),w=f(192),C=f(237);const T=['top','right','bottom','left','width','height'];class P{constructor(E){Object.defineProperty(this,'_source',{value:E._source||E,writable:!1,enumerable:!1}),(f.i(C.a)(E)||f.i(w.a)(E))&&(E=E.getBoundingClientRect()),T.forEach((S)=>this[S]=E[S])}clone(){return new P(this)}moveTo(E,S){return this.top=S,this.right=E+this.width,this.bottom=S+this.height,this.left=E,this}moveBy(E,S){return this.top+=S,this.right+=E,this.left+=E,this.bottom+=S,this}getIntersection(E){const S={top:_Mathmax(this.top,E.top),right:_Mathmin(this.right,E.right),bottom:_Mathmin(this.bottom,E.bottom),left:_Mathmax(this.left,E.left)};return S.width=S.right-S.left,S.height=S.bottom-S.top,0>S.width||0>S.height?null:new P(S)}getIntersectionArea(E){const S=this.getIntersection(E);return S?S.getArea():0}getArea(){return this.width*this.height}getVisible(){const E=this._source;let S=this.clone();if(E!=h.a.document.body)for(let O=E.parentNode||E.commonAncestorContainer;O&&O!=h.a.document.body;){const R=new P(O),V=S.getIntersection(R);if(V)V.getArea()<S.getArea()&&(S=V);else return null;O=O.parentNode}return S}static getViewportRect(){const{innerWidth:E,innerHeight:S}=h.a.window;return new P({top:0,right:E,bottom:S,left:0,width:E,height:S})}}u.a=P},function(r,u){'use strict';u.a=function(w){const C=w.parentNode;C&&C.removeChild(w)}},function(r,u){'use strict';u.a=function(w,C){w instanceof HTMLTextAreaElement&&(w.value=C),w.innerHTML=C}},function(r,u){'use strict';u.a=class{constructor(){this._replacedElements=[]}replace(w,C){this._replacedElements.push({element:w,newElement:C}),w.style.display='none',C&&w.parentNode.insertBefore(C,w.nextSibling)}restore(){this._replacedElements.forEach(({element:w,newElement:C})=>{w.style.display='',C&&C.remove()}),this._replacedElements=[]}}},function(r,u){'use strict';const w=navigator.userAgent.toLowerCase(),C={mac:function(T){return-1<T.indexOf('macintosh')}(w)};u.a=C},function(r,u,f){'use strict';var h=f(543);u.a=class{constructor(C,T){this.source=C,this.name=T,this.path=[],this.stop=f.i(h.a)(),this.off=f.i(h.a)()}}},function(r,u,f){'use strict';var h=f(55),w=f(32),C=f.i(h.a)(w.a,'DataView');u.a=C},function(r,u,f){'use strict';function h(S){var O=-1,R=S?S.length:0;for(this.clear();++O<R;){var V=S[O];this.set(V[0],V[1])}}var w=f(490),C=f(491),T=f(492),P=f(493),E=f(494);h.prototype.clear=w.a,h.prototype['delete']=C.a,h.prototype.get=T.a,h.prototype.has=P.a,h.prototype.set=E.a,u.a=h},function(r,u,f){'use strict';var h=f(55),w=f(32),C=f.i(h.a)(w.a,'Promise');u.a=C},function(r,u,f){'use strict';var h=f(32),w=h.a.Reflect;u.a=w},function(r,u,f){'use strict';var h=f(55),w=f(32),C=f.i(h.a)(w.a,'WeakMap');u.a=C},function(r,u){'use strict';u.a=function(w,C){return w.set(C[0],C[1]),w}},function(r,u){'use strict';u.a=function(w,C){return w.add(C),w}},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=w.length;++T<P&&!(!1===C(w[T],T,w)););return w}},function(r,u){'use strict';u.a=function(w,C){for(var T=-1,P=w.length;++T<P;)if(C(w[T],T,w))return!0;return!1}},function(r,u,f){'use strict';var w=f(139),C=f(71);u.a=function(T,P){return T&&f.i(w.a)(P,f.i(C.a)(P),T)}},function(r,u,f){'use strict';var w=f(230);u.a=function(C,T){for(var P=-1,S=T.length,O=Array(S);++P<S;)O[P]=null==C?void 0:f.i(w.a)(C,T[P]);return O}},function(r,u){'use strict';u.a=function(w,C,T){return w===w&&(void 0!==T&&(w=w<=T?w:T),void 0!==C&&(w=w>=C?w:C)),w}},function(r,u,f){'use strict';var w=f(14),C=Object.create;u.a=function(T){return f.i(w.a)(T)?C(T):{}}},function(r,u,f){'use strict';var w=f(15),C=f(537);u.a=function(T,P,E,S){var O=T.length;for(E=f.i(w.a)(E),0>E&&(E=-E>O?0:O+E),S=void 0===S||S>O?O:f.i(w.a)(S),0>S&&(S+=O),S=E>S?0:f.i(C.a)(S);E<S;)T[E++]=P;return T}},function(r,u,f){'use strict';var w=f(85),C=f(12);u.a=function(T,P,E){var S=P(T);return f.i(C.a)(T)?S:f.i(w.a)(S,E(T))}},function(r,u){'use strict';u.a=function(w,C){return C in Object(w)}},function(r,u){'use strict';u.a=function(w,C,T,P){for(var E=T-1,S=w.length;++E<S;)if(P(w[E],C))return E;return-1}},function(r,u,f){'use strict';var w=f(123),C=f(207),T=f(484),P=f(485),E=f(141),S=f(12),O=f(91),R=f(529),F='[object Arguments]',I='[object Array]',N='[object Object]',M=Object.prototype,D=M.hasOwnProperty;u.a=function(q,z,U,$,K,W){var H=f.i(S.a)(q),Y=f.i(S.a)(z),G=I,Z=I;H||(G=f.i(E.a)(q),G=G==F?N:G),Y||(Z=f.i(E.a)(z),Z=Z==F?N:Z);var J=G==N&&!f.i(O.a)(q),Q=Z==N&&!f.i(O.a)(z),X=G==Z;if(X&&!J)return W||(W=new w.a),H||f.i(R.a)(q)?f.i(C.a)(q,z,U,$,K,W):f.i(T.a)(q,z,G,U,$,K,W);if(!(K&2)){var ee=J&&D.call(q,'__wrapped__'),te=Q&&D.call(z,'__wrapped__');if(ee||te){var ae=ee?q.value():q,ne=te?z.value():z;return W||(W=new w.a),U(ae,ne,$,K,W)}}return!!X&&(W||(W=new w.a),f.i(P.a)(q,z,U,$,K,W))}},function(r,u,f){'use strict';var w=f(123),C=f(130);u.a=function(E,S,O,R){var V=O.length,F=V,I=!R;if(null==E)return!F;for(E=Object(E);V--;){var N=O[V];if(I&&N[2]?N[1]!==E[N[0]]:!(N[0]in E))return!1}for(;++V<F;){N=O[V];var M=N[0],D=E[M],q=N[1];if(!(I&&N[2])){var z=new w.a;if(R)var U=R(D,q,M,E,S,z);if(void 0===U?!f.i(C.a)(q,D,R,1|2,z):!U)return!1}else if(void 0===D&&!(M in E))return!1}return!0}},function(r,u){'use strict';var w=Object.keys;u.a=function(C){return w(Object(C))}},function(r,u,f){'use strict';function h(S){S=null==S?S:Object(S);var O=[];for(var R in S)O.push(R);return O}var w=f(446),C=f(500),T=Object.prototype,P=w.a?w.a.enumerate:void 0,E=T.propertyIsEnumerable;P&&!E.call({valueOf:1},'valueOf')&&(h=function(S){return f.i(C.a)(P(S))}),u.a=h},function(r,u,f){'use strict';var w=f(461),C=f(488),T=f(212);u.a=function(P){var E=f.i(C.a)(P);return 1==E.length&&E[0][2]?f.i(T.a)(E[0][0],E[0][1]):function(S){return S===P||f.i(w.a)(S,P,E)}}},function(r,u,f){'use strict';var w=f(130),C=f(230),T=f(526),P=f(56),E=f(211),S=f(212),O=f(57);u.a=function(F,I){return f.i(P.a)(F)&&f.i(E.a)(I)?f.i(S.a)(f.i(O.a)(F),I):function(N){var M=f.i(C.a)(N,F);return M===void 0&&M===I?f.i(T.a)(N,F):f.i(w.a)(I,M,void 0,1|2)}}},function(r,u,f){'use strict';var w=f(39);u.a=function(C,T){var P=C.length;if(P)return T+=0>T?P:0,f.i(w.a)(T,P)?C[T]:void 0}},function(r,u,f){'use strict';var w=f(127);u.a=function(C){return function(T){return f.i(w.a)(T,C)}}},function(r,u,f){'use strict';var w=f(69),C=f(89),T=f(39),P=f(56),E=f(14),S=f(57);u.a=function(O,R,V,F){R=f.i(P.a)(R,O)?[R]:f.i(C.a)(R);for(var I=-1,N=R.length,D=O,q;null!=D&&++I<N;){if(q=f.i(S.a)(R[I]),f.i(E.a)(D)){var z=V;if(I!=N-1){var U=D[q];z=F?F(U,q,D):void 0,void 0===z&&(z=null==U?f.i(T.a)(R[I+1])?[]:{}:U)}f.i(w.a)(D,q,z)}D=D[q]}return O}},function(r,u,f){'use strict';var w=f(27);u.a=function(C,T){return f.i(w.a)(T,function(P){return[P,C[P]]})}},function(r,u,f){'use strict';var w=f(124),C=f(52),P=w.a?w.a.prototype:void 0,E=P?P.toString:void 0;u.a=function(S){if('string'==typeof S)return S;if(f.i(C.a)(S))return E?E.call(S):'';var O=S+'';return'0'==O&&1/S==-(1/0)?'-0':O}},function(r,u){'use strict';u.a=function(w){return w&&w.Object===Object?w:null}},function(r,u){'use strict';u.a=function(w,C){if(C)return w.slice();var T=new w.constructor(w.length);return w.copy(T),T}},function(r,u,f){'use strict';var w=f(138);u.a=function(C,T){var P=T?f.i(w.a)(C.buffer):C.buffer;return new C.constructor(P,C.byteOffset,C.byteLength)}},function(r,u,f){'use strict';var w=f(448),C=f(198),T=f(142);u.a=function(P,E,S){var O=E?S(f.i(T.a)(P),!0):f.i(T.a)(P);return f.i(C.a)(O,w.a,new P.constructor)}},function(r,u){'use strict';var w=/\w*$/;u.a=function(C){var T=new C.constructor(C.source,w.exec(C));return T.lastIndex=C.lastIndex,T}},function(r,u,f){'use strict';var w=f(449),C=f(198),T=f(95);u.a=function(P,E,S){var O=E?S(f.i(T.a)(P),!0):f.i(T.a)(P);return f.i(C.a)(O,w.a,new P.constructor)}},function(r,u,f){'use strict';var w=f(124),C=w.a?w.a.prototype:void 0,T=C?C.valueOf:void 0;u.a=function(P){return T?Object(T.call(P)):{}}},function(r,u,f){'use strict';var w=f(138);u.a=function(C,T){var P=T?f.i(w.a)(C.buffer):C.buffer;return new C.constructor(P,C.byteOffset,C.length)}},function(r,u,f){'use strict';var w=f(52);u.a=function(C,T){if(C!==T){var P=C!==void 0,E=null===C,S=C===C,O=f.i(w.a)(C),R=T!==void 0,V=null===T,F=T===T,I=f.i(w.a)(T);if(!V&&!I&&!O&&C>T||O&&R&&F&&!V&&!I||E&&R&&F||!P&&F||!S)return 1;if(!E&&!O&&!I&&C<T||I&&P&&S&&!E&&!O||V&&P&&S||!R&&S||!F)return-1}return 0}},function(r,u,f){'use strict';var w=f(139),C=f(208);u.a=function(T,P){return f.i(w.a)(T,f.i(C.a)(T),P)}},function(r,u,f){'use strict';var w=f(92),C=f(8);u.a=function(T){return f.i(C.a)(function(P,E){var S=-1,O=E.length,R=1<O?E[O-1]:void 0,V=2<O?E[2]:void 0;for(R=3<T.length&&'function'==typeof R?(O--,R):void 0,V&&f.i(w.a)(E[0],E[1],V)&&(R=3>O?void 0:R,O=1),P=Object(P);++S<O;){var F=E[S];F&&T(P,F,S,R)}return P})}},function(r,u,f){'use strict';var h=f(195),w=f(532),C=f(95),P=h.a&&1/f.i(C.a)(new h.a([,-0]))[1]==1/0?function(E){return new h.a(E)}:w.a;u.a=P},function(r,u,f){'use strict';var w=f(469),C=f(141),T=f(142),P=f(514);u.a=function(O){return function(R){var V=f.i(C.a)(R);return V=='[object Map]'?f.i(T.a)(R):V=='[object Set]'?f.i(P.a)(R):f.i(w.a)(R,O(R))}}},function(r,u,f){'use strict';var w=f(124),C=f(196),T=f(207),P=f(142),E=f(95),K=w.a?w.a.prototype:void 0,W=K?K.valueOf:void 0;u.a=function(H,Y,G,Z,J,Q,X){switch(G){case'[object DataView]':if(H.byteLength!=Y.byteLength||H.byteOffset!=Y.byteOffset)return!1;H=H.buffer,Y=Y.buffer;case'[object ArrayBuffer]':return H.byteLength==Y.byteLength&&Z(new C.a(H),new C.a(Y));case'[object Boolean]':case'[object Date]':return+H==+Y;case'[object Error]':return H.name==Y.name&&H.message==Y.message;case'[object Number]':return H==+H?H==+Y:Y!=+Y;case'[object RegExp]':case'[object String]':return H==Y+'';case'[object Map]':var ee=P.a;case'[object Set]':var te=Q&2;if(ee||(ee=E.a),H.size!=Y.size&&!te)return!1;var ae=X.get(H);return ae?ae==Y:(Q|=1,X.set(H,Y),f.i(T.a)(ee(H),ee(Y),Z,J,Q,X));case'[object Symbol]':if(W)return W.call(H)==W.call(Y);}return!1}},function(r,u,f){'use strict';var w=f(201),C=f(71);u.a=function(P,E,S,O,R,V){var F=R&2,I=f.i(C.a)(P),N=I.length,M=f.i(C.a)(E),D=M.length;if(N!=D&&!F)return!1;for(var q=N,z;q--;)if(z=I[q],F?!(z in E):!f.i(w.a)(E,z))return!1;var U=V.get(P);if(U)return U==E;var $=!0;V.set(P,E);for(var K=F;++q<N;){z=I[q];var W=P[z],H=E[z];if(O)var Y=F?O(H,W,z,E,P,V):O(W,H,z,P,E,V);if(void 0===Y?!(W===H||S(W,H,O,R,V)):!Y){$=!1;break}K||(K='constructor'==z)}if($&&!K){var G=P.constructor,Z=E.constructor;G!=Z&&'constructor'in P&&'constructor'in E&&!('function'==typeof G&&G instanceof G&&'function'==typeof Z&&Z instanceof Z)&&($=!1)}return V['delete'](P),$}},function(r,u,f){'use strict';var w=f(457),C=f(208),T=f(71);u.a=function(P){return f.i(w.a)(P,T.a,C.a)}},function(r,u,f){'use strict';var h=f(131),w=f.i(h.a)('length');u.a=w},function(r,u,f){'use strict';var w=f(211),C=f(538);u.a=function(T){for(var P=f.i(C.a)(T),E=P.length;E--;)P[E][2]=f.i(w.a)(P[E][1]);return P}},function(r,u,f){'use strict';var w=f(89),C=f(147),T=f(12),P=f(39),E=f(56),S=f(98),O=f(149),R=f(57);u.a=function(V,F,I){F=f.i(E.a)(F,V)?[F]:f.i(w.a)(F);for(var M=-1,D=F.length,N,q;++M<D&&(q=f.i(R.a)(F[M]),!!(N=null!=V&&I(V,q)));)V=V[q];if(N)return N;var D=V?V.length:0;return!!D&&f.i(S.a)(D)&&f.i(P.a)(q,D)&&(f.i(T.a)(V)||f.i(O.a)(V)||f.i(C.a)(V))}},function(r,u,f){'use strict';var w=f(94);u.a=function(){this.__data__=w.a?f.i(w.a)(null):{}}},function(r,u){'use strict';u.a=function(w){return this.has(w)&&delete this.__data__[w]}},function(r,u,f){'use strict';var w=f(94),T=Object.prototype,P=T.hasOwnProperty;u.a=function(E){var S=this.__data__;if(w.a){var O=S[E];return O==='__lodash_hash_undefined__'?void 0:O}return P.call(S,E)?S[E]:void 0}},function(r,u,f){'use strict';var w=f(94),C=Object.prototype,T=C.hasOwnProperty;u.a=function(P){var E=this.__data__;return w.a?E[P]!==void 0:T.call(E,P)}},function(r,u,f){'use strict';var w=f(94);u.a=function(T,P){var E=this.__data__;return E[T]=w.a&&void 0===P?'__lodash_hash_undefined__':P,this}},function(r,u){'use strict';var w=Object.prototype,C=w.hasOwnProperty;u.a=function(T){var P=T.length,E=T.constructor(P);return P&&'string'==typeof T[0]&&C.call(T,'index')&&(E.index=T.index,E.input=T.input),E}},function(r,u,f){'use strict';var w=f(138),C=f(473),T=f(474),P=f(475),E=f(476),S=f(477),O=f(478);u.a=function(X,ee,te,ae){var ne=X.constructor;return ee==='[object ArrayBuffer]'?f.i(w.a)(X):ee==='[object Boolean]'||ee==='[object Date]'?new ne(+X):ee==='[object DataView]'?f.i(C.a)(X,ae):ee==='[object Float32Array]'||ee==='[object Float64Array]'||ee==='[object Int8Array]'||ee==='[object Int16Array]'||ee==='[object Int32Array]'||ee==='[object Uint8Array]'||ee==='[object Uint8ClampedArray]'||ee==='[object Uint16Array]'||ee==='[object Uint32Array]'?f.i(O.a)(X,ae):ee==='[object Map]'?f.i(T.a)(X,ae,te):ee==='[object Number]'||ee==='[object String]'?new ne(X):ee==='[object RegExp]'?f.i(P.a)(X):ee==='[object Set]'?f.i(E.a)(X,ae,te):ee==='[object Symbol]'?f.i(S.a)(X):void 0}},function(r,u,f){'use strict';var w=f(455),C=f(140),T=f(93);u.a=function(P){return'function'!=typeof P.constructor||f.i(T.a)(P)?{}:f.i(w.a)(f.i(C.a)(P))}},function(r,u,f){'use strict';var w=f(147),C=f(12);u.a=function(T){return f.i(C.a)(T)||f.i(w.a)(T)}},function(r,u){'use strict';u.a=function(w){var C=typeof w;return'string'==C||'number'==C||'symbol'==C||'boolean'==C?'__proto__'!==w:null===w}},function(r,u){'use strict';u.a=function(w){for(var T=[],C;!(C=w.next()).done;)T.push(C.value);return T}},function(r,u){'use strict';u.a=function(){this.__data__=[]}},function(r,u,f){'use strict';var w=f(86),C=Array.prototype,T=C.splice;u.a=function(P){var E=this.__data__,S=f.i(w.a)(E,P);if(0>S)return!1;var O=E.length-1;return S==O?E.pop():T.call(E,S,1),!0}},function(r,u,f){'use strict';var w=f(86);u.a=function(C){var T=this.__data__,P=f.i(w.a)(T,C);return 0>P?void 0:T[P][1]}},function(r,u,f){'use strict';var w=f(86);u.a=function(C){return-1<f.i(w.a)(this.__data__,C)}},function(r,u,f){'use strict';var w=f(86);u.a=function(C,T){var P=this.__data__,E=f.i(w.a)(P,C);return 0>E?P.push([C,T]):P[E][1]=T,this}},function(r,u,f){'use strict';var w=f(444),C=f(82),T=f(194);u.a=function(){this.__data__={hash:new w.a,map:new(T.a||C.a),string:new w.a}}},function(r,u,f){'use strict';var w=f(90);u.a=function(C){return f.i(w.a)(this,C)['delete'](C)}},function(r,u,f){'use strict';var w=f(90);u.a=function(C){return f.i(w.a)(this,C).get(C)}},function(r,u,f){'use strict';var w=f(90);u.a=function(C){return f.i(w.a)(this,C).has(C)}},function(r,u,f){'use strict';var w=f(90);u.a=function(C,T){return f.i(w.a)(this,C).set(C,T),this}},function(r,u,f){'use strict';var w=f(127),C=f(38);u.a=function(T,P){return 1==P.length?T:f.i(w.a)(T,f.i(C.a)(P,0,-1))}},function(r,u){'use strict';u.a=function(C){return this.__data__.set(C,'__lodash_hash_undefined__'),this}},function(r,u){'use strict';u.a=function(w){return this.__data__.has(w)}},function(r,u){'use strict';u.a=function(w){var C=-1,T=Array(w.size);return w.forEach(function(P){T[++C]=[P,P]}),T}},function(r,u,f){'use strict';var w=f(82);u.a=function(){this.__data__=new w.a}},function(r,u){'use strict';u.a=function(w){return this.__data__['delete'](w)}},function(r,u){'use strict';u.a=function(w){return this.__data__.get(w)}},function(r,u){'use strict';u.a=function(w){return this.__data__.has(w)}},function(r,u,f){'use strict';var w=f(82),C=f(122);u.a=function(P,E){var S=this.__data__;return S instanceof w.a&&S.__data__.length==200&&(S=this.__data__=new C.a(S.__data__)),S.set(P,E),this}},function(r,u,f){'use strict';var h=f(531),w=f(539),C=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]/g,T=/\\(\\)?/g,P=f.i(h.a)(function(E){var S=[];return f.i(w.a)(E).replace(C,function(O,R,V,F){S.push(V?F.replace(T,'$1'):R||O)}),S});u.a=P},function(r,u,f){'use strict';var h=f(214),w=f(215),C=f(216),T=f(217),P=f(218),E=f(219),S=f(144),O=f(145),R=f(220),V=f(221),F=f(222),I=f(223),N=f(224),M=f(225),D=f(226),q=f(227),z=f(228),U=f(229),$=f(146),K=f(232),W=f(233),H=f(234),Y=f(235),G=f(236),Z=f(239),J=f(19),Q=f(240),X=f(241),ee=f(242),te=f(150),ae=f(243),ne=f(244),oe=f(245),ie=f(246),re=f(247),se=f(248),le=f(249),de=f(250),ce=f(251),ue=f(252),me=f(253),pe=f(254),ge=f(255),fe=f(256),he=f(257),be=f(258),_e=f(259),ke=f(260),we=f(261),ye=f(263),ve=f(264),xe=f(265),Ce=f(266),Ae=f(267),Te=f(268),Pe=f(100),Ee=f(151),Se=f(269),Oe=f(270),Re=f(271),Ve=f(272),Fe=f(273),Ie=f(274),Be=f(275),Le=f(276);u.a={chunk:h.a,compact:w.a,concat:C.a,difference:T.a,differenceBy:P.a,differenceWith:E.a,drop:S.a,dropRight:O.a,dropRightWhile:R.a,dropWhile:V.a,fill:F.a,findIndex:I.a,findLastIndex:N.a,first:M.a,flatten:D.a,flattenDeep:q.a,flattenDepth:z.a,fromPairs:U.a,head:$.a,indexOf:K.a,initial:W.a,intersection:H.a,intersectionBy:Y.a,intersectionWith:G.a,join:Z.a,last:J.a,lastIndexOf:Q.a,nth:X.a,pull:ee.a,pullAll:te.a,pullAllBy:ae.a,pullAllWith:ne.a,pullAt:oe.a,remove:ie.a,reverse:re.a,slice:se.a,sortedIndex:le.a,sortedIndexBy:de.a,sortedIndexOf:ce.a,sortedLastIndex:ue.a,sortedLastIndexBy:me.a,sortedLastIndexOf:pe.a,sortedUniq:ge.a,sortedUniqBy:fe.a,tail:he.a,take:be.a,takeRight:_e.a,takeRightWhile:ke.a,takeWhile:we.a,union:ye.a,unionBy:ve.a,unionWith:xe.a,uniq:Ce.a,uniqBy:Ae.a,uniqWith:Te.a,unzip:Pe.a,unzipWith:Ee.a,without:Se.a,xor:Oe.a,xorBy:Re.a,xorWith:Ve.a,zip:Fe.a,zipObject:Ie.a,zipObjectDeep:Be.a,zipWith:Le.a}},function(r,u,f){'use strict';var h=f(214),w=f(215),C=f(216),T=f(217),P=f(218),E=f(219),S=f(144),O=f(145),R=f(220),V=f(221),F=f(222),I=f(223),N=f(224),M=f(225),D=f(226),q=f(227),z=f(228),U=f(229),$=f(146),K=f(232),W=f(233),H=f(234),Y=f(235),G=f(236),Z=f(239),J=f(19),Q=f(240),X=f(241),ee=f(242),te=f(150),ae=f(243),ne=f(244),oe=f(245),ie=f(246),re=f(247),se=f(248),le=f(249),de=f(250),ce=f(251),ue=f(252),me=f(253),pe=f(254),ge=f(255),fe=f(256),he=f(257),be=f(258),_e=f(259),ke=f(260),we=f(261),ye=f(263),ve=f(264),xe=f(265),Ce=f(266),Ae=f(267),Te=f(268),Pe=f(100),Ee=f(151),Se=f(269),Oe=f(270),Re=f(271),Ve=f(272),Fe=f(273),Ie=f(274),Be=f(275),Le=f(276),Ne=f(521);f.d(u,'a',function(){return Ne.a})},function(r,u,f){'use strict';var h=f(69),w=f(139),C=f(481),T=f(97),P=f(93),E=f(530),S=Object.prototype,O=S.propertyIsEnumerable,R=!O.call({valueOf:1},'valueOf'),V=f.i(C.a)(function(F,I){if(R||f.i(P.a)(I)||f.i(T.a)(I))return void f.i(w.a)(I,f.i(E.a)(I),F);for(var N in I)f.i(h.a)(F,N,I[N])});u.a=V},function(r,u,f){'use strict';var w=f(199);u.a=function(C,T){return f.i(w.a)(C,!0,!0,T)}},function(r,u){'use strict';u.a=function(w){return function(){return w}}},function(r,u,f){'use strict';var w=f(458),C=f(489);u.a=function(T,P){return null!=T&&f.i(C.a)(T,P,w.a)}},function(r,u,f){'use strict';(function(h){var w=f(525),C=f(32),T={'function':!0,object:!0},P=T[typeof exports]&&exports&&!exports.nodeType?exports:void 0,E=T[typeof h]&&h&&!h.nodeType?h:void 0,S=E&&E.exports===P?P:void 0,O=S?C.a.Buffer:void 0,R=O?function(V){return V instanceof O}:f.i(w.a)(!1);u.a=R}).call(u,f(156)(r))},function(r,u,f){'use strict';var w=f(130);u.a=function(C,T){return f.i(w.a)(C,T)}},function(r,u,f){'use strict';var w=f(98),C=f(51),X={};X['[object Float32Array]']=X['[object Float64Array]']=X['[object Int8Array]']=X['[object Int16Array]']=X['[object Int32Array]']=X['[object Uint8Array]']=X['[object Uint8ClampedArray]']=X['[object Uint16Array]']=X['[object Uint32Array]']=!0,X['[object Arguments]']=X['[object Array]']=X['[object ArrayBuffer]']=X['[object Boolean]']=X['[object DataView]']=X['[object Date]']=X['[object Error]']=X['[object Function]']=X['[object Map]']=X['[object Number]']=X['[object Object]']=X['[object RegExp]']=X['[object Set]']=X['[object String]']=X['[object WeakMap]']=!1;var ee=Object.prototype,te=ee.toString;u.a=function(ae){return f.i(C.a)(ae)&&f.i(w.a)(ae.length)&&!!X[te.call(ae)]}},function(r,u,f){'use strict';var w=f(463),C=f(209),T=f(39),P=f(93),E=Object.prototype,S=E.hasOwnProperty;u.a=function(O){for(var R=-1,V=f.i(P.a)(O),F=f.i(w.a)(O),I=F.length,N=f.i(C.a)(O),D=N||[],q=D.length,z;++R<I;)z=F[R],!!N&&('length'==z||f.i(T.a)(z,q))||'constructor'==z&&(V||!S.call(O,z))||D.push(z);return D}},function(r,u,f){'use strict';function h(T,P){if('function'!=typeof T||P&&'function'!=typeof P)throw new TypeError(C);var E=function(){var S=arguments,O=P?P.apply(this,S):S[0],R=E.cache;if(R.has(O))return R.get(O);var V=T.apply(this,S);return E.cache=R.set(O,V),V};return E.cache=new(h.Cache||w.a),E}var w=f(122),C='Expected a function';h.Cache=w.a,u.a=h},function(r,u){'use strict';u.a=function(){}},function(r,u){'use strict';var h=Date.now;u.a=h},function(r,u,f){'use strict';var w=f(131),C=f(467),T=f(56),P=f(57);u.a=function(E){return f.i(T.a)(E)?f.i(w.a)(f.i(P.a)(E)):f.i(C.a)(E)}},function(r,u,f){'use strict';var w=f(143),C=f(14);u.a=function(P,E,S){var O=!0,R=!0;if('function'!=typeof P)throw new TypeError('Expected a function');return f.i(C.a)(S)&&(O='leading'in S?!!S.leading:O,R='trailing'in S?!!S.trailing:R),f.i(w.a)(P,E,{leading:O,maxWait:E,trailing:R})}},function(r,u,f){'use strict';var w=f(262),C=1/0;u.a=function(P){if(!P)return 0===P?P:0;if(P=f.i(w.a)(P),P===C||P===-C){var E=0>P?-1:1;return E*1.7976931348623157e308}return P===P?P:0}},function(r,u,f){'use strict';var w=f(454),C=f(15);u.a=function(P){return P?f.i(w.a)(f.i(C.a)(P),0,4294967295):0}},function(r,u,f){'use strict';var h=f(483),w=f(71),C=f.i(h.a)(w.a);u.a=C},function(r,u,f){'use strict';var w=f(470);u.a=function(C){return null==C?'':f.i(w.a)(C)}},function(r,u,f){'use strict';var h=f(544);u.a=class{constructor(C){this.lang=C||'en',this.t=(...T)=>this._t(...T)}_t(C,T){let P=f.i(h.a)(this.lang,C);return T&&(P=P.replace(/\%(\d+)/g,(E,S)=>{return S<T.length?T[S]:E})),P}}},function(r,u){'use strict';u.a=function(w,C){if(w.size!=C.size)return!1;for(let T of w.entries()){let P=JSON.stringify(T[1]),E=JSON.stringify(C.get(T[0]));if(P!==E)return!1}return!0}},function(r,u){'use strict';const h={get(w){return'number'==typeof w?w:this[w]||this.normal},highest:1e5,high:1e3,normal:0,low:-1e3,lowest:-1e5};u.a=h},function(r,u){'use strict';u.a=function(){return function w(){w.called=!0}}},function(r,u){'use strict';function C(E,S){return E in P&&S in P[E]}u.a=function(E,S){return C(E,S)?P[E][S]:S.replace(/ \[context: [^\]]+\]$/,'')};let P={}},function(r,u,f){'use strict';function h(q){return q==I.d.arrowright||q==I.d.arrowleft||q==I.d.arrowup||q==I.d.arrowdown}function w(q){return q==I.d.delete||q==I.d.backspace}function C(q){for(;q;){if(q instanceof R.a&&!(q instanceof V.a))return!0;q=q.parent}return!1}var T=f(2),P=f(372),E=f(3),S=f(60),O=f(5),R=f(77),V=f(173),F=f(153),I=f(22),N=f(326),M=f.n(N);class D extends T.a{static get pluginName(){return'widget/widget'}init(){const q=this.editor.editing.view;let z;this.editor.editing.modelToView.on('selection',(U,$,K,W)=>{z&&z.hasClass(F.d)&&z.removeClass(F.d);const H=W.viewSelection,Y=H.getSelectedElement();Y&&f.i(F.b)(Y)&&(H.setFake(!0,{label:f.i(F.e)(Y)}),Y.addClass(F.d),z=Y)},{priority:'low'}),q.addObserver(P.a),this.listenTo(q,'mousedown',(...U)=>this._onMousedown(...U)),this.listenTo(q,'keydown',(...U)=>this._onKeydown(...U),{priority:'high'})}_onMousedown(q,z){const U=this.editor,$=U.editing.view;let K=z.target;if(C(K))return;if(!f.i(F.b)(K)&&(K=K.findAncestor(F.b),!K))return;z.preventDefault(),$.isFocused||$.focus();const W=U.editing.mapper.toModelElement(K);U.document.enqueueChanges(()=>{this._setSelectionOverElement(W)})}_onKeydown(q,z){const U=z.keyCode,$=U==I.d.delete||U==I.d.arrowdown||U==I.d.arrowright;(w(U)&&this._handleDelete($)||h(U)&&this._handleArrowKeys($))&&(z.preventDefault(),q.stop())}_handleDelete(q){const z=this.editor.document,U=z.selection;if(!U.isCollapsed)return;const $=this._getObjectElementNextToSelection(q);if($)return z.enqueueChanges(()=>{const K=U.anchor.parent;if(K.isEmpty){const W=z.batch();W.remove(K)}this._setSelectionOverElement($)}),!0}_handleArrowKeys(q){const z=this.editor.document,U=z.schema,$=z.selection,K=$.getSelectedElement();if(K&&U.objects.has(K.name)){const H=q?$.getLastPosition():$.getFirstPosition(),Y=z.getNearestSelectionRange(H,q?'forward':'backward');return Y&&z.enqueueChanges(()=>{$.setRanges([Y])}),!0}if(!$.isCollapsed)return;const W=this._getObjectElementNextToSelection(q);if(W instanceof O.a&&z.schema.objects.has(W.name))return z.enqueueChanges(()=>{this._setSelectionOverElement(W)}),!0}_setSelectionOverElement(q){this.editor.document.selection.setRanges([E.a.createOn(q)])}_getObjectElementNextToSelection(q){const z=this.editor.document,U=z.schema,$=z.selection,K=this.editor.data,W=S.a.createFromSelection($);K.modifySelection(W,{direction:q?'forward':'backward'});const H=q?W.focus.nodeBefore:W.focus.nodeAfter;return H instanceof O.a&&U.objects.has(H.name)?H:null}}u.a=D}])});
- //# sourceMappingURL=ckeditor.js.map
|