@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230828.0 → 0.0.0-nightly-20230830.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 +1 -1
- 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.d.ts +29 -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
|
@@ -2,4 +2,4 @@
|
|
|
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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["refresh","isEnabled","affectsData","_enableCommands","execute","clearForceDisabled","TrackChangesCommand","forceDisabled","commands","_enabledCommands","has","value","_isEnabledBasedOnSelection","editor","_disableUnsupportedCommands"];var c,l;c=a,l=280,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[d("0xe")]=e,this[d("0x1")]=!1,this[d("0x5")](),this[d("0x2")]=!1}[d("0x5")](){this[d("0x6")]=!0}[d("0x9")](){this.value=!this[d("0x1")],this[d("0x1")]?this._disableUnsupportedCommands():this[d("0x8")]()}[d("0x4")](){for(const t of this[d("0x3")].commands[d("0xd")]())t.affectsData&&!this[d("0xe")].has(t)&&t[d("0xc")](d("0xb"))}[d("0x8")](){for(const t of this[d("0x3")][d("0xd")][d("0xd")]())t[d("0x7")]&&!this._enabledCommands[d("0x0")](t)&&t[d("0xa")](d("0xb"))}}const g=["TrackChangesEditing","model","_isEnabledBasedOnSelection","getRanges","plugins","isEnabled","refresh","editor","_suggestions","get","canEditAt"];var m,f;m=g,f=229,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("0xa")]=e,this[h("0x8")](),this[h("0x4")]=!1}[h("0x8")](){this[h("0x7")]=!0}execute(t){const n=this[h("0xa")][h("0x0")](t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x5")]();this[h("0x9")][h("0x3")][h("0x1")](o)&&this[h("0x9")][h("0x6")].get(h("0x2")).acceptSuggestion(n)}}const b=["discardSuggestion","get","refresh","_suggestions","editor","track-changes-discard-suggestion-not-found","canEditAt","getRanges","_isEnabledBasedOnSelection","execute"];var E,_;E=b,_=111,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[T("0x2")]=e,this.refresh(),this[T("0x7")]=!1}[T("0x1")](){this.isEnabled=!0}[T("0x8")](t){const n=this[T("0x2")][T("0x0")](t);if(!n)throw new e.CKEditorError(T("0x4"),this);const o=n[T("0x6")]();this[T("0x3")].model[T("0x5")](o)&&this[T("0x3")].plugins[T("0x0")]("TrackChangesEditing")[T("0x9")](n)}}const y=["getMarkers","next","replace","push","type","map","splice","deletion","getRange","isInContent","schema","length","join","color","createPositionAfter","createPositionBefore","content","createPositionAt","isObject","getRanges","end","isMultiRange","execute","change","value","isCollapsed"," [color ","start","add","createRange","isTouching"];var k,A;k=y,A=398,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("0xc")==t.type&&v("0xc")!=e[v("0x9")]?-1:"deletion"!=t[v("0x9")]&&v("0xc")==e.type?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xf")];for(;o<t[v("0x10")];){const i=t[o],x=t[o+1];n||(n=e[v("0x14")](i)),I(e,i,x)||(s[v("0x8")](e[v("0x3")](n,r[v("0x17")](i)?e[v("0x13")](i):e[v("0x16")](i,v("0x19")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t[v("0x13")](e),s=t[v("0x14")](n);return o[v("0x4")](s)}function L(t,e,n){for(;n[v("0x10")];){const o=n[v("0xb")](0,100);t[v("0x1c")]((()=>{for(const t of o)t[v("0xe")]&&e[v("0x1b")](t.id)}))}}const N=["from","model","_command","execute","getRanges","isInContent","editor","some","_suggestions","isEnabled","values","refresh","canEditAt","_isEnabledBasedOnSelection"];var w,M;w=N,M=270,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xc")]=e,this[O("0x4")]=n,this[O("0x7")](),this[O("0x9")]=!1}[O("0x7")](){const t=Array.from(this._suggestions[O("0x6")]())[O("0x3")]((t=>t[O("0x1")]));this[O("0x5")]=this[O("0xc")][O("0x5")]&&t}[O("0xd")](){const t=R(Array[O("0xa")](this._suggestions[O("0x6")]()));for(const e of t){const t=e[O("0x0")]();if(!this[O("0x2")][O("0xb")][O("0x8")](t))return}L(this[O("0x2")][O("0xb")],this[O("0xc")],t)}}const P=["editor","refresh","values","_isEnabledBasedOnSelection","getRanges","canEditAt","isEnabled","_suggestions","_selectedSuggestions","execute","size","model","from","_command","selection"];var D,B;D=P,B=330,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("0xd")]=e,this[j("0x7")]=n,this[j("0x8")]=new Set,this[j("0x1")](),this[j("0x3")]=!1}[j("0x1")](){const t=this[j("0x0")].model.document[j("0xe")],e=Array[j("0xc")](this[j("0x7")][j("0x2")]());this._selectedSuggestions=function(t,e){const n=Array.from(t[v("0x18")]()),o=new Set;for(const s of e)if(s[v("0xe")])for(const e of n)for(const n of s[v("0x5")]()){const r=n[v("0xd")]();(e.isIntersecting(r)||t[v("0x1e")]&&!s[v("0x1a")]&&s[v("0x6")]&&r[v("0x19")][v("0x4")](e[v("0x1")]))&&o[v("0x2")](s)}return o}(t,e),this[j("0x6")]=this[j("0xd")][j("0x6")]&&!!this._selectedSuggestions[j("0xa")]}[j("0x9")](){const t=R(Array[j("0xc")](this[j("0x8")]));for(const e of t){const t=e[j("0x4")]();if(!this[j("0x0")].model[j("0x5")](t))return}L(this[j("0x0")][j("0xb")],this[j("0xd")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const V=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 z=function(t){var e=this.__data__,n=V(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=V(e,t);return n<0?void 0:e[n][1]};const q=function(t){return V(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=V(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function $(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])}}$.prototype.clear=G,$.prototype.delete=z,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const J=$;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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,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 Vt=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 Vt(e)?n["string"==typeof e?"string":"hash"]:n.map};const zt=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 Xt=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 $t(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])}}$t.prototype.clear=Ht,$t.prototype.delete=zt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;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 Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=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 Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};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)?we(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 Ve=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&&Ve.call(t,o))&&n.push(o);return n};const ze=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,ze(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.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,ze,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 Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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 Vn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var zn=Se&&Se.isMap;const Kn=zn?ke(zn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(Xn):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=Sn(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?{}:Vn(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),$n(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?ze: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 So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=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 wo=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=So;case"[object Set]":var a=1&o;if(x||(x=Io),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 Mo=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:Mo.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:Sn(t),c=x?Po:Sn(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):wo(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 Vo=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 zo=function(t,e){return e.length<2?t:Vo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=zo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["addRange","authoredAt","substr","removeMarkers","decorate","removeMarker","end","_onAccept","data","onAccept","_onDiscard","push","from","split","getAllAdjacentSuggestions","suggestion:","isMultiRange","discard","creator","commentThread","length","addMarkerName","start","getFirstRange","markers","change","@external","getMultiRangeId","get","size","isIntersecting","previous","_model","getRange","set","getMarkers","add","getItems","type","getRanges","getMarkerNames","attributes","getFirstMarker","map","subType","delete","filter","createdAt","_onAttributesChange","nodeBefore","toJSON","removeAttribute","onAttributesChange","hasComments","_markerNames","author","_saved","head","accept","next"];var $o,Jo;$o=Xo,Jo=105,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x35")]=e[Qo("0x35")],this[Qo("0x3b")]=e[Qo("0x3b")]||null,this[Qo("0xa")]=e[Qo("0xa")],this[Qo("0x21")]=e[Qo("0x21")]||e[Qo("0xa")],this.isExternal=Boolean(e[Qo("0x38")]&&e.attributes[Qo("0x29")]),this[Qo("0x17")]=null,this[Qo("0x2f")]=t,this._onAccept=e[Qo("0x18")],this[Qo("0x19")]=e.onDiscard,this[Qo("0x3")]=e[Qo("0x7")],this[Qo("0x9")]=new Set,this.createdAt=null,this[Qo("0x31")](Qo("0x10"),null),this[Qo("0x31")](Qo("0x38"),e[Qo("0x38")]||{}),this.set(Qo("0x2e"),null),this[Qo("0x31")](Qo("0xe"),null),this.set("commentThread",null),this[Qo("0x31")](Qo("0xb"),!1),this.decorate(Qo("0xd")),this[Qo("0x13")](Qo("0x20"))}get[Qo("0xc")](){let t=this;for(;t.previous;)t=t[Qo("0x2e")];return t}get[Qo("0x8")](){return!!this[Qo("0x22")]&&this.commentThread[Qo("0x23")]>0}get[Qo("0x1f")](){return 0!=this._markerNames[Qo("0x2c")]&&6==Array.from(this[Qo("0x9")])[0][Qo("0x1c")](":").length}get isInContent(){return null!==this.getFirstMarker()}[Qo("0x24")](t){this[Qo("0x9")][Qo("0x33")](t)}[Qo("0x37")](){return Array[Qo("0x1b")](this[Qo("0x9")])}[Qo("0x32")](){return this[Qo("0x37")]()[Qo("0x3a")]((t=>this._model[Qo("0x27")][Qo("0x2b")](t)))[Qo("0x1")]((t=>t))}getFirstMarker(){return this[Qo("0x32")]()[0]||null}removeMarkers(){this[Qo("0x2f")][Qo("0x28")]((t=>{for(const e of this.getMarkers())t[Qo("0x14")](e)})),this[Qo("0x9")].clear()}[Qo("0x14")](t){this[Qo("0x2f")][Qo("0x28")]((e=>{e[Qo("0x14")](t)})),this[Qo("0x9")][Qo("0x0")](t)}[Qo("0xf")](t){const e=Qo("0x1e")+this[Qo("0x35")]+":"+this[Qo("0x3b")]+":"+this.id+":"+this.creator.id+":"+Zo.getMultiRangeId();this.addMarkerName(e),this[Qo("0x2f")][Qo("0x28")]((n=>{n.addMarker(e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x36")]())if(e[Qo("0x2d")](t))return!0;return!1}[Qo("0x36")](){return this.getMarkers()[Qo("0x3a")]((t=>t[Qo("0x30")]()))}[Qo("0x34")](){return this[Qo("0x36")]().reduce(((t,e)=>[...t,...e[Qo("0x34")]()]),[])}[Qo("0x26")](){var t;return(null===(t=this[Qo("0x39")]())||void 0===t?void 0:t.getRange())||null}getContainedElement(){const t=this[Qo("0x36")]();if(1!=t[Qo("0x23")])return null;const e=t[0],n=e[Qo("0x25")].nodeAfter,o=e[Qo("0x15")][Qo("0x4")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xd")](){this[Qo("0x16")](this[Qo("0x36")](),this[Qo("0x17")],this[Qo("0x38")]),this.removeMarkers()}[Qo("0x20")](){this[Qo("0x19")](this[Qo("0x36")](),this[Qo("0x17")],this[Qo("0x38")]),this[Qo("0x12")]()}[Qo("0x1d")](){const t=[];let e=this.head;for(;e;)t[Qo("0x1a")](e),e=e[Qo("0xe")];return t}setAttribute(t,e){const n=eo(this[Qo("0x38")]);_o(n,t,e),Go(n,this[Qo("0x38")])||(this[Qo("0x38")]=n,this[Qo("0x3")](n))}[Qo("0x6")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Qo("0x38")])||(this[Qo("0x38")]=e,this[Qo("0x3")](this.attributes))}[Qo("0x5")](){return{id:this.id,type:this[Qo("0x3b")]?this[Qo("0x35")]+":"+this[Qo("0x3b")]:this[Qo("0x35")],authorId:this.creator.id,createdAt:this[Qo("0x2")],hasComments:this[Qo("0x8")],data:this[Qo("0x17")],attributes:this[Qo("0x38")]}}static[Qo("0x2a")](){return(0,e.uid)()[Qo("0x11")](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=["_locale","name","matchingCallback","pop","_itemLabels","_itemLabelsCallbacks","EmptyContainer","REPLACE_TEXT","element","push","removeEmptyContainer","getDescriptions","isEmpty","set","addObject","label","isEqual","_resolveDescriptionItems","indexOf","*Merge:* %0","*Split:* %0","get","previousSibling","insertion","Container","addEmptyContainer","softBreak","isInContent","_customCallbacks","_schema","remove","*Insert:* %0","checkChild","replace","getItemLabel","addContainer","nextSibling","type","$textProxy","match","ELEMENT_SPACE","elementStart","isObject","_addDescriptionItems","removeObject","$1 $2","registerDescriptionCallback","add","getFirstRange","text","start","*Remove:* %0","elementEnd","quantity","deletion","length","Object"];var es,ns;es=ts,ns=295,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0x33")]=new Map,this[os("0x34")]=[],this[os("0x13")]=t,this[os("0x2f")]=e}[os("0x1")](t){const e=[];for(let n=0;n<t[os("0x2d")];n++){const o=t[n];if(!o[os("0x11")])continue;let s=!1;for(const t of this[os("0x12")]){const n=t(o);if(n){"type"in n&&e[os("0x38")](n),s=!0;break}}if(!s){this[os("0x21")](e,o);const s=t[n+1];if(s&&!o.getFirstRange().end[os("0x6")](s[os("0x26")]()[os("0x28")])){const t=e[e[os("0x2d")]-1],n=os("0xd")==o[os("0x1b")]?"add":os("0x14");t&&"text"==t[os("0x1b")]&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x24")](t){this[os("0x12")][os("0x38")](t)}registerElementLabel(t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x3")](t,n)}[os("0x18")](t,e=1){let n;for(const e of this[os("0x34")])if(e[os("0x31")](t)){n=e[os("0x5")];break}return n||(n=this[os("0x33")][os("0xb")](t[os("0x30")])),n?n(e):1!==e?e+" "+t[os("0x30")]+"s":""+t[os("0x30")]}[os("0x21")](t,e){const n=e[os("0x26")]().getWalker(),o=os("0xd")==e[os("0x1b")]?os("0x25"):"remove";for(const e of n){const s=e.item,r=t[t[os("0x2d")]-1];if(s.is(os("0x1c")))r&&r[os("0x1b")][os("0x8")](os("0xe"))>-1&&t[os("0x32")](),r&&os("0x27")==r[os("0x1b")]?r[o]+=s.data:t[os("0x38")]({type:os("0x27"),add:os("0x25")==o?s.data:"",remove:os("0x14")==o?s.data:""});else if(this[os("0x13")][os("0x20")](s)){const i=s;if(r&&r[os("0x1b")].indexOf("Container")>-1&&t.pop(),os("0x2a")==e[os("0x1b")])continue;r&&r[os("0x1b")]==o+os("0x2e")&&r[os("0x37")][os("0x30")]==i[os("0x30")]?r[os("0x2b")]++:t[os("0x38")]({type:o+"Object",element:i,quantity:1}),n.skip((t=>!(os("0x2a")==t[os("0x1b")]&&t.item==s)))}else if(this[os("0x13")][os("0x16")](s,"$text")||s.is(os("0x37"),os("0x10"))){const n=s;if(os("0x25")==o&&os("0x1f")==e[os("0x1b")]||"remove"==o&&os("0x2a")==e[os("0x1b")])continue;if(r&&-1==r.type[os("0x8")]("Container")){os("0x27")==r[os("0x1b")]&&(r[o]+="\n");continue}let i;if(i=os("0x25")==o?n[os("0x1a")]&&!this[os("0x13")][os("0x20")](n.nextSibling)?n[os("0x1a")]:null:n[os("0xc")]&&!this[os("0x13")][os("0x20")](n[os("0xc")])?n[os("0xc")]:null,n[os("0x2")]||i&&i[os("0x2")]){const e=i&&i[os("0x2")]?i:n;r&&r.type==o+"EmptyContainer"&&r.element[os("0x30")]==e[os("0x30")]?r[os("0x2b")]++:t[os("0x38")]({type:o+os("0x35"),element:e,quantity:1})}else t.push({type:o+os("0xe"),element:n})}}}[os("0x7")](t){const e=this[os("0x2f")],n=[];for(const o of t){switch(o.type){case"text":if(o[os("0x25")]=o[os("0x25")][os("0x17")](/(\S)\u000A+(\S)/g,os("0x23"))[os("0x17")](/\u000A/g,""),o.remove=o[os("0x14")][os("0x17")](/(\S)\u000A+(\S)/g,os("0x23"))[os("0x17")](/\u000A/g,""),""!=o[os("0x25")]&&""!=o[os("0x14")]){n.push({type:"replace",content:Yo(e,os("0x36"),['"'+o.remove+'"','"'+o[os("0x25")]+'"'])});continue}if(null!=o.add[os("0x1d")](/^ +$/)){n[os("0x38")]({type:"insertion",content:Yo(e,os("0x15"),Yo(e,os("0x1e"),o[os("0x25")].length))});continue}if(null!=o[os("0x14")].match(/^ +$/)){n[os("0x38")]({type:"deletion",content:Yo(e,os("0x29"),Yo(e,"ELEMENT_SPACE",o[os("0x14")].length))});continue}if(""!=o[os("0x25")]){n.push({type:os("0xd"),content:Yo(e,os("0x15"),'"'+o[os("0x25")]+'"')});continue}n[os("0x38")]({type:os("0x2c"),content:Yo(e,"*Remove:* %0",'"'+o.remove+'"')});continue;case os("0xf"):case os("0x4"):n[os("0x38")]({type:os("0xd"),content:Yo(e,"*Insert:* %0",this[os("0x18")](o.element,o.quantity))});continue;case os("0x0"):case os("0x22"):n[os("0x38")]({type:"deletion",content:Yo(e,os("0x29"),this[os("0x18")](o.element,o[os("0x2b")]))});continue;case os("0x19"):n[os("0x38")]({type:os("0xd"),content:Yo(e,os("0xa"),this[os("0x18")](o[os("0x37")],o[os("0x2b")]))});continue;case"removeContainer":n.push({type:"deletion",content:Yo(e,os("0x9"),this[os("0x18")](o[os("0x37")],o[os("0x2b")]))});continue}n[os("0x38")](o)}return n}}const rs=["plugins","justify","format","getSelectedBlocks","*Format:* %0","left","FORMAT_JUSTIFY_TEXT","FORMAT_ALIGN_TO_RIGHT","from","has","model","AlignmentEditing","value","FORMAT_ALIGN_TO_LEFT","change","FORMAT_ALIGN_TO_CENTER","getAttribute","markBlockFormat","contentLanguageDirection","commandName","commandParams","alignment","ltr","afterInit","registerDescriptionCallback","right","editor","selection","document","locale","TrackChangesEditing","center"];var is,xs;is=rs,xs=476,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1b")](){const t=this[as("0x1e")],e=t[as("0x1")];if(!t[as("0x4")][as("0xd")](as("0xf")))return;const n=t[as("0x4")].get(as("0x2"));n.enableCommand(as("0x19"),((e,o={})=>{let s=o.value;o.value||(s=as("0x1a")===t[as("0x1")][as("0x16")]?as("0x9"):as("0x1d"));const r=Array[as("0xc")](this[as("0x1e")].model[as("0x0")][as("0x1f")][as("0x7")]()).filter((t=>function(t,e,n){const o=t[as("0x14")](as("0x19"))||null;return e.checkAttribute(t,as("0x19"))&&n!=o}(t,this[as("0x1e")][as("0xe")].schema,s)));t.model[as("0x12")]((()=>{for(const t of r)n[as("0x15")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0x1c")]((t=>{const{data:n}=t;if(n&&as("0x19")==n[as("0x17")]){const t=n[as("0x18")][0][as("0x10")];return{type:as("0x6"),content:Yo(e,as("0x8"),function(t){switch(t){case as("0x9"):return Yo(e,as("0x11"));case as("0x1d"):return Yo(e,as("0xb"));case as("0x3"):return Yo(e,as("0x13"));case as("0x5"):return Yo(e,as("0xa"))}}(t))}}}))}}const ls=["ck-suggestion-marker-","bindElementToMarker","writer","listItem","element","getCustomProperty","schema","isContent","previousPosition","TrackChangesEditing","get","mapper","item","nextSibling","isLimit","getWalker","isBlock","addClass","name","includes","parent","getAttribute","test","push","isAtEnd","markerRange","createRangeOn","activeMarkers","elementEnd","consumable","toViewElement","hasAttribute","span","addHighlight","createUIElement","start","model","markerName"];var ds,us;ds=ls,us=178,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.getItems())s[gs("0x5")](t)&&o[gs("0x23")](n[gs("0x0")](s));return o}function fs(t){const e=[];if(t.is(gs("0x10"),gs("0xf"))){let n=t.nextSibling;for(;n&&n.is(gs("0x10"),"listItem")&&n[gs("0x21")]("listIndent")>0;)e[gs("0x23")](n),n=n.nextSibling}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[gs("0x16")](gs("0x15"));return(s,r,i)=>{if(!i[gs("0x3")][gs("0x22")](r.markerRange,s[gs("0x1e")]))return;const x=r[gs("0x25")][gs("0x1b")](),a=r[gs("0x25")][gs("0x9")],c=t[gs("0xa")][gs("0x12")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x18")];u=u||c[gs("0x13")](e);const n=i[gs("0x17")][gs("0x4")](e);if(n&&n[gs("0x11")](gs("0x7")))return;gs("0x2")==t.type&&c[gs("0x1c")](e)&&!c[gs("0x1a")](e)&&(e[gs("0x19")]||a[gs("0x24")]?l&&l[gs("0x20")]==e||(l=e,m(t[gs("0x14")]),g=!0):d=d||t[gs("0x14")])}function m(t){const s=i[gs("0xe")][gs("0x8")](gs("0x6"),{class:gs("0xc")+e}),x=i.mapper.toViewPosition(t);n&&o[gs("0x1")][gs("0x1f")](r[gs("0xb")])&&i.writer[gs("0x1d")]("ck-suggestion-marker--active",s),i[gs("0xe")].insert(x,s),i.mapper[gs("0xd")](s,r[gs("0xb")])}u||g||!d||m(d)}}const ps=["SuperscriptEditing","underline","commands","strikethrough","superscript","*Remove format:* %0","plugins","FORMAT_CODE","italic","enableCommand","TrackChangesEditing","model","BoldEditing","locale","StrikethroughEditing","value","has","commandName","afterInit","FORMAT_SUBSCRIPT","FORMAT_SUPERSCRIPT","registerDescriptionCallback","markInlineFormat","getRanges","*Format:* %0","subscript","commandParams","document","ItalicEditing","change","bold","slice","code","selection","SubscriptEditing","toLowerCase","FORMAT_ITALIC","from","_descriptionFactory","get","editor","forceValue","format","isCollapsed","CodeEditing"];var bs,Es;bs=ps,Es=432,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0x1e"),_s("0x1"),"UnderlineEditing",_s("0x11"),_s("0x20"),_s("0x7"),_s("0x12")];class Cs extends t.Plugin{[_s("0x24")](){const t=this[_s("0xd")],e=t[_s("0x1d")],n=t.plugins[_s("0xc")](_s("0x1c")),o=t[_s("0x1f")];for(const o of Ts){if(!t[_s("0x18")][_s("0x22")](o))continue;const s=o[_s("0x4")](0,-7)[_s("0x8")](),r=t[_s("0x14")][_s("0xc")](s);n[_s("0x1b")](s,((t,o={})=>{const i=e[_s("0x0")][_s("0x6")];if(i[_s("0x10")])return void t(o);const x=void 0!==o[_s("0xe")]?o[_s("0xe")]:!r[_s("0x21")];e[_s("0x2")]((()=>{const t=Array[_s("0xa")](i[_s("0x29")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x28")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0xb")][_s("0x27")]((n=>{const{data:s}=n;if(s&&s[_s("0x23")]===t)return s[_s("0x2c")][0].forceValue?{type:"format",content:Yo(o,_s("0x2a"),e)}:{type:_s("0xf"),content:Yo(o,_s("0x17"),e)}}))}s(_s("0x3"),Yo(o,"FORMAT_BOLD")),s(_s("0x1a"),Yo(o,_s("0x9"))),s(_s("0x13"),Yo(o,"FORMAT_UNDERLINE")),s(_s("0x5"),Yo(o,_s("0x19"))),s(_s("0x15"),Yo(o,"FORMAT_STRIKETHROUGH")),s(_s("0x2b"),Yo(o,_s("0x25"))),s(_s("0x16"),Yo(o,_s("0x26")))}}const ys=["ELEMENT_BLOCK_QUOTE","editor","_descriptionFactory","parent","document","$root","plugins","afterInit","has","forceValue","enableCommand","checkChild","format","registerDescriptionCallback","*Remove format:* %0","getSelectedBlocks","TrackChangesEditing","from","*Format:* %0","model","locale","commands","markBlockFormat","filter","blockQuote","name","commandName","commandParams"];var ks,As;ks=ys,As=316,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x1b")](){const t=this.editor,e=t[vs("0xc")];if(!t[vs("0x1a")][vs("0x0")]("BlockQuoteEditing"))return;const n=t.plugins.get(vs("0x8")),o=this[vs("0x15")][vs("0xd")].get(vs("0x10"));n[vs("0x2")](vs("0x10"),((e,s={})=>{const r=this[vs("0x15")][vs("0xb")][vs("0x18")].selection,i=s&&void 0!==s[vs("0x1")]?s.forceValue:!o.value;let x=[];if(i){const e=Array[vs("0x9")](r[vs("0x7")]())[vs("0xf")]((t=>Ss(t)||function(t,e){const n=e[vs("0x3")](t[vs("0x17")],"blockQuote"),o=e[vs("0x3")]([vs("0x19"),vs("0x10")],t);return n&&o}(t,this[vs("0x15")].model.schema)));x=S(e,t[vs("0xb")])}else{const e=Array[vs("0x9")](r[vs("0x7")]())[vs("0xf")]((t=>Ss(t)));x=S(e,t[vs("0xb")])}t[vs("0xb")].change((()=>{for(const t of x)n[vs("0xe")](t,{commandName:vs("0x10"),commandParams:[{forceValue:i}]})}))})),n[vs("0x16")][vs("0x5")]((t=>{const{data:n}=t;if(n&&vs("0x10")==n[vs("0x12")]){const t=Yo(e,vs("0x14"));return n[vs("0x13")][0][vs("0x1")]?{type:vs("0x4"),content:Yo(e,vs("0xa"),t)}:{type:"format",content:Yo(e,vs("0x6"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x17")][vs("0x11")]}const Is=["editor","commands","get","plugins","TrackChangesEditing","ckbox","afterInit","enableCommand"];var Ls,Ns;Ls=Is,Ns=174,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const ws=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{[ws("0x0")](){const t=this[ws("0x2")];t[ws("0x3")][ws("0x4")](ws("0x7"))&&t[ws("0x5")][ws("0x4")](ws("0x6"))[ws("0x1")](ws("0x7"))}}const Os=["get","blockName","formatBlock","has","*Remove format:* %0","checkChild","getSelectedBlocks","TrackChangesEditing","change","format","rootElement","language","label","isLimit","codeBlock","_descriptionFactory","languages","registerElementLabel","selection","plugins","from","commands","CodeBlock","enableCommand","editor","forceValue","schema","model","commandParams","indentCodeBlock","parent","ELEMENT_CODE_BLOCK","commandName","locale","value"];var Fs,Ps;Fs=Os,Ps=415,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{afterInit(){const t=this[Ds("0x1d")];if(!t[Ds("0x18")][Ds("0x8")](Ds("0x1b")))return;const e=t.plugins.get(Ds("0xc")),n=t[Ds("0x3")],o=t.config[Ds("0x5")](Ds("0x13"))[Ds("0x15")],s=t[Ds("0x1a")][Ds("0x5")](Ds("0x13"));e[Ds("0x1c")](Ds("0x22")),e[Ds("0x1c")]("outdentCodeBlock"),e[Ds("0x1c")](Ds("0x13"),((n,r={})=>{const i=t.model,x=t[Ds("0x20")].document[Ds("0x17")],a=r&&void 0!==r[Ds("0x1e")]?r[Ds("0x1e")]:!s[Ds("0x4")];let c;r[Ds("0x10")]||(r.language=o[0].language),c=a?Array[Ds("0x19")](x[Ds("0xb")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0x1f")],!e.is(Ds("0xf"))&&!n[Ds("0x12")](e)&&n[Ds("0xa")](e[Ds("0x0")],Ds("0x13")));var e,n})):Array.from(x[Ds("0xb")]()).filter((t=>js(t)));const l=S(c,i);i[Ds("0xd")]((()=>{for(const t of l)e.markBlockFormat(t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x6")})}))})),e[Ds("0x14")][Ds("0x16")](Ds("0x13"),(t=>Yo(n,Ds("0x1"),t))),e[Ds("0x14")].registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x7")==s&&r&&"codeBlock"==r[Ds("0x2")]){const t=r.commandParams[0][Ds("0x10")],s=e(o.find((e=>e[Ds("0x10")]===t))[Ds("0x11")]);return r[Ds("0x21")][0][Ds("0x1e")]?{type:Ds("0xe"),content:Yo(n,"*Format:* %0",Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Ds("0xe"),content:Yo(n,Ds("0x9"),Yo(n,"ELEMENT_CODE_BLOCK",1))}}}))}}function js(t){return"codeBlock"==t.name}const Us=["enableCommand","plugins","get","editor","afterInit"];var Gs,Hs;Gs=Us,Hs=362,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const Vs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[Vs("0x2")](){const t=this[Vs("0x1")];t.plugins.has("CommentsEditing")&&t[Vs("0x4")][Vs("0x0")]("TrackChangesEditing")[Vs("0x3")]("addCommentThread")}}var zs=n(181);const Ks=["mapper","selection","delete","unit","data","get","end","showSuggestionHighlights","batch","remove","editing","enableCommand","root","editor","getFirstRange","bind","deleteForward","forward","markerName","fromRange","writer","merge","unlock","modifySelection","buffer","TrackChangesEditing","options","lock","uiElement","markerNameToElements","requires","rootName","createRange","isCollapsed","addMarker:suggestion:deletion","model","high","createSelection","removeMarker:suggestion:deletion","document","init","setSelection"];var qs,Xs;qs=Ks,Xs=188,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0xa")](){return[zs.Delete]}[$s("0x14")](){const t=this[$s("0x23")],e=t.plugins.get($s("0x5"));e.enableCommand($s("0x18"));const n=t.commands[$s("0x1b")]($s("0x26"));e[$s("0x21")]("deleteForward",((e,o={})=>{const s=t.model[$s("0x11")](t[$s("0xf")][$s("0x13")][$s("0x17")]);s[$s("0xd")]&&t[$s("0xf")][$s("0x3")](s,{direction:$s("0x27"),unit:o[$s("0x19")]});const r=s[$s("0x24")](),x=i.LiveRange[$s("0x29")](r);let a;e(o),a="$graveyard"==x[$s("0x22")][$s("0xb")]?t[$s("0xf")][$s("0xc")](r.start):t[$s("0xf")].createRange(x.start,x.end),x.detach(),t.model.enqueueChange(n[$s("0x4")][$s("0x1e")],(t=>{n.buffer[$s("0x7")](),t[$s("0x15")](t[$s("0xc")](a[$s("0x1c")])),n.buffer[$s("0x2")]()}))})),t[$s("0x20")].downcastDispatcher.on("addMarker:suggestion:deletion",hs(t,$s("0x1")),{priority:$s("0x10")}),t[$s("0x1a")].downcastDispatcher.on($s("0xe"),((e,n,o)=>{o[$s("0x6")][$s("0x1d")]&&hs(t,$s("0x1"),{showActiveMarker:!1})[$s("0x25")](this)(e,n,o)}),{priority:"high"}),t[$s("0x20")].downcastDispatcher.on($s("0x12"),((t,e,n)=>{const o=n[$s("0x16")][$s("0x9")](e[$s("0x28")]);if(o)for(const t of o)t.is($s("0x8"))&&(n[$s("0x16")].unbindElementFromMarkerName(t,e[$s("0x28")]),n[$s("0x0")][$s("0x1f")](t))}),{priority:$s("0x10")})}}const Qs=["multipleBlocks","commandParams","bulletedList","createRange","_descriptionFactory","ELEMENT_LIST_ITEM","expandListBlocksToCompleteList","format","model","forceValue","formatBlock","before","setSelection","ELEMENT_","accept","indentList","*Format:* remove from %0","markBlockFormat","refresh","isFirstBlockOfListItem","length","fromRange","listIndent","schema","parent","isObject","numberedList","registerDescriptionCallback","from","value","registerCustomCallback","markMultiRangeBlockFormat","createPositionAt","splitListItemBefore","enableCommand","*Indent:* %0","nodeAfter","*Change to:* %0","listItemId","*Merge:* %0","locale","*Format:* insert into %0","get","commands","outdentList","document","getAttribute","end","map","previousSibling","nextSibling","*Outdent:* %0","DocumentListUtils","push","containsItem","toUpperCase","afterInit","findIndex","commandName","_LIST","detach","listType","DocumentListEditing","selection","documentList","ELEMENT_BULLETED_LIST","editor","getSelectedBlocks","next","start","add","getRanges","splitListItemAfter","change","getFirstRange","plugins"];var Zs,Ys;Zs=Qs,Ys=410,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("0x24")];if(!t.plugins.has(tr("0x20")))return;const e=t[tr("0xa")],n=t[tr("0x2d")][tr("0xc")]("TrackChangesEditing"),o=t[tr("0x2d")][tr("0xc")](tr("0x16"));function s(e){return()=>{const s=t[tr("0xd")][tr("0xc")](e);let r=Array[tr("0x4a")](t[tr("0x36")][tr("0xf")][tr("0x21")][tr("0x25")]());if(a(e)){r=o[tr("0x34")](r);const t=[];for(const e of r)o[tr("0x41")](e)&&t[tr("0x17")](e);r=t}t[tr("0x36")][tr("0x2b")]((()=>{n[tr("0x1")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x4b")]}],formatGroupId:tr("0x1f")},[],tr("0x22"))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[tr("0x1b")]((t=>!t.hasAttribute("listItemId")));return n>-1&&(e=e.slice(0,n)),e}(t.model[tr("0xf")].selection[tr("0x25")]()),s=o[o[tr("0x42")]-1],r=t[tr("0x36")][tr("0x45")][tr("0x47")](s)?"after":tr("0x11"),i=t[tr("0x36")][tr("0x31")](t[tr("0x36")][tr("0x2")](o[0],tr("0x39")),t[tr("0x36")][tr("0x2")](s,r));t[tr("0x36")][tr("0x2b")]((()=>{n[tr("0x3f")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x1f")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x14")];for(;t&&t[tr("0x10")](tr("0x44"))>n[tr("0x10")](tr("0x44"));)e[tr("0x28")](t),t=t[tr("0x14")]}return Array[tr("0x4a")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x36")][tr("0xf")].selection[tr("0x25")]()[tr("0x26")]().value,s=t[tr("0x36")].createPositionAt(o,tr("0x39")),r=t[tr("0x36")][tr("0x2")](o,0),i=t.model[tr("0x31")](s,r);t[tr("0x36")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0xc")](tr("0x30"))[tr("0x4b")],o=t[tr("0xd")].get(tr("0x48"))[tr("0x4b")];return tr("0x48")===e?n:o}n.enableCommand(tr("0x48"),s("numberedList")),n[tr("0x4")](tr("0x30"),s(tr("0x30"))),n.enableCommand(tr("0x3d"),r("indentList")),n[tr("0x4")](tr("0xe"),r(tr("0xe"))),n[tr("0x4")](tr("0x2a"),x(tr("0x2a"))),n[tr("0x4")](tr("0x3"),x("splitListItemBefore")),n[tr("0x32")].registerElementLabel((function(e){const n=!t[tr("0x36")][tr("0x45")][tr("0x47")](e),o=e[tr("0x13")],s=e[tr("0x14")],r=e.getAttribute(tr("0x8")),i=!o||o[tr("0x10")]("listItemId")!==r,x=!s||s[tr("0x10")](tr("0x8"))!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n[tr("0x32")][tr("0x49")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x1c")]){case tr("0x30"):r=n[tr("0x2f")][0].forceValue,i=a(n.commandName),o=r?"*Format:* insert into %0":tr("0x3e"),i&&(o=tr("0x7")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x23")))};break;case tr("0x48"):r=n.commandParams[0][tr("0x37")],i=a(n[tr("0x1c")]),o=tr(r?"0xb":"0x3e"),i&&(o="*Change to:* %0"),s={type:tr("0x35"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x3d"):o=tr("0x5"),s={type:"format",content:Yo(e,o,Yo(e,tr("0x33")))};break;case tr("0xe"):o=function(t){const e=t[tr("0x2c")]();let n=e[tr("0x27")][tr("0x6")];for(;n&&e[tr("0x18")](n);){if(n.getAttribute("listIndent")>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x3e"),Yo(e,function(t){const e=t[tr("0x2c")]().start[tr("0x6")];return tr("0x3b")+e[tr("0x10")](tr("0x1f"))[tr("0x19")]()+tr("0x1d")}(t))):Yo(e,tr("0x15"),Yo(e,tr("0x33"))),s={type:tr("0x35"),content:o};break;case"mergeListItemBackward":case"mergeListItemForward":!1===n[tr("0x2e")]&&(o=tr("0x9"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0x33")))})}return s})),n._suggestionFactory[tr("0x0")](tr("0x38"),tr("0x22"),tr("0x3c"),(function(e,n){const o=[];for(let n of e)n[tr("0x27")][tr("0x6")]===n[tr("0x11")][tr("0x46")]&&(n=t.model[tr("0x31")](t[tr("0x36")][tr("0x2")](n[tr("0x27")][tr("0x6")],0))),o[tr("0x17")](n);t.model[tr("0x2b")]((e=>{const s=t[tr("0x36")][tr("0xf")].selection,r=Array.from(s[tr("0x29")]())[tr("0x12")]((t=>i.LiveRange[tr("0x43")](t)));e[tr("0x3a")](o),t[tr("0xd")].get(n[tr("0x1c")])[tr("0x40")](),n[tr("0x2f")][tr("0x17")]({forceDefaultExecution:!0}),t.execute(n[tr("0x1c")],...n[tr("0x2f")]),e[tr("0x3a")](r);for(const t of r)t[tr("0x1e")]()}))}))}}var nr=n(331);const or=["showSuggestionHighlights","detach","downcastDispatcher","markInsertion","plugins","markerName","enableCommand","options","afterExecute","mapper","end","setSelection","change","fire","createRange","TrackChangesEditing","addMarker:suggestion:insertion","bind","hasClass","split","ck-suggestion-marker-split","editing","writer","getFirstRange","selection","get","unbindElementFromMarkerName","parent","removeMarker:suggestion:insertion","editor","model","fromRange","high","remove","requires","createPositionAt","commands","enter"];var sr,rr;sr=or,rr=225,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("0x25")](){return[nr.Enter]}init(){const t=this[ir("0x20")],e=t[ir("0x7")][ir("0x1c")](ir("0x12")),n=t[ir("0x1")][ir("0x1c")]("enter");e[ir("0x9")](ir("0x2"),(()=>{t[ir("0x21")][ir("0xf")]((o=>{const s=t[ir("0x21")].document[ir("0x1b")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x22")](s[ir("0x1a")]());if(n.enterBlock(o)){const n=t.model[ir("0x0")](r[ir("0x1e")].nextSibling,0),s=o.createRange(r,n);e[ir("0x6")](s)}else o[ir("0xe")](o[ir("0x11")](x[ir("0xd")]));x[ir("0x4")](),n[ir("0x10")](ir("0xb"),{writer:o})}))})),t[ir("0x18")].downcastDispatcher.on(ir("0x13"),hs(t,ir("0x16")),{priority:ir("0x23")}),t.editing[ir("0x5")].on(ir("0x1f"),((t,e,n)=>{const o=n[ir("0xc")].markerNameToElements(e[ir("0x8")]);if(o)for(const t of o)t[ir("0x15")](ir("0x17"))&&(n[ir("0xc")][ir("0x1d")](t,e[ir("0x8")]),n[ir("0x19")][ir("0x24")](t))}),{priority:ir("0x23")}),t.data[ir("0x5")].on(ir("0x13"),((e,n,o)=>{o[ir("0xa")][ir("0x3")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x14")](this)(e,n,o)}),{priority:ir("0x23")})}}const ar=["model","plugins","replace","createPositionAt","getRange","TrackChangesEditing","createRange","findByTextCallback","start","replaceAll","get","suggestion:deletion","item","afterInit","FindAndReplaceUtils","_isInDeletionRange","getMarkersGroup","enableCommand","FindAndReplaceEditing","findNext","handleFindCommand","getIntersection","editor","findPrevious"];var cr,lr;cr=ar,lr=341,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{[dr("0x8")](){if(!this[dr("0x11")][dr("0x14")].has(dr("0xd")))return;const t=this.editor[dr("0x14")][dr("0x5")](dr("0x0"));t[dr("0xc")]("find",this[dr("0xf")].bind(this)),t.enableCommand(dr("0xe")),t.enableCommand(dr("0x12")),t.enableCommand(dr("0x15")),t[dr("0xc")](dr("0x4"))}[dr("0xf")](t,e,n={}){const o=this[dr("0x11")].plugins[dr("0x5")](dr("0x9"));void 0!==n&&t((t=>("string"==typeof e?o[dr("0x2")](e,n):e)(t).filter((e=>!1===this[dr("0xa")](e,t[dr("0x7")])))),n)}[dr("0xa")](t,e){const n=this[dr("0x11")][dr("0x13")][dr("0x1")](this.editor[dr("0x13")][dr("0x16")](e,t[dr("0x3")]),this[dr("0x11")][dr("0x13")][dr("0x16")](e,t.end));for(const t of this[dr("0x11")][dr("0x13")].markers[dr("0xb")](dr("0x6")))if(null!==n[dr("0x10")](t[dr("0x17")]()))return!0;return!1}}const gr=["commandName","fontSize","TrackChangesEditing","fontFamily","*Set font background color:* %0","fontBackgroundColor","value","*Reset font background color*","*Reset font size*","title","_enableCommand","normalizeSizeOptions","*Set font family:* %0","toLowerCase","model","has","find","plugins","fontColor","format","*Reset font family*","FontSize","registerDescriptionCallback","editor","*Set font color:* %0","fontBackgroundColor.colors","*Reset font color*","enableCommand","markInlineFormat","config","fontColor.colors","selection","FontSizeEditing","isCollapsed","afterInit","FontColorEditing","get","from","_descriptionFactory","commandParams","label","trim","FontFamilyEditing"];var mr,fr;mr=gr,fr=289,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:hr("0x1"),commandName:hr("0xd")},{pluginName:hr("0xb"),commandName:hr("0xf")},{pluginName:hr("0x4"),commandName:hr("0x1e")},{pluginName:"FontBackgroundColorEditing",commandName:hr("0x11")}];class br extends t.Plugin{[hr("0x3")](){const t=this[hr("0x23")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x23")][hr("0x1d")][hr("0x1b")](t)&&this[hr("0x16")](e);this.editor.plugins[hr("0x5")]("TrackChangesEditing")[hr("0x7")][hr("0x22")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0xd")==o[hr("0xc")]){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=n(this.editor[hr("0x1d")].get(hr("0x21"))[hr("0x17")](this.editor[hr("0x29")][hr("0x5")]("fontSize.options"))[hr("0x1c")]((t=>t[hr("0x1a")]==e))[hr("0x15")])[hr("0x19")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hr("0x1f"),content:Yo(t,hr("0x14"))}}if(hr("0xf")==o[hr("0xc")]){const e=o.commandParams[0].value;return e?{type:hr("0x1f"),content:Yo(t,hr("0x18"),e)}:{type:hr("0x1f"),content:Yo(t,hr("0x20"))}}if(hr("0x1e")==o.commandName){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x29")][hr("0x5")](hr("0x2a")))[hr("0x1c")]((t=>t.model==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x24"),i)[hr("0xa")](),color:{value:e,title:i||r}}}return{type:hr("0x1f"),content:Yo(t,hr("0x26"))}}if(hr("0x11")==o[hr("0xc")]){const e=o[hr("0x8")][0][hr("0x12")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x23")][hr("0x29")][hr("0x5")](hr("0x25")))[hr("0x1c")]((t=>t[hr("0x1a")]==e));let r=e,i="";return o&&(r=o[hr("0x9")],i=n(r).toLowerCase()),{type:"format",content:Yo(t,hr("0x10"),i)[hr("0xa")](),color:{value:e,title:i||r}}}return{type:hr("0x1f"),content:Yo(t,hr("0x13"))}}}}))}[hr("0x16")](t){const e=this[hr("0x23")];e[hr("0x1d")][hr("0x5")](hr("0xe"))[hr("0x27")](t,((n,o={})=>{const s=e[hr("0x1a")].document[hr("0x0")],r=o[hr("0x12")];s[hr("0x2")]?n(o):e[hr("0x1a")].change((()=>{const n=Array[hr("0x6")](s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x1a")]);for(const o of n)e[hr("0x1d")][hr("0x5")](hr("0xe"))[hr("0x28")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["isFormatting","push","model","format","title","config","get","editor","getAttributes","split","getAttributeProperties","commands","entries","modifySelection","getRanges","getLastPosition","toLowerCase","normalizeSizeOptions","boolean","getFirstPosition","word","getItems","*Remove all formatting*","pasteFormat","find","FontSize","copyFormat","fontColor","*Set format to:* %0","markInlineFormat","fontBackgroundColor","join","schema","getSelectedBlocks","backward","plugins","length","_descriptionFactory","charAt","fontColor.colors","from","isBlock","enableCommand","locale","createRange","TrackChangesEditing","change","selection","slice","commandName","label","afterInit","fontSize.options","commandParams"];var _r,Tr;_r=Er,Tr=444,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x27")](){const t=this[Cr("0x31")],n=t[Cr("0x2c")],o=n.document[Cr("0x23")],s=t[Cr("0x17")][Cr("0x30")](Cr("0x21")),r=t[Cr("0x1f")],i=t[Cr("0x35")][Cr("0x30")](Cr("0xe")),x=t[Cr("0x35")][Cr("0x30")]("pasteFormat");i&&x&&(s.enableCommand(Cr("0xb"),((t,r={})=>{const i=r;n[Cr("0x22")]((()=>{const t=Array[Cr("0x1c")](o[Cr("0x2")]()),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("0x32")]()){const t=e[Cr("0x34")](n);t&&t[Cr("0x2a")]&&(yield n)}}(t,n));for(const e of t[Cr("0x2")]())for(const t of e[Cr("0x9")]())!n[Cr("0x1d")](t)&&o(t)&&(yield t);for(const e of t[Cr("0x15")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x14")]))||0!==Object.keys(i)[Cr("0x18")])for(const t of r)s[Cr("0x11")](t,{commandName:Cr("0xb"),commandParams:[i]})}))})),s[Cr("0x19")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n[Cr("0x25")]){const e=[],o=n[Cr("0x29")][0];for(const[n,s]of Object[Cr("0x0")](o))e[Cr("0x2b")](Ar(t,n,s));return e.length?{type:Cr("0x2d"),content:Yo(r,Cr("0x10"),e[Cr("0x13")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0xa"))}}})),t[Cr("0x17")][Cr("0x30")](Cr("0x21"))[Cr("0x1e")](Cr("0xe")))}}function kr(t,e){const n=t.createSelection(e);t[Cr("0x1")](n,{unit:Cr("0x8"),direction:Cr("0x16")});const o=n[Cr("0x7")]();t[Cr("0x1")](n,{unit:Cr("0x8"),direction:"forward"});const s=n[Cr("0x3")]();return t[Cr("0x20")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[Cr("0x33")](/(?=[A-Z])/)[Cr("0x13")](" "),i=o(r[Cr("0x1a")](0).toUpperCase()+r[Cr("0x24")](1))[Cr("0x4")]();if(Cr("0x6")==typeof n)return i;if(Cr("0xf")===e||Cr("0x12")===e){const e=(0,s.normalizeColorOptions)(t[Cr("0x2f")][Cr("0x30")](Cr("0x1b")))[Cr("0xc")]((t=>t[Cr("0x2c")]==n));return i+" ("+(e?o(e[Cr("0x26")])[Cr("0x4")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0x17")].get(Cr("0xd"))[Cr("0x5")](t[Cr("0x2f")][Cr("0x30")](Cr("0x28"))).find((t=>t[Cr("0x2c")]==n));return i+" ("+(e?o(e[Cr("0x2e")])[Cr("0x4")]():n)+")"}return i+" ("+n+")"}const vr=["markBlockFormat","from","title","format","locale","document","schema","*Change to:* %0","editor","HeadingEditing","commandParams","has","ELEMENT_HEADING_CUSTOM","find","enableCommand","model","formatBlock","get","parent","isObject","ELEMENT_HEADING","match","_descriptionFactory","value","name","registerDescriptionCallback","checkChild","TrackChangesEditing","filter","plugins","heading","getSelectedBlocks"];var Rr,Sr;Rr=vr,Sr=320,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{afterInit(){const t=this[Ir("0x8")],e=t[Ir("0x4")],n=t.config.get("heading.options");if(!t[Ir("0x1d")][Ir("0xb")](Ir("0x9")))return;const o=t[Ir("0x1d")][Ir("0x11")](Ir("0x1b"));o[Ir("0xe")](Ir("0x1e"),((e,n)=>{const s=n[Ir("0x17")],r=Array[Ir("0x1")](this.editor[Ir("0xf")][Ir("0x5")].selection[Ir("0x1f")]())[Ir("0x1c")]((t=>{return e=t,n=s,(o=this[Ir("0x8")].model[Ir("0x6")])[Ir("0x1a")](e[Ir("0x12")],n)&&!o[Ir("0x13")](e)&&e[Ir("0x18")]!=n;var e,n,o}));t[Ir("0xf")].change((()=>{for(const t of r)o[Ir("0x0")](t,{commandName:Ir("0x1e"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0xf")]&&o[Ir("0x16")].registerElementLabel(t.model,(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x2")])}));function s(t,n){return Yo(e,Ir("0x14"),[t,n])}function r(t,n){return Yo(e,Ir("0xc"),[t,n])}o[Ir("0x16")][Ir("0x19")]((t=>{const{type:o,data:i}=t;if(Ir("0x10")==o&&i&&Ir("0x1e")==i.commandName){const t=i[Ir("0xa")][0][Ir("0x17")],o=Nr(t);if(null!==o)return{type:"format",content:Yo(e,Ir("0x7"),s(1,o))};const x=n[Ir("0xd")]((e=>e[Ir("0xf")]===t)).title;return{type:Ir("0x3"),content:Yo(e,Ir("0x7"),r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x15")](/^heading(\d+)$/);return e?e[1]:null}const wr=["commandName","find","model","value","markInlineFormat","plugins","registerDescriptionCallback","getLastMatchingPosition","selection","commandParams","hasAttribute","highlight.options","backward","*Remove highlight*","formatInline","FORMAT_HIGHLIGHT","isCollapsed","change","createRange","push","getAttribute","locale","TrackChangesEditing","HighlightEditing","has","document","title","highlight","item","_descriptionFactory","format","editor","toLowerCase","getFirstPosition"];var Mr,Or;Mr=wr,Or=471,function(t){for(;--t;)Mr.push(Mr.shift())}(++Or);const Fr=function(t,e){return wr[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this[Fr("0x2")];if(!t[Fr("0xa")][Fr("0x1d")](Fr("0x1c")))return;const e=t[Fr("0xa")].get(Fr("0x1b"));e.enableCommand(Fr("0x20"),((n,o={})=>{const s=t[Fr("0x7")][Fr("0x1e")][Fr("0xd")],r=s.getAttribute(Fr("0x20"));let i=o[Fr("0x8")],x=[];if(s[Fr("0x15")]){const e=s[Fr("0x4")]();if(!s[Fr("0xf")]("highlight"))return void n(o);{const n=t=>t[Fr("0x21")][Fr("0x19")](Fr("0x20"))===r,o=e.getLastMatchingPosition(n,{direction:Fr("0x11")}),s=e[Fr("0xc")](n);x=[t[Fr("0x7")][Fr("0x17")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Fr("0x18")](e):x[Fr("0x18")](...ms(Fr("0x20"),e,t[Fr("0x7")]));t[Fr("0x7")][Fr("0x16")]((()=>{for(const t of x)e[Fr("0x9")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fr("0x1a")];e[Fr("0x0")][Fr("0xb")]((e=>{const{type:o,data:s}=e;if(Fr("0x13")==o&&s&&"highlight"==s[Fr("0x5")]){const e=n.t,o=s[Fr("0xe")][0][Fr("0x8")];if(o){const s=t.config.get(Fr("0x10"))[Fr("0x6")]((t=>t[Fr("0x7")]==o)),r=e(s[Fr("0x1f")])[Fr("0x3")]();return{type:Fr("0x1"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0x1f")]}}}return{type:Fr("0x1"),content:Yo(n,Fr("0x12"),Yo(n,Fr("0x14")))}}}))}}const Dr=["editor","ELEMENT_HORIZONTAL_LINE","has","enableCommand","addClass","elementToStructure","showSuggestionHighlights","get","registerElementLabel","afterInit","horizontalLine","conversion","for","ck-horizontal-line","plugins","high","_descriptionFactory","locale","createEmptyElement","TrackChangesEditing"];var Br,jr;Br=Dr,jr=241,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x8")](){const t=this[Ur("0x13")];if(!t.plugins[Ur("0x1")]("HorizontalLineEditing"))return;t[Ur("0xd")][Ur("0x6")](Ur("0x12"))[Ur("0x2")](Ur("0x9"));const e=t[Ur("0xd")].get(Ur("0x12")),n=t[Ur("0x10")];e[Ur("0xf")][Ur("0x7")](Ur("0x9"),(t=>Yo(n,Ur("0x0"),t))),t[Ur("0xa")][Ur("0xb")]("dataDowncast")[Ur("0x4")]({model:Ur("0x9"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x5")])return null;const o=e.createContainerElement("div"),s=e[Ur("0x11")]("hr");return e[Ur("0x3")](Ur("0xc"),o),e.insert(e.createPositionAt(o,0),s),o},converterPriority:Ur("0xe")})}}const Hr=["htmlEmbed","getSelectedElement","commandName","registerDescriptionCallback","rawHtml","has","*Change %0 content*","_descriptionFactory","plugins","getAttribute","locale","registerElementLabel","TrackChangesEditing","ELEMENT_HTML_EMBED","HtmlEmbed","model","element","cancel","markBlockFormat","document","selection","get","enableCommand","afterInit","rawHtmlApi","editing"];var Vr,Wr;Vr=Hr,Wr=221,function(t){for(;--t;)Vr.push(Vr.shift())}(++Wr);const zr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[zr("0xa")](){const t=this.editor;if(!t[zr("0x15")][zr("0x12")](zr("0x1")))return;const e=t.plugins[zr("0x8")](zr("0x19")),n=t[zr("0x17")],o=t[zr("0xc")].view[zr("0x6")][zr("0x7")];e[zr("0x14")][zr("0x18")](zr("0x11"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t.plugins[zr("0x8")](zr("0x19"))[zr("0x9")](zr("0xd"),((n,s)=>{const r=t[zr("0x2")],i=r[zr("0x6")][zr("0x7")];r.change((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(zr("0x3"),"rawHtml")?t[zr("0xe")]():null}(i);if(!t)return void n(null);const r=t[zr("0x16")]("value")||"";void 0!==s&&s!==r&&(e[zr("0x5")](t,{commandName:zr("0xd"),commandParams:[s]}),o[zr("0xe")]().getCustomProperty(zr("0xb"))[zr("0x4")]())}))})),e[zr("0x14")][zr("0x10")]((t=>{const{data:e}=t;if(e&&zr("0xd")==e[zr("0xf")]){const t=Yo(n,zr("0x0"));return{type:"format",content:Yo(n,zr("0x13"),t)}}}))}}const qr=["createRangeOn","getSuggestionCallback","isEqual","subType","nodeBefore","plugins","from","type","schema","detach","_suggestionFactory","_descriptionFactory","uploadImage","filter","caption","resizeImage","ImageUtils","formatBlock","selection","toPrevious","registerCustomCallback","fromPosition","getFirstRange","isInContent","ELEMENT_IMAGE","ImageCaptionUtils","has","imageStylePostApply","locale","commandParams","change","Inline image to block image","editor","imageInline","insertImage","format","isBlockImage","name","hasSuggestion","forceDefaultExecution","chain","shouldConvertImageType","imageCaption","TrackChangesEditing","differ","document","start","imageTypeBlock","nodeAfter","next","formatInline","ImageResize","getContainedElement","get","findIndex","FORMAT_SIDE_IMAGE","suggestion","ImageBlockEditing","toLowerCase","value","isCollapsed","join","imageStyle","getChangedMarkers","isOwn","imageBlock","convertBlockImageToInline","commands","getNearestSelectionRange","createRange","find","backward","Block image to inline image","commandName","imageTextAlternative","*Set image text alternative:* %0","ELEMENT_CAPTION","ImageInlineEditing","markInlineFormat","afterInit","length","width","markBlockFormat","accept","ImageTextAlternativeEditing","imageTypeInline","imageStylePreApply","isInlineImage","newRange","enableCommand","getAttribute","isBefore","registerElementLabel","end","getSuggestion","discard","ImageEditing","getSuggestions","newValue","getClosestSelectedImageElement","refresh","*Set image width:* %0","isIntersecting","alt","_findSuggestions","convertInlineImageToBlock","ImageUploadEditing","registerDescriptionCallback","markInsertion","discardSuggestion","commandReversedParams","ImageCaptionEditing","model","insertion","markDeletion"];var Xr,$r;Xr=qr,$r=322,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x66")](){const t=this[Jr("0x37")];if(!t[Jr("0x1c")][Jr("0x31")](Jr("0x4")))return;const n=t[Jr("0x1c")].get(Jr("0x42")),o=t[Jr("0x1c")].get(Jr("0x27")),s={},r=t[Jr("0x33")];if(n[Jr("0x70")](Jr("0x39")),n[Jr("0x22")][Jr("0x0")](Jr("0x58"),(t=>Yo(r,Jr("0x2f"),t))),n._descriptionFactory[Jr("0x0")](Jr("0x38"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x22")][Jr("0x0")](Jr("0x25"),(()=>Yo(r,Jr("0x63")))),t[Jr("0x1c")][Jr("0x31")](Jr("0xe"))&&n[Jr("0x70")](Jr("0x23")),t[Jr("0x1c")].has(Jr("0x50"))&&t[Jr("0x1c")][Jr("0x31")](Jr("0x64"))&&(n[Jr("0x70")](Jr("0x6c"),((e,s)=>{const r=o[Jr("0x7")](t.model[Jr("0x44")][Jr("0x29")]);t.model[Jr("0x35")]((()=>{n[Jr("0x69")](r,{commandName:Jr("0x6c"),commandParams:[s]},[],Jr("0x59"))}))})),n.enableCommand(Jr("0x46"),((e,s)=>{t[Jr("0x14")][Jr("0x35")]((r=>{let x=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),a=r[Jr("0x17")](x);const c=i.LivePosition[Jr("0x2c")](a[Jr("0x45")],Jr("0x2a")),l=i.LivePosition[Jr("0x2c")](a.end,"toNext");n[Jr("0x3e")]((()=>e(s))),x=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),a=r[Jr("0x17")](x);const d=r[Jr("0x5c")](c,l);c[Jr("0x20")](),l[Jr("0x20")](),n[Jr("0x69")](x,{commandName:Jr("0x6c"),commandParams:[]},[],"convertInlineImageToBlock"),d.start.isBefore(a.start)&&n[Jr("0x10")](r[Jr("0x5c")](d.start,a[Jr("0x45")]),Jr("0xd")),a[Jr("0x1")][Jr("0x72")](d[Jr("0x1")])&&n[Jr("0x10")](r[Jr("0x5c")](a[Jr("0x1")],d[Jr("0x1")]),"convertInlineImageToBlock")}))})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),"convertInlineImageToBlock","join",(()=>{})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),Jr("0xd"),Jr("0x6a"),(()=>{})),n._suggestionFactory[Jr("0x2b")]("formatBlock",Jr("0xd"),"discard",n._suggestionFactory.getSuggestionCallback(Jr("0x28"),"","accept")),n[Jr("0x21")][Jr("0x2b")](Jr("0x15"),Jr("0xd"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x15"),"convertInlineImageToBlock",Jr("0x3"),(([e])=>{const o=n._suggestionFactory[Jr("0x18")](Jr("0x15"),"",Jr("0x3"));let s=e[Jr("0x45")],r=e[Jr("0x1")];const i=t[Jr("0x14")].schema[Jr("0x5b")](s,Jr("0x5e")),x=t[Jr("0x14")][Jr("0x1f")].getNearestSelectionRange(r,"forward");i[Jr("0x53")]&&(s=i[Jr("0x45")]),x[Jr("0x53")]&&(r=x[Jr("0x1")]),o([t[Jr("0x14")][Jr("0x5c")](s,r)])})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),Jr("0xd"),Jr("0x3f"),c),n[Jr("0x21")][Jr("0x2b")](Jr("0x15"),Jr("0xd"),Jr("0x3f"),c)),t[Jr("0x1c")][Jr("0x31")](Jr("0x13"))&&(n[Jr("0x70")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x4c")](Jr("0x30"));let i=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")].selection),x=r.getCaptionFromImageModelElement(i);t[Jr("0x14")][Jr("0x35")]((()=>{if(x)return void n[Jr("0x16")](t[Jr("0x14")].createRangeOn(x));const a=o[Jr("0x3b")](i);e(s),i=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")].selection),x=r.getCaptionFromImageModelElement(i),n[Jr("0x10")](t[Jr("0x14")][Jr("0x17")](x),a?null:Jr("0x41"))}))})),n._suggestionFactory.registerCustomCallback(Jr("0x15"),Jr("0x41"),"chain",c)),t[Jr("0x1c")][Jr("0x31")]("ImageStyleEditing")){n[Jr("0x70")](Jr("0x55"),((s,r)=>{const i=t.plugins[Jr("0x4c")]("Users").me,x=t[Jr("0x5a")][Jr("0x4c")]("imageStyle");let a=o[Jr("0x7")](t[Jr("0x14")][Jr("0x44")][Jr("0x29")]),c=t[Jr("0x14")][Jr("0x17")](a),l=x.value;if(l==r[Jr("0x52")])return;const d={commandName:Jr("0x55"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x14")].change((()=>{if(n[Jr("0x5")]()[Jr("0x24")]((t=>t[Jr("0x2e")]&&i==t.author&&(Jr("0x28")==t[Jr("0x1e")]||Jr("0x49")==t[Jr("0x1e")])&&(Jr("0x6d")==t.subType||"imageStylePostApply"==t.subType)&&t[Jr("0x2d")]()[Jr("0x19")](c))).forEach((t=>n.discardSuggestion(t.head))),a=o[Jr("0x7")](t.model.document[Jr("0x29")]),c=t[Jr("0x14")][Jr("0x17")](a),x.refresh(),t[Jr("0x5a")][Jr("0x4c")](Jr("0x6c"))[Jr("0x8")](),t[Jr("0x5a")][Jr("0x4c")]("imageTypeBlock").refresh(),l=x[Jr("0x52")],l!=r[Jr("0x52")])return o[Jr("0x6e")](a)&&x[Jr("0x40")](r[Jr("0x52")],a)?(s(r),a=o[Jr("0x7")](t.model[Jr("0x44")][Jr("0x29")]),void n[Jr("0x69")](a,{...d,commandReversedParams:[{value:l||null}]},[],"imageStylePreApply")):void(o[Jr("0x3b")](a)?n[Jr("0x69")](a,d,[],Jr("0x32")):n[Jr("0x65")](c,d,Jr("0x32")))}))}));for(const e of t[Jr("0x1c")].get("ImageStyleEditing").normalizedStyles)s[e[Jr("0x3c")]]=e.title[Jr("0x51")]();n[Jr("0x21")].registerCustomCallback(Jr("0x28"),Jr("0x6d"),Jr("0x54"),(()=>{})),n[Jr("0x21")][Jr("0x2b")]("formatBlock",Jr("0x32"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x49"),Jr("0x32"),Jr("0x54"),(()=>{})),n[Jr("0x21")].registerCustomCallback(Jr("0x28"),Jr("0x6d"),Jr("0x6a"),(()=>{})),n._suggestionFactory[Jr("0x2b")](Jr("0x28"),Jr("0x6d"),Jr("0x3"),((t,e)=>{n[Jr("0x21")][Jr("0x18")](Jr("0x28"),"","accept")(t,{commandName:e.commandName,commandParams:e[Jr("0x12")]})})),n[Jr("0x21")][Jr("0x2b")](Jr("0x28"),"imageStylePreApply",Jr("0x3f"),c)}const x=[{type:"formatBlock",subType:Jr("0x6d")},{type:"insertion",subType:Jr("0x41")},{type:Jr("0x28"),subType:Jr("0xd")},{type:Jr("0x15"),subType:Jr("0xd")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t.type==e&&t.subType==n)),r=x[Jr("0x4d")]((({type:t,subType:n})=>e.type==t&&e[Jr("0x1a")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x2d")](),a=e[Jr("0x2d")]();if((0==s||1==s)&&2==r&&i[Jr("0xa")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xc")](i,"insertion")[Jr("0x24")]((({suggestion:t,meta:e})=>e[Jr("0x57")]&&Jr("0xd")==t[Jr("0x1a")]));if(t[Jr("0x67")]>1&&a[Jr("0x1")][Jr("0x19")](i.start))return!0;if(1==t[Jr("0x67")]&&(i[Jr("0x45")].isEqual(a[Jr("0x1")])||i.end[Jr("0x19")](a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x72")](a[Jr("0x45")])){const t=i[Jr("0x1")][Jr("0x47")],e=a[Jr("0x45")][Jr("0x1b")];return o[Jr("0x3b")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x14")][Jr("0x44")].registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x1d")](t[Jr("0x14")].document[Jr("0x43")][Jr("0x56")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(Jr("0x4f")==s&&n[Jr("0x3d")](a)){if(Jr("0x28")==i&&("imageStylePreApply"==x||Jr("0x32")==x)){const t=n[Jr("0x2")](a);if(r[Jr("0x6f")]){const s=t[Jr("0x2d")]()[Jr("0x4b")]();if(o[Jr("0x3b")](s))continue;n[Jr("0x11")](t),e=!0}}if(Jr("0x15")==i&&Jr("0x41")==x&&!r[Jr("0x6f")]){const t=n[Jr("0x2")](a);t[Jr("0x48")]&&t[Jr("0x48")][Jr("0x2e")]&&(n[Jr("0x11")](t[Jr("0x48")]),e=!0)}}}return e})),t.plugins[Jr("0x31")](Jr("0x4a"))&&n[Jr("0x70")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")][Jr("0x29")]);r.getAttribute(Jr("0x68"))!=s[Jr("0x68")]&&t[Jr("0x14")][Jr("0x35")]((()=>{n.markBlockFormat(r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x1c")][Jr("0x31")](Jr("0x6b"))&&n[Jr("0x70")](Jr("0x61"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x14")][Jr("0x44")].selection);(r.hasAttribute("alt")?r[Jr("0x71")](Jr("0xb")):"")!=s.newValue&&t.model[Jr("0x35")]((()=>{n.markBlockFormat(r,{commandName:Jr("0x61"),commandParams:[s]})}))})),n._descriptionFactory.registerDescriptionCallback((t=>{if(x[Jr("0x5d")]((({type:e,subType:n})=>t[Jr("0x1e")]==e&&t.subType==n)))return t.previous?{}:void 0})),n[Jr("0x22")][Jr("0xf")]((t=>{if(Jr("0x15")==t[Jr("0x1e")]||"deletion"==t[Jr("0x1e")]){const e=t.getContainedElement();if(e&&e.is("element",Jr("0x25")))return{type:Jr("0x15")==t[Jr("0x1e")]?"addObject":"removeObject",element:e,quantity:1}}})),n[Jr("0x22")][Jr("0xf")]((t=>Jr("0x28")==t.type&&Jr("0xd")==t[Jr("0x1a")]?{type:Jr("0x3a"),content:Jr("0x36")}:Jr("0x28")==t.type&&Jr("0x59")==t.subType?{type:Jr("0x3a"),content:Jr("0x5f")}:void 0)),n[Jr("0x22")][Jr("0xf")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x52")];return n="side"===t?Yo(r,Jr("0x4e")):s[t]||t,{type:"format",content:Yo(r,"*Format:* %0",n)}}if(Jr("0x61")==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x6")];return t?{type:Jr("0x3a"),content:Yo(r,Jr("0x62"),'"'+t+'"')}:{type:Jr("0x3a"),content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x26")==e[Jr("0x60")]){const t=e[Jr("0x34")][0][Jr("0x68")];return t?{type:Jr("0x3a"),content:Yo(r,Jr("0x9"),t)}:{type:Jr("0x3a"),content:Yo(r,"*Reset image width*")}}}var n}))}}const Zr=["format","Users","*Format:* replace image URL","change","_suggestionFactory","registerCustomCallback","getContainedElement","locale","get","accept","subType","TrackChangesEditing","getAttribute","commandName","registerDescriptionCallback","handleSuggestionDescription","formatBlock","document","getSelectedElement","_descriptionFactory","replaceImageSource","handleReplaceImageCommand","getSuggestionCallback","markBlockFormat","getSuggestions","editor","plugins","src","discard","has","model"];var Yr,ti;Yr=Zr,ti=311,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x18")].plugins[ei("0x1c")]("ImageEditing"))return;const t=this[ei("0x18")][ei("0x19")][ei("0x7")](ei("0xa"));t.enableCommand(ei("0x13"),((t,e)=>this[ei("0x14")](t,e))),t[ei("0x3")][ei("0x4")]("formatBlock",ei("0x13"),"accept",t[ei("0x3")].getSuggestionCallback("formatBlock",null,ei("0x1b"))),t[ei("0x3")][ei("0x4")]("formatBlock",ei("0x13"),ei("0x1b"),t._suggestionFactory[ei("0x15")](ei("0xf"),null,ei("0x8"))),t[ei("0x12")][ei("0xd")]((t=>this[ei("0xe")](t)))}handleReplaceImageCommand(t,e){const n=this.editor[ei("0x19")][ei("0x7")](ei("0xa")),o=this[ei("0x18")].model[ei("0x10")].selection[ei("0x11")]();this.editor[ei("0x1d")][ei("0x2")]((()=>{let s=o[ei("0xb")](ei("0x1a"));const r=this[ei("0x18")][ei("0x19")].get(ei("0x0")).me;for(const t of n[ei("0x17")]({skipNotAttached:!0})){const e=t[ei("0x5")]();if(ei("0x13")===t[ei("0x9")]&&e===o){t.author!==r&&t[ei("0x1b")](),s=t.data.commandParams[0].source;break}}t(e),n[ei("0x16")](o,{commandName:"replaceImageSource",commandParams:[{source:s}]},[],ei("0x13"))}))}[ei("0xe")](t){const{data:e}=t;if(e&&ei("0x13")===e[ei("0xc")]){const t=ei("0x1");return{type:ei("0x1e"),content:Yo(this[ei("0x18")][ei("0x6")],t)}}}}const oi=["_trackChangesValueDuringImport","dataInsert","_handleImportedData","plugins","commands","TrackChangesEditing","listenTo","trackChanges","bind","get","afterInit","value","collaboration_features","_trackChangesExecuted","Users","_setSuggestionData","editor","importWord","execute","enableCommand","forEach"];var si,ri;si=oi,ri=434,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[ii("0x7")]=!1,this._trackChangesExecuted=!1}[ii("0x11")](){const t=this.editor,e=t[ii("0xb")][ii("0x10")](ii("0x3")),n=t[ii("0xb")][ii("0x10")](ii("0xe"));e&&(e.on(ii("0x4"),((t,[,e])=>{this[ii("0x7")]=n[ii("0x12")],e[ii("0x13")].track_changes=!this[ii("0x7")]}),{priority:"high"}),this.listenTo(e,ii("0x8"),this._handleImportedData[ii("0xf")](this)),this[ii("0xd")](e,"dataInsert",(()=>{this[ii("0x14")]&&(n[ii("0x4")](),this[ii("0x14")]=!1)}),{priority:"lowest"}),t[ii("0xa")][ii("0x10")]("TrackChangesEditing")[ii("0x5")](ii("0x3")))}[ii("0x9")](t,e){const{suggestions:n}=e,o=this.editor[ii("0xb")][ii("0x10")](ii("0xe")),s=o[ii("0x12")];this[ii("0x7")]!==s&&(o.execute(),this[ii("0x14")]=!0),n&&n[ii("0x6")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0xa")][ii("0x10")](ii("0x0")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x2")][ii("0xa")][ii("0x10")](ii("0xc"))[ii("0x1")](s)}))}}const ai=["editor","IndentBlock","enableCommand","plugins","getItems","_descriptionFactory","registerDescriptionCallback","TrackChangesEditing","markBlockFormat","get","schema","format","outdent","selection","commandName","indentBlock","checkAttribute","model","*Indent:* %0","IndentEditing","getSelectedBlocks","filter","outdentBlock","locale","indent","document","afterInit","has"];var ci,li;ci=ai,li=125,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0xd")](){const t=this[di("0xf")],e=t.plugins[di("0x18")](di("0x16"));t[di("0x12")][di("0xe")](di("0x6"))&&(e[di("0x11")](di("0xb")),e[di("0x11")](di("0x1b")));const n=t[di("0xa")];if(t[di("0x12")][di("0xe")](di("0x10"))){for(const n of[di("0x2"),di("0x9")])e[di("0x11")](n,(()=>{const o=Array.from(this[di("0xf")][di("0x4")][di("0xc")][di("0x0")][di("0x7")]())[di("0x8")]((t=>this[di("0xf")].model[di("0x19")][di("0x3")](t,"blockIndent")));t[di("0x4")].change((()=>{for(const t of o)e[di("0x17")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x2")})}))}));e[di("0x14")][di("0x15")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x1")]&&di("0x9")!=o.commandName)return;const s=t[di("0x13")]()[0],r=e._descriptionFactory.getItemLabel(s);return di("0x2")==o[di("0x1")]?{type:"format",content:Yo(n,di("0x5"),r)}:di("0x9")==o[di("0x1")]?{type:di("0x1a"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["requires","enableCommand","editor","input","plugins","TrackChangesEditing"];gi=fi,mi=206,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("0x4")](){return[zs.Input]}init(){this[hi("0x0")][hi("0x2")].get(hi("0x3"))[hi("0x5")](hi("0x1"))}}const bi=["model","format","get","editor","_descriptionFactory","enableCommand","getFirstRange","linkHref","document","*Remove link*","selection","LinkEditing","change","isCollapsed","unlink","markInlineFormat","getFirstPosition","getAttribute","hasAttribute","registerDescriptionCallback","link","plugins","has","commandParams","commandName"];var Ei,_i;Ei=bi,_i=284,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{afterInit(){const t=this[Ti("0x13")];if(!t[Ti("0xc")][Ti("0xd")](Ti("0x2")))return;const e=t[Ti("0xc")][Ti("0x12")]("TrackChangesEditing");e[Ti("0x15")](Ti("0xb"),((n,o)=>{const s=t[Ti("0x10")][Ti("0x18")][Ti("0x1")];let r=[];if(s[Ti("0x4")]){if(!s[Ti("0x9")](Ti("0x17")))return void n(o);{const e=(0,zs.findAttributeRange)(s[Ti("0x7")](),"linkHref",s[Ti("0x8")]("linkHref"),t[Ti("0x10")]);r=[e]}}else r=Array.from(s.getRanges());t.model[Ti("0x3")]((()=>{for(const t of r)e[Ti("0x6")](t,{commandName:Ti("0xb"),commandParams:[o]})}))})),e[Ti("0x15")](Ti("0x5"),(()=>{const n=this.editor[Ti("0x10")],o=n.document.selection;n[Ti("0x3")]((()=>{let n=[];n=o[Ti("0x4")]?[(0,zs.findAttributeRange)(o[Ti("0x7")](),Ti("0x17"),o[Ti("0x8")]("linkHref"),t[Ti("0x10")])]:ms(Ti("0x17"),o[Ti("0x16")](),t.model);for(const t of n)e.markInlineFormat(t,{commandName:Ti("0x5"),commandParams:[]})}))})),e[Ti("0x14")][Ti("0xa")]((e=>{const{data:n}=e,o=t.locale;if(n){if(Ti("0xb")==n[Ti("0xf")]){const t=n[Ti("0xe")][0];return{type:Ti("0x11"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0x5")==n[Ti("0xf")]?{type:Ti("0x11"),content:Yo(o,Ti("0x0"))}:void 0}}))}}const yi=["ELEMENT_TODO_LIST","parent","filter","selection","end","*Indent:* %0","numberedList","indentList","findIndex","get","listItem","commandName","afterInit","from","numbered","todoListChecked","element","nextSibling","document","*Change to:* %0","ELEMENT_LIST_ITEM","previousSibling","value","blockName","add","ListEditing","listIndent","schema","ELEMENT_NUMBERED_LIST","TrackChangesEditing","push","plugins","name","slice","createPositionAt","isObject","*Check item*","bulleted","change","has","model","checkTodoList","registerElementLabel","listType","length","bulletedList","_descriptionFactory","createRange","execute","ELEMENT_BULLETED_LIST","_selectedElements","commands","checkChild","getAttribute","*Uncheck item*","before","todoList","paragraph","markBlockFormat","getSelectedBlocks","registerDescriptionCallback","enableCommand","todo","outdentList","format"];var ki,Ai;ki=yi,Ai=469,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3f")](){const t=this.editor,e=t.locale;if(!t[vi("0x11")][vi("0x19")](vi("0xb")))return;const n=t[vi("0x11")][vi("0x3c")](vi("0xf")),o=t.plugins.has("TodoListEditing");function s(e){return()=>{const o=t[vi("0x1a")][vi("0x4")][vi("0x36")],s=t.commands[vi("0x3c")](e);if(s.value)return void t[vi("0x22")](vi("0x2b"),{});const r=e[vi("0x13")](0,-4),i=function(t,e,n){let o=Array[vi("0x40")](t)[vi("0x35")]((t=>{return e=t,(o=n)[vi("0x26")](e[vi("0x34")],vi("0x3d"))&&!o[vi("0x15")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x2"),vi("0x3d"))||t[vi("0x27")](vi("0x1d"))!=e));const s=new Set;for(const t of o)t.is("element",vi("0x3d"))?s[vi("0xa")](Si(t)):s.add(t);return Array[vi("0x40")](s)}(o[vi("0x2d")](),r,t.model[vi("0xd")]);t[vi("0x1a")][vi("0x18")]((()=>{for(const t of i)n[vi("0x2c")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x9")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x3b")]((t=>vi("0x3d")!=t.name));return n>-1&&(e=e[vi("0x13")](0,n)),e}(t.model.document[vi("0x36")][vi("0x2d")]()),s=t[vi("0x1a")][vi("0x21")](t[vi("0x1a")].createPositionAt(o[0],vi("0x29")),t.model[vi("0x14")](o[o[vi("0x1e")]-1],vi("0x37")));t[vi("0x1a")][vi("0x18")]((()=>{n[vi("0x2c")](s,{commandName:e,commandParams:[],formatGroupId:vi("0xc")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3")];for(;t&&t[vi("0x27")](vi("0xc"))>n[vi("0x27")](vi("0xc"));)e.add(t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[vi("0x2f")](vi("0x39"),s("numberedList")),n[vi("0x2f")]("bulletedList",s(vi("0x1f"))),o&&n.enableCommand(vi("0x2a"),s("todoList")),n[vi("0x2f")](vi("0x3a"),r(vi("0x3a"))),n[vi("0x2f")](vi("0x31"),r(vi("0x31"))),o&&n.enableCommand(vi("0x1b"),(()=>{const e=t[vi("0x25")][vi("0x3c")]("checkTodoList"),o=Array[vi("0x40")](e[vi("0x24")]);o[vi("0x35")]((t=>t[vi("0x27")](vi("0x1"))!=e.value)),t[vi("0x1a")][vi("0x18")]((()=>{for(const t of o)n[vi("0x2c")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[vi("0x8")]}]})}))})),n[vi("0x20")][vi("0x1c")]("listItem",(t=>Yo(e,vi("0x6"),t))),n[vi("0x20")][vi("0x2e")]((t=>{const{data:n}=t;if(n){if(vi("0x39")==n[vi("0x3e")]||vi("0x1f")==n[vi("0x3e")]||vi("0x2a")==n[vi("0x3e")])switch(n[vi("0x3e")].replace("List","")){case vi("0x17"):return o(Yo(e,vi("0x23")));case vi("0x0"):return o(Yo(e,vi("0xe")));case vi("0x30"):return o(Yo(e,vi("0x33")))}if(vi("0x3a")==n[vi("0x3e")])return{type:vi("0x32"),content:Yo(e,vi("0x38"),Yo(e,vi("0x6")))};if("outdentList"==n[vi("0x3e")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x6")))};if("checkTodoList"==n.commandName)return n.commandParams[0].forceValue?{type:vi("0x32"),content:Yo(e,vi("0x16"))}:{type:vi("0x32"),content:Yo(e,vi("0x28"))}}function o(t){return{type:vi("0x32"),content:Yo(e,vi("0x5"),t)}}}))}}function Si(t){const e=t.getAttribute(vi("0xc"));if(0==e)return t;let n=t;for(;t[vi("0x7")]&&t[vi("0x7")].is("element",vi("0x3d"));){const o=t[vi("0x7")][vi("0x27")](vi("0xc"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x7")]}return n}function Ii(t){const e=[];if(t.is(vi("0x2"),vi("0x3d"))&&t[vi("0x27")]("listIndent")>0){let n=t[vi("0x3")];for(;n&&vi("0x3d")==n[vi("0x12")]&&n.getAttribute(vi("0xc"))==t.getAttribute(vi("0xc"));)e[vi("0x10")](n),n=n[vi("0x3")]}return e}const Li=["*Change to:* %0","_getSuggestionBlocksForListStyle","ListPropertiesEditing","map","document","createRange","element","has","handleDescriptions","createPositionAt","*Format:* set start index to %0","handleListStartCommand","numbered","editor","type","handleListStyleCommand","length","toUpperCase","getSelectedBlocks","reversed","getSiblingNodes","replace","commandName","listStart","markMultiRangeBlockFormat","get","commandParams","getFirstPosition","_getTranslationKeyForListStyle","parent","config","before","listReversed","forward","selection","listStyle","filter","handleListReversedCommand","change","format","listItem","styles","locale","getAttribute","enableCommand","getListTypeFromListStyleType","model","listType","push","_getSuggestionBlocks","plugins","ListUtils","TrackChangesEditing","ELEMENT_","bind","startIndex","flat","from","_descriptionFactory"];var Ni,wi;Ni=Li,wi=232,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{afterInit(){if(!this[Mi("0x11")].plugins[Mi("0xb")](Mi("0x6")))return;const t=this[Mi("0x11")][Mi("0x22")][Mi("0x1d")]("list.properties"),e=this[Mi("0x11")].plugins[Mi("0x1d")](Mi("0x38"));t[Mi("0x2d")]&&e[Mi("0x30")](Mi("0x27"),this[Mi("0x13")].bind(this)),t.reversed&&e[Mi("0x30")](Mi("0x24"),this.handleListReversedCommand[Mi("0x3a")](this)),t[Mi("0x0")]&&e.enableCommand(Mi("0x1b"),this.handleListStartCommand[Mi("0x3a")](this)),e[Mi("0x3")].registerDescriptionCallback(this.handleDescriptions[Mi("0x3a")](this))}[Mi("0x13")](t,e={}){const n=this[Mi("0x11")][Mi("0x36")].get("TrackChangesEditing"),o=this[Mi("0x5")]();this[Mi("0x11")][Mi("0x32")][Mi("0x2a")]((()=>{n[Mi("0x1c")](o,{commandName:"listStyle",commandParams:[{type:e[Mi("0x12")]}],formatGroupId:Mi("0x27")})}))}[Mi("0x29")](t,e={}){const n=this[Mi("0x11")][Mi("0x36")][Mi("0x1d")](Mi("0x38")),o=this[Mi("0x35")]((t=>t.is(Mi("0xa"),Mi("0x2c"))&&Mi("0x10")===t[Mi("0x2f")](Mi("0x33"))));if(o[Mi("0x14")]<1)return;const s=o.map((t=>this[Mi("0x11")].model[Mi("0x9")](this[Mi("0x11")][Mi("0x32")][Mi("0xd")](t,Mi("0x23")),this[Mi("0x11")][Mi("0x32")].createPositionAt(t,0))));this[Mi("0x11")][Mi("0x32")][Mi("0x2a")]((()=>{n[Mi("0x1c")](s,{commandName:Mi("0x24"),commandParams:[{reversed:e.reversed}],formatGroupId:Mi("0x24")})}))}[Mi("0xf")](t,e={}){const n=this[Mi("0x11")].plugins[Mi("0x1d")](Mi("0x38")),o=this[Mi("0x35")]((t=>t.is(Mi("0xa"),"listItem")&&Mi("0x10")===t[Mi("0x2f")](Mi("0x33"))));if(o[Mi("0x14")]<1)return;const s=o[Mi("0x7")]((t=>this[Mi("0x11")][Mi("0x32")][Mi("0x9")](this[Mi("0x11")].model[Mi("0xd")](t,Mi("0x23")),this[Mi("0x11")][Mi("0x32")][Mi("0xd")](t,0))));this[Mi("0x11")][Mi("0x32")].change((()=>{n.markMultiRangeBlockFormat(s,{commandName:Mi("0x1b"),commandParams:[{startIndex:e[Mi("0x0")]}],formatGroupId:"listStart"})}))}[Mi("0xc")](t){const e=this[Mi("0x11")][Mi("0x2e")],{data:n}=t;if(!n)return;let o,s;switch(n[Mi("0x1a")]){case"listStyle":o=Mi("0x4"),s={type:Mi("0x2b"),content:Yo(e,o,Yo(e,this[Mi("0x20")](n[Mi("0x1e")][0].type)))};break;case Mi("0x24"):o=n.commandParams[0][Mi("0x17")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:Mi("0x2b"),content:Yo(e,o)};break;case Mi("0x1b"):o=Mi("0xe"),s={type:Mi("0x2b"),content:Yo(e,o,n[Mi("0x1e")][0].startIndex)}}return s}[Mi("0x5")](){var t,e,n,o;const s=this[Mi("0x11")][Mi("0x36")].get(Mi("0x37"));let r=Array[Mi("0x2")](this[Mi("0x11")][Mi("0x32")][Mi("0x8")][Mi("0x26")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Mi("0xa"),"listItem"))&&r.unshift(...s.getSiblingNodes(this.editor[Mi("0x32")][Mi("0x8")].selection[Mi("0x1f")](),"backward")),(null===(e=r[r[Mi("0x14")]-1])||void 0===e?void 0:e.is(Mi("0xa"),Mi("0x2c")))&&r[Mi("0x34")](...s[Mi("0x18")](this[Mi("0x11")].model[Mi("0x8")][Mi("0x26")].getLastPosition(),Mi("0x25"))),r=[...new Set(r)],(null===(o=null===(n=this[Mi("0x11")][Mi("0x32")][Mi("0x8")][Mi("0x26")][Mi("0x1f")]())||void 0===n?void 0:n[Mi("0x21")])||void 0===o?void 0:o.is("element",Mi("0x2c")))&&(r=r[Mi("0x28")]((t=>t.is("element","listItem")))),r}[Mi("0x35")](t){const e=this.editor[Mi("0x36")][Mi("0x1d")]("ListUtils");let n=Array[Mi("0x2")](this[Mi("0x11")][Mi("0x32")][Mi("0x8")].selection[Mi("0x16")]()).filter(t)[Mi("0x7")]((t=>{const n=this.editor.model[Mi("0xd")](t,0);return[...e.getSiblingNodes(n,"backward"),...e[Mi("0x18")](n,Mi("0x25"))]}))[Mi("0x1")]();return n=[...new Set(n)],n}[Mi("0x20")](t){return Mi("0x39")+this[Mi("0x11")][Mi("0x36")].get(Mi("0x37"))[Mi("0x31")](t).toUpperCase()+"_LIST_"+t[Mi("0x15")]()[Mi("0x19")](/-/g,"_")}}const Fi=["for","data","high","ELEMENT_MEDIA","has","showSuggestionHighlights","div","createEmptyElement","conversion","enableCommand","TrackChangesEditing","downcastDispatcher","editor","attribute:url:media","dataDowncast","media","plugins","options","elementToElement","mediaEmbed","afterInit","MediaEmbedEditing","stop"];var Pi,Di;Pi=Fi,Di=185,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x13")](){const t=this[Bi("0xb")];if(!t.plugins[Bi("0x3")](Bi("0x14")))return;const e=t[Bi("0xf")].get(Bi("0x9")),n=t.locale;e[Bi("0x8")](Bi("0x12")),e._descriptionFactory.registerElementLabel(Bi("0xe"),(t=>Yo(n,Bi("0x2"),t))),t[Bi("0x7")][Bi("0x16")](Bi("0xd"))[Bi("0x11")]({model:Bi("0xe"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x4")])return e[Bi("0x6")](Bi("0x5"))},converterPriority:Bi("0x1")}),t[Bi("0x0")][Bi("0xa")].on(Bi("0xc"),((t,e,n)=>{n[Bi("0x10")].showSuggestionHighlights&&t[Bi("0x15")]()}),{priority:Bi("0x1")})}}const Ui=["mention","plugins","TrackChangesEditing","MentionEditing","has","editor"];var Gi,Hi;Gi=Ui,Hi=142,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Vi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{afterInit(){const t=this[Vi("0x1")];t.plugins[Vi("0x0")](Vi("0x5"))&&t[Vi("0x3")].get(Vi("0x4")).enableCommand(Vi("0x2"))}}const zi=["locale","_descriptionFactory","editor","PageBreakEditing","afterInit","has","ELEMENT_PAGE_BREAK","pageBreak","get","plugins"];var Ki,qi;Ki=zi,qi=101,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return zi[t-=0]};class $i extends t.Plugin{[Xi("0x3")](){const t=this[Xi("0x1")];if(!t[Xi("0x8")][Xi("0x4")](Xi("0x2")))return;t.plugins[Xi("0x7")]("TrackChangesEditing").enableCommand(Xi("0x6"));const e=t[Xi("0x8")][Xi("0x7")]("TrackChangesEditing"),n=t[Xi("0x9")];e[Xi("0x0")].registerElementLabel(Xi("0x6"),(t=>Yo(n,Xi("0x5"),t)))}}const Ji=["includes","addMarker:suggestion:insertion","downcastDispatcher","data","getSelectedBlocks","from","_descriptionFactory","activeMarkers","mapper","start","isLimit","filter","getItemLabel","commandName","model","highest","registerElementLabel","markerRange","isObject","has","markBlockFormat","change","plugins","$text","isBlock","end","Paragraph","insert","consumable","checkChild","parent","insertion","writer","isTouching","addClass","editing","selection","paragraph","afterInit","createUIElement","toViewPosition","name","ck-suggestion-marker--active","ELEMENT_PARAGRAPH","get","markerName","locale","TrackChangesEditing","schema","registerDescriptionCallback","format","enableCommand","insertParagraph","blockName","*Change to:* %0","*Insert:* %0","document","bindElementToMarker","type","editor","nodeAfter","showSuggestionHighlights","span"];var Qi,Zi;Qi=Ji,Zi=224,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x3")](){const t=this[Yi("0x18")];if(!t[Yi("0x32")][Yi("0x2f")](Yi("0x36")))return;const e=t[Yi("0xb")],n=t.plugins.get("TrackChangesEditing");n[Yi("0x22")][Yi("0x2c")](Yi("0x2"),(t=>Yo(e,Yi("0x8"),t))),n[Yi("0x10")](Yi("0x2"),((e,o={})=>{const s=t[Yi("0x2a")][Yi("0x15")],r=o[Yi("0x1")]||s[Yi("0x1")],i=Array[Yi("0x21")](r[Yi("0x20")]())[Yi("0x27")]((t=>{return e=t,(n=this.editor[Yi("0x2a")][Yi("0xd")])[Yi("0x39")](e[Yi("0x3a")],Yi("0x2"))&&!n[Yi("0x2e")](e)&&Yi("0x2")!=e[Yi("0x6")];var e,n}));t.model[Yi("0x31")]((()=>{for(const t of i)n[Yi("0x30")](t,{commandName:Yi("0x2"),commandParams:[],formatGroupId:Yi("0x12")},fs(t))}))})),n[Yi("0x22")][Yi("0xe")]((t=>{const{data:n}=t;if(n&&"paragraph"==n[Yi("0x29")])return{type:Yi("0xf"),content:Yo(e,Yi("0x13"),Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x10")](Yi("0x11")),t[Yi("0x0")].downcastDispatcher.on(Yi("0x1d"),ex(t),{priority:Yi("0x2b")}),t[Yi("0x1f")][Yi("0x1e")].on(Yi("0x1d"),((e,n,o)=>{o.options[Yi("0x1a")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[Yi("0x22")];o.registerDescriptionCallback((n=>{if(Yi("0x3b")!==n[Yi("0x17")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x3d")](r)||!s[Yi("0x19")])return;const i=t[Yi("0x2a")][Yi("0xd")],x=s[Yi("0x19")];return i[Yi("0x34")](x)&&!i[Yi("0x26")](x)&&i[Yi("0x39")](x,Yi("0x33"))?{type:Yi("0x3b"),content:Yo(e,Yi("0x14"),o[Yi("0x28")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x32")][Yi("0x9")](Yi("0xc")),i=o.markerRange[Yi("0x25")],x=o[Yi("0x2d")][Yi("0x35")],a=t[Yi("0x2a")][Yi("0xd")];if(!i[Yi("0x3d")](x)||!i[Yi("0x19")])return;const c=i[Yi("0x19")];if(a[Yi("0x34")](c)&&!a.isLimit(c)&&a[Yi("0x39")](c,Yi("0x33"))){if(!s[Yi("0x38")].consume(o[Yi("0x2d")],n.name))return;const t=s[Yi("0x3c")][Yi("0x4")](Yi("0x1b"),{class:"ck-suggestion-marker-split"}),i=s[Yi("0x24")][Yi("0x5")](x);e&&r[Yi("0x23")][Yi("0x1c")](o[Yi("0xa")])&&s[Yi("0x3c")][Yi("0x3e")](Yi("0x7"),t),s[Yi("0x3c")][Yi("0x37")](i,t),s.mapper[Yi("0x16")](t,o[Yi("0xa")])}}}const nx=["getAttributeProperties","schema","TrackChangesEditing","get","locale","from","commandName","createRangeOn","enableCommand","getRanges","has","document","plugins","getAttributes","change","selection","_descriptionFactory","format","removeFormat","markInlineFormat","editor","*Remove all formatting*","isCollapsed","registerDescriptionCallback","model"];var ox,sx;ox=nx,sx=320,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[rx("0x0")];if(!t.plugins[rx("0xf")]("RemoveFormatEditing"))return;const e=t[rx("0x11")][rx("0x8")](rx("0x7"));e[rx("0xd")](rx("0x17"),(n=>{const o=t[rx("0x4")][rx("0x10")][rx("0x14")];o[rx("0x2")]?n():t[rx("0x4")][rx("0x13")]((()=>{const n=Array[rx("0xa")](o[rx("0xe")]());for(const o of n)for(const n of o.getItems())xx(n,t[rx("0x4")][rx("0x6")])&&e[rx("0x18")](t.model[rx("0xc")](n),{commandName:rx("0x17"),commandParams:[]})}))})),e[rx("0x15")][rx("0x3")]((e=>{const{data:n}=e;if(n&&rx("0x17")==n[rx("0xb")])return{type:rx("0x16"),content:Yo(t[rx("0x9")],rx("0x1"))}}))}}function xx(t,e){for(const[n]of t[rx("0x12")]()){const t=e[rx("0x5")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["TrackChangesEditing","discardSuggestion","goToNextRestrictedEditingException","plugins","afterInit","acceptSelectedSuggestions","enableCommand","discardSelectedSuggestions","acceptAllSuggestions","trackChanges","editor","has","discardAllSuggestions","get","acceptSuggestion","RestrictedEditingModeEditing"];var cx,lx;cx=ax,lx=217,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xb")](){const t=this[dx("0x1")];if(!t[dx("0xa")][dx("0x2")](dx("0x6")))return;const e=t.plugins[dx("0x4")](dx("0x7"));e[dx("0xd")]("goToPreviousRestrictedEditingException"),e.enableCommand(dx("0x9"));const n=t[dx("0xa")][dx("0x4")](dx("0x6"));n[dx("0xd")](dx("0x0")),n[dx("0xd")](dx("0x5")),n[dx("0xd")](dx("0x8")),n[dx("0xd")](dx("0xf")),n[dx("0xd")](dx("0x3")),n.enableCommand(dx("0xc")),n[dx("0xd")](dx("0xe"))}}const gx=["addMarker:suggestion:insertion","consumable","createUIElement","span","addMarker:suggestion:deletion","showSuggestionHighlights","name","requires","ELEMENT_LINE_BREAK","split","deletion","mapper","softBreak","TrackChangesEditing","bindElementToMarker","markerRange","addMarker:suggestion","test","insert","activeMarkers","init","downcastDispatcher","get","markerName","element","editing","plugins","registerElementLabel","merge","locale","editor","writer","ck-suggestion-marker--active","addClass","shiftEnter","toViewPosition","enableCommand","high","getItems","ck-suggestion-marker-"];var mx,fx;mx=gx,fx=296,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("0x1f")](){return[nr.ShiftEnter]}[hx("0x4")](){const t=this[hx("0xe")],e=t.plugins[hx("0x6")](hx("0x25"));e[hx("0x14")](hx("0x12")),t[hx("0x9")].downcastDispatcher.on(hx("0x18"),bx(t),{priority:hx("0x15")}),t[hx("0x9")].downcastDispatcher.on(hx("0x1c"),bx(t),{priority:hx("0x15")}),t.data[hx("0x5")].on(hx("0x0"),((e,n,o)=>{o.options[hx("0x1d")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0xb")](hx("0x24"),(e=>Yo(t[hx("0xd")],hx("0x20"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xa")][hx("0x6")](hx("0x25"));if(!s[hx("0x19")][hx("0x1")](o[hx("0x27")],n[hx("0x1e")]))return;const i=t.model;for(const t of o[hx("0x27")][hx("0x16")]()){if(!t.is(hx("0x8"),"softBreak"))continue;const n=hx("0x22")==o.markerName.split(":")[1]?hx("0xc"):hx("0x21"),x=s[hx("0xf")][hx("0x1a")](hx("0x1b"),{class:hx("0x17")+n}),a=s[hx("0x23")][hx("0x13")](i.createPositionBefore(t));e&&r[hx("0x3")].includes(o[hx("0x7")])&&s[hx("0xf")][hx("0x11")](hx("0x10"),x),s.writer[hx("0x2")](a,x),s.mapper[hx("0x26")](x,o[hx("0x7")])}}}const Ex=["change","locale","commandParams","format","value","StandardEditingModeEditing","editor","forceValue","registerDescriptionCallback","commands","getRanges","isCollapsed","get","plugins","TrackChangesEditing","selection","_descriptionFactory","afterInit","from","enableCommand"];var _x,Tx;_x=Ex,Tx=456,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x1")](){const t=this[Cx("0xa")],e=t.model,n=t[Cx("0x5")];if(!t.plugins.has(Cx("0x9")))return;const o=t[Cx("0x11")][Cx("0x10")](Cx("0x12")),s="restrictedEditingException",r=t[Cx("0xd")].get(s);o[Cx("0x3")](s,((t,n={})=>{const i=e.document[Cx("0x13")];if(i[Cx("0xf")])return void t(n);const x=void 0!==n.forceValue?n[Cx("0xb")]:!r[Cx("0x8")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x2")](i[Cx("0xe")]());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("0x0")][Cx("0xc")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[Cx("0x6")][0][Cx("0xb")]?{type:Cx("0x7"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x7"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["style","getDefinitionsForView","add","normalizeConfig","every","enabledStyles","toLowerCase","classes","has","isCollapsed","markInlineFormat","enableCommand","name","*Remove format:* %0","commands","getAttribute","afterInit","createRangeOn","from","Style","_descriptionFactory","inline","get","plugins","push","_getRangesWithClasses","getRanges","DataSchema","locale","change","styleName","commandName","find","isBlock","commandParams","TrackChangesEditing","model","markBlockFormat","format","getAncestors","getItems","value","_getStyleDefinition","document","includes","modelElements","getSelectedBlocks"];var Ax,vx;Ax=kx,vx=250,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x1")](){const t=this.editor;if(!t[Rx("0x8")][Rx("0x28")](Rx("0x4")))return;const e=t[Rx("0x2e")].get(Rx("0x20")),n=t[Rx("0x8")][Rx("0x7")](Rx("0x14")),o=t[Rx("0xd")],s=t[Rx("0x8")][Rx("0x7")](Rx("0xc")),r=t[Rx("0x8")].get("StyleUtils")[Rx("0x23")](s,t.config[Rx("0x7")]("style.definitions"));n[Rx("0x2b")]("style",((o,{styleName:i})=>{const x=t[Rx("0x15")][Rx("0x1c")].selection,a=this[Rx("0x1b")](i,r);if(!a)return;if(!e[Rx("0x25")][Rx("0x1d")](i))return;if(x[Rx("0x29")]&&!a[Rx("0x12")])return void o({styleName:i});const c=!e[Rx("0x1a")].includes(a[Rx("0x2c")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x18")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x1d")](o[Rx("0x2c")])){n[Rx("0x22")](o);break}}return n}(x[Rx("0x1f")](),a[Rx("0x1e")]);t[Rx("0x15")][Rx("0xe")]((()=>{for(const t of e)n[Rx("0x16")](t,{commandName:Rx("0x20"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:"style:"+i})}))}else{let e=Array[Rx("0x3")](x[Rx("0xb")]());if(!c){const n=Array[Rx("0x3")](s[Rx("0x21")](a.element,!1))[0][Rx("0x15")],o=[];for(const s of e){const e=this[Rx("0xa")](t[Rx("0x15")],s,a[Rx("0x27")],n);o[Rx("0x9")](...e)}e=o}t.model[Rx("0xe")]((()=>{for(const t of e)n[Rx("0x2a")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x5")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x10")])return e[Rx("0x13")][0].forceValue?{type:Rx("0x17"),content:Yo(o,"*Format:* %0",e[Rx("0x13")][0][Rx("0xf")][Rx("0x26")]())}:{type:Rx("0x17"),content:Yo(o,Rx("0x2d"),e.commandParams[0][Rx("0xf")][Rx("0x26")]())}}))}_getStyleDefinition(t,e){let n=e.block[Rx("0x11")]((e=>e[Rx("0x2c")]===t));return n||(n=e[Rx("0x6")][Rx("0x11")]((e=>e.name===t))),n}[Rx("0xa")](t,e,n,o){const s=[];for(const r of e[Rx("0x19")]()){const e=r[Rx("0x0")](o);e&&n[Rx("0x24")]((t=>e.classes[Rx("0x1d")](t)))&&s[Rx("0x9")](t[Rx("0x2")](r))}return s}}const Ix=["getSelectionAffectedTableCells","filter","enqueueChange","commands","$graveyard","change","plugins","cell","isIntersectingWithRange","options","MIN_SAFE_INTEGER","_setupColumnsRowsFixing","order","downcastDispatcher","deletion","ELEMENT_TABLE_COLUMN","tablePaste","mapper","showSuggestionHighlights","data","highest","addMarker:suggestion","getRanges","minColumn","registerElementLabel","MAX_SAFE_INTEGER","join","end","selectTableRow","span","model","detach","first","getColumnIndexes","rootName","getFirstRange","position","ELEMENT_TABLE_ROW_WITH_TEXT","isTouching","locale","table","enableCommand","setSelection","insertTableColumnLeft","oldRange","removeTableRow","nodeAfter","insertion","fromRange","every","TrackChangesEditing","isArray","_suggestionFactory","forceValue","registerCustomCallback","createRangeIn","has","getChangedMarkers","rowspan","findAncestor","editor","registerDescriptionCallback","tableRow","_tableSuggestions","*Remove:* %0","batch","_getCoordsForCells","accept","afterInit","type","getChildren","createRangeOn","tableColumn","max","discard","change:data","createTableWalker","differ","TableEditing","name","ELEMENT_TABLE","selectTableColumn","document","start","tableCell","execute","root","push","$textProxy","insertTableColumnRight","getAttribute","getContainedElement","getItems","hasAttribute","minRow","getRowIndexes","ELEMENT_TABLE_ROW","element","toLowerCase","createPositionAt","min","_splitMarkerName","from","addRange","substr","isInContent","ELEMENT_TABLE_WITH_TEXT","TableUtils","_acceptFormatSuggestionCallbackFactory","colspan","markMultiRangeInsertion","_tablePostFixingSubtypes","low","selection","item","addClass","insertTable","suggestion","insertTableRowAbove","isEqual","values","startsWith","removeTableColumn","some","*Insert:* %0","_descriptionFactory","map","getCellLocation","_getSuggestionCoords","markMultiRangeDeletion","last","ELEMENT_TABLE_COLUMN_WITH_TEXT","removeClass","getChanges","left","classes","subType","refresh","length","get"];var Lx,Nx;Lx=Ix,Nx=214,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x25")]=[wx("0x80"),wx("0x8a")],this[wx("0x81")]=new Set}[wx("0x86")](){const t=this[wx("0x7e")],e=t[wx("0x60")][wx("0x8")].selection;if(!t[wx("0x48")][wx("0x7a")](wx("0x4")))return;const n=t[wx("0x69")],o=t.plugins.get(wx("0x74")),s=t[wx("0x48")][wx("0x41")](wx("0x21"));o[wx("0x33")][wx("0x5a")](wx("0x6a"),(t=>Yo(n,wx("0x6"),t))),this[wx("0x4d")](),o.enableCommand(wx("0x2a")),o[wx("0x6b")](wx("0x5e")),o[wx("0x6b")](wx("0x7"));for(const n of[wx("0x2c"),"insertTableRowBelow"]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[wx("0x60")].change((t=>{n();const i="above"===r[wx("0x4e")],x=s[wx("0x42")](e),a=s[wx("0x15")](x),c=i?a[wx("0x62")]-1:a[wx("0x38")]+1,l=x[0][wx("0x7d")](wx("0x6a")),d=s[wx("0x2")](l,{startRow:c,endRow:c}),u=Array.from(d)[wx("0x34")]((e=>t[wx("0x89")](e[wx("0x49")])));o[wx("0x24")](u,"tableRow")}))}))}for(const n of[wx("0x6d"),wx("0xf")]){const r=t.commands.get(n);o.enableCommand(n,(n=>{t[wx("0x60")][wx("0x47")]((t=>{n();const i=wx("0x3c")===r[wx("0x4e")],x=s.getSelectionAffectedTableCells(e),a=s[wx("0x63")](x),c=i?a[wx("0x62")]-1:a.last+1,l=x[0][wx("0x7d")]("table"),d=s[wx("0x2")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x1c")](d)[wx("0x34")]((e=>t[wx("0x89")](e[wx("0x49")])));o[wx("0x24")](u,wx("0x8a"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const r=n.substr(11),i=r[wx("0x18")](),x=i[wx("0x1e")](0,3)+"span",a=wx("0x6a")+r,c=wx("0x1a")+r,l="max"+r;o[wx("0x6b")](n,(()=>{t[wx("0x60")][wx("0x47")]((t=>{const r=s[wx("0x42")](e),d=r[0][wx("0x7d")](wx("0x6a"));let u;if("removeTableRow"==n){const t=s[wx("0x15")](r);u={startRow:t[wx("0x62")],endRow:t[wx("0x38")],includeAllSlots:!0}}else{const t=s[wx("0x63")](r);u={startColumn:t.first,endColumn:t[wx("0x38")],includeAllSlots:!0}}const g=s.createTableWalker(d,u),m=Array[wx("0x1c")](g)[wx("0x34")]((({cell:t})=>t)),f=Ox(m[wx("0x43")]((t=>t[wx("0x13")](x)))),h=Ox(m[wx("0x43")]((t=>!t[wx("0x13")](x))))[wx("0x34")]((e=>t[wx("0x89")](e))),p=o[wx("0x37")](h,a);if(p&&(wx("0x80")==p[wx("0x3e")]||wx("0x8a")==p[wx("0x3e")])){const e=this[wx("0x36")](p);for(const n of f){const o=t[wx("0x89")](n),r=s[wx("0x35")](n),a=n[wx("0x10")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[wx("0x1d")](o)}}}))}))}function r(n){const o=Array[wx("0x1c")](e[wx("0x58")]()).map((t=>i.LiveRange[wx("0x72")](t)));t[wx("0x60")][wx("0x47")]((e=>{const s=e[wx("0x83")];n=n.filter((t=>wx("0x46")!=t[wx("0xc")][wx("0x64")])),e.setSelection(n),t[wx("0x45")][wx("0x41")](wx("0x6f")).refresh(),t[wx("0xb")](wx("0x6f"),{forceDefaultExecution:!0}),t[wx("0x60")][wx("0x44")]((()=>{t[wx("0x60")][wx("0x44")](s,(t=>{const e=o[wx("0x43")]((t=>wx("0x46")!=t[wx("0xc")][wx("0x64")]));e[wx("0x40")]>0&&t[wx("0x6c")](e);for(const t of o)t[wx("0x61")]()}))}))}))}function a(n){t[wx("0x60")][wx("0x47")]((o=>{const s=Array[wx("0x1c")](e[wx("0x58")]())[wx("0x34")]((t=>i.LiveRange[wx("0x72")](t))),r=[];for(const t of n)for(const e of t[wx("0x12")]({shallow:!0}))r[wx("0xd")](e);for(const e of r)"$graveyard"!=e[wx("0xc")].rootName&&(o.setSelection(o[wx("0x19")](e,0)),t[wx("0x45")][wx("0x41")](wx("0x30"))[wx("0x3f")](),t.execute(wx("0x30"),{forceDefaultExecution:!0}));const x=s[wx("0x43")]((t=>wx("0x46")!=t.root.rootName));x[wx("0x40")]>0&&o[wx("0x6c")](x);for(const t of s)t[wx("0x61")]()}))}function c(t,e){return e[wx("0x73")]((e=>t[wx("0x31")]((t=>t.end[wx("0x2d")](e.start)||e[wx("0x5d")][wx("0x2d")](t[wx("0x9")])))))}function l(t,e){return t[wx("0x31")]((t=>e[wx("0x31")]((e=>t[wx("0x5d")][wx("0x68")](e[wx("0x9")])))))}t[wx("0x55")][wx("0x4f")].on(wx("0x57"),((t,e,n)=>{if(!n[wx("0x4b")][wx("0x54")])return;const o=e[wx("0x28")];if(!o)return;const s=n[wx("0x53")].toViewElement(o);function r(t){return Array[wx("0x75")](t)?t:[t]}s&&"tableCell"===o[wx("0x5")]&&(0,x.setHighlightHandling)(s,n.writer,((t,e,n)=>n[wx("0x29")](r(e[wx("0x3d")]),t)),((t,e,n)=>n[wx("0x3a")](r(e[wx("0x3d")]),t)))}),{priority:wx("0x56")}),o[wx("0x33")][wx("0x7f")]((t=>{if(wx("0x71")!=t[wx("0x87")]&&wx("0x50")!=t[wx("0x87")])return;const e=t[wx("0x11")]();if(null!=e&&e.is(wx("0x17"),"table")){if("insertion"==t[wx("0x87")]){const e=t[wx("0x12")]()[wx("0x43")]((t=>t.is(wx("0xe"))))[wx("0x34")]((t=>t[wx("0x55")]));if(e[wx("0x40")])return{type:wx("0x71"),content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[wx("0x5c")](" ")+'"'))}}if(wx("0x50")==t[wx("0x87")]){const e=t[wx("0x12")]().filter((t=>t.is("$textProxy")))[wx("0x34")]((t=>t[wx("0x55")]));if(e[wx("0x40")])return{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x20"),'"'+e[wx("0x5c")](" ")+'"'))}}}})),o[wx("0x33")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t.getItems()[wx("0x43")]((t=>t.is("$textProxy"))).map((t=>t[wx("0x55")])),o=this[wx("0x36")](t),s=o.maxRow-o[wx("0x14")]+1;if(wx("0x71")==t[wx("0x87")])return e.length?{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,wx("0x67"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x71"),content:Yo(n,wx("0x32"),Yo(n,wx("0x16"),s))};if(wx("0x50")==t[wx("0x87")])return e[wx("0x40")]?{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x67"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(wx("0x8a")==t.subType){const e=t[wx("0x12")]().filter((t=>t.is("$textProxy"))).map((t=>t[wx("0x55")])),o=this[wx("0x36")](t),s=o.maxColumn-o[wx("0x59")]+1;if(wx("0x71")==t[wx("0x87")])return e[wx("0x40")]?{type:"insertion",content:Yo(n,wx("0x32"),Yo(n,wx("0x39"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x32"),Yo(n,wx("0x51"),s))};if(wx("0x50")==t[wx("0x87")])return e[wx("0x40")]?{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x39"),[s,'"'+e[wx("0x5c")](" ")+'"']))}:{type:wx("0x50"),content:Yo(n,wx("0x82"),Yo(n,wx("0x51"),s))}}})),o[wx("0x76")][wx("0x78")]("insertion",wx("0x80"),wx("0x0"),r),o[wx("0x76")][wx("0x78")](wx("0x50"),wx("0x80"),wx("0x85"),r),o[wx("0x76")][wx("0x78")](wx("0x71"),"tableColumn",wx("0x0"),a),o._suggestionFactory[wx("0x78")]("deletion",wx("0x8a"),"accept",a),o._suggestionFactory.registerCustomCallback(wx("0x71"),wx("0x8a"),wx("0x5c"),c),o._suggestionFactory[wx("0x78")](wx("0x50"),wx("0x8a"),wx("0x5c"),c),o[wx("0x76")][wx("0x78")](wx("0x71"),"tableRow","join",l),o[wx("0x76")][wx("0x78")](wx("0x50"),wx("0x80"),"join",l)}[wx("0x22")](){const t=this[wx("0x7e")],e=t[wx("0x60")][wx("0x8")][wx("0x27")];return(n,o)=>{t[wx("0x60")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][wx("0x77")]&&(a=n[0][wx("0x9")][wx("0x70")]);const c=s[wx("0x79")](a);if(wx("0x46")==c[wx("0xc")].rootName)return;const l=Array.from(e[wx("0x58")]())[wx("0x34")]((t=>i.LiveRange[wx("0x72")](t)));s[wx("0x6c")](c),t[wx("0x45")][wx("0x41")](r)[wx("0x3f")](),x[wx("0xd")]({forceDefaultExecution:!0}),t[wx("0xb")](r,...x);const d=l[wx("0x43")]((t=>wx("0x46")!=t[wx("0xc")].rootName));d[wx("0x40")]>0&&s.setSelection(d);for(const t of l)t[wx("0x61")]()}))}}[wx("0x84")](t){const e=this[wx("0x7e")][wx("0x48")][wx("0x41")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number[wx("0x4c")],s=Number[wx("0x5b")],r=Number.MIN_SAFE_INTEGER;for(const i of t){if(wx("0x46")==i[wx("0xc")][wx("0x64")])continue;const{row:t,column:x}=e[wx("0x35")](i),a=i.hasAttribute(wx("0x7c"))?i.getAttribute(wx("0x7c"))-1:0,c=i[wx("0x13")](wx("0x23"))?i[wx("0x10")](wx("0x23"))-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}}[wx("0x4d")](){const t=this[wx("0x7e")],e=t[wx("0x48")].get("TrackChangesEditing"),n=t.plugins[wx("0x41")](wx("0x21"));t[wx("0x60")][wx("0x8")].on(wx("0x1"),(()=>{const n=Array[wx("0x1c")](t[wx("0x60")][wx("0x8")][wx("0x3")][wx("0x7b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[wx("0x1b")](t);if(wx("0x2b")!=n)continue;if(null!=o[wx("0x6e")])continue;const i=e.getSuggestion(s);this[wx("0x25")].includes(r)&&this[wx("0x81")].add(i)}}),{priority:wx("0x26")});const o=(t,e)=>{let o=!1;const s=e[wx("0x89")](t),r=t[wx("0x7d")](wx("0x6a")),i=n[wx("0x35")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n[wx("0x2f")](wx("0x52")),a=n[wx("0x1e")](x?10:5),c=a[wx("0x18")](),l=c[wx("0x1e")](0,3)+wx("0x5f"),d=wx("0x1a")+a,u=wx("0x8b")+a;if(!e[wx("0x1f")])continue;if(r!=e[wx("0x65")]()[wx("0x9")][wx("0x7d")](wx("0x6a")))continue;if(e[wx("0x4a")](s))continue;const g=t.hasAttribute(l)?t.getAttribute(l)-1:0,m=this[wx("0x36")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x1d")](s),o=!0)}return o};t[wx("0x60")][wx("0x8")].registerPostFixer((e=>{let n=!1;for(const s of t[wx("0x60")][wx("0x8")][wx("0x3")][wx("0x3b")]())if("insert"==s.type)if(wx("0x80")==s[wx("0x5")])for(const t of s[wx("0x66")][wx("0x70")][wx("0x88")]())n=n||o(t,e);else wx("0xa")==s.name&&(n=n||o(s[wx("0x66")][wx("0x70")],e));return n}))}[wx("0x36")](t){return this[wx("0x84")](t.getRanges()[wx("0x34")]((t=>t[wx("0x9")][wx("0x70")])))}}function Ox(t){return Array[wx("0x1c")](new Set(t)[wx("0x2e")]())}const Fx=["stop","_areSelectedCellsMergable","_descriptionFactory","TrackChangesEditing","from","registerDescriptionCallback","mergeTableCellLeft","direction","change","tableCell","plugins","length","isEnabled","markMultiRangeBlockFormat","get","element","find","deletion","*Split cell:* vertically","mergeTableCells","getRanges","map","selection","afterInit","_areMergableCells","fromRange","model","commandName","_isForcedDefaultExecutionBlock","registerCustomCallback","rootName","enableCommand","author","getFirstPosition","refresh","mergeTableCellUp","insertion","subType","getSelectionAffectedTableCells","size","mergeTableCellRight","getSuggestions","editor","value","has","document","splitTableCellVertically","splitTableCellHorizontally","getCellLocation","markBlockFormat","createTableWalker","*Merge cells*","cell","type","$graveyard","add","table","containsRange","TableEditing","push","detach","commands","set:isEnabled","mergeTableCellDown","createRangeOn","accept","format","low","TableUtils","setSelection","_tablePostFixingSubtypes","formatBlock","forceDefaultExecution","execute","_suggestionFactory","trackChanges","highest"];var Px,Dx;Px=Fx,Dx=174,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[Mx]}[Bx("0x3")](){const t=this[Bx("0x16")],e=t.model[Bx("0x19")].selection,n=t.locale;if(!t[Bx("0x43")][Bx("0x18")](Bx("0x26")))return;const o=t.plugins[Bx("0x47")](Bx("0x3c")),s=t[Bx("0x43")][Bx("0x47")](Bx("0x30")),r=t[Bx("0x43")][Bx("0x47")](Mx);r[Bx("0x32")][Bx("0x27")](Bx("0x4c")),o[Bx("0xb")]("mergeTableCells",(()=>{const e=s[Bx("0x12")](t[Bx("0x6")][Bx("0x19")][Bx("0x2")]);t.model.change((()=>{o.markMultiRangeBlockFormat(e,{commandName:"mergeTableCells",commandParams:[]},[],Bx("0x4c"))}))})),t[Bx("0x29")].get(Bx("0x4c")).on(Bx("0x35"),((e,n)=>{t.commands[Bx("0x47")](Bx("0x37"))[Bx("0x17")]&&(n[Bx("0x44")]>0&&n[n.length-1]&&n[n.length-1][Bx("0x34")]||o[Bx("0x8")]||this[Bx("0x3a")]()||e[Bx("0x39")]())}),{priority:Bx("0x38")});for(const e of[Bx("0xf"),Bx("0x14"),Bx("0x2b"),Bx("0x3f")]){const n=t[Bx("0x29")][Bx("0x47")](e);o.enableCommand(e,(()=>{const e=t[Bx("0x6")][Bx("0x19")][Bx("0x2")][Bx("0xd")]().getAncestors()[Bx("0x49")]((t=>t.is(Bx("0x48"),Bx("0x42")))),s=n[Bx("0x17")];t[Bx("0x6")].change((()=>{o[Bx("0x46")]([e,s],{commandName:Bx("0x4c"),commandParams:[]},[],Bx("0x4c"))}))}))}for(const e of[Bx("0x1a"),"splitTableCellHorizontally"]){const n=t[Bx("0x29")].get(e);o.enableCommand(e,(()=>{const r=s[Bx("0x12")](t[Bx("0x6")][Bx("0x19")][Bx("0x2")])[0],i=r.findAncestor(Bx("0x24")),{column:x,row:a}=s[Bx("0x1c")](r);let c=[];if("horizontally"==n[Bx("0x40")]){const t=s[Bx("0x1e")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x3d")](t).map((t=>t[Bx("0x20")]))}else{const t=s[Bx("0x1e")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x3d")](t).map((t=>t[Bx("0x20")]))}t[Bx("0x6")].change((t=>{o[Bx("0x1d")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3b")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return Bx("0x4c")==e.commandName?{type:Bx("0x2e"),content:Yo(n,Bx("0x1f"))}:void 0})),o[Bx("0x3b")][Bx("0x3e")]((t=>{const{data:e}=t;if(e)return Bx("0x1a")==e[Bx("0x7")]?{type:Bx("0x2e"),content:Yo(n,Bx("0x4b"))}:Bx("0x1b")==e[Bx("0x7")]?{type:Bx("0x2e"),content:Yo(n,"*Split cell:* horizontally")}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp","mergeTableCellRight",Bx("0x2b"),Bx("0x3f")])o[Bx("0x36")][Bx("0x9")](Bx("0x33"),t,"accept",x);for(const t of["splitTableCellVertically",Bx("0x1b")])o[Bx("0x36")][Bx("0x9")](Bx("0x33"),t,Bx("0x2d"),x);o[Bx("0x36")][Bx("0x9")](Bx("0x33"),Bx("0x4c"),Bx("0x2d"),(n=>{t.model[Bx("0x41")]((o=>{const s=Array[Bx("0x3d")](e[Bx("0x0")]())[Bx("0x1")]((t=>i.LiveRange[Bx("0x5")](t)));o[Bx("0x31")](n),t[Bx("0x29")][Bx("0x47")](Bx("0x4c"))[Bx("0xe")](),t[Bx("0x35")](Bx("0x4c"),{forceDefaultExecution:!0});const r=s.filter((t=>Bx("0x22")!=t.root[Bx("0xa")]));r[Bx("0x44")]>0&&o[Bx("0x31")](r);for(const t of s)t[Bx("0x28")]()}))}));for(const e of[Bx("0xf"),Bx("0x2b"),Bx("0x3f"),Bx("0x14")]){const n=t[Bx("0x29")][Bx("0x47")](e);n.on(Bx("0x2a"),((e,o,s)=>{if(s){const o=t[Bx("0x6")][Bx("0x19")][Bx("0x2")][Bx("0xd")]().getAncestors()[Bx("0x49")]((t=>t.is("element",Bx("0x42"))));this[Bx("0x4")](n[Bx("0x17")],o)||(e.return=!1,e[Bx("0x39")]())}}),{priority:Bx("0x2f")})}}_areSelectedCellsMergable(){const t=this[Bx("0x16")][Bx("0x29")][Bx("0x47")](Bx("0x4c")),e=this[Bx("0x16")][Bx("0x43")][Bx("0x47")]("TableUtils");if(!t[Bx("0x45")])return!1;const n=e.getSelectionAffectedTableCells(this[Bx("0x16")].model.document[Bx("0x2")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x4")](t,e))return!1;return!0}_areMergableCells(t,e){const n=this[Bx("0x16")][Bx("0x43")][Bx("0x47")](Bx("0x3c")),o=this[Bx("0x16")][Bx("0x6")][Bx("0x2c")](t),s=this.editor[Bx("0x6")][Bx("0x2c")](e),r=new Set,i=new Set;for(const t of n[Bx("0x15")]())if((Bx("0x10")==t[Bx("0x21")]||Bx("0x4a")==t[Bx("0x21")]||Bx("0x4c")==t[Bx("0x11")])&&t.isInContent)for(const e of t[Bx("0x0")]())e.containsRange(o,!0)&&r[Bx("0x23")](t[Bx("0x21")]+":"+t[Bx("0xc")].id),e[Bx("0x25")](s,!0)&&i[Bx("0x23")](t[Bx("0x21")]+":"+t[Bx("0xc")].id);if(r[Bx("0x13")]!=i[Bx("0x13")])return!1;for(const t of r)if(!i[Bx("0x18")](t))return!1;return!0}}const Ux=["createPositionBefore","*Format:* %0","removeMarker:suggestion","getChild","_acceptFormatSuggestionCallbackFactory","editor","setTableRowHeader","markerRange","locale","createTableWalker","activeMarkers","consumable","table","parent","formatBlock","editing","commands","FORMAT_HEADER_ROW","removeClass","end","stop","downcastDispatcher","accept","createPositionAfter","writer","selection","TableUtils","data","setTableColumnHeader","unbindElementFromMarkerName","FORMAT_HEADER_COLUMN","cell","createRange","registerCustomCallback","TableEditing","forceValue","getAttribute","ck-suggestion-marker--active","includes","document","get","commandParams","getRowIndexes","markBlockFormat","addClass","showSuggestionHighlights","data-suggestion","TrackChangesEditing","change","model","toViewElement","start","headingRows","childCount","markerNameToElements","mapper","getSelectionAffectedTableCells","enableCommand","options","requires","value","_splitMarkerName","findAncestor","commandName","registerDescriptionCallback","bindElementToMarker","_descriptionFactory","first","format","setAttribute","markerName","addMarker:suggestion","highest","getColumnIndexes","last","ck-suggestion-marker-","isBefore","getSuggestion","nodeAfter","plugins","_suggestionFactory","headingColumns","FORMAT_REGULAR_ROW","index","getCellLocation","item","from"];var Gx,Hx;Gx=Ux,Hx=449,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Vx=function(t,e){return Ux[t-=0]};class Wx extends t.Plugin{static get[Vx("0x2d")](){return[Mx]}afterInit(){const t=this[Vx("0x4e")];if(!t[Vx("0x41")].has(Vx("0x14")))return;const e=t[Vx("0x51")],n=t[Vx("0x41")][Vx("0x1a")](Vx("0x21")),o=t[Vx("0x41")][Vx("0x1a")]("TableUtils"),s=t[Vx("0x41")][Vx("0x1a")](Mx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Vx("0x2f")](r[Vx("0x38")]),c=n[Vx("0x3f")](a);if(!c.data||Vx("0xe")!=c[Vx("0xd")][Vx("0x31")])return;if(r[Vx("0x47")])return void s[Vx("0x6")]();if(!i[Vx("0x54")].consume(r.markerRange,s.name))return;const l=r[Vx("0x50")][Vx("0x25")][Vx("0x40")],d=r[Vx("0x50")][Vx("0x5")].nodeBefore,u=l[Vx("0x56")][Vx("0x56")],{column:g}=o[Vx("0x46")](l),{column:m}=o[Vx("0x46")](d);for(let s=g;s<=m;s++){const c=o[Vx("0x52")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[Vx("0x29")][Vx("0x24")](s);i[Vx("0xa")][Vx("0x1e")]("ck-suggestion-marker-"+x,c),e&&i[Vx("0xa")][Vx("0x37")](Vx("0x20"),a,c),i[Vx("0x29")][Vx("0x33")](c,r[Vx("0x38")]),t&&(n[Vx("0x53")][Vx("0x18")](r[Vx("0x38")])?i.writer[Vx("0x1e")](Vx("0x17"),c):i[Vx("0xa")][Vx("0x4")](Vx("0x17"),c))}}}}n[Vx("0x2b")]("setTableRowHeader",((e,s)=>{const r=o[Vx("0x2a")](t[Vx("0x23")][Vx("0x19")].selection),i=o[Vx("0x1c")](r),x=r[0][Vx("0x30")](Vx("0x55")),a=x[Vx("0x16")](Vx("0x26"))||0,c=s&&null!==s[Vx("0x15")]?s.forceValue:!t[Vx("0x2")].get(Vx("0x4f")).value,l=c?i[Vx("0x3c")]:i[Vx("0x35")],d=x[Vx("0x4c")](l);let u;if(c){const e=x[Vx("0x4c")](a);if(d[Vx("0x45")]<e[Vx("0x45")])return;u=t.model.createRange(t[Vx("0x23")][Vx("0x49")](e[Vx("0x4c")](0)),t[Vx("0x23")].createPositionAfter(d[Vx("0x4c")](d.childCount-1)))}else{const e=x[Vx("0x4c")](a-1);if(!e)return;u=t.model[Vx("0x12")](t.model.createPositionBefore(d[Vx("0x4c")](0)),t[Vx("0x23")][Vx("0x9")](e.getChild(e[Vx("0x27")]-1)))}t[Vx("0x23")].change((()=>{n[Vx("0x1d")](u,{commandName:"setTableRowHeader",commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[Vx("0x2b")](Vx("0xe"),((e,o)=>{const s=t[Vx("0x41")].get(Vx("0xc")),r=s[Vx("0x2a")](t[Vx("0x23")][Vx("0x19")][Vx("0xb")]),i=s[Vx("0x3b")](r),x=r[0][Vx("0x30")](Vx("0x55")),a=x[Vx("0x16")](Vx("0x43"))||0,c=o&&null!==o[Vx("0x15")]?o[Vx("0x15")]:!t[Vx("0x2")][Vx("0x1a")](Vx("0xe"))[Vx("0x2e")];let l;const d=x[Vx("0x4c")](0),u=c?i[Vx("0x3c")]:i[Vx("0x35")],g=s.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Vx("0x48")](g)[0][Vx("0x11")];if(c){const e=d[Vx("0x4c")](a);if(m[Vx("0x3e")](e))return;l=t[Vx("0x23")][Vx("0x12")](t.model.createPositionBefore(e),t[Vx("0x23")][Vx("0x9")](m))}else{const e=d.getChild(a-1);if(!e)return;l=t[Vx("0x23")][Vx("0x12")](t.model.createPositionBefore(m),t[Vx("0x23")][Vx("0x9")](e))}t[Vx("0x23")][Vx("0x22")]((()=>{n.markBlockFormat(l,{commandName:Vx("0xe"),commandParams:[{forceValue:c}]},[],Vx("0xe"))}))})),t[Vx("0x1")].downcastDispatcher.on(Vx("0x39"),r(),{priority:Vx("0x3a")}),t.data[Vx("0x7")].on(Vx("0x39"),((t,e,n)=>{n[Vx("0x2c")][Vx("0x1f")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Vx("0x3a")}),t.editing[Vx("0x7")].on(Vx("0x4b"),((t,e,o)=>{const{type:s,id:r}=n[Vx("0x2f")](e[Vx("0x38")]),i=n[Vx("0x3f")](r);if(!i[Vx("0xd")]||Vx("0xe")!=i[Vx("0xd")][Vx("0x31")])return;const x=o[Vx("0x29")][Vx("0x28")](e[Vx("0x38")]);if(x)for(const t of x)o[Vx("0xa")][Vx("0x4")](Vx("0x3d")+s,t),o[Vx("0xa")][Vx("0x4")](Vx("0x17"),t),o[Vx("0xa")].removeAttribute("data-suggestion",t),o[Vx("0x29")][Vx("0xf")](t,e.markerName)}),{priority:"highest"}),n[Vx("0x34")][Vx("0x32")]((t=>{const{data:n}=t;if(n){if(Vx("0x4f")==n.commandName){const t=n.commandParams[0].forceValue;return o(Yo(e,Vx(t?"0x3":"0x44")))}if("setTableColumnHeader"==n[Vx("0x31")]){const t=n[Vx("0x1b")][0].forceValue;return o(Yo(e,t?Vx("0x10"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:Vx("0x36"),content:Yo(e,Vx("0x4a"),t)}}}));const i=s[Vx("0x4d")]();n[Vx("0x42")][Vx("0x13")](Vx("0x0"),Vx("0x4f"),Vx("0x8"),i),n._suggestionFactory[Vx("0x13")](Vx("0x0"),Vx("0xe"),"accept",i)}}const zx=["getChildren","selection","endColumn","getRanges","createRange","nodeAfter","createElement","plugins","TableUtils","getRows","cells","commands","_getCoordsForCells","columns","tablePasteRow","deletion","options","locale","deletionRanges","registerCustomCallback","content","getSuggestionCallback","last","isEmpty","newRange","dataDowncast","schema","insertion","removeMarker","row","markerName","startsWith","markMultiRangeBlockFormat","length","_splitMarkerName","$graveyard","getChangedMarkers","getTableIfOnlyTableInContent","suggestion","view","tablePasteChainId","table","setAttributes","next","ck-suggestion-marker-insertion","suggestion:formatBlock:tablePasteCell","tableCellBorderColor","for","getAllAdjacentSuggestions","activeMarkers","end","editingDowncast","change","join","editing","fromEntries","first","insertColumns","TableClipboard","hasSuggestion","forceDefaultExecution","getRange","formatBlock","position","paragraph","_isForcedDefaultExecutionBlock","has","tablePasteColumn","removeRows","createTableWalker","author","insertContent","differ","remove","_replaceTableSlotCell","model","ck-suggestion-marker--active","suggestion-td","element","oldRange","includes","findAncestor","register","rowInsertionIndexes","getSelectionAffectedTableCells","getRowIndexes","get","document","elementToElement","redo","getContainedElement","unwrap","insertionRanges","tablePaste","markerAttributes","type","getColumnIndexes","isInContent","name","add","suggestionLoaded","showSuggestionHighlights","batch","registerPostFixer","requires","rootName","listenTo","find","_descriptionFactory","fill","getMarkers","containsRange","map","afterInit","stop","getColumns","previousSibling","set","attributes","tableCellPadding","getSuggestions","editor","tableCellBorderStyle","clipboardOutput","createRangeIn","accept","rowInsertionRanges","tableCellSuggestion","getSuggestion","createRangeOn","start","reduce","setAttribute","filter","column","high","markerToHighlight","getChild","subType","isEqual","keys","insert","return","getAttributes","previous","tableCellBackgroundColor","_suggestionFactory","discard","conversion","every","markMultiRangeInsertion","columnInsertionRanges","tablePasteCell","push","Users","move","documentSelection","tableCell","endRow","root"];var Kx,qx;Kx=zx,qx=433,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return zx[t-=0]},$x=["tableCellBorderWidth",Xx("0x5d"),Xx("0x9"),"tableCellHorizontalAlignment","tableCellVerticalAlignment",Xx("0x20"),Xx("0x6")],Jx=Object[Xx("0x66")]($x.map((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x97")](){return[Mx]}[Xx("0x0")](){const t=this[Xx("0x8")];if(!t.plugins.has("TableClipboard"))return;const n=t.plugins[Xx("0x85")]("TrackChangesEditing"),o=t.plugins[Xx("0x85")](Xx("0x37")),s=t[Xx("0x36")][Xx("0x85")](Mx),r=t[Xx("0x36")][Xx("0x85")](Xx("0x69"));s._tablePostFixingSubtypes[Xx("0x28")](Xx("0x3d"),"tablePasteColumn"),t[Xx("0x7a")][Xx("0x49")][Xx("0x81")](Xx("0xe"),{allowIn:Xx("0x2c"),allowContentOf:Xx("0x2c"),isLimit:!0}),t[Xx("0x23")][Xx("0x87")]({model:Xx("0xe"),view:Xx("0x7c")});let i=null;t[Xx("0x7a")].on("insertContent",((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[Xx("0x6b")]||n[Xx("0x70")]||this.editor[Xx("0x3a")][Xx("0x85")]("trackChanges").value&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x2b")))return!1;const r=s[Xx("0x54")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[Xx("0x83")](n[Xx("0x86")][Xx("0x30")]);if(!i.length)return!1;const x=i[0].findAncestor(Xx("0x58")),a=o[Xx("0x84")](i),c=o[Xx("0x8f")](i),l={startRow:a[Xx("0x67")],endRow:a.last,startColumn:c[Xx("0x67")],endColumn:c[Xx("0x45")]};return 1==i[Xx("0x50")]&&(l[Xx("0x2d")]+=o[Xx("0x38")](r)-1,l[Xx("0x31")]+=o[Xx("0x2")](r)-1),Yx(x,l,o)}(a,c,t.model,o,r)&&(s[Xx("0x1")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x7a")][Xx("0x63")]((()=>{t[Xx("0x7a")][Xx("0x76")](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[Xx("0x50")]&&n[Xx("0x25")](s,Xx("0x3d"),{tablePasteChainId:o}),r[Xx("0x50")]&&n[Xx("0x25")](r,Xx("0x72"),{tablePasteChainId:o}),a.length&&n[Xx("0x25")](a,Xx("0x8c"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x50")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x4f")](l[Xx("0x9f")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],"tablePasteCell",{tablePasteChainId:o});if(d){const e=d[Xx("0x9d")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0x7a")].createRangeOn(o),i=e[Xx("0x9a")]((t=>t[Xx("0x6c")]()[Xx("0x1a")](r)));i&&n[Xx("0x28")]([i[Xx("0x91")],s])}n[Xx("0x50")]&&d[Xx("0x13")](Xx("0x8d"),Object[Xx("0x66")](n))}i=null})))}),{priority:e.priorities[Xx("0x16")]+10}),t[Xx("0x36")].get(Xx("0x69")).on(Xx("0x79"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n.cell,x=o,a=Zx(r),c=Zx(x);t[Xx("0x1d")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[Xx("0x18")](0));for(const t of Array.from(x[Xx("0x2f")]()))s[Xx("0x1c")](t,r,"end");const t=i[Xx("0x82")].includes(n[Xx("0x4c")]),e=i.columnInsertionIndexes[Xx("0x7f")](n[Xx("0x15")]);t||e||(l=s[Xx("0xb")](r))}else c&&!a&&(d=s[Xx("0xb")](r));else{const t=s[Xx("0x35")]("tableCellSuggestion"),e=s[Xx("0x35")](Xx("0xe"));s.wrap(s[Xx("0xb")](r),e),s.insert(t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x1c")](e,t,Xx("0x61"));l=s[Xx("0x10")](t),d=s[Xx("0x10")](e)}const u=Array.from(x[Xx("0x1e")]())[Xx("0x14")]((([t])=>$x.includes(t)));i[Xx("0x39")].push({element:r,attributes:u.length?Object[Xx("0x66")](u):null}),l&&i[Xx("0x8b")][Xx("0x28")](l),d&&i[Xx("0x41")][Xx("0x28")](d)}),{priority:Xx("0x16")}),o.on(Xx("0x68"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x3c")]||1;i.columnInsertionIndexes=new Array(a).fill(x)[Xx("0x9f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x26")][Xx("0x28")](t.model[Xx("0x10")](e))}),{priority:"low"}),o.on("insertRows",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i[Xx("0x82")]=new Array(a)[Xx("0x9c")](x)[Xx("0x9f")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x74")](s,{startRow:x,endRow:x+a-1}))i[Xx("0xd")][Xx("0x28")](t[Xx("0x7a")][Xx("0x10")](e))}),{priority:"low"}),n[Xx("0x9b")].registerDescriptionCallback((e=>{if(e[Xx("0x19")]&&e.subType[Xx("0x4e")]("tablePaste"))return e.previous?{}:{type:Xx("0x4a"),content:Yo(t[Xx("0x40")],"*Replace table cells*")}}));const x=()=>{};for(const t of["tablePaste",Xx("0x72"),Xx("0x3d"),Xx("0x27")])n[Xx("0x21")].registerCustomCallback(Xx("0x4a"),t,Xx("0x64"),x),n._suggestionFactory[Xx("0x42")](Xx("0x3e"),t,Xx("0x64"),x);n[Xx("0x21")][Xx("0x42")](Xx("0x6d"),Xx("0x27"),Xx("0x22"),x),n[Xx("0x21")][Xx("0x42")]("formatBlock",Xx("0x27"),Xx("0xc"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x89")]()))[Xx("0x14")]((t=>t)),r=new Map(s[Xx("0x9f")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Xx("0x39")])e&&r[Xx("0x4")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Xx("0x7a")].markers[Xx("0x85")](e),s=o?o[Xx("0x6c")]()[Xx("0x89")]():null;s&&r[Xx("0x4")](s,n)}t[Xx("0x7a")][Xx("0x63")]((t=>{for(const[e,n]of r)t[Xx("0x59")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x21")][Xx("0x42")](e,Xx("0x8c"),o,((s,r,i)=>{t[Xx("0x7a")][Xx("0x63")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x11")][Xx("0x34")];e.is(Xx("0x7d"),Xx("0xe"))&&x[Xx("0x28")](e)}n[Xx("0x21")][Xx("0x44")](e,null,o)(s,r,i);for(const e of x)Xx("0x52")!=e[Xx("0x2e")][Xx("0x98")]&&t[Xx("0x8a")](e)}))}))};a(Xx("0x4a"),"accept"),a(Xx("0x4a"),Xx("0x22")),a(Xx("0x3e"),Xx("0xc")),a(Xx("0x3e"),"discard"),n[Xx("0x21")][Xx("0x42")](Xx("0x4a"),Xx("0x3d"),Xx("0x22"),(t=>{const e=t[Xx("0x9f")]((t=>t[Xx("0x89")]())),n=e[0].findAncestor(Xx("0x58")),{minRow:r,maxRow:i}=s[Xx("0x3b")](e);o[Xx("0x73")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x42")]("insertion",Xx("0x72"),Xx("0x22"),(t=>{const e=t[Xx("0x9f")]((t=>t[Xx("0x89")]())),n=e[0][Xx("0x80")](Xx("0x58")),{minColumn:r,maxColumn:i}=s[Xx("0x3b")](e);o.removeColumns(n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x19")]||!e[Xx("0x19")][Xx("0x4e")](Xx("0x8c")))return;const o=e[Xx("0x5")][Xx("0x57")],s=n[Xx("0x7")]().filter((t=>t[Xx("0x90")]&&t[Xx("0x5")]&&t.attributes[Xx("0x57")]==o));s.length&&e[Xx("0x5f")]().length!=s[Xx("0x50")]&&s[Xx("0x12")](((t,e)=>(t[Xx("0x5a")]=e,e[Xx("0x1f")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x51")](t[Xx("0x4d")]),s=["ck-suggestion-marker",Xx("0x5b")],r=n[Xx("0x60")][Xx("0x7f")](t[Xx("0x4d")]);return r&&s.push(Xx("0x7b")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x93"),c,{priority:Xx("0x16")}),n.on("suggestionUnloaded",c,{priority:Xx("0x16")}),t[Xx("0x7a")][Xx("0x86")][Xx("0x96")]((()=>{let e=!1;const o=Array.from(t[Xx("0x7a")][Xx("0x86")][Xx("0x77")][Xx("0x53")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x51")](s);if(Xx("0x55")!=o||"deletion"!=i||r[Xx("0x7e")])continue;if(!n[Xx("0x6a")](x))continue;const a=n[Xx("0xf")](x)[Xx("0x32")](),c=t[Xx("0x36")].get(Xx("0x29")).me;for(const t of n.getSuggestions())if(t[Xx("0x90")]&&t[Xx("0x75")]==c&&Xx("0x6d")==t[Xx("0x8e")]&&Xx("0x27")==t[Xx("0x19")]&&t.getRanges()[Xx("0x24")]((t=>a.some((e=>e.containsRange(t,!0))))))for(const n of t[Xx("0x5f")]())n[Xx("0x90")]&&(n[Xx("0x22")](),e=!0)}return e})),t[Xx("0x7a")].document[Xx("0x96")]((e=>{const o=t.commands[Xx("0x85")](Xx("0x88"));if(!o||!o._createdBatches[Xx("0x71")](e[Xx("0x95")]))return!1;let s=!1;const r=t.plugins[Xx("0x85")](Xx("0x29")).me,i=t.model[Xx("0x86")][Xx("0x77")].getChanges(),x=Array.from(t[Xx("0x7a")][Xx("0x86")].differ.getChangedMarkers())[Xx("0x14")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Xx("0x51")](t);return Xx("0x55")==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0x7e")]}));for(const t of i){if(Xx("0x1c")!=t[Xx("0x8e")]||Xx("0xe")!=t[Xx("0x91")]||1!=t.length)continue;const n=e[Xx("0x33")](t[Xx("0x6e")],t.position.getShiftedBy(1));if(!x.find((({data:t})=>t[Xx("0x47")][Xx("0x1a")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x9e")](o.newRange)){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t.model[Xx("0x86")][Xx("0x96")]((e=>{let o=!1;const s=t[Xx("0x36")].get("Users").me,r=n[Xx("0x7")]().filter((t=>t.isInContent&&t[Xx("0x75")]==s)),i=new Set,x=new Set;for(const t of r)if(Xx("0x8c")==t[Xx("0x19")])for(const e of t[Xx("0x9d")]()){const n=e.getRange()[Xx("0x89")]();if(n)if(n.is(Xx("0x7d"),Xx("0xe"))&&Zx(n)){t[Xx("0x4b")](e[Xx("0x91")]),i.add(n),o=!0;const s=n.nextSibling,r=n[Xx("0x3")],a=s&&s.is(Xx("0x7d"),"tableCellSuggestion"),c=r&&r.is(Xx("0x7d"),Xx("0xe"));a&&!i[Xx("0x71")](s)&&x.add(s),c&&!i.has(r)&&x[Xx("0x92")](r)}else n.is(Xx("0x7d"),Xx("0x6f"))&&n.isEmpty&&(t.removeMarker(e[Xx("0x91")]),o=!0)}else if("tablePasteCell"==t[Xx("0x19")]){if(!t[Xx("0x5")]||!t[Xx("0x5")][Xx("0x57")])continue;const e=t[Xx("0x5")][Xx("0x8d")];if(e&&Object[Xx("0x1b")](e)[Xx("0x50")])continue;const n=t[Xx("0x5")][Xx("0x57")];let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x19")][Xx("0x4e")](Xx("0x8c"))){if(!e[Xx("0x5")][Xx("0x57")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5")][Xx("0x57")]==n){s=!1;break}}i&&s&&(t.removeMarkers(),o=!0)}for(const t of i)e[Xx("0x78")](t);for(const t of x)e[Xx("0x8a")](t);return o})),t[Xx("0x23")].for(Xx("0x62"))[Xx("0x17")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[Xx("0x5e")](Xx("0x48"))[Xx("0x17")]({model:Xx("0x5c"),view:(t,e)=>e[Xx("0x3f")][Xx("0x94")]?l(t,!1):null,converterPriority:Xx("0x16")});const d=t[Xx("0x65")][Xx("0x56")];this[Xx("0x99")](d[Xx("0x86")],Xx("0xa"),((t,e)=>{const n=[];for(const t of d[Xx("0xb")](e[Xx("0x43")]).getItems())t.is(Xx("0x7d"),Xx("0x7c"))&&n[Xx("0x28")](t);d[Xx("0x63")]((t=>{for(const e of n)t[Xx("0x2a")](t[Xx("0xb")](e),t.createPositionBefore(e)),t[Xx("0x78")](e)}))}))}}function Zx(t){if(t[Xx("0x46")])return!0;const e=t[Xx("0x18")](0);return e.is(Xx("0x7d"),Xx("0x6f"))&&e[Xx("0x46")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x74")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["get","formatBlock","getSuggestionCallback","resizeTableWidth","model","_suggestionFactory","discard","handleResizeTableWidthCommand","tableWidth","columnWidths","enableCommand","registerCustomCallback","getColumnGroupElement","plugins","resizeColumnWidths","locale","editor","subType","Users","getAttribute","handleSuggestionDescription","bind","getSuggestions","getSelectedElement","document","registerDescriptionCallback","selection","change","TrackChangesEditing","getContainedElement","TableColumnResizeEditing","resizeTable","getTableColumnsWidths"];var ea,na;ea=ta,na=201,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{afterInit(){if(!this[oa("0xd")][oa("0xa")].has(oa("0x1b")))return;const t=this[oa("0xd")][oa("0xa")].get(oa("0x19"));t[oa("0x7")](oa("0x0"),this[oa("0x4")][oa("0x12")](this)),t.enableCommand(oa("0xb"),this[oa("0x4")][oa("0x12")](this)),t[oa("0x2")][oa("0x8")]("formatBlock",oa("0x1c"),"accept",t[oa("0x2")][oa("0x20")](oa("0x1f"),null,oa("0x3"))),t._suggestionFactory[oa("0x8")](oa("0x1f"),oa("0x1c"),"discard",t[oa("0x2")][oa("0x20")]("formatBlock",null,"accept")),t._descriptionFactory[oa("0x16")](this[oa("0x11")][oa("0x12")](this))}[oa("0x4")](t,e){const n=this[oa("0xd")][oa("0xa")][oa("0x1e")]("TrackChangesEditing"),o=this[oa("0xd")][oa("0xa")][oa("0x1e")]("TableColumnResizeEditing"),s=e.table||this[oa("0xd")][oa("0x1")][oa("0x15")][oa("0x17")][oa("0x14")]();this[oa("0xd")][oa("0x1")][oa("0x18")]((()=>{const r=o[oa("0x9")](s);let i=r?o[oa("0x1d")](r):null,x=s[oa("0x10")]("tableWidth")||null;const a=e[oa("0x5")]||x,c=e[oa("0x6")]||i,l=this.editor.plugins[oa("0x1e")](oa("0xf")).me;for(const t of n[oa("0x13")]()){const e=t[oa("0x1a")]();if(oa("0x1c")===t[oa("0xe")]&&e===s){t.author!==l&&t[oa("0x3")]();const e=t.data.commandParams;x=e[0][oa("0x5")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:oa("0x0"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1c")},[],oa("0x1c"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&oa("0x1c")===e.formatGroupId){const t="*Format:* resize table";return{type:"format",content:Yo(this.editor[oa("0xc")],t)}}}}const ra=["Template","afterInit","get","has","enableCommand","insertTemplate","editor","TrackChangesEditing","plugins"];var ia,xa;ia=ra,xa=337,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x6")](){const t=this[aa("0x2")];t[aa("0x4")][aa("0x8")](aa("0x5"))&&t[aa("0x4")][aa("0x7")](aa("0x3"))[aa("0x0")](aa("0x1"))}}const la=["afterInit","insertTableOfContents","locale","plugins","get","registerElementLabel","ELEMENT_TABLE_OF_CONTENTS","editor","commands","TrackChangesEditing"];var da,ua;da=la,ua=466,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this[ga("0x1")];if(!t[ga("0x2")][ga("0x8")]("insertTableOfContents"))return;t[ga("0x7")][ga("0x8")](ga("0x3")).enableCommand(ga("0x5"));const e=t.plugins[ga("0x8")]("TrackChangesEditing"),n=t[ga("0x6")];e._descriptionFactory[ga("0x9")]("tableOfContents",(t=>Yo(n,ga("0x0"),t)))}}const fa=["Title","isCollapsed","locale","_descriptionFactory","nodeBefore","element","title-content","getChangedMarkers","get","end","schema","suggestion","updateMarker","model","registerElementLabel","document","plugins","_splitMarkerName","isEqual","registerPostFixer","has","start","newRange","getNearestSelectionRange"];var ha,pa;ha=fa,pa=108,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.editor;if(!t[ba("0x4")][ba("0x8")](ba("0xc")))return;const e=t[ba("0x4")][ba("0x14")]("TrackChangesEditing");e[ba("0xf")][ba("0x2")](ba("0x12"),(()=>Yo(t[ba("0xe")],"ELEMENT_TITLE"))),t[ba("0x1")][ba("0x3")][ba("0x7")]((n=>{let o=!1;const s=Array.from(t[ba("0x1")][ba("0x3")].differ[ba("0x13")]());for(const{name:r,data:i}of s){const{group:s}=e[ba("0x5")](r);if(ba("0x17")!==s||!i[ba("0xa")])continue;const x=i[ba("0xa")],a=x[ba("0x15")][ba("0x10")];if(!a||!a.is(ba("0x11"),ba("0x12")))continue;if(!x[ba("0x9")].isTouching(x[ba("0x15")]))continue;const c=t.model[ba("0x16")][ba("0xb")](x.end,"forward");if(c&&c[ba("0xd")]){const t=n.createRange(x[ba("0x9")],c[ba("0x9")]);t[ba("0x6")](x)||(n[ba("0x0")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const _a=["afterInit","editor","TrackChangesEditing","undo","UndoEditing","plugins","redo","enableCommand"];var Ta,Ca;Ta=_a,Ca=389,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x3")](){const t=this[ya("0x4")],e=t[ya("0x0")].get(ya("0x5"));t[ya("0x0")].has(ya("0x7"))&&(e[ya("0x2")](ya("0x6")),e[ya("0x2")](ya("0x1")))}}const Aa=["has","toggleTableCaption","get","afterInit","TrackChangesEditing","plugins","requires","TableCaptionEditing","enableCommand"];var va,Ra;va=Aa,Ra=232,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x8")](){return[Mx]}[Sa("0x5")](){const t=this.editor;t[Sa("0x7")][Sa("0x2")](Sa("0x0"))&&t[Sa("0x7")][Sa("0x4")](Sa("0x6"))[Sa("0x1")](Sa("0x3"))}}const La=["document","get","listStyle","listType","DocumentListPropertiesUtils","enableCommand","toUpperCase","DocumentListUtils","replace","bind","getAttribute","push","_getSuggestionBlocks","handleListReversedCommand","startIndex","plugins","listReversed","_descriptionFactory","getSelectedBlocks","_getTranslationKeyForListStyle","selection","editor","type","markMultiRangeBlockFormat","*Change to:* %0","commandParams","model","*Format:* set order to regular","styles","listStart","expandListBlocksToCompleteList","change","numbered","registerDescriptionCallback","config","list.properties","format","DocumentListPropertiesEditing","from","ELEMENT_","reversed","*Format:* set start index to %0","_getSuggestionBlocksForListStyle","TrackChangesEditing","_LIST_","isListItemBlock","handleDescriptions","handleListStartCommand","isFirstBlockOfListItem"];var Na,wa;Na=La,wa=233,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[Ma("0x21")][Ma("0x1b")].has(Ma("0x0")))return;const t=this[Ma("0x21")][Ma("0x2e")][Ma("0xd")](Ma("0x2f")),e=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x6"));t[Ma("0x28")]&&e[Ma("0x11")](Ma("0xe"),this.handleListStyleCommand[Ma("0x15")](this)),t.reversed&&e[Ma("0x11")](Ma("0x1c"),this[Ma("0x19")][Ma("0x15")](this)),t[Ma("0x1a")]&&e[Ma("0x11")](Ma("0x29"),this.handleListStartCommand[Ma("0x15")](this)),e[Ma("0x1d")][Ma("0x2d")](this[Ma("0x9")].bind(this))}handleListStyleCommand(t,e={}){const n=this.editor[Ma("0x1b")].get(Ma("0x6")),o=this[Ma("0x5")]();this.editor[Ma("0x26")][Ma("0x2b")]((()=>{n[Ma("0x23")](o,{commandName:Ma("0xe"),commandParams:[{type:e[Ma("0x22")]}],formatGroupId:Ma("0xe")})}))}[Ma("0x19")](t,e={}){const n=this[Ma("0x21")][Ma("0x1b")][Ma("0xd")](Ma("0x6")),o=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13")),s=this[Ma("0x18")]((t=>o[Ma("0x8")](t)&&"numbered"===t[Ma("0x16")](Ma("0xf"))));null!==s&&this[Ma("0x21")][Ma("0x26")][Ma("0x2b")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:Ma("0x1c"),commandParams:[{reversed:e[Ma("0x3")]}],formatGroupId:Ma("0x1c")})}))}[Ma("0xa")](t,e={}){const n=this.editor[Ma("0x1b")][Ma("0xd")](Ma("0x6")),o=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13")),s=this[Ma("0x18")]((t=>o[Ma("0x8")](t)&&Ma("0x2c")===t[Ma("0x16")]("listType")));null!==s&&this.editor.model[Ma("0x2b")]((()=>{n[Ma("0x23")](s,{commandName:Ma("0x29"),commandParams:[{startIndex:e.startIndex}],formatGroupId:Ma("0x29")})}))}[Ma("0x9")](t){const e=this[Ma("0x21")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ma("0xe"):o=Ma("0x24"),s={type:Ma("0x30"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[Ma("0x25")][0][Ma("0x22")])))};break;case"listReversed":o=n[Ma("0x25")][0].reversed?"*Format:* set order to reversed":Ma("0x27"),s={type:Ma("0x30"),content:Yo(e,o)};break;case Ma("0x29"):o=Ma("0x4"),s={type:Ma("0x30"),content:Yo(e,o,n[Ma("0x25")][0].startIndex)}}return s}[Ma("0x5")](){const t=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13"));let e=Array[Ma("0x1")](this[Ma("0x21")][Ma("0x26")][Ma("0xc")].selection[Ma("0x1e")]());return e.push(...t[Ma("0x2a")](e)),e=[...new Set(e)],e}[Ma("0x18")](t){const e=this[Ma("0x21")].plugins[Ma("0xd")](Ma("0x13"));let n=Array[Ma("0x1")](this[Ma("0x21")][Ma("0x26")][Ma("0xc")][Ma("0x20")][Ma("0x1e")]()).filter(t);if(!n.length)return null;n=e[Ma("0x2a")](n);const o=[];for(const t of n)e[Ma("0xb")](t)&&o[Ma("0x17")](t);return o}[Ma("0x1f")](t){return Ma("0x2")+this[Ma("0x21")].plugins.get(Ma("0x10")).getListTypeFromListStyleType(t)[Ma("0x12")]()+Ma("0x7")+t.toUpperCase()[Ma("0x14")](/-/g,"_")}}const Fa=["getFirstPosition","format","_getSuggestion","nodeAfter","registerDescriptionCallback","discard","enableCommand","tableAlignment","getSuggestionCallback","tableBackgroundColor","tableBorderColor","removeAttribute","locale","_handlePropertyChange","tableProperties","tableCellProperties","table","document","registerCustomCallback","data","tableCellBorderStyle","tableCellVerticalAlignment","setAttribute","tableCellPadding","batch","_suggestionFactory","markBlockFormat","tableHeight","selection","has","tableWidth","getContainedElement","tableCellBorderColor","tableCellBorderWidth","enqueueChange","get","formatBlock","_descriptionFactory","plugins","getAttribute","editor","join","TableUtils","handleDiscardAction","*Format:* change table properties","accept","findAncestor","TableCellPropertiesEditing","tableCellHeight","start","model","tableBorderStyle","subType"];var Pa,Da;Pa=Fa,Da=250,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.tableProperties=[Ba("0x19"),Ba("0xd"),"tableBorderWidth",Ba("0x16"),Ba("0x2d"),Ba("0x2a"),Ba("0x18")],this[Ba("0x1e")]=[Ba("0x2f"),Ba("0x23"),Ba("0x30"),Ba("0x26"),"tableCellWidth",Ba("0xa"),"tableCellBackgroundColor","tableCellHorizontalAlignment",Ba("0x24")]}static get pluginName(){return"TrackChangesTableProperties"}afterInit(){const t=this[Ba("0x2")][Ba("0x0")][Ba("0x32")]("TrackChangesEditing");if(this[Ba("0x2")][Ba("0x0")][Ba("0x2c")]("TablePropertiesEditing")){for(const e of this.tableProperties)t[Ba("0x15")](e,((t,n)=>{const o=this[Ba("0x2")][Ba("0xc")][Ba("0x20")][Ba("0x2b")][Ba("0xf")]()[Ba("0x8")](Ba("0x1f"));this._handlePropertyChange(e,[o],this[Ba("0x1d")],Ba("0x1d"),t,n)}));t._suggestionFactory[Ba("0x21")](Ba("0x33"),Ba("0x1d"),"accept",t[Ba("0x28")][Ba("0x17")](Ba("0x33"),null,"discard")),t._suggestionFactory[Ba("0x21")]("formatBlock",Ba("0x1d"),"discard",((t,e)=>this[Ba("0x5")](this.tableProperties,t,e))),t._suggestionFactory.registerCustomCallback(Ba("0x33"),Ba("0x1d"),"join",(()=>!1))}if(this[Ba("0x2")][Ba("0x0")][Ba("0x2c")](Ba("0x9"))){for(const e of this[Ba("0x1e")])t[Ba("0x15")](e,((t,n)=>{const o=this.editor[Ba("0x0")][Ba("0x32")](Ba("0x4")).getSelectionAffectedTableCells(this.editor.model[Ba("0x20")][Ba("0x2b")]);this[Ba("0x1c")](e,o,this.tableCellProperties,Ba("0x1e"),t,n)}));t._suggestionFactory[Ba("0x21")]("formatBlock",Ba("0x1e"),Ba("0x7"),t._suggestionFactory[Ba("0x17")]("formatBlock",null,"discard")),t[Ba("0x28")].registerCustomCallback("formatBlock",Ba("0x1e"),Ba("0x14"),((t,e)=>this[Ba("0x5")](this[Ba("0x1e")],t,e))),t[Ba("0x28")].registerCustomCallback("formatBlock",Ba("0x1e"),Ba("0x3"),(()=>!1))}t[Ba("0x34")][Ba("0x13")]((t=>this.handleSuggestionDescription(t)))}[Ba("0x1c")](t,e,n,o,s,r){const i=this[Ba("0x2")].plugins[Ba("0x32")]("TrackChangesEditing");this[Ba("0x2")][Ba("0xc")][Ba("0x31")](r[Ba("0x27")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t[Ba("0x1")](o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x29")](t,{commandParams:[e]},[],o)}}))}[Ba("0x5")](t,e,n){const o=e[0][Ba("0xb")][Ba("0x12")],s=n.commandParams[0];this[Ba("0x2")][Ba("0xc")].change((e=>{for(const n of t)void 0!==s[n]?e[Ba("0x25")](n,s[n],o):e[Ba("0x1a")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x22")])switch(t[Ba("0xe")]){case Ba("0x1d"):return{type:Ba("0x10"),content:Yo(this[Ba("0x2")][Ba("0x1b")],Ba("0x6"))};case Ba("0x1e"):return{type:Ba("0x10"),content:Yo(this[Ba("0x2")][Ba("0x1b")],"*Format:* change table cell properties")}}}[Ba("0x11")](t,e){const n=this[Ba("0x2")][Ba("0x0")][Ba("0x32")]("TrackChangesEditing");for(const o of n.getSuggestions({skipNotAttached:!0})){const n=o[Ba("0x2e")]();if(o[Ba("0xe")]===e&&n===t)return o}return null}}const Ua=["item","isInContent","isAtEnd","isEqual","discardSuggestion","track-changes-suggestion-data-mismatch","getChangedMarkers","sort","accept","markInlineFormat","ck-suggestion-marker-","formatBlock:","removed","document","isRemovable","oldRange","registerPostFixer","getRanges","suggestion-type","markers","_joinSuggestions","change:data","external:","options","_mergeNestedSuggestions","isAtStart","from","markerToHighlight","delete","join","getSuggestions","group","getWalker","forceDefaultExecution","end","getIntersection","dataReady","trackChanges","getFirstRange","_getAuthorFromId","detach","elementEnd","editor","after","insertion:accept","hasComments","addSuggestionData","getRange","_breakSuggestionMarker","suggestion:","parent","catch","getItems","for","CommentsRepository","addMarkerName","_handleNewSuggestionMarker","splitPosition","writer","chain","discardSelectedSuggestions","_suggestions","filter","isInsideObject","ready","highest","toViewElement","isMultiRange","setAttribute","getFirstMarker","commands","addMarker","data-suggestion","getAncestors","isBlock","addSuggestion","_createSuggestion","removeMarkers","add","change:_saved","updateMarker","update:suggestion","high","isAfter","formatBlock:chain","formatBlock","targetPosition","_setSuggestionRange","refresh","subType","forward","_descriptionFactory","addCommentThread","remove","formatBlock:discard","insertion","config","isCollapsed","isNextTo","isExternal","getSuggestion","_checkSuggestionCorrectness","data","acceptSuggestion","removeClass","trackChanges.trackFormatChanges","newRange","hasSuggestion","getShiftedBy","documentSelection","markerReady","getAllAdjacentSuggestions","stop","creator","isBefore","formatInline:join","position","PENDING_ACTION_SUGGESTION","substr","range","showSuggestionHighlights","split","isObject","containsItem","createPositionAfter","isDocumentOperation","hasCommentThread","_suggestionState","getNearestSelectionRange","isOwn","formatBlock:join","resolve","createRange","attributes","updateSuggestion","markBlockFormat","_getSuggestionData","set","isSelectable","TrackChangesEditing","fromRange","suggestion","length","push","open","normal","start","notReady","skipNestingCheck","_removeSuggestion","previous","enableCommand","root","_updateSuggestionData","conversion","get","formatInline","_addSuggestionMarker","default","fetchCommentThread","applyOperation","nodeBefore","then","_commentsRepository","fire","element","listenTo","elementToElement","commandName","getDifference","isUndo","_customCallbacks","change","size","_saved","splice","some","getAttribute","activeMarkers","addRange","lowest","setSelection","includes","markMultiRangeInsertion","_isForcedDefaultExecutionBlock","getMarkers","getSuggestionCallback","removeAttribute","adapter","trackChangesCommand","formatGroupId","track-changes-suggestion-not-found","authoredAt","createdAt","_suggestionFactory","addClass","$graveyard","_registerDefaultCallbacks","acceptAllSuggestions","addHighlight","getLastMatchingPosition","error-saving-suggestion-data-suggestion-discarded","rootName","formatInline:discard","addComment","addUser","editingDowncast","editing","originalSuggestionId","rethrowUnexpectedError","type","discard","nodeAfter","deletion:","formatInline:","_trackFormatChanges","consumable","createPositionAt","track-changes-user-not-found","marker-count","rejected","backward","insertion:join","insertion:","setTo","acceptSelectedSuggestions","PendingActions","deletion:chain","_editor","widget","trackChanges.mergeNestedSuggestions","name","getUser","markerName","author","_adapter","_enabledCommands","suggestionChanged","model","_findSuggestions","enableReadOnlyMode","formatBlock:accept","schema","getCustomProperty","ck-suggestion-marker","has","formatInline:chain","value","_refreshSuggestionsChain","bindElementToMarker","define","enqueueChange","upcast","markerNameToElements","multi","containsRangeInObject","isLimit","$marker","$textProxy","batch","removeMarker","insertContent","markerToData","createElement","addMarker:suggestion","track-changes-adapter-missing-getsuggestion","plugins","moveTargetPosition","consume","containsRange","always","deletion","values","deletion:discard","markDeletion","toJSON","move","suggestionLoaded","createPositionBefore","_cutOutSuggestionMarker","collaboration.channelId","_splitMarkerName","@external","never","markInsertion","deleteContent","multipleBlocks","_defaultCallbacks","containsPosition","execute","track-changes-adapter-already-set","mapper","removeComment","addMarker:suggestion:formatBlock","dataToMarker","accepted","init","howMany","every","map","getMultiRangeId","next","ck-suggestion-marker--active","_onDiscard","_addThreadToSuggestion","authorName","locale","low","commentThread","createSelection","_rangeIsInLocalUserInsertion","_model","Users","dataDowncast","selection","_setSuggestionData","differ","insertion:chain","discardAllSuggestions"];var Ga,Ha;Ga=Ua,Ha=256,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Va=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get requires(){return[Va("0x75"),r.Users,t.PendingActions,cs,Cs,Rs,Ms,Bs,Ws,Js,er,Oa,xr,ur,br,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get pluginName(){return Va("0xca")}constructor(t){function e(t){return t.map((t=>String.fromCharCode(t))).join("")}super(t),this.set(Va("0xf1"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Va("0x37")][Va("0xeb")]((()=>{for(const e of[...s,...o])this[Va("0x37")][Va("0x52")][Va("0x134")](e)&&t[Va("0x10e")].reconvertMarker(e)}))})),this[Va("0x9a")]=new ss(this.editor[Va("0x12d")].schema,this[Va("0x69")][Va("0x32")]),this[Va("0x12a")]=null,this[Va("0x101")]=new za(this[Va("0x69")]),this._suggestions=new Map,this[Va("0xe2")]=t[Va("0xa")].get("CommentsRepository"),this[Va("0x12b")]=new Set,this[Va("0x37")]=this[Va("0x69")][Va("0x12d")],this._suggestionState=new WeakMap,this[Va("0xf7")]=!1,t.config[Va("0x139")](Va("0xa8"),Va("0xdd")),this[Va("0x116")]=t[Va("0x9f")][Va("0xda")](Va("0xa8")),t[Va("0x9f")].define(Va("0x125"),!0),this._mergeNestedSuggestions=t[Va("0x9f")][Va("0xda")](Va("0x125")),this[Va("0xfc")]=new u(t,this[Va("0x12b")]),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,53,54])}[Va("0x28")](){const t=this.editor;t[Va("0xd9")].for(Va("0x10d"))[Va("0x5a")]({model:Va("0xcc"),view:t=>{const{id:e,type:n}=this[Va("0x19")](t[Va("0x128")]),o=[Va("0x133"),Va("0x49")+n];let s=3e3;return this[Va("0xf1")][Va("0xf5")](t.markerName)&&(o.push("ck-suggestion-marker--active"),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Va("0xd9")].for(Va("0x39"))[Va("0x8d")]((e=>{e.on(Va("0x8"),((e,n,o)=>{if(!o[Va("0x56")][Va("0xb7")])return;const s=n[Va("0x3f")];if(!s)return;const r=o.mapper[Va("0x81")](s);t[Va("0x12d")].schema.isObject(s)&&r&&!r[Va("0x132")](Va("0x124"))&&r.is("containerElement")&&(0,x.toWidget)(r,o[Va("0x79")])}),{priority:Va("0x91")})})),t[Va("0xd9")][Va("0x74")]("dataDowncast")[Va("0x5a")]({model:Va("0xcc"),view:(t,e)=>{if(!e[Va("0x56")][Va("0xb7")])return null;const{type:n}=this[Va("0x19")](t[Va("0x128")]);return{classes:[Va("0x133"),Va("0x49")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Va("0x3f")])return;if(o[Va("0x3f")].is(Va("0x3a")))return void s[Va("0x117")][Va("0xc")](o.item,n[Va("0x126")]);const r=s[Va("0x23")][Va("0x81")](o[Va("0x3f")]);if(!o[Va("0x3f")].is(Va("0xe4"))||!t[Va("0x12d")][Va("0x131")][Va("0x89")](o[Va("0x3f")])||r[Va("0x132")](Va("0x106")))return;const{id:i}=this._splitMarkerName(o.markerName);s[Va("0x79")][Va("0x102")]([Va("0x133"),"ck-suggestion-marker-formatBlock"],r),s[Va("0x79")][Va("0x83")]("data-suggestion",i,r),s[Va("0x23")][Va("0x138")](r,o.markerName),e&&(this.activeMarkers.includes(o[Va("0x128")])?s.writer[Va("0x102")](Va("0x2e"),r):s[Va("0x79")][Va("0xa7")](Va("0x2e"),r));for(const e of t[Va("0x12d")].createRangeIn(o[Va("0x3f")])[Va("0x73")]())s[Va("0x117")][Va("0xc")](e,n[Va("0x126")]);s[Va("0x117")][Va("0xc")](o.item,n[Va("0x126")])};t[Va("0xd9")][Va("0x74")](Va("0x39"))[Va("0x8d")]((t=>{t.on(Va("0x25"),((t,e,o)=>{o[Va("0x56")][Va("0xb7")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Va("0x80")})})),t.conversion[Va("0x74")](Va("0x39"))[Va("0x6")]({model:Va("0xcc"),view:(t,e)=>e[Va("0x56")][Va("0xb7")]?null:{group:Va("0xcc"),name:t[Va("0xb5")](11)}}),t[Va("0xd9")][Va("0x74")](Va("0x13b"))[Va("0xe6")]({view:{name:Va("0xcc"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Va("0x70")+t[Va("0xf0")](Va("0x51"))+":"+t[Va("0xf0")]("id");return t[Va("0xf0")](Va("0x11a"))&&(n+=":"+t.getAttribute("marker-count")),e[Va("0x7")](Va("0x1"),{"data-name":n})}}),t[Va("0xd9")][Va("0x74")](Va("0x13b"))[Va("0x26")]({view:Va("0xcc")}),t.conversion[Va("0x74")](Va("0x10d")).add((t=>{t.on(Va("0x25"),n(),{priority:Va("0x91")})})),t[Va("0xd9")][Va("0x74")](Va("0x10d"))[Va("0x8d")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n.mapper[Va("0x13c")](e[Va("0x128")]);if(o)for(const t of o)t[Va("0x132")]("addHighlight")||(n[Va("0x79")].removeClass([Va("0x133"),"ck-suggestion-marker-formatBlock","ck-suggestion-marker--active"],t),n[Va("0x79")][Va("0xfa")](Va("0x87"),t),n[Va("0x23")].unbindElementFromMarkerName(t,e[Va("0x128")]))}),{priority:Va("0x91")})})),t[Va("0x12d")][Va("0x4c")].registerPostFixer((e=>{let n=!1;const o=Array[Va("0x59")](t[Va("0x12d")][Va("0x4c")][Va("0x3c")][Va("0x45")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Va("0x19")](x);if("suggestion"!==o)continue;const d=this[Va("0x7c")].get(l);if(null!=a.newRange)if(Va("0xdb")==c&&(n=n||Xa(a[Va("0xa9")],x,e,t[Va("0x12d")][Va("0x131")])),a.newRange[Va("0xa0")]||"$graveyard"==a.newRange[Va("0xd7")][Va("0x109")]||Va("0x94")==c&&!Ja(a[Va("0xa9")])||Va("0xf")==c&&(qa(i=a[Va("0xa9")])||(r=i)[Va("0xd1")].parent==r.end[Va("0xe0")]&&r[Va("0xd1")][Va("0x41")]))e[Va("0x4")](x),n=!0;else{if(!d||!d[Va("0x40")])continue;s.add(d)}}var r,i;return s[Va("0xec")]>0&&(n=!!this._joinWithAdjacentSuggestions(s)||n),n})),t[Va("0x12d")][Va("0x4c")][Va("0x4f")]((e=>{let n=!1;for(const o of t[Va("0x12d")][Va("0x4c")][Va("0x3c")].getChanges()){if("insert"!=o[Va("0x111")])continue;const s=o[Va("0xb3")].getShiftedBy(o.length);if(s.isAtEnd)for(const r of this[Va("0x7c")][Va("0x10")]()){if(r.isMultiRange||!r[Va("0x40")])continue;if("formatBlock"!=r[Va("0x111")])continue;const i=r[Va("0x65")]();if(i[Va("0xd1")].parent!=i[Va("0x61")][Va("0x71")]&&i[Va("0x61")].isEqual(o[Va("0xb3")])){const o=t.model[Va("0xc3")](i[Va("0xd1")],s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Va("0x12d")].markers.on(Va("0x90"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[Va("0x126")]),n=this[Va("0x7c")][Va("0xda")](t);n&&n[Va("0x76")](e[Va("0x126")])}})),t[Va("0x12d")][Va("0x4c")].on(Va("0x54"),(()=>{const e=Array[Va("0x59")](t.model[Va("0x4c")].differ[Va("0x45")]())[Va("0x7d")]((t=>Va("0xcc")===this[Va("0x19")](t[Va("0x126")])[Va("0x5e")]));if(0===e.length)return;e[Va("0x46")](((t,e)=>{const n=t[Va("0xa5")][Va("0x4e")],o=e.data[Va("0x4e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Va("0xd1")][Va("0xb1")](o[Va("0xd1")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Va("0x19")](t);if(null===s.oldRange){const e=this._handleNewSuggestionMarker(t);o.add(e)}else{const t=this[Va("0x7c")][Va("0xda")](e);null!==s.newRange||t[Va("0x40")]?(n[Va("0x8d")](t.head),o[Va("0x8d")](t)):this[Va("0xd4")](t)}}o[Va("0xec")]>0&&this[Va("0x137")](o);for(const t of n)this.fire("suggestionChanged",t)})),t[Va("0x12d")].on(Va("0xdf"),((e,n)=>{const o=n[0];if(!this[Va("0x7c")][Va("0xec")])return;if(!o[Va("0xbc")])return;if(o[Va("0x3")][Va("0xe9")]||!o[Va("0x3")].isLocal)return;let s,r;switch(o[Va("0x111")]){case"insert":s=t[Va("0x12d")][Va("0x118")](o[Va("0xb3")]),r=s[Va("0xab")](o[Va("0x29")]);break;case Va("0xb8"):s=t.model[Va("0x118")](o[Va("0x78")]),r=t[Va("0x12d")].createPositionAt(o[Va("0xb")]);break;case Va("0x14"):s=t.model[Va("0x118")](o[Va("0x95")]),r=s[Va("0xab")](o.howMany);break;default:return}const i=t[Va("0x12d")].createRange(s,r);t[Va("0x12d")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Va("0x82")])continue;if("formatInline"==t[Va("0x111")])continue;const n=t.data&&t[Va("0xa5")][Va("0x1e")];(Va("0x94")!=t[Va("0x111")]||Va("0xb8")==o.type&&!n)&&(e[Va("0x13e")]||Va("0x9e")==t.type&&e[Va("0xc0")]||t[Va("0x65")]()[Va("0xd")](i)&&this[Va("0x6f")](t,s,r))}}))}),{priority:Va("0xf3")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[Va("0xf7")])return;if(!this[Va("0xfc")].value)return;if(o.isCollapsed)return;const r=t.model[Va("0x131")],{start:i,end:x}=o[Va("0x65")](),a=i[Va("0x113")]&&r[Va("0x0")](i[Va("0x113")])?null:r[Va("0xbf")](i,Va("0x99")),c=x[Va("0xe0")]&&r[Va("0x0")](x.nodeBefore)?null:r[Va("0xbf")](x,Va("0x11c")),l=t[Va("0x12d")].createRange(a?a.start:i,c?c[Va("0x61")]:x);t[Va("0x12d")][Va("0xeb")]((e=>{this[Va("0x12")](l);const n=t[Va("0x12d")][Va("0x131")][Va("0xbf")](l[Va("0xd1")]);o.is(Va("0xac"))?e.setSelection(n):o[Va("0x11f")](n)})),e[Va("0xaf")]()}),{priority:e.priorities[Va("0xd0")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Va("0xcd")]-1];o&&o[Va("0x60")]||this[Va("0xf7")]||this[Va("0xfc")][Va("0x136")]&&(t[Va("0x12d")].change((()=>{let o=t[Va("0x12d")][Va("0x5")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const s=o[Va("0x61")].nodeBefore,r=t[Va("0x12d")].schema;s&&r[Va("0x89")](s)&&!r.isObject(s)&&(o=t[Va("0x12d")][Va("0xc3")](o[Va("0xd1")],t[Va("0x12d")][Va("0x118")](s,Va("0x61")))),this[Va("0x1c")](o)})),e[Va("0xaf")]())}),{priority:Va("0x91")}),this[Va("0x69")][Va("0x85")][Va("0x8d")]("trackChanges",this[Va("0xfc")]),this[Va("0xd6")](Va("0x64"));const o=new p(t,this[Va("0x7c")]);t.commands.add(Va("0xa6"),o),this[Va("0xd6")](Va("0xa6"));const s=new C(t,this[Va("0x7c")]);t[Va("0x85")][Va("0x8d")](Va("0x43"),s),this[Va("0xd6")](Va("0x43")),t[Va("0x85")][Va("0x8d")](Va("0x105"),new F(t,o,this[Va("0x7c")])),this[Va("0xd6")](Va("0x105")),t.commands[Va("0x8d")](Va("0x3e"),new F(t,s,this[Va("0x7c")])),this[Va("0xd6")]("discardAllSuggestions"),t.commands[Va("0x8d")](Va("0x120"),new U(t,o,this[Va("0x7c")])),this[Va("0xd6")](Va("0x120")),t[Va("0x85")][Va("0x8d")](Va("0x7b"),new U(t,s,this[Va("0x7c")])),this[Va("0xd6")](Va("0x7b"));const r=t[Va("0xa")].get(Va("0x75"));this[Va("0xe5")](r,Va("0x10b"),((t,{threadId:e})=>{const n=this[Va("0x7c")][Va("0xda")](e);n&&n.commentThread&&1===n[Va("0x34")][Va("0xcd")]&&this[Va("0xd8")](e,{hasComments:!0})}),{priority:"low"}),this[Va("0xe5")](r,Va("0x24"),((t,{threadId:e})=>{const n=this[Va("0x7c")][Va("0xda")](e);n&&n[Va("0x34")]&&!n[Va("0x34")][Va("0xcd")]&&this[Va("0xd8")](e,{hasComments:!1})}),{priority:Va("0x33")})}set[Va("0xfb")](t){if(this[Va("0x12a")])throw new e.CKEditorError(Va("0x22"),this);this._adapter=t}get[Va("0xfb")](){return this[Va("0x12a")]}[Va("0x5d")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[Va("0x10")]())t&&!e[Va("0x40")]||n.push(e);return e?n[Va("0x2b")]((t=>t[Va("0x13")]())):n}[Va("0xa3")](t){const n=this[Va("0x7c")][Va("0xda")](t);if(!n)throw new e.CKEditorError(Va("0xfe"),this);return n}[Va("0xaa")](t){return this[Va("0x7c")][Va("0x134")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[Va("0x111")][Va("0xb8")](":"),i=this[Va("0x7c")][Va("0xda")](n)||this[Va("0x8b")](s,r,n,e,o);if(this[Va("0x30")](i),this[Va("0xa4")](i,s,r||null,e),i.createdAt=t[Va("0x100")],o&&o[Va("0x1a")]){const t=o["@external"],e=this._getExternalAuthor(t[Va("0x31")]);i[Va("0xff")]=t[Va("0x100")],i.author=e,i[Va("0xa2")]=!0}else i[Va("0xff")]=t[Va("0x100")];switch(t.data&&(i[Va("0xa5")]=t[Va("0xa5")]),t.attributes&&(i.attributes=t.attributes),this[Va("0x12a")]&&this[Va("0x12a")][Va("0x8a")]||(i[Va("0xed")]=!0),this[Va("0xbe")][Va("0xda")](i)){case Va("0xd2"):this._suggestionState[Va("0xc8")](i,Va("0x63"));break;case"markerReady":i[Va("0x40")]?(this._suggestionState[Va("0xc8")](i,Va("0x7f")),this.fire(Va("0x15"),i)):this[Va("0xbe")][Va("0xc8")](i,Va("0x4b"))}return i}[Va("0xa6")](t){this[Va("0x60")]((()=>{this[Va("0x69")][Va("0x12d")][Va("0xeb")]((()=>{for(const e of t[Va("0xae")]())e[Va("0x47")]()}))}))}[Va("0x43")](t){this[Va("0x60")]((()=>{this[Va("0x69")].model.change((()=>{for(const e of t[Va("0xae")]())e[Va("0x112")]()}))}))}enableCommand(t,n){const o=this[Va("0x69")][Va("0x85")][Va("0xda")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this._enabledCommands[Va("0x8d")](o),n&&o.on("execute",((t,e)=>{this[Va("0xfc")][Va("0x136")]&&(this[Va("0xf7")]||e[Va("0xcd")]>0&&e[e[Va("0xcd")]-1]&&e[e[Va("0xcd")]-1].forceDefaultExecution||(n(((...t)=>o[Va("0x21")](...t,{forceDefaultExecution:!0})),...e),t[Va("0xaf")]()))}),{priority:"high"})}[Va("0x60")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this[Va("0xf7")]=!1),o&&e.CKEditorError[Va("0x110")](o,this),n}[Va("0x1c")](t,n=null,o={}){if(t[Va("0xa0")])return null;const s=this[Va("0x69")][Va("0xa")].get(Va("0x38")).me;for(const{suggestion:e,meta:o}of this[Va("0x12e")](t,Va("0x9e")))if(o[Va("0xc0")]){if(!o[Va("0xa1")]){if(!this._mergeNestedSuggestions&&o[Va("0x13e")])continue;return e}if(n==e.subType){const n=e[Va("0x65")]();return n.start[Va("0x42")](t[Va("0x61")])?this[Va("0x96")](e,this[Va("0x37")][Va("0xc3")](t[Va("0xd1")],n[Va("0x61")])):this[Va("0x96")](e,this._model[Va("0xc3")](n.start,t[Va("0x61")])),e}}const r=(0,e.uid)(),i=s.id,x=n?"insertion:"+n:Va("0x9e"),a=this[Va("0x3b")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Va("0xdc")](x,r,i,t),a}[Va("0xf6")](t,n="multi",o={}){const s=this[Va("0x69")][Va("0xa")][Va("0xda")](Va("0x38")).me,r=this[Va("0x101")][Va("0xf9")](Va("0x9e"),n,Va("0x5c"));for(const e of this[Va("0x5d")]())if(e[Va("0x129")].id==s.id&&"insertion"==e[Va("0x111")]&&e[Va("0x98")]==n&&(r(e[Va("0x50")](),t)||r(t,e[Va("0x50")]()))){for(const n of t)e[Va("0xf2")](n);return e}if(this[Va("0x57")])for(const e of t)for(const{suggestion:n,meta:o}of this[Va("0x12e")](e,Va("0x9e"))){if(!o[Va("0xc0")])continue;let e=!0;for(const o of n[Va("0x50")]())for(const n of t)if(!o.containsRange(n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=Va("0x11e")+n,c=this[Va("0x3b")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Va("0xdc")](a,i,x,e,Zo[Va("0x2c")]());return c}[Va("0x48")](t,n,o=null,s={}){if(o=o||$a(n),t.isCollapsed)return null;if(Va("0x1b")===this[Va("0x116")]){const e=this[Va("0x101")][Va("0xf9")](Va("0xdb"),o,Va("0x47"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this.editor[Va("0xa")][Va("0xda")](Va("0x38")).me,i=[];if(Va("0xe")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,"insertion"))n.isOwn&&!n[Va("0x7e")]&&i[Va("0xce")](...e[Va("0x50")]());const x=function(t,e){const n=[];for(const o of e){const e=t[Va("0x62")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Va("0xcd")];){const o=n[e][Va("0xe8")](t);n.splice(e,1,...o),e+=o.length}}return n}(t,i);x[Va("0xcd")]&&this._model[Va("0xeb")]((()=>{for(const t of x){const e=this._suggestionFactory[Va("0xf9")](Va("0xdb"),o,Va("0x47"));this[Va("0x60")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Va("0xd1")],a=t[Va("0x61")];for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0xdb"))){if(!n.isOwn)continue;if(e[Va("0x98")]!=o)continue;const s=e[Va("0x65")]();if(s[Va("0xd")](t,!0))return null;x=x.isBefore(s[Va("0xd1")])?x:s.start,a=a[Va("0x92")](s[Va("0x61")])?a:s.end,i?s[Va("0xd1")][Va("0xb1")](i[Va("0x65")]()[Va("0xd1")])?(i.removeMarkers(),i=e):e[Va("0x8c")]():i=e}const c=this[Va("0x37")][Va("0xc3")](x,a);if(i)this[Va("0x96")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Va("0x3b")]({id:t,type:"formatInline:"+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Va("0xdc")](Va("0x115")+o,t,i,c)}}return null}[Va("0xc6")](t,n,o=[],s=null,r={}){n[Va("0xfd")]||(n[Va("0xfd")]=n[Va("0xe7")]),n[Va("0x1e")]=t.is(Va("0xb6")),s=s||$a(n);const i=o[Va("0x2b")]((t=>Qa(t,this[Va("0x37")]))),x=t.is(Va("0xb6"))?t:Qa(t,this._model);if("never"===this[Va("0x116")]){const t=this[Va("0x101")][Va("0xf9")](Va("0x94"),s,"accept");return this[Va("0x60")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[Va("0x116")]){const t=this._suggestionFactory[Va("0xf9")](Va("0x94"),s,Va("0x47"));return this[Va("0x60")]((()=>t([x],n,r))),null}let c=null,l=x[Va("0xd1")],d=x[Va("0x61")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e.isOwn||e.isNextTo||e[Va("0x13e")]||e[Va("0x7e")])continue;if(t[Va("0xa5")].formatGroupId!=n[Va("0xfd")])continue;const o=t[Va("0x65")]();if(t[Va("0x98")]==s){if(o[Va("0xd")](x,!0))return null;l=l[Va("0xb1")](o[Va("0xd1")])?l:o.start,d=d.isAfter(o[Va("0x61")])?d:o[Va("0x61")],c?o[Va("0xd1")][Va("0xb1")](c.getFirstRange()[Va("0xd1")])?(c[Va("0x8c")](),c=t):t[Va("0x8c")]():c=t}else{const e=x[Va("0x62")](o);this[Va("0x17")](t,e)}}const u=this.editor[Va("0xa")].get(Va("0x38")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Va("0x96")](c,this._model.createRange(l,d)),c;{const t=this[Va("0x3b")]({id:g,type:Va("0x4a")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Va("0xdc")](Va("0x4a")+s,g,m,this[Va("0x37")].createRange(l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[Va("0xfd")]||(n[Va("0xfd")]=n.commandName);const i=t[0];n[Va("0x1e")]=i.is(Va("0xb6")),s=s||$a(n);const x=o.map((t=>Qa(t,this[Va("0x37")]))),a=i.is(Va("0xb6"))?t:t.map((t=>Qa(t,this[Va("0x37")])));if(Va("0x1b")===this[Va("0x116")]){const t=this[Va("0x101")][Va("0xf9")](Va("0x94"),s,Va("0x47"));return this[Va("0x60")]((()=>t(a,n,r))),null}x[Va("0xce")](...a);let c=!0;for(const t of x)if(!this[Va("0x36")](t)){c=!1;break}if(c&&Va("0xe")!==this[Va("0x116")]){const t=this[Va("0x101")].getSuggestionCallback(Va("0x94"),s,"accept");return this.forceDefaultExecution((()=>t(a,n,r))),null}const l=this[Va("0x69")].plugins[Va("0xda")]("Users").me;for(const t of this[Va("0x5d")]()){if(t.author.id!=l.id)continue;if("formatBlock"!=t[Va("0x111")]||t[Va("0xa5")].formatGroupId!=n[Va("0xfd")])continue;const e=t[Va("0x98")]==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Va("0xf8")]()){const r=s[Va("0x6e")]();if(o[Va("0x42")](r)){e?(a[Va("0xee")](n,1),n--):t[Va("0x4")](s[Va("0x126")]);break}}}}if(0==a[Va("0xcd")])return null;const d=this._suggestionFactory[Va("0xf9")](Va("0x94"),s,Va("0x5c"));for(const t of this[Va("0x5d")]())if(t[Va("0x129")].id==l.id&&"formatBlock"==t[Va("0x111")]&&t[Va("0xa5")][Va("0xfd")]==n.formatGroupId&&t[Va("0x98")]==s&&(d(t.getRanges(),a)||d(a,t[Va("0x50")]()))){for(const e of a)t[Va("0xf2")](e);return t}const u=(0,e.uid)(),g=l.id,m=Va("0x4a")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Va("0xdc")](m,u,g,t,Zo[Va("0x2c")]());return f}[Va("0x12")](t,n=null,o={}){if(t[Va("0xa0")])return null;const s=this[Va("0x69")][Va("0xa")].get(Va("0x38")).me,r=new i.LiveRange(t[Va("0xd1")],t[Va("0x61")]);for(const{suggestion:t,meta:e}of this[Va("0x12e")](r,Va("0x9e")))if(e.isOwn&&!e[Va("0xa1")])if(t[Va("0x82")]){const e=t[Va("0x50")]()[Va("0x7d")]((t=>"$graveyard"!=t[Va("0xd7")][Va("0x109")]));if(e[Va("0x2a")]((t=>r.containsRange(t,!0)))&&t[Va("0x112")](),e[Va("0xef")]((t=>t.containsRange(r,!0)))){const t=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,Va("0x47"));return this[Va("0x60")]((()=>t([r],null,o))),null}}else{const e=r[Va("0x62")](t[Va("0x65")]());null!==e&&t[Va("0x2f")]([e],null,o)}if(r[Va("0x67")](),r[Va("0xa0")]||"$graveyard"==r.root[Va("0x109")])return null;let x=null,a=r[Va("0xd1")],c=r.end;for(const{suggestion:t,meta:e}of this[Va("0x12e")](r,Va("0xf")))if(e[Va("0xc0")])if(t[Va("0x82")]&&this[Va("0x57")]){let e=!0;for(const n of t[Va("0x50")]()){if(n[Va("0xd")](r,!0))return t;r[Va("0xd")](n)||(e=!1)}e&&t[Va("0x112")]()}else{const n=t[Va("0x65")]();if(n.containsRange(r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[Va("0xb1")](n[Va("0xd1")])?a:n[Va("0xd1")],c=c.isAfter(n[Va("0x61")])?c:n[Va("0x61")],x?n.start[Va("0xb1")](x[Va("0x65")]().start)?(x[Va("0x8c")](),x=t):t.removeMarkers():x=t}if(x)return this._setSuggestionRange(x,this._model[Va("0xc3")](a,c)),x;{const t=(0,e.uid)(),r=this[Va("0x37")][Va("0xc3")](a,c),i=s.id,x=n?Va("0x114")+n:Va("0xf"),l=this[Va("0x3b")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}markMultiRangeDeletion(t,n=Va("0x13d"),o={}){const s=this[Va("0x69")][Va("0xa")][Va("0xda")]("Users").me,r=t.map((t=>new i.LiveRange(t[Va("0xd1")],t[Va("0x61")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0x9e")))n[Va("0xc0")]&&!n[Va("0xa1")]&&x[Va("0x8d")](e);for(const e of x)if(e[Va("0x82")]){const s=e.getRanges();if((!e[Va("0xc4")]||!e[Va("0xc4")][Va("0xd3")])&&s[Va("0x2a")]((t=>r[Va("0xef")]((e=>e[Va("0xd")](t,!0)))))&&e[Va("0x112")](),r[Va("0x2a")]((t=>s[Va("0xef")]((e=>e[Va("0xd")](t,!0)))))){const e=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,Va("0x47"));return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[Va("0x65")]();if(r.some((e=>e[Va("0xd")](t,!0)))&&e[Va("0x112")](),r[Va("0x2a")]((e=>t[Va("0xd")](e,!0)))){const t=this[Va("0x101")][Va("0xf9")](Va("0xf"),n,"accept");return this[Va("0x60")]((()=>t(r,null,o))),null}}const a=this[Va("0x101")][Va("0xf9")]("deletion",n,Va("0x5c"));let c=null;for(const t of this[Va("0x5d")]())if(t[Va("0x129")].id==s.id&&t.isInContent&&Va("0xf")==t[Va("0x111")]&&t[Va("0x98")]==n&&(a(t[Va("0x50")](),r)||a(r,t.getRanges())))if(c){if(t[Va("0x34")]&&t[Va("0x34")].length)continue;for(const e of t[Va("0x50")]())c.isIntersectingWithRange(e)||c[Va("0xf2")](e);t[Va("0x8c")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[Va("0xf2")](e)}if(c)return c;x.clear();for(const t of r)for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,Va("0xf")))n[Va("0xc0")]&&x.add(e);for(const t of x){const e=t[Va("0x50")]();if((!o||!o[Va("0xd3")])&&r.every((t=>e[Va("0xef")]((e=>e.containsRange(t,!0))))))return t;(!t[Va("0xc4")]||!t[Va("0xc4")][Va("0xd3")])&&e[Va("0x2a")]((t=>r[Va("0xef")]((e=>e.containsRange(t,!0)))))&&t[Va("0x112")]()}const l=(0,e.uid)(),d=s.id,u=Va("0x114")+n,g=this[Va("0x3b")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Va("0xa0")]||Va("0x103")==t[Va("0xd7")][Va("0x109")]||this[Va("0xdc")](u,l,d,t,Zo[Va("0x2c")]());return g}[Va("0x96")](t,e){const n=t[Va("0x84")]();this[Va("0x37")][Va("0xeb")]((t=>{t.updateMarker(n,{range:e})}))}[Va("0x30")](t){const e=t.id,n=this[Va("0x69")][Va("0x9f")][Va("0xda")](Va("0x18"));this[Va("0xe2")][Va("0xbd")](e)||this[Va("0xe2")][Va("0x9b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Va("0xe2")].getCommentThread(e);o.unbind(Va("0x4d")),o.isRemovable=!1,t[Va("0x34")]=o}[Va("0xa4")](t,n,o,s){if(t[Va("0x111")]!=n||t[Va("0x98")]!=o||t[Va("0xb0")].id!=s)throw this[Va("0x69")][Va("0x12f")](Va("0x44")),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}[Va("0x17")](t,n){const o=t[Va("0x65")]();if(n[Va("0x42")](o))t.removeMarkers();else if(o[Va("0xd")](n)){const s=this[Va("0x37")][Va("0x118")](n[Va("0xd1")][Va("0xe0")],Va("0x61"));this._setSuggestionRange(t,this._model[Va("0xc3")](o[Va("0xd1")],s));const r=(0,e.uid)(),i=t[Va("0xb0")].id,x=t[Va("0x111")]+":"+t[Va("0x98")];this[Va("0x3b")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Va("0xa5")],attributes:t[Va("0xc4")]});const a=this[Va("0x37")][Va("0x118")](n.end[Va("0x71")],Va("0x6a")),c=this[Va("0x37")][Va("0xc3")](a,o[Va("0x61")]);this[Va("0xdc")](x,r,i,c)}else if(o[Va("0x20")](n[Va("0xd1")])){const e=this[Va("0x37")][Va("0x118")](n.start.nodeBefore,"end");this[Va("0x96")](t,this[Va("0x37")].createRange(o[Va("0xd1")],e))}else{const e=this[Va("0x37")][Va("0x118")](n[Va("0x61")][Va("0x71")],Va("0x6a"));this[Va("0x96")](t,this[Va("0x37")][Va("0xc3")](e,o[Va("0x61")]))}}[Va("0x36")](t){for(const{suggestion:e,meta:n}of this[Va("0x12e")](t,"insertion")){if(!n.isOwn)continue;const o=e[Va("0x50")]();for(const e of o)if(!t[Va("0xe8")](e)[Va("0xcd")])return!0}return!1}[Va("0x66")](t){const n=this.editor[Va("0xa")][Va("0xda")](Va("0x38"))[Va("0x127")](t);if(!n)throw new e.CKEditorError(Va("0x119"),this);return n}_getExternalAuthor(t){const e=this[Va("0x69")][Va("0xa")].get(Va("0x38")),n=(0,r.hashObject)(Va("0x55")+t);return e[Va("0x127")](n)||e[Va("0x10c")]({id:n,name:t})}[Va("0x8b")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Va("0x101")].buildSuggestion(t,e,n,r,s,(t=>this[Va("0xd8")](n,{attributes:t})));return this[Va("0xe5")](i,Va("0x47"),(()=>{this[Va("0xd8")](n,{state:Va("0x27")})}),{priority:Va("0x91")}),this[Va("0xe5")](i,Va("0x112"),(()=>{this._updateSuggestionData(n,{state:Va("0x11b")})}),{priority:Va("0x91")}),this[Va("0x7c")][Va("0xc8")](n,i),this._suggestionState.set(i,"notReady"),i}[Va("0x19")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[Va("0xcd")]<5?e[2]:e[3],authorId:e[Va("0xcd")]<5?e[3]:e[4],markerCount:6==e[Va("0xcd")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[Va("0x65")](),r=s[Va("0xd1")],i=s.end;this[Va("0x96")](t,this[Va("0x37")][Va("0xc3")](r,n));const x=(0,e.uid)(),a=t[Va("0xb0")].id,c=t[Va("0x111")]+(t[Va("0x98")]?":"+t.subType:"");this[Va("0x3b")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[Va("0xa5")]}),Va("0x94")==t[Va("0x111")]&&(o=this[Va("0x37")][Va("0x16")](o[Va("0x71")])),this[Va("0xdc")](c,x,a,this[Va("0x37")][Va("0xc3")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[Va("0x37")].schema,s=this.editor.plugins[Va("0xda")](Va("0x38")).me;for(const r of this[Va("0x5d")]())if(r[Va("0x40")]&&(!e||r[Va("0x111")]==e))for(const e of r[Va("0x50")]()){const i=t[Va("0xd1")][Va("0x42")](e[Va("0x61")])||t[Va("0x61")][Va("0x42")](e.start);if(i||t[Va("0x62")](e)){const x=t[Va("0xd")](e)&&Ka(o,e.start,t),a=e.containsRange(t)&&Ka(o,t.start,e);n[Va("0xce")]({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[Va("0xdc")](t,e,n,o,s){this[Va("0x37")][Va("0xeb")]((r=>{let i=Va("0x70")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Va("0x86")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Va("0xd4")](t){const e=t.previous,n=t[Va("0x2d")];t[Va("0xd5")]=null,null!=e&&(e[Va("0x2d")]=null),t[Va("0x2d")]=null,null!=n&&(n[Va("0xd5")]=null),"ready"==this[Va("0xbe")][Va("0xda")](t)&&(this[Va("0xbe")][Va("0xc8")](t,Va("0x4b")),this[Va("0xe3")]("suggestionUnloaded",t,e,n))}[Va("0x3b")](t){const n=t.id,o=this[Va("0x6d")](t);if(this._adapter&&this[Va("0x12a")][Va("0x8a")]){const s=this[Va("0x69")][Va("0xa")][Va("0xda")](Va("0x121")),r=o.hasComments,i=o.subType?o[Va("0x111")]+":"+o[Va("0x98")]:o[Va("0x111")],x=this[Va("0x69")].locale,a=s[Va("0x8d")](Yo(x,Va("0xb4"))),c={id:n,type:i,hasComments:r,data:t[Va("0xa5")]||null,originalSuggestionId:t[Va("0x10f")]||null,attributes:o.attributes};this[Va("0x12a")].addSuggestion(c).then((t=>{o[Va("0xed")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions[Va("0xda")](n)[Va("0x100")]=t.createdAt)}))[Va("0x72")]((t=>{throw(0,e.logWarning)(Va("0x108")),this[Va("0x69")].model[Va("0x13a")]({isUndoable:!1},(()=>{o.discard()})),o.stopListening(),this[Va("0x7c")][Va("0x5b")](o.id),this._suggestionState[Va("0x5b")](o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[Va("0xa")][Va("0xda")](Va("0x121")),o=this[Va("0xa3")](t);if(this._adapter&&this._adapter[Va("0xc5")])if(o[Va("0xed")]){const o=n.add(Yo(this.editor[Va("0x32")],"PENDING_ACTION_SUGGESTION"));this._adapter[Va("0xc5")](t,e)[Va("0xe1")]((()=>{n[Va("0x9c")](o)}))}else o.on(Va("0x8e"),(()=>{this._updateSuggestionData(t,e)}))}_getSuggestionData(t){if(!this._adapter||!this[Va("0x12a")][Va("0xa3")])throw new e.CKEditorError(Va("0x9"),this);return this[Va("0x12a")][Va("0xa3")](t)}[Va("0x77")](t){const{id:e,type:n,subType:o,authorId:s}=this[Va("0x19")](t),r=this._suggestions[Va("0xda")](e)||this[Va("0x8b")](n,o,e,s,{});switch(this[Va("0xa4")](r,n,o,s),this[Va("0xbe")][Va("0xda")](r)){case Va("0xd2"):this[Va("0xc7")](e)[Va("0xe1")]((t=>{let n=Promise[Va("0xc2")]();t[Va("0x6c")]&&(n=this[Va("0xe2")][Va("0xde")]({channelId:this[Va("0x69")].config[Va("0xda")]("collaboration.channelId"),threadId:e})),n[Va("0xe1")]((()=>{this.addSuggestionData(t)[Va("0xed")]=!0}))})),this[Va("0xbe")].set(r,Va("0xad"));break;case Va("0x4b"):this[Va("0xd8")](e,{state:Va("0xcf")});case"dataReady":this[Va("0xbe")][Va("0xc8")](r,Va("0x7f")),this.fire("suggestionLoaded",r);break;case Va("0x7f"):this[Va("0xe3")](Va("0x12c"),r)}return r[Va("0x76")](t),r}[Va("0x137")](t){const e=Array.from(t)[Va("0x7d")]((t=>!t[Va("0x82")])),n=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t[Va("0x82")])),o=n.filter((e=>!t[Va("0x134")](e))),s=new Map(n[Va("0x2b")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t[Va("0x111")],t.subType,Va("0x7a"))]))),r=new Map(n.map((t=>[t,t.getFirstRange()]))),i=new Set,x=new Set;for(let t=0;t<e.length;t++)a(e[t],e,t+1);for(let t=0;t<e[Va("0xcd")];t++)a(e[t],o,0);for(let t=0;t<e[Va("0xcd")];t++){const n=e[t];!x.has(n)&&n[Va("0xd5")]&&(n[Va("0xd5")].next===n&&(n[Va("0xd5")].next=null),n.previous=null),!i.has(n)&&n[Va("0x2d")]&&(n.next.previous===n&&(n[Va("0x2d")][Va("0xd5")]=null),n[Va("0x2d")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][Va("0x2d")]=n[1],n[1][Va("0xd5")]=n[0],i[Va("0x8d")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Va("0x129")].id!==e[Va("0x129")].id)return null;const n=s[Va("0xda")](t)(t,e,r.get(t),r[Va("0xda")](e));return n&&s[Va("0xda")](e)(t,e,r[Va("0xda")](t),r.get(e))?n[1].commentThread&&n[1][Va("0x34")][Va("0xcd")]?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array[Va("0x59")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[Va("0x7d")]((e=>!t[Va("0x134")](e))),s=new Map(e[Va("0x2b")]((t=>[t,this._suggestionFactory[Va("0xf9")](t[Va("0x111")],t[Va("0x98")],Va("0x5c"))]))),r=new Map(n[Va("0x2b")]((t=>[t,t[Va("0x50")]()])));for(let t=0;t<e[Va("0xcd")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Va("0xcd")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Va("0x111")]!==e.type||o.author.id!==e.author.id||o.subType!==e[Va("0x98")])continue;const x=s[Va("0xda")](e),a=r.get(e),c=r[Va("0xda")](o),l=e[Va("0x34")]&&e[Va("0x34")][Va("0xcd")],d=o[Va("0x34")]&&o.commentThread.length;if(!l&&x(c,a))return t[Va("0x53")](o,e),r[Va("0x5b")](e),!0;if(!d&&x(a,c))return t[Va("0x53")](e,o),r[Va("0x5b")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Va("0x82")])for(const n of e[Va("0x50")]())t[Va("0xf2")](n);else{const n=e[Va("0x65")]()[Va("0x61")];this._setSuggestionRange(t,this[Va("0x37")].createRange(t.getFirstRange()[Va("0xd1")],n))}e[Va("0x8c")]()}}class za{constructor(t){this[Va("0x123")]=t,this[Va("0x37")]=t[Va("0x12d")],this[Va("0xea")]=new Map,this[Va("0x1f")]=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[Va("0x37")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Va("0x47"))(...n),onDiscard:(...n)=>this[Va("0xf9")](t,e,Va("0x112"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[Va("0xea")].set(s,o)}[Va("0xf9")](t,e,n){const o=t+":"+e+":"+n;return this[Va("0xea")][Va("0xda")](o)||this[Va("0x1f")][Va("0xda")](t+":"+n)}[Va("0x104")](){const t=()=>{},e=t=>{t[Va("0x46")](((t,e)=>t[Va("0xd1")][Va("0xb1")](e[Va("0xd1")])?1:-1)),this[Va("0x37")][Va("0xeb")]((e=>{for(const n of t){let t;t=n[Va("0x61")][Va("0x41")]&&n[Va("0x61")][Va("0x71")]==n[Va("0xd1")][Va("0x113")]?e[Va("0x35")](n.start[Va("0x113")],"on"):e[Va("0x35")](n),this[Va("0x37")][Va("0x1d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Va("0x37")][Va("0xeb")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Va("0x2b")]((t=>(qa(t)&&(t=this[Va("0x37")][Va("0xc3")](t[Va("0x61")])),t)))[Va("0x7d")]((t=>Va("0x103")!==t[Va("0xd7")][Va("0x109")]));if(r[Va("0xcd")]<1)return;const x=Array[Va("0x59")](this[Va("0x37")].document[Va("0x3a")][Va("0x50")]())[Va("0x2b")]((t=>i.LiveRange[Va("0xcb")](t)));n[Va("0xf4")](r);for(const t of this._editor.commands[Va("0x85")]())t[Va("0x97")]();s[Va("0xce")]({forceDefaultExecution:!0}),this[Va("0x123")][Va("0x21")](o,...s);const a=x[Va("0x7d")]((t=>Va("0x103")!=t.root[Va("0x109")]));a[Va("0xcd")]>0&&n[Va("0xf4")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Va("0xcd")]&&1==e.length&&t[0][Va("0x61")][Va("0x42")](e[0][Va("0xd1")]),s=(t,e,n,o)=>Za(t,e,n,o,this[Va("0x37")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[Va("0x1f")][Va("0xc8")](Va("0x6b"),t),this[Va("0x1f")].set("insertion:discard",e),this[Va("0x1f")][Va("0xc8")](Va("0x11d"),o),this[Va("0x1f")][Va("0xc8")](Va("0x3d"),s),this[Va("0x1f")][Va("0xc8")]("deletion:accept",e),this[Va("0x1f")][Va("0xc8")](Va("0x11"),t),this[Va("0x1f")][Va("0xc8")]("deletion:join",o),this._defaultCallbacks[Va("0xc8")](Va("0x122"),s),this._defaultCallbacks[Va("0xc8")]("formatInline:accept",n),this[Va("0x1f")][Va("0xc8")](Va("0x10a"),t),this[Va("0x1f")].set(Va("0xb2"),o),this._defaultCallbacks[Va("0xc8")](Va("0x135"),t),this._defaultCallbacks[Va("0xc8")](Va("0x130"),n),this[Va("0x1f")][Va("0xc8")](Va("0x9d"),t),this[Va("0x1f")].set(Va("0xc1"),o),this[Va("0x1f")][Va("0xc8")](Va("0x93"),t)}}function Ka(t,e,n){for(const o of e[Va("0x71")][Va("0x88")]({includeSelf:!0,parentFirst:!0})){if(o[Va("0xd7")]==o)return!1;if(!n[Va("0xba")](o))return!1;if(t.isObject(o)||t.isLimit(o))return!0}return!1}function qa(t){return t[Va("0x61")][Va("0x71")]==t[Va("0xd1")].nodeAfter&&t[Va("0x61")][Va("0x58")]}function Xa(t,e,n,o){const s=t=>!t[Va("0x3f")].is(Va("0x2"))&&!o[Va("0xb9")](t.item),r=t.start[Va("0x107")](s),i=t.end[Va("0x107")](s,{direction:"backward"});return!(t.start[Va("0x42")](r)&&t[Va("0x61")].isEqual(i)||(r[Va("0xb1")](i)?n[Va("0x8f")](e,{range:n[Va("0xc3")](r,i)}):n[Va("0x4")](e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[Va("0xd1")][Va("0x113")];return e&&e.is("element")}function Qa(t,e){const n=e[Va("0x131")][Va("0xb9")](t)||e[Va("0x131")][Va("0xc9")](t);return e.createRange(e.createPositionAt(t,"before"),n?e[Va("0xbb")](t):e.createPositionAt(t,Va("0x61")))}function Za(t,e,n,o,s){if(n[Va("0x61")][Va("0x42")](o[Va("0xd1")]))return!0;if(t[Va("0x111")]!=e[Va("0x111")])return!1;if(!n[Va("0x61")].isTouching(o[Va("0xd1")]))return!1;const r=s[Va("0xc3")](n[Va("0x61")],o[Va("0xd1")])[Va("0x5f")]();for(const t of r)if(["elementStart",Va("0x68")][Va("0xf5")](t[Va("0x111")])&&s[Va("0x131")][Va("0x0")](t[Va("0x3f")]))return!1;return!0}const Ya=["getRanges","acceptSuggestion","_pendingAction","PENDING_ACTION_SUGGESTION","_removePendingAction","isEnabled","canDiscard","unbind","commentThreadController","locale","add","_acceptCommand","discardSuggestion","execute","_discardCommand","commands","destroy","model","canAccept","get","canEditAt","plugins","view","_editor","_setPendingAction","isDirty","listenTo","PendingActions","bind"];var tc,ec;tc=Ya,ec=210,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xa")]=e,this[nc("0xf")]=n,this[nc("0x1")]=o,this[nc("0x10")]=t,this._acceptCommand=t[nc("0x8")][nc("0xc")]("acceptSuggestion"),this._discardCommand=t.commands.get("discardSuggestion"),this[nc("0xf")].bind(nc("0x1b")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[nc("0xf")][nc("0x15")]("canAccept").to(this._acceptCommand,nc("0x1b"),(t=>t&&this[nc("0x10")].model[nc("0xd")](e[nc("0x16")]()))),this.view[nc("0x15")](nc("0x1c")).to(this._discardCommand,nc("0x1b"),(t=>t&&this[nc("0x10")].model.canEditAt(e[nc("0x16")]()))),this[nc("0x18")]=null,n[nc("0x12")]&&this[nc("0x11")](),this[nc("0x13")](n,nc("0x17"),(()=>this[nc("0x17")]())),this[nc("0x13")](n,nc("0x5"),(()=>this[nc("0x5")]())),this[nc("0x13")](n,"change:isDirty",(()=>{n[nc("0x12")]?this[nc("0x11")]():this._removePendingAction()}))}[nc("0x17")](){this[nc("0x4")][nc("0x6")](this[nc("0xa")].id)}[nc("0x5")](){this[nc("0x7")][nc("0x6")](this[nc("0xa")].id)}[nc("0x9")](){this.view[nc("0x0")]("isEnabled"),this[nc("0xf")][nc("0x0")](nc("0xb")),this.view[nc("0x0")](nc("0x1c")),this.stopListening(),this[nc("0x1")].destroy(),this[nc("0x18")]&&this[nc("0x1a")]()}_setPendingAction(){const t=Yo(this[nc("0x10")][nc("0x2")],nc("0x19"));this[nc("0x18")]=this[nc("0x10")].plugins[nc("0xc")](nc("0x14"))[nc("0x3")](t)}_removePendingAction(){null!==this[nc("0x18")]&&this[nc("0x10")][nc("0xe")].get(nc("0x14")).remove(this[nc("0x18")]),this._pendingAction=null}}const sc=["editor","canDiscard","focus","removeComment","updateComment","canAccept","descriptionParts","isDirty","delegate","commentsListView","set","value","_model","fire","locale","_config","submit","assign","element","isReadOnly","addComment","setData","disabledSubmit","authoredAt","bind","hasDirtyComment","length","isActive","showInput","commentThreadInputView","editorConfig","_localUser","destroy","_createCommentThreadInputView","commentThread","_createCommentViews","cancel"];var rc,ic;rc=sc,ic=405,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[xc("0x1f")]=null,this.set(xc("0x1d"),!1),this[xc("0xc")](xc("0x19"),e[xc("0x19")]),this[xc("0x1a")](xc("0x19")).to(e),this[xc("0xc")](xc("0x8"),[]),this[xc("0xc")]("isDirty",!1),this[xc("0xc")]("isEnabled",!1),this.set(xc("0x7"),!1),this[xc("0xc")](xc("0x3"),!1),this._model=e,this._localUser=n,this[xc("0x11")]=o,o.disableComments?this.set(xc("0x1c"),1):this[xc("0x0")]()}focus(){this[xc("0x14")][xc("0x4")]()}destroy(){this[xc("0xb")]&&this.commentsListView.destroy(),this[xc("0x1f")]&&this.commentThreadInputView[xc("0x22")](),super.destroy()}[xc("0x0")](){const{CommentsListView:t}=this[xc("0x11")];this[xc("0xb")]=new t(this[xc("0x10")],this[xc("0xe")].commentThread,Object[xc("0x13")]({CommentView:this[xc("0x11")].CommentView},this._config)),this[xc("0xb")][xc("0xa")](xc("0x5")).to(this),this[xc("0xb")].delegate(xc("0x6")).to(this),this.commentsListView[xc("0x1a")]("isActive").to(this),this.set(xc("0x1c"),this[xc("0xb")][xc("0x1c")]+1),this[xc("0x1a")](xc("0x1c")).to(this.commentsListView,xc("0x1c"),(t=>t+1)),this.commentThreadInputView=this[xc("0x23")](),this.on(xc("0x5"),(()=>this[xc("0x4")]())),this[xc("0x1a")](xc("0x9")).to(this[xc("0xb")],xc("0x1b"),this[xc("0x1f")].commentInputView,xc("0xd"),((t,e)=>t||!!e))}[xc("0x23")](){const{CommentThreadInputView:t}=this[xc("0x11")],e=new t(this[xc("0x10")],this[xc("0x21")],this._config[xc("0x20")]),n=e.commentInputView;return e.bind(xc("0x1e")).to(this,xc("0x1d"),this[xc("0xe")][xc("0x24")],xc("0x15"),n,xc("0xd"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0x12"),((t,e)=>{this[xc("0xf")](xc("0x16"),e),n[xc("0x2")][xc("0x17")]("")})),n.on(xc("0x1"),(()=>this[xc("0x4")]())),n[xc("0x1a")](xc("0x18")).to(this[xc("0xe")][xc("0x24")],xc("0x15")),e}}const cc=["ck-suggestion__main","@external","render","Accept suggestion","ck-suggestion-wrapper","ck-comment__external","commentThreadInputView","isEnabled","disableComments","ck-suggestion__info-name","value",'" title="',"canDiscard","getUserViewNotificationText","isExternal","discardButton","map","setTemplate","</p>","getTemplate","ck-annotation","author","ck-suggestion__info","<p>","EXTERNAL_SUGGESTION","title","ck-suggestion-wrapper--active","ck-suggestion--accept","_descriptionElement","ck-annotation__info-time","children","fire","commentsListView","isActive","extendTemplate","ck-suggestion--discard","_config",'<span class="ck-suggestion-type">',"content","ck-annotation__user","getExternalSuggestionNote",'"></span>',"innerText","source","ck-annotation__content-wrapper","type","canAccept","name","bind","Discard suggestion","creator","userView","description","createElement","delegate","innerHTML","attributes","_createButton","element","locale","color","span","ck-annotation__main","set","change:description","split","querySelector","push","acceptButton","editorReady","ck-suggestion","EXTERNAL_IMPORT_WORD_AVATAR","bindTemplate","execute","div",".ck-annotation__content-wrapper","formatDateTime","_model","EXTERNAL_AVATAR","ck-comment__info-time","authoredAt","descriptionParts","ck-annotation__info","time","editorDestroyed","join"];var lc,dc;lc=cc,dc=187,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x30")](uc("0x1e"),""),this[uc("0x21")](uc("0x1e")).to(this,uc("0x42"),(t=>t&&t[0]?t[0][uc("0x1e")]:"")),this[uc("0x21")](uc("0x25")).to(this,"descriptionParts",this,uc("0x12"),((t,e)=>{let n="";for(const e of t)n+=uc("0x8")+mc(e[uc("0x17")],e[uc("0x2d")])+uc("0x3");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0xd")]=null,this.acceptButton=this._createButton(Yo(e,uc("0x4a")),t.icons.check,uc("0xc"),"acceptSuggestion","sw"),this[uc("0x35")][uc("0x21")](uc("0x4e")).to(this,uc("0x1f")),this[uc("0x0")]=this[uc("0x2a")](Yo(e,uc("0x22")),t.icons.cancel,uc("0x14"),"discardSuggestion","sw"),this[uc("0x0")].bind(uc("0x4e")).to(this,uc("0x53")),this.userView=new r.UserView(e,this[uc("0x3e")][uc("0x6")],this[uc("0x54")]()),this.userView[uc("0x13")]({attributes:{class:["ck-suggestion__user",uc("0x18")]}}),this[uc("0x2")](this[uc("0x4")]())}getTemplate(){const t=this[uc("0x39")],e=[{tag:uc("0x3b"),attributes:{class:[uc("0x7"),uc("0x43")]},children:[{tag:uc("0x2e"),children:[{text:this[uc("0x24")][uc("0x20")]}],attributes:{class:[uc("0x50"),"ck-annotation__info-name"]}},{tag:uc("0x44"),attributes:{datetime:t.to(uc("0x41")),class:[uc("0x40"),uc("0xe")]},children:[{text:t.to(uc("0x41"),(t=>this[uc("0x15")][uc("0x3d")](t)))}]}]},{tag:uc("0x3b"),attributes:{class:["ck-suggestion__actions","ck-annotation__actions"]},children:[this[uc("0x35")],this.discardButton]},{tag:"div",attributes:{class:[uc("0x1d")]}}];this[uc("0x3e")][uc("0x55")]&&e[uc("0x34")]({tag:uc("0x3b"),attributes:{class:[uc("0x4c")]},children:[{text:this[uc("0x19")]()}]});const n={tag:uc("0x3b"),attributes:{class:[uc("0x4b"),t.if("isActive",uc("0xb")),t.to(uc("0x1e"),(t=>"ck-suggestion-"+t)),this[uc("0x15")][uc("0x4f")]&&"ck-suggestion--disabled-comments"],"data-suggestion-id":this[uc("0x3e")].id,"data-thread-id":this[uc("0x3e")].commentThread.id,"data-author-id":this[uc("0x3e")].author.id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x37"),uc("0x5")]},children:[this[uc("0x24")],{tag:uc("0x3b"),attributes:{class:[uc("0x47"),uc("0x2f")]},children:e}]}]};return this[uc("0x11")]&&this[uc("0x4d")]&&(n[uc("0xf")][uc("0x34")](this[uc("0x11")],this[uc("0x4d")]),this.commentsListView[uc("0x27")](uc("0x36")).to(this),this.commentsListView[uc("0x27")](uc("0x45")).to(this),this.commentThreadInputView.delegate("editorReady").to(this),this[uc("0x4d")][uc("0x27")]("editorDestroyed").to(this)),n}[uc("0x49")](){super[uc("0x49")](),this._descriptionElement=this[uc("0x2b")][uc("0x33")](uc("0x3c")),this[uc("0xd")][uc("0x28")]=this[uc("0x25")],this.on(uc("0x31"),((t,e,n)=>{this[uc("0xd")][uc("0x28")]=n}))}[uc("0x2a")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x2c")]);return i.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x13")]({attributes:{class:n}}),i.on(uc("0x3a"),(()=>{this[uc("0x10")](o,this[uc("0x3e")].id)})),i}[uc("0x19")](){return"importWord"===this[uc("0x3e")][uc("0x29")][uc("0x48")][uc("0x1c")]?Yo(this[uc("0x2c")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,uc("0x9"))}[uc("0x54")](){return this._model[uc("0x55")]?"importWord"===this._model[uc("0x29")][uc("0x48")][uc("0x1c")]?Yo(this[uc("0x2c")],uc("0x38"),this[uc("0x3e")][uc("0x23")].name):Yo(this[uc("0x2c")],uc("0x3f"),this._model[uc("0x23")][uc("0x20")]):null}}function mc(t,e){let n="";return n+=t[uc("0x32")]("*")[uc("0x1")](((t,e)=>e%2!=0?uc("0x16")+fc(t)+"</span>":fc(t)))[uc("0x46")](""),e&&(n+='<span class="ck-suggestion-color" style="background-color: '+e[uc("0x51")]+uc("0x52")+e[uc("0xa")]+uc("0x1a")),n}function fc(t){const e=document[uc("0x26")](uc("0x2e"));return e[uc("0x1b")]=t,e[uc("0x28")]}const hc=["_destroyController","from","_refreshActiveMarkers","comments.maxThreadTotalWeight","value","acceptButton","componentFactory","clear","arrowView","acceptSelectedSuggestions","createCommentThreadController","CommentsRepository","Track changes","map","suggestionUnloaded","_handleSuggestionControllerDelayed","plugins","_descriptionFactory","activeMarkers","registerAnnotation","suggestionChanged","Annotations","delete","CommentsUI","addSourceCollector","Accept all suggestions","filter","values","previous","commands","activeAnnotations","refreshSelectedViews","hasSuggestion","destroy","trackChanges","_suggestionToController","_viewToController","requires","length","head","isInContent","comments.maxCommentsWhenCollapsed","get","mainView","discardAllSuggestions","_updateController","separator","editor","keys","model","type","has","unbind","set","_initializeController","isOn","descriptionParts","source","discardSelectedSuggestions","size","define","createAnnotationView","isDirty","getJoined","buttonView","discardButton","view","comments.maxCommentCharsWhenCollapsed","change:previous","actionView","reduce","push","config","isEnabled","_disableComments","focus","commandName","getDescriptions","Discard all selected suggestions","_annotationViews","SuggestionThreadView","switchbutton","suggestion-","getMarkers","_createUIButton","trackChanges.disableComments","listenTo","trackChanges.SuggestionThreadView","button","locale","Accept all selected suggestions","add","remove","bind","_handleControllerBuffer","getByInnerView","_bindAnnotationToEditors","Discard all suggestions","EditorAnnotations","isMultiRange","getAllAdjacentSuggestions","editing","TrackChangesEditing","execute"];var pc,bc;pc=hc,bc=107,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x22")](){return[Wa,r.Users,Ec("0x8"),Ec("0x12"),"EditorAnnotations"]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x20")]=new Map,this[Ec("0x21")]=new Map,this[Ec("0x4c")]=new Map,this[Ec("0x5b")]=new Map;const e=this[Ec("0x2c")][Ec("0x45")];e[Ec("0x39")](Ec("0x54"),gc),e[Ec("0x39")](Ec("0x52"),!1),this[Ec("0x47")]=e.get(Ec("0x52"))}[Ec("0xc")](t,e){0===this[Ec("0x5b")][Ec("0x38")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x5b")]){const n=this[Ec("0x20")][Ec("0x30")](t);n||e?n&&e&&this[Ec("0x65")](t):this[Ec("0x33")](t)}this[Ec("0x2c")][Ec("0xd")][Ec("0x27")](Ec("0x5f"))[Ec("0x1c")](),this._refreshActiveMarkers(),this[Ec("0x5b")][Ec("0x4")]()}),10),this[Ec("0x5b")][Ec("0x32")](t,e)}init(){const t=this[Ec("0x2c")],e=t.plugins.get(Ec("0x63")),n=t[Ec("0xd")][Ec("0x27")](Ec("0x12")),o=t[Ec("0xd")][Ec("0x27")](Ec("0x5f")),s=t[Ec("0xd")][Ec("0x27")]("CommentsRepository");t.ui[Ec("0x3")].add("trackChanges",(t=>this[Ec("0x51")](t))),o[Ec("0x15")]((()=>{const t=[];for(const[e,n]of Array.from(this._suggestionToController)){const o=e[Ec("0x61")](),s=[];for(const t of o){if(!t[Ec("0x25")])continue;if(t[Ec("0x60")]){s[Ec("0x44")](...t.getRanges());continue}const e=t.getFirstRange();if(s[Ec("0x23")]>0){const t=s[0][Ec("0x3c")](e);if(t){s[0]=t;continue}}s[Ec("0x44")](e)}t.push([n[Ec("0x3f")],s])}return t})),this[Ec("0x53")](e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x2a")](s.head),this._handleSuggestionControllerDelayed(e,!1)):(this[Ec("0x2a")](o[Ec("0x24")]),this[Ec("0xc")](e,!0)))})),null===e[Ec("0x19")]?this[Ec("0xc")](e,!1):this[Ec("0x2a")](e[Ec("0x24")])})),this[Ec("0x53")](e,Ec("0xb"),((t,e,n)=>{this.stopListening(e,Ec("0x41")),this[Ec("0x5b")][Ec("0x13")](e);const o=n?n[Ec("0x24")]:e,s=this[Ec("0x20")].get(o);null!==n&&this[Ec("0x2a")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0x53")](e,Ec("0x11"),((t,e)=>{this[Ec("0x2a")](e)})),this[Ec("0x53")](n,"change:activeAnnotations",(()=>{this[Ec("0x67")]()})),this[Ec("0x53")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x1d")](n))return;const s=e.getSuggestion(n);this[Ec("0x20")][Ec("0x27")](s)[Ec("0x3f")][Ec("0x48")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Ec("0x2c")].plugins[Ec("0x27")](Ec("0x12")),e=this.editor[Ec("0xd")][Ec("0x27")](Ec("0x63")),n=Array[Ec("0x66")](t[Ec("0x1b")],(t=>t.innerView)).filter((t=>this[Ec("0x21")][Ec("0x30")](t))),o=[];for(const t of n){const e=this[Ec("0x21")][Ec("0x27")](t)[Ec("0x2e")].getAllAdjacentSuggestions();o[Ec("0x44")](...e[Ec("0x43")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[Ec("0xf")]=o}[Ec("0x51")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x2c")][Ec("0x1a")][Ec("0x27")](Ec("0x1f")),r=Yo(t,Ec("0x9"));n.buttonView[Ec("0x32")]({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.buttonView[Ec("0x5a")](Ec("0x34")).to(o,Ec("0x1")),n[Ec("0x3d")].on(Ec("0x64"),(()=>{o[Ec("0x64")](),this[Ec("0x2c")][Ec("0x62")][Ec("0x3f")][Ec("0x48")]()}));const i=new e.Collection,x=[{type:Ec("0x4e"),model:{withText:!0,label:r,commandName:Ec("0x1f")}},{type:Ec("0x2b")},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x16")),commandName:"acceptAllSuggestions"}},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x57")),commandName:Ec("0x6")}},{type:Ec("0x55"),model:{withText:!0,label:Yo(t,Ec("0x5e")),commandName:Ec("0x29")}},{type:"button",model:{withText:!0,label:Yo(t,Ec("0x4b")),commandName:Ec("0x37")}}];for(const t of x){let e={type:Ec("0x2b")};if(t[Ec("0x2e")]){const n=new s.Model(t[Ec("0x2e")]),o=this.editor[Ec("0x1a")][Ec("0x27")](n[Ec("0x49")]);n.bind(Ec("0x34"),Ec("0x46")).to(o,Ec("0x1"),Ec("0x46")),e={type:t[Ec("0x2f")],model:n}}i[Ec("0x58")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x17")]((t=>null!=t.model))[Ec("0xa")]((t=>this[Ec("0x2c")][Ec("0x1a")].get(t.model[Ec("0x49")]))),c=n[Ec("0x3d")];return c[Ec("0x42")][Ec("0x31")](Ec("0x46")),c[Ec("0x5")][Ec("0x31")](Ec("0x46")),c[Ec("0x42")][Ec("0x5a")](Ec("0x46")).to(o,Ec("0x46")),c[Ec("0x5")][Ec("0x5a")](Ec("0x46")).toMany(a,Ec("0x46"),((...t)=>t.some((t=>t)))),n.on("execute",(t=>{this[Ec("0x2c")].execute(t[Ec("0x36")][Ec("0x49")]),this[Ec("0x2c")].editing.view.focus()})),n}_initializeController(t){const e=this[Ec("0x2c")],n=e[Ec("0x45")],o=e[Ec("0xd")][Ec("0x27")]("Annotations"),s=e.plugins[Ec("0x27")](Ec("0x8")),i=e[Ec("0xd")][Ec("0x27")]("EditorAnnotations"),x=e[Ec("0xd")].get(r.Users).me,a=n[Ec("0x27")](Ec("0x1f"))[Ec("0x4d")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xd")][Ec("0x27")](Ec("0x14"));let d,u;this[Ec("0x4c")][Ec("0x30")](t.id)?(u=this[Ec("0x4c")][Ec("0x27")](t.id),d=u[Ec("0x28")]):(d=new a(e[Ec("0x56")],t,x,{disableComments:this[Ec("0x47")],editorConfig:n.get("comments.editorConfig"),maxCommentsWhenCollapsed:n[Ec("0x27")](Ec("0x26")),maxThreadTotalWeight:n[Ec("0x27")](Ec("0x0")),maxCommentCharsWhenCollapsed:n.get(Ec("0x40")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x27")](Ec("0x56"))),CommentView:n[Ec("0x27")]("comments").CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2")].on("execute",(()=>{e[Ec("0x62")][Ec("0x3f")][Ec("0x48")]()})),d[Ec("0x3e")].on(Ec("0x64"),(()=>{e[Ec("0x62")].view[Ec("0x48")]()})),u=o[Ec("0x3a")](this[Ec("0x2c")][Ec("0x56")],d),u[Ec("0x5a")](Ec("0x3b")).to(d,Ec("0x3b")),u.bind(Ec("0x23")).to(d),u[Ec("0x5a")](Ec("0x2f")).to(d,Ec("0x2f"),(t=>Ec("0x4f")+t)),this[Ec("0x4c")][Ec("0x32")](t.id,u));const g=s[Ec("0x7")](t.commentThread,d),m=new oc(e,t,d,g),f=t.getAllAdjacentSuggestions()[Ec("0x17")]((t=>t[Ec("0x25")]));d[Ec("0x35")]=e[Ec("0xd")][Ec("0x27")](Ec("0x63"))._descriptionFactory[Ec("0x4a")](f),this[Ec("0x20")].set(t,m),this._viewToController.set(d,m);const h=o.createAnnotation({view:u,target:()=>{const n=[],o=t[Ec("0x61")]()[Ec("0x17")]((t=>t.isInContent));for(const t of o)n[Ec("0x44")](...t[Ec("0x50")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x62")],n)},type:()=>Ec("0x4f")+m.view[Ec("0x2f")]});s[Ec("0x5d")](d,h),o[Ec("0x58")](h),i[Ec("0x10")](h)}[Ec("0x65")](t){const e=this[Ec("0x2c")].plugins[Ec("0x27")](Ec("0x12")),n=this[Ec("0x20")][Ec("0x27")](t),o=n[Ec("0x3f")],s=e[Ec("0x5c")](o);s&&e[Ec("0x59")](s),this[Ec("0x20")].delete(t),this._viewToController[Ec("0x13")](o),n[Ec("0x1e")]()}[Ec("0x2a")](t){if(!t[Ec("0x25")]||!this[Ec("0x20")][Ec("0x30")](t))return;const e=this[Ec("0x2c")][Ec("0xd")].get(Ec("0x63")),n=this[Ec("0x20")][Ec("0x27")](t),o=t[Ec("0x61")]();n.view.descriptionParts=e[Ec("0xe")][Ec("0x4a")](o)}destroy(){for(const t of this[Ec("0x20")][Ec("0x2d")]())this[Ec("0x65")](t);for(const t of this[Ec("0x4c")][Ec("0x18")]())t[Ec("0x28")][Ec("0x1e")]();super[Ec("0x1e")]()}}var Tc,Cc,yc=["editor","TrackChanges","adapter","addSuggestion","getSuggestion","get","requires","plugins","getSuggestions","addSuggestionData"];Tc=yc,Cc=197,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get[kc("0x9")](){return[Wa,_c,"Comments"]}static get pluginName(){return kc("0x4")}set[kc("0x5")](t){this[kc("0x3")][kc("0x0")].get(Wa).adapter=t}get[kc("0x5")](){return this[kc("0x3")][kc("0x0")][kc("0x8")](Wa)[kc("0x5")]}[kc("0x6")](t){return this[kc("0x3")].plugins[kc("0x8")](Wa)[kc("0x2")](t)}[kc("0x1")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[kc("0x0")][kc("0x8")](Wa)[kc("0x1")]({skipNotAttached:t,toJSON:e})}getSuggestion(t){return this[kc("0x3")][kc("0x0")][kc("0x8")](Wa)[kc("0x7")](t)}}const vc=["editorCreator","model","track-changes-data-invalid-editor-creator","name","TrackChangesDataGetter","define","end","addUser","reduce","addSuggestionData","CommentsRepository","_adapter","pluginName","push","create","acceptAllSuggestions","result","createElement","discardAllSuggestions","getRootNames","plugins","getSuggestions","get","useAnonymousUser","getUser","config","trackChangesData.editorCreator","Pagination","div","constructor","init","getRootsAttributes","getDataWithDiscardedSuggestions","trackChangesData","data","rootsAttributes","Users","TrackChangesEditing","set","execute","editor","requires","getDataWithAcceptedSuggestions","getFullData","users"];var Rc,Sc;Rc=vc,Sc=136,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x1a")];class Nc extends t.Plugin{static get[Ic("0x28")](){return[Wa]}static get[Ic("0xb")](){return"TrackChangesData"}init(){const t=this[Ic("0x27")];if(t[Ic("0x18")][Ic("0x4")](Ic("0x19"),(e=>{const n=t[Ic("0x0")].document[Ic("0x12")]()[Ic("0x7")](((t,e)=>(t[e]="",t)),{});return t[Ic("0x1c")][Ic("0xd")](n,e)})),"function"!=typeof t[Ic("0x18")].get(Ic("0x20"))[Ic("0x2c")])throw new e.CKEditorError(Ic("0x1"))}[Ic("0x29")](t){return Oc(this[Ic("0x27")],!0,t)}[Ic("0x1f")](t){return Oc(this[Ic("0x27")],!1,t)}}class wc extends t.Plugin{static get[Ic("0xb")](){return Ic("0x3")}constructor(t){super(t),this[Ic("0xf")]=Ic("0x5")}[Ic("0x1d")](){this[Ic("0x27")][Ic("0x13")][Ic("0x15")](Ic("0x9"))[Ic("0xa")]={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[Ic("0x27")].plugins[Ic("0x15")]("TrackChangesEditing")._adapter=null}}function Mc(t){return void 0!==t[Ic("0x1e")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0x13")][Ic("0xc")](Wa,wc),o[Ic("0x22")]=Mc(t)?t[Ic("0x1e")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x18")][Ic("0x15")]("trackChangesData").editorCreator,x=await i(o,(()=>function(t){const e=document[Ic("0x10")](Ic("0x1b"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Ic("0x0")].document[Ic("0x12")]()[Ic("0x7")](((e,n)=>(e[n]=t[Ic("0x21")][Ic("0x15")]({rootName:n}),e)),{}),o=t.plugins[Ic("0x15")](Ic("0x23"))[Ic("0x2b")].map((t=>({id:t.id,name:t[Ic("0x2")]}))),s=t.plugins[Ic("0x15")](Ic("0x24"))[Ic("0x14")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins[Ic("0x15")](Ic("0x23")),i=e[Ic("0x13")][Ic("0x15")](Ic("0x24"));for(const t of o)r[Ic("0x17")](t.id)||r[Ic("0x6")](t);r.me||r[Ic("0x16")]();for(const t of s)i[Ic("0x8")](t);e.data[Ic("0x25")](n)}(t,x),x[Ic("0x26")](Ic(e?"0xe":"0x11"));const a=Mc(x)?x[Ic("0x2a")](n):x[Ic("0x21")][Ic("0x15")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
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 r=e[o];if(void 0!==r)return r.exports;var s=e[o]={exports:{}};return t[o](s,s.exports,n),s.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:()=>Sc,TrackChangesData:()=>Oc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),r=n(273),s=n(417),i=n(492),x=n(995);const a=["_enableCommands","isEnabled","_isEnabledBasedOnSelection","_enabledCommands","_disableUnsupportedCommands","value","has","affectsData","editor","execute","clearForceDisabled","commands","TrackChangesCommand","forceDisabled","refresh"];var c,l;c=a,l=489,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[d("0x9")]=e,this.value=!1,this[d("0x5")](),this[d("0x8")]=!1}[d("0x5")](){this[d("0x7")]=!0}[d("0x0")](){this[d("0xb")]=!this[d("0xb")],this.value?this[d("0xa")]():this[d("0x6")]()}[d("0xa")](){for(const t of this[d("0xe")][d("0x2")][d("0x2")]())t.affectsData&&!this._enabledCommands.has(t)&&t[d("0x4")](d("0x3"))}[d("0x6")](){for(const t of this[d("0xe")][d("0x2")].commands())t[d("0xd")]&&!this[d("0x9")][d("0xc")](t)&&t[d("0x1")]("TrackChangesCommand")}}const g=["track-changes-accept-suggestion-not-found","isEnabled","refresh","editor","_suggestions","getRanges","acceptSuggestion","canEditAt","get","execute","plugins"];var m,f;m=g,f=123,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._suggestions=e,this.refresh(),this._isEnabledBasedOnSelection=!1}[h("0x0")](){this[h("0xa")]=!0}[h("0x7")](t){const n=this[h("0x2")].get(t);if(!n)throw new e.CKEditorError(h("0x9"),this);const o=n[h("0x3")]();this[h("0x1")].model[h("0x5")](o)&&this.editor[h("0x8")][h("0x6")]("TrackChangesEditing")[h("0x4")](n)}}const b=["track-changes-discard-suggestion-not-found","plugins","get","discardSuggestion","refresh","_isEnabledBasedOnSelection","model","canEditAt","isEnabled","execute","_suggestions"];var E,_;E=b,_=146,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("0x1")](),this[T("0x2")]=!1}[T("0x1")](){this[T("0x5")]=!0}[T("0x6")](t){const n=this[T("0x7")][T("0xa")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n.getRanges();this.editor[T("0x3")][T("0x4")](o)&&this.editor[T("0x9")][T("0xa")]("TrackChangesEditing")[T("0x0")](n)}}const y=["color","createRange","isObject","value","from","add","isIntersecting","execute","join","deletion","createPositionAfter","isTouching","createPositionBefore","createPositionAt","replace","getRanges"," [color ","sort","isMultiRange","length","end","content","push","isInContent","type","isArray","splice","map","isCollapsed"];var k,A;k=y,A=482,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x1c")](((t,e)=>v("0x14")==t[v("0x6")]&&v("0x14")!=e.type?-1:v("0x14")!=t.type&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const r=[],s=e.schema;for(;o<t[v("0x1")];){const i=t[o],x=t[o+1];n||(n=e[v("0x17")](i)),I(e,i,x)||(r[v("0x4")](e[v("0xc")](n,s[v("0xd")](i)?e[v("0x15")](i):e[v("0x18")](i,v("0x2")))),n=null),o++}return r}function I(t,e,n){if(!n)return!1;const o=t[v("0x15")](e),r=t.createPositionBefore(n);return o[v("0x16")](r)}function L(t,e,n){for(;n[v("0x1")];){const o=n[v("0x8")](0,100);t.change((()=>{for(const t of o)t[v("0x5")]&&e[v("0x12")](t.id)}))}}const N=["getRanges","model","_isEnabledBasedOnSelection","canEditAt","refresh","isInContent","values","some","editor","_command","isEnabled","from","_suggestions"];var w,M;w=N,M=207,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0xa")]=e,this[O("0x0")]=n,this[O("0x5")](),this[O("0x3")]=!1}[O("0x5")](){const t=Array.from(this[O("0x0")][O("0x7")]())[O("0x8")]((t=>t[O("0x6")]));this[O("0xb")]=this[O("0xa")][O("0xb")]&&t}execute(){const t=R(Array[O("0xc")](this._suggestions.values()));for(const e of t){const t=e[O("0x1")]();if(!this.editor[O("0x2")][O("0x4")](t))return}L(this[O("0x9")][O("0x2")],this._command,t)}}const P=["size","_command","_suggestions","getRanges","model","editor","selection","values","from","refresh","isEnabled","canEditAt","_selectedSuggestions","_isEnabledBasedOnSelection"];var D,B;D=P,B=121,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("0x6")]=e,this._suggestions=n,this[j("0x3")]=new Set,this[j("0x0")](),this[j("0x4")]=!1}[j("0x0")](){const t=this[j("0xa")][j("0x9")].document[j("0xb")],e=Array[j("0xd")](this[j("0x7")][j("0xc")]());this[j("0x3")]=function(t,e){const n=Array[v("0xf")](t.getRanges()),o=new Set;for(const r of e)if(r[v("0x5")])for(const e of n)for(const n of r[v("0x1a")]())(e[v("0x11")](n)||t[v("0xa")]&&!r[v("0x0")]&&r.next&&n[v("0x2")][v("0x16")](e.start))&&o[v("0x10")](r);return o}(t,e),this[j("0x1")]=this[j("0x6")][j("0x1")]&&!!this[j("0x3")][j("0x5")]}execute(){const t=R(Array[j("0xd")](this[j("0x3")]));for(const e of t){const t=e[j("0x8")]();if(!this.editor[j("0x9")][j("0x2")](t))return}L(this[j("0xa")][j("0x9")],this[j("0x6")],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 X=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 $(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])}}$.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(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 rt=ot.Symbol;var st=Object.prototype,it=st.hasOwnProperty,xt=st.toString,at=rt?rt.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 r=xt.call(t);return o&&(e?t[at]=n:delete t[at]),r};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=rt?rt.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 St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(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(wt){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 wt?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]=wt&&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=Mt,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||Q),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 Xt=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 $t(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])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Qt=$t;const Jt=function(t,e){var n=this.__data__;if(n instanceof Q){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Qt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new Q(t);this.size=e.size}Zt.prototype.clear=J,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Jt;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 re=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 se=function(t,e,n,o){var r=!n;n||(n={});for(var s=-1,i=e.length;++s<i;){var x=e[s],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),r?ne(n,x,a):re(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 Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const we=function(t,e){var n=ge(t),o=!n&&ue(t),r=!n&&!o&&be(t),s=!n&&!o&&!r&&Le(t),i=n||o||r||s,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||r&&("offset"==c||"parent"==c)||s&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};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)?we(t):Be(t)};const Ge=function(t,e){return t&&se(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)?we(t,!0):We(t)};const Ke=function(t,e){return t&&se(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Qe=$e?$e.allocUnsafe:void 0;const Je=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(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,r=0,s=[];++n<o;){var i=t[n];e(i,n,t)&&(s[r++]=i)}return s};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 rn=function(t,e){return se(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,r=t.length;++n<o;)t[r+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return se(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(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 Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(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=rt?rt.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?wn(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 wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(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]"==Sn(t)};var Vn=Se&&Se.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?ke(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 to=function t(e,n,o,r,s,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=s?o(e,r,s,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=Sn(e),g=u==Jn||"[object GeneratorFunction]"==u;if(be(e))return Je(e,a);if(u==Zn||u==Qn||g&&!s){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Yn[u])return s?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(r){x.add(t(r,n,o,r,e,i))})):Kn(e)&&e.forEach((function(r,s){x.set(s,t(r,n,o,s,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(r,s){f&&(r=e[s=r]),re(x,s,t(r,n,o,s,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)\]/,ro=/^\w*$/;const so=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(ro.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,r=e?e.apply(this,o):o[0],s=n.cache;if(s.has(r))return s.get(r);var i=t.apply(this,o);return n.cache=s.set(r,i)||s,i};return n.cache=new(io.Cache||Qt),n}io.Cache=Qt;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,r){e.push(o?r.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,r=Array(o);++n<o;)r[n]=e(t[n],n,t);return r};var go=rt?rt.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:so(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 r=-1,s=(e=po(e,t)).length,i=s-1,x=t;null!=x&&++r<s;){var a=bo(e[r]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(r!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[r+1])?[]:{})}re(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 Qt;++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,r,s){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=s.get(t),l=s.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(s.set(t,e),s.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,s):o(m,f,d,t,e,s);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||r(m,t,n,o,s)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!r(m,f,n,o,s)){u=!1;break}}return s.delete(t),s.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=rt?rt.prototype:void 0,No=Lo?Lo.valueOf:void 0;const wo=function(t,e,n,o,r,s,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||!s(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=So;case"[object Set]":var a=1&o;if(x||(x=Io),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,r,s,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,r,s){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:Mo.call(e,l)))return!1}var d=s.get(t),u=s.get(e);if(d&&u)return d==e&&u==t;var g=!0;s.set(t,e),s.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,s):o(f,h,l,t,e,s);if(!(void 0===p?f===h||r(f,h,n,o,s):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 s.delete(t),s.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,r,s){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(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 s||(s=new Yt),i||Le(t)?Ro(t,e,n,o,r,s):wo(t,e,a,n,o,r,s);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 s||(s=new Yt),r(f,h,n,o,s)}}return!!u&&(s||(s=new Yt),Oo(t,e,n,o,r,s))};const Uo=function t(e,n,o,r,s){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,r,t,s))};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,r=t.length;e<0&&(e=-e>r?0:r+e),(n=n>r?r:n)<0&&(n+=r),r=e>n?0:n-e>>>0,e>>>=0;for(var s=Array(r);++o<r;)s[o]=t[o+e];return s};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)},Xo=["accept","getRanges","end","delete","next","set","markers","addMarkerName","onAttributesChange","getRange","map","@external","_onAttributesChange","isIntersecting","addMarker","addRange","_markerNames","getAllAdjacentSuggestions","attributes","_onDiscard","data","hasComments","removeMarker","onAccept","removeAttribute","start","add","isIntersectingWithRange","createdAt","filter","getFirstRange","authoredAt","getItems","setAttribute","push","getFirstMarker","creator","author","commentThread","isInContent","nodeBefore","getMarkers","length","from","previous","discard","toJSON","suggestion:","change","head","clear","nodeAfter","subType","isMultiRange","_onAccept","getContainedElement","getMarkerNames","split","size","_isDataLoaded","_model","_saved","substr","type","getMultiRangeId","removeMarkers"];var $o,Qo;$o=Xo,Qo=317,function(t){for(;--t;)$o.push($o.shift())}(++Qo);const Jo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Jo("0x6")]=!1,this.id=e.id,this.type=e.type,this[Jo("0x41")]=e[Jo("0x41")]||null,this.author=e[Jo("0x32")],this[Jo("0x31")]=e[Jo("0x31")]||e[Jo("0x32")],this.isExternal=Boolean(e[Jo("0x1f")]&&e[Jo("0x1f")][Jo("0x18")]),this[Jo("0x21")]=null,this[Jo("0x7")]=t,this[Jo("0x1")]=e[Jo("0x24")],this[Jo("0x20")]=e.onDiscard,this._onAttributesChange=e[Jo("0x15")],this[Jo("0x1d")]=new Set,this.createdAt=null,this[Jo("0x12")](Jo("0x2c"),null),this.set(Jo("0x1f"),e.attributes||{}),this[Jo("0x12")](Jo("0x39"),null),this[Jo("0x12")](Jo("0x11"),null),this.set("commentThread",null),this[Jo("0x12")](Jo("0x8"),!1),this.decorate(Jo("0xd")),this.decorate(Jo("0x3a"))}get head(){let t=this;for(;t[Jo("0x39")];)t=t[Jo("0x39")];return t}get[Jo("0x22")](){return!!this.commentThread&&this[Jo("0x33")].length>0}get[Jo("0x0")](){return 0!=this[Jo("0x1d")][Jo("0x5")]&&6==Array.from(this._markerNames)[0][Jo("0x4")](":")[Jo("0x37")]}get[Jo("0x34")](){return null!==this[Jo("0x30")]()}addMarkerName(t){this[Jo("0x1d")][Jo("0x27")](t)}getMarkerNames(){return Array[Jo("0x38")](this[Jo("0x1d")])}[Jo("0x36")](){return this[Jo("0x3")]()[Jo("0x17")]((t=>this[Jo("0x7")][Jo("0x13")].get(t)))[Jo("0x2a")]((t=>t))}[Jo("0x30")](){return this[Jo("0x36")]()[0]||null}[Jo("0xc")](){this[Jo("0x7")].change((t=>{for(const e of this[Jo("0x36")]())t.removeMarker(e)})),this[Jo("0x1d")][Jo("0x3f")]()}[Jo("0x23")](t){this._model[Jo("0x3d")]((e=>{e[Jo("0x23")](t)})),this[Jo("0x1d")][Jo("0x10")](t)}[Jo("0x1c")](t){const e=Jo("0x3c")+this[Jo("0xa")]+":"+this[Jo("0x41")]+":"+this.id+":"+this[Jo("0x31")].id+":"+Zo[Jo("0xb")]();this[Jo("0x14")](e),this[Jo("0x7")][Jo("0x3d")]((n=>{n[Jo("0x1b")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Jo("0x28")](t){for(const e of this[Jo("0xe")]())if(e[Jo("0x1a")](t))return!0;return!1}[Jo("0xe")](){return this[Jo("0x36")]()[Jo("0x17")]((t=>t[Jo("0x16")]()))}[Jo("0x2d")](){return this[Jo("0xe")]().reduce(((t,e)=>[...t,...e[Jo("0x2d")]()]),[])}[Jo("0x2b")](){var t;return(null===(t=this[Jo("0x30")]())||void 0===t?void 0:t[Jo("0x16")]())||null}[Jo("0x2")](){const t=this[Jo("0xe")]();if(1!=t.length)return null;const e=t[0],n=e[Jo("0x26")][Jo("0x40")],o=e[Jo("0xf")][Jo("0x35")];return n instanceof i.Element?n!=o?null:n:null}[Jo("0xd")](){this._onAccept(this[Jo("0xe")](),this[Jo("0x21")],this[Jo("0x1f")]),this[Jo("0xc")]()}[Jo("0x3a")](){this._onDiscard(this[Jo("0xe")](),this.data,this.attributes),this[Jo("0xc")]()}[Jo("0x1e")](){const t=[];let e=this[Jo("0x3e")];for(;e;)t[Jo("0x2f")](e),e=e[Jo("0x11")];return t}[Jo("0x2e")](t,e){const n=eo(this[Jo("0x1f")]);_o(n,t,e),Go(n,this[Jo("0x1f")])||(this[Jo("0x1f")]=n,this._onAttributesChange(n))}[Jo("0x25")](t){const e=eo(this.attributes);qo(e,t),Go(e,this[Jo("0x1f")])||(this.attributes=e,this[Jo("0x19")](this[Jo("0x1f")]))}[Jo("0x3b")](){return{id:this.id,type:this[Jo("0x41")]?this[Jo("0xa")]+":"+this[Jo("0x41")]:this[Jo("0xa")],authorId:this.creator.id,createdAt:this[Jo("0x29")],hasComments:this[Jo("0x22")],data:this[Jo("0x21")],attributes:this.attributes}}static[Jo("0xb")](){return(0,e.uid)()[Jo("0x9")](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 tr=["data","skip","remove","matchingCallback","_schema","_locale","*Remove:* %0","indexOf","_addDescriptionItems","item","isObject","isInContent","element","getDescriptions","_customCallbacks","ELEMENT_SPACE","_itemLabelsCallbacks","match","_itemLabels","$1 $2","label","text","REPLACE_TEXT","softBreak","registerElementLabel","add","addObject","isEqual","end","deletion","getFirstRange","$textProxy","start","replace","Object","previousSibling","isEmpty","length","removeEmptyContainer","getItemLabel","nextSibling","insertion","_resolveDescriptionItems","name","EmptyContainer","normal","quantity","registerDescriptionCallback","pop","elementStart","type","elementEnd","*Insert:* %0","Container","function","push"];var er,nr;er=tr,nr=407,function(t){for(;--t;)er.push(er.shift())}(++nr);const or=function(t,e){return tr[t-=0]};class rr{constructor(t,e){this[or("0x37")]=[],this[or("0x3")]=new Map,this[or("0x1")]=[],this._schema=t,this[or("0x2e")]=e}[or("0x36")](t){const e=[];for(let n=0;n<t.length;n++){const o=t[n];if(!o[or("0x34")])continue;let r=!1;for(const t of this._customCallbacks){const n=t(o);if(n){or("0x23")in n&&e[or("0x28")](n),r=!0;break}}if(!r){this[or("0x31")](e,o);const r=t[n+1];if(r&&!o.getFirstRange()[or("0xd")][or("0xc")](r.getFirstRange()[or("0x11")])){const t=e[e[or("0x16")]-1],n=or("0x1a")==o[or("0x23")]?"add":or("0x2b");t&&or("0x6")==t[or("0x23")]&&(t[n]+="\n")}}}return this[or("0x1b")](e)}[or("0x20")](t){this._customCallbacks[or("0x28")](t)}[or("0x9")](t,n,o=e.priorities[or("0x1e")]){or("0x27")==typeof t?(0,e.insertToPriorityArray)(this[or("0x1")],{matchingCallback:t,label:n,priority:o}):this._itemLabels.set(t,n)}[or("0x18")](t,e=1){let n;for(const e of this[or("0x1")])if(e[or("0x2c")](t)){n=e[or("0x5")];break}return n||(n=this._itemLabels.get(t[or("0x1c")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[or("0x1c")]}_addDescriptionItems(t,e){const n=e[or("0xf")]().getWalker(),o=or("0x1a")==e[or("0x23")]?"add":or("0x2b");for(const e of n){const r=e[or("0x32")],s=t[t[or("0x16")]-1];if(r.is(or("0x10")))s&&s[or("0x23")][or("0x30")](or("0x26"))>-1&&t[or("0x21")](),s&&or("0x6")==s.type?s[o]+=r[or("0x29")]:t[or("0x28")]({type:or("0x6"),add:"add"==o?r[or("0x29")]:"",remove:or("0x2b")==o?r[or("0x29")]:""});else if(this[or("0x2d")][or("0x33")](r)){const i=r;if(s&&s[or("0x23")][or("0x30")](or("0x26"))>-1&&t[or("0x21")](),"elementEnd"==e[or("0x23")])continue;s&&s[or("0x23")]==o+or("0x13")&&s[or("0x35")][or("0x1c")]==i[or("0x1c")]?s.quantity++:t[or("0x28")]({type:o+"Object",element:i,quantity:1}),n[or("0x2a")]((t=>!("elementEnd"==t.type&&t[or("0x32")]==r)))}else if(this[or("0x2d")].checkChild(r,"$text")||r.is(or("0x35"),or("0x8"))){const n=r;if(or("0xa")==o&&or("0x22")==e[or("0x23")]||or("0x2b")==o&&or("0x24")==e[or("0x23")])continue;if(s&&-1==s[or("0x23")].indexOf(or("0x26"))){or("0x6")==s.type&&(s[o]+="\n");continue}let i;if(i="add"==o?n[or("0x19")]&&!this[or("0x2d")][or("0x33")](n[or("0x19")])?n[or("0x19")]:null:n.previousSibling&&!this[or("0x2d")][or("0x33")](n[or("0x14")])?n[or("0x14")]:null,n[or("0x15")]||i&&i[or("0x15")]){const e=i&&i.isEmpty?i:n;s&&s[or("0x23")]==o+or("0x1d")&&s[or("0x35")].name==e[or("0x1c")]?s[or("0x1f")]++:t[or("0x28")]({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+"Container",element:n})}}}[or("0x1b")](t){const e=this._locale,n=[];for(const o of t){switch(o[or("0x23")]){case or("0x6"):if(o[or("0xa")]=o[or("0xa")][or("0x12")](/(\S)\u000A+(\S)/g,or("0x4"))[or("0x12")](/\u000A/g,""),o.remove=o[or("0x2b")][or("0x12")](/(\S)\u000A+(\S)/g,or("0x4")).replace(/\u000A/g,""),""!=o.add&&""!=o.remove){n[or("0x28")]({type:or("0x12"),content:Yo(e,or("0x7"),['"'+o.remove+'"','"'+o[or("0xa")]+'"'])});continue}if(null!=o[or("0xa")][or("0x2")](/^ +$/)){n[or("0x28")]({type:or("0x1a"),content:Yo(e,or("0x25"),Yo(e,or("0x0"),o[or("0xa")][or("0x16")]))});continue}if(null!=o[or("0x2b")].match(/^ +$/)){n[or("0x28")]({type:or("0xe"),content:Yo(e,or("0x2f"),Yo(e,or("0x0"),o[or("0x2b")].length))});continue}if(""!=o[or("0xa")]){n[or("0x28")]({type:or("0x1a"),content:Yo(e,or("0x25"),'"'+o[or("0xa")]+'"')});continue}n[or("0x28")]({type:or("0xe"),content:Yo(e,"*Remove:* %0",'"'+o[or("0x2b")]+'"')});continue;case"addEmptyContainer":case or("0xb"):n[or("0x28")]({type:or("0x1a"),content:Yo(e,"*Insert:* %0",this[or("0x18")](o[or("0x35")],o.quantity))});continue;case or("0x17"):case"removeObject":n[or("0x28")]({type:or("0xe"),content:Yo(e,or("0x2f"),this[or("0x18")](o[or("0x35")],o.quantity))});continue;case"addContainer":n[or("0x28")]({type:or("0x1a"),content:Yo(e,"*Split:* %0",this[or("0x18")](o.element,o[or("0x1f")]))});continue;case"removeContainer":n[or("0x28")]({type:or("0xe"),content:Yo(e,"*Merge:* %0",this[or("0x18")](o[or("0x35")],o[or("0x1f")]))});continue}n.push(o)}return n}}const sr=["get","registerDescriptionCallback","right","checkAttribute","value","left","selection","editor","FORMAT_JUSTIFY_TEXT","getAttribute","commandName","model","contentLanguageDirection","justify","filter","FORMAT_ALIGN_TO_LEFT","locale","has","FORMAT_ALIGN_TO_RIGHT","from","markBlockFormat","getSelectedBlocks","center","_descriptionFactory","alignment","enableCommand","schema","document","commandParams"];var ir,xr;ir=sr,xr=150,function(t){for(;--t;)ir.push(ir.shift())}(++xr);const ar=function(t,e){return sr[t-=0]};class cr extends t.Plugin{afterInit(){const t=this.editor,e=t[ar("0xb")];if(!t.plugins[ar("0xc")]("AlignmentEditing"))return;const n=t.plugins[ar("0x18")]("TrackChangesEditing");n[ar("0x14")](ar("0x13"),((e,o={})=>{let r=o[ar("0x1c")];o[ar("0x1c")]||(r="ltr"===t[ar("0xb")][ar("0x7")]?ar("0x0"):ar("0x1a"));const s=Array[ar("0xe")](this[ar("0x2")].model[ar("0x16")][ar("0x1")][ar("0x10")]())[ar("0x9")]((t=>function(t,e,n){const o=t[ar("0x4")](ar("0x13"))||null;return e[ar("0x1b")](t,ar("0x13"))&&n!=o}(t,this[ar("0x2")][ar("0x6")][ar("0x15")],r)));t.model.change((()=>{for(const t of s)n[ar("0xf")](t,{commandName:"alignment",commandParams:[{value:r}]})}))})),n[ar("0x12")][ar("0x19")]((t=>{const{data:n}=t;if(n&&ar("0x13")==n[ar("0x5")]){const t=n[ar("0x17")][0].value;return{type:"format",content:Yo(e,"*Format:* %0",function(t){switch(t){case"left":return Yo(e,ar("0xa"));case"right":return Yo(e,ar("0xd"));case ar("0x11"):return Yo(e,"FORMAT_ALIGN_TO_CENTER");case ar("0x8"):return Yo(e,ar("0x3"))}}(t))}}}))}}const lr=["consumable","isBlock","listItem","addClass","element","toViewElement","plugins","nextSibling","name","item","elementEnd","mapper","get","previousPosition","isAtEnd","getItems","hasAttribute","includes","getCustomProperty","push","activeMarkers","getWalker","createUIElement","markerRange","isLimit","type","bindElementToMarker","getAttribute","listIndent","writer"];var dr,ur;dr=lr,ur=454,function(t){for(;--t;)dr.push(dr.shift())}(++ur);const gr=function(t,e){return lr[t-=0]};function mr(t,e,n){const o=[];for(const r of e[gr("0xb")]())r[gr("0xc")](t)&&o[gr("0xf")](n.createRangeOn(r));return o}function fr(t){const e=[];if(t.is(gr("0x0"),gr("0x1c"))){let n=t.nextSibling;for(;n&&n.is(gr("0x0"),gr("0x1c"))&&n[gr("0x17")](gr("0x18"))>0;)e.push(n),n=n[gr("0x3")]}return e}function hr(t,e,{showActiveMarker:n=!0}={}){const o=t[gr("0x2")][gr("0x8")]("TrackChangesEditing");return(r,s,i)=>{if(!i[gr("0x1a")].test(s[gr("0x13")],r[gr("0x4")]))return;const x=s.markerRange[gr("0x11")](),a=s[gr("0x13")].start,c=t.model.schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gr("0x5")];u=u||c.isContent(e);const n=i[gr("0x7")][gr("0x1")](e);if(n&&n[gr("0xe")]("addHighlight"))return;gr("0x6")==t[gr("0x15")]&&c[gr("0x1b")](e)&&!c[gr("0x14")](e)&&(e[gr("0x3")]||a[gr("0xa")]?l&&l.parent==e||(l=e,m(t[gr("0x9")]),g=!0):d=d||t[gr("0x9")])}function m(t){const r=i[gr("0x19")][gr("0x12")]("span",{class:"ck-suggestion-marker-"+e}),x=i[gr("0x7")].toViewPosition(t);n&&o[gr("0x10")][gr("0xd")](s.markerName)&&i[gr("0x19")][gr("0x1d")]("ck-suggestion-marker--active",r),i.writer.insert(x,r),i[gr("0x7")][gr("0x16")](r,s.markerName)}u||g||!d||m(d)}}const pr=["slice","*Remove format:* %0","FORMAT_STRIKETHROUGH","CodeEditing","superscript","commandParams","change","get","FORMAT_ITALIC","plugins","getRanges","subscript","bold","from","underline","*Format:* %0","selection","value","FORMAT_SUBSCRIPT","italic","commands","BoldEditing","forceValue","FORMAT_CODE","SuperscriptEditing","format","toLowerCase","enableCommand","_descriptionFactory","FORMAT_SUPERSCRIPT","registerDescriptionCallback","ItalicEditing","locale","TrackChangesEditing","afterInit","isCollapsed","commandName","has","editor","markInlineFormat"];var br,Er;br=pr,Er=250,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]},Tr=[_r("0xb"),_r("0x15"),"UnderlineEditing",_r("0x21"),"StrikethroughEditing","SubscriptEditing",_r("0xe")];class Cr extends t.Plugin{[_r("0x18")](){const t=this[_r("0x1c")],e=t.model,n=t[_r("0x27")][_r("0x25")](_r("0x17")),o=t[_r("0x16")];for(const o of Tr){if(!t[_r("0x27")][_r("0x1b")](o))continue;const r=o[_r("0x1e")](0,-7)[_r("0x10")](),s=t[_r("0xa")][_r("0x25")](r);n[_r("0x11")](r,((t,o={})=>{const i=e.document[_r("0x6")];if(i[_r("0x19")])return void t(o);const x=void 0!==o[_r("0xc")]?o.forceValue:!s[_r("0x7")];e[_r("0x24")]((()=>{const t=Array[_r("0x3")](i[_r("0x0")]());for(const o of t){const t=x?[o]:mr(r,o,e);for(const e of t)n[_r("0x1d")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))}))}function r(t,e){n[_r("0x12")][_r("0x14")]((n=>{const{data:r}=n;if(r&&r[_r("0x1a")]===t)return r[_r("0x23")][0][_r("0xc")]?{type:_r("0xf"),content:Yo(o,_r("0x5"),e)}:{type:"format",content:Yo(o,_r("0x1f"),e)}}))}r(_r("0x2"),Yo(o,"FORMAT_BOLD")),r(_r("0x9"),Yo(o,_r("0x26"))),r(_r("0x4"),Yo(o,"FORMAT_UNDERLINE")),r("code",Yo(o,_r("0xd"))),r("strikethrough",Yo(o,_r("0x20"))),r(_r("0x1"),Yo(o,_r("0x8"))),r(_r("0x22"),Yo(o,_r("0x13")))}}const yr=["ELEMENT_BLOCK_QUOTE","afterInit","get","forceValue","parent","markBlockFormat","document","selection","model","format","commands","enableCommand","filter","commandName","editor","getSelectedBlocks","schema","*Remove format:* %0","$root","from","blockQuote","registerDescriptionCallback","has","commandParams","plugins","TrackChangesEditing","BlockQuoteEditing","checkChild"];var kr,Ar;kr=yr,Ar=178,function(t){for(;--t;)kr.push(kr.shift())}(++Ar);const vr=function(t,e){return yr[t-=0]};class Rr extends t.Plugin{[vr("0x13")](){const t=this[vr("0x4")],e=t.locale;if(!t[vr("0xe")][vr("0xc")](vr("0x10")))return;const n=t[vr("0xe")][vr("0x14")](vr("0xf")),o=this.editor[vr("0x0")][vr("0x14")](vr("0xa"));n[vr("0x1")](vr("0xa"),((e,r={})=>{const s=this[vr("0x4")][vr("0x1a")][vr("0x18")][vr("0x19")],i=r&&void 0!==r[vr("0x15")]?r[vr("0x15")]:!o.value;let x=[];if(i){const e=Array.from(s[vr("0x5")]())[vr("0x2")]((t=>Sr(t)||function(t,e){const n=e[vr("0x11")](t[vr("0x16")],"blockQuote"),o=e[vr("0x11")]([vr("0x8"),"blockQuote"],t);return n&&o}(t,this[vr("0x4")][vr("0x1a")][vr("0x6")])));x=S(e,t.model)}else{const e=Array[vr("0x9")](s[vr("0x5")]())[vr("0x2")]((t=>Sr(t)));x=S(e,t.model)}t[vr("0x1a")].change((()=>{for(const t of x)n[vr("0x17")](t,{commandName:vr("0xa"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[vr("0xb")]((t=>{const{data:n}=t;if(n&&"blockQuote"==n[vr("0x3")]){const t=Yo(e,vr("0x12"));return n[vr("0xd")][0][vr("0x15")]?{type:"format",content:Yo(e,"*Format:* %0",t)}:{type:vr("0x1b"),content:Yo(e,vr("0x7"),t)}}}))}}function Sr(t){return"blockQuote"==t.parent.name}const Ir=["commands","plugins","enableCommand","get","TrackChangesEditing","ckbox","afterInit"];var Lr,Nr;Lr=Ir,Nr=373,function(t){for(;--t;)Lr.push(Lr.shift())}(++Nr);const wr=function(t,e){return Ir[t-=0]};class Mr extends t.Plugin{[wr("0x4")](){const t=this.editor;t[wr("0x5")][wr("0x1")](wr("0x3"))&&t[wr("0x6")].get(wr("0x2"))[wr("0x0")](wr("0x3"))}}const Or=["codeBlock","editor","document","label","config","registerElementLabel","ELEMENT_CODE_BLOCK","language","schema","_descriptionFactory","find","name","rootElement","plugins","format","languages","isLimit","enableCommand","*Format:* %0","locale","commandParams","formatBlock","afterInit","filter","get","markBlockFormat","checkChild","getSelectedBlocks","*Remove format:* %0","selection","change","forceValue","commands","registerDescriptionCallback","TrackChangesEditing","outdentCodeBlock","model","parent","from","has","commandName"];var Fr,Pr;Fr=Or,Pr=385,function(t){for(;--t;)Fr.push(Fr.shift())}(++Pr);const Dr=function(t,e){return Or[t-=0]};class Br extends t.Plugin{[Dr("0x6")](){const t=this[Dr("0x1a")];if(!t[Dr("0x26")][Dr("0x17")]("CodeBlock"))return;const e=t[Dr("0x26")].get(Dr("0x12")),n=t[Dr("0x3")],o=t[Dr("0x1d")][Dr("0x8")]("codeBlock")[Dr("0x28")],r=t[Dr("0x10")].get(Dr("0x19"));e[Dr("0x1")]("indentCodeBlock"),e[Dr("0x1")](Dr("0x13")),e[Dr("0x1")]("codeBlock",((n,s={})=>{const i=t[Dr("0x14")],x=t[Dr("0x14")][Dr("0x1b")][Dr("0xd")],a=s&&void 0!==s[Dr("0xf")]?s[Dr("0xf")]:!r.value;let c;s[Dr("0x20")]||(s[Dr("0x20")]=o[0].language),c=a?Array[Dr("0x16")](x[Dr("0xb")]())[Dr("0x7")]((t=>{return jr(t)||(e=t,n=i[Dr("0x21")],!e.is(Dr("0x25"))&&!n[Dr("0x0")](e)&&n[Dr("0xa")](e[Dr("0x15")],Dr("0x19")));var e,n})):Array[Dr("0x16")](x[Dr("0xb")]())[Dr("0x7")]((t=>jr(t)));const l=S(c,i);i[Dr("0xe")]((()=>{for(const t of l)e[Dr("0x9")](t,{commandName:Dr("0x19"),commandParams:[{...s,forceValue:a}],formatGroupId:"blockName"})}))})),e[Dr("0x22")][Dr("0x1e")]("codeBlock",(t=>Yo(n,Dr("0x1f"),t))),e[Dr("0x22")][Dr("0x11")]((t=>{const e=n.t,{type:r,data:s}=t;if(Dr("0x5")==r&&s&&Dr("0x19")==s[Dr("0x18")]){const t=s.commandParams[0][Dr("0x20")],r=e(o[Dr("0x23")]((e=>e[Dr("0x20")]===t))[Dr("0x1c")]);return s[Dr("0x4")][0][Dr("0xf")]?{type:Dr("0x27"),content:Yo(n,Dr("0x2"),Yo(n,Dr("0x1f"),1)+" ("+r+")")}:{type:Dr("0x27"),content:Yo(n,Dr("0xc"),Yo(n,Dr("0x1f"),1))}}}))}}function jr(t){return"codeBlock"==t[Dr("0x24")]}const Ur=["get","CommentsEditing","afterInit","plugins","TrackChangesEditing","has"];var Gr,Hr;Gr=Ur,Hr=202,function(t){for(;--t;)Gr.push(Gr.shift())}(++Hr);const zr=function(t,e){return Ur[t-=0]};class Wr extends t.Plugin{[zr("0x4")](){const t=this.editor;t[zr("0x5")][zr("0x1")](zr("0x3"))&&t[zr("0x5")][zr("0x2")](zr("0x0")).enableCommand("addCommentThread")}}var Vr=n(181);const Kr=["modifySelection","high","markerName","enableCommand","enqueueChange","remove","editing","addMarker:suggestion:deletion","detach","batch","isCollapsed","model","mapper","buffer","forward","document","unit","createSelection","$graveyard","delete","rootName","downcastDispatcher","requires","lock","plugins","fromRange","selection","end","unbindElementFromMarkerName","options","createRange","data","showSuggestionHighlights","merge","deleteForward","markerNameToElements","getFirstRange","editor","removeMarker:suggestion:deletion","root","writer","start","unlock"];var qr,Xr;qr=Kr,Xr=322,function(t){for(;--t;)qr.push(qr.shift())}(++Xr);const $r=function(t,e){return Kr[t-=0]};class Qr extends t.Plugin{static get[$r("0x1")](){return[Vr.Delete]}init(){const t=this[$r("0x10")],e=t[$r("0x3")].get("TrackChangesEditing");e[$r("0x19")]($r("0x29"));const n=t.commands.get("deleteForward");e[$r("0x19")]($r("0xd"),((e,o={})=>{const r=t.model[$r("0x27")](t[$r("0x21")][$r("0x25")][$r("0x5")]);r[$r("0x20")]&&t.model[$r("0x16")](r,{direction:$r("0x24"),unit:o[$r("0x26")]});const s=r[$r("0xf")](),x=i.LiveRange[$r("0x4")](s);let a;e(o),a=$r("0x28")==x[$r("0x12")][$r("0x2a")]?t.model[$r("0x9")](s[$r("0x14")]):t[$r("0x21")][$r("0x9")](x[$r("0x14")],x[$r("0x6")]),x[$r("0x1e")](),t[$r("0x21")][$r("0x1a")](n[$r("0x23")][$r("0x1f")],(t=>{n[$r("0x23")][$r("0x2")](),t.setSelection(t.createRange(a[$r("0x6")])),n[$r("0x23")][$r("0x15")]()}))})),t[$r("0x1c")][$r("0x0")].on($r("0x1d"),hr(t,$r("0xc")),{priority:"high"}),t[$r("0xa")][$r("0x0")].on($r("0x1d"),((e,n,o)=>{o[$r("0x8")][$r("0xb")]&&hr(t,$r("0xc"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[$r("0x1c")][$r("0x0")].on($r("0x11"),((t,e,n)=>{const o=n[$r("0x22")][$r("0xe")](e.markerName);if(o)for(const t of o)t.is("uiElement")&&(n[$r("0x22")][$r("0x7")](t,e[$r("0x18")]),n[$r("0x13")][$r("0x1b")](t))}),{priority:$r("0x17")})}}const Jr=["TrackChangesEditing","getAttribute","selection","ELEMENT_NUMBERED_LIST","*Merge:* %0","ELEMENT_BULLETED_LIST","listIndent","*Change to:* %0","listItemId","commands","listType","ELEMENT_","findIndex","accept","registerCustomCallback","isFirstBlockOfListItem","createPositionAt","change","before","mergeListItemForward","splitListItemBefore","mergeListItemBackward","detach","add","commandParams","getRanges","length","registerElementLabel","indentList","deletion","nextSibling","get","bulletedList","slice","model","document","enableCommand","markMultiRangeBlockFormat","schema","DocumentListEditing","forceValue","start","end","fromRange","format","isObject","nodeAfter","multipleBlocks","formatBlock","splitListItemAfter","from","hasAttribute","markBlockFormat","ELEMENT_LIST_ITEM","*Indent:* %0","toUpperCase","getSelectedBlocks","containsItem","commandName","expandListBlocksToCompleteList","setSelection","push","documentList","_descriptionFactory","plugins","createRange","getFirstRange","value","_LIST","numberedList","*Format:* remove from %0","outdentList","registerDescriptionCallback","refresh"];var Zr,Yr;Zr=Jr,Yr=402,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const ts=function(t,e){return Jr[t-=0]};class es extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins.has(ts("0x7")))return;const e=t.locale,n=t[ts("0x20")][ts("0x49")](ts("0x2a")),o=t[ts("0x20")][ts("0x49")]("DocumentListUtils");function r(e){return()=>{const r=t[ts("0x33")][ts("0x49")](e);let s=Array[ts("0x12")](t[ts("0x2")][ts("0x3")].selection[ts("0x18")]());if(a(e)){s=o[ts("0x1b")](s);const t=[];for(const e of s)o[ts("0x39")](e)&&t[ts("0x1d")](e);s=t}t[ts("0x2")].change((()=>{n[ts("0x5")](s,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:"listType"},[],"documentList")}))}}function s(e){return()=>{const o=function(t){let e=Array[ts("0x12")](t);const n=e[ts("0x36")]((t=>!t[ts("0x13")](ts("0x32"))));return n>-1&&(e=e[ts("0x1")](0,n)),e}(t[ts("0x2")][ts("0x3")][ts("0x2c")][ts("0x18")]()),r=o[o[ts("0x44")]-1],s=t.model.schema[ts("0xd")](r)?"after":ts("0xa"),i=t[ts("0x2")][ts("0x21")](t[ts("0x2")][ts("0x3a")](o[0],ts("0x3c")),t[ts("0x2")][ts("0x3a")](r,s));t.model[ts("0x3b")]((()=>{n[ts("0x14")](i,{commandName:e,commandParams:[],formatGroupId:ts("0x34")},function(t){const e=new Set;for(const n of t){let t=n[ts("0x48")];for(;t&&t[ts("0x2b")](ts("0x30"))>n[ts("0x2b")](ts("0x30"));)e[ts("0x41")](t),t=t.nextSibling}return Array[ts("0x12")](e)}(o))}))}}function x(e){return()=>{const o=t[ts("0x2")].document[ts("0x2c")][ts("0x18")]().next()[ts("0x23")],r=t[ts("0x2")][ts("0x3a")](o,"before"),s=t[ts("0x2")].createPositionAt(o,0),i=t[ts("0x2")][ts("0x21")](r,s);t.model.change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:ts("0x34")})}))}}function a(e){const n=t[ts("0x33")][ts("0x49")](ts("0x0")).value,o=t.commands.get("numberedList")[ts("0x23")];return"numberedList"===e?n:o}n[ts("0x4")](ts("0x25"),r(ts("0x25"))),n[ts("0x4")](ts("0x0"),r(ts("0x0"))),n[ts("0x4")](ts("0x46"),s(ts("0x46"))),n[ts("0x4")](ts("0x27"),s(ts("0x27"))),n[ts("0x4")]("splitListItemAfter",x(ts("0x11"))),n[ts("0x4")](ts("0x3e"),x("splitListItemBefore")),n[ts("0x1f")][ts("0x45")]((function(e){const n=!t[ts("0x2")][ts("0x6")][ts("0xd")](e),o=e.previousSibling,r=e[ts("0x48")],s=e[ts("0x2b")](ts("0x32")),i=!o||o.getAttribute("listItemId")!==s,x=!r||r[ts("0x2b")](ts("0x32"))!==s;return n&&Boolean(s)&&i&&x}),(t=>Yo(e,ts("0x15"),t))),n[ts("0x1f")][ts("0x28")]((function(t){const{data:n}=t;if(!n)return;let o,r,s,i;switch(n.commandName){case ts("0x0"):s=n.commandParams[0][ts("0x8")],i=a(n[ts("0x1a")]),o=s?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0xc"),content:Yo(e,o,Yo(e,ts("0x2f")))};break;case ts("0x25"):s=n.commandParams[0].forceValue,i=a(n[ts("0x1a")]),o=s?"*Format:* insert into %0":"*Format:* remove from %0",i&&(o=ts("0x31")),r={type:ts("0xc"),content:Yo(e,o,Yo(e,ts("0x2d")))};break;case ts("0x46"):o=ts("0x16"),r={type:ts("0xc"),content:Yo(e,o,Yo(e,ts("0x15")))};break;case ts("0x27"):o=function(t){const e=t[ts("0x22")]();let n=e[ts("0x9")][ts("0xe")];for(;n&&e[ts("0x19")](n);){if(n[ts("0x2b")](ts("0x30"))>0)return!1;n=n[ts("0x48")]}return!0}(t)?Yo(e,ts("0x26"),Yo(e,function(t){const e=t[ts("0x22")]()[ts("0x9")][ts("0xe")];return ts("0x35")+e.getAttribute(ts("0x34"))[ts("0x17")]()+ts("0x24")}(t))):Yo(e,"*Outdent:* %0",Yo(e,ts("0x15"))),r={type:ts("0xc"),content:o};break;case ts("0x3f"):case ts("0x3d"):!1===n[ts("0xf")]&&(o=ts("0x2e"),r={type:ts("0x47"),content:Yo(e,o,Yo(e,ts("0x15")))})}return r})),n._suggestionFactory[ts("0x38")](ts("0x10"),ts("0x1e"),ts("0x37"),(function(e,n){const o=[];for(let n of e)n[ts("0x9")][ts("0xe")]===n.end.parent&&(n=t[ts("0x2")][ts("0x21")](t[ts("0x2")][ts("0x3a")](n[ts("0x9")][ts("0xe")],0))),o.push(n);t[ts("0x2")][ts("0x3b")]((e=>{const r=t[ts("0x2")][ts("0x3")][ts("0x2c")],s=Array[ts("0x12")](r[ts("0x43")]()).map((t=>i.LiveRange[ts("0xb")](t)));e[ts("0x1c")](o),t[ts("0x33")][ts("0x49")](n[ts("0x1a")])[ts("0x29")](),n[ts("0x42")][ts("0x1d")]({forceDefaultExecution:!0}),t.execute(n.commandName,...n.commandParams),e[ts("0x1c")](s);for(const t of s)t[ts("0x40")]()}))}))}}var ns=n(331);const os=["model","selection","detach","markerName","createPositionAt","downcastDispatcher","data","end","unbindElementFromMarkerName","enterBlock","commands","remove","bind","markInsertion","addMarker:suggestion:insertion","showSuggestionHighlights","plugins","parent","document","ck-suggestion-marker-split","change","editor","createRange","get","split","getFirstRange","removeMarker:suggestion:insertion","fromRange","setSelection","high","enter","TrackChangesEditing","hasClass","mapper","nextSibling"];var rs,ss;rs=os,ss=101,function(t){for(;--t;)rs.push(rs.shift())}(++ss);const is=function(t,e){return os[t-=0]};class xs extends t.Plugin{static get requires(){return[ns.Enter]}init(){const t=this[is("0x19")],e=t[is("0x14")][is("0x1b")](is("0x0")),n=t[is("0xe")][is("0x1b")](is("0x22"));e.enableCommand(is("0x22"),(()=>{t.model[is("0x18")]((o=>{const r=t[is("0x4")][is("0x16")][is("0x5")],s=r.getFirstPosition(),x=i.LiveRange[is("0x1f")](r[is("0x1d")]());if(n[is("0xd")](o)){const n=t[is("0x4")][is("0x8")](s[is("0x15")][is("0x3")],0),r=o[is("0x1a")](s,n);e[is("0x11")](r)}else o[is("0x20")](o.createRange(x[is("0xb")]));x[is("0x6")](),n.fire("afterExecute",{writer:o})}))})),t.editing[is("0x9")].on(is("0x12"),hr(t,is("0x1c")),{priority:is("0x21")}),t.editing[is("0x9")].on(is("0x1e"),((t,e,n)=>{const o=n[is("0x2")].markerNameToElements(e[is("0x7")]);if(o)for(const t of o)t[is("0x1")](is("0x17"))&&(n[is("0x2")][is("0xc")](t,e[is("0x7")]),n.writer[is("0xf")](t))}),{priority:is("0x21")}),t[is("0xa")].downcastDispatcher.on(is("0x12"),((e,n,o)=>{o.options[is("0x13")]&&hr(t,is("0x1c"),{showActiveMarker:!1})[is("0x10")](this)(e,n,o)}),{priority:"high"})}}const as=["editor","start","FindAndReplaceUtils","createRange","TrackChangesEditing","getIntersection","suggestion:deletion","_isInDeletionRange","markers","model","replaceAll","end","string","filter","handleFindCommand","enableCommand","item","afterInit","bind","findPrevious","getRange","get","getMarkersGroup","plugins","createPositionAt","findByTextCallback"];var cs,ls;cs=as,ls=455,function(t){for(;--t;)cs.push(cs.shift())}(++ls);const ds=function(t,e){return as[t-=0]};class us extends t.Plugin{[ds("0x4")](){if(!this[ds("0xd")][ds("0xa")].has("FindAndReplaceEditing"))return;const t=this[ds("0xd")][ds("0xa")].get(ds("0x11"));t[ds("0x2")]("find",this[ds("0x1")][ds("0x5")](this)),t.enableCommand("findNext"),t.enableCommand(ds("0x6")),t.enableCommand("replace"),t[ds("0x2")](ds("0x17"))}[ds("0x1")](t,e,n={}){const o=this[ds("0xd")][ds("0xa")][ds("0x8")](ds("0xf"));void 0!==n&&t((t=>(ds("0x19")==typeof e?o[ds("0xc")](e,n):e)(t)[ds("0x0")]((e=>!1===this[ds("0x14")](e,t[ds("0x3")])))),n)}[ds("0x14")](t,e){const n=this[ds("0xd")][ds("0x16")][ds("0x10")](this.editor.model[ds("0xb")](e,t[ds("0xe")]),this[ds("0xd")][ds("0x16")].createPositionAt(e,t[ds("0x18")]));for(const t of this[ds("0xd")].model[ds("0x15")][ds("0x9")](ds("0x13")))if(null!==n[ds("0x12")](t[ds("0x7")]()))return!0;return!1}}const gs=["change","title","toLowerCase","find","FontSize","fontFamily","fontBackgroundColor.colors","fontColor","commandParams","*Set font background color:* %0","FontColorEditing","trim","format","locale","config","normalizeSizeOptions","commandName","fontColor.colors","editor","_enableCommand","afterInit","plugins","markInlineFormat","TrackChangesEditing","fontBackgroundColor","getRanges","get","*Reset font background color*","from","value","selection","*Reset font color*","*Reset font size*","model","FontBackgroundColorEditing","isCollapsed","label","*Set font family:* %0"];var ms,fs;ms=gs,fs=184,function(t){for(;--t;)ms.push(ms.shift())}(++fs);const hs=function(t,e){return gs[t-=0]},ps=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:"FontFamilyEditing",commandName:hs("0xb")},{pluginName:hs("0x10"),commandName:"fontColor"},{pluginName:hs("0x2"),commandName:"fontBackgroundColor"}];class bs extends t.Plugin{[hs("0x1a")](){const t=this[hs("0x18")][hs("0x13")];for(const{pluginName:t,commandName:e}of ps)this[hs("0x18")][hs("0x1b")].has(t)&&this[hs("0x19")](e);this[hs("0x18")][hs("0x1b")].get(hs("0x1d"))._descriptionFactory.registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[hs("0x16")]){const e=o[hs("0xe")][0].value;if(e){const o=n(this.editor[hs("0x1b")][hs("0x20")](hs("0xa"))[hs("0x15")](this[hs("0x18")][hs("0x14")].get("fontSize.options"))[hs("0x9")]((t=>t[hs("0x1")]==e))[hs("0x7")])[hs("0x8")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:hs("0x12"),content:Yo(t,hs("0x0"))}}if(hs("0xb")==o[hs("0x16")]){const e=o.commandParams[0][hs("0x23")];return e?{type:"format",content:Yo(t,hs("0x5"),e)}:{type:hs("0x12"),content:Yo(t,"*Reset font family*")}}if(hs("0xd")==o[hs("0x16")]){const e=o[hs("0xe")][0].value;if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x18")][hs("0x14")].get(hs("0x17"))).find((t=>t.model==e));let s=e,i="";return o&&(s=o[hs("0x4")],i=n(s)[hs("0x8")]()),{type:hs("0x12"),content:Yo(t,"*Set font color:* %0",i)[hs("0x11")](),color:{value:e,title:i||s}}}return{type:hs("0x12"),content:Yo(t,hs("0x25"))}}if(hs("0x1e")==o[hs("0x16")]){const e=o.commandParams[0].value;if(e){const o=(0,r.normalizeColorOptions)(this[hs("0x18")][hs("0x14")].get(hs("0xc"))).find((t=>t.model==e));let s=e,i="";return o&&(s=o[hs("0x4")],i=n(s).toLowerCase()),{type:"format",content:Yo(t,hs("0xf"),i)[hs("0x11")](),color:{value:e,title:i||s}}}return{type:hs("0x12"),content:Yo(t,hs("0x21"))}}}}))}[hs("0x19")](t){const e=this.editor;e[hs("0x1b")].get("TrackChangesEditing").enableCommand(t,((n,o={})=>{const r=e[hs("0x1")].document[hs("0x24")],s=o[hs("0x23")];r[hs("0x3")]?n(o):e[hs("0x1")][hs("0x6")]((()=>{const n=Array[hs("0x22")](r[hs("0x1f")]());for(const o of n){const n=s?[o]:mr(t,o,e[hs("0x1")]);for(const o of n)e[hs("0x1b")][hs("0x20")](hs("0x1d"))[hs("0x1c")](o,{commandName:t,commandParams:[{value:s}]})}}))}))}}const Es=["slice","isFormatting","createRange","entries","editor","title","schema","*Remove all formatting*","model","selection","*Set format to:* %0","getRanges","fontColor.colors","split","config","boolean","getAttributes","from","length","_descriptionFactory","get","backward","enableCommand","commands","fontBackgroundColor","isCollapsed","getLastPosition","fontSize.options","forward","getFirstPosition","fontColor","locale","pasteFormat","charAt","plugins","TrackChangesEditing","label","find","modifySelection","normalizeSizeOptions","join","getItems","markInlineFormat","getSelectedBlocks","format","getAttributeProperties","isBlock","copyFormat","toLowerCase"];var _s,Ts;_s=Es,Ts=487,function(t){for(;--t;)_s.push(_s.shift())}(++Ts);const Cs=function(t,e){return Es[t-=0]};class ys extends t.Plugin{afterInit(){const t=this[Cs("0x7")],n=t[Cs("0xb")],o=n.document[Cs("0xc")],r=t.plugins[Cs("0x17")]("TrackChangesEditing"),s=t[Cs("0x22")],i=t.commands[Cs("0x17")](Cs("0x1")),x=t[Cs("0x1a")][Cs("0x17")](Cs("0x23"));i&&x&&(r[Cs("0x19")](Cs("0x23"),((t,s={})=>{const i=s;n.change((()=>{const t=Array[Cs("0x14")](o.getRanges()),s=o[Cs("0x1c")]?[ks(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Cs("0x13")]()){const t=e[Cs("0x30")](n);t&&t[Cs("0x4")]&&(yield n)}}(t,n));for(const e of t[Cs("0xe")]())for(const t of e[Cs("0x2c")]())!n[Cs("0x0")](t)&&o(t)&&(yield t);for(const e of t[Cs("0x2e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cs("0x9")]))||0!==Object.keys(i)[Cs("0x15")])for(const t of s)r[Cs("0x2d")](t,{commandName:Cs("0x23"),commandParams:[i]})}))})),r[Cs("0x16")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n.commandParams[0];for(const[n,r]of Object[Cs("0x6")](o))e.push(As(t,n,r));return e.length?{type:"format",content:Yo(s,Cs("0xd"),e[Cs("0x2b")](", "))}:{type:Cs("0x2f"),content:Yo(s,Cs("0xa"))}}})),t.plugins[Cs("0x17")](Cs("0x26")).enableCommand(Cs("0x1")))}}function ks(t,e){const n=t.createSelection(e);t[Cs("0x29")](n,{unit:"word",direction:Cs("0x18")});const o=n[Cs("0x20")]();t[Cs("0x29")](n,{unit:"word",direction:Cs("0x1f")});const r=n[Cs("0x1d")]();return t[Cs("0x5")](o,r)}function As(t,e,n){const o=t[Cs("0x22")].t,s=e[Cs("0x10")](/(?=[A-Z])/)[Cs("0x2b")](" "),i=o(s[Cs("0x24")](0).toUpperCase()+s[Cs("0x3")](1))[Cs("0x2")]();if(Cs("0x12")==typeof n)return i;if(Cs("0x21")===e||Cs("0x1b")===e){const e=(0,r.normalizeColorOptions)(t[Cs("0x11")].get(Cs("0xf")))[Cs("0x28")]((t=>t[Cs("0xb")]==n));return i+" ("+(e?o(e[Cs("0x27")])[Cs("0x2")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cs("0x25")][Cs("0x17")]("FontSize")[Cs("0x2a")](t.config[Cs("0x17")](Cs("0x1e")))[Cs("0x28")]((t=>t.model==n));return i+" ("+(e?o(e[Cs("0x8")])[Cs("0x2")]():n)+")"}return i+" ("+n+")"}const vs=["heading.options","ELEMENT_HEADING_CUSTOM","blockName","checkChild","model","value","markBlockFormat","plugins","*Change to:* %0","HeadingEditing","match","enableCommand","ELEMENT_HEADING","title","name","from","heading","commandName","get","registerDescriptionCallback","_descriptionFactory","has","document","formatBlock","schema","locale","filter","parent","isObject","editor"];var Rs,Ss;Rs=vs,Ss=226,function(t){for(;--t;)Rs.push(Rs.shift())}(++Ss);const Is=function(t,e){return vs[t-=0]};class Ls extends t.Plugin{afterInit(){const t=this[Is("0xd")],e=t[Is("0x9")],n=t.config[Is("0x2")](Is("0xe"));if(!t[Is("0x15")][Is("0x5")](Is("0x17")))return;const o=t.plugins[Is("0x2")]("TrackChangesEditing");o[Is("0x19")](Is("0x0"),((e,n)=>{const r=n[Is("0x13")],s=Array[Is("0x1d")](this[Is("0xd")][Is("0x12")][Is("0x6")].selection.getSelectedBlocks())[Is("0xa")]((t=>{return e=t,n=r,(o=this[Is("0xd")][Is("0x12")][Is("0x8")])[Is("0x11")](e[Is("0xb")],n)&&!o[Is("0xc")](e)&&e[Is("0x1c")]!=n;var e,n,o}));t[Is("0x12")].change((()=>{for(const t of s)o[Is("0x14")](t,{commandName:Is("0x0"),commandParams:[n],formatGroupId:Is("0x10")},fr(t))}))}));for(const t of n)"paragraph"!=t[Is("0x12")]&&o[Is("0x4")].registerElementLabel(t[Is("0x12")],(e=>{const n=Ns(t.model);return null!==n?r(e,n):s(e,t[Is("0x1b")])}));function r(t,n){return Yo(e,Is("0x1a"),[t,n])}function s(t,n){return Yo(e,Is("0xf"),[t,n])}o[Is("0x4")][Is("0x3")]((t=>{const{type:o,data:i}=t;if(Is("0x7")==o&&i&&"heading"==i[Is("0x1")]){const t=i.commandParams[0][Is("0x13")],o=Ns(t);if(null!==o)return{type:"format",content:Yo(e,"*Change to:* %0",r(1,o))};const x=n.find((e=>e.model===t))[Is("0x1b")];return{type:"format",content:Yo(e,Is("0x16"),s(1,x))}}}))}}function Ns(t){const e=t[Is("0x18")](/^heading(\d+)$/);return e?e[1]:null}const ws=["find","FORMAT_HIGHLIGHT","markInlineFormat","color","value","format","document","getLastMatchingPosition","HighlightEditing","backward","item","highlight","*Set highlight:* %0","commandParams","commandName","title","getFirstPosition","getAttribute","TrackChangesEditing","selection","push","get","change","getRanges","hasAttribute","afterInit","locale","plugins","_descriptionFactory","model","registerDescriptionCallback","enableCommand","editor","config"];var Ms,Os;Ms=ws,Os=288,function(t){for(;--t;)Ms.push(Ms.shift())}(++Os);const Fs=function(t,e){return ws[t-=0]};class Ps extends t.Plugin{[Fs("0x9")](){const t=this[Fs("0x10")];if(!t[Fs("0xb")].has(Fs("0x1a")))return;const e=t[Fs("0xb")][Fs("0x5")](Fs("0x2"));e[Fs("0xf")](Fs("0x1d"),((n,o={})=>{const r=t.model[Fs("0x18")][Fs("0x3")],s=r[Fs("0x1")](Fs("0x1d"));let i=o[Fs("0x16")],x=[];if(r.isCollapsed){const e=r[Fs("0x0")]();if(!r[Fs("0x8")](Fs("0x1d")))return void n(o);{const n=t=>t[Fs("0x1c")].getAttribute("highlight")===s,o=e[Fs("0x19")](n,{direction:Fs("0x1b")}),r=e[Fs("0x19")](n);x=[t[Fs("0xd")].createRange(o,r)],i==s&&(i=null)}}else for(const e of r[Fs("0x7")]())i?x[Fs("0x4")](e):x[Fs("0x4")](...mr("highlight",e,t[Fs("0xd")]));t.model[Fs("0x6")]((()=>{for(const t of x)e[Fs("0x14")](t,{commandName:"highlight",commandParams:[{value:i}]})}))}));const n=t[Fs("0xa")];e[Fs("0xc")][Fs("0xe")]((e=>{const{type:o,data:r}=e;if("formatInline"==o&&r&&Fs("0x1d")==r[Fs("0x20")]){const e=n.t,o=r[Fs("0x1f")][0][Fs("0x16")];if(o){const r=t[Fs("0x11")][Fs("0x5")]("highlight.options")[Fs("0x12")]((t=>t[Fs("0xd")]==o)),s=e(r[Fs("0x21")]).toLowerCase();return{type:Fs("0x17"),content:Yo(n,Fs("0x1e"),s),color:{value:r[Fs("0x15")],title:r[Fs("0x21")]}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,Fs("0x13")))}}}))}}const Ds=["createContainerElement","get","plugins","ELEMENT_HORIZONTAL_LINE","createEmptyElement","HorizontalLineEditing","createPositionAt","elementToStructure","dataDowncast","div","conversion","editor","addClass","for","afterInit","high","locale","has","ck-horizontal-line","horizontalLine"];var Bs,js;Bs=Ds,js=138,function(t){for(;--t;)Bs.push(Bs.shift())}(++js);const Us=function(t,e){return Ds[t-=0]};class Gs extends t.Plugin{[Us("0x10")](){const t=this[Us("0xd")];if(!t[Us("0x4")][Us("0x13")](Us("0x7")))return;t[Us("0x4")][Us("0x3")]("TrackChangesEditing").enableCommand(Us("0x1"));const e=t[Us("0x4")][Us("0x3")]("TrackChangesEditing"),n=t[Us("0x12")];e._descriptionFactory.registerElementLabel(Us("0x1"),(t=>Yo(n,Us("0x5"),t))),t[Us("0xc")][Us("0xf")](Us("0xa"))[Us("0x9")]({model:Us("0x1"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Us("0x2")](Us("0xb")),r=e[Us("0x6")]("hr");return e[Us("0xe")](Us("0x0"),o),e.insert(e[Us("0x8")](o,0),r),o},converterPriority:Us("0x11")})}}const Hs=["value","htmlEmbed","locale","format","getSelectedElement","model","selection","ELEMENT_HTML_EMBED","rawHtml","plugins","get","getCustomProperty","HtmlEmbed","registerDescriptionCallback","registerElementLabel","change","editing","_descriptionFactory","document","enableCommand","markBlockFormat","afterInit","TrackChangesEditing","element","has","commandName"];var zs,Ws;zs=Hs,Ws=382,function(t){for(;--t;)zs.push(zs.shift())}(++Ws);const Vs=function(t,e){return Hs[t-=0]};class Ks extends t.Plugin{[Vs("0x3")](){const t=this.editor;if(!t[Vs("0x11")][Vs("0x6")](Vs("0x14")))return;const e=t[Vs("0x11")][Vs("0x12")](Vs("0x4")),n=t[Vs("0xa")],o=t[Vs("0x18")].view[Vs("0x0")][Vs("0xe")];e._descriptionFactory[Vs("0x16")](Vs("0x10"),(t=>Yo(n,Vs("0xf"),t))),t[Vs("0x11")].get(Vs("0x4"))[Vs("0x1")](Vs("0x9"),((n,r)=>{const s=t[Vs("0xd")],i=s.document[Vs("0xe")];s[Vs("0x17")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Vs("0x5"),Vs("0x10"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const s=t.getAttribute(Vs("0x8"))||"";void 0!==r&&r!==s&&(e[Vs("0x2")](t,{commandName:Vs("0x9"),commandParams:[r]}),o[Vs("0xc")]()[Vs("0x13")]("rawHtmlApi").cancel())}))})),e[Vs("0x19")][Vs("0x15")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Vs("0x7")]){const t=Yo(n,Vs("0xf"));return{type:Vs("0xb"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qs=["model","start","removeObject","ImageResize","author","differ","forceDefaultExecution","markInsertion","ELEMENT_IMAGE","getAttribute","registerPostFixer","imageTextAlternative","head","markBlockFormat","get","createRange","_descriptionFactory","_splitMarkerName","getCaptionFromImageModelElement","getSuggestions","previous","newValue","registerElementLabel","newRange","value","Block image to inline image","change","plugins","isCollapsed","caption","imageTypeInline","shouldConvertImageType","_findSuggestions","formatBlock","ImageEditing","find","selection","insertion","title","from","locale","alt","imageCaption","ELEMENT_INLINE_IMAGE","isBefore","isBlockImage","filter","toNext","imageTypeBlock","accept","ImageStyleEditing","length","uploadImage","afterInit","format","*Reset image width*","getNearestSelectionRange","resizeImage","nodeBefore","element","formatInline","ImageUploadEditing","deletion","name","imageStyle","convertInlineImageToBlock","TrackChangesEditing","toPrevious","commandName","document","convertBlockImageToInline","imageStylePreApply","forward","refresh","*Remove image text alternative*","suggestion","subType","width","ImageCaptionEditing","backward","FORMAT_SIDE_IMAGE","_suggestionFactory","*Format:* %0","*Set image text alternative:* %0","findIndex","has","*Set image width:* %0","getSuggestionCallback","normalizedStyles","registerDescriptionCallback","imageInline","commandReversedParams","getClosestSelectedImageElement","isInContent","commands","createRangeOn","registerCustomCallback","ImageCaptionUtils","getFirstRange","toggleImageCaption","isEqual","discard","side","detach","ImageUtils","getContainedElement","end","fromPosition","type","insertImage","imageStylePostApply","ImageBlockEditing","hasAttribute","Inline image to block image","getSuggestion","next","commandParams","chain","ELEMENT_CAPTION","forEach","isInlineImage","enableCommand","join","discardSuggestion"];var Xs,$s;Xs=qs,$s=432,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Qs=function(t,e){return qs[t-=0]};class Js extends t.Plugin{[Qs("0x75")](){const t=this.editor;if(!t[Qs("0x5b")][Qs("0x19")](Qs("0x62")))return;const n=t[Qs("0x5b")][Qs("0x4e")](Qs("0x6")),o=t[Qs("0x5b")][Qs("0x4e")](Qs("0x2c")),r={},s=t[Qs("0x68")];if(n[Qs("0x3d")](Qs("0x31")),n[Qs("0x50")][Qs("0x56")]("imageBlock",(t=>Yo(s,Qs("0x48"),t))),n[Qs("0x50")][Qs("0x56")](Qs("0x1e"),(t=>Yo(s,Qs("0x6b"),t))),n[Qs("0x50")].registerElementLabel(Qs("0x5d"),(()=>Yo(s,Qs("0x3a")))),t[Qs("0x5b")][Qs("0x19")](Qs("0x1"))&&n.enableCommand(Qs("0x74")),t.plugins[Qs("0x19")](Qs("0x33"))&&t.plugins[Qs("0x19")]("ImageInlineEditing")&&(n[Qs("0x3d")](Qs("0x5e"),((e,r)=>{const s=o.getClosestSelectedImageElement(t[Qs("0x40")].document[Qs("0x64")]);t[Qs("0x40")][Qs("0x5a")]((()=>{n.markBlockFormat(s,{commandName:Qs("0x5e"),commandParams:[r]},[],Qs("0xa"))}))})),n[Qs("0x3d")]("imageTypeBlock",((e,r)=>{t[Qs("0x40")][Qs("0x5a")]((s=>{let x=o[Qs("0x20")](t[Qs("0x40")].document[Qs("0x64")]),a=s[Qs("0x23")](x);const c=i.LivePosition[Qs("0x2f")](a[Qs("0x41")],Qs("0x7")),l=i.LivePosition.fromPosition(a.end,Qs("0x6f"));n[Qs("0x46")]((()=>e(r))),x=o[Qs("0x20")](t.model.document[Qs("0x64")]),a=s[Qs("0x23")](x);const d=s[Qs("0x4f")](c,l);c[Qs("0x2b")](),l[Qs("0x2b")](),n[Qs("0x4d")](x,{commandName:Qs("0x5e"),commandParams:[]},[],Qs("0x5")),d[Qs("0x41")][Qs("0x6c")](a.start)&&n.markInsertion(s[Qs("0x4f")](d.start,a[Qs("0x41")]),Qs("0x5")),a[Qs("0x2e")][Qs("0x6c")](d[Qs("0x2e")])&&n[Qs("0x47")](s[Qs("0x4f")](a[Qs("0x2e")],d.end),Qs("0x5"))}))})),n[Qs("0x15")][Qs("0x24")](Qs("0x61"),Qs("0x5"),Qs("0x3e"),(()=>!1)),n[Qs("0x15")][Qs("0x24")](Qs("0x61"),Qs("0x5"),Qs("0x71"),(()=>!1)),n._suggestionFactory[Qs("0x24")](Qs("0x61"),"convertInlineImageToBlock","discard",n._suggestionFactory.getSuggestionCallback(Qs("0x61"),"",Qs("0x71"))),n[Qs("0x15")][Qs("0x24")]("insertion","convertInlineImageToBlock","join",(()=>!1)),n._suggestionFactory[Qs("0x24")]("insertion",Qs("0x5"),Qs("0x29"),(([e])=>{const o=n._suggestionFactory[Qs("0x1b")]("insertion","",Qs("0x29"));let r=e.start,s=e[Qs("0x2e")];const i=t[Qs("0x40")].schema[Qs("0x78")](r,Qs("0x13")),x=t.model.schema[Qs("0x78")](s,Qs("0xc"));i[Qs("0x5c")]&&(r=i[Qs("0x41")]),x[Qs("0x5c")]&&(s=x[Qs("0x2e")]),o([t.model[Qs("0x4f")](r,s)])})),n[Qs("0x15")][Qs("0x24")](Qs("0x61"),Qs("0x5"),"chain",c),n[Qs("0x15")][Qs("0x24")](Qs("0x65"),"convertInlineImageToBlock",Qs("0x39"),c)),t.plugins[Qs("0x19")](Qs("0x12"))&&(n[Qs("0x3d")](Qs("0x27"),((e,r)=>{const s=t[Qs("0x5b")][Qs("0x4e")](Qs("0x25"));let i=o[Qs("0x20")](t[Qs("0x40")][Qs("0x9")][Qs("0x64")]),x=s[Qs("0x52")](i);t[Qs("0x40")][Qs("0x5a")]((()=>{if(x)return void n.markDeletion(t[Qs("0x40")][Qs("0x23")](x));const a=o[Qs("0x6d")](i);e(r),i=o[Qs("0x20")](t[Qs("0x40")].document.selection),x=s[Qs("0x52")](i),n[Qs("0x47")](t[Qs("0x40")][Qs("0x23")](x),a?null:Qs("0x6a"))}))})),n[Qs("0x15")][Qs("0x24")](Qs("0x65"),"imageCaption","chain",c)),t.plugins.has(Qs("0x72"))){n.enableCommand(Qs("0x4"),((r,s)=>{const i=t[Qs("0x5b")][Qs("0x4e")]("Users").me,x=t[Qs("0x22")].get(Qs("0x4"));let a=o[Qs("0x20")](t.model.document[Qs("0x64")]),c=t[Qs("0x40")][Qs("0x23")](a),l=x[Qs("0x58")];if(l==s[Qs("0x58")])return;const d={commandName:"imageStyle",commandParams:[s],formatGroupId:(0,e.uid)()};t[Qs("0x40")].change((()=>{if(n[Qs("0x53")]()[Qs("0x6e")]((t=>t[Qs("0x21")]&&i==t[Qs("0x44")]&&(Qs("0x61")==t[Qs("0x30")]||Qs("0x0")==t[Qs("0x30")])&&("imageStylePreApply"==t[Qs("0x10")]||Qs("0x32")==t[Qs("0x10")])&&t[Qs("0x26")]()[Qs("0x28")](c)))[Qs("0x3b")]((t=>n[Qs("0x3f")](t[Qs("0x4c")]))),a=o[Qs("0x20")](t.model[Qs("0x9")][Qs("0x64")]),c=t[Qs("0x40")][Qs("0x23")](a),x[Qs("0xd")](),t[Qs("0x22")][Qs("0x4e")]("imageTypeInline").refresh(),t[Qs("0x22")][Qs("0x4e")](Qs("0x70")).refresh(),l=x[Qs("0x58")],l!=s[Qs("0x58")])return o[Qs("0x3c")](a)&&x[Qs("0x5f")](s.value,a)?(r(s),a=o[Qs("0x20")](t.model[Qs("0x9")][Qs("0x64")]),void n[Qs("0x4d")](a,{...d,commandReversedParams:[{value:l||null}]},[],Qs("0xb"))):void(o[Qs("0x6d")](a)?n[Qs("0x4d")](a,d,[],"imageStylePostApply"):n.markInlineFormat(c,d,Qs("0x32")))}))}));for(const e of t[Qs("0x5b")].get(Qs("0x72"))[Qs("0x1c")])r[e[Qs("0x3")]]=e[Qs("0x66")].toLowerCase();n[Qs("0x15")][Qs("0x24")](Qs("0x61"),"imageStylePreApply",Qs("0x3e"),(()=>!1)),n[Qs("0x15")][Qs("0x24")]("formatBlock",Qs("0x32"),"join",(()=>!1)),n[Qs("0x15")][Qs("0x24")](Qs("0x0"),Qs("0x32"),Qs("0x3e"),(()=>!1)),n._suggestionFactory.registerCustomCallback(Qs("0x61"),"imageStylePreApply",Qs("0x71"),(()=>!1)),n._suggestionFactory[Qs("0x24")](Qs("0x61"),Qs("0xb"),Qs("0x29"),((t,e)=>{n[Qs("0x15")][Qs("0x1b")](Qs("0x61"),"",Qs("0x71"))(t,{commandName:e[Qs("0x8")],commandParams:e[Qs("0x1f")]})})),n[Qs("0x15")][Qs("0x24")](Qs("0x61"),"imageStylePreApply","chain",c)}const x=[{type:Qs("0x61"),subType:Qs("0xb")},{type:Qs("0x65"),subType:Qs("0x6a")},{type:Qs("0x61"),subType:Qs("0x5")},{type:Qs("0x65"),subType:"convertInlineImageToBlock"}];function a(t,e){const r=x[Qs("0x18")]((({type:e,subType:n})=>t.type==e&&t[Qs("0x10")]==n)),s=x[Qs("0x18")]((({type:t,subType:n})=>e[Qs("0x30")]==t&&e.subType==n));if(r<0||s<0)return!1;const i=t.getFirstRange(),a=e.getFirstRange();if((0==r||1==r)&&2==s&&i.isIntersecting(a))return!0;if(2==r&&3==s){const t=n[Qs("0x60")](i,"insertion")[Qs("0x6e")]((({suggestion:t,meta:e})=>e.isOwn&&Qs("0x5")==t[Qs("0x10")]));if(t[Qs("0x73")]>1&&a.end.isEqual(i[Qs("0x41")]))return!0;if(1==t[Qs("0x73")]&&(i[Qs("0x41")].isEqual(a[Qs("0x2e")])||i[Qs("0x2e")][Qs("0x28")](a[Qs("0x41")])))return!0}if(3==r&&3==s&&i.start[Qs("0x6c")](a[Qs("0x41")])){const t=i[Qs("0x2e")].nodeAfter,e=a.start[Qs("0x7a")];return o[Qs("0x6d")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model.document[Qs("0x4a")]((()=>{let e=!1;const r=Array[Qs("0x67")](t[Qs("0x40")][Qs("0x9")][Qs("0x45")].getChangedMarkers());for(const{name:t,data:s}of r){const{group:r,type:i,subType:x,id:a}=n[Qs("0x51")](t);if(Qs("0xf")==r&&n.hasSuggestion(a)){if(Qs("0x61")==i&&(Qs("0xb")==x||Qs("0x32")==x)){const t=n[Qs("0x36")](a);if(s[Qs("0x57")]){const r=t[Qs("0x26")]()[Qs("0x2d")]();if(o[Qs("0x6d")](r))continue;n.discardSuggestion(t),e=!0}}if(Qs("0x65")==i&&"imageCaption"==x&&!s[Qs("0x57")]){const t=n[Qs("0x36")](a);t[Qs("0x37")]&&t.next.isInContent&&(n.discardSuggestion(t[Qs("0x37")]),e=!0)}}}return e})),t[Qs("0x5b")][Qs("0x19")](Qs("0x43"))&&n.enableCommand(Qs("0x79"),((e,r)=>{const s=o[Qs("0x20")](t[Qs("0x40")][Qs("0x9")][Qs("0x64")]);s[Qs("0x49")]("width")!=r[Qs("0x11")]&&t.model.change((()=>{n[Qs("0x4d")](s,{commandName:Qs("0x79"),commandParams:[r]})}))})),t[Qs("0x5b")][Qs("0x19")]("ImageTextAlternativeEditing")&&n[Qs("0x3d")]("imageTextAlternative",((e,r)=>{const s=o[Qs("0x20")](t[Qs("0x40")].document[Qs("0x64")]);(s[Qs("0x34")](Qs("0x69"))?s[Qs("0x49")](Qs("0x69")):"")!=r[Qs("0x55")]&&t[Qs("0x40")][Qs("0x5a")]((()=>{n[Qs("0x4d")](s,{commandName:"imageTextAlternative",commandParams:[r]})}))})),n._descriptionFactory[Qs("0x1d")]((t=>{if(x[Qs("0x63")]((({type:e,subType:n})=>t[Qs("0x30")]==e&&t[Qs("0x10")]==n)))return t[Qs("0x54")]?{}:void 0})),n._descriptionFactory.registerDescriptionCallback((t=>{if(Qs("0x65")==t.type||Qs("0x2")==t[Qs("0x30")]){const e=t[Qs("0x2d")]();if(e&&e.is(Qs("0x7b"),"caption"))return{type:Qs("0x65")==t.type?"addObject":Qs("0x42"),element:e,quantity:1}}})),n[Qs("0x50")].registerDescriptionCallback((t=>Qs("0x61")==t[Qs("0x30")]&&"convertInlineImageToBlock"==t[Qs("0x10")]?{type:Qs("0x76"),content:Qs("0x35")}:Qs("0x61")==t.type&&Qs("0xa")==t[Qs("0x10")]?{type:Qs("0x76"),content:Qs("0x59")}:void 0)),n[Qs("0x50")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Qs("0x4")==e[Qs("0x8")]){const t=e[Qs("0x38")][0].value;return n=Qs("0x2a")===t?Yo(s,Qs("0x14")):r[t]||t,{type:"format",content:Yo(s,Qs("0x16"),n)}}if(Qs("0x4b")==e.commandName){const t=e.commandParams[0][Qs("0x55")];return t?{type:Qs("0x76"),content:Yo(s,Qs("0x17"),'"'+t+'"')}:{type:"format",content:Yo(s,Qs("0xe"))}}if("resizeImage"==e[Qs("0x8")]){const t=e[Qs("0x38")][0][Qs("0x11")];return t?{type:"format",content:Yo(s,Qs("0x1a"),t)}:{type:Qs("0x76"),content:Yo(s,Qs("0x77"))}}}var n}))}}const Zs=["getSuggestions","accept","editor","model","formatBlock","_suggestionFactory","Users","commandName","handleSuggestionDescription","getSuggestionCallback","change","TrackChangesEditing","registerCustomCallback","locale","source","document","plugins","getAttribute","get","src","replaceImageSource","selection","getSelectedElement","discard","markBlockFormat","handleReplaceImageCommand","_descriptionFactory","*Format:* replace image URL","data"];var Ys,ti;Ys=Zs,ti=279,function(t){for(;--t;)Ys.push(Ys.shift())}(++ti);const ei=function(t,e){return Zs[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0xd")].plugins.has("ImageEditing"))return;const t=this.editor.plugins.get(ei("0x16"));t.enableCommand("replaceImageSource",((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[ei("0x17")](ei("0xf"),"replaceImageSource","accept",t[ei("0x10")][ei("0x14")](ei("0xf"),null,ei("0x5"))),t[ei("0x10")].registerCustomCallback(ei("0xf"),"replaceImageSource",ei("0x5"),t[ei("0x10")][ei("0x14")](ei("0xf"),null,ei("0xc"))),t[ei("0x8")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[ei("0x7")](t,e){const n=this[ei("0xd")][ei("0x1b")][ei("0x0")]("TrackChangesEditing"),o=this[ei("0xd")][ei("0xe")][ei("0x1a")][ei("0x3")][ei("0x4")]();this[ei("0xd")][ei("0xe")][ei("0x15")]((()=>{let r=o[ei("0x1c")](ei("0x1"));const s=this.editor[ei("0x1b")][ei("0x0")](ei("0x11")).me;for(const t of n[ei("0xb")]({skipNotAttached:!0})){const e=t.getContainedElement();if(ei("0x2")===t.subType&&e===o){t.author!==s&&t[ei("0x5")](),r=t[ei("0xa")].commandParams[0][ei("0x19")];break}}t(e),n[ei("0x6")](o,{commandName:ei("0x2"),commandParams:[{source:r}]},[],"replaceImageSource")}))}[ei("0x13")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0x12")]){const t=ei("0x9");return{type:"format",content:Yo(this[ei("0xd")][ei("0x18")],t)}}}}const oi=["commands","_setSuggestionData","editor","execute","enableCommand","track_changes","high","_trackChangesExecuted","collaboration_features","dataInsert","_handleImportedData","afterInit","TrackChangesEditing","bind","get","_trackChangesValueDuringImport","trackChanges","plugins","importWord"];var ri,si;ri=oi,si=227,function(t){for(;--t;)ri.push(ri.shift())}(++si);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this._trackChangesValueDuringImport=!1,this._trackChangesExecuted=!1}[ii("0xc")](){const t=this[ii("0x3")],e=t.commands[ii("0xf")]("importWord"),n=t[ii("0x1")][ii("0xf")](ii("0x11"));e&&(e.on("execute",((t,[,e])=>{this[ii("0x10")]=n.value,e[ii("0x9")][ii("0x6")]=!this[ii("0x10")]}),{priority:ii("0x7")}),this.listenTo(e,ii("0xa"),this[ii("0xb")][ii("0xe")](this)),this.listenTo(e,"dataInsert",(()=>{this[ii("0x8")]&&(n[ii("0x4")](),this._trackChangesExecuted=!1)}),{priority:"lowest"}),t[ii("0x12")].get(ii("0xd"))[ii("0x5")](ii("0x0")))}[ii("0xb")](t,e){const{suggestions:n}=e,o=this[ii("0x3")][ii("0x1")][ii("0xf")](ii("0x11")),r=o.value;this[ii("0x10")]!==r&&(o.execute(),this._trackChangesExecuted=!0),n&&n.forEach((({id:t,type:e,author:n,created_at:o})=>{const r={id:t,type:e,authorId:this[ii("0x3")][ii("0x12")][ii("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x0")}}};this.editor.plugins[ii("0xf")]("TrackChangesEditing")[ii("0x2")](r)}))}}const ai=["has","checkAttribute","filter","blockIndent","outdentBlock","get","format","getItemLabel","selection","TrackChangesEditing","indentBlock","enableCommand","_descriptionFactory","editor","commandName","*Indent:* %0","locale","schema","afterInit","change","registerDescriptionCallback","plugins","IndentEditing","IndentBlock","indent","model","getItems","getSelectedBlocks"];var ci,li;ci=ai,li=234,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x8")](){const t=this[di("0x3")],e=t[di("0xb")][di("0x17")](di("0x1b"));t[di("0xb")].has(di("0xc"))&&(e[di("0x1")](di("0xe")),e[di("0x1")]("outdent"));const n=t[di("0x6")];if(t.plugins[di("0x12")](di("0xd"))){for(const n of[di("0x0"),di("0x16")])e[di("0x1")](n,(()=>{const o=Array.from(this[di("0x3")][di("0xf")].document[di("0x1a")][di("0x11")]())[di("0x14")]((t=>this[di("0x3")].model[di("0x7")][di("0x13")](t,di("0x15"))));t.model[di("0x9")]((()=>{for(const t of o)e.markBlockFormat(t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x0")})}))}));e[di("0x2")][di("0xa")]((t=>{const{data:o}=t;if(!o)return;if("indentBlock"!=o[di("0x4")]&&di("0x16")!=o[di("0x4")])return;const r=t[di("0x10")]()[0],s=e[di("0x2")][di("0x19")](r);return"indentBlock"==o[di("0x4")]?{type:di("0x18"),content:Yo(n,di("0x5"),s)}:"outdentBlock"==o[di("0x4")]?{type:di("0x18"),content:Yo(n,"*Outdent:* %0",s)}:void 0}))}}}var gi,mi,fi=["editor","init","TrackChangesEditing"];gi=fi,mi=435,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 requires(){return[Vr.Input]}[hi("0x1")](){this[hi("0x0")].plugins.get(hi("0x2")).enableCommand("input")}}const bi=["_descriptionFactory","format","has","enableCommand","TrackChangesEditing","linkHref","registerDescriptionCallback","isCollapsed","getRanges","markInlineFormat","model","get","hasAttribute","locale","editor","afterInit","*Set link:* %0","getAttribute","getFirstPosition","getFirstRange","plugins","unlink","commandName","link","change","from"];var Ei,_i;Ei=bi,_i=100,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class Ci extends t.Plugin{[Ti("0x13")](){const t=this[Ti("0x12")];if(!t[Ti("0x18")][Ti("0x6")]("LinkEditing"))return;const e=t[Ti("0x18")][Ti("0xf")](Ti("0x8"));e[Ti("0x7")](Ti("0x1"),((n,o)=>{const r=t[Ti("0xe")].document.selection;let s=[];if(r.isCollapsed){if(!r[Ti("0x10")](Ti("0x9")))return void n(o);{const e=(0,Vr.findAttributeRange)(r[Ti("0x16")](),Ti("0x9"),r[Ti("0x15")](Ti("0x9")),t.model);s=[e]}}else s=Array[Ti("0x3")](r[Ti("0xc")]());t[Ti("0xe")][Ti("0x2")]((()=>{for(const t of s)e.markInlineFormat(t,{commandName:Ti("0x1"),commandParams:[o]})}))})),e[Ti("0x7")](Ti("0x19"),(()=>{const n=this[Ti("0x12")][Ti("0xe")],o=n.document.selection;n[Ti("0x2")]((()=>{let n=[];n=o[Ti("0xb")]?[(0,Vr.findAttributeRange)(o[Ti("0x16")](),Ti("0x9"),o[Ti("0x15")](Ti("0x9")),t[Ti("0xe")])]:mr(Ti("0x9"),o[Ti("0x17")](),t[Ti("0xe")]);for(const t of n)e[Ti("0xd")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x4")][Ti("0xa")]((e=>{const{data:n}=e,o=t[Ti("0x11")];if(n){if("link"==n[Ti("0x0")]){const t=n.commandParams[0];return{type:Ti("0x5"),content:Yo(o,Ti("0x14"),'"'+t+'"')}}return Ti("0x19")==n[Ti("0x0")]?{type:Ti("0x5"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["previousSibling","markBlockFormat","afterInit","*Indent:* %0","commandName","*Outdent:* %0","push","checkTodoList","registerElementLabel","add","createRange","element","ELEMENT_LIST_ITEM","todoList","forceValue","plugins","_selectedElements","before","length","ListEditing","ELEMENT_NUMBERED_LIST","commandParams","has","TrackChangesEditing","locale","format","TodoListEditing","outdentList","bulletedList","bulleted","ELEMENT_BULLETED_LIST","document","checkChild","change","get","numbered","slice","indentList","end","_descriptionFactory","isObject","schema","model","List","filter","listIndent","name","execute","getAttribute","commands","nextSibling","*Uncheck item*","value","createPositionAt","registerDescriptionCallback","findIndex","parent","getSelectedBlocks","ELEMENT_TODO_LIST","from","listItem","todoListChecked","*Change to:* %0","enableCommand","listType","numberedList"];var ki,Ai;ki=yi,Ai=189,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xb")](){const t=this.editor,e=t[vi("0x21")];if(!t[vi("0x18")].has(vi("0x1c")))return;const n=t[vi("0x18")][vi("0x2b")](vi("0x20")),o=t.plugins[vi("0x1f")](vi("0x23"));function r(e){return()=>{const o=t[vi("0x33")].document.selection,r=t[vi("0x3a")][vi("0x2b")](e);if(r.value)return void t[vi("0x38")]("paragraph",{});const s=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x2")](t)[vi("0x35")]((t=>{return e=t,(o=n)[vi("0x29")](e[vi("0x41")],"listItem")&&!o[vi("0x31")](e);var e,o}));o=o.filter((t=>!t.is(vi("0x14"),vi("0x3"))||t.getAttribute(vi("0x7"))!=e));const r=new Set;for(const t of o)t.is(vi("0x14"),vi("0x3"))?r[vi("0x12")](Si(t)):r[vi("0x12")](t);return Array[vi("0x2")](r)}(o[vi("0x0")](),s,t[vi("0x33")][vi("0x32")]);t[vi("0x33")][vi("0x2a")]((()=>{for(const t of i)n[vi("0xa")](t,{commandName:e,commandParams:[{forceValue:!r.value}],formatGroupId:"blockName"},Ii(t))}))}}function s(e){return()=>{const o=function(t){let e=Array.from(t);const n=e[vi("0x40")]((t=>vi("0x3")!=t[vi("0x37")]));return n>-1&&(e=e[vi("0x2d")](0,n)),e}(t.model[vi("0x28")].selection[vi("0x0")]()),r=t[vi("0x33")][vi("0x13")](t[vi("0x33")][vi("0x3e")](o[0],vi("0x1a")),t.model.createPositionAt(o[o[vi("0x1b")]-1],vi("0x2f")));t[vi("0x33")][vi("0x2a")]((()=>{n[vi("0xa")](r,{commandName:e,commandParams:[],formatGroupId:vi("0x36")},function(t){const e=new Set;for(const n of t){let t=n[vi("0x3b")];for(;t&&t[vi("0x39")]("listIndent")>n[vi("0x39")](vi("0x36"));)e[vi("0x12")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}n[vi("0x6")](vi("0x8"),r("numberedList")),n[vi("0x6")]("bulletedList",r(vi("0x25"))),o&&n[vi("0x6")](vi("0x16"),r(vi("0x16"))),n[vi("0x6")](vi("0x2e"),s(vi("0x2e"))),n[vi("0x6")](vi("0x24"),s(vi("0x24"))),o&&n.enableCommand(vi("0x10"),(()=>{const e=t[vi("0x3a")][vi("0x2b")](vi("0x10")),o=Array[vi("0x2")](e[vi("0x19")]);o[vi("0x35")]((t=>t.getAttribute(vi("0x4"))!=e[vi("0x3d")])),t[vi("0x33")][vi("0x2a")]((()=>{for(const t of o)n[vi("0xa")](t,{commandName:vi("0x10"),commandParams:[{forceValue:!e[vi("0x3d")]}]})}))})),n[vi("0x30")][vi("0x11")](vi("0x3"),(t=>Yo(e,vi("0x15"),t))),n[vi("0x30")][vi("0x3f")]((t=>{const{data:n}=t;if(n){if(vi("0x8")==n[vi("0xd")]||vi("0x25")==n[vi("0xd")]||vi("0x16")==n.commandName)switch(n[vi("0xd")].replace(vi("0x34"),"")){case vi("0x26"):return o(Yo(e,vi("0x27")));case vi("0x2c"):return o(Yo(e,vi("0x1d")));case"todo":return o(Yo(e,vi("0x1")))}if(vi("0x2e")==n[vi("0xd")])return{type:vi("0x22"),content:Yo(e,vi("0xc"),Yo(e,vi("0x15")))};if("outdentList"==n.commandName)return{type:vi("0x22"),content:Yo(e,vi("0xe"),Yo(e,vi("0x15")))};if(vi("0x10")==n[vi("0xd")])return n[vi("0x1e")][0][vi("0x17")]?{type:vi("0x22"),content:Yo(e,"*Check item*")}:{type:vi("0x22"),content:Yo(e,vi("0x3c"))}}function o(t){return{type:vi("0x22"),content:Yo(e,vi("0x5"),t)}}}))}}function Si(t){const e=t[vi("0x39")](vi("0x36"));if(0==e)return t;let n=t;for(;t.previousSibling&&t.previousSibling.is(vi("0x14"),vi("0x3"));){const o=t[vi("0x9")][vi("0x39")](vi("0x36"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x9")]}return n}function Ii(t){const e=[];if(t.is(vi("0x14"),vi("0x3"))&&t[vi("0x39")](vi("0x36"))>0){let n=t[vi("0x3b")];for(;n&&"listItem"==n.name&&n[vi("0x39")]("listIndent")==t[vi("0x39")](vi("0x36"));)e[vi("0xf")](n),n=n[vi("0x3b")]}return e}const Li=["_getSuggestionBlocks","from","markMultiRangeBlockFormat","getAttribute","*Format:* set order to reversed","getFirstPosition","forward","filter","config","push","createPositionAt","commandParams","TrackChangesEditing","bind","get","handleListStartCommand","replace","plugins","startIndex","listStyle","afterInit","change","model","before","format","getSelectedBlocks","element","_getTranslationKeyForListStyle","*Format:* set start index to %0","document","*Change to:* %0","backward","_descriptionFactory","has","commandName","_LIST_","enableCommand","reversed","getSiblingNodes","getListTypeFromListStyleType","locale","listItem","toUpperCase","handleListReversedCommand","listType","handleListStyleCommand","selection","numbered","ListUtils","editor","handleDescriptions","registerDescriptionCallback","_getSuggestionBlocksForListStyle","createRange","flat","styles","map","listStart","listReversed","type","ListPropertiesEditing","list.properties","ELEMENT_","length"];var Ni,wi;Ni=Li,wi=287,function(t){for(;--t;)Ni.push(Ni.shift())}(++wi);const Mi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[Mi("0x35")](){if(!this[Mi("0x12")].plugins[Mi("0x2")](Mi("0x1d")))return;const t=this[Mi("0x12")][Mi("0x29")][Mi("0x2f")](Mi("0x1e")),e=this.editor[Mi("0x32")][Mi("0x2f")](Mi("0x2d"));t[Mi("0x18")]&&e[Mi("0x5")](Mi("0x34"),this[Mi("0xe")].bind(this)),t[Mi("0x6")]&&e.enableCommand(Mi("0x1b"),this.handleListReversedCommand[Mi("0x2e")](this)),t.startIndex&&e[Mi("0x5")](Mi("0x1a"),this.handleListStartCommand.bind(this)),e[Mi("0x1")][Mi("0x14")](this.handleDescriptions[Mi("0x2e")](this))}[Mi("0xe")](t,e={}){const n=this[Mi("0x12")][Mi("0x32")].get(Mi("0x2d")),o=this[Mi("0x15")]();this.editor[Mi("0x37")].change((()=>{n[Mi("0x23")](o,{commandName:"listStyle",commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[Mi("0xc")](t,e={}){const n=this[Mi("0x12")].plugins[Mi("0x2f")](Mi("0x2d")),o=this._getSuggestionBlocks((t=>t.is(Mi("0x3b"),"listItem")&&"numbered"===t[Mi("0x24")](Mi("0xd"))));if(o[Mi("0x20")]<1)return;const r=o[Mi("0x19")]((t=>this.editor[Mi("0x37")].createRange(this[Mi("0x12")].model[Mi("0x2b")](t,Mi("0x38")),this[Mi("0x12")][Mi("0x37")][Mi("0x2b")](t,0))));this[Mi("0x12")][Mi("0x37")][Mi("0x36")]((()=>{n[Mi("0x23")](r,{commandName:Mi("0x1b"),commandParams:[{reversed:e[Mi("0x6")]}],formatGroupId:Mi("0x1b")})}))}[Mi("0x30")](t,e={}){const n=this[Mi("0x12")][Mi("0x32")][Mi("0x2f")](Mi("0x2d")),o=this[Mi("0x21")]((t=>t.is(Mi("0x3b"),Mi("0xa"))&&Mi("0x10")===t[Mi("0x24")](Mi("0xd"))));if(o[Mi("0x20")]<1)return;const r=o[Mi("0x19")]((t=>this[Mi("0x12")][Mi("0x37")][Mi("0x16")](this[Mi("0x12")][Mi("0x37")][Mi("0x2b")](t,Mi("0x38")),this[Mi("0x12")][Mi("0x37")][Mi("0x2b")](t,0))));this[Mi("0x12")][Mi("0x37")][Mi("0x36")]((()=>{n[Mi("0x23")](r,{commandName:Mi("0x1a"),commandParams:[{startIndex:e[Mi("0x33")]}],formatGroupId:Mi("0x1a")})}))}[Mi("0x13")](t){const e=this[Mi("0x12")][Mi("0x9")],{data:n}=t;if(!n)return;let o,r;switch(n[Mi("0x3")]){case Mi("0x34"):o=Mi("0x3f"),r={type:Mi("0x39"),content:Yo(e,o,Yo(e,this[Mi("0x3c")](n[Mi("0x2c")][0][Mi("0x1c")])))};break;case Mi("0x1b"):o=n[Mi("0x2c")][0][Mi("0x6")]?Mi("0x25"):"*Format:* set order to regular",r={type:Mi("0x39"),content:Yo(e,o)};break;case"listStart":o=Mi("0x3d"),r={type:Mi("0x39"),content:Yo(e,o,n[Mi("0x2c")][0][Mi("0x33")])}}return r}[Mi("0x15")](){var t,e,n,o;const r=this[Mi("0x12")][Mi("0x32")][Mi("0x2f")](Mi("0x11"));let s=Array[Mi("0x22")](this.editor.model[Mi("0x3e")][Mi("0xf")][Mi("0x3a")]());return(null===(t=s[0])||void 0===t?void 0:t.is("element","listItem"))&&s.unshift(...r[Mi("0x7")](this[Mi("0x12")][Mi("0x37")].document.selection[Mi("0x26")](),Mi("0x0"))),(null===(e=s[s[Mi("0x20")]-1])||void 0===e?void 0:e.is(Mi("0x3b"),Mi("0xa")))&&s[Mi("0x2a")](...r[Mi("0x7")](this[Mi("0x12")].model[Mi("0x3e")][Mi("0xf")].getLastPosition(),"forward")),s=[...new Set(s)],(null===(o=null===(n=this[Mi("0x12")][Mi("0x37")][Mi("0x3e")].selection[Mi("0x26")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is("element",Mi("0xa")))&&(s=s.filter((t=>t.is(Mi("0x3b"),"listItem")))),s}[Mi("0x21")](t){const e=this[Mi("0x12")].plugins[Mi("0x2f")]("ListUtils");let n=Array[Mi("0x22")](this[Mi("0x12")][Mi("0x37")][Mi("0x3e")].selection[Mi("0x3a")]())[Mi("0x28")](t)[Mi("0x19")]((t=>{const n=this[Mi("0x12")][Mi("0x37")][Mi("0x2b")](t,0);return[...e[Mi("0x7")](n,"backward"),...e.getSiblingNodes(n,Mi("0x27"))]}))[Mi("0x17")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return Mi("0x1f")+this[Mi("0x12")][Mi("0x32")].get(Mi("0x11"))[Mi("0x8")](t)[Mi("0xb")]()+Mi("0x4")+t[Mi("0xb")]()[Mi("0x31")](/-/g,"_")}}const Fi=["_descriptionFactory","mediaEmbed","TrackChangesEditing","div","ELEMENT_MEDIA","attribute:url:media","has","showSuggestionHighlights","get","MediaEmbedEditing","conversion","downcastDispatcher","media","data","registerElementLabel","plugins"];var Pi,Di;Pi=Fi,Di=386,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Bi("0x4")](Bi("0x7")))return;const e=t[Bi("0xd")][Bi("0x6")](Bi("0x0")),n=t.locale;e.enableCommand(Bi("0xf")),e[Bi("0xe")][Bi("0xc")](Bi("0xa"),(t=>Yo(n,Bi("0x2"),t))),t[Bi("0x8")].for("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n.showSuggestionHighlights)return e.createEmptyElement(Bi("0x1"))},converterPriority:"high"}),t[Bi("0xb")][Bi("0x9")].on(Bi("0x3"),((t,e,n)=>{n.options[Bi("0x5")]&&t.stop()}),{priority:"high"})}}const Ui=["MentionEditing","afterInit","mention","plugins","get","enableCommand"];var Gi,Hi;Gi=Ui,Hi=279,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this.editor;t[zi("0x0")].has(zi("0x3"))&&t[zi("0x0")][zi("0x1")]("TrackChangesEditing")[zi("0x2")](zi("0x5"))}}const Vi=["editor","TrackChangesEditing","enableCommand","afterInit","PageBreakEditing","plugins","registerElementLabel","_descriptionFactory","get"];var Ki,qi;Ki=Vi,qi=426,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x0")](){const t=this[Xi("0x6")];if(!t.plugins.has(Xi("0x1")))return;t.plugins.get(Xi("0x7"))[Xi("0x8")]("pageBreak");const e=t[Xi("0x2")][Xi("0x5")]("TrackChangesEditing"),n=t.locale;e[Xi("0x4")][Xi("0x3")]("pageBreak",(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Qi=["insertion","model","data","has","highest","paragraph","selection","isTouching","ELEMENT_PARAGRAPH","start","markerRange","editor","markerName","mapper","Paragraph","type","registerElementLabel","$text","checkChild","isLimit","nodeAfter","filter","isBlock","addMarker:suggestion:insertion","end","writer","format","showSuggestionHighlights","toViewPosition","ck-suggestion-marker--active","insert","from","includes","activeMarkers","_descriptionFactory","document","ck-suggestion-marker-split","getItemLabel","insertParagraph","editing","addClass","enableCommand","*Change to:* %0","consumable","span","TrackChangesEditing","registerDescriptionCallback","change","plugins","markBlockFormat","parent","get","*Insert:* %0","name","schema"];var Ji,Zi;Ji=Qi,Zi=416,function(t){for(;--t;)Ji.push(Ji.shift())}(++Zi);const Yi=function(t,e){return Qi[t-=0]};class tx extends t.Plugin{afterInit(){const t=this.editor;if(!t[Yi("0x11")][Yi("0x1b")](Yi("0x26")))return;const e=t.locale,n=t[Yi("0x11")][Yi("0x14")](Yi("0xe"));n[Yi("0x3")][Yi("0x28")](Yi("0x1d"),(t=>Yo(e,Yi("0x20"),t))),n.enableCommand(Yi("0x1d"),((e,o={})=>{const r=t[Yi("0x19")][Yi("0x4")],s=o[Yi("0x1e")]||r[Yi("0x1e")],i=Array[Yi("0x0")](s.getSelectedBlocks())[Yi("0x2d")]((t=>{return e=t,(n=this[Yi("0x23")][Yi("0x19")].schema)[Yi("0x2a")](e[Yi("0x13")],Yi("0x1d"))&&!n.isObject(e)&&Yi("0x1d")!=e[Yi("0x16")];var e,n}));t[Yi("0x19")][Yi("0x10")]((()=>{for(const t of i)n[Yi("0x12")](t,{commandName:Yi("0x1d"),commandParams:[],formatGroupId:"blockName"},fr(t))}))})),n._descriptionFactory[Yi("0xf")]((t=>{const{data:n}=t;if(n&&Yi("0x1d")==n.commandName)return{type:Yi("0x32"),content:Yo(e,Yi("0xb"),Yo(e,Yi("0x20")))}})),n[Yi("0xa")](Yi("0x7")),t[Yi("0x8")].downcastDispatcher.on(Yi("0x2f"),ex(t),{priority:Yi("0x1c")}),t[Yi("0x1a")].downcastDispatcher.on(Yi("0x2f"),((e,n,o)=>{o.options[Yi("0x33")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x1c")});const o=n._descriptionFactory;o.registerDescriptionCallback((n=>{if(Yi("0x18")!==n[Yi("0x27")])return;const{start:r,end:s}=n.getFirstRange();if(!r[Yi("0x1f")](s)||!r[Yi("0x2c")])return;const i=t[Yi("0x19")].schema,x=r.nodeAfter;return i[Yi("0x2e")](x)&&!i[Yi("0x2b")](x)&&i[Yi("0x2a")](x,"$text")?{type:"insertion",content:Yo(e,Yi("0x15"),o[Yi("0x6")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[Yi("0x11")][Yi("0x14")](Yi("0xe")),i=o[Yi("0x22")][Yi("0x21")],x=o.markerRange[Yi("0x30")],a=t[Yi("0x19")][Yi("0x17")];if(!i[Yi("0x1f")](x)||!i[Yi("0x2c")])return;const c=i[Yi("0x2c")];if(a[Yi("0x2e")](c)&&!a[Yi("0x2b")](c)&&a[Yi("0x2a")](c,Yi("0x29"))){if(!r[Yi("0xc")].consume(o[Yi("0x22")],n[Yi("0x16")]))return;const t=r[Yi("0x31")].createUIElement(Yi("0xd"),{class:Yi("0x5")}),i=r.mapper[Yi("0x34")](x);e&&s[Yi("0x2")][Yi("0x1")](o.markerName)&&r[Yi("0x31")][Yi("0x9")](Yi("0x35"),t),r[Yi("0x31")][Yi("0x36")](i,t),r[Yi("0x25")].bindElementToMarker(t,o[Yi("0x24")])}}}const nx=["commandName","markInlineFormat","*Remove all formatting*","format","editor","model","RemoveFormatEditing","getAttributeProperties","createRangeOn","enableCommand","getRanges","schema","change","get","plugins","document","getItems","isCollapsed","locale","registerDescriptionCallback","selection","has","removeFormat","TrackChangesEditing"];var ox,rx;ox=nx,rx=431,function(t){for(;--t;)ox.push(ox.shift())}(++rx);const sx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{afterInit(){const t=this[sx("0x5")];if(!t[sx("0xf")][sx("0x16")](sx("0x7")))return;const e=t[sx("0xf")][sx("0xe")](sx("0x0"));e[sx("0xa")](sx("0x17"),(n=>{const o=t[sx("0x6")][sx("0x10")][sx("0x15")];o[sx("0x12")]?n():t.model[sx("0xd")]((()=>{const n=Array.from(o[sx("0xb")]());for(const o of n)for(const n of o[sx("0x11")]())xx(n,t[sx("0x6")][sx("0xc")])&&e[sx("0x2")](t[sx("0x6")][sx("0x9")](n),{commandName:sx("0x17"),commandParams:[]})}))})),e._descriptionFactory[sx("0x14")]((e=>{const{data:n}=e;if(n&&sx("0x17")==n[sx("0x1")])return{type:sx("0x4"),content:Yo(t[sx("0x13")],sx("0x3"))}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[sx("0x8")](n);if(t&&t.isFormatting)return!0}return!1}const ax=["goToPreviousRestrictedEditingException","discardAllSuggestions","goToNextRestrictedEditingException","afterInit","TrackChangesEditing","plugins","enableCommand","acceptSelectedSuggestions","has","acceptAllSuggestions","discardSelectedSuggestions","RestrictedEditingModeEditing","discardSuggestion","acceptSuggestion"];var cx,lx;cx=ax,lx=468,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0xb")](){const t=this.editor;if(!t.plugins[dx("0x2")](dx("0x5")))return;const e=t[dx("0xd")].get(dx("0xc"));e[dx("0x0")](dx("0x8")),e[dx("0x0")](dx("0xa"));const n=t.plugins.get(dx("0x5"));n[dx("0x0")]("trackChanges"),n[dx("0x0")](dx("0x7")),n[dx("0x0")](dx("0x6")),n[dx("0x0")](dx("0x3")),n[dx("0x0")](dx("0x9")),n[dx("0x0")](dx("0x1")),n[dx("0x0")](dx("0x4"))}}const gx=["TrackChangesEditing","showSuggestionHighlights","createPositionBefore","enableCommand","_descriptionFactory","addMarker:suggestion:deletion","plugins","split","span","toViewPosition","createUIElement","addClass","registerElementLabel","data","activeMarkers","addMarker:suggestion","includes","shiftEnter","name","options","writer","getItems","element","test","markerName","addMarker:suggestion:insertion","mapper","init","insert","high","downcastDispatcher","requires","deletion","bindElementToMarker","ck-suggestion-marker--active","ELEMENT_LINE_BREAK","softBreak","markerRange","model","get"];var mx,fx;mx=gx,fx=355,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("0x24")](){return[ns.ShiftEnter]}[hx("0x20")](){const t=this.editor,e=t[hx("0xb")][hx("0x4")]("TrackChangesEditing");e[hx("0x8")](hx("0x16")),t.editing[hx("0x23")].on(hx("0x1e"),bx(t),{priority:hx("0x22")}),t.editing[hx("0x23")].on(hx("0xa"),bx(t),{priority:hx("0x22")}),t[hx("0x12")][hx("0x23")].on(hx("0x14"),((e,n,o)=>{o[hx("0x18")][hx("0x6")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x9")][hx("0x11")](hx("0x1"),(e=>Yo(t.locale,hx("0x0"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,r)=>{const s=t[hx("0xb")][hx("0x4")](hx("0x5"));if(!r.consumable[hx("0x1c")](o[hx("0x2")],n[hx("0x17")]))return;const i=t[hx("0x3")];for(const t of o[hx("0x2")][hx("0x1a")]()){if(!t.is(hx("0x1b"),hx("0x1")))continue;const n=hx("0x25")==o.markerName[hx("0xc")](":")[1]?"merge":hx("0xc"),x=r.writer[hx("0xf")](hx("0xd"),{class:"ck-suggestion-marker-"+n}),a=r[hx("0x1f")][hx("0xe")](i[hx("0x7")](t));e&&s[hx("0x13")][hx("0x15")](o[hx("0x1d")])&&r[hx("0x19")][hx("0x10")](hx("0x27"),x),r.writer[hx("0x21")](a,x),r[hx("0x1f")][hx("0x26")](x,o[hx("0x1d")])}}}const Ex=["get","getRanges","StandardEditingModeEditing","plugins","change","model","value","editor","_descriptionFactory","markInlineFormat","TrackChangesEditing","has","isCollapsed","forceValue","document","FORMAT_RESTRICTED_DISABLED","commandParams","from","commandName","afterInit","locale","enableCommand","format","registerDescriptionCallback","selection","restrictedEditingException"];var _x,Tx;_x=Ex,Tx=156,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{[Cx("0x13")](){const t=this[Cx("0x7")],e=t[Cx("0x5")],n=t[Cx("0x14")];if(!t[Cx("0x3")][Cx("0xb")](Cx("0x2")))return;const o=t[Cx("0x3")][Cx("0x0")](Cx("0xa")),r=Cx("0x19"),s=t.commands[Cx("0x0")](r);o[Cx("0x15")](r,((t,n={})=>{const i=e[Cx("0xe")][Cx("0x18")];if(i[Cx("0xc")])return void t(n);const x=void 0!==n[Cx("0xd")]?n[Cx("0xd")]:!s[Cx("0x6")];e[Cx("0x4")]((()=>{const t=Array[Cx("0x11")](i[Cx("0x1")]());for(const n of t){const t=x?[n]:mr(r,n,e);for(const e of t)o[Cx("0x9")](e,{commandName:r,commandParams:[{forceValue:x}]})}}))})),o[Cx("0x8")][Cx("0x17")]((t=>{const{data:e}=t;if(e&&e[Cx("0x12")]==r)return e[Cx("0x10")][0].forceValue?{type:Cx("0x16"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Cx("0x16"),content:Yo(n,Cx("0xf"))}}))}}const kx=["_getRangesWithClasses","classes","toLowerCase","add","find","name","every","has","modelElements","commands","editor","style","value","format","markBlockFormat","block","push","isCollapsed","_descriptionFactory","Style","commandParams","plugins","includes","getRanges","_getStyleDefinition","*Format:* %0","style:","getSelectedBlocks","createRangeOn","model","selection","inline","*Remove format:* %0","getItems","from","document","style.definitions","styleName","get","locale","DataSchema","enableCommand"];var Ax,vx;Ax=kx,vx=188,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{afterInit(){const t=this[Rx("0x20")];if(!t[Rx("0x1")][Rx("0x1d")](Rx("0x29")))return;const e=t[Rx("0x1f")][Rx("0x12")](Rx("0x21")),n=t[Rx("0x1")][Rx("0x12")]("TrackChangesEditing"),o=t[Rx("0x13")],r=t[Rx("0x1")][Rx("0x12")](Rx("0x14")),s=t[Rx("0x1")][Rx("0x12")]("StyleUtils").normalizeConfig(r,t.config[Rx("0x12")](Rx("0x10")));n[Rx("0x15")]("style",((o,{styleName:i})=>{const x=t.model[Rx("0xf")][Rx("0xa")],a=this[Rx("0x4")](i,s);if(!a)return;if(!e.enabledStyles[Rx("0x2")](i))return;if(x[Rx("0x27")]&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0x22")].includes(a.name);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("0x2")](o[Rx("0x1b")])){n[Rx("0x19")](o);break}}return n}(x[Rx("0x7")](),a[Rx("0x1e")]);t[Rx("0x9")].change((()=>{for(const t of e)n[Rx("0x24")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x6")+i})}))}else{let e=Array[Rx("0xe")](x[Rx("0x3")]());if(!c){const n=Array.from(r.getDefinitionsForView(a.element,!1))[0][Rx("0x9")],o=[];for(const r of e){const e=this[Rx("0x16")](t[Rx("0x9")],r,a[Rx("0x17")],n);o[Rx("0x26")](...e)}e=o}t[Rx("0x9")].change((()=>{for(const t of e)n.markInlineFormat(t,{commandName:Rx("0x21"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x28")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&Rx("0x21")===e.commandName)return e[Rx("0x0")][0].forceValue?{type:"format",content:Yo(o,Rx("0x5"),e.commandParams[0][Rx("0x11")][Rx("0x18")]())}:{type:Rx("0x23"),content:Yo(o,Rx("0xc"),e[Rx("0x0")][0][Rx("0x11")].toLowerCase())}}))}[Rx("0x4")](t,e){let n=e[Rx("0x25")][Rx("0x1a")]((e=>e[Rx("0x1b")]===t));return n||(n=e[Rx("0xb")][Rx("0x1a")]((e=>e[Rx("0x1b")]===t))),n}[Rx("0x16")](t,e,n,o){const r=[];for(const s of e[Rx("0xd")]()){const e=s.getAttribute(o);e&&n[Rx("0x1c")]((t=>e[Rx("0x17")][Rx("0x2")](t)))&&r[Rx("0x26")](t[Rx("0x8")](s))}return r}}const Ix=["_tablePostFixingSubtypes","registerCustomCallback","join","MAX_SAFE_INTEGER","getContainedElement","getSuggestion","add","ELEMENT_TABLE_ROW","_suggestionFactory","accept","createPositionAt","above","batch","position","TableEditing","detach","tableColumn","isTouching","addClass","maxColumn","insert","getChangedMarkers","element","registerPostFixer","insertTableRowAbove","findAncestor","hasAttribute","getRanges","ELEMENT_TABLE_WITH_TEXT","filter","toViewElement","ELEMENT_TABLE_COLUMN_WITH_TEXT","suggestion","root","registerElementLabel","selectTableColumn","enqueueChange","nodeBefore","selection","_descriptionFactory","change","includes","classes","getRowIndexes","tableRow","createRangeIn","deletion","has","getChanges","*Remove:* %0","min","plugins","execute","subType","tablePaste","document","downcastDispatcher","differ","getSelectionAffectedTableCells","createRangeOn","locale","rootName","editor","some","_splitMarkerName","$graveyard","isInContent","order","commands","length","enableCommand","insertTableColumnLeft","substr","ELEMENT_TABLE_COLUMN","item","span","name","end","ELEMENT_TABLE","isEqual","toLowerCase","model","data","map","addMarker:suggestion","getChildren","addRange","TrackChangesEditing","first","getColumnIndexes","registerDescriptionCallback","removeTableRow","getAttribute","markMultiRangeInsertion","tableCell","getItems","setSelection","afterInit","createTableWalker","colspan","cell","_tableSuggestions","TableUtils","writer","insertTable","max","left","maxRow","isArray","ELEMENT_TABLE_ROW_WITH_TEXT","rowspan","fromRange","refresh","insertion","change:data","showSuggestionHighlights","table","push","insertTableColumnRight","removeClass","highest","low","getCellLocation","type","_acceptFormatSuggestionCallbackFactory","last","get","$textProxy","from","_getSuggestionCoords","markMultiRangeDeletion","nodeAfter","discard","start","_getCoordsForCells","*Insert:* %0"];var Lx,Nx;Lx=Ix,Nx=478,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Ix[t-=0]};class Mx extends t.Plugin{constructor(t){super(t),this[wx("0x42")]=[wx("0x6e"),wx("0x52")],this[wx("0x1f")]=new Set}[wx("0x1b")](){const t=this.editor,e=t[wx("0xb")][wx("0x79")][wx("0x68")];if(!t[wx("0x75")][wx("0x71")](wx("0x50")))return;const n=t[wx("0x7e")],o=t[wx("0x75")][wx("0x38")](wx("0x11")),r=t.plugins.get("TableUtils");o[wx("0x69")][wx("0x64")]("table",(t=>Yo(n,wx("0x8"),t))),this._setupColumnsRowsFixing(),o.enableCommand(wx("0x22")),o[wx("0x0")]("selectTableRow"),o[wx("0x0")](wx("0x65"));for(const n of[wx("0x5a"),"insertTableRowBelow"]){const s=t[wx("0x86")][wx("0x38")](n);o[wx("0x0")](n,(n=>{t.model[wx("0x6a")]((t=>{n();const i=wx("0x4d")===s[wx("0x85")],x=r.getSelectionAffectedTableCells(e),a=r[wx("0x6d")](x),c=i?a[wx("0x12")]-1:a[wx("0x37")]+1,l=x[0][wx("0x5b")](wx("0x2e")),d=r.createTableWalker(l,{startRow:c,endRow:c}),u=Array[wx("0x3a")](d).map((e=>t[wx("0x7d")](e[wx("0x1e")])));o[wx("0x17")](u,wx("0x6e"))}))}))}for(const n of[wx("0x1"),wx("0x30")]){const s=t.commands[wx("0x38")](n);o.enableCommand(n,(n=>{t.model[wx("0x6a")]((t=>{n();const i=wx("0x24")===s.order,x=r[wx("0x7c")](e),a=r[wx("0x13")](x),c=i?a[wx("0x12")]-1:a[wx("0x37")]+1,l=x[0].findAncestor(wx("0x2e")),d=r[wx("0x1c")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[wx("0x3a")](d)[wx("0xd")]((e=>t[wx("0x7d")](e[wx("0x1e")])));o[wx("0x17")](u,wx("0x52"))}))}))}for(const n of["removeTableRow","removeTableColumn"]){const s=n[wx("0x2")](11),i=s[wx("0xa")](),x=i.substr(0,3)+wx("0x5"),a=wx("0x2e")+s,c=wx("0x74")+s,l=wx("0x23")+s;o[wx("0x0")](n,(()=>{t[wx("0xb")][wx("0x6a")]((t=>{const s=r.getSelectionAffectedTableCells(e),d=s[0][wx("0x5b")](wx("0x2e"));let u;if(wx("0x15")==n){const t=r[wx("0x6d")](s);u={startRow:t.first,endRow:t[wx("0x37")],includeAllSlots:!0}}else{const t=r[wx("0x13")](s);u={startColumn:t[wx("0x12")],endColumn:t[wx("0x37")],includeAllSlots:!0}}const g=r[wx("0x1c")](d,u),m=Array.from(g)[wx("0xd")]((({cell:t})=>t)),f=Ox(m[wx("0x5f")]((t=>t[wx("0x5c")](x)))),h=Ox(m[wx("0x5f")]((t=>!t[wx("0x5c")](x))))[wx("0xd")]((e=>t.createRangeOn(e))),p=o[wx("0x3c")](h,a);if(p&&("tableRow"==p[wx("0x77")]||wx("0x52")==p.subType)){const e=this[wx("0x3b")](p);for(const n of f){const o=t[wx("0x7d")](n),s=r[wx("0x34")](n),a=n[wx("0x16")](x)-1,d=e[c],u=e[l];d<=s[i]&&s[i]+a<=u&&p.addRange(o)}}}))}))}function s(n){const o=Array[wx("0x3a")](e[wx("0x5d")]())[wx("0xd")]((t=>i.LiveRange[wx("0x29")](t)));t[wx("0xb")][wx("0x6a")]((e=>{const r=e[wx("0x4e")];n=n.filter((t=>wx("0x83")!=t[wx("0x63")][wx("0x7f")])),e.setSelection(n),t[wx("0x86")][wx("0x38")](wx("0x15")).refresh(),t[wx("0x76")](wx("0x15"),{forceDefaultExecution:!0}),t[wx("0xb")][wx("0x66")]((()=>{t[wx("0xb")][wx("0x66")](r,(t=>{const e=o.filter((t=>wx("0x83")!=t[wx("0x63")][wx("0x7f")]));e[wx("0x87")]>0&&t[wx("0x1a")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[wx("0xb")][wx("0x6a")]((o=>{const r=Array.from(e[wx("0x5d")]())[wx("0xd")]((t=>i.LiveRange[wx("0x29")](t))),s=[];for(const t of n)for(const e of t[wx("0x19")]({shallow:!0}))s[wx("0x2f")](e);for(const e of s)"$graveyard"!=e[wx("0x63")][wx("0x7f")]&&(o[wx("0x1a")](o[wx("0x4c")](e,0)),t.commands[wx("0x38")]("removeTableColumn")[wx("0x2a")](),t[wx("0x76")]("removeTableColumn",{forceDefaultExecution:!0}));const x=r.filter((t=>wx("0x83")!=t.root[wx("0x7f")]));x[wx("0x87")]>0&&o[wx("0x1a")](x);for(const t of r)t[wx("0x51")]()}))}function c(t,e){return e.every((e=>t.some((t=>t[wx("0x7")].isEqual(e[wx("0x3f")])||e[wx("0x7")][wx("0x9")](t.start)))))}function l(t,e){return t[wx("0x81")]((t=>e[wx("0x81")]((e=>t[wx("0x7")][wx("0x53")](e.start)))))}t[wx("0xc")][wx("0x7a")].on(wx("0xe"),((t,e,n)=>{if(!n.options[wx("0x2d")])return;const o=e[wx("0x4")];if(!o)return;const r=n.mapper[wx("0x60")](o);function s(t){return Array[wx("0x26")](t)?t:[t]}r&&"tableCell"===o.name&&(0,x.setHighlightHandling)(r,n[wx("0x21")],((t,e,n)=>n[wx("0x54")](s(e[wx("0x6c")]),t)),((t,e,n)=>n[wx("0x31")](s(e.classes),t)))}),{priority:wx("0x32")}),o[wx("0x69")][wx("0x14")]((t=>{if(wx("0x2b")!=t[wx("0x35")]&&"deletion"!=t.type)return;const e=t[wx("0x46")]();if(null!=e&&e.is(wx("0x58"),wx("0x2e"))){if(wx("0x2b")==t[wx("0x35")]){const e=t[wx("0x19")]().filter((t=>t.is(wx("0x39")))).map((t=>t.data));if(e[wx("0x87")])return{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,wx("0x5e"),'"'+e.join(" ")+'"'))}}if("deletion"==t[wx("0x35")]){const e=t.getItems()[wx("0x5f")]((t=>t.is(wx("0x39")))).map((t=>t[wx("0xc")]));if(e[wx("0x87")])return{type:wx("0x70"),content:Yo(n,wx("0x73"),Yo(n,wx("0x5e"),'"'+e[wx("0x44")](" ")+'"'))}}}})),o[wx("0x69")][wx("0x14")]((t=>{if(wx("0x6e")==t.subType){const e=t[wx("0x19")]()[wx("0x5f")]((t=>t.is(wx("0x39"))))[wx("0xd")]((t=>t[wx("0xc")])),o=this[wx("0x3b")](t),r=o[wx("0x25")]-o.minRow+1;if("insertion"==t.type)return e.length?{type:wx("0x2b"),content:Yo(n,wx("0x41"),Yo(n,wx("0x27"),[r,'"'+e[wx("0x44")](" ")+'"']))}:{type:"insertion",content:Yo(n,wx("0x41"),Yo(n,wx("0x49"),r))};if("deletion"==t[wx("0x35")])return e[wx("0x87")]?{type:wx("0x70"),content:Yo(n,wx("0x73"),Yo(n,wx("0x27"),[r,'"'+e[wx("0x44")](" ")+'"']))}:{type:wx("0x70"),content:Yo(n,wx("0x73"),Yo(n,wx("0x49"),r))}}if(wx("0x52")==t[wx("0x77")]){const e=t[wx("0x19")]()[wx("0x5f")]((t=>t.is(wx("0x39"))))[wx("0xd")]((t=>t.data)),o=this[wx("0x3b")](t),r=o[wx("0x55")]-o.minColumn+1;if("insertion"==t[wx("0x35")])return e[wx("0x87")]?{type:wx("0x2b"),content:Yo(n,wx("0x41"),Yo(n,wx("0x61"),[r,'"'+e[wx("0x44")](" ")+'"']))}:{type:wx("0x2b"),content:Yo(n,wx("0x41"),Yo(n,wx("0x3"),r))};if(wx("0x70")==t[wx("0x35")])return e[wx("0x87")]?{type:wx("0x70"),content:Yo(n,wx("0x73"),Yo(n,wx("0x61"),[r,'"'+e[wx("0x44")](" ")+'"']))}:{type:wx("0x70"),content:Yo(n,wx("0x73"),Yo(n,wx("0x3"),r))}}})),o._suggestionFactory[wx("0x43")](wx("0x2b"),wx("0x6e"),wx("0x3e"),s),o[wx("0x4a")].registerCustomCallback(wx("0x70"),wx("0x6e"),wx("0x4b"),s),o[wx("0x4a")][wx("0x43")](wx("0x2b"),"tableColumn",wx("0x3e"),a),o[wx("0x4a")][wx("0x43")]("deletion",wx("0x52"),"accept",a),o[wx("0x4a")][wx("0x43")](wx("0x2b"),"tableColumn",wx("0x44"),c),o._suggestionFactory[wx("0x43")](wx("0x70"),"tableColumn","join",c),o[wx("0x4a")][wx("0x43")]("insertion",wx("0x6e"),wx("0x44"),l),o[wx("0x4a")].registerCustomCallback(wx("0x70"),"tableRow","join",l)}[wx("0x36")](){const t=this.editor,e=t.model[wx("0x79")][wx("0x68")];return(n,o)=>{t[wx("0xb")][wx("0x6a")]((r=>{const{commandName:s,commandParams:x}=o;let a=n[0][wx("0x7")][wx("0x67")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][wx("0x3f")][wx("0x3d")]);const c=r[wx("0x6f")](a);if("$graveyard"==c.root[wx("0x7f")])return;const l=Array.from(e[wx("0x5d")]())[wx("0xd")]((t=>i.LiveRange.fromRange(t)));r.setSelection(c),t[wx("0x86")].get(s)[wx("0x2a")](),x[wx("0x2f")]({forceDefaultExecution:!0}),t.execute(s,...x);const d=l[wx("0x5f")]((t=>"$graveyard"!=t.root.rootName));d.length>0&&r[wx("0x1a")](d);for(const t of l)t[wx("0x51")]()}))}}[wx("0x40")](t){const e=this[wx("0x80")][wx("0x75")][wx("0x38")]("TableUtils");let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,r=Number[wx("0x45")],s=Number.MIN_SAFE_INTEGER;for(const i of t){if("$graveyard"==i[wx("0x63")].rootName)continue;const{row:t,column:x}=e.getCellLocation(i),a=i[wx("0x5c")](wx("0x28"))?i.getAttribute(wx("0x28"))-1:0,c=i[wx("0x5c")](wx("0x1d"))?i.getAttribute(wx("0x1d"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,r=x<r?x:r,s=x+c>s?x+c:s}return{minRow:n,maxRow:o,minColumn:r,maxColumn:s}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins[wx("0x38")]("TrackChangesEditing"),n=t.plugins[wx("0x38")](wx("0x20"));t[wx("0xb")][wx("0x79")].on(wx("0x2c"),(()=>{const n=Array[wx("0x3a")](t[wx("0xb")][wx("0x79")].differ[wx("0x57")]());for(const{name:t,data:o}of n){const{group:n,id:r,subType:s}=e[wx("0x82")](t);if(wx("0x62")!=n)continue;if(null!=o.oldRange)continue;const i=e[wx("0x47")](r);this[wx("0x42")][wx("0x6b")](s)&&this[wx("0x1f")][wx("0x48")](i)}}),{priority:wx("0x33")});const o=(t,e)=>{let o=!1;const r=e[wx("0x7d")](t),s=t.findAncestor(wx("0x2e")),i=n[wx("0x34")](t);for(const e of this[wx("0x1f")]){const n=e[wx("0x77")],x=n.startsWith(wx("0x78")),a=n[wx("0x2")](x?10:5),c=a[wx("0xa")](),l=c.substr(0,3)+"span",d=wx("0x74")+a,u="max"+a;if(!e[wx("0x84")])continue;if(s!=e.getFirstRange()[wx("0x3f")][wx("0x5b")](wx("0x2e")))continue;if(e.isIntersectingWithRange(r))continue;const g=t[wx("0x5c")](l)?t[wx("0x16")](l)-1:0,m=this[wx("0x3b")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[wx("0x10")](r),o=!0)}return o};t[wx("0xb")][wx("0x79")][wx("0x59")]((e=>{let n=!1;for(const r of t[wx("0xb")][wx("0x79")][wx("0x7b")][wx("0x72")]())if(wx("0x56")==r[wx("0x35")])if(wx("0x6e")==r.name)for(const t of r[wx("0x4f")][wx("0x3d")][wx("0xf")]())n=n||o(t,e);else wx("0x18")==r[wx("0x6")]&&(n=n||o(r[wx("0x4f")][wx("0x3d")],e));return n}))}[wx("0x3b")](t){return this[wx("0x40")](t[wx("0x5d")]()[wx("0xd")]((t=>t[wx("0x3f")][wx("0x3d")])))}}function Ox(t){return Array[wx("0x3a")](new Set(t).values())}const Fx=["size","fromRange","get","markBlockFormat","createTableWalker","_isForcedDefaultExecutionBlock","set:isEnabled","*Split cell:* horizontally","find","editor","table","splitTableCellHorizontally","mergeTableCellRight","_descriptionFactory","setSelection","document","add","from","createRangeOn","getSelectionAffectedTableCells","value","stop","$graveyard","markMultiRangeBlockFormat","author","forceDefaultExecution","*Merge cells*","push","highest","TableEditing","accept","model","requires","formatBlock","getSuggestions","commands","containsRange","selection","refresh","deletion","registerDescriptionCallback","plugins","return","mergeTableCells","format","getRanges","execute","tableCell","mergeTableCellLeft","getFirstPosition","element","getAncestors","getCellLocation","rootName","enableCommand","cell","TableUtils","locale","_suggestionFactory","commandName","subType","_areSelectedCellsMergable","TrackChangesEditing","registerCustomCallback","has","afterInit","map","splitTableCellVertically","findAncestor","root","mergeTableCellDown","*Split cell:* vertically","_areMergableCells","change","length","type","mergeTableCellUp"];var Px,Dx;Px=Fx,Dx=251,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[Bx("0xc")](){return[Mx]}[Bx("0x2d")](){const t=this[Bx("0x42")],e=t[Bx("0xb")][Bx("0x48")].selection,n=t[Bx("0x25")];if(!t.plugins[Bx("0x2c")](Bx("0x9")))return;const o=t.plugins[Bx("0x3b")](Bx("0x2a")),r=t[Bx("0x15")][Bx("0x3b")](Bx("0x24")),s=t[Bx("0x15")][Bx("0x3b")](Mx);s._tablePostFixingSubtypes[Bx("0x7")](Bx("0x17")),o[Bx("0x22")](Bx("0x17"),(()=>{const e=r.getSelectionAffectedTableCells(t[Bx("0xb")][Bx("0x48")].selection);t.model[Bx("0x35")]((()=>{o[Bx("0x3")](e,{commandName:Bx("0x17"),commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0xf")].get(Bx("0x17")).on(Bx("0x1a"),((e,n)=>{t[Bx("0xf")][Bx("0x3b")]("trackChanges")[Bx("0x0")]&&(n[Bx("0x36")]>0&&n[n[Bx("0x36")]-1]&&n[n[Bx("0x36")]-1][Bx("0x5")]||o[Bx("0x3e")]||this._areSelectedCellsMergable()||e[Bx("0x1")]())}),{priority:Bx("0x8")});for(const e of[Bx("0x38"),Bx("0x45"),Bx("0x32"),Bx("0x1c")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[Bx("0xb")][Bx("0x48")][Bx("0x11")][Bx("0x1d")]().getAncestors()[Bx("0x41")]((t=>t.is(Bx("0x1e"),Bx("0x1b")))),r=n[Bx("0x0")];t[Bx("0xb")][Bx("0x35")]((()=>{o[Bx("0x3")]([e,r],{commandName:"mergeTableCells",commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x2f"),"splitTableCellHorizontally"]){const n=t[Bx("0xf")][Bx("0x3b")](e);o[Bx("0x22")](e,(()=>{const s=r[Bx("0x4c")](t[Bx("0xb")][Bx("0x48")][Bx("0x11")])[0],i=s[Bx("0x30")](Bx("0x43")),{column:x,row:a}=r[Bx("0x20")](s);let c=[];if("horizontally"==n.direction){const t=r[Bx("0x3d")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t).map((t=>t[Bx("0x23")]))}else{const t=r.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Bx("0x4a")](t)[Bx("0x2e")]((t=>t[Bx("0x23")]))}t.model[Bx("0x35")]((t=>{o[Bx("0x3c")](t[Bx("0x4b")](s),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x46")][Bx("0x14")]((t=>{const{data:e}=t;if(e)return Bx("0x17")==e[Bx("0x27")]?{type:Bx("0x18"),content:Yo(n,Bx("0x6"))}:void 0})),o._descriptionFactory[Bx("0x14")]((t=>{const{data:e}=t;if(e)return Bx("0x2f")==e[Bx("0x27")]?{type:Bx("0x18"),content:Yo(n,Bx("0x33"))}:Bx("0x44")==e[Bx("0x27")]?{type:Bx("0x18"),content:Yo(n,Bx("0x40"))}:void 0}));const x=s._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0x38"),Bx("0x45"),Bx("0x32"),Bx("0x1c")])o._suggestionFactory.registerCustomCallback(Bx("0xd"),t,Bx("0xa"),x);for(const t of[Bx("0x2f"),"splitTableCellHorizontally"])o[Bx("0x26")][Bx("0x2b")](Bx("0xd"),t,Bx("0xa"),x);o[Bx("0x26")].registerCustomCallback("formatBlock","mergeTableCells",Bx("0xa"),(n=>{t[Bx("0xb")].change((o=>{const r=Array[Bx("0x4a")](e[Bx("0x19")]()).map((t=>i.LiveRange[Bx("0x3a")](t)));o[Bx("0x47")](n),t[Bx("0xf")].get("mergeTableCells")[Bx("0x12")](),t[Bx("0x1a")](Bx("0x17"),{forceDefaultExecution:!0});const s=r.filter((t=>Bx("0x2")!=t[Bx("0x31")][Bx("0x21")]));s[Bx("0x36")]>0&&o[Bx("0x47")](s);for(const t of r)t.detach()}))}));for(const e of["mergeTableCellUp",Bx("0x32"),"mergeTableCellLeft","mergeTableCellRight"]){const n=t[Bx("0xf")][Bx("0x3b")](e);n.on(Bx("0x3f"),((e,o,r)=>{if(r){const o=t[Bx("0xb")][Bx("0x48")].selection.getFirstPosition()[Bx("0x1f")]().find((t=>t.is(Bx("0x1e"),"tableCell")));this[Bx("0x34")](n[Bx("0x0")],o)||(e[Bx("0x16")]=!1,e[Bx("0x1")]())}}),{priority:"low"})}}[Bx("0x29")](){const t=this[Bx("0x42")][Bx("0xf")][Bx("0x3b")](Bx("0x17")),e=this[Bx("0x42")][Bx("0x15")][Bx("0x3b")](Bx("0x24"));if(!t.isEnabled)return!1;const n=e.getSelectionAffectedTableCells(this.editor[Bx("0xb")][Bx("0x48")][Bx("0x11")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x34")](t,e))return!1;return!0}[Bx("0x34")](t,e){const n=this[Bx("0x42")].plugins.get(Bx("0x2a")),o=this[Bx("0x42")][Bx("0xb")][Bx("0x4b")](t),r=this[Bx("0x42")][Bx("0xb")][Bx("0x4b")](e),s=new Set,i=new Set;for(const t of n[Bx("0xe")]())if(("insertion"==t[Bx("0x37")]||Bx("0x13")==t[Bx("0x37")]||"mergeTableCells"==t[Bx("0x28")])&&t.isInContent)for(const e of t[Bx("0x19")]())e[Bx("0x10")](o,!0)&&s.add(t[Bx("0x37")]+":"+t[Bx("0x4")].id),e[Bx("0x10")](r,!0)&&i[Bx("0x49")](t[Bx("0x37")]+":"+t.author.id);if(s[Bx("0x39")]!=i[Bx("0x39")])return!1;for(const t of s)if(!i[Bx("0x2c")](t))return!1;return!0}}const Ux=["setTableColumnHeader","activeMarkers","setTableRowHeader","getChild","editing","nodeAfter","createPositionAfter","cell","downcastDispatcher","document","options","stop","index","consume","highest","has","TrackChangesEditing","commandParams","model","formatBlock","forceValue","last","getCellLocation","*Format:* %0","value","bindElementToMarker","commands","createTableWalker","FORMAT_HEADER_ROW","headingColumns","locale","getSuggestion","_splitMarkerName","removeClass","writer","table","showSuggestionHighlights","createRange","TableUtils","editor","markerName","FORMAT_REGULAR_COLUMN","setAttribute","registerDescriptionCallback","parent","isBefore","unbindElementFromMarkerName","name","first","TableEditing","getAttribute","markerNameToElements","ck-suggestion-marker-","removeMarker:suggestion","markerRange","FORMAT_REGULAR_ROW","mapper","getSelectionAffectedTableCells","getColumnIndexes","selection","commandName","data","markBlockFormat","getRowIndexes","change","accept","enableCommand","removeAttribute","includes","addMarker:suggestion","plugins","consumable","data-suggestion","childCount","_suggestionFactory","format","get","createPositionBefore","registerCustomCallback","item","ck-suggestion-marker--active","start","_acceptFormatSuggestionCallbackFactory","end","requires"];var Gx,Hx;Gx=Ux,Hx=212,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("0x2a")](){return[Mx]}afterInit(){const t=this[zx("0x52")];if(!t[zx("0x1c")][zx("0x3a")](zx("0x7")))return;const e=t[zx("0x49")],n=t.plugins[zx("0x22")](zx("0x3b")),o=t[zx("0x1c")][zx("0x22")]("TableUtils"),r=t[zx("0x1c")][zx("0x22")](Mx);function s({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(r,s,i)=>{const{type:x,id:a}=n[zx("0x4b")](s[zx("0x53")]),c=n.getSuggestion(a);if(!c[zx("0x13")]||zx("0x2b")!=c.data.commandName)return;if(s[zx("0x25")])return void r[zx("0x36")]();if(!i[zx("0x1d")][zx("0x38")](s.markerRange,r[zx("0x5")]))return;const l=s[zx("0xc")][zx("0x27")][zx("0x30")],d=s[zx("0xc")][zx("0x29")].nodeBefore,u=l[zx("0x2")][zx("0x2")],{column:g}=o[zx("0x41")](l),{column:m}=o[zx("0x41")](d);for(let r=g;r<=m;r++){const c=o[zx("0x46")](u,{column:r,includeAllSlots:!1});for(const o of c){const r=o[zx("0x32")],c=i[zx("0xe")].toViewElement(r);i[zx("0x4d")].addClass(zx("0xa")+x,c),e&&i.writer[zx("0x0")](zx("0x1e"),a,c),i[zx("0xe")][zx("0x44")](c,s.markerName),t&&(n[zx("0x2c")][zx("0x1a")](s.markerName)?i[zx("0x4d")].addClass("ck-suggestion-marker--active",c):i.writer[zx("0x4c")](zx("0x26"),c))}}}}n[zx("0x18")](zx("0x2d"),((e,r)=>{const s=o[zx("0xf")](t.model[zx("0x34")][zx("0x11")]),i=o[zx("0x15")](s),x=s[0].findAncestor(zx("0x4e")),a=x[zx("0x8")]("headingRows")||0,c=r&&null!==r[zx("0x3f")]?r.forceValue:!t.commands[zx("0x22")](zx("0x2d"))[zx("0x43")],l=c?i[zx("0x40")]:i[zx("0x6")],d=x[zx("0x2e")](l);let u;if(c){const e=x[zx("0x2e")](a);if(d[zx("0x37")]<e[zx("0x37")])return;u=t[zx("0x3d")].createRange(t[zx("0x3d")][zx("0x23")](e[zx("0x2e")](0)),t.model[zx("0x31")](d[zx("0x2e")](d[zx("0x1f")]-1)))}else{const e=x[zx("0x2e")](a-1);if(!e)return;u=t[zx("0x3d")][zx("0x50")](t.model.createPositionBefore(d[zx("0x2e")](0)),t[zx("0x3d")][zx("0x31")](e[zx("0x2e")](e[zx("0x1f")]-1)))}t[zx("0x3d")][zx("0x16")]((()=>{n[zx("0x14")](u,{commandName:zx("0x2d"),commandParams:[{forceValue:c}]},[],zx("0x2d"))}))})),n.enableCommand("setTableColumnHeader",((e,o)=>{const r=t[zx("0x1c")][zx("0x22")](zx("0x51")),s=r.getSelectionAffectedTableCells(t[zx("0x3d")][zx("0x34")][zx("0x11")]),i=r[zx("0x10")](s),x=s[0].findAncestor(zx("0x4e")),a=x[zx("0x8")](zx("0x48"))||0,c=o&&null!==o[zx("0x3f")]?o[zx("0x3f")]:!t[zx("0x45")][zx("0x22")](zx("0x2b"))[zx("0x43")];let l;const d=x.getChild(0),u=c?i[zx("0x40")]:i[zx("0x6")],g=r.createTableWalker(x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x32")];if(c){const e=d[zx("0x2e")](a);if(m[zx("0x3")](e))return;l=t[zx("0x3d")][zx("0x50")](t[zx("0x3d")][zx("0x23")](e),t[zx("0x3d")][zx("0x31")](m))}else{const e=d[zx("0x2e")](a-1);if(!e)return;l=t[zx("0x3d")][zx("0x50")](t[zx("0x3d")][zx("0x23")](m),t[zx("0x3d")].createPositionAfter(e))}t.model[zx("0x16")]((()=>{n[zx("0x14")](l,{commandName:zx("0x2b"),commandParams:[{forceValue:c}]},[],zx("0x2b"))}))})),t[zx("0x2f")].downcastDispatcher.on(zx("0x1b"),s(),{priority:zx("0x39")}),t[zx("0x13")][zx("0x33")].on("addMarker:suggestion",((t,e,n)=>{n[zx("0x35")][zx("0x4f")]&&s({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t[zx("0x2f")][zx("0x33")].on(zx("0xb"),((t,e,o)=>{const{type:r,id:s}=n._splitMarkerName(e[zx("0x53")]),i=n[zx("0x4a")](s);if(!i.data||zx("0x2b")!=i[zx("0x13")].commandName)return;const x=o[zx("0xe")][zx("0x9")](e[zx("0x53")]);if(x)for(const t of x)o.writer[zx("0x4c")]("ck-suggestion-marker-"+r,t),o[zx("0x4d")].removeClass(zx("0x26"),t),o[zx("0x4d")][zx("0x19")](zx("0x1e"),t),o.mapper[zx("0x4")](t,e[zx("0x53")])}),{priority:zx("0x39")}),n._descriptionFactory[zx("0x1")]((t=>{const{data:n}=t;if(n){if(zx("0x2d")==n[zx("0x12")]){const t=n.commandParams[0][zx("0x3f")];return o(Yo(e,zx(t?"0x47":"0xd")))}if("setTableColumnHeader"==n[zx("0x12")]){const t=n[zx("0x3c")][0][zx("0x3f")];return o(Yo(e,t?"FORMAT_HEADER_COLUMN":zx("0x54")))}}function o(t){return{type:zx("0x21"),content:Yo(e,zx("0x42"),t)}}}));const i=r[zx("0x28")]();n[zx("0x20")][zx("0x24")](zx("0x3e"),zx("0x2d"),zx("0x17"),i),n[zx("0x20")].registerCustomCallback(zx("0x3e"),zx("0x2b"),zx("0x17"),i)}}const Vx=["fromEntries","remove","rootName","has","conversion","rowInsertionIndexes","length","setAttribute","insertRows","keys","registerDescriptionCallback","ck-suggestion-marker--active","column","createPositionBefore","getSuggestions","ck-suggestion-marker-insertion","ck-suggestion-marker","first","find","subType","getContainedElement","tablePasteColumn","removeRows","editor","oldRange","getRowIndexes","tableCellBackgroundColor","insert","updateMarker","entries","TableClipboard","createRange","getSuggestion","tablePasteCell","row","registerCustomCallback","getSelectionAffectedTableCells","activeMarkers","getChild","getChanges","filter","getChangedMarkers","_suggestionFactory","getRanges","suggestionLoaded","newRange","markerAttributes","getAllAdjacentSuggestions","editingDowncast","low","get","getColumnIndexes","last","return","tablePasteRow","startsWith","suggestion","tableCellSuggestion","registerPostFixer","name","tableCellVerticalAlignment","getColumns","batch","tableCellPadding","nodeAfter","setAttributes","move","reduce","rowInsertionRanges","getChildren","locale","discard","insertionRanges","commands","listenTo","view","element","isEmpty","showSuggestionHighlights","table","push","createTableWalker","redo","endRow","includes","options","cells","removeColumns","type","previousSibling","suggestion-td","suggestion:formatBlock:tablePasteCell","getSuggestionCallback","next","hasSuggestion","_splitMarkerName","getTableIfOnlyTableInContent","paragraph","position","model","insertion","tablePasteChainId","afterInit","accept","_getCoordsForCells","document","columnInsertionRanges","rows","differ","add","removeMarker","previous","$graveyard","_replaceTableSlotCell","containsRange","_descriptionFactory","markMultiRangeBlockFormat","getMarkers","author","columnInsertionIndexes","content","value","isEqual","tableCellBorderStyle","attributes","formatBlock","createRangeIn","plugins","for","endColumn","markMultiRangeInsertion","dataDowncast","Users","findAncestor","getRows","end","from","fill","requires","change","removeMarkers","unwrap","getRange","createElement","map","createRangeOn","deletion","markerName","high","insertContent","markerToHighlight","isInContent","join","tableCellBorderColor","TrackChangesEditing","tablePaste","*Replace table cells*","tableCellBorderWidth"];var Kx,qx;Kx=Vx,qx=311,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x4"),Xx("0x0"),Xx("0x80"),"tableCellHorizontalAlignment",Xx("0x41"),Xx("0x1f"),Xx("0x44")],Qx=Object[Xx("0x5")]($x.map((t=>[t,null])));class Jx extends t.Plugin{static get[Xx("0x8f")](){return[Mx]}[Xx("0x6b")](){const t=this[Xx("0x1c")];if(!t.plugins[Xx("0x8")](Xx("0x23")))return;const n=t.plugins[Xx("0x37")](Xx("0x1")),o=t[Xx("0x84")][Xx("0x37")]("TableUtils"),r=t[Xx("0x84")][Xx("0x37")](Mx),s=t[Xx("0x84")][Xx("0x37")](Xx("0x23"));r._tablePostFixingSubtypes[Xx("0x55")](Xx("0x3b"),Xx("0x1a")),t[Xx("0x68")].schema.register(Xx("0x3e"),{allowIn:"tableCell",allowContentOf:"tableCell",isLimit:!0}),t[Xx("0x9")].elementToElement({model:Xx("0x3e"),view:Xx("0x5f")});let i=null;t[Xx("0x68")].on(Xx("0x9a"),((r,x)=>{const[a,c]=x,l=x[x[Xx("0xb")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Xx("0x1c")][Xx("0x4e")][Xx("0x37")]("trackChanges")[Xx("0x7e")]&&function(t,e,n,o,r){if(e&&!e.is("documentSelection"))return!1;const s=r[Xx("0x65")](t,n);if(!s||!Yx(s,void 0,o))return!1;const i=o[Xx("0x29")](n[Xx("0x6e")].selection);if(!i[Xx("0xb")])return!1;const x=i[0][Xx("0x8a")](Xx("0x54")),a=o[Xx("0x1e")](i),c=o[Xx("0x38")](i),l={startRow:a.first,endRow:a[Xx("0x39")],startColumn:c[Xx("0x16")],endColumn:c.last};return 1==i[Xx("0xb")]&&(l[Xx("0x58")]+=o[Xx("0x8b")](s)-1,l[Xx("0x86")]+=o[Xx("0x42")](s)-1),Yx(x,l,o)}(a,c,t[Xx("0x68")],o,s)&&(r.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0x68")].change((()=>{t[Xx("0x68")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:r,columnInsertionRanges:s,insertionRanges:a,deletionRanges:c,cells:l}=i;r[Xx("0xb")]&&n[Xx("0x87")](r,Xx("0x3b"),{tablePasteChainId:o}),s.length&&n.markMultiRangeInsertion(s,Xx("0x1a"),{tablePasteChainId:o}),a[Xx("0xb")]&&n[Xx("0x87")](a,Xx("0x2"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0xb")]&&n.markMultiRangeDeletion(c,Xx("0x2"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x79")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x26"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:r}of l){if(!r)continue;const s=t[Xx("0x68")][Xx("0x96")](o),i=e[Xx("0x17")]((t=>t[Xx("0x93")]()[Xx("0x7f")](s)));i&&n.push([i.name,r])}n[Xx("0xb")]&&d[Xx("0xc")](Xx("0x33"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x99")]+10}),t[Xx("0x84")][Xx("0x37")](Xx("0x23")).on(Xx("0x76"),((t,e)=>{const[n,o,,r]=e;if(!i)return;t.stop();const s=n.cell,x=o,a=Zx(s),c=Zx(x);t[Xx("0x3a")]=s;let l=null,d=null;if(c||a)if(a&&!c){r.remove(s.getChild(0));for(const t of Array[Xx("0x8d")](x[Xx("0x4a")]()))r[Xx("0x20")](t,s,Xx("0x8c"));const t=i[Xx("0xa")][Xx("0x59")](n[Xx("0x27")]),e=i[Xx("0x7c")][Xx("0x59")](n[Xx("0x11")]);t||e||(l=r[Xx("0x83")](s))}else c&&!a&&(d=r[Xx("0x83")](s));else{const t=r[Xx("0x94")](Xx("0x3e")),e=r[Xx("0x94")]("tableCellSuggestion");r.wrap(r.createRangeIn(s),e),r.insert(t,s,0);for(const e of Array.from(x[Xx("0x4a")]()))r[Xx("0x20")](e,t,Xx("0x8c"));l=r[Xx("0x96")](t),d=r[Xx("0x96")](e)}const u=Array[Xx("0x8d")](x.getAttributes()).filter((([t])=>$x.includes(t)));i[Xx("0x5b")][Xx("0x55")]({element:s,attributes:u[Xx("0xb")]?Object[Xx("0x5")](u):null}),l&&i[Xx("0x4d")][Xx("0x55")](l),d&&i.deletionRanges[Xx("0x55")](d)}),{priority:Xx("0x99")}),o.on("insertColumns",((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s.columns||1;i[Xx("0x7c")]=new Array(a)[Xx("0x8e")](x)[Xx("0x95")](((t,e)=>t+e));for(const{cell:e}of o[Xx("0x56")](r,{startColumn:x,endColumn:x+a-1}))i[Xx("0x6f")][Xx("0x55")](t.model[Xx("0x96")](e))}),{priority:"low"}),o.on(Xx("0xd"),((e,n)=>{const[r,s={}]=n;if(!i)return;const x=s.at||0,a=s[Xx("0x70")]||1;i[Xx("0xa")]=new Array(a)[Xx("0x8e")](x).map(((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(r,{startRow:x,endRow:x+a-1}))i[Xx("0x49")][Xx("0x55")](t.model[Xx("0x96")](e))}),{priority:Xx("0x36")}),n[Xx("0x78")][Xx("0xf")]((e=>{if(e[Xx("0x18")]&&e[Xx("0x18")][Xx("0x3c")](Xx("0x2")))return e[Xx("0x74")]?{}:{type:Xx("0x69"),content:Yo(t[Xx("0x4b")],Xx("0x3"))}}));const x=()=>!1;for(const t of[Xx("0x2"),Xx("0x1a"),Xx("0x3b"),Xx("0x26")])n[Xx("0x2f")].registerCustomCallback(Xx("0x69"),t,"join",x),n._suggestionFactory[Xx("0x28")](Xx("0x97"),t,Xx("0x9d"),x),n[Xx("0x2f")][Xx("0x28")](Xx("0x82"),t,Xx("0x9d"),x);n[Xx("0x2f")].registerCustomCallback(Xx("0x82"),Xx("0x26"),"discard",x),n[Xx("0x2f")][Xx("0x28")](Xx("0x82"),Xx("0x26"),Xx("0x6c"),((e,n,o)=>{const r=e[Xx("0x95")]((t=>t[Xx("0x19")]())).filter((t=>t)),s=new Map(r[Xx("0x95")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&s.set(t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Xx("0x22")](o.markerAttributes)){const o=t.model.markers[Xx("0x37")](e),r=o?o[Xx("0x93")]()[Xx("0x19")]():null;r&&s.set(r,n)}t[Xx("0x68")][Xx("0x90")]((t=>{for(const[e,n]of s)t[Xx("0x46")]({...Qx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x2f")][Xx("0x28")](e,Xx("0x2"),o,((r,s,i)=>{t.model[Xx("0x90")]((t=>{const x=[];for(const t of r){const e=t.start[Xx("0x45")];e.is(Xx("0x51"),"tableCellSuggestion")&&x[Xx("0x55")](e)}n[Xx("0x2f")][Xx("0x61")](e,null,o)(r,s,i);for(const e of x)Xx("0x75")!=e.root[Xx("0x7")]&&t[Xx("0x92")](e)}))}))};a(Xx("0x69"),"accept"),a("insertion",Xx("0x4c")),a(Xx("0x97"),Xx("0x6c")),a(Xx("0x97"),"discard"),n[Xx("0x2f")][Xx("0x28")](Xx("0x69"),"tablePasteRow",Xx("0x4c"),(t=>{const e=t.map((t=>t[Xx("0x19")]())),n=e[0][Xx("0x8a")](Xx("0x54")),{minRow:s,maxRow:i}=r[Xx("0x6d")](e);o[Xx("0x1b")](n,{at:s,rows:i-s+1})})),n[Xx("0x2f")].registerCustomCallback(Xx("0x69"),Xx("0x1a"),"discard",(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Xx("0x8a")](Xx("0x54")),{minColumn:s,maxColumn:i}=r[Xx("0x6d")](e);o[Xx("0x5c")](n,{at:s,columns:i-s+1})}));const c=(t,e)=>{if(!e[Xx("0x18")]||!e[Xx("0x18")][Xx("0x3c")](Xx("0x2")))return;const o=e[Xx("0x81")][Xx("0x6a")],r=n.getSuggestions()[Xx("0x2d")]((t=>t[Xx("0x9c")]&&t[Xx("0x81")]&&t[Xx("0x81")][Xx("0x6a")]==o));r[Xx("0xb")]&&e[Xx("0x34")]()[Xx("0xb")]!=r.length&&r[Xx("0x48")](((t,e)=>(t[Xx("0x62")]=e,e[Xx("0x74")]=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[Xx("0x98")]),r=[Xx("0x15"),Xx("0x14")],s=n[Xx("0x2a")][Xx("0x59")](t.markerName);return s&&r.push(Xx("0x10")),{classes:r,attributes:{"data-suggestion":o},priority:s&&e?3010:3e3}}n.on(Xx("0x31"),c,{priority:Xx("0x99")}),n.on("suggestionUnloaded",c,{priority:Xx("0x99")}),t[Xx("0x68")][Xx("0x6e")][Xx("0x3f")]((()=>{let e=!1;const o=Array.from(t[Xx("0x68")].document.differ.getChangedMarkers());for(const{name:r,data:s}of o){const{group:o,type:i,id:x}=n[Xx("0x64")](r);if(Xx("0x3d")!=o||Xx("0x97")!=i||s.oldRange)continue;if(!n[Xx("0x63")](x))continue;const a=n[Xx("0x25")](x)[Xx("0x30")](),c=t[Xx("0x84")][Xx("0x37")](Xx("0x89")).me;for(const t of n[Xx("0x13")]())if(t[Xx("0x9c")]&&t[Xx("0x7b")]==c&&Xx("0x82")==t[Xx("0x5d")]&&"tablePasteCell"==t[Xx("0x18")]&&t.getRanges().every((t=>a.some((e=>e[Xx("0x77")](t,!0))))))for(const n of t[Xx("0x34")]())n[Xx("0x9c")]&&(n[Xx("0x4c")](),e=!0)}return e})),t[Xx("0x68")][Xx("0x6e")][Xx("0x3f")]((e=>{const o=t[Xx("0x4e")][Xx("0x37")](Xx("0x57"));if(!o||!o._createdBatches[Xx("0x8")](e[Xx("0x43")]))return!1;let r=!1;const s=t[Xx("0x84")][Xx("0x37")](Xx("0x89")).me,i=t[Xx("0x68")][Xx("0x6e")].differ[Xx("0x2c")](),x=Array[Xx("0x8d")](t[Xx("0x68")].document[Xx("0x71")][Xx("0x2e")]())[Xx("0x2d")]((({name:t,data:e})=>{const{group:o,subType:r,authorId:i}=n._splitMarkerName(t);return Xx("0x3d")==o&&Xx("0x2")==r&&i==s.id&&!e[Xx("0x1d")]}));for(const t of i){if(Xx("0x20")!=t[Xx("0x5d")]||Xx("0x3e")!=t[Xx("0x40")]||1!=t[Xx("0xb")])continue;const n=e[Xx("0x24")](t[Xx("0x67")],t[Xx("0x67")].getShiftedBy(1));if(!x[Xx("0x17")]((({data:t})=>t[Xx("0x32")][Xx("0x7f")](n))))for(const{name:t,data:o}of x)if(n[Xx("0x77")](o[Xx("0x32")])){e[Xx("0x21")](t,{range:n}),r=!0;break}}return r})),t[Xx("0x68")][Xx("0x6e")][Xx("0x3f")]((e=>{let o=!1;const r=t[Xx("0x84")][Xx("0x37")](Xx("0x89")).me,s=n[Xx("0x13")]()[Xx("0x2d")]((t=>t[Xx("0x9c")]&&t.author==r)),i=new Set,x=new Set;for(const t of s)if(Xx("0x2")==t[Xx("0x18")])for(const e of t[Xx("0x7a")]()){const n=e[Xx("0x93")]().getContainedElement();if(n)if(n.is(Xx("0x51"),Xx("0x3e"))&&Zx(n)){t[Xx("0x73")](e[Xx("0x40")]),i[Xx("0x72")](n),o=!0;const r=n.nextSibling,s=n[Xx("0x5e")],a=r&&r.is(Xx("0x51"),Xx("0x3e")),c=s&&s.is(Xx("0x51"),"tableCellSuggestion");a&&!i[Xx("0x8")](r)&&x.add(r),c&&!i.has(s)&&x[Xx("0x72")](s)}else n.is(Xx("0x51"),"paragraph")&&n[Xx("0x52")]&&(t[Xx("0x73")](e[Xx("0x40")]),o=!0)}else if(Xx("0x26")==t[Xx("0x18")]){if(!t[Xx("0x81")]||!t[Xx("0x81")][Xx("0x6a")])continue;const e=t.attributes[Xx("0x33")];if(e&&Object[Xx("0xe")](e)[Xx("0xb")])continue;const n=t[Xx("0x81")][Xx("0x6a")];let r=!0,i=!0;for(const e of s)if(e[Xx("0x18")]&&e[Xx("0x18")][Xx("0x3c")]("tablePaste")){if(!e[Xx("0x81")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Xx("0x81")][Xx("0x6a")]==n){r=!1;break}}i&&r&&(t[Xx("0x91")](),o=!0)}for(const t of i)e[Xx("0x6")](t);for(const t of x)e.unwrap(t);return o})),t[Xx("0x9")].for(Xx("0x35"))[Xx("0x9b")]({model:Xx("0x60"),view:(t,e)=>l(t),converterPriority:Xx("0x99")}),t[Xx("0x9")][Xx("0x85")](Xx("0x88"))[Xx("0x9b")]({model:Xx("0x60"),view:(t,e)=>e[Xx("0x5a")][Xx("0x53")]?l(t,!1):null,converterPriority:"high"});const d=t.editing[Xx("0x50")];this[Xx("0x4f")](d.document,"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Xx("0x83")](e[Xx("0x7d")]).getItems())t.is(Xx("0x51"),Xx("0x5f"))&&n.push(t);d[Xx("0x90")]((t=>{for(const e of n)t[Xx("0x47")](t[Xx("0x83")](e),t[Xx("0x12")](e)),t[Xx("0x6")](e)}))}))}}function Zx(t){if(t[Xx("0x52")])return!0;const e=t[Xx("0x2b")](0);return e.is(Xx("0x51"),Xx("0x66"))&&e[Xx("0x52")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:r,cellWidth:s}of n[Xx("0x56")](t,{includeAllSlots:!0,...e}))if(!o||1!=r||1!=s)return!1;return!0}const ta=["handleResizeTableWidthCommand","accept","getSuggestions","handleSuggestionDescription","has","subType","formatGroupId","plugins","locale","enableCommand","document","discard","selection","commandParams","Users","TrackChangesEditing","formatBlock","resizeTableWidth","format","getSuggestionCallback","bind","registerDescriptionCallback","change","getTableColumnsWidths","editor","table","getAttribute","registerCustomCallback","data","getColumnGroupElement","afterInit","_suggestionFactory","get","columnWidths","getSelectedElement","getContainedElement","resizeTable","markBlockFormat","tableWidth","_descriptionFactory","TableColumnResizeEditing","model"];var ea,na;ea=ta,na=416,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class ra extends t.Plugin{[oa("0x22")](){if(!this[oa("0x1c")][oa("0xb")][oa("0x8")](oa("0x2")))return;const t=this[oa("0x1c")].plugins[oa("0x24")]("TrackChangesEditing");t[oa("0xd")]("resizeTableWidth",this[oa("0x4")][oa("0x18")](this)),t.enableCommand("resizeColumnWidths",this[oa("0x4")][oa("0x18")](this)),t._suggestionFactory[oa("0x1f")](oa("0x14"),oa("0x28"),oa("0x5"),t[oa("0x23")][oa("0x17")](oa("0x14"),null,oa("0xf"))),t._suggestionFactory.registerCustomCallback(oa("0x14"),oa("0x28"),oa("0xf"),t._suggestionFactory.getSuggestionCallback("formatBlock",null,oa("0x5"))),t[oa("0x1")][oa("0x19")](this.handleSuggestionDescription[oa("0x18")](this))}[oa("0x4")](t,e){const n=this[oa("0x1c")][oa("0xb")][oa("0x24")](oa("0x13")),o=this[oa("0x1c")][oa("0xb")][oa("0x24")]("TableColumnResizeEditing"),r=e[oa("0x1d")]||this[oa("0x1c")][oa("0x3")][oa("0xe")][oa("0x10")][oa("0x26")]();this.editor[oa("0x3")][oa("0x1a")]((()=>{const s=o[oa("0x21")](r);let i=s?o[oa("0x1b")](s):null,x=r[oa("0x1e")]("tableWidth")||null;const a=e[oa("0x0")]||x,c=e[oa("0x25")]||i,l=this[oa("0x1c")][oa("0xb")][oa("0x24")](oa("0x12")).me;for(const t of n[oa("0x6")]()){const e=t[oa("0x27")]();if(oa("0x28")===t[oa("0x9")]&&e===r){t.author!==l&&t[oa("0xf")]();const e=t[oa("0x20")][oa("0x11")];x=e[0][oa("0x0")],i=e[0][oa("0x25")];break}}t({table:r,tableWidth:a,columnWidths:c}),n[oa("0x29")](r,{commandName:oa("0x15"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x28")},[],oa("0x28"))}))}[oa("0x7")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0xa")]){const t="*Format:* resize table";return{type:oa("0x16"),content:Yo(this[oa("0x1c")][oa("0xc")],t)}}}}const sa=["editor","afterInit","get","enableCommand","plugins","Template","TrackChangesEditing"];var ia,xa;ia=sa,xa=252,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return sa[t-=0]};class ca extends t.Plugin{[aa("0x1")](){const t=this[aa("0x0")];t[aa("0x4")].has(aa("0x5"))&&t[aa("0x4")][aa("0x2")](aa("0x6"))[aa("0x3")]("insertTemplate")}}const la=["locale","enableCommand","tableOfContents","get","plugins","editor","afterInit","commands","_descriptionFactory","ELEMENT_TABLE_OF_CONTENTS"];var da,ua;da=la,ua=266,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x0")](){const t=this[ga("0x9")];if(!t[ga("0x1")].get("insertTableOfContents"))return;t[ga("0x8")][ga("0x7")]("TrackChangesEditing")[ga("0x5")]("insertTableOfContents");const e=t.plugins[ga("0x7")]("TrackChangesEditing"),n=t[ga("0x4")];e[ga("0x2")].registerElementLabel(ga("0x6"),(t=>Yo(n,ga("0x3"),t)))}}const fa=["registerElementLabel","end","get","schema","nodeBefore","document","start","forward","_splitMarkerName","isEqual","title-content","locale","newRange","editor","has","createRange","Title","removeMarker","TrackChangesEditing","from","model","ELEMENT_TITLE","afterInit","isCollapsed","differ"];var ha,pa;ha=fa,pa=186,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0xb")](){const t=this[ba("0x2")];if(!t.plugins[ba("0x3")](ba("0x5")))return;const e=t.plugins[ba("0x10")](ba("0x7"));e._descriptionFactory[ba("0xe")](ba("0x18"),(()=>Yo(t[ba("0x0")],ba("0xa")))),t.model[ba("0x13")].registerPostFixer((n=>{let o=!1;const r=Array[ba("0x8")](t[ba("0x9")][ba("0x13")][ba("0xd")].getChangedMarkers());for(const{name:s,data:i}of r){const{group:r}=e[ba("0x16")](s);if("suggestion"!==r||!i[ba("0x1")])continue;const x=i.newRange,a=x[ba("0xf")][ba("0x12")];if(!a||!a.is("element","title-content"))continue;if(!x.start.isTouching(x[ba("0xf")]))continue;const c=t[ba("0x9")][ba("0x11")].getNearestSelectionRange(x.end,ba("0x15"));if(c&&c[ba("0xc")]){const t=n[ba("0x4")](x[ba("0x14")],c.start);t[ba("0x17")](x)||(n.updateMarker(s,{range:t}),o=!0)}o||(n[ba("0x6")](s),o=!0)}return o}))}}const _a=["has","afterInit","editor","TrackChangesEditing","plugins","UndoEditing","get","redo","enableCommand"];var Ta,Ca;Ta=_a,Ca=150,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this[ya("0x5")],e=t[ya("0x7")][ya("0x0")](ya("0x6"));t[ya("0x7")][ya("0x3")](ya("0x8"))&&(e.enableCommand("undo"),e[ya("0x2")](ya("0x1")))}}const Aa=["enableCommand","get","TrackChangesEditing","editor","toggleTableCaption","has","afterInit","plugins","requires"];var va,Ra;va=Aa,Ra=377,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x0")](){return[Mx]}[Sa("0x7")](){const t=this[Sa("0x4")];t[Sa("0x8")][Sa("0x6")]("TableCaptionEditing")&&t[Sa("0x8")][Sa("0x2")](Sa("0x3"))[Sa("0x1")](Sa("0x5"))}}const La=["getSelectedBlocks","DocumentListUtils","ELEMENT_","has","afterInit","from","bind","format","plugins","document","listReversed","numbered","_getTranslationKeyForListStyle","enableCommand","getAttribute","handleListReversedCommand","markMultiRangeBlockFormat","TrackChangesEditing","startIndex","get","handleListStartCommand","getListTypeFromListStyleType","length","editor","filter","selection","type","listStart","*Change to:* %0","isListItemBlock","handleListStyleCommand","reversed","_LIST_","*Format:* set start index to %0","push","config","replace","_descriptionFactory","_getSuggestionBlocks","expandListBlocksToCompleteList","*Format:* set order to reversed","model","DocumentListPropertiesEditing","commandParams","change","listStyle","styles","list.properties","locale","isFirstBlockOfListItem","registerDescriptionCallback","_getSuggestionBlocksForListStyle","handleDescriptions","listType"];var Na,wa;Na=La,wa=338,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{[Ma("0x2c")](){if(!this[Ma("0x9")][Ma("0x30")][Ma("0x2b")](Ma("0x1c")))return;const t=this[Ma("0x9")][Ma("0x15")][Ma("0x5")](Ma("0x21")),e=this[Ma("0x9")][Ma("0x30")][Ma("0x5")](Ma("0x3"));t[Ma("0x20")]&&e[Ma("0x35")](Ma("0x1f"),this[Ma("0x10")][Ma("0x2e")](this)),t.reversed&&e[Ma("0x35")]("listReversed",this[Ma("0x1")][Ma("0x2e")](this)),t[Ma("0x4")]&&e[Ma("0x35")]("listStart",this[Ma("0x6")][Ma("0x2e")](this)),e[Ma("0x17")][Ma("0x24")](this[Ma("0x26")][Ma("0x2e")](this))}[Ma("0x10")](t,e={}){const n=this[Ma("0x9")][Ma("0x30")].get(Ma("0x3")),o=this[Ma("0x25")]();this[Ma("0x9")][Ma("0x1b")][Ma("0x1e")]((()=>{n[Ma("0x2")](o,{commandName:Ma("0x1f"),commandParams:[{type:e[Ma("0xc")]}],formatGroupId:Ma("0x1f")})}))}[Ma("0x1")](t,e={}){const n=this[Ma("0x9")][Ma("0x30")].get(Ma("0x3")),o=this.editor[Ma("0x30")].get("DocumentListUtils"),r=this[Ma("0x18")]((t=>o[Ma("0xf")](t)&&Ma("0x33")===t[Ma("0x0")](Ma("0x27"))));null!==r&&this.editor[Ma("0x1b")][Ma("0x1e")]((()=>{n[Ma("0x2")](r,{commandName:Ma("0x32"),commandParams:[{reversed:e[Ma("0x11")]}],formatGroupId:Ma("0x32")})}))}handleListStartCommand(t,e={}){const n=this.editor[Ma("0x30")][Ma("0x5")]("TrackChangesEditing"),o=this[Ma("0x9")].plugins[Ma("0x5")]("DocumentListUtils"),r=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&Ma("0x33")===t[Ma("0x0")](Ma("0x27"))));null!==r&&this[Ma("0x9")][Ma("0x1b")][Ma("0x1e")]((()=>{n.markMultiRangeBlockFormat(r,{commandName:Ma("0xd"),commandParams:[{startIndex:e[Ma("0x4")]}],formatGroupId:"listStart"})}))}[Ma("0x26")](t){const e=this[Ma("0x9")][Ma("0x22")],{data:n}=t;if(!n)return;let o,r;switch(n.commandName){case Ma("0x1f"):o=Ma("0xe"),r={type:Ma("0x2f"),content:Yo(e,o,Yo(e,this[Ma("0x34")](n[Ma("0x1d")][0][Ma("0xc")])))};break;case Ma("0x32"):o=n[Ma("0x1d")][0][Ma("0x11")]?Ma("0x1a"):"*Format:* set order to regular",r={type:"format",content:Yo(e,o)};break;case Ma("0xd"):o=Ma("0x13"),r={type:"format",content:Yo(e,o,n[Ma("0x1d")][0][Ma("0x4")])}}return r}[Ma("0x25")](){const t=this[Ma("0x9")].plugins[Ma("0x5")](Ma("0x29"));let e=Array[Ma("0x2d")](this[Ma("0x9")].model[Ma("0x31")].selection[Ma("0x28")]());return e[Ma("0x14")](...t[Ma("0x19")](e)),e=[...new Set(e)],e}[Ma("0x18")](t){const e=this.editor[Ma("0x30")][Ma("0x5")](Ma("0x29"));let n=Array[Ma("0x2d")](this[Ma("0x9")].model.document[Ma("0xb")][Ma("0x28")]())[Ma("0xa")](t);if(!n[Ma("0x8")])return null;n=e[Ma("0x19")](n);const o=[];for(const t of n)e[Ma("0x23")](t)&&o[Ma("0x14")](t);return o}[Ma("0x34")](t){return Ma("0x2a")+this[Ma("0x9")][Ma("0x30")][Ma("0x5")]("DocumentListPropertiesUtils")[Ma("0x7")](t).toUpperCase()+Ma("0x12")+t.toUpperCase()[Ma("0x16")](/-/g,"_")}}const Fa=["tableCellPadding","tableProperties","findAncestor","tableWidth","model","*Format:* change table cell properties","tableAlignment","_getSuggestion","markBlockFormat","selection","commandParams","registerCustomCallback","change","tableCellProperties","tableCellBorderColor","getFirstPosition","setAttribute","tableCellBorderStyle","tableBorderWidth","locale","TrackChangesEditing","_suggestionFactory","TableCellPropertiesEditing","nodeAfter","getSuggestionCallback","tableBackgroundColor","accept","tableCellWidth","format","tableCellHorizontalAlignment","removeAttribute","document","tableBorderStyle","get","enqueueChange","enableCommand","table","editor","subType","handleDiscardAction","tableBorderColor","TableUtils","data","handleSuggestionDescription","_descriptionFactory","has","pluginName","plugins","batch","start","discard","tableHeight","tableCellBackgroundColor","_handlePropertyChange","formatBlock","afterInit","getSuggestions"];var Pa,Da;Pa=Fa,Da=133,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("0x27")]=[Ba("0x15"),Ba("0xd"),Ba("0x38"),Ba("0x2c"),Ba("0x29"),Ba("0x20"),Ba("0x6")],this.tableCellProperties=[Ba("0x34"),Ba("0x37"),"tableCellBorderWidth",Ba("0x26"),Ba("0x8"),"tableCellHeight",Ba("0x21"),Ba("0xa"),"tableCellVerticalAlignment"]}static get[Ba("0x1b")](){return"TrackChangesTableProperties"}[Ba("0x24")](){const t=this[Ba("0x12")][Ba("0x1c")].get(Ba("0x1"));if(this.editor[Ba("0x1c")][Ba("0x1a")]("TablePropertiesEditing")){for(const e of this[Ba("0x27")])t[Ba("0x10")](e,((t,n)=>{const o=this.editor[Ba("0x2a")][Ba("0xc")][Ba("0x2f")][Ba("0x35")]()[Ba("0x28")](Ba("0x11"));this[Ba("0x22")](e,[o],this[Ba("0x27")],Ba("0x27"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x23"),Ba("0x27"),"accept",t[Ba("0x2")][Ba("0x5")](Ba("0x23"),null,Ba("0x1f"))),t[Ba("0x2")].registerCustomCallback("formatBlock",Ba("0x27"),"discard",((t,e)=>this[Ba("0x14")](this[Ba("0x27")],t,e))),t._suggestionFactory[Ba("0x31")](Ba("0x23"),Ba("0x27"),"join",(()=>!1))}if(this[Ba("0x12")].plugins[Ba("0x1a")](Ba("0x3"))){for(const e of this[Ba("0x33")])t[Ba("0x10")](e,((t,n)=>{const o=this[Ba("0x12")].plugins[Ba("0xe")](Ba("0x16")).getSelectionAffectedTableCells(this[Ba("0x12")][Ba("0x2a")][Ba("0xc")][Ba("0x2f")]);this[Ba("0x22")](e,o,this.tableCellProperties,Ba("0x33"),t,n)}));t[Ba("0x2")][Ba("0x31")](Ba("0x23"),"tableCellProperties",Ba("0x7"),t[Ba("0x2")][Ba("0x5")](Ba("0x23"),null,"discard")),t[Ba("0x2")][Ba("0x31")]("formatBlock",Ba("0x33"),Ba("0x1f"),((t,e)=>this[Ba("0x14")](this[Ba("0x33")],t,e))),t[Ba("0x2")][Ba("0x31")]("formatBlock","tableCellProperties","join",(()=>!1))}t[Ba("0x19")].registerDescriptionCallback((t=>this[Ba("0x18")](t)))}[Ba("0x22")](t,e,n,o,r,s){const i=this[Ba("0x12")][Ba("0x1c")][Ba("0xe")]("TrackChangesEditing");this[Ba("0x12")].model[Ba("0xf")](s[Ba("0x1d")],(()=>{for(const t of e)if(this[Ba("0x2d")](t,o))r(s);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}r(s),i[Ba("0x2e")](t,{commandParams:[e]},[],o)}}))}[Ba("0x14")](t,e,n){const o=e[0][Ba("0x1e")][Ba("0x4")],r=n[Ba("0x30")][0];this.editor.model[Ba("0x32")]((e=>{for(const n of t)void 0!==r[n]?e[Ba("0x36")](n,r[n],o):e[Ba("0xb")](n,o)}))}[Ba("0x18")](t){if(t[Ba("0x17")])switch(t[Ba("0x13")]){case Ba("0x27"):return{type:"format",content:Yo(this[Ba("0x12")][Ba("0x0")],"*Format:* change table properties")};case"tableCellProperties":return{type:Ba("0x9"),content:Yo(this[Ba("0x12")][Ba("0x0")],Ba("0x2b"))}}}[Ba("0x2d")](t,e){const n=this[Ba("0x12")][Ba("0x1c")][Ba("0xe")](Ba("0x1"));for(const o of n[Ba("0x25")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x13")]===e&&n===t)return o}return null}}const Ua=["deletion:","trackChanges.trackFormatChanges","splice","TrackChangesEditing","isTouching","schema","enableCommand","writer","refresh","execute","_saved","isAfter","addMarker:suggestion:formatBlock","CommentsRepository","normal","_addThreadToSuggestion","discard","stop","nodeAfter","containsPosition","containsRangeInObject","_trackFormatChanges","multipleBlocks","differ","add","markMultiRangeInsertion","track-changes-adapter-missing-getsuggestion","deletion","applyOperation","type","join","_suggestionState","trackChanges","name","_addSuggestionMarker","markers","acceptAllSuggestions","getItems","getSuggestions","_checkSuggestionCorrectness","plugins","deletion:chain","reconvertMarker","_rangeIsInLocalUserInsertion","skipNestingCheck","editing","mapper","isBlock","_joinWithAdjacentSuggestions","define","createSelection","stopListening","discardSuggestion","addSuggestionData","clear","suggestion","delete","isEqual","value","_findSuggestions","commentThread","PENDING_ACTION_SUGGESTION","isDocumentOperation","model","fromRange","after","updateMarker","commands","createElement","root","createRange","enqueueChange","track-changes-adapter-already-set","batch","before","formatInline","getWalker","acceptSuggestion","upcast","map","deletion:discard","formatBlock","isMultiRange","backward","createdAt","markerToData","return","_enabledCommands","lowest","previous","formatGroupId","isRemovable","_adapter","never","sort","_isDataLoaded","fire","high","commandName","size","end","subType","isInContent","for","widget","insertion:accept","ck-suggestion-marker-","isCollapsed","_suggestions","formatBlock:chain","data-suggestion","_getExternalAuthor","filter","removeMarker:suggestion:formatBlock","deletion:accept","suggestionUnloaded","setTo","markMultiRangeDeletion","track-changes-suggestion-data-mismatch","markerName","unbindElementFromMarkerName","formatBlock:discard","_joinSuggestions","split","notReady","always","adapter","containsRange","editor","getShiftedBy","document","removeMarker","acceptSelectedSuggestions","_cutOutSuggestionMarker","insert","markInlineFormat","Users","splitPosition","attributes","getUser","targetPosition","set","getAttribute","removeMarkers","isOwn","_breakSuggestionMarker","formatBlock:accept","_onDiscard","data","addMarkerName","substr","_customCallbacks","markMultiRangeBlockFormat","keys","addCommentThread","$marker","_handleNewSuggestionMarker","creator","markerReady","ck-suggestion-marker-formatBlock","range","getLastMatchingPosition","change","insertContent","_editor","deleteContent","remove","@external","isObject","rootName","formatInline:chain","options","trackChangesCommand","from","toViewElement","next","author","markBlockFormat","track-changes-user-not-found","change:activeMarkers","getRanges","isAtStart","formatBlock:","start","getSuggestionCallback","change:data","every","pluginName","_updateSuggestionData","rethrowUnexpectedError","element","ready","formatInline:join","_mergeNestedSuggestions","isArray","getFirstRange","_registerDefaultCallbacks","discardSelectedSuggestions","getSuggestion","getMultiRangeId","default","buildSuggestion","isLimit","formatInline:discard","addMarker:suggestion","ck-suggestion-marker","_getAuthorFromId","isBefore","ck-suggestion-marker--active","bindElementToMarker","insertion","selection","accept","addHighlight","getCommentThread","getMarkers","hasComments","setAttribute","suggestion-type","includes","howMany","then","activeMarkers","fetchCommentThread","isSelectable","suggestionLoaded","getDifference","isIntersectingWithRange","addComment","parent","_splitMarkerName","_commentsRepository","multi","locale","nodeBefore","insertion:discard","hasSuggestion","addClass","moveTargetPosition","getChangedMarkers","requires","track-changes-suggestion-not-found","authoredAt","addRange","collaboration.channelId","dataToMarker","discardAllSuggestions","insertion:chain","newRange","consume","registerCustomCallback","_defaultCallbacks","createPositionAt","chain","accepted","isNextTo","_setSuggestionRange","config","consumable","has","createRangeIn","detach","_model","listenTo","low","updateSuggestion","formatBlock:join","removed","addMarker","dataDowncast","removeClass","_removeSuggestion","suggestionChanged","rejected","oldRange","markInsertion","isAtEnd","getRange","showSuggestionHighlights","getFirstMarker","elementStart","position","getCustomProperty","$graveyard","addSuggestion","push","_createSuggestion","_isForcedDefaultExecutionBlock","forceDefaultExecution","formatInline:","getNearestSelectionRange","_setSuggestionData","fromCharCode","isUndo","editingDowncast","registerPostFixer","_getSuggestionData","elementToElement","item","conversion","clone","markerToHighlight","getIntersection","some","suggestion:","_suggestionFactory","_refreshSuggestionsChain","markDeletion","getAllAdjacentSuggestions","get","assign","_descriptionFactory","setSelection","trackChanges.mergeNestedSuggestions","external:","length","isInsideObject"];var Ga,Ha;Ga=Ua,Ha=147,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("0x5d")](){return[za("0xb7"),s.Users,t.PendingActions,cr,Cr,Rr,Mr,Br,Wr,Qr,es,Oa,xs,us,bs,ys,Ls,Ps,Gs,Ks,Js,ni,xi,ui,pi,Ci,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,yx,Sx,Mx,jx,Wx,Ia,Jx,ra,ma,ja,ca,Ea,ka]}static get[za("0x28")](){return za("0xad")}constructor(t){function e(t){return t[za("0xf9")]((t=>String[za("0x91")](t)))[za("0xc8")]("")}super(t),this[za("0x137")](za("0x4b"),[]),this.on(za("0x20"),((e,n,o,r)=>{this[za("0x73")][za("0xf")]((()=>{for(const e of[...r,...o])this[za("0x73")][za("0xcd")].has(e)&&t[za("0xd7")][za("0xd4")](e)}))})),this[za("0xa4")]=new rr(this[za("0x12a")][za("0xe9")].schema,this[za("0x12a")][za("0x56")]),this[za("0x106")]=null,this[za("0x9e")]=new Va(this[za("0x12a")]),this[za("0x116")]=new Map,this[za("0x54")]=t[za("0xd2")].get(za("0xb7")),this[za("0x101")]=new Set,this[za("0x73")]=this[za("0x12a")].model,this._suggestionState=new WeakMap,this[za("0x8c")]=!1,t[za("0x6e")][za("0xdb")](za("0xab"),za("0x35")),this._trackFormatChanges=t.config[za("0xa2")](za("0xab")),t[za("0x6e")][za("0xdb")]("trackChanges.mergeNestedSuggestions",!0),this[za("0x2e")]=t[za("0x6e")][za("0xa2")](za("0xa6")),this[za("0x19")]=new u(t,this[za("0x101")]),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,48])}init(){const t=this[za("0x12a")];t.conversion.for(za("0x93"))[za("0x9a")]({model:za("0xe1"),view:t=>{const{id:e,type:n}=this[za("0x53")](t[za("0x121")]),o=["ck-suggestion-marker","ck-suggestion-marker-"+n];let r=3e3;return this[za("0x4b")][za("0x48")](t[za("0x121")])&&(o.push(za("0x3d")),r=3010),za("0xc5")==n&&(r+=5),{classes:o,attributes:{"data-suggestion":e},priority:r}}}),t[za("0x98")][za("0x111")](za("0x7a"))[za("0xc2")]((e=>{e.on(za("0x39"),((e,n,o)=>{if(!o[za("0x18")][za("0x83")])return;const r=n[za("0x97")];if(!r)return;const s=o[za("0xd8")].toViewElement(r);t.model[za("0xaf")].isObject(r)&&s&&!s[za("0x87")](za("0x112"))&&s.is("containerElement")&&(0,x.toWidget)(s,o[za("0xb1")])}),{priority:za("0x10b")})})),t.conversion[za("0x111")](za("0x7a")).markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[za("0x18")].showSuggestionHighlights)return null;const{type:n}=this[za("0x53")](t[za("0x121")]);return{classes:[za("0x3a"),za("0x114")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,r)=>{if(!o[za("0x97")])return;if(o[za("0x97")].is("selection"))return void r.consumable[za("0x66")](o[za("0x97")],n[za("0xcb")]);const s=r[za("0xd8")][za("0x1b")](o[za("0x97")]);if(!o.item.is(za("0x2b"))||!t.model[za("0xaf")][za("0xd9")](o.item)||s[za("0x87")]("addHighlight"))return;const{id:i}=this[za("0x53")](o[za("0x121")]);r[za("0xb1")][za("0x5a")]([za("0x3a"),za("0xc")],s),r.writer[za("0x46")](za("0x118"),i,s),r[za("0xd8")][za("0x3e")](s,o[za("0x121")]),e&&(this[za("0x4b")][za("0x48")](o[za("0x121")])?r[za("0xb1")].addClass(za("0x3d"),s):r[za("0xb1")][za("0x7b")](za("0x3d"),s));for(const e of t[za("0xe9")][za("0x71")](o[za("0x97")])[za("0xcf")]())r[za("0x6f")][za("0x66")](e,n[za("0xcb")]);r[za("0x6f")][za("0x66")](o.item,n[za("0xcb")])};t[za("0x98")][za("0x111")]("dataDowncast")[za("0xc2")]((t=>{t.on(za("0xb6"),((t,e,o)=>{o.options[za("0x83")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[za("0x98")][za("0x111")](za("0x7a"))[za("0xff")]({model:za("0xe1"),view:(t,e)=>e[za("0x18")][za("0x83")]?null:{group:za("0xe1"),name:t[za("0x3")](11)}}),t[za("0x98")].for(za("0xf8"))[za("0x96")]({view:{name:za("0xe1"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x9d")+t[za("0x138")](za("0x47"))+":"+t[za("0x138")]("id");return t[za("0x138")]("marker-count")&&(n+=":"+t[za("0x138")]("marker-count")),e[za("0xee")](za("0x8"),{"data-name":n})}}),t[za("0x98")].for(za("0xf8"))[za("0x62")]({view:za("0xe1")}),t.conversion[za("0x111")](za("0x93"))[za("0xc2")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0x10b")})})),t[za("0x98")][za("0x111")](za("0x93")).add((t=>{t.on(za("0x11b"),((t,e,n)=>{const o=n[za("0xd8")].markerNameToElements(e.markerName);if(o)for(const t of o)t[za("0x87")](za("0x42"))||(n[za("0xb1")][za("0x7b")]([za("0x3a"),"ck-suggestion-marker-formatBlock",za("0x3d")],t),n[za("0xb1")].removeAttribute(za("0x118"),t),n[za("0xd8")][za("0x122")](t,e[za("0x121")]))}),{priority:za("0x10b")})})),t[za("0xe9")].document[za("0x94")]((e=>{let n=!1;const o=Array[za("0x1a")](t.model[za("0x12c")][za("0xc1")][za("0x5c")]()),r=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0xe1")!==o)continue;const d=this._suggestions[za("0xa2")](l);if(null!=a[za("0x65")])if(za("0xf5")==c&&(n=n||Xa(a[za("0x65")],x,e,t.model[za("0xaf")])),a[za("0x65")].isCollapsed||za("0x88")==a[za("0x65")][za("0xef")][za("0x16")]||za("0xfb")==c&&!Qa(a.newRange)||za("0xc5")==c&&(qa(i=a[za("0x65")])||(s=i).start.parent==s.end[za("0x57")]&&s[za("0x24")][za("0x81")]))e.removeMarker(x),n=!0;else{if(!d||!d.isInContent)continue;r[za("0xc2")](d)}}var s,i;return r[za("0x10d")]>0&&(n=!!this[za("0xda")](r)||n),n})),t.model[za("0x12c")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0xe9")][za("0x12c")][za("0xc1")].getChanges()){if(za("0x130")!=o[za("0xc7")])continue;const r=o[za("0x86")][za("0x12b")](o[za("0xa8")]);if(r[za("0x81")])for(const s of this._suggestions.values()){if(s[za("0xfc")]||!s[za("0x110")])continue;if(za("0xfb")!=s[za("0xc7")])continue;const i=s[za("0x30")]();if(i[za("0x24")].parent!=i.end.parent&&i.end.isEqual(o[za("0x86")])){const o=t[za("0xe9")][za("0xf0")](i[za("0x24")],r);e[za("0xec")](s[za("0x84")](),{range:o}),n=!0}}}return n})),t.model.markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[za("0x53")](e[za("0xcb")]),n=this[za("0x116")][za("0xa2")](t);n&&n[za("0x2")](e[za("0xcb")])}})),t[za("0xe9")][za("0x12c")].on(za("0x26"),(()=>{const e=Array[za("0x1a")](t[za("0xe9")].document[za("0xc1")][za("0x5c")]())[za("0x11a")]((t=>za("0xe1")===this[za("0x53")](t[za("0xcb")]).group));if(0===e.length)return;e[za("0x108")](((t,e)=>{const n=t[za("0x1")][za("0x7f")],o=e[za("0x1")][za("0x7f")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x24")][za("0x3c")](o[za("0x24")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:r}of e){const{id:e}=this[za("0x53")](t);if(null===r[za("0x7f")]){const e=this[za("0x9")](t);o[za("0xc2")](e)}else{const t=this[za("0x116")][za("0xa2")](e);null!==r[za("0x65")]||t.isInContent?(n[za("0xc2")](t.head),o[za("0xc2")](t)):this[za("0x7c")](t)}}o[za("0x10d")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x10a")](za("0x7d"),t)})),t[za("0xe9")].on(za("0xc6"),((e,n)=>{const o=n[0];if(!this._suggestions.size)return;if(!o[za("0xe8")])return;if(o[za("0xf3")][za("0x92")]||!o[za("0xf3")].isLocal)return;let r,s;switch(o[za("0xc7")]){case za("0x130"):r=t[za("0xe9")][za("0x69")](o.position),s=r.getShiftedBy(o[za("0x49")]);break;case za("0x125"):r=t[za("0xe9")][za("0x69")](o[za("0x133")]),s=t[za("0xe9")][za("0x69")](o[za("0x5b")]);break;case"move":r=t[za("0xe9")][za("0x69")](o[za("0x136")]),s=r.getShiftedBy(o[za("0x49")]);break;default:return}const i=t.model[za("0xf0")](r,s);t[za("0xe9")][za("0xf")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[za("0xfc")])continue;if(za("0xf5")==t[za("0xc7")])continue;const n=t[za("0x1")]&&t[za("0x1")][za("0xc0")];(za("0xfb")!=t[za("0xc7")]||za("0x125")==o[za("0xc7")]&&!n)&&(e[za("0xbe")]||za("0x3f")==t.type&&e[za("0x13a")]||t[za("0x30")]()[za("0x129")](i)&&this._breakSuggestionMarker(t,r,s))}}))}),{priority:za("0x102")}),t[za("0xe9")].on(za("0x12"),((e,n)=>{const o=n[0],r=n[1];if(r&&r[za("0x8d")])return;if(this._isForcedDefaultExecutionBlock)return;if(!this[za("0x19")][za("0xe4")])return;if(o[za("0x115")])return;const s=t[za("0xe9")][za("0xaf")],{start:i,end:x}=o[za("0x30")](),a=i.nodeAfter&&s[za("0x37")](i[za("0xbc")])?null:s.getNearestSelectionRange(i,"forward"),c=x[za("0x57")]&&s.isLimit(x[za("0x57")])?null:s[za("0x8f")](x,za("0xfd")),l=t[za("0xe9")][za("0xf0")](a?a[za("0x24")]:i,c?c[za("0x10e")]:x);t[za("0xe9")][za("0xf")]((e=>{this.markDeletion(l);const n=t[za("0xe9")][za("0xaf")][za("0x8f")](l.start);o.is("documentSelection")?e[za("0xa5")](n):o[za("0x11e")](n)})),e[za("0xbb")]()}),{priority:e.priorities[za("0xb8")]+10}),t[za("0xe9")].on(za("0x10"),((e,n)=>{const o=n[n[za("0xa8")]-1];o&&o[za("0x8d")]||this[za("0x8c")]||this[za("0x19")][za("0xe4")]&&(t[za("0xe9")].change((()=>{let o=t[za("0xe9")][za("0x10")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x100")]=o[za("0x99")]();const r=o[za("0x10e")][za("0x57")],s=t.model[za("0xaf")];r&&s[za("0xd9")](r)&&!s[za("0x15")](r)&&(o=t[za("0xe9")][za("0xf0")](o.start,t.model[za("0x69")](r,za("0x10e")))),this.markInsertion(o)})),e[za("0xbb")]())}),{priority:za("0x10b")}),this.editor[za("0xed")][za("0xc2")]("trackChanges",this[za("0x19")]),this[za("0xb0")](za("0xca"));const o=new p(t,this[za("0x116")]);t[za("0xed")].add("acceptSuggestion",o),this.enableCommand(za("0xf7"));const r=new C(t,this[za("0x116")]);t[za("0xed")][za("0xc2")](za("0xde"),r),this[za("0xb0")](za("0xde")),t[za("0xed")].add(za("0xce"),new F(t,o,this[za("0x116")])),this.enableCommand(za("0xce")),t[za("0xed")][za("0xc2")]("discardAllSuggestions",new F(t,r,this[za("0x116")])),this[za("0xb0")](za("0x63")),t[za("0xed")][za("0xc2")](za("0x12e"),new U(t,o,this[za("0x116")])),this.enableCommand(za("0x12e")),t[za("0xed")][za("0xc2")](za("0x32"),new U(t,r,this[za("0x116")])),this[za("0xb0")](za("0x32"));const s=t[za("0xd2")][za("0xa2")](za("0xb7"));this.listenTo(s,za("0x51"),((t,{threadId:e})=>{const n=this[za("0x116")][za("0xa2")](e);n&&n[za("0xe6")]&&1===n.commentThread[za("0xa8")]&&this[za("0x29")](e,{hasComments:!0})}),{priority:za("0x75")}),this[za("0x74")](s,"removeComment",((t,{threadId:e})=>{const n=this[za("0x116")].get(e);n&&n[za("0xe6")]&&!n[za("0xe6")].length&&this[za("0x29")](e,{hasComments:!1})}),{priority:za("0x75")})}set[za("0x128")](t){if(this[za("0x106")])throw new e.CKEditorError(za("0xf2"),this);this[za("0x106")]=t}get[za("0x128")](){return this[za("0x106")]}[za("0xd0")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e.isInContent||n[za("0x8a")](e);return e?n[za("0xf9")]((t=>t.toJSON())):n}[za("0x33")](t){const n=this[za("0x116")].get(t);if(!n)throw new e.CKEditorError(za("0x5e"),this);return n}[za("0x59")](t){return this[za("0x116")][za("0x70")](t)}[za("0xdf")](t){const{authorId:e,id:n,attributes:o}=t,[r,s]=t[za("0xc7")][za("0x125")](":"),i=this[za("0x116")][za("0xa2")](n)||this[za("0x8b")](r,s,n,e,o);if(this[za("0xb9")](i),this[za("0xd1")](i,r,s||null,e),i[za("0xfe")]=t[za("0xfe")],i[za("0x109")]=!0,o&&o[za("0x14")]){const t=o["@external"],e=this[za("0x119")](t.authorName);i[za("0x5f")]=t[za("0xfe")],i[za("0x1d")]=e,i.isExternal=!0}else i.authoredAt=t[za("0xfe")];switch(t[za("0x1")]&&(i.data=t[za("0x1")]),t[za("0x134")]&&(i[za("0x134")]=t[za("0x134")]),this[za("0x106")]&&this._adapter[za("0x89")]||(i[za("0xb4")]=!0),this[za("0xc9")][za("0xa2")](i)){case za("0x126"):this[za("0xc9")][za("0x137")](i,"dataReady");break;case za("0xb"):i[za("0x110")]?(this._refreshSuggestionsChain(new Set([i])),this[za("0xda")](new Set([i])),this[za("0xc9")].set(i,za("0x2c")),this.fire(za("0x4e"),i)):this[za("0xc9")][za("0x137")](i,"removed")}return i}acceptSuggestion(t){this.forceDefaultExecution((()=>{this.editor[za("0xe9")][za("0xf")]((()=>{for(const e of t[za("0xa1")]())e[za("0x41")]()}))}))}[za("0xde")](t){this[za("0x8d")]((()=>{this[za("0x12a")].model[za("0xf")]((()=>{for(const e of t[za("0xa1")]())e[za("0xba")]()}))}))}enableCommand(t,n){const o=this[za("0x12a")][za("0xed")][za("0xa2")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x101")][za("0xc2")](o),n&&o.on(za("0xb3"),((t,e)=>{this[za("0x19")][za("0xe4")]&&(this[za("0x8c")]||e.length>0&&e[e[za("0xa8")]-1]&&e[e[za("0xa8")]-1].forceDefaultExecution||(n(((...t)=>o[za("0xb3")](...t,{forceDefaultExecution:!0})),...e),t[za("0xbb")]()))}),{priority:za("0x10b")})}[za("0x8d")](t){let n,o;const r=this[za("0x8c")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return r||(this[za("0x8c")]=!1),o&&e.CKEditorError[za("0x2a")](o,this),n}[za("0x80")](t,n=null,o={}){if(t[za("0x115")])return null;const r=this[za("0x12a")][za("0xd2")][za("0xa2")]("Users").me;for(const{suggestion:e,meta:r}of this[za("0xe5")](t,"insertion"))if(r[za("0x13a")]){if(!r[za("0x6c")]){if(r[za("0xbe")]){if(!this[za("0x2e")]||!tc(e,o))continue;return e}if(tc(e,o))return e;this[za("0x13b")](e,t[za("0x24")],t.end);break}if(n==e.subType&&tc(e,o)){const n=e[za("0x30")]();return n[za("0x24")][za("0xe3")](t.end)?this[za("0x6d")](e,this[za("0x73")][za("0xf0")](t[za("0x24")],n[za("0x10e")])):this._setSuggestionRange(e,this[za("0x73")][za("0xf0")](n[za("0x24")],t[za("0x10e")])),e}}const s=(0,e.uid)(),i=r.id,x=n?"insertion:"+n:"insertion",a=this[za("0x90")]({id:s,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xcc")](x,s,i,t),a}[za("0xc3")](t,n=za("0x55"),o={}){const r=this[za("0x12a")][za("0xd2")][za("0xa2")](za("0x132")).me,s=this[za("0x9e")][za("0x25")](za("0x3f"),n,za("0xc8"));for(const e of this[za("0xd0")]())if(e[za("0x1d")].id==r.id&&za("0x3f")==e.type&&e[za("0x10f")]==n&&tc(e,o)&&(s(e[za("0x21")](),t)||s(t,e.getRanges()))){for(const n of t)e[za("0x60")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0x3f"))){if(!n[za("0x13a")])continue;if(!this[za("0x2e")]&&n[za("0xbe")])continue;if(!tc(e,o))continue;let r=!0;for(const n of e[za("0x21")]())for(const e of t)if(!n[za("0x129")](e)){r=!1;break}if(r)return e}const i=(0,e.uid)(),x=r.id,a="insertion:"+n,c=this[za("0x90")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0xcc")](a,i,x,e,Zo[za("0x34")]());return c}[za("0x131")](t,n,o=null,r={}){if(o=o||$a(n),t[za("0x115")])return null;if("never"===this._trackFormatChanges){const e=this[za("0x9e")][za("0x25")](za("0xf5"),o,za("0x41"));return this[za("0x8d")]((()=>e([t],n,r))),null}const s=this.editor[za("0xd2")].get(za("0x132")).me,i=[];if(za("0x127")!==this[za("0xbf")])for(const{suggestion:e,meta:n}of this[za("0xe5")](t,za("0x3f")))n[za("0x13a")]&&!n[za("0xa9")]&&i[za("0x8a")](...e.getRanges());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0x9b")](o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xa8")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[za("0xa8")]}}return n}(t,i);x[za("0xa8")]&&this[za("0x73")][za("0xf")]((()=>{for(const t of x){const e=this[za("0x9e")].getSuggestionCallback(za("0xf5"),o,"accept");this[za("0x8d")]((()=>e([t],n,r)))}}));for(const t of a){let i=null,x=t[za("0x24")],a=t[za("0x10e")];for(const{suggestion:e,meta:n}of this[za("0xe5")](t,za("0xf5"))){if(!n[za("0x13a")])continue;if(e[za("0x10f")]!=o)continue;if(!tc(e,r))continue;const s=e[za("0x30")]();if(s.containsRange(t,!0))return null;x=x[za("0x3c")](s[za("0x24")])?x:s.start,a=a.isAfter(s[za("0x10e")])?a:s[za("0x10e")],i?s[za("0x24")][za("0x3c")](i[za("0x30")]()[za("0x24")])?(i[za("0x139")](),i=e):e[za("0x139")]():i=e}const c=this[za("0x73")][za("0xf0")](x,a);if(i)this[za("0x6d")](i,c);else{const t=(0,e.uid)(),i=s.id;this._setSuggestionData({id:t,type:za("0x8e")+o,data:n,createdAt:new Date,authorId:i,attributes:r}),this._addSuggestionMarker(za("0x8e")+o,t,i,c)}}return null}[za("0x1e")](t,n,o=[],r=null,s={}){n[za("0x104")]||(n[za("0x104")]=n.commandName),n[za("0xc0")]=t.is(za("0xd")),r=r||$a(n);const i=o[za("0xf9")]((t=>Ja(t,this[za("0x73")]))),x=t.is(za("0xd"))?t:Ja(t,this[za("0x73")]);if(za("0x107")===this[za("0xbf")]){const t=this[za("0x9e")][za("0x25")](za("0xfb"),r,"accept");return this[za("0x8d")]((()=>t([x],n,s))),null}i[za("0x8a")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&za("0x127")!==this._trackFormatChanges){const t=this[za("0x9e")][za("0x25")](za("0xfb"),r,za("0x41"));return this.forceDefaultExecution((()=>t([x],n,s))),null}let c=null,l=x[za("0x24")],d=x[za("0x10e")];for(const{suggestion:t,meta:e}of this[za("0xe5")](x,za("0xfb"))){if(!e.isOwn)continue;if(e.isNextTo||e[za("0xbe")]||e[za("0xa9")])continue;if(t[za("0x1")][za("0x104")]!=n[za("0x104")])continue;if(!tc(t,s))continue;const o=t[za("0x30")]();if(t[za("0x10f")]==r){if(o[za("0x129")](x,!0))return null;l=l[za("0x3c")](o[za("0x24")])?l:o.start,d=d[za("0xb5")](o[za("0x10e")])?d:o.end,c?o[za("0x24")][za("0x3c")](c[za("0x30")]()[za("0x24")])?(c[za("0x139")](),c=t):t[za("0x139")]():c=t}else{const e=x[za("0x9b")](o);this[za("0x12f")](t,e)}}const u=this[za("0x12a")].plugins[za("0xa2")](za("0x132")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x6d")](c,this[za("0x73")][za("0xf0")](l,d)),c;{const t=this[za("0x90")]({id:g,type:"formatBlock:"+r,data:n,createdAt:new Date,authorId:m,attributes:s});return this[za("0xcc")]("formatBlock:"+r,g,m,this._model[za("0xf0")](l,d)),t}}[za("0x5")](t,n,o=[],r=null,s={}){n.formatGroupId||(n.formatGroupId=n[za("0x10c")]);const i=t[0];n[za("0xc0")]=i.is("range"),r=r||$a(n);const x=o.map((t=>Ja(t,this[za("0x73")]))),a=i.is(za("0xd"))?t:t.map((t=>Ja(t,this._model)));if(za("0x107")===this[za("0xbf")]){const t=this[za("0x9e")][za("0x25")](za("0xfb"),r,za("0x41"));return this.forceDefaultExecution((()=>t(a,n,s))),null}x[za("0x8a")](...a);let c=!0;for(const t of x)if(!this[za("0xd5")](t)){c=!1;break}if(c&&za("0x127")!==this._trackFormatChanges){const t=this._suggestionFactory[za("0x25")](za("0xfb"),r,za("0x41"));return this[za("0x8d")]((()=>t(a,n,s))),null}const l=this.editor.plugins[za("0xa2")](za("0x132")).me;for(const t of this[za("0xd0")]()){if(t[za("0x1d")].id!=l.id)continue;if(za("0xfb")!=t[za("0xc7")]||t[za("0x1")].formatGroupId!=n[za("0x104")])continue;if(!tc(t,s))continue;const e=t[za("0x10f")]==r;for(let n=0;n<a[za("0xa8")];n++){const o=a[n];for(const r of t[za("0x44")]()){const s=r[za("0x82")]();if(o[za("0xe3")](s)){e?(a[za("0xac")](n,1),n--):t[za("0x12d")](r[za("0xcb")]);break}}}}if(0==a[za("0xa8")])return null;const d=this[za("0x9e")][za("0x25")]("formatBlock",r,za("0xc8"));for(const t of this[za("0xd0")]())if(t[za("0x1d")].id==l.id&&za("0xfb")==t[za("0xc7")]&&t.data[za("0x104")]==n[za("0x104")]&&t[za("0x10f")]==r&&tc(t,s)&&(d(t.getRanges(),a)||d(a,t[za("0x21")]()))){for(const e of a)t[za("0x60")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x23")+r,f=this[za("0x90")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:s});for(const t of a)this._addSuggestionMarker(m,u,g,t,Zo[za("0x34")]());return f}[za("0xa0")](t,n=null,o={}){if(t[za("0x115")])return null;const r=this.editor[za("0xd2")][za("0xa2")](za("0x132")).me,s=new i.LiveRange(t.start,t[za("0x10e")]);for(const{suggestion:t,meta:e}of this[za("0xe5")](s,"insertion"))if(e[za("0x13a")]&&!e[za("0x6c")])if(t[za("0xfc")]){const e=t.getRanges()[za("0x11a")]((t=>za("0x88")!=t[za("0xef")].rootName));if(e.every((t=>s.containsRange(t,!0)))&&t.discard(),e.some((t=>t[za("0x129")](s,!0)))){const t=this._suggestionFactory[za("0x25")](za("0xc5"),n,za("0x41"));return this[za("0x8d")]((()=>t([s],null,o))),null}}else{const e=s[za("0x9b")](t.getFirstRange());null!==e&&t[za("0x0")]([e],null,o)}if(s[za("0x72")](),s.isCollapsed||za("0x88")==s[za("0xef")][za("0x16")])return null;let x=null,a=s[za("0x24")],c=s[za("0x10e")];const l=this[za("0xe5")](s,za("0xc5"));for(const{suggestion:t,meta:e}of l){const n=this[za("0x73")][za("0xf0")](a,c);if(e[za("0x13a")]&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[za("0xa9")]))if(t[za("0xfc")]){if(!tc(t,o))continue;let e=!0;for(const o of t[za("0x21")]()){if(o[za("0x129")](n,!0))return t;n[za("0x129")](o)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[za("0x129")](n,!0))return t;if(!tc(t,o)){n[za("0x129")](e)?t.removeMarkers():e[za("0xbd")](a)?a=e[za("0x10e")]:e[za("0xbd")](c)&&(c=e.start);continue}a=a[za("0x3c")](e[za("0x24")])?a:e[za("0x24")],c=c[za("0xb5")](e[za("0x10e")])?c:e[za("0x10e")],o=Object[za("0xa3")]({},t[za("0x134")]),x?e[za("0x24")].isBefore(x[za("0x30")]()[za("0x24")])?(x[za("0x139")](),x=t):t[za("0x139")]():x=t}}if(x)return this._setSuggestionRange(x,this[za("0x73")].createRange(a,c)),x;{const t=(0,e.uid)(),s=this._model[za("0xf0")](a,c),i=r.id,x=n?za("0xaa")+n:za("0xc5"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0xcc")](x,t,i,s),l}}[za("0x11f")](t,n="multi",o={}){const r=this[za("0x12a")][za("0xd2")][za("0xa2")](za("0x132")).me,s=t[za("0xf9")]((t=>new i.LiveRange(t[za("0x24")],t[za("0x10e")]))),x=new Set;for(const{suggestion:t,meta:e}of this[za("0xe5")](s,za("0x3f")))e[za("0x13a")]&&!e[za("0x6c")]&&x[za("0xc2")](t);for(const e of x)if(e.isMultiRange){const r=e[za("0x21")]();if((!e.attributes||!e[za("0x134")][za("0xd6")])&&r[za("0x27")]((t=>s[za("0x9c")]((e=>e[za("0x129")](t,!0)))))&&e[za("0xba")](),s[za("0x27")]((t=>r[za("0x9c")]((e=>e[za("0x129")](t,!0)))))){const e=this[za("0x9e")][za("0x25")](za("0xc5"),n,"accept");return this[za("0x8d")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(s[za("0x9c")]((e=>e[za("0x129")](t,!0)))&&e[za("0xba")](),s[za("0x27")]((e=>t.containsRange(e,!0)))){const t=this[za("0x9e")][za("0x25")](za("0xc5"),n,"accept");return this[za("0x8d")]((()=>t(s,null,o))),null}}const a=this[za("0x9e")][za("0x25")]("deletion",n,za("0xc8"));let c=null;for(const t of this[za("0xd0")]())if(t[za("0x1d")].id==r.id&&t[za("0x110")]&&za("0xc5")==t[za("0xc7")]&&t[za("0x10f")]==n&&tc(t,o)&&(a(t[za("0x21")](),s)||a(s,t[za("0x21")]())))if(c){if(t[za("0xe6")]&&t[za("0xe6")][za("0xa8")])continue;for(const e of t[za("0x21")]())c[za("0x50")](e)||c.addRange(e);t[za("0x139")]()}else{c=t;for(const e of s)t[za("0x50")](e)||t[za("0x60")](e)}if(c)return c;x[za("0xe0")]();for(const{suggestion:t,meta:e}of this[za("0xe5")](s,za("0xc5")))e.isOwn&&(this[za("0x2e")]||!e.containsRangeInObject&&!e[za("0xa9")])&&tc(t,o)&&x.add(t);for(const t of x){const e=t.getRanges();if((!o||!o[za("0xd6")])&&s[za("0x27")]((t=>e[za("0x9c")]((e=>e[za("0x129")](t,!0))))))return t;(!t[za("0x134")]||!t[za("0x134")].skipNestingCheck)&&e[za("0x27")]((t=>s[za("0x9c")]((e=>e.containsRange(t,!0)))))&&t[za("0xba")]()}const l=(0,e.uid)(),d=r.id,u=za("0xaa")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of s)t[za("0x72")](),t[za("0x115")]||za("0x88")==t[za("0xef")][za("0x16")]||this._addSuggestionMarker(u,l,d,t,Zo[za("0x34")]());return g}[za("0x6d")](t,e){const n=t[za("0x84")]();this[za("0x73")].change((t=>{t[za("0xec")](n,{range:e})}))}[za("0xb9")](t){const e=t.id,n=this[za("0x12a")][za("0x6e")][za("0xa2")](za("0x61"));this[za("0x54")].hasCommentThread(e)||this[za("0x54")][za("0x7")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0x54")][za("0x43")](e);o.unbind("isRemovable"),o[za("0x105")]=!1,t.commentThread=o}[za("0xd1")](t,n,o,r){if(t[za("0xc7")]!=n||t[za("0x10f")]!=o||t[za("0xa")].id!=r)throw this[za("0x12a")].enableReadOnlyMode(za("0x120")),new e.CKEditorError(za("0x120"),this)}[za("0x12f")](t,n){const o=t.getFirstRange();if(n[za("0xe3")](o))t.removeMarkers();else if(o[za("0x129")](n)){const r=this._model[za("0x69")](n.start[za("0x57")],"end");this[za("0x6d")](t,this[za("0x73")][za("0xf0")](o[za("0x24")],r));const s=(0,e.uid)(),i=t[za("0xa")].id,x=t[za("0xc7")]+":"+t[za("0x10f")];this[za("0x90")]({id:s,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x134")]});const a=this[za("0x73")][za("0x69")](n.end.parent,"after"),c=this._model[za("0xf0")](a,o[za("0x10e")]);this[za("0xcc")](x,s,i,c)}else if(o.containsPosition(n[za("0x24")])){const e=this[za("0x73")].createPositionAt(n[za("0x24")].nodeBefore,za("0x10e"));this._setSuggestionRange(t,this[za("0x73")][za("0xf0")](o[za("0x24")],e))}else{const e=this._model[za("0x69")](n.end[za("0x52")],za("0xeb"));this[za("0x6d")](t,this[za("0x73")][za("0xf0")](e,o[za("0x10e")]))}}[za("0xd5")](t){for(const{suggestion:e,meta:n}of this[za("0xe5")](t,za("0x3f"))){if(!n[za("0x13a")])continue;const o=e[za("0x21")]();for(const e of o)if(!t[za("0x4f")](e)[za("0xa8")])return!0}return!1}[za("0x3b")](t){const n=this[za("0x12a")][za("0xd2")].get(za("0x132"))[za("0x135")](t);if(!n)throw new e.CKEditorError(za("0x1f"),this);return n}[za("0x119")](t){const e=this[za("0x12a")].plugins[za("0xa2")](za("0x132")),n=(0,s.hashObject)(za("0xa7")+t);return e[za("0x135")](n)||e.addUser({id:n,name:t})}[za("0x8b")](t,e,n,o,r){const s=this[za("0x3b")](o),i=this[za("0x9e")][za("0x36")](t,e,n,s,r,(t=>this[za("0x29")](n,{attributes:t})));return this[za("0x74")](i,za("0x41"),(()=>{this[za("0x29")](n,{state:za("0x6b")})}),{priority:za("0x10b")}),this[za("0x74")](i,za("0xba"),(()=>{this[za("0x29")](n,{state:za("0x7e")})}),{priority:"high"}),this._suggestions.set(n,i),this[za("0xc9")].set(i,za("0x126")),i}[za("0x53")](t){const e=t[za("0x125")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0xa8")]<5?e[2]:e[3],authorId:e.length<5?e[3]:e[4],markerCount:6==e[za("0xa8")]?e[5]:null}}[za("0x13b")](t,n,o){const r=t[za("0x30")](),s=r[za("0x24")],i=r[za("0x10e")];this[za("0x6d")](t,this[za("0x73")][za("0xf0")](s,n));const x=(0,e.uid)(),a=t[za("0xa")].id,c=t.type+(t[za("0x10f")]?":"+t[za("0x10f")]:"");this[za("0x90")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x134")],data:t[za("0x1")]}),za("0xfb")==t[za("0xc7")]&&(o=this[za("0x73")].createPositionBefore(o[za("0x52")])),this[za("0xcc")](c,x,a,this[za("0x73")].createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this[za("0x12a")][za("0xd2")][za("0xa2")](za("0x132")).me;Array[za("0x2f")](t)||(t=[t]);for(const r of this[za("0xd0")]()){if(!r.isInContent)continue;if(e&&r.type!=e)continue;let s=!1;for(const e of r[za("0x21")]()){for(const i of t){const t=i[za("0x24")][za("0xe3")](e[za("0x10e")])||i[za("0x10e")][za("0xe3")](e.start);if(t||i[za("0x9b")](e)){const x=i[za("0x129")](e)&&Ka(this[za("0x73")][za("0xaf")],e[za("0x24")],i),a=e[za("0x129")](i)&&Ka(this[za("0x73")][za("0xaf")],i[za("0x24")],e);n[za("0x8a")]({suggestion:r,meta:{isOwn:o==r[za("0x1d")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),s=!0;break}}if(s)break}}return n}[za("0xcc")](t,e,n,o,r){this[za("0x73")].change((s=>{let i="suggestion:"+t+":"+e+":"+n;r&&(i=i+":"+r),s[za("0x79")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0x103")],n=t[za("0x1c")];t[za("0x103")]=null,null!=e&&(e[za("0x1c")]=null),t[za("0x1c")]=null,null!=n&&(n[za("0x103")]=null),za("0x2c")==this[za("0xc9")][za("0xa2")](t)&&(this[za("0xc9")][za("0x137")](t,za("0x78")),this[za("0x10a")](za("0x11d"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[za("0xdf")](t);if(this[za("0x106")]&&this[za("0x106")][za("0x89")]){const r=this[za("0x12a")][za("0xd2")][za("0xa2")]("PendingActions"),s=o[za("0x45")],i=o[za("0x10f")]?o[za("0xc7")]+":"+o[za("0x10f")]:o[za("0xc7")],x=this[za("0x12a")][za("0x56")],a=r[za("0xc2")](Yo(x,za("0xe7"))),c={id:n,type:i,hasComments:s,data:t.data||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o.attributes};this[za("0x106")][za("0x89")](c)[za("0x4a")]((t=>{o[za("0xb4")]=!0,r[za("0x13")](a),t&&t[za("0xfe")]&&(this[za("0x116")][za("0xa2")](n)[za("0xfe")]=t[za("0xfe")])})).catch((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor.model[za("0xf1")]({isUndoable:!1},(()=>{o.discard()})),o[za("0xdd")](),this[za("0x116")][za("0xe2")](o.id),this[za("0xc9")].delete(o),t}))}return o}_updateSuggestionData(t,e){const n=this.editor[za("0xd2")][za("0xa2")]("PendingActions"),o=this[za("0x33")](t);if(this[za("0x106")]&&this[za("0x106")][za("0x76")])if(o[za("0xb4")]){const o=n[za("0xc2")](Yo(this.editor[za("0x56")],za("0xe7")));this._adapter[za("0x76")](t,e).then((()=>{n[za("0x13")](o)}))}else o.on("change:_saved",(()=>{this[za("0x29")](t,e)}))}[za("0x95")](t){if(!this[za("0x106")]||!this[za("0x106")][za("0x33")])throw new e.CKEditorError(za("0xc4"),this);return this[za("0x106")][za("0x33")](t)}[za("0x9")](t){const{id:e,type:n,subType:o,authorId:r}=this._splitMarkerName(t),s=this[za("0x116")].get(e)||this[za("0x8b")](n,o,e,r,{});switch(this[za("0xd1")](s,n,o,r),this[za("0xc9")].get(s)){case"notReady":this[za("0x95")](e)[za("0x4a")]((t=>{let n=Promise.resolve();t[za("0x45")]&&(n=this._commentsRepository[za("0x4c")]({channelId:this[za("0x12a")][za("0x6e")][za("0xa2")]("collaboration.channelId"),threadId:e})),n.then((()=>{this[za("0xdf")](t)._saved=!0}))})),this[za("0xc9")].set(s,za("0xb"));break;case"removed":this[za("0x29")](e,{state:"open"});case"dataReady":this[za("0xc9")][za("0x137")](s,za("0x2c")),this[za("0x10a")](za("0x4e"),s);break;case za("0x2c"):this[za("0x10a")](za("0x7d"),s)}return s[za("0x2")](t),s}[za("0x9f")](t){const e=Array.from(t)[za("0x11a")]((t=>!t.isMultiRange)),n=this[za("0xd0")]({skipNotAttached:!0})[za("0x11a")]((t=>!t[za("0xfc")])),o=n[za("0x11a")]((e=>!t[za("0x70")](e))),r=new Map(n.map((t=>[t,this[za("0x9e")][za("0x25")](t[za("0xc7")],t[za("0x10f")],za("0x6a"))]))),s=new Map(n[za("0xf9")]((t=>[t,t[za("0x30")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xa8")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xa8")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[za("0x70")](n)&&n[za("0x103")]&&(n.previous[za("0x1c")]===n&&(n.previous[za("0x1c")]=null),n[za("0x103")]=null),!i[za("0x70")](n)&&n[za("0x1c")]&&(n[za("0x1c")][za("0x103")]===n&&(n[za("0x1c")][za("0x103")]=null),n[za("0x1c")]=null)}function a(t,e,n){for(let o=n;o<e.length;o++){const n=c(t,e[o]);n&&(n[0][za("0x1c")]=n[1],n[1].previous=n[0],i.add(n[0]),x[za("0xc2")](n[1]))}}function c(t,e){if(t[za("0x1d")].id!==e[za("0x1d")].id)return null;const n=r.get(t)(t,e,s[za("0xa2")](t),s[za("0xa2")](e));return n&&r[za("0xa2")](e)(t,e,s[za("0xa2")](t),s.get(e))?n[1].commentThread&&n[1][za("0xe6")][za("0xa8")]?null:n:null}}[za("0xda")](t){const e=Array.from(t),n=this[za("0xd0")]({skipNotAttached:!0}),o=n[za("0x11a")]((e=>!t.has(e))),r=new Map(e.map((t=>[t,this._suggestionFactory.getSuggestionCallback(t[za("0xc7")],t[za("0x10f")],za("0xc8"))]))),s=new Map(n[za("0xf9")]((t=>[t,t.getRanges()])));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("0xa8")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[za("0xc7")]!==e[za("0xc7")]||o[za("0x1d")].id!==e.author.id||o.subType!==e[za("0x10f")])continue;if(!Ya(e,o))continue;const x=r.get(e),a=s[za("0xa2")](e),c=s[za("0xa2")](o),l=e[za("0xe6")]&&e[za("0xe6")][za("0xa8")],d=o[za("0xe6")]&&o[za("0xe6")][za("0xa8")];if(!l&&x(c,a))return t[za("0x124")](o,e),s[za("0xe2")](e),!0;if(!d&&x(a,c))return t[za("0x124")](e,o),s[za("0xe2")](o),!0}return!1}}[za("0x124")](t,e){if(t[za("0xfc")])for(const n of e.getRanges())t[za("0x60")](n);else{const n=e[za("0x30")]()[za("0x10e")];this[za("0x6d")](t,this[za("0x73")][za("0xf0")](t.getFirstRange().start,n))}e.removeMarkers()}}class Va{constructor(t){this[za("0x11")]=t,this[za("0x73")]=t[za("0xe9")],this[za("0x4")]=new Map,this[za("0x68")]=new Map,this._registerDefaultCallbacks()}[za("0x36")](t,e,n,o,r,s){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:r,onAttributesChange:s,onAccept:(...n)=>this.getSuggestionCallback(t,e,za("0x41"))(...n),onDiscard:(...n)=>this[za("0x25")](t,e,"discard")(...n)})}[za("0x67")](t,e,n,o){const r=t+":"+e+":"+n;this._customCallbacks.set(r,o)}[za("0x25")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x4")][za("0xa2")](o)||this[za("0x68")].get(t+":"+n)}[za("0x31")](){const t=()=>!1,e=t=>{t[za("0x108")](((t,e)=>t[za("0x24")][za("0x3c")](e[za("0x24")])?1:-1)),this[za("0x73")][za("0xf")]((e=>{for(const n of t){let t;t=n[za("0x10e")][za("0x81")]&&n.end[za("0x52")]==n[za("0x24")][za("0xbc")]?e[za("0xdc")](n[za("0x24")].nodeAfter,"on"):e.createSelection(n),this[za("0x73")][za("0x12")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this._model[za("0xf")]((n=>{const{commandName:o,commandParams:r=[]}=e,s=t[za("0xf9")]((t=>(qa(t)&&(t=this[za("0x73")][za("0xf0")](t[za("0x10e")])),t))).filter((t=>za("0x88")!==t[za("0xef")][za("0x16")]));if(s[za("0xa8")]<1)return;const x=Array.from(this._model.document[za("0x40")].getRanges())[za("0xf9")]((t=>i.LiveRange[za("0xea")](t)));n[za("0xa5")](s);for(const t of this[za("0x11")][za("0xed")].commands())t[za("0xb2")]();r[za("0x8a")]({forceDefaultExecution:!0}),this[za("0x11")].execute(o,...r);const a=x[za("0x11a")]((t=>"$graveyard"!=t[za("0xef")][za("0x16")]));a[za("0xa8")]>0&&n[za("0xa5")](a);for(const t of x)t[za("0x72")]()}))},o=(t,e)=>1==t.length&&1==e[za("0xa8")]&&t[0][za("0x10e")][za("0xe3")](e[0][za("0x24")]),r=(t,e,n,o)=>Za(t,e,n,o,this[za("0x73")])?[t,e]:Za(e,t,o,n,this._model)?[e,t]:null;this[za("0x68")][za("0x137")](za("0x113"),t),this[za("0x68")][za("0x137")](za("0x58"),e),this._defaultCallbacks.set("insertion:join",o),this[za("0x68")][za("0x137")](za("0x64"),r),this[za("0x68")].set(za("0x11c"),e),this._defaultCallbacks[za("0x137")](za("0xfa"),t),this[za("0x68")][za("0x137")]("deletion:join",o),this[za("0x68")][za("0x137")](za("0xd3"),r),this[za("0x68")][za("0x137")]("formatInline:accept",n),this._defaultCallbacks.set(za("0x38"),t),this[za("0x68")].set(za("0x2d"),o),this[za("0x68")][za("0x137")](za("0x17"),t),this[za("0x68")][za("0x137")](za("0x13c"),n),this[za("0x68")][za("0x137")](za("0x123"),t),this[za("0x68")].set(za("0x77"),o),this._defaultCallbacks[za("0x137")](za("0x117"),t)}}function Ka(t,e,n){for(const o of e[za("0x52")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[za("0xef")]==o)return!1;if(!n.containsItem(o))return!1;if(t[za("0x15")](o)||t[za("0x37")](o))return!0}return!1}function qa(t){return t[za("0x10e")][za("0x52")]==t[za("0x24")].nodeAfter&&t[za("0x10e")][za("0x22")]}function Xa(t,e,n,o){const r=t=>!t.item.is("$textProxy")&&!o[za("0x15")](t.item),s=t[za("0x24")][za("0xe")](r),i=t.end[za("0xe")](r,{direction:za("0xfd")});return!(t.start[za("0xe3")](s)&&t.end[za("0xe3")](i)||(s[za("0x3c")](i)?n.updateMarker(e,{range:n.createRange(s,i)}):n.removeMarker(e),0))}function $a(t){return(0,s.hashObject)(t)}function Qa(t){const e=t[za("0x24")][za("0xbc")];return e&&e.is(za("0x2b"))}function Ja(t,e){const n=e[za("0xaf")][za("0x15")](t)||e[za("0xaf")][za("0x4d")](t);return e.createRange(e.createPositionAt(t,za("0xf4")),n?e.createPositionAfter(t):e[za("0x69")](t,"end"))}function Za(t,e,n,o,r){if(!Ya(t,e))return!1;if(n.end[za("0xe3")](o[za("0x24")]))return!0;if(t.type!=e.type)return!1;if(!n.end[za("0xae")](o[za("0x24")]))return!1;const s=r[za("0xf0")](n.end,o[za("0x24")])[za("0xf6")]();for(const t of s)if([za("0x85"),"elementEnd"].includes(t[za("0xc7")])&&r[za("0xaf")].isLimit(t[za("0x97")]))return!1;return!0}function Ya(t,e){return!(!t[za("0x109")]||!e[za("0x109")])&&Go(t[za("0x134")],e.attributes)}function tc(t,e){const n=ec(t[za("0x134")]),o=ec(e);if(!t[za("0x109")])return!1;for(const t of Object[za("0x6")](o))if(!Go(n[t],o[t]))return!1;return!0}function ec(t){const e=Object[za("0xa3")]({},t);return delete e[za("0xd6")],delete e.tablePasteChainId,e}const nc=["_removePendingAction","commentThreadController","isDirty","stopListening","_discardCommand","isEnabled","view","listenTo","commands","PendingActions","unbind","plugins","execute","_setPendingAction","acceptSuggestion","discardSuggestion","canAccept","get","add","locale","canDiscard","change:isDirty","getRanges","model","canEditAt","remove","_pendingAction","bind","_acceptCommand","destroy","_editor"];var oc,rc;oc=nc,rc=284,function(t){for(;--t;)oc.push(oc.shift())}(++rc);const sc=function(t,e){return nc[t-=0]};class ic extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[sc("0x12")]=e,this[sc("0x1")]=n,this[sc("0x1b")]=o,this[sc("0x19")]=t,this._acceptCommand=t[sc("0x3")][sc("0xc")](sc("0x9")),this[sc("0x1e")]=t[sc("0x3")][sc("0xc")](sc("0xa")),this.view[sc("0x16")](sc("0x0")).to(this[sc("0x17")],this[sc("0x1e")],((t,e)=>t||e)),this[sc("0x1")][sc("0x16")](sc("0xb")).to(this[sc("0x17")],"isEnabled",(t=>t&&this[sc("0x19")][sc("0x12")][sc("0x13")](e[sc("0x11")]()))),this[sc("0x1")][sc("0x16")](sc("0xf")).to(this[sc("0x1e")],sc("0x0"),(t=>t&&this[sc("0x19")][sc("0x12")][sc("0x13")](e[sc("0x11")]()))),this[sc("0x15")]=null,n.isDirty&&this[sc("0x8")](),this[sc("0x2")](n,sc("0x9"),(()=>this[sc("0x9")]())),this[sc("0x2")](n,sc("0xa"),(()=>this.discardSuggestion())),this.listenTo(n,sc("0x10"),(()=>{n[sc("0x1c")]?this._setPendingAction():this[sc("0x1a")]()}))}[sc("0x9")](){this[sc("0x17")][sc("0x7")](this[sc("0x12")].id)}[sc("0xa")](){this._discardCommand[sc("0x7")](this.model.id)}destroy(){this[sc("0x1")][sc("0x5")]("isEnabled"),this[sc("0x1")][sc("0x5")]("canAccept"),this[sc("0x1")].unbind(sc("0xf")),this[sc("0x1d")](),this[sc("0x1b")][sc("0x18")](),this._pendingAction&&this[sc("0x1a")]()}[sc("0x8")](){const t=Yo(this[sc("0x19")][sc("0xe")],"PENDING_ACTION_SUGGESTION");this._pendingAction=this[sc("0x19")].plugins[sc("0xc")](sc("0x4"))[sc("0xd")](t)}[sc("0x1a")](){null!==this._pendingAction&&this[sc("0x19")][sc("0x6")][sc("0xc")]("PendingActions")[sc("0x14")](this._pendingAction),this[sc("0x15")]=null}}const xc=["removeComment","fire","descriptionParts","assign","commentsListView","isActive","_model","locale","_localUser","destroy","isReadOnly","commentThreadInputView","commentThread","isDirty","editor","submit","commentInputView","delegate","_config","setData","_createCommentViews","addComment","focus","authoredAt","updateComment","set","bind","editorConfig","showInput","length","canDiscard","value","hasDirtyComment","_createCommentThreadInputView","element"];var ac,cc;ac=xc,cc=240,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends r.View{constructor(t,e,n,o){super(t),this[lc("0x9")]=null,this[lc("0x10")]=null,this[lc("0x1e")](lc("0xa"),!1),this.set(lc("0x1c"),e[lc("0x1c")]),this.bind(lc("0x1c")).to(e),this[lc("0x1e")](lc("0x7"),[]),this[lc("0x1e")](lc("0x12"),!1),this[lc("0x1e")]("isEnabled",!1),this[lc("0x1e")]("canAccept",!1),this[lc("0x1e")](lc("0x0"),!1),this[lc("0xb")]=e,this[lc("0xd")]=n,this[lc("0x17")]=o,o.disableComments?this[lc("0x1e")](lc("0x22"),1):this[lc("0x19")]()}[lc("0x1b")](){this[lc("0x4")][lc("0x1b")]()}destroy(){this[lc("0x9")]&&this[lc("0x9")].destroy(),this.commentThreadInputView&&this[lc("0x10")][lc("0xe")](),super[lc("0xe")]()}[lc("0x19")](){const{CommentsListView:t}=this[lc("0x17")];this[lc("0x9")]=new t(this[lc("0xc")],this[lc("0xb")][lc("0x11")],Object[lc("0x8")]({CommentView:this[lc("0x17")].CommentView},this[lc("0x17")])),this.commentsListView[lc("0x16")](lc("0x5")).to(this),this[lc("0x9")][lc("0x16")](lc("0x1d")).to(this),this[lc("0x9")][lc("0x1f")](lc("0xa")).to(this),this[lc("0x1e")]("length",this[lc("0x9")][lc("0x22")]+1),this[lc("0x1f")](lc("0x22")).to(this[lc("0x9")],lc("0x22"),(t=>t+1)),this[lc("0x10")]=this[lc("0x3")](),this.on("removeComment",(()=>this.focus())),this.bind(lc("0x12")).to(this.commentsListView,lc("0x2"),this[lc("0x10")][lc("0x15")],"value",((t,e)=>t||!!e))}[lc("0x3")](){const{CommentThreadInputView:t}=this[lc("0x17")],e=new t(this.locale,this[lc("0xd")],this[lc("0x17")][lc("0x20")]),n=e[lc("0x15")];return e[lc("0x1f")](lc("0x21")).to(this,lc("0xa"),this[lc("0xb")][lc("0x11")],"isReadOnly",n,lc("0x1"),((t,e,n)=>!!n||t&&!e)),n.on(lc("0x14"),((t,e)=>{this[lc("0x6")](lc("0x1a"),e),n[lc("0x13")][lc("0x18")]("")})),n.on("cancel",(()=>this[lc("0x1b")]())),n.bind("disabledSubmit").to(this[lc("0xb")][lc("0x11")],lc("0xf")),e}}const uc=["_descriptionElement","fire","discardButton","commentsListView","importWord","getTemplate","getExternalSuggestionNote","innerText","editorReady","</span>","getUserViewNotificationText","ck-suggestion","div","ck-annotation__info-time","span","canAccept","author","ck-suggestion__user","join","_createButton","ck-suggestion__main","ck-suggestion--discard","ck-suggestion__info","locale","EXTERNAL_IMPORT_WORD_AVATAR","element","_config","bind","check","ck-annotation","execute","ck-annotation__user","querySelector","_model","EXTERNAL_AVATAR","setTemplate","description","change:description","title","set","ck-suggestion-wrapper--active","value","ck-annotation__main","push","commentThreadInputView","source","delegate","bindTemplate","commentThread","ck-suggestion-wrapper","ck-suggestion--disabled-comments","canDiscard",'" title="',"acceptSuggestion",'<span class="ck-suggestion-color" style="background-color: ',"Accept suggestion","name","</p>","children","discardSuggestion","ck-annotation__info-name",'<span class="ck-suggestion-type">',"acceptButton","isActive","@external","EXTERNAL_SUGGESTION","innerHTML","creator","authoredAt","attributes","isExternal","type","ck-suggestion-","ck-annotation__info",".ck-annotation__content-wrapper","disableComments","ck-annotation__actions","isEnabled","render","userView","content","ck-suggestion__info-name","descriptionParts"];var gc,mc;gc=uc,mc=224,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,r){super(e,n,o,r),this[fc("0x40")]("type",""),this[fc("0x34")](fc("0xd")).to(this,fc("0x18"),(t=>t&&t[0]?t[0][fc("0xd")]:"")),this[fc("0x34")](fc("0x3d")).to(this,fc("0x18"),this,fc("0x5"),((t,e)=>{let n="";for(const e of t)n+="<p>"+pc(e[fc("0x16")],e.color)+fc("0x52");return e?n:(0,s.trimHtml)(n,{limit:140})})),this[fc("0x19")]=null,this.acceptButton=this[fc("0x2c")](Yo(e,fc("0x50")),t.icons[fc("0x35")],"ck-suggestion--accept",fc("0x4e"),"sw"),this[fc("0x4")][fc("0x34")](fc("0x13")).to(this,fc("0x28")),this[fc("0x1b")]=this[fc("0x2c")](Yo(e,"Discard suggestion"),t.icons.cancel,fc("0x2e"),fc("0x1"),"sw"),this.discardButton[fc("0x34")]("isEnabled").to(this,fc("0x4c")),this[fc("0x15")]=new s.UserView(e,this[fc("0x3a")][fc("0x29")],this[fc("0x23")]()),this.userView.extendTemplate({attributes:{class:[fc("0x2a"),fc("0x38")]}}),this[fc("0x3c")](this.getTemplate())}[fc("0x1e")](){const t=this[fc("0x48")],e=[{tag:fc("0x25"),attributes:{class:[fc("0x2f"),fc("0xf")]},children:[{tag:fc("0x27"),children:[{text:this.userView[fc("0x51")]}],attributes:{class:[fc("0x17"),fc("0x2")]}},{tag:"time",attributes:{datetime:t.to(fc("0xa")),class:["ck-comment__info-time",fc("0x26")]},children:[{text:t.to(fc("0xa"),(t=>this[fc("0x33")].formatDateTime(t)))}]}]},{tag:fc("0x25"),attributes:{class:["ck-suggestion__actions",fc("0x12")]},children:[this[fc("0x4")],this[fc("0x1b")]]},{tag:fc("0x25"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[fc("0xc")]&&e[fc("0x44")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[fc("0x1f")]()}]});const n={tag:fc("0x25"),attributes:{class:[fc("0x4a"),t.if(fc("0x5"),fc("0x41")),t.to(fc("0xd"),(t=>fc("0xe")+t)),this[fc("0x33")][fc("0x11")]&&fc("0x4b")],"data-suggestion-id":this[fc("0x3a")].id,"data-thread-id":this[fc("0x3a")][fc("0x49")].id,"data-author-id":this._model[fc("0x29")].id,tabindex:-1},children:[{tag:fc("0x25"),attributes:{class:[fc("0x24"),fc("0x36")]},children:[this[fc("0x15")],{tag:fc("0x25"),attributes:{class:[fc("0x2d"),fc("0x43")]},children:e}]}]};return this[fc("0x1c")]&&this.commentThreadInputView&&(n[fc("0x0")][fc("0x44")](this.commentsListView,this.commentThreadInputView),this[fc("0x1c")][fc("0x47")](fc("0x21")).to(this),this[fc("0x1c")][fc("0x47")]("editorDestroyed").to(this),this[fc("0x45")][fc("0x47")](fc("0x21")).to(this),this[fc("0x45")][fc("0x47")]("editorDestroyed").to(this)),n}[fc("0x14")](){super[fc("0x14")](),this[fc("0x19")]=this[fc("0x32")][fc("0x39")](fc("0x10")),this[fc("0x19")][fc("0x8")]=this[fc("0x3d")],this.on(fc("0x3e"),((t,e,n)=>{this[fc("0x19")][fc("0x8")]=n}))}[fc("0x2c")](t,e,n,o,s){const i=new r.ButtonView(this[fc("0x30")]);return i[fc("0x40")]({label:t,icon:e,tooltip:!0,tooltipPosition:s}),i.extendTemplate({attributes:{class:n}}),i.on(fc("0x37"),(()=>{this[fc("0x1a")](o,this[fc("0x3a")].id)})),i}[fc("0x1f")](){return fc("0x1d")===this[fc("0x3a")][fc("0xb")][fc("0x6")][fc("0x46")]?Yo(this[fc("0x30")],"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,fc("0x7"))}[fc("0x23")](){return this._model[fc("0xc")]?"importWord"===this[fc("0x3a")].attributes[fc("0x6")].source?Yo(this[fc("0x30")],fc("0x31"),this._model[fc("0x9")][fc("0x51")]):Yo(this[fc("0x30")],fc("0x3b"),this[fc("0x3a")].creator[fc("0x51")]):null}}function pc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?fc("0x3")+bc(t)+fc("0x22"):bc(t)))[fc("0x2b")](""),e&&(n+=fc("0x4f")+e[fc("0x42")]+fc("0x4d")+e[fc("0x3f")]+'"></span>'),n}function bc(t){const e=document.createElement("span");return e[fc("0x20")]=t,e[fc("0x8")]}const Ec=["getByInnerView","discardAllSuggestions","activeMarkers","length","Discard all selected suggestions","add","_updateController","isDirty","execute","locale","registerAnnotation","CommentsRepository","_refreshActiveMarkers","_handleSuggestionControllerDelayed","bind","values","separator","getSuggestion","comments.maxCommentsWhenCollapsed","trackChanges.disableComments","requires","trackChanges","hasSuggestion","suggestionLoaded","isOn","commandName","createAnnotationView","view","suggestionUnloaded","comments.maxCommentCharsWhenCollapsed","buttonView","refreshSelectedViews","suggestion-","isInContent","editing","destroy","get","arrowView","getJoined","acceptAllSuggestions","acceptSelectedSuggestions","_initializeController","focus","descriptionParts","comments.maxThreadTotalWeight","_viewToController","_disableComments","componentFactory","TrackChangesEditing","keys","map","SuggestionThreadView","unbind","getMarkerNames","clear","push","addComment","set","mainView","plugins","_destroyController","_createUIButton","_annotationViews","EditorAnnotations","reduce","filter","Annotations","value","commands","button","discardSelectedSuggestions","from","createAnnotation","innerView","commentThread","delete","size","config","_bindAnnotationToEditors","switchbutton","getFirstRange","has","model","editor","isMultiRange","lowest","_descriptionFactory","activeAnnotations","CommentView","change:activeAnnotations","suggestionChanged","source","head","pluginName","getRanges","listenTo","change:previous","discardButton","getMarkers","actionView","isEnabled","getAllAdjacentSuggestions","_handleControllerBuffer","type","trackChanges.SuggestionThreadView","_suggestionToController","Accept all suggestions","createCommentThreadController"];var _c,Tc;_c=Ec,Tc=400,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("0x34")](){return[Wa,s.Users,Cc("0x2b"),Cc("0x62"),Cc("0x5f")]}static get[Cc("0x11")](){return"TrackChangesUI"}constructor(t){super(t),this[Cc("0x1d")]=new Map,this[Cc("0x4d")]=new Map,this[Cc("0x5e")]=new Map,this[Cc("0x1a")]=new Map;const e=this[Cc("0x7")][Cc("0x1")];e.define(Cc("0x1c"),hc),e.define("trackChanges.disableComments",!1),this[Cc("0x4e")]=e[Cc("0x44")](Cc("0x33"))}[Cc("0x2d")](t,e){0===this[Cc("0x1a")][Cc("0x0")]&&setTimeout((()=>{for(const[t,e]of this[Cc("0x1a")]){const n=this[Cc("0x1d")][Cc("0x5")](t);n||e?n&&e&&this._destroyController(t):this[Cc("0x49")](t)}this[Cc("0x7")][Cc("0x5b")][Cc("0x44")]("EditorAnnotations")[Cc("0x3f")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Cc("0x56")]()}),10),this[Cc("0x1a")][Cc("0x59")](t,e)}init(){const t=this.editor,e=t[Cc("0x5b")].get("TrackChangesEditing"),n=t[Cc("0x5b")][Cc("0x44")](Cc("0x62")),o=t.plugins[Cc("0x44")]("EditorAnnotations"),r=t[Cc("0x5b")][Cc("0x44")](Cc("0x2b"));t.ui[Cc("0x4f")][Cc("0x25")]("trackChanges",(t=>this[Cc("0x5d")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Cc("0x67")](this[Cc("0x1d")])){const o=e[Cc("0x19")](),r=[];for(const t of o){if(!t[Cc("0x41")])continue;if(t[Cc("0x8")]){r[Cc("0x57")](...t[Cc("0x12")]());continue}const e=t[Cc("0x4")]();if(r[Cc("0x23")]>0){const t=r[0][Cc("0x46")](e);if(t){r[0]=t;continue}}r[Cc("0x57")](e)}t[Cc("0x57")]([n.view,r])}return t})),this[Cc("0x13")](e,Cc("0x37"),((t,e)=>{this[Cc("0x13")](e,Cc("0x14"),((t,n,o,r)=>{e.isInContent&&(null==o?(this[Cc("0x26")](r[Cc("0x10")]),this[Cc("0x2d")](e,!1)):(this[Cc("0x26")](o.head),this[Cc("0x2d")](e,!0)))})),null===e.previous?this._handleSuggestionControllerDelayed(e,!1):this[Cc("0x26")](e[Cc("0x10")])})),this[Cc("0x13")](e,Cc("0x3c"),((t,e,n)=>{this.stopListening(e,"change:previous"),this[Cc("0x1a")][Cc("0x6b")](e);const o=n?n.head:e,r=this._suggestionToController[Cc("0x44")](o);null!==n&&this[Cc("0x26")](o),null===n&&r&&this[Cc("0x5c")](e)})),this[Cc("0x13")](e,Cc("0xe"),((t,e)=>{this[Cc("0x26")](e)})),this[Cc("0x13")](n,Cc("0xd"),(()=>{this[Cc("0x2c")]()})),this[Cc("0x13")](r,Cc("0x58"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Cc("0x36")](n))return;const r=e[Cc("0x31")](n);this[Cc("0x1d")].get(r)[Cc("0x3b")].focus()}),{priority:Cc("0x9")})}_refreshActiveMarkers(){const t=this[Cc("0x7")].plugins[Cc("0x44")]("Annotations"),e=this.editor[Cc("0x5b")].get(Cc("0x50")),n=Array[Cc("0x67")](t[Cc("0xb")],(t=>t[Cc("0x69")]))[Cc("0x61")]((t=>this._viewToController[Cc("0x5")](t))),o=[];for(const t of n){const e=this[Cc("0x4d")][Cc("0x44")](t).model[Cc("0x19")]();o[Cc("0x57")](...e[Cc("0x60")](((t,e)=>[...t,...e[Cc("0x55")]()]),[]))}e[Cc("0x22")]=o}_createUIButton(t){const n=(0,r.createDropdown)(t,r.SplitButtonView),o=this[Cc("0x7")][Cc("0x64")][Cc("0x44")](Cc("0x35")),s=Yo(t,"Track changes");n[Cc("0x3e")][Cc("0x59")]({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("0x3e")].bind(Cc("0x38")).to(o,Cc("0x63")),n[Cc("0x3e")].on(Cc("0x28"),(()=>{o.execute(),this[Cc("0x7")].editing.view[Cc("0x4a")]()}));const i=new e.Collection,x=[{type:Cc("0x3"),model:{withText:!0,label:s,commandName:"trackChanges"}},{type:Cc("0x30")},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x1e")),commandName:Cc("0x47")}},{type:Cc("0x65"),model:{withText:!0,label:Yo(t,"Accept all selected suggestions"),commandName:Cc("0x48")}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:Cc("0x21")}},{type:"button",model:{withText:!0,label:Yo(t,Cc("0x24")),commandName:Cc("0x66")}}];for(const t of x){let e={type:Cc("0x30")};if(t[Cc("0x6")]){const n=new r.Model(t[Cc("0x6")]),o=this[Cc("0x7")][Cc("0x64")].get(n.commandName);n[Cc("0x2e")](Cc("0x38"),Cc("0x18")).to(o,Cc("0x63"),Cc("0x18")),e={type:t[Cc("0x1b")],model:n}}i[Cc("0x25")](e)}(0,r.addListToDropdown)(n,i);const a=x[Cc("0x61")]((t=>null!=t[Cc("0x6")]))[Cc("0x52")]((t=>this[Cc("0x7")].commands[Cc("0x44")](t[Cc("0x6")][Cc("0x39")]))),c=n[Cc("0x3e")];return c[Cc("0x17")][Cc("0x54")]("isEnabled"),c[Cc("0x45")][Cc("0x54")](Cc("0x18")),c[Cc("0x17")][Cc("0x2e")](Cc("0x18")).to(o,Cc("0x18")),c[Cc("0x45")][Cc("0x2e")](Cc("0x18")).toMany(a,Cc("0x18"),((...t)=>t.some((t=>t)))),n.on(Cc("0x28"),(t=>{this[Cc("0x7")][Cc("0x28")](t[Cc("0xf")][Cc("0x39")]),this[Cc("0x7")][Cc("0x42")][Cc("0x3b")][Cc("0x4a")]()})),n}_initializeController(t){const e=this[Cc("0x7")],n=e[Cc("0x1")],o=e[Cc("0x5b")][Cc("0x44")](Cc("0x62")),r=e.plugins[Cc("0x44")](Cc("0x2b")),i=e[Cc("0x5b")].get(Cc("0x5f")),x=e[Cc("0x5b")].get(s.Users).me,a=n[Cc("0x44")](Cc("0x35"))[Cc("0x53")],{CommentsListView:c,CommentThreadInputView:l}=e[Cc("0x5b")][Cc("0x44")]("CommentsUI");let d,u;this[Cc("0x5e")].has(t.id)?(u=this[Cc("0x5e")][Cc("0x44")](t.id),d=u.mainView):(d=new a(e.locale,t,x,{disableComments:this[Cc("0x4e")],editorConfig:n[Cc("0x44")]("comments.editorConfig"),maxCommentsWhenCollapsed:n[Cc("0x44")](Cc("0x32")),maxThreadTotalWeight:n[Cc("0x44")](Cc("0x4c")),maxCommentCharsWhenCollapsed:n[Cc("0x44")](Cc("0x3d")),formatDateTime:(0,s.getDateTimeFormatter)(n[Cc("0x44")](Cc("0x29"))),CommentView:n[Cc("0x44")]("comments")[Cc("0xc")],CommentsListView:c,CommentThreadInputView:l}),d.acceptButton.on(Cc("0x28"),(()=>{e[Cc("0x42")][Cc("0x3b")][Cc("0x4a")]()})),d[Cc("0x15")].on(Cc("0x28"),(()=>{e[Cc("0x42")][Cc("0x3b")][Cc("0x4a")]()})),u=o[Cc("0x3a")](this[Cc("0x7")][Cc("0x29")],d),u[Cc("0x2e")](Cc("0x27")).to(d,"isDirty"),u[Cc("0x2e")](Cc("0x23")).to(d),u[Cc("0x2e")](Cc("0x1b")).to(d,Cc("0x1b"),(t=>Cc("0x40")+t)),this[Cc("0x5e")][Cc("0x59")](t.id,u));const g=r[Cc("0x1f")](t[Cc("0x6a")],d),m=new ic(e,t,d,g),f=t.getAllAdjacentSuggestions().filter((t=>t[Cc("0x41")]));d[Cc("0x4b")]=e[Cc("0x5b")][Cc("0x44")](Cc("0x50"))[Cc("0xa")].getDescriptions(f),this[Cc("0x1d")][Cc("0x59")](t,m),this[Cc("0x4d")][Cc("0x59")](d,m);const h=o[Cc("0x68")]({view:u,target:()=>{const n=[],o=t[Cc("0x19")]()[Cc("0x61")]((t=>t[Cc("0x41")]));for(const t of o)n[Cc("0x57")](...t[Cc("0x16")]());return(0,s.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>Cc("0x40")+m[Cc("0x3b")][Cc("0x1b")]});r[Cc("0x2")](d,h),o[Cc("0x25")](h),i[Cc("0x2a")](h)}[Cc("0x5c")](t){const e=this.editor[Cc("0x5b")][Cc("0x44")](Cc("0x62")),n=this[Cc("0x1d")][Cc("0x44")](t),o=n.view,r=e[Cc("0x20")](o);r&&e.remove(r),this[Cc("0x1d")].delete(t),this[Cc("0x4d")].delete(o),n[Cc("0x43")]()}[Cc("0x26")](t){if(!t[Cc("0x41")]||!this[Cc("0x1d")][Cc("0x5")](t))return;const e=this[Cc("0x7")][Cc("0x5b")][Cc("0x44")](Cc("0x50")),n=this[Cc("0x1d")][Cc("0x44")](t),o=t[Cc("0x19")]();n[Cc("0x3b")][Cc("0x4b")]=e[Cc("0xa")].getDescriptions(o)}[Cc("0x43")](){for(const t of this._suggestionToController[Cc("0x51")]())this[Cc("0x5c")](t);for(const t of this[Cc("0x5e")][Cc("0x2f")]())t[Cc("0x5a")][Cc("0x43")]();super[Cc("0x43")]()}}var kc,Ac,vc=["getSuggestions","TrackChanges","plugins","addSuggestionData","adapter","get","getSuggestion","editor","Comments","requires","addSuggestion","pluginName"];kc=vc,Ac=292,function(t){for(;--t;)kc.push(kc.shift())}(++Ac);var Rc=function(t,e){return vc[t-=0]};class Sc extends t.Plugin{static get[Rc("0x5")](){return[Wa,yc,Rc("0x4")]}static get[Rc("0x7")](){return Rc("0x9")}set[Rc("0x0")](t){this.editor.plugins[Rc("0x1")](Wa)[Rc("0x0")]=t}get[Rc("0x0")](){return this[Rc("0x3")][Rc("0xa")][Rc("0x1")](Wa)[Rc("0x0")]}[Rc("0x6")](t){return this.editor[Rc("0xa")][Rc("0x1")](Wa)[Rc("0xb")](t)}[Rc("0x8")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Rc("0x3")].plugins[Rc("0x1")](Wa)[Rc("0x8")]({skipNotAttached:t,toJSON:e})}[Rc("0x2")](t){return this.editor[Rc("0xa")][Rc("0x1")](Wa)[Rc("0x2")](t)}}const Ic=["Users","requires","end","plugins","getRootNames","addSuggestionData","getRootsAttributes","trackChangesData","discardAllSuggestions","addUser","getSuggestions","CommentsRepository","document","div","constructor","users","set","createDocumentFragment","result","pluginName","rootsAttributes","reduce","editor","get","map","define","track-changes-data-invalid-editor-creator","execute","function","useAnonymousUser","TrackChangesEditing","acceptAllSuggestions","create","_adapter","appendChild","data","model","config","trackChangesData.editorCreator","init","push","createElement","Pagination","editorCreator"];var Lc,Nc;Lc=Ic,Nc=182,function(t){for(;--t;)Lc.push(Lc.shift())}(++Nc);const wc=function(t,e){return Ic[t-=0]},Mc=[wc("0x24")];class Oc extends t.Plugin{static get[wc("0x27")](){return[Wa]}static get pluginName(){return"TrackChangesData"}[wc("0x21")](){const t=this[wc("0x10")];if(t[wc("0x1f")][wc("0x13")](wc("0x20"),(e=>{const n=t[wc("0x1e")].document[wc("0x2a")]()[wc("0xf")](((t,e)=>(t[e]="",t)),{});return t[wc("0x8")][wc("0x1a")](n,e)})),wc("0x16")!=typeof t.config[wc("0x11")](wc("0x1")).editorCreator)throw new e.CKEditorError(wc("0x14"))}getDataWithAcceptedSuggestions(t){return Dc(this[wc("0x10")],!0,t)}getDataWithDiscardedSuggestions(t){return Dc(this[wc("0x10")],!1,t)}}class Fc extends t.Plugin{static get[wc("0xd")](){return"TrackChangesDataGetter"}constructor(t){super(t),this[wc("0xc")]=wc("0x28")}[wc("0x21")](){this[wc("0x10")][wc("0x29")][wc("0x11")](wc("0x5"))[wc("0x1b")]={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.editor[wc("0x29")][wc("0x11")]("TrackChangesEditing")[wc("0x1b")]=null}}function Pc(t){return void 0!==t[wc("0x0")]}async function Dc(t,e,n){const o=(0,s.sanitizeEditorConfig)(t,Mc);o[wc("0x29")][wc("0x22")](Wa,Fc),o[wc("0xe")]=Pc(t)?t.getRootsAttributes():void 0;const r=document[wc("0xb")](),i=t.config.get("trackChangesData")[wc("0x25")],x=await i(o,(()=>function(t){const e=document[wc("0x23")](wc("0x7"));return t[wc("0x1c")](e),e}(r)));!function(t,e){const n=t[wc("0x1e")][wc("0x6")][wc("0x2a")]()[wc("0xf")](((e,n)=>(e[n]=t.data[wc("0x11")]({rootName:n}),e)),{}),o=t.plugins.get(wc("0x26"))[wc("0x9")][wc("0x12")]((t=>({id:t.id,name:t.name}))),r=t.plugins.get(wc("0x18"))[wc("0x4")]({skipNotAttached:!0,toJSON:!0}),s=e[wc("0x29")].get(wc("0x26")),i=e.plugins[wc("0x11")](wc("0x18"));for(const t of o)s.getUser(t.id)||s[wc("0x3")](t);s.me||s[wc("0x17")]();for(const t of r)i[wc("0x2b")](t);e[wc("0x1d")][wc("0xa")](n)}(t,x),x[wc("0x15")](wc(e?"0x19":"0x2"));const a=Pc(x)?x.getFullData(n):x[wc("0x1d")][wc("0x11")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|