@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231015.0 → 0.0.0-nightly-20231016.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.
@@ -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:()=>hc,TrackChanges:()=>wc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","editor","_isEnabledBasedOnSelection","forceDisabled","commands","_enableCommands","refresh","_disableUnsupportedCommands","value","isEnabled","TrackChangesCommand","_enabledCommands","affectsData","execute"];var c,l;c=a,l=275,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("0x2")]=e,this.value=!1,this[d("0xb")](),this[d("0x7")]=!1}[d("0xb")](){this[d("0x0")]=!0}[d("0x4")](){this.value=!this[d("0xd")],this[d("0xd")]?this._disableUnsupportedCommands():this[d("0xa")]()}[d("0xc")](){for(const t of this[d("0x6")][d("0x9")][d("0x9")]())t[d("0x3")]&&!this._enabledCommands[d("0x5")](t)&&t[d("0x8")](d("0x1"))}[d("0xa")](){for(const t of this[d("0x6")][d("0x9")][d("0x9")]())t[d("0x3")]&&!this[d("0x2")][d("0x5")](t)&&t.clearForceDisabled(d("0x1"))}}const g=["_isEnabledBasedOnSelection","_suggestions","plugins","TrackChangesEditing","track-changes-accept-suggestion-not-found","editor","execute","refresh","getRanges","get","acceptSuggestion","canEditAt","isEnabled"];var m,f;m=g,f=194,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("0x2")]=e,this[h("0x8")](),this[h("0x1")]=!1}[h("0x8")](){this[h("0x0")]=!0}[h("0x7")](t){const n=this._suggestions[h("0xa")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x9")]();this[h("0x6")].model[h("0xc")](o)&&this[h("0x6")][h("0x3")][h("0xa")](h("0x4"))[h("0xb")](n)}}const b=["execute","isEnabled","discardSuggestion","_suggestions","getRanges","TrackChangesEditing","refresh","editor","plugins","canEditAt","get","model","_isEnabledBasedOnSelection"];var E,_;E=b,_=215,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.refresh(),this[T("0x5")]=!1}[T("0xc")](){this[T("0x7")]=!0}[T("0x6")](t){const n=this[T("0x9")][T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x0")][T("0x4")][T("0x2")](o)&&this[T("0x0")][T("0x1")][T("0x3")](T("0xb"))[T("0x8")](n)}}const y=["getRanges","createRange","createPositionAfter","isObject","replace","end","isCollapsed","deletion","isArray","isMultiRange"," [color ","isTouching","type","start","execute","map","join","isIntersecting","createPositionBefore","change","value","add","color","next","createPositionAt","from"];var k,A;k=y,A=353,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)=>"deletion"==t[v("0x17")]&&v("0x12")!=e.type?-1:v("0x12")!=t[v("0x17")]&&v("0x12")==e[v("0x17")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x3")](i)),S(e,i,x)||(s.push(e[v("0xc")](n,r[v("0xe")](i)?e[v("0xd")](i):e[v("0x9")](i,"end"))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),s=t[v("0x3")](n);return o[v("0x16")](s)}function L(t,e,n){for(;n.length;){const o=n.splice(0,100);t[v("0x4")]((()=>{for(const t of o)t.isInContent&&e[v("0x19")](t.id)}))}}const N=["model","isEnabled","values","from","_command","some","_suggestions","editor","_isEnabledBasedOnSelection","execute","canEditAt"];var M,w;M=N,w=279,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x2")]=n,this.refresh(),this[O("0x4")]=!1}refresh(){const t=Array[O("0xa")](this[O("0x2")][O("0x9")]())[O("0x1")]((t=>t.isInContent));this.isEnabled=this[O("0x0")][O("0x8")]&&t}[O("0x5")](){const t=R(Array[O("0xa")](this[O("0x2")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x7")][O("0x6")](t))return}L(this[O("0x3")].model,this._command,t)}}const P=["isEnabled","values","editor","execute","_selectedSuggestions","size","document","_isEnabledBasedOnSelection","from","model","refresh","_suggestions","_command"];var D,B;D=P,B=134,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("0x8")]=e,this[j("0x7")]=n,this[j("0x0")]=new Set,this[j("0x6")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xb")][j("0x5")][j("0x2")].selection,e=Array[j("0x4")](this[j("0x7")][j("0xa")]());this[j("0x0")]=function(t,e){const n=Array[v("0xa")](t[v("0xb")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0xb")]())(e[v("0x2")](n)||t[v("0x11")]&&!s[v("0x14")]&&s[v("0x8")]&&n[v("0x10")][v("0x16")](e[v("0x18")]))&&o[v("0x6")](s);return o}(t,e),this[j("0x9")]=this[j("0x8")].isEnabled&&!!this[j("0x0")][j("0x1")]}[j("0xc")](){const t=R(Array[j("0x4")](this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0xb")][j("0x5")].canEditAt(t))return}L(this[j("0xb")][j("0x5")],this[j("0x8")],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 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 It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const 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 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 Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,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,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.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=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$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?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["isIntersecting","getRanges","_isDataLoaded","removeAttribute","addMarkerName","_onAccept","getItems","_onDiscard","decorate","_onAttributesChange","push","discard","_markerNames","set","removeMarkers","removeMarker","getRange","isInContent","@external","_model","map","get","getMultiRangeId","authoredAt","onAccept","getMarkerNames","next","hasComments","accept","isMultiRange","getFirstMarker","addMarker","change","add","start","getContainedElement","reduce","data","subType","delete","filter","addRange","from","type","size","split","previous","isIntersectingWithRange","creator","length","onAttributesChange","commentThread","onDiscard","markers","attributes","head","setAttribute","getMarkers","author","getFirstRange","createdAt","toJSON"];var $o,Jo;$o=Xo,Jo=179,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[Qo("0x9")]=!1,this.id=e.id,this.type=e[Qo("0x32")],this[Qo("0x2d")]=e[Qo("0x2d")]||null,this[Qo("0x3")]=e.author,this[Qo("0x37")]=e.creator||e[Qo("0x3")],this.isExternal=Boolean(e[Qo("0x3d")]&&e[Qo("0x3d")][Qo("0x19")]),this[Qo("0x2c")]=null,this[Qo("0x1a")]=t,this[Qo("0xc")]=e[Qo("0x1f")],this[Qo("0xe")]=e[Qo("0x3b")],this[Qo("0x10")]=e[Qo("0x39")],this[Qo("0x13")]=new Set,this.createdAt=null,this[Qo("0x14")](Qo("0x1e"),null),this.set("attributes",e[Qo("0x3d")]||{}),this.set("previous",null),this.set(Qo("0x21"),null),this[Qo("0x14")](Qo("0x3a"),null),this[Qo("0x14")]("_saved",!1),this[Qo("0xf")](Qo("0x23")),this.decorate(Qo("0x12"))}get[Qo("0x0")](){let t=this;for(;t[Qo("0x35")];)t=t[Qo("0x35")];return t}get[Qo("0x22")](){return!!this[Qo("0x3a")]&&this.commentThread.length>0}get[Qo("0x24")](){return 0!=this[Qo("0x13")][Qo("0x33")]&&6==Array[Qo("0x31")](this._markerNames)[0][Qo("0x34")](":")[Qo("0x38")]}get[Qo("0x18")](){return null!==this[Qo("0x25")]()}[Qo("0xb")](t){this._markerNames[Qo("0x28")](t)}getMarkerNames(){return Array.from(this[Qo("0x13")])}getMarkers(){return this[Qo("0x20")]()[Qo("0x1b")]((t=>this[Qo("0x1a")][Qo("0x3c")][Qo("0x1c")](t)))[Qo("0x2f")]((t=>t))}[Qo("0x25")](){return this[Qo("0x2")]()[0]||null}removeMarkers(){this[Qo("0x1a")][Qo("0x27")]((t=>{for(const e of this[Qo("0x2")]())t.removeMarker(e)})),this[Qo("0x13")].clear()}removeMarker(t){this[Qo("0x1a")][Qo("0x27")]((e=>{e[Qo("0x16")](t)})),this[Qo("0x13")][Qo("0x2e")](t)}[Qo("0x30")](t){const e="suggestion:"+this[Qo("0x32")]+":"+this.subType+":"+this.id+":"+this[Qo("0x37")].id+":"+Zo[Qo("0x1d")]();this[Qo("0xb")](e),this[Qo("0x1a")][Qo("0x27")]((n=>{n[Qo("0x26")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x36")](t){for(const e of this.getRanges())if(e[Qo("0x7")](t))return!0;return!1}[Qo("0x8")](){return this.getMarkers().map((t=>t[Qo("0x17")]()))}[Qo("0xd")](){return this.getRanges()[Qo("0x2b")](((t,e)=>[...t,...e[Qo("0xd")]()]),[])}[Qo("0x4")](){var t;return(null===(t=this[Qo("0x25")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x2a")](){const t=this[Qo("0x8")]();if(1!=t[Qo("0x38")])return null;const e=t[0],n=e[Qo("0x29")].nodeAfter,o=e.end.nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x23")](){this[Qo("0xc")](this.getRanges(),this[Qo("0x2c")],this[Qo("0x3d")]),this[Qo("0x15")]()}[Qo("0x12")](){this._onDiscard(this.getRanges(),this[Qo("0x2c")],this[Qo("0x3d")]),this[Qo("0x15")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x0")];for(;e;)t[Qo("0x11")](e),e=e.next;return t}[Qo("0x1")](t,e){const n=eo(this[Qo("0x3d")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x3d")]=n,this._onAttributesChange(n))}[Qo("0xa")](t){const e=eo(this[Qo("0x3d")]);qo(e,t),Go(e,this.attributes)||(this[Qo("0x3d")]=e,this[Qo("0x10")](this[Qo("0x3d")]))}[Qo("0x6")](){return{id:this.id,type:this[Qo("0x2d")]?this[Qo("0x32")]+":"+this[Qo("0x2d")]:this[Qo("0x32")],authorId:this[Qo("0x37")].id,createdAt:this[Qo("0x5")],hasComments:this[Qo("0x22")],data:this.data,attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(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=["$1 $2","getFirstRange","push","isInContent","normal","nextSibling","_resolveDescriptionItems","_itemLabels","Object","previousSibling","$textProxy","element","Container","item","_customCallbacks","get","getItemLabel","_addDescriptionItems","start","ELEMENT_SPACE","getDescriptions","label","insertion","text","registerDescriptionCallback","add","*Insert:* %0","elementStart","addObject","registerElementLabel","deletion","checkChild","isEmpty","_locale","getWalker","set","name","_schema","replace","_itemLabelsCallbacks","quantity","matchingCallback","removeContainer","remove","elementEnd","isObject","length","EmptyContainer","indexOf","addEmptyContainer","type","softBreak","$text","*Split:* %0","match","skip","function","isEqual","pop","data","removeEmptyContainer","REPLACE_TEXT","addContainer"];var es,ns;es=ts,ns=140,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x0")]=[],this[os("0x38")]=new Map,this[os("0x19")]=[],this[os("0x17")]=t,this[os("0x13")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t[os("0x20")];n++){const o=t[n];if(!o[os("0x34")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e[os("0x33")](n),s=!0;break}}if(!s){this[os("0x3")](e,o);const s=t[n+1];if(s&&!o[os("0x32")]().end[os("0x2b")](s[os("0x32")]()[os("0x4")])){const t=e[e[os("0x20")]-1],n=os("0x8")==o[os("0x24")]?"add":os("0x1d");t&&"text"==t[os("0x24")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0xa")](t){this[os("0x0")][os("0x33")](t)}[os("0xf")](t,n,o=e.priorities[os("0x35")]){os("0x2a")==typeof t?(0,e.insertToPriorityArray)(this[os("0x19")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x15")](t,n)}[os("0x2")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x1b")](t)){n=e[os("0x7")];break}return n||(n=this[os("0x38")][os("0x1")](t[os("0x16")])),n?n(e):1!==e?e+" "+t[os("0x16")]+"s":""+t.name}_addDescriptionItems(t,e){const n=e.getFirstRange()[os("0x14")](),o=os("0x8")==e.type?"add":os("0x1d");for(const e of n){const s=e[os("0x3e")],r=t[t[os("0x20")]-1];if(s.is(os("0x3b")))r&&r.type[os("0x22")](os("0x3d"))>-1&&t[os("0x2c")](),r&&os("0x9")==r.type?r[o]+=s[os("0x2d")]:t[os("0x33")]({type:os("0x9"),add:os("0xb")==o?s[os("0x2d")]:"",remove:os("0x1d")==o?s.data:""});else if(this[os("0x17")][os("0x1f")](s)){const i=s;if(r&&r[os("0x24")][os("0x22")](os("0x3d"))>-1&&t[os("0x2c")](),"elementEnd"==e[os("0x24")])continue;r&&r[os("0x24")]==o+"Object"&&r[os("0x3c")][os("0x16")]==i[os("0x16")]?r[os("0x1a")]++:t[os("0x33")]({type:o+os("0x39"),element:i,quantity:1}),n[os("0x29")]((t=>!(os("0x1e")==t[os("0x24")]&&t[os("0x3e")]==s)))}else if(this[os("0x17")][os("0x11")](s,os("0x26"))||s.is(os("0x3c"),os("0x25"))){const n=s;if(os("0xb")==o&&os("0xd")==e[os("0x24")]||os("0x1d")==o&&os("0x1e")==e.type)continue;if(r&&-1==r[os("0x24")].indexOf(os("0x3d"))){os("0x9")==r.type&&(r[o]+="\n");continue}let i;if(i="add"==o?n.nextSibling&&!this._schema[os("0x1f")](n[os("0x36")])?n[os("0x36")]:null:n[os("0x3a")]&&!this[os("0x17")][os("0x1f")](n[os("0x3a")])?n[os("0x3a")]:null,n.isEmpty||i&&i[os("0x12")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x21")&&r[os("0x3c")].name==e.name?r[os("0x1a")]++:t[os("0x33")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x33")]({type:o+"Container",element:n})}}}[os("0x37")](t){const e=this[os("0x13")],n=[];for(const o of t){switch(o[os("0x24")]){case"text":if(o[os("0xb")]=o[os("0xb")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),o[os("0x1d")]=o[os("0x1d")][os("0x18")](/(\S)\u000A+(\S)/g,os("0x31"))[os("0x18")](/\u000A/g,""),""!=o[os("0xb")]&&""!=o.remove){n[os("0x33")]({type:os("0x18"),content:Yo(e,os("0x2f"),['"'+o[os("0x1d")]+'"','"'+o[os("0xb")]+'"'])});continue}if(null!=o[os("0xb")][os("0x28")](/^ +$/)){n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),Yo(e,"ELEMENT_SPACE",o.add[os("0x20")]))});continue}if(null!=o.remove[os("0x28")](/^ +$/)){n[os("0x33")]({type:"deletion",content:Yo(e,"*Remove:* %0",Yo(e,os("0x5"),o[os("0x1d")].length))});continue}if(""!=o[os("0xb")]){n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),'"'+o[os("0xb")]+'"')});continue}n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x1d")]+'"')});continue;case os("0x23"):case os("0xe"):n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue;case os("0x2e"):case"removeObject":n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue;case os("0x30"):n[os("0x33")]({type:os("0x8"),content:Yo(e,os("0x27"),this[os("0x2")](o[os("0x3c")],o.quantity))});continue;case os("0x1c"):n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Merge:* %0",this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue}n[os("0x33")](o)}return n}}const rs=["plugins","showAIAssistant","enableCommand","commands","editor","TrackChangesEditing","get","afterInit"];var is,xs;is=rs,xs=321,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x6")](){const t=this[as("0x3")],e=t[as("0x7")][as("0x5")](as("0x4"));t[as("0x2")].get(as("0x0"))&&e[as("0x1")](as("0x0"))}}const ls=["document","markBlockFormat","contentLanguageDirection","getAttribute","FORMAT_ALIGN_TO_CENTER","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","commandParams","editor","enableCommand","right","*Format:* %0","filter","get","plugins","model","FORMAT_JUSTIFY_TEXT","center","justify","registerDescriptionCallback","selection","value","FORMAT_ALIGN_TO_RIGHT","has","ltr","left","commandName","checkAttribute","from","AlignmentEditing","alignment","locale","format","afterInit"];var ds,us;ds=ls,us=299,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x6")](){const t=this[gs("0xf")],e=t[gs("0x4")];if(!t[gs("0x15")][gs("0x1e")](gs("0x2")))return;const n=t[gs("0x15")][gs("0x14")](gs("0xc"));n[gs("0x10")](gs("0x3"),((e,o={})=>{let s=o[gs("0x1c")];o[gs("0x1c")]||(s=gs("0x1f")===t.locale[gs("0x9")]?gs("0x20"):gs("0x11"));const r=Array[gs("0x1")](this[gs("0xf")][gs("0x16")][gs("0x7")][gs("0x1b")].getSelectedBlocks())[gs("0x13")]((t=>function(t,e,n){const o=t[gs("0xa")](gs("0x3"))||null;return e[gs("0x0")](t,gs("0x3"))&&n!=o}(t,this[gs("0xf")].model.schema,s)));t[gs("0x16")].change((()=>{for(const t of r)n[gs("0x8")](t,{commandName:gs("0x3"),commandParams:[{value:s}]})}))})),n._descriptionFactory[gs("0x1a")]((t=>{const{data:n}=t;if(n&&gs("0x3")==n[gs("0x21")]){const t=n[gs("0xe")][0].value;return{type:gs("0x5"),content:Yo(e,gs("0x12"),function(t){switch(t){case"left":return Yo(e,gs("0xd"));case gs("0x11"):return Yo(e,gs("0x1d"));case gs("0x18"):return Yo(e,gs("0xb"));case gs("0x19"):return Yo(e,gs("0x17"))}}(t))}}}))}}const fs=["addClass","insert","previousPosition","span","push","listIndent","item","markerName","includes","createRangeOn","nextSibling","test","bindElementToMarker","TrackChangesEditing","listItem","ck-suggestion-marker-","parent","name","hasAttribute","elementEnd","isAtEnd","writer","type","ck-suggestion-marker--active","element","mapper","getItems","schema","getWalker","isLimit","plugins","get","getCustomProperty","model","start","createUIElement","markerRange"];var hs,ps;hs=fs,ps=379,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x11")]())s[bs("0x9")](t)&&o[bs("0x20")](n[bs("0x0")](s));return o}function _s(t){const e=[];if(t.is(bs("0xf"),bs("0x5"))){let n=t.nextSibling;for(;n&&n.is(bs("0xf"),bs("0x5"))&&n.getAttribute(bs("0x21"))>0;)e[bs("0x20")](n),n=n.nextSibling}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x15")][bs("0x16")](bs("0x4"));return(s,r,i)=>{if(!i.consumable[bs("0x2")](r[bs("0x1b")],s[bs("0x8")]))return;const x=r[bs("0x1b")][bs("0x13")](),a=r[bs("0x1b")][bs("0x19")],c=t[bs("0x18")][bs("0x12")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[bs("0x22")];u=u||c.isContent(e);const n=i[bs("0x10")].toViewElement(e);if(n&&n[bs("0x17")]("addHighlight"))return;bs("0xa")==t[bs("0xd")]&&c.isBlock(e)&&!c[bs("0x14")](e)&&(e[bs("0x1")]||a[bs("0xb")]?l&&l[bs("0x7")]==e||(l=e,m(t[bs("0x1e")]),g=!0):d=d||t[bs("0x1e")])}function m(t){const s=i[bs("0xc")][bs("0x1a")](bs("0x1f"),{class:bs("0x6")+e}),x=i.mapper.toViewPosition(t);n&&o.activeMarkers[bs("0x24")](r[bs("0x23")])&&i.writer[bs("0x1c")](bs("0xe"),s),i.writer[bs("0x1d")](x,s),i[bs("0x10")][bs("0x3")](s,r[bs("0x23")])}u||g||!d||m(d)}}const Cs=["change","underline","FORMAT_CODE","slice","get","subscript","isCollapsed","forceValue","commandName","FORMAT_BOLD","plugins","*Remove format:* %0","TrackChangesEditing","commands","code","FORMAT_SUPERSCRIPT","markInlineFormat","FORMAT_ITALIC","editor","has","StrikethroughEditing","document","strikethrough","SubscriptEditing","_descriptionFactory","bold","superscript","format","UnderlineEditing","FORMAT_UNDERLINE","FORMAT_STRIKETHROUGH","enableCommand","from","selection","*Format:* %0","CodeEditing","getRanges","FORMAT_SUBSCRIPT","toLowerCase","BoldEditing","model","commandParams","value"];var ys,ks;ys=Cs,ks=254,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x0"),"ItalicEditing",As("0x20"),As("0x27"),As("0x18"),As("0x1b"),"SuperscriptEditing"];class Rs extends t.Plugin{afterInit(){const t=this[As("0x16")],e=t[As("0x1")],n=t[As("0xe")][As("0x8")](As("0x10")),o=t.locale;for(const o of vs){if(!t.plugins[As("0x17")](o))continue;const s=o[As("0x7")](0,-7)[As("0x2a")](),r=t[As("0x11")][As("0x8")](s);n[As("0x23")](s,((t,o={})=>{const i=e[As("0x19")][As("0x25")];if(i[As("0xa")])return void t(o);const x=void 0!==o[As("0xb")]?o[As("0xb")]:!r[As("0x3")];e[As("0x4")]((()=>{const t=Array[As("0x24")](i[As("0x28")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x14")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1c")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[As("0xc")]===t)return s[As("0x2")][0].forceValue?{type:As("0x1f"),content:Yo(o,As("0x26"),e)}:{type:As("0x1f"),content:Yo(o,As("0xf"),e)}}))}s(As("0x1d"),Yo(o,As("0xd"))),s("italic",Yo(o,As("0x15"))),s(As("0x5"),Yo(o,As("0x21"))),s(As("0x12"),Yo(o,As("0x6"))),s(As("0x1a"),Yo(o,As("0x22"))),s(As("0x9"),Yo(o,As("0x29"))),s(As("0x1e"),Yo(o,As("0x13")))}}const Is=["parent","*Format:* %0","editor","schema","blockQuote","commands","registerDescriptionCallback","getSelectedBlocks","BlockQuoteEditing","has","TrackChangesEditing","filter","checkChild","get","forceValue","name","value","format","selection","locale","change","plugins","ELEMENT_BLOCK_QUOTE","enableCommand","model","_descriptionFactory","*Remove format:* %0","from","commandName"];var Ss,Ls;Ss=Is,Ls=313,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ns("0x8")],e=t[Ns("0x19")];if(!t[Ns("0x1b")][Ns("0xf")](Ns("0xe")))return;const n=t[Ns("0x1b")][Ns("0x13")](Ns("0x10")),o=this[Ns("0x8")][Ns("0xb")][Ns("0x13")](Ns("0xa"));n[Ns("0x0")](Ns("0xa"),((e,s={})=>{const r=this[Ns("0x8")][Ns("0x1")].document[Ns("0x18")],i=s&&void 0!==s[Ns("0x14")]?s.forceValue:!o[Ns("0x16")];let x=[];if(i){const e=Array[Ns("0x4")](r[Ns("0xd")]()).filter((t=>ws(t)||function(t,e){const n=e[Ns("0x12")](t.parent,Ns("0xa")),o=e[Ns("0x12")](["$root",Ns("0xa")],t);return n&&o}(t,this.editor[Ns("0x1")][Ns("0x9")])));x=I(e,t[Ns("0x1")])}else{const e=Array[Ns("0x4")](r[Ns("0xd")]())[Ns("0x11")]((t=>ws(t)));x=I(e,t.model)}t.model[Ns("0x1a")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0xa"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x2")][Ns("0xc")]((t=>{const{data:n}=t;if(n&&Ns("0xa")==n[Ns("0x5")]){const t=Yo(e,Ns("0x1c"));return n.commandParams[0][Ns("0x14")]?{type:Ns("0x17"),content:Yo(e,Ns("0x7"),t)}:{type:Ns("0x17"),content:Yo(e,Ns("0x3"),t)}}}))}}function ws(t){return Ns("0xa")==t[Ns("0x6")][Ns("0x15")]}const Os=["plugins","enableCommand","ckbox","get","afterInit","TrackChangesEditing","commands","editor"];var Fs,Ps;Fs=Os,Ps=408,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x4")](){const t=this[Ds("0x7")];t[Ds("0x6")][Ds("0x3")](Ds("0x2"))&&t[Ds("0x0")][Ds("0x3")](Ds("0x5"))[Ds("0x1")](Ds("0x2"))}}const js=["filter","enableCommand","*Format:* %0","outdentCodeBlock","parent","afterInit","TrackChangesEditing","get","find","rootElement","commandName","name","locale","language","*Remove format:* %0","change","selection","model","value","has","getSelectedBlocks","label","checkChild","config","editor","codeBlock","markBlockFormat","forceValue","from","commands","isLimit","blockName","indentCodeBlock","ELEMENT_CODE_BLOCK","plugins","schema"];var Us,Gs;Us=js,Gs=223,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0x22")](){const t=this[Hs("0x11")];if(!t[Hs("0x1b")][Hs("0xc")]("CodeBlock"))return;const e=t[Hs("0x1b")][Hs("0x0")](Hs("0x23")),n=t[Hs("0x5")],o=t[Hs("0x10")][Hs("0x0")](Hs("0x12")).languages,s=t[Hs("0x16")][Hs("0x0")](Hs("0x12"));e[Hs("0x1e")](Hs("0x19")),e[Hs("0x1e")](Hs("0x20")),e[Hs("0x1e")](Hs("0x12"),((n,r={})=>{const i=t[Hs("0xa")],x=t[Hs("0xa")].document[Hs("0x9")],a=r&&void 0!==r.forceValue?r[Hs("0x14")]:!s[Hs("0xb")];let c;r[Hs("0x6")]||(r[Hs("0x6")]=o[0][Hs("0x6")]),c=a?Array[Hs("0x15")](x[Hs("0xd")]()).filter((t=>{return Ws(t)||(e=t,n=i[Hs("0x1c")],!e.is(Hs("0x2"))&&!n[Hs("0x17")](e)&&n[Hs("0xf")](e[Hs("0x21")],Hs("0x12")));var e,n})):Array[Hs("0x15")](x.getSelectedBlocks())[Hs("0x1d")]((t=>Ws(t)));const l=I(c,i);i[Hs("0x8")]((()=>{for(const t of l)e[Hs("0x13")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x18")})}))})),e._descriptionFactory.registerElementLabel(Hs("0x12"),(t=>Yo(n,Hs("0x1a"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Hs("0x3")]){const t=r.commandParams[0][Hs("0x6")],s=e(o[Hs("0x1")]((e=>e[Hs("0x6")]===t))[Hs("0xe")]);return r.commandParams[0][Hs("0x14")]?{type:"format",content:Yo(n,Hs("0x1f"),Yo(n,Hs("0x1a"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x7"),Yo(n,Hs("0x1a"),1))}}}))}}function Ws(t){return"codeBlock"==t[Hs("0x4")]}const Vs=["plugins","has","TrackChangesEditing","CommentsEditing","addCommentThread","get"];var Ks,qs;Ks=Vs,qs=282,function(t){for(;--t;)Ks.push(Ks.shift())}(++qs);const Xs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this.editor;t.plugins[Xs("0x1")](Xs("0x3"))&&t[Xs("0x0")][Xs("0x5")](Xs("0x2")).enableCommand(Xs("0x4"))}}var Js=n(181);const Qs=["enqueueChange","editing","unit","document","root","delete","model","options","end","get","commands","unlock","modifySelection","TrackChangesEditing","start","bind","showSuggestionHighlights","createRange","editor","high","detach","markerName","requires","getFirstRange","writer","uiElement","markerNameToElements","setSelection","batch","mapper","createSelection","merge","downcastDispatcher","buffer","isCollapsed","lock","addMarker:suggestion:deletion","deleteForward"];var Zs,Ys;Zs=Qs,Ys=116,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x14")](){return[Js.Delete]}init(){const t=this[tr("0x10")],e=t.plugins.get(tr("0xb"));e.enableCommand(tr("0x3"));const n=t[tr("0x8")][tr("0x7")]("deleteForward");e.enableCommand(tr("0x23"),((e,o={})=>{const s=t.model[tr("0x1c")](t[tr("0x4")][tr("0x1")].selection);s[tr("0x20")]&&t[tr("0x4")][tr("0xa")](s,{direction:"forward",unit:o[tr("0x0")]});const r=s[tr("0x15")](),x=i.LiveRange.fromRange(r);let a;e(o),a="$graveyard"==x[tr("0x2")].rootName?t[tr("0x4")][tr("0xf")](r[tr("0xc")]):t[tr("0x4")][tr("0xf")](x[tr("0xc")],x[tr("0x6")]),x[tr("0x12")](),t.model[tr("0x24")](n[tr("0x1f")][tr("0x1a")],(t=>{n.buffer[tr("0x21")](),t[tr("0x19")](t[tr("0xf")](a[tr("0x6")])),n[tr("0x1f")][tr("0x9")]()}))})),t[tr("0x25")][tr("0x1e")].on(tr("0x22"),Ts(t,tr("0x1d")),{priority:tr("0x11")}),t.data[tr("0x1e")].on(tr("0x22"),((e,n,o)=>{o[tr("0x5")][tr("0xe")]&&Ts(t,tr("0x1d"),{showActiveMarker:!1})[tr("0xd")](this)(e,n,o)}),{priority:"high"}),t[tr("0x25")][tr("0x1e")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[tr("0x1b")][tr("0x18")](e.markerName);if(o)for(const t of o)t.is(tr("0x17"))&&(n[tr("0x1b")].unbindElementFromMarkerName(t,e[tr("0x13")]),n[tr("0x16")].remove(t))}),{priority:tr("0x11")})}}const nr=["listType","afterInit","markMultiRangeBlockFormat","hasAttribute","registerElementLabel","deletion","ELEMENT_LIST_ITEM","splitListItemAfter","setSelection","*Change to:* %0","toUpperCase","slice","nextSibling","*Format:* insert into %0","DocumentListEditing","_suggestionFactory","getAttribute","*Indent:* %0","getRanges","enableCommand","multipleBlocks","fromRange","containsItem","add","detach","_LIST","isObject","change","forceValue","before","map","end","document","*Merge:* %0","has","from","commandParams","nodeAfter","schema","next","list.multiBlock","commands","formatBlock","selection","indentList","outdentList","*Format:* remove from %0","listItemId","plugins","markBlockFormat","push","model","execute","format","get","mergeListItemForward","start","createPositionAt","createRange","getFirstRange","previousSibling","*Outdent:* %0","ELEMENT_NUMBERED_LIST","documentList","DocumentListUtils","splitListItemBefore","TrackChangesEditing","after","accept","listIndent","value","registerCustomCallback","commandName","numberedList","findIndex","_descriptionFactory","bulletedList","config","editor","parent"];var or,sr;or=nr,sr=487,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x4a")](){const t=this[rr("0x47")];if(!t[rr("0x29")][rr("0x1b")](rr("0x7")))return;const e=t.locale,n=t[rr("0x29")][rr("0x2f")](rr("0x3b")),o=t[rr("0x29")][rr("0x2f")](rr("0x39"));function s(e){return()=>{const s=t[rr("0x22")][rr("0x2f")](e);if(s.value&&!t[rr("0x46")][rr("0x2f")](rr("0x21")))return void t[rr("0x2d")]("paragraph",{});let r=Array.from(t[rr("0x2c")].document[rr("0x24")].getSelectedBlocks());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t.model[rr("0x14")]((()=>{n[rr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x3f")]}],formatGroupId:rr("0x49")},[],rr("0x38"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x1c")](t);const n=e[rr("0x43")]((t=>!t[rr("0x4c")](rr("0x28"))));return n>-1&&(e=e[rr("0x4")](0,n)),e}(t[rr("0x2c")][rr("0x19")].selection.getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x2c")][rr("0x1f")][rr("0x13")](s)?rr("0x3c"):rr("0x18"),i=t.model.createRange(t[rr("0x2c")][rr("0x32")](o[0],rr("0x16")),t.model.createPositionAt(s,r));t[rr("0x2c")][rr("0x14")]((()=>{n[rr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x49")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x5")];for(;t&&t[rr("0x9")]("listIndent")>n.getAttribute(rr("0x3e"));)e[rr("0x10")](t),t=t[rr("0x5")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x2c")][rr("0x19")][rr("0x24")].getSelectedBlocks()[rr("0x20")]()[rr("0x3f")],s=t[rr("0x2c")][rr("0x32")](o,rr("0x16")),r=t[rr("0x2c")][rr("0x32")](o,0),i=t.model[rr("0x33")](s,r);t[rr("0x2c")][rr("0x14")]((()=>{n[rr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x49")})}))}}function a(e){const n=t[rr("0x22")].get(rr("0x45"))[rr("0x3f")],o=t[rr("0x22")][rr("0x2f")](rr("0x42"))[rr("0x3f")];return rr("0x42")===e?n:o}n[rr("0xc")](rr("0x42"),s(rr("0x42"))),n[rr("0xc")](rr("0x45"),s(rr("0x45"))),n[rr("0xc")](rr("0x25"),r(rr("0x25"))),n[rr("0xc")](rr("0x26"),r(rr("0x26"))),n[rr("0xc")](rr("0x0"),x(rr("0x0"))),n[rr("0xc")](rr("0x3a"),x(rr("0x3a"))),n[rr("0x44")][rr("0x4d")]((function(e){const n=!t.model[rr("0x1f")][rr("0x13")](e),o=e[rr("0x35")],s=e[rr("0x5")],r=e[rr("0x9")](rr("0x28")),i=!o||o[rr("0x9")]("listItemId")!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x4f"),t))),n._descriptionFactory.registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x41")]){case"bulletedList":i=o.commandParams[0][rr("0x15")],x=a(o[rr("0x41")]),s=rr(i?"0x6":"0x27"),!x&&t.config[rr("0x2f")](rr("0x21"))||(s=rr("0x2")),r={type:rr("0x2e"),content:Yo(e,s,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case rr("0x42"):i=o[rr("0x1d")][0].forceValue,x=a(o[rr("0x41")]),s=rr(i?"0x6":"0x27"),!x&&t[rr("0x46")][rr("0x2f")]("list.multiBlock")||(s=rr("0x2")),r={type:rr("0x2e"),content:Yo(e,s,Yo(e,rr("0x37")))};break;case rr("0x25"):s=rr("0xa"),r={type:"format",content:Yo(e,s,Yo(e,rr("0x4f")))};break;case rr("0x26"):s=function(t){const e=t[rr("0x34")]();let n=e[rr("0x31")][rr("0x1e")];for(;n&&e[rr("0xf")](n);){if(n.getAttribute(rr("0x3e"))>0)return!1;n=n[rr("0x5")]}return!0}(n)?Yo(e,rr("0x27"),Yo(e,"ELEMENT_"+n[rr("0x34")]()[rr("0x31")][rr("0x1e")][rr("0x9")](rr("0x49"))[rr("0x3")]()+rr("0x12"))):Yo(e,rr("0x36"),Yo(e,rr("0x4f"))),r={type:rr("0x2e"),content:s};break;case"mergeListItemBackward":case rr("0x30"):!1===o[rr("0xd")]&&(s=rr("0x1a"),r={type:rr("0x4e"),content:Yo(e,s,Yo(e,rr("0x4f")))})}return r})),n[rr("0x8")][rr("0x40")](rr("0x23"),rr("0x38"),rr("0x3d"),(function(e,n){const o=[];for(let n of e)n[rr("0x31")].nodeAfter===n[rr("0x18")][rr("0x48")]&&(n=t[rr("0x2c")][rr("0x33")](t.model[rr("0x32")](n[rr("0x31")][rr("0x1e")],0))),o[rr("0x2b")](n);t.model[rr("0x14")]((e=>{const s=t[rr("0x2c")].document.selection,r=Array[rr("0x1c")](s[rr("0xb")]())[rr("0x17")]((t=>i.LiveRange[rr("0xe")](t)));e[rr("0x1")](o),t[rr("0x22")][rr("0x2f")](n[rr("0x41")]).refresh(),n[rr("0x1d")][rr("0x2b")]({forceDefaultExecution:!0}),t[rr("0x2d")](n[rr("0x41")],...n[rr("0x1d")]),e[rr("0x1")](r);for(const t of r)t[rr("0x11")]()}))}))}}var xr=n(331);const ar=["editor","bind","fire","unbindElementFromMarkerName","enter","createPositionAt","afterExecute","remove","addMarker:suggestion:insertion","setSelection","split","fromRange","high","get","data","ck-suggestion-marker-split","TrackChangesEditing","enableCommand","selection","markerName","end","markInsertion","writer","editing","detach","change","removeMarker:suggestion:insertion","model","commands","createRange","document","downcastDispatcher","markerNameToElements","parent","options","plugins"];var cr,lr;cr=ar,lr=455,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{static get requires(){return[xr.Enter]}init(){const t=this[dr("0xd")],e=t[dr("0xc")][dr("0x1a")](dr("0x1d")),n=t[dr("0x5")][dr("0x1a")](dr("0x11"));e[dr("0x1e")](dr("0x11"),(()=>{t[dr("0x4")][dr("0x2")]((o=>{const s=t[dr("0x4")][dr("0x7")][dr("0x1f")],r=s.getFirstPosition(),x=i.LiveRange[dr("0x18")](s.getFirstRange());if(n.enterBlock(o)){const n=t.model[dr("0x12")](r[dr("0xa")].nextSibling,0),s=o[dr("0x6")](r,n);e[dr("0x22")](s)}else o[dr("0x16")](o[dr("0x6")](x[dr("0x21")]));x[dr("0x1")](),n[dr("0xf")](dr("0x13"),{writer:o})}))})),t[dr("0x0")][dr("0x8")].on(dr("0x15"),Ts(t,dr("0x17")),{priority:dr("0x19")}),t[dr("0x0")][dr("0x8")].on(dr("0x3"),((t,e,n)=>{const o=n.mapper[dr("0x9")](e[dr("0x20")]);if(o)for(const t of o)t.hasClass(dr("0x1c"))&&(n.mapper[dr("0x10")](t,e.markerName),n[dr("0x23")][dr("0x14")](t))}),{priority:dr("0x19")}),t[dr("0x1b")][dr("0x8")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[dr("0xb")].showSuggestionHighlights&&Ts(t,dr("0x17"),{showActiveMarker:!1})[dr("0xe")](this)(e,n,o)}),{priority:dr("0x19")})}}const gr=["createPositionAt","suggestion:deletion","end","filter","findPrevious","find","findNext","FindAndReplaceUtils","plugins","has","getRange","getMarkersGroup","getIntersection","replaceAll","markers","handleFindCommand","editor","string","model","afterInit","enableCommand","_isInDeletionRange","get"];var mr,fr;mr=gr,fr=177,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x3")](){if(!this[hr("0x0")].plugins[hr("0x10")]("FindAndReplaceEditing"))return;const t=this.editor[hr("0xf")][hr("0x6")]("TrackChangesEditing");t[hr("0x4")](hr("0xc"),this[hr("0x16")].bind(this)),t[hr("0x4")](hr("0xd")),t[hr("0x4")](hr("0xb")),t[hr("0x4")]("replace"),t[hr("0x4")](hr("0x14"))}[hr("0x16")](t,e,n={}){const o=this.editor.plugins.get(hr("0xe"));if(void 0!==n)return t((t=>(hr("0x1")==typeof e?o.findByTextCallback(e,n):e)(t)[hr("0xa")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[hr("0x5")](t,e){const n=this[hr("0x0")][hr("0x2")].createRange(this[hr("0x0")][hr("0x2")].createPositionAt(e,t.start),this[hr("0x0")][hr("0x2")][hr("0x7")](e,t[hr("0x9")]));for(const t of this[hr("0x0")][hr("0x2")][hr("0x15")][hr("0x12")](hr("0x8")))if(null!==n[hr("0x13")](t[hr("0x11")]()))return!0;return!1}}const br=["FontSize","*Set font size:* %0","*Reset font size*","fontBackgroundColor","commandName","trim","markInlineFormat","_descriptionFactory","label","FontSizeEditing","toLowerCase","plugins","get","FontBackgroundColorEditing","fontFamily","selection","fontSize","commandParams","change","value","FontFamilyEditing","model","find","config","format","isCollapsed","fontBackgroundColor.colors","afterInit","editor","fontColor.colors","document","fontSize.options","_enableCommand","*Set font color:* %0","*Reset font color*","has","registerDescriptionCallback","fontColor","*Reset font background color*","from"];var Er,_r;Er=br,_r=463,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x1a"),commandName:Tr("0x21")},{pluginName:Tr("0x25"),commandName:Tr("0x1f")},{pluginName:"FontColorEditing",commandName:Tr("0xe")},{pluginName:Tr("0x1e"),commandName:Tr("0x14")}];class yr extends t.Plugin{[Tr("0x4")](){const t=this[Tr("0x5")].locale;for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x5")][Tr("0x1c")][Tr("0xc")](t)&&this[Tr("0x9")](e);this[Tr("0x5")][Tr("0x1c")][Tr("0x1d")]("TrackChangesEditing")[Tr("0x18")][Tr("0xd")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x21")==o[Tr("0x15")]){const e=o.commandParams[0][Tr("0x24")];if(e){const o=n(this[Tr("0x5")][Tr("0x1c")].get(Tr("0x11")).normalizeSizeOptions(this[Tr("0x5")][Tr("0x0")].get(Tr("0x8")))[Tr("0x27")]((t=>t.model==e)).title)[Tr("0x1b")]();return{type:Tr("0x1"),content:Yo(t,Tr("0x12"),o)}}return{type:Tr("0x1"),content:Yo(t,Tr("0x13"))}}if(Tr("0x1f")==o[Tr("0x15")]){const e=o.commandParams[0].value;return e?{type:Tr("0x1"),content:Yo(t,"*Set font family:* %0",e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if("fontColor"==o[Tr("0x15")]){const e=o[Tr("0x22")][0][Tr("0x24")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x5")][Tr("0x0")][Tr("0x1d")](Tr("0x6")))[Tr("0x27")]((t=>t[Tr("0x26")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:Tr("0x1"),content:Yo(t,Tr("0xa"),i)[Tr("0x16")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,Tr("0xb"))}}if("fontBackgroundColor"==o[Tr("0x15")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x5")][Tr("0x0")].get(Tr("0x3")))[Tr("0x27")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x19")],i=n(r)[Tr("0x1b")]()),{type:Tr("0x1"),content:Yo(t,"*Set font background color:* %0",i)[Tr("0x16")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0xf"))}}}}))}[Tr("0x9")](t){const e=this[Tr("0x5")];e[Tr("0x1c")][Tr("0x1d")]("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e[Tr("0x26")][Tr("0x7")][Tr("0x20")],r=o[Tr("0x24")];s[Tr("0x2")]?n(o):e[Tr("0x26")][Tr("0x23")]((()=>{const n=Array[Tr("0x10")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x26")]);for(const o of n)e[Tr("0x1c")].get("TrackChangesEditing")[Tr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["getItems","enableCommand","copyFormat","find","afterInit","word","change","toLowerCase","model","locale","length","modifySelection","config","plugins","createRange","pasteFormat","getAttributeProperties","keys","boolean","entries","fontSize","fontColor.colors","*Remove all formatting*","fontSize.options","format","getFirstPosition","document","title","join","forward","markInlineFormat","fontBackgroundColor","label","charAt","from","get","editor","getRanges","commandParams","backward","TrackChangesEditing","isCollapsed","push","getAttributes","isFormatting","normalizeSizeOptions","schema","_descriptionFactory","commands","registerDescriptionCallback","createSelection","selection"];var Ar,vr;Ar=kr,vr=374,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x2e")](){const t=this[Rr("0x1a")],n=t[Rr("0x32")],o=n[Rr("0x10")][Rr("0x29")],s=t[Rr("0x3")][Rr("0x19")](Rr("0x1e")),r=t[Rr("0x33")],i=t[Rr("0x26")][Rr("0x19")](Rr("0x2c")),x=t[Rr("0x26")].get(Rr("0x5"));i&&x&&(s[Rr("0x2b")](Rr("0x5"),((t,r={})=>{const i=r;n[Rr("0x30")]((()=>{const t=Array[Rr("0x18")](o[Rr("0x1b")]()),r=o[Rr("0x1f")]?[Sr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x21")]()){const t=e[Rr("0x6")](n);t&&t[Rr("0x22")]&&(yield n)}}(t,n));for(const e of t[Rr("0x1b")]())for(const t of e[Rr("0x2a")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0x24")]))||0!==Object[Rr("0x7")](i)[Rr("0x0")])for(const t of r)s[Rr("0x14")](t,{commandName:Rr("0x5"),commandParams:[i]})}))})),s[Rr("0x25")][Rr("0x27")]((e=>{const{data:n}=e;if(n&&Rr("0x5")===n.commandName){const e=[],o=n[Rr("0x1c")][0];for(const[n,s]of Object[Rr("0x9")](o))e[Rr("0x20")](Lr(t,n,s));return e[Rr("0x0")]?{type:Rr("0xe"),content:Yo(r,"*Set format to:* %0",e[Rr("0x12")](", "))}:{type:Rr("0xe"),content:Yo(r,Rr("0xc"))}}})),t.plugins[Rr("0x19")](Rr("0x1e"))[Rr("0x2b")](Rr("0x2c")))}}function Sr(t,e){const n=t[Rr("0x28")](e);t[Rr("0x1")](n,{unit:Rr("0x2f"),direction:Rr("0x1d")});const o=n[Rr("0xf")]();t[Rr("0x1")](n,{unit:Rr("0x2f"),direction:Rr("0x13")});const s=n.getLastPosition();return t[Rr("0x4")](o,s)}function Lr(t,e,n){const o=t[Rr("0x33")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r[Rr("0x17")](0).toUpperCase()+r.slice(1))[Rr("0x31")]();if(Rr("0x8")==typeof n)return i;if("fontColor"===e||Rr("0x15")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x2")][Rr("0x19")](Rr("0xb"))).find((t=>t[Rr("0x32")]==n));return i+" ("+(e?o(e[Rr("0x16")])[Rr("0x31")]():n)+")"}if(Rr("0xa")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x3")][Rr("0x19")]("FontSize")[Rr("0x23")](t[Rr("0x2")][Rr("0x19")](Rr("0xd")))[Rr("0x2d")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x11")])[Rr("0x31")]():n)+")"}return i+" ("+n+")"}const Nr=["change","editor","_descriptionFactory","schema","locale","afterInit","value","find","HeadingEditing","match","registerElementLabel","*Change to:* %0","isObject","ELEMENT_HEADING_CUSTOM","commandParams","parent","document","selection","registerDescriptionCallback","has","TrackChangesEditing","ELEMENT_HEADING","heading","formatBlock","checkChild","model","format","title","plugins","markBlockFormat","paragraph","heading.options","enableCommand","from"];var Mr,wr;Mr=Nr,wr=433,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0xe")](){const t=this[Or("0xa")],e=t[Or("0xd")],n=t.config.get(Or("0x6"));if(!t[Or("0x3")][Or("0x1c")](Or("0x11")))return;const o=t[Or("0x3")].get(Or("0x1d"));o[Or("0x7")]("heading",((e,n)=>{const s=n.value,r=Array[Or("0x8")](this[Or("0xa")][Or("0x0")][Or("0x19")][Or("0x1a")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this[Or("0xa")][Or("0x0")][Or("0xc")])[Or("0x21")](e[Or("0x18")],n)&&!o[Or("0x15")](e)&&e.name!=n;var e,n,o}));t[Or("0x0")][Or("0x9")]((()=>{for(const t of r)o[Or("0x4")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x5")!=t.model&&o[Or("0xb")][Or("0x13")](t[Or("0x0")],(e=>{const n=Pr(t.model);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Or("0x1e"),[t,n])}function r(t,n){return Yo(e,Or("0x16"),[t,n])}o[Or("0xb")][Or("0x1b")]((t=>{const{type:o,data:i}=t;if(Or("0x20")==o&&i&&Or("0x1f")==i.commandName){const t=i[Or("0x17")][0][Or("0xf")],o=Pr(t);if(null!==o)return{type:Or("0x1"),content:Yo(e,Or("0x14"),s(1,o))};const x=n[Or("0x10")]((e=>e[Or("0x0")]===t))[Or("0x2")];return{type:Or("0x1"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x12")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["highlight","*Set highlight:* %0","highlight.options","editor","get","formatInline","getFirstPosition","commandName","plugins","item","config","hasAttribute","selection","title","TrackChangesEditing","document","afterInit","push","HighlightEditing","isCollapsed","toLowerCase","value","find","_descriptionFactory","backward","model","getLastMatchingPosition","commandParams","enableCommand","color"];var Br,jr;Br=Dr,jr=405,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1")](){const t=this[Ur("0x12")];if(!t[Ur("0x17")].has(Ur("0x3")))return;const e=t[Ur("0x17")][Ur("0x13")](Ur("0x1d"));e[Ur("0xd")](Ur("0xf"),((n,o={})=>{const s=t.model[Ur("0x0")][Ur("0x1b")],r=s.getAttribute(Ur("0xf"));let i=o[Ur("0x6")],x=[];if(s[Ur("0x4")]){const e=s[Ur("0x15")]();if(!s[Ur("0x1a")](Ur("0xf")))return void n(o);{const n=t=>t[Ur("0x18")].getAttribute("highlight")===r,o=e[Ur("0xb")](n,{direction:Ur("0x9")}),s=e[Ur("0xb")](n);x=[t[Ur("0xa")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0x2")](e):x[Ur("0x2")](...Es("highlight",e,t[Ur("0xa")]));t[Ur("0xa")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Ur("0xf"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x8")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x14")==o&&s&&"highlight"==s[Ur("0x16")]){const e=n.t,o=s[Ur("0xc")][0].value;if(o){const s=t[Ur("0x19")][Ur("0x13")](Ur("0x11"))[Ur("0x7")]((t=>t[Ur("0xa")]==o)),r=e(s.title)[Ur("0x5")]();return{type:"format",content:Yo(n,Ur("0x10"),r),color:{value:s[Ur("0xe")],title:s[Ur("0x1c")]}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Hr=["ck-horizontal-line","div","afterInit","locale","dataDowncast","createEmptyElement","editor","has","HorizontalLineEditing","high","addClass","registerElementLabel","TrackChangesEditing","horizontalLine","get","for","enableCommand","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","plugins","createPositionAt","showSuggestionHighlights"];var zr,Wr;zr=Hr,Wr=440,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x6")];if(!t[Vr("0x13")][Vr("0x7")](Vr("0x8")))return;t[Vr("0x13")][Vr("0xe")](Vr("0xc"))[Vr("0x10")](Vr("0xd"));const e=t[Vr("0x13")][Vr("0xe")]("TrackChangesEditing"),n=t[Vr("0x3")];e[Vr("0x12")][Vr("0xb")](Vr("0xd"),(t=>Yo(n,Vr("0x11"),t))),t.conversion[Vr("0xf")](Vr("0x4")).elementToStructure({model:Vr("0xd"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x15")])return null;const o=e.createContainerElement(Vr("0x1")),s=e[Vr("0x5")]("hr");return e[Vr("0xa")](Vr("0x0"),o),e.insert(e[Vr("0x14")](o,0),s),o},converterPriority:Vr("0x9")})}}const qr=["htmlEmbed","selection","document","getSelectedElement","rawHtml","model","*Change %0 content*","_descriptionFactory","enableCommand","has","view","rawHtmlApi","TrackChangesEditing","editor","registerElementLabel","registerDescriptionCallback","markBlockFormat","ELEMENT_HTML_EMBED","getAttribute","getCustomProperty","value","plugins","format","element","get","editing"];var Xr,$r;Xr=qr,$r=166,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x3")];if(!t[Jr("0xb")][Jr("0x19")]("HtmlEmbed"))return;const e=t[Jr("0xb")][Jr("0xe")](Jr("0x2")),n=t.locale,o=t[Jr("0xf")][Jr("0x0")][Jr("0x12")][Jr("0x11")];e._descriptionFactory[Jr("0x4")]("rawHtml",(t=>Yo(n,Jr("0x7"),t))),t[Jr("0xb")][Jr("0xe")](Jr("0x2"))[Jr("0x18")]("htmlEmbed",((n,s)=>{const r=t[Jr("0x15")],i=r[Jr("0x12")][Jr("0x11")];r.change((()=>{const t=function(t){const e=t[Jr("0x13")]();return e&&e.is(Jr("0xd"),Jr("0x14"))?t[Jr("0x13")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x8")](Jr("0xa"))||"";void 0!==s&&s!==r&&(e[Jr("0x6")](t,{commandName:Jr("0x10"),commandParams:[s]}),o[Jr("0x13")]()[Jr("0x9")](Jr("0x1")).cancel())}))})),e[Jr("0x17")][Jr("0x5")]((t=>{const{data:e}=t;if(e&&Jr("0x10")==e.commandName){const t=Yo(n,Jr("0x7"));return{type:Jr("0xc"),content:Yo(n,Jr("0x16"),t)}}}))}}const Zr=["getContainedElement","registerElementLabel","imageStylePreApply","*Reset image width*","detach","side","forEach","discard","registerCustomCallback","registerDescriptionCallback","commands","value","uploadImage","editor","imageInline","toNext","isInlineImage","nodeBefore","hasAttribute","change","insertion","registerPostFixer","getSuggestionCallback","start","suggestion","enableCommand","differ","formatBlock","ELEMENT_INLINE_IMAGE","_descriptionFactory","imageBlock","ELEMENT_CAPTION","commandName","_findSuggestions","end","ImageEditing","filter","type","width","imageTextAlternative","ImageCaptionEditing","getAttribute","has","FORMAT_SIDE_IMAGE","find","schema","getNearestSelectionRange","isIntersecting","Users","convertInlineImageToBlock","isInContent","isCollapsed","alt","discardSuggestion","shouldConvertImageType","caption","formatInline","toPrevious","locale","_suggestionFactory","markInsertion","element","join","forceDefaultExecution","Block image to inline image","imageTypeBlock","previous","resizedWidth","ImageStyleEditing","plugins","ImageInlineEditing","getFirstRange","deletion","getCaptionFromImageModelElement","normalizedStyles","imageCaption","from","markInlineFormat","length","selection","Inline image to block image","createRangeOn","forward","next","get","resizeImage","subType","author","toggleImageCaption","name","newValue","imageStylePostApply","createRange","title","getSuggestions","markBlockFormat","document","getSuggestion","imageTypeInline","afterInit","findIndex","imageStyle","ImageBlockEditing","ImageCaptionUtils","isBefore","model","refresh","chain","format","markDeletion","getChangedMarkers","newRange","backward","isBlockImage","ImageUtils","*Set image text alternative:* %0","accept","*Remove image text alternative*","setImageNaturalSizeAttributes","getClosestSelectedImageElement","fromPosition","*Format:* %0","isEqual","toLowerCase"];var Yr,ti;Yr=Zr,ti=346,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1")](){const t=this[ei("0x27")];if(!t[ei("0x5f")][ei("0x44")](ei("0x3d")))return;const n=t.plugins[ei("0x6e")]("TrackChangesEditing"),o=t.plugins[ei("0x6e")](ei("0x10")),s={},r=t[ei("0x54")];if(n[ei("0x33")]("insertImage"),n[ei("0x37")].registerElementLabel(ei("0x38"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[ei("0x37")].registerElementLabel(ei("0x28"),(t=>Yo(r,ei("0x36"),t))),n[ei("0x37")][ei("0x1b")](ei("0x51"),(()=>Yo(r,ei("0x39")))),t[ei("0x5f")][ei("0x44")]("ImageUploadEditing")&&n[ei("0x33")](ei("0x26")),t.plugins.has(ei("0x4"))&&t[ei("0x5f")][ei("0x44")](ei("0x60"))&&(n[ei("0x33")](ei("0x0"),((e,s)=>{const r=o[ei("0x15")](t[ei("0x7")][ei("0x7a")].selection);t[ei("0x7")][ei("0x2d")]((()=>{n[ei("0x79")](r,{commandName:ei("0x0"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x33")](ei("0x5b"),((e,s)=>{t[ei("0x7")].change((r=>{let x=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),a=r[ei("0x6b")](x);const c=i.LivePosition[ei("0x16")](a[ei("0x31")],ei("0x53")),l=i.LivePosition[ei("0x16")](a[ei("0x3c")],ei("0x29"));n[ei("0x59")]((()=>e(s))),x=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),a=r[ei("0x6b")](x);const d=r[ei("0x76")](c,l);c[ei("0x1e")](),l.detach(),n[ei("0x79")](x,{commandName:ei("0x0"),commandParams:[s]},[],ei("0x4b")),d.start[ei("0x6")](a.start)&&n[ei("0x56")](r[ei("0x76")](d.start,a[ei("0x31")]),ei("0x4b")),a[ei("0x3c")][ei("0x6")](d.end)&&n[ei("0x56")](r.createRange(a.end,d[ei("0x3c")]),ei("0x4b"))}))})),n[ei("0x55")][ei("0x22")](ei("0x35"),"convertInlineImageToBlock",ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")]("formatBlock",ei("0x4b"),ei("0x12"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x35"),"convertInlineImageToBlock",ei("0x21"),n._suggestionFactory[ei("0x30")](ei("0x35"),"",ei("0x12"))),n[ei("0x55")].registerCustomCallback(ei("0x2e"),ei("0x4b"),ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x2e"),ei("0x4b"),ei("0x21"),(([e])=>{const o=n[ei("0x55")][ei("0x30")](ei("0x2e"),"",ei("0x21"));let s=e[ei("0x31")],r=e[ei("0x3c")];const i=t[ei("0x7")][ei("0x47")][ei("0x48")](s,ei("0xe")),x=t[ei("0x7")][ei("0x47")][ei("0x48")](r,ei("0x6c"));i.isCollapsed&&(s=i[ei("0x31")]),x[ei("0x4d")]&&(r=x[ei("0x3c")]),o([t.model.createRange(s,r)])})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x4b"),ei("0x9"),c),n[ei("0x55")][ei("0x22")]("insertion","convertInlineImageToBlock",ei("0x9"),c)),t[ei("0x5f")][ei("0x44")](ei("0x42"))&&(n[ei("0x33")](ei("0x72"),((e,s)=>{const r=t[ei("0x5f")][ei("0x6e")](ei("0x5"));let i=o.getClosestSelectedImageElement(t.model[ei("0x7a")][ei("0x69")]),x=r[ei("0x63")](i);t.model[ei("0x2d")]((()=>{if(x)return void n[ei("0xb")](t[ei("0x7")][ei("0x6b")](x));const a=o[ei("0xf")](i);e(s),i=o[ei("0x15")](t[ei("0x7")].document[ei("0x69")]),x=r[ei("0x63")](i),n[ei("0x56")](t[ei("0x7")][ei("0x6b")](x),a?null:"imageCaption")}))})),n[ei("0x55")][ei("0x22")](ei("0x2e"),ei("0x65"),ei("0x9"),c)),t[ei("0x5f")][ei("0x44")](ei("0x5e"))){n[ei("0x33")](ei("0x3"),((s,r)=>{const i=t[ei("0x5f")][ei("0x6e")](ei("0x4a")).me,x=t[ei("0x24")][ei("0x6e")](ei("0x3"));let a=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),c=t[ei("0x7")][ei("0x6b")](a),l=x[ei("0x25")];if(l==r[ei("0x25")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x7")][ei("0x2d")]((()=>{if(n[ei("0x78")]()[ei("0x3e")]((t=>t[ei("0x4c")]&&i==t[ei("0x71")]&&(ei("0x35")==t[ei("0x3f")]||ei("0x52")==t[ei("0x3f")])&&(ei("0x1c")==t[ei("0x70")]||ei("0x75")==t[ei("0x70")])&&t[ei("0x61")]()[ei("0x18")](c)))[ei("0x20")]((t=>n[ei("0x4f")](t.head))),a=o.getClosestSelectedImageElement(t[ei("0x7")][ei("0x7a")][ei("0x69")]),c=t[ei("0x7")][ei("0x6b")](a),x[ei("0x8")](),t.commands[ei("0x6e")](ei("0x0"))[ei("0x8")](),t[ei("0x24")][ei("0x6e")](ei("0x5b")).refresh(),l=x[ei("0x25")],l!=r[ei("0x25")])return o[ei("0x2a")](a)&&x[ei("0x50")](r[ei("0x25")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x15")](t[ei("0x7")].document[ei("0x69")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0xf")](a)?n[ei("0x79")](a,d,[],ei("0x75")):n[ei("0x67")](c,d,ei("0x75")))}))}));for(const e of t[ei("0x5f")][ei("0x6e")](ei("0x5e"))[ei("0x64")])s[e[ei("0x73")]]=e[ei("0x77")][ei("0x19")]();n[ei("0x55")][ei("0x22")](ei("0x35"),ei("0x1c"),"join",(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x35"),ei("0x75"),ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x52"),"imageStylePostApply",ei("0x58"),(()=>!1)),n._suggestionFactory[ei("0x22")](ei("0x35"),ei("0x1c"),ei("0x12"),(([t])=>{o[ei("0x14")](t[ei("0x1a")]())})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x1c"),ei("0x21"),((t,e)=>{n[ei("0x55")][ei("0x30")](ei("0x35"),"",ei("0x12"))(t,{commandName:e[ei("0x3a")],commandParams:e.commandReversedParams})})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x1c"),ei("0x9"),c)}const x=[{type:ei("0x35"),subType:ei("0x1c")},{type:ei("0x2e"),subType:"imageCaption"},{type:ei("0x35"),subType:ei("0x4b")},{type:ei("0x2e"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[ei("0x2")]((({type:e,subType:n})=>t[ei("0x3f")]==e&&t.subType==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x61")](),a=e[ei("0x61")]();if((0==s||1==s)&&2==r&&i[ei("0x49")](a))return!0;if(2==s&&3==r){const t=n[ei("0x3b")](i,ei("0x2e"))[ei("0x3e")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t.subType));if(t[ei("0x68")]>1&&a[ei("0x3c")][ei("0x18")](i[ei("0x31")]))return!0;if(1==t.length&&(i[ei("0x31")][ei("0x18")](a[ei("0x3c")])||i[ei("0x3c")][ei("0x18")](a[ei("0x31")])))return!0}if(3==s&&3==r&&i.start.isBefore(a[ei("0x31")])){const t=i[ei("0x3c")].nodeAfter,e=a[ei("0x31")][ei("0x2b")];return o[ei("0xf")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x7a")][ei("0x2f")]((()=>{let e=!1;const s=Array[ei("0x66")](t[ei("0x7")][ei("0x7a")][ei("0x34")][ei("0xc")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(ei("0x32")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&(ei("0x1c")==x||ei("0x75")==x)){const t=n[ei("0x7b")](a);if(r[ei("0xd")]){const s=t[ei("0x61")]()[ei("0x1a")]();if(o[ei("0xf")](s))continue;n[ei("0x4f")](t),e=!0}}if(ei("0x2e")==i&&"imageCaption"==x&&!r.newRange){const t=n.getSuggestion(a);t[ei("0x6d")]&&t[ei("0x6d")][ei("0x4c")]&&(n[ei("0x4f")](t[ei("0x6d")]),e=!0)}}}return e})),t.plugins[ei("0x44")]("ImageResize")&&n[ei("0x33")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document[ei("0x69")]);r[ei("0x43")](ei("0x5d"))!=s[ei("0x40")]&&t[ei("0x7")][ei("0x2d")]((()=>{n[ei("0x79")](r,{commandName:ei("0x6f"),commandParams:[s]})}))})),t.plugins[ei("0x44")]("ImageTextAlternativeEditing")&&n[ei("0x33")]("imageTextAlternative",((e,s)=>{const r=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]);(r[ei("0x2c")](ei("0x4e"))?r.getAttribute(ei("0x4e")):"")!=s[ei("0x74")]&&t[ei("0x7")][ei("0x2d")]((()=>{n.markBlockFormat(r,{commandName:ei("0x41"),commandParams:[s]})}))})),n[ei("0x37")][ei("0x23")]((t=>{if(x[ei("0x46")]((({type:e,subType:n})=>t[ei("0x3f")]==e&&t[ei("0x70")]==n)))return t[ei("0x5c")]?{}:void 0})),n[ei("0x37")][ei("0x23")]((t=>{if(ei("0x2e")==t[ei("0x3f")]||ei("0x62")==t[ei("0x3f")]){const e=t.getContainedElement();if(e&&e.is(ei("0x57"),"caption"))return{type:ei("0x2e")==t.type?"addObject":"removeObject",element:e,quantity:1}}})),n[ei("0x37")].registerDescriptionCallback((t=>ei("0x35")==t[ei("0x3f")]&&"convertInlineImageToBlock"==t[ei("0x70")]?{type:ei("0xa"),content:ei("0x6a")}:ei("0x35")==t[ei("0x3f")]&&"convertBlockImageToInline"==t[ei("0x70")]?{type:ei("0xa"),content:ei("0x5a")}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(ei("0x3")==e.commandName){const t=e.commandParams[0][ei("0x25")];return n=ei("0x1f")===t?Yo(r,ei("0x45")):s[t]||t,{type:"format",content:Yo(r,ei("0x17"),n)}}if(ei("0x41")==e[ei("0x3a")]){const t=e.commandParams[0][ei("0x74")];return t?{type:"format",content:Yo(r,ei("0x11"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0x13"))}}if("resizeImage"==e.commandName){const t=e.commandParams[0].width;return t?{type:ei("0xa"),content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0xa"),content:Yo(r,ei("0x1d"))}}}var n}))}}const oi=["accept","subType","getContainedElement","has","registerCustomCallback","editor","author","registerDescriptionCallback","getAttribute","TrackChangesEditing","handleSuggestionDescription","getSuggestionCallback","document","handleReplaceImageCommand","discard","getSuggestions","formatBlock","afterInit","get","commandName","data","replaceImageSource","_suggestionFactory","ImageEditing","markBlockFormat","getSelectedElement","plugins","change","Users"];var si,ri;si=oi,ri=455,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x1a")](){if(!this[ii("0xe")].plugins[ii("0xc")](ii("0x3")))return;const t=this[ii("0xe")][ii("0x6")][ii("0x1b")](ii("0x12"));t.enableCommand("replaceImageSource",((t,e)=>this[ii("0x16")](t,e))),t[ii("0x2")][ii("0xd")](ii("0x19"),ii("0x1"),ii("0x9"),t[ii("0x2")][ii("0x14")](ii("0x19"),null,"discard")),t[ii("0x2")].registerCustomCallback(ii("0x19"),ii("0x1"),ii("0x17"),t._suggestionFactory[ii("0x14")](ii("0x19"),null,"accept")),t._descriptionFactory[ii("0x10")]((t=>this[ii("0x13")](t)))}[ii("0x16")](t,e){const n=this[ii("0xe")][ii("0x6")][ii("0x1b")]("TrackChangesEditing"),o=this[ii("0xe")].model[ii("0x15")].selection[ii("0x5")]();this[ii("0xe")].model[ii("0x7")]((()=>{let s=o[ii("0x11")]("src");const r=this[ii("0xe")][ii("0x6")][ii("0x1b")](ii("0x8")).me;for(const t of n[ii("0x18")]({skipNotAttached:!0})){const e=t[ii("0xb")]();if("replaceImageSource"===t[ii("0xa")]&&e===o){t[ii("0xf")]!==r&&t[ii("0x17")](),s=t[ii("0x0")].commandParams[0].source;break}}t(e),n[ii("0x4")](o,{commandName:ii("0x1"),commandParams:[{source:s}]},[],ii("0x1"))}))}[ii("0x13")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ii("0x1c")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this.editor.locale,t)}}}}const ai=["track_changes","value","TrackChangesEditing","importWord","_trackChangesExecuted","lowest","trackChanges","afterInit","plugins","Users","_handleImportedData","commands","execute","forEach","_trackChangesValueDuringImport","dataInsert","collaboration_features","editor","enableCommand","get"];var ci,li;ci=ai,li=436,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{constructor(t){super(t),this[di("0x12")]=!1,this._trackChangesExecuted=!1}[di("0xb")](){const t=this.editor,e=t[di("0xf")][di("0x3")]("importWord"),n=t[di("0xf")][di("0x3")](di("0xa"));e&&(e.on("execute",((t,[,e])=>{this[di("0x12")]=n[di("0x5")],e[di("0x0")][di("0x4")]=!this[di("0x12")]}),{priority:"high"}),this.listenTo(e,di("0x13"),this[di("0xe")].bind(this)),this.listenTo(e,di("0x13"),(()=>{this[di("0x8")]&&(n[di("0x10")](),this[di("0x8")]=!1)}),{priority:di("0x9")}),t[di("0xc")][di("0x3")](di("0x6"))[di("0x2")](di("0x7")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[di("0x1")][di("0xf")][di("0x3")]("trackChanges"),s=o.value;this._trackChangesValueDuringImport!==s&&(o[di("0x10")](),this[di("0x8")]=!0),n&&n[di("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[di("0xc")].get(di("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[di("0x1")][di("0xc")][di("0x3")]("TrackChangesEditing")._setSuggestionData(s)}))}}const gi=["checkAttribute","getItemLabel","TrackChangesEditing","outdent","has","schema","outdentBlock","format","IndentEditing","selection","indentBlock","from","enableCommand","model","plugins","registerDescriptionCallback","*Indent:* %0","getItems","blockIndent","commandName","change","editor","markBlockFormat","document","indent"];var mi,fi;mi=gi,fi=445,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins.get(hi("0x7"));t[hi("0x13")][hi("0x9")](hi("0xd"))&&(e[hi("0x11")](hi("0x4")),e[hi("0x11")](hi("0x8")));const n=t.locale;if(t[hi("0x13")][hi("0x9")]("IndentBlock")){for(const n of[hi("0xf"),hi("0xb")])e[hi("0x11")](n,(()=>{const o=Array[hi("0x10")](this[hi("0x1")][hi("0x12")][hi("0x3")][hi("0xe")].getSelectedBlocks()).filter((t=>this[hi("0x1")].model[hi("0xa")][hi("0x5")](t,hi("0x17"))));t[hi("0x12")][hi("0x0")]((()=>{for(const t of o)e[hi("0x2")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0xf")})}))}));e._descriptionFactory[hi("0x14")]((t=>{const{data:o}=t;if(!o)return;if(hi("0xf")!=o[hi("0x18")]&&hi("0xb")!=o.commandName)return;const s=t[hi("0x16")]()[0],r=e._descriptionFactory[hi("0x6")](s);return hi("0xf")==o[hi("0x18")]?{type:hi("0xc"),content:Yo(n,hi("0x15"),r)}:hi("0xb")==o[hi("0x18")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var bi,Ei,_i=["requires","editor","get","enableCommand","TrackChangesEditing","init"];bi=_i,Ei=370,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x2")](){return[Js.Input]}[Ti("0x1")](){this[Ti("0x3")].plugins[Ti("0x4")](Ti("0x0"))[Ti("0x5")]("input")}}const yi=["LinkEditing","link","getFirstPosition","document","isCollapsed","TrackChangesEditing","get","format","selection","getFirstRange","editor","change","model","afterInit","enableCommand","*Set link:* %0","hasAttribute","unlink","*Remove link*","getAttribute","commandName","_descriptionFactory","has","plugins","markInlineFormat","linkHref"];var ki,Ai;ki=yi,Ai=289,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xa")](){const t=this[vi("0x7")];if(!t[vi("0x14")][vi("0x13")](vi("0x17")))return;const e=t[vi("0x14")][vi("0x3")](vi("0x2"));e[vi("0xb")](vi("0x18"),((n,o)=>{const s=t.model.document[vi("0x5")];let r=[];if(s[vi("0x1")]){if(!s[vi("0xd")]("linkHref"))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0x19")](),"linkHref",s[vi("0x10")](vi("0x16")),t[vi("0x9")]);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x9")][vi("0x8")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:vi("0x18"),commandParams:[o]})}))})),e[vi("0xb")](vi("0xe"),(()=>{const n=this[vi("0x7")][vi("0x9")],o=n[vi("0x0")].selection;n[vi("0x8")]((()=>{let n=[];n=o[vi("0x1")]?[(0,Js.findAttributeRange)(o[vi("0x19")](),vi("0x16"),o[vi("0x10")](vi("0x16")),t[vi("0x9")])]:Es("linkHref",o[vi("0x6")](),t[vi("0x9")]);for(const t of n)e[vi("0x15")](t,{commandName:vi("0xe"),commandParams:[]})}))})),e[vi("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:vi("0x4"),content:Yo(o,vi("0xc"),'"'+t+'"')}}return vi("0xe")==n[vi("0x11")]?{type:vi("0x4"),content:Yo(o,vi("0xf"))}:void 0}}))}}const Ii=["isObject","end","previousSibling","before","todo","listType","commandName","paragraph","change","enableCommand","value","_descriptionFactory","todoListChecked","registerElementLabel","editor","*Indent:* %0","getSelectedBlocks","listIndent","commandParams","getAttribute","List","locale","filter","forceValue","numberedList","execute","*Check item*","*Uncheck item*","checkChild","createPositionAt","ListEditing","slice","listItem","get","ELEMENT_NUMBERED_LIST","numbered","commands","indentList","checkTodoList","_selectedElements","registerDescriptionCallback","*Change to:* %0","TrackChangesEditing","name","bulleted","selection","push","findIndex","TodoListEditing","has","plugins","add","from","model","ELEMENT_TODO_LIST","todoList","ELEMENT_LIST_ITEM","bulletedList","schema","outdentList","blockName","format","element","createRange","nextSibling","markBlockFormat"];var Si,Li;Si=Ii,Li=387,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{afterInit(){const t=this[Ni("0x17")],e=t[Ni("0x1e")];if(!t[Ni("0x3b")][Ni("0x3a")](Ni("0x27")))return;const n=t[Ni("0x3b")][Ni("0x2a")](Ni("0x33")),o=t[Ni("0x3b")].has(Ni("0x39"));function s(e){return()=>{const o=t.model.document[Ni("0x36")],s=t[Ni("0x2d")][Ni("0x2a")](e);if(s[Ni("0x13")])return void t[Ni("0x22")](Ni("0x10"),{});const r=e[Ni("0x28")](0,-4),i=function(t,e,n){let o=Array[Ni("0x3d")](t).filter((t=>{return e=t,(o=n)[Ni("0x25")](e.parent,Ni("0x29"))&&!o[Ni("0x9")](e);var e,o}));o=o[Ni("0x1f")]((t=>!t.is(Ni("0x5"),"listItem")||t[Ni("0x1c")](Ni("0xe"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x5"),Ni("0x29"))?s[Ni("0x3c")](wi(t)):s[Ni("0x3c")](t);return Array[Ni("0x3d")](s)}(o[Ni("0x19")](),r,t[Ni("0x3e")][Ni("0x1")]);t[Ni("0x3e")][Ni("0x11")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x13")]}],formatGroupId:Ni("0x3")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x3d")](t);const n=e[Ni("0x38")]((t=>Ni("0x29")!=t[Ni("0x34")]));return n>-1&&(e=e.slice(0,n)),e}(t.model.document[Ni("0x36")][Ni("0x19")]()),s=t[Ni("0x3e")][Ni("0x6")](t[Ni("0x3e")][Ni("0x26")](o[0],Ni("0xc")),t.model[Ni("0x26")](o[o.length-1],Ni("0xa")));t.model[Ni("0x11")]((()=>{n[Ni("0x8")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x7")];for(;t&&t.getAttribute("listIndent")>n[Ni("0x1c")](Ni("0x1a"));)e[Ni("0x3c")](t),t=t[Ni("0x7")]}return Array[Ni("0x3d")](e)}(o))}))}}n.enableCommand(Ni("0x21"),s(Ni("0x21"))),n[Ni("0x12")](Ni("0x0"),s("bulletedList")),o&&n[Ni("0x12")](Ni("0x40"),s(Ni("0x40"))),n[Ni("0x12")]("indentList",r("indentList")),n[Ni("0x12")]("outdentList",r(Ni("0x2"))),o&&n.enableCommand(Ni("0x2f"),(()=>{const e=t[Ni("0x2d")][Ni("0x2a")](Ni("0x2f")),o=Array[Ni("0x3d")](e[Ni("0x30")]);o[Ni("0x1f")]((t=>t[Ni("0x1c")](Ni("0x15"))!=e[Ni("0x13")])),t[Ni("0x3e")][Ni("0x11")]((()=>{for(const t of o)n[Ni("0x8")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ni("0x13")]}]})}))})),n._descriptionFactory[Ni("0x16")](Ni("0x29"),(t=>Yo(e,Ni("0x41"),t))),n[Ni("0x14")][Ni("0x31")]((t=>{const{data:n}=t;if(n){if(Ni("0x21")==n[Ni("0xf")]||Ni("0x0")==n.commandName||Ni("0x40")==n[Ni("0xf")])switch(n[Ni("0xf")].replace(Ni("0x1d"),"")){case Ni("0x35"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x2c"):return o(Yo(e,Ni("0x2b")));case Ni("0xd"):return o(Yo(e,Ni("0x3f")))}if(Ni("0x2e")==n[Ni("0xf")])return{type:Ni("0x4"),content:Yo(e,Ni("0x18"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x2")==n[Ni("0xf")])return{type:Ni("0x4"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0x41")))};if("checkTodoList"==n[Ni("0xf")])return n[Ni("0x1b")][0][Ni("0x20")]?{type:Ni("0x4"),content:Yo(e,Ni("0x23"))}:{type:Ni("0x4"),content:Yo(e,Ni("0x24"))}}function o(t){return{type:Ni("0x4"),content:Yo(e,Ni("0x32"),t)}}}))}}function wi(t){const e=t[Ni("0x1c")](Ni("0x1a"));if(0==e)return t;let n=t;for(;t[Ni("0xb")]&&t.previousSibling.is("element","listItem");){const o=t[Ni("0xb")].getAttribute(Ni("0x1a"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ni("0xb")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x5"),Ni("0x29"))&&t[Ni("0x1c")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ni("0x29")==n[Ni("0x34")]&&n[Ni("0x1c")]("listIndent")==t.getAttribute(Ni("0x1a"));)e[Ni("0x37")](n),n=n[Ni("0x7")]}return e}const Fi=["numbered","push","listReversed","locale","forward","handleDescriptions","config","getSelectedBlocks","backward","*Format:* set order to regular","bind","createRange","list.properties","toUpperCase","_getSuggestionBlocks","handleListStyleCommand","*Format:* set order to reversed","getFirstPosition","styles","type","plugins","ELEMENT_","element","change","flat","markMultiRangeBlockFormat","format","get","listType","getLastPosition","listStyle","unshift","_getTranslationKeyForListStyle","ListUtils","reversed","listItem","enableCommand","getAttribute","map","TrackChangesEditing","ListPropertiesEditing","replace","editor","handleListStartCommand","parent","from","length","_getSuggestionBlocksForListStyle","createPositionAt","getListTypeFromListStyleType","model","startIndex","commandParams","listStart","before","selection","document","handleListReversedCommand","getSiblingNodes"];var Pi,Di;Pi=Fi,Di=332,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this.editor[Bi("0x2a")].has(Bi("0x3")))return;const t=this[Bi("0x5")][Bi("0x1c")].get(Bi("0x22")),e=this.editor.plugins[Bi("0x31")](Bi("0x2"));t[Bi("0x28")]&&e[Bi("0x3a")](Bi("0x34"),this[Bi("0x25")][Bi("0x20")](this)),t[Bi("0x38")]&&e[Bi("0x3a")](Bi("0x18"),this[Bi("0x14")][Bi("0x20")](this)),t[Bi("0xe")]&&e[Bi("0x3a")](Bi("0x10"),this[Bi("0x6")][Bi("0x20")](this)),e._descriptionFactory.registerDescriptionCallback(this[Bi("0x1b")][Bi("0x20")](this))}[Bi("0x25")](t,e={}){const n=this.editor.plugins.get(Bi("0x2")),o=this._getSuggestionBlocksForListStyle();this.editor[Bi("0xd")][Bi("0x2d")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Bi("0x34"),commandParams:[{type:e[Bi("0x29")]}],formatGroupId:Bi("0x34")})}))}[Bi("0x14")](t,e={}){const n=this[Bi("0x5")][Bi("0x2a")][Bi("0x31")](Bi("0x2")),o=this[Bi("0x24")]((t=>t.is("element",Bi("0x39"))&&"numbered"===t[Bi("0x0")](Bi("0x32"))));if(o.length<1)return;const s=o[Bi("0x1")]((t=>this[Bi("0x5")][Bi("0xd")][Bi("0x21")](this[Bi("0x5")][Bi("0xd")][Bi("0xb")](t,"before"),this.editor[Bi("0xd")][Bi("0xb")](t,0))));this[Bi("0x5")][Bi("0xd")][Bi("0x2d")]((()=>{n[Bi("0x2f")](s,{commandName:Bi("0x18"),commandParams:[{reversed:e[Bi("0x38")]}],formatGroupId:Bi("0x18")})}))}[Bi("0x6")](t,e={}){const n=this.editor[Bi("0x2a")][Bi("0x31")](Bi("0x2")),o=this[Bi("0x24")]((t=>t.is(Bi("0x2c"),Bi("0x39"))&&Bi("0x16")===t.getAttribute("listType")));if(o[Bi("0x9")]<1)return;const s=o[Bi("0x1")]((t=>this.editor[Bi("0xd")][Bi("0x21")](this.editor[Bi("0xd")][Bi("0xb")](t,Bi("0x11")),this[Bi("0x5")].model[Bi("0xb")](t,0))));this[Bi("0x5")][Bi("0xd")].change((()=>{n[Bi("0x2f")](s,{commandName:Bi("0x10"),commandParams:[{startIndex:e[Bi("0xe")]}],formatGroupId:"listStart"})}))}[Bi("0x1b")](t){const e=this[Bi("0x5")][Bi("0x19")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:Bi("0x30"),content:Yo(e,o,Yo(e,this[Bi("0x36")](n.commandParams[0][Bi("0x29")])))};break;case Bi("0x18"):o=n[Bi("0xf")][0][Bi("0x38")]?Bi("0x26"):Bi("0x1f"),s={type:"format",content:Yo(e,o)};break;case Bi("0x10"):o="*Format:* set start index to %0",s={type:Bi("0x30"),content:Yo(e,o,n[Bi("0xf")][0][Bi("0xe")])}}return s}[Bi("0xa")](){var t,e,n,o;const s=this[Bi("0x5")][Bi("0x2a")][Bi("0x31")]("ListUtils");let r=Array[Bi("0x8")](this[Bi("0x5")].model[Bi("0x13")][Bi("0x12")][Bi("0x1d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x2c"),Bi("0x39")))&&r[Bi("0x35")](...s[Bi("0x15")](this[Bi("0x5")][Bi("0xd")][Bi("0x13")][Bi("0x12")][Bi("0x27")](),Bi("0x1e"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(Bi("0x2c"),Bi("0x39")))&&r[Bi("0x17")](...s[Bi("0x15")](this[Bi("0x5")][Bi("0xd")][Bi("0x13")].selection[Bi("0x33")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Bi("0xd")][Bi("0x13")][Bi("0x12")][Bi("0x27")]())||void 0===n?void 0:n[Bi("0x7")])||void 0===o?void 0:o.is(Bi("0x2c"),"listItem"))&&(r=r.filter((t=>t.is(Bi("0x2c"),Bi("0x39"))))),r}[Bi("0x24")](t){const e=this[Bi("0x5")].plugins[Bi("0x31")](Bi("0x37"));let n=Array.from(this.editor[Bi("0xd")][Bi("0x13")].selection[Bi("0x1d")]()).filter(t)[Bi("0x1")]((t=>{const n=this[Bi("0x5")][Bi("0xd")][Bi("0xb")](t,0);return[...e[Bi("0x15")](n,"backward"),...e[Bi("0x15")](n,Bi("0x1a"))]}))[Bi("0x2e")]();return n=[...new Set(n)],n}[Bi("0x36")](t){return Bi("0x2b")+this[Bi("0x5")].plugins.get("ListUtils")[Bi("0xc")](t)[Bi("0x23")]()+"_LIST_"+t[Bi("0x23")]()[Bi("0x4")](/-/g,"_")}}const Ui=["media","get","data","afterInit","stop","enableCommand","for","registerElementLabel","elementToElement","attribute:url:media","conversion","editor","div","high","TrackChangesEditing","plugins","has","createEmptyElement","MediaEmbedEditing","mediaEmbed","dataDowncast","ELEMENT_MEDIA","_descriptionFactory","showSuggestionHighlights"];var Gi,Hi;Gi=Ui,Hi=262,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x5")](){const t=this[zi("0xd")];if(!t.plugins[zi("0x12")](zi("0x14")))return;const e=t[zi("0x11")][zi("0x3")](zi("0x10")),n=t.locale;e[zi("0x7")](zi("0x15")),e[zi("0x0")][zi("0x9")](zi("0x2"),(t=>Yo(n,zi("0x17"),t))),t[zi("0xc")][zi("0x8")](zi("0x16"))[zi("0xa")]({model:zi("0x2"),view:(t,{writer:e,options:n})=>{if(n[zi("0x1")])return e[zi("0x13")](zi("0xe"))},converterPriority:zi("0xf")}),t[zi("0x4")].downcastDispatcher.on(zi("0xb"),((t,e,n)=>{n.options[zi("0x1")]&&t[zi("0x6")]()}),{priority:zi("0xf")})}}const Vi=["afterInit","editor","plugins","mention","MentionEditing"];var Ki,qi;Ki=Vi,qi=173,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x2")](){const t=this[Xi("0x3")];t[Xi("0x4")].has(Xi("0x1"))&&t.plugins.get("TrackChangesEditing").enableCommand(Xi("0x0"))}}const Ji=["get","TrackChangesEditing","afterInit","pageBreak","locale","plugins","enableCommand","ELEMENT_PAGE_BREAK","editor","_descriptionFactory"];var Qi,Zi;Qi=Ji,Zi=406,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x6")](){const t=this[Yi("0x2")];if(!t.plugins.has("PageBreakEditing"))return;t[Yi("0x9")][Yi("0x4")](Yi("0x5"))[Yi("0x0")](Yi("0x7"));const e=t[Yi("0x9")].get(Yi("0x5")),n=t[Yi("0x8")];e[Yi("0x3")].registerElementLabel(Yi("0x7"),(t=>Yo(n,Yi("0x1"),t)))}}const ex=["writer","isTouching","mapper","addMarker:suggestion:insertion","checkChild","isLimit","consume","nodeAfter","TrackChangesEditing","selection","downcastDispatcher","plugins","insert","data","bindElementToMarker","ELEMENT_PARAGRAPH","editor","markerName","get","*Change to:* %0","getFirstRange","locale","enableCommand","createUIElement","end","isBlock","$text","model","insertParagraph","showSuggestionHighlights","markerRange","activeMarkers","parent","_descriptionFactory","schema","getSelectedBlocks","options","*Insert:* %0","change","isObject","blockName","highest","from","markBlockFormat","Paragraph","getItemLabel","filter","ck-suggestion-marker-split","paragraph","afterInit","consumable","start","insertion","editing","addClass","registerElementLabel","format","commandName"];var nx,ox;nx=ex,ox=225,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x38")](){const t=this.editor;if(!t[sx("0x12")].has(sx("0x33")))return;const e=t[sx("0x1c")],n=t.plugins[sx("0x19")](sx("0xf"));n[sx("0x28")][sx("0x4")](sx("0x37"),(t=>Yo(e,sx("0x16"),t))),n.enableCommand(sx("0x37"),((e,o={})=>{const s=t[sx("0x22")].document,r=o[sx("0x10")]||s[sx("0x10")],i=Array[sx("0x31")](r[sx("0x2a")]())[sx("0x35")]((t=>{return e=t,(n=this[sx("0x17")][sx("0x22")][sx("0x29")]).checkChild(e[sx("0x27")],"paragraph")&&!n[sx("0x2e")](e)&&sx("0x37")!=e.name;var e,n}));t.model[sx("0x2d")]((()=>{for(const t of i)n[sx("0x32")](t,{commandName:sx("0x37"),commandParams:[],formatGroupId:sx("0x2f")},_s(t))}))})),n[sx("0x28")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x37")==n[sx("0x6")])return{type:sx("0x5"),content:Yo(e,sx("0x1a"),Yo(e,sx("0x16")))}})),n[sx("0x1d")](sx("0x23")),t[sx("0x2")][sx("0x11")].on(sx("0xa"),ix(t),{priority:sx("0x30")}),t[sx("0x14")][sx("0x11")].on(sx("0xa"),((e,n,o)=>{o[sx("0x2b")][sx("0x24")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x30")});const o=n[sx("0x28")];o.registerDescriptionCallback((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[sx("0x1b")]();if(!s[sx("0x8")](r)||!s.nodeAfter)return;const i=t.model[sx("0x29")],x=s[sx("0xe")];return i[sx("0x20")](x)&&!i[sx("0xc")](x)&&i[sx("0xb")](x,sx("0x21"))?{type:sx("0x1"),content:Yo(e,sx("0x2c"),o[sx("0x34")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x12")][sx("0x19")](sx("0xf")),i=o[sx("0x25")][sx("0x0")],x=o[sx("0x25")][sx("0x1f")],a=t[sx("0x22")].schema;if(!i.isTouching(x)||!i[sx("0xe")])return;const c=i[sx("0xe")];if(a[sx("0x20")](c)&&!a.isLimit(c)&&a[sx("0xb")](c,sx("0x21"))){if(!s[sx("0x39")][sx("0xd")](o[sx("0x25")],n.name))return;const t=s.writer[sx("0x1e")]("span",{class:sx("0x36")}),i=s[sx("0x9")].toViewPosition(x);e&&r[sx("0x26")].includes(o[sx("0x18")])&&s[sx("0x7")][sx("0x3")]("ck-suggestion-marker--active",t),s[sx("0x7")][sx("0x13")](i,t),s[sx("0x9")][sx("0x15")](t,o.markerName)}}}const xx=["afterInit","plugins","format","model","isFormatting","getAttributeProperties","TrackChangesEditing","schema","from","isCollapsed","has","locale","enableCommand","_descriptionFactory","*Remove all formatting*","get","registerDescriptionCallback","selection","RemoveFormatEditing","document","getRanges","removeFormat","getItems"];var ax,cx;ax=xx,cx=298,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{[lx("0x1")](){const t=this.editor;if(!t[lx("0x2")][lx("0xb")](lx("0x13")))return;const e=t[lx("0x2")][lx("0x10")](lx("0x7"));e[lx("0xd")](lx("0x16"),(n=>{const o=t[lx("0x4")][lx("0x14")][lx("0x12")];o[lx("0xa")]?n():t[lx("0x4")].change((()=>{const n=Array[lx("0x9")](o[lx("0x15")]());for(const o of n)for(const n of o[lx("0x0")]())ux(n,t[lx("0x4")][lx("0x8")])&&e.markInlineFormat(t[lx("0x4")].createRangeOn(n),{commandName:lx("0x16"),commandParams:[]})}))})),e[lx("0xe")][lx("0x11")]((e=>{const{data:n}=e;if(n&&lx("0x16")==n.commandName)return{type:lx("0x3"),content:Yo(t[lx("0xc")],lx("0xf"))}}))}}function ux(t,e){for(const[n]of t.getAttributes()){const t=e[lx("0x6")](n);if(t&&t[lx("0x5")])return!0}return!1}const gx=["has","discardSelectedSuggestions","get","plugins","RestrictedEditingModeEditing","trackChanges","acceptSelectedSuggestions","enableCommand","goToPreviousRestrictedEditingException","afterInit","acceptAllSuggestions","goToNextRestrictedEditingException","discardSuggestion","editor","TrackChangesEditing"];var mx,fx;mx=gx,fx=388,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xb")](){const t=this[hx("0x0")];if(!t[hx("0x5")][hx("0x2")](hx("0x6")))return;const e=t[hx("0x5")][hx("0x4")](hx("0x1"));e[hx("0x9")](hx("0xa")),e.enableCommand(hx("0xd"));const n=t[hx("0x5")].get(hx("0x6"));n[hx("0x9")](hx("0x7")),n[hx("0x9")]("acceptSuggestion"),n.enableCommand(hx("0xe")),n[hx("0x9")](hx("0xc")),n.enableCommand("discardAllSuggestions"),n.enableCommand(hx("0x8")),n[hx("0x9")](hx("0x3"))}}const bx=["softBreak","writer","editing","mapper","span","deletion","markerRange","getItems","toViewPosition","enableCommand","plugins","merge","activeMarkers","includes","options","element","test","shiftEnter","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","markerName","get","downcastDispatcher","createPositionBefore","high","locale","consumable","showSuggestionHighlights","ck-suggestion-marker-","ck-suggestion-marker--active","createUIElement","split","requires","insert","init"];var Ex,_x;Ex=bx,_x=439,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0xd")](){return[xr.ShiftEnter]}[Tx("0xf")](){const t=this.editor,e=t[Tx("0x1a")][Tx("0x2")]("TrackChangesEditing");e[Tx("0x19")](Tx("0x21")),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",yx(t),{priority:"high"}),t[Tx("0x12")][Tx("0x3")].on(Tx("0x0"),yx(t),{priority:Tx("0x5")}),t.data[Tx("0x3")].on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x1e")][Tx("0x8")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel(Tx("0x10"),(e=>Yo(t[Tx("0x6")],Tx("0x22"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x1a")][Tx("0x2")]("TrackChangesEditing");if(!s[Tx("0x7")][Tx("0x20")](o[Tx("0x16")],n.name))return;const i=t.model;for(const t of o[Tx("0x16")][Tx("0x17")]()){if(!t.is(Tx("0x1f"),Tx("0x10")))continue;const n=Tx("0x15")==o.markerName.split(":")[1]?Tx("0x1b"):Tx("0xc"),x=s[Tx("0x11")][Tx("0xb")](Tx("0x14"),{class:Tx("0x9")+n}),a=s[Tx("0x13")][Tx("0x18")](i[Tx("0x4")](t));e&&r[Tx("0x1c")][Tx("0x1d")](o[Tx("0x1")])&&s[Tx("0x11")].addClass(Tx("0xa"),x),s.writer[Tx("0xe")](a,x),s[Tx("0x13")].bindElementToMarker(x,o[Tx("0x1")])}}}const kx=["from","markInlineFormat","restrictedEditingException","forceValue","getRanges","afterInit","document","FORMAT_RESTRICTED_DISABLED","has","format","_descriptionFactory","TrackChangesEditing","commands","enableCommand","locale","commandName","get","plugins","registerDescriptionCallback"];var Ax,vx;Ax=kx,vx=284,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x6")](){const t=this.editor,e=t.model,n=t[Rx("0xf")];if(!t[Rx("0x12")][Rx("0x9")]("StandardEditingModeEditing"))return;const o=t.plugins.get(Rx("0xc")),s=Rx("0x3"),r=t[Rx("0xd")][Rx("0x11")](s);o[Rx("0xe")](s,((t,n={})=>{const i=e[Rx("0x7")].selection;if(i.isCollapsed)return void t(n);const x=void 0!==n[Rx("0x4")]?n[Rx("0x4")]:!r.value;e.change((()=>{const t=Array[Rx("0x1")](i[Rx("0x5")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x2")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xb")][Rx("0x0")]((t=>{const{data:e}=t;if(e&&e[Rx("0x10")]==s)return e.commandParams[0][Rx("0x4")]?{type:Rx("0xa"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Rx("0x8"))}}))}}const Sx=["getAncestors","forceValue","enabledStyles","value","registerDescriptionCallback","getItems","TrackChangesEditing","style","element","document","change","model","_getRangesWithClasses","isCollapsed","get","commandName","getDefinitionsForView","afterInit","toLowerCase","modelElements","style.definitions","name","*Remove format:* %0","isBlock","_getStyleDefinition","selection","find","style:","styleName","config","inline","locale","plugins","from","includes","every","classes","createRangeOn","format","Style","_descriptionFactory","markInlineFormat","enableCommand","StyleUtils","add","push","getRanges","editor","getAttribute","commandParams","normalizeConfig"];var Lx,Nx;Lx=Sx,Nx=441,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{[Mx("0x23")](){const t=this[Mx("0xe")];if(!t[Mx("0x32")].has(Mx("0x6")))return;const e=t.commands[Mx("0x20")]("style"),n=t[Mx("0x32")][Mx("0x20")](Mx("0x18")),o=t[Mx("0x31")],s=t[Mx("0x32")][Mx("0x20")]("DataSchema"),r=t.plugins[Mx("0x20")](Mx("0xa"))[Mx("0x11")](s,t[Mx("0x2f")][Mx("0x20")](Mx("0x26")));n[Mx("0x9")](Mx("0x19"),((o,{styleName:i})=>{const x=t[Mx("0x1d")][Mx("0x1b")][Mx("0x2b")],a=this[Mx("0x2a")](i,r);if(!a)return;if(!e[Mx("0x14")][Mx("0x1")](i))return;if(x[Mx("0x1f")]&&!a[Mx("0x29")])return void o({styleName:i});const c=!e[Mx("0x15")][Mx("0x1")](a[Mx("0x27")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Mx("0x12")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Mx("0x1")](o[Mx("0x27")])){n[Mx("0xb")](o);break}}return n}(x.getSelectedBlocks(),a[Mx("0x25")]);t[Mx("0x1d")].change((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Mx("0x2d")+i})}))}else{let e=Array.from(x[Mx("0xd")]());if(!c){const n=Array[Mx("0x0")](s[Mx("0x22")](a[Mx("0x1a")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,a[Mx("0x3")],n);o.push(...e)}e=o}t[Mx("0x1d")][Mx("0x1c")]((()=>{for(const t of e)n[Mx("0x8")](t,{commandName:Mx("0x19"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Mx("0x7")][Mx("0x16")]((t=>{const{data:e}=t;if(e&&"style"===e[Mx("0x21")])return e[Mx("0x10")][0][Mx("0x13")]?{type:Mx("0x5"),content:Yo(o,"*Format:* %0",e[Mx("0x10")][0][Mx("0x2e")][Mx("0x24")]())}:{type:"format",content:Yo(o,Mx("0x28"),e.commandParams[0][Mx("0x2e")][Mx("0x24")]())}}))}[Mx("0x2a")](t,e){let n=e.block.find((e=>e[Mx("0x27")]===t));return n||(n=e[Mx("0x30")][Mx("0x2c")]((e=>e[Mx("0x27")]===t))),n}[Mx("0x1e")](t,e,n,o){const s=[];for(const r of e[Mx("0x17")]()){const e=r[Mx("0xf")](o);e&&n[Mx("0x2")]((t=>e[Mx("0x3")][Mx("0x1")](t)))&&s[Mx("0xc")](t[Mx("0x4")](r))}return s}}const Ox=["ELEMENT_TABLE_COLUMN","colspan","*Insert:* %0","_getCoordsForCells","oldRange","getColumnIndexes","getItems","element","end","toLowerCase","getFirstRange","get","selectTableColumn","removeClass","position","minColumn","add","locale","insert","_descriptionFactory","isTouching","maxColumn","createPositionAt","from","_suggestionFactory","includes","registerPostFixer","removeTableRow","removeTableColumn","length","*Remove:* %0","document","discard","getCellLocation","item","ELEMENT_TABLE_COLUMN_WITH_TEXT","filter","editor","ELEMENT_TABLE_ROW","last","type","_tableSuggestions","nodeBefore","maxRow","isEqual","substr","rowspan","selectTableRow","plugins","name","markMultiRangeInsertion","change:data","order","ELEMENT_TABLE_ROW_WITH_TEXT","cell","_getSuggestionCoords","registerCustomCallback","every","getSuggestion","batch","nodeAfter","$textProxy","insertion","createRangeOn","ELEMENT_TABLE","left","forceValue","max","_setupColumnsRowsFixing","execute","getRanges","low","differ","getContainedElement","rootName","getRowIndexes","data","detach","getAttribute","showSuggestionHighlights","min","map","registerDescriptionCallback","mapper","writer","minRow","setSelection","tableColumn","MAX_SAFE_INTEGER","addMarker:suggestion","_tablePostFixingSubtypes","span","hasAttribute","push","options","enableCommand","commands","enqueueChange","tableCell","change","addRange","classes","some","first","fromRange","tableRow","insertTableColumnLeft","accept","has","highest","join","TableUtils","_acceptFormatSuggestionCallbackFactory","createTableWalker","getChanges","root","subType","insertTableRowAbove","refresh","$graveyard","start","createRangeIn","insertTableColumnRight","MIN_SAFE_INTEGER","insertTable","table","model","findAncestor","deletion","above","selection","ELEMENT_TABLE_WITH_TEXT","getSelectionAffectedTableCells"];var Fx,Px;Fx=Ox,Px=235,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x79")]=[Dx("0x3"),Dx("0x76")],this[Dx("0x48")]=new Set}afterInit(){const t=this[Dx("0x44")],e=t[Dx("0x18")][Dx("0x3e")][Dx("0x1c")];if(!t[Dx("0x4f")][Dx("0x6")]("TableEditing"))return;const n=t[Dx("0x30")],o=t[Dx("0x4f")][Dx("0x2a")]("TrackChangesEditing"),s=t[Dx("0x4f")][Dx("0x2a")](Dx("0x9"));o[Dx("0x32")].registerElementLabel(Dx("0x17"),(t=>Yo(n,Dx("0x5f"),t))),this[Dx("0x63")](),o[Dx("0x7e")](Dx("0x16")),o[Dx("0x7e")](Dx("0x4e")),o.enableCommand(Dx("0x2b"));for(const n of[Dx("0xf"),"insertTableRowBelow"]){const r=t[Dx("0x7f")].get(n);o[Dx("0x7e")](n,(n=>{t[Dx("0x18")][Dx("0x82")]((t=>{n();const i=Dx("0x1b")===r[Dx("0x53")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x6a")](x),c=i?a[Dx("0x1")]-1:a[Dx("0x46")]+1,l=x[0][Dx("0x19")]("table"),d=s[Dx("0xb")](l,{startRow:c,endRow:c}),u=Array[Dx("0x36")](d)[Dx("0x70")]((e=>t.createRangeOn(e[Dx("0x55")])));o[Dx("0x51")](u,Dx("0x3"))}))}))}for(const n of[Dx("0x4"),Dx("0x14")]){const r=t[Dx("0x7f")][Dx("0x2a")](n);o[Dx("0x7e")](n,(n=>{t[Dx("0x18")][Dx("0x82")]((t=>{n();const i=Dx("0x60")===r[Dx("0x53")],x=s[Dx("0x1e")](e),a=s[Dx("0x24")](x),c=i?a[Dx("0x1")]-1:a[Dx("0x46")]+1,l=x[0][Dx("0x19")](Dx("0x17")),d=s[Dx("0xb")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x36")](d).map((e=>t[Dx("0x5e")](e[Dx("0x55")])));o[Dx("0x51")](u,Dx("0x76"))}))}))}for(const n of[Dx("0x3a"),Dx("0x3b")]){const r=n[Dx("0x4c")](11),i=r[Dx("0x28")](),x=i[Dx("0x4c")](0,3)+Dx("0x7a"),a=Dx("0x17")+r,c=Dx("0x6f")+r,l=Dx("0x62")+r;o[Dx("0x7e")](n,(()=>{t[Dx("0x18")].change((t=>{const r=s[Dx("0x1e")](e),d=r[0][Dx("0x19")]("table");let u;if(Dx("0x3a")==n){const t=s[Dx("0x6a")](r);u={startRow:t[Dx("0x1")],endRow:t[Dx("0x46")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);u={startColumn:t[Dx("0x1")],endColumn:t[Dx("0x46")],includeAllSlots:!0}}const g=s[Dx("0xb")](d,u),m=Array[Dx("0x36")](g)[Dx("0x70")]((({cell:t})=>t)),f=jx(m[Dx("0x43")]((t=>t.hasAttribute(x)))),h=jx(m[Dx("0x43")]((t=>!t[Dx("0x7b")](x))))[Dx("0x70")]((e=>t[Dx("0x5e")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[Dx("0xe")]||Dx("0x76")==p[Dx("0xe")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Dx("0x65")]())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t)));t.model[Dx("0x82")]((e=>{const s=e[Dx("0x5a")];n=n[Dx("0x43")]((t=>Dx("0x11")!=t[Dx("0xd")][Dx("0x69")])),e[Dx("0x75")](n),t.commands[Dx("0x2a")](Dx("0x3a")).refresh(),t[Dx("0x64")]("removeTableRow",{forceDefaultExecution:!0}),t[Dx("0x18")][Dx("0x80")]((()=>{t[Dx("0x18")][Dx("0x80")](s,(t=>{const e=o[Dx("0x43")]((t=>Dx("0x11")!=t.root[Dx("0x69")]));e[Dx("0x3c")]>0&&t[Dx("0x75")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x18")][Dx("0x82")]((o=>{const s=Array.from(e[Dx("0x65")]())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t))),r=[];for(const t of n)for(const e of t[Dx("0x25")]({shallow:!0}))r[Dx("0x7c")](e);for(const e of r)"$graveyard"!=e[Dx("0xd")].rootName&&(o[Dx("0x75")](o[Dx("0x35")](e,0)),t[Dx("0x7f")][Dx("0x2a")](Dx("0x3b"))[Dx("0x10")](),t[Dx("0x64")](Dx("0x3b"),{forceDefaultExecution:!0}));const x=s[Dx("0x43")]((t=>Dx("0x11")!=t.root.rootName));x[Dx("0x3c")]>0&&o[Dx("0x75")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Dx("0x58")]((e=>t.some((t=>t[Dx("0x27")][Dx("0x4b")](e[Dx("0x12")])||e[Dx("0x27")].isEqual(t[Dx("0x12")])))))}function l(t,e){return t[Dx("0x0")]((t=>e[Dx("0x0")]((e=>t[Dx("0x27")][Dx("0x33")](e[Dx("0x12")])))))}t[Dx("0x6b")].downcastDispatcher.on(Dx("0x78"),((t,e,n)=>{if(!n[Dx("0x7d")][Dx("0x6e")])return;const o=e[Dx("0x41")];if(!o)return;const s=n[Dx("0x72")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&Dx("0x81")===o[Dx("0x50")]&&(0,x.setHighlightHandling)(s,n[Dx("0x73")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[Dx("0x2c")](r(e[Dx("0x84")]),t)))}),{priority:Dx("0x7")}),o[Dx("0x32")].registerDescriptionCallback((t=>{if(Dx("0x5d")!=t[Dx("0x47")]&&Dx("0x1a")!=t[Dx("0x47")])return;const e=t[Dx("0x68")]();if(null!=e&&e.is(Dx("0x26"),Dx("0x17"))){if(Dx("0x5d")==t[Dx("0x47")]){const e=t[Dx("0x25")]()[Dx("0x43")]((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t.data));if(e[Dx("0x3c")])return{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x1d"),'"'+e[Dx("0x8")](" ")+'"'))}}if(Dx("0x1a")==t[Dx("0x47")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t[Dx("0x6b")]));if(e.length)return{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x1d"),'"'+e[Dx("0x8")](" ")+'"'))}}}})),o[Dx("0x32")][Dx("0x71")]((t=>{if("tableRow"==t[Dx("0xe")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Dx("0x4a")]-o[Dx("0x74")]+1;if(Dx("0x5d")==t.type)return e[Dx("0x3c")]?{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:"insertion",content:Yo(n,Dx("0x21"),Yo(n,Dx("0x45"),s))};if(Dx("0x1a")==t[Dx("0x47")])return e[Dx("0x3c")]?{type:"deletion",content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x54"),[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0x76")==t[Dx("0xe")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t[Dx("0x6b")])),o=this[Dx("0x56")](t),s=o[Dx("0x34")]-o[Dx("0x2e")]+1;if("insertion"==t.type)return e[Dx("0x3c")]?{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x42"),[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x1f"),s))};if("deletion"==t[Dx("0x47")])return e[Dx("0x3c")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x1f"),s))}}})),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x3"),Dx("0x3f"),r),o._suggestionFactory[Dx("0x57")](Dx("0x1a"),Dx("0x3"),Dx("0x5"),r),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x76"),Dx("0x3f"),a),o._suggestionFactory[Dx("0x57")](Dx("0x1a"),Dx("0x76"),Dx("0x5"),a),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x76"),Dx("0x8"),c),o[Dx("0x37")][Dx("0x57")]("deletion",Dx("0x76"),Dx("0x8"),c),o[Dx("0x37")].registerCustomCallback(Dx("0x5d"),"tableRow",Dx("0x8"),l),o[Dx("0x37")][Dx("0x57")]("deletion","tableRow",Dx("0x8"),l)}[Dx("0xa")](){const t=this[Dx("0x44")],e=t[Dx("0x18")][Dx("0x3e")][Dx("0x1c")];return(n,o)=>{t[Dx("0x18")][Dx("0x82")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Dx("0x49")];x&&x[0]&&!1===x[0][Dx("0x61")]&&(a=n[0][Dx("0x12")][Dx("0x5b")]);const c=s[Dx("0x13")](a);if(Dx("0x11")==c.root[Dx("0x69")])return;const l=Array.from(e.getRanges())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t)));s[Dx("0x75")](c),t[Dx("0x7f")][Dx("0x2a")](r)[Dx("0x10")](),x[Dx("0x7c")]({forceDefaultExecution:!0}),t[Dx("0x64")](r,...x);const d=l[Dx("0x43")]((t=>Dx("0x11")!=t[Dx("0xd")][Dx("0x69")]));d[Dx("0x3c")]>0&&s.setSelection(d);for(const t of l)t[Dx("0x6c")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x44")][Dx("0x4f")][Dx("0x2a")](Dx("0x9"));let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x15")],s=Number[Dx("0x77")],r=Number[Dx("0x15")];for(const i of t){if(Dx("0x11")==i[Dx("0xd")][Dx("0x69")])continue;const{row:t,column:x}=e[Dx("0x40")](i),a=i[Dx("0x7b")]("rowspan")?i[Dx("0x6d")](Dx("0x4d"))-1:0,c=i[Dx("0x7b")](Dx("0x20"))?i[Dx("0x6d")](Dx("0x20"))-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}}[Dx("0x63")](){const t=this[Dx("0x44")],e=t[Dx("0x4f")][Dx("0x2a")]("TrackChangesEditing"),n=t[Dx("0x4f")][Dx("0x2a")](Dx("0x9"));t.model[Dx("0x3e")].on(Dx("0x52"),(()=>{const n=Array.from(t[Dx("0x18")][Dx("0x3e")][Dx("0x67")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x23")])continue;const i=e[Dx("0x59")](s);this[Dx("0x79")][Dx("0x38")](r)&&this[Dx("0x48")][Dx("0x2f")](i)}}),{priority:Dx("0x66")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x5e")](t),r=t[Dx("0x19")](Dx("0x17")),i=n[Dx("0x40")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n.startsWith("tablePaste"),a=n[Dx("0x4c")](x?10:5),c=a[Dx("0x28")](),l=c[Dx("0x4c")](0,3)+Dx("0x7a"),d="min"+a,u="max"+a;if(!e.isInContent)continue;if(r!=e[Dx("0x29")]().start.findAncestor(Dx("0x17")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0x7b")](l)?t[Dx("0x6d")](l)-1:0,m=this[Dx("0x56")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x83")](s),o=!0)}return o};t[Dx("0x18")][Dx("0x3e")][Dx("0x39")]((e=>{let n=!1;for(const s of t[Dx("0x18")][Dx("0x3e")][Dx("0x67")][Dx("0xc")]())if(Dx("0x31")==s[Dx("0x47")])if(Dx("0x3")==s.name)for(const t of s[Dx("0x2d")][Dx("0x5b")].getChildren())n=n||o(t,e);else"tableCell"==s[Dx("0x50")]&&(n=n||o(s.position.nodeAfter,e));return n}))}[Dx("0x56")](t){return this[Dx("0x22")](t[Dx("0x65")]()[Dx("0x70")]((t=>t[Dx("0x12")][Dx("0x5b")])))}}function jx(t){return Array[Dx("0x36")](new Set(t).values())}const Ux=["map","low","_tablePostFixingSubtypes","direction","subType","_areSelectedCellsMergable","TableEditing","author","formatBlock","_descriptionFactory","mergeTableCellUp","mergeTableCellRight","_areMergableCells","getSuggestions","registerCustomCallback","$graveyard","containsRange","commandName","type","editor","mergeTableCellLeft","return","getSelectionAffectedTableCells","filter","enableCommand","from","selection","plugins","detach","markBlockFormat","stop","root","_acceptFormatSuggestionCallbackFactory","element","locale","mergeTableCellDown","setSelection","tableCell","refresh","value","deletion","*Split cell:* horizontally","getCellLocation","get","has","insertion","getRanges","table","size","createRangeOn","getAncestors","createTableWalker","length","add","TrackChangesEditing","format","rootName","fromRange","findAncestor","commands","mergeTableCells","execute","TableUtils","markMultiRangeBlockFormat","splitTableCellHorizontally","getFirstPosition","model","_suggestionFactory","push","_isForcedDefaultExecutionBlock","accept","registerDescriptionCallback","cell","set:isEnabled","trackChanges","isInContent","splitTableCellVertically","requires","change","document","highest","isEnabled","*Merge cells*"];var Gx,Hx;Gx=Ux,Hx=434,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("0x3a")](){return[Bx]}afterInit(){const t=this[zx("0x0")],e=t[zx("0x2f")][zx("0x3c")][zx("0x7")],n=t[zx("0xf")];if(!t[zx("0x8")][zx("0x19")](zx("0x46")))return;const o=t.plugins[zx("0x18")](zx("0x23")),s=t[zx("0x8")][zx("0x18")](zx("0x2b")),r=t[zx("0x8")].get(Bx);r[zx("0x42")][zx("0x31")]("mergeTableCells"),o[zx("0x5")](zx("0x29"),(()=>{const e=s[zx("0x3")](t[zx("0x2f")][zx("0x3c")][zx("0x7")]);t[zx("0x2f")][zx("0x3b")]((()=>{o[zx("0x2c")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x29"))}))})),t[zx("0x28")][zx("0x18")](zx("0x29")).on(zx("0x2a"),((e,n)=>{t[zx("0x28")].get(zx("0x37"))[zx("0x14")]&&(n[zx("0x21")]>0&&n[n[zx("0x21")]-1]&&n[n[zx("0x21")]-1].forceDefaultExecution||o[zx("0x32")]||this[zx("0x45")]()||e[zx("0xb")]())}),{priority:zx("0x3d")});for(const e of["mergeTableCellUp",zx("0x4b"),zx("0x10"),zx("0x1")]){const n=t[zx("0x28")][zx("0x18")](e);o[zx("0x5")](e,(()=>{const e=t[zx("0x2f")][zx("0x3c")][zx("0x7")].getFirstPosition()[zx("0x1f")]().find((t=>t.is(zx("0xe"),zx("0x12")))),s=n[zx("0x14")];t[zx("0x2f")][zx("0x3b")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:zx("0x29"),commandParams:[]},[],zx("0x29"))}))}))}for(const e of["splitTableCellVertically",zx("0x2d")]){const n=t.commands.get(e);o[zx("0x5")](e,(()=>{const r=s[zx("0x3")](t[zx("0x2f")][zx("0x3c")][zx("0x7")])[0],i=r[zx("0x27")](zx("0x1c")),{column:x,row:a}=s[zx("0x17")](r);let c=[];if("horizontally"==n[zx("0x43")]){const t=s[zx("0x20")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[zx("0x6")](t)[zx("0x40")]((t=>t[zx("0x35")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[zx("0x6")](t).map((t=>t.cell))}t[zx("0x2f")][zx("0x3b")]((t=>{o[zx("0xa")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[zx("0x49")][zx("0x34")]((t=>{const{data:e}=t;if(e)return zx("0x29")==e[zx("0x51")]?{type:zx("0x24"),content:Yo(n,zx("0x3f"))}:void 0})),o[zx("0x49")][zx("0x34")]((t=>{const{data:e}=t;if(e)return zx("0x39")==e[zx("0x51")]?{type:zx("0x24"),content:Yo(n,"*Split cell:* vertically")}:zx("0x2d")==e[zx("0x51")]?{type:zx("0x24"),content:Yo(n,zx("0x16"))}:void 0}));const x=r[zx("0xd")]();for(const t of[zx("0x4a"),zx("0x4b"),zx("0x10"),"mergeTableCellLeft"])o[zx("0x30")][zx("0x4e")](zx("0x48"),t,"accept",x);for(const t of[zx("0x39"),zx("0x2d")])o[zx("0x30")].registerCustomCallback("formatBlock",t,zx("0x33"),x);o._suggestionFactory[zx("0x4e")](zx("0x48"),zx("0x29"),zx("0x33"),(n=>{t[zx("0x2f")][zx("0x3b")]((o=>{const s=Array[zx("0x6")](e[zx("0x1b")]()).map((t=>i.LiveRange[zx("0x26")](t)));o[zx("0x11")](n),t[zx("0x28")][zx("0x18")](zx("0x29"))[zx("0x13")](),t[zx("0x2a")](zx("0x29"),{forceDefaultExecution:!0});const r=s[zx("0x4")]((t=>zx("0x4f")!=t[zx("0xc")][zx("0x25")]));r.length>0&&o[zx("0x11")](r);for(const t of s)t[zx("0x9")]()}))}));for(const e of["mergeTableCellUp",zx("0x10"),zx("0x1"),zx("0x4b")]){const n=t[zx("0x28")][zx("0x18")](e);n.on(zx("0x36"),((e,o,s)=>{if(s){const o=t[zx("0x2f")][zx("0x3c")][zx("0x7")][zx("0x2e")]()[zx("0x1f")]().find((t=>t.is(zx("0xe"),"tableCell")));this._areMergableCells(n.value,o)||(e[zx("0x2")]=!1,e[zx("0xb")]())}}),{priority:zx("0x41")})}}[zx("0x45")](){const t=this[zx("0x0")][zx("0x28")][zx("0x18")](zx("0x29")),e=this[zx("0x0")][zx("0x8")].get(zx("0x2b"));if(!t[zx("0x3e")])return!1;const n=e[zx("0x3")](this.editor[zx("0x2f")][zx("0x3c")][zx("0x7")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x4c")](t,e))return!1;return!0}[zx("0x4c")](t,e){const n=this[zx("0x0")][zx("0x8")][zx("0x18")]("TrackChangesEditing"),o=this[zx("0x0")][zx("0x2f")].createRangeOn(t),s=this.editor[zx("0x2f")][zx("0x1e")](e),r=new Set,i=new Set;for(const t of n[zx("0x4d")]())if((zx("0x1a")==t[zx("0x52")]||zx("0x15")==t.type||zx("0x29")==t[zx("0x44")])&&t[zx("0x38")])for(const e of t[zx("0x1b")]())e[zx("0x50")](o,!0)&&r[zx("0x22")](t[zx("0x52")]+":"+t[zx("0x47")].id),e[zx("0x50")](s,!0)&&i[zx("0x22")](t.type+":"+t.author.id);if(r.size!=i[zx("0x1d")])return!1;for(const t of r)if(!i[zx("0x19")](t))return!1;return!0}}const Vx=["getAttribute","addMarker:suggestion","nodeAfter","_splitMarkerName","headingColumns","_suggestionFactory","afterInit","createTableWalker","FORMAT_HEADER_ROW","markerName","removeAttribute","downcastDispatcher","model","highest","TrackChangesEditing","item","getSelectionAffectedTableCells","document","TableUtils","childCount","getCellLocation","name","stop","activeMarkers","addClass","cell","removeMarker:suggestion","ck-suggestion-marker-","table","selection","ck-suggestion-marker--active","getChild","toViewElement","mapper","accept","nodeBefore","formatBlock","bindElementToMarker","_descriptionFactory","has","_acceptFormatSuggestionCallbackFactory","createPositionAfter","value","get","getRowIndexes","data","FORMAT_REGULAR_COLUMN","registerCustomCallback","commands","getSuggestion","editor","headingRows","change","forceValue","markBlockFormat","getColumnIndexes","options","commandName","removeClass","FORMAT_HEADER_COLUMN","index","setAttribute","parent","registerDescriptionCallback","unbindElementFromMarkerName","plugins","findAncestor","markerRange","commandParams","enableCommand","FORMAT_REGULAR_ROW","setTableRowHeader","createRange","consume","writer","setTableColumnHeader","createPositionBefore","*Format:* %0"];var Kx,qx;Kx=Vx,qx=382,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get requires(){return[Bx]}[Xx("0xe")](){const t=this[Xx("0x3a")];if(!t[Xx("0x49")][Xx("0x2f")]("TableEditing"))return;const e=t.locale,n=t[Xx("0x49")][Xx("0x33")](Xx("0x16")),o=t[Xx("0x49")][Xx("0x33")](Xx("0x1a")),s=t[Xx("0x49")][Xx("0x33")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0xb")](r[Xx("0x11")]),c=n[Xx("0x39")](a);if(!c.data||Xx("0x5")!=c[Xx("0x35")][Xx("0x41")])return;if(r[Xx("0x17")])return void s[Xx("0x1e")]();if(!i.consumable[Xx("0x3")](r[Xx("0x4b")],s[Xx("0x1d")]))return;const l=r[Xx("0x4b")].start[Xx("0xa")],d=r[Xx("0x4b")].end[Xx("0x2b")],u=l[Xx("0x46")][Xx("0x46")],{column:g}=o[Xx("0x1c")](l),{column:m}=o[Xx("0x1c")](d);for(let s=g;s<=m;s++){const c=o[Xx("0xf")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0x21")],c=i[Xx("0x29")][Xx("0x28")](s);i.writer[Xx("0x20")](Xx("0x23")+x,c),e&&i[Xx("0x4")][Xx("0x45")]("data-suggestion",a,c),i[Xx("0x29")][Xx("0x2d")](c,r[Xx("0x11")]),t&&(n[Xx("0x1f")].includes(r[Xx("0x11")])?i[Xx("0x4")][Xx("0x20")](Xx("0x26"),c):i.writer.removeClass("ck-suggestion-marker--active",c))}}}}n.enableCommand(Xx("0x1"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[Xx("0x14")][Xx("0x19")][Xx("0x25")]),i=o[Xx("0x34")](r),x=r[0][Xx("0x4a")]("table"),a=x[Xx("0x8")](Xx("0x3b"))||0,c=s&&null!==s[Xx("0x3d")]?s.forceValue:!t.commands[Xx("0x33")]("setTableRowHeader")[Xx("0x32")],l=c?i.last:i.first,d=x[Xx("0x27")](l);let u;if(c){const e=x.getChild(a);if(d[Xx("0x44")]<e.index)return;u=t[Xx("0x14")][Xx("0x2")](t.model[Xx("0x6")](e[Xx("0x27")](0)),t[Xx("0x14")][Xx("0x31")](d[Xx("0x27")](d[Xx("0x1b")]-1)))}else{const e=x[Xx("0x27")](a-1);if(!e)return;u=t[Xx("0x14")][Xx("0x2")](t[Xx("0x14")][Xx("0x6")](d[Xx("0x27")](0)),t[Xx("0x14")][Xx("0x31")](e[Xx("0x27")](e[Xx("0x1b")]-1)))}t[Xx("0x14")][Xx("0x3c")]((()=>{n[Xx("0x3e")](u,{commandName:Xx("0x1"),commandParams:[{forceValue:c}]},[],Xx("0x1"))}))})),n[Xx("0x4d")](Xx("0x5"),((e,o)=>{const s=t[Xx("0x49")][Xx("0x33")](Xx("0x1a")),r=s[Xx("0x18")](t[Xx("0x14")][Xx("0x19")][Xx("0x25")]),i=s[Xx("0x3f")](r),x=r[0][Xx("0x4a")](Xx("0x24")),a=x[Xx("0x8")](Xx("0xc"))||0,c=o&&null!==o.forceValue?o.forceValue:!t[Xx("0x38")][Xx("0x33")]("setTableColumnHeader")[Xx("0x32")];let l;const d=x.getChild(0),u=c?i.last:i.first,g=s[Xx("0xf")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][Xx("0x21")];if(c){const e=d[Xx("0x27")](a);if(m.isBefore(e))return;l=t[Xx("0x14")][Xx("0x2")](t.model[Xx("0x6")](e),t[Xx("0x14")][Xx("0x31")](m))}else{const e=d[Xx("0x27")](a-1);if(!e)return;l=t[Xx("0x14")][Xx("0x2")](t.model[Xx("0x6")](m),t[Xx("0x14")][Xx("0x31")](e))}t[Xx("0x14")].change((()=>{n[Xx("0x3e")](l,{commandName:Xx("0x5"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing[Xx("0x13")].on(Xx("0x9"),r(),{priority:Xx("0x15")}),t[Xx("0x35")].downcastDispatcher.on(Xx("0x9"),((t,e,n)=>{n[Xx("0x40")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing.downcastDispatcher.on(Xx("0x22"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0xb")](e[Xx("0x11")]),i=n[Xx("0x39")](r);if(!i.data||Xx("0x5")!=i[Xx("0x35")][Xx("0x41")])return;const x=o[Xx("0x29")].markerNameToElements(e[Xx("0x11")]);if(x)for(const t of x)o.writer[Xx("0x42")](Xx("0x23")+s,t),o[Xx("0x4")][Xx("0x42")](Xx("0x26"),t),o.writer[Xx("0x12")]("data-suggestion",t),o[Xx("0x29")][Xx("0x48")](t,e[Xx("0x11")])}),{priority:Xx("0x15")}),n[Xx("0x2e")][Xx("0x47")]((t=>{const{data:n}=t;if(n){if(Xx("0x1")==n[Xx("0x41")]){const t=n[Xx("0x4c")][0][Xx("0x3d")];return o(Yo(e,Xx(t?"0x10":"0x0")))}if(Xx("0x5")==n[Xx("0x41")]){const t=n[Xx("0x4c")][0].forceValue;return o(Yo(e,Xx(t?"0x43":"0x36")))}}function o(t){return{type:"format",content:Yo(e,Xx("0x7"),t)}}}));const i=s[Xx("0x30")]();n[Xx("0xd")][Xx("0x37")](Xx("0x2c"),Xx("0x1"),Xx("0x2a"),i),n._suggestionFactory[Xx("0x37")]("formatBlock","setTableColumnHeader",Xx("0x2a"),i)}}const Jx=["*Replace table cells*","set","getRanges","nodeAfter","insertion","forceDefaultExecution","has","length","cell","containsRange","deletion","getRowIndexes","getColumns","getChildren","batch","options","isEqual","insertRows","for","getSuggestions","end","getContainedElement","insert","findAncestor","documentSelection","position","removeRows","isEmpty","selection","nextSibling","createRangeIn","editing","some","getShiftedBy","getSuggestion","_replaceTableSlotCell","find","element","reduce","markMultiRangeBlockFormat","paragraph","getAttributes","endColumn","every","activeMarkers","listenTo","add","row","keys","dataDowncast","join","insertColumns","getChild","ck-suggestion-marker","cells","_splitMarkerName","document","change","tablePasteChainId","trackChanges","removeMarkers","tableCellVerticalAlignment","plugins","remove","return","accept","high","previous","markerName","showSuggestionHighlights","subType","markMultiRangeInsertion","content","table","markerAttributes","newRange","setAttributes","TableClipboard","fromEntries","tablePaste","columnInsertionIndexes","discard","registerDescriptionCallback","_createdBatches","createPositionBefore","isInContent","suggestion:formatBlock:tablePasteCell","getChangedMarkers","rowInsertionIndexes","tableCellSuggestion","formatBlock","suggestion-td","_suggestionFactory","getRange","tableCellBorderColor","registerPostFixer","view","updateMarker","markerToHighlight","push","name","hasSuggestion","createTableWalker","last","unwrap","conversion","insertContent","createRangeOn","getSelectionAffectedTableCells","locale","getItems","_isForcedDefaultExecutionBlock","attributes","column","model","insertionRanges","_tablePostFixingSubtypes","start","first","suggestion","register","map","differ","tablePasteCell","_getCoordsForCells","tablePasteRow","rows","tableCellBorderWidth","author","fill","removeMarker","columnInsertionRanges","commands","tableCell","createElement","entries","getMarkers","from","editingDowncast","removeColumns","tablePasteColumn","schema","low","move","previousSibling","tableCellBorderStyle","Users","filter","get","requires","setAttribute","ck-suggestion-marker-insertion","includes","registerCustomCallback","startsWith","ck-suggestion-marker--active","getRows","createRange","TrackChangesEditing"];var Qx,Zx;Qx=Jx,Zx=420,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x19"),Yx("0x97"),Yx("0x2b"),"tableCellHorizontalAlignment",Yx("0x76"),"tableCellBackgroundColor","tableCellPadding"],ea=Object.fromEntries(ta[Yx("0x13")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x2f")](){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins[Yx("0x3f")](Yx("0x86")))return;const n=t[Yx("0x77")][Yx("0x2e")](Yx("0x38")),o=t.plugins[Yx("0x2e")]("TableUtils"),s=t.plugins[Yx("0x2e")](Bx),r=t[Yx("0x77")][Yx("0x2e")](Yx("0x86"));s[Yx("0xe")][Yx("0x9c")]("tablePasteRow","tablePasteColumn"),t.model[Yx("0x27")][Yx("0x12")](Yx("0x92"),{allowIn:Yx("0x1f"),allowContentOf:Yx("0x1f"),isLimit:!0}),t[Yx("0x3")].elementToElement({model:"tableCellSuggestion",view:Yx("0x94")});let i=null;t[Yx("0xc")].on(Yx("0x4"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x40")]-1];l&&l[Yx("0x3e")]||n[Yx("0x9")]||this.editor[Yx("0x1e")][Yx("0x2e")](Yx("0x74")).value&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x51")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x6")](n[Yx("0x71")][Yx("0x55")]);if(!i[Yx("0x40")])return!1;const x=i[0][Yx("0x50")](Yx("0x82")),a=o[Yx("0x44")](i),c=o.getColumnIndexes(i),l={startRow:a[Yx("0x10")],endRow:a[Yx("0x1")],startColumn:c[Yx("0x10")],endColumn:c.last};return 1==i[Yx("0x40")]&&(l.endRow+=o[Yx("0x36")](r)-1,l[Yx("0x63")]+=o[Yx("0x45")](r)-1),sa(x,l,o)}(a,c,t[Yx("0xc")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0xc")].change((()=>{t[Yx("0xc")][Yx("0x4")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n.markMultiRangeInsertion(s,Yx("0x17"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,Yx("0x26"),{tablePasteChainId:o}),a[Yx("0x40")]&&n[Yx("0x80")](a,Yx("0x88"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x40")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x60")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x15"),{tablePasteChainId:o});if(d){const e=d.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x5")](o),i=e[Yx("0x5d")]((t=>t[Yx("0x96")]()[Yx("0x49")](r)));i&&n[Yx("0x9c")]([i.name,s])}n[Yx("0x40")]&&d[Yx("0x30")](Yx("0x83"),Object[Yx("0x87")](n))}i=null})))}),{priority:e.priorities[Yx("0x7b")]+10}),t[Yx("0x77")][Yx("0x2e")](Yx("0x86")).on(Yx("0x5c"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Yx("0x41")],x=o,a=oa(r),c=oa(x);t[Yx("0x79")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x78")](r[Yx("0x6d")](0));for(const t of Array.from(x[Yx("0x46")]()))s[Yx("0x4f")](t,r,Yx("0x4d"));const t=i[Yx("0x91")][Yx("0x32")](n[Yx("0x68")]),e=i[Yx("0x89")][Yx("0x32")](n[Yx("0xb")]);t||e||(l=s[Yx("0x57")](r))}else c&&!a&&(d=s[Yx("0x57")](r));else{const t=s[Yx("0x20")](Yx("0x92")),e=s.createElement(Yx("0x92"));s.wrap(s[Yx("0x57")](r),e),s[Yx("0x4f")](t,r,0);for(const e of Array[Yx("0x23")](x.getChildren()))s[Yx("0x4f")](e,t,Yx("0x4d"));l=s[Yx("0x5")](t),d=s.createRangeOn(e)}const u=Array[Yx("0x23")](x[Yx("0x62")]())[Yx("0x2d")]((([t])=>ta[Yx("0x32")](t)));i[Yx("0x6f")][Yx("0x9c")]({element:r,attributes:u[Yx("0x40")]?Object[Yx("0x87")](u):null}),l&&i[Yx("0xd")][Yx("0x9c")](l),d&&i.deletionRanges[Yx("0x9c")](d)}),{priority:Yx("0x7b")}),o.on(Yx("0x6c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Yx("0x1b")](x)[Yx("0x13")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x0")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x1d")].push(t.model[Yx("0x5")](e))}),{priority:Yx("0x28")}),o.on(Yx("0x4a"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x18")]||1;i[Yx("0x91")]=new Array(a)[Yx("0x1b")](x)[Yx("0x13")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[Yx("0xc")].createRangeOn(e))}),{priority:Yx("0x28")}),n._descriptionFactory[Yx("0x8b")]((e=>{if(e.subType&&e[Yx("0x7f")][Yx("0x34")](Yx("0x88")))return e[Yx("0x7c")]?{}:{type:Yx("0x3d"),content:Yo(t[Yx("0x7")],Yx("0x39"))}}));const x=()=>!1;for(const t of["tablePaste",Yx("0x26"),Yx("0x17"),"tablePasteCell"])n[Yx("0x95")][Yx("0x33")](Yx("0x3d"),t,Yx("0x6b"),x),n._suggestionFactory[Yx("0x33")](Yx("0x43"),t,Yx("0x6b"),x),n._suggestionFactory[Yx("0x33")](Yx("0x93"),t,"join",x);n[Yx("0x95")].registerCustomCallback(Yx("0x93"),Yx("0x15"),Yx("0x8a"),x),n._suggestionFactory[Yx("0x33")]("formatBlock",Yx("0x15"),Yx("0x7a"),((e,n,o)=>{const s=e[Yx("0x13")]((t=>t.getContainedElement()))[Yx("0x2d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x6f")])e&&r[Yx("0x3a")](t,e);else if(o&&o[Yx("0x83")])for(const[e,n]of Object[Yx("0x21")](o[Yx("0x83")])){const o=t.model.markers[Yx("0x2e")](e),s=o?o.getRange()[Yx("0x4e")]():null;s&&r[Yx("0x3a")](s,n)}t[Yx("0xc")][Yx("0x72")]((t=>{for(const[e,n]of r)t[Yx("0x85")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x95")][Yx("0x33")](e,Yx("0x88"),o,((s,r,i)=>{t[Yx("0xc")].change((t=>{const x=[];for(const t of s){const e=t[Yx("0xf")][Yx("0x3c")];e.is(Yx("0x5e"),Yx("0x92"))&&x[Yx("0x9c")](e)}n[Yx("0x95")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root.rootName&&t[Yx("0x2")](e)}))}))};a(Yx("0x3d"),Yx("0x7a")),a(Yx("0x3d"),Yx("0x8a")),a(Yx("0x43"),"accept"),a(Yx("0x43"),Yx("0x8a")),n[Yx("0x95")].registerCustomCallback("insertion",Yx("0x17"),Yx("0x8a"),(t=>{const e=t[Yx("0x13")]((t=>t.getContainedElement())),n=e[0][Yx("0x50")]("table"),{minRow:r,maxRow:i}=s[Yx("0x16")](e);o[Yx("0x53")](n,{at:r,rows:i-r+1})})),n[Yx("0x95")][Yx("0x33")](Yx("0x3d"),Yx("0x26"),Yx("0x8a"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x50")](Yx("0x82")),{minColumn:r,maxColumn:i}=s[Yx("0x16")](e);o[Yx("0x25")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x7f")]||!e.subType[Yx("0x34")]("tablePaste"))return;const o=e.attributes[Yx("0x73")],s=n.getSuggestions()[Yx("0x2d")]((t=>t[Yx("0x8e")]&&t.attributes&&t[Yx("0xa")][Yx("0x73")]==o));s[Yx("0x40")]&&e.getAllAdjacentSuggestions()[Yx("0x40")]!=s.length&&s[Yx("0x5f")](((t,e)=>(t.next=e,e[Yx("0x7c")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x70")](t[Yx("0x7d")]),s=[Yx("0x6e"),Yx("0x31")],r=n[Yx("0x65")][Yx("0x32")](t[Yx("0x7d")]);return r&&s[Yx("0x9c")](Yx("0x35")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x7b")}),n.on("suggestionUnloaded",c,{priority:Yx("0x7b")}),t.model.document[Yx("0x98")]((()=>{let e=!1;const o=Array[Yx("0x23")](t[Yx("0xc")][Yx("0x71")][Yx("0x14")][Yx("0x90")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x70")](s);if(Yx("0x11")!=o||Yx("0x43")!=i||r.oldRange)continue;if(!n[Yx("0x9e")](x))continue;const a=n[Yx("0x5b")](x)[Yx("0x3b")](),c=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me;for(const t of n[Yx("0x4c")]())if(t[Yx("0x8e")]&&t.author==c&&"formatBlock"==t.type&&"tablePasteCell"==t[Yx("0x7f")]&&t[Yx("0x3b")]()[Yx("0x64")]((t=>a[Yx("0x59")]((e=>e[Yx("0x42")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x8e")]&&(n[Yx("0x8a")](),e=!0)}return e})),t.model[Yx("0x71")][Yx("0x98")]((e=>{const o=t.commands[Yx("0x2e")]("redo");if(!o||!o[Yx("0x8c")].has(e[Yx("0x47")]))return!1;let s=!1;const r=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me,i=t[Yx("0xc")][Yx("0x71")][Yx("0x14")].getChanges(),x=Array[Yx("0x23")](t[Yx("0xc")].document[Yx("0x14")][Yx("0x90")]())[Yx("0x2d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Yx("0x4f")!=t.type||"tableCellSuggestion"!=t[Yx("0x9d")]||1!=t.length)continue;const n=e[Yx("0x37")](t[Yx("0x52")],t[Yx("0x52")][Yx("0x5a")](1));if(!x.find((({data:t})=>t[Yx("0x84")][Yx("0x49")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x42")](o[Yx("0x84")])){e[Yx("0x9a")](t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x71")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me,r=n.getSuggestions().filter((t=>t.isInContent&&t[Yx("0x1a")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x88")==t.subType)for(const e of t[Yx("0x22")]()){const n=e[Yx("0x96")]()[Yx("0x4e")]();if(n)if(n.is(Yx("0x5e"),Yx("0x92"))&&oa(n)){t[Yx("0x1c")](e.name),i[Yx("0x67")](n),o=!0;const s=n[Yx("0x56")],r=n[Yx("0x2a")],a=s&&s.is(Yx("0x5e"),Yx("0x92")),c=r&&r.is("element",Yx("0x92"));a&&!i[Yx("0x3f")](s)&&x[Yx("0x67")](s),c&&!i.has(r)&&x[Yx("0x67")](r)}else n.is(Yx("0x5e"),Yx("0x61"))&&n.isEmpty&&(t.removeMarker(e[Yx("0x9d")]),o=!0)}else if(Yx("0x15")==t[Yx("0x7f")]){if(!t[Yx("0xa")]||!t.attributes[Yx("0x73")])continue;const e=t.attributes[Yx("0x83")];if(e&&Object[Yx("0x69")](e)[Yx("0x40")])continue;const n=t[Yx("0xa")][Yx("0x73")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x7f")]&&e.subType[Yx("0x34")]("tablePaste")){if(!e[Yx("0xa")][Yx("0x73")]){i=!1;break}if(e.id!=t.id&&e.attributes[Yx("0x73")]==n){s=!1;break}}i&&s&&(t[Yx("0x75")](),o=!0)}for(const t of i)e[Yx("0x78")](t);for(const t of x)e[Yx("0x2")](t);return o})),t[Yx("0x3")][Yx("0x4b")](Yx("0x24"))[Yx("0x9b")]({model:Yx("0x8f"),view:(t,e)=>l(t),converterPriority:Yx("0x7b")}),t[Yx("0x3")].for(Yx("0x6a"))[Yx("0x9b")]({model:Yx("0x8f"),view:(t,e)=>e[Yx("0x48")][Yx("0x7e")]?l(t,!1):null,converterPriority:Yx("0x7b")});const d=t[Yx("0x58")][Yx("0x99")];this[Yx("0x66")](d[Yx("0x71")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d.createRangeIn(e[Yx("0x81")])[Yx("0x8")]())t.is(Yx("0x5e"),Yx("0x94"))&&n.push(t);d[Yx("0x72")]((t=>{for(const e of n)t[Yx("0x29")](t[Yx("0x57")](e),t[Yx("0x8d")](e)),t[Yx("0x78")](e)}))}))}}function oa(t){if(t[Yx("0x54")])return!0;const e=t[Yx("0x6d")](0);return e.is(Yx("0x5e"),Yx("0x61"))&&e[Yx("0x54")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x0")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["document","format","formatGroupId","model","getSelectedElement","locale","accept","afterInit","editor","resizeColumnWidths","registerCustomCallback","get","resizeTableWidth","tableWidth","getAttribute","discard","commandParams","*Format:* resize table","selection","_descriptionFactory","getColumnGroupElement","data","getTableColumnsWidths","TrackChangesEditing","TableColumnResizeEditing","getContainedElement","bind","_suggestionFactory","author","formatBlock","handleSuggestionDescription","handleResizeTableWidthCommand","columnWidths","has","registerDescriptionCallback","table","plugins","getSuggestionCallback","getSuggestions","enableCommand","resizeTable"];var ia,xa;ia=ra,xa=197,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0xf")](){if(!this[aa("0x10")].plugins[aa("0x0")](aa("0x20")))return;const t=this[aa("0x10")][aa("0x3")].get("TrackChangesEditing");t[aa("0x6")]("resizeTableWidth",this[aa("0x27")][aa("0x22")](this)),t.enableCommand(aa("0x11"),this.handleResizeTableWidthCommand.bind(this)),t[aa("0x23")].registerCustomCallback(aa("0x25"),aa("0x7"),aa("0xe"),t._suggestionFactory.getSuggestionCallback(aa("0x25"),null,"discard")),t[aa("0x23")][aa("0x12")]("formatBlock",aa("0x7"),aa("0x17"),t[aa("0x23")][aa("0x4")](aa("0x25"),null,aa("0xe"))),t[aa("0x1b")][aa("0x1")](this.handleSuggestionDescription[aa("0x22")](this))}[aa("0x27")](t,e){const n=this[aa("0x10")][aa("0x3")][aa("0x13")](aa("0x1f")),o=this[aa("0x10")].plugins[aa("0x13")](aa("0x20")),s=e[aa("0x2")]||this[aa("0x10")][aa("0xb")][aa("0x8")][aa("0x1a")][aa("0xc")]();this[aa("0x10")].model.change((()=>{const r=o[aa("0x1c")](s);let i=r?o[aa("0x1e")](r):null,x=s[aa("0x16")](aa("0x15"))||null;const a=e[aa("0x15")]||x,c=e[aa("0x28")]||i,l=this[aa("0x10")][aa("0x3")].get("Users").me;for(const t of n[aa("0x5")]()){const e=t[aa("0x21")]();if(aa("0x7")===t.subType&&e===s){t[aa("0x24")]!==l&&t[aa("0x17")]();const e=t[aa("0x1d")][aa("0x18")];x=e[0][aa("0x15")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x14"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x7")},[],aa("0x7"))}))}[aa("0x26")](t){const{data:e}=t;if(e&&aa("0x7")===e[aa("0xa")]){const t=aa("0x19");return{type:aa("0x9"),content:Yo(this[aa("0x10")][aa("0xd")],t)}}}}const la=["Template","insertTemplate","has","editor","plugins","afterInit","get"];var da,ua;da=la,ua=348,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("0x5")];t[ga("0x6")][ga("0x4")](ga("0x2"))&&t.plugins[ga("0x1")]("TrackChangesEditing").enableCommand(ga("0x3"))}}const fa=["enableCommand","TrackChangesEditing","get","_descriptionFactory","locale","registerElementLabel","insertTableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","commands"];var ha,pa;ha=fa,pa=323,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("0x6")][ba("0x9")](ba("0x3")))return;t[ba("0x4")][ba("0x9")]("TrackChangesEditing")[ba("0x7")]("insertTableOfContents");const e=t[ba("0x4")][ba("0x9")](ba("0x8")),n=t[ba("0x1")];e[ba("0x0")][ba("0x2")]("tableOfContents",(t=>Yo(n,ba("0x5"),t)))}}const _a=["end","document","ELEMENT_TITLE","_descriptionFactory","createRange","locale","isTouching","editor","getChangedMarkers","updateMarker","element","get","title-content","start","afterInit","schema","Title","plugins","_splitMarkerName","suggestion","differ","getNearestSelectionRange","registerElementLabel","registerPostFixer","from","newRange","isCollapsed","model"];var Ta,Ca;Ta=_a,Ca=310,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0xc")](){const t=this[ya("0x5")];if(!t[ya("0xf")].has(ya("0xe")))return;const e=t[ya("0xf")][ya("0x9")]("TrackChangesEditing");e[ya("0x1")][ya("0x14")](ya("0xa"),(()=>Yo(t[ya("0x3")],ya("0x0")))),t[ya("0x19")][ya("0x1b")][ya("0x15")]((n=>{let o=!1;const s=Array[ya("0x16")](t[ya("0x19")].document[ya("0x12")][ya("0x6")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x10")](r);if(ya("0x11")!==s||!i[ya("0x17")])continue;const x=i.newRange,a=x[ya("0x1a")].nodeBefore;if(!a||!a.is(ya("0x8"),ya("0xa")))continue;if(!x[ya("0xb")][ya("0x4")](x[ya("0x1a")]))continue;const c=t[ya("0x19")][ya("0xd")][ya("0x13")](x.end,"forward");if(c&&c[ya("0x18")]){const t=n[ya("0x2")](x[ya("0xb")],c[ya("0xb")]);t.isEqual(x)||(n[ya("0x7")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const Aa=["plugins","editor","has","get","afterInit","undo","redo","TrackChangesEditing","enableCommand","UndoEditing"];var va,Ra;va=Aa,Ra=265,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x9")](){const t=this[Ia("0x6")],e=t[Ia("0x5")][Ia("0x8")](Ia("0x2"));t[Ia("0x5")][Ia("0x7")](Ia("0x4"))&&(e[Ia("0x3")](Ia("0x0")),e[Ia("0x3")](Ia("0x1")))}}const La=["enableCommand","toggleTableCaption","afterInit","TrackChangesEditing","plugins","has","requires"];var Na,Ma;Na=La,Ma=471,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[wa("0x4")](){return[Bx]}[wa("0x0")](){const t=this.editor;t[wa("0x2")][wa("0x3")]("TableCaptionEditing")&&t[wa("0x2")].get(wa("0x1"))[wa("0x5")](wa("0x6"))}}const Fa=["plugins","document","getAttribute","*Change to:* %0","_getSuggestionBlocksForListStyle","afterInit","getListTypeFromListStyleType","expandListBlocksToCompleteList","toUpperCase","_descriptionFactory","_getSuggestionBlocks","TrackChangesEditing","listStart","styles","*Format:* set order to reversed","from","get","push","markMultiRangeBlockFormat","config","DocumentListPropertiesUtils","bind","DocumentListUtils","filter","isFirstBlockOfListItem","handleListStyleCommand","ELEMENT_","length","getSelectedBlocks","_getTranslationKeyForListStyle","listType","listStyle","startIndex","format","_LIST_","selection","list.properties","DocumentListPropertiesEditing","*Format:* set start index to %0","model","listReversed","commandParams","type","editor","isListItemBlock","enableCommand","numbered","handleListStartCommand","reversed","handleDescriptions","change"];var Pa,Da;Pa=Fa,Da=202,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x7")](){if(!this[Ba("0x2d")][Ba("0x2")].has(Ba("0x27")))return;const t=this[Ba("0x2d")][Ba("0x15")][Ba("0x12")](Ba("0x26")),e=this[Ba("0x2d")].plugins.get(Ba("0xd"));t[Ba("0xf")]&&e[Ba("0x2f")](Ba("0x21"),this[Ba("0x1b")][Ba("0x17")](this)),t[Ba("0x32")]&&e.enableCommand(Ba("0x2a"),this.handleListReversedCommand.bind(this)),t[Ba("0x22")]&&e[Ba("0x2f")](Ba("0xe"),this.handleListStartCommand[Ba("0x17")](this)),e[Ba("0xb")].registerDescriptionCallback(this[Ba("0x0")][Ba("0x17")](this))}[Ba("0x1b")](t,e={}){const n=this.editor.plugins[Ba("0x12")]("TrackChangesEditing"),o=this[Ba("0x6")]();this.editor.model.change((()=>{n[Ba("0x14")](o,{commandName:Ba("0x21"),commandParams:[{type:e[Ba("0x2c")]}],formatGroupId:Ba("0x21")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")](Ba("0xd")),o=this[Ba("0x2d")][Ba("0x2")].get(Ba("0x18")),s=this[Ba("0xc")]((t=>o.isListItemBlock(t)&&Ba("0x30")===t[Ba("0x4")](Ba("0x20"))));null!==s&&this[Ba("0x2d")][Ba("0x29")][Ba("0x1")]((()=>{n[Ba("0x14")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x32")]}],formatGroupId:"listReversed"})}))}[Ba("0x31")](t,e={}){const n=this.editor[Ba("0x2")].get(Ba("0xd")),o=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")](Ba("0x18")),s=this[Ba("0xc")]((t=>o[Ba("0x2e")](t)&&Ba("0x30")===t[Ba("0x4")](Ba("0x20"))));null!==s&&this[Ba("0x2d")][Ba("0x29")].change((()=>{n[Ba("0x14")](s,{commandName:Ba("0xe"),commandParams:[{startIndex:e[Ba("0x22")]}],formatGroupId:Ba("0xe")})}))}handleDescriptions(t){const e=this[Ba("0x2d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x5"),s={type:Ba("0x23"),content:Yo(e,o,Yo(e,this[Ba("0x1f")](n[Ba("0x2b")][0][Ba("0x2c")])))};break;case Ba("0x2a"):o=n[Ba("0x2b")][0][Ba("0x32")]?Ba("0x10"):"*Format:* set order to regular",s={type:Ba("0x23"),content:Yo(e,o)};break;case Ba("0xe"):o=Ba("0x28"),s={type:Ba("0x23"),content:Yo(e,o,n[Ba("0x2b")][0][Ba("0x22")])}}return s}[Ba("0x6")](){const t=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")]("DocumentListUtils");let e=Array[Ba("0x11")](this[Ba("0x2d")].model[Ba("0x3")][Ba("0x25")].getSelectedBlocks());return e[Ba("0x13")](...t[Ba("0x9")](e)),e=[...new Set(e)],e}[Ba("0xc")](t){const e=this[Ba("0x2d")][Ba("0x2")].get(Ba("0x18"));let n=Array[Ba("0x11")](this[Ba("0x2d")][Ba("0x29")][Ba("0x3")].selection[Ba("0x1e")]())[Ba("0x19")](t);if(!n[Ba("0x1d")])return null;n=e[Ba("0x9")](n);const o=[];for(const t of n)e[Ba("0x1a")](t)&&o[Ba("0x13")](t);return o}[Ba("0x1f")](t){return Ba("0x1c")+this.editor.plugins[Ba("0x12")](Ba("0x16"))[Ba("0x8")](t).toUpperCase()+Ba("0x24")+t[Ba("0xa")]().replace(/-/g,"_")}}const Ua=["registerDescriptionCallback","tableBorderWidth","batch","has","tableHeight","_handlePropertyChange","tableCellPadding","tableCellProperties","tableCellBorderColor","discard","registerCustomCallback","commandParams","model","join","start","tableBorderStyle","_getSuggestion","afterInit","document","markBlockFormat","TableCellPropertiesEditing","get","plugins","getSelectionAffectedTableCells","_descriptionFactory","accept","TableUtils","enqueueChange","_suggestionFactory","TrackChangesEditing","pluginName","data","tableAlignment","handleDiscardAction","tableCellWidth","getSuggestionCallback","nodeAfter","handleSuggestionDescription","TrackChangesTableProperties","enableCommand","tableProperties","findAncestor","subType","table","tableCellBorderStyle","removeAttribute","format","locale","tableCellBackgroundColor","getContainedElement","tableCellVerticalAlignment","selection","formatBlock","editor","getSuggestions"];var Ga,Ha;Ga=Ua,Ha=399,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x1a")]=["tableBorderColor",za("0x1"),za("0x2a"),za("0x12"),"tableWidth",za("0x2d"),"tableBackgroundColor"],this[za("0x30")]=[za("0x31"),za("0x1e"),"tableCellBorderWidth",za("0x2f"),za("0x14"),"tableCellHeight",za("0x22"),"tableCellHorizontalAlignment",za("0x24")]}static get[za("0x10")](){return za("0x18")}[za("0x3")](){const t=this[za("0x27")][za("0x8")][za("0x7")]("TrackChangesEditing");if(this[za("0x27")].plugins[za("0x2c")]("TablePropertiesEditing")){for(const e of this[za("0x1a")])t[za("0x19")](e,((t,n)=>{const o=this[za("0x27")][za("0x35")][za("0x4")][za("0x25")].getFirstPosition()[za("0x1b")](za("0x1d"));this[za("0x2e")](e,[o],this[za("0x1a")],"tableProperties",t,n)}));t[za("0xe")][za("0x33")](za("0x26"),"tableProperties","accept",t[za("0xe")][za("0x15")](za("0x26"),null,za("0x32"))),t[za("0xe")][za("0x33")](za("0x26"),za("0x1a"),za("0x32"),((t,e)=>this[za("0x13")](this[za("0x1a")],t,e))),t[za("0xe")][za("0x33")]("formatBlock",za("0x1a"),"join",(()=>!1))}if(this[za("0x27")].plugins[za("0x2c")](za("0x6"))){for(const e of this.tableCellProperties)t[za("0x19")](e,((t,n)=>{const o=this[za("0x27")][za("0x8")][za("0x7")](za("0xc"))[za("0x9")](this[za("0x27")].model[za("0x4")].selection);this[za("0x2e")](e,o,this[za("0x30")],za("0x30"),t,n)}));t._suggestionFactory[za("0x33")](za("0x26"),za("0x30"),za("0xb"),t[za("0xe")][za("0x15")](za("0x26"),null,za("0x32"))),t[za("0xe")][za("0x33")](za("0x26"),za("0x30"),za("0x32"),((t,e)=>this[za("0x13")](this[za("0x30")],t,e))),t[za("0xe")].registerCustomCallback(za("0x26"),"tableCellProperties",za("0x36"),(()=>!1))}t[za("0xa")][za("0x29")]((t=>this[za("0x17")](t)))}[za("0x2e")](t,e,n,o,s,r){const i=this[za("0x27")][za("0x8")][za("0x7")]("TrackChangesEditing");this[za("0x27")][za("0x35")][za("0xd")](r[za("0x2b")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[za("0x5")](t,{commandParams:[e]},[],o)}}))}[za("0x13")](t,e,n){const o=e[0][za("0x0")][za("0x16")],s=n[za("0x34")][0];this.editor[za("0x35")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[za("0x1f")](n,o)}))}[za("0x17")](t){if(t[za("0x11")])switch(t[za("0x1c")]){case za("0x1a"):return{type:za("0x20"),content:Yo(this[za("0x27")].locale,"*Format:* change table properties")};case za("0x30"):return{type:"format",content:Yo(this.editor[za("0x21")],"*Format:* change table cell properties")}}}[za("0x2")](t,e){const n=this[za("0x27")][za("0x8")][za("0x7")](za("0xf"));for(const o of n[za("0x28")]({skipNotAttached:!0})){const n=o[za("0x23")]();if(o[za("0x1c")]===e&&n===t)return o}return null}}const Va=["_suggestionState","addComment","_getAuthorFromId","removeMarker","model","addHighlight","deletion:join","createPositionBefore","consumable","assign","discard","suggestion","trackChanges.mergeNestedSuggestions","reconvertMarker","length","root","multi","_splitMarkerName","accepted","isLimit","position","ck-suggestion-marker","removeMarker:suggestion:formatBlock","getAttribute","move","getIntersection","removeMarkers","consume","batch","PendingActions","originalSuggestionId","size","detach","remove","containsRangeInObject","rethrowUnexpectedError","getChanges","high","getDifference","markInlineFormat","item","oldRange","updateSuggestion","element","getRange","previous","_removeSuggestion","mapper","ck-suggestion-marker-","isNextTo","return","containsRange","buildSuggestion","tablePasteChainId","formatBlock:accept","nodeBefore","never","type","$graveyard","suggestionUnloaded","stop","@external","_isDataLoaded","getAllAdjacentSuggestions","has","updateMarker","isMultiRange","insertion","enableReadOnlyMode","documentSelection","data-suggestion","differ","fromRange","before","toJSON","from","acceptAllSuggestions","fire","dataDowncast","getChangedMarkers","_isForcedDefaultExecutionBlock","createRange","then","insertion:discard","sort","hasCommentThread","enableCommand","isLocal","discardSuggestion","highest","isInsideObject","getCustomProperty","multipleBlocks","isBefore","change:_saved","getUser","notReady","end","default","fromCharCode","$marker","_refreshSuggestionsChain","clone","_suggestions","marker-count","includes","backward","markMultiRangeBlockFormat","getMarkers","collaboration.channelId","removeComment","track-changes-user-not-found","CommentsRepository","upcast","createPositionAt","isInContent","rootName","addClass","change","setSelection","addMarker","ck-suggestion-marker--active","always","parent","markerName","chain","track-changes-suggestion-data-mismatch","execute","_trackFormatChanges","_checkSuggestionCorrectness","_createSuggestion","resolve","values","getMultiRangeId","define","toViewElement","requires","formatInline:","formatInline:chain","isUndo","schema","removed","TrackChangesEditing","markMultiRangeInsertion","discardAllSuggestions","author","subType","selection","showSuggestionHighlights","options","activeMarkers","_editor","start","formatBlock","nodeAfter","keys","forward","elementStart","track-changes-command-not-found","getLastMatchingPosition","removeAttribute","applyOperation","_joinWithAdjacentSuggestions","setAttribute","editingDowncast","_adapter","unbind","locale","_findSuggestions","markBlockFormat","getFirstRange","createdAt","dataReady","deletion","$textProxy","range","getNearestSelectionRange","conversion","external:","creator","isDocumentOperation","targetPosition","config","addSuggestionData","isTouching","commands","_addThreadToSuggestion","_handleNewSuggestionMarker","getCommentThread","change:data","update:suggestion","head","splice","getSuggestion","pluginName","every","hasSuggestion","getShiftedBy","plugins","isIntersectingWithRange","fetchCommentThread","bindElementToMarker","markDeletion","isObject","markerToHighlight","PENDING_ACTION_SUGGESTION","track-changes-adapter-missing-getsuggestion","isArray","init","formatInline:discard","isExternal","insert","isBlock","_suggestionFactory","addMarker:suggestion","map","accept","isOwn","after","deleteContent","skipNestingCheck","containerElement","_cutOutSuggestionMarker","low","insertion:accept","_onDiscard","suggestion:","registerCustomCallback","push","setTo","formatBlock:discard","authoredAt","_getExternalAuthor","editor","isAfter","getRanges","getWalker","document","moveTargetPosition","addMarker:suggestion:formatBlock","Users","trackChangesCommand","_enabledCommands","containsItem","formatGroupId","acceptSelectedSuggestions","isAtEnd","formatInline","markerReady","filter","join","_breakSuggestionMarker","ready","trackChanges.trackFormatChanges","getSuggestions","ck-suggestion-marker-formatBlock","formatBlock:","_mergeNestedSuggestions","registerPostFixer","hasComments","suggestionChanged","writer","enqueueChange","acceptSuggestion","error-saving-suggestion-data-suggestion-discarded","value","containsPosition","_customCallbacks","attributes","addRange","_getSuggestionData","insertion:","listenTo","delete","markInsertion","insertion:chain","commentThread","addMarkerName","addSuggestion","for","insertion:join","commandName","insertContent","_updateSuggestionData","_addSuggestionMarker","adapter","get","removeClass","some","_joinSuggestions","add","split","set","_setSuggestionData","addUser","_setSuggestionRange","_registerDefaultCallbacks","stopListening","_model","isCollapsed","isEqual","_rangeIsInLocalUserInsertion","_defaultCallbacks","_commentsRepository","catch","getSuggestionCallback","howMany","widget","createPositionAfter","forceDefaultExecution","next","_saved","createSelection","editing","name","data","newRange","elementToElement","deletion:discard","isRemovable","lowest"];var Ka,qa;Ka=Va,qa=252,function(t){for(;--t;)Ka.push(Ka.shift())}(++qa);const Xa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[Xa("0xcd")](){return[Xa("0xb5"),r.Users,t.PendingActions,cs,ms,Rs,Ms,Bs,zs,$s,er,ir,ja,ur,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,Mi,ji,Wi,$i,tx,rx,dx,px,Cx,Ix,wx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get[Xa("0x107")](){return Xa("0xd3")}constructor(t){function e(t){return t.map((t=>String[Xa("0xa8")](t)))[Xa("0x13f")]("")}super(t),this[Xa("0x28")]("activeMarkers",[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[Xa("0x2e")].change((()=>{for(const e of[...s,...o])this[Xa("0x2e")].markers[Xa("0x85")](e)&&t[Xa("0x3d")][Xa("0x52")](e)}))})),this._descriptionFactory=new ss(this[Xa("0x12e")][Xa("0x49")][Xa("0xd1")],this[Xa("0x12e")][Xa("0xec")]),this[Xa("0xea")]=null,this._suggestionFactory=new Ja(this[Xa("0x12e")]),this[Xa("0xac")]=new Map,this[Xa("0x33")]=t.plugins[Xa("0x22")](Xa("0xb5")),this[Xa("0x137")]=new Set,this[Xa("0x2e")]=this[Xa("0x12e")][Xa("0x49")],this._suggestionState=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t.config.define(Xa("0x1"),Xa("0xa7")),this._trackFormatChanges=t[Xa("0xfb")][Xa("0x22")](Xa("0x1")),t[Xa("0xfb")][Xa("0xcb")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x5")]=t.config.get(Xa("0x51")),this[Xa("0x136")]=new u(t,this[Xa("0x137")]),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,50,48,51,48])}[Xa("0x115")](){const t=this[Xa("0x12e")];t[Xa("0xf6")][Xa("0x1b")]("editingDowncast")[Xa("0x111")]({model:Xa("0x50"),view:t=>{const{id:e,type:n}=this[Xa("0x56")](t[Xa("0xc1")]),o=[Xa("0x5a"),Xa("0x75")+n];let s=3e3;return this.activeMarkers[Xa("0xae")](t[Xa("0xc1")])&&(o[Xa("0x129")](Xa("0xbe")),s=3010),Xa("0xf2")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0xf6")].for("dataDowncast")[Xa("0x26")]((e=>{e.on(Xa("0x11b"),((e,n,o)=>{if(!o.options[Xa("0xd9")])return;const s=n.item;if(!s)return;const r=o[Xa("0x74")][Xa("0xcc")](s);t[Xa("0x49")][Xa("0xd1")].isObject(s)&&r&&!r[Xa("0xa0")](Xa("0x37"))&&r.is(Xa("0x122"))&&(0,x.toWidget)(r,o[Xa("0x9")])}),{priority:Xa("0x6a")})})),t[Xa("0xf6")][Xa("0x1b")](Xa("0x93"))[Xa("0x111")]({model:Xa("0x50"),view:(t,e)=>{if(!e.options[Xa("0xd9")])return null;const{type:n}=this[Xa("0x56")](t[Xa("0xc1")]);return{classes:[Xa("0x5a"),Xa("0x75")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x6d")])return;if(o[Xa("0x6d")].is(Xa("0xd8")))return void s[Xa("0x4d")][Xa("0x60")](o[Xa("0x6d")],n[Xa("0x3e")]);const r=s.mapper[Xa("0xcc")](o[Xa("0x6d")]);if(!o.item.is(Xa("0x70"))||!t[Xa("0x49")][Xa("0xd1")].isBlock(o[Xa("0x6d")])||r[Xa("0xa0")](Xa("0x4a")))return;const{id:i}=this[Xa("0x56")](o[Xa("0xc1")]);s.writer[Xa("0xba")]([Xa("0x5a"),Xa("0x3")],r),s[Xa("0x9")][Xa("0xe8")](Xa("0x8b"),i,r),s.mapper[Xa("0x10e")](r,o[Xa("0xc1")]),e&&(this[Xa("0xdb")][Xa("0xae")](o[Xa("0xc1")])?s[Xa("0x9")][Xa("0xba")](Xa("0xbe"),r):s[Xa("0x9")][Xa("0x23")](Xa("0xbe"),r));for(const e of t[Xa("0x49")].createRangeIn(o[Xa("0x6d")]).getItems())s.consumable.consume(e,n[Xa("0x3e")]);s[Xa("0x4d")].consume(o[Xa("0x6d")],n[Xa("0x3e")])};t[Xa("0xf6")][Xa("0x1b")](Xa("0x93"))[Xa("0x26")]((t=>{t.on(Xa("0x134"),((t,e,o)=>{o[Xa("0xda")][Xa("0xd9")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0x9e")})})),t.conversion[Xa("0x1b")](Xa("0x93")).markerToData({model:"suggestion",view:(t,e)=>e[Xa("0xda")][Xa("0xd9")]?null:{group:"suggestion",name:t.substr(11)}}),t[Xa("0xf6")].for(Xa("0xb6"))[Xa("0x41")]({view:{name:Xa("0x50"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0x127")+t.getAttribute("suggestion-type")+":"+t.getAttribute("id");return t[Xa("0x5c")](Xa("0xad"))&&(n+=":"+t[Xa("0x5c")](Xa("0xad"))),e.createElement(Xa("0xa9"),{"data-name":n})}}),t[Xa("0xf6")][Xa("0x1b")]("upcast").dataToMarker({view:"suggestion"}),t[Xa("0xf6")][Xa("0x1b")]("editingDowncast")[Xa("0x26")]((t=>{t.on(Xa("0x134"),n(),{priority:"high"})})),t.conversion[Xa("0x1b")](Xa("0xe9"))[Xa("0x26")]((t=>{t.on(Xa("0x5b"),((t,e,n)=>{const o=n[Xa("0x74")].markerNameToElements(e.markerName);if(o)for(const t of o)t[Xa("0xa0")](Xa("0x4a"))||(n.writer[Xa("0x23")]([Xa("0x5a"),Xa("0x3"),"ck-suggestion-marker--active"],t),n[Xa("0x9")][Xa("0xe5")]("data-suggestion",t),n[Xa("0x74")].unbindElementFromMarkerName(t,e[Xa("0xc1")]))}),{priority:Xa("0x6a")})})),t[Xa("0x49")].document[Xa("0x6")]((e=>{let n=!1;const o=Array[Xa("0x90")](t[Xa("0x49")].document.differ[Xa("0x94")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x56")](x);if(Xa("0x50")!==o)continue;const d=this._suggestions[Xa("0x22")](l);if(null!=a.newRange)if(Xa("0x13c")==c&&(n=n||Ya(a[Xa("0x40")],x,e,t.model[Xa("0xd1")])),a[Xa("0x40")][Xa("0x2f")]||Xa("0x7f")==a.newRange[Xa("0x54")][Xa("0xb9")]||Xa("0xde")==c&&!ec(a[Xa("0x40")])||Xa("0xf2")==c&&(Za(i=a[Xa("0x40")])||(r=i)[Xa("0xdd")].parent==r.end.nodeBefore&&r.start[Xa("0x13b")]))e.removeMarker(x),n=!0;else{if(!d||!d[Xa("0xb8")])continue;s[Xa("0x26")](d)}}var r,i;return s.size>0&&(n=!!this[Xa("0xe7")](s)||n),n})),t[Xa("0x49")][Xa("0x132")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x49")][Xa("0x132")][Xa("0x8c")][Xa("0x69")]()){if("insert"!=o[Xa("0x7e")])continue;const s=o.position[Xa("0x10a")](o.length);if(s[Xa("0x13b")])for(const r of this[Xa("0xac")].values()){if(r.isMultiRange||!r[Xa("0xb8")])continue;if(Xa("0xde")!=r[Xa("0x7e")])continue;const i=r.getFirstRange();if(i[Xa("0xdd")][Xa("0xc0")]!=i.end[Xa("0xc0")]&&i[Xa("0xa6")][Xa("0x30")](o[Xa("0x59")])){const o=t.model[Xa("0x96")](i.start,s);e.updateMarker(r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0x49")].markers.on(Xa("0x103"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x56")](e[Xa("0x3e")]),n=this._suggestions.get(t);n&&n[Xa("0x19")](e[Xa("0x3e")])}})),t[Xa("0x49")][Xa("0x132")].on(Xa("0x102"),(()=>{const e=Array.from(t.model[Xa("0x132")][Xa("0x8c")][Xa("0x94")]())[Xa("0x13e")]((t=>Xa("0x50")===this[Xa("0x56")](t[Xa("0x3e")]).group));if(0===e[Xa("0x53")])return;e.sort(((t,e)=>{const n=t[Xa("0x3f")].oldRange,o=e[Xa("0x3f")][Xa("0x6e")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0xdd")].isBefore(o[Xa("0xdd")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x56")](t);if(null===s.oldRange){const e=this[Xa("0x100")](t);o[Xa("0x26")](e)}else{const t=this[Xa("0xac")][Xa("0x22")](e);null!==s[Xa("0x40")]||t[Xa("0xb8")]?(n[Xa("0x26")](t[Xa("0x104")]),o[Xa("0x26")](t)):this[Xa("0x73")](t)}}o[Xa("0x64")]>0&&this[Xa("0xaa")](o);for(const t of n)this[Xa("0x92")]("suggestionChanged",t)})),t.model.on(Xa("0xe6"),((e,n)=>{const o=n[0];if(!this._suggestions[Xa("0x64")])return;if(!o[Xa("0xf9")])return;if(o[Xa("0x61")][Xa("0xd0")]||!o[Xa("0x61")][Xa("0x9c")])return;let s,r;switch(o.type){case Xa("0x118"):s=t[Xa("0x49")].createPositionAt(o.position),r=s[Xa("0x10a")](o[Xa("0x36")]);break;case"split":s=t[Xa("0x49")].createPositionAt(o.splitPosition),r=t[Xa("0x49")][Xa("0xb7")](o[Xa("0x133")]);break;case Xa("0x5d"):s=t[Xa("0x49")][Xa("0xb7")](o[Xa("0xfa")]),r=s.getShiftedBy(o.howMany);break;default:return}const i=t[Xa("0x49")][Xa("0x96")](s,r);t[Xa("0x49")][Xa("0xbb")]((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t.isMultiRange)continue;if(Xa("0x13c")==t.type)continue;const n=t[Xa("0x3f")]&&t[Xa("0x3f")].multipleBlocks;("formatBlock"!=t[Xa("0x7e")]||"split"==o[Xa("0x7e")]&&!n)&&(e[Xa("0x67")]||"insertion"==t.type&&e[Xa("0x11e")]||t.getFirstRange()[Xa("0x78")](i)&&this[Xa("0x140")](t,s,r))}}))}),{priority:Xa("0x44")}),t.model.on(Xa("0x120"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0x39")])return;if(this[Xa("0x95")])return;if(!this[Xa("0x136")][Xa("0xd")])return;if(o[Xa("0x2f")])return;const r=t[Xa("0x49")][Xa("0xd1")],{start:i,end:x}=o.getFirstRange(),a=i.nodeAfter&&r[Xa("0x58")](i.nodeAfter)?null:r[Xa("0xf5")](i,Xa("0xe1")),c=x[Xa("0x7c")]&&r[Xa("0x58")](x[Xa("0x7c")])?null:r[Xa("0xf5")](x,"backward"),l=t[Xa("0x49")][Xa("0x96")](a?a[Xa("0xdd")]:i,c?c[Xa("0xa6")]:x);t[Xa("0x49")].change((e=>{this[Xa("0x10f")](l);const n=t[Xa("0x49")][Xa("0xd1")][Xa("0xf5")](l[Xa("0xdd")]);o.is(Xa("0x8a"))?e.setSelection(n):o[Xa("0x12a")](n)})),e[Xa("0x81")]()}),{priority:e.priorities.normal+10}),t[Xa("0x49")].on("insertContent",((e,n)=>{const o=n[n[Xa("0x53")]-1];o&&o[Xa("0x39")]||this[Xa("0x95")]||this.trackChangesCommand.value&&(t[Xa("0x49")].change((()=>{let o=t[Xa("0x49")][Xa("0x1e")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x77")]=o[Xa("0xab")]();const s=o[Xa("0xa6")].nodeBefore,r=t[Xa("0x49")].schema;s&&r[Xa("0x119")](s)&&!r.isObject(s)&&(o=t[Xa("0x49")][Xa("0x96")](o[Xa("0xdd")],t.model[Xa("0xb7")](s,Xa("0xa6")))),this[Xa("0x16")](o)})),e[Xa("0x81")]())}),{priority:Xa("0x6a")}),this[Xa("0x12e")][Xa("0xfe")].add("trackChanges",this[Xa("0x136")]),this[Xa("0x9b")]("trackChanges");const o=new p(t,this[Xa("0xac")]);t[Xa("0xfe")][Xa("0x26")](Xa("0xb"),o),this[Xa("0x9b")]("acceptSuggestion");const s=new C(t,this[Xa("0xac")]);t[Xa("0xfe")][Xa("0x26")](Xa("0x9d"),s),this[Xa("0x9b")]("discardSuggestion"),t[Xa("0xfe")].add(Xa("0x91"),new F(t,o,this[Xa("0xac")])),this[Xa("0x9b")](Xa("0x91")),t.commands.add(Xa("0xd5"),new F(t,s,this[Xa("0xac")])),this[Xa("0x9b")](Xa("0xd5")),t[Xa("0xfe")].add("acceptSelectedSuggestions",new U(t,o,this[Xa("0xac")])),this.enableCommand(Xa("0x13a")),t.commands[Xa("0x26")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[Xa("0x9b")]("discardSelectedSuggestions");const r=t[Xa("0x10b")].get("CommentsRepository");this[Xa("0x14")](r,Xa("0x46"),((t,{threadId:e})=>{const n=this[Xa("0xac")][Xa("0x22")](e);n&&n[Xa("0x18")]&&1===n[Xa("0x18")][Xa("0x53")]&&this[Xa("0x1f")](e,{hasComments:!0})}),{priority:Xa("0x124")}),this.listenTo(r,Xa("0xb3"),((t,{threadId:e})=>{const n=this[Xa("0xac")][Xa("0x22")](e);n&&n[Xa("0x18")]&&!n[Xa("0x18")][Xa("0x53")]&&this[Xa("0x1f")](e,{hasComments:!1})}),{priority:Xa("0x124")})}set[Xa("0x21")](t){if(this[Xa("0xea")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xa("0xea")]=t}get adapter(){return this[Xa("0xea")]}[Xa("0x2")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xac")][Xa("0xc9")]())t&&!e[Xa("0xb8")]||n[Xa("0x129")](e);return e?n[Xa("0x11c")]((t=>t[Xa("0x8f")]())):n}[Xa("0x106")](t){const n=this[Xa("0xac")][Xa("0x22")](t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[Xa("0x109")](t){return this[Xa("0xac")].has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type.split(":"),i=this[Xa("0xac")][Xa("0x22")](n)||this[Xa("0xc7")](s,r,n,e,o);if(this[Xa("0xff")](i),this[Xa("0xc6")](i,s,r||null,e),i[Xa("0xf0")]=t[Xa("0xf0")],i[Xa("0x83")]=!0,o&&o[Xa("0x82")]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);i.authoredAt=t[Xa("0xf0")],i[Xa("0xd6")]=e,i[Xa("0x117")]=!0}else i[Xa("0x12c")]=t[Xa("0xf0")];switch(t[Xa("0x3f")]&&(i[Xa("0x3f")]=t[Xa("0x3f")]),t[Xa("0x10")]&&(i[Xa("0x10")]=t.attributes),this[Xa("0xea")]&&this[Xa("0xea")][Xa("0x1a")]||(i[Xa("0x3b")]=!0),this[Xa("0x45")][Xa("0x22")](i)){case"notReady":this._suggestionState[Xa("0x28")](i,Xa("0xf1"));break;case Xa("0x13d"):i[Xa("0xb8")]?(this._refreshSuggestionsChain(new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Xa("0x45")].set(i,Xa("0x0")),this[Xa("0x92")]("suggestionLoaded",i)):this[Xa("0x45")].set(i,Xa("0xd2"))}return i}acceptSuggestion(t){this[Xa("0x39")]((()=>{this.editor[Xa("0x49")][Xa("0xbb")]((()=>{for(const e of t.getAllAdjacentSuggestions())e[Xa("0x11d")]()}))}))}[Xa("0x9d")](t){this[Xa("0x39")]((()=>{this[Xa("0x12e")].model.change((()=>{for(const e of t[Xa("0x84")]())e[Xa("0x4f")]()}))}))}enableCommand(t,n){const o=this.editor.commands[Xa("0x22")](t);if(!o)throw new e.CKEditorError(Xa("0xe3"),this,{commandName:t});this._enabledCommands[Xa("0x26")](o),n&&o.on(Xa("0xc4"),((t,e)=>{this[Xa("0x136")].value&&(this[Xa("0x95")]||e.length>0&&e[e[Xa("0x53")]-1]&&e[e[Xa("0x53")]-1][Xa("0x39")]||(t[Xa("0x77")]=n(((...t)=>o[Xa("0xc4")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x81")]()))}),{priority:Xa("0x6a")})}[Xa("0x39")](t){let n,o;const s=this[Xa("0x95")];this[Xa("0x95")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x95")]=!1),o&&e.CKEditorError[Xa("0x68")](o,this),n}[Xa("0x16")](t,n=null,o={}){if(t[Xa("0x2f")])return null;const s=this.editor[Xa("0x10b")].get(Xa("0x135")).me;for(const{suggestion:e,meta:s}of this[Xa("0xed")](t,Xa("0x88")))if(s.isOwn){if(!s[Xa("0x76")]){if(s.containsRangeInObject){if(!this[Xa("0x5")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0x140")](e,t[Xa("0xdd")],t.end);break}if(n==e[Xa("0xd7")]&&rc(e,o)){const n=e[Xa("0xef")]();return n[Xa("0xdd")].isEqual(t[Xa("0xa6")])?this._setSuggestionRange(e,this[Xa("0x2e")][Xa("0x96")](t[Xa("0xdd")],n.end)):this[Xa("0x2b")](e,this[Xa("0x2e")][Xa("0x96")](n[Xa("0xdd")],t[Xa("0xa6")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0x13")+n:Xa("0x88"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x20")](x,r,i,t),a}[Xa("0xd4")](t,n="multi",o={}){const s=this.editor[Xa("0x10b")].get(Xa("0x135")).me,r=this[Xa("0x11a")].getSuggestionCallback("insertion",n,Xa("0x13f"));for(const e of this[Xa("0x2")]())if(e.author.id==s.id&&Xa("0x88")==e.type&&e[Xa("0xd7")]==n&&rc(e,o)&&(r(e[Xa("0x130")](),t)||r(t,e.getRanges()))){for(const n of t)e[Xa("0x11")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0x88"))){if(!n[Xa("0x11e")])continue;if(!this[Xa("0x5")]&&n[Xa("0x67")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[Xa("0x130")]())for(const e of t)if(!n[Xa("0x78")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0x13")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[Xa("0xca")]());return c}[Xa("0x6c")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0x2f")])return null;if(Xa("0x7d")===this[Xa("0xc5")]){const e=this[Xa("0x11a")][Xa("0x35")]("formatInline",o,"accept");return this[Xa("0x39")]((()=>e([t],n,s))),null}const r=this[Xa("0x12e")].plugins.get(Xa("0x135")).me,i=[];if(Xa("0xbf")!==this[Xa("0xc5")])for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0x88")))n[Xa("0x11e")]&&!n[Xa("0x9f")]&&i[Xa("0x129")](...e[Xa("0x130")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x129")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][Xa("0x6b")](t);n[Xa("0x105")](e,1,...o),e+=o.length}}return n}(t,i);x[Xa("0x53")]&&this[Xa("0x2e")][Xa("0xbb")]((()=>{for(const t of x){const e=this[Xa("0x11a")][Xa("0x35")]("formatInline",o,"accept");this[Xa("0x39")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t.start,a=t[Xa("0xa6")];for(const{suggestion:e,meta:n}of this[Xa("0xed")](t,Xa("0x13c"))){if(!n[Xa("0x11e")])continue;if(e[Xa("0xd7")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0xef")]();if(r.containsRange(t,!0))return null;x=x[Xa("0xa2")](r.start)?x:r[Xa("0xdd")],a=a[Xa("0x12f")](r[Xa("0xa6")])?a:r[Xa("0xa6")],i?r[Xa("0xdd")].isBefore(i[Xa("0xef")]()[Xa("0xdd")])?(i[Xa("0x5f")](),i=e):e.removeMarkers():i=e}const c=this._model[Xa("0x96")](x,a);if(i)this._setSuggestionRange(i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x29")]({id:t,type:Xa("0xce")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x20")](Xa("0xce")+o,t,i,c)}}return null}[Xa("0xee")](t,n,o=[],s=null,r={}){n[Xa("0x139")]||(n[Xa("0x139")]=n[Xa("0x1d")]),n.multipleBlocks=t.is(Xa("0xf4")),s=s||tc(n);const i=o[Xa("0x11c")]((t=>nc(t,this[Xa("0x2e")]))),x=t.is(Xa("0xf4"))?t:nc(t,this[Xa("0x2e")]);if("never"===this._trackFormatChanges){const t=this[Xa("0x11a")][Xa("0x35")](Xa("0xde"),s,Xa("0x11d"));return this[Xa("0x39")]((()=>t([x],n,r))),null}i[Xa("0x129")](x);let a=!0;for(const t of i)if(!this[Xa("0x31")](t)){a=!1;break}if(a&&Xa("0xbf")!==this[Xa("0xc5")]){const t=this[Xa("0x11a")][Xa("0x35")](Xa("0xde"),s,"accept");return this[Xa("0x39")]((()=>t([x],n,r))),null}let c=null,l=x.start,d=x[Xa("0xa6")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[Xa("0x11e")])continue;if(e[Xa("0x76")]||e.containsRangeInObject||e[Xa("0x9f")])continue;if(t.data[Xa("0x139")]!=n[Xa("0x139")])continue;if(!rc(t,r))continue;const o=t[Xa("0xef")]();if(t[Xa("0xd7")]==s){if(o[Xa("0x78")](x,!0))return null;l=l[Xa("0xa2")](o[Xa("0xdd")])?l:o[Xa("0xdd")],d=d.isAfter(o[Xa("0xa6")])?d:o.end,c?o[Xa("0xdd")][Xa("0xa2")](c[Xa("0xef")]()[Xa("0xdd")])?(c.removeMarkers(),c=t):t[Xa("0x5f")]():c=t}else{const e=x[Xa("0x5e")](o);this[Xa("0x123")](t,e)}}const u=this[Xa("0x12e")][Xa("0x10b")][Xa("0x22")](Xa("0x135")).me,g=(0,e.uid)(),m=u.id;if(c)return this[Xa("0x2b")](c,this._model[Xa("0x96")](l,d)),c;{const t=this[Xa("0x29")]({id:g,type:Xa("0x4")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this._addSuggestionMarker(Xa("0x4")+s,g,m,this._model[Xa("0x96")](l,d)),t}}[Xa("0xb0")](t,n,o=[],s=null,r={}){n[Xa("0x139")]||(n[Xa("0x139")]=n.commandName);const i=t[0];n[Xa("0xa1")]=i.is(Xa("0xf4")),s=s||tc(n);const x=o[Xa("0x11c")]((t=>nc(t,this._model))),a=i.is("range")?t:t[Xa("0x11c")]((t=>nc(t,this[Xa("0x2e")])));if(Xa("0x7d")===this[Xa("0xc5")]){const t=this._suggestionFactory[Xa("0x35")](Xa("0xde"),s,Xa("0x11d"));return this[Xa("0x39")]((()=>t(a,n,r))),null}x[Xa("0x129")](...a);let c=!0;for(const t of x)if(!this[Xa("0x31")](t)){c=!1;break}if(c&&Xa("0xbf")!==this[Xa("0xc5")]){const t=this[Xa("0x11a")][Xa("0x35")](Xa("0xde"),s,Xa("0x11d"));return this[Xa("0x39")]((()=>t(a,n,r))),null}const l=this[Xa("0x12e")][Xa("0x10b")][Xa("0x22")](Xa("0x135")).me;for(const t of this[Xa("0x2")]()){if(t[Xa("0xd6")].id!=l.id)continue;if(Xa("0xde")!=t[Xa("0x7e")]||t.data[Xa("0x139")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const e=t.subType==s;for(let n=0;n<a[Xa("0x53")];n++){const o=a[n];for(const s of t[Xa("0xb1")]()){const r=s[Xa("0x71")]();if(o[Xa("0x30")](r)){e?(a.splice(n,1),n--):t[Xa("0x48")](s[Xa("0x3e")]);break}}}}if(0==a[Xa("0x53")])return null;const d=this._suggestionFactory.getSuggestionCallback(Xa("0xde"),s,"join");for(const t of this[Xa("0x2")]())if(t[Xa("0xd6")].id==l.id&&Xa("0xde")==t[Xa("0x7e")]&&t[Xa("0x3f")][Xa("0x139")]==n[Xa("0x139")]&&t[Xa("0xd7")]==s&&rc(t,r)&&(d(t[Xa("0x130")](),a)||d(a,t[Xa("0x130")]()))){for(const e of a)t[Xa("0x11")](e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x4")+s,f=this[Xa("0x29")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0x20")](m,u,g,t,Zo[Xa("0xca")]());return f}markDeletion(t,n=null,o={}){if(t[Xa("0x2f")])return null;const s=this.editor[Xa("0x10b")][Xa("0x22")](Xa("0x135")).me,r=new i.LiveRange(t[Xa("0xdd")],t[Xa("0xa6")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0x88")))if(e[Xa("0x11e")]&&!e[Xa("0x76")])if(t[Xa("0x87")]){const e=t[Xa("0x130")]()[Xa("0x13e")]((t=>Xa("0x7f")!=t.root[Xa("0xb9")]));if(e[Xa("0x108")]((t=>r.containsRange(t,!0)))&&t[Xa("0x4f")](),e[Xa("0x24")]((t=>t.containsRange(r,!0)))){const t=this[Xa("0x11a")][Xa("0x35")]("deletion",n,"accept");return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r[Xa("0x5e")](t[Xa("0xef")]());null!==e&&t[Xa("0x126")]([e],null,o)}if(r[Xa("0x65")](),r[Xa("0x2f")]||"$graveyard"==r[Xa("0x54")][Xa("0xb9")])return null;let x=null,a=r.start,c=r[Xa("0xa6")];const l=this[Xa("0xed")](r,Xa("0xf2"));for(const{suggestion:t,meta:e}of l){const n=this[Xa("0x2e")][Xa("0x96")](a,c);if(e[Xa("0x11e")]&&(this[Xa("0x5")]||!e[Xa("0x67")]&&!e[Xa("0x9f")]))if(t[Xa("0x87")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x130")]()){if(o[Xa("0x78")](n,!0))return t;n[Xa("0x78")](o)||(e=!1)}e&&t[Xa("0x4f")]()}else{const e=t[Xa("0xef")]();if(e[Xa("0x78")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t.removeMarkers():e[Xa("0xe")](a)?a=e[Xa("0xa6")]:e[Xa("0xe")](c)&&(c=e[Xa("0xdd")]);continue}a=a[Xa("0xa2")](e.start)?a:e[Xa("0xdd")],c=c[Xa("0x12f")](e[Xa("0xa6")])?c:e[Xa("0xa6")],o=Object[Xa("0x4e")]({},t[Xa("0x10")]),x?e[Xa("0xdd")][Xa("0xa2")](x[Xa("0xef")]().start)?(x.removeMarkers(),x=t):t[Xa("0x5f")]():x=t}}if(x)return this._setSuggestionRange(x,this[Xa("0x2e")][Xa("0x96")](a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x2e")][Xa("0x96")](a,c),i=s.id,x=n?"deletion:"+n:Xa("0xf2"),l=this._setSuggestionData({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x20")](x,t,i,r),l}}markMultiRangeDeletion(t,n=Xa("0x55"),o={}){const s=this.editor[Xa("0x10b")][Xa("0x22")](Xa("0x135")).me,r=t[Xa("0x11c")]((t=>new i.LiveRange(t[Xa("0xdd")],t[Xa("0xa6")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0xed")](r,Xa("0x88")))e.isOwn&&!e[Xa("0x76")]&&x[Xa("0x26")](t);for(const e of x)if(e[Xa("0x87")]){const s=e[Xa("0x130")]();if((!e.attributes||!e.attributes.skipNestingCheck)&&s[Xa("0x108")]((t=>r.some((e=>e[Xa("0x78")](t,!0)))))&&e[Xa("0x4f")](),r.every((t=>s.some((e=>e[Xa("0x78")](t,!0)))))){const e=this[Xa("0x11a")][Xa("0x35")](Xa("0xf2"),n,Xa("0x11d"));return this[Xa("0x39")]((()=>e(t,null,o))),null}}else{const t=e[Xa("0xef")]();if(r[Xa("0x24")]((e=>e[Xa("0x78")](t,!0)))&&e.discard(),r.every((e=>t[Xa("0x78")](e,!0)))){const t=this._suggestionFactory[Xa("0x35")](Xa("0xf2"),n,"accept");return this[Xa("0x39")]((()=>t(r,null,o))),null}}const a=this[Xa("0x11a")][Xa("0x35")](Xa("0xf2"),n,Xa("0x13f"));let c=null;for(const t of this[Xa("0x2")]())if(t[Xa("0xd6")].id==s.id&&t.isInContent&&"deletion"==t[Xa("0x7e")]&&t[Xa("0xd7")]==n&&rc(t,o)&&(a(t[Xa("0x130")](),r)||a(r,t[Xa("0x130")]())))if(c){if(t[Xa("0x18")]&&t[Xa("0x18")][Xa("0x53")])continue;for(const e of t.getRanges())c[Xa("0x10c")](e)||c[Xa("0x11")](e);t.removeMarkers()}else{c=t;for(const e of r)t[Xa("0x10c")](e)||t.addRange(e)}if(c)return c;x.clear();for(const{suggestion:t,meta:e}of this[Xa("0xed")](r,"deletion"))e[Xa("0x11e")]&&(this[Xa("0x5")]||!e[Xa("0x67")]&&!e[Xa("0x9f")])&&rc(t,o)&&x[Xa("0x26")](t);for(const t of x){const e=t.getRanges();if((!o||!o[Xa("0x121")])&&r[Xa("0x108")]((t=>e[Xa("0x24")]((e=>e[Xa("0x78")](t,!0))))))return t;(!t[Xa("0x10")]||!t[Xa("0x10")].skipNestingCheck)&&e.every((t=>r[Xa("0x24")]((e=>e[Xa("0x78")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[Xa("0x65")](),t.isCollapsed||Xa("0x7f")==t[Xa("0x54")][Xa("0xb9")]||this[Xa("0x20")](u,l,d,t,Zo.getMultiRangeId());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[Xa("0x2e")][Xa("0xbb")]((t=>{t[Xa("0x86")](n,{range:e})}))}[Xa("0xff")](t){const e=t.id,n=this[Xa("0x12e")][Xa("0xfb")][Xa("0x22")](Xa("0xb2"));this[Xa("0x33")][Xa("0x9a")](e)||this[Xa("0x33")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x33")][Xa("0x101")](e);o[Xa("0xeb")](Xa("0x43")),o[Xa("0x43")]=!1,t[Xa("0x18")]=o}[Xa("0xc6")](t,n,o,s){if(t[Xa("0x7e")]!=n||t[Xa("0xd7")]!=o||t[Xa("0xf8")].id!=s)throw this.editor[Xa("0x89")]("track-changes-suggestion-data-mismatch"),new e.CKEditorError(Xa("0xc3"),this)}[Xa("0x123")](t,n){const o=t[Xa("0xef")]();if(n[Xa("0x30")](o))t[Xa("0x5f")]();else if(o[Xa("0x78")](n)){const s=this._model.createPositionAt(n.start[Xa("0x7c")],"end");this[Xa("0x2b")](t,this._model.createRange(o[Xa("0xdd")],s));const r=(0,e.uid)(),i=t.creator.id,x=t[Xa("0x7e")]+":"+t.subType;this[Xa("0x29")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0x3f")],attributes:t.attributes});const a=this._model[Xa("0xb7")](n[Xa("0xa6")][Xa("0xc0")],Xa("0x11f")),c=this[Xa("0x2e")].createRange(a,o[Xa("0xa6")]);this[Xa("0x20")](x,r,i,c)}else if(o[Xa("0xe")](n[Xa("0xdd")])){const e=this[Xa("0x2e")][Xa("0xb7")](n[Xa("0xdd")][Xa("0x7c")],Xa("0xa6"));this[Xa("0x2b")](t,this._model[Xa("0x96")](o[Xa("0xdd")],e))}else{const e=this[Xa("0x2e")][Xa("0xb7")](n[Xa("0xa6")][Xa("0xc0")],Xa("0x11f"));this._setSuggestionRange(t,this[Xa("0x2e")].createRange(e,o[Xa("0xa6")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,"insertion")){if(!n[Xa("0x11e")])continue;const o=e[Xa("0x130")]();for(const e of o)if(!t[Xa("0x6b")](e)[Xa("0x53")])return!0}return!1}[Xa("0x47")](t){const n=this[Xa("0x12e")].plugins[Xa("0x22")](Xa("0x135"))[Xa("0xa4")](t);if(!n)throw new e.CKEditorError(Xa("0xb4"),this);return n}[Xa("0x12d")](t){const e=this[Xa("0x12e")][Xa("0x10b")].get(Xa("0x135")),n=(0,r.hashObject)(Xa("0xf7")+t);return e.getUser(n)||e[Xa("0x2a")]({id:n,name:t})}[Xa("0xc7")](t,e,n,o,s){const r=this[Xa("0x47")](o),i=this[Xa("0x11a")][Xa("0x79")](t,e,n,r,s,(t=>this[Xa("0x1f")](n,{attributes:t})));return this[Xa("0x14")](i,Xa("0x11d"),(()=>{this[Xa("0x1f")](n,{state:Xa("0x57")})}),{priority:Xa("0x6a")}),this[Xa("0x14")](i,"discard",(()=>{this[Xa("0x1f")](n,{state:"rejected"})}),{priority:Xa("0x6a")}),this._suggestions[Xa("0x28")](n,i),this._suggestionState[Xa("0x28")](i,Xa("0xa5")),i}[Xa("0x56")](t){const e=t[Xa("0x27")](":");return{group:e[0],type:e[1],subType:e[Xa("0x53")]>=5?e[2]:null,id:e[Xa("0x53")]<5?e[2]:e[3],authorId:e[Xa("0x53")]<5?e[3]:e[4],markerCount:6==e[Xa("0x53")]?e[5]:null}}[Xa("0x140")](t,n,o){const s=t.getFirstRange(),r=s[Xa("0xdd")],i=s[Xa("0xa6")];this[Xa("0x2b")](t,this._model[Xa("0x96")](r,n));const x=(0,e.uid)(),a=t[Xa("0xf8")].id,c=t[Xa("0x7e")]+(t[Xa("0xd7")]?":"+t.subType:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x10")],data:t.data}),Xa("0xde")==t[Xa("0x7e")]&&(o=this[Xa("0x2e")][Xa("0x4c")](o[Xa("0xc0")])),this[Xa("0x20")](c,x,a,this[Xa("0x2e")][Xa("0x96")](o,i))}_findSuggestions(t,e=null){const n=[],o=this[Xa("0x12e")][Xa("0x10b")][Xa("0x22")]("Users").me;Array[Xa("0x114")](t)||(t=[t]);for(const s of this[Xa("0x2")]()){if(!s[Xa("0xb8")])continue;if(e&&s[Xa("0x7e")]!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i.start.isEqual(e[Xa("0xa6")])||i[Xa("0xa6")][Xa("0x30")](e[Xa("0xdd")]);if(t||i[Xa("0x5e")](e)){const x=i[Xa("0x78")](e)&&Qa(this[Xa("0x2e")][Xa("0xd1")],e[Xa("0xdd")],i),a=e.containsRange(i)&&Qa(this._model.schema,i[Xa("0xdd")],e);n.push({suggestion:s,meta:{isOwn:o==s[Xa("0xd6")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0x2e")][Xa("0xbb")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0xbd")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x73")](t){const e=t[Xa("0x72")],n=t[Xa("0x3a")];t[Xa("0x72")]=null,null!=e&&(e[Xa("0x3a")]=null),t[Xa("0x3a")]=null,null!=n&&(n.previous=null),"ready"==this[Xa("0x45")][Xa("0x22")](t)&&(this[Xa("0x45")].set(t,"removed"),this[Xa("0x92")](Xa("0x80"),t,e,n))}[Xa("0x29")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0xea")]&&this[Xa("0xea")][Xa("0x1a")]){const s=this[Xa("0x12e")][Xa("0x10b")].get(Xa("0x62")),r=o[Xa("0x7")],i=o.subType?o[Xa("0x7e")]+":"+o.subType:o[Xa("0x7e")],x=this.editor[Xa("0xec")],a=s[Xa("0x26")](Yo(x,Xa("0x112"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0x63")]||null,attributes:o[Xa("0x10")]};this[Xa("0xea")].addSuggestion(c).then((t=>{o[Xa("0x3b")]=!0,s.remove(a),t&&t[Xa("0xf0")]&&(this._suggestions.get(n)[Xa("0xf0")]=t.createdAt)}))[Xa("0x34")]((t=>{throw(0,e.logWarning)(Xa("0xc")),this[Xa("0x12e")][Xa("0x49")][Xa("0xa")]({isUndoable:!1},(()=>{o[Xa("0x4f")]()})),o[Xa("0x2d")](),this._suggestions[Xa("0x15")](o.id),this[Xa("0x45")].delete(o),t}))}return o}[Xa("0x1f")](t,e){const n=this[Xa("0x12e")][Xa("0x10b")].get("PendingActions"),o=this.getSuggestion(t);if(this[Xa("0xea")]&&this._adapter[Xa("0x6f")])if(o._saved){const o=n[Xa("0x26")](Yo(this[Xa("0x12e")].locale,"PENDING_ACTION_SUGGESTION"));this[Xa("0xea")][Xa("0x6f")](t,e)[Xa("0x97")]((()=>{n[Xa("0x66")](o)}))}else o.on(Xa("0xa3"),(()=>{this[Xa("0x1f")](t,e)}))}[Xa("0x12")](t){if(!this[Xa("0xea")]||!this[Xa("0xea")][Xa("0x106")])throw new e.CKEditorError(Xa("0x113"),this);return this[Xa("0xea")][Xa("0x106")](t)}[Xa("0x100")](t){const{id:e,type:n,subType:o,authorId:s}=this._splitMarkerName(t),r=this[Xa("0xac")][Xa("0x22")](e)||this[Xa("0xc7")](n,o,e,s,{});switch(this[Xa("0xc6")](r,n,o,s),this[Xa("0x45")][Xa("0x22")](r)){case"notReady":this[Xa("0x12")](e)[Xa("0x97")]((t=>{let n=Promise[Xa("0xc8")]();t[Xa("0x7")]&&(n=this[Xa("0x33")][Xa("0x10d")]({channelId:this.editor[Xa("0xfb")][Xa("0x22")](Xa("0xb2")),threadId:e})),n.then((()=>{this[Xa("0xfc")](t)[Xa("0x3b")]=!0}))})),this[Xa("0x45")][Xa("0x28")](r,Xa("0x13d"));break;case Xa("0xd2"):this[Xa("0x1f")](e,{state:"open"});case Xa("0xf1"):this[Xa("0x45")][Xa("0x28")](r,"ready"),this[Xa("0x92")]("suggestionLoaded",r);break;case"ready":this[Xa("0x92")](Xa("0x8"),r)}return r[Xa("0x19")](t),r}[Xa("0xaa")](t){const e=Array[Xa("0x90")](t)[Xa("0x13e")]((t=>!t[Xa("0x87")])),n=this[Xa("0x2")]({skipNotAttached:!0})[Xa("0x13e")]((t=>!t[Xa("0x87")])),o=n.filter((e=>!t.has(e))),s=new Map(n[Xa("0x11c")]((t=>[t,this[Xa("0x11a")].getSuggestionCallback(t[Xa("0x7e")],t[Xa("0xd7")],Xa("0xc2"))]))),r=new Map(n[Xa("0x11c")]((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[Xa("0x53")];t++)a(e[t],o,0);for(let t=0;t<e[Xa("0x53")];t++){const n=e[t];!x.has(n)&&n[Xa("0x72")]&&(n[Xa("0x72")][Xa("0x3a")]===n&&(n.previous[Xa("0x3a")]=null),n[Xa("0x72")]=null),!i[Xa("0x85")](n)&&n.next&&(n.next[Xa("0x72")]===n&&(n[Xa("0x3a")].previous=null),n[Xa("0x3a")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x53")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1][Xa("0x72")]=n[0],i.add(n[0]),x.add(n[1]))}}function c(t,e){if(t[Xa("0xd6")].id!==e.author.id)return null;const n=s[Xa("0x22")](t)(t,e,r.get(t),r[Xa("0x22")](e));return n&&s[Xa("0x22")](e)(t,e,r[Xa("0x22")](t),r.get(e))?n[1][Xa("0x18")]&&n[1][Xa("0x18")][Xa("0x53")]?null:n:null}}[Xa("0xe7")](t){const e=Array[Xa("0x90")](t),n=this[Xa("0x2")]({skipNotAttached:!0}),o=n.filter((e=>!t.has(e))),s=new Map(e[Xa("0x11c")]((t=>[t,this._suggestionFactory[Xa("0x35")](t.type,t.subType,Xa("0x13f"))]))),r=new Map(n[Xa("0x11c")]((t=>[t,t[Xa("0x130")]()])));for(let t=0;t<e.length;t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[Xa("0x53")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[Xa("0x53")];i++){const o=n[i];if(o[Xa("0x7e")]!==e[Xa("0x7e")]||o[Xa("0xd6")].id!==e[Xa("0xd6")].id||o[Xa("0xd7")]!==e[Xa("0xd7")])continue;if(!sc(e,o))continue;const x=s[Xa("0x22")](e),a=r[Xa("0x22")](e),c=r[Xa("0x22")](o),l=e[Xa("0x18")]&&e[Xa("0x18")][Xa("0x53")],d=o[Xa("0x18")]&&o.commentThread[Xa("0x53")];if(!l&&x(c,a))return t[Xa("0x25")](o,e),r[Xa("0x15")](e),!0;if(!d&&x(a,c))return t[Xa("0x25")](e,o),r[Xa("0x15")](o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0x87")])for(const n of e[Xa("0x130")]())t[Xa("0x11")](n);else{const n=e[Xa("0xef")]()[Xa("0xa6")];this[Xa("0x2b")](t,this[Xa("0x2e")][Xa("0x96")](t[Xa("0xef")]()[Xa("0xdd")],n))}e[Xa("0x5f")]()}}class Ja{constructor(t){this[Xa("0xdc")]=t,this._model=t.model,this._customCallbacks=new Map,this._defaultCallbacks=new Map,this[Xa("0x2c")]()}[Xa("0x79")](t,e,n,o,s,r){return new Zo(this[Xa("0x2e")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[Xa("0x35")](t,e,Xa("0x11d"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[Xa("0x128")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xf")][Xa("0x28")](s,o)}[Xa("0x35")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0x22")](o)||this[Xa("0x32")][Xa("0x22")](t+":"+n)}[Xa("0x2c")](){const t=()=>!1,e=t=>{t[Xa("0x99")](((t,e)=>t[Xa("0xdd")][Xa("0xa2")](e[Xa("0xdd")])?1:-1)),this._model[Xa("0xbb")]((e=>{for(const n of t){let t;t=n[Xa("0xa6")][Xa("0x13b")]&&n[Xa("0xa6")][Xa("0xc0")]==n[Xa("0xdd")][Xa("0xdf")]?e[Xa("0x3c")](n[Xa("0xdd")].nodeAfter,"on"):e[Xa("0x3c")](n),this[Xa("0x2e")][Xa("0x120")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x2e")][Xa("0xbb")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t.map((t=>(Za(t)&&(t=this._model[Xa("0x96")](t[Xa("0xa6")])),t)))[Xa("0x13e")]((t=>"$graveyard"!==t.root[Xa("0xb9")]));if(r[Xa("0x53")]<1)return;const x=Array[Xa("0x90")](this[Xa("0x2e")][Xa("0x132")].selection[Xa("0x130")]())[Xa("0x11c")]((t=>i.LiveRange[Xa("0x8d")](t)));n[Xa("0xbc")](r);for(const t of this._editor.commands.commands())t.refresh();s[Xa("0x129")]({forceDefaultExecution:!0}),this[Xa("0xdc")].execute(o,...s);const a=x[Xa("0x13e")]((t=>Xa("0x7f")!=t.root[Xa("0xb9")]));a[Xa("0x53")]>0&&n[Xa("0xbc")](a);for(const t of x)t[Xa("0x65")]()}))},o=(t,e)=>1==t[Xa("0x53")]&&1==e[Xa("0x53")]&&t[0][Xa("0xa6")][Xa("0x30")](e[0][Xa("0xdd")]),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x2e")])?[t,e]:oc(e,t,o,n,this[Xa("0x2e")])?[e,t]:null;this[Xa("0x32")][Xa("0x28")](Xa("0x125"),t),this[Xa("0x32")][Xa("0x28")](Xa("0x98"),e),this[Xa("0x32")][Xa("0x28")](Xa("0x1c"),o),this[Xa("0x32")][Xa("0x28")](Xa("0x17"),s),this._defaultCallbacks[Xa("0x28")]("deletion:accept",e),this[Xa("0x32")][Xa("0x28")](Xa("0x42"),t),this[Xa("0x32")][Xa("0x28")](Xa("0x4b"),o),this[Xa("0x32")][Xa("0x28")]("deletion:chain",s),this[Xa("0x32")].set("formatInline:accept",n),this[Xa("0x32")][Xa("0x28")](Xa("0x116"),t),this[Xa("0x32")][Xa("0x28")]("formatInline:join",o),this._defaultCallbacks[Xa("0x28")](Xa("0xcf"),t),this[Xa("0x32")].set(Xa("0x7b"),n),this[Xa("0x32")][Xa("0x28")](Xa("0x12b"),t),this[Xa("0x32")].set("formatBlock:join",o),this[Xa("0x32")][Xa("0x28")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0xc0")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[Xa("0x138")](o))return!1;if(t[Xa("0x110")](o)||t[Xa("0x58")](o))return!0}return!1}function Za(t){return t[Xa("0xa6")][Xa("0xc0")]==t[Xa("0xdd")].nodeAfter&&t[Xa("0xa6")].isAtStart}function Ya(t,e,n,o){const s=t=>!t.item.is(Xa("0xf3"))&&!o[Xa("0x110")](t[Xa("0x6d")]),r=t[Xa("0xdd")][Xa("0xe4")](s),i=t[Xa("0xa6")][Xa("0xe4")](s,{direction:Xa("0xaf")});return!(t[Xa("0xdd")][Xa("0x30")](r)&&t[Xa("0xa6")][Xa("0x30")](i)||(r.isBefore(i)?n[Xa("0x86")](e,{range:n[Xa("0x96")](r,i)}):n[Xa("0x48")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0xdd")].nodeAfter;return e&&e.is(Xa("0x70"))}function nc(t,e){const n=e[Xa("0xd1")][Xa("0x110")](t)||e[Xa("0xd1")].isSelectable(t);return e[Xa("0x96")](e[Xa("0xb7")](t,Xa("0x8e")),n?e[Xa("0x38")](t):e[Xa("0xb7")](t,Xa("0xa6")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0xa6")].isEqual(o[Xa("0xdd")]))return!0;if(t.type!=e.type)return!1;if(!n[Xa("0xa6")][Xa("0xfd")](o.start))return!1;const r=s[Xa("0x96")](n[Xa("0xa6")],o[Xa("0xdd")])[Xa("0x131")]();for(const t of r)if([Xa("0xe2"),"elementEnd"][Xa("0xae")](t[Xa("0x7e")])&&s.schema[Xa("0x58")](t[Xa("0x6d")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x83")]||!e[Xa("0x83")])&&Go(t[Xa("0x10")],e.attributes)}function rc(t,e){const n=ic(t.attributes),o=ic(e);if(!t[Xa("0x83")])return!1;for(const t of Object[Xa("0xe0")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x4e")]({},t);return delete e.skipNestingCheck,delete e[Xa("0x7a")],e}const xc=["destroy","acceptSuggestion","canDiscard","get","unbind","plugins","_pendingAction","commentThreadController","canAccept","locale","_editor","_acceptCommand","change:isDirty","execute","_removePendingAction","view","PendingActions","discardSuggestion","listenTo","canEditAt","_setPendingAction","_discardCommand","bind","PENDING_ACTION_SUGGESTION","getRanges","isEnabled","commands","isDirty","model"];var ac,cc;ac=xc,cc=222,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class dc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x9")]=e,this[lc("0x19")]=n,this.commentThreadController=o,this._editor=t,this[lc("0x15")]=t[lc("0x7")][lc("0xd")](lc("0xb")),this[lc("0x2")]=t[lc("0x7")].get(lc("0x1b")),this[lc("0x19")][lc("0x3")](lc("0x6")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[lc("0x19")][lc("0x3")](lc("0x12")).to(this[lc("0x15")],lc("0x6"),(t=>t&&this[lc("0x14")].model[lc("0x0")](e[lc("0x5")]()))),this.view[lc("0x3")](lc("0xc")).to(this[lc("0x2")],lc("0x6"),(t=>t&&this[lc("0x14")][lc("0x9")][lc("0x0")](e[lc("0x5")]()))),this._pendingAction=null,n[lc("0x8")]&&this[lc("0x1")](),this[lc("0x1c")](n,lc("0xb"),(()=>this[lc("0xb")]())),this[lc("0x1c")](n,lc("0x1b"),(()=>this[lc("0x1b")]())),this[lc("0x1c")](n,lc("0x16"),(()=>{n[lc("0x8")]?this[lc("0x1")]():this[lc("0x18")]()}))}acceptSuggestion(){this._acceptCommand[lc("0x17")](this.model.id)}[lc("0x1b")](){this[lc("0x2")][lc("0x17")](this[lc("0x9")].id)}destroy(){this[lc("0x19")][lc("0xe")](lc("0x6")),this[lc("0x19")][lc("0xe")]("canAccept"),this[lc("0x19")][lc("0xe")](lc("0xc")),this.stopListening(),this[lc("0x11")][lc("0xa")](),this._pendingAction&&this[lc("0x18")]()}[lc("0x1")](){const t=Yo(this[lc("0x14")][lc("0x13")],lc("0x4"));this[lc("0x10")]=this._editor.plugins.get(lc("0x1a")).add(t)}[lc("0x18")](){null!==this[lc("0x10")]&&this[lc("0x14")][lc("0xf")][lc("0xd")]("PendingActions").remove(this[lc("0x10")]),this._pendingAction=null}}const uc=["destroy","updateComment","cancel","setData","isActive","removeComment","commentThread","isReadOnly","_config","locale","fire","_model","commentsListView","_createCommentThreadInputView","isDirty","bind","authoredAt","value","editorConfig","focus","length","submit","_localUser","delegate","canAccept","commentThreadInputView","showInput","set","element","disableComments","commentInputView","canDiscard","assign","hasDirtyComment"];var gc,mc;gc=uc,mc=145,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return uc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x3")]=null,this.commentThreadInputView=null,this[fc("0x12")]("isActive",!1),this[fc("0x12")](fc("0x7"),e[fc("0x7")]),this[fc("0x6")](fc("0x7")).to(e),this.set("descriptionParts",[]),this[fc("0x12")](fc("0x5"),!1),this[fc("0x12")]("isEnabled",!1),this[fc("0x12")](fc("0xf"),!1),this[fc("0x12")](fc("0x16"),!1),this[fc("0x2")]=e,this[fc("0xd")]=n,this[fc("0x21")]=o,o[fc("0x14")]?this[fc("0x12")](fc("0xb"),1):this._createCommentViews()}focus(){this[fc("0x13")][fc("0xa")]()}[fc("0x19")](){this.commentsListView&&this[fc("0x3")].destroy(),this[fc("0x10")]&&this[fc("0x10")][fc("0x19")](),super[fc("0x19")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0x21")];this[fc("0x3")]=new t(this[fc("0x0")],this[fc("0x2")][fc("0x1f")],Object[fc("0x17")]({CommentView:this[fc("0x21")].CommentView},this[fc("0x21")])),this[fc("0x3")][fc("0xe")](fc("0x1e")).to(this),this[fc("0x3")].delegate(fc("0x1a")).to(this),this[fc("0x3")].bind(fc("0x1d")).to(this),this[fc("0x12")](fc("0xb"),this[fc("0x3")][fc("0xb")]+1),this[fc("0x6")](fc("0xb")).to(this.commentsListView,fc("0xb"),(t=>t+1)),this[fc("0x10")]=this[fc("0x4")](),this.on("removeComment",(()=>this[fc("0xa")]())),this[fc("0x6")]("isDirty").to(this[fc("0x3")],fc("0x18"),this[fc("0x10")].commentInputView,"value",((t,e)=>t||!!e))}[fc("0x4")](){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x0")],this[fc("0xd")],this[fc("0x21")][fc("0x9")]),n=e[fc("0x15")];return e[fc("0x6")](fc("0x11")).to(this,fc("0x1d"),this._model[fc("0x1f")],fc("0x20"),n,fc("0x8"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0xc"),((t,e)=>{this[fc("0x1")]("addComment",e),n.editor[fc("0x1c")]("")})),n.on(fc("0x1b"),(()=>this.focus())),n[fc("0x6")]("disabledSubmit").to(this[fc("0x2")].commentThread,fc("0x20")),e}}const pc=["importWord","ck-annotation__user","ck-suggestion__main","commentThreadInputView","ck-suggestion__info-name","cancel","fire","name","disableComments","isActive","title","locale",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","Accept suggestion","getExternalSuggestionNote","time","ck-annotation__info-time","innerHTML","_createButton","EXTERNAL_SUGGESTION","creator",".ck-annotation__content-wrapper","type","span","_config","descriptionParts","attributes","render","element","ck-suggestion-wrapper--active","ck-suggestion__user","formatDateTime","@external","acceptSuggestion","div","<p>","</span>",'"></span>',"author","ck-suggestion--disabled-comments","getUserViewNotificationText","canDiscard","commentsListView","set","innerText","ck-annotation","editorReady","execute","isExternal","setTemplate","getTemplate","isEnabled","source","authoredAt","querySelector","bindTemplate","userView","ck-comment__info-time","ck-comment__external","children","_descriptionElement","EXTERNAL_IMPORT_WORD_AVATAR","bind","EXTERNAL_AVATAR","</p>","check","ck-suggestion--accept","_model","ck-suggestion","ck-suggestion__actions","push","ck-suggestion__info","editorDestroyed","ck-suggestion-wrapper","content","delegate","acceptButton","discardButton","commentThread",'" title="',"ck-annotation__info"];var bc,Ec;bc=pc,Ec=321,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x33")](_c("0x1e"),""),this[_c("0x46")](_c("0x1e")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[_c("0x46")]("description").to(this,_c("0x21"),this,_c("0x10"),((t,e)=>{let n="";for(const e of t)n+=_c("0x2b")+Cc(e[_c("0x0")],e.color)+_c("0x48");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x44")]=null,this[_c("0x2")]=this[_c("0x1a")](Yo(e,_c("0x15")),t.icons[_c("0x49")],_c("0x4a"),_c("0x29"),"sw"),this[_c("0x2")][_c("0x46")](_c("0x3b")).to(this,"canAccept"),this[_c("0x3")]=this._createButton(Yo(e,"Discard suggestion"),t.icons[_c("0xc")],"ck-suggestion--discard","discardSuggestion","sw"),this[_c("0x3")].bind("isEnabled").to(this,_c("0x31")),this.userView=new r.UserView(e,this._model[_c("0x2e")],this.getUserViewNotificationText()),this[_c("0x40")].extendTemplate({attributes:{class:[_c("0x26"),_c("0x8")]}}),this[_c("0x39")](this[_c("0x3a")]())}[_c("0x3a")](){const t=this[_c("0x3f")],e=[{tag:_c("0x2a"),attributes:{class:[_c("0x4f"),_c("0x6")]},children:[{tag:"span",children:[{text:this.userView[_c("0xe")]}],attributes:{class:[_c("0xb"),"ck-annotation__info-name"]}},{tag:_c("0x17"),attributes:{datetime:t.to(_c("0x3d")),class:[_c("0x41"),_c("0x18")]},children:[{text:t.to(_c("0x3d"),(t=>this[_c("0x20")][_c("0x27")](t)))}]}]},{tag:_c("0x2a"),attributes:{class:[_c("0x4d"),"ck-annotation__actions"]},children:[this.acceptButton,this.discardButton]},{tag:_c("0x2a"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[_c("0x38")]&&e[_c("0x4e")]({tag:_c("0x2a"),attributes:{class:[_c("0x42")]},children:[{text:this[_c("0x16")]()}]});const n={tag:_c("0x2a"),attributes:{class:[_c("0x51"),t.if("isActive",_c("0x25")),t.to(_c("0x1e"),(t=>"ck-suggestion-"+t)),this[_c("0x20")][_c("0xf")]&&_c("0x2f")],"data-suggestion-id":this[_c("0x4b")].id,"data-thread-id":this[_c("0x4b")][_c("0x4")].id,"data-author-id":this[_c("0x4b")].author.id,tabindex:-1},children:[{tag:_c("0x2a"),attributes:{class:[_c("0x4c"),_c("0x35")]},children:[this.userView,{tag:_c("0x2a"),attributes:{class:[_c("0x9"),"ck-annotation__main"]},children:e}]}]};return this[_c("0x32")]&&this[_c("0xa")]&&(n[_c("0x43")][_c("0x4e")](this[_c("0x32")],this[_c("0xa")]),this[_c("0x32")][_c("0x1")](_c("0x36")).to(this),this[_c("0x32")][_c("0x1")](_c("0x50")).to(this),this[_c("0xa")].delegate(_c("0x36")).to(this),this[_c("0xa")][_c("0x1")](_c("0x50")).to(this)),n}[_c("0x23")](){super[_c("0x23")](),this[_c("0x44")]=this[_c("0x24")][_c("0x3e")](_c("0x1d")),this._descriptionElement[_c("0x19")]=this.description,this.on("change:description",((t,e,n)=>{this[_c("0x44")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[_c("0x33")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x14")]({attributes:{class:n}}),i.on(_c("0x37"),(()=>{this[_c("0xd")](o,this[_c("0x4b")].id)})),i}[_c("0x16")](){return _c("0x7")===this._model[_c("0x22")][_c("0x28")][_c("0x3c")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,_c("0x1b"))}[_c("0x30")](){return this[_c("0x4b")][_c("0x38")]?_c("0x7")===this[_c("0x4b")].attributes[_c("0x28")][_c("0x3c")]?Yo(this[_c("0x12")],_c("0x45"),this[_c("0x4b")][_c("0x1c")].name):Yo(this[_c("0x12")],_c("0x47"),this[_c("0x4b")].creator[_c("0xe")]):null}}function Cc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+yc(t)+_c("0x2c"):yc(t))).join(""),e&&(n+=_c("0x13")+e.value+_c("0x5")+e[_c("0x11")]+_c("0x2d")),n}function yc(t){const e=document.createElement(_c("0x1f"));return e[_c("0x34")]=t,e.innerHTML}const kc=["comments.maxCommentCharsWhenCollapsed","trackChanges","createAnnotationView","type","comments.maxThreadTotalWeight","destroy","comments.maxCommentsWhenCollapsed","_refreshActiveMarkers","execute","toMany","createAnnotation","add","getSuggestion","TrackChangesUI","change:activeAnnotations","buttonView","getMarkers","_createUIButton","addSourceCollector","comments","head","editing","push","innerView","values","get","TrackChangesEditing","comments.editorConfig","requires","filter","descriptionParts","Annotations","SuggestionThreadView","Accept all selected suggestions","_initializeController","value","actionView","suggestion-","pluginName","_handleSuggestionControllerDelayed","unbind","define","delete","EditorAnnotations","some","lowest","acceptButton","getJoined","CommentsRepository","length","change:previous","has","clear","bind","_annotationViews","set","focus","locale","Accept all suggestions","getFirstRange","keys","listenTo","from","commandName","button","_descriptionFactory","_suggestionToController","_updateController","plugins","_unbindEditors","isOn","suggestionUnloaded","_bindAnnotationToEditors","separator","registerAnnotation","arrowView","commands","view","getAllAdjacentSuggestions","isDirty","_disableComments","_destroyController","suggestionLoaded","isEnabled","isInContent","trackChanges.disableComments","refreshSelectedViews","_viewToController","_handleControllerBuffer","getByInnerView","editor","getDescriptions","model","Track changes","mainView","hasSuggestion"];var Ac,vc;Ac=kc,vc=491,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x11")](){return[$a,r.Users,Rc("0x25"),Rc("0x14"),Rc("0x20")]}static get[Rc("0x1b")](){return Rc("0x2")}constructor(t){super(t),this[Rc("0x37")]=new Map,this._viewToController=new Map,this[Rc("0x2b")]=new Map,this[Rc("0x4d")]=new Map;const e=this.editor.config;e[Rc("0x1e")]("trackChanges.SuggestionThreadView",Tc),e.define(Rc("0x4a"),!1),this._disableComments=e[Rc("0xe")](Rc("0x4a"))}[Rc("0x1c")](t,e){0===this[Rc("0x4d")].size&&setTimeout((()=>{for(const[t,e]of this[Rc("0x4d")]){const n=this._suggestionToController[Rc("0x28")](t);n||e?n&&e&&this[Rc("0x46")](t):this[Rc("0x17")](t)}this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0x20"))[Rc("0x4b")](),this[Rc("0x5c")](),this[Rc("0x4d")][Rc("0x29")]()}),10),this._handleControllerBuffer[Rc("0x2c")](t,e)}init(){const t=this[Rc("0x4f")],e=t.plugins.get("TrackChangesEditing"),n=t[Rc("0x39")].get("Annotations"),o=t.plugins.get(Rc("0x20")),s=t[Rc("0x39")][Rc("0xe")](Rc("0x25"));t.ui.componentFactory.add(Rc("0x56"),(t=>this[Rc("0x6")](t))),o[Rc("0x7")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x33")](this[Rc("0x37")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Rc("0x49")])continue;if(t.isMultiRange){s.push(...t.getRanges());continue}const e=t[Rc("0x30")]();if(s[Rc("0x26")]>0){const t=s[0][Rc("0x24")](e);if(t){s[0]=t;continue}}s[Rc("0xb")](e)}t.push([n[Rc("0x42")],s])}return t})),this[Rc("0x32")](e,Rc("0x47"),((t,e)=>{this[Rc("0x32")](e,Rc("0x27"),((t,n,o,s)=>{e[Rc("0x49")]&&(null==o?(this[Rc("0x38")](s[Rc("0x9")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Rc("0x38")](o[Rc("0x9")]),this[Rc("0x1c")](e,!0)))})),null===e.previous?this[Rc("0x1c")](e,!1):this[Rc("0x38")](e.head)})),this[Rc("0x32")](e,Rc("0x3c"),((t,e,n)=>{this.stopListening(e,"change:previous"),this._handleControllerBuffer[Rc("0x1f")](e);const o=n?n[Rc("0x9")]:e,s=this._suggestionToController[Rc("0xe")](o);null!==n&&this[Rc("0x38")](o),null===n&&s&&this[Rc("0x46")](e)})),this[Rc("0x32")](e,"suggestionChanged",((t,e)=>{this[Rc("0x38")](e)})),this[Rc("0x32")](n,Rc("0x3"),(()=>{this._refreshActiveMarkers()})),this[Rc("0x32")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x54")](n))return;const s=e[Rc("0x1")](n);this[Rc("0x37")][Rc("0xe")](s).view[Rc("0x2d")]()}),{priority:Rc("0x22")})}[Rc("0x5c")](){const t=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0x14")),e=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0xf")),n=Array.from(t.activeAnnotations,(t=>t[Rc("0xc")]))[Rc("0x12")]((t=>this._viewToController[Rc("0x28")](t))),o=[];for(const t of n){const e=this._viewToController[Rc("0xe")](t)[Rc("0x51")][Rc("0x43")]();o.push(...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Rc("0x6")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x4f")][Rc("0x41")][Rc("0xe")](Rc("0x56")),r=Yo(t,Rc("0x52"));n[Rc("0x4")][Rc("0x2c")]({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-2023, 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[Rc("0x4")][Rc("0x2a")](Rc("0x3b")).to(o,Rc("0x18")),n[Rc("0x4")].on(Rc("0x5d"),(()=>{o.execute(),this[Rc("0x4f")][Rc("0xa")][Rc("0x42")][Rc("0x2d")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Rc("0x56")}},{type:Rc("0x3e")},{type:Rc("0x35"),model:{withText:!0,label:Yo(t,Rc("0x2f")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x16")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Rc("0x35"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x51")]){const n=new s.Model(t.model),o=this[Rc("0x4f")][Rc("0x41")][Rc("0xe")](n[Rc("0x34")]);n.bind(Rc("0x3b"),Rc("0x48")).to(o,Rc("0x18"),Rc("0x48")),e={type:t[Rc("0x58")],model:n}}i[Rc("0x0")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x12")]((t=>null!=t[Rc("0x51")])).map((t=>this.editor[Rc("0x41")][Rc("0xe")](t[Rc("0x51")][Rc("0x34")]))),c=n[Rc("0x4")];return c[Rc("0x19")][Rc("0x1d")](Rc("0x48")),c[Rc("0x40")][Rc("0x1d")](Rc("0x48")),c[Rc("0x19")].bind(Rc("0x48")).to(o,"isEnabled"),c[Rc("0x40")][Rc("0x2a")]("isEnabled")[Rc("0x5e")](a,Rc("0x48"),((...t)=>t[Rc("0x21")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x4f")][Rc("0x5d")](t.source[Rc("0x34")]),this[Rc("0x4f")][Rc("0xa")][Rc("0x42")][Rc("0x2d")]()})),n}[Rc("0x17")](t){const e=this.editor,n=e.config,o=e[Rc("0x39")][Rc("0xe")](Rc("0x14")),s=e[Rc("0x39")][Rc("0xe")](Rc("0x25")),i=e[Rc("0x39")][Rc("0xe")](Rc("0x20")),x=e[Rc("0x39")][Rc("0xe")](r.Users).me,a=n[Rc("0xe")](Rc("0x56"))[Rc("0x15")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x39")][Rc("0xe")]("CommentsUI");let d,u;this[Rc("0x2b")].has(t.id)?(u=this[Rc("0x2b")][Rc("0xe")](t.id),d=u[Rc("0x53")]):(d=new a(e[Rc("0x2e")],t,x,{disableComments:this[Rc("0x45")],editorConfig:n.get(Rc("0x10")),maxCommentsWhenCollapsed:n[Rc("0xe")](Rc("0x5b")),maxThreadTotalWeight:n.get(Rc("0x59")),maxCommentCharsWhenCollapsed:n[Rc("0xe")](Rc("0x55")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0xe")](Rc("0x2e"))),CommentView:n[Rc("0xe")](Rc("0x8")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x23")].on(Rc("0x5d"),(()=>{e[Rc("0xa")][Rc("0x42")].focus()})),d.discardButton.on("execute",(()=>{e[Rc("0xa")][Rc("0x42")][Rc("0x2d")]()})),u=o[Rc("0x57")](this[Rc("0x4f")][Rc("0x2e")],d),u[Rc("0x2a")](Rc("0x44")).to(d,"isDirty"),u.bind(Rc("0x26")).to(d),u[Rc("0x2a")](Rc("0x58")).to(d,Rc("0x58"),(t=>Rc("0x1a")+t)),this[Rc("0x2b")][Rc("0x2c")](t.id,u));const g=s.createCommentThreadController(t.commentThread,d),m=new dc(e,t,d,g),f=t[Rc("0x43")]().filter((t=>t[Rc("0x49")]));d.descriptionParts=e[Rc("0x39")].get(Rc("0xf"))[Rc("0x36")][Rc("0x50")](f),this[Rc("0x37")][Rc("0x2c")](t,m),this[Rc("0x4c")][Rc("0x2c")](d,m);const h=o[Rc("0x5f")]({view:u,target:()=>{const n=[],o=t[Rc("0x43")]()[Rc("0x12")]((t=>t[Rc("0x49")]));for(const t of o)n.push(...t[Rc("0x5")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0xa")],n)},type:()=>Rc("0x1a")+m[Rc("0x42")][Rc("0x58")]});s[Rc("0x3d")](d,h),o[Rc("0x0")](h),i[Rc("0x3f")](h)}_destroyController(t){const e=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0x25")),n=this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0x14")),o=this[Rc("0x37")][Rc("0xe")](t),s=o[Rc("0x42")],r=n[Rc("0x4e")](s);e[Rc("0x3a")](s),r&&n.remove(r),this[Rc("0x37")][Rc("0x1f")](t),this[Rc("0x4c")][Rc("0x1f")](s),o[Rc("0x5a")]()}[Rc("0x38")](t){if(!t.isInContent||!this[Rc("0x37")][Rc("0x28")](t))return;const e=this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0xf")),n=this[Rc("0x37")][Rc("0xe")](t),o=t[Rc("0x43")]();n[Rc("0x42")][Rc("0x13")]=e[Rc("0x36")][Rc("0x50")](o)}destroy(){for(const t of this[Rc("0x37")][Rc("0x31")]())this[Rc("0x46")](t);for(const t of this[Rc("0x2b")][Rc("0xd")]())t[Rc("0x53")][Rc("0x5a")]();super[Rc("0x5a")]()}}var Sc,Lc,Nc=["requires","TrackChanges","get","editor","adapter","plugins","getSuggestion","Comments","getSuggestions"];Sc=Nc,Lc=244,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var Mc=function(t,e){return Nc[t-=0]};class wc extends t.Plugin{static get[Mc("0x8")](){return[$a,Ic,Mc("0x6")]}static get pluginName(){return Mc("0x0")}set[Mc("0x3")](t){this[Mc("0x2")][Mc("0x4")][Mc("0x1")]($a)[Mc("0x3")]=t}get[Mc("0x3")](){return this.editor[Mc("0x4")].get($a)[Mc("0x3")]}addSuggestion(t){return this.editor.plugins[Mc("0x1")]($a).addSuggestionData(t)}[Mc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Mc("0x2")][Mc("0x4")].get($a)[Mc("0x7")]({skipNotAttached:t,toJSON:e})}[Mc("0x5")](t){return this[Mc("0x2")][Mc("0x4")][Mc("0x1")]($a).getSuggestion(t)}}const Oc=["createElement","create","_adapter","editor","getRootNames","CommentsRepository","editorCreator","trackChangesData","useAnonymousUser","end","config","destroy","users","data","function","name","track-changes-data-invalid-editor-creator","appendChild","getDataWithDiscardedSuggestions","set","rootsAttributes","get","reduce","document","discardAllSuggestions","getDataWithAcceptedSuggestions","getSuggestions","getFullData","Pagination","model","TrackChangesData","push","pluginName","map","acceptAllSuggestions","div","result","getRootsAttributes","addSuggestionData","define","TrackChangesDataGetter","plugins","requires","init","TrackChangesEditing"];var Fc,Pc;Fc=Oc,Pc=180,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x1c")];class jc extends t.Plugin{static get[Dc("0x2a")](){return[$a]}static get[Dc("0x20")](){return Dc("0x1e")}[Dc("0x2b")](){const t=this[Dc("0x3")];if(t[Dc("0xa")][Dc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x1d")][Dc("0x17")][Dc("0x4")]()[Dc("0x16")](((t,e)=>(t[e]="",t)),{});return t.constructor[Dc("0x1")](n,e)})),Dc("0xe")!=typeof t[Dc("0xa")][Dc("0x15")](Dc("0x7"))[Dc("0x6")])throw new e.CKEditorError(Dc("0x10"))}[Dc("0x19")](t){return Hc(this[Dc("0x3")],!0,t)}[Dc("0x12")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0x20")](){return Dc("0x28")}constructor(t){super(t),this[Dc("0x24")]=Dc("0x9")}init(){this.editor.plugins.get(Dc("0x5"))[Dc("0x2")]={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[Dc("0x3")][Dc("0x29")][Dc("0x15")](Dc("0x2c"))[Dc("0x2")]=null}}function Gc(t){return void 0!==t[Dc("0x25")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x29")][Dc("0x1f")]($a,Uc),o[Dc("0x14")]=Gc(t)?t[Dc("0x25")]():void 0;const s=document.createDocumentFragment(),i=t[Dc("0xa")][Dc("0x15")]("trackChangesData")[Dc("0x6")],x=await i(o,(()=>function(t){const e=document[Dc("0x0")](Dc("0x23"));return t[Dc("0x11")](e),e}(s)));!function(t,e){const n=t.model[Dc("0x17")][Dc("0x4")]().reduce(((e,n)=>(e[n]=t[Dc("0xd")][Dc("0x15")]({rootName:n}),e)),{}),o=t[Dc("0x29")][Dc("0x15")]("Users")[Dc("0xc")][Dc("0x21")]((t=>({id:t.id,name:t[Dc("0xf")]}))),s=t[Dc("0x29")][Dc("0x15")](Dc("0x2c"))[Dc("0x1a")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x29")][Dc("0x15")]("Users"),i=e[Dc("0x29")][Dc("0x15")](Dc("0x2c"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r[Dc("0x8")]();for(const t of s)i[Dc("0x26")](t);e.data[Dc("0x13")](n)}(t,x),x.execute(Dc(e?"0x22":"0x18"));const a=Gc(x)?x[Dc("0x1b")](n):x[Dc("0xd")].get(n);return await x[Dc("0xb")](),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 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:()=>hc,TrackChanges:()=>wc,TrackChangesData:()=>jc,TrackChangesEditing:()=>$a});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","editor","_isEnabledBasedOnSelection","forceDisabled","commands","_enableCommands","refresh","_disableUnsupportedCommands","value","isEnabled","TrackChangesCommand","_enabledCommands","affectsData","execute"];var c,l;c=a,l=275,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x2")]=e,this.value=!1,this[u("0xb")](),this[u("0x7")]=!1}[u("0xb")](){this[u("0x0")]=!0}[u("0x4")](){this.value=!this[u("0xd")],this[u("0xd")]?this._disableUnsupportedCommands():this[u("0xa")]()}[u("0xc")](){for(const t of this[u("0x6")][u("0x9")][u("0x9")]())t[u("0x3")]&&!this._enabledCommands[u("0x5")](t)&&t[u("0x8")](u("0x1"))}[u("0xa")](){for(const t of this[u("0x6")][u("0x9")][u("0x9")]())t[u("0x3")]&&!this[u("0x2")][u("0x5")](t)&&t.clearForceDisabled(u("0x1"))}}const g=["_isEnabledBasedOnSelection","_suggestions","plugins","TrackChangesEditing","track-changes-accept-suggestion-not-found","editor","execute","refresh","getRanges","get","acceptSuggestion","canEditAt","isEnabled"];var m,f;m=g,f=194,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("0x2")]=e,this[h("0x8")](),this[h("0x1")]=!1}[h("0x8")](){this[h("0x0")]=!0}[h("0x7")](t){const n=this._suggestions[h("0xa")](t);if(!n)throw new e.CKEditorError(h("0x5"),this);const o=n[h("0x9")]();this[h("0x6")].model[h("0xc")](o)&&this[h("0x6")][h("0x3")][h("0xa")](h("0x4"))[h("0xb")](n)}}const b=["execute","isEnabled","discardSuggestion","_suggestions","getRanges","TrackChangesEditing","refresh","editor","plugins","canEditAt","get","model","_isEnabledBasedOnSelection"];var E,_;E=b,_=215,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.refresh(),this[T("0x5")]=!1}[T("0xc")](){this[T("0x7")]=!0}[T("0x6")](t){const n=this[T("0x9")][T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0xa")]();this[T("0x0")][T("0x4")][T("0x2")](o)&&this[T("0x0")][T("0x1")][T("0x3")](T("0xb"))[T("0x8")](n)}}const y=["getRanges","createRange","createPositionAfter","isObject","replace","end","isCollapsed","deletion","isArray","isMultiRange"," [color ","isTouching","type","start","execute","map","join","isIntersecting","createPositionBefore","change","value","add","color","next","createPositionAt","from"];var k,A;k=y,A=353,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)=>"deletion"==t[v("0x17")]&&v("0x12")!=e.type?-1:v("0x12")!=t[v("0x17")]&&v("0x12")==e[v("0x17")]?1:0))}function I(t,e){let n,o=0;const s=[],r=e.schema;for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x3")](i)),S(e,i,x)||(s.push(e[v("0xc")](n,r[v("0xe")](i)?e[v("0xd")](i):e[v("0x9")](i,"end"))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0xd")](e),s=t[v("0x3")](n);return o[v("0x16")](s)}function L(t,e,n){for(;n.length;){const o=n.splice(0,100);t[v("0x4")]((()=>{for(const t of o)t.isInContent&&e[v("0x19")](t.id)}))}}const N=["model","isEnabled","values","from","_command","some","_suggestions","editor","_isEnabledBasedOnSelection","execute","canEditAt"];var M,w;M=N,w=279,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x2")]=n,this.refresh(),this[O("0x4")]=!1}refresh(){const t=Array[O("0xa")](this[O("0x2")][O("0x9")]())[O("0x1")]((t=>t.isInContent));this.isEnabled=this[O("0x0")][O("0x8")]&&t}[O("0x5")](){const t=R(Array[O("0xa")](this[O("0x2")][O("0x9")]()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0x7")][O("0x6")](t))return}L(this[O("0x3")].model,this._command,t)}}const P=["isEnabled","values","editor","execute","_selectedSuggestions","size","document","_isEnabledBasedOnSelection","from","model","refresh","_suggestions","_command"];var D,B;D=P,B=134,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("0x8")]=e,this[j("0x7")]=n,this[j("0x0")]=new Set,this[j("0x6")](),this[j("0x3")]=!1}refresh(){const t=this[j("0xb")][j("0x5")][j("0x2")].selection,e=Array[j("0x4")](this[j("0x7")][j("0xa")]());this[j("0x0")]=function(t,e){const n=Array[v("0xa")](t[v("0xb")]()),o=new Set;for(const s of e)if(s.isInContent)for(const e of n)for(const n of s[v("0xb")]())(e[v("0x2")](n)||t[v("0x11")]&&!s[v("0x14")]&&s[v("0x8")]&&n[v("0x10")][v("0x16")](e[v("0x18")]))&&o[v("0x6")](s);return o}(t,e),this[j("0x9")]=this[j("0x8")].isEnabled&&!!this[j("0x0")][j("0x1")]}[j("0xc")](){const t=R(Array[j("0x4")](this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0xb")][j("0x5")].canEditAt(t))return}L(this[j("0xb")][j("0x5")],this[j("0x8")],t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const W=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const V=function(t){var e=this.__data__,n=W(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=W(e,t);return n<0?void 0:e[n][1]};const X=function(t){return W(this.__data__,t)>-1};const q=function(t,e){var n=this.__data__,o=W(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=X,$.prototype.set=q;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 ut=function(t){return lt.call(t)};var dt=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var pt,bt=(pt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+pt:"";const Et=function(t){return!!bt&&bt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const It=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const Wt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Wt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const Xt=function(t){return zt(this,t).has(t)};const qt=function(t,e){var n=zt(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=Xt,$t.prototype.set=qt;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,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Ie=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Se=Ie&&Ie.isTypedArray;const Le=Se?ke(Se):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var We=Object.prototype.hasOwnProperty;const ze=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&We.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var Xe="object"==typeof exports&&exports&&!exports.nodeType&&exports,qe=Xe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=qe&&qe.exports===Xe?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 un=function(t){return ln(t,Ue,on)};const dn=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",Cn=Tt(gn),yn=Tt(Nt),kn=Tt(mn),An=Tt(fn),vn=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Nt&&Rn(new Nt)!=pn||mn&&Rn(mn.resolve())!=bn||fn&&Rn(new fn)!=En||hn&&Rn(new hn)!=_n)&&(Rn=function(t){var e=gt(t),n="[object Object]"==e?t.constructor:void 0,o=n?Tt(n):"";if(o)switch(o){case Cn:return Tn;case yn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Wn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):zn;const Xn=function(t){return xe(t)&&"[object Set]"==In(t)};var qn=Ie&&Ie.isSet;const $n=qn?ke(qn):Xn;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 u=ge(e);if(u){if(x=Ln(e),!a)return Ze(e,x)}else{var d=In(e),g=d==Qn||"[object GeneratorFunction]"==d;if(be(e))return Qe(e,a);if(d==Zn||d==Jn||g&&!r){if(x=c||g?{}:Wn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[d])return r?e:{};x=Un(e,d,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=u?void 0:(l?c?dn:un:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var m=t[u],f=e[u];if(o)var h=i?o(f,m,u,e,t,r):o(m,f,u,t,e,r);if(void 0!==h){if(h)continue;d=!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)}))){d=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,u=(c=c==Fo?Do:c)==Do,d=a==c;if(d&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(d&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=u&&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!!d&&(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 Wo=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 zo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:Wo(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const Xo=function(t,e){return null==t||Ko(t,e)},qo=["isIntersecting","getRanges","_isDataLoaded","removeAttribute","addMarkerName","_onAccept","getItems","_onDiscard","decorate","_onAttributesChange","push","discard","_markerNames","set","removeMarkers","removeMarker","getRange","isInContent","@external","_model","map","get","getMultiRangeId","authoredAt","onAccept","getMarkerNames","next","hasComments","accept","isMultiRange","getFirstMarker","addMarker","change","add","start","getContainedElement","reduce","data","subType","delete","filter","addRange","from","type","size","split","previous","isIntersectingWithRange","creator","length","onAttributesChange","commentThread","onDiscard","markers","attributes","head","setAttribute","getMarkers","author","getFirstRange","createdAt","toJSON"];var $o,Jo;$o=qo,Jo=179,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return qo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Qo("0x9")]=!1,this.id=e.id,this.type=e[Qo("0x32")],this[Qo("0x2d")]=e[Qo("0x2d")]||null,this[Qo("0x3")]=e.author,this[Qo("0x37")]=e.creator||e[Qo("0x3")],this.isExternal=Boolean(e[Qo("0x3d")]&&e[Qo("0x3d")][Qo("0x19")]),this[Qo("0x2c")]=null,this[Qo("0x1a")]=t,this[Qo("0xc")]=e[Qo("0x1f")],this[Qo("0xe")]=e[Qo("0x3b")],this[Qo("0x10")]=e[Qo("0x39")],this[Qo("0x13")]=new Set,this.createdAt=null,this[Qo("0x14")](Qo("0x1e"),null),this.set("attributes",e[Qo("0x3d")]||{}),this.set("previous",null),this.set(Qo("0x21"),null),this[Qo("0x14")](Qo("0x3a"),null),this[Qo("0x14")]("_saved",!1),this[Qo("0xf")](Qo("0x23")),this.decorate(Qo("0x12"))}get[Qo("0x0")](){let t=this;for(;t[Qo("0x35")];)t=t[Qo("0x35")];return t}get[Qo("0x22")](){return!!this[Qo("0x3a")]&&this.commentThread.length>0}get[Qo("0x24")](){return 0!=this[Qo("0x13")][Qo("0x33")]&&6==Array[Qo("0x31")](this._markerNames)[0][Qo("0x34")](":")[Qo("0x38")]}get[Qo("0x18")](){return null!==this[Qo("0x25")]()}[Qo("0xb")](t){this._markerNames[Qo("0x28")](t)}getMarkerNames(){return Array.from(this[Qo("0x13")])}getMarkers(){return this[Qo("0x20")]()[Qo("0x1b")]((t=>this[Qo("0x1a")][Qo("0x3c")][Qo("0x1c")](t)))[Qo("0x2f")]((t=>t))}[Qo("0x25")](){return this[Qo("0x2")]()[0]||null}removeMarkers(){this[Qo("0x1a")][Qo("0x27")]((t=>{for(const e of this[Qo("0x2")]())t.removeMarker(e)})),this[Qo("0x13")].clear()}removeMarker(t){this[Qo("0x1a")][Qo("0x27")]((e=>{e[Qo("0x16")](t)})),this[Qo("0x13")][Qo("0x2e")](t)}[Qo("0x30")](t){const e="suggestion:"+this[Qo("0x32")]+":"+this.subType+":"+this.id+":"+this[Qo("0x37")].id+":"+Zo[Qo("0x1d")]();this[Qo("0xb")](e),this[Qo("0x1a")][Qo("0x27")]((n=>{n[Qo("0x26")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x36")](t){for(const e of this.getRanges())if(e[Qo("0x7")](t))return!0;return!1}[Qo("0x8")](){return this.getMarkers().map((t=>t[Qo("0x17")]()))}[Qo("0xd")](){return this.getRanges()[Qo("0x2b")](((t,e)=>[...t,...e[Qo("0xd")]()]),[])}[Qo("0x4")](){var t;return(null===(t=this[Qo("0x25")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x2a")](){const t=this[Qo("0x8")]();if(1!=t[Qo("0x38")])return null;const e=t[0],n=e[Qo("0x29")].nodeAfter,o=e.end.nodeBefore;return n instanceof i.Element?n!=o?null:n:null}[Qo("0x23")](){this[Qo("0xc")](this.getRanges(),this[Qo("0x2c")],this[Qo("0x3d")]),this[Qo("0x15")]()}[Qo("0x12")](){this._onDiscard(this.getRanges(),this[Qo("0x2c")],this[Qo("0x3d")]),this[Qo("0x15")]()}getAllAdjacentSuggestions(){const t=[];let e=this[Qo("0x0")];for(;e;)t[Qo("0x11")](e),e=e.next;return t}[Qo("0x1")](t,e){const n=eo(this[Qo("0x3d")]);_o(n,t,e),Go(n,this.attributes)||(this[Qo("0x3d")]=n,this._onAttributesChange(n))}[Qo("0xa")](t){const e=eo(this[Qo("0x3d")]);Xo(e,t),Go(e,this.attributes)||(this[Qo("0x3d")]=e,this[Qo("0x10")](this[Qo("0x3d")]))}[Qo("0x6")](){return{id:this.id,type:this[Qo("0x2d")]?this[Qo("0x32")]+":"+this[Qo("0x2d")]:this[Qo("0x32")],authorId:this[Qo("0x37")].id,createdAt:this[Qo("0x5")],hasComments:this[Qo("0x22")],data:this.data,attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(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=["$1 $2","getFirstRange","push","isInContent","normal","nextSibling","_resolveDescriptionItems","_itemLabels","Object","previousSibling","$textProxy","element","Container","item","_customCallbacks","get","getItemLabel","_addDescriptionItems","start","ELEMENT_SPACE","getDescriptions","label","insertion","text","registerDescriptionCallback","add","*Insert:* %0","elementStart","addObject","registerElementLabel","deletion","checkChild","isEmpty","_locale","getWalker","set","name","_schema","replace","_itemLabelsCallbacks","quantity","matchingCallback","removeContainer","remove","elementEnd","isObject","length","EmptyContainer","indexOf","addEmptyContainer","type","softBreak","$text","*Split:* %0","match","skip","function","isEqual","pop","data","removeEmptyContainer","REPLACE_TEXT","addContainer"];var es,ns;es=ts,ns=140,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x0")]=[],this[os("0x38")]=new Map,this[os("0x19")]=[],this[os("0x17")]=t,this[os("0x13")]=e}[os("0x6")](t){const e=[];for(let n=0;n<t[os("0x20")];n++){const o=t[n];if(!o[os("0x34")])continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){"type"in n&&e[os("0x33")](n),s=!0;break}}if(!s){this[os("0x3")](e,o);const s=t[n+1];if(s&&!o[os("0x32")]().end[os("0x2b")](s[os("0x32")]()[os("0x4")])){const t=e[e[os("0x20")]-1],n=os("0x8")==o[os("0x24")]?"add":os("0x1d");t&&"text"==t[os("0x24")]&&(t[n]+="\n")}}}return this[os("0x37")](e)}[os("0xa")](t){this[os("0x0")][os("0x33")](t)}[os("0xf")](t,n,o=e.priorities[os("0x35")]){os("0x2a")==typeof t?(0,e.insertToPriorityArray)(this[os("0x19")],{matchingCallback:t,label:n,priority:o}):this._itemLabels[os("0x15")](t,n)}[os("0x2")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x1b")](t)){n=e[os("0x7")];break}return n||(n=this[os("0x38")][os("0x1")](t[os("0x16")])),n?n(e):1!==e?e+" "+t[os("0x16")]+"s":""+t.name}_addDescriptionItems(t,e){const n=e.getFirstRange()[os("0x14")](),o=os("0x8")==e.type?"add":os("0x1d");for(const e of n){const s=e[os("0x3e")],r=t[t[os("0x20")]-1];if(s.is(os("0x3b")))r&&r.type[os("0x22")](os("0x3d"))>-1&&t[os("0x2c")](),r&&os("0x9")==r.type?r[o]+=s[os("0x2d")]:t[os("0x33")]({type:os("0x9"),add:os("0xb")==o?s[os("0x2d")]:"",remove:os("0x1d")==o?s.data:""});else if(this[os("0x17")][os("0x1f")](s)){const i=s;if(r&&r[os("0x24")][os("0x22")](os("0x3d"))>-1&&t[os("0x2c")](),"elementEnd"==e[os("0x24")])continue;r&&r[os("0x24")]==o+"Object"&&r[os("0x3c")][os("0x16")]==i[os("0x16")]?r[os("0x1a")]++:t[os("0x33")]({type:o+os("0x39"),element:i,quantity:1}),n[os("0x29")]((t=>!(os("0x1e")==t[os("0x24")]&&t[os("0x3e")]==s)))}else if(this[os("0x17")][os("0x11")](s,os("0x26"))||s.is(os("0x3c"),os("0x25"))){const n=s;if(os("0xb")==o&&os("0xd")==e[os("0x24")]||os("0x1d")==o&&os("0x1e")==e.type)continue;if(r&&-1==r[os("0x24")].indexOf(os("0x3d"))){os("0x9")==r.type&&(r[o]+="\n");continue}let i;if(i="add"==o?n.nextSibling&&!this._schema[os("0x1f")](n[os("0x36")])?n[os("0x36")]:null:n[os("0x3a")]&&!this[os("0x17")][os("0x1f")](n[os("0x3a")])?n[os("0x3a")]:null,n.isEmpty||i&&i[os("0x12")]){const e=i&&i.isEmpty?i:n;r&&r.type==o+os("0x21")&&r[os("0x3c")].name==e.name?r[os("0x1a")]++:t[os("0x33")]({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x33")]({type:o+"Container",element:n})}}}[os("0x37")](t){const e=this[os("0x13")],n=[];for(const o of t){switch(o[os("0x24")]){case"text":if(o[os("0xb")]=o[os("0xb")][os("0x18")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x18")](/\u000A/g,""),o[os("0x1d")]=o[os("0x1d")][os("0x18")](/(\S)\u000A+(\S)/g,os("0x31"))[os("0x18")](/\u000A/g,""),""!=o[os("0xb")]&&""!=o.remove){n[os("0x33")]({type:os("0x18"),content:Yo(e,os("0x2f"),['"'+o[os("0x1d")]+'"','"'+o[os("0xb")]+'"'])});continue}if(null!=o[os("0xb")][os("0x28")](/^ +$/)){n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),Yo(e,"ELEMENT_SPACE",o.add[os("0x20")]))});continue}if(null!=o.remove[os("0x28")](/^ +$/)){n[os("0x33")]({type:"deletion",content:Yo(e,"*Remove:* %0",Yo(e,os("0x5"),o[os("0x1d")].length))});continue}if(""!=o[os("0xb")]){n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),'"'+o[os("0xb")]+'"')});continue}n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",'"'+o[os("0x1d")]+'"')});continue;case os("0x23"):case os("0xe"):n[os("0x33")]({type:"insertion",content:Yo(e,os("0xc"),this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue;case os("0x2e"):case"removeObject":n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Remove:* %0",this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue;case os("0x30"):n[os("0x33")]({type:os("0x8"),content:Yo(e,os("0x27"),this[os("0x2")](o[os("0x3c")],o.quantity))});continue;case os("0x1c"):n[os("0x33")]({type:os("0x10"),content:Yo(e,"*Merge:* %0",this[os("0x2")](o[os("0x3c")],o[os("0x1a")]))});continue}n[os("0x33")](o)}return n}}const rs=["plugins","showAIAssistant","enableCommand","commands","editor","TrackChangesEditing","get","afterInit"];var is,xs;is=rs,xs=321,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x6")](){const t=this[as("0x3")],e=t[as("0x7")][as("0x5")](as("0x4"));t[as("0x2")].get(as("0x0"))&&e[as("0x1")](as("0x0"))}}const ls=["document","markBlockFormat","contentLanguageDirection","getAttribute","FORMAT_ALIGN_TO_CENTER","TrackChangesEditing","FORMAT_ALIGN_TO_LEFT","commandParams","editor","enableCommand","right","*Format:* %0","filter","get","plugins","model","FORMAT_JUSTIFY_TEXT","center","justify","registerDescriptionCallback","selection","value","FORMAT_ALIGN_TO_RIGHT","has","ltr","left","commandName","checkAttribute","from","AlignmentEditing","alignment","locale","format","afterInit"];var us,ds;us=ls,ds=299,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0x6")](){const t=this[gs("0xf")],e=t[gs("0x4")];if(!t[gs("0x15")][gs("0x1e")](gs("0x2")))return;const n=t[gs("0x15")][gs("0x14")](gs("0xc"));n[gs("0x10")](gs("0x3"),((e,o={})=>{let s=o[gs("0x1c")];o[gs("0x1c")]||(s=gs("0x1f")===t.locale[gs("0x9")]?gs("0x20"):gs("0x11"));const r=Array[gs("0x1")](this[gs("0xf")][gs("0x16")][gs("0x7")][gs("0x1b")].getSelectedBlocks())[gs("0x13")]((t=>function(t,e,n){const o=t[gs("0xa")](gs("0x3"))||null;return e[gs("0x0")](t,gs("0x3"))&&n!=o}(t,this[gs("0xf")].model.schema,s)));t[gs("0x16")].change((()=>{for(const t of r)n[gs("0x8")](t,{commandName:gs("0x3"),commandParams:[{value:s}]})}))})),n._descriptionFactory[gs("0x1a")]((t=>{const{data:n}=t;if(n&&gs("0x3")==n[gs("0x21")]){const t=n[gs("0xe")][0].value;return{type:gs("0x5"),content:Yo(e,gs("0x12"),function(t){switch(t){case"left":return Yo(e,gs("0xd"));case gs("0x11"):return Yo(e,gs("0x1d"));case gs("0x18"):return Yo(e,gs("0xb"));case gs("0x19"):return Yo(e,gs("0x17"))}}(t))}}}))}}const fs=["addClass","insert","previousPosition","span","push","listIndent","item","markerName","includes","createRangeOn","nextSibling","test","bindElementToMarker","TrackChangesEditing","listItem","ck-suggestion-marker-","parent","name","hasAttribute","elementEnd","isAtEnd","writer","type","ck-suggestion-marker--active","element","mapper","getItems","schema","getWalker","isLimit","plugins","get","getCustomProperty","model","start","createUIElement","markerRange"];var hs,ps;hs=fs,ps=379,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return fs[t-=0]};function Es(t,e,n){const o=[];for(const s of e[bs("0x11")]())s[bs("0x9")](t)&&o[bs("0x20")](n[bs("0x0")](s));return o}function _s(t){const e=[];if(t.is(bs("0xf"),bs("0x5"))){let n=t.nextSibling;for(;n&&n.is(bs("0xf"),bs("0x5"))&&n.getAttribute(bs("0x21"))>0;)e[bs("0x20")](n),n=n.nextSibling}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t[bs("0x15")][bs("0x16")](bs("0x4"));return(s,r,i)=>{if(!i.consumable[bs("0x2")](r[bs("0x1b")],s[bs("0x8")]))return;const x=r[bs("0x1b")][bs("0x13")](),a=r[bs("0x1b")][bs("0x19")],c=t[bs("0x18")][bs("0x12")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[bs("0x22")];d=d||c.isContent(e);const n=i[bs("0x10")].toViewElement(e);if(n&&n[bs("0x17")]("addHighlight"))return;bs("0xa")==t[bs("0xd")]&&c.isBlock(e)&&!c[bs("0x14")](e)&&(e[bs("0x1")]||a[bs("0xb")]?l&&l[bs("0x7")]==e||(l=e,m(t[bs("0x1e")]),g=!0):u=u||t[bs("0x1e")])}function m(t){const s=i[bs("0xc")][bs("0x1a")](bs("0x1f"),{class:bs("0x6")+e}),x=i.mapper.toViewPosition(t);n&&o.activeMarkers[bs("0x24")](r[bs("0x23")])&&i.writer[bs("0x1c")](bs("0xe"),s),i.writer[bs("0x1d")](x,s),i[bs("0x10")][bs("0x3")](s,r[bs("0x23")])}d||g||!u||m(u)}}const Cs=["change","underline","FORMAT_CODE","slice","get","subscript","isCollapsed","forceValue","commandName","FORMAT_BOLD","plugins","*Remove format:* %0","TrackChangesEditing","commands","code","FORMAT_SUPERSCRIPT","markInlineFormat","FORMAT_ITALIC","editor","has","StrikethroughEditing","document","strikethrough","SubscriptEditing","_descriptionFactory","bold","superscript","format","UnderlineEditing","FORMAT_UNDERLINE","FORMAT_STRIKETHROUGH","enableCommand","from","selection","*Format:* %0","CodeEditing","getRanges","FORMAT_SUBSCRIPT","toLowerCase","BoldEditing","model","commandParams","value"];var ys,ks;ys=Cs,ks=254,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x0"),"ItalicEditing",As("0x20"),As("0x27"),As("0x18"),As("0x1b"),"SuperscriptEditing"];class Rs extends t.Plugin{afterInit(){const t=this[As("0x16")],e=t[As("0x1")],n=t[As("0xe")][As("0x8")](As("0x10")),o=t.locale;for(const o of vs){if(!t.plugins[As("0x17")](o))continue;const s=o[As("0x7")](0,-7)[As("0x2a")](),r=t[As("0x11")][As("0x8")](s);n[As("0x23")](s,((t,o={})=>{const i=e[As("0x19")][As("0x25")];if(i[As("0xa")])return void t(o);const x=void 0!==o[As("0xb")]?o[As("0xb")]:!r[As("0x3")];e[As("0x4")]((()=>{const t=Array[As("0x24")](i[As("0x28")]());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x14")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1c")].registerDescriptionCallback((n=>{const{data:s}=n;if(s&&s[As("0xc")]===t)return s[As("0x2")][0].forceValue?{type:As("0x1f"),content:Yo(o,As("0x26"),e)}:{type:As("0x1f"),content:Yo(o,As("0xf"),e)}}))}s(As("0x1d"),Yo(o,As("0xd"))),s("italic",Yo(o,As("0x15"))),s(As("0x5"),Yo(o,As("0x21"))),s(As("0x12"),Yo(o,As("0x6"))),s(As("0x1a"),Yo(o,As("0x22"))),s(As("0x9"),Yo(o,As("0x29"))),s(As("0x1e"),Yo(o,As("0x13")))}}const Is=["parent","*Format:* %0","editor","schema","blockQuote","commands","registerDescriptionCallback","getSelectedBlocks","BlockQuoteEditing","has","TrackChangesEditing","filter","checkChild","get","forceValue","name","value","format","selection","locale","change","plugins","ELEMENT_BLOCK_QUOTE","enableCommand","model","_descriptionFactory","*Remove format:* %0","from","commandName"];var Ss,Ls;Ss=Is,Ls=313,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class Ms extends t.Plugin{afterInit(){const t=this[Ns("0x8")],e=t[Ns("0x19")];if(!t[Ns("0x1b")][Ns("0xf")](Ns("0xe")))return;const n=t[Ns("0x1b")][Ns("0x13")](Ns("0x10")),o=this[Ns("0x8")][Ns("0xb")][Ns("0x13")](Ns("0xa"));n[Ns("0x0")](Ns("0xa"),((e,s={})=>{const r=this[Ns("0x8")][Ns("0x1")].document[Ns("0x18")],i=s&&void 0!==s[Ns("0x14")]?s.forceValue:!o[Ns("0x16")];let x=[];if(i){const e=Array[Ns("0x4")](r[Ns("0xd")]()).filter((t=>ws(t)||function(t,e){const n=e[Ns("0x12")](t.parent,Ns("0xa")),o=e[Ns("0x12")](["$root",Ns("0xa")],t);return n&&o}(t,this.editor[Ns("0x1")][Ns("0x9")])));x=I(e,t[Ns("0x1")])}else{const e=Array[Ns("0x4")](r[Ns("0xd")]())[Ns("0x11")]((t=>ws(t)));x=I(e,t.model)}t.model[Ns("0x1a")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0xa"),commandParams:[{forceValue:i}]})}))})),n[Ns("0x2")][Ns("0xc")]((t=>{const{data:n}=t;if(n&&Ns("0xa")==n[Ns("0x5")]){const t=Yo(e,Ns("0x1c"));return n.commandParams[0][Ns("0x14")]?{type:Ns("0x17"),content:Yo(e,Ns("0x7"),t)}:{type:Ns("0x17"),content:Yo(e,Ns("0x3"),t)}}}))}}function ws(t){return Ns("0xa")==t[Ns("0x6")][Ns("0x15")]}const Os=["plugins","enableCommand","ckbox","get","afterInit","TrackChangesEditing","commands","editor"];var Fs,Ps;Fs=Os,Ps=408,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x4")](){const t=this[Ds("0x7")];t[Ds("0x6")][Ds("0x3")](Ds("0x2"))&&t[Ds("0x0")][Ds("0x3")](Ds("0x5"))[Ds("0x1")](Ds("0x2"))}}const js=["filter","enableCommand","*Format:* %0","outdentCodeBlock","parent","afterInit","TrackChangesEditing","get","find","rootElement","commandName","name","locale","language","*Remove format:* %0","change","selection","model","value","has","getSelectedBlocks","label","checkChild","config","editor","codeBlock","markBlockFormat","forceValue","from","commands","isLimit","blockName","indentCodeBlock","ELEMENT_CODE_BLOCK","plugins","schema"];var Us,Gs;Us=js,Gs=223,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class Ws extends t.Plugin{[Hs("0x22")](){const t=this[Hs("0x11")];if(!t[Hs("0x1b")][Hs("0xc")]("CodeBlock"))return;const e=t[Hs("0x1b")][Hs("0x0")](Hs("0x23")),n=t[Hs("0x5")],o=t[Hs("0x10")][Hs("0x0")](Hs("0x12")).languages,s=t[Hs("0x16")][Hs("0x0")](Hs("0x12"));e[Hs("0x1e")](Hs("0x19")),e[Hs("0x1e")](Hs("0x20")),e[Hs("0x1e")](Hs("0x12"),((n,r={})=>{const i=t[Hs("0xa")],x=t[Hs("0xa")].document[Hs("0x9")],a=r&&void 0!==r.forceValue?r[Hs("0x14")]:!s[Hs("0xb")];let c;r[Hs("0x6")]||(r[Hs("0x6")]=o[0][Hs("0x6")]),c=a?Array[Hs("0x15")](x[Hs("0xd")]()).filter((t=>{return zs(t)||(e=t,n=i[Hs("0x1c")],!e.is(Hs("0x2"))&&!n[Hs("0x17")](e)&&n[Hs("0xf")](e[Hs("0x21")],Hs("0x12")));var e,n})):Array[Hs("0x15")](x.getSelectedBlocks())[Hs("0x1d")]((t=>zs(t)));const l=I(c,i);i[Hs("0x8")]((()=>{for(const t of l)e[Hs("0x13")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x18")})}))})),e._descriptionFactory.registerElementLabel(Hs("0x12"),(t=>Yo(n,Hs("0x1a"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Hs("0x3")]){const t=r.commandParams[0][Hs("0x6")],s=e(o[Hs("0x1")]((e=>e[Hs("0x6")]===t))[Hs("0xe")]);return r.commandParams[0][Hs("0x14")]?{type:"format",content:Yo(n,Hs("0x1f"),Yo(n,Hs("0x1a"),1)+" ("+s+")")}:{type:"format",content:Yo(n,Hs("0x7"),Yo(n,Hs("0x1a"),1))}}}))}}function zs(t){return"codeBlock"==t[Hs("0x4")]}const Vs=["plugins","has","TrackChangesEditing","CommentsEditing","addCommentThread","get"];var Ks,Xs;Ks=Vs,Xs=282,function(t){for(;--t;)Ks.push(Ks.shift())}(++Xs);const qs=function(t,e){return Vs[t-=0]};class $s extends t.Plugin{afterInit(){const t=this.editor;t.plugins[qs("0x1")](qs("0x3"))&&t[qs("0x0")][qs("0x5")](qs("0x2")).enableCommand(qs("0x4"))}}var Js=n(181);const Qs=["enqueueChange","editing","unit","document","root","delete","model","options","end","get","commands","unlock","modifySelection","TrackChangesEditing","start","bind","showSuggestionHighlights","createRange","editor","high","detach","markerName","requires","getFirstRange","writer","uiElement","markerNameToElements","setSelection","batch","mapper","createSelection","merge","downcastDispatcher","buffer","isCollapsed","lock","addMarker:suggestion:deletion","deleteForward"];var Zs,Ys;Zs=Qs,Ys=116,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{static get[tr("0x14")](){return[Js.Delete]}init(){const t=this[tr("0x10")],e=t.plugins.get(tr("0xb"));e.enableCommand(tr("0x3"));const n=t[tr("0x8")][tr("0x7")]("deleteForward");e.enableCommand(tr("0x23"),((e,o={})=>{const s=t.model[tr("0x1c")](t[tr("0x4")][tr("0x1")].selection);s[tr("0x20")]&&t[tr("0x4")][tr("0xa")](s,{direction:"forward",unit:o[tr("0x0")]});const r=s[tr("0x15")](),x=i.LiveRange.fromRange(r);let a;e(o),a="$graveyard"==x[tr("0x2")].rootName?t[tr("0x4")][tr("0xf")](r[tr("0xc")]):t[tr("0x4")][tr("0xf")](x[tr("0xc")],x[tr("0x6")]),x[tr("0x12")](),t.model[tr("0x24")](n[tr("0x1f")][tr("0x1a")],(t=>{n.buffer[tr("0x21")](),t[tr("0x19")](t[tr("0xf")](a[tr("0x6")])),n[tr("0x1f")][tr("0x9")]()}))})),t[tr("0x25")][tr("0x1e")].on(tr("0x22"),Ts(t,tr("0x1d")),{priority:tr("0x11")}),t.data[tr("0x1e")].on(tr("0x22"),((e,n,o)=>{o[tr("0x5")][tr("0xe")]&&Ts(t,tr("0x1d"),{showActiveMarker:!1})[tr("0xd")](this)(e,n,o)}),{priority:"high"}),t[tr("0x25")][tr("0x1e")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[tr("0x1b")][tr("0x18")](e.markerName);if(o)for(const t of o)t.is(tr("0x17"))&&(n[tr("0x1b")].unbindElementFromMarkerName(t,e[tr("0x13")]),n[tr("0x16")].remove(t))}),{priority:tr("0x11")})}}const nr=["listType","afterInit","markMultiRangeBlockFormat","hasAttribute","registerElementLabel","deletion","ELEMENT_LIST_ITEM","splitListItemAfter","setSelection","*Change to:* %0","toUpperCase","slice","nextSibling","*Format:* insert into %0","DocumentListEditing","_suggestionFactory","getAttribute","*Indent:* %0","getRanges","enableCommand","multipleBlocks","fromRange","containsItem","add","detach","_LIST","isObject","change","forceValue","before","map","end","document","*Merge:* %0","has","from","commandParams","nodeAfter","schema","next","list.multiBlock","commands","formatBlock","selection","indentList","outdentList","*Format:* remove from %0","listItemId","plugins","markBlockFormat","push","model","execute","format","get","mergeListItemForward","start","createPositionAt","createRange","getFirstRange","previousSibling","*Outdent:* %0","ELEMENT_NUMBERED_LIST","documentList","DocumentListUtils","splitListItemBefore","TrackChangesEditing","after","accept","listIndent","value","registerCustomCallback","commandName","numberedList","findIndex","_descriptionFactory","bulletedList","config","editor","parent"];var or,sr;or=nr,sr=487,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x4a")](){const t=this[rr("0x47")];if(!t[rr("0x29")][rr("0x1b")](rr("0x7")))return;const e=t.locale,n=t[rr("0x29")][rr("0x2f")](rr("0x3b")),o=t[rr("0x29")][rr("0x2f")](rr("0x39"));function s(e){return()=>{const s=t[rr("0x22")][rr("0x2f")](e);if(s.value&&!t[rr("0x46")][rr("0x2f")](rr("0x21")))return void t[rr("0x2d")]("paragraph",{});let r=Array.from(t[rr("0x2c")].document[rr("0x24")].getSelectedBlocks());if(a(e)){r=o.expandListBlocksToCompleteList(r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t.model[rr("0x14")]((()=>{n[rr("0x4b")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x3f")]}],formatGroupId:rr("0x49")},[],rr("0x38"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x1c")](t);const n=e[rr("0x43")]((t=>!t[rr("0x4c")](rr("0x28"))));return n>-1&&(e=e[rr("0x4")](0,n)),e}(t[rr("0x2c")][rr("0x19")].selection.getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x2c")][rr("0x1f")][rr("0x13")](s)?rr("0x3c"):rr("0x18"),i=t.model.createRange(t[rr("0x2c")][rr("0x32")](o[0],rr("0x16")),t.model.createPositionAt(s,r));t[rr("0x2c")][rr("0x14")]((()=>{n[rr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x49")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x5")];for(;t&&t[rr("0x9")]("listIndent")>n.getAttribute(rr("0x3e"));)e[rr("0x10")](t),t=t[rr("0x5")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x2c")][rr("0x19")][rr("0x24")].getSelectedBlocks()[rr("0x20")]()[rr("0x3f")],s=t[rr("0x2c")][rr("0x32")](o,rr("0x16")),r=t[rr("0x2c")][rr("0x32")](o,0),i=t.model[rr("0x33")](s,r);t[rr("0x2c")][rr("0x14")]((()=>{n[rr("0x2a")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x49")})}))}}function a(e){const n=t[rr("0x22")].get(rr("0x45"))[rr("0x3f")],o=t[rr("0x22")][rr("0x2f")](rr("0x42"))[rr("0x3f")];return rr("0x42")===e?n:o}n[rr("0xc")](rr("0x42"),s(rr("0x42"))),n[rr("0xc")](rr("0x45"),s(rr("0x45"))),n[rr("0xc")](rr("0x25"),r(rr("0x25"))),n[rr("0xc")](rr("0x26"),r(rr("0x26"))),n[rr("0xc")](rr("0x0"),x(rr("0x0"))),n[rr("0xc")](rr("0x3a"),x(rr("0x3a"))),n[rr("0x44")][rr("0x4d")]((function(e){const n=!t.model[rr("0x1f")][rr("0x13")](e),o=e[rr("0x35")],s=e[rr("0x5")],r=e[rr("0x9")](rr("0x28")),i=!o||o[rr("0x9")]("listItemId")!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x4f"),t))),n._descriptionFactory.registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x41")]){case"bulletedList":i=o.commandParams[0][rr("0x15")],x=a(o[rr("0x41")]),s=rr(i?"0x6":"0x27"),!x&&t.config[rr("0x2f")](rr("0x21"))||(s=rr("0x2")),r={type:rr("0x2e"),content:Yo(e,s,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case rr("0x42"):i=o[rr("0x1d")][0].forceValue,x=a(o[rr("0x41")]),s=rr(i?"0x6":"0x27"),!x&&t[rr("0x46")][rr("0x2f")]("list.multiBlock")||(s=rr("0x2")),r={type:rr("0x2e"),content:Yo(e,s,Yo(e,rr("0x37")))};break;case rr("0x25"):s=rr("0xa"),r={type:"format",content:Yo(e,s,Yo(e,rr("0x4f")))};break;case rr("0x26"):s=function(t){const e=t[rr("0x34")]();let n=e[rr("0x31")][rr("0x1e")];for(;n&&e[rr("0xf")](n);){if(n.getAttribute(rr("0x3e"))>0)return!1;n=n[rr("0x5")]}return!0}(n)?Yo(e,rr("0x27"),Yo(e,"ELEMENT_"+n[rr("0x34")]()[rr("0x31")][rr("0x1e")][rr("0x9")](rr("0x49"))[rr("0x3")]()+rr("0x12"))):Yo(e,rr("0x36"),Yo(e,rr("0x4f"))),r={type:rr("0x2e"),content:s};break;case"mergeListItemBackward":case rr("0x30"):!1===o[rr("0xd")]&&(s=rr("0x1a"),r={type:rr("0x4e"),content:Yo(e,s,Yo(e,rr("0x4f")))})}return r})),n[rr("0x8")][rr("0x40")](rr("0x23"),rr("0x38"),rr("0x3d"),(function(e,n){const o=[];for(let n of e)n[rr("0x31")].nodeAfter===n[rr("0x18")][rr("0x48")]&&(n=t[rr("0x2c")][rr("0x33")](t.model[rr("0x32")](n[rr("0x31")][rr("0x1e")],0))),o[rr("0x2b")](n);t.model[rr("0x14")]((e=>{const s=t[rr("0x2c")].document.selection,r=Array[rr("0x1c")](s[rr("0xb")]())[rr("0x17")]((t=>i.LiveRange[rr("0xe")](t)));e[rr("0x1")](o),t[rr("0x22")][rr("0x2f")](n[rr("0x41")]).refresh(),n[rr("0x1d")][rr("0x2b")]({forceDefaultExecution:!0}),t[rr("0x2d")](n[rr("0x41")],...n[rr("0x1d")]),e[rr("0x1")](r);for(const t of r)t[rr("0x11")]()}))}))}}var xr=n(331);const ar=["editor","bind","fire","unbindElementFromMarkerName","enter","createPositionAt","afterExecute","remove","addMarker:suggestion:insertion","setSelection","split","fromRange","high","get","data","ck-suggestion-marker-split","TrackChangesEditing","enableCommand","selection","markerName","end","markInsertion","writer","editing","detach","change","removeMarker:suggestion:insertion","model","commands","createRange","document","downcastDispatcher","markerNameToElements","parent","options","plugins"];var cr,lr;cr=ar,lr=455,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const ur=function(t,e){return ar[t-=0]};class dr extends t.Plugin{static get requires(){return[xr.Enter]}init(){const t=this[ur("0xd")],e=t[ur("0xc")][ur("0x1a")](ur("0x1d")),n=t[ur("0x5")][ur("0x1a")](ur("0x11"));e[ur("0x1e")](ur("0x11"),(()=>{t[ur("0x4")][ur("0x2")]((o=>{const s=t[ur("0x4")][ur("0x7")][ur("0x1f")],r=s.getFirstPosition(),x=i.LiveRange[ur("0x18")](s.getFirstRange());if(n.enterBlock(o)){const n=t.model[ur("0x12")](r[ur("0xa")].nextSibling,0),s=o[ur("0x6")](r,n);e[ur("0x22")](s)}else o[ur("0x16")](o[ur("0x6")](x[ur("0x21")]));x[ur("0x1")](),n[ur("0xf")](ur("0x13"),{writer:o})}))})),t[ur("0x0")][ur("0x8")].on(ur("0x15"),Ts(t,ur("0x17")),{priority:ur("0x19")}),t[ur("0x0")][ur("0x8")].on(ur("0x3"),((t,e,n)=>{const o=n.mapper[ur("0x9")](e[ur("0x20")]);if(o)for(const t of o)t.hasClass(ur("0x1c"))&&(n.mapper[ur("0x10")](t,e.markerName),n[ur("0x23")][ur("0x14")](t))}),{priority:ur("0x19")}),t[ur("0x1b")][ur("0x8")].on("addMarker:suggestion:insertion",((e,n,o)=>{o[ur("0xb")].showSuggestionHighlights&&Ts(t,ur("0x17"),{showActiveMarker:!1})[ur("0xe")](this)(e,n,o)}),{priority:ur("0x19")})}}const gr=["createPositionAt","suggestion:deletion","end","filter","findPrevious","find","findNext","FindAndReplaceUtils","plugins","has","getRange","getMarkersGroup","getIntersection","replaceAll","markers","handleFindCommand","editor","string","model","afterInit","enableCommand","_isInDeletionRange","get"];var mr,fr;mr=gr,fr=177,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{[hr("0x3")](){if(!this[hr("0x0")].plugins[hr("0x10")]("FindAndReplaceEditing"))return;const t=this.editor[hr("0xf")][hr("0x6")]("TrackChangesEditing");t[hr("0x4")](hr("0xc"),this[hr("0x16")].bind(this)),t[hr("0x4")](hr("0xd")),t[hr("0x4")](hr("0xb")),t[hr("0x4")]("replace"),t[hr("0x4")](hr("0x14"))}[hr("0x16")](t,e,n={}){const o=this.editor.plugins.get(hr("0xe"));if(void 0!==n)return t((t=>(hr("0x1")==typeof e?o.findByTextCallback(e,n):e)(t)[hr("0xa")]((e=>!1===this._isInDeletionRange(e,t.item)))),n)}[hr("0x5")](t,e){const n=this[hr("0x0")][hr("0x2")].createRange(this[hr("0x0")][hr("0x2")].createPositionAt(e,t.start),this[hr("0x0")][hr("0x2")][hr("0x7")](e,t[hr("0x9")]));for(const t of this[hr("0x0")][hr("0x2")][hr("0x15")][hr("0x12")](hr("0x8")))if(null!==n[hr("0x13")](t[hr("0x11")]()))return!0;return!1}}const br=["FontSize","*Set font size:* %0","*Reset font size*","fontBackgroundColor","commandName","trim","markInlineFormat","_descriptionFactory","label","FontSizeEditing","toLowerCase","plugins","get","FontBackgroundColorEditing","fontFamily","selection","fontSize","commandParams","change","value","FontFamilyEditing","model","find","config","format","isCollapsed","fontBackgroundColor.colors","afterInit","editor","fontColor.colors","document","fontSize.options","_enableCommand","*Set font color:* %0","*Reset font color*","has","registerDescriptionCallback","fontColor","*Reset font background color*","from"];var Er,_r;Er=br,_r=463,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x1a"),commandName:Tr("0x21")},{pluginName:Tr("0x25"),commandName:Tr("0x1f")},{pluginName:"FontColorEditing",commandName:Tr("0xe")},{pluginName:Tr("0x1e"),commandName:Tr("0x14")}];class yr extends t.Plugin{[Tr("0x4")](){const t=this[Tr("0x5")].locale;for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x5")][Tr("0x1c")][Tr("0xc")](t)&&this[Tr("0x9")](e);this[Tr("0x5")][Tr("0x1c")][Tr("0x1d")]("TrackChangesEditing")[Tr("0x18")][Tr("0xd")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if(Tr("0x21")==o[Tr("0x15")]){const e=o.commandParams[0][Tr("0x24")];if(e){const o=n(this[Tr("0x5")][Tr("0x1c")].get(Tr("0x11")).normalizeSizeOptions(this[Tr("0x5")][Tr("0x0")].get(Tr("0x8")))[Tr("0x27")]((t=>t.model==e)).title)[Tr("0x1b")]();return{type:Tr("0x1"),content:Yo(t,Tr("0x12"),o)}}return{type:Tr("0x1"),content:Yo(t,Tr("0x13"))}}if(Tr("0x1f")==o[Tr("0x15")]){const e=o.commandParams[0].value;return e?{type:Tr("0x1"),content:Yo(t,"*Set font family:* %0",e)}:{type:"format",content:Yo(t,"*Reset font family*")}}if("fontColor"==o[Tr("0x15")]){const e=o[Tr("0x22")][0][Tr("0x24")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x5")][Tr("0x0")][Tr("0x1d")](Tr("0x6")))[Tr("0x27")]((t=>t[Tr("0x26")]==e));let r=e,i="";return o&&(r=o.label,i=n(r).toLowerCase()),{type:Tr("0x1"),content:Yo(t,Tr("0xa"),i)[Tr("0x16")](),color:{value:e,title:i||r}}}return{type:Tr("0x1"),content:Yo(t,Tr("0xb"))}}if("fontBackgroundColor"==o[Tr("0x15")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x5")][Tr("0x0")].get(Tr("0x3")))[Tr("0x27")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0x19")],i=n(r)[Tr("0x1b")]()),{type:Tr("0x1"),content:Yo(t,"*Set font background color:* %0",i)[Tr("0x16")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,Tr("0xf"))}}}}))}[Tr("0x9")](t){const e=this[Tr("0x5")];e[Tr("0x1c")][Tr("0x1d")]("TrackChangesEditing").enableCommand(t,((n,o={})=>{const s=e[Tr("0x26")][Tr("0x7")][Tr("0x20")],r=o[Tr("0x24")];s[Tr("0x2")]?n(o):e[Tr("0x26")][Tr("0x23")]((()=>{const n=Array[Tr("0x10")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e[Tr("0x26")]);for(const o of n)e[Tr("0x1c")].get("TrackChangesEditing")[Tr("0x17")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["getItems","enableCommand","copyFormat","find","afterInit","word","change","toLowerCase","model","locale","length","modifySelection","config","plugins","createRange","pasteFormat","getAttributeProperties","keys","boolean","entries","fontSize","fontColor.colors","*Remove all formatting*","fontSize.options","format","getFirstPosition","document","title","join","forward","markInlineFormat","fontBackgroundColor","label","charAt","from","get","editor","getRanges","commandParams","backward","TrackChangesEditing","isCollapsed","push","getAttributes","isFormatting","normalizeSizeOptions","schema","_descriptionFactory","commands","registerDescriptionCallback","createSelection","selection"];var Ar,vr;Ar=kr,vr=374,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{[Rr("0x2e")](){const t=this[Rr("0x1a")],n=t[Rr("0x32")],o=n[Rr("0x10")][Rr("0x29")],s=t[Rr("0x3")][Rr("0x19")](Rr("0x1e")),r=t[Rr("0x33")],i=t[Rr("0x26")][Rr("0x19")](Rr("0x2c")),x=t[Rr("0x26")].get(Rr("0x5"));i&&x&&(s[Rr("0x2b")](Rr("0x5"),((t,r={})=>{const i=r;n[Rr("0x30")]((()=>{const t=Array[Rr("0x18")](o[Rr("0x1b")]()),r=o[Rr("0x1f")]?[Sr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[Rr("0x21")]()){const t=e[Rr("0x6")](n);t&&t[Rr("0x22")]&&(yield n)}}(t,n));for(const e of t[Rr("0x1b")]())for(const t of e[Rr("0x2a")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Rr("0x24")]))||0!==Object[Rr("0x7")](i)[Rr("0x0")])for(const t of r)s[Rr("0x14")](t,{commandName:Rr("0x5"),commandParams:[i]})}))})),s[Rr("0x25")][Rr("0x27")]((e=>{const{data:n}=e;if(n&&Rr("0x5")===n.commandName){const e=[],o=n[Rr("0x1c")][0];for(const[n,s]of Object[Rr("0x9")](o))e[Rr("0x20")](Lr(t,n,s));return e[Rr("0x0")]?{type:Rr("0xe"),content:Yo(r,"*Set format to:* %0",e[Rr("0x12")](", "))}:{type:Rr("0xe"),content:Yo(r,Rr("0xc"))}}})),t.plugins[Rr("0x19")](Rr("0x1e"))[Rr("0x2b")](Rr("0x2c")))}}function Sr(t,e){const n=t[Rr("0x28")](e);t[Rr("0x1")](n,{unit:Rr("0x2f"),direction:Rr("0x1d")});const o=n[Rr("0xf")]();t[Rr("0x1")](n,{unit:Rr("0x2f"),direction:Rr("0x13")});const s=n.getLastPosition();return t[Rr("0x4")](o,s)}function Lr(t,e,n){const o=t[Rr("0x33")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r[Rr("0x17")](0).toUpperCase()+r.slice(1))[Rr("0x31")]();if(Rr("0x8")==typeof n)return i;if("fontColor"===e||Rr("0x15")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0x2")][Rr("0x19")](Rr("0xb"))).find((t=>t[Rr("0x32")]==n));return i+" ("+(e?o(e[Rr("0x16")])[Rr("0x31")]():n)+")"}if(Rr("0xa")===e&&isNaN(parseFloat(n))){const e=t[Rr("0x3")][Rr("0x19")]("FontSize")[Rr("0x23")](t[Rr("0x2")][Rr("0x19")](Rr("0xd")))[Rr("0x2d")]((t=>t.model==n));return i+" ("+(e?o(e[Rr("0x11")])[Rr("0x31")]():n)+")"}return i+" ("+n+")"}const Nr=["change","editor","_descriptionFactory","schema","locale","afterInit","value","find","HeadingEditing","match","registerElementLabel","*Change to:* %0","isObject","ELEMENT_HEADING_CUSTOM","commandParams","parent","document","selection","registerDescriptionCallback","has","TrackChangesEditing","ELEMENT_HEADING","heading","formatBlock","checkChild","model","format","title","plugins","markBlockFormat","paragraph","heading.options","enableCommand","from"];var Mr,wr;Mr=Nr,wr=433,function(t){for(;--t;)Mr.push(Mr.shift())}(++wr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0xe")](){const t=this[Or("0xa")],e=t[Or("0xd")],n=t.config.get(Or("0x6"));if(!t[Or("0x3")][Or("0x1c")](Or("0x11")))return;const o=t[Or("0x3")].get(Or("0x1d"));o[Or("0x7")]("heading",((e,n)=>{const s=n.value,r=Array[Or("0x8")](this[Or("0xa")][Or("0x0")][Or("0x19")][Or("0x1a")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this[Or("0xa")][Or("0x0")][Or("0xc")])[Or("0x21")](e[Or("0x18")],n)&&!o[Or("0x15")](e)&&e.name!=n;var e,n,o}));t[Or("0x0")][Or("0x9")]((()=>{for(const t of r)o[Or("0x4")](t,{commandName:"heading",commandParams:[n],formatGroupId:"blockName"},_s(t))}))}));for(const t of n)Or("0x5")!=t.model&&o[Or("0xb")][Or("0x13")](t[Or("0x0")],(e=>{const n=Pr(t.model);return null!==n?s(e,n):r(e,t.title)}));function s(t,n){return Yo(e,Or("0x1e"),[t,n])}function r(t,n){return Yo(e,Or("0x16"),[t,n])}o[Or("0xb")][Or("0x1b")]((t=>{const{type:o,data:i}=t;if(Or("0x20")==o&&i&&Or("0x1f")==i.commandName){const t=i[Or("0x17")][0][Or("0xf")],o=Pr(t);if(null!==o)return{type:Or("0x1"),content:Yo(e,Or("0x14"),s(1,o))};const x=n[Or("0x10")]((e=>e[Or("0x0")]===t))[Or("0x2")];return{type:Or("0x1"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x12")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["highlight","*Set highlight:* %0","highlight.options","editor","get","formatInline","getFirstPosition","commandName","plugins","item","config","hasAttribute","selection","title","TrackChangesEditing","document","afterInit","push","HighlightEditing","isCollapsed","toLowerCase","value","find","_descriptionFactory","backward","model","getLastMatchingPosition","commandParams","enableCommand","color"];var Br,jr;Br=Dr,jr=405,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1")](){const t=this[Ur("0x12")];if(!t[Ur("0x17")].has(Ur("0x3")))return;const e=t[Ur("0x17")][Ur("0x13")](Ur("0x1d"));e[Ur("0xd")](Ur("0xf"),((n,o={})=>{const s=t.model[Ur("0x0")][Ur("0x1b")],r=s.getAttribute(Ur("0xf"));let i=o[Ur("0x6")],x=[];if(s[Ur("0x4")]){const e=s[Ur("0x15")]();if(!s[Ur("0x1a")](Ur("0xf")))return void n(o);{const n=t=>t[Ur("0x18")].getAttribute("highlight")===r,o=e[Ur("0xb")](n,{direction:Ur("0x9")}),s=e[Ur("0xb")](n);x=[t[Ur("0xa")].createRange(o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x[Ur("0x2")](e):x[Ur("0x2")](...Es("highlight",e,t[Ur("0xa")]));t[Ur("0xa")].change((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Ur("0xf"),commandParams:[{value:i}]})}))}));const n=t.locale;e[Ur("0x8")].registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x14")==o&&s&&"highlight"==s[Ur("0x16")]){const e=n.t,o=s[Ur("0xc")][0].value;if(o){const s=t[Ur("0x19")][Ur("0x13")](Ur("0x11"))[Ur("0x7")]((t=>t[Ur("0xa")]==o)),r=e(s.title)[Ur("0x5")]();return{type:"format",content:Yo(n,Ur("0x10"),r),color:{value:s[Ur("0xe")],title:s[Ur("0x1c")]}}}return{type:"format",content:Yo(n,"*Remove highlight*",Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Hr=["ck-horizontal-line","div","afterInit","locale","dataDowncast","createEmptyElement","editor","has","HorizontalLineEditing","high","addClass","registerElementLabel","TrackChangesEditing","horizontalLine","get","for","enableCommand","ELEMENT_HORIZONTAL_LINE","_descriptionFactory","plugins","createPositionAt","showSuggestionHighlights"];var Wr,zr;Wr=Hr,zr=440,function(t){for(;--t;)Wr.push(Wr.shift())}(++zr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0x2")](){const t=this[Vr("0x6")];if(!t[Vr("0x13")][Vr("0x7")](Vr("0x8")))return;t[Vr("0x13")][Vr("0xe")](Vr("0xc"))[Vr("0x10")](Vr("0xd"));const e=t[Vr("0x13")][Vr("0xe")]("TrackChangesEditing"),n=t[Vr("0x3")];e[Vr("0x12")][Vr("0xb")](Vr("0xd"),(t=>Yo(n,Vr("0x11"),t))),t.conversion[Vr("0xf")](Vr("0x4")).elementToStructure({model:Vr("0xd"),view:(t,{writer:e,options:n})=>{if(!n[Vr("0x15")])return null;const o=e.createContainerElement(Vr("0x1")),s=e[Vr("0x5")]("hr");return e[Vr("0xa")](Vr("0x0"),o),e.insert(e[Vr("0x14")](o,0),s),o},converterPriority:Vr("0x9")})}}const Xr=["htmlEmbed","selection","document","getSelectedElement","rawHtml","model","*Change %0 content*","_descriptionFactory","enableCommand","has","view","rawHtmlApi","TrackChangesEditing","editor","registerElementLabel","registerDescriptionCallback","markBlockFormat","ELEMENT_HTML_EMBED","getAttribute","getCustomProperty","value","plugins","format","element","get","editing"];var qr,$r;qr=Xr,$r=166,function(t){for(;--t;)qr.push(qr.shift())}(++$r);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x3")];if(!t[Jr("0xb")][Jr("0x19")]("HtmlEmbed"))return;const e=t[Jr("0xb")][Jr("0xe")](Jr("0x2")),n=t.locale,o=t[Jr("0xf")][Jr("0x0")][Jr("0x12")][Jr("0x11")];e._descriptionFactory[Jr("0x4")]("rawHtml",(t=>Yo(n,Jr("0x7"),t))),t[Jr("0xb")][Jr("0xe")](Jr("0x2"))[Jr("0x18")]("htmlEmbed",((n,s)=>{const r=t[Jr("0x15")],i=r[Jr("0x12")][Jr("0x11")];r.change((()=>{const t=function(t){const e=t[Jr("0x13")]();return e&&e.is(Jr("0xd"),Jr("0x14"))?t[Jr("0x13")]():null}(i);if(!t)return void n(null);const r=t[Jr("0x8")](Jr("0xa"))||"";void 0!==s&&s!==r&&(e[Jr("0x6")](t,{commandName:Jr("0x10"),commandParams:[s]}),o[Jr("0x13")]()[Jr("0x9")](Jr("0x1")).cancel())}))})),e[Jr("0x17")][Jr("0x5")]((t=>{const{data:e}=t;if(e&&Jr("0x10")==e.commandName){const t=Yo(n,Jr("0x7"));return{type:Jr("0xc"),content:Yo(n,Jr("0x16"),t)}}}))}}const Zr=["getContainedElement","registerElementLabel","imageStylePreApply","*Reset image width*","detach","side","forEach","discard","registerCustomCallback","registerDescriptionCallback","commands","value","uploadImage","editor","imageInline","toNext","isInlineImage","nodeBefore","hasAttribute","change","insertion","registerPostFixer","getSuggestionCallback","start","suggestion","enableCommand","differ","formatBlock","ELEMENT_INLINE_IMAGE","_descriptionFactory","imageBlock","ELEMENT_CAPTION","commandName","_findSuggestions","end","ImageEditing","filter","type","width","imageTextAlternative","ImageCaptionEditing","getAttribute","has","FORMAT_SIDE_IMAGE","find","schema","getNearestSelectionRange","isIntersecting","Users","convertInlineImageToBlock","isInContent","isCollapsed","alt","discardSuggestion","shouldConvertImageType","caption","formatInline","toPrevious","locale","_suggestionFactory","markInsertion","element","join","forceDefaultExecution","Block image to inline image","imageTypeBlock","previous","resizedWidth","ImageStyleEditing","plugins","ImageInlineEditing","getFirstRange","deletion","getCaptionFromImageModelElement","normalizedStyles","imageCaption","from","markInlineFormat","length","selection","Inline image to block image","createRangeOn","forward","next","get","resizeImage","subType","author","toggleImageCaption","name","newValue","imageStylePostApply","createRange","title","getSuggestions","markBlockFormat","document","getSuggestion","imageTypeInline","afterInit","findIndex","imageStyle","ImageBlockEditing","ImageCaptionUtils","isBefore","model","refresh","chain","format","markDeletion","getChangedMarkers","newRange","backward","isBlockImage","ImageUtils","*Set image text alternative:* %0","accept","*Remove image text alternative*","setImageNaturalSizeAttributes","getClosestSelectedImageElement","fromPosition","*Format:* %0","isEqual","toLowerCase"];var Yr,ti;Yr=Zr,ti=346,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1")](){const t=this[ei("0x27")];if(!t[ei("0x5f")][ei("0x44")](ei("0x3d")))return;const n=t.plugins[ei("0x6e")]("TrackChangesEditing"),o=t.plugins[ei("0x6e")](ei("0x10")),s={},r=t[ei("0x54")];if(n[ei("0x33")]("insertImage"),n[ei("0x37")].registerElementLabel(ei("0x38"),(t=>Yo(r,"ELEMENT_IMAGE",t))),n[ei("0x37")].registerElementLabel(ei("0x28"),(t=>Yo(r,ei("0x36"),t))),n[ei("0x37")][ei("0x1b")](ei("0x51"),(()=>Yo(r,ei("0x39")))),t[ei("0x5f")][ei("0x44")]("ImageUploadEditing")&&n[ei("0x33")](ei("0x26")),t.plugins.has(ei("0x4"))&&t[ei("0x5f")][ei("0x44")](ei("0x60"))&&(n[ei("0x33")](ei("0x0"),((e,s)=>{const r=o[ei("0x15")](t[ei("0x7")][ei("0x7a")].selection);t[ei("0x7")][ei("0x2d")]((()=>{n[ei("0x79")](r,{commandName:ei("0x0"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[ei("0x33")](ei("0x5b"),((e,s)=>{t[ei("0x7")].change((r=>{let x=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),a=r[ei("0x6b")](x);const c=i.LivePosition[ei("0x16")](a[ei("0x31")],ei("0x53")),l=i.LivePosition[ei("0x16")](a[ei("0x3c")],ei("0x29"));n[ei("0x59")]((()=>e(s))),x=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),a=r[ei("0x6b")](x);const u=r[ei("0x76")](c,l);c[ei("0x1e")](),l.detach(),n[ei("0x79")](x,{commandName:ei("0x0"),commandParams:[s]},[],ei("0x4b")),u.start[ei("0x6")](a.start)&&n[ei("0x56")](r[ei("0x76")](u.start,a[ei("0x31")]),ei("0x4b")),a[ei("0x3c")][ei("0x6")](u.end)&&n[ei("0x56")](r.createRange(a.end,u[ei("0x3c")]),ei("0x4b"))}))})),n[ei("0x55")][ei("0x22")](ei("0x35"),"convertInlineImageToBlock",ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")]("formatBlock",ei("0x4b"),ei("0x12"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x35"),"convertInlineImageToBlock",ei("0x21"),n._suggestionFactory[ei("0x30")](ei("0x35"),"",ei("0x12"))),n[ei("0x55")].registerCustomCallback(ei("0x2e"),ei("0x4b"),ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x2e"),ei("0x4b"),ei("0x21"),(([e])=>{const o=n[ei("0x55")][ei("0x30")](ei("0x2e"),"",ei("0x21"));let s=e[ei("0x31")],r=e[ei("0x3c")];const i=t[ei("0x7")][ei("0x47")][ei("0x48")](s,ei("0xe")),x=t[ei("0x7")][ei("0x47")][ei("0x48")](r,ei("0x6c"));i.isCollapsed&&(s=i[ei("0x31")]),x[ei("0x4d")]&&(r=x[ei("0x3c")]),o([t.model.createRange(s,r)])})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x4b"),ei("0x9"),c),n[ei("0x55")][ei("0x22")]("insertion","convertInlineImageToBlock",ei("0x9"),c)),t[ei("0x5f")][ei("0x44")](ei("0x42"))&&(n[ei("0x33")](ei("0x72"),((e,s)=>{const r=t[ei("0x5f")][ei("0x6e")](ei("0x5"));let i=o.getClosestSelectedImageElement(t.model[ei("0x7a")][ei("0x69")]),x=r[ei("0x63")](i);t.model[ei("0x2d")]((()=>{if(x)return void n[ei("0xb")](t[ei("0x7")][ei("0x6b")](x));const a=o[ei("0xf")](i);e(s),i=o[ei("0x15")](t[ei("0x7")].document[ei("0x69")]),x=r[ei("0x63")](i),n[ei("0x56")](t[ei("0x7")][ei("0x6b")](x),a?null:"imageCaption")}))})),n[ei("0x55")][ei("0x22")](ei("0x2e"),ei("0x65"),ei("0x9"),c)),t[ei("0x5f")][ei("0x44")](ei("0x5e"))){n[ei("0x33")](ei("0x3"),((s,r)=>{const i=t[ei("0x5f")][ei("0x6e")](ei("0x4a")).me,x=t[ei("0x24")][ei("0x6e")](ei("0x3"));let a=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]),c=t[ei("0x7")][ei("0x6b")](a),l=x[ei("0x25")];if(l==r[ei("0x25")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[ei("0x7")][ei("0x2d")]((()=>{if(n[ei("0x78")]()[ei("0x3e")]((t=>t[ei("0x4c")]&&i==t[ei("0x71")]&&(ei("0x35")==t[ei("0x3f")]||ei("0x52")==t[ei("0x3f")])&&(ei("0x1c")==t[ei("0x70")]||ei("0x75")==t[ei("0x70")])&&t[ei("0x61")]()[ei("0x18")](c)))[ei("0x20")]((t=>n[ei("0x4f")](t.head))),a=o.getClosestSelectedImageElement(t[ei("0x7")][ei("0x7a")][ei("0x69")]),c=t[ei("0x7")][ei("0x6b")](a),x[ei("0x8")](),t.commands[ei("0x6e")](ei("0x0"))[ei("0x8")](),t[ei("0x24")][ei("0x6e")](ei("0x5b")).refresh(),l=x[ei("0x25")],l!=r[ei("0x25")])return o[ei("0x2a")](a)&&x[ei("0x50")](r[ei("0x25")],a)?(s({...r,setImageSizes:!1}),a=o[ei("0x15")](t[ei("0x7")].document[ei("0x69")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],"imageStylePreApply")):void(o[ei("0xf")](a)?n[ei("0x79")](a,u,[],ei("0x75")):n[ei("0x67")](c,u,ei("0x75")))}))}));for(const e of t[ei("0x5f")][ei("0x6e")](ei("0x5e"))[ei("0x64")])s[e[ei("0x73")]]=e[ei("0x77")][ei("0x19")]();n[ei("0x55")][ei("0x22")](ei("0x35"),ei("0x1c"),"join",(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x35"),ei("0x75"),ei("0x58"),(()=>!1)),n[ei("0x55")][ei("0x22")](ei("0x52"),"imageStylePostApply",ei("0x58"),(()=>!1)),n._suggestionFactory[ei("0x22")](ei("0x35"),ei("0x1c"),ei("0x12"),(([t])=>{o[ei("0x14")](t[ei("0x1a")]())})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x1c"),ei("0x21"),((t,e)=>{n[ei("0x55")][ei("0x30")](ei("0x35"),"",ei("0x12"))(t,{commandName:e[ei("0x3a")],commandParams:e.commandReversedParams})})),n[ei("0x55")].registerCustomCallback(ei("0x35"),ei("0x1c"),ei("0x9"),c)}const x=[{type:ei("0x35"),subType:ei("0x1c")},{type:ei("0x2e"),subType:"imageCaption"},{type:ei("0x35"),subType:ei("0x4b")},{type:ei("0x2e"),subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[ei("0x2")]((({type:e,subType:n})=>t[ei("0x3f")]==e&&t.subType==n)),r=x.findIndex((({type:t,subType:n})=>e.type==t&&e.subType==n));if(s<0||r<0)return!1;const i=t[ei("0x61")](),a=e[ei("0x61")]();if((0==s||1==s)&&2==r&&i[ei("0x49")](a))return!0;if(2==s&&3==r){const t=n[ei("0x3b")](i,ei("0x2e"))[ei("0x3e")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t.subType));if(t[ei("0x68")]>1&&a[ei("0x3c")][ei("0x18")](i[ei("0x31")]))return!0;if(1==t.length&&(i[ei("0x31")][ei("0x18")](a[ei("0x3c")])||i[ei("0x3c")][ei("0x18")](a[ei("0x31")])))return!0}if(3==s&&3==r&&i.start.isBefore(a[ei("0x31")])){const t=i[ei("0x3c")].nodeAfter,e=a[ei("0x31")][ei("0x2b")];return o[ei("0xf")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x7a")][ei("0x2f")]((()=>{let e=!1;const s=Array[ei("0x66")](t[ei("0x7")][ei("0x7a")][ei("0x34")][ei("0xc")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n._splitMarkerName(t);if(ei("0x32")==s&&n.hasSuggestion(a)){if("formatBlock"==i&&(ei("0x1c")==x||ei("0x75")==x)){const t=n[ei("0x7b")](a);if(r[ei("0xd")]){const s=t[ei("0x61")]()[ei("0x1a")]();if(o[ei("0xf")](s))continue;n[ei("0x4f")](t),e=!0}}if(ei("0x2e")==i&&"imageCaption"==x&&!r.newRange){const t=n.getSuggestion(a);t[ei("0x6d")]&&t[ei("0x6d")][ei("0x4c")]&&(n[ei("0x4f")](t[ei("0x6d")]),e=!0)}}}return e})),t.plugins[ei("0x44")]("ImageResize")&&n[ei("0x33")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t.model.document[ei("0x69")]);r[ei("0x43")](ei("0x5d"))!=s[ei("0x40")]&&t[ei("0x7")][ei("0x2d")]((()=>{n[ei("0x79")](r,{commandName:ei("0x6f"),commandParams:[s]})}))})),t.plugins[ei("0x44")]("ImageTextAlternativeEditing")&&n[ei("0x33")]("imageTextAlternative",((e,s)=>{const r=o[ei("0x15")](t[ei("0x7")][ei("0x7a")][ei("0x69")]);(r[ei("0x2c")](ei("0x4e"))?r.getAttribute(ei("0x4e")):"")!=s[ei("0x74")]&&t[ei("0x7")][ei("0x2d")]((()=>{n.markBlockFormat(r,{commandName:ei("0x41"),commandParams:[s]})}))})),n[ei("0x37")][ei("0x23")]((t=>{if(x[ei("0x46")]((({type:e,subType:n})=>t[ei("0x3f")]==e&&t[ei("0x70")]==n)))return t[ei("0x5c")]?{}:void 0})),n[ei("0x37")][ei("0x23")]((t=>{if(ei("0x2e")==t[ei("0x3f")]||ei("0x62")==t[ei("0x3f")]){const e=t.getContainedElement();if(e&&e.is(ei("0x57"),"caption"))return{type:ei("0x2e")==t.type?"addObject":"removeObject",element:e,quantity:1}}})),n[ei("0x37")].registerDescriptionCallback((t=>ei("0x35")==t[ei("0x3f")]&&"convertInlineImageToBlock"==t[ei("0x70")]?{type:ei("0xa"),content:ei("0x6a")}:ei("0x35")==t[ei("0x3f")]&&"convertBlockImageToInline"==t[ei("0x70")]?{type:ei("0xa"),content:ei("0x5a")}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(ei("0x3")==e.commandName){const t=e.commandParams[0][ei("0x25")];return n=ei("0x1f")===t?Yo(r,ei("0x45")):s[t]||t,{type:"format",content:Yo(r,ei("0x17"),n)}}if(ei("0x41")==e[ei("0x3a")]){const t=e.commandParams[0][ei("0x74")];return t?{type:"format",content:Yo(r,ei("0x11"),'"'+t+'"')}:{type:"format",content:Yo(r,ei("0x13"))}}if("resizeImage"==e.commandName){const t=e.commandParams[0].width;return t?{type:ei("0xa"),content:Yo(r,"*Set image width:* %0",t)}:{type:ei("0xa"),content:Yo(r,ei("0x1d"))}}}var n}))}}const oi=["accept","subType","getContainedElement","has","registerCustomCallback","editor","author","registerDescriptionCallback","getAttribute","TrackChangesEditing","handleSuggestionDescription","getSuggestionCallback","document","handleReplaceImageCommand","discard","getSuggestions","formatBlock","afterInit","get","commandName","data","replaceImageSource","_suggestionFactory","ImageEditing","markBlockFormat","getSelectedElement","plugins","change","Users"];var si,ri;si=oi,ri=455,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{[ii("0x1a")](){if(!this[ii("0xe")].plugins[ii("0xc")](ii("0x3")))return;const t=this[ii("0xe")][ii("0x6")][ii("0x1b")](ii("0x12"));t.enableCommand("replaceImageSource",((t,e)=>this[ii("0x16")](t,e))),t[ii("0x2")][ii("0xd")](ii("0x19"),ii("0x1"),ii("0x9"),t[ii("0x2")][ii("0x14")](ii("0x19"),null,"discard")),t[ii("0x2")].registerCustomCallback(ii("0x19"),ii("0x1"),ii("0x17"),t._suggestionFactory[ii("0x14")](ii("0x19"),null,"accept")),t._descriptionFactory[ii("0x10")]((t=>this[ii("0x13")](t)))}[ii("0x16")](t,e){const n=this[ii("0xe")][ii("0x6")][ii("0x1b")]("TrackChangesEditing"),o=this[ii("0xe")].model[ii("0x15")].selection[ii("0x5")]();this[ii("0xe")].model[ii("0x7")]((()=>{let s=o[ii("0x11")]("src");const r=this[ii("0xe")][ii("0x6")][ii("0x1b")](ii("0x8")).me;for(const t of n[ii("0x18")]({skipNotAttached:!0})){const e=t[ii("0xb")]();if("replaceImageSource"===t[ii("0xa")]&&e===o){t[ii("0xf")]!==r&&t[ii("0x17")](),s=t[ii("0x0")].commandParams[0].source;break}}t(e),n[ii("0x4")](o,{commandName:ii("0x1"),commandParams:[{source:s}]},[],ii("0x1"))}))}[ii("0x13")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ii("0x1c")]){const t="*Format:* replace image URL";return{type:"format",content:Yo(this.editor.locale,t)}}}}const ai=["track_changes","value","TrackChangesEditing","importWord","_trackChangesExecuted","lowest","trackChanges","afterInit","plugins","Users","_handleImportedData","commands","execute","forEach","_trackChangesValueDuringImport","dataInsert","collaboration_features","editor","enableCommand","get"];var ci,li;ci=ai,li=436,function(t){for(;--t;)ci.push(ci.shift())}(++li);const ui=function(t,e){return ai[t-=0]};class di extends t.Plugin{constructor(t){super(t),this[ui("0x12")]=!1,this._trackChangesExecuted=!1}[ui("0xb")](){const t=this.editor,e=t[ui("0xf")][ui("0x3")]("importWord"),n=t[ui("0xf")][ui("0x3")](ui("0xa"));e&&(e.on("execute",((t,[,e])=>{this[ui("0x12")]=n[ui("0x5")],e[ui("0x0")][ui("0x4")]=!this[ui("0x12")]}),{priority:"high"}),this.listenTo(e,ui("0x13"),this[ui("0xe")].bind(this)),this.listenTo(e,ui("0x13"),(()=>{this[ui("0x8")]&&(n[ui("0x10")](),this[ui("0x8")]=!1)}),{priority:ui("0x9")}),t[ui("0xc")][ui("0x3")](ui("0x6"))[ui("0x2")](ui("0x7")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this[ui("0x1")][ui("0xf")][ui("0x3")]("trackChanges"),s=o.value;this._trackChangesValueDuringImport!==s&&(o[ui("0x10")](),this[ui("0x8")]=!0),n&&n[ui("0x11")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ui("0xc")].get(ui("0xd")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ui("0x1")][ui("0xc")][ui("0x3")]("TrackChangesEditing")._setSuggestionData(s)}))}}const gi=["checkAttribute","getItemLabel","TrackChangesEditing","outdent","has","schema","outdentBlock","format","IndentEditing","selection","indentBlock","from","enableCommand","model","plugins","registerDescriptionCallback","*Indent:* %0","getItems","blockIndent","commandName","change","editor","markBlockFormat","document","indent"];var mi,fi;mi=gi,fi=445,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{afterInit(){const t=this.editor,e=t.plugins.get(hi("0x7"));t[hi("0x13")][hi("0x9")](hi("0xd"))&&(e[hi("0x11")](hi("0x4")),e[hi("0x11")](hi("0x8")));const n=t.locale;if(t[hi("0x13")][hi("0x9")]("IndentBlock")){for(const n of[hi("0xf"),hi("0xb")])e[hi("0x11")](n,(()=>{const o=Array[hi("0x10")](this[hi("0x1")][hi("0x12")][hi("0x3")][hi("0xe")].getSelectedBlocks()).filter((t=>this[hi("0x1")].model[hi("0xa")][hi("0x5")](t,hi("0x17"))));t[hi("0x12")][hi("0x0")]((()=>{for(const t of o)e[hi("0x2")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:hi("0xf")})}))}));e._descriptionFactory[hi("0x14")]((t=>{const{data:o}=t;if(!o)return;if(hi("0xf")!=o[hi("0x18")]&&hi("0xb")!=o.commandName)return;const s=t[hi("0x16")]()[0],r=e._descriptionFactory[hi("0x6")](s);return hi("0xf")==o[hi("0x18")]?{type:hi("0xc"),content:Yo(n,hi("0x15"),r)}:hi("0xb")==o[hi("0x18")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var bi,Ei,_i=["requires","editor","get","enableCommand","TrackChangesEditing","init"];bi=_i,Ei=370,function(t){for(;--t;)bi.push(bi.shift())}(++Ei);var Ti=function(t,e){return _i[t-=0]};class Ci extends t.Plugin{static get[Ti("0x2")](){return[Js.Input]}[Ti("0x1")](){this[Ti("0x3")].plugins[Ti("0x4")](Ti("0x0"))[Ti("0x5")]("input")}}const yi=["LinkEditing","link","getFirstPosition","document","isCollapsed","TrackChangesEditing","get","format","selection","getFirstRange","editor","change","model","afterInit","enableCommand","*Set link:* %0","hasAttribute","unlink","*Remove link*","getAttribute","commandName","_descriptionFactory","has","plugins","markInlineFormat","linkHref"];var ki,Ai;ki=yi,Ai=289,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0xa")](){const t=this[vi("0x7")];if(!t[vi("0x14")][vi("0x13")](vi("0x17")))return;const e=t[vi("0x14")][vi("0x3")](vi("0x2"));e[vi("0xb")](vi("0x18"),((n,o)=>{const s=t.model.document[vi("0x5")];let r=[];if(s[vi("0x1")]){if(!s[vi("0xd")]("linkHref"))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0x19")](),"linkHref",s[vi("0x10")](vi("0x16")),t[vi("0x9")]);r=[e]}}else r=Array.from(s.getRanges());t[vi("0x9")][vi("0x8")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:vi("0x18"),commandParams:[o]})}))})),e[vi("0xb")](vi("0xe"),(()=>{const n=this[vi("0x7")][vi("0x9")],o=n[vi("0x0")].selection;n[vi("0x8")]((()=>{let n=[];n=o[vi("0x1")]?[(0,Js.findAttributeRange)(o[vi("0x19")](),vi("0x16"),o[vi("0x10")](vi("0x16")),t[vi("0x9")])]:Es("linkHref",o[vi("0x6")](),t[vi("0x9")]);for(const t of n)e[vi("0x15")](t,{commandName:vi("0xe"),commandParams:[]})}))})),e[vi("0x12")].registerDescriptionCallback((e=>{const{data:n}=e,o=t.locale;if(n){if("link"==n.commandName){const t=n.commandParams[0];return{type:vi("0x4"),content:Yo(o,vi("0xc"),'"'+t+'"')}}return vi("0xe")==n[vi("0x11")]?{type:vi("0x4"),content:Yo(o,vi("0xf"))}:void 0}}))}}const Ii=["isObject","end","previousSibling","before","todo","listType","commandName","paragraph","change","enableCommand","value","_descriptionFactory","todoListChecked","registerElementLabel","editor","*Indent:* %0","getSelectedBlocks","listIndent","commandParams","getAttribute","List","locale","filter","forceValue","numberedList","execute","*Check item*","*Uncheck item*","checkChild","createPositionAt","ListEditing","slice","listItem","get","ELEMENT_NUMBERED_LIST","numbered","commands","indentList","checkTodoList","_selectedElements","registerDescriptionCallback","*Change to:* %0","TrackChangesEditing","name","bulleted","selection","push","findIndex","TodoListEditing","has","plugins","add","from","model","ELEMENT_TODO_LIST","todoList","ELEMENT_LIST_ITEM","bulletedList","schema","outdentList","blockName","format","element","createRange","nextSibling","markBlockFormat"];var Si,Li;Si=Ii,Li=387,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class Mi extends t.Plugin{afterInit(){const t=this[Ni("0x17")],e=t[Ni("0x1e")];if(!t[Ni("0x3b")][Ni("0x3a")](Ni("0x27")))return;const n=t[Ni("0x3b")][Ni("0x2a")](Ni("0x33")),o=t[Ni("0x3b")].has(Ni("0x39"));function s(e){return()=>{const o=t.model.document[Ni("0x36")],s=t[Ni("0x2d")][Ni("0x2a")](e);if(s[Ni("0x13")])return void t[Ni("0x22")](Ni("0x10"),{});const r=e[Ni("0x28")](0,-4),i=function(t,e,n){let o=Array[Ni("0x3d")](t).filter((t=>{return e=t,(o=n)[Ni("0x25")](e.parent,Ni("0x29"))&&!o[Ni("0x9")](e);var e,o}));o=o[Ni("0x1f")]((t=>!t.is(Ni("0x5"),"listItem")||t[Ni("0x1c")](Ni("0xe"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x5"),Ni("0x29"))?s[Ni("0x3c")](wi(t)):s[Ni("0x3c")](t);return Array[Ni("0x3d")](s)}(o[Ni("0x19")](),r,t[Ni("0x3e")][Ni("0x1")]);t[Ni("0x3e")][Ni("0x11")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x13")]}],formatGroupId:Ni("0x3")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x3d")](t);const n=e[Ni("0x38")]((t=>Ni("0x29")!=t[Ni("0x34")]));return n>-1&&(e=e.slice(0,n)),e}(t.model.document[Ni("0x36")][Ni("0x19")]()),s=t[Ni("0x3e")][Ni("0x6")](t[Ni("0x3e")][Ni("0x26")](o[0],Ni("0xc")),t.model[Ni("0x26")](o[o.length-1],Ni("0xa")));t.model[Ni("0x11")]((()=>{n[Ni("0x8")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x7")];for(;t&&t.getAttribute("listIndent")>n[Ni("0x1c")](Ni("0x1a"));)e[Ni("0x3c")](t),t=t[Ni("0x7")]}return Array[Ni("0x3d")](e)}(o))}))}}n.enableCommand(Ni("0x21"),s(Ni("0x21"))),n[Ni("0x12")](Ni("0x0"),s("bulletedList")),o&&n[Ni("0x12")](Ni("0x40"),s(Ni("0x40"))),n[Ni("0x12")]("indentList",r("indentList")),n[Ni("0x12")]("outdentList",r(Ni("0x2"))),o&&n.enableCommand(Ni("0x2f"),(()=>{const e=t[Ni("0x2d")][Ni("0x2a")](Ni("0x2f")),o=Array[Ni("0x3d")](e[Ni("0x30")]);o[Ni("0x1f")]((t=>t[Ni("0x1c")](Ni("0x15"))!=e[Ni("0x13")])),t[Ni("0x3e")][Ni("0x11")]((()=>{for(const t of o)n[Ni("0x8")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ni("0x13")]}]})}))})),n._descriptionFactory[Ni("0x16")](Ni("0x29"),(t=>Yo(e,Ni("0x41"),t))),n[Ni("0x14")][Ni("0x31")]((t=>{const{data:n}=t;if(n){if(Ni("0x21")==n[Ni("0xf")]||Ni("0x0")==n.commandName||Ni("0x40")==n[Ni("0xf")])switch(n[Ni("0xf")].replace(Ni("0x1d"),"")){case Ni("0x35"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case Ni("0x2c"):return o(Yo(e,Ni("0x2b")));case Ni("0xd"):return o(Yo(e,Ni("0x3f")))}if(Ni("0x2e")==n[Ni("0xf")])return{type:Ni("0x4"),content:Yo(e,Ni("0x18"),Yo(e,"ELEMENT_LIST_ITEM"))};if(Ni("0x2")==n[Ni("0xf")])return{type:Ni("0x4"),content:Yo(e,"*Outdent:* %0",Yo(e,Ni("0x41")))};if("checkTodoList"==n[Ni("0xf")])return n[Ni("0x1b")][0][Ni("0x20")]?{type:Ni("0x4"),content:Yo(e,Ni("0x23"))}:{type:Ni("0x4"),content:Yo(e,Ni("0x24"))}}function o(t){return{type:Ni("0x4"),content:Yo(e,Ni("0x32"),t)}}}))}}function wi(t){const e=t[Ni("0x1c")](Ni("0x1a"));if(0==e)return t;let n=t;for(;t[Ni("0xb")]&&t.previousSibling.is("element","listItem");){const o=t[Ni("0xb")].getAttribute(Ni("0x1a"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[Ni("0xb")]}return n}function Oi(t){const e=[];if(t.is(Ni("0x5"),Ni("0x29"))&&t[Ni("0x1c")]("listIndent")>0){let n=t.nextSibling;for(;n&&Ni("0x29")==n[Ni("0x34")]&&n[Ni("0x1c")]("listIndent")==t.getAttribute(Ni("0x1a"));)e[Ni("0x37")](n),n=n[Ni("0x7")]}return e}const Fi=["numbered","push","listReversed","locale","forward","handleDescriptions","config","getSelectedBlocks","backward","*Format:* set order to regular","bind","createRange","list.properties","toUpperCase","_getSuggestionBlocks","handleListStyleCommand","*Format:* set order to reversed","getFirstPosition","styles","type","plugins","ELEMENT_","element","change","flat","markMultiRangeBlockFormat","format","get","listType","getLastPosition","listStyle","unshift","_getTranslationKeyForListStyle","ListUtils","reversed","listItem","enableCommand","getAttribute","map","TrackChangesEditing","ListPropertiesEditing","replace","editor","handleListStartCommand","parent","from","length","_getSuggestionBlocksForListStyle","createPositionAt","getListTypeFromListStyleType","model","startIndex","commandParams","listStart","before","selection","document","handleListReversedCommand","getSiblingNodes"];var Pi,Di;Pi=Fi,Di=332,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{afterInit(){if(!this.editor[Bi("0x2a")].has(Bi("0x3")))return;const t=this[Bi("0x5")][Bi("0x1c")].get(Bi("0x22")),e=this.editor.plugins[Bi("0x31")](Bi("0x2"));t[Bi("0x28")]&&e[Bi("0x3a")](Bi("0x34"),this[Bi("0x25")][Bi("0x20")](this)),t[Bi("0x38")]&&e[Bi("0x3a")](Bi("0x18"),this[Bi("0x14")][Bi("0x20")](this)),t[Bi("0xe")]&&e[Bi("0x3a")](Bi("0x10"),this[Bi("0x6")][Bi("0x20")](this)),e._descriptionFactory.registerDescriptionCallback(this[Bi("0x1b")][Bi("0x20")](this))}[Bi("0x25")](t,e={}){const n=this.editor.plugins.get(Bi("0x2")),o=this._getSuggestionBlocksForListStyle();this.editor[Bi("0xd")][Bi("0x2d")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:Bi("0x34"),commandParams:[{type:e[Bi("0x29")]}],formatGroupId:Bi("0x34")})}))}[Bi("0x14")](t,e={}){const n=this[Bi("0x5")][Bi("0x2a")][Bi("0x31")](Bi("0x2")),o=this[Bi("0x24")]((t=>t.is("element",Bi("0x39"))&&"numbered"===t[Bi("0x0")](Bi("0x32"))));if(o.length<1)return;const s=o[Bi("0x1")]((t=>this[Bi("0x5")][Bi("0xd")][Bi("0x21")](this[Bi("0x5")][Bi("0xd")][Bi("0xb")](t,"before"),this.editor[Bi("0xd")][Bi("0xb")](t,0))));this[Bi("0x5")][Bi("0xd")][Bi("0x2d")]((()=>{n[Bi("0x2f")](s,{commandName:Bi("0x18"),commandParams:[{reversed:e[Bi("0x38")]}],formatGroupId:Bi("0x18")})}))}[Bi("0x6")](t,e={}){const n=this.editor[Bi("0x2a")][Bi("0x31")](Bi("0x2")),o=this[Bi("0x24")]((t=>t.is(Bi("0x2c"),Bi("0x39"))&&Bi("0x16")===t.getAttribute("listType")));if(o[Bi("0x9")]<1)return;const s=o[Bi("0x1")]((t=>this.editor[Bi("0xd")][Bi("0x21")](this.editor[Bi("0xd")][Bi("0xb")](t,Bi("0x11")),this[Bi("0x5")].model[Bi("0xb")](t,0))));this[Bi("0x5")][Bi("0xd")].change((()=>{n[Bi("0x2f")](s,{commandName:Bi("0x10"),commandParams:[{startIndex:e[Bi("0xe")]}],formatGroupId:"listStart"})}))}[Bi("0x1b")](t){const e=this[Bi("0x5")][Bi("0x19")],{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o="*Change to:* %0",s={type:Bi("0x30"),content:Yo(e,o,Yo(e,this[Bi("0x36")](n.commandParams[0][Bi("0x29")])))};break;case Bi("0x18"):o=n[Bi("0xf")][0][Bi("0x38")]?Bi("0x26"):Bi("0x1f"),s={type:"format",content:Yo(e,o)};break;case Bi("0x10"):o="*Format:* set start index to %0",s={type:Bi("0x30"),content:Yo(e,o,n[Bi("0xf")][0][Bi("0xe")])}}return s}[Bi("0xa")](){var t,e,n,o;const s=this[Bi("0x5")][Bi("0x2a")][Bi("0x31")]("ListUtils");let r=Array[Bi("0x8")](this[Bi("0x5")].model[Bi("0x13")][Bi("0x12")][Bi("0x1d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x2c"),Bi("0x39")))&&r[Bi("0x35")](...s[Bi("0x15")](this[Bi("0x5")][Bi("0xd")][Bi("0x13")][Bi("0x12")][Bi("0x27")](),Bi("0x1e"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(Bi("0x2c"),Bi("0x39")))&&r[Bi("0x17")](...s[Bi("0x15")](this[Bi("0x5")][Bi("0xd")][Bi("0x13")].selection[Bi("0x33")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Bi("0xd")][Bi("0x13")][Bi("0x12")][Bi("0x27")]())||void 0===n?void 0:n[Bi("0x7")])||void 0===o?void 0:o.is(Bi("0x2c"),"listItem"))&&(r=r.filter((t=>t.is(Bi("0x2c"),Bi("0x39"))))),r}[Bi("0x24")](t){const e=this[Bi("0x5")].plugins[Bi("0x31")](Bi("0x37"));let n=Array.from(this.editor[Bi("0xd")][Bi("0x13")].selection[Bi("0x1d")]()).filter(t)[Bi("0x1")]((t=>{const n=this[Bi("0x5")][Bi("0xd")][Bi("0xb")](t,0);return[...e[Bi("0x15")](n,"backward"),...e[Bi("0x15")](n,Bi("0x1a"))]}))[Bi("0x2e")]();return n=[...new Set(n)],n}[Bi("0x36")](t){return Bi("0x2b")+this[Bi("0x5")].plugins.get("ListUtils")[Bi("0xc")](t)[Bi("0x23")]()+"_LIST_"+t[Bi("0x23")]()[Bi("0x4")](/-/g,"_")}}const Ui=["media","get","data","afterInit","stop","enableCommand","for","registerElementLabel","elementToElement","attribute:url:media","conversion","editor","div","high","TrackChangesEditing","plugins","has","createEmptyElement","MediaEmbedEditing","mediaEmbed","dataDowncast","ELEMENT_MEDIA","_descriptionFactory","showSuggestionHighlights"];var Gi,Hi;Gi=Ui,Hi=262,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const Wi=function(t,e){return Ui[t-=0]};class zi extends t.Plugin{[Wi("0x5")](){const t=this[Wi("0xd")];if(!t.plugins[Wi("0x12")](Wi("0x14")))return;const e=t[Wi("0x11")][Wi("0x3")](Wi("0x10")),n=t.locale;e[Wi("0x7")](Wi("0x15")),e[Wi("0x0")][Wi("0x9")](Wi("0x2"),(t=>Yo(n,Wi("0x17"),t))),t[Wi("0xc")][Wi("0x8")](Wi("0x16"))[Wi("0xa")]({model:Wi("0x2"),view:(t,{writer:e,options:n})=>{if(n[Wi("0x1")])return e[Wi("0x13")](Wi("0xe"))},converterPriority:Wi("0xf")}),t[Wi("0x4")].downcastDispatcher.on(Wi("0xb"),((t,e,n)=>{n.options[Wi("0x1")]&&t[Wi("0x6")]()}),{priority:Wi("0xf")})}}const Vi=["afterInit","editor","plugins","mention","MentionEditing"];var Ki,Xi;Ki=Vi,Xi=173,function(t){for(;--t;)Ki.push(Ki.shift())}(++Xi);const qi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[qi("0x2")](){const t=this[qi("0x3")];t[qi("0x4")].has(qi("0x1"))&&t.plugins.get("TrackChangesEditing").enableCommand(qi("0x0"))}}const Ji=["get","TrackChangesEditing","afterInit","pageBreak","locale","plugins","enableCommand","ELEMENT_PAGE_BREAK","editor","_descriptionFactory"];var Qi,Zi;Qi=Ji,Zi=406,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x6")](){const t=this[Yi("0x2")];if(!t.plugins.has("PageBreakEditing"))return;t[Yi("0x9")][Yi("0x4")](Yi("0x5"))[Yi("0x0")](Yi("0x7"));const e=t[Yi("0x9")].get(Yi("0x5")),n=t[Yi("0x8")];e[Yi("0x3")].registerElementLabel(Yi("0x7"),(t=>Yo(n,Yi("0x1"),t)))}}const ex=["writer","isTouching","mapper","addMarker:suggestion:insertion","checkChild","isLimit","consume","nodeAfter","TrackChangesEditing","selection","downcastDispatcher","plugins","insert","data","bindElementToMarker","ELEMENT_PARAGRAPH","editor","markerName","get","*Change to:* %0","getFirstRange","locale","enableCommand","createUIElement","end","isBlock","$text","model","insertParagraph","showSuggestionHighlights","markerRange","activeMarkers","parent","_descriptionFactory","schema","getSelectedBlocks","options","*Insert:* %0","change","isObject","blockName","highest","from","markBlockFormat","Paragraph","getItemLabel","filter","ck-suggestion-marker-split","paragraph","afterInit","consumable","start","insertion","editing","addClass","registerElementLabel","format","commandName"];var nx,ox;nx=ex,ox=225,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{[sx("0x38")](){const t=this.editor;if(!t[sx("0x12")].has(sx("0x33")))return;const e=t[sx("0x1c")],n=t.plugins[sx("0x19")](sx("0xf"));n[sx("0x28")][sx("0x4")](sx("0x37"),(t=>Yo(e,sx("0x16"),t))),n.enableCommand(sx("0x37"),((e,o={})=>{const s=t[sx("0x22")].document,r=o[sx("0x10")]||s[sx("0x10")],i=Array[sx("0x31")](r[sx("0x2a")]())[sx("0x35")]((t=>{return e=t,(n=this[sx("0x17")][sx("0x22")][sx("0x29")]).checkChild(e[sx("0x27")],"paragraph")&&!n[sx("0x2e")](e)&&sx("0x37")!=e.name;var e,n}));t.model[sx("0x2d")]((()=>{for(const t of i)n[sx("0x32")](t,{commandName:sx("0x37"),commandParams:[],formatGroupId:sx("0x2f")},_s(t))}))})),n[sx("0x28")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x37")==n[sx("0x6")])return{type:sx("0x5"),content:Yo(e,sx("0x1a"),Yo(e,sx("0x16")))}})),n[sx("0x1d")](sx("0x23")),t[sx("0x2")][sx("0x11")].on(sx("0xa"),ix(t),{priority:sx("0x30")}),t[sx("0x14")][sx("0x11")].on(sx("0xa"),((e,n,o)=>{o[sx("0x2b")][sx("0x24")]&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:sx("0x30")});const o=n[sx("0x28")];o.registerDescriptionCallback((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[sx("0x1b")]();if(!s[sx("0x8")](r)||!s.nodeAfter)return;const i=t.model[sx("0x29")],x=s[sx("0xe")];return i[sx("0x20")](x)&&!i[sx("0xc")](x)&&i[sx("0xb")](x,sx("0x21"))?{type:sx("0x1"),content:Yo(e,sx("0x2c"),o[sx("0x34")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x12")][sx("0x19")](sx("0xf")),i=o[sx("0x25")][sx("0x0")],x=o[sx("0x25")][sx("0x1f")],a=t[sx("0x22")].schema;if(!i.isTouching(x)||!i[sx("0xe")])return;const c=i[sx("0xe")];if(a[sx("0x20")](c)&&!a.isLimit(c)&&a[sx("0xb")](c,sx("0x21"))){if(!s[sx("0x39")][sx("0xd")](o[sx("0x25")],n.name))return;const t=s.writer[sx("0x1e")]("span",{class:sx("0x36")}),i=s[sx("0x9")].toViewPosition(x);e&&r[sx("0x26")].includes(o[sx("0x18")])&&s[sx("0x7")][sx("0x3")]("ck-suggestion-marker--active",t),s[sx("0x7")][sx("0x13")](i,t),s[sx("0x9")][sx("0x15")](t,o.markerName)}}}const xx=["afterInit","plugins","format","model","isFormatting","getAttributeProperties","TrackChangesEditing","schema","from","isCollapsed","has","locale","enableCommand","_descriptionFactory","*Remove all formatting*","get","registerDescriptionCallback","selection","RemoveFormatEditing","document","getRanges","removeFormat","getItems"];var ax,cx;ax=xx,cx=298,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{[lx("0x1")](){const t=this.editor;if(!t[lx("0x2")][lx("0xb")](lx("0x13")))return;const e=t[lx("0x2")][lx("0x10")](lx("0x7"));e[lx("0xd")](lx("0x16"),(n=>{const o=t[lx("0x4")][lx("0x14")][lx("0x12")];o[lx("0xa")]?n():t[lx("0x4")].change((()=>{const n=Array[lx("0x9")](o[lx("0x15")]());for(const o of n)for(const n of o[lx("0x0")]())dx(n,t[lx("0x4")][lx("0x8")])&&e.markInlineFormat(t[lx("0x4")].createRangeOn(n),{commandName:lx("0x16"),commandParams:[]})}))})),e[lx("0xe")][lx("0x11")]((e=>{const{data:n}=e;if(n&&lx("0x16")==n.commandName)return{type:lx("0x3"),content:Yo(t[lx("0xc")],lx("0xf"))}}))}}function dx(t,e){for(const[n]of t.getAttributes()){const t=e[lx("0x6")](n);if(t&&t[lx("0x5")])return!0}return!1}const gx=["has","discardSelectedSuggestions","get","plugins","RestrictedEditingModeEditing","trackChanges","acceptSelectedSuggestions","enableCommand","goToPreviousRestrictedEditingException","afterInit","acceptAllSuggestions","goToNextRestrictedEditingException","discardSuggestion","editor","TrackChangesEditing"];var mx,fx;mx=gx,fx=388,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xb")](){const t=this[hx("0x0")];if(!t[hx("0x5")][hx("0x2")](hx("0x6")))return;const e=t[hx("0x5")][hx("0x4")](hx("0x1"));e[hx("0x9")](hx("0xa")),e.enableCommand(hx("0xd"));const n=t[hx("0x5")].get(hx("0x6"));n[hx("0x9")](hx("0x7")),n[hx("0x9")]("acceptSuggestion"),n.enableCommand(hx("0xe")),n[hx("0x9")](hx("0xc")),n.enableCommand("discardAllSuggestions"),n.enableCommand(hx("0x8")),n[hx("0x9")](hx("0x3"))}}const bx=["softBreak","writer","editing","mapper","span","deletion","markerRange","getItems","toViewPosition","enableCommand","plugins","merge","activeMarkers","includes","options","element","test","shiftEnter","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","markerName","get","downcastDispatcher","createPositionBefore","high","locale","consumable","showSuggestionHighlights","ck-suggestion-marker-","ck-suggestion-marker--active","createUIElement","split","requires","insert","init"];var Ex,_x;Ex=bx,_x=439,function(t){for(;--t;)Ex.push(Ex.shift())}(++_x);const Tx=function(t,e){return bx[t-=0]};class Cx extends t.Plugin{static get[Tx("0xd")](){return[xr.ShiftEnter]}[Tx("0xf")](){const t=this.editor,e=t[Tx("0x1a")][Tx("0x2")]("TrackChangesEditing");e[Tx("0x19")](Tx("0x21")),t.editing.downcastDispatcher.on("addMarker:suggestion:insertion",yx(t),{priority:"high"}),t[Tx("0x12")][Tx("0x3")].on(Tx("0x0"),yx(t),{priority:Tx("0x5")}),t.data[Tx("0x3")].on("addMarker:suggestion",((e,n,o)=>{o[Tx("0x1e")][Tx("0x8")]&&yx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory.registerElementLabel(Tx("0x10"),(e=>Yo(t[Tx("0x6")],Tx("0x22"),e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Tx("0x1a")][Tx("0x2")]("TrackChangesEditing");if(!s[Tx("0x7")][Tx("0x20")](o[Tx("0x16")],n.name))return;const i=t.model;for(const t of o[Tx("0x16")][Tx("0x17")]()){if(!t.is(Tx("0x1f"),Tx("0x10")))continue;const n=Tx("0x15")==o.markerName.split(":")[1]?Tx("0x1b"):Tx("0xc"),x=s[Tx("0x11")][Tx("0xb")](Tx("0x14"),{class:Tx("0x9")+n}),a=s[Tx("0x13")][Tx("0x18")](i[Tx("0x4")](t));e&&r[Tx("0x1c")][Tx("0x1d")](o[Tx("0x1")])&&s[Tx("0x11")].addClass(Tx("0xa"),x),s.writer[Tx("0xe")](a,x),s[Tx("0x13")].bindElementToMarker(x,o[Tx("0x1")])}}}const kx=["from","markInlineFormat","restrictedEditingException","forceValue","getRanges","afterInit","document","FORMAT_RESTRICTED_DISABLED","has","format","_descriptionFactory","TrackChangesEditing","commands","enableCommand","locale","commandName","get","plugins","registerDescriptionCallback"];var Ax,vx;Ax=kx,vx=284,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0x6")](){const t=this.editor,e=t.model,n=t[Rx("0xf")];if(!t[Rx("0x12")][Rx("0x9")]("StandardEditingModeEditing"))return;const o=t.plugins.get(Rx("0xc")),s=Rx("0x3"),r=t[Rx("0xd")][Rx("0x11")](s);o[Rx("0xe")](s,((t,n={})=>{const i=e[Rx("0x7")].selection;if(i.isCollapsed)return void t(n);const x=void 0!==n[Rx("0x4")]?n[Rx("0x4")]:!r.value;e.change((()=>{const t=Array[Rx("0x1")](i[Rx("0x5")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x2")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xb")][Rx("0x0")]((t=>{const{data:e}=t;if(e&&e[Rx("0x10")]==s)return e.commandParams[0][Rx("0x4")]?{type:Rx("0xa"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:"format",content:Yo(n,Rx("0x8"))}}))}}const Sx=["getAncestors","forceValue","enabledStyles","value","registerDescriptionCallback","getItems","TrackChangesEditing","style","element","document","change","model","_getRangesWithClasses","isCollapsed","get","commandName","getDefinitionsForView","afterInit","toLowerCase","modelElements","style.definitions","name","*Remove format:* %0","isBlock","_getStyleDefinition","selection","find","style:","styleName","config","inline","locale","plugins","from","includes","every","classes","createRangeOn","format","Style","_descriptionFactory","markInlineFormat","enableCommand","StyleUtils","add","push","getRanges","editor","getAttribute","commandParams","normalizeConfig"];var Lx,Nx;Lx=Sx,Nx=441,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{[Mx("0x23")](){const t=this[Mx("0xe")];if(!t[Mx("0x32")].has(Mx("0x6")))return;const e=t.commands[Mx("0x20")]("style"),n=t[Mx("0x32")][Mx("0x20")](Mx("0x18")),o=t[Mx("0x31")],s=t[Mx("0x32")][Mx("0x20")]("DataSchema"),r=t.plugins[Mx("0x20")](Mx("0xa"))[Mx("0x11")](s,t[Mx("0x2f")][Mx("0x20")](Mx("0x26")));n[Mx("0x9")](Mx("0x19"),((o,{styleName:i})=>{const x=t[Mx("0x1d")][Mx("0x1b")][Mx("0x2b")],a=this[Mx("0x2a")](i,r);if(!a)return;if(!e[Mx("0x14")][Mx("0x1")](i))return;if(x[Mx("0x1f")]&&!a[Mx("0x29")])return void o({styleName:i});const c=!e[Mx("0x15")][Mx("0x1")](a[Mx("0x27")]);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Mx("0x12")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Mx("0x1")](o[Mx("0x27")])){n[Mx("0xb")](o);break}}return n}(x.getSelectedBlocks(),a[Mx("0x25")]);t[Mx("0x1d")].change((()=>{for(const t of e)n.markBlockFormat(t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}],formatGroupId:Mx("0x2d")+i})}))}else{let e=Array.from(x[Mx("0xd")]());if(!c){const n=Array[Mx("0x0")](s[Mx("0x22")](a[Mx("0x1a")],!1))[0].model,o=[];for(const s of e){const e=this._getRangesWithClasses(t.model,s,a[Mx("0x3")],n);o.push(...e)}e=o}t[Mx("0x1d")][Mx("0x1c")]((()=>{for(const t of e)n[Mx("0x8")](t,{commandName:Mx("0x19"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Mx("0x7")][Mx("0x16")]((t=>{const{data:e}=t;if(e&&"style"===e[Mx("0x21")])return e[Mx("0x10")][0][Mx("0x13")]?{type:Mx("0x5"),content:Yo(o,"*Format:* %0",e[Mx("0x10")][0][Mx("0x2e")][Mx("0x24")]())}:{type:"format",content:Yo(o,Mx("0x28"),e.commandParams[0][Mx("0x2e")][Mx("0x24")]())}}))}[Mx("0x2a")](t,e){let n=e.block.find((e=>e[Mx("0x27")]===t));return n||(n=e[Mx("0x30")][Mx("0x2c")]((e=>e[Mx("0x27")]===t))),n}[Mx("0x1e")](t,e,n,o){const s=[];for(const r of e[Mx("0x17")]()){const e=r[Mx("0xf")](o);e&&n[Mx("0x2")]((t=>e[Mx("0x3")][Mx("0x1")](t)))&&s[Mx("0xc")](t[Mx("0x4")](r))}return s}}const Ox=["ELEMENT_TABLE_COLUMN","colspan","*Insert:* %0","_getCoordsForCells","oldRange","getColumnIndexes","getItems","element","end","toLowerCase","getFirstRange","get","selectTableColumn","removeClass","position","minColumn","add","locale","insert","_descriptionFactory","isTouching","maxColumn","createPositionAt","from","_suggestionFactory","includes","registerPostFixer","removeTableRow","removeTableColumn","length","*Remove:* %0","document","discard","getCellLocation","item","ELEMENT_TABLE_COLUMN_WITH_TEXT","filter","editor","ELEMENT_TABLE_ROW","last","type","_tableSuggestions","nodeBefore","maxRow","isEqual","substr","rowspan","selectTableRow","plugins","name","markMultiRangeInsertion","change:data","order","ELEMENT_TABLE_ROW_WITH_TEXT","cell","_getSuggestionCoords","registerCustomCallback","every","getSuggestion","batch","nodeAfter","$textProxy","insertion","createRangeOn","ELEMENT_TABLE","left","forceValue","max","_setupColumnsRowsFixing","execute","getRanges","low","differ","getContainedElement","rootName","getRowIndexes","data","detach","getAttribute","showSuggestionHighlights","min","map","registerDescriptionCallback","mapper","writer","minRow","setSelection","tableColumn","MAX_SAFE_INTEGER","addMarker:suggestion","_tablePostFixingSubtypes","span","hasAttribute","push","options","enableCommand","commands","enqueueChange","tableCell","change","addRange","classes","some","first","fromRange","tableRow","insertTableColumnLeft","accept","has","highest","join","TableUtils","_acceptFormatSuggestionCallbackFactory","createTableWalker","getChanges","root","subType","insertTableRowAbove","refresh","$graveyard","start","createRangeIn","insertTableColumnRight","MIN_SAFE_INTEGER","insertTable","table","model","findAncestor","deletion","above","selection","ELEMENT_TABLE_WITH_TEXT","getSelectionAffectedTableCells"];var Fx,Px;Fx=Ox,Px=235,function(t){for(;--t;)Fx.push(Fx.shift())}(++Px);const Dx=function(t,e){return Ox[t-=0]};class Bx extends t.Plugin{constructor(t){super(t),this[Dx("0x79")]=[Dx("0x3"),Dx("0x76")],this[Dx("0x48")]=new Set}afterInit(){const t=this[Dx("0x44")],e=t[Dx("0x18")][Dx("0x3e")][Dx("0x1c")];if(!t[Dx("0x4f")][Dx("0x6")]("TableEditing"))return;const n=t[Dx("0x30")],o=t[Dx("0x4f")][Dx("0x2a")]("TrackChangesEditing"),s=t[Dx("0x4f")][Dx("0x2a")](Dx("0x9"));o[Dx("0x32")].registerElementLabel(Dx("0x17"),(t=>Yo(n,Dx("0x5f"),t))),this[Dx("0x63")](),o[Dx("0x7e")](Dx("0x16")),o[Dx("0x7e")](Dx("0x4e")),o.enableCommand(Dx("0x2b"));for(const n of[Dx("0xf"),"insertTableRowBelow"]){const r=t[Dx("0x7f")].get(n);o[Dx("0x7e")](n,(n=>{t[Dx("0x18")][Dx("0x82")]((t=>{n();const i=Dx("0x1b")===r[Dx("0x53")],x=s.getSelectionAffectedTableCells(e),a=s[Dx("0x6a")](x),c=i?a[Dx("0x1")]-1:a[Dx("0x46")]+1,l=x[0][Dx("0x19")]("table"),u=s[Dx("0xb")](l,{startRow:c,endRow:c}),d=Array[Dx("0x36")](u)[Dx("0x70")]((e=>t.createRangeOn(e[Dx("0x55")])));o[Dx("0x51")](d,Dx("0x3"))}))}))}for(const n of[Dx("0x4"),Dx("0x14")]){const r=t[Dx("0x7f")][Dx("0x2a")](n);o[Dx("0x7e")](n,(n=>{t[Dx("0x18")][Dx("0x82")]((t=>{n();const i=Dx("0x60")===r[Dx("0x53")],x=s[Dx("0x1e")](e),a=s[Dx("0x24")](x),c=i?a[Dx("0x1")]-1:a[Dx("0x46")]+1,l=x[0][Dx("0x19")](Dx("0x17")),u=s[Dx("0xb")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Dx("0x36")](u).map((e=>t[Dx("0x5e")](e[Dx("0x55")])));o[Dx("0x51")](d,Dx("0x76"))}))}))}for(const n of[Dx("0x3a"),Dx("0x3b")]){const r=n[Dx("0x4c")](11),i=r[Dx("0x28")](),x=i[Dx("0x4c")](0,3)+Dx("0x7a"),a=Dx("0x17")+r,c=Dx("0x6f")+r,l=Dx("0x62")+r;o[Dx("0x7e")](n,(()=>{t[Dx("0x18")].change((t=>{const r=s[Dx("0x1e")](e),u=r[0][Dx("0x19")]("table");let d;if(Dx("0x3a")==n){const t=s[Dx("0x6a")](r);d={startRow:t[Dx("0x1")],endRow:t[Dx("0x46")],includeAllSlots:!0}}else{const t=s.getColumnIndexes(r);d={startColumn:t[Dx("0x1")],endColumn:t[Dx("0x46")],includeAllSlots:!0}}const g=s[Dx("0xb")](u,d),m=Array[Dx("0x36")](g)[Dx("0x70")]((({cell:t})=>t)),f=jx(m[Dx("0x43")]((t=>t.hasAttribute(x)))),h=jx(m[Dx("0x43")]((t=>!t[Dx("0x7b")](x))))[Dx("0x70")]((e=>t[Dx("0x5e")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&("tableRow"==p[Dx("0xe")]||Dx("0x76")==p[Dx("0xe")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n.getAttribute(x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array.from(e[Dx("0x65")]())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t)));t.model[Dx("0x82")]((e=>{const s=e[Dx("0x5a")];n=n[Dx("0x43")]((t=>Dx("0x11")!=t[Dx("0xd")][Dx("0x69")])),e[Dx("0x75")](n),t.commands[Dx("0x2a")](Dx("0x3a")).refresh(),t[Dx("0x64")]("removeTableRow",{forceDefaultExecution:!0}),t[Dx("0x18")][Dx("0x80")]((()=>{t[Dx("0x18")][Dx("0x80")](s,(t=>{const e=o[Dx("0x43")]((t=>Dx("0x11")!=t.root[Dx("0x69")]));e[Dx("0x3c")]>0&&t[Dx("0x75")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x18")][Dx("0x82")]((o=>{const s=Array.from(e[Dx("0x65")]())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t))),r=[];for(const t of n)for(const e of t[Dx("0x25")]({shallow:!0}))r[Dx("0x7c")](e);for(const e of r)"$graveyard"!=e[Dx("0xd")].rootName&&(o[Dx("0x75")](o[Dx("0x35")](e,0)),t[Dx("0x7f")][Dx("0x2a")](Dx("0x3b"))[Dx("0x10")](),t[Dx("0x64")](Dx("0x3b"),{forceDefaultExecution:!0}));const x=s[Dx("0x43")]((t=>Dx("0x11")!=t.root.rootName));x[Dx("0x3c")]>0&&o[Dx("0x75")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Dx("0x58")]((e=>t.some((t=>t[Dx("0x27")][Dx("0x4b")](e[Dx("0x12")])||e[Dx("0x27")].isEqual(t[Dx("0x12")])))))}function l(t,e){return t[Dx("0x0")]((t=>e[Dx("0x0")]((e=>t[Dx("0x27")][Dx("0x33")](e[Dx("0x12")])))))}t[Dx("0x6b")].downcastDispatcher.on(Dx("0x78"),((t,e,n)=>{if(!n[Dx("0x7d")][Dx("0x6e")])return;const o=e[Dx("0x41")];if(!o)return;const s=n[Dx("0x72")].toViewElement(o);function r(t){return Array.isArray(t)?t:[t]}s&&Dx("0x81")===o[Dx("0x50")]&&(0,x.setHighlightHandling)(s,n[Dx("0x73")],((t,e,n)=>n.addClass(r(e.classes),t)),((t,e,n)=>n[Dx("0x2c")](r(e[Dx("0x84")]),t)))}),{priority:Dx("0x7")}),o[Dx("0x32")].registerDescriptionCallback((t=>{if(Dx("0x5d")!=t[Dx("0x47")]&&Dx("0x1a")!=t[Dx("0x47")])return;const e=t[Dx("0x68")]();if(null!=e&&e.is(Dx("0x26"),Dx("0x17"))){if(Dx("0x5d")==t[Dx("0x47")]){const e=t[Dx("0x25")]()[Dx("0x43")]((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t.data));if(e[Dx("0x3c")])return{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x1d"),'"'+e[Dx("0x8")](" ")+'"'))}}if(Dx("0x1a")==t[Dx("0x47")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t[Dx("0x6b")]));if(e.length)return{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x1d"),'"'+e[Dx("0x8")](" ")+'"'))}}}})),o[Dx("0x32")][Dx("0x71")]((t=>{if("tableRow"==t[Dx("0xe")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t.data)),o=this._getSuggestionCoords(t),s=o[Dx("0x4a")]-o[Dx("0x74")]+1;if(Dx("0x5d")==t.type)return e[Dx("0x3c")]?{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:"insertion",content:Yo(n,Dx("0x21"),Yo(n,Dx("0x45"),s))};if(Dx("0x1a")==t[Dx("0x47")])return e[Dx("0x3c")]?{type:"deletion",content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x54"),[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,"ELEMENT_TABLE_ROW",s))}}if(Dx("0x76")==t[Dx("0xe")]){const e=t[Dx("0x25")]().filter((t=>t.is(Dx("0x5c"))))[Dx("0x70")]((t=>t[Dx("0x6b")])),o=this[Dx("0x56")](t),s=o[Dx("0x34")]-o[Dx("0x2e")]+1;if("insertion"==t.type)return e[Dx("0x3c")]?{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x42"),[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x5d"),content:Yo(n,Dx("0x21"),Yo(n,Dx("0x1f"),s))};if("deletion"==t[Dx("0x47")])return e[Dx("0x3c")]?{type:"deletion",content:Yo(n,"*Remove:* %0",Yo(n,"ELEMENT_TABLE_COLUMN_WITH_TEXT",[s,'"'+e[Dx("0x8")](" ")+'"']))}:{type:Dx("0x1a"),content:Yo(n,Dx("0x3d"),Yo(n,Dx("0x1f"),s))}}})),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x3"),Dx("0x3f"),r),o._suggestionFactory[Dx("0x57")](Dx("0x1a"),Dx("0x3"),Dx("0x5"),r),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x76"),Dx("0x3f"),a),o._suggestionFactory[Dx("0x57")](Dx("0x1a"),Dx("0x76"),Dx("0x5"),a),o[Dx("0x37")][Dx("0x57")](Dx("0x5d"),Dx("0x76"),Dx("0x8"),c),o[Dx("0x37")][Dx("0x57")]("deletion",Dx("0x76"),Dx("0x8"),c),o[Dx("0x37")].registerCustomCallback(Dx("0x5d"),"tableRow",Dx("0x8"),l),o[Dx("0x37")][Dx("0x57")]("deletion","tableRow",Dx("0x8"),l)}[Dx("0xa")](){const t=this[Dx("0x44")],e=t[Dx("0x18")][Dx("0x3e")][Dx("0x1c")];return(n,o)=>{t[Dx("0x18")][Dx("0x82")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0].end[Dx("0x49")];x&&x[0]&&!1===x[0][Dx("0x61")]&&(a=n[0][Dx("0x12")][Dx("0x5b")]);const c=s[Dx("0x13")](a);if(Dx("0x11")==c.root[Dx("0x69")])return;const l=Array.from(e.getRanges())[Dx("0x70")]((t=>i.LiveRange[Dx("0x2")](t)));s[Dx("0x75")](c),t[Dx("0x7f")][Dx("0x2a")](r)[Dx("0x10")](),x[Dx("0x7c")]({forceDefaultExecution:!0}),t[Dx("0x64")](r,...x);const u=l[Dx("0x43")]((t=>Dx("0x11")!=t[Dx("0xd")][Dx("0x69")]));u[Dx("0x3c")]>0&&s.setSelection(u);for(const t of l)t[Dx("0x6c")]()}))}}_getCoordsForCells(t){const e=this[Dx("0x44")][Dx("0x4f")][Dx("0x2a")](Dx("0x9"));let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x15")],s=Number[Dx("0x77")],r=Number[Dx("0x15")];for(const i of t){if(Dx("0x11")==i[Dx("0xd")][Dx("0x69")])continue;const{row:t,column:x}=e[Dx("0x40")](i),a=i[Dx("0x7b")]("rowspan")?i[Dx("0x6d")](Dx("0x4d"))-1:0,c=i[Dx("0x7b")](Dx("0x20"))?i[Dx("0x6d")](Dx("0x20"))-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}}[Dx("0x63")](){const t=this[Dx("0x44")],e=t[Dx("0x4f")][Dx("0x2a")]("TrackChangesEditing"),n=t[Dx("0x4f")][Dx("0x2a")](Dx("0x9"));t.model[Dx("0x3e")].on(Dx("0x52"),(()=>{const n=Array.from(t[Dx("0x18")][Dx("0x3e")][Dx("0x67")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Dx("0x23")])continue;const i=e[Dx("0x59")](s);this[Dx("0x79")][Dx("0x38")](r)&&this[Dx("0x48")][Dx("0x2f")](i)}}),{priority:Dx("0x66")});const o=(t,e)=>{let o=!1;const s=e[Dx("0x5e")](t),r=t[Dx("0x19")](Dx("0x17")),i=n[Dx("0x40")](t);for(const e of this._tableSuggestions){const n=e.subType,x=n.startsWith("tablePaste"),a=n[Dx("0x4c")](x?10:5),c=a[Dx("0x28")](),l=c[Dx("0x4c")](0,3)+Dx("0x7a"),u="min"+a,d="max"+a;if(!e.isInContent)continue;if(r!=e[Dx("0x29")]().start.findAncestor(Dx("0x17")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0x7b")](l)?t[Dx("0x6d")](l)-1:0,m=this[Dx("0x56")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x83")](s),o=!0)}return o};t[Dx("0x18")][Dx("0x3e")][Dx("0x39")]((e=>{let n=!1;for(const s of t[Dx("0x18")][Dx("0x3e")][Dx("0x67")][Dx("0xc")]())if(Dx("0x31")==s[Dx("0x47")])if(Dx("0x3")==s.name)for(const t of s[Dx("0x2d")][Dx("0x5b")].getChildren())n=n||o(t,e);else"tableCell"==s[Dx("0x50")]&&(n=n||o(s.position.nodeAfter,e));return n}))}[Dx("0x56")](t){return this[Dx("0x22")](t[Dx("0x65")]()[Dx("0x70")]((t=>t[Dx("0x12")][Dx("0x5b")])))}}function jx(t){return Array[Dx("0x36")](new Set(t).values())}const Ux=["map","low","_tablePostFixingSubtypes","direction","subType","_areSelectedCellsMergable","TableEditing","author","formatBlock","_descriptionFactory","mergeTableCellUp","mergeTableCellRight","_areMergableCells","getSuggestions","registerCustomCallback","$graveyard","containsRange","commandName","type","editor","mergeTableCellLeft","return","getSelectionAffectedTableCells","filter","enableCommand","from","selection","plugins","detach","markBlockFormat","stop","root","_acceptFormatSuggestionCallbackFactory","element","locale","mergeTableCellDown","setSelection","tableCell","refresh","value","deletion","*Split cell:* horizontally","getCellLocation","get","has","insertion","getRanges","table","size","createRangeOn","getAncestors","createTableWalker","length","add","TrackChangesEditing","format","rootName","fromRange","findAncestor","commands","mergeTableCells","execute","TableUtils","markMultiRangeBlockFormat","splitTableCellHorizontally","getFirstPosition","model","_suggestionFactory","push","_isForcedDefaultExecutionBlock","accept","registerDescriptionCallback","cell","set:isEnabled","trackChanges","isInContent","splitTableCellVertically","requires","change","document","highest","isEnabled","*Merge cells*"];var Gx,Hx;Gx=Ux,Hx=434,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const Wx=function(t,e){return Ux[t-=0]};class zx extends t.Plugin{static get[Wx("0x3a")](){return[Bx]}afterInit(){const t=this[Wx("0x0")],e=t[Wx("0x2f")][Wx("0x3c")][Wx("0x7")],n=t[Wx("0xf")];if(!t[Wx("0x8")][Wx("0x19")](Wx("0x46")))return;const o=t.plugins[Wx("0x18")](Wx("0x23")),s=t[Wx("0x8")][Wx("0x18")](Wx("0x2b")),r=t[Wx("0x8")].get(Bx);r[Wx("0x42")][Wx("0x31")]("mergeTableCells"),o[Wx("0x5")](Wx("0x29"),(()=>{const e=s[Wx("0x3")](t[Wx("0x2f")][Wx("0x3c")][Wx("0x7")]);t[Wx("0x2f")][Wx("0x3b")]((()=>{o[Wx("0x2c")](e,{commandName:"mergeTableCells",commandParams:[]},[],Wx("0x29"))}))})),t[Wx("0x28")][Wx("0x18")](Wx("0x29")).on(Wx("0x2a"),((e,n)=>{t[Wx("0x28")].get(Wx("0x37"))[Wx("0x14")]&&(n[Wx("0x21")]>0&&n[n[Wx("0x21")]-1]&&n[n[Wx("0x21")]-1].forceDefaultExecution||o[Wx("0x32")]||this[Wx("0x45")]()||e[Wx("0xb")]())}),{priority:Wx("0x3d")});for(const e of["mergeTableCellUp",Wx("0x4b"),Wx("0x10"),Wx("0x1")]){const n=t[Wx("0x28")][Wx("0x18")](e);o[Wx("0x5")](e,(()=>{const e=t[Wx("0x2f")][Wx("0x3c")][Wx("0x7")].getFirstPosition()[Wx("0x1f")]().find((t=>t.is(Wx("0xe"),Wx("0x12")))),s=n[Wx("0x14")];t[Wx("0x2f")][Wx("0x3b")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Wx("0x29"),commandParams:[]},[],Wx("0x29"))}))}))}for(const e of["splitTableCellVertically",Wx("0x2d")]){const n=t.commands.get(e);o[Wx("0x5")](e,(()=>{const r=s[Wx("0x3")](t[Wx("0x2f")][Wx("0x3c")][Wx("0x7")])[0],i=r[Wx("0x27")](Wx("0x1c")),{column:x,row:a}=s[Wx("0x17")](r);let c=[];if("horizontally"==n[Wx("0x43")]){const t=s[Wx("0x20")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Wx("0x6")](t)[Wx("0x40")]((t=>t[Wx("0x35")]))}else{const t=s.createTableWalker(i,{column:x,includeAllSlots:!0});c=Array[Wx("0x6")](t).map((t=>t.cell))}t[Wx("0x2f")][Wx("0x3b")]((t=>{o[Wx("0xa")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Wx("0x49")][Wx("0x34")]((t=>{const{data:e}=t;if(e)return Wx("0x29")==e[Wx("0x51")]?{type:Wx("0x24"),content:Yo(n,Wx("0x3f"))}:void 0})),o[Wx("0x49")][Wx("0x34")]((t=>{const{data:e}=t;if(e)return Wx("0x39")==e[Wx("0x51")]?{type:Wx("0x24"),content:Yo(n,"*Split cell:* vertically")}:Wx("0x2d")==e[Wx("0x51")]?{type:Wx("0x24"),content:Yo(n,Wx("0x16"))}:void 0}));const x=r[Wx("0xd")]();for(const t of[Wx("0x4a"),Wx("0x4b"),Wx("0x10"),"mergeTableCellLeft"])o[Wx("0x30")][Wx("0x4e")](Wx("0x48"),t,"accept",x);for(const t of[Wx("0x39"),Wx("0x2d")])o[Wx("0x30")].registerCustomCallback("formatBlock",t,Wx("0x33"),x);o._suggestionFactory[Wx("0x4e")](Wx("0x48"),Wx("0x29"),Wx("0x33"),(n=>{t[Wx("0x2f")][Wx("0x3b")]((o=>{const s=Array[Wx("0x6")](e[Wx("0x1b")]()).map((t=>i.LiveRange[Wx("0x26")](t)));o[Wx("0x11")](n),t[Wx("0x28")][Wx("0x18")](Wx("0x29"))[Wx("0x13")](),t[Wx("0x2a")](Wx("0x29"),{forceDefaultExecution:!0});const r=s[Wx("0x4")]((t=>Wx("0x4f")!=t[Wx("0xc")][Wx("0x25")]));r.length>0&&o[Wx("0x11")](r);for(const t of s)t[Wx("0x9")]()}))}));for(const e of["mergeTableCellUp",Wx("0x10"),Wx("0x1"),Wx("0x4b")]){const n=t[Wx("0x28")][Wx("0x18")](e);n.on(Wx("0x36"),((e,o,s)=>{if(s){const o=t[Wx("0x2f")][Wx("0x3c")][Wx("0x7")][Wx("0x2e")]()[Wx("0x1f")]().find((t=>t.is(Wx("0xe"),"tableCell")));this._areMergableCells(n.value,o)||(e[Wx("0x2")]=!1,e[Wx("0xb")]())}}),{priority:Wx("0x41")})}}[Wx("0x45")](){const t=this[Wx("0x0")][Wx("0x28")][Wx("0x18")](Wx("0x29")),e=this[Wx("0x0")][Wx("0x8")].get(Wx("0x2b"));if(!t[Wx("0x3e")])return!1;const n=e[Wx("0x3")](this.editor[Wx("0x2f")][Wx("0x3c")][Wx("0x7")]);for(const t of n)for(const e of n)if(t!=e&&!this[Wx("0x4c")](t,e))return!1;return!0}[Wx("0x4c")](t,e){const n=this[Wx("0x0")][Wx("0x8")][Wx("0x18")]("TrackChangesEditing"),o=this[Wx("0x0")][Wx("0x2f")].createRangeOn(t),s=this.editor[Wx("0x2f")][Wx("0x1e")](e),r=new Set,i=new Set;for(const t of n[Wx("0x4d")]())if((Wx("0x1a")==t[Wx("0x52")]||Wx("0x15")==t.type||Wx("0x29")==t[Wx("0x44")])&&t[Wx("0x38")])for(const e of t[Wx("0x1b")]())e[Wx("0x50")](o,!0)&&r[Wx("0x22")](t[Wx("0x52")]+":"+t[Wx("0x47")].id),e[Wx("0x50")](s,!0)&&i[Wx("0x22")](t.type+":"+t.author.id);if(r.size!=i[Wx("0x1d")])return!1;for(const t of r)if(!i[Wx("0x19")](t))return!1;return!0}}const Vx=["getAttribute","addMarker:suggestion","nodeAfter","_splitMarkerName","headingColumns","_suggestionFactory","afterInit","createTableWalker","FORMAT_HEADER_ROW","markerName","removeAttribute","downcastDispatcher","model","highest","TrackChangesEditing","item","getSelectionAffectedTableCells","document","TableUtils","childCount","getCellLocation","name","stop","activeMarkers","addClass","cell","removeMarker:suggestion","ck-suggestion-marker-","table","selection","ck-suggestion-marker--active","getChild","toViewElement","mapper","accept","nodeBefore","formatBlock","bindElementToMarker","_descriptionFactory","has","_acceptFormatSuggestionCallbackFactory","createPositionAfter","value","get","getRowIndexes","data","FORMAT_REGULAR_COLUMN","registerCustomCallback","commands","getSuggestion","editor","headingRows","change","forceValue","markBlockFormat","getColumnIndexes","options","commandName","removeClass","FORMAT_HEADER_COLUMN","index","setAttribute","parent","registerDescriptionCallback","unbindElementFromMarkerName","plugins","findAncestor","markerRange","commandParams","enableCommand","FORMAT_REGULAR_ROW","setTableRowHeader","createRange","consume","writer","setTableColumnHeader","createPositionBefore","*Format:* %0"];var Kx,Xx;Kx=Vx,Xx=382,function(t){for(;--t;)Kx.push(Kx.shift())}(++Xx);const qx=function(t,e){return Vx[t-=0]};class $x extends t.Plugin{static get requires(){return[Bx]}[qx("0xe")](){const t=this[qx("0x3a")];if(!t[qx("0x49")][qx("0x2f")]("TableEditing"))return;const e=t.locale,n=t[qx("0x49")][qx("0x33")](qx("0x16")),o=t[qx("0x49")][qx("0x33")](qx("0x1a")),s=t[qx("0x49")][qx("0x33")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[qx("0xb")](r[qx("0x11")]),c=n[qx("0x39")](a);if(!c.data||qx("0x5")!=c[qx("0x35")][qx("0x41")])return;if(r[qx("0x17")])return void s[qx("0x1e")]();if(!i.consumable[qx("0x3")](r[qx("0x4b")],s[qx("0x1d")]))return;const l=r[qx("0x4b")].start[qx("0xa")],u=r[qx("0x4b")].end[qx("0x2b")],d=l[qx("0x46")][qx("0x46")],{column:g}=o[qx("0x1c")](l),{column:m}=o[qx("0x1c")](u);for(let s=g;s<=m;s++){const c=o[qx("0xf")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[qx("0x21")],c=i[qx("0x29")][qx("0x28")](s);i.writer[qx("0x20")](qx("0x23")+x,c),e&&i[qx("0x4")][qx("0x45")]("data-suggestion",a,c),i[qx("0x29")][qx("0x2d")](c,r[qx("0x11")]),t&&(n[qx("0x1f")].includes(r[qx("0x11")])?i[qx("0x4")][qx("0x20")](qx("0x26"),c):i.writer.removeClass("ck-suggestion-marker--active",c))}}}}n.enableCommand(qx("0x1"),((e,s)=>{const r=o.getSelectionAffectedTableCells(t[qx("0x14")][qx("0x19")][qx("0x25")]),i=o[qx("0x34")](r),x=r[0][qx("0x4a")]("table"),a=x[qx("0x8")](qx("0x3b"))||0,c=s&&null!==s[qx("0x3d")]?s.forceValue:!t.commands[qx("0x33")]("setTableRowHeader")[qx("0x32")],l=c?i.last:i.first,u=x[qx("0x27")](l);let d;if(c){const e=x.getChild(a);if(u[qx("0x44")]<e.index)return;d=t[qx("0x14")][qx("0x2")](t.model[qx("0x6")](e[qx("0x27")](0)),t[qx("0x14")][qx("0x31")](u[qx("0x27")](u[qx("0x1b")]-1)))}else{const e=x[qx("0x27")](a-1);if(!e)return;d=t[qx("0x14")][qx("0x2")](t[qx("0x14")][qx("0x6")](u[qx("0x27")](0)),t[qx("0x14")][qx("0x31")](e[qx("0x27")](e[qx("0x1b")]-1)))}t[qx("0x14")][qx("0x3c")]((()=>{n[qx("0x3e")](d,{commandName:qx("0x1"),commandParams:[{forceValue:c}]},[],qx("0x1"))}))})),n[qx("0x4d")](qx("0x5"),((e,o)=>{const s=t[qx("0x49")][qx("0x33")](qx("0x1a")),r=s[qx("0x18")](t[qx("0x14")][qx("0x19")][qx("0x25")]),i=s[qx("0x3f")](r),x=r[0][qx("0x4a")](qx("0x24")),a=x[qx("0x8")](qx("0xc"))||0,c=o&&null!==o.forceValue?o.forceValue:!t[qx("0x38")][qx("0x33")]("setTableColumnHeader")[qx("0x32")];let l;const u=x.getChild(0),d=c?i.last:i.first,g=s[qx("0xf")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array.from(g)[0][qx("0x21")];if(c){const e=u[qx("0x27")](a);if(m.isBefore(e))return;l=t[qx("0x14")][qx("0x2")](t.model[qx("0x6")](e),t[qx("0x14")][qx("0x31")](m))}else{const e=u[qx("0x27")](a-1);if(!e)return;l=t[qx("0x14")][qx("0x2")](t.model[qx("0x6")](m),t[qx("0x14")][qx("0x31")](e))}t[qx("0x14")].change((()=>{n[qx("0x3e")](l,{commandName:qx("0x5"),commandParams:[{forceValue:c}]},[],"setTableColumnHeader")}))})),t.editing[qx("0x13")].on(qx("0x9"),r(),{priority:qx("0x15")}),t[qx("0x35")].downcastDispatcher.on(qx("0x9"),((t,e,n)=>{n[qx("0x40")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing.downcastDispatcher.on(qx("0x22"),((t,e,o)=>{const{type:s,id:r}=n[qx("0xb")](e[qx("0x11")]),i=n[qx("0x39")](r);if(!i.data||qx("0x5")!=i[qx("0x35")][qx("0x41")])return;const x=o[qx("0x29")].markerNameToElements(e[qx("0x11")]);if(x)for(const t of x)o.writer[qx("0x42")](qx("0x23")+s,t),o[qx("0x4")][qx("0x42")](qx("0x26"),t),o.writer[qx("0x12")]("data-suggestion",t),o[qx("0x29")][qx("0x48")](t,e[qx("0x11")])}),{priority:qx("0x15")}),n[qx("0x2e")][qx("0x47")]((t=>{const{data:n}=t;if(n){if(qx("0x1")==n[qx("0x41")]){const t=n[qx("0x4c")][0][qx("0x3d")];return o(Yo(e,qx(t?"0x10":"0x0")))}if(qx("0x5")==n[qx("0x41")]){const t=n[qx("0x4c")][0].forceValue;return o(Yo(e,qx(t?"0x43":"0x36")))}}function o(t){return{type:"format",content:Yo(e,qx("0x7"),t)}}}));const i=s[qx("0x30")]();n[qx("0xd")][qx("0x37")](qx("0x2c"),qx("0x1"),qx("0x2a"),i),n._suggestionFactory[qx("0x37")]("formatBlock","setTableColumnHeader",qx("0x2a"),i)}}const Jx=["*Replace table cells*","set","getRanges","nodeAfter","insertion","forceDefaultExecution","has","length","cell","containsRange","deletion","getRowIndexes","getColumns","getChildren","batch","options","isEqual","insertRows","for","getSuggestions","end","getContainedElement","insert","findAncestor","documentSelection","position","removeRows","isEmpty","selection","nextSibling","createRangeIn","editing","some","getShiftedBy","getSuggestion","_replaceTableSlotCell","find","element","reduce","markMultiRangeBlockFormat","paragraph","getAttributes","endColumn","every","activeMarkers","listenTo","add","row","keys","dataDowncast","join","insertColumns","getChild","ck-suggestion-marker","cells","_splitMarkerName","document","change","tablePasteChainId","trackChanges","removeMarkers","tableCellVerticalAlignment","plugins","remove","return","accept","high","previous","markerName","showSuggestionHighlights","subType","markMultiRangeInsertion","content","table","markerAttributes","newRange","setAttributes","TableClipboard","fromEntries","tablePaste","columnInsertionIndexes","discard","registerDescriptionCallback","_createdBatches","createPositionBefore","isInContent","suggestion:formatBlock:tablePasteCell","getChangedMarkers","rowInsertionIndexes","tableCellSuggestion","formatBlock","suggestion-td","_suggestionFactory","getRange","tableCellBorderColor","registerPostFixer","view","updateMarker","markerToHighlight","push","name","hasSuggestion","createTableWalker","last","unwrap","conversion","insertContent","createRangeOn","getSelectionAffectedTableCells","locale","getItems","_isForcedDefaultExecutionBlock","attributes","column","model","insertionRanges","_tablePostFixingSubtypes","start","first","suggestion","register","map","differ","tablePasteCell","_getCoordsForCells","tablePasteRow","rows","tableCellBorderWidth","author","fill","removeMarker","columnInsertionRanges","commands","tableCell","createElement","entries","getMarkers","from","editingDowncast","removeColumns","tablePasteColumn","schema","low","move","previousSibling","tableCellBorderStyle","Users","filter","get","requires","setAttribute","ck-suggestion-marker-insertion","includes","registerCustomCallback","startsWith","ck-suggestion-marker--active","getRows","createRange","TrackChangesEditing"];var Qx,Zx;Qx=Jx,Zx=420,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x19"),Yx("0x97"),Yx("0x2b"),"tableCellHorizontalAlignment",Yx("0x76"),"tableCellBackgroundColor","tableCellPadding"],ea=Object.fromEntries(ta[Yx("0x13")]((t=>[t,null])));class na extends t.Plugin{static get[Yx("0x2f")](){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins[Yx("0x3f")](Yx("0x86")))return;const n=t[Yx("0x77")][Yx("0x2e")](Yx("0x38")),o=t.plugins[Yx("0x2e")]("TableUtils"),s=t.plugins[Yx("0x2e")](Bx),r=t[Yx("0x77")][Yx("0x2e")](Yx("0x86"));s[Yx("0xe")][Yx("0x9c")]("tablePasteRow","tablePasteColumn"),t.model[Yx("0x27")][Yx("0x12")](Yx("0x92"),{allowIn:Yx("0x1f"),allowContentOf:Yx("0x1f"),isLimit:!0}),t[Yx("0x3")].elementToElement({model:"tableCellSuggestion",view:Yx("0x94")});let i=null;t[Yx("0xc")].on(Yx("0x4"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x40")]-1];l&&l[Yx("0x3e")]||n[Yx("0x9")]||this.editor[Yx("0x1e")][Yx("0x2e")](Yx("0x74")).value&&function(t,e,n,o,s){if(e&&!e.is(Yx("0x51")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x6")](n[Yx("0x71")][Yx("0x55")]);if(!i[Yx("0x40")])return!1;const x=i[0][Yx("0x50")](Yx("0x82")),a=o[Yx("0x44")](i),c=o.getColumnIndexes(i),l={startRow:a[Yx("0x10")],endRow:a[Yx("0x1")],startColumn:c[Yx("0x10")],endColumn:c.last};return 1==i[Yx("0x40")]&&(l.endRow+=o[Yx("0x36")](r)-1,l[Yx("0x63")]+=o[Yx("0x45")](r)-1),sa(x,l,o)}(a,c,t[Yx("0xc")],o,r)&&(s.stop(),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0xc")].change((()=>{t[Yx("0xc")][Yx("0x4")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n.markMultiRangeInsertion(s,Yx("0x17"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,Yx("0x26"),{tablePasteChainId:o}),a[Yx("0x40")]&&n[Yx("0x80")](a,Yx("0x88"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x40")]&&n.markMultiRangeDeletion(c,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Yx("0x60")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x15"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t.model[Yx("0x5")](o),i=e[Yx("0x5d")]((t=>t[Yx("0x96")]()[Yx("0x49")](r)));i&&n[Yx("0x9c")]([i.name,s])}n[Yx("0x40")]&&u[Yx("0x30")](Yx("0x83"),Object[Yx("0x87")](n))}i=null})))}),{priority:e.priorities[Yx("0x7b")]+10}),t[Yx("0x77")][Yx("0x2e")](Yx("0x86")).on(Yx("0x5c"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t.stop();const r=n[Yx("0x41")],x=o,a=oa(r),c=oa(x);t[Yx("0x79")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Yx("0x78")](r[Yx("0x6d")](0));for(const t of Array.from(x[Yx("0x46")]()))s[Yx("0x4f")](t,r,Yx("0x4d"));const t=i[Yx("0x91")][Yx("0x32")](n[Yx("0x68")]),e=i[Yx("0x89")][Yx("0x32")](n[Yx("0xb")]);t||e||(l=s[Yx("0x57")](r))}else c&&!a&&(u=s[Yx("0x57")](r));else{const t=s[Yx("0x20")](Yx("0x92")),e=s.createElement(Yx("0x92"));s.wrap(s[Yx("0x57")](r),e),s[Yx("0x4f")](t,r,0);for(const e of Array[Yx("0x23")](x.getChildren()))s[Yx("0x4f")](e,t,Yx("0x4d"));l=s[Yx("0x5")](t),u=s.createRangeOn(e)}const d=Array[Yx("0x23")](x[Yx("0x62")]())[Yx("0x2d")]((([t])=>ta[Yx("0x32")](t)));i[Yx("0x6f")][Yx("0x9c")]({element:r,attributes:d[Yx("0x40")]?Object[Yx("0x87")](d):null}),l&&i[Yx("0xd")][Yx("0x9c")](l),u&&i.deletionRanges[Yx("0x9c")](u)}),{priority:Yx("0x7b")}),o.on(Yx("0x6c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i.columnInsertionIndexes=new Array(a)[Yx("0x1b")](x)[Yx("0x13")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x0")](s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x1d")].push(t.model[Yx("0x5")](e))}),{priority:Yx("0x28")}),o.on(Yx("0x4a"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x18")]||1;i[Yx("0x91")]=new Array(a)[Yx("0x1b")](x)[Yx("0x13")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges.push(t[Yx("0xc")].createRangeOn(e))}),{priority:Yx("0x28")}),n._descriptionFactory[Yx("0x8b")]((e=>{if(e.subType&&e[Yx("0x7f")][Yx("0x34")](Yx("0x88")))return e[Yx("0x7c")]?{}:{type:Yx("0x3d"),content:Yo(t[Yx("0x7")],Yx("0x39"))}}));const x=()=>!1;for(const t of["tablePaste",Yx("0x26"),Yx("0x17"),"tablePasteCell"])n[Yx("0x95")][Yx("0x33")](Yx("0x3d"),t,Yx("0x6b"),x),n._suggestionFactory[Yx("0x33")](Yx("0x43"),t,Yx("0x6b"),x),n._suggestionFactory[Yx("0x33")](Yx("0x93"),t,"join",x);n[Yx("0x95")].registerCustomCallback(Yx("0x93"),Yx("0x15"),Yx("0x8a"),x),n._suggestionFactory[Yx("0x33")]("formatBlock",Yx("0x15"),Yx("0x7a"),((e,n,o)=>{const s=e[Yx("0x13")]((t=>t.getContainedElement()))[Yx("0x2d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x6f")])e&&r[Yx("0x3a")](t,e);else if(o&&o[Yx("0x83")])for(const[e,n]of Object[Yx("0x21")](o[Yx("0x83")])){const o=t.model.markers[Yx("0x2e")](e),s=o?o.getRange()[Yx("0x4e")]():null;s&&r[Yx("0x3a")](s,n)}t[Yx("0xc")][Yx("0x72")]((t=>{for(const[e,n]of r)t[Yx("0x85")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x95")][Yx("0x33")](e,Yx("0x88"),o,((s,r,i)=>{t[Yx("0xc")].change((t=>{const x=[];for(const t of s){const e=t[Yx("0xf")][Yx("0x3c")];e.is(Yx("0x5e"),Yx("0x92"))&&x[Yx("0x9c")](e)}n[Yx("0x95")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e.root.rootName&&t[Yx("0x2")](e)}))}))};a(Yx("0x3d"),Yx("0x7a")),a(Yx("0x3d"),Yx("0x8a")),a(Yx("0x43"),"accept"),a(Yx("0x43"),Yx("0x8a")),n[Yx("0x95")].registerCustomCallback("insertion",Yx("0x17"),Yx("0x8a"),(t=>{const e=t[Yx("0x13")]((t=>t.getContainedElement())),n=e[0][Yx("0x50")]("table"),{minRow:r,maxRow:i}=s[Yx("0x16")](e);o[Yx("0x53")](n,{at:r,rows:i-r+1})})),n[Yx("0x95")][Yx("0x33")](Yx("0x3d"),Yx("0x26"),Yx("0x8a"),(t=>{const e=t.map((t=>t.getContainedElement())),n=e[0][Yx("0x50")](Yx("0x82")),{minColumn:r,maxColumn:i}=s[Yx("0x16")](e);o[Yx("0x25")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Yx("0x7f")]||!e.subType[Yx("0x34")]("tablePaste"))return;const o=e.attributes[Yx("0x73")],s=n.getSuggestions()[Yx("0x2d")]((t=>t[Yx("0x8e")]&&t.attributes&&t[Yx("0xa")][Yx("0x73")]==o));s[Yx("0x40")]&&e.getAllAdjacentSuggestions()[Yx("0x40")]!=s.length&&s[Yx("0x5f")](((t,e)=>(t.next=e,e[Yx("0x7c")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x70")](t[Yx("0x7d")]),s=[Yx("0x6e"),Yx("0x31")],r=n[Yx("0x65")][Yx("0x32")](t[Yx("0x7d")]);return r&&s[Yx("0x9c")](Yx("0x35")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:Yx("0x7b")}),n.on("suggestionUnloaded",c,{priority:Yx("0x7b")}),t.model.document[Yx("0x98")]((()=>{let e=!1;const o=Array[Yx("0x23")](t[Yx("0xc")][Yx("0x71")][Yx("0x14")][Yx("0x90")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x70")](s);if(Yx("0x11")!=o||Yx("0x43")!=i||r.oldRange)continue;if(!n[Yx("0x9e")](x))continue;const a=n[Yx("0x5b")](x)[Yx("0x3b")](),c=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me;for(const t of n[Yx("0x4c")]())if(t[Yx("0x8e")]&&t.author==c&&"formatBlock"==t.type&&"tablePasteCell"==t[Yx("0x7f")]&&t[Yx("0x3b")]()[Yx("0x64")]((t=>a[Yx("0x59")]((e=>e[Yx("0x42")](t,!0))))))for(const n of t.getAllAdjacentSuggestions())n[Yx("0x8e")]&&(n[Yx("0x8a")](),e=!0)}return e})),t.model[Yx("0x71")][Yx("0x98")]((e=>{const o=t.commands[Yx("0x2e")]("redo");if(!o||!o[Yx("0x8c")].has(e[Yx("0x47")]))return!1;let s=!1;const r=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me,i=t[Yx("0xc")][Yx("0x71")][Yx("0x14")].getChanges(),x=Array[Yx("0x23")](t[Yx("0xc")].document[Yx("0x14")][Yx("0x90")]())[Yx("0x2d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return"suggestion"==o&&"tablePaste"==s&&i==r.id&&!e.oldRange}));for(const t of i){if(Yx("0x4f")!=t.type||"tableCellSuggestion"!=t[Yx("0x9d")]||1!=t.length)continue;const n=e[Yx("0x37")](t[Yx("0x52")],t[Yx("0x52")][Yx("0x5a")](1));if(!x.find((({data:t})=>t[Yx("0x84")][Yx("0x49")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x42")](o[Yx("0x84")])){e[Yx("0x9a")](t,{range:n}),s=!0;break}}return s})),t.model[Yx("0x71")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x77")][Yx("0x2e")](Yx("0x2c")).me,r=n.getSuggestions().filter((t=>t.isInContent&&t[Yx("0x1a")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x88")==t.subType)for(const e of t[Yx("0x22")]()){const n=e[Yx("0x96")]()[Yx("0x4e")]();if(n)if(n.is(Yx("0x5e"),Yx("0x92"))&&oa(n)){t[Yx("0x1c")](e.name),i[Yx("0x67")](n),o=!0;const s=n[Yx("0x56")],r=n[Yx("0x2a")],a=s&&s.is(Yx("0x5e"),Yx("0x92")),c=r&&r.is("element",Yx("0x92"));a&&!i[Yx("0x3f")](s)&&x[Yx("0x67")](s),c&&!i.has(r)&&x[Yx("0x67")](r)}else n.is(Yx("0x5e"),Yx("0x61"))&&n.isEmpty&&(t.removeMarker(e[Yx("0x9d")]),o=!0)}else if(Yx("0x15")==t[Yx("0x7f")]){if(!t[Yx("0xa")]||!t.attributes[Yx("0x73")])continue;const e=t.attributes[Yx("0x83")];if(e&&Object[Yx("0x69")](e)[Yx("0x40")])continue;const n=t[Yx("0xa")][Yx("0x73")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x7f")]&&e.subType[Yx("0x34")]("tablePaste")){if(!e[Yx("0xa")][Yx("0x73")]){i=!1;break}if(e.id!=t.id&&e.attributes[Yx("0x73")]==n){s=!1;break}}i&&s&&(t[Yx("0x75")](),o=!0)}for(const t of i)e[Yx("0x78")](t);for(const t of x)e[Yx("0x2")](t);return o})),t[Yx("0x3")][Yx("0x4b")](Yx("0x24"))[Yx("0x9b")]({model:Yx("0x8f"),view:(t,e)=>l(t),converterPriority:Yx("0x7b")}),t[Yx("0x3")].for(Yx("0x6a"))[Yx("0x9b")]({model:Yx("0x8f"),view:(t,e)=>e[Yx("0x48")][Yx("0x7e")]?l(t,!1):null,converterPriority:Yx("0x7b")});const u=t[Yx("0x58")][Yx("0x99")];this[Yx("0x66")](u[Yx("0x71")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[Yx("0x81")])[Yx("0x8")]())t.is(Yx("0x5e"),Yx("0x94"))&&n.push(t);u[Yx("0x72")]((t=>{for(const e of n)t[Yx("0x29")](t[Yx("0x57")](e),t[Yx("0x8d")](e)),t[Yx("0x78")](e)}))}))}}function oa(t){if(t[Yx("0x54")])return!0;const e=t[Yx("0x6d")](0);return e.is(Yx("0x5e"),Yx("0x61"))&&e[Yx("0x54")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x0")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["document","format","formatGroupId","model","getSelectedElement","locale","accept","afterInit","editor","resizeColumnWidths","registerCustomCallback","get","resizeTableWidth","tableWidth","getAttribute","discard","commandParams","*Format:* resize table","selection","_descriptionFactory","getColumnGroupElement","data","getTableColumnsWidths","TrackChangesEditing","TableColumnResizeEditing","getContainedElement","bind","_suggestionFactory","author","formatBlock","handleSuggestionDescription","handleResizeTableWidthCommand","columnWidths","has","registerDescriptionCallback","table","plugins","getSuggestionCallback","getSuggestions","enableCommand","resizeTable"];var ia,xa;ia=ra,xa=197,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0xf")](){if(!this[aa("0x10")].plugins[aa("0x0")](aa("0x20")))return;const t=this[aa("0x10")][aa("0x3")].get("TrackChangesEditing");t[aa("0x6")]("resizeTableWidth",this[aa("0x27")][aa("0x22")](this)),t.enableCommand(aa("0x11"),this.handleResizeTableWidthCommand.bind(this)),t[aa("0x23")].registerCustomCallback(aa("0x25"),aa("0x7"),aa("0xe"),t._suggestionFactory.getSuggestionCallback(aa("0x25"),null,"discard")),t[aa("0x23")][aa("0x12")]("formatBlock",aa("0x7"),aa("0x17"),t[aa("0x23")][aa("0x4")](aa("0x25"),null,aa("0xe"))),t[aa("0x1b")][aa("0x1")](this.handleSuggestionDescription[aa("0x22")](this))}[aa("0x27")](t,e){const n=this[aa("0x10")][aa("0x3")][aa("0x13")](aa("0x1f")),o=this[aa("0x10")].plugins[aa("0x13")](aa("0x20")),s=e[aa("0x2")]||this[aa("0x10")][aa("0xb")][aa("0x8")][aa("0x1a")][aa("0xc")]();this[aa("0x10")].model.change((()=>{const r=o[aa("0x1c")](s);let i=r?o[aa("0x1e")](r):null,x=s[aa("0x16")](aa("0x15"))||null;const a=e[aa("0x15")]||x,c=e[aa("0x28")]||i,l=this[aa("0x10")][aa("0x3")].get("Users").me;for(const t of n[aa("0x5")]()){const e=t[aa("0x21")]();if(aa("0x7")===t.subType&&e===s){t[aa("0x24")]!==l&&t[aa("0x17")]();const e=t[aa("0x1d")][aa("0x18")];x=e[0][aa("0x15")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n.markBlockFormat(s,{commandName:aa("0x14"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:aa("0x7")},[],aa("0x7"))}))}[aa("0x26")](t){const{data:e}=t;if(e&&aa("0x7")===e[aa("0xa")]){const t=aa("0x19");return{type:aa("0x9"),content:Yo(this[aa("0x10")][aa("0xd")],t)}}}}const la=["Template","insertTemplate","has","editor","plugins","afterInit","get"];var ua,da;ua=la,da=348,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x0")](){const t=this[ga("0x5")];t[ga("0x6")][ga("0x4")](ga("0x2"))&&t.plugins[ga("0x1")]("TrackChangesEditing").enableCommand(ga("0x3"))}}const fa=["enableCommand","TrackChangesEditing","get","_descriptionFactory","locale","registerElementLabel","insertTableOfContents","plugins","ELEMENT_TABLE_OF_CONTENTS","commands"];var ha,pa;ha=fa,pa=323,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("0x6")][ba("0x9")](ba("0x3")))return;t[ba("0x4")][ba("0x9")]("TrackChangesEditing")[ba("0x7")]("insertTableOfContents");const e=t[ba("0x4")][ba("0x9")](ba("0x8")),n=t[ba("0x1")];e[ba("0x0")][ba("0x2")]("tableOfContents",(t=>Yo(n,ba("0x5"),t)))}}const _a=["end","document","ELEMENT_TITLE","_descriptionFactory","createRange","locale","isTouching","editor","getChangedMarkers","updateMarker","element","get","title-content","start","afterInit","schema","Title","plugins","_splitMarkerName","suggestion","differ","getNearestSelectionRange","registerElementLabel","registerPostFixer","from","newRange","isCollapsed","model"];var Ta,Ca;Ta=_a,Ca=310,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0xc")](){const t=this[ya("0x5")];if(!t[ya("0xf")].has(ya("0xe")))return;const e=t[ya("0xf")][ya("0x9")]("TrackChangesEditing");e[ya("0x1")][ya("0x14")](ya("0xa"),(()=>Yo(t[ya("0x3")],ya("0x0")))),t[ya("0x19")][ya("0x1b")][ya("0x15")]((n=>{let o=!1;const s=Array[ya("0x16")](t[ya("0x19")].document[ya("0x12")][ya("0x6")]());for(const{name:r,data:i}of s){const{group:s}=e[ya("0x10")](r);if(ya("0x11")!==s||!i[ya("0x17")])continue;const x=i.newRange,a=x[ya("0x1a")].nodeBefore;if(!a||!a.is(ya("0x8"),ya("0xa")))continue;if(!x[ya("0xb")][ya("0x4")](x[ya("0x1a")]))continue;const c=t[ya("0x19")][ya("0xd")][ya("0x13")](x.end,"forward");if(c&&c[ya("0x18")]){const t=n[ya("0x2")](x[ya("0xb")],c[ya("0xb")]);t.isEqual(x)||(n[ya("0x7")](r,{range:t}),o=!0)}o||(n.removeMarker(r),o=!0)}return o}))}}const Aa=["plugins","editor","has","get","afterInit","undo","redo","TrackChangesEditing","enableCommand","UndoEditing"];var va,Ra;va=Aa,Ra=265,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x9")](){const t=this[Ia("0x6")],e=t[Ia("0x5")][Ia("0x8")](Ia("0x2"));t[Ia("0x5")][Ia("0x7")](Ia("0x4"))&&(e[Ia("0x3")](Ia("0x0")),e[Ia("0x3")](Ia("0x1")))}}const La=["enableCommand","toggleTableCaption","afterInit","TrackChangesEditing","plugins","has","requires"];var Na,Ma;Na=La,Ma=471,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get[wa("0x4")](){return[Bx]}[wa("0x0")](){const t=this.editor;t[wa("0x2")][wa("0x3")]("TableCaptionEditing")&&t[wa("0x2")].get(wa("0x1"))[wa("0x5")](wa("0x6"))}}const Fa=["plugins","document","getAttribute","*Change to:* %0","_getSuggestionBlocksForListStyle","afterInit","getListTypeFromListStyleType","expandListBlocksToCompleteList","toUpperCase","_descriptionFactory","_getSuggestionBlocks","TrackChangesEditing","listStart","styles","*Format:* set order to reversed","from","get","push","markMultiRangeBlockFormat","config","DocumentListPropertiesUtils","bind","DocumentListUtils","filter","isFirstBlockOfListItem","handleListStyleCommand","ELEMENT_","length","getSelectedBlocks","_getTranslationKeyForListStyle","listType","listStyle","startIndex","format","_LIST_","selection","list.properties","DocumentListPropertiesEditing","*Format:* set start index to %0","model","listReversed","commandParams","type","editor","isListItemBlock","enableCommand","numbered","handleListStartCommand","reversed","handleDescriptions","change"];var Pa,Da;Pa=Fa,Da=202,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x7")](){if(!this[Ba("0x2d")][Ba("0x2")].has(Ba("0x27")))return;const t=this[Ba("0x2d")][Ba("0x15")][Ba("0x12")](Ba("0x26")),e=this[Ba("0x2d")].plugins.get(Ba("0xd"));t[Ba("0xf")]&&e[Ba("0x2f")](Ba("0x21"),this[Ba("0x1b")][Ba("0x17")](this)),t[Ba("0x32")]&&e.enableCommand(Ba("0x2a"),this.handleListReversedCommand.bind(this)),t[Ba("0x22")]&&e[Ba("0x2f")](Ba("0xe"),this.handleListStartCommand[Ba("0x17")](this)),e[Ba("0xb")].registerDescriptionCallback(this[Ba("0x0")][Ba("0x17")](this))}[Ba("0x1b")](t,e={}){const n=this.editor.plugins[Ba("0x12")]("TrackChangesEditing"),o=this[Ba("0x6")]();this.editor.model.change((()=>{n[Ba("0x14")](o,{commandName:Ba("0x21"),commandParams:[{type:e[Ba("0x2c")]}],formatGroupId:Ba("0x21")})}))}handleListReversedCommand(t,e={}){const n=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")](Ba("0xd")),o=this[Ba("0x2d")][Ba("0x2")].get(Ba("0x18")),s=this[Ba("0xc")]((t=>o.isListItemBlock(t)&&Ba("0x30")===t[Ba("0x4")](Ba("0x20"))));null!==s&&this[Ba("0x2d")][Ba("0x29")][Ba("0x1")]((()=>{n[Ba("0x14")](s,{commandName:"listReversed",commandParams:[{reversed:e[Ba("0x32")]}],formatGroupId:"listReversed"})}))}[Ba("0x31")](t,e={}){const n=this.editor[Ba("0x2")].get(Ba("0xd")),o=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")](Ba("0x18")),s=this[Ba("0xc")]((t=>o[Ba("0x2e")](t)&&Ba("0x30")===t[Ba("0x4")](Ba("0x20"))));null!==s&&this[Ba("0x2d")][Ba("0x29")].change((()=>{n[Ba("0x14")](s,{commandName:Ba("0xe"),commandParams:[{startIndex:e[Ba("0x22")]}],formatGroupId:Ba("0xe")})}))}handleDescriptions(t){const e=this[Ba("0x2d")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case"listStyle":o=Ba("0x5"),s={type:Ba("0x23"),content:Yo(e,o,Yo(e,this[Ba("0x1f")](n[Ba("0x2b")][0][Ba("0x2c")])))};break;case Ba("0x2a"):o=n[Ba("0x2b")][0][Ba("0x32")]?Ba("0x10"):"*Format:* set order to regular",s={type:Ba("0x23"),content:Yo(e,o)};break;case Ba("0xe"):o=Ba("0x28"),s={type:Ba("0x23"),content:Yo(e,o,n[Ba("0x2b")][0][Ba("0x22")])}}return s}[Ba("0x6")](){const t=this[Ba("0x2d")][Ba("0x2")][Ba("0x12")]("DocumentListUtils");let e=Array[Ba("0x11")](this[Ba("0x2d")].model[Ba("0x3")][Ba("0x25")].getSelectedBlocks());return e[Ba("0x13")](...t[Ba("0x9")](e)),e=[...new Set(e)],e}[Ba("0xc")](t){const e=this[Ba("0x2d")][Ba("0x2")].get(Ba("0x18"));let n=Array[Ba("0x11")](this[Ba("0x2d")][Ba("0x29")][Ba("0x3")].selection[Ba("0x1e")]())[Ba("0x19")](t);if(!n[Ba("0x1d")])return null;n=e[Ba("0x9")](n);const o=[];for(const t of n)e[Ba("0x1a")](t)&&o[Ba("0x13")](t);return o}[Ba("0x1f")](t){return Ba("0x1c")+this.editor.plugins[Ba("0x12")](Ba("0x16"))[Ba("0x8")](t).toUpperCase()+Ba("0x24")+t[Ba("0xa")]().replace(/-/g,"_")}}const Ua=["registerDescriptionCallback","tableBorderWidth","batch","has","tableHeight","_handlePropertyChange","tableCellPadding","tableCellProperties","tableCellBorderColor","discard","registerCustomCallback","commandParams","model","join","start","tableBorderStyle","_getSuggestion","afterInit","document","markBlockFormat","TableCellPropertiesEditing","get","plugins","getSelectionAffectedTableCells","_descriptionFactory","accept","TableUtils","enqueueChange","_suggestionFactory","TrackChangesEditing","pluginName","data","tableAlignment","handleDiscardAction","tableCellWidth","getSuggestionCallback","nodeAfter","handleSuggestionDescription","TrackChangesTableProperties","enableCommand","tableProperties","findAncestor","subType","table","tableCellBorderStyle","removeAttribute","format","locale","tableCellBackgroundColor","getContainedElement","tableCellVerticalAlignment","selection","formatBlock","editor","getSuggestions"];var Ga,Ha;Ga=Ua,Ha=399,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const Wa=function(t,e){return Ua[t-=0]};class za extends t.Plugin{constructor(t){super(t),this[Wa("0x1a")]=["tableBorderColor",Wa("0x1"),Wa("0x2a"),Wa("0x12"),"tableWidth",Wa("0x2d"),"tableBackgroundColor"],this[Wa("0x30")]=[Wa("0x31"),Wa("0x1e"),"tableCellBorderWidth",Wa("0x2f"),Wa("0x14"),"tableCellHeight",Wa("0x22"),"tableCellHorizontalAlignment",Wa("0x24")]}static get[Wa("0x10")](){return Wa("0x18")}[Wa("0x3")](){const t=this[Wa("0x27")][Wa("0x8")][Wa("0x7")]("TrackChangesEditing");if(this[Wa("0x27")].plugins[Wa("0x2c")]("TablePropertiesEditing")){for(const e of this[Wa("0x1a")])t[Wa("0x19")](e,((t,n)=>{const o=this[Wa("0x27")][Wa("0x35")][Wa("0x4")][Wa("0x25")].getFirstPosition()[Wa("0x1b")](Wa("0x1d"));this[Wa("0x2e")](e,[o],this[Wa("0x1a")],"tableProperties",t,n)}));t[Wa("0xe")][Wa("0x33")](Wa("0x26"),"tableProperties","accept",t[Wa("0xe")][Wa("0x15")](Wa("0x26"),null,Wa("0x32"))),t[Wa("0xe")][Wa("0x33")](Wa("0x26"),Wa("0x1a"),Wa("0x32"),((t,e)=>this[Wa("0x13")](this[Wa("0x1a")],t,e))),t[Wa("0xe")][Wa("0x33")]("formatBlock",Wa("0x1a"),"join",(()=>!1))}if(this[Wa("0x27")].plugins[Wa("0x2c")](Wa("0x6"))){for(const e of this.tableCellProperties)t[Wa("0x19")](e,((t,n)=>{const o=this[Wa("0x27")][Wa("0x8")][Wa("0x7")](Wa("0xc"))[Wa("0x9")](this[Wa("0x27")].model[Wa("0x4")].selection);this[Wa("0x2e")](e,o,this[Wa("0x30")],Wa("0x30"),t,n)}));t._suggestionFactory[Wa("0x33")](Wa("0x26"),Wa("0x30"),Wa("0xb"),t[Wa("0xe")][Wa("0x15")](Wa("0x26"),null,Wa("0x32"))),t[Wa("0xe")][Wa("0x33")](Wa("0x26"),Wa("0x30"),Wa("0x32"),((t,e)=>this[Wa("0x13")](this[Wa("0x30")],t,e))),t[Wa("0xe")].registerCustomCallback(Wa("0x26"),"tableCellProperties",Wa("0x36"),(()=>!1))}t[Wa("0xa")][Wa("0x29")]((t=>this[Wa("0x17")](t)))}[Wa("0x2e")](t,e,n,o,s,r){const i=this[Wa("0x27")][Wa("0x8")][Wa("0x7")]("TrackChangesEditing");this[Wa("0x27")][Wa("0x35")][Wa("0xd")](r[Wa("0x2b")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Wa("0x5")](t,{commandParams:[e]},[],o)}}))}[Wa("0x13")](t,e,n){const o=e[0][Wa("0x0")][Wa("0x16")],s=n[Wa("0x34")][0];this.editor[Wa("0x35")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Wa("0x1f")](n,o)}))}[Wa("0x17")](t){if(t[Wa("0x11")])switch(t[Wa("0x1c")]){case Wa("0x1a"):return{type:Wa("0x20"),content:Yo(this[Wa("0x27")].locale,"*Format:* change table properties")};case Wa("0x30"):return{type:"format",content:Yo(this.editor[Wa("0x21")],"*Format:* change table cell properties")}}}[Wa("0x2")](t,e){const n=this[Wa("0x27")][Wa("0x8")][Wa("0x7")](Wa("0xf"));for(const o of n[Wa("0x28")]({skipNotAttached:!0})){const n=o[Wa("0x23")]();if(o[Wa("0x1c")]===e&&n===t)return o}return null}}const Va=["_getExternalAuthor","formatGroupId","rethrowUnexpectedError","track-changes-suggestion-data-mismatch","_createSuggestion","insertion:","getNearestSelectionRange","includes","nodeAfter","split","isNextTo","commentThread","acceptSuggestion","markBlockFormat","getMultiRangeId","trackChanges","ck-suggestion-marker","_suggestions","dataReady","formatInline:join","_registerDefaultCallbacks","addSuggestionData","discard","getSuggestion","insertion:discard","tablePasteChainId","moveTargetPosition","change","_suggestionState","isBlock","_customCallbacks","createRange","formatInline:chain","_isDataLoaded","markerToHighlight","getFirstRange","$textProxy","previous","getItems","document","map","listenTo","isCollapsed","removeClass","push","for","backward","addMarkerName","clear","attributes","discardAllSuggestions","isSelectable","insertion:join","ready","toViewElement","after","default","isRemovable","addRange","change:_saved","markDeletion","plugins","addUser","trackChanges.mergeNestedSuggestions","_getSuggestionData","config","locale","TrackChangesEditing","return","suggestion","addMarker:suggestion:formatBlock","trackChangesCommand","_adapter","requires","_editor","isUndo","addComment","setTo","deletion:chain","suggestionLoaded","containsPosition","commandName","createSelection","getRange","_handleNewSuggestionMarker","writer","model","isOwn","nodeBefore","batch","markInlineFormat","formatBlock:accept","insertContent","showSuggestionHighlights","chain","activeMarkers","registerPostFixer","markers","getChangedMarkers","Users","markerName","forward","accept","containerElement","consumable","lowest","next","from","skipNestingCheck","isInsideObject","toJSON","root","getAllAdjacentSuggestions","collaboration.channelId","rootName","fromRange","execute","_addThreadToSuggestion","removeMarker:suggestion:formatBlock","set","parent","documentSelection","isExternal","getAttribute","has","normal","unbindElementFromMarkerName","marker-count","addSuggestion","end","editingDowncast","forceDefaultExecution","containsRangeInObject","catch","createElement","formatInline:discard","deletion","bindElementToMarker","size","insertion","track-changes-adapter-already-set","detach","multi","CommentsRepository","stop","getChanges","isAtEnd","some","deletion:discard","removed","authoredAt","insertion:accept","addMarker:suggestion","move","formatBlock:","hasComments","getDifference","fetchCommentThread","getCustomProperty","getLastMatchingPosition","createPositionBefore","markerReady","clone","data-suggestion","highest","getFirstMarker","_rangeIsInLocalUserInsertion","_setSuggestionData","_breakSuggestionMarker","isMultiRange","suggestion:","createPositionAt","_removeSuggestion","formatBlock:discard","acceptAllSuggestions","removeComment","mapper","enqueueChange","removeMarker","external:","buildSuggestion","get","delete","_cutOutSuggestionMarker","_refreshSuggestionsChain","insertion:chain","name","_setSuggestionRange","formatInline:","enableCommand","updateMarker","ck-suggestion-marker-formatBlock","join","consume","oldRange","_enabledCommands","formatInline","dataDowncast","_suggestionFactory","_addSuggestionMarker","define","fromCharCode","reconvertMarker","deletion:join","_saved","_mergeNestedSuggestions","commands","schema","ck-suggestion-marker-","value","addHighlight","PENDING_ACTION_SUGGESTION","setSelection","isAfter","isBefore","splice","containsRange","deleteContent","multipleBlocks","setAttribute","authorName","always","_defaultCallbacks","_joinWithAdjacentSuggestions","getWalker","author","markMultiRangeDeletion","getSuggestionCallback","isTouching","suggestionChanged","_trackFormatChanges","formatBlock","deletion:accept","_joinSuggestions","_splitMarkerName","upcast","isEqual","_isForcedDefaultExecutionBlock","creator","getUser","discardSuggestion","fire","position","isLimit","remove","$graveyard","_onDiscard","change:data","addCommentThread","_getAuthorFromId","deletion:","start","subType","acceptSelectedSuggestions","never","update:suggestion","low","widget","getCommentThread","formatBlock:join","refresh","options","item","data","values","trackChanges.trackFormatChanges","howMany","change:activeMarkers","substr","adapter","markerNameToElements","isObject","range","then","add","discardSelectedSuggestions","notReady","_checkSuggestionCorrectness","keys","getMarkers","_updateSuggestionData","_findSuggestions","type","length","sort","hasSuggestion","head","removeMarkers","addClass","updateSuggestion","_commentsRepository","PendingActions","filter","_model","getSuggestions","isIntersectingWithRange","hasCommentThread","elementEnd","high","selection","conversion","group","@external","markMultiRangeInsertion","ck-suggestion-marker--active","getRanges","every","init","isDocumentOperation","isInContent","newRange","editing","unbind","targetPosition","createdAt","insert","$marker","containsItem","error-saving-suggestion-data-suggestion-discarded","getIntersection","editor","rejected","isLocal","getShiftedBy","element","formatBlock:chain"];var Ka,Xa;Ka=Va,Xa=419,function(t){for(;--t;)Ka.push(Ka.shift())}(++Xa);const qa=function(t,e){return Va[t-=0]};class $a extends t.Plugin{static get[qa("0x132")](){return[qa("0x32"),r.Users,t.PendingActions,cs,ms,Rs,Ms,Bs,Ws,$s,er,ir,ja,dr,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,Mi,ji,zi,$i,tx,rx,ux,px,Cx,Ix,wx,Bx,zx,$x,Oa,na,ca,Ea,za,ma,ka,Sa]}static get pluginName(){return qa("0x12c")}constructor(t){function e(t){return t.map((t=>String[qa("0x6c")](t))).join("")}super(t),this[qa("0x1a")]("activeMarkers",[]),this.on(qa("0xae"),((e,n,o,s)=>{this[qa("0xc8")].change((()=>{for(const e of[...s,...o])this[qa("0xc8")][qa("0x4")][qa("0x1f")](e)&&t[qa("0xda")][qa("0x6d")](e)}))})),this._descriptionFactory=new ss(this[qa("0xe3")][qa("0x13f")].schema,this[qa("0xe3")][qa("0x12b")]),this[qa("0x131")]=null,this[qa("0x69")]=new Ja(this[qa("0xe3")]),this._suggestions=new Map,this[qa("0xc5")]=t[qa("0x126")].get(qa("0x32")),this._enabledCommands=new Set,this._model=this[qa("0xe3")][qa("0x13f")],this[qa("0x105")]=new WeakMap,this[qa("0x90")]=!1,t[qa("0x12a")][qa("0x6b")]("trackChanges.trackFormatChanges",qa("0x121")),this._trackFormatChanges=t[qa("0x12a")].get(qa("0xac")),t[qa("0x12a")][qa("0x6b")](qa("0x128"),!0),this[qa("0x70")]=t[qa("0x12a")].get(qa("0x128")),this[qa("0x130")]=new d(t,this[qa("0x66")]),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,50,48,51,50])}[qa("0xd6")](){const t=this[qa("0xe3")];t[qa("0xcf")][qa("0x116")](qa("0x25"))[qa("0x10b")]({model:qa("0x12e"),view:t=>{const{id:e,type:n}=this[qa("0x8d")](t[qa("0x7")]),o=[qa("0xf9"),qa("0x73")+n];let s=3e3;return this[qa("0x2")].includes(t[qa("0x7")])&&(o.push(qa("0xd3")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[qa("0xcf")][qa("0x116")](qa("0x68"))[qa("0xb5")]((e=>{e.on(qa("0x3b"),((e,n,o)=>{if(!o[qa("0xa8")][qa("0x0")])return;const s=n[qa("0xa9")];if(!s)return;const r=o.mapper[qa("0x11f")](s);t[qa("0x13f")].schema.isObject(s)&&r&&!r[qa("0x41")](qa("0xa4"))&&r.is(qa("0xa"))&&(0,x.toWidget)(r,o[qa("0x13e")])}),{priority:"high"})})),t[qa("0xcf")][qa("0x116")](qa("0x68"))[qa("0x10b")]({model:qa("0x12e"),view:(t,e)=>{if(!e[qa("0xa8")].showSuggestionHighlights)return null;const{type:n}=this[qa("0x8d")](t.markerName);return{classes:[qa("0xf9"),qa("0x73")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[qa("0xa9")])return;if(o[qa("0xa9")].is(qa("0xce")))return void s[qa("0xb")][qa("0x64")](o.item,n[qa("0x5d")]);const r=s[qa("0x53")][qa("0x11f")](o[qa("0xa9")]);if(!o[qa("0xa9")].is("element")||!t.model[qa("0x72")][qa("0x106")](o[qa("0xa9")])||r[qa("0x41")](qa("0x75")))return;const{id:i}=this._splitMarkerName(o[qa("0x7")]);s[qa("0x13e")][qa("0xc3")]([qa("0xf9"),"ck-suggestion-marker-formatBlock"],r),s[qa("0x13e")][qa("0x7e")](qa("0x46"),i,r),s[qa("0x53")][qa("0x2c")](r,o[qa("0x7")]),e&&(this.activeMarkers[qa("0xf0")](o[qa("0x7")])?s.writer.addClass(qa("0xd3"),r):s[qa("0x13e")][qa("0x114")](qa("0xd3"),r));for(const e of t[qa("0x13f")].createRangeIn(o[qa("0xa9")])[qa("0x10f")]())s.consumable[qa("0x64")](e,n.name);s[qa("0xb")].consume(o[qa("0xa9")],n[qa("0x5d")])};t[qa("0xcf")][qa("0x116")](qa("0x68"))[qa("0xb5")]((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[qa("0xa8")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:qa("0x47")})})),t[qa("0xcf")][qa("0x116")](qa("0x68")).markerToData({model:qa("0x12e"),view:(t,e)=>e[qa("0xa8")][qa("0x0")]?null:{group:qa("0x12e"),name:t[qa("0xaf")](11)}}),t[qa("0xcf")].for("upcast").elementToElement({view:{name:qa("0x12e"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute("suggestion-type")+":"+t.getAttribute("id");return t[qa("0x1e")](qa("0x22"))&&(n+=":"+t.getAttribute("marker-count")),e[qa("0x29")](qa("0xdf"),{"data-name":n})}}),t.conversion[qa("0x116")](qa("0x8e")).dataToMarker({view:qa("0x12e")}),t[qa("0xcf")][qa("0x116")](qa("0x25"))[qa("0xb5")]((t=>{t.on(qa("0x12f"),n(),{priority:qa("0xcd")})})),t[qa("0xcf")].for(qa("0x25"))[qa("0xb5")]((t=>{t.on(qa("0x19"),((t,e,n)=>{const o=n.mapper[qa("0xb1")](e.markerName);if(o)for(const t of o)t.getCustomProperty(qa("0x75"))||(n.writer.removeClass([qa("0xf9"),qa("0x62"),qa("0xd3")],t),n[qa("0x13e")].removeAttribute(qa("0x46"),t),n.mapper[qa("0x21")](t,e[qa("0x7")]))}),{priority:qa("0xcd")})})),t[qa("0x13f")][qa("0x110")][qa("0x3")]((e=>{let n=!1;const o=Array[qa("0xe")](t[qa("0x13f")][qa("0x110")].differ[qa("0x5")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[qa("0x8d")](x);if(qa("0x12e")!==o)continue;const u=this[qa("0xfa")].get(l);if(null!=a[qa("0xd9")])if(qa("0x67")==c&&(n=n||Ya(a.newRange,x,e,t.model[qa("0x72")])),a[qa("0xd9")][qa("0x113")]||qa("0x98")==a[qa("0xd9")][qa("0x12")][qa("0x15")]||qa("0x8a")==c&&!ec(a.newRange)||qa("0x2b")==c&&(Za(i=a[qa("0xd9")])||(r=i)[qa("0x9e")][qa("0x1b")]==r[qa("0x24")][qa("0x141")]&&r[qa("0x9e")][qa("0x35")]))e[qa("0x55")](x),n=!0;else{if(!u||!u[qa("0xd8")])continue;s[qa("0xb5")](u)}}var r,i;return s[qa("0x2d")]>0&&(n=!!this[qa("0x82")](s)||n),n})),t[qa("0x13f")].document[qa("0x3")]((e=>{let n=!1;for(const o of t[qa("0x13f")][qa("0x110")].differ[qa("0x34")]()){if(qa("0xde")!=o.type)continue;const s=o[qa("0x95")].getShiftedBy(o.length);if(s[qa("0x35")])for(const r of this._suggestions[qa("0xab")]()){if(r.isMultiRange||!r.isInContent)continue;if("formatBlock"!=r[qa("0xbd")])continue;const i=r.getFirstRange();if(i.start[qa("0x1b")]!=i.end[qa("0x1b")]&&i[qa("0x24")].isEqual(o[qa("0x95")])){const o=t.model.createRange(i[qa("0x9e")],s);e.updateMarker(r[qa("0x48")](),{range:o}),n=!0}}}return n})),t[qa("0x13f")][qa("0x4")].on(qa("0xa2"),((t,e,n)=>{if(null==n){const{id:t}=this[qa("0x8d")](e[qa("0x5d")]),n=this[qa("0xfa")].get(t);n&&n.addMarkerName(e.name)}})),t[qa("0x13f")][qa("0x110")].on(qa("0x9a"),(()=>{const e=Array.from(t[qa("0x13f")].document.differ[qa("0x5")]()).filter((t=>qa("0x12e")===this[qa("0x8d")](t[qa("0x5d")])[qa("0xd0")]));if(0===e[qa("0xbe")])return;e[qa("0xbf")](((t,e)=>{const n=t.data[qa("0x65")],o=e[qa("0xaa")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[qa("0x9e")][qa("0x79")](o[qa("0x9e")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[qa("0x8d")](t);if(null===s[qa("0x65")]){const e=this[qa("0x13d")](t);o[qa("0xb5")](e)}else{const t=this._suggestions[qa("0x58")](e);null!==s[qa("0xd9")]||t.isInContent?(n[qa("0xb5")](t[qa("0xc1")]),o[qa("0xb5")](t)):this[qa("0x4f")](t)}}o[qa("0x2d")]>0&&this[qa("0x5b")](o);for(const t of n)this[qa("0x94")](qa("0x88"),t)})),t[qa("0x13f")].on("applyOperation",((e,n)=>{const o=n[0];if(!this[qa("0xfa")][qa("0x2d")])return;if(!o[qa("0xd7")])return;if(o[qa("0x142")][qa("0x134")]||!o[qa("0x142")][qa("0xe5")])return;let s,r;switch(o.type){case qa("0xde"):s=t[qa("0x13f")][qa("0x4e")](o[qa("0x95")]),r=s[qa("0xe6")](o[qa("0xad")]);break;case"split":s=t[qa("0x13f")].createPositionAt(o.splitPosition),r=t[qa("0x13f")].createPositionAt(o[qa("0x103")]);break;case qa("0x3c"):s=t[qa("0x13f")][qa("0x4e")](o[qa("0xdc")]),r=s[qa("0xe6")](o[qa("0xad")]);break;default:return}const i=t[qa("0x13f")][qa("0x108")](s,r);t[qa("0x13f")][qa("0x104")]((()=>{for(const{suggestion:t,meta:e}of this[qa("0xbc")](i)){if(t[qa("0x4c")])continue;if(qa("0x67")==t[qa("0xbd")])continue;const n=t[qa("0xaa")]&&t[qa("0xaa")][qa("0x7d")];(qa("0x8a")!=t[qa("0xbd")]||"split"==o[qa("0xbd")]&&!n)&&(e.containsRangeInObject||qa("0x2e")==t[qa("0xbd")]&&e[qa("0x140")]||t[qa("0x10c")]()[qa("0x7b")](i)&&this[qa("0x4b")](t,s,r))}}))}),{priority:qa("0xc")}),t[qa("0x13f")].on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s[qa("0x26")])return;if(this[qa("0x90")])return;if(!this[qa("0x130")][qa("0x74")])return;if(o[qa("0x113")])return;const r=t[qa("0x13f")].schema,{start:i,end:x}=o[qa("0x10c")](),a=i[qa("0xf1")]&&r.isLimit(i.nodeAfter)?null:r.getNearestSelectionRange(i,qa("0x8")),c=x[qa("0x141")]&&r[qa("0x96")](x[qa("0x141")])?null:r[qa("0xef")](x,qa("0x117")),l=t[qa("0x13f")].createRange(a?a[qa("0x9e")]:i,c?c[qa("0x24")]:x);t[qa("0x13f")].change((e=>{this[qa("0x125")](l);const n=t[qa("0x13f")][qa("0x72")].getNearestSelectionRange(l.start);o.is(qa("0x1c"))?e[qa("0x77")](n):o[qa("0x136")](n)})),e.stop()}),{priority:e.priorities[qa("0x20")]+10}),t[qa("0x13f")].on(qa("0x145"),((e,n)=>{const o=n[n[qa("0xbe")]-1];o&&o[qa("0x26")]||this[qa("0x90")]||this[qa("0x130")][qa("0x74")]&&(t[qa("0x13f")][qa("0x104")]((()=>{let o=t.model.insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[qa("0x12d")]=o[qa("0x45")]();const s=o[qa("0x24")].nodeBefore,r=t[qa("0x13f")][qa("0x72")];s&&r.isBlock(s)&&!r.isObject(s)&&(o=t[qa("0x13f")].createRange(o[qa("0x9e")],t[qa("0x13f")][qa("0x4e")](s,qa("0x24")))),this.markInsertion(o)})),e[qa("0x33")]())}),{priority:qa("0xcd")}),this[qa("0xe3")][qa("0x71")][qa("0xb5")](qa("0xf8"),this[qa("0x130")]),this[qa("0x60")](qa("0xf8"));const o=new p(t,this[qa("0xfa")]);t[qa("0x71")][qa("0xb5")]("acceptSuggestion",o),this[qa("0x60")]("acceptSuggestion");const s=new C(t,this._suggestions);t[qa("0x71")][qa("0xb5")](qa("0x93"),s),this[qa("0x60")](qa("0x93")),t[qa("0x71")][qa("0xb5")](qa("0x51"),new F(t,o,this[qa("0xfa")])),this[qa("0x60")](qa("0x51")),t[qa("0x71")][qa("0xb5")](qa("0x11b"),new F(t,s,this[qa("0xfa")])),this[qa("0x60")](qa("0x11b")),t.commands.add(qa("0xa0"),new U(t,o,this._suggestions)),this[qa("0x60")](qa("0xa0")),t.commands[qa("0xb5")](qa("0xb6"),new U(t,s,this._suggestions)),this[qa("0x60")]("discardSelectedSuggestions");const r=t.plugins[qa("0x58")]("CommentsRepository");this[qa("0x112")](r,qa("0x135"),((t,{threadId:e})=>{const n=this[qa("0xfa")][qa("0x58")](e);n&&n[qa("0xf4")]&&1===n[qa("0xf4")][qa("0xbe")]&&this[qa("0xbb")](e,{hasComments:!0})}),{priority:qa("0xa3")}),this.listenTo(r,qa("0x52"),((t,{threadId:e})=>{const n=this[qa("0xfa")][qa("0x58")](e);n&&n.commentThread&&!n.commentThread.length&&this[qa("0xbb")](e,{hasComments:!1})}),{priority:qa("0xa3")})}set[qa("0xb0")](t){if(this[qa("0x131")])throw new e.CKEditorError(qa("0x2f"),this);this[qa("0x131")]=t}get[qa("0xb0")](){return this._adapter}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[qa("0xfa")][qa("0xab")]())t&&!e[qa("0xd8")]||n[qa("0x115")](e);return e?n[qa("0x111")]((t=>t[qa("0x11")]())):n}getSuggestion(t){const n=this[qa("0xfa")].get(t);if(!n)throw new e.CKEditorError("track-changes-suggestion-not-found",this);return n}[qa("0xc0")](t){return this[qa("0xfa")][qa("0x1f")](t)}[qa("0xfe")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[qa("0xbd")][qa("0xf2")](":"),i=this[qa("0xfa")][qa("0x58")](n)||this._createSuggestion(s,r,n,e,o);if(this._addThreadToSuggestion(i),this[qa("0xb8")](i,s,r||null,e),i.createdAt=t[qa("0xdd")],i._isDataLoaded=!0,o&&o["@external"]){const t=o[qa("0xd1")],e=this[qa("0xe9")](t[qa("0x7f")]);i[qa("0x39")]=t.createdAt,i[qa("0x84")]=e,i[qa("0x1d")]=!0}else i[qa("0x39")]=t.createdAt;switch(t[qa("0xaa")]&&(i.data=t[qa("0xaa")]),t[qa("0x11a")]&&(i[qa("0x11a")]=t[qa("0x11a")]),this[qa("0x131")]&&this[qa("0x131")].addSuggestion||(i[qa("0x6f")]=!0),this[qa("0x105")][qa("0x58")](i)){case"notReady":this[qa("0x105")].set(i,qa("0xfb"));break;case qa("0x44"):i[qa("0xd8")]?(this[qa("0x5b")](new Set([i])),this[qa("0x82")](new Set([i])),this[qa("0x105")][qa("0x1a")](i,qa("0x11e")),this[qa("0x94")](qa("0x138"),i)):this[qa("0x105")].set(i,qa("0x38"))}return i}[qa("0xf5")](t){this[qa("0x26")]((()=>{this.editor.model[qa("0x104")]((()=>{for(const e of t[qa("0x13")]())e.accept()}))}))}[qa("0x93")](t){this.forceDefaultExecution((()=>{this.editor[qa("0x13f")][qa("0x104")]((()=>{for(const e of t[qa("0x13")]())e.discard()}))}))}[qa("0x60")](t,n){const o=this.editor[qa("0x71")][qa("0x58")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[qa("0x66")][qa("0xb5")](o),n&&o.on(qa("0x17"),((t,e)=>{this.trackChangesCommand.value&&(this[qa("0x90")]||e.length>0&&e[e.length-1]&&e[e[qa("0xbe")]-1][qa("0x26")]||(t[qa("0x12d")]=n(((...t)=>o[qa("0x17")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:qa("0xcd")})}[qa("0x26")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[qa("0x90")]=!0;try{n=t()}catch(t){o=t}return s||(this[qa("0x90")]=!1),o&&e.CKEditorError[qa("0xeb")](o,this),n}markInsertion(t,n=null,o={}){if(t[qa("0x113")])return null;const s=this[qa("0xe3")][qa("0x126")][qa("0x58")]("Users").me;for(const{suggestion:e,meta:s}of this[qa("0xbc")](t,"insertion"))if(s[qa("0x140")]){if(!s[qa("0xf3")]){if(s[qa("0x27")]){if(!this[qa("0x70")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[qa("0x4b")](e,t[qa("0x9e")],t[qa("0x24")]);break}if(n==e[qa("0x9f")]&&rc(e,o)){const n=e[qa("0x10c")]();return n.start[qa("0x8f")](t[qa("0x24")])?this[qa("0x5e")](e,this[qa("0xc8")][qa("0x108")](t[qa("0x9e")],n[qa("0x24")])):this[qa("0x5e")](e,this[qa("0xc8")][qa("0x108")](n[qa("0x9e")],t[qa("0x24")])),e}}const r=(0,e.uid)(),i=s.id,x=n?qa("0xee")+n:"insertion",a=this[qa("0x4a")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[qa("0x6a")](x,r,i,t),a}[qa("0xd2")](t,n="multi",o={}){const s=this.editor.plugins[qa("0x58")](qa("0x6")).me,r=this[qa("0x69")][qa("0x86")](qa("0x2e"),n,qa("0x63"));for(const e of this[qa("0xc9")]())if(e[qa("0x84")].id==s.id&&qa("0x2e")==e[qa("0xbd")]&&e[qa("0x9f")]==n&&rc(e,o)&&(r(e[qa("0xd4")](),t)||r(t,e[qa("0xd4")]()))){for(const n of t)e[qa("0x123")](n);return e}for(const{suggestion:e,meta:n}of this[qa("0xbc")](t,"insertion")){if(!n[qa("0x140")])continue;if(!this[qa("0x70")]&&n[qa("0x27")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e[qa("0xd4")]())for(const e of t)if(!n.containsRange(e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=qa("0xee")+n,c=this[qa("0x4a")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[qa("0x6a")](a,i,x,e,Zo[qa("0xf7")]());return c}[qa("0x143")](t,n,o=null,s={}){if(o=o||tc(n),t[qa("0x113")])return null;if("never"===this[qa("0x89")]){const e=this[qa("0x69")][qa("0x86")](qa("0x67"),o,qa("0x9"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6")).me,i=[];if("always"!==this[qa("0x89")])for(const{suggestion:e,meta:n}of this[qa("0xbc")](t,qa("0x2e")))n.isOwn&&!n[qa("0x10")]&&i.push(...e[qa("0xd4")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[qa("0x115")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n.length;){const o=n[e][qa("0x3f")](t);n[qa("0x7a")](e,1,...o),e+=o[qa("0xbe")]}}return n}(t,i);x[qa("0xbe")]&&this[qa("0xc8")][qa("0x104")]((()=>{for(const t of x){const e=this[qa("0x69")][qa("0x86")](qa("0x67"),o,qa("0x9"));this[qa("0x26")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[qa("0x9e")],a=t[qa("0x24")];for(const{suggestion:e,meta:n}of this[qa("0xbc")](t,qa("0x67"))){if(!n[qa("0x140")])continue;if(e[qa("0x9f")]!=o)continue;if(!rc(e,s))continue;const r=e[qa("0x10c")]();if(r.containsRange(t,!0))return null;x=x[qa("0x79")](r[qa("0x9e")])?x:r.start,a=a[qa("0x78")](r[qa("0x24")])?a:r[qa("0x24")],i?r.start[qa("0x79")](i[qa("0x10c")]()[qa("0x9e")])?(i[qa("0xc2")](),i=e):e[qa("0xc2")]():i=e}const c=this._model[qa("0x108")](x,a);if(i)this[qa("0x5e")](i,c);else{const t=(0,e.uid)(),i=r.id;this[qa("0x4a")]({id:t,type:qa("0x5f")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[qa("0x6a")](qa("0x5f")+o,t,i,c)}}return null}[qa("0xf6")](t,n,o=[],s=null,r={}){n[qa("0xea")]||(n[qa("0xea")]=n[qa("0x13a")]),n.multipleBlocks=t.is(qa("0xb3")),s=s||tc(n);const i=o[qa("0x111")]((t=>nc(t,this[qa("0xc8")]))),x=t.is(qa("0xb3"))?t:nc(t,this[qa("0xc8")]);if("never"===this[qa("0x89")]){const t=this[qa("0x69")][qa("0x86")](qa("0x8a"),s,qa("0x9"));return this[qa("0x26")]((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[qa("0x49")](t)){a=!1;break}if(a&&qa("0x80")!==this[qa("0x89")]){const t=this[qa("0x69")][qa("0x86")](qa("0x8a"),s,qa("0x9"));return this[qa("0x26")]((()=>t([x],n,r))),null}let c=null,l=x.start,u=x[qa("0x24")];for(const{suggestion:t,meta:e}of this[qa("0xbc")](x,"formatBlock")){if(!e[qa("0x140")])continue;if(e[qa("0xf3")]||e.containsRangeInObject||e[qa("0x10")])continue;if(t[qa("0xaa")][qa("0xea")]!=n[qa("0xea")])continue;if(!rc(t,r))continue;const o=t.getFirstRange();if(t[qa("0x9f")]==s){if(o[qa("0x7b")](x,!0))return null;l=l[qa("0x79")](o.start)?l:o.start,u=u[qa("0x78")](o[qa("0x24")])?u:o[qa("0x24")],c?o.start[qa("0x79")](c.getFirstRange()[qa("0x9e")])?(c.removeMarkers(),c=t):t[qa("0xc2")]():c=t}else{const e=x[qa("0xe2")](o);this._cutOutSuggestionMarker(t,e)}}const d=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6")).me,g=(0,e.uid)(),m=d.id;if(c)return this._setSuggestionRange(c,this[qa("0xc8")][qa("0x108")](l,u)),c;{const t=this._setSuggestionData({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[qa("0x6a")](qa("0x3d")+s,g,m,this[qa("0xc8")][qa("0x108")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n.formatGroupId||(n[qa("0xea")]=n[qa("0x13a")]);const i=t[0];n.multipleBlocks=i.is(qa("0xb3")),s=s||tc(n);const x=o.map((t=>nc(t,this._model))),a=i.is(qa("0xb3"))?t:t[qa("0x111")]((t=>nc(t,this._model)));if(qa("0xa1")===this._trackFormatChanges){const t=this[qa("0x69")][qa("0x86")](qa("0x8a"),s,qa("0x9"));return this[qa("0x26")]((()=>t(a,n,r))),null}x[qa("0x115")](...a);let c=!0;for(const t of x)if(!this[qa("0x49")](t)){c=!1;break}if(c&&qa("0x80")!==this[qa("0x89")]){const t=this[qa("0x69")][qa("0x86")](qa("0x8a"),s,qa("0x9"));return this[qa("0x26")]((()=>t(a,n,r))),null}const l=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6")).me;for(const t of this[qa("0xc9")]()){if(t[qa("0x84")].id!=l.id)continue;if(qa("0x8a")!=t[qa("0xbd")]||t[qa("0xaa")].formatGroupId!=n.formatGroupId)continue;if(!rc(t,r))continue;const e=t[qa("0x9f")]==s;for(let n=0;n<a[qa("0xbe")];n++){const o=a[n];for(const s of t[qa("0xba")]()){const r=s[qa("0x13c")]();if(o[qa("0x8f")](r)){e?(a[qa("0x7a")](n,1),n--):t.removeMarker(s[qa("0x5d")]);break}}}}if(0==a[qa("0xbe")])return null;const u=this[qa("0x69")][qa("0x86")](qa("0x8a"),s,"join");for(const t of this.getSuggestions())if(t[qa("0x84")].id==l.id&&qa("0x8a")==t.type&&t[qa("0xaa")].formatGroupId==n.formatGroupId&&t[qa("0x9f")]==s&&rc(t,r)&&(u(t[qa("0xd4")](),a)||u(a,t[qa("0xd4")]()))){for(const e of a)t[qa("0x123")](e);return t}const d=(0,e.uid)(),g=l.id,m="formatBlock:"+s,f=this._setSuggestionData({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this._addSuggestionMarker(m,d,g,t,Zo[qa("0xf7")]());return f}[qa("0x125")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[qa("0xe3")][qa("0x126")].get(qa("0x6")).me,r=new i.LiveRange(t.start,t[qa("0x24")]);for(const{suggestion:t,meta:e}of this[qa("0xbc")](r,qa("0x2e")))if(e[qa("0x140")]&&!e.isNextTo)if(t[qa("0x4c")]){const e=t[qa("0xd4")]()[qa("0xc7")]((t=>qa("0x98")!=t[qa("0x12")][qa("0x15")]));if(e.every((t=>r[qa("0x7b")](t,!0)))&&t[qa("0xff")](),e.some((t=>t[qa("0x7b")](r,!0)))){const t=this._suggestionFactory[qa("0x86")](qa("0x2b"),n,"accept");return this[qa("0x26")]((()=>t([r],null,o))),null}}else{const e=r[qa("0xe2")](t[qa("0x10c")]());null!==e&&t[qa("0x99")]([e],null,o)}if(r[qa("0x30")](),r.isCollapsed||"$graveyard"==r.root[qa("0x15")])return null;let x=null,a=r[qa("0x9e")],c=r[qa("0x24")];const l=this[qa("0xbc")](r,qa("0x2b"));for(const{suggestion:t,meta:e}of l){const n=this[qa("0xc8")].createRange(a,c);if(e[qa("0x140")]&&(this[qa("0x70")]||!e[qa("0x27")]&&!e.isInsideObject))if(t[qa("0x4c")]){if(!rc(t,o))continue;let e=!0;for(const o of t[qa("0xd4")]()){if(o[qa("0x7b")](n,!0))return t;n[qa("0x7b")](o)||(e=!1)}e&&t.discard()}else{const e=t.getFirstRange();if(e[qa("0x7b")](n,!0))return t;if(!rc(t,o)){n[qa("0x7b")](e)?t.removeMarkers():e[qa("0x139")](a)?a=e[qa("0x24")]:e[qa("0x139")](c)&&(c=e[qa("0x9e")]);continue}a=a[qa("0x79")](e[qa("0x9e")])?a:e[qa("0x9e")],c=c[qa("0x78")](e[qa("0x24")])?c:e[qa("0x24")],o=Object.assign({},t[qa("0x11a")]),x?e.start[qa("0x79")](x[qa("0x10c")]()[qa("0x9e")])?(x[qa("0xc2")](),x=t):t[qa("0xc2")]():x=t}}if(x)return this[qa("0x5e")](x,this[qa("0xc8")][qa("0x108")](a,c)),x;{const t=(0,e.uid)(),r=this[qa("0xc8")][qa("0x108")](a,c),i=s.id,x=n?qa("0x9d")+n:"deletion",l=this[qa("0x4a")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[qa("0x6a")](x,t,i,r),l}}[qa("0x85")](t,n=qa("0x31"),o={}){const s=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6")).me,r=t[qa("0x111")]((t=>new i.LiveRange(t[qa("0x9e")],t[qa("0x24")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,qa("0x2e")))e[qa("0x140")]&&!e[qa("0xf3")]&&x.add(t);for(const e of x)if(e.isMultiRange){const s=e.getRanges();if((!e.attributes||!e[qa("0x11a")][qa("0xf")])&&s[qa("0xd5")]((t=>r.some((e=>e[qa("0x7b")](t,!0)))))&&e[qa("0xff")](),r.every((t=>s[qa("0x36")]((e=>e[qa("0x7b")](t,!0)))))){const e=this._suggestionFactory[qa("0x86")](qa("0x2b"),n,qa("0x9"));return this[qa("0x26")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[qa("0x36")]((e=>e[qa("0x7b")](t,!0)))&&e[qa("0xff")](),r[qa("0xd5")]((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[qa("0x86")]("deletion",n,qa("0x9"));return this[qa("0x26")]((()=>t(r,null,o))),null}}const a=this[qa("0x69")][qa("0x86")](qa("0x2b"),n,qa("0x63"));let c=null;for(const t of this.getSuggestions())if(t[qa("0x84")].id==s.id&&t[qa("0xd8")]&&qa("0x2b")==t[qa("0xbd")]&&t.subType==n&&rc(t,o)&&(a(t[qa("0xd4")](),r)||a(r,t[qa("0xd4")]())))if(c){if(t[qa("0xf4")]&&t[qa("0xf4")][qa("0xbe")])continue;for(const e of t.getRanges())c[qa("0xca")](e)||c[qa("0x123")](e);t[qa("0xc2")]()}else{c=t;for(const e of r)t[qa("0xca")](e)||t[qa("0x123")](e)}if(c)return c;x[qa("0x119")]();for(const{suggestion:t,meta:e}of this._findSuggestions(r,qa("0x2b")))e.isOwn&&(this._mergeNestedSuggestions||!e[qa("0x27")]&&!e[qa("0x10")])&&rc(t,o)&&x[qa("0xb5")](t);for(const t of x){const e=t[qa("0xd4")]();if((!o||!o.skipNestingCheck)&&r[qa("0xd5")]((t=>e.some((e=>e[qa("0x7b")](t,!0))))))return t;(!t[qa("0x11a")]||!t[qa("0x11a")][qa("0xf")])&&e[qa("0xd5")]((t=>r[qa("0x36")]((e=>e[qa("0x7b")](t,!0)))))&&t[qa("0xff")]()}const l=(0,e.uid)(),u=s.id,d=qa("0x9d")+n,g=this[qa("0x4a")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t.detach(),t[qa("0x113")]||qa("0x98")==t.root[qa("0x15")]||this[qa("0x6a")](d,l,u,t,Zo[qa("0xf7")]());return g}[qa("0x5e")](t,e){const n=t[qa("0x48")]();this[qa("0xc8")].change((t=>{t[qa("0x61")](n,{range:e})}))}[qa("0x18")](t){const e=t.id,n=this[qa("0xe3")][qa("0x12a")].get(qa("0x14"));this[qa("0xc5")][qa("0xcb")](e)||this._commentsRepository[qa("0x9b")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[qa("0xc5")][qa("0xa5")](e);o[qa("0xdb")](qa("0x122")),o.isRemovable=!1,t[qa("0xf4")]=o}[qa("0xb8")](t,n,o,s){if(t[qa("0xbd")]!=n||t.subType!=o||t[qa("0x91")].id!=s)throw this[qa("0xe3")].enableReadOnlyMode("track-changes-suggestion-data-mismatch"),new e.CKEditorError(qa("0xec"),this)}[qa("0x5a")](t,n){const o=t.getFirstRange();if(n[qa("0x8f")](o))t.removeMarkers();else if(o[qa("0x7b")](n)){const s=this[qa("0xc8")][qa("0x4e")](n[qa("0x9e")][qa("0x141")],"end");this[qa("0x5e")](t,this[qa("0xc8")][qa("0x108")](o[qa("0x9e")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t[qa("0x9f")];this[qa("0x4a")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[qa("0xaa")],attributes:t[qa("0x11a")]});const a=this._model[qa("0x4e")](n[qa("0x24")][qa("0x1b")],"after"),c=this[qa("0xc8")].createRange(a,o[qa("0x24")]);this[qa("0x6a")](x,r,i,c)}else if(o[qa("0x139")](n[qa("0x9e")])){const e=this[qa("0xc8")][qa("0x4e")](n[qa("0x9e")][qa("0x141")],qa("0x24"));this._setSuggestionRange(t,this._model.createRange(o[qa("0x9e")],e))}else{const e=this[qa("0xc8")][qa("0x4e")](n[qa("0x24")].parent,qa("0x120"));this[qa("0x5e")](t,this._model.createRange(e,o[qa("0x24")]))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this[qa("0xbc")](t,qa("0x2e"))){if(!n.isOwn)continue;const o=e[qa("0xd4")]();for(const e of o)if(!t.getDifference(e)[qa("0xbe")])return!0}return!1}[qa("0x9c")](t){const n=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6"))[qa("0x92")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[qa("0xe9")](t){const e=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0x6")),n=(0,r.hashObject)(qa("0x56")+t);return e.getUser(n)||e[qa("0x127")]({id:n,name:t})}[qa("0xed")](t,e,n,o,s){const r=this[qa("0x9c")](o),i=this[qa("0x69")][qa("0x57")](t,e,n,r,s,(t=>this._updateSuggestionData(n,{attributes:t})));return this[qa("0x112")](i,qa("0x9"),(()=>{this._updateSuggestionData(n,{state:"accepted"})}),{priority:qa("0xcd")}),this[qa("0x112")](i,"discard",(()=>{this[qa("0xbb")](n,{state:qa("0xe4")})}),{priority:qa("0xcd")}),this[qa("0xfa")][qa("0x1a")](n,i),this[qa("0x105")][qa("0x1a")](i,"notReady"),i}[qa("0x8d")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e[qa("0xbe")]>=5?e[2]:null,id:e[qa("0xbe")]<5?e[2]:e[3],authorId:e[qa("0xbe")]<5?e[3]:e[4],markerCount:6==e[qa("0xbe")]?e[5]:null}}[qa("0x4b")](t,n,o){const s=t[qa("0x10c")](),r=s[qa("0x9e")],i=s[qa("0x24")];this[qa("0x5e")](t,this[qa("0xc8")][qa("0x108")](r,n));const x=(0,e.uid)(),a=t[qa("0x91")].id,c=t[qa("0xbd")]+(t[qa("0x9f")]?":"+t[qa("0x9f")]:"");this[qa("0x4a")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[qa("0x11a")],data:t[qa("0xaa")]}),qa("0x8a")==t[qa("0xbd")]&&(o=this[qa("0xc8")][qa("0x43")](o[qa("0x1b")])),this[qa("0x6a")](c,x,a,this[qa("0xc8")][qa("0x108")](o,i))}[qa("0xbc")](t,e=null){const n=[],o=this.editor[qa("0x126")][qa("0x58")](qa("0x6")).me;Array.isArray(t)||(t=[t]);for(const s of this.getSuggestions()){if(!s[qa("0xd8")])continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s.getRanges()){for(const i of t){const t=i[qa("0x9e")][qa("0x8f")](e[qa("0x24")])||i.end[qa("0x8f")](e[qa("0x9e")]);if(t||i[qa("0xe2")](e)){const x=i[qa("0x7b")](e)&&Qa(this[qa("0xc8")][qa("0x72")],e[qa("0x9e")],i),a=e.containsRange(i)&&Qa(this[qa("0xc8")][qa("0x72")],i[qa("0x9e")],e);n[qa("0x115")]({suggestion:s,meta:{isOwn:o==s[qa("0x84")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[qa("0x6a")](t,e,n,o,s){this[qa("0xc8")][qa("0x104")]((r=>{let i=qa("0x4d")+t+":"+e+":"+n;s&&(i=i+":"+s),r.addMarker(i,{range:o,usingOperation:!0,affectsData:!0})}))}[qa("0x4f")](t){const e=t[qa("0x10e")],n=t[qa("0xd")];t[qa("0x10e")]=null,null!=e&&(e[qa("0xd")]=null),t[qa("0xd")]=null,null!=n&&(n[qa("0x10e")]=null),qa("0x11e")==this[qa("0x105")].get(t)&&(this._suggestionState[qa("0x1a")](t,"removed"),this[qa("0x94")]("suggestionUnloaded",t,e,n))}[qa("0x4a")](t){const n=t.id,o=this[qa("0xfe")](t);if(this[qa("0x131")]&&this[qa("0x131")].addSuggestion){const s=this[qa("0xe3")][qa("0x126")][qa("0x58")](qa("0xc6")),r=o[qa("0x3e")],i=o.subType?o[qa("0xbd")]+":"+o[qa("0x9f")]:o[qa("0xbd")],x=this[qa("0xe3")][qa("0x12b")],a=s[qa("0xb5")](Yo(x,qa("0x76"))),c={id:n,type:i,hasComments:r,data:t[qa("0xaa")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[qa("0x11a")]};this[qa("0x131")][qa("0x23")](c)[qa("0xb4")]((t=>{o[qa("0x6f")]=!0,s.remove(a),t&&t[qa("0xdd")]&&(this[qa("0xfa")].get(n)[qa("0xdd")]=t.createdAt)}))[qa("0x28")]((t=>{throw(0,e.logWarning)(qa("0xe1")),this[qa("0xe3")][qa("0x13f")][qa("0x54")]({isUndoable:!1},(()=>{o[qa("0xff")]()})),o.stopListening(),this[qa("0xfa")].delete(o.id),this[qa("0x105")][qa("0x59")](o),t}))}return o}[qa("0xbb")](t,e){const n=this[qa("0xe3")][qa("0x126")].get(qa("0xc6")),o=this[qa("0x100")](t);if(this[qa("0x131")]&&this[qa("0x131")][qa("0xc4")])if(o[qa("0x6f")]){const o=n.add(Yo(this.editor[qa("0x12b")],qa("0x76")));this[qa("0x131")][qa("0xc4")](t,e)[qa("0xb4")]((()=>{n[qa("0x97")](o)}))}else o.on(qa("0x124"),(()=>{this._updateSuggestionData(t,e)}))}[qa("0x129")](t){if(!this[qa("0x131")]||!this[qa("0x131")].getSuggestion)throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[qa("0x131")].getSuggestion(t)}[qa("0x13d")](t){const{id:e,type:n,subType:o,authorId:s}=this[qa("0x8d")](t),r=this[qa("0xfa")][qa("0x58")](e)||this[qa("0xed")](n,o,e,s,{});switch(this[qa("0xb8")](r,n,o,s),this[qa("0x105")].get(r)){case qa("0xb7"):this[qa("0x129")](e)[qa("0xb4")]((t=>{let n=Promise.resolve();t[qa("0x3e")]&&(n=this[qa("0xc5")][qa("0x40")]({channelId:this[qa("0xe3")][qa("0x12a")][qa("0x58")](qa("0x14")),threadId:e})),n[qa("0xb4")]((()=>{this[qa("0xfe")](t)._saved=!0}))})),this[qa("0x105")][qa("0x1a")](r,qa("0x44"));break;case qa("0x38"):this._updateSuggestionData(e,{state:"open"});case qa("0xfb"):this[qa("0x105")][qa("0x1a")](r,qa("0x11e")),this[qa("0x94")](qa("0x138"),r);break;case qa("0x11e"):this[qa("0x94")]("suggestionChanged",r)}return r[qa("0x118")](t),r}[qa("0x5b")](t){const e=Array[qa("0xe")](t)[qa("0xc7")]((t=>!t[qa("0x4c")])),n=this[qa("0xc9")]({skipNotAttached:!0})[qa("0xc7")]((t=>!t[qa("0x4c")])),o=n.filter((e=>!t[qa("0x1f")](e))),s=new Map(n[qa("0x111")]((t=>[t,this[qa("0x69")][qa("0x86")](t[qa("0xbd")],t[qa("0x9f")],qa("0x1"))]))),r=new Map(n[qa("0x111")]((t=>[t,t[qa("0x10c")]()]))),i=new Set,x=new Set;for(let t=0;t<e[qa("0xbe")];t++)a(e[t],e,t+1);for(let t=0;t<e[qa("0xbe")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x.has(n)&&n[qa("0x10e")]&&(n[qa("0x10e")][qa("0xd")]===n&&(n[qa("0x10e")][qa("0xd")]=null),n.previous=null),!i[qa("0x1f")](n)&&n.next&&(n[qa("0xd")][qa("0x10e")]===n&&(n[qa("0xd")][qa("0x10e")]=null),n[qa("0xd")]=null)}function a(t,e,n){for(let o=n;o<e[qa("0xbe")];o++){const n=c(t,e[o]);n&&(n[0].next=n[1],n[1].previous=n[0],i[qa("0xb5")](n[0]),x[qa("0xb5")](n[1]))}}function c(t,e){if(t.author.id!==e[qa("0x84")].id)return null;const n=s[qa("0x58")](t)(t,e,r.get(t),r.get(e));return n&&s[qa("0x58")](e)(t,e,r[qa("0x58")](t),r.get(e))?n[1].commentThread&&n[1].commentThread.length?null:n:null}}_joinWithAdjacentSuggestions(t){const e=Array.from(t),n=this[qa("0xc9")]({skipNotAttached:!0}),o=n.filter((e=>!t[qa("0x1f")](e))),s=new Map(e[qa("0x111")]((t=>[t,this._suggestionFactory[qa("0x86")](t[qa("0xbd")],t[qa("0x9f")],"join")]))),r=new Map(n[qa("0x111")]((t=>[t,t[qa("0xd4")]()])));for(let t=0;t<e[qa("0xbe")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[qa("0xbe")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[qa("0xbe")];i++){const o=n[i];if(o.type!==e[qa("0xbd")]||o[qa("0x84")].id!==e[qa("0x84")].id||o[qa("0x9f")]!==e[qa("0x9f")])continue;if(!sc(e,o))continue;const x=s[qa("0x58")](e),a=r[qa("0x58")](e),c=r.get(o),l=e.commentThread&&e.commentThread[qa("0xbe")],u=o.commentThread&&o.commentThread[qa("0xbe")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[qa("0x59")](e),!0;if(!u&&x(a,c))return t[qa("0x8c")](e,o),r[qa("0x59")](o),!0}return!1}}_joinSuggestions(t,e){if(t[qa("0x4c")])for(const n of e[qa("0xd4")]())t.addRange(n);else{const n=e[qa("0x10c")]()[qa("0x24")];this._setSuggestionRange(t,this._model[qa("0x108")](t[qa("0x10c")]()[qa("0x9e")],n))}e[qa("0xc2")]()}}class Ja{constructor(t){this[qa("0x133")]=t,this[qa("0xc8")]=t[qa("0x13f")],this._customCallbacks=new Map,this[qa("0x81")]=new Map,this[qa("0xfd")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[qa("0xc8")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,qa("0x9"))(...n),onDiscard:(...n)=>this[qa("0x86")](t,e,qa("0xff"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this[qa("0x107")][qa("0x1a")](s,o)}getSuggestionCallback(t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[qa("0x58")](o)||this[qa("0x81")].get(t+":"+n)}[qa("0xfd")](){const t=()=>!1,e=t=>{t[qa("0xbf")](((t,e)=>t.start[qa("0x79")](e[qa("0x9e")])?1:-1)),this[qa("0xc8")][qa("0x104")]((e=>{for(const n of t){let t;t=n[qa("0x24")][qa("0x35")]&&n.end[qa("0x1b")]==n[qa("0x9e")].nodeAfter?e[qa("0x13b")](n.start[qa("0xf1")],"on"):e[qa("0x13b")](n),this._model[qa("0x7c")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[qa("0xc8")][qa("0x104")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[qa("0x111")]((t=>(Za(t)&&(t=this[qa("0xc8")][qa("0x108")](t[qa("0x24")])),t)))[qa("0xc7")]((t=>qa("0x98")!==t[qa("0x12")].rootName));if(r[qa("0xbe")]<1)return;const x=Array.from(this._model.document[qa("0xce")][qa("0xd4")]()).map((t=>i.LiveRange[qa("0x16")](t)));n.setSelection(r);for(const t of this[qa("0x133")].commands[qa("0x71")]())t[qa("0xa7")]();s.push({forceDefaultExecution:!0}),this[qa("0x133")][qa("0x17")](o,...s);const a=x.filter((t=>qa("0x98")!=t.root[qa("0x15")]));a.length>0&&n[qa("0x77")](a);for(const t of x)t[qa("0x30")]()}))},o=(t,e)=>1==t.length&&1==e.length&&t[0][qa("0x24")][qa("0x8f")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[qa("0xc8")])?[e,t]:null;this[qa("0x81")][qa("0x1a")](qa("0x3a"),t),this[qa("0x81")][qa("0x1a")](qa("0x101"),e),this._defaultCallbacks[qa("0x1a")](qa("0x11d"),o),this[qa("0x81")][qa("0x1a")](qa("0x5c"),s),this[qa("0x81")][qa("0x1a")](qa("0x8b"),e),this._defaultCallbacks[qa("0x1a")](qa("0x37"),t),this[qa("0x81")][qa("0x1a")](qa("0x6e"),o),this[qa("0x81")][qa("0x1a")](qa("0x137"),s),this[qa("0x81")][qa("0x1a")]("formatInline:accept",n),this[qa("0x81")][qa("0x1a")](qa("0x2a"),t),this._defaultCallbacks[qa("0x1a")](qa("0xfc"),o),this[qa("0x81")][qa("0x1a")](qa("0x109"),t),this._defaultCallbacks[qa("0x1a")](qa("0x144"),n),this[qa("0x81")][qa("0x1a")](qa("0x50"),t),this[qa("0x81")][qa("0x1a")](qa("0xa6"),o),this[qa("0x81")][qa("0x1a")](qa("0xe8"),t)}}function Qa(t,e,n){for(const o of e[qa("0x1b")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o.root==o)return!1;if(!n[qa("0xe0")](o))return!1;if(t[qa("0xb2")](o)||t[qa("0x96")](o))return!0}return!1}function Za(t){return t[qa("0x24")].parent==t[qa("0x9e")].nodeAfter&&t[qa("0x24")].isAtStart}function Ya(t,e,n,o){const s=t=>!t.item.is(qa("0x10d"))&&!o[qa("0xb2")](t.item),r=t[qa("0x9e")][qa("0x42")](s),i=t[qa("0x24")][qa("0x42")](s,{direction:qa("0x117")});return!(t[qa("0x9e")].isEqual(r)&&t[qa("0x24")][qa("0x8f")](i)||(r.isBefore(i)?n[qa("0x61")](e,{range:n.createRange(r,i)}):n[qa("0x55")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[qa("0x9e")][qa("0xf1")];return e&&e.is(qa("0xe7"))}function nc(t,e){const n=e.schema.isObject(t)||e[qa("0x72")][qa("0x11c")](t);return e[qa("0x108")](e.createPositionAt(t,"before"),n?e.createPositionAfter(t):e[qa("0x4e")](t,qa("0x24")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[qa("0x24")][qa("0x8f")](o.start))return!0;if(t.type!=e[qa("0xbd")])return!1;if(!n[qa("0x24")][qa("0x87")](o[qa("0x9e")]))return!1;const r=s.createRange(n.end,o[qa("0x9e")])[qa("0x83")]();for(const t of r)if(["elementStart",qa("0xcc")].includes(t[qa("0xbd")])&&s.schema[qa("0x96")](t[qa("0xa9")]))return!1;return!0}function sc(t,e){return!(!t[qa("0x10a")]||!e._isDataLoaded)&&Go(t.attributes,e[qa("0x11a")])}function rc(t,e){const n=ic(t.attributes),o=ic(e);if(!t[qa("0x10a")])return!1;for(const t of Object[qa("0xb9")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object.assign({},t);return delete e[qa("0xf")],delete e[qa("0x102")],e}const xc=["destroy","acceptSuggestion","canDiscard","get","unbind","plugins","_pendingAction","commentThreadController","canAccept","locale","_editor","_acceptCommand","change:isDirty","execute","_removePendingAction","view","PendingActions","discardSuggestion","listenTo","canEditAt","_setPendingAction","_discardCommand","bind","PENDING_ACTION_SUGGESTION","getRanges","isEnabled","commands","isDirty","model"];var ac,cc;ac=xc,cc=222,function(t){for(;--t;)ac.push(ac.shift())}(++cc);const lc=function(t,e){return xc[t-=0]};class uc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[lc("0x9")]=e,this[lc("0x19")]=n,this.commentThreadController=o,this._editor=t,this[lc("0x15")]=t[lc("0x7")][lc("0xd")](lc("0xb")),this[lc("0x2")]=t[lc("0x7")].get(lc("0x1b")),this[lc("0x19")][lc("0x3")](lc("0x6")).to(this._acceptCommand,this._discardCommand,((t,e)=>t||e)),this[lc("0x19")][lc("0x3")](lc("0x12")).to(this[lc("0x15")],lc("0x6"),(t=>t&&this[lc("0x14")].model[lc("0x0")](e[lc("0x5")]()))),this.view[lc("0x3")](lc("0xc")).to(this[lc("0x2")],lc("0x6"),(t=>t&&this[lc("0x14")][lc("0x9")][lc("0x0")](e[lc("0x5")]()))),this._pendingAction=null,n[lc("0x8")]&&this[lc("0x1")](),this[lc("0x1c")](n,lc("0xb"),(()=>this[lc("0xb")]())),this[lc("0x1c")](n,lc("0x1b"),(()=>this[lc("0x1b")]())),this[lc("0x1c")](n,lc("0x16"),(()=>{n[lc("0x8")]?this[lc("0x1")]():this[lc("0x18")]()}))}acceptSuggestion(){this._acceptCommand[lc("0x17")](this.model.id)}[lc("0x1b")](){this[lc("0x2")][lc("0x17")](this[lc("0x9")].id)}destroy(){this[lc("0x19")][lc("0xe")](lc("0x6")),this[lc("0x19")][lc("0xe")]("canAccept"),this[lc("0x19")][lc("0xe")](lc("0xc")),this.stopListening(),this[lc("0x11")][lc("0xa")](),this._pendingAction&&this[lc("0x18")]()}[lc("0x1")](){const t=Yo(this[lc("0x14")][lc("0x13")],lc("0x4"));this[lc("0x10")]=this._editor.plugins.get(lc("0x1a")).add(t)}[lc("0x18")](){null!==this[lc("0x10")]&&this[lc("0x14")][lc("0xf")][lc("0xd")]("PendingActions").remove(this[lc("0x10")]),this._pendingAction=null}}const dc=["destroy","updateComment","cancel","setData","isActive","removeComment","commentThread","isReadOnly","_config","locale","fire","_model","commentsListView","_createCommentThreadInputView","isDirty","bind","authoredAt","value","editorConfig","focus","length","submit","_localUser","delegate","canAccept","commentThreadInputView","showInput","set","element","disableComments","commentInputView","canDiscard","assign","hasDirtyComment"];var gc,mc;gc=dc,mc=145,function(t){for(;--t;)gc.push(gc.shift())}(++mc);const fc=function(t,e){return dc[t-=0]};class hc extends s.View{constructor(t,e,n,o){super(t),this[fc("0x3")]=null,this.commentThreadInputView=null,this[fc("0x12")]("isActive",!1),this[fc("0x12")](fc("0x7"),e[fc("0x7")]),this[fc("0x6")](fc("0x7")).to(e),this.set("descriptionParts",[]),this[fc("0x12")](fc("0x5"),!1),this[fc("0x12")]("isEnabled",!1),this[fc("0x12")](fc("0xf"),!1),this[fc("0x12")](fc("0x16"),!1),this[fc("0x2")]=e,this[fc("0xd")]=n,this[fc("0x21")]=o,o[fc("0x14")]?this[fc("0x12")](fc("0xb"),1):this._createCommentViews()}focus(){this[fc("0x13")][fc("0xa")]()}[fc("0x19")](){this.commentsListView&&this[fc("0x3")].destroy(),this[fc("0x10")]&&this[fc("0x10")][fc("0x19")](),super[fc("0x19")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0x21")];this[fc("0x3")]=new t(this[fc("0x0")],this[fc("0x2")][fc("0x1f")],Object[fc("0x17")]({CommentView:this[fc("0x21")].CommentView},this[fc("0x21")])),this[fc("0x3")][fc("0xe")](fc("0x1e")).to(this),this[fc("0x3")].delegate(fc("0x1a")).to(this),this[fc("0x3")].bind(fc("0x1d")).to(this),this[fc("0x12")](fc("0xb"),this[fc("0x3")][fc("0xb")]+1),this[fc("0x6")](fc("0xb")).to(this.commentsListView,fc("0xb"),(t=>t+1)),this[fc("0x10")]=this[fc("0x4")](),this.on("removeComment",(()=>this[fc("0xa")]())),this[fc("0x6")]("isDirty").to(this[fc("0x3")],fc("0x18"),this[fc("0x10")].commentInputView,"value",((t,e)=>t||!!e))}[fc("0x4")](){const{CommentThreadInputView:t}=this._config,e=new t(this[fc("0x0")],this[fc("0xd")],this[fc("0x21")][fc("0x9")]),n=e[fc("0x15")];return e[fc("0x6")](fc("0x11")).to(this,fc("0x1d"),this._model[fc("0x1f")],fc("0x20"),n,fc("0x8"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0xc"),((t,e)=>{this[fc("0x1")]("addComment",e),n.editor[fc("0x1c")]("")})),n.on(fc("0x1b"),(()=>this.focus())),n[fc("0x6")]("disabledSubmit").to(this[fc("0x2")].commentThread,fc("0x20")),e}}const pc=["importWord","ck-annotation__user","ck-suggestion__main","commentThreadInputView","ck-suggestion__info-name","cancel","fire","name","disableComments","isActive","title","locale",'<span class="ck-suggestion-color" style="background-color: ',"extendTemplate","Accept suggestion","getExternalSuggestionNote","time","ck-annotation__info-time","innerHTML","_createButton","EXTERNAL_SUGGESTION","creator",".ck-annotation__content-wrapper","type","span","_config","descriptionParts","attributes","render","element","ck-suggestion-wrapper--active","ck-suggestion__user","formatDateTime","@external","acceptSuggestion","div","<p>","</span>",'"></span>',"author","ck-suggestion--disabled-comments","getUserViewNotificationText","canDiscard","commentsListView","set","innerText","ck-annotation","editorReady","execute","isExternal","setTemplate","getTemplate","isEnabled","source","authoredAt","querySelector","bindTemplate","userView","ck-comment__info-time","ck-comment__external","children","_descriptionElement","EXTERNAL_IMPORT_WORD_AVATAR","bind","EXTERNAL_AVATAR","</p>","check","ck-suggestion--accept","_model","ck-suggestion","ck-suggestion__actions","push","ck-suggestion__info","editorDestroyed","ck-suggestion-wrapper","content","delegate","acceptButton","discardButton","commentThread",'" title="',"ck-annotation__info"];var bc,Ec;bc=pc,Ec=321,function(t){for(;--t;)bc.push(bc.shift())}(++Ec);const _c=function(t,e){return pc[t-=0]};class Tc extends hc{constructor(e,n,o,s){super(e,n,o,s),this[_c("0x33")](_c("0x1e"),""),this[_c("0x46")](_c("0x1e")).to(this,"descriptionParts",(t=>t&&t[0]?t[0].type:"")),this[_c("0x46")]("description").to(this,_c("0x21"),this,_c("0x10"),((t,e)=>{let n="";for(const e of t)n+=_c("0x2b")+Cc(e[_c("0x0")],e.color)+_c("0x48");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x44")]=null,this[_c("0x2")]=this[_c("0x1a")](Yo(e,_c("0x15")),t.icons[_c("0x49")],_c("0x4a"),_c("0x29"),"sw"),this[_c("0x2")][_c("0x46")](_c("0x3b")).to(this,"canAccept"),this[_c("0x3")]=this._createButton(Yo(e,"Discard suggestion"),t.icons[_c("0xc")],"ck-suggestion--discard","discardSuggestion","sw"),this[_c("0x3")].bind("isEnabled").to(this,_c("0x31")),this.userView=new r.UserView(e,this._model[_c("0x2e")],this.getUserViewNotificationText()),this[_c("0x40")].extendTemplate({attributes:{class:[_c("0x26"),_c("0x8")]}}),this[_c("0x39")](this[_c("0x3a")]())}[_c("0x3a")](){const t=this[_c("0x3f")],e=[{tag:_c("0x2a"),attributes:{class:[_c("0x4f"),_c("0x6")]},children:[{tag:"span",children:[{text:this.userView[_c("0xe")]}],attributes:{class:[_c("0xb"),"ck-annotation__info-name"]}},{tag:_c("0x17"),attributes:{datetime:t.to(_c("0x3d")),class:[_c("0x41"),_c("0x18")]},children:[{text:t.to(_c("0x3d"),(t=>this[_c("0x20")][_c("0x27")](t)))}]}]},{tag:_c("0x2a"),attributes:{class:[_c("0x4d"),"ck-annotation__actions"]},children:[this.acceptButton,this.discardButton]},{tag:_c("0x2a"),attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[_c("0x38")]&&e[_c("0x4e")]({tag:_c("0x2a"),attributes:{class:[_c("0x42")]},children:[{text:this[_c("0x16")]()}]});const n={tag:_c("0x2a"),attributes:{class:[_c("0x51"),t.if("isActive",_c("0x25")),t.to(_c("0x1e"),(t=>"ck-suggestion-"+t)),this[_c("0x20")][_c("0xf")]&&_c("0x2f")],"data-suggestion-id":this[_c("0x4b")].id,"data-thread-id":this[_c("0x4b")][_c("0x4")].id,"data-author-id":this[_c("0x4b")].author.id,tabindex:-1},children:[{tag:_c("0x2a"),attributes:{class:[_c("0x4c"),_c("0x35")]},children:[this.userView,{tag:_c("0x2a"),attributes:{class:[_c("0x9"),"ck-annotation__main"]},children:e}]}]};return this[_c("0x32")]&&this[_c("0xa")]&&(n[_c("0x43")][_c("0x4e")](this[_c("0x32")],this[_c("0xa")]),this[_c("0x32")][_c("0x1")](_c("0x36")).to(this),this[_c("0x32")][_c("0x1")](_c("0x50")).to(this),this[_c("0xa")].delegate(_c("0x36")).to(this),this[_c("0xa")][_c("0x1")](_c("0x50")).to(this)),n}[_c("0x23")](){super[_c("0x23")](),this[_c("0x44")]=this[_c("0x24")][_c("0x3e")](_c("0x1d")),this._descriptionElement[_c("0x19")]=this.description,this.on("change:description",((t,e,n)=>{this[_c("0x44")].innerHTML=n}))}_createButton(t,e,n,o,r){const i=new s.ButtonView(this.locale);return i[_c("0x33")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x14")]({attributes:{class:n}}),i.on(_c("0x37"),(()=>{this[_c("0xd")](o,this[_c("0x4b")].id)})),i}[_c("0x16")](){return _c("0x7")===this._model[_c("0x22")][_c("0x28")][_c("0x3c")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_SUGGESTION"):Yo(this.locale,_c("0x1b"))}[_c("0x30")](){return this[_c("0x4b")][_c("0x38")]?_c("0x7")===this[_c("0x4b")].attributes[_c("0x28")][_c("0x3c")]?Yo(this[_c("0x12")],_c("0x45"),this[_c("0x4b")][_c("0x1c")].name):Yo(this[_c("0x12")],_c("0x47"),this[_c("0x4b")].creator[_c("0xe")]):null}}function Cc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+yc(t)+_c("0x2c"):yc(t))).join(""),e&&(n+=_c("0x13")+e.value+_c("0x5")+e[_c("0x11")]+_c("0x2d")),n}function yc(t){const e=document.createElement(_c("0x1f"));return e[_c("0x34")]=t,e.innerHTML}const kc=["comments.maxCommentCharsWhenCollapsed","trackChanges","createAnnotationView","type","comments.maxThreadTotalWeight","destroy","comments.maxCommentsWhenCollapsed","_refreshActiveMarkers","execute","toMany","createAnnotation","add","getSuggestion","TrackChangesUI","change:activeAnnotations","buttonView","getMarkers","_createUIButton","addSourceCollector","comments","head","editing","push","innerView","values","get","TrackChangesEditing","comments.editorConfig","requires","filter","descriptionParts","Annotations","SuggestionThreadView","Accept all selected suggestions","_initializeController","value","actionView","suggestion-","pluginName","_handleSuggestionControllerDelayed","unbind","define","delete","EditorAnnotations","some","lowest","acceptButton","getJoined","CommentsRepository","length","change:previous","has","clear","bind","_annotationViews","set","focus","locale","Accept all suggestions","getFirstRange","keys","listenTo","from","commandName","button","_descriptionFactory","_suggestionToController","_updateController","plugins","_unbindEditors","isOn","suggestionUnloaded","_bindAnnotationToEditors","separator","registerAnnotation","arrowView","commands","view","getAllAdjacentSuggestions","isDirty","_disableComments","_destroyController","suggestionLoaded","isEnabled","isInContent","trackChanges.disableComments","refreshSelectedViews","_viewToController","_handleControllerBuffer","getByInnerView","editor","getDescriptions","model","Track changes","mainView","hasSuggestion"];var Ac,vc;Ac=kc,vc=491,function(t){for(;--t;)Ac.push(Ac.shift())}(++vc);const Rc=function(t,e){return kc[t-=0]};class Ic extends t.Plugin{static get[Rc("0x11")](){return[$a,r.Users,Rc("0x25"),Rc("0x14"),Rc("0x20")]}static get[Rc("0x1b")](){return Rc("0x2")}constructor(t){super(t),this[Rc("0x37")]=new Map,this._viewToController=new Map,this[Rc("0x2b")]=new Map,this[Rc("0x4d")]=new Map;const e=this.editor.config;e[Rc("0x1e")]("trackChanges.SuggestionThreadView",Tc),e.define(Rc("0x4a"),!1),this._disableComments=e[Rc("0xe")](Rc("0x4a"))}[Rc("0x1c")](t,e){0===this[Rc("0x4d")].size&&setTimeout((()=>{for(const[t,e]of this[Rc("0x4d")]){const n=this._suggestionToController[Rc("0x28")](t);n||e?n&&e&&this[Rc("0x46")](t):this[Rc("0x17")](t)}this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0x20"))[Rc("0x4b")](),this[Rc("0x5c")](),this[Rc("0x4d")][Rc("0x29")]()}),10),this._handleControllerBuffer[Rc("0x2c")](t,e)}init(){const t=this[Rc("0x4f")],e=t.plugins.get("TrackChangesEditing"),n=t[Rc("0x39")].get("Annotations"),o=t.plugins.get(Rc("0x20")),s=t[Rc("0x39")][Rc("0xe")](Rc("0x25"));t.ui.componentFactory.add(Rc("0x56"),(t=>this[Rc("0x6")](t))),o[Rc("0x7")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x33")](this[Rc("0x37")])){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Rc("0x49")])continue;if(t.isMultiRange){s.push(...t.getRanges());continue}const e=t[Rc("0x30")]();if(s[Rc("0x26")]>0){const t=s[0][Rc("0x24")](e);if(t){s[0]=t;continue}}s[Rc("0xb")](e)}t.push([n[Rc("0x42")],s])}return t})),this[Rc("0x32")](e,Rc("0x47"),((t,e)=>{this[Rc("0x32")](e,Rc("0x27"),((t,n,o,s)=>{e[Rc("0x49")]&&(null==o?(this[Rc("0x38")](s[Rc("0x9")]),this._handleSuggestionControllerDelayed(e,!1)):(this[Rc("0x38")](o[Rc("0x9")]),this[Rc("0x1c")](e,!0)))})),null===e.previous?this[Rc("0x1c")](e,!1):this[Rc("0x38")](e.head)})),this[Rc("0x32")](e,Rc("0x3c"),((t,e,n)=>{this.stopListening(e,"change:previous"),this._handleControllerBuffer[Rc("0x1f")](e);const o=n?n[Rc("0x9")]:e,s=this._suggestionToController[Rc("0xe")](o);null!==n&&this[Rc("0x38")](o),null===n&&s&&this[Rc("0x46")](e)})),this[Rc("0x32")](e,"suggestionChanged",((t,e)=>{this[Rc("0x38")](e)})),this[Rc("0x32")](n,Rc("0x3"),(()=>{this._refreshActiveMarkers()})),this[Rc("0x32")](s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x54")](n))return;const s=e[Rc("0x1")](n);this[Rc("0x37")][Rc("0xe")](s).view[Rc("0x2d")]()}),{priority:Rc("0x22")})}[Rc("0x5c")](){const t=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0x14")),e=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0xf")),n=Array.from(t.activeAnnotations,(t=>t[Rc("0xc")]))[Rc("0x12")]((t=>this._viewToController[Rc("0x28")](t))),o=[];for(const t of n){const e=this._viewToController[Rc("0xe")](t)[Rc("0x51")][Rc("0x43")]();o.push(...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Rc("0x6")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Rc("0x4f")][Rc("0x41")][Rc("0xe")](Rc("0x56")),r=Yo(t,Rc("0x52"));n[Rc("0x4")][Rc("0x2c")]({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-2023, 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[Rc("0x4")][Rc("0x2a")](Rc("0x3b")).to(o,Rc("0x18")),n[Rc("0x4")].on(Rc("0x5d"),(()=>{o.execute(),this[Rc("0x4f")][Rc("0xa")][Rc("0x42")][Rc("0x2d")]()}));const i=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:Rc("0x56")}},{type:Rc("0x3e")},{type:Rc("0x35"),model:{withText:!0,label:Yo(t,Rc("0x2f")),commandName:"acceptAllSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x16")),commandName:"acceptSelectedSuggestions"}},{type:"button",model:{withText:!0,label:Yo(t,"Discard all suggestions"),commandName:"discardAllSuggestions"}},{type:Rc("0x35"),model:{withText:!0,label:Yo(t,"Discard all selected suggestions"),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:"separator"};if(t[Rc("0x51")]){const n=new s.Model(t.model),o=this[Rc("0x4f")][Rc("0x41")][Rc("0xe")](n[Rc("0x34")]);n.bind(Rc("0x3b"),Rc("0x48")).to(o,Rc("0x18"),Rc("0x48")),e={type:t[Rc("0x58")],model:n}}i[Rc("0x0")](e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x12")]((t=>null!=t[Rc("0x51")])).map((t=>this.editor[Rc("0x41")][Rc("0xe")](t[Rc("0x51")][Rc("0x34")]))),c=n[Rc("0x4")];return c[Rc("0x19")][Rc("0x1d")](Rc("0x48")),c[Rc("0x40")][Rc("0x1d")](Rc("0x48")),c[Rc("0x19")].bind(Rc("0x48")).to(o,"isEnabled"),c[Rc("0x40")][Rc("0x2a")]("isEnabled")[Rc("0x5e")](a,Rc("0x48"),((...t)=>t[Rc("0x21")]((t=>t)))),n.on("execute",(t=>{this[Rc("0x4f")][Rc("0x5d")](t.source[Rc("0x34")]),this[Rc("0x4f")][Rc("0xa")][Rc("0x42")][Rc("0x2d")]()})),n}[Rc("0x17")](t){const e=this.editor,n=e.config,o=e[Rc("0x39")][Rc("0xe")](Rc("0x14")),s=e[Rc("0x39")][Rc("0xe")](Rc("0x25")),i=e[Rc("0x39")][Rc("0xe")](Rc("0x20")),x=e[Rc("0x39")][Rc("0xe")](r.Users).me,a=n[Rc("0xe")](Rc("0x56"))[Rc("0x15")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x39")][Rc("0xe")]("CommentsUI");let u,d;this[Rc("0x2b")].has(t.id)?(d=this[Rc("0x2b")][Rc("0xe")](t.id),u=d[Rc("0x53")]):(u=new a(e[Rc("0x2e")],t,x,{disableComments:this[Rc("0x45")],editorConfig:n.get(Rc("0x10")),maxCommentsWhenCollapsed:n[Rc("0xe")](Rc("0x5b")),maxThreadTotalWeight:n.get(Rc("0x59")),maxCommentCharsWhenCollapsed:n[Rc("0xe")](Rc("0x55")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0xe")](Rc("0x2e"))),CommentView:n[Rc("0xe")](Rc("0x8")).CommentView,CommentsListView:c,CommentThreadInputView:l}),u[Rc("0x23")].on(Rc("0x5d"),(()=>{e[Rc("0xa")][Rc("0x42")].focus()})),u.discardButton.on("execute",(()=>{e[Rc("0xa")][Rc("0x42")][Rc("0x2d")]()})),d=o[Rc("0x57")](this[Rc("0x4f")][Rc("0x2e")],u),d[Rc("0x2a")](Rc("0x44")).to(u,"isDirty"),d.bind(Rc("0x26")).to(u),d[Rc("0x2a")](Rc("0x58")).to(u,Rc("0x58"),(t=>Rc("0x1a")+t)),this[Rc("0x2b")][Rc("0x2c")](t.id,d));const g=s.createCommentThreadController(t.commentThread,u),m=new uc(e,t,u,g),f=t[Rc("0x43")]().filter((t=>t[Rc("0x49")]));u.descriptionParts=e[Rc("0x39")].get(Rc("0xf"))[Rc("0x36")][Rc("0x50")](f),this[Rc("0x37")][Rc("0x2c")](t,m),this[Rc("0x4c")][Rc("0x2c")](u,m);const h=o[Rc("0x5f")]({view:d,target:()=>{const n=[],o=t[Rc("0x43")]()[Rc("0x12")]((t=>t[Rc("0x49")]));for(const t of o)n.push(...t[Rc("0x5")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0xa")],n)},type:()=>Rc("0x1a")+m[Rc("0x42")][Rc("0x58")]});s[Rc("0x3d")](u,h),o[Rc("0x0")](h),i[Rc("0x3f")](h)}_destroyController(t){const e=this[Rc("0x4f")].plugins[Rc("0xe")](Rc("0x25")),n=this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0x14")),o=this[Rc("0x37")][Rc("0xe")](t),s=o[Rc("0x42")],r=n[Rc("0x4e")](s);e[Rc("0x3a")](s),r&&n.remove(r),this[Rc("0x37")][Rc("0x1f")](t),this[Rc("0x4c")][Rc("0x1f")](s),o[Rc("0x5a")]()}[Rc("0x38")](t){if(!t.isInContent||!this[Rc("0x37")][Rc("0x28")](t))return;const e=this[Rc("0x4f")][Rc("0x39")][Rc("0xe")](Rc("0xf")),n=this[Rc("0x37")][Rc("0xe")](t),o=t[Rc("0x43")]();n[Rc("0x42")][Rc("0x13")]=e[Rc("0x36")][Rc("0x50")](o)}destroy(){for(const t of this[Rc("0x37")][Rc("0x31")]())this[Rc("0x46")](t);for(const t of this[Rc("0x2b")][Rc("0xd")]())t[Rc("0x53")][Rc("0x5a")]();super[Rc("0x5a")]()}}var Sc,Lc,Nc=["requires","TrackChanges","get","editor","adapter","plugins","getSuggestion","Comments","getSuggestions"];Sc=Nc,Lc=244,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var Mc=function(t,e){return Nc[t-=0]};class wc extends t.Plugin{static get[Mc("0x8")](){return[$a,Ic,Mc("0x6")]}static get pluginName(){return Mc("0x0")}set[Mc("0x3")](t){this[Mc("0x2")][Mc("0x4")][Mc("0x1")]($a)[Mc("0x3")]=t}get[Mc("0x3")](){return this.editor[Mc("0x4")].get($a)[Mc("0x3")]}addSuggestion(t){return this.editor.plugins[Mc("0x1")]($a).addSuggestionData(t)}[Mc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Mc("0x2")][Mc("0x4")].get($a)[Mc("0x7")]({skipNotAttached:t,toJSON:e})}[Mc("0x5")](t){return this[Mc("0x2")][Mc("0x4")][Mc("0x1")]($a).getSuggestion(t)}}const Oc=["createElement","create","_adapter","editor","getRootNames","CommentsRepository","editorCreator","trackChangesData","useAnonymousUser","end","config","destroy","users","data","function","name","track-changes-data-invalid-editor-creator","appendChild","getDataWithDiscardedSuggestions","set","rootsAttributes","get","reduce","document","discardAllSuggestions","getDataWithAcceptedSuggestions","getSuggestions","getFullData","Pagination","model","TrackChangesData","push","pluginName","map","acceptAllSuggestions","div","result","getRootsAttributes","addSuggestionData","define","TrackChangesDataGetter","plugins","requires","init","TrackChangesEditing"];var Fc,Pc;Fc=Oc,Pc=180,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x1c")];class jc extends t.Plugin{static get[Dc("0x2a")](){return[$a]}static get[Dc("0x20")](){return Dc("0x1e")}[Dc("0x2b")](){const t=this[Dc("0x3")];if(t[Dc("0xa")][Dc("0x27")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x1d")][Dc("0x17")][Dc("0x4")]()[Dc("0x16")](((t,e)=>(t[e]="",t)),{});return t.constructor[Dc("0x1")](n,e)})),Dc("0xe")!=typeof t[Dc("0xa")][Dc("0x15")](Dc("0x7"))[Dc("0x6")])throw new e.CKEditorError(Dc("0x10"))}[Dc("0x19")](t){return Hc(this[Dc("0x3")],!0,t)}[Dc("0x12")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get[Dc("0x20")](){return Dc("0x28")}constructor(t){super(t),this[Dc("0x24")]=Dc("0x9")}init(){this.editor.plugins.get(Dc("0x5"))[Dc("0x2")]={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[Dc("0x3")][Dc("0x29")][Dc("0x15")](Dc("0x2c"))[Dc("0x2")]=null}}function Gc(t){return void 0!==t[Dc("0x25")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x29")][Dc("0x1f")]($a,Uc),o[Dc("0x14")]=Gc(t)?t[Dc("0x25")]():void 0;const s=document.createDocumentFragment(),i=t[Dc("0xa")][Dc("0x15")]("trackChangesData")[Dc("0x6")],x=await i(o,(()=>function(t){const e=document[Dc("0x0")](Dc("0x23"));return t[Dc("0x11")](e),e}(s)));!function(t,e){const n=t.model[Dc("0x17")][Dc("0x4")]().reduce(((e,n)=>(e[n]=t[Dc("0xd")][Dc("0x15")]({rootName:n}),e)),{}),o=t[Dc("0x29")][Dc("0x15")]("Users")[Dc("0xc")][Dc("0x21")]((t=>({id:t.id,name:t[Dc("0xf")]}))),s=t[Dc("0x29")][Dc("0x15")](Dc("0x2c"))[Dc("0x1a")]({skipNotAttached:!0,toJSON:!0}),r=e[Dc("0x29")][Dc("0x15")]("Users"),i=e[Dc("0x29")][Dc("0x15")](Dc("0x2c"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r[Dc("0x8")]();for(const t of s)i[Dc("0x26")](t);e.data[Dc("0x13")](n)}(t,x),x.execute(Dc(e?"0x22":"0x18"));const a=Gc(x)?x[Dc("0x1b")](n):x[Dc("0xd")].get(n);return await x[Dc("0xb")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();