@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231020.0 → 0.0.0-nightly-20231022.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:()=>Mc,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=["isEnabled","commands","_disableUnsupportedCommands","has","execute","value","_enabledCommands","_enableCommands","refresh","forceDisabled","TrackChangesCommand","affectsData","editor","clearForceDisabled"];var c,l;c=a,l=444,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("0xa")]=e,this.value=!1,this[d("0xc")](),this._isEnabledBasedOnSelection=!1}[d("0xc")](){this[d("0x4")]=!0}[d("0x8")](){this[d("0x9")]=!this[d("0x9")],this[d("0x9")]?this[d("0x6")]():this[d("0xb")]()}_disableUnsupportedCommands(){for(const t of this[d("0x2")][d("0x5")][d("0x5")]())t.affectsData&&!this._enabledCommands[d("0x7")](t)&&t[d("0xd")](d("0x0"))}[d("0xb")](){for(const t of this[d("0x2")][d("0x5")].commands())t[d("0x1")]&&!this[d("0xa")][d("0x7")](t)&&t[d("0x3")](d("0x0"))}}const g=["isEnabled","canEditAt","plugins","acceptSuggestion","track-changes-accept-suggestion-not-found","get","_isEnabledBasedOnSelection","refresh","editor","TrackChangesEditing","_suggestions"];var m,f;m=g,f=308,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x7")](),this[h("0x6")]=!1}[h("0x7")](){this[h("0x0")]=!0}execute(t){const n=this[h("0xa")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x4"),this);const o=n.getRanges();this[h("0x8")].model[h("0x1")](o)&&this.editor[h("0x2")][h("0x5")](h("0x9"))[h("0x3")](n)}}const b=["isEnabled","discardSuggestion","canEditAt","editor","refresh","_isEnabledBasedOnSelection","_suggestions","model","getRanges","get"];var E,_;E=b,_=426,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this[T("0x8")](),this[T("0x9")]=!1}[T("0x8")](){this[T("0x4")]=!0}execute(t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x2")]();this[T("0x7")][T("0x1")][T("0x6")](o)&&this[T("0x7")].plugins.get("TrackChangesEditing")[T("0x5")](n)}}const y=["schema","deletion","join","execute","isInContent","map","value","start","color","sort","end"," [color ","isArray","isMultiRange","next","createPositionBefore","getRanges","isObject","splice","createPositionAfter","change","isTouching","content","type","length"];var k,A;k=y,A=469,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xf")](((t,e)=>"deletion"==t[v("0x4")]&&v("0x7")!=e[v("0x4")]?-1:v("0x7")!=t[v("0x4")]&&v("0x7")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0x5")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(s.push(e.createRange(n,r[v("0x17")](i)?e[v("0x0")](i):e.createPositionAt(i,v("0x10")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x0")](e),s=t[v("0x15")](n);return o[v("0x2")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0xa")]&&e[v("0x9")](t.id)}))}}const N=["_suggestions","from","execute","_isEnabledBasedOnSelection","refresh","canEditAt","editor","some","isInContent","_command","model","isEnabled"];var w,M;w=N,M=251,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x1")]=n,this.refresh(),this[O("0x4")]=!1}[O("0x5")](){const t=Array[O("0x2")](this._suggestions.values())[O("0x8")]((t=>t[O("0x9")]));this[O("0x0")]=this._command.isEnabled&&t}[O("0x3")](){const t=R(Array[O("0x2")](this[O("0x1")].values()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0xb")][O("0x6")](t))return}L(this[O("0x7")][O("0xb")],this[O("0xa")],t)}}const P=["document","size","_command","editor","selection","_suggestions","model","_isEnabledBasedOnSelection","_selectedSuggestions","canEditAt","isEnabled","values","refresh"];var D,B;D=P,B=451,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x6")]=e,this[j("0x9")]=n,this[j("0xc")]=new Set,this[j("0x3")](),this[j("0xb")]=!1}refresh(){const t=this.editor[j("0xa")][j("0x4")][j("0x8")],e=Array.from(this[j("0x9")][j("0x2")]());this[j("0xc")]=function(t,e){const n=Array.from(t[v("0x16")]()),o=new Set;for(const s of e)if(s[v("0xa")])for(const e of n)for(const n of s[v("0x16")]())(e.isIntersecting(n)||t.isCollapsed&&!s[v("0x13")]&&s[v("0x14")]&&n[v("0x10")][v("0x2")](e[v("0xd")]))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0x6")][j("0x1")]&&!!this._selectedSuggestions[j("0x5")]}execute(){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x7")][j("0xa")][j("0x0")](t))return}L(this[j("0x7")][j("0xa")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const 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 wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const 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 we=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&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 wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const 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 wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=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 Mo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:Mo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po: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):wo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const 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=["getAllAdjacentSuggestions","isIntersecting","discard","hasComments","_onAccept","_onDiscard","attributes","getFirstMarker","add","delete","isExternal","from","removeMarkers","_model","nodeBefore","filter","change","setAttribute","addRange","type","previous","getRange","next","set","_saved","map","createdAt","accept","onAccept","_onAttributesChange","split","addMarkerName","getFirstRange","getMarkerNames","start","reduce","addMarker","head","getMultiRangeId","isInContent","markers","get","getRanges","suggestion:","subType","onAttributesChange","_markerNames","decorate","data","substr","size","toJSON","push","getMarkers","authoredAt","creator","length","getContainedElement","onDiscard","commentThread","removeMarker","_isDataLoaded","getItems","author","end"];var $o,Jo;$o=Xo,Jo=193,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("0x3f")]=!1,this.id=e.id,this[Qo("0x15")]=e[Qo("0x15")],this[Qo("0x2e")]=e[Qo("0x2e")]||null,this[Qo("0x0")]=e[Qo("0x0")],this[Qo("0x39")]=e[Qo("0x39")]||e[Qo("0x0")],this[Qo("0xc")]=Boolean(e[Qo("0x8")]&&e[Qo("0x8")]["@external"]),this[Qo("0x32")]=null,this[Qo("0xf")]=t,this[Qo("0x6")]=e[Qo("0x1e")],this[Qo("0x7")]=e[Qo("0x3c")],this._onAttributesChange=e[Qo("0x2f")],this[Qo("0x30")]=new Set,this[Qo("0x1c")]=null,this[Qo("0x19")](Qo("0x38"),null),this[Qo("0x19")]("attributes",e[Qo("0x8")]||{}),this[Qo("0x19")](Qo("0x16"),null),this[Qo("0x19")](Qo("0x18"),null),this.set(Qo("0x3d"),null),this[Qo("0x19")](Qo("0x1a"),!1),this[Qo("0x31")](Qo("0x1d")),this[Qo("0x31")](Qo("0x4"))}get[Qo("0x27")](){let t=this;for(;t[Qo("0x16")];)t=t.previous;return t}get[Qo("0x5")](){return!!this[Qo("0x3d")]&&this[Qo("0x3d")][Qo("0x3a")]>0}get isMultiRange(){return 0!=this[Qo("0x30")][Qo("0x34")]&&6==Array[Qo("0xd")](this._markerNames)[0][Qo("0x20")](":")[Qo("0x3a")]}get[Qo("0x29")](){return null!==this[Qo("0x9")]()}[Qo("0x21")](t){this[Qo("0x30")][Qo("0xa")](t)}[Qo("0x23")](){return Array[Qo("0xd")](this[Qo("0x30")])}[Qo("0x37")](){return this.getMarkerNames().map((t=>this[Qo("0xf")][Qo("0x2a")][Qo("0x2b")](t)))[Qo("0x11")]((t=>t))}[Qo("0x9")](){return this[Qo("0x37")]()[0]||null}[Qo("0xe")](){this._model[Qo("0x12")]((t=>{for(const e of this[Qo("0x37")]())t.removeMarker(e)})),this[Qo("0x30")].clear()}removeMarker(t){this[Qo("0xf")][Qo("0x12")]((e=>{e[Qo("0x3e")](t)})),this[Qo("0x30")][Qo("0xb")](t)}[Qo("0x14")](t){const e=Qo("0x2d")+this[Qo("0x15")]+":"+this[Qo("0x2e")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x28")]();this[Qo("0x21")](e),this[Qo("0xf")].change((n=>{n[Qo("0x26")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x2c")]())if(e[Qo("0x3")](t))return!0;return!1}[Qo("0x2c")](){return this.getMarkers()[Qo("0x1b")]((t=>t.getRange()))}getItems(){return this.getRanges()[Qo("0x25")](((t,e)=>[...t,...e[Qo("0x40")]()]),[])}[Qo("0x22")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x17")]())||null}[Qo("0x3b")](){const t=this[Qo("0x2c")]();if(1!=t[Qo("0x3a")])return null;const e=t[0],n=e[Qo("0x24")].nodeAfter,o=e[Qo("0x1")][Qo("0x10")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1d")](){this[Qo("0x6")](this[Qo("0x2c")](),this[Qo("0x32")],this[Qo("0x8")]),this[Qo("0xe")]()}[Qo("0x4")](){this._onDiscard(this[Qo("0x2c")](),this[Qo("0x32")],this[Qo("0x8")]),this[Qo("0xe")]()}[Qo("0x2")](){const t=[];let e=this.head;for(;e;)t[Qo("0x36")](e),e=e[Qo("0x18")];return t}[Qo("0x13")](t,e){const n=eo(this[Qo("0x8")]);_o(n,t,e),Go(n,this[Qo("0x8")])||(this[Qo("0x8")]=n,this[Qo("0x1f")](n))}removeAttribute(t){const e=eo(this[Qo("0x8")]);qo(e,t),Go(e,this[Qo("0x8")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x8")]))}[Qo("0x35")](){return{id:this.id,type:this[Qo("0x2e")]?this[Qo("0x15")]+":"+this.subType:this[Qo("0x15")],authorId:this[Qo("0x39")].id,createdAt:this[Qo("0x1c")],hasComments:this.hasComments,data:this[Qo("0x32")],attributes:this[Qo("0x8")]}}static[Qo("0x28")](){return(0,e.uid)()[Qo("0x33")](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=["isInContent","*Split:* %0","*Insert:* %0","addObject","addEmptyContainer","deletion","ELEMENT_SPACE","previousSibling","length","push","EmptyContainer","elementEnd","replace","set","*Merge:* %0","nextSibling","quantity","registerElementLabel","_itemLabels","Container","indexOf","isEmpty","pop","getFirstRange","Object","_resolveDescriptionItems","skip","getWalker","data","isEqual","isObject","$text","item","REPLACE_TEXT","_schema","_locale","remove","getDescriptions","element","match","*Remove:* %0","add","insertion","name","type","removeContainer","start","label","elementStart","getItemLabel","addContainer","_addDescriptionItems","_customCallbacks","text"];var es,ns;es=ts,ns=115,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0xb")]=new Map,this._itemLabelsCallbacks=[],this[os("0x1b")]=t,this._locale=e}[os("0x1e")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o[os("0x2f")])continue;let s=!1;for(const t of this[os("0x2d")]){const n=t(o);if(n){os("0x25")in n&&e[os("0x2")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end[os("0x16")](s[os("0x10")]()[os("0x27")])){const t=e[e[os("0x1")]-1],n="insertion"==o[os("0x25")]?os("0x22"):os("0x1d");t&&os("0x2e")==t[os("0x25")]&&(t[n]+="\n")}}}return this[os("0x12")](e)}registerDescriptionCallback(t){this[os("0x2d")][os("0x2")](t)}[os("0xa")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xb")][os("0x6")](t,n)}[os("0x2a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x28")];break}return n||(n=this[os("0xb")].get(t.name)),n?n(e):1!==e?e+" "+t[os("0x24")]+"s":""+t[os("0x24")]}[os("0x2c")](t,e){const n=e[os("0x10")]()[os("0x14")](),o=os("0x23")==e[os("0x25")]?os("0x22"):os("0x1d");for(const e of n){const s=e[os("0x19")],r=t[t[os("0x1")]-1];if(s.is("$textProxy"))r&&r[os("0x25")][os("0xd")](os("0xc"))>-1&&t[os("0xf")](),r&&os("0x2e")==r.type?r[o]+=s[os("0x15")]:t[os("0x2")]({type:os("0x2e"),add:"add"==o?s[os("0x15")]:"",remove:os("0x1d")==o?s[os("0x15")]:""});else if(this[os("0x1b")][os("0x17")](s)){const i=s;if(r&&r[os("0x25")][os("0xd")](os("0xc"))>-1&&t[os("0xf")](),"elementEnd"==e[os("0x25")])continue;r&&r[os("0x25")]==o+os("0x11")&&r[os("0x1f")][os("0x24")]==i[os("0x24")]?r[os("0x9")]++:t[os("0x2")]({type:o+"Object",element:i,quantity:1}),n[os("0x13")]((t=>!(os("0x4")==t.type&&t[os("0x19")]==s)))}else if(this[os("0x1b")].checkChild(s,os("0x18"))||s.is(os("0x1f"),"softBreak")){const n=s;if(os("0x22")==o&&os("0x29")==e[os("0x25")]||"remove"==o&&os("0x4")==e[os("0x25")])continue;if(r&&-1==r[os("0x25")].indexOf(os("0xc"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x22")==o?n.nextSibling&&!this[os("0x1b")][os("0x17")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0x1b")][os("0x17")](n[os("0x0")])?n.previousSibling:null,n[os("0xe")]||i&&i.isEmpty){const e=i&&i[os("0xe")]?i:n;r&&r[os("0x25")]==o+os("0x3")&&r[os("0x1f")][os("0x24")]==e[os("0x24")]?r.quantity++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+os("0xc"),element:n})}}}[os("0x12")](t){const e=this[os("0x1c")],n=[];for(const o of t){switch(o[os("0x25")]){case os("0x2e"):if(o[os("0x22")]=o[os("0x22")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x5")](/\u000A/g,""),o[os("0x1d")]=o.remove[os("0x5")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x5")](/\u000A/g,""),""!=o[os("0x22")]&&""!=o.remove){n[os("0x2")]({type:os("0x5"),content:Yo(e,os("0x1a"),['"'+o[os("0x1d")]+'"','"'+o[os("0x22")]+'"'])});continue}if(null!=o[os("0x22")][os("0x20")](/^ +$/)){n[os("0x2")]({type:os("0x23"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x35"),o[os("0x22")][os("0x1")]))});continue}if(null!=o[os("0x1d")][os("0x20")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x21"),Yo(e,os("0x35"),o.remove[os("0x1")]))});continue}if(""!=o[os("0x22")]){n[os("0x2")]({type:"insertion",content:Yo(e,os("0x31"),'"'+o.add+'"')});continue}n[os("0x2")]({type:"deletion",content:Yo(e,os("0x21"),'"'+o[os("0x1d")]+'"')});continue;case os("0x33"):case os("0x32"):n[os("0x2")]({type:os("0x23"),content:Yo(e,os("0x31"),this[os("0x2a")](o[os("0x1f")],o[os("0x9")]))});continue;case"removeEmptyContainer":case"removeObject":n[os("0x2")]({type:"deletion",content:Yo(e,"*Remove:* %0",this[os("0x2a")](o.element,o[os("0x9")]))});continue;case os("0x2b"):n.push({type:os("0x23"),content:Yo(e,os("0x30"),this.getItemLabel(o[os("0x1f")],o[os("0x9")]))});continue;case os("0x26"):n[os("0x2")]({type:os("0x34"),content:Yo(e,os("0x7"),this[os("0x2a")](o[os("0x1f")],o.quantity))});continue}n.push(o)}return n}}const rs=["afterInit","TrackChangesEditing","plugins","enableCommand","get","showAIAssistant"];var is,xs;is=rs,xs=454,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this.editor,e=t[as("0x4")][as("0x0")](as("0x3"));t.commands[as("0x0")](as("0x1"))&&e[as("0x5")]("showAIAssistant")}}const ls=["from","editor","TrackChangesEditing","markBlockFormat","enableCommand","FORMAT_ALIGN_TO_CENTER","getSelectedBlocks","document","afterInit","filter","_descriptionFactory","plugins","value","left","registerDescriptionCallback","commandName","FORMAT_JUSTIFY_TEXT","locale","*Format:* %0","has","justify","ltr","selection","schema","FORMAT_ALIGN_TO_LEFT","alignment","center","get","getAttribute","model","change","right"];var ds,us;ds=ls,us=284,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xc")](){const t=this[gs("0x5")],e=t.locale;if(!t.plugins[gs("0x17")]("AlignmentEditing"))return;const n=t[gs("0xf")][gs("0x1f")](gs("0x6"));n[gs("0x8")]("alignment",((e,o={})=>{let s=o[gs("0x10")];o.value||(s=gs("0x19")===t[gs("0x15")].contentLanguageDirection?"left":gs("0x3"));const r=Array[gs("0x4")](this[gs("0x5")].model[gs("0xb")][gs("0x1a")][gs("0xa")]())[gs("0xd")]((t=>function(t,e,n){const o=t[gs("0x0")](gs("0x1d"))||null;return e.checkAttribute(t,"alignment")&&n!=o}(t,this[gs("0x5")][gs("0x1")][gs("0x1b")],s)));t.model[gs("0x2")]((()=>{for(const t of r)n[gs("0x7")](t,{commandName:gs("0x1d"),commandParams:[{value:s}]})}))})),n[gs("0xe")][gs("0x12")]((t=>{const{data:n}=t;if(n&&gs("0x1d")==n[gs("0x13")]){const t=n.commandParams[0][gs("0x10")];return{type:"format",content:Yo(e,gs("0x16"),function(t){switch(t){case gs("0x11"):return Yo(e,gs("0x1c"));case gs("0x3"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case gs("0x1e"):return Yo(e,gs("0x9"));case gs("0x18"):return Yo(e,gs("0x14"))}}(t))}}}))}}const fs=["element","addClass","toViewElement","get","span","nextSibling","writer","bindElementToMarker","name","createRangeOn","ck-suggestion-marker--active","previousPosition","isBlock","activeMarkers","elementEnd","listIndent","mapper","ck-suggestion-marker-","consumable","schema","markerRange","insert","isLimit","hasAttribute","createUIElement","getAttribute","toViewPosition","listItem","getCustomProperty","model","start","TrackChangesEditing","test","push","type","markerName"];var hs,ps;hs=fs,ps=312,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.getItems())s[bs("0x23")](t)&&o[bs("0x9")](n[bs("0x15")](s));return o}function _s(t){const e=[];if(t.is(bs("0xc"),bs("0x3"))){let n=t.nextSibling;for(;n&&n.is(bs("0xc"),bs("0x3"))&&n[bs("0x1")](bs("0x1b"))>0;)e.push(n),n=n[bs("0x11")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[bs("0xf")](bs("0x7"));return(s,r,i)=>{if(!i[bs("0x1e")][bs("0x8")](r[bs("0x20")],s[bs("0x14")]))return;const x=r.markerRange.getWalker(),a=r[bs("0x20")][bs("0x6")],c=t[bs("0x5")][bs("0x1f")];let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c.isContent(e);const n=i[bs("0x1c")][bs("0xe")](e);if(n&&n[bs("0x4")]("addHighlight"))return;bs("0x1a")==t[bs("0xa")]&&c[bs("0x18")](e)&&!c[bs("0x22")](e)&&(e[bs("0x11")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[bs("0x17")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i.writer[bs("0x0")](bs("0x10"),{class:bs("0x1d")+e}),x=i.mapper[bs("0x2")](t);n&&o[bs("0x19")].includes(r[bs("0xb")])&&i[bs("0x12")][bs("0xd")](bs("0x16"),s),i[bs("0x12")][bs("0x21")](x,s),i[bs("0x1c")][bs("0x13")](s,r[bs("0xb")])}u||g||!d||m(d)}}const Cs=["change","format","commands","code","*Format:* %0","slice","document","forceValue","underline","SubscriptEditing","markInlineFormat","FORMAT_ITALIC","toLowerCase","superscript","locale","strikethrough","italic","model","_descriptionFactory","SuperscriptEditing","TrackChangesEditing","*Remove format:* %0","FORMAT_UNDERLINE","get","bold","registerDescriptionCallback","FORMAT_CODE","selection","BoldEditing","subscript","FORMAT_BOLD","StrikethroughEditing","editor","UnderlineEditing","plugins","ItalicEditing"];var ys,ks;ys=Cs,ks=207,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1"),As("0x8"),As("0x6"),"CodeEditing",As("0x4"),As("0x12"),As("0x1c")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x5")],e=t[As("0x1a")],n=t.plugins[As("0x20")](As("0x1d")),o=t[As("0x17")];for(const o of vs){if(!t[As("0x7")].has(o))continue;const s=o[As("0xe")](0,-7)[As("0x15")](),r=t[As("0xb")].get(s);n.enableCommand(s,((t,o={})=>{const i=e[As("0xf")][As("0x0")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0x10")]?o[As("0x10")]:!r.value;e[As("0x9")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x13")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1b")][As("0x22")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][As("0x10")]?{type:As("0xa"),content:Yo(o,As("0xd"),e)}:{type:As("0xa"),content:Yo(o,As("0x1e"),e)}}))}s(As("0x21"),Yo(o,As("0x3"))),s(As("0x19"),Yo(o,As("0x14"))),s(As("0x11"),Yo(o,As("0x1f"))),s(As("0xc"),Yo(o,As("0x23"))),s(As("0x18"),Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x2"),Yo(o,"FORMAT_SUBSCRIPT")),s(As("0x16"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const Is=["model","from","checkChild","editor","getSelectedBlocks","selection","change","commandName","parent","blockQuote","value","ELEMENT_BLOCK_QUOTE","*Format:* %0","locale","format","TrackChangesEditing","get","document","name","*Remove format:* %0","filter","commandParams","commands","registerDescriptionCallback","$root","forceValue"];var Ss,Ls;Ss=Is,Ls=485,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ns("0xc")],e=t[Ns("0x16")];if(!t.plugins.has("BlockQuoteEditing"))return;const n=t.plugins[Ns("0x19")](Ns("0x18")),o=this[Ns("0xc")][Ns("0x5")][Ns("0x19")](Ns("0x12"));n.enableCommand(Ns("0x12"),((e,s={})=>{const r=this[Ns("0xc")].model[Ns("0x0")][Ns("0xe")],i=s&&void 0!==s[Ns("0x8")]?s[Ns("0x8")]:!o[Ns("0x13")];let x=[];if(i){const e=Array[Ns("0xa")](r[Ns("0xd")]())[Ns("0x3")]((t=>Ms(t)||function(t,e){const n=e[Ns("0xb")](t[Ns("0x11")],Ns("0x12")),o=e[Ns("0xb")]([Ns("0x7"),Ns("0x12")],t);return n&&o}(t,this[Ns("0xc")][Ns("0x9")].schema)));x=I(e,t[Ns("0x9")])}else{const e=Array[Ns("0xa")](r.getSelectedBlocks())[Ns("0x3")]((t=>Ms(t)));x=I(e,t[Ns("0x9")])}t[Ns("0x9")][Ns("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[Ns("0x6")]((t=>{const{data:n}=t;if(n&&Ns("0x12")==n[Ns("0x10")]){const t=Yo(e,Ns("0x14"));return n[Ns("0x4")][0][Ns("0x8")]?{type:Ns("0x17"),content:Yo(e,Ns("0x15"),t)}:{type:Ns("0x17"),content:Yo(e,Ns("0x2"),t)}}}))}}function Ms(t){return Ns("0x12")==t[Ns("0x11")][Ns("0x1")]}const Os=["ckbox","afterInit","editor","TrackChangesEditing","get","enableCommand"];var Fs,Ps;Fs=Os,Ps=398,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x5")](){const t=this[Ds("0x0")];t.commands[Ds("0x2")]("ckbox")&&t.plugins[Ds("0x2")](Ds("0x1"))[Ds("0x3")](Ds("0x4"))}}const js=["language","change","value","commandParams","filter","afterInit","rootElement","outdentCodeBlock","commands","commandName","indentCodeBlock","forceValue","schema","codeBlock","selection","*Remove format:* %0","plugins","languages","format","TrackChangesEditing","document","ELEMENT_CODE_BLOCK","blockName","find","markBlockFormat","isLimit","has","parent","enableCommand","get","CodeBlock","registerDescriptionCallback","_descriptionFactory","model","getSelectedBlocks"];var Us,Gs;Us=js,Gs=480,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0xf")](){const t=this.editor;if(!t.plugins[Hs("0x1")](Hs("0x5")))return;const e=t[Hs("0x1a")][Hs("0x4")](Hs("0x1d")),n=t.locale,o=t.config[Hs("0x4")](Hs("0x17"))[Hs("0x1b")],s=t[Hs("0x12")].get(Hs("0x17"));e[Hs("0x3")](Hs("0x14")),e[Hs("0x3")](Hs("0x11")),e[Hs("0x3")](Hs("0x17"),((n,r={})=>{const i=t.model,x=t[Hs("0x8")][Hs("0x1e")][Hs("0x18")],a=r&&void 0!==r[Hs("0x15")]?r[Hs("0x15")]:!s[Hs("0xc")];let c;r[Hs("0xa")]||(r.language=o[0][Hs("0xa")]),c=a?Array.from(x[Hs("0x9")]()).filter((t=>{return Ws(t)||(e=t,n=i[Hs("0x16")],!e.is(Hs("0x10"))&&!n[Hs("0x0")](e)&&n.checkChild(e[Hs("0x2")],Hs("0x17")));var e,n})):Array.from(x[Hs("0x9")]())[Hs("0xe")]((t=>Ws(t)));const l=I(c,i);i[Hs("0xb")]((()=>{for(const t of l)e[Hs("0x22")](t,{commandName:Hs("0x17"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x20")})}))})),e[Hs("0x7")].registerElementLabel(Hs("0x17"),(t=>Yo(n,Hs("0x1f"),t))),e._descriptionFactory[Hs("0x6")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Hs("0x13")]){const t=r[Hs("0xd")][0][Hs("0xa")],s=e(o[Hs("0x21")]((e=>e[Hs("0xa")]===t)).label);return r[Hs("0xd")][0][Hs("0x15")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Hs("0x1f"),1)+" ("+s+")")}:{type:Hs("0x1c"),content:Yo(n,Hs("0x19"),Yo(n,Hs("0x1f"),1))}}}))}}function Ws(t){return"codeBlock"==t.name}const Vs=["has","TrackChangesEditing","get","plugins","CommentsEditing","enableCommand"];var Ks,qs;Ks=Vs,qs=253,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[Xs("0x2")][Xs("0x5")](Xs("0x3"))&&t.plugins[Xs("0x1")](Xs("0x0"))[Xs("0x4")]("addCommentThread")}}var Js=n(181);const Qs=["unit","end","markerNameToElements","mapper","addMarker:suggestion:deletion","uiElement","unbindElementFromMarkerName","unlock","forward","enableCommand","createRange","selection","buffer","options","init","editing","$graveyard","showSuggestionHighlights","get","high","writer","batch","data","removeMarker:suggestion:deletion","merge","setSelection","rootName","document","remove","enqueueChange","editor","detach","downcastDispatcher","deleteForward","lock","delete","fromRange","getFirstRange","model","markerName","root","commands","start"];var Zs,Ys;Zs=Qs,Ys=103,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 requires(){return[Js.Delete]}[tr("0x28")](){const t=this[tr("0xd")],e=t.plugins[tr("0x1")]("TrackChangesEditing");e[tr("0x23")](tr("0x12"));const n=t[tr("0x18")][tr("0x1")](tr("0x10"));e.enableCommand(tr("0x10"),((e,o={})=>{const s=t[tr("0x15")].createSelection(t[tr("0x15")][tr("0xa")][tr("0x25")]);s.isCollapsed&&t[tr("0x15")].modifySelection(s,{direction:tr("0x22"),unit:o[tr("0x1a")]});const r=s[tr("0x14")](),x=i.LiveRange[tr("0x13")](r);let a;e(o),a=tr("0x2a")==x[tr("0x17")][tr("0x9")]?t.model[tr("0x24")](r.start):t.model[tr("0x24")](x[tr("0x19")],x[tr("0x1b")]),x[tr("0xe")](),t[tr("0x15")][tr("0xc")](n[tr("0x26")][tr("0x4")],(t=>{n.buffer[tr("0x11")](),t[tr("0x8")](t[tr("0x24")](a[tr("0x1b")])),n[tr("0x26")][tr("0x21")]()}))})),t.editing[tr("0xf")].on("addMarker:suggestion:deletion",Ts(t,"merge"),{priority:tr("0x2")}),t[tr("0x5")][tr("0xf")].on(tr("0x1e"),((e,n,o)=>{o[tr("0x27")][tr("0x0")]&&Ts(t,tr("0x7"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:tr("0x2")}),t[tr("0x29")][tr("0xf")].on(tr("0x6"),((t,e,n)=>{const o=n[tr("0x1d")][tr("0x1c")](e[tr("0x16")]);if(o)for(const t of o)t.is(tr("0x1f"))&&(n[tr("0x1d")][tr("0x20")](t,e[tr("0x16")]),n[tr("0x3")][tr("0xb")](t))}),{priority:"high"})}}const nr=["markBlockFormat","registerCustomCallback","getFirstRange","multipleBlocks","model","hasAttribute","markMultiRangeBlockFormat","from","ELEMENT_","getSelectedBlocks","_LIST","locale","detach","commandName","documentList","listType","DocumentListUtils","setSelection","selection","ELEMENT_LIST_ITEM","isFirstBlockOfListItem","enableCommand","indentList","format","formatBlock","before","nextSibling","refresh","*Format:* remove from %0","list.multiBlock","fromRange","outdentList","afterInit","expandListBlocksToCompleteList","execute","value","ELEMENT_NUMBERED_LIST","commands","plugins","bulletedList","*Merge:* %0","config","forceValue","schema","paragraph","numberedList","*Outdent:* %0","slice","commandParams","isObject","splitListItemBefore","nodeAfter","editor","accept","DocumentListEditing","splitListItemAfter","listItemId","get","createPositionAt","registerElementLabel","getAttribute","after","_descriptionFactory","change","start","next","*Format:* insert into %0","push","previousSibling","end","ELEMENT_BULLETED_LIST","createRange","*Change to:* %0","document","listIndent"];var or,sr;or=nr,sr=123,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x3b")](){const t=this[rr("0x4")];if(!t[rr("0x41")].has(rr("0x6")))return;const e=t[rr("0x26")],n=t[rr("0x41")].get("TrackChangesEditing"),o=t[rr("0x41")][rr("0x9")](rr("0x2b"));function s(e){return()=>{const s=t[rr("0x40")][rr("0x9")](e);if(s[rr("0x3e")]&&!t[rr("0x44")].get(rr("0x38")))return void t[rr("0x3d")](rr("0x47"),{});let r=Array[rr("0x22")](t[rr("0x1f")][rr("0x19")][rr("0x2d")][rr("0x24")]());if(a(e)){r=o[rr("0x3c")](r);const t=[];for(const e of r)o[rr("0x2f")](e)&&t[rr("0x13")](e);r=t}t[rr("0x1f")][rr("0xf")]((()=>{n[rr("0x21")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x3e")]}],formatGroupId:rr("0x2a")},[],rr("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x22")](t);const n=e.findIndex((t=>!t[rr("0x20")](rr("0x8"))));return n>-1&&(e=e[rr("0x4a")](0,n)),e}(t.model[rr("0x19")][rr("0x2d")].getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x1f")].schema[rr("0x1")](s)?rr("0xd"):"end",i=t[rr("0x1f")].createRange(t[rr("0x1f")][rr("0xa")](o[0],rr("0x34")),t[rr("0x1f")][rr("0xa")](s,r));t[rr("0x1f")][rr("0xf")]((()=>{n[rr("0x1b")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2a")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x35")];for(;t&&t[rr("0xc")](rr("0x1a"))>n[rr("0xc")](rr("0x1a"));)e.add(t),t=t[rr("0x35")]}return Array[rr("0x22")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x1f")][rr("0x19")].selection[rr("0x24")]()[rr("0x11")]()[rr("0x3e")],s=t[rr("0x1f")][rr("0xa")](o,rr("0x34")),r=t[rr("0x1f")][rr("0xa")](o,0),i=t.model[rr("0x17")](s,r);t.model[rr("0xf")]((()=>{n[rr("0x1b")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2a")})}))}}function a(e){const n=t[rr("0x40")].get(rr("0x42")).value,o=t[rr("0x40")].get(rr("0x48")).value;return rr("0x48")===e?n:o}n.enableCommand(rr("0x48"),s(rr("0x48"))),n[rr("0x30")](rr("0x42"),s(rr("0x42"))),n[rr("0x30")]("indentList",r(rr("0x31"))),n.enableCommand("outdentList",r(rr("0x3a"))),n[rr("0x30")]("splitListItemAfter",x(rr("0x7"))),n[rr("0x30")](rr("0x2"),x("splitListItemBefore")),n[rr("0xe")][rr("0xb")]((function(e){const n=!t[rr("0x1f")][rr("0x46")][rr("0x1")](e),o=e[rr("0x14")],s=e[rr("0x35")],r=e.getAttribute(rr("0x8")),i=!o||o[rr("0xc")](rr("0x8"))!==r,x=!s||s[rr("0xc")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x2e"),t))),n[rr("0xe")].registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x28")]){case rr("0x42"):i=o[rr("0x0")][0][rr("0x45")],x=a(o[rr("0x28")]),s=i?rr("0x12"):"*Format:* remove from %0",!x&&t[rr("0x44")][rr("0x9")](rr("0x38"))||(s="*Change to:* %0"),r={type:"format",content:Yo(e,s,Yo(e,rr("0x16")))};break;case rr("0x48"):i=o[rr("0x0")][0][rr("0x45")],x=a(o.commandName),s=rr(i?"0x12":"0x37"),!x&&t[rr("0x44")][rr("0x9")](rr("0x38"))||(s=rr("0x18")),r={type:"format",content:Yo(e,s,Yo(e,rr("0x3f")))};break;case"indentList":s="*Indent:* %0",r={type:rr("0x32"),content:Yo(e,s,Yo(e,rr("0x2e")))};break;case rr("0x3a"):s=function(t){const e=t.getFirstRange();let n=e[rr("0x10")][rr("0x3")];for(;n&&e.containsItem(n);){if(n[rr("0xc")](rr("0x1a"))>0)return!1;n=n[rr("0x35")]}return!0}(n)?Yo(e,rr("0x37"),Yo(e,function(t){const e=t[rr("0x1d")]()[rr("0x10")][rr("0x3")];return rr("0x23")+e[rr("0xc")](rr("0x2a")).toUpperCase()+rr("0x25")}(n))):Yo(e,rr("0x49"),Yo(e,"ELEMENT_LIST_ITEM")),r={type:rr("0x32"),content:s};break;case"mergeListItemBackward":case"mergeListItemForward":!1===o[rr("0x1e")]&&(s=rr("0x43"),r={type:"deletion",content:Yo(e,s,Yo(e,rr("0x2e")))})}return r})),n._suggestionFactory[rr("0x1c")](rr("0x33"),"documentList",rr("0x5"),(function(e,n){const o=[];for(let n of e)n[rr("0x10")][rr("0x3")]===n[rr("0x15")].parent&&(n=t.model[rr("0x17")](t[rr("0x1f")].createPositionAt(n.start.nodeAfter,0))),o[rr("0x13")](n);t[rr("0x1f")][rr("0xf")]((e=>{const s=t[rr("0x1f")][rr("0x19")][rr("0x2d")],r=Array[rr("0x22")](s.getRanges()).map((t=>i.LiveRange[rr("0x39")](t)));e[rr("0x2c")](o),t[rr("0x40")][rr("0x9")](n[rr("0x28")])[rr("0x36")](),n[rr("0x0")][rr("0x13")]({forceDefaultExecution:!0}),t[rr("0x3d")](n[rr("0x28")],...n[rr("0x0")]),e.setSelection(r);for(const t of r)t[rr("0x27")]()}))}))}}var xr=n(331);const ar=["markInsertion","commands","removeMarker:suggestion:insertion","requires","enter","getFirstRange","hasClass","addMarker:suggestion:insertion","ck-suggestion-marker-split","editor","plugins","markerName","markerNameToElements","high","parent","setSelection","init","model","data","fire","end","document","mapper","editing","fromRange","downcastDispatcher","createRange","change","selection","enterBlock","split","remove","enableCommand","getFirstPosition"];var cr,lr;cr=ar,lr=243,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[dr("0x20")](){return[xr.Enter]}[dr("0xb")](){const t=this[dr("0x4")],e=t[dr("0x5")].get("TrackChangesEditing"),n=t[dr("0x1e")].get("enter");e[dr("0x1b")](dr("0x21"),(()=>{t[dr("0xc")][dr("0x16")]((o=>{const s=t[dr("0xc")][dr("0x10")][dr("0x17")],r=s[dr("0x1c")](),x=i.LiveRange[dr("0x13")](s[dr("0x0")]());if(n[dr("0x18")](o)){const n=t.model.createPositionAt(r[dr("0x9")].nextSibling,0),s=o.createRange(r,n);e[dr("0x1d")](s)}else o[dr("0xa")](o[dr("0x15")](x[dr("0xf")]));x.detach(),n[dr("0xe")]("afterExecute",{writer:o})}))})),t[dr("0x12")].downcastDispatcher.on(dr("0x2"),Ts(t,dr("0x19")),{priority:dr("0x8")}),t[dr("0x12")][dr("0x14")].on(dr("0x1f"),((t,e,n)=>{const o=n[dr("0x11")][dr("0x7")](e[dr("0x6")]);if(o)for(const t of o)t[dr("0x1")](dr("0x3"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer[dr("0x1a")](t))}),{priority:"high"}),t[dr("0xd")][dr("0x14")].on(dr("0x2"),((e,n,o)=>{o.options.showSuggestionHighlights&&Ts(t,dr("0x19"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:dr("0x8")})}}const gr=["bind","has","plugins","getMarkersGroup","item","filter","start","enableCommand","findByTextCallback","TrackChangesEditing","suggestion:deletion","findNext","string","model","findPrevious","createRange","replace","FindAndReplaceEditing","replaceAll","markers","get","createPositionAt","editor","handleFindCommand"];var mr,fr;mr=gr,fr=125,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{afterInit(){if(!this[hr("0x11")][hr("0x15")][hr("0x14")](hr("0xc")))return;const t=this[hr("0x11")].plugins[hr("0xf")](hr("0x4"));t[hr("0x2")]("find",this[hr("0x12")][hr("0x13")](this)),t[hr("0x2")](hr("0x6")),t.enableCommand(hr("0x9")),t[hr("0x2")](hr("0xb")),t.enableCommand(hr("0xd"))}[hr("0x12")](t,e,n={}){const o=this[hr("0x11")][hr("0x15")][hr("0xf")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(hr("0x7")==typeof e?o[hr("0x3")](e,n):e)(t)[hr("0x0")]((e=>!1===this._isInDeletionRange(e,t[hr("0x17")])))),n)}_isInDeletionRange(t,e){const n=this[hr("0x11")][hr("0x8")][hr("0xa")](this.editor[hr("0x8")][hr("0x10")](e,t[hr("0x1")]),this.editor[hr("0x8")][hr("0x10")](e,t.end));for(const t of this[hr("0x11")].model[hr("0xe")][hr("0x16")](hr("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const br=["editor","fontSize","_enableCommand","find","label","change","_descriptionFactory","*Set font family:* %0","model","get","*Reset font size*","plugins","FontSizeEditing","format","enableCommand","registerDescriptionCallback","TrackChangesEditing","selection","*Set font color:* %0","FontSize","value","FontColorEditing","commandParams","trim","toLowerCase","fontSize.options","FontFamilyEditing","fontColor","*Set font background color:* %0","fontBackgroundColor","from","config","document","FontBackgroundColorEditing","*Reset font color*","title","commandName","fontFamily"];var Er,_r;Er=br,_r=336,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x12"),commandName:Tr("0x7")},{pluginName:Tr("0x20"),commandName:Tr("0x5")},{pluginName:Tr("0x1b"),commandName:"fontColor"},{pluginName:Tr("0x1"),commandName:Tr("0x23")}];class yr extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x6")].plugins.has(t)&&this[Tr("0x8")](e);this[Tr("0x6")][Tr("0x11")][Tr("0xf")](Tr("0x16"))[Tr("0xc")][Tr("0x15")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[Tr("0x4")]){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=n(this[Tr("0x6")].plugins[Tr("0xf")](Tr("0x19")).normalizeSizeOptions(this[Tr("0x6")][Tr("0x25")][Tr("0xf")](Tr("0x1f"))).find((t=>t[Tr("0xe")]==e))[Tr("0x3")])[Tr("0x1e")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:Tr("0x13"),content:Yo(t,Tr("0x10"))}}if("fontFamily"==o[Tr("0x4")]){const e=o[Tr("0x1c")][0].value;return e?{type:Tr("0x13"),content:Yo(t,Tr("0xd"),e)}:{type:Tr("0x13"),content:Yo(t,"*Reset font family*")}}if(Tr("0x21")==o.commandName){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x6")][Tr("0x25")][Tr("0xf")]("fontColor.colors"))[Tr("0x9")]((t=>t[Tr("0xe")]==e));let r=e,i="";return o&&(r=o[Tr("0xa")],i=n(r)[Tr("0x1e")]()),{type:"format",content:Yo(t,Tr("0x18"),i)[Tr("0x1d")](),color:{value:e,title:i||r}}}return{type:Tr("0x13"),content:Yo(t,Tr("0x2"))}}if(Tr("0x23")==o[Tr("0x4")]){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x6")][Tr("0x25")].get("fontBackgroundColor.colors"))[Tr("0x9")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0xa")],i=n(r).toLowerCase()),{type:Tr("0x13"),content:Yo(t,Tr("0x22"),i)[Tr("0x1d")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font background color*")}}}}))}[Tr("0x8")](t){const e=this[Tr("0x6")];e.plugins.get(Tr("0x16"))[Tr("0x14")](t,((n,o={})=>{const s=e[Tr("0xe")][Tr("0x0")][Tr("0x17")],r=o[Tr("0x1a")];s.isCollapsed?n(o):e[Tr("0xe")][Tr("0xb")]((()=>{const n=Array[Tr("0x24")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e.plugins[Tr("0xf")](Tr("0x16")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["copyFormat","commandParams","length","*Remove all formatting*","toUpperCase","markInlineFormat","FontSize","boolean","word","getRanges","pasteFormat","keys","isFormatting","normalizeSizeOptions","isBlock","getLastPosition","locale","createRange","join","_descriptionFactory","commands","fontColor.colors","fontColor","toLowerCase","fontSize.options","config","editor","get","modifySelection","push","enableCommand","fontBackgroundColor","plugins","change","isCollapsed","registerDescriptionCallback","label","model","format","find","from","selection","document","getFirstPosition","split","backward"];var Ar,vr;Ar=kr,vr=105,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{afterInit(){const t=this[Rr("0xd")],n=t[Rr("0x18")],o=n[Rr("0x1d")][Rr("0x1c")],s=t[Rr("0x13")].get("TrackChangesEditing"),r=t[Rr("0x3")],i=t[Rr("0x7")][Rr("0xe")](Rr("0x21")),x=t[Rr("0x7")][Rr("0xe")](Rr("0x2b"));i&&x&&(s[Rr("0x11")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x14")]((()=>{const t=Array[Rr("0x1b")](o[Rr("0x2a")]()),r=o[Rr("0x15")]?[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.getAttributes()){const t=e.getAttributeProperties(n);t&&t[Rr("0x2d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2a")]())for(const t of e.getItems())!n[Rr("0x1")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x2c")](i).length)for(const t of r)s[Rr("0x26")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Rr("0x6")][Rr("0x16")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Rr("0x22")][0];for(const[n,s]of Object.entries(o))e[Rr("0x10")](Lr(t,n,s));return e[Rr("0x23")]?{type:Rr("0x19"),content:Yo(r,"*Set format to:* %0",e[Rr("0x5")](", "))}:{type:Rr("0x19"),content:Yo(r,Rr("0x24"))}}})),t[Rr("0x13")].get("TrackChangesEditing").enableCommand(Rr("0x21")))}}function Sr(t,e){const n=t.createSelection(e);t[Rr("0xf")](n,{unit:Rr("0x29"),direction:Rr("0x20")});const o=n[Rr("0x1e")]();t[Rr("0xf")](n,{unit:"word",direction:"forward"});const s=n[Rr("0x2")]();return t[Rr("0x4")](o,s)}function Lr(t,e,n){const o=t.locale.t,r=e[Rr("0x1f")](/(?=[A-Z])/)[Rr("0x5")](" "),i=o(r.charAt(0)[Rr("0x25")]()+r.slice(1))[Rr("0xa")]();if(Rr("0x28")==typeof n)return i;if(Rr("0x9")===e||Rr("0x12")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0xc")][Rr("0xe")](Rr("0x8")))[Rr("0x1a")]((t=>t[Rr("0x18")]==n));return i+" ("+(e?o(e[Rr("0x17")])[Rr("0xa")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get(Rr("0x27"))[Rr("0x0")](t[Rr("0xc")][Rr("0xe")](Rr("0xb")))[Rr("0x1a")]((t=>t.model==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const Nr=["title","schema","commandName","plugins","match","editor","locale","heading","format","enableCommand","TrackChangesEditing","get","HeadingEditing","afterInit","commandParams","value","_descriptionFactory","change","*Change to:* %0","find","parent","markBlockFormat","heading.options","selection","isObject","has","formatBlock","registerElementLabel","model","blockName"];var wr,Mr;wr=Nr,Mr=387,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x10")](){const t=this[Or("0x8")],e=t[Or("0x9")],n=t.config[Or("0xe")](Or("0x19"));if(!t[Or("0x6")][Or("0x1c")](Or("0xf")))return;const o=t[Or("0x6")][Or("0xe")](Or("0xd"));o[Or("0xc")](Or("0xa"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Or("0x1")].document[Or("0x1a")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this.editor.model[Or("0x4")]).checkChild(e[Or("0x17")],n)&&!o[Or("0x1b")](e)&&e.name!=n;var e,n,o}));t[Or("0x1")][Or("0x14")]((()=>{for(const t of r)o[Or("0x18")](t,{commandName:Or("0xa"),commandParams:[n],formatGroupId:Or("0x2")},_s(t))}))}));for(const t of n)"paragraph"!=t[Or("0x1")]&&o[Or("0x13")][Or("0x0")](t[Or("0x1")],(e=>{const n=Pr(t[Or("0x1")]);return null!==n?s(e,n):r(e,t[Or("0x3")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Or("0x13")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Or("0x1d")==o&&i&&Or("0xa")==i[Or("0x5")]){const t=i[Or("0x11")][0][Or("0x12")],o=Pr(t);if(null!==o)return{type:Or("0xb"),content:Yo(e,Or("0x15"),s(1,o))};const x=n[Or("0x16")]((e=>e[Or("0x1")]===t))[Or("0x3")];return{type:Or("0xb"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x7")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["toLowerCase","value","model","*Remove highlight*","hasAttribute","editor","TrackChangesEditing","format","FORMAT_HIGHLIGHT","push","highlight.options","document","title","get","formatInline","highlight","isCollapsed","*Set highlight:* %0","commandName","backward","getLastMatchingPosition","commandParams","markInlineFormat","getAttribute","plugins","createRange","enableCommand","selection","change","getFirstPosition","locale","item"];var Br,jr;Br=Dr,jr=371,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x12")];if(!t.plugins.has("HighlightEditing"))return;const e=t[Ur("0x5")][Ur("0x1a")](Ur("0x13"));e[Ur("0x7")](Ur("0x1c"),((n,o={})=>{const s=t[Ur("0xf")][Ur("0x18")][Ur("0x8")],r=s[Ur("0x4")](Ur("0x1c"));let i=o[Ur("0xe")],x=[];if(s[Ur("0x1d")]){const e=s[Ur("0xa")]();if(!s[Ur("0x11")](Ur("0x1c")))return void n(o);{const n=t=>t[Ur("0xc")][Ur("0x4")]("highlight")===r,o=e[Ur("0x1")](n,{direction:Ur("0x0")}),s=e[Ur("0x1")](n);x=[t[Ur("0xf")][Ur("0x6")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Ur("0x16")](...Es(Ur("0x1c"),e,t[Ur("0xf")]));t.model[Ur("0x9")]((()=>{for(const t of x)e[Ur("0x3")](t,{commandName:Ur("0x1c"),commandParams:[{value:i}]})}))}));const n=t[Ur("0xb")];e._descriptionFactory.registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x1b")==o&&s&&Ur("0x1c")==s[Ur("0x1f")]){const e=n.t,o=s[Ur("0x2")][0][Ur("0xe")];if(o){const s=t.config[Ur("0x1a")](Ur("0x17")).find((t=>t[Ur("0xf")]==o)),r=e(s.title)[Ur("0xd")]();return{type:Ur("0x14"),content:Yo(n,Ur("0x1e"),r),color:{value:s.color,title:s[Ur("0x19")]}}}return{type:"format",content:Yo(n,Ur("0x10"),Yo(n,Ur("0x15")))}}}))}}const Hr=["editor","horizontalLine","createContainerElement","div","insert","plugins","TrackChangesEditing","high","HorizontalLineEditing","showSuggestionHighlights","get","addClass","has","elementToStructure","for","ck-horizontal-line","locale","dataDowncast","enableCommand","conversion"];var zr,Wr;zr=Hr,Wr=138,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x2")];if(!t[Vr("0x7")][Vr("0xe")](Vr("0xa")))return;t.plugins[Vr("0xc")]("TrackChangesEditing")[Vr("0x0")]("horizontalLine");const e=t[Vr("0x7")][Vr("0xc")](Vr("0x8")),n=t[Vr("0x12")];e._descriptionFactory.registerElementLabel(Vr("0x3"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vr("0x1")][Vr("0x10")](Vr("0x13"))[Vr("0xf")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Vr("0xb")])return null;const o=e[Vr("0x4")](Vr("0x5")),s=e.createEmptyElement("hr");return e[Vr("0xd")](Vr("0x11"),o),e[Vr("0x6")](e.createPositionAt(o,0),s),o},converterPriority:Vr("0x9")})}}const qr=["view","getSelectedElement","TrackChangesEditing","get","value","format","ELEMENT_HTML_EMBED","registerDescriptionCallback","cancel","rawHtml","_descriptionFactory","change","locale","rawHtmlApi","HtmlEmbed","model","registerElementLabel","plugins","htmlEmbed","has","element","selection","*Change %0 content*","getCustomProperty","document","getAttribute"];var Xr,$r;Xr=qr,$r=434,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.editor;if(!t[Jr("0x19")][Jr("0x1")](Jr("0x16")))return;const e=t[Jr("0x19")][Jr("0xb")]("TrackChangesEditing"),n=t[Jr("0x14")],o=t.editing[Jr("0x8")][Jr("0x6")][Jr("0x3")];e._descriptionFactory[Jr("0x18")](Jr("0x11"),(t=>Yo(n,Jr("0xe"),t))),t[Jr("0x19")][Jr("0xb")](Jr("0xa")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Jr("0x17")],i=r[Jr("0x6")][Jr("0x3")];r[Jr("0x13")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x2"),"rawHtml")?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Jr("0x7")](Jr("0xc"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Jr("0x0"),commandParams:[s]}),o[Jr("0x9")]()[Jr("0x5")](Jr("0x15"))[Jr("0x10")]())}))})),e[Jr("0x12")][Jr("0xf")]((t=>{const{data:e}=t;if(e&&Jr("0x0")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0xd"),content:Yo(n,Jr("0x4"),t)}}}))}}const Zr=["isInlineImage","toNext","schema","*Reset image width*","accept","ImageCaptionUtils","discard","convertInlineImageToBlock","commandParams","forceDefaultExecution","createRange","formatBlock","ImageUploadEditing","value","newValue","locale","FORMAT_SIDE_IMAGE","normalizedStyles","imageTypeInline","length","hasSuggestion","imageTextAlternative","isCollapsed","isBlockImage","imageStylePostApply","ELEMENT_IMAGE","ImageInlineEditing","_findSuggestions","head","differ","Block image to inline image","element","alt","getNearestSelectionRange","_descriptionFactory","imageStylePreApply","*Remove image text alternative*","end","ImageBlockEditing","isEqual","imageBlock","filter","getAttribute","type","detach","commandName","findIndex","ELEMENT_INLINE_IMAGE","ImageEditing","getFirstRange","nodeAfter","registerElementLabel","imageCaption","insertImage","*Set image text alternative:* %0","caption","resizeImage","subType","markDeletion","*Set image width:* %0","width","has","_suggestionFactory","ImageUtils","markInsertion","insertion","registerDescriptionCallback","markInlineFormat","imageStyle","toPrevious","start","registerCustomCallback","plugins","ELEMENT_CAPTION","setImageNaturalSizeAttributes","chain","get","isOwn","convertBlockImageToInline","suggestion","markBlockFormat","change","title","hasAttribute","imageTypeBlock","getSuggestionCallback","imageInline","deletion","addObject","previous","resizedWidth","next","ImageCaptionEditing","Users","document","getCaptionFromImageModelElement","format","getSuggestions","join","forward","getContainedElement","createRangeOn","*Format:* %0","uploadImage","model","getClosestSelectedImageElement","refresh","_splitMarkerName","fromPosition","ImageResize","forEach","isBefore","newRange","enableCommand","selection","find","formatInline","backward","commands","ImageStyleEditing","removeObject","getChangedMarkers","discardSuggestion","name"];var Yr,ti;Yr=Zr,ti=294,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){const t=this.editor;if(!t[ei("0x1a")].has(ei("0x2")))return;const n=t.plugins[ei("0x1e")]("TrackChangesEditing"),o=t.plugins[ei("0x1e")](ei("0x11")),s={},r=t[ei("0x5d")];if(n.enableCommand(ei("0x7")),n[ei("0x70")][ei("0x5")](ei("0x76"),(t=>Yo(r,ei("0x67"),t))),n._descriptionFactory.registerElementLabel(ei("0x28"),(t=>Yo(r,ei("0x1"),t))),n[ei("0x70")][ei("0x5")](ei("0x9"),(()=>Yo(r,ei("0x1b")))),t[ei("0x1a")].has(ei("0x5a"))&&n.enableCommand(ei("0x39")),t[ei("0x1a")][ei("0xf")](ei("0x74"))&&t.plugins[ei("0xf")](ei("0x68"))&&(n[ei("0x43")]("imageTypeInline",((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")].selection);t[ei("0x3a")][ei("0x23")]((()=>{n[ei("0x22")](r,{commandName:"imageTypeInline",commandParams:[s]},[],ei("0x20"))}))})),n[ei("0x43")](ei("0x26"),((e,s)=>{t.model[ei("0x23")]((r=>{let x=o.getClosestSelectedImageElement(t[ei("0x3a")].document[ei("0x44")]),a=r[ei("0x37")](x);const c=i.LivePosition[ei("0x3e")](a.start,ei("0x17")),l=i.LivePosition[ei("0x3e")](a[ei("0x73")],ei("0x4f"));n[ei("0x57")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")].selection),a=r[ei("0x37")](x);const d=r[ei("0x58")](c,l);c[ei("0x7a")](),l[ei("0x7a")](),n[ei("0x22")](x,{commandName:ei("0x60"),commandParams:[s]},[],ei("0x55")),d.start[ei("0x41")](a[ei("0x18")])&&n[ei("0x12")](r.createRange(d.start,a[ei("0x18")]),ei("0x55")),a.end.isBefore(d[ei("0x73")])&&n.markInsertion(r[ei("0x58")](a[ei("0x73")],d[ei("0x73")]),ei("0x55"))}))})),n[ei("0x10")][ei("0x19")](ei("0x59"),"convertInlineImageToBlock",ei("0x34"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",ei("0x55"),ei("0x52"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x59"),ei("0x55"),ei("0x54"),n[ei("0x10")].getSuggestionCallback("formatBlock","","accept")),n[ei("0x10")][ei("0x19")]("insertion","convertInlineImageToBlock","join",(()=>!1)),n[ei("0x10")][ei("0x19")](ei("0x13"),ei("0x55"),ei("0x54"),(([e])=>{const o=n[ei("0x10")].getSuggestionCallback(ei("0x13"),"",ei("0x54"));let s=e[ei("0x18")],r=e[ei("0x73")];const i=t[ei("0x3a")][ei("0x50")].getNearestSelectionRange(s,ei("0x47")),x=t[ei("0x3a")].schema[ei("0x6f")](r,ei("0x35"));i[ei("0x64")]&&(s=i[ei("0x18")]),x.isCollapsed&&(r=x[ei("0x73")]),o([t[ei("0x3a")].createRange(s,r)])})),n._suggestionFactory[ei("0x19")](ei("0x59"),ei("0x55"),ei("0x1d"),c),n[ei("0x10")].registerCustomCallback("insertion",ei("0x55"),"chain",c)),t.plugins[ei("0xf")](ei("0x2e"))&&(n[ei("0x43")]("toggleImageCaption",((e,s)=>{const r=t[ei("0x1a")][ei("0x1e")](ei("0x53"));let i=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")][ei("0x44")]),x=r[ei("0x31")](i);t[ei("0x3a")][ei("0x23")]((()=>{if(x)return void n[ei("0xc")](t[ei("0x3a")][ei("0x37")](x));const a=o[ei("0x65")](i);e(s),i=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")][ei("0x44")]),x=r[ei("0x31")](i),n[ei("0x12")](t[ei("0x3a")].createRangeOn(x),a?null:"imageCaption")}))})),n[ei("0x10")][ei("0x19")](ei("0x13"),ei("0x6"),ei("0x1d"),c)),t[ei("0x1a")][ei("0xf")](ei("0x49"))){n[ei("0x43")](ei("0x16"),((s,r)=>{const i=t[ei("0x1a")][ei("0x1e")](ei("0x2f")).me,x=t[ei("0x48")][ei("0x1e")](ei("0x16"));let a=o[ei("0x3b")](t[ei("0x3a")].document[ei("0x44")]),c=t[ei("0x3a")][ei("0x37")](a),l=x[ei("0x5b")];if(l==r[ei("0x5b")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x23")]((()=>{if(n[ei("0x33")]()[ei("0x77")]((t=>t.isInContent&&i==t.author&&("formatBlock"==t[ei("0x79")]||ei("0x46")==t[ei("0x79")])&&(ei("0x71")==t.subType||ei("0x66")==t[ei("0xb")])&&t[ei("0x3")]().isEqual(c)))[ei("0x40")]((t=>n.discardSuggestion(t[ei("0x6a")]))),a=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")].selection),c=t.model[ei("0x37")](a),x[ei("0x3c")](),t.commands[ei("0x1e")](ei("0x60"))[ei("0x3c")](),t[ei("0x48")].get(ei("0x26"))[ei("0x3c")](),l=x[ei("0x5b")],l!=r[ei("0x5b")])return o[ei("0x4e")](a)&&x.shouldConvertImageType(r.value,a)?(s({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")][ei("0x44")]),void n.markBlockFormat(a,{...d,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x71"))):void(o[ei("0x65")](a)?n[ei("0x22")](a,d,[],ei("0x66")):n[ei("0x15")](c,d,ei("0x66")))}))}));for(const e of t[ei("0x1a")].get(ei("0x49"))[ei("0x5f")])s[e[ei("0x4d")]]=e[ei("0x24")].toLowerCase();n[ei("0x10")].registerCustomCallback(ei("0x59"),"imageStylePreApply",ei("0x34"),(()=>!1)),n[ei("0x10")][ei("0x19")](ei("0x59"),"imageStylePostApply",ei("0x34"),(()=>!1)),n[ei("0x10")][ei("0x19")]("formatInline",ei("0x66"),ei("0x34"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x59"),ei("0x71"),ei("0x52"),(([t])=>{o[ei("0x1c")](t.getContainedElement())})),n[ei("0x10")][ei("0x19")](ei("0x59"),"imageStylePreApply",ei("0x54"),((t,e)=>{n[ei("0x10")][ei("0x27")](ei("0x59"),"",ei("0x52"))(t,{commandName:e[ei("0x7b")],commandParams:e.commandReversedParams})})),n._suggestionFactory.registerCustomCallback(ei("0x59"),ei("0x71"),ei("0x1d"),c)}const x=[{type:ei("0x59"),subType:"imageStylePreApply"},{type:ei("0x13"),subType:ei("0x6")},{type:ei("0x59"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[ei("0x0")]((({type:e,subType:n})=>t[ei("0x79")]==e&&t.subType==n)),r=x[ei("0x0")]((({type:t,subType:n})=>e[ei("0x79")]==t&&e[ei("0xb")]==n));if(s<0||r<0)return!1;const i=t[ei("0x3")](),a=e[ei("0x3")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x69")](i,ei("0x13"))[ei("0x77")]((({suggestion:t,meta:e})=>e[ei("0x1f")]&&ei("0x55")==t.subType));if(t[ei("0x61")]>1&&a.end[ei("0x75")](i[ei("0x18")]))return!0;if(1==t.length&&(i[ei("0x18")][ei("0x75")](a[ei("0x73")])||i[ei("0x73")][ei("0x75")](a.start)))return!0}if(3==s&&3==r&&i.start.isBefore(a[ei("0x18")])){const t=i.end[ei("0x4")],e=a[ei("0x18")].nodeBefore;return o[ei("0x65")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x30")].registerPostFixer((()=>{let e=!1;const s=Array.from(t.model[ei("0x30")][ei("0x6b")][ei("0x4b")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x3d")](t);if(ei("0x21")==s&&n[ei("0x62")](a)){if(ei("0x59")==i&&(ei("0x71")==x||ei("0x66")==x)){const t=n.getSuggestion(a);if(r[ei("0x42")]){const s=t[ei("0x3")]().getContainedElement();if(o.isBlockImage(s))continue;n[ei("0x4c")](t),e=!0}}if(ei("0x13")==i&&ei("0x6")==x&&!r[ei("0x42")]){const t=n.getSuggestion(a);t.next&&t[ei("0x2d")].isInContent&&(n[ei("0x4c")](t[ei("0x2d")]),e=!0)}}}return e})),t[ei("0x1a")].has(ei("0x3f"))&&n[ei("0x43")]("resizeImage",((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")][ei("0x44")]);r[ei("0x78")](ei("0x2c"))!=s.width&&t[ei("0x3a")][ei("0x23")]((()=>{n[ei("0x22")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[ei("0x1a")][ei("0xf")]("ImageTextAlternativeEditing")&&n[ei("0x43")](ei("0x63"),((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")].document.selection);(r[ei("0x25")]("alt")?r[ei("0x78")](ei("0x6e")):"")!=s[ei("0x5c")]&&t[ei("0x3a")][ei("0x23")]((()=>{n.markBlockFormat(r,{commandName:ei("0x63"),commandParams:[s]})}))})),n[ei("0x70")][ei("0x14")]((t=>{if(x[ei("0x45")]((({type:e,subType:n})=>t[ei("0x79")]==e&&t.subType==n)))return t[ei("0x2b")]?{}:void 0})),n[ei("0x70")][ei("0x14")]((t=>{if(ei("0x13")==t.type||ei("0x29")==t[ei("0x79")]){const e=t[ei("0x36")]();if(e&&e.is(ei("0x6d"),ei("0x9")))return{type:ei("0x13")==t.type?ei("0x2a"):ei("0x4a"),element:e,quantity:1}}})),n[ei("0x70")][ei("0x14")]((t=>ei("0x59")==t.type&&ei("0x55")==t[ei("0xb")]?{type:ei("0x32"),content:"Inline image to block image"}:ei("0x59")==t.type&&ei("0x20")==t.subType?{type:ei("0x32"),content:ei("0x6c")}:void 0)),n[ei("0x70")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(ei("0x16")==e[ei("0x7b")]){const t=e[ei("0x56")][0][ei("0x5b")];return n="side"===t?Yo(r,ei("0x5e")):s[t]||t,{type:ei("0x32"),content:Yo(r,ei("0x38"),n)}}if("imageTextAlternative"==e.commandName){const t=e[ei("0x56")][0][ei("0x5c")];return t?{type:ei("0x32"),content:Yo(r,ei("0x8"),'"'+t+'"')}:{type:ei("0x32"),content:Yo(r,ei("0x72"))}}if(ei("0xa")==e[ei("0x7b")]){const t=e.commandParams[0][ei("0xe")];return t?{type:"format",content:Yo(r,ei("0xd"),t)}:{type:ei("0x32"),content:Yo(r,ei("0x51"))}}}var n}))}}const oi=["get","data","replaceImageSource","getAttribute","handleSuggestionDescription","*Format:* replace image URL","ImageEditing","accept","subType","registerDescriptionCallback","registerCustomCallback","plugins","getContainedElement","discard","formatBlock","selection","handleReplaceImageCommand","markBlockFormat","source","TrackChangesEditing","Users","document","editor","enableCommand","commandParams","commandName","getSuggestions","model","src"];var si,ri;si=oi,ri=425,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this[ii("0x3")].plugins.has(ii("0x10")))return;const t=this[ii("0x3")][ii("0x15")].get(ii("0x0"));t[ii("0x4")](ii("0xc"),((t,e)=>this[ii("0x1a")](t,e))),t._suggestionFactory.registerCustomCallback(ii("0x18"),"replaceImageSource",ii("0x11"),t._suggestionFactory.getSuggestionCallback(ii("0x18"),null,ii("0x17"))),t._suggestionFactory[ii("0x14")](ii("0x18"),ii("0xc"),ii("0x17"),t._suggestionFactory.getSuggestionCallback(ii("0x18"),null,ii("0x11"))),t._descriptionFactory[ii("0x13")]((t=>this[ii("0xe")](t)))}[ii("0x1a")](t,e){const n=this[ii("0x3")][ii("0x15")][ii("0xa")]("TrackChangesEditing"),o=this[ii("0x3")].model[ii("0x2")][ii("0x19")].getSelectedElement();this[ii("0x3")][ii("0x8")].change((()=>{let s=o[ii("0xd")](ii("0x9"));const r=this[ii("0x3")][ii("0x15")][ii("0xa")](ii("0x1")).me;for(const t of n[ii("0x7")]({skipNotAttached:!0})){const e=t[ii("0x16")]();if(ii("0xc")===t[ii("0x12")]&&e===o){t.author!==r&&t[ii("0x17")](),s=t[ii("0xb")][ii("0x5")][0][ii("0x1c")];break}}t(e),n[ii("0x1b")](o,{commandName:ii("0xc"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0xe")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ii("0x6")]){const t=ii("0xf");return{type:"format",content:Yo(this.editor.locale,t)}}}}const ai=["get","lowest","_handleImportedData","_trackChangesExecuted","value","_trackChangesValueDuringImport","execute","bind","enableCommand","forEach","listenTo","trackChanges","track_changes","TrackChangesEditing","collaboration_features","plugins","importWord","high","_setSuggestionData","commands","dataInsert","editor","afterInit"];var ci,li;ci=ai,li=123,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("0x14")]=!1,this._trackChangesExecuted=!1}[di("0xe")](){const t=this[di("0xd")],e=t[di("0xb")][di("0xf")](di("0x8")),n=t[di("0xb")][di("0xf")](di("0x3"));e&&(e.on(di("0x15"),((t,[,e])=>{this._trackChangesValueDuringImport=n[di("0x13")],e[di("0x6")][di("0x4")]=!this[di("0x14")]}),{priority:di("0x9")}),this[di("0x2")](e,di("0xc"),this[di("0x11")][di("0x16")](this)),this[di("0x2")](e,di("0xc"),(()=>{this[di("0x12")]&&(n[di("0x15")](),this[di("0x12")]=!1)}),{priority:di("0x10")}),t[di("0x7")][di("0xf")](di("0x5"))[di("0x0")](di("0x8")))}[di("0x11")](t,e){const{suggestions:n}=e,o=this.editor[di("0xb")].get(di("0x3")),s=o[di("0x13")];this[di("0x14")]!==s&&(o[di("0x15")](),this[di("0x12")]=!0),n&&n[di("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[di("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:di("0x8")}}};this[di("0xd")].plugins[di("0xf")]("TrackChangesEditing")[di("0xa")](s)}))}}const gi=["getItemLabel","TrackChangesEditing","locale","IndentEditing","_descriptionFactory","checkAttribute","outdentBlock","filter","has","afterInit","blockIndent","editor","schema","selection","registerDescriptionCallback","plugins","markBlockFormat","document","commandName","indentBlock","enableCommand","model","from","get","IndentBlock","format","change","getItems","indent","outdent","getSelectedBlocks"];var mi,fi;mi=gi,fi=353,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x1c")](){const t=this.editor,e=t.plugins[hi("0xb")](hi("0x14"));t[hi("0x3")][hi("0x1b")](hi("0x16"))&&(e[hi("0x8")](hi("0x10")),e[hi("0x8")](hi("0x11")));const n=t[hi("0x15")];if(t[hi("0x3")].has(hi("0xc"))){for(const n of["indentBlock",hi("0x19")])e.enableCommand(n,(()=>{const o=Array[hi("0xa")](this[hi("0x1e")][hi("0x9")][hi("0x5")][hi("0x1")][hi("0x12")]())[hi("0x1a")]((t=>this.editor[hi("0x9")][hi("0x0")][hi("0x18")](t,hi("0x1d"))));t.model[hi("0xe")]((()=>{for(const t of o)e[hi("0x4")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x17")][hi("0x2")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x7")!=o[hi("0x6")]&&hi("0x19")!=o[hi("0x6")])return;const s=t[hi("0xf")]()[0],r=e[hi("0x17")][hi("0x13")](s);return hi("0x7")==o[hi("0x6")]?{type:hi("0xd"),content:Yo(n,"*Indent:* %0",r)}:hi("0x19")==o[hi("0x6")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var bi,Ei,_i=["enableCommand","input","init","editor","requires","TrackChangesEditing"];bi=_i,Ei=155,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("0x5")](){return[Js.Input]}[Ti("0x3")](){this[Ti("0x4")].plugins.get(Ti("0x0"))[Ti("0x1")](Ti("0x2"))}}const yi=["isCollapsed","commandParams","TrackChangesEditing","model","commandName","*Set link:* %0","hasAttribute","editor","enableCommand","format","getFirstPosition","has","linkHref","selection","unlink","markInlineFormat","link","_descriptionFactory","registerDescriptionCallback","getRanges","get","document","getAttribute","getFirstRange","change","plugins"];var ki,Ai;ki=yi,Ai=276,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x11")];if(!t[vi("0x9")][vi("0x15")]("LinkEditing"))return;const e=t[vi("0x9")][vi("0x4")](vi("0xc"));e.enableCommand(vi("0x0"),((n,o)=>{const s=t.model[vi("0x5")][vi("0x17")];let r=[];if(s[vi("0xa")]){if(!s[vi("0x10")](vi("0x16")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0x14")](),vi("0x16"),s[vi("0x6")](vi("0x16")),t[vi("0xd")]);r=[e]}}else r=Array.from(s[vi("0x3")]());t[vi("0xd")][vi("0x8")]((()=>{for(const t of r)e[vi("0x19")](t,{commandName:vi("0x0"),commandParams:[o]})}))})),e[vi("0x12")](vi("0x18"),(()=>{const n=this[vi("0x11")][vi("0xd")],o=n.document[vi("0x17")];n.change((()=>{let n=[];n=o[vi("0xa")]?[(0,Js.findAttributeRange)(o[vi("0x14")](),vi("0x16"),o.getAttribute(vi("0x16")),t[vi("0xd")])]:Es(vi("0x16"),o[vi("0x7")](),t[vi("0xd")]);for(const t of n)e[vi("0x19")](t,{commandName:vi("0x18"),commandParams:[]})}))})),e[vi("0x1")][vi("0x2")]((e=>{const{data:n}=e,o=t.locale;if(n){if(vi("0x0")==n[vi("0xe")]){const t=n[vi("0xb")][0];return{type:vi("0x13"),content:Yo(o,vi("0xf"),'"'+t+'"')}}return vi("0x18")==n[vi("0xe")]?{type:vi("0x13"),content:Yo(o,"*Remove link*")}:void 0}}))}}const Ii=["TrackChangesEditing","schema","has","nextSibling","createPositionAt","blockName","*Change to:* %0","numbered","outdentList","getAttribute","name","forceValue","document","*Outdent:* %0","listItem","*Uncheck item*","_descriptionFactory","change","indentList","bulleted","registerDescriptionCallback","listIndent","*Check item*","filter","editor","from","List","push","get","createRange","afterInit","todoList","numberedList","locale","previousSibling","add","plugins","execute","element","before","parent","enableCommand","checkTodoList","commands","model","selection","bulletedList","ELEMENT_LIST_ITEM","markBlockFormat","slice","todo","isObject","format","registerElementLabel","listType","commandName","ELEMENT_BULLETED_LIST","value","commandParams"];var Si,Li;Si=Ii,Li=232,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{[Ni("0x22")](){const t=this[Ni("0x1c")],e=t[Ni("0x25")];if(!t[Ni("0x28")][Ni("0x6")]("ListEditing"))return;const n=t.plugins[Ni("0x20")](Ni("0x4")),o=t[Ni("0x28")][Ni("0x6")]("TodoListEditing");function s(e){return()=>{const o=t.model.document[Ni("0x31")],s=t.commands.get(e);if(s.value)return void t[Ni("0x29")]("paragraph",{});const r=e[Ni("0x35")](0,-4),i=function(t,e,n){let o=Array[Ni("0x1d")](t)[Ni("0x1b")]((t=>{return e=t,(o=n).checkChild(e[Ni("0x2c")],Ni("0x12"))&&!o[Ni("0x37")](e);var e,o}));o=o[Ni("0x1b")]((t=>!t.is(Ni("0x2a"),Ni("0x12"))||t[Ni("0xd")](Ni("0x3a"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x2a"),"listItem")?s[Ni("0x27")](Mi(t)):s.add(t);return Array[Ni("0x1d")](s)}(o.getSelectedBlocks(),r,t[Ni("0x30")][Ni("0x5")]);t[Ni("0x30")][Ni("0x15")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x2")]}],formatGroupId:Ni("0x9")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x1d")](t);const n=e.findIndex((t=>Ni("0x12")!=t.name));return n>-1&&(e=e[Ni("0x35")](0,n)),e}(t[Ni("0x30")][Ni("0x10")][Ni("0x31")].getSelectedBlocks()),s=t[Ni("0x30")][Ni("0x21")](t[Ni("0x30")][Ni("0x8")](o[0],Ni("0x2b")),t[Ni("0x30")][Ni("0x8")](o[o.length-1],"end"));t[Ni("0x30")][Ni("0x15")]((()=>{n[Ni("0x34")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x19")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x7")];for(;t&&t[Ni("0xd")](Ni("0x19"))>n[Ni("0xd")](Ni("0x19"));)e[Ni("0x27")](t),t=t[Ni("0x7")]}return Array.from(e)}(o))}))}}n.enableCommand(Ni("0x24"),s(Ni("0x24"))),n[Ni("0x2d")](Ni("0x32"),s(Ni("0x32"))),o&&n[Ni("0x2d")](Ni("0x23"),s(Ni("0x23"))),n[Ni("0x2d")]("indentList",r(Ni("0x16"))),n.enableCommand(Ni("0xc"),r(Ni("0xc"))),o&&n[Ni("0x2d")](Ni("0x2e"),(()=>{const e=t[Ni("0x2f")].get("checkTodoList"),o=Array[Ni("0x1d")](e._selectedElements);o.filter((t=>t[Ni("0xd")]("todoListChecked")!=e.value)),t[Ni("0x30")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ni("0x2e"),commandParams:[{forceValue:!e[Ni("0x2")]}]})}))})),n[Ni("0x14")][Ni("0x39")]("listItem",(t=>Yo(e,Ni("0x33"),t))),n[Ni("0x14")][Ni("0x18")]((t=>{const{data:n}=t;if(n){if(Ni("0x24")==n[Ni("0x0")]||Ni("0x32")==n.commandName||Ni("0x23")==n.commandName)switch(n[Ni("0x0")].replace(Ni("0x1e"),"")){case Ni("0x17"):return o(Yo(e,Ni("0x1")));case Ni("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ni("0x36"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x16")==n[Ni("0x0")])return{type:Ni("0x38"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x33")))};if(Ni("0xc")==n[Ni("0x0")])return{type:Ni("0x38"),content:Yo(e,Ni("0x11"),Yo(e,Ni("0x33")))};if(Ni("0x2e")==n[Ni("0x0")])return n[Ni("0x3")][0][Ni("0xf")]?{type:Ni("0x38"),content:Yo(e,Ni("0x1a"))}:{type:"format",content:Yo(e,Ni("0x13"))}}function o(t){return{type:"format",content:Yo(e,Ni("0xa"),t)}}}))}}function Mi(t){const e=t[Ni("0xd")](Ni("0x19"));if(0==e)return t;let n=t;for(;t[Ni("0x26")]&&t[Ni("0x26")].is(Ni("0x2a"),Ni("0x12"));){const o=t.previousSibling[Ni("0xd")](Ni("0x19"));if(o==e)n=t[Ni("0x26")];else if(o<e)break;t=t.previousSibling}return n}function Oi(t){const e=[];if(t.is(Ni("0x2a"),"listItem")&&t[Ni("0xd")](Ni("0x19"))>0){let n=t[Ni("0x7")];for(;n&&Ni("0x12")==n[Ni("0xe")]&&n[Ni("0xd")](Ni("0x19"))==t[Ni("0xd")](Ni("0x19"));)e[Ni("0x1f")](n),n=n[Ni("0x7")]}return e}const Fi=["format","handleListStartCommand","getFirstPosition","handleListReversedCommand","filter","handleDescriptions","change","listReversed","listType","ListPropertiesEditing","config","commandName","from","markMultiRangeBlockFormat","*Format:* set order to regular","startIndex","bind","_descriptionFactory","type","has","model","TrackChangesEditing","element","getSiblingNodes","ELEMENT_","unshift","handleListStyleCommand","map","reversed","selection","forward","_getSuggestionBlocksForListStyle","parent","createPositionAt","getLastPosition","numbered","locale","afterInit","toUpperCase","list.properties","enableCommand","backward","_getTranslationKeyForListStyle","listStyle","length","styles","commandParams","listStart","before","push","plugins","createRange","_LIST_","editor","get","*Change to:* %0","*Format:* set start index to %0","listItem","getAttribute","ListUtils","replace","_getSuggestionBlocks","document"];var Pi,Di;Pi=Fi,Di=177,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x31")](){if(!this.editor[Bi("0x3e")][Bi("0x1f")](Bi("0x15")))return;const t=this[Bi("0x2")][Bi("0x16")][Bi("0x3")](Bi("0x33")),e=this.editor[Bi("0x3e")][Bi("0x3")]("TrackChangesEditing");t[Bi("0x39")]&&e[Bi("0x34")](Bi("0x37"),this[Bi("0x26")][Bi("0x1c")](this)),t.reversed&&e[Bi("0x34")](Bi("0x13"),this[Bi("0xf")].bind(this)),t[Bi("0x1b")]&&e[Bi("0x34")](Bi("0x3b"),this[Bi("0xd")][Bi("0x1c")](this)),e[Bi("0x1d")].registerDescriptionCallback(this[Bi("0x11")].bind(this))}[Bi("0x26")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0x2b")]();this[Bi("0x2")][Bi("0x20")][Bi("0x12")]((()=>{n[Bi("0x19")](o,{commandName:Bi("0x37"),commandParams:[{type:e[Bi("0x1e")]}],formatGroupId:"listStyle"})}))}[Bi("0xf")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0xa")]((t=>t.is(Bi("0x22"),"listItem")&&"numbered"===t[Bi("0x7")](Bi("0x14"))));if(o[Bi("0x38")]<1)return;const s=o[Bi("0x27")]((t=>this[Bi("0x2")][Bi("0x20")][Bi("0x0")](this[Bi("0x2")].model.createPositionAt(t,Bi("0x3c")),this[Bi("0x2")][Bi("0x20")].createPositionAt(t,0))));this[Bi("0x2")][Bi("0x20")][Bi("0x12")]((()=>{n[Bi("0x19")](s,{commandName:Bi("0x13"),commandParams:[{reversed:e[Bi("0x28")]}],formatGroupId:Bi("0x13")})}))}[Bi("0xd")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0xa")]((t=>t.is("element",Bi("0x6"))&&Bi("0x2f")===t[Bi("0x7")](Bi("0x14"))));if(o[Bi("0x38")]<1)return;const s=o[Bi("0x27")]((t=>this[Bi("0x2")][Bi("0x20")].createRange(this[Bi("0x2")][Bi("0x20")][Bi("0x2d")](t,Bi("0x3c")),this[Bi("0x2")][Bi("0x20")][Bi("0x2d")](t,0))));this[Bi("0x2")][Bi("0x20")].change((()=>{n[Bi("0x19")](s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x1b")]}],formatGroupId:Bi("0x3b")})}))}[Bi("0x11")](t){const e=this[Bi("0x2")][Bi("0x30")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x17")]){case"listStyle":o=Bi("0x4"),s={type:"format",content:Yo(e,o,Yo(e,this[Bi("0x36")](n[Bi("0x3a")][0].type)))};break;case"listReversed":o=n[Bi("0x3a")][0][Bi("0x28")]?"*Format:* set order to reversed":Bi("0x1a"),s={type:Bi("0xc"),content:Yo(e,o)};break;case Bi("0x3b"):o=Bi("0x5"),s={type:Bi("0xc"),content:Yo(e,o,n.commandParams[0][Bi("0x1b")])}}return s}[Bi("0x2b")](){var t,e,n,o;const s=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x8"));let r=Array.from(this[Bi("0x2")][Bi("0x20")].document[Bi("0x29")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x22"),Bi("0x6")))&&r[Bi("0x25")](...s[Bi("0x23")](this[Bi("0x2")].model[Bi("0xb")][Bi("0x29")][Bi("0xe")](),Bi("0x35"))),(null===(e=r[r[Bi("0x38")]-1])||void 0===e?void 0:e.is(Bi("0x22"),Bi("0x6")))&&r[Bi("0x3d")](...s[Bi("0x23")](this[Bi("0x2")][Bi("0x20")][Bi("0xb")][Bi("0x29")][Bi("0x2e")](),Bi("0x2a"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x2")][Bi("0x20")].document[Bi("0x29")][Bi("0xe")]())||void 0===n?void 0:n[Bi("0x2c")])||void 0===o?void 0:o.is(Bi("0x22"),"listItem"))&&(r=r[Bi("0x10")]((t=>t.is(Bi("0x22"),Bi("0x6"))))),r}[Bi("0xa")](t){const e=this.editor[Bi("0x3e")][Bi("0x3")](Bi("0x8"));let n=Array[Bi("0x18")](this[Bi("0x2")][Bi("0x20")][Bi("0xb")][Bi("0x29")].getSelectedBlocks())[Bi("0x10")](t)[Bi("0x27")]((t=>{const n=this[Bi("0x2")].model[Bi("0x2d")](t,0);return[...e[Bi("0x23")](n,Bi("0x35")),...e.getSiblingNodes(n,Bi("0x2a"))]})).flat();return n=[...new Set(n)],n}[Bi("0x36")](t){return Bi("0x24")+this.editor[Bi("0x3e")][Bi("0x3")]("ListUtils").getListTypeFromListStyleType(t)[Bi("0x32")]()+Bi("0x1")+t[Bi("0x32")]()[Bi("0x9")](/-/g,"_")}}const Ui=["TrackChangesEditing","createEmptyElement","div","ELEMENT_MEDIA","dataDowncast","downcastDispatcher","editor","mediaEmbed","options","plugins","showSuggestionHighlights","media","high","_descriptionFactory","afterInit","stop","attribute:url:media","has"];var Gi,Hi;Gi=Ui,Hi=100,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this[zi("0xe")];if(!t[zi("0x11")][zi("0x7")]("MediaEmbedEditing"))return;const e=t[zi("0x11")].get(zi("0x8")),n=t.locale;e.enableCommand(zi("0xf")),e[zi("0x3")].registerElementLabel("media",(t=>Yo(n,zi("0xb"),t))),t.conversion.for(zi("0xc")).elementToElement({model:zi("0x1"),view:(t,{writer:e,options:n})=>{if(n[zi("0x0")])return e[zi("0x9")](zi("0xa"))},converterPriority:"high"}),t.data[zi("0xd")].on(zi("0x6"),((t,e,n)=>{n[zi("0x10")][zi("0x0")]&&t[zi("0x5")]()}),{priority:zi("0x2")})}}const Vi=["afterInit","has","TrackChangesEditing","plugins","MentionEditing"];var Ki,qi;Ki=Vi,qi=413,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.editor;t.plugins[Xi("0x3")](Xi("0x1"))&&t[Xi("0x0")].get(Xi("0x4")).enableCommand("mention")}}const Ji=["get","afterInit","_descriptionFactory","ELEMENT_PAGE_BREAK","plugins","TrackChangesEditing","PageBreakEditing","editor","locale","pageBreak","registerElementLabel","has"];var Qi,Zi;Qi=Ji,Zi=407,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x2")](){const t=this[Yi("0x8")];if(!t[Yi("0x5")][Yi("0x0")](Yi("0x7")))return;t[Yi("0x5")][Yi("0x1")](Yi("0x6")).enableCommand(Yi("0xa"));const e=t.plugins.get(Yi("0x6")),n=t[Yi("0x9")];e[Yi("0x3")][Yi("0xb")](Yi("0xa"),(t=>Yo(n,Yi("0x4"),t)))}}const ex=["nodeAfter","paragraph","consumable","registerElementLabel","insertParagraph","isBlock","has","name","insert","includes","format","$text","highest","TrackChangesEditing","data","writer","options","plugins","getFirstRange","downcastDispatcher","checkChild","start","span","ck-suggestion-marker--active","enableCommand","selection","_descriptionFactory","blockName","mapper","getItemLabel","ELEMENT_PARAGRAPH","registerDescriptionCallback","editor","isLimit","document","markerRange","from","type","insertion","getSelectedBlocks","schema","locale","editing","activeMarkers","ck-suggestion-marker-split","addMarker:suggestion:insertion","toViewPosition","end","isTouching","addClass","get","createUIElement","markerName","model","isObject"];var nx,ox;nx=ex,ox=125,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{afterInit(){const t=this.editor;if(!t[sx("0x2")][sx("0x2e")]("Paragraph"))return;const e=t[sx("0x1a")],n=t[sx("0x2")].get(sx("0x35"));n[sx("0xb")][sx("0x2b")](sx("0x29"),(t=>Yo(e,sx("0xf"),t))),n[sx("0x9")]("paragraph",((e,o={})=>{const s=t[sx("0x26")][sx("0x13")],r=o[sx("0xa")]||s.selection,i=Array[sx("0x15")](r[sx("0x18")]()).filter((t=>{return e=t,(n=this[sx("0x11")][sx("0x26")][sx("0x19")])[sx("0x5")](e.parent,sx("0x29"))&&!n[sx("0x27")](e)&&sx("0x29")!=e[sx("0x2f")];var e,n}));t[sx("0x26")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:sx("0x29"),commandParams:[],formatGroupId:sx("0xc")},_s(t))}))})),n[sx("0xb")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x29")==n.commandName)return{type:sx("0x32"),content:Yo(e,"*Change to:* %0",Yo(e,sx("0xf")))}})),n.enableCommand(sx("0x2c")),t[sx("0x1b")][sx("0x4")].on(sx("0x1e"),ix(t),{priority:sx("0x34")}),t[sx("0x36")][sx("0x4")].on(sx("0x1e"),((e,n,o)=>{o[sx("0x1")].showSuggestionHighlights&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0xb")];o[sx("0x10")]((n=>{if(sx("0x17")!==n[sx("0x16")])return;const{start:s,end:r}=n[sx("0x3")]();if(!s[sx("0x21")](r)||!s.nodeAfter)return;const i=t.model[sx("0x19")],x=s[sx("0x28")];return i[sx("0x2d")](x)&&!i[sx("0x12")](x)&&i.checkChild(x,sx("0x33"))?{type:sx("0x17"),content:Yo(e,"*Insert:* %0",o[sx("0xe")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x2")][sx("0x23")](sx("0x35")),i=o[sx("0x14")][sx("0x6")],x=o[sx("0x14")][sx("0x20")],a=t[sx("0x26")][sx("0x19")];if(!i[sx("0x21")](x)||!i.nodeAfter)return;const c=i[sx("0x28")];if(a.isBlock(c)&&!a[sx("0x12")](c)&&a[sx("0x5")](c,sx("0x33"))){if(!s[sx("0x2a")].consume(o[sx("0x14")],n.name))return;const t=s[sx("0x0")][sx("0x24")](sx("0x7"),{class:sx("0x1d")}),i=s[sx("0xd")][sx("0x1f")](x);e&&r[sx("0x1c")][sx("0x31")](o[sx("0x25")])&&s.writer[sx("0x22")](sx("0x8"),t),s[sx("0x0")][sx("0x30")](i,t),s[sx("0xd")].bindElementToMarker(t,o[sx("0x25")])}}}const xx=["schema","isCollapsed","markInlineFormat","TrackChangesEditing","model","editor","getAttributes","getRanges","*Remove all formatting*","removeFormat","getAttributeProperties","RemoveFormatEditing","commandName","selection","format","document","from","_descriptionFactory","getItems","plugins","get","registerDescriptionCallback","createRangeOn"];var ax,cx;ax=xx,cx=149,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class dx extends t.Plugin{afterInit(){const t=this[lx("0x11")];if(!t[lx("0x8")].has(lx("0x0")))return;const e=t[lx("0x8")][lx("0x9")](lx("0xf"));e.enableCommand(lx("0x15"),(n=>{const o=t[lx("0x10")][lx("0x4")][lx("0x2")];o[lx("0xd")]?n():t[lx("0x10")].change((()=>{const n=Array[lx("0x5")](o[lx("0x13")]());for(const o of n)for(const n of o[lx("0x7")]())ux(n,t.model[lx("0xc")])&&e[lx("0xe")](t[lx("0x10")][lx("0xb")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[lx("0x6")][lx("0xa")]((e=>{const{data:n}=e;if(n&&lx("0x15")==n[lx("0x1")])return{type:lx("0x3"),content:Yo(t.locale,lx("0x14"))}}))}}function ux(t,e){for(const[n]of t[lx("0x12")]()){const t=e[lx("0x16")](n);if(t&&t.isFormatting)return!0}return!1}const gx=["acceptSuggestion","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","editor","get","enableCommand","TrackChangesEditing","discardAllSuggestions","afterInit","discardSuggestion","plugins","has"];var mx,fx;mx=gx,fx=311,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xa")](){const t=this[hx("0x5")];if(!t[hx("0xc")][hx("0x0")]("RestrictedEditingModeEditing"))return;const e=t[hx("0xc")][hx("0x6")](hx("0x8"));e[hx("0x7")](hx("0x3")),e[hx("0x7")]("goToNextRestrictedEditingException");const n=t[hx("0xc")].get(hx("0x4"));n[hx("0x7")]("trackChanges"),n.enableCommand(hx("0x1")),n[hx("0x7")](hx("0xb")),n[hx("0x7")]("acceptAllSuggestions"),n[hx("0x7")](hx("0x9")),n.enableCommand(hx("0x2")),n[hx("0x7")]("discardSelectedSuggestions")}}const bx=["shiftEnter","name","ck-suggestion-marker--active","ck-suggestion-marker-","locale","model","plugins","enableCommand","addMarker:suggestion:deletion","high","_descriptionFactory","consumable","markerRange","TrackChangesEditing","downcastDispatcher","mapper","activeMarkers","options","includes","get","editing","registerElementLabel","bindElementToMarker","markerName","test","addMarker:suggestion:insertion","data","element","split","insert","addMarker:suggestion","createUIElement","merge","requires","softBreak","writer","init"];var Ex,_x;Ex=bx,_x=229,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("0x1a")](){return[xr.ShiftEnter]}[Tx("0x1d")](){const t=this.editor,e=t[Tx("0x24")][Tx("0xc")](Tx("0x6"));e[Tx("0x0")](Tx("0x1e")),t[Tx("0xd")][Tx("0x7")].on(Tx("0x12"),yx(t),{priority:Tx("0x2")}),t[Tx("0xd")][Tx("0x7")].on(Tx("0x1"),yx(t),{priority:Tx("0x2")}),t[Tx("0x13")][Tx("0x7")].on(Tx("0x17"),((e,n,o)=>{o[Tx("0xa")].showSuggestionHighlights&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x3")][Tx("0xe")]("softBreak",(e=>Yo(t[Tx("0x22")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0xc")](Tx("0x6"));if(!s[Tx("0x4")][Tx("0x11")](o[Tx("0x5")],n[Tx("0x1f")]))return;const i=t[Tx("0x23")];for(const t of o.markerRange.getItems()){if(!t.is(Tx("0x14"),Tx("0x1b")))continue;const n="deletion"==o[Tx("0x10")][Tx("0x15")](":")[1]?Tx("0x19"):Tx("0x15"),x=s[Tx("0x1c")][Tx("0x18")]("span",{class:Tx("0x21")+n}),a=s.mapper.toViewPosition(i.createPositionBefore(t));e&&r[Tx("0x9")][Tx("0xb")](o[Tx("0x10")])&&s[Tx("0x1c")].addClass(Tx("0x20"),x),s.writer[Tx("0x16")](a,x),s[Tx("0x8")][Tx("0xf")](x,o[Tx("0x10")])}}}const kx=["format","document","locale","TrackChangesEditing","restrictedEditingException","enableCommand","value","afterInit","isCollapsed","from","_descriptionFactory","change","model","plugins","StandardEditingModeEditing","get","registerDescriptionCallback","commands","getRanges","selection","markInlineFormat","has","forceValue"];var Ax,vx;Ax=kx,vx=387,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0xb")](){const t=this.editor,e=t[Rx("0x10")],n=t[Rx("0x6")];if(!t[Rx("0x11")][Rx("0x2")](Rx("0x12")))return;const o=t[Rx("0x11")][Rx("0x13")](Rx("0x7")),s=Rx("0x8"),r=t[Rx("0x15")][Rx("0x13")](s);o[Rx("0x9")](s,((t,n={})=>{const i=e[Rx("0x5")][Rx("0x0")];if(i[Rx("0xc")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0x3")]:!r[Rx("0xa")];e[Rx("0xf")]((()=>{const t=Array[Rx("0xd")](i[Rx("0x16")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xe")][Rx("0x14")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0][Rx("0x3")]?{type:Rx("0x4"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Rx("0x4"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const Sx=["change","modelElements","getSelectedBlocks","includes","markBlockFormat","style.definitions","normalizeConfig","*Remove format:* %0","find","StyleUtils","locale","getDefinitionsForView","editor","_getRangesWithClasses","styleName","from","inline","registerDescriptionCallback","model","_getStyleDefinition","style","push","getAncestors","*Format:* %0","selection","commandParams","style:","createRangeOn","TrackChangesEditing","Style","commandName","getRanges","plugins","toLowerCase","config","classes","enabledStyles","get","enableCommand","name","afterInit","isCollapsed","document"];var Lx,Nx;Lx=Sx,Nx=450,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{[wx("0x14")](){const t=this[wx("0x23")];if(!t[wx("0xc")].has(wx("0x9")))return;const e=t.commands[wx("0x11")](wx("0x0")),n=t[wx("0xc")][wx("0x11")](wx("0x8")),o=t[wx("0x21")],s=t.plugins.get("DataSchema"),r=t[wx("0xc")][wx("0x11")](wx("0x20"))[wx("0x1d")](s,t[wx("0xe")][wx("0x11")](wx("0x1c")));n[wx("0x12")](wx("0x0"),((o,{styleName:i})=>{const x=t[wx("0x29")][wx("0x16")][wx("0x4")],a=this[wx("0x2a")](i,r);if(!a)return;if(!e[wx("0x10")][wx("0x1a")](i))return;if(x[wx("0x15")]&&!a.isBlock)return void o({styleName:i});const c=!e.value[wx("0x1a")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x2")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x13")])){n.add(o);break}}return n}(x[wx("0x19")](),a[wx("0x18")]);t.model[wx("0x17")]((()=>{for(const t of e)n[wx("0x1b")](t,{commandName:wx("0x0"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wx("0x6")+i})}))}else{let e=Array[wx("0x26")](x[wx("0xb")]());if(!c){const n=Array.from(s[wx("0x22")](a.element,!1))[0][wx("0x29")],o=[];for(const s of e){const e=this[wx("0x24")](t.model,s,a[wx("0xf")],n);o[wx("0x1")](...e)}e=o}t[wx("0x29")][wx("0x17")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x0"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[wx("0x28")]((t=>{const{data:e}=t;if(e&&wx("0x0")===e[wx("0xa")])return e.commandParams[0].forceValue?{type:"format",content:Yo(o,wx("0x3"),e[wx("0x5")][0][wx("0x25")][wx("0xd")]())}:{type:"format",content:Yo(o,wx("0x1e"),e.commandParams[0][wx("0x25")][wx("0xd")]())}}))}[wx("0x2a")](t,e){let n=e.block.find((e=>e[wx("0x13")]===t));return n||(n=e[wx("0x27")][wx("0x1f")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r.getAttribute(o);e&&n.every((t=>e[wx("0xf")][wx("0x1a")](t)))&&s[wx("0x1")](t[wx("0x7")](r))}return s}}const Ox=["*Insert:* %0","model","toViewElement","insertTable","change","suggestion","*Remove:* %0","_tableSuggestions","locale","root","createTableWalker","getRowIndexes","element","selectTableColumn","span","ELEMENT_TABLE","cell","isTouching","getChildren","subType","discard","mapper","getSelectionAffectedTableCells","getContainedElement","classes","findAncestor","_suggestionFactory","_splitMarkerName","ELEMENT_TABLE_COLUMN","join","has","highest","enqueueChange","registerElementLabel","MIN_SAFE_INTEGER","colspan","getItems","addClass","differ","maxColumn","insertion","markMultiRangeInsertion","minColumn","addRange","TableUtils","getCellLocation","forceValue","getSuggestion","registerCustomCallback","length","document","push","tableRow","get","_setupColumnsRowsFixing","getChangedMarkers","isEqual","rowspan","_getCoordsForCells","some","maxRow","end","selectTableRow","plugins","ELEMENT_TABLE_ROW","_getSuggestionCoords","fromRange","hasAttribute","$graveyard","above","markMultiRangeDeletion","registerDescriptionCallback","type","getAttribute","oldRange","ELEMENT_TABLE_COLUMN_WITH_TEXT","setSelection","last","selection","_tablePostFixingSubtypes","nodeAfter","ELEMENT_TABLE_WITH_TEXT","max","insert","position","ELEMENT_TABLE_ROW_WITH_TEXT","start","map","data","getRanges","detach","insertTableRowAbove","table","writer","createRangeOn","enableCommand","minRow","$textProxy","from","removeTableRow","rootName","_descriptionFactory","order","name","tablePaste","addMarker:suggestion","add","removeClass","tableCell","getColumnIndexes","nodeBefore","tableColumn","getFirstRange","removeTableColumn","refresh","TrackChangesEditing","options","first","downcastDispatcher","substr","TableEditing","_acceptFormatSuggestionCallbackFactory","afterInit","execute","deletion","startsWith","editor","commands","filter","insertTableRowBelow","min","batch","toLowerCase"];var Fx,Px;Fx=Ox,Px=395,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("0x53")]=[Dx("0x38"),Dx("0x73")],this[Dx("0xb")]=new Set}[Dx("0x7e")](){const t=this[Dx("0x82")],e=t[Dx("0x5")].document[Dx("0x52")];if(!t.plugins[Dx("0x22")](Dx("0x7c")))return;const n=t[Dx("0xc")],o=t[Dx("0x43")].get(Dx("0x77")),s=t[Dx("0x43")][Dx("0x39")](Dx("0x30"));o[Dx("0x69")][Dx("0x25")](Dx("0x60"),(t=>Yo(n,Dx("0x13"),t))),this[Dx("0x3a")](),o[Dx("0x63")](Dx("0x7")),o.enableCommand(Dx("0x42")),o[Dx("0x63")](Dx("0x11"));for(const n of[Dx("0x5f"),Dx("0x0")]){const r=t[Dx("0x83")][Dx("0x39")](n);o[Dx("0x63")](n,(n=>{t[Dx("0x5")][Dx("0x8")]((t=>{n();const i=Dx("0x49")===r[Dx("0x6a")],x=s[Dx("0x1a")](e),a=s[Dx("0xf")](x),c=i?a.first-1:a.last+1,l=x[0][Dx("0x1d")](Dx("0x60")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array[Dx("0x66")](d)[Dx("0x5b")]((e=>t[Dx("0x62")](e[Dx("0x14")])));o.markMultiRangeInsertion(u,"tableRow")}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const r=t.commands[Dx("0x39")](n);o[Dx("0x63")](n,(n=>{t[Dx("0x5")][Dx("0x8")]((t=>{n();const i="left"===r[Dx("0x6a")],x=s[Dx("0x1a")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Dx("0x51")]+1,l=x[0][Dx("0x1d")](Dx("0x60")),d=s[Dx("0xe")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Dx("0x66")](d)[Dx("0x5b")]((e=>t[Dx("0x62")](e.cell)));o[Dx("0x2d")](u,Dx("0x73"))}))}))}for(const n of[Dx("0x67"),Dx("0x75")]){const r=n.substr(11),i=r[Dx("0x3")](),x=i[Dx("0x7b")](0,3)+Dx("0x12"),a=Dx("0x60")+r,c=Dx("0x1")+r,l="max"+r;o[Dx("0x63")](n,(()=>{t[Dx("0x5")].change((t=>{const r=s[Dx("0x1a")](e),d=r[0].findAncestor(Dx("0x60"));let u;if(Dx("0x67")==n){const t=s[Dx("0xf")](r);u={startRow:t[Dx("0x79")],endRow:t[Dx("0x51")],includeAllSlots:!0}}else{const t=s[Dx("0x71")](r);u={startColumn:t[Dx("0x79")],endColumn:t.last,includeAllSlots:!0}}const g=s[Dx("0xe")](d,u),m=Array[Dx("0x66")](g)[Dx("0x5b")]((({cell:t})=>t)),f=jx(m[Dx("0x84")]((t=>t[Dx("0x47")](x)))),h=jx(m.filter((t=>!t[Dx("0x47")](x))))[Dx("0x5b")]((e=>t[Dx("0x62")](e))),p=o[Dx("0x4a")](h,a);if(p&&(Dx("0x38")==p[Dx("0x17")]||"tableColumn"==p[Dx("0x17")])){const e=this[Dx("0x45")](p);for(const n of f){const o=t[Dx("0x62")](n),r=s[Dx("0x31")](n),a=n[Dx("0x4d")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Dx("0x2f")](o)}}}))}))}function r(n){const o=Array[Dx("0x66")](e[Dx("0x5d")]())[Dx("0x5b")]((t=>i.LiveRange[Dx("0x46")](t)));t[Dx("0x5")][Dx("0x8")]((e=>{const s=e[Dx("0x2")];n=n[Dx("0x84")]((t=>"$graveyard"!=t[Dx("0xd")][Dx("0x68")])),e[Dx("0x50")](n),t[Dx("0x83")][Dx("0x39")](Dx("0x67"))[Dx("0x76")](),t.execute(Dx("0x67"),{forceDefaultExecution:!0}),t.model[Dx("0x24")]((()=>{t[Dx("0x5")][Dx("0x24")](s,(t=>{const e=o[Dx("0x84")]((t=>Dx("0x48")!=t.root.rootName));e.length>0&&t[Dx("0x50")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x5")][Dx("0x8")]((o=>{const s=Array[Dx("0x66")](e[Dx("0x5d")]())[Dx("0x5b")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Dx("0x37")](e);for(const e of r)"$graveyard"!=e[Dx("0xd")][Dx("0x68")]&&(o[Dx("0x50")](o.createPositionAt(e,0)),t.commands[Dx("0x39")]("removeTableColumn")[Dx("0x76")](),t.execute(Dx("0x75"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t.root[Dx("0x68")]));x[Dx("0x35")]>0&&o[Dx("0x50")](x);for(const t of s)t[Dx("0x5e")]()}))}function c(t,e){return e.every((e=>t[Dx("0x3f")]((t=>t[Dx("0x41")][Dx("0x3c")](e[Dx("0x5a")])||e[Dx("0x41")][Dx("0x3c")](t.start)))))}function l(t,e){return t[Dx("0x3f")]((t=>e.some((e=>t[Dx("0x41")][Dx("0x15")](e[Dx("0x5a")])))))}t[Dx("0x5c")][Dx("0x7a")].on(Dx("0x6d"),((t,e,n)=>{if(!n[Dx("0x78")].showSuggestionHighlights)return;const o=e.item;if(!o)return;const s=n[Dx("0x19")][Dx("0x6")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Dx("0x70")===o[Dx("0x6b")]&&(0,x.setHighlightHandling)(s,n[Dx("0x61")],((t,e,n)=>n[Dx("0x29")](r(e[Dx("0x1c")]),t)),((t,e,n)=>n[Dx("0x6f")](r(e[Dx("0x1c")]),t)))}),{priority:Dx("0x23")}),o[Dx("0x69")][Dx("0x4b")]((t=>{if("insertion"!=t[Dx("0x4c")]&&Dx("0x80")!=t[Dx("0x4c")])return;const e=t[Dx("0x1b")]();if(null!=e&&e.is(Dx("0x10"),Dx("0x60"))){if(Dx("0x2c")==t[Dx("0x4c")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")]));if(e.length)return{type:Dx("0x2c"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x55"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Dx("0x4c")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")]));if(e.length)return{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x21")](" ")+'"'))}}}})),o._descriptionFactory[Dx("0x4b")]((t=>{if(Dx("0x38")==t[Dx("0x17")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")])),o=this[Dx("0x45")](t),s=o[Dx("0x40")]-o[Dx("0x64")]+1;if("insertion"==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x59"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x44"),s))};if(Dx("0x80")==t[Dx("0x4c")])return e[Dx("0x35")]?{type:"deletion",content:Yo(n,Dx("0xa"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x44"),s))}}if("tableColumn"==t[Dx("0x17")]){const e=t[Dx("0x28")]()[Dx("0x84")]((t=>t.is("$textProxy"))).map((t=>t.data)),o=this[Dx("0x45")](t),s=o[Dx("0x2b")]-o[Dx("0x2e")]+1;if(Dx("0x2c")==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x2c"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x4f"),[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x20"),s))};if("deletion"==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x4f"),[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x20"),s))}}})),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),Dx("0x38"),Dx("0x18"),r),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),Dx("0x38"),"accept",r),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),"tableColumn",Dx("0x18"),a),o[Dx("0x1e")].registerCustomCallback(Dx("0x80"),"tableColumn","accept",a),o._suggestionFactory[Dx("0x34")](Dx("0x2c"),Dx("0x73"),"join",c),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),Dx("0x73"),Dx("0x21"),c),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),Dx("0x38"),Dx("0x21"),l),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),"tableRow",Dx("0x21"),l)}[Dx("0x7d")](){const t=this[Dx("0x82")],e=t[Dx("0x5")][Dx("0x36")][Dx("0x52")];return(n,o)=>{t[Dx("0x5")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x41")][Dx("0x72")];x&&x[0]&&!1===x[0][Dx("0x32")]&&(a=n[0].start[Dx("0x54")]);const c=s.createRangeIn(a);if(Dx("0x48")==c[Dx("0xd")][Dx("0x68")])return;const l=Array[Dx("0x66")](e.getRanges())[Dx("0x5b")]((t=>i.LiveRange[Dx("0x46")](t)));s[Dx("0x50")](c),t[Dx("0x83")].get(r)[Dx("0x76")](),x[Dx("0x37")]({forceDefaultExecution:!0}),t[Dx("0x7f")](r,...x);const d=l[Dx("0x84")]((t=>"$graveyard"!=t.root[Dx("0x68")]));d[Dx("0x35")]>0&&s[Dx("0x50")](d);for(const t of l)t[Dx("0x5e")]()}))}}[Dx("0x3e")](t){const e=this.editor[Dx("0x43")][Dx("0x39")](Dx("0x30"));let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x26")],s=Number.MAX_SAFE_INTEGER,r=Number[Dx("0x26")];for(const i of t){if(Dx("0x48")==i[Dx("0xd")][Dx("0x68")])continue;const{row:t,column:x}=e[Dx("0x31")](i),a=i[Dx("0x47")](Dx("0x3d"))?i[Dx("0x4d")](Dx("0x3d"))-1:0,c=i[Dx("0x47")](Dx("0x27"))?i.getAttribute("colspan")-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("0x3a")](){const t=this[Dx("0x82")],e=t[Dx("0x43")].get(Dx("0x77")),n=t[Dx("0x43")].get(Dx("0x30"));t[Dx("0x5")][Dx("0x36")].on("change:data",(()=>{const n=Array[Dx("0x66")](t[Dx("0x5")][Dx("0x36")][Dx("0x2a")][Dx("0x3b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x1f")](t);if(Dx("0x9")!=n)continue;if(null!=o[Dx("0x4e")])continue;const i=e[Dx("0x33")](s);this[Dx("0x53")].includes(r)&&this[Dx("0xb")][Dx("0x6e")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Dx("0x62")](t),r=t.findAncestor("table"),i=n[Dx("0x31")](t);for(const e of this[Dx("0xb")]){const n=e[Dx("0x17")],x=n[Dx("0x81")](Dx("0x6c")),a=n[Dx("0x7b")](x?10:5),c=a[Dx("0x3")](),l=c.substr(0,3)+Dx("0x12"),d="min"+a,u=Dx("0x56")+a;if(!e.isInContent)continue;if(r!=e[Dx("0x74")]()[Dx("0x5a")].findAncestor(Dx("0x60")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0x47")](l)?t.getAttribute(l)-1:0,m=this[Dx("0x45")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x2f")](s),o=!0)}return o};t.model[Dx("0x36")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x5")][Dx("0x36")][Dx("0x2a")].getChanges())if(Dx("0x57")==s.type)if(Dx("0x38")==s.name)for(const t of s[Dx("0x58")][Dx("0x54")][Dx("0x16")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Dx("0x58")][Dx("0x54")],e));return n}))}_getSuggestionCoords(t){return this._getCoordsForCells(t[Dx("0x5d")]()[Dx("0x5b")]((t=>t[Dx("0x5a")][Dx("0x54")])))}}function jx(t){return Array[Dx("0x66")](new Set(t).values())}const Ux=["find","afterInit","*Merge cells*","registerCustomCallback","format","filter","forceDefaultExecution","size","mergeTableCells","root","createRangeOn","registerDescriptionCallback","_areSelectedCellsMergable","getRanges","document","containsRange","getSuggestions","requires","set:isEnabled","stop","editor","has","value","enableCommand","commandName","change","low","accept","refresh","add","formatBlock","commands","tableCell","mergeTableCellRight","plugins","splitTableCellVertically","markBlockFormat","findAncestor","selection","cell","map","from","setSelection","TableUtils","horizontally","execute","getAncestors","mergeTableCellLeft","isEnabled","length","mergeTableCellUp","*Split cell:* vertically","return","model","type","markMultiRangeBlockFormat","_areMergableCells","isInContent","highest","locale","insertion","getCellLocation","TableEditing","element","get","splitTableCellHorizontally","getFirstPosition","$graveyard","mergeTableCellDown","*Split cell:* horizontally","fromRange","getSelectionAffectedTableCells","trackChanges","createTableWalker","author","_suggestionFactory","subType","table","direction"];var Gx,Hx;Gx=Ux,Hx=114,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("0x3d")](){return[Bx]}[zx("0x2d")](){const t=this[zx("0x40")],e=t[zx("0x12")][zx("0x3a")][zx("0x3")],n=t[zx("0x18")];if(!t[zx("0x4e")][zx("0x41")](zx("0x1b")))return;const o=t[zx("0x4e")][zx("0x1d")]("TrackChangesEditing"),s=t[zx("0x4e")][zx("0x1d")](zx("0x8")),r=t.plugins[zx("0x1d")](Bx);r._tablePostFixingSubtypes.push(zx("0x34")),o.enableCommand(zx("0x34"),(()=>{const e=s[zx("0x24")](t.model[zx("0x3a")][zx("0x3")]);t[zx("0x12")][zx("0x45")]((()=>{o[zx("0x14")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x34"))}))})),t.commands[zx("0x1d")](zx("0x34")).on(zx("0xa"),((e,n)=>{t.commands[zx("0x1d")](zx("0x25"))[zx("0x42")]&&(n[zx("0xe")]>0&&n[n[zx("0xe")]-1]&&n[n.length-1][zx("0x32")]||o._isForcedDefaultExecutionBlock||this[zx("0x38")]()||e[zx("0x3f")]())}),{priority:zx("0x17")});for(const e of[zx("0xf"),zx("0x4d"),zx("0x21"),zx("0xc")]){const n=t.commands[zx("0x1d")](e);o[zx("0x43")](e,(()=>{const e=t[zx("0x12")][zx("0x3a")][zx("0x3")].getFirstPosition()[zx("0xb")]()[zx("0x2c")]((t=>t.is(zx("0x1c"),zx("0x4c")))),s=n[zx("0x42")];t[zx("0x12")][zx("0x45")]((()=>{o[zx("0x14")]([e,s],{commandName:zx("0x34"),commandParams:[]},[],zx("0x34"))}))}))}for(const e of[zx("0x0"),zx("0x1e")]){const n=t[zx("0x4b")][zx("0x1d")](e);o[zx("0x43")](e,(()=>{const r=s[zx("0x24")](t[zx("0x12")].document.selection)[0],i=r[zx("0x2")](zx("0x2a")),{column:x,row:a}=s[zx("0x1a")](r);let c=[];if(zx("0x9")==n[zx("0x2b")]){const t=s[zx("0x26")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[zx("0x5")]((t=>t[zx("0x4")]))}else{const t=s[zx("0x26")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x6")](t)[zx("0x5")]((t=>t.cell))}t.model.change((t=>{o[zx("0x1")](t[zx("0x36")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[zx("0x37")]((t=>{const{data:e}=t;if(e)return zx("0x34")==e.commandName?{type:zx("0x30"),content:Yo(n,zx("0x2e"))}:void 0})),o._descriptionFactory[zx("0x37")]((t=>{const{data:e}=t;if(e)return zx("0x0")==e[zx("0x44")]?{type:"format",content:Yo(n,zx("0x10"))}:"splitTableCellHorizontally"==e.commandName?{type:zx("0x30"),content:Yo(n,zx("0x22"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0xf"),zx("0x4d"),zx("0x21"),zx("0xc")])o[zx("0x28")][zx("0x2f")](zx("0x4a"),t,zx("0x47"),x);for(const t of[zx("0x0"),zx("0x1e")])o[zx("0x28")][zx("0x2f")](zx("0x4a"),t,zx("0x47"),x);o._suggestionFactory[zx("0x2f")]("formatBlock","mergeTableCells",zx("0x47"),(n=>{t.model[zx("0x45")]((o=>{const s=Array[zx("0x6")](e[zx("0x39")]())[zx("0x5")]((t=>i.LiveRange[zx("0x23")](t)));o[zx("0x7")](n),t[zx("0x4b")][zx("0x1d")](zx("0x34"))[zx("0x48")](),t[zx("0xa")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x31")]((t=>zx("0x20")!=t[zx("0x35")].rootName));r[zx("0xe")]>0&&o.setSelection(r);for(const t of s)t.detach()}))}));for(const e of[zx("0xf"),zx("0x21"),zx("0xc"),"mergeTableCellRight"]){const n=t[zx("0x4b")][zx("0x1d")](e);n.on(zx("0x3e"),((e,o,s)=>{if(s){const o=t[zx("0x12")][zx("0x3a")][zx("0x3")][zx("0x1f")]()[zx("0xb")]()[zx("0x2c")]((t=>t.is("element",zx("0x4c"))));this[zx("0x15")](n[zx("0x42")],o)||(e[zx("0x11")]=!1,e[zx("0x3f")]())}}),{priority:zx("0x46")})}}_areSelectedCellsMergable(){const t=this[zx("0x40")][zx("0x4b")][zx("0x1d")](zx("0x34")),e=this[zx("0x40")][zx("0x4e")][zx("0x1d")](zx("0x8"));if(!t[zx("0xd")])return!1;const n=e[zx("0x24")](this[zx("0x40")][zx("0x12")][zx("0x3a")][zx("0x3")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x15")](t,e))return!1;return!0}[zx("0x15")](t,e){const n=this.editor.plugins[zx("0x1d")]("TrackChangesEditing"),o=this[zx("0x40")].model[zx("0x36")](t),s=this[zx("0x40")][zx("0x12")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[zx("0x3c")]())if((zx("0x19")==t.type||"deletion"==t.type||zx("0x34")==t[zx("0x29")])&&t[zx("0x16")])for(const e of t[zx("0x39")]())e.containsRange(o,!0)&&r[zx("0x49")](t[zx("0x13")]+":"+t[zx("0x27")].id),e[zx("0x3b")](s,!0)&&i[zx("0x49")](t[zx("0x13")]+":"+t[zx("0x27")].id);if(r[zx("0x33")]!=i[zx("0x33")])return!1;for(const t of r)if(!i[zx("0x41")](t))return!1;return!0}}const Vx=["forceValue","getAttribute","setAttribute","removeMarker:suggestion","stop","FORMAT_REGULAR_COLUMN","addMarker:suggestion","_splitMarkerName","format","locale","unbindElementFromMarkerName","consume","options","createPositionAfter","requires","consumable","from","selection","setTableRowHeader","ck-suggestion-marker--active","commandName","formatBlock","get","cell","end","createTableWalker","bindElementToMarker","addClass","model","plugins","isBefore","createRange","table","data-suggestion","has","getSuggestion","removeClass","headingColumns","registerDescriptionCallback","*Format:* %0","childCount","commandParams","mapper","editor","markerNameToElements","activeMarkers","editing","index","getColumnIndexes","downcastDispatcher","FORMAT_HEADER_ROW","value","start","afterInit","setTableColumnHeader","registerCustomCallback","findAncestor","writer","parent","highest","commands","_suggestionFactory","getChild","markerName","document","headingRows","enableCommand","accept","change","createPositionBefore","last","first","name","getSelectionAffectedTableCells","toViewElement","getCellLocation","markerRange","data","TableEditing","FORMAT_HEADER_COLUMN","item"];var Kx,qx;Kx=Vx,qx=254,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[Xx("0x3")](){return[Bx]}[Xx("0x2a")](){const t=this[Xx("0x20")];if(!t[Xx("0x12")][Xx("0x17")](Xx("0x43")))return;const e=t[Xx("0x4f")],n=t[Xx("0x12")].get("TrackChangesEditing"),o=t[Xx("0x12")].get("TableUtils"),s=t[Xx("0x12")][Xx("0xb")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x4d")](r[Xx("0x34")]),c=n[Xx("0x18")](a);if(!c[Xx("0x42")]||"setTableColumnHeader"!=c.data[Xx("0x9")])return;if(r[Xx("0x45")])return void s[Xx("0x4a")]();if(!i[Xx("0x4")][Xx("0x0")](r[Xx("0x41")],s[Xx("0x3d")]))return;const l=r[Xx("0x41")][Xx("0x29")].nodeAfter,d=r[Xx("0x41")][Xx("0xd")].nodeBefore,u=l[Xx("0x2f")][Xx("0x2f")],{column:g}=o[Xx("0x40")](l),{column:m}=o[Xx("0x40")](d);for(let s=g;s<=m;s++){const c=o[Xx("0xe")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0xc")],c=i.mapper[Xx("0x3f")](s);i.writer[Xx("0x10")]("ck-suggestion-marker-"+x,c),e&&i[Xx("0x2e")][Xx("0x48")](Xx("0x16"),a,c),i[Xx("0x1f")][Xx("0xf")](c,r[Xx("0x34")]),t&&(n[Xx("0x22")].includes(r.markerName)?i[Xx("0x2e")][Xx("0x10")](Xx("0x8"),c):i.writer.removeClass(Xx("0x8"),c))}}}}n[Xx("0x37")](Xx("0x7"),((e,s)=>{const r=o[Xx("0x3e")](t.model[Xx("0x35")][Xx("0x6")]),i=o.getRowIndexes(r),x=r[0][Xx("0x2d")](Xx("0x15")),a=x.getAttribute(Xx("0x36"))||0,c=s&&null!==s[Xx("0x46")]?s[Xx("0x46")]:!t[Xx("0x31")][Xx("0xb")](Xx("0x7"))[Xx("0x28")],l=c?i[Xx("0x3b")]:i[Xx("0x3c")],d=x.getChild(l);let u;if(c){const e=x[Xx("0x33")](a);if(d[Xx("0x24")]<e[Xx("0x24")])return;u=t[Xx("0x11")].createRange(t[Xx("0x11")][Xx("0x3a")](e[Xx("0x33")](0)),t[Xx("0x11")].createPositionAfter(d[Xx("0x33")](d[Xx("0x1d")]-1)))}else{const e=x[Xx("0x33")](a-1);if(!e)return;u=t[Xx("0x11")].createRange(t[Xx("0x11")].createPositionBefore(d[Xx("0x33")](0)),t[Xx("0x11")][Xx("0x2")](e.getChild(e[Xx("0x1d")]-1)))}t[Xx("0x11")][Xx("0x39")]((()=>{n.markBlockFormat(u,{commandName:Xx("0x7"),commandParams:[{forceValue:c}]},[],Xx("0x7"))}))})),n[Xx("0x37")](Xx("0x2b"),((e,o)=>{const s=t[Xx("0x12")][Xx("0xb")]("TableUtils"),r=s[Xx("0x3e")](t[Xx("0x11")][Xx("0x35")][Xx("0x6")]),i=s[Xx("0x25")](r),x=r[0].findAncestor(Xx("0x15")),a=x[Xx("0x47")](Xx("0x1a"))||0,c=o&&null!==o[Xx("0x46")]?o.forceValue:!t[Xx("0x31")][Xx("0xb")]("setTableColumnHeader")[Xx("0x28")];let l;const d=x.getChild(0),u=c?i[Xx("0x3b")]:i[Xx("0x3c")],g=s[Xx("0xe")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array[Xx("0x5")](g)[0][Xx("0xc")];if(c){const e=d[Xx("0x33")](a);if(m[Xx("0x13")](e))return;l=t[Xx("0x11")][Xx("0x14")](t[Xx("0x11")][Xx("0x3a")](e),t[Xx("0x11")][Xx("0x2")](m))}else{const e=d[Xx("0x33")](a-1);if(!e)return;l=t[Xx("0x11")].createRange(t[Xx("0x11")][Xx("0x3a")](m),t[Xx("0x11")][Xx("0x2")](e))}t[Xx("0x11")][Xx("0x39")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Xx("0x2b"))}))})),t[Xx("0x23")][Xx("0x26")].on(Xx("0x4c"),r(),{priority:Xx("0x30")}),t[Xx("0x42")][Xx("0x26")].on(Xx("0x4c"),((t,e,n)=>{n[Xx("0x1")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x30")}),t[Xx("0x23")].downcastDispatcher.on(Xx("0x49"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x4d")](e[Xx("0x34")]),i=n[Xx("0x18")](r);if(!i[Xx("0x42")]||"setTableColumnHeader"!=i[Xx("0x42")][Xx("0x9")])return;const x=o.mapper[Xx("0x21")](e[Xx("0x34")]);if(x)for(const t of x)o[Xx("0x2e")][Xx("0x19")]("ck-suggestion-marker-"+s,t),o.writer[Xx("0x19")]("ck-suggestion-marker--active",t),o[Xx("0x2e")].removeAttribute(Xx("0x16"),t),o.mapper[Xx("0x50")](t,e[Xx("0x34")])}),{priority:Xx("0x30")}),n._descriptionFactory[Xx("0x1b")]((t=>{const{data:n}=t;if(n){if(Xx("0x7")==n[Xx("0x9")]){const t=n[Xx("0x1e")][0][Xx("0x46")];return o(Yo(e,t?Xx("0x27"):"FORMAT_REGULAR_ROW"))}if(Xx("0x2b")==n[Xx("0x9")]){const t=n[Xx("0x1e")][0][Xx("0x46")];return o(Yo(e,Xx(t?"0x44":"0x4b")))}}function o(t){return{type:Xx("0x4e"),content:Yo(e,Xx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x32")][Xx("0x2c")](Xx("0xa"),"setTableRowHeader",Xx("0x38"),i),n[Xx("0x32")].registerCustomCallback("formatBlock","setTableColumnHeader","accept",i)}}const Jx=["getSuggestionCallback","ck-suggestion-marker--active","accept","newRange","for","removeRows","from","has","insertContent","registerCustomCallback","plugins","wrap","_splitMarkerName","previous","every","nodeAfter","editing","tableCellSuggestion","getColumnIndexes","commands","fromEntries","getRange","ck-suggestion-marker","cell","getMarkers","add","findAncestor","dataDowncast","find","getSuggestion","markMultiRangeInsertion","element","rows","hasSuggestion","_suggestionFactory","markerName","root","remove","tablePaste","removeMarkers","last","fill","set","map","includes","cells","ck-suggestion-marker-insertion","tableCellHorizontalAlignment","type","locale","getContainedElement","stop","tablePasteColumn","isEmpty","getChild","filter","return","TableClipboard","createTableWalker","author","getAllAdjacentSuggestions","trackChanges","_createdBatches","setAttributes","tableCellPadding","change","getChangedMarkers","reduce","end","push","move","length","insertionRanges","oldRange","batch","_getCoordsForCells","insertRows","getRowIndexes","options","tableCell","isInContent","createRangeIn","model","first","_replaceTableSlotCell","rootName","getSelectionAffectedTableCells","formatBlock","TableUtils","registerDescriptionCallback","_isForcedDefaultExecutionBlock","start","column","insert","getChanges","conversion","attributes","deletionRanges","startsWith","selection","high","differ","Users","editingDowncast","registerPostFixer","markMultiRangeBlockFormat","previousSibling","low","tableCellBackgroundColor","suggestion-td","subType","containsRange","deletion","markerAttributes","join","paragraph","table","createRangeOn","getColumns","tablePasteRow","redo","editor","insertion","row","removeMarker","getRows","columnInsertionRanges","rowInsertionRanges","tableCellBorderStyle","schema","position","removeColumns","tablePasteCell","rowInsertionIndexes","getRanges","entries","markers","register","unwrap","markerToHighlight","getSuggestions","isEqual","keys","columnInsertionIndexes","document","get","suggestion:formatBlock:tablePasteCell","endRow","tableCellBorderColor","suggestionLoaded","discard","tableCellBorderWidth","suggestion","tablePasteChainId","getTableIfOnlyTableInContent","updateMarker","name","content"];var Qx,Zx;Qx=Jx,Zx=142,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x9"),Yx("0x6"),Yx("0x90"),Yx("0x3f"),"tableCellVerticalAlignment",Yx("0x7c"),Yx("0x50")],ea=Object[Yx("0x24")](ta.map((t=>[t,null])));class na extends t.Plugin{static get requires(){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins[Yx("0x17")](Yx("0x49")))return;const n=t.plugins[Yx("0x3")]("TrackChangesEditing"),o=t[Yx("0x1a")].get(Yx("0x68")),s=t.plugins[Yx("0x3")](Bx),r=t[Yx("0x1a")][Yx("0x3")]("TableClipboard");s._tablePostFixingSubtypes[Yx("0x55")](Yx("0x87"),Yx("0x44")),t[Yx("0x62")][Yx("0x91")][Yx("0x99")](Yx("0x21"),{allowIn:Yx("0x5f"),allowContentOf:Yx("0x5f"),isLimit:!0}),t.conversion.elementToElement({model:Yx("0x21"),view:Yx("0x7d")});let i=null;t[Yx("0x62")].on(Yx("0x18"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x57")]-1];l&&l.forceDefaultExecution||n[Yx("0x6a")]||this[Yx("0x89")].commands[Yx("0x3")](Yx("0x4d")).value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Yx("0xc")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x66")](n[Yx("0x2")][Yx("0x73")]);if(!i[Yx("0x57")])return!1;const x=i[0].findAncestor(Yx("0x84")),a=o[Yx("0x5d")](i),c=o[Yx("0x22")](i),l={startRow:a[Yx("0x63")],endRow:a.last,startColumn:c[Yx("0x63")],endColumn:c[Yx("0x38")]};return 1==i[Yx("0x57")]&&(l[Yx("0x5")]+=o[Yx("0x8d")](r)-1,l.endColumn+=o[Yx("0x86")](r)-1),sa(x,l,o)}(a,c,t.model,o,r)&&(s[Yx("0x43")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x62")].change((()=>{t[Yx("0x62")].insertContent(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[Yx("0x57")]&&n[Yx("0x2e")](s,Yx("0x87"),{tablePasteChainId:o}),r[Yx("0x57")]&&n[Yx("0x2e")](r,Yx("0x44"),{tablePasteChainId:o}),a[Yx("0x57")]&&n.markMultiRangeInsertion(a,Yx("0x36"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x57")]&&n.markMultiRangeDeletion(c,Yx("0x36"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Yx("0x79")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x94"),{tablePasteChainId:o});if(d){const e=d[Yx("0x28")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x62")][Yx("0x85")](o),i=e[Yx("0x2c")]((t=>t[Yx("0x25")]().isEqual(r)));i&&n[Yx("0x55")]([i[Yx("0xe")],s])}n[Yx("0x57")]&&d.setAttribute(Yx("0x81"),Object[Yx("0x24")](n))}i=null})))}),{priority:e.priorities[Yx("0x74")]+10}),t[Yx("0x1a")][Yx("0x3")](Yx("0x49")).on(Yx("0x64"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x43")]();const r=n[Yx("0x27")],x=o,a=oa(r),c=oa(x);t[Yx("0x48")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Yx("0x35")](r[Yx("0x46")](0));for(const t of Array[Yx("0x16")](x.getChildren()))s[Yx("0x6d")](t,r,Yx("0x54"));const t=i.rowInsertionIndexes.includes(n[Yx("0x8b")]),e=i.columnInsertionIndexes[Yx("0x3c")](n[Yx("0x6c")]);t||e||(l=s[Yx("0x61")](r))}else c&&!a&&(d=s[Yx("0x61")](r));else{const t=s.createElement(Yx("0x21")),e=s.createElement("tableCellSuggestion");s[Yx("0x1b")](s.createRangeIn(r),e),s[Yx("0x6d")](t,r,0);for(const e of Array[Yx("0x16")](x.getChildren()))s.insert(e,t,"end");l=s.createRangeOn(t),d=s[Yx("0x85")](e)}const u=Array.from(x.getAttributes()).filter((([t])=>ta.includes(t)));i[Yx("0x3d")][Yx("0x55")]({element:r,attributes:u[Yx("0x57")]?Object[Yx("0x24")](u):null}),l&&i[Yx("0x58")].push(l),d&&i[Yx("0x71")].push(d)}),{priority:Yx("0x74")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Yx("0x1")]=new Array(a)[Yx("0x39")](x)[Yx("0x3b")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x8e")][Yx("0x55")](t[Yx("0x62")][Yx("0x85")](e))}),{priority:Yx("0x7b")}),o.on(Yx("0x5c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x30")]||1;i[Yx("0x95")]=new Array(a).fill(x)[Yx("0x3b")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x4a")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x8f")][Yx("0x55")](t[Yx("0x62")][Yx("0x85")](e))}),{priority:Yx("0x7b")}),n._descriptionFactory[Yx("0x69")]((e=>{if(e[Yx("0x7e")]&&e.subType[Yx("0x72")](Yx("0x36")))return e[Yx("0x1d")]?{}:{type:"insertion",content:Yo(t[Yx("0x41")],"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste",Yx("0x44"),Yx("0x87"),Yx("0x94")])n[Yx("0x32")][Yx("0x19")](Yx("0x8a"),t,Yx("0x82"),x),n[Yx("0x32")].registerCustomCallback(Yx("0x80"),t,Yx("0x82"),x),n[Yx("0x32")].registerCustomCallback("formatBlock",t,Yx("0x82"),x);n[Yx("0x32")][Yx("0x19")]("formatBlock",Yx("0x94"),Yx("0x8"),x),n[Yx("0x32")][Yx("0x19")](Yx("0x67"),Yx("0x94"),Yx("0x12"),((e,n,o)=>{const s=e.map((t=>t[Yx("0x42")]()))[Yx("0x47")]((t=>t)),r=new Map(s[Yx("0x3b")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x3d")])e&&r[Yx("0x3a")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Yx("0x97")](o.markerAttributes)){const o=t[Yx("0x62")][Yx("0x98")][Yx("0x3")](e),s=o?o[Yx("0x25")]()[Yx("0x42")]():null;s&&r[Yx("0x3a")](s,n)}t[Yx("0x62")][Yx("0x51")]((t=>{for(const[e,n]of r)t[Yx("0x4f")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x32")][Yx("0x19")](e,Yx("0x36"),o,((s,r,i)=>{t[Yx("0x62")][Yx("0x51")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x6b")][Yx("0x1f")];e.is(Yx("0x2f"),Yx("0x21"))&&x[Yx("0x55")](e)}n[Yx("0x32")][Yx("0x10")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Yx("0x34")][Yx("0x65")]&&t[Yx("0x9a")](e)}))}))};a(Yx("0x8a"),Yx("0x12")),a(Yx("0x8a"),"discard"),a(Yx("0x80"),Yx("0x12")),a(Yx("0x80"),"discard"),n[Yx("0x32")][Yx("0x19")](Yx("0x8a"),Yx("0x87"),"discard",(t=>{const e=t[Yx("0x3b")]((t=>t[Yx("0x42")]())),n=e[0][Yx("0x2a")]("table"),{minRow:r,maxRow:i}=s[Yx("0x5b")](e);o[Yx("0x15")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Yx("0x19")]("insertion",Yx("0x44"),Yx("0x8"),(t=>{const e=t[Yx("0x3b")]((t=>t[Yx("0x42")]())),n=e[0][Yx("0x2a")](Yx("0x84")),{minColumn:r,maxColumn:i}=s[Yx("0x5b")](e);o[Yx("0x93")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x7e")][Yx("0x72")](Yx("0x36")))return;const o=e[Yx("0x70")][Yx("0xb")],s=n[Yx("0x9c")]()[Yx("0x47")]((t=>t.isInContent&&t[Yx("0x70")]&&t[Yx("0x70")][Yx("0xb")]==o));s[Yx("0x57")]&&e[Yx("0x4c")]()[Yx("0x57")]!=s[Yx("0x57")]&&s[Yx("0x53")](((t,e)=>(t.next=e,e[Yx("0x1d")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x1c")](t.markerName),s=[Yx("0x26"),Yx("0x3e")],r=n.activeMarkers[Yx("0x3c")](t[Yx("0x33")]);return r&&s.push(Yx("0x11")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x7"),c,{priority:Yx("0x74")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Yx("0x62")][Yx("0x2")][Yx("0x78")]((()=>{let e=!1;const o=Array[Yx("0x16")](t.model[Yx("0x2")][Yx("0x75")][Yx("0x52")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x1c")](s);if(Yx("0xa")!=o||Yx("0x80")!=i||r[Yx("0x59")])continue;if(!n[Yx("0x31")](x))continue;const a=n[Yx("0x2d")](x)[Yx("0x96")](),c=t[Yx("0x1a")].get(Yx("0x76")).me;for(const t of n[Yx("0x9c")]())if(t.isInContent&&t[Yx("0x4b")]==c&&Yx("0x67")==t[Yx("0x40")]&&Yx("0x94")==t.subType&&t[Yx("0x96")]()[Yx("0x1e")]((t=>a.some((e=>e[Yx("0x7f")](t,!0))))))for(const n of t[Yx("0x4c")]())n[Yx("0x60")]&&(n[Yx("0x8")](),e=!0)}return e})),t.model.document.registerPostFixer((e=>{const o=t[Yx("0x23")][Yx("0x3")](Yx("0x88"));if(!o||!o[Yx("0x4e")][Yx("0x17")](e[Yx("0x5a")]))return!1;let s=!1;const r=t[Yx("0x1a")].get(Yx("0x76")).me,i=t.model[Yx("0x2")].differ[Yx("0x6e")](),x=Array[Yx("0x16")](t.model[Yx("0x2")][Yx("0x75")][Yx("0x52")]())[Yx("0x47")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x1c")](t);return Yx("0xa")==o&&Yx("0x36")==s&&i==r.id&&!e[Yx("0x59")]}));for(const t of i){if(Yx("0x6d")!=t[Yx("0x40")]||"tableCellSuggestion"!=t.name||1!=t.length)continue;const n=e.createRange(t[Yx("0x92")],t[Yx("0x92")].getShiftedBy(1));if(!x[Yx("0x2c")]((({data:t})=>t.newRange[Yx("0x9d")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x7f")](o[Yx("0x13")])){e[Yx("0xd")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x62")][Yx("0x2")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x1a")][Yx("0x3")]("Users").me,r=n[Yx("0x9c")]()[Yx("0x47")]((t=>t[Yx("0x60")]&&t[Yx("0x4b")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x36")==t[Yx("0x7e")])for(const e of t[Yx("0x28")]()){const n=e[Yx("0x25")]().getContainedElement();if(n)if(n.is(Yx("0x2f"),"tableCellSuggestion")&&oa(n)){t.removeMarker(e[Yx("0xe")]),i[Yx("0x29")](n),o=!0;const s=n.nextSibling,r=n[Yx("0x7a")],a=s&&s.is(Yx("0x2f"),"tableCellSuggestion"),c=r&&r.is(Yx("0x2f"),Yx("0x21"));a&&!i[Yx("0x17")](s)&&x[Yx("0x29")](s),c&&!i.has(r)&&x[Yx("0x29")](r)}else n.is(Yx("0x2f"),Yx("0x83"))&&n.isEmpty&&(t[Yx("0x8c")](e[Yx("0xe")]),o=!0)}else if("tablePasteCell"==t[Yx("0x7e")]){if(!t[Yx("0x70")]||!t[Yx("0x70")][Yx("0xb")])continue;const e=t[Yx("0x70")][Yx("0x81")];if(e&&Object[Yx("0x0")](e)[Yx("0x57")])continue;const n=t[Yx("0x70")][Yx("0xb")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x7e")]&&e[Yx("0x7e")].startsWith(Yx("0x36"))){if(!e[Yx("0x70")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Yx("0x70")][Yx("0xb")]==n){s=!1;break}}i&&s&&(t[Yx("0x37")](),o=!0)}for(const t of i)e[Yx("0x35")](t);for(const t of x)e[Yx("0x9a")](t);return o})),t[Yx("0x6f")][Yx("0x14")](Yx("0x77"))[Yx("0x9b")]({model:Yx("0x4"),view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x6f")][Yx("0x14")](Yx("0x2b"))[Yx("0x9b")]({model:Yx("0x4"),view:(t,e)=>e[Yx("0x5e")].showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0x74")});const d=t[Yx("0x20")].view;this.listenTo(d[Yx("0x2")],"clipboardOutput",((t,e)=>{const n=[];for(const t of d[Yx("0x61")](e[Yx("0xf")]).getItems())t.is(Yx("0x2f"),Yx("0x7d"))&&n[Yx("0x55")](t);d[Yx("0x51")]((t=>{for(const e of n)t[Yx("0x56")](t.createRangeIn(e),t.createPositionBefore(e)),t.remove(e)}))}))}}function oa(t){if(t[Yx("0x45")])return!0;const e=t[Yx("0x46")](0);return e.is("element",Yx("0x83"))&&e[Yx("0x45")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x4a")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["getAttribute","afterInit","_descriptionFactory","handleSuggestionDescription","model","data","TableColumnResizeEditing","markBlockFormat","table","editor","subType","_suggestionFactory","Users","formatGroupId","enableCommand","getSelectedElement","registerDescriptionCallback","registerCustomCallback","change","resizeTable","selection","accept","getContainedElement","formatBlock","getTableColumnsWidths","plugins","get","resizeColumnWidths","document","columnWidths","bind","handleResizeTableWidthCommand","format","TrackChangesEditing","*Format:* resize table","tableWidth","discard","author"];var ia,xa;ia=ra,xa=345,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x24")](){if(!this[aa("0x6")][aa("0x16")].has(aa("0x3")))return;const t=this[aa("0x6")][aa("0x16")][aa("0x17")](aa("0x1e"));t[aa("0xb")]("resizeTableWidth",this[aa("0x1c")][aa("0x1b")](this)),t.enableCommand(aa("0x18"),this[aa("0x1c")][aa("0x1b")](this)),t._suggestionFactory[aa("0xe")](aa("0x14"),"resizeTable","accept",t[aa("0x8")].getSuggestionCallback(aa("0x14"),null,aa("0x21"))),t._suggestionFactory[aa("0xe")](aa("0x14"),"resizeTable","discard",t[aa("0x8")].getSuggestionCallback(aa("0x14"),null,aa("0x12"))),t[aa("0x25")][aa("0xd")](this.handleSuggestionDescription[aa("0x1b")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins[aa("0x17")](aa("0x1e")),o=this[aa("0x6")][aa("0x16")].get(aa("0x3")),s=e[aa("0x5")]||this[aa("0x6")][aa("0x1")][aa("0x19")][aa("0x11")][aa("0xc")]();this[aa("0x6")].model[aa("0xf")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[aa("0x15")](r):null,x=s[aa("0x23")](aa("0x20"))||null;const a=e.tableWidth||x,c=e[aa("0x1a")]||i,l=this[aa("0x6")][aa("0x16")][aa("0x17")](aa("0x9")).me;for(const t of n.getSuggestions()){const e=t[aa("0x13")]();if(aa("0x10")===t[aa("0x7")]&&e===s){t[aa("0x22")]!==l&&t.discard();const e=t[aa("0x2")].commandParams;x=e[0][aa("0x20")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x4")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],aa("0x10"))}))}[aa("0x0")](t){const{data:e}=t;if(e&&aa("0x10")===e[aa("0xa")]){const t=aa("0x1f");return{type:aa("0x1d"),content:Yo(this.editor.locale,t)}}}}const la=["afterInit","plugins","Template","TrackChangesEditing","get","enableCommand"];var da,ua;da=la,ua=422,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this.editor;t[ga("0x5")].has(ga("0x0"))&&t.plugins[ga("0x2")](ga("0x1"))[ga("0x3")]("insertTemplate")}}const fa=["get","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","tableOfContents","locale","insertTableOfContents","commands"];var ha,pa;ha=fa,pa=181,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("0x0")][ba("0x1")](ba("0x6")))return;t.plugins.get(ba("0x3")).enableCommand("insertTableOfContents");const e=t.plugins[ba("0x1")]("TrackChangesEditing"),n=t[ba("0x5")];e._descriptionFactory.registerElementLabel(ba("0x4"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["editor","schema","newRange","getNearestSelectionRange","document","from","updateMarker","createRange","TrackChangesEditing","isEqual","ELEMENT_TITLE","getChangedMarkers","suggestion","registerElementLabel","isTouching","afterInit","differ","removeMarker","forward","model","has","element","start","locale","title-content","registerPostFixer","isCollapsed","end","get"];var Ta,Ca;Ta=_a,Ca=155,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x13")];if(!t.plugins[ya("0xa")]("Title"))return;const e=t.plugins[ya("0x12")](ya("0x1b"));e._descriptionFactory[ya("0x3")](ya("0xe"),(()=>Yo(t[ya("0xd")],ya("0x0")))),t[ya("0x9")][ya("0x17")][ya("0xf")]((n=>{let o=!1;const s=Array[ya("0x18")](t[ya("0x9")][ya("0x17")][ya("0x6")][ya("0x1")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ya("0x2")!==s||!i[ya("0x15")])continue;const x=i[ya("0x15")],a=x[ya("0x11")].nodeBefore;if(!a||!a.is(ya("0xb"),ya("0xe")))continue;if(!x.start[ya("0x4")](x.end))continue;const c=t[ya("0x9")][ya("0x14")][ya("0x16")](x[ya("0x11")],ya("0x8"));if(c&&c[ya("0x10")]){const t=n[ya("0x1a")](x[ya("0xc")],c.start);t[ya("0x1c")](x)||(n[ya("0x19")](r,{range:t}),o=!0)}o||(n[ya("0x7")](r),o=!0)}return o}))}}const Aa=["afterInit","undo","TrackChangesEditing","plugins","get","editor","enableCommand","redo","has","UndoEditing"];var va,Ra;va=Aa,Ra=303,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x7")](){const t=this[Ia("0x2")],e=t[Ia("0x0")][Ia("0x1")](Ia("0x9"));t[Ia("0x0")][Ia("0x5")](Ia("0x6"))&&(e[Ia("0x3")](Ia("0x8")),e[Ia("0x3")](Ia("0x4")))}}const La=["enableCommand","has","toggleTableCaption","get","afterInit","TableCaptionEditing","TrackChangesEditing","plugins"];var Na,wa;Na=La,wa=273,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get requires(){return[Bx]}[Ma("0x3")](){const t=this.editor;t[Ma("0x6")][Ma("0x0")](Ma("0x4"))&&t[Ma("0x6")][Ma("0x2")](Ma("0x5"))[Ma("0x7")](Ma("0x1"))}}const Fa=["*Format:* set start index to %0","format","listReversed","getListTypeFromListStyleType","_getTranslationKeyForListStyle","*Format:* set order to regular","handleListStartCommand","bind","editor","type","listStart","TrackChangesEditing","expandListBlocksToCompleteList","selection","list.properties","startIndex","document","from","getAttribute","push","toUpperCase","markMultiRangeBlockFormat","enableCommand","plugins","afterInit","DocumentListPropertiesEditing","change","ELEMENT_","handleListStyleCommand","_LIST_","handleListReversedCommand","has","getSelectedBlocks","get","commandParams","numbered","DocumentListUtils","DocumentListPropertiesUtils","_getSuggestionBlocks","listStyle","config","model","*Format:* set order to reversed","registerDescriptionCallback","reversed","_getSuggestionBlocksForListStyle","isFirstBlockOfListItem","filter","handleDescriptions","isListItemBlock","styles","_descriptionFactory"];var Pa,Da;Pa=Fa,Da=398,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x2a")](){if(!this[Ba("0x1a")][Ba("0x29")][Ba("0x31")](Ba("0x2b")))return;const t=this[Ba("0x1a")][Ba("0x6")][Ba("0x33")](Ba("0x20")),e=this[Ba("0x1a")].plugins[Ba("0x33")](Ba("0x1d"));t[Ba("0x10")]&&e[Ba("0x28")](Ba("0x5"),this[Ba("0x2e")][Ba("0x19")](this)),t[Ba("0xa")]&&e[Ba("0x28")](Ba("0x14"),this[Ba("0x30")][Ba("0x19")](this)),t[Ba("0x21")]&&e[Ba("0x28")](Ba("0x1c"),this[Ba("0x18")][Ba("0x19")](this)),e[Ba("0x11")][Ba("0x9")](this[Ba("0xe")][Ba("0x19")](this))}[Ba("0x2e")](t,e={}){const n=this[Ba("0x1a")].plugins[Ba("0x33")]("TrackChangesEditing"),o=this[Ba("0xb")]();this[Ba("0x1a")][Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](o,{commandName:Ba("0x5"),commandParams:[{type:e[Ba("0x1b")]}],formatGroupId:Ba("0x5")})}))}[Ba("0x30")](t,e={}){const n=this.editor[Ba("0x29")].get(Ba("0x1d")),o=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")]("DocumentListUtils"),s=this[Ba("0x4")]((t=>o[Ba("0xf")](t)&&Ba("0x1")===t[Ba("0x24")]("listType")));null!==s&&this[Ba("0x1a")][Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[Ba("0x18")](t,e={}){const n=this.editor[Ba("0x29")].get(Ba("0x1d")),o=this[Ba("0x1a")].plugins.get(Ba("0x2")),s=this[Ba("0x4")]((t=>o[Ba("0xf")](t)&&Ba("0x1")===t.getAttribute("listType")));null!==s&&this.editor[Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:Ba("0x1c")})}))}[Ba("0xe")](t){const e=this[Ba("0x1a")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ba("0x5"):o="*Change to:* %0",s={type:Ba("0x13"),content:Yo(e,o,Yo(e,this[Ba("0x16")](n[Ba("0x0")][0][Ba("0x1b")])))};break;case"listReversed":o=n.commandParams[0].reversed?Ba("0x8"):Ba("0x17"),s={type:Ba("0x13"),content:Yo(e,o)};break;case"listStart":o=Ba("0x12"),s={type:Ba("0x13"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}[Ba("0xb")](){const t=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")](Ba("0x2"));let e=Array[Ba("0x23")](this[Ba("0x1a")][Ba("0x7")][Ba("0x22")][Ba("0x1f")][Ba("0x32")]());return e[Ba("0x25")](...t[Ba("0x1e")](e)),e=[...new Set(e)],e}[Ba("0x4")](t){const e=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")]("DocumentListUtils");let n=Array[Ba("0x23")](this.editor[Ba("0x7")][Ba("0x22")].selection[Ba("0x32")]())[Ba("0xd")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0xc")](t)&&o[Ba("0x25")](t);return o}[Ba("0x16")](t){return Ba("0x2d")+this[Ba("0x1a")][Ba("0x29")][Ba("0x33")](Ba("0x3"))[Ba("0x15")](t).toUpperCase()+Ba("0x2f")+t[Ba("0x26")]().replace(/-/g,"_")}}const Ua=["markBlockFormat","discard","tableBorderWidth","handleDiscardAction","tableCellPadding","enqueueChange","getFirstPosition","tableCellHeight","_getSuggestion","subType","change","tableBackgroundColor","tableCellHorizontalAlignment","has","tableCellProperties","get","handleSuggestionDescription","TableUtils","getSuggestionCallback","tableWidth","getSelectionAffectedTableCells","registerCustomCallback","getSuggestions","getAttribute","tableHeight","tableCellBackgroundColor","TableCellPropertiesEditing","_descriptionFactory","_handlePropertyChange","format","*Format:* change table properties","join","tableProperties","setAttribute","document","data","model","accept","tableBorderStyle","pluginName","findAncestor","nodeAfter","locale","*Format:* change table cell properties","tableCellBorderStyle","tableCellBorderColor","_suggestionFactory","tableCellBorderWidth","plugins","TablePropertiesEditing","TrackChangesEditing","tableCellWidth","batch","getContainedElement","formatBlock","removeAttribute","selection","tableAlignment","editor"];var Ga,Ha;Ga=Ua,Ha=496,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("0x8")]=["tableBorderColor",za("0xe"),za("0x25"),za("0x21"),za("0x36"),za("0x0"),za("0x2e")],this[za("0x31")]=[za("0x15"),za("0x14"),za("0x17"),za("0x27"),za("0x1b"),za("0x2a"),za("0x1"),za("0x2f"),"tableCellVerticalAlignment"]}static get[za("0xf")](){return"TrackChangesTableProperties"}afterInit(){const t=this[za("0x22")].plugins.get(za("0x1a"));if(this[za("0x22")][za("0x18")][za("0x30")](za("0x19"))){for(const e of this[za("0x8")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0xc")][za("0xa")][za("0x20")][za("0x29")]()[za("0x10")]("table");this[za("0x4")](e,[o],this[za("0x8")],za("0x8"),t,n)}));t[za("0x16")][za("0x38")](za("0x1e"),za("0x8"),za("0xd"),t[za("0x16")][za("0x35")](za("0x1e"),null,za("0x24"))),t[za("0x16")][za("0x38")]("formatBlock",za("0x8"),"discard",((t,e)=>this[za("0x26")](this[za("0x8")],t,e))),t[za("0x16")][za("0x38")](za("0x1e"),za("0x8"),za("0x7"),(()=>!1))}if(this[za("0x22")].plugins.has(za("0x2"))){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x18")][za("0x32")](za("0x34"))[za("0x37")](this[za("0x22")][za("0xc")][za("0xa")][za("0x20")]);this[za("0x4")](e,o,this.tableCellProperties,za("0x31"),t,n)}));t[za("0x16")][za("0x38")](za("0x1e"),za("0x31"),za("0xd"),t[za("0x16")][za("0x35")]("formatBlock",null,za("0x24"))),t[za("0x16")][za("0x38")]("formatBlock","tableCellProperties",za("0x24"),((t,e)=>this[za("0x26")](this[za("0x31")],t,e))),t._suggestionFactory[za("0x38")](za("0x1e"),za("0x31"),za("0x7"),(()=>!1))}t[za("0x3")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[za("0x4")](t,e,n,o,s,r){const i=this.editor[za("0x18")][za("0x32")](za("0x1a"));this[za("0x22")].model[za("0x28")](r[za("0x1c")],(()=>{for(const t of e)if(this[za("0x2b")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x3a")](o);void 0!==n&&(e[o]=n)}s(r),i[za("0x23")](t,{commandParams:[e]},[],o)}}))}[za("0x26")](t,e,n){const o=e[0].start[za("0x11")],s=n.commandParams[0];this[za("0x22")][za("0xc")][za("0x2d")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x9")](n,s[n],o):e[za("0x1f")](n,o)}))}[za("0x33")](t){if(t[za("0xb")])switch(t[za("0x2c")]){case"tableProperties":return{type:za("0x5"),content:Yo(this[za("0x22")][za("0x12")],za("0x6"))};case"tableCellProperties":return{type:za("0x5"),content:Yo(this.editor[za("0x12")],za("0x13"))}}}[za("0x2b")](t,e){const n=this[za("0x22")][za("0x18")][za("0x32")](za("0x1a"));for(const o of n[za("0x39")]({skipNotAttached:!0})){const n=o[za("0x1d")]();if(o[za("0x2c")]===e&&n===t)return o}return null}}const Va=["_suggestionState","chain","includes","has","name","updateSuggestion","element","next","markerNameToElements","track-changes-suggestion-not-found","fetchCommentThread","collaboration.channelId","formatBlock:chain","_handleNewSuggestionMarker","track-changes-command-not-found","setTo","plugins","size","isIntersectingWithRange","_editor","isExternal","insertion","addMarker","createRange","PENDING_ACTION_SUGGESTION","getLastMatchingPosition","nodeAfter","document","_addSuggestionMarker","ready","getSuggestions","skipNestingCheck","discardAllSuggestions","_joinWithAdjacentSuggestions","catch","then","getCustomProperty","forceDefaultExecution","removed","suggestionLoaded","upcast","containsRange","@external","return","attributes","trackChanges.mergeNestedSuggestions","push","accept","addSuggestionData","$marker","error-saving-suggestion-data-suggestion-discarded","removeMarker:suggestion:formatBlock","external:","getAllAdjacentSuggestions","_findSuggestions","nodeBefore","length","markerToData","formatBlock:discard","getSuggestionCallback","_onDiscard","_splitMarkerName","lowest","_mergeNestedSuggestions","value","oldRange","dataDowncast","_defaultCallbacks","isBefore","formatBlock:","schema","containsItem","addRange","updateMarker","formatInline:","createPositionAfter","moveTargetPosition","getMarkers","sort","multipleBlocks","elementEnd","addSuggestion","targetPosition","getNearestSelectionRange","_adapter","splitPosition","_enabledCommands","reconvertMarker","insertion:accept","activeMarkers","getFirstMarker","hasComments","split","range","TrackChangesEditing","requires","mapper","editingDowncast","removeClass","markDeletion","howMany","suggestion:","removeMarkers","deletion","backward","suggestionUnloaded","item","createRangeIn","registerPostFixer","hasSuggestion","formatInline:accept","getWalker","CommentsRepository","formatBlock:join","detach","conversion","addUser","_setSuggestionData","Users","trackChangesCommand","rootName","track-changes-adapter-missing-getsuggestion","data","insertContent","_getSuggestionData","deletion:","head","isOwn","getAttribute","ck-suggestion-marker","addCommentThread","formatInline:join","every","dataReady","containerElement","clear","type","formatInline:discard","markInsertion","markerToHighlight","editor","isMultiRange","formatInline:chain","keys","removeAttribute","_joinSuggestions","normal","_checkSuggestionCorrectness","_createSuggestion","getShiftedBy","acceptAllSuggestions","fromRange","consume","parent","deleteContent","_commentsRepository","markerReady","getChangedMarkers","start","containsPosition","discard","creator","for","get","authorName","addClass","isInsideObject","previous","stop","getRanges","_customCallbacks","removeComment","ck-suggestion-marker-formatBlock","adapter","open","acceptSelectedSuggestions","suggestion-type","setSelection","enqueueChange","insert","markers","writer","change","getRange","createPositionAt","elementStart","addHighlight","remove","isInContent","formatInline","set","getMultiRangeId","always","locale","acceptSuggestion","multi","dataToMarker","authoredAt","isLocal","formatBlock:accept","insertion:join","change:_saved","isNextTo","documentSelection","unbind","change:data","init","_rangeIsInLocalUserInsertion","_suggestions","position","options","listenTo","accepted","values","_saved","data-suggestion","model","change:activeMarkers","rejected","getItems","isBlock","isRemovable","never","$graveyard","isUndo","createElement","commandName","_breakSuggestionMarker","ck-suggestion-marker-","newRange","_refreshSuggestionsChain","addMarker:suggestion","define","markerName","formatBlock","formatGroupId","discardSuggestion","after","isAfter","createSelection","_updateSuggestionData","getCommentThread","hasCommentThread","default","_isForcedDefaultExecutionBlock","setAttribute","join","update:suggestion","trackChanges.trackFormatChanges","delete","isCollapsed","enableCommand","toViewElement","some","suggestionChanged","consumable","execute","isObject","splice","author","end","add","from","createdAt","$textProxy","_isDataLoaded","isEqual","selection","addMarker:suggestion:formatBlock","_trackFormatChanges","getUser","highest","_model","trackChanges","editing","deletion:accept","high","root","_getAuthorFromId","tablePasteChainId","refresh","notReady","low","_suggestionFactory","batch","subType","addMarkerName","commands","unbindElementFromMarkerName","insertion:","isAtEnd","isTouching","getFirstRange","commentThread","buildSuggestion","showSuggestionHighlights","isLimit","_setSuggestionRange","_getExternalAuthor","assign","markMultiRangeBlockFormat","config","fire","insertion:chain","removeMarker","ck-suggestion-marker--active","isDocumentOperation","differ","markBlockFormat","getIntersection","fromCharCode","_descriptionFactory","deletion:chain","elementToElement","PendingActions","_removeSuggestion","getSuggestion","map","suggestion","_addThreadToSuggestion","addComment","filter","containsRangeInObject","widget","marker-count"];var Ka,qa;Ka=Va,qa=109,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("0x137")](){return[Xa("0x3"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,ur,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,ui,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,dx,px,Cx,Ix,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get pluginName(){return Xa("0x136")}constructor(t){function e(t){return t[Xa("0xd0")]((t=>String[Xa("0xc9")](t)))[Xa("0x89")]("")}super(t),this[Xa("0x51")](Xa("0x131"),[]),this.on(Xa("0x6c"),((e,n,o,s)=>{this._model[Xa("0x49")]((()=>{for(const e of[...s,...o])this[Xa("0xa3")][Xa("0x47")].has(e)&&t[Xa("0xa5")][Xa("0x12f")](e)}))})),this[Xa("0xca")]=new ss(this.editor[Xa("0x6b")][Xa("0x11e")],this[Xa("0x1f")][Xa("0x54")]),this[Xa("0x12c")]=null,this._suggestionFactory=new Ja(this.editor),this[Xa("0x63")]=new Map,this[Xa("0x2e")]=t[Xa("0xe8")][Xa("0x36")](Xa("0x3")),this._enabledCommands=new Set,this[Xa("0xa3")]=this[Xa("0x1f")][Xa("0x6b")],this[Xa("0xd8")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[Xa("0xc0")][Xa("0x7b")](Xa("0x8b"),Xa("0x86")),this[Xa("0xa0")]=t[Xa("0xc0")][Xa("0x36")](Xa("0x8b")),t[Xa("0xc0")][Xa("0x7b")](Xa("0x105"),!0),this._mergeNestedSuggestions=t[Xa("0xc0")][Xa("0x36")](Xa("0x105")),this.trackChangesCommand=new u(t,this[Xa("0x12e")]),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,52,48])}[Xa("0x61")](){const t=this.editor;t[Xa("0x6")][Xa("0x35")]("editingDowncast")[Xa("0x1e")]({model:Xa("0xd1"),view:t=>{const{id:e,type:n}=this._splitMarkerName(t[Xa("0x7c")]),o=["ck-suggestion-marker",Xa("0x77")+n];let s=3e3;return this[Xa("0x131")][Xa("0xda")](t[Xa("0x7c")])&&(o[Xa("0x106")]("ck-suggestion-marker--active"),s=3010),Xa("0x13f")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t.conversion[Xa("0x35")](Xa("0x11a")).add((e=>{e.on(Xa("0x7a"),((e,n,o)=>{if(!o[Xa("0x65")][Xa("0xba")])return;const s=n[Xa("0x142")];if(!s)return;const r=o[Xa("0x138")][Xa("0x8f")](s);t.model.schema[Xa("0x94")](s)&&r&&!r[Xa("0xfc")](Xa("0xd6"))&&r.is(Xa("0x19"))&&(0,x.toWidget)(r,o[Xa("0x48")])}),{priority:Xa("0xa7")})})),t[Xa("0x6")][Xa("0x35")]("dataDowncast")[Xa("0x1e")]({model:Xa("0xd1"),view:(t,e)=>{if(!e.options[Xa("0xba")])return null;const{type:n}=this._splitMarkerName(t[Xa("0x7c")]);return{classes:["ck-suggestion-marker",Xa("0x77")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x142")])return;if(o[Xa("0x142")].is(Xa("0x9e")))return void s[Xa("0x92")][Xa("0x2b")](o[Xa("0x142")],n[Xa("0xdc")]);const r=s[Xa("0x138")][Xa("0x8f")](o[Xa("0x142")]);if(!o[Xa("0x142")].is(Xa("0xde"))||!t[Xa("0x6b")][Xa("0x11e")][Xa("0x6f")](o[Xa("0x142")])||r.getCustomProperty(Xa("0x4d")))return;const{id:i}=this[Xa("0x115")](o.markerName);s[Xa("0x48")][Xa("0x38")]([Xa("0x14"),Xa("0x3f")],r),s.writer[Xa("0x88")](Xa("0x6a"),i,r),s.mapper.bindElementToMarker(r,o[Xa("0x7c")]),e&&(this[Xa("0x131")].includes(o[Xa("0x7c")])?s[Xa("0x48")][Xa("0x38")](Xa("0xc4"),r):s[Xa("0x48")][Xa("0x13a")]("ck-suggestion-marker--active",r));for(const e of t.model[Xa("0x143")](o[Xa("0x142")])[Xa("0x6e")]())s[Xa("0x92")][Xa("0x2b")](e,n.name);s[Xa("0x92")][Xa("0x2b")](o[Xa("0x142")],n[Xa("0xdc")])};t[Xa("0x6")][Xa("0x35")]("dataDowncast")[Xa("0x98")]((t=>{t.on(Xa("0x9f"),((t,e,o)=>{o[Xa("0x65")][Xa("0xba")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:Xa("0xa2")})})),t[Xa("0x6")].for("dataDowncast")[Xa("0x111")]({model:"suggestion",view:(t,e)=>e[Xa("0x65")][Xa("0xba")]?null:{group:Xa("0xd1"),name:t.substr(11)}}),t[Xa("0x6")][Xa("0x35")](Xa("0x100"))[Xa("0xcc")]({view:{name:Xa("0xd1"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t[Xa("0x13")](Xa("0x43"))+":"+t[Xa("0x13")]("id");return t.getAttribute(Xa("0xd7"))&&(n+=":"+t.getAttribute("marker-count")),e[Xa("0x74")](Xa("0x109"),{"data-name":n})}}),t.conversion.for(Xa("0x100"))[Xa("0x57")]({view:Xa("0xd1")}),t.conversion[Xa("0x35")](Xa("0x139")).add((t=>{t.on(Xa("0x9f"),n(),{priority:Xa("0xa7")})})),t.conversion[Xa("0x35")](Xa("0x139"))[Xa("0x98")]((t=>{t.on(Xa("0x10b"),((t,e,n)=>{const o=n.mapper[Xa("0xe0")](e.markerName);if(o)for(const t of o)t.getCustomProperty(Xa("0x4d"))||(n[Xa("0x48")][Xa("0x13a")]([Xa("0x14"),Xa("0x3f"),Xa("0xc4")],t),n[Xa("0x48")][Xa("0x23")]("data-suggestion",t),n.mapper[Xa("0xb3")](t,e[Xa("0x7c")]))}),{priority:Xa("0xa7")})})),t.model[Xa("0xf3")][Xa("0x144")]((e=>{let n=!1;const o=Array.from(t[Xa("0x6b")].document[Xa("0xc6")][Xa("0x30")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0x115")](x);if(Xa("0xd1")!==o)continue;const d=this._suggestions[Xa("0x36")](l);if(null!=a.newRange)if(Xa("0x50")==c&&(n=n||Ya(a[Xa("0x78")],x,e,t.model[Xa("0x11e")])),a[Xa("0x78")].isCollapsed||Xa("0x72")==a[Xa("0x78")].root[Xa("0xb")]||Xa("0x7d")==c&&!ec(a[Xa("0x78")])||Xa("0x13f")==c&&(Za(i=a[Xa("0x78")])||(r=i)[Xa("0x31")][Xa("0x2c")]==r[Xa("0x97")][Xa("0x10f")]&&r.start.isAtEnd))e[Xa("0xc3")](x),n=!0;else{if(!d||!d.isInContent)continue;s[Xa("0x98")](d)}}var r,i;return s.size>0&&(n=!!this[Xa("0xf9")](s)||n),n})),t[Xa("0x6b")][Xa("0xf3")].registerPostFixer((e=>{let n=!1;for(const o of t[Xa("0x6b")][Xa("0xf3")].differ.getChanges()){if(Xa("0x46")!=o[Xa("0x1b")])continue;const s=o[Xa("0x64")][Xa("0x28")](o[Xa("0x110")]);if(s[Xa("0xb5")])for(const r of this._suggestions.values()){if(r.isMultiRange||!r[Xa("0x4f")])continue;if(Xa("0x7d")!=r.type)continue;const i=r[Xa("0xb7")]();if(i.start[Xa("0x2c")]!=i[Xa("0x97")][Xa("0x2c")]&&i.end[Xa("0x9d")](o[Xa("0x64")])){const o=t.model[Xa("0xef")](i[Xa("0x31")],s);e.updateMarker(r[Xa("0x132")](),{range:o}),n=!0}}}return n})),t[Xa("0x6b")].markers.on(Xa("0x8a"),((t,e,n)=>{if(null==n){const{id:t}=this[Xa("0x115")](e[Xa("0xdc")]),n=this[Xa("0x63")][Xa("0x36")](t);n&&n[Xa("0xb1")](e[Xa("0xdc")])}})),t[Xa("0x6b")][Xa("0xf3")].on(Xa("0x60"),(()=>{const e=Array.from(t[Xa("0x6b")][Xa("0xf3")][Xa("0xc6")][Xa("0x30")]()).filter((t=>Xa("0xd1")===this[Xa("0x115")](t[Xa("0xdc")]).group));if(0===e.length)return;e.sort(((t,e)=>{const n=t[Xa("0xd")][Xa("0x119")],o=e[Xa("0xd")].oldRange;return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x31")].isBefore(o[Xa("0x31")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0x115")](t);if(null===s[Xa("0x119")]){const e=this[Xa("0xe5")](t);o.add(e)}else{const t=this[Xa("0x63")][Xa("0x36")](e);null!==s.newRange||t[Xa("0x4f")]?(n.add(t[Xa("0x11")]),o.add(t)):this[Xa("0xce")](t)}}o[Xa("0xe9")]>0&&this[Xa("0x79")](o);for(const t of n)this[Xa("0xc1")](Xa("0x91"),t)})),t.model.on("applyOperation",((e,n)=>{const o=n[0];if(!this[Xa("0x63")][Xa("0xe9")])return;if(!o[Xa("0xc5")])return;if(o.batch[Xa("0x73")]||!o[Xa("0xaf")][Xa("0x59")])return;let s,r;switch(o[Xa("0x1b")]){case"insert":s=t[Xa("0x6b")].createPositionAt(o[Xa("0x64")]),r=s[Xa("0x28")](o[Xa("0x13c")]);break;case Xa("0x134"):s=t[Xa("0x6b")][Xa("0x4b")](o[Xa("0x12d")]),r=t[Xa("0x6b")].createPositionAt(o[Xa("0x124")]);break;case"move":s=t[Xa("0x6b")].createPositionAt(o[Xa("0x12a")]),r=s[Xa("0x28")](o.howMany);break;default:return}const i=t[Xa("0x6b")][Xa("0xef")](s,r);t[Xa("0x6b")][Xa("0x49")]((()=>{for(const{suggestion:t,meta:e}of this[Xa("0x10e")](i)){if(t[Xa("0x20")])continue;if(Xa("0x50")==t[Xa("0x1b")])continue;const n=t.data&&t[Xa("0xd")][Xa("0x127")];(Xa("0x7d")!=t[Xa("0x1b")]||Xa("0x134")==o[Xa("0x1b")]&&!n)&&(e[Xa("0xd5")]||Xa("0xed")==t.type&&e.isOwn||t[Xa("0xb7")]().containsRange(i)&&this._breakSuggestionMarker(t,s,r))}}))}),{priority:Xa("0x116")}),t[Xa("0x6b")].on(Xa("0x2d"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[Xa("0xfd")])return;if(this[Xa("0x87")])return;if(!this[Xa("0xa")].value)return;if(o[Xa("0x8d")])return;const r=t[Xa("0x6b")].schema,{start:i,end:x}=o[Xa("0xb7")](),a=i[Xa("0xf2")]&&r[Xa("0xbb")](i.nodeAfter)?null:r[Xa("0x12b")](i,"forward"),c=x[Xa("0x10f")]&&r[Xa("0xbb")](x[Xa("0x10f")])?null:r[Xa("0x12b")](x,Xa("0x140")),l=t[Xa("0x6b")].createRange(a?a.start:i,c?c[Xa("0x97")]:x);t.model[Xa("0x49")]((e=>{this.markDeletion(l);const n=t[Xa("0x6b")].schema[Xa("0x12b")](l[Xa("0x31")]);o.is(Xa("0x5e"))?e[Xa("0x44")](n):o[Xa("0xe7")](n)})),e[Xa("0x3b")]()}),{priority:e.priorities[Xa("0x25")]+10}),t[Xa("0x6b")].on(Xa("0xe"),((e,n)=>{const o=n[n[Xa("0x110")]-1];o&&o[Xa("0xfd")]||this[Xa("0x87")]||this[Xa("0xa")].value&&(t[Xa("0x6b")][Xa("0x49")]((()=>{let o=t[Xa("0x6b")][Xa("0xe")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x103")]=o.clone();const s=o.end.nodeBefore,r=t[Xa("0x6b")][Xa("0x11e")];s&&r[Xa("0x6f")](s)&&!r[Xa("0x94")](s)&&(o=t.model.createRange(o[Xa("0x31")],t[Xa("0x6b")][Xa("0x4b")](s,Xa("0x97")))),this[Xa("0x1d")](o)})),e[Xa("0x3b")]())}),{priority:Xa("0xa7")}),this.editor.commands[Xa("0x98")](Xa("0xa4"),this[Xa("0xa")]),this[Xa("0x8e")](Xa("0xa4"));const o=new p(t,this[Xa("0x63")]);t[Xa("0xb2")][Xa("0x98")](Xa("0x55"),o),this[Xa("0x8e")](Xa("0x55"));const s=new C(t,this[Xa("0x63")]);t[Xa("0xb2")].add(Xa("0x7f"),s),this[Xa("0x8e")](Xa("0x7f")),t[Xa("0xb2")][Xa("0x98")](Xa("0x29"),new F(t,o,this[Xa("0x63")])),this[Xa("0x8e")](Xa("0x29")),t.commands[Xa("0x98")](Xa("0xf8"),new F(t,s,this[Xa("0x63")])),this[Xa("0x8e")](Xa("0xf8")),t.commands.add(Xa("0x42"),new U(t,o,this[Xa("0x63")])),this.enableCommand("acceptSelectedSuggestions"),t[Xa("0xb2")][Xa("0x98")]("discardSelectedSuggestions",new U(t,s,this._suggestions)),this[Xa("0x8e")]("discardSelectedSuggestions");const r=t[Xa("0xe8")][Xa("0x36")](Xa("0x3"));this.listenTo(r,Xa("0xd3"),((t,{threadId:e})=>{const n=this[Xa("0x63")].get(e);n&&n[Xa("0xb8")]&&1===n.commentThread[Xa("0x110")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:Xa("0xad")}),this[Xa("0x66")](r,Xa("0x3e"),((t,{threadId:e})=>{const n=this[Xa("0x63")][Xa("0x36")](e);n&&n[Xa("0xb8")]&&!n[Xa("0xb8")][Xa("0x110")]&&this[Xa("0x83")](e,{hasComments:!1})}),{priority:Xa("0xad")})}set[Xa("0x40")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this[Xa("0x12c")]=t}get[Xa("0x40")](){return this._adapter}[Xa("0xf6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0x63")][Xa("0x68")]())t&&!e.isInContent||n[Xa("0x106")](e);return e?n[Xa("0xd0")]((t=>t.toJSON())):n}[Xa("0xcf")](t){const n=this[Xa("0x63")][Xa("0x36")](t);if(!n)throw new e.CKEditorError(Xa("0xe1"),this);return n}[Xa("0x0")](t){return this._suggestions.has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[Xa("0x134")](":"),i=this[Xa("0x63")][Xa("0x36")](n)||this[Xa("0x27")](s,r,n,e,o);if(this[Xa("0xd2")](i),this[Xa("0x26")](i,s,r||null,e),i[Xa("0x9a")]=t[Xa("0x9a")],i[Xa("0x9c")]=!0,o&&o[Xa("0x102")]){const t=o[Xa("0x102")],e=this[Xa("0xbd")](t[Xa("0x37")]);i[Xa("0x58")]=t[Xa("0x9a")],i[Xa("0x96")]=e,i[Xa("0xec")]=!0}else i[Xa("0x58")]=t[Xa("0x9a")];switch(t.data&&(i[Xa("0xd")]=t[Xa("0xd")]),t[Xa("0x104")]&&(i.attributes=t[Xa("0x104")]),this._adapter&&this[Xa("0x12c")].addSuggestion||(i[Xa("0x69")]=!0),this._suggestionState.get(i)){case Xa("0xac"):this[Xa("0xd8")].set(i,Xa("0x18"));break;case Xa("0x2f"):i.isInContent?(this._refreshSuggestionsChain(new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Xa("0xd8")][Xa("0x51")](i,"ready"),this.fire(Xa("0xff"),i)):this[Xa("0xd8")][Xa("0x51")](i,"removed")}return i}[Xa("0x55")](t){this[Xa("0xfd")]((()=>{this[Xa("0x1f")].model[Xa("0x49")]((()=>{for(const e of t[Xa("0x10d")]())e[Xa("0x107")]()}))}))}[Xa("0x7f")](t){this[Xa("0xfd")]((()=>{this[Xa("0x1f")][Xa("0x6b")][Xa("0x49")]((()=>{for(const e of t[Xa("0x10d")]())e[Xa("0x33")]()}))}))}[Xa("0x8e")](t,n){const o=this[Xa("0x1f")].commands[Xa("0x36")](t);if(!o)throw new e.CKEditorError(Xa("0xe6"),this,{commandName:t});this[Xa("0x12e")][Xa("0x98")](o),n&&o.on("execute",((t,e)=>{this[Xa("0xa")][Xa("0x118")]&&(this._isForcedDefaultExecutionBlock||e[Xa("0x110")]>0&&e[e[Xa("0x110")]-1]&&e[e[Xa("0x110")]-1][Xa("0xfd")]||(t[Xa("0x103")]=n(((...t)=>o[Xa("0x93")](...t,{forceDefaultExecution:!0})),...e),t[Xa("0x3b")]()))}),{priority:Xa("0xa7")})}[Xa("0xfd")](t){let n,o;const s=this._isForcedDefaultExecutionBlock;this[Xa("0x87")]=!0;try{n=t()}catch(t){o=t}return s||(this[Xa("0x87")]=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0x1d")](t,n=null,o={}){if(t[Xa("0x8d")])return null;const s=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")](Xa("0x9")).me;for(const{suggestion:e,meta:s}of this[Xa("0x10e")](t,"insertion"))if(s[Xa("0x12")]){if(!s[Xa("0x5d")]){if(s.containsRangeInObject){if(!this[Xa("0x117")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this[Xa("0x76")](e,t[Xa("0x31")],t[Xa("0x97")]);break}if(n==e[Xa("0xb0")]&&rc(e,o)){const n=e[Xa("0xb7")]();return n[Xa("0x31")][Xa("0x9d")](t[Xa("0x97")])?this._setSuggestionRange(e,this[Xa("0xa3")].createRange(t.start,n.end)):this._setSuggestionRange(e,this[Xa("0xa3")][Xa("0xef")](n.start,t[Xa("0x97")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0xb4")+n:Xa("0xed"),a=this[Xa("0x8")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xf4")](x,r,i,t),a}markMultiRangeInsertion(t,n=Xa("0x56"),o={}){const s=this[Xa("0x1f")].plugins.get(Xa("0x9")).me,r=this._suggestionFactory[Xa("0x113")](Xa("0xed"),n,Xa("0x89"));for(const e of this[Xa("0xf6")]())if(e.author.id==s.id&&Xa("0xed")==e.type&&e[Xa("0xb0")]==n&&rc(e,o)&&(r(e[Xa("0x3c")](),t)||r(t,e[Xa("0x3c")]()))){for(const n of t)e[Xa("0x120")](n);return e}for(const{suggestion:e,meta:n}of this[Xa("0x10e")](t,Xa("0xed"))){if(!n[Xa("0x12")])continue;if(!this[Xa("0x117")]&&n[Xa("0xd5")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x101")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0xb4")+n,c=this[Xa("0x8")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[Xa("0xf4")](a,i,x,e,Zo[Xa("0x52")]());return c}markInlineFormat(t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0x8d")])return null;if("never"===this[Xa("0xa0")]){const e=this[Xa("0xae")].getSuggestionCallback(Xa("0x50"),o,Xa("0x107"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")](Xa("0x9")).me,i=[];if(Xa("0x53")!==this[Xa("0xa0")])for(const{suggestion:e,meta:n}of this[Xa("0x10e")](t,Xa("0xed")))n[Xa("0x12")]&&!n[Xa("0x39")]&&i.push(...e[Xa("0x3c")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0x106")](e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[Xa("0x110")];){const o=n[e].getDifference(t);n[Xa("0x95")](e,1,...o),e+=o.length}}return n}(t,i);x[Xa("0x110")]&&this[Xa("0xa3")][Xa("0x49")]((()=>{for(const t of x){const e=this._suggestionFactory.getSuggestionCallback("formatInline",o,Xa("0x107"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0x31")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0x50"))){if(!n[Xa("0x12")])continue;if(e[Xa("0xb0")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0xb7")]();if(r[Xa("0x101")](t,!0))return null;x=x[Xa("0x11c")](r[Xa("0x31")])?x:r[Xa("0x31")],a=a[Xa("0x81")](r.end)?a:r[Xa("0x97")],i?r[Xa("0x31")][Xa("0x11c")](i[Xa("0xb7")]().start)?(i[Xa("0x13e")](),i=e):e[Xa("0x13e")]():i=e}const c=this[Xa("0xa3")][Xa("0xef")](x,a);if(i)this[Xa("0xbc")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x8")]({id:t,type:Xa("0x122")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker(Xa("0x122")+o,t,i,c)}}return null}[Xa("0xc7")](t,n,o=[],s=null,r={}){n[Xa("0x7e")]||(n.formatGroupId=n[Xa("0x75")]),n[Xa("0x127")]=t.is("range"),s=s||tc(n);const i=o[Xa("0xd0")]((t=>nc(t,this._model))),x=t.is(Xa("0x135"))?t:nc(t,this[Xa("0xa3")]);if(Xa("0x71")===this._trackFormatChanges){const t=this._suggestionFactory[Xa("0x113")](Xa("0x7d"),s,Xa("0x107"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i[Xa("0x106")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[Xa("0xa0")]){const t=this._suggestionFactory[Xa("0x113")](Xa("0x7d"),s,Xa("0x107"));return this[Xa("0xfd")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x31")],d=x.end;for(const{suggestion:t,meta:e}of this[Xa("0x10e")](x,Xa("0x7d"))){if(!e.isOwn)continue;if(e.isNextTo||e[Xa("0xd5")]||e[Xa("0x39")])continue;if(t[Xa("0xd")][Xa("0x7e")]!=n[Xa("0x7e")])continue;if(!rc(t,r))continue;const o=t[Xa("0xb7")]();if(t[Xa("0xb0")]==s){if(o[Xa("0x101")](x,!0))return null;l=l.isBefore(o[Xa("0x31")])?l:o.start,d=d[Xa("0x81")](o.end)?d:o[Xa("0x97")],c?o[Xa("0x31")][Xa("0x11c")](c.getFirstRange()[Xa("0x31")])?(c[Xa("0x13e")](),c=t):t[Xa("0x13e")]():c=t}else{const e=x[Xa("0xc8")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[Xa("0x1f")].plugins[Xa("0x36")](Xa("0x9")).me,g=(0,e.uid)(),m=u.id;if(c)return this._setSuggestionRange(c,this[Xa("0xa3")][Xa("0xef")](l,d)),c;{const t=this[Xa("0x8")]({id:g,type:"formatBlock:"+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0xf4")](Xa("0x11d")+s,g,m,this._model[Xa("0xef")](l,d)),t}}[Xa("0xbf")](t,n,o=[],s=null,r={}){n[Xa("0x7e")]||(n[Xa("0x7e")]=n.commandName);const i=t[0];n[Xa("0x127")]=i.is(Xa("0x135")),s=s||tc(n);const x=o.map((t=>nc(t,this._model))),a=i.is(Xa("0x135"))?t:t[Xa("0xd0")]((t=>nc(t,this[Xa("0xa3")])));if(Xa("0x71")===this[Xa("0xa0")]){const t=this[Xa("0xae")][Xa("0x113")](Xa("0x7d"),s,"accept");return this[Xa("0xfd")]((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[Xa("0x62")](t)){c=!1;break}if(c&&Xa("0x53")!==this[Xa("0xa0")]){const t=this._suggestionFactory.getSuggestionCallback("formatBlock",s,Xa("0x107"));return this[Xa("0xfd")]((()=>t(a,n,r))),null}const l=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")](Xa("0x9")).me;for(const t of this[Xa("0xf6")]()){if(t[Xa("0x96")].id!=l.id)continue;if(Xa("0x7d")!=t[Xa("0x1b")]||t[Xa("0xd")].formatGroupId!=n[Xa("0x7e")])continue;if(!rc(t,r))continue;const e=t[Xa("0xb0")]==s;for(let n=0;n<a[Xa("0x110")];n++){const o=a[n];for(const s of t[Xa("0x125")]()){const r=s[Xa("0x4a")]();if(o[Xa("0x9d")](r)){e?(a[Xa("0x95")](n,1),n--):t[Xa("0xc3")](s.name);break}}}}if(0==a[Xa("0x110")])return null;const d=this[Xa("0xae")].getSuggestionCallback("formatBlock",s,"join");for(const t of this[Xa("0xf6")]())if(t[Xa("0x96")].id==l.id&&"formatBlock"==t[Xa("0x1b")]&&t.data[Xa("0x7e")]==n[Xa("0x7e")]&&t[Xa("0xb0")]==s&&rc(t,r)&&(d(t[Xa("0x3c")](),a)||d(a,t[Xa("0x3c")]()))){for(const e of a)t.addRange(e);return t}const u=(0,e.uid)(),g=l.id,m=Xa("0x11d")+s,f=this[Xa("0x8")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0xf4")](m,u,g,t,Zo[Xa("0x52")]());return f}[Xa("0x13b")](t,n=null,o={}){if(t[Xa("0x8d")])return null;const s=this[Xa("0x1f")].plugins[Xa("0x36")]("Users").me,r=new i.LiveRange(t[Xa("0x31")],t.end);for(const{suggestion:t,meta:e}of this[Xa("0x10e")](r,Xa("0xed")))if(e[Xa("0x12")]&&!e[Xa("0x5d")])if(t[Xa("0x20")]){const e=t[Xa("0x3c")]()[Xa("0xd4")]((t=>"$graveyard"!=t[Xa("0xa8")][Xa("0xb")]));if(e[Xa("0x17")]((t=>r[Xa("0x101")](t,!0)))&&t[Xa("0x33")](),e.some((t=>t[Xa("0x101")](r,!0)))){const t=this._suggestionFactory.getSuggestionCallback("deletion",n,"accept");return this[Xa("0xfd")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0xc8")](t[Xa("0xb7")]());null!==e&&t[Xa("0x114")]([e],null,o)}if(r[Xa("0x5")](),r[Xa("0x8d")]||"$graveyard"==r.root.rootName)return null;let x=null,a=r[Xa("0x31")],c=r[Xa("0x97")];const l=this[Xa("0x10e")](r,Xa("0x13f"));for(const{suggestion:t,meta:e}of l){const n=this._model[Xa("0xef")](a,c);if(e.isOwn&&(this[Xa("0x117")]||!e[Xa("0xd5")]&&!e.isInsideObject))if(t[Xa("0x20")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0x3c")]()){if(o[Xa("0x101")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t[Xa("0x33")]()}else{const e=t[Xa("0xb7")]();if(e.containsRange(n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t[Xa("0x13e")]():e[Xa("0x32")](a)?a=e[Xa("0x97")]:e.containsPosition(c)&&(c=e[Xa("0x31")]);continue}a=a[Xa("0x11c")](e[Xa("0x31")])?a:e[Xa("0x31")],c=c.isAfter(e[Xa("0x97")])?c:e[Xa("0x97")],o=Object.assign({},t[Xa("0x104")]),x?e[Xa("0x31")][Xa("0x11c")](x[Xa("0xb7")]()[Xa("0x31")])?(x[Xa("0x13e")](),x=t):t.removeMarkers():x=t}}if(x)return this._setSuggestionRange(x,this._model[Xa("0xef")](a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0xa3")][Xa("0xef")](a,c),i=s.id,x=n?Xa("0x10")+n:Xa("0x13f"),l=this[Xa("0x8")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0xf4")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")](Xa("0x9")).me,r=t[Xa("0xd0")]((t=>new i.LiveRange(t[Xa("0x31")],t[Xa("0x97")]))),x=new Set;for(const{suggestion:t,meta:e}of this[Xa("0x10e")](r,Xa("0xed")))e[Xa("0x12")]&&!e.isNextTo&&x.add(t);for(const e of x)if(e[Xa("0x20")]){const s=e[Xa("0x3c")]();if((!e[Xa("0x104")]||!e.attributes[Xa("0xf7")])&&s[Xa("0x17")]((t=>r[Xa("0x90")]((e=>e.containsRange(t,!0)))))&&e[Xa("0x33")](),r[Xa("0x17")]((t=>s[Xa("0x90")]((e=>e[Xa("0x101")](t,!0)))))){const e=this[Xa("0xae")][Xa("0x113")](Xa("0x13f"),n,Xa("0x107"));return this[Xa("0xfd")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[Xa("0x101")](t,!0)))&&e[Xa("0x33")](),r.every((e=>t[Xa("0x101")](e,!0)))){const t=this[Xa("0xae")][Xa("0x113")](Xa("0x13f"),n,Xa("0x107"));return this[Xa("0xfd")]((()=>t(r,null,o))),null}}const a=this[Xa("0xae")][Xa("0x113")]("deletion",n,Xa("0x89"));let c=null;for(const t of this[Xa("0xf6")]())if(t[Xa("0x96")].id==s.id&&t[Xa("0x4f")]&&Xa("0x13f")==t[Xa("0x1b")]&&t[Xa("0xb0")]==n&&rc(t,o)&&(a(t[Xa("0x3c")](),r)||a(r,t[Xa("0x3c")]())))if(c){if(t.commentThread&&t[Xa("0xb8")].length)continue;for(const e of t[Xa("0x3c")]())c[Xa("0xea")](e)||c[Xa("0x120")](e);t[Xa("0x13e")]()}else{c=t;for(const e of r)t[Xa("0xea")](e)||t[Xa("0x120")](e)}if(c)return c;x[Xa("0x1a")]();for(const{suggestion:t,meta:e}of this[Xa("0x10e")](r,Xa("0x13f")))e.isOwn&&(this._mergeNestedSuggestions||!e[Xa("0xd5")]&&!e[Xa("0x39")])&&rc(t,o)&&x[Xa("0x98")](t);for(const t of x){const e=t[Xa("0x3c")]();if((!o||!o[Xa("0xf7")])&&r.every((t=>e.some((e=>e.containsRange(t,!0))))))return t;(!t.attributes||!t[Xa("0x104")][Xa("0xf7")])&&e[Xa("0x17")]((t=>r[Xa("0x90")]((e=>e.containsRange(t,!0)))))&&t[Xa("0x33")]()}const l=(0,e.uid)(),d=s.id,u=Xa("0x10")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t.detach(),t[Xa("0x8d")]||"$graveyard"==t.root[Xa("0xb")]||this[Xa("0xf4")](u,l,d,t,Zo[Xa("0x52")]());return g}[Xa("0xbc")](t,e){const n=t[Xa("0x132")]();this[Xa("0xa3")][Xa("0x49")]((t=>{t[Xa("0x121")](n,{range:e})}))}_addThreadToSuggestion(t){const e=t.id,n=this[Xa("0x1f")][Xa("0xc0")].get(Xa("0xe3"));this[Xa("0x2e")][Xa("0x85")](e)||this[Xa("0x2e")][Xa("0x15")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x2e")][Xa("0x84")](e);o[Xa("0x5f")]("isRemovable"),o[Xa("0x70")]=!1,t[Xa("0xb8")]=o}[Xa("0x26")](t,n,o,s){if(t[Xa("0x1b")]!=n||t[Xa("0xb0")]!=o||t[Xa("0x34")].id!=s)throw this.editor.enableReadOnlyMode("track-changes-suggestion-data-mismatch"),new e.CKEditorError("track-changes-suggestion-data-mismatch",this)}_cutOutSuggestionMarker(t,n){const o=t.getFirstRange();if(n[Xa("0x9d")](o))t[Xa("0x13e")]();else if(o[Xa("0x101")](n)){const s=this._model[Xa("0x4b")](n[Xa("0x31")][Xa("0x10f")],Xa("0x97"));this[Xa("0xbc")](t,this._model.createRange(o[Xa("0x31")],s));const r=(0,e.uid)(),i=t[Xa("0x34")].id,x=t[Xa("0x1b")]+":"+t[Xa("0xb0")];this[Xa("0x8")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0xd")],attributes:t.attributes});const a=this[Xa("0xa3")][Xa("0x4b")](n[Xa("0x97")].parent,Xa("0x80")),c=this[Xa("0xa3")][Xa("0xef")](a,o[Xa("0x97")]);this[Xa("0xf4")](x,r,i,c)}else if(o.containsPosition(n[Xa("0x31")])){const e=this._model.createPositionAt(n.start[Xa("0x10f")],Xa("0x97"));this[Xa("0xbc")](t,this[Xa("0xa3")][Xa("0xef")](o[Xa("0x31")],e))}else{const e=this[Xa("0xa3")].createPositionAt(n[Xa("0x97")][Xa("0x2c")],Xa("0x80"));this[Xa("0xbc")](t,this[Xa("0xa3")][Xa("0xef")](e,o.end))}}_rangeIsInLocalUserInsertion(t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xed"))){if(!n[Xa("0x12")])continue;const o=e[Xa("0x3c")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[Xa("0xa9")](t){const n=this.editor[Xa("0xe8")].get("Users").getUser(t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}_getExternalAuthor(t){const e=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")](Xa("0x9")),n=(0,r.hashObject)(Xa("0x10c")+t);return e[Xa("0xa1")](n)||e[Xa("0x7")]({id:n,name:t})}[Xa("0x27")](t,e,n,o,s){const r=this[Xa("0xa9")](o),i=this[Xa("0xae")].buildSuggestion(t,e,n,r,s,(t=>this[Xa("0x83")](n,{attributes:t})));return this[Xa("0x66")](i,Xa("0x107"),(()=>{this[Xa("0x83")](n,{state:Xa("0x67")})}),{priority:Xa("0xa7")}),this.listenTo(i,Xa("0x33"),(()=>{this._updateSuggestionData(n,{state:Xa("0x6d")})}),{priority:"high"}),this[Xa("0x63")][Xa("0x51")](n,i),this[Xa("0xd8")][Xa("0x51")](i,Xa("0xac")),i}_splitMarkerName(t){const e=t[Xa("0x134")](":");return{group:e[0],type:e[1],subType:e[Xa("0x110")]>=5?e[2]:null,id:e[Xa("0x110")]<5?e[2]:e[3],authorId:e[Xa("0x110")]<5?e[3]:e[4],markerCount:6==e[Xa("0x110")]?e[5]:null}}[Xa("0x76")](t,n,o){const s=t[Xa("0xb7")](),r=s[Xa("0x31")],i=s[Xa("0x97")];this[Xa("0xbc")](t,this[Xa("0xa3")][Xa("0xef")](r,n));const x=(0,e.uid)(),a=t[Xa("0x34")].id,c=t[Xa("0x1b")]+(t[Xa("0xb0")]?":"+t[Xa("0xb0")]:"");this[Xa("0x8")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[Xa("0x104")],data:t[Xa("0xd")]}),Xa("0x7d")==t[Xa("0x1b")]&&(o=this[Xa("0xa3")].createPositionBefore(o.parent)),this._addSuggestionMarker(c,x,a,this._model[Xa("0xef")](o,i))}[Xa("0x10e")](t,e=null){const n=[],o=this[Xa("0x1f")][Xa("0xe8")][Xa("0x36")]("Users").me;Array.isArray(t)||(t=[t]);for(const s of this[Xa("0xf6")]()){if(!s[Xa("0x4f")])continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s[Xa("0x3c")]()){for(const i of t){const t=i[Xa("0x31")].isEqual(e[Xa("0x97")])||i[Xa("0x97")][Xa("0x9d")](e[Xa("0x31")]);if(t||i[Xa("0xc8")](e)){const x=i[Xa("0x101")](e)&&Qa(this[Xa("0xa3")][Xa("0x11e")],e.start,i),a=e[Xa("0x101")](i)&&Qa(this[Xa("0xa3")][Xa("0x11e")],i[Xa("0x31")],e);n[Xa("0x106")]({suggestion:s,meta:{isOwn:o==s.author,isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}_addSuggestionMarker(t,e,n,o,s){this[Xa("0xa3")][Xa("0x49")]((r=>{let i=Xa("0x13d")+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0xee")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0xce")](t){const e=t[Xa("0x3a")],n=t[Xa("0xdf")];t[Xa("0x3a")]=null,null!=e&&(e[Xa("0xdf")]=null),t[Xa("0xdf")]=null,null!=n&&(n[Xa("0x3a")]=null),Xa("0xf5")==this[Xa("0xd8")][Xa("0x36")](t)&&(this[Xa("0xd8")][Xa("0x51")](t,"removed"),this[Xa("0xc1")](Xa("0x141"),t,e,n))}[Xa("0x8")](t){const n=t.id,o=this.addSuggestionData(t);if(this[Xa("0x12c")]&&this[Xa("0x12c")][Xa("0x129")]){const s=this[Xa("0x1f")].plugins[Xa("0x36")](Xa("0xcd")),r=o[Xa("0x133")],i=o[Xa("0xb0")]?o.type+":"+o.subType:o.type,x=this[Xa("0x1f")][Xa("0x54")],a=s[Xa("0x98")](Yo(x,Xa("0xf0"))),c={id:n,type:i,hasComments:r,data:t[Xa("0xd")]||null,originalSuggestionId:t.originalSuggestionId||null,attributes:o[Xa("0x104")]};this[Xa("0x12c")][Xa("0x129")](c).then((t=>{o[Xa("0x69")]=!0,s.remove(a),t&&t.createdAt&&(this._suggestions.get(n)[Xa("0x9a")]=t.createdAt)}))[Xa("0xfa")]((t=>{throw(0,e.logWarning)(Xa("0x10a")),this.editor[Xa("0x6b")][Xa("0x45")]({isUndoable:!1},(()=>{o[Xa("0x33")]()})),o.stopListening(),this[Xa("0x63")].delete(o.id),this[Xa("0xd8")][Xa("0x8c")](o),t}))}return o}[Xa("0x83")](t,e){const n=this.editor[Xa("0xe8")][Xa("0x36")](Xa("0xcd")),o=this[Xa("0xcf")](t);if(this._adapter&&this[Xa("0x12c")][Xa("0xdd")])if(o[Xa("0x69")]){const o=n[Xa("0x98")](Yo(this[Xa("0x1f")][Xa("0x54")],Xa("0xf0")));this[Xa("0x12c")][Xa("0xdd")](t,e)[Xa("0xfb")]((()=>{n[Xa("0x4e")](o)}))}else o.on(Xa("0x5c"),(()=>{this[Xa("0x83")](t,e)}))}[Xa("0xf")](t){if(!this._adapter||!this[Xa("0x12c")][Xa("0xcf")])throw new e.CKEditorError(Xa("0xc"),this);return this[Xa("0x12c")][Xa("0xcf")](t)}_handleNewSuggestionMarker(t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0x115")](t),r=this._suggestions[Xa("0x36")](e)||this[Xa("0x27")](n,o,e,s,{});switch(this[Xa("0x26")](r,n,o,s),this[Xa("0xd8")][Xa("0x36")](r)){case Xa("0xac"):this[Xa("0xf")](e)[Xa("0xfb")]((t=>{let n=Promise.resolve();t[Xa("0x133")]&&(n=this[Xa("0x2e")][Xa("0xe2")]({channelId:this[Xa("0x1f")].config[Xa("0x36")](Xa("0xe3")),threadId:e})),n.then((()=>{this[Xa("0x108")](t)._saved=!0}))})),this[Xa("0xd8")][Xa("0x51")](r,Xa("0x2f"));break;case Xa("0xfe"):this[Xa("0x83")](e,{state:Xa("0x41")});case Xa("0x18"):this[Xa("0xd8")][Xa("0x51")](r,Xa("0xf5")),this[Xa("0xc1")](Xa("0xff"),r);break;case Xa("0xf5"):this[Xa("0xc1")](Xa("0x91"),r)}return r[Xa("0xb1")](t),r}_refreshSuggestionsChain(t){const e=Array[Xa("0x99")](t)[Xa("0xd4")]((t=>!t[Xa("0x20")])),n=this[Xa("0xf6")]({skipNotAttached:!0})[Xa("0xd4")]((t=>!t[Xa("0x20")])),o=n[Xa("0xd4")]((e=>!t[Xa("0xdb")](e))),s=new Map(n.map((t=>[t,this[Xa("0xae")].getSuggestionCallback(t[Xa("0x1b")],t.subType,Xa("0xd9"))]))),r=new Map(n[Xa("0xd0")]((t=>[t,t[Xa("0xb7")]()]))),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("0x110")];t++)a(e[t],o,0);for(let t=0;t<e.length;t++){const n=e[t];!x[Xa("0xdb")](n)&&n[Xa("0x3a")]&&(n[Xa("0x3a")][Xa("0xdf")]===n&&(n[Xa("0x3a")][Xa("0xdf")]=null),n.previous=null),!i[Xa("0xdb")](n)&&n[Xa("0xdf")]&&(n[Xa("0xdf")].previous===n&&(n[Xa("0xdf")][Xa("0x3a")]=null),n[Xa("0xdf")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x110")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0xdf")]=n[1],n[1].previous=n[0],i[Xa("0x98")](n[0]),x.add(n[1]))}}function c(t,e){if(t[Xa("0x96")].id!==e[Xa("0x96")].id)return null;const n=s[Xa("0x36")](t)(t,e,r[Xa("0x36")](t),r[Xa("0x36")](e));return n&&s[Xa("0x36")](e)(t,e,r[Xa("0x36")](t),r[Xa("0x36")](e))?n[1].commentThread&&n[1].commentThread[Xa("0x110")]?null:n:null}}[Xa("0xf9")](t){const e=Array[Xa("0x99")](t),n=this[Xa("0xf6")]({skipNotAttached:!0}),o=n[Xa("0xd4")]((e=>!t.has(e))),s=new Map(e[Xa("0xd0")]((t=>[t,this._suggestionFactory[Xa("0x113")](t.type,t[Xa("0xb0")],Xa("0x89"))]))),r=new Map(n[Xa("0xd0")]((t=>[t,t[Xa("0x3c")]()])));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("0x110")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n.length;i++){const o=n[i];if(o[Xa("0x1b")]!==e[Xa("0x1b")]||o[Xa("0x96")].id!==e[Xa("0x96")].id||o[Xa("0xb0")]!==e.subType)continue;if(!sc(e,o))continue;const x=s[Xa("0x36")](e),a=r.get(e),c=r[Xa("0x36")](o),l=e[Xa("0xb8")]&&e.commentThread[Xa("0x110")],d=o[Xa("0xb8")]&&o[Xa("0xb8")][Xa("0x110")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[Xa("0x8c")](e),!0;if(!d&&x(a,c))return t._joinSuggestions(e,o),r.delete(o),!0}return!1}}[Xa("0x24")](t,e){if(t[Xa("0x20")])for(const n of e[Xa("0x3c")]())t[Xa("0x120")](n);else{const n=e.getFirstRange()[Xa("0x97")];this[Xa("0xbc")](t,this[Xa("0xa3")][Xa("0xef")](t.getFirstRange().start,n))}e.removeMarkers()}}class Ja{constructor(t){this[Xa("0xeb")]=t,this[Xa("0xa3")]=t[Xa("0x6b")],this[Xa("0x3d")]=new Map,this[Xa("0x11b")]=new Map,this._registerDefaultCallbacks()}[Xa("0xb9")](t,e,n,o,s,r){return new Zo(this._model,{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Xa("0x107"))(...n),onDiscard:(...n)=>this[Xa("0x113")](t,e,Xa("0x33"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[Xa("0x51")](s,o)}[Xa("0x113")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[Xa("0x36")](o)||this[Xa("0x11b")].get(t+":"+n)}_registerDefaultCallbacks(){const t=()=>!1,e=t=>{t[Xa("0x126")](((t,e)=>t[Xa("0x31")][Xa("0x11c")](e[Xa("0x31")])?1:-1)),this[Xa("0xa3")][Xa("0x49")]((e=>{for(const n of t){let t;t=n.end[Xa("0xb5")]&&n[Xa("0x97")][Xa("0x2c")]==n[Xa("0x31")][Xa("0xf2")]?e[Xa("0x82")](n.start[Xa("0xf2")],"on"):e[Xa("0x82")](n),this[Xa("0xa3")][Xa("0x2d")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0xa3")][Xa("0x49")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0xd0")]((t=>(Za(t)&&(t=this[Xa("0xa3")][Xa("0xef")](t[Xa("0x97")])),t)))[Xa("0xd4")]((t=>Xa("0x72")!==t.root[Xa("0xb")]));if(r[Xa("0x110")]<1)return;const x=Array[Xa("0x99")](this._model.document.selection[Xa("0x3c")]())[Xa("0xd0")]((t=>i.LiveRange[Xa("0x2a")](t)));n[Xa("0x44")](r);for(const t of this._editor[Xa("0xb2")][Xa("0xb2")]())t[Xa("0xab")]();s[Xa("0x106")]({forceDefaultExecution:!0}),this._editor.execute(o,...s);const a=x[Xa("0xd4")]((t=>Xa("0x72")!=t[Xa("0xa8")][Xa("0xb")]));a[Xa("0x110")]>0&&n.setSelection(a);for(const t of x)t[Xa("0x5")]()}))},o=(t,e)=>1==t.length&&1==e[Xa("0x110")]&&t[0].end[Xa("0x9d")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this._model)?[t,e]:oc(e,t,o,n,this[Xa("0xa3")])?[e,t]:null;this._defaultCallbacks[Xa("0x51")](Xa("0x130"),t),this[Xa("0x11b")][Xa("0x51")]("insertion:discard",e),this[Xa("0x11b")].set(Xa("0x5b"),o),this._defaultCallbacks[Xa("0x51")](Xa("0xc2"),s),this[Xa("0x11b")].set(Xa("0xa6"),e),this[Xa("0x11b")][Xa("0x51")]("deletion:discard",t),this[Xa("0x11b")][Xa("0x51")]("deletion:join",o),this[Xa("0x11b")][Xa("0x51")](Xa("0xcb"),s),this[Xa("0x11b")].set(Xa("0x1"),n),this._defaultCallbacks[Xa("0x51")](Xa("0x1c"),t),this[Xa("0x11b")][Xa("0x51")](Xa("0x16"),o),this._defaultCallbacks[Xa("0x51")](Xa("0x21"),t),this[Xa("0x11b")][Xa("0x51")](Xa("0x5a"),n),this._defaultCallbacks.set(Xa("0x112"),t),this[Xa("0x11b")].set(Xa("0x4"),o),this._defaultCallbacks.set(Xa("0xe4"),t)}}function Qa(t,e,n){for(const o of e[Xa("0x2c")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[Xa("0xa8")]==o)return!1;if(!n[Xa("0x11f")](o))return!1;if(t.isObject(o)||t[Xa("0xbb")](o))return!0}return!1}function Za(t){return t[Xa("0x97")][Xa("0x2c")]==t[Xa("0x31")][Xa("0xf2")]&&t[Xa("0x97")].isAtStart}function Ya(t,e,n,o){const s=t=>!t[Xa("0x142")].is(Xa("0x9b"))&&!o[Xa("0x94")](t[Xa("0x142")]),r=t[Xa("0x31")][Xa("0xf1")](s),i=t[Xa("0x97")].getLastMatchingPosition(s,{direction:Xa("0x140")});return!(t[Xa("0x31")].isEqual(r)&&t[Xa("0x97")].isEqual(i)||(r[Xa("0x11c")](i)?n.updateMarker(e,{range:n[Xa("0xef")](r,i)}):n[Xa("0xc3")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0x31")][Xa("0xf2")];return e&&e.is(Xa("0xde"))}function nc(t,e){const n=e[Xa("0x11e")][Xa("0x94")](t)||e.schema.isSelectable(t);return e[Xa("0xef")](e[Xa("0x4b")](t,"before"),n?e[Xa("0x123")](t):e[Xa("0x4b")](t,"end"))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n[Xa("0x97")].isEqual(o[Xa("0x31")]))return!0;if(t[Xa("0x1b")]!=e[Xa("0x1b")])return!1;if(!n[Xa("0x97")][Xa("0xb6")](o[Xa("0x31")]))return!1;const r=s[Xa("0xef")](n[Xa("0x97")],o[Xa("0x31")])[Xa("0x2")]();for(const t of r)if([Xa("0x4c"),Xa("0x128")].includes(t[Xa("0x1b")])&&s[Xa("0x11e")].isLimit(t.item))return!1;return!0}function sc(t,e){return!(!t[Xa("0x9c")]||!e[Xa("0x9c")])&&Go(t[Xa("0x104")],e[Xa("0x104")])}function rc(t,e){const n=ic(t[Xa("0x104")]),o=ic(e);if(!t._isDataLoaded)return!1;for(const t of Object[Xa("0x22")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0xbe")]({},t);return delete e[Xa("0xf7")],delete e[Xa("0xaa")],e}const xc=["execute","commentThreadController","stopListening","listenTo","destroy","_editor","_discardCommand","remove","isEnabled","acceptSuggestion","canDiscard","_removePendingAction","view","canAccept","PendingActions","canEditAt","unbind","commands","getRanges","_acceptCommand","add","change:isDirty","_setPendingAction","model","locale","plugins","discardSuggestion","get","_pendingAction","PENDING_ACTION_SUGGESTION"];var ac,cc;ac=xc,cc=180,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("0x17")]=e,this[lc("0xc")]=n,this[lc("0x1")]=o,this[lc("0x5")]=t,this[lc("0x13")]=t[lc("0x11")].get(lc("0x9")),this[lc("0x6")]=t[lc("0x11")].get("discardSuggestion"),this[lc("0xc")].bind(lc("0x8")).to(this._acceptCommand,this[lc("0x6")],((t,e)=>t||e)),this[lc("0xc")].bind(lc("0xd")).to(this[lc("0x13")],"isEnabled",(t=>t&&this._editor[lc("0x17")][lc("0xf")](e[lc("0x12")]()))),this[lc("0xc")].bind(lc("0xa")).to(this._discardCommand,"isEnabled",(t=>t&&this[lc("0x5")][lc("0x17")][lc("0xf")](e.getRanges()))),this[lc("0x1c")]=null,n.isDirty&&this._setPendingAction(),this[lc("0x3")](n,lc("0x9"),(()=>this.acceptSuggestion())),this.listenTo(n,lc("0x1a"),(()=>this[lc("0x1a")]())),this.listenTo(n,lc("0x15"),(()=>{n.isDirty?this[lc("0x16")]():this[lc("0xb")]()}))}acceptSuggestion(){this[lc("0x13")][lc("0x0")](this.model.id)}[lc("0x1a")](){this[lc("0x6")][lc("0x0")](this[lc("0x17")].id)}[lc("0x4")](){this[lc("0xc")][lc("0x10")](lc("0x8")),this.view[lc("0x10")](lc("0xd")),this[lc("0xc")][lc("0x10")](lc("0xa")),this[lc("0x2")](),this[lc("0x1")][lc("0x4")](),this[lc("0x1c")]&&this[lc("0xb")]()}[lc("0x16")](){const t=Yo(this[lc("0x5")][lc("0x18")],lc("0x1d"));this[lc("0x1c")]=this[lc("0x5")][lc("0x19")][lc("0x1b")](lc("0xe"))[lc("0x14")](t)}_removePendingAction(){null!==this[lc("0x1c")]&&this[lc("0x5")][lc("0x19")].get(lc("0xe"))[lc("0x7")](this[lc("0x1c")]),this[lc("0x1c")]=null}}const uc=["locale","focus","CommentView","hasDirtyComment","_config","canAccept","commentThreadInputView","editorConfig","updateComment","set","isReadOnly","length","commentInputView","authoredAt","setData","commentsListView","commentThread","removeComment","submit","assign","showInput","isActive","canDiscard","element","isDirty","destroy","_model","_localUser","value","bind","disableComments","editor","_createCommentThreadInputView","addComment","delegate","fire"];var gc,mc;gc=uc,mc=458,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("0x19")]=null,this[fc("0x10")]=null,this[fc("0x13")](fc("0x1f"),!1),this[fc("0x13")](fc("0x17"),e[fc("0x17")]),this[fc("0x3")]("authoredAt").to(e),this[fc("0x13")]("descriptionParts",[]),this.set(fc("0x22"),!1),this[fc("0x13")]("isEnabled",!1),this.set(fc("0xf"),!1),this[fc("0x13")](fc("0x20"),!1),this[fc("0x0")]=e,this[fc("0x1")]=n,this[fc("0xe")]=o,o[fc("0x4")]?this[fc("0x13")](fc("0x15"),1):this._createCommentViews()}[fc("0xb")](){this[fc("0x21")][fc("0xb")]()}[fc("0x23")](){this.commentsListView&&this.commentsListView[fc("0x23")](),this[fc("0x10")]&&this[fc("0x10")][fc("0x23")](),super[fc("0x23")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0xe")];this[fc("0x19")]=new t(this[fc("0xa")],this[fc("0x0")][fc("0x1a")],Object[fc("0x1d")]({CommentView:this._config[fc("0xc")]},this[fc("0xe")])),this[fc("0x19")][fc("0x8")](fc("0x1b")).to(this),this.commentsListView.delegate(fc("0x12")).to(this),this[fc("0x19")][fc("0x3")]("isActive").to(this),this[fc("0x13")](fc("0x15"),this.commentsListView[fc("0x15")]+1),this[fc("0x3")](fc("0x15")).to(this[fc("0x19")],fc("0x15"),(t=>t+1)),this[fc("0x10")]=this[fc("0x6")](),this.on("removeComment",(()=>this[fc("0xb")]())),this[fc("0x3")]("isDirty").to(this.commentsListView,fc("0xd"),this[fc("0x10")][fc("0x16")],fc("0x2"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[fc("0xe")],e=new t(this[fc("0xa")],this[fc("0x1")],this[fc("0xe")][fc("0x11")]),n=e[fc("0x16")];return e[fc("0x3")](fc("0x1e")).to(this,"isActive",this[fc("0x0")][fc("0x1a")],fc("0x14"),n,fc("0x2"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x1c"),((t,e)=>{this[fc("0x9")](fc("0x7"),e),n[fc("0x5")][fc("0x18")]("")})),n.on("cancel",(()=>this.focus())),n[fc("0x3")]("disabledSubmit").to(this[fc("0x0")][fc("0x1a")],fc("0x14")),e}}const pc=["</span>","canAccept","Discard suggestion","_config",'<span class="ck-suggestion-color" style="background-color: ',"_model","execute","source","split","ck-comment__external","discardButton","ck-suggestion--disabled-comments","commentThreadInputView","commentsListView","delegate","EXTERNAL_SUGGESTION","locale","querySelector","type","time","bindTemplate","authoredAt","getExternalSuggestionNote","</p>","@external","isEnabled","acceptButton","isExternal","EXTERNAL_IMPORT_WORD_SUGGESTION","acceptSuggestion","ck-suggestion-wrapper","innerText","div","isActive","EXTERNAL_IMPORT_WORD_AVATAR","element","content","editorReady","innerHTML","render","children","name","value","_descriptionElement","ck-annotation__actions",'" title="',"disableComments","bind","formatDateTime",'"></span>',"_createButton","userView","editorDestroyed","ck-annotation__content-wrapper","join","EXTERNAL_AVATAR","ck-annotation__main","ck-annotation__user","ck-suggestion--accept","commentThread","descriptionParts","extendTemplate","ck-suggestion--discard","creator","map","Accept suggestion","fire","<p>","getTemplate","setTemplate","discardSuggestion","author","color","change:description","ck-annotation","span","ck-suggestion-","createElement","check","ck-annotation__info-name","set","attributes","importWord","cancel","getUserViewNotificationText"];var bc,Ec;bc=pc,Ec=401,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("0x13")](_c("0x2a"),""),this[_c("0x47")]("type").to(this,_c("0x54"),(t=>t&&t[0]?t[0][_c("0x2a")]:"")),this[_c("0x47")]("description").to(this,"descriptionParts",this,_c("0x39"),((t,e)=>{let n="";for(const e of t)n+=_c("0x6")+Cc(e[_c("0x3c")],e[_c("0xb")])+_c("0x2f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x43")]=null,this.acceptButton=this[_c("0x4a")](Yo(e,_c("0x4")),t.icons[_c("0x11")],_c("0x52"),_c("0x35"),"sw"),this[_c("0x32")].bind(_c("0x31")).to(this,_c("0x19")),this[_c("0x22")]=this[_c("0x4a")](Yo(e,_c("0x1a")),t.icons[_c("0x16")],_c("0x1"),_c("0x9"),"sw"),this[_c("0x22")][_c("0x47")](_c("0x31")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[_c("0x1d")].author,this.getUserViewNotificationText()),this[_c("0x4b")][_c("0x0")]({attributes:{class:["ck-suggestion__user",_c("0x51")]}}),this[_c("0x8")](this[_c("0x7")]())}[_c("0x7")](){const t=this[_c("0x2c")],e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:_c("0xe"),children:[{text:this[_c("0x4b")][_c("0x41")]}],attributes:{class:["ck-suggestion__info-name",_c("0x12")]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x2d")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[_c("0x1b")][_c("0x48")](t)))}]}]},{tag:_c("0x38"),attributes:{class:["ck-suggestion__actions",_c("0x44")]},children:[this[_c("0x32")],this[_c("0x22")]]},{tag:_c("0x38"),attributes:{class:[_c("0x4d")]}}];this[_c("0x1d")].isExternal&&e.push({tag:_c("0x38"),attributes:{class:[_c("0x21")]},children:[{text:this[_c("0x2e")]()}]});const n={tag:_c("0x38"),attributes:{class:[_c("0x36"),t.if(_c("0x39"),"ck-suggestion-wrapper--active"),t.to(_c("0x2a"),(t=>_c("0xf")+t)),this[_c("0x1b")][_c("0x46")]&&_c("0x23")],"data-suggestion-id":this[_c("0x1d")].id,"data-thread-id":this[_c("0x1d")][_c("0x53")].id,"data-author-id":this[_c("0x1d")][_c("0xa")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",_c("0xd")]},children:[this[_c("0x4b")],{tag:"div",attributes:{class:["ck-suggestion__main",_c("0x50")]},children:e}]}]};return this[_c("0x25")]&&this[_c("0x24")]&&(n[_c("0x40")].push(this[_c("0x25")],this.commentThreadInputView),this[_c("0x25")][_c("0x26")](_c("0x3d")).to(this),this[_c("0x25")][_c("0x26")](_c("0x4c")).to(this),this[_c("0x24")][_c("0x26")]("editorReady").to(this),this[_c("0x24")].delegate(_c("0x4c")).to(this)),n}[_c("0x3f")](){super.render(),this[_c("0x43")]=this[_c("0x3b")][_c("0x29")](".ck-annotation__content-wrapper"),this._descriptionElement[_c("0x3e")]=this.description,this.on(_c("0xc"),((t,e,n)=>{this[_c("0x43")].innerHTML=n}))}[_c("0x4a")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x28")]);return i[_c("0x13")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x0")]({attributes:{class:n}}),i.on(_c("0x1e"),(()=>{this[_c("0x5")](o,this[_c("0x1d")].id)})),i}[_c("0x2e")](){return _c("0x15")===this[_c("0x1d")][_c("0x14")][_c("0x30")][_c("0x1f")]?Yo(this.locale,_c("0x34")):Yo(this[_c("0x28")],_c("0x27"))}[_c("0x17")](){return this[_c("0x1d")][_c("0x33")]?"importWord"===this._model[_c("0x14")][_c("0x30")][_c("0x1f")]?Yo(this.locale,_c("0x3a"),this[_c("0x1d")][_c("0x2")][_c("0x41")]):Yo(this[_c("0x28")],_c("0x4f"),this[_c("0x1d")][_c("0x2")][_c("0x41")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x20")]("*")[_c("0x3")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+yc(t)+_c("0x18"):yc(t)))[_c("0x4e")](""),e&&(n+=_c("0x1c")+e[_c("0x42")]+_c("0x45")+e.title+_c("0x49")),n}function yc(t){const e=document[_c("0x10")]("span");return e[_c("0x37")]=t,e[_c("0x3e")]}const kc=["length","isMultiRange","_refreshActiveMarkers","remove","registerAnnotation","trackChanges.disableComments","requires","source","acceptButton","acceptSelectedSuggestions","head","filter","reduce","_updateController","isInContent","suggestion-","componentFactory","model","getDescriptions","value","push","listenTo","getAllAdjacentSuggestions","commentThread","_handleSuggestionControllerDelayed","_annotationViews","comments.editorConfig","buttonView","getFirstRange","trackChanges.SuggestionThreadView","keys","Discard all selected suggestions","addSourceCollector","button","_handleControllerBuffer","Discard all suggestions","type","getJoined","getByInnerView","trackChanges","addComment","define","_descriptionFactory","getMarkers","_destroyController","arrowView","createAnnotationView","previous","SuggestionThreadView","TrackChangesEditing","Accept all selected suggestions","Accept all suggestions","change:previous","editing","_createUIButton","discardSelectedSuggestions","CommentsRepository","suggestionLoaded","suggestionUnloaded","values","descriptionParts","add","stopListening","from","change:activeAnnotations","bind","some","CommentsUI","innerView","map","size","_initializeController","hasSuggestion","get","discardAllSuggestions","commands","isOn","createAnnotation","refreshSelectedViews","switchbutton","_disableComments","view","Annotations","destroy","comments.maxCommentCharsWhenCollapsed","EditorAnnotations","mainView","set","comments.maxThreadTotalWeight","config","has","separator","init","_viewToController","discardButton","focus","_suggestionToController","_unbindEditors","isEnabled","execute","unbind","lowest","clear","commandName","locale","CommentView","getMarkerNames","editor","delete","_bindAnnotationToEditors","plugins"];var Ac,vc;Ac=kc,vc=350,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("0x64")](){return[$a,r.Users,Rc("0x27"),Rc("0x41"),Rc("0x44")]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x4f")]=new Map,this[Rc("0x4c")]=new Map,this._annotationViews=new Map,this[Rc("0x11")]=new Map;const e=this[Rc("0x5a")][Rc("0x48")];e[Rc("0x18")](Rc("0xc"),Tc),e[Rc("0x18")](Rc("0x63"),!1),this[Rc("0x3f")]=e[Rc("0x38")](Rc("0x63"))}[Rc("0x7")](t,e){0===this[Rc("0x11")][Rc("0x35")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x4f")].has(t);n||e?n&&e&&this[Rc("0x1b")](t):this._initializeController(t)}this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")](Rc("0x44"))[Rc("0x3d")](),this[Rc("0x60")](),this[Rc("0x11")][Rc("0x55")]()}),10),this[Rc("0x11")][Rc("0x46")](t,e)}[Rc("0x4b")](){const t=this[Rc("0x5a")],e=t.plugins[Rc("0x38")]("TrackChangesEditing"),n=t[Rc("0x5d")][Rc("0x38")]("Annotations"),o=t.plugins[Rc("0x38")](Rc("0x44")),s=t[Rc("0x5d")].get(Rc("0x27"));t.ui[Rc("0x6e")][Rc("0x2c")]("trackChanges",(t=>this[Rc("0x25")](t))),o[Rc("0xf")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x2e")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Rc("0x6c")])continue;if(t[Rc("0x5f")]){s[Rc("0x3")](...t.getRanges());continue}const e=t[Rc("0xb")]();if(s[Rc("0x5e")]>0){const t=s[0][Rc("0x14")](e);if(t){s[0]=t;continue}}s[Rc("0x3")](e)}t[Rc("0x3")]([n[Rc("0x40")],s])}return t})),this[Rc("0x4")](e,Rc("0x28"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Rc("0x6b")](s.head),this[Rc("0x7")](e,!1)):(this._updateController(o[Rc("0x68")]),this[Rc("0x7")](e,!0)))})),null===e[Rc("0x1e")]?this[Rc("0x7")](e,!1):this[Rc("0x6b")](e[Rc("0x68")])})),this.listenTo(e,Rc("0x29"),((t,e,n)=>{this[Rc("0x2d")](e,Rc("0x23")),this._handleControllerBuffer[Rc("0x5b")](e);const o=n?n.head:e,s=this[Rc("0x4f")][Rc("0x38")](o);null!==n&&this[Rc("0x6b")](o),null===n&&s&&this[Rc("0x1b")](e)})),this[Rc("0x4")](e,"suggestionChanged",((t,e)=>{this[Rc("0x6b")](e)})),this.listenTo(n,Rc("0x2f"),(()=>{this[Rc("0x60")]()})),this.listenTo(s,Rc("0x17"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x37")](n))return;const s=e.getSuggestion(n);this[Rc("0x4f")][Rc("0x38")](s)[Rc("0x40")][Rc("0x4e")]()}),{priority:Rc("0x54")})}[Rc("0x60")](){const t=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")]("Annotations"),e=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")]("TrackChangesEditing"),n=Array.from(t.activeAnnotations,(t=>t[Rc("0x33")])).filter((t=>this[Rc("0x4c")][Rc("0x49")](t))),o=[];for(const t of n){const e=this[Rc("0x4c")][Rc("0x38")](t)[Rc("0x0")][Rc("0x5")]();o.push(...e[Rc("0x6a")](((t,e)=>[...t,...e[Rc("0x59")]()]),[]))}e.activeMarkers=o}[Rc("0x25")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Rc("0x3a")].get(Rc("0x16")),r=Yo(t,"Track changes");n[Rc("0xa")][Rc("0x46")]({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("0xa")].bind(Rc("0x3b")).to(o,Rc("0x2")),n[Rc("0xa")].on(Rc("0x52"),(()=>{o[Rc("0x52")](),this[Rc("0x5a")].editing.view[Rc("0x4e")]()}));const i=new e.Collection,x=[{type:Rc("0x3e"),model:{withText:!0,label:r,commandName:Rc("0x16")}},{type:Rc("0x4a")},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x22")),commandName:"acceptAllSuggestions"}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0x21")),commandName:Rc("0x67")}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0x12")),commandName:Rc("0x39")}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0xe")),commandName:Rc("0x26")}}];for(const t of x){let e={type:Rc("0x4a")};if(t[Rc("0x0")]){const n=new s.Model(t[Rc("0x0")]),o=this.editor[Rc("0x3a")][Rc("0x38")](n[Rc("0x56")]);n[Rc("0x30")](Rc("0x3b"),"isEnabled").to(o,Rc("0x2"),Rc("0x51")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x69")]((t=>null!=t.model))[Rc("0x34")]((t=>this[Rc("0x5a")][Rc("0x3a")][Rc("0x38")](t.model.commandName))),c=n.buttonView;return c.actionView[Rc("0x53")]("isEnabled"),c[Rc("0x1c")][Rc("0x53")](Rc("0x51")),c.actionView[Rc("0x30")]("isEnabled").to(o,Rc("0x51")),c[Rc("0x1c")][Rc("0x30")]("isEnabled").toMany(a,Rc("0x51"),((...t)=>t[Rc("0x31")]((t=>t)))),n.on(Rc("0x52"),(t=>{this[Rc("0x5a")][Rc("0x52")](t[Rc("0x65")][Rc("0x56")]),this[Rc("0x5a")][Rc("0x24")][Rc("0x40")].focus()})),n}[Rc("0x36")](t){const e=this[Rc("0x5a")],n=e[Rc("0x48")],o=e[Rc("0x5d")][Rc("0x38")]("Annotations"),s=e[Rc("0x5d")][Rc("0x38")]("CommentsRepository"),i=e[Rc("0x5d")].get("EditorAnnotations"),x=e[Rc("0x5d")].get(r.Users).me,a=n[Rc("0x38")](Rc("0x16"))[Rc("0x1f")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x5d")][Rc("0x38")](Rc("0x32"));let d,u;this[Rc("0x8")][Rc("0x49")](t.id)?(u=this._annotationViews.get(t.id),d=u[Rc("0x45")]):(d=new a(e[Rc("0x57")],t,x,{disableComments:this._disableComments,editorConfig:n[Rc("0x38")](Rc("0x9")),maxCommentsWhenCollapsed:n[Rc("0x38")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x38")](Rc("0x47")),maxCommentCharsWhenCollapsed:n[Rc("0x38")](Rc("0x43")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x38")](Rc("0x57"))),CommentView:n.get("comments")[Rc("0x58")],CommentsListView:c,CommentThreadInputView:l}),d[Rc("0x66")].on(Rc("0x52"),(()=>{e[Rc("0x24")][Rc("0x40")].focus()})),d[Rc("0x4d")].on("execute",(()=>{e[Rc("0x24")][Rc("0x40")][Rc("0x4e")]()})),u=o[Rc("0x1d")](this[Rc("0x5a")][Rc("0x57")],d),u[Rc("0x30")]("isDirty").to(d,"isDirty"),u.bind(Rc("0x5e")).to(d),u.bind(Rc("0x13")).to(d,Rc("0x13"),(t=>"suggestion-"+t)),this[Rc("0x8")][Rc("0x46")](t.id,u));const g=s.createCommentThreadController(t[Rc("0x6")],d),m=new dc(e,t,d,g),f=t[Rc("0x5")]().filter((t=>t.isInContent));d.descriptionParts=e.plugins[Rc("0x38")](Rc("0x20"))[Rc("0x19")][Rc("0x1")](f),this[Rc("0x4f")][Rc("0x46")](t,m),this[Rc("0x4c")].set(d,m);const h=o[Rc("0x3c")]({view:u,target:()=>{const n=[],o=t[Rc("0x5")]()[Rc("0x69")]((t=>t[Rc("0x6c")]));for(const t of o)n[Rc("0x3")](...t[Rc("0x1a")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x24")],n)},type:()=>Rc("0x6d")+m.view[Rc("0x13")]});s[Rc("0x5c")](d,h),o[Rc("0x2c")](h),i[Rc("0x62")](h)}[Rc("0x1b")](t){const e=this.editor[Rc("0x5d")][Rc("0x38")]("CommentsRepository"),n=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")](Rc("0x41")),o=this[Rc("0x4f")][Rc("0x38")](t),s=o[Rc("0x40")],r=n[Rc("0x15")](s);e[Rc("0x50")](s),r&&n[Rc("0x61")](r),this._suggestionToController[Rc("0x5b")](t),this._viewToController[Rc("0x5b")](s),o.destroy()}[Rc("0x6b")](t){if(!t[Rc("0x6c")]||!this[Rc("0x4f")][Rc("0x49")](t))return;const e=this[Rc("0x5a")].plugins[Rc("0x38")](Rc("0x20")),n=this[Rc("0x4f")][Rc("0x38")](t),o=t[Rc("0x5")]();n.view[Rc("0x2b")]=e[Rc("0x19")][Rc("0x1")](o)}[Rc("0x42")](){for(const t of this[Rc("0x4f")][Rc("0xd")]())this._destroyController(t);for(const t of this[Rc("0x8")][Rc("0x2a")]())t.mainView[Rc("0x42")]();super[Rc("0x42")]()}}var Sc,Lc,Nc=["adapter","plugins","getSuggestions","getSuggestion","addSuggestionData","editor","get","pluginName"];Sc=Nc,Lc=189,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Ic,"Comments"]}static get[wc("0x2")](){return"TrackChanges"}set[wc("0x3")](t){this[wc("0x0")][wc("0x4")].get($a)[wc("0x3")]=t}get[wc("0x3")](){return this[wc("0x0")][wc("0x4")].get($a)[wc("0x3")]}addSuggestion(t){return this[wc("0x0")][wc("0x4")][wc("0x1")]($a)[wc("0x7")](t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x4")][wc("0x1")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x6")](t){return this.editor.plugins[wc("0x1")]($a)[wc("0x6")](t)}}const Oc=["editorCreator","discardAllSuggestions","createElement","get","rootsAttributes","push","getFullData","_adapter","pluginName","function","requires","destroy","getDataWithDiscardedSuggestions","editor","track-changes-data-invalid-editor-creator","CommentsRepository","trackChangesData","model","create","result","TrackChangesDataGetter","config","plugins","constructor","define","name","data","document","createDocumentFragment","TrackChangesData","acceptAllSuggestions","addSuggestionData","getRootsAttributes","appendChild","TrackChangesEditing","getSuggestions","reduce","getRootNames","init","Pagination","Users"];var Fc,Pc;Fc=Oc,Pc=113,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x8")];class jc extends t.Plugin{static get[Dc("0x14")](){return[$a]}static get[Dc("0x12")](){return Dc("0x27")}[Dc("0x7")](){const t=this[Dc("0x17")];if(t[Dc("0x1f")][Dc("0x22")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x1b")][Dc("0x25")][Dc("0x6")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x21")][Dc("0x1c")](n,e)})),Dc("0x13")!=typeof t.config.get(Dc("0x1a"))[Dc("0xa")])throw new e.CKEditorError(Dc("0x18"))}getDataWithAcceptedSuggestions(t){return Hc(this[Dc("0x17")],!0,t)}[Dc("0x16")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x1e")}constructor(t){super(t),this[Dc("0x1d")]="end"}[Dc("0x7")](){this[Dc("0x17")].plugins[Dc("0xd")](Dc("0x19"))[Dc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x17")][Dc("0x20")].get("TrackChangesEditing")[Dc("0x11")]=null}}function Gc(t){return void 0!==t[Dc("0x1")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x20")][Dc("0xf")]($a,Uc),o[Dc("0xe")]=Gc(t)?t[Dc("0x1")]():void 0;const s=document[Dc("0x26")](),i=t[Dc("0x1f")][Dc("0xd")](Dc("0x1a"))[Dc("0xa")],x=await i(o,(()=>function(t){const e=document[Dc("0xc")]("div");return t[Dc("0x2")](e),e}(s)));!function(t,e){const n=t.model.document[Dc("0x6")]()[Dc("0x5")](((e,n)=>(e[n]=t[Dc("0x24")][Dc("0xd")]({rootName:n}),e)),{}),o=t[Dc("0x20")][Dc("0xd")](Dc("0x9")).users.map((t=>({id:t.id,name:t[Dc("0x23")]}))),s=t[Dc("0x20")][Dc("0xd")](Dc("0x3"))[Dc("0x4")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(Dc("0x9")),i=e[Dc("0x20")].get(Dc("0x3"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[Dc("0x0")](t);e[Dc("0x24")].set(n)}(t,x),x.execute(Dc(e?"0x28":"0xb"));const a=Gc(x)?x[Dc("0x10")](n):x.data[Dc("0xd")](n);return await x[Dc("0x15")](),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:()=>Mc,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=["isEnabled","commands","_disableUnsupportedCommands","has","execute","value","_enabledCommands","_enableCommands","refresh","forceDisabled","TrackChangesCommand","affectsData","editor","clearForceDisabled"];var c,l;c=a,l=444,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("0xa")]=e,this.value=!1,this[u("0xc")](),this._isEnabledBasedOnSelection=!1}[u("0xc")](){this[u("0x4")]=!0}[u("0x8")](){this[u("0x9")]=!this[u("0x9")],this[u("0x9")]?this[u("0x6")]():this[u("0xb")]()}_disableUnsupportedCommands(){for(const t of this[u("0x2")][u("0x5")][u("0x5")]())t.affectsData&&!this._enabledCommands[u("0x7")](t)&&t[u("0xd")](u("0x0"))}[u("0xb")](){for(const t of this[u("0x2")][u("0x5")].commands())t[u("0x1")]&&!this[u("0xa")][u("0x7")](t)&&t[u("0x3")](u("0x0"))}}const g=["isEnabled","canEditAt","plugins","acceptSuggestion","track-changes-accept-suggestion-not-found","get","_isEnabledBasedOnSelection","refresh","editor","TrackChangesEditing","_suggestions"];var m,f;m=g,f=308,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x7")](),this[h("0x6")]=!1}[h("0x7")](){this[h("0x0")]=!0}execute(t){const n=this[h("0xa")][h("0x5")](t);if(!n)throw new e.CKEditorError(h("0x4"),this);const o=n.getRanges();this[h("0x8")].model[h("0x1")](o)&&this.editor[h("0x2")][h("0x5")](h("0x9"))[h("0x3")](n)}}const b=["isEnabled","discardSuggestion","canEditAt","editor","refresh","_isEnabledBasedOnSelection","_suggestions","model","getRanges","get"];var E,_;E=b,_=426,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class C extends t.Command{constructor(t,e){super(t),this[T("0x0")]=e,this[T("0x8")](),this[T("0x9")]=!1}[T("0x8")](){this[T("0x4")]=!0}execute(t){const n=this._suggestions[T("0x3")](t);if(!n)throw new e.CKEditorError("track-changes-discard-suggestion-not-found",this);const o=n[T("0x2")]();this[T("0x7")][T("0x1")][T("0x6")](o)&&this[T("0x7")].plugins.get("TrackChangesEditing")[T("0x5")](n)}}const y=["schema","deletion","join","execute","isInContent","map","value","start","color","sort","end"," [color ","isArray","isMultiRange","next","createPositionBefore","getRanges","isObject","splice","createPositionAfter","change","isTouching","content","type","length"];var k,A;k=y,A=469,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0xf")](((t,e)=>"deletion"==t[v("0x4")]&&v("0x7")!=e[v("0x4")]?-1:v("0x7")!=t[v("0x4")]&&v("0x7")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x6")];for(;o<t[v("0x5")];){const i=t[o],x=t[o+1];n||(n=e.createPositionBefore(i)),S(e,i,x)||(s.push(e.createRange(n,r[v("0x17")](i)?e[v("0x0")](i):e.createPositionAt(i,v("0x10")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x0")](e),s=t[v("0x15")](n);return o[v("0x2")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x18")](0,100);t[v("0x1")]((()=>{for(const t of o)t[v("0xa")]&&e[v("0x9")](t.id)}))}}const N=["_suggestions","from","execute","_isEnabledBasedOnSelection","refresh","canEditAt","editor","some","isInContent","_command","model","isEnabled"];var w,M;w=N,M=251,function(t){for(;--t;)w.push(w.shift())}(++M);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x1")]=n,this.refresh(),this[O("0x4")]=!1}[O("0x5")](){const t=Array[O("0x2")](this._suggestions.values())[O("0x8")]((t=>t[O("0x9")]));this[O("0x0")]=this._command.isEnabled&&t}[O("0x3")](){const t=R(Array[O("0x2")](this[O("0x1")].values()));for(const e of t){const t=e.getRanges();if(!this.editor[O("0xb")][O("0x6")](t))return}L(this[O("0x7")][O("0xb")],this[O("0xa")],t)}}const P=["document","size","_command","editor","selection","_suggestions","model","_isEnabledBasedOnSelection","_selectedSuggestions","canEditAt","isEnabled","values","refresh"];var D,B;D=P,B=451,function(t){for(;--t;)D.push(D.shift())}(++B);const j=function(t,e){return P[t-=0]};class U extends t.Command{constructor(t,e,n){super(t),this[j("0x6")]=e,this[j("0x9")]=n,this[j("0xc")]=new Set,this[j("0x3")](),this[j("0xb")]=!1}refresh(){const t=this.editor[j("0xa")][j("0x4")][j("0x8")],e=Array.from(this[j("0x9")][j("0x2")]());this[j("0xc")]=function(t,e){const n=Array.from(t[v("0x16")]()),o=new Set;for(const s of e)if(s[v("0xa")])for(const e of n)for(const n of s[v("0x16")]())(e.isIntersecting(n)||t.isCollapsed&&!s[v("0x13")]&&s[v("0x14")]&&n[v("0x10")][v("0x2")](e[v("0xd")]))&&o.add(s);return o}(t,e),this.isEnabled=this[j("0x6")][j("0x1")]&&!!this._selectedSuggestions[j("0x5")]}execute(){const t=R(Array.from(this._selectedSuggestions));for(const e of t){const t=e.getRanges();if(!this[j("0x7")][j("0xa")][j("0x0")](t))return}L(this[j("0x7")][j("0xa")],this._command,t)}}const G=function(){this.__data__=[],this.size=0};const H=function(t,e){return t===e||t!=t&&e!=e};const z=function(t,e){for(var n=t.length;n--;)if(H(t[n][0],e))return n;return-1};var W=Array.prototype.splice;const V=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():W.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const 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 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 wt=Lt(Object,"create");const Mt=function(){this.__data__=wt?wt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(wt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return wt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=wt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=Mt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const 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,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 we=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 Me=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||Me)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?we(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?we(t,!0):We(t)};const Ke=function(t,e){return t&&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 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 wn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const Mn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?wn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return wn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return Mn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const 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 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?{}:zn(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 wo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=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 Mo=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:Mo.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):wo(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 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=["getAllAdjacentSuggestions","isIntersecting","discard","hasComments","_onAccept","_onDiscard","attributes","getFirstMarker","add","delete","isExternal","from","removeMarkers","_model","nodeBefore","filter","change","setAttribute","addRange","type","previous","getRange","next","set","_saved","map","createdAt","accept","onAccept","_onAttributesChange","split","addMarkerName","getFirstRange","getMarkerNames","start","reduce","addMarker","head","getMultiRangeId","isInContent","markers","get","getRanges","suggestion:","subType","onAttributesChange","_markerNames","decorate","data","substr","size","toJSON","push","getMarkers","authoredAt","creator","length","getContainedElement","onDiscard","commentThread","removeMarker","_isDataLoaded","getItems","author","end"];var $o,Jo;$o=Xo,Jo=193,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("0x3f")]=!1,this.id=e.id,this[Qo("0x15")]=e[Qo("0x15")],this[Qo("0x2e")]=e[Qo("0x2e")]||null,this[Qo("0x0")]=e[Qo("0x0")],this[Qo("0x39")]=e[Qo("0x39")]||e[Qo("0x0")],this[Qo("0xc")]=Boolean(e[Qo("0x8")]&&e[Qo("0x8")]["@external"]),this[Qo("0x32")]=null,this[Qo("0xf")]=t,this[Qo("0x6")]=e[Qo("0x1e")],this[Qo("0x7")]=e[Qo("0x3c")],this._onAttributesChange=e[Qo("0x2f")],this[Qo("0x30")]=new Set,this[Qo("0x1c")]=null,this[Qo("0x19")](Qo("0x38"),null),this[Qo("0x19")]("attributes",e[Qo("0x8")]||{}),this[Qo("0x19")](Qo("0x16"),null),this[Qo("0x19")](Qo("0x18"),null),this.set(Qo("0x3d"),null),this[Qo("0x19")](Qo("0x1a"),!1),this[Qo("0x31")](Qo("0x1d")),this[Qo("0x31")](Qo("0x4"))}get[Qo("0x27")](){let t=this;for(;t[Qo("0x16")];)t=t.previous;return t}get[Qo("0x5")](){return!!this[Qo("0x3d")]&&this[Qo("0x3d")][Qo("0x3a")]>0}get isMultiRange(){return 0!=this[Qo("0x30")][Qo("0x34")]&&6==Array[Qo("0xd")](this._markerNames)[0][Qo("0x20")](":")[Qo("0x3a")]}get[Qo("0x29")](){return null!==this[Qo("0x9")]()}[Qo("0x21")](t){this[Qo("0x30")][Qo("0xa")](t)}[Qo("0x23")](){return Array[Qo("0xd")](this[Qo("0x30")])}[Qo("0x37")](){return this.getMarkerNames().map((t=>this[Qo("0xf")][Qo("0x2a")][Qo("0x2b")](t)))[Qo("0x11")]((t=>t))}[Qo("0x9")](){return this[Qo("0x37")]()[0]||null}[Qo("0xe")](){this._model[Qo("0x12")]((t=>{for(const e of this[Qo("0x37")]())t.removeMarker(e)})),this[Qo("0x30")].clear()}removeMarker(t){this[Qo("0xf")][Qo("0x12")]((e=>{e[Qo("0x3e")](t)})),this[Qo("0x30")][Qo("0xb")](t)}[Qo("0x14")](t){const e=Qo("0x2d")+this[Qo("0x15")]+":"+this[Qo("0x2e")]+":"+this.id+":"+this.creator.id+":"+Zo[Qo("0x28")]();this[Qo("0x21")](e),this[Qo("0xf")].change((n=>{n[Qo("0x26")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x2c")]())if(e[Qo("0x3")](t))return!0;return!1}[Qo("0x2c")](){return this.getMarkers()[Qo("0x1b")]((t=>t.getRange()))}getItems(){return this.getRanges()[Qo("0x25")](((t,e)=>[...t,...e[Qo("0x40")]()]),[])}[Qo("0x22")](){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Qo("0x17")]())||null}[Qo("0x3b")](){const t=this[Qo("0x2c")]();if(1!=t[Qo("0x3a")])return null;const e=t[0],n=e[Qo("0x24")].nodeAfter,o=e[Qo("0x1")][Qo("0x10")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1d")](){this[Qo("0x6")](this[Qo("0x2c")](),this[Qo("0x32")],this[Qo("0x8")]),this[Qo("0xe")]()}[Qo("0x4")](){this._onDiscard(this[Qo("0x2c")](),this[Qo("0x32")],this[Qo("0x8")]),this[Qo("0xe")]()}[Qo("0x2")](){const t=[];let e=this.head;for(;e;)t[Qo("0x36")](e),e=e[Qo("0x18")];return t}[Qo("0x13")](t,e){const n=eo(this[Qo("0x8")]);_o(n,t,e),Go(n,this[Qo("0x8")])||(this[Qo("0x8")]=n,this[Qo("0x1f")](n))}removeAttribute(t){const e=eo(this[Qo("0x8")]);qo(e,t),Go(e,this[Qo("0x8")])||(this.attributes=e,this._onAttributesChange(this[Qo("0x8")]))}[Qo("0x35")](){return{id:this.id,type:this[Qo("0x2e")]?this[Qo("0x15")]+":"+this.subType:this[Qo("0x15")],authorId:this[Qo("0x39")].id,createdAt:this[Qo("0x1c")],hasComments:this.hasComments,data:this[Qo("0x32")],attributes:this[Qo("0x8")]}}static[Qo("0x28")](){return(0,e.uid)()[Qo("0x33")](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=["isInContent","*Split:* %0","*Insert:* %0","addObject","addEmptyContainer","deletion","ELEMENT_SPACE","previousSibling","length","push","EmptyContainer","elementEnd","replace","set","*Merge:* %0","nextSibling","quantity","registerElementLabel","_itemLabels","Container","indexOf","isEmpty","pop","getFirstRange","Object","_resolveDescriptionItems","skip","getWalker","data","isEqual","isObject","$text","item","REPLACE_TEXT","_schema","_locale","remove","getDescriptions","element","match","*Remove:* %0","add","insertion","name","type","removeContainer","start","label","elementStart","getItemLabel","addContainer","_addDescriptionItems","_customCallbacks","text"];var es,ns;es=ts,ns=115,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this._customCallbacks=[],this[os("0xb")]=new Map,this._itemLabelsCallbacks=[],this[os("0x1b")]=t,this._locale=e}[os("0x1e")](t){const e=[];for(let n=0;n<t[os("0x1")];n++){const o=t[n];if(!o[os("0x2f")])continue;let s=!1;for(const t of this[os("0x2d")]){const n=t(o);if(n){os("0x25")in n&&e[os("0x2")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x10")]().end[os("0x16")](s[os("0x10")]()[os("0x27")])){const t=e[e[os("0x1")]-1],n="insertion"==o[os("0x25")]?os("0x22"):os("0x1d");t&&os("0x2e")==t[os("0x25")]&&(t[n]+="\n")}}}return this[os("0x12")](e)}registerDescriptionCallback(t){this[os("0x2d")][os("0x2")](t)}[os("0xa")](t,n,o=e.priorities.normal){"function"==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0xb")][os("0x6")](t,n)}[os("0x2a")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[os("0x28")];break}return n||(n=this[os("0xb")].get(t.name)),n?n(e):1!==e?e+" "+t[os("0x24")]+"s":""+t[os("0x24")]}[os("0x2c")](t,e){const n=e[os("0x10")]()[os("0x14")](),o=os("0x23")==e[os("0x25")]?os("0x22"):os("0x1d");for(const e of n){const s=e[os("0x19")],r=t[t[os("0x1")]-1];if(s.is("$textProxy"))r&&r[os("0x25")][os("0xd")](os("0xc"))>-1&&t[os("0xf")](),r&&os("0x2e")==r.type?r[o]+=s[os("0x15")]:t[os("0x2")]({type:os("0x2e"),add:"add"==o?s[os("0x15")]:"",remove:os("0x1d")==o?s[os("0x15")]:""});else if(this[os("0x1b")][os("0x17")](s)){const i=s;if(r&&r[os("0x25")][os("0xd")](os("0xc"))>-1&&t[os("0xf")](),"elementEnd"==e[os("0x25")])continue;r&&r[os("0x25")]==o+os("0x11")&&r[os("0x1f")][os("0x24")]==i[os("0x24")]?r[os("0x9")]++:t[os("0x2")]({type:o+"Object",element:i,quantity:1}),n[os("0x13")]((t=>!(os("0x4")==t.type&&t[os("0x19")]==s)))}else if(this[os("0x1b")].checkChild(s,os("0x18"))||s.is(os("0x1f"),"softBreak")){const n=s;if(os("0x22")==o&&os("0x29")==e[os("0x25")]||"remove"==o&&os("0x4")==e[os("0x25")])continue;if(r&&-1==r[os("0x25")].indexOf(os("0xc"))){"text"==r.type&&(r[o]+="\n");continue}let i;if(i=os("0x22")==o?n.nextSibling&&!this[os("0x1b")][os("0x17")](n[os("0x8")])?n[os("0x8")]:null:n.previousSibling&&!this[os("0x1b")][os("0x17")](n[os("0x0")])?n.previousSibling:null,n[os("0xe")]||i&&i.isEmpty){const e=i&&i[os("0xe")]?i:n;r&&r[os("0x25")]==o+os("0x3")&&r[os("0x1f")][os("0x24")]==e[os("0x24")]?r.quantity++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t.push({type:o+os("0xc"),element:n})}}}[os("0x12")](t){const e=this[os("0x1c")],n=[];for(const o of t){switch(o[os("0x25")]){case os("0x2e"):if(o[os("0x22")]=o[os("0x22")].replace(/(\S)\u000A+(\S)/g,"$1 $2")[os("0x5")](/\u000A/g,""),o[os("0x1d")]=o.remove[os("0x5")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x5")](/\u000A/g,""),""!=o[os("0x22")]&&""!=o.remove){n[os("0x2")]({type:os("0x5"),content:Yo(e,os("0x1a"),['"'+o[os("0x1d")]+'"','"'+o[os("0x22")]+'"'])});continue}if(null!=o[os("0x22")][os("0x20")](/^ +$/)){n[os("0x2")]({type:os("0x23"),content:Yo(e,"*Insert:* %0",Yo(e,os("0x35"),o[os("0x22")][os("0x1")]))});continue}if(null!=o[os("0x1d")][os("0x20")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x21"),Yo(e,os("0x35"),o.remove[os("0x1")]))});continue}if(""!=o[os("0x22")]){n[os("0x2")]({type:"insertion",content:Yo(e,os("0x31"),'"'+o.add+'"')});continue}n[os("0x2")]({type:"deletion",content:Yo(e,os("0x21"),'"'+o[os("0x1d")]+'"')});continue;case os("0x33"):case os("0x32"):n[os("0x2")]({type:os("0x23"),content:Yo(e,os("0x31"),this[os("0x2a")](o[os("0x1f")],o[os("0x9")]))});continue;case"removeEmptyContainer":case"removeObject":n[os("0x2")]({type:"deletion",content:Yo(e,"*Remove:* %0",this[os("0x2a")](o.element,o[os("0x9")]))});continue;case os("0x2b"):n.push({type:os("0x23"),content:Yo(e,os("0x30"),this.getItemLabel(o[os("0x1f")],o[os("0x9")]))});continue;case os("0x26"):n[os("0x2")]({type:os("0x34"),content:Yo(e,os("0x7"),this[os("0x2a")](o[os("0x1f")],o.quantity))});continue}n.push(o)}return n}}const rs=["afterInit","TrackChangesEditing","plugins","enableCommand","get","showAIAssistant"];var is,xs;is=rs,xs=454,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x2")](){const t=this.editor,e=t[as("0x4")][as("0x0")](as("0x3"));t.commands[as("0x0")](as("0x1"))&&e[as("0x5")]("showAIAssistant")}}const ls=["from","editor","TrackChangesEditing","markBlockFormat","enableCommand","FORMAT_ALIGN_TO_CENTER","getSelectedBlocks","document","afterInit","filter","_descriptionFactory","plugins","value","left","registerDescriptionCallback","commandName","FORMAT_JUSTIFY_TEXT","locale","*Format:* %0","has","justify","ltr","selection","schema","FORMAT_ALIGN_TO_LEFT","alignment","center","get","getAttribute","model","change","right"];var us,ds;us=ls,ds=284,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class ms extends t.Plugin{[gs("0xc")](){const t=this[gs("0x5")],e=t.locale;if(!t.plugins[gs("0x17")]("AlignmentEditing"))return;const n=t[gs("0xf")][gs("0x1f")](gs("0x6"));n[gs("0x8")]("alignment",((e,o={})=>{let s=o[gs("0x10")];o.value||(s=gs("0x19")===t[gs("0x15")].contentLanguageDirection?"left":gs("0x3"));const r=Array[gs("0x4")](this[gs("0x5")].model[gs("0xb")][gs("0x1a")][gs("0xa")]())[gs("0xd")]((t=>function(t,e,n){const o=t[gs("0x0")](gs("0x1d"))||null;return e.checkAttribute(t,"alignment")&&n!=o}(t,this[gs("0x5")][gs("0x1")][gs("0x1b")],s)));t.model[gs("0x2")]((()=>{for(const t of r)n[gs("0x7")](t,{commandName:gs("0x1d"),commandParams:[{value:s}]})}))})),n[gs("0xe")][gs("0x12")]((t=>{const{data:n}=t;if(n&&gs("0x1d")==n[gs("0x13")]){const t=n.commandParams[0][gs("0x10")];return{type:"format",content:Yo(e,gs("0x16"),function(t){switch(t){case gs("0x11"):return Yo(e,gs("0x1c"));case gs("0x3"):return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case gs("0x1e"):return Yo(e,gs("0x9"));case gs("0x18"):return Yo(e,gs("0x14"))}}(t))}}}))}}const fs=["element","addClass","toViewElement","get","span","nextSibling","writer","bindElementToMarker","name","createRangeOn","ck-suggestion-marker--active","previousPosition","isBlock","activeMarkers","elementEnd","listIndent","mapper","ck-suggestion-marker-","consumable","schema","markerRange","insert","isLimit","hasAttribute","createUIElement","getAttribute","toViewPosition","listItem","getCustomProperty","model","start","TrackChangesEditing","test","push","type","markerName"];var hs,ps;hs=fs,ps=312,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.getItems())s[bs("0x23")](t)&&o[bs("0x9")](n[bs("0x15")](s));return o}function _s(t){const e=[];if(t.is(bs("0xc"),bs("0x3"))){let n=t.nextSibling;for(;n&&n.is(bs("0xc"),bs("0x3"))&&n[bs("0x1")](bs("0x1b"))>0;)e.push(n),n=n[bs("0x11")]}return e}function Ts(t,e,{showActiveMarker:n=!0}={}){const o=t.plugins[bs("0xf")](bs("0x7"));return(s,r,i)=>{if(!i[bs("0x1e")][bs("0x8")](r[bs("0x20")],s[bs("0x14")]))return;const x=r.markerRange.getWalker(),a=r[bs("0x20")][bs("0x6")],c=t[bs("0x5")][bs("0x1f")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c.isContent(e);const n=i[bs("0x1c")][bs("0xe")](e);if(n&&n[bs("0x4")]("addHighlight"))return;bs("0x1a")==t[bs("0xa")]&&c[bs("0x18")](e)&&!c[bs("0x22")](e)&&(e[bs("0x11")]||a.isAtEnd?l&&l.parent==e||(l=e,m(t[bs("0x17")]),g=!0):u=u||t.previousPosition)}function m(t){const s=i.writer[bs("0x0")](bs("0x10"),{class:bs("0x1d")+e}),x=i.mapper[bs("0x2")](t);n&&o[bs("0x19")].includes(r[bs("0xb")])&&i[bs("0x12")][bs("0xd")](bs("0x16"),s),i[bs("0x12")][bs("0x21")](x,s),i[bs("0x1c")][bs("0x13")](s,r[bs("0xb")])}d||g||!u||m(u)}}const Cs=["change","format","commands","code","*Format:* %0","slice","document","forceValue","underline","SubscriptEditing","markInlineFormat","FORMAT_ITALIC","toLowerCase","superscript","locale","strikethrough","italic","model","_descriptionFactory","SuperscriptEditing","TrackChangesEditing","*Remove format:* %0","FORMAT_UNDERLINE","get","bold","registerDescriptionCallback","FORMAT_CODE","selection","BoldEditing","subscript","FORMAT_BOLD","StrikethroughEditing","editor","UnderlineEditing","plugins","ItalicEditing"];var ys,ks;ys=Cs,ks=207,function(t){for(;--t;)ys.push(ys.shift())}(++ks);const As=function(t,e){return Cs[t-=0]},vs=[As("0x1"),As("0x8"),As("0x6"),"CodeEditing",As("0x4"),As("0x12"),As("0x1c")];class Rs extends t.Plugin{afterInit(){const t=this[As("0x5")],e=t[As("0x1a")],n=t.plugins[As("0x20")](As("0x1d")),o=t[As("0x17")];for(const o of vs){if(!t[As("0x7")].has(o))continue;const s=o[As("0xe")](0,-7)[As("0x15")](),r=t[As("0xb")].get(s);n.enableCommand(s,((t,o={})=>{const i=e[As("0xf")][As("0x0")];if(i.isCollapsed)return void t(o);const x=void 0!==o[As("0x10")]?o[As("0x10")]:!r.value;e[As("0x9")]((()=>{const t=Array.from(i.getRanges());for(const o of t){const t=x?[o]:Es(s,o,e);for(const e of t)n[As("0x13")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[As("0x1b")][As("0x22")]((n=>{const{data:s}=n;if(s&&s.commandName===t)return s.commandParams[0][As("0x10")]?{type:As("0xa"),content:Yo(o,As("0xd"),e)}:{type:As("0xa"),content:Yo(o,As("0x1e"),e)}}))}s(As("0x21"),Yo(o,As("0x3"))),s(As("0x19"),Yo(o,As("0x14"))),s(As("0x11"),Yo(o,As("0x1f"))),s(As("0xc"),Yo(o,As("0x23"))),s(As("0x18"),Yo(o,"FORMAT_STRIKETHROUGH")),s(As("0x2"),Yo(o,"FORMAT_SUBSCRIPT")),s(As("0x16"),Yo(o,"FORMAT_SUPERSCRIPT"))}}const Is=["model","from","checkChild","editor","getSelectedBlocks","selection","change","commandName","parent","blockQuote","value","ELEMENT_BLOCK_QUOTE","*Format:* %0","locale","format","TrackChangesEditing","get","document","name","*Remove format:* %0","filter","commandParams","commands","registerDescriptionCallback","$root","forceValue"];var Ss,Ls;Ss=Is,Ls=485,function(t){for(;--t;)Ss.push(Ss.shift())}(++Ls);const Ns=function(t,e){return Is[t-=0]};class ws extends t.Plugin{afterInit(){const t=this[Ns("0xc")],e=t[Ns("0x16")];if(!t.plugins.has("BlockQuoteEditing"))return;const n=t.plugins[Ns("0x19")](Ns("0x18")),o=this[Ns("0xc")][Ns("0x5")][Ns("0x19")](Ns("0x12"));n.enableCommand(Ns("0x12"),((e,s={})=>{const r=this[Ns("0xc")].model[Ns("0x0")][Ns("0xe")],i=s&&void 0!==s[Ns("0x8")]?s[Ns("0x8")]:!o[Ns("0x13")];let x=[];if(i){const e=Array[Ns("0xa")](r[Ns("0xd")]())[Ns("0x3")]((t=>Ms(t)||function(t,e){const n=e[Ns("0xb")](t[Ns("0x11")],Ns("0x12")),o=e[Ns("0xb")]([Ns("0x7"),Ns("0x12")],t);return n&&o}(t,this[Ns("0xc")][Ns("0x9")].schema)));x=I(e,t[Ns("0x9")])}else{const e=Array[Ns("0xa")](r.getSelectedBlocks())[Ns("0x3")]((t=>Ms(t)));x=I(e,t[Ns("0x9")])}t[Ns("0x9")][Ns("0xf")]((()=>{for(const t of x)n.markBlockFormat(t,{commandName:Ns("0x12"),commandParams:[{forceValue:i}]})}))})),n._descriptionFactory[Ns("0x6")]((t=>{const{data:n}=t;if(n&&Ns("0x12")==n[Ns("0x10")]){const t=Yo(e,Ns("0x14"));return n[Ns("0x4")][0][Ns("0x8")]?{type:Ns("0x17"),content:Yo(e,Ns("0x15"),t)}:{type:Ns("0x17"),content:Yo(e,Ns("0x2"),t)}}}))}}function Ms(t){return Ns("0x12")==t[Ns("0x11")][Ns("0x1")]}const Os=["ckbox","afterInit","editor","TrackChangesEditing","get","enableCommand"];var Fs,Ps;Fs=Os,Ps=398,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x5")](){const t=this[Ds("0x0")];t.commands[Ds("0x2")]("ckbox")&&t.plugins[Ds("0x2")](Ds("0x1"))[Ds("0x3")](Ds("0x4"))}}const js=["language","change","value","commandParams","filter","afterInit","rootElement","outdentCodeBlock","commands","commandName","indentCodeBlock","forceValue","schema","codeBlock","selection","*Remove format:* %0","plugins","languages","format","TrackChangesEditing","document","ELEMENT_CODE_BLOCK","blockName","find","markBlockFormat","isLimit","has","parent","enableCommand","get","CodeBlock","registerDescriptionCallback","_descriptionFactory","model","getSelectedBlocks"];var Us,Gs;Us=js,Gs=480,function(t){for(;--t;)Us.push(Us.shift())}(++Gs);const Hs=function(t,e){return js[t-=0]};class zs extends t.Plugin{[Hs("0xf")](){const t=this.editor;if(!t.plugins[Hs("0x1")](Hs("0x5")))return;const e=t[Hs("0x1a")][Hs("0x4")](Hs("0x1d")),n=t.locale,o=t.config[Hs("0x4")](Hs("0x17"))[Hs("0x1b")],s=t[Hs("0x12")].get(Hs("0x17"));e[Hs("0x3")](Hs("0x14")),e[Hs("0x3")](Hs("0x11")),e[Hs("0x3")](Hs("0x17"),((n,r={})=>{const i=t.model,x=t[Hs("0x8")][Hs("0x1e")][Hs("0x18")],a=r&&void 0!==r[Hs("0x15")]?r[Hs("0x15")]:!s[Hs("0xc")];let c;r[Hs("0xa")]||(r.language=o[0][Hs("0xa")]),c=a?Array.from(x[Hs("0x9")]()).filter((t=>{return Ws(t)||(e=t,n=i[Hs("0x16")],!e.is(Hs("0x10"))&&!n[Hs("0x0")](e)&&n.checkChild(e[Hs("0x2")],Hs("0x17")));var e,n})):Array.from(x[Hs("0x9")]())[Hs("0xe")]((t=>Ws(t)));const l=I(c,i);i[Hs("0xb")]((()=>{for(const t of l)e[Hs("0x22")](t,{commandName:Hs("0x17"),commandParams:[{...r,forceValue:a}],formatGroupId:Hs("0x20")})}))})),e[Hs("0x7")].registerElementLabel(Hs("0x17"),(t=>Yo(n,Hs("0x1f"),t))),e._descriptionFactory[Hs("0x6")]((t=>{const e=n.t,{type:s,data:r}=t;if("formatBlock"==s&&r&&"codeBlock"==r[Hs("0x13")]){const t=r[Hs("0xd")][0][Hs("0xa")],s=e(o[Hs("0x21")]((e=>e[Hs("0xa")]===t)).label);return r[Hs("0xd")][0][Hs("0x15")]?{type:"format",content:Yo(n,"*Format:* %0",Yo(n,Hs("0x1f"),1)+" ("+s+")")}:{type:Hs("0x1c"),content:Yo(n,Hs("0x19"),Yo(n,Hs("0x1f"),1))}}}))}}function Ws(t){return"codeBlock"==t.name}const Vs=["has","TrackChangesEditing","get","plugins","CommentsEditing","enableCommand"];var Ks,qs;Ks=Vs,qs=253,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[Xs("0x2")][Xs("0x5")](Xs("0x3"))&&t.plugins[Xs("0x1")](Xs("0x0"))[Xs("0x4")]("addCommentThread")}}var Js=n(181);const Qs=["unit","end","markerNameToElements","mapper","addMarker:suggestion:deletion","uiElement","unbindElementFromMarkerName","unlock","forward","enableCommand","createRange","selection","buffer","options","init","editing","$graveyard","showSuggestionHighlights","get","high","writer","batch","data","removeMarker:suggestion:deletion","merge","setSelection","rootName","document","remove","enqueueChange","editor","detach","downcastDispatcher","deleteForward","lock","delete","fromRange","getFirstRange","model","markerName","root","commands","start"];var Zs,Ys;Zs=Qs,Ys=103,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 requires(){return[Js.Delete]}[tr("0x28")](){const t=this[tr("0xd")],e=t.plugins[tr("0x1")]("TrackChangesEditing");e[tr("0x23")](tr("0x12"));const n=t[tr("0x18")][tr("0x1")](tr("0x10"));e.enableCommand(tr("0x10"),((e,o={})=>{const s=t[tr("0x15")].createSelection(t[tr("0x15")][tr("0xa")][tr("0x25")]);s.isCollapsed&&t[tr("0x15")].modifySelection(s,{direction:tr("0x22"),unit:o[tr("0x1a")]});const r=s[tr("0x14")](),x=i.LiveRange[tr("0x13")](r);let a;e(o),a=tr("0x2a")==x[tr("0x17")][tr("0x9")]?t.model[tr("0x24")](r.start):t.model[tr("0x24")](x[tr("0x19")],x[tr("0x1b")]),x[tr("0xe")](),t[tr("0x15")][tr("0xc")](n[tr("0x26")][tr("0x4")],(t=>{n.buffer[tr("0x11")](),t[tr("0x8")](t[tr("0x24")](a[tr("0x1b")])),n[tr("0x26")][tr("0x21")]()}))})),t.editing[tr("0xf")].on("addMarker:suggestion:deletion",Ts(t,"merge"),{priority:tr("0x2")}),t[tr("0x5")][tr("0xf")].on(tr("0x1e"),((e,n,o)=>{o[tr("0x27")][tr("0x0")]&&Ts(t,tr("0x7"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:tr("0x2")}),t[tr("0x29")][tr("0xf")].on(tr("0x6"),((t,e,n)=>{const o=n[tr("0x1d")][tr("0x1c")](e[tr("0x16")]);if(o)for(const t of o)t.is(tr("0x1f"))&&(n[tr("0x1d")][tr("0x20")](t,e[tr("0x16")]),n[tr("0x3")][tr("0xb")](t))}),{priority:"high"})}}const nr=["markBlockFormat","registerCustomCallback","getFirstRange","multipleBlocks","model","hasAttribute","markMultiRangeBlockFormat","from","ELEMENT_","getSelectedBlocks","_LIST","locale","detach","commandName","documentList","listType","DocumentListUtils","setSelection","selection","ELEMENT_LIST_ITEM","isFirstBlockOfListItem","enableCommand","indentList","format","formatBlock","before","nextSibling","refresh","*Format:* remove from %0","list.multiBlock","fromRange","outdentList","afterInit","expandListBlocksToCompleteList","execute","value","ELEMENT_NUMBERED_LIST","commands","plugins","bulletedList","*Merge:* %0","config","forceValue","schema","paragraph","numberedList","*Outdent:* %0","slice","commandParams","isObject","splitListItemBefore","nodeAfter","editor","accept","DocumentListEditing","splitListItemAfter","listItemId","get","createPositionAt","registerElementLabel","getAttribute","after","_descriptionFactory","change","start","next","*Format:* insert into %0","push","previousSibling","end","ELEMENT_BULLETED_LIST","createRange","*Change to:* %0","document","listIndent"];var or,sr;or=nr,sr=123,function(t){for(;--t;)or.push(or.shift())}(++sr);const rr=function(t,e){return nr[t-=0]};class ir extends t.Plugin{[rr("0x3b")](){const t=this[rr("0x4")];if(!t[rr("0x41")].has(rr("0x6")))return;const e=t[rr("0x26")],n=t[rr("0x41")].get("TrackChangesEditing"),o=t[rr("0x41")][rr("0x9")](rr("0x2b"));function s(e){return()=>{const s=t[rr("0x40")][rr("0x9")](e);if(s[rr("0x3e")]&&!t[rr("0x44")].get(rr("0x38")))return void t[rr("0x3d")](rr("0x47"),{});let r=Array[rr("0x22")](t[rr("0x1f")][rr("0x19")][rr("0x2d")][rr("0x24")]());if(a(e)){r=o[rr("0x3c")](r);const t=[];for(const e of r)o[rr("0x2f")](e)&&t[rr("0x13")](e);r=t}t[rr("0x1f")][rr("0xf")]((()=>{n[rr("0x21")](r,{commandName:e,commandParams:[{forceValue:!s[rr("0x3e")]}],formatGroupId:rr("0x2a")},[],rr("0x29"))}))}}function r(e){return()=>{const o=function(t){let e=Array[rr("0x22")](t);const n=e.findIndex((t=>!t[rr("0x20")](rr("0x8"))));return n>-1&&(e=e[rr("0x4a")](0,n)),e}(t.model[rr("0x19")][rr("0x2d")].getSelectedBlocks()),s=o[o.length-1],r=t[rr("0x1f")].schema[rr("0x1")](s)?rr("0xd"):"end",i=t[rr("0x1f")].createRange(t[rr("0x1f")][rr("0xa")](o[0],rr("0x34")),t[rr("0x1f")][rr("0xa")](s,r));t[rr("0x1f")][rr("0xf")]((()=>{n[rr("0x1b")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2a")},function(t){const e=new Set;for(const n of t){let t=n[rr("0x35")];for(;t&&t[rr("0xc")](rr("0x1a"))>n[rr("0xc")](rr("0x1a"));)e.add(t),t=t[rr("0x35")]}return Array[rr("0x22")](e)}(o))}))}}function x(e){return()=>{const o=t[rr("0x1f")][rr("0x19")].selection[rr("0x24")]()[rr("0x11")]()[rr("0x3e")],s=t[rr("0x1f")][rr("0xa")](o,rr("0x34")),r=t[rr("0x1f")][rr("0xa")](o,0),i=t.model[rr("0x17")](s,r);t.model[rr("0xf")]((()=>{n[rr("0x1b")](i,{commandName:e,commandParams:[],formatGroupId:rr("0x2a")})}))}}function a(e){const n=t[rr("0x40")].get(rr("0x42")).value,o=t[rr("0x40")].get(rr("0x48")).value;return rr("0x48")===e?n:o}n.enableCommand(rr("0x48"),s(rr("0x48"))),n[rr("0x30")](rr("0x42"),s(rr("0x42"))),n[rr("0x30")]("indentList",r(rr("0x31"))),n.enableCommand("outdentList",r(rr("0x3a"))),n[rr("0x30")]("splitListItemAfter",x(rr("0x7"))),n[rr("0x30")](rr("0x2"),x("splitListItemBefore")),n[rr("0xe")][rr("0xb")]((function(e){const n=!t[rr("0x1f")][rr("0x46")][rr("0x1")](e),o=e[rr("0x14")],s=e[rr("0x35")],r=e.getAttribute(rr("0x8")),i=!o||o[rr("0xc")](rr("0x8"))!==r,x=!s||s[rr("0xc")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,rr("0x2e"),t))),n[rr("0xe")].registerDescriptionCallback((function(n){const{data:o}=n;if(!o)return;let s,r,i,x;switch(o[rr("0x28")]){case rr("0x42"):i=o[rr("0x0")][0][rr("0x45")],x=a(o[rr("0x28")]),s=i?rr("0x12"):"*Format:* remove from %0",!x&&t[rr("0x44")][rr("0x9")](rr("0x38"))||(s="*Change to:* %0"),r={type:"format",content:Yo(e,s,Yo(e,rr("0x16")))};break;case rr("0x48"):i=o[rr("0x0")][0][rr("0x45")],x=a(o.commandName),s=rr(i?"0x12":"0x37"),!x&&t[rr("0x44")][rr("0x9")](rr("0x38"))||(s=rr("0x18")),r={type:"format",content:Yo(e,s,Yo(e,rr("0x3f")))};break;case"indentList":s="*Indent:* %0",r={type:rr("0x32"),content:Yo(e,s,Yo(e,rr("0x2e")))};break;case rr("0x3a"):s=function(t){const e=t.getFirstRange();let n=e[rr("0x10")][rr("0x3")];for(;n&&e.containsItem(n);){if(n[rr("0xc")](rr("0x1a"))>0)return!1;n=n[rr("0x35")]}return!0}(n)?Yo(e,rr("0x37"),Yo(e,function(t){const e=t[rr("0x1d")]()[rr("0x10")][rr("0x3")];return rr("0x23")+e[rr("0xc")](rr("0x2a")).toUpperCase()+rr("0x25")}(n))):Yo(e,rr("0x49"),Yo(e,"ELEMENT_LIST_ITEM")),r={type:rr("0x32"),content:s};break;case"mergeListItemBackward":case"mergeListItemForward":!1===o[rr("0x1e")]&&(s=rr("0x43"),r={type:"deletion",content:Yo(e,s,Yo(e,rr("0x2e")))})}return r})),n._suggestionFactory[rr("0x1c")](rr("0x33"),"documentList",rr("0x5"),(function(e,n){const o=[];for(let n of e)n[rr("0x10")][rr("0x3")]===n[rr("0x15")].parent&&(n=t.model[rr("0x17")](t[rr("0x1f")].createPositionAt(n.start.nodeAfter,0))),o[rr("0x13")](n);t[rr("0x1f")][rr("0xf")]((e=>{const s=t[rr("0x1f")][rr("0x19")][rr("0x2d")],r=Array[rr("0x22")](s.getRanges()).map((t=>i.LiveRange[rr("0x39")](t)));e[rr("0x2c")](o),t[rr("0x40")][rr("0x9")](n[rr("0x28")])[rr("0x36")](),n[rr("0x0")][rr("0x13")]({forceDefaultExecution:!0}),t[rr("0x3d")](n[rr("0x28")],...n[rr("0x0")]),e.setSelection(r);for(const t of r)t[rr("0x27")]()}))}))}}var xr=n(331);const ar=["markInsertion","commands","removeMarker:suggestion:insertion","requires","enter","getFirstRange","hasClass","addMarker:suggestion:insertion","ck-suggestion-marker-split","editor","plugins","markerName","markerNameToElements","high","parent","setSelection","init","model","data","fire","end","document","mapper","editing","fromRange","downcastDispatcher","createRange","change","selection","enterBlock","split","remove","enableCommand","getFirstPosition"];var cr,lr;cr=ar,lr=243,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[ur("0x20")](){return[xr.Enter]}[ur("0xb")](){const t=this[ur("0x4")],e=t[ur("0x5")].get("TrackChangesEditing"),n=t[ur("0x1e")].get("enter");e[ur("0x1b")](ur("0x21"),(()=>{t[ur("0xc")][ur("0x16")]((o=>{const s=t[ur("0xc")][ur("0x10")][ur("0x17")],r=s[ur("0x1c")](),x=i.LiveRange[ur("0x13")](s[ur("0x0")]());if(n[ur("0x18")](o)){const n=t.model.createPositionAt(r[ur("0x9")].nextSibling,0),s=o.createRange(r,n);e[ur("0x1d")](s)}else o[ur("0xa")](o[ur("0x15")](x[ur("0xf")]));x.detach(),n[ur("0xe")]("afterExecute",{writer:o})}))})),t[ur("0x12")].downcastDispatcher.on(ur("0x2"),Ts(t,ur("0x19")),{priority:ur("0x8")}),t[ur("0x12")][ur("0x14")].on(ur("0x1f"),((t,e,n)=>{const o=n[ur("0x11")][ur("0x7")](e[ur("0x6")]);if(o)for(const t of o)t[ur("0x1")](ur("0x3"))&&(n.mapper.unbindElementFromMarkerName(t,e.markerName),n.writer[ur("0x1a")](t))}),{priority:"high"}),t[ur("0xd")][ur("0x14")].on(ur("0x2"),((e,n,o)=>{o.options.showSuggestionHighlights&&Ts(t,ur("0x19"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:ur("0x8")})}}const gr=["bind","has","plugins","getMarkersGroup","item","filter","start","enableCommand","findByTextCallback","TrackChangesEditing","suggestion:deletion","findNext","string","model","findPrevious","createRange","replace","FindAndReplaceEditing","replaceAll","markers","get","createPositionAt","editor","handleFindCommand"];var mr,fr;mr=gr,fr=125,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]};class pr extends t.Plugin{afterInit(){if(!this[hr("0x11")][hr("0x15")][hr("0x14")](hr("0xc")))return;const t=this[hr("0x11")].plugins[hr("0xf")](hr("0x4"));t[hr("0x2")]("find",this[hr("0x12")][hr("0x13")](this)),t[hr("0x2")](hr("0x6")),t.enableCommand(hr("0x9")),t[hr("0x2")](hr("0xb")),t.enableCommand(hr("0xd"))}[hr("0x12")](t,e,n={}){const o=this[hr("0x11")][hr("0x15")][hr("0xf")]("FindAndReplaceUtils");if(void 0!==n)return t((t=>(hr("0x7")==typeof e?o[hr("0x3")](e,n):e)(t)[hr("0x0")]((e=>!1===this._isInDeletionRange(e,t[hr("0x17")])))),n)}_isInDeletionRange(t,e){const n=this[hr("0x11")][hr("0x8")][hr("0xa")](this.editor[hr("0x8")][hr("0x10")](e,t[hr("0x1")]),this.editor[hr("0x8")][hr("0x10")](e,t.end));for(const t of this[hr("0x11")].model[hr("0xe")][hr("0x16")](hr("0x5")))if(null!==n.getIntersection(t.getRange()))return!0;return!1}}const br=["editor","fontSize","_enableCommand","find","label","change","_descriptionFactory","*Set font family:* %0","model","get","*Reset font size*","plugins","FontSizeEditing","format","enableCommand","registerDescriptionCallback","TrackChangesEditing","selection","*Set font color:* %0","FontSize","value","FontColorEditing","commandParams","trim","toLowerCase","fontSize.options","FontFamilyEditing","fontColor","*Set font background color:* %0","fontBackgroundColor","from","config","document","FontBackgroundColorEditing","*Reset font color*","title","commandName","fontFamily"];var Er,_r;Er=br,_r=336,function(t){for(;--t;)Er.push(Er.shift())}(++_r);const Tr=function(t,e){return br[t-=0]},Cr=[{pluginName:Tr("0x12"),commandName:Tr("0x7")},{pluginName:Tr("0x20"),commandName:Tr("0x5")},{pluginName:Tr("0x1b"),commandName:"fontColor"},{pluginName:Tr("0x1"),commandName:Tr("0x23")}];class yr extends t.Plugin{afterInit(){const t=this.editor.locale;for(const{pluginName:t,commandName:e}of Cr)this[Tr("0x6")].plugins.has(t)&&this[Tr("0x8")](e);this[Tr("0x6")][Tr("0x11")][Tr("0xf")](Tr("0x16"))[Tr("0xc")][Tr("0x15")]((e=>{const n=t.t,{data:o}=e;if(null!=o){if("fontSize"==o[Tr("0x4")]){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=n(this[Tr("0x6")].plugins[Tr("0xf")](Tr("0x19")).normalizeSizeOptions(this[Tr("0x6")][Tr("0x25")][Tr("0xf")](Tr("0x1f"))).find((t=>t[Tr("0xe")]==e))[Tr("0x3")])[Tr("0x1e")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:Tr("0x13"),content:Yo(t,Tr("0x10"))}}if("fontFamily"==o[Tr("0x4")]){const e=o[Tr("0x1c")][0].value;return e?{type:Tr("0x13"),content:Yo(t,Tr("0xd"),e)}:{type:Tr("0x13"),content:Yo(t,"*Reset font family*")}}if(Tr("0x21")==o.commandName){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x6")][Tr("0x25")][Tr("0xf")]("fontColor.colors"))[Tr("0x9")]((t=>t[Tr("0xe")]==e));let r=e,i="";return o&&(r=o[Tr("0xa")],i=n(r)[Tr("0x1e")]()),{type:"format",content:Yo(t,Tr("0x18"),i)[Tr("0x1d")](),color:{value:e,title:i||r}}}return{type:Tr("0x13"),content:Yo(t,Tr("0x2"))}}if(Tr("0x23")==o[Tr("0x4")]){const e=o.commandParams[0][Tr("0x1a")];if(e){const o=(0,s.normalizeColorOptions)(this[Tr("0x6")][Tr("0x25")].get("fontBackgroundColor.colors"))[Tr("0x9")]((t=>t.model==e));let r=e,i="";return o&&(r=o[Tr("0xa")],i=n(r).toLowerCase()),{type:Tr("0x13"),content:Yo(t,Tr("0x22"),i)[Tr("0x1d")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,"*Reset font background color*")}}}}))}[Tr("0x8")](t){const e=this[Tr("0x6")];e.plugins.get(Tr("0x16"))[Tr("0x14")](t,((n,o={})=>{const s=e[Tr("0xe")][Tr("0x0")][Tr("0x17")],r=o[Tr("0x1a")];s.isCollapsed?n(o):e[Tr("0xe")][Tr("0xb")]((()=>{const n=Array[Tr("0x24")](s.getRanges());for(const o of n){const n=r?[o]:Es(t,o,e.model);for(const o of n)e.plugins[Tr("0xf")](Tr("0x16")).markInlineFormat(o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const kr=["copyFormat","commandParams","length","*Remove all formatting*","toUpperCase","markInlineFormat","FontSize","boolean","word","getRanges","pasteFormat","keys","isFormatting","normalizeSizeOptions","isBlock","getLastPosition","locale","createRange","join","_descriptionFactory","commands","fontColor.colors","fontColor","toLowerCase","fontSize.options","config","editor","get","modifySelection","push","enableCommand","fontBackgroundColor","plugins","change","isCollapsed","registerDescriptionCallback","label","model","format","find","from","selection","document","getFirstPosition","split","backward"];var Ar,vr;Ar=kr,vr=105,function(t){for(;--t;)Ar.push(Ar.shift())}(++vr);const Rr=function(t,e){return kr[t-=0]};class Ir extends t.Plugin{afterInit(){const t=this[Rr("0xd")],n=t[Rr("0x18")],o=n[Rr("0x1d")][Rr("0x1c")],s=t[Rr("0x13")].get("TrackChangesEditing"),r=t[Rr("0x3")],i=t[Rr("0x7")][Rr("0xe")](Rr("0x21")),x=t[Rr("0x7")][Rr("0xe")](Rr("0x2b"));i&&x&&(s[Rr("0x11")]("pasteFormat",((t,r={})=>{const i=r;n[Rr("0x14")]((()=>{const t=Array[Rr("0x1b")](o[Rr("0x2a")]()),r=o[Rr("0x15")]?[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.getAttributes()){const t=e.getAttributeProperties(n);t&&t[Rr("0x2d")]&&(yield n)}}(t,n));for(const e of t[Rr("0x2a")]())for(const t of e.getItems())!n[Rr("0x1")](t)&&o(t)&&(yield t);for(const e of t.getSelectedBlocks())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[Rr("0x2c")](i).length)for(const t of r)s[Rr("0x26")](t,{commandName:"pasteFormat",commandParams:[i]})}))})),s[Rr("0x6")][Rr("0x16")]((e=>{const{data:n}=e;if(n&&"pasteFormat"===n.commandName){const e=[],o=n[Rr("0x22")][0];for(const[n,s]of Object.entries(o))e[Rr("0x10")](Lr(t,n,s));return e[Rr("0x23")]?{type:Rr("0x19"),content:Yo(r,"*Set format to:* %0",e[Rr("0x5")](", "))}:{type:Rr("0x19"),content:Yo(r,Rr("0x24"))}}})),t[Rr("0x13")].get("TrackChangesEditing").enableCommand(Rr("0x21")))}}function Sr(t,e){const n=t.createSelection(e);t[Rr("0xf")](n,{unit:Rr("0x29"),direction:Rr("0x20")});const o=n[Rr("0x1e")]();t[Rr("0xf")](n,{unit:"word",direction:"forward"});const s=n[Rr("0x2")]();return t[Rr("0x4")](o,s)}function Lr(t,e,n){const o=t.locale.t,r=e[Rr("0x1f")](/(?=[A-Z])/)[Rr("0x5")](" "),i=o(r.charAt(0)[Rr("0x25")]()+r.slice(1))[Rr("0xa")]();if(Rr("0x28")==typeof n)return i;if(Rr("0x9")===e||Rr("0x12")===e){const e=(0,s.normalizeColorOptions)(t[Rr("0xc")][Rr("0xe")](Rr("0x8")))[Rr("0x1a")]((t=>t[Rr("0x18")]==n));return i+" ("+(e?o(e[Rr("0x17")])[Rr("0xa")]():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get(Rr("0x27"))[Rr("0x0")](t[Rr("0xc")][Rr("0xe")](Rr("0xb")))[Rr("0x1a")]((t=>t.model==n));return i+" ("+(e?o(e.title).toLowerCase():n)+")"}return i+" ("+n+")"}const Nr=["title","schema","commandName","plugins","match","editor","locale","heading","format","enableCommand","TrackChangesEditing","get","HeadingEditing","afterInit","commandParams","value","_descriptionFactory","change","*Change to:* %0","find","parent","markBlockFormat","heading.options","selection","isObject","has","formatBlock","registerElementLabel","model","blockName"];var wr,Mr;wr=Nr,Mr=387,function(t){for(;--t;)wr.push(wr.shift())}(++Mr);const Or=function(t,e){return Nr[t-=0]};class Fr extends t.Plugin{[Or("0x10")](){const t=this[Or("0x8")],e=t[Or("0x9")],n=t.config[Or("0xe")](Or("0x19"));if(!t[Or("0x6")][Or("0x1c")](Or("0xf")))return;const o=t[Or("0x6")][Or("0xe")](Or("0xd"));o[Or("0xc")](Or("0xa"),((e,n)=>{const s=n.value,r=Array.from(this.editor[Or("0x1")].document[Or("0x1a")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this.editor.model[Or("0x4")]).checkChild(e[Or("0x17")],n)&&!o[Or("0x1b")](e)&&e.name!=n;var e,n,o}));t[Or("0x1")][Or("0x14")]((()=>{for(const t of r)o[Or("0x18")](t,{commandName:Or("0xa"),commandParams:[n],formatGroupId:Or("0x2")},_s(t))}))}));for(const t of n)"paragraph"!=t[Or("0x1")]&&o[Or("0x13")][Or("0x0")](t[Or("0x1")],(e=>{const n=Pr(t[Or("0x1")]);return null!==n?s(e,n):r(e,t[Or("0x3")])}));function s(t,n){return Yo(e,"ELEMENT_HEADING",[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Or("0x13")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Or("0x1d")==o&&i&&Or("0xa")==i[Or("0x5")]){const t=i[Or("0x11")][0][Or("0x12")],o=Pr(t);if(null!==o)return{type:Or("0xb"),content:Yo(e,Or("0x15"),s(1,o))};const x=n[Or("0x16")]((e=>e[Or("0x1")]===t))[Or("0x3")];return{type:Or("0xb"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Pr(t){const e=t[Or("0x7")](/^heading(\d+)$/);return e?e[1]:null}const Dr=["toLowerCase","value","model","*Remove highlight*","hasAttribute","editor","TrackChangesEditing","format","FORMAT_HIGHLIGHT","push","highlight.options","document","title","get","formatInline","highlight","isCollapsed","*Set highlight:* %0","commandName","backward","getLastMatchingPosition","commandParams","markInlineFormat","getAttribute","plugins","createRange","enableCommand","selection","change","getFirstPosition","locale","item"];var Br,jr;Br=Dr,jr=371,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{afterInit(){const t=this[Ur("0x12")];if(!t.plugins.has("HighlightEditing"))return;const e=t[Ur("0x5")][Ur("0x1a")](Ur("0x13"));e[Ur("0x7")](Ur("0x1c"),((n,o={})=>{const s=t[Ur("0xf")][Ur("0x18")][Ur("0x8")],r=s[Ur("0x4")](Ur("0x1c"));let i=o[Ur("0xe")],x=[];if(s[Ur("0x1d")]){const e=s[Ur("0xa")]();if(!s[Ur("0x11")](Ur("0x1c")))return void n(o);{const n=t=>t[Ur("0xc")][Ur("0x4")]("highlight")===r,o=e[Ur("0x1")](n,{direction:Ur("0x0")}),s=e[Ur("0x1")](n);x=[t[Ur("0xf")][Ur("0x6")](o,s)],i==r&&(i=null)}}else for(const e of s.getRanges())i?x.push(e):x[Ur("0x16")](...Es(Ur("0x1c"),e,t[Ur("0xf")]));t.model[Ur("0x9")]((()=>{for(const t of x)e[Ur("0x3")](t,{commandName:Ur("0x1c"),commandParams:[{value:i}]})}))}));const n=t[Ur("0xb")];e._descriptionFactory.registerDescriptionCallback((e=>{const{type:o,data:s}=e;if(Ur("0x1b")==o&&s&&Ur("0x1c")==s[Ur("0x1f")]){const e=n.t,o=s[Ur("0x2")][0][Ur("0xe")];if(o){const s=t.config[Ur("0x1a")](Ur("0x17")).find((t=>t[Ur("0xf")]==o)),r=e(s.title)[Ur("0xd")]();return{type:Ur("0x14"),content:Yo(n,Ur("0x1e"),r),color:{value:s.color,title:s[Ur("0x19")]}}}return{type:"format",content:Yo(n,Ur("0x10"),Yo(n,Ur("0x15")))}}}))}}const Hr=["editor","horizontalLine","createContainerElement","div","insert","plugins","TrackChangesEditing","high","HorizontalLineEditing","showSuggestionHighlights","get","addClass","has","elementToStructure","for","ck-horizontal-line","locale","dataDowncast","enableCommand","conversion"];var zr,Wr;zr=Hr,Wr=138,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{afterInit(){const t=this[Vr("0x2")];if(!t[Vr("0x7")][Vr("0xe")](Vr("0xa")))return;t.plugins[Vr("0xc")]("TrackChangesEditing")[Vr("0x0")]("horizontalLine");const e=t[Vr("0x7")][Vr("0xc")](Vr("0x8")),n=t[Vr("0x12")];e._descriptionFactory.registerElementLabel(Vr("0x3"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Vr("0x1")][Vr("0x10")](Vr("0x13"))[Vr("0xf")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[Vr("0xb")])return null;const o=e[Vr("0x4")](Vr("0x5")),s=e.createEmptyElement("hr");return e[Vr("0xd")](Vr("0x11"),o),e[Vr("0x6")](e.createPositionAt(o,0),s),o},converterPriority:Vr("0x9")})}}const qr=["view","getSelectedElement","TrackChangesEditing","get","value","format","ELEMENT_HTML_EMBED","registerDescriptionCallback","cancel","rawHtml","_descriptionFactory","change","locale","rawHtmlApi","HtmlEmbed","model","registerElementLabel","plugins","htmlEmbed","has","element","selection","*Change %0 content*","getCustomProperty","document","getAttribute"];var Xr,$r;Xr=qr,$r=434,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.editor;if(!t[Jr("0x19")][Jr("0x1")](Jr("0x16")))return;const e=t[Jr("0x19")][Jr("0xb")]("TrackChangesEditing"),n=t[Jr("0x14")],o=t.editing[Jr("0x8")][Jr("0x6")][Jr("0x3")];e._descriptionFactory[Jr("0x18")](Jr("0x11"),(t=>Yo(n,Jr("0xe"),t))),t[Jr("0x19")][Jr("0xb")](Jr("0xa")).enableCommand("htmlEmbed",((n,s)=>{const r=t[Jr("0x17")],i=r[Jr("0x6")][Jr("0x3")];r[Jr("0x13")]((()=>{const t=function(t){const e=t.getSelectedElement();return e&&e.is(Jr("0x2"),"rawHtml")?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t[Jr("0x7")](Jr("0xc"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:Jr("0x0"),commandParams:[s]}),o[Jr("0x9")]()[Jr("0x5")](Jr("0x15"))[Jr("0x10")]())}))})),e[Jr("0x12")][Jr("0xf")]((t=>{const{data:e}=t;if(e&&Jr("0x0")==e.commandName){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:Jr("0xd"),content:Yo(n,Jr("0x4"),t)}}}))}}const Zr=["isInlineImage","toNext","schema","*Reset image width*","accept","ImageCaptionUtils","discard","convertInlineImageToBlock","commandParams","forceDefaultExecution","createRange","formatBlock","ImageUploadEditing","value","newValue","locale","FORMAT_SIDE_IMAGE","normalizedStyles","imageTypeInline","length","hasSuggestion","imageTextAlternative","isCollapsed","isBlockImage","imageStylePostApply","ELEMENT_IMAGE","ImageInlineEditing","_findSuggestions","head","differ","Block image to inline image","element","alt","getNearestSelectionRange","_descriptionFactory","imageStylePreApply","*Remove image text alternative*","end","ImageBlockEditing","isEqual","imageBlock","filter","getAttribute","type","detach","commandName","findIndex","ELEMENT_INLINE_IMAGE","ImageEditing","getFirstRange","nodeAfter","registerElementLabel","imageCaption","insertImage","*Set image text alternative:* %0","caption","resizeImage","subType","markDeletion","*Set image width:* %0","width","has","_suggestionFactory","ImageUtils","markInsertion","insertion","registerDescriptionCallback","markInlineFormat","imageStyle","toPrevious","start","registerCustomCallback","plugins","ELEMENT_CAPTION","setImageNaturalSizeAttributes","chain","get","isOwn","convertBlockImageToInline","suggestion","markBlockFormat","change","title","hasAttribute","imageTypeBlock","getSuggestionCallback","imageInline","deletion","addObject","previous","resizedWidth","next","ImageCaptionEditing","Users","document","getCaptionFromImageModelElement","format","getSuggestions","join","forward","getContainedElement","createRangeOn","*Format:* %0","uploadImage","model","getClosestSelectedImageElement","refresh","_splitMarkerName","fromPosition","ImageResize","forEach","isBefore","newRange","enableCommand","selection","find","formatInline","backward","commands","ImageStyleEditing","removeObject","getChangedMarkers","discardSuggestion","name"];var Yr,ti;Yr=Zr,ti=294,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){const t=this.editor;if(!t[ei("0x1a")].has(ei("0x2")))return;const n=t.plugins[ei("0x1e")]("TrackChangesEditing"),o=t.plugins[ei("0x1e")](ei("0x11")),s={},r=t[ei("0x5d")];if(n.enableCommand(ei("0x7")),n[ei("0x70")][ei("0x5")](ei("0x76"),(t=>Yo(r,ei("0x67"),t))),n._descriptionFactory.registerElementLabel(ei("0x28"),(t=>Yo(r,ei("0x1"),t))),n[ei("0x70")][ei("0x5")](ei("0x9"),(()=>Yo(r,ei("0x1b")))),t[ei("0x1a")].has(ei("0x5a"))&&n.enableCommand(ei("0x39")),t[ei("0x1a")][ei("0xf")](ei("0x74"))&&t.plugins[ei("0xf")](ei("0x68"))&&(n[ei("0x43")]("imageTypeInline",((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")].selection);t[ei("0x3a")][ei("0x23")]((()=>{n[ei("0x22")](r,{commandName:"imageTypeInline",commandParams:[s]},[],ei("0x20"))}))})),n[ei("0x43")](ei("0x26"),((e,s)=>{t.model[ei("0x23")]((r=>{let x=o.getClosestSelectedImageElement(t[ei("0x3a")].document[ei("0x44")]),a=r[ei("0x37")](x);const c=i.LivePosition[ei("0x3e")](a.start,ei("0x17")),l=i.LivePosition[ei("0x3e")](a[ei("0x73")],ei("0x4f"));n[ei("0x57")]((()=>e(s))),x=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")].selection),a=r[ei("0x37")](x);const u=r[ei("0x58")](c,l);c[ei("0x7a")](),l[ei("0x7a")](),n[ei("0x22")](x,{commandName:ei("0x60"),commandParams:[s]},[],ei("0x55")),u.start[ei("0x41")](a[ei("0x18")])&&n[ei("0x12")](r.createRange(u.start,a[ei("0x18")]),ei("0x55")),a.end.isBefore(u[ei("0x73")])&&n.markInsertion(r[ei("0x58")](a[ei("0x73")],u[ei("0x73")]),ei("0x55"))}))})),n[ei("0x10")][ei("0x19")](ei("0x59"),"convertInlineImageToBlock",ei("0x34"),(()=>!1)),n._suggestionFactory.registerCustomCallback("formatBlock",ei("0x55"),ei("0x52"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x59"),ei("0x55"),ei("0x54"),n[ei("0x10")].getSuggestionCallback("formatBlock","","accept")),n[ei("0x10")][ei("0x19")]("insertion","convertInlineImageToBlock","join",(()=>!1)),n[ei("0x10")][ei("0x19")](ei("0x13"),ei("0x55"),ei("0x54"),(([e])=>{const o=n[ei("0x10")].getSuggestionCallback(ei("0x13"),"",ei("0x54"));let s=e[ei("0x18")],r=e[ei("0x73")];const i=t[ei("0x3a")][ei("0x50")].getNearestSelectionRange(s,ei("0x47")),x=t[ei("0x3a")].schema[ei("0x6f")](r,ei("0x35"));i[ei("0x64")]&&(s=i[ei("0x18")]),x.isCollapsed&&(r=x[ei("0x73")]),o([t[ei("0x3a")].createRange(s,r)])})),n._suggestionFactory[ei("0x19")](ei("0x59"),ei("0x55"),ei("0x1d"),c),n[ei("0x10")].registerCustomCallback("insertion",ei("0x55"),"chain",c)),t.plugins[ei("0xf")](ei("0x2e"))&&(n[ei("0x43")]("toggleImageCaption",((e,s)=>{const r=t[ei("0x1a")][ei("0x1e")](ei("0x53"));let i=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")][ei("0x44")]),x=r[ei("0x31")](i);t[ei("0x3a")][ei("0x23")]((()=>{if(x)return void n[ei("0xc")](t[ei("0x3a")][ei("0x37")](x));const a=o[ei("0x65")](i);e(s),i=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")][ei("0x44")]),x=r[ei("0x31")](i),n[ei("0x12")](t[ei("0x3a")].createRangeOn(x),a?null:"imageCaption")}))})),n[ei("0x10")][ei("0x19")](ei("0x13"),ei("0x6"),ei("0x1d"),c)),t[ei("0x1a")][ei("0xf")](ei("0x49"))){n[ei("0x43")](ei("0x16"),((s,r)=>{const i=t[ei("0x1a")][ei("0x1e")](ei("0x2f")).me,x=t[ei("0x48")][ei("0x1e")](ei("0x16"));let a=o[ei("0x3b")](t[ei("0x3a")].document[ei("0x44")]),c=t[ei("0x3a")][ei("0x37")](a),l=x[ei("0x5b")];if(l==r[ei("0x5b")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[ei("0x23")]((()=>{if(n[ei("0x33")]()[ei("0x77")]((t=>t.isInContent&&i==t.author&&("formatBlock"==t[ei("0x79")]||ei("0x46")==t[ei("0x79")])&&(ei("0x71")==t.subType||ei("0x66")==t[ei("0xb")])&&t[ei("0x3")]().isEqual(c)))[ei("0x40")]((t=>n.discardSuggestion(t[ei("0x6a")]))),a=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")].selection),c=t.model[ei("0x37")](a),x[ei("0x3c")](),t.commands[ei("0x1e")](ei("0x60"))[ei("0x3c")](),t[ei("0x48")].get(ei("0x26"))[ei("0x3c")](),l=x[ei("0x5b")],l!=r[ei("0x5b")])return o[ei("0x4e")](a)&&x.shouldConvertImageType(r.value,a)?(s({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[ei("0x3a")][ei("0x30")][ei("0x44")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],ei("0x71"))):void(o[ei("0x65")](a)?n[ei("0x22")](a,u,[],ei("0x66")):n[ei("0x15")](c,u,ei("0x66")))}))}));for(const e of t[ei("0x1a")].get(ei("0x49"))[ei("0x5f")])s[e[ei("0x4d")]]=e[ei("0x24")].toLowerCase();n[ei("0x10")].registerCustomCallback(ei("0x59"),"imageStylePreApply",ei("0x34"),(()=>!1)),n[ei("0x10")][ei("0x19")](ei("0x59"),"imageStylePostApply",ei("0x34"),(()=>!1)),n[ei("0x10")][ei("0x19")]("formatInline",ei("0x66"),ei("0x34"),(()=>!1)),n[ei("0x10")].registerCustomCallback(ei("0x59"),ei("0x71"),ei("0x52"),(([t])=>{o[ei("0x1c")](t.getContainedElement())})),n[ei("0x10")][ei("0x19")](ei("0x59"),"imageStylePreApply",ei("0x54"),((t,e)=>{n[ei("0x10")][ei("0x27")](ei("0x59"),"",ei("0x52"))(t,{commandName:e[ei("0x7b")],commandParams:e.commandReversedParams})})),n._suggestionFactory.registerCustomCallback(ei("0x59"),ei("0x71"),ei("0x1d"),c)}const x=[{type:ei("0x59"),subType:"imageStylePreApply"},{type:ei("0x13"),subType:ei("0x6")},{type:ei("0x59"),subType:"convertInlineImageToBlock"},{type:"insertion",subType:"convertInlineImageToBlock"}];function a(t,e){const s=x[ei("0x0")]((({type:e,subType:n})=>t[ei("0x79")]==e&&t.subType==n)),r=x[ei("0x0")]((({type:t,subType:n})=>e[ei("0x79")]==t&&e[ei("0xb")]==n));if(s<0||r<0)return!1;const i=t[ei("0x3")](),a=e[ei("0x3")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[ei("0x69")](i,ei("0x13"))[ei("0x77")]((({suggestion:t,meta:e})=>e[ei("0x1f")]&&ei("0x55")==t.subType));if(t[ei("0x61")]>1&&a.end[ei("0x75")](i[ei("0x18")]))return!0;if(1==t.length&&(i[ei("0x18")][ei("0x75")](a[ei("0x73")])||i[ei("0x73")][ei("0x75")](a.start)))return!0}if(3==s&&3==r&&i.start.isBefore(a[ei("0x18")])){const t=i.end[ei("0x4")],e=a[ei("0x18")].nodeBefore;return o[ei("0x65")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[ei("0x30")].registerPostFixer((()=>{let e=!1;const s=Array.from(t.model[ei("0x30")][ei("0x6b")][ei("0x4b")]());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[ei("0x3d")](t);if(ei("0x21")==s&&n[ei("0x62")](a)){if(ei("0x59")==i&&(ei("0x71")==x||ei("0x66")==x)){const t=n.getSuggestion(a);if(r[ei("0x42")]){const s=t[ei("0x3")]().getContainedElement();if(o.isBlockImage(s))continue;n[ei("0x4c")](t),e=!0}}if(ei("0x13")==i&&ei("0x6")==x&&!r[ei("0x42")]){const t=n.getSuggestion(a);t.next&&t[ei("0x2d")].isInContent&&(n[ei("0x4c")](t[ei("0x2d")]),e=!0)}}}return e})),t[ei("0x1a")].has(ei("0x3f"))&&n[ei("0x43")]("resizeImage",((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")][ei("0x30")][ei("0x44")]);r[ei("0x78")](ei("0x2c"))!=s.width&&t[ei("0x3a")][ei("0x23")]((()=>{n[ei("0x22")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[ei("0x1a")][ei("0xf")]("ImageTextAlternativeEditing")&&n[ei("0x43")](ei("0x63"),((e,s)=>{const r=o[ei("0x3b")](t[ei("0x3a")].document.selection);(r[ei("0x25")]("alt")?r[ei("0x78")](ei("0x6e")):"")!=s[ei("0x5c")]&&t[ei("0x3a")][ei("0x23")]((()=>{n.markBlockFormat(r,{commandName:ei("0x63"),commandParams:[s]})}))})),n[ei("0x70")][ei("0x14")]((t=>{if(x[ei("0x45")]((({type:e,subType:n})=>t[ei("0x79")]==e&&t.subType==n)))return t[ei("0x2b")]?{}:void 0})),n[ei("0x70")][ei("0x14")]((t=>{if(ei("0x13")==t.type||ei("0x29")==t[ei("0x79")]){const e=t[ei("0x36")]();if(e&&e.is(ei("0x6d"),ei("0x9")))return{type:ei("0x13")==t.type?ei("0x2a"):ei("0x4a"),element:e,quantity:1}}})),n[ei("0x70")][ei("0x14")]((t=>ei("0x59")==t.type&&ei("0x55")==t[ei("0xb")]?{type:ei("0x32"),content:"Inline image to block image"}:ei("0x59")==t.type&&ei("0x20")==t.subType?{type:ei("0x32"),content:ei("0x6c")}:void 0)),n[ei("0x70")].registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(ei("0x16")==e[ei("0x7b")]){const t=e[ei("0x56")][0][ei("0x5b")];return n="side"===t?Yo(r,ei("0x5e")):s[t]||t,{type:ei("0x32"),content:Yo(r,ei("0x38"),n)}}if("imageTextAlternative"==e.commandName){const t=e[ei("0x56")][0][ei("0x5c")];return t?{type:ei("0x32"),content:Yo(r,ei("0x8"),'"'+t+'"')}:{type:ei("0x32"),content:Yo(r,ei("0x72"))}}if(ei("0xa")==e[ei("0x7b")]){const t=e.commandParams[0][ei("0xe")];return t?{type:"format",content:Yo(r,ei("0xd"),t)}:{type:ei("0x32"),content:Yo(r,ei("0x51"))}}}var n}))}}const oi=["get","data","replaceImageSource","getAttribute","handleSuggestionDescription","*Format:* replace image URL","ImageEditing","accept","subType","registerDescriptionCallback","registerCustomCallback","plugins","getContainedElement","discard","formatBlock","selection","handleReplaceImageCommand","markBlockFormat","source","TrackChangesEditing","Users","document","editor","enableCommand","commandParams","commandName","getSuggestions","model","src"];var si,ri;si=oi,ri=425,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{afterInit(){if(!this[ii("0x3")].plugins.has(ii("0x10")))return;const t=this[ii("0x3")][ii("0x15")].get(ii("0x0"));t[ii("0x4")](ii("0xc"),((t,e)=>this[ii("0x1a")](t,e))),t._suggestionFactory.registerCustomCallback(ii("0x18"),"replaceImageSource",ii("0x11"),t._suggestionFactory.getSuggestionCallback(ii("0x18"),null,ii("0x17"))),t._suggestionFactory[ii("0x14")](ii("0x18"),ii("0xc"),ii("0x17"),t._suggestionFactory.getSuggestionCallback(ii("0x18"),null,ii("0x11"))),t._descriptionFactory[ii("0x13")]((t=>this[ii("0xe")](t)))}[ii("0x1a")](t,e){const n=this[ii("0x3")][ii("0x15")][ii("0xa")]("TrackChangesEditing"),o=this[ii("0x3")].model[ii("0x2")][ii("0x19")].getSelectedElement();this[ii("0x3")][ii("0x8")].change((()=>{let s=o[ii("0xd")](ii("0x9"));const r=this[ii("0x3")][ii("0x15")][ii("0xa")](ii("0x1")).me;for(const t of n[ii("0x7")]({skipNotAttached:!0})){const e=t[ii("0x16")]();if(ii("0xc")===t[ii("0x12")]&&e===o){t.author!==r&&t[ii("0x17")](),s=t[ii("0xb")][ii("0x5")][0][ii("0x1c")];break}}t(e),n[ii("0x1b")](o,{commandName:ii("0xc"),commandParams:[{source:s}]},[],"replaceImageSource")}))}[ii("0xe")](t){const{data:e}=t;if(e&&"replaceImageSource"===e[ii("0x6")]){const t=ii("0xf");return{type:"format",content:Yo(this.editor.locale,t)}}}}const ai=["get","lowest","_handleImportedData","_trackChangesExecuted","value","_trackChangesValueDuringImport","execute","bind","enableCommand","forEach","listenTo","trackChanges","track_changes","TrackChangesEditing","collaboration_features","plugins","importWord","high","_setSuggestionData","commands","dataInsert","editor","afterInit"];var ci,li;ci=ai,li=123,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("0x14")]=!1,this._trackChangesExecuted=!1}[ui("0xe")](){const t=this[ui("0xd")],e=t[ui("0xb")][ui("0xf")](ui("0x8")),n=t[ui("0xb")][ui("0xf")](ui("0x3"));e&&(e.on(ui("0x15"),((t,[,e])=>{this._trackChangesValueDuringImport=n[ui("0x13")],e[ui("0x6")][ui("0x4")]=!this[ui("0x14")]}),{priority:ui("0x9")}),this[ui("0x2")](e,ui("0xc"),this[ui("0x11")][ui("0x16")](this)),this[ui("0x2")](e,ui("0xc"),(()=>{this[ui("0x12")]&&(n[ui("0x15")](),this[ui("0x12")]=!1)}),{priority:ui("0x10")}),t[ui("0x7")][ui("0xf")](ui("0x5"))[ui("0x0")](ui("0x8")))}[ui("0x11")](t,e){const{suggestions:n}=e,o=this.editor[ui("0xb")].get(ui("0x3")),s=o[ui("0x13")];this[ui("0x14")]!==s&&(o[ui("0x15")](),this[ui("0x12")]=!0),n&&n[ui("0x1")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor.plugins[ui("0xf")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ui("0x8")}}};this[ui("0xd")].plugins[ui("0xf")]("TrackChangesEditing")[ui("0xa")](s)}))}}const gi=["getItemLabel","TrackChangesEditing","locale","IndentEditing","_descriptionFactory","checkAttribute","outdentBlock","filter","has","afterInit","blockIndent","editor","schema","selection","registerDescriptionCallback","plugins","markBlockFormat","document","commandName","indentBlock","enableCommand","model","from","get","IndentBlock","format","change","getItems","indent","outdent","getSelectedBlocks"];var mi,fi;mi=gi,fi=353,function(t){for(;--t;)mi.push(mi.shift())}(++fi);const hi=function(t,e){return gi[t-=0]};class pi extends t.Plugin{[hi("0x1c")](){const t=this.editor,e=t.plugins[hi("0xb")](hi("0x14"));t[hi("0x3")][hi("0x1b")](hi("0x16"))&&(e[hi("0x8")](hi("0x10")),e[hi("0x8")](hi("0x11")));const n=t[hi("0x15")];if(t[hi("0x3")].has(hi("0xc"))){for(const n of["indentBlock",hi("0x19")])e.enableCommand(n,(()=>{const o=Array[hi("0xa")](this[hi("0x1e")][hi("0x9")][hi("0x5")][hi("0x1")][hi("0x12")]())[hi("0x1a")]((t=>this.editor[hi("0x9")][hi("0x0")][hi("0x18")](t,hi("0x1d"))));t.model[hi("0xe")]((()=>{for(const t of o)e[hi("0x4")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:"indentBlock"})}))}));e[hi("0x17")][hi("0x2")]((t=>{const{data:o}=t;if(!o)return;if(hi("0x7")!=o[hi("0x6")]&&hi("0x19")!=o[hi("0x6")])return;const s=t[hi("0xf")]()[0],r=e[hi("0x17")][hi("0x13")](s);return hi("0x7")==o[hi("0x6")]?{type:hi("0xd"),content:Yo(n,"*Indent:* %0",r)}:hi("0x19")==o[hi("0x6")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var bi,Ei,_i=["enableCommand","input","init","editor","requires","TrackChangesEditing"];bi=_i,Ei=155,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("0x5")](){return[Js.Input]}[Ti("0x3")](){this[Ti("0x4")].plugins.get(Ti("0x0"))[Ti("0x1")](Ti("0x2"))}}const yi=["isCollapsed","commandParams","TrackChangesEditing","model","commandName","*Set link:* %0","hasAttribute","editor","enableCommand","format","getFirstPosition","has","linkHref","selection","unlink","markInlineFormat","link","_descriptionFactory","registerDescriptionCallback","getRanges","get","document","getAttribute","getFirstRange","change","plugins"];var ki,Ai;ki=yi,Ai=276,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{afterInit(){const t=this[vi("0x11")];if(!t[vi("0x9")][vi("0x15")]("LinkEditing"))return;const e=t[vi("0x9")][vi("0x4")](vi("0xc"));e.enableCommand(vi("0x0"),((n,o)=>{const s=t.model[vi("0x5")][vi("0x17")];let r=[];if(s[vi("0xa")]){if(!s[vi("0x10")](vi("0x16")))return void n(o);{const e=(0,Js.findAttributeRange)(s[vi("0x14")](),vi("0x16"),s[vi("0x6")](vi("0x16")),t[vi("0xd")]);r=[e]}}else r=Array.from(s[vi("0x3")]());t[vi("0xd")][vi("0x8")]((()=>{for(const t of r)e[vi("0x19")](t,{commandName:vi("0x0"),commandParams:[o]})}))})),e[vi("0x12")](vi("0x18"),(()=>{const n=this[vi("0x11")][vi("0xd")],o=n.document[vi("0x17")];n.change((()=>{let n=[];n=o[vi("0xa")]?[(0,Js.findAttributeRange)(o[vi("0x14")](),vi("0x16"),o.getAttribute(vi("0x16")),t[vi("0xd")])]:Es(vi("0x16"),o[vi("0x7")](),t[vi("0xd")]);for(const t of n)e[vi("0x19")](t,{commandName:vi("0x18"),commandParams:[]})}))})),e[vi("0x1")][vi("0x2")]((e=>{const{data:n}=e,o=t.locale;if(n){if(vi("0x0")==n[vi("0xe")]){const t=n[vi("0xb")][0];return{type:vi("0x13"),content:Yo(o,vi("0xf"),'"'+t+'"')}}return vi("0x18")==n[vi("0xe")]?{type:vi("0x13"),content:Yo(o,"*Remove link*")}:void 0}}))}}const Ii=["TrackChangesEditing","schema","has","nextSibling","createPositionAt","blockName","*Change to:* %0","numbered","outdentList","getAttribute","name","forceValue","document","*Outdent:* %0","listItem","*Uncheck item*","_descriptionFactory","change","indentList","bulleted","registerDescriptionCallback","listIndent","*Check item*","filter","editor","from","List","push","get","createRange","afterInit","todoList","numberedList","locale","previousSibling","add","plugins","execute","element","before","parent","enableCommand","checkTodoList","commands","model","selection","bulletedList","ELEMENT_LIST_ITEM","markBlockFormat","slice","todo","isObject","format","registerElementLabel","listType","commandName","ELEMENT_BULLETED_LIST","value","commandParams"];var Si,Li;Si=Ii,Li=232,function(t){for(;--t;)Si.push(Si.shift())}(++Li);const Ni=function(t,e){return Ii[t-=0]};class wi extends t.Plugin{[Ni("0x22")](){const t=this[Ni("0x1c")],e=t[Ni("0x25")];if(!t[Ni("0x28")][Ni("0x6")]("ListEditing"))return;const n=t.plugins[Ni("0x20")](Ni("0x4")),o=t[Ni("0x28")][Ni("0x6")]("TodoListEditing");function s(e){return()=>{const o=t.model.document[Ni("0x31")],s=t.commands.get(e);if(s.value)return void t[Ni("0x29")]("paragraph",{});const r=e[Ni("0x35")](0,-4),i=function(t,e,n){let o=Array[Ni("0x1d")](t)[Ni("0x1b")]((t=>{return e=t,(o=n).checkChild(e[Ni("0x2c")],Ni("0x12"))&&!o[Ni("0x37")](e);var e,o}));o=o[Ni("0x1b")]((t=>!t.is(Ni("0x2a"),Ni("0x12"))||t[Ni("0xd")](Ni("0x3a"))!=e));const s=new Set;for(const t of o)t.is(Ni("0x2a"),"listItem")?s[Ni("0x27")](Mi(t)):s.add(t);return Array[Ni("0x1d")](s)}(o.getSelectedBlocks(),r,t[Ni("0x30")][Ni("0x5")]);t[Ni("0x30")][Ni("0x15")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[Ni("0x2")]}],formatGroupId:Ni("0x9")},Oi(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ni("0x1d")](t);const n=e.findIndex((t=>Ni("0x12")!=t.name));return n>-1&&(e=e[Ni("0x35")](0,n)),e}(t[Ni("0x30")][Ni("0x10")][Ni("0x31")].getSelectedBlocks()),s=t[Ni("0x30")][Ni("0x21")](t[Ni("0x30")][Ni("0x8")](o[0],Ni("0x2b")),t[Ni("0x30")][Ni("0x8")](o[o.length-1],"end"));t[Ni("0x30")][Ni("0x15")]((()=>{n[Ni("0x34")](s,{commandName:e,commandParams:[],formatGroupId:Ni("0x19")},function(t){const e=new Set;for(const n of t){let t=n[Ni("0x7")];for(;t&&t[Ni("0xd")](Ni("0x19"))>n[Ni("0xd")](Ni("0x19"));)e[Ni("0x27")](t),t=t[Ni("0x7")]}return Array.from(e)}(o))}))}}n.enableCommand(Ni("0x24"),s(Ni("0x24"))),n[Ni("0x2d")](Ni("0x32"),s(Ni("0x32"))),o&&n[Ni("0x2d")](Ni("0x23"),s(Ni("0x23"))),n[Ni("0x2d")]("indentList",r(Ni("0x16"))),n.enableCommand(Ni("0xc"),r(Ni("0xc"))),o&&n[Ni("0x2d")](Ni("0x2e"),(()=>{const e=t[Ni("0x2f")].get("checkTodoList"),o=Array[Ni("0x1d")](e._selectedElements);o.filter((t=>t[Ni("0xd")]("todoListChecked")!=e.value)),t[Ni("0x30")].change((()=>{for(const t of o)n.markBlockFormat(t,{commandName:Ni("0x2e"),commandParams:[{forceValue:!e[Ni("0x2")]}]})}))})),n[Ni("0x14")][Ni("0x39")]("listItem",(t=>Yo(e,Ni("0x33"),t))),n[Ni("0x14")][Ni("0x18")]((t=>{const{data:n}=t;if(n){if(Ni("0x24")==n[Ni("0x0")]||Ni("0x32")==n.commandName||Ni("0x23")==n.commandName)switch(n[Ni("0x0")].replace(Ni("0x1e"),"")){case Ni("0x17"):return o(Yo(e,Ni("0x1")));case Ni("0xb"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case Ni("0x36"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if(Ni("0x16")==n[Ni("0x0")])return{type:Ni("0x38"),content:Yo(e,"*Indent:* %0",Yo(e,Ni("0x33")))};if(Ni("0xc")==n[Ni("0x0")])return{type:Ni("0x38"),content:Yo(e,Ni("0x11"),Yo(e,Ni("0x33")))};if(Ni("0x2e")==n[Ni("0x0")])return n[Ni("0x3")][0][Ni("0xf")]?{type:Ni("0x38"),content:Yo(e,Ni("0x1a"))}:{type:"format",content:Yo(e,Ni("0x13"))}}function o(t){return{type:"format",content:Yo(e,Ni("0xa"),t)}}}))}}function Mi(t){const e=t[Ni("0xd")](Ni("0x19"));if(0==e)return t;let n=t;for(;t[Ni("0x26")]&&t[Ni("0x26")].is(Ni("0x2a"),Ni("0x12"));){const o=t.previousSibling[Ni("0xd")](Ni("0x19"));if(o==e)n=t[Ni("0x26")];else if(o<e)break;t=t.previousSibling}return n}function Oi(t){const e=[];if(t.is(Ni("0x2a"),"listItem")&&t[Ni("0xd")](Ni("0x19"))>0){let n=t[Ni("0x7")];for(;n&&Ni("0x12")==n[Ni("0xe")]&&n[Ni("0xd")](Ni("0x19"))==t[Ni("0xd")](Ni("0x19"));)e[Ni("0x1f")](n),n=n[Ni("0x7")]}return e}const Fi=["format","handleListStartCommand","getFirstPosition","handleListReversedCommand","filter","handleDescriptions","change","listReversed","listType","ListPropertiesEditing","config","commandName","from","markMultiRangeBlockFormat","*Format:* set order to regular","startIndex","bind","_descriptionFactory","type","has","model","TrackChangesEditing","element","getSiblingNodes","ELEMENT_","unshift","handleListStyleCommand","map","reversed","selection","forward","_getSuggestionBlocksForListStyle","parent","createPositionAt","getLastPosition","numbered","locale","afterInit","toUpperCase","list.properties","enableCommand","backward","_getTranslationKeyForListStyle","listStyle","length","styles","commandParams","listStart","before","push","plugins","createRange","_LIST_","editor","get","*Change to:* %0","*Format:* set start index to %0","listItem","getAttribute","ListUtils","replace","_getSuggestionBlocks","document"];var Pi,Di;Pi=Fi,Di=177,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x31")](){if(!this.editor[Bi("0x3e")][Bi("0x1f")](Bi("0x15")))return;const t=this[Bi("0x2")][Bi("0x16")][Bi("0x3")](Bi("0x33")),e=this.editor[Bi("0x3e")][Bi("0x3")]("TrackChangesEditing");t[Bi("0x39")]&&e[Bi("0x34")](Bi("0x37"),this[Bi("0x26")][Bi("0x1c")](this)),t.reversed&&e[Bi("0x34")](Bi("0x13"),this[Bi("0xf")].bind(this)),t[Bi("0x1b")]&&e[Bi("0x34")](Bi("0x3b"),this[Bi("0xd")][Bi("0x1c")](this)),e[Bi("0x1d")].registerDescriptionCallback(this[Bi("0x11")].bind(this))}[Bi("0x26")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0x2b")]();this[Bi("0x2")][Bi("0x20")][Bi("0x12")]((()=>{n[Bi("0x19")](o,{commandName:Bi("0x37"),commandParams:[{type:e[Bi("0x1e")]}],formatGroupId:"listStyle"})}))}[Bi("0xf")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0xa")]((t=>t.is(Bi("0x22"),"listItem")&&"numbered"===t[Bi("0x7")](Bi("0x14"))));if(o[Bi("0x38")]<1)return;const s=o[Bi("0x27")]((t=>this[Bi("0x2")][Bi("0x20")][Bi("0x0")](this[Bi("0x2")].model.createPositionAt(t,Bi("0x3c")),this[Bi("0x2")][Bi("0x20")].createPositionAt(t,0))));this[Bi("0x2")][Bi("0x20")][Bi("0x12")]((()=>{n[Bi("0x19")](s,{commandName:Bi("0x13"),commandParams:[{reversed:e[Bi("0x28")]}],formatGroupId:Bi("0x13")})}))}[Bi("0xd")](t,e={}){const n=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x21")),o=this[Bi("0xa")]((t=>t.is("element",Bi("0x6"))&&Bi("0x2f")===t[Bi("0x7")](Bi("0x14"))));if(o[Bi("0x38")]<1)return;const s=o[Bi("0x27")]((t=>this[Bi("0x2")][Bi("0x20")].createRange(this[Bi("0x2")][Bi("0x20")][Bi("0x2d")](t,Bi("0x3c")),this[Bi("0x2")][Bi("0x20")][Bi("0x2d")](t,0))));this[Bi("0x2")][Bi("0x20")].change((()=>{n[Bi("0x19")](s,{commandName:"listStart",commandParams:[{startIndex:e[Bi("0x1b")]}],formatGroupId:Bi("0x3b")})}))}[Bi("0x11")](t){const e=this[Bi("0x2")][Bi("0x30")],{data:n}=t;if(!n)return;let o,s;switch(n[Bi("0x17")]){case"listStyle":o=Bi("0x4"),s={type:"format",content:Yo(e,o,Yo(e,this[Bi("0x36")](n[Bi("0x3a")][0].type)))};break;case"listReversed":o=n[Bi("0x3a")][0][Bi("0x28")]?"*Format:* set order to reversed":Bi("0x1a"),s={type:Bi("0xc"),content:Yo(e,o)};break;case Bi("0x3b"):o=Bi("0x5"),s={type:Bi("0xc"),content:Yo(e,o,n.commandParams[0][Bi("0x1b")])}}return s}[Bi("0x2b")](){var t,e,n,o;const s=this[Bi("0x2")][Bi("0x3e")][Bi("0x3")](Bi("0x8"));let r=Array.from(this[Bi("0x2")][Bi("0x20")].document[Bi("0x29")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is(Bi("0x22"),Bi("0x6")))&&r[Bi("0x25")](...s[Bi("0x23")](this[Bi("0x2")].model[Bi("0xb")][Bi("0x29")][Bi("0xe")](),Bi("0x35"))),(null===(e=r[r[Bi("0x38")]-1])||void 0===e?void 0:e.is(Bi("0x22"),Bi("0x6")))&&r[Bi("0x3d")](...s[Bi("0x23")](this[Bi("0x2")][Bi("0x20")][Bi("0xb")][Bi("0x29")][Bi("0x2e")](),Bi("0x2a"))),r=[...new Set(r)],(null===(o=null===(n=this[Bi("0x2")][Bi("0x20")].document[Bi("0x29")][Bi("0xe")]())||void 0===n?void 0:n[Bi("0x2c")])||void 0===o?void 0:o.is(Bi("0x22"),"listItem"))&&(r=r[Bi("0x10")]((t=>t.is(Bi("0x22"),Bi("0x6"))))),r}[Bi("0xa")](t){const e=this.editor[Bi("0x3e")][Bi("0x3")](Bi("0x8"));let n=Array[Bi("0x18")](this[Bi("0x2")][Bi("0x20")][Bi("0xb")][Bi("0x29")].getSelectedBlocks())[Bi("0x10")](t)[Bi("0x27")]((t=>{const n=this[Bi("0x2")].model[Bi("0x2d")](t,0);return[...e[Bi("0x23")](n,Bi("0x35")),...e.getSiblingNodes(n,Bi("0x2a"))]})).flat();return n=[...new Set(n)],n}[Bi("0x36")](t){return Bi("0x24")+this.editor[Bi("0x3e")][Bi("0x3")]("ListUtils").getListTypeFromListStyleType(t)[Bi("0x32")]()+Bi("0x1")+t[Bi("0x32")]()[Bi("0x9")](/-/g,"_")}}const Ui=["TrackChangesEditing","createEmptyElement","div","ELEMENT_MEDIA","dataDowncast","downcastDispatcher","editor","mediaEmbed","options","plugins","showSuggestionHighlights","media","high","_descriptionFactory","afterInit","stop","attribute:url:media","has"];var Gi,Hi;Gi=Ui,Hi=100,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x4")](){const t=this[zi("0xe")];if(!t[zi("0x11")][zi("0x7")]("MediaEmbedEditing"))return;const e=t[zi("0x11")].get(zi("0x8")),n=t.locale;e.enableCommand(zi("0xf")),e[zi("0x3")].registerElementLabel("media",(t=>Yo(n,zi("0xb"),t))),t.conversion.for(zi("0xc")).elementToElement({model:zi("0x1"),view:(t,{writer:e,options:n})=>{if(n[zi("0x0")])return e[zi("0x9")](zi("0xa"))},converterPriority:"high"}),t.data[zi("0xd")].on(zi("0x6"),((t,e,n)=>{n[zi("0x10")][zi("0x0")]&&t[zi("0x5")]()}),{priority:zi("0x2")})}}const Vi=["afterInit","has","TrackChangesEditing","plugins","MentionEditing"];var Ki,qi;Ki=Vi,qi=413,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.editor;t.plugins[Xi("0x3")](Xi("0x1"))&&t[Xi("0x0")].get(Xi("0x4")).enableCommand("mention")}}const Ji=["get","afterInit","_descriptionFactory","ELEMENT_PAGE_BREAK","plugins","TrackChangesEditing","PageBreakEditing","editor","locale","pageBreak","registerElementLabel","has"];var Qi,Zi;Qi=Ji,Zi=407,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x2")](){const t=this[Yi("0x8")];if(!t[Yi("0x5")][Yi("0x0")](Yi("0x7")))return;t[Yi("0x5")][Yi("0x1")](Yi("0x6")).enableCommand(Yi("0xa"));const e=t.plugins.get(Yi("0x6")),n=t[Yi("0x9")];e[Yi("0x3")][Yi("0xb")](Yi("0xa"),(t=>Yo(n,Yi("0x4"),t)))}}const ex=["nodeAfter","paragraph","consumable","registerElementLabel","insertParagraph","isBlock","has","name","insert","includes","format","$text","highest","TrackChangesEditing","data","writer","options","plugins","getFirstRange","downcastDispatcher","checkChild","start","span","ck-suggestion-marker--active","enableCommand","selection","_descriptionFactory","blockName","mapper","getItemLabel","ELEMENT_PARAGRAPH","registerDescriptionCallback","editor","isLimit","document","markerRange","from","type","insertion","getSelectedBlocks","schema","locale","editing","activeMarkers","ck-suggestion-marker-split","addMarker:suggestion:insertion","toViewPosition","end","isTouching","addClass","get","createUIElement","markerName","model","isObject"];var nx,ox;nx=ex,ox=125,function(t){for(;--t;)nx.push(nx.shift())}(++ox);const sx=function(t,e){return ex[t-=0]};class rx extends t.Plugin{afterInit(){const t=this.editor;if(!t[sx("0x2")][sx("0x2e")]("Paragraph"))return;const e=t[sx("0x1a")],n=t[sx("0x2")].get(sx("0x35"));n[sx("0xb")][sx("0x2b")](sx("0x29"),(t=>Yo(e,sx("0xf"),t))),n[sx("0x9")]("paragraph",((e,o={})=>{const s=t[sx("0x26")][sx("0x13")],r=o[sx("0xa")]||s.selection,i=Array[sx("0x15")](r[sx("0x18")]()).filter((t=>{return e=t,(n=this[sx("0x11")][sx("0x26")][sx("0x19")])[sx("0x5")](e.parent,sx("0x29"))&&!n[sx("0x27")](e)&&sx("0x29")!=e[sx("0x2f")];var e,n}));t[sx("0x26")].change((()=>{for(const t of i)n.markBlockFormat(t,{commandName:sx("0x29"),commandParams:[],formatGroupId:sx("0xc")},_s(t))}))})),n[sx("0xb")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&sx("0x29")==n.commandName)return{type:sx("0x32"),content:Yo(e,"*Change to:* %0",Yo(e,sx("0xf")))}})),n.enableCommand(sx("0x2c")),t[sx("0x1b")][sx("0x4")].on(sx("0x1e"),ix(t),{priority:sx("0x34")}),t[sx("0x36")][sx("0x4")].on(sx("0x1e"),((e,n,o)=>{o[sx("0x1")].showSuggestionHighlights&&ix(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[sx("0xb")];o[sx("0x10")]((n=>{if(sx("0x17")!==n[sx("0x16")])return;const{start:s,end:r}=n[sx("0x3")]();if(!s[sx("0x21")](r)||!s.nodeAfter)return;const i=t.model[sx("0x19")],x=s[sx("0x28")];return i[sx("0x2d")](x)&&!i[sx("0x12")](x)&&i.checkChild(x,sx("0x33"))?{type:sx("0x17"),content:Yo(e,"*Insert:* %0",o[sx("0xe")](x,1))}:void 0}))}}function ix(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[sx("0x2")][sx("0x23")](sx("0x35")),i=o[sx("0x14")][sx("0x6")],x=o[sx("0x14")][sx("0x20")],a=t[sx("0x26")][sx("0x19")];if(!i[sx("0x21")](x)||!i.nodeAfter)return;const c=i[sx("0x28")];if(a.isBlock(c)&&!a[sx("0x12")](c)&&a[sx("0x5")](c,sx("0x33"))){if(!s[sx("0x2a")].consume(o[sx("0x14")],n.name))return;const t=s[sx("0x0")][sx("0x24")](sx("0x7"),{class:sx("0x1d")}),i=s[sx("0xd")][sx("0x1f")](x);e&&r[sx("0x1c")][sx("0x31")](o[sx("0x25")])&&s.writer[sx("0x22")](sx("0x8"),t),s[sx("0x0")][sx("0x30")](i,t),s[sx("0xd")].bindElementToMarker(t,o[sx("0x25")])}}}const xx=["schema","isCollapsed","markInlineFormat","TrackChangesEditing","model","editor","getAttributes","getRanges","*Remove all formatting*","removeFormat","getAttributeProperties","RemoveFormatEditing","commandName","selection","format","document","from","_descriptionFactory","getItems","plugins","get","registerDescriptionCallback","createRangeOn"];var ax,cx;ax=xx,cx=149,function(t){for(;--t;)ax.push(ax.shift())}(++cx);const lx=function(t,e){return xx[t-=0]};class ux extends t.Plugin{afterInit(){const t=this[lx("0x11")];if(!t[lx("0x8")].has(lx("0x0")))return;const e=t[lx("0x8")][lx("0x9")](lx("0xf"));e.enableCommand(lx("0x15"),(n=>{const o=t[lx("0x10")][lx("0x4")][lx("0x2")];o[lx("0xd")]?n():t[lx("0x10")].change((()=>{const n=Array[lx("0x5")](o[lx("0x13")]());for(const o of n)for(const n of o[lx("0x7")]())dx(n,t.model[lx("0xc")])&&e[lx("0xe")](t[lx("0x10")][lx("0xb")](n),{commandName:"removeFormat",commandParams:[]})}))})),e[lx("0x6")][lx("0xa")]((e=>{const{data:n}=e;if(n&&lx("0x15")==n[lx("0x1")])return{type:lx("0x3"),content:Yo(t.locale,lx("0x14"))}}))}}function dx(t,e){for(const[n]of t[lx("0x12")]()){const t=e[lx("0x16")](n);if(t&&t.isFormatting)return!0}return!1}const gx=["acceptSuggestion","acceptSelectedSuggestions","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","editor","get","enableCommand","TrackChangesEditing","discardAllSuggestions","afterInit","discardSuggestion","plugins","has"];var mx,fx;mx=gx,fx=311,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{[hx("0xa")](){const t=this[hx("0x5")];if(!t[hx("0xc")][hx("0x0")]("RestrictedEditingModeEditing"))return;const e=t[hx("0xc")][hx("0x6")](hx("0x8"));e[hx("0x7")](hx("0x3")),e[hx("0x7")]("goToNextRestrictedEditingException");const n=t[hx("0xc")].get(hx("0x4"));n[hx("0x7")]("trackChanges"),n.enableCommand(hx("0x1")),n[hx("0x7")](hx("0xb")),n[hx("0x7")]("acceptAllSuggestions"),n[hx("0x7")](hx("0x9")),n.enableCommand(hx("0x2")),n[hx("0x7")]("discardSelectedSuggestions")}}const bx=["shiftEnter","name","ck-suggestion-marker--active","ck-suggestion-marker-","locale","model","plugins","enableCommand","addMarker:suggestion:deletion","high","_descriptionFactory","consumable","markerRange","TrackChangesEditing","downcastDispatcher","mapper","activeMarkers","options","includes","get","editing","registerElementLabel","bindElementToMarker","markerName","test","addMarker:suggestion:insertion","data","element","split","insert","addMarker:suggestion","createUIElement","merge","requires","softBreak","writer","init"];var Ex,_x;Ex=bx,_x=229,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("0x1a")](){return[xr.ShiftEnter]}[Tx("0x1d")](){const t=this.editor,e=t[Tx("0x24")][Tx("0xc")](Tx("0x6"));e[Tx("0x0")](Tx("0x1e")),t[Tx("0xd")][Tx("0x7")].on(Tx("0x12"),yx(t),{priority:Tx("0x2")}),t[Tx("0xd")][Tx("0x7")].on(Tx("0x1"),yx(t),{priority:Tx("0x2")}),t[Tx("0x13")][Tx("0x7")].on(Tx("0x17"),((e,n,o)=>{o[Tx("0xa")].showSuggestionHighlights&&yx(t,{showActiveMarker:!1})(e,n,o)})),e[Tx("0x3")][Tx("0xe")]("softBreak",(e=>Yo(t[Tx("0x22")],"ELEMENT_LINE_BREAK",e)))}}function yx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins[Tx("0xc")](Tx("0x6"));if(!s[Tx("0x4")][Tx("0x11")](o[Tx("0x5")],n[Tx("0x1f")]))return;const i=t[Tx("0x23")];for(const t of o.markerRange.getItems()){if(!t.is(Tx("0x14"),Tx("0x1b")))continue;const n="deletion"==o[Tx("0x10")][Tx("0x15")](":")[1]?Tx("0x19"):Tx("0x15"),x=s[Tx("0x1c")][Tx("0x18")]("span",{class:Tx("0x21")+n}),a=s.mapper.toViewPosition(i.createPositionBefore(t));e&&r[Tx("0x9")][Tx("0xb")](o[Tx("0x10")])&&s[Tx("0x1c")].addClass(Tx("0x20"),x),s.writer[Tx("0x16")](a,x),s[Tx("0x8")][Tx("0xf")](x,o[Tx("0x10")])}}}const kx=["format","document","locale","TrackChangesEditing","restrictedEditingException","enableCommand","value","afterInit","isCollapsed","from","_descriptionFactory","change","model","plugins","StandardEditingModeEditing","get","registerDescriptionCallback","commands","getRanges","selection","markInlineFormat","has","forceValue"];var Ax,vx;Ax=kx,vx=387,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0xb")](){const t=this.editor,e=t[Rx("0x10")],n=t[Rx("0x6")];if(!t[Rx("0x11")][Rx("0x2")](Rx("0x12")))return;const o=t[Rx("0x11")][Rx("0x13")](Rx("0x7")),s=Rx("0x8"),r=t[Rx("0x15")][Rx("0x13")](s);o[Rx("0x9")](s,((t,n={})=>{const i=e[Rx("0x5")][Rx("0x0")];if(i[Rx("0xc")])return void t(n);const x=void 0!==n.forceValue?n[Rx("0x3")]:!r[Rx("0xa")];e[Rx("0xf")]((()=>{const t=Array[Rx("0xd")](i[Rx("0x16")]());for(const n of t){const t=x?[n]:Es(s,n,e);for(const e of t)o[Rx("0x1")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[Rx("0xe")][Rx("0x14")]((t=>{const{data:e}=t;if(e&&e.commandName==s)return e.commandParams[0][Rx("0x3")]?{type:Rx("0x4"),content:Yo(n,"FORMAT_RESTRICTED_ENABLED")}:{type:Rx("0x4"),content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const Sx=["change","modelElements","getSelectedBlocks","includes","markBlockFormat","style.definitions","normalizeConfig","*Remove format:* %0","find","StyleUtils","locale","getDefinitionsForView","editor","_getRangesWithClasses","styleName","from","inline","registerDescriptionCallback","model","_getStyleDefinition","style","push","getAncestors","*Format:* %0","selection","commandParams","style:","createRangeOn","TrackChangesEditing","Style","commandName","getRanges","plugins","toLowerCase","config","classes","enabledStyles","get","enableCommand","name","afterInit","isCollapsed","document"];var Lx,Nx;Lx=Sx,Nx=450,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const wx=function(t,e){return Sx[t-=0]};class Mx extends t.Plugin{[wx("0x14")](){const t=this[wx("0x23")];if(!t[wx("0xc")].has(wx("0x9")))return;const e=t.commands[wx("0x11")](wx("0x0")),n=t[wx("0xc")][wx("0x11")](wx("0x8")),o=t[wx("0x21")],s=t.plugins.get("DataSchema"),r=t[wx("0xc")][wx("0x11")](wx("0x20"))[wx("0x1d")](s,t[wx("0xe")][wx("0x11")](wx("0x1c")));n[wx("0x12")](wx("0x0"),((o,{styleName:i})=>{const x=t[wx("0x29")][wx("0x16")][wx("0x4")],a=this[wx("0x2a")](i,r);if(!a)return;if(!e[wx("0x10")][wx("0x1a")](i))return;if(x[wx("0x15")]&&!a.isBlock)return void o({styleName:i});const c=!e.value[wx("0x1a")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[wx("0x2")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o[wx("0x13")])){n.add(o);break}}return n}(x[wx("0x19")](),a[wx("0x18")]);t.model[wx("0x17")]((()=>{for(const t of e)n[wx("0x1b")](t,{commandName:wx("0x0"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:wx("0x6")+i})}))}else{let e=Array[wx("0x26")](x[wx("0xb")]());if(!c){const n=Array.from(s[wx("0x22")](a.element,!1))[0][wx("0x29")],o=[];for(const s of e){const e=this[wx("0x24")](t.model,s,a[wx("0xf")],n);o[wx("0x1")](...e)}e=o}t[wx("0x29")][wx("0x17")]((()=>{for(const t of e)n.markInlineFormat(t,{commandName:wx("0x0"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[wx("0x28")]((t=>{const{data:e}=t;if(e&&wx("0x0")===e[wx("0xa")])return e.commandParams[0].forceValue?{type:"format",content:Yo(o,wx("0x3"),e[wx("0x5")][0][wx("0x25")][wx("0xd")]())}:{type:"format",content:Yo(o,wx("0x1e"),e.commandParams[0][wx("0x25")][wx("0xd")]())}}))}[wx("0x2a")](t,e){let n=e.block.find((e=>e[wx("0x13")]===t));return n||(n=e[wx("0x27")][wx("0x1f")]((e=>e.name===t))),n}_getRangesWithClasses(t,e,n,o){const s=[];for(const r of e.getItems()){const e=r.getAttribute(o);e&&n.every((t=>e[wx("0xf")][wx("0x1a")](t)))&&s[wx("0x1")](t[wx("0x7")](r))}return s}}const Ox=["*Insert:* %0","model","toViewElement","insertTable","change","suggestion","*Remove:* %0","_tableSuggestions","locale","root","createTableWalker","getRowIndexes","element","selectTableColumn","span","ELEMENT_TABLE","cell","isTouching","getChildren","subType","discard","mapper","getSelectionAffectedTableCells","getContainedElement","classes","findAncestor","_suggestionFactory","_splitMarkerName","ELEMENT_TABLE_COLUMN","join","has","highest","enqueueChange","registerElementLabel","MIN_SAFE_INTEGER","colspan","getItems","addClass","differ","maxColumn","insertion","markMultiRangeInsertion","minColumn","addRange","TableUtils","getCellLocation","forceValue","getSuggestion","registerCustomCallback","length","document","push","tableRow","get","_setupColumnsRowsFixing","getChangedMarkers","isEqual","rowspan","_getCoordsForCells","some","maxRow","end","selectTableRow","plugins","ELEMENT_TABLE_ROW","_getSuggestionCoords","fromRange","hasAttribute","$graveyard","above","markMultiRangeDeletion","registerDescriptionCallback","type","getAttribute","oldRange","ELEMENT_TABLE_COLUMN_WITH_TEXT","setSelection","last","selection","_tablePostFixingSubtypes","nodeAfter","ELEMENT_TABLE_WITH_TEXT","max","insert","position","ELEMENT_TABLE_ROW_WITH_TEXT","start","map","data","getRanges","detach","insertTableRowAbove","table","writer","createRangeOn","enableCommand","minRow","$textProxy","from","removeTableRow","rootName","_descriptionFactory","order","name","tablePaste","addMarker:suggestion","add","removeClass","tableCell","getColumnIndexes","nodeBefore","tableColumn","getFirstRange","removeTableColumn","refresh","TrackChangesEditing","options","first","downcastDispatcher","substr","TableEditing","_acceptFormatSuggestionCallbackFactory","afterInit","execute","deletion","startsWith","editor","commands","filter","insertTableRowBelow","min","batch","toLowerCase"];var Fx,Px;Fx=Ox,Px=395,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("0x53")]=[Dx("0x38"),Dx("0x73")],this[Dx("0xb")]=new Set}[Dx("0x7e")](){const t=this[Dx("0x82")],e=t[Dx("0x5")].document[Dx("0x52")];if(!t.plugins[Dx("0x22")](Dx("0x7c")))return;const n=t[Dx("0xc")],o=t[Dx("0x43")].get(Dx("0x77")),s=t[Dx("0x43")][Dx("0x39")](Dx("0x30"));o[Dx("0x69")][Dx("0x25")](Dx("0x60"),(t=>Yo(n,Dx("0x13"),t))),this[Dx("0x3a")](),o[Dx("0x63")](Dx("0x7")),o.enableCommand(Dx("0x42")),o[Dx("0x63")](Dx("0x11"));for(const n of[Dx("0x5f"),Dx("0x0")]){const r=t[Dx("0x83")][Dx("0x39")](n);o[Dx("0x63")](n,(n=>{t[Dx("0x5")][Dx("0x8")]((t=>{n();const i=Dx("0x49")===r[Dx("0x6a")],x=s[Dx("0x1a")](e),a=s[Dx("0xf")](x),c=i?a.first-1:a.last+1,l=x[0][Dx("0x1d")](Dx("0x60")),u=s.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Dx("0x66")](u)[Dx("0x5b")]((e=>t[Dx("0x62")](e[Dx("0x14")])));o.markMultiRangeInsertion(d,"tableRow")}))}))}for(const n of["insertTableColumnLeft","insertTableColumnRight"]){const r=t.commands[Dx("0x39")](n);o[Dx("0x63")](n,(n=>{t[Dx("0x5")][Dx("0x8")]((t=>{n();const i="left"===r[Dx("0x6a")],x=s[Dx("0x1a")](e),a=s.getColumnIndexes(x),c=i?a.first-1:a[Dx("0x51")]+1,l=x[0][Dx("0x1d")](Dx("0x60")),u=s[Dx("0xe")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Dx("0x66")](u)[Dx("0x5b")]((e=>t[Dx("0x62")](e.cell)));o[Dx("0x2d")](d,Dx("0x73"))}))}))}for(const n of[Dx("0x67"),Dx("0x75")]){const r=n.substr(11),i=r[Dx("0x3")](),x=i[Dx("0x7b")](0,3)+Dx("0x12"),a=Dx("0x60")+r,c=Dx("0x1")+r,l="max"+r;o[Dx("0x63")](n,(()=>{t[Dx("0x5")].change((t=>{const r=s[Dx("0x1a")](e),u=r[0].findAncestor(Dx("0x60"));let d;if(Dx("0x67")==n){const t=s[Dx("0xf")](r);d={startRow:t[Dx("0x79")],endRow:t[Dx("0x51")],includeAllSlots:!0}}else{const t=s[Dx("0x71")](r);d={startColumn:t[Dx("0x79")],endColumn:t.last,includeAllSlots:!0}}const g=s[Dx("0xe")](u,d),m=Array[Dx("0x66")](g)[Dx("0x5b")]((({cell:t})=>t)),f=jx(m[Dx("0x84")]((t=>t[Dx("0x47")](x)))),h=jx(m.filter((t=>!t[Dx("0x47")](x))))[Dx("0x5b")]((e=>t[Dx("0x62")](e))),p=o[Dx("0x4a")](h,a);if(p&&(Dx("0x38")==p[Dx("0x17")]||"tableColumn"==p[Dx("0x17")])){const e=this[Dx("0x45")](p);for(const n of f){const o=t[Dx("0x62")](n),r=s[Dx("0x31")](n),a=n[Dx("0x4d")](x)-1,u=e[c],d=e[l];u<=r[i]&&r[i]+a<=d&&p[Dx("0x2f")](o)}}}))}))}function r(n){const o=Array[Dx("0x66")](e[Dx("0x5d")]())[Dx("0x5b")]((t=>i.LiveRange[Dx("0x46")](t)));t[Dx("0x5")][Dx("0x8")]((e=>{const s=e[Dx("0x2")];n=n[Dx("0x84")]((t=>"$graveyard"!=t[Dx("0xd")][Dx("0x68")])),e[Dx("0x50")](n),t[Dx("0x83")][Dx("0x39")](Dx("0x67"))[Dx("0x76")](),t.execute(Dx("0x67"),{forceDefaultExecution:!0}),t.model[Dx("0x24")]((()=>{t[Dx("0x5")][Dx("0x24")](s,(t=>{const e=o[Dx("0x84")]((t=>Dx("0x48")!=t.root.rootName));e.length>0&&t[Dx("0x50")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Dx("0x5")][Dx("0x8")]((o=>{const s=Array[Dx("0x66")](e[Dx("0x5d")]())[Dx("0x5b")]((t=>i.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Dx("0x37")](e);for(const e of r)"$graveyard"!=e[Dx("0xd")][Dx("0x68")]&&(o[Dx("0x50")](o.createPositionAt(e,0)),t.commands[Dx("0x39")]("removeTableColumn")[Dx("0x76")](),t.execute(Dx("0x75"),{forceDefaultExecution:!0}));const x=s.filter((t=>"$graveyard"!=t.root[Dx("0x68")]));x[Dx("0x35")]>0&&o[Dx("0x50")](x);for(const t of s)t[Dx("0x5e")]()}))}function c(t,e){return e.every((e=>t[Dx("0x3f")]((t=>t[Dx("0x41")][Dx("0x3c")](e[Dx("0x5a")])||e[Dx("0x41")][Dx("0x3c")](t.start)))))}function l(t,e){return t[Dx("0x3f")]((t=>e.some((e=>t[Dx("0x41")][Dx("0x15")](e[Dx("0x5a")])))))}t[Dx("0x5c")][Dx("0x7a")].on(Dx("0x6d"),((t,e,n)=>{if(!n[Dx("0x78")].showSuggestionHighlights)return;const o=e.item;if(!o)return;const s=n[Dx("0x19")][Dx("0x6")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Dx("0x70")===o[Dx("0x6b")]&&(0,x.setHighlightHandling)(s,n[Dx("0x61")],((t,e,n)=>n[Dx("0x29")](r(e[Dx("0x1c")]),t)),((t,e,n)=>n[Dx("0x6f")](r(e[Dx("0x1c")]),t)))}),{priority:Dx("0x23")}),o[Dx("0x69")][Dx("0x4b")]((t=>{if("insertion"!=t[Dx("0x4c")]&&Dx("0x80")!=t[Dx("0x4c")])return;const e=t[Dx("0x1b")]();if(null!=e&&e.is(Dx("0x10"),Dx("0x60"))){if(Dx("0x2c")==t[Dx("0x4c")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")]));if(e.length)return{type:Dx("0x2c"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x55"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Dx("0x4c")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")]));if(e.length)return{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e[Dx("0x21")](" ")+'"'))}}}})),o._descriptionFactory[Dx("0x4b")]((t=>{if(Dx("0x38")==t[Dx("0x17")]){const e=t.getItems()[Dx("0x84")]((t=>t.is(Dx("0x65"))))[Dx("0x5b")]((t=>t[Dx("0x5c")])),o=this[Dx("0x45")](t),s=o[Dx("0x40")]-o[Dx("0x64")]+1;if("insertion"==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x59"),[s,'"'+e.join(" ")+'"']))}:{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x44"),s))};if(Dx("0x80")==t[Dx("0x4c")])return e[Dx("0x35")]?{type:"deletion",content:Yo(n,Dx("0xa"),Yo(n,"ELEMENT_TABLE_ROW_WITH_TEXT",[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x44"),s))}}if("tableColumn"==t[Dx("0x17")]){const e=t[Dx("0x28")]()[Dx("0x84")]((t=>t.is("$textProxy"))).map((t=>t.data)),o=this[Dx("0x45")](t),s=o[Dx("0x2b")]-o[Dx("0x2e")]+1;if(Dx("0x2c")==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x2c"),content:Yo(n,"*Insert:* %0",Yo(n,Dx("0x4f"),[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x2c"),content:Yo(n,Dx("0x4"),Yo(n,Dx("0x20"),s))};if("deletion"==t[Dx("0x4c")])return e[Dx("0x35")]?{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x4f"),[s,'"'+e[Dx("0x21")](" ")+'"']))}:{type:Dx("0x80"),content:Yo(n,Dx("0xa"),Yo(n,Dx("0x20"),s))}}})),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),Dx("0x38"),Dx("0x18"),r),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),Dx("0x38"),"accept",r),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),"tableColumn",Dx("0x18"),a),o[Dx("0x1e")].registerCustomCallback(Dx("0x80"),"tableColumn","accept",a),o._suggestionFactory[Dx("0x34")](Dx("0x2c"),Dx("0x73"),"join",c),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),Dx("0x73"),Dx("0x21"),c),o[Dx("0x1e")].registerCustomCallback(Dx("0x2c"),Dx("0x38"),Dx("0x21"),l),o[Dx("0x1e")][Dx("0x34")](Dx("0x80"),"tableRow",Dx("0x21"),l)}[Dx("0x7d")](){const t=this[Dx("0x82")],e=t[Dx("0x5")][Dx("0x36")][Dx("0x52")];return(n,o)=>{t[Dx("0x5")].change((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Dx("0x41")][Dx("0x72")];x&&x[0]&&!1===x[0][Dx("0x32")]&&(a=n[0].start[Dx("0x54")]);const c=s.createRangeIn(a);if(Dx("0x48")==c[Dx("0xd")][Dx("0x68")])return;const l=Array[Dx("0x66")](e.getRanges())[Dx("0x5b")]((t=>i.LiveRange[Dx("0x46")](t)));s[Dx("0x50")](c),t[Dx("0x83")].get(r)[Dx("0x76")](),x[Dx("0x37")]({forceDefaultExecution:!0}),t[Dx("0x7f")](r,...x);const u=l[Dx("0x84")]((t=>"$graveyard"!=t.root[Dx("0x68")]));u[Dx("0x35")]>0&&s[Dx("0x50")](u);for(const t of l)t[Dx("0x5e")]()}))}}[Dx("0x3e")](t){const e=this.editor[Dx("0x43")][Dx("0x39")](Dx("0x30"));let n=Number.MAX_SAFE_INTEGER,o=Number[Dx("0x26")],s=Number.MAX_SAFE_INTEGER,r=Number[Dx("0x26")];for(const i of t){if(Dx("0x48")==i[Dx("0xd")][Dx("0x68")])continue;const{row:t,column:x}=e[Dx("0x31")](i),a=i[Dx("0x47")](Dx("0x3d"))?i[Dx("0x4d")](Dx("0x3d"))-1:0,c=i[Dx("0x47")](Dx("0x27"))?i.getAttribute("colspan")-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("0x3a")](){const t=this[Dx("0x82")],e=t[Dx("0x43")].get(Dx("0x77")),n=t[Dx("0x43")].get(Dx("0x30"));t[Dx("0x5")][Dx("0x36")].on("change:data",(()=>{const n=Array[Dx("0x66")](t[Dx("0x5")][Dx("0x36")][Dx("0x2a")][Dx("0x3b")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Dx("0x1f")](t);if(Dx("0x9")!=n)continue;if(null!=o[Dx("0x4e")])continue;const i=e[Dx("0x33")](s);this[Dx("0x53")].includes(r)&&this[Dx("0xb")][Dx("0x6e")](i)}}),{priority:"low"});const o=(t,e)=>{let o=!1;const s=e[Dx("0x62")](t),r=t.findAncestor("table"),i=n[Dx("0x31")](t);for(const e of this[Dx("0xb")]){const n=e[Dx("0x17")],x=n[Dx("0x81")](Dx("0x6c")),a=n[Dx("0x7b")](x?10:5),c=a[Dx("0x3")](),l=c.substr(0,3)+Dx("0x12"),u="min"+a,d=Dx("0x56")+a;if(!e.isInContent)continue;if(r!=e[Dx("0x74")]()[Dx("0x5a")].findAncestor(Dx("0x60")))continue;if(e.isIntersectingWithRange(s))continue;const g=t[Dx("0x47")](l)?t.getAttribute(l)-1:0,m=this[Dx("0x45")](e),f=m[u],h=m[d];f<=i[c]&&i[c]+g<=h&&(e[Dx("0x2f")](s),o=!0)}return o};t.model[Dx("0x36")].registerPostFixer((e=>{let n=!1;for(const s of t[Dx("0x5")][Dx("0x36")][Dx("0x2a")].getChanges())if(Dx("0x57")==s.type)if(Dx("0x38")==s.name)for(const t of s[Dx("0x58")][Dx("0x54")][Dx("0x16")]())n=n||o(t,e);else"tableCell"==s.name&&(n=n||o(s[Dx("0x58")][Dx("0x54")],e));return n}))}_getSuggestionCoords(t){return this._getCoordsForCells(t[Dx("0x5d")]()[Dx("0x5b")]((t=>t[Dx("0x5a")][Dx("0x54")])))}}function jx(t){return Array[Dx("0x66")](new Set(t).values())}const Ux=["find","afterInit","*Merge cells*","registerCustomCallback","format","filter","forceDefaultExecution","size","mergeTableCells","root","createRangeOn","registerDescriptionCallback","_areSelectedCellsMergable","getRanges","document","containsRange","getSuggestions","requires","set:isEnabled","stop","editor","has","value","enableCommand","commandName","change","low","accept","refresh","add","formatBlock","commands","tableCell","mergeTableCellRight","plugins","splitTableCellVertically","markBlockFormat","findAncestor","selection","cell","map","from","setSelection","TableUtils","horizontally","execute","getAncestors","mergeTableCellLeft","isEnabled","length","mergeTableCellUp","*Split cell:* vertically","return","model","type","markMultiRangeBlockFormat","_areMergableCells","isInContent","highest","locale","insertion","getCellLocation","TableEditing","element","get","splitTableCellHorizontally","getFirstPosition","$graveyard","mergeTableCellDown","*Split cell:* horizontally","fromRange","getSelectionAffectedTableCells","trackChanges","createTableWalker","author","_suggestionFactory","subType","table","direction"];var Gx,Hx;Gx=Ux,Hx=114,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("0x3d")](){return[Bx]}[zx("0x2d")](){const t=this[zx("0x40")],e=t[zx("0x12")][zx("0x3a")][zx("0x3")],n=t[zx("0x18")];if(!t[zx("0x4e")][zx("0x41")](zx("0x1b")))return;const o=t[zx("0x4e")][zx("0x1d")]("TrackChangesEditing"),s=t[zx("0x4e")][zx("0x1d")](zx("0x8")),r=t.plugins[zx("0x1d")](Bx);r._tablePostFixingSubtypes.push(zx("0x34")),o.enableCommand(zx("0x34"),(()=>{const e=s[zx("0x24")](t.model[zx("0x3a")][zx("0x3")]);t[zx("0x12")][zx("0x45")]((()=>{o[zx("0x14")](e,{commandName:"mergeTableCells",commandParams:[]},[],zx("0x34"))}))})),t.commands[zx("0x1d")](zx("0x34")).on(zx("0xa"),((e,n)=>{t.commands[zx("0x1d")](zx("0x25"))[zx("0x42")]&&(n[zx("0xe")]>0&&n[n[zx("0xe")]-1]&&n[n.length-1][zx("0x32")]||o._isForcedDefaultExecutionBlock||this[zx("0x38")]()||e[zx("0x3f")]())}),{priority:zx("0x17")});for(const e of[zx("0xf"),zx("0x4d"),zx("0x21"),zx("0xc")]){const n=t.commands[zx("0x1d")](e);o[zx("0x43")](e,(()=>{const e=t[zx("0x12")][zx("0x3a")][zx("0x3")].getFirstPosition()[zx("0xb")]()[zx("0x2c")]((t=>t.is(zx("0x1c"),zx("0x4c")))),s=n[zx("0x42")];t[zx("0x12")][zx("0x45")]((()=>{o[zx("0x14")]([e,s],{commandName:zx("0x34"),commandParams:[]},[],zx("0x34"))}))}))}for(const e of[zx("0x0"),zx("0x1e")]){const n=t[zx("0x4b")][zx("0x1d")](e);o[zx("0x43")](e,(()=>{const r=s[zx("0x24")](t[zx("0x12")].document.selection)[0],i=r[zx("0x2")](zx("0x2a")),{column:x,row:a}=s[zx("0x1a")](r);let c=[];if(zx("0x9")==n[zx("0x2b")]){const t=s[zx("0x26")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[zx("0x5")]((t=>t[zx("0x4")]))}else{const t=s[zx("0x26")](i,{column:x,includeAllSlots:!0});c=Array[zx("0x6")](t)[zx("0x5")]((t=>t.cell))}t.model.change((t=>{o[zx("0x1")](t[zx("0x36")](r),{commandName:e,commandParams:[]},c,e)}))}))}o._descriptionFactory[zx("0x37")]((t=>{const{data:e}=t;if(e)return zx("0x34")==e.commandName?{type:zx("0x30"),content:Yo(n,zx("0x2e"))}:void 0})),o._descriptionFactory[zx("0x37")]((t=>{const{data:e}=t;if(e)return zx("0x0")==e[zx("0x44")]?{type:"format",content:Yo(n,zx("0x10"))}:"splitTableCellHorizontally"==e.commandName?{type:zx("0x30"),content:Yo(n,zx("0x22"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[zx("0xf"),zx("0x4d"),zx("0x21"),zx("0xc")])o[zx("0x28")][zx("0x2f")](zx("0x4a"),t,zx("0x47"),x);for(const t of[zx("0x0"),zx("0x1e")])o[zx("0x28")][zx("0x2f")](zx("0x4a"),t,zx("0x47"),x);o._suggestionFactory[zx("0x2f")]("formatBlock","mergeTableCells",zx("0x47"),(n=>{t.model[zx("0x45")]((o=>{const s=Array[zx("0x6")](e[zx("0x39")]())[zx("0x5")]((t=>i.LiveRange[zx("0x23")](t)));o[zx("0x7")](n),t[zx("0x4b")][zx("0x1d")](zx("0x34"))[zx("0x48")](),t[zx("0xa")]("mergeTableCells",{forceDefaultExecution:!0});const r=s[zx("0x31")]((t=>zx("0x20")!=t[zx("0x35")].rootName));r[zx("0xe")]>0&&o.setSelection(r);for(const t of s)t.detach()}))}));for(const e of[zx("0xf"),zx("0x21"),zx("0xc"),"mergeTableCellRight"]){const n=t[zx("0x4b")][zx("0x1d")](e);n.on(zx("0x3e"),((e,o,s)=>{if(s){const o=t[zx("0x12")][zx("0x3a")][zx("0x3")][zx("0x1f")]()[zx("0xb")]()[zx("0x2c")]((t=>t.is("element",zx("0x4c"))));this[zx("0x15")](n[zx("0x42")],o)||(e[zx("0x11")]=!1,e[zx("0x3f")]())}}),{priority:zx("0x46")})}}_areSelectedCellsMergable(){const t=this[zx("0x40")][zx("0x4b")][zx("0x1d")](zx("0x34")),e=this[zx("0x40")][zx("0x4e")][zx("0x1d")](zx("0x8"));if(!t[zx("0xd")])return!1;const n=e[zx("0x24")](this[zx("0x40")][zx("0x12")][zx("0x3a")][zx("0x3")]);for(const t of n)for(const e of n)if(t!=e&&!this[zx("0x15")](t,e))return!1;return!0}[zx("0x15")](t,e){const n=this.editor.plugins[zx("0x1d")]("TrackChangesEditing"),o=this[zx("0x40")].model[zx("0x36")](t),s=this[zx("0x40")][zx("0x12")].createRangeOn(e),r=new Set,i=new Set;for(const t of n[zx("0x3c")]())if((zx("0x19")==t.type||"deletion"==t.type||zx("0x34")==t[zx("0x29")])&&t[zx("0x16")])for(const e of t[zx("0x39")]())e.containsRange(o,!0)&&r[zx("0x49")](t[zx("0x13")]+":"+t[zx("0x27")].id),e[zx("0x3b")](s,!0)&&i[zx("0x49")](t[zx("0x13")]+":"+t[zx("0x27")].id);if(r[zx("0x33")]!=i[zx("0x33")])return!1;for(const t of r)if(!i[zx("0x41")](t))return!1;return!0}}const Vx=["forceValue","getAttribute","setAttribute","removeMarker:suggestion","stop","FORMAT_REGULAR_COLUMN","addMarker:suggestion","_splitMarkerName","format","locale","unbindElementFromMarkerName","consume","options","createPositionAfter","requires","consumable","from","selection","setTableRowHeader","ck-suggestion-marker--active","commandName","formatBlock","get","cell","end","createTableWalker","bindElementToMarker","addClass","model","plugins","isBefore","createRange","table","data-suggestion","has","getSuggestion","removeClass","headingColumns","registerDescriptionCallback","*Format:* %0","childCount","commandParams","mapper","editor","markerNameToElements","activeMarkers","editing","index","getColumnIndexes","downcastDispatcher","FORMAT_HEADER_ROW","value","start","afterInit","setTableColumnHeader","registerCustomCallback","findAncestor","writer","parent","highest","commands","_suggestionFactory","getChild","markerName","document","headingRows","enableCommand","accept","change","createPositionBefore","last","first","name","getSelectionAffectedTableCells","toViewElement","getCellLocation","markerRange","data","TableEditing","FORMAT_HEADER_COLUMN","item"];var Kx,qx;Kx=Vx,qx=254,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[Xx("0x3")](){return[Bx]}[Xx("0x2a")](){const t=this[Xx("0x20")];if(!t[Xx("0x12")][Xx("0x17")](Xx("0x43")))return;const e=t[Xx("0x4f")],n=t[Xx("0x12")].get("TrackChangesEditing"),o=t[Xx("0x12")].get("TableUtils"),s=t[Xx("0x12")][Xx("0xb")](Bx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[Xx("0x4d")](r[Xx("0x34")]),c=n[Xx("0x18")](a);if(!c[Xx("0x42")]||"setTableColumnHeader"!=c.data[Xx("0x9")])return;if(r[Xx("0x45")])return void s[Xx("0x4a")]();if(!i[Xx("0x4")][Xx("0x0")](r[Xx("0x41")],s[Xx("0x3d")]))return;const l=r[Xx("0x41")][Xx("0x29")].nodeAfter,u=r[Xx("0x41")][Xx("0xd")].nodeBefore,d=l[Xx("0x2f")][Xx("0x2f")],{column:g}=o[Xx("0x40")](l),{column:m}=o[Xx("0x40")](u);for(let s=g;s<=m;s++){const c=o[Xx("0xe")](d,{column:s,includeAllSlots:!1});for(const o of c){const s=o[Xx("0xc")],c=i.mapper[Xx("0x3f")](s);i.writer[Xx("0x10")]("ck-suggestion-marker-"+x,c),e&&i[Xx("0x2e")][Xx("0x48")](Xx("0x16"),a,c),i[Xx("0x1f")][Xx("0xf")](c,r[Xx("0x34")]),t&&(n[Xx("0x22")].includes(r.markerName)?i[Xx("0x2e")][Xx("0x10")](Xx("0x8"),c):i.writer.removeClass(Xx("0x8"),c))}}}}n[Xx("0x37")](Xx("0x7"),((e,s)=>{const r=o[Xx("0x3e")](t.model[Xx("0x35")][Xx("0x6")]),i=o.getRowIndexes(r),x=r[0][Xx("0x2d")](Xx("0x15")),a=x.getAttribute(Xx("0x36"))||0,c=s&&null!==s[Xx("0x46")]?s[Xx("0x46")]:!t[Xx("0x31")][Xx("0xb")](Xx("0x7"))[Xx("0x28")],l=c?i[Xx("0x3b")]:i[Xx("0x3c")],u=x.getChild(l);let d;if(c){const e=x[Xx("0x33")](a);if(u[Xx("0x24")]<e[Xx("0x24")])return;d=t[Xx("0x11")].createRange(t[Xx("0x11")][Xx("0x3a")](e[Xx("0x33")](0)),t[Xx("0x11")].createPositionAfter(u[Xx("0x33")](u[Xx("0x1d")]-1)))}else{const e=x[Xx("0x33")](a-1);if(!e)return;d=t[Xx("0x11")].createRange(t[Xx("0x11")].createPositionBefore(u[Xx("0x33")](0)),t[Xx("0x11")][Xx("0x2")](e.getChild(e[Xx("0x1d")]-1)))}t[Xx("0x11")][Xx("0x39")]((()=>{n.markBlockFormat(d,{commandName:Xx("0x7"),commandParams:[{forceValue:c}]},[],Xx("0x7"))}))})),n[Xx("0x37")](Xx("0x2b"),((e,o)=>{const s=t[Xx("0x12")][Xx("0xb")]("TableUtils"),r=s[Xx("0x3e")](t[Xx("0x11")][Xx("0x35")][Xx("0x6")]),i=s[Xx("0x25")](r),x=r[0].findAncestor(Xx("0x15")),a=x[Xx("0x47")](Xx("0x1a"))||0,c=o&&null!==o[Xx("0x46")]?o.forceValue:!t[Xx("0x31")][Xx("0xb")]("setTableColumnHeader")[Xx("0x28")];let l;const u=x.getChild(0),d=c?i[Xx("0x3b")]:i[Xx("0x3c")],g=s[Xx("0xe")](x,{startRow:0,column:d,includeAllSlots:!1}),m=Array[Xx("0x5")](g)[0][Xx("0xc")];if(c){const e=u[Xx("0x33")](a);if(m[Xx("0x13")](e))return;l=t[Xx("0x11")][Xx("0x14")](t[Xx("0x11")][Xx("0x3a")](e),t[Xx("0x11")][Xx("0x2")](m))}else{const e=u[Xx("0x33")](a-1);if(!e)return;l=t[Xx("0x11")].createRange(t[Xx("0x11")][Xx("0x3a")](m),t[Xx("0x11")][Xx("0x2")](e))}t[Xx("0x11")][Xx("0x39")]((()=>{n.markBlockFormat(l,{commandName:"setTableColumnHeader",commandParams:[{forceValue:c}]},[],Xx("0x2b"))}))})),t[Xx("0x23")][Xx("0x26")].on(Xx("0x4c"),r(),{priority:Xx("0x30")}),t[Xx("0x42")][Xx("0x26")].on(Xx("0x4c"),((t,e,n)=>{n[Xx("0x1")].showSuggestionHighlights&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:Xx("0x30")}),t[Xx("0x23")].downcastDispatcher.on(Xx("0x49"),((t,e,o)=>{const{type:s,id:r}=n[Xx("0x4d")](e[Xx("0x34")]),i=n[Xx("0x18")](r);if(!i[Xx("0x42")]||"setTableColumnHeader"!=i[Xx("0x42")][Xx("0x9")])return;const x=o.mapper[Xx("0x21")](e[Xx("0x34")]);if(x)for(const t of x)o[Xx("0x2e")][Xx("0x19")]("ck-suggestion-marker-"+s,t),o.writer[Xx("0x19")]("ck-suggestion-marker--active",t),o[Xx("0x2e")].removeAttribute(Xx("0x16"),t),o.mapper[Xx("0x50")](t,e[Xx("0x34")])}),{priority:Xx("0x30")}),n._descriptionFactory[Xx("0x1b")]((t=>{const{data:n}=t;if(n){if(Xx("0x7")==n[Xx("0x9")]){const t=n[Xx("0x1e")][0][Xx("0x46")];return o(Yo(e,t?Xx("0x27"):"FORMAT_REGULAR_ROW"))}if(Xx("0x2b")==n[Xx("0x9")]){const t=n[Xx("0x1e")][0][Xx("0x46")];return o(Yo(e,Xx(t?"0x44":"0x4b")))}}function o(t){return{type:Xx("0x4e"),content:Yo(e,Xx("0x1c"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n[Xx("0x32")][Xx("0x2c")](Xx("0xa"),"setTableRowHeader",Xx("0x38"),i),n[Xx("0x32")].registerCustomCallback("formatBlock","setTableColumnHeader","accept",i)}}const Jx=["getSuggestionCallback","ck-suggestion-marker--active","accept","newRange","for","removeRows","from","has","insertContent","registerCustomCallback","plugins","wrap","_splitMarkerName","previous","every","nodeAfter","editing","tableCellSuggestion","getColumnIndexes","commands","fromEntries","getRange","ck-suggestion-marker","cell","getMarkers","add","findAncestor","dataDowncast","find","getSuggestion","markMultiRangeInsertion","element","rows","hasSuggestion","_suggestionFactory","markerName","root","remove","tablePaste","removeMarkers","last","fill","set","map","includes","cells","ck-suggestion-marker-insertion","tableCellHorizontalAlignment","type","locale","getContainedElement","stop","tablePasteColumn","isEmpty","getChild","filter","return","TableClipboard","createTableWalker","author","getAllAdjacentSuggestions","trackChanges","_createdBatches","setAttributes","tableCellPadding","change","getChangedMarkers","reduce","end","push","move","length","insertionRanges","oldRange","batch","_getCoordsForCells","insertRows","getRowIndexes","options","tableCell","isInContent","createRangeIn","model","first","_replaceTableSlotCell","rootName","getSelectionAffectedTableCells","formatBlock","TableUtils","registerDescriptionCallback","_isForcedDefaultExecutionBlock","start","column","insert","getChanges","conversion","attributes","deletionRanges","startsWith","selection","high","differ","Users","editingDowncast","registerPostFixer","markMultiRangeBlockFormat","previousSibling","low","tableCellBackgroundColor","suggestion-td","subType","containsRange","deletion","markerAttributes","join","paragraph","table","createRangeOn","getColumns","tablePasteRow","redo","editor","insertion","row","removeMarker","getRows","columnInsertionRanges","rowInsertionRanges","tableCellBorderStyle","schema","position","removeColumns","tablePasteCell","rowInsertionIndexes","getRanges","entries","markers","register","unwrap","markerToHighlight","getSuggestions","isEqual","keys","columnInsertionIndexes","document","get","suggestion:formatBlock:tablePasteCell","endRow","tableCellBorderColor","suggestionLoaded","discard","tableCellBorderWidth","suggestion","tablePasteChainId","getTableIfOnlyTableInContent","updateMarker","name","content"];var Qx,Zx;Qx=Jx,Zx=142,function(t){for(;--t;)Qx.push(Qx.shift())}(++Zx);const Yx=function(t,e){return Jx[t-=0]},ta=[Yx("0x9"),Yx("0x6"),Yx("0x90"),Yx("0x3f"),"tableCellVerticalAlignment",Yx("0x7c"),Yx("0x50")],ea=Object[Yx("0x24")](ta.map((t=>[t,null])));class na extends t.Plugin{static get requires(){return[Bx]}afterInit(){const t=this.editor;if(!t.plugins[Yx("0x17")](Yx("0x49")))return;const n=t.plugins[Yx("0x3")]("TrackChangesEditing"),o=t[Yx("0x1a")].get(Yx("0x68")),s=t.plugins[Yx("0x3")](Bx),r=t[Yx("0x1a")][Yx("0x3")]("TableClipboard");s._tablePostFixingSubtypes[Yx("0x55")](Yx("0x87"),Yx("0x44")),t[Yx("0x62")][Yx("0x91")][Yx("0x99")](Yx("0x21"),{allowIn:Yx("0x5f"),allowContentOf:Yx("0x5f"),isLimit:!0}),t.conversion.elementToElement({model:Yx("0x21"),view:Yx("0x7d")});let i=null;t[Yx("0x62")].on(Yx("0x18"),((s,x)=>{const[a,c]=x,l=x[x[Yx("0x57")]-1];l&&l.forceDefaultExecution||n[Yx("0x6a")]||this[Yx("0x89")].commands[Yx("0x3")](Yx("0x4d")).value&&function(t,e,n,o,s){if(e&&!e.is("documentSelection"))return!1;const r=s[Yx("0xc")](t,n);if(!r||!sa(r,void 0,o))return!1;const i=o[Yx("0x66")](n[Yx("0x2")][Yx("0x73")]);if(!i[Yx("0x57")])return!1;const x=i[0].findAncestor(Yx("0x84")),a=o[Yx("0x5d")](i),c=o[Yx("0x22")](i),l={startRow:a[Yx("0x63")],endRow:a.last,startColumn:c[Yx("0x63")],endColumn:c[Yx("0x38")]};return 1==i[Yx("0x57")]&&(l[Yx("0x5")]+=o[Yx("0x8d")](r)-1,l.endColumn+=o[Yx("0x86")](r)-1),sa(x,l,o)}(a,c,t.model,o,r)&&(s[Yx("0x43")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Yx("0x62")].change((()=>{t[Yx("0x62")].insertContent(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[Yx("0x57")]&&n[Yx("0x2e")](s,Yx("0x87"),{tablePasteChainId:o}),r[Yx("0x57")]&&n[Yx("0x2e")](r,Yx("0x44"),{tablePasteChainId:o}),a[Yx("0x57")]&&n.markMultiRangeInsertion(a,Yx("0x36"),{tablePasteChainId:o,skipNestingCheck:!0}),c[Yx("0x57")]&&n.markMultiRangeDeletion(c,Yx("0x36"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[Yx("0x79")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Yx("0x94"),{tablePasteChainId:o});if(u){const e=u[Yx("0x28")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Yx("0x62")][Yx("0x85")](o),i=e[Yx("0x2c")]((t=>t[Yx("0x25")]().isEqual(r)));i&&n[Yx("0x55")]([i[Yx("0xe")],s])}n[Yx("0x57")]&&u.setAttribute(Yx("0x81"),Object[Yx("0x24")](n))}i=null})))}),{priority:e.priorities[Yx("0x74")]+10}),t[Yx("0x1a")][Yx("0x3")](Yx("0x49")).on(Yx("0x64"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Yx("0x43")]();const r=n[Yx("0x27")],x=o,a=oa(r),c=oa(x);t[Yx("0x48")]=r;let l=null,u=null;if(c||a)if(a&&!c){s[Yx("0x35")](r[Yx("0x46")](0));for(const t of Array[Yx("0x16")](x.getChildren()))s[Yx("0x6d")](t,r,Yx("0x54"));const t=i.rowInsertionIndexes.includes(n[Yx("0x8b")]),e=i.columnInsertionIndexes[Yx("0x3c")](n[Yx("0x6c")]);t||e||(l=s[Yx("0x61")](r))}else c&&!a&&(u=s[Yx("0x61")](r));else{const t=s.createElement(Yx("0x21")),e=s.createElement("tableCellSuggestion");s[Yx("0x1b")](s.createRangeIn(r),e),s[Yx("0x6d")](t,r,0);for(const e of Array[Yx("0x16")](x.getChildren()))s.insert(e,t,"end");l=s.createRangeOn(t),u=s[Yx("0x85")](e)}const d=Array.from(x.getAttributes()).filter((([t])=>ta.includes(t)));i[Yx("0x3d")][Yx("0x55")]({element:r,attributes:d[Yx("0x57")]?Object[Yx("0x24")](d):null}),l&&i[Yx("0x58")].push(l),u&&i[Yx("0x71")].push(u)}),{priority:Yx("0x74")}),o.on("insertColumns",((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.columns||1;i[Yx("0x1")]=new Array(a)[Yx("0x39")](x)[Yx("0x3b")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(s,{startColumn:x,endColumn:x+a-1}))i[Yx("0x8e")][Yx("0x55")](t[Yx("0x62")][Yx("0x85")](e))}),{priority:Yx("0x7b")}),o.on(Yx("0x5c"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Yx("0x30")]||1;i[Yx("0x95")]=new Array(a).fill(x)[Yx("0x3b")](((t,e)=>t+e));for(const{cell:e}of o[Yx("0x4a")](s,{startRow:x,endRow:x+a-1}))i[Yx("0x8f")][Yx("0x55")](t[Yx("0x62")][Yx("0x85")](e))}),{priority:Yx("0x7b")}),n._descriptionFactory[Yx("0x69")]((e=>{if(e[Yx("0x7e")]&&e.subType[Yx("0x72")](Yx("0x36")))return e[Yx("0x1d")]?{}:{type:"insertion",content:Yo(t[Yx("0x41")],"*Replace table cells*")}}));const x=()=>!1;for(const t of["tablePaste",Yx("0x44"),Yx("0x87"),Yx("0x94")])n[Yx("0x32")][Yx("0x19")](Yx("0x8a"),t,Yx("0x82"),x),n[Yx("0x32")].registerCustomCallback(Yx("0x80"),t,Yx("0x82"),x),n[Yx("0x32")].registerCustomCallback("formatBlock",t,Yx("0x82"),x);n[Yx("0x32")][Yx("0x19")]("formatBlock",Yx("0x94"),Yx("0x8"),x),n[Yx("0x32")][Yx("0x19")](Yx("0x67"),Yx("0x94"),Yx("0x12"),((e,n,o)=>{const s=e.map((t=>t[Yx("0x42")]()))[Yx("0x47")]((t=>t)),r=new Map(s[Yx("0x3b")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[Yx("0x3d")])e&&r[Yx("0x3a")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object[Yx("0x97")](o.markerAttributes)){const o=t[Yx("0x62")][Yx("0x98")][Yx("0x3")](e),s=o?o[Yx("0x25")]()[Yx("0x42")]():null;s&&r[Yx("0x3a")](s,n)}t[Yx("0x62")][Yx("0x51")]((t=>{for(const[e,n]of r)t[Yx("0x4f")]({...ea,...n},e)}))}));const a=(e,o)=>{n[Yx("0x32")][Yx("0x19")](e,Yx("0x36"),o,((s,r,i)=>{t[Yx("0x62")][Yx("0x51")]((t=>{const x=[];for(const t of s){const e=t[Yx("0x6b")][Yx("0x1f")];e.is(Yx("0x2f"),Yx("0x21"))&&x[Yx("0x55")](e)}n[Yx("0x32")][Yx("0x10")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[Yx("0x34")][Yx("0x65")]&&t[Yx("0x9a")](e)}))}))};a(Yx("0x8a"),Yx("0x12")),a(Yx("0x8a"),"discard"),a(Yx("0x80"),Yx("0x12")),a(Yx("0x80"),"discard"),n[Yx("0x32")][Yx("0x19")](Yx("0x8a"),Yx("0x87"),"discard",(t=>{const e=t[Yx("0x3b")]((t=>t[Yx("0x42")]())),n=e[0][Yx("0x2a")]("table"),{minRow:r,maxRow:i}=s[Yx("0x5b")](e);o[Yx("0x15")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Yx("0x19")]("insertion",Yx("0x44"),Yx("0x8"),(t=>{const e=t[Yx("0x3b")]((t=>t[Yx("0x42")]())),n=e[0][Yx("0x2a")](Yx("0x84")),{minColumn:r,maxColumn:i}=s[Yx("0x5b")](e);o[Yx("0x93")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[Yx("0x7e")][Yx("0x72")](Yx("0x36")))return;const o=e[Yx("0x70")][Yx("0xb")],s=n[Yx("0x9c")]()[Yx("0x47")]((t=>t.isInContent&&t[Yx("0x70")]&&t[Yx("0x70")][Yx("0xb")]==o));s[Yx("0x57")]&&e[Yx("0x4c")]()[Yx("0x57")]!=s[Yx("0x57")]&&s[Yx("0x53")](((t,e)=>(t.next=e,e[Yx("0x1d")]=t,e)))};function l(t,e=!0){const{id:o}=n[Yx("0x1c")](t.markerName),s=[Yx("0x26"),Yx("0x3e")],r=n.activeMarkers[Yx("0x3c")](t[Yx("0x33")]);return r&&s.push(Yx("0x11")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Yx("0x7"),c,{priority:Yx("0x74")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[Yx("0x62")][Yx("0x2")][Yx("0x78")]((()=>{let e=!1;const o=Array[Yx("0x16")](t.model[Yx("0x2")][Yx("0x75")][Yx("0x52")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Yx("0x1c")](s);if(Yx("0xa")!=o||Yx("0x80")!=i||r[Yx("0x59")])continue;if(!n[Yx("0x31")](x))continue;const a=n[Yx("0x2d")](x)[Yx("0x96")](),c=t[Yx("0x1a")].get(Yx("0x76")).me;for(const t of n[Yx("0x9c")]())if(t.isInContent&&t[Yx("0x4b")]==c&&Yx("0x67")==t[Yx("0x40")]&&Yx("0x94")==t.subType&&t[Yx("0x96")]()[Yx("0x1e")]((t=>a.some((e=>e[Yx("0x7f")](t,!0))))))for(const n of t[Yx("0x4c")]())n[Yx("0x60")]&&(n[Yx("0x8")](),e=!0)}return e})),t.model.document.registerPostFixer((e=>{const o=t[Yx("0x23")][Yx("0x3")](Yx("0x88"));if(!o||!o[Yx("0x4e")][Yx("0x17")](e[Yx("0x5a")]))return!1;let s=!1;const r=t[Yx("0x1a")].get(Yx("0x76")).me,i=t.model[Yx("0x2")].differ[Yx("0x6e")](),x=Array[Yx("0x16")](t.model[Yx("0x2")][Yx("0x75")][Yx("0x52")]())[Yx("0x47")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n[Yx("0x1c")](t);return Yx("0xa")==o&&Yx("0x36")==s&&i==r.id&&!e[Yx("0x59")]}));for(const t of i){if(Yx("0x6d")!=t[Yx("0x40")]||"tableCellSuggestion"!=t.name||1!=t.length)continue;const n=e.createRange(t[Yx("0x92")],t[Yx("0x92")].getShiftedBy(1));if(!x[Yx("0x2c")]((({data:t})=>t.newRange[Yx("0x9d")](n))))for(const{name:t,data:o}of x)if(n[Yx("0x7f")](o[Yx("0x13")])){e[Yx("0xd")](t,{range:n}),s=!0;break}}return s})),t[Yx("0x62")][Yx("0x2")].registerPostFixer((e=>{let o=!1;const s=t[Yx("0x1a")][Yx("0x3")]("Users").me,r=n[Yx("0x9c")]()[Yx("0x47")]((t=>t[Yx("0x60")]&&t[Yx("0x4b")]==s)),i=new Set,x=new Set;for(const t of r)if(Yx("0x36")==t[Yx("0x7e")])for(const e of t[Yx("0x28")]()){const n=e[Yx("0x25")]().getContainedElement();if(n)if(n.is(Yx("0x2f"),"tableCellSuggestion")&&oa(n)){t.removeMarker(e[Yx("0xe")]),i[Yx("0x29")](n),o=!0;const s=n.nextSibling,r=n[Yx("0x7a")],a=s&&s.is(Yx("0x2f"),"tableCellSuggestion"),c=r&&r.is(Yx("0x2f"),Yx("0x21"));a&&!i[Yx("0x17")](s)&&x[Yx("0x29")](s),c&&!i.has(r)&&x[Yx("0x29")](r)}else n.is(Yx("0x2f"),Yx("0x83"))&&n.isEmpty&&(t[Yx("0x8c")](e[Yx("0xe")]),o=!0)}else if("tablePasteCell"==t[Yx("0x7e")]){if(!t[Yx("0x70")]||!t[Yx("0x70")][Yx("0xb")])continue;const e=t[Yx("0x70")][Yx("0x81")];if(e&&Object[Yx("0x0")](e)[Yx("0x57")])continue;const n=t[Yx("0x70")][Yx("0xb")];let s=!0,i=!0;for(const e of r)if(e[Yx("0x7e")]&&e[Yx("0x7e")].startsWith(Yx("0x36"))){if(!e[Yx("0x70")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[Yx("0x70")][Yx("0xb")]==n){s=!1;break}}i&&s&&(t[Yx("0x37")](),o=!0)}for(const t of i)e[Yx("0x35")](t);for(const t of x)e[Yx("0x9a")](t);return o})),t[Yx("0x6f")][Yx("0x14")](Yx("0x77"))[Yx("0x9b")]({model:Yx("0x4"),view:(t,e)=>l(t),converterPriority:"high"}),t[Yx("0x6f")][Yx("0x14")](Yx("0x2b"))[Yx("0x9b")]({model:Yx("0x4"),view:(t,e)=>e[Yx("0x5e")].showSuggestionHighlights?l(t,!1):null,converterPriority:Yx("0x74")});const u=t[Yx("0x20")].view;this.listenTo(u[Yx("0x2")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[Yx("0x61")](e[Yx("0xf")]).getItems())t.is(Yx("0x2f"),Yx("0x7d"))&&n[Yx("0x55")](t);u[Yx("0x51")]((t=>{for(const e of n)t[Yx("0x56")](t.createRangeIn(e),t.createPositionBefore(e)),t.remove(e)}))}))}}function oa(t){if(t[Yx("0x45")])return!0;const e=t[Yx("0x46")](0);return e.is("element",Yx("0x83"))&&e[Yx("0x45")]}function sa(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Yx("0x4a")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ra=["getAttribute","afterInit","_descriptionFactory","handleSuggestionDescription","model","data","TableColumnResizeEditing","markBlockFormat","table","editor","subType","_suggestionFactory","Users","formatGroupId","enableCommand","getSelectedElement","registerDescriptionCallback","registerCustomCallback","change","resizeTable","selection","accept","getContainedElement","formatBlock","getTableColumnsWidths","plugins","get","resizeColumnWidths","document","columnWidths","bind","handleResizeTableWidthCommand","format","TrackChangesEditing","*Format:* resize table","tableWidth","discard","author"];var ia,xa;ia=ra,xa=345,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x24")](){if(!this[aa("0x6")][aa("0x16")].has(aa("0x3")))return;const t=this[aa("0x6")][aa("0x16")][aa("0x17")](aa("0x1e"));t[aa("0xb")]("resizeTableWidth",this[aa("0x1c")][aa("0x1b")](this)),t.enableCommand(aa("0x18"),this[aa("0x1c")][aa("0x1b")](this)),t._suggestionFactory[aa("0xe")](aa("0x14"),"resizeTable","accept",t[aa("0x8")].getSuggestionCallback(aa("0x14"),null,aa("0x21"))),t._suggestionFactory[aa("0xe")](aa("0x14"),"resizeTable","discard",t[aa("0x8")].getSuggestionCallback(aa("0x14"),null,aa("0x12"))),t[aa("0x25")][aa("0xd")](this.handleSuggestionDescription[aa("0x1b")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor.plugins[aa("0x17")](aa("0x1e")),o=this[aa("0x6")][aa("0x16")].get(aa("0x3")),s=e[aa("0x5")]||this[aa("0x6")][aa("0x1")][aa("0x19")][aa("0x11")][aa("0xc")]();this[aa("0x6")].model[aa("0xf")]((()=>{const r=o.getColumnGroupElement(s);let i=r?o[aa("0x15")](r):null,x=s[aa("0x23")](aa("0x20"))||null;const a=e.tableWidth||x,c=e[aa("0x1a")]||i,l=this[aa("0x6")][aa("0x16")][aa("0x17")](aa("0x9")).me;for(const t of n.getSuggestions()){const e=t[aa("0x13")]();if(aa("0x10")===t[aa("0x7")]&&e===s){t[aa("0x22")]!==l&&t.discard();const e=t[aa("0x2")].commandParams;x=e[0][aa("0x20")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[aa("0x4")](s,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:"resizeTable"},[],aa("0x10"))}))}[aa("0x0")](t){const{data:e}=t;if(e&&aa("0x10")===e[aa("0xa")]){const t=aa("0x1f");return{type:aa("0x1d"),content:Yo(this.editor.locale,t)}}}}const la=["afterInit","plugins","Template","TrackChangesEditing","get","enableCommand"];var ua,da;ua=la,da=422,function(t){for(;--t;)ua.push(ua.shift())}(++da);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x4")](){const t=this.editor;t[ga("0x5")].has(ga("0x0"))&&t.plugins[ga("0x2")](ga("0x1"))[ga("0x3")]("insertTemplate")}}const fa=["get","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","tableOfContents","locale","insertTableOfContents","commands"];var ha,pa;ha=fa,pa=181,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("0x0")][ba("0x1")](ba("0x6")))return;t.plugins.get(ba("0x3")).enableCommand("insertTableOfContents");const e=t.plugins[ba("0x1")]("TrackChangesEditing"),n=t[ba("0x5")];e._descriptionFactory.registerElementLabel(ba("0x4"),(t=>Yo(n,ba("0x2"),t)))}}const _a=["editor","schema","newRange","getNearestSelectionRange","document","from","updateMarker","createRange","TrackChangesEditing","isEqual","ELEMENT_TITLE","getChangedMarkers","suggestion","registerElementLabel","isTouching","afterInit","differ","removeMarker","forward","model","has","element","start","locale","title-content","registerPostFixer","isCollapsed","end","get"];var Ta,Ca;Ta=_a,Ca=155,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x5")](){const t=this[ya("0x13")];if(!t.plugins[ya("0xa")]("Title"))return;const e=t.plugins[ya("0x12")](ya("0x1b"));e._descriptionFactory[ya("0x3")](ya("0xe"),(()=>Yo(t[ya("0xd")],ya("0x0")))),t[ya("0x9")][ya("0x17")][ya("0xf")]((n=>{let o=!1;const s=Array[ya("0x18")](t[ya("0x9")][ya("0x17")][ya("0x6")][ya("0x1")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ya("0x2")!==s||!i[ya("0x15")])continue;const x=i[ya("0x15")],a=x[ya("0x11")].nodeBefore;if(!a||!a.is(ya("0xb"),ya("0xe")))continue;if(!x.start[ya("0x4")](x.end))continue;const c=t[ya("0x9")][ya("0x14")][ya("0x16")](x[ya("0x11")],ya("0x8"));if(c&&c[ya("0x10")]){const t=n[ya("0x1a")](x[ya("0xc")],c.start);t[ya("0x1c")](x)||(n[ya("0x19")](r,{range:t}),o=!0)}o||(n[ya("0x7")](r),o=!0)}return o}))}}const Aa=["afterInit","undo","TrackChangesEditing","plugins","get","editor","enableCommand","redo","has","UndoEditing"];var va,Ra;va=Aa,Ra=303,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{[Ia("0x7")](){const t=this[Ia("0x2")],e=t[Ia("0x0")][Ia("0x1")](Ia("0x9"));t[Ia("0x0")][Ia("0x5")](Ia("0x6"))&&(e[Ia("0x3")](Ia("0x8")),e[Ia("0x3")](Ia("0x4")))}}const La=["enableCommand","has","toggleTableCaption","get","afterInit","TableCaptionEditing","TrackChangesEditing","plugins"];var Na,wa;Na=La,wa=273,function(t){for(;--t;)Na.push(Na.shift())}(++wa);const Ma=function(t,e){return La[t-=0]};class Oa extends t.Plugin{static get requires(){return[Bx]}[Ma("0x3")](){const t=this.editor;t[Ma("0x6")][Ma("0x0")](Ma("0x4"))&&t[Ma("0x6")][Ma("0x2")](Ma("0x5"))[Ma("0x7")](Ma("0x1"))}}const Fa=["*Format:* set start index to %0","format","listReversed","getListTypeFromListStyleType","_getTranslationKeyForListStyle","*Format:* set order to regular","handleListStartCommand","bind","editor","type","listStart","TrackChangesEditing","expandListBlocksToCompleteList","selection","list.properties","startIndex","document","from","getAttribute","push","toUpperCase","markMultiRangeBlockFormat","enableCommand","plugins","afterInit","DocumentListPropertiesEditing","change","ELEMENT_","handleListStyleCommand","_LIST_","handleListReversedCommand","has","getSelectedBlocks","get","commandParams","numbered","DocumentListUtils","DocumentListPropertiesUtils","_getSuggestionBlocks","listStyle","config","model","*Format:* set order to reversed","registerDescriptionCallback","reversed","_getSuggestionBlocksForListStyle","isFirstBlockOfListItem","filter","handleDescriptions","isListItemBlock","styles","_descriptionFactory"];var Pa,Da;Pa=Fa,Da=398,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{[Ba("0x2a")](){if(!this[Ba("0x1a")][Ba("0x29")][Ba("0x31")](Ba("0x2b")))return;const t=this[Ba("0x1a")][Ba("0x6")][Ba("0x33")](Ba("0x20")),e=this[Ba("0x1a")].plugins[Ba("0x33")](Ba("0x1d"));t[Ba("0x10")]&&e[Ba("0x28")](Ba("0x5"),this[Ba("0x2e")][Ba("0x19")](this)),t[Ba("0xa")]&&e[Ba("0x28")](Ba("0x14"),this[Ba("0x30")][Ba("0x19")](this)),t[Ba("0x21")]&&e[Ba("0x28")](Ba("0x1c"),this[Ba("0x18")][Ba("0x19")](this)),e[Ba("0x11")][Ba("0x9")](this[Ba("0xe")][Ba("0x19")](this))}[Ba("0x2e")](t,e={}){const n=this[Ba("0x1a")].plugins[Ba("0x33")]("TrackChangesEditing"),o=this[Ba("0xb")]();this[Ba("0x1a")][Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](o,{commandName:Ba("0x5"),commandParams:[{type:e[Ba("0x1b")]}],formatGroupId:Ba("0x5")})}))}[Ba("0x30")](t,e={}){const n=this.editor[Ba("0x29")].get(Ba("0x1d")),o=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")]("DocumentListUtils"),s=this[Ba("0x4")]((t=>o[Ba("0xf")](t)&&Ba("0x1")===t[Ba("0x24")]("listType")));null!==s&&this[Ba("0x1a")][Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](s,{commandName:"listReversed",commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[Ba("0x18")](t,e={}){const n=this.editor[Ba("0x29")].get(Ba("0x1d")),o=this[Ba("0x1a")].plugins.get(Ba("0x2")),s=this[Ba("0x4")]((t=>o[Ba("0xf")](t)&&Ba("0x1")===t.getAttribute("listType")));null!==s&&this.editor[Ba("0x7")][Ba("0x2c")]((()=>{n[Ba("0x27")](s,{commandName:"listStart",commandParams:[{startIndex:e.startIndex}],formatGroupId:Ba("0x1c")})}))}[Ba("0xe")](t){const e=this[Ba("0x1a")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case Ba("0x5"):o="*Change to:* %0",s={type:Ba("0x13"),content:Yo(e,o,Yo(e,this[Ba("0x16")](n[Ba("0x0")][0][Ba("0x1b")])))};break;case"listReversed":o=n.commandParams[0].reversed?Ba("0x8"):Ba("0x17"),s={type:Ba("0x13"),content:Yo(e,o)};break;case"listStart":o=Ba("0x12"),s={type:Ba("0x13"),content:Yo(e,o,n.commandParams[0].startIndex)}}return s}[Ba("0xb")](){const t=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")](Ba("0x2"));let e=Array[Ba("0x23")](this[Ba("0x1a")][Ba("0x7")][Ba("0x22")][Ba("0x1f")][Ba("0x32")]());return e[Ba("0x25")](...t[Ba("0x1e")](e)),e=[...new Set(e)],e}[Ba("0x4")](t){const e=this[Ba("0x1a")][Ba("0x29")][Ba("0x33")]("DocumentListUtils");let n=Array[Ba("0x23")](this.editor[Ba("0x7")][Ba("0x22")].selection[Ba("0x32")]())[Ba("0xd")](t);if(!n.length)return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[Ba("0xc")](t)&&o[Ba("0x25")](t);return o}[Ba("0x16")](t){return Ba("0x2d")+this[Ba("0x1a")][Ba("0x29")][Ba("0x33")](Ba("0x3"))[Ba("0x15")](t).toUpperCase()+Ba("0x2f")+t[Ba("0x26")]().replace(/-/g,"_")}}const Ua=["markBlockFormat","discard","tableBorderWidth","handleDiscardAction","tableCellPadding","enqueueChange","getFirstPosition","tableCellHeight","_getSuggestion","subType","change","tableBackgroundColor","tableCellHorizontalAlignment","has","tableCellProperties","get","handleSuggestionDescription","TableUtils","getSuggestionCallback","tableWidth","getSelectionAffectedTableCells","registerCustomCallback","getSuggestions","getAttribute","tableHeight","tableCellBackgroundColor","TableCellPropertiesEditing","_descriptionFactory","_handlePropertyChange","format","*Format:* change table properties","join","tableProperties","setAttribute","document","data","model","accept","tableBorderStyle","pluginName","findAncestor","nodeAfter","locale","*Format:* change table cell properties","tableCellBorderStyle","tableCellBorderColor","_suggestionFactory","tableCellBorderWidth","plugins","TablePropertiesEditing","TrackChangesEditing","tableCellWidth","batch","getContainedElement","formatBlock","removeAttribute","selection","tableAlignment","editor"];var Ga,Ha;Ga=Ua,Ha=496,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("0x8")]=["tableBorderColor",za("0xe"),za("0x25"),za("0x21"),za("0x36"),za("0x0"),za("0x2e")],this[za("0x31")]=[za("0x15"),za("0x14"),za("0x17"),za("0x27"),za("0x1b"),za("0x2a"),za("0x1"),za("0x2f"),"tableCellVerticalAlignment"]}static get[za("0xf")](){return"TrackChangesTableProperties"}afterInit(){const t=this[za("0x22")].plugins.get(za("0x1a"));if(this[za("0x22")][za("0x18")][za("0x30")](za("0x19"))){for(const e of this[za("0x8")])t.enableCommand(e,((t,n)=>{const o=this.editor[za("0xc")][za("0xa")][za("0x20")][za("0x29")]()[za("0x10")]("table");this[za("0x4")](e,[o],this[za("0x8")],za("0x8"),t,n)}));t[za("0x16")][za("0x38")](za("0x1e"),za("0x8"),za("0xd"),t[za("0x16")][za("0x35")](za("0x1e"),null,za("0x24"))),t[za("0x16")][za("0x38")]("formatBlock",za("0x8"),"discard",((t,e)=>this[za("0x26")](this[za("0x8")],t,e))),t[za("0x16")][za("0x38")](za("0x1e"),za("0x8"),za("0x7"),(()=>!1))}if(this[za("0x22")].plugins.has(za("0x2"))){for(const e of this.tableCellProperties)t.enableCommand(e,((t,n)=>{const o=this.editor[za("0x18")][za("0x32")](za("0x34"))[za("0x37")](this[za("0x22")][za("0xc")][za("0xa")][za("0x20")]);this[za("0x4")](e,o,this.tableCellProperties,za("0x31"),t,n)}));t[za("0x16")][za("0x38")](za("0x1e"),za("0x31"),za("0xd"),t[za("0x16")][za("0x35")]("formatBlock",null,za("0x24"))),t[za("0x16")][za("0x38")]("formatBlock","tableCellProperties",za("0x24"),((t,e)=>this[za("0x26")](this[za("0x31")],t,e))),t._suggestionFactory[za("0x38")](za("0x1e"),za("0x31"),za("0x7"),(()=>!1))}t[za("0x3")].registerDescriptionCallback((t=>this.handleSuggestionDescription(t)))}[za("0x4")](t,e,n,o,s,r){const i=this.editor[za("0x18")][za("0x32")](za("0x1a"));this[za("0x22")].model[za("0x28")](r[za("0x1c")],(()=>{for(const t of e)if(this[za("0x2b")](t,o))s(r);else{const e={};for(const o of n){const n=t[za("0x3a")](o);void 0!==n&&(e[o]=n)}s(r),i[za("0x23")](t,{commandParams:[e]},[],o)}}))}[za("0x26")](t,e,n){const o=e[0].start[za("0x11")],s=n.commandParams[0];this[za("0x22")][za("0xc")][za("0x2d")]((e=>{for(const n of t)void 0!==s[n]?e[za("0x9")](n,s[n],o):e[za("0x1f")](n,o)}))}[za("0x33")](t){if(t[za("0xb")])switch(t[za("0x2c")]){case"tableProperties":return{type:za("0x5"),content:Yo(this[za("0x22")][za("0x12")],za("0x6"))};case"tableCellProperties":return{type:za("0x5"),content:Yo(this.editor[za("0x12")],za("0x13"))}}}[za("0x2b")](t,e){const n=this[za("0x22")][za("0x18")][za("0x32")](za("0x1a"));for(const o of n[za("0x39")]({skipNotAttached:!0})){const n=o[za("0x1d")]();if(o[za("0x2c")]===e&&n===t)return o}return null}}const Va=["removeMarkers","isArray","_breakSuggestionMarker","formatInline:accept","addUser","toJSON","insertion:accept","selection","insertion","markInlineFormat","_findSuggestions","_joinSuggestions","from","forceDefaultExecution","addHighlight","group","element","createPositionAfter","containerElement","push","getRanges","elementEnd","_customCallbacks","editing","_onDiscard","formatBlock:accept","for","deletion:","_updateSuggestionData","discard","multi","_getAuthorFromId","isMultiRange","formatInline","_splitMarkerName","isOwn","ready","change:activeMarkers","isAfter","schema","removed","skipNestingCheck","nodeAfter","never","removeMarker","track-changes-suggestion-data-mismatch","_registerDefaultCallbacks","registerCustomCallback","getWalker","dataDowncast","start","$textProxy","_createSuggestion","has","batch","root","trackChanges.trackFormatChanges","getItems","detach","change","insertion:discard","_adapter","_model","isObject","track-changes-adapter-missing-getsuggestion","moveTargetPosition","_checkSuggestionCorrectness","always","widget","isRemovable","trackChangesCommand","mapper","containsItem","addRange","isAtStart","value","data","fromRange","multipleBlocks","enqueueChange","getAllAdjacentSuggestions","_mergeNestedSuggestions","TrackChangesEditing","marker-count","addSuggestionData","elementStart","some","hasCommentThread","isTouching","track-changes-suggestion-not-found","addSuggestion","ck-suggestion-marker","_suggestionFactory","markMultiRangeBlockFormat","unbindElementFromMarkerName","targetPosition","CommentsRepository","_suggestionState","createdAt","split","suggestionChanged","newRange","_setSuggestionRange","createSelection","isBefore","type","createPositionAt","isCollapsed","forward","acceptSelectedSuggestions","_defaultCallbacks","locale","isInsideObject","isAtEnd","isDocumentOperation","updateSuggestion","plugins","updateMarker","isIntersectingWithRange","enableReadOnlyMode","getSuggestion","tablePasteChainId","before","rootName","_getExternalAuthor","sort","low","addCommentThread","_isForcedDefaultExecutionBlock","discardSelectedSuggestions","return","open","removeComment","consume","join","_removeSuggestion","formatBlock:discard","howMany","activeMarkers","discardSuggestion","fromCharCode","addMarker:suggestion","deletion","head","createRangeIn","@external","document","listenTo","options","markerName","stopListening","getShiftedBy","isInContent","_cutOutSuggestionMarker","removeAttribute","backward","_isDataLoaded","consumable","default","isLimit","buildSuggestion","trackChanges.mergeNestedSuggestions","data-suggestion","Users","editor","addClass","$graveyard","isBlock","chain","subType","elementToElement","showSuggestionHighlights","nodeBefore","getMarkers","execute","removeClass","setTo","clone","commentThread","after","differ","requires","$marker","markInsertion","includes","assign","_enabledCommands","isNextTo","_descriptionFactory","getAncestors","documentSelection","acceptAllSuggestions","isSelectable","suggestionLoaded","markerReady","external:","item","ck-suggestion-marker--active","getCommentThread","_rangeIsInLocalUserInsertion","filter","attributes","refresh","formatInline:join","markDeletion","formatInline:","config","getSuggestionCallback","stop","markerToHighlight","high","range","ck-suggestion-marker-formatBlock","deleteContent","createPositionBefore","insertion:chain","_setSuggestionData","authoredAt","isExternal","createRange","formatBlock:","author","_editor","name","size","discardAllSuggestions","_saved","oldRange","_addThreadToSuggestion","markerNameToElements","adapter","end","originalSuggestionId","getLastMatchingPosition","add","markers","fire","addMarker","containsRangeInObject","length","accept","formatBlock","formatInline:discard","toViewElement","getFirstRange","containsRange","lowest","formatBlock:join","next","previous","unbind","values","clear","applyOperation","_commentsRepository","suggestion","bindElementToMarker","suggestionUnloaded","map","delete","dataReady","markMultiRangeDeletion","enableCommand","commandName","_joinWithAdjacentSuggestions","getUser","_addSuggestionMarker","rejected","creator","keys","parent","splice","acceptSuggestion","upcast","formatInline:chain","isLocal","conversion","suggestion:","getSuggestions","init","every","addMarker:suggestion:formatBlock","getNearestSelectionRange","notReady","getChangedMarkers","editingDowncast","ck-suggestion-marker-","hasComments","position","_suggestions","insertion:join","collaboration.channelId","writer","PendingActions","isUndo","markMultiRangeInsertion","addComment","_trackFormatChanges","remove","getAttribute","setSelection","isEqual","define","change:_saved","get","commands","PENDING_ACTION_SUGGESTION","_handleNewSuggestionMarker","getMultiRangeId","suggestion-type","resolve","formatGroupId","_refreshSuggestionsChain","insertion:","getFirstMarker","registerPostFixer","getIntersection","set","addMarkerName","containsPosition","normal","then","model","insert","getCustomProperty","catch"];var Ka,qa;Ka=Va,qa=437,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("0x46")](){return[Xa("0x137"),r.Users,t.PendingActions,cs,ms,Rs,ws,Bs,zs,$s,er,ir,ja,dr,pr,yr,Ir,Fr,Gr,Kr,Qr,ni,xi,di,pi,Ci,Ri,wi,ji,Wi,$i,tx,rx,ux,px,Cx,Ix,Mx,Bx,Wx,$x,Oa,na,ca,Ea,Wa,ma,ka,Sa]}static get pluginName(){return Xa("0x129")}constructor(t){function e(t){return t[Xa("0x93")]((t=>String[Xa("0x1d")](t)))[Xa("0x17")]("")}super(t),this[Xa("0xce")](Xa("0x1b"),[]),this.on(Xa("0xfc"),((e,n,o,s)=>{this._model.change((()=>{for(const e of[...s,...o])this[Xa("0x115")][Xa("0x7c")][Xa("0x10c")](e)&&t[Xa("0xee")].reconvertMarker(e)}))})),this[Xa("0x4d")]=new ss(this[Xa("0x35")][Xa("0xd3")][Xa("0xfe")],this.editor[Xa("0x0")]),this._adapter=null,this[Xa("0x133")]=new Ja(this[Xa("0x35")]),this._suggestions=new Map,this[Xa("0x8f")]=t[Xa("0x5")][Xa("0xc1")](Xa("0x137")),this._enabledCommands=new Set,this[Xa("0x115")]=this.editor[Xa("0xd3")],this[Xa("0x138")]=new WeakMap,this[Xa("0x11")]=!1,t.config[Xa("0xbf")](Xa("0x10f"),Xa("0x2f")),this._trackFormatChanges=t[Xa("0x5f")][Xa("0xc1")](Xa("0x10f")),t[Xa("0x5f")][Xa("0xbf")]("trackChanges.mergeNestedSuggestions",!0),this[Xa("0x128")]=t[Xa("0x5f")][Xa("0xc1")](Xa("0x32")),this.trackChangesCommand=new d(t,this[Xa("0x4b")]),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,52,52])}[Xa("0xa8")](){const t=this.editor;t[Xa("0xa5")][Xa("0xf1")](Xa("0xae"))[Xa("0x62")]({model:Xa("0x90"),view:t=>{const{id:e,type:n}=this[Xa("0xf9")](t[Xa("0x26")]),o=[Xa("0x132"),Xa("0xaf")+n];let s=3e3;return this.activeMarkers[Xa("0x49")](t[Xa("0x26")])&&(o[Xa("0xea")](Xa("0x56")),s=3010),Xa("0x1f")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[Xa("0xa5")][Xa("0xf1")](Xa("0x108"))[Xa("0x7b")]((e=>{e.on(Xa("0x1e"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[Xa("0x55")];if(!s)return;const r=o[Xa("0x11e")][Xa("0x84")](s);t.model.schema.isObject(s)&&r&&!r.getCustomProperty(Xa("0x11b"))&&r.is(Xa("0xe9"))&&(0,x.toWidget)(r,o.writer)}),{priority:Xa("0x63")})})),t[Xa("0xa5")][Xa("0xf1")](Xa("0x108"))[Xa("0x62")]({model:Xa("0x90"),view:(t,e)=>{if(!e[Xa("0x25")][Xa("0x3c")])return null;const{type:n}=this[Xa("0xf9")](t.markerName);return{classes:[Xa("0x132"),Xa("0xaf")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[Xa("0x55")])return;if(o.item.is(Xa("0xde")))return void s[Xa("0x2e")][Xa("0x16")](o.item,n.name);const r=s[Xa("0x11e")][Xa("0x84")](o[Xa("0x55")]);if(!o[Xa("0x55")].is(Xa("0xe7"))||!t[Xa("0xd3")].schema[Xa("0x38")](o[Xa("0x55")])||r[Xa("0xd5")]("addHighlight"))return;const{id:i}=this[Xa("0xf9")](o.markerName);s[Xa("0xb5")][Xa("0x36")]([Xa("0x132"),"ck-suggestion-marker-formatBlock"],r),s[Xa("0xb5")].setAttribute(Xa("0x33"),i,r),s[Xa("0x11e")][Xa("0x91")](r,o[Xa("0x26")]),e&&(this[Xa("0x1b")].includes(o[Xa("0x26")])?s[Xa("0xb5")][Xa("0x36")](Xa("0x56"),r):s[Xa("0xb5")][Xa("0x40")](Xa("0x56"),r));for(const e of t[Xa("0xd3")][Xa("0x21")](o[Xa("0x55")])[Xa("0x110")]())s[Xa("0x2e")][Xa("0x16")](e,n[Xa("0x70")]);s[Xa("0x2e")][Xa("0x16")](o[Xa("0x55")],n.name)};t.conversion.for(Xa("0x108"))[Xa("0x7b")]((t=>{t.on(Xa("0xaa"),((t,e,o)=>{o.options[Xa("0x3c")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:"highest"})})),t[Xa("0xa5")][Xa("0xf1")]("dataDowncast").markerToData({model:Xa("0x90"),view:(t,e)=>e[Xa("0x25")].showSuggestionHighlights?null:{group:"suggestion",name:t.substr(11)}}),t[Xa("0xa5")][Xa("0xf1")](Xa("0xa2"))[Xa("0x3b")]({view:{name:Xa("0x90"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=Xa("0xa6")+t[Xa("0xbc")](Xa("0xc6"))+":"+t.getAttribute("id");return t[Xa("0xbc")](Xa("0x12a"))&&(n+=":"+t[Xa("0xbc")](Xa("0x12a"))),e.createElement(Xa("0x47"),{"data-name":n})}}),t[Xa("0xa5")][Xa("0xf1")](Xa("0xa2")).dataToMarker({view:"suggestion"}),t[Xa("0xa5")][Xa("0xf1")]("editingDowncast")[Xa("0x7b")]((t=>{t.on(Xa("0xaa"),n(),{priority:Xa("0x63")})})),t.conversion[Xa("0xf1")](Xa("0xae"))[Xa("0x7b")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[Xa("0x11e")][Xa("0x76")](e[Xa("0x26")]);if(o)for(const t of o)t[Xa("0xd5")](Xa("0xe5"))||(n.writer[Xa("0x40")]([Xa("0x132"),Xa("0x65"),Xa("0x56")],t),n[Xa("0xb5")][Xa("0x2b")](Xa("0x33"),t),n[Xa("0x11e")][Xa("0x135")](t,e[Xa("0x26")]))}),{priority:Xa("0x63")})})),t[Xa("0xd3")][Xa("0x23")].registerPostFixer((e=>{let n=!1;const o=Array.from(t.model[Xa("0x23")][Xa("0x45")][Xa("0xad")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[Xa("0xf9")](x);if(Xa("0x90")!==o)continue;const u=this._suggestions[Xa("0xc1")](l);if(null!=a[Xa("0x13c")])if(Xa("0xf8")==c&&(n=n||Ya(a.newRange,x,e,t.model[Xa("0xfe")])),a.newRange.isCollapsed||Xa("0x37")==a[Xa("0x13c")][Xa("0x10e")][Xa("0xc")]||Xa("0x82")==c&&!ec(a[Xa("0x13c")])||Xa("0x1f")==c&&(Za(i=a.newRange)||(r=i)[Xa("0x109")][Xa("0x9f")]==r[Xa("0x78")][Xa("0x3d")]&&r[Xa("0x109")][Xa("0x2")]))e[Xa("0x103")](x),n=!0;else{if(!u||!u[Xa("0x29")])continue;s[Xa("0x7b")](u)}}var r,i;return s[Xa("0x71")]>0&&(n=!!this[Xa("0x99")](s)||n),n})),t[Xa("0xd3")][Xa("0x23")][Xa("0xcc")]((e=>{let n=!1;for(const o of t.model[Xa("0x23")][Xa("0x45")].getChanges()){if(Xa("0xd4")!=o.type)continue;const s=o[Xa("0xb1")][Xa("0x28")](o[Xa("0x80")]);if(s.isAtEnd)for(const r of this[Xa("0xb2")][Xa("0x8c")]()){if(r[Xa("0xf7")]||!r[Xa("0x29")])continue;if("formatBlock"!=r[Xa("0x140")])continue;const i=r[Xa("0x85")]();if(i.start[Xa("0x9f")]!=i[Xa("0x78")].parent&&i[Xa("0x78")][Xa("0xbe")](o.position)){const o=t.model[Xa("0x6c")](i[Xa("0x109")],s);e[Xa("0x6")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[Xa("0xd3")][Xa("0x7c")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e.name),n=this._suggestions[Xa("0xc1")](t);n&&n[Xa("0xcf")](e[Xa("0x70")])}})),t[Xa("0xd3")][Xa("0x23")].on("change:data",(()=>{const e=Array[Xa("0xe3")](t[Xa("0xd3")][Xa("0x23")].differ.getChangedMarkers()).filter((t=>Xa("0x90")===this[Xa("0xf9")](t[Xa("0x70")])[Xa("0xe6")]));if(0===e[Xa("0x80")])return;e.sort(((t,e)=>{const n=t[Xa("0x123")][Xa("0x74")],o=e.data[Xa("0x74")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[Xa("0x109")][Xa("0x13f")](o[Xa("0x109")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[Xa("0xf9")](t);if(null===s[Xa("0x74")]){const e=this[Xa("0xc4")](t);o[Xa("0x7b")](e)}else{const t=this._suggestions[Xa("0xc1")](e);null!==s[Xa("0x13c")]||t[Xa("0x29")]?(n[Xa("0x7b")](t[Xa("0x20")]),o[Xa("0x7b")](t)):this[Xa("0x18")](t)}}o.size>0&&this[Xa("0xc9")](o);for(const t of n)this.fire(Xa("0x13b"),t)})),t[Xa("0xd3")].on(Xa("0x8e"),((e,n)=>{const o=n[0];if(!this._suggestions[Xa("0x71")])return;if(!o[Xa("0x3")])return;if(o[Xa("0x10d")][Xa("0xb7")]||!o[Xa("0x10d")][Xa("0xa4")])return;let s,r;switch(o[Xa("0x140")]){case Xa("0xd4"):s=t[Xa("0xd3")][Xa("0x141")](o.position),r=s[Xa("0x28")](o[Xa("0x1a")]);break;case Xa("0x13a"):s=t[Xa("0xd3")].createPositionAt(o.splitPosition),r=t[Xa("0xd3")][Xa("0x141")](o[Xa("0x118")]);break;case"move":s=t[Xa("0xd3")].createPositionAt(o[Xa("0x136")]),r=s[Xa("0x28")](o.howMany);break;default:return}const i=t[Xa("0xd3")][Xa("0x6c")](s,r);t[Xa("0xd3")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(i)){if(t[Xa("0xf7")])continue;if(Xa("0xf8")==t[Xa("0x140")])continue;const n=t[Xa("0x123")]&&t.data[Xa("0x125")];(Xa("0x82")!=t.type||Xa("0x13a")==o[Xa("0x140")]&&!n)&&(e[Xa("0x7f")]||Xa("0xdf")==t[Xa("0x140")]&&e[Xa("0xfa")]||t.getFirstRange()[Xa("0x86")](i)&&this[Xa("0xd9")](t,s,r))}}))}),{priority:Xa("0x87")}),t[Xa("0xd3")].on(Xa("0x66"),((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[Xa("0x11")])return;if(!this.trackChangesCommand[Xa("0x122")])return;if(o.isCollapsed)return;const r=t[Xa("0xd3")][Xa("0xfe")],{start:i,end:x}=o.getFirstRange(),a=i[Xa("0x101")]&&r[Xa("0x30")](i[Xa("0x101")])?null:r[Xa("0xab")](i,Xa("0x143")),c=x.nodeBefore&&r[Xa("0x30")](x[Xa("0x3d")])?null:r[Xa("0xab")](x,"backward"),l=t[Xa("0xd3")].createRange(a?a.start:i,c?c[Xa("0x78")]:x);t[Xa("0xd3")].change((e=>{this[Xa("0x5d")](l);const n=t.model[Xa("0xfe")][Xa("0xab")](l[Xa("0x109")]);o.is(Xa("0x4f"))?e.setSelection(n):o[Xa("0x41")](n)})),e[Xa("0x61")]()}),{priority:e.priorities[Xa("0xd1")]+10}),t.model.on("insertContent",((e,n)=>{const o=n[n[Xa("0x80")]-1];o&&o[Xa("0xe4")]||this[Xa("0x11")]||this[Xa("0x11d")][Xa("0x122")]&&(t[Xa("0xd3")][Xa("0x112")]((()=>{let o=t[Xa("0xd3")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[Xa("0x13")]=o[Xa("0x42")]();const s=o[Xa("0x78")][Xa("0x3d")],r=t.model[Xa("0xfe")];s&&r[Xa("0x38")](s)&&!r[Xa("0x116")](s)&&(o=t[Xa("0xd3")][Xa("0x6c")](o.start,t[Xa("0xd3")][Xa("0x141")](s,Xa("0x78")))),this[Xa("0x48")](o)})),e[Xa("0x61")]())}),{priority:"high"}),this[Xa("0x35")][Xa("0xc2")][Xa("0x7b")]("trackChanges",this.trackChangesCommand),this[Xa("0x97")]("trackChanges");const o=new p(t,this[Xa("0xb2")]);t[Xa("0xc2")][Xa("0x7b")](Xa("0xa1"),o),this.enableCommand(Xa("0xa1"));const s=new C(t,this._suggestions);t[Xa("0xc2")].add(Xa("0x1c"),s),this[Xa("0x97")](Xa("0x1c")),t[Xa("0xc2")][Xa("0x7b")](Xa("0x50"),new F(t,o,this[Xa("0xb2")])),this[Xa("0x97")]("acceptAllSuggestions"),t[Xa("0xc2")][Xa("0x7b")](Xa("0x72"),new F(t,s,this[Xa("0xb2")])),this[Xa("0x97")](Xa("0x72")),t.commands[Xa("0x7b")](Xa("0x144"),new U(t,o,this[Xa("0xb2")])),this[Xa("0x97")](Xa("0x144")),t.commands[Xa("0x7b")]("discardSelectedSuggestions",new U(t,s,this[Xa("0xb2")])),this[Xa("0x97")](Xa("0x12"));const r=t[Xa("0x5")].get(Xa("0x137"));this.listenTo(r,Xa("0xb9"),((t,{threadId:e})=>{const n=this._suggestions[Xa("0xc1")](e);n&&n[Xa("0x43")]&&1===n[Xa("0x43")][Xa("0x80")]&&this[Xa("0xf3")](e,{hasComments:!0})}),{priority:Xa("0xf")}),this.listenTo(r,Xa("0x15"),((t,{threadId:e})=>{const n=this[Xa("0xb2")].get(e);n&&n[Xa("0x43")]&&!n[Xa("0x43")].length&&this[Xa("0xf3")](e,{hasComments:!1})}),{priority:Xa("0xf")})}set[Xa("0x77")](t){if(this._adapter)throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get[Xa("0x77")](){return this[Xa("0x114")]}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[Xa("0xb2")][Xa("0x8c")]())t&&!e[Xa("0x29")]||n[Xa("0xea")](e);return e?n.map((t=>t[Xa("0xdc")]())):n}[Xa("0x9")](t){const n=this[Xa("0xb2")].get(t);if(!n)throw new e.CKEditorError(Xa("0x130"),this);return n}hasSuggestion(t){return this._suggestions.has(t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t.type[Xa("0x13a")](":"),i=this[Xa("0xb2")].get(n)||this[Xa("0x10b")](s,r,n,e,o);if(this[Xa("0x75")](i),this[Xa("0x119")](i,s,r||null,e),i.createdAt=t[Xa("0x139")],i[Xa("0x2d")]=!0,o&&o["@external"]){const t=o[Xa("0x22")],e=this[Xa("0xd")](t.authorName);i[Xa("0x6a")]=t[Xa("0x139")],i[Xa("0x6e")]=e,i[Xa("0x6b")]=!0}else i[Xa("0x6a")]=t[Xa("0x139")];switch(t[Xa("0x123")]&&(i[Xa("0x123")]=t.data),t[Xa("0x5a")]&&(i[Xa("0x5a")]=t[Xa("0x5a")]),this[Xa("0x114")]&&this[Xa("0x114")][Xa("0x131")]||(i[Xa("0x73")]=!0),this[Xa("0x138")][Xa("0xc1")](i)){case Xa("0xac"):this._suggestionState[Xa("0xce")](i,"dataReady");break;case Xa("0x53"):i[Xa("0x29")]?(this[Xa("0xc9")](new Set([i])),this._joinWithAdjacentSuggestions(new Set([i])),this[Xa("0x138")][Xa("0xce")](i,"ready"),this.fire(Xa("0x52"),i)):this[Xa("0x138")][Xa("0xce")](i,"removed")}return i}[Xa("0xa1")](t){this[Xa("0xe4")]((()=>{this[Xa("0x35")].model[Xa("0x112")]((()=>{for(const e of t[Xa("0x127")]())e.accept()}))}))}[Xa("0x1c")](t){this[Xa("0xe4")]((()=>{this.editor[Xa("0xd3")][Xa("0x112")]((()=>{for(const e of t[Xa("0x127")]())e[Xa("0xf4")]()}))}))}[Xa("0x97")](t,n){const o=this[Xa("0x35")].commands[Xa("0xc1")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[Xa("0x4b")][Xa("0x7b")](o),n&&o.on(Xa("0x3f"),((t,e)=>{this[Xa("0x11d")].value&&(this[Xa("0x11")]||e[Xa("0x80")]>0&&e[e[Xa("0x80")]-1]&&e[e[Xa("0x80")]-1][Xa("0xe4")]||(t[Xa("0x13")]=n(((...t)=>o[Xa("0x3f")](...t,{forceDefaultExecution:!0})),...e),t.stop()))}),{priority:"high"})}[Xa("0xe4")](t){let n,o;const s=this[Xa("0x11")];this._isForcedDefaultExecutionBlock=!0;try{n=t()}catch(t){o=t}return s||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[Xa("0x48")](t,n=null,o={}){if(t[Xa("0x142")])return null;const s=this[Xa("0x35")][Xa("0x5")][Xa("0xc1")](Xa("0x34")).me;for(const{suggestion:e,meta:s}of this._findSuggestions(t,Xa("0xdf")))if(s[Xa("0xfa")]){if(!s.isNextTo){if(s[Xa("0x7f")]){if(!this[Xa("0x128")]||!rc(e,o))continue;return e}if(rc(e,o))return e;this._breakSuggestionMarker(e,t[Xa("0x109")],t[Xa("0x78")]);break}if(n==e[Xa("0x3a")]&&rc(e,o)){const n=e[Xa("0x85")]();return n[Xa("0x109")][Xa("0xbe")](t[Xa("0x78")])?this[Xa("0x13d")](e,this[Xa("0x115")].createRange(t[Xa("0x109")],n[Xa("0x78")])):this[Xa("0x13d")](e,this[Xa("0x115")][Xa("0x6c")](n[Xa("0x109")],t[Xa("0x78")])),e}}const r=(0,e.uid)(),i=s.id,x=n?Xa("0xca")+n:Xa("0xdf"),a=this[Xa("0x69")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x9b")](x,r,i,t),a}[Xa("0xb8")](t,n="multi",o={}){const s=this.editor[Xa("0x5")][Xa("0xc1")](Xa("0x34")).me,r=this[Xa("0x133")][Xa("0x60")]("insertion",n,Xa("0x17"));for(const e of this[Xa("0xa7")]())if(e.author.id==s.id&&"insertion"==e[Xa("0x140")]&&e[Xa("0x3a")]==n&&rc(e,o)&&(r(e[Xa("0xeb")](),t)||r(t,e[Xa("0xeb")]()))){for(const n of t)e[Xa("0x120")](n);return e}for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xdf"))){if(!n[Xa("0xfa")])continue;if(!this[Xa("0x128")]&&n[Xa("0x7f")])continue;if(!rc(e,o))continue;let s=!0;for(const n of e.getRanges())for(const e of t)if(!n[Xa("0x86")](e)){s=!1;break}if(s)return e}const i=(0,e.uid)(),x=s.id,a=Xa("0xca")+n,c=this[Xa("0x69")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[Xa("0xc5")]());return c}[Xa("0xe0")](t,n,o=null,s={}){if(o=o||tc(n),t[Xa("0x142")])return null;if(Xa("0x102")===this[Xa("0xba")]){const e=this[Xa("0x133")][Xa("0x60")]("formatInline",o,Xa("0x81"));return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[Xa("0x35")][Xa("0x5")].get(Xa("0x34")).me,i=[];if(Xa("0x11a")!==this[Xa("0xba")])for(const{suggestion:e,meta:n}of this[Xa("0xe1")](t,Xa("0xdf")))n[Xa("0xfa")]&&!n[Xa("0x1")]&&i[Xa("0xea")](...e[Xa("0xeb")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n[Xa("0xea")](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].getDifference(t);n[Xa("0xa0")](e,1,...o),e+=o[Xa("0x80")]}}return n}(t,i);x[Xa("0x80")]&&this[Xa("0x115")][Xa("0x112")]((()=>{for(const t of x){const e=this[Xa("0x133")][Xa("0x60")](Xa("0xf8"),o,Xa("0x81"));this.forceDefaultExecution((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[Xa("0x109")],a=t[Xa("0x78")];for(const{suggestion:e,meta:n}of this[Xa("0xe1")](t,Xa("0xf8"))){if(!n.isOwn)continue;if(e[Xa("0x3a")]!=o)continue;if(!rc(e,s))continue;const r=e[Xa("0x85")]();if(r[Xa("0x86")](t,!0))return null;x=x.isBefore(r[Xa("0x109")])?x:r[Xa("0x109")],a=a[Xa("0xfd")](r.end)?a:r[Xa("0x78")],i?r[Xa("0x109")][Xa("0x13f")](i.getFirstRange()[Xa("0x109")])?(i.removeMarkers(),i=e):e.removeMarkers():i=e}const c=this[Xa("0x115")][Xa("0x6c")](x,a);if(i)this[Xa("0x13d")](i,c);else{const t=(0,e.uid)(),i=r.id;this[Xa("0x69")]({id:t,type:Xa("0x5e")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[Xa("0x9b")]("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[Xa("0xc8")]||(n[Xa("0xc8")]=n[Xa("0x98")]),n[Xa("0x125")]=t.is(Xa("0x64")),s=s||tc(n);const i=o[Xa("0x93")]((t=>nc(t,this[Xa("0x115")]))),x=t.is(Xa("0x64"))?t:nc(t,this._model);if("never"===this[Xa("0xba")]){const t=this[Xa("0x133")].getSuggestionCallback(Xa("0x82"),s,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}i[Xa("0xea")](x);let a=!0;for(const t of i)if(!this[Xa("0x58")](t)){a=!1;break}if(a&&"always"!==this[Xa("0xba")]){const t=this[Xa("0x133")][Xa("0x60")](Xa("0x82"),s,Xa("0x81"));return this[Xa("0xe4")]((()=>t([x],n,r))),null}let c=null,l=x[Xa("0x109")],u=x.end;for(const{suggestion:t,meta:e}of this._findSuggestions(x,"formatBlock")){if(!e[Xa("0xfa")])continue;if(e[Xa("0x4c")]||e[Xa("0x7f")]||e.isInsideObject)continue;if(t[Xa("0x123")][Xa("0xc8")]!=n.formatGroupId)continue;if(!rc(t,r))continue;const o=t[Xa("0x85")]();if(t.subType==s){if(o.containsRange(x,!0))return null;l=l[Xa("0x13f")](o[Xa("0x109")])?l:o[Xa("0x109")],u=u[Xa("0xfd")](o[Xa("0x78")])?u:o[Xa("0x78")],c?o.start[Xa("0x13f")](c.getFirstRange()[Xa("0x109")])?(c.removeMarkers(),c=t):t[Xa("0xd7")]():c=t}else{const e=x[Xa("0xcd")](o);this[Xa("0x2a")](t,e)}}const d=this[Xa("0x35")][Xa("0x5")].get(Xa("0x34")).me,g=(0,e.uid)(),m=d.id;if(c)return this[Xa("0x13d")](c,this._model.createRange(l,u)),c;{const t=this._setSuggestionData({id:g,type:Xa("0x6d")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[Xa("0x9b")](Xa("0x6d")+s,g,m,this[Xa("0x115")][Xa("0x6c")](l,u)),t}}[Xa("0x134")](t,n,o=[],s=null,r={}){n.formatGroupId||(n.formatGroupId=n.commandName);const i=t[0];n[Xa("0x125")]=i.is(Xa("0x64")),s=s||tc(n);const x=o[Xa("0x93")]((t=>nc(t,this[Xa("0x115")]))),a=i.is(Xa("0x64"))?t:t[Xa("0x93")]((t=>nc(t,this[Xa("0x115")])));if("never"===this._trackFormatChanges){const t=this[Xa("0x133")][Xa("0x60")](Xa("0x82"),s,Xa("0x81"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x[Xa("0xea")](...a);let c=!0;for(const t of x)if(!this._rangeIsInLocalUserInsertion(t)){c=!1;break}if(c&&"always"!==this[Xa("0xba")]){const t=this[Xa("0x133")].getSuggestionCallback(Xa("0x82"),s,Xa("0x81"));return this[Xa("0xe4")]((()=>t(a,n,r))),null}const l=this[Xa("0x35")][Xa("0x5")][Xa("0xc1")]("Users").me;for(const t of this.getSuggestions()){if(t[Xa("0x6e")].id!=l.id)continue;if(Xa("0x82")!=t[Xa("0x140")]||t.data[Xa("0xc8")]!=n[Xa("0xc8")])continue;if(!rc(t,r))continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t[Xa("0x3e")]()){const r=s.getRange();if(o[Xa("0xbe")](r)){e?(a[Xa("0xa0")](n,1),n--):t[Xa("0x103")](s[Xa("0x70")]);break}}}}if(0==a.length)return null;const u=this._suggestionFactory[Xa("0x60")](Xa("0x82"),s,Xa("0x17"));for(const t of this[Xa("0xa7")]())if(t[Xa("0x6e")].id==l.id&&"formatBlock"==t[Xa("0x140")]&&t[Xa("0x123")][Xa("0xc8")]==n[Xa("0xc8")]&&t[Xa("0x3a")]==s&&rc(t,r)&&(u(t[Xa("0xeb")](),a)||u(a,t[Xa("0xeb")]()))){for(const e of a)t.addRange(e);return t}const d=(0,e.uid)(),g=l.id,m=Xa("0x6d")+s,f=this[Xa("0x69")]({id:d,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[Xa("0x9b")](m,d,g,t,Zo.getMultiRangeId());return f}[Xa("0x5d")](t,n=null,o={}){if(t[Xa("0x142")])return null;const s=this[Xa("0x35")].plugins[Xa("0xc1")](Xa("0x34")).me,r=new i.LiveRange(t[Xa("0x109")],t[Xa("0x78")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0xdf")))if(e.isOwn&&!e[Xa("0x4c")])if(t[Xa("0xf7")]){const e=t.getRanges()[Xa("0x59")]((t=>Xa("0x37")!=t[Xa("0x10e")][Xa("0xc")]));if(e[Xa("0xa9")]((t=>r[Xa("0x86")](t,!0)))&&t.discard(),e[Xa("0x12d")]((t=>t[Xa("0x86")](r,!0)))){const t=this[Xa("0x133")].getSuggestionCallback("deletion",n,"accept");return this[Xa("0xe4")]((()=>t([r],null,o))),null}}else{const e=r[Xa("0xcd")](t[Xa("0x85")]());null!==e&&t[Xa("0xef")]([e],null,o)}if(r[Xa("0x111")](),r[Xa("0x142")]||Xa("0x37")==r[Xa("0x10e")].rootName)return null;let x=null,a=r[Xa("0x109")],c=r[Xa("0x78")];const l=this[Xa("0xe1")](r,Xa("0x1f"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e.isOwn&&(this[Xa("0x128")]||!e[Xa("0x7f")]&&!e[Xa("0x1")]))if(t[Xa("0xf7")]){if(!rc(t,o))continue;let e=!0;for(const o of t[Xa("0xeb")]()){if(o[Xa("0x86")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t.discard()}else{const e=t[Xa("0x85")]();if(e[Xa("0x86")](n,!0))return t;if(!rc(t,o)){n.containsRange(e)?t.removeMarkers():e[Xa("0xd0")](a)?a=e.end:e[Xa("0xd0")](c)&&(c=e[Xa("0x109")]);continue}a=a[Xa("0x13f")](e[Xa("0x109")])?a:e[Xa("0x109")],c=c[Xa("0xfd")](e[Xa("0x78")])?c:e[Xa("0x78")],o=Object[Xa("0x4a")]({},t[Xa("0x5a")]),x?e[Xa("0x109")][Xa("0x13f")](x[Xa("0x85")]()[Xa("0x109")])?(x[Xa("0xd7")](),x=t):t[Xa("0xd7")]():x=t}}if(x)return this[Xa("0x13d")](x,this[Xa("0x115")].createRange(a,c)),x;{const t=(0,e.uid)(),r=this[Xa("0x115")][Xa("0x6c")](a,c),i=s.id,x=n?"deletion:"+n:"deletion",l=this[Xa("0x69")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[Xa("0x9b")](x,t,i,r),l}}[Xa("0x96")](t,n=Xa("0xf5"),o={}){const s=this[Xa("0x35")][Xa("0x5")][Xa("0xc1")]("Users").me,r=t[Xa("0x93")]((t=>new i.LiveRange(t.start,t[Xa("0x78")]))),x=new Set;for(const{suggestion:t,meta:e}of this._findSuggestions(r,Xa("0xdf")))e[Xa("0xfa")]&&!e[Xa("0x4c")]&&x[Xa("0x7b")](t);for(const e of x)if(e[Xa("0xf7")]){const s=e[Xa("0xeb")]();if((!e[Xa("0x5a")]||!e[Xa("0x5a")][Xa("0x100")])&&s[Xa("0xa9")]((t=>r[Xa("0x12d")]((e=>e.containsRange(t,!0)))))&&e[Xa("0xf4")](),r[Xa("0xa9")]((t=>s[Xa("0x12d")]((e=>e.containsRange(t,!0)))))){const e=this[Xa("0x133")][Xa("0x60")](Xa("0x1f"),n,"accept");return this[Xa("0xe4")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r[Xa("0x12d")]((e=>e[Xa("0x86")](t,!0)))&&e[Xa("0xf4")](),r.every((e=>t.containsRange(e,!0)))){const t=this._suggestionFactory[Xa("0x60")](Xa("0x1f"),n,"accept");return this[Xa("0xe4")]((()=>t(r,null,o))),null}}const a=this[Xa("0x133")].getSuggestionCallback("deletion",n,Xa("0x17"));let c=null;for(const t of this[Xa("0xa7")]())if(t[Xa("0x6e")].id==s.id&&t[Xa("0x29")]&&Xa("0x1f")==t.type&&t[Xa("0x3a")]==n&&rc(t,o)&&(a(t.getRanges(),r)||a(r,t[Xa("0xeb")]())))if(c){if(t[Xa("0x43")]&&t[Xa("0x43")][Xa("0x80")])continue;for(const e of t[Xa("0xeb")]())c[Xa("0x7")](e)||c[Xa("0x120")](e);t[Xa("0xd7")]()}else{c=t;for(const e of r)t[Xa("0x7")](e)||t[Xa("0x120")](e)}if(c)return c;x[Xa("0x8d")]();for(const{suggestion:t,meta:e}of this[Xa("0xe1")](r,"deletion"))e[Xa("0xfa")]&&(this[Xa("0x128")]||!e[Xa("0x7f")]&&!e.isInsideObject)&&rc(t,o)&&x[Xa("0x7b")](t);for(const t of x){const e=t.getRanges();if((!o||!o[Xa("0x100")])&&r[Xa("0xa9")]((t=>e[Xa("0x12d")]((e=>e[Xa("0x86")](t,!0))))))return t;(!t[Xa("0x5a")]||!t[Xa("0x5a")][Xa("0x100")])&&e[Xa("0xa9")]((t=>r[Xa("0x12d")]((e=>e[Xa("0x86")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=s.id,d=Xa("0xf2")+n,g=this[Xa("0x69")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[Xa("0x111")](),t[Xa("0x142")]||Xa("0x37")==t[Xa("0x10e")][Xa("0xc")]||this._addSuggestionMarker(d,l,u,t,Zo.getMultiRangeId());return g}[Xa("0x13d")](t,e){const n=t[Xa("0xcb")]();this[Xa("0x115")].change((t=>{t[Xa("0x6")](n,{range:e})}))}[Xa("0x75")](t){const e=t.id,n=this.editor[Xa("0x5f")][Xa("0xc1")](Xa("0xb4"));this[Xa("0x8f")][Xa("0x12e")](e)||this[Xa("0x8f")][Xa("0x10")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[Xa("0x8f")][Xa("0x57")](e);o[Xa("0x8b")](Xa("0x11c")),o[Xa("0x11c")]=!1,t[Xa("0x43")]=o}[Xa("0x119")](t,n,o,s){if(t[Xa("0x140")]!=n||t[Xa("0x3a")]!=o||t.creator.id!=s)throw this[Xa("0x35")][Xa("0x8")](Xa("0x104")),new e.CKEditorError(Xa("0x104"),this)}_cutOutSuggestionMarker(t,n){const o=t[Xa("0x85")]();if(n[Xa("0xbe")](o))t[Xa("0xd7")]();else if(o[Xa("0x86")](n)){const s=this[Xa("0x115")][Xa("0x141")](n.start[Xa("0x3d")],Xa("0x78"));this[Xa("0x13d")](t,this._model[Xa("0x6c")](o[Xa("0x109")],s));const r=(0,e.uid)(),i=t.creator.id,x=t.type+":"+t.subType;this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:i,data:t[Xa("0x123")],attributes:t[Xa("0x5a")]});const a=this[Xa("0x115")][Xa("0x141")](n.end[Xa("0x9f")],"after"),c=this[Xa("0x115")][Xa("0x6c")](a,o[Xa("0x78")]);this[Xa("0x9b")](x,r,i,c)}else if(o[Xa("0xd0")](n[Xa("0x109")])){const e=this[Xa("0x115")].createPositionAt(n[Xa("0x109")].nodeBefore,Xa("0x78"));this[Xa("0x13d")](t,this._model[Xa("0x6c")](o[Xa("0x109")],e))}else{const e=this[Xa("0x115")][Xa("0x141")](n[Xa("0x78")][Xa("0x9f")],Xa("0x44"));this[Xa("0x13d")](t,this[Xa("0x115")][Xa("0x6c")](e,o[Xa("0x78")]))}}[Xa("0x58")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,Xa("0xdf"))){if(!n[Xa("0xfa")])continue;const o=e.getRanges();for(const e of o)if(!t.getDifference(e)[Xa("0x80")])return!0}return!1}[Xa("0xf6")](t){const n=this.editor[Xa("0x5")][Xa("0xc1")](Xa("0x34"))[Xa("0x9a")](t);if(!n)throw new e.CKEditorError("track-changes-user-not-found",this);return n}[Xa("0xd")](t){const e=this.editor[Xa("0x5")][Xa("0xc1")](Xa("0x34")),n=(0,r.hashObject)(Xa("0x54")+t);return e[Xa("0x9a")](n)||e[Xa("0xdb")]({id:n,name:t})}[Xa("0x10b")](t,e,n,o,s){const r=this._getAuthorFromId(o),i=this[Xa("0x133")][Xa("0x31")](t,e,n,r,s,(t=>this[Xa("0xf3")](n,{attributes:t})));return this[Xa("0x24")](i,Xa("0x81"),(()=>{this[Xa("0xf3")](n,{state:"accepted"})}),{priority:"high"}),this[Xa("0x24")](i,Xa("0xf4"),(()=>{this[Xa("0xf3")](n,{state:Xa("0x9c")})}),{priority:Xa("0x63")}),this[Xa("0xb2")][Xa("0xce")](n,i),this[Xa("0x138")][Xa("0xce")](i,Xa("0xac")),i}[Xa("0xf9")](t){const e=t[Xa("0x13a")](":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[Xa("0x80")]<5?e[3]:e[4],markerCount:6==e[Xa("0x80")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t.getFirstRange(),r=s[Xa("0x109")],i=s[Xa("0x78")];this[Xa("0x13d")](t,this[Xa("0x115")][Xa("0x6c")](r,n));const x=(0,e.uid)(),a=t[Xa("0x9d")].id,c=t[Xa("0x140")]+(t.subType?":"+t[Xa("0x3a")]:"");this[Xa("0x69")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t[Xa("0x123")]}),Xa("0x82")==t.type&&(o=this[Xa("0x115")][Xa("0x67")](o.parent)),this[Xa("0x9b")](c,x,a,this[Xa("0x115")].createRange(o,i))}_findSuggestions(t,e=null){const n=[],o=this.editor[Xa("0x5")][Xa("0xc1")](Xa("0x34")).me;Array[Xa("0xd8")](t)||(t=[t]);for(const s of this.getSuggestions()){if(!s.isInContent)continue;if(e&&s.type!=e)continue;let r=!1;for(const e of s[Xa("0xeb")]()){for(const i of t){const t=i.start[Xa("0xbe")](e[Xa("0x78")])||i[Xa("0x78")].isEqual(e[Xa("0x109")]);if(t||i[Xa("0xcd")](e)){const x=i[Xa("0x86")](e)&&Qa(this[Xa("0x115")][Xa("0xfe")],e[Xa("0x109")],i),a=e.containsRange(i)&&Qa(this[Xa("0x115")].schema,i.start,e);n.push({suggestion:s,meta:{isOwn:o==s[Xa("0x6e")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[Xa("0x9b")](t,e,n,o,s){this._model[Xa("0x112")]((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[Xa("0x7e")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[Xa("0x18")](t){const e=t[Xa("0x8a")],n=t[Xa("0x89")];t.previous=null,null!=e&&(e[Xa("0x89")]=null),t[Xa("0x89")]=null,null!=n&&(n.previous=null),Xa("0xfb")==this._suggestionState[Xa("0xc1")](t)&&(this[Xa("0x138")][Xa("0xce")](t,Xa("0xff")),this[Xa("0x7d")](Xa("0x92"),t,e,n))}[Xa("0x69")](t){const n=t.id,o=this[Xa("0x12b")](t);if(this[Xa("0x114")]&&this[Xa("0x114")].addSuggestion){const s=this[Xa("0x35")][Xa("0x5")][Xa("0xc1")](Xa("0xb6")),r=o[Xa("0xb0")],i=o[Xa("0x3a")]?o.type+":"+o[Xa("0x3a")]:o[Xa("0x140")],x=this[Xa("0x35")].locale,a=s[Xa("0x7b")](Yo(x,Xa("0xc3"))),c={id:n,type:i,hasComments:r,data:t.data||null,originalSuggestionId:t[Xa("0x79")]||null,attributes:o[Xa("0x5a")]};this[Xa("0x114")][Xa("0x131")](c).then((t=>{o[Xa("0x73")]=!0,s[Xa("0xbb")](a),t&&t.createdAt&&(this._suggestions[Xa("0xc1")](n)[Xa("0x139")]=t[Xa("0x139")])}))[Xa("0xd6")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this.editor.model[Xa("0x126")]({isUndoable:!1},(()=>{o[Xa("0xf4")]()})),o[Xa("0x27")](),this[Xa("0xb2")][Xa("0x94")](o.id),this[Xa("0x138")][Xa("0x94")](o),t}))}return o}[Xa("0xf3")](t,e){const n=this.editor[Xa("0x5")].get("PendingActions"),o=this.getSuggestion(t);if(this[Xa("0x114")]&&this._adapter[Xa("0x4")])if(o[Xa("0x73")]){const o=n[Xa("0x7b")](Yo(this.editor.locale,Xa("0xc3")));this._adapter.updateSuggestion(t,e)[Xa("0xd2")]((()=>{n[Xa("0xbb")](o)}))}else o.on(Xa("0xc0"),(()=>{this[Xa("0xf3")](t,e)}))}_getSuggestionData(t){if(!this[Xa("0x114")]||!this[Xa("0x114")][Xa("0x9")])throw new e.CKEditorError(Xa("0x117"),this);return this[Xa("0x114")][Xa("0x9")](t)}[Xa("0xc4")](t){const{id:e,type:n,subType:o,authorId:s}=this[Xa("0xf9")](t),r=this._suggestions[Xa("0xc1")](e)||this._createSuggestion(n,o,e,s,{});switch(this[Xa("0x119")](r,n,o,s),this[Xa("0x138")][Xa("0xc1")](r)){case"notReady":this._getSuggestionData(e).then((t=>{let n=Promise[Xa("0xc7")]();t[Xa("0xb0")]&&(n=this[Xa("0x8f")].fetchCommentThread({channelId:this[Xa("0x35")][Xa("0x5f")][Xa("0xc1")](Xa("0xb4")),threadId:e})),n[Xa("0xd2")]((()=>{this[Xa("0x12b")](t)[Xa("0x73")]=!0}))})),this[Xa("0x138")][Xa("0xce")](r,Xa("0x53"));break;case Xa("0xff"):this[Xa("0xf3")](e,{state:Xa("0x14")});case Xa("0x95"):this[Xa("0x138")][Xa("0xce")](r,"ready"),this[Xa("0x7d")]("suggestionLoaded",r);break;case Xa("0xfb"):this.fire("suggestionChanged",r)}return r[Xa("0xcf")](t),r}[Xa("0xc9")](t){const e=Array[Xa("0xe3")](t)[Xa("0x59")]((t=>!t.isMultiRange)),n=this.getSuggestions({skipNotAttached:!0})[Xa("0x59")]((t=>!t[Xa("0xf7")])),o=n[Xa("0x59")]((e=>!t[Xa("0x10c")](e))),s=new Map(n[Xa("0x93")]((t=>[t,this[Xa("0x133")][Xa("0x60")](t[Xa("0x140")],t.subType,Xa("0x39"))]))),r=new Map(n.map((t=>[t,t[Xa("0x85")]()]))),i=new Set,x=new Set;for(let t=0;t<e[Xa("0x80")];t++)a(e[t],e,t+1);for(let t=0;t<e.length;t++)a(e[t],o,0);for(let t=0;t<e[Xa("0x80")];t++){const n=e[t];!x[Xa("0x10c")](n)&&n[Xa("0x8a")]&&(n[Xa("0x8a")][Xa("0x89")]===n&&(n[Xa("0x8a")][Xa("0x89")]=null),n.previous=null),!i[Xa("0x10c")](n)&&n.next&&(n.next[Xa("0x8a")]===n&&(n.next[Xa("0x8a")]=null),n[Xa("0x89")]=null)}function a(t,e,n){for(let o=n;o<e[Xa("0x80")];o++){const n=c(t,e[o]);n&&(n[0][Xa("0x89")]=n[1],n[1][Xa("0x8a")]=n[0],i.add(n[0]),x[Xa("0x7b")](n[1]))}}function c(t,e){if(t[Xa("0x6e")].id!==e[Xa("0x6e")].id)return null;const n=s[Xa("0xc1")](t)(t,e,r.get(t),r.get(e));return n&&s[Xa("0xc1")](e)(t,e,r[Xa("0xc1")](t),r[Xa("0xc1")](e))?n[1][Xa("0x43")]&&n[1].commentThread[Xa("0x80")]?null:n:null}}[Xa("0x99")](t){const e=Array[Xa("0xe3")](t),n=this[Xa("0xa7")]({skipNotAttached:!0}),o=n.filter((e=>!t[Xa("0x10c")](e))),s=new Map(e[Xa("0x93")]((t=>[t,this[Xa("0x133")].getSuggestionCallback(t[Xa("0x140")],t[Xa("0x3a")],Xa("0x17"))]))),r=new Map(n[Xa("0x93")]((t=>[t,t[Xa("0xeb")]()])));for(let t=0;t<e[Xa("0x80")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;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("0x80")];i++){const o=n[i];if(o[Xa("0x140")]!==e[Xa("0x140")]||o.author.id!==e[Xa("0x6e")].id||o[Xa("0x3a")]!==e.subType)continue;if(!sc(e,o))continue;const x=s.get(e),a=r[Xa("0xc1")](e),c=r[Xa("0xc1")](o),l=e[Xa("0x43")]&&e[Xa("0x43")].length,u=o[Xa("0x43")]&&o[Xa("0x43")][Xa("0x80")];if(!l&&x(c,a))return t[Xa("0xe2")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[Xa("0xe2")](e,o),r.delete(o),!0}return!1}}_joinSuggestions(t,e){if(t[Xa("0xf7")])for(const n of e[Xa("0xeb")]())t[Xa("0x120")](n);else{const n=e.getFirstRange()[Xa("0x78")];this[Xa("0x13d")](t,this[Xa("0x115")][Xa("0x6c")](t[Xa("0x85")]()[Xa("0x109")],n))}e.removeMarkers()}}class Ja{constructor(t){this[Xa("0x6f")]=t,this[Xa("0x115")]=t[Xa("0xd3")],this[Xa("0xed")]=new Map,this[Xa("0x145")]=new Map,this[Xa("0x105")]()}[Xa("0x31")](t,e,n,o,s,r){return new Zo(this[Xa("0x115")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this.getSuggestionCallback(t,e,Xa("0x81"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,Xa("0xf4"))(...n)})}[Xa("0x106")](t,e,n,o){const s=t+":"+e+":"+n;this[Xa("0xed")].set(s,o)}[Xa("0x60")](t,e,n){const o=t+":"+e+":"+n;return this[Xa("0xed")][Xa("0xc1")](o)||this[Xa("0x145")].get(t+":"+n)}[Xa("0x105")](){const t=()=>!1,e=t=>{t[Xa("0xe")](((t,e)=>t[Xa("0x109")].isBefore(e.start)?1:-1)),this[Xa("0x115")][Xa("0x112")]((e=>{for(const n of t){let t;t=n[Xa("0x78")][Xa("0x2")]&&n[Xa("0x78")].parent==n[Xa("0x109")].nodeAfter?e[Xa("0x13e")](n.start.nodeAfter,"on"):e[Xa("0x13e")](n),this[Xa("0x115")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[Xa("0x115")][Xa("0x112")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[Xa("0x93")]((t=>(Za(t)&&(t=this[Xa("0x115")][Xa("0x6c")](t[Xa("0x78")])),t)))[Xa("0x59")]((t=>Xa("0x37")!==t[Xa("0x10e")].rootName));if(r[Xa("0x80")]<1)return;const x=Array.from(this._model[Xa("0x23")].selection[Xa("0xeb")]())[Xa("0x93")]((t=>i.LiveRange[Xa("0x124")](t)));n[Xa("0xbd")](r);for(const t of this[Xa("0x6f")][Xa("0xc2")][Xa("0xc2")]())t[Xa("0x5b")]();s[Xa("0xea")]({forceDefaultExecution:!0}),this[Xa("0x6f")][Xa("0x3f")](o,...s);const a=x[Xa("0x59")]((t=>Xa("0x37")!=t[Xa("0x10e")][Xa("0xc")]));a[Xa("0x80")]>0&&n[Xa("0xbd")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t[Xa("0x80")]&&1==e[Xa("0x80")]&&t[0][Xa("0x78")][Xa("0xbe")](e[0].start),s=(t,e,n,o)=>oc(t,e,n,o,this[Xa("0x115")])?[t,e]:oc(e,t,o,n,this[Xa("0x115")])?[e,t]:null;this._defaultCallbacks[Xa("0xce")](Xa("0xdd"),t),this[Xa("0x145")][Xa("0xce")](Xa("0x113"),e),this[Xa("0x145")].set(Xa("0xb3"),o),this[Xa("0x145")][Xa("0xce")](Xa("0x68"),s),this[Xa("0x145")][Xa("0xce")]("deletion:accept",e),this._defaultCallbacks[Xa("0xce")]("deletion:discard",t),this[Xa("0x145")][Xa("0xce")]("deletion:join",o),this[Xa("0x145")][Xa("0xce")]("deletion:chain",s),this[Xa("0x145")][Xa("0xce")](Xa("0xda"),n),this._defaultCallbacks[Xa("0xce")](Xa("0x83"),t),this[Xa("0x145")].set(Xa("0x5c"),o),this[Xa("0x145")].set(Xa("0xa3"),t),this[Xa("0x145")][Xa("0xce")](Xa("0xf0"),n),this[Xa("0x145")][Xa("0xce")](Xa("0x19"),t),this[Xa("0x145")].set(Xa("0x88"),o),this[Xa("0x145")][Xa("0xce")]("formatBlock:chain",t)}}function Qa(t,e,n){for(const o of e[Xa("0x9f")][Xa("0x4e")]({includeSelf:!0,parentFirst:!0})){if(o[Xa("0x10e")]==o)return!1;if(!n[Xa("0x11f")](o))return!1;if(t[Xa("0x116")](o)||t.isLimit(o))return!0}return!1}function Za(t){return t.end[Xa("0x9f")]==t.start[Xa("0x101")]&&t.end[Xa("0x121")]}function Ya(t,e,n,o){const s=t=>!t[Xa("0x55")].is(Xa("0x10a"))&&!o[Xa("0x116")](t[Xa("0x55")]),r=t[Xa("0x109")].getLastMatchingPosition(s),i=t.end[Xa("0x7a")](s,{direction:Xa("0x2c")});return!(t[Xa("0x109")][Xa("0xbe")](r)&&t.end.isEqual(i)||(r.isBefore(i)?n[Xa("0x6")](e,{range:n[Xa("0x6c")](r,i)}):n[Xa("0x103")](e),0))}function tc(t){return(0,r.hashObject)(t)}function ec(t){const e=t[Xa("0x109")][Xa("0x101")];return e&&e.is("element")}function nc(t,e){const n=e.schema[Xa("0x116")](t)||e.schema[Xa("0x51")](t);return e[Xa("0x6c")](e[Xa("0x141")](t,Xa("0xb")),n?e[Xa("0xe8")](t):e[Xa("0x141")](t,Xa("0x78")))}function oc(t,e,n,o,s){if(!sc(t,e))return!1;if(n.end[Xa("0xbe")](o[Xa("0x109")]))return!0;if(t[Xa("0x140")]!=e[Xa("0x140")])return!1;if(!n[Xa("0x78")][Xa("0x12f")](o.start))return!1;const r=s.createRange(n[Xa("0x78")],o.start)[Xa("0x107")]();for(const t of r)if([Xa("0x12c"),Xa("0xec")].includes(t[Xa("0x140")])&&s[Xa("0xfe")][Xa("0x30")](t[Xa("0x55")]))return!1;return!0}function sc(t,e){return!(!t[Xa("0x2d")]||!e._isDataLoaded)&&Go(t[Xa("0x5a")],e.attributes)}function rc(t,e){const n=ic(t[Xa("0x5a")]),o=ic(e);if(!t[Xa("0x2d")])return!1;for(const t of Object[Xa("0x9e")](o))if(!Go(n[t],o[t]))return!1;return!0}function ic(t){const e=Object[Xa("0x4a")]({},t);return delete e[Xa("0x100")],delete e[Xa("0xa")],e}const xc=["execute","commentThreadController","stopListening","listenTo","destroy","_editor","_discardCommand","remove","isEnabled","acceptSuggestion","canDiscard","_removePendingAction","view","canAccept","PendingActions","canEditAt","unbind","commands","getRanges","_acceptCommand","add","change:isDirty","_setPendingAction","model","locale","plugins","discardSuggestion","get","_pendingAction","PENDING_ACTION_SUGGESTION"];var ac,cc;ac=xc,cc=180,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("0x17")]=e,this[lc("0xc")]=n,this[lc("0x1")]=o,this[lc("0x5")]=t,this[lc("0x13")]=t[lc("0x11")].get(lc("0x9")),this[lc("0x6")]=t[lc("0x11")].get("discardSuggestion"),this[lc("0xc")].bind(lc("0x8")).to(this._acceptCommand,this[lc("0x6")],((t,e)=>t||e)),this[lc("0xc")].bind(lc("0xd")).to(this[lc("0x13")],"isEnabled",(t=>t&&this._editor[lc("0x17")][lc("0xf")](e[lc("0x12")]()))),this[lc("0xc")].bind(lc("0xa")).to(this._discardCommand,"isEnabled",(t=>t&&this[lc("0x5")][lc("0x17")][lc("0xf")](e.getRanges()))),this[lc("0x1c")]=null,n.isDirty&&this._setPendingAction(),this[lc("0x3")](n,lc("0x9"),(()=>this.acceptSuggestion())),this.listenTo(n,lc("0x1a"),(()=>this[lc("0x1a")]())),this.listenTo(n,lc("0x15"),(()=>{n.isDirty?this[lc("0x16")]():this[lc("0xb")]()}))}acceptSuggestion(){this[lc("0x13")][lc("0x0")](this.model.id)}[lc("0x1a")](){this[lc("0x6")][lc("0x0")](this[lc("0x17")].id)}[lc("0x4")](){this[lc("0xc")][lc("0x10")](lc("0x8")),this.view[lc("0x10")](lc("0xd")),this[lc("0xc")][lc("0x10")](lc("0xa")),this[lc("0x2")](),this[lc("0x1")][lc("0x4")](),this[lc("0x1c")]&&this[lc("0xb")]()}[lc("0x16")](){const t=Yo(this[lc("0x5")][lc("0x18")],lc("0x1d"));this[lc("0x1c")]=this[lc("0x5")][lc("0x19")][lc("0x1b")](lc("0xe"))[lc("0x14")](t)}_removePendingAction(){null!==this[lc("0x1c")]&&this[lc("0x5")][lc("0x19")].get(lc("0xe"))[lc("0x7")](this[lc("0x1c")]),this[lc("0x1c")]=null}}const dc=["locale","focus","CommentView","hasDirtyComment","_config","canAccept","commentThreadInputView","editorConfig","updateComment","set","isReadOnly","length","commentInputView","authoredAt","setData","commentsListView","commentThread","removeComment","submit","assign","showInput","isActive","canDiscard","element","isDirty","destroy","_model","_localUser","value","bind","disableComments","editor","_createCommentThreadInputView","addComment","delegate","fire"];var gc,mc;gc=dc,mc=458,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("0x19")]=null,this[fc("0x10")]=null,this[fc("0x13")](fc("0x1f"),!1),this[fc("0x13")](fc("0x17"),e[fc("0x17")]),this[fc("0x3")]("authoredAt").to(e),this[fc("0x13")]("descriptionParts",[]),this.set(fc("0x22"),!1),this[fc("0x13")]("isEnabled",!1),this.set(fc("0xf"),!1),this[fc("0x13")](fc("0x20"),!1),this[fc("0x0")]=e,this[fc("0x1")]=n,this[fc("0xe")]=o,o[fc("0x4")]?this[fc("0x13")](fc("0x15"),1):this._createCommentViews()}[fc("0xb")](){this[fc("0x21")][fc("0xb")]()}[fc("0x23")](){this.commentsListView&&this.commentsListView[fc("0x23")](),this[fc("0x10")]&&this[fc("0x10")][fc("0x23")](),super[fc("0x23")]()}_createCommentViews(){const{CommentsListView:t}=this[fc("0xe")];this[fc("0x19")]=new t(this[fc("0xa")],this[fc("0x0")][fc("0x1a")],Object[fc("0x1d")]({CommentView:this._config[fc("0xc")]},this[fc("0xe")])),this[fc("0x19")][fc("0x8")](fc("0x1b")).to(this),this.commentsListView.delegate(fc("0x12")).to(this),this[fc("0x19")][fc("0x3")]("isActive").to(this),this[fc("0x13")](fc("0x15"),this.commentsListView[fc("0x15")]+1),this[fc("0x3")](fc("0x15")).to(this[fc("0x19")],fc("0x15"),(t=>t+1)),this[fc("0x10")]=this[fc("0x6")](),this.on("removeComment",(()=>this[fc("0xb")]())),this[fc("0x3")]("isDirty").to(this.commentsListView,fc("0xd"),this[fc("0x10")][fc("0x16")],fc("0x2"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[fc("0xe")],e=new t(this[fc("0xa")],this[fc("0x1")],this[fc("0xe")][fc("0x11")]),n=e[fc("0x16")];return e[fc("0x3")](fc("0x1e")).to(this,"isActive",this[fc("0x0")][fc("0x1a")],fc("0x14"),n,fc("0x2"),((t,e,n)=>!!n||t&&!e)),n.on(fc("0x1c"),((t,e)=>{this[fc("0x9")](fc("0x7"),e),n[fc("0x5")][fc("0x18")]("")})),n.on("cancel",(()=>this.focus())),n[fc("0x3")]("disabledSubmit").to(this[fc("0x0")][fc("0x1a")],fc("0x14")),e}}const pc=["</span>","canAccept","Discard suggestion","_config",'<span class="ck-suggestion-color" style="background-color: ',"_model","execute","source","split","ck-comment__external","discardButton","ck-suggestion--disabled-comments","commentThreadInputView","commentsListView","delegate","EXTERNAL_SUGGESTION","locale","querySelector","type","time","bindTemplate","authoredAt","getExternalSuggestionNote","</p>","@external","isEnabled","acceptButton","isExternal","EXTERNAL_IMPORT_WORD_SUGGESTION","acceptSuggestion","ck-suggestion-wrapper","innerText","div","isActive","EXTERNAL_IMPORT_WORD_AVATAR","element","content","editorReady","innerHTML","render","children","name","value","_descriptionElement","ck-annotation__actions",'" title="',"disableComments","bind","formatDateTime",'"></span>',"_createButton","userView","editorDestroyed","ck-annotation__content-wrapper","join","EXTERNAL_AVATAR","ck-annotation__main","ck-annotation__user","ck-suggestion--accept","commentThread","descriptionParts","extendTemplate","ck-suggestion--discard","creator","map","Accept suggestion","fire","<p>","getTemplate","setTemplate","discardSuggestion","author","color","change:description","ck-annotation","span","ck-suggestion-","createElement","check","ck-annotation__info-name","set","attributes","importWord","cancel","getUserViewNotificationText"];var bc,Ec;bc=pc,Ec=401,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("0x13")](_c("0x2a"),""),this[_c("0x47")]("type").to(this,_c("0x54"),(t=>t&&t[0]?t[0][_c("0x2a")]:"")),this[_c("0x47")]("description").to(this,"descriptionParts",this,_c("0x39"),((t,e)=>{let n="";for(const e of t)n+=_c("0x6")+Cc(e[_c("0x3c")],e[_c("0xb")])+_c("0x2f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[_c("0x43")]=null,this.acceptButton=this[_c("0x4a")](Yo(e,_c("0x4")),t.icons[_c("0x11")],_c("0x52"),_c("0x35"),"sw"),this[_c("0x32")].bind(_c("0x31")).to(this,_c("0x19")),this[_c("0x22")]=this[_c("0x4a")](Yo(e,_c("0x1a")),t.icons[_c("0x16")],_c("0x1"),_c("0x9"),"sw"),this[_c("0x22")][_c("0x47")](_c("0x31")).to(this,"canDiscard"),this.userView=new r.UserView(e,this[_c("0x1d")].author,this.getUserViewNotificationText()),this[_c("0x4b")][_c("0x0")]({attributes:{class:["ck-suggestion__user",_c("0x51")]}}),this[_c("0x8")](this[_c("0x7")]())}[_c("0x7")](){const t=this[_c("0x2c")],e=[{tag:"div",attributes:{class:["ck-suggestion__info","ck-annotation__info"]},children:[{tag:_c("0xe"),children:[{text:this[_c("0x4b")][_c("0x41")]}],attributes:{class:["ck-suggestion__info-name",_c("0x12")]}},{tag:_c("0x2b"),attributes:{datetime:t.to(_c("0x2d")),class:["ck-comment__info-time","ck-annotation__info-time"]},children:[{text:t.to("authoredAt",(t=>this[_c("0x1b")][_c("0x48")](t)))}]}]},{tag:_c("0x38"),attributes:{class:["ck-suggestion__actions",_c("0x44")]},children:[this[_c("0x32")],this[_c("0x22")]]},{tag:_c("0x38"),attributes:{class:[_c("0x4d")]}}];this[_c("0x1d")].isExternal&&e.push({tag:_c("0x38"),attributes:{class:[_c("0x21")]},children:[{text:this[_c("0x2e")]()}]});const n={tag:_c("0x38"),attributes:{class:[_c("0x36"),t.if(_c("0x39"),"ck-suggestion-wrapper--active"),t.to(_c("0x2a"),(t=>_c("0xf")+t)),this[_c("0x1b")][_c("0x46")]&&_c("0x23")],"data-suggestion-id":this[_c("0x1d")].id,"data-thread-id":this[_c("0x1d")][_c("0x53")].id,"data-author-id":this[_c("0x1d")][_c("0xa")].id,tabindex:-1},children:[{tag:"div",attributes:{class:["ck-suggestion",_c("0xd")]},children:[this[_c("0x4b")],{tag:"div",attributes:{class:["ck-suggestion__main",_c("0x50")]},children:e}]}]};return this[_c("0x25")]&&this[_c("0x24")]&&(n[_c("0x40")].push(this[_c("0x25")],this.commentThreadInputView),this[_c("0x25")][_c("0x26")](_c("0x3d")).to(this),this[_c("0x25")][_c("0x26")](_c("0x4c")).to(this),this[_c("0x24")][_c("0x26")]("editorReady").to(this),this[_c("0x24")].delegate(_c("0x4c")).to(this)),n}[_c("0x3f")](){super.render(),this[_c("0x43")]=this[_c("0x3b")][_c("0x29")](".ck-annotation__content-wrapper"),this._descriptionElement[_c("0x3e")]=this.description,this.on(_c("0xc"),((t,e,n)=>{this[_c("0x43")].innerHTML=n}))}[_c("0x4a")](t,e,n,o,r){const i=new s.ButtonView(this[_c("0x28")]);return i[_c("0x13")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[_c("0x0")]({attributes:{class:n}}),i.on(_c("0x1e"),(()=>{this[_c("0x5")](o,this[_c("0x1d")].id)})),i}[_c("0x2e")](){return _c("0x15")===this[_c("0x1d")][_c("0x14")][_c("0x30")][_c("0x1f")]?Yo(this.locale,_c("0x34")):Yo(this[_c("0x28")],_c("0x27"))}[_c("0x17")](){return this[_c("0x1d")][_c("0x33")]?"importWord"===this._model[_c("0x14")][_c("0x30")][_c("0x1f")]?Yo(this.locale,_c("0x3a"),this[_c("0x1d")][_c("0x2")][_c("0x41")]):Yo(this[_c("0x28")],_c("0x4f"),this[_c("0x1d")][_c("0x2")][_c("0x41")]):null}}function Cc(t,e){let n="";return n+=t[_c("0x20")]("*")[_c("0x3")](((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+yc(t)+_c("0x18"):yc(t)))[_c("0x4e")](""),e&&(n+=_c("0x1c")+e[_c("0x42")]+_c("0x45")+e.title+_c("0x49")),n}function yc(t){const e=document[_c("0x10")]("span");return e[_c("0x37")]=t,e[_c("0x3e")]}const kc=["length","isMultiRange","_refreshActiveMarkers","remove","registerAnnotation","trackChanges.disableComments","requires","source","acceptButton","acceptSelectedSuggestions","head","filter","reduce","_updateController","isInContent","suggestion-","componentFactory","model","getDescriptions","value","push","listenTo","getAllAdjacentSuggestions","commentThread","_handleSuggestionControllerDelayed","_annotationViews","comments.editorConfig","buttonView","getFirstRange","trackChanges.SuggestionThreadView","keys","Discard all selected suggestions","addSourceCollector","button","_handleControllerBuffer","Discard all suggestions","type","getJoined","getByInnerView","trackChanges","addComment","define","_descriptionFactory","getMarkers","_destroyController","arrowView","createAnnotationView","previous","SuggestionThreadView","TrackChangesEditing","Accept all selected suggestions","Accept all suggestions","change:previous","editing","_createUIButton","discardSelectedSuggestions","CommentsRepository","suggestionLoaded","suggestionUnloaded","values","descriptionParts","add","stopListening","from","change:activeAnnotations","bind","some","CommentsUI","innerView","map","size","_initializeController","hasSuggestion","get","discardAllSuggestions","commands","isOn","createAnnotation","refreshSelectedViews","switchbutton","_disableComments","view","Annotations","destroy","comments.maxCommentCharsWhenCollapsed","EditorAnnotations","mainView","set","comments.maxThreadTotalWeight","config","has","separator","init","_viewToController","discardButton","focus","_suggestionToController","_unbindEditors","isEnabled","execute","unbind","lowest","clear","commandName","locale","CommentView","getMarkerNames","editor","delete","_bindAnnotationToEditors","plugins"];var Ac,vc;Ac=kc,vc=350,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("0x64")](){return[$a,r.Users,Rc("0x27"),Rc("0x41"),Rc("0x44")]}static get pluginName(){return"TrackChangesUI"}constructor(t){super(t),this[Rc("0x4f")]=new Map,this[Rc("0x4c")]=new Map,this._annotationViews=new Map,this[Rc("0x11")]=new Map;const e=this[Rc("0x5a")][Rc("0x48")];e[Rc("0x18")](Rc("0xc"),Tc),e[Rc("0x18")](Rc("0x63"),!1),this[Rc("0x3f")]=e[Rc("0x38")](Rc("0x63"))}[Rc("0x7")](t,e){0===this[Rc("0x11")][Rc("0x35")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Rc("0x4f")].has(t);n||e?n&&e&&this[Rc("0x1b")](t):this._initializeController(t)}this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")](Rc("0x44"))[Rc("0x3d")](),this[Rc("0x60")](),this[Rc("0x11")][Rc("0x55")]()}),10),this[Rc("0x11")][Rc("0x46")](t,e)}[Rc("0x4b")](){const t=this[Rc("0x5a")],e=t.plugins[Rc("0x38")]("TrackChangesEditing"),n=t[Rc("0x5d")][Rc("0x38")]("Annotations"),o=t.plugins[Rc("0x38")](Rc("0x44")),s=t[Rc("0x5d")].get(Rc("0x27"));t.ui[Rc("0x6e")][Rc("0x2c")]("trackChanges",(t=>this[Rc("0x25")](t))),o[Rc("0xf")]((()=>{const t=[];for(const[e,n]of Array[Rc("0x2e")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),s=[];for(const t of o){if(!t[Rc("0x6c")])continue;if(t[Rc("0x5f")]){s[Rc("0x3")](...t.getRanges());continue}const e=t[Rc("0xb")]();if(s[Rc("0x5e")]>0){const t=s[0][Rc("0x14")](e);if(t){s[0]=t;continue}}s[Rc("0x3")](e)}t[Rc("0x3")]([n[Rc("0x40")],s])}return t})),this[Rc("0x4")](e,Rc("0x28"),((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Rc("0x6b")](s.head),this[Rc("0x7")](e,!1)):(this._updateController(o[Rc("0x68")]),this[Rc("0x7")](e,!0)))})),null===e[Rc("0x1e")]?this[Rc("0x7")](e,!1):this[Rc("0x6b")](e[Rc("0x68")])})),this.listenTo(e,Rc("0x29"),((t,e,n)=>{this[Rc("0x2d")](e,Rc("0x23")),this._handleControllerBuffer[Rc("0x5b")](e);const o=n?n.head:e,s=this[Rc("0x4f")][Rc("0x38")](o);null!==n&&this[Rc("0x6b")](o),null===n&&s&&this[Rc("0x1b")](e)})),this[Rc("0x4")](e,"suggestionChanged",((t,e)=>{this[Rc("0x6b")](e)})),this.listenTo(n,Rc("0x2f"),(()=>{this[Rc("0x60")]()})),this.listenTo(s,Rc("0x17"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Rc("0x37")](n))return;const s=e.getSuggestion(n);this[Rc("0x4f")][Rc("0x38")](s)[Rc("0x40")][Rc("0x4e")]()}),{priority:Rc("0x54")})}[Rc("0x60")](){const t=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")]("Annotations"),e=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")]("TrackChangesEditing"),n=Array.from(t.activeAnnotations,(t=>t[Rc("0x33")])).filter((t=>this[Rc("0x4c")][Rc("0x49")](t))),o=[];for(const t of n){const e=this[Rc("0x4c")][Rc("0x38")](t)[Rc("0x0")][Rc("0x5")]();o.push(...e[Rc("0x6a")](((t,e)=>[...t,...e[Rc("0x59")]()]),[]))}e.activeMarkers=o}[Rc("0x25")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this.editor[Rc("0x3a")].get(Rc("0x16")),r=Yo(t,"Track changes");n[Rc("0xa")][Rc("0x46")]({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("0xa")].bind(Rc("0x3b")).to(o,Rc("0x2")),n[Rc("0xa")].on(Rc("0x52"),(()=>{o[Rc("0x52")](),this[Rc("0x5a")].editing.view[Rc("0x4e")]()}));const i=new e.Collection,x=[{type:Rc("0x3e"),model:{withText:!0,label:r,commandName:Rc("0x16")}},{type:Rc("0x4a")},{type:"button",model:{withText:!0,label:Yo(t,Rc("0x22")),commandName:"acceptAllSuggestions"}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0x21")),commandName:Rc("0x67")}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0x12")),commandName:Rc("0x39")}},{type:Rc("0x10"),model:{withText:!0,label:Yo(t,Rc("0xe")),commandName:Rc("0x26")}}];for(const t of x){let e={type:Rc("0x4a")};if(t[Rc("0x0")]){const n=new s.Model(t[Rc("0x0")]),o=this.editor[Rc("0x3a")][Rc("0x38")](n[Rc("0x56")]);n[Rc("0x30")](Rc("0x3b"),"isEnabled").to(o,Rc("0x2"),Rc("0x51")),e={type:t.type,model:n}}i.add(e)}(0,s.addListToDropdown)(n,i);const a=x[Rc("0x69")]((t=>null!=t.model))[Rc("0x34")]((t=>this[Rc("0x5a")][Rc("0x3a")][Rc("0x38")](t.model.commandName))),c=n.buttonView;return c.actionView[Rc("0x53")]("isEnabled"),c[Rc("0x1c")][Rc("0x53")](Rc("0x51")),c.actionView[Rc("0x30")]("isEnabled").to(o,Rc("0x51")),c[Rc("0x1c")][Rc("0x30")]("isEnabled").toMany(a,Rc("0x51"),((...t)=>t[Rc("0x31")]((t=>t)))),n.on(Rc("0x52"),(t=>{this[Rc("0x5a")][Rc("0x52")](t[Rc("0x65")][Rc("0x56")]),this[Rc("0x5a")][Rc("0x24")][Rc("0x40")].focus()})),n}[Rc("0x36")](t){const e=this[Rc("0x5a")],n=e[Rc("0x48")],o=e[Rc("0x5d")][Rc("0x38")]("Annotations"),s=e[Rc("0x5d")][Rc("0x38")]("CommentsRepository"),i=e[Rc("0x5d")].get("EditorAnnotations"),x=e[Rc("0x5d")].get(r.Users).me,a=n[Rc("0x38")](Rc("0x16"))[Rc("0x1f")],{CommentsListView:c,CommentThreadInputView:l}=e[Rc("0x5d")][Rc("0x38")](Rc("0x32"));let u,d;this[Rc("0x8")][Rc("0x49")](t.id)?(d=this._annotationViews.get(t.id),u=d[Rc("0x45")]):(u=new a(e[Rc("0x57")],t,x,{disableComments:this._disableComments,editorConfig:n[Rc("0x38")](Rc("0x9")),maxCommentsWhenCollapsed:n[Rc("0x38")]("comments.maxCommentsWhenCollapsed"),maxThreadTotalWeight:n[Rc("0x38")](Rc("0x47")),maxCommentCharsWhenCollapsed:n[Rc("0x38")](Rc("0x43")),formatDateTime:(0,r.getDateTimeFormatter)(n[Rc("0x38")](Rc("0x57"))),CommentView:n.get("comments")[Rc("0x58")],CommentsListView:c,CommentThreadInputView:l}),u[Rc("0x66")].on(Rc("0x52"),(()=>{e[Rc("0x24")][Rc("0x40")].focus()})),u[Rc("0x4d")].on("execute",(()=>{e[Rc("0x24")][Rc("0x40")][Rc("0x4e")]()})),d=o[Rc("0x1d")](this[Rc("0x5a")][Rc("0x57")],u),d[Rc("0x30")]("isDirty").to(u,"isDirty"),d.bind(Rc("0x5e")).to(u),d.bind(Rc("0x13")).to(u,Rc("0x13"),(t=>"suggestion-"+t)),this[Rc("0x8")][Rc("0x46")](t.id,d));const g=s.createCommentThreadController(t[Rc("0x6")],u),m=new uc(e,t,u,g),f=t[Rc("0x5")]().filter((t=>t.isInContent));u.descriptionParts=e.plugins[Rc("0x38")](Rc("0x20"))[Rc("0x19")][Rc("0x1")](f),this[Rc("0x4f")][Rc("0x46")](t,m),this[Rc("0x4c")].set(u,m);const h=o[Rc("0x3c")]({view:d,target:()=>{const n=[],o=t[Rc("0x5")]()[Rc("0x69")]((t=>t[Rc("0x6c")]));for(const t of o)n[Rc("0x3")](...t[Rc("0x1a")]());return(0,r.getAllMarkersDomElementsSorted)(e[Rc("0x24")],n)},type:()=>Rc("0x6d")+m.view[Rc("0x13")]});s[Rc("0x5c")](u,h),o[Rc("0x2c")](h),i[Rc("0x62")](h)}[Rc("0x1b")](t){const e=this.editor[Rc("0x5d")][Rc("0x38")]("CommentsRepository"),n=this[Rc("0x5a")][Rc("0x5d")][Rc("0x38")](Rc("0x41")),o=this[Rc("0x4f")][Rc("0x38")](t),s=o[Rc("0x40")],r=n[Rc("0x15")](s);e[Rc("0x50")](s),r&&n[Rc("0x61")](r),this._suggestionToController[Rc("0x5b")](t),this._viewToController[Rc("0x5b")](s),o.destroy()}[Rc("0x6b")](t){if(!t[Rc("0x6c")]||!this[Rc("0x4f")][Rc("0x49")](t))return;const e=this[Rc("0x5a")].plugins[Rc("0x38")](Rc("0x20")),n=this[Rc("0x4f")][Rc("0x38")](t),o=t[Rc("0x5")]();n.view[Rc("0x2b")]=e[Rc("0x19")][Rc("0x1")](o)}[Rc("0x42")](){for(const t of this[Rc("0x4f")][Rc("0xd")]())this._destroyController(t);for(const t of this[Rc("0x8")][Rc("0x2a")]())t.mainView[Rc("0x42")]();super[Rc("0x42")]()}}var Sc,Lc,Nc=["adapter","plugins","getSuggestions","getSuggestion","addSuggestionData","editor","get","pluginName"];Sc=Nc,Lc=189,function(t){for(;--t;)Sc.push(Sc.shift())}(++Lc);var wc=function(t,e){return Nc[t-=0]};class Mc extends t.Plugin{static get requires(){return[$a,Ic,"Comments"]}static get[wc("0x2")](){return"TrackChanges"}set[wc("0x3")](t){this[wc("0x0")][wc("0x4")].get($a)[wc("0x3")]=t}get[wc("0x3")](){return this[wc("0x0")][wc("0x4")].get($a)[wc("0x3")]}addSuggestion(t){return this[wc("0x0")][wc("0x4")][wc("0x1")]($a)[wc("0x7")](t)}[wc("0x5")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this.editor[wc("0x4")][wc("0x1")]($a).getSuggestions({skipNotAttached:t,toJSON:e})}[wc("0x6")](t){return this.editor.plugins[wc("0x1")]($a)[wc("0x6")](t)}}const Oc=["editorCreator","discardAllSuggestions","createElement","get","rootsAttributes","push","getFullData","_adapter","pluginName","function","requires","destroy","getDataWithDiscardedSuggestions","editor","track-changes-data-invalid-editor-creator","CommentsRepository","trackChangesData","model","create","result","TrackChangesDataGetter","config","plugins","constructor","define","name","data","document","createDocumentFragment","TrackChangesData","acceptAllSuggestions","addSuggestionData","getRootsAttributes","appendChild","TrackChangesEditing","getSuggestions","reduce","getRootNames","init","Pagination","Users"];var Fc,Pc;Fc=Oc,Pc=113,function(t){for(;--t;)Fc.push(Fc.shift())}(++Pc);const Dc=function(t,e){return Oc[t-=0]},Bc=[Dc("0x8")];class jc extends t.Plugin{static get[Dc("0x14")](){return[$a]}static get[Dc("0x12")](){return Dc("0x27")}[Dc("0x7")](){const t=this[Dc("0x17")];if(t[Dc("0x1f")][Dc("0x22")]("trackChangesData.editorCreator",(e=>{const n=t[Dc("0x1b")][Dc("0x25")][Dc("0x6")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Dc("0x21")][Dc("0x1c")](n,e)})),Dc("0x13")!=typeof t.config.get(Dc("0x1a"))[Dc("0xa")])throw new e.CKEditorError(Dc("0x18"))}getDataWithAcceptedSuggestions(t){return Hc(this[Dc("0x17")],!0,t)}[Dc("0x16")](t){return Hc(this.editor,!1,t)}}class Uc extends t.Plugin{static get pluginName(){return Dc("0x1e")}constructor(t){super(t),this[Dc("0x1d")]="end"}[Dc("0x7")](){this[Dc("0x17")].plugins[Dc("0xd")](Dc("0x19"))[Dc("0x11")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Dc("0x17")][Dc("0x20")].get("TrackChangesEditing")[Dc("0x11")]=null}}function Gc(t){return void 0!==t[Dc("0x1")]}async function Hc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Bc);o[Dc("0x20")][Dc("0xf")]($a,Uc),o[Dc("0xe")]=Gc(t)?t[Dc("0x1")]():void 0;const s=document[Dc("0x26")](),i=t[Dc("0x1f")][Dc("0xd")](Dc("0x1a"))[Dc("0xa")],x=await i(o,(()=>function(t){const e=document[Dc("0xc")]("div");return t[Dc("0x2")](e),e}(s)));!function(t,e){const n=t.model.document[Dc("0x6")]()[Dc("0x5")](((e,n)=>(e[n]=t[Dc("0x24")][Dc("0xd")]({rootName:n}),e)),{}),o=t[Dc("0x20")][Dc("0xd")](Dc("0x9")).users.map((t=>({id:t.id,name:t[Dc("0x23")]}))),s=t[Dc("0x20")][Dc("0xd")](Dc("0x3"))[Dc("0x4")]({skipNotAttached:!0,toJSON:!0}),r=e.plugins.get(Dc("0x9")),i=e[Dc("0x20")].get(Dc("0x3"));for(const t of o)r.getUser(t.id)||r.addUser(t);r.me||r.useAnonymousUser();for(const t of s)i[Dc("0x0")](t);e[Dc("0x24")].set(n)}(t,x),x.execute(Dc(e?"0x28":"0xb"));const a=Gc(x)?x[Dc("0x10")](n):x.data[Dc("0xd")](n);return await x[Dc("0x15")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();