@ckeditor/ckeditor5-track-changes 0.0.0-nightly-20231120.0 → 0.0.0-nightly-20231121.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/aiassistant.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/imagestyle.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 i=e[o];if(void 0!==i)return i.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:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["commands","value","has","refresh","forceDisabled","_enabledCommands","_enableCommands","clearForceDisabled","_disableUnsupportedCommands","affectsData","editor"];var c,l;c=a,l=499,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x1")]=e,this[u("0x8")]=!1,this[u("0xa")](),this._isEnabledBasedOnSelection=!1}[u("0xa")](){this.isEnabled=!0}execute(){this.value=!this[u("0x8")],this[u("0x8")]?this[u("0x4")]():this._enableCommands()}[u("0x4")](){for(const t of this[u("0x6")][u("0x7")][u("0x7")]())t.affectsData&&!this[u("0x1")][u("0x9")](t)&&t[u("0x0")]("TrackChangesCommand")}[u("0x2")](){for(const t of this.editor.commands[u("0x7")]())t[u("0x5")]&&!this[u("0x1")][u("0x9")](t)&&t[u("0x3")]("TrackChangesCommand")}}const g=["canEditAt","acceptSuggestion","TrackChangesEditing","track-changes-accept-suggestion-not-found","getRanges","refresh","get","execute","isEnabled","editor","plugins"];var f,m;f=g,m=202,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this._suggestions=e,this[h("0x1")](),this._isEnabledBasedOnSelection=!1}[h("0x1")](){this[h("0x4")]=!0}[h("0x3")](t){const n=this._suggestions[h("0x2")](t);if(!n)throw new e.CKEditorError(h("0xa"),this);const o=n[h("0x0")]();this[h("0x5")].model[h("0x7")](o)&&this[h("0x5")][h("0x6")][h("0x2")](h("0x9"))[h("0x8")](n)}}const b=["refresh","editor","_isEnabledBasedOnSelection","model","get","TrackChangesEditing","track-changes-discard-suggestion-not-found","getRanges","plugins","discardSuggestion","_suggestions","isEnabled","canEditAt","execute"];var E,_;E=b,_=213,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._suggestions=e,this[T("0xb")](),this[T("0xd")]=!1}[T("0xb")](){this[T("0x8")]=!0}[T("0xa")](t){const n=this[T("0x7")].get(t);if(!n)throw new e.CKEditorError(T("0x3"),this);const o=n[T("0x4")]();this[T("0xc")][T("0x0")][T("0x9")](o)&&this[T("0xc")][T("0x5")][T("0x1")](T("0x2"))[T("0x6")](n)}}const C=["replace","isObject","push","execute","deletion","add","length","isIntersecting","color","isArray","type","isCollapsed","join","isTouching","value","from","isInContent","createPositionAfter","start","createRange","isMultiRange","schema","createPositionAt","sort","getRanges","createPositionBefore"];var A,k;A=C,k=207,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function S(t){return t[I("0x18")](((t,e)=>I("0x5")==t[I("0xb")]&&I("0x5")!=e.type?-1:I("0x5")!=t.type&&I("0x5")==e[I("0xb")]?1:0))}function R(t,e){let n,o=0;const i=[],r=e[I("0x16")];for(;o<t[I("0x7")];){const s=t[o],x=t[o+1];n||(n=e[I("0x0")](s)),N(e,s,x)||(i[I("0x3")](e[I("0x14")](n,r[I("0x2")](s)?e.createPositionAfter(s):e[I("0x17")](s,"end"))),n=null),o++}return i}function N(t,e,n){if(!n)return!1;const o=t[I("0x12")](e),i=t[I("0x0")](n);return o[I("0xe")](i)}function v(t,e,n){for(;n[I("0x7")];){const o=n.splice(0,100);t.change((()=>{for(const t of o)t[I("0x11")]&&e[I("0x4")](t.id)}))}}const L=["editor","_suggestions","refresh","from","some","execute","getRanges","_command","_isEnabledBasedOnSelection","isEnabled","values"];var M,w;M=L,w=414,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x0")]=e,this[O("0x5")]=n,this[O("0x6")](),this[O("0x1")]=!1}[O("0x6")](){const t=Array.from(this[O("0x5")][O("0x3")]())[O("0x8")]((t=>t.isInContent));this[O("0x2")]=this[O("0x0")][O("0x2")]&&t}[O("0x9")](){const t=S(Array[O("0x7")](this[O("0x5")][O("0x3")]()));for(const e of t){const t=e[O("0xa")]();if(!this[O("0x4")].model.canEditAt(t))return}v(this[O("0x4")].model,this[O("0x0")],t)}}const D=["document","canEditAt","execute","_command","isEnabled","values","editor","selection","getRanges","from","refresh","model","_isEnabledBasedOnSelection","_suggestions","_selectedSuggestions"];var B,P;B=D,P=326,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this[U("0x7")]=e,this[U("0x2")]=n,this[U("0x3")]=new Set,this[U("0xe")](),this[U("0x1")]=!1}refresh(){const t=this[U("0xa")][U("0x0")][U("0x4")][U("0xb")],e=Array.from(this[U("0x2")][U("0x9")]());this[U("0x3")]=function(t,e){const n=Array[I("0x10")](t[I("0x19")]()),o=new Set;for(const i of e)if(i.isInContent)for(const e of n)for(const n of i.getRanges())(e[I("0x8")](n)||t[I("0xc")]&&!i[I("0x15")]&&i.next&&n.end.isTouching(e[I("0x13")]))&&o[I("0x6")](i);return o}(t,e),this[U("0x8")]=this._command.isEnabled&&!!this[U("0x3")].size}[U("0x6")](){const t=S(Array[U("0xd")](this[U("0x3")]));for(const e of t){const t=e[U("0xc")]();if(!this[U("0xa")].model[U("0x5")](t))return}v(this[U("0xa")][U("0x0")],this[U("0x7")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const $=function(t,e){var n=this.__data__,o=H(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 Z=X;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,St=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const Rt=function(t){return!(!ft(t)||Et(t))&&(mt(t)?St:yt).test(Tt(t))};const Nt=function(t,e){return null==t?void 0:t[e]};const vt=function(t,e){var n=Nt(t,e);return Rt(n)?n:void 0};const Lt=vt(ot,"Map");const Mt=vt(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 Dt=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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const $t=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function 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=Vt,Xt.prototype.delete=Wt,Xt.prototype.get=Kt,Xt.prototype.has=qt,Xt.prototype.set=$t;const Zt=Xt;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=vt(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 ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Se=Ie&&Ie.exports===ke&&et.process;const Re=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Se&&Se.binding&&Se.binding("util")}catch(t){}}();var Ne=Re&&Re.isTypedArray;const ve=Ne?Ae(Ne):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&ve(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("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 De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(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,Ze=Xe?Xe.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=vt(ot,"DataView");const fn=vt(ot,"Promise");const mn=vt(ot,"Set");const hn=vt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Sn=gt;(gn&&Sn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Sn(new Lt)!=pn||fn&&Sn(fn.resolve())!=bn||mn&&Sn(new mn)!=En||hn&&Sn(new hn)!=_n)&&(Sn=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 An:return bn;case kn:return En;case In:return _n}return e});const Rn=Sn;var Nn=Object.prototype.hasOwnProperty;const vn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&Nn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Rn(t)};var Wn=Re&&Re.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Rn(t)};var $n=Re&&Re.isSet;const Xn=$n?Ae($n):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=vn(e),!a)return Je(e,x)}else{var d=Rn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),Xn(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const So=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const Ro=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const No=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var vo=it?it.prototype:void 0,Lo=vo?vo.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){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 Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=Ro;case"[object Set]":var a=1&o;if(x||(x=No),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=So(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Rn(t),c=x?Do:Rn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||ve(t)?So(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},$o=["change","onAccept","subType","end","next","addMarkerName","authoredAt","toJSON","getFirstMarker","setAttribute","decorate","onAttributesChange","isExternal","_markerNames","isInContent","previous","accept","_onDiscard","getAllAdjacentSuggestions","onDiscard","isMultiRange","getMultiRangeId","type","nodeAfter","size","push","getFirstRange","filter","removeAttribute","_onAttributesChange","commentThread","_onAccept","getMarkers","getContainedElement","clear","getMarkerNames","set","_model","hasComments","from","@external","map","creator","length","addRange","split","data","reduce","add","getRange","removeMarker","discard","addMarker","author","markers","attributes","getRanges","isIntersecting","suggestion:","removeMarkers"];var Xo,Zo;Xo=$o,Zo=447,function(t){for(;--t;)Xo.push(Xo.shift())}(++Zo);const Yo=function(t,e){return $o[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this._isDataLoaded=!1,this.id=e.id,this[Yo("0x37")]=e[Yo("0x37")],this[Yo("0x23")]=e[Yo("0x23")]||null,this[Yo("0x1a")]=e[Yo("0x1a")],this[Yo("0xf")]=e[Yo("0xf")]||e[Yo("0x1a")],this[Yo("0x2d")]=Boolean(e.attributes&&e[Yo("0x1c")][Yo("0xd")]),this[Yo("0x13")]=null,this[Yo("0xa")]=t,this[Yo("0x4")]=e[Yo("0x22")],this[Yo("0x32")]=e[Yo("0x34")],this[Yo("0x2")]=e[Yo("0x2c")],this[Yo("0x2e")]=new Set,this.createdAt=null,this[Yo("0x9")](Yo("0x27"),null),this[Yo("0x9")](Yo("0x1c"),e.attributes||{}),this.set("previous",null),this.set(Yo("0x25"),null),this[Yo("0x9")](Yo("0x3"),null),this[Yo("0x9")]("_saved",!1),this[Yo("0x2b")](Yo("0x31")),this[Yo("0x2b")](Yo("0x18"))}get head(){let t=this;for(;t[Yo("0x30")];)t=t[Yo("0x30")];return t}get[Yo("0xb")](){return!!this.commentThread&&this.commentThread[Yo("0x10")]>0}get[Yo("0x35")](){return 0!=this[Yo("0x2e")][Yo("0x39")]&&6==Array[Yo("0xc")](this[Yo("0x2e")])[0][Yo("0x12")](":")[Yo("0x10")]}get[Yo("0x2f")](){return null!==this[Yo("0x29")]()}addMarkerName(t){this[Yo("0x2e")][Yo("0x15")](t)}[Yo("0x8")](){return Array[Yo("0xc")](this[Yo("0x2e")])}[Yo("0x5")](){return this[Yo("0x8")]()[Yo("0xe")]((t=>this._model[Yo("0x1b")].get(t)))[Yo("0x0")]((t=>t))}getFirstMarker(){return this[Yo("0x5")]()[0]||null}[Yo("0x20")](){this[Yo("0xa")].change((t=>{for(const e of this[Yo("0x5")]())t.removeMarker(e)})),this[Yo("0x2e")][Yo("0x7")]()}[Yo("0x17")](t){this._model[Yo("0x21")]((e=>{e[Yo("0x17")](t)})),this._markerNames.delete(t)}[Yo("0x11")](t){const e=Yo("0x1f")+this[Yo("0x37")]+":"+this[Yo("0x23")]+":"+this.id+":"+this[Yo("0xf")].id+":"+Jo[Yo("0x36")]();this[Yo("0x26")](e),this[Yo("0xa")][Yo("0x21")]((n=>{n[Yo("0x19")](e,{range:t,usingOperation:!0,affectsData:!0})}))}isIntersectingWithRange(t){for(const e of this.getRanges())if(e[Yo("0x1e")](t))return!0;return!1}[Yo("0x1d")](){return this[Yo("0x5")]()[Yo("0xe")]((t=>t.getRange()))}getItems(){return this[Yo("0x1d")]()[Yo("0x14")](((t,e)=>[...t,...e.getItems()]),[])}[Yo("0x3b")](){var t;return(null===(t=this[Yo("0x29")]())||void 0===t?void 0:t[Yo("0x16")]())||null}[Yo("0x6")](){const t=this[Yo("0x1d")]();if(1!=t[Yo("0x10")])return null;const e=t[0],n=e.start[Yo("0x38")],o=e[Yo("0x24")].nodeBefore;return n instanceof s.Element?n!=o?null:n:null}[Yo("0x31")](){this[Yo("0x4")](this[Yo("0x1d")](),this[Yo("0x13")],this[Yo("0x1c")]),this.removeMarkers()}discard(){this[Yo("0x32")](this[Yo("0x1d")](),this[Yo("0x13")],this.attributes),this[Yo("0x20")]()}[Yo("0x33")](){const t=[];let e=this.head;for(;e;)t[Yo("0x3a")](e),e=e[Yo("0x25")];return t}[Yo("0x2a")](t,e){const n=eo(this[Yo("0x1c")]);_o(n,t,e),Go(n,this[Yo("0x1c")])||(this[Yo("0x1c")]=n,this[Yo("0x2")](n))}[Yo("0x1")](t){const e=eo(this[Yo("0x1c")]);qo(e,t),Go(e,this[Yo("0x1c")])||(this[Yo("0x1c")]=e,this[Yo("0x2")](this[Yo("0x1c")]))}[Yo("0x28")](){return{id:this.id,type:this.subType?this[Yo("0x37")]+":"+this[Yo("0x23")]:this[Yo("0x37")],authorId:this[Yo("0xf")].id,createdAt:this.createdAt,hasComments:this[Yo("0xb")],data:this.data,attributes:this[Yo("0x1c")]}}static[Yo("0x36")](){return(0,e.uid)().substr(1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["_itemLabels","name","item","has","getWalker","_handleCustomCallbackDescription","newValue","elementEnd","attribute","getFirstRange","EmptyContainer","indexOf","registerElementLabel","addEmptyContainer","removeContainer","_customCallbacks","_locale","Container","_schema","deletion","_attributeLabels","quantity","type","*Split:* %0","remove","add","get","nodeAfter","length","removeEmptyContainer","_addDescriptionItems","skip","set","_handleInsertRemoveSuggestionDescription","end","normal","insertion","previousSibling","start","*Insert:* %0","softBreak","label","data","isEmpty","removeObject","element","replace","$text","ELEMENT_SPACE","nextSibling","match","_handleRenameSuggestionDescription","_handleAttributeSuggestionDescription","checkChild","key","text","registerDescriptionCallback","removeFormat","join","pop","format","map","function","subType","getItemLabel","addFormat","isObject","push","*Remove format:* %0","Object","*Remove:* %0","_itemLabelsCallbacks","addObject"];var ei,ni;ei=ti,ni=466,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this._customCallbacks=[],this[oi("0x2d")]=new Map,this[oi("0x2b")]=[],this[oi("0x41")]=new Map,this[oi("0x3f")]=t,this[oi("0x3d")]=e}getDescriptions(t){const e=[],n=new Set,o=new Set;for(let i=0;i<t.length;i++){const r=t[i];if(!r.isInContent)continue;const s=this[oi("0x32")](r);if(s){if(null!=r[oi("0x23")]){if(n.has(r[oi("0x23")]))continue;n[oi("0x46")](r[oi("0x23")])}e.push(s)}else if(oi("0x35")!=r[oi("0x43")])oi("0x8")!=r[oi("0x43")]&&"deletion"!=r[oi("0x43")]||this[oi("0x5")](e,r,t[i+1]);else{const t=r[oi("0xe")][oi("0x1a")];if(o[oi("0x30")](t))continue;o[oi("0x46")](r[oi("0xe")][oi("0x1a")]),t==mc?this[oi("0x17")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this._resolveDescriptionItems(e)}[oi("0x1c")](t){this._customCallbacks.push(t)}[oi("0x39")](t,n,o=e.priorities[oi("0x7")]){oi("0x22")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x2b")],{matchingCallback:t,label:n,priority:o}):this[oi("0x2d")][oi("0x4")](t,n)}registerAttributeLabel(t,e){this._attributeLabels[oi("0x4")](t,e)}[oi("0x24")](t,e=1){let n;for(const e of this._itemLabelsCallbacks)if(e.matchingCallback(t)){n=e[oi("0xd")];break}return n||(n=this[oi("0x2d")][oi("0x47")](t[oi("0x2e")])),n?n(e):1!==e?e+" "+t[oi("0x2e")]+"s":""+t[oi("0x2e")]}_addDescriptionItems(t,e){const n=e.getFirstRange()[oi("0x31")](),o="insertion"==e.type?oi("0x46"):oi("0x45");for(const e of n){const i=e[oi("0x2f")],r=t[t[oi("0x0")]-1];if(i.is("$textProxy"))r&&r[oi("0x43")][oi("0x38")](oi("0x3e"))>-1&&t[oi("0x1f")](),r&&"text"==r[oi("0x43")]?r[o]+=i[oi("0xe")]:t[oi("0x27")]({type:"text",add:oi("0x46")==o?i[oi("0xe")]:"",remove:"remove"==o?i.data:""});else if(this[oi("0x3f")][oi("0x26")](i)){const s=i;if(r&&r[oi("0x43")][oi("0x38")](oi("0x3e"))>-1&&t[oi("0x1f")](),"elementEnd"==e[oi("0x43")])continue;r&&r[oi("0x43")]==o+oi("0x29")&&r[oi("0x11")].name==s[oi("0x2e")]?r[oi("0x42")]++:t[oi("0x27")]({type:o+oi("0x29"),element:s,quantity:1}),n[oi("0x3")]((t=>!("elementEnd"==t[oi("0x43")]&&t.item==i)))}else if(this[oi("0x3f")][oi("0x19")](i,oi("0x13"))||i.is(oi("0x11"),oi("0xc"))){const n=i;if(oi("0x46")==o&&"elementStart"==e[oi("0x43")]||oi("0x45")==o&&oi("0x34")==e[oi("0x43")])continue;if(r&&-1==r[oi("0x43")][oi("0x38")]("Container")){"text"==r[oi("0x43")]&&(r[o]+="\n");continue}let s;if(s=oi("0x46")==o?n.nextSibling&&!this[oi("0x3f")][oi("0x26")](n[oi("0x15")])?n[oi("0x15")]:null:n[oi("0x9")]&&!this[oi("0x3f")].isObject(n[oi("0x9")])?n.previousSibling:null,n.isEmpty||s&&s[oi("0xf")]){const e=s&&s[oi("0xf")]?s:n;r&&r[oi("0x43")]==o+oi("0x37")&&r[oi("0x11")][oi("0x2e")]==e[oi("0x2e")]?r[oi("0x42")]++:t[oi("0x27")]({type:o+oi("0x37"),element:e,quantity:1})}else t[oi("0x27")]({type:o+oi("0x3e"),element:n})}}}_resolveDescriptionItems(t){const e=this._locale,n=[],o=[],i=[];for(const r of t)switch(r[oi("0x43")]){case"text":if(r[oi("0x46")]=r[oi("0x46")][oi("0x12")](/(\S)\u000A+(\S)/g,"$1 $2")[oi("0x12")](/\u000A/g,""),r[oi("0x45")]=r[oi("0x45")][oi("0x12")](/(\S)\u000A+(\S)/g,"$1 $2")[oi("0x12")](/\u000A/g,""),""!=r.add&&""!=r[oi("0x45")]){n.push({type:oi("0x12"),content:Qo(e,"REPLACE_TEXT",['"'+r[oi("0x45")]+'"','"'+r[oi("0x46")]+'"'])});continue}if(null!=r[oi("0x46")][oi("0x16")](/^ +$/)){n.push({type:oi("0x8"),content:Qo(e,oi("0xb"),Qo(e,oi("0x14"),r[oi("0x46")].length))});continue}if(null!=r[oi("0x45")][oi("0x16")](/^ +$/)){n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),Qo(e,"ELEMENT_SPACE",r[oi("0x45")].length))});continue}if(""!=r[oi("0x46")]){n[oi("0x27")]({type:oi("0x8"),content:Qo(e,oi("0xb"),'"'+r[oi("0x46")]+'"')});continue}n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),'"'+r[oi("0x45")]+'"')});continue;case oi("0x3a"):case oi("0x2c"):n[oi("0x27")]({type:"insertion",content:Qo(e,"*Insert:* %0",this[oi("0x24")](r[oi("0x11")],r[oi("0x42")]))});continue;case oi("0x1"):case oi("0x10"):n[oi("0x27")]({type:oi("0x40"),content:Qo(e,oi("0x2a"),this[oi("0x24")](r.element,r.quantity))});continue;case"addContainer":n[oi("0x27")]({type:oi("0x8"),content:Qo(e,oi("0x44"),this[oi("0x24")](r[oi("0x11")],r.quantity))});continue;case oi("0x3b"):n[oi("0x27")]({type:oi("0x40"),content:Qo(e,"*Merge:* %0",this[oi("0x24")](r.element,r[oi("0x42")]))});continue;case oi("0x25"):o[oi("0x27")](r[oi("0x1a")]);continue;case oi("0x1d"):i[oi("0x27")](r.key);continue;default:n[oi("0x27")](r)}if(o[oi("0x0")]){const t=o[oi("0x21")]((t=>this[oi("0x41")].has(t)?this[oi("0x41")][oi("0x47")](t):t))[oi("0x1e")](", ");n[oi("0x27")]({type:oi("0x20"),content:Qo(this[oi("0x3d")],"*Set format:* %0",t)})}if(i[oi("0x0")]){const t=i.map((t=>this[oi("0x41")][oi("0x30")](t)?this[oi("0x41")][oi("0x47")](t):t))[oi("0x1e")](", ");n[oi("0x27")]({type:"format",content:Qo(this[oi("0x3d")],oi("0x28"),t)})}return n}[oi("0x32")](t){for(const e of this[oi("0x3c")]){const n=e(t);if(n&&oi("0x43")in n)return n}}[oi("0x18")](t,e){const n=e[oi("0xe")],o=void 0===n[oi("0x33")]?oi("0x1d"):oi("0x25");t[oi("0x27")]({type:o,key:n[oi("0x1a")]})}[oi("0x17")](t,e){t[oi("0x27")]({type:"format",content:Qo(this[oi("0x3d")],"*Change to:* %0",this.getItemLabel(e[oi("0x36")]()[oi("0xa")][oi("0x48")],1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this[oi("0x2")](t,e),n&&n[oi("0x36")]()&&!e[oi("0x36")]()[oi("0x6")].isEqual(n[oi("0x36")]()[oi("0xa")])){const n=t[t.length-1],o=oi("0x8")==e[oi("0x43")]?oi("0x46"):oi("0x45");n&&oi("0x1b")==n[oi("0x43")]&&(n[o]+="\n")}}}const ri=["showAIAssistant","plugins","afterInit","get","TrackChangesEditing","commands","enableCommand","editor"];var si,xi;si=ri,xi=214,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x4")](){const t=this[ai("0x1")],e=t[ai("0x3")][ai("0x5")](ai("0x6"));t[ai("0x7")][ai("0x5")](ai("0x2"))&&e[ai("0x0")](ai("0x2"))}}const li=["*Format:* %0","FORMAT_JUSTIFY_TEXT","AlignmentEditing","FORMAT_ALIGN_TO_LEFT","center","editor","has","registerDescriptionCallback","TrackChangesEditing","_descriptionFactory","left","locale","format","get","type","commandParams","commandName","justify","plugins","registerAttributeLabel","alignment"];var ui,di;ui=li,di=272,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{afterInit(){const t=this.editor,e=t[gi("0xc")];if(!t[gi("0x13")][gi("0x7")](gi("0x3")))return;const n=t.plugins[gi("0xe")]("TrackChangesEditing");n._enableDefaultAttributesIntegration("alignment",[],[gi("0x0")]),n[gi("0xa")][gi("0x14")](gi("0x0"),Qo(e,"FORMAT_ALIGNMENT")),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this[gi("0x6")],e=t[gi("0xc")];t[gi("0x13")].get(gi("0x9"))._descriptionFactory[gi("0x8")]((t=>{if("formatBlock"!=t[gi("0xf")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x11")]){const t=n[gi("0x10")][0].value;return{type:gi("0xd"),content:Qo(e,gi("0x1"),function(t){switch(t){case gi("0xb"):return Qo(e,gi("0x4"));case"right":return Qo(e,"FORMAT_ALIGN_TO_RIGHT");case gi("0x5"):return Qo(e,"FORMAT_ALIGN_TO_CENTER");case gi("0x12"):return Qo(e,gi("0x2"))}}(t))}}}))}}const mi=["StrikethroughEditing","has","SubscriptEditing","ItalicEditing","underline","afterInit","SuperscriptEditing","FORMAT_UNDERLINE","toLowerCase","commandName","forceValue","slice","BoldEditing","formatInline","get","toUpperCase","*Remove format:* %0","FORMAT_CODE","editor","type","superscript","bold","strikethrough","*Format:* %0","_enableDefaultAttributesIntegration","format","code","subscript","FORMAT_SUPERSCRIPT","_descriptionFactory","TrackChangesEditing","locale","plugins","FORMAT_SUBSCRIPT","_registerLegacyDescription","commandParams","UnderlineEditing","italic","FORMAT_"];var hi,pi;hi=mi,pi=272,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0xd"),bi("0x4"),bi("0x25"),"CodeEditing",bi("0x1"),bi("0x3"),bi("0x7")];class _i extends t.Plugin{[bi("0x6")](){const t=this[bi("0x13")],e=t[bi("0x21")][bi("0xf")]("TrackChangesEditing"),n=t[bi("0x20")];for(const o of Ei){if(!t[bi("0x21")][bi("0x2")](o))continue;const i=o[bi("0xc")](0,-7)[bi("0x9")](),r=bi("0x0")+i[bi("0x10")]();e[bi("0x19")](i,[i]),e._descriptionFactory.registerAttributeLabel(i,Qo(n,r))}this[bi("0x23")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale,n=t.plugins[bi("0xf")](bi("0x1f"));function o(t,o){n[bi("0x1e")].registerDescriptionCallback((n=>{if(bi("0xe")!=n[bi("0x14")])return;const{data:i}=n;return i&&i[bi("0xa")]===t?i[bi("0x24")][0][bi("0xb")]?{type:bi("0x1a"),content:Qo(e,bi("0x18"),o)}:{type:bi("0x1a"),content:Qo(e,bi("0x11"),o)}:void 0}))}o(bi("0x16"),Qo(e,"FORMAT_BOLD")),o(bi("0x26"),Qo(e,"FORMAT_ITALIC")),o(bi("0x5"),Qo(e,bi("0x8"))),o(bi("0x1b"),Qo(e,bi("0x12"))),o(bi("0x17"),Qo(e,"FORMAT_STRIKETHROUGH")),o(bi("0x1c"),Qo(e,bi("0x22"))),o(bi("0x15"),Qo(e,bi("0x1d")))}}const Ti=["commandName","document","forceValue","blockQuote","afterInit","enableCommand","editor","*Remove format:* %0","change","getSelectedBlocks","checkChild","markBlockFormat","name","from","format","plugins","registerDescriptionCallback","ELEMENT_BLOCK_QUOTE","filter","schema","locale","commands","get","commandParams","parent","_descriptionFactory","model","$root"];var yi,Ci;yi=Ti,Ci=183,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{[Ai("0x11")](){const t=this[Ai("0x13")],e=t[Ai("0x5")];if(!t[Ai("0x0")].has("BlockQuoteEditing"))return;const n=t.plugins.get("TrackChangesEditing"),o=this[Ai("0x13")][Ai("0x6")][Ai("0x7")](Ai("0x10"));n[Ai("0x12")](Ai("0x10"),((e,i={})=>{const r=this.editor[Ai("0xb")][Ai("0xe")].selection,s=i&&void 0!==i[Ai("0xf")]?i[Ai("0xf")]:!o.value;let x=[];if(s){const e=Array[Ai("0x1a")](r.getSelectedBlocks())[Ai("0x3")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t[Ai("0x9")],Ai("0x10")),o=e[Ai("0x17")]([Ai("0xc"),"blockQuote"],t);return n&&o}(t,this[Ai("0x13")][Ai("0xb")][Ai("0x4")])));x=R(e,t[Ai("0xb")])}else{const e=Array[Ai("0x1a")](r[Ai("0x16")]()).filter((t=>Ii(t)));x=R(e,t[Ai("0xb")])}t[Ai("0xb")][Ai("0x15")]((()=>{for(const t of x)n[Ai("0x18")](t,{commandName:Ai("0x10"),commandParams:[{forceValue:s}]})}))})),n[Ai("0xa")][Ai("0x1")]((t=>{const{data:n}=t;if(n&&Ai("0x10")==n[Ai("0xd")]){const t=Qo(e,Ai("0x2"));return n[Ai("0x8")][0].forceValue?{type:Ai("0x1b"),content:Qo(e,"*Set format:* %0",t)}:{type:"format",content:Qo(e,Ai("0x14"),t)}}}))}}function Ii(t){return"blockQuote"==t[Ai("0x9")][Ai("0x19")]}const Si=["commands","afterInit","editor","enableCommand","get","ckbox","plugins"];var Ri,Ni;Ri=Si,Ni=169,function(t){for(;--t;)Ri.push(Ri.shift())}(++Ni);const vi=function(t,e){return Si[t-=0]};class Li extends t.Plugin{[vi("0x0")](){const t=this[vi("0x1")];t[vi("0x6")][vi("0x3")]("ckbox")&&t[vi("0x5")][vi("0x3")]("TrackChangesEditing")[vi("0x2")](vi("0x4"))}}const Mi=["model","language","filter","editor","markBlockFormat","change","indentCodeBlock","forceValue","document","toLowerCase","commands","codeBlock","enableCommand","rootElement","type","plugins","name","formatBlock","get","format","has","selection","checkChild","CodeBlock","from","locale","registerElementLabel","parent","commandParams","languages","*Remove format:* %0","isLimit","_descriptionFactory","getSelectedBlocks","config","find","*Set format:* %0","ELEMENT_CODE_BLOCK"];var wi,Oi;wi=Mi,Oi=369,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this[Fi("0xe")];if(!t[Fi("0x1a")][Fi("0x1f")](Fi("0x22")))return;const e=t[Fi("0x1a")][Fi("0x1d")]("TrackChangesEditing"),n=t[Fi("0x24")],o=t[Fi("0x7")][Fi("0x1d")](Fi("0x16"))[Fi("0x2")],i=t[Fi("0x15")][Fi("0x1d")]("codeBlock");e.enableCommand(Fi("0x11")),e.enableCommand("outdentCodeBlock"),e[Fi("0x17")]("codeBlock",((n,r={})=>{const s=t[Fi("0xb")],x=t.model[Fi("0x13")][Fi("0x20")],a=r&&void 0!==r.forceValue?r[Fi("0x12")]:!i.value;let c;r[Fi("0xc")]||(r.language=o[0][Fi("0xc")]),c=a?Array[Fi("0x23")](x[Fi("0x6")]()).filter((t=>{return Bi(t)||(e=t,n=s.schema,!e.is(Fi("0x18"))&&!n[Fi("0x4")](e)&&n[Fi("0x21")](e[Fi("0x0")],Fi("0x16")));var e,n})):Array[Fi("0x23")](x.getSelectedBlocks())[Fi("0xd")]((t=>Bi(t)));const l=R(c,s);s[Fi("0x10")]((()=>{for(const t of l)e[Fi("0xf")](t,{commandName:Fi("0x16"),commandParams:[{...r,forceValue:a}],formatGroupId:"blockName"})}))})),e[Fi("0x5")][Fi("0x25")](Fi("0x16"),(t=>Qo(n,Fi("0xa"),t))),e._descriptionFactory.registerDescriptionCallback((t=>{if(Fi("0x1c")!=t[Fi("0x19")])return;const e=n.t,{data:i}=t;if(!i||Fi("0x16")!=i.commandName)return;const r=i[Fi("0x1")][0].language,s=e(o[Fi("0x8")]((t=>t[Fi("0xc")]===r)).label)[Fi("0x14")]();return i.commandParams[0][Fi("0x12")]?{type:"format",content:Qo(n,Fi("0x9"),Qo(n,Fi("0xa"),1)+" ("+s+")")}:{type:Fi("0x1e"),content:Qo(n,Fi("0x3"),Qo(n,Fi("0xa"),1))}}))}}function Bi(t){return"codeBlock"==t[Fi("0x1b")]}const Pi=["afterInit","plugins","get","has","TrackChangesEditing","CommentsEditing"];var Ui,ji;Ui=Pi,ji=319,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x5")](){const t=this.editor;t[Gi("0x0")][Gi("0x2")](Gi("0x4"))&&t.plugins[Gi("0x1")](Gi("0x3")).enableCommand("addCommentThread")}}var Hi=n(181);const zi=["isContent","activeMarkers","isLimit","writer","isAtEnd","includes","bindElementToMarker","consumable","TrackChangesEditing","plugins","ck-suggestion-marker--active","element","markerRange","toViewPosition","nextSibling","markerName","listItem","span","item","addHighlight","test","start","mapper","previousPosition","getCustomProperty","getItems","name","push","parent","createUIElement","listIndent","schema","getWalker","model","hasAttribute"];var Wi,Ki;Wi=zi,Ki=450,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function $i(t,e,n){const o=[];for(const i of e[qi("0x1e")]())i[qi("0x4")](t)&&o[qi("0x20")](n.createRangeOn(i));return o}function Xi(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xe")].get(qi("0xd"));return(i,r,s)=>{if(!s[qi("0xc")][qi("0x19")](r[qi("0x11")],i[qi("0x1f")]))return;const x=r[qi("0x11")][qi("0x2")](),a=r[qi("0x11")][qi("0x1a")],c=t[qi("0x3")][qi("0x1")];let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t[qi("0x17")];d=d||c[qi("0x5")](e);const n=s.mapper.toViewElement(e);if(n&&n[qi("0x1d")](qi("0x18")))return;"elementEnd"==t.type&&c.isBlock(e)&&!c[qi("0x7")](e)&&(e[qi("0x13")]||a[qi("0x9")]?l&&l[qi("0x21")]==e||(l=e,f(t.previousPosition),g=!0):u=u||t[qi("0x1c")])}function f(t){const i=s[qi("0x8")][qi("0x22")](qi("0x16"),{class:"ck-suggestion-marker-"+e}),x=s.mapper[qi("0x12")](t);n&&o[qi("0x6")][qi("0xa")](r[qi("0x14")])&&s.writer.addClass(qi("0xf"),i),s[qi("0x8")].insert(x,i),s[qi("0x1b")][qi("0xb")](i,r[qi("0x14")])}d||g||!u||f(u)}}const Zi=["init","removeMarker:suggestion:deletion","fromRange","addMarker:suggestion:deletion","markerName","model","editing","merge","enableCommand","plugins","createRange","start","mapper","end","root","getFirstRange","markerNameToElements","data","unlock","writer","commands","TrackChangesEditing","get","modifySelection","unbindElementFromMarkerName","detach","high","document","downcastDispatcher","uiElement","deleteForward","forward","delete"];var Yi,Ji;Yi=Zi,Ji=247,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get requires(){return[Hi.Delete]}[Qi("0x11")](){const t=this.editor,e=t[Qi("0x1a")][Qi("0x6")](Qi("0x5"));e[Qi("0x19")](Qi("0x10"));const n=t[Qi("0x4")][Qi("0x6")](Qi("0xe"));e[Qi("0x19")](Qi("0xe"),((e,o={})=>{const i=t[Qi("0x16")].createSelection(t[Qi("0x16")][Qi("0xb")].selection);i.isCollapsed&&t[Qi("0x16")][Qi("0x7")](i,{direction:Qi("0xf"),unit:o.unit});const r=i[Qi("0x20")](),x=s.LiveRange[Qi("0x13")](r);let a;e(o),a="$graveyard"==x[Qi("0x1f")].rootName?t.model[Qi("0x1b")](r[Qi("0x1c")]):t[Qi("0x16")][Qi("0x1b")](x[Qi("0x1c")],x.end),x[Qi("0x9")](),t[Qi("0x16")].enqueueChange(n.buffer.batch,(t=>{n.buffer.lock(),t.setSelection(t[Qi("0x1b")](a[Qi("0x1e")])),n.buffer[Qi("0x2")]()}))})),t[Qi("0x17")][Qi("0xc")].on(Qi("0x14"),Xi(t,Qi("0x18")),{priority:Qi("0xa")}),t[Qi("0x1")][Qi("0xc")].on(Qi("0x14"),((e,n,o)=>{o.options.showSuggestionHighlights&&Xi(t,Qi("0x18"),{showActiveMarker:!1}).bind(this)(e,n,o)}),{priority:Qi("0xa")}),t[Qi("0x17")][Qi("0xc")].on(Qi("0x12"),((t,e,n)=>{const o=n[Qi("0x1d")][Qi("0x0")](e[Qi("0x15")]);if(o)for(const t of o)t.is(Qi("0xd"))&&(n[Qi("0x1d")][Qi("0x8")](t,e[Qi("0x15")]),n[Qi("0x3")].remove(t))}),{priority:"high"})}}const er=["slice","forceValue","registerCustomCallback","selection","getSelectedBlocks","multipleBlocks","splitListItemBefore","hasAttribute","ELEMENT_BULLETED_LIST","ELEMENT_","model","_descriptionFactory","next","listType","commandParams","value","_LIST","bulletedList","documentList","outdentList","deletion","createRange","*Format:* remove from %0","listItemId","paragraph","numberedList","enableCommand","from","type","refresh","DocumentListUtils","locale","isObject","change","end","*Indent:* %0","has","setSelection","getFirstRange","registerElementLabel","expandListBlocksToCompleteList","add","parent","editor","accept","commands","nodeAfter","indentList","execute","plugins","detach","start","formatInline","*Outdent:* %0","get","ELEMENT_LIST_ITEM","*Format:* insert into %0","listIndent","mergeListItemBackward","nextSibling","formatBlock","getAttribute","after","markBlockFormat","document","config","*Change to:* %0","format","toUpperCase","createPositionAt","commandName","push","mergeListItemForward","before","markMultiRangeBlockFormat","map","schema","list.multiBlock","TrackChangesEditing","afterInit","fromRange"];var nr,or;nr=er,or=400,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x3")](){const t=this[ir("0x30")];if(!t[ir("0x36")][ir("0x29")]("DocumentListEditing"))return;const e=t[ir("0x24")],n=t[ir("0x36")][ir("0x3b")](ir("0x2")),o=t[ir("0x36")][ir("0x3b")](ir("0x23"));function i(e){return()=>{const i=t[ir("0x32")][ir("0x3b")](e);if(i[ir("0x14")]&&!t[ir("0x46")][ir("0x3b")](ir("0x1")))return void t.execute(ir("0x1d"),{});let r=Array[ir("0x20")](t[ir("0xf")][ir("0x45")][ir("0x8")][ir("0x9")]());if(a(e)){r=o[ir("0x2d")](r);const t=[];for(const e of r)o.isFirstBlockOfListItem(e)&&t[ir("0x4c")](e);r=t}t[ir("0xf")].change((()=>{n[ir("0x4f")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x14")]}],formatGroupId:"listType"},[],ir("0x17"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x20")](t);const n=e.findIndex((t=>!t[ir("0xc")](ir("0x1c"))));return n>-1&&(e=e[ir("0x5")](0,n)),e}(t[ir("0xf")].document[ir("0x8")][ir("0x9")]()),i=o[o.length-1],r=t[ir("0xf")][ir("0x0")][ir("0x25")](i)?ir("0x43"):ir("0x27"),s=t[ir("0xf")][ir("0x1a")](t[ir("0xf")].createPositionAt(o[0],"before"),t[ir("0xf")].createPositionAt(i,r));t.model[ir("0x26")]((()=>{n[ir("0x44")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x12")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x42")](ir("0x3e"))>n[ir("0x42")](ir("0x3e"));)e[ir("0x2e")](t),t=t.nextSibling}return Array.from(e)}(o))}))}}function x(e){return()=>{const o=t[ir("0xf")][ir("0x45")][ir("0x8")].getSelectedBlocks()[ir("0x11")]().value,i=t[ir("0xf")].createPositionAt(o,ir("0x4e")),r=t[ir("0xf")][ir("0x4a")](o,0),s=t[ir("0xf")][ir("0x1a")](i,r);t[ir("0xf")][ir("0x26")]((()=>{n[ir("0x44")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x12")})}))}}function a(e){const n=t.commands[ir("0x3b")]("bulletedList")[ir("0x14")],o=t[ir("0x32")][ir("0x3b")](ir("0x1e"))[ir("0x14")];return ir("0x1e")===e?n:o}n[ir("0x1f")](ir("0x1e"),i(ir("0x1e"))),n[ir("0x1f")](ir("0x16"),i(ir("0x16"))),n[ir("0x1f")](ir("0x34"),r("indentList")),n[ir("0x1f")](ir("0x18"),r(ir("0x18"))),n[ir("0x1f")]("splitListItemAfter",x("splitListItemAfter")),n[ir("0x1f")](ir("0xb"),x(ir("0xb"))),n[ir("0x10")][ir("0x2c")]((function(e){const n=!t.model.schema[ir("0x25")](e),o=e.previousSibling,i=e[ir("0x40")],r=e[ir("0x42")](ir("0x1c")),s=!o||o[ir("0x42")](ir("0x1c"))!==r,x=!i||i[ir("0x42")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[ir("0x10")].registerDescriptionCallback((function(n){if(ir("0x41")!=n.type&&ir("0x39")!=n[ir("0x21")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x4b")]){case"bulletedList":s=o[ir("0x13")][0][ir("0x6")],x=a(o[ir("0x4b")]),i=s?ir("0x3d"):"*Format:* remove from %0",!x&&t[ir("0x46")][ir("0x3b")]("list.multiBlock")||(i=ir("0x47")),r={type:ir("0x48"),content:Qo(e,i,Qo(e,ir("0xd")))};break;case ir("0x1e"):s=o[ir("0x13")][0][ir("0x6")],x=a(o.commandName),i=ir(s?"0x3d":"0x1b"),!x&&t[ir("0x46")][ir("0x3b")](ir("0x1"))||(i="*Change to:* %0"),r={type:ir("0x48"),content:Qo(e,i,Qo(e,"ELEMENT_NUMBERED_LIST"))};break;case ir("0x34"):i=ir("0x28"),r={type:ir("0x48"),content:Qo(e,i,Qo(e,ir("0x3c")))};break;case ir("0x18"):i=function(t){const e=t[ir("0x2b")]();let n=e[ir("0x38")][ir("0x33")];for(;n&&e.containsItem(n);){if(n[ir("0x42")]("listIndent")>0)return!1;n=n[ir("0x40")]}return!0}(n)?Qo(e,ir("0x1b"),Qo(e,function(t){const e=t[ir("0x2b")]()[ir("0x38")][ir("0x33")];return ir("0xe")+e.getAttribute("listType")[ir("0x49")]()+ir("0x15")}(n))):Qo(e,ir("0x3a"),Qo(e,ir("0x3c"))),r={type:"format",content:i};break;case ir("0x3f"):case ir("0x4d"):!1===o[ir("0xa")]&&(i="*Merge:* %0",r={type:ir("0x19"),content:Qo(e,i,Qo(e,ir("0x3c")))})}return r})),n._suggestionFactory[ir("0x7")](ir("0x41"),ir("0x17"),ir("0x31"),(function(e,n){const o=[];for(let n of e)n.start.nodeAfter===n[ir("0x27")][ir("0x2f")]&&(n=t[ir("0xf")][ir("0x1a")](t.model[ir("0x4a")](n[ir("0x38")][ir("0x33")],0))),o.push(n);t[ir("0xf")][ir("0x26")]((e=>{const i=t[ir("0xf")][ir("0x45")][ir("0x8")],r=Array.from(i.getRanges())[ir("0x50")]((t=>s.LiveRange[ir("0x4")](t)));e.setSelection(o),t[ir("0x32")][ir("0x3b")](n.commandName)[ir("0x22")](),n.commandParams[ir("0x4c")]({forceDefaultExecution:!0}),t[ir("0x35")](n[ir("0x4b")],...n[ir("0x13")]),e[ir("0x2a")](r);for(const t of r)t[ir("0x37")]()}))}))}}const sr=["DocumentListPropertiesEditing","enableCommand","listType","listStart","handleListStartCommand","startIndex","get","handleListReversedCommand","reversed","toUpperCase","formatBlock","filter","getListTypeFromListStyleType","has","length","getAttribute","DocumentListUtils","isFirstBlockOfListItem","_getSuggestionBlocks","plugins","handleDescriptions","list.properties","model","styles","commandParams","isListItemBlock","*Format:* set order to regular","push","from","TrackChangesEditing","config","_getSuggestionBlocksForListStyle","ELEMENT_","format","_getTranslationKeyForListStyle","numbered","listStyle","type","expandListBlocksToCompleteList","change","locale","editor","getSelectedBlocks","markMultiRangeBlockFormat","replace","selection","bind","handleListStyleCommand","*Format:* set start index to %0","formatInline","_LIST_","listReversed","document"];var xr,ar;xr=sr,ar=311,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{afterInit(){if(!this[cr("0x30")].plugins[cr("0x14")](cr("0x7")))return;const t=this.editor[cr("0x25")][cr("0xd")](cr("0x1c")),e=this[cr("0x30")][cr("0x1a")][cr("0xd")]("TrackChangesEditing");t[cr("0x1e")]&&e.enableCommand(cr("0x2b"),this[cr("0x1")][cr("0x0")](this)),t.reversed&&e[cr("0x8")]("listReversed",this[cr("0xe")][cr("0x0")](this)),t[cr("0xc")]&&e[cr("0x8")](cr("0xa"),this.handleListStartCommand.bind(this)),e._descriptionFactory.registerDescriptionCallback(this.handleDescriptions[cr("0x0")](this))}[cr("0x1")](t,e={}){const n=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x24")),o=this[cr("0x26")]();this[cr("0x30")][cr("0x1d")][cr("0x2e")]((()=>{n.markMultiRangeBlockFormat(o,{commandName:cr("0x2b"),commandParams:[{type:e[cr("0x2c")]}],formatGroupId:cr("0x2b")})}))}[cr("0xe")](t,e={}){const n=this[cr("0x30")].plugins[cr("0xd")](cr("0x24")),o=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x17")),i=this[cr("0x19")]((t=>o[cr("0x20")](t)&&"numbered"===t[cr("0x16")](cr("0x9"))));null!==i&&this.editor[cr("0x1d")][cr("0x2e")]((()=>{n[cr("0x32")](i,{commandName:cr("0x5"),commandParams:[{reversed:e[cr("0xf")]}],formatGroupId:cr("0x5")})}))}[cr("0xb")](t,e={}){const n=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x24")),o=this[cr("0x30")][cr("0x1a")][cr("0xd")](cr("0x17")),i=this[cr("0x19")]((t=>o[cr("0x20")](t)&&cr("0x2a")===t.getAttribute(cr("0x9"))));null!==i&&this[cr("0x30")][cr("0x1d")][cr("0x2e")]((()=>{n[cr("0x32")](i,{commandName:cr("0xa"),commandParams:[{startIndex:e.startIndex}],formatGroupId:cr("0xa")})}))}[cr("0x1b")](t){if(cr("0x11")!=t[cr("0x2c")]&&cr("0x3")!=t[cr("0x2c")])return;const e=this[cr("0x30")][cr("0x2f")],{data:n}=t;if(!n)return;let o,i;switch(n.commandName){case cr("0x2b"):o="*Change to:* %0",i={type:"format",content:Qo(e,o,Qo(e,this[cr("0x29")](n[cr("0x1f")][0].type)))};break;case cr("0x5"):o=n.commandParams[0].reversed?"*Format:* set order to reversed":cr("0x21"),i={type:cr("0x28"),content:Qo(e,o)};break;case cr("0xa"):o=cr("0x2"),i={type:cr("0x28"),content:Qo(e,o,n[cr("0x1f")][0][cr("0xc")])}}return i}[cr("0x26")](){const t=this.editor[cr("0x1a")][cr("0xd")](cr("0x17"));let e=Array[cr("0x23")](this[cr("0x30")].model[cr("0x6")][cr("0x34")][cr("0x31")]());return e[cr("0x22")](...t[cr("0x2d")](e)),e=[...new Set(e)],e}[cr("0x19")](t){const e=this[cr("0x30")][cr("0x1a")].get(cr("0x17"));let n=Array[cr("0x23")](this[cr("0x30")][cr("0x1d")][cr("0x6")].selection[cr("0x31")]())[cr("0x12")](t);if(!n[cr("0x15")])return null;n=e.expandListBlocksToCompleteList(n);const o=[];for(const t of n)e[cr("0x18")](t)&&o.push(t);return o}_getTranslationKeyForListStyle(t){return cr("0x27")+this[cr("0x30")][cr("0x1a")][cr("0xd")]("DocumentListPropertiesUtils")[cr("0x13")](t)[cr("0x10")]()+cr("0x4")+t[cr("0x10")]()[cr("0x33")](/-/g,"_")}}var ur=n(331);const dr=["ck-suggestion-marker-split","end","fromRange","markerName","editing","TrackChangesEditing","enterBlock","data","fire","detach","bind","setSelection","document","getFirstRange","mapper","options","selection","split","unbindElementFromMarkerName","get","downcastDispatcher","createRange","parent","getFirstPosition","change","remove","markInsertion","commands","nextSibling","model","enter","removeMarker:suggestion:insertion","init","high","plugins","addMarker:suggestion:insertion"];var gr,fr;gr=dr,fr=180,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get requires(){return[ur.Enter]}[mr("0x20")](){const t=this.editor,e=t[mr("0x22")].get(mr("0x5")),n=t[mr("0x1b")][mr("0x13")](mr("0x1e"));e.enableCommand(mr("0x1e"),(()=>{t[mr("0x1d")][mr("0x18")]((o=>{const i=t[mr("0x1d")][mr("0xc")][mr("0x10")],r=i[mr("0x17")](),x=s.LiveRange[mr("0x2")](i[mr("0xd")]());if(n[mr("0x6")](o)){const n=t[mr("0x1d")].createPositionAt(r[mr("0x16")][mr("0x1c")],0),i=o[mr("0x15")](r,n);e[mr("0x1a")](i)}else o[mr("0xb")](o[mr("0x15")](x[mr("0x1")]));x[mr("0x9")](),n[mr("0x8")]("afterExecute",{writer:o})}))})),t[mr("0x4")][mr("0x14")].on(mr("0x23"),Xi(t,"split"),{priority:mr("0x21")}),t[mr("0x4")][mr("0x14")].on(mr("0x1f"),((t,e,n)=>{const o=n[mr("0xe")].markerNameToElements(e.markerName);if(o)for(const t of o)t.hasClass(mr("0x0"))&&(n[mr("0xe")][mr("0x12")](t,e[mr("0x3")]),n.writer[mr("0x19")](t))}),{priority:"high"}),t[mr("0x7")].downcastDispatcher.on(mr("0x23"),((e,n,o)=>{o[mr("0xf")].showSuggestionHighlights&&Xi(t,mr("0x11"),{showActiveMarker:!1})[mr("0xa")](this)(e,n,o)}),{priority:mr("0x21")})}}const pr=["replaceAll","item","replace","filter","FindAndReplaceUtils","findByTextCallback","has","createPositionAt","bind","end","enableCommand","get","findNext","FindAndReplaceEditing","markers","find","getIntersection","string","getMarkersGroup","handleFindCommand","suggestion:deletion","start","createRange","editor","model","_isInDeletionRange"];var br,Er;br=pr,Er=259,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{afterInit(){if(!this[_r("0x18")].plugins[_r("0x7")](_r("0xe")))return;const t=this[_r("0x18")].plugins[_r("0xc")]("TrackChangesEditing");t[_r("0xb")](_r("0x10"),this[_r("0x14")][_r("0x9")](this)),t[_r("0xb")](_r("0xd")),t[_r("0xb")]("findPrevious"),t[_r("0xb")](_r("0x3")),t[_r("0xb")](_r("0x1"))}handleFindCommand(t,e,n={}){const o=this[_r("0x18")].plugins[_r("0xc")](_r("0x5"));if(void 0!==n)return t((t=>(_r("0x12")==typeof e?o[_r("0x6")](e,n):e)(t)[_r("0x4")]((e=>!1===this._isInDeletionRange(e,t[_r("0x2")])))),n)}[_r("0x0")](t,e){const n=this[_r("0x18")].model[_r("0x17")](this.editor[_r("0x19")].createPositionAt(e,t[_r("0x16")]),this[_r("0x18")].model[_r("0x8")](e,t[_r("0xa")]));for(const t of this.editor[_r("0x19")][_r("0xf")][_r("0x13")](_r("0x15")))if(null!==n[_r("0x11")](t.getRange()))return!0;return!1}}const yr=["trim","FORMAT_FONT_SIZE","_enableDefaultAttributesIntegration","fontFamily","_registerLegacyDescription","TrackChangesEditing","has","FontSize","_descriptionFactory","fontBackgroundColor.colors","fontSize.options","FontColorEditing","config","toLowerCase","normalizeSizeOptions","find","*Reset font color*","plugins","title","fontColor","editor","label","formatInline","FontFamilyEditing","commandParams","*Reset font background color*","FORMAT_FONT_FAMILY","*Reset font size*","type","registerAttributeLabel","*Set font family:* %0","fontBackgroundColor","value","*Set font size:* %0","format","afterInit","FontBackgroundColorEditing","get","*Set font background color:* %0","commandName","fontSize","FORMAT_FONT_COLOR","locale","model"];var Cr,Ar;Cr=yr,Ar=174,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:"FontSizeEditing",commandName:kr("0x2a")},{pluginName:kr("0x19"),commandName:kr("0x5")},{pluginName:kr("0xd"),commandName:kr("0x15")},{pluginName:kr("0x26"),commandName:"fontBackgroundColor"}];class Sr extends t.Plugin{[kr("0x25")](){const t=this.editor[kr("0x0")],e=this.editor.plugins[kr("0x27")](kr("0x7"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0x16")][kr("0x13")][kr("0x8")](t)&&e[kr("0x4")](n,[n]);t.t,e._descriptionFactory[kr("0x1f")](kr("0x2a"),Qo(t,kr("0x3"))),e[kr("0xa")][kr("0x1f")](kr("0x5"),Qo(t,kr("0x1c"))),e[kr("0xa")][kr("0x1f")](kr("0x15"),Qo(t,kr("0x2b"))),e[kr("0xa")][kr("0x1f")](kr("0x21"),Qo(t,"FORMAT_FONT_BACKGROUND")),this[kr("0x6")]()}[kr("0x6")](){const t=this[kr("0x16")],e=t[kr("0x0")];t.plugins.get("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((t=>{const n=e.t;if(kr("0x18")!=t[kr("0x1e")])return;const{data:o}=t;if(null!=o){if(kr("0x2a")==o[kr("0x29")]){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=n(this[kr("0x16")][kr("0x13")].get(kr("0x9"))[kr("0x10")](this[kr("0x16")].config.get(kr("0xc"))).find((e=>e[kr("0x1")]==t))[kr("0x14")]).toLowerCase();return{type:"format",content:Qo(e,kr("0x23"),o)}}return{type:"format",content:Qo(e,kr("0x1d"))}}if("fontFamily"==o[kr("0x29")]){const t=o.commandParams[0][kr("0x22")];return t?{type:kr("0x24"),content:Qo(e,kr("0x20"),t)}:{type:kr("0x24"),content:Qo(e,"*Reset font family*")}}if("fontColor"==o.commandName){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=(0,i.normalizeColorOptions)(this[kr("0x16")][kr("0xe")][kr("0x27")]("fontColor.colors"))[kr("0x11")]((e=>e[kr("0x1")]==t));let r=t,s="";return o&&(r=o[kr("0x17")],s=n(r)[kr("0xf")]()),{type:kr("0x24"),content:Qo(e,"*Set font color:* %0",s)[kr("0x2")](),color:{value:t,title:s||r}}}return{type:"format",content:Qo(e,kr("0x12"))}}if("fontBackgroundColor"==o[kr("0x29")]){const t=o[kr("0x1a")][0][kr("0x22")];if(t){const o=(0,i.normalizeColorOptions)(this.editor[kr("0xe")].get(kr("0xb")))[kr("0x11")]((e=>e[kr("0x1")]==t));let r=t,s="";return o&&(r=o[kr("0x17")],s=n(r)[kr("0xf")]()),{type:kr("0x24"),content:Qo(e,kr("0x28"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x24"),content:Qo(e,kr("0x1b"))}}}}))}}const Rr=["push","*Set format to:* %0","copyFormat","TrackChangesEditing","join","afterInit","fontSize.options","_registerLegacyDescription","formatInline","formatBlock","get","split","toLowerCase","editor","fontSize","locale","find","config","title","fontColor.colors","registerDescriptionCallback","length","toUpperCase","plugins","fontColor","entries","enableCommand","*Remove all formatting*","boolean","commands","model","_descriptionFactory","commandParams","pasteFormat","normalizeSizeOptions"];var Nr,vr;Nr=Rr,vr=421,function(t){for(;--t;)Nr.push(Nr.shift())}(++vr);const Lr=function(t,e){return Rr[t-=0]};class Mr extends t.Plugin{[Lr("0x4")](){const t=this[Lr("0xc")],e=t[Lr("0x16")][Lr("0x9")]("TrackChangesEditing"),n=t[Lr("0x1c")][Lr("0x9")](Lr("0x1")),o=t.commands[Lr("0x9")](Lr("0x20"));n&&o&&(e._enableDefaultAttributesIntegration(Lr("0x20")),e[Lr("0x19")](Lr("0x1")),this[Lr("0x6")]())}[Lr("0x6")](){const t=this[Lr("0xc")],e=t[Lr("0xe")];t[Lr("0x16")][Lr("0x9")](Lr("0x2"))[Lr("0x1e")][Lr("0x13")]((n=>{if(Lr("0x8")!=n.type&&Lr("0x7")!=n.type)return;const{data:o}=n;if(o&&"pasteFormat"===o.commandName){const n=[],i=o[Lr("0x1f")][0];for(const[e,o]of Object[Lr("0x18")](i))n[Lr("0x22")](wr(t,e,o));return n[Lr("0x14")]?{type:"format",content:Qo(e,Lr("0x0"),n[Lr("0x3")](", "))}:{type:"format",content:Qo(e,Lr("0x1a"))}}}))}}function wr(t,e,n){const o=t[Lr("0xe")].t,r=e[Lr("0xa")](/(?=[A-Z])/)[Lr("0x3")](" "),s=o(r.charAt(0)[Lr("0x15")]()+r.slice(1))[Lr("0xb")]();if(Lr("0x1b")==typeof n)return s;if(Lr("0x17")===e||"fontBackgroundColor"===e){const e=(0,i.normalizeColorOptions)(t[Lr("0x10")][Lr("0x9")](Lr("0x12")))[Lr("0xf")]((t=>t.model==n));return s+" ("+(e?o(e.label).toLowerCase():n)+")"}if(Lr("0xd")===e&&isNaN(parseFloat(n))){const e=t[Lr("0x16")][Lr("0x9")]("FontSize")[Lr("0x21")](t[Lr("0x10")].get(Lr("0x5"))).find((t=>t[Lr("0x1d")]==n));return s+" ("+(e?o(e[Lr("0x11")])[Lr("0xb")]():n)+")"}return s+" ("+n+")"}const Or=["commandName","match","plugins","model","type","_headingOptions","paragraph","registerDescriptionCallback","_descriptionFactory","_getHeadingLevel","get","value","registerElementLabel","*Change to:* %0","_registerLegacyDescription","TrackChangesEditing","view","_enableDefaultAttributesIntegration","has","format","commandParams","locale","ELEMENT_HEADING","find","editor","ELEMENT_HEADING_CUSTOM","heading.options","name","heading","title"];var Fr,Dr;Fr=Or,Dr=126,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{afterInit(){const t=this.editor;if(!t[Br("0x1a")][Br("0xc")]("HeadingEditing"))return;this[Br("0x1d")]=t.config[Br("0x4")](Br("0x14"));const e=t[Br("0xf")],n=t[Br("0x1a")].get("TrackChangesEditing");n[Br("0xb")](Br("0x16"));for(const t of this[Br("0x1d")])Br("0x0")!=t[Br("0x1b")]&&n._descriptionFactory[Br("0x6")](t.model,(n=>{const o=this._getHeadingLevel(t[Br("0x1b")]);return null!==o?(s=n,x=o,Qo(e,Br("0x10"),[s,x])):(i=n,r=t[Br("0x17")],Qo(e,Br("0x13"),[i,r]));var i,r,s,x}));this[Br("0x8")]()}[Br("0x8")](){const t=this[Br("0x12")],e=t[Br("0xf")];t[Br("0x1a")][Br("0x4")](Br("0x9"))[Br("0x2")][Br("0x1")]((t=>{if("formatBlock"!=t[Br("0x1c")])return;const{data:n}=t;if(n&&"heading"==n[Br("0x18")]){const t=n[Br("0xe")][0][Br("0x5")],s=this[Br("0x3")](t);if(null!==s)return{type:Br("0xd"),content:Qo(e,"*Change to:* %0",(1,r=s,Qo(e,"ELEMENT_HEADING",[1,r])))};const x=this._headingOptions[Br("0x11")]((e=>e.model===t))[Br("0x17")];return{type:"format",content:Qo(e,Br("0x7"),(o=1,i=x,Qo(e,"ELEMENT_HEADING_CUSTOM",[o,i])))}}var o,i,r}))}[Br("0x3")](t){var e,n;const o=t[Br("0x19")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e.find((e=>e[Br("0x1b")]==t));if(i&&i[Br("0xa")]){const t=i[Br("0xa")],e=(null!==(n=t[Br("0x15")])&&void 0!==n?n:t)[Br("0x19")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["*Set highlight:* %0","toLowerCase","HighlightEditing","FORMAT_HIGHLIGHT","TrackChangesEditing","commandName","editor","format","config","color","_registerLegacyDescription","registerDescriptionCallback","type","title","_descriptionFactory","get","*Remove highlight*","find","highlight","_enableDefaultAttributesIntegration","plugins","registerAttributeLabel","has","locale","value","formatInline","afterInit"];var jr,Gr;jr=Ur,Gr=176,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0xc")](){const t=this[Vr("0x13")];if(!t[Vr("0x6")][Vr("0x8")](Vr("0xf")))return;const e=t[Vr("0x6")][Vr("0x1")](Vr("0x11")),n=t.locale;e[Vr("0x5")](Vr("0x4"),[Vr("0x4")]),e[Vr("0x0")][Vr("0x7")](Vr("0x4"),Qo(n,Vr("0x10"))),this[Vr("0x17")]()}[Vr("0x17")](){const t=this[Vr("0x13")],e=t[Vr("0x9")];t[Vr("0x6")][Vr("0x1")](Vr("0x11"))[Vr("0x0")][Vr("0x18")]((n=>{if(Vr("0xb")!=n[Vr("0x19")])return;const{data:o}=n;if(o&&Vr("0x4")==o[Vr("0x12")]){const n=e.t,i=o.commandParams[0][Vr("0xa")];if(i){const o=t[Vr("0x15")][Vr("0x1")]("highlight.options")[Vr("0x3")]((t=>t.model==i)),r=n(o[Vr("0x1a")])[Vr("0xe")]();return{type:Vr("0x14"),content:Qo(e,Vr("0xd"),r),color:{value:o[Vr("0x16")],title:o[Vr("0x1a")]}}}return{type:Vr("0x14"),content:Qo(e,Vr("0x2"),Qo(e,Vr("0x10")))}}}))}}const zr=["conversion","div","createEmptyElement","for","registerElementLabel","plugins","TrackChangesEditing","high","createPositionAt","editor","horizontalLine","locale","get","addClass","enableCommand","insert","ELEMENT_HORIZONTAL_LINE","ck-horizontal-line","showSuggestionHighlights","afterInit","HorizontalLineEditing"];var Wr,Kr;Wr=zr,Kr=132,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class $r extends t.Plugin{[qr("0xd")](){const t=this[qr("0x3")];if(!t.plugins.has(qr("0xe")))return;t[qr("0x14")][qr("0x6")](qr("0x0"))[qr("0x8")](qr("0x4"));const e=t.plugins[qr("0x6")](qr("0x0")),n=t[qr("0x5")];e._descriptionFactory[qr("0x13")](qr("0x4"),(t=>Qo(n,qr("0xa"),t))),t[qr("0xf")][qr("0x12")]("dataDowncast").elementToStructure({model:qr("0x4"),view:(t,{writer:e,options:n})=>{if(!n[qr("0xc")])return null;const o=e.createContainerElement(qr("0x10")),i=e[qr("0x11")]("hr");return e[qr("0x7")](qr("0xb"),o),e[qr("0x9")](e[qr("0x2")](o,0),i),o},converterPriority:qr("0x1")})}}const Xr=["ELEMENT_HTML_EMBED","element","plugins","commandName","*Change %0 content*","_enableDefaultAttributesIntegration","registerDescriptionCallback","rawHtml","HtmlEmbed","format","editor","has","htmlEmbed","_registerLegacyDescription","_descriptionFactory","getFirstRange","attribute","afterInit","registerElementLabel","formatBlock","type","get","value","locale","TrackChangesEditing"];var Zr,Yr;Zr=Xr,Yr=291,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return Xr[t-=0]};class Qr extends t.Plugin{[Jr("0x1")](){const t=this[Jr("0x13")];if(!t[Jr("0xb")][Jr("0x14")](Jr("0x11")))return;const e=t[Jr("0xb")][Jr("0x5")](Jr("0x8")),n=t[Jr("0x7")];e[Jr("0x17")][Jr("0x2")](Jr("0x10"),(t=>Qo(n,Jr("0x9"),t))),e[Jr("0xe")](Jr("0x15"),[],[Jr("0x6")]),e[Jr("0x17")].registerDescriptionCallback((t=>{if(Jr("0x0")!=t[Jr("0x4")])return;const{data:e}=t;if(e&&Jr("0x6")==e.key&&t[Jr("0x18")]().start.nodeAfter.is(Jr("0xa"),Jr("0x10"))){const t=Qo(n,Jr("0x9"));return{type:Jr("0x12"),content:Qo(n,Jr("0xd"),t)}}})),this[Jr("0x16")]()}_registerLegacyDescription(){const t=this.editor,e=t.locale;t[Jr("0xb")][Jr("0x5")](Jr("0x8"))[Jr("0x17")][Jr("0xf")]((t=>{if(Jr("0x3")!=t.type)return;const{data:n}=t;if(n&&Jr("0x15")==n[Jr("0xc")]){const t=Qo(e,"ELEMENT_HTML_EMBED");return{type:Jr("0x12"),content:Qo(e,Jr("0xd"),t)}}}))}}const ts=["ImageEditing","registerCustomCallback","formatBlock","ImageCaptionEditing","resizedWidth","isEqual","imageStylePreApply","*Set image text alternative:* %0","attribute","findIndex","*Reset image width*","FORMAT_IMAGE_SIZE","getFirstRange","afterInit","length","insertion","_findSuggestions","*Remove image text alternative*","end","TrackChangesEditing","_registerLegacyDescription","start","caption","markDeletion","document","_enableDefaultAttributesIntegration","removeObject","formatInline","ImageInlineEditing","convertBlockImageToInline","Inline image to block image","ELEMENT_IMAGE","createRangeOn","_descriptionFactory","discard","accept","ImageUploadEditing","imageTypeInline","getNearestSelectionRange","nodeBefore","addObject","markBlockFormat","change","has","schema","newValue","imageTextAlternative","selection","subType","filter","detach","createRange","format","isCollapsed","fromPosition","markInsertion","model","registerDescriptionCallback","toNext","type","getCaptionFromImageModelElement","enableCommand","alt","ImageResize","commandName","imageCaption","get","editor","resizeImage","uploadImage","_suggestionFactory","chain","isBlockImage","element","registerElementLabel","getClosestSelectedImageElement","commandParams","getSuggestionCallback","toggleImageCaption","getContainedElement","isOwn","locale","isBefore","forceDefaultExecution","insertImage","join","ImageCaptionUtils","imageInline","plugins","toPrevious","convertInlineImageToBlock","ImageUtils"];var es,ns;es=ts,ns=181,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x10")](){const t=this[os("0x46")];if(!t.plugins[os("0x2e")](os("0x3")))return;const e=t.plugins.get(os("0x16")),n=t.plugins.get(os("0x2")),o=t[os("0x54")];e[os("0x40")](os("0x57")),e[os("0x24")][os("0x4d")]("imageBlock",(t=>Qo(o,os("0x22"),t))),e._descriptionFactory[os("0x4d")](os("0x5a"),(t=>Qo(o,"ELEMENT_INLINE_IMAGE",t))),e[os("0x24")][os("0x4d")](os("0x19"),(()=>Qo(o,"ELEMENT_CAPTION"))),t[os("0x5b")][os("0x2e")](os("0x27"))&&e[os("0x40")](os("0x48")),t[os("0x5b")][os("0x2e")]("ImageBlockEditing")&&t[os("0x5b")][os("0x2e")](os("0x1f"))&&(e.enableCommand(os("0x28"),((o,i)=>{const r=n.getClosestSelectedImageElement(t[os("0x3b")][os("0x1b")][os("0x32")]);t.model.change((()=>{e[os("0x2c")](r,{commandName:os("0x28"),commandParams:[i]},[],os("0x20"))}))})),e.enableCommand("imageTypeBlock",((o,i)=>{t.model.change((r=>{let x=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),a=r[os("0x23")](x);const c=s.LivePosition[os("0x39")](a[os("0x18")],os("0x0")),l=s.LivePosition[os("0x39")](a[os("0x15")],os("0x3d"));e[os("0x56")]((()=>o(i))),x=n[os("0x4e")](t.model.document[os("0x32")]),a=r.createRangeOn(x);const u=r[os("0x36")](c,l);c.detach(),l[os("0x35")](),e[os("0x2c")](x,{commandName:os("0x28"),commandParams:[i]},[],os("0x1")),u.start[os("0x55")](a[os("0x18")])&&e.markInsertion(r[os("0x36")](u[os("0x18")],a[os("0x18")]),"convertInlineImageToBlock"),a[os("0x15")][os("0x55")](u[os("0x15")])&&e[os("0x3a")](r[os("0x36")](a[os("0x15")],u[os("0x15")]),os("0x1"))}))})),e[os("0x49")][os("0x4")]("formatBlock",os("0x1"),os("0x58"),(()=>!1)),e[os("0x49")].registerCustomCallback("formatBlock",os("0x1"),os("0x26"),(()=>!1)),e[os("0x49")][os("0x4")](os("0x5"),os("0x1"),os("0x25"),e._suggestionFactory[os("0x50")](os("0x5"),"",os("0x26"))),e[os("0x49")][os("0x4")](os("0x12"),os("0x1"),os("0x58"),(()=>!1)),e[os("0x49")][os("0x4")]("insertion","convertInlineImageToBlock",os("0x25"),(([n])=>{const o=e[os("0x49")][os("0x50")](os("0x12"),"",os("0x25"));let i=n[os("0x18")],r=n.end;const s=t[os("0x3b")][os("0x2f")].getNearestSelectionRange(i,"backward"),x=t.model[os("0x2f")][os("0x29")](r,"forward");s[os("0x38")]&&(i=s[os("0x18")]),x[os("0x38")]&&(r=x.end),o([t[os("0x3b")][os("0x36")](i,r)])})),e._suggestionFactory[os("0x4")](os("0x5"),os("0x1"),os("0x4a"),x),e[os("0x49")][os("0x4")](os("0x12"),os("0x1"),os("0x4a"),x)),t.plugins[os("0x2e")](os("0x6"))&&(e[os("0x40")](os("0x51"),((o,i)=>{const r=t[os("0x5b")][os("0x45")](os("0x59"));let s=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),x=r[os("0x3f")](s);t[os("0x3b")][os("0x2d")]((()=>{if(x)return void e[os("0x1a")](t[os("0x3b")][os("0x23")](x));const a=n[os("0x4b")](s);o(i),s=n[os("0x4e")](t[os("0x3b")][os("0x1b")][os("0x32")]),x=r[os("0x3f")](s),e[os("0x3a")](t[os("0x3b")][os("0x23")](x),a?null:os("0x44"))}))})),e[os("0x49")][os("0x4")](os("0x12"),os("0x44"),os("0x4a"),x));const i=[{type:os("0x5"),subType:os("0x9")},{type:os("0x12"),subType:os("0x44")},{type:os("0x5"),subType:"convertInlineImageToBlock"},{type:os("0x12"),subType:"convertInlineImageToBlock"}];function r(t,o){const r=i[os("0xc")]((({type:e,subType:n})=>t[os("0x3e")]==e&&t[os("0x33")]==n)),s=i[os("0xc")]((({type:t,subType:e})=>o.type==t&&o[os("0x33")]==e));if(r<0||s<0)return!1;const x=t[os("0xf")](),a=o.getFirstRange();if((0==r||1==r)&&2==s&&x.isIntersecting(a))return!0;if(2==r&&3==s){const t=e[os("0x13")](x,os("0x12"))[os("0x34")]((({suggestion:t,meta:e})=>e[os("0x53")]&&os("0x1")==t[os("0x33")]));if(t[os("0x11")]>1&&a.end[os("0x8")](x.start))return!0;if(1==t.length&&(x.start.isEqual(a.end)||x[os("0x15")][os("0x8")](a[os("0x18")])))return!0}if(3==r&&3==s&&x[os("0x18")][os("0x55")](a.start)){const t=x.end.nodeAfter,e=a[os("0x18")][os("0x2a")];return n.isBlockImage(t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x5b")][os("0x2e")](os("0x42"))&&(e[os("0x1c")]("resizeImage",[],[os("0x7")]),e._descriptionFactory.registerAttributeLabel(os("0x7"),Qo(o,os("0xe")))),t.plugins[os("0x2e")]("ImageTextAlternativeEditing")&&e[os("0x1c")](os("0x31"),[],[os("0x41")]),e[os("0x24")].registerDescriptionCallback((t=>{if(i.find((({type:e,subType:n})=>t[os("0x3e")]==e&&t[os("0x33")]==n)))return t.previous?{}:void 0})),e[os("0x24")][os("0x3c")]((t=>{if(os("0x12")==t[os("0x3e")]||"deletion"==t[os("0x3e")]){const e=t[os("0x52")]();if(e&&e.is(os("0x4c"),os("0x19")))return{type:"insertion"==t.type?os("0x2b"):os("0x1d"),element:e,quantity:1}}})),e._descriptionFactory.registerDescriptionCallback((t=>os("0x5")==t[os("0x3e")]&&os("0x1")==t.subType?{type:os("0x37"),content:os("0x21")}:os("0x5")==t[os("0x3e")]&&"convertBlockImageToInline"==t[os("0x33")]?{type:os("0x37"),content:"Block image to inline image"}:void 0)),e[os("0x24")][os("0x3c")]((t=>{if(os("0xb")!=t[os("0x3e")])return;const{data:e}=t;if(!e||os("0x41")!=e.key)return;const n=e[os("0x30")];return n?{type:os("0x37"),content:Qo(o,os("0xa"),'"'+n+'"')}:{type:os("0x37"),content:Qo(o,os("0x14"))}})),this[os("0x17")]()}[os("0x17")](){const t=this[os("0x46")],e=t.locale;t[os("0x5b")][os("0x45")](os("0x16"))[os("0x24")].registerDescriptionCallback((t=>{if(os("0x5")!=t[os("0x3e")]&&os("0x1e")!=t.type)return;const{data:n}=t;if(n){if(os("0x31")==n[os("0x43")]){const t=n.commandParams[0][os("0x30")];return t?{type:os("0x37"),content:Qo(e,os("0xa"),'"'+t+'"')}:{type:os("0x37"),content:Qo(e,os("0x14"))}}if(os("0x47")==n[os("0x43")]){const t=n[os("0x4f")][0].width;return t?{type:os("0x37"),content:Qo(e,"*Set image width:* %0",t)}:{type:os("0x37"),content:Qo(e,os("0xd"))}}}}))}}const rs=["commandName","newValue","has","editor","format","_descriptionFactory","formatBlock","key","*Replace image URL*","replaceImageSource","src","_suggestionFactory","TrackChangesEditing","getSuggestionCallback","type","_handleLegacySuggestions","attribute","registerDescriptionCallback","_enableDefaultAttributesIntegration","accept","get","plugins","afterInit","locale","registerCustomCallback","_registerLegacyDescription"];var ss,xs;ss=rs,xs=375,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0xb")](){if(!this[as("0x12")][as("0xa")][as("0x11")]("ImageEditing"))return;const t=this[as("0x12")][as("0xc")],e=this[as("0x12")][as("0xa")][as("0x9")](as("0x1"));e[as("0x7")](as("0x18"),[],[as("0x19")]),e[as("0x14")][as("0x6")]((e=>{if(as("0x5")!=e[as("0x3")])return;const{data:n}=e;return n&&as("0x19")==n[as("0x16")]?n[as("0x10")]&&n.oldValue?{type:"format",content:Qo(t,as("0x17"))}:{type:as("0x13"),content:""}:void 0})),this[as("0x4")]()}[as("0x4")](){const t=this[as("0x12")][as("0xa")].get(as("0x1"));t._suggestionFactory[as("0xd")]("formatBlock",as("0x18"),as("0x8"),t[as("0x0")][as("0x2")](as("0x15"),null,"discard")),t[as("0x0")][as("0xd")](as("0x15"),as("0x18"),"discard",t[as("0x0")][as("0x2")](as("0x15"),null,as("0x8"))),this._registerLegacyDescription()}[as("0xe")](){const t=this[as("0x12")],e=t[as("0xc")];t[as("0xa")].get(as("0x1"))[as("0x14")][as("0x6")]((t=>{if(as("0x15")!=t[as("0x3")]&&"formatInline"!=t[as("0x3")])return;const{data:n}=t;return n&&as("0x18")===n[as("0xf")]?{type:as("0x13"),content:Qo(e,as("0x17"))}:void 0}))}}const ls=["name","getSuggestionCallback","TrackChangesEditing","isIntersecting","newRange","next","_registerLegacyDescription","registerDescriptionCallback","commandReversedParams","getFirstRange","formatInline","head","markBlockFormat","imageCaption","findIndex","createRangeOn","subType","markInlineFormat","convertInlineImageToBlock","discard","value","differ","ImageStyleEditing","format","getSuggestion","getSuggestions","registerPostFixer","isOwn","change","suggestion","getClosestSelectedImageElement","locale","afterInit","forEach","toLowerCase","_suggestionFactory","nodeAfter","insertion","discardSuggestion","Users","setImageNaturalSizeAttributes","_descriptionFactory","hasSuggestion","isEqual","isInContent","imageStylePreApply","length","commandParams","registerCustomCallback","imageStylePostApply","formatBlock","normalizedStyles","get","start","join","filter","commands","document","end","selection","side","getChangedMarkers","model","plugins","getContainedElement","type","accept","commandName","editor","refresh","_splitMarkerName","has","shouldConvertImageType","imageStyle","from","author","isBlockImage"];var us,ds;us=ls,ds=404,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{[gs("0xd")](){const t=this[gs("0x31")];if(!t[gs("0x2c")][gs("0x34")](gs("0x3")))return;const n=t[gs("0x2c")][gs("0x21")](gs("0x3c")),o=t[gs("0x2c")][gs("0x21")]("ImageUtils"),i={};n.enableCommand(gs("0x36"),((i,r)=>{const s=t[gs("0x2c")][gs("0x21")](gs("0x14")).me,x=t[gs("0x25")][gs("0x21")](gs("0x36"));let a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")].selection),c=t[gs("0x2b")][gs("0x49")](a),l=x.value;if(l==r[gs("0x1")])return;const u={commandName:gs("0x36"),commandParams:[r],formatGroupId:(0,e.uid)()};t.model[gs("0x9")]((()=>{if(n[gs("0x6")]()[gs("0x24")]((t=>t[gs("0x19")]&&s==t[gs("0x38")]&&(gs("0x1f")==t[gs("0x2e")]||gs("0x44")==t.type)&&("imageStylePreApply"==t[gs("0x4a")]||gs("0x1e")==t[gs("0x4a")])&&t[gs("0x43")]()[gs("0x18")](c)))[gs("0xe")]((t=>n.discardSuggestion(t[gs("0x45")]))),a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")].selection),c=t[gs("0x2b")][gs("0x49")](a),x[gs("0x32")](),t[gs("0x25")][gs("0x21")]("imageTypeInline")[gs("0x32")](),t.commands.get("imageTypeBlock")[gs("0x32")](),l=x[gs("0x1")],l!=r[gs("0x1")])return o.isInlineImage(a)&&x[gs("0x35")](r[gs("0x1")],a)?(i({...r,setImageSizes:!1}),a=o[gs("0xb")](t[gs("0x2b")][gs("0x26")][gs("0x28")]),void n.markBlockFormat(a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x1a"))):void(o.isBlockImage(a)?n[gs("0x46")](a,u,[],"imageStylePostApply"):n[gs("0x4b")](c,u,gs("0x1e")))}))}));for(const e of t.plugins[gs("0x21")](gs("0x3"))[gs("0x20")])i[e[gs("0x3a")]]=e.title[gs("0xf")]();n[gs("0x10")].registerCustomCallback(gs("0x1f"),gs("0x1a"),gs("0x23"),(()=>!1)),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1e"),"join",(()=>!1)),n._suggestionFactory.registerCustomCallback("formatInline",gs("0x1e"),gs("0x23"),(()=>!1)),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),gs("0x2f"),(([t])=>{o[gs("0x15")](t[gs("0x2d")]())})),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),gs("0x0"),((t,e)=>{n._suggestionFactory[gs("0x3b")]("formatBlock","",gs("0x2f"))(t,{commandName:e[gs("0x30")],commandParams:e[gs("0x42")]})})),n[gs("0x10")][gs("0x1d")](gs("0x1f"),gs("0x1a"),"chain",(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x1f"),subType:gs("0x1a")},{type:gs("0x12"),subType:gs("0x47")},{type:gs("0x1f"),subType:gs("0x4c")},{type:gs("0x12"),subType:gs("0x4c")}];function s(t,e){const i=r.findIndex((({type:e,subType:n})=>t[gs("0x2e")]==e&&t[gs("0x4a")]==n)),s=r[gs("0x48")]((({type:t,subType:n})=>e[gs("0x2e")]==t&&e.subType==n));if(i<0||s<0)return!1;const x=t[gs("0x43")](),a=e[gs("0x43")]();if((0==i||1==i)&&2==s&&x[gs("0x3d")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x12"))[gs("0x24")]((({suggestion:t,meta:e})=>e[gs("0x8")]&&gs("0x4c")==t[gs("0x4a")]));if(t.length>1&&a[gs("0x27")][gs("0x18")](x[gs("0x22")]))return!0;if(1==t[gs("0x1b")]&&(x.start[gs("0x18")](a.end)||x[gs("0x27")][gs("0x18")](a.start)))return!0}if(3==i&&3==s&&x[gs("0x22")].isBefore(a[gs("0x22")])){const t=x[gs("0x27")][gs("0x11")],e=a.start.nodeBefore;return o[gs("0x39")](t)&&t===e}return!1}t[gs("0x2b")][gs("0x26")][gs("0x7")]((()=>{let e=!1;const i=Array[gs("0x37")](t[gs("0x2b")][gs("0x26")][gs("0x2")][gs("0x2a")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x33")](t);if(gs("0xa")==i&&n[gs("0x17")](a)){if(gs("0x1f")==s&&(gs("0x1a")==x||gs("0x1e")==x)){const t=n[gs("0x5")](a);if(r[gs("0x3e")]){const i=t[gs("0x43")]()[gs("0x2d")]();if(o[gs("0x39")](i))continue;n[gs("0x13")](t),e=!0}}if(gs("0x12")==s&&gs("0x47")==x&&!r.newRange){const t=n.getSuggestion(a);t[gs("0x3f")]&&t[gs("0x3f")][gs("0x19")]&&(n.discardSuggestion(t[gs("0x3f")]),e=!0)}}}return e})),this[gs("0x40")](i)}[gs("0x40")](t){const e=this.editor,n=e[gs("0xc")];e[gs("0x2c")].get("TrackChangesEditing")[gs("0x16")][gs("0x41")]((e=>{if(gs("0x1f")!=e.type&&"formatInline"!=e[gs("0x2e")])return;const{data:o}=e;if(!o||gs("0x36")!=o[gs("0x30")])return;const i=o[gs("0x1c")][0].value;return r=gs("0x29")===i?Qo(n,"FORMAT_SIDE_IMAGE"):t[i]||i,{type:gs("0x4"),content:Qo(n,"*Format:* %0",r)};var r}))}}const ms=["track_changes","_handleImportedData","importWord","get","_trackChangesValueDuringImport","_trackChangesExecuted","enableCommand","bind","value","listenTo","forEach","execute","_setSuggestionData","Users","high","lowest","commands","dataInsert","editor","afterInit","plugins"];var hs,ps;hs=ms,ps=318,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x1")]=!1,this[bs("0x2")]=!1}[bs("0x10")](){const t=this[bs("0xf")],e=t[bs("0xd")][bs("0x0")](bs("0x14")),n=t[bs("0xd")].get("trackChanges");e&&(e.on(bs("0x8"),((t,[,e])=>{this[bs("0x1")]=n[bs("0x5")],e.collaboration_features[bs("0x12")]=!this[bs("0x1")]}),{priority:bs("0xb")}),this.listenTo(e,bs("0xe"),this[bs("0x13")][bs("0x4")](this)),this[bs("0x6")](e,bs("0xe"),(()=>{this._trackChangesExecuted&&(n[bs("0x8")](),this[bs("0x2")]=!1)}),{priority:bs("0xc")}),t[bs("0x11")][bs("0x0")]("TrackChangesEditing")[bs("0x3")](bs("0x14")))}_handleImportedData(t,e){const{suggestions:n}=e,o=this.editor.commands[bs("0x0")]("trackChanges"),i=o[bs("0x5")];this[bs("0x1")]!==i&&(o[bs("0x8")](),this[bs("0x2")]=!0),n&&n[bs("0x7")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0xf")].plugins[bs("0x0")](bs("0xa")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this[bs("0xf")].plugins.get("TrackChangesEditing")[bs("0x9")](i)}))}}const _s=["plugins","_registerLegacyDescription","indentBlock","_registerBlockAttribute","commandName","afterInit","IndentEditing","format","has","FORMAT_INDENT","_enableDefaultAttributesIntegration","outdentBlock","IndentBlock","blockIndent","registerAttributeLabel","_descriptionFactory","type","locale","indent","*Outdent:* %0","outdent","TrackChangesEditing","get","enableCommand","formatBlock"];var Ts,ys;Ts=_s,ys=451,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x4")](){const t=this.editor,e=t[Cs("0x18")][Cs("0x15")](Cs("0x14"));if(t[Cs("0x18")][Cs("0x7")](Cs("0x5"))&&(e[Cs("0x16")](Cs("0x11")),e[Cs("0x16")](Cs("0x13"))),t[Cs("0x18")][Cs("0x7")](Cs("0xb")))for(const t of["indentBlock","outdentBlock"])e[Cs("0x9")](t);const n=t.locale;e[Cs("0x2")](Cs("0xc")),e[Cs("0xe")][Cs("0xd")](Cs("0xc"),Qo(n,Cs("0x8"))),this[Cs("0x0")]()}_registerLegacyDescription(){const t=this.editor,e=t[Cs("0x10")],n=t[Cs("0x18")][Cs("0x15")](Cs("0x14"));n[Cs("0xe")].registerDescriptionCallback((t=>{if(Cs("0x17")!=t[Cs("0xf")])return;const{data:o}=t;if(!o)return;if(Cs("0x1")!=o[Cs("0x3")]&&Cs("0xa")!=o[Cs("0x3")])return;const i=t.getItems()[0],r=n._descriptionFactory.getItemLabel(i);return"indentBlock"==o[Cs("0x3")]?{type:Cs("0x6"),content:Qo(e,"*Indent:* %0",r)}:Cs("0xa")==o[Cs("0x3")]?{type:"format",content:Qo(e,Cs("0x12"),r)}:void 0}))}}var ks,Is,Ss=["init","editor","TrackChangesEditing","requires"];ks=Ss,Is=168,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Rs=function(t,e){return Ss[t-=0]};class Ns extends t.Plugin{static get[Rs("0x3")](){return[Hi.Input]}[Rs("0x0")](){this[Rs("0x1")].plugins.get(Rs("0x2")).enableCommand("input")}}const vs=["_enableDefaultAttributesIntegration","editor","link (","type","TrackChangesEditing","has","registerDescriptionCallback","get","_registerLegacyDescription","plugins","map","_descriptionFactory","formatInline","format","commandName","attribute","label","commands","newValue","link","afterInit","linkHref","registerAttributeLabel","*Set link:* %0","commandParams","unlink","locale","toLowerCase","*Remove link*","manualDecorators"];var Ls,Ms;Ls=vs,Ms=272,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return vs[t-=0]};class Os extends t.Plugin{[ws("0x12")](){const t=this[ws("0x1d")];if(!t.plugins[ws("0x3")]("LinkEditing"))return;const e=t[ws("0x7")][ws("0x5")](ws("0x2")),n=t[ws("0xf")][ws("0x5")](ws("0x11"));e[ws("0x1c")](ws("0x11"),[ws("0x13"),...n.manualDecorators[ws("0x8")]((t=>t.id))]),e[ws("0x1c")](ws("0x17"));for(const t of n[ws("0x1b")])e[ws("0x9")][ws("0x14")](t.id,ws("0x0")+t[ws("0xe")][ws("0x19")]()+")");e[ws("0x9")][ws("0x4")]((e=>{if(ws("0xd")!=e[ws("0x1")])return;const{data:n}=e;if(!n||ws("0x13")!=n.key)return;const o=n[ws("0x10")],i=t[ws("0x18")];return{type:ws("0xb"),content:o?Qo(i,"*Set link:* %0",'"'+o+'"'):Qo(i,ws("0x1a"))}})),this[ws("0x6")]()}[ws("0x6")](){const t=this[ws("0x1d")],e=t[ws("0x18")];t[ws("0x7")].get("TrackChangesEditing")[ws("0x9")][ws("0x4")]((t=>{if(ws("0xa")!=t.type)return;const{data:n}=t;if(n){if(ws("0x11")==n[ws("0xc")]){const t=n[ws("0x16")][0];return{type:ws("0xb"),content:Qo(e,ws("0x15"),'"'+t+'"')}}return ws("0x17")==n.commandName?{type:ws("0xb"),content:Qo(e,"*Remove link*")}:void 0}}))}}const Fs=["todoListChecked","editor","numbered","end","ELEMENT_LIST_ITEM","*Change to:* %0","model","*Check item*","commands","checkChild","filter","execute","from","length","indentList","List","get","*Uncheck item*","nextSibling","checkTodoList","push","markBlockFormat","value","ListEditing","numberedList","*Outdent:* %0","isObject","slice","enableCommand","schema","registerDescriptionCallback","_selectedElements","formatBlock","document","formatInline","commandParams","todoList","createRange","add","_descriptionFactory","TrackChangesEditing","previousSibling","ELEMENT_TODO_LIST","ELEMENT_BULLETED_LIST","has","before","change","format","paragraph","plugins","outdentList","bulletedList","getAttribute","selection","listIndent","listItem","type","listType","createPositionAt","element","forceValue","TodoListEditing","todo","locale","commandName","getSelectedBlocks"];var Ds,Bs;Ds=Fs,Bs=319,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{afterInit(){const t=this[Ps("0xc")],e=t[Ps("0x8")];if(!t.plugins[Ps("0x37")](Ps("0x22")))return;const n=t[Ps("0x3c")][Ps("0x1b")](Ps("0x33")),o=t[Ps("0x3c")][Ps("0x37")](Ps("0x6"));function i(e){return()=>{const o=t[Ps("0x11")].document[Ps("0x40")],i=t.commands[Ps("0x1b")](e);if(i[Ps("0x21")])return void t[Ps("0x16")](Ps("0x3b"),{});const r=e[Ps("0x26")](0,-4),s=function(t,e,n){let o=Array[Ps("0x17")](t)[Ps("0x15")]((t=>{return e=t,(o=n)[Ps("0x14")](e.parent,Ps("0x0"))&&!o[Ps("0x25")](e);var e,o}));o=o.filter((t=>!t.is(Ps("0x4"),"listItem")||t[Ps("0x3f")](Ps("0x2"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x4"),Ps("0x0"))?i[Ps("0x31")](js(t)):i.add(t);return Array[Ps("0x17")](i)}(o[Ps("0xa")](),r,t[Ps("0x11")][Ps("0x28")]);t[Ps("0x11")][Ps("0x39")]((()=>{for(const t of s)n[Ps("0x20")](t,{commandName:e,commandParams:[{forceValue:!i[Ps("0x21")]}],formatGroupId:"blockName"},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x17")](t);const n=e.findIndex((t=>Ps("0x0")!=t.name));return n>-1&&(e=e[Ps("0x26")](0,n)),e}(t.model[Ps("0x2c")][Ps("0x40")].getSelectedBlocks()),i=t.model[Ps("0x30")](t[Ps("0x11")][Ps("0x3")](o[0],Ps("0x38")),t[Ps("0x11")][Ps("0x3")](o[o[Ps("0x18")]-1],Ps("0xe")));t[Ps("0x11")].change((()=>{n.markBlockFormat(i,{commandName:e,commandParams:[],formatGroupId:Ps("0x41")},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x1d")];for(;t&&t[Ps("0x3f")](Ps("0x41"))>n[Ps("0x3f")](Ps("0x41"));)e[Ps("0x31")](t),t=t.nextSibling}return Array[Ps("0x17")](e)}(o))}))}}n[Ps("0x27")]("numberedList",i(Ps("0x23"))),n[Ps("0x27")]("bulletedList",i("bulletedList")),o&&n[Ps("0x27")](Ps("0x2f"),i(Ps("0x2f"))),n[Ps("0x27")](Ps("0x19"),r(Ps("0x19"))),n.enableCommand(Ps("0x3d"),r(Ps("0x3d"))),o&&n[Ps("0x27")](Ps("0x1e"),(()=>{const e=t[Ps("0x13")].get(Ps("0x1e")),o=Array[Ps("0x17")](e[Ps("0x2a")]);o[Ps("0x15")]((t=>t[Ps("0x3f")](Ps("0xb"))!=e.value)),t[Ps("0x11")][Ps("0x39")]((()=>{for(const t of o)n[Ps("0x20")](t,{commandName:Ps("0x1e"),commandParams:[{forceValue:!e[Ps("0x21")]}]})}))})),n._descriptionFactory.registerElementLabel(Ps("0x0"),(t=>Qo(e,Ps("0xf"),t))),n[Ps("0x32")][Ps("0x29")]((t=>{if(Ps("0x2b")!=t[Ps("0x1")]&&Ps("0x2d")!=t.type)return;const{data:n}=t;if(n){if(Ps("0x23")==n.commandName||Ps("0x3e")==n[Ps("0x9")]||Ps("0x2f")==n.commandName)switch(n[Ps("0x9")].replace(Ps("0x1a"),"")){case"bulleted":return o(Qo(e,Ps("0x36")));case Ps("0xd"):return o(Qo(e,"ELEMENT_NUMBERED_LIST"));case Ps("0x7"):return o(Qo(e,Ps("0x35")))}if(Ps("0x19")==n[Ps("0x9")])return{type:Ps("0x3a"),content:Qo(e,"*Indent:* %0",Qo(e,"ELEMENT_LIST_ITEM"))};if(Ps("0x3d")==n.commandName)return{type:"format",content:Qo(e,Ps("0x24"),Qo(e,Ps("0xf")))};if(Ps("0x1e")==n[Ps("0x9")])return n[Ps("0x2e")][0][Ps("0x5")]?{type:Ps("0x3a"),content:Qo(e,Ps("0x12"))}:{type:Ps("0x3a"),content:Qo(e,Ps("0x1c"))}}function o(t){return{type:Ps("0x3a"),content:Qo(e,Ps("0x10"),t)}}}))}}function js(t){const e=t[Ps("0x3f")]("listIndent");if(0==e)return t;let n=t;for(;t[Ps("0x34")]&&t[Ps("0x34")].is("element",Ps("0x0"));){const o=t[Ps("0x34")][Ps("0x3f")](Ps("0x41"));if(o==e)n=t[Ps("0x34")];else if(o<e)break;t=t[Ps("0x34")]}return n}function Gs(t){const e=[];if(t.is("element",Ps("0x0"))&&t[Ps("0x3f")](Ps("0x41"))>0){let n=t[Ps("0x1d")];for(;n&&Ps("0x0")==n.name&&n[Ps("0x3f")](Ps("0x41"))==t[Ps("0x3f")](Ps("0x41"));)e[Ps("0x1f")](n),n=n[Ps("0x1d")]}return e}const Vs=["element","handleListStyleCommand","type","document","TrackChangesEditing","registerDescriptionCallback","listStyle","handleDescriptions","map","format","replace","push","_getSuggestionBlocks","has","listItem","startIndex","unshift","numbered","getLastPosition","editor","get","length","getSiblingNodes","selection","createRange","_LIST_","list.properties","markMultiRangeBlockFormat","handleListStartCommand","bind","*Format:* set start index to %0","createPositionAt","handleListReversedCommand","listStart","_getTranslationKeyForListStyle","*Format:* set order to regular","config","toUpperCase","afterInit","getAttribute","change","before","enableCommand","commandParams","model","filter","*Change to:* %0","reversed","_getSuggestionBlocksForListStyle","getSelectedBlocks","listType","ListPropertiesEditing","from","listReversed","plugins","getFirstPosition","getListTypeFromListStyleType","formatBlock","forward","commandName","backward","_descriptionFactory","parent","ListUtils"];var Hs,zs;Hs=Vs,zs=244,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x32")](){if(!this.editor[Ws("0x2")][Ws("0x19")](Ws("0x3f")))return;const t=this[Ws("0x1f")][Ws("0x30")][Ws("0x20")](Ws("0x26")),e=this.editor[Ws("0x2")].get("TrackChangesEditing");t.styles&&e[Ws("0x36")](Ws("0x12"),this[Ws("0xd")][Ws("0x29")](this)),t.reversed&&e.enableCommand(Ws("0x1"),this.handleListReversedCommand[Ws("0x29")](this)),t[Ws("0x1b")]&&e[Ws("0x36")](Ws("0x2d"),this.handleListStartCommand[Ws("0x29")](this)),e[Ws("0x9")][Ws("0x11")](this[Ws("0x13")][Ws("0x29")](this))}[Ws("0xd")](t,e={}){const n=this[Ws("0x1f")][Ws("0x2")].get("TrackChangesEditing"),o=this[Ws("0x3c")]();this[Ws("0x1f")].model[Ws("0x34")]((()=>{n[Ws("0x27")](o,{commandName:Ws("0x12"),commandParams:[{type:e[Ws("0xe")]}],formatGroupId:"listStyle"})}))}[Ws("0x2c")](t,e={}){const n=this.editor[Ws("0x2")][Ws("0x20")](Ws("0x10")),o=this[Ws("0x18")]((t=>t.is(Ws("0xc"),Ws("0x1a"))&&Ws("0x1d")===t[Ws("0x33")](Ws("0x3e"))));if(o[Ws("0x21")]<1)return;const i=o.map((t=>this[Ws("0x1f")][Ws("0x38")].createRange(this[Ws("0x1f")][Ws("0x38")].createPositionAt(t,Ws("0x35")),this[Ws("0x1f")].model[Ws("0x2b")](t,0))));this[Ws("0x1f")][Ws("0x38")][Ws("0x34")]((()=>{n[Ws("0x27")](i,{commandName:Ws("0x1"),commandParams:[{reversed:e[Ws("0x3b")]}],formatGroupId:Ws("0x1")})}))}[Ws("0x28")](t,e={}){const n=this.editor[Ws("0x2")][Ws("0x20")](Ws("0x10")),o=this._getSuggestionBlocks((t=>t.is(Ws("0xc"),Ws("0x1a"))&&Ws("0x1d")===t[Ws("0x33")](Ws("0x3e"))));if(o[Ws("0x21")]<1)return;const i=o[Ws("0x14")]((t=>this[Ws("0x1f")].model[Ws("0x24")](this[Ws("0x1f")].model.createPositionAt(t,Ws("0x35")),this[Ws("0x1f")][Ws("0x38")][Ws("0x2b")](t,0))));this[Ws("0x1f")][Ws("0x38")][Ws("0x34")]((()=>{n[Ws("0x27")](i,{commandName:Ws("0x2d"),commandParams:[{startIndex:e[Ws("0x1b")]}],formatGroupId:Ws("0x2d")})}))}handleDescriptions(t){if(Ws("0x5")!=t[Ws("0xe")]&&"formatInline"!=t[Ws("0xe")])return;const e=this[Ws("0x1f")].locale,{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x7")]){case Ws("0x12"):o=Ws("0x3a"),i={type:Ws("0x15"),content:Qo(e,o,Qo(e,this[Ws("0x2e")](n[Ws("0x37")][0][Ws("0xe")])))};break;case"listReversed":o=n[Ws("0x37")][0].reversed?"*Format:* set order to reversed":Ws("0x2f"),i={type:"format",content:Qo(e,o)};break;case Ws("0x2d"):o=Ws("0x2a"),i={type:Ws("0x15"),content:Qo(e,o,n[Ws("0x37")][0][Ws("0x1b")])}}return i}[Ws("0x3c")](){var t,e,n,o;const i=this[Ws("0x1f")][Ws("0x2")].get(Ws("0xb"));let r=Array[Ws("0x0")](this[Ws("0x1f")][Ws("0x38")].document[Ws("0x23")][Ws("0x3d")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0xc"),Ws("0x1a")))&&r[Ws("0x1c")](...i.getSiblingNodes(this[Ws("0x1f")][Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x3")](),Ws("0x8"))),(null===(e=r[r[Ws("0x21")]-1])||void 0===e?void 0:e.is("element",Ws("0x1a")))&&r[Ws("0x17")](...i[Ws("0x22")](this[Ws("0x1f")][Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x1e")](),Ws("0x6"))),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x38")][Ws("0xf")][Ws("0x23")][Ws("0x3")]())||void 0===n?void 0:n[Ws("0xa")])||void 0===o?void 0:o.is("element",Ws("0x1a")))&&(r=r[Ws("0x39")]((t=>t.is(Ws("0xc"),"listItem")))),r}_getSuggestionBlocks(t){const e=this[Ws("0x1f")][Ws("0x2")][Ws("0x20")](Ws("0xb"));let n=Array.from(this[Ws("0x1f")][Ws("0x38")].document[Ws("0x23")][Ws("0x3d")]())[Ws("0x39")](t)[Ws("0x14")]((t=>{const n=this[Ws("0x1f")][Ws("0x38")][Ws("0x2b")](t,0);return[...e[Ws("0x22")](n,Ws("0x8")),...e.getSiblingNodes(n,Ws("0x6"))]})).flat();return n=[...new Set(n)],n}[Ws("0x2e")](t){return"ELEMENT_"+this[Ws("0x1f")][Ws("0x2")][Ws("0x20")](Ws("0xb"))[Ws("0x4")](t)[Ws("0x31")]()+Ws("0x25")+t[Ws("0x31")]()[Ws("0x16")](/-/g,"_")}}const qs=["dataDowncast","data","_descriptionFactory","has","MediaEmbedEditing","high","ELEMENT_MEDIA","elementToElement","enableCommand","get","downcastDispatcher","for","div","media","registerElementLabel","mediaEmbed","conversion","plugins","attribute:url:media","locale","showSuggestionHighlights"];var $s,Xs;$s=qs,Xs=432,function(t){for(;--t;)$s.push($s.shift())}(++Xs);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{afterInit(){const t=this.editor;if(!t[Zs("0x5")][Zs("0xc")](Zs("0xd")))return;const e=t.plugins[Zs("0x12")]("TrackChangesEditing"),n=t[Zs("0x7")];e[Zs("0x11")](Zs("0x3")),e[Zs("0xb")][Zs("0x2")](Zs("0x1"),(t=>Qo(n,Zs("0xf"),t))),t[Zs("0x4")][Zs("0x14")](Zs("0x9"))[Zs("0x10")]({model:Zs("0x1"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x8")])return e.createEmptyElement(Zs("0x0"))},converterPriority:"high"}),t[Zs("0xa")][Zs("0x13")].on(Zs("0x6"),((t,e,n)=>{n.options[Zs("0x8")]&&t.stop()}),{priority:Zs("0xe")})}}const Js=["editor","mention","TrackChangesEditing","get","afterInit","plugins","MentionEditing","enableCommand"];var Qs,tx;Qs=Js,tx=220,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x4")];t[ex("0x1")].has(ex("0x2"))&&t.plugins[ex("0x7")](ex("0x6"))[ex("0x3")](ex("0x5"))}}const ox=["ELEMENT_PAGE_BREAK","locale","PageBreakEditing","enableCommand","_descriptionFactory","TrackChangesEditing","editor","has","get","afterInit","plugins","pageBreak","registerElementLabel"];var ix,rx;ix=ox,rx=420,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x5")](){const t=this[sx("0x2")];if(!t[sx("0x6")][sx("0x3")](sx("0xb")))return;t[sx("0x6")].get("TrackChangesEditing")[sx("0xc")]("pageBreak");const e=t[sx("0x6")][sx("0x4")](sx("0x1")),n=t[sx("0xa")];e[sx("0x0")][sx("0x8")](sx("0x7"),(t=>Qo(n,sx("0x9"),t)))}}const ax=["insertion","name","get","ELEMENT_PARAGRAPH","$text","has","data","registerDescriptionCallback","editing","start","options","_descriptionFactory","markerRange","end","ck-suggestion-marker--active","insertParagraph","TrackChangesEditing","addClass","insert","commandName","isBlock","plugins","bindElementToMarker","writer","ck-suggestion-marker-split","registerElementLabel","getFirstRange","_registerLegacyDescription","isTouching","isLimit","includes","getItemLabel","mapper","model","editor","locale","type","formatBlock","schema","consume","paragraph","markerName","downcastDispatcher","addMarker:suggestion:insertion","nodeAfter","span","checkChild","Paragraph","highest"];var cx,lx;cx=ax,lx=417,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{afterInit(){const t=this.editor;if(!t[ux("0x2d")][ux("0x1d")](ux("0x16")))return;const e=t[ux("0xa")],n=t[ux("0x2d")][ux("0x1a")]("TrackChangesEditing");n[ux("0x23")][ux("0x0")](ux("0xf"),(t=>Qo(e,ux("0x1b"),t))),n._enableDefaultAttributesIntegration("paragraph"),n.enableCommand(ux("0x27")),t[ux("0x20")][ux("0x11")].on(ux("0x12"),gx(t),{priority:ux("0x17")}),t[ux("0x1e")][ux("0x11")].on(ux("0x12"),((e,n,o)=>{o[ux("0x22")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:ux("0x17")});const o=n[ux("0x23")];o[ux("0x1f")]((n=>{if("insertion"!==n.type)return;const{start:i,end:r}=n[ux("0x1")]();if(!i[ux("0x3")](r)||!i[ux("0x13")])return;const s=t.model[ux("0xd")],x=i[ux("0x13")];return s.isBlock(x)&&!s[ux("0x4")](x)&&s[ux("0x15")](x,ux("0x1c"))?{type:ux("0x18"),content:Qo(e,"*Insert:* %0",o[ux("0x6")](x,1))}:void 0})),this[ux("0x2")]()}[ux("0x2")](){const t=this[ux("0x9")],e=t[ux("0xa")];t[ux("0x2d")][ux("0x1a")]("TrackChangesEditing")[ux("0x23")][ux("0x1f")]((t=>{if(ux("0xc")!=t[ux("0xb")])return;const{data:n}=t;return n&&ux("0xf")==n[ux("0x2b")]?{type:"format",content:Qo(e,"*Change to:* %0",Qo(e,ux("0x1b")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins.get(ux("0x28")),s=o.markerRange[ux("0x21")],x=o[ux("0x24")][ux("0x25")],a=t[ux("0x8")].schema;if(!s[ux("0x3")](x)||!s.nodeAfter)return;const c=s[ux("0x13")];if(a[ux("0x2c")](c)&&!a[ux("0x4")](c)&&a.checkChild(c,ux("0x1c"))){if(!i.consumable[ux("0xe")](o[ux("0x24")],n[ux("0x19")]))return;const t=i[ux("0x2f")].createUIElement(ux("0x14"),{class:ux("0x30")}),s=i[ux("0x7")].toViewPosition(x);e&&r.activeMarkers[ux("0x5")](o[ux("0x10")])&&i.writer[ux("0x29")](ux("0x26"),t),i.writer[ux("0x2a")](s,t),i[ux("0x7")][ux("0x2e")](t,o.markerName)}}}const fx=["removeFormat","plugins","registerDescriptionCallback","commandName","TrackChangesEditing","_registerLegacyDescription","_descriptionFactory","locale","editor","_enableDefaultAttributesIntegration","get","type","*Remove all formatting*","format","afterInit"];var mx,hx;mx=fx,hx=391,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xd")](){const t=this[px("0x7")];t[px("0x0")].has("RemoveFormatEditing")&&(t[px("0x0")][px("0x9")](px("0x3"))[px("0x8")](px("0xe")),this._registerLegacyDescription())}[px("0x4")](){const t=this.editor;t[px("0x0")][px("0x9")](px("0x3"))[px("0x5")][px("0x1")]((e=>{if("formatBlock"!=e[px("0xa")]&&"formatInline"!=e[px("0xa")])return;const{data:n}=e;return n&&"removeFormat"==n[px("0x2")]?{type:px("0xc"),content:Qo(t[px("0x6")],px("0xb"))}:void 0}))}}const Ex=["goToNextRestrictedEditingException","acceptSelectedSuggestions","has","acceptSuggestion","enableCommand","TrackChangesEditing","plugins","editor","goToPreviousRestrictedEditingException","discardSuggestion","get","RestrictedEditingModeEditing"];var _x,Tx;_x=Ex,Tx=298,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("0x9")];if(!t[yx("0x8")][yx("0x4")](yx("0x1")))return;const e=t[yx("0x8")][yx("0x0")](yx("0x7"));e.enableCommand(yx("0xa")),e.enableCommand(yx("0x2"));const n=t[yx("0x8")][yx("0x0")]("RestrictedEditingModeEditing");n[yx("0x6")]("trackChanges"),n[yx("0x6")](yx("0x5")),n[yx("0x6")](yx("0xb")),n[yx("0x6")]("acceptAllSuggestions"),n[yx("0x6")]("discardAllSuggestions"),n[yx("0x6")](yx("0x3")),n[yx("0x6")]("discardSelectedSuggestions")}}const Ax=["consumable","markerRange","addMarker:suggestion:insertion","enableCommand","locale","markerName","editing","model","activeMarkers","getItems","mapper","ck-suggestion-marker-","get","element","downcastDispatcher","createPositionBefore","addMarker:suggestion:deletion","addClass","name","ELEMENT_LINE_BREAK","init","TrackChangesEditing","softBreak","high","test","requires","editor","deletion","addMarker:suggestion","data","span","registerElementLabel","shiftEnter","writer","merge","split","plugins","ck-suggestion-marker--active","_descriptionFactory","options","insert"];var kx,Ix;kx=Ax,Ix=137,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Sx=function(t,e){return Ax[t-=0]};class Rx extends t.Plugin{static get[Sx("0xb")](){return[ur.ShiftEnter]}[Sx("0x6")](){const t=this[Sx("0xc")],e=t[Sx("0x16")][Sx("0x27")](Sx("0x7"));e[Sx("0x1e")](Sx("0x12")),t.editing[Sx("0x0")].on(Sx("0x1d"),Nx(t),{priority:Sx("0x9")}),t[Sx("0x21")].downcastDispatcher.on(Sx("0x2"),Nx(t),{priority:Sx("0x9")}),t[Sx("0xf")].downcastDispatcher.on(Sx("0xe"),((e,n,o)=>{o[Sx("0x19")].showSuggestionHighlights&&Nx(t,{showActiveMarker:!1})(e,n,o)})),e[Sx("0x18")][Sx("0x11")](Sx("0x8"),(e=>Qo(t[Sx("0x1f")],Sx("0x5"),e)))}}function Nx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Sx("0x27")](Sx("0x7"));if(!i[Sx("0x1b")][Sx("0xa")](o.markerRange,n[Sx("0x4")]))return;const s=t[Sx("0x22")];for(const t of o[Sx("0x1c")][Sx("0x24")]()){if(!t.is(Sx("0x28"),Sx("0x8")))continue;const n=Sx("0xd")==o.markerName[Sx("0x15")](":")[1]?Sx("0x14"):Sx("0x15"),x=i[Sx("0x13")].createUIElement(Sx("0x10"),{class:Sx("0x26")+n}),a=i[Sx("0x25")].toViewPosition(s[Sx("0x1")](t));e&&r[Sx("0x23")].includes(o[Sx("0x20")])&&i[Sx("0x13")][Sx("0x3")](Sx("0x17"),x),i.writer[Sx("0x1a")](a,x),i[Sx("0x25")].bindElementToMarker(x,o[Sx("0x20")])}}}const vx=["FORMAT_RESTRICTED_DISABLED","plugins","get","restrictedEditingException","from","markInlineFormat","getRanges","afterInit","enableCommand","commands","FORMAT_RESTRICTED_ENABLED","type","document","selection","isCollapsed","has","forceValue","TrackChangesEditing","registerDescriptionCallback","_descriptionFactory","formatInline","locale","value","editor"];var Lx,Mx;Lx=vx,Mx=139,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return vx[t-=0]};class Ox extends t.Plugin{[wx("0xc")](){const t=this[wx("0x4")],e=t.model,n=t[wx("0x2")];if(!t[wx("0x6")][wx("0x14")]("StandardEditingModeEditing"))return;const o=t.plugins.get(wx("0x16")),i=wx("0x8"),r=t[wx("0xe")][wx("0x7")](i);o[wx("0xd")](i,((t,n={})=>{const s=e[wx("0x11")][wx("0x12")];if(s[wx("0x13")])return void t(n);const x=void 0!==n[wx("0x15")]?n[wx("0x15")]:!r[wx("0x3")];e.change((()=>{const t=Array[wx("0x9")](s[wx("0xb")]());for(const n of t){const t=x?[n]:$i(i,n,e);for(const e of t)o[wx("0xa")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x0")][wx("0x17")]((t=>{if("formatBlock"!=t[wx("0x10")]&&wx("0x1")!=t[wx("0x10")])return;const{data:e}=t;return e&&e.commandName==i?e.commandParams[0][wx("0x15")]?{type:"format",content:Qo(n,wx("0xf"))}:{type:"format",content:Qo(n,wx("0x5"))}:void 0}))}}const Fx=["styleName","_registerLegacyDescription","StyleUtils","afterInit","ghsAttributes","commandParams","toLowerCase","add","locale","inline","TrackChangesEditing","format","registerAttributeLabel","FORMAT_STYLE","type","getGhsAttributeNameForElement","plugins","_registerBlockAttribute","_descriptionFactory","get","GeneralHtmlSupport","block","Style","*Set format:* %0","commandName","has","config","DataSchema","style","_enableDefaultAttributesIntegration","normalizeConfig","_registerInlineAttribute","element"];var Dx,Bx;Dx=Fx,Bx=381,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x12")](){const t=this.editor;if(!t[Px("0x1f")].has(Px("0x4"))||!t[Px("0x1f")][Px("0x7")](Px("0x9")))return;const e=t[Px("0x1f")][Px("0x1")]("TrackChangesEditing"),n=t[Px("0x17")],o=t[Px("0x8")].get(Px("0xa")),i=t.plugins[Px("0x1")](Px("0x2")),r=t.plugins[Px("0x1")](Px("0x11"))[Px("0xc")](t[Px("0x1f")][Px("0x1")](Px("0x9")),o.definitions);e[Px("0xb")](Px("0xa"));const s=new Set;for(const t of r[Px("0x3")]){const e=i[Px("0x1e")](t[Px("0xe")]);s[Px("0x16")](e)}const x=new Set;for(const t of r[Px("0x18")]){const e=i.getGhsAttributeNameForElement(t.element);x[Px("0x16")](e);for(const e of t[Px("0x13")])x[Px("0x16")](e)}for(const t of s)e[Px("0x20")](t),e._descriptionFactory[Px("0x1b")](t,Qo(n,Px("0x1c")));for(const t of x)e[Px("0xd")](t),e[Px("0x0")][Px("0x1b")](t,Qo(n,"FORMAT_STYLE"));this[Px("0x10")]()}[Px("0x10")](){const t=this.editor,e=t[Px("0x17")];t[Px("0x1f")].get(Px("0x19"))[Px("0x0")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Px("0x1d")]&&"formatInline"!=t[Px("0x1d")])return;const{data:n}=t;return n&&"style"===n[Px("0x6")]?n[Px("0x14")][0].forceValue?{type:Px("0x1a"),content:Qo(e,Px("0x5"),n[Px("0x14")][0][Px("0xf")][Px("0x15")]())}:{type:"format",content:Qo(e,"*Remove format:* %0",n[Px("0x14")][0][Px("0xf")][Px("0x15")]())}:void 0}))}}const jx=["TableUtils","above","locale","suggestion","selection","isArray","startsWith","order","isIntersectingWithRange","element","span","createTableWalker","document","getColumnIndexes","_tablePostFixingSubtypes","substr","*Insert:* %0","createPositionAt","deletion","tableColumn","subType","every","addRange","last","_setupColumnsRowsFixing","maxColumn","from","getAttribute","start","TrackChangesEditing","rowspan","ELEMENT_TABLE_WITH_TEXT","colspan","_tableSuggestions","removeClass","ELEMENT_TABLE_COLUMN_WITH_TEXT","refresh","insertTableRowBelow","removeTableColumn","getChangedMarkers","registerPostFixer","rootName","tableRow","change","has","writer","fromRange","getContainedElement","getRowIndexes","toLowerCase","type","downcastDispatcher","_splitMarkerName","get","insert","$graveyard","forceValue","TableEditing","add","registerDescriptionCallback","table","isEqual","map","createRangeIn","setSelection","tableCell","*Remove:* %0","end","classes","MAX_SAFE_INTEGER","cell","batch","enableCommand","selectTableRow","low","removeTableRow","findAncestor","insertTableRowAbove","getSuggestion","filter","insertTableColumnRight","ELEMENT_TABLE_ROW","getItems","ELEMENT_TABLE","first","minColumn","markMultiRangeInsertion","maxRow","$textProxy","some","addClass","discard","data","join","ELEMENT_TABLE_ROW_WITH_TEXT","includes","max","min","showSuggestionHighlights","_suggestionFactory","plugins","accept","getRanges","nodeAfter","left","ELEMENT_TABLE_COLUMN","push","insertion","_descriptionFactory","editor","name","_acceptFormatSuggestionCallbackFactory","options","hasAttribute","root","enqueueChange","differ","change:data","isInContent","execute","model","getSelectionAffectedTableCells","registerCustomCallback","getChanges","createRangeOn","detach","selectTableColumn","addMarker:suggestion","tablePaste","getChildren","nodeBefore","length","_getCoordsForCells","commands","_getSuggestionCoords","mapper","position","afterInit"];var Gx,Vx;Gx=jx,Vx=283,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x7")]=[Hx("0x23"),Hx("0xc")],this._tableSuggestions=new Set}[Hx("0x82")](){const t=this.editor,e=t[Hx("0x71")][Hx("0x5")][Hx("0x87")];if(!t[Hx("0x5d")][Hx("0x25")](Hx("0x32")))return;const n=t[Hx("0x85")],o=t.plugins[Hx("0x2e")](Hx("0x16")),i=t[Hx("0x5d")][Hx("0x2e")]("TableUtils");o[Hx("0x65")].registerElementLabel(Hx("0x35"),(t=>Qo(n,Hx("0x4c"),t))),this._setupColumnsRowsFixing(),o[Hx("0x41")]("insertTable"),o[Hx("0x41")](Hx("0x42")),o[Hx("0x41")](Hx("0x77"));for(const n of[Hx("0x46"),Hx("0x1e")]){const r=t[Hx("0x7e")][Hx("0x2e")](n);o[Hx("0x41")](n,(n=>{t[Hx("0x71")][Hx("0x24")]((t=>{n();const s=Hx("0x84")===r[Hx("0x0")],x=i[Hx("0x72")](e),a=i.getRowIndexes(x),c=s?a.first-1:a[Hx("0x10")]+1,l=x[0][Hx("0x45")](Hx("0x35")),u=i[Hx("0x4")](l,{startRow:c,endRow:c}),d=Array[Hx("0x13")](u)[Hx("0x37")]((e=>t[Hx("0x75")](e[Hx("0x3f")])));o.markMultiRangeInsertion(d,Hx("0x23"))}))}))}for(const n of["insertTableColumnLeft",Hx("0x49")]){const r=t[Hx("0x7e")][Hx("0x2e")](n);o[Hx("0x41")](n,(n=>{t.model[Hx("0x24")]((t=>{n();const s=Hx("0x61")===r[Hx("0x0")],x=i[Hx("0x72")](e),a=i.getColumnIndexes(x),c=s?a[Hx("0x4d")]-1:a[Hx("0x10")]+1,l=x[0][Hx("0x45")](Hx("0x35")),u=i[Hx("0x4")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x13")](u)[Hx("0x37")]((e=>t[Hx("0x75")](e[Hx("0x3f")])));o[Hx("0x4f")](d,Hx("0xc"))}))}))}for(const n of[Hx("0x44"),Hx("0x1f")]){const r=n[Hx("0x8")](11),s=r[Hx("0x2a")](),x=s[Hx("0x8")](0,3)+Hx("0x3"),a=Hx("0x35")+r,c=Hx("0x5a")+r,l="max"+r;o[Hx("0x41")](n,(()=>{t.model[Hx("0x24")]((t=>{const r=i[Hx("0x72")](e),u=r[0].findAncestor(Hx("0x35"));let d;if(Hx("0x44")==n){const t=i[Hx("0x29")](r);d={startRow:t[Hx("0x4d")],endRow:t[Hx("0x10")],includeAllSlots:!0}}else{const t=i[Hx("0x6")](r);d={startColumn:t[Hx("0x4d")],endColumn:t[Hx("0x10")],includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Hx("0x13")](g)[Hx("0x37")]((({cell:t})=>t)),m=Wx(f[Hx("0x48")]((t=>t[Hx("0x6a")](x)))),h=Wx(f[Hx("0x48")]((t=>!t[Hx("0x6a")](x))))[Hx("0x37")]((e=>t[Hx("0x75")](e))),p=o.markMultiRangeDeletion(h,a);if(p&&(Hx("0x23")==p.subType||Hx("0xc")==p[Hx("0xd")])){const e=this[Hx("0x7f")](p);for(const n of m){const o=t[Hx("0x75")](n),r=i.getCellLocation(n),a=n[Hx("0x14")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Hx("0x13")](e[Hx("0x5f")]()).map((t=>s.LiveRange[Hx("0x27")](t)));t[Hx("0x71")][Hx("0x24")]((e=>{const i=e[Hx("0x40")];n=n[Hx("0x48")]((t=>Hx("0x30")!=t[Hx("0x6b")][Hx("0x22")])),e[Hx("0x39")](n),t[Hx("0x7e")].get(Hx("0x44")).refresh(),t.execute(Hx("0x44"),{forceDefaultExecution:!0}),t[Hx("0x71")].enqueueChange((()=>{t[Hx("0x71")][Hx("0x6c")](i,(t=>{const e=o[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")].rootName));e[Hx("0x7c")]>0&&t[Hx("0x39")](e);for(const t of o)t.detach()}))}))}))}function a(n){t[Hx("0x71")][Hx("0x24")]((o=>{const i=Array[Hx("0x13")](e.getRanges())[Hx("0x37")]((t=>s.LiveRange[Hx("0x27")](t))),r=[];for(const t of n)for(const e of t[Hx("0x4b")]({shallow:!0}))r[Hx("0x63")](e);for(const e of r)Hx("0x30")!=e.root[Hx("0x22")]&&(o.setSelection(o[Hx("0xa")](e,0)),t[Hx("0x7e")][Hx("0x2e")](Hx("0x1f"))[Hx("0x1d")](),t[Hx("0x70")]("removeTableColumn",{forceDefaultExecution:!0}));const x=i[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")][Hx("0x22")]));x.length>0&&o[Hx("0x39")](x);for(const t of i)t[Hx("0x76")]()}))}function c(t,e){return e[Hx("0xe")]((e=>t[Hx("0x52")]((t=>t[Hx("0x3c")][Hx("0x36")](e[Hx("0x15")])||e[Hx("0x3c")][Hx("0x36")](t[Hx("0x15")])))))}function l(t,e){return t[Hx("0x52")]((t=>e[Hx("0x52")]((e=>t.end.isTouching(e[Hx("0x15")])))))}t[Hx("0x55")][Hx("0x2c")].on(Hx("0x78"),((t,e,n)=>{if(!n[Hx("0x69")][Hx("0x5b")])return;const o=e.item;if(!o)return;const i=n[Hx("0x80")].toViewElement(o);function r(t){return Array[Hx("0x88")](t)?t:[t]}i&&"tableCell"===o[Hx("0x67")]&&(0,x.setHighlightHandling)(i,n[Hx("0x26")],((t,e,n)=>n[Hx("0x53")](r(e[Hx("0x3d")]),t)),((t,e,n)=>n[Hx("0x1b")](r(e.classes),t)))}),{priority:"highest"}),o[Hx("0x65")][Hx("0x34")]((t=>{if(Hx("0x64")!=t[Hx("0x2b")]&&"deletion"!=t[Hx("0x2b")])return;const e=t[Hx("0x28")]();if(null!=e&&e.is(Hx("0x2"),Hx("0x35"))){if(Hx("0x64")==t[Hx("0x2b")]){const e=t.getItems()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")]));if(e[Hx("0x7c")])return{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x18"),'"'+e.join(" ")+'"'))}}if("deletion"==t[Hx("0x2b")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")]));if(e.length)return{type:Hx("0xb"),content:Qo(n,"*Remove:* %0",Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}}})),o._descriptionFactory[Hx("0x34")]((t=>{if(Hx("0x23")==t[Hx("0xd")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51")))).map((t=>t.data)),o=this[Hx("0x7f")](t),i=o[Hx("0x50")]-o.minRow+1;if(Hx("0x64")==t.type)return e.length?{type:"insertion",content:Qo(n,Hx("0x9"),Qo(n,Hx("0x57"),[i,'"'+e.join(" ")+'"']))}:{type:"insertion",content:Qo(n,Hx("0x9"),Qo(n,Hx("0x4a"),i))};if(Hx("0xb")==t[Hx("0x2b")])return e[Hx("0x7c")]?{type:Hx("0xb"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x57"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0xb"),content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x4a"),i))}}if("tableColumn"==t[Hx("0xd")]){const e=t[Hx("0x4b")]()[Hx("0x48")]((t=>t.is(Hx("0x51"))))[Hx("0x37")]((t=>t[Hx("0x55")])),o=this._getSuggestionCoords(t),i=o[Hx("0x12")]-o[Hx("0x4e")]+1;if(Hx("0x64")==t[Hx("0x2b")])return e[Hx("0x7c")]?{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x1c"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0x64"),content:Qo(n,Hx("0x9"),Qo(n,Hx("0x62"),i))};if(Hx("0xb")==t.type)return e[Hx("0x7c")]?{type:"deletion",content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x1c"),[i,'"'+e[Hx("0x56")](" ")+'"']))}:{type:Hx("0xb"),content:Qo(n,Hx("0x3b"),Qo(n,Hx("0x62"),i))}}})),o[Hx("0x5c")][Hx("0x73")]("insertion",Hx("0x23"),Hx("0x54"),r),o[Hx("0x5c")][Hx("0x73")]("deletion","tableRow","accept",r),o[Hx("0x5c")][Hx("0x73")](Hx("0x64"),Hx("0xc"),"discard",a),o._suggestionFactory[Hx("0x73")]("deletion",Hx("0xc"),Hx("0x5e"),a),o[Hx("0x5c")].registerCustomCallback(Hx("0x64"),Hx("0xc"),"join",c),o._suggestionFactory[Hx("0x73")]("deletion",Hx("0xc"),Hx("0x56"),c),o[Hx("0x5c")][Hx("0x73")](Hx("0x64"),"tableRow",Hx("0x56"),l),o[Hx("0x5c")].registerCustomCallback(Hx("0xb"),Hx("0x23"),Hx("0x56"),l)}[Hx("0x68")](){const t=this[Hx("0x66")],e=t[Hx("0x71")][Hx("0x5")][Hx("0x87")];return(n,o)=>{t[Hx("0x71")][Hx("0x24")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0][Hx("0x3c")][Hx("0x7b")];x&&x[0]&&!1===x[0][Hx("0x31")]&&(a=n[0][Hx("0x15")][Hx("0x60")]);const c=i[Hx("0x38")](a);if(Hx("0x30")==c[Hx("0x6b")][Hx("0x22")])return;const l=Array[Hx("0x13")](e[Hx("0x5f")]())[Hx("0x37")]((t=>s.LiveRange[Hx("0x27")](t)));i.setSelection(c),t[Hx("0x7e")][Hx("0x2e")](r)[Hx("0x1d")](),x[Hx("0x63")]({forceDefaultExecution:!0}),t[Hx("0x70")](r,...x);const u=l[Hx("0x48")]((t=>"$graveyard"!=t[Hx("0x6b")][Hx("0x22")]));u[Hx("0x7c")]>0&&i[Hx("0x39")](u);for(const t of l)t[Hx("0x76")]()}))}}[Hx("0x7d")](t){const e=this[Hx("0x66")][Hx("0x5d")].get(Hx("0x83"));let n=Number[Hx("0x3e")],o=Number.MIN_SAFE_INTEGER,i=Number[Hx("0x3e")],r=Number.MIN_SAFE_INTEGER;for(const s of t){if("$graveyard"==s[Hx("0x6b")][Hx("0x22")])continue;const{row:t,column:x}=e.getCellLocation(s),a=s[Hx("0x6a")](Hx("0x17"))?s.getAttribute(Hx("0x17"))-1:0,c=s.hasAttribute("colspan")?s[Hx("0x14")](Hx("0x19"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}[Hx("0x11")](){const t=this[Hx("0x66")],e=t[Hx("0x5d")][Hx("0x2e")](Hx("0x16")),n=t.plugins.get(Hx("0x83"));t[Hx("0x71")][Hx("0x5")].on(Hx("0x6e"),(()=>{const n=Array.from(t[Hx("0x71")][Hx("0x5")][Hx("0x6d")][Hx("0x20")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e[Hx("0x2d")](t);if(Hx("0x86")!=n)continue;if(null!=o.oldRange)continue;const s=e[Hx("0x47")](i);this[Hx("0x7")][Hx("0x58")](r)&&this[Hx("0x1a")][Hx("0x33")](s)}}),{priority:Hx("0x43")});const o=(t,e)=>{let o=!1;const i=e.createRangeOn(t),r=t.findAncestor(Hx("0x35")),s=n.getCellLocation(t);for(const e of this._tableSuggestions){const n=e[Hx("0xd")],x=n[Hx("0x89")](Hx("0x79")),a=n[Hx("0x8")](x?10:5),c=a[Hx("0x2a")](),l=c.substr(0,3)+Hx("0x3"),u=Hx("0x5a")+a,d=Hx("0x59")+a;if(!e[Hx("0x6f")])continue;if(r!=e.getFirstRange().start[Hx("0x45")]("table"))continue;if(e[Hx("0x1")](i))continue;const g=t[Hx("0x6a")](l)?t[Hx("0x14")](l)-1:0,f=this[Hx("0x7f")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e[Hx("0xf")](i),o=!0)}return o};t.model.document[Hx("0x21")]((e=>{let n=!1;for(const i of t[Hx("0x71")][Hx("0x5")][Hx("0x6d")][Hx("0x74")]())if(Hx("0x2f")==i[Hx("0x2b")])if(Hx("0x23")==i[Hx("0x67")])for(const t of i[Hx("0x81")][Hx("0x60")][Hx("0x7a")]())n=n||o(t,e);else Hx("0x3a")==i[Hx("0x67")]&&(n=n||o(i[Hx("0x81")].nodeAfter,e));return n}))}[Hx("0x7f")](t){return this[Hx("0x7d")](t[Hx("0x5f")]().map((t=>t[Hx("0x15")][Hx("0x60")])))}}function Wx(t){return Array[Hx("0x13")](new Set(t).values())}const Kx=["TrackChangesEditing","refresh","createTableWalker","direction","map","document","selection","registerCustomCallback","mergeTableCells","requires","_areMergableCells","splitTableCellHorizontally","execute","TableEditing","type","plugins","forceDefaultExecution","stop","*Split cell:* vertically","insertion","afterInit","$graveyard","getSelectionAffectedTableCells","filter","element","detach","change","getSuggestions","set:isEnabled","_areSelectedCellsMergable","getRanges","_descriptionFactory","*Merge cells*","formatInline","setSelection","mergeTableCellLeft","value","fromRange","getFirstPosition","add","deletion","return","createRangeOn","accept","registerDescriptionCallback","push","_suggestionFactory","model","editor","_isForcedDefaultExecutionBlock","rootName","_tablePostFixingSubtypes","mergeTableCellUp","mergeTableCellDown","author","from","subType","TableUtils","tableCell","getAncestors","formatBlock","markMultiRangeBlockFormat","isInContent","low","root","find","enableCommand","format","length","table","containsRange","cell","size","mergeTableCellRight","get","has","markBlockFormat","splitTableCellVertically","commands","highest","getCellLocation"];var qx,$x;qx=Kx,$x=104,function(t){for(;--t;)qx.push(qx.shift())}(++$x);const Xx=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[Xx("0x43")](){return[zx]}[Xx("0x4e")](){const t=this[Xx("0x19")],e=t.model[Xx("0x3f")].selection,n=t.locale;if(!t[Xx("0x49")][Xx("0x34")](Xx("0x47")))return;const o=t.plugins.get(Xx("0x3a")),i=t[Xx("0x49")].get(Xx("0x22")),r=t[Xx("0x49")].get(zx);r[Xx("0x1c")][Xx("0x16")]("mergeTableCells"),o[Xx("0x2b")](Xx("0x42"),(()=>{const e=i.getSelectionAffectedTableCells(t[Xx("0x18")].document[Xx("0x40")]);t[Xx("0x18")][Xx("0x3")]((()=>{o.markMultiRangeBlockFormat(e,{commandName:Xx("0x42"),commandParams:[]},[],Xx("0x42"))}))})),t.commands[Xx("0x33")](Xx("0x42")).on(Xx("0x46"),((e,n)=>{t[Xx("0x37")][Xx("0x33")]("trackChanges")[Xx("0xd")]&&(n.length>0&&n[n.length-1]&&n[n.length-1][Xx("0x4a")]||o[Xx("0x1a")]||this[Xx("0x6")]()||e[Xx("0x4b")]())}),{priority:Xx("0x38")});for(const e of[Xx("0x1d"),"mergeTableCellRight",Xx("0x1e"),Xx("0xc")]){const n=t[Xx("0x37")][Xx("0x33")](e);o[Xx("0x2b")](e,(()=>{const e=t.model[Xx("0x3f")].selection[Xx("0xf")]()[Xx("0x24")]().find((t=>t.is(Xx("0x1"),Xx("0x23")))),i=n[Xx("0xd")];t[Xx("0x18")].change((()=>{o[Xx("0x26")]([e,i],{commandName:Xx("0x42"),commandParams:[]},[],Xx("0x42"))}))}))}for(const e of[Xx("0x36"),"splitTableCellHorizontally"]){const n=t.commands[Xx("0x33")](e);o[Xx("0x2b")](e,(()=>{const r=i[Xx("0x50")](t.model.document[Xx("0x40")])[0],s=r.findAncestor(Xx("0x2e")),{column:x,row:a}=i[Xx("0x39")](r);let c=[];if("horizontally"==n[Xx("0x3d")]){const t=i[Xx("0x3c")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array[Xx("0x20")](t)[Xx("0x3e")]((t=>t[Xx("0x30")]))}else{const t=i[Xx("0x3c")](s,{column:x,includeAllSlots:!0});c=Array[Xx("0x20")](t)[Xx("0x3e")]((t=>t[Xx("0x30")]))}t[Xx("0x18")][Xx("0x3")]((t=>{o[Xx("0x35")](t.createRangeOn(r),{commandName:e,commandParams:[]},c,e)}))}))}o[Xx("0x8")][Xx("0x15")]((t=>{if("formatBlock"!=t[Xx("0x48")]&&"formatInline"!=t[Xx("0x48")])return;const{data:e}=t;return e&&Xx("0x42")==e.commandName?{type:Xx("0x2c"),content:Qo(n,Xx("0x9"))}:void 0})),o[Xx("0x8")][Xx("0x15")]((t=>{if(Xx("0x25")!=t[Xx("0x48")]&&Xx("0xa")!=t[Xx("0x48")])return;const{data:e}=t;return e?Xx("0x36")==e.commandName?{type:Xx("0x2c"),content:Qo(n,Xx("0x4c"))}:Xx("0x45")==e.commandName?{type:Xx("0x2c"),content:Qo(n,"*Split cell:* horizontally")}:void 0:void 0}));const x=r._acceptFormatSuggestionCallbackFactory();for(const t of["mergeTableCellUp",Xx("0x32"),Xx("0x1e"),Xx("0xc")])o[Xx("0x17")][Xx("0x41")](Xx("0x25"),t,Xx("0x14"),x);for(const t of[Xx("0x36"),"splitTableCellHorizontally"])o[Xx("0x17")][Xx("0x41")](Xx("0x25"),t,Xx("0x14"),x);o._suggestionFactory.registerCustomCallback(Xx("0x25"),Xx("0x42"),Xx("0x14"),(n=>{t[Xx("0x18")].change((o=>{const i=Array[Xx("0x20")](e[Xx("0x7")]())[Xx("0x3e")]((t=>s.LiveRange[Xx("0xe")](t)));o[Xx("0xb")](n),t[Xx("0x37")][Xx("0x33")](Xx("0x42"))[Xx("0x3b")](),t.execute(Xx("0x42"),{forceDefaultExecution:!0});const r=i[Xx("0x0")]((t=>Xx("0x4f")!=t[Xx("0x29")][Xx("0x1b")]));r[Xx("0x2d")]>0&&o[Xx("0xb")](r);for(const t of i)t[Xx("0x2")]()}))}));for(const e of[Xx("0x1d"),Xx("0x1e"),Xx("0xc"),"mergeTableCellRight"]){const n=t[Xx("0x37")][Xx("0x33")](e);n.on(Xx("0x5"),((e,o,i)=>{if(i){const o=t[Xx("0x18")][Xx("0x3f")].selection.getFirstPosition()[Xx("0x24")]()[Xx("0x2a")]((t=>t.is(Xx("0x1"),"tableCell")));this[Xx("0x44")](n[Xx("0xd")],o)||(e[Xx("0x12")]=!1,e[Xx("0x4b")]())}}),{priority:Xx("0x28")})}}[Xx("0x6")](){const t=this[Xx("0x19")][Xx("0x37")][Xx("0x33")](Xx("0x42")),e=this.editor.plugins[Xx("0x33")](Xx("0x22"));if(!t.isEnabled)return!1;const n=e[Xx("0x50")](this[Xx("0x19")][Xx("0x18")][Xx("0x3f")].selection);for(const t of n)for(const e of n)if(t!=e&&!this._areMergableCells(t,e))return!1;return!0}_areMergableCells(t,e){const n=this.editor.plugins[Xx("0x33")](Xx("0x3a")),o=this.editor[Xx("0x18")][Xx("0x13")](t),i=this[Xx("0x19")][Xx("0x18")][Xx("0x13")](e),r=new Set,s=new Set;for(const t of n[Xx("0x4")]())if((Xx("0x4d")==t.type||Xx("0x11")==t[Xx("0x48")]||Xx("0x42")==t[Xx("0x21")])&&t[Xx("0x27")])for(const e of t[Xx("0x7")]())e[Xx("0x2f")](o,!0)&&r[Xx("0x10")](t.type+":"+t.author.id),e[Xx("0x2f")](i,!0)&&s[Xx("0x10")](t.type+":"+t[Xx("0x1f")].id);if(r[Xx("0x31")]!=s[Xx("0x31")])return!1;for(const t of r)if(!s[Xx("0x34")](t))return!1;return!0}}const Yx=["_acceptFormatSuggestionCallbackFactory","activeMarkers","type","options","unbindElementFromMarkerName","_handleLegacySuggestions","downcastDispatcher","name","toViewElement","start","registerDescriptionCallback","bindElementToMarker","_descriptionFactory","*Format:* %0","stop","createTableWalker","headingColumns","FORMAT_HEADER_ROW","has","parent","markerName","removeClass","locale","data-suggestion","consumable","addClass","ck-suggestion-marker-","getCellLocation","TableEditing","registerAttributeLabel","forceValue","requires","mapper","TrackChangesEditing","get","FORMAT_HEADER_COLUMN","_suggestionFactory","commandParams","data","setTableRowHeader","ck-suggestion-marker--active","editor","showSuggestionHighlights","addMarker:suggestion","afterInit","setAttribute","highest","editing","accept","_splitMarkerName","getSuggestion","consume","headingRows","registerCustomCallback","markerRange","cell","setTableColumnHeader","plugins","nodeBefore","commandName","_enableDefaultAttributesIntegration","formatBlock","writer"];var Jx,Qx;Jx=Yx,Qx=421,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get[ta("0x33")](){return[zx]}[ta("0x1")](){const t=this[ta("0x3d")];if(!t[ta("0xe")][ta("0x26")](ta("0x30")))return;const e=t[ta("0x2a")],n=t[ta("0xe")].get("TrackChangesEditing");n[ta("0x11")](ta("0x3b"),[],[ta("0x9")]),n[ta("0x11")](ta("0xd"),[],[ta("0x24")]),n[ta("0x20")][ta("0x31")](ta("0x9"),Qo(e,"FORMAT_HEADER_ROW")),n._descriptionFactory[ta("0x31")](ta("0x24"),Qo(e,ta("0x37"))),this[ta("0x19")]()}_handleLegacySuggestions(){const t=this[ta("0x3d")][ta("0xe")][ta("0x36")](ta("0x35")),e=this.editor[ta("0xe")][ta("0x36")]("TableUtils"),n=this[ta("0x3d")][ta("0xe")][ta("0x36")](zx)[ta("0x14")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x6")](r[ta("0x28")]),c=t[ta("0x7")](a),l=c[ta("0x3a")];if(ta("0x12")!=c[ta("0x16")]||!l||ta("0xd")!=l[ta("0x10")])return;if(r.item)return void i[ta("0x22")]();if(!s[ta("0x2c")][ta("0x8")](r[ta("0xb")],i[ta("0x1b")]))return;const u=r[ta("0xb")][ta("0x1d")].nodeAfter,d=r[ta("0xb")].end[ta("0xf")],g=u[ta("0x27")][ta("0x27")],{column:f}=e[ta("0x2f")](u),{column:m}=e.getCellLocation(d);for(let i=f;i<=m;i++){const c=e[ta("0x23")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0xc")],c=s[ta("0x34")][ta("0x1c")](i);s[ta("0x13")][ta("0x2d")](ta("0x2e")+x,c),o&&s[ta("0x13")][ta("0x2")](ta("0x2b"),a,c),s[ta("0x34")][ta("0x1f")](c,r[ta("0x28")]),n&&(t[ta("0x15")].includes(r[ta("0x28")])?s[ta("0x13")][ta("0x2d")](ta("0x3c"),c):s[ta("0x13")][ta("0x29")]("ck-suggestion-marker--active",c))}}}}t[ta("0x38")][ta("0xa")](ta("0x12"),ta("0x3b"),ta("0x5"),n),t[ta("0x38")].registerCustomCallback(ta("0x12"),"setTableColumnHeader",ta("0x5"),n),this[ta("0x3d")][ta("0x4")][ta("0x1a")].on(ta("0x0"),o(),{priority:ta("0x3")}),this[ta("0x3d")][ta("0x3a")][ta("0x1a")].on(ta("0x0"),((t,e,n)=>{n[ta("0x17")][ta("0x3e")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x3")}),this[ta("0x3d")][ta("0x4")][ta("0x1a")].on("removeMarker:suggestion",((e,n,o)=>{const{type:i,id:r}=t[ta("0x6")](n[ta("0x28")]),s=t[ta("0x7")](r),x=s.data;if(ta("0x12")!=s[ta("0x16")]||!x||ta("0xd")!=x.commandName)return;const a=o[ta("0x34")].markerNameToElements(n[ta("0x28")]);if(a)for(const t of a)o[ta("0x13")].removeClass(ta("0x2e")+i,t),o[ta("0x13")][ta("0x29")](ta("0x3c"),t),o[ta("0x13")].removeAttribute(ta("0x2b"),t),o[ta("0x34")][ta("0x18")](t,n.markerName)}),{priority:ta("0x3")}),this._registerLegacyDescription()}_registerLegacyDescription(){const t=this.editor,e=t[ta("0x2a")];function n(t){return{type:"format",content:Qo(e,ta("0x21"),t)}}t.plugins[ta("0x36")](ta("0x35"))[ta("0x20")][ta("0x1e")]((t=>{if(ta("0x12")!=t.type)return;const{data:o}=t;if(o){if(ta("0x3b")==o.commandName){const t=o[ta("0x39")][0][ta("0x32")];return n(Qo(e,t?ta("0x25"):"FORMAT_REGULAR_ROW"))}if(ta("0xd")==o.commandName){const t=o[ta("0x39")][0].forceValue;return n(Qo(e,t?ta("0x37"):"FORMAT_REGULAR_COLUMN"))}}}))}}const na=["getChild","wrap","tablePasteColumn","for","plugins","tableCellBorderWidth","removeMarkers","tablePasteCell","cells","getColumnIndexes","isEmpty","columns","element","isEqual","suggestion-td","oldRange","endColumn","setAttributes","editingDowncast","createTableWalker","change","getSuggestionCallback","tablePaste","nextSibling","markerToHighlight","set","getRange","_createdBatches","createRangeOn","_getCoordsForCells","createPositionBefore","name","getShiftedBy","insertColumns","createRangeIn","cell","startsWith","removeColumns","discard","differ","hasSuggestion","findAncestor","fromEntries","includes","documentSelection","trackChanges","registerPostFixer","getChildren","tablePasteChainId","containsRange","insertRows","forceDefaultExecution","add","_splitMarkerName","low","commands","columnInsertionIndexes","fill","accept","registerCustomCallback","updateMarker","_suggestionFactory","join","author","activeMarkers","insertionRanges","TableUtils","createRange","listenTo","return","push","high","showSuggestionHighlights","insertContent","view","getContainedElement","paragraph","reduce","tablePasteRow","length","getAllAdjacentSuggestions","getRanges","newRange","last","options","tableCell","has","insertion","tableCellBorderColor","unwrap","markerName","table","Users","remove","$graveyard","_tablePostFixingSubtypes","_replaceTableSlotCell","redo","value","TableClipboard","getItems","end","ck-suggestion-marker-insertion","get","markMultiRangeInsertion","position","requires","rowInsertionIndexes","tableCellBackgroundColor","model","filter","columnInsertionRanges","registerDescriptionCallback","from","isInContent","first","attributes","document","editor","register","nodeAfter","previousSibling","subType","insert","_isForcedDefaultExecutionBlock","ck-suggestion-marker","suggestion","deletionRanges","*Replace table cells*","conversion","ck-suggestion-marker--active","markers","_descriptionFactory","stop","getSuggestions","type","map","every","endRow","locale","markerAttributes","tableCellSuggestion","dataDowncast","getMarkers","content","some","tableCellPadding","getChangedMarkers","find","markMultiRangeBlockFormat","elementToElement","keys","getRowIndexes","formatBlock","createElement","removeRows","deletion","getColumns","markMultiRangeDeletion"];var oa,ia;oa=na,ia=139,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0x19"),ra("0x6c"),"tableCellBorderStyle","tableCellHorizontalAlignment","tableCellVerticalAlignment",ra("0x80"),ra("0x7")],xa=Object[ra("0x3e")](sa[ra("0x9c")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x7e")](){return[zx]}afterInit(){const t=this.editor;if(!t[ra("0x18")][ra("0x6a")](ra("0x77")))return;const n=t.plugins.get("TrackChangesEditing"),o=t[ra("0x18")][ra("0x7b")](ra("0x56")),i=t[ra("0x18")][ra("0x7b")](zx),r=t[ra("0x18")][ra("0x7b")](ra("0x77"));i[ra("0x73")][ra("0x5a")](ra("0x62"),ra("0x16")),t[ra("0x81")].schema[ra("0x8b")](ra("0x2"),{allowIn:ra("0x69"),allowContentOf:"tableCell",isLimit:!0}),t.conversion[ra("0xb")]({model:ra("0x2"),view:ra("0x22")});let s=null;t[ra("0x81")].on("insertContent",((i,x)=>{const[a,c]=x,l=x[x.length-1];l&&l[ra("0x47")]||n[ra("0x90")]||this[ra("0x8a")][ra("0x4b")][ra("0x7b")](ra("0x41"))[ra("0x76")]&&function(t,e,n,o,i){if(e&&!e.is(ra("0x40")))return!1;const r=i.getTableIfOnlyTableInContent(t,n);if(!r||!la(r,void 0,o))return!1;const s=o.getSelectionAffectedTableCells(n[ra("0x89")].selection);if(!s[ra("0x63")])return!1;const x=s[0][ra("0x3d")](ra("0x6f")),a=o[ra("0xd")](s),c=o[ra("0x1d")](s),l={startRow:a[ra("0x87")],endRow:a.last,startColumn:c[ra("0x87")],endColumn:c[ra("0x67")]};return 1==s[ra("0x63")]&&(l[ra("0x9e")]+=o.getRows(r)-1,l[ra("0x24")]+=o[ra("0x12")](r)-1),la(x,l,o)}(a,c,t[ra("0x81")],o,r)&&(i[ra("0x99")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x81")][ra("0x28")]((()=>{t.model[ra("0x5d")](x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x63")]&&n[ra("0x7c")](i,ra("0x62"),{tablePasteChainId:o}),r[ra("0x63")]&&n[ra("0x7c")](r,"tablePasteColumn",{tablePasteChainId:o}),a[ra("0x63")]&&n[ra("0x7c")](a,ra("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0}),c[ra("0x63")]&&n[ra("0x13")](c,ra("0x2a"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n[ra("0xa")](l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x1b"),{tablePasteChainId:o});if(u){const e=u.getMarkers(),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t.model[ra("0x30")](o),s=e[ra("0x9")]((t=>t[ra("0x2e")]()[ra("0x21")](r)));s&&n[ra("0x5a")]([s[ra("0x33")],i])}n[ra("0x63")]&&u.setAttribute(ra("0x1"),Object[ra("0x3e")](n))}s=null})))}),{priority:e.priorities[ra("0x5b")]+10}),t[ra("0x18")][ra("0x7b")](ra("0x77")).on(ra("0x74"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x99")]();const r=n[ra("0x37")],x=o,a=ca(r),c=ca(x);t[ra("0x59")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x71")](r.getChild(0));for(const t of Array[ra("0x85")](x.getChildren()))i.insert(t,r,"end");const t=s[ra("0x7f")].includes(n.row),e=s[ra("0x4c")][ra("0x3f")](n.column);t||e||(l=i[ra("0x36")](r))}else c&&!a&&(u=i[ra("0x36")](r));else{const t=i.createElement(ra("0x2")),e=i[ra("0xf")]("tableCellSuggestion");i[ra("0x15")](i[ra("0x36")](r),e),i[ra("0x8f")](t,r,0);for(const e of Array.from(x[ra("0x43")]()))i[ra("0x8f")](e,t,ra("0x79"));l=i.createRangeOn(t),u=i[ra("0x30")](e)}const d=Array[ra("0x85")](x.getAttributes())[ra("0x82")]((([t])=>sa[ra("0x3f")](t)));s[ra("0x1c")][ra("0x5a")]({element:r,attributes:d[ra("0x63")]?Object[ra("0x3e")](d):null}),l&&s[ra("0x55")][ra("0x5a")](l),u&&s[ra("0x93")][ra("0x5a")](u)}),{priority:ra("0x5b")}),o.on(ra("0x35"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x1f")]||1;s.columnInsertionIndexes=new Array(a)[ra("0x4d")](x)[ra("0x9c")](((t,e)=>t+e));for(const{cell:e}of o[ra("0x27")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x83")][ra("0x5a")](t[ra("0x81")][ra("0x30")](e))}),{priority:ra("0x4a")}),o.on(ra("0x46"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r.rows||1;s[ra("0x7f")]=new Array(a)[ra("0x4d")](x)[ra("0x9c")](((t,e)=>t+e));for(const{cell:e}of o.createTableWalker(i,{startRow:x,endRow:x+a-1}))s.rowInsertionRanges[ra("0x5a")](t.model[ra("0x30")](e))}),{priority:ra("0x4a")}),n[ra("0x98")][ra("0x84")]((e=>{if(e[ra("0x8e")]&&e[ra("0x8e")][ra("0x38")](ra("0x2a")))return e.previous?{}:{type:ra("0x6b"),content:Qo(t[ra("0x0")],ra("0x94"))}}));const x=()=>!1;for(const t of[ra("0x2a"),"tablePasteColumn","tablePasteRow",ra("0x1b")])n[ra("0x51")][ra("0x4f")]("insertion",t,ra("0x52"),x),n[ra("0x51")][ra("0x4f")]("deletion",t,"join",x),n._suggestionFactory[ra("0x4f")](ra("0xe"),t,"join",x);n[ra("0x51")].registerCustomCallback(ra("0xe"),"tablePasteCell",ra("0x3a"),x),n[ra("0x51")][ra("0x4f")](ra("0xe"),ra("0x1b"),"accept",((e,n,o)=>{const i=e.map((t=>t[ra("0x5f")]()))[ra("0x82")]((t=>t)),r=new Map(i[ra("0x9c")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x1c")])e&&r[ra("0x2d")](t,e);else if(o&&o[ra("0x1")])for(const[e,n]of Object.entries(o[ra("0x1")])){const o=t[ra("0x81")][ra("0x97")].get(e),i=o?o.getRange()[ra("0x5f")]():null;i&&r[ra("0x2d")](i,n)}t[ra("0x81")][ra("0x28")]((t=>{for(const[e,n]of r)t[ra("0x25")]({...xa,...n},e)}))}));const a=(e,o)=>{n._suggestionFactory[ra("0x4f")](e,ra("0x2a"),o,((i,r,s)=>{t.model[ra("0x28")]((t=>{const x=[];for(const t of i){const e=t.start[ra("0x8c")];e.is("element",ra("0x2"))&&x[ra("0x5a")](e)}n._suggestionFactory[ra("0x29")](e,null,o)(i,r,s);for(const e of x)ra("0x72")!=e.root.rootName&&t[ra("0x6d")](e)}))}))};a("insertion",ra("0x4e")),a(ra("0x6b"),ra("0x3a")),a("deletion",ra("0x4e")),a(ra("0x11"),"discard"),n[ra("0x51")][ra("0x4f")](ra("0x6b"),ra("0x62"),ra("0x3a"),(t=>{const e=t[ra("0x9c")]((t=>t.getContainedElement())),n=e[0].findAncestor("table"),{minRow:r,maxRow:s}=i[ra("0x31")](e);o[ra("0x10")](n,{at:r,rows:s-r+1})})),n._suggestionFactory[ra("0x4f")](ra("0x6b"),ra("0x16"),ra("0x3a"),(t=>{const e=t[ra("0x9c")]((t=>t[ra("0x5f")]())),n=e[0][ra("0x3d")](ra("0x6f")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x39")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e.subType||!e.subType[ra("0x38")](ra("0x2a")))return;const o=e[ra("0x88")][ra("0x44")],i=n[ra("0x9a")]().filter((t=>t[ra("0x86")]&&t[ra("0x88")]&&t.attributes.tablePasteChainId==o));i[ra("0x63")]&&e[ra("0x64")]()[ra("0x63")]!=i[ra("0x63")]&&i[ra("0x61")](((t,e)=>(t.next=e,e.previous=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x49")](t.markerName),i=[ra("0x91"),ra("0x7a")],r=n[ra("0x54")][ra("0x3f")](t[ra("0x6e")]);return r&&i.push(ra("0x96")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ra("0x5b")}),n.on("suggestionUnloaded",c,{priority:"high"}),t[ra("0x81")].document[ra("0x42")]((()=>{let e=!1;const o=Array[ra("0x85")](t[ra("0x81")][ra("0x89")][ra("0x3b")][ra("0x8")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n._splitMarkerName(i);if(ra("0x92")!=o||"deletion"!=s||r[ra("0x23")])continue;if(!n[ra("0x3c")](x))continue;const a=n.getSuggestion(x)[ra("0x65")](),c=t.plugins[ra("0x7b")](ra("0x70")).me;for(const t of n.getSuggestions())if(t[ra("0x86")]&&t[ra("0x53")]==c&&"formatBlock"==t.type&&ra("0x1b")==t[ra("0x8e")]&&t[ra("0x65")]()[ra("0x9d")]((t=>a[ra("0x6")]((e=>e.containsRange(t,!0))))))for(const n of t[ra("0x64")]())n[ra("0x86")]&&(n.discard(),e=!0)}return e})),t[ra("0x81")][ra("0x89")][ra("0x42")]((e=>{const o=t[ra("0x4b")].get(ra("0x75"));if(!o||!o[ra("0x2f")].has(e.batch))return!1;let i=!1;const r=t[ra("0x18")][ra("0x7b")]("Users").me,s=t.model[ra("0x89")][ra("0x3b")].getChanges(),x=Array[ra("0x85")](t[ra("0x81")].document[ra("0x3b")][ra("0x8")]())[ra("0x82")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n._splitMarkerName(t);return ra("0x92")==o&&"tablePaste"==i&&s==r.id&&!e[ra("0x23")]}));for(const t of s){if(ra("0x8f")!=t[ra("0x9b")]||"tableCellSuggestion"!=t[ra("0x33")]||1!=t[ra("0x63")])continue;const n=e[ra("0x57")](t[ra("0x7d")],t[ra("0x7d")][ra("0x34")](1));if(!x[ra("0x9")]((({data:t})=>t[ra("0x66")][ra("0x21")](n))))for(const{name:t,data:o}of x)if(n[ra("0x45")](o[ra("0x66")])){e[ra("0x50")](t,{range:n}),i=!0;break}}return i})),t[ra("0x81")][ra("0x89")][ra("0x42")]((e=>{let o=!1;const i=t[ra("0x18")].get("Users").me,r=n[ra("0x9a")]()[ra("0x82")]((t=>t[ra("0x86")]&&t[ra("0x53")]==i)),s=new Set,x=new Set;for(const t of r)if("tablePaste"==t[ra("0x8e")])for(const e of t[ra("0x4")]()){const n=e[ra("0x2e")]()[ra("0x5f")]();if(n)if(n.is(ra("0x20"),ra("0x2"))&&ca(n)){t.removeMarker(e[ra("0x33")]),s[ra("0x48")](n),o=!0;const i=n[ra("0x2b")],r=n[ra("0x8d")],a=i&&i.is(ra("0x20"),"tableCellSuggestion"),c=r&&r.is(ra("0x20"),ra("0x2"));a&&!s[ra("0x6a")](i)&&x.add(i),c&&!s.has(r)&&x[ra("0x48")](r)}else n.is(ra("0x20"),ra("0x60"))&&n.isEmpty&&(t.removeMarker(e[ra("0x33")]),o=!0)}else if("tablePasteCell"==t[ra("0x8e")]){if(!t[ra("0x88")]||!t[ra("0x88")].tablePasteChainId)continue;const e=t[ra("0x88")][ra("0x1")];if(e&&Object[ra("0xc")](e)[ra("0x63")])continue;const n=t[ra("0x88")].tablePasteChainId;let i=!0,s=!0;for(const e of r)if(e[ra("0x8e")]&&e[ra("0x8e")].startsWith("tablePaste")){if(!e[ra("0x88")].tablePasteChainId){s=!1;break}if(e.id!=t.id&&e[ra("0x88")][ra("0x44")]==n){i=!1;break}}s&&i&&(t[ra("0x1a")](),o=!0)}for(const t of s)e[ra("0x71")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x95")][ra("0x17")](ra("0x26"))[ra("0x2c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>l(t),converterPriority:"high"}),t.conversion[ra("0x17")](ra("0x3"))[ra("0x2c")]({model:"suggestion:formatBlock:tablePasteCell",view:(t,e)=>e[ra("0x68")][ra("0x5c")]?l(t,!1):null,converterPriority:ra("0x5b")});const u=t.editing[ra("0x5e")];this[ra("0x58")](u[ra("0x89")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u.createRangeIn(e[ra("0x5")])[ra("0x78")]())t.is("element",ra("0x22"))&&n[ra("0x5a")](t);u[ra("0x28")]((t=>{for(const e of n)t.move(t.createRangeIn(e),t[ra("0x32")](e)),t.remove(e)}))}))}}function ca(t){if(t[ra("0x1e")])return!0;const e=t[ra("0x14")](0);return e.is(ra("0x20"),ra("0x60"))&&e[ra("0x1e")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n[ra("0x27")](t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["columnWidths","selection","plugins","tableWidth","enableCommand","table","registerCustomCallback","commandParams","discard","data","getSuggestionCallback","getTableColumnsWidths","getSelectedElement","Users","has","getColumnGroupElement","bind","handleResizeTableWidthCommand","resizeTableWidth","model","_suggestionFactory","*Format:* resize table","change","type","author","afterInit","registerDescriptionCallback","_descriptionFactory","TableColumnResizeEditing","accept","markBlockFormat","editor","getSuggestions","get","formatBlock","formatGroupId","resizeTable","TrackChangesEditing","format"];var da,ga;da=ua,ga=308,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{[fa("0x1d")](){if(!this.editor[fa("0x6")][fa("0x12")](fa("0x20")))return;const t=this.editor[fa("0x6")][fa("0x25")](fa("0x2"));t[fa("0x8")]("resizeTableWidth",this.handleResizeTableWidthCommand[fa("0x14")](this)),t[fa("0x18")][fa("0xa")]("formatBlock",fa("0x1"),"accept",t[fa("0x18")][fa("0xe")](fa("0x26"),null,"discard")),t._suggestionFactory[fa("0xa")](fa("0x26"),"resizeTable",fa("0xc"),t[fa("0x18")][fa("0xe")](fa("0x26"),null,fa("0x21"))),t[fa("0x1f")][fa("0x1e")](this.handleSuggestionDescription[fa("0x14")](this))}[fa("0x15")](t,e){const n=this[fa("0x23")][fa("0x6")][fa("0x25")](fa("0x2")),o=this[fa("0x23")][fa("0x6")][fa("0x25")](fa("0x20")),i=e[fa("0x9")]||this[fa("0x23")][fa("0x17")].document[fa("0x5")][fa("0x10")]();this.editor.model[fa("0x1a")]((()=>{const r=o[fa("0x13")](i);let s=r?o[fa("0xf")](r):null,x=i.getAttribute(fa("0x7"))||null;const a=e[fa("0x7")]||x,c=e[fa("0x4")]||s,l=this[fa("0x23")].plugins[fa("0x25")](fa("0x11")).me;for(const t of n[fa("0x24")]()){const e=t.getContainedElement();if("resizeTable"===t.subType&&e===i){t[fa("0x1c")]!==l&&t[fa("0xc")]();const e=t[fa("0xd")][fa("0xb")];x=e[0][fa("0x7")],s=e[0][fa("0x4")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x22")](i,{commandName:fa("0x16"),commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x1")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x26")!=t[fa("0x1b")]&&"formatInline"!=t[fa("0x1b")])return;const{data:e}=t;if(e&&"resizeTable"===e[fa("0x0")]){const t=fa("0x19");return{type:fa("0x3"),content:Qo(this[fa("0x23")].locale,t)}}}}const ha=["enableCommand","editor","plugins","get","afterInit","insertTemplate","TrackChangesEditing"];var pa,ba;pa=ha,ba=343,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x4")](){const t=this[Ea("0x1")];t[Ea("0x2")].has("Template")&&t.plugins[Ea("0x3")](Ea("0x6"))[Ea("0x0")](Ea("0x5"))}}const Ta=["TrackChangesEditing","enableCommand","commands","plugins","afterInit","ELEMENT_TABLE_OF_CONTENTS","get","registerElementLabel","insertTableOfContents","editor","locale"];var ya,Ca;ya=Ta,Ca=442,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this[Aa("0x7")];if(!t[Aa("0x0")].get(Aa("0x6")))return;t.plugins[Aa("0x4")](Aa("0x9"))[Aa("0xa")](Aa("0x6"));const e=t[Aa("0x1")][Aa("0x4")](Aa("0x9")),n=t[Aa("0x8")];e._descriptionFactory[Aa("0x5")]("tableOfContents",(t=>Qo(n,Aa("0x3"),t)))}}const Ia=["from","document","getNearestSelectionRange","plugins","updateMarker","TrackChangesEditing","removeMarker","isEqual","registerPostFixer","_splitMarkerName","isCollapsed","newRange","has","nodeBefore","registerElementLabel","forward","isTouching","end","getChangedMarkers","schema","model","element","afterInit","title-content","start"];var Sa,Ra;Sa=Ia,Ra=306,function(t){for(;--t;)Sa.push(Sa.shift())}(++Ra);const Na=function(t,e){return Ia[t-=0]};class va extends t.Plugin{[Na("0x10")](){const t=this.editor;if(!t[Na("0x16")][Na("0x6")]("Title"))return;const e=t.plugins.get(Na("0x18"));e._descriptionFactory[Na("0x8")](Na("0x11"),(()=>Qo(t.locale,"ELEMENT_TITLE"))),t.model[Na("0x14")][Na("0x2")]((n=>{let o=!1;const i=Array[Na("0x13")](t[Na("0xe")][Na("0x14")].differ[Na("0xc")]());for(const{name:r,data:s}of i){const{group:i}=e[Na("0x3")](r);if("suggestion"!==i||!s[Na("0x5")])continue;const x=s[Na("0x5")],a=x[Na("0xb")][Na("0x7")];if(!a||!a.is(Na("0xf"),"title-content"))continue;if(!x.start[Na("0xa")](x[Na("0xb")]))continue;const c=t.model[Na("0xd")][Na("0x15")](x.end,Na("0x9"));if(c&&c[Na("0x4")]){const t=n.createRange(x.start,c[Na("0x12")]);t[Na("0x1")](x)||(n[Na("0x17")](r,{range:t}),o=!0)}o||(n[Na("0x0")](r),o=!0)}return o}))}}const La=["has","get","redo","TrackChangesEditing","plugins","afterInit","undo","enableCommand","editor"];var Ma,wa;Ma=La,wa=347,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x0")](){const t=this[Oa("0x3")],e=t[Oa("0x8")][Oa("0x5")](Oa("0x7"));t[Oa("0x8")][Oa("0x4")]("UndoEditing")&&(e[Oa("0x2")](Oa("0x1")),e.enableCommand(Oa("0x6")))}}const Da=["get","requires","toggleTableCaption","plugins","enableCommand","editor","has","TableCaptionEditing","afterInit"];var Ba,Pa;Ba=Da,Pa=157,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x6")](){return[zx]}[Ua("0x4")](){const t=this[Ua("0x1")];t.plugins[Ua("0x2")](Ua("0x3"))&&t[Ua("0x8")][Ua("0x5")]("TrackChangesEditing")[Ua("0x0")](Ua("0x7"))}}const Ga=["nodeAfter","table","selection","locale","formatBlock","*Format:* change table cell properties","model","TablePropertiesEditing","getContainedElement","_descriptionFactory","_getSuggestion","*Format:* change table properties","tableHeight","markBlockFormat","getSuggestionCallback","accept","change","tableProperties","registerDescriptionCallback","getAttribute","tableCellBorderWidth","tableCellProperties","_handlePropertyChange","getSelectionAffectedTableCells","enableCommand","format","commandParams","tableCellBackgroundColor","data","tableCellPadding","TrackChangesEditing","afterInit","tableAlignment","editor","tableWidth","_suggestionFactory","tableCellWidth","registerCustomCallback","join","TableCellPropertiesEditing","findAncestor","tableBorderWidth","plugins","tableBorderStyle","handleDiscardAction","TrackChangesTableProperties","tableCellVerticalAlignment","tableBackgroundColor","removeAttribute","tableCellHorizontalAlignment","setAttribute","tableCellHeight","has","tableCellBorderColor","start","getSuggestions","discard","tableCellBorderStyle","subType","document","handleSuggestionDescription","get"];var Va,Ha;Va=Ga,Ha=390,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x3d")]=["tableBorderColor",za("0x19"),za("0x17"),za("0xe"),za("0x10"),za("0x38"),za("0x1d")],this[za("0x3")]=[za("0x23"),za("0x27"),za("0x2"),za("0xb"),za("0x12"),za("0x21"),za("0x9"),za("0x1f"),za("0x1c")]}static get pluginName(){return za("0x1b")}[za("0xd")](){const t=this[za("0xf")][za("0x18")][za("0x2b")](za("0xc"));if(this[za("0xf")][za("0x18")].has(za("0x33"))){for(const e of this.tableProperties)t.enableCommand(e,((t,n)=>{const o=this[za("0xf")][za("0x32")][za("0x29")].selection.getFirstPosition()[za("0x16")](za("0x2d"));this[za("0x4")](e,[o],this[za("0x3d")],za("0x3d"),t,n)}));t._suggestionFactory[za("0x13")]("formatBlock",za("0x3d"),za("0x3b"),t._suggestionFactory[za("0x3a")](za("0x30"),null,za("0x26"))),t[za("0x11")].registerCustomCallback(za("0x30"),"tableProperties",za("0x26"),((t,e)=>this[za("0x1a")](this.tableProperties,t,e))),t[za("0x11")][za("0x13")]("formatBlock",za("0x3d"),za("0x14"),(()=>!1))}if(this[za("0xf")][za("0x18")][za("0x22")](za("0x15"))){for(const e of this[za("0x3")])t[za("0x6")](e,((t,n)=>{const o=this[za("0xf")][za("0x18")][za("0x2b")]("TableUtils")[za("0x5")](this[za("0xf")][za("0x32")][za("0x29")][za("0x2e")]);this._handlePropertyChange(e,o,this[za("0x3")],za("0x3"),t,n)}));t[za("0x11")][za("0x13")](za("0x30"),za("0x3"),za("0x3b"),t[za("0x11")][za("0x3a")](za("0x30"),null,za("0x26"))),t[za("0x11")][za("0x13")](za("0x30"),za("0x3"),za("0x26"),((t,e)=>this[za("0x1a")](this[za("0x3")],t,e))),t[za("0x11")].registerCustomCallback("formatBlock",za("0x3"),"join",(()=>!1))}t[za("0x35")][za("0x0")]((t=>this[za("0x2a")](t)))}[za("0x4")](t,e,n,o,i,r){const s=this[za("0xf")].plugins[za("0x2b")](za("0xc"));this.editor.model.enqueueChange(r.batch,(()=>{for(const t of e)if(this[za("0x36")](t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x1")](o);void 0!==n&&(e[o]=n)}i(r),s[za("0x39")](t,{commandParams:[e]},[],o)}}))}handleDiscardAction(t,e,n){const o=e[0][za("0x24")][za("0x2c")],i=n[za("0x8")][0];this[za("0xf")].model[za("0x3c")]((e=>{for(const n of t)void 0!==i[n]?e[za("0x20")](n,i[n],o):e[za("0x1e")](n,o)}))}[za("0x2a")](t){if(t[za("0xa")])switch(t[za("0x28")]){case za("0x3d"):return{type:za("0x7"),content:Qo(this[za("0xf")][za("0x2f")],za("0x37"))};case za("0x3"):return{type:za("0x7"),content:Qo(this[za("0xf")][za("0x2f")],za("0x31"))}}}[za("0x36")](t,e){const n=this[za("0xf")][za("0x18")].get("TrackChangesEditing");for(const o of n[za("0x25")]({skipNotAttached:!0})){const n=o[za("0x34")]();if(o[za("0x28")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,$a=Ka.toString,Xa=qa.hasOwnProperty,Za=$a.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=Xa.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&$a.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["size","_enabledCommands","createPositionAfter","createElement","getChangedMarkers","refresh","forward","plugins","splitPosition","_isForcedDefaultExecutionBlock","suggestionChanged","subType","track-changes-adapter-missing-getsuggestion","formatBlock:discard","tablePasteChainId","toUpperCase","ready","getLastMatchingPosition","newRange","next","_refreshAttributeSuggestionsChain","@external","addMarker:suggestion:attribute","isCollapsed","isInsideObject","_recordAttributeChanges","_getAttributeKeyFromSubType","selection","_suggestions","formatInline:chain","formatInline:","isIntersecting","normal","isAtEnd","_getSuggestionData","unbind","_descriptionFactory","documentSelection","_setSuggestionData","markDeletion","batch","execute","marker-count","conversion","activeMarkers","markerReady","key","every","createSelection","_defaultCallbacks","removeAttribute","find","getSuggestionCallback","error-saving-suggestion-data-suggestion-discarded","data","type","howMany","showSuggestionHighlights","addMarker","includes","addMarker:suggestion:formatBlock","filter","get","applyOperation","listenTo","commentThread","insertion:","_reduceExistingSuggestions","markers","deletion:accept","_rangeIsInLocalUserInsertion","oldValue","group","trackChanges.mergeNestedSuggestions","editingDowncast","startsWith","markerName","formatInline","removeMarkers","substr","reconvertMarker","containerElement","editing","addUser","containsRangeInObject","commands","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","_createSuggestion","_isBlockAttribute","clear","_setSuggestionRange","markInsertion","attributes","PENDING_ACTION_SUGGESTION","changeAttribute","keys","start","rethrowUnexpectedError","move","oldName","editor","_isDataLoaded","formatBlock:chain","markAttributeChange","always","_registerInlineAttribute","_processAttributeSuggestions","formatBlock:accept","isLimit","skipNestingCheck","getChanges","createPositionBefore","formatBlock:","createRange","toViewElement","lowest","_trackFormatChanges","_getAuthorFromId","acceptSuggestion","external:","collaboration.channelId","end","parent","suggestion:","addMarkerName","getAttribute","deletion:discard","isAfter","stop","differ","elementToElement","getIntersection","discardSelectedSuggestions","ck-suggestion-marker-formatBlock","hasComments","getAllAdjacentSuggestions","forEach","CommentsRepository","attributeNewValue","_customCallbacks","newValue","_checkSuggestionCorrectness","split","announce","item","creator","getRanges","head","bindElementToMarker","root","high","ck-suggestion-marker","schema","define","remove","_removeSuggestion","_refreshSuggestionsChain","rename","nodeAfter","document","discardSuggestion","fetchCommentThread","ck-suggestion-marker-formatInline","consumable","_commentsRepository","isAtStart","version","change:_saved","TrackChangesEditing","_joinSuggestions","addSuggestion","getSuggestion","_initAriaMarkerChangeAnnouncements","after","consume","addRange","PendingActions","createRangeIn","getCustomProperty","_getMarkerAnnouncementText","resolve","$textProxy","isNextTo","insert","insertion","getMultiRangeId","change","insertion:discard","_cutOutSuggestionMarker","element","fire","deletion:","delete","suggestion","_editor","ck-suggestion-marker--active","notReady","position","concat","insertion:accept","_registerBlockAttribute","upcast","sort","set","_mergeNestedSuggestions","track-changes-user-not-found","updateSuggestion","removed","dataDowncast","moveTargetPosition","ariaLiveAnnouncer","return","track-changes-suggestion-data-mismatch","isBlock","ck-suggestion-marker-","options","discard","rejected","name","Users","_adapter","markerNameToElements","track-changes-enable-command-twice","LEAVE","markerToHighlight","formatBlock","setSelection","hasCommentThread","_addSuggestionMarker","track-changes-command-not-found","warn","groupId","createdAt","multi","commandName","isExternal","change:activeMarkers","formatBlock:join","isObject","getCommentThread","track-changes-adapter-already-set","$elementName","open","length","isOwn","ENTER","enableReadOnlyMode","markInlineFormat","addSuggestionData","_inlineAttributeKeys","chain","history","registerPostFixer","some","getNearestSelectionRange","addComment","$graveyard","formatInline:accept","writer","removeClass","model","addHighlight","containsPosition","forceDefaultExecution","containsItem","attributeKey","getAncestors","suggestion-type","multipleBlocks","acceptSelectedSuggestions","_breakSuggestionMarker","createPositionAt","accept","data-suggestion","_registerDefaultCallbacks","attribute","adapter","suggestionLoaded","registerCustomCallback","trackChangesCommand","isLocal","dataToMarker","dataReady","_saved","isIntersectingWithRange","newName","getShiftedBy","formatInline:join","init","_reduceSuggestionAttributeRange","trackChanges.trackFormatChanges","unbindElementFromMarkerName","detach","removeMarker","attribute:","catch","originalSuggestionId","_recordAttributeSuggestionsFromVersion","mapper","has","authoredAt","deletion:join","attribute:join","getMarkers","unshift","markBlockFormat","_model","suggestionUnloaded","insertion:chain","trackChanges","getDifference","for","join","map","then","value","getFirstMarker","markMultiRangeDeletion","_suggestionFactory","getSuggestions","_addThreadToSuggestion","_updateSuggestionData","attributeOldValue","locale","track-changes-suggestion-not-found","change:data","enableCommand","highest","buildSuggestion","clone","getWalker","setAttribute","_blockAttributeKeys","isTouching","suggestion:attribute:","_splitMarkerName","getFirstRange","setTo","nodeBefore","push","rootName","attribute:discard","getItems","never","deleteContent","isInContent","author","discardAllSuggestions","toJSON","add","getRange","isBefore","comments","formatGroupId","deletion","from","updateMarker","pluginName","_findSuggestions","pop","_enableDefaultAttributesIntegration","removeComment","addClass","targetPosition","previous","values","oldRange","range","_processAttributeChanges","isMultiRange","splice","attribute:accept","isRemovable","addMarker:suggestion","_joinWithAdjacentSuggestions","_onDiscard","_suggestionState","isEqual","containsRange","assign","$text","_handleNewSuggestionMarker","config"];var dc,gc;dc=uc,gc=430,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc="$elementName";class hc extends t.Plugin{static get requires(){return["CommentsRepository",r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Sr,Mr,Pr,Hr,$r,Qr,is,fs,cs,Es,As,Ns,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Rx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,va,Fa]}static get[fc("0x136")](){return fc("0x79")}constructor(t){function e(t){return t[fc("0x10a")]((t=>String.fromCharCode(t)))[fc("0x109")]("")}super(t),this[fc("0xfa")]=null,this.set(fc("0x17c"),[]),this.on(fc("0xbd"),((e,n,o,i)=>{this[fc("0x103")][fc("0x8b")]((()=>{for(const e of[...i,...o])this[fc("0x103")][fc("0x15")].has(e)&&t[fc("0x23")][fc("0x21")](e)}))})),this[fc("0x174")]=new ii(this[fc("0x35")][fc("0xd5")][fc("0x69")],this.editor[fc("0x114")]),this._adapter=null,this._suggestionFactory=new pc(this[fc("0x35")]),this[fc("0x16c")]=new Map,this[fc("0x75")]=t[fc("0x157")][fc("0xf")](fc("0x5a")),this[fc("0x151")]=new Set,this._model=this[fc("0x35")][fc("0xd5")],this[fc("0x149")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this[fc("0x11d")]=new Set([fc("0xc2")]),this[fc("0xca")]=new Set,t[fc("0x14f")][fc("0x6a")](fc("0xf3"),"default"),this._trackFormatChanges=t[fc("0x14f")].get(fc("0xf3")),t[fc("0x14f")][fc("0x6a")](fc("0x1a"),!0),this[fc("0x9d")]=t[fc("0x14f")][fc("0xf")](fc("0x1a")),this[fc("0xe8")]=new d(t,this[fc("0x151")]),this[fc("0x7d")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,52,48])}[fc("0xf1")](){const t=this[fc("0x35")],n=(t,e)=>{if(fc("0xe4")!=t)return fc("0xa7")+t;const n=e[fc("0x5f")]("|")[0];return this[fc("0x29")](n)?"ck-suggestion-marker-formatBlock":fc("0x73")};t[fc("0x17b")][fc("0x108")](fc("0x1b"))[fc("0xb1")]({model:fc("0x92"),view:t=>{const{id:e,type:o,subType:i}=this[fc("0x120")](t[fc("0x1d")]),r=[fc("0x68"),n(o,i)];let s=3e3;return this[fc("0x17c")][fc("0xc")](t[fc("0x1d")])&&(r.push(fc("0x94")),s=3010),fc("0x133")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x17b")].for(fc("0xa1"))[fc("0x12e")]((e=>{e.on(fc("0x146"),((e,n,o)=>{if(!o[fc("0xa8")].showSuggestionHighlights)return;const i=n[fc("0x61")];if(!i)return;const r=o[fc("0xfb")][fc("0x43")](i);t.model[fc("0x69")].isObject(i)&&r&&!r[fc("0x83")]("widget")&&r.is(fc("0x22"))&&(0,x.toWidget)(r,o[fc("0xd3")])}),{priority:fc("0x67")})})),t[fc("0x17b")].for(fc("0xa1"))[fc("0xb1")]({model:fc("0x92"),view:(t,e)=>{if(!e[fc("0xa8")][fc("0xa")])return null;const{type:o,subType:i}=this._splitMarkerName(t[fc("0x1d")]);return{classes:["ck-suggestion-marker",n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i.item)return;const{id:s}=this[fc("0x120")](i.markerName);if(n){const t=this._suggestions[fc("0xf")](s),e=this._getAttributeKeyFromSubType(t);if(!this[fc("0x29")](e))return}if(i.item.is(fc("0x16b")))return void r.consumable[fc("0x7f")](i[fc("0x61")],o[fc("0xab")]);const x=r[fc("0xfb")].toViewElement(i[fc("0x61")]);if(i[fc("0x61")].is(fc("0x8e"))&&t[fc("0xd5")].schema[fc("0xa6")](i.item)&&!x[fc("0x83")](fc("0xd6"))){r[fc("0xd3")][fc("0x13b")]([fc("0x68"),fc("0x56")],x),r[fc("0xd3")][fc("0x11c")](fc("0xe2"),s,x),r[fc("0xfb")][fc("0x65")](x,i.markerName),e&&(this[fc("0x17c")].includes(i[fc("0x1d")])?r[fc("0xd3")][fc("0x13b")](fc("0x94"),x):r[fc("0xd3")][fc("0xd4")](fc("0x94"),x));for(const e of t[fc("0xd5")][fc("0x82")](i[fc("0x61")])[fc("0x127")]())r[fc("0x74")].consume(e,o.name);r[fc("0x74")][fc("0x7f")](i[fc("0x61")],o[fc("0xab")])}};t[fc("0x17b")].for(fc("0xa1"))[fc("0x12e")]((t=>{t.on(fc("0xd"),((t,e,n)=>{n.options[fc("0xa")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x118")})})),t[fc("0x17b")][fc("0x108")]("dataDowncast")[fc("0x12e")]((t=>{t.on(fc("0x166"),((t,e,n)=>{n[fc("0xa8")][fc("0xa")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x118")})})),t[fc("0x17b")].for(fc("0xa1")).markerToData({model:fc("0x92"),view:(t,e)=>e[fc("0xa8")][fc("0xa")]?null:{group:fc("0x92"),name:t[fc("0x20")](11)}}),t[fc("0x17b")][fc("0x108")]("upcast")[fc("0x53")]({view:{name:fc("0x92"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n="suggestion:"+t.getAttribute(fc("0xdc"))+":"+t.getAttribute("id");return t[fc("0x4e")]("marker-count")&&(n+=":"+t[fc("0x4e")](fc("0x17a"))),e[fc("0x153")]("$marker",{"data-name":n})}}),t[fc("0x17b")][fc("0x108")](fc("0x9a"))[fc("0xea")]({view:fc("0x92")}),t[fc("0x17b")].for(fc("0x1b"))[fc("0x12e")]((t=>{t.on("addMarker:suggestion:formatBlock",o(),{priority:fc("0x67")})})),t.conversion.for(fc("0x1b"))[fc("0x12e")]((t=>{t.on(fc("0x166"),o({isAttributeSuggestion:!0}),{priority:"high"})})),t[fc("0x17b")][fc("0x108")](fc("0x1b"))[fc("0x12e")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0xfb")][fc("0xae")](e[fc("0x1d")]);if(o)for(const t of o)t.getCustomProperty("addHighlight")||(n.writer[fc("0xd4")]([fc("0x68"),fc("0x56"),"ck-suggestion-marker--active"],t),n[fc("0xd3")][fc("0x3")]("data-suggestion",t),n[fc("0xfb")][fc("0xf4")](t,e[fc("0x1d")]))}),{priority:"high"})})),t[fc("0x17b")][fc("0x108")](fc("0x1b"))[fc("0x12e")]((t=>{t.on("removeMarker:suggestion:attribute",((t,e,n)=>{const o=n.mapper[fc("0xae")](e.markerName);if(!o)return;const{id:i}=this[fc("0x120")](e[fc("0x1d")]),r=this[fc("0x16c")][fc("0xf")](i),s=this[fc("0x16a")](r);if(this._isBlockAttribute(s))for(const t of o)t[fc("0x83")](fc("0xd6"))||(n.writer[fc("0xd4")]([fc("0x68"),fc("0x56"),"ck-suggestion-marker--active"],t),n[fc("0xd3")][fc("0x3")](fc("0xe2"),t),n[fc("0xfb")][fc("0xf4")](t,e[fc("0x1d")]))}),{priority:fc("0x67")})})),t.model[fc("0x70")].registerPostFixer((e=>{let n=!1;const o=Array.from(t[fc("0xd5")].document[fc("0x52")][fc("0x154")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x120")](x);if(fc("0x92")!==o)continue;const d=this[fc("0x16c")][fc("0xf")](u);if(null!=a[fc("0x162")]){fc("0x1e")==c&&(n=n||_c(a.newRange,x,e,t.model[fc("0x69")]));const o=fc("0xe4")==c&&this[fc("0x29")](l.split("|")[0]);if(a[fc("0x162")][fc("0x167")]||fc("0xd1")==a[fc("0x162")][fc("0x66")][fc("0x125")]||fc("0xb2")==c&&!yc(a[fc("0x162")])||o&&!yc(a[fc("0x162")])||fc("0x133")==c&&(Ec(s=a[fc("0x162")])||(r=s)[fc("0x31")].parent==r[fc("0x4a")][fc("0x123")]&&r[fc("0x31")][fc("0x171")]))e[fc("0xf6")](x),n=!0;else{if(!d||!d[fc("0x12a")])continue;i.add(d)}}}var r,s;return i[fc("0x150")]>0&&(n=!!this[fc("0x147")](i)||n),n})),t.model[fc("0x70")][fc("0xcd")]((e=>{let n=!1;for(const o of t[fc("0xd5")][fc("0x70")][fc("0x52")][fc("0x3f")]())if(fc("0x88")==o[fc("0x8")])for(const o of this._suggestions.values()){if(o[fc("0x142")]||!o.isInContent)continue;const i=fc("0xb2")==o[fc("0x8")],r=this[fc("0x16a")](o),s=r&&this[fc("0x29")](r);if(!i&&!s)continue;const x=o[fc("0x121")]();if(x.start[fc("0x4b")]!=x.end[fc("0x4b")]&&!x[fc("0x4a")].isAtEnd){const i=t[fc("0xd5")][fc("0xe0")](x[fc("0x31")][fc("0x6f")],fc("0x4a")),r=t[fc("0xd5")][fc("0x42")](x[fc("0x31")],i);e[fc("0x135")](o[fc("0x10d")](),{range:r}),n=!0}}return n})),t.model[fc("0x70")].registerPostFixer((t=>this[fc("0x141")](t))),t[fc("0xd5")][fc("0x70")].registerPostFixer((t=>!t.batch[fc("0xe9")]&&this[fc("0x3b")](t))),t[fc("0xd5")].markers.on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this[fc("0x120")](e[fc("0xab")]),n=this._suggestions.get(t);n&&n[fc("0x4d")](e[fc("0xab")])}})),t[fc("0xd5")][fc("0x70")].on(fc("0x116"),(()=>{const e=Array[fc("0x134")](t[fc("0xd5")].document[fc("0x52")][fc("0x154")]()).filter((t=>"suggestion"===this[fc("0x120")](t[fc("0xab")])[fc("0x19")]));if(0===e[fc("0xc4")])return;e.sort(((t,e)=>{const n=t[fc("0x7")].oldRange,o=e[fc("0x7")][fc("0x13f")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x31")][fc("0x130")](o[fc("0x31")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x120")](t);if(null===i[fc("0x13f")]){const e=this[fc("0x14e")](t);o[fc("0x12e")](e)}else{const t=this[fc("0x16c")][fc("0xf")](e);null!==i[fc("0x162")]||t.isInContent?(n[fc("0x12e")](t[fc("0x64")]),o.add(t)):this._removeSuggestion(t)}}o.size>0&&this._refreshSuggestionsChain(o);for(const t of n)this[fc("0x8f")](fc("0x15a"),t)})),t[fc("0xd5")].on(fc("0x10"),((e,n)=>{const o=n[0];if(!this[fc("0x16c")][fc("0x150")])return;if(!o.isDocumentOperation)return;if(o[fc("0x178")].isUndo||!o[fc("0x178")][fc("0xe9")])return;let i,r;switch(o[fc("0x8")]){case fc("0x88"):i=t[fc("0xd5")][fc("0xe0")](o[fc("0x96")]),r=i[fc("0xef")](o.howMany);break;case"split":i=t[fc("0xd5")].createPositionAt(o[fc("0x158")]),r=t[fc("0xd5")][fc("0xe0")](o[fc("0xa2")]);break;case fc("0x33"):i=t[fc("0xd5")][fc("0xe0")](o[fc("0x13c")]),r=i.getShiftedBy(o[fc("0x9")]);break;default:return}const s=t.model.createRange(i,r);t[fc("0xd5")].change((()=>{for(const{suggestion:t,meta:e}of this._findSuggestions(s)){if(t[fc("0x142")])continue;if(fc("0x1e")==t[fc("0x8")])continue;const n=this._getAttributeKeyFromSubType(t);if(n&&this[fc("0x29")](n)&&"split"!=o.type)continue;const x=t[fc("0x7")]&&t[fc("0x7")][fc("0xdd")];("formatBlock"!=t.type||fc("0x5f")==o[fc("0x8")]&&!x)&&(e[fc("0x25")]||"insertion"==t[fc("0x8")]&&e.isOwn||t[fc("0x121")]()[fc("0x14b")](s)&&this._breakSuggestionMarker(t,i,r))}}))}),{priority:fc("0x44")}),t[fc("0xd5")].on(fc("0x129"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0xd8")])return;if(this[fc("0x159")])return;if(!this[fc("0xe8")][fc("0x10c")])return;if(o.isCollapsed)return;const r=t[fc("0xd5")][fc("0x69")],{start:s,end:x}=o[fc("0x121")](),a=s[fc("0x6f")]&&r[fc("0x3d")](s[fc("0x6f")])?null:r[fc("0xcf")](s,fc("0x156")),c=x.nodeBefore&&r[fc("0x3d")](x[fc("0x123")])?null:r[fc("0xcf")](x,"backward"),l=t[fc("0xd5")].createRange(a?a[fc("0x31")]:s,c?c.end:x);t[fc("0xd5")].change((e=>{this.markDeletion(l);const n=t[fc("0xd5")].schema[fc("0xcf")](l[fc("0x31")]);o.is(fc("0x175"))?e[fc("0xb3")](n):o[fc("0x122")](n)})),e[fc("0x51")]()}),{priority:e.priorities[fc("0x170")]+10}),t[fc("0xd5")].on("insertContent",((e,n)=>{const o=n[n[fc("0xc4")]-1];o&&o[fc("0xd8")]||this[fc("0x159")]||this[fc("0xe8")][fc("0x10c")]&&(t[fc("0xd5")][fc("0x8b")]((()=>{let o=t[fc("0xd5")].insertContent(n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e[fc("0xa4")]=o[fc("0x11a")]();const i=o[fc("0x4a")][fc("0x123")],r=t[fc("0xd5")][fc("0x69")];i&&r[fc("0xa6")](i)&&!r[fc("0xbf")](i)&&(o=t.model.createRange(o[fc("0x31")],t.model[fc("0xe0")](i,fc("0x4a")))),this[fc("0x2c")](o)})),e[fc("0x51")]())}),{priority:fc("0x67")}),this[fc("0x35")][fc("0x26")][fc("0x12e")](fc("0x106"),this[fc("0xe8")]),this.enableCommand(fc("0x106"));const i=new p(t,this[fc("0x16c")]);t[fc("0x26")][fc("0x12e")](fc("0x47"),i),this[fc("0x117")](fc("0x47"));const r=new y(t,this[fc("0x16c")]);t[fc("0x26")][fc("0x12e")](fc("0x71"),r),this[fc("0x117")](fc("0x71")),t.commands.add("acceptAllSuggestions",new F(t,i,this[fc("0x16c")])),this[fc("0x117")]("acceptAllSuggestions"),t[fc("0x26")][fc("0x12e")](fc("0x12c"),new F(t,r,this[fc("0x16c")])),this[fc("0x117")]("discardAllSuggestions"),t[fc("0x26")][fc("0x12e")]("acceptSelectedSuggestions",new j(t,i,this[fc("0x16c")])),this[fc("0x117")](fc("0xde")),t[fc("0x26")][fc("0x12e")](fc("0x55"),new j(t,r,this[fc("0x16c")])),this[fc("0x117")](fc("0x55"));const s=t[fc("0x157")][fc("0xf")](fc("0x5a"));this[fc("0x11")](s,fc("0xd0"),((t,{threadId:e})=>{const n=this[fc("0x16c")][fc("0xf")](e);n&&n[fc("0x12")]&&1===n[fc("0x12")][fc("0xc4")]&&this._updateSuggestionData(e,{hasComments:!0})}),{priority:"low"}),this[fc("0x11")](s,fc("0x13a"),((t,{threadId:e})=>{const n=this[fc("0x16c")].get(e);n&&n[fc("0x12")]&&!n[fc("0x12")][fc("0xc4")]&&this[fc("0x112")](e,{hasComments:!1})}),{priority:"low"})}set[fc("0xe5")](t){if(this[fc("0xad")])throw new e.CKEditorError(fc("0xc1"),this);this[fc("0xad")]=t}get adapter(){return this._adapter}[fc("0x110")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this[fc("0x16c")][fc("0x13e")]())t&&!e.isInContent||n[fc("0x124")](e);return e?n[fc("0x10a")]((t=>t[fc("0x12d")]())):n}[fc("0x7c")](t){const n=this[fc("0x16c")][fc("0xf")](t);if(!n)throw new e.CKEditorError(fc("0x115"),this);return n}hasSuggestion(t){return this._suggestions[fc("0xfc")](t)}[fc("0xc9")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t.type.split(":"),s=this._suggestions[fc("0xf")](n)||this[fc("0x28")](i,r,n,e,o);if(this[fc("0x111")](s),this._checkSuggestionCorrectness(s,i,r||null,e),s.createdAt=t[fc("0xb9")],s[fc("0x36")]=!0,o&&o[fc("0x165")]){const t=o["@external"],e=this._getExternalAuthor(t.authorName);s[fc("0xfd")]=t[fc("0xb9")],s.author=e,s[fc("0xbc")]=!0}else s.authoredAt=t[fc("0xb9")];switch(t[fc("0x7")]&&(s[fc("0x7")]=t[fc("0x7")]),t[fc("0x2d")]&&(s[fc("0x2d")]=t[fc("0x2d")]),this[fc("0xad")]&&this[fc("0xad")][fc("0x7b")]||(s[fc("0xec")]=!0),this[fc("0x149")][fc("0xf")](s)){case fc("0x95"):this._suggestionState[fc("0x9c")](s,fc("0xeb"));break;case"markerReady":s[fc("0x12a")]?(this[fc("0x6d")](new Set([s])),this[fc("0x147")](new Set([s])),this[fc("0x149")][fc("0x9c")](s,fc("0x160")),this.fire(fc("0xe6"),s)):this[fc("0x149")][fc("0x9c")](s,fc("0xa0"))}return s}[fc("0x47")](t){this[fc("0xd8")]((()=>{this.editor.model[fc("0x8b")]((()=>{for(const e of t[fc("0x58")]())e[fc("0xe1")]()}))}))}[fc("0x71")](t){this[fc("0xd8")]((()=>{this.editor[fc("0xd5")].change((()=>{for(const e of t[fc("0x58")]())e.discard()}))}))}[fc("0x117")](t,n){const o=this.editor[fc("0x26")][fc("0xf")](t);if(!o)throw new e.CKEditorError(fc("0xb6"),this,{commandName:t});if(this._enabledCommands.has(o))throw new e.CKEditorError(fc("0xaf"),this,{commandName:t});this[fc("0x151")][fc("0x12e")](o),n&&o.on(fc("0x179"),((t,e)=>{this[fc("0xe8")][fc("0x10c")]&&(this[fc("0x159")]||(e.length>0&&e[e[fc("0xc4")]-1]&&e[e[fc("0xc4")]-1].forceDefaultExecution?e[fc("0x138")]():(t[fc("0xa4")]=n(((...t)=>o[fc("0x179")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x51")]())))}),{priority:"high"})}[fc("0xd8")](t){let n,o;const i=this._isForcedDefaultExecutionBlock;this[fc("0x159")]=!0;try{n=t()}catch(t){o=t}return i||(this[fc("0x159")]=!1),o&&e.CKEditorError[fc("0x32")](o,this),n}[fc("0x2c")](t,n=null,o={}){if(t[fc("0x167")])return null;const i=this[fc("0x35")][fc("0x157")][fc("0xf")]("Users").me;for(const{suggestion:e,meta:i}of this[fc("0x137")](t,fc("0x89")))if(i[fc("0xc5")]){if(!i.isNextTo){if(i[fc("0x25")]){if(!this[fc("0x9d")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xdf")](e,t.start,t[fc("0x4a")]);break}if(n==e[fc("0x15b")]&&Ic(e,o)){const n=e.getFirstRange();return n.start[fc("0x14a")](t[fc("0x4a")])?this._setSuggestionRange(e,this._model[fc("0x42")](t.start,n.end)):this[fc("0x2b")](e,this._model[fc("0x42")](n[fc("0x31")],t[fc("0x4a")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x13")+n:fc("0x89"),a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0xb5")](x,r,s,t),a}markMultiRangeInsertion(t,n=fc("0xba"),o={}){const i=this[fc("0x35")].plugins[fc("0xf")]("Users").me,r=this[fc("0x10f")].getSuggestionCallback("insertion",n,fc("0x109"));for(const e of this.getSuggestions())if(e.author.id==i.id&&fc("0x89")==e[fc("0x8")]&&e[fc("0x15b")]==n&&Ic(e,o)&&(r(e.getRanges(),t)||r(t,e[fc("0x63")]()))){for(const n of t)e.addRange(n);return e}for(const{suggestion:e,meta:n}of this[fc("0x137")](t,"insertion")){if(!n.isOwn)continue;if(!this[fc("0x9d")]&&n[fc("0x25")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e[fc("0x63")]())for(const e of t)if(!n[fc("0x14b")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x13")+n,c=this._setSuggestionData({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0xb5")](a,s,x,e,Jo[fc("0x8a")]());return c}[fc("0xc8")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0x167")])return null;if(fc("0x128")===this[fc("0x45")]){const e=this._suggestionFactory[fc("0x5")](fc("0x1e"),o,"accept");return this.forceDefaultExecution((()=>e([t],n,i))),null}const r=this[fc("0x35")][fc("0x157")][fc("0xf")]("Users").me,s=[];if("always"!==this[fc("0x45")])for(const{suggestion:e,meta:n}of this[fc("0x137")](t,"insertion"))n.isOwn&&!n.isInsideObject&&s[fc("0x124")](...e[fc("0x63")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0x54")](o);e&&n[fc("0x124")](e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0xc4")];){const o=n[e].getDifference(t);n.splice(e,1,...o),e+=o[fc("0xc4")]}}return n}(t,s);x.length&&this[fc("0x103")][fc("0x8b")]((()=>{for(const t of x){const e=this[fc("0x10f")][fc("0x5")](fc("0x1e"),o,"accept");this[fc("0xd8")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t[fc("0x31")],a=t.end;for(const{suggestion:e,meta:n}of this._findSuggestions(t,fc("0x1e"))){if(!n[fc("0xc5")])continue;if(e[fc("0x15b")]!=o)continue;if(!Ic(e,i))continue;const r=e[fc("0x121")]();if(r[fc("0x14b")](t,!0))return null;x=x[fc("0x130")](r[fc("0x31")])?x:r[fc("0x31")],a=a[fc("0x50")](r[fc("0x4a")])?a:r[fc("0x4a")],s?r[fc("0x31")][fc("0x130")](s.getFirstRange().start)?(s[fc("0x1f")](),s=e):e[fc("0x1f")]():s=e}const c=this._model.createRange(x,a);if(s)this[fc("0x2b")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x176")]({id:t,type:fc("0x16e")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this._addSuggestionMarker("formatInline:"+o,t,s,c)}}return null}[fc("0x102")](t,n,o=[],i=null,r={}){n[fc("0x132")]||(n.formatGroupId=n[fc("0xbb")]),n[fc("0xdd")]=t.is(fc("0x140")),i=i||Tc(n);const s=o[fc("0x10a")]((t=>Cc(t,this[fc("0x103")]))),x=t.is("range")?t:Cc(t,this[fc("0x103")]);if(fc("0x128")===this[fc("0x45")]){const t=this._suggestionFactory[fc("0x5")]("formatBlock",i,"accept");return this.forceDefaultExecution((()=>t([x],n,r))),null}s[fc("0x124")](x);let a=!0;for(const t of s)if(!this[fc("0x17")](t)){a=!1;break}if(a&&fc("0x39")!==this[fc("0x45")]){const t=this[fc("0x10f")][fc("0x5")](fc("0xb2"),i,fc("0xe1"));return this.forceDefaultExecution((()=>t([x],n,r))),null}let c=null,l=x[fc("0x31")],u=x.end;for(const{suggestion:t,meta:e}of this[fc("0x137")](x,"formatBlock")){if(!e.isOwn)continue;if(e[fc("0x87")]||e[fc("0x25")]||e[fc("0x168")])continue;if(t[fc("0x7")][fc("0x132")]!=n.formatGroupId)continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t[fc("0x15b")]==i){if(o[fc("0x14b")](x,!0))return null;l=l[fc("0x130")](o[fc("0x31")])?l:o[fc("0x31")],u=u[fc("0x50")](o[fc("0x4a")])?u:o[fc("0x4a")],c?o.start[fc("0x130")](c.getFirstRange().start)?(c[fc("0x1f")](),c=t):t[fc("0x1f")]():c=t}else{const e=x[fc("0x54")](o);this[fc("0x8d")](t,e)}}const d=this.editor.plugins[fc("0xf")](fc("0xac")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this._model[fc("0x42")](l,u)),c;{const t=this[fc("0x176")]({id:g,type:fc("0x41")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0xb5")](fc("0x41")+i,g,f,this[fc("0x103")][fc("0x42")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],i=null,r={}){n.formatGroupId||(n[fc("0x132")]=n[fc("0xbb")]);const s=t[0];n[fc("0xdd")]=s.is(fc("0x140")),i=i||Tc(n);const x=o.map((t=>Cc(t,this[fc("0x103")]))),a=s.is(fc("0x140"))?t:t[fc("0x10a")]((t=>Cc(t,this[fc("0x103")])));if(fc("0x128")===this[fc("0x45")]){const t=this[fc("0x10f")][fc("0x5")]("formatBlock",i,fc("0xe1"));return this[fc("0xd8")]((()=>t(a,n,r))),null}x[fc("0x124")](...a);let c=!0;for(const t of x)if(!this[fc("0x17")](t)){c=!1;break}if(c&&fc("0x39")!==this[fc("0x45")]){const t=this[fc("0x10f")][fc("0x5")](fc("0xb2"),i,fc("0xe1"));return this[fc("0xd8")]((()=>t(a,n,r))),null}const l=this.editor[fc("0x157")].get(fc("0xac")).me;for(const t of this[fc("0x110")]()){if(t[fc("0x12b")].id!=l.id)continue;if("formatBlock"!=t.type||t[fc("0x7")][fc("0x132")]!=n[fc("0x132")])continue;if(!Ic(t,r))continue;const e=t[fc("0x15b")]==i;for(let n=0;n<a[fc("0xc4")];n++){const o=a[n];for(const i of t[fc("0x100")]()){const r=i[fc("0x12f")]();if(o[fc("0x14a")](r)){e?(a[fc("0x143")](n,1),n--):t[fc("0xf6")](i[fc("0xab")]);break}}}}if(0==a.length)return null;const u=this[fc("0x10f")][fc("0x5")]("formatBlock",i,"join");for(const t of this[fc("0x110")]())if(t[fc("0x12b")].id==l.id&&"formatBlock"==t.type&&t[fc("0x7")][fc("0x132")]==n[fc("0x132")]&&t[fc("0x15b")]==i&&Ic(t,r)&&(u(t.getRanges(),a)||u(a,t[fc("0x63")]()))){for(const e of a)t[fc("0x80")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+i,m=this[fc("0x176")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0xb5")](f,d,g,t,Jo[fc("0x8a")]());return m}[fc("0x177")](t,n=null,o={}){if(t[fc("0x167")])return null;const i=this[fc("0x35")][fc("0x157")][fc("0xf")]("Users").me,r=new s.LiveRange(t.start,t[fc("0x4a")]);for(const{suggestion:t,meta:e}of this[fc("0x137")](r,"insertion"))if(e.isOwn&&!e[fc("0x87")])if(t[fc("0x142")]){const e=t.getRanges()[fc("0xe")]((t=>fc("0xd1")!=t[fc("0x66")][fc("0x125")]));if(e.every((t=>r[fc("0x14b")](t,!0)))&&t[fc("0xa9")](),e[fc("0xce")]((t=>t[fc("0x14b")](r,!0)))){const t=this[fc("0x10f")][fc("0x5")](fc("0x133"),n,fc("0xe1"));return this[fc("0xd8")]((()=>t([r],null,o))),null}}else{const e=r.getIntersection(t[fc("0x121")]());null!==e&&t[fc("0x148")]([e],null,o)}if(r[fc("0xf5")](),r[fc("0x167")]||fc("0xd1")==r[fc("0x66")].rootName)return null;let x=null,a=r[fc("0x31")],c=r[fc("0x4a")];const l=this[fc("0x137")](r,fc("0x133"));for(const{suggestion:t,meta:e}of l){const n=this._model.createRange(a,c);if(e[fc("0xc5")]&&(this._mergeNestedSuggestions||!e[fc("0x25")]&&!e[fc("0x168")]))if(t[fc("0x142")]){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x63")]()){if(o[fc("0x14b")](n,!0))return t;n.containsRange(o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0x121")]();if(e[fc("0x14b")](n,!0))return t;if(!Ic(t,o)){n[fc("0x14b")](e)?t[fc("0x1f")]():e[fc("0xd7")](a)?a=e[fc("0x4a")]:e.containsPosition(c)&&(c=e[fc("0x31")]);continue}a=a[fc("0x130")](e.start)?a:e[fc("0x31")],c=c[fc("0x50")](e[fc("0x4a")])?c:e[fc("0x4a")],o=Object.assign({},t[fc("0x2d")]),x?e.start[fc("0x130")](x[fc("0x121")]().start)?(x[fc("0x1f")](),x=t):t[fc("0x1f")]():x=t}}if(x)return this[fc("0x2b")](x,this._model[fc("0x42")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x103")][fc("0x42")](a,c),s=i.id,x=n?fc("0x90")+n:fc("0x133"),l=this[fc("0x176")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0xb5")](x,t,s,r),l}}[fc("0x10e")](t,n="multi",o={}){const i=this[fc("0x35")].plugins[fc("0xf")]("Users").me,r=t[fc("0x10a")]((t=>new s.LiveRange(t[fc("0x31")],t.end))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0x137")](r,"insertion"))e[fc("0xc5")]&&!e.isNextTo&&x[fc("0x12e")](t);for(const e of x)if(e[fc("0x142")]){const i=e.getRanges();if((!e[fc("0x2d")]||!e.attributes[fc("0x3e")])&&i[fc("0x0")]((t=>r[fc("0xce")]((e=>e[fc("0x14b")](t,!0)))))&&e[fc("0xa9")](),r[fc("0x0")]((t=>i.some((e=>e[fc("0x14b")](t,!0)))))){const e=this[fc("0x10f")][fc("0x5")]("deletion",n,fc("0xe1"));return this[fc("0xd8")]((()=>e(t,null,o))),null}}else{const t=e.getFirstRange();if(r.some((e=>e[fc("0x14b")](t,!0)))&&e[fc("0xa9")](),r[fc("0x0")]((e=>t[fc("0x14b")](e,!0)))){const t=this._suggestionFactory.getSuggestionCallback(fc("0x133"),n,"accept");return this[fc("0xd8")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[fc("0x5")](fc("0x133"),n,"join");let c=null;for(const t of this.getSuggestions())if(t.author.id==i.id&&t[fc("0x12a")]&&fc("0x133")==t[fc("0x8")]&&t[fc("0x15b")]==n&&Ic(t,o)&&(a(t[fc("0x63")](),r)||a(r,t[fc("0x63")]())))if(c){if(t[fc("0x12")]&&t[fc("0x12")][fc("0xc4")])continue;for(const e of t[fc("0x63")]())c[fc("0xed")](e)||c.addRange(e);t[fc("0x1f")]()}else{c=t;for(const e of r)t[fc("0xed")](e)||t[fc("0x80")](e)}if(c)return c;x[fc("0x2a")]();for(const{suggestion:t,meta:e}of this[fc("0x137")](r,"deletion"))e.isOwn&&(this[fc("0x9d")]||!e[fc("0x25")]&&!e[fc("0x168")])&&Ic(t,o)&&x[fc("0x12e")](t);for(const t of x){const e=t[fc("0x63")]();if((!o||!o[fc("0x3e")])&&r[fc("0x0")]((t=>e[fc("0xce")]((e=>e[fc("0x14b")](t,!0))))))return t;(!t[fc("0x2d")]||!t[fc("0x2d")][fc("0x3e")])&&e[fc("0x0")]((t=>r[fc("0xce")]((e=>e[fc("0x14b")](t,!0)))))&&t[fc("0xa9")]()}const l=(0,e.uid)(),u=i.id,d=fc("0x90")+n,g=this[fc("0x176")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0xf5")](),t[fc("0x167")]||fc("0xd1")==t[fc("0x66")][fc("0x125")]||this[fc("0xb5")](d,l,u,t,Jo.getMultiRangeId());return g}[fc("0x38")](t,n,o,i,r){if(t[fc("0x167")])return[];if("never"===this[fc("0x45")])return[];const s=this.editor[fc("0x157")][fc("0xf")]("Users").me.id,x=Array[fc("0x134")](this[fc("0x16c")].values())[fc("0xe")]((e=>fc("0xe4")==e[fc("0x8")]&&e[fc("0x7")][fc("0x17e")]==n&&e.isIntersectingWithRange(t)));if("default"===this[fc("0x45")]){const e=this[fc("0x137")](t,fc("0x89")).filter((({meta:t})=>t[fc("0xc5")]&&!t[fc("0x168")]&&!t[fc("0x87")]))[fc("0x10a")]((({suggestion:t})=>t));x[fc("0x101")](...e)}const a=new Map([[t,o]]);for(const t of x){const e=fc("0xe4")==t[fc("0x8")]?t[fc("0x7")][fc("0x18")]:void 0,n=t.getFirstRange(),r=Array.from(a[fc("0x30")]())[fc("0x4")]((t=>t.isIntersecting(n)));r&&(a[fc("0x91")](r),r.getDifference(n)[fc("0x59")]((t=>{a[fc("0x9c")](t,o)})),fc("0x89")!=t[fc("0x8")]&&e!=i&&a.set(r.getIntersection(n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0xc4")]>37&&console[fc("0xb7")](fc("0x27"),{key:n});const l=(fc("0xf7")+(n+"|")+Tc({newValue:i})).substring(0,60),u=this._setSuggestionData({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0x124")](u),this[fc("0xb5")](l,x,s,t)}return c}[fc("0x99")](t){this[fc("0x11d")][fc("0x12e")](t)}[fc("0x3a")](t){this[fc("0xca")].add(t)}[fc("0x139")](t,e=[],n=[]){this[fc("0x117")](t,((t,...e)=>{this[fc("0x169")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x3a")](t);for(const t of n)this[fc("0x99")](t)}_setSuggestionRange(t,e){const n=t[fc("0x10d")]();this[fc("0x103")][fc("0x8b")]((t=>{t[fc("0x135")](n,{range:e})}))}[fc("0x111")](t){const e=t.id,n=this[fc("0x35")][fc("0x14f")].get(fc("0x49"));this[fc("0x75")][fc("0xb4")](e)||this._commentsRepository.addCommentThread({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0x75")][fc("0xc0")](e);o[fc("0x173")](fc("0x145")),o[fc("0x145")]=!1,t[fc("0x12")]=o}[fc("0x5e")](t,n,o,i){if(t[fc("0x8")]!=n||t[fc("0x15b")]!=o||t[fc("0x62")].id!=i)throw this[fc("0x35")][fc("0xc7")](fc("0xa5")),new e.CKEditorError(fc("0xa5"),this)}[fc("0x8d")](t,n){const o=t[fc("0x121")]();if(n[fc("0x14a")](o))t.removeMarkers();else if(o[fc("0x14b")](n)){const i=this[fc("0x103")][fc("0xe0")](n.start[fc("0x123")],fc("0x4a"));this._setSuggestionRange(t,this[fc("0x103")][fc("0x42")](o[fc("0x31")],i));const r=(0,e.uid)(),s=t.creator.id,x=t[fc("0x8")]+":"+t[fc("0x15b")];this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[fc("0x2d")]});const a=this._model[fc("0xe0")](n[fc("0x4a")][fc("0x4b")],fc("0x7e")),c=this._model[fc("0x42")](a,o.end);this[fc("0xb5")](x,r,s,c)}else if(o.containsPosition(n.start)){const e=this[fc("0x103")][fc("0xe0")](n[fc("0x31")].nodeBefore,fc("0x4a"));this._setSuggestionRange(t,this[fc("0x103")].createRange(o[fc("0x31")],e))}else{const e=this[fc("0x103")].createPositionAt(n.end[fc("0x4b")],fc("0x7e"));this[fc("0x2b")](t,this._model[fc("0x42")](e,o[fc("0x4a")]))}}[fc("0x17")](t){for(const{suggestion:e,meta:n}of this[fc("0x137")](t,fc("0x89"))){if(!n[fc("0xc5")])continue;const o=e[fc("0x63")]();for(const e of o)if(!t[fc("0x107")](e)[fc("0xc4")])return!0}return!1}[fc("0x46")](t){const n=this[fc("0x35")][fc("0x157")].get(fc("0xac")).getUser(t);if(!n)throw new e.CKEditorError(fc("0x9e"),this);return n}_getExternalAuthor(t){const e=this[fc("0x35")][fc("0x157")][fc("0xf")](fc("0xac")),n=(0,r.hashObject)(fc("0x48")+t);return e.getUser(n)||e[fc("0x24")]({id:n,name:t})}[fc("0x28")](t,e,n,o,i){const r=this._getAuthorFromId(o),s=this[fc("0x10f")][fc("0x119")](t,e,n,r,i,(t=>this[fc("0x112")](n,{attributes:t})));return this[fc("0x11")](s,fc("0xe1"),(()=>{this[fc("0x112")](n,{state:"accepted"})}),{priority:fc("0x67")}),this[fc("0x11")](s,"discard",(()=>{this[fc("0x112")](n,{state:fc("0xaa")})}),{priority:fc("0x67")}),this[fc("0x16c")][fc("0x9c")](n,s),this[fc("0x149")][fc("0x9c")](s,"notReady"),s}[fc("0x120")](t){const e=t[fc("0x5f")](":");return{group:e[0],type:e[1],subType:e[fc("0xc4")]>=5?e[2]:null,id:e[fc("0xc4")]<5?e[2]:e[3],authorId:e[fc("0xc4")]<5?e[3]:e[4],markerCount:6==e[fc("0xc4")]?e[5]:null}}[fc("0xdf")](t,n,o){const i=t.getFirstRange(),r=i[fc("0x31")],s=i.end;this._setSuggestionRange(t,this[fc("0x103")][fc("0x42")](r,n));const x=(0,e.uid)(),a=t[fc("0x62")].id,c=t[fc("0x8")]+(t[fc("0x15b")]?":"+t[fc("0x15b")]:"");this._setSuggestionData({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0x2d")],data:t[fc("0x7")]});const l=this[fc("0x16a")](t);("formatBlock"==t.type||l&&this[fc("0x29")](l))&&(o=this[fc("0x103")][fc("0x40")](o[fc("0x4b")])),this[fc("0xb5")](c,x,a,this[fc("0x103")].createRange(o,s))}[fc("0x137")](t,e=null){const n=[],o=this.editor.plugins.get("Users").me;Array.isArray(t)||(t=[t]);for(const i of this.getSuggestions()){if(!i.isInContent)continue;if(e&&i[fc("0x8")]!=e)continue;let r=!1;for(const e of i[fc("0x63")]()){for(const s of t){const t=s[fc("0x31")].isEqual(e[fc("0x4a")])||s[fc("0x4a")][fc("0x14a")](e[fc("0x31")]);if(t||s[fc("0x54")](e)){const x=s[fc("0x14b")](e)&&bc(this[fc("0x103")][fc("0x69")],e[fc("0x31")],s),a=e[fc("0x14b")](s)&&bc(this[fc("0x103")][fc("0x69")],s[fc("0x31")],e);n[fc("0x124")]({suggestion:i,meta:{isOwn:o==i[fc("0x12b")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0xb5")](t,e,n,o,i){this[fc("0x103")][fc("0x8b")]((r=>{let s=fc("0x4c")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0xb")](s,{range:o,usingOperation:!0,affectsData:!0})}))}[fc("0x6c")](t){const e=t[fc("0x13d")],n=t.next;t[fc("0x13d")]=null,t.next=null,null!=e&&(e[fc("0x163")]=n),null!=n&&(n[fc("0x13d")]=e),fc("0x160")==this._suggestionState.get(t)&&(this._suggestionState.set(t,fc("0xa0")),this[fc("0x8f")](fc("0x104"),t,e,n))}[fc("0x176")](t){const n=t.id,o=this[fc("0xc9")](t);if(this[fc("0xad")]&&this._adapter.addSuggestion){const i=this[fc("0x35")].plugins.get("PendingActions"),r=o[fc("0x57")],s=o[fc("0x15b")]?o[fc("0x8")]+":"+o.subType:o[fc("0x8")],x=this[fc("0x35")][fc("0x114")],a=i[fc("0x12e")](Qo(x,"PENDING_ACTION_SUGGESTION")),c={id:n,type:s,hasComments:r,data:t[fc("0x7")]||null,originalSuggestionId:t[fc("0xf9")]||null,attributes:o[fc("0x2d")]};this._adapter[fc("0x7b")](c)[fc("0x10b")]((t=>{o[fc("0xec")]=!0,i[fc("0x6b")](a),t&&t[fc("0xb9")]&&(this[fc("0x16c")][fc("0xf")](n)[fc("0xb9")]=t.createdAt)}))[fc("0xf8")]((t=>{throw(0,e.logWarning)(fc("0x6")),this[fc("0x35")][fc("0xd5")].enqueueChange({isUndoable:!1},(()=>{o[fc("0xa9")]()})),o.stopListening(),this[fc("0x16c")][fc("0x91")](o.id),this[fc("0x149")][fc("0x91")](o),t}))}return o}[fc("0x29")](t){return this[fc("0x11d")][fc("0xfc")](t)}_getAttributeKeyFromSubType(t){return"attribute"==t.type&&t[fc("0x15b")][fc("0x5f")]("|")[0]}[fc("0x112")](t,e){const n=this[fc("0x35")][fc("0x157")][fc("0xf")](fc("0x81")),o=this[fc("0x7c")](t);if(this[fc("0xad")]&&this._adapter[fc("0x9f")])if(o[fc("0xec")]){const o=n[fc("0x12e")](Qo(this[fc("0x35")][fc("0x114")],fc("0x2e")));this[fc("0xad")][fc("0x9f")](t,e).then((()=>{n[fc("0x6b")](o)}))}else o.on(fc("0x78"),(()=>{this[fc("0x112")](t,e)}))}_getSuggestionData(t){if(!this[fc("0xad")]||!this[fc("0xad")].getSuggestion)throw new e.CKEditorError(fc("0x15c"),this);return this._adapter.getSuggestion(t)}[fc("0x14e")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x120")](t),r=this[fc("0x16c")][fc("0xf")](e)||this[fc("0x28")](n,o,e,i,{});switch(this[fc("0x5e")](r,n,o,i),this[fc("0x149")][fc("0xf")](r)){case"notReady":this[fc("0x172")](e).then((t=>{let n=Promise[fc("0x85")]();t[fc("0x57")]&&(n=this[fc("0x75")][fc("0x72")]({channelId:this[fc("0x35")][fc("0x14f")][fc("0xf")](fc("0x49")),threadId:e})),n.then((()=>{this[fc("0xc9")](t)[fc("0xec")]=!0}))})),this[fc("0x149")].set(r,fc("0x17d"));break;case fc("0xa0"):this[fc("0x112")](e,{state:fc("0xc3")});case"dataReady":this[fc("0x149")][fc("0x9c")](r,fc("0x160")),this[fc("0x8f")](fc("0xe6"),r);break;case fc("0x160"):this[fc("0x8f")]("suggestionChanged",r)}return r[fc("0x4d")](t),r}[fc("0x6d")](t){const e=Array[fc("0x134")](t),n=e[fc("0xe")]((t=>fc("0xe4")==t[fc("0x8")]));this._refreshAttributeSuggestionsChain(n);const o=e[fc("0xe")]((t=>!t.isMultiRange&&"attribute"!=t[fc("0x8")])),i=this.getSuggestions({skipNotAttached:!0})[fc("0xe")]((t=>!t.isMultiRange&&fc("0xe4")!=t.type)),r=i[fc("0xe")]((e=>!t[fc("0xfc")](e))),s=new Map(i[fc("0x10a")]((t=>[t,this[fc("0x10f")][fc("0x5")](t[fc("0x8")],t[fc("0x15b")],fc("0xcb"))]))),x=new Map(i[fc("0x10a")]((t=>[t,t.getFirstRange()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0xc4")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0xc4")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0xc4")];t++){const e=o[t];!c[fc("0xfc")](e)&&e[fc("0x13d")]&&(l[fc("0x12e")](e[fc("0x13d")]),e.previous[fc("0x163")]===e&&(e[fc("0x13d")][fc("0x163")]=null),e[fc("0x13d")]=null),!a[fc("0xfc")](e)&&e[fc("0x163")]&&(l.add(e[fc("0x163")]),e[fc("0x163")][fc("0x13d")]===e&&(e[fc("0x163")][fc("0x13d")]=null),e[fc("0x163")]=null)}function u(t,e,n){for(let o=n;o<e[fc("0xc4")];o++){const n=d(t,e[o]);n&&(n[0][fc("0x163")]=n[1],n[1][fc("0x13d")]=n[0],a[fc("0x12e")](n[0]),c.add(n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x12b")].id)return null;const n=s.get(t)(t,e,x[fc("0xf")](t),x.get(e));return n&&s[fc("0xf")](e)(t,e,x.get(t),x.get(e))?n[1][fc("0x12")]&&n[1][fc("0x12")][fc("0xc4")]?null:n:null}l[fc("0x150")]&&this[fc("0x6d")](l)}[fc("0x164")](t){if(0==t[fc("0xc4")])return;const e=this[fc("0x110")]({skipNotAttached:!0})[fc("0xe")]((t=>"attribute"==t.type&&t[fc("0x36")])),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0x2d")]);o.has(e)||(o[fc("0x9c")](e,n[fc("0xc4")]),n[fc("0x124")]([]));const i=o.get(e);n[i].push(t)}!function(){n[fc("0x9b")](((t,e)=>{const n=t[0][fc("0xb9")],o=e[0].createdAt;return n==o?t[0].attributes[fc("0xb8")]<e[0][fc("0x2d")][fc("0xb8")]?-1:1:n<o?-1:1}));for(const t of n)t[fc("0x9b")](((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0xc4")];t++){if(0==n[t].length)continue;const e=[];for(let o=t+1;o<n[fc("0xc4")];o++)0!=n[o][fc("0xc4")]&&i(n[t],n[o])&&e.push(o);for(const o of e)n[t]=n[t][fc("0x97")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t[fc("0xc4")];e++)t[e][fc("0x163")]=t[e+1]||null;for(const t of n)for(let e=0;e<t[fc("0xc4")];e++)t[e].previous=t[e-1]||null;function i(t,e){if(t[0].author!==e[0][fc("0x12b")])return!1;if(n=t[0],o=e[0],(n[fc("0x57")]||o[fc("0x57")])&&(n[fc("0x57")]&&o[fc("0x57")]||!(n[fc("0x57")]&&o[fc("0xb9")]<n[fc("0x12")][fc("0x131")][fc("0xf")](0)[fc("0xb9")]||o.hasComments&&n[fc("0xb9")]<o[fc("0x12")].comments[fc("0xf")](0).createdAt)))return!1;var n,o;const i=lc(t[0].attributes,fc("0xb8")),r=lc(e[0][fc("0x2d")],fc("0xb8"));return!!Go(i,r)&&(!!t[fc("0x0")]((t=>e[fc("0xce")]((e=>t[fc("0x121")]().isEqual(e[fc("0x121")]())))))&&e[fc("0x0")]((e=>t[fc("0xce")]((t=>e[fc("0x121")]()[fc("0x14a")](t[fc("0x121")]()))))))}}[fc("0x147")](t){const e=Array.from(t),n=this[fc("0x110")]({skipNotAttached:!0}),o=n[fc("0xe")]((e=>!t[fc("0xfc")](e))),i=new Map(e.map((t=>[t,this[fc("0x10f")][fc("0x5")](t[fc("0x8")],t[fc("0x15b")],fc("0x109"))]))),r=new Map(n.map((t=>[t,t[fc("0x63")]()])));for(let t=0;t<e[fc("0xc4")];t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e.length;t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0xc4")];s++){const o=n[s];if(o[fc("0x8")]!==e[fc("0x8")]||o[fc("0x12b")].id!==e.author.id||o[fc("0x15b")]!==e[fc("0x15b")])continue;if(!kc(e,o))continue;if("attribute"==e[fc("0x8")]&&e.data[fc("0x18")]!=o.data[fc("0x18")])continue;if(fc("0xe4")==e[fc("0x8")]&&t[fc("0x29")](e.data.key))continue;const x=i[fc("0xf")](e),a=r[fc("0xf")](e),c=r[fc("0xf")](o),l=e[fc("0x12")]&&e[fc("0x12")][fc("0xc4")],u=o.commentThread&&o[fc("0x12")][fc("0xc4")];if(!l&&x(c,a))return t[fc("0x7a")](o,e),r.delete(e),!0;if(!u&&x(a,c))return t[fc("0x7a")](e,o),r[fc("0x91")](o),!0}return!1}}[fc("0x7a")](t,e){if(t[fc("0x142")])for(const n of e.getRanges())t[fc("0x80")](n);else{const n=e[fc("0x121")]()[fc("0x4a")];this[fc("0x2b")](t,this[fc("0x103")][fc("0x42")](t[fc("0x121")]()[fc("0x31")],n))}e[fc("0x1f")]()}[fc("0x84")](t,e){const n=t[fc("0x1c")]("format")||t[fc("0x1c")]("attribute")?"FORMATTING":t[fc("0x15f")]();return Qo(this[fc("0x35")][fc("0x114")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0x35")];(0,r.surroundingMarkersDetector)(this[fc("0x103")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x120")](t[fc("0xab")]);if(fc("0x92")===e){o[fc("0x124")](this[fc("0x84")](n,fc("0xb0")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x120")](t[fc("0xab")]);if("suggestion"===e){o[fc("0x124")](this._getMarkerAnnouncementText(n,fc("0xc6")));break}}o[fc("0xc4")]&&t.ui[fc("0xa3")][fc("0x60")](fc("0x106"),o.join(" "))}))}_processAttributeChanges(t){if(null!==this[fc("0xfa")])return!1;const e=this[fc("0x35")],n=e[fc("0xd5")][fc("0x70")][fc("0x52")][fc("0x3f")]();if(0==n[fc("0xc4")])return!1;const o=[],i=n[fc("0xe")]((t=>fc("0xe4")==t[fc("0x8")])),r=n.filter((t=>fc("0x88")==t.type&&fc("0x14d")!=t.name)),s=n[fc("0xe")]((t=>fc("0x6b")==t[fc("0x8")]&&"$text"!=t.name));for(const t of i)o.push({key:t[fc("0xda")],newValue:t[fc("0x5b")],oldValue:t[fc("0x113")],range:(x=t[fc("0x140")],null==x.end[fc("0x123")]&&x[fc("0x4a")][fc("0x4b")]==x[fc("0x31")][fc("0x6f")]?Cc(x[fc("0x31")][fc("0x6f")],e.model):x)});var x;for(const t of r){const n=s[fc("0x4")]((e=>e.position[fc("0x14a")](t[fc("0x96")])));n&&o.push({key:fc("0xc2"),newValue:t[fc("0xab")],oldValue:n[fc("0xab")],range:e.model.createRangeOn(t[fc("0x96")][fc("0x6f")])})}return 0!=o[fc("0xc4")]&&this[fc("0x14")](t,o)}[fc("0x3b")](t){let e=!1;const n=this[fc("0x35")][fc("0xd5")].document.differ[fc("0x154")]()[fc("0xe")]((t=>t[fc("0x7")][fc("0x162")]&&t[fc("0xab")][fc("0x1c")](fc("0x11f"))));for(const o of n){const{subType:n,id:i}=this[fc("0x120")](o[fc("0xab")]),r=n.split("|")[0];for(const n of this[fc("0x110")]({skipNotAttached:!0}))n.id!=i&&fc("0xe4")==n[fc("0x8")]&&n.data&&n.data[fc("0x17e")]==r&&n[fc("0x121")]()[fc("0x16f")](o.data[fc("0x162")])&&(this._reduceSuggestionAttributeRange(n,o.data[fc("0x162")],t),e=!0)}return e}_recordAttributeChanges(t){if(null!==this[fc("0xfa")])return void t();const n=this[fc("0x35")];this[fc("0xfa")]=n[fc("0xd5")].document[fc("0x77")],t();const o=new Map;for(const t of n[fc("0xd5")].document[fc("0xcc")].getOperations(this._recordAttributeSuggestionsFromVersion))if([fc("0x6e"),"addAttribute","removeAttribute",fc("0x2f")][fc("0xc")](t[fc("0x8")])){const e=t[fc("0x178")],n=o.get(e)||[];n[fc("0x124")](t),o.set(e,n)}this._recordAttributeSuggestionsFromVersion=null;for(const[t,i]of o){const o=(0,e.uid)();n[fc("0xd5")].enqueueChange(t,(t=>{const e=[];for(const t of i){let i,r,s,x;if("rename"==t.type){const e=t;i=Cc(e.position[fc("0x6f")],n[fc("0xd5")]),r="$elementName",s=e[fc("0xee")],x=e[fc("0x34")]}else{const e=t,o=this[fc("0x29")](e[fc("0x17e")]),a=this[fc("0xca")][fc("0xfc")](e.key);if(!o&&!a)continue;i=o?Cc(e.range[fc("0x31")][fc("0x6f")],n[fc("0xd5")]):e[fc("0x140")],r=e.key,s=fc("0x3")==t[fc("0x8")]?void 0:e[fc("0x5d")],x=e[fc("0x18")]}this[fc("0x38")](i,r,x,s,{groupId:o}),e[fc("0x124")]({range:i,key:r,newValue:s,oldValue:x})}this._reduceExistingSuggestions(t,e)}))}}_reduceExistingSuggestions(t,e){if(0==e[fc("0xc4")])return!1;let n=!1;for(const o of e){const e=this[fc("0x137")](o[fc("0x140")],"attribute").filter((t=>!t.meta[fc("0x87")]))[fc("0x10a")]((t=>t[fc("0x92")])),i=(0,r.hashObject)({newValue:o[fc("0x5d")]});e.filter((t=>{const[e,n]=t[fc("0x15b")][fc("0x5f")]("|");return e==o.key&&n!=i}))[fc("0x59")]((e=>{this[fc("0xf2")](e,o[fc("0x140")],t),n=!0}))}return n}[fc("0xf2")](t,e,n){const o=t[fc("0x121")]().getDifference(e);0!==o[fc("0xc4")]?1!==o[fc("0xc4")]?this._breakSuggestionMarker(t,e.start,e[fc("0x4a")]):this[fc("0x2b")](t,o[0]):n[fc("0xf6")](t[fc("0x10d")]())}}class pc{constructor(t){this[fc("0x93")]=t,this[fc("0x103")]=t[fc("0xd5")],this[fc("0x5c")]=new Map,this[fc("0x2")]=new Map,this._registerDefaultCallbacks()}[fc("0x119")](t,e,n,o,i,r){return new Jo(this[fc("0x103")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[fc("0x5")](t,e,fc("0xe1"))(...n),onDiscard:(...n)=>this.getSuggestionCallback(t,e,fc("0xa9"))(...n)})}[fc("0xe7")](t,e,n,o){const i=t+":"+e+":"+n;this[fc("0x5c")][fc("0x9c")](i,o)}[fc("0x5")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0x5c")][fc("0xf")](o)||this[fc("0x2")].get(t+":"+n)}[fc("0xe3")](){const t=()=>!1,e=t=>{t[fc("0x9b")](((t,e)=>t[fc("0x31")][fc("0x130")](e[fc("0x31")])?1:-1)),this[fc("0x103")][fc("0x8b")]((e=>{for(const n of t){let t;t=n.end[fc("0x171")]&&n.end[fc("0x4b")]==n[fc("0x31")][fc("0x6f")]?e.createSelection(n[fc("0x31")][fc("0x6f")],"on"):e[fc("0x1")](n),this[fc("0x103")][fc("0x129")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x103")][fc("0x8b")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t.map((t=>(Ec(t)&&(t=this[fc("0x103")][fc("0x42")](t[fc("0x4a")])),t)))[fc("0xe")]((t=>fc("0xd1")!==t[fc("0x66")][fc("0x125")]));if(r.length<1)return;const x=Array[fc("0x134")](this[fc("0x103")][fc("0x70")][fc("0x16b")][fc("0x63")]())[fc("0x10a")]((t=>s.LiveRange.fromRange(t)));n.setSelection(r);for(const t of this._editor.commands[fc("0x26")]())t[fc("0x155")]();i.push({forceDefaultExecution:!0}),this[fc("0x93")][fc("0x179")](o,...i);const a=x[fc("0xe")]((t=>fc("0xd1")!=t[fc("0x66")][fc("0x125")]));a.length>0&&n[fc("0xb3")](a);for(const t of x)t[fc("0xf5")]()}))},o=(t,e)=>1==t[fc("0xc4")]&&1==e.length&&t[0][fc("0x4a")][fc("0x14a")](e[0][fc("0x31")]),i=(t,e,n,o)=>Ac(t,e,n,o,this._model)?[t,e]:Ac(e,t,o,n,this[fc("0x103")])?[e,t]:null;this[fc("0x2")].set(fc("0x98"),t),this[fc("0x2")][fc("0x9c")](fc("0x8c"),e),this[fc("0x2")][fc("0x9c")]("insertion:join",o),this[fc("0x2")][fc("0x9c")](fc("0x105"),i),this._defaultCallbacks.set(fc("0x16"),e),this[fc("0x2")][fc("0x9c")](fc("0x4f"),t),this[fc("0x2")][fc("0x9c")](fc("0xfe"),o),this[fc("0x2")][fc("0x9c")]("deletion:chain",i),this._defaultCallbacks[fc("0x9c")](fc("0xd2"),n),this[fc("0x2")][fc("0x9c")]("formatInline:discard",t),this[fc("0x2")][fc("0x9c")](fc("0xf0"),o),this._defaultCallbacks[fc("0x9c")](fc("0x16d"),t),this[fc("0x2")][fc("0x9c")](fc("0x3c"),n),this[fc("0x2")][fc("0x9c")](fc("0x15d"),t),this._defaultCallbacks[fc("0x9c")](fc("0xbe"),o),this._defaultCallbacks[fc("0x9c")](fc("0x37"),t),this[fc("0x2")][fc("0x9c")](fc("0x144"),t),this[fc("0x2")][fc("0x9c")](fc("0x126"),((t,e)=>{if(!e)return;const n=this[fc("0x93")][fc("0x157")][fc("0xf")](hc);this._model.change((o=>{if(fc("0xc2")==e.key)for(const n of t){const t=n[fc("0x31")][fc("0x6f")],i=e.oldValue;o.rename(t,i)}else if(n[fc("0x29")](e[fc("0x17e")]))for(const n of t)void 0!==e.oldValue?o[fc("0x11c")](e[fc("0x17e")],e[fc("0x18")],n[fc("0x31")].nodeAfter):o[fc("0x3")](e[fc("0x17e")],n.start[fc("0x6f")]);else for(const n of t)e[fc("0x18")]?o[fc("0x11c")](e.key,e.oldValue,n):o[fc("0x3")](e[fc("0x17e")],n)}))})),this._defaultCallbacks.set(fc("0xff"),o)}}function bc(t,e,n){for(const o of e[fc("0x4b")][fc("0xdb")]({includeSelf:!0,parentFirst:!0})){if(o[fc("0x66")]==o)return!1;if(!n[fc("0xd9")](o))return!1;if(t[fc("0xbf")](o)||t[fc("0x3d")](o))return!0}return!1}function Ec(t){return t[fc("0x4a")][fc("0x4b")]==t[fc("0x31")][fc("0x6f")]&&t[fc("0x4a")][fc("0x76")]}function _c(t,e,n,o){const i=t=>!t[fc("0x61")].is(fc("0x86"))&&!o[fc("0xbf")](t[fc("0x61")]),r=t[fc("0x31")][fc("0x161")](i),s=t[fc("0x4a")][fc("0x161")](i,{direction:"backward"});return!(t.start[fc("0x14a")](r)&&t[fc("0x4a")][fc("0x14a")](s)||(r[fc("0x130")](s)?n.updateMarker(e,{range:n[fc("0x42")](r,s)}):n[fc("0xf6")](e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t.start[fc("0x6f")];return e&&e.is("element")}function Cc(t,e){const n=e[fc("0x69")].isObject(t)||e.schema.isSelectable(t);return e[fc("0x42")](e[fc("0xe0")](t,"before"),n?e[fc("0x152")](t):e[fc("0xe0")](t,"end"))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x4a")][fc("0x14a")](o[fc("0x31")]))return!0;if(t.type!=e.type)return!1;if(!n[fc("0x4a")][fc("0x11e")](o[fc("0x31")]))return!1;const r=i[fc("0x42")](n[fc("0x4a")],o.start)[fc("0x11b")]();for(const t of r)if(["elementStart","elementEnd"].includes(t[fc("0x8")])&&i[fc("0x69")][fc("0x3d")](t[fc("0x61")]))return!1;return!0}function kc(t,e){return!(!t[fc("0x36")]||!e[fc("0x36")])&&Go(t[fc("0x2d")],e[fc("0x2d")])}function Ic(t,e){const n=Sc(t[fc("0x2d")]),o=Sc(e);if(!t[fc("0x36")])return!1;for(const t of Object[fc("0x30")](o))if(!Go(n[t],o[t]))return!1;return!0}function Sc(t){const e=Object[fc("0x14c")]({},t);return delete e[fc("0x3e")],delete e[fc("0x15e")],e}const Rc=["acceptSuggestion","destroy","canEditAt","_acceptCommand","locale","isEnabled","get","view","_pendingAction","_editor","getRanges","model","_removePendingAction","_discardCommand","discardSuggestion","commands","stopListening","PendingActions","PENDING_ACTION_SUGGESTION","canAccept","unbind","_setPendingAction","execute","listenTo","change:isDirty","add","commentThreadController","plugins","bind","isDirty","canDiscard"];var Nc,vc;Nc=Rc,vc=307,function(t){for(;--t;)Nc.push(Nc.shift())}(++vc);const Lc=function(t,e){return Rc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0xe")]=e,this[Lc("0xa")]=n,this[Lc("0x1d")]=o,this[Lc("0xc")]=t,this[Lc("0x6")]=t[Lc("0x12")].get(Lc("0x3")),this[Lc("0x10")]=t[Lc("0x12")][Lc("0x9")](Lc("0x11")),this[Lc("0xa")].bind(Lc("0x8")).to(this[Lc("0x6")],this._discardCommand,((t,e)=>t||e)),this[Lc("0xa")][Lc("0x0")](Lc("0x16")).to(this._acceptCommand,Lc("0x8"),(t=>t&&this[Lc("0xc")][Lc("0xe")][Lc("0x5")](e[Lc("0xd")]()))),this[Lc("0xa")][Lc("0x0")]("canDiscard").to(this._discardCommand,"isEnabled",(t=>t&&this._editor[Lc("0xe")].canEditAt(e[Lc("0xd")]()))),this[Lc("0xb")]=null,n[Lc("0x1")]&&this[Lc("0x18")](),this[Lc("0x1a")](n,Lc("0x3"),(()=>this[Lc("0x3")]())),this[Lc("0x1a")](n,Lc("0x11"),(()=>this.discardSuggestion())),this[Lc("0x1a")](n,Lc("0x1b"),(()=>{n[Lc("0x1")]?this[Lc("0x18")]():this[Lc("0xf")]()}))}[Lc("0x3")](){this[Lc("0x6")][Lc("0x19")](this[Lc("0xe")].id)}[Lc("0x11")](){this[Lc("0x10")][Lc("0x19")](this.model.id)}[Lc("0x4")](){this[Lc("0xa")][Lc("0x17")](Lc("0x8")),this[Lc("0xa")][Lc("0x17")](Lc("0x16")),this[Lc("0xa")][Lc("0x17")](Lc("0x2")),this[Lc("0x13")](),this.commentThreadController[Lc("0x4")](),this[Lc("0xb")]&&this._removePendingAction()}[Lc("0x18")](){const t=Qo(this[Lc("0xc")][Lc("0x7")],Lc("0x15"));this[Lc("0xb")]=this[Lc("0xc")][Lc("0x1e")][Lc("0x9")](Lc("0x14"))[Lc("0x1c")](t)}[Lc("0xf")](){null!==this[Lc("0xb")]&&this[Lc("0xc")][Lc("0x1e")][Lc("0x9")](Lc("0x14")).remove(this[Lc("0xb")]),this[Lc("0xb")]=null}}const wc=["updateComment","addComment","canAccept","_createCommentViews","hasDirtyComment","commentThread","setData","length","_model","element","set","_localUser","assign","destroy","isEnabled","isActive","disabledSubmit","isReadOnly","focus","locale","isDirty","showInput","editorConfig","commentThreadInputView","value","editor","_config","authoredAt","bind","submit","delegate","commentsListView","fire","removeComment","commentInputView"];var Oc,Fc;Oc=wc,Fc=419,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this.commentsListView=null,this[Dc("0x18")]=null,this[Dc("0xb")](Dc("0x10"),!1),this.set(Dc("0x1c"),e.authoredAt),this[Dc("0x1d")](Dc("0x1c")).to(e),this[Dc("0xb")]("descriptionParts",[]),this[Dc("0xb")](Dc("0x15"),!1),this[Dc("0xb")](Dc("0xf"),!1),this.set(Dc("0x3"),!1),this[Dc("0xb")]("canDiscard",!1),this[Dc("0x9")]=e,this[Dc("0xc")]=n,this._config=o,o.disableComments?this[Dc("0xb")](Dc("0x8"),1):this[Dc("0x4")]()}focus(){this[Dc("0xa")][Dc("0x13")]()}[Dc("0xe")](){this.commentsListView&&this.commentsListView[Dc("0xe")](),this[Dc("0x18")]&&this.commentThreadInputView[Dc("0xe")](),super[Dc("0xe")]()}[Dc("0x4")](){const{CommentsListView:t}=this[Dc("0x1b")];this[Dc("0x20")]=new t(this[Dc("0x14")],this[Dc("0x9")].commentThread,Object[Dc("0xd")]({CommentView:this[Dc("0x1b")].CommentView},this[Dc("0x1b")])),this[Dc("0x20")][Dc("0x1f")](Dc("0x22")).to(this),this[Dc("0x20")].delegate(Dc("0x1")).to(this),this[Dc("0x20")][Dc("0x1d")](Dc("0x10")).to(this),this.set("length",this[Dc("0x20")][Dc("0x8")]+1),this[Dc("0x1d")](Dc("0x8")).to(this[Dc("0x20")],Dc("0x8"),(t=>t+1)),this[Dc("0x18")]=this._createCommentThreadInputView(),this.on(Dc("0x22"),(()=>this[Dc("0x13")]())),this[Dc("0x1d")]("isDirty").to(this[Dc("0x20")],Dc("0x5"),this.commentThreadInputView[Dc("0x0")],"value",((t,e)=>t||!!e))}_createCommentThreadInputView(){const{CommentThreadInputView:t}=this[Dc("0x1b")],e=new t(this.locale,this[Dc("0xc")],this._config[Dc("0x17")]),n=e.commentInputView;return e[Dc("0x1d")](Dc("0x16")).to(this,Dc("0x10"),this[Dc("0x9")][Dc("0x6")],Dc("0x12"),n,Dc("0x19"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x1e"),((t,e)=>{this[Dc("0x21")](Dc("0x2"),e),n[Dc("0x1a")][Dc("0x7")]("")})),n.on("cancel",(()=>this.focus())),n[Dc("0x1d")](Dc("0x11")).to(this._model[Dc("0x6")],Dc("0x12")),e}}const Pc=["ck-annotation__info","description","commentThreadInputView","innerHTML","acceptSuggestion","descriptionParts","set","querySelector","div","</p>","creator","discardSuggestion","isActive","join","getTemplate","title","ck-annotation__user","acceptButton","bind","map","ck-suggestion--accept","commentThread","locale","ck-annotation","time","canAccept","EXTERNAL_IMPORT_WORD_SUGGESTION","ck-suggestion-wrapper","getExternalSuggestionNote","element","source","createElement",'<span class="ck-suggestion-color" style="background-color: ',"EXTERNAL_AVATAR","ck-suggestion__info-name","author","ck-suggestion__info",".ck-annotation__content-wrapper","authoredAt","innerText","value","delegate","ck-annotation__main","isExternal",'"></span>',"<p>","name","attributes","render","extendTemplate","discardButton","ck-annotation__info-time","Accept suggestion","_config","isEnabled","_model","check",'" title="',"EXTERNAL_SUGGESTION","span","ck-annotation__actions","bindTemplate","ck-suggestion__actions","Discard suggestion","_createButton","@external","push","_descriptionElement","getUserViewNotificationText","split","ck-suggestion--disabled-comments","content","fire",'<span class="ck-suggestion-type">',"commentsListView","type","execute","ck-suggestion","editorReady","ck-suggestion-wrapper--active","ck-suggestion-","editorDestroyed","canDiscard","importWord","userView"];var Uc,jc;Uc=Pc,jc=286,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this[Gc("0x3c")]("type",""),this[Gc("0x48")]("type").to(this,Gc("0x3b"),(t=>t&&t[0]?t[0][Gc("0x2c")]:"")),this[Gc("0x48")]("description").to(this,Gc("0x3b"),this,Gc("0x42"),((t,e)=>{let n="";for(const e of t)n+=Gc("0xe")+Hc(e[Gc("0x28")],e.color)+Gc("0x3f");return e?n:(0,r.trimHtml)(n,{limit:140})})),this[Gc("0x24")]=null,this[Gc("0x47")]=this[Gc("0x21")](Qo(e,Gc("0x15")),t.icons[Gc("0x19")],Gc("0x4a"),Gc("0x3a"),"sw"),this[Gc("0x47")].bind(Gc("0x17")).to(this,Gc("0x4f")),this[Gc("0x13")]=this[Gc("0x21")](Qo(e,Gc("0x20")),t.icons.cancel,"ck-suggestion--discard",Gc("0x41"),"sw"),this.discardButton[Gc("0x48")](Gc("0x17")).to(this,Gc("0x33")),this[Gc("0x35")]=new r.UserView(e,this[Gc("0x18")].author,this[Gc("0x25")]()),this[Gc("0x35")][Gc("0x12")]({attributes:{class:["ck-suggestion__user",Gc("0x46")]}}),this.setTemplate(this[Gc("0x44")]())}[Gc("0x44")](){const t=this[Gc("0x1e")],e=[{tag:"div",attributes:{class:[Gc("0x5"),Gc("0x36")]},children:[{tag:"span",children:[{text:this[Gc("0x35")][Gc("0xf")]}],attributes:{class:[Gc("0x3"),"ck-annotation__info-name"]}},{tag:Gc("0x4e"),attributes:{datetime:t.to(Gc("0x7")),class:["ck-comment__info-time",Gc("0x14")]},children:[{text:t.to(Gc("0x7"),(t=>this[Gc("0x16")].formatDateTime(t)))}]}]},{tag:Gc("0x3e"),attributes:{class:[Gc("0x1f"),Gc("0x1d")]},children:[this[Gc("0x47")],this[Gc("0x13")]]},{tag:"div",attributes:{class:["ck-annotation__content-wrapper"]}}];this._model[Gc("0xc")]&&e[Gc("0x23")]({tag:"div",attributes:{class:["ck-comment__external"]},children:[{text:this[Gc("0x52")]()}]});const n={tag:Gc("0x3e"),attributes:{class:[Gc("0x51"),t.if(Gc("0x42"),Gc("0x30")),t.to(Gc("0x2c"),(t=>Gc("0x31")+t)),this[Gc("0x16")].disableComments&&Gc("0x27")],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x18")][Gc("0x4b")].id,"data-author-id":this._model[Gc("0x4")].id,tabindex:-1},children:[{tag:"div",attributes:{class:[Gc("0x2e"),Gc("0x4d")]},children:[this[Gc("0x35")],{tag:Gc("0x3e"),attributes:{class:["ck-suggestion__main",Gc("0xb")]},children:e}]}]};return this.commentsListView&&this.commentThreadInputView&&(n.children.push(this[Gc("0x2b")],this[Gc("0x38")]),this[Gc("0x2b")][Gc("0xa")]("editorReady").to(this),this[Gc("0x2b")][Gc("0xa")](Gc("0x32")).to(this),this[Gc("0x38")].delegate(Gc("0x2f")).to(this),this.commentThreadInputView[Gc("0xa")]("editorDestroyed").to(this)),n}[Gc("0x11")](){super.render(),this[Gc("0x24")]=this[Gc("0x53")][Gc("0x3d")](Gc("0x6")),this[Gc("0x24")][Gc("0x39")]=this[Gc("0x37")],this.on("change:description",((t,e,n)=>{this[Gc("0x24")][Gc("0x39")]=n}))}[Gc("0x21")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x4c")]);return s[Gc("0x3c")]({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x12")]({attributes:{class:n}}),s.on(Gc("0x2d"),(()=>{this[Gc("0x29")](o,this[Gc("0x18")].id)})),s}getExternalSuggestionNote(){return Gc("0x34")===this[Gc("0x18")][Gc("0x10")][Gc("0x22")].source?Qo(this.locale,Gc("0x50")):Qo(this[Gc("0x4c")],Gc("0x1b"))}[Gc("0x25")](){return this._model[Gc("0xc")]?Gc("0x34")===this[Gc("0x18")][Gc("0x10")][Gc("0x22")][Gc("0x54")]?Qo(this[Gc("0x4c")],"EXTERNAL_IMPORT_WORD_AVATAR",this._model[Gc("0x40")][Gc("0xf")]):Qo(this[Gc("0x4c")],Gc("0x2"),this[Gc("0x18")][Gc("0x40")][Gc("0xf")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x26")]("*")[Gc("0x49")](((t,e)=>e%2!=0?Gc("0x2a")+zc(t)+"</span>":zc(t)))[Gc("0x43")](""),e&&(n+=Gc("0x1")+e[Gc("0x9")]+Gc("0x1a")+e[Gc("0x45")]+Gc("0xd")),n}function zc(t){const e=document[Gc("0x0")](Gc("0x1c"));return e[Gc("0x8")]=t,e.innerHTML}const Wc=["_viewToController","_unbindEditors","comments.maxCommentCharsWhenCollapsed","listenTo","editor","getAllAdjacentSuggestions","head","createCommentThreadController","descriptionParts","Accept all suggestions","length","commandName","map","_handleSuggestionControllerDelayed","actionView","createAnnotationView","change:activeAnnotations","separator","activeAnnotations","isInContent","arrowView","isEnabled","discardButton","CommentsUI","values","_handleControllerBuffer","comments.editorConfig","editing","trackChanges","model","acceptSelectedSuggestions","discardSelectedSuggestions","isOn","comments","getByInnerView","filter","isDirty","_bindAnnotationToEditors","destroy","_disableComments","type","_initializeController","clear","_annotationViews","commentThread","_descriptionFactory","Track changes","_createUIButton","hasSuggestion","bind","plugins","Discard all selected suggestions","TrackChangesUI","pluginName","suggestionLoaded","get","_suggestionToController","define","activeMarkers","EditorAnnotations","keys","comments.maxThreadTotalWeight","previous","addSourceCollector","suggestion-","has","config","isMultiRange","_refreshActiveMarkers","buttonView","from","set","stopListening","mainView","view","componentFactory","createAnnotation","focus","delete","some","remove","getJoined","execute","add","reduce","trackChanges.SuggestionThreadView","locale","getSuggestion","size","comments.maxCommentsWhenCollapsed","getDescriptions","CommentsRepository","push","refreshSelectedViews","change:previous","innerView","SuggestionThreadView","suggestionChanged","Accept all selected suggestions","CommentView","button","Annotations","trackChanges.disableComments","_updateController","Discard all suggestions","commands","unbind","_destroyController","acceptAllSuggestions","TrackChangesEditing"];var Kc,qc;Kc=Wc,qc=322,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const $c=function(t,e){return Wc[t-=0]};class Xc extends t.Plugin{static get requires(){return[hc,r.Users,$c("0x63"),"Annotations",$c("0x43")]}static get[$c("0x3d")](){return $c("0x3c")}constructor(t){super(t),this._suggestionToController=new Map,this[$c("0x8")]=new Map,this._annotationViews=new Map,this[$c("0x21")]=new Map;const e=this[$c("0xc")][$c("0x4a")];e[$c("0x41")]($c("0x5d"),Vc),e[$c("0x41")]("trackChanges.disableComments",!1),this[$c("0x2f")]=e[$c("0x3f")]($c("0x0"))}[$c("0x15")](t,e){0===this[$c("0x21")][$c("0x60")]&&setTimeout((()=>{for(const[t,e]of this[$c("0x21")]){const n=this[$c("0x40")].has(t);n||e?n&&e&&this[$c("0x5")](t):this._initializeController(t)}this[$c("0xc")][$c("0x3a")][$c("0x3f")]("EditorAnnotations")[$c("0x65")](),this[$c("0x4c")](),this[$c("0x21")][$c("0x32")]()}),10),this[$c("0x21")][$c("0x4f")](t,e)}init(){const t=this[$c("0xc")],e=t.plugins[$c("0x3f")]($c("0x7")),n=t[$c("0x3a")][$c("0x3f")]($c("0x6d")),o=t[$c("0x3a")][$c("0x3f")]($c("0x43")),i=t.plugins[$c("0x3f")]($c("0x63"));t.ui[$c("0x53")][$c("0x5b")]("trackChanges",(t=>this[$c("0x37")](t))),o[$c("0x47")]((()=>{const t=[];for(const[e,n]of Array[$c("0x4e")](this._suggestionToController)){const o=e.getAllAdjacentSuggestions(),i=[];for(const t of o){if(!t[$c("0x1b")])continue;if(t[$c("0x4b")]){i[$c("0x64")](...t.getRanges());continue}const e=t.getFirstRange();if(i[$c("0x12")]>0){const t=i[0][$c("0x59")](e);if(t){i[0]=t;continue}}i[$c("0x64")](e)}t[$c("0x64")]([n[$c("0x52")],i])}return t})),this[$c("0xb")](e,$c("0x3e"),((t,e)=>{this[$c("0xb")](e,$c("0x66"),((t,n,o,i)=>{e[$c("0x1b")]&&(null==o?(this[$c("0x1")](i.head),this._handleSuggestionControllerDelayed(e,!1)):(this._updateController(o.head),null==i&&this[$c("0x15")](e,!0)))})),null!==e[$c("0x46")]?this._updateController(e[$c("0xe")]):this[$c("0x15")](e,!1)})),this[$c("0xb")](e,"suggestionUnloaded",((t,e,n)=>{this[$c("0x50")](e,$c("0x66")),this[$c("0x21")][$c("0x56")](e),this[$c("0x40")][$c("0x49")](e)&&this[$c("0x5")](e),n&&this._updateController(n[$c("0xe")])})),this[$c("0xb")](e,$c("0x69"),((t,e)=>{this[$c("0x1")](e)})),this.listenTo(n,$c("0x18"),(()=>{this[$c("0x4c")]()})),this[$c("0xb")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[$c("0x38")](n))return;const i=e[$c("0x5f")](n);this._suggestionToController[$c("0x3f")](i)[$c("0x52")][$c("0x55")]()}),{priority:"lowest"})}[$c("0x4c")](){const t=this.editor.plugins.get($c("0x6d")),e=this[$c("0xc")][$c("0x3a")][$c("0x3f")]("TrackChangesEditing"),n=Array[$c("0x4e")](t[$c("0x1a")],(t=>t[$c("0x67")]))[$c("0x2b")]((t=>this[$c("0x8")].has(t))),o=[];for(const t of n){const e=this[$c("0x8")][$c("0x3f")](t)[$c("0x25")].getAllAdjacentSuggestions();o[$c("0x64")](...e[$c("0x5c")](((t,e)=>[...t,...e.getMarkerNames()]),[]))}e[$c("0x42")]=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this.editor[$c("0x3")][$c("0x3f")]($c("0x24")),r=Qo(t,$c("0x36"));n[$c("0x4d")][$c("0x4f")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n.buttonView.bind($c("0x28")).to(o,"value"),n.buttonView.on("execute",(()=>{o[$c("0x5a")](),this.editor.editing[$c("0x52")][$c("0x55")]()}));const s=new e.Collection,x=[{type:"switchbutton",model:{withText:!0,label:r,commandName:"trackChanges"}},{type:$c("0x19")},{type:$c("0x6c"),model:{withText:!0,label:Qo(t,$c("0x11")),commandName:$c("0x6")}},{type:$c("0x6c"),model:{withText:!0,label:Qo(t,$c("0x6a")),commandName:$c("0x26")}},{type:$c("0x6c"),model:{withText:!0,label:Qo(t,$c("0x2")),commandName:"discardAllSuggestions"}},{type:$c("0x6c"),model:{withText:!0,label:Qo(t,$c("0x3b")),commandName:$c("0x27")}}];for(const t of x){let e={type:$c("0x19")};if(t[$c("0x25")]){const n=new i.Model(t[$c("0x25")]),o=this[$c("0xc")][$c("0x3")][$c("0x3f")](n[$c("0x13")]);n[$c("0x39")]("isOn",$c("0x1d")).to(o,"value",$c("0x1d")),e={type:t[$c("0x30")],model:n}}s[$c("0x5b")](e)}(0,i.addListToDropdown)(n,s);const a=x[$c("0x2b")]((t=>null!=t[$c("0x25")]))[$c("0x14")]((t=>this[$c("0xc")].commands[$c("0x3f")](t[$c("0x25")].commandName))),c=n[$c("0x4d")];return c[$c("0x16")].unbind($c("0x1d")),c[$c("0x1c")][$c("0x4")]($c("0x1d")),c.actionView[$c("0x39")]($c("0x1d")).to(o,$c("0x1d")),c[$c("0x1c")][$c("0x39")]($c("0x1d")).toMany(a,$c("0x1d"),((...t)=>t[$c("0x57")]((t=>t)))),n.on($c("0x5a"),(t=>{this[$c("0xc")][$c("0x5a")](t.source.commandName),this.editor[$c("0x23")][$c("0x52")].focus()})),n}[$c("0x31")](t){const e=this[$c("0xc")],n=e[$c("0x4a")],o=e[$c("0x3a")][$c("0x3f")]($c("0x6d")),i=e[$c("0x3a")][$c("0x3f")]($c("0x63")),s=e[$c("0x3a")][$c("0x3f")]($c("0x43")),x=e[$c("0x3a")][$c("0x3f")](r.Users).me,a=n[$c("0x3f")]($c("0x24"))[$c("0x68")],{CommentsListView:c,CommentThreadInputView:l}=e[$c("0x3a")][$c("0x3f")]($c("0x1f"));let u,d;this[$c("0x33")][$c("0x49")](t.id)?(d=this[$c("0x33")][$c("0x3f")](t.id),u=d.mainView):(u=new a(e.locale,t,x,{disableComments:this._disableComments,editorConfig:n.get($c("0x22")),maxCommentsWhenCollapsed:n[$c("0x3f")]($c("0x61")),maxThreadTotalWeight:n[$c("0x3f")]($c("0x45")),maxCommentCharsWhenCollapsed:n[$c("0x3f")]($c("0xa")),formatDateTime:(0,r.getDateTimeFormatter)(n.get($c("0x5e"))),CommentView:n[$c("0x3f")]($c("0x29"))[$c("0x6b")],CommentsListView:c,CommentThreadInputView:l}),u.acceptButton.on($c("0x5a"),(()=>{e[$c("0x23")][$c("0x52")][$c("0x55")]()})),u[$c("0x1e")].on($c("0x5a"),(()=>{e.editing[$c("0x52")][$c("0x55")]()})),d=o[$c("0x17")](this[$c("0xc")][$c("0x5e")],u),d.bind($c("0x2c")).to(u,"isDirty"),d[$c("0x39")]($c("0x12")).to(u),d[$c("0x39")]($c("0x30")).to(u,"type",(t=>$c("0x48")+t)),this[$c("0x33")][$c("0x4f")](t.id,d));const g=i[$c("0xf")](t[$c("0x34")],u),f=new Mc(e,t,u,g),m=t[$c("0xd")]().filter((t=>t[$c("0x1b")]));u[$c("0x10")]=e.plugins[$c("0x3f")]($c("0x7"))[$c("0x35")][$c("0x62")](m),this[$c("0x40")][$c("0x4f")](t,f),this[$c("0x8")].set(u,f);const h=o[$c("0x54")]({view:d,target:()=>{const n=[],o=t[$c("0xd")]()[$c("0x2b")]((t=>t[$c("0x1b")]));for(const t of o)n[$c("0x64")](...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e.editing,n)},type:()=>"suggestion-"+f[$c("0x52")][$c("0x30")]});i[$c("0x2d")](u,h),o[$c("0x5b")](h),s.registerAnnotation(h)}[$c("0x5")](t){const e=this[$c("0xc")][$c("0x3a")].get("CommentsRepository"),n=this[$c("0xc")][$c("0x3a")].get("Annotations"),o=this[$c("0x40")][$c("0x3f")](t),i=o[$c("0x52")],r=n[$c("0x2a")](i);e[$c("0x9")](i),r&&n[$c("0x58")](r),this[$c("0x40")][$c("0x56")](t),this[$c("0x8")][$c("0x56")](i),o[$c("0x2e")]()}[$c("0x1")](t){if(!t.isInContent||!this._suggestionToController[$c("0x49")](t))return;const e=this[$c("0xc")][$c("0x3a")].get($c("0x7")),n=this[$c("0x40")][$c("0x3f")](t),o=t[$c("0xd")]();n[$c("0x52")][$c("0x10")]=e[$c("0x35")][$c("0x62")](o)}[$c("0x2e")](){for(const t of this._suggestionToController[$c("0x44")]())this[$c("0x5")](t);for(const t of this[$c("0x33")][$c("0x20")]())t[$c("0x51")][$c("0x2e")]();super[$c("0x2e")]()}}var Zc,Yc,Jc=["addSuggestionData","requires","getSuggestion","get","getSuggestions","editor","Comments","addSuggestion","plugins","adapter"];Zc=Jc,Yc=337,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x4")](){return[hc,Xc,Qc("0x9")]}static get pluginName(){return"TrackChanges"}set[Qc("0x2")](t){this.editor[Qc("0x1")][Qc("0x6")](hc)[Qc("0x2")]=t}get[Qc("0x2")](){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x2")]}[Qc("0x0")](t){return this.editor[Qc("0x1")].get(hc)[Qc("0x3")](t)}[Qc("0x7")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x7")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x8")][Qc("0x1")][Qc("0x6")](hc)[Qc("0x5")](t)}}const el=["init","appendChild","define","discardAllSuggestions","create","constructor","editorCreator","data","getDataWithAcceptedSuggestions","trackChangesData.editorCreator","TrackChangesEditing","createDocumentFragment","div","requires","addUser","_adapter","getFullData","getUser","getRootNames","trackChangesData","model","useAnonymousUser","name","track-changes-data-invalid-editor-creator","acceptAllSuggestions","document","editor","createElement","users","end","push","plugins","config","function","TrackChangesDataGetter","addSuggestionData","get","getRootsAttributes","reduce","Users","rootsAttributes","execute"];var nl,ol;nl=el,ol=352,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=["Pagination"];class sl extends t.Plugin{static get[il("0x27")](){return[hc]}static get pluginName(){return"TrackChangesData"}init(){const t=this[il("0xa")];if(t[il("0x10")][il("0x1c")](il("0x23"),(e=>{const n=t[il("0x4")][il("0x9")][il("0x2")]()[il("0x16")](((t,e)=>(t[e]="",t)),{});return t[il("0x1f")][il("0x1e")](n,e)})),il("0x11")!=typeof t[il("0x10")][il("0x14")](il("0x3"))[il("0x20")])throw new e.CKEditorError(il("0x7"))}[il("0x22")](t){return cl(this[il("0xa")],!0,t)}getDataWithDiscardedSuggestions(t){return cl(this[il("0xa")],!1,t)}}class xl extends t.Plugin{static get pluginName(){return il("0x12")}constructor(t){super(t),this.result=il("0xd")}[il("0x1a")](){this[il("0xa")][il("0xf")].get("CommentsRepository")[il("0x29")]={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[il("0xa")][il("0xf")][il("0x14")](il("0x24"))[il("0x29")]=null}}function al(t){return void 0!==t[il("0x15")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0xf")][il("0xe")](hc,xl),o[il("0x18")]=al(t)?t[il("0x15")]():void 0;const i=document[il("0x25")](),s=t.config[il("0x14")](il("0x3"))[il("0x20")],x=await s(o,(()=>function(t){const e=document[il("0xb")](il("0x26"));return t[il("0x1b")](e),e}(i)));!function(t,e){const n=t[il("0x4")][il("0x9")][il("0x2")]()[il("0x16")](((e,n)=>(e[n]=t[il("0x21")][il("0x14")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x17"))[il("0xc")].map((t=>({id:t.id,name:t[il("0x6")]}))),i=t[il("0xf")][il("0x14")](il("0x24")).getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e[il("0xf")][il("0x14")]("Users"),s=e[il("0xf")][il("0x14")](il("0x24"));for(const t of o)r[il("0x1")](t.id)||r[il("0x28")](t);r.me||r[il("0x5")]();for(const t of i)s[il("0x13")](t);e[il("0x21")].set(n)}(t,x),x[il("0x19")](il(e?"0x8":"0x1d"));const a=al(x)?x[il("0x0")](n):x[il("0x21")][il("0x14")](n);return await x.destroy(),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|
|
5
|
+
*/(()=>{var t={417:(t,e,n)=>{t.exports=n(720)("./src/collaboration-core.js")},704:(t,e,n)=>{t.exports=n(79)("./src/core.js")},492:(t,e,n)=>{t.exports=n(79)("./src/engine.js")},331:(t,e,n)=>{t.exports=n(79)("./src/enter.js")},181:(t,e,n)=>{t.exports=n(79)("./src/typing.js")},273:(t,e,n)=>{t.exports=n(79)("./src/ui.js")},209:(t,e,n)=>{t.exports=n(79)("./src/utils.js")},995:(t,e,n)=>{t.exports=n(79)("./src/widget.js")},720:t=>{"use strict";t.exports=CKEditor5.collaborationDll},79:t=>{"use strict";t.exports=CKEditor5.dll}},e={};function n(o){var i=e[o];if(void 0!==i)return i.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:()=>Bc,TrackChanges:()=>tl,TrackChangesData:()=>sl,TrackChangesEditing:()=>hc});var t=n(704),e=n(209),i=n(273),r=n(417),s=n(492),x=n(995);const a=["isEnabled","affectsData","_enabledCommands","_disableUnsupportedCommands","refresh","commands","execute","_isEnabledBasedOnSelection","value","editor","_enableCommands","TrackChangesCommand"];var c,l;c=a,l=278,function(t){for(;--t;)c.push(c.shift())}(++l);const u=function(t,e){return a[t-=0]};class d extends t.Command{constructor(t,e){super(t),this[u("0x0")]=e,this[u("0x6")]=!1,this[u("0x2")](),this[u("0x5")]=!1}[u("0x2")](){this[u("0xa")]=!0}[u("0x4")](){this[u("0x6")]=!this[u("0x6")],this.value?this[u("0x1")]():this[u("0x8")]()}[u("0x1")](){for(const t of this[u("0x7")].commands[u("0x3")]())t[u("0xb")]&&!this[u("0x0")].has(t)&&t.forceDisabled(u("0x9"))}_enableCommands(){for(const t of this.editor[u("0x3")][u("0x3")]())t[u("0xb")]&&!this._enabledCommands.has(t)&&t.clearForceDisabled(u("0x9"))}}const g=["isEnabled","getRanges","_suggestions","acceptSuggestion","plugins","TrackChangesEditing","editor","get","execute","canEditAt","model","_isEnabledBasedOnSelection","refresh"];var f,m;f=g,m=395,function(t){for(;--t;)f.push(f.shift())}(++m);const h=function(t,e){return g[t-=0]};class p extends t.Command{constructor(t,e){super(t),this[h("0xa")]=e,this[h("0x7")](),this[h("0x6")]=!1}[h("0x7")](){this[h("0x8")]=!0}[h("0x3")](t){const n=this[h("0xa")].get(t);if(!n)throw new e.CKEditorError("track-changes-accept-suggestion-not-found",this);const o=n[h("0x9")]();this[h("0x1")][h("0x5")][h("0x4")](o)&&this[h("0x1")][h("0xc")][h("0x2")](h("0x0"))[h("0xb")](n)}}const b=["discardSuggestion","get","_isEnabledBasedOnSelection","_suggestions","model","canEditAt","isEnabled","getRanges","TrackChangesEditing","plugins","track-changes-discard-suggestion-not-found","refresh"];var E,_;E=b,_=136,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("0xb")]=e,this[T("0x7")](),this[T("0xa")]=!1}[T("0x7")](){this[T("0x2")]=!0}execute(t){const n=this._suggestions[T("0x9")](t);if(!n)throw new e.CKEditorError(T("0x6"),this);const o=n[T("0x3")]();this.editor[T("0x0")][T("0x1")](o)&&this.editor[T("0x5")][T("0x9")](T("0x4"))[T("0x8")](n)}}const C=["isInContent","createPositionAt","map","add","color","isIntersecting","push","sort","length","createPositionBefore","replace","from","isMultiRange","next","schema","value","type","change","createRange","start","isArray","isTouching"," [color ","getRanges","createPositionAfter","isObject","deletion","content"];var A,k;A=C,k=238,function(t){for(;--t;)A.push(A.shift())}(++k);const I=function(t,e){return C[t-=0]};function R(t){return t[I("0x15")](((t,e)=>"deletion"==t[I("0x2")]&&I("0xc")!=e[I("0x2")]?-1:I("0xc")!=t.type&&"deletion"==e.type?1:0))}function S(t,e){let n,o=0;const i=[],r=e[I("0x0")];for(;o<t[I("0x16")];){const s=t[o],x=t[o+1];n||(n=e[I("0x17")](s)),v(e,s,x)||(i[I("0x14")](e[I("0x4")](n,r[I("0xb")](s)?e[I("0xa")](s):e[I("0xf")](s,"end"))),n=null),o++}return i}function v(t,e,n){if(!n)return!1;const o=t[I("0xa")](e),i=t[I("0x17")](n);return o[I("0x7")](i)}function N(t,e,n){for(;n[I("0x16")];){const o=n.splice(0,100);t[I("0x3")]((()=>{for(const t of o)t.isInContent&&e.execute(t.id)}))}}const L=["values","model","_command","refresh","from","isInContent","canEditAt","_suggestions","some","editor","_isEnabledBasedOnSelection"];var M,w;M=L,w=139,function(t){for(;--t;)M.push(M.shift())}(++w);const O=function(t,e){return L[t-=0]};class F extends t.Command{constructor(t,e,n){super(t),this[O("0x6")]=e,this[O("0x0")]=n,this.refresh(),this[O("0x3")]=!1}[O("0x7")](){const t=Array[O("0x8")](this[O("0x0")].values())[O("0x1")]((t=>t[O("0x9")]));this.isEnabled=this[O("0x6")].isEnabled&&t}execute(){const t=R(Array[O("0x8")](this[O("0x0")][O("0x4")]()));for(const e of t){const t=e.getRanges();if(!this[O("0x2")].model[O("0xa")](t))return}N(this.editor[O("0x5")],this[O("0x6")],t)}}const D=["values","editor","refresh","from","selection","_selectedSuggestions","execute","_isEnabledBasedOnSelection","isEnabled","size","document","_command","model","_suggestions"];var B,P;B=D,P=433,function(t){for(;--t;)B.push(B.shift())}(++P);const U=function(t,e){return D[t-=0]};class j extends t.Command{constructor(t,e,n){super(t),this._command=e,this[U("0x0")]=n,this[U("0x6")]=new Set,this[U("0x3")](),this[U("0x8")]=!1}[U("0x3")](){const t=this.editor[U("0xd")][U("0xb")][U("0x5")],e=Array[U("0x4")](this[U("0x0")][U("0x1")]());this._selectedSuggestions=function(t,e){const n=Array[I("0x19")](t.getRanges()),o=new Set;for(const i of e)if(i[I("0xe")])for(const e of n)for(const n of i[I("0x9")]())(e[I("0x13")](n)||t.isCollapsed&&!i[I("0x1a")]&&i[I("0x1b")]&&n.end[I("0x7")](e[I("0x5")]))&&o[I("0x11")](i);return o}(t,e),this.isEnabled=this._command[U("0x9")]&&!!this._selectedSuggestions[U("0xa")]}[U("0x7")](){const t=R(Array.from(this[U("0x6")]));for(const e of t){const t=e.getRanges();if(!this.editor[U("0xd")].canEditAt(t))return}N(this[U("0x2")][U("0xd")],this[U("0xc")],t)}}const G=function(){this.__data__=[],this.size=0};const V=function(t,e){return t===e||t!=t&&e!=e};const H=function(t,e){for(var n=t.length;n--;)if(V(t[n][0],e))return n;return-1};var z=Array.prototype.splice;const W=function(t){var e=this.__data__,n=H(e,t);return!(n<0)&&(n==e.length-1?e.pop():z.call(e,n,1),--this.size,!0)};const K=function(t){var e=this.__data__,n=H(e,t);return n<0?void 0:e[n][1]};const q=function(t){return H(this.__data__,t)>-1};const X=function(t,e){var n=this.__data__,o=H(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=W,$.prototype.get=K,$.prototype.has=q,$.prototype.set=X;const Z=$;const Y=function(){this.__data__=new Z,this.size=0};const J=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};const Q=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 it=ot.Symbol;var rt=Object.prototype,st=rt.hasOwnProperty,xt=rt.toString,at=it?it.toStringTag:void 0;const ct=function(t){var e=st.call(t,at),n=t[at];try{t[at]=void 0;var o=!0}catch(t){}var i=xt.call(t);return o&&(e?t[at]=n:delete t[at]),i};var lt=Object.prototype.toString;const ut=function(t){return lt.call(t)};var dt=it?it.toStringTag:void 0;const gt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":dt&&dt in Object(t)?ct(t):ut(t)};const ft=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)};const mt=function(t){if(!ft(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,At=Object.prototype,kt=Ct.toString,It=At.hasOwnProperty,Rt=RegExp("^"+kt.call(It).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");const St=function(t){return!(!ft(t)||Et(t))&&(mt(t)?Rt:yt).test(Tt(t))};const vt=function(t,e){return null==t?void 0:t[e]};const Nt=function(t,e){var n=vt(t,e);return St(n)?n:void 0};const Lt=Nt(ot,"Map");const Mt=Nt(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 Dt=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 Bt=Object.prototype.hasOwnProperty;const Pt=function(t){var e=this.__data__;return Mt?void 0!==e[t]:Bt.call(e,t)};const Ut=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 jt(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])}}jt.prototype.clear=wt,jt.prototype.delete=Ot,jt.prototype.get=Dt,jt.prototype.has=Pt,jt.prototype.set=Ut;const Gt=jt;const Vt=function(){this.size=0,this.__data__={hash:new Gt,map:new(Lt||Z),string:new Gt}};const Ht=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};const zt=function(t,e){var n=t.__data__;return Ht(e)?n["string"==typeof e?"string":"hash"]:n.map};const Wt=function(t){var e=zt(this,t).delete(t);return this.size-=e?1:0,e};const Kt=function(t){return zt(this,t).get(t)};const qt=function(t){return zt(this,t).has(t)};const Xt=function(t,e){var n=zt(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function $t(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}$t.prototype.clear=Vt,$t.prototype.delete=Wt,$t.prototype.get=Kt,$t.prototype.has=qt,$t.prototype.set=Xt;const Zt=$t;const Yt=function(t,e){var n=this.__data__;if(n instanceof Z){var o=n.__data__;if(!Lt||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new Zt(o)}return n.set(t,e),this.size=n.size,this};function Jt(t){var e=this.__data__=new Z(t);this.size=e.size}Jt.prototype.clear=Y,Jt.prototype.delete=J,Jt.prototype.get=Q,Jt.prototype.has=tt,Jt.prototype.set=Yt;const Qt=Jt;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=Nt(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 ie=function(t,e,n){var o=t[e];oe.call(t,e)&&V(o,n)&&(void 0!==n||e in t)||ne(t,e,n)};const re=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var x=e[r],a=o?o(n[x],t[x],x,n,t):void 0;void 0===a&&(a=t[x]),i?ne(n,x,a):ie(n,x,a)}return n};const se=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o};const xe=function(t){return null!=t&&"object"==typeof t};const ae=function(t){return xe(t)&&"[object Arguments]"==gt(t)};var ce=Object.prototype,le=ce.hasOwnProperty,ue=ce.propertyIsEnumerable;const de=ae(function(){return arguments}())?ae:function(t){return xe(t)&&le.call(t,"callee")&&!ue.call(t,"callee")};const ge=Array.isArray;const fe=function(){return!1};var me="object"==typeof exports&&exports&&!exports.nodeType&&exports,he=me&&"object"==typeof module&&module&&!module.nodeType&&module,pe=he&&he.exports===me?ot.Buffer:void 0;const be=(pe?pe.isBuffer:void 0)||fe;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 Ae=function(t){return function(e){return t(e)}};var ke="object"==typeof exports&&exports&&!exports.nodeType&&exports,Ie=ke&&"object"==typeof module&&module&&!module.nodeType&&module,Re=Ie&&Ie.exports===ke&&et.process;const Se=function(){try{var t=Ie&&Ie.require&&Ie.require("util").types;return t||Re&&Re.binding&&Re.binding("util")}catch(t){}}();var ve=Se&&Se.isTypedArray;const Ne=ve?Ae(ve):Ce;var Le=Object.prototype.hasOwnProperty;const Me=function(t,e){var n=ge(t),o=!n&&de(t),i=!n&&!o&&be(t),r=!n&&!o&&!i&&Ne(t),s=n||o||i||r,x=s?se(t.length,String):[],a=x.length;for(var c in t)!e&&!Le.call(t,c)||s&&("length"==c||i&&("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 De=Fe(Object.keys,Object);var Be=Object.prototype.hasOwnProperty;const Pe=function(t){if(!Oe(t))return De(t);var e=[];for(var n in Object(t))Be.call(t,n)&&"constructor"!=n&&e.push(n);return e};const Ue=function(t){return null!=t&&Te(t.length)&&!mt(t)};const je=function(t){return Ue(t)?Me(t):Pe(t)};const Ge=function(t,e){return t&&re(e,je(e),t)};const Ve=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e};var He=Object.prototype.hasOwnProperty;const ze=function(t){if(!ft(t))return Ve(t);var e=Oe(t),n=[];for(var o in t)("constructor"!=o||!e&&He.call(t,o))&&n.push(o);return n};const We=function(t){return Ue(t)?Me(t,!0):ze(t)};const Ke=function(t,e){return t&&re(e,We(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,Ze=$e?$e.allocUnsafe:void 0;const Ye=function(t,e){if(e)return t.slice();var n=t.length,o=Ze?Ze(n):new t.constructor(n);return t.copy(o),o};const Je=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e};const Qe=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}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),Qe(nn(t),(function(e){return en.call(t,e)})))}:tn;const rn=function(t,e){return re(t,on(t),e)};const sn=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t};const xn=Fe(Object.getPrototypeOf,Object);const an=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)sn(e,on(t)),t=xn(t);return e}:tn;const cn=function(t,e){return re(t,an(t),e)};const ln=function(t,e,n){var o=e(t);return ge(t)?o:sn(o,n(t))};const un=function(t){return ln(t,je,on)};const dn=function(t){return ln(t,We,an)};const gn=Nt(ot,"DataView");const fn=Nt(ot,"Promise");const mn=Nt(ot,"Set");const hn=Nt(ot,"WeakMap");var pn="[object Map]",bn="[object Promise]",En="[object Set]",_n="[object WeakMap]",Tn="[object DataView]",yn=Tt(gn),Cn=Tt(Lt),An=Tt(fn),kn=Tt(mn),In=Tt(hn),Rn=gt;(gn&&Rn(new gn(new ArrayBuffer(1)))!=Tn||Lt&&Rn(new Lt)!=pn||fn&&Rn(fn.resolve())!=bn||mn&&Rn(new mn)!=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 An:return bn;case kn:return En;case In:return _n}return e});const Sn=Rn;var vn=Object.prototype.hasOwnProperty;const Nn=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&vn.call(t,"index")&&(n.index=t.index,n.input=t.input),n};const Ln=ot.Uint8Array;const Mn=function(t){var e=new t.constructor(t.byteLength);return new Ln(e).set(new Ln(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 Dn=it?it.prototype:void 0,Bn=Dn?Dn.valueOf:void 0;const Pn=function(t){return Bn?Object(Bn.call(t)):{}};const Un=function(t,e){var n=e?Mn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};const jn=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 Un(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 Pn(t)}};var Gn=Object.create;const Vn=function(){function t(){}return function(e){if(!ft(e))return{};if(Gn)return Gn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();const Hn=function(t){return"function"!=typeof t.constructor||Oe(t)?{}:Vn(xn(t))};const zn=function(t){return xe(t)&&"[object Map]"==Sn(t)};var Wn=Se&&Se.isMap;const Kn=Wn?Ae(Wn):zn;const qn=function(t){return xe(t)&&"[object Set]"==Sn(t)};var Xn=Se&&Se.isSet;const $n=Xn?Ae(Xn):qn;var Zn="[object Arguments]",Yn="[object Function]",Jn="[object Object]",Qn={};Qn[Zn]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object DataView]"]=Qn["[object Boolean]"]=Qn["[object Date]"]=Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn[Jn]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object Symbol]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Error]"]=Qn[Yn]=Qn["[object WeakMap]"]=!1;const to=function t(e,n,o,i,r,s){var x,a=1&n,c=2&n,l=4&n;if(o&&(x=r?o(e,i,r,s):o(e)),void 0!==x)return x;if(!ft(e))return e;var u=ge(e);if(u){if(x=Nn(e),!a)return Je(e,x)}else{var d=Sn(e),g=d==Yn||"[object GeneratorFunction]"==d;if(be(e))return Ye(e,a);if(d==Jn||d==Zn||g&&!r){if(x=c||g?{}:Hn(e),!a)return c?cn(e,Ke(x,e)):rn(e,Ge(x,e))}else{if(!Qn[d])return r?e:{};x=jn(e,d,a)}}s||(s=new Qt);var f=s.get(e);if(f)return f;s.set(e,x),$n(e)?e.forEach((function(i){x.add(t(i,n,o,i,e,s))})):Kn(e)&&e.forEach((function(i,r){x.set(r,t(i,n,o,r,e,s))}));var m=u?void 0:(l?c?dn:un:c?We:je)(e);return te(m||e,(function(i,r){m&&(i=e[r=i]),ie(x,r,t(i,n,o,r,e,s))})),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)\]/,io=/^\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))||(io.test(t)||!oo.test(t)||null!=e&&t in Object(e))};function so(t,e){if("function"!=typeof t||null!=e&&"function"!=typeof e)throw new TypeError("Expected a function");var n=function(){var o=arguments,i=e?e.apply(this,o):o[0],r=n.cache;if(r.has(i))return r.get(i);var s=t.apply(this,o);return n.cache=r.set(i,s)||r,s};return n.cache=new(so.Cache||Zt),n}so.Cache=Zt;const xo=so;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,i){e.push(o?i.replace(co,"$1"):n||t)})),e}));const uo=function(t,e){for(var n=-1,o=null==t?0:t.length,i=Array(o);++n<o;)i[n]=e(t[n],n,t);return i};var go=it?it.prototype:void 0,fo=go?go.toString:void 0;const mo=function t(e){if("string"==typeof e)return e;if(ge(e))return uo(e,t)+"";if(no(e))return fo?fo.call(e):"";var n=e+"";return"0"==n&&1/e==-Infinity?"-0":n};const ho=function(t){return null==t?"":mo(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(!ft(t))return t;for(var i=-1,r=(e=po(e,t)).length,s=r-1,x=t;null!=x&&++i<r;){var a=bo(e[i]),c=n;if("__proto__"===a||"constructor"===a||"prototype"===a)return t;if(i!=s){var l=x[a];void 0===(c=o?o(l,a,x):void 0)&&(c=ft(l)?l:_e(e[i+1])?[]:{})}ie(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 Zt;++e<n;)this.add(t[e])}Co.prototype.add=Co.prototype.push=To,Co.prototype.has=yo;const Ao=Co;const ko=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 Io=function(t,e){return t.has(e)};const Ro=function(t,e,n,o,i,r){var s=1&n,x=t.length,a=e.length;if(x!=a&&!(s&&a>x))return!1;var c=r.get(t),l=r.get(e);if(c&&l)return c==e&&l==t;var u=-1,d=!0,g=2&n?new Ao:void 0;for(r.set(t,e),r.set(e,t);++u<x;){var f=t[u],m=e[u];if(o)var h=s?o(m,f,u,e,t,r):o(f,m,u,t,e,r);if(void 0!==h){if(h)continue;d=!1;break}if(g){if(!ko(e,(function(t,e){if(!Io(g,e)&&(f===t||i(f,t,n,o,r)))return g.push(e)}))){d=!1;break}}else if(f!==m&&!i(f,m,n,o,r)){d=!1;break}}return r.delete(t),r.delete(e),d};const So=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n};const vo=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n};var No=it?it.prototype:void 0,Lo=No?No.valueOf:void 0;const Mo=function(t,e,n,o,i,r,s){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 Ln(t),new Ln(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return V(+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=vo),t.size!=e.size&&!a)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var l=Ro(x(t),x(e),o,i,r,s);return s.delete(t),l;case"[object Symbol]":if(Lo)return Lo.call(t)==Lo.call(e)}return!1};var wo=Object.prototype.hasOwnProperty;const Oo=function(t,e,n,o,i,r){var s=1&n,x=un(t),a=x.length;if(a!=un(e).length&&!s)return!1;for(var c=a;c--;){var l=x[c];if(!(s?l in e:wo.call(e,l)))return!1}var u=r.get(t),d=r.get(e);if(u&&d)return u==e&&d==t;var g=!0;r.set(t,e),r.set(e,t);for(var f=s;++c<a;){var m=t[l=x[c]],h=e[l];if(o)var p=s?o(h,m,l,e,t,r):o(m,h,l,t,e,r);if(!(void 0===p?m===h||i(m,h,n,o,r):p)){g=!1;break}f||(f="constructor"==l)}if(g&&!f){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]",Do="[object Array]",Bo="[object Object]",Po=Object.prototype.hasOwnProperty;const Uo=function(t,e,n,o,i,r){var s=ge(t),x=ge(e),a=s?Do:Sn(t),c=x?Do:Sn(e),l=(a=a==Fo?Bo:a)==Bo,u=(c=c==Fo?Bo:c)==Bo,d=a==c;if(d&&be(t)){if(!be(e))return!1;s=!0,l=!1}if(d&&!l)return r||(r=new Qt),s||Ne(t)?Ro(t,e,n,o,i,r):Mo(t,e,a,n,o,i,r);if(!(1&n)){var g=l&&Po.call(t,"__wrapped__"),f=u&&Po.call(e,"__wrapped__");if(g||f){var m=g?t.value():t,h=f?e.value():e;return r||(r=new Qt),i(m,h,n,o,r)}}return!!d&&(r||(r=new Qt),Oo(t,e,n,o,i,r))};const jo=function t(e,n,o,i,r){return e===n||(null==e||null==n||!xe(e)&&!xe(n)?e!=e&&n!=n:Uo(e,n,o,i,t,r))};const Go=function(t,e){return jo(t,e)};const Vo=function(t){var e=null==t?0:t.length;return e?t[e-1]:void 0};const Ho=function(t,e){for(var n=0,o=(e=po(e,t)).length;null!=t&&n<o;)t=t[bo(e[n++])];return n&&n==o?t:void 0};const zo=function(t,e,n){var o=-1,i=t.length;e<0&&(e=-e>i?0:i+e),(n=n>i?i:n)<0&&(n+=i),i=e>n?0:n-e>>>0,e>>>=0;for(var r=Array(i);++o<i;)r[o]=t[o+e];return r};const Wo=function(t,e){return e.length<2?t:Ho(t,zo(e,0,-1))};const Ko=function(t,e){return e=po(e,t),null==(t=Wo(t,e))||delete t[bo(Vo(e))]};const qo=function(t,e){return null==t||Ko(t,e)},Xo=["getItems","isIntersecting","getFirstMarker","suggestion:","_saved","map","next","set","getMarkerNames","type","change","createdAt","_markerNames","getMultiRangeId","nodeAfter","removeAttribute","attributes","hasComments","onDiscard","data","addMarkerName","removeMarkers","onAttributesChange","from","_isDataLoaded","accept","addRange","start","getMarkers","toJSON","getAllAdjacentSuggestions","author","split","_onAttributesChange","nodeBefore","creator","length","push","previous","discard","decorate","addMarker","getRange","getRanges","removeMarker","isInContent","@external","isIntersectingWithRange","end","clear","subType","delete","head","get","commentThread","_model","filter"];var $o,Zo;$o=Xo,Zo=350,function(t){for(;--t;)$o.push($o.shift())}(++Zo);const Yo=function(t,e){return Xo[t-=0]};class Jo extends((0,e.ObservableMixin)()){constructor(t,e){super(),this[Yo("0x10")]=!1,this.id=e.id,this[Yo("0x1")]=e[Yo("0x1")],this[Yo("0x2a")]=e.subType||null,this[Yo("0x17")]=e[Yo("0x17")],this[Yo("0x1b")]=e[Yo("0x1b")]||e[Yo("0x17")],this.isExternal=Boolean(e[Yo("0x8")]&&e[Yo("0x8")][Yo("0x26")]),this.data=null,this._model=t,this._onAccept=e.onAccept,this._onDiscard=e[Yo("0xa")],this._onAttributesChange=e[Yo("0xe")],this[Yo("0x4")]=new Set,this[Yo("0x3")]=null,this[Yo("0x38")]("authoredAt",null),this.set(Yo("0x8"),e[Yo("0x8")]||{}),this[Yo("0x38")](Yo("0x1e"),null),this[Yo("0x38")]("next",null),this.set("commentThread",null),this.set(Yo("0x35"),!1),this[Yo("0x20")]("accept"),this[Yo("0x20")](Yo("0x1f"))}get[Yo("0x2c")](){let t=this;for(;t[Yo("0x1e")];)t=t[Yo("0x1e")];return t}get[Yo("0x9")](){return!!this[Yo("0x2e")]&&this[Yo("0x2e")].length>0}get isMultiRange(){return 0!=this[Yo("0x4")].size&&6==Array[Yo("0xf")](this._markerNames)[0][Yo("0x18")](":")[Yo("0x1c")]}get[Yo("0x25")](){return null!==this[Yo("0x33")]()}[Yo("0xc")](t){this[Yo("0x4")].add(t)}[Yo("0x0")](){return Array[Yo("0xf")](this[Yo("0x4")])}[Yo("0x14")](){return this[Yo("0x0")]()[Yo("0x36")]((t=>this._model.markers[Yo("0x2d")](t)))[Yo("0x30")]((t=>t))}[Yo("0x33")](){return this[Yo("0x14")]()[0]||null}removeMarkers(){this[Yo("0x2f")].change((t=>{for(const e of this.getMarkers())t[Yo("0x24")](e)})),this._markerNames[Yo("0x29")]()}[Yo("0x24")](t){this._model[Yo("0x2")]((e=>{e[Yo("0x24")](t)})),this[Yo("0x4")][Yo("0x2b")](t)}[Yo("0x12")](t){const e=Yo("0x34")+this[Yo("0x1")]+":"+this[Yo("0x2a")]+":"+this.id+":"+this[Yo("0x1b")].id+":"+Jo[Yo("0x5")]();this[Yo("0xc")](e),this._model[Yo("0x2")]((n=>{n[Yo("0x21")](e,{range:t,usingOperation:!0,affectsData:!0})}))}[Yo("0x27")](t){for(const e of this[Yo("0x23")]())if(e[Yo("0x32")](t))return!0;return!1}[Yo("0x23")](){return this.getMarkers()[Yo("0x36")]((t=>t.getRange()))}[Yo("0x31")](){return this.getRanges().reduce(((t,e)=>[...t,...e[Yo("0x31")]()]),[])}getFirstRange(){var t;return(null===(t=this.getFirstMarker())||void 0===t?void 0:t[Yo("0x22")]())||null}getContainedElement(){const t=this[Yo("0x23")]();if(1!=t[Yo("0x1c")])return null;const e=t[0],n=e[Yo("0x13")][Yo("0x6")],o=e[Yo("0x28")][Yo("0x1a")];return n instanceof s.Element?n!=o?null:n:null}[Yo("0x11")](){this._onAccept(this[Yo("0x23")](),this.data,this.attributes),this[Yo("0xd")]()}[Yo("0x1f")](){this._onDiscard(this.getRanges(),this[Yo("0xb")],this[Yo("0x8")]),this[Yo("0xd")]()}[Yo("0x16")](){const t=[];let e=this.head;for(;e;)t[Yo("0x1d")](e),e=e[Yo("0x37")];return t}setAttribute(t,e){const n=eo(this.attributes);_o(n,t,e),Go(n,this[Yo("0x8")])||(this.attributes=n,this[Yo("0x19")](n))}[Yo("0x7")](t){const e=eo(this[Yo("0x8")]);qo(e,t),Go(e,this.attributes)||(this[Yo("0x8")]=e,this._onAttributesChange(this.attributes))}[Yo("0x15")](){return{id:this.id,type:this.subType?this[Yo("0x1")]+":"+this.subType:this[Yo("0x1")],authorId:this.creator.id,createdAt:this.createdAt,hasComments:this[Yo("0x9")],data:this[Yo("0xb")],attributes:this.attributes}}static getMultiRangeId(){return(0,e.uid)().substr(1,5)}}function Qo(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"*Replace image URL*":return o("*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 format:* %0":return o("*Set format:* %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_DEFAULT":return o({string:"bulleted list (default)",id:"ELEMENT_BULLETED_LIST_DEFAULT"});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_DEFAULT":return o({string:"numbered list (default)",id:"ELEMENT_NUMBERED_LIST_DEFAULT"});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_ALIGNMENT":return o({string:"alignment",id:"FORMAT_ALIGNMENT"});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"FORMAT_INDENT":return o({string:"indent",id:"FORMAT_INDENT"});case"FORMAT_LIST_REVERSED":return o({string:"list reversed",id:"FORMAT_LIST_REVERSED"});case"FORMAT_LIST_START":return o({string:"list start",id:"FORMAT_LIST_START"});case"FORMAT_FONT_SIZE":return o({string:"font size",id:"FORMAT_FONT_SIZE"});case"FORMAT_FONT_FAMILY":return o({string:"font family",id:"FORMAT_FONT_FAMILY"});case"FORMAT_FONT_COLOR":return o({string:"font color",id:"FORMAT_FONT_COLOR"});case"FORMAT_FONT_BACKGROUND":return o({string:"font background color",id:"FORMAT_FONT_BACKGROUND"});case"FORMAT_IMAGE_SIZE":return o({string:"image size",id:"FORMAT_IMAGE_SIZE"});case"FORMAT_STYLE":return o({string:"style",id:"FORMAT_STYLE"});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);case"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering insertion suggestion.",id:"ENTER_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving insertion suggestion.",id:"LEAVE_INSERTION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering deletion suggestion.",id:"ENTER_DELETION_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving deletion suggestion.",id:"LEAVE_DELETION_SUGGESTION_ANNOUNCEMENT"});case"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Entering formatting suggestion.",id:"ENTER_FORMATTING_SUGGESTION_ANNOUNCEMENT"});case"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT":return o({string:"Leaving formatting suggestion.",id:"LEAVE_FORMATTING_SUGGESTION_ANNOUNCEMENT"});default:return e}}const ti=["get","$1 $2","*Split:* %0","item","start","elementEnd","add","getWalker","quantity","checkChild","length","key","_handleInsertRemoveSuggestionDescription","match","remove","data","addEmptyContainer","addFormat","isInContent","registerDescriptionCallback","$text","_handleAttributeSuggestionDescription","function","EmptyContainer","normal","replace","$textProxy","has","removeEmptyContainer","indexOf","format","isObject","_handleRenameSuggestionDescription","matchingCallback","insertion","newValue","name","_addDescriptionItems","_attributeLabels","text","addContainer","push","_locale","*Insert:* %0","set","*Change to:* %0","previousSibling","removeObject","subType","type","isEmpty","*Remove format:* %0","pop","deletion","_handleCustomCallbackDescription","label","removeFormat","REPLACE_TEXT","ELEMENT_SPACE","isEqual","_itemLabels","registerElementLabel","_resolveDescriptionItems","elementStart","nextSibling","_schema","registerAttributeLabel","Object","getDescriptions","_itemLabelsCallbacks","getItemLabel","join","map","_customCallbacks","addObject","attribute","*Merge:* %0","element","*Remove:* %0","getFirstRange","removeContainer","Container"];var ei,ni;ei=ti,ni=499,function(t){for(;--t;)ei.push(ei.shift())}(++ni);const oi=function(t,e){return ti[t-=0]};class ii{constructor(t,e){this[oi("0x42")]=[],this[oi("0x35")]=new Map,this._itemLabelsCallbacks=[],this[oi("0x1f")]=new Map,this[oi("0x3a")]=t,this[oi("0x23")]=e}[oi("0x3d")](t){const e=[],n=new Set,o=new Set;for(let i=0;i<t[oi("0x3")];i++){const r=t[i];if(!r[oi("0xb")])continue;const s=this[oi("0x2f")](r);if(s){if(null!=r[oi("0x29")]){if(n.has(r.subType))continue;n.add(r[oi("0x29")])}e.push(s)}else if(oi("0x44")!=r[oi("0x2a")])"insertion"!=r[oi("0x2a")]&&oi("0x2e")!=r[oi("0x2a")]||this[oi("0x5")](e,r,t[i+1]);else{const t=r[oi("0x8")][oi("0x4")];if(o[oi("0x14")](t))continue;o[oi("0x51")](r[oi("0x8")].key),t==mc?this[oi("0x19")](e,r):this._handleAttributeSuggestionDescription(e,r)}}return this[oi("0x37")](e)}[oi("0xc")](t){this[oi("0x42")][oi("0x22")](t)}[oi("0x36")](t,n,o=e.priorities[oi("0x11")]){oi("0xf")==typeof t?(0,e.insertToPriorityArray)(this[oi("0x3e")],{matchingCallback:t,label:n,priority:o}):this[oi("0x35")][oi("0x25")](t,n)}[oi("0x3b")](t,e){this[oi("0x1f")].set(t,e)}getItemLabel(t,e=1){let n;for(const e of this[oi("0x3e")])if(e[oi("0x1a")](t)){n=e[oi("0x30")];break}return n||(n=this[oi("0x35")][oi("0x4b")](t[oi("0x1d")])),n?n(e):1!==e?e+" "+t[oi("0x1d")]+"s":""+t.name}[oi("0x1e")](t,e){const n=e[oi("0x48")]()[oi("0x0")](),o=oi("0x1b")==e[oi("0x2a")]?"add":oi("0x7");for(const e of n){const i=e.item,r=t[t[oi("0x3")]-1];if(i.is(oi("0x13")))r&&r[oi("0x2a")][oi("0x16")](oi("0x4a"))>-1&&t[oi("0x2d")](),r&&oi("0x20")==r.type?r[o]+=i[oi("0x8")]:t[oi("0x22")]({type:"text",add:"add"==o?i[oi("0x8")]:"",remove:oi("0x7")==o?i.data:""});else if(this[oi("0x3a")][oi("0x18")](i)){const s=i;if(r&&r.type[oi("0x16")](oi("0x4a"))>-1&&t[oi("0x2d")](),oi("0x50")==e[oi("0x2a")])continue;r&&r[oi("0x2a")]==o+oi("0x3c")&&r[oi("0x46")][oi("0x1d")]==s.name?r.quantity++:t.push({type:o+"Object",element:s,quantity:1}),n.skip((t=>!(oi("0x50")==t[oi("0x2a")]&&t[oi("0x4e")]==i)))}else if(this[oi("0x3a")][oi("0x2")](i,oi("0xd"))||i.is(oi("0x46"),"softBreak")){const n=i;if(oi("0x51")==o&&oi("0x38")==e[oi("0x2a")]||oi("0x7")==o&&oi("0x50")==e.type)continue;if(r&&-1==r[oi("0x2a")][oi("0x16")](oi("0x4a"))){"text"==r[oi("0x2a")]&&(r[o]+="\n");continue}let s;if(s=oi("0x51")==o?n.nextSibling&&!this[oi("0x3a")][oi("0x18")](n[oi("0x39")])?n[oi("0x39")]:null:n[oi("0x27")]&&!this[oi("0x3a")][oi("0x18")](n.previousSibling)?n[oi("0x27")]:null,n[oi("0x2b")]||s&&s.isEmpty){const e=s&&s[oi("0x2b")]?s:n;r&&r[oi("0x2a")]==o+"EmptyContainer"&&r[oi("0x46")].name==e[oi("0x1d")]?r[oi("0x1")]++:t[oi("0x22")]({type:o+oi("0x10"),element:e,quantity:1})}else t[oi("0x22")]({type:o+oi("0x4a"),element:n})}}}[oi("0x37")](t){const e=this._locale,n=[],o=[],i=[];for(const r of t)switch(r[oi("0x2a")]){case oi("0x20"):if(r[oi("0x51")]=r[oi("0x51")][oi("0x12")](/(\S)\u000A+(\S)/g,oi("0x4c"))[oi("0x12")](/\u000A/g,""),r.remove=r.remove[oi("0x12")](/(\S)\u000A+(\S)/g,oi("0x4c"))[oi("0x12")](/\u000A/g,""),""!=r.add&&""!=r[oi("0x7")]){n[oi("0x22")]({type:oi("0x12"),content:Qo(e,oi("0x32"),['"'+r.remove+'"','"'+r[oi("0x51")]+'"'])});continue}if(null!=r[oi("0x51")][oi("0x6")](/^ +$/)){n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,oi("0x24"),Qo(e,oi("0x33"),r[oi("0x51")][oi("0x3")]))});continue}if(null!=r[oi("0x7")][oi("0x6")](/^ +$/)){n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x47"),Qo(e,oi("0x33"),r[oi("0x7")][oi("0x3")]))});continue}if(""!=r[oi("0x51")]){n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,"*Insert:* %0",'"'+r[oi("0x51")]+'"')});continue}n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,"*Remove:* %0",'"'+r[oi("0x7")]+'"')});continue;case oi("0x9"):case oi("0x43"):n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,"*Insert:* %0",this[oi("0x3f")](r.element,r.quantity))});continue;case oi("0x15"):case oi("0x28"):n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x47"),this[oi("0x3f")](r[oi("0x46")],r[oi("0x1")]))});continue;case oi("0x21"):n[oi("0x22")]({type:oi("0x1b"),content:Qo(e,oi("0x4d"),this[oi("0x3f")](r[oi("0x46")],r[oi("0x1")]))});continue;case oi("0x49"):n[oi("0x22")]({type:oi("0x2e"),content:Qo(e,oi("0x45"),this[oi("0x3f")](r[oi("0x46")],r.quantity))});continue;case oi("0xa"):o[oi("0x22")](r[oi("0x4")]);continue;case oi("0x31"):i[oi("0x22")](r[oi("0x4")]);continue;default:n[oi("0x22")](r)}if(o[oi("0x3")]){const t=o.map((t=>this._attributeLabels.has(t)?this._attributeLabels.get(t):t))[oi("0x40")](", ");n[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],"*Set format:* %0",t)})}if(i[oi("0x3")]){const t=i[oi("0x41")]((t=>this[oi("0x1f")].has(t)?this[oi("0x1f")][oi("0x4b")](t):t))[oi("0x40")](", ");n[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],oi("0x2c"),t)})}return n}[oi("0x2f")](t){for(const e of this[oi("0x42")]){const n=e(t);if(n&&oi("0x2a")in n)return n}}[oi("0xe")](t,e){const n=e[oi("0x8")],o=void 0===n[oi("0x1c")]?oi("0x31"):oi("0xa");t.push({type:o,key:n[oi("0x4")]})}[oi("0x19")](t,e){t[oi("0x22")]({type:oi("0x17"),content:Qo(this[oi("0x23")],oi("0x26"),this[oi("0x3f")](e[oi("0x48")]()[oi("0x4f")].nodeAfter,1))})}_handleInsertRemoveSuggestionDescription(t,e,n){if(this._addDescriptionItems(t,e),n&&n[oi("0x48")]()&&!e[oi("0x48")]().end[oi("0x34")](n[oi("0x48")]()[oi("0x4f")])){const n=t[t[oi("0x3")]-1],o=oi("0x1b")==e.type?oi("0x51"):"remove";n&&oi("0x20")==n[oi("0x2a")]&&(n[o]+="\n")}}}const ri=["editor","get","showAIAssistant","afterInit","plugins","commands"];var si,xi;si=ri,xi=159,function(t){for(;--t;)si.push(si.shift())}(++xi);const ai=function(t,e){return ri[t-=0]};class ci extends t.Plugin{[ai("0x0")](){const t=this[ai("0x3")],e=t[ai("0x1")].get("TrackChangesEditing");t[ai("0x2")][ai("0x4")](ai("0x5"))&&e.enableCommand(ai("0x5"))}}const li=["format","get","plugins","right","left","value","commandName","registerAttributeLabel","_registerLegacyDescription","FORMAT_ALIGN_TO_LEFT","registerDescriptionCallback","AlignmentEditing","TrackChangesEditing","justify","FORMAT_ALIGN_TO_RIGHT","FORMAT_ALIGNMENT","FORMAT_ALIGN_TO_CENTER","editor","has","formatBlock","locale","_descriptionFactory","alignment","center","commandParams","afterInit","type","FORMAT_JUSTIFY_TEXT"];var ui,di;ui=li,di=485,function(t){for(;--t;)ui.push(ui.shift())}(++di);const gi=function(t,e){return li[t-=0]};class fi extends t.Plugin{[gi("0x10")](){const t=this.editor,e=t[gi("0xb")];if(!t.plugins[gi("0x9")](gi("0x2")))return;const n=t[gi("0x15")][gi("0x14")](gi("0x3"));n._enableDefaultAttributesIntegration("alignment",[],["alignment"]),n[gi("0xc")][gi("0x1a")](gi("0xd"),Qo(e,gi("0x6"))),this[gi("0x1b")]()}_registerLegacyDescription(){const t=this[gi("0x8")],e=t[gi("0xb")];t[gi("0x15")].get(gi("0x3"))[gi("0xc")][gi("0x1")]((t=>{if(gi("0xa")!=t[gi("0x11")])return;const{data:n}=t;if(n&&"alignment"==n[gi("0x19")]){const t=n[gi("0xf")][0][gi("0x18")];return{type:gi("0x13"),content:Qo(e,"*Format:* %0",function(t){switch(t){case gi("0x17"):return Qo(e,gi("0x0"));case gi("0x16"):return Qo(e,gi("0x5"));case gi("0xe"):return Qo(e,gi("0x7"));case gi("0x4"):return Qo(e,gi("0x12"))}}(t))}}}))}}const mi=["_descriptionFactory","registerAttributeLabel","FORMAT_","commandParams","SubscriptEditing","FORMAT_SUPERSCRIPT","StrikethroughEditing","_registerLegacyDescription","ItalicEditing","locale","FORMAT_CODE","*Format:* %0","UnderlineEditing","BoldEditing","registerDescriptionCallback","editor","plugins","superscript","code","_enableDefaultAttributesIntegration","afterInit","has","italic","forceValue","toLowerCase","commandName","TrackChangesEditing","get","type","SuperscriptEditing","FORMAT_ITALIC","format","FORMAT_BOLD","strikethrough","*Remove format:* %0","bold"];var hi,pi;hi=mi,pi=273,function(t){for(;--t;)hi.push(hi.shift())}(++pi);const bi=function(t,e){return mi[t-=0]},Ei=[bi("0x1c"),bi("0x17"),bi("0x1b"),"CodeEditing",bi("0x15"),bi("0x13"),bi("0x8")];class _i extends t.Plugin{[bi("0x23")](){const t=this[bi("0x1e")],e=t[bi("0x1f")][bi("0x6")](bi("0x5")),n=t[bi("0x18")];for(const o of Ei){if(!t[bi("0x1f")][bi("0x0")](o))continue;const i=o.slice(0,-7)[bi("0x3")](),r=bi("0x11")+i.toUpperCase();e[bi("0x22")](i,[i]),e[bi("0xf")][bi("0x10")](i,Qo(n,r))}this[bi("0x16")]()}[bi("0x16")](){const t=this[bi("0x1e")],e=t[bi("0x18")],n=t[bi("0x1f")][bi("0x6")]("TrackChangesEditing");function o(t,o){n[bi("0xf")][bi("0x1d")]((n=>{if("formatInline"!=n[bi("0x7")])return;const{data:i}=n;return i&&i[bi("0x4")]===t?i[bi("0x12")][0][bi("0x2")]?{type:bi("0xa"),content:Qo(e,bi("0x1a"),o)}:{type:bi("0xa"),content:Qo(e,bi("0xd"),o)}:void 0}))}o(bi("0xe"),Qo(e,bi("0xb"))),o(bi("0x1"),Qo(e,bi("0x9"))),o("underline",Qo(e,"FORMAT_UNDERLINE")),o(bi("0x21"),Qo(e,bi("0x19"))),o(bi("0xc"),Qo(e,"FORMAT_STRIKETHROUGH")),o("subscript",Qo(e,"FORMAT_SUBSCRIPT")),o(bi("0x20"),Qo(e,bi("0x14")))}}const Ti=["$root","get","editor","BlockQuoteEditing","plugins","getSelectedBlocks","blockQuote","checkChild","ELEMENT_BLOCK_QUOTE","locale","document","registerDescriptionCallback","markBlockFormat","parent","forceValue","name","*Set format:* %0","commandParams","from","model","commandName","enableCommand","format","filter","commands","value","TrackChangesEditing","*Remove format:* %0"];var yi,Ci;yi=Ti,Ci=245,function(t){for(;--t;)yi.push(yi.shift())}(++Ci);const Ai=function(t,e){return Ti[t-=0]};class ki extends t.Plugin{afterInit(){const t=this[Ai("0x9")],e=t[Ai("0x10")];if(!t[Ai("0xb")].has(Ai("0xa")))return;const n=t[Ai("0xb")][Ai("0x8")](Ai("0x5")),o=this[Ai("0x9")][Ai("0x3")][Ai("0x8")](Ai("0xd"));n[Ai("0x0")](Ai("0xd"),((e,i={})=>{const r=this[Ai("0x9")][Ai("0x1a")][Ai("0x11")].selection,s=i&&void 0!==i.forceValue?i[Ai("0x15")]:!o[Ai("0x4")];let x=[];if(s){const e=Array[Ai("0x19")](r[Ai("0xc")]())[Ai("0x2")]((t=>Ii(t)||function(t,e){const n=e.checkChild(t.parent,Ai("0xd")),o=e[Ai("0xe")]([Ai("0x7"),"blockQuote"],t);return n&&o}(t,this.editor.model.schema)));x=S(e,t.model)}else{const e=Array.from(r[Ai("0xc")]()).filter((t=>Ii(t)));x=S(e,t[Ai("0x1a")])}t[Ai("0x1a")].change((()=>{for(const t of x)n[Ai("0x13")](t,{commandName:"blockQuote",commandParams:[{forceValue:s}]})}))})),n._descriptionFactory[Ai("0x12")]((t=>{const{data:n}=t;if(n&&Ai("0xd")==n[Ai("0x1b")]){const t=Qo(e,Ai("0xf"));return n[Ai("0x18")][0].forceValue?{type:Ai("0x1"),content:Qo(e,Ai("0x17"),t)}:{type:Ai("0x1"),content:Qo(e,Ai("0x6"),t)}}}))}}function Ii(t){return Ai("0xd")==t[Ai("0x14")][Ai("0x16")]}const Ri=["commands","enableCommand","ckbox","get"];var Si,vi;Si=Ri,vi=346,function(t){for(;--t;)Si.push(Si.shift())}(++vi);const Ni=function(t,e){return Ri[t-=0]};class Li extends t.Plugin{afterInit(){const t=this.editor;t[Ni("0x2")][Ni("0x1")](Ni("0x0"))&&t.plugins[Ni("0x1")]("TrackChangesEditing")[Ni("0x3")]("ckbox")}}const Mi=["registerDescriptionCallback","*Remove format:* %0","plugins","value","formatBlock","language","checkChild","commands","find","filter","config","from","enableCommand","forceValue","name","type","isLimit","has","TrackChangesEditing","indentCodeBlock","toLowerCase","selection","codeBlock","registerElementLabel","parent","markBlockFormat","outdentCodeBlock","locale","commandParams","_descriptionFactory","languages","blockName","ELEMENT_CODE_BLOCK","model","get","getSelectedBlocks","format","schema","rootElement"];var wi,Oi;wi=Mi,Oi=332,function(t){for(;--t;)wi.push(wi.shift())}(++Oi);const Fi=function(t,e){return Mi[t-=0]};class Di extends t.Plugin{afterInit(){const t=this.editor;if(!t.plugins[Fi("0x24")]("CodeBlock"))return;const e=t[Fi("0x15")][Fi("0xe")](Fi("0x25")),n=t[Fi("0x7")],o=t[Fi("0x1d")][Fi("0xe")](Fi("0x2"))[Fi("0xa")],i=t[Fi("0x1a")][Fi("0xe")]("codeBlock");e[Fi("0x1f")](Fi("0x26")),e[Fi("0x1f")](Fi("0x6")),e.enableCommand(Fi("0x2"),((n,r={})=>{const s=t[Fi("0xd")],x=t.model.document[Fi("0x1")],a=r&&void 0!==r[Fi("0x20")]?r.forceValue:!i[Fi("0x16")];let c;r.language||(r.language=o[0][Fi("0x18")]),c=a?Array[Fi("0x1e")](x[Fi("0xf")]())[Fi("0x1c")]((t=>{return Bi(t)||(e=t,n=s[Fi("0x11")],!e.is(Fi("0x12"))&&!n[Fi("0x23")](e)&&n[Fi("0x19")](e[Fi("0x4")],Fi("0x2")));var e,n})):Array.from(x[Fi("0xf")]())[Fi("0x1c")]((t=>Bi(t)));const l=S(c,s);s.change((()=>{for(const t of l)e[Fi("0x5")](t,{commandName:"codeBlock",commandParams:[{...r,forceValue:a}],formatGroupId:Fi("0xb")})}))})),e._descriptionFactory[Fi("0x3")]("codeBlock",(t=>Qo(n,Fi("0xc"),t))),e[Fi("0x9")][Fi("0x13")]((t=>{if(Fi("0x17")!=t[Fi("0x22")])return;const e=n.t,{data:i}=t;if(!i||"codeBlock"!=i.commandName)return;const r=i[Fi("0x8")][0][Fi("0x18")],s=e(o[Fi("0x1b")]((t=>t[Fi("0x18")]===r)).label)[Fi("0x0")]();return i[Fi("0x8")][0][Fi("0x20")]?{type:Fi("0x10"),content:Qo(n,"*Set format:* %0",Qo(n,"ELEMENT_CODE_BLOCK",1)+" ("+s+")")}:{type:Fi("0x10"),content:Qo(n,Fi("0x14"),Qo(n,Fi("0xc"),1))}}))}}function Bi(t){return Fi("0x2")==t[Fi("0x21")]}const Pi=["plugins","CommentsEditing","addCommentThread","has","get","editor","TrackChangesEditing","enableCommand","afterInit"];var Ui,ji;Ui=Pi,ji=249,function(t){for(;--t;)Ui.push(Ui.shift())}(++ji);const Gi=function(t,e){return Pi[t-=0]};class Vi extends t.Plugin{[Gi("0x2")](){const t=this[Gi("0x8")];t[Gi("0x3")][Gi("0x6")](Gi("0x4"))&&t[Gi("0x3")][Gi("0x7")](Gi("0x0"))[Gi("0x1")](Gi("0x5"))}}var Hi=n(181);const zi=["writer","elementEnd","listItem","isAtEnd","markerRange","isLimit","push","type","getAttribute","nextSibling","createRangeOn","ck-suggestion-marker--active","mapper","insert","getItems","listIndent","parent","span","addClass","toViewPosition","addHighlight","element","name","previousPosition","plugins","consumable","markerName","bindElementToMarker","isContent","model","includes","test","getCustomProperty","TrackChangesEditing","createUIElement","get","getWalker"];var Wi,Ki;Wi=zi,Ki=158,function(t){for(;--t;)Wi.push(Wi.shift())}(++Ki);const qi=function(t,e){return zi[t-=0]};function Xi(t,e,n){const o=[];for(const i of e[qi("0x4")]())i.hasAttribute(t)&&o[qi("0x21")](n[qi("0x0")](i));return o}function $i(t,e,{showActiveMarker:n=!0}={}){const o=t[qi("0xe")][qi("0x19")](qi("0x17"));return(i,r,s)=>{if(!s[qi("0xf")][qi("0x15")](r[qi("0x1f")],i[qi("0xc")]))return;const x=r[qi("0x1f")][qi("0x1a")](),a=r.markerRange.start,c=t[qi("0x13")].schema;let l=null,u=null,d=!1,g=!1;for(const t of x){const e=t.item;d=d||c[qi("0x12")](e);const n=s[qi("0x2")].toViewElement(e);if(n&&n[qi("0x16")](qi("0xa")))return;qi("0x1c")==t[qi("0x22")]&&c.isBlock(e)&&!c[qi("0x20")](e)&&(e[qi("0x24")]||a[qi("0x1e")]?l&&l[qi("0x6")]==e||(l=e,f(t[qi("0xd")]),g=!0):u=u||t[qi("0xd")])}function f(t){const i=s[qi("0x1b")][qi("0x18")](qi("0x7"),{class:"ck-suggestion-marker-"+e}),x=s[qi("0x2")][qi("0x9")](t);n&&o.activeMarkers[qi("0x14")](r[qi("0x10")])&&s[qi("0x1b")][qi("0x8")](qi("0x1"),i),s.writer[qi("0x3")](x,i),s[qi("0x2")][qi("0x11")](i,r[qi("0x10")])}d||g||!u||f(u)}}const Zi=["TrackChangesEditing","high","modifySelection","editing","unbindElementFromMarkerName","isCollapsed","markerNameToElements","get","model","rootName","delete","deleteForward","enableCommand","commands","start","showSuggestionHighlights","editor","init","buffer","writer","unit","document","markerName","setSelection","merge","mapper","bind","lock","remove","unlock","addMarker:suggestion:deletion","detach","getFirstRange","createRange","batch","downcastDispatcher","data","fromRange","root","end","requires","plugins","uiElement","options"];var Yi,Ji;Yi=Zi,Ji=182,function(t){for(;--t;)Yi.push(Yi.shift())}(++Ji);const Qi=function(t,e){return Zi[t-=0]};class tr extends t.Plugin{static get[Qi("0x22")](){return[Hi.Delete]}[Qi("0xb")](){const t=this[Qi("0xa")],e=t[Qi("0x23")][Qi("0x1")](Qi("0x26"));e[Qi("0x6")](Qi("0x4"));const n=t[Qi("0x7")][Qi("0x1")](Qi("0x5"));e[Qi("0x6")](Qi("0x5"),((e,o={})=>{const i=t.model.createSelection(t[Qi("0x2")][Qi("0xf")].selection);i[Qi("0x2b")]&&t.model[Qi("0x28")](i,{direction:"forward",unit:o[Qi("0xe")]});const r=i[Qi("0x1a")](),x=s.LiveRange[Qi("0x1f")](r);let a;e(o),a="$graveyard"==x[Qi("0x20")][Qi("0x3")]?t[Qi("0x2")][Qi("0x1b")](r[Qi("0x8")]):t[Qi("0x2")][Qi("0x1b")](x[Qi("0x8")],x[Qi("0x21")]),x[Qi("0x19")](),t[Qi("0x2")].enqueueChange(n[Qi("0xc")][Qi("0x1c")],(t=>{n.buffer[Qi("0x15")](),t[Qi("0x11")](t.createRange(a[Qi("0x21")])),n[Qi("0xc")][Qi("0x17")]()}))})),t[Qi("0x29")][Qi("0x1d")].on(Qi("0x18"),$i(t,Qi("0x12")),{priority:Qi("0x27")}),t[Qi("0x1e")][Qi("0x1d")].on(Qi("0x18"),((e,n,o)=>{o[Qi("0x25")][Qi("0x9")]&&$i(t,Qi("0x12"),{showActiveMarker:!1})[Qi("0x14")](this)(e,n,o)}),{priority:"high"}),t[Qi("0x29")][Qi("0x1d")].on("removeMarker:suggestion:deletion",((t,e,n)=>{const o=n[Qi("0x13")][Qi("0x0")](e[Qi("0x10")]);if(o)for(const t of o)t.is(Qi("0x24"))&&(n[Qi("0x13")][Qi("0x2a")](t,e[Qi("0x10")]),n[Qi("0xd")][Qi("0x16")](t))}),{priority:Qi("0x27")})}}const er=["fromRange","getFirstRange","createPositionAt","isObject","DocumentListUtils","*Change to:* %0","slice","ELEMENT_LIST_ITEM","get","config","forceValue","change","createRange","enableCommand","refresh","listItemId","setSelection","*Merge:* %0","*Format:* remove from %0","value","listType","commandParams","documentList","afterInit","commandName","commands","after","getSelectedBlocks","accept","registerCustomCallback","end","plugins","push","model","format","indentList","hasAttribute","has","formatBlock","before","*Format:* insert into %0","_LIST","document","isFirstBlockOfListItem","nextSibling","nodeAfter","expandListBlocksToCompleteList","markBlockFormat","length","findIndex","getAttribute","schema","next","getRanges","previousSibling","splitListItemBefore","outdentList","ELEMENT_NUMBERED_LIST","registerDescriptionCallback","markMultiRangeBlockFormat","formatInline","map","type","mergeListItemForward","start","_suggestionFactory","deletion","toUpperCase","*Outdent:* %0","multipleBlocks","numberedList","listIndent","mergeListItemBackward","from","execute","registerElementLabel","list.multiBlock","bulletedList","ELEMENT_BULLETED_LIST","selection","containsItem","DocumentListEditing"];var nr,or;nr=er,or=316,function(t){for(;--t;)nr.push(nr.shift())}(++or);const ir=function(t,e){return er[t-=0]};class rr extends t.Plugin{[ir("0x23")](){const t=this.editor;if(!t[ir("0x2b")][ir("0x31")](ir("0xb")))return;const e=t.locale,n=t[ir("0x2b")][ir("0x14")]("TrackChangesEditing"),o=t[ir("0x2b")][ir("0x14")](ir("0x10"));function i(e){return()=>{const i=t[ir("0x25")][ir("0x14")](e);if(i[ir("0x1f")]&&!t.config[ir("0x14")](ir("0x6")))return void t[ir("0x4")]("paragraph",{});let r=Array[ir("0x3")](t[ir("0x2d")][ir("0x36")][ir("0x9")][ir("0x27")]());if(a(e)){r=o[ir("0x3a")](r);const t=[];for(const e of r)o[ir("0x37")](e)&&t[ir("0x2c")](e);r=t}t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x47")](r,{commandName:e,commandParams:[{forceValue:!i[ir("0x1f")]}],formatGroupId:ir("0x20")},[],ir("0x22"))}))}}function r(e){return()=>{const o=function(t){let e=Array[ir("0x3")](t);const n=e[ir("0x3d")]((t=>!t[ir("0x30")](ir("0x1b"))));return n>-1&&(e=e[ir("0x12")](0,n)),e}(t.model.document[ir("0x9")][ir("0x27")]()),i=o[o[ir("0x3c")]-1],r=t[ir("0x2d")][ir("0x3f")][ir("0xf")](i)?ir("0x26"):"end",s=t.model.createRange(t[ir("0x2d")].createPositionAt(o[0],ir("0x33")),t.model.createPositionAt(i,r));t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x3b")](s,{commandName:e,commandParams:[],formatGroupId:ir("0x20")},function(t){const e=new Set;for(const n of t){let t=n.nextSibling;for(;t&&t[ir("0x3e")](ir("0x1"))>n[ir("0x3e")](ir("0x1"));)e.add(t),t=t[ir("0x38")]}return Array[ir("0x3")](e)}(o))}))}}function x(e){return()=>{const o=t[ir("0x2d")][ir("0x36")][ir("0x9")][ir("0x27")]()[ir("0x40")]()[ir("0x1f")],i=t.model[ir("0xe")](o,ir("0x33")),r=t[ir("0x2d")].createPositionAt(o,0),s=t[ir("0x2d")].createRange(i,r);t[ir("0x2d")][ir("0x17")]((()=>{n[ir("0x3b")](s,{commandName:e,commandParams:[],formatGroupId:"listType"})}))}}function a(e){const n=t.commands.get("bulletedList")[ir("0x1f")],o=t[ir("0x25")][ir("0x14")](ir("0x0"))[ir("0x1f")];return ir("0x0")===e?n:o}n[ir("0x19")](ir("0x0"),i(ir("0x0"))),n.enableCommand(ir("0x7"),i(ir("0x7"))),n[ir("0x19")]("indentList",r(ir("0x2f"))),n.enableCommand(ir("0x44"),r("outdentList")),n.enableCommand("splitListItemAfter",x("splitListItemAfter")),n[ir("0x19")](ir("0x43"),x(ir("0x43"))),n._descriptionFactory[ir("0x5")]((function(e){const n=!t[ir("0x2d")][ir("0x3f")][ir("0xf")](e),o=e[ir("0x42")],i=e[ir("0x38")],r=e[ir("0x3e")](ir("0x1b")),s=!o||o[ir("0x3e")](ir("0x1b"))!==r,x=!i||i[ir("0x3e")]("listItemId")!==r;return n&&Boolean(r)&&s&&x}),(t=>Qo(e,ir("0x13"),t))),n._descriptionFactory[ir("0x46")]((function(n){if(ir("0x32")!=n[ir("0x4a")]&&ir("0x48")!=n[ir("0x4a")])return;const{data:o}=n;if(!o)return;let i,r,s,x;switch(o[ir("0x24")]){case ir("0x7"):s=o.commandParams[0].forceValue,x=a(o[ir("0x24")]),i=s?"*Format:* insert into %0":ir("0x1e"),!x&&t[ir("0x15")][ir("0x14")](ir("0x6"))||(i=ir("0x11")),r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x8")))};break;case ir("0x0"):s=o[ir("0x21")][0][ir("0x16")],x=a(o[ir("0x24")]),i=ir(s?"0x34":"0x1e"),!x&&t[ir("0x15")][ir("0x14")](ir("0x6"))||(i=ir("0x11")),r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x45")))};break;case ir("0x2f"):i="*Indent:* %0",r={type:ir("0x2e"),content:Qo(e,i,Qo(e,ir("0x13")))};break;case ir("0x44"):i=function(t){const e=t.getFirstRange();let n=e.start[ir("0x39")];for(;n&&e[ir("0xa")](n);){if(n[ir("0x3e")](ir("0x1"))>0)return!1;n=n[ir("0x38")]}return!0}(n)?Qo(e,ir("0x1e"),Qo(e,"ELEMENT_"+n[ir("0xd")]()[ir("0x4c")][ir("0x39")][ir("0x3e")](ir("0x20"))[ir("0x4f")]()+ir("0x35"))):Qo(e,ir("0x50"),Qo(e,ir("0x13"))),r={type:"format",content:i};break;case ir("0x2"):case ir("0x4b"):!1===o[ir("0x51")]&&(i=ir("0x1d"),r={type:ir("0x4e"),content:Qo(e,i,Qo(e,ir("0x13")))})}return r})),n[ir("0x4d")][ir("0x29")]("formatBlock","documentList",ir("0x28"),(function(e,n){const o=[];for(let n of e)n.start[ir("0x39")]===n[ir("0x2a")].parent&&(n=t[ir("0x2d")][ir("0x18")](t[ir("0x2d")][ir("0xe")](n[ir("0x4c")][ir("0x39")],0))),o.push(n);t.model[ir("0x17")]((e=>{const i=t[ir("0x2d")][ir("0x36")][ir("0x9")],r=Array[ir("0x3")](i[ir("0x41")]())[ir("0x49")]((t=>s.LiveRange[ir("0xc")](t)));e.setSelection(o),t[ir("0x25")][ir("0x14")](n[ir("0x24")])[ir("0x1a")](),n.commandParams.push({forceDefaultExecution:!0}),t[ir("0x4")](n[ir("0x24")],...n[ir("0x21")]),e[ir("0x1c")](r);for(const t of r)t.detach()}))}))}}const sr=["*Change to:* %0","getSelectedBlocks","_getSuggestionBlocksForListStyle","model","expandListBlocksToCompleteList","toUpperCase","change","_descriptionFactory","config","reversed","listType","replace","isFirstBlockOfListItem","editor","registerDescriptionCallback","plugins","format","afterInit","_getTranslationKeyForListStyle","from","bind","listStart","isListItemBlock","DocumentListPropertiesEditing","DocumentListPropertiesUtils","enableCommand","numbered","locale","type","formatInline","TrackChangesEditing","commandName","getListTypeFromListStyleType","DocumentListUtils","commandParams","handleListStyleCommand","handleListStartCommand","_LIST_","filter","getAttribute","get","startIndex","push","handleDescriptions","document","*Format:* set order to regular","listStyle","ELEMENT_","markMultiRangeBlockFormat","length","_getSuggestionBlocks","formatBlock"];var xr,ar;xr=sr,ar=157,function(t){for(;--t;)xr.push(xr.shift())}(++ar);const cr=function(t,e){return sr[t-=0]};class lr extends t.Plugin{[cr("0x10")](){if(!this[cr("0xc")].plugins.has(cr("0x16")))return;const t=this[cr("0xc")][cr("0x7")][cr("0x27")]("list.properties"),e=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x1d"));t.styles&&e.enableCommand(cr("0x2d"),this[cr("0x22")][cr("0x13")](this)),t[cr("0x8")]&&e[cr("0x18")]("listReversed",this.handleListReversedCommand[cr("0x13")](this)),t.startIndex&&e[cr("0x18")](cr("0x14"),this[cr("0x23")].bind(this)),e[cr("0x6")][cr("0xd")](this[cr("0x2a")][cr("0x13")](this))}[cr("0x22")](t,e={}){const n=this[cr("0xc")][cr("0xe")].get(cr("0x1d")),o=this._getSuggestionBlocksForListStyle();this.editor[cr("0x2")][cr("0x5")]((()=>{n[cr("0x2f")](o,{commandName:cr("0x2d"),commandParams:[{type:e[cr("0x1b")]}],formatGroupId:cr("0x2d")})}))}handleListReversedCommand(t,e={}){const n=this.editor[cr("0xe")][cr("0x27")](cr("0x1d")),o=this.editor[cr("0xe")].get(cr("0x20")),i=this._getSuggestionBlocks((t=>o.isListItemBlock(t)&&"numbered"===t.getAttribute(cr("0x9"))));null!==i&&this[cr("0xc")].model.change((()=>{n[cr("0x2f")](i,{commandName:"listReversed",commandParams:[{reversed:e[cr("0x8")]}],formatGroupId:"listReversed"})}))}[cr("0x23")](t,e={}){const n=this[cr("0xc")].plugins.get(cr("0x1d")),o=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x20")),i=this[cr("0x31")]((t=>o[cr("0x15")](t)&&cr("0x19")===t[cr("0x26")](cr("0x9"))));null!==i&&this[cr("0xc")][cr("0x2")][cr("0x5")]((()=>{n.markMultiRangeBlockFormat(i,{commandName:cr("0x14"),commandParams:[{startIndex:e[cr("0x28")]}],formatGroupId:cr("0x14")})}))}handleDescriptions(t){if(cr("0x32")!=t[cr("0x1b")]&&cr("0x1c")!=t.type)return;const e=this.editor[cr("0x1a")],{data:n}=t;if(!n)return;let o,i;switch(n[cr("0x1e")]){case cr("0x2d"):o=cr("0x33"),i={type:"format",content:Qo(e,o,Qo(e,this[cr("0x11")](n[cr("0x21")][0].type)))};break;case"listReversed":o=n[cr("0x21")][0][cr("0x8")]?"*Format:* set order to reversed":cr("0x2c"),i={type:cr("0xf"),content:Qo(e,o)};break;case"listStart":o="*Format:* set start index to %0",i={type:cr("0xf"),content:Qo(e,o,n[cr("0x21")][0][cr("0x28")])}}return i}[cr("0x1")](){const t=this[cr("0xc")][cr("0xe")][cr("0x27")](cr("0x20"));let e=Array[cr("0x12")](this[cr("0xc")].model.document.selection.getSelectedBlocks());return e[cr("0x29")](...t.expandListBlocksToCompleteList(e)),e=[...new Set(e)],e}[cr("0x31")](t){const e=this.editor.plugins.get(cr("0x20"));let n=Array[cr("0x12")](this[cr("0xc")][cr("0x2")][cr("0x2b")].selection[cr("0x0")]())[cr("0x25")](t);if(!n[cr("0x30")])return null;n=e[cr("0x3")](n);const o=[];for(const t of n)e[cr("0xb")](t)&&o[cr("0x29")](t);return o}[cr("0x11")](t){return cr("0x2e")+this.editor[cr("0xe")][cr("0x27")](cr("0x17"))[cr("0x1f")](t).toUpperCase()+cr("0x24")+t[cr("0x4")]()[cr("0xa")](/-/g,"_")}}var ur=n(331);const dr=["markerNameToElements","enterBlock","removeMarker:suggestion:insertion","bind","requires","commands","model","showSuggestionHighlights","plugins","nextSibling","enableCommand","selection","downcastDispatcher","options","afterExecute","writer","init","high","createRange","document","markInsertion","getFirstRange","enter","fire","getFirstPosition","get","createPositionAt","split","mapper","addMarker:suggestion:insertion","hasClass","editor","ck-suggestion-marker-split","remove","TrackChangesEditing","end","editing","markerName"];var gr,fr;gr=dr,fr=432,function(t){for(;--t;)gr.push(gr.shift())}(++fr);const mr=function(t,e){return dr[t-=0]};class hr extends t.Plugin{static get[mr("0x1c")](){return[ur.Enter]}[mr("0x2")](){const t=this[mr("0x11")],e=t[mr("0x20")][mr("0xb")](mr("0x14")),n=t[mr("0x1d")].get(mr("0x8"));e[mr("0x22")](mr("0x8"),(()=>{t[mr("0x1e")].change((o=>{const i=t[mr("0x1e")][mr("0x5")][mr("0x23")],r=i[mr("0xa")](),x=s.LiveRange.fromRange(i[mr("0x7")]());if(n[mr("0x19")](o)){const n=t[mr("0x1e")][mr("0xc")](r.parent[mr("0x21")],0),i=o[mr("0x4")](r,n);e[mr("0x6")](i)}else o.setSelection(o.createRange(x[mr("0x15")]));x.detach(),n[mr("0x9")](mr("0x0"),{writer:o})}))})),t.editing[mr("0x24")].on(mr("0xf"),$i(t,mr("0xd")),{priority:mr("0x3")}),t[mr("0x16")].downcastDispatcher.on(mr("0x1a"),((t,e,n)=>{const o=n[mr("0xe")][mr("0x18")](e.markerName);if(o)for(const t of o)t[mr("0x10")](mr("0x12"))&&(n[mr("0xe")].unbindElementFromMarkerName(t,e[mr("0x17")]),n[mr("0x1")][mr("0x13")](t))}),{priority:mr("0x3")}),t.data[mr("0x24")].on(mr("0xf"),((e,n,o)=>{o[mr("0x25")][mr("0x1f")]&&$i(t,mr("0xd"),{showActiveMarker:!1})[mr("0x1b")](this)(e,n,o)}),{priority:mr("0x3")})}}const pr=["TrackChangesEditing","suggestion:deletion","createPositionAt","handleFindCommand","has","_isInDeletionRange","start","findByTextCallback","createRange","findPrevious","get","plugins","getRange","enableCommand","markers","editor","end","model","getIntersection","getMarkersGroup","find","replaceAll","filter","FindAndReplaceEditing","string","findNext","FindAndReplaceUtils"];var br,Er;br=pr,Er=240,function(t){for(;--t;)br.push(br.shift())}(++Er);const _r=function(t,e){return pr[t-=0]};class Tr extends t.Plugin{afterInit(){if(!this[_r("0x12")][_r("0xe")][_r("0x7")](_r("0x1a")))return;const t=this[_r("0x12")][_r("0xe")].get(_r("0x3"));t[_r("0x10")](_r("0x17"),this[_r("0x6")].bind(this)),t[_r("0x10")](_r("0x1")),t[_r("0x10")](_r("0xc")),t[_r("0x10")]("replace"),t[_r("0x10")](_r("0x18"))}[_r("0x6")](t,e,n={}){const o=this[_r("0x12")][_r("0xe")][_r("0xd")](_r("0x2"));if(void 0!==n)return t((t=>(_r("0x0")==typeof e?o[_r("0xa")](e,n):e)(t)[_r("0x19")]((e=>!1===this[_r("0x8")](e,t.item)))),n)}[_r("0x8")](t,e){const n=this[_r("0x12")].model[_r("0xb")](this[_r("0x12")][_r("0x14")].createPositionAt(e,t[_r("0x9")]),this[_r("0x12")][_r("0x14")][_r("0x5")](e,t[_r("0x13")]));for(const t of this.editor.model[_r("0x11")][_r("0x16")](_r("0x4")))if(null!==n[_r("0x15")](t[_r("0xf")]()))return!0;return!1}}const yr=["find","normalizeSizeOptions","title","FORMAT_FONT_COLOR","model","FontSizeEditing","fontSize.options","FontColorEditing","fontBackgroundColor.colors","*Reset font color*","_enableDefaultAttributesIntegration","commandName","*Reset font background color*","label","trim","locale","_descriptionFactory","FORMAT_FONT_FAMILY","*Reset font size*","*Set font color:* %0","type","fontColor","value","toLowerCase","registerAttributeLabel","_registerLegacyDescription","format","fontFamily","config","editor","fontBackgroundColor","registerDescriptionCallback","commandParams","fontSize","*Set font size:* %0","TrackChangesEditing","get","*Reset font family*","plugins","FORMAT_FONT_BACKGROUND","fontColor.colors","formatInline"];var Cr,Ar;Cr=yr,Ar=270,function(t){for(;--t;)Cr.push(Cr.shift())}(++Ar);const kr=function(t,e){return yr[t-=0]},Ir=[{pluginName:kr("0x1d"),commandName:kr("0xf")},{pluginName:"FontFamilyEditing",commandName:"fontFamily"},{pluginName:kr("0x1f"),commandName:kr("0x3")},{pluginName:"FontBackgroundColorEditing",commandName:kr("0xc")}];class Rr extends t.Plugin{afterInit(){const t=this[kr("0xb")][kr("0x27")],e=this[kr("0xb")].plugins[kr("0x12")](kr("0x11"));for(const{pluginName:t,commandName:n}of Ir)this[kr("0xb")][kr("0x14")].has(t)&&e[kr("0x22")](n,[n]);t.t,e[kr("0x28")].registerAttributeLabel(kr("0xf"),Qo(t,"FORMAT_FONT_SIZE")),e._descriptionFactory.registerAttributeLabel(kr("0x9"),Qo(t,kr("0x29"))),e[kr("0x28")][kr("0x6")]("fontColor",Qo(t,kr("0x1b"))),e[kr("0x28")][kr("0x6")]("fontBackgroundColor",Qo(t,kr("0x15"))),this[kr("0x7")]()}[kr("0x7")](){const t=this.editor,e=t[kr("0x27")];t[kr("0x14")][kr("0x12")](kr("0x11"))[kr("0x28")][kr("0xd")]((t=>{const n=e.t;if(kr("0x17")!=t[kr("0x2")])return;const{data:o}=t;if(null!=o){if(kr("0xf")==o[kr("0x23")]){const t=o[kr("0xe")][0][kr("0x4")];if(t){const o=n(this[kr("0xb")].plugins[kr("0x12")]("FontSize")[kr("0x19")](this[kr("0xb")][kr("0xa")].get(kr("0x1e")))[kr("0x18")]((e=>e[kr("0x1c")]==t))[kr("0x1a")])[kr("0x5")]();return{type:kr("0x8"),content:Qo(e,kr("0x10"),o)}}return{type:kr("0x8"),content:Qo(e,kr("0x0"))}}if(kr("0x9")==o[kr("0x23")]){const t=o[kr("0xe")][0][kr("0x4")];return t?{type:kr("0x8"),content:Qo(e,"*Set font family:* %0",t)}:{type:kr("0x8"),content:Qo(e,kr("0x13"))}}if(kr("0x3")==o[kr("0x23")]){const t=o.commandParams[0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xb")].config[kr("0x12")](kr("0x16")))[kr("0x18")]((e=>e[kr("0x1c")]==t));let r=t,s="";return o&&(r=o[kr("0x25")],s=n(r)[kr("0x5")]()),{type:kr("0x8"),content:Qo(e,kr("0x1"),s).trim(),color:{value:t,title:s||r}}}return{type:kr("0x8"),content:Qo(e,kr("0x21"))}}if(kr("0xc")==o[kr("0x23")]){const t=o.commandParams[0].value;if(t){const o=(0,i.normalizeColorOptions)(this[kr("0xb")][kr("0xa")][kr("0x12")](kr("0x20")))[kr("0x18")]((e=>e[kr("0x1c")]==t));let r=t,s="";return o&&(r=o[kr("0x25")],s=n(r)[kr("0x5")]()),{type:kr("0x8"),content:Qo(e,"*Set font background color:* %0",s)[kr("0x26")](),color:{value:t,title:s||r}}}return{type:kr("0x8"),content:Qo(e,kr("0x24"))}}}}))}}const Sr=["locale","model","editor","commandParams","toUpperCase","title","fontSize","split","afterInit","commands","copyFormat","formatInline","plugins","type","get","label","toLowerCase","join","fontColor.colors","fontBackgroundColor","formatBlock","slice","*Set format to:* %0","commandName","fontSize.options","push","enableCommand","boolean","pasteFormat","find","config","format","_registerLegacyDescription","_enableDefaultAttributesIntegration","normalizeSizeOptions","TrackChangesEditing","length"];var vr,Nr;vr=Sr,Nr=432,function(t){for(;--t;)vr.push(vr.shift())}(++Nr);const Lr=function(t,e){return Sr[t-=0]};class Mr extends t.Plugin{[Lr("0x14")](){const t=this[Lr("0xe")],e=t[Lr("0x18")][Lr("0x1a")](Lr("0xa")),n=t[Lr("0x15")][Lr("0x1a")]("copyFormat"),o=t[Lr("0x15")][Lr("0x1a")]("pasteFormat");n&&o&&(e[Lr("0x8")](Lr("0x3")),e[Lr("0x1")](Lr("0x16")),this[Lr("0x7")]())}[Lr("0x7")](){const t=this.editor,e=t[Lr("0xc")];t[Lr("0x18")].get(Lr("0xa"))._descriptionFactory.registerDescriptionCallback((n=>{if(Lr("0x20")!=n[Lr("0x19")]&&Lr("0x17")!=n[Lr("0x19")])return;const{data:o}=n;if(o&&Lr("0x3")===o[Lr("0x23")]){const n=[],i=o[Lr("0xf")][0];for(const[e,o]of Object.entries(i))n[Lr("0x0")](wr(t,e,o));return n[Lr("0xb")]?{type:Lr("0x6"),content:Qo(e,Lr("0x22"),n.join(", "))}:{type:Lr("0x6"),content:Qo(e,"*Remove all formatting*")}}}))}}function wr(t,e,n){const o=t[Lr("0xc")].t,r=e[Lr("0x13")](/(?=[A-Z])/)[Lr("0x1d")](" "),s=o(r.charAt(0)[Lr("0x10")]()+r[Lr("0x21")](1)).toLowerCase();if(Lr("0x2")==typeof n)return s;if("fontColor"===e||Lr("0x1f")===e){const e=(0,i.normalizeColorOptions)(t.config[Lr("0x1a")](Lr("0x1e")))[Lr("0x4")]((t=>t[Lr("0xd")]==n));return s+" ("+(e?o(e[Lr("0x1b")])[Lr("0x1c")]():n)+")"}if(Lr("0x12")===e&&isNaN(parseFloat(n))){const e=t[Lr("0x18")][Lr("0x1a")]("FontSize")[Lr("0x9")](t[Lr("0x5")].get(Lr("0x24")))[Lr("0x4")]((t=>t.model==n));return s+" ("+(e?o(e[Lr("0x11")])[Lr("0x1c")]():n)+")"}return s+" ("+n+")"}const Or=["find","_getHeadingLevel","has","_enableDefaultAttributesIntegration","heading.options","get","ELEMENT_HEADING_CUSTOM","_descriptionFactory","match","format","HeadingEditing","model","heading","_headingOptions","*Change to:* %0","view","afterInit","plugins","_registerLegacyDescription","paragraph","type","ELEMENT_HEADING","title","locale","name"];var Fr,Dr;Fr=Or,Dr=286,function(t){for(;--t;)Fr.push(Fr.shift())}(++Dr);const Br=function(t,e){return Or[t-=0]};class Pr extends t.Plugin{[Br("0x5")](){const t=this.editor;if(!t[Br("0x6")][Br("0x10")](Br("0x18")))return;this[Br("0x2")]=t.config[Br("0x13")](Br("0x12"));const e=t[Br("0xc")],n=t[Br("0x6")][Br("0x13")]("TrackChangesEditing");n[Br("0x11")](Br("0x1"));for(const t of this[Br("0x2")])Br("0x8")!=t[Br("0x0")]&&n[Br("0x15")].registerElementLabel(t.model,(n=>{const o=this._getHeadingLevel(t[Br("0x0")]);return null!==o?(s=n,x=o,Qo(e,Br("0xa"),[s,x])):(i=n,r=t[Br("0xb")],Qo(e,"ELEMENT_HEADING_CUSTOM",[i,r]));var i,r,s,x}));this[Br("0x7")]()}_registerLegacyDescription(){const t=this.editor,e=t[Br("0xc")];t[Br("0x6")][Br("0x13")]("TrackChangesEditing")[Br("0x15")].registerDescriptionCallback((t=>{if("formatBlock"!=t[Br("0x9")])return;const{data:n}=t;if(n&&Br("0x1")==n.commandName){const t=n.commandParams[0].value,s=this[Br("0xf")](t);if(null!==s)return{type:"format",content:Qo(e,Br("0x3"),(1,r=s,Qo(e,Br("0xa"),[1,r])))};const x=this[Br("0x2")][Br("0xe")]((e=>e[Br("0x0")]===t))[Br("0xb")];return{type:Br("0x17"),content:Qo(e,Br("0x3"),(o=1,i=x,Qo(e,Br("0x14"),[o,i])))}}var o,i,r}))}[Br("0xf")](t){var e,n;const o=t[Br("0x16")](/^heading(\d+)/);if(o)return o[1];const i=null===(e=this._headingOptions)||void 0===e?void 0:e[Br("0xe")]((e=>e[Br("0x0")]==t));if(i&&i[Br("0x4")]){const t=i[Br("0x4")],e=(null!==(n=t[Br("0xd")])&&void 0!==n?n:t)[Br("0x16")](/^h(\d+)/);if(e)return e[1]}return null}}const Ur=["type","format","*Remove highlight*","has","locale","_descriptionFactory","FORMAT_HIGHLIGHT","title","toLowerCase","color","*Set highlight:* %0","find","_enableDefaultAttributesIntegration","editor","TrackChangesEditing","afterInit","plugins","value","highlight","_registerLegacyDescription","HighlightEditing","get"];var jr,Gr;jr=Ur,Gr=243,function(t){for(;--t;)jr.push(jr.shift())}(++Gr);const Vr=function(t,e){return Ur[t-=0]};class Hr extends t.Plugin{[Vr("0xe")](){const t=this[Vr("0xc")];if(!t[Vr("0xf")][Vr("0x2")](Vr("0x13")))return;const e=t[Vr("0xf")][Vr("0x14")]("TrackChangesEditing"),n=t.locale;e[Vr("0xb")]("highlight",["highlight"]),e[Vr("0x4")].registerAttributeLabel("highlight",Qo(n,"FORMAT_HIGHLIGHT")),this[Vr("0x12")]()}[Vr("0x12")](){const t=this.editor,e=t[Vr("0x3")];t[Vr("0xf")][Vr("0x14")](Vr("0xd"))[Vr("0x4")].registerDescriptionCallback((n=>{if("formatInline"!=n[Vr("0x15")])return;const{data:o}=n;if(o&&Vr("0x11")==o.commandName){const n=e.t,i=o.commandParams[0][Vr("0x10")];if(i){const o=t.config.get("highlight.options")[Vr("0xa")]((t=>t.model==i)),r=n(o[Vr("0x6")])[Vr("0x7")]();return{type:Vr("0x0"),content:Qo(e,Vr("0x9"),r),color:{value:o[Vr("0x8")],title:o[Vr("0x6")]}}}return{type:Vr("0x0"),content:Qo(e,Vr("0x1"),Qo(e,Vr("0x5")))}}}))}}const zr=["registerElementLabel","dataDowncast","createEmptyElement","for","insert","conversion","get","createPositionAt","showSuggestionHighlights","locale","elementToStructure","ELEMENT_HORIZONTAL_LINE","plugins","TrackChangesEditing","editor","horizontalLine","addClass","has","afterInit","createContainerElement"];var Wr,Kr;Wr=zr,Kr=197,function(t){for(;--t;)Wr.push(Wr.shift())}(++Kr);const qr=function(t,e){return zr[t-=0]};class Xr extends t.Plugin{[qr("0x1")](){const t=this[qr("0x11")];if(!t[qr("0xf")][qr("0x0")]("HorizontalLineEditing"))return;t[qr("0xf")][qr("0x9")](qr("0x10")).enableCommand("horizontalLine");const e=t[qr("0xf")][qr("0x9")](qr("0x10")),n=t[qr("0xc")];e._descriptionFactory[qr("0x3")](qr("0x12"),(t=>Qo(n,qr("0xe"),t))),t[qr("0x8")][qr("0x6")](qr("0x4"))[qr("0xd")]({model:"horizontalLine",view:(t,{writer:e,options:n})=>{if(!n[qr("0xb")])return null;const o=e[qr("0x2")]("div"),i=e[qr("0x5")]("hr");return e[qr("0x13")]("ck-horizontal-line",o),e[qr("0x7")](e[qr("0xa")](o,0),i),o},converterPriority:"high"})}}const $r=["formatBlock","get","_registerLegacyDescription","commandName","value","key","registerDescriptionCallback","getFirstRange","afterInit","attribute","nodeAfter","start","type","plugins","locale","htmlEmbed","_descriptionFactory","TrackChangesEditing","_enableDefaultAttributesIntegration","rawHtml","*Change %0 content*","ELEMENT_HTML_EMBED","registerElementLabel","format","editor"];var Zr,Yr;Zr=$r,Yr=303,function(t){for(;--t;)Zr.push(Zr.shift())}(++Yr);const Jr=function(t,e){return $r[t-=0]};class Qr extends t.Plugin{[Jr("0x5")](){const t=this[Jr("0x15")];if(!t[Jr("0xa")].has("HtmlEmbed"))return;const e=t[Jr("0xa")][Jr("0x17")](Jr("0xe")),n=t.locale;e[Jr("0xd")][Jr("0x13")](Jr("0x10"),(t=>Qo(n,"ELEMENT_HTML_EMBED",t))),e[Jr("0xf")](Jr("0xc"),[],[Jr("0x1")]),e[Jr("0xd")][Jr("0x3")]((t=>{if(Jr("0x6")!=t.type)return;const{data:e}=t;if(e&&Jr("0x1")==e[Jr("0x2")]&&t[Jr("0x4")]()[Jr("0x8")][Jr("0x7")].is("element","rawHtml")){const t=Qo(n,Jr("0x12"));return{type:Jr("0x14"),content:Qo(n,"*Change %0 content*",t)}}})),this[Jr("0x18")]()}[Jr("0x18")](){const t=this[Jr("0x15")],e=t[Jr("0xb")];t[Jr("0xa")][Jr("0x17")]("TrackChangesEditing")._descriptionFactory[Jr("0x3")]((t=>{if(Jr("0x16")!=t[Jr("0x9")])return;const{data:n}=t;if(n&&"htmlEmbed"==n[Jr("0x0")]){const t=Qo(e,Jr("0x12"));return{type:Jr("0x14"),content:Qo(e,Jr("0x11"),t)}}}))}}const ts=["nodeAfter","createRange","selection","_registerLegacyDescription","change","*Remove image text alternative*","imageStylePreApply","insertion","schema","*Reset image width*","isEqual","ImageUploadEditing","discard","backward","removeObject","isCollapsed","ImageResize","toggleImageCaption","detach","find","registerDescriptionCallback","imageTextAlternative","filter","caption","locale","ImageEditing","end","imageCaption","getCaptionFromImageModelElement","convertBlockImageToInline","_suggestionFactory","isBlockImage","model","markBlockFormat","nodeBefore","editor","getSuggestionCallback","isBefore","length","getFirstRange","resizedWidth","registerElementLabel","key","format","getNearestSelectionRange","insertImage","getClosestSelectedImageElement","imageInline","start","deletion","type","addObject","get","formatBlock","ELEMENT_CAPTION","isIntersecting","commandParams","alt","*Set image text alternative:* %0","markDeletion","imageTypeInline","_descriptionFactory","imageBlock","width","ImageInlineEditing","plugins","ELEMENT_IMAGE","ImageUtils","Inline image to block image","_enableDefaultAttributesIntegration","*Set image width:* %0","afterInit","ELEMENT_INLINE_IMAGE","toPrevious","fromPosition","formatInline","subType","accept","chain","resizeImage","enableCommand","join","ImageCaptionEditing","element","TrackChangesEditing","document","markInsertion","registerCustomCallback","convertInlineImageToBlock","Block image to inline image","createRangeOn","has","isOwn","ImageTextAlternativeEditing"];var es,ns;es=ts,ns=212,function(t){for(;--t;)es.push(es.shift())}(++ns);const os=function(t,e){return ts[t-=0]};class is extends t.Plugin{[os("0x2f")](){const t=this[os("0xb")];if(!t[os("0x29")][os("0x43")](os("0x1")))return;const e=t[os("0x29")][os("0x1c")]("TrackChangesEditing"),n=t.plugins[os("0x1c")](os("0x2b")),o=t[os("0x0")];e[os("0x38")](os("0x15")),e[os("0x25")][os("0x11")](os("0x26"),(t=>Qo(o,os("0x2a"),t))),e._descriptionFactory[os("0x11")](os("0x17"),(t=>Qo(o,os("0x30"),t))),e[os("0x25")][os("0x11")](os("0x5d"),(()=>Qo(o,os("0x1e")))),t[os("0x29")][os("0x43")](os("0x51"))&&e[os("0x38")]("uploadImage"),t[os("0x29")][os("0x43")]("ImageBlockEditing")&&t[os("0x29")][os("0x43")](os("0x28"))&&(e[os("0x38")](os("0x24"),((o,i)=>{const r=n[os("0x16")](t.model[os("0x3d")][os("0x48")]);t.model[os("0x4a")]((()=>{e[os("0x9")](r,{commandName:os("0x24"),commandParams:[i]},[],os("0x5"))}))})),e[os("0x38")]("imageTypeBlock",((o,i)=>{t[os("0x8")][os("0x4a")]((r=>{let x=n.getClosestSelectedImageElement(t.model[os("0x3d")].selection),a=r[os("0x42")](x);const c=s.LivePosition[os("0x32")](a.start,os("0x31")),l=s.LivePosition[os("0x32")](a[os("0x2")],"toNext");e.forceDefaultExecution((()=>o(i))),x=n[os("0x16")](t.model[os("0x3d")][os("0x48")]),a=r.createRangeOn(x);const u=r[os("0x47")](c,l);c[os("0x58")](),l.detach(),e[os("0x9")](x,{commandName:"imageTypeInline",commandParams:[i]},[],os("0x40")),u[os("0x18")].isBefore(a[os("0x18")])&&e.markInsertion(r[os("0x47")](u[os("0x18")],a[os("0x18")]),os("0x40")),a[os("0x2")][os("0xd")](u[os("0x2")])&&e[os("0x3e")](r.createRange(a.end,u.end),"convertInlineImageToBlock")}))})),e[os("0x6")].registerCustomCallback(os("0x1d"),os("0x40"),"join",(()=>!1)),e._suggestionFactory[os("0x3f")]("formatBlock",os("0x40"),"accept",(()=>!1)),e._suggestionFactory[os("0x3f")](os("0x1d"),os("0x40"),os("0x52"),e[os("0x6")][os("0xc")](os("0x1d"),"",os("0x35"))),e[os("0x6")][os("0x3f")](os("0x4d"),"convertInlineImageToBlock",os("0x39"),(()=>!1)),e[os("0x6")].registerCustomCallback(os("0x4d"),os("0x40"),os("0x52"),(([n])=>{const o=e[os("0x6")].getSuggestionCallback("insertion","",os("0x52"));let i=n[os("0x18")],r=n[os("0x2")];const s=t[os("0x8")][os("0x4e")][os("0x14")](i,os("0x53")),x=t[os("0x8")].schema.getNearestSelectionRange(r,"forward");s.isCollapsed&&(i=s[os("0x18")]),x[os("0x55")]&&(r=x[os("0x2")]),o([t.model[os("0x47")](i,r)])})),e[os("0x6")][os("0x3f")](os("0x1d"),os("0x40"),os("0x36"),x),e[os("0x6")][os("0x3f")]("insertion","convertInlineImageToBlock","chain",x)),t[os("0x29")][os("0x43")](os("0x3a"))&&(e[os("0x38")](os("0x57"),((o,i)=>{const r=t[os("0x29")][os("0x1c")]("ImageCaptionUtils");let s=n[os("0x16")](t[os("0x8")][os("0x3d")][os("0x48")]),x=r[os("0x4")](s);t[os("0x8")][os("0x4a")]((()=>{if(x)return void e[os("0x23")](t.model[os("0x42")](x));const a=n[os("0x7")](s);o(i),s=n.getClosestSelectedImageElement(t[os("0x8")][os("0x3d")][os("0x48")]),x=r.getCaptionFromImageModelElement(s),e[os("0x3e")](t[os("0x8")][os("0x42")](x),a?null:os("0x3"))}))})),e[os("0x6")][os("0x3f")](os("0x4d"),os("0x3"),os("0x36"),x));const i=[{type:"formatBlock",subType:os("0x4c")},{type:os("0x4d"),subType:os("0x3")},{type:"formatBlock",subType:os("0x40")},{type:os("0x4d"),subType:os("0x40")}];function r(t,o){const r=i.findIndex((({type:e,subType:n})=>t[os("0x1a")]==e&&t[os("0x34")]==n)),s=i.findIndex((({type:t,subType:e})=>o[os("0x1a")]==t&&o[os("0x34")]==e));if(r<0||s<0)return!1;const x=t[os("0xf")](),a=o[os("0xf")]();if((0==r||1==r)&&2==s&&x[os("0x1f")](a))return!0;if(2==r&&3==s){const t=e._findSuggestions(x,os("0x4d"))[os("0x5c")]((({suggestion:t,meta:e})=>e[os("0x44")]&&os("0x40")==t[os("0x34")]));if(t[os("0xe")]>1&&a[os("0x2")][os("0x50")](x[os("0x18")]))return!0;if(1==t[os("0xe")]&&(x[os("0x18")][os("0x50")](a[os("0x2")])||x[os("0x2")][os("0x50")](a[os("0x18")])))return!0}if(3==r&&3==s&&x[os("0x18")][os("0xd")](a[os("0x18")])){const t=x[os("0x2")][os("0x46")],e=a[os("0x18")][os("0xa")];return n[os("0x7")](t)&&t===e}return!1}function x(t,e){return r(t,e)?[t,e]:r(e,t)?[e,t]:null}t[os("0x29")][os("0x43")](os("0x56"))&&(e._enableDefaultAttributesIntegration(os("0x37"),[],[os("0x10")]),e._descriptionFactory.registerAttributeLabel(os("0x10"),Qo(o,"FORMAT_IMAGE_SIZE"))),t.plugins[os("0x43")](os("0x45"))&&e[os("0x2d")](os("0x5b"),[],[os("0x21")]),e[os("0x25")][os("0x5a")]((t=>{if(i[os("0x59")]((({type:e,subType:n})=>t[os("0x1a")]==e&&t.subType==n)))return t.previous?{}:void 0})),e[os("0x25")].registerDescriptionCallback((t=>{if(os("0x4d")==t[os("0x1a")]||os("0x19")==t[os("0x1a")]){const e=t.getContainedElement();if(e&&e.is(os("0x3b"),os("0x5d")))return{type:os("0x4d")==t[os("0x1a")]?os("0x1b"):os("0x54"),element:e,quantity:1}}})),e[os("0x25")].registerDescriptionCallback((t=>"formatBlock"==t[os("0x1a")]&&"convertInlineImageToBlock"==t[os("0x34")]?{type:os("0x13"),content:os("0x2c")}:os("0x1d")==t[os("0x1a")]&&os("0x5")==t[os("0x34")]?{type:os("0x13"),content:os("0x41")}:void 0)),e._descriptionFactory[os("0x5a")]((t=>{if("attribute"!=t[os("0x1a")])return;const{data:e}=t;if(!e||os("0x21")!=e[os("0x12")])return;const n=e.newValue;return n?{type:os("0x13"),content:Qo(o,"*Set image text alternative:* %0",'"'+n+'"')}:{type:os("0x13"),content:Qo(o,"*Remove image text alternative*")}})),this[os("0x49")]()}[os("0x49")](){const t=this[os("0xb")],e=t[os("0x0")];t[os("0x29")][os("0x1c")](os("0x3c"))._descriptionFactory[os("0x5a")]((t=>{if(os("0x1d")!=t[os("0x1a")]&&os("0x33")!=t[os("0x1a")])return;const{data:n}=t;if(n){if(os("0x5b")==n.commandName){const t=n[os("0x20")][0].newValue;return t?{type:os("0x13"),content:Qo(e,os("0x22"),'"'+t+'"')}:{type:os("0x13"),content:Qo(e,os("0x4b"))}}if(os("0x37")==n.commandName){const t=n.commandParams[0][os("0x27")];return t?{type:os("0x13"),content:Qo(e,os("0x2e"),t)}:{type:os("0x13"),content:Qo(e,os("0x4f"))}}}}))}}const rs=["registerCustomCallback","_registerLegacyDescription","_enableDefaultAttributesIntegration","discard","commandName","replaceImageSource","locale","ImageEditing","newValue","format","_handleLegacySuggestions","editor","formatBlock","*Replace image URL*","type","registerDescriptionCallback","formatInline","_descriptionFactory","_suggestionFactory","getSuggestionCallback","get","TrackChangesEditing","attribute","plugins","accept","oldValue","afterInit"];var ss,xs;ss=rs,xs=241,function(t){for(;--t;)ss.push(ss.shift())}(++xs);const as=function(t,e){return rs[t-=0]};class cs extends t.Plugin{[as("0x1")](){if(!this[as("0xd")][as("0x19")].has(as("0x9")))return;const t=this[as("0xd")][as("0x8")],e=this[as("0xd")].plugins[as("0x16")](as("0x17"));e[as("0x4")](as("0x7"),[],["src"]),e[as("0x13")].registerDescriptionCallback((e=>{if(as("0x18")!=e[as("0x10")])return;const{data:n}=e;return n&&"src"==n.key?n[as("0xa")]&&n[as("0x0")]?{type:as("0xb"),content:Qo(t,as("0xf"))}:{type:as("0xb"),content:""}:void 0})),this[as("0xc")]()}[as("0xc")](){const t=this[as("0xd")][as("0x19")][as("0x16")](as("0x17"));t._suggestionFactory[as("0x2")](as("0xe"),as("0x7"),as("0x1a"),t[as("0x14")][as("0x15")]("formatBlock",null,as("0x5"))),t[as("0x14")].registerCustomCallback(as("0xe"),"replaceImageSource",as("0x5"),t[as("0x14")][as("0x15")](as("0xe"),null,"accept")),this[as("0x3")]()}[as("0x3")](){const t=this[as("0xd")],e=t[as("0x8")];t[as("0x19")][as("0x16")]("TrackChangesEditing")._descriptionFactory[as("0x11")]((t=>{if(as("0xe")!=t[as("0x10")]&&as("0x12")!=t[as("0x10")])return;const{data:n}=t;return n&&as("0x7")===n[as("0x6")]?{type:"format",content:Qo(e,as("0xf"))}:void 0}))}}const ls=["value","accept","commandReversedParams","filter","getChangedMarkers","document","subType","refresh","newRange","format","imageStylePostApply","getClosestSelectedImageElement","imageStylePreApply","enableCommand","commandParams","ImageUtils","author","findIndex","getSuggestionCallback","has","chain","locale","insertion","get","markInlineFormat","_suggestionFactory","getContainedElement","*Format:* %0","isInContent","getFirstRange","isBlockImage","join","ImageStyleEditing","selection","createRangeOn","next","isBefore","type","toLowerCase","registerCustomCallback","FORMAT_SIDE_IMAGE","end","getSuggestion","shouldConvertImageType","change","isIntersecting","_registerLegacyDescription","isInlineImage","model","from","formatBlock","discardSuggestion","editor","imageTypeBlock","hasSuggestion","plugins","isEqual","isOwn","title","formatInline","getSuggestions","length","imageTypeInline","markBlockFormat","_splitMarkerName","commands","nodeAfter","start","convertInlineImageToBlock","imageStyle"];var us,ds;us=ls,ds=410,function(t){for(;--t;)us.push(us.shift())}(++ds);const gs=function(t,e){return ls[t-=0]};class fs extends t.Plugin{afterInit(){const t=this[gs("0x3e")];if(!t[gs("0x41")][gs("0x1d")]("ImageStyleEditing"))return;const n=t[gs("0x41")][gs("0x21")]("TrackChangesEditing"),o=t[gs("0x41")][gs("0x21")](gs("0x19")),i={};n[gs("0x17")]("imageStyle",((i,r)=>{const s=t.plugins[gs("0x21")]("Users").me,x=t[gs("0x5")][gs("0x21")](gs("0x9"));let a=o[gs("0x15")](t[gs("0x3a")][gs("0xf")][gs("0x2b")]),c=t[gs("0x3a")][gs("0x2c")](a),l=x[gs("0xa")];if(l==r[gs("0xa")])return;const u={commandName:"imageStyle",commandParams:[r],formatGroupId:(0,e.uid)()};t[gs("0x3a")][gs("0x36")]((()=>{if(n[gs("0x0")]()[gs("0xd")]((t=>t[gs("0x26")]&&s==t[gs("0x1a")]&&(gs("0x3c")==t[gs("0x2f")]||"formatInline"==t.type)&&(gs("0x16")==t.subType||"imageStylePostApply"==t.subType)&&t[gs("0x27")]().isEqual(c))).forEach((t=>n[gs("0x3d")](t.head))),a=o[gs("0x15")](t[gs("0x3a")].document[gs("0x2b")]),c=t[gs("0x3a")][gs("0x2c")](a),x.refresh(),t[gs("0x5")].get(gs("0x2"))[gs("0x11")](),t[gs("0x5")][gs("0x21")](gs("0x3f")).refresh(),l=x.value,l!=r.value)return o[gs("0x39")](a)&&x[gs("0x35")](r[gs("0xa")],a)?(i({...r,setImageSizes:!1}),a=o.getClosestSelectedImageElement(t[gs("0x3a")][gs("0xf")][gs("0x2b")]),void n[gs("0x3")](a,{...u,commandReversedParams:[{value:l||null,setImageSizes:!1}]},[],gs("0x16"))):void(o[gs("0x28")](a)?n[gs("0x3")](a,u,[],gs("0x14")):n[gs("0x22")](c,u,gs("0x14")))}))}));for(const e of t.plugins[gs("0x21")](gs("0x2a")).normalizedStyles)i[e.name]=e[gs("0x44")][gs("0x30")]();n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x16"),gs("0x29"),(()=>!1)),n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x14"),gs("0x29"),(()=>!1)),n[gs("0x23")].registerCustomCallback(gs("0x45"),gs("0x14"),gs("0x29"),(()=>!1)),n._suggestionFactory[gs("0x31")](gs("0x3c"),gs("0x16"),"accept",(([t])=>{o.setImageNaturalSizeAttributes(t.getContainedElement())})),n._suggestionFactory[gs("0x31")]("formatBlock",gs("0x16"),"discard",((t,e)=>{n[gs("0x23")][gs("0x1c")](gs("0x3c"),"",gs("0xb"))(t,{commandName:e.commandName,commandParams:e[gs("0xc")]})})),n[gs("0x23")][gs("0x31")](gs("0x3c"),"imageStylePreApply",gs("0x1e"),(function(t,e){return s(t,e)?[t,e]:s(e,t)?[e,t]:null}));const r=[{type:gs("0x3c"),subType:gs("0x16")},{type:gs("0x20"),subType:"imageCaption"},{type:"formatBlock",subType:"convertInlineImageToBlock"},{type:gs("0x20"),subType:"convertInlineImageToBlock"}];function s(t,e){const i=r[gs("0x1b")]((({type:e,subType:n})=>t[gs("0x2f")]==e&&t[gs("0x10")]==n)),s=r.findIndex((({type:t,subType:n})=>e[gs("0x2f")]==t&&e[gs("0x10")]==n));if(i<0||s<0)return!1;const x=t[gs("0x27")](),a=e[gs("0x27")]();if((0==i||1==i)&&2==s&&x[gs("0x37")](a))return!0;if(2==i&&3==s){const t=n._findSuggestions(x,gs("0x20"))[gs("0xd")]((({suggestion:t,meta:e})=>e[gs("0x43")]&&gs("0x8")==t[gs("0x10")]));if(t[gs("0x1")]>1&&a[gs("0x33")][gs("0x42")](x[gs("0x7")]))return!0;if(1==t.length&&(x[gs("0x7")].isEqual(a.end)||x[gs("0x33")][gs("0x42")](a[gs("0x7")])))return!0}if(3==i&&3==s&&x[gs("0x7")][gs("0x2e")](a[gs("0x7")])){const t=x[gs("0x33")][gs("0x6")],e=a.start.nodeBefore;return o[gs("0x28")](t)&&t===e}return!1}t[gs("0x3a")][gs("0xf")].registerPostFixer((()=>{let e=!1;const i=Array[gs("0x3b")](t[gs("0x3a")][gs("0xf")].differ[gs("0xe")]());for(const{name:t,data:r}of i){const{group:i,type:s,subType:x,id:a}=n[gs("0x4")](t);if("suggestion"==i&&n[gs("0x40")](a)){if(gs("0x3c")==s&&(gs("0x16")==x||gs("0x14")==x)){const t=n.getSuggestion(a);if(r[gs("0x12")]){const i=t.getFirstRange()[gs("0x24")]();if(o[gs("0x28")](i))continue;n[gs("0x3d")](t),e=!0}}if(gs("0x20")==s&&"imageCaption"==x&&!r[gs("0x12")]){const t=n[gs("0x34")](a);t[gs("0x2d")]&&t.next[gs("0x26")]&&(n[gs("0x3d")](t[gs("0x2d")]),e=!0)}}}return e})),this[gs("0x38")](i)}_registerLegacyDescription(t){const e=this[gs("0x3e")],n=e[gs("0x1f")];e[gs("0x41")][gs("0x21")]("TrackChangesEditing")._descriptionFactory.registerDescriptionCallback((e=>{if(gs("0x3c")!=e[gs("0x2f")]&&gs("0x45")!=e[gs("0x2f")])return;const{data:o}=e;if(!o||gs("0x9")!=o.commandName)return;const i=o[gs("0x18")][0][gs("0xa")];return r="side"===i?Qo(n,gs("0x32")):t[i]||i,{type:gs("0x13"),content:Qo(n,gs("0x25"),r)};var r}))}}const ms=["track_changes","commands","dataInsert","_handleImportedData","execute","Users","TrackChangesEditing","value","enableCommand","forEach","high","get","listenTo","_trackChangesValueDuringImport","importWord","lowest","trackChanges","plugins","editor","_trackChangesExecuted","_setSuggestionData","collaboration_features","afterInit"];var hs,ps;hs=ms,ps=269,function(t){for(;--t;)hs.push(hs.shift())}(++ps);const bs=function(t,e){return ms[t-=0]};class Es extends t.Plugin{constructor(t){super(t),this[bs("0x14")]=!1,this[bs("0x3")]=!1}[bs("0x6")](){const t=this[bs("0x2")],e=t.commands[bs("0x12")](bs("0x15")),n=t.commands[bs("0x12")](bs("0x0"));e&&(e.on(bs("0xb"),((t,[,e])=>{this[bs("0x14")]=n[bs("0xe")],e[bs("0x5")][bs("0x7")]=!this[bs("0x14")]}),{priority:bs("0x11")}),this.listenTo(e,bs("0x9"),this._handleImportedData.bind(this)),this[bs("0x13")](e,bs("0x9"),(()=>{this[bs("0x3")]&&(n[bs("0xb")](),this[bs("0x3")]=!1)}),{priority:bs("0x16")}),t[bs("0x1")][bs("0x12")](bs("0xd"))[bs("0xf")]("importWord"))}[bs("0xa")](t,e){const{suggestions:n}=e,o=this[bs("0x2")][bs("0x8")][bs("0x12")](bs("0x0")),i=o[bs("0xe")];this[bs("0x14")]!==i&&(o.execute(),this[bs("0x3")]=!0),n&&n[bs("0x10")]((({id:t,type:e,author:n,created_at:o})=>{const i={id:t,type:e,authorId:this[bs("0x2")][bs("0x1")].get(bs("0xc")).me.id,createdAt:new Date,data:null,hasComments:!1,attributes:{"@external":{authorName:n,createdAt:o?new Date(o):new Date,source:"importWord"}}};this.editor[bs("0x1")].get(bs("0xd"))[bs("0x4")](i)}))}}const _s=["blockIndent","afterInit","plugins","has","_registerBlockAttribute","IndentEditing","locale","indent","registerDescriptionCallback","editor","format","indentBlock","IndentBlock","get","outdent","_descriptionFactory","outdentBlock","TrackChangesEditing","getItemLabel","_registerLegacyDescription","commandName","*Indent:* %0","*Outdent:* %0"];var Ts,ys;Ts=_s,ys=234,function(t){for(;--t;)Ts.push(Ts.shift())}(++ys);const Cs=function(t,e){return _s[t-=0]};class As extends t.Plugin{[Cs("0x14")](){const t=this[Cs("0x5")],e=t[Cs("0x15")][Cs("0x9")](Cs("0xd"));if(t[Cs("0x15")][Cs("0x16")](Cs("0x1"))&&(e.enableCommand(Cs("0x3")),e.enableCommand(Cs("0xa"))),t.plugins[Cs("0x16")](Cs("0x8")))for(const t of[Cs("0x7"),Cs("0xc")])e._enableDefaultAttributesIntegration(t);const n=t[Cs("0x2")];e[Cs("0x0")](Cs("0x13")),e[Cs("0xb")].registerAttributeLabel(Cs("0x13"),Qo(n,"FORMAT_INDENT")),this[Cs("0xf")]()}[Cs("0xf")](){const t=this.editor,e=t[Cs("0x2")],n=t[Cs("0x15")][Cs("0x9")](Cs("0xd"));n[Cs("0xb")][Cs("0x4")]((t=>{if("formatBlock"!=t.type)return;const{data:o}=t;if(!o)return;if("indentBlock"!=o.commandName&&Cs("0xc")!=o.commandName)return;const i=t.getItems()[0],r=n[Cs("0xb")][Cs("0xe")](i);return Cs("0x7")==o[Cs("0x10")]?{type:Cs("0x6"),content:Qo(e,Cs("0x11"),r)}:Cs("0xc")==o.commandName?{type:"format",content:Qo(e,Cs("0x12"),r)}:void 0}))}}var ks,Is,Rs=["enableCommand","TrackChangesEditing","input","plugins"];ks=Rs,Is=127,function(t){for(;--t;)ks.push(ks.shift())}(++Is);var Ss=function(t,e){return Rs[t-=0]};class vs extends t.Plugin{static get requires(){return[Hi.Input]}init(){this.editor[Ss("0x0")].get(Ss("0x2"))[Ss("0x1")](Ss("0x3"))}}const Ns=["key","editor","link (","TrackChangesEditing","registerAttributeLabel","format","type","commands","formatInline","locale","manualDecorators","_registerLegacyDescription","*Set link:* %0","map","linkHref","get","commandName","registerDescriptionCallback","*Remove link*","link","_enableDefaultAttributesIntegration","toLowerCase","LinkEditing","plugins","_descriptionFactory","unlink","newValue","has"];var Ls,Ms;Ls=Ns,Ms=201,function(t){for(;--t;)Ls.push(Ls.shift())}(++Ms);const ws=function(t,e){return Ns[t-=0]};class Os extends t.Plugin{afterInit(){const t=this[ws("0x18")];if(!t.plugins[ws("0x16")](ws("0x11")))return;const e=t.plugins[ws("0xa")](ws("0x1a")),n=t[ws("0x2")][ws("0xa")](ws("0xe"));e[ws("0xf")](ws("0xe"),[ws("0x9"),...n[ws("0x5")][ws("0x8")]((t=>t.id))]),e._enableDefaultAttributesIntegration("unlink");for(const t of n.manualDecorators)e[ws("0x13")][ws("0x1b")](t.id,ws("0x19")+t.label[ws("0x10")]()+")");e[ws("0x13")].registerDescriptionCallback((e=>{if("attribute"!=e.type)return;const{data:n}=e;if(!n||ws("0x9")!=n[ws("0x17")])return;const o=n[ws("0x15")],i=t.locale;return{type:ws("0x0"),content:o?Qo(i,ws("0x7"),'"'+o+'"'):Qo(i,ws("0xd"))}})),this[ws("0x6")]()}[ws("0x6")](){const t=this[ws("0x18")],e=t[ws("0x4")];t[ws("0x12")].get(ws("0x1a"))[ws("0x13")][ws("0xc")]((t=>{if(ws("0x3")!=t[ws("0x1")])return;const{data:n}=t;if(n){if("link"==n[ws("0xb")]){const t=n.commandParams[0];return{type:ws("0x0"),content:Qo(e,ws("0x7"),'"'+t+'"')}}return ws("0x14")==n[ws("0xb")]?{type:ws("0x0"),content:Qo(e,ws("0xd"))}:void 0}}))}}const Fs=["*Change to:* %0","ELEMENT_LIST_ITEM","createPositionAt","registerElementLabel","push","value","model","change","schema","List","ELEMENT_BULLETED_LIST","findIndex","numbered","enableCommand","forceValue","commands","blockName","checkChild","TodoListEditing","_descriptionFactory","formatInline","markBlockFormat","locale","parent","filter","slice","afterInit","getAttribute","add","ELEMENT_NUMBERED_LIST","document","numberedList","outdentList","todoListChecked","bulletedList","commandParams","name","listItem","nextSibling","commandName","replace","listIndent","end","getSelectedBlocks","checkTodoList","has","listType","from","plugins","indentList","registerDescriptionCallback","paragraph","previousSibling","format","get","selection","type","bulleted","element","todoList"];var Ds,Bs;Ds=Fs,Bs=172,function(t){for(;--t;)Ds.push(Ds.shift())}(++Bs);const Ps=function(t,e){return Fs[t-=0]};class Us extends t.Plugin{[Ps("0x22")](){const t=this.editor,e=t[Ps("0x1e")];if(!t.plugins[Ps("0x35")]("ListEditing"))return;const n=t[Ps("0x38")][Ps("0x2")]("TrackChangesEditing"),o=t[Ps("0x38")][Ps("0x35")](Ps("0x1a"));function i(e){return()=>{const o=t[Ps("0xe")][Ps("0x26")][Ps("0x3")],i=t.commands[Ps("0x2")](e);if(i[Ps("0xd")])return void t.execute(Ps("0x3b"),{});const r=e[Ps("0x21")](0,-4),s=function(t,e,n){let o=Array[Ps("0x37")](t)[Ps("0x20")]((t=>{return e=t,(o=n)[Ps("0x19")](e[Ps("0x1f")],"listItem")&&!o.isObject(e);var e,o}));o=o[Ps("0x20")]((t=>!t.is("element",Ps("0x2d"))||t.getAttribute(Ps("0x36"))!=e));const i=new Set;for(const t of o)t.is(Ps("0x6"),Ps("0x2d"))?i[Ps("0x24")](js(t)):i[Ps("0x24")](t);return Array.from(i)}(o[Ps("0x33")](),r,t.model[Ps("0x10")]);t[Ps("0xe")][Ps("0xf")]((()=>{for(const t of s)n[Ps("0x1d")](t,{commandName:e,commandParams:[{forceValue:!i.value}],formatGroupId:Ps("0x18")},Gs(t))}))}}function r(e){return()=>{const o=function(t){let e=Array[Ps("0x37")](t);const n=e[Ps("0x13")]((t=>Ps("0x2d")!=t[Ps("0x2c")]));return n>-1&&(e=e.slice(0,n)),e}(t[Ps("0xe")].document[Ps("0x3")][Ps("0x33")]()),i=t[Ps("0xe")].createRange(t.model.createPositionAt(o[0],"before"),t[Ps("0xe")][Ps("0xa")](o[o.length-1],Ps("0x32")));t[Ps("0xe")][Ps("0xf")]((()=>{n[Ps("0x1d")](i,{commandName:e,commandParams:[],formatGroupId:"listIndent"},function(t){const e=new Set;for(const n of t){let t=n[Ps("0x2e")];for(;t&&t[Ps("0x23")]("listIndent")>n.getAttribute("listIndent");)e.add(t),t=t[Ps("0x2e")]}return Array.from(e)}(o))}))}}n.enableCommand(Ps("0x27"),i(Ps("0x27"))),n[Ps("0x15")](Ps("0x2a"),i(Ps("0x2a"))),o&&n[Ps("0x15")]("todoList",i(Ps("0x7"))),n[Ps("0x15")](Ps("0x39"),r(Ps("0x39"))),n[Ps("0x15")](Ps("0x28"),r(Ps("0x28"))),o&&n.enableCommand(Ps("0x34"),(()=>{const e=t[Ps("0x17")][Ps("0x2")](Ps("0x34")),o=Array[Ps("0x37")](e._selectedElements);o[Ps("0x20")]((t=>t[Ps("0x23")](Ps("0x29"))!=e[Ps("0xd")])),t[Ps("0xe")][Ps("0xf")]((()=>{for(const t of o)n[Ps("0x1d")](t,{commandName:"checkTodoList",commandParams:[{forceValue:!e[Ps("0xd")]}]})}))})),n[Ps("0x1b")][Ps("0xb")](Ps("0x2d"),(t=>Qo(e,"ELEMENT_LIST_ITEM",t))),n[Ps("0x1b")][Ps("0x3a")]((t=>{if("formatBlock"!=t[Ps("0x4")]&&Ps("0x1c")!=t.type)return;const{data:n}=t;if(n){if("numberedList"==n[Ps("0x2f")]||Ps("0x2a")==n[Ps("0x2f")]||Ps("0x7")==n[Ps("0x2f")])switch(n[Ps("0x2f")][Ps("0x30")](Ps("0x11"),"")){case Ps("0x5"):return o(Qo(e,Ps("0x12")));case Ps("0x14"):return o(Qo(e,Ps("0x25")));case"todo":return o(Qo(e,"ELEMENT_TODO_LIST"))}if(Ps("0x39")==n.commandName)return{type:"format",content:Qo(e,"*Indent:* %0",Qo(e,Ps("0x9")))};if(Ps("0x28")==n[Ps("0x2f")])return{type:Ps("0x1"),content:Qo(e,"*Outdent:* %0",Qo(e,Ps("0x9")))};if(Ps("0x34")==n[Ps("0x2f")])return n[Ps("0x2b")][0][Ps("0x16")]?{type:Ps("0x1"),content:Qo(e,"*Check item*")}:{type:"format",content:Qo(e,"*Uncheck item*")}}function o(t){return{type:Ps("0x1"),content:Qo(e,Ps("0x8"),t)}}}))}}function js(t){const e=t[Ps("0x23")](Ps("0x31"));if(0==e)return t;let n=t;for(;t[Ps("0x0")]&&t[Ps("0x0")].is(Ps("0x6"),Ps("0x2d"));){const o=t[Ps("0x0")][Ps("0x23")](Ps("0x31"));if(o==e)n=t[Ps("0x0")];else if(o<e)break;t=t[Ps("0x0")]}return n}function Gs(t){const e=[];if(t.is("element","listItem")&&t[Ps("0x23")](Ps("0x31"))>0){let n=t.nextSibling;for(;n&&Ps("0x2d")==n[Ps("0x2c")]&&n[Ps("0x23")](Ps("0x31"))==t.getAttribute(Ps("0x31"));)e[Ps("0xc")](n),n=n[Ps("0x2e")]}return e}const Vs=["ListUtils","get","element","handleListReversedCommand","length","createPositionAt","replace","editor","ListPropertiesEditing","getListTypeFromListStyleType","listReversed","type","from","selection","formatInline","config","listType","reversed","commandName","startIndex","afterInit","push","unshift","registerDescriptionCallback","plugins","getAttribute","map","model","locale","ELEMENT_","listStart","_LIST_","handleListStyleCommand","_getSuggestionBlocksForListStyle","toUpperCase","getFirstPosition","markMultiRangeBlockFormat","flat","_getTranslationKeyForListStyle","enableCommand","commandParams","numbered","createRange","_descriptionFactory","TrackChangesEditing","listStyle","change","formatBlock","list.properties","listItem","filter","handleListStartCommand","document","_getSuggestionBlocks","handleDescriptions","getSiblingNodes","before","*Change to:* %0","styles","*Format:* set order to regular","format","getSelectedBlocks","bind"];var Hs,zs;Hs=Vs,zs=100,function(t){for(;--t;)Hs.push(Hs.shift())}(++zs);const Ws=function(t,e){return Vs[t-=0]};class Ks extends t.Plugin{[Ws("0x2e")](){if(!this[Ws("0x21")].plugins.has(Ws("0x22")))return;const t=this[Ws("0x21")][Ws("0x29")].get(Ws("0xb")),e=this.editor[Ws("0x32")][Ws("0x1b")](Ws("0x7"));t[Ws("0x15")]&&e[Ws("0x2")]("listStyle",this.handleListStyleCommand.bind(this)),t[Ws("0x2b")]&&e[Ws("0x2")](Ws("0x24"),this[Ws("0x1d")][Ws("0x19")](this)),t[Ws("0x2d")]&&e[Ws("0x2")]("listStart",this.handleListStartCommand[Ws("0x19")](this)),e[Ws("0x6")][Ws("0x31")](this.handleDescriptions[Ws("0x19")](this))}[Ws("0x3a")](t,e={}){const n=this[Ws("0x21")][Ws("0x32")][Ws("0x1b")]("TrackChangesEditing"),o=this[Ws("0x3b")]();this[Ws("0x21")][Ws("0x35")][Ws("0x9")]((()=>{n[Ws("0x3e")](o,{commandName:Ws("0x8"),commandParams:[{type:e.type}],formatGroupId:Ws("0x8")})}))}[Ws("0x1d")](t,e={}){const n=this.editor.plugins[Ws("0x1b")]("TrackChangesEditing"),o=this._getSuggestionBlocks((t=>t.is("element",Ws("0xc"))&&"numbered"===t.getAttribute(Ws("0x2a"))));if(o.length<1)return;const i=o[Ws("0x34")]((t=>this.editor[Ws("0x35")].createRange(this.editor.model[Ws("0x1f")](t,Ws("0x13")),this[Ws("0x21")][Ws("0x35")][Ws("0x1f")](t,0))));this[Ws("0x21")].model.change((()=>{n.markMultiRangeBlockFormat(i,{commandName:"listReversed",commandParams:[{reversed:e[Ws("0x2b")]}],formatGroupId:Ws("0x24")})}))}[Ws("0xe")](t,e={}){const n=this[Ws("0x21")].plugins.get(Ws("0x7")),o=this[Ws("0x10")]((t=>t.is(Ws("0x1c"),Ws("0xc"))&&Ws("0x4")===t[Ws("0x33")](Ws("0x2a"))));if(o.length<1)return;const i=o[Ws("0x34")]((t=>this.editor[Ws("0x35")][Ws("0x5")](this[Ws("0x21")][Ws("0x35")][Ws("0x1f")](t,Ws("0x13")),this[Ws("0x21")].model[Ws("0x1f")](t,0))));this[Ws("0x21")][Ws("0x35")][Ws("0x9")]((()=>{n[Ws("0x3e")](i,{commandName:Ws("0x38"),commandParams:[{startIndex:e[Ws("0x2d")]}],formatGroupId:Ws("0x38")})}))}[Ws("0x11")](t){if(Ws("0xa")!=t[Ws("0x25")]&&Ws("0x28")!=t[Ws("0x25")])return;const e=this[Ws("0x21")][Ws("0x36")],{data:n}=t;if(!n)return;let o,i;switch(n[Ws("0x2c")]){case Ws("0x8"):o=Ws("0x14"),i={type:"format",content:Qo(e,o,Qo(e,this[Ws("0x1")](n[Ws("0x3")][0][Ws("0x25")])))};break;case Ws("0x24"):o=n[Ws("0x3")][0][Ws("0x2b")]?"*Format:* set order to reversed":Ws("0x16"),i={type:Ws("0x17"),content:Qo(e,o)};break;case Ws("0x38"):o="*Format:* set start index to %0",i={type:Ws("0x17"),content:Qo(e,o,n[Ws("0x3")][0][Ws("0x2d")])}}return i}[Ws("0x3b")](){var t,e,n,o;const i=this[Ws("0x21")][Ws("0x32")][Ws("0x1b")](Ws("0x1a"));let r=Array[Ws("0x26")](this[Ws("0x21")][Ws("0x35")][Ws("0xf")].selection[Ws("0x18")]());return(null===(t=r[0])||void 0===t?void 0:t.is(Ws("0x1c"),Ws("0xc")))&&r[Ws("0x30")](...i[Ws("0x12")](this[Ws("0x21")][Ws("0x35")][Ws("0xf")][Ws("0x27")].getFirstPosition(),"backward")),(null===(e=r[r[Ws("0x1e")]-1])||void 0===e?void 0:e.is(Ws("0x1c"),"listItem"))&&r[Ws("0x2f")](...i.getSiblingNodes(this[Ws("0x21")][Ws("0x35")][Ws("0xf")][Ws("0x27")].getLastPosition(),"forward")),r=[...new Set(r)],(null===(o=null===(n=this.editor[Ws("0x35")][Ws("0xf")].selection[Ws("0x3d")]())||void 0===n?void 0:n.parent)||void 0===o?void 0:o.is(Ws("0x1c"),Ws("0xc")))&&(r=r[Ws("0xd")]((t=>t.is("element","listItem")))),r}[Ws("0x10")](t){const e=this[Ws("0x21")][Ws("0x32")].get(Ws("0x1a"));let n=Array.from(this[Ws("0x21")][Ws("0x35")].document[Ws("0x27")][Ws("0x18")]())[Ws("0xd")](t).map((t=>{const n=this.editor[Ws("0x35")][Ws("0x1f")](t,0);return[...e[Ws("0x12")](n,"backward"),...e[Ws("0x12")](n,"forward")]}))[Ws("0x0")]();return n=[...new Set(n)],n}[Ws("0x1")](t){return Ws("0x37")+this.editor[Ws("0x32")][Ws("0x1b")](Ws("0x1a"))[Ws("0x23")](t)[Ws("0x3c")]()+Ws("0x39")+t.toUpperCase()[Ws("0x20")](/-/g,"_")}}const qs=["div","has","_descriptionFactory","get","attribute:url:media","showSuggestionHighlights","registerElementLabel","high","conversion","TrackChangesEditing","locale","mediaEmbed","createEmptyElement","ELEMENT_MEDIA","for","MediaEmbedEditing","dataDowncast","data","afterInit","downcastDispatcher","plugins","media"];var Xs,$s;Xs=qs,$s=316,function(t){for(;--t;)Xs.push(Xs.shift())}(++$s);const Zs=function(t,e){return qs[t-=0]};class Ys extends t.Plugin{[Zs("0xa")](){const t=this.editor;if(!t[Zs("0xc")][Zs("0xf")](Zs("0x7")))return;const e=t[Zs("0xc")][Zs("0x11")](Zs("0x1")),n=t[Zs("0x2")];e.enableCommand(Zs("0x3")),e[Zs("0x10")][Zs("0x14")]("media",(t=>Qo(n,Zs("0x5"),t))),t[Zs("0x0")][Zs("0x6")](Zs("0x8")).elementToElement({model:Zs("0xd"),view:(t,{writer:e,options:n})=>{if(n[Zs("0x13")])return e[Zs("0x4")](Zs("0xe"))},converterPriority:Zs("0x15")}),t[Zs("0x9")][Zs("0xb")].on(Zs("0x12"),((t,e,n)=>{n.options[Zs("0x13")]&&t.stop()}),{priority:Zs("0x15")})}}const Js=["mention","plugins","get","editor","afterInit","MentionEditing","has"];var Qs,tx;Qs=Js,tx=361,function(t){for(;--t;)Qs.push(Qs.shift())}(++tx);const ex=function(t,e){return Js[t-=0]};class nx extends t.Plugin{[ex("0x0")](){const t=this[ex("0x6")];t.plugins[ex("0x2")](ex("0x1"))&&t[ex("0x4")][ex("0x5")]("TrackChangesEditing").enableCommand(ex("0x3"))}}const ox=["editor","get","has","afterInit","TrackChangesEditing","pageBreak","plugins","_descriptionFactory","locale"];var ix,rx;ix=ox,rx=206,function(t){for(;--t;)ix.push(ix.shift())}(++rx);const sx=function(t,e){return ox[t-=0]};class xx extends t.Plugin{[sx("0x4")](){const t=this[sx("0x1")];if(!t[sx("0x7")][sx("0x3")]("PageBreakEditing"))return;t[sx("0x7")][sx("0x2")]("TrackChangesEditing").enableCommand(sx("0x6"));const e=t[sx("0x7")][sx("0x2")](sx("0x5")),n=t[sx("0x0")];e[sx("0x8")].registerElementLabel(sx("0x6"),(t=>Qo(n,"ELEMENT_PAGE_BREAK",t)))}}const ax=["name","type","commandName","insertion","span","_registerLegacyDescription","highest","options","toViewPosition","locale","ck-suggestion-marker-split","isTouching","bindElementToMarker","_enableDefaultAttributesIntegration","get","markerRange","*Insert:* %0","model","downcastDispatcher","Paragraph","enableCommand","_descriptionFactory","$text","markerName","registerElementLabel","addMarker:suggestion:insertion","checkChild","insert","format","ELEMENT_PARAGRAPH","editing","consume","TrackChangesEditing","afterInit","getItemLabel","editor","activeMarkers","nodeAfter","registerDescriptionCallback","plugins","isLimit","isBlock","has","writer","paragraph","data","*Change to:* %0","addClass","formatBlock","includes","end","consumable","insertParagraph","schema"];var cx,lx;cx=ax,lx=320,function(t){for(;--t;)cx.push(cx.shift())}(++lx);const ux=function(t,e){return ax[t-=0]};class dx extends t.Plugin{[ux("0x25")](){const t=this.editor;if(!t[ux("0x2b")][ux("0x2e")](ux("0x17")))return;const e=t.locale,n=t[ux("0x2b")].get(ux("0x24"));n[ux("0x19")][ux("0x1c")]("paragraph",(t=>Qo(e,ux("0x21"),t))),n[ux("0x11")](ux("0x30")),n[ux("0x18")](ux("0x2")),t[ux("0x22")].downcastDispatcher.on(ux("0x1d"),gx(t),{priority:ux("0xa")}),t[ux("0x31")][ux("0x16")].on(ux("0x1d"),((e,n,o)=>{o[ux("0xb")].showSuggestionHighlights&&gx(t,{showActiveMarker:!1})(e,n,o)}),{priority:"highest"});const o=n[ux("0x19")];o[ux("0x2a")]((n=>{if("insertion"!==n[ux("0x5")])return;const{start:i,end:r}=n.getFirstRange();if(!i.isTouching(r)||!i[ux("0x29")])return;const s=t[ux("0x15")].schema,x=i[ux("0x29")];return s.isBlock(x)&&!s[ux("0x2c")](x)&&s[ux("0x1e")](x,"$text")?{type:ux("0x7"),content:Qo(e,ux("0x14"),o[ux("0x26")](x,1))}:void 0})),this[ux("0x9")]()}[ux("0x9")](){const t=this[ux("0x27")],e=t[ux("0xd")];t[ux("0x2b")][ux("0x12")](ux("0x24"))._descriptionFactory[ux("0x2a")]((t=>{if(ux("0x34")!=t[ux("0x5")])return;const{data:n}=t;return n&&ux("0x30")==n[ux("0x6")]?{type:ux("0x20"),content:Qo(e,ux("0x32"),Qo(e,ux("0x21")))}:void 0}))}}function gx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t[ux("0x2b")][ux("0x12")](ux("0x24")),s=o[ux("0x13")].start,x=o[ux("0x13")][ux("0x0")],a=t[ux("0x15")][ux("0x3")];if(!s[ux("0xf")](x)||!s.nodeAfter)return;const c=s[ux("0x29")];if(a[ux("0x2d")](c)&&!a[ux("0x2c")](c)&&a[ux("0x1e")](c,ux("0x1a"))){if(!i[ux("0x1")][ux("0x23")](o[ux("0x13")],n[ux("0x4")]))return;const t=i[ux("0x2f")].createUIElement(ux("0x8"),{class:ux("0xe")}),s=i.mapper[ux("0xc")](x);e&&r[ux("0x28")][ux("0x35")](o.markerName)&&i[ux("0x2f")][ux("0x33")]("ck-suggestion-marker--active",t),i.writer[ux("0x1f")](s,t),i.mapper[ux("0x10")](t,o[ux("0x1b")])}}}const fx=["format","RemoveFormatEditing","editor","removeFormat","_enableDefaultAttributesIntegration","get","type","TrackChangesEditing","has","_registerLegacyDescription","formatInline","plugins","registerDescriptionCallback","afterInit","locale"];var mx,hx;mx=fx,hx=149,function(t){for(;--t;)mx.push(mx.shift())}(++hx);const px=function(t,e){return fx[t-=0]};class bx extends t.Plugin{[px("0xe")](){const t=this[px("0x3")];t[px("0xc")][px("0x9")](px("0x2"))&&(t[px("0xc")][px("0x6")]("TrackChangesEditing")[px("0x5")](px("0x4")),this[px("0xa")]())}[px("0xa")](){const t=this[px("0x3")];t[px("0xc")].get(px("0x8"))._descriptionFactory[px("0xd")]((e=>{if("formatBlock"!=e.type&&px("0xb")!=e[px("0x7")])return;const{data:n}=e;return n&&px("0x4")==n.commandName?{type:px("0x1"),content:Qo(t[px("0x0")],"*Remove all formatting*")}:void 0}))}}const Ex=["discardAllSuggestions","plugins","acceptSelectedSuggestions","get","goToPreviousRestrictedEditingException","TrackChangesEditing","discardSelectedSuggestions","discardSuggestion","editor","acceptSuggestion","trackChanges","RestrictedEditingModeEditing","acceptAllSuggestions","afterInit","enableCommand","has","goToNextRestrictedEditingException"];var _x,Tx;_x=Ex,Tx=402,function(t){for(;--t;)_x.push(_x.shift())}(++Tx);const yx=function(t,e){return Ex[t-=0]};class Cx extends t.Plugin{[yx("0x2")](){const t=this[yx("0xe")];if(!t[yx("0x7")][yx("0x4")]("RestrictedEditingModeEditing"))return;const e=t[yx("0x7")][yx("0x9")](yx("0xb"));e.enableCommand(yx("0xa")),e.enableCommand(yx("0x5"));const n=t[yx("0x7")][yx("0x9")](yx("0x0"));n[yx("0x3")](yx("0x10")),n[yx("0x3")](yx("0xf")),n.enableCommand(yx("0xd")),n[yx("0x3")](yx("0x1")),n.enableCommand(yx("0x6")),n[yx("0x3")](yx("0x8")),n[yx("0x3")](yx("0xc"))}}const Ax=["locale","high","ELEMENT_LINE_BREAK","addMarker:suggestion:deletion","TrackChangesEditing","softBreak","createPositionBefore","get","enableCommand","split","activeMarkers","ck-suggestion-marker-","init","mapper","bindElementToMarker","data","markerRange","addMarker:suggestion:insertion","markerName","deletion","requires","editing","shiftEnter","insert","span","registerElementLabel","addClass","createUIElement","model","addMarker:suggestion","consumable","includes","writer","downcastDispatcher","editor","getItems"];var kx,Ix;kx=Ax,Ix=498,function(t){for(;--t;)kx.push(kx.shift())}(++Ix);const Rx=function(t,e){return Ax[t-=0]};class Sx extends t.Plugin{static get[Rx("0x1a")](){return[ur.ShiftEnter]}[Rx("0x12")](){const t=this[Rx("0x4")],e=t.plugins.get(Rx("0xa"));e[Rx("0xe")](Rx("0x1c")),t[Rx("0x1b")].downcastDispatcher.on(Rx("0x17"),vx(t),{priority:Rx("0x7")}),t.editing.downcastDispatcher.on(Rx("0x9"),vx(t),{priority:Rx("0x7")}),t[Rx("0x15")][Rx("0x3")].on(Rx("0x23"),((e,n,o)=>{o.options.showSuggestionHighlights&&vx(t,{showActiveMarker:!1})(e,n,o)})),e._descriptionFactory[Rx("0x1f")](Rx("0xb"),(e=>Qo(t[Rx("0x6")],Rx("0x8"),e)))}}function vx(t,{showActiveMarker:e=!0}={}){return(n,o,i)=>{const r=t.plugins[Rx("0xd")](Rx("0xa"));if(!i[Rx("0x0")].test(o[Rx("0x16")],n.name))return;const s=t[Rx("0x22")];for(const t of o[Rx("0x16")][Rx("0x5")]()){if(!t.is("element","softBreak"))continue;const n=Rx("0x19")==o[Rx("0x18")][Rx("0xf")](":")[1]?"merge":Rx("0xf"),x=i[Rx("0x2")][Rx("0x21")](Rx("0x1e"),{class:Rx("0x11")+n}),a=i[Rx("0x13")].toViewPosition(s[Rx("0xc")](t));e&&r[Rx("0x10")][Rx("0x1")](o[Rx("0x18")])&&i.writer[Rx("0x20")]("ck-suggestion-marker--active",x),i[Rx("0x2")][Rx("0x1d")](a,x),i[Rx("0x13")][Rx("0x14")](x,o[Rx("0x18")])}}}const Nx=["get","selection","plugins","change","isCollapsed","has","model","FORMAT_RESTRICTED_DISABLED","restrictedEditingException","markInlineFormat","commands","commandParams","formatBlock","editor","_descriptionFactory","FORMAT_RESTRICTED_ENABLED","getRanges","format","afterInit","registerDescriptionCallback","type","StandardEditingModeEditing","forceValue","from","document"];var Lx,Mx;Lx=Nx,Mx=192,function(t){for(;--t;)Lx.push(Lx.shift())}(++Mx);const wx=function(t,e){return Nx[t-=0]};class Ox extends t.Plugin{[wx("0x1")](){const t=this[wx("0x15")],e=t[wx("0xe")],n=t.locale;if(!t.plugins[wx("0xd")](wx("0x4")))return;const o=t[wx("0xa")][wx("0x8")]("TrackChangesEditing"),i=wx("0x10"),r=t[wx("0x12")][wx("0x8")](i);o.enableCommand(i,((t,n={})=>{const s=e[wx("0x7")][wx("0x9")];if(s[wx("0xc")])return void t(n);const x=void 0!==n[wx("0x5")]?n[wx("0x5")]:!r.value;e[wx("0xb")]((()=>{const t=Array[wx("0x6")](s[wx("0x18")]());for(const n of t){const t=x?[n]:Xi(i,n,e);for(const e of t)o[wx("0x11")](e,{commandName:i,commandParams:[{forceValue:x}]})}}))})),o[wx("0x16")][wx("0x2")]((t=>{if(wx("0x14")!=t[wx("0x3")]&&"formatInline"!=t.type)return;const{data:e}=t;return e&&e.commandName==i?e[wx("0x13")][0][wx("0x5")]?{type:"format",content:Qo(n,wx("0x17"))}:{type:wx("0x0"),content:Qo(n,wx("0xf"))}:void 0}))}}const Fx=["FORMAT_STYLE","StyleUtils","commandParams","format","toLowerCase","locale","commandName","styleName","GeneralHtmlSupport","block","style","_registerBlockAttribute","get","element","config","has","registerAttributeLabel","type","inline","_registerLegacyDescription","definitions","afterInit","*Set format:* %0","Style","TrackChangesEditing","getGhsAttributeNameForElement","_descriptionFactory","editor","DataSchema","plugins","add","_enableDefaultAttributesIntegration","registerDescriptionCallback","normalizeConfig"];var Dx,Bx;Dx=Fx,Bx=370,function(t){for(;--t;)Dx.push(Dx.shift())}(++Bx);const Px=function(t,e){return Fx[t-=0]};class Ux extends t.Plugin{[Px("0x19")](){const t=this[Px("0x1f")];if(!t[Px("0x21")].has(Px("0x1b"))||!t[Px("0x21")][Px("0x13")]("DataSchema"))return;const e=t.plugins.get(Px("0x1c")),n=t.locale,o=t[Px("0x12")][Px("0x10")]("style"),i=t.plugins[Px("0x10")](Px("0xc")),r=t.plugins.get(Px("0x5"))[Px("0x3")](t[Px("0x21")].get(Px("0x20")),o[Px("0x18")]);e[Px("0x1")](Px("0xe"));const s=new Set;for(const t of r[Px("0xd")]){const e=i[Px("0x1d")](t[Px("0x11")]);s[Px("0x0")](e)}const x=new Set;for(const t of r[Px("0x16")]){const e=i.getGhsAttributeNameForElement(t.element);x[Px("0x0")](e);for(const e of t.ghsAttributes)x[Px("0x0")](e)}for(const t of s)e[Px("0xf")](t),e._descriptionFactory[Px("0x14")](t,Qo(n,Px("0x4")));for(const t of x)e._registerInlineAttribute(t),e[Px("0x1e")][Px("0x14")](t,Qo(n,Px("0x4")));this[Px("0x17")]()}[Px("0x17")](){const t=this.editor,e=t[Px("0x9")];t.plugins[Px("0x10")](Px("0x1c"))[Px("0x1e")][Px("0x2")]((t=>{if("formatBlock"!=t[Px("0x15")]&&"formatInline"!=t[Px("0x15")])return;const{data:n}=t;return n&&Px("0xe")===n[Px("0xa")]?n[Px("0x6")][0].forceValue?{type:Px("0x7"),content:Qo(e,Px("0x1a"),n[Px("0x6")][0].styleName[Px("0x8")]())}:{type:Px("0x7"),content:Qo(e,"*Remove format:* %0",n[Px("0x6")][0][Px("0xb")][Px("0x8")]())}:void 0}))}}const jx=["createPositionAt","writer","root","commands","TableEditing","item","plugins","_tablePostFixingSubtypes","differ","ELEMENT_TABLE_ROW","editor","nodeAfter","isArray","ELEMENT_TABLE_ROW_WITH_TEXT","registerCustomCallback","tableColumn","hasAttribute","ELEMENT_TABLE_COLUMN_WITH_TEXT","_suggestionFactory","insert","ELEMENT_TABLE_WITH_TEXT","oldRange","data","registerDescriptionCallback","getRowIndexes","tableRow","document","get","insertion","afterInit","toViewElement","insertTableRowAbove","isTouching","last","classes","getColumnIndexes","type","getCellLocation","TrackChangesEditing","insertTable","showSuggestionHighlights","change","_descriptionFactory","downcastDispatcher","name","removeClass","insertTableColumnLeft","insertTableRowBelow","enqueueChange","fromRange","table","substr","selection","getChangedMarkers","removeTableRow","markMultiRangeInsertion","start","end","refresh","locale","enableCommand","findAncestor","model","ELEMENT_TABLE_COLUMN","forceValue","registerPostFixer","min","getSelectionAffectedTableCells","registerElementLabel","getAttribute","options","selectTableColumn","first","map","markMultiRangeDeletion","selectTableRow","isIntersectingWithRange","join","discard","$textProxy","has","setSelection","push","filter","*Insert:* %0","maxRow","insertTableColumnRight","getSuggestion","span","length","getFirstRange","startsWith","rootName","MAX_SAFE_INTEGER","maxColumn","colspan","rowspan","highest","TableUtils","from","accept","change:data","element","tablePaste","tableCell","subType","isEqual","isInContent","$graveyard","values","removeTableColumn","createTableWalker","_setupColumnsRowsFixing","execute","minRow","*Remove:* %0","getRanges","_getSuggestionCoords","cell","createRangeOn","createRangeIn","deletion","_tableSuggestions","low","detach","getItems","MIN_SAFE_INTEGER"];var Gx,Vx;Gx=jx,Vx=477,function(t){for(;--t;)Gx.push(Gx.shift())}(++Vx);const Hx=function(t,e){return jx[t-=0]};class zx extends t.Plugin{constructor(t){super(t),this[Hx("0x26")]=[Hx("0x38"),Hx("0x2e")],this[Hx("0x1a")]=new Set}[Hx("0x3c")](){const t=this.editor,e=t.model[Hx("0x39")].selection;if(!t[Hx("0x25")][Hx("0x6f")](Hx("0x23")))return;const n=t[Hx("0x5a")],o=t[Hx("0x25")][Hx("0x3a")](Hx("0x45")),i=t[Hx("0x25")][Hx("0x3a")](Hx("0x2"));o._descriptionFactory[Hx("0x63")](Hx("0x51"),(t=>Qo(n,"ELEMENT_TABLE",t))),this[Hx("0x10")](),o[Hx("0x5b")](Hx("0x46")),o.enableCommand(Hx("0x6a")),o[Hx("0x5b")](Hx("0x66"));for(const n of[Hx("0x3e"),Hx("0x4e")]){const r=t[Hx("0x22")][Hx("0x3a")](n);o.enableCommand(n,(n=>{t.model[Hx("0x48")]((t=>{n();const s="above"===r.order,x=i[Hx("0x62")](e),a=i[Hx("0x37")](x),c=s?a.first-1:a[Hx("0x40")]+1,l=x[0].findAncestor(Hx("0x51")),u=i.createTableWalker(l,{startRow:c,endRow:c}),d=Array[Hx("0x3")](u)[Hx("0x68")]((e=>t[Hx("0x17")](e[Hx("0x16")])));o[Hx("0x56")](d,Hx("0x38"))}))}))}for(const n of[Hx("0x4d"),Hx("0x75")]){const r=t.commands[Hx("0x3a")](n);o.enableCommand(n,(n=>{t[Hx("0x5d")][Hx("0x48")]((t=>{n();const s="left"===r.order,x=i[Hx("0x62")](e),a=i[Hx("0x42")](x),c=s?a.first-1:a[Hx("0x40")]+1,l=x[0].findAncestor(Hx("0x51")),u=i[Hx("0xf")](l,{startRow:0,column:c,includeAllSlots:!1}),d=Array[Hx("0x3")](u)[Hx("0x68")]((e=>t[Hx("0x17")](e.cell)));o.markMultiRangeInsertion(d,Hx("0x2e"))}))}))}for(const n of[Hx("0x55"),Hx("0xe")]){const r=n[Hx("0x52")](11),s=r.toLowerCase(),x=s[Hx("0x52")](0,3)+Hx("0x77"),a=Hx("0x51")+r,c=Hx("0x61")+r,l="max"+r;o[Hx("0x5b")](n,(()=>{t[Hx("0x5d")][Hx("0x48")]((t=>{const r=i[Hx("0x62")](e),u=r[0][Hx("0x5c")](Hx("0x51"));let d;if(Hx("0x55")==n){const t=i[Hx("0x37")](r);d={startRow:t[Hx("0x67")],endRow:t[Hx("0x40")],includeAllSlots:!0}}else{const t=i.getColumnIndexes(r);d={startColumn:t[Hx("0x67")],endColumn:t[Hx("0x40")],includeAllSlots:!0}}const g=i.createTableWalker(u,d),f=Array[Hx("0x3")](g)[Hx("0x68")]((({cell:t})=>t)),m=Wx(f[Hx("0x72")]((t=>t[Hx("0x2f")](x)))),h=Wx(f[Hx("0x72")]((t=>!t.hasAttribute(x))))[Hx("0x68")]((e=>t[Hx("0x17")](e))),p=o[Hx("0x69")](h,a);if(p&&(Hx("0x38")==p[Hx("0x9")]||"tableColumn"==p[Hx("0x9")])){const e=this[Hx("0x15")](p);for(const n of m){const o=t[Hx("0x17")](n),r=i[Hx("0x44")](n),a=n[Hx("0x64")](x)-1,u=e[c],d=e[l];u<=r[s]&&r[s]+a<=d&&p.addRange(o)}}}))}))}function r(n){const o=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange[Hx("0x50")](t)));t[Hx("0x5d")].change((e=>{const i=e.batch;n=n[Hx("0x72")]((t=>"$graveyard"!=t[Hx("0x21")][Hx("0x7b")])),e.setSelection(n),t[Hx("0x22")][Hx("0x3a")](Hx("0x55"))[Hx("0x59")](),t[Hx("0x11")](Hx("0x55"),{forceDefaultExecution:!0}),t[Hx("0x5d")][Hx("0x4f")]((()=>{t.model[Hx("0x4f")](i,(t=>{const e=o[Hx("0x72")]((t=>Hx("0xc")!=t[Hx("0x21")].rootName));e[Hx("0x78")]>0&&t.setSelection(e);for(const t of o)t[Hx("0x1c")]()}))}))}))}function a(n){t[Hx("0x5d")][Hx("0x48")]((o=>{const i=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange.fromRange(t))),r=[];for(const t of n)for(const e of t.getItems({shallow:!0}))r[Hx("0x71")](e);for(const e of r)Hx("0xc")!=e.root.rootName&&(o.setSelection(o[Hx("0x1f")](e,0)),t[Hx("0x22")][Hx("0x3a")](Hx("0xe")).refresh(),t.execute(Hx("0xe"),{forceDefaultExecution:!0}));const x=i.filter((t=>Hx("0xc")!=t[Hx("0x21")][Hx("0x7b")]));x[Hx("0x78")]>0&&o[Hx("0x70")](x);for(const t of i)t[Hx("0x1c")]()}))}function c(t,e){return e.every((e=>t.some((t=>t[Hx("0x58")].isEqual(e[Hx("0x57")])||e[Hx("0x58")][Hx("0xa")](t[Hx("0x57")])))))}function l(t,e){return t.some((t=>e.some((e=>t[Hx("0x58")][Hx("0x3f")](e[Hx("0x57")])))))}t[Hx("0x35")][Hx("0x4a")].on("addMarker:suggestion",((t,e,n)=>{if(!n[Hx("0x65")][Hx("0x47")])return;const o=e[Hx("0x24")];if(!o)return;const i=n.mapper[Hx("0x3d")](o);function r(t){return Array[Hx("0x2b")](t)?t:[t]}i&&Hx("0x8")===o[Hx("0x4b")]&&(0,x.setHighlightHandling)(i,n[Hx("0x20")],((t,e,n)=>n.addClass(r(e[Hx("0x41")]),t)),((t,e,n)=>n[Hx("0x4c")](r(e[Hx("0x41")]),t)))}),{priority:Hx("0x1")}),o[Hx("0x49")].registerDescriptionCallback((t=>{if(Hx("0x3b")!=t[Hx("0x43")]&&Hx("0x19")!=t[Hx("0x43")])return;const e=t.getContainedElement();if(null!=e&&e.is(Hx("0x6"),Hx("0x51"))){if("insertion"==t[Hx("0x43")]){const e=t.getItems()[Hx("0x72")]((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t.data));if(e[Hx("0x78")])return{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,"ELEMENT_TABLE_WITH_TEXT",'"'+e.join(" ")+'"'))}}if(Hx("0x19")==t[Hx("0x43")]){const e=t.getItems()[Hx("0x72")]((t=>t.is(Hx("0x6e")))).map((t=>t[Hx("0x35")]));if(e[Hx("0x78")])return{type:"deletion",content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x33"),'"'+e.join(" ")+'"'))}}}})),o[Hx("0x49")][Hx("0x36")]((t=>{if("tableRow"==t[Hx("0x9")]){const e=t[Hx("0x1d")]().filter((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t[Hx("0x35")])),o=this[Hx("0x15")](t),i=o[Hx("0x74")]-o[Hx("0x12")]+1;if(Hx("0x3b")==t[Hx("0x43")])return e[Hx("0x78")]?{type:Hx("0x3b"),content:Qo(n,"*Insert:* %0",Qo(n,Hx("0x2c"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,Hx("0x28"),i))};if(Hx("0x19")==t[Hx("0x43")])return e[Hx("0x78")]?{type:Hx("0x19"),content:Qo(n,Hx("0x13"),Qo(n,Hx("0x2c"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:"deletion",content:Qo(n,Hx("0x13"),Qo(n,Hx("0x28"),i))}}if("tableColumn"==t[Hx("0x9")]){const e=t.getItems().filter((t=>t.is(Hx("0x6e"))))[Hx("0x68")]((t=>t.data)),o=this._getSuggestionCoords(t),i=o[Hx("0x7d")]-o.minColumn+1;if(Hx("0x3b")==t[Hx("0x43")])return e[Hx("0x78")]?{type:"insertion",content:Qo(n,Hx("0x73"),Qo(n,Hx("0x30"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x3b"),content:Qo(n,Hx("0x73"),Qo(n,Hx("0x5e"),i))};if(Hx("0x19")==t.type)return e[Hx("0x78")]?{type:Hx("0x19"),content:Qo(n,Hx("0x13"),Qo(n,Hx("0x30"),[i,'"'+e[Hx("0x6c")](" ")+'"']))}:{type:Hx("0x19"),content:Qo(n,"*Remove:* %0",Qo(n,Hx("0x5e"),i))}}})),o._suggestionFactory[Hx("0x2d")](Hx("0x3b"),Hx("0x38"),Hx("0x6d"),r),o[Hx("0x31")].registerCustomCallback(Hx("0x19"),Hx("0x38"),Hx("0x4"),r),o._suggestionFactory[Hx("0x2d")](Hx("0x3b"),Hx("0x2e"),"discard",a),o[Hx("0x31")][Hx("0x2d")](Hx("0x19"),Hx("0x2e"),Hx("0x4"),a),o._suggestionFactory.registerCustomCallback("insertion",Hx("0x2e"),Hx("0x6c"),c),o[Hx("0x31")][Hx("0x2d")](Hx("0x19"),Hx("0x2e"),Hx("0x6c"),c),o[Hx("0x31")][Hx("0x2d")](Hx("0x3b"),Hx("0x38"),Hx("0x6c"),l),o[Hx("0x31")].registerCustomCallback("deletion",Hx("0x38"),Hx("0x6c"),l)}_acceptFormatSuggestionCallbackFactory(){const t=this[Hx("0x29")],e=t[Hx("0x5d")][Hx("0x39")][Hx("0x53")];return(n,o)=>{t[Hx("0x5d")][Hx("0x48")]((i=>{const{commandName:r,commandParams:x}=o;let a=n[0].end.nodeBefore;x&&x[0]&&!1===x[0][Hx("0x5f")]&&(a=n[0][Hx("0x57")][Hx("0x2a")]);const c=i[Hx("0x18")](a);if("$graveyard"==c[Hx("0x21")].rootName)return;const l=Array[Hx("0x3")](e[Hx("0x14")]())[Hx("0x68")]((t=>s.LiveRange[Hx("0x50")](t)));i[Hx("0x70")](c),t[Hx("0x22")][Hx("0x3a")](r)[Hx("0x59")](),x[Hx("0x71")]({forceDefaultExecution:!0}),t[Hx("0x11")](r,...x);const u=l[Hx("0x72")]((t=>Hx("0xc")!=t[Hx("0x21")][Hx("0x7b")]));u.length>0&&i[Hx("0x70")](u);for(const t of l)t[Hx("0x1c")]()}))}}_getCoordsForCells(t){const e=this[Hx("0x29")][Hx("0x25")][Hx("0x3a")]("TableUtils");let n=Number[Hx("0x7c")],o=Number[Hx("0x1e")],i=Number[Hx("0x7c")],r=Number[Hx("0x1e")];for(const s of t){if(Hx("0xc")==s[Hx("0x21")].rootName)continue;const{row:t,column:x}=e[Hx("0x44")](s),a=s[Hx("0x2f")]("rowspan")?s[Hx("0x64")](Hx("0x0"))-1:0,c=s[Hx("0x2f")](Hx("0x7e"))?s[Hx("0x64")](Hx("0x7e"))-1:0;n=t<n?t:n,o=t+a>o?t+a:o,i=x<i?x:i,r=x+c>r?x+c:r}return{minRow:n,maxRow:o,minColumn:i,maxColumn:r}}_setupColumnsRowsFixing(){const t=this[Hx("0x29")],e=t[Hx("0x25")][Hx("0x3a")]("TrackChangesEditing"),n=t[Hx("0x25")][Hx("0x3a")](Hx("0x2"));t[Hx("0x5d")][Hx("0x39")].on(Hx("0x5"),(()=>{const n=Array.from(t[Hx("0x5d")].document[Hx("0x27")][Hx("0x54")]());for(const{name:t,data:o}of n){const{group:n,id:i,subType:r}=e._splitMarkerName(t);if("suggestion"!=n)continue;if(null!=o[Hx("0x34")])continue;const s=e[Hx("0x76")](i);this[Hx("0x26")].includes(r)&&this[Hx("0x1a")].add(s)}}),{priority:Hx("0x1b")});const o=(t,e)=>{let o=!1;const i=e[Hx("0x17")](t),r=t[Hx("0x5c")](Hx("0x51")),s=n.getCellLocation(t);for(const e of this[Hx("0x1a")]){const n=e[Hx("0x9")],x=n[Hx("0x7a")](Hx("0x7")),a=n[Hx("0x52")](x?10:5),c=a.toLowerCase(),l=c[Hx("0x52")](0,3)+"span",u=Hx("0x61")+a,d="max"+a;if(!e[Hx("0xb")])continue;if(r!=e[Hx("0x79")]()[Hx("0x57")][Hx("0x5c")](Hx("0x51")))continue;if(e[Hx("0x6b")](i))continue;const g=t[Hx("0x2f")](l)?t[Hx("0x64")](l)-1:0,f=this[Hx("0x15")](e),m=f[u],h=f[d];m<=s[c]&&s[c]+g<=h&&(e.addRange(i),o=!0)}return o};t[Hx("0x5d")][Hx("0x39")][Hx("0x60")]((e=>{let n=!1;for(const i of t[Hx("0x5d")][Hx("0x39")][Hx("0x27")].getChanges())if(Hx("0x32")==i[Hx("0x43")])if(Hx("0x38")==i[Hx("0x4b")])for(const t of i.position.nodeAfter.getChildren())n=n||o(t,e);else Hx("0x8")==i[Hx("0x4b")]&&(n=n||o(i.position[Hx("0x2a")],e));return n}))}[Hx("0x15")](t){return this._getCoordsForCells(t.getRanges()[Hx("0x68")]((t=>t[Hx("0x57")][Hx("0x2a")])))}}function Wx(t){return Array[Hx("0x3")](new Set(t)[Hx("0xd")]())}const Kx=["getSelectionAffectedTableCells","subType","has","execute","accept","direction","getRanges","fromRange","length","find","TableUtils","createRangeOn","selection","splitTableCellVertically","mergeTableCellDown","size","registerCustomCallback","TrackChangesEditing","commandName","_descriptionFactory","author","detach","root","_areMergableCells","horizontally","_areSelectedCellsMergable","commands","insertion","splitTableCellHorizontally","locale","mergeTableCellRight","getCellLocation","tableCell","format","mergeTableCells","from","createTableWalker","plugins","TableEditing","push","formatInline","table","add","registerDescriptionCallback","getAncestors","formatBlock","getSuggestions","highest","markMultiRangeBlockFormat","change","type","setSelection","low","*Split cell:* horizontally","requires","editor","stop","mergeTableCellLeft","getFirstPosition","value","set:isEnabled","mergeTableCellUp","$graveyard","*Split cell:* vertically","model","_suggestionFactory","get","_acceptFormatSuggestionCallbackFactory","element","enableCommand","refresh","map","isEnabled","afterInit","markBlockFormat","document","forceDefaultExecution"];var qx,Xx;qx=Kx,Xx=326,function(t){for(;--t;)qx.push(qx.shift())}(++Xx);const $x=function(t,e){return Kx[t-=0]};class Zx extends t.Plugin{static get[$x("0x24")](){return[zx]}[$x("0x37")](){const t=this[$x("0x25")],e=t[$x("0x2e")][$x("0x39")][$x("0x47")],n=t[$x("0xb")];if(!t[$x("0x13")][$x("0x3d")]($x("0x14")))return;const o=t[$x("0x13")].get($x("0x4c")),i=t[$x("0x13")][$x("0x30")]($x("0x45")),r=t.plugins[$x("0x30")](zx);r._tablePostFixingSubtypes[$x("0x15")]("mergeTableCells"),o.enableCommand($x("0x10"),(()=>{const e=i[$x("0x3b")](t.model[$x("0x39")].selection);t.model[$x("0x1f")]((()=>{o[$x("0x1e")](e,{commandName:$x("0x10"),commandParams:[]},[],"mergeTableCells")}))})),t.commands.get($x("0x10")).on($x("0x3e"),((e,n)=>{t.commands[$x("0x30")]("trackChanges").value&&(n[$x("0x43")]>0&&n[n[$x("0x43")]-1]&&n[n[$x("0x43")]-1][$x("0x3a")]||o._isForcedDefaultExecutionBlock||this[$x("0x7")]()||e[$x("0x26")]())}),{priority:$x("0x1d")});for(const e of[$x("0x2b"),$x("0xc"),$x("0x49"),$x("0x27")]){const n=t.commands.get(e);o.enableCommand(e,(()=>{const e=t[$x("0x2e")][$x("0x39")][$x("0x47")][$x("0x28")]()[$x("0x1a")]()[$x("0x44")]((t=>t.is($x("0x32"),$x("0xe")))),i=n[$x("0x29")];t[$x("0x2e")].change((()=>{o[$x("0x1e")]([e,i],{commandName:$x("0x10"),commandParams:[]},[],$x("0x10"))}))}))}for(const e of["splitTableCellVertically",$x("0xa")]){const n=t[$x("0x8")][$x("0x30")](e);o[$x("0x33")](e,(()=>{const r=i[$x("0x3b")](t.model[$x("0x39")][$x("0x47")])[0],s=r.findAncestor($x("0x17")),{column:x,row:a}=i[$x("0xd")](r);let c=[];if($x("0x6")==n[$x("0x40")]){const t=i[$x("0x12")](s,{startRow:a,endRow:a,includeAllSlots:!0});c=Array.from(t)[$x("0x35")]((t=>t.cell))}else{const t=i.createTableWalker(s,{column:x,includeAllSlots:!0});c=Array[$x("0x11")](t)[$x("0x35")]((t=>t.cell))}t.model[$x("0x1f")]((t=>{o[$x("0x38")](t[$x("0x46")](r),{commandName:e,commandParams:[]},c,e)}))}))}o[$x("0x1")][$x("0x19")]((t=>{if($x("0x1b")!=t[$x("0x20")]&&"formatInline"!=t[$x("0x20")])return;const{data:e}=t;return e&&$x("0x10")==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,"*Merge cells*")}:void 0})),o[$x("0x1")][$x("0x19")]((t=>{if($x("0x1b")!=t[$x("0x20")]&&$x("0x16")!=t[$x("0x20")])return;const{data:e}=t;return e?$x("0x48")==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,$x("0x2d"))}:"splitTableCellHorizontally"==e[$x("0x0")]?{type:$x("0xf"),content:Qo(n,$x("0x23"))}:void 0:void 0}));const x=r[$x("0x31")]();for(const t of[$x("0x2b"),$x("0xc"),"mergeTableCellDown","mergeTableCellLeft"])o._suggestionFactory[$x("0x4b")]($x("0x1b"),t,$x("0x3f"),x);for(const t of[$x("0x48"),"splitTableCellHorizontally"])o[$x("0x2f")][$x("0x4b")]("formatBlock",t,"accept",x);o[$x("0x2f")][$x("0x4b")]($x("0x1b"),$x("0x10"),"accept",(n=>{t.model[$x("0x1f")]((o=>{const i=Array[$x("0x11")](e[$x("0x41")]())[$x("0x35")]((t=>s.LiveRange[$x("0x42")](t)));o[$x("0x21")](n),t.commands[$x("0x30")]($x("0x10"))[$x("0x34")](),t[$x("0x3e")]("mergeTableCells",{forceDefaultExecution:!0});const r=i.filter((t=>$x("0x2c")!=t[$x("0x4")].rootName));r[$x("0x43")]>0&&o[$x("0x21")](r);for(const t of i)t[$x("0x3")]()}))}));for(const e of[$x("0x2b"),"mergeTableCellDown",$x("0x27"),"mergeTableCellRight"]){const n=t[$x("0x8")][$x("0x30")](e);n.on($x("0x2a"),((e,o,i)=>{if(i){const o=t.model[$x("0x39")][$x("0x47")][$x("0x28")]()[$x("0x1a")]()[$x("0x44")]((t=>t.is($x("0x32"),$x("0xe"))));this[$x("0x5")](n[$x("0x29")],o)||(e.return=!1,e[$x("0x26")]())}}),{priority:$x("0x22")})}}[$x("0x7")](){const t=this[$x("0x25")][$x("0x8")][$x("0x30")]($x("0x10")),e=this[$x("0x25")].plugins[$x("0x30")]($x("0x45"));if(!t[$x("0x36")])return!1;const n=e[$x("0x3b")](this[$x("0x25")][$x("0x2e")][$x("0x39")][$x("0x47")]);for(const t of n)for(const e of n)if(t!=e&&!this[$x("0x5")](t,e))return!1;return!0}[$x("0x5")](t,e){const n=this.editor.plugins.get("TrackChangesEditing"),o=this.editor[$x("0x2e")][$x("0x46")](t),i=this[$x("0x25")].model[$x("0x46")](e),r=new Set,s=new Set;for(const t of n[$x("0x1c")]())if(($x("0x9")==t[$x("0x20")]||"deletion"==t[$x("0x20")]||$x("0x10")==t[$x("0x3c")])&&t.isInContent)for(const e of t[$x("0x41")]())e.containsRange(o,!0)&&r[$x("0x18")](t[$x("0x20")]+":"+t[$x("0x2")].id),e.containsRange(i,!0)&&s.add(t[$x("0x20")]+":"+t[$x("0x2")].id);if(r[$x("0x4a")]!=s[$x("0x4a")])return!1;for(const t of r)if(!s[$x("0x3d")](t))return!1;return!0}}const Yx=["item","editor","plugins","addMarker:suggestion","setTableColumnHeader","mapper","FORMAT_REGULAR_ROW","registerAttributeLabel","addClass","markerName","removeMarker:suggestion","forceValue","FORMAT_REGULAR_COLUMN","start","TableEditing","_splitMarkerName","_handleLegacySuggestions","ck-suggestion-marker-","showSuggestionHighlights","getCellLocation","TableUtils","headingRows","registerCustomCallback","markerRange","_enableDefaultAttributesIntegration","bindElementToMarker","getSuggestion","commandName","FORMAT_HEADER_ROW","stop","unbindElementFromMarkerName","get","nodeBefore","editing","writer","has","end","consume","removeClass","includes","data","ck-suggestion-marker--active","downcastDispatcher","accept","locale","createTableWalker","commandParams","TrackChangesEditing","consumable","setTableRowHeader","removeAttribute","type","FORMAT_HEADER_COLUMN","cell","formatBlock","activeMarkers","setAttribute","afterInit","highest","_acceptFormatSuggestionCallbackFactory","name","data-suggestion","headingColumns","_suggestionFactory","markerNameToElements","_registerLegacyDescription","_descriptionFactory"];var Jx,Qx;Jx=Yx,Qx=375,function(t){for(;--t;)Jx.push(Jx.shift())}(++Qx);const ta=function(t,e){return Yx[t-=0]};class ea extends t.Plugin{static get requires(){return[zx]}[ta("0x11")](){const t=this.editor;if(!t.plugins[ta("0x3e")](ta("0x29")))return;const e=t[ta("0x4")],n=t.plugins.get("TrackChangesEditing");n[ta("0x33")](ta("0x9"),[],["headingRows"]),n[ta("0x33")](ta("0x1f"),[],[ta("0x16")]),n[ta("0x1a")][ta("0x22")](ta("0x30"),Qo(e,ta("0x37"))),n._descriptionFactory[ta("0x22")]("headingColumns",Qo(e,"FORMAT_HEADER_COLUMN")),this[ta("0x2b")]()}[ta("0x2b")](){const t=this[ta("0x1c")][ta("0x1d")].get(ta("0x7")),e=this[ta("0x1c")][ta("0x1d")][ta("0x3a")](ta("0x2f")),n=this.editor[ta("0x1d")][ta("0x3a")](zx)[ta("0x13")]();function o({showActiveMarker:n=!0,setDataAttribute:o=!0}={}){return(i,r,s)=>{const{type:x,id:a}=t[ta("0x2a")](r[ta("0x24")]),c=t[ta("0x35")](a),l=c[ta("0x0")];if(ta("0xe")!=c[ta("0xb")]||!l||"setTableColumnHeader"!=l[ta("0x36")])return;if(r[ta("0x1b")])return void i[ta("0x38")]();if(!s[ta("0x8")][ta("0x40")](r.markerRange,i[ta("0x14")]))return;const u=r[ta("0x32")][ta("0x28")].nodeAfter,d=r.markerRange[ta("0x3f")][ta("0x3b")],g=u.parent.parent,{column:f}=e[ta("0x2e")](u),{column:m}=e[ta("0x2e")](d);for(let i=f;i<=m;i++){const c=e[ta("0x5")](g,{column:i,includeAllSlots:!1});for(const e of c){const i=e[ta("0xd")],c=s.mapper.toViewElement(i);s[ta("0x3d")][ta("0x23")](ta("0x2c")+x,c),o&&s.writer[ta("0x10")](ta("0x15"),a,c),s[ta("0x20")][ta("0x34")](c,r[ta("0x24")]),n&&(t[ta("0xf")][ta("0x42")](r[ta("0x24")])?s.writer[ta("0x23")]("ck-suggestion-marker--active",c):s[ta("0x3d")][ta("0x41")](ta("0x1"),c))}}}}t[ta("0x17")][ta("0x31")](ta("0xe"),ta("0x9"),"accept",n),t._suggestionFactory[ta("0x31")]("formatBlock",ta("0x1f"),ta("0x3"),n),this.editor.editing[ta("0x2")].on(ta("0x1e"),o(),{priority:ta("0x12")}),this[ta("0x1c")][ta("0x0")][ta("0x2")].on(ta("0x1e"),((t,e,n)=>{n.options[ta("0x2d")]&&o({showActiveMarker:!1,setDataAttribute:!1})(t,e,n)}),{priority:ta("0x12")}),this.editor[ta("0x3c")][ta("0x2")].on(ta("0x25"),((e,n,o)=>{const{type:i,id:r}=t[ta("0x2a")](n[ta("0x24")]),s=t[ta("0x35")](r),x=s.data;if("formatBlock"!=s.type||!x||ta("0x1f")!=x[ta("0x36")])return;const a=o[ta("0x20")][ta("0x18")](n.markerName);if(a)for(const t of a)o[ta("0x3d")][ta("0x41")](ta("0x2c")+i,t),o[ta("0x3d")][ta("0x41")]("ck-suggestion-marker--active",t),o[ta("0x3d")][ta("0xa")]("data-suggestion",t),o[ta("0x20")][ta("0x39")](t,n[ta("0x24")])}),{priority:ta("0x12")}),this[ta("0x19")]()}[ta("0x19")](){const t=this.editor,e=t[ta("0x4")];function n(t){return{type:"format",content:Qo(e,"*Format:* %0",t)}}t.plugins[ta("0x3a")](ta("0x7"))[ta("0x1a")].registerDescriptionCallback((t=>{if(ta("0xe")!=t[ta("0xb")])return;const{data:o}=t;if(o){if(ta("0x9")==o[ta("0x36")]){const t=o[ta("0x6")][0][ta("0x26")];return n(Qo(e,ta(t?"0x37":"0x21")))}if(ta("0x1f")==o[ta("0x36")]){const t=o.commandParams[0][ta("0x26")];return n(Qo(e,ta(t?"0xc":"0x27")))}}}))}}const na=["insertContent","afterInit","endRow","add","author","batch","newRange","differ","getContainedElement","keys","find","createPositionBefore","fromEntries","registerCustomCallback","markMultiRangeDeletion","deletion","has","oldRange","_replaceTableSlotCell","isInContent","register","model","subType","every","value","next","tableCellBorderWidth","tablePaste","setAttributes","start","startsWith","insertion","position","tableCellBorderColor","entries","getColumns","unwrap","dataDowncast","tablePasteRow","rowInsertionRanges","getAllAdjacentSuggestions","_tablePostFixingSubtypes","markerToHighlight","_descriptionFactory","cells","getChild","createRangeOn","isEqual","activeMarkers","removeColumns","getTableIfOnlyTableInContent","removeRows","table","rows","listenTo","tableCellHorizontalAlignment","content","insertRows","tableCellPadding","rootName","createTableWalker","deletionRanges","attributes","markers","length","createRangeIn","accept","columnInsertionIndexes","elementToElement","some","tablePasteChainId","join","tableCellVerticalAlignment","*Replace table cells*","tableCell","locale","plugins","editor","suggestion","getItems","stop","fill","previous","remove","getRange","tableCellBorderStyle","columnInsertionRanges","Users","getChildren","getMarkers","createElement","get","editingDowncast","change","high","insert","type","columns","containsRange","conversion","return","last","findAncestor","getSuggestion","removeMarkers","$graveyard","ck-suggestion-marker-insertion","suggestion:formatBlock:tablePasteCell","set","suggestionUnloaded","options","markerAttributes","element","wrap","removeMarker","tablePasteCell","map","isEmpty","ck-suggestion-marker","getSuggestionCallback","filter","discard","insertionRanges","_createdBatches","TableClipboard","trackChanges","includes","ck-suggestion-marker--active","requires","endColumn","tableCellSuggestion","cell","_suggestionFactory","low","getColumnIndexes","tableCellBackgroundColor","first","name","from","move","forceDefaultExecution","for","createRange","editing","end","document","view","registerDescriptionCallback","tablePasteColumn","_splitMarkerName","paragraph","nextSibling","getSelectionAffectedTableCells","getRanges","getSuggestions","formatBlock","getChangedMarkers","push","registerPostFixer","markMultiRangeInsertion","markerName"];var oa,ia;oa=na,ia=335,function(t){for(;--t;)oa.push(oa.shift())}(++ia);const ra=function(t,e){return na[t-=0]},sa=[ra("0xd"),ra("0x14"),ra("0x48"),ra("0x2a"),ra("0x3b"),ra("0x7a"),ra("0x2d")],xa=Object[ra("0xa0")](sa[ra("0x67")]((t=>[t,null])));class aa extends t.Plugin{static get[ra("0x73")](){return[zx]}[ra("0x95")](){const t=this[ra("0x40")];if(!t.plugins[ra("0x3")](ra("0x6f")))return;const n=t.plugins[ra("0x4e")]("TrackChangesEditing"),o=t[ra("0x3f")].get("TableUtils"),i=t[ra("0x3f")].get(zx),r=t[ra("0x3f")][ra("0x4e")](ra("0x6f"));i[ra("0x1c")][ra("0x90")](ra("0x19"),"tablePasteColumn"),t[ra("0x8")].schema[ra("0x7")]("tableCellSuggestion",{allowIn:ra("0x3d"),allowContentOf:ra("0x3d"),isLimit:!0}),t[ra("0x56")][ra("0x37")]({model:"tableCellSuggestion",view:"suggestion-td"});let s=null;t[ra("0x8")].on(ra("0x94"),((i,x)=>{const[a,c]=x,l=x[x[ra("0x33")]-1];l&&l[ra("0x7f")]||n._isForcedDefaultExecutionBlock||this[ra("0x40")].commands[ra("0x4e")](ra("0x70"))[ra("0xb")]&&function(t,e,n,o,i){if(e&&!e.is("documentSelection"))return!1;const r=i[ra("0x25")](t,n);if(!r||!la(r,void 0,o))return!1;const s=o[ra("0x8b")](n[ra("0x84")].selection);if(!s.length)return!1;const x=s[0].findAncestor(ra("0x27")),a=o.getRowIndexes(s),c=o[ra("0x79")](s),l={startRow:a[ra("0x7b")],endRow:a.last,startColumn:c[ra("0x7b")],endColumn:c[ra("0x58")]};return 1==s.length&&(l[ra("0x96")]+=o.getRows(r)-1,l[ra("0x74")]+=o[ra("0x16")](r)-1),la(x,l,o)}(a,c,t[ra("0x8")],o,r)&&(i[ra("0x43")](),s={cells:[],insertionRanges:[],deletionRanges:[],rowInsertionRanges:[],rowInsertionIndexes:[],columnInsertionRanges:[],columnInsertionIndexes:[]},t[ra("0x8")][ra("0x50")]((()=>{t[ra("0x8")].insertContent(x[0],x[1],x[2],{forceDefaultExecution:!0});const o=(0,e.uid)(),{rowInsertionRanges:i,columnInsertionRanges:r,insertionRanges:a,deletionRanges:c,cells:l}=s;i[ra("0x33")]&&n[ra("0x92")](i,"tablePasteRow",{tablePasteChainId:o}),r[ra("0x33")]&&n[ra("0x92")](r,ra("0x87"),{tablePasteChainId:o}),a[ra("0x33")]&&n[ra("0x92")](a,ra("0xe"),{tablePasteChainId:o,skipNestingCheck:!0}),c.length&&n[ra("0x1")](c,ra("0xe"),{tablePasteChainId:o,skipNestingCheck:!0});const u=n.markMultiRangeBlockFormat(l.map((({element:t})=>t)),{formatGroupId:(0,e.uid)()},[],ra("0x66"),{tablePasteChainId:o});if(u){const e=u[ra("0x4c")](),n=[];for(const{element:o,attributes:i}of l){if(!i)continue;const r=t[ra("0x8")][ra("0x21")](o),s=e[ra("0x9e")]((t=>t[ra("0x47")]()[ra("0x22")](r)));s&&n[ra("0x90")]([s[ra("0x7c")],i])}n[ra("0x33")]&&u.setAttribute(ra("0x62"),Object.fromEntries(n))}s=null})))}),{priority:e.priorities[ra("0x51")]+10}),t[ra("0x3f")][ra("0x4e")]("TableClipboard").on(ra("0x5"),((t,e)=>{const[n,o,,i]=e;if(!s)return;t[ra("0x43")]();const r=n[ra("0x76")],x=o,a=ca(r),c=ca(x);t[ra("0x57")]=r;let l=null,u=null;if(c||a)if(a&&!c){i[ra("0x46")](r[ra("0x20")](0));for(const t of Array[ra("0x7d")](x[ra("0x4b")]()))i[ra("0x52")](t,r,ra("0x83"));const t=s.rowInsertionIndexes[ra("0x71")](n.row),e=s[ra("0x36")][ra("0x71")](n.column);t||e||(l=i[ra("0x34")](r))}else c&&!a&&(u=i[ra("0x34")](r));else{const t=i[ra("0x4d")](ra("0x75")),e=i.createElement(ra("0x75"));i[ra("0x64")](i[ra("0x34")](r),e),i[ra("0x52")](t,r,0);for(const e of Array[ra("0x7d")](x.getChildren()))i[ra("0x52")](e,t,"end");l=i[ra("0x21")](t),u=i.createRangeOn(e)}const d=Array.from(x.getAttributes())[ra("0x6b")]((([t])=>sa[ra("0x71")](t)));s[ra("0x1f")][ra("0x90")]({element:r,attributes:d[ra("0x33")]?Object[ra("0xa0")](d):null}),l&&s[ra("0x6d")][ra("0x90")](l),u&&s[ra("0x30")][ra("0x90")](u)}),{priority:"high"}),o.on("insertColumns",((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x54")]||1;s[ra("0x36")]=new Array(a)[ra("0x44")](x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x2f")](i,{startColumn:x,endColumn:x+a-1}))s[ra("0x49")].push(t[ra("0x8")][ra("0x21")](e))}),{priority:ra("0x78")}),o.on(ra("0x2c"),((e,n)=>{const[i,r={}]=n;if(!s)return;const x=r.at||0,a=r[ra("0x28")]||1;s.rowInsertionIndexes=new Array(a).fill(x).map(((t,e)=>t+e));for(const{cell:e}of o[ra("0x2f")](i,{startRow:x,endRow:x+a-1}))s[ra("0x1a")].push(t[ra("0x8")].createRangeOn(e))}),{priority:ra("0x78")}),n[ra("0x1e")][ra("0x86")]((e=>{if(e[ra("0x9")]&&e[ra("0x9")][ra("0x11")](ra("0xe")))return e.previous?{}:{type:ra("0x12"),content:Qo(t[ra("0x3e")],ra("0x3c"))}}));const x=()=>!1;for(const t of[ra("0xe"),ra("0x87"),ra("0x19"),ra("0x66")])n._suggestionFactory[ra("0x0")](ra("0x12"),t,ra("0x3a"),x),n._suggestionFactory[ra("0x0")]("deletion",t,"join",x),n[ra("0x77")][ra("0x0")](ra("0x8e"),t,ra("0x3a"),x);n._suggestionFactory[ra("0x0")](ra("0x8e"),"tablePasteCell",ra("0x6c"),x),n[ra("0x77")].registerCustomCallback(ra("0x8e"),ra("0x66"),ra("0x35"),((e,n,o)=>{const i=e[ra("0x67")]((t=>t[ra("0x9c")]()))[ra("0x6b")]((t=>t)),r=new Map(i[ra("0x67")]((t=>[t,null])));if(s)for(const{element:t,attributes:e}of s[ra("0x1f")])e&&r[ra("0x5f")](t,e);else if(o&&o[ra("0x62")])for(const[e,n]of Object[ra("0x15")](o.markerAttributes)){const o=t.model[ra("0x32")].get(e),i=o?o.getRange()[ra("0x9c")]():null;i&&r[ra("0x5f")](i,n)}t[ra("0x8")].change((t=>{for(const[e,n]of r)t[ra("0xf")]({...xa,...n},e)}))}));const a=(e,o)=>{n[ra("0x77")][ra("0x0")](e,"tablePaste",o,((i,r,s)=>{t[ra("0x8")][ra("0x50")]((t=>{const x=[];for(const t of i){const e=t[ra("0x10")].nodeAfter;e.is(ra("0x63"),ra("0x75"))&&x[ra("0x90")](e)}n[ra("0x77")][ra("0x6a")](e,null,o)(i,r,s);for(const e of x)ra("0x5c")!=e.root[ra("0x2e")]&&t[ra("0x17")](e)}))}))};a("insertion","accept"),a("insertion",ra("0x6c")),a("deletion",ra("0x35")),a(ra("0x2"),"discard"),n[ra("0x77")][ra("0x0")](ra("0x12"),"tablePasteRow",ra("0x6c"),(t=>{const e=t[ra("0x67")]((t=>t[ra("0x9c")]())),n=e[0][ra("0x59")](ra("0x27")),{minRow:r,maxRow:s}=i._getCoordsForCells(e);o[ra("0x26")](n,{at:r,rows:s-r+1})})),n._suggestionFactory[ra("0x0")](ra("0x12"),ra("0x87"),"discard",(t=>{const e=t.map((t=>t[ra("0x9c")]())),n=e[0][ra("0x59")](ra("0x27")),{minColumn:r,maxColumn:s}=i._getCoordsForCells(e);o[ra("0x24")](n,{at:r,columns:s-r+1})}));const c=(t,e)=>{if(!e[ra("0x9")]||!e[ra("0x9")][ra("0x11")]("tablePaste"))return;const o=e[ra("0x31")][ra("0x39")],i=n[ra("0x8d")]().filter((t=>t[ra("0x6")]&&t[ra("0x31")]&&t.attributes[ra("0x39")]==o));i.length&&e[ra("0x1b")]()[ra("0x33")]!=i[ra("0x33")]&&i.reduce(((t,e)=>(t[ra("0xc")]=e,e[ra("0x45")]=t,e)))};function l(t,e=!0){const{id:o}=n[ra("0x88")](t[ra("0x93")]),i=[ra("0x69"),ra("0x5d")],r=n[ra("0x23")][ra("0x71")](t.markerName);return r&&i.push(ra("0x72")),{classes:i,attributes:{"data-suggestion":o},priority:r&&e?3010:3e3}}n.on("suggestionLoaded",c,{priority:ra("0x51")}),n.on(ra("0x60"),c,{priority:ra("0x51")}),t[ra("0x8")][ra("0x84")][ra("0x91")]((()=>{let e=!1;const o=Array.from(t.model[ra("0x84")].differ[ra("0x8f")]());for(const{name:i,data:r}of o){const{group:o,type:s,id:x}=n[ra("0x88")](i);if(ra("0x41")!=o||"deletion"!=s||r.oldRange)continue;if(!n.hasSuggestion(x))continue;const a=n[ra("0x5a")](x)[ra("0x8c")](),c=t[ra("0x3f")].get("Users").me;for(const t of n[ra("0x8d")]())if(t[ra("0x6")]&&t[ra("0x98")]==c&&ra("0x8e")==t[ra("0x53")]&&ra("0x66")==t[ra("0x9")]&&t.getRanges()[ra("0xa")]((t=>a[ra("0x38")]((e=>e[ra("0x55")](t,!0))))))for(const n of t[ra("0x1b")]())n[ra("0x6")]&&(n[ra("0x6c")](),e=!0)}return e})),t[ra("0x8")][ra("0x84")].registerPostFixer((e=>{const o=t.commands[ra("0x4e")]("redo");if(!o||!o[ra("0x6e")][ra("0x3")](e[ra("0x99")]))return!1;let i=!1;const r=t[ra("0x3f")][ra("0x4e")](ra("0x4a")).me,s=t[ra("0x8")].document[ra("0x9b")].getChanges(),x=Array[ra("0x7d")](t.model.document[ra("0x9b")][ra("0x8f")]())[ra("0x6b")]((({name:t,data:e})=>{const{group:o,subType:i,authorId:s}=n[ra("0x88")](t);return ra("0x41")==o&&ra("0xe")==i&&s==r.id&&!e[ra("0x4")]}));for(const t of s){if(ra("0x52")!=t[ra("0x53")]||ra("0x75")!=t[ra("0x7c")]||1!=t[ra("0x33")])continue;const n=e[ra("0x81")](t[ra("0x13")],t[ra("0x13")].getShiftedBy(1));if(!x[ra("0x9e")]((({data:t})=>t.newRange.isEqual(n))))for(const{name:t,data:o}of x)if(n.containsRange(o[ra("0x9a")])){e.updateMarker(t,{range:n}),i=!0;break}}return i})),t[ra("0x8")][ra("0x84")].registerPostFixer((e=>{let o=!1;const i=t[ra("0x3f")][ra("0x4e")](ra("0x4a")).me,r=n.getSuggestions()[ra("0x6b")]((t=>t[ra("0x6")]&&t[ra("0x98")]==i)),s=new Set,x=new Set;for(const t of r)if(ra("0xe")==t[ra("0x9")])for(const e of t.getMarkers()){const n=e.getRange()[ra("0x9c")]();if(n)if(n.is(ra("0x63"),ra("0x75"))&&ca(n)){t[ra("0x65")](e[ra("0x7c")]),s[ra("0x97")](n),o=!0;const i=n[ra("0x8a")],r=n.previousSibling,a=i&&i.is(ra("0x63"),ra("0x75")),c=r&&r.is(ra("0x63"),ra("0x75"));a&&!s[ra("0x3")](i)&&x[ra("0x97")](i),c&&!s[ra("0x3")](r)&&x[ra("0x97")](r)}else n.is(ra("0x63"),ra("0x89"))&&n[ra("0x68")]&&(t[ra("0x65")](e.name),o=!0)}else if(ra("0x66")==t[ra("0x9")]){if(!t[ra("0x31")]||!t[ra("0x31")].tablePasteChainId)continue;const e=t[ra("0x31")][ra("0x62")];if(e&&Object[ra("0x9d")](e)[ra("0x33")])continue;const n=t[ra("0x31")][ra("0x39")];let i=!0,s=!0;for(const e of r)if(e[ra("0x9")]&&e[ra("0x9")].startsWith(ra("0xe"))){if(!e[ra("0x31")][ra("0x39")]){s=!1;break}if(e.id!=t.id&&e[ra("0x31")][ra("0x39")]==n){i=!1;break}}s&&i&&(t[ra("0x5b")](),o=!0)}for(const t of s)e[ra("0x46")](t);for(const t of x)e.unwrap(t);return o})),t[ra("0x56")][ra("0x80")](ra("0x4f"))[ra("0x1d")]({model:ra("0x5e"),view:(t,e)=>l(t),converterPriority:ra("0x51")}),t[ra("0x56")][ra("0x80")](ra("0x18"))[ra("0x1d")]({model:ra("0x5e"),view:(t,e)=>e[ra("0x61")].showSuggestionHighlights?l(t,!1):null,converterPriority:ra("0x51")});const u=t[ra("0x82")][ra("0x85")];this[ra("0x29")](u[ra("0x84")],"clipboardOutput",((t,e)=>{const n=[];for(const t of u[ra("0x34")](e[ra("0x2b")])[ra("0x42")]())t.is(ra("0x63"),"suggestion-td")&&n[ra("0x90")](t);u[ra("0x50")]((t=>{for(const e of n)t[ra("0x7e")](t[ra("0x34")](e),t[ra("0x9f")](e)),t[ra("0x46")](e)}))}))}}function ca(t){if(t[ra("0x68")])return!0;const e=t[ra("0x20")](0);return e.is(ra("0x63"),ra("0x89"))&&e[ra("0x68")]}function la(t,e={},n){for(const{isAnchor:o,cellHeight:i,cellWidth:r}of n.createTableWalker(t,{includeAllSlots:!0,...e}))if(!o||1!=i||1!=r)return!1;return!0}const ua=["getContainedElement","accept","discard","formatGroupId","format","bind","model","handleResizeTableWidthCommand","getSuggestions","_descriptionFactory","formatBlock","type","change","resizeTableWidth","columnWidths","Users","markBlockFormat","data","tableWidth","registerDescriptionCallback","enableCommand","commandParams","TrackChangesEditing","resizeTable","has","handleSuggestionDescription","getColumnGroupElement","getAttribute","document","*Format:* resize table","get","table","author","TableColumnResizeEditing","editor","selection","_suggestionFactory","getSuggestionCallback","plugins","getSelectedElement","registerCustomCallback"];var da,ga;da=ua,ga=308,function(t){for(;--t;)da.push(da.shift())}(++ga);const fa=function(t,e){return ua[t-=0]};class ma extends t.Plugin{afterInit(){if(!this.editor[fa("0x11")][fa("0x3")](fa("0xc")))return;const t=this.editor[fa("0x11")][fa("0x9")](fa("0x1"));t[fa("0x28")](fa("0x21"),this[fa("0x1b")].bind(this)),t[fa("0xf")][fa("0x13")]("formatBlock",fa("0x2"),fa("0x15"),t._suggestionFactory[fa("0x10")](fa("0x1e"),null,fa("0x16"))),t[fa("0xf")][fa("0x13")](fa("0x1e"),fa("0x2"),fa("0x16"),t[fa("0xf")][fa("0x10")](fa("0x1e"),null,fa("0x15"))),t[fa("0x1d")][fa("0x27")](this[fa("0x4")][fa("0x19")](this))}[fa("0x1b")](t,e){const n=this[fa("0xd")][fa("0x11")][fa("0x9")](fa("0x1")),o=this.editor[fa("0x11")][fa("0x9")]("TableColumnResizeEditing"),i=e[fa("0xa")]||this[fa("0xd")][fa("0x1a")][fa("0x7")][fa("0xe")][fa("0x12")]();this.editor[fa("0x1a")][fa("0x20")]((()=>{const r=o[fa("0x5")](i);let s=r?o.getTableColumnsWidths(r):null,x=i[fa("0x6")](fa("0x26"))||null;const a=e.tableWidth||x,c=e.columnWidths||s,l=this.editor[fa("0x11")][fa("0x9")](fa("0x23")).me;for(const t of n[fa("0x1c")]()){const e=t[fa("0x14")]();if(fa("0x2")===t.subType&&e===i){t[fa("0xb")]!==l&&t[fa("0x16")]();const e=t[fa("0x25")][fa("0x0")];x=e[0][fa("0x26")],s=e[0][fa("0x22")];break}}t({table:i,tableWidth:a,columnWidths:c}),n[fa("0x24")](i,{commandName:"resizeTableWidth",commandParams:[{tableWidth:x,columnWidths:s}],formatGroupId:fa("0x2")},[],"resizeTable")}))}handleSuggestionDescription(t){if(fa("0x1e")!=t[fa("0x1f")]&&"formatInline"!=t.type)return;const{data:e}=t;if(e&&fa("0x2")===e[fa("0x17")]){const t=fa("0x8");return{type:fa("0x18"),content:Qo(this.editor.locale,t)}}}}const ha=["insertTemplate","has","TrackChangesEditing","Template","editor","afterInit","enableCommand"];var pa,ba;pa=ha,ba=352,function(t){for(;--t;)pa.push(pa.shift())}(++ba);const Ea=function(t,e){return ha[t-=0]};class _a extends t.Plugin{[Ea("0x3")](){const t=this[Ea("0x2")];t.plugins[Ea("0x6")](Ea("0x1"))&&t.plugins.get(Ea("0x0"))[Ea("0x4")](Ea("0x5"))}}const Ta=["_descriptionFactory","afterInit","tableOfContents","insertTableOfContents","plugins","get","TrackChangesEditing","locale","registerElementLabel","enableCommand","ELEMENT_TABLE_OF_CONTENTS"];var ya,Ca;ya=Ta,Ca=406,function(t){for(;--t;)ya.push(ya.shift())}(++Ca);const Aa=function(t,e){return Ta[t-=0]};class ka extends t.Plugin{[Aa("0x2")](){const t=this.editor;if(!t.commands[Aa("0x6")](Aa("0x4")))return;t[Aa("0x5")].get(Aa("0x7"))[Aa("0xa")]("insertTableOfContents");const e=t[Aa("0x5")][Aa("0x6")](Aa("0x7")),n=t[Aa("0x8")];e[Aa("0x1")][Aa("0x9")](Aa("0x3"),(t=>Qo(n,Aa("0x0"),t)))}}const Ia=["locale","title-content","forward","Title","TrackChangesEditing","differ","end","from","registerElementLabel","plugins","updateMarker","removeMarker","has","element","editor","_splitMarkerName","nodeBefore","newRange","getChangedMarkers","start","get","isTouching","model","document","afterInit","isEqual"];var Ra,Sa;Ra=Ia,Sa=275,function(t){for(;--t;)Ra.push(Ra.shift())}(++Sa);const va=function(t,e){return Ia[t-=0]};class Na extends t.Plugin{[va("0x9")](){const t=this[va("0x19")];if(!t.plugins[va("0x17")](va("0xe")))return;const e=t[va("0x14")][va("0x5")](va("0xf"));e._descriptionFactory[va("0x13")](va("0xc"),(()=>Qo(t[va("0xb")],"ELEMENT_TITLE"))),t[va("0x7")][va("0x8")].registerPostFixer((n=>{let o=!1;const i=Array[va("0x12")](t[va("0x7")][va("0x8")][va("0x10")][va("0x3")]());for(const{name:r,data:s}of i){const{group:i}=e[va("0x0")](r);if("suggestion"!==i||!s[va("0x2")])continue;const x=s[va("0x2")],a=x[va("0x11")][va("0x1")];if(!a||!a.is(va("0x18"),"title-content"))continue;if(!x[va("0x4")][va("0x6")](x[va("0x11")]))continue;const c=t[va("0x7")].schema.getNearestSelectionRange(x[va("0x11")],va("0xd"));if(c&&c.isCollapsed){const t=n.createRange(x[va("0x4")],c[va("0x4")]);t[va("0xa")](x)||(n[va("0x15")](r,{range:t}),o=!0)}o||(n[va("0x16")](r),o=!0)}return o}))}}const La=["plugins","undo","TrackChangesEditing","editor","UndoEditing","redo","afterInit","get","enableCommand","has"];var Ma,wa;Ma=La,wa=464,function(t){for(;--t;)Ma.push(Ma.shift())}(++wa);const Oa=function(t,e){return La[t-=0]};class Fa extends t.Plugin{[Oa("0x2")](){const t=this[Oa("0x9")],e=t[Oa("0x6")][Oa("0x3")](Oa("0x8"));t[Oa("0x6")][Oa("0x5")](Oa("0x0"))&&(e[Oa("0x4")](Oa("0x7")),e[Oa("0x4")](Oa("0x1")))}}const Da=["toggleTableCaption","plugins","editor","get","TableCaptionEditing","enableCommand","requires","afterInit","has"];var Ba,Pa;Ba=Da,Pa=161,function(t){for(;--t;)Ba.push(Ba.shift())}(++Pa);const Ua=function(t,e){return Da[t-=0]};class ja extends t.Plugin{static get[Ua("0x7")](){return[zx]}[Ua("0x8")](){const t=this[Ua("0x3")];t[Ua("0x2")][Ua("0x0")](Ua("0x5"))&&t[Ua("0x2")][Ua("0x4")]("TrackChangesEditing")[Ua("0x6")](Ua("0x1"))}}const Ga=["handleDiscardAction","TrackChangesEditing","format","tableCellBorderColor","getContainedElement","subType","locale","plugins","data","batch","tableCellProperties","selection","handleSuggestionDescription","removeAttribute","tableProperties","_suggestionFactory","table","has","tableCellBackgroundColor","tableBackgroundColor","registerCustomCallback","nodeAfter","afterInit","tableCellPadding","tableCellVerticalAlignment","tableCellHeight","tableWidth","discard","tableAlignment","commandParams","getSuggestionCallback","tableCellHorizontalAlignment","model","getFirstPosition","findAncestor","tableBorderColor","tableHeight","TableUtils","getSuggestions","document","formatBlock","tableBorderWidth","getSelectionAffectedTableCells","setAttribute","join","editor","registerDescriptionCallback","tableCellWidth","get","TablePropertiesEditing","getAttribute","*Format:* change table cell properties","pluginName","_handlePropertyChange","tableBorderStyle","accept"];var Va,Ha;Va=Ga,Ha=499,function(t){for(;--t;)Va.push(Va.shift())}(++Ha);const za=function(t,e){return Ga[t-=0]};class Wa extends t.Plugin{constructor(t){super(t),this[za("0x13")]=[za("0x28"),za("0x3"),za("0x2e"),za("0x21"),za("0x1f"),za("0x29"),za("0x18")],this.tableCellProperties=[za("0x8"),"tableCellBorderStyle","tableCellBorderWidth",za("0x1c"),za("0x34"),za("0x1e"),za("0x17"),za("0x24"),za("0x1d")]}static get[za("0x1")](){return"TrackChangesTableProperties"}[za("0x1b")](){const t=this[za("0x32")][za("0xc")][za("0x35")]("TrackChangesEditing");if(this[za("0x32")][za("0xc")].has(za("0x36"))){for(const e of this[za("0x13")])t.enableCommand(e,((t,n)=>{const o=this[za("0x32")][za("0x25")].document[za("0x10")][za("0x26")]()[za("0x27")](za("0x15"));this[za("0x2")](e,[o],this[za("0x13")],za("0x13"),t,n)}));t[za("0x14")][za("0x19")]("formatBlock",za("0x13"),za("0x4"),t._suggestionFactory[za("0x23")]("formatBlock",null,za("0x20"))),t[za("0x14")][za("0x19")](za("0x2d"),za("0x13"),"discard",((t,e)=>this[za("0x5")](this[za("0x13")],t,e))),t[za("0x14")][za("0x19")](za("0x2d"),"tableProperties",za("0x31"),(()=>!1))}if(this.editor[za("0xc")][za("0x16")]("TableCellPropertiesEditing")){for(const e of this[za("0xf")])t.enableCommand(e,((t,n)=>{const o=this[za("0x32")].plugins[za("0x35")](za("0x2a"))[za("0x2f")](this.editor.model[za("0x2c")].selection);this[za("0x2")](e,o,this.tableCellProperties,"tableCellProperties",t,n)}));t[za("0x14")].registerCustomCallback(za("0x2d"),za("0xf"),za("0x4"),t[za("0x14")].getSuggestionCallback("formatBlock",null,za("0x20"))),t[za("0x14")][za("0x19")](za("0x2d"),za("0xf"),"discard",((t,e)=>this.handleDiscardAction(this[za("0xf")],t,e))),t[za("0x14")].registerCustomCallback("formatBlock",za("0xf"),"join",(()=>!1))}t._descriptionFactory[za("0x33")]((t=>this[za("0x11")](t)))}[za("0x2")](t,e,n,o,i,r){const s=this[za("0x32")][za("0xc")][za("0x35")](za("0x6"));this[za("0x32")][za("0x25")].enqueueChange(r[za("0xe")],(()=>{for(const t of e)if(this._getSuggestion(t,o))i(r);else{const e={};for(const o of n){const n=t[za("0x37")](o);void 0!==n&&(e[o]=n)}i(r),s.markBlockFormat(t,{commandParams:[e]},[],o)}}))}[za("0x5")](t,e,n){const o=e[0].start[za("0x1a")],i=n[za("0x22")][0];this[za("0x32")][za("0x25")].change((e=>{for(const n of t)void 0!==i[n]?e[za("0x30")](n,i[n],o):e[za("0x12")](n,o)}))}[za("0x11")](t){if(t[za("0xd")])switch(t[za("0xa")]){case"tableProperties":return{type:za("0x7"),content:Qo(this[za("0x32")][za("0xb")],"*Format:* change table properties")};case za("0xf"):return{type:za("0x7"),content:Qo(this[za("0x32")][za("0xb")],za("0x0"))}}}_getSuggestion(t,e){const n=this[za("0x32")][za("0xc")].get("TrackChangesEditing");for(const o of n[za("0x2b")]({skipNotAttached:!0})){const n=o[za("0x9")]();if(o[za("0xa")]===e&&n===t)return o}return null}}var Ka=Function.prototype,qa=Object.prototype,Xa=Ka.toString,$a=qa.hasOwnProperty,Za=Xa.call(Object);const Ya=function(t){if(!xe(t)||"[object Object]"!=gt(t))return!1;var e=xn(t);if(null===e)return!0;var n=$a.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Xa.call(n)==Za};const Ja=function(t){return Ya(t)?void 0:t};var Qa=it?it.isConcatSpreadable:void 0;const tc=function(t){return ge(t)||de(t)||!!(Qa&&t&&t[Qa])};const ec=function t(e,n,o,i,r){var s=-1,x=e.length;for(o||(o=tc),r||(r=[]);++s<x;){var a=e[s];n>0&&o(a)?n>1?t(a,n-1,o,i,r):sn(r,a):i||(r[r.length]=a)}return r};const nc=function(t){return(null==t?0:t.length)?ec(t,1):[]};const oc=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)};var ic=Math.max;const rc=function(t,e,n){return e=ic(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ic(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var x=Array(e+1);++i<e;)x[i]=o[i];return x[e]=n(s),oc(t,this,x)}};const sc=function(t){return function(){return t}};const xc=ee?function(t,e){return ee(t,"toString",{configurable:!0,enumerable:!1,value:sc(e),writable:!0})}:function(t){return t};var ac=Date.now;const cc=function(t){var e=0,n=0;return function(){var o=ac(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}}(xc);const lc=function(t){return cc(rc(t,void 0,nc),t+"")}((function(t,e){var n={};if(null==t)return n;var o=!1;e=uo(e,(function(e){return e=po(e,t),o||(o=e.length>1),e})),re(t,dn(t),n),o&&(n=to(n,7,Ja));for(var i=e.length;i--;)Ko(n,e[i]);return n})),uc=["unshift","suggestion:attribute:","init","pluginName","activeMarkers","attribute:accept","_getMarkerAnnouncementText","always","suggestion:","attribute:join","_breakSuggestionMarker","get","toUpperCase","getSuggestionCallback","_findSuggestions","ck-suggestion-marker-formatInline","addHighlight","parent","_isBlockAttribute","range","never","_handleNewSuggestionMarker","accept","from","createPositionAt","markerToHighlight","_inlineAttributeKeys","attributes","head","howMany","_saved","comments","ENTER","deletion:","_updateSuggestionData","_registerDefaultCallbacks","change:_saved","_commentsRepository","concat","getUser","execute","acceptSuggestion","newRange","nodeAfter","isAfter","setAttribute","selection","removeAttribute","group","markerNameToElements","registerPostFixer","discardAllSuggestions","showSuggestionHighlights","type","oldRange","getMarkers","trackChanges.trackFormatChanges","createRange","_enabledCommands","insert","createElement","backward","addClass","change","attribute:","change:activeMarkers","_suggestionFactory","creator","rename","startsWith","high","_suggestionState","_addThreadToSuggestion","_editor","hasCommentThread","getChangedMarkers","attributeNewValue","value","removed","_defaultCallbacks","markMultiRangeInsertion","tablePasteChainId","suggestion-type","normal","addMarkerName","unbindElementFromMarkerName","_createSuggestion","markers","editingDowncast","_getAttributeKeyFromSubType","attributeOldValue","detach","conversion","pop","forceDefaultExecution","previous","markerName","accepted","includes","model","set","addSuggestionData","substring","acceptAllSuggestions","_joinSuggestions","acceptSelectedSuggestions","_recordAttributeSuggestionsFromVersion","name","getMultiRangeId","bindElementToMarker","getRange","isIntersectingWithRange","addSuggestion","containsRangeInObject","enableCommand","insertion:","formatBlock","options","isIntersecting","sort","ck-suggestion-marker-formatBlock","map","before","markBlockFormat","addMarker:suggestion:formatBlock","toJSON","widget","oldName","containsRange","then","elementStart","attributeKey","external:","delete","ready","addCommentThread","getSuggestion","default","stopListening","subType","isObject","formatInline:accept","trackChanges","warn","catch","split","_reduceExistingSuggestions","isRemovable","_onDiscard","ck-suggestion-marker","values","formatGroupId","formatInline","every","_recordAttributeChanges","fromRange","formatBlock:","commands","getChanges","ck-suggestion-marker--active","formatBlock:discard","applyOperation","createPositionBefore","_suggestions","deletion","config","resolve","@external","_isForcedDefaultExecutionBlock","change:data","deletion:chain","stop","_initAriaMarkerChangeAnnouncements","_addSuggestionMarker","chain","lowest","getWalker","elementEnd","commandName","end","isLocal","addAttribute","refresh","getDifference","move","_processAttributeChanges","removeMarker:suggestion:attribute","after","notReady","formatBlock:chain","deleteContent","authorName","$elementName","format","toViewElement","size","isLimit","track-changes-suggestion-not-found","Users","data","hasSuggestion","key","_refreshAttributeSuggestionsChain","clear","enqueueChange","_rangeIsInLocalUserInsertion","marker-count","removeClass","markInlineFormat","element","formatInline:","batch","$textProxy","setSelection","ariaLiveAnnouncer","markInsertion","originalSuggestionId","isEqual","mapper","position","_getSuggestionData","splice","consume","next","isNextTo","createRangeOn","adapter","suggestionChanged","_registerBlockAttribute","getShiftedBy","track-changes-user-not-found","_setSuggestionData","createRangeIn","find","LEAVE","Creating a suggestion for attribute with too long attribute key. This may lead to errors. Change the attribute key to a value shorter than 37 characters.","has","filter","item","suggestionLoaded","discardSelectedSuggestions","commentThread","for","_reduceSuggestionAttributeRange","getFirstRange","isArray","formatInline:join","addComment","data-suggestion","hasComments","targetPosition","remove","addMarker:suggestion","formatInline:chain","_registerInlineAttribute","trackChanges.mergeNestedSuggestions","attribute:discard","_trackFormatChanges","addUser","updateMarker","return","dataReady","_refreshSuggestionsChain","discardSuggestion","$marker","containsPosition","suggestion","changeAttribute","containerElement","deletion:discard","track-changes-suggestion-data-mismatch","PENDING_ACTION_SUGGESTION","listenTo","_setSuggestionRange","isDocumentOperation","getNearestSelectionRange","fromCharCode","join","low","ck-suggestion-marker-","collaboration.channelId","highest","start","_adapter","upcast","some","removeMarkers","getFirstMarker","length","fetchCommentThread","author","suggestionUnloaded","_model","isMultiRange","plugins","markerToData","getAttribute","_joinWithAdjacentSuggestions","isInContent","documentSelection","differ","addMarker","createSelection","multi","add","isInsideObject","keys","getLastMatchingPosition","root","buildSuggestion","writer","getSuggestions","markDeletion","_getAuthorFromId","unbind","_mergeNestedSuggestions","forward","isAtEnd","isBlock","fire","updateSuggestion","_processAttributeSuggestions","push","discard","_splitMarkerName","getRanges","formatInline:discard","addMarker:suggestion:attribute","assign","multipleBlocks","createdAt","groupId","oldValue","schema","newName","addRange","document","isCollapsed","reconvertMarker","getOperations","insertion:chain","dataToMarker","$graveyard","insertContent","_blockAttributeKeys","_enableDefaultAttributesIntegration","editor","rootName","consumable","meta","markAttributeChange","rejected","markerReady","TrackChangesEditing","nodeBefore","isOwn","skipNestingCheck","isAtStart","define","getCommentThread","CommentsRepository","getCustomProperty","removeMarker","isBefore","_getExternalAuthor","_checkSuggestionCorrectness","attribute","authoredAt","insertion:discard","getAllAdjacentSuggestions","dataDowncast","_isDataLoaded","trackChangesCommand","insertion","locale","_customCallbacks","forEach","getIntersection","newValue"];var dc,gc;dc=uc,gc=177,function(t){for(;--t;)dc.push(dc.shift())}(++gc);const fc=function(t,e){return uc[t-=0]},mc=fc("0xf");class hc extends t.Plugin{static get requires(){return[fc("0xb7"),r.Users,t.PendingActions,ci,fi,_i,ki,Li,Di,Vi,tr,rr,lr,hr,Tr,Rr,Mr,Pr,Hr,Xr,Qr,is,fs,cs,Es,As,vs,Os,Us,Ks,Ys,nx,xx,dx,bx,Cx,Sx,Ox,Ux,zx,Zx,ea,ja,aa,ma,ka,Wa,_a,Na,Fa]}static get[fc("0xcd")](){return fc("0xb0")}constructor(t){function e(t){return t[fc("0x143")]((t=>String[fc("0x63")](t))).join("")}super(t),this[fc("0x134")]=null,this[fc("0x12e")]("activeMarkers",[]),this.on(fc("0x10b"),((e,n,o,i)=>{this[fc("0x73")][fc("0x109")]((()=>{for(const e of[...i,...o])this[fc("0x73")][fc("0x121")][fc("0x3b")](e)&&t.editing[fc("0xa1")](e)}))})),this._descriptionFactory=new ii(this[fc("0xa9")][fc("0x12d")][fc("0x9c")],this.editor[fc("0xc5")]),this[fc("0x6a")]=null,this[fc("0x10c")]=new pc(this.editor),this[fc("0x16d")]=new Map,this[fc("0xef")]=t.plugins[fc("0xd5")](fc("0xb7")),this[fc("0x104")]=new Set,this[fc("0x73")]=this.editor[fc("0x12d")],this[fc("0x111")]=new WeakMap,this._isForcedDefaultExecutionBlock=!1,this._blockAttributeKeys=new Set([fc("0xf")]),this[fc("0xe4")]=new Set,t[fc("0x16f")][fc("0xb5")](fc("0x102"),fc("0x153")),this[fc("0x50")]=t.config.get("trackChanges.trackFormatChanges"),t[fc("0x16f")][fc("0xb5")](fc("0x4e"),!0),this[fc("0x8a")]=t[fc("0x16f")].get("trackChanges.mergeNestedSuggestions"),this.trackChangesCommand=new d(t,this[fc("0x104")]),this[fc("0x176")](),this[e([95,101,120,101,99,117,116,101,83,117,103,103,101,115,116,105,111,110])]=e([52,48,52,54,50,50,52,50])}[fc("0xcc")](){const t=this[fc("0xa9")],n=(t,e)=>{if(fc("0xbd")!=t)return fc("0x66")+t;const n=e.split("|")[0];return this._isBlockAttribute(n)?fc("0x142"):fc("0xd9")};t[fc("0x126")][fc("0x41")](fc("0x122"))[fc("0xe3")]({model:"suggestion",view:t=>{const{id:e,type:o,subType:i}=this[fc("0x93")](t.markerName),r=[fc("0x15f"),n(o,i)];let s=3e3;return this[fc("0xce")][fc("0x12c")](t[fc("0x12a")])&&(r[fc("0x91")]("ck-suggestion-marker--active"),s=3010),fc("0x16e")==o&&(s+=5),{classes:r,attributes:{"data-suggestion":e},priority:s}}}),t[fc("0x126")][fc("0x41")]("dataDowncast")[fc("0x7f")]((e=>{e.on(fc("0x4b"),((e,n,o)=>{if(!o.options[fc("0xfe")])return;const i=n[fc("0x3d")];if(!i)return;const r=o[fc("0x29")].toViewElement(i);t.model[fc("0x9c")][fc("0x156")](i)&&r&&!r.getCustomProperty(fc("0x148"))&&r.is(fc("0x5b"))&&(0,x.toWidget)(r,o[fc("0x85")])}),{priority:fc("0x110")})})),t[fc("0x126")].for("dataDowncast").markerToHighlight({model:"suggestion",view:(t,e)=>{if(!e[fc("0x13f")][fc("0xfe")])return null;const{type:o,subType:i}=this[fc("0x93")](t[fc("0x12a")]);return{classes:[fc("0x15f"),n(o,i)],priority:3e3}}});const o=({showActiveMarkers:e=!0,isAttributeSuggestion:n=!1}={})=>(o,i,r)=>{if(!i[fc("0x3d")])return;const{id:s}=this[fc("0x93")](i.markerName);if(n){const t=this[fc("0x16d")][fc("0xd5")](s),e=this[fc("0x123")](t);if(!this[fc("0xdc")](e))return}if(i.item.is(fc("0xf8")))return void r.consumable.consume(i[fc("0x3d")],o.name);const x=r[fc("0x29")][fc("0x11")](i.item);if(i[fc("0x3d")].is(fc("0x20"))&&t[fc("0x12d")][fc("0x9c")][fc("0x8d")](i[fc("0x3d")])&&!x[fc("0xb8")](fc("0xda"))){r[fc("0x85")][fc("0x108")](["ck-suggestion-marker",fc("0x142")],x),r[fc("0x85")].setAttribute(fc("0x47"),s,x),r[fc("0x29")][fc("0x137")](x,i.markerName),e&&(this[fc("0xce")].includes(i[fc("0x12a")])?r.writer[fc("0x108")](fc("0x169"),x):r[fc("0x85")][fc("0x1e")](fc("0x169"),x));for(const e of t.model[fc("0x37")](i[fc("0x3d")]).getItems())r[fc("0xab")].consume(e,o[fc("0x135")]);r[fc("0xab")][fc("0x2d")](i.item,o[fc("0x135")])}};t[fc("0x126")].for(fc("0xc1"))[fc("0x7f")]((t=>{t.on(fc("0x146"),((t,e,n)=>{n.options[fc("0xfe")]&&o({showActiveMarkers:!1})(t,e,n)}),{priority:fc("0x68")})})),t.conversion[fc("0x41")](fc("0xc1"))[fc("0x7f")]((t=>{t.on(fc("0x96"),((t,e,n)=>{n[fc("0x13f")][fc("0xfe")]&&o({showActiveMarkers:!1,isAttributeSuggestion:!0})(t,e,n)}),{priority:fc("0x68")})})),t[fc("0x126")][fc("0x41")](fc("0xc1"))[fc("0x76")]({model:fc("0x59"),view:(t,e)=>e[fc("0x13f")].showSuggestionHighlights?null:{group:fc("0x59"),name:t.substr(11)}}),t.conversion[fc("0x41")](fc("0x6b")).elementToElement({view:{name:fc("0x59"),attributes:{id:/^\w/,"suggestion-type":/^\w/}},model:(t,{writer:e})=>{let n=fc("0xd2")+t[fc("0x77")](fc("0x11c"))+":"+t.getAttribute("id");return t[fc("0x77")](fc("0x1d"))&&(n+=":"+t[fc("0x77")](fc("0x1d"))),e[fc("0x106")](fc("0x57"),{"data-name":n})}}),t[fc("0x126")].for(fc("0x6b"))[fc("0xa4")]({view:fc("0x59")}),t[fc("0x126")][fc("0x41")](fc("0x122"))[fc("0x7f")]((t=>{t.on(fc("0x146"),o(),{priority:"high"})})),t[fc("0x126")][fc("0x41")](fc("0x122")).add((t=>{t.on(fc("0x96"),o({isAttributeSuggestion:!0}),{priority:fc("0x110")})})),t[fc("0x126")][fc("0x41")](fc("0x122"))[fc("0x7f")]((t=>{t.on("removeMarker:suggestion:formatBlock",((t,e,n)=>{const o=n[fc("0x29")][fc("0xfb")](e.markerName);if(o)for(const t of o)t[fc("0xb8")]("addHighlight")||(n[fc("0x85")].removeClass([fc("0x15f"),fc("0x142"),"ck-suggestion-marker--active"],t),n.writer[fc("0xf9")](fc("0x47"),t),n[fc("0x29")][fc("0x11f")](t,e.markerName))}),{priority:fc("0x110")})})),t[fc("0x126")][fc("0x41")](fc("0x122"))[fc("0x7f")]((t=>{t.on(fc("0x9"),((t,e,n)=>{const o=n[fc("0x29")].markerNameToElements(e.markerName);if(!o)return;const{id:i}=this[fc("0x93")](e[fc("0x12a")]),r=this[fc("0x16d")].get(i),s=this[fc("0x123")](r);if(this[fc("0xdc")](s))for(const t of o)t[fc("0xb8")](fc("0xda"))||(n[fc("0x85")].removeClass([fc("0x15f"),fc("0x142"),fc("0x169")],t),n[fc("0x85")][fc("0xf9")]("data-suggestion",t),n[fc("0x29")][fc("0x11f")](t,e[fc("0x12a")]))}),{priority:fc("0x110")})})),t[fc("0x12d")][fc("0x9f")].registerPostFixer((e=>{let n=!1;const o=Array[fc("0xe1")](t.model[fc("0x9f")].differ[fc("0x115")]()),i=new Set;for(const{name:x,data:a}of o){const{group:o,type:c,subType:l,id:u}=this[fc("0x93")](x);if("suggestion"!==o)continue;const d=this[fc("0x16d")][fc("0xd5")](u);if(null!=a[fc("0xf4")]){fc("0x162")==c&&(n=n||_c(a[fc("0xf4")],x,e,t[fc("0x12d")][fc("0x9c")]));const o="attribute"==c&&this._isBlockAttribute(l[fc("0x15b")]("|")[0]);if(a[fc("0xf4")][fc("0xa0")]||fc("0xa5")==a[fc("0xf4")][fc("0x83")][fc("0xaa")]||"formatBlock"==c&&!yc(a[fc("0xf4")])||o&&!yc(a[fc("0xf4")])||fc("0x16e")==c&&(Ec(s=a[fc("0xf4")])||(r=s).start.parent==r[fc("0x2")][fc("0xb1")]&&r[fc("0x69")][fc("0x8c")]))e[fc("0xb9")](x),n=!0;else{if(!d||!d.isInContent)continue;i[fc("0x7f")](d)}}}var r,s;return i[fc("0x12")]>0&&(n=!!this._joinWithAdjacentSuggestions(i)||n),n})),t[fc("0x12d")][fc("0x9f")][fc("0xfc")]((e=>{let n=!1;for(const o of t.model[fc("0x9f")][fc("0x7b")][fc("0x168")]())if(fc("0x105")==o[fc("0xff")])for(const o of this[fc("0x16d")][fc("0x160")]()){if(o[fc("0x74")]||!o.isInContent)continue;const i=fc("0x13e")==o.type,r=this[fc("0x123")](o),s=r&&this[fc("0xdc")](r);if(!i&&!s)continue;const x=o[fc("0x43")]();if(x[fc("0x69")][fc("0xdb")]!=x[fc("0x2")][fc("0xdb")]&&!x.end[fc("0x8c")]){const i=t[fc("0x12d")][fc("0xe2")](x[fc("0x69")][fc("0xf5")],fc("0x2")),r=t[fc("0x12d")].createRange(x.start,i);e[fc("0x52")](o[fc("0x6e")](),{range:r}),n=!0}}return n})),t[fc("0x12d")].document[fc("0xfc")]((t=>this[fc("0x8")](t))),t[fc("0x12d")][fc("0x9f")][fc("0xfc")]((t=>!t[fc("0x22")][fc("0x3")]&&this[fc("0x90")](t))),t[fc("0x12d")][fc("0x121")].on("update:suggestion",((t,e,n)=>{if(null==n){const{id:t}=this._splitMarkerName(e[fc("0x135")]),n=this[fc("0x16d")][fc("0xd5")](t);n&&n[fc("0x11e")](e[fc("0x135")])}})),t[fc("0x12d")][fc("0x9f")].on(fc("0x173"),(()=>{const e=Array[fc("0xe1")](t[fc("0x12d")][fc("0x9f")].differ.getChangedMarkers())[fc("0x3c")]((t=>"suggestion"===this[fc("0x93")](t[fc("0x135")])[fc("0xfa")]));if(0===e.length)return;e[fc("0x141")](((t,e)=>{const n=t[fc("0x16")][fc("0x100")],o=e.data[fc("0x100")];return null===n&&null===o?0:null===n&&null!==o?-1:null!==n&&null===o?1:n[fc("0x69")][fc("0xba")](o[fc("0x69")])?-1:1}));const n=new Set,o=new Set;for(const{name:t,data:i}of e){const{id:e}=this[fc("0x93")](t);if(null===i.oldRange){const e=this[fc("0xdf")](t);o[fc("0x7f")](e)}else{const t=this[fc("0x16d")].get(e);null!==i[fc("0xf4")]||t[fc("0x79")]?(n[fc("0x7f")](t[fc("0xe6")]),o[fc("0x7f")](t)):this._removeSuggestion(t)}}o[fc("0x12")]>0&&this._refreshSuggestionsChain(o);for(const t of n)this.fire(fc("0x32"),t)})),t[fc("0x12d")].on(fc("0x16b"),((e,n)=>{const o=n[0];if(!this[fc("0x16d")][fc("0x12")])return;if(!o[fc("0x61")])return;if(o[fc("0x22")].isUndo||!o[fc("0x22")][fc("0x3")])return;let i,r;switch(o.type){case"insert":i=t.model[fc("0xe2")](o.position),r=i[fc("0x34")](o[fc("0xe7")]);break;case fc("0x15b"):i=t[fc("0x12d")][fc("0xe2")](o.splitPosition),r=t.model.createPositionAt(o.moveTargetPosition);break;case fc("0x7"):i=t.model.createPositionAt(o[fc("0x49")]),r=i.getShiftedBy(o[fc("0xe7")]);break;default:return}const s=t[fc("0x12d")][fc("0x103")](i,r);t[fc("0x12d")][fc("0x109")]((()=>{for(const{suggestion:t,meta:e}of this[fc("0xd8")](s)){if(t[fc("0x74")])continue;if(fc("0x162")==t[fc("0xff")])continue;const n=this[fc("0x123")](t);if(n&&this[fc("0xdc")](n)&&fc("0x15b")!=o[fc("0xff")])continue;const x=t.data&&t[fc("0x16")][fc("0x98")];(fc("0x13e")!=t.type||"split"==o[fc("0xff")]&&!x)&&(e.containsRangeInObject||"insertion"==t[fc("0xff")]&&e[fc("0xb2")]||t.getFirstRange()[fc("0x14a")](s)&&this._breakSuggestionMarker(t,i,r))}}))}),{priority:fc("0x179")}),t[fc("0x12d")].on(fc("0xd"),((e,n)=>{const o=n[0],i=n[1];if(i&&i[fc("0x128")])return;if(this[fc("0x172")])return;if(!this[fc("0xc3")][fc("0x117")])return;if(o[fc("0xa0")])return;const r=t[fc("0x12d")][fc("0x9c")],{start:s,end:x}=o.getFirstRange(),a=s[fc("0xf5")]&&r.isLimit(s[fc("0xf5")])?null:r[fc("0x62")](s,fc("0x8b")),c=x.nodeBefore&&r[fc("0x13")](x.nodeBefore)?null:r[fc("0x62")](x,fc("0x107")),l=t[fc("0x12d")][fc("0x103")](a?a[fc("0x69")]:s,c?c.end:x);t[fc("0x12d")][fc("0x109")]((e=>{this[fc("0x87")](l);const n=t[fc("0x12d")].schema[fc("0x62")](l[fc("0x69")]);o.is(fc("0x7a"))?e[fc("0x24")](n):o.setTo(n)})),e.stop()}),{priority:e.priorities[fc("0x11d")]+10}),t[fc("0x12d")].on("insertContent",((e,n)=>{const o=n[n[fc("0x6f")]-1];o&&o[fc("0x128")]||this[fc("0x172")]||this.trackChangesCommand[fc("0x117")]&&(t[fc("0x12d")][fc("0x109")]((()=>{let o=t[fc("0x12d")][fc("0xa6")](n[0],n[1],n[2],{forceDefaultExecution:!0});if(!o)return;e.return=o.clone();const i=o[fc("0x2")][fc("0xb1")],r=t.model[fc("0x9c")];i&&r[fc("0x8d")](i)&&!r.isObject(i)&&(o=t[fc("0x12d")][fc("0x103")](o[fc("0x69")],t[fc("0x12d")][fc("0xe2")](i,"end"))),this[fc("0x26")](o)})),e[fc("0x175")]())}),{priority:"high"}),this.editor[fc("0x167")].add(fc("0x158"),this[fc("0xc3")]),this[fc("0x13c")]("trackChanges");const i=new p(t,this[fc("0x16d")]);t[fc("0x167")][fc("0x7f")]("acceptSuggestion",i),this[fc("0x13c")](fc("0xf3"));const r=new y(t,this[fc("0x16d")]);t[fc("0x167")][fc("0x7f")](fc("0x56"),r),this[fc("0x13c")](fc("0x56")),t[fc("0x167")][fc("0x7f")](fc("0x131"),new F(t,i,this[fc("0x16d")])),this.enableCommand(fc("0x131")),t[fc("0x167")].add("discardAllSuggestions",new F(t,r,this[fc("0x16d")])),this[fc("0x13c")](fc("0xfd")),t[fc("0x167")].add(fc("0x133"),new j(t,i,this[fc("0x16d")])),this.enableCommand(fc("0x133")),t.commands.add("discardSelectedSuggestions",new j(t,r,this._suggestions)),this[fc("0x13c")](fc("0x3f"));const s=t[fc("0x75")][fc("0xd5")](fc("0xb7"));this[fc("0x5f")](s,fc("0x46"),((t,{threadId:e})=>{const n=this[fc("0x16d")][fc("0xd5")](e);n&&n.commentThread&&1===n[fc("0x40")][fc("0x6f")]&&this[fc("0xec")](e,{hasComments:!0})}),{priority:fc("0x65")}),this[fc("0x5f")](s,"removeComment",((t,{threadId:e})=>{const n=this[fc("0x16d")][fc("0xd5")](e);n&&n[fc("0x40")]&&!n[fc("0x40")].length&&this[fc("0xec")](e,{hasComments:!1})}),{priority:fc("0x65")})}set[fc("0x31")](t){if(this[fc("0x6a")])throw new e.CKEditorError("track-changes-adapter-already-set",this);this[fc("0x6a")]=t}get adapter(){return this._adapter}[fc("0x86")]({skipNotAttached:t=!1,toJSON:e=!1}={}){const n=[];for(const e of this._suggestions.values())t&&!e.isInContent||n.push(e);return e?n.map((t=>t[fc("0x147")]())):n}[fc("0x152")](t){const n=this[fc("0x16d")][fc("0xd5")](t);if(!n)throw new e.CKEditorError(fc("0x14"),this);return n}[fc("0x17")](t){return this[fc("0x16d")].has(t)}[fc("0x12f")](t){const{authorId:e,id:n,attributes:o}=t,[i,r]=t.type[fc("0x15b")](":"),s=this[fc("0x16d")].get(n)||this[fc("0x120")](i,r,n,e,o);if(this[fc("0x112")](s),this[fc("0xbc")](s,i,r||null,e),s.createdAt=t[fc("0x99")],s[fc("0xc2")]=!0,o&&o[fc("0x171")]){const t=o[fc("0x171")],e=this[fc("0xbb")](t[fc("0xe")]);s[fc("0xbe")]=t[fc("0x99")],s[fc("0x71")]=e,s.isExternal=!0}else s[fc("0xbe")]=t[fc("0x99")];switch(t[fc("0x16")]&&(s[fc("0x16")]=t[fc("0x16")]),t[fc("0xe5")]&&(s[fc("0xe5")]=t[fc("0xe5")]),this._adapter&&this[fc("0x6a")][fc("0x13a")]||(s[fc("0xe8")]=!0),this[fc("0x111")][fc("0xd5")](s)){case fc("0xb"):this[fc("0x111")][fc("0x12e")](s,fc("0x54"));break;case fc("0xaf"):s[fc("0x79")]?(this._refreshSuggestionsChain(new Set([s])),this._joinWithAdjacentSuggestions(new Set([s])),this._suggestionState[fc("0x12e")](s,fc("0x150")),this[fc("0x8e")](fc("0x3e"),s)):this[fc("0x111")][fc("0x12e")](s,"removed")}return s}acceptSuggestion(t){this[fc("0x128")]((()=>{this[fc("0xa9")][fc("0x12d")][fc("0x109")]((()=>{for(const e of t[fc("0xc0")]())e.accept()}))}))}discardSuggestion(t){this[fc("0x128")]((()=>{this[fc("0xa9")][fc("0x12d")].change((()=>{for(const e of t[fc("0xc0")]())e[fc("0x92")]()}))}))}[fc("0x13c")](t,n){const o=this[fc("0xa9")][fc("0x167")][fc("0xd5")](t);if(!o)throw new e.CKEditorError("track-changes-command-not-found",this,{commandName:t});if(this._enabledCommands[fc("0x3b")](o))throw new e.CKEditorError("track-changes-enable-command-twice",this,{commandName:t});this[fc("0x104")].add(o),n&&o.on(fc("0xf2"),((t,e)=>{this[fc("0xc3")].value&&(this[fc("0x172")]||(e.length>0&&e[e[fc("0x6f")]-1]&&e[e[fc("0x6f")]-1].forceDefaultExecution?e[fc("0x127")]():(t[fc("0x53")]=n(((...t)=>o[fc("0xf2")](...t,{forceDefaultExecution:!0})),...e),t[fc("0x175")]())))}),{priority:fc("0x110")})}[fc("0x128")](t){let n,o;const i=this[fc("0x172")];this[fc("0x172")]=!0;try{n=t()}catch(t){o=t}return i||(this._isForcedDefaultExecutionBlock=!1),o&&e.CKEditorError.rethrowUnexpectedError(o,this),n}[fc("0x26")](t,n=null,o={}){if(t.isCollapsed)return null;const i=this[fc("0xa9")][fc("0x75")][fc("0xd5")]("Users").me;for(const{suggestion:e,meta:i}of this._findSuggestions(t,fc("0xc4")))if(i[fc("0xb2")]){if(!i.isNextTo){if(i[fc("0x13b")]){if(!this[fc("0x8a")]||!Ic(e,o))continue;return e}if(Ic(e,o))return e;this[fc("0xd4")](e,t.start,t[fc("0x2")]);break}if(n==e[fc("0x155")]&&Ic(e,o)){const n=e[fc("0x43")]();return n[fc("0x69")][fc("0x28")](t[fc("0x2")])?this._setSuggestionRange(e,this[fc("0x73")][fc("0x103")](t[fc("0x69")],n[fc("0x2")])):this[fc("0x60")](e,this[fc("0x73")].createRange(n[fc("0x69")],t[fc("0x2")])),e}}const r=(0,e.uid)(),s=i.id,x=n?fc("0x13d")+n:"insertion",a=this._setSuggestionData({id:r,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x177")](x,r,s,t),a}[fc("0x11a")](t,n="multi",o={}){const i=this.editor.plugins[fc("0xd5")](fc("0x15")).me,r=this._suggestionFactory[fc("0xd7")]("insertion",n,"join");for(const e of this[fc("0x86")]())if(e[fc("0x71")].id==i.id&&fc("0xc4")==e.type&&e.subType==n&&Ic(e,o)&&(r(e[fc("0x94")](),t)||r(t,e[fc("0x94")]()))){for(const n of t)e[fc("0x9e")](n);return e}for(const{suggestion:e,meta:n}of this[fc("0xd8")](t,fc("0xc4"))){if(!n[fc("0xb2")])continue;if(!this[fc("0x8a")]&&n[fc("0x13b")])continue;if(!Ic(e,o))continue;let i=!0;for(const n of e.getRanges())for(const e of t)if(!n[fc("0x14a")](e)){i=!1;break}if(i)return e}const s=(0,e.uid)(),x=i.id,a=fc("0x13d")+n,c=this[fc("0x36")]({id:s,type:a,createdAt:new Date,authorId:x,attributes:o});for(const e of t)this[fc("0x177")](a,s,x,e,Jo[fc("0x136")]());return c}[fc("0x1f")](t,n,o=null,i={}){if(o=o||Tc(n),t[fc("0xa0")])return null;if("never"===this[fc("0x50")]){const e=this[fc("0x10c")].getSuggestionCallback(fc("0x162"),o,fc("0xe0"));return this[fc("0x128")]((()=>e([t],n,i))),null}const r=this[fc("0xa9")].plugins[fc("0xd5")](fc("0x15")).me,s=[];if(fc("0xd1")!==this[fc("0x50")])for(const{suggestion:e,meta:n}of this[fc("0xd8")](t,fc("0xc4")))n[fc("0xb2")]&&!n.isInsideObject&&s.push(...e[fc("0x94")]());const x=function(t,e){const n=[];for(const o of e){const e=t[fc("0xc8")](o);e&&n.push(e)}return n}(t,s),a=function(t,e){const n=[t];for(const t of e){let e=0;for(;e<n[fc("0x6f")];){const o=n[e].getDifference(t);n[fc("0x2c")](e,1,...o),e+=o.length}}return n}(t,s);x[fc("0x6f")]&&this._model[fc("0x109")]((()=>{for(const t of x){const e=this[fc("0x10c")][fc("0xd7")](fc("0x162"),o,fc("0xe0"));this[fc("0x128")]((()=>e([t],n,i)))}}));for(const t of a){let s=null,x=t.start,a=t[fc("0x2")];for(const{suggestion:e,meta:n}of this[fc("0xd8")](t,fc("0x162"))){if(!n.isOwn)continue;if(e[fc("0x155")]!=o)continue;if(!Ic(e,i))continue;const r=e.getFirstRange();if(r.containsRange(t,!0))return null;x=x.isBefore(r.start)?x:r[fc("0x69")],a=a[fc("0xf6")](r[fc("0x2")])?a:r[fc("0x2")],s?r[fc("0x69")].isBefore(s[fc("0x43")]()[fc("0x69")])?(s[fc("0x6d")](),s=e):e[fc("0x6d")]():s=e}const c=this._model.createRange(x,a);if(s)this[fc("0x60")](s,c);else{const t=(0,e.uid)(),s=r.id;this[fc("0x36")]({id:t,type:fc("0x21")+o,data:n,createdAt:new Date,authorId:s,attributes:i}),this[fc("0x177")](fc("0x21")+o,t,s,c)}}return null}[fc("0x145")](t,n,o=[],i=null,r={}){n.formatGroupId||(n[fc("0x161")]=n[fc("0x1")]),n[fc("0x98")]=t.is(fc("0xdd")),i=i||Tc(n);const s=o[fc("0x143")]((t=>Cc(t,this[fc("0x73")]))),x=t.is(fc("0xdd"))?t:Cc(t,this._model);if("never"===this[fc("0x50")]){const t=this._suggestionFactory[fc("0xd7")]("formatBlock",i,fc("0xe0"));return this[fc("0x128")]((()=>t([x],n,r))),null}s[fc("0x91")](x);let a=!0;for(const t of s)if(!this[fc("0x1c")](t)){a=!1;break}if(a&&"always"!==this._trackFormatChanges){const t=this[fc("0x10c")][fc("0xd7")](fc("0x13e"),i,fc("0xe0"));return this[fc("0x128")]((()=>t([x],n,r))),null}let c=null,l=x[fc("0x69")],u=x[fc("0x2")];for(const{suggestion:t,meta:e}of this[fc("0xd8")](x,fc("0x13e"))){if(!e[fc("0xb2")])continue;if(e.isNextTo||e[fc("0x13b")]||e[fc("0x80")])continue;if(t.data[fc("0x161")]!=n[fc("0x161")])continue;if(!Ic(t,r))continue;const o=t.getFirstRange();if(t.subType==i){if(o.containsRange(x,!0))return null;l=l.isBefore(o[fc("0x69")])?l:o[fc("0x69")],u=u[fc("0xf6")](o[fc("0x2")])?u:o.end,c?o[fc("0x69")].isBefore(c[fc("0x43")]()[fc("0x69")])?(c[fc("0x6d")](),c=t):t[fc("0x6d")]():c=t}else{const e=x.getIntersection(o);this._cutOutSuggestionMarker(t,e)}}const d=this[fc("0xa9")][fc("0x75")].get(fc("0x15")).me,g=(0,e.uid)(),f=d.id;if(c)return this._setSuggestionRange(c,this[fc("0x73")][fc("0x103")](l,u)),c;{const t=this[fc("0x36")]({id:g,type:fc("0x166")+i,data:n,createdAt:new Date,authorId:f,attributes:r});return this[fc("0x177")](fc("0x166")+i,g,f,this._model[fc("0x103")](l,u)),t}}markMultiRangeBlockFormat(t,n,o=[],i=null,r={}){n[fc("0x161")]||(n.formatGroupId=n.commandName);const s=t[0];n.multipleBlocks=s.is(fc("0xdd")),i=i||Tc(n);const x=o[fc("0x143")]((t=>Cc(t,this[fc("0x73")]))),a=s.is(fc("0xdd"))?t:t.map((t=>Cc(t,this[fc("0x73")])));if(fc("0xde")===this[fc("0x50")]){const t=this[fc("0x10c")][fc("0xd7")](fc("0x13e"),i,fc("0xe0"));return this[fc("0x128")]((()=>t(a,n,r))),null}x[fc("0x91")](...a);let c=!0;for(const t of x)if(!this[fc("0x1c")](t)){c=!1;break}if(c&&"always"!==this._trackFormatChanges){const t=this[fc("0x10c")].getSuggestionCallback(fc("0x13e"),i,fc("0xe0"));return this[fc("0x128")]((()=>t(a,n,r))),null}const l=this[fc("0xa9")][fc("0x75")][fc("0xd5")](fc("0x15")).me;for(const t of this[fc("0x86")]()){if(t[fc("0x71")].id!=l.id)continue;if(fc("0x13e")!=t.type||t[fc("0x16")][fc("0x161")]!=n[fc("0x161")])continue;if(!Ic(t,r))continue;const e=t.subType==i;for(let n=0;n<a[fc("0x6f")];n++){const o=a[n];for(const i of t[fc("0x101")]()){const r=i[fc("0x138")]();if(o.isEqual(r)){e?(a[fc("0x2c")](n,1),n--):t[fc("0xb9")](i.name);break}}}}if(0==a.length)return null;const u=this[fc("0x10c")].getSuggestionCallback(fc("0x13e"),i,"join");for(const t of this[fc("0x86")]())if(t.author.id==l.id&&fc("0x13e")==t[fc("0xff")]&&t[fc("0x16")].formatGroupId==n.formatGroupId&&t.subType==i&&Ic(t,r)&&(u(t[fc("0x94")](),a)||u(a,t.getRanges()))){for(const e of a)t[fc("0x9e")](e);return t}const d=(0,e.uid)(),g=l.id,f="formatBlock:"+i,m=this[fc("0x36")]({id:d,type:f,data:n,createdAt:new Date,authorId:g,attributes:r});for(const t of a)this[fc("0x177")](f,d,g,t,Jo[fc("0x136")]());return m}[fc("0x87")](t,n=null,o={}){if(t[fc("0xa0")])return null;const i=this.editor[fc("0x75")][fc("0xd5")](fc("0x15")).me,r=new s.LiveRange(t[fc("0x69")],t[fc("0x2")]);for(const{suggestion:t,meta:e}of this[fc("0xd8")](r,fc("0xc4")))if(e.isOwn&&!e.isNextTo)if(t[fc("0x74")]){const e=t.getRanges().filter((t=>fc("0xa5")!=t.root[fc("0xaa")]));if(e[fc("0x163")]((t=>r[fc("0x14a")](t,!0)))&&t[fc("0x92")](),e[fc("0x6c")]((t=>t[fc("0x14a")](r,!0)))){const t=this[fc("0x10c")][fc("0xd7")](fc("0x16e"),n,fc("0xe0"));return this[fc("0x128")]((()=>t([r],null,o))),null}}else{const e=r[fc("0xc8")](t[fc("0x43")]());null!==e&&t[fc("0x15e")]([e],null,o)}if(r.detach(),r.isCollapsed||fc("0xa5")==r[fc("0x83")].rootName)return null;let x=null,a=r.start,c=r[fc("0x2")];const l=this[fc("0xd8")](r,fc("0x16e"));for(const{suggestion:t,meta:e}of l){const n=this[fc("0x73")][fc("0x103")](a,c);if(e.isOwn&&(this._mergeNestedSuggestions||!e.containsRangeInObject&&!e[fc("0x80")]))if(t.isMultiRange){if(!Ic(t,o))continue;let e=!0;for(const o of t[fc("0x94")]()){if(o.containsRange(n,!0))return t;n.containsRange(o)||(e=!1)}e&&t.discard()}else{const e=t[fc("0x43")]();if(e[fc("0x14a")](n,!0))return t;if(!Ic(t,o)){n[fc("0x14a")](e)?t[fc("0x6d")]():e.containsPosition(a)?a=e[fc("0x2")]:e[fc("0x58")](c)&&(c=e[fc("0x69")]);continue}a=a[fc("0xba")](e[fc("0x69")])?a:e[fc("0x69")],c=c[fc("0xf6")](e[fc("0x2")])?c:e[fc("0x2")],o=Object.assign({},t[fc("0xe5")]),x?e[fc("0x69")][fc("0xba")](x[fc("0x43")]()[fc("0x69")])?(x[fc("0x6d")](),x=t):t[fc("0x6d")]():x=t}}if(x)return this[fc("0x60")](x,this[fc("0x73")][fc("0x103")](a,c)),x;{const t=(0,e.uid)(),r=this[fc("0x73")][fc("0x103")](a,c),s=i.id,x=n?fc("0xeb")+n:"deletion",l=this[fc("0x36")]({id:t,type:x,createdAt:new Date,authorId:s,attributes:o});return this[fc("0x177")](x,t,s,r),l}}markMultiRangeDeletion(t,n=fc("0x7e"),o={}){const i=this.editor.plugins[fc("0xd5")](fc("0x15")).me,r=t[fc("0x143")]((t=>new s.LiveRange(t.start,t[fc("0x2")]))),x=new Set;for(const{suggestion:t,meta:e}of this[fc("0xd8")](r,fc("0xc4")))e[fc("0xb2")]&&!e[fc("0x2f")]&&x[fc("0x7f")](t);for(const e of x)if(e[fc("0x74")]){const i=e[fc("0x94")]();if((!e[fc("0xe5")]||!e[fc("0xe5")].skipNestingCheck)&&i[fc("0x163")]((t=>r[fc("0x6c")]((e=>e[fc("0x14a")](t,!0)))))&&e[fc("0x92")](),r[fc("0x163")]((t=>i[fc("0x6c")]((e=>e[fc("0x14a")](t,!0)))))){const e=this._suggestionFactory[fc("0xd7")](fc("0x16e"),n,fc("0xe0"));return this[fc("0x128")]((()=>e(t,null,o))),null}}else{const t=e[fc("0x43")]();if(r[fc("0x6c")]((e=>e[fc("0x14a")](t,!0)))&&e[fc("0x92")](),r[fc("0x163")]((e=>t.containsRange(e,!0)))){const t=this[fc("0x10c")].getSuggestionCallback("deletion",n,fc("0xe0"));return this[fc("0x128")]((()=>t(r,null,o))),null}}const a=this._suggestionFactory[fc("0xd7")](fc("0x16e"),n,"join");let c=null;for(const t of this[fc("0x86")]())if(t[fc("0x71")].id==i.id&&t[fc("0x79")]&&"deletion"==t[fc("0xff")]&&t[fc("0x155")]==n&&Ic(t,o)&&(a(t[fc("0x94")](),r)||a(r,t[fc("0x94")]())))if(c){if(t[fc("0x40")]&&t[fc("0x40")].length)continue;for(const e of t[fc("0x94")]())c[fc("0x139")](e)||c[fc("0x9e")](e);t[fc("0x6d")]()}else{c=t;for(const e of r)t.isIntersectingWithRange(e)||t.addRange(e)}if(c)return c;x[fc("0x1a")]();for(const{suggestion:t,meta:e}of this[fc("0xd8")](r,fc("0x16e")))e.isOwn&&(this._mergeNestedSuggestions||!e[fc("0x13b")]&&!e.isInsideObject)&&Ic(t,o)&&x[fc("0x7f")](t);for(const t of x){const e=t[fc("0x94")]();if((!o||!o[fc("0xb3")])&&r[fc("0x163")]((t=>e[fc("0x6c")]((e=>e[fc("0x14a")](t,!0))))))return t;(!t.attributes||!t[fc("0xe5")][fc("0xb3")])&&e[fc("0x163")]((t=>r.some((e=>e[fc("0x14a")](t,!0)))))&&t.discard()}const l=(0,e.uid)(),u=i.id,d=fc("0xeb")+n,g=this[fc("0x36")]({id:l,type:d,createdAt:new Date,authorId:u,attributes:o});for(const t of r)t[fc("0x125")](),t[fc("0xa0")]||fc("0xa5")==t[fc("0x83")][fc("0xaa")]||this[fc("0x177")](d,l,u,t,Jo[fc("0x136")]());return g}[fc("0xad")](t,n,o,i,r){if(t.isCollapsed)return[];if(fc("0xde")===this[fc("0x50")])return[];const s=this[fc("0xa9")][fc("0x75")][fc("0xd5")](fc("0x15")).me.id,x=Array.from(this[fc("0x16d")][fc("0x160")]()).filter((e=>fc("0xbd")==e.type&&e.data[fc("0x18")]==n&&e.isIntersectingWithRange(t)));if(fc("0x153")===this._trackFormatChanges){const e=this[fc("0xd8")](t,fc("0xc4"))[fc("0x3c")]((({meta:t})=>t[fc("0xb2")]&&!t.isInsideObject&&!t[fc("0x2f")]))[fc("0x143")]((({suggestion:t})=>t));x[fc("0xca")](...e)}const a=new Map([[t,o]]);for(const t of x){const e="attribute"==t[fc("0xff")]?t[fc("0x16")][fc("0x9b")]:void 0,n=t.getFirstRange(),r=Array[fc("0xe1")](a[fc("0x81")]()).find((t=>t[fc("0x140")](n)));r&&(a[fc("0x14f")](r),r[fc("0x6")](n)[fc("0xc7")]((t=>{a.set(t,o)})),fc("0xc4")!=t[fc("0xff")]&&e!=i&&a[fc("0x12e")](r[fc("0xc8")](n),e))}const c=[];for(const[t,o]of a){const x=(0,e.uid)(),a={key:n,oldValue:o,newValue:i};n[fc("0x6f")]>37&&console[fc("0x159")](fc("0x3a"),{key:n});const l=(fc("0x10a")+(n+"|")+Tc({newValue:i}))[fc("0x130")](0,60),u=this[fc("0x36")]({id:x,type:l,data:a,createdAt:new Date,authorId:s,attributes:r});c[fc("0x91")](u),this._addSuggestionMarker(l,x,s,t)}return c}[fc("0x33")](t){this[fc("0xa7")][fc("0x7f")](t)}[fc("0x4d")](t){this[fc("0xe4")].add(t)}[fc("0xa8")](t,e=[],n=[]){this.enableCommand(t,((t,...e)=>{this[fc("0x164")]((()=>{t(...e)}))}));for(const t of e)this[fc("0x4d")](t);for(const t of n)this[fc("0x33")](t)}[fc("0x60")](t,e){const n=t[fc("0x6e")]();this._model[fc("0x109")]((t=>{t[fc("0x52")](n,{range:e})}))}[fc("0x112")](t){const e=t.id,n=this[fc("0xa9")][fc("0x16f")][fc("0xd5")](fc("0x67"));this[fc("0xef")][fc("0x114")](e)||this[fc("0xef")][fc("0x151")]({channelId:n,threadId:e,isResolvable:!1,isSubmitted:!0});const o=this[fc("0xef")][fc("0xb6")](e);o[fc("0x89")](fc("0x15d")),o[fc("0x15d")]=!1,t[fc("0x40")]=o}[fc("0xbc")](t,n,o,i){if(t[fc("0xff")]!=n||t[fc("0x155")]!=o||t[fc("0x10d")].id!=i)throw this[fc("0xa9")].enableReadOnlyMode(fc("0x5d")),new e.CKEditorError(fc("0x5d"),this)}_cutOutSuggestionMarker(t,n){const o=t[fc("0x43")]();if(n.isEqual(o))t[fc("0x6d")]();else if(o[fc("0x14a")](n)){const i=this[fc("0x73")][fc("0xe2")](n[fc("0x69")][fc("0xb1")],fc("0x2"));this[fc("0x60")](t,this[fc("0x73")][fc("0x103")](o[fc("0x69")],i));const r=(0,e.uid)(),s=t[fc("0x10d")].id,x=t[fc("0xff")]+":"+t[fc("0x155")];this[fc("0x36")]({id:r,type:x,createdAt:new Date,authorId:s,data:t.data,attributes:t[fc("0xe5")]});const a=this._model[fc("0xe2")](n[fc("0x2")].parent,fc("0xa")),c=this[fc("0x73")][fc("0x103")](a,o[fc("0x2")]);this[fc("0x177")](x,r,s,c)}else if(o.containsPosition(n[fc("0x69")])){const e=this._model[fc("0xe2")](n.start[fc("0xb1")],fc("0x2"));this[fc("0x60")](t,this._model[fc("0x103")](o.start,e))}else{const e=this._model[fc("0xe2")](n[fc("0x2")][fc("0xdb")],fc("0xa"));this[fc("0x60")](t,this[fc("0x73")][fc("0x103")](e,o[fc("0x2")]))}}[fc("0x1c")](t){for(const{suggestion:e,meta:n}of this[fc("0xd8")](t,fc("0xc4"))){if(!n[fc("0xb2")])continue;const o=e[fc("0x94")]();for(const e of o)if(!t.getDifference(e)[fc("0x6f")])return!0}return!1}[fc("0x88")](t){const n=this.editor[fc("0x75")][fc("0xd5")](fc("0x15"))[fc("0xf1")](t);if(!n)throw new e.CKEditorError(fc("0x35"),this);return n}[fc("0xbb")](t){const e=this[fc("0xa9")].plugins[fc("0xd5")](fc("0x15")),n=(0,r.hashObject)(fc("0x14e")+t);return e[fc("0xf1")](n)||e[fc("0x51")]({id:n,name:t})}[fc("0x120")](t,e,n,o,i){const r=this[fc("0x88")](o),s=this._suggestionFactory.buildSuggestion(t,e,n,r,i,(t=>this._updateSuggestionData(n,{attributes:t})));return this.listenTo(s,"accept",(()=>{this[fc("0xec")](n,{state:fc("0x12b")})}),{priority:fc("0x110")}),this.listenTo(s,fc("0x92"),(()=>{this[fc("0xec")](n,{state:fc("0xae")})}),{priority:fc("0x110")}),this[fc("0x16d")].set(n,s),this[fc("0x111")][fc("0x12e")](s,fc("0xb")),s}[fc("0x93")](t){const e=t[fc("0x15b")](":");return{group:e[0],type:e[1],subType:e[fc("0x6f")]>=5?e[2]:null,id:e.length<5?e[2]:e[3],authorId:e[fc("0x6f")]<5?e[3]:e[4],markerCount:6==e.length?e[5]:null}}[fc("0xd4")](t,n,o){const i=t[fc("0x43")](),r=i.start,s=i[fc("0x2")];this[fc("0x60")](t,this[fc("0x73")][fc("0x103")](r,n));const x=(0,e.uid)(),a=t[fc("0x10d")].id,c=t[fc("0xff")]+(t[fc("0x155")]?":"+t[fc("0x155")]:"");this[fc("0x36")]({id:x,type:c,createdAt:new Date,authorId:a,originalSuggestionId:t.id,attributes:t[fc("0xe5")],data:t.data});const l=this[fc("0x123")](t);(fc("0x13e")==t.type||l&&this[fc("0xdc")](l))&&(o=this[fc("0x73")][fc("0x16c")](o.parent)),this[fc("0x177")](c,x,a,this[fc("0x73")][fc("0x103")](o,s))}[fc("0xd8")](t,e=null){const n=[],o=this[fc("0xa9")][fc("0x75")][fc("0xd5")]("Users").me;Array[fc("0x44")](t)||(t=[t]);for(const i of this[fc("0x86")]()){if(!i[fc("0x79")])continue;if(e&&i.type!=e)continue;let r=!1;for(const e of i[fc("0x94")]()){for(const s of t){const t=s[fc("0x69")][fc("0x28")](e.end)||s.end[fc("0x28")](e[fc("0x69")]);if(t||s[fc("0xc8")](e)){const x=s[fc("0x14a")](e)&&bc(this[fc("0x73")][fc("0x9c")],e[fc("0x69")],s),a=e.containsRange(s)&&bc(this[fc("0x73")].schema,s[fc("0x69")],e);n[fc("0x91")]({suggestion:i,meta:{isOwn:o==i[fc("0x71")],isNextTo:t,isInsideObject:x,containsRangeInObject:a}}),r=!0;break}}if(r)break}}return n}[fc("0x177")](t,e,n,o,i){this._model[fc("0x109")]((r=>{let s=fc("0xd2")+t+":"+e+":"+n;i&&(s=s+":"+i),r[fc("0x7c")](s,{range:o,usingOperation:!0,affectsData:!0})}))}_removeSuggestion(t){const e=t[fc("0x129")],n=t[fc("0x2e")];t[fc("0x129")]=null,t.next=null,null!=e&&(e[fc("0x2e")]=n),null!=n&&(n[fc("0x129")]=e),fc("0x150")==this[fc("0x111")][fc("0xd5")](t)&&(this[fc("0x111")][fc("0x12e")](t,fc("0x118")),this[fc("0x8e")](fc("0x72"),t,e,n))}_setSuggestionData(t){const n=t.id,o=this[fc("0x12f")](t);if(this[fc("0x6a")]&&this[fc("0x6a")].addSuggestion){const i=this[fc("0xa9")][fc("0x75")][fc("0xd5")]("PendingActions"),r=o[fc("0x48")],s=o[fc("0x155")]?o.type+":"+o.subType:o[fc("0xff")],x=this.editor[fc("0xc5")],a=i[fc("0x7f")](Qo(x,fc("0x5e"))),c={id:n,type:s,hasComments:r,data:t[fc("0x16")]||null,originalSuggestionId:t[fc("0x27")]||null,attributes:o[fc("0xe5")]};this[fc("0x6a")].addSuggestion(c)[fc("0x14b")]((t=>{o._saved=!0,i[fc("0x4a")](a),t&&t[fc("0x99")]&&(this[fc("0x16d")].get(n)[fc("0x99")]=t.createdAt)}))[fc("0x15a")]((t=>{throw(0,e.logWarning)("error-saving-suggestion-data-suggestion-discarded"),this[fc("0xa9")].model[fc("0x1b")]({isUndoable:!1},(()=>{o[fc("0x92")]()})),o[fc("0x154")](),this._suggestions[fc("0x14f")](o.id),this[fc("0x111")].delete(o),t}))}return o}[fc("0xdc")](t){return this[fc("0xa7")][fc("0x3b")](t)}_getAttributeKeyFromSubType(t){return fc("0xbd")==t[fc("0xff")]&&t[fc("0x155")].split("|")[0]}_updateSuggestionData(t,e){const n=this[fc("0xa9")][fc("0x75")][fc("0xd5")]("PendingActions"),o=this[fc("0x152")](t);if(this[fc("0x6a")]&&this[fc("0x6a")][fc("0x8f")])if(o[fc("0xe8")]){const o=n[fc("0x7f")](Qo(this[fc("0xa9")].locale,fc("0x5e")));this[fc("0x6a")].updateSuggestion(t,e)[fc("0x14b")]((()=>{n[fc("0x4a")](o)}))}else o.on(fc("0xee"),(()=>{this[fc("0xec")](t,e)}))}[fc("0x2b")](t){if(!this._adapter||!this[fc("0x6a")][fc("0x152")])throw new e.CKEditorError("track-changes-adapter-missing-getsuggestion",this);return this[fc("0x6a")][fc("0x152")](t)}[fc("0xdf")](t){const{id:e,type:n,subType:o,authorId:i}=this[fc("0x93")](t),r=this[fc("0x16d")][fc("0xd5")](e)||this[fc("0x120")](n,o,e,i,{});switch(this._checkSuggestionCorrectness(r,n,o,i),this[fc("0x111")].get(r)){case fc("0xb"):this[fc("0x2b")](e).then((t=>{let n=Promise[fc("0x170")]();t[fc("0x48")]&&(n=this[fc("0xef")][fc("0x70")]({channelId:this.editor.config[fc("0xd5")](fc("0x67")),threadId:e})),n[fc("0x14b")]((()=>{this[fc("0x12f")](t)[fc("0xe8")]=!0}))})),this[fc("0x111")][fc("0x12e")](r,"markerReady");break;case fc("0x118"):this[fc("0xec")](e,{state:"open"});case"dataReady":this[fc("0x111")][fc("0x12e")](r,fc("0x150")),this.fire("suggestionLoaded",r);break;case fc("0x150"):this[fc("0x8e")](fc("0x32"),r)}return r[fc("0x11e")](t),r}[fc("0x55")](t){const e=Array[fc("0xe1")](t),n=e[fc("0x3c")]((t=>fc("0xbd")==t[fc("0xff")]));this[fc("0x19")](n);const o=e[fc("0x3c")]((t=>!t[fc("0x74")]&&fc("0xbd")!=t[fc("0xff")])),i=this.getSuggestions({skipNotAttached:!0}).filter((t=>!t.isMultiRange&&fc("0xbd")!=t[fc("0xff")])),r=i[fc("0x3c")]((e=>!t.has(e))),s=new Map(i[fc("0x143")]((t=>[t,this._suggestionFactory.getSuggestionCallback(t.type,t[fc("0x155")],fc("0x178"))]))),x=new Map(i[fc("0x143")]((t=>[t,t[fc("0x43")]()]))),a=new Set,c=new Set;for(let t=0;t<o[fc("0x6f")];t++)u(o[t],o,t+1);for(let t=0;t<o[fc("0x6f")];t++)u(o[t],r,0);const l=new Set;for(let t=0;t<o[fc("0x6f")];t++){const e=o[t];!c[fc("0x3b")](e)&&e[fc("0x129")]&&(l[fc("0x7f")](e[fc("0x129")]),e[fc("0x129")][fc("0x2e")]===e&&(e.previous[fc("0x2e")]=null),e.previous=null),!a[fc("0x3b")](e)&&e[fc("0x2e")]&&(l[fc("0x7f")](e[fc("0x2e")]),e.next[fc("0x129")]===e&&(e[fc("0x2e")].previous=null),e[fc("0x2e")]=null)}function u(t,e,n){for(let o=n;o<e.length;o++){const n=d(t,e[o]);n&&(n[0][fc("0x2e")]=n[1],n[1].previous=n[0],a[fc("0x7f")](n[0]),c[fc("0x7f")](n[1]))}}function d(t,e){if(t.author.id!==e[fc("0x71")].id)return null;const n=s[fc("0xd5")](t)(t,e,x[fc("0xd5")](t),x[fc("0xd5")](e));return n&&s[fc("0xd5")](e)(t,e,x.get(t),x[fc("0xd5")](e))?n[1].commentThread&&n[1][fc("0x40")][fc("0x6f")]?null:n:null}l[fc("0x12")]&&this[fc("0x55")](l)}[fc("0x19")](t){if(0==t.length)return;const e=this[fc("0x86")]({skipNotAttached:!0}).filter((t=>fc("0xbd")==t[fc("0xff")]&&t._isDataLoaded)),n=[],o=new Map;for(const t of e){const e=(0,r.hashObject)(t[fc("0xe5")]);o[fc("0x3b")](e)||(o[fc("0x12e")](e,n[fc("0x6f")]),n[fc("0x91")]([]));const i=o[fc("0xd5")](e);n[i][fc("0x91")](t)}!function(){n[fc("0x141")](((t,e)=>{const n=t[0][fc("0x99")],o=e[0].createdAt;return n==o?t[0].attributes[fc("0x9a")]<e[0][fc("0xe5")][fc("0x9a")]?-1:1:n<o?-1:1}));for(const t of n)t.sort(((t,e)=>t.id<e.id?-1:1))}();for(let t=0;t<n[fc("0x6f")];t++){if(0==n[t][fc("0x6f")])continue;const e=[];for(let o=t+1;o<n[fc("0x6f")];o++)0!=n[o][fc("0x6f")]&&i(n[t],n[o])&&e[fc("0x91")](o);for(const o of e)n[t]=n[t][fc("0xf0")](n[o]),n[o]=[]}for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x2e")]=t[e+1]||null;for(const t of n)for(let e=0;e<t.length;e++)t[e][fc("0x129")]=t[e-1]||null;function i(t,e){if(t[0][fc("0x71")]!==e[0][fc("0x71")])return!1;if(n=t[0],o=e[0],(n[fc("0x48")]||o[fc("0x48")])&&(n.hasComments&&o.hasComments||!(n[fc("0x48")]&&o.createdAt<n[fc("0x40")][fc("0xe9")][fc("0xd5")](0).createdAt||o[fc("0x48")]&&n[fc("0x99")]<o[fc("0x40")][fc("0xe9")].get(0)[fc("0x99")])))return!1;var n,o;const i=lc(t[0][fc("0xe5")],fc("0x9a")),r=lc(e[0][fc("0xe5")],fc("0x9a"));return!!Go(i,r)&&(!!t[fc("0x163")]((t=>e[fc("0x6c")]((e=>t[fc("0x43")]()[fc("0x28")](e[fc("0x43")]())))))&&e.every((e=>t[fc("0x6c")]((t=>e[fc("0x43")]()[fc("0x28")](t.getFirstRange()))))))}}[fc("0x78")](t){const e=Array.from(t),n=this[fc("0x86")]({skipNotAttached:!0}),o=n[fc("0x3c")]((e=>!t.has(e))),i=new Map(e[fc("0x143")]((t=>[t,this[fc("0x10c")][fc("0xd7")](t[fc("0xff")],t.subType,fc("0x64"))]))),r=new Map(n[fc("0x143")]((t=>[t,t[fc("0x94")]()])));for(let t=0;t<e.length;t++)if(s(this,e[t],e,t+1))return!0;for(let t=0;t<e[fc("0x6f")];t++)if(s(this,e[t],o,0))return!0;return!1;function s(t,e,n,o){for(let s=o;s<n[fc("0x6f")];s++){const o=n[s];if(o.type!==e[fc("0xff")]||o[fc("0x71")].id!==e[fc("0x71")].id||o[fc("0x155")]!==e[fc("0x155")])continue;if(!kc(e,o))continue;if(fc("0xbd")==e[fc("0xff")]&&e.data[fc("0x9b")]!=o[fc("0x16")].oldValue)continue;if(fc("0xbd")==e[fc("0xff")]&&t[fc("0xdc")](e[fc("0x16")][fc("0x18")]))continue;const x=i[fc("0xd5")](e),a=r[fc("0xd5")](e),c=r[fc("0xd5")](o),l=e[fc("0x40")]&&e[fc("0x40")][fc("0x6f")],u=o[fc("0x40")]&&o[fc("0x40")][fc("0x6f")];if(!l&&x(c,a))return t._joinSuggestions(o,e),r[fc("0x14f")](e),!0;if(!u&&x(a,c))return t[fc("0x132")](e,o),r[fc("0x14f")](o),!0}return!1}}[fc("0x132")](t,e){if(t[fc("0x74")])for(const n of e[fc("0x94")]())t[fc("0x9e")](n);else{const n=e[fc("0x43")]()[fc("0x2")];this[fc("0x60")](t,this._model.createRange(t[fc("0x43")]().start,n))}e[fc("0x6d")]()}[fc("0xd0")](t,e){const n=t[fc("0x10f")](fc("0x10"))||t[fc("0x10f")](fc("0xbd"))?"FORMATTING":t[fc("0xd6")]();return Qo(this[fc("0xa9")][fc("0xc5")],e+"_"+n+"_SUGGESTION_ANNOUNCEMENT")}_initAriaMarkerChangeAnnouncements(){const t=this[fc("0xa9")];(0,r.surroundingMarkersDetector)(this[fc("0x73")],(({left:e,entered:n})=>{const o=[];for(const t of e){const{group:e,type:n}=this[fc("0x93")](t.name);if(fc("0x59")===e){o.push(this[fc("0xd0")](n,fc("0x39")));break}}for(const t of n){const{group:e,type:n}=this[fc("0x93")](t[fc("0x135")]);if(fc("0x59")===e){o[fc("0x91")](this._getMarkerAnnouncementText(n,fc("0xea")));break}}o[fc("0x6f")]&&t.ui[fc("0x25")].announce(fc("0x158"),o[fc("0x64")](" "))}))}[fc("0x8")](t){if(null!==this[fc("0x134")])return!1;const e=this[fc("0xa9")],n=e[fc("0x12d")].document[fc("0x7b")].getChanges();if(0==n[fc("0x6f")])return!1;const o=[],i=n[fc("0x3c")]((t=>fc("0xbd")==t[fc("0xff")])),r=n[fc("0x3c")]((t=>fc("0x105")==t[fc("0xff")]&&"$text"!=t.name)),s=n[fc("0x3c")]((t=>"remove"==t[fc("0xff")]&&"$text"!=t[fc("0x135")]));for(const t of i)o[fc("0x91")]({key:t[fc("0x14d")],newValue:t[fc("0x116")],oldValue:t[fc("0x124")],range:(x=t[fc("0xdd")],null==x[fc("0x2")][fc("0xb1")]&&x[fc("0x2")][fc("0xdb")]==x.start[fc("0xf5")]?Cc(x[fc("0x69")][fc("0xf5")],e[fc("0x12d")]):x)});var x;for(const t of r){const n=s[fc("0x38")]((e=>e[fc("0x2a")].isEqual(t.position)));n&&o[fc("0x91")]({key:"$elementName",newValue:t.name,oldValue:n[fc("0x135")],range:e[fc("0x12d")][fc("0x30")](t[fc("0x2a")][fc("0xf5")])})}return 0!=o.length&&this._reduceExistingSuggestions(t,o)}_processAttributeSuggestions(t){let e=!1;const n=this.editor.model[fc("0x9f")][fc("0x7b")][fc("0x115")]()[fc("0x3c")]((t=>t[fc("0x16")][fc("0xf4")]&&t[fc("0x135")][fc("0x10f")](fc("0xcb"))));for(const o of n){const{subType:n,id:i}=this._splitMarkerName(o[fc("0x135")]),r=n.split("|")[0];for(const n of this[fc("0x86")]({skipNotAttached:!0}))n.id!=i&&fc("0xbd")==n.type&&n[fc("0x16")]&&n[fc("0x16")][fc("0x18")]==r&&n.getFirstRange()[fc("0x140")](o.data[fc("0xf4")])&&(this[fc("0x42")](n,o.data[fc("0xf4")],t),e=!0)}return e}[fc("0x164")](t){if(null!==this[fc("0x134")])return void t();const n=this.editor;this._recordAttributeSuggestionsFromVersion=n[fc("0x12d")].document.version,t();const o=new Map;for(const t of n[fc("0x12d")].document.history[fc("0xa2")](this[fc("0x134")]))if([fc("0x10e"),fc("0x4"),fc("0xf9"),fc("0x5a")][fc("0x12c")](t[fc("0xff")])){const e=t.batch,n=o[fc("0xd5")](e)||[];n.push(t),o.set(e,n)}this[fc("0x134")]=null;for(const[t,i]of o){const o=(0,e.uid)();n.model[fc("0x1b")](t,(t=>{const e=[];for(const t of i){let i,r,s,x;if(fc("0x10e")==t[fc("0xff")]){const e=t;i=Cc(e.position.nodeAfter,n[fc("0x12d")]),r=fc("0xf"),s=e[fc("0x9d")],x=e[fc("0x149")]}else{const e=t,o=this._isBlockAttribute(e[fc("0x18")]),a=this._inlineAttributeKeys[fc("0x3b")](e[fc("0x18")]);if(!o&&!a)continue;i=o?Cc(e[fc("0xdd")][fc("0x69")][fc("0xf5")],n[fc("0x12d")]):e[fc("0xdd")],r=e[fc("0x18")],s=fc("0xf9")==t[fc("0xff")]?void 0:e.newValue,x=e[fc("0x9b")]}this[fc("0xad")](i,r,x,s,{groupId:o}),e[fc("0x91")]({range:i,key:r,newValue:s,oldValue:x})}this[fc("0x15c")](t,e)}))}}[fc("0x15c")](t,e){if(0==e[fc("0x6f")])return!1;let n=!1;for(const o of e){const e=this[fc("0xd8")](o[fc("0xdd")],fc("0xbd"))[fc("0x3c")]((t=>!t[fc("0xac")][fc("0x2f")]))[fc("0x143")]((t=>t[fc("0x59")])),i=(0,r.hashObject)({newValue:o[fc("0xc9")]});e.filter((t=>{const[e,n]=t[fc("0x155")][fc("0x15b")]("|");return e==o[fc("0x18")]&&n!=i}))[fc("0xc7")]((e=>{this[fc("0x42")](e,o[fc("0xdd")],t),n=!0}))}return n}_reduceSuggestionAttributeRange(t,e,n){const o=t.getFirstRange()[fc("0x6")](e);0!==o[fc("0x6f")]?1!==o[fc("0x6f")]?this._breakSuggestionMarker(t,e[fc("0x69")],e[fc("0x2")]):this[fc("0x60")](t,o[0]):n.removeMarker(t.getFirstMarker())}}class pc{constructor(t){this[fc("0x113")]=t,this[fc("0x73")]=t[fc("0x12d")],this[fc("0xc6")]=new Map,this[fc("0x119")]=new Map,this._registerDefaultCallbacks()}[fc("0x84")](t,e,n,o,i,r){return new Jo(this[fc("0x73")],{type:t,subType:e,id:n,author:o,creator:o,attributes:i,onAttributesChange:r,onAccept:(...n)=>this[fc("0xd7")](t,e,fc("0xe0"))(...n),onDiscard:(...n)=>this[fc("0xd7")](t,e,fc("0x92"))(...n)})}registerCustomCallback(t,e,n,o){const i=t+":"+e+":"+n;this[fc("0xc6")][fc("0x12e")](i,o)}[fc("0xd7")](t,e,n){const o=t+":"+e+":"+n;return this[fc("0xc6")][fc("0xd5")](o)||this._defaultCallbacks[fc("0xd5")](t+":"+n)}[fc("0xed")](){const t=()=>!1,e=t=>{t.sort(((t,e)=>t[fc("0x69")][fc("0xba")](e[fc("0x69")])?1:-1)),this._model.change((e=>{for(const n of t){let t;t=n[fc("0x2")].isAtEnd&&n[fc("0x2")][fc("0xdb")]==n[fc("0x69")][fc("0xf5")]?e[fc("0x7d")](n[fc("0x69")][fc("0xf5")],"on"):e[fc("0x7d")](n),this[fc("0x73")][fc("0xd")](t,{forceDefaultExecution:!0,doNotAutoparagraph:!0})}}))},n=(t,e)=>{e&&this[fc("0x73")][fc("0x109")]((n=>{const{commandName:o,commandParams:i=[]}=e,r=t[fc("0x143")]((t=>(Ec(t)&&(t=this[fc("0x73")][fc("0x103")](t.end)),t)))[fc("0x3c")]((t=>fc("0xa5")!==t[fc("0x83")].rootName));if(r.length<1)return;const x=Array.from(this._model[fc("0x9f")].selection[fc("0x94")]())[fc("0x143")]((t=>s.LiveRange[fc("0x165")](t)));n[fc("0x24")](r);for(const t of this[fc("0x113")][fc("0x167")][fc("0x167")]())t[fc("0x5")]();i[fc("0x91")]({forceDefaultExecution:!0}),this[fc("0x113")].execute(o,...i);const a=x.filter((t=>fc("0xa5")!=t.root.rootName));a[fc("0x6f")]>0&&n[fc("0x24")](a);for(const t of x)t.detach()}))},o=(t,e)=>1==t.length&&1==e[fc("0x6f")]&&t[0][fc("0x2")][fc("0x28")](e[0][fc("0x69")]),i=(t,e,n,o)=>Ac(t,e,n,o,this._model)?[t,e]:Ac(e,t,o,n,this[fc("0x73")])?[e,t]:null;this._defaultCallbacks[fc("0x12e")]("insertion:accept",t),this._defaultCallbacks[fc("0x12e")](fc("0xbf"),e),this[fc("0x119")][fc("0x12e")]("insertion:join",o),this[fc("0x119")].set(fc("0xa3"),i),this._defaultCallbacks[fc("0x12e")]("deletion:accept",e),this[fc("0x119")][fc("0x12e")](fc("0x5c"),t),this._defaultCallbacks.set("deletion:join",o),this[fc("0x119")][fc("0x12e")](fc("0x174"),i),this[fc("0x119")][fc("0x12e")](fc("0x157"),n),this[fc("0x119")][fc("0x12e")](fc("0x95"),t),this[fc("0x119")][fc("0x12e")](fc("0x45"),o),this[fc("0x119")][fc("0x12e")](fc("0x4c"),t),this._defaultCallbacks[fc("0x12e")]("formatBlock:accept",n),this._defaultCallbacks[fc("0x12e")](fc("0x16a"),t),this[fc("0x119")].set("formatBlock:join",o),this._defaultCallbacks.set(fc("0xc"),t),this[fc("0x119")].set(fc("0xcf"),t),this[fc("0x119")].set(fc("0x4f"),((t,e)=>{if(!e)return;const n=this._editor.plugins[fc("0xd5")](hc);this[fc("0x73")][fc("0x109")]((o=>{if(fc("0xf")==e.key)for(const n of t){const t=n.start.nodeAfter,i=e[fc("0x9b")];o[fc("0x10e")](t,i)}else if(n[fc("0xdc")](e[fc("0x18")]))for(const n of t)void 0!==e[fc("0x9b")]?o[fc("0xf7")](e[fc("0x18")],e[fc("0x9b")],n.start[fc("0xf5")]):o[fc("0xf9")](e.key,n[fc("0x69")].nodeAfter);else for(const n of t)e[fc("0x9b")]?o[fc("0xf7")](e.key,e[fc("0x9b")],n):o[fc("0xf9")](e[fc("0x18")],n)}))})),this[fc("0x119")][fc("0x12e")](fc("0xd3"),o)}}function bc(t,e,n){for(const o of e[fc("0xdb")].getAncestors({includeSelf:!0,parentFirst:!0})){if(o[fc("0x83")]==o)return!1;if(!n.containsItem(o))return!1;if(t[fc("0x156")](o)||t.isLimit(o))return!0}return!1}function Ec(t){return t[fc("0x2")][fc("0xdb")]==t[fc("0x69")].nodeAfter&&t[fc("0x2")][fc("0xb4")]}function _c(t,e,n,o){const i=t=>!t.item.is(fc("0x23"))&&!o[fc("0x156")](t.item),r=t[fc("0x69")][fc("0x82")](i),s=t.end.getLastMatchingPosition(i,{direction:fc("0x107")});return!(t.start[fc("0x28")](r)&&t[fc("0x2")][fc("0x28")](s)||(r[fc("0xba")](s)?n.updateMarker(e,{range:n[fc("0x103")](r,s)}):n.removeMarker(e),0))}function Tc(t){return(0,r.hashObject)(t)}function yc(t){const e=t.start[fc("0xf5")];return e&&e.is(fc("0x20"))}function Cc(t,e){const n=e[fc("0x9c")][fc("0x156")](t)||e[fc("0x9c")].isSelectable(t);return e.createRange(e[fc("0xe2")](t,fc("0x144")),n?e.createPositionAfter(t):e[fc("0xe2")](t,fc("0x2")))}function Ac(t,e,n,o,i){if(!kc(t,e))return!1;if(n[fc("0x2")][fc("0x28")](o.start))return!0;if(t.type!=e[fc("0xff")])return!1;if(!n[fc("0x2")].isTouching(o[fc("0x69")]))return!1;const r=i[fc("0x103")](n[fc("0x2")],o[fc("0x69")])[fc("0x17a")]();for(const t of r)if([fc("0x14c"),fc("0x0")][fc("0x12c")](t.type)&&i[fc("0x9c")].isLimit(t[fc("0x3d")]))return!1;return!0}function kc(t,e){return!(!t[fc("0xc2")]||!e[fc("0xc2")])&&Go(t[fc("0xe5")],e[fc("0xe5")])}function Ic(t,e){const n=Rc(t[fc("0xe5")]),o=Rc(e);if(!t[fc("0xc2")])return!1;for(const t of Object[fc("0x81")](o))if(!Go(n[t],o[t]))return!1;return!0}function Rc(t){const e=Object[fc("0x97")]({},t);return delete e[fc("0xb3")],delete e[fc("0x11b")],e}const Sc=["canEditAt","_editor","listenTo","isDirty","PENDING_ACTION_SUGGESTION","get","isEnabled","execute","_discardCommand","discardSuggestion","getRanges","add","PendingActions","remove","model","plugins","canAccept","locale","canDiscard","destroy","_setPendingAction","change:isDirty","_acceptCommand","_pendingAction","commentThreadController","acceptSuggestion","view","bind","unbind","_removePendingAction"];var vc,Nc;vc=Sc,Nc=403,function(t){for(;--t;)vc.push(vc.shift())}(++Nc);const Lc=function(t,e){return Sc[t-=0]};class Mc extends((0,e.ObservableMixin)()){constructor(t,e,n,o){super(),this[Lc("0x1")]=e,this.view=n,this[Lc("0xb")]=o,this[Lc("0x12")]=t,this[Lc("0x9")]=t.commands.get(Lc("0xc")),this._discardCommand=t.commands[Lc("0x16")](Lc("0x1a")),this.view[Lc("0xe")](Lc("0x17")).to(this[Lc("0x9")],this[Lc("0x19")],((t,e)=>t||e)),this[Lc("0xd")][Lc("0xe")](Lc("0x3")).to(this[Lc("0x9")],Lc("0x17"),(t=>t&&this[Lc("0x12")].model[Lc("0x11")](e.getRanges()))),this[Lc("0xd")][Lc("0xe")]("canDiscard").to(this[Lc("0x19")],"isEnabled",(t=>t&&this._editor[Lc("0x1")][Lc("0x11")](e[Lc("0x1b")]()))),this._pendingAction=null,n[Lc("0x14")]&&this[Lc("0x7")](),this[Lc("0x13")](n,Lc("0xc"),(()=>this[Lc("0xc")]())),this.listenTo(n,Lc("0x1a"),(()=>this.discardSuggestion())),this[Lc("0x13")](n,Lc("0x8"),(()=>{n.isDirty?this[Lc("0x7")]():this[Lc("0x10")]()}))}[Lc("0xc")](){this[Lc("0x9")].execute(this[Lc("0x1")].id)}[Lc("0x1a")](){this._discardCommand[Lc("0x18")](this.model.id)}[Lc("0x6")](){this.view.unbind(Lc("0x17")),this[Lc("0xd")][Lc("0xf")](Lc("0x3")),this[Lc("0xd")][Lc("0xf")](Lc("0x5")),this.stopListening(),this[Lc("0xb")][Lc("0x6")](),this._pendingAction&&this[Lc("0x10")]()}_setPendingAction(){const t=Qo(this[Lc("0x12")][Lc("0x4")],Lc("0x15"));this[Lc("0xa")]=this._editor[Lc("0x2")][Lc("0x16")](Lc("0x1d"))[Lc("0x1c")](t)}[Lc("0x10")](){null!==this[Lc("0xa")]&&this[Lc("0x12")].plugins[Lc("0x16")](Lc("0x1d"))[Lc("0x0")](this[Lc("0xa")]),this[Lc("0xa")]=null}}const wc=["isDirty","destroy","assign","updateComment","focus","fire","commentInputView","showInput","canAccept","_createCommentThreadInputView","canDiscard","isEnabled","_model","setData","length","submit","value","delegate","isReadOnly","CommentView","editor","cancel","bind","_config","commentThread","set","authoredAt","_createCommentViews","editorConfig","commentsListView","_localUser","locale","hasDirtyComment","isActive","addComment","descriptionParts","commentThreadInputView","element"];var Oc,Fc;Oc=wc,Fc=201,function(t){for(;--t;)Oc.push(Oc.shift())}(++Fc);const Dc=function(t,e){return wc[t-=0]};class Bc extends i.View{constructor(t,e,n,o){super(t),this[Dc("0x12")]=null,this[Dc("0x19")]=null,this.set(Dc("0x16"),!1),this[Dc("0xe")]("authoredAt",e.authoredAt),this[Dc("0xb")](Dc("0xf")).to(e),this[Dc("0xe")](Dc("0x18"),[]),this[Dc("0xe")](Dc("0x1b"),!1),this[Dc("0xe")](Dc("0x0"),!1),this[Dc("0xe")](Dc("0x23"),!1),this[Dc("0xe")](Dc("0x25"),!1),this[Dc("0x1")]=e,this._localUser=n,this._config=o,o.disableComments?this[Dc("0xe")](Dc("0x3"),1):this[Dc("0x10")]()}[Dc("0x1f")](){this[Dc("0x1a")].focus()}[Dc("0x1c")](){this[Dc("0x12")]&&this.commentsListView[Dc("0x1c")](),this[Dc("0x19")]&&this[Dc("0x19")][Dc("0x1c")](),super[Dc("0x1c")]()}[Dc("0x10")](){const{CommentsListView:t}=this[Dc("0xc")];this[Dc("0x12")]=new t(this[Dc("0x14")],this[Dc("0x1")].commentThread,Object[Dc("0x1d")]({CommentView:this[Dc("0xc")][Dc("0x8")]},this[Dc("0xc")])),this[Dc("0x12")].delegate("removeComment").to(this),this[Dc("0x12")][Dc("0x6")](Dc("0x1e")).to(this),this[Dc("0x12")][Dc("0xb")]("isActive").to(this),this.set(Dc("0x3"),this[Dc("0x12")][Dc("0x3")]+1),this[Dc("0xb")]("length").to(this[Dc("0x12")],"length",(t=>t+1)),this[Dc("0x19")]=this[Dc("0x24")](),this.on("removeComment",(()=>this[Dc("0x1f")]())),this.bind(Dc("0x1b")).to(this[Dc("0x12")],Dc("0x15"),this[Dc("0x19")][Dc("0x21")],Dc("0x5"),((t,e)=>t||!!e))}[Dc("0x24")](){const{CommentThreadInputView:t}=this[Dc("0xc")],e=new t(this[Dc("0x14")],this[Dc("0x13")],this[Dc("0xc")][Dc("0x11")]),n=e[Dc("0x21")];return e[Dc("0xb")](Dc("0x22")).to(this,"isActive",this[Dc("0x1")].commentThread,Dc("0x7"),n,Dc("0x5"),((t,e,n)=>!!n||t&&!e)),n.on(Dc("0x4"),((t,e)=>{this[Dc("0x20")](Dc("0x17"),e),n[Dc("0x9")][Dc("0x2")]("")})),n.on(Dc("0xa"),(()=>this[Dc("0x1f")]())),n.bind("disabledSubmit").to(this[Dc("0x1")][Dc("0xd")],Dc("0x7")),e}}const Pc=["_createButton","discardSuggestion","element","Accept suggestion","map","commentThreadInputView","split","ck-annotation__info","bindTemplate","name",'<span class="ck-suggestion-color" style="background-color: ',"ck-suggestion__main","userView","createElement","_descriptionElement","value","importWord","creator","bind","discardButton","editorDestroyed","color","commentsListView","_config","attributes","disableComments","isActive","_model","push","EXTERNAL_SUGGESTION","getUserViewNotificationText","ck-annotation__info-name","getTemplate","ck-annotation__main","</span>","ck-annotation__actions","delegate","formatDateTime","content","ck-suggestion-","children","acceptSuggestion","div","EXTERNAL_IMPORT_WORD_AVATAR","title","ck-suggestion__info-name","@external","ck-comment__external","render","ck-suggestion-wrapper--active","type","EXTERNAL_IMPORT_WORD_SUGGESTION","querySelector","extendTemplate",".ck-annotation__content-wrapper","check","</p>",'<span class="ck-suggestion-type">',"locale","time","acceptButton",'" title="',"cancel","canAccept","canDiscard","span","author","commentThread","ck-suggestion--discard","EXTERNAL_AVATAR","innerHTML","ck-suggestion","descriptionParts","authoredAt","innerText","description","<p>","ck-suggestion--disabled-comments","fire","getExternalSuggestionNote","ck-suggestion__actions","ck-annotation__info-time","ck-suggestion-wrapper","ck-suggestion--accept","ck-annotation__content-wrapper","source","setTemplate","ck-annotation__user","isEnabled"];var Uc,jc;Uc=Pc,jc=210,function(t){for(;--t;)Uc.push(Uc.shift())}(++jc);const Gc=function(t,e){return Pc[t-=0]};class Vc extends Bc{constructor(e,n,o,i){super(e,n,o,i),this.set(Gc("0x12"),""),this[Gc("0x4b")](Gc("0x12")).to(this,Gc("0x28"),(t=>t&&t[0]?t[0].type:"")),this[Gc("0x4b")](Gc("0x2b")).to(this,Gc("0x28"),this,Gc("0x53"),((t,e)=>{let n="";for(const e of t)n+=Gc("0x2c")+Hc(e[Gc("0x6")],e[Gc("0x4e")])+Gc("0x18");return e?n:(0,r.trimHtml)(n,{limit:140})})),this._descriptionElement=null,this[Gc("0x1c")]=this._createButton(Qo(e,Gc("0x3c")),t.icons[Gc("0x17")],Gc("0x33"),Gc("0x9"),"sw"),this[Gc("0x1c")].bind(Gc("0x38")).to(this,Gc("0x1f")),this[Gc("0x4c")]=this[Gc("0x39")](Qo(e,"Discard suggestion"),t.icons[Gc("0x1e")],Gc("0x24"),Gc("0x3a"),"sw"),this.discardButton[Gc("0x4b")](Gc("0x38")).to(this,Gc("0x20")),this[Gc("0x45")]=new r.UserView(e,this[Gc("0x54")].author,this[Gc("0x57")]()),this[Gc("0x45")].extendTemplate({attributes:{class:["ck-suggestion__user",Gc("0x37")]}}),this[Gc("0x36")](this[Gc("0x0")]())}[Gc("0x0")](){const t=this[Gc("0x41")],e=[{tag:Gc("0xa"),attributes:{class:["ck-suggestion__info",Gc("0x40")]},children:[{tag:Gc("0x21"),children:[{text:this[Gc("0x45")][Gc("0x42")]}],attributes:{class:[Gc("0xd"),Gc("0x58")]}},{tag:Gc("0x1b"),attributes:{datetime:t.to(Gc("0x29")),class:["ck-comment__info-time",Gc("0x31")]},children:[{text:t.to("authoredAt",(t=>this[Gc("0x50")][Gc("0x5")](t)))}]}]},{tag:Gc("0xa"),attributes:{class:[Gc("0x30"),Gc("0x3")]},children:[this.acceptButton,this[Gc("0x4c")]]},{tag:Gc("0xa"),attributes:{class:[Gc("0x34")]}}];this[Gc("0x54")].isExternal&&e[Gc("0x55")]({tag:Gc("0xa"),attributes:{class:[Gc("0xf")]},children:[{text:this[Gc("0x2f")]()}]});const n={tag:Gc("0xa"),attributes:{class:[Gc("0x32"),t.if(Gc("0x53"),Gc("0x11")),t.to(Gc("0x12"),(t=>Gc("0x7")+t)),this[Gc("0x50")][Gc("0x52")]&&Gc("0x2d")],"data-suggestion-id":this._model.id,"data-thread-id":this[Gc("0x54")][Gc("0x23")].id,"data-author-id":this._model[Gc("0x22")].id,tabindex:-1},children:[{tag:Gc("0xa"),attributes:{class:[Gc("0x27"),"ck-annotation"]},children:[this[Gc("0x45")],{tag:Gc("0xa"),attributes:{class:[Gc("0x44"),Gc("0x1")]},children:e}]}]};return this[Gc("0x4f")]&&this[Gc("0x3e")]&&(n[Gc("0x8")][Gc("0x55")](this[Gc("0x4f")],this.commentThreadInputView),this[Gc("0x4f")][Gc("0x4")]("editorReady").to(this),this.commentsListView[Gc("0x4")]("editorDestroyed").to(this),this.commentThreadInputView[Gc("0x4")]("editorReady").to(this),this[Gc("0x3e")].delegate(Gc("0x4d")).to(this)),n}[Gc("0x10")](){super[Gc("0x10")](),this._descriptionElement=this[Gc("0x3b")][Gc("0x14")](Gc("0x16")),this[Gc("0x47")][Gc("0x26")]=this[Gc("0x2b")],this.on("change:description",((t,e,n)=>{this[Gc("0x47")][Gc("0x26")]=n}))}[Gc("0x39")](t,e,n,o,r){const s=new i.ButtonView(this[Gc("0x1a")]);return s.set({label:t,icon:e,tooltip:!0,tooltipPosition:r}),s[Gc("0x15")]({attributes:{class:n}}),s.on("execute",(()=>{this[Gc("0x2e")](o,this[Gc("0x54")].id)})),s}getExternalSuggestionNote(){return Gc("0x49")===this[Gc("0x54")].attributes[Gc("0xe")][Gc("0x35")]?Qo(this[Gc("0x1a")],Gc("0x13")):Qo(this[Gc("0x1a")],Gc("0x56"))}getUserViewNotificationText(){return this[Gc("0x54")].isExternal?Gc("0x49")===this[Gc("0x54")][Gc("0x51")][Gc("0xe")][Gc("0x35")]?Qo(this[Gc("0x1a")],Gc("0xb"),this[Gc("0x54")][Gc("0x4a")][Gc("0x42")]):Qo(this[Gc("0x1a")],Gc("0x25"),this[Gc("0x54")][Gc("0x4a")][Gc("0x42")]):null}}function Hc(t,e){let n="";return n+=t[Gc("0x3f")]("*")[Gc("0x3d")](((t,e)=>e%2!=0?Gc("0x19")+zc(t)+Gc("0x2"):zc(t))).join(""),e&&(n+=Gc("0x43")+e[Gc("0x48")]+Gc("0x1d")+e[Gc("0xc")]+'"></span>'),n}function zc(t){const e=document[Gc("0x46")](Gc("0x21"));return e[Gc("0x2a")]=t,e[Gc("0x26")]}const Wc=["getFirstRange","push","editing","TrackChangesEditing","discardSelectedSuggestions","add","clear","locale","focus","_handleSuggestionControllerDelayed","_annotationViews","isOn","values","refreshSelectedViews","_viewToController","activeAnnotations","_initializeController","suggestionChanged","from","switchbutton","editor","createCommentThreadController","change:previous","_createUIButton","button","acceptSelectedSuggestions","Accept all suggestions","type","Annotations","define","_destroyController","bind","isMultiRange","descriptionParts","pluginName","_descriptionFactory","model","value","actionView","getDescriptions","isDirty","EditorAnnotations","Discard all selected suggestions","_updateController","execute","delete","getAllAdjacentSuggestions","suggestion-","comments.maxCommentsWhenCollapsed","_unbindEditors","CommentsRepository","getByInnerView","commands","unbind","separator","filter","comments.editorConfig","Track changes","Discard all suggestions","_refreshActiveMarkers","size","_disableComments","commandName","getMarkerNames","innerView","suggestionLoaded","comments.maxCommentCharsWhenCollapsed","stopListening","registerAnnotation","buttonView","TrackChangesUI","remove","getJoined","discardButton","CommentsUI","plugins","discardAllSuggestions","requires","get","_bindAnnotationToEditors","some","trackChanges.disableComments","keys","isInContent","CommentView","change:activeAnnotations","_handleControllerBuffer","acceptButton","trackChanges","previous","Accept all selected suggestions","mainView","head","componentFactory","arrowView","suggestionUnloaded","config","destroy","_suggestionToController","listenTo","hasSuggestion","set","has","isEnabled","map","length","view"];var Kc,qc;Kc=Wc,qc=295,function(t){for(;--t;)Kc.push(Kc.shift())}(++qc);const Xc=function(t,e){return Wc[t-=0]};class $c extends t.Plugin{static get[Xc("0x67")](){return[hc,r.Users,Xc("0x4c"),Xc("0x36"),Xc("0x43")]}static get[Xc("0x3c")](){return Xc("0x60")}constructor(t){super(t),this[Xc("0x11")]=new Map,this[Xc("0x28")]=new Map,this[Xc("0x24")]=new Map,this._handleControllerBuffer=new Map;const e=this[Xc("0x2e")][Xc("0xf")];e.define("trackChanges.SuggestionThreadView",Vc),e[Xc("0x37")]("trackChanges.disableComments",!1),this[Xc("0x57")]=e[Xc("0x68")](Xc("0x0"))}[Xc("0x23")](t,e){0===this[Xc("0x5")][Xc("0x56")]&&setTimeout((()=>{for(const[t,e]of this._handleControllerBuffer){const n=this[Xc("0x11")].has(t);n||e?n&&e&&this[Xc("0x38")](t):this[Xc("0x2a")](t)}this[Xc("0x2e")][Xc("0x65")].get(Xc("0x43"))[Xc("0x27")](),this[Xc("0x55")](),this[Xc("0x5")][Xc("0x20")]()}),10),this[Xc("0x5")][Xc("0x14")](t,e)}init(){const t=this[Xc("0x2e")],e=t.plugins[Xc("0x68")](Xc("0x1d")),n=t[Xc("0x65")][Xc("0x68")]("Annotations"),o=t.plugins.get("EditorAnnotations"),i=t[Xc("0x65")][Xc("0x68")](Xc("0x4c"));t.ui[Xc("0xc")][Xc("0x1f")](Xc("0x7"),(t=>this[Xc("0x31")](t))),o.addSourceCollector((()=>{const t=[];for(const[e,n]of Array[Xc("0x2c")](this[Xc("0x11")])){const o=e[Xc("0x48")](),i=[];for(const t of o){if(!t.isInContent)continue;if(t[Xc("0x3a")]){i.push(...t.getRanges());continue}const e=t[Xc("0x1a")]();if(i[Xc("0x18")]>0){const t=i[0][Xc("0x62")](e);if(t){i[0]=t;continue}}i[Xc("0x1b")](e)}t.push([n[Xc("0x19")],i])}return t})),this[Xc("0x12")](e,Xc("0x5b"),((t,e)=>{this[Xc("0x12")](e,Xc("0x30"),((t,n,o,i)=>{e[Xc("0x2")]&&(null==o?(this._updateController(i.head),this[Xc("0x23")](e,!1)):(this[Xc("0x45")](o[Xc("0xb")]),null==i&&this[Xc("0x23")](e,!0)))})),null!==e[Xc("0x8")]?this._updateController(e[Xc("0xb")]):this[Xc("0x23")](e,!1)})),this[Xc("0x12")](e,Xc("0xe"),((t,e,n)=>{this[Xc("0x5d")](e,Xc("0x30")),this._handleControllerBuffer[Xc("0x47")](e),this[Xc("0x11")][Xc("0x15")](e)&&this[Xc("0x38")](e),n&&this._updateController(n[Xc("0xb")])})),this.listenTo(e,Xc("0x2b"),((t,e)=>{this[Xc("0x45")](e)})),this[Xc("0x12")](n,Xc("0x4"),(()=>{this[Xc("0x55")]()})),this[Xc("0x12")](i,"addComment",((t,{threadId:n,isFromAdapter:o})=>{if(o||!e[Xc("0x13")](n))return;const i=e.getSuggestion(n);this[Xc("0x11")].get(i)[Xc("0x19")][Xc("0x22")]()}),{priority:"lowest"})}_refreshActiveMarkers(){const t=this[Xc("0x2e")].plugins[Xc("0x68")]("Annotations"),e=this[Xc("0x2e")][Xc("0x65")][Xc("0x68")](Xc("0x1d")),n=Array[Xc("0x2c")](t[Xc("0x29")],(t=>t[Xc("0x5a")]))[Xc("0x51")]((t=>this[Xc("0x28")][Xc("0x15")](t))),o=[];for(const t of n){const e=this._viewToController[Xc("0x68")](t).model[Xc("0x48")]();o[Xc("0x1b")](...e.reduce(((t,e)=>[...t,...e[Xc("0x59")]()]),[]))}e.activeMarkers=o}_createUIButton(t){const n=(0,i.createDropdown)(t,i.SplitButtonView),o=this[Xc("0x2e")][Xc("0x4e")][Xc("0x68")](Xc("0x7")),r=Qo(t,Xc("0x53"));n[Xc("0x5f")][Xc("0x14")]({tooltip:r,label:r,icon:'\x3c!--\n\n What you\'re currently looking at is the source code of a legally protected, proprietary software.\n CKEditor 5 Collaboration is licensed under a commercial license and protected by copyright law. Where not otherwise indicated,\n all CKEditor 5 Collaboration content is authored by CKSource engineers and consists of CKSource-owned intellectual property.\n\n Copyright (c) 2003-2023, CKSource Holding sp. z o.o. All rights reserved.\n\n!--\x3e\n\n<svg viewBox="0 0 20 20" width="20" height="20" xmlns="http://www.w3.org/2000/svg"><g fill="#000" fill-rule="nonzero"><path d="M1 3.28C1 2.574 1.574 2 2.272 2h10.23c.703 0 1.272.573 1.272 1.28v12.768c0 .708-.574 1.281-1.271 1.281H2.272A1.276 1.276 0 0 1 1 16.049V3.28zm11.503 12.954c-.008 0-.006-12.77-.006-12.77 0-.003-10.225-.004-10.225-.004.007 0 .005 12.77.005 12.77 0 .003 10.226.004 10.226.004zm-8.31-9.58c0-.353.292-.64.636-.64h5.116c.351 0 .636.284.636.64a.641.641 0 0 1-.636.638H4.829a.636.636 0 0 1-.635-.639zm0 2.554c0-.352.292-.638.636-.638h5.116c.351 0 .636.283.636.638a.641.641 0 0 1-.636.639H4.829a.636.636 0 0 1-.635-.639zm0 2.555c0-.353.289-.639.633-.639h2.567c.35 0 .633.284.633.64a.639.639 0 0 1-.633.638H4.826a.634.634 0 0 1-.632-.639z"/><path d="M10.515 17.958l.154-.23c-.195-.099-.304-.193-.328-.28-.024-.09.001-.275.076-.552.062-.165.099-.296.111-.393.013-.159.013-.319 0-.478-.138-.41-.2-.686-.187-.83.013-.145.117-.335.313-.57l4.465-6.208c.356-.6 1.059-.56 2.11.119 1.051.68 1.443 1.271 1.177 1.771L14.53 17.14c-.105.271-.22.444-.347.516-.128.07-.399.118-.813.138a2.954 2.954 0 0 0-.487.21 2.044 2.044 0 0 0-.347.31c-.193.174-.332.262-.416.262-.064 0-.178-.05-.346-.15l-.204.27-1.056-.738h.001zm-.184.274l1.039.727-.259.34H9.614l.717-1.067z"/></g></svg>\n'}),n[Xc("0x5f")][Xc("0x39")](Xc("0x25")).to(o,"value"),n[Xc("0x5f")].on(Xc("0x46"),(()=>{o[Xc("0x46")](),this.editor[Xc("0x1c")][Xc("0x19")][Xc("0x22")]()}));const s=new e.Collection,x=[{type:Xc("0x2d"),model:{withText:!0,label:r,commandName:"trackChanges"}},{type:Xc("0x50")},{type:Xc("0x32"),model:{withText:!0,label:Qo(t,Xc("0x34")),commandName:"acceptAllSuggestions"}},{type:Xc("0x32"),model:{withText:!0,label:Qo(t,Xc("0x9")),commandName:Xc("0x33")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x54")),commandName:Xc("0x66")}},{type:"button",model:{withText:!0,label:Qo(t,Xc("0x44")),commandName:Xc("0x1e")}}];for(const t of x){let e={type:Xc("0x50")};if(t[Xc("0x3e")]){const n=new i.Model(t[Xc("0x3e")]),o=this.editor[Xc("0x4e")][Xc("0x68")](n[Xc("0x58")]);n[Xc("0x39")](Xc("0x25"),Xc("0x16")).to(o,Xc("0x3f"),Xc("0x16")),e={type:t[Xc("0x35")],model:n}}s[Xc("0x1f")](e)}(0,i.addListToDropdown)(n,s);const a=x[Xc("0x51")]((t=>null!=t.model))[Xc("0x17")]((t=>this[Xc("0x2e")][Xc("0x4e")][Xc("0x68")](t[Xc("0x3e")][Xc("0x58")]))),c=n[Xc("0x5f")];return c[Xc("0x40")][Xc("0x4f")](Xc("0x16")),c[Xc("0xd")][Xc("0x4f")](Xc("0x16")),c[Xc("0x40")].bind(Xc("0x16")).to(o,Xc("0x16")),c.arrowView[Xc("0x39")]("isEnabled").toMany(a,Xc("0x16"),((...t)=>t[Xc("0x6a")]((t=>t)))),n.on("execute",(t=>{this[Xc("0x2e")][Xc("0x46")](t.source[Xc("0x58")]),this[Xc("0x2e")].editing[Xc("0x19")].focus()})),n}[Xc("0x2a")](t){const e=this.editor,n=e.config,o=e[Xc("0x65")][Xc("0x68")](Xc("0x36")),i=e[Xc("0x65")][Xc("0x68")](Xc("0x4c")),s=e[Xc("0x65")][Xc("0x68")](Xc("0x43")),x=e.plugins[Xc("0x68")](r.Users).me,a=n.get("trackChanges").SuggestionThreadView,{CommentsListView:c,CommentThreadInputView:l}=e.plugins[Xc("0x68")](Xc("0x64"));let u,d;this._annotationViews[Xc("0x15")](t.id)?(d=this[Xc("0x24")].get(t.id),u=d[Xc("0xa")]):(u=new a(e.locale,t,x,{disableComments:this[Xc("0x57")],editorConfig:n[Xc("0x68")](Xc("0x52")),maxCommentsWhenCollapsed:n[Xc("0x68")](Xc("0x4a")),maxThreadTotalWeight:n[Xc("0x68")]("comments.maxThreadTotalWeight"),maxCommentCharsWhenCollapsed:n[Xc("0x68")](Xc("0x5c")),formatDateTime:(0,r.getDateTimeFormatter)(n[Xc("0x68")](Xc("0x21"))),CommentView:n[Xc("0x68")]("comments")[Xc("0x3")],CommentsListView:c,CommentThreadInputView:l}),u[Xc("0x6")].on(Xc("0x46"),(()=>{e.editing[Xc("0x19")][Xc("0x22")]()})),u[Xc("0x63")].on(Xc("0x46"),(()=>{e[Xc("0x1c")][Xc("0x19")][Xc("0x22")]()})),d=o.createAnnotationView(this[Xc("0x2e")][Xc("0x21")],u),d[Xc("0x39")]("isDirty").to(u,Xc("0x42")),d[Xc("0x39")]("length").to(u),d.bind("type").to(u,Xc("0x35"),(t=>Xc("0x49")+t)),this[Xc("0x24")][Xc("0x14")](t.id,d));const g=i[Xc("0x2f")](t.commentThread,u),f=new Mc(e,t,u,g),m=t[Xc("0x48")]()[Xc("0x51")]((t=>t[Xc("0x2")]));u[Xc("0x3b")]=e[Xc("0x65")][Xc("0x68")]("TrackChangesEditing")[Xc("0x3d")][Xc("0x41")](m),this[Xc("0x11")][Xc("0x14")](t,f),this[Xc("0x28")][Xc("0x14")](u,f);const h=o.createAnnotation({view:d,target:()=>{const n=[],o=t.getAllAdjacentSuggestions()[Xc("0x51")]((t=>t[Xc("0x2")]));for(const t of o)n.push(...t.getMarkers());return(0,r.getAllMarkersDomElementsSorted)(e[Xc("0x1c")],n)},type:()=>"suggestion-"+f[Xc("0x19")].type});i[Xc("0x69")](u,h),o[Xc("0x1f")](h),s[Xc("0x5e")](h)}[Xc("0x38")](t){const e=this[Xc("0x2e")][Xc("0x65")].get(Xc("0x4c")),n=this[Xc("0x2e")].plugins[Xc("0x68")](Xc("0x36")),o=this[Xc("0x11")][Xc("0x68")](t),i=o[Xc("0x19")],r=n[Xc("0x4d")](i);e[Xc("0x4b")](i),r&&n[Xc("0x61")](r),this[Xc("0x11")][Xc("0x47")](t),this[Xc("0x28")][Xc("0x47")](i),o[Xc("0x10")]()}_updateController(t){if(!t.isInContent||!this[Xc("0x11")].has(t))return;const e=this.editor[Xc("0x65")][Xc("0x68")](Xc("0x1d")),n=this[Xc("0x11")][Xc("0x68")](t),o=t[Xc("0x48")]();n[Xc("0x19")].descriptionParts=e._descriptionFactory[Xc("0x41")](o)}[Xc("0x10")](){for(const t of this[Xc("0x11")][Xc("0x1")]())this[Xc("0x38")](t);for(const t of this[Xc("0x24")][Xc("0x26")]())t[Xc("0xa")][Xc("0x10")]();super.destroy()}}var Zc,Yc,Jc=["pluginName","requires","adapter","editor","getSuggestion","getSuggestions","plugins","addSuggestionData","Comments","get"];Zc=Jc,Yc=469,function(t){for(;--t;)Zc.push(Zc.shift())}(++Yc);var Qc=function(t,e){return Jc[t-=0]};class tl extends t.Plugin{static get[Qc("0x2")](){return[hc,$c,Qc("0x9")]}static get[Qc("0x1")](){return"TrackChanges"}set adapter(t){this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x3")]=t}get[Qc("0x3")](){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x3")]}addSuggestion(t){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x8")](t)}[Qc("0x6")]({skipNotAttached:t=!1,toJSON:e=!1}={}){return this[Qc("0x4")][Qc("0x7")][Qc("0x0")](hc)[Qc("0x6")]({skipNotAttached:t,toJSON:e})}[Qc("0x5")](t){return this[Qc("0x4")][Qc("0x7")].get(hc)[Qc("0x5")](t)}}const el=["execute","init","CommentsRepository","TrackChangesEditing","getDataWithDiscardedSuggestions","getRootsAttributes","trackChangesData","plugins","push","create","TrackChangesDataGetter","_adapter","function","createElement","config","Users","reduce","set","pluginName","define","result","addUser","data","editorCreator","name","requires","get","getFullData","end","getRootNames","addSuggestionData","document","trackChangesData.editorCreator","map","model","track-changes-data-invalid-editor-creator","Pagination","destroy","users","editor"];var nl,ol;nl=el,ol=237,function(t){for(;--t;)nl.push(nl.shift())}(++ol);const il=function(t,e){return el[t-=0]},rl=[il("0x27")];class sl extends t.Plugin{static get[il("0x1c")](){return[hc]}static get pluginName(){return"TrackChangesData"}[il("0x4")](){const t=this[il("0x2")];if(t.config[il("0x16")](il("0x23"),(e=>{const n=t[il("0x25")].document[il("0x20")]()[il("0x13")](((t,e)=>(t[e]="",t)),{});return t.constructor[il("0xc")](n,e)})),il("0xf")!=typeof t[il("0x11")][il("0x1d")](il("0x9"))[il("0x1a")])throw new e.CKEditorError(il("0x26"))}getDataWithAcceptedSuggestions(t){return cl(this[il("0x2")],!0,t)}[il("0x7")](t){return cl(this[il("0x2")],!1,t)}}class xl extends t.Plugin{static get[il("0x15")](){return il("0xd")}constructor(t){super(t),this[il("0x17")]=il("0x1f")}init(){this.editor[il("0xa")][il("0x1d")](il("0x5"))[il("0xe")]={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[il("0x2")][il("0xa")][il("0x1d")](il("0x6"))[il("0xe")]=null}}function al(t){return void 0!==t[il("0x8")]}async function cl(t,e,n){const o=(0,r.sanitizeEditorConfig)(t,rl);o[il("0xa")][il("0xb")](hc,xl),o.rootsAttributes=al(t)?t[il("0x8")]():void 0;const i=document.createDocumentFragment(),s=t.config.get("trackChangesData")[il("0x1a")],x=await s(o,(()=>function(t){const e=document[il("0x10")]("div");return t.appendChild(e),e}(i)));!function(t,e){const n=t.model[il("0x22")][il("0x20")]()[il("0x13")](((e,n)=>(e[n]=t[il("0x19")][il("0x1d")]({rootName:n}),e)),{}),o=t.plugins.get(il("0x12"))[il("0x1")][il("0x24")]((t=>({id:t.id,name:t[il("0x1b")]}))),i=t[il("0xa")][il("0x1d")]("TrackChangesEditing").getSuggestions({skipNotAttached:!0,toJSON:!0}),r=e.plugins[il("0x1d")](il("0x12")),s=e[il("0xa")][il("0x1d")](il("0x6"));for(const t of o)r.getUser(t.id)||r[il("0x18")](t);r.me||r.useAnonymousUser();for(const t of i)s[il("0x21")](t);e.data[il("0x14")](n)}(t,x),x[il("0x3")](e?"acceptAllSuggestions":"discardAllSuggestions");const a=al(x)?x[il("0x1e")](n):x[il("0x19")][il("0x1d")](n);return await x[il("0x0")](),a}})(),(window.CKEditor5=window.CKEditor5||{}).trackChanges=o})();
|