@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230831.0 → 0.0.0-nightly-20230902.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +2 -2
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
!function(
|
|
1
|
+
!function(e){const t=e.en=e.en||{};t.dictionary=Object.assign(t.dictionary||{},{"*Change %0 content*":"*Change %0 content*","*Change to:* %0":"*Change to:* %0","*Check item*":"*Check item*","*Format:* %0":"*Format:* %0","*Format:* change table cell properties":"*Format:* change table cell properties","*Format:* change table properties":"*Format:* change table properties","*Format:* insert into %0":"*Format:* insert into %0","*Format:* remove from %0":"*Format:* remove from %0","*Format:* replace image URL":"*Format:* replace image URL","*Format:* resize table":"*Format:* resize table","*Format:* set order to regular":"*Format:* set order to regular","*Format:* set order to reversed":"*Format:* set order to reversed","*Format:* set start index to %0":"*Format:* set start index to %0","*Indent:* %0":"*Indent:* %0","*Insert:* %0":"*Insert:* %0","*Merge cells*":"*Merge cells*","*Merge:* %0":"*Merge:* %0","*Outdent:* %0":"*Outdent:* %0","*Remove all formatting*":"*Remove all formatting*","*Remove format:* %0":"*Remove format:* %0","*Remove highlight*":"*Remove highlight*","*Remove image text alternative*":"*Remove image text alternative*","*Remove link*":"*Remove link*","*Remove:* %0":"*Remove:* %0","*Replace table cells*":"*Replace table cells*","*Reset font background color*":"*Reset font background color*","*Reset font color*":"*Reset font color*","*Reset font family*":"*Reset font family*","*Reset font size*":"*Reset font size*","*Reset image width*":"*Reset image width*","*Set font background color:* %0":"*Set font background color:* %0","*Set font color:* %0":"*Set font color:* %0","*Set font family:* %0":"*Set font family:* %0","*Set font size:* %0":"*Set font size:* %0","*Set format to:* %0":"*Set format to:* %0","*Set highlight:* %0":"*Set highlight:* %0","*Set image text alternative:* %0":"*Set image text alternative:* %0","*Set image width:* %0":"*Set image width:* %0","*Set link:* %0":"*Set link:* %0","*Split cell:* horizontally":"*Split cell:* horizontally","*Split cell:* vertically":"*Split cell:* vertically","*Split:* %0":"*Split:* %0","*Uncheck item*":"*Uncheck item*","Accept all selected suggestions":"Accept all selected suggestions","Accept all suggestions":"Accept all suggestions","Accept suggestion":"Accept suggestion","Discard all selected suggestions":"Discard all selected suggestions","Discard all suggestions":"Discard all suggestions","Discard suggestion":"Discard suggestion",ELEMENT_BLOCK_QUOTE:"block quote",ELEMENT_BULLETED_LIST:"bulleted list",ELEMENT_BULLETED_LIST_CIRCLE:"bulleted list (circle)",ELEMENT_BULLETED_LIST_DISC:"bulleted list (disc)",ELEMENT_BULLETED_LIST_SQUARE:"bulleted list (square)",ELEMENT_CAPTION:"caption",ELEMENT_CODE_BLOCK:["code block","%0 code blocks"],ELEMENT_HEADING:["heading (level %1)","%0 headings (level %1)"],ELEMENT_HEADING_CUSTOM:["heading (%1)","%0 headings (%1)"],ELEMENT_HORIZONTAL_LINE:["horizontal line","%0 horizontal lines"],ELEMENT_HTML_EMBED:["HTML embed","%0 HTML embeds"],ELEMENT_IMAGE:["image","%0 images"],ELEMENT_INLINE_IMAGE:["image","%0 images"],ELEMENT_LINE_BREAK:["line break","%0 line breaks"],ELEMENT_LIST_ITEM:["list item","%0 list items"],ELEMENT_MEDIA:["media item","%0 media items"],ELEMENT_NUMBERED_LIST:"numbered list",ELEMENT_NUMBERED_LIST_DECIMAL:"numbered list (decimal)",ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO:"numbered list (decimal with leading zero)",ELEMENT_NUMBERED_LIST_LOWER_LATIN:"numbered list (lower-latin)",ELEMENT_NUMBERED_LIST_LOWER_ROMAN:"numbered list (lower-roman)",ELEMENT_NUMBERED_LIST_UPPER_LATIN:"numbered list (upper-latin)",ELEMENT_NUMBERED_LIST_UPPER_ROMAN:"numbered list (upper-roman)",ELEMENT_PAGE_BREAK:["page break","%0 page breaks"],ELEMENT_PARAGRAPH:["paragraph","%0 paragraphs"],ELEMENT_SPACE:["space","%0 spaces"],ELEMENT_TABLE:["table","%0 tables"],ELEMENT_TABLE_COLUMN:["table column","%0 table columns"],ELEMENT_TABLE_COLUMN_WITH_TEXT:["table column *with text* %1","%0 table columns *with text* %1"],ELEMENT_TABLE_OF_CONTENTS:["table of contents","%0 tables of contents"],ELEMENT_TABLE_ROW:["table row","%0 table rows"],ELEMENT_TABLE_ROW_WITH_TEXT:["table row *with text* %1","%0 table rows *with text* %1"],ELEMENT_TABLE_WITH_TEXT:"table *with text* %0",ELEMENT_TITLE:"title",ELEMENT_TODO_LIST:"to-do list",EXTERNAL_IMPORT_WORD_SUGGESTION:"This suggestion comes from an imported Word file.",EXTERNAL_SUGGESTION:"This suggestion comes from an external source.",FORMAT_ALIGN_TO_CENTER:"align to center",FORMAT_ALIGN_TO_LEFT:"align to left",FORMAT_ALIGN_TO_RIGHT:"align to right",FORMAT_BOLD:"bold",FORMAT_CODE:"code",FORMAT_HEADER_COLUMN:"header column",FORMAT_HEADER_ROW:"header row",FORMAT_HIGHLIGHT:"highlight",FORMAT_ITALIC:"italic",FORMAT_JUSTIFY_TEXT:"justify",FORMAT_REGULAR_COLUMN:"regular column",FORMAT_REGULAR_ROW:"regular row",FORMAT_RESTRICTED_DISABLED:"*Disable in restricted editing mode*",FORMAT_RESTRICTED_ENABLED:"*Enable in restricted editing mode*",FORMAT_SIDE_IMAGE:"side image",FORMAT_STRIKETHROUGH:"strikethrough",FORMAT_SUBSCRIPT:"subscript",FORMAT_SUPERSCRIPT:"superscript",FORMAT_UNDERLINE:"underline",PENDING_ACTION_SUGGESTION:"Unsaved change in suggestion.",REPLACE_TEXT:"*Replace:* %0 *with* %1","Track changes":"Track changes"})}(window.CKEDITOR_TRANSLATIONS||(window.CKEDITOR_TRANSLATIONS={})),
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["isEnabled","TrackChangesCommand","commands","affectsData","_enabledCommands","forceDisabled","_isEnabledBasedOnSelection","editor","value","has","execute","refresh","_enableCommands","clearForceDisabled"];var c,l;c=a,l=256,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this._enabledCommands=e,this[d("0x4")]=!1,this[d("0x7")](),this[d("0x2")]=!1}refresh(){this[d("0xa")]=!0}[d("0x6")](){this[d("0x4")]=!this.value,this[d("0x4")]?this._disableUnsupportedCommands():this[d("0x8")]()}_disableUnsupportedCommands(){for(const t of this[d("0x3")][d("0xc")][d("0xc")]())t.affectsData&&!this[d("0x0")].has(t)&&t[d("0x1")](d("0xb"))}[d("0x8")](){for(const t of this[d("0x3")].commands[d("0xc")]())t[d("0xd")]&&!this[d("0x0")][d("0x5")](t)&&t[d("0x9")](d("0xb"))}}const g=["isEnabled","get","refresh","execute","canEditAt","model","editor","getRanges","plugins","acceptSuggestion","_isEnabledBasedOnSelection","_suggestions"];var m,f;m=g,f=314,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0x9")]=e,this[h("0x0")](),this[h("0x8")]=!1}[h("0x0")](){this[h("0xa")]=!0}[h("0x1")](t){const n=this[h("0x9")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x5")]();this[h("0x4")][h("0x3")][h("0x2")](o)&&this[h("0x4")][h("0x6")][h("0xb")]("TrackChangesEditing")[h("0x7")](n)}}const b=["editor","get","isEnabled","getRanges","refresh","track-changes-discard-suggestion-not-found","canEditAt","model","TrackChangesEditing"];var E,_;E=b,_=383,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x8")](),this._isEnabledBasedOnSelection=!1}[T("0x8")](){this[T("0x6")]=!0}execute(t){const n=this._suggestions[T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n[T("0x7")]();this.editor[T("0x2")][T("0x1")](o)&&this[T("0x4")].plugins.get(T("0x3")).discardSuggestion(n)}}const y=["deletion","schema","length","from","value","splice","createPositionAfter","color","createRange","getRanges","createPositionBefore","execute","isArray","map","content","createPositionAt","isInContent","end","isTouching","type","replace","start","isIntersecting"];var k,A;k=y,A=384,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t.sort(((t,e)=>v("0x7")==t.type&&v("0x7")!=e[v("0x3")]?-1:v("0x7")!=t.type&&v("0x7")==e[v("0x3")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x8")];for(;o<t[v("0x9")];){const i=t[o],x=t[o+1];n||(n=e[v("0x11")](i)),S(e,i,x)||(s.push(e[v("0xf")](n,r.isObject(i)?e[v("0xd")](i):e[v("0x16")](i,v("0x1")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),s=t.createPositionBefore(n);return o[v("0x2")](s)}function L(t,e,n){for(;n[v("0x9")];){const o=n[v("0xc")](0,100);t.change((()=>{for(const t of o)t[v("0x0")]&&e[v("0x12")](t.id)}))}}const N=["values","some","isEnabled","refresh","getRanges","model","editor","_command","from","_suggestions"];var M,w;M=N,w=427,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x2")]=n,this[O("0x6")](),this._isEnabledBasedOnSelection=!1}[O("0x6")](){const t=Array[O("0x1")](this[O("0x2")][O("0x3")]())[O("0x4")]((t=>t.isInContent));this.isEnabled=this._command[O("0x5")]&&t}execute(){const t=R(Array[O("0x1")](this._suggestions[O("0x3")]()));for(const e of t){const t=e[O("0x7")]();if(!this[O("0x9")][O("0x8")].canEditAt(t))return}L(this[O("0x9")].model,this._command,t)}}const P=["_suggestions","refresh","values","model","_selectedSuggestions","canEditAt","getRanges","_command","from","editor","size","document"];var D,B;D=P,B=116,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0xb")]=e,this[j("0x4")]=n,this._selectedSuggestions=new Set,this[j("0x5")](),this._isEnabledBasedOnSelection=!1}[j("0x5")](){const t=this[j("0x1")][j("0x7")][j("0x3")].selection,e=Array[j("0x0")](this[j("0x4")][j("0x6")]());this[j("0x8")]=function(t,e){const n=Array[v("0xa")](t[v("0x10")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0x10")]())(e[v("0x6")](n)||t.isCollapsed&&!s.isMultiRange&&s.next&&n.end.isTouching(e[v("0x5")]))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0xb")].isEnabled&&!!this._selectedSuggestions[j("0x2")]}execute(){const t=R(Array[j("0x0")](this[j("0x8")]));for(const e of t){const t=e[j("0xa")]();if(!this[j("0x1")][j("0x7")][j("0x9")](t))return}L(this[j("0x1")][j("0x7")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=V,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const $t=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Vt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var $n=Ie&&Ie.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["decorate","getFirstRange","nodeBefore","_model","add","authoredAt","getAllAdjacentSuggestions","discard","substr","change","creator","get","previous","length","_onAccept","data","clear","subType","toJSON","accept","head","getMarkerNames","isInContent","getItems","split","onDiscard","end","isIntersecting","getContainedElement","filter","getFirstMarker","_onAttributesChange","addMarker","@external","size","reduce","createdAt","hasComments","type","removeMarker","getMultiRangeId","commentThread","onAccept","set","_onDiscard","isIntersectingWithRange","attributes","addMarkerName","removeMarkers","getMarkers","getRanges","next","author","addRange","push","isExternal","delete","getRange","map","setAttribute","isMultiRange","_markerNames","markers","_saved"];var Xo,Jo;Xo=$o,Jo=130,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Qo("0x24")]=e[Qo("0x24")],this[Qo("0xf")]=e[Qo("0xf")]||null,this[Qo("0x32")]=e[Qo("0x32")],this.creator=e[Qo("0x8")]||e[Qo("0x32")],this[Qo("0x35")]=Boolean(e[Qo("0x2c")]&&e[Qo("0x2c")][Qo("0x1f")]),this[Qo("0xd")]=null,this[Qo("0x1")]=t,this[Qo("0xc")]=e[Qo("0x28")],this[Qo("0x2a")]=e[Qo("0x17")],this._onAttributesChange=e.onAttributesChange,this._markerNames=new Set,this[Qo("0x22")]=null,this[Qo("0x29")](Qo("0x3"),null),this[Qo("0x29")]("attributes",e[Qo("0x2c")]||{}),this[Qo("0x29")](Qo("0xa"),null),this[Qo("0x29")](Qo("0x31"),null),this[Qo("0x29")](Qo("0x27"),null),this[Qo("0x29")](Qo("0x3d"),!1),this[Qo("0x3e")](Qo("0x11")),this[Qo("0x3e")](Qo("0x5"))}get[Qo("0x12")](){let t=this;for(;t[Qo("0xa")];)t=t.previous;return t}get[Qo("0x23")](){return!!this[Qo("0x27")]&&this[Qo("0x27")].length>0}get[Qo("0x3a")](){return 0!=this[Qo("0x3b")][Qo("0x20")]&&6==Array.from(this[Qo("0x3b")])[0][Qo("0x16")](":")[Qo("0xb")]}get[Qo("0x14")](){return null!==this[Qo("0x1c")]()}[Qo("0x2d")](t){this._markerNames[Qo("0x2")](t)}[Qo("0x13")](){return Array.from(this._markerNames)}getMarkers(){return this[Qo("0x13")]()[Qo("0x38")]((t=>this[Qo("0x1")][Qo("0x3c")][Qo("0x9")](t)))[Qo("0x1b")]((t=>t))}getFirstMarker(){return this[Qo("0x2f")]()[0]||null}[Qo("0x2e")](){this[Qo("0x1")][Qo("0x7")]((t=>{for(const e of this[Qo("0x2f")]())t[Qo("0x25")](e)})),this[Qo("0x3b")][Qo("0xe")]()}[Qo("0x25")](t){this[Qo("0x1")][Qo("0x7")]((e=>{e[Qo("0x25")](t)})),this._markerNames[Qo("0x36")](t)}[Qo("0x33")](t){const e="suggestion:"+this[Qo("0x24")]+":"+this[Qo("0xf")]+":"+this.id+":"+this[Qo("0x8")].id+":"+Zo[Qo("0x26")]();this[Qo("0x2d")](e),this[Qo("0x1")][Qo("0x7")]((n=>{n[Qo("0x1e")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x2b")](t){for(const e of this.getRanges())if(e[Qo("0x19")](t))return!0;return!1}getRanges(){return this.getMarkers()[Qo("0x38")]((t=>t[Qo("0x37")]()))}[Qo("0x15")](){return this[Qo("0x30")]()[Qo("0x21")](((t,e)=>[...t,...e.getItems()]),[])}[Qo("0x3f")](){var t;return(null===(t=this[Qo("0x1c")]())||void 0===t?void 0:t[Qo("0x37")]())||null}[Qo("0x1a")](){const t=this[Qo("0x30")]();if(1!=t[Qo("0xb")])return null;const e=t[0],n=e.start.nodeAfter,o=e[Qo("0x18")][Qo("0x0")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x11")](){this._onAccept(this.getRanges(),this[Qo("0xd")],this[Qo("0x2c")]),this[Qo("0x2e")]()}[Qo("0x5")](){this[Qo("0x2a")](this.getRanges(),this[Qo("0xd")],this[Qo("0x2c")]),this[Qo("0x2e")]()}[Qo("0x4")](){const t=[];let e=this[Qo("0x12")];for(;e;)t[Qo("0x34")](e),e=e[Qo("0x31")];return t}[Qo("0x39")](t,e){const n=eo(this[Qo("0x2c")]);_o(n,t,e),Go(n,this[Qo("0x2c")])||(this[Qo("0x2c")]=n,this[Qo("0x1d")](n))}removeAttribute(t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x2c")])||(this[Qo("0x2c")]=e,this[Qo("0x1d")](this[Qo("0x2c")]))}[Qo("0x10")](){return{id:this.id,type:this[Qo("0xf")]?this.type+":"+this[Qo("0xf")]:this[Qo("0x24")],authorId:this[Qo("0x8")].id,createdAt:this[Qo("0x22")],hasComments:this[Qo("0x23")],data:this[Qo("0xd")],attributes:this[Qo("0x2c")]}}static getMultiRangeId(){return(0,e.uid)()[Qo("0x6")](1,5)}}function Yo(t,e,n){const o=t.t;switch(e){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return e}}const ts=["push","_itemLabels","type","isInContent","quantity","deletion","_schema","previousSibling","addEmptyContainer","remove","element","$1 $2","insertion","_itemLabelsCallbacks","*Merge:* %0","nextSibling","$text","getFirstRange","REPLACE_TEXT","elementStart","start","ELEMENT_SPACE","*Insert:* %0","skip","end","text","indexOf","removeEmptyContainer","removeObject","softBreak","*Remove:* %0","elementEnd","data","set","_customCallbacks","registerElementLabel","add","getItemLabel","label","replace","$textProxy","Container","_addDescriptionItems","isObject","EmptyContainer","registerDescriptionCallback","getWalker","pop","addContainer","_locale","get","name","getDescriptions","length","_resolveDescriptionItems"];var es,ns;es=ts,ns=427,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x2f")]=[],this[os("0xe")]=new Map,this[os("0x1a")]=[],this[os("0x13")]=t,this[os("0x7")]=e}[os("0xa")](t){const e=[];for(let n=0;n<t[os("0xb")];n++){const o=t[n];if(!o[os("0x10")])continue;let s=!1;for(const t of this[os("0x2f")]){const n=t(o);if(n){os("0xf")in n&&e.push(n),s=!0;break}}if(!s){this[os("0x0")](e,o);const s=t[n+1];if(s&&!o.getFirstRange()[os("0x25")].isEqual(s.getFirstRange()[os("0x21")])){const t=e[e[os("0xb")]-1],n="insertion"==o.type?os("0x31"):os("0x16");t&&os("0x26")==t.type&&(t[n]+="\n")}}}return this[os("0xc")](e)}[os("0x3")](t){this[os("0x2f")][os("0xd")](t)}[os("0x30")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xe")][os("0x2e")](t,n)}[os("0x32")](t,e=1){let n;for(const e of this[os("0x1a")])if(e.matchingCallback(t)){n=e[os("0x33")];break}return n||(n=this._itemLabels[os("0x8")](t[os("0x9")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x9")]}_addDescriptionItems(t,e){const n=e[os("0x1e")]()[os("0x4")](),o=os("0x19")==e[os("0xf")]?os("0x31"):os("0x16");for(const e of n){const s=e.item,r=t[t[os("0xb")]-1];if(s.is(os("0x35")))r&&r[os("0xf")][os("0x27")](os("0x36"))>-1&&t[os("0x5")](),r&&os("0x26")==r.type?r[o]+=s.data:t[os("0xd")]({type:"text",add:os("0x31")==o?s[os("0x2d")]:"",remove:"remove"==o?s[os("0x2d")]:""});else if(this[os("0x13")].isObject(s)){const i=s;if(r&&r.type[os("0x27")](os("0x36"))>-1&&t.pop(),os("0x2c")==e[os("0xf")])continue;r&&r[os("0xf")]==o+"Object"&&r[os("0x17")][os("0x9")]==i[os("0x9")]?r[os("0x11")]++:t[os("0xd")]({type:o+"Object",element:i,quantity:1}),n[os("0x24")]((t=>!(os("0x2c")==t[os("0xf")]&&t.item==s)))}else if(this[os("0x13")].checkChild(s,os("0x1d"))||s.is(os("0x17"),os("0x2a"))){const n=s;if(os("0x31")==o&&os("0x20")==e[os("0xf")]||os("0x16")==o&&os("0x2c")==e[os("0xf")])continue;if(r&&-1==r.type[os("0x27")](os("0x36"))){"text"==r[os("0xf")]&&(r[o]+="\n");continue}let i;if(i=os("0x31")==o?n[os("0x1c")]&&!this[os("0x13")][os("0x1")](n[os("0x1c")])?n[os("0x1c")]:null:n[os("0x14")]&&!this[os("0x13")][os("0x1")](n[os("0x14")])?n[os("0x14")]:null,n.isEmpty||i&&i.isEmpty){const e=i&&i.isEmpty?i:n;r&&r[os("0xf")]==o+os("0x2")&&r[os("0x17")][os("0x9")]==e[os("0x9")]?r[os("0x11")]++:t[os("0xd")]({type:o+os("0x2"),element:e,quantity:1})}else t[os("0xd")]({type:o+os("0x36"),element:n})}}}[os("0xc")](t){const e=this._locale,n=[];for(const o of t){switch(o.type){case os("0x26"):if(o[os("0x31")]=o[os("0x31")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x34")](/\u000A/g,""),o[os("0x16")]=o[os("0x16")][os("0x34")](/(\S)\u000A+(\S)/g,os("0x18"))[os("0x34")](/\u000A/g,""),""!=o[os("0x31")]&&""!=o[os("0x16")]){n.push({type:"replace",content:Yo(e,os("0x1f"),['"'+o.remove+'"','"'+o[os("0x31")]+'"'])});continue}if(null!=o.add.match(/^ +$/)){n[os("0xd")]({type:"insertion",content:Yo(e,os("0x23"),Yo(e,os("0x22"),o[os("0x31")][os("0xb")]))});continue}if(null!=o[os("0x16")].match(/^ +$/)){n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x2b"),Yo(e,os("0x22"),o.remove[os("0xb")]))});continue}if(""!=o.add){n[os("0xd")]({type:os("0x19"),content:Yo(e,"*Insert:* %0",'"'+o[os("0x31")]+'"')});continue}n.push({type:os("0x12"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x16")]+'"')});continue;case os("0x15"):case"addObject":n[os("0xd")]({type:os("0x19"),content:Yo(e,os("0x23"),this.getItemLabel(o[os("0x17")],o[os("0x11")]))});continue;case os("0x28"):case os("0x29"):n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x2b"),this.getItemLabel(o[os("0x17")],o[os("0x11")]))});continue;case os("0x6"):n.push({type:os("0x19"),content:Yo(e,"*Split:* %0",this[os("0x32")](o[os("0x17")],o.quantity))});continue;case"removeContainer":n[os("0xd")]({type:os("0x12"),content:Yo(e,os("0x1b"),this[os("0x32")](o[os("0x17")],o[os("0x11")]))});continue}n[os("0xd")](o)}return n}}const rs=["AlignmentEditing","FORMAT_ALIGN_TO_RIGHT","get","center","*Format:* %0","format","plugins","commandName","right","FORMAT_ALIGN_TO_CENTER","change","left","enableCommand","filter","alignment","model","_descriptionFactory","afterInit","FORMAT_JUSTIFY_TEXT","document","ltr","getAttribute","TrackChangesEditing","value","registerDescriptionCallback","editor","locale","contentLanguageDirection"];var is,xs;is=rs,xs=325,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){const t=this.editor,e=t[as("0x9")];if(!t[as("0x11")].has(as("0xb")))return;const n=t[as("0x11")][as("0xd")](as("0x5"));n[as("0x17")](as("0x19"),((e,o={})=>{let s=o[as("0x6")];o.value||(s=as("0x3")===t[as("0x9")][as("0xa")]?as("0x16"):as("0x13"));const r=Array.from(this.editor[as("0x1a")][as("0x2")].selection.getSelectedBlocks())[as("0x18")]((t=>function(t,e,n){const o=t[as("0x4")](as("0x19"))||null;return e.checkAttribute(t,as("0x19"))&&n!=o}(t,this[as("0x8")].model.schema,s)));t[as("0x1a")][as("0x15")]((()=>{for(const t of r)n.markBlockFormat(t,{commandName:as("0x19"),commandParams:[{value:s}]})}))})),n[as("0x1b")][as("0x7")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x12")]){const t=n.commandParams[0][as("0x6")];return{type:as("0x10"),content:Yo(e,as("0xf"),function(t){switch(t){case as("0x16"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x13"):return Yo(e,as("0xc"));case as("0xe"):return Yo(e,as("0x14"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["activeMarkers","elementEnd","ck-suggestion-marker-","isAtEnd","element","previousPosition","markerName","addHighlight","getItems","consumable","get","getAttribute","parent","push","hasAttribute","listIndent","writer","test","addClass","nextSibling","listItem","bindElementToMarker","includes","ck-suggestion-marker--active","plugins","markerRange","name","span","toViewElement","schema","mapper","item","model"];var ds,us;ds=ls,us=313,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x19")]())s[gs("0x1f")](t)&&o[gs("0x1e")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0x15"),gs("0x4"))){let n=t[gs("0x3")];for(;n&&n.is("element",gs("0x4"))&&n[gs("0x1c")](gs("0x20"))>0;)e.push(n),n=n[gs("0x3")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x8")][gs("0x1b")]("TrackChangesEditing");return(s,r,i)=>{if(!i[gs("0x1a")][gs("0x1")](r[gs("0x9")],s[gs("0xa")]))return;const x=r.markerRange.getWalker(),a=r[gs("0x9")].start,c=t[gs("0x10")][gs("0xd")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0xf")];u=u||c.isContent(e);const n=i[gs("0xe")][gs("0xc")](e);if(n&&n.getCustomProperty(gs("0x18")))return;gs("0x12")==t.type&&c.isBlock(e)&&!c.isLimit(e)&&(e[gs("0x3")]||a[gs("0x14")]?l&&l[gs("0x1d")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0x16")])}function m(t){const s=i[gs("0x0")].createUIElement(gs("0xb"),{class:gs("0x13")+e}),x=i[gs("0xe")].toViewPosition(t);n&&o[gs("0x11")][gs("0x6")](r[gs("0x17")])&&i[gs("0x0")][gs("0x2")](gs("0x7"),s),i[gs("0x0")].insert(x,s),i[gs("0xe")][gs("0x5")](s,r[gs("0x17")])}u||g||!d||m(d)}}const ps=["UnderlineEditing","afterInit","bold","StrikethroughEditing","get","commands","_descriptionFactory","value","forceValue","FORMAT_ITALIC","format","toLowerCase","from","strikethrough","locale","slice","FORMAT_UNDERLINE","CodeEditing","enableCommand","plugins","FORMAT_CODE","FORMAT_SUBSCRIPT","selection","model","*Format:* %0","FORMAT_STRIKETHROUGH","ItalicEditing","FORMAT_BOLD","BoldEditing","markInlineFormat","change","italic","superscript","registerDescriptionCallback","FORMAT_SUPERSCRIPT"];var bs,Es;bs=ps,Es=341,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x2"),_s("0x0"),_s("0x9"),_s("0x1a"),_s("0xc"),"SubscriptEditing","SuperscriptEditing"];class Cs extends t.Plugin{[_s("0xa")](){const t=this.editor,e=t[_s("0x20")],n=t[_s("0x1c")][_s("0xd")]("TrackChangesEditing"),o=t[_s("0x17")];for(const o of Ts){if(!t.plugins.has(o))continue;const s=o[_s("0x18")](0,-7)[_s("0x14")](),r=t[_s("0xe")][_s("0xd")](s);n[_s("0x1b")](s,((t,o={})=>{const i=e.document[_s("0x1f")];if(i.isCollapsed)return void t(o);const x=void 0!==o[_s("0x11")]?o[_s("0x11")]:!r[_s("0x10")];e[_s("0x4")]((()=>{const t=Array[_s("0x15")](i.getRanges());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x3")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xf")][_s("0x7")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][_s("0x11")]?{type:_s("0x13"),content:Yo(o,_s("0x21"),e)}:{type:_s("0x13"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xb"),Yo(o,_s("0x1"))),s(_s("0x5"),Yo(o,_s("0x12"))),s("underline",Yo(o,_s("0x19"))),s("code",Yo(o,_s("0x1d"))),s(_s("0x16"),Yo(o,_s("0x22"))),s("subscript",Yo(o,_s("0x1e"))),s(_s("0x6"),Yo(o,_s("0x8")))}}const ys=["checkChild","markBlockFormat","getSelectedBlocks","blockQuote","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","commandParams","commandName","plugins","registerDescriptionCallback","editor","TrackChangesEditing","name","forceValue","value","_descriptionFactory","afterInit","from","*Remove format:* %0","commands","format","model","schema","enableCommand","*Format:* %0"];var ks,As;ks=ys,As=218,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x17")](){const t=this[vs("0x11")],e=t.locale;if(!t.plugins.has(vs("0xc")))return;const n=t[vs("0xf")].get(vs("0x12")),o=this.editor[vs("0x1")].get(vs("0xa"));n[vs("0x5")](vs("0xa"),((e,s={})=>{const r=this[vs("0x11")][vs("0x3")].document.selection,i=s&&void 0!==s[vs("0x14")]?s.forceValue:!o[vs("0x15")];let x=[];if(i){const e=Array[vs("0x18")](r[vs("0x9")]()).filter((t=>Is(t)||function(t,e){const n=e.checkChild(t.parent,vs("0xa")),o=e[vs("0x7")](["$root",vs("0xa")],t);return n&&o}(t,this[vs("0x11")][vs("0x3")][vs("0x4")])));x=I(e,t[vs("0x3")])}else{const e=Array[vs("0x18")](r[vs("0x9")]()).filter((t=>Is(t)));x=I(e,t.model)}t[vs("0x3")].change((()=>{for(const t of x)n[vs("0x8")](t,{commandName:vs("0xa"),commandParams:[{forceValue:i}]})}))})),n[vs("0x16")][vs("0x10")]((t=>{const{data:n}=t;if(n&&vs("0xa")==n[vs("0xe")]){const t=Yo(e,vs("0xb"));return n[vs("0xd")][0].forceValue?{type:vs("0x2"),content:Yo(e,vs("0x6"),t)}:{type:"format",content:Yo(e,vs("0x0"),t)}}}))}}function Is(t){return vs("0xa")==t.parent[vs("0x13")]}const Ss=["editor","enableCommand","ckbox","plugins","afterInit","TrackChangesEditing","get","commands"];var Ls,Ns;Ls=Ss,Ns=316,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x0")](){const t=this[Ms("0x4")];t[Ms("0x3")][Ms("0x2")](Ms("0x6"))&&t[Ms("0x7")][Ms("0x2")](Ms("0x1"))[Ms("0x5")](Ms("0x6"))}}const Os=["from","registerElementLabel","*Format:* %0","commands","commandParams","find","change","CodeBlock","editor","codeBlock","get","outdentCodeBlock","has","indentCodeBlock","name","getSelectedBlocks","document","label","selection","value","*Remove format:* %0","checkChild","config","model","filter","language","enableCommand","registerDescriptionCallback","ELEMENT_CODE_BLOCK","locale","rootElement","formatBlock","languages","parent","format","forceValue","schema","commandName","afterInit","plugins"];var Fs,Ps;Fs=Os,Ps=119,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x27")](){const t=this[Ds("0x9")];if(!t.plugins[Ds("0xd")](Ds("0x8")))return;const e=t[Ds("0x0")][Ds("0xb")]("TrackChangesEditing"),n=t[Ds("0x1e")],o=t[Ds("0x17")][Ds("0xb")](Ds("0xa"))[Ds("0x21")],s=t[Ds("0x4")].get("codeBlock");e[Ds("0x1b")](Ds("0xe")),e[Ds("0x1b")](Ds("0xc")),e.enableCommand(Ds("0xa"),((n,r={})=>{const i=t[Ds("0x18")],x=t[Ds("0x18")][Ds("0x11")][Ds("0x13")],a=r&&void 0!==r[Ds("0x24")]?r.forceValue:!s[Ds("0x14")];let c;r[Ds("0x1a")]||(r[Ds("0x1a")]=o[0][Ds("0x1a")]),c=a?Array[Ds("0x1")](x[Ds("0x10")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x25")],!e.is(Ds("0x1f"))&&!n.isLimit(e)&&n[Ds("0x16")](e[Ds("0x22")],"codeBlock"));var e,n})):Array.from(x[Ds("0x10")]())[Ds("0x19")]((t=>js(t)));const l=I(c,i);i[Ds("0x7")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e._descriptionFactory[Ds("0x2")]("codeBlock",(t=>Yo(n,"ELEMENT_CODE_BLOCK",t))),e._descriptionFactory[Ds("0x1c")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x20")==s&&r&&Ds("0xa")==r[Ds("0x26")]){const t=r.commandParams[0].language,s=e(o[Ds("0x6")]((e=>e.language===t))[Ds("0x12")]);return r[Ds("0x5")][0][Ds("0x24")]?{type:Ds("0x23"),content:Yo(n,Ds("0x3"),Yo(n,Ds("0x1d"),1)+" ("+s+")")}:{type:Ds("0x23"),content:Yo(n,Ds("0x15"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return Ds("0xa")==t[Ds("0xf")]}const Us=["addCommentThread","enableCommand","TrackChangesEditing","get","CommentsEditing","afterInit","plugins","editor"];var Gs,Hs;Gs=Us,Hs=340,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this[zs("0x3")];t.plugins.has(zs("0x0"))&&t[zs("0x2")][zs("0x7")](zs("0x6"))[zs("0x5")](zs("0x4"))}}var Vs=n(181);const Ks=["$graveyard","unit","markerName","bind","options","TrackChangesEditing","downcastDispatcher","removeMarker:suggestion:deletion","deleteForward","plugins","markerNameToElements","delete","editing","buffer","selection","uiElement","model","enableCommand","rootName","createRange","get","root","getFirstRange","addMarker:suggestion:deletion","document","mapper","forward","end","merge","high","showSuggestionHighlights","fromRange","createSelection","modifySelection","setSelection","isCollapsed","init","commands"];var qs,$s;qs=Ks,$s=133,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get requires(){return[Vs.Delete]}[Xs("0x11")](){const t=this.editor,e=t[Xs("0x1c")][Xs("0x1")](Xs("0x18"));e[Xs("0x24")](Xs("0x1e"));const n=t[Xs("0x12")][Xs("0x1")](Xs("0x1b"));e[Xs("0x24")](Xs("0x1b"),((e,o={})=>{const s=t[Xs("0x23")][Xs("0xd")](t[Xs("0x23")][Xs("0x5")][Xs("0x21")]);s[Xs("0x10")]&&t[Xs("0x23")][Xs("0xe")](s,{direction:Xs("0x7"),unit:o[Xs("0x14")]});const r=s[Xs("0x3")](),x=i.LiveRange[Xs("0xc")](r);let a;e(o),a=Xs("0x13")==x[Xs("0x2")][Xs("0x25")]?t[Xs("0x23")][Xs("0x0")](r.start):t.model[Xs("0x0")](x.start,x[Xs("0x8")]),x.detach(),t[Xs("0x23")].enqueueChange(n[Xs("0x20")].batch,(t=>{n.buffer.lock(),t[Xs("0xf")](t.createRange(a[Xs("0x8")])),n[Xs("0x20")].unlock()}))})),t[Xs("0x1f")][Xs("0x19")].on(Xs("0x4"),hs(t,"merge"),{priority:Xs("0xa")}),t.data[Xs("0x19")].on(Xs("0x4"),((e,n,o)=>{o[Xs("0x17")][Xs("0xb")]&&hs(t,Xs("0x9"),{showActiveMarker:!1})[Xs("0x16")](this)(e,n,o)}),{priority:Xs("0xa")}),t[Xs("0x1f")].downcastDispatcher.on(Xs("0x1a"),((t,e,n)=>{const o=n.mapper[Xs("0x1d")](e[Xs("0x15")]);if(o)for(const t of o)t.is(Xs("0x22"))&&(n[Xs("0x6")].unbindElementFromMarkerName(t,e.markerName),n.writer.remove(t))}),{priority:Xs("0xa")})}}const Qs=["schema","listType","selection","listItemId","setSelection","slice","enableCommand","execute","model","nextSibling","documentList","editor","getSelectedBlocks","isFirstBlockOfListItem","DocumentListUtils","*Merge:* %0","has","length","getRanges","hasAttribute","getAttribute","expandListBlocksToCompleteList","value","format","*Indent:* %0","registerDescriptionCallback","splitListItemAfter","indentList","change","registerCustomCallback","splitListItemBefore","containsItem","forceValue","*Format:* remove from %0","commandParams","_LIST","detach","_descriptionFactory","*Change to:* %0","start","mergeListItemForward","map","push","*Outdent:* %0","refresh","createPositionAt","TrackChangesEditing","plugins","before","bulletedList","nodeAfter","markMultiRangeBlockFormat","getFirstRange","document","end","ELEMENT_NUMBERED_LIST","*Format:* insert into %0","outdentList","createRange","markBlockFormat","numberedList","commandName","from","ELEMENT_","_suggestionFactory","ELEMENT_LIST_ITEM","isObject","DocumentListEditing","get","locale","listIndent","afterInit","commands"];var Zs,Ys;Zs=Qs,Ys=264,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x1a")](){const t=this[tr("0x27")];if(!t.plugins[tr("0x2c")](tr("0x16")))return;const e=t[tr("0x18")],n=t[tr("0x2")][tr("0x17")](tr("0x1")),o=t[tr("0x2")][tr("0x17")](tr("0x2a"));function s(e){return()=>{const s=t.commands[tr("0x17")](e);let r=Array.from(t[tr("0x24")].document.selection[tr("0x28")]());if(a(e)){r=o[tr("0x31")](r);const t=[];for(const e of r)o[tr("0x29")](e)&&t[tr("0x46")](e);r=t}t[tr("0x24")][tr("0x38")]((()=>{n[tr("0x6")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x32")]}],formatGroupId:tr("0x1d")},[],tr("0x26"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e.findIndex((t=>!t[tr("0x2f")](tr("0x1f"))));return n>-1&&(e=e[tr("0x21")](0,n)),e}(t[tr("0x24")].document[tr("0x1e")].getSelectedBlocks()),s=o[o[tr("0x2d")]-1],r=t[tr("0x24")][tr("0x1c")][tr("0x15")](s)?"after":tr("0x9"),i=t[tr("0x24")].createRange(t[tr("0x24")][tr("0x0")](o[0],tr("0x3")),t.model[tr("0x0")](s,r));t.model[tr("0x38")]((()=>{n[tr("0xe")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1d")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x25")];for(;t&&t[tr("0x30")](tr("0x19"))>n[tr("0x30")](tr("0x19"));)e.add(t),t=t.nextSibling}return Array[tr("0x11")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x24")][tr("0x8")][tr("0x1e")][tr("0x28")]().next()[tr("0x32")],s=t[tr("0x24")][tr("0x0")](o,tr("0x3")),r=t[tr("0x24")][tr("0x0")](o,0),i=t[tr("0x24")].createRange(s,r);t.model[tr("0x38")]((()=>{n[tr("0xe")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1d")})}))}}function a(e){const n=t[tr("0x1b")][tr("0x17")](tr("0x4"))[tr("0x32")],o=t[tr("0x1b")][tr("0x17")](tr("0xf"))[tr("0x32")];return"numberedList"===e?n:o}n.enableCommand("numberedList",s("numberedList")),n[tr("0x22")](tr("0x4"),s(tr("0x4"))),n[tr("0x22")]("indentList",r(tr("0x37"))),n[tr("0x22")](tr("0xc"),r(tr("0xc"))),n[tr("0x22")](tr("0x36"),x(tr("0x36"))),n[tr("0x22")]("splitListItemBefore",x(tr("0x3a"))),n[tr("0x41")].registerElementLabel((function(e){const n=!t.model[tr("0x1c")][tr("0x15")](e),o=e.previousSibling,s=e[tr("0x25")],r=e[tr("0x30")](tr("0x1f")),i=!o||o[tr("0x30")](tr("0x1f"))!==r,x=!s||s[tr("0x30")](tr("0x1f"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x14"),t))),n[tr("0x41")][tr("0x35")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x10")]){case"bulletedList":r=n[tr("0x3e")][0][tr("0x3c")],i=a(n[tr("0x10")]),o=tr(r?"0xb":"0x3d"),i&&(o="*Change to:* %0"),s={type:tr("0x33"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0xf"):r=n[tr("0x3e")][0][tr("0x3c")],i=a(n[tr("0x10")]),o=r?"*Format:* insert into %0":tr("0x3d"),i&&(o=tr("0x42")),s={type:"format",content:Yo(e,o,Yo(e,tr("0xa")))};break;case"indentList":o=tr("0x34"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x14")))};break;case tr("0xc"):o=function(t){const e=t[tr("0x7")]();let n=e[tr("0x43")].nodeAfter;for(;n&&e[tr("0x3b")](n);){if(n.getAttribute(tr("0x19"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t.getFirstRange().start[tr("0x5")];return tr("0x12")+e[tr("0x30")](tr("0x1d")).toUpperCase()+tr("0x3f")}(t))):Yo(e,tr("0x47"),Yo(e,tr("0x14"))),s={type:tr("0x33"),content:o};break;case"mergeListItemBackward":case tr("0x44"):!1===n.multipleBlocks&&(o=tr("0x2b"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x14")))})}return s})),n[tr("0x13")][tr("0x39")]("formatBlock",tr("0x26"),"accept",(function(e,n){const o=[];for(let n of e)n[tr("0x43")][tr("0x5")]===n[tr("0x9")].parent&&(n=t.model[tr("0xd")](t[tr("0x24")][tr("0x0")](n.start[tr("0x5")],0))),o[tr("0x46")](n);t[tr("0x24")].change((e=>{const s=t[tr("0x24")].document[tr("0x1e")],r=Array.from(s[tr("0x2e")]())[tr("0x45")]((t=>i.LiveRange.fromRange(t)));e.setSelection(o),t[tr("0x1b")][tr("0x17")](n[tr("0x10")])[tr("0x48")](),n[tr("0x3e")][tr("0x46")]({forceDefaultExecution:!0}),t[tr("0x23")](n[tr("0x10")],...n[tr("0x3e")]),e[tr("0x20")](r);for(const t of r)t[tr("0x40")]()}))}))}}var nr=n(331);const or=["markerName","enterBlock","editing","mapper","editor","fire","enter","plugins","get","data","requires","nextSibling","fromRange","commands","hasClass","high","ck-suggestion-marker-split","markInsertion","split","end","enableCommand","document","unbindElementFromMarkerName","TrackChangesEditing","model","createRange","removeMarker:suggestion:insertion","detach","afterExecute","markerNameToElements","parent","downcastDispatcher"];var sr,rr;sr=or,rr=167,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x3")](){return[nr.Enter]}init(){const t=this[ir("0x1d")],e=t[ir("0x0")][ir("0x1")](ir("0x10")),n=t[ir("0x6")][ir("0x1")](ir("0x1f"));e[ir("0xd")](ir("0x1f"),(()=>{t[ir("0x11")].change((o=>{const s=t.model[ir("0xe")].selection,r=s.getFirstPosition(),x=i.LiveRange[ir("0x5")](s.getFirstRange());if(n[ir("0x1a")](o)){const n=t[ir("0x11")].createPositionAt(r[ir("0x17")][ir("0x4")],0),s=o.createRange(r,n);e[ir("0xa")](s)}else o.setSelection(o[ir("0x12")](x[ir("0xc")]));x[ir("0x14")](),n[ir("0x1e")](ir("0x15"),{writer:o})}))})),t[ir("0x1b")].downcastDispatcher.on("addMarker:suggestion:insertion",hs(t,ir("0xb")),{priority:ir("0x8")}),t.editing[ir("0x18")].on(ir("0x13"),((t,e,n)=>{const o=n[ir("0x1c")][ir("0x16")](e.markerName);if(o)for(const t of o)t[ir("0x7")](ir("0x9"))&&(n[ir("0x1c")][ir("0xf")](t,e[ir("0x19")]),n.writer.remove(t))}),{priority:"high"}),t[ir("0x2")][ir("0x18")].on("addMarker:suggestion:insertion",((e,n,o)=>{o.options.showSuggestionHighlights&&hs(t,ir("0xb"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ir("0x8")})}}const ar=["markers","filter","model","replace","getRange","find","editor","enableCommand","findByTextCallback","end","get","_isInDeletionRange","FindAndReplaceEditing","plugins","getIntersection","item","afterInit","handleFindCommand","suggestion:deletion","findNext"];var cr,lr;cr=ar,lr=480,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x10")](){if(!this[dr("0x6")][dr("0xd")].has(dr("0xc")))return;const t=this.editor.plugins[dr("0xa")]("TrackChangesEditing");t.enableCommand(dr("0x5"),this[dr("0x11")].bind(this)),t.enableCommand(dr("0x13")),t.enableCommand("findPrevious"),t[dr("0x7")](dr("0x3")),t[dr("0x7")]("replaceAll")}[dr("0x11")](t,e,n={}){const o=this[dr("0x6")][dr("0xd")].get("FindAndReplaceUtils");void 0!==n&&t((t=>("string"==typeof e?o[dr("0x8")](e,n):e)(t)[dr("0x1")]((e=>!1===this[dr("0xb")](e,t[dr("0xf")])))),n)}[dr("0xb")](t,e){const n=this.editor[dr("0x2")].createRange(this[dr("0x6")][dr("0x2")].createPositionAt(e,t.start),this[dr("0x6")][dr("0x2")].createPositionAt(e,t[dr("0x9")]));for(const t of this[dr("0x6")][dr("0x2")][dr("0x0")].getMarkersGroup(dr("0x12")))if(null!==n[dr("0xe")](t[dr("0x4")]()))return!0;return!1}}const gr=["normalizeSizeOptions","commandParams","*Set font background color:* %0","editor","afterInit","toLowerCase","fontSize","*Set font color:* %0","markInlineFormat","fontBackgroundColor","*Reset font color*","plugins","*Reset font background color*","has","FontColorEditing","FontSizeEditing","commandName","selection","locale","model","fontColor","*Set font family:* %0","registerDescriptionCallback","config","label","enableCommand","format","find","*Reset font family*","fontFamily","value","fontBackgroundColor.colors","fontColor.colors","FontSize","FontFamilyEditing","change","get","TrackChangesEditing","_enableCommand","*Set font size:* %0","fontSize.options","getRanges"];var mr,fr;mr=gr,fr=342,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x9"),commandName:"fontSize"},{pluginName:hr("0x1c"),commandName:hr("0x17")},{pluginName:hr("0x8"),commandName:hr("0xe")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x3")}];class br extends t.Plugin{[hr("0x28")](){const t=this[hr("0x27")][hr("0xc")];for(const{pluginName:t,commandName:e}of pr)this[hr("0x27")].plugins[hr("0x7")](t)&&this[hr("0x20")](e);this[hr("0x27")][hr("0x5")][hr("0x1e")]("TrackChangesEditing")._descriptionFactory[hr("0x10")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x0")==o[hr("0xa")]){const e=o.commandParams[0].value;if(e){const o=n(this[hr("0x27")].plugins.get(hr("0x1b"))[hr("0x24")](this[hr("0x27")][hr("0x11")][hr("0x1e")](hr("0x22")))[hr("0x15")]((t=>t[hr("0xd")]==e)).title)[hr("0x29")]();return{type:hr("0x14"),content:Yo(t,hr("0x21"),o)}}return{type:hr("0x14"),content:Yo(t,"*Reset font size*")}}if(hr("0x17")==o.commandName){const e=o[hr("0x25")][0].value;return e?{type:hr("0x14"),content:Yo(t,hr("0xf"),e)}:{type:"format",content:Yo(t,hr("0x16"))}}if(hr("0xe")==o[hr("0xa")]){const e=o[hr("0x25")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x11")][hr("0x1e")](hr("0x1a")))[hr("0x15")]((t=>t[hr("0xd")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0x29")]()),{type:hr("0x14"),content:Yo(t,hr("0x1"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x14"),content:Yo(t,hr("0x4"))}}if(hr("0x3")==o[hr("0xa")]){const e=o[hr("0x25")][0][hr("0x18")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x27")][hr("0x11")][hr("0x1e")](hr("0x19")))[hr("0x15")]((t=>t.model==e));let r=e,i="";return o&&(r=o[hr("0x12")],i=n(r)[hr("0x29")]()),{type:hr("0x14"),content:Yo(t,hr("0x26"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0x14"),content:Yo(t,hr("0x6"))}}}}))}[hr("0x20")](t){const e=this[hr("0x27")];e.plugins.get(hr("0x1f"))[hr("0x13")](t,((n,o={})=>{const s=e[hr("0xd")].document[hr("0xb")],r=o[hr("0x18")];s.isCollapsed?n(o):e[hr("0xd")][hr("0x1d")]((()=>{const n=Array.from(s[hr("0x23")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xd")]);for(const o of n)e[hr("0x5")][hr("0x1e")]("TrackChangesEditing")[hr("0x2")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["isBlock","locale","forward","charAt","fontColor","format","toLowerCase","config","document","createSelection","getAttributes","createRange","push","isFormatting","*Set format to:* %0","pasteFormat","getFirstPosition","enableCommand","join","title","commands","copyFormat","getAttributeProperties","getItems","normalizeSizeOptions","get","modifySelection","find","toUpperCase","length","TrackChangesEditing","getRanges","schema","label","commandParams","fontBackgroundColor","getSelectedBlocks","fontSize.options","slice","change","word","_descriptionFactory","backward","plugins","getLastPosition","*Remove all formatting*","model","editor","split"];var _r,Tr;_r=Er,Tr=251,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{afterInit(){const t=this[Cr("0x29")],n=t[Cr("0x28")],o=n[Cr("0x2")].selection,s=t[Cr("0x25")].get(Cr("0x18")),r=t[Cr("0x2c")],i=t[Cr("0xe")][Cr("0x13")](Cr("0xf")),x=t[Cr("0xe")][Cr("0x13")](Cr("0x9"));i&&x&&(s[Cr("0xb")](Cr("0x9"),((t,r={})=>{const i=r;n[Cr("0x21")]((()=>{const t=Array.from(o.getRanges()),r=o.isCollapsed?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cr("0x4")]()){const t=e[Cr("0x10")](n);t&&t[Cr("0x7")]&&(yield n)}}(t,n));for(const e of t[Cr("0x19")]())for(const t of e[Cr("0x11")]())!n[Cr("0x2b")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x1e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x1a")]))||0!==Object.keys(i)[Cr("0x17")])for(const t of r)s.markInlineFormat(t,{commandName:Cr("0x9"),commandParams:[i]})}))})),s[Cr("0x23")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Cr("0x9")===n.commandName){const e=[],o=n[Cr("0x1c")][0];for(const[n,s]of Object.entries(o))e[Cr("0x6")](Ar(t,n,s));return e[Cr("0x17")]?{type:Cr("0x30"),content:Yo(r,Cr("0x8"),e[Cr("0xc")](", "))}:{type:"format",content:Yo(r,Cr("0x27"))}}})),t[Cr("0x25")].get("TrackChangesEditing")[Cr("0xb")](Cr("0xf")))}}function kr(t,e){const n=t[Cr("0x3")](e);t[Cr("0x14")](n,{unit:Cr("0x22"),direction:Cr("0x24")});const o=n[Cr("0xa")]();t.modifySelection(n,{unit:Cr("0x22"),direction:Cr("0x2d")});const s=n[Cr("0x26")]();return t[Cr("0x5")](o,s)}function Ar(t,e,n){const o=t[Cr("0x2c")].t,r=e[Cr("0x2a")](/(?=[A-Z])/)[Cr("0xc")](" "),i=o(r[Cr("0x2e")](0)[Cr("0x16")]()+r[Cr("0x20")](1)).toLowerCase();if("boolean"==typeof n)return i;if(Cr("0x2f")===e||Cr("0x1d")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x1")].get("fontColor.colors"))[Cr("0x15")]((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0x1b")])[Cr("0x0")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x25")][Cr("0x13")]("FontSize")[Cr("0x12")](t.config.get(Cr("0x1f"))).find((t=>t[Cr("0x28")]==n));return i+" ("+(e?o(e[Cr("0xd")])[Cr("0x0")]():n)+")"}return i+" ("+n+")"}const vr=["config","from","registerDescriptionCallback","commandName","locale","formatBlock","plugins","ELEMENT_HEADING_CUSTOM","find","*Change to:* %0","get","has","title","model","enableCommand","_descriptionFactory","format","heading","commandParams","parent","paragraph","checkChild","editor","afterInit","HeadingEditing","registerElementLabel","filter","value"];var Rr,Ir;Rr=vr,Ir=345,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0xe")](){const t=this[Sr("0xd")],e=t[Sr("0x17")],n=t[Sr("0x13")][Sr("0x1")]("heading.options");if(!t.plugins[Sr("0x2")](Sr("0xf")))return;const o=t[Sr("0x19")][Sr("0x1")]("TrackChangesEditing");o[Sr("0x5")](Sr("0x8"),((e,n)=>{const s=n.value,r=Array[Sr("0x14")](this[Sr("0xd")][Sr("0x4")].document.selection.getSelectedBlocks())[Sr("0x11")]((t=>{return e=t,n=s,(o=this[Sr("0xd")][Sr("0x4")].schema)[Sr("0xc")](e[Sr("0xa")],n)&&!o.isObject(e)&&e.name!=n;var e,n,o}));t.model.change((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Sr("0x8"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)Sr("0xb")!=t[Sr("0x4")]&&o[Sr("0x6")][Sr("0x10")](t[Sr("0x4")],(e=>{const n=Nr(t[Sr("0x4")]);return null!==n?s(e,n):r(e,t[Sr("0x3")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,Sr("0x1a"),[t,n])}o[Sr("0x6")][Sr("0x15")]((t=>{const{type:o,data:i}=t;if(Sr("0x18")==o&&i&&Sr("0x8")==i[Sr("0x16")]){const t=i[Sr("0x9")][0][Sr("0x12")],o=Nr(t);if(null!==o)return{type:Sr("0x7"),content:Yo(e,Sr("0x0"),s(1,o))};const x=n[Sr("0x1b")]((e=>e.model===t))[Sr("0x3")];return{type:"format",content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t.match(/^heading(\d+)$/);return e?e[1]:null}const Mr=["*Set highlight:* %0","model","find","afterInit","config","*Remove highlight*","item","toLowerCase","format","selection","markInlineFormat","title","formatInline","push","editor","registerDescriptionCallback","TrackChangesEditing","plugins","isCollapsed","getLastMatchingPosition","commandParams","highlight","hasAttribute","createRange","commandName","change","getRanges","getFirstPosition","get","locale","FORMAT_HIGHLIGHT","value","getAttribute"];var wr,Or;wr=Mr,Or=180,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x15")](){const t=this[Fr("0x20")];if(!t[Fr("0x2")].has("HighlightEditing"))return;const e=t[Fr("0x2")][Fr("0xd")](Fr("0x1"));e.enableCommand(Fr("0x6"),((n,o={})=>{const s=t.model.document[Fr("0x1b")],r=s.getAttribute(Fr("0x6"));let i=o[Fr("0x10")],x=[];if(s[Fr("0x3")]){const e=s[Fr("0xc")]();if(!s[Fr("0x7")]("highlight"))return void n(o);{const n=t=>t[Fr("0x18")][Fr("0x11")](Fr("0x6"))===r,o=e.getLastMatchingPosition(n,{direction:"backward"}),s=e[Fr("0x4")](n);x=[t[Fr("0x13")][Fr("0x8")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0xb")]())i?x.push(e):x[Fr("0x1f")](...ms("highlight",e,t[Fr("0x13")]));t[Fr("0x13")][Fr("0xa")]((()=>{for(const t of x)e[Fr("0x1c")](t,{commandName:Fr("0x6"),commandParams:[{value:i}]})}))}));const n=t[Fr("0xe")];e._descriptionFactory[Fr("0x0")]((e=>{const{type:o,data:s}=e;if(Fr("0x1e")==o&&s&&Fr("0x6")==s[Fr("0x9")]){const e=n.t,o=s[Fr("0x5")][0][Fr("0x10")];if(o){const s=t[Fr("0x16")][Fr("0xd")]("highlight.options")[Fr("0x14")]((t=>t.model==o)),r=e(s[Fr("0x1d")])[Fr("0x19")]();return{type:Fr("0x1a"),content:Yo(n,Fr("0x12"),r),color:{value:s.color,title:s[Fr("0x1d")]}}}return{type:Fr("0x1a"),content:Yo(n,Fr("0x17"),Yo(n,Fr("0xf")))}}}))}}const Dr=["insert","dataDowncast","afterInit","_descriptionFactory","high","get","addClass","createPositionAt","editor","horizontalLine","HorizontalLineEditing","plugins","createContainerElement","locale","ELEMENT_HORIZONTAL_LINE","createEmptyElement","registerElementLabel","conversion","for","div","enableCommand","showSuggestionHighlights","elementToStructure"];var Br,jr;Br=Dr,jr=281,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x14")](){const t=this[Ur("0x3")];if(!t[Ur("0x6")].has(Ur("0x5")))return;t.plugins[Ur("0x0")]("TrackChangesEditing")[Ur("0xf")]("horizontalLine");const e=t[Ur("0x6")][Ur("0x0")]("TrackChangesEditing"),n=t[Ur("0x8")];e[Ur("0x15")][Ur("0xb")](Ur("0x4"),(t=>Yo(n,Ur("0x9"),t))),t[Ur("0xc")][Ur("0xd")](Ur("0x13"))[Ur("0x11")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Ur("0x10")])return null;const o=e[Ur("0x7")](Ur("0xe")),s=e[Ur("0xa")]("hr");return e[Ur("0x1")]("ck-horizontal-line",o),e[Ur("0x12")](e[Ur("0x2")](o,0),s),o},converterPriority:Ur("0x16")})}}const Hr=["view","markBlockFormat","format","htmlEmbed","selection","has","registerElementLabel","registerDescriptionCallback","TrackChangesEditing","getAttribute","enableCommand","HtmlEmbed","_descriptionFactory","get","ELEMENT_HTML_EMBED","getSelectedElement","model","rawHtml","document","change","*Change %0 content*","afterInit","editor"];var zr,Wr;zr=Hr,Wr=170,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xc")](){const t=this[Vr("0xd")];if(!t.plugins[Vr("0x13")](Vr("0x2")))return;const e=t.plugins[Vr("0x4")](Vr("0x16")),n=t.locale,o=t.editing[Vr("0xe")][Vr("0x9")][Vr("0x12")];e[Vr("0x3")][Vr("0x14")](Vr("0x8"),(t=>Yo(n,Vr("0x5"),t))),t.plugins[Vr("0x4")](Vr("0x16"))[Vr("0x1")](Vr("0x11"),((n,s)=>{const r=t[Vr("0x7")],i=r[Vr("0x9")][Vr("0x12")];r[Vr("0xa")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is("element",Vr("0x8"))?t[Vr("0x6")]():null}(i);if(!t)return void n(null);const r=t[Vr("0x0")]("value")||"";void 0!==s&&s!==r&&(e[Vr("0xf")](t,{commandName:Vr("0x11"),commandParams:[s]}),o[Vr("0x6")]().getCustomProperty("rawHtmlApi").cancel())}))})),e._descriptionFactory[Vr("0x15")]((t=>{const{data:e}=t;if(e&&Vr("0x11")==e.commandName){const t=Yo(n,Vr("0x5"));return{type:Vr("0x10"),content:Yo(n,Vr("0xb"),t)}}}))}}const qr=["imageInline","has","commandName","*Set image text alternative:* %0","deletion","differ","detach","isBefore","normalizedStyles","previous","plugins","getClosestSelectedImageElement","commandReversedParams","hasSuggestion","_splitMarkerName","findIndex","Users","ImageResize","ImageUtils","isBlockImage","addObject","forEach","ImageCaptionEditing","ELEMENT_IMAGE","find","enableCommand","document","chain","suggestion","_descriptionFactory","registerCustomCallback","subType","isInContent","shouldConvertImageType","fromPosition","get","createRange","TrackChangesEditing","side","isInlineImage","start","end","element","formatInline","insertImage","change","getSuggestion","afterInit","join","alt","getContainedElement","next","convertInlineImageToBlock","ELEMENT_CAPTION","getNearestSelectionRange","ImageEditing","imageTextAlternative","author","Inline image to block image","caption","isIntersecting","imageBlock","nodeBefore","hasAttribute","createRangeOn","format","isCollapsed","backward","ImageUploadEditing","from","filter","imageStyle","commands","refresh","head","insertion","selection","discardSuggestion","resizeImage","toggleImageCaption","registerDescriptionCallback","imageStylePreApply","locale","length","schema","model","newRange","markInsertion","imageTypeBlock","imageCaption","getAttribute","imageTypeInline","registerPostFixer","commandParams","*Set image width:* %0","isEqual","title","ImageStyleEditing","discard","imageStylePostApply","convertBlockImageToInline","markDeletion","getSuggestionCallback","name","isOwn","value","uploadImage","newValue","ImageInlineEditing","registerElementLabel","getFirstRange","markInlineFormat","formatBlock","_suggestionFactory","width","accept","markBlockFormat","_findSuggestions","Block image to inline image","type"];var $r,Xr;$r=qr,Xr=437,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x5a")](){const t=this.editor;if(!t[Jr("0x35")].has(Jr("0x62")))return;const n=t.plugins[Jr("0x4e")](Jr("0x50")),o=t[Jr("0x35")][Jr("0x4e")](Jr("0x3d")),s={},r=t[Jr("0x5")];if(n[Jr("0x44")](Jr("0x57")),n[Jr("0x48")][Jr("0x20")](Jr("0x68"),(t=>Yo(r,Jr("0x42"),t))),n[Jr("0x48")][Jr("0x20")](Jr("0x2b"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x48")][Jr("0x20")](Jr("0x66"),(()=>Yo(r,Jr("0x60")))),t.plugins.has(Jr("0x6f"))&&n[Jr("0x44")](Jr("0x1d")),t.plugins.has("ImageBlockEditing")&&t.plugins[Jr("0x2c")](Jr("0x1f"))&&(n[Jr("0x44")](Jr("0xe"),((e,s)=>{const r=o[Jr("0x36")](t.model[Jr("0x45")][Jr("0x77")]);t[Jr("0x8")][Jr("0x58")]((()=>{n[Jr("0x27")](r,{commandName:Jr("0xe"),commandParams:[s]},[],Jr("0x17"))}))})),n[Jr("0x44")](Jr("0xb"),((e,s)=>{t.model[Jr("0x58")]((r=>{let x=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),a=r[Jr("0x6b")](x);const c=i.LivePosition[Jr("0x4d")](a[Jr("0x53")],"toPrevious"),l=i.LivePosition[Jr("0x4d")](a[Jr("0x54")],"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),a=r.createRangeOn(x);const d=r[Jr("0x4f")](c,l);c[Jr("0x31")](),l[Jr("0x31")](),n[Jr("0x27")](x,{commandName:Jr("0xe"),commandParams:[]},[],"convertInlineImageToBlock"),d[Jr("0x53")][Jr("0x32")](a.start)&&n[Jr("0xa")](r[Jr("0x4f")](d.start,a[Jr("0x53")]),Jr("0x5f")),a[Jr("0x54")][Jr("0x32")](d[Jr("0x54")])&&n[Jr("0xa")](r[Jr("0x4f")](a[Jr("0x54")],d.end),Jr("0x5f"))}))})),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x5f"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")][Jr("0x49")](Jr("0x23"),Jr("0x5f"),Jr("0x26"),(()=>!1)),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x5f"),Jr("0x15"),n._suggestionFactory.getSuggestionCallback("formatBlock","",Jr("0x26"))),n[Jr("0x24")][Jr("0x49")]("insertion",Jr("0x5f"),Jr("0x5b"),(()=>!1)),n._suggestionFactory[Jr("0x49")]("insertion",Jr("0x5f"),"discard",(([e])=>{const o=n[Jr("0x24")][Jr("0x19")]("insertion","","discard");let s=e.start,r=e[Jr("0x54")];const i=t[Jr("0x8")].schema[Jr("0x61")](s,Jr("0x6e")),x=t[Jr("0x8")][Jr("0x7")][Jr("0x61")](r,"forward");i.isCollapsed&&(s=i.start),x[Jr("0x6d")]&&(r=x[Jr("0x54")]),o([t.model[Jr("0x4f")](s,r)])})),n._suggestionFactory.registerCustomCallback(Jr("0x23"),Jr("0x5f"),Jr("0x46"),c),n[Jr("0x24")][Jr("0x49")](Jr("0x76"),Jr("0x5f"),Jr("0x46"),c)),t[Jr("0x35")][Jr("0x2c")](Jr("0x41"))&&(n.enableCommand(Jr("0x2"),((e,s)=>{const r=t[Jr("0x35")][Jr("0x4e")]("ImageCaptionUtils");let i=o.getClosestSelectedImageElement(t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x8")][Jr("0x58")]((()=>{if(x)return void n[Jr("0x18")](t[Jr("0x8")][Jr("0x6b")](x));const a=o[Jr("0x3e")](i);e(s),i=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),x=r.getCaptionFromImageModelElement(i),n[Jr("0xa")](t[Jr("0x8")].createRangeOn(x),a?null:"imageCaption")}))})),n[Jr("0x24")][Jr("0x49")]("insertion","imageCaption",Jr("0x46"),c)),t[Jr("0x35")][Jr("0x2c")]("ImageStyleEditing")){n.enableCommand(Jr("0x72"),((s,r)=>{const i=t[Jr("0x35")].get(Jr("0x3b")).me,x=t[Jr("0x73")][Jr("0x4e")](Jr("0x72"));let a=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")][Jr("0x77")]),c=t.model[Jr("0x6b")](a),l=x[Jr("0x1c")];if(l==r.value)return;const d={commandName:Jr("0x72"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x58")]((()=>{if(n.getSuggestions()[Jr("0x71")]((t=>t[Jr("0x4b")]&&i==t[Jr("0x64")]&&("formatBlock"==t.type||Jr("0x56")==t[Jr("0x2a")])&&(Jr("0x4")==t[Jr("0x4a")]||Jr("0x16")==t.subType)&&t.getFirstRange()[Jr("0x12")](c)))[Jr("0x40")]((t=>n[Jr("0x0")](t[Jr("0x75")]))),a=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")].selection),c=t[Jr("0x8")][Jr("0x6b")](a),x[Jr("0x74")](),t.commands.get(Jr("0xe")).refresh(),t.commands.get(Jr("0xb"))[Jr("0x74")](),l=x[Jr("0x1c")],l!=r[Jr("0x1c")])return o[Jr("0x52")](a)&&x[Jr("0x4c")](r.value,a)?(s(r),a=o[Jr("0x36")](t[Jr("0x8")].document[Jr("0x77")]),void n[Jr("0x27")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x3e")](a)?n[Jr("0x27")](a,d,[],Jr("0x16")):n[Jr("0x22")](c,d,Jr("0x16")))}))}));for(const e of t[Jr("0x35")][Jr("0x4e")](Jr("0x14"))[Jr("0x33")])s[e[Jr("0x1a")]]=e[Jr("0x13")].toLowerCase();n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")][Jr("0x49")](Jr("0x23"),Jr("0x16"),Jr("0x5b"),(()=>!1)),n[Jr("0x24")].registerCustomCallback(Jr("0x56"),Jr("0x16"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback(Jr("0x23"),"imageStylePreApply",Jr("0x26"),(()=>!1)),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),"discard",((t,e)=>{n[Jr("0x24")].getSuggestionCallback(Jr("0x23"),"",Jr("0x26"))(t,{commandName:e[Jr("0x2d")],commandParams:e[Jr("0x37")]})})),n[Jr("0x24")][Jr("0x49")]("formatBlock",Jr("0x4"),Jr("0x46"),c)}const x=[{type:Jr("0x23"),subType:Jr("0x4")},{type:Jr("0x76"),subType:"imageCaption"},{type:Jr("0x23"),subType:Jr("0x5f")},{type:Jr("0x76"),subType:Jr("0x5f")}];function a(t,e){const s=x[Jr("0x3a")]((({type:e,subType:n})=>t[Jr("0x2a")]==e&&t[Jr("0x4a")]==n)),r=x[Jr("0x3a")]((({type:t,subType:n})=>e[Jr("0x2a")]==t&&e[Jr("0x4a")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x21")](),a=e.getFirstRange();if((0==s||1==s)&&2==r&&i[Jr("0x67")](a))return!0;if(2==s&&3==r){const t=n[Jr("0x28")](i,Jr("0x76")).filter((({suggestion:t,meta:e})=>e[Jr("0x1b")]&&Jr("0x5f")==t[Jr("0x4a")]));if(t[Jr("0x6")]>1&&a.end.isEqual(i[Jr("0x53")]))return!0;if(1==t[Jr("0x6")]&&(i.start.isEqual(a[Jr("0x54")])||i.end[Jr("0x12")](a.start)))return!0}if(3==s&&3==r&&i[Jr("0x53")][Jr("0x32")](a[Jr("0x53")])){const t=i[Jr("0x54")].nodeAfter,e=a.start[Jr("0x69")];return o[Jr("0x3e")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x8")][Jr("0x45")][Jr("0xf")]((()=>{let e=!1;const s=Array[Jr("0x70")](t.model[Jr("0x45")][Jr("0x30")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x39")](t);if(Jr("0x47")==s&&n[Jr("0x38")](a)){if(Jr("0x23")==i&&(Jr("0x4")==x||Jr("0x16")==x)){const t=n[Jr("0x59")](a);if(r[Jr("0x9")]){const s=t[Jr("0x21")]()[Jr("0x5d")]();if(o[Jr("0x3e")](s))continue;n.discardSuggestion(t),e=!0}}if(Jr("0x76")==i&&Jr("0xc")==x&&!r[Jr("0x9")]){const t=n[Jr("0x59")](a);t[Jr("0x5e")]&&t.next[Jr("0x4b")]&&(n[Jr("0x0")](t[Jr("0x5e")]),e=!0)}}}return e})),t[Jr("0x35")].has(Jr("0x3c"))&&n[Jr("0x44")](Jr("0x1"),((e,s)=>{const r=o[Jr("0x36")](t[Jr("0x8")][Jr("0x45")].selection);r[Jr("0xd")](Jr("0x25"))!=s[Jr("0x25")]&&t.model[Jr("0x58")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x1"),commandParams:[s]})}))})),t[Jr("0x35")][Jr("0x2c")]("ImageTextAlternativeEditing")&&n[Jr("0x44")](Jr("0x63"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x8")][Jr("0x45")].selection);(r[Jr("0x6a")](Jr("0x5c"))?r[Jr("0xd")](Jr("0x5c")):"")!=s[Jr("0x1e")]&&t[Jr("0x8")][Jr("0x58")]((()=>{n[Jr("0x27")](r,{commandName:"imageTextAlternative",commandParams:[s]})}))})),n[Jr("0x48")][Jr("0x3")]((t=>{if(x[Jr("0x43")]((({type:e,subType:n})=>t[Jr("0x2a")]==e&&t[Jr("0x4a")]==n)))return t[Jr("0x34")]?{}:void 0})),n[Jr("0x48")][Jr("0x3")]((t=>{if(Jr("0x76")==t[Jr("0x2a")]||Jr("0x2f")==t[Jr("0x2a")]){const e=t[Jr("0x5d")]();if(e&&e.is(Jr("0x55"),Jr("0x66")))return{type:"insertion"==t.type?Jr("0x3f"):"removeObject",element:e,quantity:1}}})),n[Jr("0x48")][Jr("0x3")]((t=>Jr("0x23")==t.type&&Jr("0x5f")==t[Jr("0x4a")]?{type:Jr("0x6c"),content:Jr("0x65")}:Jr("0x23")==t.type&&Jr("0x17")==t.subType?{type:Jr("0x6c"),content:Jr("0x29")}:void 0)),n._descriptionFactory[Jr("0x3")]((t=>{const{data:e}=t;if(e){if(Jr("0x72")==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x1c")];return n=Jr("0x51")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:Jr("0x6c"),content:Yo(r,"*Format:* %0",n)}}if(Jr("0x63")==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x1e")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x2e"),'"'+t+'"')}:{type:Jr("0x6c"),content:Yo(r,"*Remove image text alternative*")}}if("resizeImage"==e[Jr("0x2d")]){const t=e[Jr("0x10")][0][Jr("0x25")];return t?{type:Jr("0x6c"),content:Yo(r,Jr("0x11"),t)}:{type:Jr("0x6c"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["commandName","discard","commandParams","TrackChangesEditing","Users","locale","handleSuggestionDescription","format","getSuggestionCallback","replaceImageSource","getSelectedElement","_suggestionFactory","formatBlock","markBlockFormat","selection","subType","plugins","editor","handleReplaceImageCommand","enableCommand","afterInit","data","registerCustomCallback","author","has","_descriptionFactory","model","getAttribute","ImageEditing","accept","get","change"];var Yr,ti;Yr=Zr,ti=121,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1b")](){if(!this.editor.plugins[ei("0x1f")](ei("0x3")))return;const t=this[ei("0x18")][ei("0x17")][ei("0x5")]("TrackChangesEditing");t[ei("0x1a")](ei("0x10"),((t,e)=>this.handleReplaceImageCommand(t,e))),t[ei("0x12")][ei("0x1d")](ei("0x13"),ei("0x10"),ei("0x4"),t[ei("0x12")][ei("0xf")](ei("0x13"),null,ei("0x8"))),t._suggestionFactory[ei("0x1d")](ei("0x13"),ei("0x10"),"discard",t[ei("0x12")][ei("0xf")](ei("0x13"),null,ei("0x4"))),t[ei("0x0")].registerDescriptionCallback((t=>this[ei("0xd")](t)))}[ei("0x19")](t,e){const n=this.editor[ei("0x17")][ei("0x5")](ei("0xa")),o=this[ei("0x18")][ei("0x1")].document[ei("0x15")][ei("0x11")]();this[ei("0x18")].model[ei("0x6")]((()=>{let s=o[ei("0x2")]("src");const r=this[ei("0x18")][ei("0x17")].get(ei("0xb")).me;for(const t of n.getSuggestions({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x10")===t[ei("0x16")]&&e===o){t[ei("0x1e")]!==r&&t.discard(),s=t[ei("0x1c")][ei("0x9")][0].source;break}}t(e),n[ei("0x14")](o,{commandName:ei("0x10"),commandParams:[{source:s}]},[],ei("0x10"))}))}[ei("0xd")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x7")]){const t="*Format:* replace image URL";return{type:ei("0xe"),content:Yo(this[ei("0x18")][ei("0xc")],t)}}}}const oi=["lowest","editor","commands","forEach","importWord","_trackChangesExecuted","listenTo","execute","_trackChangesValueDuringImport","TrackChangesEditing","collaboration_features","track_changes","bind","_handleImportedData","_setSuggestionData","value","trackChanges","high","enableCommand","Users","dataInsert","get","plugins"];var si,ri;si=oi,ri=175,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this[ii("0xe")]=!1}afterInit(){const t=this.editor,e=t.commands[ii("0x7")]("importWord"),n=t.commands.get("trackChanges");e&&(e.on(ii("0x10"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ii("0x1")],e[ii("0x13")][ii("0x14")]=!this[ii("0x11")]}),{priority:ii("0x3")}),this.listenTo(e,ii("0x6"),this[ii("0x16")][ii("0x15")](this)),this[ii("0xf")](e,"dataInsert",(()=>{this[ii("0xe")]&&(n[ii("0x10")](),this[ii("0xe")]=!1)}),{priority:ii("0x9")}),t[ii("0x8")].get(ii("0x12"))[ii("0x4")](ii("0xd")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ii("0xa")][ii("0xb")].get(ii("0x2")),s=o[ii("0x1")];this._trackChangesValueDuringImport!==s&&(o[ii("0x10")](),this._trackChangesExecuted=!0),n&&n[ii("0xc")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0xa")][ii("0x8")].get(ii("0x5")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0xd")}}};this[ii("0xa")][ii("0x8")][ii("0x7")](ii("0x12"))[ii("0x0")](s)}))}}const ai=["indentBlock","*Indent:* %0","locale","filter","document","has","afterInit","model","commandName","_descriptionFactory","*Outdent:* %0","outdentBlock","getItemLabel","editor","indent","IndentEditing","change","outdent","registerDescriptionCallback","getSelectedBlocks","format","enableCommand","plugins"];var ci,li;ci=ai,li=436,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x7")](){const t=this[di("0xe")],e=t[di("0x0")].get("TrackChangesEditing");t[di("0x0")][di("0x6")](di("0x10"))&&(e[di("0x16")](di("0xf")),e[di("0x16")](di("0x12")));const n=t[di("0x3")];if(t.plugins[di("0x6")]("IndentBlock")){for(const n of[di("0x1"),"outdentBlock"])e[di("0x16")](n,(()=>{const o=Array.from(this.editor[di("0x8")][di("0x5")].selection[di("0x14")]())[di("0x4")]((t=>this[di("0xe")][di("0x8")].schema.checkAttribute(t,"blockIndent")));t[di("0x8")][di("0x11")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[di("0xa")][di("0x13")]((t=>{const{data:o}=t;if(!o)return;if(di("0x1")!=o[di("0x9")]&&"outdentBlock"!=o[di("0x9")])return;const s=t.getItems()[0],r=e._descriptionFactory[di("0xd")](s);return di("0x1")==o[di("0x9")]?{type:di("0x15"),content:Yo(n,di("0x2"),r)}:di("0xc")==o.commandName?{type:di("0x15"),content:Yo(n,di("0xb"),r)}:void 0}))}}}var gi,mi,fi=["input","TrackChangesEditing","requires","get","editor","enableCommand","plugins"];gi=fi,mi=318,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x6")](){return[Vs.Input]}init(){this[hi("0x1")][hi("0x3")][hi("0x0")](hi("0x5"))[hi("0x2")](hi("0x4"))}}const bi=["hasAttribute","enableCommand","change","linkHref","getAttribute","isCollapsed","has","getRanges","LinkEditing","model","registerDescriptionCallback","markInlineFormat","link","plugins","*Set link:* %0","getFirstPosition","commandName","document","format","selection","afterInit","unlink","editor","TrackChangesEditing"];var Ei,_i;Ei=bi,_i=373,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x7")](){const t=this[Ti("0x9")];if(!t[Ti("0x0")][Ti("0x11")](Ti("0x13")))return;const e=t[Ti("0x0")].get(Ti("0xa"));e[Ti("0xc")](Ti("0x17"),((n,o)=>{const s=t.model[Ti("0x4")].selection;let r=[];if(s[Ti("0x10")]){if(!s[Ti("0xb")]("linkHref"))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0x2")](),Ti("0xe"),s.getAttribute(Ti("0xe")),t[Ti("0x14")]);r=[e]}}else r=Array.from(s[Ti("0x12")]());t[Ti("0x14")][Ti("0xd")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x17"),commandParams:[o]})}))})),e.enableCommand("unlink",(()=>{const n=this[Ti("0x9")][Ti("0x14")],o=n[Ti("0x4")][Ti("0x6")];n[Ti("0xd")]((()=>{let n=[];n=o[Ti("0x10")]?[(0,Vs.findAttributeRange)(o.getFirstPosition(),Ti("0xe"),o[Ti("0xf")](Ti("0xe")),t[Ti("0x14")])]:ms(Ti("0xe"),o.getFirstRange(),t[Ti("0x14")]);for(const t of n)e[Ti("0x16")](t,{commandName:Ti("0x8"),commandParams:[]})}))})),e._descriptionFactory[Ti("0x15")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0x17")==n[Ti("0x3")]){const t=n.commandParams[0];return{type:Ti("0x5"),content:Yo(o,Ti("0x1"),'"'+t+'"')}}return Ti("0x8")==n[Ti("0x3")]?{type:Ti("0x5"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["from","forceValue","afterInit","checkChild","numberedList","TodoListEditing","commandName","ELEMENT_TODO_LIST","isObject","previousSibling","_descriptionFactory","outdentList","todoList","bulletedList","filter","slice","selection","format","enableCommand","*Check item*","replace","get","change","bulleted","todo","document","value","element","getAttribute","commands","add","model","before","createPositionAt","end","numbered","markBlockFormat","length","listIndent","has","ELEMENT_BULLETED_LIST","listItem","getSelectedBlocks","*Indent:* %0","editor","indentList","checkTodoList","plugins","nextSibling","ELEMENT_LIST_ITEM","todoListChecked","TrackChangesEditing","*Uncheck item*","name"];var ki,Ai;ki=yi,Ai=240,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x20")](){const t=this[vi("0x14")],e=t.locale;if(!t[vi("0x17")].has("ListEditing"))return;const n=t[vi("0x17")].get(vi("0x1b")),o=t[vi("0x17")][vi("0xf")](vi("0x23"));function s(e){return()=>{const o=t.model[vi("0x1")].selection,s=t[vi("0x5")][vi("0x33")](e);if(s[vi("0x2")])return void t.execute("paragraph",{});const r=e[vi("0x2d")](0,-4),i=function(t,e,n){let o=Array[vi("0x1e")](t)[vi("0x2c")]((t=>{return e=t,(o=n)[vi("0x21")](e.parent,"listItem")&&!o[vi("0x26")](e);var e,o}));o=o[vi("0x2c")]((t=>!t.is("element","listItem")||t[vi("0x4")]("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x3"),vi("0x11"))?s[vi("0x6")](Ii(t)):s[vi("0x6")](t);return Array[vi("0x1e")](s)}(o[vi("0x12")](),r,t.model.schema);t.model[vi("0x34")]((()=>{for(const t of i)n[vi("0xc")](t,{commandName:e,commandParams:[{forceValue:!s[vi("0x2")]}],formatGroupId:"blockName"},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x1e")](t);const n=e.findIndex((t=>"listItem"!=t[vi("0x1d")]));return n>-1&&(e=e[vi("0x2d")](0,n)),e}(t[vi("0x7")][vi("0x1")][vi("0x2e")][vi("0x12")]()),s=t[vi("0x7")].createRange(t[vi("0x7")].createPositionAt(o[0],vi("0x8")),t[vi("0x7")][vi("0x9")](o[o[vi("0xd")]-1],vi("0xa")));t.model[vi("0x34")]((()=>{n[vi("0xc")](s,{commandName:e,commandParams:[],formatGroupId:vi("0xe")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x18")];for(;t&&t[vi("0x4")](vi("0xe"))>n[vi("0x4")](vi("0xe"));)e[vi("0x6")](t),t=t[vi("0x18")]}return Array[vi("0x1e")](e)}(o))}))}}n[vi("0x30")](vi("0x22"),s(vi("0x22"))),n[vi("0x30")](vi("0x2b"),s(vi("0x2b"))),o&&n[vi("0x30")](vi("0x2a"),s(vi("0x2a"))),n[vi("0x30")](vi("0x15"),r(vi("0x15"))),n.enableCommand(vi("0x29"),r(vi("0x29"))),o&&n[vi("0x30")](vi("0x16"),(()=>{const e=t.commands[vi("0x33")](vi("0x16")),o=Array[vi("0x1e")](e._selectedElements);o[vi("0x2c")]((t=>t[vi("0x4")](vi("0x1a"))!=e.value)),t[vi("0x7")][vi("0x34")]((()=>{for(const t of o)n[vi("0xc")](t,{commandName:vi("0x16"),commandParams:[{forceValue:!e[vi("0x2")]}]})}))})),n[vi("0x28")].registerElementLabel(vi("0x11"),(t=>Yo(e,vi("0x19"),t))),n[vi("0x28")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("numberedList"==n[vi("0x24")]||vi("0x2b")==n.commandName||vi("0x2a")==n.commandName)switch(n.commandName[vi("0x32")]("List","")){case vi("0x35"):return o(Yo(e,vi("0x10")));case vi("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x0"):return o(Yo(e,vi("0x25")))}if(vi("0x15")==n[vi("0x24")])return{type:"format",content:Yo(e,vi("0x13"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x29")==n[vi("0x24")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if("checkTodoList"==n[vi("0x24")])return n.commandParams[0][vi("0x1f")]?{type:vi("0x2f"),content:Yo(e,vi("0x31"))}:{type:vi("0x2f"),content:Yo(e,vi("0x1c"))}}function o(t){return{type:vi("0x2f"),content:Yo(e,"*Change to:* %0",t)}}}))}}function Ii(t){const e=t[vi("0x4")](vi("0xe"));if(0==e)return t;let n=t;for(;t[vi("0x27")]&&t[vi("0x27")].is(vi("0x3"),vi("0x11"));){const o=t.previousSibling[vi("0x4")](vi("0xe"));if(o==e)n=t[vi("0x27")];else if(o<e)break;t=t[vi("0x27")]}return n}function Si(t){const e=[];if(t.is(vi("0x3"),vi("0x11"))&&t[vi("0x4")]("listIndent")>0){let n=t[vi("0x18")];for(;n&&vi("0x11")==n[vi("0x1d")]&&n.getAttribute(vi("0xe"))==t[vi("0x4")]("listIndent");)e.push(n),n=n[vi("0x18")]}return e}const Li=["_getTranslationKeyForListStyle","listItem","ListPropertiesEditing","commandName","forward","selection","toUpperCase","getListTypeFromListStyleType","length","startIndex","getSiblingNodes","backward","numbered","_LIST_","format","listReversed","editor","listStart","ListUtils","document","config","*Format:* set start index to %0","markMultiRangeBlockFormat","replace","map","_descriptionFactory","_getSuggestionBlocks","plugins","*Format:* set order to reversed","flat","bind","model","handleListReversedCommand","createRange","listStyle","listType","createPositionAt","handleListStartCommand","type","*Change to:* %0","unshift","before","TrackChangesEditing","_getSuggestionBlocksForListStyle","filter","locale","*Format:* set order to regular","getAttribute","getLastPosition","getSelectedBlocks","handleListStyleCommand","getFirstPosition","push","change","element","enableCommand","get","from","registerDescriptionCallback","ELEMENT_","commandParams","handleDescriptions","parent","afterInit","list.properties"];var Ni,Mi;Ni=Li,Mi=456,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x3e")](){if(!this[wi("0xf")][wi("0x1a")].has(wi("0x1")))return;const t=this[wi("0xf")][wi("0x13")][wi("0x37")](wi("0x3f")),e=this[wi("0xf")].plugins[wi("0x37")](wi("0x29"));t.styles&&e[wi("0x36")](wi("0x21"),this[wi("0x31")][wi("0x1d")](this)),t.reversed&&e.enableCommand("listReversed",this.handleListReversedCommand.bind(this)),t.startIndex&&e[wi("0x36")](wi("0x10"),this[wi("0x24")][wi("0x1d")](this)),e[wi("0x18")][wi("0x39")](this[wi("0x3c")][wi("0x1d")](this))}[wi("0x31")](t,e={}){const n=this[wi("0xf")][wi("0x1a")][wi("0x37")]("TrackChangesEditing"),o=this._getSuggestionBlocksForListStyle();this[wi("0xf")][wi("0x1e")].change((()=>{n[wi("0x15")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:wi("0x21")})}))}[wi("0x1f")](t,e={}){const n=this[wi("0xf")][wi("0x1a")][wi("0x37")](wi("0x29")),o=this._getSuggestionBlocks((t=>t.is("element","listItem")&&"numbered"===t[wi("0x2e")]("listType")));if(o[wi("0x7")]<1)return;const s=o[wi("0x17")]((t=>this.editor[wi("0x1e")][wi("0x20")](this[wi("0xf")].model[wi("0x23")](t,"before"),this[wi("0xf")][wi("0x1e")][wi("0x23")](t,0))));this.editor.model[wi("0x34")]((()=>{n[wi("0x15")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wi("0x24")](t,e={}){const n=this[wi("0xf")].plugins[wi("0x37")](wi("0x29")),o=this[wi("0x19")]((t=>t.is(wi("0x35"),"listItem")&&wi("0xb")===t[wi("0x2e")](wi("0x22"))));if(o.length<1)return;const s=o.map((t=>this[wi("0xf")][wi("0x1e")][wi("0x20")](this[wi("0xf")][wi("0x1e")][wi("0x23")](t,wi("0x28")),this[wi("0xf")].model[wi("0x23")](t,0))));this[wi("0xf")][wi("0x1e")][wi("0x34")]((()=>{n[wi("0x15")](s,{commandName:wi("0x10"),commandParams:[{startIndex:e[wi("0x8")]}],formatGroupId:wi("0x10")})}))}handleDescriptions(t){const e=this[wi("0xf")][wi("0x2c")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x2")]){case"listStyle":o=wi("0x26"),s={type:wi("0xd"),content:Yo(e,o,Yo(e,this[wi("0x40")](n[wi("0x3b")][0][wi("0x25")])))};break;case wi("0xe"):o=n[wi("0x3b")][0].reversed?wi("0x1b"):wi("0x2d"),s={type:wi("0xd"),content:Yo(e,o)};break;case wi("0x10"):o=wi("0x14"),s={type:wi("0xd"),content:Yo(e,o,n[wi("0x3b")][0][wi("0x8")])}}return s}[wi("0x2a")](){var t,e,n,o;const s=this[wi("0xf")][wi("0x1a")][wi("0x37")]("ListUtils");let r=Array[wi("0x38")](this.editor[wi("0x1e")][wi("0x12")][wi("0x4")][wi("0x30")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x35"),wi("0x0")))&&r[wi("0x27")](...s[wi("0x9")](this[wi("0xf")][wi("0x1e")][wi("0x12")][wi("0x4")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0x7")]-1])||void 0===e?void 0:e.is("element",wi("0x0")))&&r[wi("0x33")](...s[wi("0x9")](this[wi("0xf")].model[wi("0x12")][wi("0x4")][wi("0x2f")](),wi("0x3"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0xf")][wi("0x1e")][wi("0x12")][wi("0x4")][wi("0x32")]())||void 0===n?void 0:n[wi("0x3d")])||void 0===o?void 0:o.is(wi("0x35"),wi("0x0")))&&(r=r.filter((t=>t.is(wi("0x35"),wi("0x0"))))),r}_getSuggestionBlocks(t){const e=this.editor[wi("0x1a")][wi("0x37")]("ListUtils");let n=Array[wi("0x38")](this[wi("0xf")][wi("0x1e")].document.selection.getSelectedBlocks())[wi("0x2b")](t)[wi("0x17")]((t=>{const n=this[wi("0xf")][wi("0x1e")][wi("0x23")](t,0);return[...e[wi("0x9")](n,wi("0xa")),...e[wi("0x9")](n,wi("0x3"))]}))[wi("0x1c")]();return n=[...new Set(n)],n}[wi("0x40")](t){return wi("0x3a")+this[wi("0xf")][wi("0x1a")][wi("0x37")](wi("0x11"))[wi("0x6")](t)[wi("0x5")]()+wi("0xc")+t[wi("0x5")]()[wi("0x16")](/-/g,"_")}}const Fi=["MediaEmbedEditing","data","TrackChangesEditing","for","showSuggestionHighlights","enableCommand","downcastDispatcher","conversion","_descriptionFactory","media","mediaEmbed","locale","has","createEmptyElement","div","registerElementLabel","plugins","get","afterInit","high","editor","attribute:url:media","ELEMENT_MEDIA","stop","dataDowncast","options","elementToElement"];var Pi,Di;Pi=Fi,Di=434,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x10")](){const t=this[Bi("0x12")];if(!t[Bi("0xe")][Bi("0xa")](Bi("0x19")))return;const e=t.plugins[Bi("0xf")](Bi("0x0")),n=t[Bi("0x9")];e[Bi("0x3")](Bi("0x8")),e[Bi("0x6")][Bi("0xd")](Bi("0x7"),(t=>Yo(n,Bi("0x14"),t))),t[Bi("0x5")][Bi("0x1")](Bi("0x16"))[Bi("0x18")]({model:Bi("0x7"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x2")])return e[Bi("0xb")](Bi("0xc"))},converterPriority:Bi("0x11")}),t[Bi("0x1a")][Bi("0x4")].on(Bi("0x13"),((t,e,n)=>{n[Bi("0x17")][Bi("0x2")]&&t[Bi("0x15")]()}),{priority:Bi("0x11")})}}const Ui=["TrackChangesEditing","get","has","plugins","mention","MentionEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=293,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this.editor;t[zi("0x4")][zi("0x3")](zi("0x6"))&&t.plugins[zi("0x2")](zi("0x1"))[zi("0x0")](zi("0x5"))}}const Vi=["get","pageBreak","ELEMENT_PAGE_BREAK","PageBreakEditing","TrackChangesEditing","locale","has","registerElementLabel","editor","plugins","_descriptionFactory","afterInit"];var Ki,qi;Ki=Vi,qi=176,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Vi[t-=0]};class Xi extends t.Plugin{[$i("0x3")](){const t=this[$i("0x0")];if(!t[$i("0x1")][$i("0xa")]($i("0x7")))return;t[$i("0x1")][$i("0x4")]("TrackChangesEditing").enableCommand($i("0x5"));const e=t[$i("0x1")].get($i("0x8")),n=t[$i("0x9")];e[$i("0x2")][$i("0xb")]($i("0x5"),(t=>Yo(n,$i("0x6"),t)))}}const Ji=["activeMarkers","span","selection","ELEMENT_PARAGRAPH","isObject","addClass","options","locale","getSelectedBlocks","createUIElement","schema","get","end","data","consumable","parent","*Insert:* %0","writer","filter","TrackChangesEditing","isLimit","highest","isTouching","consume","commandName","name","_descriptionFactory","enableCommand","includes","ck-suggestion-marker--active","blockName","markerRange","has","toViewPosition","registerDescriptionCallback","getItemLabel","*Change to:* %0","checkChild","registerElementLabel","downcastDispatcher","ck-suggestion-marker-split","markBlockFormat","type","plugins","insertParagraph","addMarker:suggestion:insertion","model","nodeAfter","paragraph","isBlock","markerName","insertion","afterInit","bindElementToMarker","mapper"];var Qi,Zi;Qi=Ji,Zi=241,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1f")](){const t=this.editor;if(!t[Yi("0x16")][Yi("0xb")]("Paragraph"))return;const e=t[Yi("0x29")],n=t[Yi("0x16")][Yi("0x2d")]("TrackChangesEditing");n[Yi("0x5")][Yi("0x11")](Yi("0x1b"),(t=>Yo(e,Yi("0x25"),t))),n[Yi("0x6")](Yi("0x1b"),((e,o={})=>{const s=t.model.document,r=o[Yi("0x24")]||s[Yi("0x24")],i=Array.from(r[Yi("0x2a")]())[Yi("0x34")]((t=>{return e=t,(n=this.editor.model.schema)[Yi("0x10")](e[Yi("0x31")],Yi("0x1b"))&&!n[Yi("0x26")](e)&&Yi("0x1b")!=e[Yi("0x4")];var e,n}));t[Yi("0x19")].change((()=>{for(const t of i)n[Yi("0x14")](t,{commandName:Yi("0x1b"),commandParams:[],formatGroupId:Yi("0x9")},fs(t))}))})),n[Yi("0x5")][Yi("0xd")]((t=>{const{data:n}=t;if(n&&Yi("0x1b")==n[Yi("0x3")])return{type:"format",content:Yo(e,Yi("0xf"),Yo(e,Yi("0x25")))}})),n[Yi("0x6")](Yi("0x17")),t.editing[Yi("0x12")].on(Yi("0x18"),ex(t),{priority:Yi("0x0")}),t[Yi("0x2f")].downcastDispatcher.on(Yi("0x18"),((e,n,o)=>{o[Yi("0x28")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x0")});const o=n._descriptionFactory;o[Yi("0xd")]((n=>{if(Yi("0x1e")!==n[Yi("0x15")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x1")](r)||!s[Yi("0x1a")])return;const i=t[Yi("0x19")][Yi("0x2c")],x=s[Yi("0x1a")];return i[Yi("0x1c")](x)&&!i[Yi("0x36")](x)&&i[Yi("0x10")](x,"$text")?{type:Yi("0x1e"),content:Yo(e,Yi("0x32"),o[Yi("0xe")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x16")][Yi("0x2d")](Yi("0x35")),i=o[Yi("0xa")].start,x=o[Yi("0xa")][Yi("0x2e")],a=t[Yi("0x19")][Yi("0x2c")];if(!i[Yi("0x1")](x)||!i.nodeAfter)return;const c=i[Yi("0x1a")];if(a[Yi("0x1c")](c)&&!a[Yi("0x36")](c)&&a.checkChild(c,"$text")){if(!s[Yi("0x30")][Yi("0x2")](o[Yi("0xa")],n[Yi("0x4")]))return;const t=s[Yi("0x33")][Yi("0x2b")](Yi("0x23"),{class:Yi("0x13")}),i=s.mapper[Yi("0xc")](x);e&&r[Yi("0x22")][Yi("0x7")](o[Yi("0x1d")])&&s[Yi("0x33")][Yi("0x27")](Yi("0x8"),t),s.writer.insert(i,t),s[Yi("0x21")][Yi("0x20")](t,o[Yi("0x1d")])}}}const nx=["locale","enableCommand","has","registerDescriptionCallback","RemoveFormatEditing","schema","afterInit","getAttributeProperties","commandName","document","*Remove all formatting*","model","get","_descriptionFactory","isFormatting","createRangeOn","TrackChangesEditing","selection","getRanges","removeFormat","markInlineFormat","isCollapsed","editor"];var ox,sx;ox=nx,sx=418,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x2")](){const t=this[rx("0x12")];if(!t.plugins[rx("0x15")](rx("0x0")))return;const e=t.plugins[rx("0x8")](rx("0xc"));e[rx("0x14")]("removeFormat",(n=>{const o=t.model[rx("0x5")][rx("0xd")];o[rx("0x11")]?n():t[rx("0x7")].change((()=>{const n=Array.from(o[rx("0xe")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x7")][rx("0x1")])&&e[rx("0x10")](t[rx("0x7")][rx("0xb")](n),{commandName:rx("0xf"),commandParams:[]})}))})),e[rx("0x9")][rx("0x16")]((e=>{const{data:n}=e;if(n&&rx("0xf")==n[rx("0x4")])return{type:"format",content:Yo(t[rx("0x13")],rx("0x6"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0x3")](n);if(t&&t[rx("0xa")])return!0}return!1}const ax=["plugins","enableCommand","goToPreviousRestrictedEditingException","discardSuggestion","acceptAllSuggestions","has","goToNextRestrictedEditingException","editor","TrackChangesEditing","acceptSuggestion","discardSelectedSuggestions","RestrictedEditingModeEditing","acceptSelectedSuggestions","afterInit"];var cx,lx;cx=ax,lx=418,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x1")](){const t=this[dx("0x9")];if(!t.plugins[dx("0x7")](dx("0xd")))return;const e=t[dx("0x2")].get(dx("0xa"));e.enableCommand(dx("0x4")),e[dx("0x3")](dx("0x8"));const n=t.plugins.get(dx("0xd"));n[dx("0x3")]("trackChanges"),n.enableCommand(dx("0xb")),n[dx("0x3")](dx("0x5")),n.enableCommand(dx("0x6")),n[dx("0x3")]("discardAllSuggestions"),n[dx("0x3")](dx("0x0")),n[dx("0x3")](dx("0xc"))}}const gx=["includes","ELEMENT_LINE_BREAK","addMarker:suggestion","split","editor","requires","writer","get","deletion","span","enableCommand","markerName","bindElementToMarker","element","ck-suggestion-marker-","init","ck-suggestion-marker--active","getItems","plugins","showSuggestionHighlights","TrackChangesEditing","editing","toViewPosition","test","addClass","consumable","activeMarkers","markerRange","merge","shiftEnter","name","locale","addMarker:suggestion:deletion","options","_descriptionFactory","downcastDispatcher","mapper"];var mx,fx;mx=gx,fx=162,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0x1c")](){return[nr.ShiftEnter]}[hx("0x1")](){const t=this[hx("0x1b")],e=t[hx("0x4")].get(hx("0x6"));e[hx("0x21")](hx("0xf")),t[hx("0x7")][hx("0x15")].on("addMarker:suggestion:insertion",bx(t),{priority:"high"}),t.editing.downcastDispatcher.on(hx("0x12"),bx(t),{priority:"high"}),t.data[hx("0x15")].on(hx("0x19"),((e,n,o)=>{o[hx("0x13")][hx("0x5")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x14")].registerElementLabel("softBreak",(e=>Yo(t[hx("0x11")],hx("0x18"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0x4")][hx("0x1e")](hx("0x6"));if(!s[hx("0xb")][hx("0x9")](o[hx("0xd")],n[hx("0x10")]))return;const i=t.model;for(const t of o[hx("0xd")][hx("0x3")]()){if(!t.is(hx("0x24"),"softBreak"))continue;const n=hx("0x1f")==o[hx("0x22")][hx("0x1a")](":")[1]?hx("0xe"):hx("0x1a"),x=s[hx("0x1d")].createUIElement(hx("0x20"),{class:hx("0x0")+n}),a=s[hx("0x16")][hx("0x8")](i.createPositionBefore(t));e&&r[hx("0xc")][hx("0x17")](o.markerName)&&s[hx("0x1d")][hx("0xa")](hx("0x2"),x),s[hx("0x1d")].insert(a,x),s[hx("0x16")][hx("0x23")](x,o[hx("0x22")])}}}const Ex=["format","value","selection","enableCommand","document","FORMAT_RESTRICTED_ENABLED","plugins","has","forceValue","change","editor","restrictedEditingException","locale","model","registerDescriptionCallback","FORMAT_RESTRICTED_DISABLED","TrackChangesEditing","from","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=351,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this[Cx("0x1")],e=t[Cx("0x4")],n=t[Cx("0x3")];if(!t.plugins[Cx("0x11")]("StandardEditingModeEditing"))return;const o=t[Cx("0x10")].get(Cx("0x7")),s=Cx("0x2"),r=t.commands.get(s);o[Cx("0xd")](s,((t,n={})=>{const i=e[Cx("0xe")][Cx("0xc")];if(i.isCollapsed)return void t(n);const x=void 0!==n[Cx("0x12")]?n.forceValue:!r[Cx("0xb")];e[Cx("0x0")]((()=>{const t=Array[Cx("0x8")](i.getRanges());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x9")][Cx("0x5")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0].forceValue?{type:Cx("0xa"),content:Yo(n,Cx("0xf"))}:{type:"format",content:Yo(n,Cx("0x6"))}}))}}const kx=["includes","modelElements","format","classes","isBlock","push","DataSchema","editor","createRangeOn","getSelectedBlocks","toLowerCase","forceValue","element","normalizeConfig","plugins","config","change","_descriptionFactory","style","value","commandParams","StyleUtils","Style","_getStyleDefinition","*Format:* %0","style.definitions","style:","getRanges","has","TrackChangesEditing","from","enabledStyles","commands","markBlockFormat","selection","registerDescriptionCallback","add","name","find","every","get","getItems","locale","styleName","_getRangesWithClasses","commandName","isCollapsed","model"];var Ax,vx;Ax=kx,vx=391,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{afterInit(){const t=this[Rx("0x0")];if(!t[Rx("0x7")][Rx("0x15")](Rx("0xf")))return;const e=t[Rx("0x19")][Rx("0x21")](Rx("0xb")),n=t.plugins.get(Rx("0x16")),o=t[Rx("0x23")],s=t[Rx("0x7")][Rx("0x21")](Rx("0x2f")),r=t[Rx("0x7")][Rx("0x21")](Rx("0xe"))[Rx("0x6")](s,t[Rx("0x8")][Rx("0x21")](Rx("0x12")));n.enableCommand(Rx("0xb"),((o,{styleName:i})=>{const x=t[Rx("0x28")].document[Rx("0x1b")],a=this[Rx("0x10")](i,r);if(!a)return;if(!e[Rx("0x18")][Rx("0x29")](i))return;if(x[Rx("0x27")]&&!a[Rx("0x2d")])return void o({styleName:i});const c=!e[Rx("0xc")][Rx("0x29")](a[Rx("0x1e")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o.getAncestors({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x29")](o[Rx("0x1e")])){n[Rx("0x1d")](o);break}}return n}(x[Rx("0x2")](),a[Rx("0x2a")]);t[Rx("0x28")][Rx("0x9")]((()=>{for(const t of e)n[Rx("0x1a")](t,{commandName:Rx("0xb"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x13")+i})}))}else{let e=Array[Rx("0x17")](x[Rx("0x14")]());if(!c){const n=Array[Rx("0x17")](s.getDefinitionsForView(a[Rx("0x5")],!1))[0][Rx("0x28")],o=[];for(const s of e){const e=this[Rx("0x25")](t.model,s,a[Rx("0x2c")],n);o[Rx("0x2e")](...e)}e=o}t[Rx("0x28")][Rx("0x9")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0xb"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0xa")][Rx("0x1c")]((t=>{const{data:e}=t;if(e&&Rx("0xb")===e[Rx("0x26")])return e[Rx("0xd")][0][Rx("0x4")]?{type:"format",content:Yo(o,Rx("0x11"),e[Rx("0xd")][0].styleName.toLowerCase())}:{type:Rx("0x2b"),content:Yo(o,"*Remove format:* %0",e[Rx("0xd")][0][Rx("0x24")][Rx("0x3")]())}}))}[Rx("0x10")](t,e){let n=e.block[Rx("0x1f")]((e=>e.name===t));return n||(n=e.inline[Rx("0x1f")]((e=>e[Rx("0x1e")]===t))),n}[Rx("0x25")](t,e,n,o){const s=[];for(const r of e[Rx("0x22")]()){const e=r.getAttribute(o);e&&n[Rx("0x20")]((t=>e[Rx("0x2c")][Rx("0x29")](t)))&&s[Rx("0x2e")](t[Rx("0x1")](r))}return s}}const Sx=["join","model","removeTableColumn","above","oldRange","_setupColumnsRowsFixing","getCellLocation","registerElementLabel","getChangedMarkers","getSelectionAffectedTableCells","maxRow","values","length","table","fromRange","from","_getSuggestionCoords","createTableWalker","toLowerCase","startsWith","getAttribute","$textProxy","ELEMENT_TABLE_ROW_WITH_TEXT","get","start","execute","ELEMENT_TABLE_COLUMN","end","item","refresh","isInContent","getContainedElement","colspan","getItems","forceValue","registerDescriptionCallback","accept","last","has","hasAttribute","ELEMENT_TABLE_COLUMN_WITH_TEXT","change:data","tableCell","_tableSuggestions","getFirstRange","element","ELEMENT_TABLE_WITH_TEXT","TrackChangesEditing","first","getChanges","data","_getCoordsForCells","createRangeOn","insertion","low","nodeAfter","name","order","includes","some","document","getRowIndexes","mapper","commands","minRow","enableCommand","MIN_SAFE_INTEGER","map","afterInit","getColumnIndexes","locale","isEqual","findAncestor","removeClass","registerCustomCallback","isTouching","$graveyard","tablePaste","batch","_splitMarkerName","getRanges","deletion","insertTableColumnLeft","createPositionAt","editor","isArray","addRange","TableEditing","max","getSuggestion","insertTableRowAbove","addMarker:suggestion","substr","markMultiRangeInsertion","setSelection","enqueueChange","registerPostFixer","subType","classes","_tablePostFixingSubtypes","plugins","_acceptFormatSuggestionCallbackFactory","type","push","position","span","markMultiRangeDeletion","*Insert:* %0","detach","left","selectTableColumn","selectTableRow","options","_descriptionFactory","getChildren","writer","rowspan","discard","_suggestionFactory","insert","tableColumn","every","change","TableUtils","addClass","root","filter","MAX_SAFE_INTEGER","insertTableColumnRight","tableRow","insertTable","highest","min","rootName","minColumn","removeTableRow","*Remove:* %0","add","cell","differ"];var Lx,Nx;Lx=Sx,Nx=141,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this._tablePostFixingSubtypes=["tableRow",Mx("0x77")],this[Mx("0x2a")]=new Set}[Mx("0x43")](){const t=this[Mx("0x53")],e=t[Mx("0x0")][Mx("0x3b")].selection;if(!t.plugins[Mx("0x25")](Mx("0x56")))return;const n=t[Mx("0x45")],o=t.plugins[Mx("0x16")](Mx("0x2e")),s=t.plugins[Mx("0x16")](Mx("0x7a"));o._descriptionFactory[Mx("0x6")](Mx("0xc"),(t=>Yo(n,"ELEMENT_TABLE",t))),this[Mx("0x4")](),o.enableCommand(Mx("0x81")),o.enableCommand(Mx("0x6e")),o[Mx("0x40")](Mx("0x6d"));for(const n of[Mx("0x59"),"insertTableRowBelow"]){const r=t[Mx("0x3e")][Mx("0x16")](n);o[Mx("0x40")](n,(n=>{t.model.change((t=>{n();const i=Mx("0x2")===r[Mx("0x38")],x=s.getSelectionAffectedTableCells(e),a=s[Mx("0x3c")](x),c=i?a[Mx("0x2f")]-1:a[Mx("0x24")]+1,l=x[0][Mx("0x47")](Mx("0xc")),d=s[Mx("0x10")](l,{startRow:c,endRow:c}),u=Array[Mx("0xe")](d)[Mx("0x42")]((e=>t[Mx("0x33")](e[Mx("0x89")])));o[Mx("0x5c")](u,Mx("0x80"))}))}))}for(const n of[Mx("0x51"),Mx("0x7f")]){const r=t.commands[Mx("0x16")](n);o.enableCommand(n,(n=>{t[Mx("0x0")][Mx("0x79")]((t=>{n();const i=Mx("0x6c")===r[Mx("0x38")],x=s[Mx("0x8")](e),a=s[Mx("0x44")](x),c=i?a[Mx("0x2f")]-1:a[Mx("0x24")]+1,l=x[0][Mx("0x47")](Mx("0xc")),d=s[Mx("0x10")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0xe")](d)[Mx("0x42")]((e=>t.createRangeOn(e[Mx("0x89")])));o[Mx("0x5c")](u,Mx("0x77"))}))}))}for(const n of[Mx("0x86"),Mx("0x1")]){const r=n[Mx("0x5b")](11),i=r[Mx("0x11")](),x=i[Mx("0x5b")](0,3)+Mx("0x68"),a="table"+r,c=Mx("0x83")+r,l=Mx("0x57")+r;o[Mx("0x40")](n,(()=>{t[Mx("0x0")].change((t=>{const r=s[Mx("0x8")](e),d=r[0][Mx("0x47")](Mx("0xc"));let u;if("removeTableRow"==n){const t=s[Mx("0x3c")](r);u={startRow:t[Mx("0x2f")],endRow:t[Mx("0x24")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Mx("0x2f")],endColumn:t[Mx("0x24")],includeAllSlots:!0}}const g=s[Mx("0x10")](d,u),m=Array[Mx("0xe")](g).map((({cell:t})=>t)),f=Ox(m[Mx("0x7d")]((t=>t[Mx("0x26")](x)))),h=Ox(m[Mx("0x7d")]((t=>!t[Mx("0x26")](x))))[Mx("0x42")]((e=>t[Mx("0x33")](e))),p=o[Mx("0x69")](h,a);if(p&&("tableRow"==p[Mx("0x60")]||Mx("0x77")==p[Mx("0x60")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t[Mx("0x33")](n),r=s[Mx("0x5")](n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x55")](o)}}}))}))}function r(n){const o=Array[Mx("0xe")](e[Mx("0x4f")]())[Mx("0x42")]((t=>i.LiveRange[Mx("0xd")](t)));t[Mx("0x0")][Mx("0x79")]((e=>{const s=e[Mx("0x4d")];n=n.filter((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")])),e[Mx("0x5d")](n),t[Mx("0x3e")][Mx("0x16")](Mx("0x86"))[Mx("0x1c")](),t.execute(Mx("0x86"),{forceDefaultExecution:!0}),t[Mx("0x0")].enqueueChange((()=>{t[Mx("0x0")][Mx("0x5e")](s,(t=>{const e=o[Mx("0x7d")]((t=>"$graveyard"!=t.root[Mx("0x84")]));e[Mx("0xb")]>0&&t[Mx("0x5d")](e);for(const t of o)t[Mx("0x6b")]()}))}))}))}function a(n){t[Mx("0x0")][Mx("0x79")]((o=>{const s=Array[Mx("0xe")](e.getRanges())[Mx("0x42")]((t=>i.LiveRange[Mx("0xd")](t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Mx("0x66")](e);for(const e of r)"$graveyard"!=e.root[Mx("0x84")]&&(o[Mx("0x5d")](o[Mx("0x52")](e,0)),t[Mx("0x3e")].get(Mx("0x1"))[Mx("0x1c")](),t.execute(Mx("0x1"),{forceDefaultExecution:!0}));const x=s[Mx("0x7d")]((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")]));x[Mx("0xb")]>0&&o[Mx("0x5d")](x);for(const t of s)t[Mx("0x6b")]()}))}function c(t,e){return e[Mx("0x78")]((e=>t.some((t=>t.end[Mx("0x46")](e[Mx("0x17")])||e.end[Mx("0x46")](t[Mx("0x17")])))))}function l(t,e){return t.some((t=>e[Mx("0x3a")]((e=>t[Mx("0x1a")][Mx("0x4a")](e.start)))))}t[Mx("0x31")].downcastDispatcher.on(Mx("0x5a"),((t,e,n)=>{if(!n[Mx("0x6f")].showSuggestionHighlights)return;const o=e[Mx("0x1b")];if(!o)return;const s=n[Mx("0x3d")].toViewElement(o);function r(t){return Array[Mx("0x54")](t)?t:[t]}s&&Mx("0x29")===o[Mx("0x37")]&&(0,x.setHighlightHandling)(s,n[Mx("0x72")],((t,e,n)=>n[Mx("0x7b")](r(e[Mx("0x61")]),t)),((t,e,n)=>n[Mx("0x48")](r(e.classes),t)))}),{priority:Mx("0x82")}),o[Mx("0x70")][Mx("0x22")]((t=>{if(Mx("0x34")!=t[Mx("0x65")]&&"deletion"!=t[Mx("0x65")])return;const e=t[Mx("0x1e")]();if(null!=e&&e.is(Mx("0x2c"),Mx("0xc"))){if(Mx("0x34")==t[Mx("0x65")]){const e=t.getItems()[Mx("0x7d")]((t=>t.is(Mx("0x14")))).map((t=>t[Mx("0x31")]));if(e.length)return{type:"insertion",content:Yo(n,Mx("0x6a"),Yo(n,Mx("0x2d"),'"'+e[Mx("0x8b")](" ")+'"'))}}if(Mx("0x50")==t[Mx("0x65")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x31")]));if(e[Mx("0xb")])return{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Mx("0x8b")](" ")+'"'))}}}})),o[Mx("0x70")][Mx("0x22")]((t=>{if(Mx("0x80")==t[Mx("0x60")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is(Mx("0x14")))).map((t=>t.data)),o=this[Mx("0xf")](t),s=o[Mx("0x9")]-o[Mx("0x3f")]+1;if(Mx("0x34")==t.type)return e[Mx("0xb")]?{type:Mx("0x34"),content:Yo(n,Mx("0x6a"),Yo(n,Mx("0x15"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x34"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x50")==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,Mx("0x15"),[s,'"'+e[Mx("0x8b")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x87"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Mx("0x77")==t[Mx("0x60")]){const e=t[Mx("0x20")]()[Mx("0x7d")]((t=>t.is("$textProxy")))[Mx("0x42")]((t=>t[Mx("0x31")])),o=this[Mx("0xf")](t),s=o.maxColumn-o[Mx("0x85")]+1;if("insertion"==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x34"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x27"),[s,'"'+e.join(" ")+'"']))}:{type:Mx("0x34"),content:Yo(n,Mx("0x6a"),Yo(n,"ELEMENT_TABLE_COLUMN",s))};if(Mx("0x50")==t[Mx("0x65")])return e[Mx("0xb")]?{type:Mx("0x50"),content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Mx("0x8b")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x87"),Yo(n,Mx("0x19"),s))}}})),o._suggestionFactory[Mx("0x49")]("insertion",Mx("0x80"),Mx("0x74"),r),o[Mx("0x75")].registerCustomCallback("deletion",Mx("0x80"),Mx("0x23"),r),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x77"),Mx("0x74"),a),o[Mx("0x75")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x23"),a),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x77"),Mx("0x8b"),c),o[Mx("0x75")][Mx("0x49")]("deletion",Mx("0x77"),"join",c),o[Mx("0x75")][Mx("0x49")](Mx("0x34"),Mx("0x80"),"join",l),o[Mx("0x75")][Mx("0x49")](Mx("0x50"),Mx("0x80"),Mx("0x8b"),l)}[Mx("0x64")](){const t=this.editor,e=t[Mx("0x0")].document.selection;return(n,o)=>{t[Mx("0x0")][Mx("0x79")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Mx("0x21")]&&(a=n[0].start[Mx("0x36")]);const c=s.createRangeIn(a);if(Mx("0x4b")==c[Mx("0x7c")].rootName)return;const l=Array[Mx("0xe")](e[Mx("0x4f")]())[Mx("0x42")]((t=>i.LiveRange.fromRange(t)));s[Mx("0x5d")](c),t[Mx("0x3e")][Mx("0x16")](r)[Mx("0x1c")](),x[Mx("0x66")]({forceDefaultExecution:!0}),t[Mx("0x18")](r,...x);const d=l[Mx("0x7d")]((t=>Mx("0x4b")!=t[Mx("0x7c")][Mx("0x84")]));d[Mx("0xb")]>0&&s[Mx("0x5d")](d);for(const t of l)t[Mx("0x6b")]()}))}}[Mx("0x32")](t){const e=this[Mx("0x53")][Mx("0x63")][Mx("0x16")](Mx("0x7a"));let n=Number[Mx("0x7e")],o=Number[Mx("0x41")],s=Number[Mx("0x7e")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i.root.rootName)continue;const{row:t,column:x}=e[Mx("0x5")](i),a=i[Mx("0x26")](Mx("0x73"))?i[Mx("0x13")](Mx("0x73"))-1:0,c=i[Mx("0x26")](Mx("0x1f"))?i.getAttribute(Mx("0x1f"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins[Mx("0x16")]("TrackChangesEditing"),n=t[Mx("0x63")].get(Mx("0x7a"));t[Mx("0x0")][Mx("0x3b")].on(Mx("0x28"),(()=>{const n=Array[Mx("0xe")](t[Mx("0x0")][Mx("0x3b")][Mx("0x8a")][Mx("0x7")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x4e")](t);if("suggestion"!=n)continue;if(null!=o[Mx("0x3")])continue;const i=e[Mx("0x58")](s);this[Mx("0x62")][Mx("0x39")](r)&&this[Mx("0x2a")][Mx("0x88")](i)}}),{priority:Mx("0x35")});const o=(t,e)=>{let o=!1;const s=e[Mx("0x33")](t),r=t[Mx("0x47")](Mx("0xc")),i=n[Mx("0x5")](t);for(const e of this[Mx("0x2a")]){const n=e[Mx("0x60")],x=n[Mx("0x12")](Mx("0x4c")),a=n[Mx("0x5b")](x?10:5),c=a[Mx("0x11")](),l=c[Mx("0x5b")](0,3)+Mx("0x68"),d="min"+a,u=Mx("0x57")+a;if(!e[Mx("0x1d")])continue;if(r!=e[Mx("0x2b")]()[Mx("0x17")][Mx("0x47")](Mx("0xc")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x13")](l)-1:0,m=this[Mx("0xf")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x55")](s),o=!0)}return o};t[Mx("0x0")].document[Mx("0x5f")]((e=>{let n=!1;for(const s of t.model[Mx("0x3b")].differ[Mx("0x30")]())if(Mx("0x76")==s[Mx("0x65")])if(Mx("0x80")==s.name)for(const t of s.position.nodeAfter[Mx("0x71")]())n=n||o(t,e);else Mx("0x29")==s[Mx("0x37")]&&(n=n||o(s[Mx("0x67")].nodeAfter,e));return n}))}_getSuggestionCoords(t){return this[Mx("0x32")](t.getRanges()[Mx("0x42")]((t=>t[Mx("0x17")][Mx("0x36")])))}}function Ox(t){return Array[Mx("0xe")](new Set(t)[Mx("0xa")]())}const Fx=["createTableWalker","getSuggestions","accept","refresh","table","return","deletion","isInContent","getRanges","_areSelectedCellsMergable","fromRange","containsRange","size","createRangeOn","root","insertion","mergeTableCells","stop","format","model","mergeTableCellRight","editor","change","getSelectionAffectedTableCells","document","getCellLocation","TableUtils","selection","highest","markBlockFormat","type","getAncestors","rootName","subType","_suggestionFactory","mergeTableCellUp","value","cell","locale","forceDefaultExecution","has","horizontally","afterInit","mergeTableCellDown","registerDescriptionCallback","_areMergableCells","tableCell","_acceptFormatSuggestionCallbackFactory","element","splitTableCellVertically","enableCommand","setSelection","map","length","TableEditing","execute","from","getFirstPosition","filter","plugins","commandName","formatBlock","trackChanges","_descriptionFactory","registerCustomCallback","mergeTableCellLeft","$graveyard","splitTableCellHorizontally","push","author","TrackChangesEditing","get","commands","findAncestor"];var Px,Dx;Px=Fx,Dx=131,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get requires(){return[wx]}[Bx("0x3b")](){const t=this[Bx("0x26")],e=t.model.document[Bx("0x2c")],n=t[Bx("0x37")];if(!t[Bx("0x2")][Bx("0x39")](Bx("0x47")))return;const o=t[Bx("0x2")].get(Bx("0xd")),s=t[Bx("0x2")].get(Bx("0x2b")),r=t[Bx("0x2")][Bx("0xe")](wx);r._tablePostFixingSubtypes[Bx("0xb")]("mergeTableCells"),o[Bx("0x43")](Bx("0x21"),(()=>{const e=s[Bx("0x28")](t[Bx("0x24")].document[Bx("0x2c")]);t[Bx("0x24")].change((()=>{o.markMultiRangeBlockFormat(e,{commandName:Bx("0x21"),commandParams:[]},[],Bx("0x21"))}))})),t.commands[Bx("0xe")](Bx("0x21")).on(Bx("0x48"),((e,n)=>{t[Bx("0xf")][Bx("0xe")](Bx("0x5"))[Bx("0x35")]&&(n[Bx("0x46")]>0&&n[n[Bx("0x46")]-1]&&n[n[Bx("0x46")]-1][Bx("0x38")]||o._isForcedDefaultExecutionBlock||this[Bx("0x1a")]()||e[Bx("0x22")]())}),{priority:Bx("0x2d")});for(const e of[Bx("0x34"),Bx("0x25"),Bx("0x3c"),Bx("0x8")]){const n=t.commands.get(e);o[Bx("0x43")](e,(()=>{const e=t[Bx("0x24")].document[Bx("0x2c")][Bx("0x0")]()[Bx("0x30")]().find((t=>t.is(Bx("0x41"),"tableCell"))),s=n.value;t.model[Bx("0x27")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x21"),commandParams:[]},[],Bx("0x21"))}))}))}for(const e of[Bx("0x42"),Bx("0xa")]){const n=t.commands[Bx("0xe")](e);o[Bx("0x43")](e,(()=>{const r=s[Bx("0x28")](t[Bx("0x24")][Bx("0x29")][Bx("0x2c")])[0],i=r[Bx("0x10")](Bx("0x15")),{column:x,row:a}=s[Bx("0x2a")](r);let c=[];if(Bx("0x3a")==n.direction){const t=s[Bx("0x11")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x49")](t)[Bx("0x45")]((t=>t[Bx("0x36")]))}else{const t=s[Bx("0x11")](i,{column:x,includeAllSlots:!0});c=Array.from(t)[Bx("0x45")]((t=>t[Bx("0x36")]))}t[Bx("0x24")][Bx("0x27")]((t=>{o[Bx("0x2e")](t[Bx("0x1e")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x6")][Bx("0x3d")]((t=>{const{data:e}=t;if(e)return Bx("0x21")==e.commandName?{type:Bx("0x23"),content:Yo(n,"*Merge cells*")}:void 0})),o[Bx("0x6")][Bx("0x3d")]((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x3")]?{type:"format",content:Yo(n,"*Split cell:* vertically")}:Bx("0xa")==e[Bx("0x3")]?{type:Bx("0x23"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r[Bx("0x40")]();for(const t of["mergeTableCellUp",Bx("0x25"),"mergeTableCellDown","mergeTableCellLeft"])o[Bx("0x33")][Bx("0x7")]("formatBlock",t,Bx("0x13"),x);for(const t of[Bx("0x42"),"splitTableCellHorizontally"])o[Bx("0x33")][Bx("0x7")](Bx("0x4"),t,Bx("0x13"),x);o[Bx("0x33")].registerCustomCallback(Bx("0x4"),Bx("0x21"),Bx("0x13"),(n=>{t.model.change((o=>{const s=Array[Bx("0x49")](e[Bx("0x19")]())[Bx("0x45")]((t=>i.LiveRange[Bx("0x1b")](t)));o[Bx("0x44")](n),t[Bx("0xf")][Bx("0xe")](Bx("0x21"))[Bx("0x14")](),t.execute(Bx("0x21"),{forceDefaultExecution:!0});const r=s[Bx("0x1")]((t=>Bx("0x9")!=t[Bx("0x1f")][Bx("0x31")]));r[Bx("0x46")]>0&&o[Bx("0x44")](r);for(const t of s)t.detach()}))}));for(const e of[Bx("0x34"),Bx("0x3c"),Bx("0x8"),Bx("0x25")]){const n=t.commands[Bx("0xe")](e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x24")][Bx("0x29")].selection.getFirstPosition()[Bx("0x30")]().find((t=>t.is(Bx("0x41"),Bx("0x3f"))));this[Bx("0x3e")](n.value,o)||(e[Bx("0x16")]=!1,e.stop())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this[Bx("0x26")][Bx("0xf")][Bx("0xe")](Bx("0x21")),e=this.editor.plugins[Bx("0xe")](Bx("0x2b"));if(!t.isEnabled)return!1;const n=e[Bx("0x28")](this[Bx("0x26")][Bx("0x24")].document[Bx("0x2c")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x3e")](t,e))return!1;return!0}[Bx("0x3e")](t,e){const n=this[Bx("0x26")].plugins[Bx("0xe")](Bx("0xd")),o=this[Bx("0x26")][Bx("0x24")][Bx("0x1e")](t),s=this[Bx("0x26")][Bx("0x24")][Bx("0x1e")](e),r=new Set,i=new Set;for(const t of n[Bx("0x12")]())if((Bx("0x20")==t[Bx("0x2f")]||Bx("0x17")==t[Bx("0x2f")]||Bx("0x21")==t[Bx("0x32")])&&t[Bx("0x18")])for(const e of t[Bx("0x19")]())e.containsRange(o,!0)&&r.add(t[Bx("0x2f")]+":"+t[Bx("0xc")].id),e[Bx("0x1c")](s,!0)&&i.add(t[Bx("0x2f")]+":"+t.author.id);if(r[Bx("0x1d")]!=i[Bx("0x1d")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["accept","getAttribute","markerNameToElements","highest","setTableColumnHeader","setTableRowHeader","editor","TrackChangesEditing","FORMAT_REGULAR_COLUMN","requires","locale","ck-suggestion-marker--active","_acceptFormatSuggestionCallbackFactory","TableEditing","data","options","formatBlock","end","unbindElementFromMarkerName","index","_splitMarkerName","name","getSuggestion","createTableWalker","registerCustomCallback","headingRows","format","headingColumns","getRowIndexes","removeClass","model","table","consumable","downcastDispatcher","createPositionAfter","stop","parent","addClass","first","cell","addMarker:suggestion","commandName","mapper","markerRange","removeAttribute","findAncestor","document","markerName","createPositionBefore","FORMAT_HEADER_COLUMN","change","*Format:* %0","last","editing","from","writer","plugins","TableUtils","toViewElement","getSelectionAffectedTableCells","FORMAT_HEADER_ROW","getCellLocation","selection","createRange","get","commandParams","FORMAT_REGULAR_ROW","bindElementToMarker","enableCommand","_descriptionFactory","getChild","forceValue","markBlockFormat","data-suggestion","ck-suggestion-marker-","_suggestionFactory","nodeAfter","start","value","showSuggestionHighlights","removeMarker:suggestion","childCount"];var Gx,Hx;Gx=Ux,Hx=142,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[zx("0x1f")](){return[wx]}afterInit(){const t=this[zx("0x1c")];if(!t[zx("0x4e")].has(zx("0x23")))return;const e=t[zx("0x20")],n=t[zx("0x4e")][zx("0x4")](zx("0x1d")),o=t[zx("0x4e")].get(zx("0x4f")),s=t[zx("0x4e")][zx("0x4")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x45")]),c=n[zx("0x2c")](a);if(!c[zx("0x24")]||zx("0x1a")!=c[zx("0x24")][zx("0x3f")])return;if(r.item)return void s[zx("0x39")]();if(!i[zx("0x36")].consume(r[zx("0x41")],s[zx("0x2b")]))return;const l=r[zx("0x41")][zx("0x11")][zx("0x10")],d=r[zx("0x41")][zx("0x27")].nodeBefore,u=l[zx("0x3a")].parent,{column:g}=o[zx("0x1")](l),{column:m}=o[zx("0x1")](d);for(let s=g;s<=m;s++){const c=o[zx("0x2d")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0x3d")],c=i[zx("0x40")][zx("0x50")](s);i[zx("0x4d")][zx("0x3b")](zx("0xe")+x,c),e&&i.writer.setAttribute(zx("0xd"),a,c),i[zx("0x40")][zx("0x7")](c,r[zx("0x45")]),t&&(n.activeMarkers.includes(r[zx("0x45")])?i.writer[zx("0x3b")]("ck-suggestion-marker--active",c):i[zx("0x4d")][zx("0x33")](zx("0x21"),c))}}}}n[zx("0x8")](zx("0x1b"),((e,s)=>{const r=o[zx("0x51")](t[zx("0x34")][zx("0x44")][zx("0x2")]),i=o[zx("0x32")](r),x=r[0][zx("0x43")](zx("0x35")),a=x[zx("0x17")](zx("0x2f"))||0,c=s&&null!==s[zx("0xb")]?s[zx("0xb")]:!t.commands.get("setTableRowHeader").value,l=c?i[zx("0x4a")]:i[zx("0x3c")],d=x.getChild(l);let u;if(c){const e=x[zx("0xa")](a);if(d[zx("0x29")]<e.index)return;u=t[zx("0x34")][zx("0x3")](t[zx("0x34")].createPositionBefore(e[zx("0xa")](0)),t[zx("0x34")].createPositionAfter(d[zx("0xa")](d[zx("0x15")]-1)))}else{const e=x[zx("0xa")](a-1);if(!e)return;u=t[zx("0x34")].createRange(t[zx("0x34")][zx("0x46")](d[zx("0xa")](0)),t[zx("0x34")][zx("0x38")](e[zx("0xa")](e[zx("0x15")]-1)))}t[zx("0x34")].change((()=>{n[zx("0xc")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],zx("0x1b"))}))})),n.enableCommand(zx("0x1a"),((e,o)=>{const s=t[zx("0x4e")][zx("0x4")](zx("0x4f")),r=s[zx("0x51")](t[zx("0x34")][zx("0x44")][zx("0x2")]),i=s.getColumnIndexes(r),x=r[0][zx("0x43")](zx("0x35")),a=x[zx("0x17")](zx("0x31"))||0,c=o&&null!==o[zx("0xb")]?o[zx("0xb")]:!t.commands[zx("0x4")](zx("0x1a"))[zx("0x12")];let l;const d=x[zx("0xa")](0),u=c?i.last:i.first,g=s[zx("0x2d")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x4c")](g)[0][zx("0x3d")];if(c){const e=d.getChild(a);if(m.isBefore(e))return;l=t[zx("0x34")][zx("0x3")](t.model[zx("0x46")](e),t.model.createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0x34")][zx("0x3")](t[zx("0x34")][zx("0x46")](m),t[zx("0x34")][zx("0x38")](e))}t[zx("0x34")][zx("0x48")]((()=>{n[zx("0xc")](l,{commandName:zx("0x1a"),commandParams:[{forceValue:c}]},[],zx("0x1a"))}))})),t[zx("0x4b")][zx("0x37")].on(zx("0x3e"),r(),{priority:"highest"}),t[zx("0x24")][zx("0x37")].on(zx("0x3e"),((t,e,n)=>{n[zx("0x25")][zx("0x13")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x19")}),t[zx("0x4b")].downcastDispatcher.on(zx("0x14"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x2a")](e[zx("0x45")]),i=n[zx("0x2c")](r);if(!i[zx("0x24")]||zx("0x1a")!=i[zx("0x24")].commandName)return;const x=o.mapper[zx("0x18")](e.markerName);if(x)for(const t of x)o[zx("0x4d")][zx("0x33")](zx("0xe")+s,t),o[zx("0x4d")][zx("0x33")]("ck-suggestion-marker--active",t),o[zx("0x4d")][zx("0x42")](zx("0xd"),t),o[zx("0x40")][zx("0x28")](t,e[zx("0x45")])}),{priority:zx("0x19")}),n[zx("0x9")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n[zx("0x5")][0][zx("0xb")];return o(Yo(e,zx(t?"0x0":"0x6")))}if(zx("0x1a")==n[zx("0x3f")]){const t=n[zx("0x5")][0].forceValue;return o(Yo(e,zx(t?"0x47":"0x1e")))}}function o(t){return{type:zx("0x30"),content:Yo(e,zx("0x49"),t)}}}));const i=s[zx("0x22")]();n[zx("0xf")].registerCustomCallback(zx("0x26"),zx("0x1b"),zx("0x16"),i),n[zx("0xf")][zx("0x2e")]("formatBlock",zx("0x1a"),zx("0x16"),i)}}const Vx=["createRange","showSuggestionHighlights","table","getChild","row","dataDowncast","root","insertContent","unwrap","_tablePostFixingSubtypes","forceDefaultExecution","commands","nodeAfter","first","differ","filter","getChangedMarkers","length","_descriptionFactory","getAttributes","getRanges","TableClipboard","last","getColumnIndexes","fromEntries","previous","editingDowncast","getTableIfOnlyTableInContent","author","tableCell","registerCustomCallback","getSuggestion","tablePasteRow","tablePasteColumn","$graveyard","trackChanges","value","Users","map","rootName","endColumn","getAllAdjacentSuggestions","tablePasteChainId","next","_createdBatches","markMultiRangeInsertion","plugins","registerPostFixer","cells","ck-suggestion-marker--active","tableCellHorizontalAlignment","type","editor","suggestion:formatBlock:tablePasteCell","name","getMarkers","deletion","insertion","end","keys","getContainedElement","getRows","batch","find","paragraph","_suggestionFactory","view","isInContent","redo","markMultiRangeDeletion","createRangeIn","content","_getCoordsForCells","getRowIndexes","insert","removeMarkers","_isForcedDefaultExecutionBlock","editing","move","startsWith","stop","set","createPositionBefore","getChildren","ck-suggestion-marker","rows","updateMarker","oldRange","return","low","*Replace table cells*","tablePasteCell","get","createElement","isEmpty","_replaceTableSlotCell","has","markerAttributes","options","for","tableCellSuggestion","suggestion","setAttribute","attributes","registerDescriptionCallback","columnInsertionIndexes","element","cell","subType","markerName","documentSelection","change","remove","join","rowInsertionIndexes","getColumns","position","model","high","insertRows","createTableWalker","TableUtils","suggestionLoaded","selection","findAncestor","tableCellBorderStyle","document","getRange","includes","getChanges","tableCellBorderWidth","tableCellBackgroundColor","push","removeMarker","accept","insertionRanges","endRow","TrackChangesEditing","elementToElement","getSuggestions","rowInsertionRanges","_splitMarkerName","discard","getSelectionAffectedTableCells","formatBlock","add","reduce","from","createRangeOn","tablePaste","markerToHighlight","some","tableCellPadding","every","newRange","previousSibling","fill","conversion","columns","entries","afterInit","isEqual"];var Kx,qx;Kx=Vx,qx=461,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Vx[t-=0]},Xx=[$x("0x9b"),"tableCellBorderColor",$x("0x96"),$x("0x4b"),"tableCellVerticalAlignment",$x("0x9c"),$x("0xf")],Jx=Object[$x("0x31")](Xx[$x("0x3f")]((t=>[t,null])));class Qx extends t.Plugin{static get requires(){return[wx]}[$x("0x17")](){const t=this.editor;if(!t[$x("0x47")].has($x("0x2e")))return;const n=t[$x("0x47")].get($x("0x0")),o=t[$x("0x47")][$x("0x75")]($x("0x92")),s=t[$x("0x47")].get(wx),r=t[$x("0x47")][$x("0x75")]("TableClipboard");s[$x("0x22")][$x("0x9d")]($x("0x39"),$x("0x3a")),t[$x("0x8e")].schema.register($x("0x7d"),{allowIn:$x("0x36"),allowContentOf:$x("0x36"),isLimit:!0}),t.conversion[$x("0x1")]({model:"tableCellSuggestion",view:"suggestion-td"});let i=null;t[$x("0x8e")].on($x("0x20"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[$x("0x23")]||n[$x("0x65")]||this[$x("0x4d")][$x("0x24")][$x("0x75")]($x("0x3c"))[$x("0x3d")]&&function(t,e,n,o,s){if(e&&!e.is($x("0x87")))return!1;const r=s[$x("0x34")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0x6")](n[$x("0x97")][$x("0x94")]);if(!i.length)return!1;const x=i[0][$x("0x95")]($x("0x1b")),a=o[$x("0x62")](i),c=o[$x("0x30")](i),l={startRow:a[$x("0x26")],endRow:a.last,startColumn:c.first,endColumn:c[$x("0x2f")]};return 1==i[$x("0x2a")]&&(l[$x("0xa1")]+=o[$x("0x56")](r)-1,l[$x("0x41")]+=o[$x("0x8c")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[$x("0x69")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x8e")].change((()=>{t[$x("0x8e")][$x("0x20")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[$x("0x46")](s,"tablePasteRow",{tablePasteChainId:o}),r[$x("0x2a")]&&n[$x("0x46")](r,$x("0x3a"),{tablePasteChainId:o}),a[$x("0x2a")]&&n[$x("0x46")](a,$x("0xc"),{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x2a")]&&n[$x("0x5e")](c,$x("0xc"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[$x("0x3f")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],$x("0x74"),{tablePasteChainId:o});if(d){const e=d[$x("0x50")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model.createRangeOn(o),i=e[$x("0x58")]((t=>t[$x("0x98")]().isEqual(r)));i&&n[$x("0x9d")]([i[$x("0x4f")],s])}n[$x("0x2a")]&&d[$x("0x7f")]("markerAttributes",Object[$x("0x31")](n))}i=null})))}),{priority:e.priorities.high+10}),t.plugins[$x("0x75")]("TableClipboard").on($x("0x78"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[$x("0x84")],x=o,a=Zx(r),c=Zx(x);t[$x("0x71")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[$x("0x89")](r[$x("0x1c")](0));for(const t of Array[$x("0xa")](x[$x("0x6c")]()))s.insert(t,r,$x("0x53"));const t=i[$x("0x8b")][$x("0x99")](n[$x("0x1d")]),e=i.columnInsertionIndexes[$x("0x99")](n.column);t||e||(l=s[$x("0x5f")](r))}else c&&!a&&(d=s[$x("0x5f")](r));else{const t=s[$x("0x76")]($x("0x7d")),e=s[$x("0x76")]($x("0x7d"));s.wrap(s[$x("0x5f")](r),e),s.insert(t,r,0);for(const e of Array[$x("0xa")](x[$x("0x6c")]()))s[$x("0x63")](e,t,"end");l=s[$x("0xb")](t),d=s[$x("0xb")](e)}const u=Array[$x("0xa")](x[$x("0x2c")]())[$x("0x28")]((([t])=>Xx.includes(t)));i.cells[$x("0x9d")]({element:r,attributes:u[$x("0x2a")]?Object[$x("0x31")](u):null}),l&&i[$x("0xa0")][$x("0x9d")](l),d&&i.deletionRanges[$x("0x9d")](d)}),{priority:$x("0x8f")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x15")]||1;i[$x("0x82")]=new Array(a)[$x("0x13")](x).map(((t,e)=>t+e));for(const{cell:e}of o[$x("0x91")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges[$x("0x9d")](t.model[$x("0xb")](e))}),{priority:$x("0x72")}),o.on($x("0x90"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x6e")]||1;i[$x("0x8b")]=new Array(a).fill(x)[$x("0x3f")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x91")](s,{startRow:x,endRow:x+a-1}))i[$x("0x3")][$x("0x9d")](t[$x("0x8e")].createRangeOn(e))}),{priority:$x("0x72")}),n[$x("0x2b")][$x("0x81")]((e=>{if(e[$x("0x85")]&&e[$x("0x85")][$x("0x68")]($x("0xc")))return e[$x("0x32")]?{}:{type:$x("0x52"),content:Yo(t.locale,$x("0x73"))}}));const x=()=>!1;for(const t of[$x("0xc"),$x("0x3a"),"tablePasteRow","tablePasteCell"])n[$x("0x5a")][$x("0x37")]($x("0x52"),t,$x("0x8a"),x),n._suggestionFactory[$x("0x37")]($x("0x51"),t,$x("0x8a"),x),n[$x("0x5a")][$x("0x37")]($x("0x7"),t,$x("0x8a"),x);n._suggestionFactory.registerCustomCallback($x("0x7"),$x("0x74"),$x("0x5"),x),n[$x("0x5a")][$x("0x37")]("formatBlock",$x("0x74"),$x("0x9f"),((e,n,o)=>{const s=e[$x("0x3f")]((t=>t[$x("0x55")]()))[$x("0x28")]((t=>t)),r=new Map(s[$x("0x3f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x49")])e&&r.set(t,e);else if(o&&o[$x("0x7a")])for(const[e,n]of Object[$x("0x16")](o.markerAttributes)){const o=t[$x("0x8e")].markers[$x("0x75")](e),s=o?o[$x("0x98")]().getContainedElement():null;s&&r[$x("0x6a")](s,n)}t[$x("0x8e")][$x("0x88")]((t=>{for(const[e,n]of r)t.setAttributes({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x5a")].registerCustomCallback(e,$x("0xc"),o,((s,r,i)=>{t[$x("0x8e")][$x("0x88")]((t=>{const x=[];for(const t of s){const e=t.start[$x("0x25")];e.is($x("0x83"),$x("0x7d"))&&x.push(e)}n[$x("0x5a")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)$x("0x3b")!=e[$x("0x1f")][$x("0x40")]&&t[$x("0x21")](e)}))}))};a($x("0x52"),$x("0x9f")),a("insertion",$x("0x5")),a($x("0x51"),$x("0x9f")),a($x("0x51"),$x("0x5")),n[$x("0x5a")][$x("0x37")]($x("0x52"),$x("0x39"),$x("0x5"),(t=>{const e=t[$x("0x3f")]((t=>t[$x("0x55")]())),n=e[0][$x("0x95")]("table"),{minRow:r,maxRow:i}=s[$x("0x61")](e);o.removeRows(n,{at:r,rows:i-r+1})})),n[$x("0x5a")].registerCustomCallback($x("0x52"),$x("0x3a"),$x("0x5"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][$x("0x95")]("table"),{minColumn:r,maxColumn:i}=s[$x("0x61")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[$x("0x68")]($x("0xc")))return;const o=e[$x("0x80")][$x("0x43")],s=n[$x("0x2")]()[$x("0x28")]((t=>t[$x("0x5c")]&&t.attributes&&t[$x("0x80")][$x("0x43")]==o));s[$x("0x2a")]&&e[$x("0x42")]()[$x("0x2a")]!=s[$x("0x2a")]&&s[$x("0x9")](((t,e)=>(t[$x("0x44")]=e,e[$x("0x32")]=t,e)))};function l(t,e=!0){const{id:o}=n[$x("0x4")](t[$x("0x86")]),s=[$x("0x6d"),"ck-suggestion-marker-insertion"],r=n.activeMarkers[$x("0x99")](t[$x("0x86")]);return r&&s.push($x("0x4a")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on($x("0x93"),c,{priority:$x("0x8f")}),n.on("suggestionUnloaded",c,{priority:$x("0x8f")}),t[$x("0x8e")].document[$x("0x48")]((()=>{let e=!1;const o=Array.from(t[$x("0x8e")].document[$x("0x27")][$x("0x29")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[$x("0x4")](s);if($x("0x7e")!=o||"deletion"!=i||r[$x("0x70")])continue;if(!n.hasSuggestion(x))continue;const a=n[$x("0x38")](x)[$x("0x2d")](),c=t.plugins[$x("0x75")]($x("0x3e")).me;for(const t of n[$x("0x2")]())if(t[$x("0x5c")]&&t[$x("0x35")]==c&&"formatBlock"==t[$x("0x4c")]&&$x("0x74")==t.subType&&t.getRanges()[$x("0x10")]((t=>a[$x("0xe")]((e=>e.containsRange(t,!0))))))for(const n of t[$x("0x42")]())n[$x("0x5c")]&&(n[$x("0x5")](),e=!0)}return e})),t[$x("0x8e")][$x("0x97")].registerPostFixer((e=>{const o=t[$x("0x24")][$x("0x75")]($x("0x5d"));if(!o||!o[$x("0x45")][$x("0x79")](e[$x("0x57")]))return!1;let s=!1;const r=t[$x("0x47")][$x("0x75")]($x("0x3e")).me,i=t[$x("0x8e")][$x("0x97")][$x("0x27")][$x("0x9a")](),x=Array.from(t[$x("0x8e")][$x("0x97")][$x("0x27")][$x("0x29")]())[$x("0x28")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[$x("0x4")](t);return $x("0x7e")==o&&$x("0xc")==s&&i==r.id&&!e[$x("0x70")]}));for(const t of i){if("insert"!=t[$x("0x4c")]||$x("0x7d")!=t[$x("0x4f")]||1!=t.length)continue;const n=e[$x("0x19")](t[$x("0x8d")],t[$x("0x8d")].getShiftedBy(1));if(!x[$x("0x58")]((({data:t})=>t.newRange[$x("0x18")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o[$x("0x11")])){e[$x("0x6f")](t,{range:n}),s=!0;break}}return s})),t.model[$x("0x97")][$x("0x48")]((e=>{let o=!1;const s=t[$x("0x47")][$x("0x75")]($x("0x3e")).me,r=n[$x("0x2")]()[$x("0x28")]((t=>t[$x("0x5c")]&&t.author==s)),i=new Set,x=new Set;for(const t of r)if($x("0xc")==t[$x("0x85")])for(const e of t[$x("0x50")]()){const n=e[$x("0x98")]().getContainedElement();if(n)if(n.is($x("0x83"),$x("0x7d"))&&Zx(n)){t[$x("0x9e")](e.name),i[$x("0x8")](n),o=!0;const s=n.nextSibling,r=n[$x("0x12")],a=s&&s.is($x("0x83"),"tableCellSuggestion"),c=r&&r.is($x("0x83"),$x("0x7d"));a&&!i[$x("0x79")](s)&&x[$x("0x8")](s),c&&!i[$x("0x79")](r)&&x[$x("0x8")](r)}else n.is("element",$x("0x59"))&&n[$x("0x77")]&&(t[$x("0x9e")](e.name),o=!0)}else if($x("0x74")==t[$x("0x85")]){if(!t[$x("0x80")]||!t[$x("0x80")].tablePasteChainId)continue;const e=t.attributes[$x("0x7a")];if(e&&Object[$x("0x54")](e)[$x("0x2a")])continue;const n=t.attributes[$x("0x43")];let s=!0,i=!0;for(const e of r)if(e[$x("0x85")]&&e[$x("0x85")][$x("0x68")]($x("0xc"))){if(!e[$x("0x80")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[$x("0x80")][$x("0x43")]==n){s=!1;break}}i&&s&&(t[$x("0x64")](),o=!0)}for(const t of i)e[$x("0x89")](t);for(const t of x)e[$x("0x21")](t);return o})),t[$x("0x14")][$x("0x7c")]($x("0x33"))[$x("0xd")]({model:$x("0x4e"),view:(t,e)=>l(t),converterPriority:$x("0x8f")}),t[$x("0x14")][$x("0x7c")]($x("0x1e"))[$x("0xd")]({model:$x("0x4e"),view:(t,e)=>e[$x("0x7b")][$x("0x1a")]?l(t,!1):null,converterPriority:$x("0x8f")});const d=t[$x("0x66")][$x("0x5b")];this.listenTo(d[$x("0x97")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[$x("0x5f")](e[$x("0x60")]).getItems())t.is("element","suggestion-td")&&n.push(t);d.change((t=>{for(const e of n)t[$x("0x67")](t[$x("0x5f")](e),t[$x("0x6b")](e)),t.remove(e)}))}))}}function Zx(t){if(t[$x("0x77")])return!0;const e=t[$x("0x1c")](0);return e.is("element",$x("0x59"))&&e[$x("0x77")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[$x("0x91")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["accept","enableCommand","*Format:* resize table","_suggestionFactory","getColumnGroupElement","markBlockFormat","getAttribute","format","discard","TableColumnResizeEditing","getTableColumnsWidths","resizeTable","editor","handleSuggestionDescription","has","commandParams","columnWidths","_descriptionFactory","Users","selection","registerCustomCallback","afterInit","table","document","getSuggestionCallback","get","resizeColumnWidths","registerDescriptionCallback","getContainedElement","bind","tableWidth","resizeTableWidth","change","plugins","formatBlock","locale","handleResizeTableWidthCommand","data"];var ea,na;ea=ta,na=207,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x4")](){if(!this[oa("0x21")][oa("0x10")][oa("0x23")]("TableColumnResizeEditing"))return;const t=this.editor.plugins.get("TrackChangesEditing");t[oa("0x16")](oa("0xe"),this[oa("0x13")][oa("0xc")](this)),t[oa("0x16")](oa("0x9"),this.handleResizeTableWidthCommand.bind(this)),t[oa("0x18")][oa("0x3")]("formatBlock",oa("0x20"),oa("0x15"),t[oa("0x18")][oa("0x7")](oa("0x11"),null,oa("0x1d"))),t._suggestionFactory.registerCustomCallback(oa("0x11"),oa("0x20"),oa("0x1d"),t[oa("0x18")][oa("0x7")](oa("0x11"),null,oa("0x15"))),t[oa("0x0")][oa("0xa")](this[oa("0x22")][oa("0xc")](this))}[oa("0x13")](t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this.editor[oa("0x10")][oa("0x8")](oa("0x1e")),s=e[oa("0x5")]||this[oa("0x21")].model[oa("0x6")][oa("0x2")].getSelectedElement();this[oa("0x21")].model[oa("0xf")]((()=>{const r=o[oa("0x19")](s);let i=r?o[oa("0x1f")](r):null,x=s[oa("0x1b")](oa("0xd"))||null;const a=e.tableWidth||x,c=e[oa("0x25")]||i,l=this[oa("0x21")][oa("0x10")][oa("0x8")](oa("0x1")).me;for(const t of n.getSuggestions()){const e=t[oa("0xb")]();if("resizeTable"===t.subType&&e===s){t.author!==l&&t[oa("0x1d")]();const e=t[oa("0x14")][oa("0x24")];x=e[0][oa("0xd")],i=e[0][oa("0x25")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x1a")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x20")},[],"resizeTable")}))}[oa("0x22")](t){const{data:e}=t;if(e&&oa("0x20")===e.formatGroupId){const t=oa("0x17");return{type:oa("0x1c"),content:Yo(this.editor[oa("0x12")],t)}}}}const ra=["enableCommand","plugins","get","Template","insertTemplate","TrackChangesEditing","has"];var ia,xa;ia=ra,xa=391,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this.editor;t[aa("0x2")][aa("0x0")](aa("0x4"))&&t[aa("0x2")][aa("0x3")](aa("0x6"))[aa("0x1")](aa("0x5"))}}const la=["enableCommand","insertTableOfContents","commands","get","locale","TrackChangesEditing","registerElementLabel","tableOfContents","plugins","afterInit","_descriptionFactory"];var da,ua;da=la,ua=486,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x7")](){const t=this.editor;if(!t[ga("0x0")][ga("0x1")]("insertTableOfContents"))return;t[ga("0x6")][ga("0x1")](ga("0x3"))[ga("0x9")](ga("0xa"));const e=t[ga("0x6")][ga("0x1")](ga("0x3")),n=t[ga("0x2")];e[ga("0x8")][ga("0x4")](ga("0x5"),(t=>Yo(n,"ELEMENT_TABLE_OF_CONTENTS",t)))}}const fa=["_descriptionFactory","nodeBefore","isCollapsed","getNearestSelectionRange","ELEMENT_TITLE","registerElementLabel","element","Title","suggestion","isEqual","plugins","TrackChangesEditing","_splitMarkerName","isTouching","newRange","registerPostFixer","updateMarker","editor","model","removeMarker","document","start","title-content","schema","differ","from"];var ha,pa;ha=fa,pa=187,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{afterInit(){const t=this[ba("0xc")];if(!t[ba("0x5")].has(ba("0x2")))return;const e=t[ba("0x5")].get(ba("0x6"));e[ba("0x15")][ba("0x0")](ba("0x11"),(()=>Yo(t.locale,ba("0x19")))),t[ba("0xd")][ba("0xf")][ba("0xa")]((n=>{let o=!1;const s=Array[ba("0x14")](t.model.document[ba("0x13")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x7")](r);if(ba("0x3")!==s||!i[ba("0x9")])continue;const x=i.newRange,a=x.end[ba("0x16")];if(!a||!a.is(ba("0x1"),ba("0x11")))continue;if(!x.start[ba("0x8")](x.end))continue;const c=t[ba("0xd")][ba("0x12")][ba("0x18")](x.end,"forward");if(c&&c[ba("0x17")]){const t=n.createRange(x[ba("0x10")],c[ba("0x10")]);t[ba("0x4")](x)||(n[ba("0xb")](r,{range:t}),o=!0)}o||(n[ba("0xe")](r),o=!0)}return o}))}}const _a=["enableCommand","plugins","TrackChangesEditing","get","afterInit","UndoEditing"];var Ta,Ca;Ta=_a,Ca=149,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this.editor,e=t[ya("0x2")][ya("0x4")](ya("0x3"));t[ya("0x2")].has(ya("0x0"))&&(e.enableCommand("undo"),e[ya("0x1")]("redo"))}}const Aa=["TrackChangesEditing","has","editor","requires","afterInit","toggleTableCaption","get"];var va,Ra;va=Aa,Ra=285,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x5")](){return[wx]}[Ia("0x6")](){const t=this[Ia("0x4")];t.plugins[Ia("0x3")]("TableCaptionEditing")&&t.plugins[Ia("0x1")](Ia("0x2")).enableCommand(Ia("0x0"))}}const La=["handleListReversedCommand","DocumentListUtils","from","getAttribute","document","replace","format","type","editor","bind","commandParams","DocumentListPropertiesUtils","listStart","_getTranslationKeyForListStyle","plugins","locale","markMultiRangeBlockFormat","isListItemBlock","get","listStyle","selection","_getSuggestionBlocksForListStyle","list.properties","model","*Change to:* %0","push","expandListBlocksToCompleteList","commandName","TrackChangesEditing","toUpperCase","DocumentListPropertiesEditing","change","_LIST_","enableCommand","handleListStartCommand","afterInit","has","getSelectedBlocks","numbered","getListTypeFromListStyleType","startIndex","_getSuggestionBlocks","handleListStyleCommand","reversed","listReversed","isFirstBlockOfListItem","*Format:* set order to reversed","handleDescriptions","filter","ELEMENT_","listType"];var Na,Ma;Na=La,Ma=476,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[wa("0x12")](){if(!this.editor.plugins[wa("0x13")](wa("0xd")))return;const t=this.editor.config[wa("0x1")](wa("0x5")),e=this.editor[wa("0x30")].get(wa("0xb"));t.styles&&e[wa("0x10")](wa("0x2"),this[wa("0x19")][wa("0x2b")](this)),t.reversed&&e[wa("0x10")](wa("0x1b"),this[wa("0x22")][wa("0x2b")](this)),t[wa("0x17")]&&e.enableCommand(wa("0x2e"),this[wa("0x11")][wa("0x2b")](this)),e._descriptionFactory.registerDescriptionCallback(this[wa("0x1e")][wa("0x2b")](this))}handleListStyleCommand(t,e={}){const n=this.editor[wa("0x30")][wa("0x1")](wa("0xb")),o=this._getSuggestionBlocksForListStyle();this.editor[wa("0x6")][wa("0xe")]((()=>{n[wa("0x32")](o,{commandName:wa("0x2"),commandParams:[{type:e[wa("0x29")]}],formatGroupId:wa("0x2")})}))}[wa("0x22")](t,e={}){const n=this.editor[wa("0x30")][wa("0x1")](wa("0xb")),o=this[wa("0x2a")][wa("0x30")].get(wa("0x23")),s=this[wa("0x18")]((t=>o[wa("0x0")](t)&&"numbered"===t[wa("0x25")](wa("0x21"))));null!==s&&this.editor[wa("0x6")][wa("0xe")]((()=>{n[wa("0x32")](s,{commandName:wa("0x1b"),commandParams:[{reversed:e[wa("0x1a")]}],formatGroupId:"listReversed"})}))}[wa("0x11")](t,e={}){const n=this[wa("0x2a")][wa("0x30")][wa("0x1")]("TrackChangesEditing"),o=this[wa("0x2a")][wa("0x30")][wa("0x1")]("DocumentListUtils"),s=this[wa("0x18")]((t=>o[wa("0x0")](t)&&wa("0x15")===t.getAttribute(wa("0x21"))));null!==s&&this[wa("0x2a")].model[wa("0xe")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0x2e"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wa("0x1e")](t){const e=this[wa("0x2a")][wa("0x31")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0xa")]){case wa("0x2"):o=wa("0x7"),s={type:wa("0x28"),content:Yo(e,o,Yo(e,this[wa("0x2f")](n[wa("0x2c")][0].type)))};break;case wa("0x1b"):o=n[wa("0x2c")][0][wa("0x1a")]?wa("0x1d"):"*Format:* set order to regular",s={type:"format",content:Yo(e,o)};break;case wa("0x2e"):o="*Format:* set start index to %0",s={type:"format",content:Yo(e,o,n[wa("0x2c")][0].startIndex)}}return s}[wa("0x4")](){const t=this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x23"));let e=Array[wa("0x24")](this[wa("0x2a")][wa("0x6")].document[wa("0x3")][wa("0x14")]());return e.push(...t[wa("0x9")](e)),e=[...new Set(e)],e}[wa("0x18")](t){const e=this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x23"));let n=Array.from(this.editor.model[wa("0x26")][wa("0x3")][wa("0x14")]())[wa("0x1f")](t);if(!n.length)return null;n=e[wa("0x9")](n);const o=[];for(const t of n)e[wa("0x1c")](t)&&o[wa("0x8")](t);return o}[wa("0x2f")](t){return wa("0x20")+this[wa("0x2a")][wa("0x30")][wa("0x1")](wa("0x2d"))[wa("0x16")](t).toUpperCase()+wa("0xf")+t[wa("0xc")]()[wa("0x27")](/-/g,"_")}}const Fa=["*Format:* change table cell properties","nodeAfter","_suggestionFactory","batch","has","tableCellProperties","enqueueChange","tableHeight","plugins","tableBorderStyle","afterInit","handleSuggestionDescription","tableCellVerticalAlignment","getSuggestionCallback","tableCellWidth","selection","change","handleDiscardAction","tableWidth","setAttribute","get","findAncestor","tableCellHeight","getSelectionAffectedTableCells","TrackChangesEditing","tableBackgroundColor","locale","registerCustomCallback","discard","TrackChangesTableProperties","tableProperties","TableCellPropertiesEditing","tableCellHorizontalAlignment","_descriptionFactory","getFirstPosition","join","accept","getAttribute","tableCellBorderColor","_handlePropertyChange","markBlockFormat","enableCommand","tableBorderColor","formatBlock","pluginName","tableCellBackgroundColor","editor","subType","model","TableUtils","registerDescriptionCallback","document","tableBorderWidth","commandParams","*Format:* change table properties","tableAlignment","_getSuggestion"];var Pa,Da;Pa=Fa,Da=394,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x23")]=[Ba("0x2f"),Ba("0xe"),Ba("0x0"),Ba("0x3"),Ba("0x17"),Ba("0xc"),Ba("0x1e")],this.tableCellProperties=[Ba("0x2b"),"tableCellBorderStyle","tableCellBorderWidth","tableCellPadding",Ba("0x13"),Ba("0x1b"),Ba("0x32"),Ba("0x25"),Ba("0x11")]}static get[Ba("0x31")](){return Ba("0x22")}[Ba("0xf")](){const t=this[Ba("0x33")].plugins[Ba("0x19")]("TrackChangesEditing");if(this[Ba("0x33")][Ba("0xd")][Ba("0x9")]("TablePropertiesEditing")){for(const e of this[Ba("0x23")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x33")][Ba("0x35")].document[Ba("0x14")][Ba("0x27")]()[Ba("0x1a")]("table");this[Ba("0x2c")](e,[o],this[Ba("0x23")],"tableProperties",t,n)}));t[Ba("0x7")][Ba("0x20")](Ba("0x30"),"tableProperties",Ba("0x29"),t._suggestionFactory[Ba("0x12")](Ba("0x30"),null,Ba("0x21"))),t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0x23"),"discard",((t,e)=>this[Ba("0x16")](this[Ba("0x23")],t,e))),t._suggestionFactory[Ba("0x20")](Ba("0x30"),Ba("0x23"),Ba("0x28"),(()=>!1))}if(this.editor[Ba("0xd")][Ba("0x9")](Ba("0x24"))){for(const e of this[Ba("0xa")])t[Ba("0x2e")](e,((t,n)=>{const o=this[Ba("0x33")][Ba("0xd")][Ba("0x19")](Ba("0x36"))[Ba("0x1c")](this[Ba("0x33")][Ba("0x35")][Ba("0x38")].selection);this[Ba("0x2c")](e,o,this[Ba("0xa")],"tableCellProperties",t,n)}));t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0xa"),Ba("0x29"),t[Ba("0x7")].getSuggestionCallback(Ba("0x30"),null,Ba("0x21"))),t[Ba("0x7")][Ba("0x20")](Ba("0x30"),Ba("0xa"),Ba("0x21"),((t,e)=>this[Ba("0x16")](this[Ba("0xa")],t,e))),t[Ba("0x7")][Ba("0x20")]("formatBlock",Ba("0xa"),Ba("0x28"),(()=>!1))}t[Ba("0x26")][Ba("0x37")]((t=>this[Ba("0x10")](t)))}[Ba("0x2c")](t,e,n,o,s,r){const i=this[Ba("0x33")][Ba("0xd")][Ba("0x19")](Ba("0x1d"));this[Ba("0x33")].model[Ba("0xb")](r[Ba("0x8")],(()=>{for(const t of e)if(this[Ba("0x4")](t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x2a")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x2d")](t,{commandParams:[e]},[],o)}}))}[Ba("0x16")](t,e,n){const o=e[0].start[Ba("0x6")],s=n[Ba("0x1")][0];this.editor[Ba("0x35")][Ba("0x15")]((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x18")](n,s[n],o):e.removeAttribute(n,o)}))}[Ba("0x10")](t){if(t.data)switch(t[Ba("0x34")]){case Ba("0x23"):return{type:"format",content:Yo(this.editor[Ba("0x1f")],Ba("0x2"))};case Ba("0xa"):return{type:"format",content:Yo(this[Ba("0x33")][Ba("0x1f")],Ba("0x5"))}}}[Ba("0x4")](t,e){const n=this[Ba("0x33")][Ba("0xd")].get(Ba("0x1d"));for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x34")]===e&&n===t)return o}return null}}const Ua=["data","isExternal","head","createPositionAt","never","_joinSuggestions","isOwn","sort","containsRangeInObject","createdAt","rootName","pluginName","size","addSuggestionData","change:data","catch","oldRange","deletion:","consume","requires","trackChanges.trackFormatChanges","accepted","_commentsRepository","dataDowncast","writer","formatInline:chain","$marker","ready","isIntersectingWithRange","insertion:discard","editingDowncast","_setSuggestionData","push","always","editing","fetchCommentThread","addSuggestion","suggestion:","_mergeNestedSuggestions","_updateSuggestionData","getCommentThread","markerReady","getSuggestions","move","_isDataLoaded","update:suggestion","hasComments","_getExternalAuthor","_cutOutSuggestionMarker","highest","plugins","delete","removed","length","track-changes-adapter-missing-getsuggestion","isUndo","stopListening","formatBlock:discard","markerToHighlight","updateSuggestion","set","containsRange","ck-suggestion-marker-formatBlock","_saved","accept","commentThread","track-changes-user-not-found","fromRange","_joinWithAdjacentSuggestions","isBlock","has","suggestionLoaded","value","insertion","differ","ck-suggestion-marker-","isEqual","_onDiscard","CommentsRepository","createPositionAfter","createPositionBefore","formatInline:join","getNearestSelectionRange","suggestion-type","deletion:join","change:_saved","options","suggestion","createRangeIn","consumable","addMarker:suggestion:formatBlock","isNextTo","isCollapsed","dataReady","get","mapper","type","forward","_getAuthorFromId","then","discardSuggestion","for","formatBlock:accept","open","from","assign","hasSuggestion","bindElementToMarker","author","forceDefaultExecution","addMarkerName","root","insert","markMultiRangeDeletion","getMarkers","markInsertion","deletion:accept","_defaultCallbacks","targetPosition","some","setSelection","nodeAfter","schema","addMarker","isRemovable","getLastMatchingPosition","listenTo","acceptAllSuggestions","values","getIntersection","elementStart","newRange","track-changes-adapter-already-set","getShiftedBy","locale","formatInline:accept","markInlineFormat","subType","getSuggestionCallback","suggestionChanged","_removeSuggestion","buildSuggestion","isObject","addUser","includes","@external","isInContent","collaboration.channelId","removeMarkers","track-changes-suggestion-not-found","editor","getChanges","removeComment","_suggestionState","filter","stop","previous","isAtStart","batch","external:","PENDING_ACTION_SUGGESTION","getCustomProperty","formatGroupId","toViewElement","keys","$graveyard","lowest","element","getFirstRange","_handleNewSuggestionMarker","name","addComment","removeMarker:suggestion:formatBlock","_trackFormatChanges","next","authoredAt","originalSuggestionId","attributes","containsItem","markerNameToElements","widget","clone","moveTargetPosition","default","resolve","_setSuggestionRange","trackChanges","isInsideObject","isLocal","_isForcedDefaultExecutionBlock","model","track-changes-suggestion-data-mismatch","execute","creator","getFirstMarker","_addSuggestionMarker","discard","_getSuggestionData","addRange","backward","upcast","add","remove","deletion","fire","getRanges","_rangeIsInLocalUserInsertion","multipleBlocks","item","formatBlock:join","getSuggestion","getDifference","detach","authorName","activeMarkers","end","change:activeMarkers","data-suggestion","_suggestionFactory","formatBlock","_customCallbacks","isAfter","multi","suggestionUnloaded","map","_model","updateMarker","parent","_enabledCommands","ck-suggestion-marker--active","getUser","_editor","split","before","markers","documentSelection","high","formatInline","splice","isMultiRange","conversion","getMultiRangeId","trackChangesCommand","_refreshSuggestionsChain","formatInline:discard","getAttribute","_breakSuggestionMarker","addHighlight","init","unbind","isBefore","TrackChangesEditing","markMultiRangeInsertion","rejected","insertion:","showSuggestionHighlights","_adapter","containsPosition","discardAllSuggestions","deletion:chain","low","createRange","getRange","splitPosition","hasCommentThread","registerPostFixer","_createSuggestion","isLimit","$textProxy","enableCommand","markerName","enableReadOnlyMode","unbindElementFromMarkerName","PendingActions","_addThreadToSuggestion","formatBlock:chain","Users","document","start","addClass","ck-suggestion-marker","skipNestingCheck","substr","refresh","insertContent","createSelection","_suggestions","notReady","howMany","nodeBefore","getAllAdjacentSuggestions","acceptSuggestion","join","removeAttribute","_splitMarkerName","_registerDefaultCallbacks","acceptSelectedSuggestions","marker-count","commandName","containerElement","_findSuggestions","markDeletion","range","change","insertion:join","trackChanges.mergeNestedSuggestions","chain","dataToMarker","config","createElement","_checkSuggestionCorrectness","position","every","commands","getChangedMarkers","addMarker:suggestion"];var Ga,Ha;Ga=Ua,Ha=314,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0x15")](){return[za("0x50"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,Xi,tx,ix,ux,px,yx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xd")](){return za("0xfd")}constructor(t){function e(t){return t[za("0xe2")]((t=>String.fromCharCode(t)))[za("0x126")]("")}super(t),this[za("0x3e")](za("0xd8"),[]),this.on(za("0xda"),((e,n,o,s)=>{this[za("0xe3")][za("0x131")]((()=>{for(const e of[...s,...o])this[za("0xe3")].markers.has(e)&&t[za("0x24")].reconvertMarker(e)}))})),this._descriptionFactory=new ss(this[za("0x98")][za("0xc0")][za("0x7c")],this[za("0x98")][za("0x88")]),this[za("0x102")]=null,this[za("0xdc")]=new Va(this[za("0x98")]),this[za("0x120")]=new Map,this[za("0x18")]=t[za("0x34")][za("0x60")](za("0x50")),this[za("0xe6")]=new Set,this._model=this[za("0x98")][za("0xc0")],this[za("0x9b")]=new WeakMap,this[za("0xbf")]=!1,t[za("0x136")].define(za("0x16"),za("0xb9")),this[za("0xaf")]=t[za("0x136")][za("0x60")](za("0x16")),t[za("0x136")].define(za("0x133"),!0),this[za("0x28")]=t.config[za("0x60")](za("0x133")),this[za("0xf4")]=new u(t,this._enabledCommands),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,54,54,50])}[za("0xfa")](){const t=this[za("0x98")];t[za("0xf2")][za("0x67")](za("0x20")).markerToHighlight({model:za("0x59"),view:t=>{const{id:e,type:n}=this[za("0x128")](t[za("0x110")]),o=[za("0x11a"),za("0x4d")+n];let s=3e3;return this[za("0xd8")].includes(t.markerName)&&(o[za("0x22")](za("0xe7")),s=3010),za("0xcd")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[za("0x67")](za("0x19")).add((e=>{e.on(za("0x1"),((e,n,o)=>{if(!o.options[za("0x101")])return;const s=n.item;if(!s)return;const r=o[za("0x61")][za("0xa5")](s);t[za("0xc0")][za("0x7c")][za("0x90")](s)&&r&&!r[za("0xa3")](za("0xb6"))&&r.is(za("0x12d"))&&(0,x.toWidget)(r,o.writer)}),{priority:za("0xee")})})),t[za("0xf2")][za("0x67")]("dataDowncast")[za("0x3c")]({model:za("0x59"),view:(t,e)=>{if(!e[za("0x58")][za("0x101")])return null;const{type:n}=this[za("0x128")](t.markerName);return{classes:[za("0x11a"),"ck-suggestion-marker-"+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xd2")])return;if(o.item.is("selection"))return void s.consumable.consume(o.item,n[za("0xac")]);const r=s[za("0x61")][za("0xa5")](o[za("0xd2")]);if(!o[za("0xd2")].is("element")||!t[za("0xc0")][za("0x7c")].isBlock(o.item)||r[za("0xa3")](za("0xf9")))return;const{id:i}=this[za("0x128")](o.markerName);s.writer[za("0x119")](["ck-suggestion-marker",za("0x40")],r),s[za("0x1a")].setAttribute(za("0xdb"),i,r),s[za("0x61")][za("0x6d")](r,o[za("0x110")]),e&&(this[za("0xd8")][za("0x92")](o.markerName)?s[za("0x1a")][za("0x119")](za("0xe7"),r):s[za("0x1a")].removeClass("ck-suggestion-marker--active",r));for(const e of t[za("0xc0")][za("0x5a")](o.item).getItems())s[za("0x5b")][za("0x14")](e,n[za("0xac")]);s[za("0x5b")].consume(o[za("0xd2")],n[za("0xac")])};t.conversion[za("0x67")](za("0x19"))[za("0xcb")]((t=>{t.on(za("0x5c"),((t,e,o)=>{o[za("0x58")][za("0x101")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x33")})})),t[za("0xf2")][za("0x67")](za("0x19")).markerToData({model:"suggestion",view:(t,e)=>e[za("0x58")][za("0x101")]?null:{group:"suggestion",name:t[za("0x11c")](11)}}),t[za("0xf2")].for(za("0xca")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x27")+t[za("0xf7")](za("0x55"))+":"+t[za("0xf7")]("id");return t[za("0xf7")]("marker-count")&&(n+=":"+t[za("0xf7")](za("0x12b"))),e[za("0x137")](za("0x1c"),{"data-name":n})}}),t[za("0xf2")][za("0x67")](za("0xca"))[za("0x135")]({view:"suggestion"}),t[za("0xf2")][za("0x67")](za("0x20"))[za("0xcb")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xee")})})),t[za("0xf2")][za("0x67")]("editingDowncast")[za("0xcb")]((t=>{t.on(za("0xae"),((t,e,n)=>{const o=n.mapper[za("0xb5")](e[za("0x110")]);if(o)for(const t of o)t.getCustomProperty(za("0xf9"))||(n[za("0x1a")].removeClass([za("0x11a"),za("0x40"),"ck-suggestion-marker--active"],t),n[za("0x1a")][za("0x127")](za("0xdb"),t),n[za("0x61")][za("0x112")](t,e[za("0x110")]))}),{priority:za("0xee")})})),t.model[za("0x117")][za("0x10b")]((e=>{let n=!1;const o=Array[za("0x6a")](t[za("0xc0")].document.differ[za("0x0")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x59")!==o)continue;const d=this[za("0x120")][za("0x60")](l);if(null!=a[za("0x85")])if(za("0xef")==c&&(n=n||$a(a[za("0x85")],x,e,t[za("0xc0")].schema)),a[za("0x85")].isCollapsed||"$graveyard"==a[za("0x85")].root.rootName||"formatBlock"==c&&!Ja(a[za("0x85")])||za("0xcd")==c&&(qa(i=a[za("0x85")])||(r=i)[za("0x118")][za("0xe5")]==r[za("0xd9")][za("0x123")]&&r[za("0x118")].isAtEnd))e.removeMarker(x),n=!0;else{if(!d||!d[za("0x94")])continue;s[za("0xcb")](d)}}var r,i;return s[za("0xe")]>0&&(n=!!this[za("0x46")](s)||n),n})),t[za("0xc0")][za("0x117")][za("0x10b")]((e=>{let n=!1;for(const o of t.model[za("0x117")][za("0x4c")][za("0x99")]()){if(za("0x72")!=o[za("0x62")])continue;const s=o[za("0x139")].getShiftedBy(o[za("0x37")]);if(s.isAtEnd)for(const r of this._suggestions[za("0x82")]()){if(r[za("0xf1")]||!r[za("0x94")])continue;if(za("0xdd")!=r.type)continue;const i=r[za("0xaa")]();if(i[za("0x118")][za("0xe5")]!=i[za("0xd9")][za("0xe5")]&&i.end[za("0x4e")](o.position)){const o=t.model[za("0x107")](i[za("0x118")],s);e[za("0xe4")](r[za("0xc4")](),{range:o}),n=!0}}}return n})),t[za("0xc0")][za("0xec")].on(za("0x2f"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this[za("0x120")][za("0x60")](t);n&&n[za("0x70")](e[za("0xac")])}})),t[za("0xc0")][za("0x117")].on(za("0x10"),(()=>{const e=Array[za("0x6a")](t[za("0xc0")][za("0x117")].differ[za("0x0")]())[za("0x9c")]((t=>za("0x59")===this[za("0x128")](t.name).group));if(0===e.length)return;e[za("0x9")](((t,e)=>{const n=t[za("0x2")][za("0x12")],o=e.data.oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x118")].isBefore(o[za("0x118")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x128")](t);if(null===s[za("0x12")]){const e=this[za("0xab")](t);o[za("0xcb")](e)}else{const t=this[za("0x120")][za("0x60")](e);null!==s[za("0x85")]||t[za("0x94")]?(n[za("0xcb")](t[za("0x4")]),o[za("0xcb")](t)):this[za("0x8e")](t)}}o[za("0xe")]>0&&this[za("0xf5")](o);for(const t of n)this.fire("suggestionChanged",t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[za("0x120")][za("0xe")])return;if(!o.isDocumentOperation)return;if(o[za("0xa0")][za("0x39")]||!o.batch[za("0xbe")])return;let s,r;switch(o[za("0x62")]){case"insert":s=t[za("0xc0")][za("0x5")](o[za("0x139")]),r=s[za("0x87")](o[za("0x122")]);break;case za("0xea"):s=t[za("0xc0")][za("0x5")](o[za("0x109")]),r=t.model[za("0x5")](o[za("0xb8")]);break;case za("0x2d"):s=t.model[za("0x5")](o[za("0x78")]),r=s[za("0x87")](o.howMany);break;default:return}const i=t.model[za("0x107")](s,r);t.model[za("0x131")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x12e")](i)){if(t[za("0xf1")])continue;if(za("0xef")==t[za("0x62")])continue;const n=t[za("0x2")]&&t[za("0x2")][za("0xd1")];(za("0xdd")!=t.type||za("0xea")==o[za("0x62")]&&!n)&&(e[za("0xa")]||za("0x4b")==t[za("0x62")]&&e[za("0x8")]||t[za("0xaa")]()[za("0x3f")](i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:za("0xa8")}),t[za("0xc0")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x6f")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this.trackChangesCommand[za("0x4a")])return;if(o[za("0x5e")])return;const r=t[za("0xc0")].schema,{start:i,end:x}=o.getFirstRange(),a=i[za("0x7b")]&&r[za("0x10d")](i[za("0x7b")])?null:r[za("0x54")](i,za("0x63")),c=x[za("0x123")]&&r.isLimit(x[za("0x123")])?null:r[za("0x54")](x,za("0xc9")),l=t[za("0xc0")][za("0x107")](a?a.start:i,c?c.end:x);t[za("0xc0")].change((e=>{this[za("0x12f")](l);const n=t[za("0xc0")][za("0x7c")].getNearestSelectionRange(l[za("0x118")]);o.is(za("0xed"))?e[za("0x7a")](n):o.setTo(n)})),e[za("0x9d")]()}),{priority:e.priorities.normal+10}),t[za("0xc0")].on(za("0x11e"),((e,n)=>{const o=n[n[za("0x37")]-1];o&&o[za("0x6f")]||this._isForcedDefaultExecutionBlock||this[za("0xf4")][za("0x4a")]&&(t.model[za("0x131")]((()=>{let o=t[za("0xc0")][za("0x11e")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o[za("0xb7")]();const s=o[za("0xd9")][za("0x123")],r=t[za("0xc0")][za("0x7c")];s&&r[za("0x47")](s)&&!r[za("0x90")](s)&&(o=t[za("0xc0")].createRange(o[za("0x118")],t.model[za("0x5")](s,za("0xd9")))),this[za("0x75")](o)})),e[za("0x9d")]())}),{priority:"high"}),this.editor[za("0x13b")][za("0xcb")](za("0xbc"),this[za("0xf4")]),this[za("0x10f")]("trackChanges");const o=new p(t,this[za("0x120")]);t[za("0x13b")][za("0xcb")](za("0x125"),o),this[za("0x10f")](za("0x125"));const s=new C(t,this._suggestions);t[za("0x13b")].add("discardSuggestion",s),this[za("0x10f")]("discardSuggestion"),t[za("0x13b")][za("0xcb")](za("0x81"),new F(t,o,this[za("0x120")])),this[za("0x10f")](za("0x81")),t.commands[za("0xcb")](za("0x104"),new F(t,s,this[za("0x120")])),this.enableCommand(za("0x104")),t.commands[za("0xcb")](za("0x12a"),new U(t,o,this._suggestions)),this[za("0x10f")]("acceptSelectedSuggestions"),t[za("0x13b")].add("discardSelectedSuggestions",new U(t,s,this[za("0x120")])),this[za("0x10f")]("discardSelectedSuggestions");const r=t[za("0x34")][za("0x60")](za("0x50"));this[za("0x80")](r,za("0xad"),((t,{threadId:e})=>{const n=this._suggestions[za("0x60")](e);n&&n[za("0x43")]&&1===n[za("0x43")].length&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x106")}),this[za("0x80")](r,za("0x9a"),((t,{threadId:e})=>{const n=this[za("0x120")][za("0x60")](e);n&&n[za("0x43")]&&!n[za("0x43")][za("0x37")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:"low"})}set adapter(t){if(this[za("0x102")])throw new e.CKEditorError(za("0x86"),this);this[za("0x102")]=t}get adapter(){return this[za("0x102")]}[za("0x2c")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x120")][za("0x82")]())t&&!e[za("0x94")]||n[za("0x22")](e);return e?n.map((t=>t.toJSON())):n}[za("0xd4")](t){const n=this._suggestions[za("0x60")](t);if(!n)throw new e.CKEditorError(za("0x97"),this);return n}[za("0x6c")](t){return this[za("0x120")][za("0x48")](t)}[za("0xf")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0x62")][za("0xea")](":"),i=this[za("0x120")][za("0x60")](n)||this[za("0x10c")](s,r,n,e,o);if(this[za("0x114")](i),this[za("0x138")](i,s,r||null,e),i[za("0xb")]=t.createdAt,i._isDataLoaded=!0,o&&o[za("0x93")]){const t=o[za("0x93")],e=this[za("0x31")](t[za("0xd7")]);i[za("0xb1")]=t[za("0xb")],i.author=e,i[za("0x3")]=!0}else i[za("0xb1")]=t[za("0xb")];switch(t[za("0x2")]&&(i[za("0x2")]=t.data),t[za("0xb3")]&&(i[za("0xb3")]=t[za("0xb3")]),this[za("0x102")]&&this[za("0x102")][za("0x26")]||(i[za("0x41")]=!0),this._suggestionState[za("0x60")](i)){case za("0x121"):this[za("0x9b")][za("0x3e")](i,za("0x5f"));break;case za("0x2b"):i.isInContent?(this[za("0xf5")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this._suggestionState[za("0x3e")](i,za("0x1d")),this.fire(za("0x49"),i)):this[za("0x9b")][za("0x3e")](i,za("0x36"))}return i}[za("0x125")](t){this[za("0x6f")]((()=>{this.editor[za("0xc0")].change((()=>{for(const e of t[za("0x124")]())e[za("0x42")]()}))}))}[za("0x66")](t){this[za("0x6f")]((()=>{this.editor[za("0xc0")].change((()=>{for(const e of t[za("0x124")]())e[za("0xc6")]()}))}))}[za("0x10f")](t,n){const o=this.editor[za("0x13b")][za("0x60")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0xe6")][za("0xcb")](o),n&&o.on(za("0xc2"),((t,e)=>{this[za("0xf4")].value&&(this[za("0xbf")]||e[za("0x37")]>0&&e[e[za("0x37")]-1]&&e[e[za("0x37")]-1][za("0x6f")]||(n(((...t)=>o[za("0xc2")](...t,{forceDefaultExecution:!0})),...e),t[za("0x9d")]()))}),{priority:za("0xee")})}[za("0x6f")](t){let n,o;const s=this[za("0xbf")];this[za("0xbf")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0xbf")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[za("0x75")](t,n=null,o={}){if(t[za("0x5e")])return null;const s=this[za("0x98")].plugins[za("0x60")](za("0x116")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,za("0x4b")))if(s[za("0x8")]){if(!s.isNextTo){if(s[za("0xa")]){if(!this[za("0x28")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0xf8")](e,t[za("0x118")],t.end);break}if(n==e[za("0x8b")]&&tc(e,o)){const n=e[za("0xaa")]();return n[za("0x118")].isEqual(t[za("0xd9")])?this[za("0xbb")](e,this[za("0xe3")][za("0x107")](t[za("0x118")],n.end)):this._setSuggestionRange(e,this[za("0xe3")][za("0x107")](n.start,t[za("0xd9")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x100")+n:za("0x4b"),a=this[za("0x21")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0xfe")](t,n=za("0xe0"),o={}){const s=this[za("0x98")][za("0x34")][za("0x60")](za("0x116")).me,r=this[za("0xdc")][za("0x8c")](za("0x4b"),n,za("0x126"));for(const e of this[za("0x2c")]())if(e.author.id==s.id&&za("0x4b")==e[za("0x62")]&&e[za("0x8b")]==n&&tc(e,o)&&(r(e[za("0xcf")](),t)||r(t,e[za("0xcf")]()))){for(const n of t)e[za("0xc8")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x4b"))){if(!n[za("0x8")])continue;if(!this[za("0x28")]&&n[za("0xa")])continue;if(!tc(e,o))continue;let s=!0;for(const n of e[za("0xcf")]())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=za("0x100")+n,c=this[za("0x21")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xc5")](a,i,x,e,Zo.getMultiRangeId());return c}[za("0x8a")](t,n,o=null,s={}){if(o=o||Xa(n),t[za("0x5e")])return null;if(za("0x6")===this[za("0xaf")]){const e=this[za("0xdc")].getSuggestionCallback("formatInline",o,"accept");return this[za("0x6f")]((()=>e([t],n,s))),null}const r=this[za("0x98")][za("0x34")][za("0x60")](za("0x116")).me,i=[];if(za("0x23")!==this[za("0xaf")])for(const{suggestion:e,meta:n}of this[za("0x12e")](t,za("0x4b")))n[za("0x8")]&&!n[za("0xbd")]&&i.push(...e[za("0xcf")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x83")](o);e&&n[za("0x22")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0x37")];){const o=n[e][za("0xd5")](t);n[za("0xf0")](e,1,...o),e+=o[za("0x37")]}}return n}(t,i);x.length&&this._model[za("0x131")]((()=>{for(const t of x){const e=this._suggestionFactory[za("0x8c")](za("0xef"),o,"accept");this[za("0x6f")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x118")],a=t[za("0xd9")];for(const{suggestion:e,meta:n}of this[za("0x12e")](t,za("0xef"))){if(!n[za("0x8")])continue;if(e.subType!=o)continue;if(!tc(e,s))continue;const r=e.getFirstRange();if(r[za("0x3f")](t,!0))return null;x=x.isBefore(r[za("0x118")])?x:r[za("0x118")],a=a[za("0xdf")](r[za("0xd9")])?a:r[za("0xd9")],i?r[za("0x118")][za("0xfc")](i.getFirstRange()[za("0x118")])?(i[za("0x96")](),i=e):e[za("0x96")]():i=e}const c=this[za("0xe3")].createRange(x,a);if(i)this[za("0xbb")](i,c);else{const t=(0,e.uid)(),i=r.id;this._setSuggestionData({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xc5")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0xa4")]||(n[za("0xa4")]=n.commandName),n[za("0xd1")]=t.is(za("0x130")),s=s||Xa(n);const i=o[za("0xe2")]((t=>Qa(t,this[za("0xe3")]))),x=t.is("range")?t:Qa(t,this._model);if(za("0x6")===this[za("0xaf")]){const t=this[za("0xdc")][za("0x8c")](za("0xdd"),s,za("0x42"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0xd0")](t)){a=!1;break}if(a&&za("0x23")!==this._trackFormatChanges){const t=this._suggestionFactory.getSuggestionCallback(za("0xdd"),s,za("0x42"));return this[za("0x6f")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x118")],d=x[za("0xd9")];for(const{suggestion:t,meta:e}of this[za("0x12e")](x,za("0xdd"))){if(!e[za("0x8")])continue;if(e[za("0x5d")]||e[za("0xa")]||e.isInsideObject)continue;if(t[za("0x2")][za("0xa4")]!=n[za("0xa4")])continue;if(!tc(t,r))continue;const o=t.getFirstRange();if(t.subType==s){if(o.containsRange(x,!0))return null;l=l[za("0xfc")](o[za("0x118")])?l:o[za("0x118")],d=d[za("0xdf")](o.end)?d:o[za("0xd9")],c?o.start[za("0xfc")](c[za("0xaa")]()[za("0x118")])?(c[za("0x96")](),c=t):t[za("0x96")]():c=t}else{const e=x[za("0x83")](o);this[za("0x32")](t,e)}}const u=this.editor.plugins[za("0x60")](za("0x116")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0xbb")](c,this[za("0xe3")][za("0x107")](l,d)),c;{const t=this[za("0x21")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xc5")]("formatBlock:"+s,g,m,this._model[za("0x107")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[za("0xa4")]=n[za("0x12c")]);const i=t[0];n[za("0xd1")]=i.is(za("0x130")),s=s||Xa(n);const x=o[za("0xe2")]((t=>Qa(t,this[za("0xe3")]))),a=i.is(za("0x130"))?t:t[za("0xe2")]((t=>Qa(t,this._model)));if(za("0x6")===this[za("0xaf")]){const t=this[za("0xdc")][za("0x8c")](za("0xdd"),s,za("0x42"));return this[za("0x6f")]((()=>t(a,n,r))),null}x[za("0x22")](...a);let c=!0;for(const t of x)if(!this[za("0xd0")](t)){c=!1;break}if(c&&za("0x23")!==this[za("0xaf")]){const t=this[za("0xdc")][za("0x8c")](za("0xdd"),s,za("0x42"));return this[za("0x6f")]((()=>t(a,n,r))),null}const l=this.editor[za("0x34")][za("0x60")]("Users").me;for(const t of this[za("0x2c")]()){if(t.author.id!=l.id)continue;if(za("0xdd")!=t[za("0x62")]||t[za("0x2")][za("0xa4")]!=n[za("0xa4")])continue;if(!tc(t,r))continue;const e=t[za("0x8b")]==s;for(let n=0;n<a[za("0x37")];n++){const o=a[n];for(const s of t[za("0x74")]()){const r=s[za("0x108")]();if(o[za("0x4e")](r)){e?(a[za("0xf0")](n,1),n--):t.removeMarker(s[za("0xac")]);break}}}}if(0==a[za("0x37")])return null;const d=this[za("0xdc")][za("0x8c")](za("0xdd"),s,za("0x126"));for(const t of this.getSuggestions())if(t.author.id==l.id&&"formatBlock"==t.type&&t[za("0x2")][za("0xa4")]==n[za("0xa4")]&&t[za("0x8b")]==s&&tc(t,r)&&(d(t[za("0xcf")](),a)||d(a,t.getRanges()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this[za("0x21")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0xf3")]());return f}markDeletion(t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0x98")].plugins[za("0x60")](za("0x116")).me,r=new i.LiveRange(t[za("0x118")],t[za("0xd9")]);for(const{suggestion:t,meta:e}of this[za("0x12e")](r,za("0x4b")))if(e[za("0x8")]&&!e[za("0x5d")])if(t[za("0xf1")]){const e=t[za("0xcf")]()[za("0x9c")]((t=>za("0xa7")!=t[za("0x71")].rootName));if(e[za("0x13a")]((t=>r[za("0x3f")](t,!0)))&&t.discard(),e[za("0x79")]((t=>t[za("0x3f")](r,!0)))){const t=this[za("0xdc")][za("0x8c")](za("0xcd"),n,"accept");return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[za("0x83")](t[za("0xaa")]());null!==e&&t[za("0x4f")]([e],null,o)}if(r.detach(),r[za("0x5e")]||za("0xa7")==r.root.rootName)return null;let x=null,a=r[za("0x118")],c=r[za("0xd9")];const l=this[za("0x12e")](r,za("0xcd"));for(const{suggestion:t,meta:e}of l){const n=this._model[za("0x107")](a,c);if(e[za("0x8")]&&(this[za("0x28")]||!e[za("0xa")]&&!e[za("0xbd")]))if(t.isMultiRange){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0xcf")]()){if(o[za("0x3f")](n,!0))return t;n[za("0x3f")](o)||(e=!1)}e&&t[za("0xc6")]()}else{const e=t[za("0xaa")]();if(e[za("0x3f")](n,!0))return t;if(!tc(t,o)){n[za("0x3f")](e)?t[za("0x96")]():e.containsPosition(a)?a=e[za("0xd9")]:e[za("0x103")](c)&&(c=e[za("0x118")]);continue}a=a[za("0xfc")](e.start)?a:e[za("0x118")],c=c[za("0xdf")](e[za("0xd9")])?c:e.end,o=Object[za("0x6b")]({},t[za("0xb3")]),x?e[za("0x118")][za("0xfc")](x[za("0xaa")]()[za("0x118")])?(x[za("0x96")](),x=t):t[za("0x96")]():x=t}}if(x)return this[za("0xbb")](x,this[za("0xe3")][za("0x107")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0xe3")][za("0x107")](a,c),i=s.id,x=n?za("0x13")+n:za("0xcd"),l=this[za("0x21")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xc5")](x,t,i,r),l}}[za("0x73")](t,n=za("0xe0"),o={}){const s=this.editor[za("0x34")][za("0x60")]("Users").me,r=t[za("0xe2")]((t=>new i.LiveRange(t[za("0x118")],t[za("0xd9")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0x12e")](r,za("0x4b")))e[za("0x8")]&&!e.isNextTo&&x[za("0xcb")](t);for(const e of x)if(e[za("0xf1")]){const s=e[za("0xcf")]();if((!e[za("0xb3")]||!e.attributes.skipNestingCheck)&&s[za("0x13a")]((t=>r.some((e=>e.containsRange(t,!0)))))&&e[za("0xc6")](),r[za("0x13a")]((t=>s[za("0x79")]((e=>e[za("0x3f")](t,!0)))))){const e=this[za("0xdc")][za("0x8c")]("deletion",n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0xaa")]();if(r[za("0x79")]((e=>e.containsRange(t,!0)))&&e[za("0xc6")](),r.every((e=>t[za("0x3f")](e,!0)))){const t=this._suggestionFactory[za("0x8c")]("deletion",n,za("0x42"));return this[za("0x6f")]((()=>t(r,null,o))),null}}const a=this[za("0xdc")][za("0x8c")](za("0xcd"),n,"join");let c=null;for(const t of this[za("0x2c")]())if(t[za("0x6e")].id==s.id&&t[za("0x94")]&&za("0xcd")==t[za("0x62")]&&t[za("0x8b")]==n&&tc(t,o)&&(a(t.getRanges(),r)||a(r,t[za("0xcf")]())))if(c){if(t[za("0x43")]&&t[za("0x43")][za("0x37")])continue;for(const e of t[za("0xcf")]())c[za("0x1e")](e)||c[za("0xc8")](e);t[za("0x96")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[za("0x12e")](r,za("0xcd")))e[za("0x8")]&&(this[za("0x28")]||!e.containsRangeInObject&&!e[za("0xbd")])&&tc(t,o)&&x[za("0xcb")](t);for(const t of x){const e=t[za("0xcf")]();if((!o||!o[za("0x11b")])&&r[za("0x13a")]((t=>e.some((e=>e[za("0x3f")](t,!0))))))return t;(!t.attributes||!t.attributes[za("0x11b")])&&e[za("0x13a")]((t=>r[za("0x79")]((e=>e[za("0x3f")](t,!0)))))&&t[za("0xc6")]()}const l=(0,e.uid)(),d=s.id,u=za("0x13")+n,g=this[za("0x21")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t.isCollapsed||"$graveyard"==t[za("0x71")].rootName||this._addSuggestionMarker(u,l,d,t,Zo[za("0xf3")]());return g}[za("0xbb")](t,e){const n=t.getFirstMarker();this[za("0xe3")].change((t=>{t[za("0xe4")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[za("0x98")][za("0x136")][za("0x60")](za("0x95"));this[za("0x18")][za("0x10a")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x18")][za("0x2a")](e);o[za("0xfb")]("isRemovable"),o[za("0x7e")]=!1,t[za("0x43")]=o}[za("0x138")](t,n,o,s){if(t[za("0x62")]!=n||t[za("0x8b")]!=o||t[za("0xc3")].id!=s)throw this.editor[za("0x111")](za("0xc1")),new e.CKEditorError(za("0xc1"),this)}[za("0x32")](t,n){const o=t[za("0xaa")]();if(n[za("0x4e")](o))t[za("0x96")]();else if(o.containsRange(n)){const s=this._model[za("0x5")](n[za("0x118")][za("0x123")],za("0xd9"));this[za("0xbb")](t,this[za("0xe3")].createRange(o.start,s));const r=(0,e.uid)(),i=t[za("0xc3")].id,x=t[za("0x62")]+":"+t[za("0x8b")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x2")],attributes:t[za("0xb3")]});const a=this[za("0xe3")][za("0x5")](n[za("0xd9")][za("0xe5")],"after"),c=this._model[za("0x107")](a,o[za("0xd9")]);this[za("0xc5")](x,r,i,c)}else if(o[za("0x103")](n[za("0x118")])){const e=this[za("0xe3")][za("0x5")](n[za("0x118")][za("0x123")],za("0xd9"));this[za("0xbb")](t,this[za("0xe3")].createRange(o.start,e))}else{const e=this[za("0xe3")].createPositionAt(n[za("0xd9")][za("0xe5")],"after");this[za("0xbb")](t,this._model[za("0x107")](e,o[za("0xd9")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[za("0x12e")](t,za("0x4b"))){if(!n.isOwn)continue;const o=e[za("0xcf")]();for(const e of o)if(!t[za("0xd5")](e).length)return!0}return!1}_getAuthorFromId(t){const n=this[za("0x98")][za("0x34")][za("0x60")](za("0x116"))[za("0xe8")](t);if(!n)throw new e.CKEditorError(za("0x44"),this);return n}[za("0x31")](t){const e=this.editor[za("0x34")][za("0x60")]("Users"),n=(0,r.hashObject)(za("0xa1")+t);return e[za("0xe8")](n)||e[za("0x91")]({id:n,name:t})}[za("0x10c")](t,e,n,o,s){const r=this[za("0x64")](o),i=this[za("0xdc")][za("0x8f")](t,e,n,r,s,(t=>this[za("0x29")](n,{attributes:t})));return this.listenTo(i,"accept",(()=>{this[za("0x29")](n,{state:za("0x17")})}),{priority:za("0xee")}),this[za("0x80")](i,za("0xc6"),(()=>{this._updateSuggestionData(n,{state:za("0xff")})}),{priority:za("0xee")}),this[za("0x120")][za("0x3e")](n,i),this[za("0x9b")][za("0x3e")](i,"notReady"),i}[za("0x128")](t){const e=t[za("0xea")](":");return{group:e[0],type:e[1],subType:e[za("0x37")]>=5?e[2]:null,id:e[za("0x37")]<5?e[2]:e[3],authorId:e[za("0x37")]<5?e[3]:e[4],markerCount:6==e[za("0x37")]?e[5]:null}}[za("0xf8")](t,n,o){const s=t.getFirstRange(),r=s.start,i=s[za("0xd9")];this[za("0xbb")](t,this[za("0xe3")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xc3")].id,c=t[za("0x62")]+(t.subType?":"+t[za("0x8b")]:"");this[za("0x21")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0xb3")],data:t[za("0x2")]}),za("0xdd")==t[za("0x62")]&&(o=this._model[za("0x52")](o.parent)),this[za("0xc5")](c,x,a,this[za("0xe3")][za("0x107")](o,i))}[za("0x12e")](t,e=null){const n=[],o=this[za("0x98")].plugins[za("0x60")](za("0x116")).me;Array.isArray(t)||(t=[t]);for(const s of this[za("0x2c")]()){if(!s.isInContent)continue;if(e&&s[za("0x62")]!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i[za("0x118")][za("0x4e")](e[za("0xd9")])||i[za("0xd9")][za("0x4e")](e.start);if(t||i[za("0x83")](e)){const x=i[za("0x3f")](e)&&Ka(this._model[za("0x7c")],e[za("0x118")],i),a=e[za("0x3f")](i)&&Ka(this[za("0xe3")][za("0x7c")],i[za("0x118")],e);n[za("0x22")]({suggestion:s,meta:{isOwn:o==s[za("0x6e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[za("0xe3")].change((r=>{let i=za("0x27")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x7d")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x8e")](t){const e=t.previous,n=t[za("0xb0")];t[za("0x9e")]=null,null!=e&&(e[za("0xb0")]=null),t.next=null,null!=n&&(n[za("0x9e")]=null),"ready"==this[za("0x9b")][za("0x60")](t)&&(this[za("0x9b")][za("0x3e")](t,za("0x36")),this.fire(za("0xe1"),t,e,n))}[za("0x21")](t){const n=t.id,o=this[za("0xf")](t);if(this._adapter&&this[za("0x102")][za("0x26")]){const s=this.editor.plugins[za("0x60")](za("0x113")),r=o.hasComments,i=o.subType?o.type+":"+o[za("0x8b")]:o[za("0x62")],x=this[za("0x98")][za("0x88")],a=s[za("0xcb")](Yo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[za("0xb2")]||null,attributes:o[za("0xb3")]};this[za("0x102")].addSuggestion(c)[za("0x65")]((t=>{o._saved=!0,s[za("0xcc")](a),t&&t[za("0xb")]&&(this._suggestions[za("0x60")](n)[za("0xb")]=t[za("0xb")])}))[za("0x11")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor[za("0xc0")].enqueueChange({isUndoable:!1},(()=>{o[za("0xc6")]()})),o[za("0x3a")](),this._suggestions.delete(o.id),this[za("0x9b")][za("0x35")](o),t}))}return o}[za("0x29")](t,e){const n=this[za("0x98")].plugins.get("PendingActions"),o=this.getSuggestion(t);if(this[za("0x102")]&&this._adapter[za("0x3d")])if(o[za("0x41")]){const o=n[za("0xcb")](Yo(this.editor[za("0x88")],za("0xa2")));this[za("0x102")][za("0x3d")](t,e).then((()=>{n[za("0xcc")](o)}))}else o.on(za("0x57"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[za("0x102")][za("0xd4")])throw new e.CKEditorError(za("0x38"),this);return this[za("0x102")][za("0xd4")](t)}[za("0xab")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x128")](t),r=this[za("0x120")].get(e)||this[za("0x10c")](n,o,e,s,{});switch(this._checkSuggestionCorrectness(r,n,o,s),this._suggestionState.get(r)){case za("0x121"):this[za("0xc7")](e)[za("0x65")]((t=>{let n=Promise[za("0xba")]();t[za("0x30")]&&(n=this[za("0x18")][za("0x25")]({channelId:this.editor[za("0x136")].get(za("0x95")),threadId:e})),n[za("0x65")]((()=>{this[za("0xf")](t)[za("0x41")]=!0}))})),this[za("0x9b")][za("0x3e")](r,za("0x2b"));break;case"removed":this._updateSuggestionData(e,{state:za("0x69")});case za("0x5f"):this[za("0x9b")][za("0x3e")](r,za("0x1d")),this.fire(za("0x49"),r);break;case za("0x1d"):this[za("0xce")](za("0x8d"),r)}return r[za("0x70")](t),r}[za("0xf5")](t){const e=Array[za("0x6a")](t)[za("0x9c")]((t=>!t[za("0xf1")])),n=this[za("0x2c")]({skipNotAttached:!0}).filter((t=>!t.isMultiRange)),o=n.filter((e=>!t[za("0x48")](e))),s=new Map(n[za("0xe2")]((t=>[t,this[za("0xdc")][za("0x8c")](t.type,t.subType,za("0x134"))]))),r=new Map(n[za("0xe2")]((t=>[t,t[za("0xaa")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x37")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[za("0x37")];t++){const n=e[t];!x[za("0x48")](n)&&n[za("0x9e")]&&(n[za("0x9e")].next===n&&(n[za("0x9e")][za("0xb0")]=null),n.previous=null),!i[za("0x48")](n)&&n[za("0xb0")]&&(n.next[za("0x9e")]===n&&(n.next[za("0x9e")]=null),n.next=null)}function a(t,e,n){for(let o=n;o<e[za("0x37")];o++){const n=c(t,e[o]);n&&(n[0][za("0xb0")]=n[1],n[1][za("0x9e")]=n[0],i[za("0xcb")](n[0]),x[za("0xcb")](n[1]))}}function c(t,e){if(t[za("0x6e")].id!==e[za("0x6e")].id)return null;const n=s[za("0x60")](t)(t,e,r[za("0x60")](t),r[za("0x60")](e));return n&&s[za("0x60")](e)(t,e,r[za("0x60")](t),r[za("0x60")](e))?n[1][za("0x43")]&&n[1][za("0x43")][za("0x37")]?null:n:null}}[za("0x46")](t){const e=Array[za("0x6a")](t),n=this[za("0x2c")]({skipNotAttached:!0}),o=n[za("0x9c")]((e=>!t[za("0x48")](e))),s=new Map(e.map((t=>[t,this[za("0xdc")][za("0x8c")](t[za("0x62")],t[za("0x8b")],za("0x126"))]))),r=new Map(n[za("0xe2")]((t=>[t,t[za("0xcf")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x37")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x37")];i++){const o=n[i];if(o[za("0x62")]!==e[za("0x62")]||o.author.id!==e.author.id||o[za("0x8b")]!==e[za("0x8b")])continue;if(!Ya(e,o))continue;const x=s[za("0x60")](e),a=r[za("0x60")](e),c=r[za("0x60")](o),l=e[za("0x43")]&&e[za("0x43")][za("0x37")],d=o.commentThread&&o[za("0x43")][za("0x37")];if(!l&&x(c,a))return t[za("0x7")](o,e),r.delete(e),!0;if(!d&&x(a,c))return t[za("0x7")](e,o),r[za("0x35")](o),!0}return!1}}[za("0x7")](t,e){if(t[za("0xf1")])for(const n of e[za("0xcf")]())t.addRange(n);else{const n=e.getFirstRange().end;this[za("0xbb")](t,this[za("0xe3")].createRange(t.getFirstRange()[za("0x118")],n))}e[za("0x96")]()}}class Va{constructor(t){this._editor=t,this[za("0xe3")]=t[za("0xc0")],this[za("0xde")]=new Map,this[za("0x77")]=new Map,this[za("0x129")]()}[za("0x8f")](t,e,n,o,s,r){return new Zo(this[za("0xe3")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x8c")](t,e,"accept")(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks.set(s,o)}[za("0x8c")](t,e,n){const o=t+":"+e+":"+n;return this[za("0xde")].get(o)||this[za("0x77")].get(t+":"+n)}[za("0x129")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t.start.isBefore(e[za("0x118")])?1:-1)),this[za("0xe3")][za("0x131")]((e=>{for(const n of t){let t;t=n[za("0xd9")].isAtEnd&&n[za("0xd9")][za("0xe5")]==n.start[za("0x7b")]?e[za("0x11f")](n[za("0x118")][za("0x7b")],"on"):e.createSelection(n),this._model.deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0xe3")][za("0x131")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xe2")]((t=>(qa(t)&&(t=this[za("0xe3")][za("0x107")](t.end)),t)))[za("0x9c")]((t=>za("0xa7")!==t[za("0x71")][za("0xc")]));if(r.length<1)return;const x=Array[za("0x6a")](this[za("0xe3")].document.selection.getRanges())[za("0xe2")]((t=>i.LiveRange[za("0x45")](t)));n.setSelection(r);for(const t of this[za("0xe9")].commands[za("0x13b")]())t[za("0x11d")]();s.push({forceDefaultExecution:!0}),this[za("0xe9")].execute(o,...s);const a=x[za("0x9c")]((t=>za("0xa7")!=t[za("0x71")][za("0xc")]));a[za("0x37")]>0&&n[za("0x7a")](a);for(const t of x)t[za("0xd6")]()}))},o=(t,e)=>1==t[za("0x37")]&&1==e.length&&t[0].end[za("0x4e")](e[0][za("0x118")]),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0xe3")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x77")][za("0x3e")]("insertion:accept",t),this._defaultCallbacks[za("0x3e")](za("0x1f"),e),this[za("0x77")].set(za("0x132"),o),this._defaultCallbacks[za("0x3e")]("insertion:chain",s),this._defaultCallbacks[za("0x3e")](za("0x76"),e),this[za("0x77")].set("deletion:discard",t),this[za("0x77")][za("0x3e")](za("0x56"),o),this[za("0x77")][za("0x3e")](za("0x105"),s),this[za("0x77")].set(za("0x89"),n),this[za("0x77")].set(za("0xf6"),t),this._defaultCallbacks[za("0x3e")](za("0x53"),o),this[za("0x77")].set(za("0x1b"),t),this[za("0x77")][za("0x3e")](za("0x68"),n),this._defaultCallbacks[za("0x3e")](za("0x3b"),t),this[za("0x77")][za("0x3e")](za("0xd3"),o),this._defaultCallbacks[za("0x3e")](za("0x115"),t)}}function Ka(t,e,n){for(const o of e[za("0xe5")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0x71")]==o)return!1;if(!n[za("0xb4")](o))return!1;if(t[za("0x90")](o)||t[za("0x10d")](o))return!0}return!1}function qa(t){return t[za("0xd9")][za("0xe5")]==t[za("0x118")][za("0x7b")]&&t.end[za("0x9f")]}function $a(t,e,n,o){const s=t=>!t[za("0xd2")].is(za("0x10e"))&&!o[za("0x90")](t[za("0xd2")]),r=t.start[za("0x7f")](s),i=t.end[za("0x7f")](s,{direction:za("0xc9")});return!(t[za("0x118")][za("0x4e")](r)&&t[za("0xd9")].isEqual(i)||(r[za("0xfc")](i)?n[za("0xe4")](e,{range:n[za("0x107")](r,i)}):n.removeMarker(e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x118")][za("0x7b")];return e&&e.is(za("0xa9"))}function Qa(t,e){const n=e[za("0x7c")][za("0x90")](t)||e.schema.isSelectable(t);return e[za("0x107")](e.createPositionAt(t,za("0xeb")),n?e[za("0x51")](t):e[za("0x5")](t,za("0xd9")))}function Za(t,e,n,o,s){if(!Ya(t,e))return!1;if(n.end[za("0x4e")](o.start))return!0;if(t.type!=e[za("0x62")])return!1;if(!n[za("0xd9")].isTouching(o[za("0x118")]))return!1;const r=s.createRange(n[za("0xd9")],o.start).getWalker();for(const t of r)if([za("0x84"),"elementEnd"][za("0x92")](t[za("0x62")])&&s[za("0x7c")][za("0x10d")](t.item))return!1;return!0}function Ya(t,e){return!(!t[za("0x2e")]||!e[za("0x2e")])&&Go(t[za("0xb3")],e.attributes)}function tc(t,e){const n=ec(t[za("0xb3")]),o=ec(e);if(!t[za("0x2e")])return!1;for(const t of Object[za("0xa6")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0x6b")]({},t);return delete e[za("0x11b")],delete e.tablePasteChainId,e}const nc=["commands","_setPendingAction","stopListening","listenTo","acceptSuggestion","unbind","isDirty","bind","getRanges","view","get","discardSuggestion","model","_discardCommand","_removePendingAction","canAccept","execute","_pendingAction","_acceptCommand","canDiscard","isEnabled","locale","plugins","PendingActions","canEditAt","_editor","destroy","commentThreadController"];var oc,sc;oc=nc,sc=174,function(t){for(;--t;)oc.push(oc.shift())}(++sc);const rc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[rc("0x6")]=e,this[rc("0x3")]=n,this[rc("0x15")]=o,this[rc("0x13")]=t,this[rc("0xc")]=t[rc("0x16")][rc("0x4")]("acceptSuggestion"),this[rc("0x7")]=t.commands[rc("0x4")](rc("0x5")),this[rc("0x3")].bind(rc("0xe")).to(this[rc("0xc")],this[rc("0x7")],((t,e)=>t||e)),this[rc("0x3")][rc("0x1")](rc("0x9")).to(this[rc("0xc")],rc("0xe"),(t=>t&&this[rc("0x13")][rc("0x6")][rc("0x12")](e[rc("0x2")]()))),this[rc("0x3")].bind(rc("0xd")).to(this._discardCommand,rc("0xe"),(t=>t&&this[rc("0x13")].model[rc("0x12")](e[rc("0x2")]()))),this[rc("0xb")]=null,n.isDirty&&this[rc("0x17")](),this[rc("0x19")](n,"acceptSuggestion",(()=>this[rc("0x1a")]())),this[rc("0x19")](n,rc("0x5"),(()=>this[rc("0x5")]())),this[rc("0x19")](n,"change:isDirty",(()=>{n[rc("0x0")]?this[rc("0x17")]():this._removePendingAction()}))}[rc("0x1a")](){this[rc("0xc")][rc("0xa")](this.model.id)}discardSuggestion(){this[rc("0x7")][rc("0xa")](this[rc("0x6")].id)}destroy(){this[rc("0x3")][rc("0x1b")](rc("0xe")),this[rc("0x3")].unbind("canAccept"),this[rc("0x3")][rc("0x1b")](rc("0xd")),this[rc("0x18")](),this[rc("0x15")][rc("0x14")](),this[rc("0xb")]&&this[rc("0x8")]()}[rc("0x17")](){const t=Yo(this._editor[rc("0xf")],"PENDING_ACTION_SUGGESTION");this[rc("0xb")]=this[rc("0x13")][rc("0x10")][rc("0x4")](rc("0x11")).add(t)}[rc("0x8")](){null!==this[rc("0xb")]&&this[rc("0x13")][rc("0x10")][rc("0x4")]("PendingActions").remove(this._pendingAction),this[rc("0xb")]=null}}const xc=["editorConfig","isEnabled","canDiscard","_config","addComment","_model","canAccept","isActive","submit","element","descriptionParts","isReadOnly","destroy","value","hasDirtyComment","focus","cancel","_createCommentViews","commentInputView","bind","_createCommentThreadInputView","editor","updateComment","setData","length","commentThreadInputView","commentThread","disabledSubmit","authoredAt","CommentView","fire","locale","isDirty","_localUser","set","commentsListView"];var ac,cc;ac=xc,cc=169,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends s.View{constructor(t,e,n,o){super(t),this[lc("0xa")]=null,this[lc("0x0")]=null,this[lc("0x9")](lc("0x12"),!1),this.set(lc("0x3"),e[lc("0x3")]),this.bind(lc("0x3")).to(e),this.set(lc("0x15"),[]),this.set(lc("0x7"),!1),this[lc("0x9")](lc("0xc"),!1),this[lc("0x9")](lc("0x11"),!1),this.set(lc("0xd"),!1),this[lc("0x10")]=e,this[lc("0x8")]=n,this._config=o,o.disableComments?this[lc("0x9")]("length",1):this[lc("0x1c")]()}focus(){this[lc("0x14")].focus()}destroy(){this[lc("0xa")]&&this.commentsListView.destroy(),this[lc("0x0")]&&this[lc("0x0")][lc("0x17")](),super.destroy()}[lc("0x1c")](){const{CommentsListView:t}=this[lc("0xe")];this[lc("0xa")]=new t(this[lc("0x6")],this[lc("0x10")][lc("0x1")],Object.assign({CommentView:this._config[lc("0x4")]},this[lc("0xe")])),this[lc("0xa")].delegate("removeComment").to(this),this[lc("0xa")].delegate(lc("0x21")).to(this),this[lc("0xa")][lc("0x1e")](lc("0x12")).to(this),this[lc("0x9")](lc("0x23"),this[lc("0xa")][lc("0x23")]+1),this[lc("0x1e")](lc("0x23")).to(this[lc("0xa")],lc("0x23"),(t=>t+1)),this.commentThreadInputView=this[lc("0x1f")](),this.on("removeComment",(()=>this[lc("0x1a")]())),this[lc("0x1e")](lc("0x7")).to(this.commentsListView,lc("0x19"),this.commentThreadInputView[lc("0x1d")],lc("0x18"),((t,e)=>t||!!e))}[lc("0x1f")](){const{CommentThreadInputView:t}=this[lc("0xe")],e=new t(this[lc("0x6")],this._localUser,this[lc("0xe")][lc("0xb")]),n=e[lc("0x1d")];return e[lc("0x1e")]("showInput").to(this,lc("0x12"),this[lc("0x10")].commentThread,lc("0x16"),n,"value",((t,e,n)=>!!n||t&&!e)),n.on(lc("0x13"),((t,e)=>{this[lc("0x5")](lc("0xf"),e),n[lc("0x20")][lc("0x22")]("")})),n.on(lc("0x1b"),(()=>this[lc("0x1a")]())),n[lc("0x1e")](lc("0x2")).to(this[lc("0x10")][lc("0x1")],"isReadOnly"),e}}const uc=["isExternal","commentThread","ck-suggestion-","</p>","commentsListView","_config","source","ck-annotation__info-name","canAccept","_descriptionElement","ck-suggestion__user","editorDestroyed","importWord","EXTERNAL_AVATAR","children","_model","ck-suggestion__info-name","ck-suggestion-wrapper","ck-suggestion-wrapper--active","setTemplate","bind","change:description","check","descriptionParts","type","delegate","ck-annotation__info","ck-suggestion--disabled-comments","description",".ck-annotation__content-wrapper","value","author","color","EXTERNAL_IMPORT_WORD_SUGGESTION",'<span class="ck-suggestion-color" style="background-color: ',"acceptSuggestion","push","creator","name","ck-annotation","_createButton","authoredAt","innerHTML","ck-annotation__user","getExternalSuggestionNote","getUserViewNotificationText","ck-suggestion__actions","ck-annotation__main","ck-comment__external",'<span class="ck-suggestion-type">',"commentThreadInputView","Discard suggestion","set","getTemplate",'" title="',"extendTemplate","userView",'"></span>',"ck-suggestion--accept","ck-annotation__content-wrapper","ck-suggestion","ck-annotation__info-time","render","bindTemplate","formatDateTime","attributes","cancel","ck-suggestion--discard","isEnabled","join","disableComments","editorReady","Accept suggestion","execute","span","@external","locale","div","EXTERNAL_SUGGESTION","ck-comment__info-time","</span>","EXTERNAL_IMPORT_WORD_AVATAR","<p>","time","acceptButton"];var gc,mc;gc=uc,mc=496,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends dc{constructor(e,n,o,s){super(e,n,o,s),this[fc("0x42")]("type",""),this[fc("0x22")](fc("0x26")).to(this,fc("0x25"),(t=>t&&t[0]?t[0][fc("0x26")]:"")),this[fc("0x22")](fc("0x2a")).to(this,"descriptionParts",this,"isActive",((t,e)=>{let n="";for(const e of t)n+=fc("0xb")+pc(e.content,e[fc("0x2e")])+fc("0x11");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[fc("0x17")]=null,this[fc("0xd")]=this[fc("0x36")](Yo(e,fc("0x1")),t.icons[fc("0x24")],fc("0x48"),fc("0x31"),"sw"),this.acceptButton[fc("0x22")](fc("0x52")).to(this,fc("0x16")),this.discardButton=this._createButton(Yo(e,fc("0x41")),t.icons[fc("0x50")],fc("0x51"),"discardSuggestion","sw"),this.discardButton[fc("0x22")](fc("0x52")).to(this,"canDiscard"),this[fc("0x46")]=new r.UserView(e,this[fc("0x1d")][fc("0x2d")],this[fc("0x3b")]()),this[fc("0x46")][fc("0x45")]({attributes:{class:[fc("0x18"),fc("0x39")]}}),this[fc("0x21")](this[fc("0x43")]())}[fc("0x43")](){const t=this[fc("0x4d")],e=[{tag:fc("0x6"),attributes:{class:["ck-suggestion__info",fc("0x28")]},children:[{tag:fc("0x3"),children:[{text:this[fc("0x46")][fc("0x34")]}],attributes:{class:[fc("0x1e"),fc("0x15")]}},{tag:fc("0xc"),attributes:{datetime:t.to("authoredAt"),class:[fc("0x8"),fc("0x4b")]},children:[{text:t.to(fc("0x37"),(t=>this[fc("0x13")][fc("0x4e")](t)))}]}]},{tag:fc("0x6"),attributes:{class:[fc("0x3c"),"ck-annotation__actions"]},children:[this[fc("0xd")],this.discardButton]},{tag:fc("0x6"),attributes:{class:[fc("0x49")]}}];this._model[fc("0xe")]&&e[fc("0x32")]({tag:fc("0x6"),attributes:{class:[fc("0x3e")]},children:[{text:this[fc("0x3a")]()}]});const n={tag:fc("0x6"),attributes:{class:[fc("0x1f"),t.if("isActive",fc("0x20")),t.to(fc("0x26"),(t=>fc("0x10")+t)),this._config[fc("0x54")]&&fc("0x29")],"data-suggestion-id":this[fc("0x1d")].id,"data-thread-id":this._model[fc("0xf")].id,"data-author-id":this._model.author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[fc("0x4a"),fc("0x35")]},children:[this.userView,{tag:"div",attributes:{class:["ck-suggestion__main",fc("0x3d")]},children:e}]}]};return this[fc("0x12")]&&this[fc("0x40")]&&(n[fc("0x1c")][fc("0x32")](this[fc("0x12")],this[fc("0x40")]),this.commentsListView[fc("0x27")](fc("0x0")).to(this),this.commentsListView.delegate(fc("0x19")).to(this),this[fc("0x40")][fc("0x27")](fc("0x0")).to(this),this[fc("0x40")][fc("0x27")](fc("0x19")).to(this)),n}[fc("0x4c")](){super[fc("0x4c")](),this[fc("0x17")]=this.element.querySelector(fc("0x2b")),this[fc("0x17")][fc("0x38")]=this.description,this.on(fc("0x23"),((t,e,n)=>{this._descriptionElement[fc("0x38")]=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this[fc("0x5")]);return i[fc("0x42")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i.extendTemplate({attributes:{class:n}}),i.on(fc("0x2"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x3a")](){return fc("0x1a")===this[fc("0x1d")][fc("0x4f")][fc("0x4")][fc("0x14")]?Yo(this.locale,fc("0x2f")):Yo(this[fc("0x5")],fc("0x7"))}[fc("0x3b")](){return this[fc("0x1d")][fc("0xe")]?fc("0x1a")===this[fc("0x1d")][fc("0x4f")][fc("0x4")][fc("0x14")]?Yo(this[fc("0x5")],fc("0xa"),this[fc("0x1d")].creator.name):Yo(this[fc("0x5")],fc("0x1b"),this[fc("0x1d")][fc("0x33")][fc("0x34")]):null}}function pc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?fc("0x3f")+bc(t)+fc("0x9"):bc(t)))[fc("0x53")](""),e&&(n+=fc("0x30")+e[fc("0x2c")]+fc("0x44")+e.title+fc("0x47")),n}function bc(t){const e=document.createElement(fc("0x3"));return e.innerText=t,e[fc("0x38")]}const Ec=["CommentsUI","innerView","length","set","execute","Annotations","isDirty","locale","actionView","from","addSourceCollector","_bindAnnotationToEditors","previous","isInContent","model","change:previous","commands","acceptSelectedSuggestions","add","_annotationViews","comments","CommentView","Accept all selected suggestions","head","suggestionLoaded","_suggestionToController","_descriptionFactory","type","bind","activeAnnotations","_updateController","toMany","createAnnotation","Accept all suggestions","remove","createCommentThreadController","arrowView","pluginName","acceptAllSuggestions","separator","switchbutton","view","init","suggestionChanged","define","getAllAdjacentSuggestions","Track changes","_handleControllerBuffer","plugins","CommentsRepository","trackChanges.disableComments","isMultiRange","activeMarkers","comments.maxThreadTotalWeight","getByInnerView","_viewToController","commandName","editor","buttonView","keys","Discard all suggestions","discardSelectedSuggestions","stopListening","destroy","editing","suggestion-","trackChanges","unbind","get","getSuggestion","getDescriptions","delete","_disableComments","focus","button","getMarkers","mainView","EditorAnnotations","Discard all selected suggestions","reduce","isOn","lowest","refreshSelectedViews","comments.editorConfig","listenTo","_destroyController","push","isEnabled","source","_refreshActiveMarkers","filter","trackChanges.SuggestionThreadView","value","TrackChangesEditing","_createUIButton","comments.maxCommentsWhenCollapsed","acceptButton","has","getFirstRange","change:activeAnnotations","requires","hasSuggestion","_handleSuggestionControllerDelayed","componentFactory","descriptionParts","size"];var _c,Tc;_c=Ec,Tc=488,function(t){for(;--t;)_c.push(_c.shift())}(++Tc);const Cc=function(t,e){return Ec[t-=0]};class yc extends t.Plugin{static get[Cc("0x24")](){return[Wa,r.Users,Cc("0x5b"),Cc("0x2f"),Cc("0xd")]}static get[Cc("0x4f")](){return"TrackChangesUI"}constructor(t){super(t),this[Cc("0x43")]=new Map,this[Cc("0x61")]=new Map,this[Cc("0x3d")]=new Map,this._handleControllerBuffer=new Map;const e=this[Cc("0x63")].config;e.define(Cc("0x1b"),hc),e[Cc("0x56")](Cc("0x5c"),!1),this[Cc("0x8")]=e[Cc("0x4")]("trackChanges.disableComments")}[Cc("0x26")](t,e){0===this[Cc("0x59")][Cc("0x29")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Cc("0x43")][Cc("0x21")](t);n||e?n&&e&&this[Cc("0x15")](t):this._initializeController(t)}this[Cc("0x63")].plugins[Cc("0x4")](Cc("0xd"))[Cc("0x12")](),this[Cc("0x19")](),this[Cc("0x59")].clear()}),10),this[Cc("0x59")].set(t,e)}[Cc("0x54")](){const t=this[Cc("0x63")],e=t[Cc("0x5a")][Cc("0x4")](Cc("0x1d")),n=t.plugins.get(Cc("0x2f")),o=t[Cc("0x5a")][Cc("0x4")](Cc("0xd")),s=t[Cc("0x5a")][Cc("0x4")](Cc("0x5b"));t.ui[Cc("0x27")].add(Cc("0x2"),(t=>this[Cc("0x1e")](t))),o[Cc("0x34")]((()=>{const t=[];for(const[e,n]of Array[Cc("0x33")](this._suggestionToController)){const o=e[Cc("0x57")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Cc("0x5d")]){s[Cc("0x16")](...t.getRanges());continue}const e=t[Cc("0x22")]();if(s[Cc("0x2c")]>0){const t=s[0].getJoined(e);if(t){s[0]=t;continue}}s.push(e)}t[Cc("0x16")]([n.view,s])}return t})),this[Cc("0x14")](e,Cc("0x42"),((t,e)=>{this[Cc("0x14")](e,Cc("0x39"),((t,n,o,s)=>{e.isInContent&&(null==o?(this[Cc("0x48")](s.head),this[Cc("0x26")](e,!1)):(this[Cc("0x48")](o[Cc("0x41")]),this[Cc("0x26")](e,!0)))})),null===e[Cc("0x36")]?this._handleSuggestionControllerDelayed(e,!1):this._updateController(e[Cc("0x41")])})),this[Cc("0x14")](e,"suggestionUnloaded",((t,e,n)=>{this[Cc("0x68")](e,Cc("0x39")),this[Cc("0x59")][Cc("0x7")](e);const o=n?n[Cc("0x41")]:e,s=this[Cc("0x43")][Cc("0x4")](o);null!==n&&this._updateController(o),null===n&&s&&this[Cc("0x15")](e)})),this.listenTo(e,Cc("0x55"),((t,e)=>{this[Cc("0x48")](e)})),this[Cc("0x14")](n,Cc("0x23"),(()=>{this._refreshActiveMarkers()})),this[Cc("0x14")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x25")](n))return;const s=e[Cc("0x5")](n);this[Cc("0x43")][Cc("0x4")](s).view.focus()}),{priority:Cc("0x11")})}[Cc("0x19")](){const t=this.editor[Cc("0x5a")][Cc("0x4")](Cc("0x2f")),e=this[Cc("0x63")][Cc("0x5a")][Cc("0x4")]("TrackChangesEditing"),n=Array[Cc("0x33")](t[Cc("0x47")],(t=>t[Cc("0x2b")]))[Cc("0x1a")]((t=>this[Cc("0x61")][Cc("0x21")](t))),o=[];for(const t of n){const e=this[Cc("0x61")][Cc("0x4")](t)[Cc("0x38")][Cc("0x57")]();o[Cc("0x16")](...e[Cc("0xf")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Cc("0x5e")]=o}[Cc("0x1e")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Cc("0x3a")][Cc("0x4")]("trackChanges"),r=Yo(t,Cc("0x58"));n[Cc("0x64")][Cc("0x2d")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x64")].bind(Cc("0x10")).to(o,Cc("0x1c")),n.buttonView.on(Cc("0x2e"),(()=>{o.execute(),this.editor[Cc("0x0")][Cc("0x53")][Cc("0x9")]()}));const i=new e.Collection,x=[{type:Cc("0x52"),model:{withText:!0,label:r,commandName:Cc("0x2")}},{type:Cc("0x51")},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x4b")),commandName:Cc("0x50")}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x40")),commandName:Cc("0x3b")}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0x66")),commandName:"discardAllSuggestions"}},{type:Cc("0xa"),model:{withText:!0,label:Yo(t,Cc("0xe")),commandName:Cc("0x67")}}];for(const t of x){let e={type:"separator"};if(t[Cc("0x38")]){const n=new s.Model(t.model),o=this[Cc("0x63")][Cc("0x3a")].get(n[Cc("0x62")]);n.bind(Cc("0x10"),Cc("0x17")).to(o,Cc("0x1c"),"isEnabled"),e={type:t[Cc("0x45")],model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x.filter((t=>null!=t[Cc("0x38")])).map((t=>this[Cc("0x63")][Cc("0x3a")].get(t[Cc("0x38")][Cc("0x62")]))),c=n[Cc("0x64")];return c[Cc("0x32")][Cc("0x3")](Cc("0x17")),c[Cc("0x4e")][Cc("0x3")](Cc("0x17")),c[Cc("0x32")].bind("isEnabled").to(o,Cc("0x17")),c[Cc("0x4e")][Cc("0x46")](Cc("0x17"))[Cc("0x49")](a,Cc("0x17"),((...t)=>t.some((t=>t)))),n.on(Cc("0x2e"),(t=>{this[Cc("0x63")][Cc("0x2e")](t[Cc("0x18")].commandName),this[Cc("0x63")][Cc("0x0")][Cc("0x53")].focus()})),n}_initializeController(t){const e=this[Cc("0x63")],n=e.config,o=e.plugins[Cc("0x4")](Cc("0x2f")),s=e.plugins[Cc("0x4")](Cc("0x5b")),i=e[Cc("0x5a")][Cc("0x4")]("EditorAnnotations"),x=e[Cc("0x5a")][Cc("0x4")](r.Users).me,a=n.get(Cc("0x2")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5a")].get(Cc("0x2a"));let d,u;this[Cc("0x3d")][Cc("0x21")](t.id)?(u=this._annotationViews.get(t.id),d=u[Cc("0xc")]):(d=new a(e[Cc("0x31")],t,x,{disableComments:this[Cc("0x8")],editorConfig:n.get(Cc("0x13")),maxCommentsWhenCollapsed:n[Cc("0x4")](Cc("0x1f")),maxThreadTotalWeight:n[Cc("0x4")](Cc("0x5f")),maxCommentCharsWhenCollapsed:n[Cc("0x4")]("comments.maxCommentCharsWhenCollapsed"),formatDateTime:(0,r.getDateTimeFormatter)(n[Cc("0x4")](Cc("0x31"))),CommentView:n[Cc("0x4")](Cc("0x3e"))[Cc("0x3f")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x20")].on(Cc("0x2e"),(()=>{e[Cc("0x0")].view[Cc("0x9")]()})),d.discardButton.on(Cc("0x2e"),(()=>{e.editing[Cc("0x53")].focus()})),u=o.createAnnotationView(this[Cc("0x63")].locale,d),u.bind(Cc("0x30")).to(d,Cc("0x30")),u.bind(Cc("0x2c")).to(d),u[Cc("0x46")](Cc("0x45")).to(d,Cc("0x45"),(t=>Cc("0x1")+t)),this._annotationViews[Cc("0x2d")](t.id,u));const g=s[Cc("0x4d")](t.commentThread,d),m=new ic(e,t,d,g),f=t[Cc("0x57")]()[Cc("0x1a")]((t=>t[Cc("0x37")]));d[Cc("0x28")]=e.plugins[Cc("0x4")](Cc("0x1d"))[Cc("0x44")].getDescriptions(f),this[Cc("0x43")][Cc("0x2d")](t,m),this[Cc("0x61")][Cc("0x2d")](d,m);const h=o[Cc("0x4a")]({view:u,target:()=>{const n=[],o=t[Cc("0x57")]()[Cc("0x1a")]((t=>t.isInContent));for(const t of o)n.push(...t[Cc("0xb")]());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x1")+m[Cc("0x53")][Cc("0x45")]});s[Cc("0x35")](d,h),o[Cc("0x3c")](h),i.registerAnnotation(h)}_destroyController(t){const e=this[Cc("0x63")][Cc("0x5a")].get(Cc("0x2f")),n=this._suggestionToController[Cc("0x4")](t),o=n[Cc("0x53")],s=e[Cc("0x60")](o);s&&e[Cc("0x4c")](s),this[Cc("0x43")][Cc("0x7")](t),this[Cc("0x61")].delete(o),n[Cc("0x69")]()}[Cc("0x48")](t){if(!t.isInContent||!this[Cc("0x43")][Cc("0x21")](t))return;const e=this[Cc("0x63")].plugins.get(Cc("0x1d")),n=this[Cc("0x43")].get(t),o=t.getAllAdjacentSuggestions();n[Cc("0x53")].descriptionParts=e[Cc("0x44")][Cc("0x6")](o)}[Cc("0x69")](){for(const t of this[Cc("0x43")][Cc("0x65")]())this[Cc("0x15")](t);for(const t of this[Cc("0x3d")].values())t[Cc("0xc")].destroy();super[Cc("0x69")]()}}var kc,Ac,vc=["addSuggestionData","TrackChanges","getSuggestion","plugins","editor","getSuggestions","get","pluginName","adapter"];kc=vc,Ac=417,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Ic extends t.Plugin{static get requires(){return[Wa,yc,"Comments"]}static get[Rc("0x4")](){return Rc("0x7")}set[Rc("0x5")](t){this.editor[Rc("0x0")].get(Wa)[Rc("0x5")]=t}get[Rc("0x5")](){return this.editor.plugins.get(Wa)[Rc("0x5")]}addSuggestion(t){return this[Rc("0x1")].plugins[Rc("0x3")](Wa)[Rc("0x6")](t)}[Rc("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x1")][Rc("0x0")][Rc("0x3")](Wa)[Rc("0x2")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this.editor[Rc("0x0")][Rc("0x3")](Wa)[Rc("0x8")](t)}}const Sc=["addSuggestionData","getDataWithDiscardedSuggestions","discardAllSuggestions","TrackChangesData","plugins","config","getRootNames","useAnonymousUser","create","Pagination","getUser","result","CommentsRepository","init","trackChangesData.editorCreator","getFullData","createElement","TrackChangesDataGetter","rootsAttributes","Users","reduce","document","data","users","function","createDocumentFragment","acceptAllSuggestions","trackChangesData","getSuggestions","destroy","end","TrackChangesEditing","requires","editor","model","push","editorCreator","getRootsAttributes","get","div","execute","name","appendChild"];var Lc,Nc;Lc=Sc,Nc=398,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const Mc=function(t,e){return Sc[t-=0]},wc=[Mc("0x29")];class Oc extends t.Plugin{static get[Mc("0x15")](){return[Wa]}static get pluginName(){return Mc("0x23")}[Mc("0x2")](){const t=this.editor;if(t[Mc("0x25")].define(Mc("0x3"),(e=>{const n=t[Mc("0x17")][Mc("0xa")][Mc("0x26")]()[Mc("0x9")](((t,e)=>(t[e]="",t)),{});return t.constructor[Mc("0x28")](n,e)})),Mc("0xd")!=typeof t[Mc("0x25")][Mc("0x1b")]("trackChangesData")[Mc("0x19")])throw new e.CKEditorError("track-changes-data-invalid-editor-creator")}getDataWithAcceptedSuggestions(t){return Dc(this[Mc("0x16")],!0,t)}[Mc("0x21")](t){return Dc(this[Mc("0x16")],!1,t)}}class Fc extends t.Plugin{static get pluginName(){return Mc("0x6")}constructor(t){super(t),this[Mc("0x0")]=Mc("0x13")}init(){this[Mc("0x16")][Mc("0x24")][Mc("0x1b")](Mc("0x1"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x16")][Mc("0x24")][Mc("0x1b")]("TrackChangesEditing")._adapter=null}}function Pc(t){return void 0!==t[Mc("0x1a")]}async function Dc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,wc);o.plugins[Mc("0x18")](Wa,Fc),o[Mc("0x7")]=Pc(t)?t.getRootsAttributes():void 0;const s=document[Mc("0xe")](),i=t[Mc("0x25")][Mc("0x1b")](Mc("0x10"))[Mc("0x19")],x=await i(o,(()=>function(t){const e=document[Mc("0x5")](Mc("0x1c"));return t[Mc("0x1f")](e),e}(s)));!function(t,e){const n=t[Mc("0x17")].document[Mc("0x26")]().reduce(((e,n)=>(e[n]=t[Mc("0xb")][Mc("0x1b")]({rootName:n}),e)),{}),o=t[Mc("0x24")][Mc("0x1b")]("Users")[Mc("0xc")].map((t=>({id:t.id,name:t[Mc("0x1e")]}))),s=t[Mc("0x24")][Mc("0x1b")](Mc("0x14"))[Mc("0x11")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Mc("0x1b")](Mc("0x8")),i=e[Mc("0x24")][Mc("0x1b")]("TrackChangesEditing");for(const t of o)r[Mc("0x2a")](t.id)||r.addUser(t);r.me||r[Mc("0x27")]();for(const t of s)i[Mc("0x20")](t);e[Mc("0xb")].set(n)}(t,x),x[Mc("0x1d")](Mc(e?"0xf":"0x22"));const a=Pc(x)?x[Mc("0x4")](n):x.data[Mc("0x1b")](n);return await x[Mc("0x12")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var e={417:(e,t,n)=>{e.exports=n(720)("./src/collaboration-core.js")},704:(e,t,n)=>{e.exports=n(79)("./src/core.js")},492:(e,t,n)=>{e.exports=n(79)("./src/engine.js")},331:(e,t,n)=>{e.exports=n(79)("./src/enter.js")},181:(e,t,n)=>{e.exports=n(79)("./src/typing.js")},273:(e,t,n)=>{e.exports=n(79)("./src/ui.js")},209:(e,t,n)=>{e.exports=n(79)("./src/utils.js")},995:(e,t,n)=>{e.exports=n(79)("./src/widget.js")},720:e=>{"use strict";e.exports=CKEditor5.collaborationDll},79:e=>{"use strict";e.exports=CKEditor5.dll}},t={};function n(o){var r=t[o];if(void 0!==r)return r.exports;var s=t[o]={exports:{}};return e[o](s,s.exports,n),s.exports}n.d=(e,t)=>{for(var o in t)n.o(t,o)&&!n.o(e,o)&&Object.defineProperty(e,o,{enumerable:!0,get:t[o]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>dc,TrackChanges:()=>Ic,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var e=n(704),t=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["affectsData","_enabledCommands","isEnabled","TrackChangesCommand","editor","value","refresh","_disableUnsupportedCommands","commands","clearForceDisabled","_isEnabledBasedOnSelection","_enableCommands","has","forceDisabled"];var c,l;c=a,l=120,function(e){for(;--e;)c.push(c.shift())}(++l);const d=function(e,t){return a[e-=0]};class u extends e.Command{constructor(e,t){super(e),this[d("0x7")]=t,this[d("0xb")]=!1,this[d("0xc")](),this[d("0x2")]=!1}refresh(){this[d("0x8")]=!0}execute(){this.value=!this[d("0xb")],this[d("0xb")]?this[d("0xd")]():this._enableCommands()}[d("0xd")](){for(const e of this[d("0xa")][d("0x0")][d("0x0")]())e[d("0x6")]&&!this._enabledCommands[d("0x4")](e)&&e[d("0x5")](d("0x9"))}[d("0x3")](){for(const e of this[d("0xa")].commands[d("0x0")]())e.affectsData&&!this[d("0x7")][d("0x4")](e)&&e[d("0x1")]("TrackChangesCommand")}}const g=["get","acceptSuggestion","_suggestions","track-changes-accept-suggestion-not-found","plugins","isEnabled","editor","canEditAt","refresh","getRanges","execute","TrackChangesEditing"];var m,f;m=g,f=378,function(e){for(;--e;)m.push(m.shift())}(++f);const h=function(e,t){return g[e-=0]};class b extends e.Command{constructor(e,t){super(e),this[h("0x8")]=t,this[h("0x2")](),this._isEnabledBasedOnSelection=!1}[h("0x2")](){this[h("0xb")]=!0}[h("0x4")](e){const n=this._suggestions[h("0x6")](e);if(!n)throw new t.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x0")].model[h("0x1")](o)&&this.editor[h("0xa")][h("0x6")](h("0x5"))[h("0x7")](n)}}const p=["get","editor","plugins","discardSuggestion","execute","track-changes-discard-suggestion-not-found","_isEnabledBasedOnSelection","canEditAt","TrackChangesEditing","getRanges","refresh","model","_suggestions"];var E,_;E=p,_=293,function(e){for(;--e;)E.push(E.shift())}(++_);const T=function(e,t){return p[e-=0]};class C extends e.Command{constructor(e,t){super(e),this[T("0x5")]=t,this[T("0x3")](),this[T("0xc")]=!1}[T("0x3")](){this.isEnabled=!0}[T("0xa")](e){const n=this[T("0x5")][T("0x6")](e);if(!n)throw new t.CKEditorError(T("0xb"),this);const o=n[T("0x2")]();this.editor[T("0x4")][T("0x0")](o)&&this[T("0x7")][T("0x8")][T("0x6")](T("0x1"))[T("0x9")](n)}}const y=["isCollapsed","createPositionAt","isTouching","join","add","replace","end","length","push","isMultiRange","createPositionAfter","createPositionBefore","from","content","isInContent"," [color ","deletion","color","map","change","isIntersecting","type","execute","schema","splice","next","getRanges","isObject","sort","isArray","value"];var k,A;k=y,A=140,function(e){for(;--e;)k.push(k.shift())}(++A);const v=function(e,t){return y[e-=0]};function R(e){return e[v("0xc")](((e,t)=>v("0x0")==e[v("0x5")]&&v("0x0")!=t[v("0x5")]?-1:v("0x0")!=e[v("0x5")]&&v("0x0")==t[v("0x5")]?1:0))}function I(e,t){let n,o=0;const r=[],s=t[v("0x7")];for(;o<e[v("0x16")];){const i=e[o],x=e[o+1];n||(n=t[v("0x1a")](i)),S(t,i,x)||(r[v("0x17")](t.createRange(n,s[v("0xb")](i)?t[v("0x19")](i):t[v("0x10")](i,v("0x15")))),n=null),o++}return r}function S(e,t,n){if(!n)return!1;const o=e[v("0x19")](t),r=e[v("0x1a")](n);return o.isTouching(r)}function L(e,t,n){for(;n[v("0x16")];){const o=n[v("0x8")](0,100);e[v("0x3")]((()=>{for(const e of o)e[v("0x1d")]&&t[v("0x6")](e.id)}))}}const N=["canEditAt","_isEnabledBasedOnSelection","_suggestions","editor","from","model","execute","isInContent","getRanges","refresh","isEnabled","values"];var M,w;M=N,w=412,function(e){for(;--e;)M.push(M.shift())}(++w);const O=function(e,t){return N[e-=0]};class F extends e.Command{constructor(e,t,n){super(e),this._command=t,this[O("0xa")]=n,this[O("0x5")](),this[O("0x9")]=!1}refresh(){const e=Array.from(this[O("0xa")][O("0x7")]()).some((e=>e[O("0x3")]));this[O("0x6")]=this._command[O("0x6")]&&e}[O("0x2")](){const e=R(Array[O("0x0")](this[O("0xa")][O("0x7")]()));for(const t of e){const e=t[O("0x4")]();if(!this.editor[O("0x1")][O("0x8")](e))return}L(this[O("0xb")].model,this._command,e)}}const P=["editor","from","document","_command","selection","_selectedSuggestions","execute","model","isEnabled","canEditAt","refresh","values","_isEnabledBasedOnSelection","size","_suggestions"];var D,B;D=P,B=498,function(e){for(;--e;)D.push(D.shift())}(++B);const j=function(e,t){return P[e-=0]};class U extends e.Command{constructor(e,t,n){super(e),this[j("0x0")]=t,this[j("0xb")]=n,this[j("0x2")]=new Set,this.refresh(),this[j("0x9")]=!1}[j("0x7")](){const e=this[j("0xc")][j("0x4")][j("0xe")][j("0x1")],t=Array[j("0xd")](this[j("0xb")][j("0x8")]());this[j("0x2")]=function(e,t){const n=Array[v("0x1b")](e[v("0xa")]()),o=new Set;for(const r of t)if(r.isInContent)for(const t of n)for(const n of r.getRanges())(t[v("0x4")](n)||e[v("0xf")]&&!r[v("0x18")]&&r[v("0x9")]&&n[v("0x15")][v("0x11")](t.start))&&o[v("0x13")](r);return o}(e,t),this[j("0x5")]=this[j("0x0")][j("0x5")]&&!!this[j("0x2")][j("0xa")]}[j("0x3")](){const e=R(Array.from(this[j("0x2")]));for(const t of e){const e=t.getRanges();if(!this[j("0xc")].model[j("0x6")](e))return}L(this[j("0xc")][j("0x4")],this._command,e)}}const G=function(){this.__data__=[],this.size=0};const H=function(e,t){return e===t||e!=e&&t!=t};const z=function(e,t){for(var n=e.length;n--;)if(H(e[n][0],t))return n;return-1};var W=Array.prototype.splice;const V=function(e){var t=this.__data__,n=z(t,e);return!(n<0)&&(n==t.length-1?t.pop():W.call(t,n,1),--this.size,!0)};const K=function(e){var t=this.__data__,n=z(t,e);return n<0?void 0:t[n][1]};const q=function(e){return z(this.__data__,e)>-1};const X=function(e,t){var n=this.__data__,o=z(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this};function $(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$.prototype.clear=G,$.prototype.delete=V,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Q=$;const J=function(){this.__data__=new Q,this.size=0};const Z=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n};const Y=function(e){return this.__data__.get(e)};const ee=function(e){return this.__data__.has(e)};const te="object"==typeof global&&global&&global.Object===Object&&global;var ne="object"==typeof self&&self&&self.Object===Object&&self;const oe=te||ne||Function("return this")();const re=oe.Symbol;var se=Object.prototype,ie=se.hasOwnProperty,xe=se.toString,ae=re?re.toStringTag:void 0;const ce=function(e){var t=ie.call(e,ae),n=e[ae];try{e[ae]=void 0;var o=!0}catch(e){}var r=xe.call(e);return o&&(t?e[ae]=n:delete e[ae]),r};var le=Object.prototype.toString;const de=function(e){return le.call(e)};var ue=re?re.toStringTag:void 0;const ge=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":ue&&ue in Object(e)?ce(e):de(e)};const me=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)};const fe=function(e){if(!me(e))return!1;var t=ge(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t};const he=oe["__core-js_shared__"];var be,pe=(be=/[^.]+$/.exec(he&&he.keys&&he.keys.IE_PROTO||""))?"Symbol(src)_1."+be:"";const Ee=function(e){return!!pe&&pe in e};var _e=Function.prototype.toString;const Te=function(e){if(null!=e){try{return _e.call(e)}catch(e){}try{return e+""}catch(e){}}return""};var Ce=/^\[object .+?Constructor\]$/,ye=Function.prototype,ke=Object.prototype,Ae=ye.toString,ve=ke.hasOwnProperty,Re=RegExp("^"+Ae.call(ve).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Ie=function(e){return!(!me(e)||Ee(e))&&(fe(e)?Re:Ce).test(Te(e))};const Se=function(e,t){return null==e?void 0:e[t]};const Le=function(e,t){var n=Se(e,t);return Ie(n)?n:void 0};const Ne=Le(oe,"Map");const Me=Le(Object,"create");const we=function(){this.__data__=Me?Me(null):{},this.size=0};const Oe=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t};var Fe=Object.prototype.hasOwnProperty;const Pe=function(e){var t=this.__data__;if(Me){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return Fe.call(t,e)?t[e]:void 0};var De=Object.prototype.hasOwnProperty;const Be=function(e){var t=this.__data__;return Me?void 0!==t[e]:De.call(t,e)};const je=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Me&&void 0===t?"__lodash_hash_undefined__":t,this};function Ue(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}Ue.prototype.clear=we,Ue.prototype.delete=Oe,Ue.prototype.get=Pe,Ue.prototype.has=Be,Ue.prototype.set=je;const Ge=Ue;const He=function(){this.size=0,this.__data__={hash:new Ge,map:new(Ne||Q),string:new Ge}};const ze=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e};const We=function(e,t){var n=e.__data__;return ze(t)?n["string"==typeof t?"string":"hash"]:n.map};const Ve=function(e){var t=We(this,e).delete(e);return this.size-=t?1:0,t};const Ke=function(e){return We(this,e).get(e)};const qe=function(e){return We(this,e).has(e)};const Xe=function(e,t){var n=We(this,e),o=n.size;return n.set(e,t),this.size+=n.size==o?0:1,this};function $e(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var o=e[t];this.set(o[0],o[1])}}$e.prototype.clear=He,$e.prototype.delete=Ve,$e.prototype.get=Ke,$e.prototype.has=qe,$e.prototype.set=Xe;const Qe=$e;const Je=function(e,t){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Ne||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new Qe(o)}return n.set(e,t),this.size=n.size,this};function Ze(e){var t=this.__data__=new Q(e);this.size=t.size}Ze.prototype.clear=J,Ze.prototype.delete=Z,Ze.prototype.get=Y,Ze.prototype.has=ee,Ze.prototype.set=Je;const Ye=Ze;const et=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o&&!1!==t(e[n],n,e););return e};const tt=function(){try{var e=Le(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();const nt=function(e,t,n){"__proto__"==t&&tt?tt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n};var ot=Object.prototype.hasOwnProperty;const rt=function(e,t,n){var o=e[t];ot.call(e,t)&&H(o,n)&&(void 0!==n||t in e)||nt(e,t,n)};const st=function(e,t,n,o){var r=!n;n||(n={});for(var s=-1,i=t.length;++s<i;){var x=t[s],a=o?o(n[x],e[x],x,n,e):void 0;void 0===a&&(a=e[x]),r?nt(n,x,a):rt(n,x,a)}return n};const it=function(e,t){for(var n=-1,o=Array(e);++n<e;)o[n]=t(n);return o};const xt=function(e){return null!=e&&"object"==typeof e};const at=function(e){return xt(e)&&"[object Arguments]"==ge(e)};var ct=Object.prototype,lt=ct.hasOwnProperty,dt=ct.propertyIsEnumerable;const ut=at(function(){return arguments}())?at:function(e){return xt(e)&<.call(e,"callee")&&!dt.call(e,"callee")};const gt=Array.isArray;const mt=function(){return!1};var ft="object"==typeof exports&&exports&&!exports.nodeType&&exports,ht=ft&&"object"==typeof module&&module&&!module.nodeType&&module,bt=ht&&ht.exports===ft?oe.Buffer:void 0;const pt=(bt?bt.isBuffer:void 0)||mt;var Et=/^(?:0|[1-9]\d*)$/;const _t=function(e,t){var n=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==n||"symbol"!=n&&Et.test(e))&&e>-1&&e%1==0&&e<t};const Tt=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991};var Ct={};Ct["[object Float32Array]"]=Ct["[object Float64Array]"]=Ct["[object Int8Array]"]=Ct["[object Int16Array]"]=Ct["[object Int32Array]"]=Ct["[object Uint8Array]"]=Ct["[object Uint8ClampedArray]"]=Ct["[object Uint16Array]"]=Ct["[object Uint32Array]"]=!0,Ct["[object Arguments]"]=Ct["[object Array]"]=Ct["[object ArrayBuffer]"]=Ct["[object Boolean]"]=Ct["[object DataView]"]=Ct["[object Date]"]=Ct["[object Error]"]=Ct["[object Function]"]=Ct["[object Map]"]=Ct["[object Number]"]=Ct["[object Object]"]=Ct["[object RegExp]"]=Ct["[object Set]"]=Ct["[object String]"]=Ct["[object WeakMap]"]=!1;const yt=function(e){return xt(e)&&Tt(e.length)&&!!Ct[ge(e)]};const kt=function(e){return function(t){return e(t)}};var At="object"==typeof exports&&exports&&!exports.nodeType&&exports,vt=At&&"object"==typeof module&&module&&!module.nodeType&&module,Rt=vt&&vt.exports===At&&te.process;const It=function(){try{var e=vt&&vt.require&&vt.require("util").types;return e||Rt&&Rt.binding&&Rt.binding("util")}catch(e){}}();var St=It&&It.isTypedArray;const Lt=St?kt(St):yt;var Nt=Object.prototype.hasOwnProperty;const Mt=function(e,t){var n=gt(e),o=!n&&ut(e),r=!n&&!o&&pt(e),s=!n&&!o&&!r&&Lt(e),i=n||o||r||s,x=i?it(e.length,String):[],a=x.length;for(var c in e)!t&&!Nt.call(e,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_t(c,a))||x.push(c);return x};var wt=Object.prototype;const Ot=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||wt)};const Ft=function(e,t){return function(n){return e(t(n))}};const Pt=Ft(Object.keys,Object);var Dt=Object.prototype.hasOwnProperty;const Bt=function(e){if(!Ot(e))return Pt(e);var t=[];for(var n in Object(e))Dt.call(e,n)&&"constructor"!=n&&t.push(n);return t};const jt=function(e){return null!=e&&Tt(e.length)&&!fe(e)};const Ut=function(e){return jt(e)?Mt(e):Bt(e)};const Gt=function(e,t){return e&&st(t,Ut(t),e)};const Ht=function(e){var t=[];if(null!=e)for(var n in Object(e))t.push(n);return t};var zt=Object.prototype.hasOwnProperty;const Wt=function(e){if(!me(e))return Ht(e);var t=Ot(e),n=[];for(var o in e)("constructor"!=o||!t&&zt.call(e,o))&&n.push(o);return n};const Vt=function(e){return jt(e)?Mt(e,!0):Wt(e)};const Kt=function(e,t){return e&&st(t,Vt(t),e)};var qt="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xt=qt&&"object"==typeof module&&module&&!module.nodeType&&module,$t=Xt&&Xt.exports===qt?oe.Buffer:void 0,Qt=$t?$t.allocUnsafe:void 0;const Jt=function(e,t){if(t)return e.slice();var n=e.length,o=Qt?Qt(n):new e.constructor(n);return e.copy(o),o};const Zt=function(e,t){var n=-1,o=e.length;for(t||(t=Array(o));++n<o;)t[n]=e[n];return t};const Yt=function(e,t){for(var n=-1,o=null==e?0:e.length,r=0,s=[];++n<o;){var i=e[n];t(i,n,e)&&(s[r++]=i)}return s};const en=function(){return[]};var tn=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(e){return null==e?[]:(e=Object(e),Yt(nn(e),(function(t){return tn.call(e,t)})))}:en;const rn=function(e,t){return st(e,on(e),t)};const sn=function(e,t){for(var n=-1,o=t.length,r=e.length;++n<o;)e[r+n]=t[n];return e};const xn=Ft(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)sn(t,on(e)),e=xn(e);return t}:en;const cn=function(e,t){return st(e,an(e),t)};const ln=function(e,t,n){var o=t(e);return gt(e)?o:sn(o,n(e))};const dn=function(e){return ln(e,Ut,on)};const un=function(e){return ln(e,Vt,an)};const gn=Le(oe,"DataView");const mn=Le(oe,"Promise");const fn=Le(oe,"Set");const hn=Le(oe,"WeakMap");var bn="[object Map]",pn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Te(gn),yn=Te(Ne),kn=Te(mn),An=Te(fn),vn=Te(hn),Rn=ge;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Ne&&Rn(new Ne)!=bn||mn&&Rn(mn.resolve())!=pn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(e){var t=ge(e),n="[object Object]"==t?e.constructor:void 0,o=n?Te(n):"";if(o)switch(o){case Cn:return Tn;case yn:return bn;case kn:return pn;case An:return En;case vn:return _n}return t});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Sn.call(e,"index")&&(n.index=e.index,n.input=e.input),n};const Nn=oe.Uint8Array;const Mn=function(e){var t=new e.constructor(e.byteLength);return new Nn(t).set(new Nn(e)),t};const wn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)};var On=/\w*$/;const Fn=function(e){var t=new e.constructor(e.source,On.exec(e));return t.lastIndex=e.lastIndex,t};var Pn=re?re.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(e){return Dn?Object(Dn.call(e)):{}};const jn=function(e,t){var n=t?Mn(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)};const Un=function(e,t,n){var o=e.constructor;switch(t){case"[object ArrayBuffer]":return Mn(e);case"[object Boolean]":case"[object Date]":return new o(+e);case"[object DataView]":return wn(e,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(e,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(e);case"[object RegExp]":return Fn(e);case"[object Symbol]":return Bn(e)}};var Gn=Object.create;const Hn=function(){function e(){}return function(t){if(!me(t))return{};if(Gn)return Gn(t);e.prototype=t;var n=new e;return e.prototype=void 0,n}}();const zn=function(e){return"function"!=typeof e.constructor||Ot(e)?{}:Hn(xn(e))};const Wn=function(e){return xt(e)&&"[object Map]"==In(e)};var Vn=It&&It.isMap;const Kn=Vn?kt(Vn):Wn;const qn=function(e){return xt(e)&&"[object Set]"==In(e)};var Xn=It&&It.isSet;const $n=Xn?kt(Xn):qn;var Qn="[object Arguments]",Jn="[object Function]",Zn="[object Object]",Yn={};Yn[Qn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Jn]=Yn["[object WeakMap]"]=!1;const eo=function e(t,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(t,r,s,i):o(t)),void 0!==x)return x;if(!me(t))return t;var d=gt(t);if(d){if(x=Ln(t),!a)return Zt(t,x)}else{var u=In(t),g=u==Jn||"[object GeneratorFunction]"==u;if(pt(t))return Jt(t,a);if(u==Zn||u==Qn||g&&!s){if(x=c||g?{}:zn(t),!a)return c?cn(t,Kt(x,t)):rn(t,Gt(x,t))}else{if(!Yn[u])return s?t:{};x=Un(t,u,a)}}i||(i=new Ye);var m=i.get(t);if(m)return m;i.set(t,x),$n(t)?t.forEach((function(r){x.add(e(r,n,o,r,t,i))})):Kn(t)&&t.forEach((function(r,s){x.set(s,e(r,n,o,s,t,i))}));var f=d?void 0:(l?c?un:dn:c?Vt:Ut)(t);return et(f||t,(function(r,s){f&&(r=t[s=r]),rt(x,s,e(r,n,o,s,t,i))})),x};const to=function(e){return eo(e,5)};const no=function(e){return"symbol"==typeof e||xt(e)&&"[object Symbol]"==ge(e)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ro=/^\w*$/;const so=function(e,t){if(gt(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!no(e))||(ro.test(e)||!oo.test(e)||null!=t&&e in Object(t))};function io(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var o=arguments,r=t?t.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=e.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qe),n}io.Cache=Qe;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(e){var t=xo(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ao,(function(e,n,o,r){t.push(o?r.replace(co,"$1"):n||e)})),t}));const uo=function(e,t){for(var n=-1,o=null==e?0:e.length,r=Array(o);++n<o;)r[n]=t(e[n],n,e);return r};var go=re?re.prototype:void 0,mo=go?go.toString:void 0;const fo=function e(t){if("string"==typeof t)return t;if(gt(t))return uo(t,e)+"";if(no(t))return mo?mo.call(t):"";var n=t+"";return"0"==n&&1/t==-Infinity?"-0":n};const ho=function(e){return null==e?"":fo(e)};const bo=function(e,t){return gt(e)?e:so(e,t)?[e]:lo(ho(e))};const po=function(e){if("string"==typeof e||no(e))return e;var t=e+"";return"0"==t&&1/e==-Infinity?"-0":t};const Eo=function(e,t,n,o){if(!me(e))return e;for(var r=-1,s=(t=bo(t,e)).length,i=s-1,x=e;null!=x&&++r<s;){var a=po(t[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return e;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=me(l)?l:_t(t[r+1])?[]:{})}rt(x,a,c),x=x[a]}return e};const _o=function(e,t,n){return null==e?e:Eo(e,t,n)};const To=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this};const Co=function(e){return this.__data__.has(e)};function yo(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Qe;++t<n;)this.add(e[t])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(e,t){for(var n=-1,o=null==e?0:e.length;++n<o;)if(t(e[n],n,e))return!0;return!1};const vo=function(e,t){return e.has(t)};const Ro=function(e,t,n,o,r,s){var i=1&n,x=e.length,a=t.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(e),l=s.get(t);if(c&&l)return c==t&&l==e;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(e,t),s.set(t,e);++d<x;){var m=e[d],f=t[d];if(o)var h=i?o(f,m,d,t,e,s):o(m,f,d,e,t,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(t,(function(e,t){if(!vo(g,t)&&(m===e||r(m,e,n,o,s)))return g.push(t)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(e),s.delete(t),u};const Io=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e,o){n[++t]=[o,e]})),n};const So=function(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n};var Lo=re?re.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(e,t,n,o,r,s,i){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!s(new Nn(e),new Nn(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),e.size!=t.size&&!a)return!1;var c=i.get(e);if(c)return c==t;o|=2,i.set(e,t);var l=Ro(x(e),x(t),o,r,s,i);return i.delete(e),l;case"[object Symbol]":if(No)return No.call(e)==No.call(t)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(e,t,n,o,r,s){var i=1&n,x=dn(e),a=x.length;if(a!=dn(t).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in t:wo.call(t,l)))return!1}var d=s.get(e),u=s.get(t);if(d&&u)return d==t&&u==e;var g=!0;s.set(e,t),s.set(t,e);for(var m=i;++c<a;){var f=e[l=x[c]],h=t[l];if(o)var b=i?o(h,f,l,t,e,s):o(f,h,l,e,t,s);if(!(void 0===b?f===h||r(f,h,n,o,s):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=e.constructor,E=t.constructor;p==E||!("constructor"in e)||!("constructor"in t)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return s.delete(e),s.delete(t),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(e,t,n,o,r,s){var i=gt(e),x=gt(t),a=i?Po:In(e),c=x?Po:In(t),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pt(e)){if(!pt(t))return!1;i=!0,l=!1}if(u&&!l)return s||(s=new Ye),i||Lt(e)?Ro(e,t,n,o,r,s):Mo(e,t,a,n,o,r,s);if(!(1&n)){var g=l&&Bo.call(e,"__wrapped__"),m=d&&Bo.call(t,"__wrapped__");if(g||m){var f=g?e.value():e,h=m?t.value():t;return s||(s=new Ye),r(f,h,n,o,s)}}return!!u&&(s||(s=new Ye),Oo(e,t,n,o,r,s))};const Uo=function e(t,n,o,r,s){return t===n||(null==t||null==n||!xt(t)&&!xt(n)?t!=t&&n!=n:jo(t,n,o,r,e,s))};const Go=function(e,t){return Uo(e,t)};const Ho=function(e){var t=null==e?0:e.length;return t?e[t-1]:void 0};const zo=function(e,t){for(var n=0,o=(t=bo(t,e)).length;null!=e&&n<o;)e=e[po(t[n++])];return n&&n==o?e:void 0};const Wo=function(e,t,n){var o=-1,r=e.length;t<0&&(t=-t>r?0:r+t),(n=n>r?r:n)<0&&(n+=r),r=t>n?0:n-t>>>0,t>>>=0;for(var s=Array(r);++o<r;)s[o]=e[o+t];return s};const Vo=function(e,t){return t.length<2?e:zo(e,Wo(t,0,-1))};const Ko=function(e,t){return t=bo(t,e),null==(e=Vo(e,t))||delete e[po(Ho(t))]};const qo=function(e,t){return null==e||Ko(e,t)},Xo=["_saved","suggestion:","_markerNames","@external","subType","getFirstMarker","head","_onDiscard","addRange","attributes","previous","removeMarker","substr","size","removeAttribute","_isDataLoaded","getMultiRangeId","accept","type","toJSON","removeMarkers","getRange","decorate","getMarkers","length","addMarkerName","commentThread","getMarkerNames","split","start","isIntersectingWithRange","change","_model","getItems","createdAt","getRanges","from","nodeAfter","hasComments","data","author","next","addMarker","authoredAt","_onAttributesChange","_onAccept","getContainedElement","set","discard","creator","getFirstRange","setAttribute","end","push","markers","nodeBefore","isIntersecting","getAllAdjacentSuggestions","delete","onAttributesChange"];var $o,Qo;$o=Xo,Qo=409,function(e){for(;--e;)$o.push($o.shift())}(++Qo);const Jo=function(e,t){return Xo[e-=0]};class Zo extends((0,t.ObservableMixin)()){constructor(e,t){super(),this[Jo("0x1a")]=!1,this.id=t.id,this[Jo("0x1d")]=t[Jo("0x1d")],this[Jo("0xf")]=t[Jo("0xf")]||null,this[Jo("0x33")]=t[Jo("0x33")],this[Jo("0x0")]=t[Jo("0x0")]||t[Jo("0x33")],this.isExternal=Boolean(t.attributes&&t[Jo("0x14")][Jo("0xe")]),this[Jo("0x32")]=null,this._model=e,this[Jo("0x38")]=t.onAccept,this[Jo("0x12")]=t.onDiscard,this[Jo("0x37")]=t[Jo("0xa")],this[Jo("0xd")]=new Set,this[Jo("0x2d")]=null,this[Jo("0x3a")](Jo("0x36"),null),this.set(Jo("0x14"),t.attributes||{}),this.set("previous",null),this[Jo("0x3a")]("next",null),this.set("commentThread",null),this[Jo("0x3a")](Jo("0xb"),!1),this[Jo("0x21")](Jo("0x1c")),this[Jo("0x21")](Jo("0x3b"))}get[Jo("0x11")](){let e=this;for(;e[Jo("0x15")];)e=e.previous;return e}get[Jo("0x31")](){return!!this.commentThread&&this[Jo("0x25")][Jo("0x23")]>0}get isMultiRange(){return 0!=this[Jo("0xd")][Jo("0x18")]&&6==Array[Jo("0x2f")](this[Jo("0xd")])[0][Jo("0x27")](":")[Jo("0x23")]}get isInContent(){return null!==this.getFirstMarker()}addMarkerName(e){this[Jo("0xd")].add(e)}[Jo("0x26")](){return Array.from(this._markerNames)}[Jo("0x22")](){return this[Jo("0x26")]().map((e=>this._model[Jo("0x5")].get(e))).filter((e=>e))}[Jo("0x10")](){return this[Jo("0x22")]()[0]||null}removeMarkers(){this[Jo("0x2b")][Jo("0x2a")]((e=>{for(const t of this[Jo("0x22")]())e[Jo("0x16")](t)})),this._markerNames.clear()}[Jo("0x16")](e){this[Jo("0x2b")][Jo("0x2a")]((t=>{t[Jo("0x16")](e)})),this[Jo("0xd")][Jo("0x9")](e)}[Jo("0x13")](e){const t=Jo("0xc")+this[Jo("0x1d")]+":"+this[Jo("0xf")]+":"+this.id+":"+this.creator.id+":"+Zo[Jo("0x1b")]();this[Jo("0x24")](t),this._model[Jo("0x2a")]((n=>{n[Jo("0x35")](t,{range:e,usingOperation:!0,affectsData:!0})}))}[Jo("0x29")](e){for(const t of this[Jo("0x2e")]())if(t[Jo("0x7")](e))return!0;return!1}[Jo("0x2e")](){return this[Jo("0x22")]().map((e=>e[Jo("0x20")]()))}getItems(){return this.getRanges().reduce(((e,t)=>[...e,...t[Jo("0x2c")]()]),[])}[Jo("0x1")](){var e;return(null===(e=this.getFirstMarker())||void 0===e?void 0:e.getRange())||null}[Jo("0x39")](){const e=this[Jo("0x2e")]();if(1!=e.length)return null;const t=e[0],n=t[Jo("0x28")][Jo("0x30")],o=t[Jo("0x3")][Jo("0x6")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0x1c")](){this._onAccept(this[Jo("0x2e")](),this[Jo("0x32")],this[Jo("0x14")]),this[Jo("0x1f")]()}[Jo("0x3b")](){this._onDiscard(this.getRanges(),this[Jo("0x32")],this.attributes),this[Jo("0x1f")]()}[Jo("0x8")](){const e=[];let t=this[Jo("0x11")];for(;t;)e[Jo("0x4")](t),t=t[Jo("0x34")];return e}[Jo("0x2")](e,t){const n=to(this[Jo("0x14")]);_o(n,e,t),Go(n,this.attributes)||(this[Jo("0x14")]=n,this[Jo("0x37")](n))}[Jo("0x19")](e){const t=to(this[Jo("0x14")]);qo(t,e),Go(t,this[Jo("0x14")])||(this[Jo("0x14")]=t,this[Jo("0x37")](this[Jo("0x14")]))}[Jo("0x1e")](){return{id:this.id,type:this.subType?this[Jo("0x1d")]+":"+this[Jo("0xf")]:this[Jo("0x1d")],authorId:this[Jo("0x0")].id,createdAt:this[Jo("0x2d")],hasComments:this.hasComments,data:this[Jo("0x32")],attributes:this[Jo("0x14")]}}static[Jo("0x1b")](){return(0,t.uid)()[Jo("0x17")](1,5)}}function Yo(e,t,n){const o=e.t;switch(t){case"Track changes":return o("Track changes");case"Accept suggestion":return o("Accept suggestion");case"Discard suggestion":return o("Discard suggestion");case"Accept all suggestions":return o("Accept all suggestions");case"Accept all selected suggestions":return o("Accept all selected suggestions");case"Discard all suggestions":return o("Discard all suggestions");case"Discard all selected suggestions":return o("Discard all selected suggestions");case"*Reset font size*":return o("*Reset font size*");case"*Reset font family*":return o("*Reset font family*");case"*Reset font color*":return o("*Reset font color*");case"*Reset font background color*":return o("*Reset font background color*");case"*Remove image text alternative*":return o("*Remove image text alternative*");case"*Reset image width*":return o("*Reset image width*");case"*Remove link*":return o("*Remove link*");case"*Check item*":return o("*Check item*");case"*Uncheck item*":return o("*Uncheck item*");case"*Remove all formatting*":return o("*Remove all formatting*");case"*Replace table cells*":return o("*Replace table cells*");case"*Merge cells*":return o("*Merge cells*");case"*Split cell:* vertically":return o("*Split cell:* vertically");case"*Split cell:* horizontally":return o("*Split cell:* horizontally");case"*Indent:* %0":return o("*Indent:* %0",n);case"*Outdent:* %0":return o("*Outdent:* %0",n);case"*Change to:* %0":return o("*Change to:* %0",n);case"*Insert:* %0":return o("*Insert:* %0",n);case"*Format:* %0":return o("*Format:* %0",n);case"*Format:* change table properties":return o("*Format:* change table properties");case"*Format:* change table cell properties":return o("*Format:* change table cell properties");case"*Format:* insert into %0":return o("*Format:* insert into %0",n);case"*Format:* remove from %0":return o("*Format:* remove from %0",n);case"*Format:* replace image URL":return o("*Format:* replace image URL");case"*Format:* resize table":return o("*Format:* resize table");case"*Format:* set order to reversed":return o("*Format:* set order to reversed");case"*Format:* set order to regular":return o("*Format:* set order to regular");case"*Format:* set start index to %0":return o("*Format:* set start index to %0",n);case"*Change %0 content*":return o("*Change %0 content*",n);case"*Remove:* %0":return o("*Remove:* %0",n);case"*Merge:* %0":return o("*Merge:* %0",n);case"*Split:* %0":return o("*Split:* %0",n);case"*Remove format:* %0":return o("*Remove format:* %0",n);case"*Set font size:* %0":return o("*Set font size:* %0",n);case"*Set font family:* %0":return o("*Set font family:* %0",n);case"*Set format to:* %0":return o("*Set format to:* %0",n);case"*Set font color:* %0":return o("*Set font color:* %0",n);case"*Set font background color:* %0":return o("*Set font background color:* %0",n);case"*Set image text alternative:* %0":return o("*Set image text alternative:* %0",n);case"*Set image width:* %0":return o("*Set image width:* %0",n);case"*Set link:* %0":return o("*Set link:* %0",n);case"*Set highlight:* %0":return o("*Set highlight:* %0",n);case"*Remove highlight*":return o("*Remove highlight*");case"FORMAT_HIGHLIGHT":return o({string:"highlight",id:"FORMAT_HIGHLIGHT"});case"FORMAT_RESTRICTED_ENABLED":return o({string:"*Enable in restricted editing mode*",id:"FORMAT_RESTRICTED_ENABLED"});case"FORMAT_RESTRICTED_DISABLED":return o({string:"*Disable in restricted editing mode*",id:"FORMAT_RESTRICTED_DISABLED"});case"ELEMENT_TABLE":return o({string:"table",plural:"%0 tables",id:"ELEMENT_TABLE"},n);case"ELEMENT_PARAGRAPH":return o({string:"paragraph",plural:"%0 paragraphs",id:"ELEMENT_PARAGRAPH"},n);case"ELEMENT_PAGE_BREAK":return o({string:"page break",plural:"%0 page breaks",id:"ELEMENT_PAGE_BREAK"},n);case"ELEMENT_MEDIA":return o({string:"media item",plural:"%0 media items",id:"ELEMENT_MEDIA"},n);case"ELEMENT_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_IMAGE"},n);case"ELEMENT_INLINE_IMAGE":return o({string:"image",plural:"%0 images",id:"ELEMENT_INLINE_IMAGE"},n);case"FORMAT_SIDE_IMAGE":return o({string:"side image",id:"FORMAT_SIDE_IMAGE"});case"ELEMENT_CAPTION":return o({string:"caption",id:"ELEMENT_CAPTION"});case"ELEMENT_HORIZONTAL_LINE":return o({string:"horizontal line",plural:"%0 horizontal lines",id:"ELEMENT_HORIZONTAL_LINE"},n);case"ELEMENT_HTML_EMBED":return o({string:"HTML embed",plural:"%0 HTML embeds",id:"ELEMENT_HTML_EMBED"},n);case"ELEMENT_HEADING":return o({string:"heading (level %1)",plural:"%0 headings (level %1)",id:"ELEMENT_HEADING"},n);case"ELEMENT_HEADING_CUSTOM":return o({string:"heading (%1)",plural:"%0 headings (%1)",id:"ELEMENT_HEADING_CUSTOM"},n);case"ELEMENT_LIST_ITEM":return o({string:"list item",plural:"%0 list items",id:"ELEMENT_LIST_ITEM"},n);case"ELEMENT_BULLETED_LIST":return o({string:"bulleted list",id:"ELEMENT_BULLETED_LIST"});case"ELEMENT_BULLETED_LIST_CIRCLE":return o({string:"bulleted list (circle)",id:"ELEMENT_BULLETED_LIST_CIRCLE"});case"ELEMENT_BULLETED_LIST_DISC":return o({string:"bulleted list (disc)",id:"ELEMENT_BULLETED_LIST_DISC"});case"ELEMENT_BULLETED_LIST_SQUARE":return o({string:"bulleted list (square)",id:"ELEMENT_BULLETED_LIST_SQUARE"});case"ELEMENT_NUMBERED_LIST":return o({string:"numbered list",id:"ELEMENT_NUMBERED_LIST"});case"ELEMENT_NUMBERED_LIST_DECIMAL":return o({string:"numbered list (decimal)",id:"ELEMENT_NUMBERED_LIST_DECIMAL"});case"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO":return o({string:"numbered list (decimal with leading zero)",id:"ELEMENT_NUMBERED_LIST_DECIMAL_LEADING_ZERO"});case"ELEMENT_NUMBERED_LIST_LOWER_LATIN":return o({string:"numbered list (lower-latin)",id:"ELEMENT_NUMBERED_LIST_LOWER_LATIN"});case"ELEMENT_NUMBERED_LIST_LOWER_ROMAN":return o({string:"numbered list (lower-roman)",id:"ELEMENT_NUMBERED_LIST_LOWER_ROMAN"});case"ELEMENT_NUMBERED_LIST_UPPER_LATIN":return o({string:"numbered list (upper-latin)",id:"ELEMENT_NUMBERED_LIST_UPPER_LATIN"});case"ELEMENT_NUMBERED_LIST_UPPER_ROMAN":return o({string:"numbered list (upper-roman)",id:"ELEMENT_NUMBERED_LIST_UPPER_ROMAN"});case"ELEMENT_TODO_LIST":return o({string:"to-do list",id:"ELEMENT_TODO_LIST"});case"REPLACE_TEXT":return o({string:"*Replace:* %0 *with* %1",id:"REPLACE_TEXT"},n);case"ELEMENT_SPACE":return o({string:"space",plural:"%0 spaces",id:"ELEMENT_SPACE"},n);case"FORMAT_ALIGN_TO_LEFT":return o({string:"align to left",id:"FORMAT_ALIGN_TO_LEFT"});case"FORMAT_ALIGN_TO_RIGHT":return o({string:"align to right",id:"FORMAT_ALIGN_TO_RIGHT"});case"FORMAT_ALIGN_TO_CENTER":return o({string:"align to center",id:"FORMAT_ALIGN_TO_CENTER"});case"FORMAT_JUSTIFY_TEXT":return o({string:"justify",id:"FORMAT_JUSTIFY_TEXT"});case"FORMAT_BOLD":return o({string:"bold",id:"FORMAT_BOLD"});case"FORMAT_ITALIC":return o({string:"italic",id:"FORMAT_ITALIC"});case"FORMAT_UNDERLINE":return o({string:"underline",id:"FORMAT_UNDERLINE"});case"FORMAT_CODE":return o({string:"code",id:"FORMAT_CODE"});case"FORMAT_STRIKETHROUGH":return o({string:"strikethrough",id:"FORMAT_STRIKETHROUGH"});case"FORMAT_SUBSCRIPT":return o({string:"subscript",id:"FORMAT_SUBSCRIPT"});case"FORMAT_SUPERSCRIPT":return o({string:"superscript",id:"FORMAT_SUPERSCRIPT"});case"ELEMENT_BLOCK_QUOTE":return o({string:"block quote",id:"ELEMENT_BLOCK_QUOTE"});case"ELEMENT_CODE_BLOCK":return o({string:"code block",plural:"%0 code blocks",id:"ELEMENT_CODE_BLOCK"},n);case"FORMAT_HEADER_COLUMN":return o({string:"header column",id:"FORMAT_HEADER_COLUMN"});case"FORMAT_REGULAR_COLUMN":return o({string:"regular column",id:"FORMAT_REGULAR_COLUMN"});case"FORMAT_HEADER_ROW":return o({string:"header row",id:"FORMAT_HEADER_ROW"});case"FORMAT_REGULAR_ROW":return o({string:"regular row",id:"FORMAT_REGULAR_ROW"});case"PENDING_ACTION_SUGGESTION":return o({string:"Unsaved change in suggestion.",id:"PENDING_ACTION_SUGGESTION"});case"ELEMENT_TABLE_WITH_TEXT":return o({string:"table *with text* %0",id:"ELEMENT_TABLE_WITH_TEXT"},n);case"ELEMENT_TABLE_ROW":return o({string:"table row",plural:"%0 table rows",id:"ELEMENT_TABLE_ROW"},n);case"ELEMENT_TABLE_ROW_WITH_TEXT":return o({string:"table row *with text* %1",plural:"%0 table rows *with text* %1",id:"ELEMENT_TABLE_ROW_WITH_TEXT"},n);case"ELEMENT_TABLE_COLUMN":return o({string:"table column",plural:"%0 table columns",id:"ELEMENT_TABLE_COLUMN"},n);case"ELEMENT_TABLE_COLUMN_WITH_TEXT":return o({string:"table column *with text* %1",plural:"%0 table columns *with text* %1",id:"ELEMENT_TABLE_COLUMN_WITH_TEXT"},n);case"ELEMENT_TABLE_OF_CONTENTS":return o({string:"table of contents",plural:"%0 tables of contents",id:"ELEMENT_TABLE_OF_CONTENTS"},n);case"ELEMENT_LINE_BREAK":return o({id:"ELEMENT_LINE_BREAK",string:"line break",plural:"%0 line breaks"},n);case"ELEMENT_TITLE":return o({id:"ELEMENT_TITLE",string:"title"});case"EXTERNAL_SUGGESTION":return o({id:"EXTERNAL_SUGGESTION",string:"This suggestion comes from an external source."});case"EXTERNAL_IMPORT_WORD_SUGGESTION":return o({string:"This suggestion comes from an imported Word file.",id:"EXTERNAL_IMPORT_WORD_SUGGESTION"});case"EXTERNAL_AVATAR":return o({string:"Displayed author name comes from external source (added by %0)",id:"EXTERNAL_AVATAR"},n);case"EXTERNAL_IMPORT_WORD_AVATAR":return o({string:"Displayed author name comes from a Word document imported by %0",id:"EXTERNAL_IMPORT_WORD_AVATAR"},n);default:return t}}const er=["_schema","add","getWalker","softBreak","deletion","quantity","isEmpty","item","pop","REPLACE_TEXT","registerDescriptionCallback","type","function","push","get","_customCallbacks","matchingCallback","removeContainer","_resolveDescriptionItems","getItemLabel","insertion","_itemLabels","name","end","nextSibling","checkChild","addContainer","start","removeObject","element","replace","ELEMENT_SPACE","*Remove:* %0","elementEnd","*Split:* %0","indexOf","addEmptyContainer","*Merge:* %0","isInContent","previousSibling","data","*Insert:* %0","text","isObject","EmptyContainer","$text","elementStart","match","Object","addObject","Container","label","getFirstRange","$1 $2","getDescriptions","_itemLabelsCallbacks","_locale","length","remove","removeEmptyContainer","normal"];var tr,nr;tr=er,nr=309,function(e){for(;--e;)tr.push(tr.shift())}(++nr);const or=function(e,t){return er[e-=0]};class rr{constructor(e,t){this._customCallbacks=[],this[or("0x11")]=new Map,this[or("0x33")]=[],this[or("0x39")]=e,this[or("0x34")]=t}[or("0x32")](e){const t=[];for(let n=0;n<e[or("0x35")];n++){const o=e[n];if(!o[or("0x22")])continue;let r=!1;for(const e of this[or("0xb")]){const n=e(o);if(n){or("0x7")in n&&t.push(n),r=!0;break}}if(!r){this._addDescriptionItems(t,o);const r=e[n+1];if(r&&!o[or("0x30")]()[or("0x13")].isEqual(r.getFirstRange()[or("0x17")])){const e=t[t[or("0x35")]-1],n=or("0x10")==o[or("0x7")]?or("0x3a"):or("0x36");e&&or("0x26")==e.type&&(e[n]+="\n")}}}return this[or("0xe")](t)}[or("0x6")](e){this[or("0xb")][or("0x9")](e)}registerElementLabel(e,n,o=t.priorities[or("0x38")]){or("0x8")==typeof e?(0,t.insertToPriorityArray)(this[or("0x33")],{matchingCallback:e,label:n,priority:o}):this[or("0x11")].set(e,n)}[or("0xf")](e,t=1){let n;for(const t of this._itemLabelsCallbacks)if(t[or("0xc")](e)){n=t[or("0x2f")];break}return n||(n=this._itemLabels[or("0xa")](e[or("0x12")])),n?n(t):1!==t?t+" "+e.name+"s":""+e.name}_addDescriptionItems(e,t){const n=t[or("0x30")]()[or("0x3b")](),o=or("0x10")==t.type?"add":or("0x36");for(const t of n){const r=t.item,s=e[e[or("0x35")]-1];if(r.is("$textProxy"))s&&s[or("0x7")][or("0x1f")]("Container")>-1&&e[or("0x4")](),s&&or("0x26")==s.type?s[o]+=r.data:e[or("0x9")]({type:or("0x26"),add:or("0x3a")==o?r.data:"",remove:"remove"==o?r[or("0x24")]:""});else if(this[or("0x39")][or("0x27")](r)){const i=r;if(s&&s[or("0x7")][or("0x1f")]("Container")>-1&&e.pop(),or("0x1d")==t.type)continue;s&&s[or("0x7")]==o+or("0x2c")&&s.element[or("0x12")]==i[or("0x12")]?s.quantity++:e[or("0x9")]({type:o+or("0x2c"),element:i,quantity:1}),n.skip((e=>!("elementEnd"==e[or("0x7")]&&e[or("0x3")]==r)))}else if(this[or("0x39")][or("0x15")](r,or("0x29"))||r.is(or("0x19"),or("0x3c"))){const n=r;if("add"==o&&or("0x2a")==t[or("0x7")]||"remove"==o&&or("0x1d")==t.type)continue;if(s&&-1==s[or("0x7")][or("0x1f")](or("0x2e"))){"text"==s[or("0x7")]&&(s[o]+="\n");continue}let i;if(i=or("0x3a")==o?n[or("0x14")]&&!this[or("0x39")][or("0x27")](n[or("0x14")])?n[or("0x14")]:null:n.previousSibling&&!this._schema[or("0x27")](n.previousSibling)?n[or("0x23")]:null,n.isEmpty||i&&i[or("0x2")]){const t=i&&i[or("0x2")]?i:n;s&&s[or("0x7")]==o+or("0x28")&&s[or("0x19")].name==t[or("0x12")]?s[or("0x1")]++:e[or("0x9")]({type:o+"EmptyContainer",element:t,quantity:1})}else e[or("0x9")]({type:o+"Container",element:n})}}}[or("0xe")](e){const t=this._locale,n=[];for(const o of e){switch(o[or("0x7")]){case or("0x26"):if(o[or("0x3a")]=o.add[or("0x1a")](/(\S)\u000A+(\S)/g,or("0x31"))[or("0x1a")](/\u000A/g,""),o.remove=o[or("0x36")][or("0x1a")](/(\S)\u000A+(\S)/g,"$1 $2")[or("0x1a")](/\u000A/g,""),""!=o[or("0x3a")]&&""!=o.remove){n.push({type:or("0x1a"),content:Yo(t,or("0x5"),['"'+o.remove+'"','"'+o[or("0x3a")]+'"'])});continue}if(null!=o[or("0x3a")][or("0x2b")](/^ +$/)){n[or("0x9")]({type:or("0x10"),content:Yo(t,or("0x25"),Yo(t,or("0x1b"),o.add.length))});continue}if(null!=o[or("0x36")][or("0x2b")](/^ +$/)){n[or("0x9")]({type:"deletion",content:Yo(t,or("0x1c"),Yo(t,or("0x1b"),o[or("0x36")][or("0x35")]))});continue}if(""!=o[or("0x3a")]){n[or("0x9")]({type:or("0x10"),content:Yo(t,"*Insert:* %0",'"'+o[or("0x3a")]+'"')});continue}n[or("0x9")]({type:or("0x0"),content:Yo(t,or("0x1c"),'"'+o[or("0x36")]+'"')});continue;case or("0x20"):case or("0x2d"):n.push({type:or("0x10"),content:Yo(t,or("0x25"),this[or("0xf")](o.element,o[or("0x1")]))});continue;case or("0x37"):case or("0x18"):n[or("0x9")]({type:"deletion",content:Yo(t,or("0x1c"),this.getItemLabel(o[or("0x19")],o[or("0x1")]))});continue;case or("0x16"):n.push({type:"insertion",content:Yo(t,or("0x1e"),this[or("0xf")](o[or("0x19")],o[or("0x1")]))});continue;case or("0xd"):n[or("0x9")]({type:"deletion",content:Yo(t,or("0x21"),this[or("0xf")](o[or("0x19")],o[or("0x1")]))});continue}n.push(o)}return n}}const sr=["*Format:* %0","value","AlignmentEditing","justify","from","afterInit","right","getSelectedBlocks","locale","alignment","TrackChangesEditing","editor","enableCommand","schema","change","contentLanguageDirection","left","format","plugins","markBlockFormat","get","getAttribute","model","FORMAT_ALIGN_TO_LEFT"];var ir,xr;ir=sr,xr=373,function(e){for(;--e;)ir.push(ir.shift())}(++xr);const ar=function(e,t){return sr[e-=0]};class cr extends e.Plugin{[ar("0x10")](){const e=this[ar("0x16")],t=e[ar("0x13")];if(!e[ar("0x5")].has(ar("0xd")))return;const n=e[ar("0x5")][ar("0x7")](ar("0x15"));n[ar("0x17")](ar("0x14"),((t,o={})=>{let r=o[ar("0xc")];o[ar("0xc")]||(r="ltr"===e[ar("0x13")][ar("0x2")]?"left":ar("0x11"));const s=Array[ar("0xf")](this[ar("0x16")][ar("0x9")].document.selection[ar("0x12")]()).filter((e=>function(e,t,n){const o=e[ar("0x8")](ar("0x14"))||null;return t.checkAttribute(e,ar("0x14"))&&n!=o}(e,this[ar("0x16")].model[ar("0x0")],r)));e[ar("0x9")][ar("0x1")]((()=>{for(const e of s)n[ar("0x6")](e,{commandName:ar("0x14"),commandParams:[{value:r}]})}))})),n._descriptionFactory.registerDescriptionCallback((e=>{const{data:n}=e;if(n&&ar("0x14")==n.commandName){const e=n.commandParams[0][ar("0xc")];return{type:ar("0x4"),content:Yo(t,ar("0xb"),function(e){switch(e){case ar("0x3"):return Yo(t,ar("0xa"));case ar("0x11"):return Yo(t,"FORMAT_ALIGN_TO_RIGHT");case"center":return Yo(t,"FORMAT_ALIGN_TO_CENTER");case ar("0xe"):return Yo(t,"FORMAT_JUSTIFY_TEXT")}}(e))}}}))}}const lr=["createRangeOn","hasAttribute","mapper","getCustomProperty","markerName","isAtEnd","item","span","name","writer","getItems","insert","toViewElement","start","ck-suggestion-marker-","includes","push","isBlock","consumable","element","previousPosition","listIndent","addHighlight","markerRange","toViewPosition","nextSibling","createUIElement","ck-suggestion-marker--active","bindElementToMarker","isContent","listItem","test","model","type","parent","elementEnd"];var dr,ur;dr=lr,ur=374,function(e){for(;--e;)dr.push(dr.shift())}(++ur);const gr=function(e,t){return lr[e-=0]};function mr(e,t,n){const o=[];for(const r of t[gr("0x20")]())r[gr("0x17")](e)&&o[gr("0x2")](n[gr("0x16")](r));return o}function fr(e){const t=[];if(e.is("element",gr("0x10"))){let n=e[gr("0xb")];for(;n&&n.is(gr("0x5"),gr("0x10"))&&n.getAttribute(gr("0x7"))>0;)t.push(n),n=n[gr("0xb")]}return t}function hr(e,t,{showActiveMarker:n=!0}={}){const o=e.plugins.get("TrackChangesEditing");return(r,s,i)=>{if(!i[gr("0x4")][gr("0x11")](s.markerRange,r[gr("0x1e")]))return;const x=s[gr("0x9")].getWalker(),a=s[gr("0x9")][gr("0x23")],c=e[gr("0x12")].schema;let l=null,d=null,u=!1,g=!1;for(const e of x){const t=e[gr("0x1c")];u=u||c[gr("0xf")](t);const n=i[gr("0x18")][gr("0x22")](t);if(n&&n[gr("0x19")](gr("0x8")))return;gr("0x15")==e[gr("0x13")]&&c[gr("0x3")](t)&&!c.isLimit(t)&&(t.nextSibling||a[gr("0x1b")]?l&&l[gr("0x14")]==t||(l=t,m(e[gr("0x6")]),g=!0):d=d||e.previousPosition)}function m(e){const r=i[gr("0x1f")][gr("0xc")](gr("0x1d"),{class:gr("0x0")+t}),x=i.mapper[gr("0xa")](e);n&&o.activeMarkers[gr("0x1")](s[gr("0x1a")])&&i.writer.addClass(gr("0xd"),r),i[gr("0x1f")][gr("0x21")](x,r),i.mapper[gr("0xe")](r,s.markerName)}u||g||!d||m(d)}}const br=["FORMAT_UNDERLINE","*Format:* %0","superscript","slice","bold","format","toLowerCase","commands","_descriptionFactory","*Remove format:* %0","locale","value","underline","get","CodeEditing","document","BoldEditing","forceValue","has","getRanges","isCollapsed","commandName","FORMAT_SUPERSCRIPT","afterInit","plugins","enableCommand","strikethrough","FORMAT_SUBSCRIPT","from","code","FORMAT_CODE","subscript","UnderlineEditing","markInlineFormat","FORMAT_STRIKETHROUGH","FORMAT_BOLD"];var pr,Er;pr=br,Er=492,function(e){for(;--e;)pr.push(pr.shift())}(++Er);const _r=function(e,t){return br[e-=0]},Tr=[_r("0x1c"),"ItalicEditing",_r("0x8"),_r("0x1a"),"StrikethroughEditing","SubscriptEditing","SuperscriptEditing"];class Cr extends e.Plugin{[_r("0x23")](){const e=this.editor,t=e.model,n=e[_r("0x0")].get("TrackChangesEditing"),o=e[_r("0x16")];for(const o of Tr){if(!e[_r("0x0")][_r("0x1e")](o))continue;const r=o[_r("0xf")](0,-7)[_r("0x12")](),s=e[_r("0x13")][_r("0x19")](r);n[_r("0x1")](r,((e,o={})=>{const i=t[_r("0x1b")].selection;if(i[_r("0x20")])return void e(o);const x=void 0!==o[_r("0x1d")]?o.forceValue:!s[_r("0x17")];t.change((()=>{const e=Array[_r("0x4")](i[_r("0x1f")]());for(const o of e){const e=x?[o]:mr(r,o,t);for(const t of e)n[_r("0x9")](t,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(e,t){n[_r("0x14")].registerDescriptionCallback((n=>{const{data:r}=n;if(r&&r[_r("0x21")]===e)return r.commandParams[0][_r("0x1d")]?{type:_r("0x11"),content:Yo(o,_r("0xd"),t)}:{type:_r("0x11"),content:Yo(o,_r("0x15"),t)}}))}r(_r("0x10"),Yo(o,_r("0xb"))),r("italic",Yo(o,"FORMAT_ITALIC")),r(_r("0x18"),Yo(o,_r("0xc"))),r(_r("0x5"),Yo(o,_r("0x6"))),r(_r("0x2"),Yo(o,_r("0xa"))),r(_r("0x7"),Yo(o,_r("0x3"))),r(_r("0xe"),Yo(o,_r("0x22")))}}const yr=["name","filter","model","enableCommand","TrackChangesEditing","commandName","format","editor","*Format:* %0","from","parent","schema","value","plugins","forceValue","$root","getSelectedBlocks","ELEMENT_BLOCK_QUOTE","BlockQuoteEditing","locale","commandParams","checkChild","change","registerDescriptionCallback","get","blockQuote","afterInit","selection","*Remove format:* %0"];var kr,Ar;kr=yr,Ar=239,function(e){for(;--e;)kr.push(kr.shift())}(++Ar);const vr=function(e,t){return yr[e-=0]};class Rr extends e.Plugin{[vr("0x13")](){const e=this.editor,t=e[vr("0xc")];if(!e[vr("0x6")].has(vr("0xb")))return;const n=e[vr("0x6")][vr("0x11")](vr("0x1a")),o=this[vr("0x0")].commands[vr("0x11")](vr("0x12"));n[vr("0x19")](vr("0x12"),((t,r={})=>{const s=this[vr("0x0")][vr("0x18")].document[vr("0x14")],i=r&&void 0!==r.forceValue?r[vr("0x7")]:!o[vr("0x5")];let x=[];if(i){const t=Array.from(s[vr("0x9")]())[vr("0x17")]((e=>Ir(e)||function(e,t){const n=t.checkChild(e[vr("0x3")],"blockQuote"),o=t[vr("0xe")]([vr("0x8"),vr("0x12")],e);return n&&o}(e,this.editor[vr("0x18")][vr("0x4")])));x=I(t,e[vr("0x18")])}else{const t=Array[vr("0x2")](s.getSelectedBlocks())[vr("0x17")]((e=>Ir(e)));x=I(t,e[vr("0x18")])}e.model[vr("0xf")]((()=>{for(const e of x)n.markBlockFormat(e,{commandName:vr("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vr("0x10")]((e=>{const{data:n}=e;if(n&&"blockQuote"==n[vr("0x1b")]){const e=Yo(t,vr("0xa"));return n[vr("0xd")][0][vr("0x7")]?{type:vr("0x1c"),content:Yo(t,vr("0x1"),e)}:{type:"format",content:Yo(t,vr("0x15"),e)}}}))}}function Ir(e){return"blockQuote"==e.parent[vr("0x16")]}const Sr=["editor","afterInit","enableCommand","get","ckbox","TrackChangesEditing","plugins"];var Lr,Nr;Lr=Sr,Nr=324,function(e){for(;--e;)Lr.push(Lr.shift())}(++Nr);const Mr=function(e,t){return Sr[e-=0]};class wr extends e.Plugin{[Mr("0x6")](){const e=this[Mr("0x5")];e.commands.get(Mr("0x2"))&&e[Mr("0x4")][Mr("0x1")](Mr("0x3"))[Mr("0x0")](Mr("0x2"))}}const Or=["document","outdentCodeBlock","selection","rootElement","afterInit","markBlockFormat","commandName","indentCodeBlock","filter","parent","plugins","model","_descriptionFactory","forceValue","enableCommand","formatBlock","blockName","registerDescriptionCallback","getSelectedBlocks","format","codeBlock","editor","name","*Format:* %0","value","language","label","schema","config","commands","checkChild","TrackChangesEditing","locale","from","CodeBlock","*Remove format:* %0","isLimit","find","commandParams","ELEMENT_CODE_BLOCK"];var Fr,Pr;Fr=Or,Pr=167,function(e){for(;--e;)Fr.push(Fr.shift())}(++Pr);const Dr=function(e,t){return Or[e-=0]};class Br extends e.Plugin{[Dr("0x25")](){const e=this[Dr("0xe")];if(!e[Dr("0x3")].has(Dr("0x1b")))return;const t=e.plugins.get(Dr("0x18")),n=e[Dr("0x19")],o=e[Dr("0x15")].get("codeBlock").languages,r=e[Dr("0x16")].get(Dr("0xd"));t[Dr("0x7")](Dr("0x0")),t[Dr("0x7")](Dr("0x22")),t[Dr("0x7")](Dr("0xd"),((n,s={})=>{const i=e.model,x=e[Dr("0x4")][Dr("0x21")][Dr("0x23")],a=s&&void 0!==s[Dr("0x6")]?s[Dr("0x6")]:!r[Dr("0x11")];let c;s[Dr("0x12")]||(s[Dr("0x12")]=o[0].language),c=a?Array.from(x[Dr("0xb")]())[Dr("0x1")]((e=>{return jr(e)||(t=e,n=i[Dr("0x14")],!t.is(Dr("0x24"))&&!n[Dr("0x1d")](t)&&n[Dr("0x17")](t[Dr("0x2")],Dr("0xd")));var t,n})):Array[Dr("0x1a")](x[Dr("0xb")]()).filter((e=>jr(e)));const l=I(c,i);i.change((()=>{for(const e of l)t[Dr("0x26")](e,{commandName:Dr("0xd"),commandParams:[{...s,forceValue:a}],formatGroupId:Dr("0x9")})}))})),t._descriptionFactory.registerElementLabel(Dr("0xd"),(e=>Yo(n,Dr("0x20"),e))),t[Dr("0x5")][Dr("0xa")]((e=>{const t=n.t,{type:r,data:s}=e;if(Dr("0x8")==r&&s&&Dr("0xd")==s[Dr("0x27")]){const e=s[Dr("0x1f")][0].language,r=t(o[Dr("0x1e")]((t=>t.language===e))[Dr("0x13")]);return s.commandParams[0][Dr("0x6")]?{type:"format",content:Yo(n,Dr("0x10"),Yo(n,Dr("0x20"),1)+" ("+r+")")}:{type:Dr("0xc"),content:Yo(n,Dr("0x1c"),Yo(n,Dr("0x20"),1))}}}))}}function jr(e){return Dr("0xd")==e[Dr("0xf")]}const Ur=["plugins","addCommentThread","enableCommand","CommentsEditing","has","editor","get"];var Gr,Hr;Gr=Ur,Hr=175,function(e){for(;--e;)Gr.push(Gr.shift())}(++Hr);const zr=function(e,t){return Ur[e-=0]};class Wr extends e.Plugin{afterInit(){const e=this[zr("0x5")];e[zr("0x0")][zr("0x4")](zr("0x3"))&&e[zr("0x0")][zr("0x6")]("TrackChangesEditing")[zr("0x2")](zr("0x1"))}}var Vr=n(181);const Kr=["bind","end","setSelection","data","lock","requires","createRange","mapper","removeMarker:suggestion:deletion","high","rootName","enqueueChange","showSuggestionHighlights","isCollapsed","options","writer","root","modifySelection","$graveyard","merge","model","downcastDispatcher","fromRange","batch","document","createSelection","plugins","uiElement","editing","buffer","enableCommand","markerName","getFirstRange","commands","deleteForward","start","forward","detach","addMarker:suggestion:deletion","get","remove","init"];var qr,Xr;qr=Kr,Xr=329,function(e){for(;--e;)qr.push(qr.shift())}(++Xr);const $r=function(e,t){return Kr[e-=0]};class Qr extends e.Plugin{static get[$r("0xc")](){return[Vr.Delete]}[$r("0x6")](){const e=this.editor,t=e[$r("0x21")].get("TrackChangesEditing");t[$r("0x25")]("delete");const n=e[$r("0x28")][$r("0x4")]("deleteForward");t[$r("0x25")]($r("0x29"),((t,o={})=>{const r=e[$r("0x1b")][$r("0x20")](e[$r("0x1b")][$r("0x1f")].selection);r[$r("0x14")]&&e[$r("0x1b")][$r("0x18")](r,{direction:$r("0x1"),unit:o.unit});const s=r[$r("0x27")](),x=i.LiveRange[$r("0x1d")](s);let a;t(o),a=$r("0x19")==x[$r("0x17")][$r("0x11")]?e.model[$r("0xd")](s[$r("0x0")]):e[$r("0x1b")][$r("0xd")](x.start,x.end),x[$r("0x2")](),e[$r("0x1b")][$r("0x12")](n.buffer[$r("0x1e")],(e=>{n[$r("0x24")][$r("0xb")](),e[$r("0x9")](e[$r("0xd")](a[$r("0x8")])),n[$r("0x24")].unlock()}))})),e[$r("0x23")][$r("0x1c")].on($r("0x3"),hr(e,"merge"),{priority:$r("0x10")}),e[$r("0xa")].downcastDispatcher.on($r("0x3"),((t,n,o)=>{o[$r("0x15")][$r("0x13")]&&hr(e,$r("0x1a"),{showActiveMarker:!1})[$r("0x7")](this)(t,n,o)}),{priority:$r("0x10")}),e.editing[$r("0x1c")].on($r("0xf"),((e,t,n)=>{const o=n[$r("0xe")].markerNameToElements(t.markerName);if(o)for(const e of o)e.is($r("0x22"))&&(n.mapper.unbindElementFromMarkerName(e,t[$r("0x26")]),n[$r("0x16")][$r("0x5")](e))}),{priority:"high"})}}const Jr=["from","plugins","end","slice","ELEMENT_LIST_ITEM","model","ELEMENT_BULLETED_LIST","detach","documentList","getAttribute","createPositionAt","commandName","*Change to:* %0","listIndent","value","accept","createRange","listItemId","getRanges","execute","formatBlock","afterInit","listType","registerElementLabel","map","refresh","DocumentListEditing","forceValue","before","isObject","DocumentListUtils","fromRange","TrackChangesEditing","has","push","expandListBlocksToCompleteList","getSelectedBlocks","deletion","*Merge:* %0","ELEMENT_NUMBERED_LIST","ELEMENT_","mergeListItemBackward","*Outdent:* %0","indentList","commands","schema","previousSibling","_descriptionFactory","isFirstBlockOfListItem","bulletedList","after","start","splitListItemAfter","numberedList","setSelection","next","markMultiRangeBlockFormat","multipleBlocks","*Indent:* %0","change","nextSibling","*Format:* insert into %0","parent","getFirstRange","outdentList","_suggestionFactory","document","length","nodeAfter","markBlockFormat","commandParams","splitListItemBefore","enableCommand","format","selection","mergeListItemForward","get"];var Zr,Yr;Zr=Jr,Yr=374,function(e){for(;--e;)Zr.push(Zr.shift())}(++Yr);const es=function(e,t){return Jr[e-=0]};class ts extends e.Plugin{[es("0x20")](){const e=this.editor;if(!e.plugins[es("0x2c")](es("0x25")))return;const t=e.locale,n=e[es("0xc")][es("0xa")](es("0x2b")),o=e[es("0xc")][es("0xa")](es("0x29"));function r(t){return()=>{const r=e.commands[es("0xa")](t);let s=Array.from(e.model[es("0x0")].selection[es("0x2f")]());if(a(t)){s=o[es("0x2e")](s);const e=[];for(const t of s)o[es("0x3b")](t)&&e[es("0x2d")](t);s=e}e[es("0x10")][es("0x46")]((()=>{n[es("0x43")](s,{commandName:t,commandParams:[{forceValue:!r[es("0x19")]}],formatGroupId:es("0x21")},[],es("0x13"))}))}}function s(t){return()=>{const o=function(e){let t=Array[es("0xb")](e);const n=t.findIndex((e=>!e.hasAttribute(es("0x1c"))));return n>-1&&(t=t[es("0xe")](0,n)),t}(e[es("0x10")].document[es("0x8")][es("0x2f")]()),r=o[o[es("0x1")]-1],s=e[es("0x10")][es("0x38")][es("0x28")](r)?es("0x3d"):es("0xd"),i=e.model[es("0x1b")](e[es("0x10")][es("0x15")](o[0],es("0x27")),e[es("0x10")][es("0x15")](r,s));e[es("0x10")][es("0x46")]((()=>{n[es("0x3")](i,{commandName:t,commandParams:[],formatGroupId:es("0x21")},function(e){const t=new Set;for(const n of e){let e=n[es("0x47")];for(;e&&e[es("0x14")](es("0x18"))>n[es("0x14")](es("0x18"));)t.add(e),e=e[es("0x47")]}return Array[es("0xb")](t)}(o))}))}}function x(t){return()=>{const o=e[es("0x10")][es("0x0")][es("0x8")][es("0x2f")]()[es("0x42")]()[es("0x19")],r=e[es("0x10")].createPositionAt(o,"before"),s=e.model[es("0x15")](o,0),i=e[es("0x10")].createRange(r,s);e[es("0x10")][es("0x46")]((()=>{n[es("0x3")](i,{commandName:t,commandParams:[],formatGroupId:"listType"})}))}}function a(t){const n=e.commands.get("bulletedList")[es("0x19")],o=e[es("0x37")].get(es("0x40")).value;return es("0x40")===t?n:o}n.enableCommand(es("0x40"),r(es("0x40"))),n.enableCommand(es("0x3c"),r(es("0x3c"))),n[es("0x6")](es("0x36"),s(es("0x36"))),n.enableCommand(es("0x4b"),s(es("0x4b"))),n[es("0x6")](es("0x3f"),x(es("0x3f"))),n[es("0x6")](es("0x5"),x(es("0x5"))),n[es("0x3a")][es("0x22")]((function(t){const n=!e[es("0x10")][es("0x38")][es("0x28")](t),o=t[es("0x39")],r=t[es("0x47")],s=t.getAttribute(es("0x1c")),i=!o||o[es("0x14")](es("0x1c"))!==s,x=!r||r[es("0x14")](es("0x1c"))!==s;return n&&Boolean(s)&&i&&x}),(e=>Yo(t,es("0xf"),e))),n[es("0x3a")].registerDescriptionCallback((function(e){const{data:n}=e;if(!n)return;let o,r,s,i;switch(n[es("0x16")]){case es("0x3c"):s=n.commandParams[0][es("0x26")],i=a(n[es("0x16")]),o=s?es("0x48"):"*Format:* remove from %0",i&&(o="*Change to:* %0"),r={type:es("0x7"),content:Yo(t,o,Yo(t,es("0x11")))};break;case es("0x40"):s=n[es("0x4")][0].forceValue,i=a(n[es("0x16")]),o=s?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=es("0x17")),r={type:es("0x7"),content:Yo(t,o,Yo(t,es("0x32")))};break;case"indentList":o=es("0x45"),r={type:"format",content:Yo(t,o,Yo(t,es("0xf")))};break;case es("0x4b"):o=function(e){const t=e[es("0x4a")]();let n=t[es("0x3e")].nodeAfter;for(;n&&t.containsItem(n);){if(n.getAttribute("listIndent")>0)return!1;n=n[es("0x47")]}return!0}(e)?Yo(t,"*Format:* remove from %0",Yo(t,function(e){const t=e.getFirstRange().start[es("0x2")];return es("0x33")+t[es("0x14")](es("0x21")).toUpperCase()+"_LIST"}(e))):Yo(t,es("0x35"),Yo(t,es("0xf"))),r={type:es("0x7"),content:o};break;case es("0x34"):case es("0x9"):!1===n[es("0x44")]&&(o=es("0x31"),r={type:es("0x30"),content:Yo(t,o,Yo(t,es("0xf")))})}return r})),n[es("0x4c")].registerCustomCallback(es("0x1f"),"documentList",es("0x1a"),(function(t,n){const o=[];for(let n of t)n[es("0x3e")][es("0x2")]===n[es("0xd")][es("0x49")]&&(n=e[es("0x10")][es("0x1b")](e[es("0x10")][es("0x15")](n[es("0x3e")][es("0x2")],0))),o[es("0x2d")](n);e[es("0x10")][es("0x46")]((t=>{const r=e[es("0x10")][es("0x0")][es("0x8")],s=Array.from(r[es("0x1d")]())[es("0x23")]((e=>i.LiveRange[es("0x2a")](e)));t.setSelection(o),e[es("0x37")][es("0xa")](n[es("0x16")])[es("0x24")](),n[es("0x4")].push({forceDefaultExecution:!0}),e[es("0x1e")](n[es("0x16")],...n.commandParams),t[es("0x41")](s);for(const e of s)e[es("0x12")]()}))}))}}var ns=n(331);const os=["remove","split","addMarker:suggestion:insertion","writer","requires","removeMarker:suggestion:insertion","nextSibling","unbindElementFromMarkerName","model","data","mapper","bind","fire","ck-suggestion-marker-split","setSelection","hasClass","fromRange","options","commands","end","get","selection","markerNameToElements","document","downcastDispatcher","high","afterExecute","showSuggestionHighlights","getFirstPosition","createRange","enableCommand","editing","editor","enter","plugins","createPositionAt","parent"];var rs,ss;rs=os,ss=408,function(e){for(;--e;)rs.push(rs.shift())}(++ss);const is=function(e,t){return os[e-=0]};class xs extends e.Plugin{static get[is("0x3")](){return[ns.Enter]}init(){const e=this[is("0x1f")],t=e[is("0x21")][is("0x13")]("TrackChangesEditing"),n=e[is("0x11")][is("0x13")](is("0x20"));t[is("0x1d")](is("0x20"),(()=>{e.model.change((o=>{const r=e.model[is("0x16")][is("0x14")],s=r[is("0x1b")](),x=i.LiveRange[is("0xf")](r.getFirstRange());if(n.enterBlock(o)){const n=e[is("0x7")][is("0x22")](s[is("0x23")][is("0x5")],0),r=o[is("0x1c")](s,n);t.markInsertion(r)}else o[is("0xd")](o[is("0x1c")](x[is("0x12")]));x.detach(),n[is("0xb")](is("0x19"),{writer:o})}))})),e.editing[is("0x17")].on(is("0x1"),hr(e,"split"),{priority:is("0x18")}),e[is("0x1e")][is("0x17")].on(is("0x4"),((e,t,n)=>{const o=n[is("0x9")][is("0x15")](t.markerName);if(o)for(const e of o)e[is("0xe")](is("0xc"))&&(n[is("0x9")][is("0x6")](e,t.markerName),n[is("0x2")][is("0x24")](e))}),{priority:is("0x18")}),e[is("0x8")].downcastDispatcher.on(is("0x1"),((t,n,o)=>{o[is("0x10")][is("0x1a")]&&hr(e,is("0x0"),{showActiveMarker:!1})[is("0xa")](this)(t,n,o)}),{priority:is("0x18")})}}const as=["filter","enableCommand","FindAndReplaceUtils","findPrevious","handleFindCommand","model","editor","start","TrackChangesEditing","has","end","getMarkersGroup","createRange","replace","replaceAll","suggestion:deletion","_isInDeletionRange","createPositionAt","findNext","getRange","afterInit","FindAndReplaceEditing","find","get","bind","plugins"];var cs,ls;cs=as,ls=194,function(e){for(;--e;)cs.push(cs.shift())}(++ls);const ds=function(e,t){return as[e-=0]};class us extends e.Plugin{[ds("0x8")](){if(!this.editor[ds("0xd")][ds("0x17")](ds("0x9")))return;const e=this[ds("0x14")][ds("0xd")][ds("0xb")](ds("0x16"));e[ds("0xf")](ds("0xa"),this[ds("0x12")][ds("0xc")](this)),e[ds("0xf")](ds("0x6")),e[ds("0xf")](ds("0x11")),e[ds("0xf")](ds("0x1")),e[ds("0xf")](ds("0x2"))}handleFindCommand(e,t,n={}){const o=this.editor[ds("0xd")][ds("0xb")](ds("0x10"));void 0!==n&&e((e=>("string"==typeof t?o.findByTextCallback(t,n):t)(e)[ds("0xe")]((t=>!1===this._isInDeletionRange(t,e.item)))),n)}[ds("0x4")](e,t){const n=this[ds("0x14")].model[ds("0x0")](this[ds("0x14")][ds("0x13")][ds("0x5")](t,e[ds("0x15")]),this[ds("0x14")][ds("0x13")][ds("0x5")](t,e[ds("0x18")]));for(const e of this.editor[ds("0x13")].markers[ds("0x19")](ds("0x3")))if(null!==n.getIntersection(e[ds("0x7")]()))return!0;return!1}}const gs=["editor","value","model","fontFamily","title","config","get","trim","_descriptionFactory","selection","fontSize.options","fontBackgroundColor","getRanges","FontSizeEditing","*Reset font color*","markInlineFormat","TrackChangesEditing","find","*Set font color:* %0","has","_enableCommand","isCollapsed","*Reset font background color*","plugins","fontBackgroundColor.colors","afterInit","fontColor","*Reset font size*","locale","label","format","fontColor.colors","document","*Set font background color:* %0","toLowerCase","commandName","commandParams","registerDescriptionCallback","normalizeSizeOptions","FontFamilyEditing","from","fontSize","*Reset font family*","FontColorEditing"];var ms,fs;ms=gs,fs=250,function(e){for(;--e;)ms.push(ms.shift())}(++fs);const hs=function(e,t){return gs[e-=0]},bs=[{pluginName:hs("0x1b"),commandName:hs("0xb")},{pluginName:hs("0x9"),commandName:"fontFamily"},{pluginName:hs("0xd"),commandName:hs("0x28")},{pluginName:"FontBackgroundColorEditing",commandName:hs("0x19")}];class ps extends e.Plugin{[hs("0x27")](){const e=this[hs("0xe")][hs("0x2a")];for(const{pluginName:e,commandName:t}of bs)this[hs("0xe")][hs("0x25")][hs("0x21")](e)&&this._enableCommand(t);this[hs("0xe")][hs("0x25")][hs("0x14")](hs("0x1e"))[hs("0x16")][hs("0x7")]((t=>{const n=e.t,{data:o}=t;if(null!=o){if("fontSize"==o[hs("0x5")]){const t=o[hs("0x6")][0].value;if(t){const o=n(this[hs("0xe")][hs("0x25")][hs("0x14")]("FontSize")[hs("0x8")](this[hs("0xe")].config.get(hs("0x18"))).find((e=>e[hs("0x10")]==t))[hs("0x12")])[hs("0x4")]();return{type:hs("0x0"),content:Yo(e,"*Set font size:* %0",o)}}return{type:hs("0x0"),content:Yo(e,hs("0x29"))}}if(hs("0x11")==o.commandName){const t=o[hs("0x6")][0][hs("0xf")];return t?{type:"format",content:Yo(e,"*Set font family:* %0",t)}:{type:hs("0x0"),content:Yo(e,hs("0xc"))}}if(hs("0x28")==o.commandName){const t=o[hs("0x6")][0][hs("0xf")];if(t){const o=(0,r.normalizeColorOptions)(this[hs("0xe")][hs("0x13")][hs("0x14")](hs("0x1")))[hs("0x1f")]((e=>e.model==t));let s=t,i="";return o&&(s=o[hs("0x2b")],i=n(s)[hs("0x4")]()),{type:hs("0x0"),content:Yo(e,hs("0x20"),i).trim(),color:{value:t,title:i||s}}}return{type:"format",content:Yo(e,hs("0x1c"))}}if(hs("0x19")==o[hs("0x5")]){const t=o[hs("0x6")][0][hs("0xf")];if(t){const o=(0,r.normalizeColorOptions)(this[hs("0xe")].config[hs("0x14")](hs("0x26"))).find((e=>e[hs("0x10")]==t));let s=t,i="";return o&&(s=o[hs("0x2b")],i=n(s)[hs("0x4")]()),{type:hs("0x0"),content:Yo(e,hs("0x3"),i)[hs("0x15")](),color:{value:t,title:i||s}}}return{type:hs("0x0"),content:Yo(e,hs("0x24"))}}}}))}[hs("0x22")](e){const t=this[hs("0xe")];t[hs("0x25")][hs("0x14")](hs("0x1e")).enableCommand(e,((n,o={})=>{const r=t[hs("0x10")][hs("0x2")][hs("0x17")],s=o[hs("0xf")];r[hs("0x23")]?n(o):t[hs("0x10")].change((()=>{const n=Array[hs("0xa")](r[hs("0x1a")]());for(const o of n){const n=s?[o]:mr(e,o,t[hs("0x10")]);for(const o of n)t[hs("0x25")][hs("0x14")](hs("0x1e"))[hs("0x1d")](o,{commandName:e,commandParams:[{value:s}]})}}))}))}}const Es=["forward","getSelectedBlocks","label","schema","fontBackgroundColor","isBlock","isFormatting","*Remove all formatting*","fontSize","FontSize","commands","markInlineFormat","change","split","TrackChangesEditing","fontSize.options","selection","getFirstPosition","join","model","get","entries","length","locale","fontColor.colors","title","commandName","getItems","boolean","getAttributes","registerDescriptionCallback","toLowerCase","pasteFormat","from","enableCommand","find","charAt","word","*Set format to:* %0","backward","getRanges","getLastPosition","format","_descriptionFactory","config","plugins","modifySelection","commandParams"];var _s,Ts;_s=Es,Ts=381,function(e){for(;--e;)_s.push(_s.shift())}(++Ts);const Cs=function(e,t){return Es[e-=0]};class ys extends e.Plugin{afterInit(){const e=this.editor,n=e[Cs("0x16")],o=n.document[Cs("0x13")],r=e[Cs("0x0")].get(Cs("0x11")),s=e.locale,i=e[Cs("0xd")].get("copyFormat"),x=e[Cs("0xd")][Cs("0x17")](Cs("0x23"));i&&x&&(r[Cs("0x25")](Cs("0x23"),((e,s={})=>{const i=s;n[Cs("0xf")]((()=>{const e=Array[Cs("0x24")](o[Cs("0x2b")]()),s=o.isCollapsed?[ks(n,o)]:e;if(!!(0,t.first)(function*(e,n){const o=e=>!!(0,t.first)(function*(e,t){for(const[n]of e[Cs("0x20")]()){const e=t.getAttributeProperties(n);e&&e[Cs("0x9")]&&(yield n)}}(e,n));for(const t of e[Cs("0x2b")]())for(const e of t[Cs("0x1e")]())!n[Cs("0x8")](e)&&o(e)&&(yield e);for(const t of e[Cs("0x4")]())o(t)&&(yield t);o(e)&&(yield e)}(o,n[Cs("0x6")]))||0!==Object.keys(i)[Cs("0x19")])for(const e of s)r[Cs("0xe")](e,{commandName:Cs("0x23"),commandParams:[i]})}))})),r[Cs("0x2e")][Cs("0x21")]((t=>{const{data:n}=t;if(n&&Cs("0x23")===n[Cs("0x1d")]){const t=[],o=n[Cs("0x2")][0];for(const[n,r]of Object[Cs("0x18")](o))t.push(As(e,n,r));return t[Cs("0x19")]?{type:Cs("0x2d"),content:Yo(s,Cs("0x29"),t[Cs("0x15")](", "))}:{type:Cs("0x2d"),content:Yo(s,Cs("0xa"))}}})),e[Cs("0x0")][Cs("0x17")](Cs("0x11"))[Cs("0x25")]("copyFormat"))}}function ks(e,t){const n=e.createSelection(t);e.modifySelection(n,{unit:"word",direction:Cs("0x2a")});const o=n[Cs("0x14")]();e[Cs("0x1")](n,{unit:Cs("0x28"),direction:Cs("0x3")});const r=n[Cs("0x2c")]();return e.createRange(o,r)}function As(e,t,n){const o=e[Cs("0x1a")].t,s=t[Cs("0x10")](/(?=[A-Z])/).join(" "),i=o(s[Cs("0x27")](0).toUpperCase()+s.slice(1))[Cs("0x22")]();if(Cs("0x1f")==typeof n)return i;if("fontColor"===t||Cs("0x7")===t){const t=(0,r.normalizeColorOptions)(e[Cs("0x2f")][Cs("0x17")](Cs("0x1b")))[Cs("0x26")]((e=>e[Cs("0x16")]==n));return i+" ("+(t?o(t[Cs("0x5")])[Cs("0x22")]():n)+")"}if(Cs("0xb")===t&&isNaN(parseFloat(n))){const t=e.plugins[Cs("0x17")](Cs("0xc")).normalizeSizeOptions(e.config[Cs("0x17")](Cs("0x12")))[Cs("0x26")]((e=>e.model==n));return i+" ("+(t?o(t[Cs("0x1c")])[Cs("0x22")]():n)+")"}return i+" ("+n+")"}const vs=["markBlockFormat","config","value","*Change to:* %0","ELEMENT_HEADING_CUSTOM","has","blockName","TrackChangesEditing","isObject","document","match","registerElementLabel","model","selection","from","schema","_descriptionFactory","HeadingEditing","name","format","plugins","title","find","heading","enableCommand","parent","commandName","locale","ELEMENT_HEADING","editor","get","getSelectedBlocks","formatBlock","paragraph"];var Rs,Is;Rs=vs,Is=158,function(e){for(;--e;)Rs.push(Rs.shift())}(++Is);const Ss=function(e,t){return vs[e-=0]};class Ls extends e.Plugin{afterInit(){const e=this[Ss("0x7")],t=e[Ss("0x5")],n=e[Ss("0xd")][Ss("0x8")]("heading.options");if(!e[Ss("0x20")][Ss("0x11")](Ss("0x1d")))return;const o=e[Ss("0x20")][Ss("0x8")](Ss("0x13"));o[Ss("0x2")](Ss("0x1"),((t,n)=>{const r=n[Ss("0xe")],s=Array[Ss("0x1a")](this[Ss("0x7")].model[Ss("0x15")][Ss("0x19")][Ss("0x9")]()).filter((e=>{return t=e,n=r,(o=this[Ss("0x7")][Ss("0x18")][Ss("0x1b")]).checkChild(t[Ss("0x3")],n)&&!o[Ss("0x14")](t)&&t[Ss("0x1e")]!=n;var t,n,o}));e.model.change((()=>{for(const e of s)o[Ss("0xc")](e,{commandName:Ss("0x1"),commandParams:[n],formatGroupId:Ss("0x12")},fr(e))}))}));for(const e of n)Ss("0xb")!=e[Ss("0x18")]&&o[Ss("0x1c")][Ss("0x17")](e[Ss("0x18")],(t=>{const n=Ns(e[Ss("0x18")]);return null!==n?r(t,n):s(t,e[Ss("0x21")])}));function r(e,n){return Yo(t,Ss("0x6"),[e,n])}function s(e,n){return Yo(t,Ss("0x10"),[e,n])}o[Ss("0x1c")].registerDescriptionCallback((e=>{const{type:o,data:i}=e;if(Ss("0xa")==o&&i&&Ss("0x1")==i[Ss("0x4")]){const e=i.commandParams[0][Ss("0xe")],o=Ns(e);if(null!==o)return{type:Ss("0x1f"),content:Yo(t,Ss("0xf"),r(1,o))};const x=n[Ss("0x0")]((t=>t[Ss("0x18")]===e)).title;return{type:"format",content:Yo(t,Ss("0xf"),s(1,x))}}}))}}function Ns(e){const t=e[Ss("0x16")](/^heading(\d+)$/);return t?t[1]:null}const Ms=["get","getLastMatchingPosition","push","HighlightEditing","value","title","formatInline","hasAttribute","model","config","getRanges","createRange","afterInit","plugins","item","_descriptionFactory","FORMAT_HIGHLIGHT","format","markInlineFormat","getAttribute","change","editor","document","getFirstPosition","highlight.options","*Set highlight:* %0","color","find","*Remove highlight*","highlight","backward","TrackChangesEditing","enableCommand","toLowerCase"];var ws,Os;ws=Ms,Os=343,function(e){for(;--e;)ws.push(ws.shift())}(++Os);const Fs=function(e,t){return Ms[e-=0]};class Ps extends e.Plugin{[Fs("0x9")](){const e=this[Fs("0x12")];if(!e[Fs("0xa")].has(Fs("0x0")))return;const t=e[Fs("0xa")][Fs("0x1f")](Fs("0x1c"));t[Fs("0x1d")]("highlight",((n,o={})=>{const r=e[Fs("0x5")][Fs("0x13")].selection,s=r[Fs("0x10")](Fs("0x1a"));let i=o[Fs("0x1")],x=[];if(r.isCollapsed){const t=r[Fs("0x14")]();if(!r[Fs("0x4")]("highlight"))return void n(o);{const n=e=>e[Fs("0xb")][Fs("0x10")]("highlight")===s,o=t.getLastMatchingPosition(n,{direction:Fs("0x1b")}),r=t[Fs("0x20")](n);x=[e[Fs("0x5")][Fs("0x8")](o,r)],i==s&&(i=null)}}else for(const t of r[Fs("0x7")]())i?x[Fs("0x21")](t):x[Fs("0x21")](...mr(Fs("0x1a"),t,e[Fs("0x5")]));e[Fs("0x5")][Fs("0x11")]((()=>{for(const e of x)t[Fs("0xf")](e,{commandName:Fs("0x1a"),commandParams:[{value:i}]})}))}));const n=e.locale;t[Fs("0xc")].registerDescriptionCallback((t=>{const{type:o,data:r}=t;if(Fs("0x3")==o&&r&&Fs("0x1a")==r.commandName){const t=n.t,o=r.commandParams[0][Fs("0x1")];if(o){const r=e[Fs("0x6")][Fs("0x1f")](Fs("0x15"))[Fs("0x18")]((e=>e[Fs("0x5")]==o)),s=t(r[Fs("0x2")])[Fs("0x1e")]();return{type:Fs("0xe"),content:Yo(n,Fs("0x16"),s),color:{value:r[Fs("0x17")],title:r[Fs("0x2")]}}}return{type:Fs("0xe"),content:Yo(n,Fs("0x19"),Yo(n,Fs("0xd")))}}}))}}const Ds=["createContainerElement","editor","createPositionAt","has","HorizontalLineEditing","dataDowncast","addClass","insert","plugins","afterInit","ELEMENT_HORIZONTAL_LINE","TrackChangesEditing","showSuggestionHighlights","horizontalLine","enableCommand","registerElementLabel","elementToStructure","get","high"];var Bs,js;Bs=Ds,js=101,function(e){for(;--e;)Bs.push(Bs.shift())}(++js);const Us=function(e,t){return Ds[e-=0]};class Gs extends e.Plugin{[Us("0x3")](){const e=this[Us("0xe")];if(!e[Us("0x2")][Us("0x10")](Us("0x11")))return;e.plugins[Us("0xb")](Us("0x5"))[Us("0x8")](Us("0x7"));const t=e[Us("0x2")][Us("0xb")](Us("0x5")),n=e.locale;t._descriptionFactory[Us("0x9")](Us("0x7"),(e=>Yo(n,Us("0x4"),e))),e.conversion.for(Us("0x12"))[Us("0xa")]({model:"horizontalLine",view:(e,{writer:t,options:n})=>{if(!n[Us("0x6")])return null;const o=t[Us("0xd")]("div"),r=t.createEmptyElement("hr");return t[Us("0x0")]("ck-horizontal-line",o),t[Us("0x1")](t[Us("0xf")](o,0),r),o},converterPriority:Us("0xc")})}}const Hs=["ELEMENT_HTML_EMBED","_descriptionFactory","TrackChangesEditing","commandName","view","markBlockFormat","selection","getCustomProperty","get","rawHtmlApi","model","element","HtmlEmbed","getSelectedElement","editing","htmlEmbed","document","editor","*Change %0 content*","locale","registerElementLabel","change","format","plugins","value","rawHtml"];var zs,Ws;zs=Hs,Ws=203,function(e){for(;--e;)zs.push(zs.shift())}(++Ws);const Vs=function(e,t){return Hs[e-=0]};class Ks extends e.Plugin{afterInit(){const e=this[Vs("0x16")];if(!e[Vs("0x2")].has(Vs("0x11")))return;const t=e[Vs("0x2")][Vs("0xd")](Vs("0x7")),n=e[Vs("0x18")],o=e[Vs("0x13")][Vs("0x9")].document[Vs("0xb")];t[Vs("0x6")][Vs("0x19")](Vs("0x4"),(e=>Yo(n,Vs("0x5"),e))),e[Vs("0x2")][Vs("0xd")](Vs("0x7")).enableCommand("htmlEmbed",((n,r)=>{const s=e[Vs("0xf")],i=s[Vs("0x15")][Vs("0xb")];s[Vs("0x0")]((()=>{const e=function(e){const t=e[Vs("0x12")]();return t&&t.is(Vs("0x10"),Vs("0x4"))?e[Vs("0x12")]():null}(i);if(!e)return void n(null);const s=e.getAttribute(Vs("0x3"))||"";void 0!==r&&r!==s&&(t[Vs("0xa")](e,{commandName:Vs("0x14"),commandParams:[r]}),o[Vs("0x12")]()[Vs("0xc")](Vs("0xe")).cancel())}))})),t[Vs("0x6")].registerDescriptionCallback((e=>{const{data:t}=e;if(t&&Vs("0x14")==t[Vs("0x8")]){const e=Yo(n,Vs("0x5"));return{type:Vs("0x1"),content:Yo(n,Vs("0x17"),e)}}}))}}const qs=["imageStyle","imageBlock","refresh","end","width","ImageEditing","locale","from","addObject","commandReversedParams","ImageInlineEditing","imageTextAlternative","formatBlock","chain","registerCustomCallback","type","alt","getClosestSelectedImageElement","createRangeOn","toLowerCase","Block image to inline image","commands","Inline image to block image","previous","isEqual","find","registerElementLabel","schema","plugins","author","imageTypeBlock","ELEMENT_CAPTION","has","getCaptionFromImageModelElement","fromPosition","insertImage","ImageUploadEditing","isInContent","uploadImage","isCollapsed","enableCommand","*Reset image width*","get","hasAttribute","convertInlineImageToBlock","deletion","toPrevious","accept","ImageBlockEditing","subType","discard","createRange","isBlockImage","ImageUtils","forceDefaultExecution","imageCaption","document","forward","_suggestionFactory","_descriptionFactory","getFirstRange","ImageCaptionUtils","getChangedMarkers","getContainedElement","*Set image width:* %0","name","ImageCaptionEditing","commandName","registerDescriptionCallback","backward","registerPostFixer","model","afterInit","getSuggestions","newRange","suggestion","ImageStyleEditing","getNearestSelectionRange","value","resizeImage","_splitMarkerName","change","markInlineFormat","head","start","isOwn","getAttribute","*Format:* %0","newValue","toNext","isBefore","Users","formatInline","imageStylePostApply","format","join","discardSuggestion","selection","isIntersecting","commandParams","*Set image text alternative:* %0","insertion","imageStylePreApply","findIndex","imageTypeInline","ELEMENT_INLINE_IMAGE","markInsertion","markBlockFormat","markDeletion","convertBlockImageToInline","getSuggestion","TrackChangesEditing","differ","FORMAT_SIDE_IMAGE","length","detach"];var Xs,$s;Xs=qs,$s=444,function(e){for(;--e;)Xs.push(Xs.shift())}(++$s);const Qs=function(e,t){return qs[e-=0]};class Js extends e.Plugin{[Qs("0x5c")](){const e=this.editor;if(!e.plugins.has(Qs("0x19")))return;const n=e[Qs("0x30")][Qs("0x3e")](Qs("0xf")),o=e.plugins[Qs("0x3e")](Qs("0x49")),r={},s=e[Qs("0x1a")];if(n[Qs("0x3c")](Qs("0x37")),n[Qs("0x4f")].registerElementLabel(Qs("0x15"),(e=>Yo(s,"ELEMENT_IMAGE",e))),n[Qs("0x4f")][Qs("0x2e")]("imageInline",(e=>Yo(s,Qs("0x9"),e))),n[Qs("0x4f")][Qs("0x2e")]("caption",(()=>Yo(s,Qs("0x33")))),e[Qs("0x30")][Qs("0x34")](Qs("0x38"))&&n[Qs("0x3c")](Qs("0x3a")),e[Qs("0x30")][Qs("0x34")](Qs("0x44"))&&e[Qs("0x30")][Qs("0x34")](Qs("0x1e"))&&(n[Qs("0x3c")](Qs("0x8"),((t,r)=>{const s=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")].selection);e.model[Qs("0x65")]((()=>{n[Qs("0xb")](s,{commandName:Qs("0x8"),commandParams:[r]},[],"convertBlockImageToInline")}))})),n[Qs("0x3c")](Qs("0x32"),((t,r)=>{e[Qs("0x5b")].change((s=>{let x=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")].selection),a=s[Qs("0x26")](x);const c=i.LivePosition[Qs("0x36")](a[Qs("0x68")],Qs("0x42")),l=i.LivePosition[Qs("0x36")](a[Qs("0x17")],Qs("0x6d"));n[Qs("0x4a")]((()=>t(r))),x=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),a=s.createRangeOn(x);const d=s[Qs("0x47")](c,l);c[Qs("0x13")](),l[Qs("0x13")](),n[Qs("0xb")](x,{commandName:Qs("0x8"),commandParams:[]},[],Qs("0x40")),d[Qs("0x68")][Qs("0x6e")](a[Qs("0x68")])&&n[Qs("0xa")](s[Qs("0x47")](d.start,a[Qs("0x68")]),"convertInlineImageToBlock"),a[Qs("0x17")][Qs("0x6e")](d.end)&&n[Qs("0xa")](s[Qs("0x47")](a[Qs("0x17")],d[Qs("0x17")]),Qs("0x40"))}))})),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),"convertInlineImageToBlock",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock","convertInlineImageToBlock",Qs("0x43"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x40"),Qs("0x46"),n[Qs("0x4e")].getSuggestionCallback("formatBlock","",Qs("0x43"))),n[Qs("0x4e")][Qs("0x22")](Qs("0x5"),"convertInlineImageToBlock",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("insertion",Qs("0x40"),Qs("0x46"),(([t])=>{const o=n[Qs("0x4e")].getSuggestionCallback(Qs("0x5"),"",Qs("0x46"));let r=t[Qs("0x68")],s=t[Qs("0x17")];const i=e[Qs("0x5b")].schema[Qs("0x61")](r,Qs("0x59")),x=e[Qs("0x5b")][Qs("0x2f")].getNearestSelectionRange(s,Qs("0x4d"));i[Qs("0x3b")]&&(r=i[Qs("0x68")]),x.isCollapsed&&(s=x.end),o([e.model.createRange(r,s)])})),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),Qs("0x40"),"chain",c),n[Qs("0x4e")][Qs("0x22")](Qs("0x5"),Qs("0x40"),Qs("0x21"),c)),e[Qs("0x30")][Qs("0x34")](Qs("0x56"))&&(n[Qs("0x3c")]("toggleImageCaption",((t,r)=>{const s=e.plugins[Qs("0x3e")](Qs("0x51"));let i=o[Qs("0x25")](e.model[Qs("0x4c")][Qs("0x1")]),x=s[Qs("0x35")](i);e[Qs("0x5b")][Qs("0x65")]((()=>{if(x)return void n[Qs("0xc")](e[Qs("0x5b")][Qs("0x26")](x));const a=o[Qs("0x48")](i);t(r),i=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),x=s[Qs("0x35")](i),n[Qs("0xa")](e[Qs("0x5b")][Qs("0x26")](x),a?null:Qs("0x4b"))}))})),n[Qs("0x4e")].registerCustomCallback("insertion",Qs("0x4b"),Qs("0x21"),c)),e[Qs("0x30")][Qs("0x34")](Qs("0x60"))){n.enableCommand(Qs("0x14"),((r,s)=>{const i=e[Qs("0x30")][Qs("0x3e")](Qs("0x6f")).me,x=e[Qs("0x29")][Qs("0x3e")](Qs("0x14"));let a=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),c=e[Qs("0x5b")][Qs("0x26")](a),l=x[Qs("0x62")];if(l==s[Qs("0x62")])return;const d={commandName:Qs("0x14"),commandParams:[s],formatGroupId:(0,t.uid)()};e[Qs("0x5b")][Qs("0x65")]((()=>{if(n[Qs("0x5d")]().filter((e=>e[Qs("0x39")]&&i==e[Qs("0x31")]&&("formatBlock"==e[Qs("0x23")]||"formatInline"==e[Qs("0x23")])&&(Qs("0x6")==e[Qs("0x45")]||"imageStylePostApply"==e[Qs("0x45")])&&e[Qs("0x50")]()[Qs("0x2c")](c))).forEach((e=>n.discardSuggestion(e[Qs("0x67")]))),a=o[Qs("0x25")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),c=e[Qs("0x5b")][Qs("0x26")](a),x[Qs("0x16")](),e[Qs("0x29")].get(Qs("0x8")).refresh(),e[Qs("0x29")][Qs("0x3e")]("imageTypeBlock")[Qs("0x16")](),l=x[Qs("0x62")],l!=s.value)return o.isInlineImage(a)&&x.shouldConvertImageType(s[Qs("0x62")],a)?(r(s),a=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null}]},[],Qs("0x6"))):void(o[Qs("0x48")](a)?n[Qs("0xb")](a,d,[],Qs("0x71")):n[Qs("0x66")](c,d,Qs("0x71")))}))}));for(const t of e[Qs("0x30")][Qs("0x3e")](Qs("0x60")).normalizedStyles)r[t[Qs("0x55")]]=t.title[Qs("0x27")]();n[Qs("0x4e")].registerCustomCallback(Qs("0x20"),"imageStylePreApply",Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x71"),Qs("0x73"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")](Qs("0x70"),"imageStylePostApply",Qs("0x73"),(()=>!1)),n._suggestionFactory[Qs("0x22")]("formatBlock",Qs("0x6"),Qs("0x43"),(()=>!1)),n[Qs("0x4e")][Qs("0x22")](Qs("0x20"),Qs("0x6"),Qs("0x46"),((e,t)=>{n[Qs("0x4e")].getSuggestionCallback(Qs("0x20"),"",Qs("0x43"))(e,{commandName:t[Qs("0x57")],commandParams:t[Qs("0x1d")]})})),n[Qs("0x4e")][Qs("0x22")]("formatBlock",Qs("0x6"),Qs("0x21"),c)}const x=[{type:"formatBlock",subType:Qs("0x6")},{type:Qs("0x5"),subType:Qs("0x4b")},{type:Qs("0x20"),subType:Qs("0x40")},{type:"insertion",subType:Qs("0x40")}];function a(e,t){const r=x[Qs("0x7")]((({type:t,subType:n})=>e[Qs("0x23")]==t&&e.subType==n)),s=x[Qs("0x7")]((({type:e,subType:n})=>t[Qs("0x23")]==e&&t[Qs("0x45")]==n));if(r<0||s<0)return!1;const i=e.getFirstRange(),a=t.getFirstRange();if((0==r||1==r)&&2==s&&i[Qs("0x2")](a))return!0;if(2==r&&3==s){const e=n._findSuggestions(i,Qs("0x5")).filter((({suggestion:e,meta:t})=>t[Qs("0x69")]&&Qs("0x40")==e.subType));if(e[Qs("0x12")]>1&&a[Qs("0x17")][Qs("0x2c")](i[Qs("0x68")]))return!0;if(1==e[Qs("0x12")]&&(i[Qs("0x68")][Qs("0x2c")](a.end)||i[Qs("0x17")][Qs("0x2c")](a[Qs("0x68")])))return!0}if(3==r&&3==s&&i[Qs("0x68")][Qs("0x6e")](a[Qs("0x68")])){const e=i[Qs("0x17")].nodeAfter,t=a[Qs("0x68")].nodeBefore;return o.isBlockImage(e)&&e===t}return!1}function c(e,t){return a(e,t)?[e,t]:a(t,e)?[t,e]:null}e[Qs("0x5b")][Qs("0x4c")][Qs("0x5a")]((()=>{let t=!1;const r=Array[Qs("0x1b")](e[Qs("0x5b")][Qs("0x4c")][Qs("0x10")][Qs("0x52")]());for(const{name:e,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Qs("0x64")](e);if(Qs("0x5f")==r&&n.hasSuggestion(a)){if("formatBlock"==i&&("imageStylePreApply"==x||Qs("0x71")==x)){const e=n.getSuggestion(a);if(s[Qs("0x5e")]){const r=e[Qs("0x50")]()[Qs("0x53")]();if(o[Qs("0x48")](r))continue;n[Qs("0x0")](e),t=!0}}if("insertion"==i&&"imageCaption"==x&&!s[Qs("0x5e")]){const e=n[Qs("0xe")](a);e.next&&e.next.isInContent&&(n.discardSuggestion(e.next),t=!0)}}}return t})),e[Qs("0x30")].has("ImageResize")&&n[Qs("0x3c")](Qs("0x63"),((t,r)=>{const s=o[Qs("0x25")](e[Qs("0x5b")].document[Qs("0x1")]);s[Qs("0x6a")](Qs("0x18"))!=r[Qs("0x18")]&&e[Qs("0x5b")].change((()=>{n[Qs("0xb")](s,{commandName:Qs("0x63"),commandParams:[r]})}))})),e.plugins[Qs("0x34")]("ImageTextAlternativeEditing")&&n[Qs("0x3c")](Qs("0x1f"),((t,r)=>{const s=o.getClosestSelectedImageElement(e[Qs("0x5b")][Qs("0x4c")][Qs("0x1")]);(s[Qs("0x3f")](Qs("0x24"))?s[Qs("0x6a")](Qs("0x24")):"")!=r[Qs("0x6c")]&&e[Qs("0x5b")][Qs("0x65")]((()=>{n[Qs("0xb")](s,{commandName:Qs("0x1f"),commandParams:[r]})}))})),n._descriptionFactory[Qs("0x58")]((e=>{if(x[Qs("0x2d")]((({type:t,subType:n})=>e[Qs("0x23")]==t&&e[Qs("0x45")]==n)))return e[Qs("0x2b")]?{}:void 0})),n[Qs("0x4f")][Qs("0x58")]((e=>{if(Qs("0x5")==e.type||Qs("0x41")==e[Qs("0x23")]){const t=e[Qs("0x53")]();if(t&&t.is("element","caption"))return{type:Qs("0x5")==e[Qs("0x23")]?Qs("0x1c"):"removeObject",element:t,quantity:1}}})),n[Qs("0x4f")].registerDescriptionCallback((e=>Qs("0x20")==e[Qs("0x23")]&&Qs("0x40")==e.subType?{type:"format",content:Qs("0x2a")}:Qs("0x20")==e.type&&Qs("0xd")==e.subType?{type:Qs("0x72"),content:Qs("0x28")}:void 0)),n[Qs("0x4f")].registerDescriptionCallback((e=>{const{data:t}=e;if(t){if(Qs("0x14")==t[Qs("0x57")]){const e=t[Qs("0x3")][0][Qs("0x62")];return n="side"===e?Yo(s,Qs("0x11")):r[e]||e,{type:Qs("0x72"),content:Yo(s,Qs("0x6b"),n)}}if(Qs("0x1f")==t[Qs("0x57")]){const e=t[Qs("0x3")][0][Qs("0x6c")];return e?{type:"format",content:Yo(s,Qs("0x4"),'"'+e+'"')}:{type:Qs("0x72"),content:Yo(s,"*Remove image text alternative*")}}if(Qs("0x63")==t[Qs("0x57")]){const e=t.commandParams[0][Qs("0x18")];return e?{type:Qs("0x72"),content:Yo(s,Qs("0x54"),e)}:{type:"format",content:Yo(s,Qs("0x3d"))}}}var n}))}}const Zs=["discard","enableCommand","*Format:* replace image URL","_descriptionFactory","author","getContainedElement","formatBlock","afterInit","plugins","_suggestionFactory","commandName","getSuggestionCallback","ImageEditing","change","getAttribute","handleSuggestionDescription","handleReplaceImageCommand","locale","src","format","data","registerCustomCallback","replaceImageSource","model","editor","get","getSuggestions","has","registerDescriptionCallback","markBlockFormat","selection"];var Ys,ei;Ys=Zs,ei=114,function(e){for(;--e;)Ys.push(Ys.shift())}(++ei);const ti=function(e,t){return Zs[e-=0]};class ni extends e.Plugin{[ti("0x11")](){if(!this.editor[ti("0x12")][ti("0x6")](ti("0x16")))return;const e=this[ti("0x3")][ti("0x12")][ti("0x4")]("TrackChangesEditing");e[ti("0xb")](ti("0x1"),((e,t)=>this[ti("0x1a")](e,t))),e[ti("0x13")][ti("0x0")](ti("0x10"),ti("0x1"),"accept",e._suggestionFactory[ti("0x15")]("formatBlock",null,ti("0xa"))),e[ti("0x13")].registerCustomCallback("formatBlock",ti("0x1"),ti("0xa"),e[ti("0x13")].getSuggestionCallback(ti("0x10"),null,"accept")),e[ti("0xd")][ti("0x7")]((e=>this[ti("0x19")](e)))}[ti("0x1a")](e,t){const n=this[ti("0x3")][ti("0x12")][ti("0x4")]("TrackChangesEditing"),o=this[ti("0x3")][ti("0x2")].document[ti("0x9")].getSelectedElement();this[ti("0x3")][ti("0x2")][ti("0x17")]((()=>{let r=o[ti("0x18")](ti("0x1c"));const s=this.editor.plugins[ti("0x4")]("Users").me;for(const e of n[ti("0x5")]({skipNotAttached:!0})){const t=e[ti("0xf")]();if(ti("0x1")===e.subType&&t===o){e[ti("0xe")]!==s&&e[ti("0xa")](),r=e[ti("0x1e")].commandParams[0].source;break}}e(t),n[ti("0x8")](o,{commandName:"replaceImageSource",commandParams:[{source:r}]},[],"replaceImageSource")}))}[ti("0x19")](e){const{data:t}=e;if(t&&"replaceImageSource"===t[ti("0x14")]){const e=ti("0xc");return{type:ti("0x1d"),content:Yo(this.editor[ti("0x1b")],e)}}}}const oi=["collaboration_features","importWord","afterInit","get","track_changes","commands","listenTo","TrackChangesEditing","_trackChangesValueDuringImport","dataInsert","high","value","Users","bind","forEach","trackChanges","_handleImportedData","enableCommand","execute","_trackChangesExecuted","editor","plugins"];var ri,si;ri=oi,si=415,function(e){for(;--e;)ri.push(ri.shift())}(++si);const ii=function(e,t){return oi[e-=0]};class xi extends e.Plugin{constructor(e){super(e),this._trackChangesValueDuringImport=!1,this[ii("0x0")]=!1}[ii("0x5")](){const e=this[ii("0x1")],t=e.commands[ii("0x6")](ii("0x4")),n=e[ii("0x8")][ii("0x6")](ii("0x12"));t&&(t.on(ii("0x15"),((e,[,t])=>{this._trackChangesValueDuringImport=n[ii("0xe")],t[ii("0x3")][ii("0x7")]=!this[ii("0xb")]}),{priority:ii("0xd")}),this[ii("0x9")](t,ii("0xc"),this[ii("0x13")][ii("0x10")](this)),this.listenTo(t,ii("0xc"),(()=>{this[ii("0x0")]&&(n[ii("0x15")](),this[ii("0x0")]=!1)}),{priority:"lowest"}),e[ii("0x2")][ii("0x6")](ii("0xa"))[ii("0x14")](ii("0x4")))}[ii("0x13")](e,t){const{suggestions:n}=t,o=this[ii("0x1")].commands[ii("0x6")]("trackChanges"),r=o[ii("0xe")];this[ii("0xb")]!==r&&(o[ii("0x15")](),this[ii("0x0")]=!0),n&&n[ii("0x11")]((({id:e,type:t,author:n,created_at:o})=>{const r={id:e,type:t,authorId:this[ii("0x1")].plugins[ii("0x6")](ii("0xf")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x4")}}};this.editor[ii("0x2")][ii("0x6")]("TrackChangesEditing")._setSuggestionData(r)}))}}const ai=["afterInit","_descriptionFactory","format","commandName","get","outdentBlock","markBlockFormat","enableCommand","indent","change","schema","plugins","IndentBlock","*Outdent:* %0","has","filter","document","indentBlock","locale","getSelectedBlocks","from","*Indent:* %0","getItems","model","registerDescriptionCallback","checkAttribute"];var ci,li;ci=ai,li=170,function(e){for(;--e;)ci.push(ci.shift())}(++li);const di=function(e,t){return ai[e-=0]};class ui extends e.Plugin{[di("0xc")](){const e=this.editor,t=e[di("0x17")][di("0x10")]("TrackChangesEditing");e[di("0x17")].has("IndentEditing")&&(t.enableCommand(di("0x14")),t.enableCommand("outdent"));const n=e[di("0x4")];if(e.plugins[di("0x0")](di("0x18"))){for(const n of[di("0x3"),"outdentBlock"])t[di("0x13")](n,(()=>{const o=Array[di("0x6")](this.editor[di("0x9")][di("0x2")].selection[di("0x5")]())[di("0x1")]((e=>this.editor.model[di("0x16")][di("0xb")](e,"blockIndent")));e[di("0x9")][di("0x15")]((()=>{for(const e of o)t[di("0x12")](e,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));t[di("0xd")][di("0xa")]((e=>{const{data:o}=e;if(!o)return;if(di("0x3")!=o[di("0xf")]&&di("0x11")!=o[di("0xf")])return;const r=e[di("0x8")]()[0],s=t[di("0xd")].getItemLabel(r);return di("0x3")==o.commandName?{type:di("0xe"),content:Yo(n,di("0x7"),s)}:"outdentBlock"==o.commandName?{type:"format",content:Yo(n,di("0x19"),s)}:void 0}))}}}var gi,mi,fi=["editor","plugins","init","enableCommand","input","get"];gi=fi,mi=226,function(e){for(;--e;)gi.push(gi.shift())}(++mi);var hi=function(e,t){return fi[e-=0]};class bi extends e.Plugin{static get requires(){return[Vr.Input]}[hi("0x4")](){this[hi("0x2")][hi("0x3")][hi("0x1")]("TrackChangesEditing")[hi("0x5")](hi("0x0"))}}const pi=["afterInit","unlink","getRanges","LinkEditing","format","TrackChangesEditing","link","change","plugins","markInlineFormat","*Set link:* %0","getFirstRange","enableCommand","*Remove link*","from","selection","hasAttribute","linkHref","locale","editor","model","isCollapsed","getAttribute","document","registerDescriptionCallback"];var Ei,_i;Ei=pi,_i=408,function(e){for(;--e;)Ei.push(Ei.shift())}(++_i);const Ti=function(e,t){return pi[e-=0]};class Ci extends e.Plugin{[Ti("0x11")](){const e=this[Ti("0xb")];if(!e[Ti("0x0")].has(Ti("0x14")))return;const t=e[Ti("0x0")].get(Ti("0x16"));t[Ti("0x4")](Ti("0x17"),((n,o)=>{const r=e[Ti("0xc")][Ti("0xf")][Ti("0x7")];let s=[];if(r[Ti("0xd")]){if(!r[Ti("0x8")](Ti("0x9")))return void n(o);{const t=(0,Vr.findAttributeRange)(r.getFirstPosition(),Ti("0x9"),r.getAttribute(Ti("0x9")),e[Ti("0xc")]);s=[t]}}else s=Array[Ti("0x6")](r[Ti("0x13")]());e[Ti("0xc")][Ti("0x18")]((()=>{for(const e of s)t[Ti("0x1")](e,{commandName:Ti("0x17"),commandParams:[o]})}))})),t[Ti("0x4")](Ti("0x12"),(()=>{const n=this[Ti("0xb")][Ti("0xc")],o=n[Ti("0xf")][Ti("0x7")];n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xd")]?[(0,Vr.findAttributeRange)(o.getFirstPosition(),"linkHref",o[Ti("0xe")]("linkHref"),e.model)]:mr("linkHref",o[Ti("0x3")](),e.model);for(const e of n)t.markInlineFormat(e,{commandName:Ti("0x12"),commandParams:[]})}))})),t._descriptionFactory[Ti("0x10")]((t=>{const{data:n}=t,o=e[Ti("0xa")];if(n){if(Ti("0x17")==n.commandName){const e=n.commandParams[0];return{type:Ti("0x15"),content:Yo(o,Ti("0x2"),'"'+e+'"')}}return Ti("0x12")==n.commandName?{type:Ti("0x15"),content:Yo(o,Ti("0x5"))}:void 0}}))}}const yi=["ListEditing","enableCommand","ELEMENT_LIST_ITEM","blockName","getAttribute","model","todoList","*Outdent:* %0","element","ELEMENT_BULLETED_LIST","*Indent:* %0","numbered","filter","editor","push","end","locale","add","commandName","getSelectedBlocks","nextSibling","createPositionAt","execute","registerDescriptionCallback","*Change to:* %0","todoListChecked","bulleted","name","listItem","value","TrackChangesEditing","get","from","*Check item*","_descriptionFactory","plugins","format","numberedList","replace","listIndent","commands","ELEMENT_NUMBERED_LIST","todo","findIndex","previousSibling","commandParams","document","paragraph","checkChild","checkTodoList","listType","has","forceValue","markBlockFormat","TodoListEditing","schema","change","parent","bulletedList","List","indentList","selection","afterInit","length","outdentList","ELEMENT_TODO_LIST","createRange"];var ki,Ai;ki=yi,Ai=290,function(e){for(;--e;)ki.push(ki.shift())}(++Ai);const vi=function(e,t){return yi[e-=0]};class Ri extends e.Plugin{[vi("0x28")](){const e=this[vi("0x3a")],t=e[vi("0x3d")];if(!e[vi("0xd")][vi("0x1d")](vi("0x2d")))return;const n=e[vi("0xd")][vi("0x9")](vi("0x8")),o=e[vi("0xd")][vi("0x1d")](vi("0x20"));function r(t){return()=>{const o=e[vi("0x32")][vi("0x18")][vi("0x27")],r=e[vi("0x12")][vi("0x9")](t);if(r[vi("0x7")])return void e[vi("0x0")](vi("0x19"),{});const s=t.slice(0,-4),i=function(e,t,n){let o=Array.from(e).filter((e=>{return t=e,(o=n)[vi("0x1a")](t[vi("0x23")],"listItem")&&!o.isObject(t);var t,o}));o=o[vi("0x39")]((e=>!e.is("element",vi("0x6"))||e[vi("0x31")](vi("0x1c"))!=t));const r=new Set;for(const e of o)e.is(vi("0x35"),vi("0x6"))?r[vi("0x3e")](Ii(e)):r.add(e);return Array.from(r)}(o[vi("0x40")](),s,e[vi("0x32")][vi("0x21")]);e[vi("0x32")][vi("0x22")]((()=>{for(const e of i)n[vi("0x1f")](e,{commandName:t,commandParams:[{forceValue:!r[vi("0x7")]}],formatGroupId:vi("0x30")},Si(e))}))}}function s(t){return()=>{const o=function(e){let t=Array[vi("0xa")](e);const n=t[vi("0x15")]((e=>vi("0x6")!=e.name));return n>-1&&(t=t.slice(0,n)),t}(e[vi("0x32")][vi("0x18")][vi("0x27")][vi("0x40")]()),r=e.model[vi("0x2c")](e.model[vi("0x42")](o[0],"before"),e[vi("0x32")][vi("0x42")](o[o[vi("0x29")]-1],vi("0x3c")));e[vi("0x32")][vi("0x22")]((()=>{n[vi("0x1f")](r,{commandName:t,commandParams:[],formatGroupId:"listIndent"},function(e){const t=new Set;for(const n of e){let e=n[vi("0x41")];for(;e&&e[vi("0x31")]("listIndent")>n[vi("0x31")](vi("0x11"));)t[vi("0x3e")](e),e=e.nextSibling}return Array.from(t)}(o))}))}}n[vi("0x2e")](vi("0xf"),r(vi("0xf"))),n[vi("0x2e")](vi("0x24"),r(vi("0x24"))),o&&n[vi("0x2e")](vi("0x33"),r("todoList")),n[vi("0x2e")](vi("0x26"),s(vi("0x26"))),n[vi("0x2e")](vi("0x2a"),s(vi("0x2a"))),o&&n.enableCommand("checkTodoList",(()=>{const t=e.commands.get(vi("0x1b")),o=Array[vi("0xa")](t._selectedElements);o[vi("0x39")]((e=>e[vi("0x31")](vi("0x3"))!=t.value)),e[vi("0x32")][vi("0x22")]((()=>{for(const e of o)n[vi("0x1f")](e,{commandName:vi("0x1b"),commandParams:[{forceValue:!t.value}]})}))})),n[vi("0xc")].registerElementLabel(vi("0x6"),(e=>Yo(t,vi("0x2f"),e))),n[vi("0xc")][vi("0x1")]((e=>{const{data:n}=e;if(n){if(vi("0xf")==n[vi("0x3f")]||vi("0x24")==n.commandName||"todoList"==n.commandName)switch(n[vi("0x3f")][vi("0x10")](vi("0x25"),"")){case vi("0x4"):return o(Yo(t,vi("0x36")));case vi("0x38"):return o(Yo(t,vi("0x13")));case vi("0x14"):return o(Yo(t,vi("0x2b")))}if(vi("0x26")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(t,vi("0x37"),Yo(t,vi("0x2f")))};if(vi("0x2a")==n[vi("0x3f")])return{type:vi("0xe"),content:Yo(t,vi("0x34"),Yo(t,vi("0x2f")))};if(vi("0x1b")==n[vi("0x3f")])return n[vi("0x17")][0][vi("0x1e")]?{type:vi("0xe"),content:Yo(t,vi("0xb"))}:{type:"format",content:Yo(t,"*Uncheck item*")}}function o(e){return{type:"format",content:Yo(t,vi("0x2"),e)}}}))}}function Ii(e){const t=e.getAttribute(vi("0x11"));if(0==t)return e;let n=e;for(;e[vi("0x16")]&&e[vi("0x16")].is(vi("0x35"),"listItem");){const o=e.previousSibling[vi("0x31")](vi("0x11"));if(o==t)n=e[vi("0x16")];else if(o<t)break;e=e.previousSibling}return n}function Si(e){const t=[];if(e.is(vi("0x35"),vi("0x6"))&&e.getAttribute("listIndent")>0){let n=e[vi("0x41")];for(;n&&"listItem"==n[vi("0x5")]&&n[vi("0x31")](vi("0x11"))==e[vi("0x31")](vi("0x11"));)t[vi("0x3b")](n),n=n[vi("0x41")]}return t}const Li=["locale","getFirstPosition","handleListStyleCommand","forward","has","get","*Format:* set order to regular","ListPropertiesEditing","type","plugins","length","TrackChangesEditing","listType","_getSuggestionBlocksForListStyle","change","*Format:* set start index to %0","parent","*Format:* set order to reversed","filter","listStyle","enableCommand","styles","listStart","registerDescriptionCallback","handleDescriptions","backward","handleListReversedCommand","_LIST_","flat","markMultiRangeBlockFormat","bind","startIndex","selection","map","_getSuggestionBlocks","createRange","getSelectedBlocks","_getTranslationKeyForListStyle","listItem","commandName","getSiblingNodes","handleListStartCommand","model","commandParams","_descriptionFactory","*Change to:* %0","toUpperCase","listReversed","getAttribute","numbered","list.properties","format","before","afterInit","reversed","editor","createPositionAt","element","document","ListUtils","push","from"];var Ni,Mi;Ni=Li,Mi=296,function(e){for(;--e;)Ni.push(Ni.shift())}(++Mi);const wi=function(e,t){return Li[e-=0]};class Oi extends e.Plugin{[wi("0x5")](){if(!this[wi("0x7")][wi("0x17")][wi("0x12")](wi("0x15")))return;const e=this[wi("0x7")].config[wi("0x13")](wi("0x2")),t=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0x19"));e[wi("0x23")]&&t[wi("0x22")](wi("0x21"),this[wi("0x10")][wi("0x2c")](this)),e[wi("0x6")]&&t.enableCommand(wi("0x3d"),this[wi("0x28")][wi("0x2c")](this)),e[wi("0x2d")]&&t[wi("0x22")](wi("0x24"),this[wi("0x37")][wi("0x2c")](this)),t[wi("0x3a")][wi("0x25")](this[wi("0x26")].bind(this))}[wi("0x10")](e,t={}){const n=this.editor[wi("0x17")][wi("0x13")](wi("0x19")),o=this[wi("0x1b")]();this.editor[wi("0x38")][wi("0x1c")]((()=>{n[wi("0x2b")](o,{commandName:"listStyle",commandParams:[{type:t.type}],formatGroupId:wi("0x21")})}))}[wi("0x28")](e,t={}){const n=this[wi("0x7")][wi("0x17")].get(wi("0x19")),o=this._getSuggestionBlocks((e=>e.is("element",wi("0x34"))&&wi("0x1")===e[wi("0x0")](wi("0x1a"))));if(o[wi("0x18")]<1)return;const r=o[wi("0x2f")]((e=>this[wi("0x7")][wi("0x38")].createRange(this[wi("0x7")][wi("0x38")][wi("0x8")](e,"before"),this[wi("0x7")].model[wi("0x8")](e,0))));this[wi("0x7")][wi("0x38")].change((()=>{n.markMultiRangeBlockFormat(r,{commandName:wi("0x3d"),commandParams:[{reversed:t[wi("0x6")]}],formatGroupId:"listReversed"})}))}[wi("0x37")](e,t={}){const n=this[wi("0x7")][wi("0x17")][wi("0x13")]("TrackChangesEditing"),o=this[wi("0x30")]((e=>e.is(wi("0x9"),wi("0x34"))&&"numbered"===e[wi("0x0")]("listType")));if(o[wi("0x18")]<1)return;const r=o[wi("0x2f")]((e=>this[wi("0x7")][wi("0x38")][wi("0x31")](this[wi("0x7")].model[wi("0x8")](e,wi("0x4")),this[wi("0x7")][wi("0x38")].createPositionAt(e,0))));this[wi("0x7")].model[wi("0x1c")]((()=>{n[wi("0x2b")](r,{commandName:wi("0x24"),commandParams:[{startIndex:t[wi("0x2d")]}],formatGroupId:wi("0x24")})}))}[wi("0x26")](e){const t=this[wi("0x7")][wi("0xe")],{data:n}=e;if(!n)return;let o,r;switch(n[wi("0x35")]){case wi("0x21"):o=wi("0x3b"),r={type:wi("0x3"),content:Yo(t,o,Yo(t,this[wi("0x33")](n.commandParams[0][wi("0x16")])))};break;case"listReversed":o=n[wi("0x39")][0].reversed?wi("0x1f"):wi("0x14"),r={type:wi("0x3"),content:Yo(t,o)};break;case wi("0x24"):o=wi("0x1d"),r={type:wi("0x3"),content:Yo(t,o,n[wi("0x39")][0][wi("0x2d")])}}return r}[wi("0x1b")](){var e,t,n,o;const r=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let s=Array[wi("0xd")](this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0x32")]());return(null===(e=s[0])||void 0===e?void 0:e.is(wi("0x9"),wi("0x34")))&&s.unshift(...r.getSiblingNodes(this[wi("0x7")][wi("0x38")][wi("0xa")][wi("0x2e")][wi("0xf")](),wi("0x27"))),(null===(t=s[s.length-1])||void 0===t?void 0:t.is(wi("0x9"),wi("0x34")))&&s[wi("0xc")](...r[wi("0x36")](this[wi("0x7")][wi("0x38")].document.selection.getLastPosition(),"forward")),s=[...new Set(s)],(null===(o=null===(n=this.editor[wi("0x38")].document[wi("0x2e")].getFirstPosition())||void 0===n?void 0:n[wi("0x1e")])||void 0===o?void 0:o.is(wi("0x9"),wi("0x34")))&&(s=s[wi("0x20")]((e=>e.is(wi("0x9"),wi("0x34"))))),s}_getSuggestionBlocks(e){const t=this[wi("0x7")][wi("0x17")][wi("0x13")](wi("0xb"));let n=Array[wi("0xd")](this[wi("0x7")].model[wi("0xa")].selection.getSelectedBlocks())[wi("0x20")](e)[wi("0x2f")]((e=>{const n=this[wi("0x7")].model[wi("0x8")](e,0);return[...t[wi("0x36")](n,wi("0x27")),...t.getSiblingNodes(n,wi("0x11"))]}))[wi("0x2a")]();return n=[...new Set(n)],n}[wi("0x33")](e){return"ELEMENT_"+this[wi("0x7")][wi("0x17")][wi("0x13")]("ListUtils").getListTypeFromListStyleType(e)[wi("0x3c")]()+wi("0x29")+e.toUpperCase().replace(/-/g,"_")}}const Fi=["div","data","showSuggestionHighlights","get","enableCommand","conversion","ELEMENT_MEDIA","high","downcastDispatcher","MediaEmbedEditing","has","_descriptionFactory","dataDowncast","for","locale","TrackChangesEditing","plugins","media","attribute:url:media","createEmptyElement","stop"];var Pi,Di;Pi=Fi,Di=439,function(e){for(;--e;)Pi.push(Pi.shift())}(++Di);const Bi=function(e,t){return Fi[e-=0]};class ji extends e.Plugin{afterInit(){const e=this.editor;if(!e[Bi("0x12")][Bi("0xc")](Bi("0xb")))return;const t=e[Bi("0x12")][Bi("0x5")](Bi("0x11")),n=e[Bi("0x10")];t[Bi("0x6")]("mediaEmbed"),t[Bi("0xd")].registerElementLabel(Bi("0x13"),(e=>Yo(n,Bi("0x8"),e))),e[Bi("0x7")][Bi("0xf")](Bi("0xe")).elementToElement({model:Bi("0x13"),view:(e,{writer:t,options:n})=>{if(n[Bi("0x4")])return t[Bi("0x0")](Bi("0x2"))},converterPriority:"high"}),e[Bi("0x3")][Bi("0xa")].on(Bi("0x14"),((e,t,n)=>{n.options[Bi("0x4")]&&e[Bi("0x1")]()}),{priority:Bi("0x9")})}}const Ui=["editor","plugins","mention","enableCommand","get","has","afterInit"];var Gi,Hi;Gi=Ui,Hi=198,function(e){for(;--e;)Gi.push(Gi.shift())}(++Hi);const zi=function(e,t){return Ui[e-=0]};class Wi extends e.Plugin{[zi("0x4")](){const e=this[zi("0x5")];e[zi("0x6")][zi("0x3")]("MentionEditing")&&e[zi("0x6")][zi("0x2")]("TrackChangesEditing")[zi("0x1")](zi("0x0"))}}const Vi=["plugins","locale","has","PageBreakEditing","pageBreak","ELEMENT_PAGE_BREAK","TrackChangesEditing","enableCommand","get","registerElementLabel","afterInit"];var Ki,qi;Ki=Vi,qi=171,function(e){for(;--e;)Ki.push(Ki.shift())}(++qi);const Xi=function(e,t){return Vi[e-=0]};class $i extends e.Plugin{[Xi("0x4")](){const e=this.editor;if(!e[Xi("0x5")][Xi("0x7")](Xi("0x8")))return;e[Xi("0x5")][Xi("0x2")](Xi("0x0"))[Xi("0x1")](Xi("0x9"));const t=e[Xi("0x5")][Xi("0x2")](Xi("0x0")),n=e[Xi("0x6")];t._descriptionFactory[Xi("0x3")]("pageBreak",(e=>Yo(n,Xi("0xa"),e)))}}const Qi=["isBlock","editing","includes","TrackChangesEditing","registerDescriptionCallback","insertion","change","Paragraph","options","nodeAfter","filter","blockName","span","addClass","afterInit","mapper","getSelectedBlocks","end","highest","format","insert","markerName","has","checkChild","start","bindElementToMarker","commandName","model","locale","_descriptionFactory","ck-suggestion-marker--active","$text","isLimit","markerRange","type","editor","isObject","activeMarkers","schema","getItemLabel","plugins","get","writer","document","parent","createUIElement","selection","toViewPosition","paragraph","*Insert:* %0","addMarker:suggestion:insertion","downcastDispatcher","name","registerElementLabel","ck-suggestion-marker-split","isTouching","ELEMENT_PARAGRAPH"];var Ji,Zi;Ji=Qi,Zi=114,function(e){for(;--e;)Ji.push(Ji.shift())}(++Zi);const Yi=function(e,t){return Qi[e-=0]};class ex extends e.Plugin{[Yi("0xe")](){const e=this[Yi("0x23")];if(!e[Yi("0x28")][Yi("0x16")](Yi("0x7")))return;const t=e[Yi("0x1c")],n=e[Yi("0x28")][Yi("0x29")](Yi("0x3"));n[Yi("0x1d")][Yi("0x35")](Yi("0x30"),(e=>Yo(t,Yi("0x38"),e))),n.enableCommand("paragraph",((t,o={})=>{const r=e[Yi("0x1b")][Yi("0x2b")],s=o[Yi("0x2e")]||r.selection,i=Array.from(s[Yi("0x10")]())[Yi("0xa")]((e=>{return t=e,(n=this[Yi("0x23")][Yi("0x1b")][Yi("0x26")])[Yi("0x17")](t[Yi("0x2c")],"paragraph")&&!n[Yi("0x24")](t)&&"paragraph"!=t[Yi("0x34")];var t,n}));e[Yi("0x1b")][Yi("0x6")]((()=>{for(const e of i)n.markBlockFormat(e,{commandName:Yi("0x30"),commandParams:[],formatGroupId:Yi("0xb")},fr(e))}))})),n[Yi("0x1d")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&Yi("0x30")==n[Yi("0x1a")])return{type:Yi("0x13"),content:Yo(t,"*Change to:* %0",Yo(t,Yi("0x38")))}})),n.enableCommand("insertParagraph"),e[Yi("0x1")][Yi("0x33")].on(Yi("0x32"),tx(e),{priority:"highest"}),e.data[Yi("0x33")].on(Yi("0x32"),((t,n,o)=>{o[Yi("0x8")].showSuggestionHighlights&&tx(e,{showActiveMarker:!1})(t,n,o)}),{priority:Yi("0x12")});const o=n._descriptionFactory;o[Yi("0x4")]((n=>{if(Yi("0x5")!==n[Yi("0x22")])return;const{start:r,end:s}=n.getFirstRange();if(!r[Yi("0x37")](s)||!r[Yi("0x9")])return;const i=e[Yi("0x1b")][Yi("0x26")],x=r.nodeAfter;return i[Yi("0x0")](x)&&!i[Yi("0x20")](x)&&i[Yi("0x17")](x,Yi("0x1f"))?{type:"insertion",content:Yo(t,Yi("0x31"),o[Yi("0x27")](x,1))}:void 0}))}}function tx(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e.plugins.get("TrackChangesEditing"),i=o[Yi("0x21")][Yi("0x18")],x=o[Yi("0x21")][Yi("0x11")],a=e[Yi("0x1b")].schema;if(!i[Yi("0x37")](x)||!i.nodeAfter)return;const c=i.nodeAfter;if(a[Yi("0x0")](c)&&!a[Yi("0x20")](c)&&a[Yi("0x17")](c,Yi("0x1f"))){if(!r.consumable.consume(o[Yi("0x21")],n[Yi("0x34")]))return;const e=r[Yi("0x2a")][Yi("0x2d")](Yi("0xc"),{class:Yi("0x36")}),i=r[Yi("0xf")][Yi("0x2f")](x);t&&s[Yi("0x25")][Yi("0x2")](o.markerName)&&r[Yi("0x2a")][Yi("0xd")](Yi("0x1e"),e),r[Yi("0x2a")][Yi("0x14")](i,e),r[Yi("0xf")][Yi("0x19")](e,o[Yi("0x15")])}}}const nx=["model","RemoveFormatEditing","has","createRangeOn","from","TrackChangesEditing","getAttributeProperties","getAttributes","plugins","isFormatting","afterInit","markInlineFormat","removeFormat","isCollapsed","_descriptionFactory","commandName","getRanges","selection","document","enableCommand","change","schema"];var ox,rx;ox=nx,rx=103,function(e){for(;--e;)ox.push(ox.shift())}(++rx);const sx=function(e,t){return nx[e-=0]};class ix extends e.Plugin{[sx("0x11")](){const e=this.editor;if(!e[sx("0xf")][sx("0x9")](sx("0x8")))return;const t=e[sx("0xf")].get(sx("0xc"));t[sx("0x4")]("removeFormat",(n=>{const o=e[sx("0x7")][sx("0x3")][sx("0x2")];o[sx("0x14")]?n():e[sx("0x7")][sx("0x5")]((()=>{const n=Array[sx("0xb")](o[sx("0x1")]());for(const o of n)for(const n of o.getItems())xx(n,e[sx("0x7")][sx("0x6")])&&t[sx("0x12")](e.model[sx("0xa")](n),{commandName:"removeFormat",commandParams:[]})}))})),t[sx("0x15")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x13")==n[sx("0x0")])return{type:"format",content:Yo(e.locale,"*Remove all formatting*")}}))}}function xx(e,t){for(const[n]of e[sx("0xe")]()){const e=t[sx("0xd")](n);if(e&&e[sx("0x10")])return!0}return!1}const ax=["get","discardAllSuggestions","acceptSuggestion","TrackChangesEditing","discardSuggestion","enableCommand","editor","plugins","afterInit","RestrictedEditingModeEditing","discardSelectedSuggestions","goToPreviousRestrictedEditingException","has"];var cx,lx;cx=ax,lx=376,function(e){for(;--e;)cx.push(cx.shift())}(++lx);const dx=function(e,t){return ax[e-=0]};class ux extends e.Plugin{[dx("0x9")](){const e=this[dx("0x7")];if(!e.plugins[dx("0x0")](dx("0xa")))return;const t=e.plugins[dx("0x1")](dx("0x4"));t.enableCommand(dx("0xc")),t[dx("0x6")]("goToNextRestrictedEditingException");const n=e[dx("0x8")][dx("0x1")](dx("0xa"));n[dx("0x6")]("trackChanges"),n[dx("0x6")](dx("0x3")),n.enableCommand(dx("0x5")),n[dx("0x6")]("acceptAllSuggestions"),n[dx("0x6")](dx("0x2")),n[dx("0x6")]("acceptSelectedSuggestions"),n[dx("0x6")](dx("0xb"))}}const gx=["test","createPositionBefore","consumable","downcastDispatcher","softBreak","enableCommand","bindElementToMarker","plugins","options","editor","locale","getItems","writer","ck-suggestion-marker--active","editing","split","data","toViewPosition","high","showSuggestionHighlights","addMarker:suggestion:deletion","insert","markerName","span","model","element","name","addMarker:suggestion","_descriptionFactory","markerRange","shiftEnter","TrackChangesEditing","ck-suggestion-marker-","requires","ELEMENT_LINE_BREAK","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=273,function(e){for(;--e;)mx.push(mx.shift())}(++fx);const hx=function(e,t){return gx[e-=0]};class bx extends e.Plugin{static get[hx("0xc")](){return[ns.ShiftEnter]}init(){const e=this[hx("0x18")],t=e[hx("0x16")].get(hx("0xa"));t[hx("0x14")](hx("0x9")),e[hx("0x1d")][hx("0x12")].on(hx("0xe"),px(e),{priority:hx("0x21")}),e.editing[hx("0x12")].on(hx("0x23"),px(e),{priority:hx("0x21")}),e[hx("0x1f")][hx("0x12")].on(hx("0x6"),((t,n,o)=>{o[hx("0x17")][hx("0x22")]&&px(e,{showActiveMarker:!1})(t,n,o)})),t[hx("0x7")].registerElementLabel(hx("0x13"),(t=>Yo(e[hx("0x19")],hx("0xd"),t)))}}function px(e,{showActiveMarker:t=!0}={}){return(n,o,r)=>{const s=e[hx("0x16")].get(hx("0xa"));if(!r[hx("0x11")][hx("0xf")](o.markerRange,n[hx("0x5")]))return;const i=e[hx("0x3")];for(const e of o[hx("0x8")][hx("0x1a")]()){if(!e.is(hx("0x4"),hx("0x13")))continue;const n="deletion"==o[hx("0x1")][hx("0x1e")](":")[1]?"merge":hx("0x1e"),x=r[hx("0x1b")].createUIElement(hx("0x2"),{class:hx("0xb")+n}),a=r.mapper[hx("0x20")](i[hx("0x10")](e));t&&s.activeMarkers.includes(o.markerName)&&r.writer.addClass(hx("0x1c"),x),r.writer[hx("0x0")](a,x),r.mapper[hx("0x15")](x,o[hx("0x1")])}}}const Ex=["editor","FORMAT_RESTRICTED_ENABLED","document","format","commandParams","StandardEditingModeEditing","markInlineFormat","commands","plugins","TrackChangesEditing","restrictedEditingException","from","enableCommand","selection","change","get","afterInit","commandName","forceValue","isCollapsed","model"];var _x,Tx;_x=Ex,Tx=265,function(e){for(;--e;)_x.push(_x.shift())}(++Tx);const Cx=function(e,t){return Ex[e-=0]};class yx extends e.Plugin{[Cx("0x3")](){const e=this[Cx("0x8")],t=e[Cx("0x7")],n=e.locale;if(!e.plugins.has(Cx("0xd")))return;const o=e[Cx("0x10")][Cx("0x2")](Cx("0x11")),r=Cx("0x12"),s=e[Cx("0xf")][Cx("0x2")](r);o[Cx("0x14")](r,((e,n={})=>{const i=t[Cx("0xa")][Cx("0x0")];if(i[Cx("0x6")])return void e(n);const x=void 0!==n[Cx("0x5")]?n.forceValue:!s.value;t[Cx("0x1")]((()=>{const e=Array[Cx("0x13")](i.getRanges());for(const n of e){const e=x?[n]:mr(r,n,t);for(const t of e)o[Cx("0xe")](t,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory.registerDescriptionCallback((e=>{const{data:t}=e;if(t&&t[Cx("0x4")]==r)return t[Cx("0xc")][0].forceValue?{type:Cx("0xb"),content:Yo(n,Cx("0x9"))}:{type:Cx("0xb"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["locale","includes","has","*Format:* %0","commandName","registerDescriptionCallback","getSelectedBlocks","document","_getRangesWithClasses","StyleUtils","inline","find","value","commands","DataSchema","plugins","add","name","getAncestors","TrackChangesEditing","_descriptionFactory","_getStyleDefinition","config","enableCommand","classes","markInlineFormat","push","toLowerCase","getItems","style","from","getDefinitionsForView","get","isBlock","element","getRanges","editor","styleName","forceValue","style.definitions","format","isCollapsed","markBlockFormat","commandParams","model","change","every","createRangeOn"];var Ax,vx;Ax=kx,vx=457,function(e){for(;--e;)Ax.push(Ax.shift())}(++vx);const Rx=function(e,t){return kx[e-=0]};class Ix extends e.Plugin{afterInit(){const e=this[Rx("0xb")];if(!e[Rx("0x26")][Rx("0x19")]("Style"))return;const t=e[Rx("0x24")].get("style"),n=e.plugins.get(Rx("0x2a")),o=e[Rx("0x17")],r=e[Rx("0x26")][Rx("0x7")](Rx("0x25")),s=e[Rx("0x26")][Rx("0x7")](Rx("0x20")).normalizeConfig(r,e[Rx("0x2d")][Rx("0x7")](Rx("0xe")));n[Rx("0x2e")](Rx("0x4"),((o,{styleName:i})=>{const x=e[Rx("0x13")][Rx("0x1e")].selection,a=this[Rx("0x2c")](i,s);if(!a)return;if(!t.enabledStyles.includes(i))return;if(x[Rx("0x10")]&&!a[Rx("0x8")])return void o({styleName:i});const c=!t[Rx("0x23")][Rx("0x18")](a[Rx("0x28")]);if(a.isBlock){const t=function(e,t){const n=new Set;for(const o of e){const e=o[Rx("0x29")]({includeSelf:!0,parentFirst:!0});for(const o of e)if(t[Rx("0x18")](o[Rx("0x28")])){n[Rx("0x27")](o);break}}return n}(x[Rx("0x1d")](),a.modelElements);e[Rx("0x13")][Rx("0x14")]((()=>{for(const e of t)n[Rx("0x11")](e,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let t=Array[Rx("0x5")](x[Rx("0xa")]());if(!c){const n=Array[Rx("0x5")](r[Rx("0x6")](a[Rx("0x9")],!1))[0].model,o=[];for(const r of t){const t=this[Rx("0x1f")](e[Rx("0x13")],r,a[Rx("0x2f")],n);o[Rx("0x1")](...t)}t=o}e.model[Rx("0x14")]((()=>{for(const e of t)n[Rx("0x0")](e,{commandName:Rx("0x4"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x2b")][Rx("0x1c")]((e=>{const{data:t}=e;if(t&&"style"===t[Rx("0x1b")])return t[Rx("0x12")][0][Rx("0xd")]?{type:Rx("0xf"),content:Yo(o,Rx("0x1a"),t.commandParams[0][Rx("0xc")][Rx("0x2")]())}:{type:Rx("0xf"),content:Yo(o,"*Remove format:* %0",t[Rx("0x12")][0][Rx("0xc")][Rx("0x2")]())}}))}[Rx("0x2c")](e,t){let n=t.block[Rx("0x22")]((t=>t.name===e));return n||(n=t[Rx("0x21")][Rx("0x22")]((t=>t[Rx("0x28")]===e))),n}[Rx("0x1f")](e,t,n,o){const r=[];for(const s of t[Rx("0x3")]()){const t=s.getAttribute(o);t&&n[Rx("0x15")]((e=>t.classes[Rx("0x18")](e)))&&r[Rx("0x1")](e[Rx("0x16")](s))}return r}}const Sx=["_getCoordsForCells","ELEMENT_TABLE_WITH_TEXT","isInContent","hasAttribute","createTableWalker","options","ELEMENT_TABLE","item","values","ELEMENT_TABLE_ROW_WITH_TEXT","discard","end","_getSuggestionCoords","setSelection","*Insert:* %0","_suggestionFactory","element","_descriptionFactory","map","minRow","root","oldRange","removeClass","createRangeIn","registerElementLabel","MAX_SAFE_INTEGER","ELEMENT_TABLE_ROW","some","afterInit","maxRow","cell","ELEMENT_TABLE_COLUMN","toLowerCase","enqueueChange","_splitMarkerName","markMultiRangeInsertion","isArray","isEqual","selectTableColumn","colspan","getCellLocation","nodeAfter","addRange","subType","MIN_SAFE_INTEGER","left","tablePaste","span","selection","addClass","document","getSuggestion","insertTableColumnLeft","_acceptFormatSuggestionCallbackFactory","getAttribute","$graveyard","removeTableRow","change","push","type","accept","registerPostFixer","getSelectionAffectedTableCells","findAncestor","first","insertion","includes","length","rowspan","last","*Remove:* %0","substr","registerCustomCallback","rootName","join","editor","commands","enableCommand","classes","fromRange","getChildren","above","has","$textProxy","getRowIndexes","createPositionAt","startsWith","get","min","getContainedElement","addMarker:suggestion","every","execute","from","tableCell","_tablePostFixingSubtypes","insertTableRowBelow","table","getItems","tableColumn","refresh","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","removeTableColumn","tableRow","_tableSuggestions","plugins","selectTableRow","insertTableRowAbove","markMultiRangeDeletion","deletion","order","differ","TableUtils","name","isIntersectingWithRange","detach","nodeBefore","model","getRanges","insertTableColumnRight","data","filter","writer","_setupColumnsRowsFixing","isTouching","showSuggestionHighlights","registerDescriptionCallback","getChangedMarkers","getColumnIndexes","createRangeOn","start","max","change:data"];var Lx,Nx;Lx=Sx,Nx=119,function(e){for(;--e;)Lx.push(Lx.shift())}(++Nx);const Mx=function(e,t){return Sx[e-=0]};class wx extends e.Plugin{constructor(e){super(e),this[Mx("0x6e")]=[Mx("0x77"),Mx("0x72")],this[Mx("0x78")]=new Set}[Mx("0x2b")](){const e=this[Mx("0x5a")],t=e[Mx("0x85")][Mx("0x41")].selection;if(!e[Mx("0x79")][Mx("0x61")]("TableEditing"))return;const n=e.locale,o=e[Mx("0x79")].get("TrackChangesEditing"),r=e[Mx("0x79")].get(Mx("0x80"));o._descriptionFactory[Mx("0x27")]("table",(e=>Yo(n,Mx("0x15"),e))),this._setupColumnsRowsFixing(),o.enableCommand("insertTable"),o[Mx("0x5c")](Mx("0x7a")),o[Mx("0x5c")](Mx("0x35"));for(const n of[Mx("0x7b"),Mx("0x6f")]){const s=e[Mx("0x5b")].get(n);o[Mx("0x5c")](n,(n=>{e.model.change((e=>{n();const i=Mx("0x60")===s[Mx("0x7e")],x=r[Mx("0x4d")](t),a=r[Mx("0x63")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),d=r[Mx("0x13")](l,{startRow:c,endRow:c}),u=Array[Mx("0x6c")](d)[Mx("0x21")]((t=>e[Mx("0xb")](t[Mx("0x2d")])));o.markMultiRangeInsertion(u,"tableRow")}))}))}for(const n of[Mx("0x43"),Mx("0x1")]){const s=e[Mx("0x5b")][Mx("0x66")](n);o[Mx("0x5c")](n,(n=>{e.model[Mx("0x48")]((e=>{n();const i=Mx("0x3c")===s[Mx("0x7e")],x=r[Mx("0x4d")](t),a=r[Mx("0xa")](x),c=i?a[Mx("0x4f")]-1:a.last+1,l=x[0][Mx("0x4e")](Mx("0x70")),d=r.createTableWalker(l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x6c")](d)[Mx("0x21")]((t=>e[Mx("0xb")](t.cell)));o[Mx("0x32")](u,Mx("0x72"))}))}))}for(const n of[Mx("0x47"),"removeTableColumn"]){const s=n.substr(11),i=s[Mx("0x2f")](),x=i[Mx("0x56")](0,3)+Mx("0x3e"),a=Mx("0x70")+s,c="min"+s,l=Mx("0xd")+s;o[Mx("0x5c")](n,(()=>{e.model[Mx("0x48")]((e=>{const s=r[Mx("0x4d")](t),d=s[0][Mx("0x4e")](Mx("0x70"));let u;if("removeTableRow"==n){const e=r[Mx("0x63")](s);u={startRow:e[Mx("0x4f")],endRow:e[Mx("0x54")],includeAllSlots:!0}}else{const e=r[Mx("0xa")](s);u={startColumn:e[Mx("0x4f")],endColumn:e[Mx("0x54")],includeAllSlots:!0}}const g=r.createTableWalker(d,u),m=Array[Mx("0x6c")](g)[Mx("0x21")]((({cell:e})=>e)),f=Ox(m.filter((e=>e.hasAttribute(x)))),h=Ox(m.filter((e=>!e[Mx("0x12")](x))))[Mx("0x21")]((t=>e[Mx("0xb")](t))),b=o[Mx("0x7c")](h,a);if(b&&(Mx("0x77")==b[Mx("0x3a")]||Mx("0x72")==b[Mx("0x3a")])){const t=this[Mx("0x1b")](b);for(const n of f){const o=e[Mx("0xb")](n),s=r[Mx("0x37")](n),a=n[Mx("0x45")](x)-1,d=t[c],u=t[l];d<=s[i]&&s[i]+a<=u&&b[Mx("0x39")](o)}}}))}))}function s(n){const o=Array[Mx("0x6c")](t[Mx("0x0")]()).map((e=>i.LiveRange.fromRange(e)));e[Mx("0x85")].change((t=>{const r=t.batch;n=n[Mx("0x3")]((e=>Mx("0x46")!=e[Mx("0x23")][Mx("0x58")])),t[Mx("0x1c")](n),e[Mx("0x5b")][Mx("0x66")](Mx("0x47"))[Mx("0x73")](),e.execute("removeTableRow",{forceDefaultExecution:!0}),e[Mx("0x85")][Mx("0x30")]((()=>{e.model.enqueueChange(r,(e=>{const t=o.filter((e=>Mx("0x46")!=e[Mx("0x23")][Mx("0x58")]));t.length>0&&e[Mx("0x1c")](t);for(const e of o)e[Mx("0x83")]()}))}))}))}function a(n){e[Mx("0x85")][Mx("0x48")]((o=>{const r=Array[Mx("0x6c")](t[Mx("0x0")]())[Mx("0x21")]((e=>i.LiveRange[Mx("0x5e")](e))),s=[];for(const e of n)for(const t of e.getItems({shallow:!0}))s[Mx("0x49")](t);for(const t of s)Mx("0x46")!=t[Mx("0x23")][Mx("0x58")]&&(o[Mx("0x1c")](o[Mx("0x64")](t,0)),e[Mx("0x5b")].get("removeTableColumn")[Mx("0x73")](),e.execute(Mx("0x76"),{forceDefaultExecution:!0}));const x=r[Mx("0x3")]((e=>"$graveyard"!=e[Mx("0x23")][Mx("0x58")]));x[Mx("0x52")]>0&&o[Mx("0x1c")](x);for(const e of r)e[Mx("0x83")]()}))}function c(e,t){return t[Mx("0x6a")]((t=>e[Mx("0x2a")]((e=>e[Mx("0x1a")][Mx("0x34")](t[Mx("0xc")])||t[Mx("0x1a")][Mx("0x34")](e[Mx("0xc")])))))}function l(e,t){return e.some((e=>t[Mx("0x2a")]((t=>e[Mx("0x1a")][Mx("0x6")](t[Mx("0xc")])))))}e.data.downcastDispatcher.on(Mx("0x69"),((e,t,n)=>{if(!n[Mx("0x14")][Mx("0x7")])return;const o=t[Mx("0x16")];if(!o)return;const r=n.mapper.toViewElement(o);function s(e){return Array[Mx("0x33")](e)?e:[e]}r&&Mx("0x6d")===o.name&&(0,x.setHighlightHandling)(r,n[Mx("0x4")],((e,t,n)=>n[Mx("0x40")](s(t[Mx("0x5d")]),e)),((e,t,n)=>n[Mx("0x25")](s(t[Mx("0x5d")]),e)))}),{priority:"highest"}),o[Mx("0x20")][Mx("0x8")]((e=>{if(Mx("0x50")!=e.type&&"deletion"!=e.type)return;const t=e[Mx("0x68")]();if(null!=t&&t.is(Mx("0x1f"),Mx("0x70"))){if(Mx("0x50")==e[Mx("0x4a")]){const t=e.getItems()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e.data));if(t[Mx("0x52")])return{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x10"),'"'+t[Mx("0x59")](" ")+'"'))}}if("deletion"==e[Mx("0x4a")]){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")]));if(t.length)return{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+t[Mx("0x59")](" ")+'"'))}}}})),o[Mx("0x20")][Mx("0x8")]((e=>{if("tableRow"==e.subType){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")])),o=this[Mx("0x1b")](e),r=o[Mx("0x2c")]-o[Mx("0x22")]+1;if("insertion"==e[Mx("0x4a")])return t.length?{type:"insertion",content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x18"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x29"),r))};if(Mx("0x7d")==e[Mx("0x4a")])return t[Mx("0x52")]?{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,Mx("0x18"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:"deletion",content:Yo(n,Mx("0x55"),Yo(n,"ELEMENT_TABLE_ROW",r))}}if(Mx("0x72")==e.subType){const t=e[Mx("0x71")]()[Mx("0x3")]((e=>e.is(Mx("0x62"))))[Mx("0x21")]((e=>e[Mx("0x2")])),o=this[Mx("0x1b")](e),r=o.maxColumn-o.minColumn+1;if(Mx("0x50")==e.type)return t[Mx("0x52")]?{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x74"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x1d"),Yo(n,Mx("0x2e"),r))};if(Mx("0x7d")==e.type)return t[Mx("0x52")]?{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x74"),[r,'"'+t[Mx("0x59")](" ")+'"']))}:{type:Mx("0x7d"),content:Yo(n,Mx("0x55"),Yo(n,Mx("0x2e"),r))}}})),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x77"),Mx("0x19"),s),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x77"),Mx("0x4b"),s),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x19"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),Mx("0x72"),Mx("0x4b"),a),o[Mx("0x1e")][Mx("0x57")](Mx("0x50"),Mx("0x72"),Mx("0x59"),c),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableColumn","join",c),o[Mx("0x1e")].registerCustomCallback(Mx("0x50"),Mx("0x77"),Mx("0x59"),l),o[Mx("0x1e")][Mx("0x57")](Mx("0x7d"),"tableRow",Mx("0x59"),l)}[Mx("0x44")](){const e=this.editor,t=e[Mx("0x85")][Mx("0x41")][Mx("0x3f")];return(n,o)=>{e.model[Mx("0x48")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][Mx("0x1a")][Mx("0x84")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0].start.nodeAfter);const c=r[Mx("0x26")](a);if(Mx("0x46")==c[Mx("0x23")][Mx("0x58")])return;const l=Array.from(t[Mx("0x0")]())[Mx("0x21")]((e=>i.LiveRange[Mx("0x5e")](e)));r.setSelection(c),e[Mx("0x5b")][Mx("0x66")](s)[Mx("0x73")](),x[Mx("0x49")]({forceDefaultExecution:!0}),e[Mx("0x6b")](s,...x);const d=l[Mx("0x3")]((e=>"$graveyard"!=e[Mx("0x23")][Mx("0x58")]));d[Mx("0x52")]>0&&r.setSelection(d);for(const e of l)e.detach()}))}}[Mx("0xf")](e){const t=this[Mx("0x5a")][Mx("0x79")].get(Mx("0x80"));let n=Number[Mx("0x28")],o=Number[Mx("0x3b")],r=Number[Mx("0x28")],s=Number[Mx("0x3b")];for(const i of e){if(Mx("0x46")==i[Mx("0x23")].rootName)continue;const{row:e,column:x}=t[Mx("0x37")](i),a=i[Mx("0x12")](Mx("0x53"))?i[Mx("0x45")]("rowspan")-1:0,c=i[Mx("0x12")](Mx("0x36"))?i[Mx("0x45")](Mx("0x36"))-1:0;n=e<n?e:n,o=e+a>o?e+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}[Mx("0x5")](){const e=this[Mx("0x5a")],t=e[Mx("0x79")][Mx("0x66")]("TrackChangesEditing"),n=e[Mx("0x79")][Mx("0x66")]("TableUtils");e.model[Mx("0x41")].on(Mx("0xe"),(()=>{const n=Array.from(e[Mx("0x85")].document[Mx("0x7f")][Mx("0x9")]());for(const{name:e,data:o}of n){const{group:n,id:r,subType:s}=t[Mx("0x31")](e);if(Mx("0x75")!=n)continue;if(null!=o[Mx("0x24")])continue;const i=t[Mx("0x42")](r);this[Mx("0x6e")][Mx("0x51")](s)&&this[Mx("0x78")].add(i)}}),{priority:"low"});const o=(e,t)=>{let o=!1;const r=t.createRangeOn(e),s=e[Mx("0x4e")]("table"),i=n[Mx("0x37")](e);for(const t of this[Mx("0x78")]){const n=t[Mx("0x3a")],x=n[Mx("0x65")](Mx("0x3d")),a=n.substr(x?10:5),c=a[Mx("0x2f")](),l=c[Mx("0x56")](0,3)+Mx("0x3e"),d=Mx("0x67")+a,u="max"+a;if(!t[Mx("0x11")])continue;if(s!=t.getFirstRange()[Mx("0xc")][Mx("0x4e")](Mx("0x70")))continue;if(t[Mx("0x82")](r))continue;const g=e[Mx("0x12")](l)?e[Mx("0x45")](l)-1:0,m=this[Mx("0x1b")](t),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(t[Mx("0x39")](r),o=!0)}return o};e[Mx("0x85")][Mx("0x41")][Mx("0x4c")]((t=>{let n=!1;for(const r of e.model[Mx("0x41")][Mx("0x7f")].getChanges())if("insert"==r[Mx("0x4a")])if(Mx("0x77")==r[Mx("0x81")])for(const e of r.position[Mx("0x38")][Mx("0x5f")]())n=n||o(e,t);else Mx("0x6d")==r[Mx("0x81")]&&(n=n||o(r.position.nodeAfter,t));return n}))}_getSuggestionCoords(e){return this[Mx("0xf")](e[Mx("0x0")]()[Mx("0x21")]((e=>e[Mx("0xc")].nodeAfter)))}}function Ox(e){return Array[Mx("0x6c")](new Set(e)[Mx("0x17")]())}const Fx=["element","createTableWalker","stop","table","$graveyard","format","requires","_descriptionFactory","accept","mergeTableCellUp","selection","mergeTableCellLeft","mergeTableCellRight","get","formatBlock","fromRange","getSelectionAffectedTableCells","execute","return","author","push","commandName","_tablePostFixingSubtypes","*Split cell:* vertically","length","find","set:isEnabled","refresh","containsRange","commands","locale","markBlockFormat","afterInit","has","insertion","from","enableCommand","createRangeOn","change","getCellLocation","_areMergableCells","TableUtils","forceDefaultExecution","tableCell","low","add","direction","_areSelectedCellsMergable","_suggestionFactory","highest","rootName","registerCustomCallback","document","mergeTableCellDown","getAncestors","deletion","model","plugins","*Merge cells*","detach","mergeTableCells","findAncestor","markMultiRangeBlockFormat","isEnabled","editor","splitTableCellVertically","cell","splitTableCellHorizontally","getRanges","TrackChangesEditing","getFirstPosition","map","value","_acceptFormatSuggestionCallbackFactory","setSelection","root","type"];var Px,Dx;Px=Fx,Dx=100,function(e){for(;--e;)Px.push(Px.shift())}(++Dx);const Bx=function(e,t){return Fx[e-=0]};class jx extends e.Plugin{static get[Bx("0x3c")](){return[wx]}[Bx("0x9")](){const e=this.editor,t=e.model[Bx("0x1d")][Bx("0x40")],n=e[Bx("0x7")];if(!e[Bx("0x22")][Bx("0xa")]("TableEditing"))return;const o=e[Bx("0x22")][Bx("0x43")](Bx("0x2e")),r=e[Bx("0x22")].get(Bx("0x12")),s=e[Bx("0x22")][Bx("0x43")](wx);s[Bx("0x4c")][Bx("0x4a")](Bx("0x25")),o[Bx("0xd")](Bx("0x25"),(()=>{const t=r[Bx("0x46")](e[Bx("0x21")][Bx("0x1d")][Bx("0x40")]);e[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")](t,{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))})),e[Bx("0x6")].get("mergeTableCells").on(Bx("0x47"),((t,n)=>{e[Bx("0x6")][Bx("0x43")]("trackChanges").value&&(n[Bx("0x1")]>0&&n[n[Bx("0x1")]-1]&&n[n[Bx("0x1")]-1][Bx("0x13")]||o._isForcedDefaultExecutionBlock||this[Bx("0x18")]()||t[Bx("0x38")]())}),{priority:Bx("0x1a")});for(const t of[Bx("0x3f"),Bx("0x42"),"mergeTableCellDown",Bx("0x41")]){const n=e[Bx("0x6")].get(t);o.enableCommand(t,(()=>{const t=e.model.document.selection[Bx("0x2f")]().getAncestors()[Bx("0x2")]((e=>e.is("element","tableCell"))),r=n[Bx("0x31")];e[Bx("0x21")][Bx("0xf")]((()=>{o[Bx("0x27")]([t,r],{commandName:Bx("0x25"),commandParams:[]},[],Bx("0x25"))}))}))}for(const t of[Bx("0x2a"),Bx("0x2c")]){const n=e.commands.get(t);o[Bx("0xd")](t,(()=>{const s=r.getSelectionAffectedTableCells(e[Bx("0x21")][Bx("0x1d")].selection)[0],i=s[Bx("0x26")](Bx("0x39")),{column:x,row:a}=r[Bx("0x10")](s);let c=[];if("horizontally"==n[Bx("0x17")]){const e=r[Bx("0x37")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0xc")](e)[Bx("0x30")]((e=>e[Bx("0x2b")]))}else{const e=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0xc")](e)[Bx("0x30")]((e=>e[Bx("0x2b")]))}e.model[Bx("0xf")]((e=>{o[Bx("0x8")](e[Bx("0xe")](s),{commandName:t,commandParams:[]},c,t)}))}))}o[Bx("0x3d")].registerDescriptionCallback((e=>{const{data:t}=e;if(t)return Bx("0x25")==t.commandName?{type:Bx("0x3b"),content:Yo(n,Bx("0x23"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((e=>{const{data:t}=e;if(t)return Bx("0x2a")==t[Bx("0x4b")]?{type:"format",content:Yo(n,Bx("0x0"))}:Bx("0x2c")==t[Bx("0x4b")]?{type:"format",content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=s[Bx("0x32")]();for(const e of["mergeTableCellUp","mergeTableCellRight",Bx("0x1e"),"mergeTableCellLeft"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),e,Bx("0x3e"),x);for(const e of[Bx("0x2a"),"splitTableCellHorizontally"])o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),e,"accept",x);o[Bx("0x19")][Bx("0x1c")](Bx("0x44"),"mergeTableCells",Bx("0x3e"),(n=>{e.model.change((o=>{const r=Array[Bx("0xc")](t[Bx("0x2d")]()).map((e=>i.LiveRange[Bx("0x45")](e)));o[Bx("0x33")](n),e[Bx("0x6")].get(Bx("0x25"))[Bx("0x4")](),e[Bx("0x47")]("mergeTableCells",{forceDefaultExecution:!0});const s=r.filter((e=>Bx("0x3a")!=e[Bx("0x34")][Bx("0x1b")]));s[Bx("0x1")]>0&&o[Bx("0x33")](s);for(const e of r)e[Bx("0x24")]()}))}));for(const t of[Bx("0x3f"),Bx("0x1e"),Bx("0x41"),"mergeTableCellRight"]){const n=e[Bx("0x6")][Bx("0x43")](t);n.on(Bx("0x3"),((t,o,r)=>{if(r){const o=e[Bx("0x21")].document[Bx("0x40")][Bx("0x2f")]()[Bx("0x1f")]()[Bx("0x2")]((e=>e.is(Bx("0x36"),Bx("0x14"))));this._areMergableCells(n[Bx("0x31")],o)||(t[Bx("0x48")]=!1,t[Bx("0x38")]())}}),{priority:Bx("0x15")})}}_areSelectedCellsMergable(){const e=this[Bx("0x29")][Bx("0x6")].get(Bx("0x25")),t=this.editor[Bx("0x22")][Bx("0x43")](Bx("0x12"));if(!e[Bx("0x28")])return!1;const n=t[Bx("0x46")](this.editor[Bx("0x21")][Bx("0x1d")].selection);for(const e of n)for(const t of n)if(e!=t&&!this[Bx("0x11")](e,t))return!1;return!0}[Bx("0x11")](e,t){const n=this[Bx("0x29")].plugins[Bx("0x43")](Bx("0x2e")),o=this[Bx("0x29")][Bx("0x21")][Bx("0xe")](e),r=this[Bx("0x29")][Bx("0x21")].createRangeOn(t),s=new Set,i=new Set;for(const e of n.getSuggestions())if((Bx("0xb")==e[Bx("0x35")]||Bx("0x20")==e[Bx("0x35")]||Bx("0x25")==e.subType)&&e.isInContent)for(const t of e[Bx("0x2d")]())t[Bx("0x5")](o,!0)&&s[Bx("0x16")](e[Bx("0x35")]+":"+e.author.id),t.containsRange(r,!0)&&i[Bx("0x16")](e[Bx("0x35")]+":"+e[Bx("0x49")].id);if(s.size!=i.size)return!1;for(const e of s)if(!i[Bx("0xa")](e))return!1;return!0}}const Ux=["editing","document","createPositionAfter","_suggestionFactory","FORMAT_HEADER_ROW","from","mapper","getRowIndexes","table","_descriptionFactory","getChild","format","first","formatBlock","index","name","unbindElementFromMarkerName","removeAttribute","parent","*Format:* %0","writer","editor","headingRows","createRange","consumable","forceValue","FORMAT_REGULAR_COLUMN","commands","ck-suggestion-marker-","getSelectionAffectedTableCells","item","ck-suggestion-marker--active","registerCustomCallback","_acceptFormatSuggestionCallbackFactory","findAncestor","removeClass","last","addMarker:suggestion","_splitMarkerName","createPositionBefore","options","start","markerRange","selection","nodeAfter","addClass","change","getAttribute","locale","removeMarker:suggestion","model","headingColumns","childCount","markerName","registerDescriptionCallback","plugins","createTableWalker","setTableRowHeader","commandName","isBefore","includes","enableCommand","get","markBlockFormat","accept","consume","commandParams","showSuggestionHighlights","setTableColumnHeader","data","TableUtils","value","requires","end","cell","downcastDispatcher","FORMAT_HEADER_COLUMN","getColumnIndexes","getCellLocation","highest","toViewElement"];var Gx,Hx;Gx=Ux,Hx=460,function(e){for(;--e;)Gx.push(Gx.shift())}(++Hx);const zx=function(e,t){return Ux[e-=0]};class Wx extends e.Plugin{static get[zx("0x11")](){return[wx]}afterInit(){const e=this[zx("0x2f")];if(!e[zx("0x0")].has("TableEditing"))return;const t=e[zx("0x4a")],n=e[zx("0x0")][zx("0x7")]("TrackChangesEditing"),o=e[zx("0x0")][zx("0x7")](zx("0xf")),r=e.plugins[zx("0x7")](wx);function s({showActiveMarker:e=!0,setDataAttribute:t=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x40")](s[zx("0x4f")]),c=n.getSuggestion(a);if(!c[zx("0xe")]||zx("0xd")!=c[zx("0xe")].commandName)return;if(s[zx("0x38")])return void r.stop();if(!i[zx("0x32")][zx("0xa")](s[zx("0x44")],r[zx("0x29")]))return;const l=s.markerRange[zx("0x43")][zx("0x46")],d=s[zx("0x44")][zx("0x12")].nodeBefore,u=l[zx("0x2c")][zx("0x2c")],{column:g}=o[zx("0x17")](l),{column:m}=o.getCellLocation(d);for(let r=g;r<=m;r++){const c=o[zx("0x1")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x13")],c=i[zx("0x20")][zx("0x19")](r);i[zx("0x2e")][zx("0x47")](zx("0x36")+x,c),t&&i[zx("0x2e")].setAttribute("data-suggestion",a,c),i[zx("0x20")].bindElementToMarker(c,s[zx("0x4f")]),e&&(n.activeMarkers[zx("0x5")](s[zx("0x4f")])?i[zx("0x2e")][zx("0x47")](zx("0x39"),c):i.writer[zx("0x3d")](zx("0x39"),c))}}}}n[zx("0x6")](zx("0x2"),((t,r)=>{const s=o[zx("0x37")](e[zx("0x4c")][zx("0x1b")][zx("0x45")]),i=o[zx("0x21")](s),x=s[0].findAncestor(zx("0x22")),a=x[zx("0x49")](zx("0x30"))||0,c=r&&null!==r[zx("0x33")]?r[zx("0x33")]:!e[zx("0x35")][zx("0x7")](zx("0x2"))[zx("0x10")],l=c?i[zx("0x3e")]:i[zx("0x26")],d=x[zx("0x24")](l);let u;if(c){const t=x.getChild(a);if(d[zx("0x28")]<t.index)return;u=e[zx("0x4c")][zx("0x31")](e.model[zx("0x41")](t[zx("0x24")](0)),e[zx("0x4c")][zx("0x1c")](d.getChild(d[zx("0x4e")]-1)))}else{const t=x[zx("0x24")](a-1);if(!t)return;u=e.model.createRange(e[zx("0x4c")][zx("0x41")](d[zx("0x24")](0)),e[zx("0x4c")].createPositionAfter(t[zx("0x24")](t[zx("0x4e")]-1)))}e[zx("0x4c")].change((()=>{n[zx("0x8")](u,{commandName:zx("0x2"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n.enableCommand("setTableColumnHeader",((t,o)=>{const r=e[zx("0x0")].get(zx("0xf")),s=r[zx("0x37")](e[zx("0x4c")][zx("0x1b")][zx("0x45")]),i=r[zx("0x16")](s),x=s[0][zx("0x3c")]("table"),a=x[zx("0x49")](zx("0x4d"))||0,c=o&&null!==o[zx("0x33")]?o[zx("0x33")]:!e[zx("0x35")].get(zx("0xd"))[zx("0x10")];let l;const d=x[zx("0x24")](0),u=c?i.last:i[zx("0x26")],g=r[zx("0x1")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[zx("0x1f")](g)[0][zx("0x13")];if(c){const t=d[zx("0x24")](a);if(m[zx("0x4")](t))return;l=e.model[zx("0x31")](e.model.createPositionBefore(t),e.model[zx("0x1c")](m))}else{const t=d[zx("0x24")](a-1);if(!t)return;l=e[zx("0x4c")][zx("0x31")](e[zx("0x4c")][zx("0x41")](m),e[zx("0x4c")].createPositionAfter(t))}e[zx("0x4c")][zx("0x48")]((()=>{n[zx("0x8")](l,{commandName:zx("0xd"),commandParams:[{forceValue:c}]},[],zx("0xd"))}))})),e[zx("0x1a")][zx("0x14")].on(zx("0x3f"),s(),{priority:zx("0x18")}),e[zx("0xe")][zx("0x14")].on("addMarker:suggestion",((e,t,n)=>{n[zx("0x42")][zx("0xc")]&&s({showActiveMarker:!1,setDataAttribute:!1})(e,t,n)}),{priority:zx("0x18")}),e[zx("0x1a")][zx("0x14")].on(zx("0x4b"),((e,t,o)=>{const{type:r,id:s}=n._splitMarkerName(t[zx("0x4f")]),i=n.getSuggestion(s);if(!i[zx("0xe")]||zx("0xd")!=i[zx("0xe")][zx("0x3")])return;const x=o[zx("0x20")].markerNameToElements(t[zx("0x4f")]);if(x)for(const e of x)o.writer.removeClass(zx("0x36")+r,e),o[zx("0x2e")][zx("0x3d")](zx("0x39"),e),o.writer[zx("0x2b")]("data-suggestion",e),o[zx("0x20")][zx("0x2a")](e,t[zx("0x4f")])}),{priority:zx("0x18")}),n[zx("0x23")][zx("0x50")]((e=>{const{data:n}=e;if(n){if(zx("0x2")==n.commandName){const e=n.commandParams[0][zx("0x33")];return o(Yo(t,e?zx("0x1e"):"FORMAT_REGULAR_ROW"))}if(zx("0xd")==n.commandName){const e=n[zx("0xb")][0][zx("0x33")];return o(Yo(t,zx(e?"0x15":"0x34")))}}function o(e){return{type:zx("0x25"),content:Yo(t,zx("0x2d"),e)}}}));const i=r[zx("0x3b")]();n._suggestionFactory.registerCustomCallback(zx("0x27"),"setTableRowHeader",zx("0x9"),i),n[zx("0x1d")][zx("0x3a")](zx("0x27"),zx("0xd"),zx("0x9"),i)}}const Vx=["getChanges","markerToHighlight","insert","TableClipboard","updateMarker","newRange","tablePasteRow","view","document","column","move","oldRange","entries","wrap","join","getMarkers","paragraph","includes","tableCellBackgroundColor","unwrap","activeMarkers","stop","$graveyard","name","content","getChild","push","documentSelection","registerDescriptionCallback","removeRows","markMultiRangeBlockFormat","showSuggestionHighlights","position","previousSibling","plugins","containsRange","low","cell","map","endColumn","fill","row","tableCellVerticalAlignment","endRow","discard","_descriptionFactory","table","accept","registerPostFixer","suggestionLoaded","tableCellHorizontalAlignment","editingDowncast","markMultiRangeInsertion","editor","forceDefaultExecution","listenTo","_splitMarkerName","_createdBatches","nextSibling","_getCoordsForCells","reduce","attributes","tablePasteColumn","formatBlock","markerName","tableCell","schema","tablePasteChainId","some","getShiftedBy","isInContent","getSuggestionCallback","ck-suggestion-marker-insertion","last","from","tablePasteCell","removeColumns","has","options","rows","elementToElement","subType","tableCellBorderWidth","change","insertion","createRangeIn","columns","add","startsWith","Users","insertColumns","trackChanges","conversion","createRangeOn","isEmpty","markMultiRangeDeletion","insertionRanges","dataDowncast","high","createElement","nodeAfter","columnInsertionIndexes","find","get","markerAttributes","suggestion:formatBlock:tablePasteCell","getChangedMarkers","deletion","set","filter","findAncestor","batch","getAllAdjacentSuggestions","markers","first","TableUtils","getSuggestion","getRanges","element","tableCellSuggestion","model","createPositionBefore","end","tablePaste","author","setAttributes","_isForcedDefaultExecutionBlock","afterInit","commands","register","getAttributes","value","createTableWalker","type","getColumns","getSuggestions","ck-suggestion-marker--active","registerCustomCallback","suggestionUnloaded","_suggestionFactory","getItems","getRange","hasSuggestion","getContainedElement","suggestion","getChildren","length","rootName","for","fromEntries","remove","requires","removeMarker","cells","insertContent","differ","createRange","redo","suggestion-td","isEqual"];var Kx,qx;Kx=Vx,qx=468,function(e){for(;--e;)Kx.push(Kx.shift())}(++qx);const Xx=function(e,t){return Vx[e-=0]},$x=[Xx("0x5e"),"tableCellBorderColor","tableCellBorderStyle",Xx("0x3e"),Xx("0x36"),Xx("0x1e"),"tableCellPadding"],Qx=Object[Xx("0x1")]($x[Xx("0x32")]((e=>[e,null])));class Jx extends e.Plugin{static get[Xx("0x3")](){return[wx]}[Xx("0x8b")](){const e=this[Xx("0x41")];if(!e[Xx("0x2e")][Xx("0x59")]("TableClipboard"))return;const n=e[Xx("0x2e")][Xx("0x73")]("TrackChangesEditing"),o=e.plugins[Xx("0x73")](Xx("0x7f")),r=e.plugins.get(wx),s=e[Xx("0x2e")][Xx("0x73")](Xx("0xf"));r._tablePostFixingSubtypes.push(Xx("0x12"),Xx("0x4a")),e.model[Xx("0x4e")][Xx("0x8d")](Xx("0x83"),{allowIn:Xx("0x4d"),allowContentOf:"tableCell",isLimit:!0}),e[Xx("0x68")][Xx("0x5c")]({model:"tableCellSuggestion",view:Xx("0xa")});let i=null;e[Xx("0x84")].on(Xx("0x6"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0x9e")]-1];l&&l[Xx("0x42")]||n[Xx("0x8a")]||this[Xx("0x41")][Xx("0x8c")][Xx("0x73")](Xx("0x67"))[Xx("0x8f")]&&function(e,t,n,o,r){if(t&&!t.is(Xx("0x27")))return!1;const s=r.getTableIfOnlyTableInContent(e,n);if(!s||!Yx(s,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x14")].selection);if(!i[Xx("0x9e")])return!1;const x=i[0][Xx("0x7a")](Xx("0x3a")),a=o.getRowIndexes(i),c=o.getColumnIndexes(i),l={startRow:a.first,endRow:a.last,startColumn:c[Xx("0x7e")],endColumn:c[Xx("0x55")]};return 1==i.length&&(l[Xx("0x37")]+=o.getRows(s)-1,l[Xx("0x33")]+=o[Xx("0x92")](s)-1),Yx(x,l,o)}(a,c,e[Xx("0x84")],o,s)&&(r[Xx("0x21")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},e.model.change((()=>{e[Xx("0x84")][Xx("0x6")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,t.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0x9e")]&&n.markMultiRangeInsertion(r,Xx("0x12"),{tablePasteChainId:o}),s[Xx("0x9e")]&&n[Xx("0x40")](s,Xx("0x4a"),{tablePasteChainId:o}),a[Xx("0x9e")]&&n[Xx("0x40")](a,Xx("0x87"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x9e")]&&n[Xx("0x6b")](c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x2a")](l[Xx("0x32")]((({element:e})=>e)),{formatGroupId:(0,t.uid)()},[],Xx("0x57"),{tablePasteChainId:o});if(d){const t=d[Xx("0x1b")](),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=e[Xx("0x84")][Xx("0x69")](o),i=t[Xx("0x72")]((e=>e[Xx("0x99")]()[Xx("0xb")](s)));i&&n[Xx("0x26")]([i[Xx("0x23")],r])}n[Xx("0x9e")]&&d.setAttribute(Xx("0x74"),Object[Xx("0x1")](n))}i=null})))}),{priority:t.priorities[Xx("0x6e")]+10}),e[Xx("0x2e")][Xx("0x73")](Xx("0xf")).on("_replaceTableSlotCell",((e,t)=>{const[n,o,,r]=t;if(!i)return;e.stop();const s=n[Xx("0x31")],x=o,a=Zx(s),c=Zx(x);e.return=s;let l=null,d=null;if(c||a)if(a&&!c){r[Xx("0x2")](s[Xx("0x25")](0));for(const e of Array[Xx("0x56")](x.getChildren()))r[Xx("0xe")](e,s,"end");const e=i.rowInsertionIndexes[Xx("0x1d")](n[Xx("0x35")]),t=i[Xx("0x71")][Xx("0x1d")](n[Xx("0x15")]);e||t||(l=r[Xx("0x61")](s))}else c&&!a&&(d=r.createRangeIn(s));else{const e=r[Xx("0x6f")](Xx("0x83")),t=r[Xx("0x6f")]("tableCellSuggestion");r[Xx("0x19")](r[Xx("0x61")](s),t),r.insert(e,s,0);for(const t of Array[Xx("0x56")](x[Xx("0x9d")]()))r[Xx("0xe")](t,e,Xx("0x86"));l=r[Xx("0x69")](e),d=r[Xx("0x69")](t)}const u=Array[Xx("0x56")](x[Xx("0x8e")]()).filter((([e])=>$x.includes(e)));i[Xx("0x5")].push({element:s,attributes:u[Xx("0x9e")]?Object[Xx("0x1")](u):null}),l&&i[Xx("0x6c")].push(l),d&&i.deletionRanges[Xx("0x26")](d)}),{priority:Xx("0x6e")}),o.on(Xx("0x66"),((t,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x62")]||1;i[Xx("0x71")]=new Array(a).fill(x)[Xx("0x32")](((e,t)=>e+t));for(const{cell:t}of o[Xx("0x90")](r,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(e[Xx("0x84")][Xx("0x69")](t))}),{priority:Xx("0x30")}),o.on("insertRows",((t,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x5b")]||1;i.rowInsertionIndexes=new Array(a)[Xx("0x34")](x)[Xx("0x32")](((e,t)=>e+t));for(const{cell:t}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x26")](e[Xx("0x84")][Xx("0x69")](t))}),{priority:"low"}),n[Xx("0x39")][Xx("0x28")]((t=>{if(t[Xx("0x5d")]&&t[Xx("0x5d")][Xx("0x64")](Xx("0x87")))return t.previous?{}:{type:Xx("0x60"),content:Yo(e.locale,"*Replace table cells*")}}));const x=()=>!1;for(const e of[Xx("0x87"),Xx("0x4a"),Xx("0x12"),Xx("0x57")])n[Xx("0x97")][Xx("0x95")](Xx("0x60"),e,Xx("0x1a"),x),n._suggestionFactory.registerCustomCallback(Xx("0x77"),e,Xx("0x1a"),x),n[Xx("0x97")][Xx("0x95")](Xx("0x4b"),e,Xx("0x1a"),x);n[Xx("0x97")][Xx("0x95")]("formatBlock",Xx("0x57"),Xx("0x38"),x),n._suggestionFactory[Xx("0x95")](Xx("0x4b"),"tablePasteCell",Xx("0x3b"),((t,n,o)=>{const r=t.map((e=>e.getContainedElement()))[Xx("0x79")]((e=>e)),s=new Map(r[Xx("0x32")]((e=>[e,null])));if(i)for(const{element:e,attributes:t}of i[Xx("0x5")])t&&s.set(e,t);else if(o&&o[Xx("0x74")])for(const[t,n]of Object[Xx("0x18")](o[Xx("0x74")])){const o=e[Xx("0x84")][Xx("0x7d")].get(t),r=o?o[Xx("0x99")]().getContainedElement():null;r&&s[Xx("0x78")](r,n)}e.model[Xx("0x5f")]((e=>{for(const[t,n]of s)e[Xx("0x89")]({...Qx,...n},t)}))}));const a=(t,o)=>{n[Xx("0x97")][Xx("0x95")](t,Xx("0x87"),o,((r,s,i)=>{e.model[Xx("0x5f")]((e=>{const x=[];for(const e of r){const t=e.start[Xx("0x70")];t.is("element",Xx("0x83"))&&x[Xx("0x26")](t)}n[Xx("0x97")][Xx("0x53")](t,null,o)(r,s,i);for(const t of x)Xx("0x22")!=t.root[Xx("0x9f")]&&e[Xx("0x1f")](t)}))}))};a("insertion",Xx("0x3b")),a(Xx("0x60"),Xx("0x38")),a(Xx("0x77"),Xx("0x3b")),a(Xx("0x77"),Xx("0x38")),n[Xx("0x97")].registerCustomCallback(Xx("0x60"),Xx("0x12"),Xx("0x38"),(e=>{const t=e[Xx("0x32")]((e=>e.getContainedElement())),n=t[0][Xx("0x7a")](Xx("0x3a")),{minRow:s,maxRow:i}=r[Xx("0x47")](t);o[Xx("0x29")](n,{at:s,rows:i-s+1})})),n._suggestionFactory[Xx("0x95")](Xx("0x60"),"tablePasteColumn",Xx("0x38"),(e=>{const t=e[Xx("0x32")]((e=>e[Xx("0x9b")]())),n=t[0][Xx("0x7a")](Xx("0x3a")),{minColumn:s,maxColumn:i}=r._getCoordsForCells(t);o[Xx("0x58")](n,{at:s,columns:i-s+1})}));const c=(e,t)=>{if(!t.subType||!t.subType[Xx("0x64")](Xx("0x87")))return;const o=t[Xx("0x49")][Xx("0x4f")],r=n.getSuggestions()[Xx("0x79")]((e=>e.isInContent&&e[Xx("0x49")]&&e[Xx("0x49")].tablePasteChainId==o));r[Xx("0x9e")]&&t[Xx("0x7c")]()[Xx("0x9e")]!=r.length&&r[Xx("0x48")](((e,t)=>(e.next=t,t.previous=e,t)))};function l(e,t=!0){const{id:o}=n._splitMarkerName(e[Xx("0x4c")]),r=["ck-suggestion-marker",Xx("0x54")],s=n[Xx("0x20")][Xx("0x1d")](e.markerName);return s&&r[Xx("0x26")](Xx("0x94")),{classes:r,attributes:{"data-suggestion":o},priority:s&&t?3010:3e3}}n.on(Xx("0x3d"),c,{priority:Xx("0x6e")}),n.on(Xx("0x96"),c,{priority:Xx("0x6e")}),e.model.document[Xx("0x3c")]((()=>{let t=!1;const o=Array.from(e[Xx("0x84")][Xx("0x14")].differ[Xx("0x76")]());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n._splitMarkerName(r);if("suggestion"!=o||Xx("0x77")!=i||s[Xx("0x17")])continue;if(!n[Xx("0x9a")](x))continue;const a=n[Xx("0x80")](x)[Xx("0x81")](),c=e[Xx("0x2e")][Xx("0x73")](Xx("0x65")).me;for(const e of n[Xx("0x93")]())if(e[Xx("0x52")]&&e[Xx("0x88")]==c&&Xx("0x4b")==e.type&&"tablePasteCell"==e.subType&&e[Xx("0x81")]().every((e=>a[Xx("0x50")]((t=>t[Xx("0x2f")](e,!0))))))for(const n of e[Xx("0x7c")]())n[Xx("0x52")]&&(n[Xx("0x38")](),t=!0)}return t})),e[Xx("0x84")][Xx("0x14")][Xx("0x3c")]((t=>{const o=e[Xx("0x8c")][Xx("0x73")](Xx("0x9"));if(!o||!o[Xx("0x45")][Xx("0x59")](t[Xx("0x7b")]))return!1;let r=!1;const s=e[Xx("0x2e")].get("Users").me,i=e[Xx("0x84")].document.differ[Xx("0xc")](),x=Array[Xx("0x56")](e[Xx("0x84")][Xx("0x14")][Xx("0x7")][Xx("0x76")]())[Xx("0x79")]((({name:e,data:t})=>{const{group:o,subType:r,authorId:i}=n[Xx("0x44")](e);return Xx("0x9c")==o&&Xx("0x87")==r&&i==s.id&&!t.oldRange}));for(const e of i){if(Xx("0xe")!=e[Xx("0x91")]||Xx("0x83")!=e[Xx("0x23")]||1!=e[Xx("0x9e")])continue;const n=t[Xx("0x8")](e[Xx("0x2c")],e.position[Xx("0x51")](1));if(!x.find((({data:e})=>e[Xx("0x11")].isEqual(n))))for(const{name:e,data:o}of x)if(n[Xx("0x2f")](o[Xx("0x11")])){t[Xx("0x10")](e,{range:n}),r=!0;break}}return r})),e.model[Xx("0x14")][Xx("0x3c")]((t=>{let o=!1;const r=e[Xx("0x2e")].get(Xx("0x65")).me,s=n.getSuggestions().filter((e=>e[Xx("0x52")]&&e[Xx("0x88")]==r)),i=new Set,x=new Set;for(const e of s)if(Xx("0x87")==e.subType)for(const t of e[Xx("0x1b")]()){const n=t.getRange()[Xx("0x9b")]();if(n)if(n.is("element","tableCellSuggestion")&&Zx(n)){e[Xx("0x4")](t.name),i[Xx("0x63")](n),o=!0;const r=n[Xx("0x46")],s=n[Xx("0x2d")],a=r&&r.is("element",Xx("0x83")),c=s&&s.is(Xx("0x82"),Xx("0x83"));a&&!i[Xx("0x59")](r)&&x[Xx("0x63")](r),c&&!i[Xx("0x59")](s)&&x[Xx("0x63")](s)}else n.is(Xx("0x82"),Xx("0x1c"))&&n[Xx("0x6a")]&&(e[Xx("0x4")](t[Xx("0x23")]),o=!0)}else if(Xx("0x57")==e[Xx("0x5d")]){if(!e.attributes||!e[Xx("0x49")].tablePasteChainId)continue;const t=e[Xx("0x49")][Xx("0x74")];if(t&&Object.keys(t)[Xx("0x9e")])continue;const n=e[Xx("0x49")][Xx("0x4f")];let r=!0,i=!0;for(const t of s)if(t[Xx("0x5d")]&&t[Xx("0x5d")].startsWith("tablePaste")){if(!t.attributes[Xx("0x4f")]){i=!1;break}if(t.id!=e.id&&t[Xx("0x49")][Xx("0x4f")]==n){r=!1;break}}i&&r&&(e.removeMarkers(),o=!0)}for(const e of i)t[Xx("0x2")](e);for(const e of x)t.unwrap(e);return o})),e.conversion.for(Xx("0x3f"))[Xx("0xd")]({model:"suggestion:formatBlock:tablePasteCell",view:(e,t)=>l(e),converterPriority:Xx("0x6e")}),e.conversion[Xx("0x0")](Xx("0x6d"))[Xx("0xd")]({model:Xx("0x75"),view:(e,t)=>t[Xx("0x5a")][Xx("0x2b")]?l(e,!1):null,converterPriority:Xx("0x6e")});const d=e.editing[Xx("0x13")];this[Xx("0x43")](d[Xx("0x14")],"clipboardOutput",((e,t)=>{const n=[];for(const e of d[Xx("0x61")](t[Xx("0x24")])[Xx("0x98")]())e.is(Xx("0x82"),Xx("0xa"))&&n[Xx("0x26")](e);d[Xx("0x5f")]((e=>{for(const t of n)e[Xx("0x16")](e[Xx("0x61")](t),e[Xx("0x85")](t)),e[Xx("0x2")](t)}))}))}}function Zx(e){if(e[Xx("0x6a")])return!0;const t=e[Xx("0x25")](0);return t.is(Xx("0x82"),Xx("0x1c"))&&t[Xx("0x6a")]}function Yx(e,t={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n.createTableWalker(e,{includeAllSlots:!0,...t}))if(!o||1!=r||1!=s)return!1;return!0}const ea=["columnWidths","commandParams","model","resizeColumnWidths","registerCustomCallback","*Format:* resize table","_suggestionFactory","get","editor","change","getAttribute","locale","registerDescriptionCallback","TrackChangesEditing","afterInit","formatGroupId","handleSuggestionDescription","formatBlock","Users","data","_descriptionFactory","tableWidth","resizeTable","TableColumnResizeEditing","handleResizeTableWidthCommand","accept","discard","markBlockFormat","bind","getSuggestionCallback","getSelectedElement","enableCommand","document","resizeTableWidth","plugins","selection"];var ta,na;ta=ea,na=289,function(e){for(;--e;)ta.push(ta.shift())}(++na);const oa=function(e,t){return ea[e-=0]};class ra extends e.Plugin{[oa("0xd")](){if(!this[oa("0x7")][oa("0x21")].has(oa("0x16")))return;const e=this[oa("0x7")].plugins.get("TrackChangesEditing");e[oa("0x1e")](oa("0x20"),this[oa("0x17")][oa("0x1b")](this)),e[oa("0x1e")](oa("0x2"),this.handleResizeTableWidthCommand[oa("0x1b")](this)),e[oa("0x5")][oa("0x3")]("formatBlock",oa("0x15"),oa("0x18"),e._suggestionFactory[oa("0x1c")](oa("0x10"),null,"discard")),e[oa("0x5")][oa("0x3")](oa("0x10"),oa("0x15"),oa("0x19"),e[oa("0x5")][oa("0x1c")](oa("0x10"),null,oa("0x18"))),e[oa("0x13")][oa("0xb")](this[oa("0xf")].bind(this))}handleResizeTableWidthCommand(e,t){const n=this[oa("0x7")][oa("0x21")].get(oa("0xc")),o=this.editor[oa("0x21")][oa("0x6")](oa("0x16")),r=t.table||this[oa("0x7")].model[oa("0x1f")][oa("0x22")][oa("0x1d")]();this[oa("0x7")][oa("0x1")][oa("0x8")]((()=>{const s=o.getColumnGroupElement(r);let i=s?o.getTableColumnsWidths(s):null,x=r[oa("0x9")]("tableWidth")||null;const a=t[oa("0x14")]||x,c=t[oa("0x23")]||i,l=this[oa("0x7")].plugins[oa("0x6")](oa("0x11")).me;for(const e of n.getSuggestions()){const t=e.getContainedElement();if(oa("0x15")===e.subType&&t===r){e.author!==l&&e[oa("0x19")]();const t=e[oa("0x12")][oa("0x0")];x=t[0].tableWidth,i=t[0][oa("0x23")];break}}e({table:r,tableWidth:a,columnWidths:c}),n[oa("0x1a")](r,{commandName:oa("0x20"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],oa("0x15"))}))}handleSuggestionDescription(e){const{data:t}=e;if(t&&"resizeTable"===t[oa("0xe")]){const e=oa("0x4");return{type:"format",content:Yo(this.editor[oa("0xa")],e)}}}}const sa=["Template","afterInit","insertTemplate","plugins","has","editor","enableCommand"];var ia,xa;ia=sa,xa=148,function(e){for(;--e;)ia.push(ia.shift())}(++xa);const aa=function(e,t){return sa[e-=0]};class ca extends e.Plugin{[aa("0x0")](){const e=this[aa("0x4")];e.plugins[aa("0x3")](aa("0x6"))&&e[aa("0x2")].get("TrackChangesEditing")[aa("0x5")](aa("0x1"))}}const la=["get","insertTableOfContents","enableCommand","locale","TrackChangesEditing","commands","_descriptionFactory","afterInit","plugins","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS"];var da,ua;da=la,ua=385,function(e){for(;--e;)da.push(da.shift())}(++ua);const ga=function(e,t){return la[e-=0]};class ma extends e.Plugin{[ga("0x7")](){const e=this.editor;if(!e[ga("0x5")][ga("0x0")](ga("0x1")))return;e[ga("0x8")][ga("0x0")](ga("0x4"))[ga("0x2")](ga("0x1"));const t=e[ga("0x8")][ga("0x0")]("TrackChangesEditing"),n=e[ga("0x3")];t[ga("0x6")][ga("0x9")]("tableOfContents",(e=>Yo(n,ga("0xa"),e)))}}const fa=["isTouching","has","updateMarker","afterInit","from","forward","document","differ","TrackChangesEditing","isEqual","registerPostFixer","plugins","suggestion","createRange","start","title-content","schema","newRange","model","editor","end","nodeBefore","removeMarker","registerElementLabel","_descriptionFactory","ELEMENT_TITLE","element","get"];var ha,ba;ha=fa,ba=320,function(e){for(;--e;)ha.push(ha.shift())}(++ba);const pa=function(e,t){return fa[e-=0]};class Ea extends e.Plugin{[pa("0x13")](){const e=this[pa("0x7")];if(!e[pa("0x1b")][pa("0x11")]("Title"))return;const t=e[pa("0x1b")][pa("0xf")](pa("0x18"));t[pa("0xc")][pa("0xb")](pa("0x3"),(()=>Yo(e.locale,pa("0xd")))),e[pa("0x6")][pa("0x16")][pa("0x1a")]((n=>{let o=!1;const r=Array[pa("0x14")](e[pa("0x6")][pa("0x16")][pa("0x17")].getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=t._splitMarkerName(s);if(pa("0x0")!==r||!i[pa("0x5")])continue;const x=i[pa("0x5")],a=x[pa("0x8")][pa("0x9")];if(!a||!a.is(pa("0xe"),pa("0x3")))continue;if(!x.start[pa("0x10")](x[pa("0x8")]))continue;const c=e[pa("0x6")][pa("0x4")].getNearestSelectionRange(x[pa("0x8")],pa("0x15"));if(c&&c.isCollapsed){const e=n[pa("0x1")](x.start,c[pa("0x2")]);e[pa("0x19")](x)||(n[pa("0x12")](s,{range:e}),o=!0)}o||(n[pa("0xa")](s),o=!0)}return o}))}}const _a=["editor","enableCommand","afterInit","undo","has","plugins","TrackChangesEditing","UndoEditing"];var Ta,Ca;Ta=_a,Ca=430,function(e){for(;--e;)Ta.push(Ta.shift())}(++Ca);const ya=function(e,t){return _a[e-=0]};class ka extends e.Plugin{[ya("0x4")](){const e=this[ya("0x2")],t=e[ya("0x7")].get(ya("0x0"));e[ya("0x7")][ya("0x6")](ya("0x1"))&&(t[ya("0x3")](ya("0x5")),t.enableCommand("redo"))}}const Aa=["TableCaptionEditing","get","requires","plugins","TrackChangesEditing","has","toggleTableCaption","enableCommand","afterInit"];var va,Ra;va=Aa,Ra=405,function(e){for(;--e;)va.push(va.shift())}(++Ra);const Ia=function(e,t){return Aa[e-=0]};class Sa extends e.Plugin{static get[Ia("0x2")](){return[wx]}[Ia("0x8")](){const e=this.editor;e.plugins[Ia("0x5")](Ia("0x0"))&&e[Ia("0x3")][Ia("0x1")](Ia("0x4"))[Ia("0x7")](Ia("0x6"))}}const La=["isFirstBlockOfListItem","_getTranslationKeyForListStyle","*Format:* set order to reversed","listType","TrackChangesEditing","handleListStyleCommand","editor","replace","has","_getSuggestionBlocksForListStyle","plugins","commandName","get","startIndex","getSelectedBlocks","DocumentListPropertiesUtils","listReversed","getAttribute","toUpperCase","_getSuggestionBlocks","afterInit","*Format:* set start index to %0","isListItemBlock","_LIST_","styles","change","document","from","handleDescriptions","bind","type","config","commandParams","listStart","DocumentListPropertiesEditing","markMultiRangeBlockFormat","enableCommand","push","locale","_descriptionFactory","handleListReversedCommand","format","reversed","*Change to:* %0","numbered","length","model","listStyle","list.properties","selection","filter","DocumentListUtils","registerDescriptionCallback","expandListBlocksToCompleteList"];var Na,Ma;Na=La,Ma=206,function(e){for(;--e;)Na.push(Na.shift())}(++Ma);const wa=function(e,t){return La[e-=0]};class Oa extends e.Plugin{[wa("0x1e")](){if(!this[wa("0x10")][wa("0x14")][wa("0x12")](wa("0x2c")))return;const e=this[wa("0x10")][wa("0x29")][wa("0x16")](wa("0x4")),t=this[wa("0x10")][wa("0x14")][wa("0x16")]("TrackChangesEditing");e[wa("0x22")]&&t[wa("0x2e")](wa("0x3"),this[wa("0xf")][wa("0x27")](this)),e[wa("0x34")]&&t[wa("0x2e")](wa("0x1a"),this[wa("0x32")][wa("0x27")](this)),e.startIndex&&t[wa("0x2e")](wa("0x2b"),this.handleListStartCommand[wa("0x27")](this)),t[wa("0x31")][wa("0x8")](this[wa("0x26")][wa("0x27")](this))}handleListStyleCommand(e,t={}){const n=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x13")]();this[wa("0x10")][wa("0x2")].change((()=>{n[wa("0x2d")](o,{commandName:wa("0x3"),commandParams:[{type:t[wa("0x28")]}],formatGroupId:wa("0x3")})}))}handleListReversedCommand(e,t={}){const n=this.editor[wa("0x14")][wa("0x16")](wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")]("DocumentListUtils"),r=this[wa("0x1d")]((e=>o[wa("0x20")](e)&&wa("0x0")===e[wa("0x1b")](wa("0xd"))));null!==r&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n[wa("0x2d")](r,{commandName:wa("0x1a"),commandParams:[{reversed:t[wa("0x34")]}],formatGroupId:"listReversed"})}))}handleListStartCommand(e,t={}){const n=this.editor[wa("0x14")].get(wa("0xe")),o=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7")),r=this[wa("0x1d")]((e=>o[wa("0x20")](e)&&wa("0x0")===e[wa("0x1b")](wa("0xd"))));null!==r&&this[wa("0x10")][wa("0x2")][wa("0x23")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:wa("0x2b"),commandParams:[{startIndex:t[wa("0x17")]}],formatGroupId:"listStart"})}))}[wa("0x26")](e){const t=this[wa("0x10")][wa("0x30")],{data:n}=e;if(!n)return;let o,r;switch(n[wa("0x15")]){case wa("0x3"):o=wa("0x35"),r={type:"format",content:Yo(t,o,Yo(t,this[wa("0xb")](n[wa("0x2a")][0][wa("0x28")])))};break;case wa("0x1a"):o=n[wa("0x2a")][0][wa("0x34")]?wa("0xc"):"*Format:* set order to regular",r={type:"format",content:Yo(t,o)};break;case"listStart":o=wa("0x1f"),r={type:wa("0x33"),content:Yo(t,o,n[wa("0x2a")][0][wa("0x17")])}}return r}[wa("0x13")](){const e=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let t=Array.from(this[wa("0x10")][wa("0x2")][wa("0x24")][wa("0x5")][wa("0x18")]());return t.push(...e.expandListBlocksToCompleteList(t)),t=[...new Set(t)],t}_getSuggestionBlocks(e){const t=this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x7"));let n=Array[wa("0x25")](this[wa("0x10")].model.document[wa("0x5")].getSelectedBlocks())[wa("0x6")](e);if(!n[wa("0x1")])return null;n=t[wa("0x9")](n);const o=[];for(const e of n)t[wa("0xa")](e)&&o[wa("0x2f")](e);return o}[wa("0xb")](e){return"ELEMENT_"+this[wa("0x10")][wa("0x14")][wa("0x16")](wa("0x19")).getListTypeFromListStyleType(e)[wa("0x1c")]()+wa("0x21")+e[wa("0x1c")]()[wa("0x11")](/-/g,"_")}}const Fa=["_suggestionFactory","getSuggestions","discard","document","data","tableCellWidth","getAttribute","getFirstPosition","selection","tableAlignment","registerCustomCallback","tableCellPadding","tableCellVerticalAlignment","formatBlock","handleSuggestionDescription","join","removeAttribute","tableCellHorizontalAlignment","tableProperties","markBlockFormat","tableCellHeight","model","locale","TableCellPropertiesEditing","*Format:* change table properties","get","tableCellBorderColor","getSuggestionCallback","has","tableBorderStyle","*Format:* change table cell properties","findAncestor","_handlePropertyChange","start","subType","_getSuggestion","tableBorderWidth","TrackChangesEditing","getSelectionAffectedTableCells","enqueueChange","accept","tableCellProperties","plugins","TableUtils","format","TrackChangesTableProperties","editor","enableCommand","registerDescriptionCallback","_descriptionFactory","tableCellBorderWidth","tableCellBorderStyle","handleDiscardAction","tableBackgroundColor"];var Pa,Da;Pa=Fa,Da=376,function(e){for(;--e;)Pa.push(Pa.shift())}(++Da);const Ba=function(e,t){return Fa[e-=0]};class ja extends e.Plugin{constructor(e){super(e),this[Ba("0x14")]=["tableBorderColor",Ba("0x1f"),Ba("0x26"),Ba("0xb"),"tableWidth","tableHeight",Ba("0x1")],this[Ba("0x2b")]=[Ba("0x1c"),Ba("0x35"),Ba("0x34"),Ba("0xd"),Ba("0x7"),Ba("0x16"),"tableCellBackgroundColor",Ba("0x13"),Ba("0xe")]}static get pluginName(){return Ba("0x2f")}afterInit(){const e=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")]("TrackChangesEditing");if(this[Ba("0x30")][Ba("0x2c")].has("TablePropertiesEditing")){for(const t of this.tableProperties)e.enableCommand(t,((e,n)=>{const o=this[Ba("0x30")][Ba("0x17")][Ba("0x5")].selection[Ba("0x9")]()[Ba("0x21")]("table");this[Ba("0x22")](t,[o],this[Ba("0x14")],Ba("0x14"),e,n)}));e._suggestionFactory[Ba("0xc")](Ba("0xf"),Ba("0x14"),"accept",e[Ba("0x2")][Ba("0x1d")](Ba("0xf"),null,Ba("0x4"))),e[Ba("0x2")][Ba("0xc")](Ba("0xf"),"tableProperties","discard",((e,t)=>this.handleDiscardAction(this[Ba("0x14")],e,t))),e[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x14"),Ba("0x11"),(()=>!1))}if(this[Ba("0x30")][Ba("0x2c")][Ba("0x1e")](Ba("0x19"))){for(const t of this[Ba("0x2b")])e[Ba("0x31")](t,((e,n)=>{const o=this[Ba("0x30")].plugins.get(Ba("0x2d"))[Ba("0x28")](this[Ba("0x30")][Ba("0x17")][Ba("0x5")][Ba("0xa")]);this[Ba("0x22")](t,o,this[Ba("0x2b")],"tableCellProperties",e,n)}));e[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x2b"),Ba("0x2a"),e._suggestionFactory.getSuggestionCallback(Ba("0xf"),null,Ba("0x4"))),e._suggestionFactory.registerCustomCallback(Ba("0xf"),Ba("0x2b"),Ba("0x4"),((e,t)=>this[Ba("0x0")](this[Ba("0x2b")],e,t))),e[Ba("0x2")][Ba("0xc")](Ba("0xf"),Ba("0x2b"),"join",(()=>!1))}e[Ba("0x33")][Ba("0x32")]((e=>this[Ba("0x10")](e)))}[Ba("0x22")](e,t,n,o,r,s){const i=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));this[Ba("0x30")][Ba("0x17")][Ba("0x29")](s.batch,(()=>{for(const e of t)if(this[Ba("0x25")](e,o))r(s);else{const t={};for(const o of n){const n=e[Ba("0x8")](o);void 0!==n&&(t[o]=n)}r(s),i[Ba("0x15")](e,{commandParams:[t]},[],o)}}))}handleDiscardAction(e,t,n){const o=t[0][Ba("0x23")].nodeAfter,r=n.commandParams[0];this[Ba("0x30")][Ba("0x17")].change((t=>{for(const n of e)void 0!==r[n]?t.setAttribute(n,r[n],o):t[Ba("0x12")](n,o)}))}[Ba("0x10")](e){if(e[Ba("0x6")])switch(e[Ba("0x24")]){case Ba("0x14"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")][Ba("0x18")],Ba("0x1a"))};case Ba("0x2b"):return{type:Ba("0x2e"),content:Yo(this[Ba("0x30")].locale,Ba("0x20"))}}}[Ba("0x25")](e,t){const n=this[Ba("0x30")][Ba("0x2c")][Ba("0x1b")](Ba("0x27"));for(const o of n[Ba("0x3")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o.subType===t&&n===e)return o}return null}}const Ua=["createPositionBefore","move","widget","rethrowUnexpectedError","addMarker:suggestion:formatBlock","_saved","ck-suggestion-marker","formatBlock:","_setSuggestionRange","assign","locale","add","Users","collaboration.channelId","addRange","return","discard","isAtStart","getAncestors","never","getItems","nodeBefore","parent","name","markDeletion","start","consumable","schema","enableReadOnlyMode","clear","_setSuggestionData","getAllAdjacentSuggestions","track-changes-user-not-found","formatInline:accept","type","isNextTo","_commentsRepository","_getAuthorFromId","_defaultCallbacks","acceptSelectedSuggestions","oldRange","_getExternalAuthor","getMultiRangeId","markMultiRangeInsertion","substr","document","lowest","toViewElement","isEqual","batch","sort","track-changes-adapter-missing-getsuggestion","highest","change:activeMarkers","formatInline:chain","_refreshSuggestionsChain","removed","getAttribute","writer","isBefore","init","createRange","_rangeIsInLocalUserInsertion","updateSuggestion","registerCustomCallback","CommentsRepository","splice","_joinWithAdjacentSuggestions","createRangeIn","filter","change","_trackFormatChanges","createdAt","plugins","@external","group","open","join","stop","_checkSuggestionCorrectness","markerReady","multi","editing","_addThreadToSuggestion","documentSelection","isAfter","formatInline","author","_onDiscard","deleteContent","deletion:","isSelectable","accept","removeMarker:suggestion:formatBlock","keys","_handleNewSuggestionMarker","ck-suggestion-marker-","dataReady","map","insertion:","has","registerPostFixer","buildSuggestion","markerNameToElements","change:data","isArray","_editor","addSuggestion","options","set","trackChangesCommand","deletion","deletion:join","insert","listenTo","execute","consume","getWalker","isObject","createSelection","suggestionLoaded","activeMarkers","track-changes-suggestion-data-mismatch","fromCharCode","getChangedMarkers","containsRangeInObject","containerElement","getIntersection","formatInline:join","conversion","values","unbind","createPositionAfter","range","detach","isUndo","showSuggestionHighlights","discardAllSuggestions","removeMarker","removeMarkers","discardSelectedSuggestions","updateMarker","elementToElement","ready","setAttribute","_joinSuggestions","track-changes-adapter-already-set","suggestion:","_removeSuggestion","notReady","getSuggestionCallback","markerName","suggestion-type","formatBlock:chain","markers","commentThread","_cutOutSuggestionMarker","getShiftedBy","adapter","from","selection","high","markInsertion","position","_adapter","ck-suggestion-marker--active","insertion:chain","end","addClass","size","suggestion","isCollapsed","suggestionChanged","split","isAtEnd","_suggestions","nodeAfter","formatGroupId","next","isRemovable","PENDING_ACTION_SUGGESTION","createPositionAt","setSelection","trackChanges.trackFormatChanges","define","$marker","isDocumentOperation","bindElementToMarker","_breakSuggestionMarker","getUser","low","config","applyOperation","_addSuggestionMarker","get","pluginName","before","acceptSuggestion","_model","reconvertMarker","_getSuggestionData","getRanges","_suggestionState","previous","fromRange","rootName","some","authoredAt","isMultiRange","acceptAllSuggestions","every","addMarkerName","getCommentThread","isInsideObject","stopListening","removeComment","PendingActions","creator","getCustomProperty","_mergeNestedSuggestions","enableCommand","forceDefaultExecution","enqueueChange","markMultiRangeBlockFormat","getLastMatchingPosition","removeClass","rejected","delete","commands","remove","data","length","multipleBlocks","isBlock","setTo","addUser","unbindElementFromMarkerName","_isDataLoaded","elementStart","createElement","_customCallbacks","_enabledCommands","insertion:join","isInContent","skipNestingCheck","containsPosition","item","for","discardSuggestion","mapper","_splitMarkerName","containsRange","catch","addHighlight","_isForcedDefaultExecutionBlock","getFirstMarker","insertContent","_updateSuggestionData","addCommentThread","containsItem","upcast","subType","_findSuggestions","isExternal","hasComments","insertion","newRange","addMarker","markInlineFormat","getSuggestion","then","hasCommentThread","TrackChangesEditing","includes","root","element","isTouching","getNearestSelectionRange","deletion:accept","$graveyard","addComment","editor","markerToHighlight","formatBlock:discard","markerToData","backward","isLimit","deletion:discard","elementEnd","fire","_suggestionFactory","trackChanges","editingDowncast","attributes","hasSuggestion","data-suggestion","formatBlock:join","external:","getRange","getDifference","model","formatBlock","addSuggestionData","push","isIntersectingWithRange","getSuggestions","trackChanges.mergeNestedSuggestions","always","_registerDefaultCallbacks","forward","isOwn","value","dataDowncast","$textProxy","getFirstRange"];var Ga,Ha;Ga=Ua,Ha=425,function(e){for(;--e;)Ga.push(Ga.shift())}(++Ha);const za=function(e,t){return Ua[e-=0]};class Wa extends e.Plugin{static get requires(){return[za("0x10e"),s.Users,e.PendingActions,cr,Cr,Rr,wr,Br,Wr,Qr,ts,Oa,xs,us,ps,ys,Ls,Ps,Gs,Ks,Js,ni,xi,ui,bi,Ci,Ri,Oi,ji,Wi,$i,ex,ix,ux,bx,yx,Ix,wx,jx,Wx,Sa,Jx,ra,ma,ja,ca,Ea,ka]}static get[za("0x55")](){return za("0xa2")}constructor(e){function t(e){return e[za("0x12f")]((e=>String[za("0xd")](e)))[za("0x11a")]("")}super(e),this[za("0x13a")]("activeMarkers",[]),this.on(za("0x102"),((t,n,o,r)=>{this[za("0x58")][za("0x113")]((()=>{for(const t of[...r,...o])this[za("0x58")][za("0x2c")][za("0x131")](t)&&e[za("0x11f")][za("0x59")](t)}))})),this._descriptionFactory=new rr(this[za("0xab")][za("0xbe")][za("0xe8")],this.editor[za("0xd7")]),this[za("0x36")]=null,this[za("0xb4")]=new Va(this[za("0xab")]),this._suggestions=new Map,this._commentsRepository=e[za("0x116")][za("0x54")]("CommentsRepository"),this[za("0x83")]=new Set,this[za("0x58")]=this[za("0xab")].model,this[za("0x5c")]=new WeakMap,this[za("0x90")]=!1,e[za("0x51")][za("0x4a")](za("0x49"),"default"),this[za("0x114")]=e[za("0x51")].get(za("0x49")),e[za("0x51")][za("0x4a")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x6d")]=e[za("0x51")][za("0x54")](za("0xc4")),this.trackChangesCommand=new u(e,this._enabledCommands),this[t([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=t([52,48,52,54,49,56,48,52])}[za("0x109")](){const e=this[za("0xab")];e[za("0x13")].for(za("0xb6")).markerToHighlight({model:"suggestion",view:e=>{const{id:t,type:n}=this[za("0x8c")](e.markerName),o=[za("0xd3"),"ck-suggestion-marker-"+n];let r=3e3;return this[za("0xb")][za("0xa3")](e.markerName)&&(o[za("0xc1")](za("0x37")),r=3010),za("0x1")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":t},priority:r}}}),e[za("0x13")].for(za("0xca")).add((t=>{t.on("addMarker:suggestion",((t,n,o)=>{if(!o.options[za("0x1a")])return;const r=n[za("0x88")];if(!r)return;const s=o[za("0x8b")][za("0xfc")](r);e[za("0xbe")][za("0xe8")][za("0x8")](r)&&s&&!s[za("0x6c")](za("0xcf"))&&s.is(za("0x10"))&&(0,x.toWidget)(s,o[za("0x107")])}),{priority:za("0x33")})})),e.conversion[za("0x89")](za("0xca"))[za("0xac")]({model:za("0x3c"),view:(e,t)=>{if(!t.options[za("0x1a")])return null;const{type:n}=this[za("0x8c")](e[za("0x29")]);return{classes:[za("0xd3"),za("0x12d")+n],priority:3e3}}});const n=({showActiveMarkers:t=!0}={})=>(n,o,r)=>{if(!o[za("0x88")])return;if(o.item.is(za("0x32")))return void r[za("0xe7")][za("0x6")](o[za("0x88")],n[za("0xe4")]);const s=r[za("0x8b")].toViewElement(o[za("0x88")]);if(!o[za("0x88")].is(za("0xa5"))||!e[za("0xbe")][za("0xe8")][za("0x7b")](o[za("0x88")])||s[za("0x6c")](za("0x8f")))return;const{id:i}=this[za("0x8c")](o[za("0x29")]);r[za("0x107")][za("0x3a")]([za("0xd3"),"ck-suggestion-marker-formatBlock"],s),r[za("0x107")][za("0x22")](za("0xb9"),i,s),r[za("0x8b")][za("0x4d")](s,o[za("0x29")]),t&&(this[za("0xb")][za("0xa3")](o[za("0x29")])?r.writer.addClass(za("0x37"),s):r[za("0x107")].removeClass(za("0x37"),s));for(const t of e[za("0xbe")][za("0x111")](o.item)[za("0xe1")]())r[za("0xe7")][za("0x6")](t,n[za("0xe4")]);r.consumable[za("0x6")](o[za("0x88")],n[za("0xe4")])};e[za("0x13")].for("dataDowncast")[za("0xd8")]((e=>{e.on(za("0xd1"),((e,t,o)=>{o[za("0x139")][za("0x1a")]&&n({showActiveMarkers:!1})(e,t,o)}),{priority:za("0x101")})})),e[za("0x13")][za("0x89")](za("0xca"))[za("0xae")]({model:za("0x3c"),view:(e,t)=>t[za("0x139")][za("0x1a")]?null:{group:za("0x3c"),name:e[za("0xf9")](11)}}),e.conversion[za("0x89")]("upcast")[za("0x20")]({view:{name:za("0x3c"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(e,{writer:t})=>{let n=za("0x25")+e[za("0x106")](za("0x2a"))+":"+e[za("0x106")]("id");return e.getAttribute("marker-count")&&(n+=":"+e.getAttribute("marker-count")),t[za("0x81")](za("0x4b"),{"data-name":n})}}),e.conversion.for(za("0x96")).dataToMarker({view:za("0x3c")}),e[za("0x13")][za("0x89")](za("0xb6"))[za("0xd8")]((e=>{e.on(za("0xd1"),n(),{priority:za("0x33")})})),e[za("0x13")].for(za("0xb6"))[za("0xd8")]((e=>{e.on(za("0x12a"),((e,t,n)=>{const o=n[za("0x8b")][za("0x134")](t[za("0x29")]);if(o)for(const e of o)e[za("0x6c")](za("0x8f"))||(n[za("0x107")][za("0x73")](["ck-suggestion-marker","ck-suggestion-marker-formatBlock",za("0x37")],e),n[za("0x107")].removeAttribute(za("0xb9"),e),n[za("0x8b")][za("0x7e")](e,t[za("0x29")]))}),{priority:za("0x33")})})),e[za("0xbe")][za("0xfa")][za("0x132")]((t=>{let n=!1;const o=Array.from(e.model[za("0xfa")].differ[za("0xe")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x3c")!==o)continue;const d=this[za("0x41")][za("0x54")](l);if(null!=a[za("0x9c")])if("formatInline"==c&&(n=n||Xa(a.newRange,x,t,e[za("0xbe")][za("0xe8")])),a.newRange[za("0x3d")]||za("0xa9")==a[za("0x9c")].root[za("0x5f")]||za("0xbf")==c&&!Qa(a[za("0x9c")])||za("0x1")==c&&(qa(i=a[za("0x9c")])||(s=i)[za("0xe6")][za("0xe3")]==s[za("0x39")].nodeBefore&&s[za("0xe6")].isAtEnd))t[za("0x1c")](x),n=!0;else{if(!d||!d[za("0x85")])continue;r.add(d)}}var s,i;return r[za("0x3b")]>0&&(n=!!this[za("0x110")](r)||n),n})),e[za("0xbe")].document[za("0x132")]((t=>{let n=!1;for(const o of e.model[za("0xfa")].differ.getChanges()){if(za("0x3")!=o[za("0xef")])continue;const r=o[za("0x35")][za("0x2f")](o[za("0x79")]);if(r[za("0x40")])for(const s of this[za("0x41")].values()){if(s[za("0x62")]||!s[za("0x85")])continue;if(za("0xbf")!=s[za("0xef")])continue;const i=s.getFirstRange();if(i[za("0xe6")].parent!=i[za("0x39")][za("0xe3")]&&i[za("0x39")][za("0xfd")](o[za("0x35")])){const o=e[za("0xbe")].createRange(i[za("0xe6")],r);t.updateMarker(s[za("0x91")](),{range:o}),n=!0}}}return n})),e[za("0xbe")].markers.on("update:suggestion",((e,t,n)=>{if(null==n){const{id:e}=this[za("0x8c")](t[za("0xe4")]),n=this[za("0x41")][za("0x54")](e);n&&n.addMarkerName(t[za("0xe4")])}})),e[za("0xbe")][za("0xfa")].on(za("0x135"),(()=>{const t=Array[za("0x31")](e[za("0xbe")].document.differ.getChangedMarkers())[za("0x112")]((e=>za("0x3c")===this._splitMarkerName(e[za("0xe4")])[za("0x118")]));if(0===t.length)return;t[za("0xff")](((e,t)=>{const n=e[za("0x78")][za("0xf5")],o=t[za("0x78")][za("0xf5")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0xe6")][za("0x108")](o[za("0xe6")])?-1:1}));const n=new Set,o=new Set;for(const{name:e,data:r}of t){const{id:t}=this._splitMarkerName(e);if(null===r[za("0xf5")]){const t=this._handleNewSuggestionMarker(e);o[za("0xd8")](t)}else{const e=this[za("0x41")][za("0x54")](t);null!==r[za("0x9c")]||e.isInContent?(n[za("0xd8")](e.head),o[za("0xd8")](e)):this[za("0x26")](e)}}o[za("0x3b")]>0&&this._refreshSuggestionsChain(o);for(const e of n)this.fire(za("0x3e"),e)})),e[za("0xbe")].on(za("0x52"),((t,n)=>{const o=n[0];if(!this._suggestions[za("0x3b")])return;if(!o[za("0x4c")])return;if(o[za("0xfe")][za("0x19")]||!o[za("0xfe")].isLocal)return;let r,s;switch(o[za("0xef")]){case za("0x3"):r=e[za("0xbe")][za("0x47")](o[za("0x35")]),s=r.getShiftedBy(o.howMany);break;case"split":r=e.model.createPositionAt(o.splitPosition),s=e[za("0xbe")][za("0x47")](o.moveTargetPosition);break;case za("0xce"):r=e[za("0xbe")][za("0x47")](o.targetPosition),s=r[za("0x2f")](o.howMany);break;default:return}const i=e[za("0xbe")].createRange(r,s);e[za("0xbe")].change((()=>{for(const{suggestion:e,meta:t}of this[za("0x98")](i)){if(e.isMultiRange)continue;if("formatInline"==e.type)continue;const n=e[za("0x78")]&&e.data[za("0x7a")];(za("0xbf")!=e.type||za("0x3f")==o[za("0xef")]&&!n)&&(t.containsRangeInObject||za("0x9b")==e[za("0xef")]&&t[za("0xc8")]||e.getFirstRange()[za("0x8d")](i)&&this[za("0x4e")](e,r,s))}}))}),{priority:za("0xfb")}),e[za("0xbe")].on(za("0x126"),((t,n)=>{const o=n[0],r=n[1];if(r&&r[za("0x6f")])return;if(this[za("0x90")])return;if(!this[za("0x0")][za("0xc9")])return;if(o[za("0x3d")])return;const s=e.model[za("0xe8")],{start:i,end:x}=o[za("0xcc")](),a=i[za("0x42")]&&s[za("0xb0")](i.nodeAfter)?null:s[za("0xa7")](i,za("0xc7")),c=x[za("0xe2")]&&s[za("0xb0")](x[za("0xe2")])?null:s[za("0xa7")](x,za("0xaf")),l=e[za("0xbe")][za("0x10a")](a?a[za("0xe6")]:i,c?c.end:x);e.model.change((t=>{this[za("0xe5")](l);const n=e[za("0xbe")][za("0xe8")][za("0xa7")](l[za("0xe6")]);o.is(za("0x121"))?t[za("0x48")](n):o[za("0x7c")](n)})),t.stop()}),{priority:t.priorities.normal+10}),e[za("0xbe")].on(za("0x92"),((t,n)=>{const o=n[n.length-1];o&&o[za("0x6f")]||this[za("0x90")]||this[za("0x0")].value&&(e[za("0xbe")][za("0x113")]((()=>{let o=e.model[za("0x92")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;t[za("0xdc")]=o.clone();const r=o.end[za("0xe2")],s=e[za("0xbe")][za("0xe8")];r&&s.isBlock(r)&&!s[za("0x8")](r)&&(o=e[za("0xbe")].createRange(o[za("0xe6")],e[za("0xbe")][za("0x47")](r,za("0x39")))),this[za("0x34")](o)})),t.stop())}),{priority:za("0x33")}),this[za("0xab")].commands.add(za("0xb5"),this[za("0x0")]),this.enableCommand(za("0xb5"));const o=new b(e,this[za("0x41")]);e[za("0x76")][za("0xd8")](za("0x57"),o),this[za("0x6e")](za("0x57"));const r=new C(e,this[za("0x41")]);e[za("0x76")][za("0xd8")](za("0x8a"),r),this[za("0x6e")](za("0x8a")),e[za("0x76")].add("acceptAllSuggestions",new F(e,o,this[za("0x41")])),this[za("0x6e")](za("0x63")),e[za("0x76")][za("0xd8")](za("0x1b"),new F(e,r,this[za("0x41")])),this[za("0x6e")](za("0x1b")),e[za("0x76")][za("0xd8")]("acceptSelectedSuggestions",new U(e,o,this[za("0x41")])),this.enableCommand(za("0xf4")),e[za("0x76")][za("0xd8")]("discardSelectedSuggestions",new U(e,r,this._suggestions)),this.enableCommand(za("0x1e"));const s=e[za("0x116")].get(za("0x10e"));this.listenTo(s,za("0xaa"),((e,{threadId:t})=>{const n=this[za("0x41")][za("0x54")](t);n&&n[za("0x2d")]&&1===n[za("0x2d")][za("0x79")]&&this._updateSuggestionData(t,{hasComments:!0})}),{priority:"low"}),this[za("0x4")](s,za("0x69"),((e,{threadId:t})=>{const n=this[za("0x41")].get(t);n&&n[za("0x2d")]&&!n[za("0x2d")][za("0x79")]&&this[za("0x93")](t,{hasComments:!1})}),{priority:za("0x50")})}set[za("0x30")](e){if(this[za("0x36")])throw new t.CKEditorError(za("0x24"),this);this[za("0x36")]=e}get[za("0x30")](){return this[za("0x36")]}[za("0xc3")]({skipNotAttached:e=!1,toJSON:t=!1}={}){const n=[];for(const t of this[za("0x41")][za("0x14")]())e&&!t[za("0x85")]||n[za("0xc1")](t);return t?n[za("0x12f")]((e=>e.toJSON())):n}[za("0x9f")](e){const n=this._suggestions.get(e);if(!n)throw new t.CKEditorError("track-changes-suggestion-not-found",this);return n}[za("0xb8")](e){return this._suggestions[za("0x131")](e)}[za("0xc0")](e){const{authorId:t,id:n,attributes:o}=e,[r,s]=e[za("0xef")][za("0x3f")](":"),i=this[za("0x41")][za("0x54")](n)||this._createSuggestion(r,s,n,t,o);if(this[za("0x120")](i),this._checkSuggestionCorrectness(i,r,s||null,t),i.createdAt=e.createdAt,i[za("0x7f")]=!0,o&&o[za("0x117")]){const e=o[za("0x117")],t=this._getExternalAuthor(e.authorName);i[za("0x61")]=e[za("0x115")],i[za("0x124")]=t,i[za("0x99")]=!0}else i[za("0x61")]=e[za("0x115")];switch(e[za("0x78")]&&(i[za("0x78")]=e.data),e.attributes&&(i[za("0xb7")]=e[za("0xb7")]),this[za("0x36")]&&this[za("0x36")].addSuggestion||(i[za("0xd2")]=!0),this[za("0x5c")][za("0x54")](i)){case"notReady":this[za("0x5c")].set(i,za("0x12e"));break;case za("0x11d"):i[za("0x85")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0x110")](new Set([i])),this[za("0x5c")].set(i,za("0x21")),this[za("0xb3")]("suggestionLoaded",i)):this[za("0x5c")][za("0x13a")](i,za("0x105"))}return i}[za("0x57")](e){this[za("0x6f")]((()=>{this[za("0xab")][za("0xbe")][za("0x113")]((()=>{for(const t of e[za("0xec")]())t[za("0x129")]()}))}))}[za("0x8a")](e){this[za("0x6f")]((()=>{this.editor[za("0xbe")].change((()=>{for(const t of e[za("0xec")]())t[za("0xdd")]()}))}))}enableCommand(e,n){const o=this[za("0xab")][za("0x76")][za("0x54")](e);if(!o)throw new t.CKEditorError("track-changes-command-not-found",this,{commandName:e});this[za("0x83")][za("0xd8")](o),n&&o.on(za("0x5"),((e,t)=>{this[za("0x0")][za("0xc9")]&&(this[za("0x90")]||t[za("0x79")]>0&&t[t.length-1]&&t[t.length-1][za("0x6f")]||(n(((...e)=>o[za("0x5")](...e,{forceDefaultExecution:!0})),...t),e[za("0x11b")]()))}),{priority:za("0x33")})}forceDefaultExecution(e){let n,o;const r=this[za("0x90")];this._isForcedDefaultExecutionBlock=!0;try{n=e()}catch(e){o=e}return r||(this._isForcedDefaultExecutionBlock=!1),o&&t.CKEditorError[za("0xd0")](o,this),n}[za("0x34")](e,n=null,o={}){if(e[za("0x3d")])return null;const r=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me;for(const{suggestion:t,meta:r}of this[za("0x98")](e,za("0x9b")))if(r[za("0xc8")]){if(!r[za("0xf0")]){if(r.containsRangeInObject){if(!this[za("0x6d")]||!ec(t,o))continue;return t}if(ec(t,o))return t;this[za("0x4e")](t,e[za("0xe6")],e.end);break}if(n==t.subType&&ec(t,o)){const n=t.getFirstRange();return n[za("0xe6")].isEqual(e[za("0x39")])?this[za("0xd5")](t,this[za("0x58")].createRange(e[za("0xe6")],n[za("0x39")])):this._setSuggestionRange(t,this._model[za("0x10a")](n[za("0xe6")],e[za("0x39")])),t}}const s=(0,t.uid)(),i=r.id,x=n?za("0x130")+n:za("0x9b"),a=this[za("0xeb")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,s,i,e),a}[za("0xf8")](e,n=za("0x11e"),o={}){const r=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me,s=this[za("0xb4")][za("0x28")](za("0x9b"),n,za("0x11a"));for(const t of this[za("0xc3")]())if(t[za("0x124")].id==r.id&&za("0x9b")==t[za("0xef")]&&t.subType==n&&ec(t,o)&&(s(t[za("0x5b")](),e)||s(e,t[za("0x5b")]()))){for(const n of e)t.addRange(n);return t}for(const{suggestion:t,meta:n}of this._findSuggestions(e,"insertion")){if(!n[za("0xc8")])continue;if(!this[za("0x6d")]&&n[za("0xf")])continue;if(!ec(t,o))continue;let r=!0;for(const n of t.getRanges())for(const t of e)if(!n[za("0x8d")](t)){r=!1;break}if(r)return t}const i=(0,t.uid)(),x=r.id,a=za("0x130")+n,c=this[za("0xeb")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const t of e)this[za("0x53")](a,i,x,t,Zo[za("0xf7")]());return c}[za("0x9e")](e,n,o=null,r={}){if(o=o||$a(n),e[za("0x3d")])return null;if(za("0xe0")===this._trackFormatChanges){const t=this[za("0xb4")][za("0x28")]("formatInline",o,za("0x129"));return this[za("0x6f")]((()=>t([e],n,r))),null}const s=this.editor[za("0x116")][za("0x54")](za("0xd9")).me,i=[];if(za("0xc5")!==this[za("0x114")])for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x9b")))n[za("0xc8")]&&!n.isInsideObject&&i[za("0xc1")](...t[za("0x5b")]());const x=function(e,t){const n=[];for(const o of t){const t=e.getIntersection(o);t&&n.push(t)}return n}(e,i),a=function(e,t){const n=[e];for(const e of t){let t=0;for(;t<n[za("0x79")];){const o=n[t][za("0xbd")](e);n[za("0x10f")](t,1,...o),t+=o[za("0x79")]}}return n}(e,i);x.length&&this._model[za("0x113")]((()=>{for(const e of x){const t=this[za("0xb4")][za("0x28")](za("0x123"),o,za("0x129"));this[za("0x6f")]((()=>t([e],n,r)))}}));for(const e of a){let i=null,x=e[za("0xe6")],a=e[za("0x39")];for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x123"))){if(!n[za("0xc8")])continue;if(t[za("0x97")]!=o)continue;if(!ec(t,r))continue;const s=t[za("0xcc")]();if(s.containsRange(e,!0))return null;x=x[za("0x108")](s[za("0xe6")])?x:s[za("0xe6")],a=a.isAfter(s[za("0x39")])?a:s[za("0x39")],i?s[za("0xe6")][za("0x108")](i.getFirstRange()[za("0xe6")])?(i[za("0x1d")](),i=t):t[za("0x1d")]():i=t}const c=this._model[za("0x10a")](x,a);if(i)this[za("0xd5")](i,c);else{const e=(0,t.uid)(),i=s.id;this[za("0xeb")]({id:e,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this[za("0x53")]("formatInline:"+o,e,i,c)}}return null}markBlockFormat(e,n,o=[],r=null,s={}){n[za("0x43")]||(n[za("0x43")]=n.commandName),n.multipleBlocks=e.is("range"),r=r||$a(n);const i=o[za("0x12f")]((e=>Ja(e,this[za("0x58")]))),x=e.is(za("0x17"))?e:Ja(e,this[za("0x58")]);if(za("0xe0")===this[za("0x114")]){const e=this[za("0xb4")][za("0x28")](za("0xbf"),r,za("0x129"));return this.forceDefaultExecution((()=>e([x],n,s))),null}i[za("0xc1")](x);let a=!0;for(const e of i)if(!this._rangeIsInLocalUserInsertion(e)){a=!1;break}if(a&&"always"!==this[za("0x114")]){const e=this._suggestionFactory.getSuggestionCallback(za("0xbf"),r,"accept");return this.forceDefaultExecution((()=>e([x],n,s))),null}let c=null,l=x[za("0xe6")],d=x[za("0x39")];for(const{suggestion:e,meta:t}of this[za("0x98")](x,za("0xbf"))){if(!t[za("0xc8")])continue;if(t[za("0xf0")]||t[za("0xf")]||t[za("0x67")])continue;if(e.data[za("0x43")]!=n[za("0x43")])continue;if(!ec(e,s))continue;const o=e[za("0xcc")]();if(e[za("0x97")]==r){if(o[za("0x8d")](x,!0))return null;l=l[za("0x108")](o[za("0xe6")])?l:o[za("0xe6")],d=d[za("0x122")](o[za("0x39")])?d:o[za("0x39")],c?o[za("0xe6")][za("0x108")](c[za("0xcc")]()[za("0xe6")])?(c[za("0x1d")](),c=e):e[za("0x1d")]():c=e}else{const t=x[za("0x11")](o);this[za("0x2e")](e,t)}}const u=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me,g=(0,t.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[za("0x58")].createRange(l,d)),c;{const e=this[za("0xeb")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0x53")]("formatBlock:"+r,g,m,this[za("0x58")][za("0x10a")](l,d)),e}}[za("0x71")](e,n,o=[],r=null,s={}){n[za("0x43")]||(n[za("0x43")]=n.commandName);const i=e[0];n.multipleBlocks=i.is(za("0x17")),r=r||$a(n);const x=o[za("0x12f")]((e=>Ja(e,this[za("0x58")]))),a=i.is(za("0x17"))?e:e[za("0x12f")]((e=>Ja(e,this[za("0x58")])));if(za("0xe0")===this[za("0x114")]){const e=this[za("0xb4")][za("0x28")]("formatBlock",r,za("0x129"));return this.forceDefaultExecution((()=>e(a,n,s))),null}x[za("0xc1")](...a);let c=!0;for(const e of x)if(!this[za("0x10b")](e)){c=!1;break}if(c&&za("0xc5")!==this._trackFormatChanges){const e=this._suggestionFactory[za("0x28")](za("0xbf"),r,za("0x129"));return this[za("0x6f")]((()=>e(a,n,s))),null}const l=this[za("0xab")][za("0x116")][za("0x54")](za("0xd9")).me;for(const e of this[za("0xc3")]()){if(e[za("0x124")].id!=l.id)continue;if(za("0xbf")!=e[za("0xef")]||e[za("0x78")][za("0x43")]!=n.formatGroupId)continue;if(!ec(e,s))continue;const t=e[za("0x97")]==r;for(let n=0;n<a[za("0x79")];n++){const o=a[n];for(const r of e.getMarkers()){const s=r[za("0xbc")]();if(o.isEqual(s)){t?(a[za("0x10f")](n,1),n--):e[za("0x1c")](r[za("0xe4")]);break}}}}if(0==a[za("0x79")])return null;const d=this[za("0xb4")][za("0x28")](za("0xbf"),r,za("0x11a"));for(const e of this[za("0xc3")]())if(e[za("0x124")].id==l.id&&za("0xbf")==e.type&&e[za("0x78")][za("0x43")]==n[za("0x43")]&&e[za("0x97")]==r&&ec(e,s)&&(d(e[za("0x5b")](),a)||d(a,e[za("0x5b")]()))){for(const t of a)e[za("0xdb")](t);return e}const u=(0,t.uid)(),g=l.id,m=za("0xd4")+r,f=this[za("0xeb")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const e of a)this[za("0x53")](m,u,g,e,Zo[za("0xf7")]());return f}[za("0xe5")](e,n=null,o={}){if(e[za("0x3d")])return null;const r=this[za("0xab")].plugins[za("0x54")](za("0xd9")).me,s=new i.LiveRange(e.start,e[za("0x39")]);for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x9b")))if(t[za("0xc8")]&&!t[za("0xf0")])if(e[za("0x62")]){const t=e[za("0x5b")]()[za("0x112")]((e=>za("0xa9")!=e[za("0xa4")][za("0x5f")]));if(t[za("0x64")]((e=>s.containsRange(e,!0)))&&e.discard(),t[za("0x60")]((e=>e[za("0x8d")](s,!0)))){const e=this._suggestionFactory.getSuggestionCallback(za("0x1"),n,za("0x129"));return this[za("0x6f")]((()=>e([s],null,o))),null}}else{const t=s.getIntersection(e.getFirstRange());null!==t&&e[za("0x125")]([t],null,o)}if(s[za("0x18")](),s[za("0x3d")]||za("0xa9")==s[za("0xa4")][za("0x5f")])return null;let x=null,a=s[za("0xe6")],c=s.end;const l=this[za("0x98")](s,za("0x1"));for(const{suggestion:e,meta:t}of l){const n=this[za("0x58")][za("0x10a")](a,c);if(t[za("0xc8")]&&(this[za("0x6d")]||!t[za("0xf")]&&!t[za("0x67")]))if(e[za("0x62")]){if(!ec(e,o))continue;let t=!0;for(const o of e[za("0x5b")]()){if(o[za("0x8d")](n,!0))return e;n[za("0x8d")](o)||(t=!1)}t&&e[za("0xdd")]()}else{const t=e.getFirstRange();if(t[za("0x8d")](n,!0))return e;if(!ec(e,o)){n[za("0x8d")](t)?e[za("0x1d")]():t[za("0x87")](a)?a=t[za("0x39")]:t[za("0x87")](c)&&(c=t[za("0xe6")]);continue}a=a.isBefore(t.start)?a:t[za("0xe6")],c=c[za("0x122")](t[za("0x39")])?c:t[za("0x39")],o=Object[za("0xd6")]({},e[za("0xb7")]),x?t[za("0xe6")][za("0x108")](x[za("0xcc")]()[za("0xe6")])?(x.removeMarkers(),x=e):e[za("0x1d")]():x=e}}if(x)return this[za("0xd5")](x,this[za("0x58")].createRange(a,c)),x;{const e=(0,t.uid)(),s=this[za("0x58")].createRange(a,c),i=r.id,x=n?"deletion:"+n:"deletion",l=this[za("0xeb")]({id:e,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x53")](x,e,i,s),l}}markMultiRangeDeletion(e,n=za("0x11e"),o={}){const r=this[za("0xab")][za("0x116")][za("0x54")]("Users").me,s=e[za("0x12f")]((e=>new i.LiveRange(e[za("0xe6")],e[za("0x39")]))),x=new Set;for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x9b")))t[za("0xc8")]&&!t.isNextTo&&x[za("0xd8")](e);for(const t of x)if(t[za("0x62")]){const r=t[za("0x5b")]();if((!t[za("0xb7")]||!t[za("0xb7")][za("0x86")])&&r[za("0x64")]((e=>s[za("0x60")]((t=>t[za("0x8d")](e,!0)))))&&t.discard(),s[za("0x64")]((e=>r.some((t=>t[za("0x8d")](e,!0)))))){const t=this._suggestionFactory[za("0x28")](za("0x1"),n,za("0x129"));return this[za("0x6f")]((()=>t(e,null,o))),null}}else{const e=t.getFirstRange();if(s[za("0x60")]((t=>t[za("0x8d")](e,!0)))&&t.discard(),s[za("0x64")]((t=>e[za("0x8d")](t,!0)))){const e=this._suggestionFactory[za("0x28")]("deletion",n,"accept");return this.forceDefaultExecution((()=>e(s,null,o))),null}}const a=this[za("0xb4")][za("0x28")](za("0x1"),n,za("0x11a"));let c=null;for(const e of this.getSuggestions())if(e.author.id==r.id&&e.isInContent&&"deletion"==e[za("0xef")]&&e[za("0x97")]==n&&ec(e,o)&&(a(e[za("0x5b")](),s)||a(s,e.getRanges())))if(c){if(e[za("0x2d")]&&e[za("0x2d")].length)continue;for(const t of e[za("0x5b")]())c[za("0xc2")](t)||c[za("0xdb")](t);e.removeMarkers()}else{c=e;for(const t of s)e[za("0xc2")](t)||e[za("0xdb")](t)}if(c)return c;x[za("0xea")]();for(const{suggestion:e,meta:t}of this[za("0x98")](s,za("0x1")))t[za("0xc8")]&&(this[za("0x6d")]||!t[za("0xf")]&&!t[za("0x67")])&&ec(e,o)&&x[za("0xd8")](e);for(const e of x){const t=e[za("0x5b")]();if((!o||!o[za("0x86")])&&s.every((e=>t[za("0x60")]((t=>t[za("0x8d")](e,!0))))))return e;(!e.attributes||!e[za("0xb7")][za("0x86")])&&t[za("0x64")]((e=>s.some((t=>t[za("0x8d")](e,!0)))))&&e[za("0xdd")]()}const l=(0,t.uid)(),d=r.id,u=za("0x127")+n,g=this[za("0xeb")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const e of s)e.detach(),e[za("0x3d")]||za("0xa9")==e.root.rootName||this[za("0x53")](u,l,d,e,Zo[za("0xf7")]());return g}[za("0xd5")](e,t){const n=e[za("0x91")]();this._model[za("0x113")]((e=>{e[za("0x1f")](n,{range:t})}))}[za("0x120")](e){const t=e.id,n=this.editor[za("0x51")][za("0x54")](za("0xda"));this[za("0xf1")][za("0xa1")](t)||this[za("0xf1")][za("0x94")]({channelId:n,threadId:t,isResolvable:!1,isSubmitted:!0});const o=this[za("0xf1")][za("0x66")](t);o[za("0x15")](za("0x45")),o.isRemovable=!1,e[za("0x2d")]=o}_checkSuggestionCorrectness(e,n,o,r){if(e[za("0xef")]!=n||e[za("0x97")]!=o||e[za("0x6b")].id!=r)throw this[za("0xab")][za("0xe9")]("track-changes-suggestion-data-mismatch"),new t.CKEditorError(za("0xc"),this)}[za("0x2e")](e,n){const o=e.getFirstRange();if(n[za("0xfd")](o))e.removeMarkers();else if(o[za("0x8d")](n)){const r=this[za("0x58")][za("0x47")](n[za("0xe6")][za("0xe2")],za("0x39"));this[za("0xd5")](e,this._model.createRange(o[za("0xe6")],r));const s=(0,t.uid)(),i=e[za("0x6b")].id,x=e[za("0xef")]+":"+e[za("0x97")];this[za("0xeb")]({id:s,type:x,createdAt:new Date,authorId:i,data:e.data,attributes:e[za("0xb7")]});const a=this[za("0x58")][za("0x47")](n[za("0x39")].parent,"after"),c=this[za("0x58")][za("0x10a")](a,o[za("0x39")]);this[za("0x53")](x,s,i,c)}else if(o[za("0x87")](n[za("0xe6")])){const t=this[za("0x58")][za("0x47")](n[za("0xe6")].nodeBefore,"end");this[za("0xd5")](e,this[za("0x58")][za("0x10a")](o[za("0xe6")],t))}else{const t=this[za("0x58")][za("0x47")](n[za("0x39")][za("0xe3")],"after");this[za("0xd5")](e,this[za("0x58")].createRange(t,o[za("0x39")]))}}[za("0x10b")](e){for(const{suggestion:t,meta:n}of this[za("0x98")](e,za("0x9b"))){if(!n[za("0xc8")])continue;const o=t[za("0x5b")]();for(const t of o)if(!e[za("0xbd")](t)[za("0x79")])return!0}return!1}[za("0xf2")](e){const n=this[za("0xab")][za("0x116")].get(za("0xd9"))[za("0x4f")](e);if(!n)throw new t.CKEditorError(za("0xed"),this);return n}[za("0xf6")](e){const t=this.editor[za("0x116")][za("0x54")]("Users"),n=(0,s.hashObject)(za("0xbb")+e);return t[za("0x4f")](n)||t[za("0x7d")]({id:n,name:e})}_createSuggestion(e,t,n,o,r){const s=this[za("0xf2")](o),i=this[za("0xb4")][za("0x133")](e,t,n,s,r,(e=>this[za("0x93")](n,{attributes:e})));return this[za("0x4")](i,"accept",(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:"high"}),this[za("0x4")](i,za("0xdd"),(()=>{this._updateSuggestionData(n,{state:za("0x74")})}),{priority:"high"}),this[za("0x41")].set(n,i),this[za("0x5c")][za("0x13a")](i,"notReady"),i}[za("0x8c")](e){const t=e[za("0x3f")](":");return{group:t[0],type:t[1],subType:t[za("0x79")]>=5?t[2]:null,id:t[za("0x79")]<5?t[2]:t[3],authorId:t.length<5?t[3]:t[4],markerCount:6==t[za("0x79")]?t[5]:null}}[za("0x4e")](e,n,o){const r=e[za("0xcc")](),s=r[za("0xe6")],i=r[za("0x39")];this._setSuggestionRange(e,this[za("0x58")].createRange(s,n));const x=(0,t.uid)(),a=e[za("0x6b")].id,c=e[za("0xef")]+(e[za("0x97")]?":"+e[za("0x97")]:"");this[za("0xeb")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:e.id,attributes:e[za("0xb7")],data:e[za("0x78")]}),"formatBlock"==e[za("0xef")]&&(o=this[za("0x58")][za("0xcd")](o[za("0xe3")])),this[za("0x53")](c,x,a,this[za("0x58")][za("0x10a")](o,i))}[za("0x98")](e,t=null){const n=[],o=this.editor[za("0x116")][za("0x54")]("Users").me;Array[za("0x136")](e)||(e=[e]);for(const r of this.getSuggestions()){if(!r.isInContent)continue;if(t&&r[za("0xef")]!=t)continue;let s=!1;for(const t of r[za("0x5b")]()){for(const i of e){const e=i.start[za("0xfd")](t[za("0x39")])||i[za("0x39")][za("0xfd")](t[za("0xe6")]);if(e||i.getIntersection(t)){const x=i.containsRange(t)&&Ka(this[za("0x58")][za("0xe8")],t[za("0xe6")],i),a=t[za("0x8d")](i)&&Ka(this[za("0x58")][za("0xe8")],i[za("0xe6")],t);n.push({suggestion:r,meta:{isOwn:o==r[za("0x124")],isNextTo:e,isInsideObject:x,containsRangeInObject:a}}),s=!0;break}}if(s)break}}return n}[za("0x53")](e,t,n,o,r){this[za("0x58")].change((s=>{let i=za("0x25")+e+":"+t+":"+n;r&&(i=i+":"+r),s[za("0x9d")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x26")](e){const t=e[za("0x5d")],n=e[za("0x44")];e[za("0x5d")]=null,null!=t&&(t[za("0x44")]=null),e.next=null,null!=n&&(n[za("0x5d")]=null),za("0x21")==this[za("0x5c")].get(e)&&(this[za("0x5c")][za("0x13a")](e,"removed"),this[za("0xb3")]("suggestionUnloaded",e,t,n))}[za("0xeb")](e){const n=e.id,o=this[za("0xc0")](e);if(this[za("0x36")]&&this._adapter[za("0x138")]){const r=this.editor[za("0x116")][za("0x54")](za("0x6a")),s=o[za("0x9a")],i=o.subType?o[za("0xef")]+":"+o.subType:o.type,x=this[za("0xab")][za("0xd7")],a=r[za("0xd8")](Yo(x,za("0x46"))),c={id:n,type:i,hasComments:s,data:e.data||null,originalSuggestionId:e.originalSuggestionId||null,attributes:o[za("0xb7")]};this[za("0x36")][za("0x138")](c)[za("0xa0")]((e=>{o[za("0xd2")]=!0,r[za("0x77")](a),e&&e[za("0x115")]&&(this._suggestions[za("0x54")](n)[za("0x115")]=e[za("0x115")])}))[za("0x8e")]((e=>{throw(0,t.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[za("0xab")][za("0xbe")][za("0x70")]({isUndoable:!1},(()=>{o[za("0xdd")]()})),o[za("0x68")](),this[za("0x41")][za("0x75")](o.id),this[za("0x5c")][za("0x75")](o),e}))}return o}[za("0x93")](e,t){const n=this.editor.plugins[za("0x54")](za("0x6a")),o=this[za("0x9f")](e);if(this._adapter&&this[za("0x36")][za("0x10c")])if(o[za("0xd2")]){const o=n.add(Yo(this.editor[za("0xd7")],"PENDING_ACTION_SUGGESTION"));this[za("0x36")][za("0x10c")](e,t).then((()=>{n[za("0x77")](o)}))}else o.on("change:_saved",(()=>{this[za("0x93")](e,t)}))}[za("0x5a")](e){if(!this._adapter||!this[za("0x36")][za("0x9f")])throw new t.CKEditorError(za("0x100"),this);return this._adapter[za("0x9f")](e)}[za("0x12c")](e){const{id:t,type:n,subType:o,authorId:r}=this[za("0x8c")](e),s=this[za("0x41")][za("0x54")](t)||this._createSuggestion(n,o,t,r,{});switch(this[za("0x11c")](s,n,o,r),this[za("0x5c")][za("0x54")](s)){case za("0x27"):this[za("0x5a")](t)[za("0xa0")]((e=>{let n=Promise.resolve();e.hasComments&&(n=this[za("0xf1")].fetchCommentThread({channelId:this[za("0xab")][za("0x51")][za("0x54")](za("0xda")),threadId:t})),n[za("0xa0")]((()=>{this[za("0xc0")](e)[za("0xd2")]=!0}))})),this[za("0x5c")][za("0x13a")](s,za("0x11d"));break;case za("0x105"):this[za("0x93")](t,{state:za("0x119")});case"dataReady":this[za("0x5c")][za("0x13a")](s,za("0x21")),this[za("0xb3")](za("0xa"),s);break;case"ready":this[za("0xb3")]("suggestionChanged",s)}return s[za("0x65")](e),s}[za("0x104")](e){const t=Array[za("0x31")](e).filter((e=>!e[za("0x62")])),n=this[za("0xc3")]({skipNotAttached:!0})[za("0x112")]((e=>!e.isMultiRange)),o=n.filter((t=>!e.has(t))),r=new Map(n.map((e=>[e,this[za("0xb4")][za("0x28")](e[za("0xef")],e[za("0x97")],"chain")]))),s=new Map(n.map((e=>[e,e[za("0xcc")]()]))),i=new Set,x=new Set;for(let e=0;e<t[za("0x79")];e++)a(t[e],t,e+1);for(let e=0;e<t[za("0x79")];e++)a(t[e],o,0);for(let e=0;e<t.length;e++){const n=t[e];!x.has(n)&&n[za("0x5d")]&&(n.previous[za("0x44")]===n&&(n[za("0x5d")][za("0x44")]=null),n[za("0x5d")]=null),!i.has(n)&&n[za("0x44")]&&(n.next.previous===n&&(n[za("0x44")][za("0x5d")]=null),n[za("0x44")]=null)}function a(e,t,n){for(let o=n;o<t[za("0x79")];o++){const n=c(e,t[o]);n&&(n[0].next=n[1],n[1][za("0x5d")]=n[0],i[za("0xd8")](n[0]),x[za("0xd8")](n[1]))}}function c(e,t){if(e[za("0x124")].id!==t[za("0x124")].id)return null;const n=r[za("0x54")](e)(e,t,s.get(e),s[za("0x54")](t));return n&&r.get(t)(e,t,s[za("0x54")](e),s[za("0x54")](t))?n[1][za("0x2d")]&&n[1][za("0x2d")].length?null:n:null}}[za("0x110")](e){const t=Array.from(e),n=this[za("0xc3")]({skipNotAttached:!0}),o=n[za("0x112")]((t=>!e[za("0x131")](t))),r=new Map(t.map((e=>[e,this[za("0xb4")][za("0x28")](e[za("0xef")],e[za("0x97")],za("0x11a"))]))),s=new Map(n[za("0x12f")]((e=>[e,e[za("0x5b")]()])));for(let e=0;e<t[za("0x79")];e++)if(i(this,t[e],t,e+1))return!0;for(let e=0;e<t[za("0x79")];e++)if(i(this,t[e],o,0))return!0;return!1;function i(e,t,n,o){for(let i=o;i<n[za("0x79")];i++){const o=n[i];if(o.type!==t.type||o[za("0x124")].id!==t.author.id||o[za("0x97")]!==t[za("0x97")])continue;if(!Ya(t,o))continue;const x=r[za("0x54")](t),a=s[za("0x54")](t),c=s.get(o),l=t[za("0x2d")]&&t.commentThread[za("0x79")],d=o[za("0x2d")]&&o.commentThread.length;if(!l&&x(c,a))return e[za("0x23")](o,t),s.delete(t),!0;if(!d&&x(a,c))return e._joinSuggestions(t,o),s[za("0x75")](o),!0}return!1}}[za("0x23")](e,t){if(e.isMultiRange)for(const n of t[za("0x5b")]())e[za("0xdb")](n);else{const n=t[za("0xcc")]()[za("0x39")];this[za("0xd5")](e,this[za("0x58")][za("0x10a")](e.getFirstRange()[za("0xe6")],n))}t[za("0x1d")]()}}class Va{constructor(e){this[za("0x137")]=e,this[za("0x58")]=e[za("0xbe")],this[za("0x82")]=new Map,this[za("0xf3")]=new Map,this[za("0xc6")]()}[za("0x133")](e,t,n,o,r,s){return new Zo(this[za("0x58")],{type:e,subType:t,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this[za("0x28")](e,t,za("0x129"))(...n),onDiscard:(...n)=>this[za("0x28")](e,t,"discard")(...n)})}[za("0x10d")](e,t,n,o){const r=e+":"+t+":"+n;this._customCallbacks.set(r,o)}getSuggestionCallback(e,t,n){const o=e+":"+t+":"+n;return this[za("0x82")][za("0x54")](o)||this[za("0xf3")][za("0x54")](e+":"+n)}[za("0xc6")](){const e=()=>!1,t=e=>{e[za("0xff")](((e,t)=>e[za("0xe6")].isBefore(t.start)?1:-1)),this[za("0x58")].change((t=>{for(const n of e){let e;e=n.end[za("0x40")]&&n.end.parent==n[za("0xe6")][za("0x42")]?t[za("0x9")](n.start[za("0x42")],"on"):t[za("0x9")](n),this._model[za("0x126")](e,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(e,t)=>{this[za("0x58")].change((n=>{const{commandName:o,commandParams:r=[]}=t,s=e[za("0x12f")]((e=>(qa(e)&&(e=this._model.createRange(e.end)),e)))[za("0x112")]((e=>za("0xa9")!==e[za("0xa4")].rootName));if(s[za("0x79")]<1)return;const x=Array[za("0x31")](this._model[za("0xfa")][za("0x32")][za("0x5b")]()).map((e=>i.LiveRange[za("0x5e")](e)));n[za("0x48")](s);for(const e of this[za("0x137")][za("0x76")][za("0x76")]())e.refresh();r[za("0xc1")]({forceDefaultExecution:!0}),this._editor[za("0x5")](o,...r);const a=x.filter((e=>"$graveyard"!=e[za("0xa4")].rootName));a[za("0x79")]>0&&n[za("0x48")](a);for(const e of x)e[za("0x18")]()}))},o=(e,t)=>1==e[za("0x79")]&&1==t[za("0x79")]&&e[0].end[za("0xfd")](t[0][za("0xe6")]),r=(e,t,n,o)=>Za(e,t,n,o,this[za("0x58")])?[e,t]:Za(t,e,o,n,this[za("0x58")])?[t,e]:null;this[za("0xf3")][za("0x13a")]("insertion:accept",e),this._defaultCallbacks.set("insertion:discard",t),this._defaultCallbacks.set(za("0x84"),o),this[za("0xf3")][za("0x13a")](za("0x38"),r),this[za("0xf3")].set(za("0xa8"),t),this[za("0xf3")].set(za("0xb1"),e),this[za("0xf3")][za("0x13a")](za("0x2"),o),this[za("0xf3")][za("0x13a")]("deletion:chain",r),this[za("0xf3")][za("0x13a")](za("0xee"),n),this[za("0xf3")][za("0x13a")]("formatInline:discard",e),this._defaultCallbacks[za("0x13a")](za("0x12"),o),this[za("0xf3")].set(za("0x103"),e),this._defaultCallbacks.set("formatBlock:accept",n),this[za("0xf3")].set(za("0xad"),e),this[za("0xf3")][za("0x13a")](za("0xba"),o),this[za("0xf3")][za("0x13a")](za("0x2b"),e)}}function Ka(e,t,n){for(const o of t.parent[za("0xdf")]({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[za("0x95")](o))return!1;if(e[za("0x8")](o)||e.isLimit(o))return!0}return!1}function qa(e){return e[za("0x39")][za("0xe3")]==e[za("0xe6")].nodeAfter&&e.end[za("0xde")]}function Xa(e,t,n,o){const r=e=>!e[za("0x88")].is(za("0xcb"))&&!o.isObject(e[za("0x88")]),s=e[za("0xe6")][za("0x72")](r),i=e.end[za("0x72")](r,{direction:za("0xaf")});return!(e[za("0xe6")].isEqual(s)&&e[za("0x39")][za("0xfd")](i)||(s[za("0x108")](i)?n[za("0x1f")](t,{range:n.createRange(s,i)}):n[za("0x1c")](t),0))}function $a(e){return(0,s.hashObject)(e)}function Qa(e){const t=e.start[za("0x42")];return t&&t.is(za("0xa5"))}function Ja(e,t){const n=t.schema[za("0x8")](e)||t[za("0xe8")][za("0x128")](e);return t.createRange(t.createPositionAt(e,za("0x56")),n?t[za("0x16")](e):t[za("0x47")](e,za("0x39")))}function Za(e,t,n,o,r){if(!Ya(e,t))return!1;if(n.end.isEqual(o[za("0xe6")]))return!0;if(e[za("0xef")]!=t[za("0xef")])return!1;if(!n[za("0x39")][za("0xa6")](o[za("0xe6")]))return!1;const s=r.createRange(n.end,o[za("0xe6")])[za("0x7")]();for(const e of s)if([za("0x80"),za("0xb2")][za("0xa3")](e.type)&&r[za("0xe8")][za("0xb0")](e[za("0x88")]))return!1;return!0}function Ya(e,t){return!(!e._isDataLoaded||!t[za("0x7f")])&&Go(e[za("0xb7")],t[za("0xb7")])}function ec(e,t){const n=tc(e.attributes),o=tc(t);if(!e[za("0x7f")])return!1;for(const e of Object[za("0x12b")](o))if(!Go(n[e],o[e]))return!1;return!0}function tc(e){const t=Object[za("0xd6")]({},e);return delete t[za("0x86")],delete t.tablePasteChainId,t}const nc=["_setPendingAction","add","locale","canDiscard","bind","_acceptCommand","isEnabled","canAccept","listenTo","model","acceptSuggestion","_removePendingAction","commentThreadController","_pendingAction","execute","get","remove","view","commands","_editor","getRanges","destroy","plugins","discardSuggestion","change:isDirty","PendingActions","unbind","_discardCommand","stopListening","canEditAt"];var oc,rc;oc=nc,rc=353,function(e){for(;--e;)oc.push(oc.shift())}(++rc);const sc=function(e,t){return nc[e-=0]};class ic extends((0,t.ObservableMixin)()){constructor(e,t,n,o){super(),this[sc("0x10")]=t,this[sc("0x18")]=n,this.commentThreadController=o,this[sc("0x1a")]=e,this[sc("0xc")]=e[sc("0x19")].get(sc("0x11")),this[sc("0x4")]=e[sc("0x19")][sc("0x16")](sc("0x0")),this[sc("0x18")].bind("isEnabled").to(this[sc("0xc")],this[sc("0x4")],((e,t)=>e||t)),this[sc("0x18")].bind(sc("0xe")).to(this[sc("0xc")],sc("0xd"),(e=>e&&this[sc("0x1a")].model[sc("0x6")](t[sc("0x1b")]()))),this[sc("0x18")][sc("0xb")](sc("0xa")).to(this[sc("0x4")],sc("0xd"),(e=>e&&this[sc("0x1a")][sc("0x10")][sc("0x6")](t[sc("0x1b")]()))),this[sc("0x14")]=null,n.isDirty&&this[sc("0x7")](),this[sc("0xf")](n,"acceptSuggestion",(()=>this[sc("0x11")]())),this[sc("0xf")](n,sc("0x0"),(()=>this[sc("0x0")]())),this[sc("0xf")](n,sc("0x1"),(()=>{n.isDirty?this[sc("0x7")]():this._removePendingAction()}))}[sc("0x11")](){this[sc("0xc")][sc("0x15")](this[sc("0x10")].id)}[sc("0x0")](){this[sc("0x4")][sc("0x15")](this[sc("0x10")].id)}[sc("0x1c")](){this[sc("0x18")][sc("0x3")](sc("0xd")),this[sc("0x18")][sc("0x3")](sc("0xe")),this[sc("0x18")][sc("0x3")](sc("0xa")),this[sc("0x5")](),this[sc("0x13")][sc("0x1c")](),this[sc("0x14")]&&this[sc("0x12")]()}[sc("0x7")](){const e=Yo(this._editor[sc("0x9")],"PENDING_ACTION_SUGGESTION");this[sc("0x14")]=this[sc("0x1a")][sc("0x1d")][sc("0x16")](sc("0x2"))[sc("0x8")](e)}[sc("0x12")](){null!==this[sc("0x14")]&&this[sc("0x1a")][sc("0x1d")][sc("0x16")]("PendingActions")[sc("0x17")](this[sc("0x14")]),this[sc("0x14")]=null}}const xc=["showInput","_createCommentThreadInputView","bind","disabledSubmit","set","destroy","editorConfig","disableComments","submit","value","hasDirtyComment","canAccept","setData","commentsListView","_model","addComment","authoredAt","updateComment","isDirty","isActive","locale","assign","_config","length","commentThreadInputView","commentThread","commentInputView","_localUser","isReadOnly","delegate","focus","_createCommentViews","removeComment"];var ac,cc;ac=xc,cc=165,function(e){for(;--e;)ac.push(ac.shift())}(++cc);const lc=function(e,t){return xc[e-=0]};class dc extends r.View{constructor(e,t,n,o){super(e),this[lc("0xd")]=null,this[lc("0x18")]=null,this[lc("0x4")](lc("0x13"),!1),this[lc("0x4")]("authoredAt",t[lc("0x10")]),this[lc("0x2")]("authoredAt").to(t),this[lc("0x4")]("descriptionParts",[]),this[lc("0x4")]("isDirty",!1),this[lc("0x4")]("isEnabled",!1),this[lc("0x4")](lc("0xb"),!1),this[lc("0x4")]("canDiscard",!1),this[lc("0xe")]=t,this[lc("0x1b")]=n,this[lc("0x16")]=o,o[lc("0x7")]?this.set(lc("0x17"),1):this[lc("0x1f")]()}[lc("0x1e")](){this.element[lc("0x1e")]()}destroy(){this[lc("0xd")]&&this[lc("0xd")][lc("0x5")](),this[lc("0x18")]&&this[lc("0x18")][lc("0x5")](),super[lc("0x5")]()}[lc("0x1f")](){const{CommentsListView:e}=this[lc("0x16")];this[lc("0xd")]=new e(this[lc("0x14")],this._model[lc("0x19")],Object[lc("0x15")]({CommentView:this[lc("0x16")].CommentView},this._config)),this[lc("0xd")].delegate(lc("0x20")).to(this),this[lc("0xd")][lc("0x1d")](lc("0x11")).to(this),this[lc("0xd")][lc("0x2")](lc("0x13")).to(this),this[lc("0x4")]("length",this[lc("0xd")].length+1),this[lc("0x2")](lc("0x17")).to(this[lc("0xd")],lc("0x17"),(e=>e+1)),this[lc("0x18")]=this[lc("0x1")](),this.on("removeComment",(()=>this[lc("0x1e")]())),this.bind(lc("0x12")).to(this[lc("0xd")],lc("0xa"),this[lc("0x18")][lc("0x1a")],lc("0x9"),((e,t)=>e||!!t))}[lc("0x1")](){const{CommentThreadInputView:e}=this._config,t=new e(this[lc("0x14")],this[lc("0x1b")],this[lc("0x16")][lc("0x6")]),n=t[lc("0x1a")];return t[lc("0x2")](lc("0x0")).to(this,"isActive",this[lc("0xe")].commentThread,lc("0x1c"),n,"value",((e,t,n)=>!!n||e&&!t)),n.on(lc("0x8"),((e,t)=>{this.fire(lc("0xf"),t),n.editor[lc("0xc")]("")})),n.on("cancel",(()=>this.focus())),n.bind(lc("0x3")).to(this[lc("0xe")][lc("0x19")],lc("0x1c")),t}}const uc=["ck-suggestion-wrapper","ck-comment__external","value","div","_model","cancel","discardSuggestion","ck-suggestion__info",'"></span>',"ck-suggestion--disabled-comments","<p>",".ck-annotation__content-wrapper","_createButton","delegate","content","isExternal","descriptionParts","author","ck-annotation__actions","description","authoredAt","getTemplate","importWord","isActive","querySelector","getExternalSuggestionNote","render","discardButton","canAccept","editorReady","split","Discard suggestion","ck-annotation__info","getUserViewNotificationText","EXTERNAL_IMPORT_WORD_AVATAR","title","map","innerHTML","ck-suggestion","extendTemplate","set","</p>","EXTERNAL_AVATAR","ck-suggestion-","userView","ck-annotation","@external","formatDateTime","ck-suggestion__user","execute",'<span class="ck-suggestion-type">','<span class="ck-suggestion-color" style="background-color: ',"commentThread","ck-annotation__main","bindTemplate","isEnabled","bind","name","EXTERNAL_IMPORT_WORD_SUGGESTION","_descriptionElement","EXTERNAL_SUGGESTION","canDiscard","creator","ck-annotation__info-time","commentThreadInputView","ck-suggestion--accept","span",'" title="',"disableComments","ck-suggestion-wrapper--active","ck-comment__info-time","color","commentsListView","locale","setTemplate","change:description","acceptButton","_config","children","type","innerText","ck-annotation__content-wrapper","acceptSuggestion","push","source","attributes"];var gc,mc;gc=uc,mc=132,function(e){for(;--e;)gc.push(gc.shift())}(++mc);const fc=function(e,t){return uc[e-=0]};class hc extends dc{constructor(t,n,o,r){super(t,n,o,r),this[fc("0x50")](fc("0x21"),""),this[fc("0xa")](fc("0x21")).to(this,fc("0x38"),(e=>e&&e[0]?e[0][fc("0x21")]:"")),this[fc("0xa")](fc("0x3b")).to(this,fc("0x38"),this,fc("0x3f"),((e,t)=>{let n="";for(const t of e)n+=fc("0x32")+bc(t[fc("0x36")],t[fc("0x19")])+fc("0x51");return t?n:(0,s.trimHtml)(n,{limit:140})})),this[fc("0xd")]=null,this[fc("0x1e")]=this._createButton(Yo(t,"Accept suggestion"),e.icons.check,fc("0x13"),fc("0x24"),"sw"),this[fc("0x1e")].bind(fc("0x9")).to(this,fc("0x44")),this[fc("0x43")]=this[fc("0x34")](Yo(t,fc("0x47")),e.icons[fc("0x2d")],"ck-suggestion--discard",fc("0x2e"),"sw"),this[fc("0x43")][fc("0xa")](fc("0x9")).to(this,fc("0xf")),this[fc("0x54")]=new s.UserView(t,this[fc("0x2c")][fc("0x39")],this[fc("0x49")]()),this[fc("0x54")][fc("0x4f")]({attributes:{class:[fc("0x2"),"ck-annotation__user"]}}),this[fc("0x1c")](this[fc("0x3d")]())}[fc("0x3d")](){const e=this[fc("0x8")],t=[{tag:fc("0x2b"),attributes:{class:[fc("0x2f"),fc("0x48")]},children:[{tag:fc("0x14"),children:[{text:this[fc("0x54")].name}],attributes:{class:["ck-suggestion__info-name","ck-annotation__info-name"]}},{tag:"time",attributes:{datetime:e.to(fc("0x3c")),class:[fc("0x18"),fc("0x11")]},children:[{text:e.to("authoredAt",(e=>this[fc("0x1f")][fc("0x1")](e)))}]}]},{tag:"div",attributes:{class:["ck-suggestion__actions",fc("0x3a")]},children:[this[fc("0x1e")],this.discardButton]},{tag:fc("0x2b"),attributes:{class:[fc("0x23")]}}];this._model[fc("0x37")]&&t.push({tag:fc("0x2b"),attributes:{class:[fc("0x29")]},children:[{text:this[fc("0x41")]()}]});const n={tag:fc("0x2b"),attributes:{class:[fc("0x28"),e.if("isActive",fc("0x17")),e.to(fc("0x21"),(e=>fc("0x53")+e)),this._config[fc("0x16")]&&fc("0x31")],"data-suggestion-id":this[fc("0x2c")].id,"data-thread-id":this[fc("0x2c")][fc("0x6")].id,"data-author-id":this[fc("0x2c")][fc("0x39")].id,tabindex:-1},children:[{tag:fc("0x2b"),attributes:{class:[fc("0x4e"),fc("0x55")]},children:[this.userView,{tag:fc("0x2b"),attributes:{class:["ck-suggestion__main",fc("0x7")]},children:t}]}]};return this.commentsListView&&this[fc("0x12")]&&(n[fc("0x20")][fc("0x25")](this[fc("0x1a")],this[fc("0x12")]),this[fc("0x1a")][fc("0x35")](fc("0x45")).to(this),this[fc("0x1a")][fc("0x35")]("editorDestroyed").to(this),this[fc("0x12")][fc("0x35")]("editorReady").to(this),this[fc("0x12")][fc("0x35")]("editorDestroyed").to(this)),n}[fc("0x42")](){super[fc("0x42")](),this[fc("0xd")]=this.element[fc("0x40")](fc("0x33")),this[fc("0xd")].innerHTML=this[fc("0x3b")],this.on(fc("0x1d"),((e,t,n)=>{this[fc("0xd")][fc("0x4d")]=n}))}[fc("0x34")](e,t,n,o,s){const i=new r.ButtonView(this[fc("0x1b")]);return i.set({label:e,icon:t,tooltip:!0,tooltipPosition:s}),i[fc("0x4f")]({attributes:{class:n}}),i.on(fc("0x3"),(()=>{this.fire(o,this._model.id)})),i}[fc("0x41")](){return fc("0x3e")===this._model[fc("0x27")][fc("0x0")].source?Yo(this[fc("0x1b")],fc("0xc")):Yo(this[fc("0x1b")],fc("0xe"))}getUserViewNotificationText(){return this[fc("0x2c")].isExternal?fc("0x3e")===this[fc("0x2c")][fc("0x27")][fc("0x0")][fc("0x26")]?Yo(this[fc("0x1b")],fc("0x4a"),this._model.creator[fc("0xb")]):Yo(this[fc("0x1b")],fc("0x52"),this._model[fc("0x10")][fc("0xb")]):null}}function bc(e,t){let n="";return n+=e[fc("0x46")]("*")[fc("0x4c")](((e,t)=>t%2!=0?fc("0x4")+pc(e)+"</span>":pc(e))).join(""),t&&(n+=fc("0x5")+t[fc("0x2a")]+fc("0x15")+t[fc("0x4b")]+fc("0x30")),n}function pc(e){const t=document.createElement("span");return t[fc("0x22")]=e,t[fc("0x4d")]}const Ec=["getFirstRange","get","arrowView","comments.maxCommentCharsWhenCollapsed","createAnnotationView","getDescriptions","unbind","switchbutton","EditorAnnotations","locale","change:activeAnnotations","reduce","view","_annotationViews","suggestionLoaded","_updateController","change:previous","CommentsRepository","init","refreshSelectedViews","lowest","innerView","comments.editorConfig","delete","focus","_createUIButton","size","commentThread","type","TrackChangesUI","previous","from","getSuggestion","values","_descriptionFactory","actionView","suggestion-","config","getMarkerNames","button","trackChanges.disableComments","isEnabled","add","SuggestionThreadView","listenTo","_initializeController","keys","trackChanges","acceptAllSuggestions","trackChanges.SuggestionThreadView","discardButton","TrackChangesEditing","getMarkers","commands","filter","some","isOn","isMultiRange","getRanges","Annotations","commandName","push","_viewToController","getByInnerView","CommentView","requires","has","destroy","_handleSuggestionControllerDelayed","value","suggestionChanged","isInContent","_disableComments","_bindAnnotationToEditors","_destroyController","head","define","_suggestionToController","_refreshActiveMarkers","getJoined","clear","editor","CommentsUI","getAllAdjacentSuggestions","addComment","Track changes","buttonView","componentFactory","plugins","acceptButton","Discard all suggestions","model","descriptionParts","_handleControllerBuffer","createAnnotation","addSourceCollector","isDirty","set","length","bind","separator","execute","pluginName","editing","acceptSelectedSuggestions","source","mainView"];var _c,Tc;_c=Ec,Tc=364,function(e){for(;--e;)_c.push(_c.shift())}(++Tc);const Cc=function(e,t){return Ec[e-=0]};class yc extends e.Plugin{static get[Cc("0x16")](){return[Wa,s.Users,Cc("0x51"),Cc("0x10"),Cc("0x48")]}static get[Cc("0x3b")](){return Cc("0x5d")}constructor(e){super(e),this._suggestionToController=new Map,this[Cc("0x13")]=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x32")]=new Map;const t=this.editor[Cc("0x65")];t.define(Cc("0x6"),hc),t[Cc("0x21")](Cc("0x68"),!1),this[Cc("0x1d")]=t[Cc("0x41")]("trackChanges.disableComments")}[Cc("0x19")](e,t){0===this._handleControllerBuffer[Cc("0x5a")]&&setTimeout((()=>{for(const[e,t]of this[Cc("0x32")]){const n=this[Cc("0x22")].has(e);n||t?n&&t&&this[Cc("0x1f")](e):this[Cc("0x2")](e)}this.editor[Cc("0x2d")][Cc("0x41")]("EditorAnnotations")[Cc("0x53")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Cc("0x25")]()}),10),this[Cc("0x32")][Cc("0x36")](e,t)}[Cc("0x52")](){const e=this.editor,t=e[Cc("0x2d")].get(Cc("0x8")),n=e[Cc("0x2d")].get("Annotations"),o=e.plugins[Cc("0x41")](Cc("0x48")),r=e[Cc("0x2d")][Cc("0x41")](Cc("0x51"));e.ui[Cc("0x2c")].add(Cc("0x4"),(e=>this[Cc("0x59")](e))),o[Cc("0x34")]((()=>{const e=[];for(const[t,n]of Array.from(this._suggestionToController)){const o=t[Cc("0x28")](),r=[];for(const e of o){if(!e[Cc("0x1c")])continue;if(e[Cc("0xe")]){r[Cc("0x12")](...e[Cc("0xf")]());continue}const t=e[Cc("0x40")]();if(r.length>0){const e=r[0][Cc("0x24")](t);if(e){r[0]=e;continue}}r[Cc("0x12")](t)}e[Cc("0x12")]([n[Cc("0x4c")],r])}return e})),this[Cc("0x1")](t,Cc("0x4e"),((e,t)=>{this[Cc("0x1")](t,Cc("0x50"),((e,n,o,r)=>{t.isInContent&&(null==o?(this[Cc("0x4f")](r.head),this._handleSuggestionControllerDelayed(t,!1)):(this[Cc("0x4f")](o[Cc("0x20")]),this[Cc("0x19")](t,!0)))})),null===t[Cc("0x5e")]?this._handleSuggestionControllerDelayed(t,!1):this[Cc("0x4f")](t[Cc("0x20")])})),this[Cc("0x1")](t,"suggestionUnloaded",((e,t,n)=>{this.stopListening(t,Cc("0x50")),this[Cc("0x32")][Cc("0x57")](t);const o=n?n[Cc("0x20")]:t,r=this[Cc("0x22")].get(o);null!==n&&this[Cc("0x4f")](o),null===n&&r&&this._destroyController(t)})),this[Cc("0x1")](t,Cc("0x1b"),((e,t)=>{this[Cc("0x4f")](t)})),this.listenTo(n,Cc("0x4a"),(()=>{this[Cc("0x23")]()})),this[Cc("0x1")](r,Cc("0x29"),((e,{threadId:n,isFromAdapter:o})=>{if(o||!t.hasSuggestion(n))return;const r=t[Cc("0x60")](n);this[Cc("0x22")][Cc("0x41")](r).view[Cc("0x58")]()}),{priority:Cc("0x54")})}_refreshActiveMarkers(){const e=this[Cc("0x26")].plugins[Cc("0x41")](Cc("0x10")),t=this.editor[Cc("0x2d")][Cc("0x41")](Cc("0x8")),n=Array[Cc("0x5f")](e.activeAnnotations,(e=>e[Cc("0x55")]))[Cc("0xb")]((e=>this._viewToController[Cc("0x17")](e))),o=[];for(const e of n){const t=this._viewToController.get(e)[Cc("0x30")][Cc("0x28")]();o[Cc("0x12")](...t[Cc("0x4b")](((e,t)=>[...e,...t[Cc("0x66")]()]),[]))}t.activeMarkers=o}[Cc("0x59")](e){const n=(0,r.createDropdown)(e,r.SplitButtonView),o=this.editor[Cc("0xa")][Cc("0x41")]("trackChanges"),s=Yo(e,Cc("0x2a"));n[Cc("0x2b")].set({tooltip:s,label:s,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Cc("0x2b")][Cc("0x38")](Cc("0xd")).to(o,Cc("0x1a")),n[Cc("0x2b")].on(Cc("0x3a"),(()=>{o[Cc("0x3a")](),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")].focus()}));const i=new t.Collection,x=[{type:Cc("0x47"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:"separator"},{type:"button",model:{withText:!0,label:Yo(e,"Accept all suggestions"),commandName:Cc("0x5")}},{type:Cc("0x67"),model:{withText:!0,label:Yo(e,"Accept all selected suggestions"),commandName:Cc("0x3d")}},{type:"button",model:{withText:!0,label:Yo(e,Cc("0x2f")),commandName:"discardAllSuggestions"}},{type:Cc("0x67"),model:{withText:!0,label:Yo(e,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const e of x){let t={type:Cc("0x39")};if(e.model){const n=new r.Model(e.model),o=this.editor[Cc("0xa")].get(n[Cc("0x11")]);n[Cc("0x38")](Cc("0xd"),Cc("0x69")).to(o,Cc("0x1a"),"isEnabled"),t={type:e[Cc("0x5c")],model:n}}i[Cc("0x6a")](t)}(0,r.addListToDropdown)(n,i);const a=x[Cc("0xb")]((e=>null!=e[Cc("0x30")])).map((e=>this[Cc("0x26")][Cc("0xa")].get(e[Cc("0x30")][Cc("0x11")]))),c=n[Cc("0x2b")];return c[Cc("0x63")][Cc("0x46")](Cc("0x69")),c[Cc("0x42")][Cc("0x46")](Cc("0x69")),c[Cc("0x63")].bind(Cc("0x69")).to(o,Cc("0x69")),c[Cc("0x42")][Cc("0x38")](Cc("0x69")).toMany(a,Cc("0x69"),((...e)=>e[Cc("0xc")]((e=>e)))),n.on(Cc("0x3a"),(e=>{this[Cc("0x26")][Cc("0x3a")](e[Cc("0x3e")][Cc("0x11")]),this[Cc("0x26")][Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),n}[Cc("0x2")](e){const t=this.editor,n=t.config,o=t[Cc("0x2d")][Cc("0x41")](Cc("0x10")),r=t[Cc("0x2d")][Cc("0x41")](Cc("0x51")),i=t[Cc("0x2d")].get(Cc("0x48")),x=t.plugins[Cc("0x41")](s.Users).me,a=n[Cc("0x41")]("trackChanges")[Cc("0x0")],{CommentsListView:c,CommentThreadInputView:l}=t.plugins.get(Cc("0x27"));let d,u;this[Cc("0x4d")][Cc("0x17")](e.id)?(u=this[Cc("0x4d")].get(e.id),d=u[Cc("0x3f")]):(d=new a(t[Cc("0x49")],e,x,{disableComments:this._disableComments,editorConfig:n[Cc("0x41")](Cc("0x56")),maxCommentsWhenCollapsed:n[Cc("0x41")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n.get("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Cc("0x41")](Cc("0x43")),formatDateTime:(0,s.getDateTimeFormatter)(n[Cc("0x41")](Cc("0x49"))),CommentView:n[Cc("0x41")]("comments")[Cc("0x15")],CommentsListView:c,CommentThreadInputView:l}),d[Cc("0x2e")].on(Cc("0x3a"),(()=>{t[Cc("0x3c")][Cc("0x4c")][Cc("0x58")]()})),d[Cc("0x7")].on(Cc("0x3a"),(()=>{t.editing[Cc("0x4c")][Cc("0x58")]()})),u=o[Cc("0x44")](this.editor[Cc("0x49")],d),u[Cc("0x38")](Cc("0x35")).to(d,Cc("0x35")),u[Cc("0x38")](Cc("0x37")).to(d),u[Cc("0x38")](Cc("0x5c")).to(d,Cc("0x5c"),(e=>Cc("0x64")+e)),this[Cc("0x4d")][Cc("0x36")](e.id,u));const g=r.createCommentThreadController(e[Cc("0x5b")],d),m=new ic(t,e,d,g),f=e[Cc("0x28")]().filter((e=>e.isInContent));d.descriptionParts=t[Cc("0x2d")][Cc("0x41")](Cc("0x8"))._descriptionFactory[Cc("0x45")](f),this[Cc("0x22")][Cc("0x36")](e,m),this[Cc("0x13")].set(d,m);const h=o[Cc("0x33")]({view:u,target:()=>{const n=[],o=e[Cc("0x28")]()[Cc("0xb")]((e=>e.isInContent));for(const e of o)n[Cc("0x12")](...e[Cc("0x9")]());return(0,s.getAllMarkersDomElementsSorted)(t[Cc("0x3c")],n)},type:()=>Cc("0x64")+m.view[Cc("0x5c")]});r[Cc("0x1e")](d,h),o[Cc("0x6a")](h),i.registerAnnotation(h)}[Cc("0x1f")](e){const t=this[Cc("0x26")].plugins[Cc("0x41")]("Annotations"),n=this._suggestionToController[Cc("0x41")](e),o=n[Cc("0x4c")],r=t[Cc("0x14")](o);r&&t.remove(r),this._suggestionToController[Cc("0x57")](e),this[Cc("0x13")][Cc("0x57")](o),n[Cc("0x18")]()}[Cc("0x4f")](e){if(!e[Cc("0x1c")]||!this._suggestionToController.has(e))return;const t=this[Cc("0x26")].plugins.get("TrackChangesEditing"),n=this._suggestionToController[Cc("0x41")](e),o=e[Cc("0x28")]();n.view[Cc("0x31")]=t[Cc("0x62")].getDescriptions(o)}[Cc("0x18")](){for(const e of this[Cc("0x22")][Cc("0x3")]())this[Cc("0x1f")](e);for(const e of this[Cc("0x4d")][Cc("0x61")]())e[Cc("0x3f")][Cc("0x18")]();super[Cc("0x18")]()}}var kc,Ac,vc=["getSuggestions","getSuggestion","editor","Comments","addSuggestionData","adapter","addSuggestion","pluginName","plugins","get"];kc=vc,Ac=213,function(e){for(;--e;)kc.push(kc.shift())}(++Ac);var Rc=function(e,t){return vc[e-=0]};class Ic extends e.Plugin{static get requires(){return[Wa,yc,Rc("0x0")]}static get[Rc("0x4")](){return"TrackChanges"}set[Rc("0x2")](e){this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x2")]=e}get[Rc("0x2")](){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x2")]}[Rc("0x3")](e){return this[Rc("0x9")].plugins[Rc("0x6")](Wa)[Rc("0x1")](e)}getSuggestions({skipNotAttached:e=!1,toJSON:t=!1}={}){return this.editor[Rc("0x5")][Rc("0x6")](Wa)[Rc("0x7")]({skipNotAttached:e,toJSON:t})}[Rc("0x8")](e){return this[Rc("0x9")][Rc("0x5")][Rc("0x6")](Wa)[Rc("0x8")](e)}}const Sc=["getFullData","track-changes-data-invalid-editor-creator","useAnonymousUser","trackChangesData","map","end","init","Users","editorCreator","define","addUser","model","Pagination","requires","getDataWithAcceptedSuggestions","reduce","_adapter","addSuggestionData","destroy","TrackChangesDataGetter","getRootsAttributes","CommentsRepository","plugins","create","div","document","createElement","result","config","function","rootsAttributes","get","getSuggestions","TrackChangesData","TrackChangesEditing","pluginName","appendChild","getRootNames","trackChangesData.editorCreator","editor","data","set"];var Lc,Nc;Lc=Sc,Nc=419,function(e){for(;--e;)Lc.push(Lc.shift())}(++Nc);const Mc=function(e,t){return Sc[e-=0]},wc=[Mc("0xd")];class Oc extends e.Plugin{static get[Mc("0xe")](){return[Wa]}static get[Mc("0x24")](){return Mc("0x22")}[Mc("0x7")](){const e=this.editor;if(e[Mc("0x1d")][Mc("0xa")](Mc("0x27"),(t=>{const n=e.model[Mc("0x1a")][Mc("0x26")]()[Mc("0x10")](((e,t)=>(e[t]="",e)),{});return e.constructor[Mc("0x18")](n,t)})),Mc("0x1e")!=typeof e.config[Mc("0x20")](Mc("0x4"))[Mc("0x9")])throw new t.CKEditorError(Mc("0x2"))}[Mc("0xf")](e){return Dc(this.editor,!0,e)}getDataWithDiscardedSuggestions(e){return Dc(this[Mc("0x28")],!1,e)}}class Fc extends e.Plugin{static get[Mc("0x24")](){return Mc("0x14")}constructor(e){super(e),this[Mc("0x1c")]=Mc("0x6")}init(){this[Mc("0x28")][Mc("0x17")][Mc("0x20")](Mc("0x16"))[Mc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Mc("0x28")].plugins[Mc("0x20")](Mc("0x23"))[Mc("0x11")]=null}}function Pc(e){return void 0!==e[Mc("0x15")]}async function Dc(e,t,n){const o=(0,s.sanitizeEditorConfig)(e,wc);o[Mc("0x17")].push(Wa,Fc),o[Mc("0x1f")]=Pc(e)?e.getRootsAttributes():void 0;const r=document.createDocumentFragment(),i=e[Mc("0x1d")][Mc("0x20")](Mc("0x4"))[Mc("0x9")],x=await i(o,(()=>function(e){const t=document[Mc("0x1b")](Mc("0x19"));return e[Mc("0x25")](t),t}(r)));!function(e,t){const n=e[Mc("0xc")][Mc("0x1a")].getRootNames().reduce(((t,n)=>(t[n]=e.data[Mc("0x20")]({rootName:n}),t)),{}),o=e.plugins.get(Mc("0x8")).users[Mc("0x5")]((e=>({id:e.id,name:e.name}))),r=e[Mc("0x17")][Mc("0x20")]("TrackChangesEditing")[Mc("0x21")]({skipNotAttached:!0,toJSON:!0}),s=t[Mc("0x17")][Mc("0x20")](Mc("0x8")),i=t.plugins[Mc("0x20")](Mc("0x23"));for(const e of o)s.getUser(e.id)||s[Mc("0xb")](e);s.me||s[Mc("0x3")]();for(const e of r)i[Mc("0x12")](e);t.data[Mc("0x0")](n)}(e,x),x.execute(t?"acceptAllSuggestions":"discardAllSuggestions");const a=Pc(x)?x[Mc("0x1")](n):x[Mc("0x29")].get(n);return await x[Mc("0x13")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|