<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-3fa00560"],{"09ac":function(t,e,s){"use strict";s.d(e,"a",(function(){return r}));var n=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class r{constructor(t={}){"string"===typeof t&amp;&amp;(t="transparent"===t?{isUndoable:!1}:{},Object(n["T"])("batch-constructor-deprecated-string-type"));const{isUndoable:e=!0,isLocal:s=!0,isUndo:r=!1,isTyping:i=!1}=t;this.operations=[],this.isUndoable=e,this.isLocal=s,this.isUndo=r,this.isTyping=i}get type(){return Object(n["T"])("batch-type-deprecated"),"default"}get baseVersion(){for(const t of this.operations)if(null!==t.baseVersion)return t.baseVersion;return null}addOperation(t){return t.batch=this,this.operations.push(t),t}}},"0f930":function(t,e,s){"use strict";s.d(e,"a",(function(){return i}));var n=s("ad6b"),r=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class i extends(Object(r["f"])(n["a"])){constructor(t,e){super(t,e),o.call(this)}detach(){this.stopListening()}toRange(){return new n["a"](this.start,this.end)}static fromRange(t){return new i(t.start,t.end)}}function o(){this.listenTo(this.root.document.model,"applyOperation",(t,e)=&gt;{const s=e[0];s.isDocumentOperation&amp;&amp;a.call(this,s)},{priority:"low"})}function a(t){const e=this.getTransformedByOperation(t),s=n["a"]._createFromRanges(e),r=!s.isEqual(this),i=h(this,t);let o=null;if(r){"$graveyard"==s.root.rootName&amp;&amp;(o="remove"==t.type?t.sourcePosition:t.deletionPosition);const e=this.toRange();this.start=s.start,this.end=s.end,this.fire("change:range",e,{deletionPosition:o})}else i&amp;&amp;this.fire("change:content",this.toRange(),{deletionPosition:o})}function h(t,e){switch(e.type){case"insert":return t.containsPosition(e.position);case"move":case"remove":case"reinsert":case"merge":return t.containsPosition(e.sourcePosition)||t.start.isEqual(e.sourcePosition)||t.containsPosition(e.targetPosition);case"split":return t.containsPosition(e.splitPosition)||t.containsPosition(e.insertionPosition)}return!1}i.prototype.is=function(t){return"liveRange"===t||"model:liveRange"===t||"range"==t||"model:range"===t}},"41db":function(t,e,s){"use strict";s.d(e,"a",(function(){return _}));var n=s("9cf5"),r=s("ad6b");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class i{constructor(t){this._changesInElement=new Map,this._elementSnapshots=new Map,this._changedMarkers=new Map,this._changedRoots=new Map,this._changeCount=0,this._cachedChanges=null,this._cachedChangesWithGraveyard=null,this._refreshedItems=new Set,this._markerCollection=t}get isEmpty(){return 0==this._changesInElement.size&amp;&amp;0==this._changedMarkers.size&amp;&amp;0==this._changedRoots.size}bufferOperation(t){const e=t;switch(e.type){case"insert":if(this._isInInsertedElement(e.position.parent))return;this._markInsert(e.position.parent,e.position.offset,e.nodes.maxOffset);break;case"addAttribute":case"removeAttribute":case"changeAttribute":for(const t of e.range.getItems({shallow:!0}))this._isInInsertedElement(t.parent)||this._markAttribute(t);break;case"remove":case"move":case"reinsert":{if(e.sourcePosition.isEqual(e.targetPosition)||e.sourcePosition.getShiftedBy(e.howMany).isEqual(e.targetPosition))return;const t=this._isInInsertedElement(e.sourcePosition.parent),s=this._isInInsertedElement(e.targetPosition.parent);t||this._markRemove(e.sourcePosition.parent,e.sourcePosition.offset,e.howMany),s||this._markInsert(e.targetPosition.parent,e.getMovedRangeStart().offset,e.howMany);break}case"rename":{if(this._isInInsertedElement(e.position.parent))return;this._markRemove(e.position.parent,e.position.offset,1),this._markInsert(e.position.parent,e.position.offset,1);const t=r["a"]._createFromPositionAndShift(e.position,1);for(const e of this._markerCollection.getMarkersIntersectingRange(t)){const t=e.getData();this.bufferMarkerChange(e.name,t,t)}break}case"split":{const t=e.splitPosition.parent;this._isInInsertedElement(t)||this._markRemove(t,e.splitPosition.offset,e.howMany),this._isInInsertedElement(e.insertionPosition.parent)||this._markInsert(e.insertionPosition.parent,e.insertionPosition.offset,1),e.graveyardPosition&amp;&amp;this._markRemove(e.graveyardPosition.parent,e.graveyardPosition.offset,1);break}case"merge":{const t=e.sourcePosition.parent;this._isInInsertedElement(t.parent)||this._markRemove(t.parent,t.startOffset,1);const s=e.graveyardPosition.parent;this._markInsert(s,e.graveyardPosition.offset,1);const n=e.targetPosition.parent;this._isInInsertedElement(n)||this._markInsert(n,e.targetPosition.offset,t.maxOffset);break}case"detachRoot":case"addRoot":{const t=e.affectedSelectable;if(!t._isLoaded)return;if(t.isAttached()==e.isAdd)return;this._bufferRootStateChange(e.rootName,e.isAdd);break}case"addRootAttribute":case"removeRootAttribute":case"changeRootAttribute":{if(!e.root._isLoaded)return;const t=e.root.rootName;this._bufferRootAttributeChange(t,e.key,e.oldValue,e.newValue);break}}this._cachedChanges=null}bufferMarkerChange(t,e,s){e.range&amp;&amp;e.range.root.is("rootElement")&amp;&amp;!e.range.root._isLoaded&amp;&amp;(e.range=null),s.range&amp;&amp;s.range.root.is("rootElement")&amp;&amp;!s.range.root._isLoaded&amp;&amp;(s.range=null);let n=this._changedMarkers.get(t);n?n.newMarkerData=s:(n={newMarkerData:s,oldMarkerData:e},this._changedMarkers.set(t,n)),null==n.oldMarkerData.range&amp;&amp;null==s.range&amp;&amp;this._changedMarkers.delete(t)}getMarkersToRemove(){const t=[];for(const[e,s]of this._changedMarkers)null!=s.oldMarkerData.range&amp;&amp;t.push({name:e,range:s.oldMarkerData.range});return t}getMarkersToAdd(){const t=[];for(const[e,s]of this._changedMarkers)null!=s.newMarkerData.range&amp;&amp;t.push({name:e,range:s.newMarkerData.range});return t}getChangedMarkers(){return Array.from(this._changedMarkers).map(([t,e])=&gt;({name:t,data:{oldRange:e.oldMarkerData.range,newRange:e.newMarkerData.range}}))}hasDataChanges(){if(this.getChanges().length)return!0;if(this._changedRoots.size&gt;0)return!0;for(const{newMarkerData:t,oldMarkerData:e}of this._changedMarkers.values()){if(t.affectsData!==e.affectsData)return!0;if(t.affectsData){const s=t.range&amp;&amp;!e.range,n=!t.range&amp;&amp;e.range,r=t.range&amp;&amp;e.range&amp;&amp;!t.range.isEqual(e.range);if(s||n||r)return!0}}return!1}getChanges(t={}){if(this._cachedChanges)return t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice();let e=[];for(const s of this._changesInElement.keys()){const t=this._changesInElement.get(s).sort((t,e)=&gt;t.offset===e.offset?t.type!=e.type?"remove"==t.type?-1:1:0:t.offset&lt;e.offset?-1:1),i=this._elementSnapshots.get(s),h=o(s.getChildren()),c=a(i.length,t);let f=0,l=0;for(const o of c)if("i"===o)e.push(this._getInsertDiff(s,f,h[f])),f++;else if("r"===o)e.push(this._getRemoveDiff(s,f,i[l])),l++;else if("a"===o){const t=h[f].attributes,o=i[l].attributes;let a;if("$text"==h[f].name)a=new r["a"](n["a"]._createAt(s,f),n["a"]._createAt(s,f+1));else{const t=s.offsetToIndex(f);a=new r["a"](n["a"]._createAt(s,f),n["a"]._createAt(s.getChild(t),0))}e.push(...this._getAttributesDiff(a,o,t)),f++,l++}else f++,l++}e.sort((t,e)=&gt;t.position.root!=e.position.root?t.position.root.rootName&lt;e.position.root.rootName?-1:1:t.position.isEqual(e.position)?t.changeCount-e.changeCount:t.position.isBefore(e.position)?-1:1);for(let s=1,n=0;s&lt;e.length;s++){const t=e[n],r=e[s],i="remove"==t.type&amp;&amp;"remove"==r.type&amp;&amp;"$text"==t.name&amp;&amp;"$text"==r.name&amp;&amp;t.position.isEqual(r.position),o="insert"==t.type&amp;&amp;"insert"==r.type&amp;&amp;"$text"==t.name&amp;&amp;"$text"==r.name&amp;&amp;t.position.parent==r.position.parent&amp;&amp;t.position.offset+t.length==r.position.offset,a="attribute"==t.type&amp;&amp;"attribute"==r.type&amp;&amp;t.position.parent==r.position.parent&amp;&amp;t.range.isFlat&amp;&amp;r.range.isFlat&amp;&amp;t.position.offset+t.length==r.position.offset&amp;&amp;t.attributeKey==r.attributeKey&amp;&amp;t.attributeOldValue==r.attributeOldValue&amp;&amp;t.attributeNewValue==r.attributeNewValue;i||o||a?(t.length++,a&amp;&amp;(t.range.end=t.range.end.getShiftedBy(1)),e[s]=null):n=s}e=e.filter(t=&gt;t);for(const s of e)delete s.changeCount,"attribute"==s.type&amp;&amp;(delete s.position,delete s.length);return this._changeCount=0,this._cachedChangesWithGraveyard=e,this._cachedChanges=e.filter(h),t.includeChangesInGraveyard?this._cachedChangesWithGraveyard.slice():this._cachedChanges.slice()}getChangedRoots(){return Array.from(this._changedRoots.values()).map(t=&gt;{const e={...t};return void 0!==e.state&amp;&amp;delete e.attributes,e})}getRefreshedItems(){return new Set(this._refreshedItems)}reset(){this._changesInElement.clear(),this._elementSnapshots.clear(),this._changedMarkers.clear(),this._changedRoots.clear(),this._refreshedItems=new Set,this._cachedChanges=null}_bufferRootStateChange(t,e){if(!this._changedRoots.has(t))return void this._changedRoots.set(t,{name:t,state:e?"attached":"detached"});const s=this._changedRoots.get(t);void 0!==s.state?(delete s.state,void 0===s.attributes&amp;&amp;this._changedRoots.delete(t)):s.state=e?"attached":"detached"}_bufferRootAttributeChange(t,e,s,n){const r=this._changedRoots.get(t)||{name:t},i=r.attributes||{};if(i[e]){const t=i[e];n===t.oldValue?delete i[e]:t.newValue=n}else i[e]={oldValue:s,newValue:n};0===Object.entries(i).length?(delete r.attributes,void 0===r.state&amp;&amp;this._changedRoots.delete(t)):(r.attributes=i,this._changedRoots.set(t,r))}_refreshItem(t){if(this._isInInsertedElement(t.parent))return;this._markRemove(t.parent,t.startOffset,t.offsetSize),this._markInsert(t.parent,t.startOffset,t.offsetSize),this._refreshedItems.add(t);const e=r["a"]._createOn(t);for(const s of this._markerCollection.getMarkersIntersectingRange(e)){const t=s.getData();this.bufferMarkerChange(s.name,t,t)}this._cachedChanges=null}_bufferRootLoad(t){if(t.isAttached()){this._bufferRootStateChange(t.rootName,!0),this._markInsert(t,0,t.maxOffset);for(const e of t.getAttributeKeys())this._bufferRootAttributeChange(t.rootName,e,null,t.getAttribute(e));for(const e of this._markerCollection)if(e.getRange().root==t){const t=e.getData();this.bufferMarkerChange(e.name,{...t,range:null},t)}}}_markInsert(t,e,s){if(t.root.is("rootElement")&amp;&amp;!t.root._isLoaded)return;const n={type:"insert",offset:e,howMany:s,count:this._changeCount++};this._markChange(t,n)}_markRemove(t,e,s){if(t.root.is("rootElement")&amp;&amp;!t.root._isLoaded)return;const n={type:"remove",offset:e,howMany:s,count:this._changeCount++};this._markChange(t,n),this._removeAllNestedChanges(t,e,s)}_markAttribute(t){if(t.root.is("rootElement")&amp;&amp;!t.root._isLoaded)return;const e={type:"attribute",offset:t.startOffset,howMany:t.offsetSize,count:this._changeCount++};this._markChange(t.parent,e)}_markChange(t,e){this._makeSnapshot(t);const s=this._getChangesForElement(t);this._handleChange(e,s),s.push(e);for(let n=0;n&lt;s.length;n++)s[n].howMany&lt;1&amp;&amp;(s.splice(n,1),n--)}_getChangesForElement(t){let e;return this._changesInElement.has(t)?e=this._changesInElement.get(t):(e=[],this._changesInElement.set(t,e)),e}_makeSnapshot(t){this._elementSnapshots.has(t)||this._elementSnapshots.set(t,o(t.getChildren()))}_handleChange(t,e){t.nodesToHandle=t.howMany;for(const s of e){const n=t.offset+t.howMany,r=s.offset+s.howMany;if("insert"==t.type&amp;&amp;("insert"==s.type&amp;&amp;(t.offset&lt;=s.offset?s.offset+=t.howMany:t.offset&lt;r&amp;&amp;(s.howMany+=t.nodesToHandle,t.nodesToHandle=0)),"remove"==s.type&amp;&amp;t.offset&lt;s.offset&amp;&amp;(s.offset+=t.howMany),"attribute"==s.type))if(t.offset&lt;=s.offset)s.offset+=t.howMany;else if(t.offset&lt;r){const r=s.howMany;s.howMany=t.offset-s.offset,e.unshift({type:"attribute",offset:n,howMany:r-s.howMany,count:this._changeCount++})}if("remove"==t.type){if("insert"==s.type)if(n&lt;=s.offset)s.offset-=t.howMany;else if(n&lt;=r)if(t.offset&lt;s.offset){const e=n-s.offset;s.offset=t.offset,s.howMany-=e,t.nodesToHandle-=e}else s.howMany-=t.nodesToHandle,t.nodesToHandle=0;else if(t.offset&lt;=s.offset)t.nodesToHandle-=s.howMany,s.howMany=0;else if(t.offset&lt;r){const e=r-t.offset;s.howMany-=e,t.nodesToHandle-=e}if("remove"==s.type&amp;&amp;(n&lt;=s.offset?s.offset-=t.howMany:t.offset&lt;s.offset&amp;&amp;(t.nodesToHandle+=s.howMany,s.howMany=0)),"attribute"==s.type)if(n&lt;=s.offset)s.offset-=t.howMany;else if(t.offset&lt;s.offset){const e=n-s.offset;s.offset=t.offset,s.howMany-=e}else if(t.offset&lt;r)if(n&lt;=r){const n=s.howMany;s.howMany=t.offset-s.offset;const r=n-s.howMany-t.nodesToHandle;e.unshift({type:"attribute",offset:t.offset,howMany:r,count:this._changeCount++})}else s.howMany-=r-t.offset}if("attribute"==t.type){if("insert"==s.type)if(t.offset&lt;s.offset&amp;&amp;n&gt;s.offset){if(n&gt;r){const t={type:"attribute",offset:r,howMany:n-r,count:this._changeCount++};this._handleChange(t,e),e.push(t)}t.nodesToHandle=s.offset-t.offset,t.howMany=t.nodesToHandle}else t.offset&gt;=s.offset&amp;&amp;t.offset&lt;r&amp;&amp;(n&gt;r?(t.nodesToHandle=n-r,t.offset=r):t.nodesToHandle=0);if("remove"==s.type&amp;&amp;t.offset&lt;s.offset&amp;&amp;n&gt;s.offset){const r={type:"attribute",offset:s.offset,howMany:n-s.offset,count:this._changeCount++};this._handleChange(r,e),e.push(r),t.nodesToHandle=s.offset-t.offset,t.howMany=t.nodesToHandle}"attribute"==s.type&amp;&amp;(t.offset&gt;=s.offset&amp;&amp;n&lt;=r?(t.nodesToHandle=0,t.howMany=0,t.offset=0):t.offset&lt;=s.offset&amp;&amp;n&gt;=r&amp;&amp;(s.howMany=0))}}t.howMany=t.nodesToHandle,delete t.nodesToHandle}_getInsertDiff(t,e,s){return{type:"insert",position:n["a"]._createAt(t,e),name:s.name,attributes:new Map(s.attributes),length:1,changeCount:this._changeCount++,_element:s.element}}_getRemoveDiff(t,e,s){return{type:"remove",position:n["a"]._createAt(t,e),name:s.name,attributes:new Map(s.attributes),length:1,changeCount:this._changeCount++,_element:s.element}}_getAttributesDiff(t,e,s){const n=[];s=new Map(s);for(const[r,i]of e){const e=s.has(r)?s.get(r):null;e!==i&amp;&amp;n.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:i,attributeNewValue:e,changeCount:this._changeCount++}),s.delete(r)}for(const[r,i]of s)n.push({type:"attribute",position:t.start,range:t.clone(),length:1,attributeKey:r,attributeOldValue:null,attributeNewValue:i,changeCount:this._changeCount++});return n}_isInInsertedElement(t){const e=t.parent;if(!e)return!1;const s=this._changesInElement.get(e),n=t.startOffset;if(s)for(const r of s)if("insert"==r.type&amp;&amp;n&gt;=r.offset&amp;&amp;n&lt;r.offset+r.howMany)return!0;return this._isInInsertedElement(e)}_removeAllNestedChanges(t,e,s){const i=new r["a"](n["a"]._createAt(t,e),n["a"]._createAt(t,e+s));for(const n of i.getItems({shallow:!0}))n.is("element")&amp;&amp;(this._elementSnapshots.delete(n),this._changesInElement.delete(n),this._removeAllNestedChanges(n,0,n.maxOffset))}}function o(t){const e=[];for(const s of t)if(s.is("$text"))for(let t=0;t&lt;s.data.length;t++)e.push({name:"$text",attributes:new Map(s.getAttributes())});else e.push({name:s.name,attributes:new Map(s.getAttributes()),element:s});return e}function a(t,e){const s=[];let n=0,r=0;for(const i of e){if(i.offset&gt;n){for(let t=0;t&lt;i.offset-n;t++)s.push("e");r+=i.offset-n}if("insert"==i.type){for(let t=0;t&lt;i.howMany;t++)s.push("i");n=i.offset+i.howMany}else if("remove"==i.type){for(let t=0;t&lt;i.howMany;t++)s.push("r");n=i.offset,r+=i.howMany}else s.push(..."a".repeat(i.howMany).split("")),n=i.offset+i.howMany,r+=i.howMany}if(r&lt;t)for(let i=0;i&lt;t-r-n;i++)s.push("e");return s}function h(t){const e="position"in t&amp;&amp;"$graveyard"==t.position.root.rootName,s="range"in t&amp;&amp;"$graveyard"==t.range.root.rootName;return!e&amp;&amp;!s}var c=s("c494"),f=s("940b"),l=s("6576"),u=s("c993"),g=s("758b");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
const d="$graveyard";class _ extends(Object(u["f"])()){constructor(t){super(),this.model=t,this.history=new f["a"],this.selection=new c["a"](this),this.roots=new u["b"]({idProperty:"rootName"}),this.differ=new i(t.markers),this.isReadOnly=!1,this._postFixers=new Set,this._hasSelectionChangedFromTheLastChangeBlock=!1,this.createRoot("$root",d),this.listenTo(t,"applyOperation",(t,e)=&gt;{const s=e[0];s.isDocumentOperation&amp;&amp;this.differ.bufferOperation(s)},{priority:"high"}),this.listenTo(t,"applyOperation",(t,e)=&gt;{const s=e[0];s.isDocumentOperation&amp;&amp;this.history.addOperation(s)},{priority:"low"}),this.listenTo(this.selection,"change",()=&gt;{this._hasSelectionChangedFromTheLastChangeBlock=!0}),this.listenTo(t.markers,"update",(t,e,s,n,r)=&gt;{const i={...e.getData(),range:n};this.differ.bufferMarkerChange(e.name,r,i),null===s&amp;&amp;e.on("change",(t,s)=&gt;{const n=e.getData();this.differ.bufferMarkerChange(e.name,{...n,range:s},n)})}),this.registerPostFixer(t=&gt;{let e=!1;for(const s of this.roots)s.isAttached()||s.isEmpty||(t.remove(t.createRangeIn(s)),e=!0);for(const s of this.model.markers)s.getRange().root.isAttached()||(t.removeMarker(s),e=!0);return e})}get version(){return this.history.version}set version(t){this.history.version=t}get graveyard(){return this.getRoot(d)}createRoot(t="$root",e="main"){if(this.roots.get(e))throw new u["a"]("model-document-createroot-name-exists",this,{name:e});const s=new l["a"](this,t,e);return this.roots.add(s),s}destroy(){this.selection.destroy(),this.stopListening()}getRoot(t="main"){return this.roots.get(t)}getRootNames(t=!1){return this.getRoots(t).map(t=&gt;t.rootName)}getRoots(t=!1){return this.roots.filter(e=&gt;e!=this.graveyard&amp;&amp;(t||e.isAttached())&amp;&amp;e._isLoaded)}registerPostFixer(t){this._postFixers.add(t)}toJSON(){const t=Object(g["a"])(this);return t.selection="[engine.model.DocumentSelection]",t.model="[engine.model.Model]",t}_handleChangeBlock(t){this._hasDocumentChangedFromTheLastChangeBlock()&amp;&amp;(this._callPostFixers(t),this.selection.refresh(),this.differ.hasDataChanges()?this.fire("change:data",t.batch):this.fire("change",t.batch),this.selection.refresh(),this.differ.reset()),this._hasSelectionChangedFromTheLastChangeBlock=!1}_hasDocumentChangedFromTheLastChangeBlock(){return!this.differ.isEmpty||this._hasSelectionChangedFromTheLastChangeBlock}_getDefaultRoot(){const t=this.getRoots();return t.length?t[0]:this.graveyard}_getDefaultRange(){const t=this._getDefaultRoot(),e=this.model,s=e.schema,n=e.createPositionFromPath(t,[0]),r=s.getNearestSelectionRange(n);return r||e.createRange(n)}_validateSelectionRange(t){return p(t.start)&amp;&amp;p(t.end)}_callPostFixers(t){let e=!1;do{for(const s of this._postFixers)if(this.selection.refresh(),e=s(t),e)break}while(e)}}function p(t){const e=t.textNode;if(e){const s=e.data,n=t.offset-e.startOffset;return!Object(u["L"])(s,n)&amp;&amp;!Object(u["J"])(s,n)}return!0}},4343:function(t,e,s){"use strict";s.d(e,"a",(function(){return o}));var n=s("45a6"),r=s("0f930"),i=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class o extends(Object(i["f"])()){constructor(){super(...arguments),this._markers=new Map}[Symbol.iterator](){return this._markers.values()}has(t){const e=t instanceof a?t.name:t;return this._markers.has(e)}get(t){return this._markers.get(t)||null}_set(t,e,s=!1,n=!1){const o=t instanceof a?t.name:t;if(o.includes(","))throw new i["a"]("markercollection-incorrect-marker-name",this);const h=this._markers.get(o);if(h){const t=h.getData(),i=h.getRange();let a=!1;return i.isEqual(e)||(h._attachLiveRange(r["a"].fromRange(e)),a=!0),s!=h.managedUsingOperations&amp;&amp;(h._managedUsingOperations=s,a=!0),"boolean"===typeof n&amp;&amp;n!=h.affectsData&amp;&amp;(h._affectsData=n,a=!0),a&amp;&amp;this.fire("update:"+o,h,i,e,t),h}const c=r["a"].fromRange(e),f=new a(o,c,s,n);return this._markers.set(o,f),this.fire("update:"+o,f,null,e,{...f.getData(),range:null}),f}_remove(t){const e=t instanceof a?t.name:t,s=this._markers.get(e);return!!s&amp;&amp;(this._markers.delete(e),this.fire("update:"+e,s,s.getRange(),null,s.getData()),this._destroyMarker(s),!0)}_refresh(t){const e=t instanceof a?t.name:t,s=this._markers.get(e);if(!s)throw new i["a"]("markercollection-refresh-marker-not-exists",this);const n=s.getRange();this.fire("update:"+e,s,n,n,s.getData())}*getMarkersAtPosition(t){for(const e of this)e.getRange().containsPosition(t)&amp;&amp;(yield e)}*getMarkersIntersectingRange(t){for(const e of this)null!==e.getRange().getIntersection(t)&amp;&amp;(yield e)}destroy(){for(const t of this._markers.values())this._destroyMarker(t);this._markers=null,this.stopListening()}*getMarkersGroup(t){for(const e of this._markers.values())e.name.startsWith(t+":")&amp;&amp;(yield e)}_destroyMarker(t){t.stopListening(),t._detachLiveRange()}}class a extends(Object(i["f"])(n["a"])){constructor(t,e,s,n){super(),this.name=t,this._liveRange=this._attachLiveRange(e),this._managedUsingOperations=s,this._affectsData=n}get managedUsingOperations(){if(!this._liveRange)throw new i["a"]("marker-destroyed",this);return this._managedUsingOperations}get affectsData(){if(!this._liveRange)throw new i["a"]("marker-destroyed",this);return this._affectsData}getData(){return{range:this.getRange(),affectsData:this.affectsData,managedUsingOperations:this.managedUsingOperations}}getStart(){if(!this._liveRange)throw new i["a"]("marker-destroyed",this);return this._liveRange.start.clone()}getEnd(){if(!this._liveRange)throw new i["a"]("marker-destroyed",this);return this._liveRange.end.clone()}getRange(){if(!this._liveRange)throw new i["a"]("marker-destroyed",this);return this._liveRange.toRange()}_attachLiveRange(t){return this._liveRange&amp;&amp;this._detachLiveRange(),t.delegate("change:range").to(this),t.delegate("change:content").to(this),this._liveRange=t,t}_detachLiveRange(){this._liveRange.stopDelegating("change:range",this),this._liveRange.stopDelegating("change:content",this),this._liveRange.detach(),this._liveRange=null}}a.prototype.is=function(t){return"marker"===t||"model:marker"===t}},"940b":function(t,e,s){"use strict";s.d(e,"a",(function(){return r}));var n=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */class r{constructor(){this._operations=[],this._undoPairs=new Map,this._undoneOperations=new Set,this._baseVersionToOperationIndex=new Map,this._version=0,this._gaps=new Map}get version(){return this._version}set version(t){this._operations.length&amp;&amp;t&gt;this._version+1&amp;&amp;this._gaps.set(this._version,t),this._version=t}get lastOperation(){return this._operations[this._operations.length-1]}addOperation(t){if(t.baseVersion!==this.version)throw new n["a"]("model-document-history-addoperation-incorrect-version",this,{operation:t,historyVersion:this.version});this._operations.push(t),this._version++,this._baseVersionToOperationIndex.set(t.baseVersion,this._operations.length-1)}getOperations(t,e=this.version){if(!this._operations.length)return[];const s=this._operations[0];void 0===t&amp;&amp;(t=s.baseVersion);let n=e-1;for(const[o,a]of this._gaps)t&gt;o&amp;&amp;t&lt;a&amp;&amp;(t=a),n&gt;o&amp;&amp;n&lt;a&amp;&amp;(n=o-1);if(n&lt;s.baseVersion||t&gt;this.lastOperation.baseVersion)return[];let r=this._baseVersionToOperationIndex.get(t);void 0===r&amp;&amp;(r=0);let i=this._baseVersionToOperationIndex.get(n);return void 0===i&amp;&amp;(i=this._operations.length-1),this._operations.slice(r,i+1)}getOperation(t){const e=this._baseVersionToOperationIndex.get(t);if(void 0!==e)return this._operations[e]}setOperationAsUndone(t,e){this._undoPairs.set(e,t),this._undoneOperations.add(t)}isUndoingOperation(t){return this._undoPairs.has(t)}isUndoneOperation(t){return this._undoneOperations.has(t)}getUndoneOperation(t){return this._undoPairs.get(t)}reset(){this._version=0,this._undoPairs=new Map,this._operations=[],this._undoneOperations=new Set,this._gaps=new Map,this._baseVersionToOperationIndex=new Map}}},"96f5":function(t,e,s){"use strict";s.d(e,"a",(function(){return i}));var n=s("9cf5"),r=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class i extends(Object(r["f"])(n["a"])){constructor(t,e,s="toNone"){if(super(t,e,s),!this.root.is("rootElement"))throw new r["a"]("model-liveposition-root-not-rootelement",t);o.call(this)}detach(){this.stopListening()}toPosition(){return new n["a"](this.root,this.path.slice(),this.stickiness)}static fromPosition(t,e){return new this(t.root,t.path.slice(),e||t.stickiness)}}function o(){this.listenTo(this.root.document.model,"applyOperation",(t,e)=&gt;{const s=e[0];s.isDocumentOperation&amp;&amp;a.call(this,s)},{priority:"low"})}function a(t){const e=this.getTransformedByOperation(t);if(!this.isEqual(e)){const t=this.toPosition();this.path=e.path,this.root=e.root,this.fire("change",t)}}i.prototype.is=function(t){return"livePosition"===t||"model:livePosition"===t||"position"==t||"model:position"===t}},a641:function(t,e,s){"use strict";s.d(e,"a",(function(){return h}));var n=s("34b2"),r=s("a52e"),i=s("5122"),o=s("2363"),a=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class h extends n["a"]{constructor(t,e,s){super(e),this._children=new r["a"],this.name=t,s&amp;&amp;this._insertChild(0,s)}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}offsetToIndex(t){return this._children.offsetToIndex(t)}getNodeByPath(t){let e=this;for(const s of t)e=e.getChild(e.offsetToIndex(s));return e}findAncestor(t,e={}){let s=e.includeSelf?this:this.parent;while(s){if(s.name===t)return s;s=s.parent}return null}toJSON(){const t=super.toJSON();if(t.name=this.name,this._children.length&gt;0){t.children=[];for(const e of this._children)t.children.push(e.toJSON())}return t}_clone(t=!1){const e=t?Array.from(this._children).map(t=&gt;t._clone(!0)):void 0;return new h(this.name,this.getAttributes(),e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const s=c(e);for(const n of s)null!==n.parent&amp;&amp;n._remove(),n.parent=this;this._children._insertNodes(t,s)}_removeChildren(t,e=1){const s=this._children._removeNodes(t,e);for(const n of s)n.parent=null;return s}static fromJSON(t){let e;if(t.children){e=[];for(const s of t.children)s.name?e.push(h.fromJSON(s)):e.push(i["a"].fromJSON(s))}return new h(t.name,t.attributes,e)}}function c(t){return"string"==typeof t?[new i["a"](t)]:(Object(a["M"])(t)||(t=[t]),Array.from(t).map(t=&gt;"string"==typeof t?new i["a"](t):t instanceof o["a"]?new i["a"](t.data,t.getAttributes()):t))}h.prototype.is=function(t,e){return e?e===this.name&amp;&amp;("element"===t||"model:element"===t):"element"===t||"model:element"===t||"node"===t||"model:node"===t}},c494:function(t,e,s){"use strict";s.d(e,"a",(function(){return f}));var n=s("45a6"),r=s("0f930"),i=s("bdc57"),o=s("5122"),a=s("2363"),h=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
const c="selection:";class f extends(Object(h["f"])(n["a"])){constructor(t){super(),this._selection=new l(t),this._selection.delegate("change:range").to(this),this._selection.delegate("change:attribute").to(this),this._selection.delegate("change:marker").to(this)}get isCollapsed(){return this._selection.isCollapsed}get anchor(){return this._selection.anchor}get focus(){return this._selection.focus}get rangeCount(){return this._selection.rangeCount}get hasOwnRange(){return this._selection.hasOwnRange}get isBackward(){return this._selection.isBackward}get isGravityOverridden(){return this._selection.isGravityOverridden}get markers(){return this._selection.markers}get _ranges(){return this._selection._ranges}getRanges(){return this._selection.getRanges()}getFirstPosition(){return this._selection.getFirstPosition()}getLastPosition(){return this._selection.getLastPosition()}getFirstRange(){return this._selection.getFirstRange()}getLastRange(){return this._selection.getLastRange()}getSelectedBlocks(){return this._selection.getSelectedBlocks()}getSelectedElement(){return this._selection.getSelectedElement()}containsEntireContent(t){return this._selection.containsEntireContent(t)}destroy(){this._selection.destroy()}getAttributeKeys(){return this._selection.getAttributeKeys()}getAttributes(){return this._selection.getAttributes()}getAttribute(t){return this._selection.getAttribute(t)}hasAttribute(t){return this._selection.hasAttribute(t)}refresh(){this._selection.updateMarkers(),this._selection._updateAttributes(!1)}observeMarkers(t){this._selection.observeMarkers(t)}_setFocus(t,e){this._selection.setFocus(t,e)}_setTo(...t){this._selection.setTo(...t)}_setAttribute(t,e){this._selection.setAttribute(t,e)}_removeAttribute(t){this._selection.removeAttribute(t)}_getStoredAttributes(){return this._selection.getStoredAttributes()}_overrideGravity(){return this._selection.overrideGravity()}_restoreGravity(t){this._selection.restoreGravity(t)}static _getStoreAttributeKey(t){return c+t}static _isStoreAttributeKey(t){return t.startsWith(c)}}f.prototype.is=function(t){return"selection"===t||"model:selection"==t||"documentSelection"==t||"model:documentSelection"==t};class l extends i["a"]{constructor(t){super(),this.markers=new h["b"]({idProperty:"name"}),this._attributePriority=new Map,this._selectionRestorePosition=null,this._hasChangedRange=!1,this._overriddenGravityRegister=new Set,this._observedMarkers=new Set,this._model=t.model,this._document=t,this.listenTo(this._model,"applyOperation",(t,e)=&gt;{const s=e[0];s.isDocumentOperation&amp;&amp;"marker"!=s.type&amp;&amp;"rename"!=s.type&amp;&amp;"noop"!=s.type&amp;&amp;(0==this._ranges.length&amp;&amp;this._selectionRestorePosition&amp;&amp;this._fixGraveyardSelection(this._selectionRestorePosition),this._selectionRestorePosition=null,this._hasChangedRange&amp;&amp;(this._hasChangedRange=!1,this.fire("change:range",{directChange:!1})))},{priority:"lowest"}),this.on("change:range",()=&gt;{this._validateSelectionRanges(this.getRanges())}),this.listenTo(this._model.markers,"update",(t,e,s,n)=&gt;{this._updateMarker(e,n)}),this.listenTo(this._document,"change",(t,e)=&gt;{g(this._model,e)})}get isCollapsed(){const t=this._ranges.length;return 0===t?this._document._getDefaultRange().isCollapsed:super.isCollapsed}get anchor(){return super.anchor||this._document._getDefaultRange().start}get focus(){return super.focus||this._document._getDefaultRange().end}get rangeCount(){return this._ranges.length?this._ranges.length:1}get hasOwnRange(){return this._ranges.length&gt;0}get isGravityOverridden(){return!!this._overriddenGravityRegister.size}destroy(){for(let t=0;t&lt;this._ranges.length;t++)this._ranges[t].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()}setTo(...t){super.setTo(...t),this._updateAttributes(!0),this.updateMarkers()}setFocus(t,e){super.setFocus(t,e),this._updateAttributes(!0),this.updateMarkers()}setAttribute(t,e){if(this._setAttribute(t,e)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}removeAttribute(t){if(this._removeAttribute(t)){const e=[t];this.fire("change:attribute",{attributeKeys:e,directChange:!0})}}overrideGravity(){const t=Object(h["db"])();return this._overriddenGravityRegister.add(t),1===this._overriddenGravityRegister.size&amp;&amp;this._updateAttributes(!0),t}restoreGravity(t){if(!this._overriddenGravityRegister.has(t))throw new h["a"]("document-selection-gravity-wrong-restore",this,{uid:t});this._overriddenGravityRegister.delete(t),this.isGravityOverridden||this._updateAttributes(!0)}observeMarkers(t){this._observedMarkers.add(t),this.updateMarkers()}_replaceAllRanges(t){this._validateSelectionRanges(t),super._replaceAllRanges(t)}_popRange(){this._ranges.pop().detach()}_pushRange(t){const e=this._prepareRange(t);e&amp;&amp;this._ranges.push(e)}_validateSelectionRanges(t){for(const e of t)if(!this._document._validateSelectionRange(e))throw new h["a"]("document-selection-wrong-position",this,{range:e})}_prepareRange(t){if(this._checkRange(t),t.root==this._document.graveyard)return;const e=r["a"].fromRange(t);return e.on("change:range",(t,s,n)=&gt;{if(this._hasChangedRange=!0,e.root==this._document.graveyard){this._selectionRestorePosition=n.deletionPosition;const t=this._ranges.indexOf(e);this._ranges.splice(t,1),e.detach()}}),e}updateMarkers(){if(!this._observedMarkers.size)return;const t=[];let e=!1;for(const n of this._model.markers){const e=n.name.split(":",1)[0];if(!this._observedMarkers.has(e))continue;const s=n.getRange();for(const r of this.getRanges())s.containsRange(r,!r.isCollapsed)&amp;&amp;t.push(n)}const s=Array.from(this.markers);for(const n of t)this.markers.has(n)||(this.markers.add(n),e=!0);for(const n of Array.from(this.markers))t.includes(n)||(this.markers.remove(n),e=!0);e&amp;&amp;this.fire("change:marker",{oldMarkers:s,directChange:!1})}_updateMarker(t,e){const s=t.name.split(":",1)[0];if(!this._observedMarkers.has(s))return;let n=!1;const r=Array.from(this.markers),i=this.markers.has(t);if(e){let s=!1;for(const t of this.getRanges())if(e.containsRange(t,!t.isCollapsed)){s=!0;break}s&amp;&amp;!i?(this.markers.add(t),n=!0):!s&amp;&amp;i&amp;&amp;(this.markers.remove(t),n=!0)}else i&amp;&amp;(this.markers.remove(t),n=!0);n&amp;&amp;this.fire("change:marker",{oldMarkers:r,directChange:!1})}_updateAttributes(t){const e=Object(h["bb"])(this._getSurroundingAttributes()),s=Object(h["bb"])(this.getAttributes());if(t)this._attributePriority=new Map,this._attrs=new Map;else for(const[r,i]of this._attributePriority)"low"==i&amp;&amp;(this._attrs.delete(r),this._attributePriority.delete(r));this._setAttributesTo(e);const n=[];for(const[r,i]of this.getAttributes())s.has(r)&amp;&amp;s.get(r)===i||n.push(r);for(const[r]of s)this.hasAttribute(r)||n.push(r);n.length&gt;0&amp;&amp;this.fire("change:attribute",{attributeKeys:n,directChange:!1})}_setAttribute(t,e,s=!0){const n=s?"normal":"low";if("low"==n&amp;&amp;"normal"==this._attributePriority.get(t))return!1;const r=super.getAttribute(t);return r!==e&amp;&amp;(this._attrs.set(t,e),this._attributePriority.set(t,n),!0)}_removeAttribute(t,e=!0){const s=e?"normal":"low";return("low"!=s||"normal"!=this._attributePriority.get(t))&amp;&amp;(this._attributePriority.set(t,s),!!super.hasAttribute(t)&amp;&amp;(this._attrs.delete(t),!0))}_setAttributesTo(t){const e=new Set;for(const[s,n]of this.getAttributes())t.get(s)!==n&amp;&amp;this._removeAttribute(s,!1);for(const[s,n]of t){const t=this._setAttribute(s,n,!1);t&amp;&amp;e.add(s)}return e}*getStoredAttributes(){const t=this.getFirstPosition().parent;if(this.isCollapsed&amp;&amp;t.isEmpty)for(const e of t.getAttributeKeys())if(e.startsWith(c)){const s=e.substr(c.length);yield[s,t.getAttribute(e)]}}_getSurroundingAttributes(){const t=this.getFirstPosition(),e=this._model.schema;if("$graveyard"==t.root.rootName)return null;let s=null;if(this.isCollapsed){const n=t.textNode?t.textNode:t.nodeBefore,r=t.textNode?t.textNode:t.nodeAfter;if(this.isGravityOverridden||(s=u(n,e)),s||(s=u(r,e)),!this.isGravityOverridden&amp;&amp;!s){let t=n;while(t&amp;&amp;!s)t=t.previousSibling,s=u(t,e)}if(!s){let t=r;while(t&amp;&amp;!s)t=t.nextSibling,s=u(t,e)}s||(s=this.getStoredAttributes())}else{const t=this.getFirstRange();for(const n of t){if(n.item.is("element")&amp;&amp;e.isObject(n.item)){s=u(n.item,e);break}if("text"==n.type){s=n.item.getAttributes();break}}}return s}_fixGraveyardSelection(t){const e=this._model.schema.getNearestSelectionRange(t);e&amp;&amp;this._pushRange(e)}}function u(t,e){if(!t)return null;if(t instanceof a["a"]||t instanceof o["a"])return t.getAttributes();if(!e.isInline(t))return null;if(!e.isObject(t))return[];const s=[];for(const[n,r]of t.getAttributes())e.checkAttribute("$text",n)&amp;&amp;!1!==e.getAttributeProperties(n).copyFromObject&amp;&amp;s.push([n,r]);return s}function g(t,e){const s=t.document.differ;for(const n of s.getChanges()){if("insert"!=n.type)continue;const s=n.position.parent,r=n.length===s.maxOffset;r&amp;&amp;t.enqueueChange(e,t=&gt;{const e=Array.from(s.getAttributeKeys()).filter(t=&gt;t.startsWith(c));for(const n of e)t.removeAttribute(n,s)})}}},db03:function(t,e,s){"use strict";s.d(e,"a",(function(){return c}));var n=s("45a6"),r=s("a641"),i=s("a52e"),o=s("5122"),a=s("2363"),h=s("c993");
/**
 * @license Copyright (c) 2003-2024, CKSource Holding sp. z o.o. All rights reserved.
 * For licensing, see LICENSE.md or https://ckeditor.com/legal/ckeditor-oss-license
 */
class c extends n["a"]{constructor(t){super(),this.markers=new Map,this._children=new i["a"],t&amp;&amp;this._insertChild(0,t)}[Symbol.iterator](){return this.getChildren()}get childCount(){return this._children.length}get maxOffset(){return this._children.maxOffset}get isEmpty(){return 0===this.childCount}get nextSibling(){return null}get previousSibling(){return null}get root(){return this}get parent(){return null}get document(){return null}isAttached(){return!1}getAncestors(){return[]}getChild(t){return this._children.getNode(t)}getChildren(){return this._children[Symbol.iterator]()}getChildIndex(t){return this._children.getNodeIndex(t)}getChildStartOffset(t){return this._children.getNodeStartOffset(t)}getPath(){return[]}getNodeByPath(t){let e=this;for(const s of t)e=e.getChild(e.offsetToIndex(s));return e}offsetToIndex(t){return this._children.offsetToIndex(t)}toJSON(){const t=[];for(const e of this._children)t.push(e.toJSON());return t}static fromJSON(t){const e=[];for(const s of t)s.name?e.push(r["a"].fromJSON(s)):e.push(o["a"].fromJSON(s));return new c(e)}_appendChild(t){this._insertChild(this.childCount,t)}_insertChild(t,e){const s=f(e);for(const n of s)null!==n.parent&amp;&amp;n._remove(),n.parent=this;this._children._insertNodes(t,s)}_removeChildren(t,e=1){const s=this._children._removeNodes(t,e);for(const n of s)n.parent=null;return s}}function f(t){return"string"==typeof t?[new o["a"](t)]:(Object(h["M"])(t)||(t=[t]),Array.from(t).map(t=&gt;"string"==typeof t?new o["a"](t):t instanceof a["a"]?new o["a"](t.data,t.getAttributes()):t))}c.prototype.is=function(t){return"documentFragment"===t||"model:documentFragment"===t}}}]);
//# sourceMappingURL=chunk-3fa00560.e852093b.js.map</pre></body></html>