@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20230720.0 → 0.0.0-nightly-20230721.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/track-changes.js +1 -1
- package/package.json +3 -3
- package/src/commands/acceptsuggestioncommand.js +1 -1
- package/src/commands/discardsuggestioncommand.js +1 -1
- package/src/commands/executeonallsuggestionscommand.js +1 -1
- package/src/commands/executeonselectedsuggestionscommand.js +1 -1
- package/src/commands/trackchangescommand.js +1 -1
- package/src/integrations/alignment.js +1 -1
- package/src/integrations/basicstyles.js +1 -1
- package/src/integrations/blockquote.js +1 -1
- package/src/integrations/ckbox.js +1 -1
- package/src/integrations/codeblock.js +1 -1
- package/src/integrations/comments.js +1 -1
- package/src/integrations/deletecommand.js +1 -1
- package/src/integrations/documentlist.js +1 -1
- package/src/integrations/documentlistproperties.js +1 -1
- package/src/integrations/entercommand.js +1 -1
- package/src/integrations/findandreplace.js +1 -1
- package/src/integrations/font.js +1 -1
- package/src/integrations/formatpainter.js +1 -1
- package/src/integrations/heading.js +1 -1
- package/src/integrations/highlight.js +1 -1
- package/src/integrations/horizontalline.js +1 -1
- package/src/integrations/htmlembed.js +1 -1
- package/src/integrations/image.js +1 -1
- package/src/integrations/imagereplace.js +1 -1
- package/src/integrations/importword.js +1 -1
- package/src/integrations/indent.js +1 -1
- package/src/integrations/inputcommand.js +1 -1
- package/src/integrations/link.js +1 -1
- package/src/integrations/list.js +1 -1
- package/src/integrations/listproperties.js +1 -1
- package/src/integrations/mediaembed.js +1 -1
- package/src/integrations/mention.js +1 -1
- package/src/integrations/pagebreak.js +1 -1
- package/src/integrations/paragraph.js +1 -1
- package/src/integrations/removeformat.js +1 -1
- package/src/integrations/restrictededitingmode.js +1 -1
- package/src/integrations/shiftentercommand.js +1 -1
- package/src/integrations/standardeditingmode.js +1 -1
- package/src/integrations/style.js +1 -1
- package/src/integrations/table.js +1 -1
- package/src/integrations/tablecaption.js +1 -1
- package/src/integrations/tableclipboard.js +1 -1
- package/src/integrations/tablecolumnresize.js +1 -1
- package/src/integrations/tableheadings.js +1 -1
- package/src/integrations/tablemergesplit.js +1 -1
- package/src/integrations/tableofcontents.js +1 -1
- package/src/integrations/tableproperties.js +1 -1
- package/src/integrations/template.js +1 -1
- package/src/integrations/title.js +1 -1
- package/src/integrations/undo.js +1 -1
- package/src/integrations/utils.js +1 -1
- package/src/suggestion.js +1 -1
- package/src/suggestiondescriptionfactory.js +1 -1
- package/src/trackchanges.js +1 -1
- package/src/trackchangesdata.js +1 -1
- package/src/trackchangesediting.js +1 -1
- package/src/trackchangesui.js +1 -1
- package/src/ui/suggestioncontroller.js +1 -1
- package/src/ui/view/basesuggestionthreadview.js +1 -1
- package/src/ui/view/suggestionthreadview.js +1 -1
- package/src/utils/common-translations.js +1 -1
- package/src/utils/utils.js +1 -1
package/build/track-changes.js
CHANGED
|
@@ -2,4 +2,4 @@
|
|
|
2
2
|
/*!
|
|
3
3
|
* @license Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.
|
|
4
4
|
* For licensing, see LICENSE.md.
|
|
5
|
-
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var s=e[o];if(void 0!==s)return s.exports;var r=e[o]={exports:{}};return t[o](r,r.exports,n),r.exports}n.d=(t,e)=>{for(var o in e)n.o(e,o)&&!n.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),n.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})};var o={};(()=>{"use strict";n.r(o),n.d(o,{BaseSuggestionThreadView:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Va});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["has","editor","value","isEnabled","commands","_isEnabledBasedOnSelection","execute","TrackChangesCommand","_enableCommands","_enabledCommands","refresh","forceDisabled","_disableUnsupportedCommands","affectsData","clearForceDisabled"];var c,l;c=a,l=160,function(t){for(;--t;)c.push(c.shift())}(++l);const d=function(t,e){return a[t-=0]};class u extends t.Command{constructor(t,e){super(t),this[d("0xe")]=e,this[d("0x7")]=!1,this[d("0x0")](),this[d("0xa")]=!1}[d("0x0")](){this[d("0x8")]=!0}[d("0xb")](){this[d("0x7")]=!this[d("0x7")],this[d("0x7")]?this[d("0x2")]():this[d("0xd")]()}[d("0x2")](){for(const t of this[d("0x6")][d("0x9")].commands())t.affectsData&&!this[d("0xe")][d("0x5")](t)&&t[d("0x1")](d("0xc"))}[d("0xd")](){for(const t of this.editor[d("0x9")][d("0x9")]())t[d("0x3")]&&!this._enabledCommands[d("0x5")](t)&&t[d("0x4")]("TrackChangesCommand")}}const g=["model","track-changes-accept-suggestion-not-found","get","_isEnabledBasedOnSelection","canEditAt","getRanges","editor","execute","_suggestions","refresh","TrackChangesEditing","isEnabled"];var m,f;m=g,f=469,function(t){for(;--t;)m.push(m.shift())}(++f);const h=function(t,e){return g[t-=0]};class b extends t.Command{constructor(t,e){super(t),this[h("0x7")]=e,this[h("0x8")](),this[h("0x2")]=!1}[h("0x8")](){this[h("0xa")]=!0}[h("0x6")](t){const n=this[h("0x7")][h("0x1")](t);if(!n)throw new e.CKEditorError(h("0x0"),this);const o=n[h("0x4")]();this[h("0x5")][h("0xb")][h("0x3")](o)&&this[h("0x5")].plugins[h("0x1")](h("0x9")).acceptSuggestion(n)}}const p=["execute","isEnabled","TrackChangesEditing","refresh","get","model","discardSuggestion","editor","_suggestions","_isEnabledBasedOnSelection","canEditAt","track-changes-discard-suggestion-not-found"];var E,_;E=p,_=287,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return p[t-=0]};class C extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[T("0x4")](),this[T("0xa")]=!1}[T("0x4")](){this[T("0x2")]=!0}[T("0x1")](t){const n=this[T("0x9")][T("0x5")](t);if(!n)throw new e.CKEditorError(T("0x0"),this);const o=n.getRanges();this[T("0x8")][T("0x6")][T("0xb")](o)&&this.editor.plugins[T("0x5")](T("0x3"))[T("0x7")](n)}}const y=["change","push","content"," [color ","start","color","from","schema","isInContent","getRanges","isCollapsed","length","end","isObject","sort","isTouching","createPositionBefore","value","type","execute","deletion","createPositionAfter","isMultiRange","next","map","splice","createPositionAt"];var k,A;k=y,A=240,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return y[t-=0]};function R(t){return t[v("0x11")](((t,e)=>v("0x17")==t[v("0x15")]&&v("0x17")!=e.type?-1:v("0x17")!=t.type&&v("0x17")==e[v("0x15")]?1:0))}function S(t,e){let n,o=0;const s=[],r=e[v("0xa")];for(;o<t[v("0xe")];){const i=t[o],x=t[o+1];n||(n=e[v("0x13")](i)),I(e,i,x)||(s[v("0x4")](e.createRange(n,r[v("0x10")](i)?e[v("0x18")](i):e[v("0x2")](i,v("0xf")))),n=null),o++}return s}function I(t,e,n){if(!n)return!1;const o=t.createPositionAfter(e),s=t[v("0x13")](n);return o[v("0x12")](s)}function L(t,e,n){for(;n.length;){const o=n[v("0x1")](0,100);t[v("0x3")]((()=>{for(const t of o)t[v("0xb")]&&e[v("0x16")](t.id)}))}}const N=["_suggestions","_isEnabledBasedOnSelection","isEnabled","from","some","values","execute","getRanges","refresh","model","_command","editor"];var M,w;M=N,w=467,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x1")]=n,this[O("0x9")](),this[O("0x2")]=!1}[O("0x9")](){const t=Array[O("0x4")](this[O("0x1")].values())[O("0x5")]((t=>t.isInContent));this[O("0x3")]=this._command[O("0x3")]&&t}[O("0x7")](){const t=R(Array[O("0x4")](this[O("0x1")][O("0x6")]()));for(const e of t){const t=e[O("0x8")]();if(!this.editor[O("0xa")].canEditAt(t))return}L(this[O("0x0")][O("0xa")],this[O("0xb")],t)}}const P=["document","isEnabled","_selectedSuggestions","execute","refresh","_command","from","canEditAt","editor","selection","_suggestions"];var D,B;D=P,B=356,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("0x1")]=e,this._suggestions=n,this[j("0x9")]=new Set,this[j("0x0")](),this._isEnabledBasedOnSelection=!1}[j("0x0")](){const t=this.editor.model[j("0x7")][j("0x5")],e=Array.from(this[j("0x6")].values());this._selectedSuggestions=function(t,e){const n=Array[v("0x9")](t[v("0xc")]()),o=new Set;for(const s of e)if(s[v("0xb")])for(const e of n)for(const n of s.getMarkers()){const r=n.getRange();(e.isIntersecting(r)||t[v("0xd")]&&!s[v("0x19")]&&s[v("0x1a")]&&r[v("0xf")][v("0x12")](e[v("0x7")]))&&o.add(s)}return o}(t,e),this[j("0x8")]=this[j("0x1")][j("0x8")]&&!!this[j("0x9")].size}[j("0xa")](){const t=R(Array[j("0x2")](this[j("0x9")]));for(const e of t){const t=e.getRanges();if(!this.editor.model[j("0x3")](t))return}L(this[j("0x4")].model,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 V=Array.prototype.splice;const W=function(t){var e=this.__data__,n=z(e,t);return!(n<0)&&(n==e.length-1?e.pop():V.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=z(e,t);return n<0?void 0:e[n][1]};const q=function(t){return z(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=z(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function X(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}X.prototype.clear=G,X.prototype.delete=W,X.prototype.get=K,X.prototype.has=q,X.prototype.set=$;const J=X;const Q=function(){this.__data__=new J,this.size=0};const Z=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Y=function(t){return this.__data__.get(t)};const tt=function(t){return this.__data__.has(t)};const et="object"==typeof global&&global&&global.Object===Object&&global;var nt="object"==typeof self&&self&&self.Object===Object&&self;const ot=et||nt||Function("return this")();const st=ot.Symbol;var rt=Object.prototype,it=rt.hasOwnProperty,xt=rt.toString,at=st?st.toStringTag:void 0;const ct=function(t){var e=it.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var s=xt.call(t);return o&&(e?t[at]=n:delete t[at]),s};var lt=Object.prototype.toString;const dt=function(t){return lt.call(t)};var ut=st?st.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":ut&&ut in Object(t)?ct(t):dt(t)};const mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const ft=function(t){if(!mt(t))return!1;var e=gt(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e};const ht=ot["__core-js_shared__"];var bt,pt=(bt=/[^.]+$/.exec(ht&&ht.keys&&ht.keys.IE_PROTO||""))?"Symbol(src)_1."+bt:"";const Et=function(t){return!!pt&&pt in t};var _t=Function.prototype.toString;const Tt=function(t){if(null!=t){try{return _t.call(t)}catch(t){}try{return t+""}catch(t){}}return""};var Ct=/^\[object .+?Constructor\]$/,yt=Function.prototype,kt=Object.prototype,At=yt.toString,vt=kt.hasOwnProperty,Rt=RegExp("^"+At.call(vt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!mt(t)||Et(t))&&(ft(t)?Rt:Ct).test(Tt(t))};const It=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=It(t,e);return St(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Vt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=Vt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Vt(this,t).get(t)};const qt=function(t){return Vt(this,t).has(t)};const $t=function(t,e){var n=Vt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Xt(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Xt.prototype.clear=Ht,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Jt=Xt;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,be=he&&he.exports===fe?ot.Buffer:void 0;const pe=(be?be.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var Ce={};Ce["[object Float32Array]"]=Ce["[object Float64Array]"]=Ce["[object Int8Array]"]=Ce["[object Int16Array]"]=Ce["[object Int32Array]"]=Ce["[object Uint8Array]"]=Ce["[object Uint8ClampedArray]"]=Ce["[object Uint16Array]"]=Ce["[object Uint32Array]"]=!0,Ce["[object Arguments]"]=Ce["[object Array]"]=Ce["[object ArrayBuffer]"]=Ce["[object Boolean]"]=Ce["[object DataView]"]=Ce["[object Date]"]=Ce["[object Error]"]=Ce["[object Function]"]=Ce["[object Map]"]=Ce["[object Number]"]=Ce["[object Object]"]=Ce["[object RegExp]"]=Ce["[object Set]"]=Ce["[object String]"]=Ce["[object WeakMap]"]=!1;const ye=function(t){return xe(t)&&Te(t.length)&&!!Ce[gt(t)]};const ke=function(t){return function(e){return t(e)}};var Ae="object"==typeof exports&&exports&&!exports.nodeType&&exports,ve=Ae&&"object"==typeof module&&module&&!module.nodeType&&module,Re=ve&&ve.exports===Ae&&et.process;const Se=function(){try{var t=ve&&ve.require&&ve.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var Ie=Se&&Se.isTypedArray;const Le=Ie?ke(Ie):ye;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&pe(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const Ve=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 We=function(t){return je(t)?Me(t,!0):Ve(t)};const Ke=function(t,e){return t&&re(e,We(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,$e=qe&&"object"==typeof module&&module&&!module.nodeType&&module,Xe=$e&&$e.exports===qe?ot.Buffer:void 0,Je=Xe?Xe.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,We,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var bn="[object Map]",pn="[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)!=bn||mn&&Rn(mn.resolve())!=pn||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 bn;case kn:return pn;case An:return En;case vn:return _n}return e});const Sn=Rn;var In=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&In.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Vn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?ke(Wn):Vn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var $n=Se&&Se.isSet;const Xn=$n?ke($n):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=Sn(e),g=u==Qn||"[object GeneratorFunction]"==u;if(pe(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),Xn(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?We: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 bo=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const po=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=bo(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=po(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const Co=function(t){return this.__data__.has(t)};function yo(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}yo.prototype.add=yo.prototype.push=To,yo.prototype.has=Co;const ko=yo;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=So;case"[object Set]":var a=1&o;if(x||(x=Io),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var b=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===b?f===h||s(f,h,n,o,r):b)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var p=t.constructor,E=e.constructor;p==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof p&&p instanceof p&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:Sn(t),c=x?Po:Sn(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&pe(t)){if(!pe(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=bo(e,t)).length;null!=t&&n<o;)t=t[po(e[n++])];return n&&n==o?t:void 0};const Vo=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 Wo=function(t,e){return e.length<2?t:zo(t,Vo(e,0,-1))};const Ko=function(t,e){return e=bo(e,t),null==(t=Wo(t,e))||delete t[po(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["onDiscard","getMarkerNames","toJSON","data","_markerNames","commentThread","markers","attributes","_model","delete","getRanges","setAttribute","removeMarkers","removeMarker","reduce","hasComments","accept","onAccept","get","authoredAt","isInContent","subType","getRange","@external","_onAttributesChange","getItems","addMarkerName","isExternal","split","add","substr","map","getContainedElement","onAttributesChange","getFirstMarker","previous","isIntersecting","createdAt","getMarkers","creator","next","head","filter","start","_onDiscard","length","author","addRange","size","decorate","getMultiRangeId","end","change","suggestion:","addMarker","type","discard","_saved","removeAttribute","getAllAdjacentSuggestions","set","from","nodeBefore"];var Xo,Jo;Xo=$o,Jo=190,function(t){for(;--t;)Xo.push(Xo.shift())}(++Jo);const Qo=function(t,e){return $o[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x36")]=e.type,this[Qo("0x14")]=e[Qo("0x14")]||null,this[Qo("0x2d")]=e[Qo("0x2d")],this[Qo("0x26")]=e[Qo("0x26")]||e[Qo("0x2d")],this[Qo("0x1a")]=Boolean(e[Qo("0x6")]&&e[Qo("0x6")][Qo("0x16")]),this[Qo("0x2")]=null,this[Qo("0x7")]=t,this._onAccept=e[Qo("0x10")],this[Qo("0x2b")]=e[Qo("0x3e")],this._onAttributesChange=e[Qo("0x20")],this._markerNames=new Set,this.createdAt=null,this[Qo("0x3b")](Qo("0x12"),null),this[Qo("0x3b")](Qo("0x6"),e[Qo("0x6")]||{}),this[Qo("0x3b")](Qo("0x22"),null),this.set("next",null),this[Qo("0x3b")](Qo("0x4"),null),this[Qo("0x3b")](Qo("0x38"),!1),this[Qo("0x30")]("accept"),this[Qo("0x30")]("discard")}get[Qo("0x28")](){let t=this;for(;t.previous;)t=t[Qo("0x22")];return t}get[Qo("0xe")](){return!!this[Qo("0x4")]&&this[Qo("0x4")][Qo("0x2c")]>0}get isMultiRange(){return 0!=this._markerNames[Qo("0x2f")]&&6==Array[Qo("0x3c")](this[Qo("0x3")])[0][Qo("0x1b")](":")[Qo("0x2c")]}get[Qo("0x13")](){return null!==this[Qo("0x21")]()}addMarkerName(t){this[Qo("0x3")][Qo("0x1c")](t)}getMarkerNames(){return Array[Qo("0x3c")](this._markerNames)}getMarkers(){return this[Qo("0x0")]().map((t=>this._model[Qo("0x5")][Qo("0x11")](t)))[Qo("0x29")]((t=>t))}[Qo("0x21")](){return this[Qo("0x25")]()[0]||null}[Qo("0xb")](){this[Qo("0x7")][Qo("0x33")]((t=>{for(const e of this[Qo("0x25")]())t.removeMarker(e)})),this._markerNames.clear()}[Qo("0xc")](t){this[Qo("0x7")][Qo("0x33")]((e=>{e.removeMarker(t)})),this._markerNames[Qo("0x8")](t)}[Qo("0x2e")](t){const e=Qo("0x34")+this[Qo("0x36")]+":"+this[Qo("0x14")]+":"+this.id+":"+this[Qo("0x26")].id+":"+Zo.getMultiRangeId();this[Qo("0x19")](e),this._model[Qo("0x33")]((n=>{n[Qo("0x35")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this[Qo("0x9")]())if(e[Qo("0x23")](t))return!0;return!1}[Qo("0x9")](){return this[Qo("0x25")]()[Qo("0x1e")]((t=>t[Qo("0x15")]()))}[Qo("0x18")](){return this[Qo("0x9")]()[Qo("0xd")](((t,e)=>[...t,...e[Qo("0x18")]()]),[])}getFirstRange(){var t;return(null===(t=this[Qo("0x21")]())||void 0===t?void 0:t[Qo("0x15")]())||null}[Qo("0x1f")](){const t=this[Qo("0x9")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x2a")].nodeAfter,o=e[Qo("0x32")][Qo("0x3d")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0xf")](){this._onAccept(this[Qo("0x9")](),this[Qo("0x2")],this.attributes),this[Qo("0xb")]()}[Qo("0x37")](){this[Qo("0x2b")](this[Qo("0x9")](),this[Qo("0x2")],this[Qo("0x6")]),this[Qo("0xb")]()}[Qo("0x3a")](){const t=[];let e=this.head;for(;e;)t.push(e),e=e[Qo("0x27")];return t}[Qo("0xa")](t,e){const n=eo(this[Qo("0x6")]);_o(n,t,e),Go(n,this[Qo("0x6")])||(this[Qo("0x6")]=n,this._onAttributesChange(n))}[Qo("0x39")](t){const e=eo(this[Qo("0x6")]);qo(e,t),Go(e,this[Qo("0x6")])||(this[Qo("0x6")]=e,this[Qo("0x17")](this.attributes))}[Qo("0x1")](){return{id:this.id,type:this.subType?this[Qo("0x36")]+":"+this[Qo("0x14")]:this[Qo("0x36")],authorId:this[Qo("0x26")].id,createdAt:this[Qo("0x24")],hasComments:this[Qo("0xe")],data:this.data,attributes:this[Qo("0x6")]}}static[Qo("0x31")](){return(0,e.uid)()[Qo("0x1d")](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=["insertion","_resolveDescriptionItems","REPLACE_TEXT","elementEnd","isEqual","add","*Remove:* %0","_addDescriptionItems","Object","data","quantity","replace","normal","getFirstRange","pop","_itemLabelsCallbacks","indexOf","type","EmptyContainer","label","start","nextSibling","removeObject","item","ELEMENT_SPACE","end","getItemLabel","_itemLabels","*Insert:* %0","_schema","text","set","element","length","addEmptyContainer","push","checkChild","*Split:* %0","addContainer","match","name","remove","removeContainer","*Merge:* %0","matchingCallback","Container","isObject","registerDescriptionCallback","removeEmptyContainer","registerElementLabel","isEmpty","_customCallbacks","deletion","getWalker","previousSibling","$text"];var es,ns;es=ts,ns=187,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0x20")]=[],this[os("0x8")]=new Map,this._itemLabelsCallbacks=[],this._schema=t,this._locale=e}getDescriptions(t){const e=[];for(let n=0;n<t[os("0xe")];n++){const o=t[n];if(!o.isInContent)continue;let s=!1;for(const t of this._customCallbacks){const n=t(o);if(n){os("0x36")in n&&e[os("0x10")](n),s=!0;break}}if(!s){this._addDescriptionItems(e,o);const s=t[n+1];if(s&&!o[os("0x32")]()[os("0x6")][os("0x29")](s.getFirstRange()[os("0x1")])){const t=e[e[os("0xe")]-1],n=os("0x25")==o[os("0x36")]?os("0x2a"):"remove";t&&"text"==t[os("0x36")]&&(t[n]+="\n")}}}return this[os("0x26")](e)}[os("0x1c")](t){this._customCallbacks[os("0x10")](t)}[os("0x1e")](t,n,o=e.priorities[os("0x31")]){"function"==typeof t?(0,e.insertToPriorityArray)(this[os("0x34")],{matchingCallback:t,label:n,priority:o}):this[os("0x8")][os("0xc")](t,n)}[os("0x7")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e[os("0x19")](t)){n=e[os("0x0")];break}return n||(n=this[os("0x8")].get(t[os("0x15")])),n?n(e):1!==e?e+" "+t.name+"s":""+t[os("0x15")]}[os("0x2c")](t,e){const n=e.getFirstRange()[os("0x22")](),o="insertion"==e[os("0x36")]?"add":os("0x16");for(const e of n){const s=e.item,r=t[t[os("0xe")]-1];if(s.is("$textProxy"))r&&r.type[os("0x35")](os("0x1a"))>-1&&t.pop(),r&&os("0xb")==r[os("0x36")]?r[o]+=s[os("0x2e")]:t[os("0x10")]({type:os("0xb"),add:os("0x2a")==o?s[os("0x2e")]:"",remove:os("0x16")==o?s.data:""});else if(this._schema[os("0x1b")](s)){const i=s;if(r&&r.type[os("0x35")](os("0x1a"))>-1&&t[os("0x33")](),os("0x28")==e[os("0x36")])continue;r&&r[os("0x36")]==o+"Object"&&r.element.name==i[os("0x15")]?r[os("0x2f")]++:t[os("0x10")]({type:o+os("0x2d"),element:i,quantity:1}),n.skip((t=>!(os("0x28")==t.type&&t[os("0x4")]==s)))}else if(this[os("0xa")][os("0x11")](s,os("0x24"))||s.is(os("0xd"),"softBreak")){const n=s;if("add"==o&&"elementStart"==e[os("0x36")]||os("0x16")==o&&os("0x28")==e.type)continue;if(r&&-1==r.type.indexOf("Container")){os("0xb")==r[os("0x36")]&&(r[o]+="\n");continue}let i;if(i=os("0x2a")==o?n[os("0x2")]&&!this[os("0xa")][os("0x1b")](n[os("0x2")])?n.nextSibling:null:n[os("0x23")]&&!this[os("0xa")][os("0x1b")](n[os("0x23")])?n.previousSibling:null,n.isEmpty||i&&i[os("0x1f")]){const e=i&&i[os("0x1f")]?i:n;r&&r[os("0x36")]==o+os("0x37")&&r.element.name==e[os("0x15")]?r[os("0x2f")]++:t.push({type:o+os("0x37"),element:e,quantity:1})}else t.push({type:o+os("0x1a"),element:n})}}}[os("0x26")](t){const e=this._locale,n=[];for(const o of t){switch(o[os("0x36")]){case os("0xb"):if(o.add=o[os("0x2a")][os("0x30")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x30")](/\u000A/g,""),o[os("0x16")]=o[os("0x16")][os("0x30")](/(\S)\u000A+(\S)/g,"$1 $2")[os("0x30")](/\u000A/g,""),""!=o.add&&""!=o[os("0x16")]){n.push({type:os("0x30"),content:Yo(e,os("0x27"),['"'+o[os("0x16")]+'"','"'+o[os("0x2a")]+'"'])});continue}if(null!=o.add[os("0x14")](/^ +$/)){n[os("0x10")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0x5"),o[os("0x2a")].length))});continue}if(null!=o[os("0x16")][os("0x14")](/^ +$/)){n.push({type:"deletion",content:Yo(e,os("0x2b"),Yo(e,os("0x5"),o.remove.length))});continue}if(""!=o[os("0x2a")]){n[os("0x10")]({type:os("0x25"),content:Yo(e,os("0x9"),'"'+o[os("0x2a")]+'"')});continue}n[os("0x10")]({type:"deletion",content:Yo(e,os("0x2b"),'"'+o[os("0x16")]+'"')});continue;case os("0xf"):case"addObject":n[os("0x10")]({type:os("0x25"),content:Yo(e,os("0x9"),this[os("0x7")](o[os("0xd")],o[os("0x2f")]))});continue;case os("0x1d"):case os("0x3"):n[os("0x10")]({type:os("0x21"),content:Yo(e,os("0x2b"),this[os("0x7")](o[os("0xd")],o[os("0x2f")]))});continue;case os("0x13"):n.push({type:os("0x25"),content:Yo(e,os("0x12"),this.getItemLabel(o.element,o[os("0x2f")]))});continue;case os("0x17"):n[os("0x10")]({type:os("0x21"),content:Yo(e,os("0x18"),this[os("0x7")](o.element,o[os("0x2f")]))});continue}n[os("0x10")](o)}return n}}const rs=["justify","markBlockFormat","left","FORMAT_JUSTIFY_TEXT","getAttribute","commandParams","checkAttribute","from","plugins","TrackChangesEditing","model","value","afterInit","registerDescriptionCallback","selection","alignment","change","contentLanguageDirection","FORMAT_ALIGN_TO_CENTER","locale","schema","right","format","commandName","get","*Format:* %0","FORMAT_ALIGN_TO_RIGHT"];var is,xs;is=rs,xs=380,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xa")](){const t=this.editor,e=t[as("0x11")];if(!t.plugins.has("AlignmentEditing"))return;const n=t[as("0x6")][as("0x16")](as("0x7"));n.enableCommand(as("0xd"),((e,o={})=>{let s=o[as("0x9")];o[as("0x9")]||(s="ltr"===t.locale[as("0xf")]?as("0x0"):"right");const r=Array[as("0x5")](this.editor[as("0x8")].document[as("0xc")].getSelectedBlocks()).filter((t=>function(t,e,n){const o=t[as("0x2")](as("0xd"))||null;return e[as("0x4")](t,"alignment")&&n!=o}(t,this.editor[as("0x8")][as("0x12")],s)));t.model[as("0xe")]((()=>{for(const t of r)n[as("0x1a")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n._descriptionFactory[as("0xb")]((t=>{const{data:n}=t;if(n&&as("0xd")==n[as("0x15")]){const t=n[as("0x3")][0].value;return{type:as("0x14"),content:Yo(e,as("0x17"),function(t){switch(t){case as("0x0"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case as("0x13"):return Yo(e,as("0x18"));case"center":return Yo(e,as("0x10"));case as("0x19"):return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["mapper","getAttribute","markerName","span","listItem","getItems","isBlock","insert","start","previousPosition","addClass","get","elementEnd","nextSibling","plugins","toViewPosition","listIndent","ck-suggestion-marker--active","item","getCustomProperty","push","hasAttribute","element","activeMarkers","createRangeOn","writer","name","bindElementToMarker","createUIElement","ck-suggestion-marker-","toViewElement","markerRange","getWalker","test","type","parent"];var ds,us;ds=ls,us=226,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x1f")]())s[gs("0xb")](t)&&o.push(n[gs("0xe")](s));return o}function fs(t){const e=[];if(t.is(gs("0xc"),gs("0x1e"))){let n=t.nextSibling;for(;n&&n.is(gs("0xc"),gs("0x1e"))&&n[gs("0x1b")](gs("0x6"))>0;)e[gs("0xa")](n),n=n[gs("0x3")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x4")][gs("0x1")]("TrackChangesEditing");return(s,r,i)=>{if(!i.consumable[gs("0x17")](r[gs("0x15")],s[gs("0x10")]))return;const x=r[gs("0x15")][gs("0x16")](),a=r.markerRange[gs("0x22")],c=t.model.schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t[gs("0x8")];u=u||c.isContent(e);const n=i[gs("0x1a")][gs("0x14")](e);if(n&&n[gs("0x9")]("addHighlight"))return;gs("0x2")==t[gs("0x18")]&&c[gs("0x20")](e)&&!c.isLimit(e)&&(e[gs("0x3")]||a.isAtEnd?l&&l[gs("0x19")]==e||(l=e,m(t[gs("0x23")]),g=!0):d=d||t.previousPosition)}function m(t){const s=i[gs("0xf")][gs("0x12")](gs("0x1d"),{class:gs("0x13")+e}),x=i[gs("0x1a")][gs("0x5")](t);n&&o[gs("0xd")].includes(r[gs("0x1c")])&&i.writer[gs("0x0")](gs("0x7"),s),i[gs("0xf")][gs("0x21")](x,s),i.mapper[gs("0x11")](s,r.markerName)}u||g||!d||m(d)}}const bs=["StrikethroughEditing","afterInit","FORMAT_SUBSCRIPT","FORMAT_STRIKETHROUGH","FORMAT_ITALIC","forceValue","markInlineFormat","isCollapsed","slice","plugins","FORMAT_SUPERSCRIPT","BoldEditing","code","SuperscriptEditing","editor","has","model","subscript","registerDescriptionCallback","locale","ItalicEditing","toLowerCase","SubscriptEditing","commandName","strikethrough","italic","enableCommand","*Remove format:* %0","get","getRanges","format","FORMAT_CODE","bold","CodeEditing","value","document","change","*Format:* %0","FORMAT_UNDERLINE"];var ps,Es;ps=bs,Es=163,function(t){for(;--t;)ps.push(ps.shift())}(++Es);const _s=function(t,e){return bs[t-=0]},Ts=[_s("0x4"),_s("0xd"),"UnderlineEditing",_s("0x1a"),_s("0x20"),_s("0xf"),_s("0x6")];class Cs extends t.Plugin{[_s("0x21")](){const t=this[_s("0x7")],e=t[_s("0x9")],n=t[_s("0x2")][_s("0x15")]("TrackChangesEditing"),o=t[_s("0xc")];for(const o of Ts){if(!t[_s("0x2")][_s("0x8")](o))continue;const s=o[_s("0x1")](0,-7)[_s("0xe")](),r=t.commands[_s("0x15")](s);n[_s("0x13")](s,((t,o={})=>{const i=e[_s("0x1c")].selection;if(i[_s("0x0")])return void t(o);const x=void 0!==o[_s("0x25")]?o[_s("0x25")]:!r[_s("0x1b")];e[_s("0x1d")]((()=>{const t=Array.from(i[_s("0x16")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n[_s("0x26")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n._descriptionFactory[_s("0xb")]((n=>{const{data:s}=n;if(s&&s[_s("0x10")]===t)return s.commandParams[0][_s("0x25")]?{type:_s("0x17"),content:Yo(o,_s("0x1e"),e)}:{type:_s("0x17"),content:Yo(o,_s("0x14"),e)}}))}s(_s("0x19"),Yo(o,"FORMAT_BOLD")),s(_s("0x12"),Yo(o,_s("0x24"))),s("underline",Yo(o,_s("0x1f"))),s(_s("0x5"),Yo(o,_s("0x18"))),s(_s("0x11"),Yo(o,_s("0x23"))),s(_s("0xa"),Yo(o,_s("0x22"))),s("superscript",Yo(o,_s("0x3")))}}const ys=["name","commands","editor","plugins","TrackChangesEditing","ELEMENT_BLOCK_QUOTE","schema","selection","filter","enableCommand","BlockQuoteEditing","commandParams","from","checkChild","model","afterInit","parent","format","$root","blockQuote","get","getSelectedBlocks","*Remove format:* %0","commandName","locale","forceValue","has","value","change","markBlockFormat","*Format:* %0","document","_descriptionFactory"];var ks,As;ks=ys,As=361,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return ys[t-=0]};class Rs extends t.Plugin{[vs("0x11")](){const t=this[vs("0x4")],e=t[vs("0x1a")];if(!t[vs("0x5")][vs("0x1c")](vs("0xc")))return;const n=t[vs("0x5")][vs("0x16")](vs("0x6")),o=this.editor[vs("0x3")][vs("0x16")](vs("0x15"));n[vs("0xb")](vs("0x15"),((e,s={})=>{const r=this.editor.model[vs("0x0")][vs("0x9")],i=s&&void 0!==s[vs("0x1b")]?s.forceValue:!o[vs("0x1d")];let x=[];if(i){const e=Array[vs("0xe")](r.getSelectedBlocks())[vs("0xa")]((t=>Ss(t)||function(t,e){const n=e[vs("0xf")](t[vs("0x12")],vs("0x15")),o=e.checkChild([vs("0x14"),"blockQuote"],t);return n&&o}(t,this[vs("0x4")][vs("0x10")][vs("0x8")])));x=S(e,t[vs("0x10")])}else{const e=Array[vs("0xe")](r[vs("0x17")]()).filter((t=>Ss(t)));x=S(e,t[vs("0x10")])}t[vs("0x10")][vs("0x1e")]((()=>{for(const t of x)n[vs("0x1f")](t,{commandName:vs("0x15"),commandParams:[{forceValue:i}]})}))})),n[vs("0x1")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x15")==n[vs("0x19")]){const t=Yo(e,vs("0x7"));return n[vs("0xd")][0][vs("0x1b")]?{type:vs("0x13"),content:Yo(e,vs("0x20"),t)}:{type:vs("0x13"),content:Yo(e,vs("0x18"),t)}}}))}}function Ss(t){return"blockQuote"==t[vs("0x12")][vs("0x2")]}const Is=["commands","afterInit","editor","TrackChangesEditing","ckbox","get"];var Ls,Ns;Ls=Is,Ns=498,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Is[t-=0]};class ws extends t.Plugin{[Ms("0x1")](){const t=this[Ms("0x2")];t[Ms("0x0")][Ms("0x5")](Ms("0x4"))&&t.plugins[Ms("0x5")](Ms("0x3")).enableCommand(Ms("0x4"))}}const Os=["commands","plugins","_descriptionFactory","getSelectedBlocks","schema","registerDescriptionCallback","rootElement","from","TrackChangesEditing","outdentCodeBlock","language","codeBlock","name","format","editor","locale","get","model","parent","afterInit","document","value","filter","*Format:* %0","forceValue","ELEMENT_CODE_BLOCK","registerElementLabel","commandParams","enableCommand","*Remove format:* %0","selection","formatBlock","markBlockFormat","find"];var Fs,Ps;Fs=Os,Ps=164,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x19")](){const t=this[Ds("0x14")];if(!t[Ds("0x7")].has("CodeBlock"))return;const e=t[Ds("0x7")][Ds("0x16")](Ds("0xe")),n=t[Ds("0x15")],o=t.config[Ds("0x16")](Ds("0x11")).languages,s=t[Ds("0x6")][Ds("0x16")]("codeBlock");e[Ds("0x0")]("indentCodeBlock"),e.enableCommand(Ds("0xf")),e[Ds("0x0")](Ds("0x11"),((n,r={})=>{const i=t.model,x=t[Ds("0x17")][Ds("0x1a")][Ds("0x2")],a=r&&void 0!==r[Ds("0x1e")]?r[Ds("0x1e")]:!s[Ds("0x1b")];let c;r[Ds("0x10")]||(r[Ds("0x10")]=o[0][Ds("0x10")]),c=a?Array.from(x[Ds("0x9")]()).filter((t=>{return js(t)||(e=t,n=i[Ds("0xa")],!e.is(Ds("0xc"))&&!n.isLimit(e)&&n.checkChild(e[Ds("0x18")],Ds("0x11")));var e,n})):Array[Ds("0xd")](x[Ds("0x9")]())[Ds("0x1c")]((t=>js(t)));const l=S(c,i);i.change((()=>{for(const t of l)e[Ds("0x4")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Ds("0x8")][Ds("0x20")](Ds("0x11"),(t=>Yo(n,Ds("0x1f"),t))),e[Ds("0x8")][Ds("0xb")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x3")==s&&r&&"codeBlock"==r.commandName){const t=r.commandParams[0][Ds("0x10")],s=e(o[Ds("0x5")]((e=>e.language===t)).label);return r[Ds("0x21")][0][Ds("0x1e")]?{type:Ds("0x13"),content:Yo(n,Ds("0x1d"),Yo(n,Ds("0x1f"),1)+" ("+s+")")}:{type:Ds("0x13"),content:Yo(n,Ds("0x1"),Yo(n,Ds("0x1f"),1))}}}))}}function js(t){return"codeBlock"==t[Ds("0x12")]}const Us=["CommentsEditing","get","has","TrackChangesEditing","enableCommand","plugins","afterInit","addCommentThread"];var Gs,Hs;Gs=Us,Hs=409,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Vs extends t.Plugin{[zs("0x5")](){const t=this.editor;t[zs("0x4")][zs("0x1")](zs("0x7"))&&t[zs("0x4")][zs("0x0")](zs("0x2"))[zs("0x3")](zs("0x6"))}}var Ws=n(181);const Ks=["rootName","addMarker:suggestion:deletion","$graveyard","selection","createSelection","downcastDispatcher","markerNameToElements","showSuggestionHighlights","createRange","merge","buffer","uiElement","data","lock","setSelection","getFirstRange","remove","enableCommand","delete","enqueueChange","deleteForward","mapper","init","removeMarker:suggestion:deletion","modifySelection","markerName","high","editing","commands","end","get","unit","unlock","requires","writer","model","start"];var qs,$s;qs=Ks,$s=371,function(t){for(;--t;)qs.push(qs.shift())}(++$s);const Xs=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[Xs("0x20")](){return[Ws.Delete]}[Xs("0x15")](){const t=this.editor,e=t.plugins[Xs("0x1d")]("TrackChangesEditing");e[Xs("0x10")](Xs("0x11"));const n=t[Xs("0x1b")][Xs("0x1d")](Xs("0x13"));e[Xs("0x10")](Xs("0x13"),((e,o={})=>{const s=t[Xs("0x22")][Xs("0x3")](t[Xs("0x22")].document[Xs("0x2")]);s.isCollapsed&&t[Xs("0x22")][Xs("0x17")](s,{direction:"forward",unit:o[Xs("0x1e")]});const r=s[Xs("0xe")](),x=i.LiveRange.fromRange(r);let a;e(o),a=Xs("0x1")==x.root[Xs("0x24")]?t[Xs("0x22")][Xs("0x7")](r[Xs("0x23")]):t[Xs("0x22")][Xs("0x7")](x[Xs("0x23")],x.end),x.detach(),t[Xs("0x22")][Xs("0x12")](n[Xs("0x9")].batch,(t=>{n[Xs("0x9")][Xs("0xc")](),t[Xs("0xd")](t.createRange(a[Xs("0x1c")])),n[Xs("0x9")][Xs("0x1f")]()}))})),t[Xs("0x1a")][Xs("0x4")].on(Xs("0x0"),hs(t,Xs("0x8")),{priority:Xs("0x19")}),t[Xs("0xb")][Xs("0x4")].on("addMarker:suggestion:deletion",((e,n,o)=>{o.options[Xs("0x6")]&&hs(t,Xs("0x8"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Xs("0x19")}),t.editing[Xs("0x4")].on(Xs("0x16"),((t,e,n)=>{const o=n[Xs("0x14")][Xs("0x5")](e.markerName);if(o)for(const t of o)t.is(Xs("0xa"))&&(n[Xs("0x14")].unbindElementFromMarkerName(t,e[Xs("0x18")]),n[Xs("0x21")][Xs("0xf")](t))}),{priority:"high"})}}const Qs=["_suggestionFactory","slice","indentList","format","_LIST","expandListBlocksToCompleteList","commandName","outdentList","map","mergeListItemBackward","document","listItemId","listIndent","enableCommand","*Change to:* %0","multipleBlocks","splitListItemBefore","schema","containsItem","DocumentListEditing","end","editor","afterInit","commands","_descriptionFactory","getRanges","after","value","DocumentListUtils","ELEMENT_LIST_ITEM","commandParams","get","next","nodeAfter","isFirstBlockOfListItem","markBlockFormat","change","hasAttribute","locale","*Indent:* %0","ELEMENT_","*Format:* insert into %0","parent","*Merge:* %0","formatBlock","createPositionAt","detach","start","listType","numberedList","createRange","registerCustomCallback","documentList","has","bulletedList","from","splitListItemAfter","getFirstRange","fromRange","model","*Outdent:* %0","getAttribute","*Format:* remove from %0","getSelectedBlocks","execute","selection","registerElementLabel","setSelection","refresh","isObject","nextSibling","before","previousSibling","push","markMultiRangeBlockFormat","plugins","registerDescriptionCallback"];var Zs,Ys;Zs=Qs,Ys=245,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x8")](){const t=this[tr("0x7")];if(!t[tr("0x3d")][tr("0x27")](tr("0x5")))return;const e=t[tr("0x18")],n=t[tr("0x3d")][tr("0x11")]("TrackChangesEditing"),o=t.plugins[tr("0x11")](tr("0xe"));function s(e){return()=>{const s=t.commands.get(e);let r=Array[tr("0x29")](t[tr("0x2d")][tr("0x49")].selection[tr("0x31")]());if(a(e)){r=o[tr("0x44")](r);const t=[];for(const e of r)o[tr("0x14")](e)&&t[tr("0x3b")](e);r=t}t[tr("0x2d")].change((()=>{n[tr("0x3c")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0xd")]}],formatGroupId:tr("0x22")},[],tr("0x26"))}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x29")](t);const n=e.findIndex((t=>!t[tr("0x17")](tr("0x4a"))));return n>-1&&(e=e[tr("0x40")](0,n)),e}(t.model[tr("0x49")][tr("0x33")][tr("0x31")]()),s=o[o.length-1],r=t[tr("0x2d")][tr("0x3")][tr("0x37")](s)?tr("0xc"):tr("0x6"),i=t[tr("0x2d")].createRange(t[tr("0x2d")][tr("0x1f")](o[0],tr("0x39")),t.model[tr("0x1f")](s,r));t[tr("0x2d")][tr("0x16")]((()=>{n[tr("0x15")](i,{commandName:e,commandParams:[],formatGroupId:"listType"},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[tr("0x2f")]("listIndent")>n[tr("0x2f")](tr("0x4b"));)e.add(t),t=t.nextSibling}return Array[tr("0x29")](e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x2d")][tr("0x49")].selection[tr("0x31")]()[tr("0x12")]().value,s=t[tr("0x2d")][tr("0x1f")](o,"before"),r=t[tr("0x2d")][tr("0x1f")](o,0),i=t[tr("0x2d")][tr("0x24")](s,r);t[tr("0x2d")][tr("0x16")]((()=>{n[tr("0x15")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x22")})}))}}function a(e){const n=t[tr("0x9")][tr("0x11")](tr("0x28")).value,o=t[tr("0x9")][tr("0x11")]("numberedList")[tr("0xd")];return tr("0x23")===e?n:o}n[tr("0x4c")](tr("0x23"),s(tr("0x23"))),n[tr("0x4c")](tr("0x28"),s(tr("0x28"))),n[tr("0x4c")](tr("0x41"),r(tr("0x41"))),n[tr("0x4c")](tr("0x46"),r(tr("0x46"))),n.enableCommand(tr("0x2a"),x(tr("0x2a"))),n[tr("0x4c")](tr("0x2"),x(tr("0x2"))),n[tr("0xa")][tr("0x34")]((function(e){const n=!t.model[tr("0x3")][tr("0x37")](e),o=e[tr("0x3a")],s=e[tr("0x38")],r=e[tr("0x2f")](tr("0x4a")),i=!o||o[tr("0x2f")](tr("0x4a"))!==r,x=!s||s.getAttribute("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,"ELEMENT_LIST_ITEM",t))),n._descriptionFactory[tr("0x3e")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x45")]){case tr("0x28"):r=n[tr("0x10")][0].forceValue,i=a(n.commandName),o=tr(r?"0x1b":"0x30"),i&&(o=tr("0x0")),s={type:tr("0x42"),content:Yo(e,o,Yo(e,"ELEMENT_BULLETED_LIST"))};break;case tr("0x23"):r=n[tr("0x10")][0].forceValue,i=a(n[tr("0x45")]),o=r?"*Format:* insert into %0":tr("0x30"),i&&(o=tr("0x0")),s={type:tr("0x42"),content:Yo(e,o,Yo(e,"ELEMENT_NUMBERED_LIST"))};break;case tr("0x41"):o=tr("0x19"),s={type:tr("0x42"),content:Yo(e,o,Yo(e,tr("0xf")))};break;case tr("0x46"):o=function(t){const e=t[tr("0x2b")]();let n=e.start[tr("0x13")];for(;n&&e[tr("0x4")](n);){if(n[tr("0x2f")](tr("0x4b"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,tr("0x30"),Yo(e,function(t){const e=t.getFirstRange()[tr("0x21")].nodeAfter;return tr("0x1a")+e.getAttribute("listType").toUpperCase()+tr("0x43")}(t))):Yo(e,tr("0x2e"),Yo(e,"ELEMENT_LIST_ITEM")),s={type:"format",content:o};break;case tr("0x48"):case"mergeListItemForward":!1===n[tr("0x1")]&&(o=tr("0x1d"),s={type:"deletion",content:Yo(e,o,Yo(e,tr("0xf")))})}return s})),n[tr("0x3f")][tr("0x25")](tr("0x1e"),"documentList","accept",(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n.end[tr("0x1c")]&&(n=t[tr("0x2d")][tr("0x24")](t[tr("0x2d")].createPositionAt(n.start[tr("0x13")],0))),o[tr("0x3b")](n);t[tr("0x2d")].change((e=>{const s=t[tr("0x2d")][tr("0x49")].selection,r=Array[tr("0x29")](s[tr("0xb")]())[tr("0x47")]((t=>i.LiveRange[tr("0x2c")](t)));e[tr("0x35")](o),t.commands.get(n[tr("0x45")])[tr("0x36")](),n.commandParams[tr("0x3b")]({forceDefaultExecution:!0}),t[tr("0x32")](n[tr("0x45")],...n[tr("0x10")]),e.setSelection(r);for(const t of r)t[tr("0x20")]()}))}))}}var nr=n(331);const or=["markInsertion","fromRange","nextSibling","removeMarker:suggestion:insertion","plugins","bind","setSelection","end","model","data","high","mapper","writer","get","markerNameToElements","getFirstRange","TrackChangesEditing","unbindElementFromMarkerName","document","showSuggestionHighlights","remove","afterExecute","enableCommand","hasClass","init","downcastDispatcher","editing","enter","editor","createRange","selection","fire","parent","enterBlock","addMarker:suggestion:insertion","requires","split","markerName","options","createPositionAt","ck-suggestion-marker-split"];var sr,rr;sr=or,rr=433,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0xc")](){return[nr.Enter]}[ir("0x1")](){const t=this[ir("0x5")],e=t[ir("0x16")][ir("0x1f")](ir("0x22")),n=t.commands[ir("0x1f")]("enter");e[ir("0x28")](ir("0x4"),(()=>{t[ir("0x1a")].change((o=>{const s=t[ir("0x1a")][ir("0x24")][ir("0x7")],r=s.getFirstPosition(),x=i.LiveRange[ir("0x13")](s[ir("0x21")]());if(n[ir("0xa")](o)){const n=t[ir("0x1a")][ir("0x10")](r[ir("0x9")][ir("0x14")],0),s=o[ir("0x6")](r,n);e[ir("0x12")](s)}else o[ir("0x18")](o[ir("0x6")](x[ir("0x19")]));x.detach(),n[ir("0x8")](ir("0x27"),{writer:o})}))})),t.editing.downcastDispatcher.on(ir("0xb"),hs(t,ir("0xd")),{priority:"high"}),t[ir("0x3")][ir("0x2")].on(ir("0x15"),((t,e,n)=>{const o=n[ir("0x1d")][ir("0x20")](e[ir("0xe")]);if(o)for(const t of o)t[ir("0x0")](ir("0x11"))&&(n[ir("0x1d")][ir("0x23")](t,e[ir("0xe")]),n[ir("0x1e")][ir("0x26")](t))}),{priority:"high"}),t[ir("0x1b")][ir("0x2")].on(ir("0xb"),((e,n,o)=>{o[ir("0xf")][ir("0x25")]&&hs(t,"split",{showActiveMarker:!1})[ir("0x17")](this)(e,n,o)}),{priority:ir("0x1c")})}}const ar=["string","model","_isInDeletionRange","bind","filter","suggestion:deletion","TrackChangesEditing","FindAndReplaceUtils","has","createPositionAt","findPrevious","handleFindCommand","FindAndReplaceEditing","enableCommand","editor","findByTextCallback","replace","getRange","item","find","replaceAll","end","plugins","start","get"];var cr,lr;cr=ar,lr=337,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this[dr("0x2")][dr("0xa")][dr("0x15")](dr("0x0")))return;const t=this[dr("0x2")][dr("0xa")][dr("0xc")](dr("0x13"));t[dr("0x1")](dr("0x7"),this[dr("0x18")][dr("0x10")](this)),t[dr("0x1")]("findNext"),t[dr("0x1")](dr("0x17")),t.enableCommand(dr("0x4")),t[dr("0x1")](dr("0x8"))}[dr("0x18")](t,e,n={}){const o=this[dr("0x2")][dr("0xa")].get(dr("0x14"));void 0!==n&&t((t=>(dr("0xd")==typeof e?o[dr("0x3")](e,n):e)(t)[dr("0x11")]((e=>!1===this[dr("0xf")](e,t[dr("0x6")])))),n)}[dr("0xf")](t,e){const n=this[dr("0x2")][dr("0xe")].createRange(this.editor[dr("0xe")][dr("0x16")](e,t[dr("0xb")]),this[dr("0x2")][dr("0xe")][dr("0x16")](e,t[dr("0x9")]));for(const t of this[dr("0x2")][dr("0xe")].markers.getMarkersGroup(dr("0x12")))if(null!==n.getIntersection(t[dr("0x5")]()))return!0;return!1}}const gr=["plugins","editor","trim","FontColorEditing","get","find","config","*Set font color:* %0","commandName","normalizeSizeOptions","fontBackgroundColor","TrackChangesEditing","label","*Reset font color*","fontColor.colors","model","markInlineFormat","toLowerCase","format","*Set font family:* %0","selection","value","fontFamily","_enableCommand","*Reset font size*","*Set font background color:* %0","afterInit","enableCommand","change","_descriptionFactory","getRanges","*Set font size:* %0","fontSize.options","commandParams","fontColor","fontSize","FontBackgroundColorEditing","FontFamilyEditing","*Reset font family*","from","title","*Reset font background color*"];var mr,fr;mr=gr,fr=173,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},br=[{pluginName:"FontSizeEditing",commandName:"fontSize"},{pluginName:hr("0x20"),commandName:hr("0x11")},{pluginName:hr("0x28"),commandName:hr("0x1d")},{pluginName:hr("0x1f"),commandName:hr("0x5")}];class pr extends t.Plugin{[hr("0x15")](){const t=this[hr("0x26")].locale;for(const{pluginName:t,commandName:e}of br)this[hr("0x26")][hr("0x25")].has(t)&&this[hr("0x12")](e);this[hr("0x26")][hr("0x25")].get(hr("0x6"))[hr("0x18")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1e")==o.commandName){const e=o[hr("0x1c")][0][hr("0x10")];if(e){const o=n(this[hr("0x26")][hr("0x25")][hr("0x29")]("FontSize")[hr("0x4")](this[hr("0x26")].config[hr("0x29")](hr("0x1b")))[hr("0x0")]((t=>t[hr("0xa")]==e))[hr("0x23")])[hr("0xc")]();return{type:hr("0xd"),content:Yo(t,hr("0x1a"),o)}}return{type:"format",content:Yo(t,hr("0x13"))}}if(hr("0x11")==o[hr("0x3")]){const e=o[hr("0x1c")][0][hr("0x10")];return e?{type:hr("0xd"),content:Yo(t,hr("0xe"),e)}:{type:hr("0xd"),content:Yo(t,hr("0x21"))}}if(hr("0x1d")==o.commandName){const e=o[hr("0x1c")][0][hr("0x10")];if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x26")][hr("0x1")][hr("0x29")](hr("0x9")))[hr("0x0")]((t=>t[hr("0xa")]==e));let r=e,i="";return o&&(r=o[hr("0x7")],i=n(r)[hr("0xc")]()),{type:"format",content:Yo(t,hr("0x2"),i)[hr("0x27")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0x8"))}}if(hr("0x5")==o[hr("0x3")]){const e=o[hr("0x1c")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this[hr("0x26")][hr("0x1")][hr("0x29")]("fontBackgroundColor.colors"))[hr("0x0")]((t=>t[hr("0xa")]==e));let r=e,i="";return o&&(r=o[hr("0x7")],i=n(r)[hr("0xc")]()),{type:hr("0xd"),content:Yo(t,hr("0x14"),i).trim(),color:{value:e,title:i||r}}}return{type:hr("0xd"),content:Yo(t,hr("0x24"))}}}}))}[hr("0x12")](t){const e=this[hr("0x26")];e[hr("0x25")].get(hr("0x6"))[hr("0x16")](t,((n,o={})=>{const s=e[hr("0xa")].document[hr("0xf")],r=o.value;s.isCollapsed?n(o):e.model[hr("0x17")]((()=>{const n=Array[hr("0x22")](s[hr("0x19")]());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0xa")]);for(const o of n)e[hr("0x25")][hr("0x29")]("TrackChangesEditing")[hr("0xb")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["TrackChangesEditing","FontSize","commandParams","normalizeSizeOptions","commands","getItems","isFormatting","pasteFormat","toLowerCase","getLastPosition","model","fontSize.options","getFirstPosition","length","markInlineFormat","getRanges","*Remove all formatting*","title","entries","_descriptionFactory","copyFormat","backward","schema","find","fontBackgroundColor","document","getSelectedBlocks","registerDescriptionCallback","word","locale","isCollapsed","format","enableCommand","get","toUpperCase","selection","editor","config","fontColor.colors","fontColor","createSelection","push","from","slice","afterInit","commandName","join","*Set format to:* %0","plugins"];var _r,Tr;_r=Er,Tr=133,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const Cr=function(t,e){return Er[t-=0]};class yr extends t.Plugin{[Cr("0x9")](){const t=this[Cr("0x1")],n=t.model,o=n[Cr("0x27")][Cr("0x0")],s=t.plugins.get(Cr("0xe")),r=t[Cr("0x2b")],i=t[Cr("0x12")].get(Cr("0x22")),x=t[Cr("0x12")][Cr("0x2f")](Cr("0x15"));i&&x&&(s[Cr("0x2e")]("pasteFormat",((t,r={})=>{const i=r;n.change((()=>{const t=Array[Cr("0x7")](o[Cr("0x1d")]()),r=o[Cr("0x2c")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t.getAttributes()){const t=e.getAttributeProperties(n);t&&t[Cr("0x14")]&&(yield n)}}(t,n));for(const e of t[Cr("0x1d")]())for(const t of e[Cr("0x13")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[Cr("0x28")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n[Cr("0x24")]))||0!==Object.keys(i)[Cr("0x1b")])for(const t of r)s[Cr("0x1c")](t,{commandName:Cr("0x15"),commandParams:[i]})}))})),s[Cr("0x21")][Cr("0x29")]((e=>{const{data:n}=e;if(n&&Cr("0x15")===n[Cr("0xa")]){const e=[],o=n[Cr("0x10")][0];for(const[n,s]of Object[Cr("0x20")](o))e[Cr("0x6")](Ar(t,n,s));return e[Cr("0x1b")]?{type:Cr("0x2d"),content:Yo(r,Cr("0xc"),e[Cr("0xb")](", "))}:{type:Cr("0x2d"),content:Yo(r,Cr("0x1e"))}}})),t[Cr("0xd")][Cr("0x2f")](Cr("0xe"))[Cr("0x2e")](Cr("0x22")))}}function kr(t,e){const n=t[Cr("0x5")](e);t.modifySelection(n,{unit:"word",direction:Cr("0x23")});const o=n[Cr("0x1a")]();t.modifySelection(n,{unit:Cr("0x2a"),direction:"forward"});const s=n[Cr("0x17")]();return t.createRange(o,s)}function Ar(t,e,n){const o=t[Cr("0x2b")].t,r=e.split(/(?=[A-Z])/).join(" "),i=o(r.charAt(0)[Cr("0x30")]()+r[Cr("0x8")](1))[Cr("0x16")]();if("boolean"==typeof n)return i;if(Cr("0x4")===e||Cr("0x26")===e){const e=(0,s.normalizeColorOptions)(t.config[Cr("0x2f")](Cr("0x3")))[Cr("0x25")]((t=>t.model==n));return i+" ("+(e?o(e.label).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t[Cr("0xd")][Cr("0x2f")](Cr("0xf"))[Cr("0x11")](t[Cr("0x2")][Cr("0x2f")](Cr("0x19")))[Cr("0x25")]((t=>t[Cr("0x18")]==n));return i+" ("+(e?o(e[Cr("0x1f")]).toLowerCase():n)+")"}return i+" ("+n+")"}const vr=["change","TrackChangesEditing","parent","heading","ELEMENT_HEADING_CUSTOM","model","from","get","plugins","title","match","isObject","afterInit","value","document","HeadingEditing","editor","locale","getSelectedBlocks","registerElementLabel","name","schema","enableCommand","selection","_descriptionFactory","format","ELEMENT_HEADING","registerDescriptionCallback","heading.options"];var Rr,Sr;Rr=vr,Sr=381,function(t){for(;--t;)Rr.push(Rr.shift())}(++Sr);const Ir=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Ir("0x8")](){const t=this[Ir("0xc")],e=t[Ir("0xd")],n=t.config.get(Ir("0x18"));if(!t[Ir("0x4")].has(Ir("0xb")))return;const o=t.plugins[Ir("0x3")](Ir("0x1a"));o[Ir("0x12")]("heading",((e,n)=>{const s=n[Ir("0x9")],r=Array[Ir("0x2")](this[Ir("0xc")][Ir("0x1")][Ir("0xa")][Ir("0x13")][Ir("0xe")]()).filter((t=>{return e=t,n=s,(o=this[Ir("0xc")][Ir("0x1")][Ir("0x11")]).checkChild(e[Ir("0x1b")],n)&&!o[Ir("0x7")](e)&&e[Ir("0x10")]!=n;var e,n,o}));t[Ir("0x1")][Ir("0x19")]((()=>{for(const t of r)o.markBlockFormat(t,{commandName:Ir("0x1c"),commandParams:[n],formatGroupId:"blockName"},fs(t))}))}));for(const t of n)"paragraph"!=t[Ir("0x1")]&&o[Ir("0x14")][Ir("0xf")](t[Ir("0x1")],(e=>{const n=Nr(t.model);return null!==n?s(e,n):r(e,t[Ir("0x5")])}));function s(t,n){return Yo(e,Ir("0x16"),[t,n])}function r(t,n){return Yo(e,Ir("0x0"),[t,n])}o[Ir("0x14")][Ir("0x17")]((t=>{const{type:o,data:i}=t;if("formatBlock"==o&&i&&"heading"==i.commandName){const t=i.commandParams[0][Ir("0x9")],o=Nr(t);if(null!==o)return{type:Ir("0x15"),content:Yo(e,"*Change to:* %0",s(1,o))};const x=n.find((e=>e.model===t)).title;return{type:Ir("0x15"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Ir("0x6")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["model","push","isCollapsed","afterInit","locale","highlight","getRanges","item","_descriptionFactory","*Remove highlight*","format","formatInline","registerDescriptionCallback","commandName","value","plugins","getAttribute","document","toLowerCase","getLastMatchingPosition","change","editor","find","title","FORMAT_HIGHLIGHT","highlight.options","get","TrackChangesEditing","backward"];var wr,Or;wr=Mr,Or=299,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x17")](){const t=this[Fr("0xc")];if(!t[Fr("0x6")].has("HighlightEditing"))return;const e=t.plugins[Fr("0x11")](Fr("0x12"));e.enableCommand(Fr("0x19"),((n,o={})=>{const s=t[Fr("0x14")][Fr("0x8")].selection,r=s[Fr("0x7")](Fr("0x19"));let i=o[Fr("0x5")],x=[];if(s[Fr("0x16")]){const e=s.getFirstPosition();if(!s.hasAttribute(Fr("0x19")))return void n(o);{const n=t=>t[Fr("0x1b")][Fr("0x7")](Fr("0x19"))===r,o=e[Fr("0xa")](n,{direction:Fr("0x13")}),s=e.getLastMatchingPosition(n);x=[t.model.createRange(o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x1a")]())i?x[Fr("0x15")](e):x[Fr("0x15")](...ms("highlight",e,t[Fr("0x14")]));t[Fr("0x14")][Fr("0xb")]((()=>{for(const t of x)e.markInlineFormat(t,{commandName:Fr("0x19"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x18")];e[Fr("0x1c")][Fr("0x3")]((e=>{const{type:o,data:s}=e;if(Fr("0x2")==o&&s&&Fr("0x19")==s[Fr("0x4")]){const e=n.t,o=s.commandParams[0][Fr("0x5")];if(o){const s=t.config[Fr("0x11")](Fr("0x10"))[Fr("0xd")]((t=>t[Fr("0x14")]==o)),r=e(s[Fr("0xe")])[Fr("0x9")]();return{type:Fr("0x1"),content:Yo(n,"*Set highlight:* %0",r),color:{value:s.color,title:s[Fr("0xe")]}}}return{type:Fr("0x1"),content:Yo(n,Fr("0x0"),Yo(n,Fr("0xf")))}}}))}}const Dr=["registerElementLabel","has","plugins","div","ck-horizontal-line","editor","TrackChangesEditing","locale","insert","get","high","createContainerElement","createEmptyElement","afterInit","dataDowncast","addClass","elementToStructure","conversion","horizontalLine","enableCommand"];var Br,jr;Br=Dr,jr=332,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x1")](){const t=this[Ur("0xd")];if(!t[Ur("0xa")][Ur("0x9")]("HorizontalLineEditing"))return;t.plugins[Ur("0x11")](Ur("0xe"))[Ur("0x7")]("horizontalLine");const e=t.plugins.get("TrackChangesEditing"),n=t[Ur("0xf")];e._descriptionFactory[Ur("0x8")](Ur("0x6"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x5")].for(Ur("0x2"))[Ur("0x4")]({model:Ur("0x6"),view:(t,{writer:e,options:n})=>{if(!n.showSuggestionHighlights)return null;const o=e[Ur("0x13")](Ur("0xb")),s=e[Ur("0x0")]("hr");return e[Ur("0x3")](Ur("0xc"),o),e[Ur("0x10")](e.createPositionAt(o,0),s),o},converterPriority:Ur("0x12")})}}const Hr=["get","editor","selection","afterInit","getCustomProperty","commandName","HtmlEmbed","rawHtmlApi","registerDescriptionCallback","plugins","rawHtml","enableCommand","TrackChangesEditing","editing","registerElementLabel","getSelectedElement","view","model","change","cancel","has","markBlockFormat","document","_descriptionFactory","*Change %0 content*","htmlEmbed"];var zr,Vr;zr=Hr,Vr=142,function(t){for(;--t;)zr.push(zr.shift())}(++Vr);const Wr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Wr("0x11")](){const t=this[Wr("0xf")];if(!t[Wr("0x17")][Wr("0x8")](Wr("0x14")))return;const e=t[Wr("0x17")][Wr("0xe")](Wr("0x0")),n=t.locale,o=t[Wr("0x1")][Wr("0x4")][Wr("0xa")][Wr("0x10")];e[Wr("0xb")][Wr("0x2")](Wr("0x18"),(t=>Yo(n,"ELEMENT_HTML_EMBED",t))),t[Wr("0x17")][Wr("0xe")](Wr("0x0"))[Wr("0x19")](Wr("0xd"),((n,s)=>{const r=t[Wr("0x5")],i=r.document.selection;r[Wr("0x6")]((()=>{const t=function(t){const e=t[Wr("0x3")]();return e&&e.is("element",Wr("0x18"))?t.getSelectedElement():null}(i);if(!t)return void n(null);const r=t.getAttribute("value")||"";void 0!==s&&s!==r&&(e[Wr("0x9")](t,{commandName:Wr("0xd"),commandParams:[s]}),o[Wr("0x3")]()[Wr("0x12")](Wr("0x15"))[Wr("0x7")]())}))})),e._descriptionFactory[Wr("0x16")]((t=>{const{data:e}=t;if(e&&"htmlEmbed"==e[Wr("0x13")]){const t=Yo(n,"ELEMENT_HTML_EMBED");return{type:"format",content:Yo(n,Wr("0xc"),t)}}}))}}const qr=["toPrevious","markInsertion","ELEMENT_CAPTION","formatInline","insertImage","commands","toLowerCase","format","ImageTextAlternativeEditing","author","_splitMarkerName","detach","removeObject","convertInlineImageToBlock","formatBlock","Block image to inline image","*Remove image text alternative*","newRange","getCaptionFromImageModelElement","normalizedStyles","alt","nodeBefore","imageStylePostApply","isBlockImage","ImageStyleEditing","resizeImage","next","model","*Format:* %0","createRange","newValue","registerPostFixer","nodeAfter","ELEMENT_INLINE_IMAGE","ELEMENT_IMAGE","title","join","type","_findSuggestions","imageCaption","previous","imageInline","*Reset image width*","imageTextAlternative","imageTypeBlock","discardSuggestion","fromPosition","markInlineFormat","*Set image width:* %0","getClosestSelectedImageElement","refresh","uploadImage","imageTypeInline","end","getFirstRange","subType","registerCustomCallback","*Set image text alternative:* %0","getContainedElement","commandReversedParams","chain","plugins","backward","ImageUtils","hasSuggestion","getSuggestion","addObject","isEqual","discard","from","ImageUploadEditing","imageStyle","deletion","ImageEditing","markDeletion","getSuggestions","width","isInContent","start","editor","forward","name","differ","FORMAT_SIDE_IMAGE","ImageInlineEditing","getAttribute","ImageResize","document","_suggestionFactory","getNearestSelectionRange","has","caption","isBefore","imageStylePreApply","get","value","filter","_descriptionFactory","isInlineImage","registerElementLabel","find","enableCommand","markBlockFormat","length","createRangeOn","commandName","insertion","isIntersecting","ImageBlockEditing","commandParams","suggestion","accept","getSuggestionCallback","ImageCaptionUtils","isCollapsed","registerDescriptionCallback","selection","schema","change","locale"];var $r,Xr;$r=qr,Xr=385,function(t){for(;--t;)$r.push($r.shift())}(++Xr);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{afterInit(){const t=this[Jr("0x36")];if(!t[Jr("0x24")].has(Jr("0x30")))return;const n=t[Jr("0x24")][Jr("0x45")]("TrackChangesEditing"),o=t.plugins.get(Jr("0x26")),s={},r=t[Jr("0x5e")];if(n[Jr("0x4c")](Jr("0x63")),n[Jr("0x48")][Jr("0x4a")]("imageBlock",(t=>Yo(r,Jr("0x9"),t))),n[Jr("0x48")][Jr("0x4a")](Jr("0x10"),(t=>Yo(r,Jr("0x8"),t))),n[Jr("0x48")][Jr("0x4a")]("caption",(()=>Yo(r,Jr("0x61")))),t[Jr("0x24")][Jr("0x41")](Jr("0x2d"))&&n.enableCommand(Jr("0x1a")),t[Jr("0x24")].has(Jr("0x53"))&&t[Jr("0x24")][Jr("0x41")](Jr("0x3b"))&&(n[Jr("0x4c")](Jr("0x1b"),((e,s)=>{const r=o[Jr("0x18")](t.model[Jr("0x3e")][Jr("0x5b")]);t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:Jr("0x1b"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x4c")]("imageTypeBlock",((e,s)=>{t[Jr("0x2")][Jr("0x5d")]((r=>{let x=o.getClosestSelectedImageElement(t.model.document[Jr("0x5b")]),a=r[Jr("0x4f")](x);const c=i.LivePosition[Jr("0x15")](a[Jr("0x35")],Jr("0x5f")),l=i.LivePosition[Jr("0x15")](a.end,"toNext");n.forceDefaultExecution((()=>e(s))),x=o[Jr("0x18")](t.model[Jr("0x3e")][Jr("0x5b")]),a=r[Jr("0x4f")](x);const d=r[Jr("0x4")](c,l);c[Jr("0x6a")](),l[Jr("0x6a")](),n[Jr("0x4d")](x,{commandName:"imageTypeInline",commandParams:[]},[],Jr("0x6c")),d[Jr("0x35")][Jr("0x43")](a.start)&&n[Jr("0x60")](r[Jr("0x4")](d[Jr("0x35")],a[Jr("0x35")]),Jr("0x6c")),a.end[Jr("0x43")](d[Jr("0x1c")])&&n[Jr("0x60")](r[Jr("0x4")](a[Jr("0x1c")],d[Jr("0x1c")]),Jr("0x6c"))}))})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),"join",(()=>{})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),Jr("0x56"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")]("formatBlock",Jr("0x6c"),Jr("0x2b"),n[Jr("0x3f")][Jr("0x57")](Jr("0x6d"),"",Jr("0x56"))),n._suggestionFactory.registerCustomCallback(Jr("0x51"),Jr("0x6c"),Jr("0xb"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")]("insertion","convertInlineImageToBlock","discard",(([e])=>{const o=n[Jr("0x3f")][Jr("0x57")](Jr("0x51"),"","discard");let s=e.start,r=e.end;const i=t[Jr("0x2")][Jr("0x5c")][Jr("0x40")](s,Jr("0x25")),x=t[Jr("0x2")].schema[Jr("0x40")](r,Jr("0x37"));i[Jr("0x59")]&&(s=i[Jr("0x35")]),x.isCollapsed&&(r=x.end),o([t[Jr("0x2")][Jr("0x4")](s,r)])})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),Jr("0x6c"),Jr("0x23"),c),n[Jr("0x3f")][Jr("0x1f")]("insertion","convertInlineImageToBlock","chain",c)),t[Jr("0x24")].has("ImageCaptionEditing")&&(n[Jr("0x4c")]("toggleImageCaption",((e,s)=>{const r=t.plugins[Jr("0x45")](Jr("0x58"));let i=o.getClosestSelectedImageElement(t.model.document[Jr("0x5b")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x2")][Jr("0x5d")]((()=>{if(x)return void n[Jr("0x31")](t[Jr("0x2")][Jr("0x4f")](x));const a=o[Jr("0x76")](i);e(s),i=o[Jr("0x18")](t[Jr("0x2")][Jr("0x3e")][Jr("0x5b")]),x=r[Jr("0x71")](i),n[Jr("0x60")](t.model.createRangeOn(x),a?null:Jr("0xe"))}))})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x51"),Jr("0xe"),Jr("0x23"),c)),t[Jr("0x24")][Jr("0x41")](Jr("0x77"))){n[Jr("0x4c")]("imageStyle",((s,r)=>{const i=t.plugins[Jr("0x45")]("Users").me,x=t[Jr("0x64")].get(Jr("0x2e"));let a=o.getClosestSelectedImageElement(t.model[Jr("0x3e")][Jr("0x5b")]),c=t[Jr("0x2")][Jr("0x4f")](a),l=x.value;if(l==r[Jr("0x46")])return;const d={commandName:Jr("0x2e"),commandParams:[r],formatGroupId:(0,e.uid)()};t[Jr("0x2")].change((()=>{if(n[Jr("0x32")]()[Jr("0x47")]((t=>t.isInContent&&i==t[Jr("0x68")]&&("formatBlock"==t.type||Jr("0x62")==t.type)&&(Jr("0x44")==t[Jr("0x1e")]||Jr("0x75")==t[Jr("0x1e")])&&t.getFirstRange().isEqual(c))).forEach((t=>n[Jr("0x14")](t.head))),a=o.getClosestSelectedImageElement(t.model[Jr("0x3e")][Jr("0x5b")]),c=t[Jr("0x2")].createRangeOn(a),x.refresh(),t.commands.get("imageTypeInline")[Jr("0x19")](),t[Jr("0x64")][Jr("0x45")](Jr("0x13"))[Jr("0x19")](),l=x[Jr("0x46")],l!=r[Jr("0x46")])return o[Jr("0x49")](a)&&x.shouldConvertImageType(r[Jr("0x46")],a)?(s(r),a=o[Jr("0x18")](t[Jr("0x2")].document[Jr("0x5b")]),void n[Jr("0x4d")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x44"))):void(o[Jr("0x76")](a)?n.markBlockFormat(a,d,[],Jr("0x75")):n[Jr("0x16")](c,d,Jr("0x75")))}))}));for(const e of t[Jr("0x24")][Jr("0x45")](Jr("0x77"))[Jr("0x72")])s[e[Jr("0x38")]]=e[Jr("0xa")][Jr("0x65")]();n[Jr("0x3f")].registerCustomCallback(Jr("0x6d"),Jr("0x44"),"join",(()=>{})),n[Jr("0x3f")].registerCustomCallback(Jr("0x6d"),"imageStylePostApply",Jr("0xb"),(()=>{})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x62"),"imageStylePostApply",Jr("0xb"),(()=>{})),n._suggestionFactory[Jr("0x1f")](Jr("0x6d"),Jr("0x44"),"accept",(()=>{})),n[Jr("0x3f")].registerCustomCallback("formatBlock",Jr("0x44"),"discard",((t,e)=>{n[Jr("0x3f")].getSuggestionCallback(Jr("0x6d"),"",Jr("0x56"))(t,{commandName:e[Jr("0x50")],commandParams:e[Jr("0x22")]})})),n[Jr("0x3f")][Jr("0x1f")](Jr("0x6d"),"imageStylePreApply",Jr("0x23"),c)}const x=[{type:Jr("0x6d"),subType:Jr("0x44")},{type:Jr("0x51"),subType:Jr("0xe")},{type:Jr("0x6d"),subType:Jr("0x6c")},{type:Jr("0x51"),subType:Jr("0x6c")}];function a(t,e){const s=x.findIndex((({type:e,subType:n})=>t[Jr("0xc")]==e&&t[Jr("0x1e")]==n)),r=x.findIndex((({type:t,subType:n})=>e[Jr("0xc")]==t&&e[Jr("0x1e")]==n));if(s<0||r<0)return!1;const i=t[Jr("0x1d")](),a=e[Jr("0x1d")]();if((0==s||1==s)&&2==r&&i[Jr("0x52")](a))return!0;if(2==s&&3==r){const t=n[Jr("0xd")](i,"insertion")[Jr("0x47")]((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t[Jr("0x1e")]));if(t[Jr("0x4e")]>1&&a[Jr("0x1c")][Jr("0x2a")](i[Jr("0x35")]))return!0;if(1==t[Jr("0x4e")]&&(i.start[Jr("0x2a")](a.end)||i.end[Jr("0x2a")](a[Jr("0x35")])))return!0}if(3==s&&3==r&&i.start[Jr("0x43")](a[Jr("0x35")])){const t=i.end[Jr("0x7")],e=a[Jr("0x35")][Jr("0x74")];return o[Jr("0x76")](t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t[Jr("0x2")][Jr("0x3e")][Jr("0x6")]((()=>{let e=!1;const s=Array[Jr("0x2c")](t[Jr("0x2")][Jr("0x3e")][Jr("0x39")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x69")](t);if(Jr("0x55")==s&&n[Jr("0x27")](a)){if(Jr("0x6d")==i&&(Jr("0x44")==x||Jr("0x75")==x)){const t=n[Jr("0x28")](a);if(r.newRange){const s=t[Jr("0x1d")]().getContainedElement();if(o[Jr("0x76")](s))continue;n[Jr("0x14")](t),e=!0}}if(Jr("0x51")==i&&"imageCaption"==x&&!r[Jr("0x70")]){const t=n[Jr("0x28")](a);t.next&&t[Jr("0x1")][Jr("0x34")]&&(n[Jr("0x14")](t[Jr("0x1")]),e=!0)}}}return e})),t[Jr("0x24")][Jr("0x41")](Jr("0x3d"))&&n[Jr("0x4c")](Jr("0x0"),((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x2")][Jr("0x3e")][Jr("0x5b")]);r[Jr("0x3c")](Jr("0x33"))!=s[Jr("0x33")]&&t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t[Jr("0x24")][Jr("0x41")](Jr("0x67"))&&n[Jr("0x4c")]("imageTextAlternative",((e,s)=>{const r=o[Jr("0x18")](t[Jr("0x2")].document[Jr("0x5b")]);(r.hasAttribute("alt")?r[Jr("0x3c")](Jr("0x73")):"")!=s[Jr("0x5")]&&t[Jr("0x2")][Jr("0x5d")]((()=>{n[Jr("0x4d")](r,{commandName:Jr("0x12"),commandParams:[s]})}))})),n[Jr("0x48")][Jr("0x5a")]((t=>{if(x[Jr("0x4b")]((({type:e,subType:n})=>t[Jr("0xc")]==e&&t[Jr("0x1e")]==n)))return t[Jr("0xf")]?{}:void 0})),n[Jr("0x48")][Jr("0x5a")]((t=>{if(Jr("0x51")==t.type||Jr("0x2f")==t[Jr("0xc")]){const e=t[Jr("0x21")]();if(e&&e.is("element",Jr("0x42")))return{type:Jr("0x51")==t.type?Jr("0x29"):Jr("0x6b"),element:e,quantity:1}}})),n._descriptionFactory[Jr("0x5a")]((t=>Jr("0x6d")==t[Jr("0xc")]&&Jr("0x6c")==t[Jr("0x1e")]?{type:"format",content:"Inline image to block image"}:Jr("0x6d")==t[Jr("0xc")]&&"convertBlockImageToInline"==t[Jr("0x1e")]?{type:Jr("0x66"),content:Jr("0x6e")}:void 0)),n[Jr("0x48")][Jr("0x5a")]((t=>{const{data:e}=t;if(e){if("imageStyle"==e.commandName){const t=e[Jr("0x54")][0].value;return n="side"===t?Yo(r,Jr("0x3a")):s[t]||t,{type:Jr("0x66"),content:Yo(r,Jr("0x3"),n)}}if(Jr("0x12")==e[Jr("0x50")]){const t=e[Jr("0x54")][0][Jr("0x5")];return t?{type:Jr("0x66"),content:Yo(r,Jr("0x20"),'"'+t+'"')}:{type:Jr("0x66"),content:Yo(r,Jr("0x6f"))}}if(Jr("0x0")==e[Jr("0x50")]){const t=e[Jr("0x54")][0][Jr("0x33")];return t?{type:Jr("0x66"),content:Yo(r,Jr("0x17"),t)}:{type:Jr("0x66"),content:Yo(r,Jr("0x11"))}}}var n}))}}const Zr=["afterInit","_descriptionFactory","plugins","get","getSelectedElement","*Format:* replace image URL","getContainedElement","formatBlock","commandName","document","TrackChangesEditing","enableCommand","locale","getSuggestionCallback","discard","handleReplaceImageCommand","editor","src","getSuggestions","Users","data","selection","source","commandParams","handleSuggestionDescription","ImageEditing","has","model","replaceImageSource","accept","_suggestionFactory","getAttribute","author","registerDescriptionCallback","registerCustomCallback"];var Yr,ti;Yr=Zr,ti=424,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{[ei("0x1f")](){if(!this[ei("0xc")].plugins[ei("0x16")](ei("0x15")))return;const t=this[ei("0xc")][ei("0x21")][ei("0x22")]("TrackChangesEditing");t[ei("0x7")](ei("0x18"),((t,e)=>this.handleReplaceImageCommand(t,e))),t._suggestionFactory[ei("0x1e")](ei("0x3"),"replaceImageSource",ei("0x19"),t._suggestionFactory[ei("0x9")]("formatBlock",null,ei("0xa"))),t[ei("0x1a")][ei("0x1e")]("formatBlock",ei("0x18"),ei("0xa"),t[ei("0x1a")][ei("0x9")](ei("0x3"),null,ei("0x19"))),t[ei("0x20")][ei("0x1d")]((t=>this[ei("0x14")](t)))}[ei("0xb")](t,e){const n=this.editor[ei("0x21")][ei("0x22")](ei("0x6")),o=this.editor[ei("0x17")][ei("0x5")][ei("0x11")][ei("0x0")]();this[ei("0xc")][ei("0x17")].change((()=>{let s=o[ei("0x1b")](ei("0xd"));const r=this[ei("0xc")].plugins[ei("0x22")](ei("0xf")).me;for(const t of n[ei("0xe")]({skipNotAttached:!0})){const e=t[ei("0x2")]();if(ei("0x18")===t.subType&&e===o){t[ei("0x1c")]!==r&&t[ei("0xa")](),s=t[ei("0x10")][ei("0x13")][0][ei("0x12")];break}}t(e),n.markBlockFormat(o,{commandName:ei("0x18"),commandParams:[{source:s}]},[],ei("0x18"))}))}[ei("0x14")](t){const{data:e}=t;if(e&&ei("0x18")===e[ei("0x4")]){const t=ei("0x1");return{type:"format",content:Yo(this[ei("0xc")][ei("0x8")],t)}}}}const oi=["_handleImportedData","bind","_setSuggestionData","importWord","collaboration_features","dataInsert","editor","value","lowest","_trackChangesValueDuringImport","forEach","plugins","execute","commands","get","_trackChangesExecuted","enableCommand","TrackChangesEditing","trackChanges","high","afterInit","listenTo"];var si,ri;si=oi,ri=446,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x3")]=!1,this[ii("0x9")]=!1}[ii("0xe")](){const t=this[ii("0x0")],e=t[ii("0x7")][ii("0x8")](ii("0x13")),n=t[ii("0x7")][ii("0x8")](ii("0xc"));e&&(e.on(ii("0x6"),((t,[,e])=>{this[ii("0x3")]=n[ii("0x1")],e[ii("0x14")].track_changes=!this[ii("0x3")]}),{priority:ii("0xd")}),this[ii("0xf")](e,"dataInsert",this[ii("0x10")][ii("0x11")](this)),this[ii("0xf")](e,ii("0x15"),(()=>{this[ii("0x9")]&&(n.execute(),this._trackChangesExecuted=!1)}),{priority:ii("0x2")}),t[ii("0x5")][ii("0x8")](ii("0xb"))[ii("0xa")](ii("0x13")))}[ii("0x10")](t,e){const{suggestions:n}=e,o=this[ii("0x0")][ii("0x7")].get(ii("0xc")),s=o[ii("0x1")];this[ii("0x3")]!==s&&(o[ii("0x6")](),this._trackChangesExecuted=!0),n&&n[ii("0x4")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this.editor[ii("0x5")][ii("0x8")]("Users").me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[ii("0x0")][ii("0x5")].get(ii("0xb"))[ii("0x12")](s)}))}}const ai=["from","commandName","plugins","markBlockFormat","TrackChangesEditing","enableCommand","afterInit","document","outdentBlock","format","*Indent:* %0","selection","IndentBlock","change","schema","getItemLabel","indent","get","editor","indentBlock","getSelectedBlocks","outdent","IndentEditing","model","checkAttribute","has"];var ci,li;ci=ai,li=145,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{[di("0x11")](){const t=this[di("0x3")],e=t[di("0xd")][di("0x2")](di("0xf"));t[di("0xd")][di("0xa")](di("0x7"))&&(e[di("0x10")](di("0x1")),e[di("0x10")](di("0x6")));const n=t.locale;if(t[di("0xd")][di("0xa")](di("0x17"))){for(const n of["indentBlock",di("0x13")])e[di("0x10")](n,(()=>{const o=Array[di("0xb")](this.editor[di("0x8")][di("0x12")][di("0x16")][di("0x5")]()).filter((t=>this[di("0x3")][di("0x8")][di("0x19")][di("0x9")](t,"blockIndent")));t.model[di("0x18")]((()=>{for(const t of o)e[di("0xe")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x4")})}))}));e._descriptionFactory.registerDescriptionCallback((t=>{const{data:o}=t;if(!o)return;if(di("0x4")!=o[di("0xc")]&&di("0x13")!=o.commandName)return;const s=t.getItems()[0],r=e._descriptionFactory[di("0x0")](s);return di("0x4")==o[di("0xc")]?{type:di("0x14"),content:Yo(n,di("0x15"),r)}:di("0x13")==o[di("0xc")]?{type:"format",content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["get","init","editor","plugins","TrackChangesEditing"];gi=fi,mi=439,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class bi extends t.Plugin{static get requires(){return[Ws.Input]}[hi("0x2")](){this[hi("0x3")][hi("0x4")][hi("0x1")](hi("0x0")).enableCommand("input")}}const pi=["getFirstPosition","document","change","_descriptionFactory","plugins","has","getAttribute","linkHref","commandParams","LinkEditing","format","from","link","locale","TrackChangesEditing","commandName","unlink","enableCommand","isCollapsed","model","afterInit","markInlineFormat","getRanges","registerDescriptionCallback","hasAttribute","get"];var Ei,_i;Ei=pi,_i=368,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return pi[t-=0]};class Ci extends t.Plugin{[Ti("0x10")](){const t=this.editor;if(!t[Ti("0x0")][Ti("0x1")](Ti("0x5")))return;const e=t.plugins[Ti("0x15")](Ti("0xa"));e[Ti("0xd")]("link",((n,o)=>{const s=t.model[Ti("0x17")].selection;let r=[];if(s[Ti("0xe")]){if(!s[Ti("0x14")](Ti("0x3")))return void n(o);{const e=(0,Ws.findAttributeRange)(s[Ti("0x16")](),Ti("0x3"),s[Ti("0x2")](Ti("0x3")),t.model);r=[e]}}else r=Array[Ti("0x7")](s[Ti("0x12")]());t[Ti("0xf")][Ti("0x18")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x8"),commandParams:[o]})}))})),e[Ti("0xd")](Ti("0xc"),(()=>{const n=this.editor[Ti("0xf")],o=n[Ti("0x17")].selection;n[Ti("0x18")]((()=>{let n=[];n=o[Ti("0xe")]?[(0,Ws.findAttributeRange)(o[Ti("0x16")](),Ti("0x3"),o.getAttribute(Ti("0x3")),t[Ti("0xf")])]:ms(Ti("0x3"),o.getFirstRange(),t[Ti("0xf")]);for(const t of n)e[Ti("0x11")](t,{commandName:"unlink",commandParams:[]})}))})),e[Ti("0x19")][Ti("0x13")]((e=>{const{data:n}=e,o=t[Ti("0x9")];if(n){if(Ti("0x8")==n[Ti("0xb")]){const t=n[Ti("0x4")][0];return{type:Ti("0x6"),content:Yo(o,"*Set link:* %0",'"'+t+'"')}}return Ti("0xc")==n[Ti("0xb")]?{type:Ti("0x6"),content:Yo(o,"*Remove link*")}:void 0}}))}}const yi=["getSelectedBlocks","checkChild","outdentList","getAttribute","afterInit","ELEMENT_LIST_ITEM","commands","_descriptionFactory","*Uncheck item*","value","filter","numbered","name","plugins","locale","from","checkTodoList","push","get","editor","nextSibling","todoList","execute","ListEditing","change","slice","model","ELEMENT_TODO_LIST","findIndex","enableCommand","createPositionAt","numberedList","blockName","_selectedElements","paragraph","selection","previousSibling","isObject","bulletedList","replace","length","markBlockFormat","document","listIndent","element","*Indent:* %0","add","todo","registerDescriptionCallback","forceValue","TrackChangesEditing","registerElementLabel","parent","todoListChecked","ELEMENT_BULLETED_LIST","indentList","listItem","TodoListEditing","has","format","schema","commandName","*Check item*","*Change to:* %0"];var ki,Ai;ki=yi,Ai=138,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return yi[t-=0]};class Ri extends t.Plugin{[vi("0x3a")](){const t=this[vi("0x9")],e=t[vi("0x4")];if(!t.plugins[vi("0x30")](vi("0xd")))return;const n=t[vi("0x3")].get(vi("0x28")),o=t[vi("0x3")].has(vi("0x2f"));function s(e){return()=>{const o=t.model[vi("0x20")][vi("0x19")],s=t[vi("0x3c")][vi("0x8")](e);if(s[vi("0x3f")])return void t[vi("0xc")](vi("0x18"),{});const r=e[vi("0xf")](0,-4),i=function(t,e,n){let o=Array[vi("0x5")](t)[vi("0x0")]((t=>{return e=t,(o=n)[vi("0x37")](e[vi("0x2a")],vi("0x2e"))&&!o[vi("0x1b")](e);var e,o}));o=o[vi("0x0")]((t=>!t.is(vi("0x22"),vi("0x2e"))||t.getAttribute("listType")!=e));const s=new Set;for(const t of o)t.is(vi("0x22"),vi("0x2e"))?s[vi("0x24")](Si(t)):s[vi("0x24")](t);return Array[vi("0x5")](s)}(o[vi("0x36")](),r,t[vi("0x10")][vi("0x32")]);t.model[vi("0xe")]((()=>{for(const t of i)n.markBlockFormat(t,{commandName:e,commandParams:[{forceValue:!s[vi("0x3f")]}],formatGroupId:vi("0x16")},Ii(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x5")](t);const n=e[vi("0x12")]((t=>vi("0x2e")!=t.name));return n>-1&&(e=e[vi("0xf")](0,n)),e}(t.model[vi("0x20")][vi("0x19")].getSelectedBlocks()),s=t[vi("0x10")].createRange(t[vi("0x10")][vi("0x14")](o[0],"before"),t.model[vi("0x14")](o[o[vi("0x1e")]-1],"end"));t[vi("0x10")][vi("0xe")]((()=>{n[vi("0x1f")](s,{commandName:e,commandParams:[],formatGroupId:vi("0x21")},function(t){const e=new Set;for(const n of t){let t=n[vi("0xa")];for(;t&&t[vi("0x39")]("listIndent")>n[vi("0x39")](vi("0x21"));)e[vi("0x24")](t),t=t.nextSibling}return Array[vi("0x5")](e)}(o))}))}}n[vi("0x13")]("numberedList",s(vi("0x15"))),n[vi("0x13")]("bulletedList",s(vi("0x1c"))),o&&n[vi("0x13")](vi("0xb"),s(vi("0xb"))),n[vi("0x13")]("indentList",r("indentList")),n[vi("0x13")](vi("0x38"),r("outdentList")),o&&n[vi("0x13")]("checkTodoList",(()=>{const e=t[vi("0x3c")].get("checkTodoList"),o=Array.from(e[vi("0x17")]);o[vi("0x0")]((t=>t[vi("0x39")](vi("0x2b"))!=e[vi("0x3f")])),t[vi("0x10")][vi("0xe")]((()=>{for(const t of o)n[vi("0x1f")](t,{commandName:vi("0x6"),commandParams:[{forceValue:!e[vi("0x3f")]}]})}))})),n[vi("0x3d")][vi("0x29")](vi("0x2e"),(t=>Yo(e,vi("0x3b"),t))),n[vi("0x3d")][vi("0x26")]((t=>{const{data:n}=t;if(n){if(vi("0x15")==n[vi("0x33")]||"bulletedList"==n[vi("0x33")]||vi("0xb")==n[vi("0x33")])switch(n.commandName[vi("0x1d")]("List","")){case"bulleted":return o(Yo(e,vi("0x2c")));case vi("0x1"):return o(Yo(e,"ELEMENT_NUMBERED_LIST"));case vi("0x25"):return o(Yo(e,vi("0x11")))}if(vi("0x2d")==n[vi("0x33")])return{type:vi("0x31"),content:Yo(e,vi("0x23"),Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x38")==n[vi("0x33")])return{type:vi("0x31"),content:Yo(e,"*Outdent:* %0",Yo(e,"ELEMENT_LIST_ITEM"))};if(vi("0x6")==n[vi("0x33")])return n.commandParams[0][vi("0x27")]?{type:vi("0x31"),content:Yo(e,vi("0x34"))}:{type:"format",content:Yo(e,vi("0x3e"))}}function o(t){return{type:vi("0x31"),content:Yo(e,vi("0x35"),t)}}}))}}function Si(t){const e=t[vi("0x39")]("listIndent");if(0==e)return t;let n=t;for(;t[vi("0x1a")]&&t.previousSibling.is("element","listItem");){const o=t[vi("0x1a")][vi("0x39")](vi("0x21"));if(o==e)n=t.previousSibling;else if(o<e)break;t=t[vi("0x1a")]}return n}function Ii(t){const e=[];if(t.is(vi("0x22"),vi("0x2e"))&&t[vi("0x39")](vi("0x21"))>0){let n=t[vi("0xa")];for(;n&&vi("0x2e")==n[vi("0x2")]&&n[vi("0x39")](vi("0x21"))==t.getAttribute(vi("0x21"));)e[vi("0x7")](n),n=n[vi("0xa")]}return e}const Li=["listReversed","forward","handleListStyleCommand","commandParams","filter","createPositionAt","getSiblingNodes","TrackChangesEditing","styles","getLastPosition","_LIST_","backward","markMultiRangeBlockFormat","registerDescriptionCallback","change","_getSuggestionBlocks","list.properties","format","model","length","numbered","config","selection","listStyle","listStart","enableCommand","_descriptionFactory","parent","getListTypeFromListStyleType","flat","element","toUpperCase","createRange","plugins","_getSuggestionBlocksForListStyle","handleListReversedCommand","afterInit","ListUtils","*Format:* set order to reversed","listType","listItem","handleDescriptions","bind","ListPropertiesEditing","map","unshift","editor","reversed","type","document","get","*Format:* set start index to %0","startIndex","before","getAttribute","getSelectedBlocks","from"];var Ni,Mi;Ni=Li,Mi=460,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x20")](){if(!this.editor[wi("0x1d")].has(wi("0x27")))return;const t=this[wi("0x2a")][wi("0x11")][wi("0x2e")](wi("0xc")),e=this.editor[wi("0x1d")][wi("0x2e")](wi("0x3"));t[wi("0x4")]&&e.enableCommand("listStyle",this[wi("0x37")].bind(this)),t[wi("0x2b")]&&e.enableCommand(wi("0x35"),this.handleListReversedCommand.bind(this)),t[wi("0x30")]&&e[wi("0x15")](wi("0x14"),this.handleListStartCommand[wi("0x26")](this)),e[wi("0x16")][wi("0x9")](this[wi("0x25")].bind(this))}[wi("0x37")](t,e={}){const n=this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x3")),o=this[wi("0x1e")]();this[wi("0x2a")][wi("0xe")].change((()=>{n[wi("0x8")](o,{commandName:wi("0x13"),commandParams:[{type:e.type}],formatGroupId:"listStyle"})}))}[wi("0x1f")](t,e={}){const n=this.editor.plugins[wi("0x2e")]("TrackChangesEditing"),o=this[wi("0xb")]((t=>t.is(wi("0x1a"),wi("0x24"))&&wi("0x10")===t.getAttribute(wi("0x23"))));if(o.length<1)return;const s=o[wi("0x28")]((t=>this[wi("0x2a")][wi("0xe")][wi("0x1c")](this[wi("0x2a")].model[wi("0x1")](t,wi("0x31")),this.editor[wi("0xe")][wi("0x1")](t,0))));this[wi("0x2a")].model.change((()=>{n[wi("0x8")](s,{commandName:wi("0x35"),commandParams:[{reversed:e.reversed}],formatGroupId:wi("0x35")})}))}handleListStartCommand(t,e={}){const n=this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x3")),o=this[wi("0xb")]((t=>t.is("element","listItem")&&wi("0x10")===t[wi("0x32")](wi("0x23"))));if(o[wi("0xf")]<1)return;const s=o[wi("0x28")]((t=>this[wi("0x2a")][wi("0xe")][wi("0x1c")](this.editor.model[wi("0x1")](t,wi("0x31")),this[wi("0x2a")][wi("0xe")][wi("0x1")](t,0))));this[wi("0x2a")][wi("0xe")][wi("0xa")]((()=>{n[wi("0x8")](s,{commandName:wi("0x14"),commandParams:[{startIndex:e[wi("0x30")]}],formatGroupId:wi("0x14")})}))}[wi("0x25")](t){const e=this[wi("0x2a")].locale,{data:n}=t;if(!n)return;let o,s;switch(n.commandName){case wi("0x13"):o="*Change to:* %0",s={type:wi("0xd"),content:Yo(e,o,Yo(e,this._getTranslationKeyForListStyle(n[wi("0x38")][0][wi("0x2c")])))};break;case wi("0x35"):o=n[wi("0x38")][0].reversed?wi("0x22"):"*Format:* set order to regular",s={type:wi("0xd"),content:Yo(e,o)};break;case wi("0x14"):o=wi("0x2f"),s={type:"format",content:Yo(e,o,n[wi("0x38")][0][wi("0x30")])}}return s}[wi("0x1e")](){var t,e,n,o;const s=this[wi("0x2a")].plugins[wi("0x2e")]("ListUtils");let r=Array.from(this[wi("0x2a")].model[wi("0x2d")][wi("0x12")].getSelectedBlocks());return(null===(t=r[0])||void 0===t?void 0:t.is("element",wi("0x24")))&&r[wi("0x29")](...s[wi("0x2")](this[wi("0x2a")][wi("0xe")][wi("0x2d")][wi("0x12")].getFirstPosition(),"backward")),(null===(e=r[r[wi("0xf")]-1])||void 0===e?void 0:e.is("element",wi("0x24")))&&r.push(...s.getSiblingNodes(this.editor[wi("0xe")][wi("0x2d")].selection[wi("0x5")](),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor.model[wi("0x2d")].selection.getFirstPosition())||void 0===n?void 0:n[wi("0x17")])||void 0===o?void 0:o.is(wi("0x1a"),wi("0x24")))&&(r=r.filter((t=>t.is(wi("0x1a"),"listItem")))),r}[wi("0xb")](t){const e=this[wi("0x2a")].plugins[wi("0x2e")](wi("0x21"));let n=Array[wi("0x34")](this[wi("0x2a")][wi("0xe")].document.selection[wi("0x33")]())[wi("0x0")](t).map((t=>{const n=this[wi("0x2a")][wi("0xe")][wi("0x1")](t,0);return[...e[wi("0x2")](n,wi("0x7")),...e[wi("0x2")](n,wi("0x36"))]}))[wi("0x19")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wi("0x2a")][wi("0x1d")][wi("0x2e")](wi("0x21"))[wi("0x18")](t)[wi("0x1b")]()+wi("0x6")+t[wi("0x1b")]().replace(/-/g,"_")}}const Fi=["_descriptionFactory","afterInit","MediaEmbedEditing","registerElementLabel","high","stop","plugins","conversion","media","createEmptyElement","options","ELEMENT_MEDIA","showSuggestionHighlights","mediaEmbed"];var Pi,Di;Pi=Fi,Di=402,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x5")](){const t=this.editor;if(!t[Bi("0xa")].has(Bi("0x6")))return;const e=t[Bi("0xa")].get("TrackChangesEditing"),n=t.locale;e.enableCommand(Bi("0x3")),e[Bi("0x4")][Bi("0x7")](Bi("0xc"),(t=>Yo(n,Bi("0x1"),t))),t[Bi("0xb")].for("dataDowncast").elementToElement({model:"media",view:(t,{writer:e,options:n})=>{if(n[Bi("0x2")])return e[Bi("0xd")]("div")},converterPriority:Bi("0x8")}),t.data.downcastDispatcher.on("attribute:url:media",((t,e,n)=>{n[Bi("0x0")][Bi("0x2")]&&t[Bi("0x9")]()}),{priority:Bi("0x8")})}}const Ui=["has","editor","enableCommand","plugins","afterInit","get","mention","MentionEditing"];var Gi,Hi;Gi=Ui,Hi=189,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Vi extends t.Plugin{[zi("0x7")](){const t=this[zi("0x4")];t.plugins[zi("0x3")](zi("0x2"))&&t[zi("0x6")][zi("0x0")]("TrackChangesEditing")[zi("0x5")](zi("0x1"))}}const Wi=["get","editor","_descriptionFactory","plugins","afterInit","enableCommand","has","PageBreakEditing","locale","registerElementLabel","ELEMENT_PAGE_BREAK","pageBreak","TrackChangesEditing"];var Ki,qi;Ki=Wi,qi=474,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const $i=function(t,e){return Wi[t-=0]};class Xi extends t.Plugin{[$i("0xb")](){const t=this[$i("0x8")];if(!t[$i("0xa")][$i("0x0")]($i("0x1")))return;t.plugins.get($i("0x6"))[$i("0xc")]($i("0x5"));const e=t.plugins[$i("0x7")]("TrackChangesEditing"),n=t[$i("0x2")];e[$i("0x9")][$i("0x3")]("pageBreak",(t=>Yo(n,$i("0x4"),t)))}}const Ji=["*Insert:* %0","markBlockFormat","insertion","consumable","checkChild","registerDescriptionCallback","editor","consume","TrackChangesEditing","paragraph","plugins","end","document","$text","markerRange","downcastDispatcher","getFirstRange","from","insert","addClass","Paragraph","selection","change","nodeAfter","enableCommand","editing","highest","isTouching","commandName","isBlock","parent","markerName","options","writer","insertParagraph","data","getSelectedBlocks","format","start","schema","mapper","model","filter","addMarker:suggestion:insertion","blockName","name","afterInit","get","_descriptionFactory","ELEMENT_PARAGRAPH","bindElementToMarker","isLimit","locale"];var Qi,Zi;Qi=Ji,Zi=126,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{[Yi("0x1a")](){const t=this[Yi("0x27")];if(!t[Yi("0x2b")].has(Yi("0x0")))return;const e=t[Yi("0x20")],n=t.plugins.get("TrackChangesEditing");n._descriptionFactory.registerElementLabel("paragraph",(t=>Yo(e,Yi("0x1d"),t))),n.enableCommand(Yi("0x2a"),((e,o={})=>{const s=t[Yi("0x15")][Yi("0x2d")],r=o[Yi("0x1")]||s[Yi("0x1")],i=Array[Yi("0x32")](r[Yi("0x10")]())[Yi("0x16")]((t=>{return e=t,(n=this[Yi("0x27")].model.schema)[Yi("0x25")](e[Yi("0xa")],"paragraph")&&!n.isObject(e)&&Yi("0x2a")!=e[Yi("0x19")];var e,n}));t[Yi("0x15")][Yi("0x2")]((()=>{for(const t of i)n[Yi("0x22")](t,{commandName:Yi("0x2a"),commandParams:[],formatGroupId:Yi("0x18")},fs(t))}))})),n[Yi("0x1c")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&Yi("0x2a")==n[Yi("0x8")])return{type:Yi("0x11"),content:Yo(e,"*Change to:* %0",Yo(e,Yi("0x1d")))}})),n[Yi("0x4")](Yi("0xe")),t[Yi("0x5")].downcastDispatcher.on("addMarker:suggestion:insertion",ex(t),{priority:Yi("0x6")}),t[Yi("0xf")][Yi("0x30")].on(Yi("0x17"),((e,n,o)=>{o[Yi("0xc")].showSuggestionHighlights&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0x6")});const o=n[Yi("0x1c")];o[Yi("0x26")]((n=>{if("insertion"!==n.type)return;const{start:s,end:r}=n[Yi("0x31")]();if(!s.isTouching(r)||!s.nodeAfter)return;const i=t[Yi("0x15")][Yi("0x13")],x=s.nodeAfter;return i[Yi("0x9")](x)&&!i.isLimit(x)&&i[Yi("0x25")](x,Yi("0x2e"))?{type:Yi("0x23"),content:Yo(e,Yi("0x21"),o.getItemLabel(x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x2b")][Yi("0x1b")](Yi("0x29")),i=o[Yi("0x2f")][Yi("0x12")],x=o[Yi("0x2f")][Yi("0x2c")],a=t.model[Yi("0x13")];if(!i[Yi("0x7")](x)||!i[Yi("0x3")])return;const c=i[Yi("0x3")];if(a[Yi("0x9")](c)&&!a[Yi("0x1f")](c)&&a.checkChild(c,Yi("0x2e"))){if(!s[Yi("0x24")][Yi("0x28")](o[Yi("0x2f")],n[Yi("0x19")]))return;const t=s[Yi("0xd")].createUIElement("span",{class:"ck-suggestion-marker-split"}),i=s[Yi("0x14")].toViewPosition(x);e&&r.activeMarkers.includes(o.markerName)&&s[Yi("0xd")][Yi("0x34")]("ck-suggestion-marker--active",t),s[Yi("0xd")][Yi("0x33")](i,t),s[Yi("0x14")][Yi("0x1e")](t,o[Yi("0xb")])}}}const nx=["removeFormat","isCollapsed","afterInit","getAttributes","editor","format","*Remove all formatting*","createRangeOn","selection","document","getAttributeProperties","schema","locale","getItems","isFormatting","model","enableCommand","_descriptionFactory","change","has","plugins","TrackChangesEditing","markInlineFormat","getRanges"];var ox,sx;ox=nx,sx=433,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x1")](){const t=this[rx("0x3")];if(!t.plugins[rx("0x12")]("RemoveFormatEditing"))return;const e=t[rx("0x13")].get(rx("0x14"));e[rx("0xf")]("removeFormat",(n=>{const o=t[rx("0xe")][rx("0x8")][rx("0x7")];o[rx("0x0")]?n():t[rx("0xe")][rx("0x11")]((()=>{const n=Array.from(o[rx("0x16")]());for(const o of n)for(const n of o[rx("0xc")]())xx(n,t[rx("0xe")][rx("0xa")])&&e[rx("0x15")](t[rx("0xe")][rx("0x6")](n),{commandName:rx("0x17"),commandParams:[]})}))})),e[rx("0x10")].registerDescriptionCallback((e=>{const{data:n}=e;if(n&&rx("0x17")==n.commandName)return{type:rx("0x4"),content:Yo(t[rx("0xb")],rx("0x5"))}}))}}function xx(t,e){for(const[n]of t[rx("0x2")]()){const t=e[rx("0x9")](n);if(t&&t[rx("0xd")])return!0}return!1}const ax=["get","goToNextRestrictedEditingException","acceptSelectedSuggestions","acceptSuggestion","has","discardSuggestion","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","trackChanges","editor","enableCommand","plugins","afterInit","discardAllSuggestions"];var cx,lx;cx=ax,lx=272,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{[dx("0x6")](){const t=this[dx("0x3")];if(!t.plugins[dx("0xc")](dx("0x1")))return;const e=t[dx("0x5")][dx("0x8")]("TrackChangesEditing");e[dx("0x4")](dx("0x0")),e[dx("0x4")](dx("0x9"));const n=t[dx("0x5")][dx("0x8")]("RestrictedEditingModeEditing");n[dx("0x4")](dx("0x2")),n[dx("0x4")](dx("0xb")),n[dx("0x4")](dx("0xd")),n.enableCommand("acceptAllSuggestions"),n[dx("0x4")](dx("0x7")),n.enableCommand(dx("0xa")),n[dx("0x4")]("discardSelectedSuggestions")}}const gx=["get","ELEMENT_LINE_BREAK","registerElementLabel","init","bindElementToMarker","editor","toViewPosition","TrackChangesEditing","downcastDispatcher","markerName","showSuggestionHighlights","span","ck-suggestion-marker-","high","writer","markerRange","shiftEnter","test","addMarker:suggestion","getItems","plugins","name","mapper","merge","includes","model","consumable","addClass","requires","element","createPositionBefore","deletion","insert","addMarker:suggestion:deletion","activeMarkers","locale","enableCommand","editing","softBreak","addMarker:suggestion:insertion"];var mx,fx;mx=gx,fx=167,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class bx extends t.Plugin{static get[hx("0x15")](){return[nr.ShiftEnter]}[hx("0x24")](){const t=this[hx("0x26")],e=t.plugins.get(hx("0x0"));e[hx("0x1d")](hx("0x9")),t[hx("0x1e")].downcastDispatcher.on(hx("0x20"),px(t),{priority:hx("0x6")}),t[hx("0x1e")].downcastDispatcher.on(hx("0x1a"),px(t),{priority:hx("0x6")}),t.data[hx("0x1")].on(hx("0xb"),((e,n,o)=>{o.options[hx("0x3")]&&px(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[hx("0x23")](hx("0x1f"),(e=>Yo(t[hx("0x1c")],hx("0x22"),e)))}}function px(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[hx("0xd")][hx("0x21")](hx("0x0"));if(!s[hx("0x13")][hx("0xa")](o[hx("0x8")],n[hx("0xe")]))return;const i=t[hx("0x12")];for(const t of o[hx("0x8")][hx("0xc")]()){if(!t.is(hx("0x16"),hx("0x1f")))continue;const n=hx("0x18")==o[hx("0x2")].split(":")[1]?hx("0x10"):"split",x=s.writer.createUIElement(hx("0x4"),{class:hx("0x5")+n}),a=s[hx("0xf")][hx("0x27")](i[hx("0x17")](t));e&&r[hx("0x1b")][hx("0x11")](o[hx("0x2")])&&s[hx("0x7")][hx("0x14")]("ck-suggestion-marker--active",x),s[hx("0x7")][hx("0x19")](a,x),s.mapper[hx("0x25")](x,o[hx("0x2")])}}}const Ex=["registerDescriptionCallback","forceValue","markInlineFormat","value","commandName","restrictedEditingException","commands","StandardEditingModeEditing","getRanges","get","document","from","has","locale","isCollapsed","selection","FORMAT_RESTRICTED_ENABLED","change","plugins","model","enableCommand","TrackChangesEditing"];var _x,Tx;_x=Ex,Tx=202,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const Cx=function(t,e){return Ex[t-=0]};class yx extends t.Plugin{afterInit(){const t=this.editor,e=t[Cx("0xf")],n=t[Cx("0x9")];if(!t.plugins[Cx("0x8")](Cx("0x3")))return;const o=t[Cx("0xe")].get(Cx("0x11")),s=Cx("0x1"),r=t[Cx("0x2")][Cx("0x5")](s);o[Cx("0x10")](s,((t,n={})=>{const i=e[Cx("0x6")][Cx("0xb")];if(i[Cx("0xa")])return void t(n);const x=void 0!==n[Cx("0x13")]?n[Cx("0x13")]:!r[Cx("0x15")];e[Cx("0xd")]((()=>{const t=Array[Cx("0x7")](i[Cx("0x4")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[Cx("0x14")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o._descriptionFactory[Cx("0x12")]((t=>{const{data:e}=t;if(e&&e[Cx("0x0")]==s)return e.commandParams[0][Cx("0x13")]?{type:"format",content:Yo(n,Cx("0xc"))}:{type:"format",content:Yo(n,"FORMAT_RESTRICTED_DISABLED")}}))}}const kx=["change","_getStyleDefinition","commandParams","forceValue","commandName","find","editor","getRanges","toLowerCase","element","getAttribute","isCollapsed","block","afterInit","TrackChangesEditing","Style","add","plugins","markInlineFormat","inline","registerDescriptionCallback","every","format","createRangeOn","style:","config","getDefinitionsForView","value","isBlock","get","enabledStyles","normalizeConfig","*Remove format:* %0","getAncestors","includes","style.definitions","from","getItems","selection","DataSchema","_getRangesWithClasses","push","model","classes","StyleUtils","style","*Format:* %0","markBlockFormat","name","styleName"];var Ax,vx;Ax=kx,vx=462,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Sx extends t.Plugin{[Rx("0x1")](){const t=this[Rx("0x2c")];if(!t[Rx("0x5")].has(Rx("0x3")))return;const e=t.commands[Rx("0x11")]("style"),n=t[Rx("0x5")].get(Rx("0x2")),o=t.locale,s=t[Rx("0x5")][Rx("0x11")](Rx("0x1b")),r=t[Rx("0x5")][Rx("0x11")](Rx("0x20"))[Rx("0x13")](s,t[Rx("0xd")].get(Rx("0x17")));n.enableCommand(Rx("0x21"),((o,{styleName:i})=>{const x=t[Rx("0x1e")].document[Rx("0x1a")],a=this[Rx("0x27")](i,r);if(!a)return;if(!e[Rx("0x12")][Rx("0x16")](i))return;if(x[Rx("0x31")]&&!a[Rx("0x10")])return void o({styleName:i});const c=!e[Rx("0xf")][Rx("0x16")](a.name);if(a.isBlock){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x15")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e.includes(o.name)){n[Rx("0x4")](o);break}}return n}(x.getSelectedBlocks(),a.modelElements);t[Rx("0x1e")][Rx("0x26")]((()=>{for(const t of e)n[Rx("0x23")](t,{commandName:Rx("0x21"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0xc")+i})}))}else{let e=Array.from(x[Rx("0x2d")]());if(!c){const n=Array[Rx("0x18")](s[Rx("0xe")](a[Rx("0x2f")],!1))[0][Rx("0x1e")],o=[];for(const s of e){const e=this[Rx("0x1c")](t[Rx("0x1e")],s,a[Rx("0x1f")],n);o[Rx("0x1d")](...e)}e=o}t.model[Rx("0x26")]((()=>{for(const t of e)n[Rx("0x6")](t,{commandName:"style",commandParams:[{styleName:i,forceValue:c}]})}))}})),n._descriptionFactory[Rx("0x8")]((t=>{const{data:e}=t;if(e&&Rx("0x21")===e[Rx("0x2a")])return e[Rx("0x28")][0][Rx("0x29")]?{type:Rx("0xa"),content:Yo(o,Rx("0x22"),e[Rx("0x28")][0][Rx("0x25")].toLowerCase())}:{type:"format",content:Yo(o,Rx("0x14"),e[Rx("0x28")][0][Rx("0x25")][Rx("0x2e")]())}}))}[Rx("0x27")](t,e){let n=e[Rx("0x0")].find((e=>e[Rx("0x24")]===t));return n||(n=e[Rx("0x7")][Rx("0x2b")]((e=>e[Rx("0x24")]===t))),n}[Rx("0x1c")](t,e,n,o){const s=[];for(const r of e[Rx("0x19")]()){const e=r[Rx("0x30")](o);e&&n[Rx("0x9")]((t=>e[Rx("0x1f")][Rx("0x16")](t)))&&s.push(t[Rx("0xb")](r))}return s}}const Ix=["options","type","TrackChangesEditing","markMultiRangeDeletion","document","oldRange","insertTableColumnLeft","join","discard","cell","addClass","classes","_getSuggestionCoords","table","has","tableRow","nodeAfter","first","name","_descriptionFactory","detach","maxColumn","removeClass","every","TableUtils","map","above","min","some","plugins","locale","fromRange","includes","add","model","afterInit","length","addMarker:suggestion","*Insert:* %0","insertTableColumnRight","tableCell","startsWith","suggestion","getRanges","_tablePostFixingSubtypes","$textProxy","toLowerCase","getChanges","ELEMENT_TABLE_COLUMN","ELEMENT_TABLE_ROW_WITH_TEXT","last","max","enableCommand","tablePaste","_suggestionFactory","_getCoordsForCells","getSelectionAffectedTableCells","push","showSuggestionHighlights","isTouching","hasAttribute","*Remove:* %0","change","_acceptFormatSuggestionCallbackFactory","colspan","from","values","removeTableRow","markMultiRangeInsertion","filter","ELEMENT_TABLE_WITH_TEXT","start","selectTableColumn","setSelection","deletion","MIN_SAFE_INTEGER","isArray","span","rootName","addRange","forceValue","end","editor","get","_setupColumnsRowsFixing","position","selectTableRow","insertTable","order","item","getColumnIndexes","isInContent","tableColumn","highest","$graveyard","_tableSuggestions","element","createTableWalker","_splitMarkerName","data","refresh","maxRow","ELEMENT_TABLE","removeTableColumn","createRangeIn","insertion","registerCustomCallback","getItems","getSuggestion","low","getCellLocation","substr","ELEMENT_TABLE_ROW","enqueueChange","differ","findAncestor","registerElementLabel","root","registerDescriptionCallback","accept","selection","createRangeOn","mapper","getFirstRange","ELEMENT_TABLE_COLUMN_WITH_TEXT","getAttribute","left","commands","subType","change:data","getContainedElement","execute","writer","minColumn"];var Lx,Nx;Lx=Ix,Nx=396,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Ix[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x32")]=["tableRow",Mx("0x62")],this._tableSuggestions=new Set}[Mx("0x29")](){const t=this[Mx("0x58")],e=t[Mx("0x28")].document.selection;if(!t[Mx("0x23")][Mx("0x14")]("TableEditing"))return;const n=t[Mx("0x24")],o=t[Mx("0x23")][Mx("0x59")](Mx("0x8")),s=t[Mx("0x23")][Mx("0x59")](Mx("0x1e"));o._descriptionFactory[Mx("0x7a")]("table",(t=>Yo(n,Mx("0x6c"),t))),this[Mx("0x5a")](),o[Mx("0x3a")](Mx("0x5d")),o[Mx("0x3a")](Mx("0x5c")),o[Mx("0x3a")](Mx("0x4e"));for(const n of["insertTableRowAbove","insertTableRowBelow"]){const r=t[Mx("0x85")][Mx("0x59")](n);o[Mx("0x3a")](n,(n=>{t[Mx("0x28")][Mx("0x44")]((t=>{n();const i=Mx("0x20")===r[Mx("0x5e")],x=s.getSelectionAffectedTableCells(e),a=s.getRowIndexes(x),c=i?a[Mx("0x17")]-1:a[Mx("0x38")]+1,l=x[0][Mx("0x79")](Mx("0x13")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d).map((e=>t.createRangeOn(e[Mx("0xf")])));o[Mx("0x4a")](u,"tableRow")}))}))}for(const n of[Mx("0xc"),Mx("0x2d")]){const r=t.commands[Mx("0x59")](n);o.enableCommand(n,(n=>{t[Mx("0x28")].change((t=>{n();const i=Mx("0x84")===r[Mx("0x5e")],x=s[Mx("0x3e")](e),a=s[Mx("0x60")](x),c=i?a.first-1:a[Mx("0x38")]+1,l=x[0][Mx("0x79")]("table"),d=s[Mx("0x67")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x47")](d)[Mx("0x1f")]((e=>t[Mx("0x7f")](e[Mx("0xf")])));o.markMultiRangeInsertion(u,"tableColumn")}))}))}for(const n of[Mx("0x49"),Mx("0x6d")]){const r=n[Mx("0x75")](11),i=r.toLowerCase(),x=i[Mx("0x75")](0,3)+Mx("0x53"),a=Mx("0x13")+r,c=Mx("0x21")+r,l=Mx("0x39")+r;o.enableCommand(n,(()=>{t[Mx("0x28")][Mx("0x44")]((t=>{const r=s[Mx("0x3e")](e),d=r[0][Mx("0x79")]("table");let u;if(Mx("0x49")==n){const t=s.getRowIndexes(r);u={startRow:t[Mx("0x17")],endRow:t[Mx("0x38")],includeAllSlots:!0}}else{const t=s[Mx("0x60")](r);u={startColumn:t[Mx("0x17")],endColumn:t.last,includeAllSlots:!0}}const g=s[Mx("0x67")](d,u),m=Array[Mx("0x47")](g)[Mx("0x1f")]((({cell:t})=>t)),f=Ox(m[Mx("0x4b")]((t=>t[Mx("0x42")](x)))),h=Ox(m[Mx("0x4b")]((t=>!t[Mx("0x42")](x))))[Mx("0x1f")]((e=>t[Mx("0x7f")](e))),b=o[Mx("0x9")](h,a);if(b&&(Mx("0x15")==b[Mx("0x0")]||Mx("0x62")==b[Mx("0x0")])){const e=this[Mx("0x12")](b);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n[Mx("0x83")](x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&b[Mx("0x55")](o)}}}))}))}function r(n){const o=Array.from(e[Mx("0x31")]())[Mx("0x1f")]((t=>i.LiveRange[Mx("0x25")](t)));t[Mx("0x28")][Mx("0x44")]((e=>{const s=e.batch;n=n[Mx("0x4b")]((t=>Mx("0x64")!=t[Mx("0x7b")][Mx("0x54")])),e.setSelection(n),t[Mx("0x85")][Mx("0x59")](Mx("0x49"))[Mx("0x6a")](),t.execute(Mx("0x49"),{forceDefaultExecution:!0}),t[Mx("0x28")][Mx("0x77")]((()=>{t[Mx("0x28")][Mx("0x77")](s,(t=>{const e=o[Mx("0x4b")]((t=>"$graveyard"!=t.root[Mx("0x54")]));e[Mx("0x2a")]>0&&t[Mx("0x4f")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Mx("0x28")][Mx("0x44")]((o=>{const s=Array[Mx("0x47")](e.getRanges()).map((t=>i.LiveRange[Mx("0x25")](t))),r=[];for(const t of n)for(const e of t[Mx("0x71")]({shallow:!0}))r.push(e);for(const e of r)Mx("0x64")!=e.root[Mx("0x54")]&&(o[Mx("0x4f")](o.createPositionAt(e,0)),t[Mx("0x85")][Mx("0x59")]("removeTableColumn")[Mx("0x6a")](),t[Mx("0x3")](Mx("0x6d"),{forceDefaultExecution:!0}));const x=s.filter((t=>Mx("0x64")!=t[Mx("0x7b")][Mx("0x54")]));x.length>0&&o.setSelection(x);for(const t of s)t[Mx("0x1a")]()}))}function c(t,e){return e[Mx("0x1d")]((e=>t[Mx("0x22")]((t=>t.end.isEqual(e.start)||e[Mx("0x57")].isEqual(t[Mx("0x4d")])))))}function l(t,e){return t[Mx("0x22")]((t=>e[Mx("0x22")]((e=>t[Mx("0x57")][Mx("0x41")](e[Mx("0x4d")])))))}t[Mx("0x69")].downcastDispatcher.on(Mx("0x2b"),((t,e,n)=>{if(!n[Mx("0x6")][Mx("0x40")])return;const o=e[Mx("0x5f")];if(!o)return;const s=n[Mx("0x80")].toViewElement(o);function r(t){return Array[Mx("0x52")](t)?t:[t]}s&&Mx("0x2e")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x4")],((t,e,n)=>n[Mx("0x10")](r(e.classes),t)),((t,e,n)=>n[Mx("0x1c")](r(e[Mx("0x11")]),t)))}),{priority:Mx("0x63")}),o._descriptionFactory.registerDescriptionCallback((t=>{if(Mx("0x6f")!=t.type&&Mx("0x50")!=t[Mx("0x7")])return;const e=t[Mx("0x2")]();if(null!=e&&e.is(Mx("0x66"),Mx("0x13"))){if(Mx("0x6f")==t.type){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")]));if(e[Mx("0x2a")])return{type:"insertion",content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x4c"),'"'+e[Mx("0xd")](" ")+'"'))}}if(Mx("0x50")==t[Mx("0x7")]){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")]));if(e[Mx("0x2a")])return{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x4c"),'"'+e[Mx("0xd")](" ")+'"'))}}}})),o[Mx("0x19")][Mx("0x7c")]((t=>{if(Mx("0x15")==t[Mx("0x0")]){const e=t[Mx("0x71")]().filter((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t[Mx("0x69")])),o=this[Mx("0x12")](t),s=o[Mx("0x6b")]-o.minRow+1;if(Mx("0x6f")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x37"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x76"),s))};if(Mx("0x50")==t[Mx("0x7")])return e.length?{type:Mx("0x50"),content:Yo(n,"*Remove:* %0",Yo(n,Mx("0x37"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x76"),s))}}if(Mx("0x62")==t[Mx("0x0")]){const e=t[Mx("0x71")]()[Mx("0x4b")]((t=>t.is(Mx("0x33"))))[Mx("0x1f")]((t=>t.data)),o=this[Mx("0x12")](t),s=o[Mx("0x1b")]-o[Mx("0x5")]+1;if(Mx("0x6f")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x82"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x6f"),content:Yo(n,Mx("0x2c"),Yo(n,Mx("0x36"),s))};if(Mx("0x50")==t[Mx("0x7")])return e[Mx("0x2a")]?{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x82"),[s,'"'+e[Mx("0xd")](" ")+'"']))}:{type:Mx("0x50"),content:Yo(n,Mx("0x43"),Yo(n,Mx("0x36"),s))}}})),o[Mx("0x3c")][Mx("0x70")](Mx("0x6f"),"tableRow",Mx("0xe"),r),o[Mx("0x3c")][Mx("0x70")](Mx("0x50"),Mx("0x15"),"accept",r),o[Mx("0x3c")][Mx("0x70")]("insertion","tableColumn","discard",a),o[Mx("0x3c")][Mx("0x70")]("deletion",Mx("0x62"),Mx("0x7d"),a),o[Mx("0x3c")][Mx("0x70")](Mx("0x6f"),"tableColumn",Mx("0xd"),c),o[Mx("0x3c")][Mx("0x70")](Mx("0x50"),Mx("0x62"),"join",c),o[Mx("0x3c")].registerCustomCallback(Mx("0x6f"),"tableRow",Mx("0xd"),l),o[Mx("0x3c")][Mx("0x70")]("deletion",Mx("0x15"),Mx("0xd"),l)}[Mx("0x45")](){const t=this[Mx("0x58")],e=t[Mx("0x28")][Mx("0xa")][Mx("0x7e")];return(n,o)=>{t[Mx("0x28")][Mx("0x44")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0x57")].nodeBefore;x&&x[0]&&!1===x[0][Mx("0x56")]&&(a=n[0][Mx("0x4d")][Mx("0x16")]);const c=s[Mx("0x6e")](a);if(Mx("0x64")==c.root.rootName)return;const l=Array[Mx("0x47")](e[Mx("0x31")]())[Mx("0x1f")]((t=>i.LiveRange[Mx("0x25")](t)));s.setSelection(c),t[Mx("0x85")][Mx("0x59")](r)[Mx("0x6a")](),x[Mx("0x3f")]({forceDefaultExecution:!0}),t[Mx("0x3")](r,...x);const d=l[Mx("0x4b")]((t=>"$graveyard"!=t.root[Mx("0x54")]));d[Mx("0x2a")]>0&&s[Mx("0x4f")](d);for(const t of l)t[Mx("0x1a")]()}))}}_getCoordsForCells(t){const e=this[Mx("0x58")][Mx("0x23")][Mx("0x59")](Mx("0x1e"));let n=Number.MAX_SAFE_INTEGER,o=Number[Mx("0x51")],s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x51")];for(const i of t){if("$graveyard"==i[Mx("0x7b")][Mx("0x54")])continue;const{row:t,column:x}=e[Mx("0x74")](i),a=i[Mx("0x42")]("rowspan")?i[Mx("0x83")]("rowspan")-1:0,c=i[Mx("0x42")](Mx("0x46"))?i.getAttribute(Mx("0x46"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this.editor,e=t.plugins.get(Mx("0x8")),n=t.plugins[Mx("0x59")](Mx("0x1e"));t.model[Mx("0xa")].on(Mx("0x1"),(()=>{const n=Array[Mx("0x47")](t[Mx("0x28")][Mx("0xa")][Mx("0x78")].getChangedMarkers());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x68")](t);if(Mx("0x30")!=n)continue;if(null!=o[Mx("0xb")])continue;const i=e[Mx("0x72")](s);this[Mx("0x32")][Mx("0x26")](r)&&this[Mx("0x65")][Mx("0x27")](i)}}),{priority:Mx("0x73")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t[Mx("0x79")](Mx("0x13")),i=n[Mx("0x74")](t);for(const e of this[Mx("0x65")]){const n=e.subType,x=n[Mx("0x2f")](Mx("0x3b")),a=n[Mx("0x75")](x?10:5),c=a[Mx("0x34")](),l=c[Mx("0x75")](0,3)+Mx("0x53"),d=Mx("0x21")+a,u=Mx("0x39")+a;if(!e[Mx("0x61")])continue;if(r!=e[Mx("0x81")]()[Mx("0x4d")][Mx("0x79")](Mx("0x13")))continue;if(e.isIntersectingWithRange(s))continue;const g=t.hasAttribute(l)?t[Mx("0x83")](l)-1:0,m=this[Mx("0x12")](e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e.addRange(s),o=!0)}return o};t[Mx("0x28")][Mx("0xa")].registerPostFixer((e=>{let n=!1;for(const s of t.model.document[Mx("0x78")][Mx("0x35")]())if("insert"==s.type)if(Mx("0x15")==s[Mx("0x18")])for(const t of s[Mx("0x5b")][Mx("0x16")].getChildren())n=n||o(t,e);else Mx("0x2e")==s[Mx("0x18")]&&(n=n||o(s[Mx("0x5b")][Mx("0x16")],e));return n}))}[Mx("0x12")](t){return this[Mx("0x3d")](t[Mx("0x31")]().map((t=>t[Mx("0x4d")][Mx("0x16")])))}}function Ox(t){return Array[Mx("0x47")](new Set(t)[Mx("0x48")]())}const Fx=["isInContent","has","cell","mergeTableCellLeft","mergeTableCellDown","mergeTableCellRight","_descriptionFactory","tableCell","isEnabled","push","findAncestor","getSelectionAffectedTableCells","accept","formatBlock","markBlockFormat","add","horizontally","length","setSelection","editor","author","get","type","document","_suggestionFactory","*Split cell:* horizontally","filter","createTableWalker","rootName","*Merge cells*","createRangeOn","detach","subType","markMultiRangeBlockFormat","getRanges","set:isEnabled","TableEditing","model","getFirstPosition","registerCustomCallback","mergeTableCellUp","plugins","getCellLocation","insertion","TableUtils","enableCommand","containsRange","getSuggestions","forceDefaultExecution","locale","change","return","format","selection","map","_tablePostFixingSubtypes","TrackChangesEditing","commandName","_isForcedDefaultExecutionBlock","commands","splitTableCellVertically","mergeTableCells","find","trackChanges","*Split cell:* vertically","splitTableCellHorizontally","value","_areMergableCells","element","fromRange","deletion","registerDescriptionCallback","direction","from","stop","table","refresh","size","requires","getAncestors"];var Px,Dx;Px=Fx,Dx=186,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x34")](){return[wx]}afterInit(){const t=this[Bx("0x49")],e=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")],n=t[Bx("0x17")];if(!t[Bx("0xf")][Bx("0x37")](Bx("0xa")))return;const o=t[Bx("0xf")][Bx("0x4b")]("TrackChangesEditing"),s=t[Bx("0xf")].get("TableUtils"),r=t[Bx("0xf")][Bx("0x4b")](wx);r[Bx("0x1d")][Bx("0x3f")](Bx("0x23")),o.enableCommand("mergeTableCells",(()=>{const e=s[Bx("0x41")](t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")]);t[Bx("0xb")][Bx("0x18")]((()=>{o[Bx("0x7")](e,{commandName:Bx("0x23"),commandParams:[]},[],"mergeTableCells")}))})),t[Bx("0x21")][Bx("0x4b")](Bx("0x23")).on("execute",((e,n)=>{t[Bx("0x21")][Bx("0x4b")](Bx("0x25")).value&&(n[Bx("0x47")]>0&&n[n[Bx("0x47")]-1]&&n[n.length-1][Bx("0x16")]||o[Bx("0x20")]||this._areSelectedCellsMergable()||e.stop())}),{priority:"highest"});for(const e of[Bx("0xe"),Bx("0x3b"),"mergeTableCellDown",Bx("0x39")]){const n=t[Bx("0x21")][Bx("0x4b")](e);o[Bx("0x13")](e,(()=>{const e=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")][Bx("0xc")]()[Bx("0x35")]()[Bx("0x24")]((t=>t.is("element","tableCell"))),s=n[Bx("0x28")];t[Bx("0xb")][Bx("0x18")]((()=>{o.markMultiRangeBlockFormat([e,s],{commandName:Bx("0x23"),commandParams:[]},[],"mergeTableCells")}))}))}for(const e of[Bx("0x22"),Bx("0x27")]){const n=t[Bx("0x21")][Bx("0x4b")](e);o.enableCommand(e,(()=>{const r=s.getSelectionAffectedTableCells(t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")])[0],i=r[Bx("0x40")](Bx("0x31")),{column:x,row:a}=s[Bx("0x10")](r);let c=[];if(Bx("0x46")==n[Bx("0x2e")]){const t=s[Bx("0x1")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[Bx("0x1c")]((t=>t[Bx("0x38")]))}else{const t=s[Bx("0x1")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x2f")](t)[Bx("0x1c")]((t=>t[Bx("0x38")]))}t[Bx("0xb")].change((t=>{o[Bx("0x44")](t[Bx("0x4")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3c")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return Bx("0x23")==e[Bx("0x1f")]?{type:"format",content:Yo(n,Bx("0x3"))}:void 0})),o[Bx("0x3c")][Bx("0x2d")]((t=>{const{data:e}=t;if(e)return Bx("0x22")==e[Bx("0x1f")]?{type:"format",content:Yo(n,Bx("0x26"))}:Bx("0x27")==e.commandName?{type:Bx("0x1a"),content:Yo(n,Bx("0x4f"))}:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of[Bx("0xe"),Bx("0x3b"),Bx("0x3a"),"mergeTableCellLeft"])o[Bx("0x4e")][Bx("0xd")](Bx("0x43"),t,Bx("0x42"),x);for(const t of[Bx("0x22"),"splitTableCellHorizontally"])o[Bx("0x4e")][Bx("0xd")]("formatBlock",t,Bx("0x42"),x);o[Bx("0x4e")][Bx("0xd")](Bx("0x43"),"mergeTableCells",Bx("0x42"),(n=>{t[Bx("0xb")][Bx("0x18")]((o=>{const s=Array[Bx("0x2f")](e[Bx("0x8")]())[Bx("0x1c")]((t=>i.LiveRange[Bx("0x2b")](t)));o[Bx("0x48")](n),t[Bx("0x21")][Bx("0x4b")](Bx("0x23"))[Bx("0x32")](),t.execute(Bx("0x23"),{forceDefaultExecution:!0});const r=s[Bx("0x0")]((t=>"$graveyard"!=t.root[Bx("0x2")]));r.length>0&&o[Bx("0x48")](r);for(const t of s)t[Bx("0x5")]()}))}));for(const e of["mergeTableCellUp","mergeTableCellDown",Bx("0x39"),Bx("0x3b")]){const n=t[Bx("0x21")].get(e);n.on(Bx("0x9"),((e,o,s)=>{if(s){const o=t[Bx("0xb")][Bx("0x4d")][Bx("0x1b")][Bx("0xc")]()[Bx("0x35")]()[Bx("0x24")]((t=>t.is(Bx("0x2a"),Bx("0x3d"))));this[Bx("0x29")](n.value,o)||(e[Bx("0x19")]=!1,e[Bx("0x30")]())}}),{priority:"low"})}}_areSelectedCellsMergable(){const t=this.editor.commands.get(Bx("0x23")),e=this[Bx("0x49")][Bx("0xf")][Bx("0x4b")](Bx("0x12"));if(!t[Bx("0x3e")])return!1;const n=e[Bx("0x41")](this.editor[Bx("0xb")][Bx("0x4d")][Bx("0x1b")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x29")](t,e))return!1;return!0}[Bx("0x29")](t,e){const n=this[Bx("0x49")].plugins[Bx("0x4b")](Bx("0x1e")),o=this[Bx("0x49")][Bx("0xb")][Bx("0x4")](t),s=this[Bx("0x49")][Bx("0xb")][Bx("0x4")](e),r=new Set,i=new Set;for(const t of n[Bx("0x15")]())if((Bx("0x11")==t[Bx("0x4c")]||Bx("0x2c")==t.type||Bx("0x23")==t[Bx("0x6")])&&t[Bx("0x36")])for(const e of t.getRanges())e[Bx("0x14")](o,!0)&&r[Bx("0x45")](t.type+":"+t[Bx("0x4a")].id),e[Bx("0x14")](s,!0)&&i[Bx("0x45")](t[Bx("0x4c")]+":"+t.author.id);if(r[Bx("0x33")]!=i[Bx("0x33")])return!1;for(const t of r)if(!i.has(t))return!1;return!0}}const Ux=["index","nodeAfter","getColumnIndexes","data-suggestion","_suggestionFactory","registerDescriptionCallback","removeMarker:suggestion","first","locale","consumable","writer","end","formatBlock","getChild","findAncestor","headingRows","setTableRowHeader","removeAttribute","options","_descriptionFactory","plugins","setTableColumnHeader","editing","ck-suggestion-marker--active","includes","getSuggestion","getAttribute","childCount","commandName","selection","_splitMarkerName","removeClass","markerName","value","headingColumns","addMarker:suggestion","TableUtils","commandParams","showSuggestionHighlights","createPositionAfter","getCellLocation","TableEditing","ck-suggestion-marker-","*Format:* %0","format","setAttribute","highest","markBlockFormat","data","markerRange","markerNameToElements","afterInit","createRange","createPositionBefore","FORMAT_HEADER_ROW","model","parent","has","mapper","commands","registerCustomCallback","change","unbindElementFromMarkerName","_acceptFormatSuggestionCallbackFactory","document","table","addClass","downcastDispatcher","accept","getRowIndexes","enableCommand","FORMAT_HEADER_COLUMN","start","get","forceValue","createTableWalker","cell","FORMAT_REGULAR_ROW","getSelectionAffectedTableCells"];var Gx,Hx;Gx=Ux,Hx=277,function(t){for(;--t;)Gx.push(Gx.shift())}(++Hx);const zx=function(t,e){return Ux[t-=0]};class Vx extends t.Plugin{static get requires(){return[wx]}[zx("0xb")](){const t=this.editor;if(!t[zx("0x3b")][zx("0x11")](zx("0x1")))return;const e=t[zx("0x2f")],n=t[zx("0x3b")][zx("0x21")]("TrackChangesEditing"),o=t[zx("0x3b")][zx("0x21")]("TableUtils"),s=t[zx("0x3b")][zx("0x21")](wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n[zx("0x45")](r[zx("0x47")]),c=n[zx("0x40")](a);if(!c[zx("0x8")]||zx("0x3c")!=c[zx("0x8")][zx("0x43")])return;if(r.item)return void s.stop();if(!i[zx("0x30")].consume(r[zx("0x9")],s.name))return;const l=r.markerRange[zx("0x20")][zx("0x28")],d=r[zx("0x9")][zx("0x32")].nodeBefore,u=l.parent[zx("0x10")],{column:g}=o[zx("0x0")](l),{column:m}=o[zx("0x0")](d);for(let s=g;s<=m;s++){const c=o[zx("0x23")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o.cell,c=i[zx("0x12")].toViewElement(s);i.writer[zx("0x1a")]("ck-suggestion-marker-"+x,c),e&&i.writer[zx("0x5")](zx("0x2a"),a,c),i[zx("0x12")].bindElementToMarker(c,r[zx("0x47")]),t&&(n.activeMarkers[zx("0x3f")](r[zx("0x47")])?i[zx("0x31")].addClass(zx("0x3e"),c):i[zx("0x31")][zx("0x46")](zx("0x3e"),c))}}}}n[zx("0x1e")](zx("0x37"),((e,s)=>{const r=o[zx("0x26")](t[zx("0xf")].document[zx("0x44")]),i=o[zx("0x1d")](r),x=r[0].findAncestor(zx("0x19")),a=x[zx("0x41")](zx("0x36"))||0,c=s&&null!==s[zx("0x22")]?s.forceValue:!t[zx("0x13")][zx("0x21")]("setTableRowHeader").value,l=c?i.last:i[zx("0x2e")],d=x.getChild(l);let u;if(c){const e=x.getChild(a);if(d.index<e[zx("0x27")])return;u=t[zx("0xf")][zx("0xc")](t[zx("0xf")][zx("0xd")](e.getChild(0)),t[zx("0xf")][zx("0x4e")](d[zx("0x34")](d[zx("0x42")]-1)))}else{const e=x[zx("0x34")](a-1);if(!e)return;u=t[zx("0xf")].createRange(t.model[zx("0xd")](d[zx("0x34")](0)),t[zx("0xf")].createPositionAfter(e[zx("0x34")](e[zx("0x42")]-1)))}t.model[zx("0x15")]((()=>{n.markBlockFormat(u,{commandName:zx("0x37"),commandParams:[{forceValue:c}]},[],"setTableRowHeader")}))})),n[zx("0x1e")](zx("0x3c"),((e,o)=>{const s=t[zx("0x3b")][zx("0x21")](zx("0x4b")),r=s.getSelectionAffectedTableCells(t.model[zx("0x18")][zx("0x44")]),i=s[zx("0x29")](r),x=r[0][zx("0x35")](zx("0x19")),a=x[zx("0x41")](zx("0x49"))||0,c=o&&null!==o.forceValue?o[zx("0x22")]:!t[zx("0x13")][zx("0x21")](zx("0x3c"))[zx("0x48")];let l;const d=x[zx("0x34")](0),u=c?i.last:i[zx("0x2e")],g=s[zx("0x23")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0x24")];if(c){const e=d[zx("0x34")](a);if(m.isBefore(e))return;l=t[zx("0xf")][zx("0xc")](t[zx("0xf")][zx("0xd")](e),t.model.createPositionAfter(m))}else{const e=d.getChild(a-1);if(!e)return;l=t[zx("0xf")].createRange(t[zx("0xf")][zx("0xd")](m),t.model[zx("0x4e")](e))}t.model[zx("0x15")]((()=>{n[zx("0x7")](l,{commandName:zx("0x3c"),commandParams:[{forceValue:c}]},[],zx("0x3c"))}))})),t[zx("0x3d")][zx("0x1b")].on("addMarker:suggestion",r(),{priority:zx("0x6")}),t[zx("0x8")][zx("0x1b")].on(zx("0x4a"),((t,e,n)=>{n[zx("0x39")][zx("0x4d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:zx("0x6")}),t.editing[zx("0x1b")].on(zx("0x2d"),((t,e,o)=>{const{type:s,id:r}=n._splitMarkerName(e[zx("0x47")]),i=n[zx("0x40")](r);if(!i[zx("0x8")]||zx("0x3c")!=i[zx("0x8")][zx("0x43")])return;const x=o[zx("0x12")][zx("0xa")](e[zx("0x47")]);if(x)for(const t of x)o[zx("0x31")][zx("0x46")](zx("0x2")+s,t),o.writer.removeClass("ck-suggestion-marker--active",t),o[zx("0x31")][zx("0x38")](zx("0x2a"),t),o[zx("0x12")][zx("0x16")](t,e.markerName)}),{priority:zx("0x6")}),n[zx("0x3a")][zx("0x2c")]((t=>{const{data:n}=t;if(n){if(zx("0x37")==n[zx("0x43")]){const t=n[zx("0x4c")][0][zx("0x22")];return o(Yo(e,zx(t?"0xe":"0x25")))}if("setTableColumnHeader"==n[zx("0x43")]){const t=n[zx("0x4c")][0].forceValue;return o(Yo(e,t?zx("0x1f"):"FORMAT_REGULAR_COLUMN"))}}function o(t){return{type:zx("0x4"),content:Yo(e,zx("0x3"),t)}}}));const i=s[zx("0x17")]();n[zx("0x2b")].registerCustomCallback(zx("0x33"),zx("0x37"),zx("0x1c"),i),n[zx("0x2b")][zx("0x14")](zx("0x33"),zx("0x3c"),zx("0x1c"),i)}}const Wx=["getRows","tableCellBorderWidth","removeRows","conversion","high","cells","getRowIndexes","plugins","editor","markMultiRangeInsertion","getContainedElement","insert","insertColumns","document","first","suggestion","deletionRanges","registerCustomCallback","showSuggestionHighlights","markerName","setAttributes","tableCellSuggestion","tablePasteCell","locale","columnInsertionIndexes","_suggestionFactory","rowInsertionIndexes","getSelectionAffectedTableCells","markerToHighlight","redo","change","length","createTableWalker","rootName","position","set","view","registerDescriptionCallback","keys","tablePasteRow","getChanges","find","findAncestor","TrackChangesEditing","element","tablePaste","setAttribute","root","_descriptionFactory","tableCellBorderStyle","content","value","startsWith","markMultiRangeDeletion","has","row","type","getSuggestions","tableCellPadding","isEmpty","createRangeIn","for","suggestionUnloaded","trackChanges","containsRange","columns","isEqual","tableCellHorizontalAlignment","suggestionLoaded","unwrap","model","getAllAdjacentSuggestions","column","includes","getTableIfOnlyTableInContent","_tablePostFixingSubtypes","end","*Replace table cells*","markers","removeColumns","from","entries","requires","nodeAfter","commands","fromEntries","getSuggestionCallback","createElement","getSuggestion","paragraph","wrap","push","tableCell","accept","editing","getChangedMarkers","suggestion:formatBlock:tablePasteCell","discard","_replaceTableSlotCell","tableCellVerticalAlignment","filter","oldRange","ck-suggestion-marker--active","start","insertContent","getShiftedBy","removeMarker","getItems","tablePasteChainId","endColumn","table","TableClipboard","cell","add","previousSibling","get","differ","nextSibling","formatBlock","remove","getColumns","createRangeOn","getAttributes","join","dataDowncast","tableCellBackgroundColor","forceDefaultExecution","getRange","attributes","insertion","ck-suggestion-marker-insertion","documentSelection","Users","map","insertRows","suggestion-td","markerAttributes","move","removeMarkers","stop","rows","clipboardOutput","getMarkers","newRange","getChildren","elementToElement","ck-suggestion-marker","insertionRanges","activeMarkers","return","subType","last","listenTo","name","reduce","author","fill","registerPostFixer","deletion","low","selection","getChild","isInContent","options"];var Kx,qx;Kx=Wx,qx=204,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const $x=function(t,e){return Wx[t-=0]},Xx=[$x("0x7d"),"tableCellBorderColor",$x("0x9"),$x("0x1b"),$x("0x3b"),$x("0x55"),$x("0x12")],Jx=Object[$x("0x2d")](Xx[$x("0x5d")]((t=>[t,null])));class Qx extends t.Plugin{static get[$x("0x2a")](){return[wx]}afterInit(){const t=this[$x("0x84")];if(!t[$x("0x83")][$x("0xe")]($x("0x47")))return;const n=t[$x("0x83")][$x("0x4b")]($x("0x3")),o=t.plugins[$x("0x4b")]("TableUtils"),s=t.plugins[$x("0x4b")](wx),r=t[$x("0x83")][$x("0x4b")]("TableClipboard");s[$x("0x23")][$x("0x33")]($x("0xa3"),"tablePasteColumn"),t.model.schema.register("tableCellSuggestion",{allowIn:$x("0x34"),allowContentOf:$x("0x34"),isLimit:!0}),t[$x("0x7f")][$x("0x69")]({model:$x("0x91"),view:$x("0x5f")});let i=null;t[$x("0x1e")].on($x("0x40"),((s,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[$x("0x56")]||n._isForcedDefaultExecutionBlock||this[$x("0x84")][$x("0x2c")].get($x("0x17"))[$x("0xb")]&&function(t,e,n,o,s){if(e&&!e.is($x("0x5b")))return!1;const r=s[$x("0x22")](t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o[$x("0x97")](n[$x("0x89")][$x("0x78")]);if(!i[$x("0x9b")])return!1;const x=i[0][$x("0x2")]($x("0x46")),a=o[$x("0x82")](i),c=o.getColumnIndexes(i),l={startRow:a[$x("0x8a")],endRow:a[$x("0x6f")],startColumn:c[$x("0x8a")],endColumn:c.last};return 1==i[$x("0x9b")]&&(l.endRow+=o[$x("0x7c")](r)-1,l[$x("0x45")]+=o[$x("0x50")](r)-1),Yx(x,l,o)}(a,c,t[$x("0x1e")],o,r)&&(s[$x("0x63")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[$x("0x1e")][$x("0x9a")]((()=>{t[$x("0x1e")][$x("0x40")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:s,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=i;s.length&&n[$x("0x85")](s,$x("0xa3"),{tablePasteChainId:o}),r.length&&n.markMultiRangeInsertion(r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[$x("0x85")](a,$x("0x5"),{tablePasteChainId:o,skipNestingCheck:!0}),c[$x("0x9b")]&&n[$x("0xd")](c,$x("0x5"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n.markMultiRangeBlockFormat(l[$x("0x5d")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],$x("0x92"),{tablePasteChainId:o});if(d){const e=d[$x("0x66")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[$x("0x1e")].createRangeOn(o),i=e[$x("0x1")]((t=>t[$x("0x57")]()[$x("0x1a")](r)));i&&n[$x("0x33")]([i[$x("0x71")],s])}n[$x("0x9b")]&&d[$x("0x6")]($x("0x60"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[$x("0x80")]+10}),t[$x("0x83")][$x("0x4b")]("TableClipboard").on($x("0x3a"),((t,e)=>{const[n,o,,s]=e;if(!i)return;t[$x("0x63")]();const r=n[$x("0x48")],x=o,a=Zx(r),c=Zx(x);t[$x("0x6d")]=r;let l=null,d=null;if(c||a)if(a&&!c){s.remove(r[$x("0x79")](0));for(const t of Array[$x("0x28")](x[$x("0x68")]()))s[$x("0x87")](t,r,$x("0x24"));const t=i.rowInsertionIndexes[$x("0x21")](n[$x("0xf")]),e=i[$x("0x94")][$x("0x21")](n[$x("0x20")]);t||e||(l=s[$x("0x14")](r))}else c&&!a&&(d=s[$x("0x14")](r));else{const t=s[$x("0x2f")]($x("0x91")),e=s[$x("0x2f")]($x("0x91"));s[$x("0x32")](s[$x("0x14")](r),e),s[$x("0x87")](t,r,0);for(const e of Array.from(x.getChildren()))s[$x("0x87")](e,t,"end");l=s[$x("0x51")](t),d=s.createRangeOn(e)}const u=Array.from(x[$x("0x52")]())[$x("0x3c")]((([t])=>Xx[$x("0x21")](t)));i[$x("0x81")][$x("0x33")]({element:r,attributes:u[$x("0x9b")]?Object[$x("0x2d")](u):null}),l&&i[$x("0x6b")][$x("0x33")](l),d&&i[$x("0x8c")][$x("0x33")](d)}),{priority:"high"}),o.on($x("0x88"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x19")]||1;i[$x("0x94")]=new Array(a).fill(x)[$x("0x5d")](((t,e)=>t+e));for(const{cell:e}of o[$x("0x9c")](s,{startColumn:x,endColumn:x+a-1}))i.columnInsertionRanges.push(t[$x("0x1e")][$x("0x51")](e))}),{priority:$x("0x77")}),o.on($x("0x5e"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[$x("0x64")]||1;i[$x("0x96")]=new Array(a)[$x("0x74")](x).map(((t,e)=>t+e));for(const{cell:e}of o[$x("0x9c")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[$x("0x33")](t[$x("0x1e")][$x("0x51")](e))}),{priority:$x("0x77")}),n[$x("0x8")][$x("0xa1")]((e=>{if(e[$x("0x6e")]&&e[$x("0x6e")][$x("0xc")]($x("0x5")))return e.previous?{}:{type:$x("0x59"),content:Yo(t[$x("0x93")],$x("0x25"))}}));const x=()=>{};for(const t of["tablePaste","tablePasteColumn",$x("0xa3"),$x("0x92")])n[$x("0x95")][$x("0x8d")]($x("0x59"),t,$x("0x53"),x),n[$x("0x95")].registerCustomCallback($x("0x76"),t,$x("0x53"),x);n[$x("0x95")][$x("0x8d")]("formatBlock",$x("0x92"),"discard",x),n[$x("0x95")][$x("0x8d")]($x("0x4e"),"tablePasteCell",$x("0x35"),((e,n,o)=>{const s=e[$x("0x5d")]((t=>t.getContainedElement())).filter((t=>t)),r=new Map(s[$x("0x5d")]((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i[$x("0x81")])e&&r[$x("0x9f")](t,e);else if(o&&o[$x("0x60")])for(const[e,n]of Object[$x("0x29")](o.markerAttributes)){const o=t[$x("0x1e")][$x("0x26")][$x("0x4b")](e),s=o?o[$x("0x57")]().getContainedElement():null;s&&r[$x("0x9f")](s,n)}t[$x("0x1e")][$x("0x9a")]((t=>{for(const[e,n]of r)t[$x("0x90")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[$x("0x95")][$x("0x8d")](e,$x("0x5"),o,((s,r,i)=>{t[$x("0x1e")].change((t=>{const x=[];for(const t of s){const e=t[$x("0x3f")][$x("0x2b")];e.is("element",$x("0x91"))&&x[$x("0x33")](e)}n[$x("0x95")][$x("0x2e")](e,null,o)(s,r,i);for(const e of x)"$graveyard"!=e[$x("0x7")][$x("0x9d")]&&t.unwrap(e)}))}))};a($x("0x59"),"accept"),a($x("0x59"),$x("0x39")),a($x("0x76"),"accept"),a($x("0x76"),$x("0x39")),n[$x("0x95")][$x("0x8d")]("insertion",$x("0xa3"),$x("0x39"),(t=>{const e=t[$x("0x5d")]((t=>t[$x("0x86")]())),n=e[0].findAncestor($x("0x46")),{minRow:r,maxRow:i}=s._getCoordsForCells(e);o[$x("0x7e")](n,{at:r,rows:i-r+1})})),n[$x("0x95")][$x("0x8d")]($x("0x59"),"tablePasteColumn","discard",(t=>{const e=t.map((t=>t[$x("0x86")]())),n=e[0][$x("0x2")]("table"),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[$x("0x27")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e.subType||!e[$x("0x6e")][$x("0xc")]("tablePaste"))return;const o=e[$x("0x58")][$x("0x44")],s=n[$x("0x11")]().filter((t=>t.isInContent&&t[$x("0x58")]&&t[$x("0x58")][$x("0x44")]==o));s[$x("0x9b")]&&e[$x("0x1f")]()[$x("0x9b")]!=s[$x("0x9b")]&&s[$x("0x72")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n._splitMarkerName(t[$x("0x8f")]),s=[$x("0x6a"),$x("0x5a")],r=n[$x("0x6c")][$x("0x21")](t.markerName);return r&&s[$x("0x33")]($x("0x3e")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on($x("0x1c"),c,{priority:"high"}),n.on($x("0x16"),c,{priority:$x("0x80")}),t.model.document[$x("0x75")]((()=>{let e=!1;const o=Array[$x("0x28")](t[$x("0x1e")].document[$x("0x4c")][$x("0x37")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n._splitMarkerName(s);if($x("0x8b")!=o||"deletion"!=i||r[$x("0x3d")])continue;if(!n.hasSuggestion(x))continue;const a=n[$x("0x30")](x).getRanges(),c=t.plugins[$x("0x4b")]($x("0x5c")).me;for(const t of n[$x("0x11")]())if(t[$x("0x7a")]&&t[$x("0x73")]==c&&$x("0x4e")==t[$x("0x10")]&&"tablePasteCell"==t[$x("0x6e")]&&t.getRanges().every((t=>a.some((e=>e[$x("0x18")](t,!0))))))for(const n of t[$x("0x1f")]())n[$x("0x7a")]&&(n.discard(),e=!0)}return e})),t.model.document[$x("0x75")]((e=>{const o=t[$x("0x2c")][$x("0x4b")]($x("0x99"));if(!o||!o._createdBatches[$x("0xe")](e.batch))return!1;let s=!1;const r=t[$x("0x83")][$x("0x4b")]($x("0x5c")).me,i=t[$x("0x1e")][$x("0x89")][$x("0x4c")][$x("0x0")](),x=Array[$x("0x28")](t[$x("0x1e")][$x("0x89")].differ.getChangedMarkers())[$x("0x3c")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return $x("0x8b")==o&&$x("0x5")==s&&i==r.id&&!e.oldRange}));for(const t of i){if($x("0x87")!=t[$x("0x10")]||"tableCellSuggestion"!=t[$x("0x71")]||1!=t.length)continue;const n=e.createRange(t[$x("0x9e")],t[$x("0x9e")][$x("0x41")](1));if(!x[$x("0x1")]((({data:t})=>t[$x("0x67")].isEqual(n))))for(const{name:t,data:o}of x)if(n[$x("0x18")](o[$x("0x67")])){e.updateMarker(t,{range:n}),s=!0;break}}return s})),t[$x("0x1e")][$x("0x89")][$x("0x75")]((e=>{let o=!1;const s=t[$x("0x83")][$x("0x4b")]($x("0x5c")).me,r=n[$x("0x11")]()[$x("0x3c")]((t=>t.isInContent&&t[$x("0x73")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[$x("0x6e")])for(const e of t.getMarkers()){const n=e[$x("0x57")]()[$x("0x86")]();if(n)if(n.is("element",$x("0x91"))&&Zx(n)){t[$x("0x42")](e[$x("0x71")]),i.add(n),o=!0;const s=n[$x("0x4d")],r=n[$x("0x4a")],a=s&&s.is($x("0x4"),$x("0x91")),c=r&&r.is($x("0x4"),$x("0x91"));a&&!i[$x("0xe")](s)&&x[$x("0x49")](s),c&&!i[$x("0xe")](r)&&x[$x("0x49")](r)}else n.is($x("0x4"),$x("0x31"))&&n[$x("0x13")]&&(t[$x("0x42")](e.name),o=!0)}else if("tablePasteCell"==t.subType){if(!t[$x("0x58")]||!t[$x("0x58")][$x("0x44")])continue;const e=t[$x("0x58")][$x("0x60")];if(e&&Object[$x("0xa2")](e)[$x("0x9b")])continue;const n=t.attributes[$x("0x44")];let s=!0,i=!0;for(const e of r)if(e[$x("0x6e")]&&e[$x("0x6e")][$x("0xc")]($x("0x5"))){if(!e[$x("0x58")].tablePasteChainId){i=!1;break}if(e.id!=t.id&&e[$x("0x58")][$x("0x44")]==n){s=!1;break}}i&&s&&(t[$x("0x62")](),o=!0)}for(const t of i)e[$x("0x4f")](t);for(const t of x)e[$x("0x1d")](t);return o})),t[$x("0x7f")].for("editingDowncast")[$x("0x98")]({model:$x("0x38"),view:(t,e)=>l(t),converterPriority:$x("0x80")}),t[$x("0x7f")][$x("0x15")]($x("0x54"))[$x("0x98")]({model:$x("0x38"),view:(t,e)=>e[$x("0x7b")][$x("0x8e")]?l(t,!1):null,converterPriority:$x("0x80")});const d=t[$x("0x36")][$x("0xa0")];this[$x("0x70")](d[$x("0x89")],$x("0x65"),((t,e)=>{const n=[];for(const t of d[$x("0x14")](e[$x("0xa")])[$x("0x43")]())t.is($x("0x4"),$x("0x5f"))&&n.push(t);d.change((t=>{for(const e of n)t[$x("0x61")](t[$x("0x14")](e),t.createPositionBefore(e)),t[$x("0x4f")](e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t.getChild(0);return e.is($x("0x4"),"paragraph")&&e[$x("0x13")]}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[$x("0x9c")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["TableColumnResizeEditing","_suggestionFactory","accept","bind","data","handleSuggestionDescription","resizeTable","enableCommand","commandParams","get","editor","table","formatGroupId","has","markBlockFormat","handleResizeTableWidthCommand","registerCustomCallback","getTableColumnsWidths","_descriptionFactory","plugins","selection","model","discard","getContainedElement","document","registerDescriptionCallback","Users","resizeTableWidth","formatBlock","format","afterInit","change","getSelectedElement","resizeColumnWidths","getSuggestions","getColumnGroupElement","TrackChangesEditing","tableWidth","getSuggestionCallback","*Format:* resize table","author","subType","columnWidths"];var ea,na;ea=ta,na=473,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x1e")](){if(!this.editor[oa("0x13")][oa("0xd")](oa("0x0")))return;const t=this[oa("0xa")][oa("0x13")].get(oa("0x24"));t[oa("0x7")]("resizeTableWidth",this[oa("0xf")][oa("0x3")](this)),t.enableCommand(oa("0x21"),this[oa("0xf")][oa("0x3")](this)),t[oa("0x1")].registerCustomCallback(oa("0x1c"),oa("0x6"),"accept",t._suggestionFactory[oa("0x26")](oa("0x1c"),null,oa("0x16"))),t[oa("0x1")][oa("0x10")]("formatBlock","resizeTable",oa("0x16"),t[oa("0x1")][oa("0x26")](oa("0x1c"),null,oa("0x2"))),t[oa("0x12")][oa("0x19")](this[oa("0x5")][oa("0x3")](this))}handleResizeTableWidthCommand(t,e){const n=this.editor[oa("0x13")].get("TrackChangesEditing"),o=this[oa("0xa")][oa("0x13")][oa("0x9")]("TableColumnResizeEditing"),s=e[oa("0xb")]||this.editor[oa("0x15")][oa("0x18")][oa("0x14")][oa("0x20")]();this.editor[oa("0x15")][oa("0x1f")]((()=>{const r=o[oa("0x23")](s);let i=r?o[oa("0x11")](r):null,x=s.getAttribute(oa("0x25"))||null;const a=e.tableWidth||x,c=e[oa("0x2a")]||i,l=this[oa("0xa")].plugins[oa("0x9")](oa("0x1a")).me;for(const t of n[oa("0x22")]()){const e=t[oa("0x17")]();if("resizeTable"===t[oa("0x29")]&&e===s){t[oa("0x28")]!==l&&t[oa("0x16")]();const e=t[oa("0x4")][oa("0x8")];x=e[0][oa("0x25")],i=e[0][oa("0x2a")];break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0xe")](s,{commandName:oa("0x1b"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x6")},[],oa("0x6"))}))}[oa("0x5")](t){const{data:e}=t;if(e&&oa("0x6")===e[oa("0xc")]){const t=oa("0x27");return{type:oa("0x1d"),content:Yo(this[oa("0xa")].locale,t)}}}}const ra=["has","plugins","afterInit","insertTemplate","Template","editor","enableCommand"];var ia,xa;ia=ra,xa=410,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{[aa("0x5")](){const t=this[aa("0x1")];t.plugins[aa("0x3")](aa("0x0"))&&t[aa("0x4")].get("TrackChangesEditing")[aa("0x2")](aa("0x6"))}}const la=["insertTableOfContents","tableOfContents","get","plugins","enableCommand","commands","ELEMENT_TABLE_OF_CONTENTS","TrackChangesEditing","registerElementLabel","locale","afterInit"];var da,ua;da=la,ua=304,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0x3")](){const t=this.editor;if(!t[ga("0x9")][ga("0x6")](ga("0x4")))return;t[ga("0x7")][ga("0x6")](ga("0x0"))[ga("0x8")]("insertTableOfContents");const e=t.plugins[ga("0x6")]("TrackChangesEditing"),n=t[ga("0x2")];e._descriptionFactory[ga("0x1")](ga("0x5"),(t=>Yo(n,ga("0xa"),t)))}}const fa=["isTouching","schema","element","model","ELEMENT_TITLE","locale","Title","differ","_descriptionFactory","get","TrackChangesEditing","isCollapsed","from","start","registerPostFixer","afterInit","has","plugins","end","createRange","nodeBefore","title-content","getNearestSelectionRange","editor","document","forward","_splitMarkerName","removeMarker","suggestion"];var ha,ba;ha=fa,ba=351,function(t){for(;--t;)ha.push(ha.shift())}(++ba);const pa=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[pa("0xc")](){const t=this[pa("0x14")];if(!t[pa("0xe")][pa("0xd")](pa("0x3")))return;const e=t.plugins[pa("0x6")](pa("0x7"));e[pa("0x5")].registerElementLabel(pa("0x12"),(()=>Yo(t[pa("0x2")],pa("0x1")))),t.model[pa("0x15")][pa("0xb")]((n=>{let o=!1;const s=Array[pa("0x9")](t.model[pa("0x15")][pa("0x4")].getChangedMarkers());for(const{name:r,data:i}of s){const{group:s}=e[pa("0x17")](r);if(pa("0x19")!==s||!i.newRange)continue;const x=i.newRange,a=x.end[pa("0x11")];if(!a||!a.is(pa("0x1c"),"title-content"))continue;if(!x.start[pa("0x1a")](x[pa("0xf")]))continue;const c=t[pa("0x0")][pa("0x1b")][pa("0x13")](x[pa("0xf")],pa("0x16"));if(c&&c[pa("0x8")]){const t=n[pa("0x10")](x[pa("0xa")],c.start);t.isEqual(x)||(n.updateMarker(r,{range:t}),o=!0)}o||(n[pa("0x18")](r),o=!0)}return o}))}}const _a=["get","enableCommand","plugins","afterInit","has","TrackChangesEditing"];var Ta,Ca;Ta=_a,Ca=425,function(t){for(;--t;)Ta.push(Ta.shift())}(++Ca);const ya=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[ya("0x4")](){const t=this.editor,e=t[ya("0x3")][ya("0x1")](ya("0x0"));t[ya("0x3")][ya("0x5")]("UndoEditing")&&(e[ya("0x2")]("undo"),e[ya("0x2")]("redo"))}}const Aa=["requires","afterInit","editor","plugins","has","get","toggleTableCaption","enableCommand"];var va,Ra;va=Aa,Ra=277,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Sa=function(t,e){return Aa[t-=0]};class Ia extends t.Plugin{static get[Sa("0x3")](){return[wx]}[Sa("0x4")](){const t=this[Sa("0x5")];t[Sa("0x6")][Sa("0x7")]("TableCaptionEditing")&&t[Sa("0x6")][Sa("0x0")]("TrackChangesEditing")[Sa("0x2")](Sa("0x1"))}}const La=["*Format:* set start index to %0","_getSuggestionBlocksForListStyle","ELEMENT_","*Format:* set order to reversed","TrackChangesEditing","commandName","handleListStyleCommand","numbered","bind","document","locale","registerDescriptionCallback","DocumentListUtils","markMultiRangeBlockFormat","_getSuggestionBlocks","*Format:* set order to regular","reversed","startIndex","toUpperCase","listStart","listStyle","expandListBlocksToCompleteList","plugins","selection","list.properties","push","isFirstBlockOfListItem","config","length","type","listReversed","getListTypeFromListStyleType","getAttribute","from","_getTranslationKeyForListStyle","format","handleDescriptions","editor","enableCommand","isListItemBlock","change","model","_LIST_","listType","filter","get","*Change to:* %0","handleListReversedCommand","_descriptionFactory","handleListStartCommand"];var Na,Ma;Na=La,Ma=226,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this[wa("0xb")].plugins.has("DocumentListPropertiesEditing"))return;const t=this[wa("0xb")][wa("0x1")].get(wa("0x30")),e=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x1c"));t.styles&&e[wa("0xc")](wa("0x2c"),this.handleListStyleCommand[wa("0x20")](this)),t[wa("0x28")]&&e.enableCommand(wa("0x4"),this[wa("0x15")][wa("0x20")](this)),t[wa("0x29")]&&e[wa("0xc")]("listStart",this[wa("0x17")][wa("0x20")](this)),e[wa("0x16")][wa("0x23")](this[wa("0xa")].bind(this))}[wa("0x1e")](t,e={}){const n=this[wa("0xb")].plugins.get(wa("0x1c")),o=this._getSuggestionBlocksForListStyle();this[wa("0xb")].model[wa("0xe")]((()=>{n[wa("0x25")](o,{commandName:wa("0x2c"),commandParams:[{type:e[wa("0x3")]}],formatGroupId:wa("0x2c")})}))}[wa("0x15")](t,e={}){const n=this.editor[wa("0x2e")][wa("0x13")](wa("0x1c")),o=this.editor[wa("0x2e")][wa("0x13")]("DocumentListUtils"),s=this[wa("0x26")]((t=>o[wa("0xd")](t)&&wa("0x1f")===t[wa("0x6")](wa("0x11"))));null!==s&&this[wa("0xb")][wa("0xf")].change((()=>{n[wa("0x25")](s,{commandName:wa("0x4"),commandParams:[{reversed:e[wa("0x28")]}],formatGroupId:wa("0x4")})}))}[wa("0x17")](t,e={}){const n=this[wa("0xb")].plugins[wa("0x13")](wa("0x1c")),o=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x24")),s=this[wa("0x26")]((t=>o[wa("0xd")](t)&&wa("0x1f")===t[wa("0x6")](wa("0x11"))));null!==s&&this[wa("0xb")][wa("0xf")][wa("0xe")]((()=>{n[wa("0x25")](s,{commandName:wa("0x2b"),commandParams:[{startIndex:e[wa("0x29")]}],formatGroupId:wa("0x2b")})}))}handleDescriptions(t){const e=this.editor[wa("0x22")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x1d")]){case wa("0x2c"):o=wa("0x14"),s={type:wa("0x9"),content:Yo(e,o,Yo(e,this[wa("0x8")](n.commandParams[0][wa("0x3")])))};break;case wa("0x4"):o=n.commandParams[0][wa("0x28")]?wa("0x1b"):wa("0x27"),s={type:"format",content:Yo(e,o)};break;case wa("0x2b"):o=wa("0x18"),s={type:wa("0x9"),content:Yo(e,o,n.commandParams[0][wa("0x29")])}}return s}[wa("0x19")](){const t=this[wa("0xb")][wa("0x2e")].get(wa("0x24"));let e=Array[wa("0x7")](this[wa("0xb")].model[wa("0x21")].selection.getSelectedBlocks());return e[wa("0x31")](...t[wa("0x2d")](e)),e=[...new Set(e)],e}[wa("0x26")](t){const e=this[wa("0xb")][wa("0x2e")][wa("0x13")](wa("0x24"));let n=Array[wa("0x7")](this[wa("0xb")][wa("0xf")][wa("0x21")][wa("0x2f")].getSelectedBlocks())[wa("0x12")](t);if(!n[wa("0x2")])return null;n=e[wa("0x2d")](n);const o=[];for(const t of n)e[wa("0x0")](t)&&o[wa("0x31")](t);return o}[wa("0x8")](t){return wa("0x1a")+this[wa("0xb")][wa("0x2e")][wa("0x13")]("DocumentListPropertiesUtils")[wa("0x5")](t).toUpperCase()+wa("0x10")+t[wa("0x2a")]().replace(/-/g,"_")}}const Fa=["*Format:* change table properties","has","enableCommand","tableCellVerticalAlignment","TrackChangesEditing","enqueueChange","locale","table","data","removeAttribute","getSelectionAffectedTableCells","tableBorderColor","selection","get","pluginName","afterInit","tableWidth","_suggestionFactory","tableBorderWidth","document","findAncestor","handleDiscardAction","registerCustomCallback","tableCellWidth","tableCellPadding","subType","tableHeight","tableBackgroundColor","tableBorderStyle","tableCellProperties","tableCellBorderStyle","discard","markBlockFormat","_getSuggestion","tableCellBorderColor","TableUtils","getSuggestionCallback","plugins","tableAlignment","model","accept","format","tableCellHeight","TableCellPropertiesEditing","getFirstPosition","tableCellBorderWidth","editor","formatBlock","join","getSuggestions","tableProperties","handleSuggestionDescription","_handlePropertyChange","nodeAfter","tableCellHorizontalAlignment","batch"];var Pa,Da;Pa=Fa,Da=173,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this[Ba("0x2d")]=[Ba("0x6"),Ba("0x17"),Ba("0xd"),Ba("0x21"),Ba("0xb"),Ba("0x15"),Ba("0x16")],this.tableCellProperties=[Ba("0x1d"),Ba("0x19"),Ba("0x28"),Ba("0x13"),Ba("0x12"),Ba("0x25"),"tableCellBackgroundColor",Ba("0x31"),Ba("0x36")]}static get[Ba("0x9")](){return"TrackChangesTableProperties"}[Ba("0xa")](){const t=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x37"));if(this.editor.plugins[Ba("0x34")]("TablePropertiesEditing")){for(const e of this[Ba("0x2d")])t[Ba("0x35")](e,((t,n)=>{const o=this.editor.model[Ba("0xe")][Ba("0x7")][Ba("0x27")]()[Ba("0xf")](Ba("0x2"));this[Ba("0x2f")](e,[o],this.tableProperties,Ba("0x2d"),t,n)}));t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x2d"),"accept",t[Ba("0xc")][Ba("0x1f")]("formatBlock",null,"discard")),t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x2d"),Ba("0x1a"),((t,e)=>this.handleDiscardAction(this[Ba("0x2d")],t,e))),t._suggestionFactory[Ba("0x11")](Ba("0x2a"),"tableProperties",Ba("0x2b"),(()=>!1))}if(this.editor[Ba("0x20")].has(Ba("0x26"))){for(const e of this[Ba("0x18")])t.enableCommand(e,((t,n)=>{const o=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x1e"))[Ba("0x5")](this[Ba("0x29")].model[Ba("0xe")].selection);this[Ba("0x2f")](e,o,this.tableCellProperties,Ba("0x18"),t,n)}));t[Ba("0xc")].registerCustomCallback(Ba("0x2a"),Ba("0x18"),Ba("0x23"),t[Ba("0xc")][Ba("0x1f")](Ba("0x2a"),null,Ba("0x1a"))),t[Ba("0xc")][Ba("0x11")](Ba("0x2a"),Ba("0x18"),Ba("0x1a"),((t,e)=>this[Ba("0x10")](this[Ba("0x18")],t,e))),t[Ba("0xc")][Ba("0x11")]("formatBlock",Ba("0x18"),Ba("0x2b"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x2e")](t)))}[Ba("0x2f")](t,e,n,o,s,r){const i=this.editor[Ba("0x20")][Ba("0x8")](Ba("0x37"));this[Ba("0x29")][Ba("0x22")][Ba("0x0")](r[Ba("0x32")],(()=>{for(const t of e)if(this._getSuggestion(t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x1b")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0].start[Ba("0x30")],s=n.commandParams[0];this[Ba("0x29")][Ba("0x22")].change((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x4")](n,o)}))}[Ba("0x2e")](t){if(t[Ba("0x3")])switch(t[Ba("0x14")]){case"tableProperties":return{type:Ba("0x24"),content:Yo(this[Ba("0x29")][Ba("0x1")],Ba("0x33"))};case Ba("0x18"):return{type:Ba("0x24"),content:Yo(this[Ba("0x29")][Ba("0x1")],"*Format:* change table cell properties")}}}[Ba("0x1c")](t,e){const n=this[Ba("0x29")][Ba("0x20")][Ba("0x8")](Ba("0x37"));for(const o of n[Ba("0x2c")]({skipNotAttached:!0})){const n=o.getContainedElement();if(o[Ba("0x14")]===e&&n===t)return o}return null}}const Ua=["execute","editor","_rangeIsInLocalUserInsertion","markerNameToElements","buildSuggestion","suggestion:","clone","addSuggestionData","acceptSuggestion","formatBlock:accept","change","markers","getItems","_cutOutSuggestionMarker","_createSuggestion","never","formatInline","insertion:accept","containsRangeInObject","markInlineFormat","$graveyard","_model","clear","formatInline:join","registerCustomCallback","removeMarker","delete","isAtStart","attributes","_addSuggestionMarker","Users","high","lowest","@external","targetPosition","deletion:discard","hasComments","substr","rejected","$marker","change:data","toJSON","nodeAfter","createPositionAt","model","trackChanges.mergeNestedSuggestions","setAttribute","commentThread","markerToHighlight","_refreshSuggestionsChain","isLocal","getAttribute","_editor","pluginName","insertion:","getRange","change:activeMarkers","setSelection","data-suggestion","markerName","schema","_addThreadToSuggestion","_suggestionFactory","addSuggestion","removeComment","external:","getShiftedBy","getIntersection","_splitMarkerName","define","track-changes-adapter-already-set","discardAllSuggestions","PENDING_ACTION_SUGGESTION","error-saving-suggestion-data-suggestion-discarded","_adapter","isAfter","isNextTo","isEqual","marker-count","getNearestSelectionRange","document","rethrowUnexpectedError","then","CommentsRepository","_suggestionState","next","consumable","isAtEnd","trackChanges","_breakSuggestionMarker","markInsertion","set","editing","createRangeIn","addMarkerName","deletion","subType","ck-suggestion-marker","isExternal","_suggestions","oldRange","suggestionLoaded","deletion:join","dataDowncast","root","_getSuggestionData","plugins","position","removeMarkers","highest","filter","_findSuggestions","differ","documentSelection","default","batch","end","track-changes-adapter-missing-getsuggestion","change:_saved","formatBlock:discard","join","updateSuggestion","isIntersectingWithRange","getAllAdjacentSuggestions","removed","stopListening","hasCommentThread","trackChangesCommand","acceptAllSuggestions","sort","$textProxy","_checkSuggestionCorrectness","_trackFormatChanges","track-changes-suggestion-not-found","suggestion","removeMarker:suggestion:formatBlock","discard","addMarker:suggestion:formatBlock","insertion:discard","_customCallbacks","head","init","updateMarker","suggestionUnloaded","_setSuggestionData","createdAt","consume","normal","has","containsItem","return","resolve","getWalker","ck-suggestion-marker-","suggestion-type","size","catch","originalSuggestionId","isUndo","addMarker","after","getSuggestionCallback","trackChanges.trackFormatChanges","isMultiRange","track-changes-user-not-found","getChangedMarkers","collaboration.channelId","_registerDefaultCallbacks","activeMarkers","add","createPositionAfter","fetchCommentThread","_setSuggestionRange","discardSuggestion","_joinSuggestions","addClass","mapper","data","editingDowncast","addMarker:suggestion","locale","formatInline:discard","_isForcedDefaultExecutionBlock","_removeSuggestion","markMultiRangeInsertion","skipNestingCheck","elementEnd","setTo","authorName","showSuggestionHighlights","from","track-changes-suggestion-data-mismatch","splitPosition","forward","registerPostFixer","_handleNewSuggestionMarker","multipleBlocks","refresh","for","formatGroupId","previous","options","accept","isObject","discardSelectedSuggestions","backward","fire","_commentsRepository","getRanges","formatBlock:join","addHighlight","low","addUser","listenTo","reconvertMarker","getMultiRangeId","elementStart","formatBlock","markerToData","_saved","_joinWithAdjacentSuggestions","every","deleteContent","requires","isCollapsed","value","isRemovable","track-changes-command-not-found","get","parent","containsRange","length","push","_updateSuggestionData","formatBlock:","isInContent","isLimit","getCommentThread","map","containerElement","newRange","_mergeNestedSuggestions","formatInline:chain","markDeletion","multi","TrackChangesEditing","getFirstRange","type","getUser","howMany","some","item","isOwn","widget","toViewElement","creator","getSuggestions","applyOperation","conversion","config","insertion","enqueueChange","getSuggestion","nodeBefore","split","isBefore","_getAuthorFromId","dataReady","_enabledCommands","formatInline:","isBlock","removeAttribute","acceptSelectedSuggestions","ck-suggestion-marker-formatBlock","adapter","ready","isInsideObject","remove","getLastMatchingPosition","suggestionChanged","ck-suggestion-marker--active","unbindElementFromMarkerName","fromCharCode","detach","getAncestors","getChanges","deletion:","start","writer","splice","includes","formatBlock:chain","hasSuggestion","getDifference","name","upcast","addRange","notReady","stop","range","_getExternalAuthor","bindElementToMarker","element","accepted","author","unbind","isTouching","createSelection","_defaultCallbacks","insertContent","forceDefaultExecution","commands","_descriptionFactory","group","values","always","moveTargetPosition","insert","getCustomProperty","_onDiscard","move","deletion:accept","PendingActions","selection","rootName","fromRange","enableCommand","createRange"];var Ga,Ha;Ga=Ua,Ha=369,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Va extends t.Plugin{static get[za("0xb6")](){return[za("0x2a"),r.Users,t.PendingActions,cs,Cs,Rs,ws,Bs,Vs,Js,er,Oa,xr,ur,pr,yr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,bi,Ci,Ri,Oi,ji,Vi,Xi,tx,ix,ux,bx,yx,Sx,wx,jx,Vx,Ia,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0xc")](){return za("0xcc")}constructor(t){function e(t){return t[za("0xc5")]((t=>String[za("0xf1")](t)))[za("0x4f")]("")}super(t),this[za("0x32")]("activeMarkers",[]),this.on(za("0xf"),((e,n,o,s)=>{this[za("0x134")][za("0x129")]((()=>{for(const e of[...s,...o])this[za("0x134")][za("0x12a")][za("0x6b")](e)&&t[za("0x33")][za("0xad")](e)}))})),this[za("0x10f")]=new ss(this.editor[za("0x3")].schema,this.editor[za("0x8b")]),this[za("0x21")]=null,this[za("0x15")]=new Wa(this.editor),this[za("0x3a")]=new Map,this[za("0xa6")]=t[za("0x41")].get(za("0x2a")),this._enabledCommands=new Set,this[za("0x134")]=this[za("0x120")][za("0x3")],this[za("0x2b")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,t[za("0xda")][za("0x1c")](za("0x79"),za("0x49")),this[za("0x5b")]=t[za("0xda")][za("0xbb")](za("0x79")),t.config.define(za("0x4"),!0),this[za("0xc8")]=t[za("0xda")][za("0xbb")]("trackChanges.mergeNestedSuggestions"),this[za("0x56")]=new u(t,this[za("0xe3")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,52,48])}[za("0x64")](){const t=this[za("0x120")];t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x7")]({model:za("0x5d"),view:t=>{const{id:e,type:n}=this[za("0x1b")](t[za("0x12")]),o=[za("0x38"),za("0x70")+n];let s=3e3;return this[za("0x7f")][za("0xf9")](t[za("0x12")])&&(o[za("0xbf")](za("0xef")),s=3010),"deletion"==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0xd9")][za("0x9d")]("dataDowncast")[za("0x80")]((e=>{e.on(za("0x8a"),((e,n,o)=>{if(!o.options.showSuggestionHighlights)return;const s=n[za("0xd2")];if(!s)return;const r=o[za("0x87")][za("0xd5")](s);t[za("0x3")][za("0x13")][za("0xa2")](s)&&r&&!r.getCustomProperty(za("0xd4"))&&r.is(za("0xc6"))&&(0,x.toWidget)(r,o[za("0xf7")])}),{priority:"high"})})),t.conversion[za("0x9d")](za("0x3e"))[za("0x7")]({model:za("0x5d"),view:(t,e)=>{if(!e[za("0xa0")][za("0x94")])return null;const{type:n}=this._splitMarkerName(t[za("0x12")]);return{classes:["ck-suggestion-marker",za("0x70")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0xd2")])return;if(o.item.is(za("0x11a")))return void s[za("0x2d")][za("0x69")](o.item,n[za("0xfd")]);const r=s.mapper[za("0xd5")](o[za("0xd2")]);if(!o[za("0xd2")].is(za("0x105"))||!t.model[za("0x13")].isBlock(o[za("0xd2")])||r[za("0x115")]("addHighlight"))return;const{id:i}=this[za("0x1b")](o[za("0x12")]);s[za("0xf7")][za("0x86")](["ck-suggestion-marker",za("0xe8")],r),s[za("0xf7")][za("0x5")](za("0x11"),i,r),s[za("0x87")][za("0x104")](r,o[za("0x12")]),e&&(this[za("0x7f")][za("0xf9")](o[za("0x12")])?s[za("0xf7")][za("0x86")](za("0xef"),r):s.writer.removeClass(za("0xef"),r));for(const e of t[za("0x3")][za("0x34")](o.item)[za("0x12b")]())s[za("0x2d")][za("0x69")](e,n.name);s.consumable[za("0x69")](o[za("0xd2")],n.name)};t[za("0xd9")][za("0x9d")](za("0x3e")).add((t=>{t.on("addMarker:suggestion:formatBlock",((t,e,o)=>{o[za("0xa0")][za("0x94")]&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x44")})})),t.conversion[za("0x9d")](za("0x3e"))[za("0xb1")]({model:za("0x5d"),view:(t,e)=>e[za("0xa0")][za("0x94")]?null:{group:za("0x5d"),name:t[za("0x144")](11)}}),t.conversion.for(za("0xfe")).elementToElement({view:{name:"suggestion",attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x124")+t[za("0xa")](za("0x71"))+":"+t[za("0xa")]("id");return t[za("0xa")](za("0x25"))&&(n+=":"+t[za("0xa")]("marker-count")),e.createElement(za("0x146"),{"data-name":n})}}),t[za("0xd9")].for("upcast").dataToMarker({view:za("0x5d")}),t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x80")]((t=>{t.on(za("0x60"),n(),{priority:za("0x13e")})})),t[za("0xd9")][za("0x9d")](za("0x89"))[za("0x80")]((t=>{t.on(za("0x5e"),((t,e,n)=>{const o=n.mapper[za("0x122")](e[za("0x12")]);if(o)for(const t of o)t[za("0x115")](za("0xa9"))||(n[za("0xf7")].removeClass([za("0x38"),za("0xe8"),za("0xef")],t),n[za("0xf7")][za("0xe6")](za("0x11"),t),n.mapper[za("0xf0")](t,e[za("0x12")]))}),{priority:za("0x13e")})})),t[za("0x3")][za("0x27")][za("0x99")]((e=>{let n=!1;const o=Array.from(t[za("0x3")][za("0x27")].differ[za("0x7c")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this[za("0x1b")](x);if("suggestion"!==o)continue;const d=this[za("0x3a")][za("0xbb")](l);if(null!=a[za("0xc7")])if(za("0x12f")==c&&(n=n||$a(a[za("0xc7")],x,e,t[za("0x3")][za("0x13")])),a[za("0xc7")][za("0xb7")]||za("0x133")==a[za("0xc7")][za("0x3f")][za("0x11b")]||"formatBlock"==c&&!Ja(a.newRange)||za("0x36")==c&&(qa(i=a[za("0xc7")])||(r=i)[za("0xf6")][za("0xbc")]==r.end.nodeBefore&&r[za("0xf6")][za("0x2e")]))e[za("0x138")](x),n=!0;else{if(!d||!d[za("0xc2")])continue;s[za("0x80")](d)}}var r,i;return s[za("0x72")]>0&&(n=!!this[za("0xb3")](s)||n),n})),t[za("0x3")][za("0x27")][za("0x99")]((e=>{let n=!1;for(const o of t[za("0x3")].document[za("0x47")][za("0xf4")]()){if(za("0x114")!=o[za("0xce")])continue;const s=o.position[za("0x19")](o.length);if(s.isAtEnd)for(const r of this[za("0x3a")][za("0x111")]()){if(r.isMultiRange||!r[za("0xc2")])continue;if(za("0xb0")!=r[za("0xce")])continue;const i=r[za("0xcd")]();if(i.start[za("0xbc")]!=i[za("0x4b")][za("0xbc")]&&i[za("0x4b")][za("0x24")](o[za("0x42")])){const o=t.model.createRange(i[za("0xf6")],s);e[za("0x65")](r.getFirstMarker(),{range:o}),n=!0}}}return n})),t[za("0x3")][za("0x12a")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0xfd")]),n=this[za("0x3a")][za("0xbb")](t);n&&n[za("0x35")](e[za("0xfd")])}})),t.model[za("0x27")].on(za("0x147"),(()=>{const e=Array.from(t[za("0x3")][za("0x27")][za("0x47")][za("0x7c")]())[za("0x45")]((t=>za("0x5d")===this[za("0x1b")](t.name)[za("0x110")]));if(0===e[za("0xbe")])return;e[za("0x58")](((t,e)=>{const n=t[za("0x88")].oldRange,o=e[za("0x88")][za("0x3b")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n.start.isBefore(o[za("0xf6")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0x1b")](t);if(null===s[za("0x3b")]){const e=this[za("0x9a")](t);o[za("0x80")](e)}else{const t=this[za("0x3a")][za("0xbb")](e);null!==s[za("0xc7")]||t.isInContent?(n[za("0x80")](t[za("0x63")]),o[za("0x80")](t)):this._removeSuggestion(t)}}o[za("0x72")]>0&&this[za("0x8")](o);for(const t of n)this.fire(za("0xee"),t)})),t[za("0x3")].on(za("0xd8"),((e,n)=>{const o=n[0];if(!this[za("0x3a")].size)return;if(!o.isDocumentOperation)return;if(o[za("0x4a")][za("0x75")]||!o[za("0x4a")][za("0x9")])return;let s,r;switch(o[za("0xce")]){case za("0x114"):s=t[za("0x3")].createPositionAt(o.position),r=s[za("0x19")](o.howMany);break;case za("0xdf"):s=t[za("0x3")][za("0x2")](o[za("0x97")]),r=t.model.createPositionAt(o[za("0x113")]);break;case za("0x117"):s=t[za("0x3")][za("0x2")](o[za("0x141")]),r=s.getShiftedBy(o[za("0xd0")]);break;default:return}const i=t.model[za("0x11e")](s,r);t[za("0x3")].change((()=>{for(const{suggestion:t,meta:e}of this[za("0x46")](i)){if(t[za("0x7a")])continue;if(za("0x12f")==t[za("0xce")])continue;const n=t[za("0x88")]&&t.data[za("0x9b")];("formatBlock"!=t[za("0xce")]||za("0xdf")==o.type&&!n)&&(e.containsRangeInObject||"insertion"==t.type&&e[za("0xd3")]||t[za("0xcd")]()[za("0xbd")](i)&&this[za("0x30")](t,s,r))}}))}),{priority:za("0x13f")}),t.model.on("deleteContent",((e,n)=>{const o=n[0],s=n[1];if(s&&s.forceDefaultExecution)return;if(this[za("0x8d")])return;if(!this[za("0x56")].value)return;if(o[za("0xb7")])return;const r=t[za("0x3")].schema,{start:i,end:x}=o[za("0xcd")](),a=i.nodeAfter&&r[za("0xc3")](i.nodeAfter)?null:r[za("0x26")](i,za("0x98")),c=x[za("0xde")]&&r[za("0xc3")](x[za("0xde")])?null:r.getNearestSelectionRange(x,za("0xa4")),l=t.model[za("0x11e")](a?a[za("0xf6")]:i,c?c[za("0x4b")]:x);t[za("0x3")].change((e=>{this[za("0xca")](l);const n=t[za("0x3")].schema.getNearestSelectionRange(l[za("0xf6")]);o.is(za("0x48"))?e[za("0x10")](n):o[za("0x92")](n)})),e[za("0x101")]()}),{priority:e.priorities[za("0x6a")]+10}),t[za("0x3")].on(za("0x10c"),((e,n)=>{const o=n[n.length-1];o&&o[za("0x10d")]||this._isForcedDefaultExecutionBlock||this[za("0x56")][za("0xb8")]&&(t[za("0x3")][za("0x129")]((()=>{let o=t[za("0x3")][za("0x10c")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0x6d")]=o[za("0x125")]();const s=o[za("0x4b")][za("0xde")],r=t[za("0x3")][za("0x13")];s&&r[za("0xe5")](s)&&!r[za("0xa2")](s)&&(o=t[za("0x3")][za("0x11e")](o[za("0xf6")],t.model.createPositionAt(s,"end"))),this[za("0x31")](o)})),e[za("0x101")]())}),{priority:za("0x13e")}),this[za("0x120")][za("0x10e")].add(za("0x2f"),this.trackChangesCommand),this[za("0x11d")]("trackChanges");const o=new b(t,this[za("0x3a")]);t[za("0x10e")][za("0x80")](za("0x127"),o),this[za("0x11d")](za("0x127"));const s=new C(t,this[za("0x3a")]);t[za("0x10e")].add(za("0x84"),s),this[za("0x11d")](za("0x84")),t.commands[za("0x80")](za("0x57"),new F(t,o,this[za("0x3a")])),this.enableCommand(za("0x57")),t[za("0x10e")][za("0x80")](za("0x1e"),new F(t,s,this._suggestions)),this[za("0x11d")]("discardAllSuggestions"),t[za("0x10e")][za("0x80")](za("0xe7"),new U(t,o,this[za("0x3a")])),this[za("0x11d")](za("0xe7")),t[za("0x10e")].add(za("0xa3"),new U(t,s,this[za("0x3a")])),this[za("0x11d")]("discardSelectedSuggestions");const r=t[za("0x41")][za("0xbb")]("CommentsRepository");this[za("0xac")](r,"addComment",((t,{threadId:e})=>{const n=this[za("0x3a")][za("0xbb")](e);n&&n[za("0x6")]&&1===n[za("0x6")][za("0xbe")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[za("0xac")](r,za("0x17"),((t,{threadId:e})=>{const n=this[za("0x3a")][za("0xbb")](e);n&&n.commentThread&&!n[za("0x6")][za("0xbe")]&&this._updateSuggestionData(e,{hasComments:!1})}),{priority:za("0xaa")})}set[za("0xe9")](t){if(this[za("0x21")])throw new e.CKEditorError(za("0x1d"),this);this[za("0x21")]=t}get[za("0xe9")](){return this[za("0x21")]}[za("0xd7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[za("0x3a")][za("0x111")]())t&&!e[za("0xc2")]||n[za("0xbf")](e);return e?n[za("0xc5")]((t=>t[za("0x0")]())):n}[za("0xdd")](t){const n=this[za("0x3a")].get(t);if(!n)throw new e.CKEditorError(za("0x5c"),this);return n}[za("0xfb")](t){return this[za("0x3a")][za("0x6b")](t)}addSuggestionData(t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xce")][za("0xdf")](":"),i=this[za("0x3a")][za("0xbb")](n)||this[za("0x12d")](s,r,n,e,o);if(this._addThreadToSuggestion(i),this._checkSuggestionCorrectness(i,s,r||null,e),i[za("0x68")]=t[za("0x68")],o&&o[za("0x140")]){const t=o[za("0x140")],e=this._getExternalAuthor(t[za("0x93")]);i.authoredAt=t[za("0x68")],i[za("0x107")]=e,i[za("0x39")]=!0}else i.authoredAt=t.createdAt;switch(t.data&&(i.data=t[za("0x88")]),t[za("0x13b")]&&(i[za("0x13b")]=t.attributes),this[za("0x21")]&&this[za("0x21")].addSuggestion||(i[za("0xb2")]=!0),this[za("0x2b")][za("0xbb")](i)){case"notReady":this[za("0x2b")][za("0x32")](i,za("0xe2"));break;case"markerReady":i[za("0xc2")]?(this._suggestionState[za("0x32")](i,za("0xea")),this[za("0xa5")](za("0x3c"),i)):this[za("0x2b")][za("0x32")](i,za("0x53"))}return i}acceptSuggestion(t){this[za("0x10d")]((()=>{this[za("0x120")].model.change((()=>{for(const e of t[za("0x52")]())e[za("0xa1")]()}))}))}[za("0x84")](t){this[za("0x10d")]((()=>{this[za("0x120")][za("0x3")][za("0x129")]((()=>{for(const e of t[za("0x52")]())e[za("0x5f")]()}))}))}[za("0x11d")](t,n){const o=this[za("0x120")][za("0x10e")][za("0xbb")](t);if(!o)throw new e.CKEditorError(za("0xba"),this,{commandName:t});this[za("0xe3")][za("0x80")](o),n&&o.on("execute",((t,e)=>{this[za("0x56")][za("0xb8")]&&(this[za("0x8d")]||e[za("0xbe")]>0&&e[e[za("0xbe")]-1]&&e[e.length-1][za("0x10d")]||(n(((...t)=>o[za("0x11f")](...t,{forceDefaultExecution:!0})),...e),t[za("0x101")]()))}),{priority:za("0x13e")})}forceDefaultExecution(t){let n,o;const s=this[za("0x8d")];this[za("0x8d")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x8d")]=!1),o&&e.CKEditorError[za("0x28")](o,this),n}[za("0x31")](t,n=null,o={}){if(t[za("0xb7")])return null;const s=this[za("0x120")][za("0x41")].get(za("0x13d")).me;for(const{suggestion:e,meta:o}of this[za("0x46")](t,"insertion"))if(o.isOwn){if(!o[za("0x23")]){if(!this._mergeNestedSuggestions&&o[za("0x131")])continue;return e}if(n==e[za("0x37")]){const n=e.getFirstRange();return n[za("0xf6")].isEqual(t[za("0x4b")])?this[za("0x83")](e,this[za("0x134")].createRange(t[za("0xf6")],n[za("0x4b")])):this[za("0x83")](e,this._model[za("0x11e")](n[za("0xf6")],t.end)),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0xd")+n:za("0xdb"),a=this[za("0x67")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x13c")](x,r,i,t),a}[za("0x8f")](t,n=za("0xcb"),o={}){const s=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,r=this[za("0x15")][za("0x78")](za("0xdb"),n,za("0x4f"));for(const e of this[za("0xd7")]())if(e[za("0x107")].id==s.id&&za("0xdb")==e.type&&e.subType==n&&(r(e[za("0xa7")](),t)||r(t,e[za("0xa7")]()))){for(const n of t)e.addRange(n);return e}if(this[za("0xc8")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x46")](e,"insertion")){if(!o.isOwn)continue;let e=!0;for(const o of n.getRanges())for(const n of t)if(!o[za("0xbd")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0xd")+n,c=this[za("0x67")]({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[za("0x13c")](a,i,x,e,Zo[za("0xae")]());return c}[za("0x132")](t,n,o=null,s={}){if(o=o||Xa(n),t[za("0xb7")])return null;if(za("0x12e")===this[za("0x5b")]){const e=this[za("0x15")][za("0x78")](za("0x12f"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,s))),null}const r=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,i=[];if(za("0x112")!==this[za("0x5b")])for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0xdb")))n[za("0xd3")]&&!n.isInsideObject&&i[za("0xbf")](...e[za("0xa7")]());const x=function(t,e){const n=[];for(const o of e){const e=t.getIntersection(o);e&&n.push(e)}return n}(t,i),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[za("0xbe")];){const o=n[e][za("0xfc")](t);n[za("0xf8")](e,1,...o),e+=o[za("0xbe")]}}return n}(t,i);x[za("0xbe")]&&this[za("0x134")][za("0x129")]((()=>{for(const t of x){const e=this[za("0x15")].getSuggestionCallback(za("0x12f"),o,"accept");this[za("0x10d")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0xf6")],a=t[za("0x4b")];for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0x12f"))){if(!n.isOwn)continue;if(e.subType!=o)continue;const s=e[za("0xcd")]();if(s[za("0xbd")](t,!0))return null;x=x.isBefore(s.start)?x:s[za("0xf6")],a=a[za("0x22")](s[za("0x4b")])?a:s.end,i?s[za("0xf6")][za("0xe0")](i[za("0xcd")]()[za("0xf6")])?(i[za("0x43")](),i=e):e[za("0x43")]():i=e}const c=this._model[za("0x11e")](x,a);if(i)this[za("0x83")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0x67")]({id:t,type:za("0xe4")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this._addSuggestionMarker("formatInline:"+o,t,i,c)}}return null}markBlockFormat(t,n,o=[],s=null,r={}){n[za("0x9e")]||(n[za("0x9e")]=n.commandName),n[za("0x9b")]=t.is(za("0x102")),s=s||Xa(n);const i=o[za("0xc5")]((t=>Qa(t,this[za("0x134")]))),x=t.is(za("0x102"))?t:Qa(t,this[za("0x134")]);if("never"===this[za("0x5b")]){const t=this[za("0x15")][za("0x78")]("formatBlock",s,"accept");return this[za("0x10d")]((()=>t([x],n,r))),null}i[za("0xbf")](x);let a=!0;for(const t of i)if(!this._rangeIsInLocalUserInsertion(t)){a=!1;break}if(a&&"always"!==this[za("0x5b")]){const t=this[za("0x15")][za("0x78")]("formatBlock",s,za("0xa1"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[za("0xf6")],d=x[za("0x4b")];for(const{suggestion:t,meta:e}of this._findSuggestions(x,za("0xb0"))){if(!e[za("0xd3")]||e[za("0x23")]||e[za("0x131")]||e[za("0xeb")])continue;if(t[za("0x88")][za("0x9e")]!=n[za("0x9e")])continue;const o=t[za("0xcd")]();if(t[za("0x37")]==s){if(o[za("0xbd")](x,!0))return null;l=l[za("0xe0")](o[za("0xf6")])?l:o.start,d=d.isAfter(o[za("0x4b")])?d:o[za("0x4b")],c?o[za("0xf6")][za("0xe0")](c[za("0xcd")]()[za("0xf6")])?(c.removeMarkers(),c=t):t[za("0x43")]():c=t}else{const e=x[za("0x1a")](o);this._cutOutSuggestionMarker(t,e)}}const u=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x83")](c,this[za("0x134")][za("0x11e")](l,d)),c;{const t=this[za("0x67")]({id:g,type:za("0xc1")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0x13c")]("formatBlock:"+s,g,m,this[za("0x134")][za("0x11e")](l,d)),t}}markMultiRangeBlockFormat(t,n,o=[],s=null,r={}){n[za("0x9e")]||(n.formatGroupId=n.commandName);const i=t[0];n[za("0x9b")]=i.is(za("0x102")),s=s||Xa(n);const x=o[za("0xc5")]((t=>Qa(t,this[za("0x134")]))),a=i.is(za("0x102"))?t:t[za("0xc5")]((t=>Qa(t,this[za("0x134")])));if(za("0x12e")===this._trackFormatChanges){const t=this[za("0x15")].getSuggestionCallback("formatBlock",s,"accept");return this[za("0x10d")]((()=>t(a,n,r))),null}x[za("0xbf")](...a);let c=!0;for(const t of x)if(!this[za("0x121")](t)){c=!1;break}if(c&&za("0x112")!==this[za("0x5b")]){const t=this[za("0x15")].getSuggestionCallback(za("0xb0"),s,za("0xa1"));return this[za("0x10d")]((()=>t(a,n,r))),null}const l=this.editor[za("0x41")][za("0xbb")](za("0x13d")).me;for(const t of this[za("0xd7")]()){if(t.author.id!=l.id)continue;if(za("0xb0")!=t[za("0xce")]||t.data[za("0x9e")]!=n[za("0x9e")])continue;const e=t.subType==s;for(let n=0;n<a.length;n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0xe")]();if(o.isEqual(r)){e?(a.splice(n,1),n--):t[za("0x138")](s[za("0xfd")]);break}}}}if(0==a[za("0xbe")])return null;const d=this._suggestionFactory[za("0x78")](za("0xb0"),s,"join");for(const t of this[za("0xd7")]())if(t[za("0x107")].id==l.id&&za("0xb0")==t[za("0xce")]&&t.data[za("0x9e")]==n[za("0x9e")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t[za("0xa7")]()))){for(const e of a)t[za("0xff")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0xc1")+s,f=this[za("0x67")]({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0x13c")](m,u,g,t,Zo[za("0xae")]());return f}[za("0xca")](t,n=null,o={}){if(t[za("0xb7")])return null;const s=this.editor[za("0x41")][za("0xbb")](za("0x13d")).me,r=new i.LiveRange(t[za("0xf6")],t[za("0x4b")]);for(const{suggestion:t,meta:e}of this[za("0x46")](r,za("0xdb")))if(e[za("0xd3")]&&!e[za("0x23")])if(t[za("0x7a")]){const e=t[za("0xa7")]()[za("0x45")]((t=>"$graveyard"!=t.root.rootName));if(e[za("0xb4")]((t=>r[za("0xbd")](t,!0)))&&t[za("0x5f")](),e[za("0xd1")]((t=>t[za("0xbd")](r,!0)))){const t=this[za("0x15")][za("0x78")]("deletion",n,za("0xa1"));return this.forceDefaultExecution((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[za("0xcd")]());null!==e&&t[za("0x116")]([e],null,o)}if(r[za("0xf2")](),r[za("0xb7")]||"$graveyard"==r[za("0x3f")][za("0x11b")])return null;let x=null,a=r[za("0xf6")],c=r[za("0x4b")];for(const{suggestion:t,meta:e}of this[za("0x46")](r,"deletion"))if(e[za("0xd3")])if(t[za("0x7a")]&&this[za("0xc8")]){let e=!0;for(const n of t[za("0xa7")]()){if(n[za("0xbd")](r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x5f")]()}else{const n=t.getFirstRange();if(n[za("0xbd")](r,!0)){if(!this._mergeNestedSuggestions&&e.containsRangeInObject)continue;return t}a=a[za("0xe0")](n[za("0xf6")])?a:n.start,c=c[za("0x22")](n[za("0x4b")])?c:n[za("0x4b")],x?n[za("0xf6")].isBefore(x[za("0xcd")]().start)?(x[za("0x43")](),x=t):t[za("0x43")]():x=t}if(x)return this[za("0x83")](x,this[za("0x134")][za("0x11e")](a,c)),x;{const t=(0,e.uid)(),r=this[za("0x134")][za("0x11e")](a,c),i=s.id,x=n?za("0xf5")+n:za("0x36"),l=this[za("0x67")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this[za("0x13c")](x,t,i,r),l}}markMultiRangeDeletion(t,n="multi",o={}){const s=this[za("0x120")][za("0x41")][za("0xbb")]("Users").me,r=t[za("0xc5")]((t=>new i.LiveRange(t.start,t.end))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x46")](t,za("0xdb")))n.isOwn&&!n[za("0x23")]&&x[za("0x80")](e);for(const e of x)if(e.isMultiRange){const s=e.getRanges();if((!e[za("0x13b")]||!e.attributes[za("0x90")])&&s[za("0xb4")]((t=>r[za("0xd1")]((e=>e[za("0xbd")](t,!0)))))&&e[za("0x5f")](),r[za("0xb4")]((t=>s[za("0xd1")]((e=>e.containsRange(t,!0)))))){const e=this[za("0x15")][za("0x78")]("deletion",n,za("0xa1"));return this[za("0x10d")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[za("0xbd")](t,!0)))&&e.discard(),r[za("0xb4")]((e=>t[za("0xbd")](e,!0)))){const t=this[za("0x15")][za("0x78")](za("0x36"),n,za("0xa1"));return this[za("0x10d")]((()=>t(r,null,o))),null}}const a=this[za("0x15")][za("0x78")](za("0x36"),n,za("0x4f"));let c=null;for(const t of this.getSuggestions())if(t[za("0x107")].id==s.id&&t[za("0xc2")]&&za("0x36")==t[za("0xce")]&&t[za("0x37")]==n&&(a(t[za("0xa7")](),r)||a(r,t[za("0xa7")]())))if(c){if(t[za("0x6")]&&t[za("0x6")][za("0xbe")])continue;for(const e of t[za("0xa7")]())c[za("0x51")](e)||c[za("0xff")](e);t[za("0x43")]()}else{c=t;for(const e of r)t[za("0x51")](e)||t.addRange(e)}if(c)return c;x[za("0x135")]();for(const t of r)for(const{suggestion:e,meta:n}of this._findSuggestions(t,"deletion"))n.isOwn&&x[za("0x80")](e);for(const t of x){const e=t.getRanges();if((!o||!o[za("0x90")])&&r[za("0xb4")]((t=>e[za("0xd1")]((e=>e[za("0xbd")](t,!0))))))return t;(!t[za("0x13b")]||!t[za("0x13b")][za("0x90")])&&e[za("0xb4")]((t=>r[za("0xd1")]((e=>e[za("0xbd")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u="deletion:"+n,g=this[za("0x67")]({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xf2")](),t.isCollapsed||"$graveyard"==t[za("0x3f")][za("0x11b")]||this[za("0x13c")](u,l,d,t,Zo[za("0xae")]());return g}_setSuggestionRange(t,e){const n=t.getFirstMarker();this[za("0x134")].change((t=>{t[za("0x65")](n,{range:e})}))}[za("0x14")](t){const e=t.id,n=this.editor[za("0xda")].get(za("0x7d"));this[za("0xa6")][za("0x55")](e)||this[za("0xa6")].addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[za("0xa6")][za("0xc4")](e);o[za("0x108")]("isRemovable"),o[za("0xb9")]=!1,t[za("0x6")]=o}_checkSuggestionCorrectness(t,n,o,s){if(t[za("0xce")]!=n||t[za("0x37")]!=o||t[za("0xd6")].id!=s)throw this.editor.enableReadOnlyMode(za("0x96")),new e.CKEditorError(za("0x96"),this)}[za("0x12c")](t,n){const o=t[za("0xcd")]();if(n[za("0x24")](o))t.removeMarkers();else if(o.containsRange(n)){const s=this._model[za("0x2")](n[za("0xf6")][za("0xde")],za("0x4b"));this[za("0x83")](t,this._model.createRange(o[za("0xf6")],s));const r=(0,e.uid)(),i=t[za("0xd6")].id,x=t[za("0xce")]+":"+t.subType;this[za("0x67")]({id:r,type:x,createdAt:new Date,authorId:i,data:t[za("0x88")],attributes:t[za("0x13b")]});const a=this._model[za("0x2")](n[za("0x4b")].parent,za("0x77")),c=this[za("0x134")][za("0x11e")](a,o[za("0x4b")]);this[za("0x13c")](x,r,i,c)}else if(o.containsPosition(n[za("0xf6")])){const e=this[za("0x134")].createPositionAt(n[za("0xf6")].nodeBefore,za("0x4b"));this[za("0x83")](t,this[za("0x134")][za("0x11e")](o[za("0xf6")],e))}else{const e=this._model[za("0x2")](n[za("0x4b")].parent,za("0x77"));this[za("0x83")](t,this._model[za("0x11e")](e,o[za("0x4b")]))}}[za("0x121")](t){for(const{suggestion:e,meta:n}of this._findSuggestions(t,za("0xdb"))){if(!n[za("0xd3")])continue;const o=e[za("0xa7")]();for(const e of o)if(!t[za("0xfc")](e)[za("0xbe")])return!0}return!1}[za("0xe1")](t){const n=this[za("0x120")][za("0x41")][za("0xbb")]("Users")[za("0xcf")](t);if(!n)throw new e.CKEditorError(za("0x7b"),this);return n}[za("0x103")](t){const e=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")),n=(0,r.hashObject)(za("0x18")+t);return e.getUser(n)||e[za("0xab")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0xe1")](o),i=this[za("0x15")][za("0x123")](t,e,n,r,s,(t=>this[za("0xc0")](n,{attributes:t})));return this[za("0xac")](i,za("0xa1"),(()=>{this._updateSuggestionData(n,{state:za("0x106")})}),{priority:za("0x13e")}),this[za("0xac")](i,za("0x5f"),(()=>{this[za("0xc0")](n,{state:za("0x145")})}),{priority:za("0x13e")}),this[za("0x3a")][za("0x32")](n,i),this._suggestionState.set(i,"notReady"),i}[za("0x1b")](t){const e=t.split(":");return{group:e[0],type:e[1],subType:e.length>=5?e[2]:null,id:e[za("0xbe")]<5?e[2]:e[3],authorId:e[za("0xbe")]<5?e[3]:e[4],markerCount:6==e[za("0xbe")]?e[5]:null}}[za("0x30")](t,n,o){const s=t.getFirstRange(),r=s[za("0xf6")],i=s.end;this[za("0x83")](t,this[za("0x134")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xd6")].id,c=t[za("0xce")]+(t[za("0x37")]?":"+t[za("0x37")]:"");this[za("0x67")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t.attributes,data:t.data}),za("0xb0")==t.type&&(o=this[za("0x134")].createPositionBefore(o[za("0xbc")])),this[za("0x13c")](c,x,a,this[za("0x134")].createRange(o,i))}[za("0x46")](t,e=null){const n=[],o=this[za("0x134")][za("0x13")],s=this[za("0x120")][za("0x41")][za("0xbb")](za("0x13d")).me;for(const r of this[za("0xd7")]())if(r[za("0xc2")]&&(!e||r[za("0xce")]==e))for(const e of r[za("0xa7")]()){const i=t[za("0xf6")].isEqual(e[za("0x4b")])||t[za("0x4b")][za("0x24")](e.start);if(i||t[za("0x1a")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0xf6")],t),a=e[za("0xbd")](t)&&Ka(o,t[za("0xf6")],e);n.push({suggestion:r,meta:{isOwn:s==r.author,isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0x13c")](t,e,n,o,s){this[za("0x134")].change((r=>{let i=za("0x124")+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0x76")](i,{range:o,usingOperation:!0,affectsData:!0})}))}[za("0x8e")](t){const e=t[za("0x9f")],n=t[za("0x2c")];t[za("0x9f")]=null,null!=e&&(e[za("0x2c")]=null),t[za("0x2c")]=null,null!=n&&(n[za("0x9f")]=null),"ready"==this[za("0x2b")][za("0xbb")](t)&&(this[za("0x2b")][za("0x32")](t,za("0x53")),this[za("0xa5")](za("0x66"),t,e,n))}[za("0x67")](t){const n=t.id,o=this[za("0x126")](t);if(this[za("0x21")]&&this[za("0x21")].addSuggestion){const s=this[za("0x120")][za("0x41")][za("0xbb")]("PendingActions"),r=o.hasComments,i=o[za("0x37")]?o.type+":"+o.subType:o[za("0xce")],x=this[za("0x120")][za("0x8b")],a=s[za("0x80")](Yo(x,za("0x1f"))),c={id:n,type:i,hasComments:r,data:t[za("0x88")]||null,originalSuggestionId:t[za("0x74")]||null,attributes:o.attributes};this[za("0x21")][za("0x16")](c).then((t=>{o[za("0xb2")]=!0,s[za("0xec")](a),t&&t[za("0x68")]&&(this[za("0x3a")][za("0xbb")](n)[za("0x68")]=t[za("0x68")])}))[za("0x73")]((t=>{throw(0,e.logWarning)(za("0x20")),this.editor[za("0x3")][za("0xdc")]({isUndoable:!1},(()=>{o[za("0x5f")]()})),o[za("0x54")](),this._suggestions[za("0x139")](o.id),this[za("0x2b")][za("0x139")](o),t}))}return o}_updateSuggestionData(t,e){const n=this[za("0x120")][za("0x41")].get(za("0x119")),o=this[za("0xdd")](t);if(this._adapter&&this[za("0x21")][za("0x50")])if(o[za("0xb2")]){const o=n[za("0x80")](Yo(this.editor.locale,za("0x1f")));this._adapter[za("0x50")](t,e).then((()=>{n[za("0xec")](o)}))}else o.on(za("0x4d"),(()=>{this._updateSuggestionData(t,e)}))}[za("0x40")](t){if(!this[za("0x21")]||!this[za("0x21")][za("0xdd")])throw new e.CKEditorError(za("0x4c"),this);return this[za("0x21")].getSuggestion(t)}[za("0x9a")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0x1b")](t),r=this[za("0x3a")][za("0xbb")](e)||this[za("0x12d")](n,o,e,s,{});switch(this[za("0x5a")](r,n,o,s),this[za("0x2b")][za("0xbb")](r)){case za("0x100"):this[za("0x40")](e)[za("0x29")]((t=>{let n=Promise[za("0x6e")]();t[za("0x143")]&&(n=this[za("0xa6")][za("0x82")]({channelId:this[za("0x120")][za("0xda")].get(za("0x7d")),threadId:e})),n.then((()=>{this[za("0x126")](t)._saved=!0}))})),this[za("0x2b")][za("0x32")](r,"markerReady");break;case za("0x53"):this[za("0xc0")](e,{state:"open"});case"dataReady":this[za("0x2b")].set(r,za("0xea")),this.fire(za("0x3c"),r);break;case"ready":this[za("0xa5")](za("0xee"),r)}return r[za("0x35")](t),r}[za("0x8")](t){const e=Array[za("0x95")](t)[za("0x45")]((t=>!t.isMultiRange)),n=this[za("0xd7")]({skipNotAttached:!0})[za("0x45")]((t=>!t.isMultiRange)),o=n[za("0x45")]((e=>!t[za("0x6b")](e))),s=new Map(n[za("0xc5")]((t=>[t,this[za("0x15")][za("0x78")](t[za("0xce")],t[za("0x37")],"chain")]))),r=new Map(n.map((t=>[t,t[za("0xcd")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0xbe")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0xbe")];t++)a(e[t],o,0);for(let t=0;t<e[za("0xbe")];t++){const n=e[t];!x.has(n)&&n[za("0x9f")]&&(n[za("0x9f")].next===n&&(n[za("0x9f")][za("0x2c")]=null),n[za("0x9f")]=null),!i[za("0x6b")](n)&&n[za("0x2c")]&&(n[za("0x2c")].previous===n&&(n.next[za("0x9f")]=null),n[za("0x2c")]=null)}function a(t,e,n){for(let o=n;o<e[za("0xbe")];o++){const n=c(t,e[o]);n&&(n[0][za("0x2c")]=n[1],n[1].previous=n[0],i[za("0x80")](n[0]),x[za("0x80")](n[1]))}}function c(t,e){if(t[za("0x107")].id!==e[za("0x107")].id)return null;const n=s[za("0xbb")](t)(t,e,r[za("0xbb")](t),r[za("0xbb")](e));return n&&s[za("0xbb")](e)(t,e,r[za("0xbb")](t),r.get(e))?n[1][za("0x6")]&&n[1][za("0x6")].length?null:n:null}}[za("0xb3")](t){const e=Array.from(t),n=this[za("0xd7")]({skipNotAttached:!0}),o=n[za("0x45")]((e=>!t[za("0x6b")](e))),s=new Map(e[za("0xc5")]((t=>[t,this[za("0x15")][za("0x78")](t[za("0xce")],t[za("0x37")],"join")]))),r=new Map(n[za("0xc5")]((t=>[t,t[za("0xa7")]()])));for(let t=0;t<e[za("0xbe")];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[za("0xbe")];i++){const o=n[i];if(o.type!==e[za("0xce")]||o[za("0x107")].id!==e[za("0x107")].id||o[za("0x37")]!==e[za("0x37")])continue;const x=s[za("0xbb")](e),a=r[za("0xbb")](e),c=r[za("0xbb")](o),l=e[za("0x6")]&&e[za("0x6")][za("0xbe")],d=o[za("0x6")]&&o[za("0x6")][za("0xbe")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0x139")](e),!0;if(!d&&x(a,c))return t[za("0x85")](e,o),r[za("0x139")](o),!0}return!1}}_joinSuggestions(t,e){if(t.isMultiRange)for(const n of e[za("0xa7")]())t.addRange(n);else{const n=e.getFirstRange()[za("0x4b")];this[za("0x83")](t,this[za("0x134")][za("0x11e")](t[za("0xcd")]()[za("0xf6")],n))}e[za("0x43")]()}}class Wa{constructor(t){this._editor=t,this[za("0x134")]=t[za("0x3")],this[za("0x62")]=new Map,this[za("0x10b")]=new Map,this[za("0x7e")]()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x134")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x78")](t,e,za("0xa1"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,"discard")(...n)})}[za("0x137")](t,e,n,o){const s=t+":"+e+":"+n;this[za("0x62")][za("0x32")](s,o)}[za("0x78")](t,e,n){const o=t+":"+e+":"+n;return this._customCallbacks[za("0xbb")](o)||this._defaultCallbacks[za("0xbb")](t+":"+n)}[za("0x7e")](){const t=()=>{},e=t=>{t.sort(((t,e)=>t[za("0xf6")][za("0xe0")](e[za("0xf6")])?1:-1)),this[za("0x134")][za("0x129")]((e=>{for(const n of t){let t;t=n[za("0x4b")].isAtEnd&&n[za("0x4b")].parent==n[za("0xf6")].nodeAfter?e[za("0x10a")](n[za("0xf6")].nodeAfter,"on"):e.createSelection(n),this[za("0x134")][za("0xb5")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x134")].change((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0xc5")]((t=>(qa(t)&&(t=this[za("0x134")].createRange(t.end)),t)))[za("0x45")]((t=>"$graveyard"!==t[za("0x3f")][za("0x11b")]));if(r[za("0xbe")]<1)return;const x=Array[za("0x95")](this[za("0x134")].document[za("0x11a")].getRanges())[za("0xc5")]((t=>i.LiveRange[za("0x11c")](t)));n[za("0x10")](r);for(const t of this[za("0xb")].commands.commands())t[za("0x9c")]();s.push({forceDefaultExecution:!0}),this[za("0xb")].execute(o,...s);const a=x.filter((t=>za("0x133")!=t[za("0x3f")][za("0x11b")]));a.length>0&&n[za("0x10")](a);for(const t of x)t[za("0xf2")]()}))},o=(t,e)=>1==t[za("0xbe")]&&1==e[za("0xbe")]&&t[0][za("0x4b")][za("0x24")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x134")])?[t,e]:Za(e,t,o,n,this[za("0x134")])?[e,t]:null;this[za("0x10b")][za("0x32")](za("0x130"),t),this._defaultCallbacks.set(za("0x61"),e),this[za("0x10b")].set("insertion:join",o),this[za("0x10b")][za("0x32")]("insertion:chain",s),this[za("0x10b")].set(za("0x118"),e),this[za("0x10b")][za("0x32")](za("0x142"),t),this._defaultCallbacks[za("0x32")](za("0x3d"),o),this[za("0x10b")][za("0x32")]("deletion:chain",s),this[za("0x10b")].set("formatInline:accept",n),this[za("0x10b")][za("0x32")](za("0x8c"),t),this[za("0x10b")][za("0x32")](za("0x136"),o),this._defaultCallbacks[za("0x32")](za("0xc9"),t),this._defaultCallbacks[za("0x32")](za("0x128"),n),this._defaultCallbacks[za("0x32")](za("0x4e"),t),this[za("0x10b")].set(za("0xa8"),o),this._defaultCallbacks[za("0x32")](za("0xfa"),t)}}function Ka(t,e,n){for(const o of e[za("0xbc")][za("0xf3")]({includeSelf:!0,parentFirst:!0})){if(o[za("0x3f")]==o)return!1;if(!n[za("0x6c")](o))return!1;if(t[za("0xa2")](o)||t.isLimit(o))return!0}return!1}function qa(t){return t[za("0x4b")][za("0xbc")]==t[za("0xf6")][za("0x1")]&&t.end[za("0x13a")]}function $a(t,e,n,o){const s=t=>!t[za("0xd2")].is(za("0x59"))&&!o.isObject(t[za("0xd2")]),r=t.start.getLastMatchingPosition(s),i=t[za("0x4b")][za("0xed")](s,{direction:za("0xa4")});return!(t.start[za("0x24")](r)&&t[za("0x4b")][za("0x24")](i)||(r[za("0xe0")](i)?n[za("0x65")](e,{range:n.createRange(r,i)}):n[za("0x138")](e),0))}function Xa(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0xf6")][za("0x1")];return e&&e.is("element")}function Qa(t,e){const n=e[za("0x13")][za("0xa2")](t)||e[za("0x13")].isSelectable(t);return e[za("0x11e")](e[za("0x2")](t,"before"),n?e[za("0x81")](t):e.createPositionAt(t,za("0x4b")))}function Za(t,e,n,o,s){if(n.end[za("0x24")](o[za("0xf6")]))return!0;if(t[za("0xce")]!=e.type)return!1;if(!n.end[za("0x109")](o[za("0xf6")]))return!1;const r=s[za("0x11e")](n[za("0x4b")],o[za("0xf6")])[za("0x6f")]();for(const t of r)if([za("0xaf"),za("0x91")][za("0xf9")](t.type)&&s.schema[za("0xc3")](t[za("0xd2")]))return!1;return!0}const Ya=["model","commands","PendingActions","bind","_removePendingAction","change:isDirty","_editor","_setPendingAction","remove","destroy","listenTo","_pendingAction","canDiscard","getRanges","isEnabled","PENDING_ACTION_SUGGESTION","discardSuggestion","execute","commentThreadController","unbind","_acceptCommand","get","add","acceptSuggestion","_discardCommand","stopListening","plugins","view","canAccept","canEditAt"];var tc,ec;tc=Ya,ec=255,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0xf")]=e,this[nc("0xc")]=n,this[nc("0x3")]=o,this[nc("0x15")]=t,this[nc("0x5")]=t[nc("0x10")][nc("0x6")](nc("0x8")),this[nc("0x9")]=t[nc("0x10")].get(nc("0x1")),this[nc("0xc")][nc("0x12")]("isEnabled").to(this[nc("0x5")],this._discardCommand,((t,e)=>t||e)),this.view[nc("0x12")]("canAccept").to(this[nc("0x5")],nc("0x1d"),(t=>t&&this[nc("0x15")][nc("0xf")][nc("0xe")](e[nc("0x1c")]()))),this.view[nc("0x12")](nc("0x1b")).to(this[nc("0x9")],nc("0x1d"),(t=>t&&this._editor[nc("0xf")][nc("0xe")](e[nc("0x1c")]()))),this[nc("0x1a")]=null,n.isDirty&&this[nc("0x16")](),this[nc("0x19")](n,nc("0x8"),(()=>this[nc("0x8")]())),this.listenTo(n,nc("0x1"),(()=>this.discardSuggestion())),this[nc("0x19")](n,nc("0x14"),(()=>{n.isDirty?this[nc("0x16")]():this[nc("0x13")]()}))}[nc("0x8")](){this._acceptCommand[nc("0x2")](this[nc("0xf")].id)}[nc("0x1")](){this[nc("0x9")][nc("0x2")](this[nc("0xf")].id)}destroy(){this[nc("0xc")].unbind(nc("0x1d")),this[nc("0xc")][nc("0x4")](nc("0xd")),this[nc("0xc")][nc("0x4")](nc("0x1b")),this[nc("0xa")](),this[nc("0x3")][nc("0x18")](),this[nc("0x1a")]&&this[nc("0x13")]()}_setPendingAction(){const t=Yo(this[nc("0x15")].locale,nc("0x0"));this[nc("0x1a")]=this._editor[nc("0xb")].get(nc("0x11"))[nc("0x7")](t)}[nc("0x13")](){null!==this[nc("0x1a")]&&this[nc("0x15")][nc("0xb")][nc("0x6")]("PendingActions")[nc("0x17")](this[nc("0x1a")]),this[nc("0x1a")]=null}}const sc=["_localUser","value","_createCommentViews","editor","addComment","commentInputView","canAccept","isDirty","commentThreadInputView","submit","length","canDiscard","isReadOnly","_model","authoredAt","isEnabled","delegate","isActive","CommentView","commentsListView","disabledSubmit","set","locale","removeComment","element","editorConfig","descriptionParts","commentThread","focus","destroy","bind","_config","updateComment"];var rc,ic;rc=sc,ic=164,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x14")]=null,this.commentThreadInputView=null,this[xc("0x16")](xc("0x12"),!1),this[xc("0x16")](xc("0xf"),e[xc("0xf")]),this[xc("0x1f")]("authoredAt").to(e),this.set(xc("0x1b"),[]),this[xc("0x16")](xc("0x8"),!1),this[xc("0x16")](xc("0x10"),!1),this.set(xc("0x7"),!1),this[xc("0x16")](xc("0xc"),!1),this[xc("0xe")]=e,this[xc("0x1")]=n,this[xc("0x20")]=o,o.disableComments?this.set("length",1):this[xc("0x3")]()}[xc("0x1d")](){this[xc("0x19")].focus()}[xc("0x1e")](){this.commentsListView&&this[xc("0x14")][xc("0x1e")](),this[xc("0x9")]&&this[xc("0x9")][xc("0x1e")](),super.destroy()}[xc("0x3")](){const{CommentsListView:t}=this._config;this[xc("0x14")]=new t(this[xc("0x17")],this[xc("0xe")].commentThread,Object.assign({CommentView:this[xc("0x20")][xc("0x13")]},this._config)),this[xc("0x14")][xc("0x11")](xc("0x18")).to(this),this[xc("0x14")].delegate(xc("0x0")).to(this),this.commentsListView[xc("0x1f")](xc("0x12")).to(this),this[xc("0x16")](xc("0xb"),this[xc("0x14")].length+1),this.bind("length").to(this.commentsListView,xc("0xb"),(t=>t+1)),this[xc("0x9")]=this._createCommentThreadInputView(),this.on(xc("0x18"),(()=>this.focus())),this[xc("0x1f")](xc("0x8")).to(this[xc("0x14")],"hasDirtyComment",this.commentThreadInputView.commentInputView,xc("0x2"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x20")],e=new t(this[xc("0x17")],this[xc("0x1")],this[xc("0x20")][xc("0x1a")]),n=e[xc("0x6")];return e[xc("0x1f")]("showInput").to(this,"isActive",this._model[xc("0x1c")],xc("0xd"),n,xc("0x2"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xa"),((t,e)=>{this.fire(xc("0x5"),e),n[xc("0x4")].setData("")})),n.on("cancel",(()=>this.focus())),n[xc("0x1f")](xc("0x15")).to(this[xc("0xe")][xc("0x1c")],xc("0xd")),e}}const cc=["authoredAt","ck-suggestion-","discardSuggestion","children","acceptButton","render","ck-suggestion__main","fire","isExternal","importWord","set",".ck-annotation__content-wrapper","EXTERNAL_IMPORT_WORD_SUGGESTION","color","bindTemplate","source","locale","ck-suggestion-wrapper","ck-suggestion__info","@external","createElement","commentThreadInputView","EXTERNAL_SUGGESTION","isEnabled","span","description","EXTERNAL_AVATAR","userView","type","</span>","descriptionParts",'<span class="ck-suggestion-type">',"ck-comment__info-time","push","creator","EXTERNAL_IMPORT_WORD_AVATAR","bind","ck-suggestion--discard","check","getExternalSuggestionNote","ck-suggestion__user",'" title="',"ck-annotation__content-wrapper","name","cancel","discardButton","ck-suggestion--disabled-comments","commentThread","time","isActive","_model","Discard suggestion","querySelector","title","ck-annotation__info","getUserViewNotificationText","ck-suggestion__info-name","canDiscard","ck-suggestion__actions",'"></span>',"div","_descriptionElement","commentsListView","change:description","ck-annotation","ck-annotation__info-time","ck-annotation__user","ck-suggestion","extendTemplate","attributes","innerHTML","_createButton","</p>","getTemplate","Accept suggestion","canAccept",'<span class="ck-suggestion-color" style="background-color: ',"author","formatDateTime","_config"];var lc,dc;lc=cc,dc=315,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this.set(uc("0x21"),""),this.bind(uc("0x21")).to(this,uc("0x23"),(t=>t&&t[0]?t[0][uc("0x21")]:"")),this.bind(uc("0x1e")).to(this,uc("0x23"),this,uc("0x36"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e.content,e[uc("0x12")])+uc("0x4d");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x42")]=null,this[uc("0x9")]=this[uc("0x4c")](Yo(e,uc("0x4f")),t.icons[uc("0x2b")],"ck-suggestion--accept","acceptSuggestion","sw"),this[uc("0x9")][uc("0x29")]("isEnabled").to(this,uc("0x0")),this[uc("0x32")]=this[uc("0x4c")](Yo(e,uc("0x38")),t.icons[uc("0x31")],uc("0x2a"),uc("0x7"),"sw"),this[uc("0x32")][uc("0x29")](uc("0x1c")).to(this,uc("0x3e")),this[uc("0x20")]=new r.UserView(e,this[uc("0x37")][uc("0x2")],this[uc("0x3c")]()),this.userView[uc("0x49")]({attributes:{class:[uc("0x2d"),uc("0x47")]}}),this.setTemplate(this[uc("0x4e")]())}[uc("0x4e")](){const t=this[uc("0x13")],e=[{tag:uc("0x41"),attributes:{class:[uc("0x17"),uc("0x3b")]},children:[{tag:uc("0x1d"),children:[{text:this.userView[uc("0x30")]}],attributes:{class:[uc("0x3d"),"ck-annotation__info-name"]}},{tag:uc("0x35"),attributes:{datetime:t.to(uc("0x5")),class:[uc("0x25"),uc("0x46")]},children:[{text:t.to(uc("0x5"),(t=>this[uc("0x4")][uc("0x3")](t)))}]}]},{tag:uc("0x41"),attributes:{class:[uc("0x3f"),"ck-annotation__actions"]},children:[this[uc("0x9")],this[uc("0x32")]]},{tag:uc("0x41"),attributes:{class:[uc("0x2f")]}}];this[uc("0x37")][uc("0xd")]&&e.push({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[uc("0x2c")]()}]});const n={tag:uc("0x41"),attributes:{class:[uc("0x16"),t.if(uc("0x36"),"ck-suggestion-wrapper--active"),t.to(uc("0x21"),(t=>uc("0x6")+t)),this[uc("0x4")].disableComments&&uc("0x33")],"data-suggestion-id":this[uc("0x37")].id,"data-thread-id":this[uc("0x37")][uc("0x34")].id,"data-author-id":this[uc("0x37")][uc("0x2")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[uc("0x48"),uc("0x45")]},children:[this[uc("0x20")],{tag:uc("0x41"),attributes:{class:[uc("0xb"),"ck-annotation__main"]},children:e}]}]};return this[uc("0x43")]&&this.commentThreadInputView&&n[uc("0x8")][uc("0x26")](this[uc("0x43")],this[uc("0x1a")]),n}[uc("0xa")](){super[uc("0xa")](),this[uc("0x42")]=this.element[uc("0x39")](uc("0x10")),this._descriptionElement[uc("0x4b")]=this[uc("0x1e")],this.on(uc("0x44"),((t,e,n)=>{this[uc("0x42")][uc("0x4b")]=n}))}[uc("0x4c")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x15")]);return i[uc("0xf")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x49")]({attributes:{class:n}}),i.on("execute",(()=>{this[uc("0xc")](o,this[uc("0x37")].id)})),i}[uc("0x2c")](){return uc("0xe")===this[uc("0x37")][uc("0x4a")]["@external"].source?Yo(this.locale,uc("0x11")):Yo(this[uc("0x15")],uc("0x1b"))}getUserViewNotificationText(){return this[uc("0x37")][uc("0xd")]?uc("0xe")===this._model[uc("0x4a")][uc("0x18")][uc("0x14")]?Yo(this[uc("0x15")],uc("0x28"),this._model.creator[uc("0x30")]):Yo(this[uc("0x15")],uc("0x1f"),this._model[uc("0x27")].name):null}}function mc(t,e){let n="";return n+=t.split("*").map(((t,e)=>e%2!=0?uc("0x24")+fc(t)+uc("0x22"):fc(t))).join(""),e&&(n+=uc("0x1")+e.value+uc("0x2e")+e[uc("0x3a")]+uc("0x40")),n}function fc(t){const e=document[uc("0x19")](uc("0x1d"));return e.innerText=t,e[uc("0x4b")]}const hc=["toMany","some","activeAnnotations","comments.maxCommentCharsWhenCollapsed","set","innerView","isOn","actionView","execute","previous","destroy","addSourceCollector","Discard all selected suggestions","init","type","listenTo","_destroyController","bind","focus","mainView","acceptSelectedSuggestions","getMarkers","isDirty","_suggestionToController","isEnabled","getDescriptions","createCommentThreadController","from","_viewToController","arrowView","lowest","value","suggestion-","EditorAnnotations","editor","unbind","editing","getSuggestion","remove","buttonView","change:previous","_initializeController","commands","getFirstRange","keys","Track changes","requires","_disableComments","CommentsRepository","hasSuggestion","CommentView","getAllAdjacentSuggestions","acceptButton","config","Accept all selected suggestions","createAnnotationView","getRanges","descriptionParts","reduce","isMultiRange","_updateController","registerAnnotation","switchbutton","_handleControllerBuffer","comments.maxCommentsWhenCollapsed","_annotationViews","trackChanges","getJoined","TrackChangesUI","comments.editorConfig","button","createAnnotation","Annotations","Discard all suggestions","locale","_createUIButton","model","trackChanges.disableComments","isInContent","has","view","values","discardButton","activeMarkers","TrackChangesEditing","refreshSelectedViews","suggestionUnloaded","separator","delete","add","suggestionChanged","filter","commandName","CommentsUI","_descriptionFactory","stopListening","getMarkerNames","clear","push","commentThread","_handleSuggestionControllerDelayed","get","head","comments.maxThreadTotalWeight","size","_refreshActiveMarkers","change:activeAnnotations","define","plugins","SuggestionThreadView","length"];var bc,pc;bc=hc,pc=449,function(t){for(;--t;)bc.push(bc.shift())}(++pc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x29")](){return[Va,r.Users,Ec("0x2b"),Ec("0x43"),Ec("0x1c")]}static get pluginName(){return Ec("0x3f")}constructor(t){super(t),this[Ec("0x12")]=new Map,this[Ec("0x17")]=new Map,this[Ec("0x3c")]=new Map,this._handleControllerBuffer=new Map;const e=this[Ec("0x1d")][Ec("0x30")];e[Ec("0x66")]("trackChanges.SuggestionThreadView",gc),e[Ec("0x66")]("trackChanges.disableComments",!1),this[Ec("0x2a")]=e[Ec("0x60")](Ec("0x48"))}[Ec("0x5f")](t,e){0===this[Ec("0x3a")][Ec("0x63")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0x3a")]){const n=this[Ec("0x12")].has(t);n||e?n&&e&&this._destroyController(t):this._initializeController(t)}this[Ec("0x1d")][Ec("0x67")].get(Ec("0x1c"))[Ec("0x50")](),this[Ec("0x64")](),this[Ec("0x3a")][Ec("0x5c")]()}),10),this[Ec("0x3a")].set(t,e)}[Ec("0x8")](){const t=this.editor,e=t[Ec("0x67")][Ec("0x60")](Ec("0x4f")),n=t[Ec("0x67")][Ec("0x60")](Ec("0x43")),o=t[Ec("0x67")][Ec("0x60")](Ec("0x1c")),s=t[Ec("0x67")][Ec("0x60")]("CommentsRepository");t.ui.componentFactory.add("trackChanges",(t=>this[Ec("0x46")](t))),o[Ec("0x6")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x16")](this[Ec("0x12")])){const o=e[Ec("0x2e")](),s=[];for(const t of o){if(!t[Ec("0x49")])continue;if(t[Ec("0x36")]){s[Ec("0x5d")](...t[Ec("0x33")]());continue}const e=t[Ec("0x26")]();if(s[Ec("0x69")]>0){const t=s[0][Ec("0x3e")](e);if(t){s[0]=t;continue}}s[Ec("0x5d")](e)}t[Ec("0x5d")]([n[Ec("0x4b")],s])}return t})),this.listenTo(e,"suggestionLoaded",((t,e)=>{this.listenTo(e,"change:previous",((t,n,o,s)=>{e.isInContent&&(null==o?(this[Ec("0x37")](s[Ec("0x61")]),this[Ec("0x5f")](e,!1)):(this[Ec("0x37")](o[Ec("0x61")]),this[Ec("0x5f")](e,!0)))})),null===e[Ec("0x4")]?this[Ec("0x5f")](e,!1):this[Ec("0x37")](e[Ec("0x61")])})),this.listenTo(e,Ec("0x51"),((t,e,n)=>{this[Ec("0x5a")](e,Ec("0x23")),this._handleControllerBuffer[Ec("0x53")](e);const o=n?n[Ec("0x61")]:e,s=this[Ec("0x12")][Ec("0x60")](o);null!==n&&this[Ec("0x37")](o),null===n&&s&&this._destroyController(e)})),this[Ec("0xa")](e,Ec("0x55"),((t,e)=>{this[Ec("0x37")](e)})),this.listenTo(n,Ec("0x65"),(()=>{this._refreshActiveMarkers()})),this.listenTo(s,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x2c")](n))return;const s=e[Ec("0x20")](n);this[Ec("0x12")][Ec("0x60")](s)[Ec("0x4b")][Ec("0xd")]()}),{priority:Ec("0x19")})}[Ec("0x64")](){const t=this[Ec("0x1d")].plugins.get(Ec("0x43")),e=this.editor[Ec("0x67")].get(Ec("0x4f")),n=Array.from(t[Ec("0x6c")],(t=>t[Ec("0x0")])).filter((t=>this[Ec("0x17")][Ec("0x4a")](t))),o=[];for(const t of n){const e=this._viewToController[Ec("0x60")](t)[Ec("0x47")][Ec("0x2e")]();o[Ec("0x5d")](...e[Ec("0x35")](((t,e)=>[...t,...e[Ec("0x5b")]()]),[]))}e[Ec("0x4e")]=o}_createUIButton(t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x1d")][Ec("0x25")][Ec("0x60")](Ec("0x3d")),r=Yo(t,Ec("0x28"));n[Ec("0x22")][Ec("0x6e")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x22")][Ec("0xc")](Ec("0x1")).to(o,Ec("0x1a")),n[Ec("0x22")].on(Ec("0x3"),(()=>{o[Ec("0x3")](),this.editor.editing[Ec("0x4b")][Ec("0xd")]()}));const i=new e.Collection,x=[{type:Ec("0x39"),model:{withText:!0,label:r,commandName:Ec("0x3d")}},{type:"separator"},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,"Accept all suggestions"),commandName:"acceptAllSuggestions"}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x31")),commandName:Ec("0xf")}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x44")),commandName:"discardAllSuggestions"}},{type:Ec("0x41"),model:{withText:!0,label:Yo(t,Ec("0x7")),commandName:"discardSelectedSuggestions"}}];for(const t of x){let e={type:Ec("0x52")};if(t.model){const n=new s.Model(t[Ec("0x47")]),o=this[Ec("0x1d")][Ec("0x25")][Ec("0x60")](n[Ec("0x57")]);n.bind(Ec("0x1"),Ec("0x13")).to(o,Ec("0x1a"),Ec("0x13")),e={type:t[Ec("0x9")],model:n}}i[Ec("0x54")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x56")]((t=>null!=t[Ec("0x47")])).map((t=>this[Ec("0x1d")][Ec("0x25")].get(t[Ec("0x47")][Ec("0x57")]))),c=n.buttonView;return c[Ec("0x2")][Ec("0x1e")](Ec("0x13")),c.arrowView[Ec("0x1e")]("isEnabled"),c.actionView[Ec("0xc")](Ec("0x13")).to(o,Ec("0x13")),c[Ec("0x18")][Ec("0xc")](Ec("0x13"))[Ec("0x6a")](a,Ec("0x13"),((...t)=>t[Ec("0x6b")]((t=>t)))),n.on(Ec("0x3"),(t=>{this[Ec("0x1d")][Ec("0x3")](t.source[Ec("0x57")]),this[Ec("0x1d")][Ec("0x1f")][Ec("0x4b")].focus()})),n}[Ec("0x24")](t){const e=this[Ec("0x1d")],n=e.config,o=e[Ec("0x67")][Ec("0x60")](Ec("0x43")),s=e.plugins[Ec("0x60")](Ec("0x2b")),i=e[Ec("0x67")][Ec("0x60")](Ec("0x1c")),x=e[Ec("0x67")][Ec("0x60")](r.Users).me,a=n[Ec("0x60")]("trackChanges")[Ec("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0x67")][Ec("0x60")](Ec("0x58"));let d,u;this[Ec("0x3c")][Ec("0x4a")](t.id)?(u=this[Ec("0x3c")].get(t.id),d=u[Ec("0xe")]):(d=new a(e[Ec("0x45")],t,x,{disableComments:this[Ec("0x2a")],editorConfig:n.get(Ec("0x40")),maxCommentsWhenCollapsed:n.get(Ec("0x3b")),maxThreadTotalWeight:n[Ec("0x60")](Ec("0x62")),maxCommentCharsWhenCollapsed:n[Ec("0x60")](Ec("0x6d")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x60")](Ec("0x45"))),CommentView:n[Ec("0x60")]("comments")[Ec("0x2d")],CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2f")].on(Ec("0x3"),(()=>{e[Ec("0x1f")].view.focus()})),d[Ec("0x4d")].on(Ec("0x3"),(()=>{e[Ec("0x1f")].view[Ec("0xd")]()})),u=o[Ec("0x32")](this[Ec("0x1d")].locale,d),u[Ec("0xc")](Ec("0x11")).to(d,Ec("0x11")),u[Ec("0xc")](Ec("0x69")).to(d),u[Ec("0xc")](Ec("0x9")).to(d,Ec("0x9"),(t=>Ec("0x1b")+t)),this[Ec("0x3c")][Ec("0x6e")](t.id,u));const g=s[Ec("0x15")](t[Ec("0x5e")],d),m=new oc(e,t,d,g),f=t[Ec("0x2e")]()[Ec("0x56")]((t=>t[Ec("0x49")]));d[Ec("0x34")]=e[Ec("0x67")].get(Ec("0x4f"))._descriptionFactory.getDescriptions(f),this._suggestionToController[Ec("0x6e")](t,m),this[Ec("0x17")].set(d,m);const h=o[Ec("0x42")]({view:u,target:()=>{const n=[],o=t[Ec("0x2e")]()[Ec("0x56")]((t=>t[Ec("0x49")]));for(const t of o)n.push(...t[Ec("0x10")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x1f")],n)},type:()=>Ec("0x1b")+m.view[Ec("0x9")]});o[Ec("0x54")](h),i[Ec("0x38")](h)}[Ec("0xb")](t){const e=this[Ec("0x1d")].plugins[Ec("0x60")]("Annotations"),n=this[Ec("0x12")][Ec("0x60")](t),o=n[Ec("0x4b")],s=e.getByInnerView(o);s&&e[Ec("0x21")](s),this[Ec("0x12")][Ec("0x53")](t),this[Ec("0x17")][Ec("0x53")](o),n.destroy()}[Ec("0x37")](t){if(!t[Ec("0x49")]||!this._suggestionToController[Ec("0x4a")](t))return;const e=this.editor[Ec("0x67")][Ec("0x60")](Ec("0x4f")),n=this[Ec("0x12")][Ec("0x60")](t),o=t[Ec("0x2e")]();n[Ec("0x4b")][Ec("0x34")]=e[Ec("0x59")][Ec("0x14")](o)}[Ec("0x5")](){for(const t of this[Ec("0x12")][Ec("0x27")]())this[Ec("0xb")](t);for(const t of this[Ec("0x3c")][Ec("0x4c")]())t[Ec("0xe")].destroy();super[Ec("0x5")]()}}var Tc,Cc,yc=["addSuggestionData","getSuggestion","plugins","adapter","get","editor","getSuggestions","TrackChanges"];Tc=yc,Cc=125,function(t){for(;--t;)Tc.push(Tc.shift())}(++Cc);var kc=function(t,e){return yc[t-=0]};class Ac extends t.Plugin{static get requires(){return[Va,_c,"Comments"]}static get pluginName(){return kc("0x2")}set adapter(t){this.editor.plugins[kc("0x7")](Va).adapter=t}get[kc("0x6")](){return this.editor[kc("0x5")][kc("0x7")](Va)[kc("0x6")]}addSuggestion(t){return this[kc("0x0")][kc("0x5")][kc("0x7")](Va)[kc("0x3")](t)}getSuggestions({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x0")][kc("0x5")][kc("0x7")](Va)[kc("0x1")]({skipNotAttached:t,toJSON:e})}[kc("0x4")](t){return this.editor[kc("0x5")][kc("0x7")](Va)[kc("0x4")](t)}}const vc=["getDataWithAcceptedSuggestions","create","getDataWithDiscardedSuggestions","pluginName","getUser","Pagination","editor","users","getSuggestions","requires","map","function","reduce","trackChangesData.editorCreator","end","constructor","get","discardAllSuggestions","rootsAttributes","init","trackChangesData","execute","TrackChangesDataGetter","define","config","track-changes-data-invalid-editor-creator","destroy","Users","data","TrackChangesData","name","createElement","getRootsAttributes","document","TrackChangesEditing","editorCreator","CommentsRepository","addSuggestionData","getRootNames","plugins","set","result","addUser","appendChild","_adapter"];var Rc,Sc;Rc=vc,Sc=475,function(t){for(;--t;)Rc.push(Rc.shift())}(++Sc);const Ic=function(t,e){return vc[t-=0]},Lc=[Ic("0x19")];class Nc extends t.Plugin{static get[Ic("0x1d")](){return[Va]}static get[Ic("0x17")](){return Ic("0x4")}init(){const t=this[Ic("0x1a")];if(t.config[Ic("0x2b")](Ic("0x21"),(e=>{const n=t.model.document.getRootNames().reduce(((t,e)=>(t[e]="",t)),{});return t[Ic("0x23")][Ic("0x15")](n,e)})),Ic("0x1f")!=typeof t[Ic("0x2c")].get("trackChangesData").editorCreator)throw new e.CKEditorError(Ic("0x0"))}[Ic("0x14")](t){return Oc(this.editor,!0,t)}[Ic("0x16")](t){return Oc(this.editor,!1,t)}}class Mc extends t.Plugin{static get[Ic("0x17")](){return Ic("0x2a")}constructor(t){super(t),this[Ic("0x10")]=Ic("0x22")}[Ic("0x27")](){this[Ic("0x1a")][Ic("0xe")][Ic("0x24")](Ic("0xb"))[Ic("0x13")]={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this[Ic("0x1a")].plugins[Ic("0x24")]("TrackChangesEditing")[Ic("0x13")]=null}}function wc(t){return void 0!==t[Ic("0x7")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o[Ic("0xe")].push(Va,Mc),o[Ic("0x26")]=wc(t)?t[Ic("0x7")]():void 0;const s=document.createDocumentFragment(),i=t[Ic("0x2c")][Ic("0x24")](Ic("0x28"))[Ic("0xa")],x=await i(o,(()=>function(t){const e=document[Ic("0x6")]("div");return t[Ic("0x12")](e),e}(s)));!function(t,e){const n=t.model[Ic("0x8")][Ic("0xd")]()[Ic("0x20")](((e,n)=>(e[n]=t[Ic("0x3")].get({rootName:n}),e)),{}),o=t[Ic("0xe")].get(Ic("0x2"))[Ic("0x1b")][Ic("0x1e")]((t=>({id:t.id,name:t[Ic("0x5")]}))),s=t[Ic("0xe")][Ic("0x24")](Ic("0x9"))[Ic("0x1c")]({skipNotAttached:!0,toJSON:!0}),r=e[Ic("0xe")][Ic("0x24")](Ic("0x2")),i=e.plugins[Ic("0x24")](Ic("0x9"));for(const t of o)r[Ic("0x18")](t.id)||r[Ic("0x11")](t);r.me||r.useAnonymousUser();for(const t of s)i[Ic("0xc")](t);e[Ic("0x3")][Ic("0xf")](n)}(t,x),x[Ic("0x29")](e?"acceptAllSuggestions":Ic("0x25"));const a=wc(x)?x.getFullData(n):x[Ic("0x3")][Ic("0x24")](n);return await x[Ic("0x1")](),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:()=>ac,TrackChanges:()=>Ac,TrackChangesData:()=>Nc,TrackChangesEditing:()=>Wa});var t=n(704),e=n(209),s=n(273),r=n(417),i=n(492),x=n(995);const a=["commands","_enabledCommands","isEnabled","editor","affectsData","refresh","_isEnabledBasedOnSelection","has","_disableUnsupportedCommands","_enableCommands","execute","TrackChangesCommand","forceDisabled"];var c,l;c=a,l=429,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("0x1")]=e,this.value=!1,this[d("0x5")](),this[d("0x6")]=!1}[d("0x5")](){this[d("0x2")]=!0}[d("0xa")](){this.value=!this.value,this.value?this._disableUnsupportedCommands():this[d("0x9")]()}[d("0x8")](){for(const t of this[d("0x3")][d("0x0")][d("0x0")]())t[d("0x4")]&&!this[d("0x1")][d("0x7")](t)&&t[d("0xc")]("TrackChangesCommand")}[d("0x9")](){for(const t of this[d("0x3")][d("0x0")][d("0x0")]())t[d("0x4")]&&!this[d("0x1")][d("0x7")](t)&&t.clearForceDisabled(d("0xb"))}}const g=["canEditAt","_isEnabledBasedOnSelection","TrackChangesEditing","editor","acceptSuggestion","_suggestions","getRanges","refresh","execute","track-changes-accept-suggestion-not-found","model","plugins"];var m,f;m=g,f=146,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("0x3")]=e,this[h("0x5")](),this[h("0xb")]=!1}[h("0x5")](){this.isEnabled=!0}[h("0x6")](t){const n=this[h("0x3")].get(t);if(!n)throw new e.CKEditorError(h("0x7"),this);const o=n[h("0x4")]();this[h("0x1")][h("0x8")][h("0xa")](o)&&this[h("0x1")][h("0x9")].get(h("0x0"))[h("0x2")](n)}}const b=["_isEnabledBasedOnSelection","TrackChangesEditing","track-changes-discard-suggestion-not-found","get","isEnabled","model","execute","refresh","discardSuggestion","_suggestions","editor"];var E,_;E=b,_=335,function(t){for(;--t;)E.push(E.shift())}(++_);const T=function(t,e){return b[t-=0]};class y extends t.Command{constructor(t,e){super(t),this[T("0x4")]=e,this[T("0x2")](),this[T("0x6")]=!1}refresh(){this[T("0xa")]=!0}[T("0x1")](t){const n=this[T("0x4")][T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x8"),this);const o=n.getRanges();this[T("0x5")][T("0x0")].canEditAt(o)&&this.editor.plugins.get(T("0x7"))[T("0x3")](n)}}const C=["createRange","end","createPositionBefore","createPositionAfter","isArray","next","getRanges","createPositionAt","isInContent","change","isIntersecting","deletion","type","isObject","isMultiRange"," [color ","isTouching","content","execute","add","value","push","from","schema","getMarkers","color","start","length"];var k,A;k=C,A=308,function(t){for(;--t;)k.push(k.shift())}(++A);const v=function(t,e){return C[t-=0]};function R(t){return t.sort(((t,e)=>"deletion"==t.type&&v("0xb")!=e.type?-1:v("0xb")!=t[v("0xc")]&&v("0xb")==e.type?1:0))}function I(t,e){let n,o=0;const s=[],r=e[v("0x17")];for(;o<t.length;){const i=t[o],x=t[o+1];n||(n=e[v("0x2")](i)),S(e,i,x)||(s[v("0x15")](e[v("0x0")](n,r[v("0xd")](i)?e[v("0x3")](i):e[v("0x7")](i,v("0x1")))),n=null),o++}return s}function S(t,e,n){if(!n)return!1;const o=t[v("0x3")](e),s=t[v("0x2")](n);return o[v("0x10")](s)}function L(t,e,n){for(;n[v("0x1b")];){const o=n.splice(0,100);t[v("0x9")]((()=>{for(const t of o)t.isInContent&&e[v("0x12")](t.id)}))}}const N=["_command","_suggestions","from","some","_isEnabledBasedOnSelection","editor","canEditAt","model","execute","refresh","isEnabled","values"];var M,w;M=N,w=193,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return N[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this._command=e,this[O("0x0")]=n,this[O("0x8")](),this[O("0x3")]=!1}[O("0x8")](){const t=Array[O("0x1")](this._suggestions[O("0xa")]())[O("0x2")]((t=>t.isInContent));this[O("0x9")]=this[O("0xb")][O("0x9")]&&t}[O("0x7")](){const t=R(Array[O("0x1")](this[O("0x0")][O("0xa")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x4")][O("0x6")][O("0x5")](t))return}L(this[O("0x4")][O("0x6")],this[O("0xb")],t)}}const P=["refresh","isEnabled","canEditAt","execute","document","selection","_command","_selectedSuggestions","_isEnabledBasedOnSelection","model","_suggestions","size","from","editor","getRanges","values"];var D,B;D=P,B=102,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._command=e,this[j("0x4")]=n,this._selectedSuggestions=new Set,this.refresh(),this[j("0x2")]=!1}[j("0xa")](){const t=this[j("0x7")].model[j("0xe")][j("0xf")],e=Array[j("0x6")](this[j("0x4")][j("0x9")]());this._selectedSuggestions=function(t,e){const n=Array[v("0x16")](t[v("0x6")]()),o=new Set;for(const s of e)if(s[v("0x8")])for(const e of n)for(const n of s[v("0x18")]()){const r=n.getRange();(e[v("0xa")](r)||t.isCollapsed&&!s[v("0xe")]&&s[v("0x5")]&&r[v("0x1")][v("0x10")](e[v("0x1a")]))&&o[v("0x13")](s)}return o}(t,e),this[j("0xb")]=this._command[j("0xb")]&&!!this[j("0x1")][j("0x5")]}[j("0xd")](){const t=R(Array[j("0x6")](this._selectedSuggestions));for(const e of t){const t=e[j("0x8")]();if(!this[j("0x7")].model[j("0xc")](t))return}L(this[j("0x7")][j("0x3")],this[j("0x0")],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 yt=/^\[object .+?Constructor\]$/,Ct=Function.prototype,kt=Object.prototype,At=Ct.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:yt).test(Tt(t))};const St=function(t,e){return null==t?void 0:t[e]};const Lt=function(t,e){var n=St(t,e);return It(n)?n:void 0};const Nt=Lt(ot,"Map");const Mt=Lt(Object,"create");const wt=function(){this.__data__=Mt?Mt(null):{},this.size=0};const Ot=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e};var Ft=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;if(Mt){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return Ft.call(e,t)?e[t]:void 0};var Dt=Object.prototype.hasOwnProperty;const Bt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Dt.call(e,t)};const jt=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=Mt&&void 0===e?"__lodash_hash_undefined__":e,this};function Ut(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Ut.prototype.clear=wt,Ut.prototype.delete=Ot,Ut.prototype.get=Pt,Ut.prototype.has=Bt,Ut.prototype.set=jt;const Gt=Ut;const Ht=function(){this.size=0,this.__data__={hash:new Gt,map:new(Nt||J),string:new Gt}};const zt=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const Wt=function(t,e){var n=t.__data__;return zt(e)?n["string"==typeof e?"string":"hash"]:n.map};const Vt=function(t){var e=Wt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return Wt(this,t).get(t)};const qt=function(t){return Wt(this,t).has(t)};const Xt=function(t,e){var n=Wt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Ht,$t.prototype.delete=Vt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Jt=$t;const Qt=function(t,e){var n=this.__data__;if(n instanceof J){var o=n.__data__;if(!Nt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Jt(o)}return n.set(t,e),this.size=n.size,this};function Zt(t){var e=this.__data__=new J(t);this.size=e.size}Zt.prototype.clear=Q,Zt.prototype.delete=Z,Zt.prototype.get=Y,Zt.prototype.has=tt,Zt.prototype.set=Qt;const Yt=Zt;const te=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o&&!1!==e(t[n],n,t););return t};const ee=function(){try{var t=Lt(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();const ne=function(t,e,n){"__proto__"==e&&ee?ee(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n};var oe=Object.prototype.hasOwnProperty;const se=function(t,e,n){var o=t[e];oe.call(t,e)&&H(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var s=!n;n||(n={});for(var r=-1,i=e.length;++r<i;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),s?ne(n,x,a):se(n,x,a)}return n};const ie=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,de=ce.propertyIsEnumerable;const ue=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!de.call(t,"callee")};const ge=Array.isArray;const me=function(){return!1};var fe="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=fe&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===fe?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||me;var Ee=/^(?:0|[1-9]\d*)$/;const _e=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&Ee.test(t))&&t>-1&&t%1==0&&t<e};const Te=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991};var ye={};ye["[object Float32Array]"]=ye["[object Float64Array]"]=ye["[object Int8Array]"]=ye["[object Int16Array]"]=ye["[object Int32Array]"]=ye["[object Uint8Array]"]=ye["[object Uint8ClampedArray]"]=ye["[object Uint16Array]"]=ye["[object Uint32Array]"]=!0,ye["[object Arguments]"]=ye["[object Array]"]=ye["[object ArrayBuffer]"]=ye["[object Boolean]"]=ye["[object DataView]"]=ye["[object Date]"]=ye["[object Error]"]=ye["[object Function]"]=ye["[object Map]"]=ye["[object Number]"]=ye["[object Object]"]=ye["[object RegExp]"]=ye["[object Set]"]=ye["[object String]"]=ye["[object WeakMap]"]=!1;const Ce=function(t){return xe(t)&&Te(t.length)&&!!ye[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):Ce;var Ne=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&ue(t),s=!n&&!o&&be(t),r=!n&&!o&&!s&&Le(t),i=n||o||s||r,x=i?ie(t.length,String):[],a=x.length;for(var c in t)!e&&!Ne.call(t,c)||i&&("length"==c||s&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_e(c,a))||x.push(c);return x};var we=Object.prototype;const Oe=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||we)};const Fe=function(t,e){return function(n){return t(e(n))}};const Pe=Fe(Object.keys,Object);var De=Object.prototype.hasOwnProperty;const Be=function(t){if(!Oe(t))return Pe(t);var e=[];for(var n in Object(t))De.call(t,n)&&"constructor"!=n&&e.push(n);return e};const je=function(t){return null!=t&&Te(t.length)&&!ft(t)};const Ue=function(t){return je(t)?Me(t):Be(t)};const Ge=function(t,e){return t&&re(e,Ue(e),t)};const He=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var ze=Object.prototype.hasOwnProperty;const We=function(t){if(!mt(t))return He(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&ze.call(t,o))&&n.push(o);return n};const Ve=function(t){return je(t)?Me(t,!0):We(t)};const Ke=function(t,e){return t&&re(e,Ve(e),t)};var qe="object"==typeof exports&&exports&&!exports.nodeType&&exports,Xe=qe&&"object"==typeof module&&module&&!module.nodeType&&module,$e=Xe&&Xe.exports===qe?ot.Buffer:void 0,Je=$e?$e.allocUnsafe:void 0;const Qe=function(t,e){if(e)return t.slice();var n=t.length,o=Je?Je(n):new t.constructor(n);return t.copy(o),o};const Ze=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Ye=function(t,e){for(var n=-1,o=null==t?0:t.length,s=0,r=[];++n<o;){var i=t[n];e(i,n,t)&&(r[s++]=i)}return r};const tn=function(){return[]};var en=Object.prototype.propertyIsEnumerable,nn=Object.getOwnPropertySymbols;const on=nn?function(t){return null==t?[]:(t=Object(t),Ye(nn(t),(function(e){return en.call(t,e)})))}:tn;const sn=function(t,e){return re(t,on(t),e)};const rn=function(t,e){for(var n=-1,o=e.length,s=t.length;++n<o;)t[s+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)rn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:rn(o,n(t))};const dn=function(t){return ln(t,Ue,on)};const un=function(t){return ln(t,Ve,an)};const gn=Lt(ot,"DataView");const mn=Lt(ot,"Promise");const fn=Lt(ot,"Set");const hn=Lt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=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 yn:return Tn;case Cn:return pn;case kn:return bn;case An:return En;case vn:return _n}return e});const In=Rn;var Sn=Object.prototype.hasOwnProperty;const Ln=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Sn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Nn=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Nn(e).set(new Nn(t)),e};const wn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)};var On=/\w*$/;const Fn=function(t){var e=new t.constructor(t.source,On.exec(t));return e.lastIndex=t.lastIndex,e};var Pn=st?st.prototype:void 0,Dn=Pn?Pn.valueOf:void 0;const Bn=function(t){return Dn?Object(Dn.call(t)):{}};const jn=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const Un=function(t,e,n){var o=t.constructor;switch(e){case"[object ArrayBuffer]":return Mn(t);case"[object Boolean]":case"[object Date]":return new o(+t);case"[object DataView]":return wn(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return jn(t,n);case"[object Map]":case"[object Set]":return new o;case"[object Number]":case"[object String]":return new o(t);case"[object RegExp]":return Fn(t);case"[object Symbol]":return Bn(t)}};var Gn=Object.create;const Hn=function(){function t(){}return function(e){if(!mt(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const zn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Hn(xn(t))};const Wn=function(t){return xe(t)&&"[object Map]"==In(t)};var Vn=Ie&&Ie.isMap;const Kn=Vn?ke(Vn):Wn;const qn=function(t){return xe(t)&&"[object Set]"==In(t)};var Xn=Ie&&Ie.isSet;const $n=Xn?ke(Xn):qn;var Jn="[object Arguments]",Qn="[object Function]",Zn="[object Object]",Yn={};Yn[Jn]=Yn["[object Array]"]=Yn["[object ArrayBuffer]"]=Yn["[object DataView]"]=Yn["[object Boolean]"]=Yn["[object Date]"]=Yn["[object Float32Array]"]=Yn["[object Float64Array]"]=Yn["[object Int8Array]"]=Yn["[object Int16Array]"]=Yn["[object Int32Array]"]=Yn["[object Map]"]=Yn["[object Number]"]=Yn[Zn]=Yn["[object RegExp]"]=Yn["[object Set]"]=Yn["[object String]"]=Yn["[object Symbol]"]=Yn["[object Uint8Array]"]=Yn["[object Uint8ClampedArray]"]=Yn["[object Uint16Array]"]=Yn["[object Uint32Array]"]=!0,Yn["[object Error]"]=Yn[Qn]=Yn["[object WeakMap]"]=!1;const to=function t(e,n,o,s,r,i){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,s,r,i):o(e)),void 0!==x)return x;if(!mt(e))return e;var d=ge(e);if(d){if(x=Ln(e),!a)return Ze(e,x)}else{var u=In(e),g=u==Qn||"[object GeneratorFunction]"==u;if(be(e))return Qe(e,a);if(u==Zn||u==Jn||g&&!r){if(x=c||g?{}:zn(e),!a)return c?cn(e,Ke(x,e)):sn(e,Ge(x,e))}else{if(!Yn[u])return r?e:{};x=Un(e,u,a)}}i||(i=new Yt);var m=i.get(e);if(m)return m;i.set(e,x),$n(e)?e.forEach((function(s){x.add(t(s,n,o,s,e,i))})):Kn(e)&&e.forEach((function(s,r){x.set(r,t(s,n,o,r,e,i))}));var f=d?void 0:(l?c?un:dn:c?Ve:Ue)(e);return te(f||e,(function(s,r){f&&(s=e[r=s]),se(x,r,t(s,n,o,r,e,i))})),x};const eo=function(t){return to(t,5)};const no=function(t){return"symbol"==typeof t||xe(t)&&"[object Symbol]"==gt(t)};var oo=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,so=/^\w*$/;const ro=function(t,e){if(ge(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!no(t))||(so.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function io(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,s=e?e.apply(this,o):o[0],r=n.cache;if(r.has(s))return r.get(s);var i=t.apply(this,o);return n.cache=r.set(s,i)||r,i};return n.cache=new(io.Cache||Jt),n}io.Cache=Jt;const xo=io;var ao=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,co=/\\(\\)?/g;const lo=function(t){var e=xo(t,(function(t){return 500===n.size&&n.clear(),t})),n=e.cache;return e}((function(t){var e=[];return 46===t.charCodeAt(0)&&e.push(""),t.replace(ao,(function(t,n,o,s){e.push(o?s.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,s=Array(o);++n<o;)s[n]=e(t[n],n,t);return s};var go=st?st.prototype:void 0,mo=go?go.toString:void 0;const fo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return mo?mo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":fo(t)};const po=function(t,e){return ge(t)?t:ro(t,e)?[t]:lo(ho(t))};const bo=function(t){if("string"==typeof t||no(t))return t;var e=t+"";return"0"==e&&1/t==-Infinity?"-0":e};const Eo=function(t,e,n,o){if(!mt(t))return t;for(var s=-1,r=(e=po(e,t)).length,i=r-1,x=t;null!=x&&++s<r;){var a=bo(e[s]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(s!=i){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=mt(l)?l:_e(e[s+1])?[]:{})}se(x,a,c),x=x[a]}return t};const _o=function(t,e,n){return null==t?t:Eo(t,e,n)};const To=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this};const yo=function(t){return this.__data__.has(t)};function Co(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new Jt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const ko=Co;const Ao=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1};const vo=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,s,r){var i=1&n,x=t.length,a=e.length;if(x!=a&&!(i&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var d=-1,u=!0,g=2&n?new ko:void 0;for(r.set(t,e),r.set(e,t);++d<x;){var m=t[d],f=e[d];if(o)var h=i?o(f,m,d,e,t,r):o(m,f,d,t,e,r);if(void 0!==h){if(h)continue;u=!1;break}if(g){if(!Ao(e,(function(t,e){if(!vo(g,e)&&(m===t||s(m,t,n,o,r)))return g.push(e)}))){u=!1;break}}else if(m!==f&&!s(m,f,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};const Io=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var Lo=st?st.prototype:void 0,No=Lo?Lo.valueOf:void 0;const Mo=function(t,e,n,o,s,r,i){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Nn(t),new Nn(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return H(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var x=Io;case"[object Set]":var a=1&o;if(x||(x=So),t.size!=e.size&&!a)return!1;var c=i.get(t);if(c)return c==e;o|=2,i.set(t,e);var l=Ro(x(t),x(e),o,s,r,i);return i.delete(t),l;case"[object Symbol]":if(No)return No.call(t)==No.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,s,r){var i=1&n,x=dn(t),a=x.length;if(a!=dn(e).length&&!i)return!1;for(var c=a;c--;){var l=x[c];if(!(i?l in e:wo.call(e,l)))return!1}var d=r.get(t),u=r.get(e);if(d&&u)return d==e&&u==t;var g=!0;r.set(t,e),r.set(e,t);for(var m=i;++c<a;){var f=t[l=x[c]],h=e[l];if(o)var p=i?o(h,f,l,e,t,r):o(f,h,l,t,e,r);if(!(void 0===p?f===h||s(f,h,n,o,r):p)){g=!1;break}m||(m="constructor"==l)}if(g&&!m){var b=t.constructor,E=e.constructor;b==E||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof E&&E instanceof E||(g=!1)}return r.delete(t),r.delete(e),g};var Fo="[object Arguments]",Po="[object Array]",Do="[object Object]",Bo=Object.prototype.hasOwnProperty;const jo=function(t,e,n,o,s,r){var i=ge(t),x=ge(e),a=i?Po:In(t),c=x?Po:In(e),l=(a=a==Fo?Do:a)==Do,d=(c=c==Fo?Do:c)==Do,u=a==c;if(u&&be(t)){if(!be(e))return!1;i=!0,l=!1}if(u&&!l)return r||(r=new Yt),i||Le(t)?Ro(t,e,n,o,s,r):Mo(t,e,a,n,o,s,r);if(!(1&n)){var g=l&&Bo.call(t,"__wrapped__"),m=d&&Bo.call(e,"__wrapped__");if(g||m){var f=g?t.value():t,h=m?e.value():e;return r||(r=new Yt),s(f,h,n,o,r)}}return!!u&&(r||(r=new Yt),Oo(t,e,n,o,s,r))};const Uo=function t(e,n,o,s,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:jo(e,n,o,s,t,r))};const Go=function(t,e){return Uo(t,e)};const Ho=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const zo=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const Wo=function(t,e,n){var o=-1,s=t.length;e<0&&(e=-e>s?0:s+e),(n=n>s?s:n)<0&&(n+=s),s=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(s);++o<s;)r[o]=t[o+e];return r};const Vo=function(t,e){return e.length<2?t:zo(t,Wo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Vo(t,e))||delete t[bo(Ho(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["_onAccept","length","creator","split","_model","commentThread","filter","addMarkerName","add","onAccept","push","author","getMarkers","head","_onDiscard","getRange","onAttributesChange","createdAt","getRanges","_onAttributesChange","authoredAt","setAttribute","decorate","delete","nodeAfter","from","getFirstRange","getMultiRangeId","suggestion:","subType","removeMarker","map","reduce","addMarker","isIntersecting","isIntersectingWithRange","get","data","hasComments","isInContent","@external","addRange","nodeBefore","set","attributes","isExternal","substr","getMarkerNames","previous","start","getAllAdjacentSuggestions","_markerNames","_saved","getFirstMarker","getItems","removeMarkers","getContainedElement","accept","next","removeAttribute","type","change","onDiscard"];var $o,Jo;$o=Xo,Jo=406,function(t){for(;--t;)$o.push($o.shift())}(++Jo);const Qo=function(t,e){return Xo[t-=0]};class Zo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this.id=e.id,this[Qo("0x20")]=e[Qo("0x20")],this[Qo("0x1")]=e[Qo("0x1")]||null,this[Qo("0x2e")]=e[Qo("0x2e")],this[Qo("0x25")]=e[Qo("0x25")]||e[Qo("0x2e")],this[Qo("0x11")]=Boolean(e[Qo("0x10")]&&e[Qo("0x10")][Qo("0xc")]),this.data=null,this._model=t,this._onAccept=e[Qo("0x2c")],this[Qo("0x31")]=e[Qo("0x22")],this[Qo("0x36")]=e[Qo("0x33")],this[Qo("0x17")]=new Set,this[Qo("0x34")]=null,this[Qo("0xf")](Qo("0x37"),null),this.set(Qo("0x10"),e.attributes||{}),this[Qo("0xf")](Qo("0x14"),null),this[Qo("0xf")](Qo("0x1e"),null),this.set(Qo("0x28"),null),this.set(Qo("0x18"),!1),this[Qo("0x39")](Qo("0x1d")),this[Qo("0x39")]("discard")}get head(){let t=this;for(;t.previous;)t=t[Qo("0x14")];return t}get[Qo("0xa")](){return!!this[Qo("0x28")]&&this[Qo("0x28")][Qo("0x24")]>0}get isMultiRange(){return 0!=this[Qo("0x17")].size&&6==Array[Qo("0x3c")](this[Qo("0x17")])[0][Qo("0x26")](":")[Qo("0x24")]}get[Qo("0xb")](){return null!==this[Qo("0x19")]()}[Qo("0x2a")](t){this[Qo("0x17")][Qo("0x2b")](t)}[Qo("0x13")](){return Array.from(this[Qo("0x17")])}[Qo("0x2f")](){return this[Qo("0x13")]().map((t=>this[Qo("0x27")].markers[Qo("0x8")](t)))[Qo("0x29")]((t=>t))}[Qo("0x19")](){return this[Qo("0x2f")]()[0]||null}[Qo("0x1b")](){this[Qo("0x27")][Qo("0x21")]((t=>{for(const e of this[Qo("0x2f")]())t[Qo("0x2")](e)})),this[Qo("0x17")].clear()}[Qo("0x2")](t){this[Qo("0x27")][Qo("0x21")]((e=>{e[Qo("0x2")](t)})),this[Qo("0x17")][Qo("0x3a")](t)}[Qo("0xd")](t){const e=Qo("0x0")+this[Qo("0x20")]+":"+this.subType+":"+this.id+":"+this[Qo("0x25")].id+":"+Zo[Qo("0x3e")]();this[Qo("0x2a")](e),this._model[Qo("0x21")]((n=>{n[Qo("0x5")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Qo("0x7")](t){for(const e of this[Qo("0x35")]())if(e[Qo("0x6")](t))return!0;return!1}[Qo("0x35")](){return this[Qo("0x2f")]()[Qo("0x3")]((t=>t[Qo("0x32")]()))}[Qo("0x1a")](){return this[Qo("0x35")]()[Qo("0x4")](((t,e)=>[...t,...e[Qo("0x1a")]()]),[])}[Qo("0x3d")](){var t;return(null===(t=this[Qo("0x19")]())||void 0===t?void 0:t.getRange())||null}[Qo("0x1c")](){const t=this[Qo("0x35")]();if(1!=t.length)return null;const e=t[0],n=e[Qo("0x15")][Qo("0x3b")],o=e.end[Qo("0xe")];return n instanceof i.Element?n!=o?null:n:null}[Qo("0x1d")](){this[Qo("0x23")](this[Qo("0x35")](),this[Qo("0x9")],this[Qo("0x10")]),this[Qo("0x1b")]()}discard(){this._onDiscard(this[Qo("0x35")](),this.data,this[Qo("0x10")]),this[Qo("0x1b")]()}[Qo("0x16")](){const t=[];let e=this[Qo("0x30")];for(;e;)t[Qo("0x2d")](e),e=e[Qo("0x1e")];return t}[Qo("0x38")](t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Qo("0x10")])||(this[Qo("0x10")]=n,this._onAttributesChange(n))}[Qo("0x1f")](t){const e=eo(this[Qo("0x10")]);qo(e,t),Go(e,this[Qo("0x10")])||(this[Qo("0x10")]=e,this[Qo("0x36")](this[Qo("0x10")]))}toJSON(){return{id:this.id,type:this[Qo("0x1")]?this.type+":"+this[Qo("0x1")]:this[Qo("0x20")],authorId:this.creator.id,createdAt:this[Qo("0x34")],hasComments:this[Qo("0xa")],data:this[Qo("0x9")],attributes:this[Qo("0x10")]}}static[Qo("0x3e")](){return(0,e.uid)()[Qo("0x12")](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=["end","skip","match","previousSibling","deletion","type","normal","getItemLabel","isInContent","isEmpty","registerDescriptionCallback","push","checkChild","isObject","nextSibling","function","length","element","Object","isEqual","start","text","quantity","insertion","remove","data","replace","REPLACE_TEXT","item","*Insert:* %0","getWalker","_itemLabels","_itemLabelsCallbacks","*Split:* %0","_customCallbacks","elementEnd","add","removeObject","ELEMENT_SPACE","name","getDescriptions","get","_schema","_addDescriptionItems","Container","_resolveDescriptionItems","addObject","indexOf","getFirstRange","elementStart","removeEmptyContainer","_locale","*Remove:* %0","addContainer","registerElementLabel","$1 $2"];var es,ns;es=ts,ns=135,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class ss{constructor(t,e){this[os("0xb")]=[],this[os("0x8")]=new Map,this[os("0x9")]=[],this._schema=t,this[os("0x1c")]=e}[os("0x11")](t){const e=[];for(let n=0;n<t[os("0x31")];n++){const o=t[n];if(!o[os("0x29")])continue;let s=!1;for(const t of this[os("0xb")]){const n=t(o);if(n){"type"in n&&e[os("0x2c")](n),s=!0;break}}if(!s){this[os("0x14")](e,o);const s=t[n+1];if(s&&!o[os("0x19")]()[os("0x21")][os("0x34")](s[os("0x19")]()[os("0x35")])){const t=e[e.length-1],n=os("0x0")==o.type?os("0xd"):"remove";t&&"text"==t.type&&(t[n]+="\n")}}}return this._resolveDescriptionItems(e)}[os("0x2b")](t){this[os("0xb")][os("0x2c")](t)}[os("0x1f")](t,n,o=e.priorities[os("0x27")]){os("0x30")==typeof t?(0,e.insertToPriorityArray)(this._itemLabelsCallbacks,{matchingCallback:t,label:n,priority:o}):this[os("0x8")].set(t,n)}[os("0x28")](t,e=1){let n;for(const e of this[os("0x9")])if(e.matchingCallback(t)){n=e.label;break}return n||(n=this[os("0x8")][os("0x12")](t.name)),n?n(e):1!==e?e+" "+t[os("0x10")]+"s":""+t.name}_addDescriptionItems(t,e){const n=e[os("0x19")]()[os("0x7")](),o=os("0x0")==e[os("0x26")]?os("0xd"):os("0x1");for(const e of n){const s=e[os("0x5")],r=t[t[os("0x31")]-1];if(s.is("$textProxy"))r&&r.type.indexOf(os("0x15"))>-1&&t.pop(),r&&os("0x36")==r.type?r[o]+=s[os("0x2")]:t[os("0x2c")]({type:os("0x36"),add:os("0xd")==o?s[os("0x2")]:"",remove:"remove"==o?s[os("0x2")]:""});else if(this[os("0x13")][os("0x2e")](s)){const i=s;if(r&&r.type[os("0x18")]("Container")>-1&&t.pop(),os("0xc")==e[os("0x26")])continue;r&&r.type==o+os("0x33")&&r[os("0x32")][os("0x10")]==i[os("0x10")]?r[os("0x37")]++:t[os("0x2c")]({type:o+os("0x33"),element:i,quantity:1}),n[os("0x22")]((t=>!(os("0xc")==t[os("0x26")]&&t.item==s)))}else if(this[os("0x13")][os("0x2d")](s,"$text")||s.is("element","softBreak")){const n=s;if(os("0xd")==o&&os("0x1a")==e[os("0x26")]||os("0x1")==o&&"elementEnd"==e[os("0x26")])continue;if(r&&-1==r[os("0x26")][os("0x18")](os("0x15"))){os("0x36")==r.type&&(r[o]+="\n");continue}let i;if(i=os("0xd")==o?n[os("0x2f")]&&!this[os("0x13")][os("0x2e")](n[os("0x2f")])?n.nextSibling:null:n[os("0x24")]&&!this[os("0x13")][os("0x2e")](n[os("0x24")])?n.previousSibling:null,n[os("0x2a")]||i&&i[os("0x2a")]){const e=i&&i.isEmpty?i:n;r&&r[os("0x26")]==o+"EmptyContainer"&&r[os("0x32")][os("0x10")]==e[os("0x10")]?r[os("0x37")]++:t.push({type:o+"EmptyContainer",element:e,quantity:1})}else t[os("0x2c")]({type:o+os("0x15"),element:n})}}}[os("0x16")](t){const e=this[os("0x1c")],n=[];for(const o of t){switch(o[os("0x26")]){case os("0x36"):if(o[os("0xd")]=o[os("0xd")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x3")](/\u000A/g,""),o.remove=o[os("0x1")][os("0x3")](/(\S)\u000A+(\S)/g,os("0x20"))[os("0x3")](/\u000A/g,""),""!=o.add&&""!=o[os("0x1")]){n[os("0x2c")]({type:os("0x3"),content:Yo(e,os("0x4"),['"'+o.remove+'"','"'+o[os("0xd")]+'"'])});continue}if(null!=o[os("0xd")][os("0x23")](/^ +$/)){n[os("0x2c")]({type:"insertion",content:Yo(e,"*Insert:* %0",Yo(e,os("0xf"),o.add[os("0x31")]))});continue}if(null!=o.remove[os("0x23")](/^ +$/)){n[os("0x2c")]({type:os("0x25"),content:Yo(e,os("0x1d"),Yo(e,os("0xf"),o[os("0x1")].length))});continue}if(""!=o[os("0xd")]){n[os("0x2c")]({type:"insertion",content:Yo(e,os("0x6"),'"'+o[os("0xd")]+'"')});continue}n[os("0x2c")]({type:os("0x25"),content:Yo(e,os("0x1d"),'"'+o[os("0x1")]+'"')});continue;case"addEmptyContainer":case os("0x17"):n.push({type:os("0x0"),content:Yo(e,os("0x6"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case os("0x1b"):case os("0xe"):n.push({type:os("0x25"),content:Yo(e,os("0x1d"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case os("0x1e"):n[os("0x2c")]({type:os("0x0"),content:Yo(e,os("0xa"),this[os("0x28")](o[os("0x32")],o[os("0x37")]))});continue;case"removeContainer":n.push({type:os("0x25"),content:Yo(e,"*Merge:* %0",this[os("0x28")](o.element,o[os("0x37")]))});continue}n[os("0x2c")](o)}return n}}const rs=["alignment","locale","value","_descriptionFactory","afterInit","FORMAT_JUSTIFY_TEXT","get","from","document","center","change","commandParams","FORMAT_ALIGN_TO_CENTER","selection","enableCommand","markBlockFormat","model","getAttribute","right","filter","plugins","has","AlignmentEditing","left","editor","*Format:* %0","contentLanguageDirection"];var is,xs;is=rs,xs=220,function(t){for(;--t;)is.push(is.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x0")](){const t=this.editor,e=t[as("0x18")];if(!t.plugins[as("0x11")](as("0x12")))return;const n=t[as("0x10")][as("0x2")]("TrackChangesEditing");n[as("0xa")](as("0x17"),((e,o={})=>{let s=o[as("0x19")];o[as("0x19")]||(s="ltr"===t[as("0x18")][as("0x16")]?as("0x13"):as("0xe"));const r=Array[as("0x3")](this.editor[as("0xc")][as("0x4")][as("0x9")].getSelectedBlocks())[as("0xf")]((t=>function(t,e,n){const o=t[as("0xd")](as("0x17"))||null;return e.checkAttribute(t,as("0x17"))&&n!=o}(t,this[as("0x14")][as("0xc")].schema,s)));t[as("0xc")][as("0x6")]((()=>{for(const t of r)n[as("0xb")](t,{commandName:"alignment",commandParams:[{value:s}]})}))})),n[as("0x1a")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&as("0x17")==n.commandName){const t=n[as("0x7")][0][as("0x19")];return{type:"format",content:Yo(e,as("0x15"),function(t){switch(t){case as("0x13"):return Yo(e,"FORMAT_ALIGN_TO_LEFT");case"right":return Yo(e,"FORMAT_ALIGN_TO_RIGHT");case as("0x5"):return Yo(e,as("0x8"));case"justify":return Yo(e,as("0x1"))}}(t))}}}))}}const ls=["elementEnd","mapper","isBlock","isContent","push","hasAttribute","start","writer","getItems","test","listItem","listIndent","nextSibling","getCustomProperty","previousPosition","element","markerRange","TrackChangesEditing","insert","toViewPosition","plugins","span","addClass","name","get","parent","getAttribute","isLimit","model","ck-suggestion-marker-","ck-suggestion-marker--active","type","consumable","toViewElement","markerName","createUIElement"];var ds,us;ds=ls,us=398,function(t){for(;--t;)ds.push(ds.shift())}(++us);const gs=function(t,e){return ls[t-=0]};function ms(t,e,n){const o=[];for(const s of e[gs("0x6")]())s[gs("0x3")](t)&&o[gs("0x2")](n.createRangeOn(s));return o}function fs(t){const e=[];if(t.is(gs("0xd"),gs("0x8"))){let n=t[gs("0xa")];for(;n&&n.is(gs("0xd"),"listItem")&&n[gs("0x18")](gs("0x9"))>0;)e[gs("0x2")](n),n=n[gs("0xa")]}return e}function hs(t,e,{showActiveMarker:n=!0}={}){const o=t[gs("0x12")][gs("0x16")](gs("0xf"));return(s,r,i)=>{if(!i[gs("0x1e")][gs("0x7")](r.markerRange,s[gs("0x15")]))return;const x=r[gs("0xe")].getWalker(),a=r.markerRange[gs("0x4")],c=t[gs("0x1a")].schema;let l=null,d=null,u=!1,g=!1;for(const t of x){const e=t.item;u=u||c[gs("0x1")](e);const n=i.mapper[gs("0x1f")](e);if(n&&n[gs("0xb")]("addHighlight"))return;gs("0x22")==t[gs("0x1d")]&&c[gs("0x0")](e)&&!c[gs("0x19")](e)&&(e[gs("0xa")]||a.isAtEnd?l&&l[gs("0x17")]==e||(l=e,m(t.previousPosition),g=!0):d=d||t[gs("0xc")])}function m(t){const s=i[gs("0x5")][gs("0x21")](gs("0x13"),{class:gs("0x1b")+e}),x=i[gs("0x23")][gs("0x11")](t);n&&o.activeMarkers.includes(r[gs("0x20")])&&i[gs("0x5")][gs("0x14")](gs("0x1c"),s),i[gs("0x5")][gs("0x10")](x,s),i[gs("0x23")].bindElementToMarker(s,r[gs("0x20")])}u||g||!d||m(d)}}const ps=["document","isCollapsed","enableCommand","has","model","commandName","registerDescriptionCallback","locale","SuperscriptEditing","FORMAT_SUBSCRIPT","change","getRanges","strikethrough","FORMAT_ITALIC","get","format","bold","toLowerCase","slice","BoldEditing","afterInit","italic","commands","plugins","ItalicEditing","FORMAT_UNDERLINE","value","FORMAT_CODE","_descriptionFactory","StrikethroughEditing","CodeEditing","from","forceValue"];var bs,Es;bs=ps,Es=435,function(t){for(;--t;)bs.push(bs.shift())}(++Es);const _s=function(t,e){return ps[t-=0]},Ts=[_s("0xd"),_s("0x12"),"UnderlineEditing",_s("0x18"),_s("0x17"),"SubscriptEditing",_s("0x2")];class ys extends t.Plugin{[_s("0xe")](){const t=this.editor,e=t[_s("0x1f")],n=t[_s("0x11")][_s("0x8")]("TrackChangesEditing"),o=t[_s("0x1")];for(const o of Ts){if(!t[_s("0x11")][_s("0x1e")](o))continue;const s=o[_s("0xc")](0,-7)[_s("0xb")](),r=t[_s("0x10")][_s("0x8")](s);n[_s("0x1d")](s,((t,o={})=>{const i=e[_s("0x1b")].selection;if(i[_s("0x1c")])return void t(o);const x=void 0!==o[_s("0x1a")]?o.forceValue:!r[_s("0x14")];e[_s("0x4")]((()=>{const t=Array[_s("0x19")](i[_s("0x5")]());for(const o of t){const t=x?[o]:ms(s,o,e);for(const e of t)n.markInlineFormat(e,{commandName:s,commandParams:[{forceValue:x}]})}}))}))}function s(t,e){n[_s("0x16")][_s("0x0")]((n=>{const{data:s}=n;if(s&&s[_s("0x20")]===t)return s.commandParams[0][_s("0x1a")]?{type:_s("0x9"),content:Yo(o,"*Format:* %0",e)}:{type:_s("0x9"),content:Yo(o,"*Remove format:* %0",e)}}))}s(_s("0xa"),Yo(o,"FORMAT_BOLD")),s(_s("0xf"),Yo(o,_s("0x7"))),s("underline",Yo(o,_s("0x13"))),s("code",Yo(o,_s("0x15"))),s(_s("0x6"),Yo(o,"FORMAT_STRIKETHROUGH")),s("subscript",Yo(o,_s("0x3"))),s("superscript",Yo(o,"FORMAT_SUPERSCRIPT"))}}const Cs=["enableCommand","change","markBlockFormat","from","has","filter","name","blockQuote","selection","model","editor","*Remove format:* %0","_descriptionFactory","parent","document","checkChild","BlockQuoteEditing","get","plugins","commandName","commands","commandParams","forceValue","format","getSelectedBlocks","locale"];var ks,As;ks=Cs,As=212,function(t){for(;--t;)ks.push(ks.shift())}(++As);const vs=function(t,e){return Cs[t-=0]};class Rs extends t.Plugin{afterInit(){const t=this[vs("0x6")],e=t[vs("0x15")];if(!t[vs("0xe")][vs("0x0")](vs("0xc")))return;const n=t[vs("0xe")][vs("0xd")]("TrackChangesEditing"),o=this[vs("0x6")][vs("0x10")][vs("0xd")](vs("0x3"));n[vs("0x16")](vs("0x3"),((e,s={})=>{const r=this.editor[vs("0x5")][vs("0xa")][vs("0x4")],i=s&&void 0!==s[vs("0x12")]?s[vs("0x12")]:!o.value;let x=[];if(i){const e=Array[vs("0x19")](r.getSelectedBlocks())[vs("0x1")]((t=>Is(t)||function(t,e){const n=e[vs("0xb")](t[vs("0x9")],vs("0x3")),o=e[vs("0xb")](["$root",vs("0x3")],t);return n&&o}(t,this[vs("0x6")].model.schema)));x=I(e,t.model)}else{const e=Array.from(r[vs("0x14")]()).filter((t=>Is(t)));x=I(e,t[vs("0x5")])}t[vs("0x5")][vs("0x17")]((()=>{for(const t of x)n[vs("0x18")](t,{commandName:vs("0x3"),commandParams:[{forceValue:i}]})}))})),n[vs("0x8")].registerDescriptionCallback((t=>{const{data:n}=t;if(n&&vs("0x3")==n[vs("0xf")]){const t=Yo(e,"ELEMENT_BLOCK_QUOTE");return n[vs("0x11")][0][vs("0x12")]?{type:vs("0x13"),content:Yo(e,"*Format:* %0",t)}:{type:vs("0x13"),content:Yo(e,vs("0x7"),t)}}}))}}function Is(t){return vs("0x3")==t.parent[vs("0x2")]}const Ss=["afterInit","enableCommand","ckbox","get","plugins"];var Ls,Ns;Ls=Ss,Ns=184,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ns);const Ms=function(t,e){return Ss[t-=0]};class ws extends t.Plugin{[Ms("0x1")](){const t=this.editor;t.commands.get(Ms("0x3"))&&t[Ms("0x0")][Ms("0x4")]("TrackChangesEditing")[Ms("0x2")](Ms("0x3"))}}const Os=["commandParams","from","enableCommand","language","model","plugins","registerElementLabel","commandName","codeBlock","checkChild","value","label","CodeBlock","commands","registerDescriptionCallback","schema","config","rootElement","languages","document","markBlockFormat","*Remove format:* %0","ELEMENT_CODE_BLOCK","outdentCodeBlock","blockName","isLimit","find","change","*Format:* %0","formatBlock","locale","get","afterInit","filter","forceValue","editor","getSelectedBlocks","format"];var Fs,Ps;Fs=Os,Ps=145,function(t){for(;--t;)Fs.push(Fs.shift())}(++Ps);const Ds=function(t,e){return Os[t-=0]};class Bs extends t.Plugin{[Ds("0x1")](){const t=this[Ds("0x4")];if(!t[Ds("0xc")].has(Ds("0x13")))return;const e=t[Ds("0xc")][Ds("0x0")]("TrackChangesEditing"),n=t[Ds("0x25")],o=t[Ds("0x17")][Ds("0x0")](Ds("0xf"))[Ds("0x19")],s=t[Ds("0x14")][Ds("0x0")](Ds("0xf"));e[Ds("0x9")]("indentCodeBlock"),e[Ds("0x9")](Ds("0x1e")),e[Ds("0x9")](Ds("0xf"),((n,r={})=>{const i=t[Ds("0xb")],x=t[Ds("0xb")][Ds("0x1a")].selection,a=r&&void 0!==r[Ds("0x3")]?r[Ds("0x3")]:!s[Ds("0x11")];let c;r[Ds("0xa")]||(r[Ds("0xa")]=o[0].language),c=a?Array[Ds("0x8")](x.getSelectedBlocks())[Ds("0x2")]((t=>{return js(t)||(e=t,n=i[Ds("0x16")],!e.is(Ds("0x18"))&&!n[Ds("0x20")](e)&&n[Ds("0x10")](e.parent,Ds("0xf")));var e,n})):Array[Ds("0x8")](x[Ds("0x5")]())[Ds("0x2")]((t=>js(t)));const l=I(c,i);i[Ds("0x22")]((()=>{for(const t of l)e[Ds("0x1b")](t,{commandName:Ds("0xf"),commandParams:[{...r,forceValue:a}],formatGroupId:Ds("0x1f")})}))})),e._descriptionFactory[Ds("0xd")](Ds("0xf"),(t=>Yo(n,Ds("0x1d"),t))),e._descriptionFactory[Ds("0x15")]((t=>{const e=n.t,{type:s,data:r}=t;if(Ds("0x24")==s&&r&&"codeBlock"==r[Ds("0xe")]){const t=r.commandParams[0].language,s=e(o[Ds("0x21")]((e=>e.language===t))[Ds("0x12")]);return r[Ds("0x7")][0][Ds("0x3")]?{type:Ds("0x6"),content:Yo(n,Ds("0x23"),Yo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:"format",content:Yo(n,Ds("0x1c"),Yo(n,Ds("0x1d"),1))}}}))}}function js(t){return Ds("0xf")==t.name}const Us=["addCommentThread","plugins","CommentsEditing","get","has","editor","afterInit","enableCommand"];var Gs,Hs;Gs=Us,Hs=397,function(t){for(;--t;)Gs.push(Gs.shift())}(++Hs);const zs=function(t,e){return Us[t-=0]};class Ws extends t.Plugin{[zs("0x1")](){const t=this[zs("0x0")];t[zs("0x4")][zs("0x7")](zs("0x5"))&&t[zs("0x4")][zs("0x6")]("TrackChangesEditing")[zs("0x2")](zs("0x3"))}}var Vs=n(181);const Ks=["editing","high","$graveyard","root","editor","setSelection","unlock","unit","unbindElementFromMarkerName","delete","get","createRange","options","init","merge","addMarker:suggestion:deletion","downcastDispatcher","showSuggestionHighlights","document","enqueueChange","end","TrackChangesEditing","batch","deleteForward","forward","buffer","detach","mapper","createSelection","remove","plugins","enableCommand","getFirstRange","writer","rootName","uiElement","start","selection","removeMarker:suggestion:deletion","requires","model","markerName"];var qs,Xs;qs=Ks,Xs=368,function(t){for(;--t;)qs.push(qs.shift())}(++Xs);const $s=function(t,e){return Ks[t-=0]};class Js extends t.Plugin{static get[$s("0x7")](){return[Vs.Delete]}[$s("0x17")](){const t=this[$s("0xe")],e=t[$s("0x28")][$s("0x14")]($s("0x1f"));e[$s("0x29")]($s("0x13"));const n=t.commands.get("deleteForward");e[$s("0x29")]($s("0x21"),((e,o={})=>{const s=t.model[$s("0x26")](t[$s("0x8")][$s("0x1c")][$s("0x5")]);s.isCollapsed&&t.model.modifySelection(s,{direction:$s("0x22"),unit:o[$s("0x11")]});const r=s[$s("0x0")](),x=i.LiveRange.fromRange(r);let a;e(o),a=$s("0xc")==x[$s("0xd")][$s("0x2")]?t[$s("0x8")].createRange(r[$s("0x4")]):t[$s("0x8")][$s("0x15")](x[$s("0x4")],x[$s("0x1e")]),x[$s("0x24")](),t[$s("0x8")][$s("0x1d")](n[$s("0x23")][$s("0x20")],(t=>{n[$s("0x23")].lock(),t[$s("0xf")](t[$s("0x15")](a[$s("0x1e")])),n[$s("0x23")][$s("0x10")]()}))})),t[$s("0xa")][$s("0x1a")].on("addMarker:suggestion:deletion",hs(t,$s("0x18")),{priority:"high"}),t.data[$s("0x1a")].on($s("0x19"),((e,n,o)=>{o[$s("0x16")][$s("0x1b")]&&hs(t,"merge",{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:"high"}),t[$s("0xa")][$s("0x1a")].on($s("0x6"),((t,e,n)=>{const o=n[$s("0x25")].markerNameToElements(e[$s("0x9")]);if(o)for(const t of o)t.is($s("0x3"))&&(n[$s("0x25")][$s("0x12")](t,e.markerName),n[$s("0x1")][$s("0x27")](t))}),{priority:$s("0xb")})}}const Qs=["createPositionAt","ELEMENT_NUMBERED_LIST","listType","ELEMENT_","plugins","previousSibling","after","commandName","get","_LIST","selection","from","multipleBlocks","model","ELEMENT_LIST_ITEM","numberedList","push","locale","change","DocumentListUtils","*Merge:* %0","splitListItemAfter","TrackChangesEditing","getFirstRange","splitListItemBefore","hasAttribute","editor","map","accept","execute","*Change to:* %0","DocumentListEditing","slice","indentList","registerElementLabel","commands","getSelectedBlocks","mergeListItemBackward","deletion","*Format:* remove from %0","end","nodeAfter","createRange","listIndent","format","document","toUpperCase","forceValue","length","outdentList","before","ELEMENT_BULLETED_LIST","schema","afterInit","bulletedList","listItemId","value","formatBlock","markMultiRangeBlockFormat","expandListBlocksToCompleteList","markBlockFormat","registerDescriptionCallback","registerCustomCallback","isObject","nextSibling","setSelection","getAttribute","commandParams","_suggestionFactory","_descriptionFactory","documentList","findIndex","*Format:* insert into %0","mergeListItemForward","start","refresh","add","fromRange","enableCommand"];var Zs,Ys;Zs=Qs,Ys=244,function(t){for(;--t;)Zs.push(Zs.shift())}(++Ys);const tr=function(t,e){return Qs[t-=0]};class er extends t.Plugin{[tr("0x2e")](){const t=this[tr("0x13")];if(!t[tr("0x4c")].has(tr("0x18")))return;const e=t[tr("0xa")],n=t.plugins[tr("0x1")](tr("0xf")),o=t[tr("0x4c")].get(tr("0xc"));function s(e){return()=>{const s=t.commands[tr("0x1")](e);let r=Array.from(t[tr("0x6")][tr("0x26")][tr("0x3")][tr("0x1d")]());if(a(e)){r=o[tr("0x34")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t.push(e);r=t}t[tr("0x6")].change((()=>{n[tr("0x33")](r,{commandName:e,commandParams:[{forceValue:!s[tr("0x31")]}],formatGroupId:tr("0x4a")},[],"documentList")}))}}function r(e){return()=>{const o=function(t){let e=Array[tr("0x4")](t);const n=e[tr("0x40")]((t=>!t[tr("0x12")](tr("0x30"))));return n>-1&&(e=e[tr("0x19")](0,n)),e}(t[tr("0x6")].document.selection[tr("0x1d")]()),s=o[o[tr("0x29")]-1],r=t[tr("0x6")][tr("0x2d")][tr("0x38")](s)?tr("0x4e"):tr("0x21"),i=t[tr("0x6")][tr("0x23")](t[tr("0x6")].createPositionAt(o[0],tr("0x2b")),t.model[tr("0x48")](s,r));t.model[tr("0xb")]((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:tr("0x4a")},function(t){const e=new Set;for(const n of t){let t=n[tr("0x39")];for(;t&&t.getAttribute(tr("0x24"))>n[tr("0x3b")](tr("0x24"));)e[tr("0x45")](t),t=t[tr("0x39")]}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[tr("0x6")].document[tr("0x3")][tr("0x1d")]().next()[tr("0x31")],s=t.model[tr("0x48")](o,tr("0x2b")),r=t[tr("0x6")].createPositionAt(o,0),i=t[tr("0x6")][tr("0x23")](s,r);t.model.change((()=>{n[tr("0x35")](i,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands[tr("0x1")](tr("0x2f"))[tr("0x31")],o=t[tr("0x1c")][tr("0x1")](tr("0x8"))[tr("0x31")];return"numberedList"===e?n:o}n[tr("0x47")]("numberedList",s(tr("0x8"))),n[tr("0x47")](tr("0x2f"),s(tr("0x2f"))),n[tr("0x47")](tr("0x1a"),r("indentList")),n[tr("0x47")](tr("0x2a"),r(tr("0x2a"))),n[tr("0x47")](tr("0xe"),x(tr("0xe"))),n[tr("0x47")]("splitListItemBefore",x(tr("0x11"))),n._descriptionFactory[tr("0x1b")]((function(e){const n=!t[tr("0x6")][tr("0x2d")][tr("0x38")](e),o=e[tr("0x4d")],s=e[tr("0x39")],r=e[tr("0x3b")](tr("0x30")),i=!o||o[tr("0x3b")](tr("0x30"))!==r,x=!s||s[tr("0x3b")]("listItemId")!==r;return n&&Boolean(r)&&i&&x}),(t=>Yo(e,tr("0x7"),t))),n[tr("0x3e")][tr("0x36")]((function(t){const{data:n}=t;if(!n)return;let o,s,r,i;switch(n[tr("0x0")]){case tr("0x2f"):r=n[tr("0x3c")][0][tr("0x28")],i=a(n[tr("0x0")]),o=tr(r?"0x41":"0x20"),i&&(o=tr("0x17")),s={type:"format",content:Yo(e,o,Yo(e,tr("0x2c")))};break;case tr("0x8"):r=n[tr("0x3c")][0][tr("0x28")],i=a(n.commandName),o=tr(r?"0x41":"0x20"),i&&(o=tr("0x17")),s={type:tr("0x25"),content:Yo(e,o,Yo(e,tr("0x49")))};break;case"indentList":o="*Indent:* %0",s={type:"format",content:Yo(e,o,Yo(e,tr("0x7")))};break;case tr("0x2a"):o=function(t){const e=t.getFirstRange();let n=e[tr("0x43")].nodeAfter;for(;n&&e.containsItem(n);){if(n.getAttribute(tr("0x24"))>0)return!1;n=n.nextSibling}return!0}(t)?Yo(e,"*Format:* remove from %0",Yo(e,function(t){const e=t[tr("0x10")]()[tr("0x43")][tr("0x22")];return tr("0x4b")+e[tr("0x3b")](tr("0x4a"))[tr("0x27")]()+tr("0x2")}(t))):Yo(e,"*Outdent:* %0",Yo(e,tr("0x7"))),s={type:tr("0x25"),content:o};break;case tr("0x1e"):case tr("0x42"):!1===n[tr("0x5")]&&(o=tr("0xd"),s={type:tr("0x1f"),content:Yo(e,o,Yo(e,"ELEMENT_LIST_ITEM"))})}return s})),n[tr("0x3d")][tr("0x37")](tr("0x32"),tr("0x3f"),tr("0x15"),(function(e,n){const o=[];for(let n of e)n.start[tr("0x22")]===n[tr("0x21")].parent&&(n=t[tr("0x6")][tr("0x23")](t.model[tr("0x48")](n[tr("0x43")].nodeAfter,0))),o.push(n);t[tr("0x6")][tr("0xb")]((e=>{const s=t[tr("0x6")].document[tr("0x3")],r=Array.from(s.getRanges())[tr("0x14")]((t=>i.LiveRange[tr("0x46")](t)));e[tr("0x3a")](o),t[tr("0x1c")][tr("0x1")](n[tr("0x0")])[tr("0x44")](),n.commandParams[tr("0x9")]({forceDefaultExecution:!0}),t[tr("0x16")](n.commandName,...n[tr("0x3c")]),e[tr("0x3a")](r);for(const t of r)t.detach()}))}))}}var nr=n(331);const or=["TrackChangesEditing","remove","parent","data","addMarker:suggestion:insertion","document","getFirstRange","options","createRange","ck-suggestion-marker-split","createPositionAt","fire","model","bind","plugins","enter","init","fromRange","markerNameToElements","editing","markInsertion","end","unbindElementFromMarkerName","split","setSelection","removeMarker:suggestion:insertion","markerName","change","downcastDispatcher","detach","getFirstPosition","writer","selection","mapper","get","nextSibling","requires"];var sr,rr;sr=or,rr=194,function(t){for(;--t;)sr.push(sr.shift())}(++rr);const ir=function(t,e){return or[t-=0]};class xr extends t.Plugin{static get[ir("0x1b")](){return[nr.Enter]}[ir("0x7")](){const t=this.editor,e=t[ir("0x5")][ir("0x19")](ir("0x1c")),n=t.commands[ir("0x19")]("enter");e.enableCommand(ir("0x6"),(()=>{t[ir("0x3")][ir("0x12")]((o=>{const s=t[ir("0x3")][ir("0x21")][ir("0x17")],r=s[ir("0x15")](),x=i.LiveRange[ir("0x8")](s[ir("0x22")]());if(n.enterBlock(o)){const n=t[ir("0x3")][ir("0x1")](r[ir("0x1e")][ir("0x1a")],0),s=o.createRange(r,n);e[ir("0xb")](s)}else o[ir("0xf")](o[ir("0x24")](x[ir("0xc")]));x[ir("0x14")](),n[ir("0x2")]("afterExecute",{writer:o})}))})),t[ir("0xa")][ir("0x13")].on(ir("0x20"),hs(t,ir("0xe")),{priority:"high"}),t[ir("0xa")][ir("0x13")].on(ir("0x10"),((t,e,n)=>{const o=n[ir("0x18")][ir("0x9")](e[ir("0x11")]);if(o)for(const t of o)t.hasClass(ir("0x0"))&&(n[ir("0x18")][ir("0xd")](t,e[ir("0x11")]),n[ir("0x16")][ir("0x1d")](t))}),{priority:"high"}),t[ir("0x1f")][ir("0x13")].on(ir("0x20"),((e,n,o)=>{o[ir("0x23")].showSuggestionHighlights&&hs(t,ir("0xe"),{showActiveMarker:!1})[ir("0x4")](this)(e,n,o)}),{priority:"high"})}}const ar=["createPositionAt","get","FindAndReplaceUtils","TrackChangesEditing","bind","getRange","createRange","_isInDeletionRange","replace","getIntersection","findPrevious","markers","model","find","enableCommand","FindAndReplaceEditing","replaceAll","findByTextCallback","string","editor","end","item","start","has","filter","handleFindCommand","getMarkersGroup","findNext","suggestion:deletion","plugins"];var cr,lr;cr=ar,lr=108,function(t){for(;--t;)cr.push(cr.shift())}(++lr);const dr=function(t,e){return ar[t-=0]};class ur extends t.Plugin{afterInit(){if(!this.editor.plugins[dr("0x5")](dr("0x1b")))return;const t=this[dr("0x1")][dr("0xb")][dr("0xd")](dr("0xf"));t[dr("0x1a")](dr("0x19"),this[dr("0x7")][dr("0x10")](this)),t[dr("0x1a")](dr("0x9")),t[dr("0x1a")](dr("0x16")),t[dr("0x1a")](dr("0x14")),t[dr("0x1a")](dr("0x1c"))}handleFindCommand(t,e,n={}){const o=this.editor[dr("0xb")][dr("0xd")](dr("0xe"));void 0!==n&&t((t=>(dr("0x0")==typeof e?o[dr("0x1d")](e,n):e)(t)[dr("0x6")]((e=>!1===this[dr("0x13")](e,t[dr("0x3")])))),n)}[dr("0x13")](t,e){const n=this[dr("0x1")][dr("0x18")][dr("0x12")](this[dr("0x1")][dr("0x18")][dr("0xc")](e,t[dr("0x4")]),this[dr("0x1")][dr("0x18")][dr("0xc")](e,t[dr("0x2")]));for(const t of this.editor.model[dr("0x17")][dr("0x8")](dr("0xa")))if(null!==n[dr("0x15")](t[dr("0x11")]()))return!0;return!1}}const gr=["label","change","commandName","fontBackgroundColor.colors","*Set font color:* %0","config","fontColor","enableCommand","_descriptionFactory","fontColor.colors","fontSize","format","_enableCommand","normalizeSizeOptions","TrackChangesEditing","markInlineFormat","plugins","*Set font background color:* %0","commandParams","editor","fontBackgroundColor","find","document","fontFamily","has","model","afterInit","FontBackgroundColorEditing","*Reset font family*","value","isCollapsed","FontFamilyEditing","*Reset font color*","FontColorEditing","selection","get","trim","toLowerCase","*Reset font background color*"];var mr,fr;mr=gr,fr=373,function(t){for(;--t;)mr.push(mr.shift())}(++fr);const hr=function(t,e){return gr[t-=0]},pr=[{pluginName:"FontSizeEditing",commandName:hr("0x1b")},{pluginName:hr("0x9"),commandName:hr("0x1")},{pluginName:hr("0xb"),commandName:hr("0x17")},{pluginName:hr("0x5"),commandName:hr("0x25")}];class br extends t.Plugin{[hr("0x4")](){const t=this[hr("0x24")].locale;for(const{pluginName:t,commandName:e}of pr)this[hr("0x24")][hr("0x21")][hr("0x2")](t)&&this[hr("0x1d")](e);this[hr("0x24")][hr("0x21")].get(hr("0x1f"))[hr("0x19")].registerDescriptionCallback((e=>{const n=t.t,{data:o}=e;if(null!=o){if(hr("0x1b")==o.commandName){const e=o[hr("0x23")][0][hr("0x7")];if(e){const o=n(this.editor[hr("0x21")].get("FontSize")[hr("0x1e")](this[hr("0x24")][hr("0x16")][hr("0xd")]("fontSize.options"))[hr("0x26")]((t=>t[hr("0x3")]==e)).title)[hr("0xf")]();return{type:"format",content:Yo(t,"*Set font size:* %0",o)}}return{type:"format",content:Yo(t,"*Reset font size*")}}if(hr("0x1")==o[hr("0x13")]){const e=o[hr("0x23")][0][hr("0x7")];return e?{type:hr("0x1c"),content:Yo(t,"*Set font family:* %0",e)}:{type:hr("0x1c"),content:Yo(t,hr("0x6"))}}if("fontColor"==o[hr("0x13")]){const e=o[hr("0x23")][0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x16")][hr("0xd")](hr("0x1a")))[hr("0x26")]((t=>t[hr("0x3")]==e));let r=e,i="";return o&&(r=o.label,i=n(r)[hr("0xf")]()),{type:hr("0x1c"),content:Yo(t,hr("0x15"),i)[hr("0xe")](),color:{value:e,title:i||r}}}return{type:"format",content:Yo(t,hr("0xa"))}}if("fontBackgroundColor"==o[hr("0x13")]){const e=o.commandParams[0].value;if(e){const o=(0,s.normalizeColorOptions)(this.editor[hr("0x16")][hr("0xd")](hr("0x14")))[hr("0x26")]((t=>t[hr("0x3")]==e));let r=e,i="";return o&&(r=o[hr("0x11")],i=n(r)[hr("0xf")]()),{type:"format",content:Yo(t,hr("0x22"),i)[hr("0xe")](),color:{value:e,title:i||r}}}return{type:hr("0x1c"),content:Yo(t,hr("0x10"))}}}}))}[hr("0x1d")](t){const e=this[hr("0x24")];e[hr("0x21")].get(hr("0x1f"))[hr("0x18")](t,((n,o={})=>{const s=e[hr("0x3")][hr("0x0")][hr("0xc")],r=o[hr("0x7")];s[hr("0x8")]?n(o):e[hr("0x3")][hr("0x12")]((()=>{const n=Array.from(s.getRanges());for(const o of n){const n=r?[o]:ms(t,o,e[hr("0x3")]);for(const o of n)e[hr("0x21")].get(hr("0x1f"))[hr("0x20")](o,{commandName:t,commandParams:[{value:r}]})}}))}))}}const Er=["get","*Remove all formatting*","backward","document","format","modifySelection","locale","getSelectedBlocks","isCollapsed","normalizeSizeOptions","getRanges","selection","createRange","length","commandName","join","fontColor","config","enableCommand","plugins","TrackChangesEditing","from","model","keys","afterInit","slice","commands","label","fontColor.colors","split","fontSize.options","toLowerCase","FontSize","createSelection","getAttributes","getFirstPosition","find","boolean","title","getAttributeProperties","commandParams","word","*Set format to:* %0","getItems","isFormatting","markInlineFormat","registerDescriptionCallback","fontBackgroundColor","pasteFormat","copyFormat"];var _r,Tr;_r=Er,Tr=111,function(t){for(;--t;)_r.push(_r.shift())}(++Tr);const yr=function(t,e){return Er[t-=0]};class Cr extends t.Plugin{[yr("0xd")](){const t=this.editor,n=t[yr("0xb")],o=n[yr("0x2a")][yr("0x0")],s=t.plugins.get("TrackChangesEditing"),r=t[yr("0x2d")],i=t[yr("0xf")][yr("0x27")](yr("0x26")),x=t[yr("0xf")][yr("0x27")](yr("0x25"));i&&x&&(s[yr("0x7")](yr("0x25"),((t,r={})=>{const i=r;n.change((()=>{const t=Array[yr("0xa")](o[yr("0x31")]()),r=o[yr("0x2f")]?[kr(n,o)]:t;if(!!(0,e.first)(function*(t,n){const o=t=>!!(0,e.first)(function*(t,e){for(const[n]of t[yr("0x17")]()){const t=e[yr("0x1c")](n);t&&t[yr("0x21")]&&(yield n)}}(t,n));for(const e of t.getRanges())for(const t of e[yr("0x20")]())!n.isBlock(t)&&o(t)&&(yield t);for(const e of t[yr("0x2e")]())o(e)&&(yield e);o(t)&&(yield t)}(o,n.schema))||0!==Object[yr("0xc")](i)[yr("0x2")])for(const t of r)s[yr("0x22")](t,{commandName:yr("0x25"),commandParams:[i]})}))})),s._descriptionFactory[yr("0x23")]((e=>{const{data:n}=e;if(n&&yr("0x25")===n[yr("0x3")]){const e=[],o=n[yr("0x1d")][0];for(const[n,s]of Object.entries(o))e.push(Ar(t,n,s));return e.length?{type:yr("0x2b"),content:Yo(r,yr("0x1f"),e[yr("0x4")](", "))}:{type:yr("0x2b"),content:Yo(r,yr("0x28"))}}})),t[yr("0x8")][yr("0x27")](yr("0x9"))[yr("0x7")](yr("0x26")))}}function kr(t,e){const n=t[yr("0x16")](e);t[yr("0x2c")](n,{unit:yr("0x1e"),direction:yr("0x29")});const o=n[yr("0x18")]();t.modifySelection(n,{unit:yr("0x1e"),direction:"forward"});const s=n.getLastPosition();return t[yr("0x1")](o,s)}function Ar(t,e,n){const o=t.locale.t,r=e[yr("0x12")](/(?=[A-Z])/)[yr("0x4")](" "),i=o(r.charAt(0).toUpperCase()+r[yr("0xe")](1))[yr("0x14")]();if(yr("0x1a")==typeof n)return i;if(yr("0x5")===e||yr("0x24")===e){const e=(0,s.normalizeColorOptions)(t[yr("0x6")][yr("0x27")](yr("0x11")))[yr("0x19")]((t=>t[yr("0xb")]==n));return i+" ("+(e?o(e[yr("0x10")]).toLowerCase():n)+")"}if("fontSize"===e&&isNaN(parseFloat(n))){const e=t.plugins.get(yr("0x15"))[yr("0x30")](t[yr("0x6")][yr("0x27")](yr("0x13"))).find((t=>t[yr("0xb")]==n));return i+" ("+(e?o(e[yr("0x1b")])[yr("0x14")]():n)+")"}return i+" ("+n+")"}const vr=["TrackChangesEditing","_descriptionFactory","title","heading","match","model","get","registerElementLabel","parent","afterInit","*Change to:* %0","editor","document","selection","schema","ELEMENT_HEADING","HeadingEditing","config","formatBlock","commandParams","blockName","format","locale","markBlockFormat","name","paragraph","value","plugins","heading.options","checkChild"];var Rr,Ir;Rr=vr,Ir=480,function(t){for(;--t;)Rr.push(Rr.shift())}(++Ir);const Sr=function(t,e){return vr[t-=0]};class Lr extends t.Plugin{[Sr("0x9")](){const t=this[Sr("0xb")],e=t[Sr("0x16")],n=t[Sr("0x11")][Sr("0x6")](Sr("0x1c"));if(!t[Sr("0x1b")].has(Sr("0x10")))return;const o=t.plugins.get(Sr("0x0"));o.enableCommand(Sr("0x3"),((e,n)=>{const s=n[Sr("0x1a")],r=Array.from(this[Sr("0xb")][Sr("0x5")][Sr("0xc")][Sr("0xd")].getSelectedBlocks()).filter((t=>{return e=t,n=s,(o=this[Sr("0xb")][Sr("0x5")][Sr("0xe")])[Sr("0x1d")](e[Sr("0x8")],n)&&!o.isObject(e)&&e[Sr("0x18")]!=n;var e,n,o}));t[Sr("0x5")].change((()=>{for(const t of r)o[Sr("0x17")](t,{commandName:Sr("0x3"),commandParams:[n],formatGroupId:Sr("0x14")},fs(t))}))}));for(const t of n)Sr("0x19")!=t[Sr("0x5")]&&o[Sr("0x1")][Sr("0x7")](t.model,(e=>{const n=Nr(t[Sr("0x5")]);return null!==n?s(e,n):r(e,t[Sr("0x2")])}));function s(t,n){return Yo(e,Sr("0xf"),[t,n])}function r(t,n){return Yo(e,"ELEMENT_HEADING_CUSTOM",[t,n])}o[Sr("0x1")].registerDescriptionCallback((t=>{const{type:o,data:i}=t;if(Sr("0x12")==o&&i&&Sr("0x3")==i.commandName){const t=i[Sr("0x13")][0][Sr("0x1a")],o=Nr(t);if(null!==o)return{type:Sr("0x15"),content:Yo(e,Sr("0xa"),s(1,o))};const x=n.find((e=>e[Sr("0x5")]===t))[Sr("0x2")];return{type:Sr("0x15"),content:Yo(e,"*Change to:* %0",r(1,x))}}}))}}function Nr(t){const e=t[Sr("0x4")](/^heading(\d+)$/);return e?e[1]:null}const Mr=["change","toLowerCase","locale","has","get","isCollapsed","commandParams","value","commandName","config","highlight.options","createRange","afterInit","markInlineFormat","editor","find","plugins","registerDescriptionCallback","title","highlight","push","*Set highlight:* %0","getLastMatchingPosition","getFirstPosition","format","getAttribute","*Remove highlight*","item","model","enableCommand","_descriptionFactory","hasAttribute","getRanges","HighlightEditing"];var wr,Or;wr=Mr,Or=281,function(t){for(;--t;)wr.push(wr.shift())}(++Or);const Fr=function(t,e){return Mr[t-=0]};class Pr extends t.Plugin{[Fr("0x3")](){const t=this[Fr("0x5")];if(!t.plugins[Fr("0x1c")](Fr("0x18")))return;const e=t[Fr("0x7")][Fr("0x1d")]("TrackChangesEditing");e[Fr("0x14")]("highlight",((n,o={})=>{const s=t.model.document.selection,r=s.getAttribute(Fr("0xa"));let i=o[Fr("0x20")],x=[];if(s[Fr("0x1e")]){const e=s[Fr("0xe")]();if(!s[Fr("0x16")](Fr("0xa")))return void n(o);{const n=t=>t[Fr("0x12")][Fr("0x10")]("highlight")===r,o=e[Fr("0xd")](n,{direction:"backward"}),s=e.getLastMatchingPosition(n);x=[t[Fr("0x13")][Fr("0x2")](o,s)],i==r&&(i=null)}}else for(const e of s[Fr("0x17")]())i?x[Fr("0xb")](e):x[Fr("0xb")](...ms(Fr("0xa"),e,t.model));t[Fr("0x13")][Fr("0x19")]((()=>{for(const t of x)e[Fr("0x4")](t,{commandName:Fr("0xa"),commandParams:[{value:i}]})}))}));const n=t[Fr("0x1b")];e[Fr("0x15")][Fr("0x8")]((e=>{const{type:o,data:s}=e;if("formatInline"==o&&s&&"highlight"==s[Fr("0x21")]){const e=n.t,o=s[Fr("0x1f")][0].value;if(o){const s=t[Fr("0x0")].get(Fr("0x1"))[Fr("0x6")]((t=>t[Fr("0x13")]==o)),r=e(s.title)[Fr("0x1a")]();return{type:Fr("0xf"),content:Yo(n,Fr("0xc"),r),color:{value:s.color,title:s[Fr("0x9")]}}}return{type:Fr("0xf"),content:Yo(n,Fr("0x11"),Yo(n,"FORMAT_HIGHLIGHT"))}}}))}}const Dr=["locale","for","registerElementLabel","div","showSuggestionHighlights","insert","dataDowncast","ck-horizontal-line","get","createPositionAt","afterInit","HorizontalLineEditing","TrackChangesEditing","plugins","horizontalLine","conversion","enableCommand","has","createEmptyElement","addClass"];var Br,jr;Br=Dr,jr=106,function(t){for(;--t;)Br.push(Br.shift())}(++jr);const Ur=function(t,e){return Dr[t-=0]};class Gr extends t.Plugin{[Ur("0x4")](){const t=this.editor;if(!t[Ur("0x7")][Ur("0xb")](Ur("0x5")))return;t[Ur("0x7")].get("TrackChangesEditing")[Ur("0xa")](Ur("0x8"));const e=t[Ur("0x7")][Ur("0x2")](Ur("0x6")),n=t[Ur("0xe")];e._descriptionFactory[Ur("0x10")](Ur("0x8"),(t=>Yo(n,"ELEMENT_HORIZONTAL_LINE",t))),t[Ur("0x9")][Ur("0xf")](Ur("0x0")).elementToStructure({model:Ur("0x8"),view:(t,{writer:e,options:n})=>{if(!n[Ur("0x12")])return null;const o=e.createContainerElement(Ur("0x11")),s=e[Ur("0xc")]("hr");return e[Ur("0xd")](Ur("0x1"),o),e[Ur("0x13")](e[Ur("0x3")](o,0),s),o},converterPriority:"high"})}}const Hr=["value","ELEMENT_HTML_EMBED","registerDescriptionCallback","has","view","locale","registerElementLabel","getSelectedElement","editing","document","editor","rawHtml","element","getAttribute","selection","afterInit","_descriptionFactory","cancel","plugins","change","commandName","htmlEmbed","rawHtmlApi","get","TrackChangesEditing","format","getCustomProperty"];var zr,Wr;zr=Hr,Wr=243,function(t){for(;--t;)zr.push(zr.shift())}(++Wr);const Vr=function(t,e){return Hr[t-=0]};class Kr extends t.Plugin{[Vr("0xf")](){const t=this[Vr("0xa")];if(!t[Vr("0x12")][Vr("0x3")]("HtmlEmbed"))return;const e=t[Vr("0x12")].get(Vr("0x18")),n=t[Vr("0x5")],o=t[Vr("0x8")][Vr("0x4")][Vr("0x9")][Vr("0xe")];e[Vr("0x10")][Vr("0x6")]("rawHtml",(t=>Yo(n,Vr("0x1"),t))),t.plugins[Vr("0x17")]("TrackChangesEditing").enableCommand("htmlEmbed",((n,s)=>{const r=t.model,i=r.document[Vr("0xe")];r[Vr("0x13")]((()=>{const t=function(t){const e=t[Vr("0x7")]();return e&&e.is(Vr("0xc"),Vr("0xb"))?t[Vr("0x7")]():null}(i);if(!t)return void n(null);const r=t[Vr("0xd")](Vr("0x0"))||"";void 0!==s&&s!==r&&(e.markBlockFormat(t,{commandName:"htmlEmbed",commandParams:[s]}),o.getSelectedElement()[Vr("0x1a")](Vr("0x16"))[Vr("0x11")]())}))})),e[Vr("0x10")][Vr("0x2")]((t=>{const{data:e}=t;if(e&&Vr("0x15")==e[Vr("0x14")]){const t=Yo(n,Vr("0x1"));return{type:Vr("0x19"),content:Yo(n,"*Change %0 content*",t)}}}))}}const qr=["getSuggestion","_suggestionFactory","markInsertion","alt","ImageTextAlternativeEditing","formatBlock","*Set image text alternative:* %0","ImageResize","end","width","has","findIndex","name","_descriptionFactory","getAttribute","registerDescriptionCallback","getSuggestionCallback","editor","chain","subType","backward","head","markBlockFormat","_findSuggestions","differ","ImageBlockEditing","caption","deletion","isBefore","plugins","schema","imageStylePostApply","fromPosition","commandName","ImageUtils","isInContent","ImageStyleEditing","forward","addObject","enableCommand","hasAttribute","format","*Reset image width*","join","insertImage","author","isEqual","side","insertion","locale","document","nodeBefore","getContainedElement","markInlineFormat","find","formatInline","getFirstRange","imageTextAlternative","normalizedStyles","getClosestSelectedImageElement","ImageCaptionUtils","value","imageTypeInline","getNearestSelectionRange","start","getSuggestions","afterInit","ELEMENT_IMAGE","_splitMarkerName","imageStyle","forceDefaultExecution","ImageInlineEditing","suggestion","getCaptionFromImageModelElement","accept","element","nodeAfter","next","commandParams","newValue","registerCustomCallback","discard","ELEMENT_CAPTION","hasSuggestion","*Set image width:* %0","detach","toNext","imageBlock","change","resizeImage","selection","createRangeOn","TrackChangesEditing","isCollapsed","*Format:* %0","registerElementLabel","title","commands","isInlineImage","convertBlockImageToInline","get","newRange","refresh","markDeletion","imageInline","model","toggleImageCaption","imageCaption","createRange","commandReversedParams","imageStylePreApply","previous","length","uploadImage","from","type","discardSuggestion","isBlockImage","convertInlineImageToBlock","imageTypeBlock"];var Xr,$r;Xr=qr,$r=440,function(t){for(;--t;)Xr.push(Xr.shift())}(++$r);const Jr=function(t,e){return qr[t-=0]};class Qr extends t.Plugin{[Jr("0x6a")](){const t=this[Jr("0x39")];if(!t[Jr("0x45")][Jr("0x32")]("ImageEditing"))return;const n=t[Jr("0x45")][Jr("0x14")](Jr("0xc")),o=t.plugins[Jr("0x14")](Jr("0x4a")),s={},r=t[Jr("0x59")];if(n[Jr("0x4f")](Jr("0x54")),n[Jr("0x35")][Jr("0xf")](Jr("0x7"),(t=>Yo(r,Jr("0x6b"),t))),n._descriptionFactory.registerElementLabel(Jr("0x18"),(t=>Yo(r,"ELEMENT_INLINE_IMAGE",t))),n[Jr("0x35")].registerElementLabel(Jr("0x42"),(()=>Yo(r,Jr("0x2")))),t[Jr("0x45")].has("ImageUploadEditing")&&n[Jr("0x4f")](Jr("0x21")),t.plugins[Jr("0x32")](Jr("0x41"))&&t[Jr("0x45")][Jr("0x32")](Jr("0x6f"))&&(n[Jr("0x4f")](Jr("0x66"),((e,s)=>{const r=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);t[Jr("0x19")][Jr("0x8")]((()=>{n[Jr("0x3e")](r,{commandName:Jr("0x66"),commandParams:[s]},[],"convertBlockImageToInline")}))})),n[Jr("0x4f")](Jr("0x27"),((e,s)=>{t[Jr("0x19")].change((r=>{let x=o.getClosestSelectedImageElement(t.model[Jr("0x5a")][Jr("0xa")]),a=r[Jr("0xb")](x);const c=i.LivePosition[Jr("0x48")](a[Jr("0x68")],"toPrevious"),l=i.LivePosition[Jr("0x48")](a[Jr("0x30")],Jr("0x6"));n[Jr("0x6e")]((()=>e(s))),x=o[Jr("0x63")](t[Jr("0x19")].document[Jr("0xa")]),a=r[Jr("0xb")](x);const d=r[Jr("0x1c")](c,l);c[Jr("0x5")](),l[Jr("0x5")](),n.markBlockFormat(x,{commandName:Jr("0x66"),commandParams:[]},[],"convertInlineImageToBlock"),d.start[Jr("0x44")](a[Jr("0x68")])&&n[Jr("0x2a")](r[Jr("0x1c")](d[Jr("0x68")],a[Jr("0x68")]),"convertInlineImageToBlock"),a[Jr("0x30")].isBefore(d[Jr("0x30")])&&n[Jr("0x2a")](r[Jr("0x1c")](a[Jr("0x30")],d[Jr("0x30")]),"convertInlineImageToBlock")}))})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x26"),Jr("0x53"),(()=>{})),n[Jr("0x29")].registerCustomCallback("formatBlock",Jr("0x26"),Jr("0x72"),(()=>{})),n[Jr("0x29")][Jr("0x0")]("formatBlock",Jr("0x26"),Jr("0x1"),n._suggestionFactory.getSuggestionCallback(Jr("0x2d"),"",Jr("0x72"))),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),"convertInlineImageToBlock",Jr("0x53"),(()=>{})),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),Jr("0x26"),Jr("0x1"),(([e])=>{const o=n[Jr("0x29")][Jr("0x38")]("insertion","",Jr("0x1"));let s=e[Jr("0x68")],r=e[Jr("0x30")];const i=t.model[Jr("0x46")][Jr("0x67")](s,Jr("0x3c")),x=t[Jr("0x19")][Jr("0x46")].getNearestSelectionRange(r,Jr("0x4d"));i.isCollapsed&&(s=i.start),x[Jr("0xd")]&&(r=x[Jr("0x30")]),o([t[Jr("0x19")].createRange(s,r)])})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x26"),Jr("0x3a"),c),n[Jr("0x29")][Jr("0x0")](Jr("0x58"),Jr("0x26"),"chain",c)),t[Jr("0x45")][Jr("0x32")]("ImageCaptionEditing")&&(n[Jr("0x4f")](Jr("0x1a"),((e,s)=>{const r=t[Jr("0x45")][Jr("0x14")](Jr("0x64"));let i=o[Jr("0x63")](t.model[Jr("0x5a")][Jr("0xa")]),x=r.getCaptionFromImageModelElement(i);t[Jr("0x19")][Jr("0x8")]((()=>{if(x)return void n[Jr("0x17")](t[Jr("0x19")][Jr("0xb")](x));const a=o.isBlockImage(i);e(s),i=o[Jr("0x63")](t.model.document[Jr("0xa")]),x=r[Jr("0x71")](i),n[Jr("0x2a")](t.model[Jr("0xb")](x),a?null:Jr("0x1b"))}))})),n._suggestionFactory[Jr("0x0")](Jr("0x58"),"imageCaption","chain",c)),t[Jr("0x45")][Jr("0x32")]("ImageStyleEditing")){n.enableCommand(Jr("0x6d"),((s,r)=>{const i=t[Jr("0x45")].get("Users").me,x=t[Jr("0x11")].get(Jr("0x6d"));let a=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")].selection),c=t[Jr("0x19")][Jr("0xb")](a),l=x[Jr("0x65")];if(l==r[Jr("0x65")])return;const d={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t.model[Jr("0x8")]((()=>{if(n[Jr("0x69")]().filter((t=>t[Jr("0x4b")]&&i==t[Jr("0x55")]&&(Jr("0x2d")==t.type||Jr("0x5f")==t[Jr("0x23")])&&(Jr("0x1e")==t[Jr("0x3b")]||"imageStylePostApply"==t.subType)&&t[Jr("0x60")]().isEqual(c))).forEach((t=>n[Jr("0x24")](t[Jr("0x3d")]))),a=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]),c=t[Jr("0x19")].createRangeOn(a),x[Jr("0x16")](),t[Jr("0x11")][Jr("0x14")]("imageTypeInline")[Jr("0x16")](),t[Jr("0x11")].get(Jr("0x27")).refresh(),l=x.value,l!=r[Jr("0x65")])return o[Jr("0x12")](a)&&x.shouldConvertImageType(r[Jr("0x65")],a)?(s(r),a=o.getClosestSelectedImageElement(t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]),void n[Jr("0x3e")](a,{...d,commandReversedParams:[{value:l||null}]},[],Jr("0x1e"))):void(o[Jr("0x25")](a)?n[Jr("0x3e")](a,d,[],"imageStylePostApply"):n[Jr("0x5d")](c,d,Jr("0x47")))}))}));for(const e of t[Jr("0x45")][Jr("0x14")](Jr("0x4c"))[Jr("0x62")])s[e[Jr("0x34")]]=e[Jr("0x10")].toLowerCase();n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),"imageStylePreApply",Jr("0x53"),(()=>{})),n._suggestionFactory.registerCustomCallback(Jr("0x2d"),"imageStylePostApply","join",(()=>{})),n._suggestionFactory[Jr("0x0")](Jr("0x5f"),Jr("0x47"),Jr("0x53"),(()=>{})),n[Jr("0x29")].registerCustomCallback(Jr("0x2d"),Jr("0x1e"),Jr("0x72"),(()=>{})),n[Jr("0x29")][Jr("0x0")](Jr("0x2d"),Jr("0x1e"),Jr("0x1"),((t,e)=>{n[Jr("0x29")][Jr("0x38")]("formatBlock","",Jr("0x72"))(t,{commandName:e[Jr("0x49")],commandParams:e[Jr("0x1d")]})})),n[Jr("0x29")].registerCustomCallback("formatBlock",Jr("0x1e"),Jr("0x3a"),c)}const x=[{type:"formatBlock",subType:Jr("0x1e")},{type:"insertion",subType:Jr("0x1b")},{type:"formatBlock",subType:Jr("0x26")},{type:Jr("0x58"),subType:Jr("0x26")}];function a(t,e){const s=x[Jr("0x33")]((({type:e,subType:n})=>t.type==e&&t[Jr("0x3b")]==n)),r=x[Jr("0x33")]((({type:t,subType:n})=>e[Jr("0x23")]==t&&e[Jr("0x3b")]==n));if(s<0||r<0)return!1;const i=t.getFirstRange(),a=e[Jr("0x60")]();if((0==s||1==s)&&2==r&&i.isIntersecting(a))return!0;if(2==s&&3==r){const t=n[Jr("0x3f")](i,Jr("0x58")).filter((({suggestion:t,meta:e})=>e.isOwn&&"convertInlineImageToBlock"==t.subType));if(t[Jr("0x20")]>1&&a[Jr("0x30")].isEqual(i.start))return!0;if(1==t[Jr("0x20")]&&(i[Jr("0x68")].isEqual(a[Jr("0x30")])||i[Jr("0x30")][Jr("0x56")](a.start)))return!0}if(3==s&&3==r&&i.start[Jr("0x44")](a[Jr("0x68")])){const t=i.end[Jr("0x74")],e=a[Jr("0x68")][Jr("0x5b")];return o.isBlockImage(t)&&t===e}return!1}function c(t,e){return a(t,e)?[t,e]:a(e,t)?[e,t]:null}t.model[Jr("0x5a")].registerPostFixer((()=>{let e=!1;const s=Array[Jr("0x22")](t[Jr("0x19")][Jr("0x5a")][Jr("0x40")].getChangedMarkers());for(const{name:t,data:r}of s){const{group:s,type:i,subType:x,id:a}=n[Jr("0x6c")](t);if(Jr("0x70")==s&&n[Jr("0x3")](a)){if("formatBlock"==i&&(Jr("0x1e")==x||Jr("0x47")==x)){const t=n[Jr("0x28")](a);if(r[Jr("0x15")]){const s=t[Jr("0x60")]()[Jr("0x5c")]();if(o.isBlockImage(s))continue;n[Jr("0x24")](t),e=!0}}if(Jr("0x58")==i&&Jr("0x1b")==x&&!r[Jr("0x15")]){const t=n[Jr("0x28")](a);t[Jr("0x75")]&&t[Jr("0x75")][Jr("0x4b")]&&(n[Jr("0x24")](t[Jr("0x75")]),e=!0)}}}return e})),t[Jr("0x45")][Jr("0x32")](Jr("0x2f"))&&n[Jr("0x4f")]("resizeImage",((e,s)=>{const r=o.getClosestSelectedImageElement(t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);r[Jr("0x36")]("width")!=s.width&&t.model[Jr("0x8")]((()=>{n[Jr("0x3e")](r,{commandName:"resizeImage",commandParams:[s]})}))})),t.plugins.has(Jr("0x2c"))&&n.enableCommand(Jr("0x61"),((e,s)=>{const r=o[Jr("0x63")](t[Jr("0x19")][Jr("0x5a")][Jr("0xa")]);(r[Jr("0x50")]("alt")?r.getAttribute(Jr("0x2b")):"")!=s[Jr("0x77")]&&t[Jr("0x19")].change((()=>{n[Jr("0x3e")](r,{commandName:Jr("0x61"),commandParams:[s]})}))})),n._descriptionFactory[Jr("0x37")]((t=>{if(x[Jr("0x5e")]((({type:e,subType:n})=>t[Jr("0x23")]==e&&t[Jr("0x3b")]==n)))return t[Jr("0x1f")]?{}:void 0})),n[Jr("0x35")].registerDescriptionCallback((t=>{if(Jr("0x58")==t[Jr("0x23")]||Jr("0x43")==t.type){const e=t[Jr("0x5c")]();if(e&&e.is(Jr("0x73"),Jr("0x42")))return{type:"insertion"==t[Jr("0x23")]?Jr("0x4e"):"removeObject",element:e,quantity:1}}})),n._descriptionFactory[Jr("0x37")]((t=>Jr("0x2d")==t[Jr("0x23")]&&Jr("0x26")==t[Jr("0x3b")]?{type:"format",content:"Inline image to block image"}:Jr("0x2d")==t[Jr("0x23")]&&Jr("0x13")==t.subType?{type:Jr("0x51"),content:"Block image to inline image"}:void 0)),n._descriptionFactory.registerDescriptionCallback((t=>{const{data:e}=t;if(e){if(Jr("0x6d")==e.commandName){const t=e.commandParams[0].value;return n=Jr("0x57")===t?Yo(r,"FORMAT_SIDE_IMAGE"):s[t]||t,{type:"format",content:Yo(r,Jr("0xe"),n)}}if(Jr("0x61")==e.commandName){const t=e[Jr("0x76")][0][Jr("0x77")];return t?{type:"format",content:Yo(r,Jr("0x2e"),'"'+t+'"')}:{type:"format",content:Yo(r,"*Remove image text alternative*")}}if(Jr("0x9")==e.commandName){const t=e[Jr("0x76")][0][Jr("0x31")];return t?{type:"format",content:Yo(r,Jr("0x4"),t)}:{type:Jr("0x51"),content:Yo(r,Jr("0x52"))}}}var n}))}}const Zr=["author","getContainedElement","commandParams","discard","has","_descriptionFactory","src","getSuggestions","TrackChangesEditing","commandName","replaceImageSource","accept","Users","getSelectedElement","*Format:* replace image URL","_suggestionFactory","selection","getAttribute","markBlockFormat","format","document","editor","handleReplaceImageCommand","get","getSuggestionCallback","plugins","data","handleSuggestionDescription","formatBlock","registerCustomCallback","change","enableCommand","model"];var Yr,ti;Yr=Zr,ti=361,function(t){for(;--t;)Yr.push(Yr.shift())}(++ti);const ei=function(t,e){return Zr[t-=0]};class ni extends t.Plugin{afterInit(){if(!this[ei("0x17")].plugins[ei("0x6")]("ImageEditing"))return;const t=this[ei("0x17")][ei("0x1b")][ei("0x19")](ei("0xa"));t[ei("0x0")](ei("0xc"),((t,e)=>this[ei("0x18")](t,e))),t[ei("0x11")][ei("0x1f")]("formatBlock",ei("0xc"),ei("0xd"),t[ei("0x11")][ei("0x1a")](ei("0x1e"),null,"discard")),t._suggestionFactory[ei("0x1f")]("formatBlock","replaceImageSource",ei("0x5"),t[ei("0x11")][ei("0x1a")]("formatBlock",null,ei("0xd"))),t[ei("0x7")].registerDescriptionCallback((t=>this[ei("0x1d")](t)))}[ei("0x18")](t,e){const n=this.editor[ei("0x1b")].get(ei("0xa")),o=this[ei("0x17")][ei("0x1")][ei("0x16")][ei("0x12")][ei("0xf")]();this[ei("0x17")][ei("0x1")][ei("0x20")]((()=>{let s=o[ei("0x13")](ei("0x8"));const r=this[ei("0x17")][ei("0x1b")][ei("0x19")](ei("0xe")).me;for(const t of n[ei("0x9")]({skipNotAttached:!0})){const e=t[ei("0x3")]();if(ei("0xc")===t.subType&&e===o){t[ei("0x2")]!==r&&t[ei("0x5")](),s=t[ei("0x1c")][ei("0x4")][0].source;break}}t(e),n[ei("0x14")](o,{commandName:ei("0xc"),commandParams:[{source:s}]},[],ei("0xc"))}))}handleSuggestionDescription(t){const{data:e}=t;if(e&&"replaceImageSource"===e[ei("0xb")]){const t=ei("0x10");return{type:ei("0x15"),content:Yo(this[ei("0x17")].locale,t)}}}}const oi=["trackChanges","_setSuggestionData","track_changes","commands","bind","afterInit","lowest","plugins","dataInsert","editor","high","get","collaboration_features","TrackChangesEditing","enableCommand","importWord","forEach","Users","value","_trackChangesExecuted","execute","_handleImportedData","_trackChangesValueDuringImport","listenTo"];var si,ri;si=oi,ri=445,function(t){for(;--t;)si.push(si.shift())}(++ri);const ii=function(t,e){return oi[t-=0]};class xi extends t.Plugin{constructor(t){super(t),this[ii("0x9")]=!1,this._trackChangesExecuted=!1}[ii("0x10")](){const t=this[ii("0x14")],e=t[ii("0xe")][ii("0x16")](ii("0x2")),n=t.commands[ii("0x16")](ii("0xb"));e&&(e.on(ii("0x7"),((t,[,e])=>{this[ii("0x9")]=n[ii("0x5")],e[ii("0x17")][ii("0xd")]=!this[ii("0x9")]}),{priority:ii("0x15")}),this[ii("0xa")](e,ii("0x13"),this[ii("0x8")][ii("0xf")](this)),this.listenTo(e,ii("0x13"),(()=>{this[ii("0x6")]&&(n[ii("0x7")](),this._trackChangesExecuted=!1)}),{priority:ii("0x11")}),t.plugins[ii("0x16")](ii("0x0"))[ii("0x1")](ii("0x2")))}[ii("0x8")](t,e){const{suggestions:n}=e,o=this[ii("0x14")][ii("0xe")].get(ii("0xb")),s=o.value;this._trackChangesValueDuringImport!==s&&(o[ii("0x7")](),this._trackChangesExecuted=!0),n&&n[ii("0x3")]((({id:t,type:e,author:n,created_at:o})=>{const s={id:t,type:e,authorId:this[ii("0x14")][ii("0x12")][ii("0x16")](ii("0x4")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:ii("0x2")}}};this[ii("0x14")][ii("0x12")].get(ii("0x0"))[ii("0xc")](s)}))}}const ai=["document","editor","markBlockFormat","_descriptionFactory","change","has","format","checkAttribute","locale","getItemLabel","filter","IndentEditing","getItems","commandName","indentBlock","outdentBlock","TrackChangesEditing","indent","selection","outdent","schema","plugins","enableCommand","from","get","registerDescriptionCallback","model"];var ci,li;ci=ai,li=233,function(t){for(;--t;)ci.push(ci.shift())}(++li);const di=function(t,e){return ai[t-=0]};class ui extends t.Plugin{afterInit(){const t=this.editor,e=t[di("0x4")][di("0x7")](di("0x1a"));t[di("0x4")][di("0xf")](di("0x15"))&&(e.enableCommand(di("0x0")),e[di("0x5")](di("0x2")));const n=t[di("0x12")];if(t.plugins[di("0xf")]("IndentBlock")){for(const n of[di("0x18"),di("0x19")])e[di("0x5")](n,(()=>{const o=Array[di("0x6")](this[di("0xb")][di("0x9")][di("0xa")][di("0x1")].getSelectedBlocks())[di("0x14")]((t=>this[di("0xb")][di("0x9")][di("0x3")][di("0x11")](t,"blockIndent")));t[di("0x9")][di("0xe")]((()=>{for(const t of o)e[di("0xc")](t,{commandName:n,commandParams:[{value:""}],formatGroupId:di("0x18")})}))}));e[di("0xd")][di("0x8")]((t=>{const{data:o}=t;if(!o)return;if(di("0x18")!=o.commandName&&di("0x19")!=o[di("0x17")])return;const s=t[di("0x16")]()[0],r=e[di("0xd")][di("0x13")](s);return di("0x18")==o[di("0x17")]?{type:"format",content:Yo(n,"*Indent:* %0",r)}:"outdentBlock"==o[di("0x17")]?{type:di("0x10"),content:Yo(n,"*Outdent:* %0",r)}:void 0}))}}}var gi,mi,fi=["init","get","enableCommand","requires","plugins","input"];gi=fi,mi=281,function(t){for(;--t;)gi.push(gi.shift())}(++mi);var hi=function(t,e){return fi[t-=0]};class pi extends t.Plugin{static get[hi("0x4")](){return[Vs.Input]}[hi("0x1")](){this.editor[hi("0x5")][hi("0x2")]("TrackChangesEditing")[hi("0x3")](hi("0x0"))}}const bi=["linkHref","enableCommand","plugins","getAttribute","*Set link:* %0","afterInit","getFirstPosition","format","LinkEditing","model","getFirstRange","locale","selection","change","unlink","getRanges","editor","link","has","_descriptionFactory","markInlineFormat","from","document","hasAttribute","isCollapsed","registerDescriptionCallback","commandParams","get"];var Ei,_i;Ei=bi,_i=161,function(t){for(;--t;)Ei.push(Ei.shift())}(++_i);const Ti=function(t,e){return bi[t-=0]};class yi extends t.Plugin{[Ti("0xc")](){const t=this[Ti("0x17")];if(!t[Ti("0x9")][Ti("0x19")](Ti("0xf")))return;const e=t[Ti("0x9")][Ti("0x6")]("TrackChangesEditing");e[Ti("0x8")]("link",((n,o)=>{const s=t[Ti("0x10")][Ti("0x1")][Ti("0x13")];let r=[];if(s[Ti("0x3")]){if(!s[Ti("0x2")](Ti("0x7")))return void n(o);{const e=(0,Vs.findAttributeRange)(s[Ti("0xd")](),"linkHref",s.getAttribute("linkHref"),t[Ti("0x10")]);r=[e]}}else r=Array[Ti("0x0")](s[Ti("0x16")]());t.model[Ti("0x14")]((()=>{for(const t of r)e.markInlineFormat(t,{commandName:Ti("0x18"),commandParams:[o]})}))})),e[Ti("0x8")]("unlink",(()=>{const n=this.editor.model,o=n[Ti("0x1")][Ti("0x13")];n[Ti("0x14")]((()=>{let n=[];n=o[Ti("0x3")]?[(0,Vs.findAttributeRange)(o[Ti("0xd")](),"linkHref",o[Ti("0xa")](Ti("0x7")),t[Ti("0x10")])]:ms(Ti("0x7"),o[Ti("0x11")](),t[Ti("0x10")]);for(const t of n)e[Ti("0x1b")](t,{commandName:Ti("0x15"),commandParams:[]})}))})),e[Ti("0x1a")][Ti("0x4")]((e=>{const{data:n}=e,o=t[Ti("0x12")];if(n){if(Ti("0x18")==n.commandName){const t=n[Ti("0x5")][0];return{type:Ti("0xe"),content:Yo(o,Ti("0xb"),'"'+t+'"')}}return"unlink"==n.commandName?{type:Ti("0xe"),content:Yo(o,"*Remove link*")}:void 0}}))}}const Ci=["TodoListEditing","bulleted","*Indent:* %0","listIndent","locale","value","enableCommand","TrackChangesEditing","getSelectedBlocks","previousSibling","document","blockName","_selectedElements","from","ELEMENT_LIST_ITEM","before","listItem","afterInit","plugins","numbered","name","commands","*Change to:* %0","get","todoList","checkTodoList","ListEditing","getAttribute","length","registerElementLabel","nextSibling","parent","commandName","_descriptionFactory","markBlockFormat","ELEMENT_NUMBERED_LIST","model","List","bulletedList","filter","format","createPositionAt","replace","todoListChecked","execute","todo","commandParams","element","*Uncheck item*","has","outdentList","*Check item*","isObject","editor","add","end","findIndex","numberedList","selection","schema","change"];var ki,Ai;ki=Ci,Ai=482,function(t){for(;--t;)ki.push(ki.shift())}(++Ai);const vi=function(t,e){return Ci[t-=0]};class Ri extends t.Plugin{[vi("0x17")](){const t=this[vi("0x3b")],e=t[vi("0xa")];if(!t[vi("0x18")].has(vi("0x20")))return;const n=t.plugins[vi("0x1d")](vi("0xd")),o=t[vi("0x18")][vi("0x37")](vi("0x6"));function s(e){return()=>{const o=t.model[vi("0x10")].selection,s=t[vi("0x1b")].get(e);if(s[vi("0xb")])return void t[vi("0x32")]("paragraph",{});const r=e.slice(0,-4),i=function(t,e,n){let o=Array[vi("0x13")](t).filter((t=>{return e=t,(o=n).checkChild(e[vi("0x25")],"listItem")&&!o[vi("0x3a")](e);var e,o}));o=o[vi("0x2d")]((t=>!t.is(vi("0x35"),vi("0x16"))||t[vi("0x21")]("listType")!=e));const s=new Set;for(const t of o)t.is("element",vi("0x16"))?s[vi("0x3c")](Ii(t)):s[vi("0x3c")](t);return Array[vi("0x13")](s)}(o[vi("0xe")](),r,t[vi("0x2a")][vi("0x4")]);t[vi("0x2a")].change((()=>{for(const t of i)n[vi("0x28")](t,{commandName:e,commandParams:[{forceValue:!s.value}],formatGroupId:vi("0x11")},Si(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[vi("0x13")](t);const n=e[vi("0x1")]((t=>"listItem"!=t.name));return n>-1&&(e=e.slice(0,n)),e}(t[vi("0x2a")][vi("0x10")][vi("0x3")][vi("0xe")]()),s=t.model.createRange(t[vi("0x2a")][vi("0x2f")](o[0],vi("0x15")),t.model.createPositionAt(o[o[vi("0x22")]-1],vi("0x0")));t[vi("0x2a")][vi("0x5")]((()=>{n[vi("0x28")](s,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[vi("0x24")];for(;t&&t[vi("0x21")](vi("0x9"))>n[vi("0x21")]("listIndent");)e[vi("0x3c")](t),t=t[vi("0x24")]}return Array[vi("0x13")](e)}(o))}))}}n[vi("0xc")]("numberedList",s(vi("0x2"))),n[vi("0xc")](vi("0x2c"),s(vi("0x2c"))),o&&n[vi("0xc")]("todoList",s(vi("0x1e"))),n.enableCommand("indentList",r("indentList")),n[vi("0xc")](vi("0x38"),r("outdentList")),o&&n.enableCommand(vi("0x1f"),(()=>{const e=t[vi("0x1b")][vi("0x1d")](vi("0x1f")),o=Array[vi("0x13")](e[vi("0x12")]);o[vi("0x2d")]((t=>t[vi("0x21")](vi("0x31"))!=e.value)),t[vi("0x2a")][vi("0x5")]((()=>{for(const t of o)n.markBlockFormat(t,{commandName:vi("0x1f"),commandParams:[{forceValue:!e[vi("0xb")]}]})}))})),n[vi("0x27")][vi("0x23")](vi("0x16"),(t=>Yo(e,vi("0x14"),t))),n[vi("0x27")].registerDescriptionCallback((t=>{const{data:n}=t;if(n){if(vi("0x2")==n[vi("0x26")]||vi("0x2c")==n[vi("0x26")]||vi("0x1e")==n.commandName)switch(n[vi("0x26")][vi("0x30")](vi("0x2b"),"")){case vi("0x7"):return o(Yo(e,"ELEMENT_BULLETED_LIST"));case vi("0x19"):return o(Yo(e,vi("0x29")));case vi("0x33"):return o(Yo(e,"ELEMENT_TODO_LIST"))}if("indentList"==n[vi("0x26")])return{type:vi("0x2e"),content:Yo(e,vi("0x8"),Yo(e,vi("0x14")))};if(vi("0x38")==n[vi("0x26")])return{type:"format",content:Yo(e,"*Outdent:* %0",Yo(e,vi("0x14")))};if(vi("0x1f")==n[vi("0x26")])return n[vi("0x34")][0].forceValue?{type:vi("0x2e"),content:Yo(e,vi("0x39"))}:{type:vi("0x2e"),content:Yo(e,vi("0x36"))}}function o(t){return{type:vi("0x2e"),content:Yo(e,vi("0x1c"),t)}}}))}}function Ii(t){const e=t[vi("0x21")]("listIndent");if(0==e)return t;let n=t;for(;t.previousSibling&&t[vi("0xf")].is(vi("0x35"),vi("0x16"));){const o=t[vi("0xf")].getAttribute(vi("0x9"));if(o==e)n=t[vi("0xf")];else if(o<e)break;t=t[vi("0xf")]}return n}function Si(t){const e=[];if(t.is(vi("0x35"),vi("0x16"))&&t.getAttribute(vi("0x9"))>0){let n=t.nextSibling;for(;n&&vi("0x16")==n[vi("0x1a")]&&n.getAttribute(vi("0x9"))==t[vi("0x21")](vi("0x9"));)e.push(n),n=n[vi("0x24")]}return e}const Li=["ListPropertiesEditing","has","toUpperCase","registerDescriptionCallback","selection","_getSuggestionBlocksForListStyle","getAttribute","model","bind","listStyle","styles","push","_LIST_","type","ListUtils","_getTranslationKeyForListStyle","_descriptionFactory","editor","map","_getSuggestionBlocks","commandParams","handleDescriptions","createPositionAt","listType","*Change to:* %0","forward","change","backward","unshift","afterInit","flat","listReversed","getSiblingNodes","listStart","commandName","handleListStartCommand","plugins","getFirstPosition","listItem","locale","getSelectedBlocks","list.properties","createRange","length","filter","parent","element","getLastPosition","get","handleListReversedCommand","startIndex","before","reversed","markMultiRangeBlockFormat","TrackChangesEditing","handleListStyleCommand","replace","enableCommand","format","from"];var Ni,Mi;Ni=Li,Mi=418,function(t){for(;--t;)Ni.push(Ni.shift())}(++Mi);const wi=function(t,e){return Li[t-=0]};class Oi extends t.Plugin{[wi("0x1f")](){if(!this[wi("0x13")].plugins[wi("0x3")](wi("0x2")))return;const t=this[wi("0x13")].config.get(wi("0x2b")),e=this[wi("0x13")].plugins[wi("0x32")](wi("0x38"));t[wi("0xc")]&&e[wi("0x3b")](wi("0xb"),this[wi("0x39")][wi("0xa")](this)),t.reversed&&e[wi("0x3b")](wi("0x21"),this[wi("0x33")][wi("0xa")](this)),t[wi("0x34")]&&e[wi("0x3b")]("listStart",this[wi("0x25")][wi("0xa")](this)),e[wi("0x12")][wi("0x5")](this[wi("0x17")][wi("0xa")](this))}[wi("0x39")](t,e={}){const n=this[wi("0x13")][wi("0x26")][wi("0x32")](wi("0x38")),o=this._getSuggestionBlocksForListStyle();this.editor[wi("0x9")][wi("0x1c")]((()=>{n[wi("0x37")](o,{commandName:wi("0xb"),commandParams:[{type:e[wi("0xf")]}],formatGroupId:wi("0xb")})}))}[wi("0x33")](t,e={}){const n=this[wi("0x13")][wi("0x26")][wi("0x32")](wi("0x38")),o=this[wi("0x15")]((t=>t.is(wi("0x30"),"listItem")&&"numbered"===t[wi("0x8")](wi("0x19"))));if(o[wi("0x2d")]<1)return;const s=o[wi("0x14")]((t=>this.editor[wi("0x9")][wi("0x2c")](this[wi("0x13")][wi("0x9")].createPositionAt(t,wi("0x35")),this.editor[wi("0x9")][wi("0x18")](t,0))));this[wi("0x13")][wi("0x9")].change((()=>{n[wi("0x37")](s,{commandName:"listReversed",commandParams:[{reversed:e[wi("0x36")]}],formatGroupId:wi("0x21")})}))}[wi("0x25")](t,e={}){const n=this[wi("0x13")].plugins[wi("0x32")](wi("0x38")),o=this._getSuggestionBlocks((t=>t.is("element",wi("0x28"))&&"numbered"===t.getAttribute(wi("0x19"))));if(o.length<1)return;const s=o[wi("0x14")]((t=>this[wi("0x13")][wi("0x9")][wi("0x2c")](this[wi("0x13")][wi("0x9")][wi("0x18")](t,wi("0x35")),this[wi("0x13")][wi("0x9")][wi("0x18")](t,0))));this[wi("0x13")][wi("0x9")][wi("0x1c")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wi("0x23"),commandParams:[{startIndex:e.startIndex}],formatGroupId:"listStart"})}))}[wi("0x17")](t){const e=this.editor[wi("0x29")],{data:n}=t;if(!n)return;let o,s;switch(n[wi("0x24")]){case wi("0xb"):o=wi("0x1a"),s={type:wi("0x0"),content:Yo(e,o,Yo(e,this[wi("0x11")](n[wi("0x16")][0][wi("0xf")])))};break;case wi("0x21"):o=n[wi("0x16")][0][wi("0x36")]?"*Format:* set order to reversed":"*Format:* set order to regular",s={type:wi("0x0"),content:Yo(e,o)};break;case"listStart":o="*Format:* set start index to %0",s={type:wi("0x0"),content:Yo(e,o,n[wi("0x16")][0][wi("0x34")])}}return s}[wi("0x7")](){var t,e,n,o;const s=this.editor.plugins[wi("0x32")](wi("0x10"));let r=Array[wi("0x1")](this.editor[wi("0x9")].document[wi("0x6")][wi("0x2a")]());return(null===(t=r[0])||void 0===t?void 0:t.is(wi("0x30"),"listItem"))&&r[wi("0x1e")](...s[wi("0x22")](this[wi("0x13")][wi("0x9")].document[wi("0x6")][wi("0x27")](),wi("0x1d"))),(null===(e=r[r.length-1])||void 0===e?void 0:e.is(wi("0x30"),"listItem"))&&r[wi("0xd")](...s[wi("0x22")](this.editor.model.document.selection[wi("0x31")](),wi("0x1b"))),r=[...new Set(r)],(null===(o=null===(n=this[wi("0x13")][wi("0x9")].document[wi("0x6")][wi("0x27")]())||void 0===n?void 0:n[wi("0x2f")])||void 0===o?void 0:o.is(wi("0x30"),wi("0x28")))&&(r=r[wi("0x2e")]((t=>t.is(wi("0x30"),wi("0x28"))))),r}[wi("0x15")](t){const e=this.editor[wi("0x26")].get(wi("0x10"));let n=Array.from(this[wi("0x13")].model.document[wi("0x6")][wi("0x2a")]()).filter(t)[wi("0x14")]((t=>{const n=this[wi("0x13")][wi("0x9")][wi("0x18")](t,0);return[...e.getSiblingNodes(n,wi("0x1d")),...e[wi("0x22")](n,wi("0x1b"))]}))[wi("0x20")]();return n=[...new Set(n)],n}_getTranslationKeyForListStyle(t){return"ELEMENT_"+this[wi("0x13")].plugins[wi("0x32")](wi("0x10")).getListTypeFromListStyleType(t)[wi("0x4")]()+wi("0xe")+t[wi("0x4")]()[wi("0x3a")](/-/g,"_")}}const Fi=["plugins","options","attribute:url:media","elementToElement","get","locale","registerElementLabel","showSuggestionHighlights","conversion","dataDowncast","for","stop","data","mediaEmbed","MediaEmbedEditing","createEmptyElement","media","afterInit","div","high"];var Pi,Di;Pi=Fi,Di=288,function(t){for(;--t;)Pi.push(Pi.shift())}(++Di);const Bi=function(t,e){return Fi[t-=0]};class ji extends t.Plugin{[Bi("0x9")](){const t=this.editor;if(!t[Bi("0xc")].has(Bi("0x6")))return;const e=t[Bi("0xc")][Bi("0x10")]("TrackChangesEditing"),n=t[Bi("0x11")];e.enableCommand(Bi("0x5")),e._descriptionFactory[Bi("0x12")]("media",(t=>Yo(n,"ELEMENT_MEDIA",t))),t[Bi("0x0")][Bi("0x2")](Bi("0x1"))[Bi("0xf")]({model:Bi("0x8"),view:(t,{writer:e,options:n})=>{if(n[Bi("0x13")])return e[Bi("0x7")](Bi("0xa"))},converterPriority:Bi("0xb")}),t[Bi("0x4")].downcastDispatcher.on(Bi("0xe"),((t,e,n)=>{n[Bi("0xd")][Bi("0x13")]&&t[Bi("0x3")]()}),{priority:"high"})}}const Ui=["plugins","TrackChangesEditing","afterInit","MentionEditing","enableCommand"];var Gi,Hi;Gi=Ui,Hi=457,function(t){for(;--t;)Gi.push(Gi.shift())}(++Hi);const zi=function(t,e){return Ui[t-=0]};class Wi extends t.Plugin{[zi("0x0")](){const t=this.editor;t[zi("0x3")].has(zi("0x1"))&&t.plugins.get(zi("0x4"))[zi("0x2")]("mention")}}const Vi=["afterInit","TrackChangesEditing","locale","PageBreakEditing","pageBreak","registerElementLabel","has","get","_descriptionFactory","plugins"];var Ki,qi;Ki=Vi,qi=172,function(t){for(;--t;)Ki.push(Ki.shift())}(++qi);const Xi=function(t,e){return Vi[t-=0]};class $i extends t.Plugin{[Xi("0x8")](){const t=this.editor;if(!t.plugins[Xi("0x4")](Xi("0x1")))return;t[Xi("0x7")][Xi("0x5")]("TrackChangesEditing").enableCommand(Xi("0x2"));const e=t.plugins.get(Xi("0x9")),n=t[Xi("0x0")];e[Xi("0x6")][Xi("0x3")](Xi("0x2"),(t=>Yo(n,"ELEMENT_PAGE_BREAK",t)))}}const Ji=["writer","isBlock","addMarker:suggestion:insertion","schema","paragraph","downcastDispatcher","selection","options","insert","_descriptionFactory","start","TrackChangesEditing","markerRange","getSelectedBlocks","isLimit","name","plugins","filter","span","ELEMENT_PARAGRAPH","editor","markBlockFormat","registerDescriptionCallback","consumable","blockName","get","registerElementLabel","type","markerName","model","has","enableCommand","*Insert:* %0","insertParagraph","getItemLabel","ck-suggestion-marker-split","activeMarkers","consume","isTouching","end","insertion","commandName","$text","createUIElement","showSuggestionHighlights","ck-suggestion-marker--active","locale","addClass","includes","editing","nodeAfter","mapper","highest","checkChild","isObject"];var Qi,Zi;Qi=Ji,Zi=150,function(t){for(;--t;)Qi.push(Qi.shift())}(++Zi);const Yi=function(t,e){return Ji[t-=0]};class tx extends t.Plugin{afterInit(){const t=this[Yi("0x23")];if(!t[Yi("0x1f")][Yi("0x2d")]("Paragraph"))return;const e=t[Yi("0x6")],n=t[Yi("0x1f")].get(Yi("0x1a"));n[Yi("0x18")][Yi("0x29")](Yi("0x13"),(t=>Yo(e,Yi("0x22"),t))),n.enableCommand(Yi("0x13"),((e,o={})=>{const s=t[Yi("0x2c")].document,r=o[Yi("0x15")]||s[Yi("0x15")],i=Array.from(r[Yi("0x1c")]())[Yi("0x20")]((t=>{return e=t,(n=this[Yi("0x23")][Yi("0x2c")][Yi("0x12")])[Yi("0xd")](e.parent,Yi("0x13"))&&!n[Yi("0xe")](e)&&Yi("0x13")!=e.name;var e,n}));t.model.change((()=>{for(const t of i)n[Yi("0x24")](t,{commandName:Yi("0x13"),commandParams:[],formatGroupId:Yi("0x27")},fs(t))}))})),n[Yi("0x18")][Yi("0x25")]((t=>{const{data:n}=t;if(n&&Yi("0x13")==n[Yi("0x1")])return{type:"format",content:Yo(e,"*Change to:* %0",Yo(e,"ELEMENT_PARAGRAPH"))}})),n[Yi("0x2e")](Yi("0x30")),t[Yi("0x9")].downcastDispatcher.on(Yi("0x11"),ex(t),{priority:"highest"}),t.data[Yi("0x14")].on(Yi("0x11"),((e,n,o)=>{o[Yi("0x16")][Yi("0x4")]&&ex(t,{showActiveMarker:!1})(e,n,o)}),{priority:Yi("0xc")});const o=n._descriptionFactory;o[Yi("0x25")]((n=>{if(Yi("0x0")!==n[Yi("0x2a")])return;const{start:s,end:r}=n.getFirstRange();if(!s[Yi("0x35")](r)||!s[Yi("0xa")])return;const i=t[Yi("0x2c")].schema,x=s[Yi("0xa")];return i[Yi("0x10")](x)&&!i[Yi("0x1d")](x)&&i[Yi("0xd")](x,Yi("0x2"))?{type:Yi("0x0"),content:Yo(e,Yi("0x2f"),o[Yi("0x31")](x,1))}:void 0}))}}function ex(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t[Yi("0x1f")][Yi("0x28")]("TrackChangesEditing"),i=o[Yi("0x1b")][Yi("0x19")],x=o.markerRange[Yi("0x36")],a=t[Yi("0x2c")][Yi("0x12")];if(!i[Yi("0x35")](x)||!i[Yi("0xa")])return;const c=i.nodeAfter;if(a[Yi("0x10")](c)&&!a[Yi("0x1d")](c)&&a.checkChild(c,Yi("0x2"))){if(!s[Yi("0x26")][Yi("0x34")](o[Yi("0x1b")],n[Yi("0x1e")]))return;const t=s[Yi("0xf")][Yi("0x3")](Yi("0x21"),{class:Yi("0x32")}),i=s.mapper.toViewPosition(x);e&&r[Yi("0x33")][Yi("0x8")](o[Yi("0x2b")])&&s.writer[Yi("0x7")](Yi("0x5"),t),s.writer[Yi("0x17")](i,t),s[Yi("0xb")].bindElementToMarker(t,o[Yi("0x2b")])}}}const nx=["plugins","format","markInlineFormat","has","getAttributeProperties","getRanges","change","from","model","removeFormat","TrackChangesEditing","document","afterInit","isFormatting","commandName","createRangeOn","enableCommand","editor","registerDescriptionCallback","locale","schema","isCollapsed","getItems","_descriptionFactory"];var ox,sx;ox=nx,sx=112,function(t){for(;--t;)ox.push(ox.shift())}(++sx);const rx=function(t,e){return nx[t-=0]};class ix extends t.Plugin{[rx("0x14")](){const t=this[rx("0x1")];if(!t[rx("0x8")][rx("0xb")]("RemoveFormatEditing"))return;const e=t[rx("0x8")].get(rx("0x12"));e[rx("0x0")](rx("0x11"),(n=>{const o=t[rx("0x10")][rx("0x13")].selection;o[rx("0x5")]?n():t[rx("0x10")][rx("0xe")]((()=>{const n=Array[rx("0xf")](o[rx("0xd")]());for(const o of n)for(const n of o[rx("0x6")]())xx(n,t[rx("0x10")][rx("0x4")])&&e[rx("0xa")](t[rx("0x10")][rx("0x17")](n),{commandName:rx("0x11"),commandParams:[]})}))})),e[rx("0x7")][rx("0x2")]((e=>{const{data:n}=e;if(n&&"removeFormat"==n[rx("0x16")])return{type:rx("0x9"),content:Yo(t[rx("0x3")],"*Remove all formatting*")}}))}}function xx(t,e){for(const[n]of t.getAttributes()){const t=e[rx("0xc")](n);if(t&&t[rx("0x15")])return!0}return!1}const ax=["get","discardSuggestion","acceptSelectedSuggestions","discardAllSuggestions","plugins","acceptSuggestion","goToNextRestrictedEditingException","acceptAllSuggestions","has","enableCommand","goToPreviousRestrictedEditingException","RestrictedEditingModeEditing","TrackChangesEditing"];var cx,lx;cx=ax,lx=342,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const dx=function(t,e){return ax[t-=0]};class ux extends t.Plugin{afterInit(){const t=this.editor;if(!t[dx("0x0")][dx("0x4")](dx("0x7")))return;const e=t[dx("0x0")][dx("0x9")](dx("0x8"));e[dx("0x5")](dx("0x6")),e.enableCommand(dx("0x2"));const n=t[dx("0x0")][dx("0x9")](dx("0x7"));n[dx("0x5")]("trackChanges"),n.enableCommand(dx("0x1")),n[dx("0x5")](dx("0xa")),n[dx("0x5")](dx("0x3")),n[dx("0x5")](dx("0xc")),n[dx("0x5")](dx("0xb")),n[dx("0x5")]("discardSelectedSuggestions")}}const gx=["softBreak","markerName","addMarker:suggestion","ck-suggestion-marker--active","addMarker:suggestion:insertion","toViewPosition","init","showSuggestionHighlights","ck-suggestion-marker-","consumable","writer","activeMarkers","deletion","_descriptionFactory","get","options","downcastDispatcher","getItems","ELEMENT_LINE_BREAK","locale","includes","test","createUIElement","name","enableCommand","requires","mapper","editor","plugins","addClass","bindElementToMarker","markerRange","element","TrackChangesEditing","addMarker:suggestion:deletion","editing","split","model"];var mx,fx;mx=gx,fx=203,function(t){for(;--t;)mx.push(mx.shift())}(++fx);const hx=function(t,e){return gx[t-=0]};class px extends t.Plugin{static get[hx("0xc")](){return[nr.ShiftEnter]}[hx("0x1f")](){const t=this[hx("0xe")],e=t[hx("0xf")][hx("0x1")](hx("0x14"));e[hx("0xb")]("shiftEnter"),t[hx("0x16")][hx("0x3")].on(hx("0x1d"),bx(t),{priority:"high"}),t.editing[hx("0x3")].on(hx("0x15"),bx(t),{priority:"high"}),t.data[hx("0x3")].on(hx("0x1b"),((e,n,o)=>{o[hx("0x2")][hx("0x20")]&&bx(t,{showActiveMarker:!1})(e,n,o)})),e[hx("0x0")].registerElementLabel(hx("0x19"),(e=>Yo(t[hx("0x6")],hx("0x5"),e)))}}function bx(t,{showActiveMarker:e=!0}={}){return(n,o,s)=>{const r=t.plugins.get(hx("0x14"));if(!s[hx("0x22")][hx("0x8")](o.markerRange,n[hx("0xa")]))return;const i=t[hx("0x18")];for(const t of o[hx("0x12")][hx("0x4")]()){if(!t.is(hx("0x13"),"softBreak"))continue;const n=hx("0x25")==o[hx("0x1a")][hx("0x17")](":")[1]?"merge":hx("0x17"),x=s[hx("0x23")][hx("0x9")]("span",{class:hx("0x21")+n}),a=s[hx("0xd")][hx("0x1e")](i.createPositionBefore(t));e&&r[hx("0x24")][hx("0x7")](o[hx("0x1a")])&&s[hx("0x23")][hx("0x10")](hx("0x1c"),x),s[hx("0x23")].insert(a,x),s[hx("0xd")][hx("0x11")](x,o[hx("0x1a")])}}}const Ex=["markInlineFormat","forceValue","TrackChangesEditing","commandParams","FORMAT_RESTRICTED_DISABLED","model","restrictedEditingException","selection","get","getRanges","change","has","commands","isCollapsed","format","FORMAT_RESTRICTED_ENABLED","document","locale","editor","plugins","value","_descriptionFactory"];var _x,Tx;_x=Ex,Tx=150,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{afterInit(){const t=this[yx("0x0")],e=t[yx("0x9")],n=t[yx("0x15")];if(!t[yx("0x1")][yx("0xf")]("StandardEditingModeEditing"))return;const o=t[yx("0x1")][yx("0xc")](yx("0x6")),s=yx("0xa"),r=t[yx("0x10")][yx("0xc")](s);o.enableCommand(s,((t,n={})=>{const i=e[yx("0x14")][yx("0xb")];if(i[yx("0x11")])return void t(n);const x=void 0!==n[yx("0x5")]?n[yx("0x5")]:!r[yx("0x2")];e[yx("0xe")]((()=>{const t=Array.from(i[yx("0xd")]());for(const n of t){const t=x?[n]:ms(s,n,e);for(const e of t)o[yx("0x4")](e,{commandName:s,commandParams:[{forceValue:x}]})}}))})),o[yx("0x3")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&e.commandName==s)return e[yx("0x7")][0][yx("0x5")]?{type:"format",content:Yo(n,yx("0x13"))}:{type:yx("0x12"),content:Yo(n,yx("0x8"))}}))}}const kx=["_getStyleDefinition","every","config","_descriptionFactory","getAttribute","add","commandName","Style","modelElements","document","normalizeConfig","markBlockFormat","from","has","editor","plugins","TrackChangesEditing","block","markInlineFormat","style.definitions","*Remove format:* %0","name","forceValue","getSelectedBlocks","format","getItems","classes","enabledStyles","isBlock","styleName","style:","getAncestors","_getRangesWithClasses","style","model","change","getRanges","push","find","includes","toLowerCase","StyleUtils","element","value","commands","commandParams","afterInit","getDefinitionsForView","get","inline","*Format:* %0"];var Ax,vx;Ax=kx,vx=491,function(t){for(;--t;)Ax.push(Ax.shift())}(++vx);const Rx=function(t,e){return kx[t-=0]};class Ix extends t.Plugin{[Rx("0xe")](){const t=this[Rx("0x21")];if(!t[Rx("0x22")][Rx("0x20")](Rx("0x1a")))return;const e=t[Rx("0xc")][Rx("0x10")](Rx("0x1")),n=t[Rx("0x22")][Rx("0x10")](Rx("0x23")),o=t.locale,s=t[Rx("0x22")][Rx("0x10")]("DataSchema"),r=t.plugins[Rx("0x10")](Rx("0x9"))[Rx("0x1d")](s,t[Rx("0x15")][Rx("0x10")](Rx("0x26")));n.enableCommand(Rx("0x1"),((o,{styleName:i})=>{const x=t[Rx("0x2")][Rx("0x1c")].selection,a=this[Rx("0x13")](i,r);if(!a)return;if(!e[Rx("0x2e")][Rx("0x7")](i))return;if(x.isCollapsed&&!a.isBlock)return void o({styleName:i});const c=!e[Rx("0xb")].includes(a[Rx("0x28")]);if(a[Rx("0x2f")]){const e=function(t,e){const n=new Set;for(const o of t){const t=o[Rx("0x32")]({includeSelf:!0,parentFirst:!0});for(const o of t)if(e[Rx("0x7")](o[Rx("0x28")])){n[Rx("0x18")](o);break}}return n}(x[Rx("0x2a")](),a[Rx("0x1b")]);t[Rx("0x2")].change((()=>{for(const t of e)n[Rx("0x1e")](t,{commandName:Rx("0x1"),commandParams:[{styleName:i,forceValue:c}],formatGroupId:Rx("0x31")+i})}))}else{let e=Array[Rx("0x1f")](x[Rx("0x4")]());if(!c){const n=Array[Rx("0x1f")](s[Rx("0xf")](a[Rx("0xa")],!1))[0][Rx("0x2")],o=[];for(const s of e){const e=this[Rx("0x0")](t.model,s,a[Rx("0x2d")],n);o[Rx("0x5")](...e)}e=o}t[Rx("0x2")][Rx("0x3")]((()=>{for(const t of e)n[Rx("0x25")](t,{commandName:Rx("0x1"),commandParams:[{styleName:i,forceValue:c}]})}))}})),n[Rx("0x16")].registerDescriptionCallback((t=>{const{data:e}=t;if(e&&"style"===e[Rx("0x19")])return e.commandParams[0][Rx("0x29")]?{type:"format",content:Yo(o,Rx("0x12"),e[Rx("0xd")][0][Rx("0x30")][Rx("0x8")]())}:{type:Rx("0x2b"),content:Yo(o,Rx("0x27"),e[Rx("0xd")][0].styleName[Rx("0x8")]())}}))}[Rx("0x13")](t,e){let n=e[Rx("0x24")][Rx("0x6")]((e=>e[Rx("0x28")]===t));return n||(n=e[Rx("0x11")][Rx("0x6")]((e=>e.name===t))),n}[Rx("0x0")](t,e,n,o){const s=[];for(const r of e[Rx("0x2c")]()){const e=r[Rx("0x17")](o);e&&n[Rx("0x14")]((t=>e.classes.includes(t)))&&s.push(t.createRangeOn(r))}return s}}const Sx=["getSelectionAffectedTableCells","first","last","filter","ELEMENT_TABLE_ROW_WITH_TEXT","markMultiRangeInsertion","start","every","join","*Insert:* %0","suggestion","getCellLocation","_getSuggestionCoords","toViewElement","item","TrackChangesEditing","ELEMENT_TABLE_COLUMN_WITH_TEXT","model","_getCoordsForCells","hasAttribute","selection","createTableWalker","writer","some","minColumn","addMarker:suggestion","registerElementLabel","insertTableRowAbove","selectTableRow","getColumnIndexes","left","_splitMarkerName","change","ELEMENT_TABLE_COLUMN","add","table","span","type","_tablePostFixingSubtypes","commands","markMultiRangeDeletion","colspan","ELEMENT_TABLE","name","order","push","ELEMENT_TABLE_WITH_TEXT","classes","removeTableColumn","nodeBefore","getAttribute","getRanges","_descriptionFactory","selectTableColumn","rootName","setSelection","substr","isIntersectingWithRange","MIN_SAFE_INTEGER","tableColumn","_acceptFormatSuggestionCallbackFactory","ELEMENT_TABLE_ROW","values","above","getChanges","root","addClass","execute","addRange","insertion","getItems","cell","fromRange","end","getContainedElement","_suggestionFactory","includes","getFirstRange","_tableSuggestions","TableUtils","registerCustomCallback","length","deletion","locale","removeTableRow","accept","$textProxy","minRow","insertTableRowBelow","maxRow","editor","startsWith","min","detach","toLowerCase","downcastDispatcher","discard","rowspan","has","findAncestor","insertTableColumnRight","batch","enableCommand","createRangeOn","isEqual","change:data","from","TableEditing","$graveyard","plugins","highest","*Remove:* %0","tableRow","subType","mapper","low","document","isTouching","get","enqueueChange","refresh","max","nodeAfter","registerPostFixer","position","tableCell","data","map","getChangedMarkers"];var Lx,Nx;Lx=Sx,Nx=318,function(t){for(;--t;)Lx.push(Lx.shift())}(++Nx);const Mx=function(t,e){return Sx[t-=0]};class wx extends t.Plugin{constructor(t){super(t),this[Mx("0x6b")]=[Mx("0x34"),Mx("0x80")],this[Mx("0x12")]=new Set}afterInit(){const t=this[Mx("0x1e")],e=t[Mx("0x56")][Mx("0x38")][Mx("0x59")];if(!t[Mx("0x31")][Mx("0x26")](Mx("0x2f")))return;const n=t[Mx("0x17")],o=t[Mx("0x31")][Mx("0x3a")](Mx("0x54")),s=t[Mx("0x31")][Mx("0x3a")]("TableUtils");o[Mx("0x79")][Mx("0x5f")](Mx("0x68"),(t=>Yo(n,Mx("0x6f"),t))),this._setupColumnsRowsFixing(),o[Mx("0x2a")]("insertTable"),o[Mx("0x2a")](Mx("0x61")),o[Mx("0x2a")](Mx("0x7a"));for(const n of[Mx("0x60"),Mx("0x1c")]){const r=t[Mx("0x6c")][Mx("0x3a")](n);o[Mx("0x2a")](n,(n=>{t[Mx("0x56")].change((t=>{n();const i=Mx("0x3")===r[Mx("0x71")],x=s[Mx("0x45")](e),a=s.getRowIndexes(x),c=i?a[Mx("0x46")]-1:a.last+1,l=x[0][Mx("0x27")](Mx("0x68")),d=s.createTableWalker(l,{startRow:c,endRow:c}),u=Array.from(d).map((e=>t[Mx("0x2b")](e.cell)));o[Mx("0x4a")](u,Mx("0x34"))}))}))}for(const n of["insertTableColumnLeft",Mx("0x28")]){const r=t[Mx("0x6c")][Mx("0x3a")](n);o[Mx("0x2a")](n,(n=>{t[Mx("0x56")][Mx("0x65")]((t=>{n();const i=Mx("0x63")===r.order,x=s[Mx("0x45")](e),a=s[Mx("0x62")](x),c=i?a[Mx("0x46")]-1:a.last+1,l=x[0][Mx("0x27")](Mx("0x68")),d=s[Mx("0x5a")](l,{startRow:0,column:c,includeAllSlots:!1}),u=Array[Mx("0x2e")](d)[Mx("0x43")]((e=>t[Mx("0x2b")](e[Mx("0xb")])));o[Mx("0x4a")](u,Mx("0x80"))}))}))}for(const n of[Mx("0x18"),Mx("0x75")]){const r=n[Mx("0x7d")](11),i=r[Mx("0x22")](),x=i[Mx("0x7d")](0,3)+Mx("0x69"),a=Mx("0x68")+r,c=Mx("0x20")+r,l=Mx("0x3d")+r;o.enableCommand(n,(()=>{t[Mx("0x56")][Mx("0x65")]((t=>{const r=s[Mx("0x45")](e),d=r[0][Mx("0x27")](Mx("0x68"));let u;if(Mx("0x18")==n){const t=s.getRowIndexes(r);u={startRow:t[Mx("0x46")],endRow:t.last,includeAllSlots:!0}}else{const t=s[Mx("0x62")](r);u={startColumn:t[Mx("0x46")],endColumn:t[Mx("0x47")],includeAllSlots:!0}}const g=s[Mx("0x5a")](d,u),m=Array[Mx("0x2e")](g)[Mx("0x43")]((({cell:t})=>t)),f=Ox(m[Mx("0x48")]((t=>t[Mx("0x58")](x)))),h=Ox(m[Mx("0x48")]((t=>!t[Mx("0x58")](x))))[Mx("0x43")]((e=>t.createRangeOn(e))),p=o[Mx("0x6d")](h,a);if(p&&(Mx("0x34")==p[Mx("0x35")]||Mx("0x80")==p[Mx("0x35")])){const e=this._getSuggestionCoords(p);for(const n of f){const o=t.createRangeOn(n),r=s.getCellLocation(n),a=n.getAttribute(x)-1,d=e[c],u=e[l];d<=r[i]&&r[i]+a<=u&&p[Mx("0x8")](o)}}}))}))}function r(n){const o=Array[Mx("0x2e")](e.getRanges())[Mx("0x43")]((t=>i.LiveRange[Mx("0xc")](t)));t.model[Mx("0x65")]((e=>{const s=e[Mx("0x29")];n=n[Mx("0x48")]((t=>Mx("0x30")!=t[Mx("0x5")][Mx("0x7b")])),e[Mx("0x7c")](n),t[Mx("0x6c")].get(Mx("0x18")).refresh(),t[Mx("0x7")](Mx("0x18"),{forceDefaultExecution:!0}),t[Mx("0x56")][Mx("0x3b")]((()=>{t[Mx("0x56")].enqueueChange(s,(t=>{const e=o[Mx("0x48")]((t=>Mx("0x30")!=t[Mx("0x5")].rootName));e.length>0&&t.setSelection(e);for(const t of o)t[Mx("0x21")]()}))}))}))}function a(n){t.model[Mx("0x65")]((o=>{const s=Array.from(e.getRanges()).map((t=>i.LiveRange[Mx("0xc")](t))),r=[];for(const t of n)for(const e of t[Mx("0xa")]({shallow:!0}))r[Mx("0x72")](e);for(const e of r)"$graveyard"!=e.root[Mx("0x7b")]&&(o[Mx("0x7c")](o.createPositionAt(e,0)),t[Mx("0x6c")][Mx("0x3a")](Mx("0x75"))[Mx("0x3c")](),t.execute(Mx("0x75"),{forceDefaultExecution:!0}));const x=s[Mx("0x48")]((t=>"$graveyard"!=t[Mx("0x5")][Mx("0x7b")]));x[Mx("0x15")]>0&&o[Mx("0x7c")](x);for(const t of s)t.detach()}))}function c(t,e){return e[Mx("0x4c")]((e=>t[Mx("0x5c")]((t=>t[Mx("0xd")].isEqual(e.start)||e.end[Mx("0x2c")](t[Mx("0x4b")])))))}function l(t,e){return t[Mx("0x5c")]((t=>e[Mx("0x5c")]((e=>t.end[Mx("0x39")](e[Mx("0x4b")])))))}t[Mx("0x42")][Mx("0x23")].on(Mx("0x5e"),((t,e,n)=>{if(!n.options.showSuggestionHighlights)return;const o=e[Mx("0x53")];if(!o)return;const s=n[Mx("0x36")][Mx("0x52")](o);function r(t){return Array.isArray(t)?t:[t]}s&&Mx("0x41")===o.name&&(0,x.setHighlightHandling)(s,n[Mx("0x5b")],((t,e,n)=>n[Mx("0x6")](r(e[Mx("0x74")]),t)),((t,e,n)=>n.removeClass(r(e[Mx("0x74")]),t)))}),{priority:Mx("0x32")}),o[Mx("0x79")].registerDescriptionCallback((t=>{if(Mx("0x9")!=t[Mx("0x6a")]&&Mx("0x16")!=t.type)return;const e=t[Mx("0xe")]();if(null!=e&&e.is("element",Mx("0x68"))){if(Mx("0x9")==t[Mx("0x6a")]){const e=t[Mx("0xa")]().filter((t=>t.is("$textProxy"))).map((t=>t[Mx("0x42")]));if(e[Mx("0x15")])return{type:"insertion",content:Yo(n,Mx("0x4e"),Yo(n,Mx("0x73"),'"'+e[Mx("0x4d")](" ")+'"'))}}if(Mx("0x16")==t.type){const e=t[Mx("0xa")]()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t.data));if(e[Mx("0x15")])return{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x73"),'"'+e[Mx("0x4d")](" ")+'"'))}}}})),o[Mx("0x79")].registerDescriptionCallback((t=>{if("tableRow"==t.subType){const e=t[Mx("0xa")]()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t[Mx("0x42")])),o=this[Mx("0x51")](t),s=o[Mx("0x1d")]-o[Mx("0x1b")]+1;if(Mx("0x9")==t[Mx("0x6a")])return e[Mx("0x15")]?{type:Mx("0x9"),content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x49"),[s,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,"ELEMENT_TABLE_ROW",s))};if(Mx("0x16")==t[Mx("0x6a")])return e.length?{type:"deletion",content:Yo(n,Mx("0x33"),Yo(n,Mx("0x49"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x1"),s))}}if(Mx("0x80")==t[Mx("0x35")]){const e=t.getItems()[Mx("0x48")]((t=>t.is(Mx("0x1a"))))[Mx("0x43")]((t=>t.data)),o=this[Mx("0x51")](t),s=o.maxColumn-o[Mx("0x5d")]+1;if(Mx("0x9")==t[Mx("0x6a")])return e[Mx("0x15")]?{type:Mx("0x9"),content:Yo(n,Mx("0x4e"),Yo(n,Mx("0x55"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:"insertion",content:Yo(n,"*Insert:* %0",Yo(n,Mx("0x66"),s))};if(Mx("0x16")==t.type)return e[Mx("0x15")]?{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,Mx("0x55"),[s,'"'+e[Mx("0x4d")](" ")+'"']))}:{type:Mx("0x16"),content:Yo(n,Mx("0x33"),Yo(n,"ELEMENT_TABLE_COLUMN",s))}}})),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),"tableRow",Mx("0x24"),r),o[Mx("0xf")][Mx("0x14")](Mx("0x16"),Mx("0x34"),Mx("0x19"),r),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),"tableColumn",Mx("0x24"),a),o[Mx("0xf")].registerCustomCallback(Mx("0x16"),Mx("0x80"),Mx("0x19"),a),o[Mx("0xf")][Mx("0x14")](Mx("0x9"),Mx("0x80"),Mx("0x4d"),c),o._suggestionFactory[Mx("0x14")](Mx("0x16"),Mx("0x80"),"join",c),o[Mx("0xf")][Mx("0x14")]("insertion","tableRow",Mx("0x4d"),l),o[Mx("0xf")][Mx("0x14")](Mx("0x16"),Mx("0x34"),"join",l)}[Mx("0x0")](){const t=this[Mx("0x1e")],e=t.model[Mx("0x38")].selection;return(n,o)=>{t.model[Mx("0x65")]((s=>{const{commandName:r,commandParams:x}=o;let a=n[0][Mx("0xd")][Mx("0x76")];x&&x[0]&&!1===x[0].forceValue&&(a=n[0][Mx("0x4b")].nodeAfter);const c=s.createRangeIn(a);if(Mx("0x30")==c[Mx("0x5")][Mx("0x7b")])return;const l=Array.from(e[Mx("0x78")]())[Mx("0x43")]((t=>i.LiveRange[Mx("0xc")](t)));s[Mx("0x7c")](c),t[Mx("0x6c")][Mx("0x3a")](r)[Mx("0x3c")](),x[Mx("0x72")]({forceDefaultExecution:!0}),t.execute(r,...x);const d=l.filter((t=>Mx("0x30")!=t[Mx("0x5")][Mx("0x7b")]));d[Mx("0x15")]>0&&s[Mx("0x7c")](d);for(const t of l)t[Mx("0x21")]()}))}}[Mx("0x57")](t){const e=this.editor.plugins[Mx("0x3a")](Mx("0x13"));let n=Number.MAX_SAFE_INTEGER,o=Number.MIN_SAFE_INTEGER,s=Number.MAX_SAFE_INTEGER,r=Number[Mx("0x7f")];for(const i of t){if(Mx("0x30")==i[Mx("0x5")][Mx("0x7b")])continue;const{row:t,column:x}=e.getCellLocation(i),a=i[Mx("0x58")](Mx("0x25"))?i[Mx("0x77")](Mx("0x25"))-1:0,c=i[Mx("0x58")](Mx("0x6e"))?i[Mx("0x77")](Mx("0x6e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,s=x<s?x:s,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:s,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Mx("0x1e")],e=t[Mx("0x31")].get(Mx("0x54")),n=t[Mx("0x31")][Mx("0x3a")](Mx("0x13"));t.model[Mx("0x38")].on(Mx("0x2d"),(()=>{const n=Array[Mx("0x2e")](t[Mx("0x56")][Mx("0x38")].differ[Mx("0x44")]());for(const{name:t,data:o}of n){const{group:n,id:s,subType:r}=e[Mx("0x64")](t);if(Mx("0x4f")!=n)continue;if(null!=o.oldRange)continue;const i=e.getSuggestion(s);this[Mx("0x6b")][Mx("0x10")](r)&&this[Mx("0x12")][Mx("0x67")](i)}}),{priority:Mx("0x37")});const o=(t,e)=>{let o=!1;const s=e.createRangeOn(t),r=t.findAncestor(Mx("0x68")),i=n[Mx("0x50")](t);for(const e of this[Mx("0x12")]){const n=e.subType,x=n[Mx("0x1f")]("tablePaste"),a=n.substr(x?10:5),c=a[Mx("0x22")](),l=c[Mx("0x7d")](0,3)+"span",d=Mx("0x20")+a,u=Mx("0x3d")+a;if(!e.isInContent)continue;if(r!=e[Mx("0x11")]()[Mx("0x4b")].findAncestor(Mx("0x68")))continue;if(e[Mx("0x7e")](s))continue;const g=t[Mx("0x58")](l)?t.getAttribute(l)-1:0,m=this._getSuggestionCoords(e),f=m[d],h=m[u];f<=i[c]&&i[c]+g<=h&&(e[Mx("0x8")](s),o=!0)}return o};t.model[Mx("0x38")][Mx("0x3f")]((e=>{let n=!1;for(const s of t[Mx("0x56")][Mx("0x38")].differ[Mx("0x4")]())if("insert"==s[Mx("0x6a")])if(Mx("0x34")==s[Mx("0x70")])for(const t of s[Mx("0x40")].nodeAfter.getChildren())n=n||o(t,e);else"tableCell"==s[Mx("0x70")]&&(n=n||o(s[Mx("0x40")].nodeAfter,e));return n}))}[Mx("0x51")](t){return this[Mx("0x57")](t[Mx("0x78")]()[Mx("0x43")]((t=>t[Mx("0x4b")][Mx("0x3e")])))}}function Ox(t){return Array[Mx("0x2e")](new Set(t)[Mx("0x2")]())}const Fx=["markMultiRangeBlockFormat","trackChanges","getCellLocation","mergeTableCellDown","getSelectionAffectedTableCells","low","setSelection","_tablePostFixingSubtypes","forceDefaultExecution","selection","commands","isInContent","registerCustomCallback","add","*Split cell:* horizontally","mergeTableCellUp","markBlockFormat","deletion","cell","value","TrackChangesEditing","direction","_suggestionFactory","createRangeOn","_descriptionFactory","getAncestors","formatBlock","isEnabled","enableCommand","length","rootName","accept","return","from","commandName","afterInit","model","_isForcedDefaultExecutionBlock","root","findAncestor","stop","find","document","createTableWalker","*Merge cells*","subType","splitTableCellVertically","locale","TableUtils","has","format","containsRange","table","type","map","mergeTableCellRight","splitTableCellHorizontally","registerDescriptionCallback","filter","get","highest","size","_acceptFormatSuggestionCallbackFactory","change","tableCell","editor","insertion","horizontally","TableEditing","requires","mergeTableCellLeft","getRanges","_areMergableCells","mergeTableCells","_areSelectedCellsMergable","detach","refresh","execute","getFirstPosition","author","plugins"];var Px,Dx;Px=Fx,Dx=287,function(t){for(;--t;)Px.push(Px.shift())}(++Dx);const Bx=function(t,e){return Fx[t-=0]};class jx extends t.Plugin{static get[Bx("0x19")](){return[wx]}[Bx("0x48")](){const t=this[Bx("0x15")],e=t.model[Bx("0x4f")][Bx("0x2e")],n=t[Bx("0x3")];if(!t[Bx("0x24")][Bx("0x5")](Bx("0x18")))return;const o=t[Bx("0x24")][Bx("0xf")]("TrackChangesEditing"),s=t[Bx("0x24")][Bx("0xf")](Bx("0x4")),r=t.plugins.get(wx);r[Bx("0x2c")].push(Bx("0x1d")),o[Bx("0x41")](Bx("0x1d"),(()=>{const e=s[Bx("0x29")](t.model[Bx("0x4f")][Bx("0x2e")]);t[Bx("0x49")][Bx("0x13")]((()=>{o[Bx("0x25")](e,{commandName:Bx("0x1d"),commandParams:[]},[],Bx("0x1d"))}))})),t.commands[Bx("0xf")](Bx("0x1d")).on("execute",((e,n)=>{t[Bx("0x2f")][Bx("0xf")](Bx("0x26"))[Bx("0x38")]&&(n[Bx("0x42")]>0&&n[n[Bx("0x42")]-1]&&n[n[Bx("0x42")]-1][Bx("0x2d")]||o[Bx("0x4a")]||this[Bx("0x1e")]()||e[Bx("0x4d")]())}),{priority:Bx("0x10")});for(const e of[Bx("0x34"),Bx("0xb"),Bx("0x28"),Bx("0x1a")]){const n=t[Bx("0x2f")][Bx("0xf")](e);o[Bx("0x41")](e,(()=>{const e=t[Bx("0x49")][Bx("0x4f")].selection.getFirstPosition()[Bx("0x3e")]()[Bx("0x4e")]((t=>t.is("element",Bx("0x14")))),s=n[Bx("0x38")];t.model[Bx("0x13")]((()=>{o[Bx("0x25")]([e,s],{commandName:Bx("0x1d"),commandParams:[]},[],Bx("0x1d"))}))}))}for(const e of[Bx("0x2"),"splitTableCellHorizontally"]){const n=t.commands[Bx("0xf")](e);o[Bx("0x41")](e,(()=>{const r=s[Bx("0x29")](t[Bx("0x49")][Bx("0x4f")].selection)[0],i=r[Bx("0x4c")](Bx("0x8")),{column:x,row:a}=s[Bx("0x27")](r);let c=[];if(Bx("0x17")==n[Bx("0x3a")]){const t=s[Bx("0x50")](i,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Bx("0x46")](t)[Bx("0xa")]((t=>t[Bx("0x37")]))}else{const t=s[Bx("0x50")](i,{column:x,includeAllSlots:!0});c=Array[Bx("0x46")](t).map((t=>t[Bx("0x37")]))}t[Bx("0x49")][Bx("0x13")]((t=>{o[Bx("0x35")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Bx("0x3d")][Bx("0xd")]((t=>{const{data:e}=t;if(e)return Bx("0x1d")==e[Bx("0x47")]?{type:Bx("0x6"),content:Yo(n,Bx("0x0"))}:void 0})),o[Bx("0x3d")].registerDescriptionCallback((t=>{const{data:e}=t;if(e)return"splitTableCellVertically"==e[Bx("0x47")]?{type:Bx("0x6"),content:Yo(n,"*Split cell:* vertically")}:Bx("0xc")==e.commandName?{type:Bx("0x6"),content:Yo(n,Bx("0x33"))}:void 0}));const x=r[Bx("0x12")]();for(const t of[Bx("0x34"),Bx("0xb"),Bx("0x28"),Bx("0x1a")])o._suggestionFactory[Bx("0x31")](Bx("0x3f"),t,Bx("0x44"),x);for(const t of[Bx("0x2"),Bx("0xc")])o[Bx("0x3b")].registerCustomCallback(Bx("0x3f"),t,Bx("0x44"),x);o[Bx("0x3b")].registerCustomCallback("formatBlock","mergeTableCells",Bx("0x44"),(n=>{t[Bx("0x49")][Bx("0x13")]((o=>{const s=Array.from(e[Bx("0x1b")]())[Bx("0xa")]((t=>i.LiveRange.fromRange(t)));o[Bx("0x2b")](n),t[Bx("0x2f")].get(Bx("0x1d"))[Bx("0x20")](),t[Bx("0x21")](Bx("0x1d"),{forceDefaultExecution:!0});const r=s[Bx("0xe")]((t=>"$graveyard"!=t[Bx("0x4b")][Bx("0x43")]));r.length>0&&o[Bx("0x2b")](r);for(const t of s)t[Bx("0x1f")]()}))}));for(const e of[Bx("0x34"),Bx("0x28"),Bx("0x1a"),"mergeTableCellRight"]){const n=t[Bx("0x2f")].get(e);n.on("set:isEnabled",((e,o,s)=>{if(s){const o=t[Bx("0x49")][Bx("0x4f")][Bx("0x2e")][Bx("0x22")]()[Bx("0x3e")]()[Bx("0x4e")]((t=>t.is("element",Bx("0x14"))));this[Bx("0x1c")](n[Bx("0x38")],o)||(e[Bx("0x45")]=!1,e[Bx("0x4d")]())}}),{priority:Bx("0x2a")})}}[Bx("0x1e")](){const t=this.editor[Bx("0x2f")].get(Bx("0x1d")),e=this.editor.plugins[Bx("0xf")](Bx("0x4"));if(!t[Bx("0x40")])return!1;const n=e[Bx("0x29")](this.editor[Bx("0x49")][Bx("0x4f")][Bx("0x2e")]);for(const t of n)for(const e of n)if(t!=e&&!this[Bx("0x1c")](t,e))return!1;return!0}[Bx("0x1c")](t,e){const n=this[Bx("0x15")].plugins[Bx("0xf")](Bx("0x39")),o=this.editor[Bx("0x49")].createRangeOn(t),s=this[Bx("0x15")][Bx("0x49")][Bx("0x3c")](e),r=new Set,i=new Set;for(const t of n.getSuggestions())if((Bx("0x16")==t.type||Bx("0x36")==t[Bx("0x9")]||Bx("0x1d")==t[Bx("0x1")])&&t[Bx("0x30")])for(const e of t[Bx("0x1b")]())e[Bx("0x7")](o,!0)&&r[Bx("0x32")](t.type+":"+t[Bx("0x23")].id),e[Bx("0x7")](s,!0)&&i[Bx("0x32")](t.type+":"+t[Bx("0x23")].id);if(r[Bx("0x11")]!=i[Bx("0x11")])return!1;for(const t of r)if(!i[Bx("0x5")](t))return!1;return!0}}const Ux=["markerName","setTableColumnHeader","registerCustomCallback","parent","_descriptionFactory","TableEditing","_splitMarkerName","value","createRange","removeMarker:suggestion","FORMAT_HEADER_COLUMN","createPositionBefore","mapper","document","removeClass","setTableRowHeader","headingColumns","showSuggestionHighlights","editing","isBefore","findAncestor","writer","table","change","createTableWalker","options","getSuggestion","commandName","cell","getAttribute","requires","*Format:* %0","unbindElementFromMarkerName","TableUtils","forceValue","index","last","createPositionAfter","markerRange","getColumnIndexes","commands","item","plugins","childCount","model","start","data","highest","markerNameToElements","accept","getChild","getSelectionAffectedTableCells","_suggestionFactory","includes","ck-suggestion-marker--active","getCellLocation","end","formatBlock","format","enableCommand","name","first","get","selection","registerDescriptionCallback","downcastDispatcher","TrackChangesEditing","FORMAT_REGULAR_COLUMN","removeAttribute","stop","toViewElement","FORMAT_REGULAR_ROW","getRowIndexes","addClass","data-suggestion","afterInit","addMarker:suggestion","editor"];var Gx,Hx;Gx=Ux,Hx=252,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("0xc")](){return[wx]}[zx("0x39")](){const t=this[zx("0x3b")];if(!t[zx("0x18")].has(zx("0x41")))return;const e=t.locale,n=t[zx("0x18")][zx("0x2c")](zx("0x30")),o=t[zx("0x18")].get(zx("0xf")),s=t[zx("0x18")].get(wx);function r({showActiveMarker:t=!0,setDataAttribute:e=!0}={}){return(s,r,i)=>{const{type:x,id:a}=n._splitMarkerName(r[zx("0x3c")]),c=n[zx("0x8")](a);if(!c.data||"setTableColumnHeader"!=c.data.commandName)return;if(r[zx("0x17")])return void s[zx("0x33")]();if(!i.consumable.consume(r.markerRange,s[zx("0x2a")]))return;const l=r[zx("0x14")][zx("0x1b")].nodeAfter,d=r[zx("0x14")][zx("0x26")].nodeBefore,u=l[zx("0x3f")][zx("0x3f")],{column:g}=o[zx("0x25")](l),{column:m}=o[zx("0x25")](d);for(let s=g;s<=m;s++){const c=o[zx("0x6")](u,{column:s,includeAllSlots:!1});for(const o of c){const s=o[zx("0xa")],c=i.mapper[zx("0x34")](s);i.writer[zx("0x37")]("ck-suggestion-marker-"+x,c),e&&i[zx("0x3")].setAttribute(zx("0x38"),a,c),i[zx("0x48")].bindElementToMarker(c,r.markerName),t&&(n.activeMarkers[zx("0x23")](r.markerName)?i[zx("0x3")].addClass(zx("0x24"),c):i[zx("0x3")].removeClass(zx("0x24"),c))}}}}n[zx("0x29")]("setTableRowHeader",((e,s)=>{const r=o[zx("0x21")](t[zx("0x1a")][zx("0x49")][zx("0x2d")]),i=o[zx("0x36")](r),x=r[0].findAncestor("table"),a=x[zx("0xb")]("headingRows")||0,c=s&&null!==s[zx("0x10")]?s.forceValue:!t.commands[zx("0x2c")](zx("0x4b"))[zx("0x43")],l=c?i[zx("0x12")]:i[zx("0x2b")],d=x[zx("0x20")](l);let u;if(c){const e=x[zx("0x20")](a);if(d[zx("0x11")]<e.index)return;u=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](e.getChild(0)),t.model[zx("0x13")](d[zx("0x20")](d[zx("0x19")]-1)))}else{const e=x.getChild(a-1);if(!e)return;u=t[zx("0x1a")][zx("0x44")](t[zx("0x1a")][zx("0x47")](d[zx("0x20")](0)),t[zx("0x1a")][zx("0x13")](e[zx("0x20")](e[zx("0x19")]-1)))}t[zx("0x1a")][zx("0x5")]((()=>{n.markBlockFormat(u,{commandName:zx("0x4b"),commandParams:[{forceValue:c}]},[],zx("0x4b"))}))})),n[zx("0x29")](zx("0x3d"),((e,o)=>{const s=t[zx("0x18")].get(zx("0xf")),r=s[zx("0x21")](t[zx("0x1a")][zx("0x49")][zx("0x2d")]),i=s[zx("0x15")](r),x=r[0][zx("0x2")](zx("0x4")),a=x[zx("0xb")](zx("0x4c"))||0,c=o&&null!==o[zx("0x10")]?o.forceValue:!t[zx("0x16")].get(zx("0x3d"))[zx("0x43")];let l;const d=x[zx("0x20")](0),u=c?i.last:i[zx("0x2b")],g=s[zx("0x6")](x,{startRow:0,column:u,includeAllSlots:!1}),m=Array.from(g)[0][zx("0xa")];if(c){const e=d[zx("0x20")](a);if(m[zx("0x1")](e))return;l=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](e),t.model[zx("0x13")](m))}else{const e=d[zx("0x20")](a-1);if(!e)return;l=t.model[zx("0x44")](t[zx("0x1a")][zx("0x47")](m),t[zx("0x1a")][zx("0x13")](e))}t[zx("0x1a")][zx("0x5")]((()=>{n.markBlockFormat(l,{commandName:zx("0x3d"),commandParams:[{forceValue:c}]},[],zx("0x3d"))}))})),t[zx("0x0")][zx("0x2f")].on(zx("0x3a"),r(),{priority:zx("0x1d")}),t.data[zx("0x2f")].on(zx("0x3a"),((t,e,n)=>{n[zx("0x7")][zx("0x4d")]&&r({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:"highest"}),t.editing[zx("0x2f")].on(zx("0x45"),((t,e,o)=>{const{type:s,id:r}=n[zx("0x42")](e[zx("0x3c")]),i=n[zx("0x8")](r);if(!i[zx("0x1c")]||zx("0x3d")!=i[zx("0x1c")][zx("0x9")])return;const x=o[zx("0x48")][zx("0x1e")](e[zx("0x3c")]);if(x)for(const t of x)o[zx("0x3")][zx("0x4a")]("ck-suggestion-marker-"+s,t),o[zx("0x3")].removeClass("ck-suggestion-marker--active",t),o.writer[zx("0x32")](zx("0x38"),t),o[zx("0x48")][zx("0xe")](t,e[zx("0x3c")])}),{priority:"highest"}),n[zx("0x40")][zx("0x2e")]((t=>{const{data:n}=t;if(n){if("setTableRowHeader"==n.commandName){const t=n.commandParams[0][zx("0x10")];return o(Yo(e,t?"FORMAT_HEADER_ROW":zx("0x35")))}if(zx("0x3d")==n[zx("0x9")]){const t=n.commandParams[0][zx("0x10")];return o(Yo(e,zx(t?"0x46":"0x31")))}}function o(t){return{type:zx("0x28"),content:Yo(e,zx("0xd"),t)}}}));const i=s._acceptFormatSuggestionCallbackFactory();n._suggestionFactory[zx("0x3e")](zx("0x27"),zx("0x4b"),"accept",i),n[zx("0x22")][zx("0x3e")](zx("0x27"),zx("0x3d"),zx("0x1f"),i)}}const Vx=["getSuggestion","editingDowncast","removeColumns","documentSelection","stop","author","ck-suggestion-marker--active","add","requires","reduce","suggestion","getChildren","value","TrackChangesEditing","accept","getColumnIndexes","_createdBatches","tableCellHorizontalAlignment","_getCoordsForCells","commands","isInContent","from","position","table","root","previousSibling","markers","low","editor","setAttribute","tablePasteRow","markMultiRangeInsertion","conversion","oldRange","first","$graveyard","cells","nextSibling","document","Users","redo","getChangedMarkers","selection","getSuggestions","getChild","editing","removeRows","model","rootName","includes","createRange","discard","getRanges","tableCellBorderStyle","schema","registerDescriptionCallback","formatBlock","previous","registerCustomCallback","columns","suggestion-td","type","getContainedElement","last","markerToHighlight","paragraph","next","wrap","fill","tableCellBorderWidth","_descriptionFactory","deletion","ck-suggestion-marker","push","for","containsRange","tableCellSuggestion","setAttributes","insert","markerName","_splitMarkerName","remove","tablePaste","move","updateMarker","columnInsertionRanges","insertRows","every","name","rowInsertionIndexes","getMarkers","insertionRanges","batch","isEmpty","endColumn","tablePasteCell","newRange","unwrap","high","hasSuggestion","markerAttributes","listenTo","getRange","dataDowncast","clipboardOutput","find","createRangeIn","tableCellVerticalAlignment","tablePasteChainId","markMultiRangeDeletion","tableCellBorderColor","startsWith","set","return","createTableWalker","suggestion:formatBlock:tablePasteCell","ck-suggestion-marker-insertion","elementToElement","suggestionLoaded","column","register","suggestionUnloaded","getAllAdjacentSuggestions","plugins","registerPostFixer","findAncestor","_suggestionFactory","removeMarkers","change","TableClipboard","removeMarker","view","attributes","createRangeOn","subType","keys","cell","fromEntries","has","insertion","start","isEqual","showSuggestionHighlights","tablePasteColumn","insertColumns","differ","filter","length","insertContent","end","getChanges","get","options","element","join","map","createPositionBefore","markMultiRangeBlockFormat","getColumns","trackChanges","tableCell","_tablePostFixingSubtypes","some","createElement","deletionRanges"];var Kx,qx;Kx=Vx,qx=202,function(t){for(;--t;)Kx.push(Kx.shift())}(++qx);const Xx=function(t,e){return Vx[t-=0]},$x=[Xx("0x20"),Xx("0x49"),Xx("0x10"),Xx("0x91"),Xx("0x46"),"tableCellBackgroundColor","tableCellPadding"],Jx=Object[Xx("0x64")]($x[Xx("0x76")]((t=>[t,null])));class Qx extends t.Plugin{static get[Xx("0x88")](){return[wx]}afterInit(){const t=this.editor;if(!t.plugins.has(Xx("0x5c")))return;const n=t[Xx("0x56")].get(Xx("0x8d")),o=t.plugins[Xx("0x72")]("TableUtils"),s=t[Xx("0x56")][Xx("0x72")](wx),r=t[Xx("0x56")].get(Xx("0x5c"));s[Xx("0x7c")][Xx("0x24")]("tablePasteRow","tablePasteColumn"),t.model[Xx("0x11")][Xx("0x53")]("tableCellSuggestion",{allowIn:"tableCell",allowContentOf:Xx("0x7b"),isLimit:!0}),t[Xx("0xa0")][Xx("0x50")]({model:Xx("0x27"),view:Xx("0x17")});let i=null;t[Xx("0xa")].on(Xx("0x6f"),((s,x)=>{const[a,c]=x,l=x[x[Xx("0x6e")]-1];l&&l.forceDefaultExecution||n._isForcedDefaultExecutionBlock||this[Xx("0x9c")].commands.get(Xx("0x7a"))[Xx("0x8c")]&&function(t,e,n,o,s){if(e&&!e.is(Xx("0x83")))return!1;const r=s.getTableIfOnlyTableInContent(t,n);if(!r||!Yx(r,void 0,o))return!1;const i=o.getSelectionAffectedTableCells(n[Xx("0x1")][Xx("0x5")]);if(!i[Xx("0x6e")])return!1;const x=i[0].findAncestor("table"),a=o.getRowIndexes(i),c=o[Xx("0x8f")](i),l={startRow:a[Xx("0xa2")],endRow:a[Xx("0x1a")],startColumn:c[Xx("0xa2")],endColumn:c[Xx("0x1a")]};return 1==i[Xx("0x6e")]&&(l.endRow+=o.getRows(r)-1,l[Xx("0x39")]+=o[Xx("0x79")](r)-1),Yx(x,l,o)}(a,c,t[Xx("0xa")],o,r)&&(s[Xx("0x84")](),i={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[Xx("0xa")][Xx("0x5b")]((()=>{t[Xx("0xa")].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[Xx("0x6e")]&&n[Xx("0x9f")](s,Xx("0x9e"),{tablePasteChainId:o}),r.length&&n[Xx("0x9f")](r,"tablePasteColumn",{tablePasteChainId:o}),a.length&&n[Xx("0x9f")](a,"tablePaste",{tablePasteChainId:o,skipNestingCheck:!0}),c[Xx("0x6e")]&&n[Xx("0x48")](c,Xx("0x2d"),{tablePasteChainId:o,skipNestingCheck:!0});const d=n[Xx("0x78")](l[Xx("0x76")]((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],Xx("0x3a"),{tablePasteChainId:o});if(d){const e=d[Xx("0x35")](),n=[];for(const{element:o,attributes:s}of l){if(!s)continue;const r=t[Xx("0xa")][Xx("0x60")](o),i=e[Xx("0x44")]((t=>t[Xx("0x41")]()[Xx("0x68")](r)));i&&n[Xx("0x24")]([i.name,s])}n[Xx("0x6e")]&&d[Xx("0x9d")](Xx("0x3f"),Object.fromEntries(n))}i=null})))}),{priority:e.priorities[Xx("0x3d")]+10}),t[Xx("0x56")].get(Xx("0x5c")).on("_replaceTableSlotCell",((t,e)=>{const[n,o,,s]=e;if(!i)return;t[Xx("0x84")]();const r=n[Xx("0x63")],x=o,a=Zx(r),c=Zx(x);t[Xx("0x4c")]=r;let l=null,d=null;if(c||a)if(a&&!c){s[Xx("0x2c")](r[Xx("0x7")](0));for(const t of Array[Xx("0x95")](x[Xx("0x8b")]()))s.insert(t,r,Xx("0x70"));const t=i[Xx("0x34")][Xx("0xc")](n.row),e=i.columnInsertionIndexes.includes(n[Xx("0x52")]);t||e||(l=s[Xx("0x45")](r))}else c&&!a&&(d=s[Xx("0x45")](r));else{const t=s[Xx("0x7e")](Xx("0x27")),e=s[Xx("0x7e")]("tableCellSuggestion");s[Xx("0x1e")](s[Xx("0x45")](r),e),s[Xx("0x29")](t,r,0);for(const e of Array.from(x.getChildren()))s[Xx("0x29")](e,t,Xx("0x70"));l=s.createRangeOn(t),d=s[Xx("0x60")](e)}const u=Array[Xx("0x95")](x.getAttributes())[Xx("0x6d")]((([t])=>$x[Xx("0xc")](t)));i[Xx("0xa4")][Xx("0x24")]({element:r,attributes:u.length?Object.fromEntries(u):null}),l&&i[Xx("0x36")][Xx("0x24")](l),d&&i[Xx("0x7f")][Xx("0x24")](d)}),{priority:"high"}),o.on(Xx("0x6b"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r[Xx("0x16")]||1;i.columnInsertionIndexes=new Array(a)[Xx("0x1f")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4d")](s,{startColumn:x,endColumn:x+a-1}))i[Xx("0x30")][Xx("0x24")](t[Xx("0xa")].createRangeOn(e))}),{priority:Xx("0x9b")}),o.on(Xx("0x31"),((e,n)=>{const[s,r={}]=n;if(!i)return;const x=r.at||0,a=r.rows||1;i.rowInsertionIndexes=new Array(a)[Xx("0x1f")](x).map(((t,e)=>t+e));for(const{cell:e}of o[Xx("0x4d")](s,{startRow:x,endRow:x+a-1}))i.rowInsertionRanges[Xx("0x24")](t[Xx("0xa")].createRangeOn(e))}),{priority:Xx("0x9b")}),n[Xx("0x21")][Xx("0x12")]((e=>{if(e[Xx("0x61")]&&e[Xx("0x61")][Xx("0x4a")]("tablePaste"))return e.previous?{}:{type:"insertion",content:Yo(t.locale,"*Replace table cells*")}}));const x=()=>{};for(const t of[Xx("0x2d"),Xx("0x6a"),Xx("0x9e"),Xx("0x3a")])n[Xx("0x59")][Xx("0x15")](Xx("0x66"),t,Xx("0x75"),x),n._suggestionFactory[Xx("0x15")](Xx("0x22"),t,Xx("0x75"),x);n._suggestionFactory[Xx("0x15")](Xx("0x13"),Xx("0x3a"),Xx("0xe"),x),n[Xx("0x59")].registerCustomCallback("formatBlock",Xx("0x3a"),Xx("0x8e"),((e,n,o)=>{const s=e.map((t=>t[Xx("0x19")]()))[Xx("0x6d")]((t=>t)),r=new Map(s.map((t=>[t,null])));if(i)for(const{element:t,attributes:e}of i.cells)e&&r[Xx("0x4b")](t,e);else if(o&&o.markerAttributes)for(const[e,n]of Object.entries(o.markerAttributes)){const o=t[Xx("0xa")][Xx("0x9a")][Xx("0x72")](e),s=o?o.getRange()[Xx("0x19")]():null;s&&r[Xx("0x4b")](s,n)}t[Xx("0xa")][Xx("0x5b")]((t=>{for(const[e,n]of r)t[Xx("0x28")]({...Jx,...n},e)}))}));const a=(e,o)=>{n[Xx("0x59")].registerCustomCallback(e,Xx("0x2d"),o,((s,r,i)=>{t[Xx("0xa")][Xx("0x5b")]((t=>{const x=[];for(const t of s){const e=t[Xx("0x67")].nodeAfter;e.is("element",Xx("0x27"))&&x[Xx("0x24")](e)}n[Xx("0x59")].getSuggestionCallback(e,null,o)(s,r,i);for(const e of x)Xx("0xa3")!=e[Xx("0x98")][Xx("0xb")]&&t[Xx("0x3c")](e)}))}))};a(Xx("0x66"),Xx("0x8e")),a(Xx("0x66"),"discard"),a(Xx("0x22"),Xx("0x8e")),a(Xx("0x22"),"discard"),n._suggestionFactory[Xx("0x15")](Xx("0x66"),Xx("0x9e"),Xx("0xe"),(t=>{const e=t[Xx("0x76")]((t=>t.getContainedElement())),n=e[0][Xx("0x58")](Xx("0x97")),{minRow:r,maxRow:i}=s[Xx("0x92")](e);o[Xx("0x9")](n,{at:r,rows:i-r+1})})),n._suggestionFactory[Xx("0x15")]("insertion","tablePasteColumn","discard",(t=>{const e=t.map((t=>t[Xx("0x19")]())),n=e[0].findAncestor(Xx("0x97")),{minColumn:r,maxColumn:i}=s._getCoordsForCells(e);o[Xx("0x82")](n,{at:r,columns:i-r+1})}));const c=(t,e)=>{if(!e[Xx("0x61")]||!e.subType[Xx("0x4a")](Xx("0x2d")))return;const o=e[Xx("0x5f")][Xx("0x47")],s=n[Xx("0x6")]().filter((t=>t[Xx("0x94")]&&t[Xx("0x5f")]&&t[Xx("0x5f")].tablePasteChainId==o));s[Xx("0x6e")]&&e[Xx("0x55")]()[Xx("0x6e")]!=s[Xx("0x6e")]&&s[Xx("0x89")](((t,e)=>(t[Xx("0x1d")]=e,e[Xx("0x14")]=t,e)))};function l(t,e=!0){const{id:o}=n[Xx("0x2b")](t[Xx("0x2a")]),s=[Xx("0x23"),Xx("0x4f")],r=n.activeMarkers[Xx("0xc")](t[Xx("0x2a")]);return r&&s.push(Xx("0x86")),{classes:s,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on(Xx("0x51"),c,{priority:Xx("0x3d")}),n.on(Xx("0x54"),c,{priority:Xx("0x3d")}),t[Xx("0xa")][Xx("0x1")][Xx("0x57")]((()=>{let e=!1;const o=Array[Xx("0x95")](t[Xx("0xa")][Xx("0x1")].differ[Xx("0x4")]());for(const{name:s,data:r}of o){const{group:o,type:i,id:x}=n[Xx("0x2b")](s);if(Xx("0x8a")!=o||Xx("0x22")!=i||r.oldRange)continue;if(!n[Xx("0x3e")](x))continue;const a=n[Xx("0x80")](x)[Xx("0xf")](),c=t[Xx("0x56")][Xx("0x72")](Xx("0x2")).me;for(const t of n[Xx("0x6")]())if(t[Xx("0x94")]&&t[Xx("0x85")]==c&&Xx("0x13")==t[Xx("0x18")]&&Xx("0x3a")==t.subType&&t[Xx("0xf")]()[Xx("0x32")]((t=>a[Xx("0x7d")]((e=>e[Xx("0x26")](t,!0))))))for(const n of t[Xx("0x55")]())n[Xx("0x94")]&&(n[Xx("0xe")](),e=!0)}return e})),t.model[Xx("0x1")][Xx("0x57")]((e=>{const o=t[Xx("0x93")].get(Xx("0x3"));if(!o||!o[Xx("0x90")][Xx("0x65")](e[Xx("0x37")]))return!1;let s=!1;const r=t[Xx("0x56")][Xx("0x72")]("Users").me,i=t[Xx("0xa")][Xx("0x1")][Xx("0x6c")][Xx("0x71")](),x=Array[Xx("0x95")](t[Xx("0xa")].document[Xx("0x6c")][Xx("0x4")]())[Xx("0x6d")]((({name:t,data:e})=>{const{group:o,subType:s,authorId:i}=n._splitMarkerName(t);return Xx("0x8a")==o&&"tablePaste"==s&&i==r.id&&!e[Xx("0xa1")]}));for(const t of i){if(Xx("0x29")!=t[Xx("0x18")]||Xx("0x27")!=t[Xx("0x33")]||1!=t[Xx("0x6e")])continue;const n=e[Xx("0xd")](t.position,t[Xx("0x96")].getShiftedBy(1));if(!x[Xx("0x44")]((({data:t})=>t[Xx("0x3b")][Xx("0x68")](n))))for(const{name:t,data:o}of x)if(n.containsRange(o.newRange)){e[Xx("0x2f")](t,{range:n}),s=!0;break}}return s})),t[Xx("0xa")][Xx("0x1")][Xx("0x57")]((e=>{let o=!1;const s=t[Xx("0x56")].get("Users").me,r=n[Xx("0x6")]()[Xx("0x6d")]((t=>t[Xx("0x94")]&&t[Xx("0x85")]==s)),i=new Set,x=new Set;for(const t of r)if("tablePaste"==t[Xx("0x61")])for(const e of t.getMarkers()){const n=e[Xx("0x41")]()[Xx("0x19")]();if(n)if(n.is(Xx("0x74"),"tableCellSuggestion")&&Zx(n)){t.removeMarker(e[Xx("0x33")]),i[Xx("0x87")](n),o=!0;const s=n[Xx("0x0")],r=n[Xx("0x99")],a=s&&s.is(Xx("0x74"),"tableCellSuggestion"),c=r&&r.is("element",Xx("0x27"));a&&!i[Xx("0x65")](s)&&x[Xx("0x87")](s),c&&!i[Xx("0x65")](r)&&x[Xx("0x87")](r)}else n.is(Xx("0x74"),Xx("0x1c"))&&n[Xx("0x38")]&&(t[Xx("0x5d")](e[Xx("0x33")]),o=!0)}else if(Xx("0x3a")==t.subType){if(!t[Xx("0x5f")]||!t[Xx("0x5f")].tablePasteChainId)continue;const e=t[Xx("0x5f")][Xx("0x3f")];if(e&&Object[Xx("0x62")](e).length)continue;const n=t[Xx("0x5f")].tablePasteChainId;let s=!0,i=!0;for(const e of r)if(e.subType&&e[Xx("0x61")][Xx("0x4a")]("tablePaste")){if(!e[Xx("0x5f")][Xx("0x47")]){i=!1;break}if(e.id!=t.id&&e[Xx("0x5f")].tablePasteChainId==n){s=!1;break}}i&&s&&(t[Xx("0x5a")](),o=!0)}for(const t of i)e.remove(t);for(const t of x)e[Xx("0x3c")](t);return o})),t.conversion[Xx("0x25")](Xx("0x81"))[Xx("0x1b")]({model:Xx("0x4e"),view:(t,e)=>l(t),converterPriority:"high"}),t[Xx("0xa0")][Xx("0x25")](Xx("0x42")).markerToHighlight({model:Xx("0x4e"),view:(t,e)=>e[Xx("0x73")][Xx("0x69")]?l(t,!1):null,converterPriority:Xx("0x3d")});const d=t[Xx("0x8")][Xx("0x5e")];this[Xx("0x40")](d[Xx("0x1")],Xx("0x43"),((t,e)=>{const n=[];for(const t of d.createRangeIn(e.content).getItems())t.is(Xx("0x74"),Xx("0x17"))&&n[Xx("0x24")](t);d.change((t=>{for(const e of n)t[Xx("0x2e")](t[Xx("0x45")](e),t[Xx("0x77")](e)),t.remove(e)}))}))}}function Zx(t){if(t.isEmpty)return!0;const e=t[Xx("0x7")](0);return e.is(Xx("0x74"),Xx("0x1c"))&&e.isEmpty}function Yx(t,e={},n){for(const{isAnchor:o,cellHeight:s,cellWidth:r}of n[Xx("0x4d")](t,{includeAllSlots:!0,...e}))if(!o||1!=s||1!=r)return!1;return!0}const ta=["format","handleResizeTableWidthCommand","resizeTableWidth","tableWidth","_descriptionFactory","_suggestionFactory","getSuggestionCallback","accept","has","registerDescriptionCallback","enableCommand","discard","*Format:* resize table","editor","subType","getAttribute","plugins","bind","table","getSelectedElement","formatGroupId","get","TrackChangesEditing","getColumnGroupElement","markBlockFormat","TableColumnResizeEditing","registerCustomCallback","handleSuggestionDescription","resizeColumnWidths","afterInit","getSuggestions","Users","model","locale","formatBlock","resizeTable","author"];var ea,na;ea=ta,na=411,function(t){for(;--t;)ea.push(ea.shift())}(++na);const oa=function(t,e){return ta[t-=0]};class sa extends t.Plugin{[oa("0x19")](){if(!this[oa("0x9")][oa("0xc")][oa("0x4")](oa("0x15")))return;const t=this.editor.plugins[oa("0x11")]("TrackChangesEditing");t[oa("0x6")](oa("0x23"),this[oa("0x22")][oa("0xd")](this)),t.enableCommand(oa("0x18"),this[oa("0x22")].bind(this)),t[oa("0x1")][oa("0x16")](oa("0x1e"),"resizeTable",oa("0x3"),t[oa("0x1")][oa("0x2")](oa("0x1e"),null,oa("0x7"))),t[oa("0x1")][oa("0x16")](oa("0x1e"),oa("0x1f"),oa("0x7"),t[oa("0x1")][oa("0x2")](oa("0x1e"),null,oa("0x3"))),t[oa("0x0")][oa("0x5")](this[oa("0x17")][oa("0xd")](this))}[oa("0x22")](t,e){const n=this.editor[oa("0xc")].get(oa("0x12")),o=this[oa("0x9")][oa("0xc")][oa("0x11")]("TableColumnResizeEditing"),s=e[oa("0xe")]||this[oa("0x9")].model.document.selection[oa("0xf")]();this[oa("0x9")][oa("0x1c")].change((()=>{const r=o[oa("0x13")](s);let i=r?o.getTableColumnsWidths(r):null,x=s[oa("0xb")](oa("0x24"))||null;const a=e.tableWidth||x,c=e.columnWidths||i,l=this[oa("0x9")][oa("0xc")].get(oa("0x1b")).me;for(const t of n[oa("0x1a")]()){const e=t.getContainedElement();if(oa("0x1f")===t[oa("0xa")]&&e===s){t[oa("0x20")]!==l&&t[oa("0x7")]();const e=t.data.commandParams;x=e[0][oa("0x24")],i=e[0].columnWidths;break}}t({table:s,tableWidth:a,columnWidths:c}),n[oa("0x14")](s,{commandName:oa("0x23"),commandParams:[{tableWidth:x,columnWidths:i}],formatGroupId:oa("0x1f")},[],oa("0x1f"))}))}[oa("0x17")](t){const{data:e}=t;if(e&&"resizeTable"===e[oa("0x10")]){const t=oa("0x8");return{type:oa("0x21"),content:Yo(this[oa("0x9")][oa("0x1d")],t)}}}}const ra=["enableCommand","Template","TrackChangesEditing","insertTemplate","editor","plugins","has"];var ia,xa;ia=ra,xa=241,function(t){for(;--t;)ia.push(ia.shift())}(++xa);const aa=function(t,e){return ra[t-=0]};class ca extends t.Plugin{afterInit(){const t=this[aa("0x1")];t[aa("0x2")][aa("0x3")](aa("0x5"))&&t[aa("0x2")].get(aa("0x6"))[aa("0x4")](aa("0x0"))}}const la=["registerElementLabel","enableCommand","commands","insertTableOfContents","plugins","tableOfContents","ELEMENT_TABLE_OF_CONTENTS","afterInit","get","TrackChangesEditing","_descriptionFactory"];var da,ua;da=la,ua=382,function(t){for(;--t;)da.push(da.shift())}(++ua);const ga=function(t,e){return la[t-=0]};class ma extends t.Plugin{[ga("0xa")](){const t=this.editor;if(!t[ga("0x5")][ga("0x0")](ga("0x6")))return;t[ga("0x7")][ga("0x0")](ga("0x1"))[ga("0x4")](ga("0x6"));const e=t.plugins.get(ga("0x1")),n=t.locale;e[ga("0x2")][ga("0x3")](ga("0x8"),(t=>Yo(n,ga("0x9"),t)))}}const fa=["from","end","removeMarker","registerPostFixer","title-content","model","has","element","getChangedMarkers","registerElementLabel","differ","ELEMENT_TITLE","TrackChangesEditing","plugins","_descriptionFactory","newRange","Title","isEqual","get","locale","start","isCollapsed","createRange","forward","updateMarker","afterInit","schema","suggestion"];var ha,pa;ha=fa,pa=299,function(t){for(;--t;)ha.push(ha.shift())}(++pa);const ba=function(t,e){return fa[t-=0]};class Ea extends t.Plugin{[ba("0x6")](){const t=this.editor;if(!t[ba("0x16")][ba("0xf")](ba("0x19")))return;const e=t[ba("0x16")][ba("0x1b")](ba("0x15"));e[ba("0x17")][ba("0x12")](ba("0xd"),(()=>Yo(t[ba("0x0")],ba("0x14")))),t[ba("0xe")].document[ba("0xc")]((n=>{let o=!1;const s=Array[ba("0x9")](t[ba("0xe")].document[ba("0x13")][ba("0x11")]());for(const{name:r,data:i}of s){const{group:s}=e._splitMarkerName(r);if(ba("0x8")!==s||!i[ba("0x18")])continue;const x=i.newRange,a=x[ba("0xa")].nodeBefore;if(!a||!a.is(ba("0x10"),ba("0xd")))continue;if(!x[ba("0x1")].isTouching(x[ba("0xa")]))continue;const c=t[ba("0xe")][ba("0x7")].getNearestSelectionRange(x[ba("0xa")],ba("0x4"));if(c&&c[ba("0x2")]){const t=n[ba("0x3")](x[ba("0x1")],c.start);t[ba("0x1a")](x)||(n[ba("0x5")](r,{range:t}),o=!0)}o||(n[ba("0xb")](r),o=!0)}return o}))}}const _a=["redo","TrackChangesEditing","afterInit","get","enableCommand","UndoEditing","undo","plugins","editor"];var Ta,ya;Ta=_a,ya=425,function(t){for(;--t;)Ta.push(Ta.shift())}(++ya);const Ca=function(t,e){return _a[t-=0]};class ka extends t.Plugin{[Ca("0x0")](){const t=this[Ca("0x6")],e=t[Ca("0x5")][Ca("0x1")](Ca("0x8"));t[Ca("0x5")].has(Ca("0x3"))&&(e[Ca("0x2")](Ca("0x4")),e.enableCommand(Ca("0x7")))}}const Aa=["plugins","editor","afterInit","TableCaptionEditing","get","toggleTableCaption","requires"];var va,Ra;va=Aa,Ra=200,function(t){for(;--t;)va.push(va.shift())}(++Ra);const Ia=function(t,e){return Aa[t-=0]};class Sa extends t.Plugin{static get[Ia("0x2")](){return[wx]}[Ia("0x5")](){const t=this[Ia("0x4")];t[Ia("0x3")].has(Ia("0x6"))&&t[Ia("0x3")][Ia("0x0")]("TrackChangesEditing").enableCommand(Ia("0x1"))}}const La=["expandListBlocksToCompleteList","isFirstBlockOfListItem","_descriptionFactory","isListItemBlock","listStart","config","change","model","handleListReversedCommand","TrackChangesEditing","selection","handleDescriptions","styles","type","DocumentListUtils","bind","editor","*Format:* set order to regular","list.properties","locale","*Format:* set order to reversed","length","getListTypeFromListStyleType","listReversed","ELEMENT_","document","format","from","listType","registerDescriptionCallback","DocumentListPropertiesEditing","push","get","replace","numbered","_getTranslationKeyForListStyle","_getSuggestionBlocksForListStyle","*Format:* set start index to %0","startIndex","enableCommand","*Change to:* %0","plugins","handleListStartCommand","commandName","listStyle","commandParams","getSelectedBlocks","handleListStyleCommand","markMultiRangeBlockFormat","_getSuggestionBlocks"];var Na,Ma;Na=La,Ma=192,function(t){for(;--t;)Na.push(Na.shift())}(++Ma);const wa=function(t,e){return La[t-=0]};class Oa extends t.Plugin{afterInit(){if(!this.editor[wa("0x31")].has(wa("0x26")))return;const t=this.editor[wa("0xd")][wa("0x28")](wa("0x1a")),e=this[wa("0x18")][wa("0x31")][wa("0x28")]("TrackChangesEditing");t[wa("0x14")]&&e[wa("0x2f")]("listStyle",this[wa("0x5")][wa("0x17")](this)),t.reversed&&e.enableCommand(wa("0x1f"),this.handleListReversedCommand[wa("0x17")](this)),t.startIndex&&e[wa("0x2f")]("listStart",this.handleListStartCommand.bind(this)),e[wa("0xa")][wa("0x25")](this[wa("0x13")].bind(this))}[wa("0x5")](t,e={}){const n=this.editor.plugins[wa("0x28")](wa("0x11")),o=this[wa("0x2c")]();this.editor.model[wa("0xe")]((()=>{n[wa("0x6")](o,{commandName:wa("0x2"),commandParams:[{type:e[wa("0x15")]}],formatGroupId:wa("0x2")})}))}[wa("0x10")](t,e={}){const n=this[wa("0x18")].plugins.get(wa("0x11")),o=this.editor.plugins.get("DocumentListUtils"),s=this[wa("0x7")]((t=>o[wa("0xb")](t)&&wa("0x2a")===t.getAttribute(wa("0x24"))));null!==s&&this[wa("0x18")].model[wa("0xe")]((()=>{n[wa("0x6")](s,{commandName:wa("0x1f"),commandParams:[{reversed:e.reversed}],formatGroupId:"listReversed"})}))}[wa("0x0")](t,e={}){const n=this[wa("0x18")][wa("0x31")][wa("0x28")](wa("0x11")),o=this[wa("0x18")][wa("0x31")].get(wa("0x16")),s=this[wa("0x7")]((t=>o.isListItemBlock(t)&&wa("0x2a")===t.getAttribute(wa("0x24"))));null!==s&&this[wa("0x18")][wa("0xf")][wa("0xe")]((()=>{n.markMultiRangeBlockFormat(s,{commandName:wa("0xc"),commandParams:[{startIndex:e[wa("0x2e")]}],formatGroupId:wa("0xc")})}))}[wa("0x13")](t){const e=this.editor[wa("0x1b")],{data:n}=t;if(!n)return;let o,s;switch(n[wa("0x1")]){case"listStyle":o=wa("0x30"),s={type:"format",content:Yo(e,o,Yo(e,this[wa("0x2b")](n[wa("0x3")][0][wa("0x15")])))};break;case wa("0x1f"):o=n[wa("0x3")][0].reversed?wa("0x1c"):wa("0x19"),s={type:wa("0x22"),content:Yo(e,o)};break;case"listStart":o=wa("0x2d"),s={type:wa("0x22"),content:Yo(e,o,n[wa("0x3")][0].startIndex)}}return s}[wa("0x2c")](){const t=this[wa("0x18")][wa("0x31")][wa("0x28")](wa("0x16"));let e=Array[wa("0x23")](this.editor.model[wa("0x21")][wa("0x12")][wa("0x4")]());return e[wa("0x27")](...t[wa("0x8")](e)),e=[...new Set(e)],e}_getSuggestionBlocks(t){const e=this[wa("0x18")][wa("0x31")][wa("0x28")]("DocumentListUtils");let n=Array[wa("0x23")](this[wa("0x18")][wa("0xf")][wa("0x21")][wa("0x12")][wa("0x4")]()).filter(t);if(!n[wa("0x1d")])return null;n=e[wa("0x8")](n);const o=[];for(const t of n)e[wa("0x9")](t)&&o[wa("0x27")](t);return o}[wa("0x2b")](t){return wa("0x20")+this.editor[wa("0x31")][wa("0x28")]("DocumentListPropertiesUtils")[wa("0x1e")](t).toUpperCase()+"_LIST_"+t.toUpperCase()[wa("0x29")](/-/g,"_")}}const Fa=["TableUtils","tableCellHorizontalAlignment","discard","enableCommand","batch","tableWidth","tableCellVerticalAlignment","has","subType","tableHeight","TableCellPropertiesEditing","registerCustomCallback","_handlePropertyChange","tableCellHeight","tableBorderColor","getSuggestionCallback","document","tableCellProperties","tableBackgroundColor","handleSuggestionDescription","plugins","getSelectionAffectedTableCells","table","getContainedElement","tableCellBackgroundColor","TablePropertiesEditing","*Format:* change table cell properties","_suggestionFactory","locale","data","enqueueChange","removeAttribute","pluginName","change","nodeAfter","handleDiscardAction","tableProperties","getSuggestions","findAncestor","tableCellBorderColor","tableBorderWidth","_getSuggestion","afterInit","get","editor","selection","model","markBlockFormat","tableBorderStyle","commandParams","tableCellPadding","TrackChangesEditing","formatBlock","accept","getFirstPosition","format","tableCellBorderStyle","join","start","tableCellWidth"];var Pa,Da;Pa=Fa,Da=385,function(t){for(;--t;)Pa.push(Pa.shift())}(++Da);const Ba=function(t,e){return Fa[t-=0]};class ja extends t.Plugin{constructor(t){super(t),this.tableProperties=[Ba("0x31"),Ba("0x17"),Ba("0xf"),"tableAlignment",Ba("0x28"),Ba("0x2c"),Ba("0x35")],this.tableCellProperties=[Ba("0xe"),Ba("0x1f"),"tableCellBorderWidth",Ba("0x19"),Ba("0x22"),Ba("0x30"),Ba("0x3b"),Ba("0x24"),Ba("0x29")]}static get[Ba("0x7")](){return"TrackChangesTableProperties"}[Ba("0x11")](){const t=this[Ba("0x13")].plugins[Ba("0x12")]("TrackChangesEditing");if(this[Ba("0x13")][Ba("0x37")][Ba("0x2a")](Ba("0x0"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[Ba("0x13")].model[Ba("0x33")].selection[Ba("0x1d")]()[Ba("0xd")](Ba("0x39"));this._handlePropertyChange(e,[o],this[Ba("0xb")],Ba("0xb"),t,n)}));t._suggestionFactory.registerCustomCallback(Ba("0x1b"),"tableProperties","accept",t[Ba("0x2")][Ba("0x32")](Ba("0x1b"),null,"discard")),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0xb"),Ba("0x25"),((t,e)=>this[Ba("0xa")](this[Ba("0xb")],t,e))),t[Ba("0x2")].registerCustomCallback(Ba("0x1b"),"tableProperties",Ba("0x20"),(()=>!1))}if(this[Ba("0x13")][Ba("0x37")][Ba("0x2a")](Ba("0x2d"))){for(const e of this[Ba("0x34")])t[Ba("0x26")](e,((t,n)=>{const o=this.editor.plugins[Ba("0x12")](Ba("0x23"))[Ba("0x38")](this[Ba("0x13")][Ba("0x15")][Ba("0x33")][Ba("0x14")]);this[Ba("0x2f")](e,o,this.tableCellProperties,Ba("0x34"),t,n)}));t._suggestionFactory[Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x1c"),t[Ba("0x2")][Ba("0x32")](Ba("0x1b"),null,Ba("0x25"))),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x25"),((t,e)=>this[Ba("0xa")](this.tableCellProperties,t,e))),t[Ba("0x2")][Ba("0x2e")](Ba("0x1b"),Ba("0x34"),Ba("0x20"),(()=>!1))}t._descriptionFactory.registerDescriptionCallback((t=>this[Ba("0x36")](t)))}_handlePropertyChange(t,e,n,o,s,r){const i=this[Ba("0x13")].plugins[Ba("0x12")](Ba("0x1a"));this[Ba("0x13")][Ba("0x15")][Ba("0x5")](r[Ba("0x27")],(()=>{for(const t of e)if(this[Ba("0x10")](t,o))s(r);else{const e={};for(const o of n){const n=t.getAttribute(o);void 0!==n&&(e[o]=n)}s(r),i[Ba("0x16")](t,{commandParams:[e]},[],o)}}))}[Ba("0xa")](t,e,n){const o=e[0][Ba("0x21")][Ba("0x9")],s=n[Ba("0x18")][0];this.editor.model[Ba("0x8")]((e=>{for(const n of t)void 0!==s[n]?e.setAttribute(n,s[n],o):e[Ba("0x6")](n,o)}))}handleSuggestionDescription(t){if(t[Ba("0x4")])switch(t[Ba("0x2b")]){case Ba("0xb"):return{type:Ba("0x1e"),content:Yo(this[Ba("0x13")].locale,"*Format:* change table properties")};case"tableCellProperties":return{type:Ba("0x1e"),content:Yo(this.editor[Ba("0x3")],Ba("0x1"))}}}[Ba("0x10")](t,e){const n=this[Ba("0x13")].plugins[Ba("0x12")]("TrackChangesEditing");for(const o of n[Ba("0xc")]({skipNotAttached:!0})){const n=o[Ba("0x3a")]();if(o[Ba("0x2b")]===e&&n===t)return o}return null}}const Ua=["moveTargetPosition","consume","schema","targetPosition","dataReady","updateMarker","enableCommand","high","suggestionChanged","isBefore","createPositionAt","$textProxy","data-suggestion","createPositionBefore","markInlineFormat","formatInline:discard","getCustomProperty","head","_setSuggestionData","type","detach","getLastMatchingPosition","consumable","track-changes-suggestion-data-mismatch","isMultiRange","ck-suggestion-marker","creator","trackChangesCommand","root","containsItem","markerReady","_defaultCallbacks","oldRange","chain","isDocumentOperation","insertion:discard","setTo","_getSuggestionData","removeMarker:suggestion:formatBlock","upcast","editing","skipNestingCheck","Users","_refreshSuggestionsChain","addMarker","document","options","requires","isInsideObject","createElement","_getExternalAuthor","markBlockFormat","nodeBefore","rejected","hasComments","locale","isAfter","editor","previous","includes","ck-suggestion-marker--active","insertion:accept","default","external:","deletion:join","newRange","_mergeNestedSuggestions","remove","unbind","formatGroupId","applyOperation","activeMarkers","getRanges","deletion","error-saving-suggestion-data-suggestion-discarded","normal","_addSuggestionMarker","return","model","getSuggestions","isTouching","ready","differ","clear","data","isNextTo","change","resolve","addUser","dataDowncast","getCommentThread","catch","range","addMarkerName","getIntersection","marker-count","@external","formatBlock","deletion:","stop","init","refresh","authoredAt","isSelectable","_suggestionState","formatInline:","_onDiscard","insertion:","change:data","markDeletion","getNearestSelectionRange","createSelection","formatInline:accept","removeClass","hasCommentThread","subType","createdAt","markMultiRangeInsertion","batch","every","elementStart","suggestionLoaded","getSuggestionCallback","addCommentThread","acceptSelectedSuggestions","_handleNewSuggestionMarker","_suggestionFactory","discardAllSuggestions","toViewElement","containsRangeInObject","_addThreadToSuggestion","_removeSuggestion","howMany","discard","accepted","_registerDefaultCallbacks","commandName","start","fromCharCode","track-changes-adapter-missing-getsuggestion","define","author","config","pluginName","getChanges","authorName","addMarker:suggestion","size","formatBlock:","getAncestors","ck-suggestion-marker-formatBlock","removed","enableReadOnlyMode","formatBlock:discard","addHighlight","next","markMultiRangeDeletion","_saved","listenTo","_updateSuggestionData","then","group","_adapter","removeMarkers","addSuggestionData","highest","_breakSuggestionMarker","getRange","multi","attributes","getWalker","_joinWithAdjacentSuggestions","acceptSuggestion","_splitMarkerName","adapter","commands","$graveyard","insert","forward","toJSON","suggestion:","getChangedMarkers","deletion:discard","_enabledCommands","trackChanges.mergeNestedSuggestions","notReady","discardSuggestion","_rangeIsInLocalUserInsertion","CommentsRepository","getShiftedBy","split","mapper","removeMarker","position","splitPosition","accept","selection","isLimit","addRange","stopListening","never","_setSuggestionRange","updateSuggestion","reconvertMarker","_cutOutSuggestionMarker","getSuggestion","execute","map","elementEnd","_checkSuggestionCorrectness","containerElement","documentSelection","addMarker:suggestion:formatBlock","fromRange","isObject","isCollapsed","commentThread","some","addComment","editingDowncast","dataToMarker","_trackFormatChanges","nodeAfter","getUser","for","markInsertion","acceptAllSuggestions","isBlock","end","isAtEnd","isInContent","delete","insertion","lowest","_customCallbacks","isEqual","backward","setAttribute","markerToHighlight","filter","after","update:suggestion","$marker","multipleBlocks","removeComment","markers","insertContent","setSelection","parent","_model","createPositionAfter","trackChanges.trackFormatChanges","join","isOwn","PendingActions","PENDING_ACTION_SUGGESTION","addClass","conversion","rootName","deletion:chain","originalSuggestionId","get","value","_isForcedDefaultExecutionBlock","length","low","rethrowUnexpectedError","_getAuthorFromId","splice","suggestion","getAttribute","_joinSuggestions","plugins","TrackChangesEditing","push","ck-suggestion-marker-","elementToElement","containsRange","element","_findSuggestions","containsPosition","getFirstRange","forceDefaultExecution","buildSuggestion","fire","markMultiRangeBlockFormat","markerName","set","values","suggestionUnloaded","addSuggestion","isRemovable","createRange","_editor","track-changes-suggestion-not-found","name","deleteContent","writer","fetchCommentThread","createRangeIn","_suggestions","always","_commentsRepository","isExternal","sort","registerPostFixer","formatBlock:accept","move","insertion:chain","getFirstMarker","_descriptionFactory","removeAttribute","getMultiRangeId","formatInline","formatBlock:chain","substr","getAllAdjacentSuggestions","has","add","track-changes-user-not-found","item","from"];var Ga,Ha;Ga=Ua,Ha=485,function(t){for(;--t;)Ga.push(Ga.shift())}(++Ha);const za=function(t,e){return Ua[t-=0]};class Wa extends t.Plugin{static get[za("0xce")](){return[za("0x19"),r.Users,t.PendingActions,cs,ys,Rs,ws,Bs,Ws,Js,er,Oa,xr,ur,br,Cr,Lr,Pr,Gr,Kr,Qr,ni,xi,ui,pi,yi,Ri,Oi,ji,Wi,$i,tx,ix,ux,px,Cx,Ix,wx,jx,Wx,Sa,Qx,sa,ma,ja,ca,Ea,ka]}static get[za("0x12e")](){return za("0x6e")}constructor(t){function e(t){return t.map((t=>String[za("0x129")](t)))[za("0x59")]("")}super(t),this[za("0x7c")](za("0xe6"),[]),this.on("change:activeMarkers",((e,n,o,s)=>{this[za("0x56")][za("0xf5")]((()=>{for(const e of[...s,...o])this[za("0x56")][za("0x52")][za("0x9a")](e)&&t[za("0xc7")][za("0x28")](e)}))})),this[za("0x93")]=new ss(this[za("0xd8")][za("0xed")][za("0xa1")],this.editor[za("0xd6")]),this[za("0x141")]=null,this._suggestionFactory=new Va(this[za("0xd8")]),this[za("0x89")]=new Map,this[za("0x8b")]=t[za("0x6d")].get(za("0x19")),this[za("0x14")]=new Set,this[za("0x56")]=this[za("0xd8")].model,this[za("0x107")]=new WeakMap,this[za("0x64")]=!1,t[za("0x12d")][za("0x12b")](za("0x58"),za("0xdd")),this._trackFormatChanges=t[za("0x12d")][za("0x62")](za("0x58")),t[za("0x12d")][za("0x12b")](za("0x15"),!0),this[za("0xe1")]=t[za("0x12d")][za("0x62")](za("0x15")),this[za("0xba")]=new u(t,this[za("0x14")]),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,49,52,52,50])}[za("0x103")](){const t=this[za("0xd8")];t.conversion[za("0x3d")](za("0x38"))[za("0x4b")]({model:"suggestion",view:t=>{const{id:e,type:n}=this[za("0xa")](t[za("0x7b")]),o=[za("0xb8"),"ck-suggestion-marker-"+n];let s=3e3;return this[za("0xe6")][za("0xda")](t[za("0x7b")])&&(o.push(za("0xdb")),s=3010),za("0xe8")==n&&(s+=5),{classes:o,attributes:{"data-suggestion":e},priority:s}}}),t[za("0x5e")].for("dataDowncast")[za("0x9b")]((e=>{e.on(za("0x131"),((e,n,o)=>{if(!o[za("0xcd")].showSuggestionHighlights)return;const s=n[za("0x9d")];if(!s)return;const r=o.mapper[za("0x11f")](s);t[za("0xed")][za("0xa1")][za("0x33")](s)&&r&&!r[za("0xaf")]("widget")&&r.is(za("0x2f"))&&(0,x.toWidget)(r,o[za("0x86")])}),{priority:za("0xa6")})})),t[za("0x5e")][za("0x3d")](za("0xf8")).markerToHighlight({model:za("0x6a"),view:(t,e)=>{if(!e[za("0xcd")].showSuggestionHighlights)return null;const{type:n}=this._splitMarkerName(t[za("0x7b")]);return{classes:[za("0xb8"),za("0x70")+n],priority:3e3}}});const n=({showActiveMarkers:e=!0}={})=>(n,o,s)=>{if(!o[za("0x9d")])return;if(o[za("0x9d")].is("selection"))return void s[za("0xb5")].consume(o[za("0x9d")],n[za("0x84")]);const r=s.mapper[za("0x11f")](o[za("0x9d")]);if(!o.item.is(za("0x73"))||!t[za("0xed")][za("0xa1")].isBlock(o[za("0x9d")])||r[za("0xaf")](za("0x139")))return;const{id:i}=this[za("0xa")](o[za("0x7b")]);s[za("0x86")][za("0x5d")]([za("0xb8"),za("0x135")],r),s[za("0x86")][za("0x4a")](za("0xab"),i,r),s[za("0x1c")].bindElementToMarker(r,o[za("0x7b")]),e&&(this.activeMarkers[za("0xda")](o[za("0x7b")])?s[za("0x86")].addClass(za("0xdb"),r):s.writer[za("0x110")](za("0xdb"),r));for(const e of t[za("0xed")][za("0x88")](o[za("0x9d")]).getItems())s[za("0xb5")][za("0xa0")](e,n[za("0x84")]);s[za("0xb5")].consume(o[za("0x9d")],n[za("0x84")])};t.conversion.for(za("0xf8")).add((t=>{t.on(za("0x31"),((t,e,o)=>{o[za("0xcd")].showSuggestionHighlights&&n({showActiveMarkers:!1})(t,e,o)}),{priority:za("0x2")})})),t.conversion[za("0x3d")](za("0xf8")).markerToData({model:za("0x6a"),view:(t,e)=>e[za("0xcd")].showSuggestionHighlights?null:{group:za("0x6a"),name:t[za("0x98")](11)}}),t.conversion[za("0x3d")]("upcast")[za("0x71")]({view:{name:za("0x6a"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=za("0x11")+t[za("0x6b")]("suggestion-type")+":"+t.getAttribute("id");return t.getAttribute(za("0xfe"))&&(n+=":"+t.getAttribute(za("0xfe"))),e[za("0xd0")](za("0x4f"),{"data-name":n})}}),t[za("0x5e")][za("0x3d")](za("0xc6"))[za("0x39")]({view:"suggestion"}),t[za("0x5e")][za("0x3d")](za("0x38"))[za("0x9b")]((t=>{t.on("addMarker:suggestion:formatBlock",n(),{priority:za("0xa6")})})),t.conversion[za("0x3d")](za("0x38"))[za("0x9b")]((t=>{t.on(za("0xc5"),((t,e,n)=>{const o=n[za("0x1c")].markerNameToElements(e[za("0x7b")]);if(o)for(const t of o)t[za("0xaf")](za("0x139"))||(n[za("0x86")][za("0x110")]([za("0xb8"),za("0x135"),za("0xdb")],t),n[za("0x86")][za("0x94")]("data-suggestion",t),n[za("0x1c")].unbindElementFromMarkerName(t,e[za("0x7b")]))}),{priority:za("0xa6")})})),t[za("0xed")][za("0xcc")][za("0x8e")]((e=>{let n=!1;const o=Array[za("0x9e")](t.model[za("0xcc")][za("0xf1")][za("0x12")]()),s=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,id:l}=this._splitMarkerName(x);if(za("0x6a")!==o)continue;const d=this[za("0x89")][za("0x62")](l);if(null!=a[za("0xe0")])if("formatInline"==c&&(n=n||Xa(a[za("0xe0")],x,e,t[za("0xed")][za("0xa1")])),a[za("0xe0")][za("0x34")]||za("0xd")==a[za("0xe0")][za("0xbb")].rootName||za("0x100")==c&&!Ja(a.newRange)||za("0xe8")==c&&(qa(i=a[za("0xe0")])||(r=i)[za("0x128")][za("0x55")]==r[za("0x41")][za("0xd3")]&&r.start.isAtEnd))e[za("0x1d")](x),n=!0;else{if(!d||!d[za("0x43")])continue;s[za("0x9b")](d)}}var r,i;return s[za("0x132")]>0&&(n=!!this[za("0x8")](s)||n),n})),t.model[za("0xcc")].registerPostFixer((e=>{let n=!1;for(const o of t[za("0xed")][za("0xcc")][za("0xf1")][za("0x12f")]()){if(za("0xe")!=o.type)continue;const s=o[za("0x1e")].getShiftedBy(o[za("0x65")]);if(s[za("0x42")])for(const r of this[za("0x89")][za("0x7d")]()){if(r.isMultiRange||!r[za("0x43")])continue;if("formatBlock"!=r[za("0xb2")])continue;const i=r[za("0x76")]();if(i[za("0x128")][za("0x55")]!=i.end[za("0x55")]&&i[za("0x41")][za("0x48")](o[za("0x1e")])){const o=t.model[za("0x81")](i[za("0x128")],s);e[za("0xa4")](r[za("0x92")](),{range:o}),n=!0}}}return n})),t[za("0xed")][za("0x52")].on(za("0x4e"),((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[za("0x84")]),n=this._suggestions[za("0x62")](t);n&&n[za("0xfc")](e[za("0x84")])}})),t[za("0xed")][za("0xcc")].on(za("0x10b"),(()=>{const e=Array[za("0x9e")](t[za("0xed")][za("0xcc")][za("0xf1")][za("0x12")]())[za("0x4c")]((t=>za("0x6a")===this[za("0xa")](t[za("0x84")])[za("0x140")]));if(0===e[za("0x65")])return;e[za("0x8d")](((t,e)=>{const n=t.data.oldRange,o=e[za("0xf3")][za("0xbf")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[za("0x128")][za("0xa8")](o[za("0x128")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:s}of e){const{id:e}=this[za("0xa")](t);if(null===s[za("0xbf")]){const e=this._handleNewSuggestionMarker(t);o[za("0x9b")](e)}else{const t=this._suggestions[za("0x62")](e);null!==s[za("0xe0")]||t[za("0x43")]?(n[za("0x9b")](t[za("0xb0")]),o.add(t)):this[za("0x122")](t)}}o[za("0x132")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this[za("0x79")](za("0xa7"),t)})),t[za("0xed")].on(za("0xe5"),((e,n)=>{const o=n[0];if(!this[za("0x89")][za("0x132")])return;if(!o[za("0xc1")])return;if(o[za("0x115")].isUndo||!o[za("0x115")].isLocal)return;let s,r;switch(o[za("0xb2")]){case za("0xe"):s=t[za("0xed")][za("0xa9")](o[za("0x1e")]),r=s[za("0x1a")](o[za("0x123")]);break;case za("0x1b"):s=t[za("0xed")][za("0xa9")](o[za("0x1f")]),r=t[za("0xed")].createPositionAt(o[za("0x9f")]);break;case za("0x90"):s=t[za("0xed")][za("0xa9")](o[za("0xa2")]),r=s[za("0x1a")](o[za("0x123")]);break;default:return}const i=t[za("0xed")][za("0x81")](s,r);t.model[za("0xf5")]((()=>{for(const{suggestion:t,meta:e}of this[za("0x74")](i)){if(t[za("0xb7")])continue;if("formatInline"==t[za("0xb2")])continue;const n=t[za("0xf3")]&&t[za("0xf3")][za("0x50")];("formatBlock"!=t[za("0xb2")]||za("0x1b")==o[za("0xb2")]&&!n)&&(e[za("0x120")]||"insertion"==t[za("0xb2")]&&e[za("0x5a")]||t[za("0x76")]().containsRange(i)&&this[za("0x3")](t,s,r))}}))}),{priority:za("0x46")}),t[za("0xed")].on(za("0x85"),((e,n)=>{const o=n[0],s=n[1];if(s&&s[za("0x77")])return;if(this[za("0x64")])return;if(!this.trackChangesCommand[za("0x63")])return;if(o[za("0x34")])return;const r=t[za("0xed")][za("0xa1")],{start:i,end:x}=o[za("0x76")](),a=i[za("0x3b")]&&r.isLimit(i[za("0x3b")])?null:r[za("0x10d")](i,za("0xf")),c=x.nodeBefore&&r[za("0x22")](x[za("0xd3")])?null:r[za("0x10d")](x,za("0x49")),l=t[za("0xed")][za("0x81")](a?a[za("0x128")]:i,c?c[za("0x41")]:x);t[za("0xed")][za("0xf5")]((e=>{this.markDeletion(l);const n=t[za("0xed")][za("0xa1")][za("0x10d")](l[za("0x128")]);o.is(za("0x30"))?e[za("0x54")](n):o[za("0xc3")](n)})),e[za("0x102")]()}),{priority:e.priorities[za("0xea")]+10}),t[za("0xed")].on(za("0x53"),((e,n)=>{const o=n[n[za("0x65")]-1];o&&o[za("0x77")]||this[za("0x64")]||this[za("0xba")][za("0x63")]&&(t.model[za("0xf5")]((()=>{let o=t[za("0xed")][za("0x53")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[za("0xec")]=o.clone();const s=o[za("0x41")][za("0xd3")],r=t.model.schema;s&&r[za("0x40")](s)&&!r[za("0x33")](s)&&(o=t[za("0xed")][za("0x81")](o.start,t[za("0xed")][za("0xa9")](s,za("0x41")))),this[za("0x3e")](o)})),e[za("0x102")]())}),{priority:za("0xa6")}),this[za("0xd8")][za("0xc")][za("0x9b")]("trackChanges",this[za("0xba")]),this[za("0xa5")]("trackChanges");const o=new p(t,this[za("0x89")]);t[za("0xc")].add("acceptSuggestion",o),this[za("0xa5")](za("0x9"));const s=new y(t,this[za("0x89")]);t[za("0xc")][za("0x9b")](za("0x17"),s),this[za("0xa5")](za("0x17")),t[za("0xc")][za("0x9b")](za("0x3f"),new F(t,o,this._suggestions)),this[za("0xa5")](za("0x3f")),t[za("0xc")][za("0x9b")]("discardAllSuggestions",new F(t,s,this[za("0x89")])),this[za("0xa5")](za("0x11e")),t.commands.add(za("0x11b"),new U(t,o,this._suggestions)),this[za("0xa5")](za("0x11b")),t[za("0xc")][za("0x9b")]("discardSelectedSuggestions",new U(t,s,this[za("0x89")])),this[za("0xa5")]("discardSelectedSuggestions");const r=t.plugins[za("0x62")](za("0x19"));this[za("0x13d")](r,za("0x37"),((t,{threadId:e})=>{const n=this[za("0x89")].get(e);n&&n[za("0x35")]&&1===n[za("0x35")][za("0x65")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:za("0x66")}),this[za("0x13d")](r,za("0x51"),((t,{threadId:e})=>{const n=this[za("0x89")][za("0x62")](e);n&&n.commentThread&&!n[za("0x35")][za("0x65")]&&this[za("0x13e")](e,{hasComments:!1})}),{priority:za("0x66")})}set[za("0xb")](t){if(this[za("0x141")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this._adapter=t}get adapter(){return this[za("0x141")]}[za("0xee")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions[za("0x7d")]())t&&!e[za("0x43")]||n[za("0x6f")](e);return e?n[za("0x2c")]((t=>t[za("0x10")]())):n}getSuggestion(t){const n=this[za("0x89")][za("0x62")](t);if(!n)throw new e.CKEditorError(za("0x83"),this);return n}hasSuggestion(t){return this._suggestions.has(t)}[za("0x1")](t){const{authorId:e,id:n,attributes:o}=t,[s,r]=t[za("0xb2")].split(":"),i=this[za("0x89")][za("0x62")](n)||this._createSuggestion(s,r,n,e,o);if(this[za("0x121")](i),this[za("0x2e")](i,s,r||null,e),i[za("0x113")]=t[za("0x113")],o&&o[za("0xff")]){const t=o["@external"],e=this[za("0xd1")](t[za("0x130")]);i[za("0x105")]=t[za("0x113")],i[za("0x12c")]=e,i[za("0x8c")]=!0}else i[za("0x105")]=t[za("0x113")];switch(t[za("0xf3")]&&(i.data=t[za("0xf3")]),t[za("0x6")]&&(i[za("0x6")]=t.attributes),this[za("0x141")]&&this[za("0x141")][za("0x7f")]||(i._saved=!0),this[za("0x107")][za("0x62")](i)){case za("0x16"):this._suggestionState[za("0x7c")](i,za("0xa3"));break;case"markerReady":i.isInContent?(this._suggestionState.set(i,za("0xf0")),this[za("0x79")](za("0x118"),i)):this._suggestionState[za("0x7c")](i,"removed")}return i}[za("0x9")](t){this[za("0x77")]((()=>{this[za("0xd8")][za("0xed")][za("0xf5")]((()=>{for(const e of t[za("0x99")]())e[za("0x20")]()}))}))}[za("0x17")](t){this[za("0x77")]((()=>{this.editor[za("0xed")][za("0xf5")]((()=>{for(const e of t[za("0x99")]())e[za("0x124")]()}))}))}[za("0xa5")](t,n){const o=this.editor[za("0xc")][za("0x62")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});this[za("0x14")].add(o),n&&o.on(za("0x2b"),((t,e)=>{this[za("0xba")][za("0x63")]&&(this._isForcedDefaultExecutionBlock||e[za("0x65")]>0&&e[e[za("0x65")]-1]&&e[e[za("0x65")]-1][za("0x77")]||(n(((...t)=>o[za("0x2b")](...t,{forceDefaultExecution:!0})),...e),t[za("0x102")]()))}),{priority:"high"})}[za("0x77")](t){let n,o;const s=this[za("0x64")];this[za("0x64")]=!0;try{n=t()}catch(t){o=t}return s||(this[za("0x64")]=!1),o&&e.CKEditorError[za("0x67")](o,this),n}[za("0x3e")](t,n=null,o={}){if(t.isCollapsed)return null;const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me;for(const{suggestion:e,meta:o}of this[za("0x74")](t,za("0x45")))if(o[za("0x5a")]){if(!o.isNextTo){if(!this._mergeNestedSuggestions&&o[za("0x120")])continue;return e}if(n==e[za("0x112")]){const n=e[za("0x76")]();return n[za("0x128")][za("0x48")](t.end)?this[za("0x26")](e,this[za("0x56")][za("0x81")](t[za("0x128")],n.end)):this[za("0x26")](e,this[za("0x56")][za("0x81")](n[za("0x128")],t[za("0x41")])),e}}const r=(0,e.uid)(),i=s.id,x=n?za("0x10a")+n:za("0x45"),a=this[za("0xb1")]({id:r,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,r,i,t),a}[za("0x114")](t,n="multi",o={}){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me,r=this[za("0x11d")].getSuggestionCallback(za("0x45"),n,za("0x59"));for(const e of this.getSuggestions())if(e[za("0x12c")].id==s.id&&za("0x45")==e[za("0xb2")]&&e[za("0x112")]==n&&(r(e[za("0xe7")](),t)||r(t,e[za("0xe7")]()))){for(const n of t)e.addRange(n);return e}if(this[za("0xe1")])for(const e of t)for(const{suggestion:n,meta:o}of this[za("0x74")](e,"insertion")){if(!o[za("0x5a")])continue;let e=!0;for(const o of n[za("0xe7")]())for(const n of t)if(!o[za("0x72")](n)){e=!1;break}if(e)return n}const i=(0,e.uid)(),x=s.id,a=za("0x10a")+n,c=this._setSuggestionData({id:i,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this._addSuggestionMarker(a,i,x,e,Zo[za("0x95")]());return c}[za("0xad")](t,n,o=null,s={}){if(o=o||$a(n),t[za("0x34")])return null;if("never"===this[za("0x3a")]){const e=this[za("0x11d")][za("0x119")](za("0x96"),o,za("0x20"));return this[za("0x77")]((()=>e([t],n,s))),null}const r=this[za("0xd8")][za("0x6d")].get("Users").me,i=[];if(za("0x8a")!==this._trackFormatChanges)for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x45")))n[za("0x5a")]&&!n[za("0xcf")]&&i[za("0x6f")](...e[za("0xe7")]());const x=function(t,e){const n=[];for(const o of e){const e=t[za("0xfd")](o);e&&n[za("0x6f")](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[za("0x69")](e,1,...o),e+=o.length}}return n}(t,i);x[za("0x65")]&&this[za("0x56")][za("0xf5")]((()=>{for(const t of x){const e=this[za("0x11d")][za("0x119")](za("0x96"),o,za("0x20"));this[za("0x77")]((()=>e([t],n,s)))}}));for(const t of a){let i=null,x=t[za("0x128")],a=t[za("0x41")];for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x96"))){if(!n[za("0x5a")])continue;if(e[za("0x112")]!=o)continue;const s=e[za("0x76")]();if(s[za("0x72")](t,!0))return null;x=x.isBefore(s[za("0x128")])?x:s.start,a=a[za("0xd7")](s[za("0x41")])?a:s[za("0x41")],i?s[za("0x128")][za("0xa8")](i[za("0x76")]()[za("0x128")])?(i[za("0x0")](),i=e):e[za("0x0")]():i=e}const c=this[za("0x56")][za("0x81")](x,a);if(i)this[za("0x26")](i,c);else{const t=(0,e.uid)(),i=r.id;this[za("0xb1")]({id:t,type:za("0x108")+o,data:n,createdAt:new Date,authorId:i,attributes:s}),this[za("0xeb")]("formatInline:"+o,t,i,c)}}return null}[za("0xd2")](t,n,o=[],s=null,r={}){n[za("0xe4")]||(n[za("0xe4")]=n[za("0x127")]),n[za("0x50")]=t.is(za("0xfb")),s=s||$a(n);const i=o[za("0x2c")]((t=>Qa(t,this[za("0x56")]))),x=t.is(za("0xfb"))?t:Qa(t,this[za("0x56")]);if(za("0x25")===this._trackFormatChanges){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this.forceDefaultExecution((()=>t([x],n,r))),null}i.push(x);let a=!0;for(const t of i)if(!this[za("0x18")](t)){a=!1;break}if(a&&"always"!==this[za("0x3a")]){const t=this._suggestionFactory.getSuggestionCallback(za("0x100"),s,za("0x20"));return this[za("0x77")]((()=>t([x],n,r))),null}let c=null,l=x[za("0x128")],d=x[za("0x41")];for(const{suggestion:t,meta:e}of this[za("0x74")](x,za("0x100"))){if(!e[za("0x5a")]||e[za("0xf4")]||e[za("0x120")]||e.isInsideObject)continue;if(t.data[za("0xe4")]!=n[za("0xe4")])continue;const o=t[za("0x76")]();if(t[za("0x112")]==s){if(o[za("0x72")](x,!0))return null;l=l.isBefore(o[za("0x128")])?l:o[za("0x128")],d=d[za("0xd7")](o.end)?d:o[za("0x41")],c?o[za("0x128")][za("0xa8")](c.getFirstRange()[za("0x128")])?(c[za("0x0")](),c=t):t[za("0x0")]():c=t}else{const e=x[za("0xfd")](o);this[za("0x29")](t,e)}}const u=this.editor[za("0x6d")][za("0x62")](za("0xc9")).me,g=(0,e.uid)(),m=u.id;if(c)return this[za("0x26")](c,this[za("0x56")][za("0x81")](l,d)),c;{const t=this[za("0xb1")]({id:g,type:za("0x133")+s,data:n,createdAt:new Date,authorId:m,attributes:r});return this[za("0xeb")](za("0x133")+s,g,m,this[za("0x56")][za("0x81")](l,d)),t}}[za("0x7a")](t,n,o=[],s=null,r={}){n[za("0xe4")]||(n.formatGroupId=n[za("0x127")]);const i=t[0];n[za("0x50")]=i.is(za("0xfb")),s=s||$a(n);const x=o[za("0x2c")]((t=>Qa(t,this[za("0x56")]))),a=i.is("range")?t:t[za("0x2c")]((t=>Qa(t,this._model)));if(za("0x25")===this[za("0x3a")]){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this.forceDefaultExecution((()=>t(a,n,r))),null}x.push(...a);let c=!0;for(const t of x)if(!this[za("0x18")](t)){c=!1;break}if(c&&za("0x8a")!==this[za("0x3a")]){const t=this[za("0x11d")][za("0x119")](za("0x100"),s,za("0x20"));return this[za("0x77")]((()=>t(a,n,r))),null}const l=this[za("0xd8")].plugins[za("0x62")](za("0xc9")).me;for(const t of this[za("0xee")]()){if(t[za("0x12c")].id!=l.id)continue;if(za("0x100")!=t[za("0xb2")]||t[za("0xf3")][za("0xe4")]!=n[za("0xe4")])continue;const e=t[za("0x112")]==s;for(let n=0;n<a[za("0x65")];n++){const o=a[n];for(const s of t.getMarkers()){const r=s[za("0x4")]();if(o[za("0x48")](r)){e?(a[za("0x69")](n,1),n--):t[za("0x1d")](s[za("0x84")]);break}}}}if(0==a.length)return null;const d=this._suggestionFactory[za("0x119")](za("0x100"),s,za("0x59"));for(const t of this.getSuggestions())if(t[za("0x12c")].id==l.id&&za("0x100")==t[za("0xb2")]&&t.data[za("0xe4")]==n[za("0xe4")]&&t.subType==s&&(d(t.getRanges(),a)||d(a,t.getRanges()))){for(const e of a)t[za("0x23")](e);return t}const u=(0,e.uid)(),g=l.id,m=za("0x133")+s,f=this._setSuggestionData({id:u,type:m,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[za("0xeb")](m,u,g,t,Zo.getMultiRangeId());return f}[za("0x10c")](t,n=null,o={}){if(t[za("0x34")])return null;const s=this.editor[za("0x6d")].get(za("0xc9")).me,r=new i.LiveRange(t.start,t[za("0x41")]);for(const{suggestion:t,meta:e}of this._findSuggestions(r,"insertion"))if(e.isOwn&&!e[za("0xf4")])if(t.isMultiRange){const e=t[za("0xe7")]()[za("0x4c")]((t=>za("0xd")!=t[za("0xbb")][za("0x5f")]));if(e[za("0x116")]((t=>r[za("0x72")](t,!0)))&&t.discard(),e[za("0x36")]((t=>t[za("0x72")](r,!0)))){const t=this[za("0x11d")][za("0x119")](za("0xe8"),n,"accept");return this[za("0x77")]((()=>t([r],null,o))),null}}else{const e=r[za("0xfd")](t.getFirstRange());null!==e&&t[za("0x109")]([e],null,o)}if(r[za("0xb3")](),r[za("0x34")]||"$graveyard"==r[za("0xbb")][za("0x5f")])return null;let x=null,a=r[za("0x128")],c=r[za("0x41")];for(const{suggestion:t,meta:e}of this[za("0x74")](r,za("0xe8")))if(e[za("0x5a")])if(t[za("0xb7")]&&this[za("0xe1")]){let e=!0;for(const n of t[za("0xe7")]()){if(n.containsRange(r,!0))return t;r.containsRange(n)||(e=!1)}e&&t[za("0x124")]()}else{const n=t[za("0x76")]();if(n.containsRange(r,!0)){if(!this[za("0xe1")]&&e.containsRangeInObject)continue;return t}a=a[za("0xa8")](n[za("0x128")])?a:n[za("0x128")],c=c[za("0xd7")](n[za("0x41")])?c:n[za("0x41")],x?n.start[za("0xa8")](x[za("0x76")]()[za("0x128")])?(x[za("0x0")](),x=t):t[za("0x0")]():x=t}if(x)return this[za("0x26")](x,this._model.createRange(a,c)),x;{const t=(0,e.uid)(),r=this[za("0x56")][za("0x81")](a,c),i=s.id,x=n?za("0x101")+n:"deletion",l=this[za("0xb1")]({id:t,type:x,createdAt:new Date,authorId:i,attributes:o});return this._addSuggestionMarker(x,t,i,r),l}}[za("0x13b")](t,n=za("0x5"),o={}){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me,r=t[za("0x2c")]((t=>new i.LiveRange(t[za("0x128")],t[za("0x41")]))),x=new Set;for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x74")](t,"insertion"))n.isOwn&&!n[za("0xf4")]&&x[za("0x9b")](e);for(const e of x)if(e[za("0xb7")]){const s=e.getRanges();if((!e[za("0x6")]||!e[za("0x6")][za("0xc8")])&&s.every((t=>r.some((e=>e[za("0x72")](t,!0)))))&&e.discard(),r.every((t=>s.some((e=>e.containsRange(t,!0)))))){const e=this._suggestionFactory[za("0x119")](za("0xe8"),n,"accept");return this.forceDefaultExecution((()=>e(t,null,o))),null}}else{const t=e[za("0x76")]();if(r[za("0x36")]((e=>e[za("0x72")](t,!0)))&&e[za("0x124")](),r.every((e=>t[za("0x72")](e,!0)))){const t=this[za("0x11d")][za("0x119")](za("0xe8"),n,za("0x20"));return this[za("0x77")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[za("0x119")](za("0xe8"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==s.id&&t[za("0x43")]&&za("0xe8")==t[za("0xb2")]&&t.subType==n&&(a(t[za("0xe7")](),r)||a(r,t[za("0xe7")]())))if(c){if(t[za("0x35")]&&t[za("0x35")][za("0x65")])continue;for(const e of t[za("0xe7")]())c.isIntersectingWithRange(e)||c[za("0x23")](e);t[za("0x0")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t[za("0x23")](e)}if(c)return c;x[za("0xf2")]();for(const t of r)for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0xe8")))n.isOwn&&x[za("0x9b")](e);for(const t of x){const e=t[za("0xe7")]();if((!o||!o[za("0xc8")])&&r[za("0x116")]((t=>e[za("0x36")]((e=>e[za("0x72")](t,!0))))))return t;(!t.attributes||!t.attributes[za("0xc8")])&&e.every((t=>r[za("0x36")]((e=>e[za("0x72")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),d=s.id,u=za("0x101")+n,g=this._setSuggestionData({id:l,type:u,createdAt:new Date,authorId:d,attributes:o});for(const t of r)t[za("0xb3")](),t[za("0x34")]||za("0xd")==t[za("0xbb")][za("0x5f")]||this[za("0xeb")](u,l,d,t,Zo[za("0x95")]());return g}_setSuggestionRange(t,e){const n=t[za("0x92")]();this._model[za("0xf5")]((t=>{t[za("0xa4")](n,{range:e})}))}[za("0x121")](t){const e=t.id,n=this.editor.config[za("0x62")]("collaboration.channelId");this[za("0x8b")][za("0x111")](e)||this[za("0x8b")][za("0x11a")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this._commentsRepository[za("0xf9")](e);o[za("0xe3")]("isRemovable"),o[za("0x80")]=!1,t[za("0x35")]=o}[za("0x2e")](t,n,o,s){if(t.type!=n||t[za("0x112")]!=o||t[za("0xb9")].id!=s)throw this.editor[za("0x137")](za("0xb6")),new e.CKEditorError(za("0xb6"),this)}[za("0x29")](t,n){const o=t.getFirstRange();if(n[za("0x48")](o))t[za("0x0")]();else if(o[za("0x72")](n)){const s=this[za("0x56")][za("0xa9")](n[za("0x128")][za("0xd3")],za("0x41"));this[za("0x26")](t,this[za("0x56")][za("0x81")](o[za("0x128")],s));const r=(0,e.uid)(),i=t[za("0xb9")].id,x=t.type+":"+t[za("0x112")];this[za("0xb1")]({id:r,type:x,createdAt:new Date,authorId:i,data:t.data,attributes:t[za("0x6")]});const a=this[za("0x56")].createPositionAt(n[za("0x41")][za("0x55")],za("0x4d")),c=this._model.createRange(a,o[za("0x41")]);this[za("0xeb")](x,r,i,c)}else if(o[za("0x75")](n[za("0x128")])){const e=this[za("0x56")].createPositionAt(n[za("0x128")][za("0xd3")],za("0x41"));this[za("0x26")](t,this[za("0x56")][za("0x81")](o[za("0x128")],e))}else{const e=this[za("0x56")].createPositionAt(n[za("0x41")][za("0x55")],"after");this[za("0x26")](t,this[za("0x56")][za("0x81")](e,o[za("0x41")]))}}[za("0x18")](t){for(const{suggestion:e,meta:n}of this[za("0x74")](t,za("0x45"))){if(!n[za("0x5a")])continue;const o=e[za("0xe7")]();for(const e of o)if(!t.getDifference(e).length)return!0}return!1}[za("0x68")](t){const n=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9"))[za("0x3c")](t);if(!n)throw new e.CKEditorError(za("0x9c"),this);return n}[za("0xd1")](t){const e=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")),n=(0,r.hashObject)(za("0xde")+t);return e.getUser(n)||e[za("0xf7")]({id:n,name:t})}_createSuggestion(t,e,n,o,s){const r=this[za("0x68")](o),i=this._suggestionFactory[za("0x78")](t,e,n,r,s,(t=>this[za("0x13e")](n,{attributes:t})));return this[za("0x13d")](i,"accept",(()=>{this[za("0x13e")](n,{state:za("0x125")})}),{priority:za("0xa6")}),this[za("0x13d")](i,"discard",(()=>{this[za("0x13e")](n,{state:za("0xd4")})}),{priority:za("0xa6")}),this._suggestions.set(n,i),this[za("0x107")].set(i,za("0x16")),i}_splitMarkerName(t){const e=t[za("0x1b")](":");return{group:e[0],type:e[1],subType:e[za("0x65")]>=5?e[2]:null,id:e[za("0x65")]<5?e[2]:e[3],authorId:e[za("0x65")]<5?e[3]:e[4],markerCount:6==e[za("0x65")]?e[5]:null}}_breakSuggestionMarker(t,n,o){const s=t[za("0x76")](),r=s[za("0x128")],i=s[za("0x41")];this[za("0x26")](t,this[za("0x56")].createRange(r,n));const x=(0,e.uid)(),a=t[za("0xb9")].id,c=t[za("0xb2")]+(t.subType?":"+t.subType:"");this[za("0xb1")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[za("0x6")],data:t[za("0xf3")]}),"formatBlock"==t[za("0xb2")]&&(o=this[za("0x56")][za("0xac")](o[za("0x55")])),this[za("0xeb")](c,x,a,this[za("0x56")][za("0x81")](o,i))}_findSuggestions(t,e=null){const n=[],o=this._model[za("0xa1")],s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0xc9")).me;for(const r of this[za("0xee")]())if(r[za("0x43")]&&(!e||r[za("0xb2")]==e))for(const e of r[za("0xe7")]()){const i=t[za("0x128")][za("0x48")](e[za("0x41")])||t[za("0x41")].isEqual(e[za("0x128")]);if(i||t[za("0xfd")](e)){const x=t.containsRange(e)&&Ka(o,e[za("0x128")],t),a=e[za("0x72")](t)&&Ka(o,t.start,e);n[za("0x6f")]({suggestion:r,meta:{isOwn:s==r[za("0x12c")],isNextTo:i,isInsideObject:x,containsRangeInObject:a}});break}}return n}[za("0xeb")](t,e,n,o,s){this._model.change((r=>{let i="suggestion:"+t+":"+e+":"+n;s&&(i=i+":"+s),r[za("0xcb")](i,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[za("0xd9")],n=t[za("0x13a")];t[za("0xd9")]=null,null!=e&&(e[za("0x13a")]=null),t[za("0x13a")]=null,null!=n&&(n[za("0xd9")]=null),za("0xf0")==this[za("0x107")][za("0x62")](t)&&(this[za("0x107")][za("0x7c")](t,za("0x136")),this[za("0x79")](za("0x7e"),t,e,n))}[za("0xb1")](t){const n=t.id,o=this.addSuggestionData(t);if(this[za("0x141")]&&this[za("0x141")][za("0x7f")]){const s=this[za("0xd8")][za("0x6d")][za("0x62")](za("0x5b")),r=o[za("0xd5")],i=o[za("0x112")]?o.type+":"+o[za("0x112")]:o[za("0xb2")],x=this[za("0xd8")][za("0xd6")],a=s.add(Yo(x,za("0x5c"))),c={id:n,type:i,hasComments:r,data:t[za("0xf3")]||null,originalSuggestionId:t[za("0x61")]||null,attributes:o[za("0x6")]};this[za("0x141")][za("0x7f")](c)[za("0x13f")]((t=>{o[za("0x13c")]=!0,s[za("0xe2")](a),t&&t[za("0x113")]&&(this[za("0x89")][za("0x62")](n)[za("0x113")]=t[za("0x113")])}))[za("0xfa")]((t=>{throw(0,e.logWarning)(za("0xe9")),this[za("0xd8")][za("0xed")].enqueueChange({isUndoable:!1},(()=>{o[za("0x124")]()})),o[za("0x24")](),this[za("0x89")].delete(o.id),this._suggestionState.delete(o),t}))}return o}[za("0x13e")](t,e){const n=this.editor[za("0x6d")][za("0x62")]("PendingActions"),o=this[za("0x2a")](t);if(this[za("0x141")]&&this[za("0x141")][za("0x27")])if(o[za("0x13c")]){const o=n[za("0x9b")](Yo(this[za("0xd8")].locale,za("0x5c")));this._adapter[za("0x27")](t,e)[za("0x13f")]((()=>{n[za("0xe2")](o)}))}else o.on("change:_saved",(()=>{this[za("0x13e")](t,e)}))}[za("0xc4")](t){if(!this[za("0x141")]||!this[za("0x141")][za("0x2a")])throw new e.CKEditorError(za("0x12a"),this);return this[za("0x141")][za("0x2a")](t)}[za("0x11c")](t){const{id:e,type:n,subType:o,authorId:s}=this[za("0xa")](t),r=this[za("0x89")].get(e)||this._createSuggestion(n,o,e,s,{});switch(this[za("0x2e")](r,n,o,s),this[za("0x107")][za("0x62")](r)){case za("0x16"):this[za("0xc4")](e)[za("0x13f")]((t=>{let n=Promise[za("0xf6")]();t.hasComments&&(n=this._commentsRepository[za("0x87")]({channelId:this.editor.config[za("0x62")]("collaboration.channelId"),threadId:e})),n.then((()=>{this.addSuggestionData(t)[za("0x13c")]=!0}))})),this[za("0x107")].set(r,za("0xbd"));break;case za("0x136"):this[za("0x13e")](e,{state:"open"});case"dataReady":this[za("0x107")][za("0x7c")](r,za("0xf0")),this[za("0x79")]("suggestionLoaded",r);break;case za("0xf0"):this[za("0x79")]("suggestionChanged",r)}return r[za("0xfc")](t),r}[za("0xca")](t){const e=Array[za("0x9e")](t)[za("0x4c")]((t=>!t.isMultiRange)),n=this[za("0xee")]({skipNotAttached:!0})[za("0x4c")]((t=>!t[za("0xb7")])),o=n.filter((e=>!t[za("0x9a")](e))),s=new Map(n[za("0x2c")]((t=>[t,this._suggestionFactory[za("0x119")](t.type,t[za("0x112")],za("0xc0"))]))),r=new Map(n[za("0x2c")]((t=>[t,t[za("0x76")]()]))),i=new Set,x=new Set;for(let t=0;t<e[za("0x65")];t++)a(e[t],e,t+1);for(let t=0;t<e[za("0x65")];t++)a(e[t],o,0);for(let t=0;t<e[za("0x65")];t++){const n=e[t];!x[za("0x9a")](n)&&n[za("0xd9")]&&(n[za("0xd9")][za("0x13a")]===n&&(n[za("0xd9")][za("0x13a")]=null),n[za("0xd9")]=null),!i[za("0x9a")](n)&&n[za("0x13a")]&&(n[za("0x13a")][za("0xd9")]===n&&(n[za("0x13a")].previous=null),n[za("0x13a")]=null)}function a(t,e,n){for(let o=n;o<e[za("0x65")];o++){const n=c(t,e[o]);n&&(n[0][za("0x13a")]=n[1],n[1].previous=n[0],i[za("0x9b")](n[0]),x[za("0x9b")](n[1]))}}function c(t,e){if(t[za("0x12c")].id!==e[za("0x12c")].id)return null;const n=s[za("0x62")](t)(t,e,r[za("0x62")](t),r[za("0x62")](e));return n&&s[za("0x62")](e)(t,e,r[za("0x62")](t),r[za("0x62")](e))?n[1][za("0x35")]&&n[1][za("0x35")][za("0x65")]?null:n:null}}[za("0x8")](t){const e=Array[za("0x9e")](t),n=this.getSuggestions({skipNotAttached:!0}),o=n[za("0x4c")]((e=>!t[za("0x9a")](e))),s=new Map(e[za("0x2c")]((t=>[t,this._suggestionFactory[za("0x119")](t[za("0xb2")],t[za("0x112")],"join")]))),r=new Map(n.map((t=>[t,t[za("0xe7")]()])));for(let t=0;t<e[za("0x65")];t++)if(i(this,e[t],e,t+1))return!0;for(let t=0;t<e[za("0x65")];t++)if(i(this,e[t],o,0))return!0;return!1;function i(t,e,n,o){for(let i=o;i<n[za("0x65")];i++){const o=n[i];if(o[za("0xb2")]!==e.type||o[za("0x12c")].id!==e[za("0x12c")].id||o.subType!==e.subType)continue;const x=s[za("0x62")](e),a=r[za("0x62")](e),c=r[za("0x62")](o),l=e[za("0x35")]&&e.commentThread[za("0x65")],d=o[za("0x35")]&&o.commentThread[za("0x65")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[za("0x44")](e),!0;if(!d&&x(a,c))return t[za("0x6c")](e,o),r[za("0x44")](o),!0}return!1}}_joinSuggestions(t,e){if(t[za("0xb7")])for(const n of e[za("0xe7")]())t.addRange(n);else{const n=e[za("0x76")]().end;this[za("0x26")](t,this[za("0x56")][za("0x81")](t.getFirstRange()[za("0x128")],n))}e[za("0x0")]()}}class Va{constructor(t){this._editor=t,this._model=t[za("0xed")],this._customCallbacks=new Map,this._defaultCallbacks=new Map,this._registerDefaultCallbacks()}buildSuggestion(t,e,n,o,s,r){return new Zo(this[za("0x56")],{type:t,subType:e,id:n,author:o,creator:o,attributes:s,onAttributesChange:r,onAccept:(...n)=>this[za("0x119")](t,e,za("0x20"))(...n),onDiscard:(...n)=>this[za("0x119")](t,e,za("0x124"))(...n)})}registerCustomCallback(t,e,n,o){const s=t+":"+e+":"+n;this._customCallbacks[za("0x7c")](s,o)}[za("0x119")](t,e,n){const o=t+":"+e+":"+n;return this[za("0x47")][za("0x62")](o)||this._defaultCallbacks.get(t+":"+n)}[za("0x126")](){const t=()=>{},e=t=>{t[za("0x8d")](((t,e)=>t[za("0x128")].isBefore(e.start)?1:-1)),this[za("0x56")][za("0xf5")]((e=>{for(const n of t){let t;t=n[za("0x41")][za("0x42")]&&n[za("0x41")].parent==n.start.nodeAfter?e[za("0x10e")](n.start.nodeAfter,"on"):e[za("0x10e")](n),this[za("0x56")].deleteContent(t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{this[za("0x56")][za("0xf5")]((n=>{const{commandName:o,commandParams:s=[]}=e,r=t[za("0x2c")]((t=>(qa(t)&&(t=this[za("0x56")][za("0x81")](t[za("0x41")])),t)))[za("0x4c")]((t=>za("0xd")!==t[za("0xbb")].rootName));if(r[za("0x65")]<1)return;const x=Array.from(this._model[za("0xcc")][za("0x21")][za("0xe7")]()).map((t=>i.LiveRange[za("0x32")](t)));n[za("0x54")](r);for(const t of this[za("0x82")][za("0xc")][za("0xc")]())t[za("0x104")]();s[za("0x6f")]({forceDefaultExecution:!0}),this[za("0x82")][za("0x2b")](o,...s);const a=x[za("0x4c")]((t=>"$graveyard"!=t.root[za("0x5f")]));a.length>0&&n[za("0x54")](a);for(const t of x)t[za("0xb3")]()}))},o=(t,e)=>1==t[za("0x65")]&&1==e.length&&t[0][za("0x41")][za("0x48")](e[0].start),s=(t,e,n,o)=>Za(t,e,n,o,this[za("0x56")])?[t,e]:Za(e,t,o,n,this[za("0x56")])?[e,t]:null;this[za("0xbe")][za("0x7c")](za("0xdc"),t),this._defaultCallbacks.set(za("0xc2"),e),this[za("0xbe")][za("0x7c")]("insertion:join",o),this[za("0xbe")][za("0x7c")](za("0x91"),s),this[za("0xbe")].set("deletion:accept",e),this[za("0xbe")][za("0x7c")](za("0x13"),t),this[za("0xbe")][za("0x7c")](za("0xdf"),o),this._defaultCallbacks[za("0x7c")](za("0x60"),s),this[za("0xbe")][za("0x7c")](za("0x10f"),n),this[za("0xbe")][za("0x7c")](za("0xae"),t),this[za("0xbe")][za("0x7c")]("formatInline:join",o),this[za("0xbe")][za("0x7c")]("formatInline:chain",t),this._defaultCallbacks[za("0x7c")](za("0x8f"),n),this[za("0xbe")][za("0x7c")](za("0x138"),t),this[za("0xbe")][za("0x7c")]("formatBlock:join",o),this[za("0xbe")][za("0x7c")](za("0x97"),t)}}function Ka(t,e,n){for(const o of e[za("0x55")][za("0x134")]({includeSelf:!0,parentFirst:!0})){if(o[za("0xbb")]==o)return!1;if(!n[za("0xbc")](o))return!1;if(t.isObject(o)||t[za("0x22")](o))return!0}return!1}function qa(t){return t[za("0x41")][za("0x55")]==t.start[za("0x3b")]&&t.end.isAtStart}function Xa(t,e,n,o){const s=t=>!t.item.is(za("0xaa"))&&!o[za("0x33")](t.item),r=t[za("0x128")][za("0xb4")](s),i=t.end.getLastMatchingPosition(s,{direction:za("0x49")});return!(t.start[za("0x48")](r)&&t[za("0x41")][za("0x48")](i)||(r[za("0xa8")](i)?n.updateMarker(e,{range:n[za("0x81")](r,i)}):n.removeMarker(e),0))}function $a(t){return(0,r.hashObject)(t)}function Ja(t){const e=t[za("0x128")].nodeAfter;return e&&e.is(za("0x73"))}function Qa(t,e){const n=e[za("0xa1")][za("0x33")](t)||e[za("0xa1")][za("0x106")](t);return e[za("0x81")](e[za("0xa9")](t,"before"),n?e[za("0x57")](t):e.createPositionAt(t,za("0x41")))}function Za(t,e,n,o,s){if(n[za("0x41")].isEqual(o[za("0x128")]))return!0;if(t.type!=e[za("0xb2")])return!1;if(!n[za("0x41")][za("0xef")](o[za("0x128")]))return!1;const r=s[za("0x81")](n[za("0x41")],o[za("0x128")])[za("0x7")]();for(const t of r)if([za("0x117"),za("0x2d")].includes(t[za("0xb2")])&&s.schema[za("0x22")](t[za("0x9d")]))return!1;return!0}const Ya=["_discardCommand","discardSuggestion","commands","_editor","_acceptCommand","canAccept","commentThreadController","plugins","canDiscard","getRanges","isEnabled","unbind","change:isDirty","_pendingAction","_removePendingAction","canEditAt","locale","listenTo","bind","view","destroy","_setPendingAction","model","stopListening","PendingActions","get","execute","add","isDirty","acceptSuggestion"];var tc,ec;tc=Ya,ec=411,function(t){for(;--t;)tc.push(tc.shift())}(++ec);const nc=function(t,e){return Ya[t-=0]};class oc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[nc("0x1")]=e,this[nc("0x1c")]=n,this[nc("0xf")]=o,this[nc("0xc")]=t,this[nc("0xd")]=t[nc("0xb")][nc("0x4")](nc("0x8")),this[nc("0x9")]=t[nc("0xb")][nc("0x4")](nc("0xa")),this[nc("0x1c")][nc("0x1b")](nc("0x13")).to(this._acceptCommand,this[nc("0x9")],((t,e)=>t||e)),this.view[nc("0x1b")]("canAccept").to(this[nc("0xd")],"isEnabled",(t=>t&&this._editor[nc("0x1")][nc("0x18")](e[nc("0x12")]()))),this[nc("0x1c")][nc("0x1b")](nc("0x11")).to(this[nc("0x9")],nc("0x13"),(t=>t&&this._editor[nc("0x1")][nc("0x18")](e.getRanges()))),this[nc("0x16")]=null,n.isDirty&&this[nc("0x0")](),this[nc("0x1a")](n,"acceptSuggestion",(()=>this[nc("0x8")]())),this.listenTo(n,"discardSuggestion",(()=>this.discardSuggestion())),this[nc("0x1a")](n,nc("0x15"),(()=>{n[nc("0x7")]?this[nc("0x0")]():this[nc("0x17")]()}))}acceptSuggestion(){this[nc("0xd")][nc("0x5")](this[nc("0x1")].id)}discardSuggestion(){this._discardCommand[nc("0x5")](this[nc("0x1")].id)}[nc("0x1d")](){this.view[nc("0x14")](nc("0x13")),this[nc("0x1c")].unbind(nc("0xe")),this[nc("0x1c")].unbind(nc("0x11")),this[nc("0x2")](),this[nc("0xf")][nc("0x1d")](),this._pendingAction&&this._removePendingAction()}[nc("0x0")](){const t=Yo(this[nc("0xc")][nc("0x19")],"PENDING_ACTION_SUGGESTION");this[nc("0x16")]=this[nc("0xc")][nc("0x10")][nc("0x4")](nc("0x3"))[nc("0x6")](t)}[nc("0x17")](){null!==this[nc("0x16")]&&this[nc("0xc")][nc("0x10")][nc("0x4")](nc("0x3")).remove(this[nc("0x16")]),this[nc("0x16")]=null}}const sc=["delegate","destroy","_model","_config","authoredAt","commentThread","_createCommentViews","commentThreadInputView","_localUser","addComment","locale","descriptionParts","CommentView","submit","isReadOnly","setData","editorConfig","_createCommentThreadInputView","canAccept","commentsListView","commentInputView","length","isActive","removeComment","showInput","element","focus","isDirty","bind","set","value","editor","disableComments","cancel","canDiscard"];var rc,ic;rc=sc,ic=352,function(t){for(;--t;)rc.push(rc.shift())}(++ic);const xc=function(t,e){return sc[t-=0]};class ac extends s.View{constructor(t,e,n,o){super(t),this[xc("0x11")]=null,this[xc("0x5")]=null,this.set(xc("0x14"),!1),this.set(xc("0x2"),e[xc("0x2")]),this[xc("0x1a")](xc("0x2")).to(e),this[xc("0x1b")](xc("0x9"),[]),this[xc("0x1b")](xc("0x19"),!1),this.set("isEnabled",!1),this[xc("0x1b")](xc("0x10"),!1),this[xc("0x1b")](xc("0x20"),!1),this[xc("0x0")]=e,this[xc("0x6")]=n,this._config=o,o[xc("0x1e")]?this.set(xc("0x13"),1):this[xc("0x4")]()}[xc("0x18")](){this[xc("0x17")][xc("0x18")]()}destroy(){this[xc("0x11")]&&this.commentsListView.destroy(),this[xc("0x5")]&&this[xc("0x5")][xc("0x22")](),super[xc("0x22")]()}[xc("0x4")](){const{CommentsListView:t}=this._config;this[xc("0x11")]=new t(this[xc("0x8")],this[xc("0x0")][xc("0x3")],Object.assign({CommentView:this[xc("0x1")][xc("0xa")]},this[xc("0x1")])),this[xc("0x11")][xc("0x21")](xc("0x15")).to(this),this[xc("0x11")][xc("0x21")]("updateComment").to(this),this[xc("0x11")][xc("0x1a")](xc("0x14")).to(this),this[xc("0x1b")]("length",this[xc("0x11")][xc("0x13")]+1),this[xc("0x1a")](xc("0x13")).to(this.commentsListView,"length",(t=>t+1)),this.commentThreadInputView=this[xc("0xf")](),this.on("removeComment",(()=>this[xc("0x18")]())),this[xc("0x1a")]("isDirty").to(this[xc("0x11")],"hasDirtyComment",this.commentThreadInputView.commentInputView,xc("0x1c"),((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[xc("0x1")],e=new t(this[xc("0x8")],this[xc("0x6")],this[xc("0x1")][xc("0xe")]),n=e[xc("0x12")];return e[xc("0x1a")](xc("0x16")).to(this,xc("0x14"),this[xc("0x0")][xc("0x3")],xc("0xc"),n,xc("0x1c"),((t,e,n)=>!!n||t&&!e)),n.on(xc("0xb"),((t,e)=>{this.fire(xc("0x7"),e),n[xc("0x1d")][xc("0xd")]("")})),n.on(xc("0x1f"),(()=>this.focus())),n.bind("disabledSubmit").to(this[xc("0x0")][xc("0x3")],"isReadOnly"),e}}const cc=["value","_config","extendTemplate","source","commentThreadInputView","execute","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion--discard","ck-annotation","Discard suggestion","split","</span>","getUserViewNotificationText","isEnabled","set","color","ck-suggestion","author","type","descriptionParts","commentsListView","render","join","discardSuggestion","ck-suggestion__info-name","formatDateTime","innerHTML","children",'<span class="ck-suggestion-color" style="background-color: ',"check","_descriptionElement","acceptButton","ck-suggestion-wrapper","ck-comment__external","bindTemplate","name","getTemplate","bind","attributes","change:description","isActive","title","content","ck-suggestion__main","ck-comment__info-time","importWord","createElement","ck-suggestion__user","description","ck-annotation__user","acceptSuggestion","@external","time","ck-annotation__info-time","ck-annotation__main","getExternalSuggestionNote","push","discardButton","commentThread","locale","userView","innerText","_createButton","ck-suggestion--disabled-comments","disableComments","fire","ck-annotation__actions",'"></span>',"ck-suggestion-wrapper--active","Accept suggestion","span","ck-annotation__content-wrapper","isExternal","cancel","ck-annotation__info","ck-suggestion__actions","setTemplate","div","canDiscard","creator","_model","ck-suggestion__info"];var lc,dc;lc=cc,dc=389,function(t){for(;--t;)lc.push(lc.shift())}(++dc);const uc=function(t,e){return cc[t-=0]};class gc extends ac{constructor(e,n,o,s){super(e,n,o,s),this[uc("0x23")](uc("0x27"),""),this[uc("0x3a")](uc("0x27")).to(this,uc("0x28"),(t=>t&&t[0]?t[0].type:"")),this[uc("0x3a")](uc("0x45")).to(this,uc("0x28"),this,uc("0x3d"),((t,e)=>{let n="";for(const e of t)n+="<p>"+mc(e[uc("0x3f")],e[uc("0x24")])+"</p>";return e?n:(0,r.trimHtml)(n,{limit:140})})),this[uc("0x33")]=null,this[uc("0x34")]=this._createButton(Yo(e,uc("0x8")),t.icons[uc("0x32")],"ck-suggestion--accept",uc("0x47"),"sw"),this.acceptButton[uc("0x3a")](uc("0x22")).to(this,"canAccept"),this[uc("0x4e")]=this._createButton(Yo(e,uc("0x1e")),t.icons[uc("0xc")],uc("0x1c"),uc("0x2c"),"sw"),this[uc("0x4e")][uc("0x3a")](uc("0x22")).to(this,uc("0x11")),this.userView=new r.UserView(e,this._model[uc("0x26")],this.getUserViewNotificationText()),this[uc("0x51")][uc("0x17")]({attributes:{class:[uc("0x44"),uc("0x46")]}}),this[uc("0xf")](this[uc("0x39")]())}[uc("0x39")](){const t=this[uc("0x37")],e=[{tag:uc("0x10"),attributes:{class:[uc("0x14"),uc("0xd")]},children:[{tag:"span",children:[{text:this[uc("0x51")][uc("0x38")]}],attributes:{class:[uc("0x2d"),"ck-annotation__info-name"]}},{tag:uc("0x49"),attributes:{datetime:t.to("authoredAt"),class:[uc("0x41"),uc("0x4a")]},children:[{text:t.to("authoredAt",(t=>this[uc("0x16")][uc("0x2e")](t)))}]}]},{tag:uc("0x10"),attributes:{class:[uc("0xe"),uc("0x5")]},children:[this.acceptButton,this[uc("0x4e")]]},{tag:uc("0x10"),attributes:{class:[uc("0xa")]}}];this[uc("0x13")][uc("0xb")]&&e[uc("0x4d")]({tag:uc("0x10"),attributes:{class:[uc("0x36")]},children:[{text:this.getExternalSuggestionNote()}]});const n={tag:"div",attributes:{class:[uc("0x35"),t.if(uc("0x3d"),uc("0x7")),t.to(uc("0x27"),(t=>"ck-suggestion-"+t)),this._config[uc("0x3")]&&uc("0x2")],"data-suggestion-id":this[uc("0x13")].id,"data-thread-id":this[uc("0x13")][uc("0x4f")].id,"data-author-id":this[uc("0x13")][uc("0x26")].id,tabindex:-1},children:[{tag:uc("0x10"),attributes:{class:[uc("0x25"),uc("0x1d")]},children:[this[uc("0x51")],{tag:uc("0x10"),attributes:{class:[uc("0x40"),uc("0x4b")]},children:e}]}]};return this.commentsListView&&this[uc("0x19")]&&n[uc("0x30")][uc("0x4d")](this[uc("0x29")],this[uc("0x19")]),n}[uc("0x2a")](){super.render(),this[uc("0x33")]=this.element.querySelector(".ck-annotation__content-wrapper"),this._descriptionElement[uc("0x2f")]=this.description,this.on(uc("0x3c"),((t,e,n)=>{this._descriptionElement[uc("0x2f")]=n}))}[uc("0x1")](t,e,n,o,r){const i=new s.ButtonView(this[uc("0x50")]);return i[uc("0x23")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),i[uc("0x17")]({attributes:{class:n}}),i.on(uc("0x1a"),(()=>{this[uc("0x4")](o,this[uc("0x13")].id)})),i}[uc("0x4c")](){return uc("0x42")===this._model[uc("0x3b")][uc("0x48")][uc("0x18")]?Yo(this[uc("0x50")],uc("0x1b")):Yo(this[uc("0x50")],"EXTERNAL_SUGGESTION")}[uc("0x21")](){return this[uc("0x13")].isExternal?"importWord"===this[uc("0x13")].attributes["@external"][uc("0x18")]?Yo(this.locale,"EXTERNAL_IMPORT_WORD_AVATAR",this[uc("0x13")][uc("0x12")][uc("0x38")]):Yo(this[uc("0x50")],"EXTERNAL_AVATAR",this[uc("0x13")][uc("0x12")][uc("0x38")]):null}}function mc(t,e){let n="";return n+=t[uc("0x1f")]("*").map(((t,e)=>e%2!=0?'<span class="ck-suggestion-type">'+fc(t)+uc("0x20"):fc(t)))[uc("0x2b")](""),e&&(n+=uc("0x31")+e[uc("0x15")]+'" title="'+e[uc("0x3e")]+uc("0x6")),n}function fc(t){const e=document[uc("0x43")](uc("0x9"));return e[uc("0x0")]=t,e[uc("0x2f")]}const hc=["set","length","comments.maxCommentsWhenCollapsed","_disableComments","acceptButton","comments.maxCommentCharsWhenCollapsed","suggestionChanged","map","stopListening","trackChanges","buttonView","value","registerAnnotation","requires","getAllAdjacentSuggestions","_suggestionToController","acceptAllSuggestions","isDirty","toMany","change:previous","comments.editorConfig","addSourceCollector","_annotationViews","addComment","commands","getByInnerView","model","isMultiRange","Accept all selected suggestions","unbind","lowest","isOn","filter","type","_refreshActiveMarkers","getJoined","config","getRanges","_descriptionFactory","get","getFirstRange","getMarkers","isInContent","execute","suggestion-","delete","from","refreshSelectedViews","getSuggestion","destroy","_createUIButton","_viewToController","suggestionUnloaded","pluginName","focus","change:activeAnnotations","Discard all selected suggestions","bind","source","define","separator","switchbutton","innerView","_initializeController","CommentsRepository","componentFactory","size","discardSelectedSuggestions","arrowView","isEnabled","_updateController","editor","descriptionParts","init","Discard all suggestions","add","hasSuggestion","createAnnotation","mainView","commentThread","comments.maxThreadTotalWeight","plugins","_handleControllerBuffer","suggestionLoaded","keys","_destroyController","has","head","locale","editing","listenTo","EditorAnnotations","button","Accept all suggestions","clear","TrackChangesEditing","trackChanges.disableComments","acceptSelectedSuggestions","push","Annotations","getDescriptions","remove","comments","view","_handleSuggestionControllerDelayed"];var pc,bc;pc=hc,bc=277,function(t){for(;--t;)pc.push(pc.shift())}(++bc);const Ec=function(t,e){return hc[t-=0]};class _c extends t.Plugin{static get[Ec("0x33")](){return[Wa,r.Users,"CommentsRepository",Ec("0x20"),Ec("0x18")]}static get[Ec("0x5b")](){return"TrackChangesUI"}constructor(t){super(t),this[Ec("0x35")]=new Map,this[Ec("0x59")]=new Map,this[Ec("0x3c")]=new Map,this[Ec("0xf")]=new Map;const e=this[Ec("0x4")][Ec("0x4a")];e[Ec("0x61")]("trackChanges.SuggestionThreadView",gc),e.define("trackChanges.disableComments",!1),this[Ec("0x29")]=e[Ec("0x4d")](Ec("0x1d"))}_handleSuggestionControllerDelayed(t,e){0===this[Ec("0xf")][Ec("0x68")]&&setTimeout((()=>{for(const[t,e]of this[Ec("0xf")]){const n=this[Ec("0x35")][Ec("0x13")](t);n||e?n&&e&&this[Ec("0x12")](t):this[Ec("0x65")](t)}this[Ec("0x4")][Ec("0xe")][Ec("0x4d")](Ec("0x18"))[Ec("0x55")](),this._refreshActiveMarkers(),this._handleControllerBuffer[Ec("0x1b")]()}),10),this._handleControllerBuffer.set(t,e)}[Ec("0x6")](){const t=this[Ec("0x4")],e=t[Ec("0xe")][Ec("0x4d")](Ec("0x1c")),n=t.plugins[Ec("0x4d")](Ec("0x20")),o=t[Ec("0xe")][Ec("0x4d")]("EditorAnnotations"),s=t[Ec("0xe")].get("CommentsRepository");t.ui[Ec("0x67")][Ec("0x8")](Ec("0x2f"),(t=>this[Ec("0x58")](t))),o[Ec("0x3b")]((()=>{const t=[];for(const[e,n]of Array[Ec("0x54")](this[Ec("0x35")])){const o=e[Ec("0x34")](),s=[];for(const t of o){if(!t.isInContent)continue;if(t[Ec("0x41")]){s[Ec("0x1f")](...t[Ec("0x4b")]());continue}const e=t[Ec("0x4e")]();if(s[Ec("0x27")]>0){const t=s[0][Ec("0x49")](e);if(t){s[0]=t;continue}}s[Ec("0x1f")](e)}t[Ec("0x1f")]([n[Ec("0x24")],s])}return t})),this.listenTo(e,Ec("0x10"),((t,e)=>{this[Ec("0x17")](e,Ec("0x39"),((t,n,o,s)=>{e[Ec("0x50")]&&(null==o?(this._updateController(s.head),this[Ec("0x25")](e,!1)):(this[Ec("0x3")](o[Ec("0x14")]),this[Ec("0x25")](e,!0)))})),null===e.previous?this[Ec("0x25")](e,!1):this[Ec("0x3")](e[Ec("0x14")])})),this[Ec("0x17")](e,Ec("0x5a"),((t,e,n)=>{this[Ec("0x2e")](e,Ec("0x39")),this[Ec("0xf")][Ec("0x53")](e);const o=n?n[Ec("0x14")]:e,s=this[Ec("0x35")].get(o);null!==n&&this[Ec("0x3")](o),null===n&&s&&this[Ec("0x12")](e)})),this.listenTo(e,Ec("0x2c"),((t,e)=>{this._updateController(e)})),this[Ec("0x17")](n,Ec("0x5d"),(()=>{this[Ec("0x48")]()})),this[Ec("0x17")](s,Ec("0x3d"),((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Ec("0x9")](n))return;const s=e[Ec("0x56")](n);this[Ec("0x35")][Ec("0x4d")](s)[Ec("0x24")].focus()}),{priority:Ec("0x44")})}[Ec("0x48")](){const t=this[Ec("0x4")][Ec("0xe")].get("Annotations"),e=this[Ec("0x4")][Ec("0xe")].get(Ec("0x1c")),n=Array.from(t.activeAnnotations,(t=>t[Ec("0x64")]))[Ec("0x46")]((t=>this[Ec("0x59")][Ec("0x13")](t))),o=[];for(const t of n){const e=this[Ec("0x59")].get(t)[Ec("0x40")].getAllAdjacentSuggestions();o[Ec("0x1f")](...e.reduce(((t,e)=>[...t,...e.getMarkerNames()]),[]))}e.activeMarkers=o}[Ec("0x58")](t){const n=(0,s.createDropdown)(t,s.SplitButtonView),o=this[Ec("0x4")][Ec("0x3e")][Ec("0x4d")](Ec("0x2f")),r=Yo(t,"Track changes");n[Ec("0x30")].set({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2022, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Ec("0x30")][Ec("0x5f")](Ec("0x45")).to(o,Ec("0x31")),n[Ec("0x30")].on(Ec("0x51"),(()=>{o[Ec("0x51")](),this[Ec("0x4")][Ec("0x16")][Ec("0x24")][Ec("0x5c")]()}));const i=new e.Collection,x=[{type:Ec("0x63"),model:{withText:!0,label:r,commandName:Ec("0x2f")}},{type:Ec("0x62")},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x1a")),commandName:Ec("0x36")}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x42")),commandName:Ec("0x1e")}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x7")),commandName:"discardAllSuggestions"}},{type:Ec("0x19"),model:{withText:!0,label:Yo(t,Ec("0x5e")),commandName:Ec("0x0")}}];for(const t of x){let e={type:Ec("0x62")};if(t[Ec("0x40")]){const n=new s.Model(t[Ec("0x40")]),o=this[Ec("0x4")][Ec("0x3e")][Ec("0x4d")](n.commandName);n.bind(Ec("0x45"),Ec("0x2")).to(o,Ec("0x31"),Ec("0x2")),e={type:t[Ec("0x47")],model:n}}i[Ec("0x8")](e)}(0,s.addListToDropdown)(n,i);const a=x[Ec("0x46")]((t=>null!=t[Ec("0x40")]))[Ec("0x2d")]((t=>this.editor[Ec("0x3e")][Ec("0x4d")](t[Ec("0x40")].commandName))),c=n[Ec("0x30")];return c.actionView[Ec("0x43")](Ec("0x2")),c[Ec("0x1")][Ec("0x43")](Ec("0x2")),c.actionView[Ec("0x5f")](Ec("0x2")).to(o,"isEnabled"),c[Ec("0x1")][Ec("0x5f")](Ec("0x2"))[Ec("0x38")](a,"isEnabled",((...t)=>t.some((t=>t)))),n.on(Ec("0x51"),(t=>{this[Ec("0x4")][Ec("0x51")](t[Ec("0x60")].commandName),this[Ec("0x4")][Ec("0x16")][Ec("0x24")][Ec("0x5c")]()})),n}[Ec("0x65")](t){const e=this[Ec("0x4")],n=e.config,o=e.plugins[Ec("0x4d")](Ec("0x20")),s=e[Ec("0xe")][Ec("0x4d")](Ec("0x66")),i=e.plugins[Ec("0x4d")](Ec("0x18")),x=e[Ec("0xe")][Ec("0x4d")](r.Users).me,a=n[Ec("0x4d")](Ec("0x2f")).SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e[Ec("0xe")].get("CommentsUI");let d,u;this[Ec("0x3c")][Ec("0x13")](t.id)?(u=this[Ec("0x3c")][Ec("0x4d")](t.id),d=u[Ec("0xb")]):(d=new a(e[Ec("0x15")],t,x,{disableComments:this[Ec("0x29")],editorConfig:n[Ec("0x4d")](Ec("0x3a")),maxCommentsWhenCollapsed:n[Ec("0x4d")](Ec("0x28")),maxThreadTotalWeight:n[Ec("0x4d")](Ec("0xd")),maxCommentCharsWhenCollapsed:n[Ec("0x4d")](Ec("0x2b")),formatDateTime:(0,r.getDateTimeFormatter)(n[Ec("0x4d")](Ec("0x15"))),CommentView:n[Ec("0x4d")](Ec("0x23")).CommentView,CommentsListView:c,CommentThreadInputView:l}),d[Ec("0x2a")].on("execute",(()=>{e[Ec("0x16")].view[Ec("0x5c")]()})),d.discardButton.on("execute",(()=>{e[Ec("0x16")][Ec("0x24")][Ec("0x5c")]()})),u=o.createAnnotationView(this[Ec("0x4")].locale,d),u[Ec("0x5f")]("isDirty").to(d,Ec("0x37")),u.bind(Ec("0x27")).to(d),u[Ec("0x5f")]("type").to(d,Ec("0x47"),(t=>Ec("0x52")+t)),this[Ec("0x3c")][Ec("0x26")](t.id,u));const g=s.createCommentThreadController(t[Ec("0xc")],d),m=new oc(e,t,d,g),f=t[Ec("0x34")]()[Ec("0x46")]((t=>t[Ec("0x50")]));d[Ec("0x5")]=e[Ec("0xe")][Ec("0x4d")]("TrackChangesEditing")[Ec("0x4c")][Ec("0x21")](f),this[Ec("0x35")].set(t,m),this._viewToController.set(d,m);const h=o[Ec("0xa")]({view:u,target:()=>{const n=[],o=t[Ec("0x34")]()[Ec("0x46")]((t=>t[Ec("0x50")]));for(const t of o)n[Ec("0x1f")](...t[Ec("0x4f")]());return(0,r.getAllMarkersDomElementsSorted)(e[Ec("0x16")],n)},type:()=>Ec("0x52")+m[Ec("0x24")][Ec("0x47")]});o[Ec("0x8")](h),i[Ec("0x32")](h)}_destroyController(t){const e=this[Ec("0x4")].plugins[Ec("0x4d")]("Annotations"),n=this[Ec("0x35")].get(t),o=n[Ec("0x24")],s=e[Ec("0x3f")](o);s&&e[Ec("0x22")](s),this[Ec("0x35")][Ec("0x53")](t),this[Ec("0x59")][Ec("0x53")](o),n.destroy()}[Ec("0x3")](t){if(!t[Ec("0x50")]||!this._suggestionToController[Ec("0x13")](t))return;const e=this[Ec("0x4")][Ec("0xe")][Ec("0x4d")](Ec("0x1c")),n=this[Ec("0x35")][Ec("0x4d")](t),o=t[Ec("0x34")]();n[Ec("0x24")][Ec("0x5")]=e[Ec("0x4c")][Ec("0x21")](o)}[Ec("0x57")](){for(const t of this[Ec("0x35")][Ec("0x11")]())this[Ec("0x12")](t);for(const t of this[Ec("0x3c")].values())t[Ec("0xb")][Ec("0x57")]();super[Ec("0x57")]()}}var Tc,yc,Cc=["getSuggestions","adapter","Comments","TrackChanges","plugins","addSuggestion","requires","editor","get","addSuggestionData","getSuggestion"];Tc=Cc,yc=214,function(t){for(;--t;)Tc.push(Tc.shift())}(++yc);var kc=function(t,e){return Cc[t-=0]};class Ac extends t.Plugin{static get[kc("0x1")](){return[Wa,_c,kc("0x8")]}static get pluginName(){return kc("0x9")}set[kc("0x7")](t){this[kc("0x2")][kc("0xa")][kc("0x3")](Wa)[kc("0x7")]=t}get[kc("0x7")](){return this[kc("0x2")][kc("0xa")][kc("0x3")](Wa)[kc("0x7")]}[kc("0x0")](t){return this[kc("0x2")][kc("0xa")].get(Wa)[kc("0x4")](t)}[kc("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[kc("0x2")].plugins[kc("0x3")](Wa)[kc("0x6")]({skipNotAttached:t,toJSON:e})}[kc("0x5")](t){return this[kc("0x2")].plugins[kc("0x3")](Wa)[kc("0x5")](t)}}const vc=["trackChangesData.editorCreator","config","name","constructor","getRootNames","data","useAnonymousUser","_adapter","set","end","TrackChangesEditing","CommentsRepository","push","Users","get","getRootsAttributes","editor","getUser","rootsAttributes","create","requires","createDocumentFragment","getDataWithAcceptedSuggestions","createElement","TrackChangesData","addSuggestionData","result","editorCreator","pluginName","document","define","init","TrackChangesDataGetter","trackChangesData","reduce","plugins","model","getFullData","div","addUser","acceptAllSuggestions","track-changes-data-invalid-editor-creator","function"];var Rc,Ic;Rc=vc,Ic=461,function(t){for(;--t;)Rc.push(Rc.shift())}(++Ic);const Sc=function(t,e){return vc[t-=0]},Lc=["Pagination"];class Nc extends t.Plugin{static get[Sc("0x20")](){return[Wa]}static get[Sc("0x28")](){return Sc("0x24")}[Sc("0x0")](){const t=this[Sc("0x1c")];if(t.config[Sc("0x2a")](Sc("0xc"),(e=>{const n=t.model[Sc("0x29")][Sc("0x10")]().reduce(((t,e)=>(t[e]="",t)),{});return t[Sc("0xf")][Sc("0x1f")](n,e)})),Sc("0xb")!=typeof t.config[Sc("0x1a")]("trackChangesData")[Sc("0x27")])throw new e.CKEditorError(Sc("0xa"))}[Sc("0x22")](t){return Oc(this.editor,!0,t)}getDataWithDiscardedSuggestions(t){return Oc(this[Sc("0x1c")],!1,t)}}class Mc extends t.Plugin{static get pluginName(){return Sc("0x1")}constructor(t){super(t),this[Sc("0x26")]=Sc("0x15")}[Sc("0x0")](){this[Sc("0x1c")][Sc("0x4")][Sc("0x1a")](Sc("0x17"))._adapter={addCommentThread:()=>new Promise((()=>{})),getCommentThread:()=>new Promise((()=>{})),updateCommentThread:()=>new Promise((()=>{})),resolveCommentThread:()=>new Promise((()=>{})),reopenCommentThread:()=>new Promise((()=>{})),removeCommentThread:()=>new Promise((()=>{})),addComment:()=>new Promise((()=>{})),updateComment:()=>new Promise((()=>{})),removeComment:()=>new Promise((()=>{}))},this.editor[Sc("0x4")][Sc("0x1a")](Sc("0x16"))[Sc("0x13")]=null}}function wc(t){return void 0!==t[Sc("0x1b")]}async function Oc(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,Lc);o.plugins[Sc("0x18")](Wa,Mc),o[Sc("0x1e")]=wc(t)?t[Sc("0x1b")]():void 0;const s=document[Sc("0x21")](),i=t[Sc("0xd")][Sc("0x1a")](Sc("0x2"))[Sc("0x27")],x=await i(o,(()=>function(t){const e=document[Sc("0x23")](Sc("0x7"));return t.appendChild(e),e}(s)));!function(t,e){const n=t[Sc("0x5")][Sc("0x29")][Sc("0x10")]()[Sc("0x3")](((e,n)=>(e[n]=t[Sc("0x11")][Sc("0x1a")]({rootName:n}),e)),{}),o=t.plugins[Sc("0x1a")](Sc("0x19")).users.map((t=>({id:t.id,name:t[Sc("0xe")]}))),s=t[Sc("0x4")].get(Sc("0x16")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[Sc("0x4")][Sc("0x1a")](Sc("0x19")),i=e[Sc("0x4")].get(Sc("0x16"));for(const t of o)r[Sc("0x1d")](t.id)||r[Sc("0x8")](t);r.me||r[Sc("0x12")]();for(const t of s)i[Sc("0x25")](t);e[Sc("0x11")][Sc("0x14")](n)}(t,x),x.execute(e?Sc("0x9"):"discardAllSuggestions");const a=wc(x)?x[Sc("0x6")](n):x.data[Sc("0x1a")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|